karin-plugin-kkk 2.45.2-beta.3 → 2.45.2

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.
@@ -1,47 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CronEditor-DSx8kkQQ.js","assets/separator-CCrVXPvv.js","assets/DesktopLayout-BJTY9p_l.js","assets/ThemeSwitch-Cipx1aP1.js","assets/MobileLayout-BKJi8d_L.js"])))=>i.map(i=>d[i]);
2
- var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var j=/\/+/g;function M(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function N(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function P(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,P(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+M(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(j,`$&/`)+`/`),P(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(j,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+M(a,u),c+=P(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+M(a,u++),c+=P(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return P(N(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function F(e,t,n){if(e==null)return e;var r=[],i=0;return P(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function I(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var ee=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)};function te(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,ee)}catch(e){ee(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function ne(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else te(ne.bind(null,e))}var re={map:F,forEach:function(e,t,n){F(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return F(e,function(){t++}),t},toArray:function(e){return F(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=re,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=ne,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=te,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.1`})),d=o(((e,t)=>{t.exports=u()})),f=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),p=o(((e,t)=>{t.exports=f()})),m=o((e=>{var t=d();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`),o=Symbol.for(`react.recoverable`),s=Symbol.for(`react.optimistic_key`);function c(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:r===s?s:``+r,children:e,containerInfo:t,implementation:n}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.browser=function(e){return{$$typeof:o,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return c(e,t,null,r)},e.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=u(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=u(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},e.useFormStatus=function(){return l.H.useHostTransitionStatus()},e.version=`19.3.1`})),h=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=m()})),g=o((e=>{var t=p(),n=d(),r=h();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}function m(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&m(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function g(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function _(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function v(e){var t=[null,null],n=g(e);return n===null||y(t,e,n.child,{foundSelf:!1}),t}function y(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&y(e,t,n.child,r))return!0;n=n.sibling}return!1}function b(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var x=null,S=null;function C(e,t,n){return e===n||e===t&&(x=e,!0)}function w(e,t,n){return e===n?(S=e,!1):e===t&&(S!==null&&(x=e),!0)}function T(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function E(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var D=Object.assign,O=Symbol.for(`react.element`),k=Symbol.for(`react.transitional.element`),A=Symbol.for(`react.portal`),j=Symbol.for(`react.fragment`),M=Symbol.for(`react.strict_mode`),N=Symbol.for(`react.profiler`),P=Symbol.for(`react.consumer`),F=Symbol.for(`react.context`),I=Symbol.for(`react.forward_ref`),ee=Symbol.for(`react.suspense`),te=Symbol.for(`react.suspense_list`),ne=Symbol.for(`react.memo`),re=Symbol.for(`react.lazy`),ie=Symbol.for(`react.activity`),ae=Symbol.for(`react.legacy_hidden`),oe=Symbol.for(`react.memo_cache_sentinel`),se=Symbol.for(`react.view_transition`),L=Symbol.for(`react.recoverable`),ce=Symbol.iterator;function le(e){return typeof e!=`object`||!e?null:(e=ce&&e[ce]||e[`@@iterator`],typeof e==`function`?e:null)}var ue=Symbol.for(`react.client.reference`);function de(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ue?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case j:return`Fragment`;case N:return`Profiler`;case M:return`StrictMode`;case ee:return`Suspense`;case te:return`SuspenseList`;case ie:return`Activity`;case se:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case A:return`Portal`;case F:return e.displayName||`Context`;case P:return(e._context.displayName||`Context`)+`.Consumer`;case I:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ne:return t=e.displayName||null,t===null?de(e.type)||`Memo`:t;case re:t=e._payload,e=e._init;try{return de(e(t))}catch{}}return null}var fe=Array.isArray,R=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pe=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,me={pending:!1,data:null,method:null,action:null},he=[],ge=-1;function _e(e){return{current:e}}function ve(e){0>ge||(e.current=he[ge],he[ge]=null,ge--)}function ye(e,t){ge++,he[ge]=e.current,e.current=t}var be=_e(null),xe=_e(null),Se=_e(null),Ce=_e(null);function we(e,t){switch(ye(Se,t),ye(xe,e),ye(be,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?mp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=mp(t),e=hp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ve(be),ye(be,e)}function Te(){ve(be),ve(xe),ve(Se)}function Ee(e){var t=e.memoizedState;t!==null&&(dh._currentValue=t.memoizedState,ye(Ce,e)),t=be.current;var n=hp(t,e.type);t!==n&&(ye(xe,e),ye(be,n))}function De(e){xe.current===e&&(ve(be),ve(xe)),Ce.current===e&&(ve(Ce),dh._currentValue=me)}var Oe,ke;function Ae(e){if(Oe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Oe=t&&t[1]||``,ke=-1<e.stack.indexOf(`
3
- at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4
- `+Oe+e+ke}var je=!1;function Me(e,t){if(!e||je)return``;je=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
5
- `),l=s.split(`
6
- `);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
7
- `+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{je=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Ae(n):``}function Ne(e,t){switch(e.tag){case 26:case 27:case 5:return Ae(e.type);case 16:return Ae(`Lazy`);case 13:return e.child!==t&&t!==null?Ae(`Suspense Fallback`):Ae(`Suspense`);case 19:return Ae(`SuspenseList`);case 0:case 15:return Me(e.type,!1);case 11:return Me(e.type.render,!1);case 1:return Me(e.type,!0);case 31:return Ae(`Activity`);case 30:return Ae(`ViewTransition`);default:return``}}function Pe(e){try{var t=``,n=null;do t+=Ne(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
8
- Error generating stack: `+e.message+`
9
- `+e.stack}}var Fe=Object.prototype.hasOwnProperty,Ie=t.unstable_scheduleCallback,Le=t.unstable_cancelCallback,Re=t.unstable_shouldYield,ze=t.unstable_requestPaint,z=t.unstable_now,Be=t.unstable_getCurrentPriorityLevel,Ve=t.unstable_ImmediatePriority,He=t.unstable_UserBlockingPriority,Ue=t.unstable_NormalPriority,We=t.unstable_LowPriority,Ge=t.unstable_IdlePriority,Ke=t.log,qe=t.unstable_setDisableYieldValue,B=null,Je=null;function Ye(e){if(typeof Ke==`function`&&qe(e),Je&&typeof Je.setStrictMode==`function`)try{Je.setStrictMode(B,e)}catch{}}var Xe=Math.clz32?Math.clz32:$e,Ze=Math.log,Qe=Math.LN2;function $e(e){return e>>>=0,e===0?32:31-(Ze(e)/Qe|0)|0}var V=256,et=262144,tt=4194304;function nt(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 rt(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=nt(n))):i=nt(o):i=nt(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=nt(n))):i=nt(o)):i=nt(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 it(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function at(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-Xe(n),i=1<<r;t|=e[r],n&=~i}return t}function ot(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 st(){var e=tt;return tt<<=1,!(tt&62914560)&&(tt=4194304),e}function ct(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function lt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ut(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-Xe(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&&dt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function dt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Xe(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function ft(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Xe(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function pt(e,t){var n=t&-t;return n=n&42?1:mt(n),(n&(e.suspendedLanes|t))===0?n:0}function mt(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 ht(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function gt(){var e=pe.p;return e===0?(e=window.event,e===void 0?32:Dh(e.type)):e}function _t(e,t){var n=pe.p;try{return pe.p=e,t()}finally{pe.p=n}}var vt=Math.random().toString(36).slice(2),yt=`__reactFiber$`+vt,bt=`__reactProps$`+vt,xt=`__reactContainer$`+vt,St=`__reactEvents$`+vt,Ct=`__reactListeners$`+vt,wt=`__reactHandles$`+vt,Tt=`__reactResources$`+vt,Et=`__reactMarker$`+vt,Dt=`__reactLoad$`+vt;function Ot(e){delete e[yt],delete e[bt],delete e[Ct],delete e[wt]}function kt(e){var t;if(t=e[yt])return t;for(var n=e.parentNode;n;){if(t=n[xt]||n[yt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=gm(e);e!==null;){if(n=e[yt])return n;e=gm(e)}return t}e=n,n=e.parentNode}return null}function At(e){if(e=e[yt]||e[xt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function jt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Mt(e){var t=e[Tt];return t||=e[Tt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Nt(e){e[Et]=!0}function Pt(e){e[Dt]=void 0}var Ft=new Set,It={};function Lt(e,t){Rt(e,t),Rt(e+`Capture`,t)}function Rt(e,t){for(It[e]=t,e=0;e<t.length;e++)Ft.add(t[e])}var zt=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]*$`),Bt={},Vt={};function Ht(e){return Fe.call(Vt,e)?!0:Fe.call(Bt,e)?!1:zt.test(e)?Vt[e]=!0:(Bt[e]=!0,!1)}var Ut=!1;function Wt(){var e=Ut;return Ut=!1,e}function Gt(e,t,n){if(Ht(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 Kt(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 qt(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 Jt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Yt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Xt(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 Zt(e){if(!e._valueTracker){var t=Yt(e)?`checked`:`value`;e._valueTracker=Xt(e,t,``+e[t])}}function Qt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Yt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var $t=/[\n"\\]/g;function en(e){return e.replace($t,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function tn(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=``+Jt(t)):e.value!==``+Jt(t)&&(e.value=``+Jt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):H(e,Jt(n)):o===`number`&&e.value==t?H(e,Jt(e.value)):H(e,Jt(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=``+Jt(s):e.removeAttribute(`name`)}function nn(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)){Zt(e);return}n=n==null?``:``+Jt(n),t=t==null?n:``+Jt(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),Zt(e)}function H(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=``+Jt(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=``+Jt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Jt(n)}function on(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(fe(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Jt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Zt(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]=``,Ut=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(ln(e,a,r),Ut=!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=At(e);if(t&&(e=t.stateNode)){var n=e[bt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(tn(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="`+en(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[bt]||null;if(!a)throw Error(i(90));tn(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&&Qt(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)&&(Bd(),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[bt]||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=Zf(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){Uf(e,0)}function Tr(e){if(Qt(jt(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(!Fe.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=Zf(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),Lt(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=xd.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=kd;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=[],U=0,yi=0;function bi(){for(var e=U,t=yi=U=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&&wi(n,i,a)}}function xi(e,t,n,r){vi[U++]=e,vi[U++]=t,vi[U++]=n,vi[U++]=r,yi|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Si(e,t,n,r){return xi(e,t,n,r),Ti(e)}function Ci(e,t){return xi(e,null,null,t),Ti(e)}function wi(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-Xe(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Ti(e){if(50<Ad)throw Ad=0,jd=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var W={};function Ei(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 Di(e,t,n,r){return new Ei(e,t,n,r)}function Oi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ki(e,t){var n=e.alternate;return n===null?(n=Di(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 Ai(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 ji(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)Oi(r)&&(s=1);else if(typeof r==`string`)s=Zm(e,n,be.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case ie:return e=Di(31,n,t,a),e.elementType=ie,e.lanes=o,e;case j:return Mi(n.children,a,o,t);case M:s=8,a|=24;break;case N:return e=Di(12,n,t,a|2),e.elementType=N,e.lanes=o,e;case ee:return e=Di(13,n,t,a),e.elementType=ee,e.lanes=o,e;case te:return e=Di(19,n,t,a),e.elementType=te,e.lanes=o,e;case ae:case se:return e=a|32,e=Di(30,n,t,e),e.elementType=se,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 ne:s=14;break a;case re:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Di(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Mi(e,t,n,r){return e=Di(7,e,r,t),e.lanes=n,e}function Ni(e,t,n){return e=Di(6,e,null,t),e.lanes=n,e}function Pi(e){var t=Di(18,null,null,0);return t.stateNode=e,t}function Fi(e,t,n){return t=Di(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ii=new WeakMap;function Li(e,t){if(typeof e==`object`&&e){var n=Ii.get(e);return n===void 0?(t={value:e,source:t,stack:Pe(t)},Ii.set(e,t),t):n}return{value:e,source:t,stack:Pe(t)}}var Ri=[],zi=0,Bi=null,Vi=0,Hi=[],Ui=0,Wi=null,Gi=1,Ki=``;function qi(e,t){Ri[zi++]=Vi,Ri[zi++]=Bi,Bi=e,Vi=t}function Ji(e,t,n){Hi[Ui++]=Gi,Hi[Ui++]=Ki,Hi[Ui++]=Wi,Wi=e;var r=Gi;e=Ki;var i=32-Xe(r)-1;r&=~(1<<i),n+=1;var a=32-Xe(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Gi=1<<32-Xe(t)+i|n<<i|r,Ki=a+e}else Gi=1<<a|n<<i|r,Ki=e}function Yi(e){e.return!==null&&(qi(e,1),Ji(e,1,0))}function Xi(e){for(;e===Bi;)Bi=Ri[--zi],Ri[zi]=null,Vi=Ri[--zi],Ri[zi]=null;for(;e===Wi;)Wi=Hi[--Ui],Hi[Ui]=null,Ki=Hi[--Ui],Hi[Ui]=null,Gi=Hi[--Ui],Hi[Ui]=null}function Zi(e,t){Hi[Ui++]=Gi,Hi[Ui++]=Ki,Hi[Ui++]=Wi,Gi=t.id,Ki=t.overflow,Wi=e}var Qi=null,$i=null,ea=!1,ta=null,na=!1,ra=Error(i(519));function ia(e){throw ua(Li(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),ra}function aa(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[yt]=e,t[bt]=r,n){case`dialog`:Wf(`cancel`,t),Wf(`close`,t);break;case`iframe`:case`object`:case`embed`:Wf(`load`,t);break;case`video`:case`audio`:for(n=0;n<Vf.length;n++)Wf(Vf[n],t);break;case`source`:Wf(`error`,t);break;case`img`:case`image`:case`link`:Wf(`error`,t),Wf(`load`,t);break;case`details`:Wf(`toggle`,t);break;case`input`:Wf(`invalid`,t),nn(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Wf(`invalid`,t);break;case`textarea`:Wf(`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||rp(t.textContent,n)?(r.popover!=null&&(Wf(`beforetoggle`,t),Wf(`toggle`,t)),r.onScroll!=null&&Wf(`scroll`,t),r.onScrollEnd!=null&&Wf(`scrollend`,t),r.onClick!=null&&(t.onclick=hn),t=!0):t=!1,t||ia(e,!0)}function oa(e){for(Qi=e.return;Qi;)switch(Qi.tag){case 5:case 31:case 13:na=!1;return;case 27:case 3:na=!0;return;default:Qi=Qi.return}}function sa(e){if(e!==Qi)return!1;if(!ea)return oa(e),ea=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||_p(e.type,e.memoizedProps)),n=!n),n&&$i&&ia(e),oa(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));$i=hm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));$i=hm(e)}else t===27?(t=$i,Ep(e.type)?(e=mm,mm=null,$i=e):$i=t):$i=Qi?pm(e.stateNode.nextSibling):null;return!0}function ca(){$i=Qi=null,ea=!1}function la(){var e=ta;return e!==null&&(pd===null?pd=e:pd.push.apply(pd,e),ta=null),e}function ua(e){ta===null?ta=[e]:ta.push(e)}var da=_e(null),fa=null,pa=null;function ma(e,t,n){ye(da,t._currentValue),t._currentValue=n}function ha(e){e._currentValue=da.current,ve(da)}function ga(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 _a(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),ga(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),ga(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),ga(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 va(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===Ce.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[dh]:e.push(dh))}a=a.return}return e!==null&&_a(t,e,n,r),t.flags|=262144,e!==null}function ya(e){for(e=e.firstContext;e!==null;){if(!Rr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ba(e){fa=e,pa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function xa(e){return Ca(fa,e)}function Sa(e,t){return fa===null&&ba(e),Ca(e,t)}function Ca(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},pa===null){if(e===null)throw Error(i(308));pa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else pa=pa.next=t;return n}var wa=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()})}},Ta=t.unstable_scheduleCallback,Ea=t.unstable_NormalPriority,Da={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Oa(){return{controller:new wa,data:new Map,refCount:0}}function ka(e){e.refCount--,e.refCount===0&&Ta(Ea,function(){e.controller.abort()})}function Aa(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 ja=null;function Ma(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Na=null,Pa=0,Fa=0,Ia=null;function La(e,t){if(Na===null){var n=Na=[];Pa=0,Fa=If(),Ia={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Pa++,t.then(Ra,Ra),t}function Ra(){if(--Pa===0&&(ja=null,Na!==null)){Ia!==null&&(Ia.status=`fulfilled`);var e=Na;Na=null,Fa=0,Ia=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function za(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 Ba=R.S;R.S=function(e,t){if(gd=z(),typeof t==`object`&&t&&typeof t.then==`function`&&La(e,t),ja!==null)for(var n=Sf;n!==null;)Aa(n,ja),n=n.next;if(n=e.types,n!==null){for(var r=Sf;r!==null;)Aa(r,n),r=r.next;if(Fa!==0){r=ja,r===null&&(r=ja=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Ba!==null&&Ba(e,t)};var Va=_e(null);function Ha(){var e=Va.current;return e===null?Zu.pooledCache:e}function Ua(e,t){t===null?ye(Va,Va.current):ye(Va,t.pool)}function Wa(){var e=Ha();return e===null?null:{parent:Da._currentValue,pool:e}}var Ga=Error(i(460)),Ka=Error(i(474)),qa=Error(i(542)),Ja={then:function(){}};function Ya(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Xa(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,eo(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(hn,hn);else{if(e=Zu,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,eo(e),e}throw Qa=t,Ga}}function Za(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Qa=e,Ga):e}}var Qa=null;function $a(){if(Qa===null)throw Error(i(459));var e=Qa;return Qa=null,e}function eo(e){if(e===Ga||e===qa)throw Error(i(483))}var to=null,G=0;function no(e){var t=G;return G+=1,to===null&&(to=[]),Xa(to,e,t)}function ro(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function io(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 ao(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=ki(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=Ni(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),ro(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===re&&Za(i)===t.type)?(t=a(t,n.props),ro(t,n),t.return=e,t):(t=ji(n.type,n.key,n.props,null,e.mode,r),ro(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=Fi(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=Mi(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=Ni(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case k:return n=ji(t.type,t.key,t.props,null,e.mode,n),ro(n,t),n.return=e,n;case A:return t=Fi(t,e.mode,n),t.return=e,t;case re:return t=Za(t),f(e,t,n)}if(fe(t)||le(t))return t=Mi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,no(t),n);if(t.$$typeof===F)return f(e,Sa(e,t),n);io(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 re:return n=Za(n),p(e,t,n,r)}if(fe(n)||le(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,no(n),r);if(n.$$typeof===F)return p(e,t,Sa(e,n),r);io(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 re:return r=Za(r),m(e,t,n,r,i)}if(fe(r)||le(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,no(r),i);if(r.$$typeof===F)return m(e,t,n,Sa(t,r),i);io(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),ea&&qi(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 ea&&qi(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)}),ea&&qi(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),ea&&qi(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 ea&&qi(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)}),ea&&qi(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),ro(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===re&&Za(l)===r.type){n(e,r.sibling),c=a(r,o.props),ro(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===j?(c=Mi(o.props.children,e.mode,c,o.key),ro(c,o),c.return=e,e=c):(c=ji(o.type,o.key,o.props,null,e.mode,c),ro(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=Fi(o,e.mode,c),c.return=e,e=c}return s(e);case re:return o=Za(o),_(e,r,o,c)}if(fe(o))return h(e,r,o,c);if(le(o)){if(l=le(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,no(o),c);if(o.$$typeof===F)return _(e,r,Sa(e,o),c);io(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=Ni(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{G=0;var i=_(e,t,n,r);return to=null,i}catch(t){if(t===Ga||t===qa)throw t;var a=Di(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var oo=ao(!0),so=ao(!1),co=!1;function K(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lo(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 uo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function fo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Xu&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Ti(e),wi(e,null,n),t}return xi(e,r,t,n),Ti(e)}function po(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,ft(e,n)}}function mo(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 ho=!1;function go(){if(ho){var e=Ia;if(e!==null)throw e}}function _o(e,t,n,r){ho=!1;var i=e.updateQueue;co=!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?($u&f)===f:(r&f)===f){f!==0&&f===Fa&&(ho=!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:co=!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),sd|=o,e.lanes=o,e.memoizedState=d}}function vo(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function yo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)vo(n[e],t)}var bo=_e(null),xo=_e(0);function So(e,t){e=ad,ye(xo,e),ye(bo,t),ad=e|t.baseLanes}function Co(){ye(xo,ad),ye(bo,bo.current)}function wo(){ad=xo.current,ve(bo),ve(xo)}var To=_e(null),Eo=null;function Do(e){var t=e.alternate;ye(Mo,Mo.current&1),ye(To,e),Eo===null&&(t===null||bo.current!==null||t.memoizedState!==null)&&(Eo=e)}function Oo(e){ye(Mo,Mo.current),ye(To,e),Eo===null&&(Eo=e)}function ko(e){e.tag===22?(ye(Mo,Mo.current),ye(To,e),Eo===null&&(Eo=e)):Ao()}function Ao(){ye(Mo,Mo.current),ye(To,To.current)}function jo(e){ve(To),Eo===e&&(Eo=null),ve(Mo)}var Mo=_e(0);function No(e,t){ye(To,To.current),ye(Mo,t)}function Po(e){ve(Mo),ve(To),Eo===e&&(Eo=null)}function Fo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||um(n)||dm(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 Io=0,q=null,Lo=null,Ro=null,zo=!1,Bo=!1,Vo=!1,Ho=0,Uo=0,Wo=null,Go=0;function Ko(){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 Jo(e,t,n,r,i,a){return Io=a,q=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=e===null||e.memoizedState===null?dc:fc,Vo=!1,a=n(r,i),Vo=!1,Bo&&(a=Xo(t,n,r,i)),Yo(e),a}function Yo(e){R.H=uc;var t=Lo!==null&&Lo.next!==null;if(Io=0,Ro=Lo=q=null,zo=!1,Uo=0,Wo=null,t)throw Error(i(300));e===null||kc||(e=e.dependencies,e!==null&&ya(e)&&(kc=!0))}function Xo(e,t,n,r){q=e;var a=0;do{if(Bo&&(Wo=null),Uo=0,Bo=!1,25<=a)throw Error(i(301));if(a+=1,Ro=Lo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}R.H=pc,o=t(n,r)}while(Bo);return o}function Zo(){var e=R.H,t=e.useState()[0];return t=typeof t.then==`function`?is(t):t,e=e.useState()[0],(Lo===null?null:Lo.memoizedState)!==e&&(q.flags|=1024),t}function Qo(){var e=Ho!==0;return Ho=0,e}function $o(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function es(e){if(zo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}zo=!1}Io=0,Ro=Lo=q=null,Bo=!1,Uo=Ho=0,Wo=null}function ts(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ro===null?q.memoizedState=Ro=e:Ro=Ro.next=e,Ro}function ns(){if(Lo===null){var e=q.alternate;e=e===null?null:e.memoizedState}else e=Lo.next;var t=Ro===null?q.memoizedState:Ro.next;if(t!==null)Ro=t,Lo=e;else{if(e===null)throw q.alternate===null?Error(i(467)):Error(i(310));Lo=e,e={memoizedState:Lo.memoizedState,baseState:Lo.baseState,baseQueue:Lo.baseQueue,queue:Lo.queue,next:null},Ro===null?q.memoizedState=Ro=e:Ro=Ro.next=e}return Ro}function rs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function is(e){var t=Uo;return Uo+=1,Wo===null&&(Wo=[]),e=Xa(Wo,e,t),t=q,(Ro===null?t.memoizedState:Ro.next)===null&&(t=t.alternate,R.H=t===null||t.memoizedState===null?dc:fc),e}function as(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return is(e);if(e.$$typeof===L)return;if(e.$$typeof===F)return xa(e)}throw Error(i(438,String(e)))}function os(e){var t=null,n=q.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=q.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=rs(),q.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]=oe;return t.index++,n}function ss(e,t){return typeof t==`function`?t(e):t}function cs(e){return ls(ns(),Lo,e)}function ls(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?(Io&f)===f:($u&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===Fa&&(d=!0);else if((Io&p)===p){u=u.next,p===Fa&&(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,q.lanes|=p,sd|=p;f=u.action,Vo&&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,q.lanes|=f,sd|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Rr(o,e.memoizedState)&&(kc=!0,d&&(n=Ia,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 us(e){var t=ns(),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)||(kc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ds(e,t,n){var r=q,a=ns(),o=ea;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Rr((Lo||a).memoizedState,n);if(s&&(a.memoizedState=n,kc=!0),a=a.queue,Is(ms.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Ro!==null&&!!(Ro.memoizedState.tag&1),js(e?9:8,{destroy:void 0},ps.bind(null,r,a,n,t),null),e){if(r.flags|=2048,Zu===null)throw Error(i(349));o||Io&127||fs(r,t,n)}return n}function fs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=q.updateQueue,t===null?(t=rs(),q.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ps(e,t,n,r){t.value=n,t.getSnapshot=r,hs(t)&&gs(e)}function ms(e,t,n){return n(function(){hs(t)&&gs(e)})}function hs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Rr(e,n)}catch{return!0}}function gs(e){var t=Ci(e,2);t!==null&&Fd(t,e,2)}function _s(e){var t=ts();if(typeof e==`function`){var n=e;if(e=n(),Vo){Ye(!0);try{n()}finally{Ye(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ss,lastRenderedState:e},t}function vs(e,t,n,r){return e.baseState=n,ls(e,Lo,typeof r==`function`?r:ss)}function ys(e,t,n,r,a){if(sc(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};R.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,bs(t,o)):(o.next=n.next,t.pending=n.next=o)}}function bs(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=R.T,o={};o.types=a===null?null:a.types,R.T=o;try{var s=n(i,r),c=R.S;c!==null&&c(o,s),xs(e,t,s)}catch(n){Cs(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),R.T=a}}else try{a=n(i,r),xs(e,t,a)}catch(n){Cs(e,t,n)}}function xs(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Ss(e,t,n)},function(n){return Cs(e,t,n)}):Ss(e,t,n)}function Ss(e,t,n){t.status=`fulfilled`,t.value=n,ws(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,bs(e,n)))}function Cs(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,ws(t),t=t.next;while(t!==r)}e.action=null}function ws(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ts(e,t){return t}function Es(e,t){if(ea){var n=Zu.formState;if(n!==null){a:{var r=q;if(ea){if($i){b:{for(var i=$i,a=na;i.nodeType!==8;){if(!a){i=null;break b}if(i=pm(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){$i=pm(i.nextSibling),r=i.data===`F!`;break a}}ia(r)}r=!1}r&&(t=n[0])}}return n=ts(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ts,lastRenderedState:t},n.queue=r,n=ic.bind(null,q,r),r.dispatch=n,r=_s(!1),a=oc.bind(null,q,!1,r.queue),r=ts(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=ys.bind(null,q,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Ds(e){return Os(ns(),Lo,e)}function Os(e,t,n){if(t=ls(e,t,Ts)[0],e=cs(ss)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=is(t)}catch(e){throw e===Ga?qa:e}else r=t;t=ns();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(q.flags|=2048,js(9,{destroy:void 0},ks.bind(null,i,n),null)),[r,a,e]}function ks(e,t){e.action=t}function As(e){var t=ns(),n=Lo;if(n!==null)return Os(t,n,e);ns(),t=t.memoizedState,n=ns();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function js(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=q.updateQueue,t===null&&(t=rs(),q.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 Ms(){return ns().memoizedState}function Ns(e,t,n,r){var i=ts();q.flags|=e,i.memoizedState=js(1|t,{destroy:void 0},n,r===void 0?null:r)}function Ps(e,t,n,r){var i=ns();r=r===void 0?null:r;var a=i.memoizedState.inst;Lo!==null&&r!==null&&qo(r,Lo.memoizedState.deps)?i.memoizedState=js(t,a,n,r):(q.flags|=e,i.memoizedState=js(1|t,a,n,r))}function Fs(e,t){Ns(8390656,8,e,t)}function Is(e,t){Ps(2048,8,e,t)}function Ls(e){q.flags|=4;var t=q.updateQueue;if(t===null)t=rs(),q.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Rs(e){var t=ns().memoizedState;return Ls({ref:t,nextImpl:e}),function(){if(Xu&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function zs(e,t){return Ps(4,2,e,t)}function Bs(e,t){return Ps(4,4,e,t)}function Vs(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 Hs(e,t,n){n=n==null?null:n.concat([e]),Ps(4,4,Vs.bind(null,t,e),n)}function Us(){}function Ws(e,t){var n=ns();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 Gs(e,t){var n=ns();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&qo(t,r[1]))return r[0];if(r=e(),Vo){Ye(!0);try{e()}finally{Ye(!1)}}return n.memoizedState=[r,t],r}function Ks(e,t,n){return n===void 0||Io&1073741824&&!($u&261930)?e.memoizedState=t:(e.memoizedState=n,e=Nd(),q.lanes|=e,sd|=e,n)}function qs(e,t,n,r){return Rr(n,t)?n:bo.current===null?!(Io&106)||Io&1073741824&&!($u&261930)?(kc=!0,e.memoizedState=n):(e=Nd(),q.lanes|=e,sd|=e,t):(e=Ks(e,n,r),Rr(e,t)||(kc=!0),e)}function Js(e,t,n,r,i){var a=pe.p;pe.p=a!==0&&8>a?a:8;var o=R.T,s={};s.types=o===null?null:o.types,R.T=s,oc(e,!1,t,n);try{var c=i(),l=R.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?ac(e,t,za(c,r),Md(e)):ac(e,t,r,Md(e))}catch(n){ac(e,t,{then:function(){},status:`rejected`,reason:n},Md())}finally{pe.p=a,o!==null&&s.types!==null&&(o.types=s.types),R.T=o}}function Ys(){}function Xs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Zs(e).queue;Js(e,a,t,me,n===null?Ys:function(){return Qs(e),n(r)})}function Zs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:me,baseState:me,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ss,lastRenderedState:me},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ss,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Qs(e){var t=Zs(e);t.next===null&&(t=e.alternate.memoizedState),ac(e,t.next.queue,{},Md())}function $s(){return xa(dh)}function ec(){return ns().memoizedState}function tc(){return ns().memoizedState}function nc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Md();e=uo(n);var r=fo(t,e,n);r!==null&&(Fd(r,t,n),po(r,t,n)),t={cache:Oa()},e.payload=t;return}t=t.return}}function rc(e,t,n){var r=Md();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},sc(e)?cc(t,n):(n=Si(e,t,n,r),n!==null&&(Fd(n,e,r),lc(n,t,r)))}function ic(e,t,n){ac(e,t,n,Md())}function ac(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(sc(e))cc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Rr(s,o))return xi(e,t,i,0),Zu===null&&bi(),!1}catch{}if(n=Si(e,t,i,r),n!==null)return Fd(n,e,r),lc(n,t,r),!0}return!1}function oc(e,t,n,r){if(r={lane:2,revertLane:If(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},sc(e)){if(t)throw Error(i(479))}else t=Si(e,n,r,2),t!==null&&Fd(t,e,2)}function sc(e){var t=e.alternate;return e===q||t!==null&&t===q}function cc(e,t){Bo=zo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function lc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ft(e,n)}}var uc={readContext:xa,use:as,useCallback:Ko,useContext:Ko,useEffect:Ko,useImperativeHandle:Ko,useLayoutEffect:Ko,useInsertionEffect:Ko,useMemo:Ko,useReducer:Ko,useRef:Ko,useState:Ko,useDebugValue:Ko,useDeferredValue:Ko,useTransition:Ko,useSyncExternalStore:Ko,useId:Ko,useHostTransitionStatus:Ko,useFormState:Ko,useActionState:Ko,useOptimistic:Ko,useMemoCache:Ko,useCacheRefresh:Ko,useEffectEvent:Ko},dc={readContext:xa,use:as,useCallback:function(e,t){return ts().memoizedState=[e,t===void 0?null:t],e},useContext:xa,useEffect:Fs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Ns(4194308,4,Vs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ns(4194308,4,e,t)},useInsertionEffect:function(e,t){Ns(4,2,e,t)},useMemo:function(e,t){var n=ts();t=t===void 0?null:t;var r=e();if(Vo){Ye(!0);try{e()}finally{Ye(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ts();if(n!==void 0){var i=n(t);if(Vo){Ye(!0);try{n(t)}finally{Ye(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=rc.bind(null,q,e),[r.memoizedState,e]},useRef:function(e){var t=ts();return e={current:e},t.memoizedState=e},useState:function(e){e=_s(e);var t=e.queue,n=ic.bind(null,q,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Us,useDeferredValue:function(e,t){return Ks(ts(),e,t)},useTransition:function(){var e=_s(!1);return e=Js.bind(null,q,e.queue,!0,!1),ts().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=q,a=ts();if(ea){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Zu===null)throw Error(i(349));$u&127||fs(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Fs(ms.bind(null,r,o,e),[e]),r.flags|=2048,js(9,{destroy:void 0},ps.bind(null,r,o,n,t),null),n},useId:function(){var e=ts(),t=Zu.identifierPrefix;if(ea){var n=Ki,r=Gi;n=(r&~(1<<32-Xe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Ho++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Go++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:$s,useFormState:Es,useActionState:Es,useOptimistic:function(e){var t=ts();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=oc.bind(null,q,!0,n),n.dispatch=t,[e,t]},useMemoCache:os,useCacheRefresh:function(){return ts().memoizedState=nc.bind(null,q)},useEffectEvent:function(e){var t=ts(),n={impl:e};return t.memoizedState=n,function(){if(Xu&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},fc={readContext:xa,use:as,useCallback:Ws,useContext:xa,useEffect:Is,useImperativeHandle:Hs,useInsertionEffect:zs,useLayoutEffect:Bs,useMemo:Gs,useReducer:cs,useRef:Ms,useState:function(){return cs(ss)},useDebugValue:Us,useDeferredValue:function(e,t){return qs(ns(),Lo.memoizedState,e,t)},useTransition:function(){var e=cs(ss)[0],t=ns().memoizedState;return[typeof e==`boolean`?e:is(e),t]},useSyncExternalStore:ds,useId:ec,useHostTransitionStatus:$s,useFormState:Ds,useActionState:Ds,useOptimistic:function(e,t){return vs(ns(),Lo,e,t)},useMemoCache:os,useCacheRefresh:tc,useEffectEvent:Rs},pc={readContext:xa,use:as,useCallback:Ws,useContext:xa,useEffect:Is,useImperativeHandle:Hs,useInsertionEffect:zs,useLayoutEffect:Bs,useMemo:Gs,useReducer:us,useRef:Ms,useState:function(){return us(ss)},useDebugValue:Us,useDeferredValue:function(e,t){var n=ns();return Lo===null?Ks(n,e,t):qs(n,Lo.memoizedState,e,t)},useTransition:function(){var e=us(ss)[0],t=ns().memoizedState;return[typeof e==`boolean`?e:is(e),t]},useSyncExternalStore:ds,useId:ec,useHostTransitionStatus:$s,useFormState:As,useActionState:As,useOptimistic:function(e,t){var n=ns();return Lo===null?(n.baseState=e,[e,n.queue.dispatch]):vs(n,Lo,e,t)},useMemoCache:os,useCacheRefresh:tc,useEffectEvent:Rs};function mc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:D({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var hc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Md(),i=uo(r);i.payload=t,n!=null&&(i.callback=n),t=fo(e,i,r),t!==null&&(Fd(t,e,r),po(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Md(),i=uo(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=fo(e,i,r),t!==null&&(Fd(t,e,r),po(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Md(),r=uo(n);r.tag=2,t!=null&&(r.callback=t),t=fo(e,r,n),t!==null&&(Fd(t,e,n),po(t,e,n))}};function gc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!zr(n,r)||!zr(i,a):!0}function _c(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&hc.enqueueReplaceState(t,t.state,null)}function vc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=D({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function yc(e){_i(e)}function bc(e){console.error(e)}function xc(e){_i(e)}function Sc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Cc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function wc(e,t,n){return n=uo(n),n.tag=3,n.payload={element:null},n.callback=function(){Sc(e,t)},n}function Tc(e){return e=uo(e),e.tag=3,e}function Ec(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Cc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Cc(t,n,r),typeof i!=`function`&&(yd===null?yd=new Set([this]):yd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Dc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&va(t,n,a,!0),n=To.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Eo===null?qd():n.alternate===null&&od===0&&(od=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ja?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),gf(e,r,a)),!1;case 22:return n.flags|=65536,r===Ja?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)),gf(e,r,a)),!1}throw Error(i(435,n.tag))}return gf(e,r,a),qd(),!1}if(ea)return t=To.current,t===null?(r!==ra&&(t=Error(i(423),{cause:r}),ua(Li(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Li(r,n),a=wc(e.stateNode,r,a),mo(e,a),od!==4&&(od=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==ra&&(e=Error(i(422),{cause:r}),ua(Li(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Li(o,n),fd===null?fd=[o]:fd.push(o),od!==4&&(od=2),t===null)return!0;r=Li(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=wc(n.stateNode,r,e),mo(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`&&(yd===null||!yd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Tc(a),Ec(a,e,n,r),mo(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Oc=Error(i(461)),kc=!1;function J(e,t,n,r){t.child=e===null?so(t,null,n,r):oo(t,e.child,n,r)}function Y(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 ba(t),r=Jo(e,t,n,o,a,i),s=Qo(),e!==null&&!kc?($o(e,t,i),rl(e,t,i)):(ea&&s&&Yi(t),t.flags|=1,J(e,t,r,i),t.child)}function Ac(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Oi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,jc(e,t,a,r,i)):(e=ji(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!il(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?zr:n,n(o,r)&&e.ref===t.ref)return rl(e,t,i)}return t.flags|=1,e=ki(a,r),e.ref=t.ref,e.return=t,t.child=e}function jc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(zr(a,r)&&e.ref===t.ref){if(kc=!1,t.pendingProps=r=a,il(e,i))e.flags&131072&&(kc=!0);else return t.lanes=e.lanes,rl(e,t,i)}}return zc(e,t,n,r,i)}function Mc(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 Pc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ua(t,a===null?null:a.cachePool),a===null?Co():So(t,a),ko(t);else return r=t.lanes=536870912,Pc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ua(t,null),Co(),Ao()):(Ua(t,a.cachePool),So(t,a),Ao(),t.memoizedState=null);return J(e,t,i,n),t.child}function Nc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Pc(e,t,n,r,i){var a=Ha();return a=a===null?null:{parent:Da._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ua(t,null),Co(),ko(t),e!==null&&va(e,t,r,!0),t.childLanes=i,null}function Fc(e,t){return t=Jc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Ic(e,t,n){return oo(t,e.child,null,n),e=Fc(t,t.pendingProps),e.flags|=2,jo(t),t.memoizedState=null,e}function Lc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(ea){if(r.mode===`hidden`)return e=Fc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Nc(null,e);if(Oo(t),(e=$i)?(e=lm(e,na),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Wi===null?null:{id:Gi,overflow:Ki},retryLane:536870912,hydrationErrors:null},n=Pi(e),n.return=t,t.child=n,Qi=t,$i=null)):e=null,e===null)throw ia(t);return t.lanes=536870912,null}return Fc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Oo(t),a){if(t.flags&256)t.flags&=-257,t=Ic(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(kc||va(e,t,n,!1),a=(n&e.childLanes)!==0,kc||a){if(bo.current===null){if(r=Zu,r!==null&&(s=pt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Ci(e,s),Fd(r,e,s),Oc;qd()}t=Ic(e,t,n)}else e=o.treeContext,$i=pm(s.nextSibling),Qi=t,ea=!0,ta=null,na=!1,e!==null&&Zi(t,e),t=Fc(t,r),t.flags|=134221824;return t}return e=ki(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Rc(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 zc(e,t,n,r,i){return ba(t),n=Jo(e,t,n,r,void 0,i),r=Qo(),e!==null&&!kc?($o(e,t,i),rl(e,t,i)):(ea&&r&&Yi(t),t.flags|=1,J(e,t,n,i),t.child)}function Bc(e,t,n,r,i,a){return ba(t),t.updateQueue=null,n=Xo(t,r,n,i),Yo(e),r=Qo(),e!==null&&!kc?($o(e,t,a),rl(e,t,a)):(ea&&r&&Yi(t),t.flags|=1,J(e,t,n,a),t.child)}function Vc(e,t,n,r,i){if(ba(t),t.stateNode===null){var a=W,o=n.contextType;typeof o==`object`&&o&&(a=xa(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=hc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},K(t),o=n.contextType,a.context=typeof o==`object`&&o?xa(o):W,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(mc(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&hc.enqueueReplaceState(a,a.state,null),_o(t,r,a,i),go(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=vc(n,s);a.props=c;var l=a.context,u=n.contextType;o=W,typeof u==`object`&&u&&(o=xa(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&_c(t,a,r,o),co=!1;var f=t.memoizedState;a.state=f,_o(t,r,a,i),go(),l=t.memoizedState,s||f!==l||co?(typeof d==`function`&&(mc(t,n,d,r),l=t.memoizedState),(c=co||gc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,lo(e,t),o=t.memoizedProps,u=vc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=W,typeof l==`object`&&l&&(c=xa(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&_c(t,a,r,c),co=!1,f=t.memoizedState,a.state=f,_o(t,r,a,i),go();var p=t.memoizedState;o!==d||f!==p||co||e!==null&&e.dependencies!==null&&ya(e.dependencies)?(typeof s==`function`&&(mc(t,n,s,r),p=t.memoizedState),(u=co||gc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&ya(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,Rc(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=oo(t,e.child,null,i),t.child=oo(t,null,n,i)):J(e,t,n,i),t.memoizedState=a.state,e=t.child):e=rl(e,t,i),e}function Hc(e,t,n,r){return ca(),t.flags|=256,J(e,t,n,r),t.child}var Uc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Wc(e){return{baseLanes:e,cachePool:Wa()}}function Gc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=ud),e}function Kc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Mo.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(ea){if(i?Do(t):Ao(),(e=$i)?(e=lm(e,na),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Wi===null?null:{id:Gi,overflow:Ki},retryLane:536870912,hydrationErrors:null},n=Pi(e),n.return=t,t.child=n,Qi=t,$i=null)):e=null,e===null)throw ia(t);return t.lanes=dm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(Ao(),i=t.mode,a=Jc({mode:`hidden`,children:a},i),r=Mi(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Wc(n),r.childLanes=Gc(e,o,n),t.memoizedState=Uc,Nc(null,r)):(Do(t),qc(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return Xc(e,t,a,o,r,c,s,n)}return i?(Ao(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=ki(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Mi(i,a,n,null),i.flags|=2):i=ki(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Nc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Wc(n):(a=i.cachePool,a===null?a=Wa():(s=Da._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Gc(e,o,n),t.memoizedState=Uc,Nc(e.child,r)):(Do(t),n=e.child,e=n.sibling,n=ki(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=Jc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Jc(e,t){return e=Di(22,e,null,t),e.lanes=0,e}function Yc(e,t,n){return oo(t,e.child,null,n),e=qc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xc(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(Do(t),t.flags&=-257,Yc(e,t,c)):t.memoizedState===null?(Ao(),o=a.fallback,s=t.mode,a=Jc({mode:`visible`,children:a.children},s),o=Mi(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,oo(t,e.child,null,c),a=t.child,a.memoizedState=Wc(c),a.childLanes=Gc(e,r,c),t.memoizedState=Uc,Nc(null,a)):(Ao(),t.child=e.child,t.flags|=128,null);if(Do(t),dm(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,ua({value:a,source:null,stack:null})),Yc(e,t,c)}if(kc||va(e,t,c,!1),r=(c&e.childLanes)!==0,kc||r){if(bo.current!==null)return Yc(e,t,c);if(r=Zu,r!==null&&(a=pt(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,Ci(e,a),Fd(r,e,a),Oc;return um(o)||qd(),Yc(e,t,c)}return um(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,$i=pm(o.nextSibling),Qi=t,ea=!0,ta=null,na=!1,e!==null&&Zi(t,e),t=qc(t,a.children),t.flags|=134221824,t)}function Zc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ga(e.return,t,n)}function Qc(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Fo(n)===null&&(t=e),e=e.sibling}return t}function $c(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 el(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 tl(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Mo.current;if(t.flags&128)return No(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,No(t,o),i===`backwards`&&e!==null?(el(e),J(e,t,r,n),el(e)):J(e,t,r,n),r=ea?Vi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Zc(e,n,t);else if(e.tag===19)Zc(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=Qc(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,el(t)),$c(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&&Fo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}$c(t,!0,n,null,a,r);break;case`together`:$c(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=Qc(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),$c(t,!1,i,n,a,r)}return t.child}function nl(e,t,n){var r=t.pendingProps;return ma(t,t.type,r.value),J(e,t,r.children,n),t.child}function rl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),sd|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(va(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=ki(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ki(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function il(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&ya(e)))}function al(e,t,n){switch(t.tag){case 3:we(t,t.stateNode.containerInfo),ma(t,Da,e.memoizedState.cache),ca();break;case 27:case 5:Ee(t);break;case 4:we(t,t.stateNode.containerInfo);break;case 10:ma(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Oo(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return Do(t),t.flags|=128,null;r=va(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Kc(e,t,n):(Do(t),e=rl(e,t,n),e===null?null:e.sibling)}Do(t);break;case 19:if(t.flags&128)return tl(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(va(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return tl(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),No(t,Mo.current),r)break;return null;case 22:return t.lanes=0,Mc(e,t,n,t.pendingProps);case 24:ma(t,Da,e.memoizedState.cache)}return rl(e,t,n)}function ol(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)kc=!0;else{if(!il(e,n)&&!(t.flags&128))return kc=!1,al(e,t,n);kc=!!(e.flags&131072)}}else kc=!1,ea&&t.flags&1048576&&Ji(t,Vi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Za(t.elementType),t.type=e,typeof e==`function`)Oi(e)?(r=vc(e,r),t.tag=1,t=Vc(null,t,e,r,n)):(t.tag=0,t=zc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===I){t.tag=11,t=Y(null,t,e,r,n);break a}if(a===ne){t.tag=14,t=Ac(null,t,e,r,n);break a}if(a===F){t.tag=10,t.type=e,t=nl(null,t,n);break a}}throw t=de(e)||e,Error(i(306,t,``))}}return t;case 0:return zc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=vc(r,t.pendingProps),Vc(e,t,r,a,n);case 3:a:{if(we(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,lo(e,t),_o(t,r,null,n);var s=t.memoizedState;if(r=s.cache,ma(t,Da,r),r!==o.cache&&_a(t,[Da],n,!0),go(),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=Hc(e,t,r,n);break a}if(r!==a){a=Li(Error(i(424)),t),ua(a),t=Hc(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($i=pm(e.firstChild),Qi=t,ea=!0,ta=null,na=!0,n=so(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(ca(),r===a){t=rl(e,t,n);break a}J(e,t,r,n)}t=t.child}return t;case 26:return Rc(e,t),e===null?(n=Lm(t.type,null,t.pendingProps,null))?t.memoizedState=n:ea||(t.stateNode=gp(t.type,t.pendingProps,Se.current,t)):t.memoizedState=Lm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ee(t),e===null&&ea&&(r=t.stateNode=ym(t.type,t.pendingProps,Se.current),Qi=t,na=!0,a=$i,Ep(t.type)?(mm=a,$i=pm(r.firstChild)):$i=a),J(e,t,t.pendingProps.children,n),Rc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ea&&((a=r=$i)&&(r=sm(r,t.type,t.pendingProps,na),r===null?a=!1:(t.stateNode=r,Qi=t,$i=pm(r.firstChild),na=!1,a=!0)),a||ia(t)),Ee(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,_p(a,o)?r=null:s!==null&&_p(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Jo(e,t,Zo,null,null,n),dh._currentValue=a),Rc(e,t),J(e,t,r,n),t.child;case 6:return e===null&&ea&&((e=n=$i)&&(n=cm(n,t.pendingProps,na),n===null?e=!1:(t.stateNode=n,Qi=t,$i=null,e=!0)),e||ia(t)),null;case 13:return Kc(e,t,n);case 4:return we(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=oo(t,null,r,n):J(e,t,r,n),t.child;case 11:return Y(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Rc(e,t),J(e,t,r,n),t.child;case 8:return J(e,t,t.pendingProps.children,n),t.child;case 12:return J(e,t,t.pendingProps.children,n),t.child;case 10:return nl(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,ba(t),a=xa(a),r=r(a),t.flags|=1,J(e,t,r,n),t.child;case 14:return Ac(e,t,t.type,t.pendingProps,n);case 15:return jc(e,t,t.type,t.pendingProps,n);case 19:return tl(e,t,n);case 31:return Lc(e,t,n);case 22:return Mc(e,t,n,t.pendingProps);case 24:return ba(t),r=xa(Da),e===null?(a=Ha(),a===null&&(a=Zu,o=Oa(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},K(t),ma(t,Da,a)):((e.lanes&n)!==0&&(lo(e,t),_o(t,null,null,n),go()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,ma(t,Da,r),r!==a.cache&&_a(t,[Da],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),ma(t,Da,r))),J(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:ea&&Yi(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Rc(e,t),J(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function sl(e){e.flags|=4}function cl(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?Qm(t,r):Qm(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(Wd())e.flags|=8192;else throw Qa=Ja,Ka}}else e.flags&=-16777217}function ll(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!$m(t)){if(Wd())e.flags|=8192;else throw Qa=Ja,Ka}}function ul(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:st(),e.lanes|=t,dd|=t)}function dl(e,t){if(!ea)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 fl(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 pl(e,t,n){var r=t.pendingProps;switch(Xi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return fl(t),null;case 1:return fl(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ha(Da),Te(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(sa(t)?sl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,la())),fl(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(sl(t),o===null?(fl(t),cl(t,a,null,r,n)):(fl(t),ll(t,o))):o?o===e.memoizedState?(fl(t),t.flags&=-16777217):(sl(t),fl(t),ll(t,o)):(e=e.memoizedProps,e!==r&&sl(t),fl(t),cl(t,a,e,r,n)),null;case 27:if(De(t),n=Se.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&sl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return fl(t),t.subtreeFlags&=-33554433,null}e=be.current,sa(t)?aa(t,e):(e=ym(a,r,n),t.stateNode=e,sl(t))}return fl(t),t.subtreeFlags&=-33554433,null;case 5:if(De(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&sl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return fl(t),t.subtreeFlags&=-33554433,null}if(o=be.current,sa(t))aa(t,o);else{var s=pp(Se.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[yt]=t,o[bt]=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(op(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&&sl(t)}}return fl(t),t.subtreeFlags&=-33554433,cl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&sl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=Se.current,sa(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Qi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[yt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||rp(e.nodeValue,n)),e||ia(t,!0)}else e=pp(e).createTextNode(r),e[yt]=t,t.stateNode=e}return fl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=sa(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[yt]=t}else ca(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;fl(t),e=!1}else n=la(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(jo(t),t):(jo(t),null);if(t.flags&128)throw Error(i(558))}return fl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=sa(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[yt]=t}else ca(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;fl(t),a=!1}else a=la(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(jo(t),t):(jo(t),null)}return jo(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),ul(t,t.updateQueue),fl(t),null);case 4:return Te(),e===null&&qf(t.stateNode.containerInfo),t.flags|=67108864,fl(t),null;case 10:return ha(t.type),fl(t),null;case 19:if(Po(t),r=t.memoizedState,r===null)return fl(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)dl(r,!1);else{if(od!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Fo(e),o!==null){for(t.flags|=128,dl(r,!1),e=o.updateQueue,t.updateQueue=e,ul(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ai(n,e),n=n.sibling;return No(t,Mo.current&1|2),ea&&qi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&z()>_d&&(t.flags|=128,a=!0,dl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Fo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,ul(t,e),dl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!ea)return fl(t),null}else 2*z()-r.renderingStartTime>_d&&n!==536870912&&(t.flags|=128,a=!0,dl(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=z(),e.sibling=null,o=Mo.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||ea?No(t,o):(n=o,ye(To,t),ye(Mo,n),Eo===null&&(Eo=t)),ea&&qi(t,r.treeForkCount),e}return fl(t),null;case 22:case 23:return jo(t),wo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(fl(t),t.subtreeFlags&6&&(t.flags|=8192)):fl(t),n=t.updateQueue,n!==null&&ul(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ve(Va),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ha(Da),fl(t),null;case 25:return null;case 30:return t.flags|=33554432,fl(t),null}throw Error(i(156,t.tag))}function ml(e,t){switch(Xi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ha(Da),Te(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return De(t),null;case 31:if(t.memoizedState!==null){if(jo(t),t.alternate===null)throw Error(i(340));ca()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(jo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ca()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Po(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 Te(),null;case 10:return ha(t.type),null;case 22:case 23:return jo(t),wo(),e!==null&&ve(Va),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ha(Da),null;case 25:return null;default:return null}}function hl(e,t){switch(Xi(t),t.tag){case 3:ha(Da),Te();break;case 26:case 27:case 5:De(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&jo(t);break;case 13:jo(t);break;case 19:Po(t);break;case 10:ha(t.type);break;case 22:case 23:jo(t),wo(),e!==null&&ve(Va);break;case 24:ha(Da)}}function gl(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){hf(t,t.return,e)}}function _l(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){hf(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){hf(t,t.return,e)}}function vl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{yo(t,n)}catch(t){hf(e,e.return,t)}}}function yl(e,t,n){n.props=vc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){hf(e,t,n)}}function bl(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=Rp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new zp(e);m(e.child,!1,nm,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){hf(e,t,n)}}function xl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){hf(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){hf(e,t,n)}else n.current=null}}function Sl(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++)im(e.stateNode,t[n])}function Cl(e){for(var t=e.return;t!==null&&(El(t)&&im(e.stateNode,t.stateNode),!Tl(t));)t=t.return}function wl(e){for(var t=e.return;t!==null&&(El(t)&&am(e.stateNode,t.stateNode),!Tl(t));)t=t.return}function Tl(e){return e.tag===5||e.tag===3||e.tag===27}function El(e){return e&&e.tag===7&&e.stateNode!==null}function Dl(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){hf(e,e.return,t)}}function Ol(e,t,n){try{var r=e.stateNode;cp(r,e.type,n,t),r[bt]=t}catch(t){hf(e,e.return,t)}}function kl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ep(e.type)||e.tag===4}function Al(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||kl(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&&Ep(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 jl(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)),Sl(e,r),Ut=!0;else if(i!==4&&(i===27&&(Sl(e,r),r=null,Ep(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(jl(e,t,n,r),e=e.sibling;e!==null;)jl(e,t,n,r),e=e.sibling}function Ml(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Sl(e,r),Ut=!0;else if(i!==4&&(i===27&&(Sl(e,r),r=null,Ep(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Ml(e,t,n,r),e=e.sibling;e!==null;)Ml(e,t,n,r),e=e.sibling}function Nl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);op(t,r,n),t[yt]=e,t[bt]=n}catch(t){hf(e,e.return,t)}}var Pl=!1,Fl=null;function Il(e){(e.tag===30||e.subtreeFlags&33554432)&&(Pl=!0)}var Ll=null;function Rl(){var e=Ll;return Ll=null,e}var zl=0;function Bl(e,t,n,r,i){return zl=0,Vl(e.child,t,n,r,i)}function Vl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Mp(o);r.push(s),s.view&&(a=!0)}else a||Mp(o).view&&(a=!0);Pl=!0,kp(o,zl===0?t:t+`_`+zl,n),zl++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||Vl(e.child,t,n,r,i)&&(a=!0));e=e.sibling}return a}function Hl(e,t){for(;e!==null;)e.tag===5?Ap(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Hl(e.child,t)),e=e.sibling}function Ul(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Ul(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`&&(Bl(e,n,t,null,!1)||Hl(e.child,!1))}e=e.sibling}}function Wl(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`?Ul(e):Bl(e,i,a,null,!1)?(Ul(e),n.paired||t||Pd(e,r.onEnter)):Hl(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Wl(e,t),e=e.sibling;else Ul(e)}function Gl(e){if(Fl!==null&&Fl.size!==0){var t=Fl;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`&&(Bl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Pd(e,n.onShare)):Hl(e.child,!1)),t.delete(r),t.size===0)break}}}Gl(e)}e=e.sibling}}}function Kl(e){if(e.tag===30){var t=e.memoizedProps,n=mi(t,e.stateNode),r=Fl===null?void 0:Fl.get(n),i=gi(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Bl(e,n,i,null,!1)?r===void 0?Pd(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Fl.delete(n),Pd(e,t.onShare)):Hl(e.child,!1)),Fl!==null&&Gl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Kl(e),e=e.sibling;else Fl!==null&&Gl(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`&&Bl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&ql(e);e=e.sibling}}function Jl(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,Hl(e.child,!1))}Jl(e)}e=e.sibling}}function Yl(e){if(e.tag===30)e.stateNode.paired=null,Hl(e.child,!1),Jl(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Yl(e),e=e.sibling;else Jl(e)}function Xl(e){for(e=e.child;e!==null;)e.tag===30?Hl(e.child,!1):e.subtreeFlags&33554432&&Xl(e),e=e.sibling}function Zl(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&zl<a.length){var l=a[zl],u=Mp(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&&kp(c,zl===0?n:n+`_`+zl,i),s&&e.flags&4||(Ll===null&&(Ll=[]),Ll.push(c,zl===0?r:r+`_`+zl,t.memoizedProps)),zl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:Zl(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function Ql(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(Np)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;zl=0,i=Zl(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Pd(e,n.onUpdate))}else e.subtreeFlags&33554432&&Ql(e,t);e=e.sibling}}var $l=!1,eu=!1,tu=!1,nu=!1,ru=typeof WeakSet==`function`?WeakSet:Set,iu=null,au=!1,ou=!1,su=!1,cu=!1;function lu(e,t,n){if(e=e.containerInfo,dp=bh,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(fp={focusedElem:e,selectionRange:r},bh=!1,n=(n&335544064)===n,iu=t,t=n?9270:1024;iu!==null;){if(e=iu,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&Kl(r[a]);if(e.alternate===null&&e.flags&2)n&&Il(e),uu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&Kl(r),uu(n);continue}if(r!==null&&r.memoizedState!==null){n&&Il(e),uu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,iu=r):(n&&ql(e),uu(n))}}Fl=null}function uu(e){for(;iu!==null;){var t=iu,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=vc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){hf(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)om(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:om(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`&&Bl(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,iu=r;break}iu=t.return}}function du(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:ju(e,n),r&4&&gl(5,n);break;case 1:if(ju(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){hf(n,n.return,e)}else{var i=vc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){hf(n,n.return,e)}}}r&64&&vl(n),r&512&&bl(n,n.return);break;case 3:if(ju(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{yo(e,t)}catch(e){hf(n,n.return,e)}}break;case 27:t===null&&r&4&&Nl(n);case 26:case 5:ju(e,n),t===null&&r&4&&Dl(n),r&512&&bl(n,n.return);break;case 12:ju(e,n);break;case 31:ju(e,n),r&4&&bu(e,n);break;case 13:ju(e,n),r&4&&xu(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=yf.bind(null,n),fm(e,n))));break;case 22:if(r=n.memoizedState!==null||$l,!r){var a=t!==null&&t.memoizedState!==null||eu;t=$l,i=eu,$l=r,(eu=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Nu(e,n,r)):ju(e,n),$l=t,eu=i}break;case 30:ju(e,n),r&512&&bl(n,n.return);break;case 7:r&512&&bl(n,n.return);default:ju(e,n)}}function fu(e,t){for(e=e.child;e!==null;)pu(e,t),e=e.sibling}function pu(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){hf(e,e.return,t)}mu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,Ut=!0}catch(t){hf(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?Op(s,!0):Op(e.stateNode,!1)}catch(t){hf(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&fu(e,t);break;default:fu(e,t)}}function mu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:pu(n,r);break a;case 22:n.memoizedState===null&&mu(n,r);break a;default:mu(n,r)}}e=e.sibling}}function hu(e){var t=e.alternate;t!==null&&(e.alternate=null,hu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ot(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 gu=null,_u=!1;function vu(e,t,n){for(n=n.child;n!==null;)yu(e,t,n),n=n.sibling}function yu(e,t,n){if(Je&&typeof Je.onCommitFiberUnmount==`function`)try{Je.onCommitFiberUnmount(B,n)}catch{}switch(n.tag){case 26:eu||xl(n,t),vu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!eu&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:eu||xl(n,t),wl(n);var r=gu,i=_u;Ep(n.type)&&(gu=n.stateNode,_u=!1),vu(e,t,n),bm(n.stateNode,n.type,n.memoizedProps),gu=r,_u=i;break;case 5:eu||xl(n,t),wl(n);case 6:if(n.tag===6&&wl(n),r=gu,i=_u,gu=null,vu(e,t,n),gu=r,_u=i,gu!==null){if(_u)try{(gu.nodeType===9?gu.body:gu.nodeName===`HTML`?gu.ownerDocument.body:gu).removeChild(n.stateNode),Ut=!0}catch(e){hf(n,t,e)}else try{gu.removeChild(n.stateNode),Ut=!0}catch(e){hf(n,t,e)}}break;case 18:gu!==null&&(_u?(e=gu,Dp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Kh(e)):Dp(gu,n.stateNode));break;case 4:r=gu,i=_u,gu=n.stateNode.containerInfo,_u=!0,vu(e,t,n),gu=r,_u=i;break;case 0:case 11:case 14:case 15:_l(2,n,t),eu||_l(4,n,t),vu(e,t,n);break;case 1:eu||(xl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&yl(n,t,r)),vu(e,t,n);break;case 21:vu(e,t,n);break;case 22:eu=(r=eu)||n.memoizedState!==null,vu(e,t,n),eu=r;break;case 30:xl(n,t),vu(e,t,n);break;case 7:eu||xl(n,t),vu(e,t,n);break;default:vu(e,t,n)}}function bu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Kh(e)}catch(e){hf(t,t.return,e)}}}function xu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Kh(e)}catch(e){hf(t,t.return,e)}}function Su(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ru),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ru),t;default:throw Error(i(435,e.tag))}}function Cu(e,t){var n=Su(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=bf.bind(null,e,t);t.then(r,r)}})}function wu(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(Ep(l.type)){gu=l.stateNode,_u=!1;break a}break;case 5:gu=l.stateNode,_u=!1;break a;case 3:case 4:gu=l.stateNode.containerInfo,_u=!0;break a}l=l.return}if(gu===null)throw Error(i(160));yu(s,c,o),gu=null,_u=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Eu(t,e,n),t=t.sibling}var Tu=null;function Eu(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}wu(t,e,n),Du(e),a&4&&(_l(3,e,e.return),gl(3,e),_l(5,e,e.return));break;case 1:wu(t,e,n),Du(e),a&512&&(eu||r===null||xl(r,r.return)),a&64&&$l&&(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=Tu,wu(t,e,n),Du(e),a&512&&(eu||r===null||xl(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($l)e.stateNode=gp(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[Et]||r[yt]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),op(r,t,n),r[yt]=e,Nt(r),t=r;break a;case`link`:if(o=Ym(`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),op(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=Ym(`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),op(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[yt]=e,Nt(r),t=r}e.stateNode=t}}else $l||Xm(o,e.type,e.stateNode)}else e.stateNode=Wm(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&Ol(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||eu||t.parentNode.removeChild(t)):a.count--,n===null?$l||Xm(o,e.type,e.stateNode):Wm(o,n,e.memoizedProps))}break;case 27:wu(t,e,n),Du(e),a&512&&(eu||r===null||xl(r,r.return)),r!==null&&a&4&&Ol(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=tu,tu=!1,wu(t,e,n),tu=o,Du(e),a&512&&(eu||r===null||xl(r,r.return)),e.flags&32){t=e.stateNode;try{sn(t,``),Ut=!0}catch(t){hf(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Ol(e,t,r===null?t:r.memoizedProps)),a&1024&&(nu=!0);break;case 6:if(wu(t,e,n),Du(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,Ut=!0}catch(t){hf(e,e.return,t)}}break;case 3:if(Ut=!1,Jm=null,o=Tu,Tu=wm(t.containerInfo),wu(t,e,n),Tu=o,Du(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Kh(t.containerInfo)}catch(t){hf(e,e.return,t)}nu&&(nu=!1,Ou(e)),Ut=!1;break;case 4:a=tu,tu=$l,r=Wt(),o=Tu,Tu=wm(e.stateNode.containerInfo),wu(t,e,n),Du(e),Tu=o,Ut&&ou&&(su=!0),Ut=r,tu=a;break;case 12:wu(t,e,n),Du(e);break;case 31:wu(t,e,n),Du(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Cu(e,t)));break;case 13:wu(t,e,n),Du(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(hd=z()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Cu(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=$l,l=eu,u=tu;$l=c||o,tu=u||o,eu=l||s,wu(t,e,n),eu=l,tu=u,$l=c,Du(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||$l||eu||(t=s||eu,n=$l,r=eu,$l=o||$l,eu=t,Mu(e,2),$l=n,eu=r),!o&&tu||fu(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Cu(e,n))));break;case 19:wu(t,e,n),Du(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Cu(e,t)));break;case 30:a&512&&(eu||r===null||xl(r,r.return)),a=Wt(),o=ou,s=(n&335544064)===n,c=e.memoizedProps,ou=s&&gi(c.default,c.update)!==`none`,wu(t,e,n),Du(e),s&&r!==null&&Ut&&(e.flags|=4),ou=o,Ut=a;break;case 21:break;case 7:a&512&&(eu||r===null||xl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:wu(t,e,n),Du(e)}}function Du(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(kl(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(El(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(Tl(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Ml(e,Al(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(sn(l,``),n.flags&=-33),Ml(e,Al(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;jl(e,Al(e),u,s);break;default:throw Error(i(161))}}catch(t){hf(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ou(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ou(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,bh=!0,t.reset(),bh=!1),e=e.sibling}}function ku(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Au(t,e),t=t.sibling;else Ql(t,!1)}function Au(e,t){var n=e.alternate;if(n===null)Wl(e,!1);else switch(e.tag){case 3:if(cu=au=!1,Rl(),ku(t,e),!au&&!su){if(e=Ll,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Ap(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`})),cu=!0}Ll=null;break;case 5:ku(t,e);break;case 4:r=au,au=!1,ku(t,e),au&&(su=!0),au=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?ku(t,e):Wl(e,!1));break;case 30:r=au,i=Rl(),au=!1,ku(t,e),au&&(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,zl=0,t=Zl(e,n,t,o,s,a,!0),zl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Pd(e,e.memoizedProps.onUpdate),Ll=i):i!==null&&(i.push.apply(i,Ll),Ll=i),au=e.flags&32?!0:r;break;default:ku(t,e)}}function ju(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)du(e,t.alternate,t),t=t.sibling}function Mu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:_l(4,n,n.return),Mu(n,r);break;case 1:xl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&yl(n,n.return,i),Mu(n,r);break;case 27:r&2&&bm(n.stateNode,n.type,n.memoizedProps);case 5:xl(n,n.return),n.tag!==5&&n.tag!==27||wl(n),Mu(n,r);break;case 6:wl(n);break;case 26:xl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||eu||i.parentNode.removeChild(i),Mu(n,r);break;case 22:n.memoizedState===null&&Mu(n,r);break;case 30:xl(n,n.return),Mu(n,r);break;case 7:xl(n,n.return);default:Mu(n,r)}e=e.sibling}}function Nu(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:Nu(i,a,n),gl(4,a);break;case 1:if(Nu(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){hf(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++)vo(l[i],c)}catch(e){hf(r,r.return,e)}}s&&o&64&&vl(a),bl(a,a.return);break;case 27:n&2&&Nl(a);case 5:a.tag!==5&&a.tag!==27||Cl(a),Nu(i,a,n),s&&r===null&&o&4&&Dl(a),bl(a,a.return);break;case 6:Cl(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||$l||Xm(wm(c.ownerDocument),a.type,c),Nu(i,a,n),s&&r===null&&o&4&&Dl(a),bl(a,a.return);break;case 12:Nu(i,a,n);break;case 31:Nu(i,a,n),s&&o&4&&bu(i,a);break;case 13:Nu(i,a,n),s&&o&4&&xu(i,a);break;case 22:a.memoizedState===null&&Nu(i,a,n),bl(a,a.return);break;case 30:Nu(i,a,n),bl(a,a.return);break;case 7:bl(a,a.return);default:Nu(i,a,n)}t=t.sibling}}function Pu(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&&ka(n))}function Fu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ka(e))}function Iu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Lu(e,t,n,r),t=t.sibling;else i&&Xl(t)}function Lu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Yl(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Iu(e,t,n,r),a&2048&&gl(9,t);break;case 1:Iu(e,t,n,r);break;case 3:Iu(e,t,n,r),i&&cu&&(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&&ka(a)));break;case 12:if(a&2048){Iu(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){hf(t,t.return,e)}}else Iu(e,t,n,r);break;case 31:Iu(e,t,n,r);break;case 13:Iu(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&&Yl(t),o._visibility&2?Iu(e,t,n,r):(o._visibility|=2,Ru(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&Yl(s),o._visibility&2?Iu(e,t,n,r):zu(e,t)),a&2048&&Pu(s,t);break;case 24:Iu(e,t,n,r),a&2048&&Fu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Hl(a.child,!0),Hl(t.child,!0))),Iu(e,t,n,r);break;default:Iu(e,t,n,r)}}function Ru(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:Ru(a,o,s,c,i),gl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Ru(a,o,s,c,i)):u._visibility&2?Ru(a,o,s,c,i):zu(a,o),i&&l&2048&&Pu(o.alternate,o);break;case 24:Ru(a,o,s,c,i),i&&l&2048&&Fu(o.alternate,o);break;default:Ru(a,o,s,c,i)}t=t.sibling}}function zu(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:zu(n,r),i&2048&&Pu(r.alternate,r);break;case 24:zu(n,r),i&2048&&Fu(r.alternate,r);break;default:zu(n,r)}t=t.sibling}}var Bu=8192;function Vu(e,t,n){if(e.subtreeFlags&Bu)for(e=e.child;e!==null;)Hu(e,t,n),e=e.sibling}function Hu(e,t,n){switch(e.tag){case 26:Vu(e,t,n),e.flags&Bu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&th(n,e)):nh(n,Tu,e.memoizedState,e.memoizedProps));break;case 5:Vu(e,t,n),e.flags&Bu&&(e=e.stateNode,(t&335544128)===t&&th(n,e));break;case 3:case 4:var r=Tu;Tu=wm(e.stateNode.containerInfo),Vu(e,t,n),Tu=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Bu,Bu=16777216,Vu(e,t,n),Bu=r):Vu(e,t,n));break;case 30:if((e.flags&Bu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Fl===null&&(Fl=new Map),Fl.set(r,i)}Vu(e,t,n);break;default:Vu(e,t,n)}}function Uu(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 Wu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];iu=r,qu(r,e)}Uu(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Gu(e),e=e.sibling}function Gu(e){switch(e.tag){case 0:case 11:case 15:Wu(e),e.flags&2048&&_l(9,e,e.return);break;case 3:Wu(e);break;case 12:Wu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ku(e)):Wu(e);break;default:Wu(e)}}function Ku(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];iu=r,qu(r,e)}Uu(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:_l(8,t,t.return),Ku(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ku(t));break;default:Ku(t)}e=e.sibling}}function qu(e,t){for(;iu!==null;){var n=iu;switch(n.tag){case 0:case 11:case 15:_l(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:ka(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,iu=r;else a:for(n=e;iu!==null;){r=iu;var i=r.sibling,a=r.return;if(hu(r),r===n){iu=null;break a}if(i!==null){i.return=a,iu=i;break a}iu=a}}}var Ju={getCacheForType:function(e){var t=xa(Da),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return xa(Da).controller.signal}},Yu=typeof WeakMap==`function`?WeakMap:Map,Xu=0,Zu=null,Qu=null,$u=0,ed=0,td=null,nd=!1,rd=!1,id=!1,ad=0,od=0,sd=0,cd=0,ld=0,ud=0,dd=0,fd=null,pd=null,md=!1,hd=0,gd=0,_d=1/0,vd=null,yd=null,bd=0,xd=null,Sd=null,Cd=0,wd=0,Td=null,Ed=null,Dd=null,Od=null,kd=null,Ad=0,jd=null;function Md(){return Xu&2&&$u!==0?$u&-$u:R.T===null?gt():If()}function Nd(){if(ud===0){if(!($u&536870912)||ea){var e=et;et<<=1,!(et&3932160)&&(et=262144),ud=e}else ud=536870912}return e=To.current,e!==null&&(e.flags|=32),ud}function Pd(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Rp(mi(e.memoizedProps,n))),Od===null&&(Od=[]),Od.push(t.bind(null,r))}}function Fd(e,t,n){(e===Zu&&(ed===2||ed===9)||e.cancelPendingCommit!==null)&&(Hd(e,0),zd(e,$u,ud,!1)),lt(e,n),(!(Xu&2)||e!==Zu)&&(e===Zu&&(!(Xu&2)&&(cd|=n),od===4&&zd(e,$u,ud,!1)),Of(e))}function Id(e,t,n){if(Xu&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||it(e,t),a=r?Xd(e,t):Jd(e,t,!0),o=r;do{if(a===0){rd&&!r&&zd(e,t,0,!1);break}if(n=e.current.alternate,o&&!Rd(n)){a=Jd(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=fd;var l=c.current.memoizedState.isDehydrated;if(l&&(Hd(c,s).flags|=256),s=Jd(c,s,!1),s!==2&&s!==6){if(id&&!l){c.errorRecoveryDisabledLanes|=o,cd|=o,a=4;break a}o=pd,pd=a,o!==null&&(pd===null?pd=o:pd.push.apply(pd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Hd(e,0),zd(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:zd(r,t,ud,!nd);break a;case 2:pd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=hd+300-z(),10<a)){if(zd(r,t,ud,!nd),rt(r,0,!0)!==0)break a;Cd=t,r.timeoutHandle=bp(Ld.bind(null,r,n,pd,vd,md,t,ud,cd,dd,nd,o,`Throttled`,-0,0),a);break a}Ld(r,n,pd,vd,md,t,ud,cd,dd,nd,o,null,-0,0)}break}while(1);Of(e)}function Ld(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},Fl=null,Hu(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=oh.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?hd-z():(a&4194048)===a?gd-z():0,m=ih(d,m),m!==null)){Cd=a,e.cancelPendingCommit=m(rf.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),zd(e,a,o,!l);return}rf(e,t,a,n,r,i,o,s,c,l,u,d)}function Rd(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 zd(e,t,n,r){t=at(e,t),t&=~ld,t&=~cd,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Xe(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&dt(e,n,t)}function Bd(){return Xu&6?!0:(kf(0,!1),!1)}function Vd(){if(Qu!==null){if(ed===0)var e=Qu.return;else e=Qu,pa=fa=null,es(e),to=null,G=0,e=Qu;for(;e!==null;)hl(e.alternate,e),e=e.return;Qu=null}}function Hd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,xp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Cd=0,Vd(),Zu=e,Qu=n=ki(e.current,null),$u=t,ed=0,td=null,nd=!1,rd=it(e,t),id=!1,dd=ud=ld=cd=sd=od=0,pd=fd=null,md=!1,ad=at(e,t),bi(),n}function Ud(e,t){q=null,R.H=uc,t===Ga||t===qa?(t=$a(),ed=3):t===Ka?(t=$a(),ed=4):ed=t===Oc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,td=t,Qu===null&&(od=1,Sc(e,Li(t,e.current)))}function Wd(){var e=To.current;return e===null?!0:($u&4194048)===$u?Eo===null:($u&62914560)===$u||$u&536870912?e===Eo:!1}function Gd(){var e=R.H;return R.H=uc,e===null?uc:e}function Kd(){var e=R.A;return R.A=Ju,e}function qd(){od=4,nd||($u&4194048)!==$u&&To.current!==null||(rd=!0),!(sd&134217727)&&!(cd&134217727)||Zu===null||zd(Zu,$u,ud,!1)}function Jd(e,t,n){var r=Xu;Xu|=2;var i=Gd(),a=Kd();(Zu!==e||$u!==t)&&(vd=null,Hd(e,t)),t=!1;var o=od;a:do try{if(ed!==0&&Qu!==null){var s=Qu,c=td;switch(ed){case 8:Vd(),o=6;break a;case 3:case 2:case 9:case 6:To.current===null&&(t=!0);var l=ed;if(ed=0,td=null,ef(e,s,c,l),n&&rd){o=0;break a}break;default:l=ed,ed=0,td=null,ef(e,s,c,l)}}Yd(),o=od;break}catch(t){Ud(e,t)}while(1);return t&&e.shellSuspendCounter++,pa=fa=null,Xu=r,R.H=i,R.A=a,Qu===null&&(Zu=null,$u=0,bi()),o}function Yd(){for(;Qu!==null;)Qd(Qu)}function Xd(e,t){var n=Xu;Xu|=2;var r=Gd(),a=Kd();Zu!==e||$u!==t?(vd=null,_d=z()+500,Hd(e,t)):rd=it(e,t);a:do try{if(ed!==0&&Qu!==null){t=Qu;var o=td;b:switch(ed){case 1:ed=0,td=null,ef(e,t,o,1);break;case 2:case 9:if(Ya(o)){ed=0,td=null,$d(t);break}t=function(){ed!==2&&ed!==9||Zu!==e||(ed=7),Of(e)},o.then(t,t);break a;case 3:ed=7;break a;case 4:ed=5;break a;case 7:Ya(o)?(ed=0,td=null,$d(t)):(ed=0,td=null,ef(e,t,o,7));break;case 5:var s=null;switch(Qu.tag){case 26:s=Qu.memoizedState;case 5:case 27:var c=Qu;if(s?$m(s):c.stateNode.complete){ed=0,td=null;var l=c.sibling;if(l!==null)Qu=l;else{var u=c.return;u===null?Qu=null:(Qu=u,tf(u))}break b}}ed=0,td=null,ef(e,t,o,5);break;case 6:ed=0,td=null,ef(e,t,o,6);break;case 8:Vd(),od=6;break a;default:throw Error(i(462))}}Zd();break}catch(t){Ud(e,t)}while(1);return pa=fa=null,R.H=r,R.A=a,Xu=n,Qu===null?(Zu=null,$u=0,bi(),od):0}function Zd(){for(;Qu!==null&&!Re();)Qd(Qu)}function Qd(e){var t=ol(e.alternate,e,ad);e.memoizedProps=e.pendingProps,t===null?tf(e):Qu=t}function $d(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Bc(n,t,t.pendingProps,t.type,void 0,$u);break;case 11:t=Bc(n,t,t.pendingProps,t.type.render,t.ref,$u);break;case 5:es(t);var r=t;r===Qi&&(ea?(oa(r),r.tag===5&&r.stateNode!=null&&($i=r.stateNode)):(oa(r),ea=!0));default:hl(n,t),t=Qu=Ai(t,ad),t=ol(n,t,ad)}e.memoizedProps=e.pendingProps,t===null?tf(e):Qu=t}function ef(e,t,n,r){pa=fa=null,es(t),to=null,G=0;var i=t.return;try{if(Dc(e,i,t,n,$u)){od=1,Sc(e,Li(n,e.current)),Qu=null;return}}catch(t){if(i!==null)throw Qu=i,t;od=1,Sc(e,Li(n,e.current)),Qu=null;return}t.flags&32768?(ea||r===1?e=!0:rd||$u&536870912?e=!1:(nd=e=!0,(r===2||r===9||r===3||r===6)&&(r=To.current,r!==null&&r.tag===13&&(r.flags|=16384))),nf(t,e)):tf(t)}function tf(e){var t=e;do{if(t.flags&32768){nf(t,nd);return}e=t.return;var n=pl(t.alternate,t,ad);if(n!==null){Qu=n;return}if(t=t.sibling,t!==null){Qu=t;return}Qu=t=e}while(t!==null);od===0&&(od=5)}function nf(e,t){do{var n=ml(e.alternate,e);if(n!==null){n.flags&=32767,Qu=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Qu=e;return}Qu=e=n}while(e!==null);od=6,Qu=null}function rf(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do ff();while(bd!==0);if(Xu&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===Zu&&(Qu=Zu=null,$u=0),Sd=t,xd=e,Cd=n,Td=a,Ed=r,af(e,t,n,s,c,l,f)}}function af(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(wd=s,s|=yi,ut(e,n,s,r,i,a),Od=null,(n&335544064)===n?(kd=Ma(e),r=10262):(kd=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,xf(Ue,function(){return pf(),null})):(e.callbackNode=null,e.callbackPriority=0),Pl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=R.T,R.T=null,i=pe.p,pe.p=2,a=Xu,Xu|=4;try{lu(e,t,n)}finally{Xu=a,pe.p=i,R.T=r}}bd=1,Pl?Dd=Ip(o,e.containerInfo,kd,cf,lf,sf,uf,pf,of,null,null):(cf(),lf(),uf())}function of(e){if(bd!==0){var t=xd.onRecoverableError;t(e,{componentStack:null})}}function sf(){bd===3&&(bd=0,Au(Sd,xd),bd=4)}function cf(){if(bd===1){bd=0;var e=xd,t=Sd,n=Cd,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=R.T,R.T=null;var i=pe.p;pe.p=2;var a=Xu;Xu|=4;try{ou=su=!1,Eu(t,e,n),n=fp;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}}bh=!!dp,fp=dp=null}finally{Xu=a,pe.p=i,R.T=r}}e.current=t,bd=2}}function lf(){if(bd===2){bd=0;var e=xd,t=Sd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=R.T,R.T=null;var r=pe.p;pe.p=2;var i=Xu;Xu|=4;try{du(e,t.alternate,t)}finally{Xu=i,pe.p=r,R.T=n}}bd=3}}function uf(){if(bd===4||bd===3){bd=0;var e=Dd;Dd=null,ze();var t=xd,n=Sd,r=Cd,i=Ed,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?bd=5:(bd=0,Sd=xd=null,df(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(yd=null),ht(r),n=n.stateNode,Je&&typeof Je.onCommitFiberRoot==`function`)try{Je.onCommitFiberRoot(B,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=R.T,a=pe.p,pe.p=2,R.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{R.T=n,pe.p=a}}if(i=Od,o=kd,kd=null,i!==null&&(Od=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);Cd&3&&ff(),Of(t),a=t.pendingLanes,r&261930&&a&42?t===jd?Ad++:(Ad=0,jd=t):(Ad=0,jd=null),kf(0,!1)}}function df(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ka(t)))}function ff(){return Dd!==null&&(Dd.skipTransition(),Dd=null),cf(),lf(),uf(),pf()}function pf(){if(bd!==5)return!1;var e=xd,t=wd;wd=0;var n=ht(Cd),r=R.T,a=pe.p;try{pe.p=32>n?32:n,R.T=null,n=Td,Td=null;var o=xd,s=Cd;if(bd=0,Sd=xd=null,Cd=0,Xu&6)throw Error(i(331));var c=Xu;if(Xu|=4,Gu(o.current),Lu(o,o.current,s,n),Xu=c,kf(0,!1),Je&&typeof Je.onPostCommitFiberRoot==`function`)try{Je.onPostCommitFiberRoot(B,o)}catch{}return!0}finally{pe.p=a,R.T=r,df(e,t)}}function mf(e,t,n){t=Li(n,t),t=wc(e.stateNode,t,2),e=fo(e,t,2),e!==null&&(lt(e,2),Of(e))}function hf(e,t,n){if(e.tag===3)mf(e,e,n);else for(;t!==null;){if(t.tag===3){mf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(yd===null||!yd.has(r))){e=Li(n,e),n=Tc(2),r=fo(t,n,2),r!==null&&(Ec(n,r,t,e),lt(r,2),Of(r));break}}t=t.return}}function gf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Yu;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)||(id=!0,i.add(n),e=_f.bind(null,e,t,n),t.then(e,e))}function _f(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Zu===e&&($u&n)===n&&(od===4||od===3&&($u&62914560)===$u&&300>z()-hd?Xu&2?ld|=n:Hd(e,0):ld|=n,dd===$u&&(dd=0)),Of(e)}function vf(e,t){t===0&&(t=st()),e=Ci(e,t),e!==null&&(lt(e,t),Of(e))}function yf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),vf(e,n)}function bf(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),vf(e,n)}function xf(e,t){return Ie(e,t)}var Sf=null,Cf=null,wf=!1,Tf=!1,Ef=!1,Df=0;function Of(e){e!==Cf&&e.next===null&&(Cf===null?Sf=Cf=e:Cf=Cf.next=e),Tf=!0,wf||(wf=!0,Ff())}function kf(e,t){if(!Ef&&Tf){Ef=!0;do for(var n=!1,r=Sf;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-Xe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Pf(r,a))}else a=$u,a=rt(r,r===Zu?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||it(r,a)||(n=!0,Pf(r,a))}r=r.next}while(n);Ef=!1}}function Af(){jf()}function jf(){Tf=wf=!1;var e=0;Df!==0&&yp()&&(e=Df);for(var t=z(),n=null,r=Sf;r!==null;){var i=r.next,a=Mf(r,t);a===0?(r.next=null,n===null?Sf=i:n.next=i,i===null&&(Cf=n)):(n=r,(e!==0||a&3)&&(Tf=!0)),r=i}bd!==0&&bd!==5||kf(e,!1),Df!==0&&(Df=0)}function Mf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Xe(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=ot(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Zu,n=$u,n=rt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(ed===2||ed===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Le(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||it(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Le(r),ht(n)){case 2:case 8:n=He;break;case 32:n=Ue;break;case 268435456:n=Ge;break;default:n=Ue}return r=Nf.bind(null,e),n=Ie(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Le(r),e.callbackPriority=2,e.callbackNode=null,2}function Nf(e,t){if(bd!==0&&bd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(ff()&&e.callbackNode!==n)return null;var r=$u;return r=rt(e,e===Zu?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Id(e,r,t),Mf(e,z()),e.callbackNode!=null&&e.callbackNode===n?Nf.bind(null,e):null)}function Pf(e,t){if(ff())return null;Id(e,t,!0)}function Ff(){wp(function(){Xu&6?Ie(Ve,Af):jf()})}function If(){if(Df===0){var e=Fa;e===0&&(e=V,V<<=1,!(V&261888)&&(V=256)),Df=e}return Df}function Lf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:mn(e)}function Rf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Lf((i[bt]||null).action),o=r.submitter;o&&(t=(t=o[bt]||null)?Lf(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(Df!==0){var e=new FormData(i,o);Xs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),Xs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var zf=0;zf<di.length;zf++){var Bf=di[zf];fi(Bf.toLowerCase(),`on`+(Bf[0].toUpperCase()+Bf.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`),Rt(`onMouseEnter`,[`mouseout`,`mouseover`]),Rt(`onMouseLeave`,[`mouseout`,`mouseover`]),Rt(`onPointerEnter`,[`pointerout`,`pointerover`]),Rt(`onPointerLeave`,[`pointerout`,`pointerover`]),Lt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Lt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Lt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Lt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Lt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Lt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Vf=`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(` `),Hf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Vf));function Uf(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 Wf(e,t){var n=t[St];n===void 0&&(n=t[St]=new Set);var r=e+`__bubble`;n.has(r)||(Jf(t,e,2,!1),n.add(r))}function Gf(e,t,n){var r=0;t&&(r|=4),Jf(n,e,r,t)}var Kf=`_reactListening`+Math.random().toString(36).slice(2);function qf(e){if(!e[Kf]){e[Kf]=!0,Ft.forEach(function(t){t!==`selectionchange`&&(Hf.has(t)||Gf(t,!1,e),Gf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Kf]||(t[Kf]=!0,Gf(`selectionchange`,!1,t))}}function Jf(e,t,n,r){switch(Dh(t)){case 2:var i=xh;break;case 8:i=Sh;break;default:i=Ch}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 Yf(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=kt(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(Xf(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)&&(kt(u)||u[xt]))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?kt(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:jt(c),h=l==null?u:jt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,kt(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,Qf):null,c!==null&&$f(s,u,c,d,!1),l!==null&&f!==null&&$f(s,f,l,d,!0)))}a:{if(c=r?jt(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?jt(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=Zf(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=Zf(r,`onBeforeInput`),0<b.length&&(v=new Jn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),Rf(s,e,r,n,i)}Uf(s,t)})}function Xf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zf(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(Xf(e,i,a)),i=Cn(e,t),i!=null&&r.push(Xf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Qf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function $f(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(Xf(n,l,c))):i||(l=Cn(n,a),l!=null&&o.push(Xf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var ep=/\r\n?/g,tp=/\u0000|\uFFFD/g;function np(e){return(typeof e==`string`?e:``+e).replace(ep,`
10
- `).replace(tp,``)}function rp(e,t){return t=np(t),np(e)===t}function ip(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`:Kt(e,`class`,r);break;case`tabIndex`:Kt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Kt(e,n,r);break;case`style`:un(e,r,o);return;case`data`:if(t!==`object`){Kt(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`&&ip(e,t,`name`,a.name,a,null),ip(e,t,`formEncType`,a.formEncType,a,null),ip(e,t,`formMethod`,a.formMethod,a,null),ip(e,t,`formTarget`,a.formTarget,a,null)):(ip(e,t,`encType`,a.encType,a,null),ip(e,t,`method`,a.method,a,null),ip(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&&Wf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Wf(`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`:Wf(`beforetoggle`,e),Wf(`toggle`,e),Gt(e,`popover`,r);break;case`xlinkActuate`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:qt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:qt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:qt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Gt(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,Gt(e,n,r);else return}Ut=!0}function ap(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&&Wf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Wf(`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(!It.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[bt]||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}Ut=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Gt(e,n,r)}return}Ut=!0}function op(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Wf(`error`,e),Wf(`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:ip(e,t,o,s,n,null)}}a&&ip(e,t,`srcSet`,n.srcSet,n,null),r&&ip(e,t,`src`,n.src,n,null);return;case`input`:Wf(`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:ip(e,t,r,d,n,null)}}nn(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Wf(`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:ip(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 Wf(`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:ip(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:ip(e,t,l,r,n,null)}return;case`dialog`:Wf(`beforetoggle`,e),Wf(`toggle`,e),Wf(`cancel`,e),Wf(`close`,e);break;case`iframe`:case`object`:Wf(`load`,e);break;case`video`:case`audio`:for(r=0;r<Vf.length;r++)Wf(Vf[r],e);break;case`image`:Wf(`error`,e),Wf(`load`,e);break;case`details`:Wf(`toggle`,e);break;case`embed`:case`source`:case`link`:Wf(`error`,e),Wf(`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:ip(e,t,u,r,n,null)}return;default:if(dn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&ap(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&ip(e,t,c,r,n,null))}var sp={};function cp(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)||ip(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&&(Ut=!0),o=m;break;case`name`:m!==f&&(Ut=!0),a=m;break;case`checked`:m!==f&&(Ut=!0),u=m;break;case`defaultChecked`:m!==f&&(Ut=!0),d=m;break;case`value`:m!==f&&(Ut=!0),s=m;break;case`defaultValue`:m!==f&&(Ut=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&ip(e,t,p,m,r,f)}}tn(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)||ip(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&&(Ut=!0),p=o;break;case`defaultValue`:o!==l&&(Ut=!0),c=o;break;case`multiple`:o!==l&&(Ut=!0),s=o;default:o!==l&&ip(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:ip(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&&(Ut=!0),p=a;break;case`defaultValue`:a!==o&&(Ut=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&ip(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:ip(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&&(Ut=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:ip(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)&&ip(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:ip(e,t,u,p,r,m)}return;default:if(dn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&ap(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||ap(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&ip(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||ip(e,t,f,p,r,m)}function lp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function up(){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&&lp(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&&lp(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 dp=null,fp=null;function pp(e){return e.nodeType===9?e:e.ownerDocument}function mp(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 hp(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 gp(e,t,n,r){return n=pp(n).createElement(e),n[yt]=r,n[bt]=t,op(n,e,t),Nt(n),n}function _p(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 vp=null;function yp(){var e=window.event;return e&&e.type===`popstate`?e!==vp&&(vp=e,!0):(vp=null,!1)}var bp=typeof setTimeout==`function`?setTimeout:void 0,xp=typeof clearTimeout==`function`?clearTimeout:void 0,Sp=typeof Promise==`function`?Promise:void 0,Cp=typeof requestAnimationFrame==`function`?requestAnimationFrame:bp,wp=typeof queueMicrotask==`function`?queueMicrotask:Sp===void 0?bp:function(e){return Sp.resolve(null).then(e).catch(Tp)};function Tp(e){setTimeout(function(){throw e})}function Ep(e){return e===`head`}function Dp(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),Kh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)xm(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,xm(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Et]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&xm(e.ownerDocument.body)}n=i}while(n);Kh(t)}function Op(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 kp(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 Ap(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 jp(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 Mp(e){return jp(e.getBoundingClientRect(),getComputedStyle(e),e)}function Np(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return jp(t,n,e)}function Pp(e){return e.documentElement.clientHeight}function Fp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Ip(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`&&(Pp(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+=eh(f),u>rh){s.length=o;break}f=new Promise(Fp.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 Lp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Lp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:D({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Lp.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},Lp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Rp(e){return{name:e,group:new Lp(`group`,e),imagePair:new Lp(`image-pair`,e),old:new Lp(`old`,e),new:new Lp(`new`,e)}}function zp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}zp.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(Wp(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=Hp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),m(this._fragmentFiber.child,!1,Bp,e,s,r)}this._eventListeners=a}};function Bp(e,t,n,r){return b(e).addEventListener(t,n,r),!1}zp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Wp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Hp(i.optionsOrUseCapture),m(this._fragmentFiber.child,!1,Vp,e,n,i),r.splice(t,1),a!==null&&a()}};function Vp(e,t,n,r){return b(e).removeEventListener(t,n,r),!1}function Hp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Up(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Wp(e,t,n,r){if(e.length===0)return-1;r=Up(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Up(a.optionsOrUseCapture)===r)return i}return-1}zp.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,Hp(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,Hp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},zp.prototype.focus=function(e){m(this._fragmentFiber.child,!0,Gp,e,void 0,void 0)};function Gp(e,t){return e.tag!==6&&(e=b(e),_m(e,t))}zp.prototype.focusLast=function(e){var t=[];m(this._fragmentFiber.child,!0,Kp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Gp(t[n],e);n--);};function Kp(e,t){return t.push(e),!1}zp.prototype.blur=function(){var e=g(this._fragmentFiber);e!==null&&(e=b(e),e=pp(e).activeElement,e!==null&&m(this._fragmentFiber.child,!1,qp,e,void 0,void 0))};function qp(e,t){return e.tag!==6&&(e=b(e),e===t||e.contains(t)?(t.blur(),!0):!1)}zp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),m(this._fragmentFiber.child,!1,Jp,e,void 0,void 0)};function Jp(e,t){return e.tag!==6&&(e=b(e),t.observe(e),!1)}zp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),m(this._fragmentFiber.child,!1,Yp,e,void 0,void 0);for(var n=t=0;n<Xp.length;n++){var r=Xp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Xp[t++]=r}Xp.length=t}};function Yp(e,t){return e.tag!==6&&(e=b(e),t.unobserve(e),!1)}var Xp=[],Zp=!1;function Qp(e,t,n){Xp.push({fragmentInstance:e,observer:t,instance:n}),Zp||(Zp=!0,vm(function(){Zp=!1;var e=Xp;Xp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}zp.prototype.getClientRects=function(){var e=[];return m(this._fragmentFiber.child,!1,$p,e,void 0,void 0),e};function $p(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}zp.prototype.getRootNode=function(e){var t=g(this._fragmentFiber);return t===null?this:b(t).getRootNode(e)},zp.prototype.compareDocumentPosition=function(e){var t=g(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];m(this._fragmentFiber.child,!1,Kp,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||em(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function em(e,t,n,r,i){var a=kt(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 tm(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)}zp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];m(this._fragmentFiber.child,!1,Kp,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),tm(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),tm(a,n)):b(a).scrollIntoView(e),r+=n?-1:1}};function nm(e,t){return e=b(e),rm(e,t),!1}function rm(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function im(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,Hp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Xp.length;i++){var a=Xp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Xp[r++]=a)}Xp.length=r,n.observe(e)}),rm(e,t))}function am(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,Hp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Qp(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function om(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`:om(n),Ot(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function sm(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[Et])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=pm(e.nextSibling),e===null)break}return null}function cm(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=pm(e.nextSibling),e===null))return null;return e}function lm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=pm(e.nextSibling),e===null))return null;return e}function um(e){return e.data===`$?`||e.data===`$~`}function dm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function fm(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 pm(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 mm=null;function hm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return pm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function gm(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 _m(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 vm(e){Cp(function(){Cp(function(t){return e(t)})})}function ym(e,t,n){switch(t=pp(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 bm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&ip(e,t,r,null,sp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===hn&&(e.onclick=null),Ot(e)}function xm(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ot(e)}var Sm=new Map,Cm=new Set;function wm(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 Tm=pe.d;pe.d={f:Em,r:Dm,D:Am,C:jm,L:Mm,m:Nm,X:Fm,S:Pm,M:Im};function Em(){var e=Tm.f(),t=Bd();return e||t}function Dm(e){var t=At(e);t!==null&&t.tag===5&&t.type===`form`?Qs(t):Tm.r(e)}var Om=typeof document>`u`?null:document;function km(e,t,n){var r=Om;if(r&&typeof t==`string`&&t){var i=en(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Cm.has(i)||(Cm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),op(t,`link`,e),Nt(t),r.head.appendChild(t)))}}function Am(e){Tm.D(e),km(`dns-prefetch`,e,null)}function jm(e,t){Tm.C(e,t),km(`preconnect`,e,t)}function Mm(e,t,n){Tm.L(e,t,n);var r=Om;if(r&&e&&t){var i=`link[rel="preload"][as="`+en(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+en(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+en(n.imageSizes)+`"]`)):i+=`[href="`+en(e)+`"]`;var a=i;switch(t){case`style`:a=Rm(e);break;case`script`:a=Hm(e)}if(!(Sm.has(a)||(e=D({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Sm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(zm(a))||t===`script`&&r.querySelector(Um(a))))){var o=r.createElement(`link`);op(o,`link`,e),t===`style`&&(o[Dt]=!0,o.onload=o.onerror=function(){Pt(o)}),Nt(o),r.head.appendChild(o)}}}function Nm(e,t){Tm.m(e,t);var n=Om;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+en(r)+`"][href="`+en(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Hm(e)}if(!Sm.has(a)&&(e=D({rel:`modulepreload`,href:e},t),Sm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Um(a)))return}r=n.createElement(`link`),op(r,`link`,e),Nt(r),n.head.appendChild(r)}}}function Pm(e,t,n){Tm.S(e,t,n);var r=Om;if(r&&e){var i=Mt(r).hoistableStyles,a=Rm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(zm(a)))s.loading=5;else{e=D({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Sm.get(a))&&Km(e,n);var c=o=r.createElement(`link`);Nt(c),op(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,Gm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Fm(e,t){Tm.X(e,t);var n=Om;if(n&&e){var r=Mt(n).hoistableScripts,i=Hm(e),a=r.get(i);a||(a=n.querySelector(Um(i)),a||(e=D({src:e,async:!0},t),(t=Sm.get(i))&&qm(e,t),a=n.createElement(`script`),Nt(a),op(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Im(e,t){Tm.M(e,t);var n=Om;if(n&&e){var r=Mt(n).hoistableScripts,i=Hm(e),a=r.get(i);a||(a=n.querySelector(Um(i)),a||(e=D({src:e,async:!0,type:`module`},t),(t=Sm.get(i))&&qm(e,t),a=n.createElement(`script`),Nt(a),op(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Lm(e,t,n,r){var a=(a=Se.current)?wm(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=Rm(n.href),t=Mt(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=Rm(n.href);var o=Mt(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(zm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=Sm.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},Sm.set(e,o)),Vm(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=Hm(n),t=Mt(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 Rm(e){return`href="`+en(e)+`"`}function zm(e){return`link[rel="stylesheet"][`+e+`]`}function Bm(e){return D({},e,{"data-precedence":e.precedence,precedence:null})}function Vm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Dt]){r.loading=1;return}}else t=e.createElement(`link`),t[Dt]=!0,t.onload=t.onerror=Pt.bind(null,t),op(t,`link`,n),Nt(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 Hm(e){return`[src="`+en(e)+`"]`}function Um(e){return`script[async]`+e}function Wm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+en(n.href)+`"]`);if(r)return t.instance=r,Nt(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`),Nt(r),op(r,`style`,a),Gm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Rm(n.href);var o=e.querySelector(zm(a));if(o)return t.state.loading|=4,t.instance=o,Nt(o),o;r=Bm(n),(a=Sm.get(a))&&Km(r,a),o=(e.ownerDocument||e).createElement(`link`),Nt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),op(o,`link`,r),t.state.loading|=4,Gm(o,n.precedence,e),t.instance=o;case`script`:return o=Hm(n.src),(a=e.querySelector(Um(o)))?(t.instance=a,Nt(a),a):(r=n,(a=Sm.get(o))&&(r=D({},n),qm(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Nt(a),op(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,Gm(r,n.precedence,e));return t.instance}function Gm(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 Km(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function qm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Jm=null;function Ym(e,t,n){if(Jm===null){var r=new Map,i=Jm=new Map;i.set(n,r)}else i=Jm,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[Et]||a[yt]||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 Xm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Zm(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 Qm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function $m(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function eh(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function th(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=eh(t),e.suspenseyImages.push(t)),e=sh.bind(e),t.decode().then(e,e))}function nh(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=Rm(r.href),a=t.querySelector(zm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=oh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Nt(a);return}a=t.ownerDocument||t,r=Bm(r),(i=Sm.get(i))&&Km(r,i),a=a.createElement(`link`),Nt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),op(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=oh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var rh=0;function ih(e,t){return e.stylesheets&&e.count===0&&lh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&lh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&rh===0&&(rh=62500*up());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&lh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>rh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function ah(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)lh(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function oh(){this.count--,ah(this)}function sh(){this.imgCount--,ah(this)}var ch=null;function lh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ch=new Map,t.forEach(uh,e),ch=null,oh.call(e))}function uh(e,t){if(!(t.state.loading&4)){var n=ch.get(e);if(n)var r=n.get(null);else{n=new Map,ch.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=oh.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 dh={$$typeof:F,Provider:null,Consumer:null,_currentValue:me,_currentValue2:me,_threadCount:0};function fh(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=ct(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ct(0),this.hiddenUpdates=ct(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 ph(e,t,n,r,i,a,o,s,c,l,u,d){return e=new fh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Di(3,null,null,t),e.current=a,a.stateNode=e,t=Oa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},K(a),e}function mh(e){return e?(e=W,e):W}function hh(e,t,n,r,i,a){i=mh(i),r.context===null?r.context=i:r.pendingContext=i,r=uo(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=fo(e,r,t),n!==null&&(Fd(n,e,t),po(n,e,t))}function gh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function _h(e,t){gh(e,t),(e=e.alternate)&&gh(e,t)}function vh(e){if(e.tag===13||e.tag===31){var t=Ci(e,67108864);t!==null&&Fd(t,e,67108864),_h(e,67108864)}}function yh(e){if(e.tag===13||e.tag===31){var t=Md();t=mt(t);var n=Ci(e,t);n!==null&&Fd(n,e,t),_h(e,t)}}var bh=!0;function xh(e,t,n,r){var i=R.T;R.T=null;var a=pe.p;try{pe.p=2,Ch(e,t,n,r)}finally{pe.p=a,R.T=i}}function Sh(e,t,n,r){var i=R.T;R.T=null;var a=pe.p;try{pe.p=8,Ch(e,t,n,r)}finally{pe.p=a,R.T=i}}function Ch(e,t,n,r){if(bh){var i=wh(r);if(i===null)Yf(e,t,r,Th,n),Ih(e,r);else if(Rh(i,e,t,n,r))r.stopPropagation();else if(Ih(e,r),t&4&&-1<Fh.indexOf(e)){for(;i!==null;){var a=At(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=nt(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Xe(o);s.entanglements[1]|=c,o&=~c}Of(a),!(Xu&6)&&(_d=z()+500,kf(0,!1))}}break;case 31:case 13:s=Ci(a,2),s!==null&&Fd(s,a,2),Bd(),_h(a,2)}if(a=wh(r),a===null&&Yf(e,t,r,Th,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Yf(e,t,r,null,n)}}function wh(e){return e=_n(e),Eh(e)}var Th=null;function Eh(e){if(Th=null,e=kt(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 Th=e,null}function Dh(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`fullscreenerror`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Be()){case Ve:return 2;case He:return 8;case Ue:case We:return 32;case Ge:return 268435456;default:return 32}default:return 32}}var Oh=!1,kh=null,Ah=null,jh=null,Mh=new Map,Nh=new Map,Ph=[],Fh=`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 Ih(e,t){switch(e){case`focusin`:case`focusout`:kh=null;break;case`dragenter`:case`dragleave`:Ah=null;break;case`mouseover`:case`mouseout`:jh=null;break;case`pointerover`:case`pointerout`:Mh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Nh.delete(t.pointerId)}}function Lh(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=At(t),t!==null&&vh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Rh(e,t,n,r,i){switch(t){case`focusin`:return kh=Lh(kh,e,t,n,r,i),!0;case`dragenter`:return Ah=Lh(Ah,e,t,n,r,i),!0;case`mouseover`:return jh=Lh(jh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Mh.set(a,Lh(Mh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Nh.set(a,Lh(Nh.get(a)||null,e,t,n,r,i)),!0}return!1}function zh(e){var t=kt(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,_t(e.priority,function(){yh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,_t(e.priority,function(){yh(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 Bh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=wh(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=At(n),t!==null&&vh(t),e.blockedOn=n,!1;t.shift()}return!0}function Vh(e,t,n){Bh(e)&&n.delete(t)}function Hh(){Oh=!1,kh!==null&&Bh(kh)&&(kh=null),Ah!==null&&Bh(Ah)&&(Ah=null),jh!==null&&Bh(jh)&&(jh=null),Mh.forEach(Vh),Nh.forEach(Vh)}function Uh(e,n){e.blockedOn===n&&(e.blockedOn=null,Oh||(Oh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Hh)))}var Wh=null;function Gh(e){Wh!==e&&(Wh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Wh===e&&(Wh=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(Eh(r||n)===null)continue;break}var a=At(n);a!==null&&(e.splice(t,3),t-=3,Xs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Kh(e){function t(t){return Uh(t,e)}kh!==null&&Uh(kh,e),Ah!==null&&Uh(Ah,e),jh!==null&&Uh(jh,e),Mh.forEach(t),Nh.forEach(t);for(var n=0;n<Ph.length;n++){var r=Ph[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ph.length&&(n=Ph[0],n.blockedOn===null);)zh(n),n.blockedOn===null&&Ph.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[bt]||null;if(typeof a==`function`)o||Gh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[bt]||null)s=o.formAction;else if(Eh(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Gh(n)}}}function qh(){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 Jh(e){this._internalRoot=e}Yh.prototype.render=Jh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;hh(n,Md(),e,t,null,null)},Yh.prototype.unmount=Jh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;hh(e.current,2,null,e,null,null),Bd(),t[xt]=null}};function Yh(e){this._internalRoot=e}Yh.prototype.unstable_scheduleHydration=function(e){if(e){var t=gt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ph.length&&t!==0&&t<Ph[n].priority;n++);Ph.splice(n,0,e),n===0&&zh(e)}};var Xh=n.version;if(Xh!==`19.3.1`)throw Error(i(527,Xh,`19.3.1`));pe.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 Zh={bundleType:0,version:`19.3.1`,rendererPackageName:`react-dom`,currentDispatcherRef:R,reconcilerVersion:`19.3.1`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Qh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qh.isDisabled&&Qh.supportsFiber)try{B=Qh.inject(Zh),Je=Qh}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=yc,s=bc,c=xc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ph(e,1,!1,null,null,n,r,null,o,s,c,qh),e[xt]=t.current,qf(e),new Jh(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=_(),b=`react-aria-clear-focus`,x=`react-aria-focus`;function S(e){if(typeof window>`u`||window.navigator==null)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function C(e){return typeof window<`u`&&window.navigator!=null&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function w(e){let t=null;return()=>(t??=e(),t)}var T=w(function(){return C(/^Mac/i)}),E=w(function(){return C(/^iPhone/i)}),D=w(function(){return C(/^iPad/i)||T()&&navigator.maxTouchPoints>1}),O=w(function(){return E()||D()}),k=w(function(){return T()||O()}),A=w(function(){return S(/AppleWebKit/i)&&(O()||!j())}),j=w(function(){return S(/Chrome|CriOS|CrMo/i)}),M=w(function(){return S(/Android/i)}),N=w(function(){return S(/(Firefox|FxiOS)/i)});function P(e){if(I())e.focus({preventScroll:!0});else{let t=ee(e);e.focus(),te(t)}}var F=null;function I(){if(F==null){F=!1;try{document.createElement(`div`).focus({get preventScroll(){return F=!0,!0}})}catch{}}return F}function ee(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function te(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}var ne=(0,v.createContext)({isNative:!0,open:oe,useHref:e=>e});function re(){return(0,v.useContext)(ne)}function ie(e,t,n=!0){let{metaKey:r,ctrlKey:i,altKey:a,shiftKey:o}=t;!A()&&N()&&window.event?.type?.startsWith(`key`)&&e.target===`_blank`&&(T()?r=!0:i=!0);let s=A()&&T()&&!D()?new KeyboardEvent(`keydown`,{keyIdentifier:`Enter`,metaKey:r,ctrlKey:i,altKey:a,shiftKey:o}):new MouseEvent(`click`,{metaKey:r,ctrlKey:i,altKey:a,shiftKey:o,detail:1,bubbles:!0,cancelable:!0});ie.isOpening=n,P(e),e.dispatchEvent(s),ie.isOpening=!1}ie.isOpening=!1;function ae(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute(`data-href`)){let n=document.createElement(`a`);n.href=e.getAttribute(`data-href`),e.hasAttribute(`data-target`)&&(n.target=e.getAttribute(`data-target`)),e.hasAttribute(`data-rel`)&&(n.rel=e.getAttribute(`data-rel`)),e.hasAttribute(`data-download`)&&(n.download=e.getAttribute(`data-download`)),e.hasAttribute(`data-ping`)&&(n.ping=e.getAttribute(`data-ping`)),e.hasAttribute(`data-referrer-policy`)&&(n.referrerPolicy=e.getAttribute(`data-referrer-policy`)),e.appendChild(n),t(n),e.removeChild(n)}}function oe(e,t){ae(e,e=>ie(e,t))}function se(e){let t=re().useHref(e?.href??``),n={};if(e)for(let r of[`href`,`target`,`rel`,`download`,`ping`,`referrerPolicy`])r in e&&e[r]!==void 0&&(n[r]=r===`href`?t:e[r]);return n}var L=typeof document<`u`?v.useLayoutEffect:()=>{},ce={prefix:String(Math.round(Math.random()*1e10)),current:0},le=v.createContext(ce),ue=v.createContext(!1);typeof window<`u`&&window.document&&window.document.createElement;var de=new WeakMap;function fe(e=!1){let t=(0,v.useContext)(le),n=(0,v.useRef)(null);if(n.current===null&&!e){let e=v.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(e){let n=de.get(e);n==null?de.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,de.delete(e))}n.current=++t.current}return n.current}function R(e){let t=(0,v.useContext)(le),n=fe(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function pe(e){let t=v.useId(),[n]=(0,v.useState)(ve()),r=n?`react-aria`:`react-aria${ce.prefix}`;return e||`${r}-${t}`}var me=typeof v.useId==`function`?pe:R;function he(){return!1}function ge(){return!0}function _e(e){return()=>{}}function ve(){return typeof v.useSyncExternalStore==`function`?v.useSyncExternalStore(_e,he,ge):(0,v.useContext)(ue)}function ye(e){let[t,n]=(0,v.useState)(e),r=(0,v.useRef)(t),i=(0,v.useRef)(null),a=(0,v.useRef)(()=>{if(!i.current)return;let e=i.current.next();if(e.done){i.current=null;return}r.current===e.value?a.current():n(e.value)});return L(()=>{r.current=t,i.current&&a.current()}),[t,(0,v.useCallback)(e=>{i.current=e(r.current),a.current()},[a])]}var be=!!(typeof window<`u`&&window.document&&window.document.createElement),xe=new Map,Se;typeof FinalizationRegistry<`u`&&(Se=new FinalizationRegistry(e=>{xe.delete(e)}));var Ce=new WeakMap;function we(e){let[t,n]=(0,v.useState)(e),r=(0,v.useRef)(null),i=me(t),a=(0,v.useRef)(null),o=Ce.get(a);if(Se&&o!==i&&(o!=null&&Se.unregister(a),Se.register(a,i,a),Ce.set(a,i)),be){let e=xe.get(i);e&&!e.includes(r)?e.push(r):xe.set(i,[r])}return L(()=>{let e=i;return()=>{Se&&(Se.unregister(a),Ce.delete(a)),xe.delete(e)}},[i]),(0,v.useEffect)(()=>{let e=r.current;return e&&n(e),()=>{e&&(r.current=null)}}),i}function Te(e,t){if(e===t)return e;let n=xe.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=xe.get(t);return r?(r.forEach(t=>t.current=e),e):t}function Ee(e=[]){let t=we(),[n,r]=ye(t),i=(0,v.useCallback)(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return L(i,[t,i,...e]),n}function De(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}var Oe=e=>je(e)?e.document:Me(e)?e:e?.ownerDocument??(typeof document<`u`?document:void 0),ke=e=>Oe(e)?.defaultView??(typeof window<`u`?window:void 0);function Ae(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function je(e){return typeof e==`object`&&!!e&&`window`in e&&e.window===e}function Me(e){return Ae(e)&&e.nodeType===9}function Ne(e){return Ae(e)&&e.nodeType===11&&`host`in e}function Pe(e,t,n,r){if(n==null||e==null)return()=>{};let i=Array.isArray(e)?e:[e];for(let e of i)e.addEventListener(t,n,r);return()=>{for(let e of i)e.removeEventListener(t,n,r)}}function Fe(e,t,n,r){if(e==null)return()=>{};let i=[],a=Array.isArray(e)?e:[e];for(let e of a){let a=e.style.getPropertyValue(t),o=e.style.getPropertyPriority(t);e.style.setProperty(t,n,r),i.unshift(()=>{a?e.style.setProperty(t,a,o):e.style.removeProperty(t)})}return()=>{for(let e of i)e()}}var Ie=!1;function Le(){return Ie}function Re(e,t){if(!Le())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n=typeof n.assignedElements!=`function`&&n.assignedSlot?.parentNode?n.assignedSlot.parentNode:Ne(n)?n.host:n.parentNode}return!1}var ze=(e=document)=>{if(!Le())return e.activeElement;let t=e.activeElement;for(;t&&`shadowRoot`in t&&t.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t};function z(e){if(Le()&&e.target instanceof Element&&e.target.shadowRoot){if(`composedPath`in e)return e.composedPath()[0]??null;if(`composedPath`in e.nativeEvent)return e.nativeEvent.composedPath()[0]??null}return e.target}function Be(e,t){if(t===null)return[];t??=ke(e);let n=[t];if(!Le()||!e||e===t)return n;let r=`getRootNode`in t?t.getRootNode():null,i=e.getRootNode()??null;for(;Ne(i)&&i!==r;)n.push(i),i=i.host.getRootNode();return n}function Ve(e){if(!e)return!1;let t=e.getRootNode(),n=ke(e);if(!(t instanceof n.Document||t instanceof n.ShadowRoot))return!1;let r=t.activeElement;return r!=null&&e.contains(r)}var He=class{constructor(e,t,n,r){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=e=>{if(e.nodeType===Node.ELEMENT_NODE){let t=e.shadowRoot;if(t){let e=this._doc.createTreeWalker(t,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(e),NodeFilter.FILTER_ACCEPT}if(typeof this.filter==`function`)return this.filter(e);if(this.filter?.acceptNode)return this.filter.acceptNode(e);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=r??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,n,this._acceptNode));let i=t.shadowRoot;if(i){let e=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(e)}}get currentNode(){return this._currentNode}set currentNode(e){if(!Re(this.root,e))throw Error(`Cannot set currentNode to a node that is not contained by the root node.`);let t=[],n=e,r=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let e=n,i=this._doc.createTreeWalker(e,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),n=r=e.host}else n=n.parentNode;let i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return Re(e,t)?(t&&(this.currentNode=t),t):(this.currentNode=e,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){let e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){let t;if(typeof this.filter==`function`?t=this.filter(e):this.filter?.acceptNode&&(t=this.filter.acceptNode(e)),t===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let n=this.nextNode();return n&&(this.currentNode=n),n}return e&&(this.currentNode=e),e}if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.nextNode();return e&&(this.currentNode=e),e}return null}previousNode(){let e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e)){if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}return null}return null}let t=e.previousNode();if(t){if(t.shadowRoot){let e;if(typeof this.filter==`function`?e=this.filter(t):this.filter?.acceptNode&&(e=this.filter.acceptNode(t)),e===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let n=this.lastChild();return n&&(this.currentNode=n),n}return t&&(this.currentNode=t),t}if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}};function Ue(e,t,n,r){return Le()?new He(e,t,n,r):e.createTreeWalker(t,n,r)}function We(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1,r=e.map(e=>{let r=Ge(e,t);return n||=typeof r==`function`,r});if(n)return()=>{r.forEach((t,n)=>{typeof t==`function`?t():Ge(e[n],null)})}}}function Ge(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Ke(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Ke(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function qe(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ke(e))&&(r&&(r+=` `),r+=t);return r}function B(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],i=r[e];typeof n==`function`&&typeof i==`function`&&e[0]===`o`&&e[1]===`n`&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=De(n,i):(e===`className`||e===`UNSAFE_className`)&&typeof n==`string`&&typeof i==`string`?t[e]=qe(n,i):e===`id`&&n&&i?t.id=Te(n,i):e===`ref`&&n&&i?t.ref=We(n,i):t[e]=i===void 0?n:i}}return t}var Je=new Set([`id`]),Ye=new Set([`aria-label`,`aria-labelledby`,`aria-describedby`,`aria-details`]),Xe=new Set([`href`,`hrefLang`,`target`,`rel`,`download`,`ping`,`referrerPolicy`]),Ze=new Set([`dir`,`lang`,`hidden`,`inert`,`translate`]),Qe=new Set(`onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart`.split(`.`)),$e=/^(data-.*)$/;function V(e,t={}){let{labelable:n,isLink:r,global:i,events:a=i,propNames:o}=t,s={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(Je.has(t)||n&&Ye.has(t)||r&&Xe.has(t)||i&&Ze.has(t)||a&&(Qe.has(t)||t.endsWith(`Capture`)&&Qe.has(t.slice(0,-7)))||o?.has(t)||$e.test(t))&&(s[t]=e[t]);return s}var et=new Map,tt=new Set;function nt(){if(typeof window>`u`)return;function e(e){return`propertyName`in e}let t=t=>{let r=z(t);if(!e(t)||!r)return;let i=et.get(r);i||(i=new Set,et.set(r,i),r.addEventListener(`transitioncancel`,n,{once:!0})),i.add(t.propertyName)},n=t=>{let r=z(t);if(!e(t)||!r)return;let i=et.get(r);if(i&&(i.delete(t.propertyName),i.size===0&&(r.removeEventListener(`transitioncancel`,n),et.delete(r)),et.size===0)){for(let e of tt)e();tt.clear()}};document.body.addEventListener(`transitionrun`,t),document.body.addEventListener(`transitionend`,n)}typeof document<`u`&&(document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,nt):nt());function rt(){for(let[e]of et)`isConnected`in e&&!e.isConnected&&et.delete(e)}function it(e){requestAnimationFrame(()=>{rt(),et.size===0?e():tt.add(e)})}function at(){let e=(0,v.useRef)(new Map),t=(0,v.useCallback)((t,n,r,i)=>{let a=i?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:a,options:i}),t.addEventListener(n,a,i)},[]),n=(0,v.useCallback)((t,n,r,i)=>{let a=e.current.get(r)?.fn||r;t.removeEventListener(n,a,i),e.current.delete(r)},[]),r=(0,v.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,v.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function ot(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=we(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(` `):i&&=i.trim().split(/\s+/).join(` `),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function st(e){let t=(0,v.useRef)(null),n=(0,v.useRef)(void 0),r=(0,v.useCallback)(t=>{if(typeof e==`function`){let n=e,r=n(t);return()=>{typeof r==`function`?r():n(null)}}if(e)return e.current=t,()=>{e.current=null}},[e]);return(0,v.useMemo)(()=>({get current(){return t.current},set current(e){t.current=e,n.current&&=(n.current(),void 0),e!=null&&(n.current=r(e))}}),[r])}var ct=v.useInsertionEffect??L;function lt(e){let t=(0,v.useRef)(null);return ct(()=>{t.current=e},[e]),(0,v.useCallback)((...e)=>{let n=t.current;return n?.(...e)},[])}function ut(e,t){let n=(0,v.useRef)(!0),r=(0,v.useRef)(null);L(()=>(n.current=!0,()=>{n.current=!1}),[]),L(()=>{n.current?n.current=!1:(!r.current||t.some((e,t)=>!Object.is(e,r[t])))&&e(),r.current=t},t)}function dt(){return window.ResizeObserver!==void 0}function ft(e){let{ref:t,box:n,onResize:r}=e,i=lt(r);(0,v.useEffect)(()=>{let e=t?.current;if(e){if(dt()){let t=new window.ResizeObserver(e=>{e.length&&i()});return t.observe(e,{box:n}),()=>{e&&t.unobserve(e)}}return window.addEventListener(`resize`,i,!1),()=>{window.removeEventListener(`resize`,i,!1)}}},[t,n])}function pt(e,t){L(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function mt(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=document.scrollingElement||document.documentElement,i=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return e===r&&n.overflow!==`hidden`&&(i=!0),i&&t&&(i=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),i}function ht(e,t){let n=e;for(mt(n,t)&&(n=n.parentElement);n&&!mt(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function gt(e,t){let n=[],r=document.scrollingElement||document.documentElement;for(;e&&(mt(e,t)&&n.push(e),e!==r);)e=e.parentElement;return n}function _t(e){return T()?e.metaKey:e.ctrlKey}var vt=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function yt(e){return e instanceof HTMLInputElement&&!vt.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var bt=typeof document<`u`&&window.visualViewport;function xt(){let e=ve(),[t,n]=(0,v.useState)(()=>e?{width:0,height:0}:St());return(0,v.useEffect)(()=>{let e=e=>{n(t=>e.width===t.width&&e.height===t.height?t:e)},t=()=>{bt&&bt.scale>1||e(St())},r,i=t=>{bt&&bt.scale>1||yt(z(t))&&(r=requestAnimationFrame(()=>{let t=ze();(!t||!yt(t))&&e({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}))};return e(St()),O()&&A()&&window.addEventListener(`blur`,i,!0),bt?bt.addEventListener(`resize`,t):window.addEventListener(`resize`,t),()=>{cancelAnimationFrame(r),O()&&A()&&window.removeEventListener(`blur`,i,!0),bt?bt.removeEventListener(`resize`,t):window.removeEventListener(`resize`,t)}},[]),t}function St(){return{width:bt?Math.min(bt.width*bt.scale,document.documentElement.clientWidth):document.documentElement.clientWidth,height:bt?bt.height*bt.scale:document.documentElement.clientHeight}}var Ct=0,wt=new Map;function Tt(e){let[t,n]=(0,v.useState)();return L(()=>{if(!e)return;let t=wt.get(e);if(t)n(t.element.id);else{let r=`react-aria-description-${Ct++}`;n(r);let i=document.createElement(`div`);i.id=r,i.style.display=`none`,i.textContent=e,document.body.appendChild(i),t={refCount:0,element:i},wt.set(e,t)}return t.refCount++,()=>{t&&--t.refCount===0&&(t.element.remove(),wt.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Et(e,t,n,r){let i=lt(n),a=n==null;(0,v.useEffect)(()=>{if(!(a||e.current==null))return Pe(e.current,t,i,r)},[e,t,r,a])}function Dt(e,t,n={}){e!==t&&Ot(e,t,t.getBoundingClientRect(),n)}function Ot(e,t,n,r={}){let{block:i=`nearest`,inline:a=`nearest`}=r,o=e.scrollTop,s=e.scrollLeft,c=e.getBoundingClientRect(),l=window.getComputedStyle(t),u=window.getComputedStyle(e),d=document.scrollingElement||document.documentElement,f=e===d,p=e===d?0:c.top,m=e===d?e.clientHeight:c.bottom,h=e===d?0:c.left,g=e===d?e.clientWidth:c.right,_=parseFloat(l.scrollMarginTop)||0,v=parseFloat(l.scrollMarginBottom)||0,y=parseFloat(l.scrollMarginLeft)||0,b=parseFloat(l.scrollMarginRight)||0,x=parseFloat(u.scrollPaddingTop)||0,S=parseFloat(u.scrollPaddingBottom)||0,C=parseFloat(u.scrollPaddingLeft)||0,w=parseFloat(u.scrollPaddingRight)||0,T=parseFloat(u.borderTopWidth)||0,E=parseFloat(u.borderBottomWidth)||0,D=parseFloat(u.borderLeftWidth)||0,k=parseFloat(u.borderRightWidth)||0,j=n.top-_,M=n.bottom+v,N=n.left-y,P=n.right+b,F=e===d?0:D+k,I=e===d?0:T+E,ee=e===d?0:e.offsetWidth-e.clientWidth-F,te=e===d?0:e.offsetHeight-e.clientHeight-I,ne=p+(f?0:T)+x,re=m-(f?0:E)-S-te,ie=h+(f?0:D)+C,ae=g-(f?0:k)-w;O()&&A()||u.direction===`ltr`?ae-=ee:u.direction===`rtl`&&(ie+=ee);let oe=j<ne||M>re,se=N<ie||P>ae;if(oe&&i===`start`)o+=j-ne;else if(oe&&i===`center`)o+=(j+M)/2-(ne+re)/2;else if(oe&&i===`end`)o+=M-re;else if(oe&&i===`nearest`){let e=j-ne,t=M-re;o+=Math.abs(e)<=Math.abs(t)?e:t}if(se&&a===`start`)s+=N-ie;else if(se&&a===`center`)s+=(N+P)/2-(ie+ae)/2;else if(se&&a===`end`)s+=P-ae;else if(se&&a===`nearest`){let e=N-ie,t=P-ae;s+=Math.abs(e)<=Math.abs(t)?e:t}e.scrollTo({left:s,top:o})}function kt(e,t={}){let{containingElement:n}=t;if(e&&e.isConnected){let t=document.scrollingElement||document.documentElement;if(window.getComputedStyle(t).overflow!==`hidden`){let{left:t,top:r}=e.getBoundingClientRect();e?.scrollIntoView?.({block:`nearest`});let{left:i,top:a}=e.getBoundingClientRect();(Math.abs(t-i)>1||Math.abs(r-a)>1)&&(n?.scrollIntoView?.({block:`center`,inline:`center`}),e.scrollIntoView?.({block:`nearest`}))}else{let{left:t,top:r}=e.getBoundingClientRect(),i=gt(e,!0);for(let t of i)Dt(t,e);let{left:a,top:o}=e.getBoundingClientRect();if(Math.abs(t-a)>1||Math.abs(r-o)>1){i=n?gt(n,!0):[];for(let e of i)Dt(e,n,{block:`center`,inline:`center`});for(let t of gt(e,!0))Dt(t,e)}}}}function At(e){return e.pointerType===``&&e.isTrusted?!0:M()&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function jt(e){return!M()&&e.width===0&&e.height===0||M()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`}function Mt(e,t,n){let r=lt(e=>{n&&!e.defaultPrevented&&n(t)});(0,v.useEffect)(()=>{let t=e?.current?.form;return t?.addEventListener(`reset`,r),()=>{t?.removeEventListener(`reset`,r)}},[e])}function Nt(e,t){let{collection:n,onLoadMore:r,scrollOffset:i=1,direction:a=`end`}=e,o=(0,v.useRef)(null),s=lt(e=>{for(let t of e)t.isIntersecting&&r&&r()});L(()=>{if(t.current){let e=100*i,n=a===`start`?`${e}% 0px 0px 0px`:`0px ${e}% ${e}% ${e}%`;o.current=new IntersectionObserver(s,{root:ht(t?.current),rootMargin:n}),o.current.observe(t.current)}return()=>{o.current&&o.current.disconnect()}},[n,t,i,a])}function Pt(e){let t=v.version.split(`.`);return parseInt(t[0],10)>=19?e:e?`true`:void 0}var Ft=l(h(),1);function It(e,t=!0){let[n,r]=(0,v.useState)(!0),i=n&&t;return L(()=>{if(i&&e.current&&`getAnimations`in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()},[e,i]),Rt(e,i,(0,v.useCallback)(()=>r(!1),[])),i}function Lt(e,t){let[n,r]=(0,v.useState)(t?`open`:`closed`);switch(n){case`open`:t||r(`exiting`);break;case`closed`:case`exiting`:t&&r(`open`)}let i=n===`exiting`;return Rt(e,i,(0,v.useCallback)(()=>{r(e=>e===`exiting`?`closed`:e)},[])),i}function Rt(e,t,n){L(()=>{if(t&&e.current){if(!(`getAnimations`in e.current)){n();return}let t=e.current.getAnimations();if(t.length===0){n();return}let r=!1;return Promise.allSettled(t.map(e=>e.finished)).then(()=>{r||(0,Ft.flushSync)(()=>{n()})}),()=>{r=!0}}},[e,t,n])}var zt=typeof Element<`u`&&`checkVisibility`in Element.prototype;function Bt(e){let t=ke(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!==`none`&&r!==`hidden`&&r!==`collapse`;if(i){let{getComputedStyle:t}=ke(e),{display:n,visibility:r}=t(e);i=n!==`none`&&r!==`hidden`&&r!==`collapse`}return i}function Vt(e,t){return!e.hasAttribute(`hidden`)&&!e.hasAttribute(`data-react-aria-prevent-focus`)&&(e.nodeName===`DETAILS`&&t&&t.nodeName!==`SUMMARY`?e.hasAttribute(`open`):!0)}function Ht(e,t){return zt?e.checkVisibility({visibilityProperty:!0})&&!e.closest(`[data-react-aria-prevent-focus]`):e.nodeName!==`#comment`&&Bt(e)&&Vt(e,t)&&(!e.parentElement||Ht(e.parentElement,e))}var Ut=[`input:not([disabled]):not([type=hidden])`,`select:not([disabled])`,`textarea:not([disabled])`,`button:not([disabled])`,`a[href]`,`area[href]`,`summary`,`iframe`,`object`,`embed`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable^="false"])`,`permission`],Wt=Ut.join(`:not([hidden]),`)+`,[tabindex]:not([disabled]):not([hidden])`;Ut.push(`[tabindex]:not([tabindex="-1"]):not([disabled])`);var Gt=Ut.join(`:not([hidden]):not([tabindex="-1"]),`);function Kt(e,t){return e.matches(Wt)&&!Jt(e)&&(t?.skipVisibilityCheck||Ht(e))}function qt(e){return e.matches(Gt)&&Ht(e)&&!Jt(e)}function Jt(e){let t=e;for(;t!=null;){if(t instanceof ke(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function Yt(e,t){let n=ke(t),r=Oe(t);if(r==null||n==null)return;let i,a=`meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`,o=r.querySelector(a);return o&&o instanceof n.HTMLMetaElement&&(e===`csp-nonce`&&o.nonce&&(i??=o.nonce||void 0),o.content&&(i??=o.content||void 0)),e===`csp-nonce`&&(i??=n.__webpack_nonce__||globalThis.__webpack_nonce__||void 0),i}var Xt=new WeakMap;function Zt(e){let t=Oe(e),n=Xt.get(t);return n??=Yt(`csp-nonce`,t),n!==void 0&&Xt.set(t,n),n}function Qt(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function $t(e,t){let n=e,r=0,i=t.toString(),a=i.toLowerCase().indexOf(`e-`);if(a>0)r=Math.abs(Math.floor(Math.log10(Math.abs(t))))+a;else{let e=i.indexOf(`.`);e>=0&&(r=i.length-e)}if(r>0){let e=10**r;n=Math.round(n*e)/e}return n}function en(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,a=$t(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(t)?!isNaN(n)&&a>n&&(a=Math.floor($t(n/r,r))*r):a<t?a=t:!isNaN(n)&&a>n&&(a=t+Math.floor($t((n-t)/r,r))*r),a=$t(a,r),a}var tn=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})),nn=o(((e,t)=>{t.exports=tn()})),H=nn();function rn(e,t){let{ref:n,render:r,...i}=t,a=(0,v.useRef)(null),o=(0,v.useMemo)(()=>We(n,a),[n,a]);L(()=>{},[e,r]);let s={...i,ref:o};return r?r(s,void 0):(0,H.jsx)(e,{...s})}var an={},on=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=an[t];return n||(n=rn.bind(null,t),an[t]=n),n}}),sn=Array.isArray,cn=e=>{if(!e&&e!==0&&e!==0n)return``;if(typeof e==`string`)return e;if(typeof e==`number`)return e===e?``+e:``;if(typeof e==`bigint`)return``+e;let t=``;if(sn(e)){let n=e.length;for(let r=0;r<n;r++){let n=e[r];if(!n&&n!==0&&n!==0n)continue;let i=typeof n==`string`?n:cn(n);i&&(t&&(t+=` `),t+=i)}return t}if(typeof e==`object`)for(let n in e)e[n]&&(t&&(t+=` `),t+=n);return t},ln=/\s+/g,un=Array.isArray,dn=e=>typeof e!=`string`||!e?e:e.replace(ln,` `).trim(),fn=e=>{let t=e.length;if(t===0)return!1;let n=e.charCodeAt(0),r=e.charCodeAt(t-1);if(n===32||r===32||n>=9&&n<=13||n===160||r>=9&&r<=13||r===160)return!0;for(let n=0;n<t;n++){let r=e.charCodeAt(n);if(r>=9&&r<=13||r===160||r===32&&n+1<t&&e.charCodeAt(n+1)===32)return!0}return!1},pn=(...e)=>{let t=cn(e);if(t)return fn(t)?dn(t):t},mn=e=>e===!1?`false`:e===!0?`true`:e===0?`0`:e,hn=e=>{if(!e||typeof e!=`object`)return!0;for(let t in e)return!1;return!0},gn=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;let n=e,r=t,i=Object.keys(n),a=Object.keys(r);if(i.length!==a.length)return!1;for(let e=0;e<i.length;e++){let t=i[e];if(!a.includes(t)||n[t]!==r[t])return!1}return!0},_n=(e,t)=>{let n=e;for(let e in t)if(Object.hasOwn(t,e)){let r=t[e];n[e]=e in n?pn(n[e],r):r}return e},vn=(e,t)=>{for(let n=0;n<e.length;n++){let r=e[n];un(r)?vn(r,t):r&&t.push(r)}},yn=(...e)=>{let t=[];vn(e,t);let n=[];for(let e=0;e<t.length;e++)t[e]&&n.push(t[e]);return n},bn=(e,t)=>{let n=e,r=t,i={};for(let e in n){let t=n[e];if(e in r){let n=r[e];i[e]=un(t)||un(n)?yn(n,t):typeof t==`object`&&typeof n==`object`&&t&&n?bn(t,n):n+` `+t}else i[e]=t}for(let e in r)e in n||(i[e]=r[e]);return i},xn={twMerge:!0,twMergeConfig:{}},Sn=256,Cn=128,wn=Symbol(`tv-cache-miss`),Tn=e=>e?.class!=null&&e.class!==``||e?.className!=null&&e.className!==``,En=e=>{if(e===void 0)return``;if(e===null)return`null`;if(typeof e==`string`)return e;if(typeof e==`boolean`)return e?`true`:`false`;if(typeof e==`number`)return e===0?`0`:String(e);if(typeof e==`bigint`)return String(e);let t=mn(e),n=typeof t;if(n===`string`||n===`number`||n===`boolean`||n===`bigint`)return String(t);if(n===`object`)try{return JSON.stringify(t)}catch{return null}return null},Dn=(e,t)=>{if(t===void 0)return e;if(t===null)return e+`null`;let n=typeof t;if(n===`string`||n===`number`||n===`boolean`||n===`bigint`)return e+String(t);if(Array.isArray(t))return e+t.join(`\0`);try{return e+JSON.stringify(t)}catch{return e+`?`}},On=(e,t,n,r)=>{let i=``,a=Object.create(null);for(let r=0;r<e.length;r++){let o=e[r];a[o]=1;let s=t[o];n&&n[o]!==void 0&&(s=n[o]);let c=En(s);if(c===null)return null;i+=o+`:`+c+`;`}let o=[];for(let e in t)e===`class`||e===`className`||a[e]||(a[e]=1,o.push(e));if(n)for(let e in n)e===`class`||e===`className`||a[e]||n[e]===void 0||(a[e]=1,o.push(e));o.length>1&&o.sort();for(let e=0;e<o.length;e++){let r=o[e],a=t[r];n&&n[r]!==void 0&&(a=n[r]);let s=En(a);if(s===null)return null;i+=r+`:`+s+`;`}return i},kn=(e,t)=>{let n=``;for(let t=0;t<e.length;t++){let{conditionKeys:r,source:i}=e[t];for(let e=0;e<r.length;e++){let t=r[e];n+=t+`=`,n=Dn(n,i[t]),n+=`,`}n+=`c=`,n=Dn(n,i.class),n+=`|cn=`,n=Dn(n,i.className),n+=`;`}for(let e=0;e<t.length;e++){let{conditionKeys:r,source:i}=t[e];for(let e=0;e<r.length;e++){let t=r[e];n+=t+`=`,n=Dn(n,i[t]),n+=`,`}Array.isArray(i.slots)&&(n+=`slots=`+i.slots.join(`,`)+`,`),n+=`c=`,n=Dn(n,i.class),n+=`|cn=`,n=Dn(n,i.className),n+=`;`}return n},An=(e=Sn)=>{let t=new Map,n=null;return{get(e){if(t.has(e))return t.get(e);if(n?.has(e)){let r=n.get(e);return t.set(e,r),r}return wn},set(r,i){t.size>=e&&(n=t,t=new Map),t.set(r,i)}}},jn=(e=Sn)=>{let t=An(e);return{get(e){return t.get(e)},set(e,n){t.set(e,n)}}},Mn=(e=Cn)=>{let t=new Map,n=null,r=0;return{get(e,i){let a=t.get(e);if(a){let e=a.get(i);if(e!==void 0||a.has(i))return e}if(n){let a=n.get(e);if(a){let n=a.get(i);if(n!==void 0||a.has(i)){let a=t.get(e);return a||(a=new Map,t.set(e,a)),a.has(i)||r++,a.set(i,n),n}}}return wn},set(i,a,o){r>=e&&(n=t,t=new Map,r=0);let s=t.get(i);s||(s=new Map,t.set(i,s)),s.has(a)||r++,s.set(a,o)}}},Nn=(e,t)=>{let n=null;return(r,i)=>{if(!Tn(i))return r;let a=i.class,o=i.className;if(a!=null&&a!==``&&typeof a!=`string`||o!=null&&o!==``&&typeof o!=`string`)return e(t,r,a,o);n??=Mn();let s=r??``,c=(typeof a==`string`?a:``)+`\0`+(typeof o==`string`?o:``),l=n.get(s,c);if(l!==wn)return l;let u=e(t,r,a,o);return n.set(s,c,u),u}};function Pn(){let e=null,t={},n=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(t){e=t},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(e){t=e},get didTwMergeConfigChange(){return n},set didTwMergeConfigChange(e){n=e},reset(){e=null,t={},n=!1}}}var Fn=Pn(),In=e=>{!hn(e.twMergeConfig)&&!gn(e.twMergeConfig,Fn.cachedTwMergeConfig)&&(Fn.didTwMergeConfigChange=!0,Fn.cachedTwMergeConfig=e.twMergeConfig)},Ln=(e,t)=>{let n=[];for(let r=0;r<t.length;r++){let i=t[r],a=e[i];n.push({key:i,values:a,isEmpty:hn(a)})}return n},Rn=e=>{if(!Array.isArray(e)||e.length===0)return[];let t=[];for(let n=0;n<e.length;n++){let r=e[n],i=[];for(let e in r)e!==`class`&&e!==`className`&&i.push(e);t.push({conditionKeys:i,source:r})}return t},zn=e=>{if(!Array.isArray(e)||e.length===0)return[];let t=[];for(let n=0;n<e.length;n++){let r=e[n],i=[];for(let e in r)e!==`slots`&&e!==`class`&&e!==`className`&&i.push(e);t.push({conditionKeys:i,source:r})}return t},Bn=e=>{let t={};for(let n=0;n<e.length;n++){let r=e[n],i=r.source.slots;if(Array.isArray(i))for(let e=0;e<i.length;e++){let n=i[e];t[n]||(t[n]=[]),t[n].push(r)}}return t},Vn=(e,t)=>{let{extend:n=null,slots:r={},variants:i={},compoundVariants:a=[],compoundSlots:o=[],defaultVariants:s={}}=e,c={...xn,...t},l=e.slots!==void 0,u=n?.base?pn(n.base,e?.base):e?.base,d=n?.variants&&!hn(n.variants)?bn(i,n.variants):i,f=n?.defaultVariants&&!hn(n.defaultVariants)?{...n.defaultVariants,...s}:s;In(c);let p=!n?.slots||hn(n.slots),m=l?p&&n?.base?pn(e?.base,n.base):typeof e?.base==`string`||e?.base==null?e.base:pn(e.base):void 0,h=l?{base:m,...r}:{},g=p?h:_n({...n?.slots},hn(h)?{base:e?.base}:h),_=!n?.compoundVariants||hn(n.compoundVariants)?a:yn(n?.compoundVariants,a),v=!n?.compoundSlots||hn(n.compoundSlots)?o:yn(n?.compoundSlots,o),y=Object.keys(d);return{config:c,extend:n,base:u,variants:d,defaultVariants:f,slots:g,compoundVariants:_,compoundSlots:v,compiledVariants:null,compiledCompoundVariants:null,compiledCompoundSlots:null,compiledCompoundSlotsBySlot:null,deferredError:_&&!Array.isArray(_)?TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof _}`):v&&!Array.isArray(v)?TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof v}`):null,mode:l||!p?`slots`:y.length===0?`plain`:`variants`,slotKeys:null,variantKeys:y}},Hn=e=>e.compiledVariants===null?(e.compiledVariants=Ln(e.variants,e.variantKeys),e.compiledCompoundVariants=Rn(e.compoundVariants),e.compiledCompoundSlots=zn(e.compoundSlots),e.compiledCompoundSlotsBySlot=Bn(e.compiledCompoundSlots),e.slotKeys=e.slots&&typeof e.slots==`object`?Object.keys(e.slots):[],e):e,Un=[],Wn=[],Gn=[],Kn=[],qn=[],Jn=(e,t,n)=>{let r={};for(let t in e)r[t]=e[t];if(t)for(let e in t)t[e]!==void 0&&(r[e]=t[e]);if(n)for(let e in n)n[e]!==void 0&&(r[e]=n[e]);return r},Yn=e=>e==null||e===!1,Xn=(e,t)=>{if(!Array.isArray(e))return e===t||Yn(e)&&Yn(t);for(let n=0;n<e.length;n++){let r=e[n];if(r===t||Yn(r)&&Yn(t))return!0}return!1},Zn=(e,t,n,r)=>{if(e.isEmpty)return null;let i=r?.[e.key]??n?.[e.key];if(i===null)return null;let a=mn(i);if(typeof a==`object`)return null;let o=t?.[e.key],s=a??mn(o);return e.values[s||`false`]},Qn=(e,t)=>{let{conditionKeys:n,source:r}=e;for(let e=0;e<n.length;e++){let i=n[e];if(!Xn(r[i],t[i]))return!1}return!0},$n=(e,t,n)=>{typeof n==`string`?t===`base`&&e.push(n):n&&typeof n==`object`&&n[t]&&e.push(n[t])},er=(e,t,n)=>{let r=Wn;r.length=0;for(let i=0;i<e.length;i++){let a=Zn(e[i],t,n);a&&r.push(a)}return r},tr=(e,t,n,r,i)=>{let a=Wn;a.length=0;for(let o=0;o<t.length;o++){let s=Zn(t[o],n,r,i),c=e===`base`&&typeof s==`string`?s:s&&s[e];c&&a.push(c)}return a},nr=(e,t)=>{let n=Gn;n.length=0;for(let r=0;r<e.length;r++){let i=e[r];Qn(i,t)&&(i.source.class&&n.push(i.source.class),i.source.className&&n.push(i.source.className))}return n},rr=(e,t,n)=>{let r=Kn;r.length=0;for(let i=0;i<t.length;i++){let a=t[i];Qn(a,n)&&($n(r,e,a.source.class),$n(r,e,a.source.className))}return r},ir=(e,t)=>{let n=qn;n.length=0;for(let r=0;r<e.length;r++){let i=e[r];Qn(i,t)&&(i.source.class&&n.push(i.source.class),i.source.className&&n.push(i.source.className))}return n},ar=(e,t)=>{let{base:n,config:r}=e,i=wn,a=Nn(t,r);return(e=>(i===wn&&(i=t(r,n)),a(i,e)))},or=(e,t)=>{let{base:n,config:r,defaultVariants:i,deferredError:a,variantKeys:o}=e,s=e.compiledCompoundVariants,c=e.compiledVariants,l=Un,u=null,d=Nn(t,r),f=1,p=e=>{let a=s.length>0?nr(s,Jn(i,e)):void 0;return t(r,n,er(c,i,e),a)};return(t=>{if(a)throw a;(c===null||s===null)&&(Hn(e),c=e.compiledVariants,s=e.compiledCompoundVariants,l=e.compiledCompoundSlots??Un);let n;if(f>0)f--,n=p(t);else{u??=jn();let e=On(o,i,t);if(e!==null){let r=s.length>0||l.length>0?kn(s,l):``,i=e+`#`+r,a=u.get(i);a===wn?(n=p(t),u.set(i,n)):n=a}else n=p(t)}return d(n,t)})},sr=(e,t)=>{let{config:n,defaultVariants:r,deferredError:i,slots:a,variantKeys:o}=e,s=null,c=null,l=null,u=null,d=!1,f=null,p=null,m=1,h=()=>{if(l!==null)return;(e.compiledVariants===null||e.compiledCompoundVariants===null||e.compiledCompoundSlots===null||e.compiledCompoundSlotsBySlot===null||e.slotKeys===null)&&Hn(e);let i=e.compiledVariants;s=e.compiledCompoundVariants,c=e.compiledCompoundSlots;let o=e.compiledCompoundSlotsBySlot;l=e.slotKeys,d=s.length>0||c.length>0,f=Nn(t,n);let p=Array(l.length);for(let e=0;e<l.length;e++){let c=l[e],u=o[c]??Un;p[e]=(e,o)=>{let l=d?Jn(r,e,o):void 0,f=l?rr(c,s,l):void 0,p=l?ir(u,l):void 0;return t(n,a[c],tr(c,i,r,e,o),f,p)}}u=p},g=e=>{let t=l,n=u,r=f,i={};for(let a=0;a<t.length;a++){let o=n[a],s=o(e);i[t[a]]=t=>{if(t==null)return s;let n=!1;for(let e in t)if(e!==`class`&&e!==`className`&&t[e]!==void 0){n=!0;break}return r(n?o(e,t):s,t)}}return i};return(e=>{if(i)throw i;if(h(),m>0)return m--,g(e);let t=On(o,r,e);if(t===null)return g(e);let n=d?kn(s,c):``,a=t+`#`+n;p??=An();let l=p.get(a);if(l!==wn)return l;let u=g(e);return p.set(a,u),u})},cr=(e,t)=>{if(e.mode===`plain`)return ar(e,t);let n;return(r=>(n??=e.mode===`slots`?sr(e,t):or(e,t),n(r)))},lr=(e,t)=>{e.variantKeys=t.variantKeys,e.extend=t.extend,e.base=t.base,e.slots=t.slots,e.variants=t.variants,e.defaultVariants=t.defaultVariants,e.compoundSlots=t.compoundSlots,e.compoundVariants=t.compoundVariants},ur=e=>{let t=(t,n)=>{let r=Vn(t,n),i=cr(r,e);return lr(i,r),i};return{tv:t,createTV:e=>(n,r)=>t(n,r?bn(e,r):e)}},dr=(e,t)=>{let n=e.length,r=t.length,i=Array(n+r);for(let t=0;t<n;t++)i[t]=e[t];for(let e=0;e<r;e++)i[n+e]=t[e];return i},fr=(e,t)=>({classGroupId:e,validator:t}),pr=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),mr=`-`,hr=[],gr=`arbitrary..`,_r=e=>{let t=br(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e[0]===`[`&&e[e.length-1]===`]`)return yr(e);let n=e.split(mr);return vr(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?dr(i,t):t:i||hr}return n[e]||hr}}},vr=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=vr(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(mr):e.slice(t).join(mr),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},yr=e=>{let t=e.slice(1,-1),n=t.indexOf(`:`);if(n===-1)return;let r=t.slice(0,n);return r?gr+r:void 0},br=e=>{let{theme:t,classGroups:n}=e;return xr(n,t)},xr=(e,t)=>{let n=pr();for(let r in e){let i=e[r];Sr(i,n,r,t)}return n},Sr=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Cr(i,t,n,r)}},Cr=(e,t,n,r)=>{if(typeof e==`string`){wr(e,t,n);return}if(typeof e==`function`){Tr(e,t,n,r);return}Er(e,t,n,r)},wr=(e,t,n)=>{let r=e===``?t:Dr(t,e);r.classGroupId=n},Tr=(e,t,n,r)=>{if(Or(e)){Sr(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(fr(n,e))},Er=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Sr(o,Dr(t,a),n,r)}},Dr=(e,t)=>{let n=e,r=t.split(mr),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=pr(),n.nextPart.set(t,i)),n=i}return n},Or=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,kr=`!`,Ar=58,jr=47,Mr=91,Nr=93,Pr=40,Fr=41,Ir=33,Lr=(e,t,n,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:void 0}),Rr=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e.charCodeAt(s);if(n===0&&r===0){if(o===Ar){t.push(e.slice(i,s)),i=s+1;continue}if(o===jr){a=s;continue}}o===Mr?n++:o===Nr?n--:o===Pr?r++:o===Fr&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1,u=s.length-1;s.charCodeAt(u)===Ir?(c=s.slice(0,-1),l=!0):s.charCodeAt(0)===Ir&&(c=s.slice(1),l=!0);let d=a&&a>i?a-i:void 0;return Lr(t,l,c,d)},zr=e=>{let t=new Set(e.orderSensitiveModifiers);return e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);if(o||s){if(r.length>0){r.sort();for(let e=0;e<r.length;e++)n.push(r[e]);r=[]}n.push(a)}else r.push(a)}if(r.length>0){r.sort();for(let e=0;e<r.length;e++)n.push(r[e])}return n}},Br={isExternal:!0,classId:-1,conflictIds:[]},Vr=4096,Hr=16384,Ur=e=>{let t=zr(e),n=Wr(e),{getClassGroupId:r,getConflictingClassGroupIds:i}=_r(e),a=Object.create(null),o=Object.create(null),s=0,c=new Int32Array(256),l=0,u=new Uint8Array(64),d=!1,f=e=>{let t=[],n=e.length,r=-1;d=!1;for(let i=0;i<n;i++){let n=e.charCodeAt(i);n===32?r!==-1&&(t.push(e.slice(r,i)),r=-1):n>=9&&n<=13?(d=!0,r!==-1&&(t.push(e.slice(r,i)),r=-1)):r===-1&&(r=i)}return r!==-1&&t.push(e.slice(r)),t},p=new Map,m=0,h=e=>{let t=p.get(e);if(t===void 0&&(t=m++,p.set(e,t),t>=c.length)){let e=new Int32Array(c.length*2);e.set(c),c=e}return t},g=e=>{let{isExternal:a,modifiers:o,hasImportantModifier:s,baseClassName:c,maybePostfixModifierPosition:l}=Rr(e);if(a)return Br;let u=!!l,d;if(u){let e=c.substring(0,l);d=r(e);let t=d&&n[d]?r(c):void 0;t&&t!==d&&(d=t,u=!1)}else d=r(c);if(!d){if(!u||(d=r(c),!d))return Br;u=!1}let f=o.length===0?``:o.length===1?o[0]:t(o).join(`:`),p=s?f+kr:f,m=i(d,u),g=[];for(let e=0;e<m.length;e++)g.push(h(p+m[e]));return{isExternal:!1,classId:h(p+d),conflictIds:g}},_=e=>{let t=a[e];return t===void 0?(t=o[e],t===void 0&&(t=g(e)),a[e]=t,++s>Vr&&(s=0,o=a,a=Object.create(null)),t):t};return{parseClassName:Rr,sortModifiers:t,postfixLookupClassGroupIds:n,getClassGroupId:r,getConflictingClassGroupIds:i,getClassDescriptor:_,mergeClassList:e=>{let t=f(e),n=t.length;if(n===1)return t[0];m>Hr&&(p.clear(),m=0,a=Object.create(null),o=Object.create(null),s=0),l=l+1|0,l===0&&(l=1);let r=l;if(n>u.length){let e=u.length;for(;e<n;)e*=2;u=new Uint8Array(e)}let i=!1,h=0;for(let e=n-1;e>=0;--e){let n=t[e];h+=n.length;let a=_(n);if(a.isExternal){u[e]=1;continue}let o=a.classId;if(c[o]===r){u[e]=0,i=!0;continue}c[o]=r;let s=a.conflictIds;for(let e=0;e<s.length;e++)c[s[e]]=r;u[e]=1}if(!i&&!d&&e.length===h+n-1)return e;let g=``;for(let e=0;e<n;e++)u[e]===1&&(g&&(g+=` `),g+=t[e]);return g}}},Wr=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},Gr=500,Kr=e=>{let t,n,r=Object.create(null),i=Object.create(null),a=0,o=r=>(t=Ur(e()),n=t.mergeClassList,c.mergeString=s,s(r)),s=e=>{let t=r[e];return t===void 0?(t=i[e],t===void 0&&(t=n(e)),r[e]=t,++a>Gr&&(a=0,i=r,r=Object.create(null)),t):t},c=(...e)=>c.mergeString(cn(e));return c.mergeString=o,c},qr=[],Jr=e=>{let t=t=>t[e]||qr;return t.isThemeGetter=!0,t},Yr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Xr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Zr=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Qr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$r=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ei=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ti=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ni=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ri=Number,ii=Number.isNaN,ai=Number.isInteger,oi=e=>Zr.test(e),si=e=>!!e&&!ii(ri(e)),ci=e=>!!e&&ai(ri(e)),li=e=>e.endsWith(`%`)&&si(e.slice(0,-1)),ui=e=>Qr.test(e),di=()=>!0,fi=e=>$r.test(e)&&!ei.test(e),pi=()=>!1,mi=e=>ti.test(e),hi=e=>ni.test(e),gi=e=>!U(e)&&!W(e),_i=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),vi=e=>Ni(e,Li,pi),U=e=>Yr.test(e),yi=e=>Ni(e,Ri,fi),bi=e=>Ni(e,zi,si),xi=e=>Ni(e,Vi,di),Si=e=>Ni(e,Bi,pi),Ci=e=>Ni(e,Fi,pi),wi=e=>Ni(e,Ii,hi),Ti=e=>Ni(e,Hi,mi),W=e=>Xr.test(e),Ei=e=>Pi(e,Ri),Di=e=>Pi(e,Bi),Oi=e=>Pi(e,Fi),ki=e=>Pi(e,Li),Ai=e=>Pi(e,Ii),ji=e=>Pi(e,Hi,!0),Mi=e=>Pi(e,Vi,!0),Ni=(e,t,n)=>{let r=Yr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Pi=(e,t,n=!1)=>{let r=Xr.exec(e);return r?r[1]?t(r[1]):n:!1},Fi=e=>e===`position`||e===`percentage`,Ii=e=>e===`image`||e===`url`,Li=e=>e===`length`||e===`size`||e===`bg-size`,Ri=e=>e===`length`,zi=e=>e===`number`,Bi=e=>e===`family-name`,Vi=e=>e===`number`||e===`weight`,Hi=e=>e===`shadow`,Ui=()=>{let e=Jr(`color`),t=Jr(`font`),n=Jr(`text`),r=Jr(`font-weight`),i=Jr(`tracking`),a=Jr(`leading`),o=Jr(`breakpoint`),s=Jr(`container`),c=Jr(`spacing`),l=Jr(`radius`),u=Jr(`shadow`),d=Jr(`inset-shadow`),f=Jr(`text-shadow`),p=Jr(`drop-shadow`),m=Jr(`blur`),h=Jr(`perspective`),g=Jr(`aspect`),_=Jr(`ease`),v=Jr(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),W,U],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[W,U,c],T=()=>[oi,`full`,`auto`,...w()],E=()=>[ci,`none`,`subgrid`,W,U],D=()=>[`auto`,{span:[`full`,ci,W,U]},ci,W,U],O=()=>[ci,`auto`,W,U],k=()=>[`auto`,`min`,`max`,`fr`,W,U],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],N=()=>[oi,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[oi,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],F=()=>[oi,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],I=()=>[e,W,U],ee=()=>[...b(),Oi,Ci,{position:[W,U]}],te=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ne=()=>[`auto`,`cover`,`contain`,ki,vi,{size:[W,U]}],re=()=>[li,Ei,yi],ie=()=>[``,`none`,`full`,l,W,U],ae=()=>[``,si,Ei,yi],oe=()=>[`solid`,`dashed`,`dotted`,`double`],se=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],L=()=>[si,li,Oi,Ci],ce=()=>[``,`none`,m,W,U],le=()=>[`none`,si,W,U],ue=()=>[`none`,si,W,U],de=()=>[si,W,U],fe=()=>[oi,`full`,...w()];return{theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[ui],breakpoint:[ui],color:[di],container:[ui],"drop-shadow":[ui],ease:[`in`,`out`,`in-out`],font:[gi],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[ui],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[ui],shadow:[ui],spacing:[`px`,si],text:[ui],"text-shadow":[ui],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,oi,U,W,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,W,U]}],"container-named":[_i],columns:[{columns:[si,U,W,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[ci,`auto`,W,U]}],basis:[{basis:[oi,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[si,oi,`auto`,`initial`,`none`,U]}],grow:[{grow:[``,si,W,U]}],shrink:[{shrink:[``,si,W,U]}],order:[{order:[ci,`first`,`last`,`none`,W,U]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:N()}],"inline-size":[{inline:[`auto`,...P()]}],"min-inline-size":[{"min-inline":[`auto`,...P()]}],"max-inline-size":[{"max-inline":[`none`,...P()]}],"block-size":[{block:[`auto`,...F()]}],"min-block-size":[{"min-block":[`auto`,...F()]}],"max-block-size":[{"max-block":[`none`,...F()]}],w:[{w:[s,`screen`,...N()]}],"min-w":[{"min-w":[s,`screen`,`none`,...N()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...N()]}],h:[{h:[`screen`,`lh`,...N()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...N()]}],"max-h":[{"max-h":[`screen`,`lh`,...N()]}],"font-size":[{text:[`base`,n,Ei,yi]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Mi,xi]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,li,U]}],"font-family":[{font:[Di,Si,t]}],"font-features":[{"font-features":[U]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,W,U]}],"line-clamp":[{"line-clamp":[si,`none`,W,bi]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,W,U]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,W,U]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...oe(),`wavy`]}],"text-decoration-thickness":[{decoration:[si,`from-font`,`auto`,W,yi]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[si,`auto`,W,U]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[ci,W,U]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,W,U]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,W,U]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ee()}],"bg-repeat":[{bg:te()}],"bg-size":[{bg:ne()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},ci,W,U],radial:[``,W,U],conic:[ci,W,U]},Ai,wi]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:ie()}],"rounded-s":[{"rounded-s":ie()}],"rounded-e":[{"rounded-e":ie()}],"rounded-t":[{"rounded-t":ie()}],"rounded-r":[{"rounded-r":ie()}],"rounded-b":[{"rounded-b":ie()}],"rounded-l":[{"rounded-l":ie()}],"rounded-ss":[{"rounded-ss":ie()}],"rounded-se":[{"rounded-se":ie()}],"rounded-ee":[{"rounded-ee":ie()}],"rounded-es":[{"rounded-es":ie()}],"rounded-tl":[{"rounded-tl":ie()}],"rounded-tr":[{"rounded-tr":ie()}],"rounded-br":[{"rounded-br":ie()}],"rounded-bl":[{"rounded-bl":ie()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-bs":[{"border-bs":ae()}],"border-w-be":[{"border-be":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...oe(),`hidden`,`none`]}],"divide-style":[{divide:[...oe(),`hidden`,`none`]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...oe(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[si,W,U]}],"outline-w":[{outline:[``,si,Ei,yi]}],"outline-color":[{outline:I()}],shadow:[{shadow:[``,`none`,u,ji,Ti]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":[`none`,d,ji,Ti]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:ae()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[si,yi]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":[`none`,f,ji,Ti]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[si,W,U]}],"mix-blend":[{"mix-blend":[...se(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[si]}],"mask-image-linear-from-pos":[{"mask-linear-from":L()}],"mask-image-linear-to-pos":[{"mask-linear-to":L()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":L()}],"mask-image-t-to-pos":[{"mask-t-to":L()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":L()}],"mask-image-r-to-pos":[{"mask-r-to":L()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":L()}],"mask-image-b-to-pos":[{"mask-b-to":L()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":L()}],"mask-image-l-to-pos":[{"mask-l-to":L()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":L()}],"mask-image-x-to-pos":[{"mask-x-to":L()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":L()}],"mask-image-y-to-pos":[{"mask-y-to":L()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[W,U]}],"mask-image-radial-from-pos":[{"mask-radial-from":L()}],"mask-image-radial-to-pos":[{"mask-radial-to":L()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[si]}],"mask-image-conic-from-pos":[{"mask-conic-from":L()}],"mask-image-conic-to-pos":[{"mask-conic-to":L()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ee()}],"mask-repeat":[{mask:te()}],"mask-size":[{mask:ne()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,W,U]}],filter:[{filter:[``,`none`,W,U]}],blur:[{blur:ce()}],brightness:[{brightness:[si,W,U]}],contrast:[{contrast:[si,W,U]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,ji,Ti]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:[``,si,W,U]}],"hue-rotate":[{"hue-rotate":[si,W,U]}],invert:[{invert:[``,si,W,U]}],saturate:[{saturate:[si,W,U]}],sepia:[{sepia:[``,si,W,U]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,W,U]}],"backdrop-blur":[{"backdrop-blur":ce()}],"backdrop-brightness":[{"backdrop-brightness":[si,W,U]}],"backdrop-contrast":[{"backdrop-contrast":[si,W,U]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,si,W,U]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[si,W,U]}],"backdrop-invert":[{"backdrop-invert":[``,si,W,U]}],"backdrop-opacity":[{"backdrop-opacity":[si,W,U]}],"backdrop-saturate":[{"backdrop-saturate":[si,W,U]}],"backdrop-sepia":[{"backdrop-sepia":[``,si,W,U]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,W,U]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[si,`initial`,W,U]}],ease:[{ease:[`linear`,`initial`,_,W,U]}],delay:[{delay:[si,W,U]}],animate:[{animate:[`none`,v,W,U]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,W,U]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:le()}],"rotate-x":[{"rotate-x":le()}],"rotate-y":[{"rotate-y":le()}],"rotate-z":[{"rotate-z":le()}],scale:[{scale:ue()}],"scale-x":[{"scale-x":ue()}],"scale-y":[{"scale-y":ue()}],"scale-z":[{"scale-z":ue()}],"scale-3d":[`scale-3d`],skew:[{skew:de()}],"skew-x":[{"skew-x":de()}],"skew-y":[{"skew-y":de()}],transform:[{transform:[W,U,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:fe()}],"translate-x":[{"translate-x":fe()}],"translate-y":[{"translate-y":fe()}],"translate-z":[{"translate-z":fe()}],"translate-none":[`translate-none`],zoom:[{zoom:[ci,W,U]}],accent:[{accent:I()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:I()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,W,U]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":I()}],"scrollbar-track-color":[{"scrollbar-track":I()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,W,U]}],fill:[{fill:[`none`,...I()]}],"stroke-w":[{stroke:[si,Ei,yi,bi]}],stroke:[{stroke:[`none`,...I()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}},Wi=(e,{extend:t={},override:n={}})=>(Ki(e.theme,n.theme),Ki(e.classGroups,n.classGroups),Ki(e.conflictingClassGroups,n.conflictingClassGroups),Ki(e.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),Gi(e,`postfixLookupClassGroups`,n.postfixLookupClassGroups),Gi(e,`orderSensitiveModifiers`,n.orderSensitiveModifiers),qi(e.theme,t.theme),qi(e.classGroups,t.classGroups),qi(e.conflictingClassGroups,t.conflictingClassGroups),qi(e.conflictingClassGroupModifiers,t.conflictingClassGroupModifiers),Ji(e,t,`postfixLookupClassGroups`),Ji(e,t,`orderSensitiveModifiers`),e),Gi=(e,t,n)=>{n!==void 0&&(e[t]=n)},Ki=(e,t)=>{if(t)for(let n in t)Gi(e,n,t[n])},qi=(e,t)=>{if(t)for(let n in t)Ji(e,t,n)},Ji=(e,t,n)=>{let r=t[n];r!==void 0&&(e[n]=e[n]?e[n].concat(r):r)},Yi=e=>Kr(e?typeof e==`function`?()=>e(Ui()):()=>Wi(Ui(),e):Ui),Xi=e=>{if(hn(e))return;let t=e,n={...t.extend??{}};for(let e of[`theme`,`classGroups`,`conflictingClassGroups`,`conflictingClassGroupModifiers`,`postfixLookupClassGroups`,`orderSensitiveModifiers`,`cacheSize`,`prefix`,`separator`,`experimentalParseClassName`])t[e]!==void 0&&n[e]===void 0&&(n[e]=t[e]);let r={};if(Object.keys(n).length>0&&(r.extend=n),t.override!=null&&!hn(t.override)&&(r.override=t.override),r.extend||r.override)return r},Zi=e=>{let t=Yi(Xi(e));return e=>t.mergeString(e)},Qi,$i=()=>(Qi||=Yi(),Qi),ea=()=>((!Fn.cachedTwMerge||Fn.didTwMergeConfigChange)&&(Fn.didTwMergeConfigChange=!1,Fn.cachedTwMerge=Zi(Fn.cachedTwMergeConfig)),Fn.cachedTwMerge),ta=e=>{let t=e?.twMergeConfig;t&&!hn(t)&&(gn(t,Fn.cachedTwMergeConfig)||(Fn.cachedTwMergeConfig=t,Fn.didTwMergeConfigChange=!0))},na=e=>cn(e),ra=(()=>{let e=Error();return!(`line`in e)&&!(`lineNumber`in e)})(),ia=64,aa=500,oa=new Map,sa=new Map,ca=0,la=()=>{oa=new Map,sa=new Map,ca=0},ua=e=>{if(e)return e.indexOf(` `)===-1?e:$i().mergeString(e)||void 0},da=(e,t,n)=>{let r=oa.get(e);r===void 0&&(r=[],oa.set(e,r)),r.length>=ia&&r.shift(),r.push({rest:t,result:n}),++ca>aa&&(ca=0,sa=oa,oa=new Map)},fa=(e,t,n,r,i)=>{let a=oa.get(e);if(a===void 0&&(a=sa.get(e)),a!==void 0)for(let e=0;e<a.length;e++){let o=a[e],s=o.rest;if(s.length!==n-1)continue;let c=0,l=!0;for(let e=t+1;e<r;e++){let t=i(e);if(t&&t!==s[c++]){l=!1;break}}if(l)return o.result}},pa=(e,t)=>{let n=``,r=-1,i=0,a=!0;for(let o=0;o<e;o++){let e=t(o);if(e){if(typeof e!=`string`){a=!1;break}r===-1&&(n=e,r=o),i++}}if(!a){let n=Array(e);for(let r=0;r<e;r++)n[r]=t(r);return ua(na(n))}if(i===0)return;if(i===1)return ua(n);let o=fa(n,r,i,e,t);if(o!==void 0)return o||void 0;let s=n,c=[];for(let n=r+1;n<e;n++){let e=t(n);e&&(s+=` `+e,c.push(e))}let l=ua(s)??``;return da(n,c,l),l||void 0},ma=Fn.reset.bind(Fn);Fn.reset=()=>{Qi=void 0,la(),ma()};var ha=(e,t)=>{let n=na(e);return!n||!(t?.twMerge??!0)?n||void 0:n.indexOf(` `)===-1?n:(ta(t),(t?.twMergeConfig&&!hn(t.twMergeConfig)?ea():$i().mergeString)(n)||void 0)},ga=(e,...t)=>ha(t,e),_a=function(){let e=arguments.length;if(e===0)return;let t=arguments[0];if(e===1)return ua(typeof t==`string`?t:na([t]));if(ra)return pa(e,e=>arguments[e]);let n=Array(e);for(let t=0;t<e;t++)n[t]=arguments[t];return ua(na(n))},va=ur(ga),ya=va.tv;va.createTV;var ba=pn,xa=(0,v.createContext)({}),Sa=`__avatar_group_child`,Ca=ya({slots:{base:`accordion`,body:`accordion__body`,bodyInner:`accordion__body-inner`,heading:`accordion__heading`,indicator:`accordion__indicator`,item:`accordion__item`,panel:`accordion__panel`,trigger:`accordion__trigger`},variants:{variant:{default:{},surface:{base:`accordion--surface`}}}}),wa=ya({defaultVariants:{fullWidth:!1,variant:`primary`},slots:{base:`autocomplete`,clearButton:`autocomplete__clear-button`,filter:`autocomplete__filter`,indicator:`autocomplete__indicator`,popover:`autocomplete__popover`,trigger:`autocomplete__trigger`,value:`autocomplete__value`},variants:{fullWidth:{false:{},true:{base:`autocomplete--full-width`,trigger:`autocomplete__trigger--full-width`}},variant:{primary:{base:`autocomplete--primary`},secondary:{base:`autocomplete--secondary`}}}}),Ta=ya({defaultVariants:{color:`default`,size:`md`},slots:{base:`avatar`,fallback:`avatar__fallback`,image:`avatar__image`},variants:{color:{accent:{fallback:`avatar__fallback--accent`},danger:{fallback:`avatar__fallback--danger`},default:{fallback:`avatar__fallback--default`},success:{fallback:`avatar__fallback--success`},warning:{fallback:`avatar__fallback--warning`}},size:{lg:{base:`avatar--lg`},md:{base:`avatar--md`},sm:{base:`avatar--sm`}},variant:{default:{},soft:{base:`avatar--soft`}}}}),Ea=ya({base:`button`,defaultVariants:{fullWidth:!1,isIconOnly:!1,size:`md`,variant:`primary`},variants:{fullWidth:{false:``,true:`button--full-width`},isIconOnly:{true:`button--icon-only`},size:{lg:`button--lg`,md:`button--md`,sm:`button--sm`},variant:{danger:`button--danger`,"danger-soft":`button--danger-soft`,ghost:`button--ghost`,outline:`button--outline`,primary:`button--primary`,secondary:`button--secondary`,tertiary:`button--tertiary`}}}),Da=ya({defaultVariants:{variant:`default`},slots:{base:`card`,content:`card__content`,description:`card__description`,footer:`card__footer`,header:`card__header`,title:`card__title`},variants:{variant:{default:{base:`card--default`},secondary:{base:`card--secondary`},tertiary:{base:`card--tertiary`},transparent:{base:`card--transparent`}}}}),Oa=ya({base:`checkbox-group`,defaultVariants:{variant:`primary`},variants:{variant:{primary:`checkbox-group--primary`,secondary:`checkbox-group--secondary`}}}),ka=ya({defaultVariants:{variant:`primary`},slots:{base:`checkbox`,content:`checkbox__content`,control:`checkbox__control`,indicator:`checkbox__indicator`},variants:{variant:{primary:{base:`checkbox--primary`},secondary:{base:`checkbox--secondary`}}}}),Aa=ya({defaultVariants:{color:`default`,variant:`secondary`},slots:{base:`chip`,label:`chip__label`},variants:{color:{accent:{base:`chip--accent`},danger:{base:`chip--danger`},default:{base:`chip--default`},success:{base:`chip--success`},warning:{base:`chip--warning`}},size:{lg:{base:`chip--lg`},md:{base:`chip--md`},sm:{base:`chip--sm`}},variant:{primary:{base:`chip--primary`},secondary:{base:`chip--secondary`},soft:{base:`chip--soft`},tertiary:{base:`chip--tertiary`}}}}),ja=ya({base:`close-button`,defaultVariants:{variant:`default`},variants:{variant:{default:`close-button--default`}}}),Ma=ya({base:`description`}),Na=ya({defaultVariants:{placement:`bottom`,variant:`opaque`},slots:{backdrop:`drawer__backdrop`,body:`drawer__body`,closeTrigger:`drawer__close-trigger`,content:`drawer__content`,dialog:`drawer__dialog`,footer:`drawer__footer`,handle:`drawer__handle`,header:`drawer__header`,heading:`drawer__heading`,trigger:`drawer__trigger`},variants:{placement:{bottom:{content:`drawer__content--bottom`,dialog:`drawer__dialog--bottom`},left:{content:`drawer__content--left`,dialog:`drawer__dialog--left`},right:{content:`drawer__content--right`,dialog:`drawer__dialog--right`},top:{content:`drawer__content--top`,dialog:`drawer__dialog--top`}},variant:{blur:{backdrop:`drawer__backdrop--blur`},opaque:{backdrop:`drawer__backdrop--opaque`},transparent:{backdrop:`drawer__backdrop--transparent`}}}}),Pa=ya({base:`empty-state`}),Fa=ya({base:`field-error`}),Ia=ya({base:`input`,defaultVariants:{fullWidth:!1,variant:`primary`},variants:{fullWidth:{false:``,true:`input--full-width`},variant:{primary:`input--primary`,secondary:`input--secondary`}}}),La=ya({base:`label`,defaultVariants:{isDisabled:!1,isInvalid:!1,isRequired:!1},variants:{isDisabled:{true:`label--disabled`},isInvalid:{true:`label--invalid`},isRequired:{true:`label--required`}}}),Ra=ya({defaultVariants:{variant:`default`},slots:{indicator:`list-box-item__indicator`,item:`list-box-item`},variants:{variant:{danger:{item:`list-box-item--danger`},default:{item:`list-box-item--default`}}}}),za=ya({base:`list-box-section`}),Ba=ya({base:`list-box`,defaultVariants:{variant:`default`},variants:{variant:{danger:`list-box--danger`,default:`list-box--default`}}}),Va=ya({defaultVariants:{scroll:`inside`,size:`md`,variant:`opaque`},slots:{backdrop:`modal__backdrop`,body:`modal__body`,closeTrigger:`modal__close-trigger`,container:`modal__container`,dialog:`modal__dialog`,footer:`modal__footer`,header:`modal__header`,heading:`modal__heading`,icon:`modal__icon`,trigger:`modal__trigger`},variants:{scroll:{inside:{body:`modal__body--scroll-inside`,dialog:`modal__dialog--scroll-inside`},outside:{body:`modal__body--scroll-outside`,container:`modal__container--scroll-outside`,dialog:`modal__dialog--scroll-outside`}},size:{cover:{dialog:`modal__dialog--cover`},full:{container:`modal__container--full`,dialog:`modal__dialog--full`},lg:{dialog:`modal__dialog--lg`},md:{dialog:`modal__dialog--md`},sm:{dialog:`modal__dialog--sm`},xs:{dialog:`modal__dialog--xs`}},variant:{blur:{backdrop:`modal__backdrop--blur`},opaque:{backdrop:`modal__backdrop--opaque`},transparent:{backdrop:`modal__backdrop--transparent`}}}}),Ha=ya({slots:{base:`popover`,dialog:`popover__dialog`,heading:`popover__heading`,trigger:`popover__trigger`}}),Ua=ya({defaultVariants:{hideScrollBar:!1,orientation:`vertical`,variant:`fade`},slots:{base:`scroll-shadow`},variants:{hideScrollBar:{false:{},true:{base:`scroll-shadow--hide-scrollbar`}},orientation:{horizontal:{base:`scroll-shadow--horizontal`},vertical:{base:`scroll-shadow--vertical`}},variant:{fade:{base:`scroll-shadow--fade`}}}}),Wa=ya({defaultVariants:{fullWidth:!1,variant:`primary`},slots:{base:`search-field`,clearButton:`search-field__clear-button`,group:`search-field__group`,input:`search-field__input`,searchIcon:`search-field__search-icon`},variants:{fullWidth:{false:{},true:{base:`search-field--full-width`,group:`search-field__group--full-width`}},variant:{primary:{base:`search-field--primary`},secondary:{base:`search-field--secondary`}}}}),Ga=ya({defaultVariants:{fullWidth:!1,variant:`primary`},slots:{base:`select`,clearButton:`select__clear-button`,indicator:`select__indicator`,popover:`select__popover`,trigger:`select__trigger`,value:`select__value`},variants:{fullWidth:{false:{},true:{base:`select--full-width`,trigger:`select__trigger--full-width`}},variant:{primary:{base:`select--primary`},secondary:{base:`select--secondary`}}}}),Ka=ya({slots:{base:`slider`,fill:`slider__fill`,marks:`slider__marks`,output:`slider__output`,thumb:`slider__thumb`,track:`slider__track`}}),qa=ya({base:`spinner`,defaultVariants:{color:`accent`,size:`md`},variants:{color:{accent:`spinner--accent`,current:`spinner--current`,danger:`spinner--danger`,success:`spinner--success`,warning:`spinner--warning`},size:{lg:`spinner--lg`,md:`spinner--md`,sm:`spinner--sm`,xl:`spinner--xl`}}}),Ja=ya({base:`surface`,defaultVariants:{variant:`default`},variants:{variant:{default:`surface--default`,secondary:`surface--secondary`,tertiary:`surface--tertiary`,transparent:`surface--transparent`}}}),Ya=ya({defaultVariants:{size:`md`},slots:{base:`switch`,content:`switch__content`,control:`switch__control`,icon:`switch__icon`,thumb:`switch__thumb`},variants:{size:{lg:{base:`switch--lg`},md:{base:`switch--md`},sm:{base:`switch--sm`}}}}),Xa=ya({defaultVariants:{align:`center`,variant:`primary`},slots:{base:`tabs`,scrollNext:`tabs__list-container__scroll-next`,scrollPrev:`tabs__list-container__scroll-prev`,scroller:`tabs__list-container__scroller`,separator:`tabs__separator`,tab:`tabs__tab`,tabIndicator:`tabs__indicator`,tabList:`tabs__list`,tabListContainer:`tabs__list-container`,tabPanel:`tabs__panel`},variants:{align:{center:{},end:{base:`tabs--align-end`},start:{base:`tabs--align-start`}},variant:{primary:{},secondary:{base:`tabs--secondary`}}}}),Za=ya({base:`textfield`,defaultVariants:{fullWidth:!1},variants:{fullWidth:{false:``,true:`textfield--full-width`}}}),Qa=ya({defaultVariants:{placement:`bottom`,variant:`default`},slots:{action:`toast__action`,close:`toast__close-button`,content:`toast__content`,description:`toast__description`,indicator:`toast__indicator`,region:`toast-region`,title:`toast__title`,toast:`toast`},variants:{placement:{bottom:{region:`toast-region--bottom`,toast:`toast--bottom`},"bottom end":{region:`toast-region--bottom-end`,toast:`toast--bottom-end`},"bottom start":{region:`toast-region--bottom-start`,toast:`toast--bottom-start`},top:{region:`toast-region--top`,toast:`toast--top`},"top end":{region:`toast-region--top-end`,toast:`toast--top-end`},"top start":{region:`toast-region--top-start`,toast:`toast--top-start`}},variant:{accent:{toast:`toast--accent`},danger:{toast:`toast--danger`},default:{toast:`toast--default`},success:{toast:`toast--success`},warning:{toast:`toast--warning`}}}}),$a=ya({slots:{base:`tooltip`,trigger:`tooltip__trigger`}}),eo=Symbol(`default`);function to({values:e,children:t}){for(let[n,r]of e)t=v.createElement(n.Provider,{value:r},t);return t}function G(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:o,values:s,render:c}=e;return(0,v.useMemo)(()=>{let e,l,u;return e=typeof t==`function`?t({...s,defaultClassName:i}):t,l=typeof n==`function`?n({...s,defaultStyle:o||{}}):n,u=typeof r==`function`?r({...s,defaultChildren:a}):r??a,{className:e??i,style:l||o?{...o,...l}:void 0,children:u??a,"data-rac":``,render:c?e=>c(e,s):void 0}},[t,n,r,i,a,o,s,c])}function no(e,t){return n=>t(typeof e==`function`?e(n):e,n)}function ro(e,t){let n=(0,v.useContext)(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||eo;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function io(e,t,n){let{ref:r,...i}=ro(n,e.slot)||{},a=st((0,v.useMemo)(()=>We(t,r),[t,r])),o=B(i,e);return`style`in i&&i.style&&`style`in e&&e.style&&(o.style=typeof i.style==`function`||typeof e.style==`function`?t=>{let n=typeof i.style==`function`?i.style(t):i.style,r={...t.defaultStyle,...n},a=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...a}}:{...i.style,...e.style}),[o,a]}function ao(e=!0){let[t,n]=(0,v.useState)(e),r=(0,v.useRef)(!1),i=(0,v.useCallback)(e=>{r.current=!0,n(!!e)},[]);return L(()=>{r.current||n(!1)},[]),[i,t]}function oo(e){let t=/^(data-.*)$/,n={};for(let r in e)t.test(r)||(n[r]=e[r]);return n}function so(e,t,n){let{render:r,...i}=t,a=(0,v.useRef)(null),o=(0,v.useMemo)(()=>We(n,a),[n,a]);L(()=>{},[e,r]);let s={...i,ref:o};return r?r(s,void 0):v.createElement(e,s)}var co={},K=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=co[t];return n||(n=(0,v.forwardRef)(so.bind(null,t)),co[t]=n),n}});typeof HTMLTemplateElement<`u`&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.appendChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.removeChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(e,t){return this.content.insertBefore(e,t)}}));var lo=(0,v.createContext)(!1);function uo(e){if((0,v.useContext)(lo))return v.createElement(v.Fragment,null,e.children);let t=v.createElement(lo.Provider,{value:!0},e.children);return v.createElement(`template`,null,t)}function fo(e){let t=(t,n)=>(0,v.useContext)(lo)?null:e(t,n);return t.displayName=e.displayName||e.name,(0,v.forwardRef)(t)}function po(){return(0,v.useContext)(lo)}var mo=(0,v.createContext)({}),ho=fo(function(e,t){[e,t]=io(e,t,mo);let{elementType:n=`label`,...r}=e,i=K[n];return v.createElement(i,{className:`react-aria-Label`,...r,ref:t})});function go(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a=`label`}=e;t=we(t);let o=we(),s={};n&&(r=r?`${o} ${r}`:o,s={id:o,htmlFor:a===`label`?t:void 0});let c=ot({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:c}}var _o=new Set([`Arab`,`Syrc`,`Samr`,`Mand`,`Thaa`,`Mend`,`Nkoo`,`Adlm`,`Rohg`,`Hebr`]),vo=new Set([`ae`,`ar`,`arc`,`bcc`,`bqi`,`ckb`,`dv`,`fa`,`glk`,`he`,`ku`,`mzn`,`nqo`,`pnb`,`ps`,`sd`,`ug`,`ur`,`yi`]);function yo(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n=typeof t.getTextInfo==`function`?t.getTextInfo():t.textInfo;if(n)return n.direction===`rtl`;if(t.script)return _o.has(t.script)}let t=e.split(`-`)[0];return vo.has(t)}var bo=Symbol.for(`react-aria.i18n.locale`);function xo(){let e=typeof window<`u`&&window[bo]||typeof navigator<`u`&&(navigator.language||navigator.userLanguage)||`en-US`;try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e=`en-US`}return{locale:e,direction:yo(e)?`rtl`:`ltr`}}var So=xo(),Co=new Set;function wo(){So=xo();for(let e of Co)e(So)}function To(){let e=ve(),[t,n]=(0,v.useState)(So);return(0,v.useEffect)(()=>(Co.size===0&&window.addEventListener(`languagechange`,wo),Co.add(n),()=>{Co.delete(n),Co.size===0&&window.removeEventListener(`languagechange`,wo)}),[]),e?{locale:typeof window<`u`&&window[bo]||`en-US`,direction:`ltr`}:t}var Eo=v.createContext(null);function Do(){let e=To();return(0,v.useContext)(Eo)||e}var Oo=new Map,ko=!1;try{ko=new Intl.NumberFormat(`de-DE`,{signDisplay:`exceptZero`}).resolvedOptions().signDisplay===`exceptZero`}catch{}var Ao=!1;try{Ao=new Intl.NumberFormat(`de-DE`,{style:`unit`,unit:`degree`}).resolvedOptions().style===`unit`}catch{}var jo={degree:{narrow:{default:`°`,"ja-JP":` 度`,"zh-TW":`度`,"sl-SI":` °`}}},Mo=class{constructor(e,t={}){this.numberFormatter=No(e,t),this.options=t}format(e){let t=``;if(t=!ko&&this.options.signDisplay!=null?Po(this.numberFormatter,this.options.signDisplay,e):this.numberFormatter.format(e),this.options.style===`unit`&&!Ao){let{unit:e,unitDisplay:n=`short`,locale:r}=this.resolvedOptions();if(!e)return t;let i=jo[e]?.[n];t+=i[r]||i.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if(typeof this.numberFormatter.formatRange==`function`)return this.numberFormatter.formatRange(e,t);if(t<e)throw RangeError(`End date must be >= start date`);return`${this.format(e)} \u{2013} ${this.format(t)}`}formatRangeToParts(e,t){if(typeof this.numberFormatter.formatRangeToParts==`function`)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw RangeError(`End date must be >= start date`);let n=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(t);return[...n.map(e=>({...e,source:`startRange`})),{type:`literal`,value:` – `,source:`shared`},...r.map(e=>({...e,source:`endRange`}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!ko&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!Ao&&this.options.style===`unit`&&(e={...e,style:`unit`,unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}};function No(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes(`-nu-`)&&(e.includes(`-u-`)||(e+=`-u-`),e+=`-nu-${n}`),t.style===`unit`&&!Ao){let{unit:e,unitDisplay:n=`short`}=t;if(!e)throw Error(`unit option must be provided with style: "unit"`);if(!jo[e]?.[n])throw Error(`Unsupported unit ${e} with unitDisplay = ${n}`);t={...t,style:`decimal`}}let r=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():``);if(Oo.has(r))return Oo.get(r);let i=new Intl.NumberFormat(e,t);return Oo.set(r,i),i}function Po(e,t,n){if(t===`auto`)return e.format(n);if(t===`never`)return e.format(Math.abs(n));{let r=!1;if(t===`always`?r=n>0||Object.is(n,0):t===`exceptZero`&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let t=e.format(-n),r=e.format(n),i=t.replace(r,``).replace(/\u200e|\u061C/,``);return[...i].length!==1&&console.warn(`@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case`),t.replace(r,`!!!`).replace(i,`+`).replace(`!!!`,r)}return e.format(n)}}function Fo(e={}){let{locale:t}=Do();return(0,v.useMemo)(()=>new Mo(t,e),[t,e])}var Io=(0,v.createContext)(null),q=7e3,Lo=null;function Ro(e,t=`assertive`,n=q){Lo?Lo.announce(e,t,n):(Lo=new Bo,(typeof IS_REACT_ACT_ENVIRONMENT==`boolean`?IS_REACT_ACT_ENVIRONMENT:typeof jest<`u`)?Lo.announce(e,t,n):setTimeout(()=>{Lo?.isAttached()&&Lo?.announce(e,t,n)},100))}function zo(e){Lo&&Lo.clear(e)}var Bo=class{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<`u`&&(this.node=document.createElement(`div`),this.node.dataset.liveAnnouncer=`true`,Object.assign(this.node.style,{border:0,clip:`rect(0 0 0 0)`,clipPath:`inset(50%)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`}),this.assertiveLog=this.createLog(`assertive`),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog(`polite`),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){return this.node?.isConnected}createLog(e){let t=document.createElement(`div`);return t.setAttribute(`role`,`log`),t.setAttribute(`aria-live`,e),t.setAttribute(`aria-relevant`,`additions`),t}destroy(){this.node&&=(document.body.removeChild(this.node),null)}announce(e,t=`assertive`,n=q){if(!this.node)return;let r=document.createElement(`div`);typeof e==`object`?(r.setAttribute(`role`,`img`),r.setAttribute(`aria-labelledby`,e[`aria-labelledby`])):r.textContent=e,t===`assertive`?this.assertiveLog?.appendChild(r):this.politeLog?.appendChild(r),e!==``&&setTimeout(()=>{r.remove()},n)}clear(e){this.node&&((!e||e===`assertive`)&&this.assertiveLog&&(this.assertiveLog.innerHTML=``),(!e||e===`polite`)&&this.politeLog&&(this.politeLog.innerHTML=``))}};function Vo(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Ho(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Uo(e){let t=(0,v.useRef)({isFocused:!1,observer:null});return L(()=>{let e=t.current;return()=>{e.observer&&=(e.observer.disconnect(),null)}},[]),(0,v.useCallback)(n=>{let r=z(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r;n.addEventListener(`focusout`,r=>{if(t.current.isFocused=!1,n.disabled){let t=Vo(r);e?.(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){t.current.observer?.disconnect();let e=n===ze()?null:ze();n.dispatchEvent(new FocusEvent(`blur`,{relatedTarget:e})),n.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:[`disabled`]})}},[e])}var Wo=!1;function Go(e){for(;e&&!Kt(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=ze(ke(e).document);if(!t||t===e)return;let n=e?.getRootNode(),r=n!=null&&Ne(n)?n:ke(e),i=t=>t===e||t!=null&&Re(e,t),a=e=>e===t||t!=null&&e!=null&&Re(t,e);Wo=!0;let o=!1,s=e=>{(a(z(e))||o)&&e.stopImmediatePropagation()},c=n=>{(a(z(n))||o)&&(n.stopImmediatePropagation(),!e&&!o&&(o=!0,P(t),d()))},l=e=>{(i(z(e))||o)&&e.stopImmediatePropagation()},u=e=>{(i(z(e))||o)&&(e.stopImmediatePropagation(),o||(o=!0,P(t),d()))};r.addEventListener(`blur`,s,!0),r.addEventListener(`focusout`,c,!0),r.addEventListener(`focusin`,u,!0),r.addEventListener(`focus`,l,!0);let d=()=>{cancelAnimationFrame(f),r.removeEventListener(`blur`,s,!0),r.removeEventListener(`focusout`,c,!0),r.removeEventListener(`focusin`,u,!0),r.removeEventListener(`focus`,l,!0),Wo=!1,o=!1},f=requestAnimationFrame(d);return d}var Ko=null,qo=`keyboard`,Jo=new Set,Yo=new Map,Xo=!1,Zo=!1,Qo={Tab:!0,Escape:!0};function $o(e,t){for(let n of Jo)n(e,t)}function es(e){return!(e.metaKey||!T()&&e.altKey||e.ctrlKey||e.key===`Control`||e.key===`Shift`||e.key===`Meta`)}function ts(e){Xo=!0,!ie.isOpening&&es(e)&&(Ko=`keyboard`,qo=`keyboard`,$o(`keyboard`,e))}function ns(e){Ko=`pointer`,qo=`pointerType`in e?e.pointerType:`mouse`,(e.type===`mousedown`||e.type===`pointerdown`)&&(Xo=!0,$o(`pointer`,e))}function rs(e){!ie.isOpening&&At(e)&&(Xo=!0,Ko=`virtual`,qo=`virtual`)}function is(e){if(Wo)return;let t=z(e),n=ke(t),r=Oe(t);if(t===n){Zo=!0;return}t!==r&&e.isTrusted&&(!Xo&&!Zo&&(Ko=`virtual`,qo=`virtual`,$o(`virtual`,e)),Xo=!1,Zo=!1)}function as(){Wo||(Xo=!1,Zo=!0)}function os(e){if(typeof window>`u`||typeof document>`u`)return;let t=ke(e),n=Oe(e);if(Yo.get(t))return;let r=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){Xo=!0,r.apply(this,arguments)}}),n.addEventListener(`keydown`,ts,!0),n.addEventListener(`keyup`,ts,!0),n.addEventListener(`click`,rs,!0),t.addEventListener(`focus`,is,!0),t.addEventListener(`blur`,as,!1),typeof PointerEvent<`u`&&(n.addEventListener(`pointerdown`,ns,!0),n.addEventListener(`pointermove`,ns,!0),n.addEventListener(`pointerup`,ns,!0)),t.addEventListener(`beforeunload`,()=>{ss(e)},{once:!0}),Yo.set(t,{focus:r})}var ss=(e,t)=>{let n=ke(e),r=Oe(e);t&&r.removeEventListener(`DOMContentLoaded`,t),Yo.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:Yo.get(n).focus}),r.removeEventListener(`keydown`,ts,!0),r.removeEventListener(`keyup`,ts,!0),r.removeEventListener(`click`,rs,!0),n.removeEventListener(`focus`,is,!0),n.removeEventListener(`blur`,as,!1),typeof PointerEvent<`u`&&(r.removeEventListener(`pointerdown`,ns,!0),r.removeEventListener(`pointermove`,ns,!0),r.removeEventListener(`pointerup`,ns,!0)),Yo.delete(n))};function cs(e){let t=Oe(e),n;return t.readyState===`loading`?(n=()=>{os(e)},t.addEventListener(`DOMContentLoaded`,n)):os(e),()=>ss(e,n)}typeof document<`u`&&cs();function ls(){return Ko!==`pointer`}function us(){return Ko}function ds(e){Ko=e,qo=e===`pointer`?`mouse`:e,$o(e,null)}function fs(){return qo}var ps=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function ms(e,t,n){let r=n?z(n):void 0,i=Oe(r),a=ke(r),o=a===void 0?HTMLInputElement:a.HTMLInputElement,s=a===void 0?HTMLTextAreaElement:a.HTMLTextAreaElement,c=a===void 0?HTMLElement:a.HTMLElement,l=a===void 0?KeyboardEvent:a.KeyboardEvent,u=ze(i);return e=e||u instanceof o&&!ps.has(u.type)||u instanceof s||u instanceof c&&u.isContentEditable,!(e&&t===`keyboard`&&n instanceof l&&!Qo[n.key])}function hs(e={}){let{isTextInput:t,autoFocus:n}=e,[r,i]=(0,v.useState)(n||ls());return gs(e=>{i(e)},[t],{isTextInput:t}),{isFocusVisible:r}}function gs(e,t,n){os(),(0,v.useEffect)(()=>{if(n?.enabled===!1)return;let t=(t,r)=>{ms(!!n?.isTextInput,t,r)&&e(ls())};return Jo.add(t),()=>{Jo.delete(t)}},t)}function _s(e){if(!e.isConnected)return;let t=Oe(e);if(us()===`virtual`){let n=ze(t);it(()=>{let r=ze(t);(r===n||r===t.body)&&e.isConnected&&P(e)})}else P(e)}function vs(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e,a=(0,v.useCallback)(e=>{if(z(e)===e.currentTarget)return r&&r(e),i&&i(!1),!0},[r,i]),o=Uo(a),s=(0,v.useCallback)(e=>{let t=z(e),r=Oe(t),a=r?ze(r):ze();t===e.currentTarget&&t===a&&(n&&n(e),i&&i(!0),o(e))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:!t&&(r||i)?a:void 0}}}function ys(e){if(e)return t=>{let n=!0;e({...t,preventDefault(){t.preventDefault()},isDefaultPrevented(){return t.isDefaultPrevented()},stopPropagation(){n=!0},continuePropagation(){n=!1,typeof t.continuePropagation==`function`&&t.continuePropagation()},isPropagationStopped(){return n}}),n&&!(typeof t.isPropagationStopped==`function`&&t.isPropagationStopped())&&t.stopPropagation()}}var bs=new Set([`shift`,`alt`,`control`,`meta`,`mod`]),xs=[`Alt`,`Control`,`Meta`,`Shift`];function Ss(e){let t=new Set;return e.alt&&t.add(`Alt`),e.shift&&t.add(`Shift`),e.ctrl&&t.add(`Control`),e.meta&&t.add(`Meta`),e.mod&&t.add(T()?`Meta`:`Control`),t}function Cs(e){let t=new Set;return e.altKey&&t.add(`Alt`),e.ctrlKey&&t.add(`Control`),e.metaKey&&t.add(`Meta`),e.shiftKey&&t.add(`Shift`),t}function ws(e){return xs.filter(t=>e.has(t))}function Ts(e){let t=e.split(`+`).reduce((e,t)=>{let n=t.toLowerCase();return bs.has(n)?n===`shift`?e.shift=!0:n===`alt`?e.alt=!0:n===`control`?e.ctrl=!0:n===`meta`?e.meta=!0:n===`mod`&&(e.mod=!0):e.key=t,e},{shift:!1,alt:!1,ctrl:!1,meta:!1,mod:!1,key:``});if(t.key===``)throw Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);return t}function Es(e){return e.toLowerCase()}var Ds={space:` `,esc:`escape`,del:`delete`,ins:`insert`,left:`arrowleft`,right:`arrowright`,up:`arrowup`,down:`arrowdown`,pageup:`pageup`,pagedown:`pagedown`};function Os(e){let t=Es(e);return Ds[t]??t}function ks(e){let t=ws(Ss(e)),n=Os(e.key);return t.length>0?`${t.join(`+`)}+${n}`:n}function As(e){let t=ws(Cs(e)),n=Es(e.key);return(t.length>0?`${t.join(`+`)}+`:``)+n}function js(e){let t=new Map;for(let[n,r]of Object.entries(e)){let e=Ts(n);t.set(ks(e),r)}return e=>{let n=As(e),r=t.get(n),i=r?.(e);i===void 0&&r!==void 0?i={shouldContinuePropagation:!1,shouldPreventDefault:!0}:typeof i==`boolean`&&(i={shouldContinuePropagation:!i,shouldPreventDefault:i}),i?.shouldPreventDefault&&e.preventDefault(),(!r||i?.shouldContinuePropagation)&&e.continuePropagation()}}function Ms(e){let{shortcuts:t,allowRepeats:n=!1,allowComposing:r=!1}=e,i,a;if(t){let o=js(t),s=ys(e=>{if(!Re(e.currentTarget,z(e))){e.continuePropagation();return}if(e.nativeEvent?.repeat&&!n||e.nativeEvent?.isComposing&&!r){e.continuePropagation();return}o(e)}),c=ys(e=>{if(!Re(e.currentTarget,z(e))){e.continuePropagation();return}if(e.nativeEvent?.repeat&&!n||e.nativeEvent?.isComposing&&!r){e.continuePropagation();return}e.continuePropagation()});i=e.onKeyDown?De(e.onKeyDown,s):s,a=e.onKeyUp?De(e.onKeyUp,c):c}else i=ys(e.onKeyDown),a=ys(e.onKeyUp);return{keyboardProps:e.isDisabled?{}:{onKeyDown:i,onKeyUp:a}}}var Ns=v.createContext(null);function Ps(e){let t=(0,v.useContext)(Ns)||{};pt(t,e);let{ref:n,...r}=t;return r}var Fs=v.forwardRef(function(e,t){let{children:n,...r}=e,i=st(t),a={...r,ref:i};return v.createElement(Ns.Provider,{value:a},n)});function Is(e,t){let{focusProps:n}=vs(e),{keyboardProps:r}=Ms(e),i=B(n,r),a=Ps(t),o=e.isDisabled?{}:a,s=(0,v.useRef)(e.autoFocus);(0,v.useEffect)(()=>{s.current&&t.current&&_s(t.current),s.current=!1},[t]);let c=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(c=void 0),{focusableProps:B({...i,tabIndex:c},o)}}var Ls=`default`,Rs=``,zs=new WeakMap;function Bs(e){if(O()&&A()){if(Ls==="default"){let t=Oe(e);Rs=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect=`none`}Ls=`disabled`}else if(e instanceof HTMLElement||e instanceof SVGElement){let t=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;zs.set(e,e.style[t]),e.style[t]=`none`}}function Vs(e){if(O()&&A()){if(Ls!==`disabled`)return;Ls=`restoring`,setTimeout(()=>{it(()=>{if(Ls===`restoring`){let t=Oe(e);t.documentElement.style.webkitUserSelect===`none`&&(t.documentElement.style.webkitUserSelect=Rs||``),Rs=``,Ls=`default`}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&zs.has(e)){let t=zs.get(e),n=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;e.style[n]===`none`&&(e.style[n]=t),e.getAttribute(`style`)===``&&e.removeAttribute(`style`),zs.delete(e)}}var Hs=v.createContext({register:()=>{}});Hs.displayName=`PressResponderContext`;function Us(e){let t=(0,v.useContext)(Hs);if(t){let{register:n,ref:r,...i}=t;e=B(i,e),n()}return pt(t,e.ref),e}var Ws=class{#e;constructor(e,t,n,r){this.#e=!0;let i=(r?.target??n.currentTarget)?.getBoundingClientRect(),a,o=0,s,c=null;n.clientX!=null&&n.clientY!=null&&(s=n.clientX,c=n.clientY),i&&(s!=null&&c!=null?(a=s-i.left,o=c-i.top):(a=i.width/2,o=i.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=a,this.y=o,this.key=n.key}continuePropagation(){this.#e=!1}get shouldStopPropagation(){return this.#e}},Gs=Symbol(`linkClicked`),Ks=`react-aria-pressable-style`,qs=`data-react-aria-pressable`;function Js(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,onClick:o,isDisabled:s,isPressed:c,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:f,...p}=Us(e),[m,h]=(0,v.useState)(!1),g=(0,v.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:_,removeAllGlobalListeners:y}=at(),b=(0,v.useCallback)((e,t)=>{let i=g.current;if(s||i.didFirePressStart)return!1;let a=!0;if(i.isTriggeringEvent=!0,r){let n=new Ws(`pressstart`,t,e);r(n),a=n.shouldStopPropagation}return n&&n(!0),i.isTriggeringEvent=!1,i.didFirePressStart=!0,h(!0),a},[s,r,n]),x=(0,v.useCallback)((e,r,a=!0)=>{let o=g.current;if(!o.didFirePressStart)return!1;o.didFirePressStart=!1,o.isTriggeringEvent=!0;let c=!0;if(i){let t=new Ws(`pressend`,r,e);i(t),c=t.shouldStopPropagation}if(n&&n(!1),h(!1),t&&a&&!s){let n=new Ws(`press`,r,e);t(n),c&&=n.shouldStopPropagation}return o.isTriggeringEvent=!1,c},[s,i,n,t]),S=lt(x),C=lt((0,v.useCallback)((e,t)=>{let n=g.current;if(s)return!1;if(a){n.isTriggeringEvent=!0;let r=new Ws(`pressup`,t,e);return a(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0},[s,a])),w=(0,v.useCallback)(e=>{let t=g.current;if(t.isPressed&&t.target){t.didFirePressStart&&t.pointerType!=null&&x(Zs(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,y(),d||Vs(t.target);for(let e of t.disposables)e();t.disposables=[]}},[d,y,x]),E=lt(w);(0,v.useEffect)(()=>{s&&g.current.isPressed&&E({currentTarget:g.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[s]);let D=(0,v.useCallback)(e=>{u&&w(e)},[u,w]),O=(0,v.useCallback)(e=>{s||o?.(e)},[s,o]),k=(0,v.useCallback)((e,t)=>{if(!s&&o){let n=new MouseEvent(`click`,e);Ho(n,t),o(Vo(n))}},[s,o]),A=(0,v.useMemo)(()=>{let e=g.current,t={onKeyDown(t){if(Xs(t.nativeEvent,t.currentTarget)&&Re(t.currentTarget,z(t))){$s(z(t),t.key)&&t.preventDefault();let r=!0;!e.isPressed&&!t.repeat&&(e.target=t.currentTarget,e.isPressed=!0,e.pointerType=`keyboard`,r=b(t,`keyboard`));let i=t.currentTarget;_(Oe(t.currentTarget),`keyup`,De(t=>{Xs(t,i)&&!t.repeat&&Re(i,z(t))&&e.target&&C(Zs(e.target,t),`keyboard`)},n),!0),r&&t.stopPropagation(),t.metaKey&&T()&&e.metaKeyEvents?.set(t.key,t.nativeEvent)}else t.key===`Meta`&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||Re(t.currentTarget,z(t)))&&t&&t.button===0&&!e.isTriggeringEvent&&!ie.isOpening){let n=!0;if(s&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&(e.pointerType===`virtual`||At(t.nativeEvent))){let e=b(t,`virtual`),r=C(t,`virtual`),i=S(t,`virtual`);O(t),n=e&&r&&i}else if(e.isPressed&&e.pointerType!==`keyboard`){let r=e.pointerType||t.nativeEvent.pointerType||`virtual`,i=C(Zs(t.currentTarget,t),r),a=S(Zs(t.currentTarget,t),r,!0);n=i&&a,e.isOverTarget=!1,O(t),E(t)}e.ignoreEmulatedMouseEvents=!1,n&&t.stopPropagation()}}},n=t=>{if(e.isPressed&&e.target&&Xs(t,e.target)){$s(z(t),t.key)&&t.preventDefault();let n=z(t),r=Re(e.target,n);S(Zs(e.target,t),`keyboard`,r),r&&k(t,e.target),y(),t.key!==`Enter`&&Ys(e.target)&&Re(e.target,n)&&!t[Gs]&&(t[Gs]=!0,ie(e.target,t,!1)),e.isPressed=!1,e.metaKeyEvents?.delete(t.key)}else if(t.key===`Meta`&&e.metaKeyEvents?.size){let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())e.target?.dispatchEvent(new KeyboardEvent(`keyup`,n))}};if(typeof PointerEvent<`u`){t.onPointerDown=t=>{if(t.button!==0||!Re(t.currentTarget,z(t)))return;if(jt(t.nativeEvent)){e.pointerType=`virtual`;return}e.pointerType=t.pointerType;let i=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,d||Bs(e.target),i=b(t,e.pointerType);let a=z(t);`releasePointerCapture`in a&&(`hasPointerCapture`in a?a.hasPointerCapture(t.pointerId)&&a.releasePointerCapture(t.pointerId):a.releasePointerCapture(t.pointerId)),_(Oe(t.currentTarget),`pointerup`,n,!1),_(Oe(t.currentTarget),`pointercancel`,r,!1)}i&&t.stopPropagation()},t.onMouseDown=t=>{if(Re(t.currentTarget,z(t))&&t.button===0){if(l){let n=Go(t.target);n&&e.disposables.push(n)}t.stopPropagation()}},t.onPointerUp=t=>{Re(t.currentTarget,z(t))&&e.pointerType!==`virtual`&&t.button===0&&!e.isPressed&&C(t,e.pointerType||t.pointerType)},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!0,b(Zs(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!1,S(Zs(e.target,t),e.pointerType,!1),D(t))};let n=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&t.button===0&&e.target){if(Re(e.target,z(t))&&e.pointerType!=null){let n=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?E(t):(P(e.target),e.target.click()))},80);_(t.currentTarget,`click`,()=>n=!0,!0),e.disposables.push(()=>clearTimeout(r))}else E(t);e.isOverTarget=!1}},r=e=>{E(e)};t.onDragStart=e=>{Re(e.currentTarget,z(e))&&E(e)}}return t},[_,s,l,y,d,D,b,O,k]);return(0,v.useEffect)(()=>{if(!f)return;let e=Oe(f.current);if(!e||!e.head||e.getElementById(Ks))return;let t=e.createElement(`style`);t.id=Ks;let n=Zt(e);n&&(t.nonce=n),t.textContent=`
11
- @layer {
12
- [${qs}] {
13
- touch-action: pan-x pan-y pinch-zoom;
14
- }
15
- }
16
- `.trim(),e.head.prepend(t)},[f]),(0,v.useEffect)(()=>{let e=g.current;return()=>{d||Vs(e.target??void 0);for(let t of e.disposables)t();e.disposables=[]}},[d]),{isPressed:c||m,pressProps:B(p,A,{[qs]:!0})}}function Ys(e){return e.tagName===`A`&&e.hasAttribute(`href`)}function Xs(e,t){let{key:n,code:r}=e,i=t,a=i.getAttribute(`role`);return(n===`Enter`||n===` `||n===`Spacebar`||r===`Space`)&&!(i instanceof ke(i).HTMLInputElement&&!tc(i,n)||i instanceof ke(i).HTMLTextAreaElement||i.isContentEditable)&&!((a===`link`||!a&&Ys(i))&&n!==`Enter`)}function Zs(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r,key:t.key}}function Qs(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!==`submit`&&e.type!==`reset`:!Ys(e)}function $s(e,t){return T()&&t===`Enter`?!1:e instanceof HTMLInputElement?t===`Enter`&&(e.type===`checkbox`||e.type===`radio`)?!1:!tc(e,t):Qs(e)}var ec=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function tc(e,t){return e.type===`checkbox`||e.type===`radio`?t===` `:ec.has(e.type)}function nc(e,t){let{elementType:n=`button`,isDisabled:r,onPress:i,onPressStart:a,onPressEnd:o,onPressUp:s,onPressChange:c,preventFocusOnPress:l,allowFocusWhenDisabled:u,onClick:d,href:f,target:p,rel:m,type:h=`button`}=e,g;g=n===`button`?{type:h,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:{role:`button`,href:n===`a`&&!r?f:void 0,target:n===`a`?p:void 0,type:n===`input`?h:void 0,disabled:n===`input`?r:void 0,"aria-disabled":!r||n===`input`?void 0:r,rel:n===`a`?m:void 0};let{pressProps:_,isPressed:v}=Js({onPressStart:a,onPressEnd:o,onPressChange:c,onPress:i,onPressUp:s,onClick:d,isDisabled:r,preventFocusOnPress:l,ref:t}),{focusableProps:y}=Is(e,t);u&&(y.tabIndex=r?-1:y.tabIndex);let b=B(y,_,V(e,{labelable:!0}));return{isPressed:v,buttonProps:B(g,b,{"aria-haspopup":e[`aria-haspopup`],"aria-expanded":e[`aria-expanded`],"aria-controls":e[`aria-controls`],"aria-pressed":e[`aria-pressed`],"aria-current":e[`aria-current`],"aria-disabled":e[`aria-disabled`]})}}function rc(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=(0,v.useRef)({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:s}=at(),c=(0,v.useCallback)(e=>{Re(e.currentTarget,z(e))&&a.current.isFocusWithin&&!Re(e.currentTarget,e.relatedTarget)&&(a.current.isFocusWithin=!1,s(),n&&n(e),i&&i(!1))},[n,i,a,s]),l=Uo(c),u=(0,v.useCallback)(e=>{if(!Re(e.currentTarget,z(e)))return;let t=z(e),n=Oe(t),s=ze(n);if(!a.current.isFocusWithin&&s===t){r&&r(e),i&&i(!0),a.current.isFocusWithin=!0,l(e);let t=e.currentTarget;o(n,`focus`,e=>{let r=z(e);if(a.current.isFocusWithin&&!Re(t,r)){let e=new n.defaultView.FocusEvent(`blur`,{relatedTarget:r});Ho(e,t);let i=Vo(e);c(i)}},{capture:!0})}},[r,i,l,o,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:c}}}function ic(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=(0,v.useRef)({isFocused:!1,isFocusVisible:t||ls()}),[a,o]=(0,v.useState)(!1),[s,c]=(0,v.useState)(()=>i.current.isFocused&&i.current.isFocusVisible),l=(0,v.useCallback)(()=>c(i.current.isFocused&&i.current.isFocusVisible),[]),u=(0,v.useCallback)(e=>{i.current.isFocused=e,i.current.isFocusVisible=ls(),o(e),l()},[l]);gs(e=>{i.current.isFocusVisible=e,l()},[n,a],{enabled:a,isTextInput:n});let{focusProps:d}=vs({isDisabled:r,onFocusChange:u}),{focusWithinProps:f}=rc({isDisabled:!r,onFocusWithinChange:u});return{isFocused:a,isFocusVisible:s,focusProps:r?f:d}}var ac=!1,oc=0;function sc(){ac=!0,setTimeout(()=>{ac=!1},500)}function cc(e){e.pointerType===`touch`&&sc()}function lc(){let e=Oe(null);if(e!==void 0)return oc===0&&typeof PointerEvent<`u`&&e.addEventListener(`pointerup`,cc),oc++,()=>{oc--,!(oc>0)&&typeof PointerEvent<`u`&&e.removeEventListener(`pointerup`,cc)}}function uc(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,o]=(0,v.useState)(!1),s=(0,v.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:``,target:null}).current;(0,v.useEffect)(lc,[]);let{addGlobalListener:c,removeAllGlobalListeners:l}=at(),{hoverProps:u,triggerHoverEnd:d}=(0,v.useMemo)(()=>{let e=(e,r)=>{if(s.pointerType=r,i||r===`touch`||s.isHovered||!Re(e.currentTarget,z(e)))return;s.isHovered=!0;let l=e.currentTarget;s.target=l,c(Oe(z(e)),`pointerover`,e=>{s.isHovered&&s.target&&!Re(s.target,z(e))&&a(e,e.pointerType)},{capture:!0}),t&&t({type:`hoverstart`,target:l,pointerType:r}),n&&n(!0),o(!0)},a=(e,t)=>{let i=s.target;s.pointerType=``,s.target=null,t!==`touch`&&s.isHovered&&i&&(s.isHovered=!1,l(),r&&r({type:`hoverend`,target:i,pointerType:t}),n&&n(!1),o(!1))},u={};return typeof PointerEvent<`u`&&(u.onPointerEnter=t=>{ac&&t.pointerType===`mouse`||e(t,t.pointerType)},u.onPointerLeave=e=>{!i&&Re(e.currentTarget,z(e))&&a(e,e.pointerType)}),{hoverProps:u,triggerHoverEnd:a}},[t,n,r,i,s,c,l]);return(0,v.useEffect)(()=>{i&&d({currentTarget:s.target},s.pointerType)},[i]),{hoverProps:u,isHovered:a}}var dc=(0,v.createContext)({}),fc=fo(function(e,t){[e,t]=io(e,t,dc);let n=e,{isPending:r}=n,{buttonProps:i,isPressed:a}=nc(e,t);i=mc(i,r);let{focusProps:o,isFocused:s,isFocusVisible:c}=ic(e),{hoverProps:l,isHovered:u}=uc({...e,isDisabled:e.isDisabled||r}),d={isHovered:u,isPressed:(n.isPressed||a)&&!r,isFocused:s,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:r??!1},f=G({...e,values:d,defaultClassName:`react-aria-Button`}),p=we(i.id),m=we(),h=i[`aria-labelledby`];r&&(h?h=`${h} ${m}`:i[`aria-label`]&&(h=`${p} ${m}`));let g=(0,v.useRef)(r);(0,v.useEffect)(()=>{let e={"aria-labelledby":h||p};(!g.current&&s&&r||g.current&&s&&!r)&&Ro(e,`assertive`),g.current=r},[r,s,h,p]);let _=V(e,{global:!0});return delete _.onClick,v.createElement(K.button,{...B(_,f,i,o,l),type:i.type===`submit`&&r?`button`:i.type,id:p,ref:t,"aria-labelledby":h,slot:e.slot||void 0,"aria-disabled":r?`true`:i[`aria-disabled`],"data-disabled":e.isDisabled||void 0,"data-pressed":d.isPressed||void 0,"data-hovered":u||void 0,"data-focused":s||void 0,"data-pending":r||void 0,"data-focus-visible":c||void 0},v.createElement(Io.Provider,{value:{id:m}},f.children))}),pc=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function mc(e,t){if(t){for(let t in e)t.startsWith(`on`)&&!pc.test(t)&&(e[t]=void 0);e.href=void 0,e.target=void 0}return e}function hc(e,t,n){let{isDisabled:r}=e,i=we(),a=we(),o=ve(),s=(0,v.useRef)(null);Et(n,`beforematch`,(0,v.useCallback)(()=>{s.current=requestAnimationFrame(()=>{n.current&&n.current.setAttribute(`hidden`,`until-found`)}),(0,Ft.flushSync)(()=>{t.toggle()})},[n,t]));let c=(0,v.useRef)(null);return L(()=>{if(s.current&&cancelAnimationFrame(s.current),n.current&&!o){let e=n.current;c.current==null||typeof e.getAnimations!=`function`?t.isExpanded?(e.removeAttribute(`hidden`),e.style.setProperty(`--disclosure-panel-width`,`auto`),e.style.setProperty(`--disclosure-panel-height`,`auto`)):(e.setAttribute(`hidden`,`until-found`),e.style.setProperty(`--disclosure-panel-width`,`0px`),e.style.setProperty(`--disclosure-panel-height`,`0px`)):t.isExpanded!==c.current&&(t.isExpanded?(e.removeAttribute(`hidden`),e.style.setProperty(`--disclosure-panel-width`,e.scrollWidth+`px`),e.style.setProperty(`--disclosure-panel-height`,e.scrollHeight+`px`),Promise.all(e.getAnimations().map(e=>e.finished)).then(()=>{e.style.setProperty(`--disclosure-panel-width`,`auto`),e.style.setProperty(`--disclosure-panel-height`,`auto`)}).catch(()=>{})):(e.style.setProperty(`--disclosure-panel-width`,e.scrollWidth+`px`),e.style.setProperty(`--disclosure-panel-height`,e.scrollHeight+`px`),window.getComputedStyle(e).height,e.style.setProperty(`--disclosure-panel-width`,`0px`),e.style.setProperty(`--disclosure-panel-height`,`0px`),Promise.all(e.getAnimations().map(e=>e.finished)).then(()=>e.setAttribute(`hidden`,`until-found`)).catch(()=>{}))),c.current=t.isExpanded}},[r,n,t.isExpanded,o]),(0,v.useEffect)(()=>()=>{s.current&&cancelAnimationFrame(s.current)},[]),{buttonProps:{id:i,"aria-expanded":t.isExpanded,"aria-controls":a,onPress:e=>{!r&&e.pointerType!==`keyboard`&&t.toggle()},isDisabled:r,onPressStart(e){e.pointerType===`keyboard`&&!r&&t.toggle()}},panelProps:{id:a,role:`group`,"aria-labelledby":i,"aria-hidden":!t.isExpanded,hidden:o?!t.isExpanded:void 0}}}var gc=typeof document<`u`?v.useInsertionEffect??v.useLayoutEffect:()=>{};function _c(e,t,n){let[r,i]=(0,v.useState)(e||t),a=(0,v.useRef)(r),o=(0,v.useRef)(e!==void 0),s=e!==void 0;(0,v.useEffect)(()=>{o.current,o.current=s},[s]);let c=s?e:r;gc(()=>{a.current=c});let[,l]=(0,v.useReducer)(()=>({}),{});return[c,(0,v.useCallback)((e,...t)=>{let r=typeof e==`function`?e(a.current):e;Object.is(a.current,r)||(a.current=r,i(r),l(),n?.(r,...t))},[n])]}function vc(e){let{allowsMultipleExpanded:t=!1,isDisabled:n=!1}=e,[r,i]=_c((0,v.useMemo)(()=>e.expandedKeys?new Set(e.expandedKeys):void 0,[e.expandedKeys]),(0,v.useMemo)(()=>e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,[e.defaultExpandedKeys]),e.onExpandedChange);return(0,v.useEffect)(()=>{if(!t&&r.size>1){let e=r.values().next().value;e!=null&&i(new Set([e]))}}),{allowsMultipleExpanded:t,isDisabled:n,expandedKeys:r,setExpandedKeys:i,toggleKey(e){let n;t?(n=new Set(r),n.has(e)?n.delete(e):n.add(e)):n=new Set(r.has(e)?[]:[e]),i(n)}}}function yc(e){let[t,n]=_c(e.isExpanded,e.defaultExpanded||!1,e.onExpandedChange);return{isExpanded:t,setExpanded:n,expand:(0,v.useCallback)(()=>{n(!0)},[n]),collapse:(0,v.useCallback)(()=>{n(!1)},[n]),toggle:(0,v.useCallback)(()=>{n(!t)},[n,t])}}var bc=(0,v.createContext)(null),xc=(0,v.forwardRef)(function(e,t){let n=vc(e),r=G({...e,defaultClassName:`react-aria-DisclosureGroup`,values:{isDisabled:n.isDisabled,state:n}}),i=V(e,{global:!0});return v.createElement(K.div,{...i,...r,ref:t,"data-disabled":e.isDisabled||void 0},v.createElement(bc.Provider,{value:n},r.children))}),Sc=(0,v.createContext)(null),Cc=(0,v.createContext)(null),wc=(0,v.createContext)(null),Tc=(0,v.forwardRef)(function(e,t){[e,t]=io(e,t,Sc);let n=(0,v.useContext)(bc),{id:r,...i}=e,a=we();r||=a;let o=n?n.expandedKeys.has(r):e.isExpanded,s=yc({...e,isExpanded:o,onExpandedChange(t){n&&n.toggleKey(r),e.onExpandedChange?.(t)}}),c=v.useRef(null),l=e.isDisabled||n?.isDisabled||!1,{buttonProps:u,panelProps:d}=hc({...e,isExpanded:o,isDisabled:l},s,c),{isFocusVisible:f,focusProps:p}=ic({within:!0}),m=G({...e,id:void 0,defaultClassName:`react-aria-Disclosure`,values:{isExpanded:s.isExpanded,isDisabled:l,isFocusVisibleWithin:f,state:s}}),h=V(i,{global:!0});return v.createElement(to,{values:[[dc,{slots:{[eo]:{},trigger:u}}],[wc,{panelProps:d,panelRef:c}],[Cc,s]]},v.createElement(K.div,{...B(h,m,p),ref:t,"data-expanded":s.isExpanded||void 0,"data-disabled":l||void 0,"data-focus-visible-within":f||void 0},m.children))}),Ec=(0,v.forwardRef)(function(e,t){let{role:n=`group`}=e,{panelProps:r,panelRef:i}=(0,v.useContext)(wc),{isFocusVisible:a,focusProps:o}=ic({within:!0}),s=G({...e,defaultClassName:`react-aria-DisclosurePanel`,values:{isFocusVisibleWithin:a}}),c=V(e,{global:!0,labelable:!0});return v.createElement(K.div,{...B(c,s,r,o),ref:We(t,i),role:n,"data-focus-visible-within":a||void 0},v.createElement(to,{values:[[dc,null]]},e.children))}),Dc=(0,v.createContext)({}),Oc=(0,v.forwardRef)(function(e,t){[e,t]=io(e,t,Dc);let{children:n,level:r=3,className:i,...a}=e,o=K[`h${r}`];return v.createElement(o,{...a,ref:t,className:i??`react-aria-Heading`},n)}),kc=e=>e?`true`:void 0;function J(e,t){return no(e,(e,n)=>ba(typeof t==`function`?t(n)??``:t??``,e??``)??``)}var Y=(e,t,n)=>typeof e==`function`?e({...n??{},className:t}):t,Ac=e=>(0,H.jsx)(`svg`,{"aria-hidden":`true`,fill:`none`,height:16,role:`presentation`,viewBox:`0 0 16 16`,width:16,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,H.jsx)(`path`,{clipRule:`evenodd`,d:`M2.97 5.47a.75.75 0 0 1 1.06 0L8 9.44l3.97-3.97a.75.75 0 1 1 1.06 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0l-4.5-4.5a.75.75 0 0 1 0-1.06`,fill:`currentColor`,fillRule:`evenodd`})}),jc=e=>(0,H.jsx)(`svg`,{"aria-hidden":`true`,fill:`none`,height:16,role:`presentation`,viewBox:`0 0 16 16`,width:16,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,H.jsx)(`path`,{clipRule:`evenodd`,d:`M13.03 10.53a.75.75 0 0 1-1.06 0L8 6.56l-3.97 3.97a.75.75 0 0 1-1.06-1.06l4.5-4.5a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1 0 1.06`,fill:`currentColor`,fillRule:`evenodd`})}),Mc=e=>(0,H.jsx)(`svg`,{"aria-hidden":`true`,fill:`none`,height:16,role:`presentation`,viewBox:`0 0 16 16`,width:16,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,H.jsx)(`path`,{clipRule:`evenodd`,d:`M10.53 2.97a.75.75 0 0 1 0 1.06L6.56 8l3.97 3.97a.75.75 0 1 1-1.06 1.06l-4.5-4.5a.75.75 0 0 1 0-1.06l4.5-4.5a.75.75 0 0 1 1.06 0`,fill:`currentColor`,fillRule:`evenodd`})}),Nc=e=>(0,H.jsx)(`svg`,{"aria-hidden":`true`,fill:`none`,height:16,role:`presentation`,viewBox:`0 0 16 16`,width:16,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,H.jsx)(`path`,{clipRule:`evenodd`,d:`M5.47 2.97a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 1 1-1.06-1.06L9.44 8 5.47 4.03a.75.75 0 0 1 0-1.06Z`,fill:`currentColor`,fillRule:`evenodd`})}),Pc=e=>(0,H.jsx)(`svg`,{"aria-hidden":`true`,fill:`none`,height:16,role:`presentation`,viewBox:`0 0 16 16`,width:16,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,H.jsx)(`path`,{clipRule:`evenodd`,d:`M3.47 3.47a.75.75 0 0 1 1.06 0L8 6.94l3.47-3.47a.75.75 0 1 1 1.06 1.06L9.06 8l3.47 3.47a.75.75 0 1 1-1.06 1.06L8 9.06l-3.47 3.47a.75.75 0 0 1-1.06-1.06L6.94 8 3.47 4.53a.75.75 0 0 1 0-1.06Z`,fill:`currentColor`,fillRule:`evenodd`})}),Fc=e=>(0,H.jsx)(`svg`,{"aria-hidden":`true`,fill:`none`,height:16,role:`presentation`,viewBox:`0 0 16 16`,width:16,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,H.jsx)(`path`,{clipRule:`evenodd`,d:`M8 13.5a5.5 5.5 0 1 0 0-11a5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-9.5a1 1 0 1 1-2 0a1 1 0 0 1 2 0m-.25 3a.75.75 0 0 0-1.5 0V11a.75.75 0 0 0 1.5 0z`,fill:`currentColor`,fillRule:`evenodd`})}),Ic=e=>(0,H.jsx)(`svg`,{"aria-hidden":`true`,fill:`none`,height:16,role:`presentation`,viewBox:`0 0 16 16`,width:16,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,H.jsx)(`path`,{clipRule:`evenodd`,d:`M7.134 2.994L2.217 11.5a1 1 0 0 0 .866 1.5h9.834a1 1 0 0 0 .866-1.5L8.866 2.993a1 1 0 0 0-1.732 0m3.03-.75c-.962-1.665-3.366-1.665-4.329 0L.918 10.749c-.963 1.666.24 3.751 2.165 3.751h9.834c1.925 0 3.128-2.085 2.164-3.751zM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2A.75.75 0 0 1 8 5m1 5.75a1 1 0 1 1-2 0a1 1 0 0 1 2 0`,fill:`currentColor`,fillRule:`evenodd`})}),Lc=e=>(0,H.jsx)(`svg`,{"aria-hidden":`true`,fill:`none`,height:16,role:`presentation`,viewBox:`0 0 16 16`,width:16,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,H.jsx)(`path`,{clipRule:`evenodd`,d:`M8 13.5a5.5 5.5 0 1 0 0-11a5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-4.5a1 1 0 1 1-2 0a1 1 0 0 1 2 0M8.75 5a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0z`,fill:`currentColor`,fillRule:`evenodd`})}),Rc=e=>(0,H.jsx)(`svg`,{"aria-hidden":`true`,fill:`none`,height:16,role:`presentation`,viewBox:`0 0 16 16`,width:16,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,H.jsx)(`path`,{clipRule:`evenodd`,d:`M13.5 8a5.5 5.5 0 1 1-11 0a5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-3.9-1.55a.75.75 0 1 0-1.2-.9L7.419 8.858L6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08z`,fill:`currentColor`,fillRule:`evenodd`})}),zc=e=>(0,H.jsx)(`svg`,{"aria-hidden":`true`,fill:`none`,height:16,role:`presentation`,viewBox:`0 0 16 16`,width:16,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,H.jsx)(`path`,{clipRule:`evenodd`,d:`M1.75 8a.75.75 0 0 1 .75-.75h11a.75.75 0 0 1 0 1.5h-11A.75.75 0 0 1 1.75 8`,fill:`currentColor`,fillRule:`evenodd`})}),Bc=e=>(0,H.jsx)(`svg`,{"aria-hidden":`true`,fill:`none`,height:16,role:`presentation`,viewBox:`0 0 16 16`,width:16,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,H.jsx)(`path`,{clipRule:`evenodd`,d:`M8 1.75a.75.75 0 0 1 .75.75v4.75h4.75a.75.75 0 0 1 0 1.5H8.75v4.75a.75.75 0 0 1-1.5 0V8.75H2.5a.75.75 0 0 1 0-1.5h4.75V2.5A.75.75 0 0 1 8 1.75`,fill:`currentColor`,fillRule:`evenodd`})}),Vc=e=>(0,H.jsx)(`svg`,{"aria-hidden":`true`,fill:`none`,height:16,role:`presentation`,viewBox:`0 0 16 16`,width:16,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,H.jsx)(`path`,{clipRule:`evenodd`,d:`M11.5 7a4.5 4.5 0 1 1-9 0a4.5 4.5 0 0 1 9 0m-.82 4.74a6 6 0 1 1 1.06-1.06l2.79 2.79a.75.75 0 1 1-1.06 1.06z`,fill:`currentColor`,fillRule:`evenodd`})}),Hc=(0,v.createContext)({}),Uc=({children:e,className:t,variant:n=`default`,...r})=>{let i=v.useMemo(()=>({variant:n}),[n]);return(0,H.jsx)(Hc,{value:i,children:(0,H.jsx)(on.div,{className:Ja({variant:n,className:t}),"data-slot":`surface`,...r,children:e})})},Wc=(0,v.createContext)({}),Gc={variant:`default`},Kc=({children:e,className:t,hideSeparator:n=!1,variant:r,...i})=>{let a=v.useMemo(()=>Ca({variant:r}),[r]),o=(0,H.jsx)(xc,{className:J(t,a.base()),"data-slot":`accordion`,...i,children:t=>(0,H.jsx)(H.Fragment,{children:typeof e==`function`?e(t):e})}),s=v.useMemo(()=>({slots:a,hideSeparator:n}),[a,n]);return(0,H.jsx)(Wc,{value:s,children:r===`surface`?(0,H.jsx)(Hc,{value:Gc,children:o}):o})},qc=Object.assign(Kc,{Root:Kc,Item:({className:e,...t})=>{let{hideSeparator:n,slots:r}=(0,v.use)(Wc);return(0,H.jsx)(Tc,{className:J(e,r?.item()),"data-hide-separator":n?`true`:void 0,"data-slot":`accordion-item`,...t,children:t.children})},Heading:({className:e,...t})=>{let{slots:n}=(0,v.use)(Wc);return(0,H.jsx)(Oc,{className:Y(n?.heading,e),"data-slot":`accordion-heading`,...t})},Trigger:({className:e,...t})=>{let{slots:n}=(0,v.use)(Wc);return(0,H.jsx)(fc,{className:J(e,n?.trigger()),"data-slot":`accordion-trigger`,slot:`trigger`,...t,children:e=>(0,H.jsx)(H.Fragment,{children:typeof t.children==`function`?t.children(e):t.children})})},Panel:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(Wc),{isExpanded:i}=(0,v.use)(Cc);return(0,H.jsx)(Ec,{className:J(t,r?.panel()),"data-expanded":kc(i),"data-slot":`accordion-panel`,...n,children:e})},Indicator:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(Wc),{isExpanded:i}=(0,v.use)(Cc);return e&&v.isValidElement(e)?v.cloneElement(e,{...n,"data-expanded":kc(i),className:Y(r?.indicator,t),"data-slot":`accordion-indicator`}):(0,H.jsx)(Ac,{className:Y(r?.indicator,t),"data-expanded":kc(i),"data-slot":`accordion-indicator`,...n})},Body:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(Wc);return(0,H.jsx)(on.div,{className:r?.body({}),"data-slot":`accordion-body`,...n,children:(0,H.jsx)(`div`,{className:Y(r?.bodyInner,t),children:e})})}}),Jc=(0,v.createContext)({placement:`bottom`}),Yc=(0,v.forwardRef)(function(e,t){[e,t]=io(e,t,Jc);let n=e.placement,r={position:`absolute`,transform:n===`top`||n===`bottom`?`translateX(-50%)`:`translateY(-50%)`};n!=null&&(r[n]=`100%`);let i=G({...e,defaultClassName:`react-aria-OverlayArrow`,values:{placement:n}});i.style&&Object.keys(i.style).forEach(e=>i.style[e]===void 0&&delete i.style[e]);let a=V(e);return v.createElement(K.div,{...a,...i,style:{...r,...i.style},ref:t,"data-placement":n})}),Xc=typeof HTMLElement<`u`&&`inert`in HTMLElement.prototype;function Zc(e){return e.dataset.liveAnnouncer===`true`||e.dataset.reactAriaTopLayer!==void 0}var Qc=new WeakMap,$c=[];function el(e,t){let n=ke(e?.[0]),r=t instanceof n.Element?{root:t}:t,i=r?.root??document.body,a=r?.shouldUseInert&&Xc,o=new Set(e),s=new Set,c=e=>a&&e instanceof n.HTMLElement?e.inert:e.getAttribute(`aria-hidden`)===`true`,l=(e,t)=>{a&&e instanceof n.HTMLElement?e.inert=t:t?e.setAttribute(`aria-hidden`,`true`):(e.removeAttribute(`aria-hidden`),e instanceof n.HTMLElement&&(e.inert=!1))},u=new Set;if(Le()){let t=i.getRootNode();for(let n of e){let e=n.getRootNode();for(;Ne(e)&&e!==t;)u.add(e),e=e.host.getRootNode()}}let d=e=>{for(let t of e.querySelectorAll(`[data-live-announcer], [data-react-aria-top-layer]`))o.add(t);let t=e=>{if(s.has(e)||o.has(e)||e.parentElement&&s.has(e.parentElement)&&e.parentElement.getAttribute(`role`)!==`row`)return NodeFilter.FILTER_REJECT;for(let t of o)if(Re(e,t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},n=Ue(Oe(e),e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),r=t(e);if(r===NodeFilter.FILTER_ACCEPT&&f(e),r!==NodeFilter.FILTER_REJECT){let e=n.nextNode();for(;e!=null;)f(e),e=n.nextNode()}},f=e=>{let t=Qc.get(e)??0;c(e)&&t===0||(t===0&&l(e,!0),s.add(e),Qc.set(e,t+1))};$c.length&&$c[$c.length-1].disconnect(),d(i);let p=new MutationObserver(e=>{for(let t of e)if(t.type===`childList`){if(t.target.isConnected&&![...o,...s].some(e=>Re(e,t.target)))for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&Zc(e)?o.add(e):e instanceof Element&&d(e);if(Le()){for(let e of u)if(!e.isConnected){p.disconnect();break}}}});p.observe(i,{childList:!0,subtree:!0});let m=new Set;if(Le())for(let e of u){let t=new MutationObserver(e=>{for(let t of e)if(t.type===`childList`){if(t.target.isConnected&&![...o,...s].some(e=>Re(e,t.target)))for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&Zc(e)?o.add(e):e instanceof Element&&d(e);if(Le()){for(let e of u)if(!e.isConnected){p.disconnect();break}}}});t.observe(e,{childList:!0,subtree:!0}),m.add(t)}let h={visibleNodes:o,hiddenNodes:s,observe(){p.observe(i,{childList:!0,subtree:!0})},disconnect(){p.disconnect()}};return $c.push(h),()=>{if(p.disconnect(),Le())for(let e of m)e.disconnect();for(let e of s){let t=Qc.get(e);t!=null&&(t===1?(l(e,!1),Qc.delete(e)):Qc.set(e,t-1))}h===$c[$c.length-1]?($c.pop(),$c.length&&$c[$c.length-1].observe()):$c.splice($c.indexOf(h),1)}}function tl(e){let t=$c[$c.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}var nl={top:`top`,bottom:`top`,left:`left`,right:`left`},rl={top:`bottom`,bottom:`top`,left:`right`,right:`left`},il={top:`left`,left:`top`},al={top:`height`,left:`width`},ol={width:`totalWidth`,height:`totalHeight`},sl={},cl=()=>typeof document<`u`?window.visualViewport:null;function ll(e,t){let n=0,r=0,i=0,a=0,o=0,s=0,c={},l=(t?.scale??1)>1;if(e.tagName===`BODY`||e.tagName===`HTML`){let l=document.documentElement;i=l.clientWidth,a=l.clientHeight,n=t?.width??i,r=t?.height??a,c.top=l.scrollTop||e.scrollTop,c.left=l.scrollLeft||e.scrollLeft,t&&(o=Math.max(0,t.pageTop-(c.top??0)),s=Math.max(0,t.pageLeft-(c.left??0)))}else({width:n,height:r,top:o,left:s}=bl(e,!1)),c.top=e.scrollTop,c.left=e.scrollLeft,i=n,a=r;return A()&&(e.tagName===`BODY`||e.tagName===`HTML`)&&l&&(c.top=0,c.left=0,o=t?.pageTop??0,s=t?.pageLeft??0),{width:n,height:r,totalWidth:i,totalHeight:a,scroll:c,top:o,left:s}}function ul(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function dl(e,t,n,r,i,a,o){let s=i.scroll[e]??0,c=r[al[e]],l=o[e]+r.scroll[nl[e]]+a,u=o[e]+r.scroll[nl[e]]+c-a,d=t-s+r.scroll[nl[e]]+o[e]-r[nl[e]],f=t-s+n+r.scroll[nl[e]]+o[e]-r[nl[e]];return d<l?l-d:f>u?Math.max(u-f,l-d):0}function fl(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function pl(e){if(sl[e])return sl[e];let[t,n]=e.split(` `),r=nl[t]||`right`,i=il[r];nl[n]||(n=`center`);let a=al[r],o=al[i];return sl[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:a,crossSize:o},sl[e]}function ml(e,t,n,r,i,a,o,s,c,l,u){let{placement:d,crossPlacement:f,axis:p,crossAxis:m,size:h,crossSize:g}=r,_={};_[m]=e[m]??0,f===`center`?_[m]+=((e[g]??0)-(n[g]??0))/2:f!==m&&(_[m]+=(e[g]??0)-(n[g]??0)),_[m]+=a;let v=e[m]-n[g]+c+l,y=e[m]+e[g]-c-l;if(_[m]=Qt(_[m],v,y),d===p){let t=s?u[h]:u[ol[h]];_[rl[p]]=Math.floor(t-e[p]+i)}else _[p]=Math.floor(e[p]+e[h]+i);return _}function hl(e,t,n,r,i,a,o,s,c,l,u){let d=(e.top==null?c[ol.height]-(e.bottom??0)-o:e.top)-(c.scroll.top??0),f=l?n.top:0,p={top:Math.max(t.top+f,(u?.offsetTop??t.top)+f),bottom:Math.min(t.top+t.height+f,(u?.offsetTop??0)+(u?.height??0))};return s===`top`?Math.max(0,d+o-p.top-((i.top??0)+(i.bottom??0)+a)):Math.max(0,p.bottom-d-((i.top??0)+(i.bottom??0)+a))}function gl(e,t,n,r,i,a,o,s){let{placement:c,axis:l,size:u}=a;return c===l?Math.max(0,n[l]-(o.scroll[l]??0)-(e[l]+(s?t[l]:0))-(r[l]??0)-r[rl[l]]-i):Math.max(0,e[u]+e[l]+(s?t[l]:0)-n[l]-n[u]+(o.scroll[l]??0)-(r[l]??0)-r[rl[l]]-i)}function _l(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_){let v=pl(e),{size:y,crossAxis:b,crossSize:x,placement:S,crossPlacement:C}=v,w=ml(t,s,n,v,u,d,l,f,m,h,c),T=u,E=gl(s,l,t,i,a+u,v,c,g);if(o&&n[y]>E){let e=pl(`${rl[S]} ${C}`),r=ml(t,s,n,e,u,d,l,f,m,h,c);gl(s,l,t,i,a+u,e,c,g)>E&&(v=e,w=r,T=u)}let D=`bottom`;v.axis===`top`?v.placement===`top`?D=`top`:v.placement===`bottom`&&(D=`bottom`):v.crossAxis===`top`&&(v.crossPlacement===`top`?D=`bottom`:v.crossPlacement===`bottom`&&(D=`top`));let O=dl(b,w[b],n[x],s,c,a,l);w[b]+=O;let k=hl(w,s,l,f,i,a,n.height,D,c,g,_);p&&p<k&&(k=p),n.height=Math.min(n.height,k),w=ml(t,s,n,v,T,d,l,f,m,h,c),O=dl(b,w[b],n[x],s,c,a,l),w[b]+=O;let A={},j=t[b]-w[b]-i[nl[b]],M=j+.5*t[x],N=m/2+h,P=nl[b]===`left`?(i.left??0)+(i.right??0):(i.top??0)+(i.bottom??0),F=n[x]-P-m/2-h;A[b]=Qt(Qt(M,t[b]+m/2-(w[b]+i[nl[b]]),t[b]+t[x]-m/2-(w[b]+i[nl[b]])),N,F),{placement:S,crossPlacement:C}=v,m?j=A[b]:C===`right`?j+=t[x]:C===`center`&&(j+=t[x]/2);let I=S===`left`||S===`top`?n[y]:0,ee={x:S===`top`||S===`bottom`?j:I,y:S===`left`||S===`right`?j:I};return{position:w,maxHeight:k,arrowOffsetLeft:A.left,arrowOffsetTop:A.top,placement:S,triggerAnchorPoint:ee}}function vl(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:a,shouldFlip:o,boundaryElement:s,offset:c,crossOffset:l,maxHeight:u,arrowSize:d=0,arrowBoundaryOffset:f=0,targetRect:p}=e,m=cl(),h=r instanceof HTMLElement?Sl(r):document.documentElement,g=h===document.documentElement,_=window.getComputedStyle(h).position,v=!!_&&_!==`static`,y=g?bl(n,!1,p):xl(n,h,!1,p);if(!g){let{marginTop:e,marginLeft:t}=window.getComputedStyle(n);y.top+=parseInt(e,10)||0,y.left+=parseInt(t,10)||0}let b=bl(r,!0),x=fl(r);b.width+=(x.left??0)+(x.right??0),b.height+=(x.top??0)+(x.bottom??0);let S=ul(i),C=ll(s,m),w=ll(h,m),T;if((s.tagName===`BODY`||s.tagName===`HTML`)&&!g){let e=yl(h,!1);T={top:-(e.top-C.top),left:-(e.left-C.left),width:0,height:0}}else T=(s.tagName===`BODY`||s.tagName===`HTML`)&&g?{top:0,left:0,width:0,height:0}:xl(s,h,!1);let E=Re(s,h);return _l(t,y,b,S,x,a,o,C,w,T,c,l,v,u,d,f,E,m)}function yl(e,t){let{top:n,left:r,width:i,height:a}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(i=e.offsetWidth,a=e.offsetHeight),{top:n,left:r,width:i,height:a}}function bl(e,t,n){let{top:r,left:i,width:a,height:o}=n||yl(e,t),{scrollTop:s,scrollLeft:c,clientTop:l,clientLeft:u}=document.documentElement;return{top:r+s-l,left:i+c-u,width:a,height:o}}function xl(e,t,n,r){let i=window.getComputedStyle(e),a;if(i.position===`fixed`)a=r||yl(e,n);else{a=bl(e,n,r);let i=bl(t,n),o=window.getComputedStyle(t);i.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,a.top-=i.top,a.left-=i.left}return a.top-=parseInt(i.marginTop,10)||0,a.left-=parseInt(i.marginLeft,10)||0,a}function Sl(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position===`static`&&!Cl(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!Cl(t);)t=t.parentElement;return t||document.documentElement}function Cl(e){let t=window.getComputedStyle(e);return t.transform!==`none`||/transform|perspective/.test(t.willChange)||t.filter!==`none`||t.contain===`paint`||`backdropFilter`in t&&t.backdropFilter!==`none`||`WebkitBackdropFilter`in t&&t.WebkitBackdropFilter!==`none`}var wl=new WeakMap;function Tl(e){let{triggerRef:t,isOpen:n,onClose:r}=e;(0,v.useEffect)(()=>!n||r===null?void 0:Pe(Be(t.current),`scroll`,e=>{let n=z(e);if(!t.current||n instanceof Node&&!Re(n,t.current)||n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)return;let i=r||wl.get(t.current);i&&i()},!0),[n,r,t])}var El=typeof document<`u`?window.visualViewport:null;function Dl(e){let{direction:t}=Do(),{arrowSize:n,targetRef:r,overlayRef:i,arrowRef:a,scrollRef:o=i,placement:s=`bottom`,containerPadding:c=12,shouldFlip:l=!0,boundaryElement:u=typeof document<`u`?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:m=!0,onClose:h,maxHeight:g,arrowBoundaryOffset:_=0,getTargetRect:y}=e,[b,x]=(0,v.useState)(null),S=[p,s,i.current,r.current,a?.current,o.current,c,l,u,d,f,m,t,g,_,n],C=(0,v.useRef)(El?.scale);(0,v.useEffect)(()=>{m&&(C.current=El?.scale)},[m]);let w=(0,v.useCallback)(()=>{if(p===!1||!m||!i.current||!r.current||!u||El?.scale!==C.current)return;let e=null;if(o.current&&Ve(o.current)){let t=ze()?.getBoundingClientRect(),n=o.current.getBoundingClientRect();e={type:`top`,offset:(t?.top??0)-n.top},e.offset>n.height/2&&(e.type=`bottom`,e.offset=(t?.bottom??0)-n.bottom)}let h=i.current;!g&&i.current&&(h.style.top=`0px`,h.style.bottom=``,h.style.maxHeight=(window.visualViewport?.height??window.innerHeight)+`px`);let v=vl({placement:kl(s,t),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:c,shouldFlip:l,boundaryElement:u,offset:d,crossOffset:f,maxHeight:g,arrowSize:n??(a?.current?yl(a.current,!0).width:0),arrowBoundaryOffset:_,targetRect:y?.(r.current)});if(!v.position)return;h.style.top=``,h.style.bottom=``,h.style.left=``,h.style.right=``,Object.keys(v.position).forEach(e=>h.style[e]=v.position[e]+`px`),h.style.maxHeight=v.maxHeight==null?``:v.maxHeight+`px`;let b=ze();if(e&&b&&o.current){let t=b.getBoundingClientRect(),n=o.current.getBoundingClientRect(),r=t[e.type]-n[e.type];o.current.scrollTop+=r-e.offset}x(v)},S);L(w,S),Ol(w),ft({ref:i,onResize:w}),ft({ref:r,onResize:w});let T=(0,v.useRef)(!1);L(()=>{let e,t=()=>{T.current=!0,clearTimeout(e),e=setTimeout(()=>{T.current=!1},500),w()},n=()=>{T.current&&t()};El?.addEventListener(`resize`,t),El?.addEventListener(`scroll`,n);let r=Pe(Be(window),`scroll`,n);return()=>{El?.removeEventListener(`resize`,t),El?.removeEventListener(`scroll`,n),r()}},[w]);let E=(0,v.useCallback)(()=>{T.current||h?.()},[h,T]);return Tl({triggerRef:r,isOpen:m,onClose:h&&E}),{overlayProps:{style:{position:b?`absolute`:`fixed`,top:b?void 0:0,left:b?void 0:0,zIndex:1e5,...b?.position,maxHeight:b?.maxHeight??`100vh`}},placement:b?.placement??null,triggerAnchorPoint:b?.triggerAnchorPoint??null,arrowProps:{"aria-hidden":`true`,role:`presentation`,style:{left:b?.arrowOffsetLeft,top:b?.arrowOffsetTop}},updatePosition:w}}function Ol(e){L(()=>(window.addEventListener(`resize`,e,!1),()=>{window.removeEventListener(`resize`,e,!1)}),[e])}function kl(e,t){return t===`rtl`?e.replace(`start`,`right`).replace(`end`,`left`):e.replace(`start`,`left`).replace(`end`,`right`)}var Al=v.createContext(null),jl=`react-aria-focus-scope-restore`,Ml=null;function Nl(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,a=(0,v.useRef)(null),o=(0,v.useRef)(null),s=(0,v.useRef)([]),{parentNode:c}=(0,v.useContext)(Al)||{},l=(0,v.useMemo)(()=>new tu({scopeRef:s}),[s]);L(()=>{let e=c||nu.root;if(nu.getTreeNode(e.scopeRef)&&Ml&&!Wl(Ml,e.scopeRef)){let t=nu.getTreeNode(Ml);t&&(e=t)}e.addChild(l),nu.addNode(l)},[l,c]),L(()=>{let e=nu.getTreeNode(s);e&&(e.contain=!!n)},[n]),L(()=>{let e=a.current?.nextSibling,t=[],n=e=>e.stopPropagation();for(;e&&e!==o.current;)t.push(e),e.addEventListener(jl,n),e=e.nextSibling;return s.current=t,()=>{for(let e of t)e.removeEventListener(jl,n)}},[t]),Yl(s,r,n),zl(s,n),Zl(s,r,n),Jl(s,i),(0,v.useEffect)(()=>{let e=ze(Oe(s.current?s.current[0]:void 0)),t=null;if(Vl(e,s.current)){for(let n of nu.traverse())n.scopeRef&&Vl(e,n.scopeRef.current)&&(t=n);t===nu.getTreeNode(s)&&(Ml=t.scopeRef)}},[s]),L(()=>()=>{let e=nu.getTreeNode(s)?.parent?.scopeRef??null;(s===Ml||Wl(s,Ml))&&(!e||nu.getTreeNode(e))&&(Ml=e),nu.removeTreeNode(s)},[s]);let u=(0,v.useMemo)(()=>Pl(s),[]),d=(0,v.useMemo)(()=>({focusManager:u,parentNode:l}),[l,u]);return v.createElement(Al.Provider,{value:d},v.createElement(`span`,{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,v.createElement(`span`,{"data-focus-scope-end":!0,hidden:!0,ref:o}))}function Pl(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,s=r||ze(Oe(n[0]??void 0)),c=n[0].previousElementSibling,l=$l(Fl(n),{tabbable:i,accept:o},n);l.currentNode=Vl(s,n)?s:c;let u=l.nextNode();return!u&&a&&(l.currentNode=c,u=l.nextNode()),u&&Gl(u,!0),u},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,s=r||ze(Oe(n[0]??void 0)),c=n[n.length-1].nextElementSibling,l=$l(Fl(n),{tabbable:i,accept:o},n);l.currentNode=Vl(s,n)?s:c;let u=l.previousNode();return!u&&a&&(l.currentNode=c,u=l.previousNode()),u&&Gl(u,!0),u},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=$l(Fl(n),{tabbable:r,accept:i},n);a.currentNode=n[0].previousElementSibling;let o=a.nextNode();return o&&Gl(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=$l(Fl(n),{tabbable:r,accept:i},n);a.currentNode=n[n.length-1].nextElementSibling;let o=a.previousNode();return o&&Gl(o,!0),o}}}function Fl(e){return e[0].parentElement}function Il(e){let t=nu.getTreeNode(Ml);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function Ll(e){if(!e.form)return Array.from(Oe(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(e=>!e.form);let t=e.form.elements.namedItem(e.name),n=ke(e);return t instanceof n.RadioNodeList?Array.from(t).filter(e=>e instanceof n.HTMLInputElement):t instanceof n.HTMLInputElement?[t]:[]}function Rl(e){if(e.checked)return!0;let t=Ll(e);return t.length>0&&!t.some(e=>e.checked)}function zl(e,t){let n=(0,v.useRef)(void 0),r=(0,v.useRef)(void 0);L(()=>{let i=e.current;if(!t){r.current&&=(cancelAnimationFrame(r.current),void 0);return}let a=Oe(i?i[0]:void 0),o=t=>{if(t.key!==`Tab`||t.altKey||t.ctrlKey||t.metaKey||!Il(e)||t.isComposing)return;let n=ze(a),r=e.current;if(!r||!Vl(n,r))return;let i=$l(Fl(r),{tabbable:!0},r);if(!n)return;i.currentNode=n;let o=t.shiftKey?i.previousNode():i.nextNode();o||=(i.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,t.shiftKey?i.previousNode():i.nextNode()),t.preventDefault(),o&&(Gl(o,!0),o instanceof ke(o).HTMLInputElement&&o.select())},s=t=>{(!Ml||Wl(Ml,e))&&Vl(z(t),e.current)?(Ml=e,n.current=z(t)):Il(e)&&!Hl(z(t),e)?n.current?Gl(n.current):Ml&&Ml.current&&ql(Ml.current):Il(e)&&(n.current=z(t))},c=t=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let r=us(),i=(r===`virtual`||r===null)&&M()&&j(),o=ze(a);if(!i&&o&&Il(e)&&!Hl(o,e)){Ml=e;let r=z(t);r&&r.isConnected?(n.current=r,Gl(n.current)):Ml.current&&ql(Ml.current)}})};return a.addEventListener(`keydown`,o,!1),a.addEventListener(`focusin`,s,!1),i?.forEach(e=>e.addEventListener(`focusin`,s,!1)),i?.forEach(e=>e.addEventListener(`focusout`,c,!1)),()=>{a.removeEventListener(`keydown`,o,!1),a.removeEventListener(`focusin`,s,!1),i?.forEach(e=>e.removeEventListener(`focusin`,s,!1)),i?.forEach(e=>e.removeEventListener(`focusout`,c,!1))}},[e,t]),L(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Bl(e){return Hl(e)}function Vl(e,t){return!e||!t?!1:t.some(t=>Re(t,e))}function Hl(e,t=null){if(e instanceof Element&&e.closest(`[data-react-aria-top-layer]`))return!0;for(let{scopeRef:n}of nu.traverse(nu.getTreeNode(t)))if(n&&Vl(e,n.current))return!0;return!1}function Ul(e){return Hl(e,Ml)}function Wl(e,t){let n=nu.getTreeNode(t)?.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function Gl(e,t=!1){if(e!=null&&!t)try{_s(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Kl(e,t=!0){let n=e[0].previousElementSibling,r=Fl(e),i=$l(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();return t&&!a&&(r=Fl(e),i=$l(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),a}function ql(e,t=!0){Gl(Kl(e,t))}function Jl(e,t){let n=v.useRef(t);(0,v.useEffect)(()=>{n.current&&(Ml=e,!Vl(ze(Oe(e.current?e.current[0]:void 0)),Ml.current)&&e.current&&ql(e.current)),n.current=!1},[e])}function Yl(e,t,n){L(()=>{if(t||n)return;let r=e.current,i=Oe(r?r[0]:void 0),a=t=>{let n=z(t);Vl(n,e.current)?Ml=e:Bl(n)||(Ml=null)};return i.addEventListener(`focusin`,a,!1),r?.forEach(e=>e.addEventListener(`focusin`,a,!1)),()=>{i.removeEventListener(`focusin`,a,!1),r?.forEach(e=>e.removeEventListener(`focusin`,a,!1))}},[e,t,n])}function Xl(e){let t=nu.getTreeNode(Ml);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function Zl(e,t,n){let r=(0,v.useRef)(typeof document<`u`?ze(Oe(e.current?e.current[0]:void 0)):null);L(()=>{let r=e.current,i=Oe(r?r[0]:void 0);if(!t||n)return;let a=()=>{(!Ml||Wl(Ml,e))&&Vl(ze(i),e.current)&&(Ml=e)};return i.addEventListener(`focusin`,a,!1),r?.forEach(e=>e.addEventListener(`focusin`,a,!1)),()=>{i.removeEventListener(`focusin`,a,!1),r?.forEach(e=>e.removeEventListener(`focusin`,a,!1))}},[e,n]),L(()=>{let r=Oe(e.current?e.current[0]:void 0);if(!t)return;let i=t=>{if(t.key!==`Tab`||t.altKey||t.ctrlKey||t.metaKey||!Il(e)||t.isComposing)return;let n=r.activeElement;if(!Hl(n,e)||!Xl(e))return;let i=nu.getTreeNode(e);if(!i)return;let a=i.nodeToRestore,o=$l(r.body,{tabbable:!0});o.currentNode=n;let s=t.shiftKey?o.previousNode():o.nextNode();if((!a||!a.isConnected||a===r.body)&&(a=void 0,i.nodeToRestore=void 0),(!s||!Hl(s,e))&&a){o.currentNode=a;do s=t.shiftKey?o.previousNode():o.nextNode();while(Hl(s,e));t.preventDefault(),t.stopPropagation(),s?Gl(s,!0):Bl(a)?Gl(a,!0):n.blur()}};return n||r.addEventListener(`keydown`,i,!0),()=>{n||r.removeEventListener(`keydown`,i,!0)}},[e,t,n]),L(()=>{let n=Oe(e.current?e.current[0]:void 0);if(!t)return;let i=nu.getTreeNode(e);if(i)return i.nodeToRestore=r.current??void 0,()=>{let r=nu.getTreeNode(e);if(!r)return;let i=r.nodeToRestore,a=ze(n);if(t&&i&&(a&&Hl(a,e)||a===n.body&&Xl(e))){let t=nu.clone();requestAnimationFrame(()=>{if(n.activeElement===n.body){let n=t.getTreeNode(e);for(;n;){if(n.nodeToRestore&&n.nodeToRestore.isConnected){Ql(n.nodeToRestore);return}n=n.parent}for(n=t.getTreeNode(e);n;){if(n.scopeRef&&n.scopeRef.current&&nu.getTreeNode(n.scopeRef)){let e=Kl(n.scopeRef.current,!0);if(e){Ql(e);return}}n=n.parent}}})}}},[e,t])}function Ql(e){e.dispatchEvent(new CustomEvent(jl,{bubbles:!0,cancelable:!0}))&&Gl(e)}function $l(e,t,n){let r=t?.tabbable?qt:Kt,i=Oe(e?.nodeType===Node.ELEMENT_NODE?e:null),a=Ue(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(e){return Re(t?.from,e)||t?.tabbable&&e.tagName===`INPUT`&&e.getAttribute(`type`)===`radio`&&(!Rl(e)||a.currentNode.tagName===`INPUT`&&a.currentNode.type===`radio`&&a.currentNode.name===e.name)?NodeFilter.FILTER_REJECT:r(e)&&(!n||Vl(e,n))&&(!t?.accept||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(a.currentNode=t.from),a}var eu=class e{constructor(){this.fastMap=new Map,this.root=new tu({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(t??null);if(!r)return;let i=new tu({scopeRef:e});r.addChild(i),i.parent=r,this.fastMap.set(e,i),n&&(i.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&Vl(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){let t=new e;for(let e of this.traverse())t.addTreeNode(e.scopeRef,e.parent?.scopeRef??null,e.nodeToRestore);return t}},tu=class{constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}},nu=new eu;function ru(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,a=(0,v.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=lt(e=>{n&&iu(e,t)&&(i&&i(e),a.current.isPointerDown=!0)}),s=lt(e=>{n&&n(e)});(0,v.useEffect)(()=>{let e=a.current;if(r)return;let n=t.current,i=Oe(n);if(typeof PointerEvent<`u`){let n=n=>{e.isPointerDown&&iu(n,t)&&s(n),e.isPointerDown=!1};return i.addEventListener(`pointerdown`,o,!0),i.addEventListener(`click`,n,!0),()=>{i.removeEventListener(`pointerdown`,o,!0),i.removeEventListener(`click`,n,!0)}}},[t,r])}function iu(e,t){if(e.button>0)return!1;let n=z(e);if(n){let e=n.ownerDocument;if(!e||!Re(e.documentElement,n)||n.closest(`[data-react-aria-top-layer]`))return!1}return t.current?!e.composedPath().includes(t.current):!1}var au=[];function ou(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:s}=e,c=(0,v.useRef)(void 0);(0,v.useEffect)(()=>{if(i&&!au.includes(t))return au.push(t),()=>{let e=au.indexOf(t);e>=0&&au.splice(e,1)}},[i,t]);let l=()=>{au[au.length-1]===t&&n&&n()},u=e=>{let n=au[au.length-1];c.current=n,(!s||s(z(e)))&&n===t&&e.stopPropagation()},d=e=>{(!s||s(z(e)))&&(au[au.length-1]===t&&e.stopPropagation(),c.current===t&&l()),c.current=void 0},{keyboardProps:f}=Ms({shortcuts:{Escape:()=>{if(!o){l();return}return!1}}});ru({ref:t,onInteractOutside:a&&i?d:void 0,onInteractOutsideStart:u});let{focusWithinProps:p}=rc({isDisabled:!r,onBlurWithin:e=>{e.relatedTarget&&!Ul(e.relatedTarget)&&(!s||s(e.relatedTarget))&&n?.()}});return{overlayProps:{...f,...p},underlayProps:{}}}var su=typeof document<`u`&&window.visualViewport,cu=0,lu;function uu(e={}){let{isDisabled:t}=e;L(()=>{if(!t)return cu++,cu===1&&(lu=O()&&A()?fu():du()),()=>{cu--,cu===0&&lu()}},[t])}function du(){let e=window.innerWidth-document.documentElement.clientWidth;return De(e>0&&(`scrollbarGutter`in document.documentElement.style?Fe(document.documentElement,`scrollbar-gutter`,`stable`):Fe(document.documentElement,`padding-right`,`${e}px`)),Fe(document.documentElement,`overflow`,`hidden`))}function fu(){let e=Fe(document.documentElement,`overflow`,`hidden`),t,n=!1,r=e=>{let r=z(e);t=mt(r)?r:ht(r,!0),n=!1;let i=r.ownerDocument.defaultView.getSelection();i&&!i.isCollapsed&&i.containsNode(r,!0)&&(n=!0),e.composedPath().some(e=>e instanceof HTMLInputElement&&e.type===`range`)&&(n=!0),`selectionStart`in r&&`selectionEnd`in r&&r.selectionStart<r.selectionEnd&&r.ownerDocument.activeElement===r&&(n=!0)},i=document.createElement(`style`),a=Zt();a&&(i.nonce=a),i.textContent=`@layer {
17
- * {
18
- overscroll-behavior: contain;
19
- }
20
- }`,document.head.prepend(i);let o=e=>{if(!(e.touches.length===2||n)){if(!t||t===document.documentElement||t===document.body){e.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&e.preventDefault()}},s=e=>{let t=z(e),n=e.relatedTarget;n&&yt(n)?(n.focus({preventScroll:!0}),pu(n,yt(t))):n||(t.parentElement?.closest(`[tabindex]`))?.focus({preventScroll:!0})},c=HTMLElement.prototype.focus;Reflect.defineProperty(HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(e){let t=ze(),n=t!=null&&yt(t);c.call(this,{...e,preventScroll:!0}),(!e||!e.preventScroll)&&pu(this,n)}});let l=De(Pe(document,`touchstart`,r,{passive:!1,capture:!0}),Pe(document,`touchmove`,o,{passive:!1,capture:!0}),Pe(document,`blur`,s,!0));return()=>{e(),l(),i.remove(),Reflect.defineProperty(HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:c})}}function pu(e,t){t||!su?mu(e):su.addEventListener(`resize`,()=>mu(e),{once:!0})}function mu(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let e=ht(n);if(e!==document.documentElement&&e!==document.body&&e!==n){let t=e.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.top<t.top||r.bottom>t.top+n.clientHeight){let n=t.bottom;su&&(n=Math.min(n,su.offsetTop+su.height));let i=r.top-t.top-((n-t.top)/2-r.height/2);e.scrollTo({top:Math.max(0,Math.min(e.scrollHeight-e.clientHeight,e.scrollTop+i)),behavior:`smooth`})}}n=e.parentElement}}function hu(e,t){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:a,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s,...c}=e,l=c.trigger===`SubmenuTrigger`,{overlayProps:u,underlayProps:d}=ou({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!a||l,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s},i??r),{overlayProps:f,arrowProps:p,placement:m,triggerAnchorPoint:h}=Dl({...c,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:a&&!l?t.close:null,getTargetRect:c.getTargetRect??(t.point?()=>new DOMRect(t.point.x,t.point.y,0,0):void 0)});uu({isDisabled:a||!t.isOpen}),(0,v.useEffect)(()=>{if(t.isOpen&&r.current)return a?tl(i?.current??r.current):el([i?.current??r.current],{shouldUseInert:!0})},[a,t.isOpen,r,i]);let{focusWithinProps:g}=rc(e);return{popoverProps:B(u,f,g),arrowProps:p,underlayProps:d,placement:m,triggerAnchorPoint:h}}var gu={};gu={dismiss:`تجاهل`};var _u={};_u={dismiss:`Отхвърляне`};var vu={};vu={dismiss:`Odstranit`};var yu={};yu={dismiss:`Luk`};var bu={};bu={dismiss:`Schließen`};var xu={};xu={dismiss:`Απόρριψη`};var Su={};Su={dismiss:`Dismiss`};var Cu={};Cu={dismiss:`Descartar`};var wu={};wu={dismiss:`Lõpeta`};var Tu={};Tu={dismiss:`Hylkää`};var Eu={};Eu={dismiss:`Rejeter`};var Du={};Du={dismiss:`התעלם`};var Ou={};Ou={dismiss:`Odbaci`};var ku={};ku={dismiss:`Elutasítás`};var Au={};Au={dismiss:`Ignora`};var ju={};ju={dismiss:`閉じる`};var Mu={};Mu={dismiss:`무시`};var Nu={};Nu={dismiss:`Atmesti`};var Pu={};Pu={dismiss:`Nerādīt`};var Fu={};Fu={dismiss:`Lukk`};var Iu={};Iu={dismiss:`Negeren`};var Lu={};Lu={dismiss:`Zignoruj`};var Ru={};Ru={dismiss:`Descartar`};var zu={};zu={dismiss:`Dispensar`};var Bu={};Bu={dismiss:`Revocare`};var Vu={};Vu={dismiss:`Пропустить`};var Hu={};Hu={dismiss:`Zrušiť`};var Uu={};Uu={dismiss:`Opusti`};var Wu={};Wu={dismiss:`Odbaci`};var Gu={};Gu={dismiss:`Avvisa`};var Ku={};Ku={dismiss:`Kapat`};var qu={};qu={dismiss:`Скасувати`};var Ju={};Ju={dismiss:`取消`};var Yu={};Yu={dismiss:`關閉`};var Xu={};Xu={"ar-AE":gu,"bg-BG":_u,"cs-CZ":vu,"da-DK":yu,"de-DE":bu,"el-GR":xu,"en-US":Su,"es-ES":Cu,"et-EE":wu,"fi-FI":Tu,"fr-FR":Eu,"he-IL":Du,"hr-HR":Ou,"hu-HU":ku,"it-IT":Au,"ja-JP":ju,"ko-KR":Mu,"lt-LT":Nu,"lv-LV":Pu,"nb-NO":Fu,"nl-NL":Iu,"pl-PL":Lu,"pt-BR":Ru,"pt-PT":zu,"ro-RO":Bu,"ru-RU":Vu,"sk-SK":Hu,"sl-SI":Uu,"sr-SP":Wu,"sv-SE":Gu,"tr-TR":Ku,"uk-UA":qu,"zh-CN":Ju,"zh-TW":Yu};var Zu=Symbol.for(`react-aria.i18n.locale`),Qu=Symbol.for(`react-aria.i18n.strings`),$u=void 0,ed=class e{constructor(e,t=`en-US`){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=td(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(t){if(typeof window>`u`)return null;let n=window[Zu];if($u===void 0){let t=window[Qu];if(!t)return null;$u={};for(let r in t)$u[r]=new e({[n]:t[r]},n)}let r=$u?.[t];if(!r)throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}};function td(e,t,n=`en-US`){if(t[e])return t[e];let r=nd(e),i=rd(e);if(i&&t[`${r}-${i}`])return t[`${r}-${i}`];if(t[r])return t[r];for(let e in t)if(e.startsWith(r+`-`))return t[e];return t[n]}function nd(e){return Intl.Locale?new Intl.Locale(e).language:e.split(`-`)[0]}function rd(e){if(Intl.Locale)return new Intl.Locale(e).script}var id=new Map,ad=new Map,od=class{constructor(e,t){this.locale=e,this.strings=t}format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return typeof n==`function`?n(t,this):n}plural(e,t,n=`cardinal`){let r=t[`=`+e];if(r)return typeof r==`function`?r():r;let i=this.locale+`:`+n,a=id.get(i);return a||(a=new Intl.PluralRules(this.locale,{type:n}),id.set(i,a)),r=t[a.select(e)]||t.other,typeof r==`function`?r():r}number(e){let t=ad.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),ad.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return typeof n==`function`?n():n}},sd=new WeakMap;function cd(e){let t=sd.get(e);return t||(t=new ed(e),sd.set(e,t)),t}function ld(e,t){return t&&ed.getGlobalDictionaryForPackage(t)||cd(e)}function ud(e,t){let{locale:n}=Do(),r=ld(e,t);return(0,v.useMemo)(()=>new od(n,r),[n,r])}var dd={border:0,clip:`rect(0 0 0 0)`,clipPath:`inset(50%)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`};function fd(e={}){let{style:t,isFocusable:n}=e,[r,i]=(0,v.useState)(!1),{focusWithinProps:a}=rc({isDisabled:!n,onFocusWithinChange:e=>i(e)}),o=(0,v.useMemo)(()=>r?t:t?{...dd,...t}:dd,[r]);return{visuallyHiddenProps:{...a,style:o}}}function pd(e){let{children:t,elementType:n=`div`,isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:o}=fd(e);return v.createElement(n,B(a,o),t)}function md(e){return e&&e.__esModule?e.default:e}function hd(e){let{onDismiss:t,...n}=e,r=ot(n,ud(md(Xu),`@react-aria/overlays`).format(`dismiss`)),i=()=>{t&&t()};return v.createElement(pd,null,v.createElement(`button`,{...r,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}var gd=v.forwardRef(({children:e,...t},n)=>{let r=(0,v.useRef)(!1),i=(0,v.useContext)(Hs),a=B(i||{},{...t,register(){r.current=!0,i&&i.register()}});return a.ref=st(n||i?.ref),pt(i,a.ref),(0,v.useEffect)(()=>{r.current||=!0},[]),v.createElement(Hs.Provider,{value:a},e)});function _d({children:e}){let t=(0,v.useMemo)(()=>({register:()=>{}}),[]);return v.createElement(Hs.Provider,{value:t},e)}var vd=(0,v.createContext)({});function yd(){return(0,v.useContext)(vd)??{}}var bd=v.createContext(null);function xd(e){let t=ve(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=(0,v.useState)(!1),o=(0,v.useMemo)(()=>({contain:i,setContain:a}),[i,a]),{getContainer:s}=yd();if(!e.portalContainer&&s&&(n=s()),!n)return null;let c=e.children;return e.disableFocusManagement||(c=v.createElement(Nl,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},c)),c=v.createElement(bd.Provider,{value:o},v.createElement(_d,null,v.createElement(Ns.Provider,{value:null},c))),Ft.createPortal(c,n)}function Sd(){let e=(0,v.useContext)(bd)?.setContain;L(()=>{e?.(!0)},[e])}function Cd(e){let[t,n]=_c(e.isOpen,e.defaultOpen||!1,e.onOpenChange),[r,i]=(0,v.useState)(null);return{isOpen:t,setOpen:n,open:(0,v.useCallback)(()=>{n(!0)},[n]),close:(0,v.useCallback)(()=>{n(!1)},[n]),toggle:(0,v.useCallback)(()=>{n(!t)},[n,t]),point:r,setPoint:i}}var wd=(0,v.createContext)(null),Td=(0,v.createContext)(null),Ed=(0,v.forwardRef)(function(e,t){[e,t]=io(e,t,wd);let n=(0,v.useContext)(Um),r=Cd(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,a=Lt(t,i.isOpen),o=e.isExiting||!e.shouldSkipAnimation&&a||!1,s=po(),{direction:c}=Do();if(s){let t=e.children;return typeof t==`function`&&(t=t({trigger:e.trigger||null,placement:`bottom`,isEntering:!1,isExiting:!1,defaultChildren:null})),v.createElement(v.Fragment,null,t)}return i&&!i.isOpen&&!o?null:v.createElement(Dd,{...e,triggerRef:e.triggerRef,state:i,popoverRef:t,isExiting:o,dir:c})});function Dd({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...i}){let a=(0,v.useRef)(null),o=(0,v.useRef)(null),s=(0,v.useContext)(Td),c=s&&i.trigger===`SubmenuTrigger`,{popoverProps:l,underlayProps:u,arrowProps:d,placement:f,triggerAnchorPoint:p}=hu({...i,offset:i.offset??8,arrowRef:a,groupRef:c?s:o},e),m=i.popoverRef,h=It(m,!!f),g=i.isEntering||!i.shouldSkipAnimation&&h||!1,_=G({...i,defaultClassName:`react-aria-Popover`,values:{trigger:i.trigger||null,placement:f,isEntering:g,isExiting:t}}),y=!i.isNonModal||i.trigger===`SubmenuTrigger`||i.trigger===`PreviewTrigger`,[b,x]=(0,v.useState)(i.trigger===`PreviewTrigger`);L(()=>{m.current&&x(y&&!m.current.querySelector(`[role=dialog]`))},[m,y]),(0,v.useEffect)(()=>{b&&i.trigger!==`PreviewTrigger`&&(i.trigger!==`SubmenuTrigger`||us()!==`pointer`)&&m.current&&!Ve(m.current)&&_s(m.current)},[b,m,i.trigger]);let S=(0,v.useMemo)(()=>{let e=_.children;if(r)for(let t of r)e=v.createElement(t.Provider,{value:null},e);return e},[_.children,r]),[C,w]=(0,v.useState)(null),T=(0,v.useCallback)(()=>{i.triggerRef.current&&w(i.triggerRef.current.getBoundingClientRect().width+`px`)},[i.triggerRef]);L(T,[T]),ft({ref:_.style?.[`--trigger-width`]?void 0:i.triggerRef,onResize:T});let E={...l.style,"--trigger-anchor-point":p?`${p.x}px ${p.y}px`:void 0,..._.style,"--trigger-width":_.style?.[`--trigger-width`]||C},D=v.createElement(K.div,{...B(V(i,{global:!0}),l),..._,id:b?i.id:void 0,role:b?`dialog`:void 0,tabIndex:b?-1:void 0,"aria-label":i[`aria-label`],"aria-labelledby":i[`aria-labelledby`],ref:m,slot:i.slot||void 0,style:E,dir:i.dir,"data-trigger":i.trigger,"data-placement":f,"data-entering":g||void 0,"data-exiting":t||void 0},!i.isNonModal&&v.createElement(hd,{onDismiss:e.close}),v.createElement(Jc.Provider,{value:{...d,placement:f,ref:a}},S),v.createElement(hd,{onDismiss:e.close}));return c?v.createElement(xd,{...i,shouldContainFocus:b&&i.trigger!==`PreviewTrigger`,isExiting:t,portalContainer:n??s?.current??void 0},D):v.createElement(xd,{...i,shouldContainFocus:b&&i.trigger!==`PreviewTrigger`,isExiting:t,portalContainer:n},!i.isNonModal&&e.isOpen&&v.createElement(`div`,{"data-testid":`underlay`,...u,style:{position:`fixed`,inset:0}}),v.createElement(`div`,{ref:o,style:{display:`contents`}},v.createElement(Td.Provider,{value:o},D)))}var Od=class{constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue=``,this[`aria-label`]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}get childNodes(){throw Error(`childNodes is not supported`)}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e[`aria-label`]=this[`aria-label`],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,n){let r=this.clone();return t.addDescendants(r,e),r}},kd=class extends Od{filter(e,t,n){let[r,i]=Fd(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},Ad=class extends Od{static{this.type=`header`}},jd=class extends Od{static{this.type=`loader`}},Md=class extends kd{static{this.type=`item`}filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}},Nd=class extends kd{static{this.type=`section`}filter(e,t,n){let r=super.filter(e,t,n);if(r&&r.lastChildKey!==null){let t=e.getItem(r.lastChildKey);if(t&&t.type!==`header`)return r}return null}},Pd=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey==null?void 0:this.keyMap.get(this.firstKey);for(;e;)yield e,e=e.nextKey==null?void 0:this.keyMap.get(e.nextKey)}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let n=t.get(e),r=n?.firstChildKey==null?null:t.get(n.firstChildKey);for(;r;)yield r,r=r.nextKey==null?void 0:t.get(r.nextKey)}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!==`item`&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);return t?.key??null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!==`item`&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey==null?null:this.keyMap.get(this.lastKey);for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);return e?.key??null}getItem(e){return this.keyMap.get(e)??null}at(){throw Error(`Not implemented`)}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t.itemCount=this.itemCount,t}addNode(e){if(this.frozen)throw Error(`Cannot add a node to a frozen collection`);e.type===`item`&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){this.addNode(e);let n=t.getChildren(e.key);for(let e of n)this.addDescendants(e,t)}removeNode(e){if(this.frozen)throw Error(`Cannot remove a node to a frozen collection`);let t=this.keyMap.get(e);t!=null&&t.type===`item`&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,n=!1){if(this.frozen)throw Error(`Cannot commit a frozen collection`);this.firstKey=e,this.lastKey=t,this.frozen=!n}filter(e){let t=new this.constructor,[n,r]=Fd(this,t,this.firstKey,e);return t?.commit(n,r),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}};function Fd(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,o=e.getItem(n);for(;o!=null;){let n=o.filter(e,t,r);n!=null&&(n.nextKey=null,a&&(n.prevKey=a.key,a.nextKey=n.key),i??=n,t.addNode(n),a=n),o=o.nextKey==null?null:e.getItem(o.nextKey)}if(a&&a.type===`separator`){let e=a.prevKey;t.removeNode(a.key),e==null?a=null:(a=t.getItem(e),a.nextKey=null)}return[i?.key??null,a?.key??null]}var Id=class{constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){return this.parentNode?.isConnected||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild??=e,this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode===this&&(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}},Ld=class e extends Id{constructor(e,t){super(t),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof e?this.parentNode.level+ +(this.parentNode.node?.type===`item`):0}getMutableNode(){return this.node==null?null:(this.isMutated||=(this.node=this.node.clone(),!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){let t=this.nextVisibleSibling,n=this.getMutableNode();if(n!=null&&(n.index=this.index,n.level=this.level,n.parentKey=this.parentNode instanceof e?this.parentNode.node?.key??null:null,n.prevKey=this.previousVisibleSibling?.node?.key??null,n.nextKey=t?.node?.key??null,n.hasChildNodes=!!this.firstChild,n.firstChildKey=this.firstVisibleChild?.node?.key??null,n.lastChildKey=this.lastVisibleChild?.node?.key??null,(n.colSpan!=null||n.colIndex!=null)&&t)){let e=(n.colIndex??n.index)+(n.colSpan??1);if(t.node!=null&&e!==t.node.colIndex){let n=t.getMutableNode();n.colIndex=e}}}setProps(e,t,n,r,i){let a,{value:o,textValue:s,id:c,...l}=e;if(this.node==null?(a=new n(c??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),l.ref=t,a.props=l,a.rendered=r,a.render=i,a.value=o,e[`aria-label`]&&(a[`aria-label`]=e[`aria-label`]),a.textValue=s||(typeof l.children==`string`?l.children:``)||e[`aria-label`]||``,c!=null&&c!==a.key)throw Error(`Cannot change the id of an item`);l.colSpan!=null&&(a.colSpan=l.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?`none`:``},set display(t){let n=t===`none`;if(e.isHidden!==n){(e.parentNode?.firstVisibleChild===e||e.parentNode?.lastVisibleChild===e)&&e.ownerDocument.markDirty(e.parentNode);let t=e.previousVisibleSibling,r=e.nextVisibleSibling;t&&e.ownerDocument.markDirty(t),r&&e.ownerDocument.markDirty(r),e.isHidden=n,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}},Rd=class extends Id{constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}get isConnected(){return!0}createElement(e){return new Ld(e,this)}getMutableCollection(){return this.nextCollection||=this.collection.clone(),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let t of e)this.addNode(t);t.addNode(e.node)}removeNode(e){for(let t of e)this.removeNode(t);e.node&&this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection:(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let e of this.dirtyNodes)e instanceof Ld&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof Ld?(e.isConnected&&!e.isHidden&&(e.updateNode(),this.addNode(e)),e.node&&this.dirtyNodes.delete(e),e.isMutated=!1):this.dirtyNodes.delete(e);this.nextCollection&&(this.nextCollection.commit(this.firstVisibleChild?.node?.key??null,this.lastVisibleChild?.node?.key??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null))}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0,this.isSSR||(this.collection=this.collection.clone());for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),this.queuedRender&&e(),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}};function zd(e){let{children:t,items:n,idScope:r,addIdAndValue:i,dependencies:a=[]}=e,o=(0,v.useMemo)(()=>void 0,[t]),s=(0,v.useMemo)(()=>new WeakMap,[...a,o]);return(0,v.useMemo)(()=>{if(n&&typeof t==`function`){let e=[];for(let a of n){let n=Bd(a)?a:null,o=n?s.get(n):null;if(!o){o=t(a);let c=o.props.id??a?.key??a?.id;r!=null&&o.props.id==null&&c!=null&&(c=r+`:`+c);let l=c??e.length;o=(0,v.cloneElement)(o,i?{key:l,id:c,value:a}:{key:l}),n&&s.set(n,o)}e.push(o)}return e}if(typeof t!=`function`)return t},[t,n,s,r,i])}function Bd(e){switch(typeof e){case`object`:return e!=null;case`function`:case`symbol`:return!0;default:return!1}}var Vd=o((e=>{var t=d();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),Hd=o(((e,t)=>{t.exports=Vd()}))(),Ud=(0,v.createContext)(!1),Wd=(0,v.createContext)(null);function Gd(e){if((0,v.useContext)(Wd))return e.content;let{collection:t,document:n}=Yd(e.createCollection);return v.createElement(v.Fragment,null,v.createElement(uo,null,v.createElement(Wd.Provider,{value:n},e.content)),v.createElement(Kd,{render:e.children,collection:t}))}function Kd({collection:e,render:t}){return t(e)}function qd(e,t,n){let r=ve(),i=(0,v.useRef)(r);i.current=r;let a=(0,v.useCallback)(()=>i.current?n():t(),[t,n]);return(0,Hd.useSyncExternalStore)(e,a)}var Jd=typeof v.useSyncExternalStore==`function`?v.useSyncExternalStore:qd;function Yd(e){let[t]=(0,v.useState)(()=>new Rd(e?.()||new Pd));return{collection:Jd((0,v.useCallback)(e=>t.subscribe(e),[t]),(0,v.useCallback)(()=>{let e=t.getCollection();return t.isSSR&&t.resetAfterSSR(),e},[t]),(0,v.useCallback)(()=>(t.isSSR=!0,t.getCollection()),[t])),document:t}}var Xd=(0,v.createContext)(null);function Zd(e){return class extends Od{static{this.type=e}}}function Qd(e,t,n,r,i,a){typeof e==`string`&&(e=Zd(e));let o=(0,v.useCallback)(i=>{i?.setProps(t,n,e,r,a)},[t,n,r,a,e]),s=(0,v.useContext)(Xd);if(s){let o=s.ownerDocument.nodesByProps.get(t);return o||(o=s.ownerDocument.createElement(e.type),o.setProps(t,n,e,r,a),s.appendChild(o),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(t,o)),i?v.createElement(Xd.Provider,{value:o},i):null}return v.createElement(e.type,{ref:o},i)}function $d(e,t){let n=({node:e})=>t(e.props,e.props.ref,e),r=(0,v.forwardRef)((r,i)=>{let a=(0,v.useContext)(Ns);if(!(0,v.useContext)(Ud)){if(t.length>=3)throw Error(t.name+` cannot be rendered outside a collection.`);return t(r,i)}return Qd(e,r,i,`children`in r?r.children:null,null,e=>v.createElement(Ns.Provider,{value:a},v.createElement(n,{node:e})))});return r.displayName=t.name,r}function ef(e,t,n=tf){let r=({node:e})=>t(e.props,e.props.ref,e),i=(0,v.forwardRef)((t,i)=>Qd(e,t,i,null,n(t),e=>v.createElement(r,{node:e}))??v.createElement(v.Fragment,null));return i.displayName=t.name,i}function tf(e){return zd({...e,addIdAndValue:!0})}var nf=(0,v.createContext)(null);function rf(e){let t=(0,v.useContext)(nf),n=(t?.dependencies||[]).concat(e.dependencies),r=e.idScope??t?.idScope,i=tf({...e,idScope:r,dependencies:n});return(0,v.useContext)(Wd)&&(i=v.createElement(af,null,i)),t=(0,v.useMemo)(()=>({dependencies:n,idScope:r}),[r,...n]),v.createElement(nf.Provider,{value:t},i)}function af({children:e}){let t=(0,v.useContext)(Wd),n=(0,v.useMemo)(()=>v.createElement(Wd.Provider,{value:null},v.createElement(Ud.Provider,{value:!0},e)),[e]);return ve()?v.createElement(Xd.Provider,{value:t},n):(0,Ft.createPortal)(n,t)}var of=(0,v.createContext)(null),sf={CollectionRoot({collection:e,renderDropIndicator:t}){return cf(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return cf(e,t,n)}};function cf(e,t,n){return zd({items:t?e.getChildren(t.key):e,dependencies:[n],children(t){if(t.type===`content`)return v.createElement(v.Fragment,null);let r=t.render(t);return!n||t.type!==`item`?r:v.createElement(v.Fragment,null,n({type:`item`,key:t.key,dropPosition:`before`}),r,lf(e,t,n))}})}function lf(e,t,n){let r=t.key,i=e.getKeyAfter(r),a=i==null?null:e.getItem(i);for(;a!=null&&a.type!==`item`;)i=e.getKeyAfter(a.key),a=i==null?null:e.getItem(i);let o=t.nextKey==null?null:e.getItem(t.nextKey);for(;o!=null&&o.type!==`item`;)o=o.nextKey==null?null:e.getItem(o.nextKey);let s=[];if(o==null){let r=t;for(;r?.type===`item`&&(!a||r.parentKey!==a.parentKey&&a.level<r.level);){let t=n({type:`item`,key:r.key,dropPosition:`after`});(0,v.isValidElement)(t)&&s.push((0,v.cloneElement)(t,{key:`${r.key}-after`})),r=r.parentKey==null?null:e.getItem(r.parentKey)}}return s}var uf=(0,v.createContext)(sf);function df(e){return(0,v.useMemo)(()=>e==null?null:new Set([e]),[e])}function ff(e){let t=hf(Oe(e));t!==e&&(t&&pf(t,e),e&&mf(e,t))}function pf(e,t){e.dispatchEvent(new FocusEvent(`blur`,{relatedTarget:t})),e.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,relatedTarget:t}))}function mf(e,t){e.dispatchEvent(new FocusEvent(`focus`,{relatedTarget:t})),e.dispatchEvent(new FocusEvent(`focusin`,{bubbles:!0,relatedTarget:t}))}function hf(e){let t=ze(e),n=t?.getAttribute(`aria-activedescendant`);return n&&e.getElementById(n)||t}var gf={};gf={collectionLabel:`مقترحات`};var _f={};_f={collectionLabel:`Предложения`};var vf={};vf={collectionLabel:`Návrhy`};var yf={};yf={collectionLabel:`Forslag`};var bf={};bf={collectionLabel:`Empfehlungen`};var xf={};xf={collectionLabel:`Προτάσεις`};var Sf={};Sf={collectionLabel:`Suggestions`};var Cf={};Cf={collectionLabel:`Sugerencias`};var wf={};wf={collectionLabel:`Soovitused`};var Tf={};Tf={collectionLabel:`Ehdotukset`};var Ef={};Ef={collectionLabel:`Suggestions`};var Df={};Df={collectionLabel:`הצעות`};var Of={};Of={collectionLabel:`Prijedlozi`};var kf={};kf={collectionLabel:`Javaslatok`};var Af={};Af={collectionLabel:`Suggerimenti`};var jf={};jf={collectionLabel:`候補`};var Mf={};Mf={collectionLabel:`제안`};var Nf={};Nf={collectionLabel:`Pasiūlymai`};var Pf={};Pf={collectionLabel:`Ieteikumi`};var Ff={};Ff={collectionLabel:`Forslag`};var If={};If={collectionLabel:`Suggesties`};var Lf={};Lf={collectionLabel:`Sugestie`};var Rf={};Rf={collectionLabel:`Sugestões`};var zf={};zf={collectionLabel:`Sugestões`};var Bf={};Bf={collectionLabel:`Sugestii`};var Vf={};Vf={collectionLabel:`Предложения`};var Hf={};Hf={collectionLabel:`Návrhy`};var Uf={};Uf={collectionLabel:`Predlogi`};var Wf={};Wf={collectionLabel:`Predlozi`};var Gf={};Gf={collectionLabel:`Förslag`};var Kf={};Kf={collectionLabel:`Öneriler`};var qf={};qf={collectionLabel:`Пропозиції`};var Jf={};Jf={collectionLabel:`建议`};var Yf={};Yf={collectionLabel:`建議`};var Xf={};Xf={"ar-AE":gf,"bg-BG":_f,"cs-CZ":vf,"da-DK":yf,"de-DE":bf,"el-GR":xf,"en-US":Sf,"es-ES":Cf,"et-EE":wf,"fi-FI":Tf,"fr-FR":Ef,"he-IL":Df,"hr-HR":Of,"hu-HU":kf,"it-IT":Af,"ja-JP":jf,"ko-KR":Mf,"lt-LT":Nf,"lv-LV":Pf,"nb-NO":Ff,"nl-NL":If,"pl-PL":Lf,"pt-BR":Rf,"pt-PT":zf,"ro-RO":Bf,"ru-RU":Vf,"sk-SK":Hf,"sl-SI":Uf,"sr-SP":Wf,"sv-SE":Gf,"tr-TR":Kf,"uk-UA":qf,"zh-CN":Jf,"zh-TW":Yf};function Zf(e){return e&&e.__esModule?e.default:e}function Qf(e,t){let{inputRef:n,collectionRef:r,filter:i,disableAutoFocusFirst:a=!1,disableVirtualFocus:o=!1}=e,s=we(),c=(0,v.useRef)(void 0),l=(0,v.useRef)(!1),u=(0,v.useRef)(null),d=us()===`virtual`&&(O()||M()),[f,p]=(0,v.useState)(!d&&!o),[m,h]=(0,v.useState)(!1),[g,_]=(0,v.useState)(!1);(0,v.useEffect)(()=>()=>clearTimeout(c.current),[]);let y=lt(e=>{!e.isTrusted&&f&&n.current&&ze(Oe(n.current))!==n.current&&fs()!==`touch`&&n.current.focus();let i=z(e);!e.isTrusted&&i&&u.current!==i.id&&(clearTimeout(c.current),i===r.current?u.current&&!document.getElementById(u.current)&&(u.current=null,t.setFocusedNodeId(null)):l.current?(u.current=i.id,c.current=setTimeout(()=>{t.setFocusedNodeId(i.id)},500)):(u.current=i.id,t.setFocusedNodeId(i.id)),l.current=!1)}),[S,C]=(0,v.useState)(null),w=(0,v.useCallback)(e=>{C(e),e==null?h(!1):(e.getAttribute(`tabindex`)!=null&&p(!1),h(!0))},[]);L(()=>(S?.addEventListener(`focusin`,y),()=>{S?.removeEventListener(`focusin`,y)}),[S]);let T=st((0,v.useMemo)(()=>We(r,w),[r,w])),E=(0,v.useCallback)(()=>{if(!r.current){_(!0);return}l.current=!0,r.current?.dispatchEvent(new CustomEvent(x,{cancelable:!0,bubbles:!0,detail:{focusStrategy:`first`}}))},[r]),D=(0,v.useCallback)(e=>{_(!1),ff(ze()),u.current=null,t.setFocusedNodeId(null);let n=new CustomEvent(b,{cancelable:!0,bubbles:!0,detail:{clearFocusKey:e}});clearTimeout(c.current),l.current=!1,r.current?.dispatchEvent(n)},[r,t]),k=(0,v.useRef)(``);Et(n,`beforeinput`,e=>{let{inputType:t}=e;k.current=t});let A=e=>{(k.current===`insertText`||k.current===`insertCompositionText`||k.current===`insertFromComposition`)&&!a?E():k.current&&(k.current.includes(`insert`)||k.current.includes(`delete`)||k.current.includes(`history`))&&(D(!0),hf(document)===n.current&&mf(n.current,null)),t.setInputValue(e)},j=(0,v.useRef)(null),N=e=>{if(j.current=z(e),e.nativeEvent.isComposing)return;let t=u.current;switch(t!==null&&Oe(n.current).getElementById(t)==null&&(u.current=null,t=null),e.key){case`a`:if(_t(e))return;break;case`Escape`:if(e.isDefaultPrevented())return;break;case` `:return;case`Tab`:`continuePropagation`in e&&e.continuePropagation();return;case`Home`:case`End`:case`PageDown`:case`PageUp`:case`ArrowUp`:case`ArrowDown`:case`ArrowRight`:case`ArrowLeft`:{if((e.key===`Home`||e.key===`End`)&&t==null&&e.shiftKey)return;if(e.key===`ArrowRight`||e.key===`ArrowLeft`){if(t==null){e.isPropagationStopped()||e.stopPropagation();return}break}e.preventDefault();let n=new CustomEvent(x,{cancelable:!0,bubbles:!0});r.current?.dispatchEvent(n);break}}e.isPropagationStopped()||e.stopPropagation();let i=!0;if(r.current!==null){if(t==null)i=r.current?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent))||!1;else{let n=document.getElementById(t);n&&(i=n?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent))||!1)}}if(i)switch(e.key){case`ArrowLeft`:case`ArrowRight`:D();break;case`Enter`:t!=null&&document.getElementById(t)?.dispatchEvent(new PointerEvent(`click`,e.nativeEvent))}else e.preventDefault()},P=lt(e=>{if(z(e)===j.current){e.stopImmediatePropagation();let t=u.current;t==null?r.current?.dispatchEvent(new KeyboardEvent(e.type,e)):document.getElementById(t)?.dispatchEvent(new KeyboardEvent(e.type,e))}});(0,v.useEffect)(()=>(document.addEventListener(`keyup`,P,!0),()=>{document.removeEventListener(`keyup`,P,!0)}),[]);let F=ot({id:s,"aria-label":ud(Zf(Xf),`@react-aria/autocomplete`).format(`collectionLabel`)}),I=(0,v.useCallback)((e,n)=>!i||i(e,t.inputValue,n),[t.inputValue,i]),ee=e=>{if(!e.isTrusted)return;let t=u.current?document.getElementById(u.current):null;t&&pf(t,e.relatedTarget)},te=e=>{if(e.isTrusted&&u.current&&document.getElementById(u.current)){let t=z(e);queueMicrotask(()=>{pf(t,r.current),mf(r.current,t)})}},ne=e=>{e.button===0&&e.pointerType!==`touch`&&u.current!=null&&n.current!=null&&z(e)===n.current&&D()},re={value:t.inputValue,onChange:A},ie={onKeyDown:N,"aria-activedescendant":t.focusedNodeId??void 0,onBlur:ee,onFocus:te,onPointerDown:ne};return re={...re,...f&&m&&ie,enterKeyHint:`go`,"aria-controls":m?s:void 0,"aria-autocomplete":`list`,autoCorrect:`off`,spellCheck:`false`,autoComplete:`off`},{inputProps:re,collectionProps:B(F,{shouldUseVirtualFocus:f,disallowTypeAhead:f,autoFocus:g?`first`:!1}),collectionRef:T,filter:i==null?void 0:I}}function $f(e){let{onInputChange:t,inputValue:n,defaultInputValue:r=``}=e,i=e=>{t&&t(e)},[a,o]=(0,v.useState)(null),[s,c]=_c(n,r,i);return{inputValue:s,setInputValue:c,focusedNodeId:a,setFocusedNodeId:o}}var ep=(0,v.createContext)(null),tp=(0,v.createContext)(null),np=(0,v.createContext)(null),rp=(0,v.createContext)(null);function ip(e){e=B(ro(ep,e.slot),e);let{filter:t,disableAutoFocusFirst:n}=e,r=$f(e),i=(0,v.useRef)(null),a=(0,v.useRef)(null),{inputProps:o,collectionProps:s,collectionRef:c,filter:l}=Qf({...oo(e),filter:t,disableAutoFocusFirst:n,inputRef:i,collectionRef:a},r);return v.createElement(to,{values:[[tp,r],[rp,{...o,ref:i}],[np,{...s,filter:l,ref:c}]]},e.children)}var ap=(0,v.createContext)({}),op=$d(Ad,function(e,t){return[e,t]=io(e,t,ap),v.createElement(K.header,{className:`react-aria-Header`,...e,ref:t},e.children)}),sp=(0,v.createContext)(null);function cp(e){let t=(0,v.useRef)({});return v.createElement(sp.Provider,{value:t},e.children)}var lp=(0,v.forwardRef)(function(e,t){let{name:n,isVisible:r=!0,children:i,className:a,style:o,render:s,...c}=e,[l,u]=(0,v.useState)(r?`visible`:`hidden`),d=(0,v.useContext)(sp);if(!d)throw Error(`<SharedElement> must be rendered inside a <SharedElementTransition>`);r&&l===`hidden`&&u(`visible`),t=st(t),L(()=>{let e=t.current,i=d.current,a=i[n],o=null;if(e&&r&&a){u(`visible`);let t=e.getAnimations(),r=a.style.map(([t,n])=>{let r=e.style[t];if(t===`translate`){let t=a.rect,n=e.getBoundingClientRect(),r=t.left-n?.left,i=t.top-n?.top;e.style.translate=`${r}px ${i}px`}else e.style[t]=n;return[t,r]});for(let n of e.getAnimations())t.includes(n)||n.cancel();o=requestAnimationFrame(()=>{o=null;for(let[t,n]of r)e.style[t]=n}),delete i[n]}else e&&r&&!a?(queueMicrotask(()=>(0,Ft.flushSync)(()=>u(`entering`))),o=requestAnimationFrame(()=>{o=null,u(`visible`)})):e&&!r&&queueMicrotask(()=>{i[n]?(delete i[n],(0,Ft.flushSync)(()=>u(`exiting`)),Promise.all(e.getAnimations().map(e=>e.finished)).then(()=>u(`hidden`)).catch(()=>{})):u(`hidden`)});return()=>{if(o!=null&&cancelAnimationFrame(o),e&&e.isConnected&&!e.hasAttribute(`data-exiting`)){let t=window.getComputedStyle(e);if(t.transitionProperty!==`none`){let r=t.transitionProperty.split(/\s*,\s*/);i[n]={rect:e.getBoundingClientRect(),style:r.map(e=>[e,t[e]])}}}}},[t,d,n,r]);let f=G({children:i,className:a,style:o,render:s,values:{isEntering:l===`entering`,isExiting:l===`exiting`}});return l===`hidden`?null:v.createElement(K.div,{...c,...f,ref:t,"data-entering":l===`entering`||void 0,"data-exiting":l===`exiting`||void 0})}),up=(0,v.createContext)({isSelected:!1}),dp=(0,v.forwardRef)(function(e,t){[e,t]=io(e,t,up);let{isSelected:n,...r}=e;return v.createElement(lp,{...r,ref:t,className:e.className||`react-aria-SelectionIndicator`,name:`SelectionIndicator`,isVisible:n})});function fp(e){let t=V(e,{labelable:!0}),n;return e.orientation===`vertical`&&(n=`vertical`),e.elementType===`hr`?{separatorProps:t}:{separatorProps:{...t,role:`separator`,"aria-orientation":n}}}var pp=(0,v.createContext)({}),mp=$d(class extends Od{static{this.type=`separator`}filter(e,t){let n=t.getItem(this.prevKey);if(n&&n.type!==`separator`){let n=this.clone();return t.addDescendants(n,e),n}return null}},function(e,t){[e,t]=io(e,t,pp);let{elementType:n,orientation:r,style:i,className:a,slot:o,...s}=e,c=n||`hr`;c===`hr`&&r===`vertical`&&(c=`div`);let l=K[c],{separatorProps:u}=fp({...s,elementType:n,orientation:r}),d=V(e,{global:!0});return v.createElement(l,{render:e.render,...B(d,u),style:i,className:a??`react-aria-Separator`,ref:t,slot:o||void 0})}),hp=(0,v.createContext)({}),gp=fo(function(e,t){[e,t]=io(e,t,hp);let{elementType:n=`span`,...r}=e,i=K[n];return v.createElement(i,{className:`react-aria-Text`,...r,ref:t})}),_p={};_p={longPressMessage:`اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة`};var vp={};vp={longPressMessage:`Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто`};var yp={};yp={longPressMessage:`Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku`};var bp={};bp={longPressMessage:`Langt tryk eller tryk på Alt + pil ned for at åbne menuen`};var xp={};xp={longPressMessage:`Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen`};var Sp={};Sp={longPressMessage:`Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού`};var Cp={};Cp={longPressMessage:`Long press or press Alt + ArrowDown to open menu`};var wp={};wp={longPressMessage:`Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú`};var Tp={};Tp={longPressMessage:`Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool`};var Ep={};Ep={longPressMessage:`Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli`};var Dp={};Dp={longPressMessage:`Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu.`};var Op={};Op={longPressMessage:`לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט`};var kp={};kp={longPressMessage:`Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika`};var Ap={};Ap={longPressMessage:`Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához`};var jp={};jp={longPressMessage:`Premi a lungo o premi Alt + Freccia giù per aprire il menu`};var Mp={};Mp={longPressMessage:`長押しまたは Alt+下矢印キーでメニューを開く`};var Np={};Np={longPressMessage:`길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기`};var Pp={};Pp={longPressMessage:`Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“.`};var Fp={};Fp={longPressMessage:`Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa`};var Ip={};Ip={longPressMessage:`Langt trykk eller trykk Alt + PilNed for å åpne menyen`};var Lp={};Lp={longPressMessage:`Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen`};var Rp={};Rp={longPressMessage:`Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu`};var zp={};zp={longPressMessage:`Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu`};var Bp={};Bp={longPressMessage:`Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu`};var Vp={};Vp={longPressMessage:`Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul`};var Hp={};Hp={longPressMessage:`Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню`};var Up={};Up={longPressMessage:`Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol`};var Wp={};Wp={longPressMessage:`Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol`};var Gp={};Gp={longPressMessage:`Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni`};var Kp={};Kp={longPressMessage:`Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn`};var qp={};qp={longPressMessage:`Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın`};var Jp={};Jp={longPressMessage:`Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню`};var Yp={};Yp={longPressMessage:`长按或按 Alt + 向下方向键以打开菜单`};var Xp={};Xp={longPressMessage:`長按或按 Alt+向下鍵以開啟功能表`};var Zp={};Zp={"ar-AE":_p,"bg-BG":vp,"cs-CZ":yp,"da-DK":bp,"de-DE":xp,"el-GR":Sp,"en-US":Cp,"es-ES":wp,"et-EE":Tp,"fi-FI":Ep,"fr-FR":Dp,"he-IL":Op,"hr-HR":kp,"hu-HU":Ap,"it-IT":jp,"ja-JP":Mp,"ko-KR":Np,"lt-LT":Pp,"lv-LV":Fp,"nb-NO":Ip,"nl-NL":Lp,"pl-PL":Rp,"pt-BR":zp,"pt-PT":Bp,"ro-RO":Vp,"ru-RU":Hp,"sk-SK":Up,"sl-SI":Wp,"sr-SP":Gp,"sv-SE":Kp,"tr-TR":qp,"uk-UA":Jp,"zh-CN":Yp,"zh-TW":Xp};var Qp=500;function $p(e){let{isDisabled:t,pointerType:n,onLongPressStart:r,onLongPressEnd:i,onLongPress:a,threshold:o=Qp,accessibilityDescription:s}=e,c=(0,v.useRef)(void 0),{addGlobalListener:l,removeAllGlobalListeners:u}=at(),d=e=>n?e.pointerType===n:e.pointerType===`mouse`||e.pointerType===`touch`,{pressProps:f}=Js({isDisabled:t,onPressStart(e){if(e.continuePropagation(),d(e)){r&&r({...e,type:`longpressstart`}),c.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent(`pointercancel`,{bubbles:!0})),l(e.target,`click`,e=>e.preventDefault(),{once:!0}),Oe(e.target).activeElement!==e.target&&P(e.target),a&&a({...e,type:`longpress`}),c.current=void 0},o),e.pointerType===`touch`&&l(e.target,`contextmenu`,e=>e.preventDefault(),{once:!0});let t=ke(e.target);l(t,`pointerup`,()=>{setTimeout(()=>{u()},100)},{once:!0})}},onPressEnd(e){c.current&&clearTimeout(c.current),i&&d(e)&&i({...e,type:`longpressend`})}});return{longPressProps:B(f,Tt(a&&!t?s:void 0))}}function em(e){let{onContextMenu:t}=e,n=(0,v.useRef)(!1),{longPressProps:r}=$p({onLongPressStart(){n.current=!1},onLongPress(e){n.current?n.current=!1:t?.({target:e.target,x:e.x,y:e.y})}});return t?{contextMenuProps:B(O()?r:{},{onContextMenu(e){e.stopPropagation(),e.preventDefault(),n.current=!0;let r=e.currentTarget.getBoundingClientRect();t({target:e.currentTarget,x:e.clientX-r.x,y:e.clientY-r.y})},onKeyDown(e){if(T()&&e.ctrlKey&&e.key===`Enter`){n.current=!1;let r=e.currentTarget;e.stopPropagation(),setTimeout(()=>{if(n.current)n.current=!1;else{let e=r.getBoundingClientRect();t({target:r,x:e.width/2,y:e.height/2})}},10)}}})}:{contextMenuProps:{}}}function tm(e,t,n){let{type:r}=e,{isOpen:i}=t;(0,v.useEffect)(()=>{n&&n.current&&wl.set(n.current,t.close)});let a;r===`menu`?a=!0:r===`listbox`&&(a=`listbox`);let o=we();return{triggerProps:{"aria-haspopup":a,"aria-expanded":i,"aria-controls":i?o:void 0,onPress:t.toggle},overlayProps:{id:o}}}function nm(e){return e&&e.__esModule?e.default:e}function rm(e,t,n){let{type:r=`menu`,isDisabled:i,trigger:a=`press`}=e,o=we(),{triggerProps:s,overlayProps:c}=tm({type:r},t,n),l=(e,n,r=`first`)=>{if(!e||n.isDefaultPrevented())return!1;t.toggle(r)},{keyboardProps:u}=Ms({isDisabled:i,shortcuts:{Enter:e=>l(a!==`longPress`,e,`first`)," ":e=>l(a!==`longPress`,e,`first`),ArrowDown:e=>l(a!==`longPress`,e,`first`),ArrowUp:e=>l(a!==`longPress`,e,`last`),"Alt+Enter":e=>l(a===`longPress`,e,`first`),"Alt+ ":e=>l(a===`longPress`,e,`first`),"Alt+ArrowDown":e=>l(!0,e,`first`),"Alt+ArrowUp":e=>l(!0,e,`last`)}}),d=ud(nm(Zp),`@react-aria/menu`),{longPressProps:f}=$p({isDisabled:i||a!==`longPress`,accessibilityDescription:d.format(`longPressMessage`),onLongPressStart(){t.close()},onLongPress(){t.open(`first`)}}),p={preventFocusOnPress:!0,onPressStart(e){e.pointerType!==`touch`&&e.pointerType!==`keyboard`&&!i&&(P(e.target),t.open(e.pointerType===`virtual`?`first`:null))},onPress(e){e.pointerType===`touch`&&!i&&(P(e.target),t.toggle())}};delete s.onPress;let{contextMenuProps:m}=em({onContextMenu(e){let n=e.target.getBoundingClientRect();t.setPoint({x:n.x+e.x,y:n.y+e.y}),t.open()}});(0,v.useEffect)(()=>{if(t.isOpen&&a===`contextMenu`){let e=e=>{(e.button===2||e.button===0&&e.ctrlKey===!0)&&z(e)===document.body&&t.close()};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)}},[t,a]);let h;if(a===`press`)h={...p,...u};else if(a===`longPress`)h={...f,...u};else if(a===`contextMenu`){h=m;let{"aria-haspopup":e,"aria-expanded":t,"aria-controls":n,...r}=s;s=r}return{menuTriggerProps:{...s,...h,id:o},menuProps:{...c,"aria-labelledby":o,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function im(e){return k()?e.altKey:e.ctrlKey}function am(e,t){let n=`[data-key="${CSS.escape(String(t))}"]`,r=e.current?.dataset.collection;return r&&(n=`[data-collection="${CSS.escape(r)}"]${n}`),e.current?.querySelector(n)}var om=new WeakMap;function sm(e){let t=we();return om.set(e,t),t}function cm(e){return om.get(e)}var lm=1e3;function um(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=(0,v.useRef)({search:``,timeout:void 0});return(0,v.useEffect)(()=>{let e=i.current.timeout;return()=>{clearTimeout(e)}},[i]),{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{if(i.current.search.length>0&&e.key===` `){if(e.preventDefault(),(!(`continuePropagation`in e)||`continuePropagation`in e&&!e.isPropagationStopped())&&e.stopPropagation(),i.current.search+=` `,t.getKeyForSearch!=null){let e=t.getKeyForSearch(i.current.search,n.focusedKey);e??=t.getKeyForSearch(i.current.search),e!=null&&(n.setFocusedKey(e),r&&r(e))}clearTimeout(i.current.timeout),i.current.timeout=setTimeout(()=>{i.current.search=``},lm)}}:void 0,onKeyDown:t.getKeyForSearch?e=>{let a=dm(e.key);if(!(!a||e.ctrlKey||e.metaKey||e.altKey||!Re(e.currentTarget,z(e))||i.current.search.length===0&&a===` `)){if(i.current.search+=a,t.getKeyForSearch!=null){let a=t.getKeyForSearch(i.current.search,n.focusedKey);if(a??=t.getKeyForSearch(i.current.search),a!=null)n.setFocusedKey(a),r&&r(a),e.preventDefault(),`continuePropagation`in e||e.stopPropagation();else{i.current.search=``,clearTimeout(i.current.timeout),i.current.timeout=void 0;return}}clearTimeout(i.current.timeout),i.current.timeout=setTimeout(()=>{i.current.search=``},lm)}}:void 0}}}function dm(e){return e.length===1||!/^[A-Z]/i.test(e)?e:``}function fm(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:o=!1,disallowSelectAll:s=!1,escapeKeyBehavior:c=`clearSelection`,selectOnFocus:l=t.selectionBehavior===`replace`,disallowTypeAhead:u=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,scrollRef:p=r,linkBehavior:m=`action`,UNSTABLE_focusOnEntry:h}=e,{direction:g}=Do(),_=re(),y=(e,n,i)=>{if(n!=null){if(t.isLink(n)&&m===`selection`&&l&&!im(e)){(0,Ft.flushSync)(()=>{t.setFocusedKey(n,i)});let a=am(r,n),o=t.getItemProps(n);if(a){_.open(a,e,o.href,o.routerOptions);return}return!1}if(t.setFocusedKey(n,i),t.isLink(n)&&m===`override`)return!1;if(e.shiftKey&&t.selectionMode===`multiple`){t.extendSelection(n);return}if(l&&!im(e)){t.replaceSelection(n);return}}return!1},S=e=>{if(n.getKeyBelow){let r=t.focusedKey==null?n.getFirstKey?.():n.getKeyBelow?.(t.focusedKey);if(r==null&&a&&(r=n.getFirstKey?.(t.focusedKey)),r!=null){y(e,r);return}}return!1},C=e=>{if(n.getKeyAbove){let r=t.focusedKey==null?n.getLastKey?.():n.getKeyAbove?.(t.focusedKey);if(r==null&&a&&(r=n.getLastKey?.(t.focusedKey)),r!=null){y(e,r);return}}return!1},w=e=>{if(n.getFirstKey){if(t.focusedKey===null&&e.shiftKey)return!1;let r=n.getFirstKey(t.focusedKey,_t(e));if(t.setFocusedKey(r),r!=null){if(_t(e)&&e.shiftKey&&t.selectionMode===`multiple`){t.extendSelection(r);return}if(l){t.replaceSelection(r);return}}}return!1},E=e=>{if(n.getKeyLeftOf){let r=t.focusedKey==null?n.getFirstKey?.():n.getKeyLeftOf?.(t.focusedKey);if(r==null&&a&&(r=g===`rtl`?n.getFirstKey?.(t.focusedKey):n.getLastKey?.(t.focusedKey)),r!=null){y(e,r,g===`rtl`?`first`:`last`);return}}return!1},D=e=>{if(n.getKeyRightOf){let r=t.focusedKey==null?n.getFirstKey?.():n.getKeyRightOf?.(t.focusedKey);if(r==null&&a&&(r=g===`rtl`?n.getLastKey?.(t.focusedKey):n.getFirstKey?.(t.focusedKey)),r!=null){y(e,r,g===`rtl`?`last`:`first`);return}}return!1},O=e=>{if(n.getLastKey){if(t.focusedKey===null&&e.shiftKey)return!1;let r=n.getLastKey(t.focusedKey,_t(e));if(t.setFocusedKey(r),r!=null){if(_t(e)&&e.shiftKey&&t.selectionMode===`multiple`){t.extendSelection(r);return}if(l){t.replaceSelection(r);return}}}return!1},k=e=>{if(n.getKeyPageBelow&&t.focusedKey!=null){let r=n.getKeyPageBelow(t.focusedKey);if(r!=null)return y(e,r)}return!1},A=e=>{if(n.getKeyPageAbove&&t.focusedKey!=null){let r=n.getKeyPageAbove(t.focusedKey);if(r!=null)return y(e,r)}return!1},j=()=>{if(t.selectionMode===`multiple`&&s!==!0){t.selectAll();return}return!1},M=()=>{if(c===`clearSelection`&&!o&&t.selectedKeys.size!==0){t.clearSelection();return}return!1},N=()=>{if(!f&&r.current){let e=$l(r.current,{tabbable:!0}),t,n;do n=e.lastChild(),n&&(t=n);while(n);let i=ze();t&&(!Ve(t)||i&&!qt(i))&&P(t)}return{shouldContinuePropagation:!0,shouldPreventDefault:!1}},F=()=>(!f&&r.current&&r.current.focus(),{shouldContinuePropagation:!0,shouldPreventDefault:!1}),I=(e,t)=>({[T()?e+`+Shift+Alt`:e+`+Shift+Control`]:t,[e+`+Shift`]:t,[T()?e+`+Alt`:e+`+Control`]:t,[e]:t}),{keyboardProps:ee}=Ms({shortcuts:{...I(`ArrowDown`,S),...I(`ArrowUp`,C),...I(`ArrowLeft`,E),...I(`ArrowRight`,D),...I(`PageDown`,k),...I(`PageUp`,A)},allowRepeats:!0}),{keyboardProps:te}=Ms({shortcuts:{...I(`Home`,w),...I(`End`,O),"Mod+A":j,Escape:M,Tab:N,"Tab+Shift":F}}),ne=(0,v.useRef)({top:0,left:0});Et(p,`scroll`,()=>{ne.current={top:p.current?.scrollTop??0,left:p.current?.scrollLeft??0}});let ie=e=>{if(t.isFocused){Re(e.currentTarget,z(e))||t.setFocused(!1);return}if(!Re(e.currentTarget,z(e)))return;let i=us();t.setFocused(!0);let a=e=>{e!=null&&(t.setFocusedKey(e),l&&!t.isSelected(e)&&t.replaceSelection(e))};if(h&&(i===`keyboard`||i===`virtual`))a(h===`first`?n.getFirstKey?.():n.getLastKey?.());else if(t.focusedKey==null){let r=e.relatedTarget;r&&e.currentTarget.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_FOLLOWING?a(t.lastSelectedKey??n.getLastKey?.()):a(t.firstSelectedKey??n.getFirstKey?.())}else p.current&&(p.current.scrollTop=ne.current.top,p.current.scrollLeft=ne.current.left);if(t.focusedKey!=null&&p.current){let e=am(r,t.focusedKey);e instanceof HTMLElement&&(!Ve(e)&&!d&&P(e),(i===`keyboard`||h&&i===`virtual`)&&kt(e,{containingElement:r.current}))}},ae=e=>{Re(e.currentTarget,e.relatedTarget)||t.setFocused(!1)},oe=(0,v.useRef)(!1);Et(r,x,d?e=>{let{detail:n}=e;e.stopPropagation(),t.setFocused(!0),n?.focusStrategy===`first`&&(oe.current=!0)}:void 0);let se=n.getFirstKey?.()??null;ut(()=>{if(oe.current){if(se==null){let e=ze();ff(r.current),mf(e,null),t.collection.size>0&&(oe.current=!1)}else t.setFocusedKey(se),oe.current=!1}},[se,t.collection.size]),ut(()=>{t.collection.size>0&&(oe.current=!1)},[t.focusedKey]),Et(r,b,d?e=>{e.stopPropagation(),t.setFocused(!1),e.detail?.clearFocusKey&&t.setFocusedKey(null)}:void 0);let L=(0,v.useRef)(i),ce=(0,v.useRef)(!1);(0,v.useEffect)(()=>{if(L.current){let e=null;i===`first`&&(e=n.getFirstKey?.()??null),i===`last`&&(e=n.getLastKey?.()??null);let a=t.selectedKeys;if(a.size){for(let n of a)if(t.canSelectItem(n)){e=n;break}}t.setFocused(!0),t.setFocusedKey(e),e!=null&&l&&!a.size&&t.canSelectItem(e)&&t.replaceSelection(e),e==null&&!d&&r.current&&_s(r.current),t.collection.size>0&&(L.current=!1,ce.current=!0)}});let le=(0,v.useRef)(t.focusedKey),ue=(0,v.useRef)(null);(0,v.useEffect)(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==le.current||ce.current)&&p.current&&r.current){let e=us(),n=am(r,t.focusedKey);if(!(n instanceof HTMLElement))return;(e===`keyboard`||ce.current)&&(ue.current&&cancelAnimationFrame(ue.current),ue.current=requestAnimationFrame(()=>{p.current&&(Dt(p.current,n),e!==`virtual`&&kt(n,{containingElement:r.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&le.current!=null&&r.current&&_s(r.current),le.current=t.focusedKey,ce.current=!1}),(0,v.useEffect)(()=>()=>{ue.current&&cancelAnimationFrame(ue.current)},[]),Et(r,`react-aria-focus-scope-restore`,e=>{e.preventDefault(),t.setFocused(!0)});let de={...B(te,ee),onFocus:ie,onBlur:ae,onMouseDown(e){p.current===z(e)&&e.preventDefault()}},{typeSelectProps:fe}=um({keyboardDelegate:n,selectionManager:t});u||(de=B(fe,de));let R;d||(R=t.focusedKey==null?0:-1);let pe=sm(t.collection);return{collectionProps:B(de,{tabIndex:R,"data-collection":pe})}}var pm=class{constructor(e){this.ref=e}getItemRect(e){let t=this.ref.current;if(!t)return null;let n=e==null?null:am(this.ref,e);if(!n)return null;let r=t.getBoundingClientRect(),i=n.getBoundingClientRect();return{x:i.left-r.left-t.clientLeft+t.scrollLeft,y:i.top-r.top-t.clientTop+t.scrollTop,width:i.width,height:i.height}}getContentSize(){let e=this.ref.current;return{width:e?.scrollWidth??0,height:e?.scrollHeight??0}}getVisibleRect(){let e=this.ref.current;return{x:e?.scrollLeft??0,y:e?.scrollTop??0,width:e?.clientWidth??0,height:e?.clientHeight??0}}},mm=class{constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||`all`,this.orientation=t.orientation||`vertical`,this.direction=t.direction,this.layout=t.layout||`stack`,this.layoutDelegate=t.layoutDelegate||new pm(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout=`stack`,this.orientation=`vertical`,this.disabledBehavior=`all`,this.layoutDelegate=new pm(this.ref);this.layout===`stack`&&this.orientation===`vertical`&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}isDisabled(e){return this.disabledBehavior===`all`&&(e.props?.isDisabled||this.disabledKeys.has(e.key))&&e.props?.disabledBehavior!==`selection`}findNextNonDisabled(e,t,n=!1){let r=e;for(;r!=null;){let e=this.collection.getItem(r);if(e?.type===`item`&&(n||!this.isDisabled(e)))return r;r=t(r)}return null}getNextKey(e,t){let n=e;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,e=>this.collection.getKeyAfter(e),t?.includeDisabled)}getPreviousKey(e,t){let n=e;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,e=>this.collection.getKeyBefore(e),t?.includeDisabled)}findKey(e,t,n){let r=e,i=this.layoutDelegate.getItemRect(r);if(!i||r==null)return null;let a=i;do{if(r=t(r),r==null)break;i=this.layoutDelegate.getItemRect(r)}while(i&&n(a,i)&&r!=null);return r}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}isReversed(e){let t=this.getNextKey(e),n=am(this.ref,e);if(t!=null){let e=am(this.ref,t);return!n||!e?!1:n.getBoundingClientRect().top>e.getBoundingClientRect().top}let r=this.getPreviousKey(e);if(r!=null){let e=am(this.ref,r);return!n||!e?!1:e.getBoundingClientRect().top>n.getBoundingClientRect().top}return!1}getKeyBelow(e,t){return this.layout===`grid`&&this.orientation===`vertical`?this.findKey(e,e=>this.getNextKey(e,t),this.isSameRow):this.orientation===`vertical`&&this.isReversed(e)?this.getPreviousKey(e,t):this.getNextKey(e,t)}getKeyAbove(e,t){return this.layout===`grid`&&this.orientation===`vertical`?this.findKey(e,e=>this.getPreviousKey(e,t),this.isSameRow):this.orientation===`vertical`&&this.isReversed(e)?this.getNextKey(e,t):this.getPreviousKey(e,t)}getNextColumn(e,t,n){return t?this.getPreviousKey(e,n):this.getNextKey(e,n)}getKeyRightOf(e,t){let n=this.direction===`ltr`?`getKeyRightOf`:`getKeyLeftOf`;return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[n](e),t?.includeDisabled)):this.layout===`grid`?this.orientation===`vertical`?this.getNextColumn(e,this.direction===`rtl`,t):this.findKey(e,e=>this.getNextColumn(e,this.direction===`rtl`,t),this.isSameColumn):this.orientation===`horizontal`?this.getNextColumn(e,this.direction===`rtl`,t):null}getKeyLeftOf(e,t){let n=this.direction===`ltr`?`getKeyLeftOf`:`getKeyRightOf`;return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[n](e),t?.includeDisabled)):this.layout===`grid`?this.orientation===`vertical`?this.getNextColumn(e,this.direction===`ltr`,t):this.findKey(e,e=>this.getNextColumn(e,this.direction===`ltr`,t),this.isSameColumn):this.orientation===`horizontal`?this.getNextColumn(e,this.direction===`ltr`,t):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyAfter(e))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;let r=this.isReversed(e);if(t&&!mt(t))return this.getFirstKey();let i=e;if(this.orientation===`horizontal`){let e=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>e&&i!=null;)i=this.getKeyAbove(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}else{let e=this.layoutDelegate.getVisibleRect(),t=r?n.y-e.height:Math.max(0,n.y+n.height-e.height);for(;n&&n.y>t&&i!=null;)i=this.getKeyAbove(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}return i??(r?this.getLastKey():this.getFirstKey())}getKeyPageBelow(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;let r=this.isReversed(e);if(t&&!mt(t))return this.getLastKey();let i=e;if(this.orientation===`horizontal`){let e=Math.min(this.layoutDelegate.getContentSize().width,n.x-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<e&&i!=null;)i=this.getKeyBelow(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}else{let e=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<e&&i!=null;)i=this.getKeyBelow(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}return i??(r?this.getFirstKey():this.getLastKey())}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t||this.getFirstKey();for(;r!=null;){let t=n.getItem(r);if(!t)return null;let i=t.textValue.slice(0,e.length);if(t.textValue&&this.collator.compare(i,e)===0)return r;r=this.getNextKey(r)}return null}},hm=new Map;function gm(e){let{locale:t}=Do(),n=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():``);if(hm.has(n))return hm.get(n);let r=new Intl.Collator(t,e);return hm.set(n,r),r}function _m(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:o,orientation:s}=e,c=gm({usage:`search`,sensitivity:`base`}),l=t.disabledBehavior,u=(0,v.useMemo)(()=>a||new mm({collection:n,disabledKeys:r,disabledBehavior:l,ref:i,collator:c,layoutDelegate:o,orientation:s}),[a,o,n,r,i,c,l,s]),{collectionProps:d}=fm({...e,ref:i,selectionManager:t,keyboardDelegate:u});return{listProps:d}}function vm(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:a,shouldUseVirtualFocus:o,focus:s,isDisabled:c,onAction:l,allowsDifferentPressOrigin:u,linkBehavior:d=`action`}=e,f=re();t=we(t);let p=e=>{if(e.pointerType===`keyboard`&&im(e))n.toggleSelection(r);else{if(n.selectionMode===`none`)return;if(n.isLink(r)){if(d===`selection`&&i.current){let t=n.getItemProps(r);f.open(i.current,e,t.href,t.routerOptions),n.setSelectedKeys(n.selectedKeys);return}if(d===`override`||d===`none`)return}n.selectionMode===`single`?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):e&&e.shiftKey?n.extendSelection(r):n.selectionBehavior===`toggle`||e&&(_t(e)||e.pointerType===`touch`||e.pointerType===`virtual`)?n.toggleSelection(r):n.replaceSelection(r)}};(0,v.useEffect)(()=>{r===n.focusedKey&&n.isFocused&&(o?ff(i.current):s?s():ze()!==i.current&&i.current&&_s(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,o]),c||=n.isDisabled(r);let m={};!o&&!c?m={tabIndex:r===n.focusedKey?0:-1,onFocus(e){z(e)===i.current&&n.setFocusedKey(r)}}:c&&(m.onMouseDown=e=>{e.preventDefault()}),(0,v.useEffect)(()=>{c&&n.focusedKey===r&&n.setFocusedKey(null)},[n,c,r]);let h=n.isLink(r)&&d===`override`,g=l&&e.UNSTABLE_itemBehavior===`action`,_=n.isLink(r)&&d!==`selection`&&d!==`none`,y=!c&&n.canSelectItem(r)&&!h&&!g,b=(l||_)&&!c,x=b&&(n.selectionBehavior===`replace`?!y:!y||n.isEmpty),S=b&&y&&n.selectionBehavior===`replace`,C=x||S,w=(0,v.useRef)(null),T=C&&y,E=(0,v.useRef)(!1),D=(0,v.useRef)(!1),O=n.getItemProps(r),k=e=>{l&&(l(),i.current?.dispatchEvent(new CustomEvent(`react-aria-item-action`,{bubbles:!0}))),_&&i.current&&f.open(i.current,e,O.href,O.routerOptions)},A={ref:i};a?(A.onPressStart=e=>{w.current=e.pointerType,E.current=T,e.pointerType===`keyboard`&&(!C||bm(e.key))&&p(e)},u?(A.onPressUp=x?void 0:e=>{e.pointerType===`mouse`&&y&&p(e)},A.onPress=x?k:e=>{e.pointerType!==`keyboard`&&e.pointerType!==`mouse`&&y&&p(e)}):A.onPress=e=>{if(x||S&&e.pointerType!==`mouse`){if(e.pointerType===`keyboard`&&!ym(e.key))return;k(e)}else e.pointerType!==`keyboard`&&y&&p(e)}):(A.onPressStart=e=>{w.current=e.pointerType,E.current=T,D.current=x,y&&(e.pointerType===`mouse`&&!x||e.pointerType===`keyboard`&&(!b||bm(e.key)))&&p(e)},A.onPress=e=>{(e.pointerType===`touch`||e.pointerType===`pen`||e.pointerType===`virtual`||e.pointerType===`keyboard`&&C&&ym(e.key)||e.pointerType===`mouse`&&D.current)&&(C?k(e):y&&p(e))});let j=cm(n.collection);if(m[`data-collection`]=j,m[`data-key`]=r,A.preventFocusOnPress=o,o&&(A=B(A,{onPressStart(e){e.pointerType!==`touch`&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(e){e.pointerType===`touch`&&(n.setFocused(!0),n.setFocusedKey(r))}})),O)for(let e of[`onPressStart`,`onPressEnd`,`onPressChange`,`onPress`,`onPressUp`,`onClick`])O[e]&&(A[e]=De(A[e],O[e]));let{pressProps:M,isPressed:N}=Js(A),P=S?e=>{w.current===`mouse`&&(e.stopPropagation(),e.preventDefault(),k(e))}:void 0,{longPressProps:F}=$p({isDisabled:!T,onLongPress(e){e.pointerType===`touch`&&(p(e),n.setSelectionBehavior(`toggle`))}}),I=e=>{w.current===`touch`&&E.current&&e.preventDefault()},ee=d!==`none`&&n.isLink(r)?e=>{ie.isOpening||e.preventDefault()}:void 0,te=B(m,y||x||o&&!c?M:{},T?F:{},{onDoubleClick:P,onDragStartCapture:I,onClick:ee,id:t},o?{onMouseDown:e=>e.preventDefault()}:void 0),ne=e=>{let t=e;for(;t&&t!==i.current;){let e=t.getAttribute(`data-collection`);if(e!=null)return e!==j;t=t.parentElement}return qt(e)},ae=te.onPointerDown;te.onPointerDown=e=>{let t=z(e);if(t&&t!==i.current&&ne(t)){e.stopPropagation();return}ae?.(e)};let oe=te.onMouseDown;return te.onMouseDown=e=>{let t=z(e);if(t&&t!==i.current&&ne(t)){e.stopPropagation();return}oe?.(e)},{itemProps:te,isPressed:N,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:c,allowsSelection:y,hasAction:C}}function ym(e){return e===`Enter`}function bm(e){return e===` `}function xm(e,t){return typeof t.getChildren==`function`?t.getChildren(e.key):e.childNodes}function Sm(e){return Cm(e,0)}function Cm(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function wm(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...Tm(e,t),t],i=[...Tm(e,n),n],a=r.slice(0,i.length).findIndex((e,t)=>e!==i[t]);return a===-1?r.findIndex(e=>e===n)>=0?1:(i.findIndex(e=>e===t),-1):(t=r[a],n=i[a],t.index-n.index)}function Tm(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}var Em=new WeakMap;function Dm(e){let t=Em.get(e);if(t!=null)return t;let n=0,r=t=>{for(let i of t)i.type===`section`?r(xm(i,e)):i.type===`item`&&n++};return r(e),Em.set(e,n),n}function Om(e){let t=Cd(e),[n,r]=(0,v.useState)(null),[i,a]=(0,v.useState)([]),o=()=>{a([]),t.close()},s=(e,t)=>{a(n=>t>n.length?n:[...n.slice(0,t),e])},c=(e,t)=>{a(n=>n[t]===e?n.slice(0,t):n)};return{focusStrategy:n,...t,open(e=null){r(e),t.open()},toggle(e=null){r(e),t.toggle()},close(){o()},expandedKeysStack:i,openSubmenu:s,closeSubmenu:c}}var km=class e extends Set{constructor(t,n,r){super(t),t instanceof e?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}},Am=class e{constructor(e,t,n){this.collection=e,this.state=t,this.allowsCellSelection=n?.allowsCellSelection??!1,this._isSelectAll=null,this.layoutDelegate=n?.layoutDelegate||null,this.fullCollection=n?.fullCollection||null}get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return this.state.selectedKeys===`all`?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode===`none`)return!1;let t=this.getKey(e);return t==null?!1:this.state.selectedKeys===`all`?this.canSelectItem(t):this.state.selectedKeys.has(t)}get isEmpty(){return this.state.selectedKeys!==`all`&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys===`all`)return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(e=>t.has(e)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&wm(this.collection,n,e)<0)&&(e=n)}return e?.key??null}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&wm(this.collection,n,e)>0)&&(e=n)}return e?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode===`none`)return;if(this.selectionMode===`single`){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n;if(this.state.selectedKeys===`all`)n=new km([t],t,t);else{let e=this.state.selectedKeys,r=e.anchorKey??t;n=new km(e,r,t);for(let i of this.getKeyRange(r,e.currentKey??t))n.delete(i);for(let e of this.getKeyRange(t,r))this.canSelectItem(e)&&n.add(e)}this.state.setSelectedKeys(n)}getKeyRange(e,t){let n=this.collection.getItem(e),r=this.collection.getItem(t);return n&&r?wm(this.collection,n,r)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){if(this.layoutDelegate?.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let n=[],r=e;for(;r!=null;){let e=this.collection.getItem(r);if(e&&(e.type===`item`||e.type===`cell`&&this.allowsCellSelection)&&n.push(r),r===t)return n;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||t.type===`cell`&&this.allowsCellSelection)return e;for(;t&&t.type!==`item`&&t.parentKey!=null;)t=this.collection.getItem(t.parentKey);return!t||t.type!==`item`?null:t.key}toggleSelection(e){if(this.selectionMode===`none`)return;if(this.selectionMode===`single`&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n=new km(this.state.selectedKeys===`all`?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode===`none`)return;let t=this.getKey(e);if(t==null)return;let n=this.canSelectItem(t)?new km([t],t,t):new km;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode===`none`)return;let t=new km;for(let n of e){let e=this.getKey(n);if(e!=null&&(t.add(e),this.selectionMode===`single`))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=this.fullCollection??this.collection,t=[],n=r=>{for(;r!=null;){if(this.canSelectItemIn(r,e)){let i=e.getItem(r);i?.type===`item`&&t.push(r),i?.hasChildNodes&&(this.allowsCellSelection||i.type!==`item`)&&n(Sm(xm(i,e))?.key??null)}r=e.getKeyAfter(r)}};return n(e.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode===`multiple`&&this.state.setSelectedKeys(`all`)}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys===`all`||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new km)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode!==`none`&&(this.selectionMode===`single`?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior===`toggle`||t&&(t.pointerType===`touch`||t.pointerType===`virtual`)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){return this.canSelectItemIn(e,this.collection)}canSelectItemIn(e,t){if(this.state.selectionMode===`none`||this.state.disabledKeys.has(e))return!1;let n=t.getItem(e);return!(!n||n?.props?.isDisabled||n.type===`cell`&&!this.allowsCellSelection)}isDisabled(e){let t=this.collection.getItem(e);return this.state.disabledBehavior===`all`&&(this.state.disabledKeys.has(e)||!!t?.props?.isDisabled)&&t?.props?.disabledBehavior!==`selection`}isLink(e){return!!this.collection.getItem(e)?.props?.href}getItemProps(e){return this.collection.getItem(e)?.props}withCollection(t){return new e(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0,fullCollection:this.fullCollection??this.collection})}},jm=class{build(e,t){return this.context=t,Mm(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:n}=e;if(v.isValidElement(t)&&t.type===v.Fragment)yield*this.iterateCollection({children:t.props.children,items:n});else if(typeof t==`function`){if(!n)throw Error(`props.children was a function but props.items is missing`);let e=0;for(let r of n)yield*this.getFullNode({value:r,index:e},{renderer:t}),e++}else{let e=[];v.Children.forEach(t,t=>{t&&e.push(t)});let n=0;for(let t of e){let e=this.getFullNode({element:t,index:n},{});for(let t of e)n++,yield t}}}getKey(e,t,n,r){if(e.key!=null)return e.key;if(t.type===`cell`&&t.key!=null)return`${r}${t.key}`;let i=t.value;if(i!=null){let e=i.key??i.id;if(e==null)throw Error(`No key found for item`);return e}return r?`${r}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,n,r){if(v.isValidElement(e.element)&&e.element.type===v.Fragment){let i=[];v.Children.forEach(e.element.props.children,e=>{i.push(e)});let a=e.index??0;for(let e of i)yield*this.getFullNode({element:e,index:a++},t,n,r);return}let i=e.element;if(!i&&e.value&&t&&t.renderer){let n=this.cache.get(e.value);if(n&&(!n.shouldInvalidate||!n.shouldInvalidate(this.context))){n.index=e.index,n.parentKey=r?r.key:null,yield n;return}i=t.renderer(e.value)}if(v.isValidElement(i)){let a=i.type;if(typeof a!=`function`&&typeof a.getCollectionNode!=`function`){let e=i.type;throw Error(`Unknown element <${e}> in collection.`)}let o=a.getCollectionNode(i.props,this.context),s=e.index??0,c=o.next();for(;!c.done&&c.value;){let a=c.value;e.index=s;let l=a.key??null;l??=a.element?null:this.getKey(i,e,t,n);let u=[...this.getFullNode({...a,key:l,index:s,wrapper:Nm(e.wrapper,a.wrapper)},this.getChildState(t,a),n?`${n}${i.key}`:i.key,r)];for(let t of u){if(t.value=a.value??e.value??null,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw Error(`Unsupported type <${Pm(t.type)}> in <${Pm(r?.type??`unknown parent type`)}>. Only <${Pm(e.type)}> is supported.`);s++,yield t}c=o.next(u)}return}if(e.key==null||e.type==null)return;let a=this,o={type:e.type,props:e.props,key:e.key,parentKey:r?r.key:null,value:e.value??null,level:(r?.level??0)+ +(r?.type===`item`),index:e.index,rendered:e.rendered,textValue:e.textValue??``,"aria-label":e[`aria-label`],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:Mm(function*(){if(!e.hasChildNodes||!e.childNodes)return;let n=0;for(let r of e.childNodes()){r.key!=null&&(r.key=`${o.key}${r.key}`);let e=a.getFullNode({...r,index:n},a.getChildState(t,r),o.key,o);for(let t of e)n++,yield t}})};yield o}constructor(){this.cache=new WeakMap}};function Mm(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;n||=e();for(let e of n)t.push(e),yield e}}}function Nm(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Pm(e){return e[0].toUpperCase()+e.slice(1)}function Fm(e,t,n){let r=(0,v.useMemo)(()=>new jm,[]),{children:i,items:a,collection:o}=e;return(0,v.useMemo)(()=>o||t(r.build({children:i,items:a},n)),[r,i,a,o,n,t])}function Im(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Lm(e){let{selectionMode:t=`none`,disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i=`toggle`,disabledBehavior:a=`all`}=e,o=(0,v.useRef)(!1),[,s]=(0,v.useState)(!1),c=(0,v.useRef)(null),l=(0,v.useRef)(null),[,u]=(0,v.useState)(null),[d,f]=_c((0,v.useMemo)(()=>Rm(e.selectedKeys),[e.selectedKeys]),(0,v.useMemo)(()=>Rm(e.defaultSelectedKeys,new km),[e.defaultSelectedKeys]),e.onSelectionChange),p=(0,v.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[m,h]=(0,v.useState)(i);i===`replace`&&m===`toggle`&&typeof d==`object`&&d.size===0&&h(`replace`);let g=(0,v.useRef)(i);return(0,v.useEffect)(()=>{i!==g.current&&(h(i),g.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:m,setSelectionBehavior:h,get isFocused(){return o.current},setFocused(e){o.current=e,s(e)},get focusedKey(){return c.current},get childFocusStrategy(){return l.current},setFocusedKey(e,t=`first`){c.current=e,l.current=t,u(e)},selectedKeys:d,setSelectedKeys(e){(r||!Im(e,d))&&f(e)},disabledKeys:p,disabledBehavior:a}}function Rm(e,t){return e?e===`all`?`all`:new km(e):t}var zm=(0,v.createContext)(null),Bm=(0,v.createContext)(null);(class extends Od{static{this.type=`submenutrigger`}filter(e,t,n){let r=e.getItem(this.firstChildKey);if(r&&n(r.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}}),$d(jd,function(e,t,n){let r=(0,v.useContext)(zm),{isLoading:i,onLoadMore:a,scrollOffset:o,...s}=e,c=(0,v.useRef)(null);Nt((0,v.useMemo)(()=>({onLoadMore:a,collection:r?.collection,sentinelRef:c,scrollOffset:o}),[a,o,r?.collection]),c);let l=G({...s,id:void 0,children:n.rendered,defaultClassName:`react-aria-MenuLoadingIndicator`,values:void 0});return v.createElement(v.Fragment,null,v.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:Pt(!0)},v.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:c,style:{position:`absolute`,height:1,width:1}})),i&&l.children&&v.createElement(v.Fragment,null,v.createElement(K.div,{...B(V(e,{global:!0}),{tabIndex:-1}),...l,role:`menuitem`,ref:t},l.children)))});function Vm(e,t){let{role:n=`dialog`}=e,r=Ee();r=e[`aria-label`]?void 0:r;let i=Ee();i=n===`alertdialog`&&!e[`aria-describedby`]?i:void 0;let a=(0,v.useRef)(!1);(0,v.useEffect)(()=>{if(t.current&&!Ve(t.current)){_s(t.current);let e=setTimeout(()=>{(ze()===t.current||ze()===document.body)&&(a.current=!0,t.current&&(t.current.blur(),_s(t.current)),a.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),Sd(),(0,v.useRef)(!1),(0,v.useEffect)(()=>{});let o=e[`aria-describedby`]??i;return{dialogProps:{...V(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e[`aria-labelledby`]??r,"aria-describedby":o,onBlur:e=>{a.current&&e.stopPropagation()}},titleProps:{id:r},contentProps:{id:i}}}var Hm=(0,v.createContext)(null),Um=(0,v.createContext)(null);function Wm(e){let t=Om(e),n=(0,v.useRef)(null),{triggerProps:r,overlayProps:i}=tm({type:`dialog`},t,n);return r.id=we(),i[`aria-labelledby`]=r.id,po()?null:v.createElement(to,{values:[[Um,t],[Bm,t],[Hm,i],[wd,{trigger:`DialogTrigger`,triggerRef:n,id:i.id,"aria-labelledby":i[`aria-labelledby`]}]]},v.createElement(gd,{...r,ref:n,isPressed:t.isOpen},e.children))}var Gm=(0,v.forwardRef)(function(e,t){let n=e[`aria-labelledby`];[e,t]=io(e,t,Hm);let{dialogProps:r,titleProps:i,contentProps:a}=Vm({...e,"aria-labelledby":n},t),o=(0,v.useContext)(Um);!r[`aria-label`]&&!r[`aria-labelledby`]&&e[`aria-labelledby`]&&(r[`aria-labelledby`]=e[`aria-labelledby`]);let s=G({defaultClassName:`react-aria-Dialog`,className:e.className,style:e.style,children:e.children,values:{close:o?.close||(()=>{})}}),c=V(e,{global:!0});return v.createElement(K.section,{...B(c,s,r),render:e.render,ref:t,slot:e.slot||void 0},v.createElement(to,{values:[[Dc,{slots:{[eo]:{},title:{...i,level:2}}}],[hp,{slots:{[eo]:{},description:a}}],[dc,{slots:{[eo]:{},close:{onPress:()=>o?.close()}}}]]},s.children))});function Km(e,t,n){let{overlayProps:r,underlayProps:i}=ou({...e,isOpen:t.isOpen,onClose:t.close},n);return uu({isDisabled:!t.isOpen}),Sd(),(0,v.useEffect)(()=>{if(t.isOpen&&n.current)return el([n.current],{shouldUseInert:!0})},[t.isOpen,n]),{modalProps:B(r),underlayProps:i}}var qm=(0,v.createContext)(null),Jm=(0,v.createContext)(null),Ym=(0,v.forwardRef)(function(e,t){if((0,v.useContext)(Jm))return v.createElement($m,{...e,modalRef:t},e.children);let{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:i,defaultOpen:a,onOpenChange:o,children:s,isEntering:c,isExiting:l,UNSTABLE_portalContainer:u,shouldCloseOnInteractOutside:d,...f}=e;return v.createElement(Zm,{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:i,defaultOpen:a,onOpenChange:o,isEntering:c,isExiting:l,UNSTABLE_portalContainer:u,shouldCloseOnInteractOutside:d},v.createElement($m,{...f,modalRef:t},s))});function Xm(e,t){[e,t]=io(e,t,qm);let n=(0,v.useContext)(Um),r=Cd(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,a=st(t),o=(0,v.useRef)(null),s=Lt(a,i.isOpen),c=Lt(o,i.isOpen),l=s||c||e.isExiting||!1,u=ve();return!i.isOpen&&!l||u?null:v.createElement(Qm,{...e,state:i,isExiting:l,overlayRef:a,modalRef:o})}var Zm=(0,v.forwardRef)(Xm);function Qm({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:i,underlayProps:a}=Km(t,r,n),o=It(t.overlayRef)||t.isEntering||!1,s=G({...t,defaultClassName:`react-aria-ModalOverlay`,values:{isEntering:o,isExiting:t.isExiting,state:r}}),c=xt(),l,u;if(typeof document<`u`){let e=mt(document.body)?document.body:document.scrollingElement||document.documentElement,t=e.getBoundingClientRect().width%1,n=e.getBoundingClientRect().height%1;l=e.scrollWidth-t,u=e.scrollHeight-n}let d={...s.style,"--visual-viewport-width":c.width+`px`,"--visual-viewport-height":c.height+`px`,"--page-width":l===void 0?void 0:l+`px`,"--page-height":u===void 0?void 0:u+`px`};return v.createElement(xd,{isExiting:t.isExiting,portalContainer:e},v.createElement(K.div,{...B(V(t,{global:!0}),a),...s,style:d,ref:t.overlayRef,"data-entering":o||void 0,"data-exiting":t.isExiting||void 0},v.createElement(to,{values:[[Jm,{modalProps:i,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[Um,r]]},s.children)))}function $m(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:i}=(0,v.useContext)(Jm),a=(0,v.useContext)(Um),o=st((0,v.useMemo)(()=>We(e.modalRef,n),[e.modalRef,n])),s=It(o),c=G({...e,defaultClassName:`react-aria-Modal`,values:{isEntering:s,isExiting:r,state:a}});return v.createElement(K.div,{...B(V(e,{global:!0}),t),...c,ref:o,"data-entering":s||void 0,"data-exiting":r||void 0},i&&v.createElement(hd,{onDismiss:a.close}),c.children)}var eh=v.forwardRef(({children:e,...t},n)=>{n=st(n);let{pressProps:r}=Js({...t,ref:n}),{focusableProps:i}=Is(t,n),a=v.Children.only(e);(0,v.useEffect)(()=>{},[n,t.isDisabled]);let o=a.props.ref;return v.cloneElement(a,{...B(r,i,a.props),ref:We(o,n)})}),th=({children:e,className:t,slot:n,style:r,variant:i,...a})=>{let o=(0,v.useMemo)(()=>ja({variant:i}),[i]);return(0,H.jsx)(fc,{"aria-label":`Close`,className:J(t,o),"data-slot":`close-button`,slot:n,style:r,type:`button`,...a,children:t=>typeof e==`function`?e(t):e??(0,H.jsx)(Pc,{"data-slot":`close-button-icon`})})},nh=Object.assign(th,{Root:th});function rh(e){let t=gm({usage:`search`,...e}),n=(0,v.useCallback)((e,n)=>n.length===0||(e=e.normalize(`NFC`),n=n.normalize(`NFC`),t.compare(e.slice(0,n.length),n)===0),[t]),r=(0,v.useCallback)((e,n)=>n.length===0||(e=e.normalize(`NFC`),n=n.normalize(`NFC`),t.compare(e.slice(-n.length),n)===0),[t]),i=(0,v.useCallback)((e,n)=>{if(n.length===0)return!0;e=e.normalize(`NFC`),n=n.normalize(`NFC`);let r=0,i=n.length;for(;r+i<=e.length;r++){let a=e.slice(r,r+i);if(t.compare(n,a)===0)return!0}return!1},[t]);return(0,v.useMemo)(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}var ih=(0,v.createContext)({}),ah=(0,v.forwardRef)(function(e,t){[e,t]=io(e,t,ih);let{isDisabled:n,isInvalid:r,isReadOnly:i,onHoverStart:a,onHoverChange:o,onHoverEnd:s,...c}=e;n??=!!e[`aria-disabled`]&&e[`aria-disabled`]!==`false`,r??=!!e[`aria-invalid`]&&e[`aria-invalid`]!==`false`;let{hoverProps:l,isHovered:u}=uc({onHoverStart:a,onHoverChange:o,onHoverEnd:s,isDisabled:n}),{isFocused:d,isFocusVisible:f,focusProps:p}=ic({within:!0}),m=G({...e,values:{isHovered:u,isFocusWithin:d,isFocusVisible:f,isDisabled:n,isInvalid:r},defaultClassName:`react-aria-Group`});return v.createElement(K.div,{...B(c,p,l),...m,ref:t,role:e.role??`group`,slot:e.slot??void 0,"data-focus-within":d||void 0,"data-hovered":u||void 0,"data-focus-visible":f||void 0,"data-disabled":n||void 0,"data-invalid":r||void 0,"data-readonly":i||void 0},m.children)}),oh=(0,v.createContext)(null),sh=(0,v.forwardRef)(function(e,t){return(0,v.useContext)(oh)?.isInvalid?v.createElement(ch,{...e,ref:t}):null}),ch=(0,v.forwardRef)((e,t)=>{let n=(0,v.useContext)(oh),{elementType:r,...i}=e,a=V(i,{global:!0}),o=G({...i,defaultClassName:`react-aria-FieldError`,defaultChildren:n.validationErrors.length===0?void 0:n.validationErrors.join(` `),values:n});return o.children==null?null:v.createElement(gp,{slot:`errorMessage`,elementType:r,...a,...o,ref:t})}),lh={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},uh={...lh,customError:!0,valid:!1},dh={isInvalid:!1,validationDetails:lh,validationErrors:[]},fh=(0,v.createContext)({}),ph=`__reactAriaFormValidationState`;function mh(e){if(e.__reactAriaFormValidationState){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[ph];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return hh(e)}function hh(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:o,validationBehavior:s=`aria`}=e;n&&(t||=n===`invalid`);let c=t===void 0?null:{isInvalid:t,validationErrors:[],validationDetails:uh},l=(0,v.useMemo)(()=>!o||i==null?null:vh(_h(o,i)),[o,i]);a?.validationDetails.valid&&(a=void 0);let u=(0,v.useContext)(fh),d=(0,v.useMemo)(()=>r?Array.isArray(r)?r.flatMap(e=>gh(u[e])):gh(u[r]):[],[u,r]),[f,p]=(0,v.useState)(u),[m,h]=(0,v.useState)(!1);u!==f&&(p(u),h(!1));let g=(0,v.useMemo)(()=>vh(m?[]:d),[m,d]),_=(0,v.useRef)(dh),[y,b]=(0,v.useState)(dh),x=(0,v.useRef)(dh),S=()=>{if(!C)return;w(!1);let e=l||a||_.current;yh(e,x.current)||(x.current=e,b(e))},[C,w]=(0,v.useState)(!1);return(0,v.useEffect)(S),{realtimeValidation:c||g||l||a||dh,displayValidation:s===`native`?c||g||y:c||g||l||a||y,updateValidation(e){s===`aria`&&!yh(y,e)?b(e):_.current=e},resetValidation(){let e=dh;yh(e,x.current)||(x.current=e,b(e)),s===`native`&&w(!1),h(!0)},commitValidation(){s===`native`&&w(!0),h(!0)}}}function gh(e){return e?Array.isArray(e)?e:[e]:[]}function _h(e,t){if(typeof e==`function`){let n=e(t);if(n&&typeof n!=`boolean`)return gh(n)}return[]}function vh(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:uh}:null}function yh(e,t){return e===t||!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((e,n)=>e===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([e,n])=>t.validationDetails[e]===n)}function bh(...e){let t=new Set,n=!1,r={...lh};for(let i of e){for(let e of i.validationErrors)t.add(e);n||=i.isInvalid;for(let e in r)r[e]||=i.validationDetails[e]}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}var xh=(0,v.createContext)(null),Sh=(0,v.forwardRef)(function(e,t){[e,t]=io(e,t,xh);let{validationErrors:n,validationBehavior:r=`native`,children:i,className:a,...o}=e;return v.createElement(K.form,{noValidate:r!==`native`,...o,ref:t,className:a||`react-aria-Form`},v.createElement(xh.Provider,{value:{...e,validationBehavior:r}},v.createElement(fh.Provider,{value:n??{}},i)))}),Ch={};Ch={colorSwatchPicker:`تغييرات الألوان`,dropzoneLabel:`DropZone`,selectPlaceholder:`حدد عنصرًا`,tableResizer:`أداة تغيير الحجم`};var wh={};wh={colorSwatchPicker:`Цветови мостри`,dropzoneLabel:`DropZone`,selectPlaceholder:`Изберете предмет`,tableResizer:`Преоразмерител`};var Th={};Th={colorSwatchPicker:`Vzorky barev`,dropzoneLabel:`Místo pro přetažení`,selectPlaceholder:`Vyberte položku`,tableResizer:`Změna velikosti`};var Eh={};Eh={colorSwatchPicker:`Farveprøver`,dropzoneLabel:`DropZone`,selectPlaceholder:`Vælg et element`,tableResizer:`Størrelsesændring`};var Dh={};Dh={colorSwatchPicker:`Farbfelder`,dropzoneLabel:`Ablegebereich`,selectPlaceholder:`Element wählen`,tableResizer:`Größenanpassung`};var Oh={};Oh={colorSwatchPicker:`Χρωματικά δείγματα`,dropzoneLabel:`DropZone`,selectPlaceholder:`Επιλέξτε ένα αντικείμενο`,tableResizer:`Αλλαγή μεγέθους`};var kh={};kh={selectPlaceholder:`Select an item`,tableResizer:`Resizer`,dropzoneLabel:`DropZone`,colorSwatchPicker:`Color swatches`};var Ah={};Ah={colorSwatchPicker:`Muestras de colores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Seleccionar un artículo`,tableResizer:`Cambiador de tamaño`};var jh={};jh={colorSwatchPicker:`Värvinäidised`,dropzoneLabel:`DropZone`,selectPlaceholder:`Valige üksus`,tableResizer:`Suuruse muutja`};var Mh={};Mh={colorSwatchPicker:`Värimallit`,dropzoneLabel:`DropZone`,selectPlaceholder:`Valitse kohde`,tableResizer:`Koon muuttaja`};var Nh={};Nh={colorSwatchPicker:`Échantillons de couleurs`,dropzoneLabel:`DropZone`,selectPlaceholder:`Sélectionner un élément`,tableResizer:`Redimensionneur`};var Ph={};Ph={colorSwatchPicker:`דוגמיות צבע`,dropzoneLabel:`DropZone`,selectPlaceholder:`בחר פריט`,tableResizer:`שינוי גודל`};var Fh={};Fh={colorSwatchPicker:`Uzorci boja`,dropzoneLabel:`Zona spuštanja`,selectPlaceholder:`Odaberite stavku`,tableResizer:`Promjena veličine`};var Ih={};Ih={colorSwatchPicker:`Színtárak`,dropzoneLabel:`DropZone`,selectPlaceholder:`Válasszon ki egy elemet`,tableResizer:`Átméretező`};var Lh={};Lh={colorSwatchPicker:`Campioni di colore`,dropzoneLabel:`Zona di rilascio`,selectPlaceholder:`Seleziona un elemento`,tableResizer:`Ridimensionamento`};var Rh={};Rh={colorSwatchPicker:`カラースウォッチ`,dropzoneLabel:`ドロップゾーン`,selectPlaceholder:`項目を選択`,tableResizer:`サイズ変更ツール`};var zh={};zh={colorSwatchPicker:`색상 견본`,dropzoneLabel:`드롭 영역`,selectPlaceholder:`항목 선택`,tableResizer:`크기 조정기`};var Bh={};Bh={colorSwatchPicker:`Spalvų pavyzdžiai`,dropzoneLabel:`„DropZone“`,selectPlaceholder:`Pasirinkite elementą`,tableResizer:`Dydžio keitiklis`};var Vh={};Vh={colorSwatchPicker:`Krāsu paraugi`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izvēlēties vienumu`,tableResizer:`Izmēra mainītājs`};var Hh={};Hh={colorSwatchPicker:`Fargekart`,dropzoneLabel:`Droppsone`,selectPlaceholder:`Velg et element`,tableResizer:`Størrelsesendrer`};var Uh={};Uh={colorSwatchPicker:`kleurstalen`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecteer een item`,tableResizer:`Resizer`};var Wh={};Wh={colorSwatchPicker:`Próbki kolorów`,dropzoneLabel:`Strefa upuszczania`,selectPlaceholder:`Wybierz element`,tableResizer:`Zmiana rozmiaru`};var Gh={};Gh={colorSwatchPicker:`Amostras de cores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecione um item`,tableResizer:`Redimensionador`};var Kh={};Kh={colorSwatchPicker:`Amostras de cores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecione um item`,tableResizer:`Redimensionador`};var qh={};qh={colorSwatchPicker:`Specimene de culoare`,dropzoneLabel:`Zonă de plasare`,selectPlaceholder:`Selectați un element`,tableResizer:`Instrument de redimensionare`};var Jh={};Jh={colorSwatchPicker:`Цветовые образцы`,dropzoneLabel:`DropZone`,selectPlaceholder:`Выберите элемент`,tableResizer:`Средство изменения размера`};var Yh={};Yh={colorSwatchPicker:`Vzorkovníky farieb`,dropzoneLabel:`DropZone`,selectPlaceholder:`Vyberte položku`,tableResizer:`Nástroj na zmenu veľkosti`};var Xh={};Xh={colorSwatchPicker:`Barvne palete`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izberite element`,tableResizer:`Spreminjanje velikosti`};var Zh={};Zh={colorSwatchPicker:`Uzorci boje`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izaberite stavku`,tableResizer:`Promena veličine`};var Qh={};Qh={colorSwatchPicker:`Färgrutor`,dropzoneLabel:`DropZone`,selectPlaceholder:`Välj en artikel`,tableResizer:`Storleksändrare`};var $h={};$h={colorSwatchPicker:`Renk örnekleri`,dropzoneLabel:`Bırakma Bölgesi`,selectPlaceholder:`Bir öğe seçin`,tableResizer:`Yeniden boyutlandırıcı`};var eg={};eg={colorSwatchPicker:`Зразки кольорів`,dropzoneLabel:`DropZone`,selectPlaceholder:`Виберіть елемент`,tableResizer:`Засіб змінення розміру`};var tg={};tg={colorSwatchPicker:`颜色色板`,dropzoneLabel:`放置区域`,selectPlaceholder:`选择一个项目`,tableResizer:`尺寸调整器`};var ng={};ng={colorSwatchPicker:`色票`,dropzoneLabel:`放置區`,selectPlaceholder:`選取項目`,tableResizer:`大小調整器`};var rg={};rg={"ar-AE":Ch,"bg-BG":wh,"cs-CZ":Th,"da-DK":Eh,"de-DE":Dh,"el-GR":Oh,"en-US":kh,"es-ES":Ah,"et-EE":jh,"fi-FI":Mh,"fr-FR":Nh,"he-IL":Ph,"hr-HR":Fh,"hu-HU":Ih,"it-IT":Lh,"ja-JP":Rh,"ko-KR":zh,"lt-LT":Bh,"lv-LV":Vh,"nb-NO":Hh,"nl-NL":Uh,"pl-PL":Wh,"pt-BR":Gh,"pt-PT":Kh,"ro-RO":qh,"ru-RU":Jh,"sk-SK":Yh,"sl-SI":Xh,"sr-SP":Zh,"sv-SE":Qh,"tr-TR":$h,"uk-UA":eg,"zh-CN":tg,"zh-TW":ng};var ig=(0,v.createContext)({}),ag=(0,v.createContext)(null),og=(0,v.forwardRef)(function(e,t){let{render:n}=(0,v.useContext)(ag);return v.createElement(v.Fragment,null,n(e,t))});function sg(e,t){let n=e?.renderDropIndicator,r=e?.isVirtualDragging?.(),i=(0,v.useCallback)(e=>{if(r||t?.isDropTarget(e))return n?n(e):v.createElement(og,{target:e})},[t?.target,r,n]);return e?.useDropIndicator?i:void 0}function cg(e,t,n){let r=e.focusedKey,i=null;if(t?.isVirtualDragging?.()&&n?.target?.type===`item`&&(i=n.target.key,n.target.dropPosition===`after`)){let e=n.collection.getKeyAfter(i),t=null;if(e!=null){let r=n.collection.getItem(i)?.level??0;for(;e!=null;){let i=n.collection.getItem(e);if(!i)break;if(i.type!==`item`){e=n.collection.getKeyAfter(e);continue}if((i.level??0)<=r)break;t=e,e=n.collection.getKeyAfter(e)}}i=e??t??i}return(0,v.useMemo)(()=>new Set([r,i].filter(e=>e!=null)),[r,i])}var lg=new WeakMap;function ug(e){return typeof e==`string`?e.replace(/\s*/g,``):``+e}function dg(e,t){let n=lg.get(e);if(!n)throw Error(`Unknown list`);return`${n.id}-option-${ug(t)}`}function fg(e,t,n){let r=V(e,{labelable:!0}),i=e.selectionBehavior||`toggle`,a=e.orientation||`vertical`,o=e.linkBehavior||(i===`replace`?`action`:`override`);i===`toggle`&&o===`action`&&(o=`override`);let{listProps:s}=_m({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:o}),{focusWithinProps:c}=rc({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=we(e.id);lg.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:o,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:u,fieldProps:d}=go({...e,id:l,labelElementType:`span`});return{labelProps:u,listBoxProps:B(r,c,t.selectionManager.selectionMode===`multiple`?{"aria-multiselectable":`true`}:{},{role:`listbox`,"aria-orientation":a,...B(d,s)})}}function pg(e,t,n){let{key:r}=e,i=lg.get(t),a=e.isDisabled??t.selectionManager.isDisabled(r),o=e.isSelected??t.selectionManager.isSelected(r),s=e.shouldSelectOnPressUp??i?.shouldSelectOnPressUp,c=e.shouldFocusOnHover??i?.shouldFocusOnHover,l=e.shouldUseVirtualFocus??i?.shouldUseVirtualFocus,u=e.isVirtualized??i?.isVirtualized,d=Ee(),f=Ee(),p={role:`option`,"aria-disabled":a||void 0,"aria-selected":t.selectionManager.selectionMode===`none`?void 0:o,"aria-label":e[`aria-label`],"aria-labelledby":d,"aria-describedby":f},m=t.collection.getItem(r);if(u){let e=Number(m?.index);p[`aria-posinset`]=Number.isNaN(e)?void 0:e+1,p[`aria-setsize`]=Dm(t.collection)}let h=i?.onAction?()=>i?.onAction?.(r):void 0,g=dg(t,r),{itemProps:_,isPressed:v,isFocused:y,hasAction:b,allowsSelection:x}=vm({selectionManager:t.selectionManager,key:r,ref:n,shouldSelectOnPressUp:s,allowsDifferentPressOrigin:s&&c,isVirtualized:u,shouldUseVirtualFocus:l,isDisabled:a,onAction:h||m?.props?.onAction?De(m?.props?.onAction,h):void 0,linkBehavior:i?.linkBehavior,UNSTABLE_itemBehavior:i?.UNSTABLE_itemBehavior,id:g}),{hoverProps:S}=uc({isDisabled:a||!c,onHoverStart(){ls()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(r))}}),C=V(m?.props);delete C.id;let w=se(m?.props);return{optionProps:{...p,...B(C,_,S,w),id:g},labelProps:{id:d},descriptionProps:{id:f},isFocused:y,isFocusVisible:y&&t.selectionManager.isFocused&&ls(),isSelected:o,isDisabled:a,isPressed:v,allowsSelection:x,hasAction:b}}function mg(e){let{heading:t,"aria-label":n}=e,r=we();return{itemProps:{role:`presentation`},headingProps:t?{id:r,role:`presentation`,onMouseDown:e=>{e.preventDefault()}}:{},groupProps:{role:`group`,"aria-label":n,"aria-labelledby":t?r:void 0}}}var hg=class{constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let t=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&e.type===`section`)for(let n of e.childNodes)t(n)};for(let n of e)t(n);let n=null,r=0,i=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),t.type===`item`&&(t.index=r++),(t.type===`section`||t.type===`item`)&&i++,n=t,n.nextKey=void 0;this._size=i,this.lastKey=n?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey??null:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)??null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){return this.keyMap.get(e)?.childNodes||[]}};function gg(e){let{filter:t,layoutDelegate:n}=e,r=Lm(e),i=(0,v.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=Fm(e,(0,v.useCallback)(e=>t?new hg(t(e)):new hg(e),[t]),(0,v.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning])),o=(0,v.useMemo)(()=>new Am(a,r,{layoutDelegate:n}),[a,r,n]);return vg(a,o),{collection:a,disabledKeys:i,selectionManager:o}}function _g(e,t){let n=(0,v.useMemo)(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),r=e.selectionManager.withCollection(n);return vg(n,r),{collection:n,selectionManager:r,disabledKeys:e.disabledKeys}}function vg(e,t){let n=(0,v.useRef)(null);(0,v.useEffect)(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&n.current){let r=n.current.getKeyAfter(t.focusedKey),i=null;for(;r!=null;){let a=e.getItem(r);if(a&&a.type===`item`&&!t.isDisabled(r)){i=r;break}r=n.current.getKeyAfter(r)}if(i==null)for(r=n.current.getKeyBefore(t.focusedKey);r!=null;){let a=e.getItem(r);if(a&&a.type===`item`&&!t.isDisabled(r)){i=r;break}r=n.current.getKeyBefore(r)}t.setFocusedKey(i)}n.current=e},[e,t])}var yg=(0,v.createContext)(null),bg=(0,v.createContext)(null),xg=(0,v.forwardRef)(function(e,t){[e,t]=io(e,t,yg);let n=(0,v.useContext)(bg);return n?v.createElement(Cg,{state:n,props:e,listBoxRef:t}):v.createElement(Gd,{content:v.createElement(rf,e)},n=>v.createElement(Sg,{props:e,listBoxRef:t,collection:n}))});function Sg({props:e,listBoxRef:t,collection:n}){e={...e,collection:n,children:null,items:null};let{layoutDelegate:r}=(0,v.useContext)(uf),i=gg({...e,layoutDelegate:r});return v.createElement(Cg,{state:i,props:e,listBoxRef:t})}function Cg({state:e,props:t,listBoxRef:n}){[t,n]=io(t,n,np);let{dragAndDropHooks:r,layout:i=`stack`,orientation:a=`vertical`,filter:o}=t,s=_g(e,o),{collection:c,selectionManager:l}=s,u=!!r?.useDraggableCollectionState,d=!!r?.useDroppableCollectionState,{direction:f}=Do(),{disabledBehavior:p,disabledKeys:m}=l,h=gm({usage:`search`,sensitivity:`base`}),{isVirtualized:g,layoutDelegate:_,dropTargetDelegate:y,CollectionRoot:b}=(0,v.useContext)(uf),x=(0,v.useMemo)(()=>t.keyboardDelegate||new mm({collection:c,collator:h,ref:n,disabledKeys:m,disabledBehavior:p,layout:i,orientation:a,direction:f,layoutDelegate:_}),[c,h,n,p,m,a,f,t.keyboardDelegate,i,_]),{listBoxProps:S}=fg({...t,shouldSelectOnPressUp:u||t.shouldSelectOnPressUp,keyboardDelegate:x,isVirtualized:g},s,n);(0,v.useRef)(u),(0,v.useRef)(d),(0,v.useEffect)(()=>{},[u,d]);let C,w,T,E=!1,D=null,O=(0,v.useRef)(null);if(u&&r){C=r.useDraggableCollectionState({collection:c,selectionManager:l,preview:r.renderDragPreview?O:void 0}),r.useDraggableCollection({},C,n);let e=r.DragPreview;D=r.renderDragPreview?v.createElement(e,{ref:O},r.renderDragPreview):null}if(d&&r){w=r.useDroppableCollectionState({collection:c,selectionManager:l});let e=r.dropTargetDelegate||y||new r.ListDropTargetDelegate(c,n,{orientation:a,layout:i,direction:f});T=r.useDroppableCollection({keyboardDelegate:x,dropTargetDelegate:e},w,n),E=w.isDropTarget({type:`root`})}let{focusProps:k,isFocused:A,isFocusVisible:j}=ic(),M=s.collection.size===0,N={isDropTarget:E,isEmpty:M,isFocused:A,isFocusVisible:j,layout:t.layout||`stack`,orientation:a,state:s},P=G({...t,children:void 0,defaultClassName:`react-aria-ListBox`,values:N}),F=null;M&&t.renderEmptyState&&(F=v.createElement(`div`,{role:`option`,style:{display:`contents`}},t.renderEmptyState(N)));let I=V(t,{global:!0});return v.createElement(Nl,null,v.createElement(K.div,{...B(I,P,S,k,T?.collectionProps),ref:n,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":E||void 0,"data-empty":M||void 0,"data-focused":A||void 0,"data-focus-visible":j||void 0,"data-layout":t.layout||`stack`,"data-orientation":a},v.createElement(to,{values:[[yg,t],[bg,s],[ig,{dragAndDropHooks:r,dragState:C,dropState:w}],[pp,{elementType:`div`}],[ag,{render:Dg}],[of,{name:`ListBoxSection`,render:wg}]]},v.createElement(cp,null,v.createElement(b,{collection:c,scrollRef:n,persistedKeys:cg(l,r,w),renderDropIndicator:sg(r,w)}))),F,D))}function wg(e,t,n,r=`react-aria-ListBoxSection`){let i=(0,v.useContext)(bg),{dragAndDropHooks:a,dropState:o}=(0,v.useContext)(ig),{CollectionBranch:s}=(0,v.useContext)(uf),[c,l]=ao(),{headingProps:u,groupProps:d}=mg({heading:l,"aria-label":e[`aria-label`]??void 0}),f=G({...e,id:void 0,children:void 0,defaultClassName:r,values:void 0}),p=V(e,{global:!0});return delete p.id,v.createElement(K.section,{...B(p,f,d),ref:t},v.createElement(ap.Provider,{value:{...u,ref:c}},v.createElement(s,{collection:i.collection,parent:n,renderDropIndicator:sg(a,o)})))}var Tg=ef(Nd,wg),Eg=$d(Md,function(e,t,n){let r=st(t),i=(0,v.useContext)(bg),{dragAndDropHooks:a,dragState:o,dropState:s}=(0,v.useContext)(ig),c=o&&!(o.isDisabled||o.selectionManager.isDisabled(n.key)),{optionProps:l,labelProps:u,descriptionProps:d,...f}=pg({key:n.key,"aria-label":e?.[`aria-label`]},i,r),{hoverProps:p,isHovered:m}=uc({isDisabled:!f.allowsSelection&&!f.hasAction&&!c,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),{keyboardProps:h}=Ms(e),{focusProps:g}=vs(e),_=null;o&&a&&(_=a.useDraggableItem({key:n.key,hasAction:f.hasAction},o));let y=null;s&&a&&(y=a.useDroppableItem({target:{type:`item`,key:n.key,dropPosition:`on`}},s,r));let b=o&&o.isDragging(n.key),x=G({...e,id:void 0,children:e.children,defaultClassName:`react-aria-ListBoxItem`,values:{...f,isHovered:m,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,allowsDragging:!!o,isDragging:b,isDropTarget:y?.isDropTarget}});(0,v.useEffect)(()=>{n.textValue},[n.textValue]);let S=e.href?K.a:K.div,C=V(e,{global:!0});return delete C.id,delete C.onClick,e.href&&l.tabIndex==null&&(l.tabIndex=-1),v.createElement(S,{...B(C,x,l,p,h,g,_?.dragProps,y?.dropProps),ref:r,"data-allows-dragging":!!o||void 0,"data-selected":f.isSelected||void 0,"data-disabled":f.isDisabled||void 0,"data-hovered":m||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":f.isFocusVisible||void 0,"data-pressed":f.isPressed||void 0,"data-dragging":b||void 0,"data-drop-target":y?.isDropTarget||void 0,"data-selection-mode":i.selectionManager.selectionMode===`none`?void 0:i.selectionManager.selectionMode},v.createElement(to,{values:[[hp,{slots:{[eo]:u,label:u,description:d}}],[up,{isSelected:f.isSelected}]]},x.children))});function Dg(e,t){t=st(t);let{dragAndDropHooks:n,dropState:r}=(0,v.useContext)(ig),{dropIndicatorProps:i,isHidden:a,isDropTarget:o}=n.useDropIndicator(e,r,t);return a?null:v.createElement(kg,{...e,dropIndicatorProps:i,isDropTarget:o,ref:t})}function Og(e,t){let{dropIndicatorProps:n,isDropTarget:r,...i}=e,a=G({...i,defaultClassName:`react-aria-DropIndicator`,values:{isDropTarget:r}});return v.createElement(v.Fragment,null,v.createElement(K.div,{...n,...a,role:`option`,ref:t,"data-drop-target":r||void 0}))}var kg=(0,v.forwardRef)(Og);$d(jd,function(e,t,n){let r=(0,v.useContext)(bg),{isLoading:i,onLoadMore:a,scrollOffset:o,...s}=e,c=(0,v.useRef)(null);Nt((0,v.useMemo)(()=>({onLoadMore:a,collection:r?.collection,sentinelRef:c,scrollOffset:o}),[a,o,r?.collection]),c);let l=G({...s,id:void 0,children:n.rendered,defaultClassName:`react-aria-ListBoxLoadingIndicator`,values:void 0});return v.createElement(v.Fragment,null,v.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:Pt(!0)},v.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:c,style:{position:`absolute`,height:1,width:1}})),i&&l.children&&v.createElement(v.Fragment,null,v.createElement(K.div,{...B(V(e,{global:!0}),{tabIndex:-1}),...l,role:`option`,ref:t},l.children)))});function Ag(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:o}=go(e),s=Ee([!!t,!!n,r,i]),c=Ee([!!t,!!n,r,i]);return o=B(o,{"aria-describedby":[s,c,e[`aria-describedby`]].filter(Boolean).join(` `)||void 0}),{labelProps:a,fieldProps:o,descriptionProps:{id:s},errorMessageProps:{id:c}}}var jg=new WeakMap;function Mg(e,t,n){let{keyboardDelegate:r,isDisabled:i,isRequired:a,name:o,form:s,validationBehavior:c=`aria`}=e,l=gm({usage:`search`,sensitivity:`base`}),u=(0,v.useMemo)(()=>r||new mm(t.collection,t.disabledKeys,n,l),[r,t.collection,t.disabledKeys,l,n]),{menuTriggerProps:d,menuProps:f}=rm({isDisabled:i,type:`listbox`},t,n),{keyboardProps:p}=Ms({shortcuts:{ArrowLeft:()=>{if(t.selectionManager.selectionMode===`multiple`)return!1;let e=t.selectedKey==null?u.getFirstKey?.():u.getKeyAbove?.(t.selectedKey);e!=null&&t.setSelectedKey(e)},ArrowRight:()=>{if(t.selectionManager.selectionMode===`multiple`)return!1;let e=t.selectedKey==null?u.getFirstKey?.():u.getKeyBelow?.(t.selectedKey);e!=null&&t.setSelectedKey(e)}},allowRepeats:!0,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp}),{typeSelectProps:m}=um({keyboardDelegate:u,selectionManager:t.selectionManager,onTypeSelect(e){t.setSelectedKey(e)}}),{isInvalid:h,validationErrors:g,validationDetails:_}=t.displayValidation,{labelProps:y,fieldProps:b,descriptionProps:x,errorMessageProps:S}=Ag({...e,labelElementType:`span`,isInvalid:h,errorMessage:e.errorMessage||g});t.selectionManager.selectionMode===`multiple`&&(m={});let C=V(e,{labelable:!0}),w=B(m,d,b),T=we();return jg.set(t,{isDisabled:i,isRequired:a,name:o,form:s,validationBehavior:c}),{labelProps:{...y,onClick:()=>{e.isDisabled||(n.current?.focus(),ds(`keyboard`))}},triggerProps:B(C,{...w,isDisabled:i,onKeyDown:De(w.onKeyDown,p.onKeyDown),onKeyUp:p.onKeyUp,"aria-labelledby":[T,w[`aria-labelledby`],w[`aria-label`]&&!w[`aria-labelledby`]?w.id:null].filter(Boolean).join(` `),onFocus(n){t.isFocused||(e.onFocus&&e.onFocus(n),e.onFocusChange&&e.onFocusChange(!0),t.setFocused(!0))},onBlur(n){t.isOpen||(e.onBlur&&e.onBlur(n),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))}}),valueProps:{id:T},menuProps:{...f,onAction:void 0,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:`selection`,onBlur:n=>{Re(n.currentTarget,n.relatedTarget)||(e.onBlur&&e.onBlur(n),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))},"aria-labelledby":[b[`aria-labelledby`],w[`aria-label`]&&!b[`aria-labelledby`]?w.id:null].filter(Boolean).join(` `)},descriptionProps:x,errorMessageProps:S,isInvalid:h,validationErrors:g,validationDetails:_,hiddenSelectProps:{isDisabled:i,name:o,label:e.label,state:t,triggerRef:n,form:s}}}function Ng(e,t,n){let{validationBehavior:r,focus:i}=e;L(()=>{if(r===`native`&&n?.current&&`setCustomValidity`in n.current&&!n.current.disabled){let e=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(` `)||`Invalid value.`:``;n.current.setCustomValidity(e),n.current.hasAttribute(`title`)||(n.current.title=``),t.realtimeValidation.isInvalid||t.updateValidation(Fg(n.current))}});let a=(0,v.useRef)(!1),o=lt(()=>{a.current||t.resetValidation()}),s=lt(e=>{t.displayValidation.isInvalid||t.commitValidation();let r=n?.current?.form;!e.defaultPrevented&&n&&r&&Ig(r)===n.current&&(i?i():n.current?.focus(),ds(`keyboard`)),e.preventDefault()}),c=lt(()=>{t.commitValidation()});(0,v.useEffect)(()=>{let e=n?.current;if(!e)return;let t=e.form,r=t?.reset;return t&&(t.reset=()=>{a.current=!window.event||window.event.type===`message`&&z(window.event)instanceof MessagePort,r?.call(t),a.current=!1}),e.addEventListener(`invalid`,s),e.addEventListener(`change`,c),t?.addEventListener(`reset`,o),()=>{e.removeEventListener(`invalid`,s),e.removeEventListener(`change`,c),t?.removeEventListener(`reset`,o),t&&(t.reset=r)}},[n,r])}function Pg(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function Fg(e){return{isInvalid:!e.validity.valid,validationDetails:Pg(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function Ig(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(n.validity?.valid===!1)return n}return null}function Lg(e,t,n){let r=jg.get(t)||{},{autoComplete:i,name:a=r.name,form:o=r.form,isDisabled:s=r.isDisabled}=e,{validationBehavior:c,isRequired:l}=r,{visuallyHiddenProps:u}=fd({style:{position:`fixed`,top:0,left:0}});Mt(e.selectRef,t.defaultValue,t.setValue),Ng({validationBehavior:c,focus:()=>n.current?.focus()},t,e.selectRef);let d=t.setValue,f=(0,v.useCallback)(e=>{let t=z(e);t.multiple?d(Array.from(t.selectedOptions,e=>e.value)):d(e.currentTarget.value)},[d]);return{containerProps:{...u,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":`aria-hidden-focus`},inputProps:{style:{display:`none`}},selectProps:{tabIndex:-1,autoComplete:i,disabled:s,multiple:t.selectionManager.selectionMode===`multiple`,required:c===`native`&&l,name:a,form:o,value:t.value??``,onChange:f,onInput:f}}}function Rg(e){let{state:t,triggerRef:n,label:r,name:i,form:a,isDisabled:o}=e,s=(0,v.useRef)(null),c=(0,v.useRef)(null),{containerProps:l,selectProps:u}=Lg({...e,selectRef:t.collection.size<=300?s:c},t,n),d=Array.isArray(t.value)?t.value:[t.value];if(t.collection.size<=300)return v.createElement(`div`,{...l,"data-testid":`hidden-select-container`},v.createElement(`label`,null,r,v.createElement(`select`,{...u,ref:s},v.createElement(`option`,{value:``,label:`\xA0`},`\xA0`),[...t.collection.getKeys()].map(e=>{let n=t.collection.getItem(e);if(n&&n.type===`item`)return v.createElement(`option`,{key:n.key,value:n.key},n.textValue)}),t.collection.size===0&&i&&d.map((e,t)=>v.createElement(`option`,{key:t,value:e??``})))));if(i){let{validationBehavior:e}=jg.get(t)||{};d.length===0&&(d=[null]);let n=d.map((t,n)=>{let r={type:`hidden`,autoComplete:u.autoComplete,name:i,form:a,disabled:o,value:t??``};return e===`native`?v.createElement(`input`,{key:n,...r,ref:n===0?c:null,style:{display:`none`},type:`text`,required:n===0&&u.required,onChange:()=>{}}):v.createElement(`input`,{key:n,...r,ref:n===0?c:null})});return v.createElement(v.Fragment,null,n)}return null}function zg(e){let{selectionMode:t=`single`,shouldCloseOnSelect:n=t===`single`}=e,r=Cd(e),[i,a]=(0,v.useState)(null),o=(0,v.useMemo)(()=>e.defaultValue===void 0?t===`single`?e.defaultSelectedKey??null:[]:e.defaultValue,[e.defaultValue,e.defaultSelectedKey,t]),[s,c]=_c((0,v.useMemo)(()=>e.value===void 0?t===`single`?e.selectedKey:void 0:e.value,[e.value,e.selectedKey,t]),o,e.onChange),l=t===`single`&&Array.isArray(s)?s[0]:s,u=n=>{if(t===`single`){let t=Array.isArray(n)?n[0]??null:n;c(t),t!==l&&e.onSelectionChange?.(t)}else{let e=[];Array.isArray(n)?e=n:n!=null&&(e=[n]),c(e)}},d=gg({...e,selectionMode:t,disallowEmptySelection:t===`single`,allowDuplicateSelectionEvents:!0,selectedKeys:(0,v.useMemo)(()=>Bg(l),[l]),onSelectionChange:e=>{if(e!==`all`){if(t===`single`){let t=e.values().next().value??null;u(t)}else u([...e]);n&&r.close(),m.commitValidation()}}}),f=d.selectionManager.firstSelectedKey,p=(0,v.useMemo)(()=>[...d.selectionManager.selectedKeys].map(e=>d.collection.getItem(e)).filter(e=>e!=null),[d.selectionManager.selectedKeys,d.collection]),m=mh({...e,value:Array.isArray(l)&&l.length===0?null:l}),[h,g]=(0,v.useState)(!1),[_]=(0,v.useState)(l);return{...m,...d,...r,value:l,defaultValue:o??_,setValue:u,selectedKey:f,setSelectedKey:u,selectedItem:p[0]??null,selectedItems:p,defaultSelectedKey:e.defaultSelectedKey??(e.selectionMode===`single`?_:null),focusStrategy:i,open(t=null){(d.collection.size!==0||e.allowsEmptyCollection)&&(a(t),r.open())},toggle(t=null){(d.collection.size!==0||e.allowsEmptyCollection)&&(a(t),r.toggle())},isFocused:h,setFocused:g}}function Bg(e){if(e!==void 0)return e===null?[]:Array.isArray(e)?e:[e]}function Vg(e={}){let{locale:t}=Do();return(0,v.useMemo)(()=>new Intl.ListFormat(t,e),[t,e])}function Hg(e){return e&&e.__esModule?e.default:e}var Ug=(0,v.createContext)(null),Wg=(0,v.createContext)(null),Gg=fo(function(e,t){[e,t]=io(e,t,Ug);let{children:n,isDisabled:r=!1,isInvalid:i=!1,isRequired:a=!1}=e,o=(0,v.useMemo)(()=>typeof n==`function`?n({isOpen:!1,isDisabled:r,isInvalid:i,isRequired:a,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):n,[n,r,i,a]);return v.createElement(Gd,{content:o},n=>v.createElement(qg,{props:e,collection:n,selectRef:t}))}),Kg=[mo,dc,hp];function qg({props:e,selectRef:t,collection:n}){let{validationBehavior:r}=ro(xh)||{},i=e.validationBehavior??r??`native`,a=zg({...e,collection:n,children:void 0,validationBehavior:i}),{isFocusVisible:o,focusProps:s}=ic({within:!0}),c=(0,v.useRef)(null),[l,u]=ao(!e[`aria-label`]&&!e[`aria-labelledby`]),{labelProps:d,triggerProps:f,valueProps:p,menuProps:m,descriptionProps:h,errorMessageProps:g,hiddenSelectProps:_,...y}=Mg({...oo(e),label:u,validationBehavior:i},a,c),b=(0,v.useMemo)(()=>({isOpen:a.isOpen,isFocused:a.isFocused,isFocusVisible:o,isDisabled:e.isDisabled||!1,isInvalid:y.isInvalid||!1,isRequired:e.isRequired||!1}),[a.isOpen,a.isFocused,o,e.isDisabled,y.isInvalid,e.isRequired]),x=G({...e,values:b,defaultClassName:`react-aria-Select`}),S=V(e,{global:!0});delete S.id;let C=(0,v.useRef)(null);return v.createElement(to,{values:[[Ug,e],[Wg,a],[Jg,p],[mo,{...d,ref:l,elementType:`span`}],[dc,{...f,ref:c,isPressed:a.isOpen,autoFocus:e.autoFocus}],[Um,a],[wd,{trigger:`Select`,triggerRef:c,scrollRef:C,placement:`bottom start`,"aria-labelledby":m[`aria-labelledby`],clearContexts:Kg}],[yg,{...m,ref:C}],[bg,a],[hp,{slots:{description:h,errorMessage:g}}],[oh,y]]},v.createElement(K.div,{...B(S,x,s),ref:t,slot:e.slot||void 0,"data-focused":a.isFocused||void 0,"data-focus-visible":o||void 0,"data-open":a.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":y.isInvalid||void 0,"data-required":e.isRequired||void 0},x.children,v.createElement(Rg,{..._,autoComplete:e.autoComplete})))}var Jg=(0,v.createContext)(null),Yg=fo(function(e,t){[e,t]=io(e,t,Jg);let n=(0,v.useContext)(Wg),{placeholder:r}=ro(Ug),i=n.selectedItems.map(e=>{let t=e.props?.children;return typeof t==`function`&&(t=t({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:`single`,selectionBehavior:`toggle`})),t}),a=Vg(),o=(0,v.useMemo)(()=>n.selectedItems.map(e=>e?.textValue),[n.selectedItems]),s=n.selectionManager.selectionMode,c=(0,v.useMemo)(()=>s===`single`?o[0]??``:a.format(o),[s,a,o]),l=(0,v.useMemo)(()=>{if(s===`single`)return i[0];let e=a.formatToParts(o);if(e.length===0)return null;let t=0;return e.map(e=>e.type===`element`?v.createElement(v.Fragment,{key:t},i[t++]):e.value)},[s,a,o,i]),u=ud(Hg(rg),`react-aria-components`),d=G({...e,defaultChildren:l??r??u.format(`selectPlaceholder`),defaultClassName:`react-aria-SelectValue`,values:{selectedItem:n.selectedItems[0]?.value??null,selectedItems:(0,v.useMemo)(()=>n.selectedItems.map(e=>e.value??null),[n.selectedItems]),selectedText:c,isPlaceholder:n.selectedItems.length===0,state:n}}),f=V(e,{global:!0});return v.createElement(K.span,{ref:t,...f,...d,"data-placeholder":n.selectedItems.length===0||void 0},v.createElement(hp.Provider,{value:void 0},d.children))}),Xg=(0,v.createContext)(!1),Zg=e=>{let t=(0,v.use)(Xg),n=(0,v.use)(hp);return!t||n?.slots?.[e]!=null},Qg=({children:e})=>(0,H.jsx)(Xg,{value:!0,children:e}),$g=(0,v.createContext)({triggerRef:{current:null},clearButtonRef:{current:null},isDisabled:!1}),e_=({children:e,className:t,fullWidth:n,isDisabled:r,onClear:i,variant:a,...o})=>{let s=v.useMemo(()=>wa({fullWidth:n,variant:a}),[n,a]),c=(0,v.useRef)(null),l=(0,v.useRef)(null),u=v.useMemo(()=>({slots:s,triggerRef:c,clearButtonRef:l,onClear:i,isDisabled:r}),[s,i,r]);return(0,H.jsx)(Qg,{children:(0,H.jsx)($g,{value:u,children:(0,H.jsx)(Gg,{"data-slot":`autocomplete`,...o,className:J(t,s?.base()),isDisabled:r,children:t=>(0,H.jsx)(H.Fragment,{children:typeof e==`function`?e(t):e})})})})},t_=({children:e,className:t,isDisabled:n,onClick:r,ref:i,...a})=>{let{clearButtonRef:o,isDisabled:s,slots:c,triggerRef:l}=(0,v.use)($g),u=(0,v.use)(Wg),d=n??s??!1,f=po(),p=v.useCallback(e=>{l.current=e},[l]),m=v.useMemo(()=>We(p,i),[p,i]);return f?null:(0,H.jsx)(ah,{ref:m,className:J(t,c?.trigger()),"data-slot":`autocomplete-trigger`,isDisabled:d,onClick:e=>{o.current?.contains(e.target)||(r?.(e),u?.toggle())},...a,children:t=>(0,H.jsx)(H.Fragment,{children:typeof e==`function`?e(t):e})})};t_.displayName=`AutocompleteTrigger`;var n_=Object.assign(e_,{Root:e_,Trigger:t_,Value:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)($g);return(0,H.jsx)(Yg,{className:J(t,r?.value()),"data-slot":`autocomplete-value`,...n,children:e})},Indicator:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)($g),i=(0,v.use)(Wg),a=e&&v.isValidElement(e)?v.cloneElement(e,{...n,className:Y(r?.indicator,t),"data-slot":`autocomplete-indicator`,"data-open":kc(i?.isOpen)}):(0,H.jsx)(Ac,{className:Y(r?.indicator,t),"data-open":kc(i?.isOpen),"data-slot":`autocomplete-default-indicator`,...n});return(0,H.jsx)(fc,{children:a})},Popover:({children:e,className:t,placement:n=`bottom`,style:r,...i})=>{let{slots:a,triggerRef:o}=(0,v.use)($g),[s,c]=(0,v.useState)(null);return ft({ref:o,onResize:(0,v.useCallback)(()=>{o.current&&c(o.current.offsetWidth+`px`)},[o])}),(0,H.jsx)(Hc,{value:{variant:`default`},children:(0,H.jsx)(Ed,{...i,className:J(t,a?.popover()),"data-slot":`autocomplete-popover`,placement:n,triggerRef:o,style:{"--trigger-width":s,...typeof r==`object`&&r?r:{}},children:e})})},Filter:({children:e,...t})=>(0,H.jsx)(ip,{"data-slot":`autocomplete-filter`,...t,children:e}),ClearButton:({className:e,onClick:t,ref:n,...r})=>{let{clearButtonRef:i,isDisabled:a,onClear:o,slots:s}=(0,v.use)($g),c=(0,v.use)(Wg),l=v.useCallback(e=>{i.current=e},[i]),u=v.useMemo(()=>We(l,n),[l,n]),d=e=>{c?.selectionManager.setSelectedKeys(new Set),o?.(),t?.(e)},f=c?.selectionManager.selectedKeys.size===0;return(0,H.jsx)(on.button,{ref:u,"aria-hidden":f||void 0,"aria-label":`Clear selection`,className:s?.clearButton({className:e}),"data-empty":kc(f),"data-slot":`autocomplete-clear-button`,disabled:a??!1,tabIndex:-1,type:`button`,onClick:d,...r,children:(0,H.jsx)(Pc,{"data-slot":`autocomplete-clear-button-icon`})})}}),r_=Object.defineProperty,i_=(e,t)=>r_(e,`name`,{value:t,configurable:!0});function a_(e,t){let n=v.createContext(t);n.displayName=e+`Context`;let r=i_(e=>{let{children:t,...r}=e,i=v.useMemo(()=>r,Object.values(r));return(0,H.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 i_(i,`useContext`),[r,i]}i_(a_,`createContext`);function o_(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=i_(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=v.useMemo(()=>o,Object.values(o));return(0,H.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 i_(s,`useContext`),[o,s]}i_(r,`createContext`);let i=i_(()=>{let t=n.map(e=>v.createContext(e));return i_(function(n){let r=n?.[e]||t;return v.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,s_(i,...t)]}i_(o_,`createContextScope`);function s_(...e){let t=e[0];if(e.length===1)return t;let n=i_(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return i_(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}i_(s_,`composeContextScopes`);var c_=Object.defineProperty,l_=(e,t)=>c_(e,`name`,{value:t,configurable:!0});function u_(e){let t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>((...e)=>t.current?.(...e)),[])}l_(u_,`useCallbackRef`);var d_=globalThis?.document?v.useLayoutEffect:()=>{},f_=Object.defineProperty,p_=(e,t)=>f_(e,`name`,{value:t,configurable:!0});function m_(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}p_(m_,`setRef`);function h_(...e){return t=>{let n=!1,r=e.map(e=>{let r=m_(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():m_(e[t],null)}}}}p_(h_,`composeRefs`);function g_(...e){return v.useCallback(h_(...e),e)}p_(g_,`useComposedRefs`);var __=Object.defineProperty,v_=(e,t)=>__(e,`name`,{value:t,configurable:!0});function y_(e){let t=v.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];D_(r)&&typeof j_==`function`&&(r=j_(r._payload)),v.Children.forEach(r,e=>{if(T_(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;D_(n)&&typeof j_==`function`&&(n=j_(n._payload)),a=S_(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?w_(a):void 0,l=g_(n,c);if(!a){if(r||r===0)throw Error(o?A_(e):k_(e));return r}let u=C_(i,a.props??{});return a.type!==v.Fragment&&(u.ref=n?l:c),v.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}v_(y_,`createSlot`);var b_=Symbol.for(`radix.slottable`);function x_(e){let t=v_(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=b_,t}v_(x_,`createSlottable`);var S_=v_((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 C_(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}}v_(C_,`mergeProps`);function w_(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)}v_(w_,`getElementRef`);function T_(e){return v.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===b_}v_(T_,`isSlottable`);var E_=Symbol.for(`react.lazy`);function D_(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===E_&&`_payload`in e&&O_(e._payload)}v_(D_,`isLazyComponent`);function O_(e){return typeof e==`object`&&!!e&&`then`in e}v_(O_,`isPromiseLike`);var k_=v_(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),A_=v_(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),j_=v.use,M_=Object.defineProperty,N_=(e,t)=>M_(e,`name`,{value:t,configurable:!0}),P_=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=y_(`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,H.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function F_(e,t){e&&Ft.flushSync(()=>e.dispatchEvent(t))}N_(F_,`dispatchDiscreteCustomEvent`);var I_=Object.defineProperty,L_=(e,t)=>I_(e,`name`,{value:t,configurable:!0}),R_=`Avatar`,[z_,B_]=o_(R_),V_=[0,()=>void 0],[H_,U_]=z_(R_),W_=v.forwardRef(L_(function(e,t){let{__scopeAvatar:n,...r}=e,[i,a]=v.useState(`idle`),[o,s]=Z_();return(0,H.jsx)(H_,{scope:n,imageLoadingStatus:i,setImageLoadingStatus:a,imageCount:o,setImageCount:s,children:(0,H.jsx)(P_.span,{...r,ref:t})})},`Avatar`)),G_=`AvatarImage`,K_=v.forwardRef(L_(function(e,t){let{__scopeAvatar:n,src:r,onLoadingStatusChange:i,...a}=e,o=U_(G_,n);o.setImageCount;let s=Y_(r,{referrerPolicy:a.referrerPolicy,crossOrigin:a.crossOrigin,loadingStatus:o.imageLoadingStatus,setLoadingStatus:o.setImageLoadingStatus}),c=u_(e=>{i?.(e)}),l=v.useRef(s);return d_(()=>{let e=l.current;l.current=s,s!==e&&c(s)},[s,c]),s===`loaded`?(0,H.jsx)(P_.img,{...a,ref:t,src:r}):null},`AvatarImage`)),q_=`AvatarFallback`,J_=v.forwardRef(L_(function(e,t){let{__scopeAvatar:n,delayMs:r,...i}=e,a=U_(q_,n),[o,s]=v.useState(r===void 0);return v.useEffect(()=>{if(r!==void 0){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),o&&a.imageLoadingStatus!==`loaded`?(0,H.jsx)(P_.span,{...i,ref:t}):null},`AvatarFallback`));function Y_(e,{loadingStatus:t,setLoadingStatus:n,referrerPolicy:r,crossOrigin:i}){return d_(()=>{if(!e){n(`error`);return}let t=new window.Image,a=L_(e=>{let t=e.currentTarget;n(X_(t))},`handleLoad`),o=L_(()=>n(`error`),`handleError`);return t.addEventListener(`load`,a),t.addEventListener(`error`,o),r&&(t.referrerPolicy=r),t.crossOrigin=i??null,t.src=e,n(X_(t)),()=>{t.removeEventListener(`load`,a),t.removeEventListener(`error`,o),n(`idle`)}},[e,i,r,n]),t}L_(Y_,`useImageLoadingStatus`);function X_(e){return e.complete?e.naturalWidth>0?`loaded`:`error`:`loading`}L_(X_,`getImageLoadingStatus`);function Z_(){return V_}L_(Z_,`useImageCount`);function Q_(e){}L_(Q_,`useUpdateImageCount`);var $_=(0,v.createContext)({}),ev=({children:e,className:t,color:n,size:r,variant:i,[Sa]:a,...o})=>{let s=(0,v.use)(xa),c=a===!0,l=r??(c?s?.size:void 0),u=n??(c?s?.color:void 0),d=i??(c?s?.variant:void 0),f=v.useMemo(()=>Ta({color:u,size:l,variant:d}),[u,l,d]),p=v.useMemo(()=>({slots:f}),[f]);return(0,H.jsx)($_,{value:p,children:(0,H.jsx)(W_,{className:f.base({className:t}),...o,children:e})})},tv=Object.assign(ev,{Root:ev,Image:({className:e,crossOrigin:t,loading:n,onError:r,onLoad:i,sizes:a,src:o,srcSet:s,...c})=>{let{slots:l}=v.use($_);return(0,H.jsx)(K_,{className:Y(l?.image,e),crossOrigin:t,loading:n,sizes:a,src:o,srcSet:s,onError:r,onLoad:i,...c})},Fallback:({className:e,color:t,...n})=>{let{slots:r}=v.use($_);return(0,H.jsx)(J_,{className:Y(r?.fallback,e,{color:t}),"data-slot":`avatar-fallback`,...n})}});function nv(e={}){let{isReadOnly:t}=e,[n,r]=_c(e.isSelected,e.defaultSelected||!1,e.onChange),[i]=(0,v.useState)(n);function a(e){t||r(e)}function o(){t||r(!n)}return{isSelected:n,defaultSelected:e.defaultSelected??i,setSelected:a,toggle:o}}var rv=(0,v.createContext)({}),iv=`__button_group_child`,av=({children:e,className:t,fullWidth:n,isDisabled:r,isIconOnly:i,size:a,slot:o,style:s,variant:c,[iv]:l,...u})=>{let d=(0,v.use)(rv),f=l===!0,p=a??(f?d?.size:void 0),m=c??(f?d?.variant:void 0),h=r??(f?d?.isDisabled:void 0),g=Ea({fullWidth:n??(f?d?.fullWidth:void 0),isIconOnly:i,size:p,variant:m});return(0,H.jsx)(fc,{className:J(t,g),"data-slot":`button`,isDisabled:h,slot:o,style:s,...u,children:t=>typeof e==`function`?e(t):e})},ov=Object.assign(av,{Root:av}),sv=(0,v.createContext)({}),cv=({children:e,className:t,variant:n=`default`,...r})=>{let i=v.useMemo(()=>Da({variant:n}),[n]),a=v.useMemo(()=>({slots:i}),[i]),o=v.useMemo(()=>({variant:n}),[n]),s=(0,H.jsx)(on.div,{className:i.base({className:t}),"data-slot":`card`,...r,children:e});return(0,H.jsx)(sv,{value:a,children:n===`transparent`?s:(0,H.jsx)(Hc,{value:o,children:s})})},lv=Object.assign(cv,{Root:cv,Header:({className:e,...t})=>{let{slots:n}=(0,v.use)(sv);return(0,H.jsx)(on.div,{className:Y(n?.header,e),"data-slot":`card-header`,...t})},Title:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(sv);return(0,H.jsx)(on.h3,{className:Y(r?.title,t),"data-slot":`card-title`,...n,children:e})},Description:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(sv);return(0,H.jsx)(on.p,{className:Y(r?.description,t),"data-slot":`card-description`,...n,children:e})},Content:({className:e,...t})=>{let{slots:n}=(0,v.use)(sv);return(0,H.jsx)(on.div,{className:Y(n?.content,e),"data-slot":`card-content`,...t})},Footer:({className:e,...t})=>{let{slots:n}=(0,v.use)(sv);return(0,H.jsx)(on.div,{className:Y(n?.footer,e),"data-slot":`card-footer`,...t})}}),uv=new WeakMap;function dv(e,t){let{isDisabled:n,name:r,form:i,validationBehavior:a=`aria`}=e,{isInvalid:o,validationErrors:s,validationDetails:c}=t.displayValidation,{labelProps:l,fieldProps:u,descriptionProps:d,errorMessageProps:f}=Ag({...e,labelElementType:`span`,isInvalid:o,errorMessage:e.errorMessage||s});uv.set(t,{name:r,form:i,descriptionId:d.id,errorMessageId:f.id,validationBehavior:a});let p=V(e,{labelable:!0}),{focusWithinProps:m}=rc({onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:B(p,{role:`group`,"aria-disabled":n||void 0,...u,...m}),labelProps:l,descriptionProps:d,errorMessageProps:f,isInvalid:o,validationErrors:s,validationDetails:c}}function fv(e=!0){let[t,n]=(0,v.useState)(e),r=(0,v.useRef)(!1),i=(0,v.useCallback)(e=>{r.current=!0,n(!!e)},[]);return L(()=>{r.current||n(!1)},[]),[i,t]}function pv(e=!0){let t=we(),[n,r]=fv(e);return{id:r?t:void 0,ref:n}}function mv(e,t,n){let{isDisabled:r=!1,isReadOnly:i=!1,value:a,name:o,form:s,children:c,isRequired:l,validationBehavior:u=`aria`,"aria-label":d,"aria-labelledby":f,"aria-describedby":p,onPressStart:m,onPressEnd:h,onPressChange:g,onPress:_,onPressUp:y,onClick:b}=e,x=mh({...e,value:t.isSelected}),{isInvalid:S,validationErrors:C,validationDetails:w}=x.displayValidation;Ng(e,x,n);let T=e=>{e.stopPropagation(),t.setSelected(z(e).checked)},{pressProps:E,isPressed:D}=Js({onPressStart:m,onPressEnd:h,onPressChange:g,onPress:_,onPressUp:y,onClick:b,isDisabled:r}),[O,k]=(0,v.useState)(!1),{pressProps:A}=Js({onPressStart(e){if(e.pointerType===`keyboard`||e.pointerType===`virtual`){e.continuePropagation();return}m?.(e),g?.(!0),k(!0)},onPressEnd(e){if(e.pointerType===`keyboard`||e.pointerType===`virtual`){e.continuePropagation();return}h?.(e),g?.(!1),k(!1)},onPressUp(e){if(e.pointerType===`keyboard`||e.pointerType===`virtual`){e.continuePropagation();return}y?.(e)},onClick:b,onPress(r){if(r.pointerType===`keyboard`||r.pointerType===`virtual`){r.continuePropagation();return}_?.(r),t.toggle(),n.current?.focus();let{[ph]:i}=e,{commitValidation:a}=i||x;a()},isDisabled:r||i}),{focusableProps:j}=Is(e,n),M=B(E,j),N=V(e,{labelable:!0});Mt(n,t.defaultSelected,t.setSelected);let P=pv(),F=pv();return{labelProps:B(A,{onClick:e=>e.preventDefault()}),inputProps:B(N,{checked:t.isSelected,"aria-required":l&&u===`aria`||void 0,required:l&&u===`native`,"aria-invalid":S||e.validationState===`invalid`||void 0,"aria-errormessage":e[`aria-errormessage`],"aria-controls":e[`aria-controls`],"aria-readonly":i||void 0,"aria-describedby":[P.id,F.id,p].filter(Boolean).join(` `)||void 0,onChange:T,disabled:r,...a==null?{}:{value:a},name:o,form:s,type:`checkbox`,...M}),descriptionProps:P,errorMessageProps:F,isSelected:t.isSelected,isPressed:D||O,isDisabled:r,isReadOnly:i,isInvalid:S||e.validationState===`invalid`,validationErrors:C,validationDetails:w}}function hv(e,t,n){let{labelProps:r,inputProps:i,descriptionProps:a,errorMessageProps:o,isSelected:s,isPressed:c,isDisabled:l,isReadOnly:u,isInvalid:d,validationErrors:f,validationDetails:p}=mv(e,t,n),{isIndeterminate:m}=e;return(0,v.useEffect)(()=>{n.current&&(n.current.indeterminate=!!m)}),{labelProps:B(r,(0,v.useMemo)(()=>({onMouseDown:e=>e.preventDefault()}),[])),inputProps:i,descriptionProps:a,errorMessageProps:o,isSelected:s,isPressed:c,isDisabled:l,isReadOnly:u,isInvalid:d,validationErrors:f,validationDetails:p}}function gv(e,t,n){let r=nv({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),defaultSelected:t.defaultValue.includes(e.value),onChange(n){n?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(n)}}),{name:i,form:a,descriptionId:o,errorMessageId:s,validationBehavior:c}=uv.get(t);c=e.validationBehavior??c;let{realtimeValidation:l}=mh({...e,value:r.isSelected,name:void 0,validationBehavior:`aria`}),u=(0,v.useRef)(dh),d=()=>{t.setInvalid(e.value,l.isInvalid?l:u.current)};(0,v.useEffect)(d);let f=t.realtimeValidation.isInvalid?t.realtimeValidation:l,p=c===`native`?t.displayValidation:f,m=hv({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||i,form:e.form||a,isRequired:e.isRequired??t.isRequired,validationBehavior:c,[ph]:{realtimeValidation:f,displayValidation:p,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(e){u.current=e,d()}}},r,n);return{...m,inputProps:{...m.inputProps,"aria-describedby":[m.inputProps[`aria-describedby`],t.isInvalid?s:null,o].filter(Boolean).join(` `)||void 0}}}function _v(e={}){let[t,n]=_c(e.value,e.defaultValue||[],e.onChange),[r]=(0,v.useState)(t),i=!!e.isRequired&&t.length===0,a=(0,v.useRef)(new Map),o=mh({...e,value:t}),s=o.displayValidation.isInvalid;return{...o,value:t,defaultValue:e.defaultValue??r,setValue(t){e.isReadOnly||e.isDisabled||n(t)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected(e){return t.includes(e)},addValue(t){e.isReadOnly||e.isDisabled||n(e=>e.includes(t)?e:e.concat(t))},removeValue(r){e.isReadOnly||e.isDisabled||t.includes(r)&&n(t.filter(e=>e!==r))},toggleValue(r){e.isReadOnly||e.isDisabled||(t.includes(r)?n(t.filter(e=>e!==r)):n(t.concat(r)))},setInvalid(e,t){let n=new Map(a.current);t.isInvalid?n.set(e,t):n.delete(e),a.current=n,o.updateValidation(bh(...n.values()))},validationState:e.validationState??(s?`invalid`:null),isInvalid:s,isRequired:i}}var vv=(0,v.createContext)(null),yv=(0,v.createContext)(null),bv=(0,v.createContext)(null),xv=(0,v.forwardRef)(function(e,t){[e,t]=io(e,t,yv);let{validationBehavior:n}=ro(xh)||{},r=e.validationBehavior??n??`native`,i=_v({...e,validationBehavior:r}),[a,o]=ao(!e[`aria-label`]&&!e[`aria-labelledby`]),{groupProps:s,labelProps:c,descriptionProps:l,errorMessageProps:u,...d}=dv({...e,label:o,validationBehavior:r},i),f=G({...e,values:{isDisabled:i.isDisabled,isReadOnly:i.isReadOnly,isRequired:e.isRequired||!1,isInvalid:i.isInvalid,state:i},defaultClassName:`react-aria-CheckboxGroup`}),p=V(e,{global:!0});return v.createElement(K.div,{...B(p,f,s),ref:t,slot:e.slot||void 0,"data-readonly":i.isReadOnly||void 0,"data-required":e.isRequired||void 0,"data-invalid":i.isInvalid||void 0,"data-disabled":e.isDisabled||void 0},v.createElement(to,{values:[[bv,i],[mo,{...c,ref:a,elementType:`span`}],[hp,{slots:{description:l,errorMessage:u}}],[oh,d]]},f.children))}),Sv=(0,v.createContext)(null),Cv=(0,v.forwardRef)(function(e,t){let{inputRef:n=null,...r}=e;[e,t]=io(r,t,vv);let i=(0,v.useContext)(bv),[a,o]=wv(e,n),{descriptionProps:s,errorMessageProps:c,isSelected:l,isDisabled:u,isReadOnly:d,isInvalid:f,validationDetails:p,validationErrors:m}=a,h=G({...e,defaultClassName:`react-aria-CheckboxField`,values:{isSelected:l,isIndeterminate:e.isIndeterminate||!1,isDisabled:u,isReadOnly:d,isInvalid:f,isRequired:e.isRequired||!1}}),g=V(e,{global:!0});return delete g.id,delete g.onClick,v.createElement(K.div,{...B(g,h),ref:t,slot:e.slot||void 0,"data-selected":l||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-disabled":u||void 0,"data-readonly":d||void 0,"data-invalid":f||void 0,"data-required":e.isRequired||void 0},v.createElement(to,{values:[[Sv,{...a,inputRef:o,defaultClassName:`react-aria-CheckboxButton`,isIndeterminate:e.isIndeterminate,isRequired:e.isRequired}],[hp,{slots:{description:s,errorMessage:c}}],[oh,i?null:{isInvalid:f,validationDetails:p,validationErrors:m}]]},h.children))});function wv(e,t){let{validationBehavior:n}=ro(xh)||{},r=e.validationBehavior??n??`native`,i=(0,v.useContext)(bv),a=st((0,v.useMemo)(()=>We(t,e.inputRef===void 0?null:e.inputRef),[t,e.inputRef])),o={...oo(e),children:typeof e.children==`function`||e.children,value:e.value,validationBehavior:r};return[i?gv(o,i,a):hv(o,nv(e),a),a]}var Tv=(0,v.forwardRef)(function(e,t){let{labelProps:n,inputProps:r,isSelected:i,isDisabled:a,isReadOnly:o,isPressed:s,isInvalid:c,inputRef:l,defaultClassName:u,isIndeterminate:d,isRequired:f}=(0,v.useContext)(Sv),{isFocused:p,isFocusVisible:m,focusProps:h}=ic(),g=a||o,{hoverProps:_,isHovered:y}=uc({...e,isDisabled:g}),b=G({...e,defaultClassName:u,values:{isSelected:i,isIndeterminate:d||!1,isPressed:s,isHovered:y,isFocused:p,isFocusVisible:m,isDisabled:a,isReadOnly:o,isInvalid:c,isRequired:f||!1}}),x=V(e,{global:!0});return delete x.id,delete x.onClick,v.createElement(K.label,{...B(x,n,_,b),ref:t,slot:e.slot||void 0,"data-selected":i||void 0,"data-indeterminate":d||void 0,"data-pressed":s||void 0,"data-hovered":y||void 0,"data-focused":p||void 0,"data-focus-visible":m||void 0,"data-disabled":a||void 0,"data-readonly":o||void 0,"data-invalid":c||void 0,"data-required":f||void 0},v.createElement(pd,{elementType:`span`},v.createElement(`input`,{...B(r,h),ref:l})),b.children)}),Ev=(0,v.createContext)({}),Dv=({children:e,className:t,variant:n,...r})=>{let i=v.useMemo(()=>Oa({variant:n}),[n]);return(0,H.jsx)(Ev.Provider,{value:{variant:n},children:(0,H.jsx)(xv,{className:J(t,i),"data-slot":`checkbox-group`,...r,children:t=>(0,H.jsx)(H.Fragment,{children:typeof e==`function`?e(t):e})})})},Ov={elementType:`span`},kv=(0,v.createContext)({}),Av=({children:e,className:t,variant:n,...r})=>{let i=(0,v.use)(Ev),a=n??i.variant,o=v.useMemo(()=>ka({variant:a}),[a]);return(0,H.jsx)(Cv,{"data-slot":`checkbox`,...r,className:J(t,o.base()),children:t=>(0,H.jsx)(kv,{value:{slots:o,state:t},children:typeof e==`function`?e(t):e})})};Av.displayName=`HeroUI.Checkbox`;var jv=({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(kv);return(0,H.jsx)(Tv,{"data-slot":`checkbox-content`,...n,className:J(t,r?.content()),children:t=>(0,H.jsx)(mo,{value:Ov,children:typeof e==`function`?e(t):e})})};jv.displayName=`HeroUI.Checkbox.Content`;var Mv=({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(kv);return(0,H.jsx)(on.span,{className:Y(r?.control,t),"data-slot":`checkbox-control`,...n,children:e})};Mv.displayName=`HeroUI.Checkbox.Control`;var Nv=({children:e,className:t,...n})=>{let{slots:r,state:i}=(0,v.use)(kv),a=i?.isSelected,o=i?.isIndeterminate,s=typeof e==`function`?e(i??{}):e||(o?(0,H.jsx)(`svg`,{"aria-hidden":`true`,"data-slot":`checkbox-default-indicator--indeterminate`,fill:`none`,role:`presentation`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:3,viewBox:`0 0 24 24`,children:(0,H.jsx)(`line`,{x1:`21`,x2:`3`,y1:`12`,y2:`12`})}):(0,H.jsx)(`svg`,{"aria-hidden":`true`,"data-slot":`checkbox-default-indicator--checkmark`,fill:`none`,role:`presentation`,stroke:`currentColor`,strokeDasharray:22,strokeDashoffset:a?44:66,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,viewBox:`0 0 17 18`,children:(0,H.jsx)(`polyline`,{points:`1 9 7 14 15 4`})}));return(0,H.jsx)(on.span,{"aria-hidden":`true`,className:Y(r?.indicator,t),"data-slot":`checkbox-indicator`,...n,children:s})};Nv.displayName=`HeroUI.Checkbox.Indicator`;var Pv=Object.assign(Av,{Root:Av,Content:jv,Control:Mv,Indicator:Nv}),Fv=(0,v.createContext)({}),Iv=({children:e,className:t,color:n,size:r,variant:i,...a})=>{let o=v.useMemo(()=>Aa({color:n,size:r,variant:i}),[n,r,i]),s=v.useMemo(()=>typeof e==`string`||typeof e==`number`?(0,H.jsx)(Lv,{children:e}):e,[e]),c=v.useMemo(()=>({slots:o}),[o]);return(0,H.jsx)(Fv,{value:c,children:(0,H.jsx)(on.span,{...a,className:Y(o.base,t),"data-slot":`chip`,children:s})})},Lv=({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(Fv);return(0,H.jsx)(on.span,{className:Y(r?.label,t),"data-slot":`chip-label`,...n,children:e})},Rv=Object.assign(Iv,{Root:Iv,Label:Lv});function zv(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=(0,v.useRef)({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:a,removeGlobalListener:o}=at(),s=lt((0,v.useCallback)((e,r,a,o)=>{(a!==0||o!==0)&&(i.current.didMove||(i.current.didMove=!0,t?.({type:`movestart`,pointerType:r,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})),n?.({type:`move`,pointerType:r,deltaX:a,deltaY:o,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))},[t,n,i])),c=lt((0,v.useCallback)((e,t)=>{Vs(),i.current.didMove&&r?.({type:`moveend`,pointerType:t,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})},[r,i]));return{moveProps:(0,v.useMemo)(()=>{let e={},t=()=>{Bs(),i.current.didMove=!1};{let n=e=>{if(e.pointerId===i.current.id){let t=e.pointerType||`mouse`;s(e,t,e.pageX-(i.current.lastPosition?.pageX??0),e.pageY-(i.current.lastPosition?.pageY??0)),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY}}},r=e=>{if(e.pointerId===i.current.id){let t=e.pointerType||`mouse`;c(e,t),i.current.id=null;let a=ke(z(e));o(a,`pointermove`,n,!1),o(a,`pointerup`,r,!1),o(a,`pointercancel`,r,!1)}};e.onPointerDown=e=>{if(e.button===0&&i.current.id==null){t(),e.stopPropagation(),e.preventDefault(),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY},i.current.id=e.pointerId;let o=ke(z(e));a(o,`pointermove`,n,!1),a(o,`pointerup`,r,!1),a(o,`pointercancel`,r,!1)}}}let n=(e,n,r)=>{t(),s(e,`keyboard`,n,r),c(e,`keyboard`)};return e.onKeyDown=e=>{switch(e.key){case`Left`:case`ArrowLeft`:e.preventDefault(),e.stopPropagation(),n(e,-1,0);break;case`Right`:case`ArrowRight`:e.preventDefault(),e.stopPropagation(),n(e,1,0);break;case`Up`:case`ArrowUp`:e.preventDefault(),e.stopPropagation(),n(e,0,-1);break;case`Down`:case`ArrowDown`:e.preventDefault(),e.stopPropagation(),n(e,0,1)}},e},[a,o,i])}}var Bv=(0,v.createContext)({}),Vv=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...i}=e;return i},Hv=fo(function(e,t){[e,t]=io(e,t,Bv);let{hoverProps:n,isHovered:r}=uc({...e,isDisabled:e.disabled}),{isFocused:i,isFocusVisible:a,focusProps:o}=ic({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e[`aria-invalid`]&&e[`aria-invalid`]!==`false`,c=G({...e,values:{isHovered:r,isFocused:i,isFocusVisible:a,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:`react-aria-Input`});return v.createElement(K.input,{...B(Vv(e),o,n),...c,ref:t,"data-focused":i||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":a||void 0,"data-invalid":s||void 0})});function Uv(e,t){let{inputElementType:n=`input`,isDisabled:r=!1,isRequired:i=!1,isReadOnly:a=!1,type:o=`text`,validationBehavior:s=`aria`}=e,[c,l]=_c(e.value,e.defaultValue||``,e.onChange),{focusableProps:u}=Is(e,t),d=mh({...e,value:c}),{isInvalid:f,validationErrors:p,validationDetails:m}=d.displayValidation,{labelProps:h,fieldProps:g,descriptionProps:_,errorMessageProps:y}=Ag({...e,isInvalid:f,errorMessage:e.errorMessage||p}),b=V(e,{labelable:!0}),x={type:o,pattern:e.pattern},[S]=(0,v.useState)(c);return Mt(t,e.defaultValue??S,l),Ng(e,d,t),{labelProps:h,inputProps:B(b,n===`input`?x:void 0,{disabled:r,readOnly:a,required:i&&s===`native`,"aria-required":i&&s===`aria`||void 0,"aria-invalid":f||void 0,"aria-errormessage":e[`aria-errormessage`],"aria-activedescendant":e[`aria-activedescendant`],"aria-autocomplete":e[`aria-autocomplete`],"aria-haspopup":e[`aria-haspopup`],"aria-controls":e[`aria-controls`],value:c,onChange:e=>l(z(e).value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,enterKeyHint:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...u,...g}),descriptionProps:_,errorMessageProps:y,isInvalid:f,validationErrors:p,validationDetails:m}}var Wv=new WeakMap;function Gv(e,t){let n=Wv.get(e);if(!n)throw Error(`Unknown slider state`);return`${n.id}-${t}`}function Kv(e,t,n){let{labelProps:r,fieldProps:i}=go(e),a=e.orientation===`vertical`;Wv.set(t,{id:r.id??i.id,"aria-describedby":e[`aria-describedby`],"aria-details":e[`aria-details`]});let{direction:o}=Do(),{addGlobalListener:s,removeGlobalListener:c}=at(),l=(0,v.useRef)(null),u=o===`rtl`,d=(0,v.useRef)(null),{moveProps:f}=zv({onMoveStart(){d.current=null},onMove({deltaX:e,deltaY:r}){if(!n.current)return;let{height:i,width:o}=n.current.getBoundingClientRect(),s=a?i:o;d.current==null&&l.current!=null&&(d.current=t.getThumbPercent(l.current)*s);let c=a?r:e;if((a||u)&&(c=-c),d.current+=c,l.current!=null&&n.current){let e=Qt(d.current/s,0,1);t.setThumbPercent(l.current,e)}},onMoveEnd(){l.current!=null&&(t.setThumbDragging(l.current,!1),l.current=null)}}),p=(0,v.useRef)(void 0),m=(r,i,c,u)=>{if(n.current&&!e.isDisabled&&t.values.every((e,n)=>!t.isThumbDragging(n))){let{height:e,width:d,top:f,left:m}=n.current.getBoundingClientRect(),g=a?e:d,_=((a?u:c)-(a?f:m))/g;(o===`rtl`||a)&&(_=1-_);let v=t.getPercentValue(_),y,b=t.values.findIndex(e=>v-e<0);if(b===0)y=b;else if(b===-1)y=t.values.length-1;else{let e=t.values[b-1],n=t.values[b];y=Math.abs(e-v)<Math.abs(n-v)?b-1:b}y>=0&&t.isThumbEditable(y)?(r.preventDefault(),l.current=y,t.setFocusedThumb(y),p.current=i,t.setThumbDragging(l.current,!0),t.setThumbValue(y,v),s(window,`mouseup`,h,!1),s(window,`touchend`,h,!1),s(window,`pointerup`,h,!1)):l.current=null}},h=e=>{(e.pointerId??e.changedTouches?.[0].identifier)===p.current&&(l.current!=null&&(t.setThumbDragging(l.current,!1),l.current=null),c(window,`mouseup`,h,!1),c(window,`touchend`,h,!1),c(window,`pointerup`,h,!1))};return`htmlFor`in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{document.getElementById(Gv(t,0))?.focus(),ds(`keyboard`)}),{labelProps:r,groupProps:{role:`group`,...i},trackProps:B({onMouseDown(e){e.button!==0||e.altKey||e.ctrlKey||e.metaKey||m(e,void 0,e.clientX,e.clientY)},onPointerDown(e){e.pointerType===`mouse`&&(e.button!==0||e.altKey||e.ctrlKey||e.metaKey)||m(e,e.pointerId,e.clientX,e.clientY)},onTouchStart(e){m(e,e.changedTouches[0].identifier,e.changedTouches[0].clientX,e.changedTouches[0].clientY)},style:{position:`relative`,touchAction:`none`}},f),outputProps:{htmlFor:t.values.map((e,n)=>Gv(t,n)).join(` `),"aria-live":`off`}}}function qv(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:a,trackRef:o,inputRef:s,orientation:c=t.orientation,name:l,form:u}=e,d=e.isDisabled||t.isDisabled,f=c===`vertical`,{direction:p}=Do(),{addGlobalListener:m,removeGlobalListener:h}=at(),g=Wv.get(t),{labelProps:_,fieldProps:y}=go({...e,id:Gv(t,n),"aria-labelledby":`${g.id} ${e[`aria-labelledby`]??``}`.trim()}),b=t.values[n],x=(0,v.useCallback)(()=>{s.current&&P(s.current)},[s]),S=t.focusedThumb===n;(0,v.useEffect)(()=>{S&&x()},[S,x]);let C=p===`rtl`,w=(0,v.useRef)(null),T=e=>{t.setThumbDragging(n,!0),e(),t.setThumbDragging(n,!1)},{keyboardProps:E}=Ms({shortcuts:{PageUp:()=>T(()=>{t.incrementThumb(n,t.pageSize)}),PageDown:()=>T(()=>{t.decrementThumb(n,t.pageSize)}),Home:()=>T(()=>{t.setThumbValue(n,t.getThumbMinValue(n))}),End:()=>T(()=>{t.setThumbValue(n,t.getThumbMaxValue(n))})},allowRepeats:!0}),{moveProps:D}=zv({onMoveStart(){w.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:e,deltaY:r,pointerType:i,shiftKey:a}){let{getThumbPercent:s,setThumbPercent:c,decrementThumb:l,incrementThumb:u,step:d,pageSize:p}=t;if(!o.current)return;let{width:m,height:h}=o.current.getBoundingClientRect(),g=f?h:m;if(w.current??=s(n)*g,i===`keyboard`)e>0&&C||e<0&&!C||r>0?l(n,a?p:d):u(n,a?p:d);else{let t=f?r:e;(f||C)&&(t=-t),w.current+=t,c(n,Qt(w.current/g,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!d);let{focusableProps:O}=Is(B(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),s),k=(0,v.useRef)(void 0),A=e=>{x(),k.current=e,t.setThumbDragging(n,!0),m(window,`mouseup`,j,!1),m(window,`touchend`,j,!1),m(window,`pointerup`,j,!1)},j=e=>{(e.pointerId??e.changedTouches?.[0].identifier)===k.current&&(x(),t.setThumbDragging(n,!1),h(window,`mouseup`,j,!1),h(window,`touchend`,j,!1),h(window,`pointerup`,j,!1))},M=t.getThumbPercent(n);(f||p===`rtl`)&&(M=1-M);let N=d?{}:B(E,D,{onMouseDown:e=>{e.button!==0||e.altKey||e.ctrlKey||e.metaKey||A()},onPointerDown:e=>{e.button!==0||e.altKey||e.ctrlKey||e.metaKey||A(e.pointerId)},onTouchStart:e=>{A(e.changedTouches[0].identifier)}});return Mt(s,t.defaultValues[n],e=>{t.setThumbValue(n,e)}),{inputProps:B(O,y,{type:`range`,tabIndex:d?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:b,name:l,form:u,disabled:d,"aria-orientation":c,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":a||i===`invalid`||void 0,"aria-errormessage":e[`aria-errormessage`],"aria-describedby":[g[`aria-describedby`],e[`aria-describedby`]].filter(Boolean).join(` `),"aria-details":[g[`aria-details`],e[`aria-details`]].filter(Boolean).join(` `),onChange:e=>{t.setThumbValue(n,parseFloat(z(e).value))}}),thumbProps:{...N,style:{position:`absolute`,[f?`top`:`left`]:`${M*100}%`,transform:`translate(-50%, -50%)`,touchAction:`none`}},labelProps:_,isDragging:t.isThumbDragging(n),isDisabled:d,isFocused:S}}var Jv=0,Yv=100,Xv=1;function Zv(e){let{isDisabled:t=!1,minValue:n=Jv,maxValue:r=Yv,numberFormatter:i,step:a=Xv,orientation:o=`horizontal`}=e,s=(0,v.useMemo)(()=>{let e=(r-n)/10;return e=en(e,0,e+a,a),Math.max(e,a)},[a,r,n]),c=(0,v.useCallback)(e=>e?.map((t,i)=>en(t,i===0?n:e[i-1],i===e.length-1?r:e[i+1],a)),[n,r,a]),l=(0,v.useMemo)(()=>c($v(e.value)),[e.value,c]),u=(0,v.useMemo)(()=>c($v(e.defaultValue)??[n]),[e.defaultValue,n,c]),d=ey(e.value,e.defaultValue,e.onChange),f=ey(e.value,e.defaultValue,e.onChangeEnd),[p,m]=_c(l,u,d),[h]=(0,v.useState)(p),[g,_]=(0,v.useState)(Array(p.length).fill(!1)),y=(0,v.useRef)(Array(p.length).fill(!0)),[b,x]=(0,v.useState)(void 0),S=(0,v.useRef)(p),C=(0,v.useRef)(g),w=e=>{S.current=e,m(e)},T=e=>{C.current=e,_(e)};function E(e){return(e-n)/(r-n)}function D(e){return e===0?n:p[e-1]}function O(e){return e===p.length-1?r:p[e+1]}function k(e){return y.current[e]}function A(e,t){y.current[e]=t}function j(e,n){if(t||!k(e))return;let r=D(e),i=O(e);n=en(n,r,i,a);let o=Qv(S.current,e,n);w(o)}function M(e,n){if(t||!k(e))return;n&&(S.current=p);let r=C.current[e];C.current=Qv(C.current,e,n),T(C.current),f&&r&&!C.current.some(Boolean)&&f(S.current)}let N=(0,v.useRef)(null);function P(e=p){switch(typeof e==`number`&&(e=[e]),e.length){case 0:return``;case 1:return i.format(e[0]);case 2:return i.formatRange(e[0],e[1]);default:{let t=e.map(e=>i.format(e)),n=N.current;return(!n||n.resolvedOptions().locale!==i.resolvedOptions().locale)&&(n=N.current=new Intl.ListFormat(i.resolvedOptions().locale,{type:`unit`})),n.format(t)}}}function F(e,t){j(e,ee(t))}function I(e){return Math.round((e-n)/a)*a+n}function ee(e){return Qt(I(e*(r-n)+n),n,r)}function te(e,t=1){let i=Math.max(t,a);j(e,en(p[e]+i,n,r,a))}function ne(e,t=1){let i=Math.max(t,a);j(e,en(p[e]-i,n,r,a))}return{values:p,defaultValues:e.defaultValue===void 0?h:u,getThumbValue:e=>p[e],setThumbValue:j,setThumbPercent:F,isThumbDragging:e=>g[e],setThumbDragging:M,focusedThumb:b,setFocusedThumb:x,getThumbPercent:e=>E(p[e]),getValuePercent:E,getThumbValueLabel:e=>P(p[e]),getFormattedValue:P,getThumbMinValue:D,getThumbMaxValue:O,getPercentValue:ee,isThumbEditable:k,setThumbEditable:A,incrementThumb:te,decrementThumb:ne,step:a,pageSize:s,orientation:o,isDisabled:t}}function Qv(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function $v(e){if(e!=null)return Array.isArray(e)?e:[e]}function ey(e,t,n){return r=>{typeof e==`number`||typeof t==`number`?n?.(r[0]):n?.(r)}}var ty=(0,v.createContext)(null),ny=(0,v.createContext)(null),ry=(0,v.createContext)(null),iy=(0,v.createContext)(null),ay=(0,v.forwardRef)(function(e,t){[e,t]=io(e,t,ty);let n=(0,v.useRef)(null),r=Fo(e.formatOptions),i=Zv({...e,numberFormatter:r}),[a,o]=ao(!e[`aria-label`]&&!e[`aria-labelledby`]),{groupProps:s,trackProps:c,labelProps:l,outputProps:u}=Kv({...e,label:o},i,n),d=G({...e,values:{orientation:i.orientation,isDisabled:i.isDisabled,state:i},defaultClassName:`react-aria-Slider`}),f=V(e,{global:!0});return delete f.id,v.createElement(to,{values:[[ny,i],[ry,{...c,ref:n}],[iy,u],[mo,{...l,ref:a}]]},v.createElement(K.div,{...B(f,d,s),ref:t,slot:e.slot||void 0,"data-orientation":i.orientation,"data-disabled":i.isDisabled||void 0}))}),oy=(0,v.forwardRef)(function(e,t){[e,t]=io(e,t,iy);let{children:n,style:r,className:i,render:a,...o}=e,s=(0,v.useContext)(ny),c=G({className:i,style:r,children:n,render:a,defaultChildren:s.getFormattedValue(),defaultClassName:`react-aria-SliderOutput`,values:{orientation:s.orientation,isDisabled:s.isDisabled,state:s}});return v.createElement(K.output,{...o,...c,ref:t,"data-orientation":s.orientation||void 0,"data-disabled":s.isDisabled||void 0})}),sy=(0,v.forwardRef)(function(e,t){[e,t]=io(e,t,ry);let n=(0,v.useContext)(ny),{onHoverStart:r,onHoverEnd:i,onHoverChange:a,...o}=e,{hoverProps:s,isHovered:c}=uc({onHoverStart:r,onHoverEnd:i,onHoverChange:a}),l=G({...e,defaultClassName:`react-aria-SliderTrack`,values:{orientation:n.orientation,isDisabled:n.isDisabled,isHovered:c,state:n}});return v.createElement(K.div,{...B(o,s),...l,ref:t,"data-hovered":c||void 0,"data-orientation":n.orientation||void 0,"data-disabled":n.isDisabled||void 0})}),cy=(0,v.forwardRef)(function(e,t){let{inputRef:n=null}=e,r=(0,v.useContext)(ny),{ref:i}=ro(ry),{index:a=0}=e,o=(0,v.useRef)(null),s=n||o,[c,l]=ao(!e[`aria-label`]&&!e[`aria-labelledby`]),{thumbProps:u,inputProps:d,labelProps:f,isDragging:p,isFocused:m,isDisabled:h}=qv({...e,index:a,trackRef:i,inputRef:s,label:l},r),{focusProps:g,isFocusVisible:_}=ic(),{hoverProps:y,isHovered:b}=uc(e),x=G({...e,defaultClassName:`react-aria-SliderThumb`,values:{state:r,isHovered:b,isDragging:p,isFocused:m,isFocusVisible:_,isDisabled:h}}),S=V(e,{global:!0});return delete S.id,v.createElement(K.div,{...B(S,u,y),...x,ref:t,style:{...u.style,...x.style},"data-hovered":b||void 0,"data-dragging":p||void 0,"data-focused":m||void 0,"data-focus-visible":_||void 0,"data-disabled":h||void 0},v.createElement(pd,null,v.createElement(`input`,{ref:s,...B(d,g)})),v.createElement(to,{values:[[mo,{...f,ref:c}]]},x.children))});function ly(e,t){let n=t?.isDisabled,[r,i]=(0,v.useState)(!1);return L(()=>{if(e?.current&&!n){let t=()=>{if(e.current){let t=$l(e.current,{tabbable:!0});i(!!t.nextNode())}};t();let n=new MutationObserver(t);return n.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:[`tabIndex`,`disabled`]}),()=>{n.disconnect()}}}),!n&&r}var uy=1500,dy=500,fy={},py=0,my=!1,hy=null,gy=null;function _y(e={}){let{delay:t=uy,closeDelay:n=dy}=e,{isOpen:r,open:i,close:a}=Cd(e),[o,s]=(0,v.useState)(!1),c=(0,v.useMemo)(()=>`${++py}`,[]),l=(0,v.useRef)(null),u=(0,v.useRef)(a),d=()=>{fy[c]=m},f=()=>{for(let e in fy)e!==c&&(fy[e](!0,!0),delete fy[e])},p=e=>{l.current&&clearTimeout(l.current),l.current=null,f(),d(),s(!!e),my=!0,i(),hy&&=(clearTimeout(hy),null),gy&&=(clearTimeout(gy),null)},m=(e,t)=>{s(!!t),e||n<=0?(l.current&&clearTimeout(l.current),l.current=null,u.current()):l.current||=setTimeout(()=>{l.current=null,u.current()},n),hy&&=(clearTimeout(hy),null),my&&(gy&&clearTimeout(gy),gy=setTimeout(()=>{delete fy[c],gy=null,my=!1},Math.max(dy,n)))},h=()=>{f(),d(),!r&&!my?(hy&&clearTimeout(hy),hy=setTimeout(()=>{hy=null,my=!0,p(!1)},t)):r||p(!0)};return(0,v.useEffect)(()=>{u.current=a},[a]),(0,v.useEffect)(()=>()=>{l.current&&clearTimeout(l.current),fy[c]&&delete fy[c]},[c]),{isOpen:r,shouldSkipAnimation:o,open:e=>{!e&&t>0&&!l.current?h():p(my)},close:m}}var vy={};vy={"Clear search":`مسح البحث`};var yy={};yy={"Clear search":`Изчистване на търсене`};var by={};by={"Clear search":`Vymazat hledání`};var xy={};xy={"Clear search":`Ryd søgning`};var Sy={};Sy={"Clear search":`Suche zurücksetzen`};var Cy={};Cy={"Clear search":`Απαλοιφή αναζήτησης`};var wy={};wy={"Clear search":`Clear search`};var Ty={};Ty={"Clear search":`Borrar búsqueda`};var Ey={};Ey={"Clear search":`Tühjenda otsing`};var Dy={};Dy={"Clear search":`Tyhjennä haku`};var Oy={};Oy={"Clear search":`Effacer la recherche`};var ky={};ky={"Clear search":`נקה חיפוש`};var Ay={};Ay={"Clear search":`Obriši pretragu`};var jy={};jy={"Clear search":`Keresés törlése`};var My={};My={"Clear search":`Cancella ricerca`};var Ny={};Ny={"Clear search":`検索をクリア`};var Py={};Py={"Clear search":`검색 지우기`};var Fy={};Fy={"Clear search":`Išvalyti iešką`};var Iy={};Iy={"Clear search":`Notīrīt meklēšanu`};var Ly={};Ly={"Clear search":`Tøm søk`};var Ry={};Ry={"Clear search":`Zoekactie wissen`};var zy={};zy={"Clear search":`Wyczyść zawartość wyszukiwania`};var By={};By={"Clear search":`Limpar pesquisa`};var Vy={};Vy={"Clear search":`Limpar pesquisa`};var Hy={};Hy={"Clear search":`Ştergeţi căutarea`};var Uy={};Uy={"Clear search":`Очистить поиск`};var Wy={};Wy={"Clear search":`Vymazať vyhľadávanie`};var Gy={};Gy={"Clear search":`Počisti iskanje`};var Ky={};Ky={"Clear search":`Obriši pretragu`};var qy={};qy={"Clear search":`Rensa sökning`};var Jy={};Jy={"Clear search":`Aramayı temizle`};var Yy={};Yy={"Clear search":`Очистити пошук`};var Xy={};Xy={"Clear search":`清除搜索`};var Zy={};Zy={"Clear search":`清除搜尋條件`};var Qy={};Qy={"ar-AE":vy,"bg-BG":yy,"cs-CZ":by,"da-DK":xy,"de-DE":Sy,"el-GR":Cy,"en-US":wy,"es-ES":Ty,"et-EE":Ey,"fi-FI":Dy,"fr-FR":Oy,"he-IL":ky,"hr-HR":Ay,"hu-HU":jy,"it-IT":My,"ja-JP":Ny,"ko-KR":Py,"lt-LT":Fy,"lv-LV":Iy,"nb-NO":Ly,"nl-NL":Ry,"pl-PL":zy,"pt-BR":By,"pt-PT":Vy,"ro-RO":Hy,"ru-RU":Uy,"sk-SK":Wy,"sl-SI":Gy,"sr-SP":Ky,"sv-SE":qy,"tr-TR":Jy,"uk-UA":Yy,"zh-CN":Xy,"zh-TW":Zy};function $y(e){return e&&e.__esModule?e.default:e}function eb(e,t,n){let r=ud($y(Qy),`@react-aria/searchfield`),{isDisabled:i,isReadOnly:a,onSubmit:o,onClear:s,type:c=`search`}=e,{keyboardProps:l}=Ms({isDisabled:i||a,shortcuts:{Enter:()=>{if(o){o(t.value);return}return!1},Escape:()=>{if(t.value===``&&(!n.current||n.current.value===``))return!1;t.setValue(``),s?.()}}}),u=()=>{t.setValue(``),s&&s()},d=()=>{n.current?.focus()},{labelProps:f,inputProps:p,descriptionProps:m,errorMessageProps:h,...g}=Uv({...e,value:t.value,onChange:t.setValue,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,type:c},n);return{labelProps:f,inputProps:B(l,{...p,defaultValue:void 0}),clearButtonProps:{"aria-label":r.format(`Clear search`),excludeFromTabOrder:!0,preventFocusOnPress:!0,isDisabled:i||a,onPress:u,onPressStart:d},descriptionProps:m,errorMessageProps:h,...g}}function tb(e){let[t,n]=_c(nb(e.value),nb(e.defaultValue)||``,e.onChange);return{value:t,setValue:n}}function nb(e){if(e!=null)return e.toString()}var rb=(0,v.createContext)(null),ib=fo(function(e,t){[e,t]=io(e,t,rb);let{validationBehavior:n}=ro(xh)||{},r=e.validationBehavior??n??`native`,i=(0,v.useRef)(null);[e,i]=io(e,i,rp);let[a,o]=ao(!e[`aria-label`]&&!e[`aria-labelledby`]),s=tb({...e,validationBehavior:r}),{labelProps:c,inputProps:l,clearButtonProps:u,descriptionProps:d,errorMessageProps:f,...p}=eb({...oo(e),label:o,validationBehavior:r},s,i),m=G({...e,values:{isEmpty:s.value===``,isDisabled:e.isDisabled||!1,isInvalid:p.isInvalid||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,state:s},defaultClassName:`react-aria-SearchField`}),h=V(e,{global:!0});return delete h.id,v.createElement(K.div,{...h,...m,ref:t,slot:e.slot||void 0,"data-empty":s.value===``||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":p.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},v.createElement(to,{values:[[mo,{...c,ref:a}],[Bv,{...l,ref:i}],[dc,u],[hp,{slots:{description:d,errorMessage:f}}],[ih,{isInvalid:p.isInvalid,isDisabled:e.isDisabled||!1}],[oh,p]]},m.children))});function ab(e,t,n){let{labelProps:r,inputProps:i,isSelected:a,...o}=mv(e,t,n);return{labelProps:r,inputProps:{...i,role:`switch`,checked:a},isSelected:a,...o}}var ob=(0,v.createContext)(null),sb=(0,v.createContext)(null),cb=(0,v.createContext)(null),lb=(0,v.forwardRef)(function(e,t){let{inputRef:n=null,...r}=e;[e,t]=io(r,t,ob);let{validationBehavior:i}=ro(xh)||{},a=e.validationBehavior??i??`native`,o=st((0,v.useMemo)(()=>We(n,e.inputRef===void 0?null:e.inputRef),[n,e.inputRef])),s=nv(e),c=ab({...oo(e),children:typeof e.children==`function`||e.children,validationBehavior:a},s,o),{descriptionProps:l,errorMessageProps:u,isSelected:d,isDisabled:f,isReadOnly:p,isInvalid:m,validationDetails:h,validationErrors:g}=c,_=G({...e,defaultClassName:`react-aria-SwitchField`,values:{isSelected:d,isDisabled:f,isReadOnly:p,isInvalid:m,isRequired:e.isRequired||!1,state:s}}),y=V(e,{global:!0});return delete y.id,delete y.onClick,v.createElement(K.div,{...B(y,_),ref:t,slot:e.slot||void 0,"data-selected":d||void 0,"data-disabled":f||void 0,"data-readonly":p||void 0,"data-invalid":m||void 0,"data-required":e.isRequired||void 0},v.createElement(to,{values:[[sb,s],[cb,{...c,inputRef:o,defaultClassName:`react-aria-SwitchButton`,isRequired:e.isRequired}],[hp,{slots:{description:l,errorMessage:u}}],[oh,{isInvalid:m,validationDetails:h,validationErrors:g}]]},_.children))}),ub=(0,v.forwardRef)(function(e,t){let{labelProps:n,inputProps:r,isSelected:i,isDisabled:a,isReadOnly:o,isPressed:s,isInvalid:c,inputRef:l,defaultClassName:u,isRequired:d}=(0,v.useContext)(cb),{isFocused:f,isFocusVisible:p,focusProps:m}=ic(),h=a||o,g=(0,v.useContext)(sb),{hoverProps:_,isHovered:y}=uc({...e,isDisabled:h}),b=G({...e,defaultClassName:u,values:{isSelected:i,isPressed:s,isHovered:y,isFocused:f,isFocusVisible:p,isDisabled:a,isReadOnly:o,isInvalid:c,isRequired:d||!1,state:g}}),x=V(e,{global:!0});return delete x.id,delete x.onClick,v.createElement(K.label,{...B(x,n,_,b),ref:t,slot:e.slot||void 0,"data-selected":i||void 0,"data-pressed":s||void 0,"data-hovered":y||void 0,"data-focused":f||void 0,"data-focus-visible":p||void 0,"data-disabled":a||void 0,"data-readonly":o||void 0,"data-invalid":c||void 0,"data-required":d||void 0},v.createElement(pd,{elementType:`span`},v.createElement(`input`,{...B(r,m),ref:l})),b.children)}),db=new WeakMap;function fb(e,t,n){return e?(typeof t==`string`&&(t=t.replace(/\s+/g,``)),`${db.get(e)}-${n}-${t}`):``}function pb(e,t,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:a}=e,{selectionManager:o,selectedKey:s}=t,c=r===s,l=i||t.isDisabled||t.selectionManager.isDisabled(r),u=t.collection.getItem(r),{itemProps:d,isPressed:f}=vm({selectionManager:o,key:r,ref:n,isDisabled:l,shouldSelectOnPressUp:a??u?.props.href!=null,linkBehavior:`selection`}),p=fb(t,r,`tab`),m=fb(t,r,`tabpanel`),{tabIndex:h}=d,g=V(u?.props,{labelable:!0});delete g.id;let _=se(u?.props),{focusableProps:v}=Is({...u?.props,isDisabled:l},n);return{tabProps:B(g,v,_,d,{id:p,"aria-selected":c,"aria-disabled":l||void 0,"aria-controls":c?m:void 0,tabIndex:l?void 0:h,role:`tab`}),isSelected:c,isDisabled:l,isPressed:f}}function mb(e,t,n){let r=ly(n)?void 0:0,i=fb(t,e.id??t?.selectedKey,`tabpanel`);return{tabPanelProps:B(ot({...e,id:i,"aria-labelledby":fb(t,t?.selectedKey,`tab`)}),{tabIndex:r,role:`tabpanel`,"aria-describedby":e[`aria-describedby`],"aria-details":e[`aria-details`]})}}var hb=class{constructor(e,t,n,r=new Set){this.collection=e,this.flipDirection=t===`rtl`,this.disabledKeys=r,this.tabDirection=n===`horizontal`}getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){return this.disabledKeys.has(e)||!!this.collection.getItem(e)?.props?.isDisabled}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let t=e;do t=this.collection.getKeyAfter(t),t??=this.collection.getFirstKey();while(t!=null&&this.isDisabled(t)&&t!==e);return t}getPreviousKey(e){let t=e;do t=this.collection.getKeyBefore(t),t??=this.collection.getLastKey();while(t!=null&&this.isDisabled(t)&&t!==e);return t}};function gb(e,t,n){let{orientation:r=`horizontal`,keyboardActivation:i=`automatic`}=e,{collection:a,selectionManager:o,disabledKeys:s}=t,{direction:c}=Do(),{collectionProps:l}=fm({ref:n,selectionManager:o,keyboardDelegate:(0,v.useMemo)(()=>new hb(a,c,r,s),[a,s,r,c]),selectOnFocus:i===`automatic`,disallowEmptySelection:!0,scrollRef:n,linkBehavior:`selection`}),u=we();return db.set(t,u),{tabListProps:{...B(l,ot({...e,id:u})),role:`tablist`,"aria-orientation":r,tabIndex:void 0}}}function _b(e){let[t,n]=_c(e.selectedKey,e.defaultSelectedKey??null,e.onSelectionChange),r=(0,v.useMemo)(()=>t==null?[]:[t],[t]),{collection:i,disabledKeys:a,selectionManager:o}=gg({...e,selectionMode:`single`,disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:r,onSelectionChange:r=>{if(r===`all`)return;let i=r.values().next().value??null;i===t&&e.onSelectionChange&&e.onSelectionChange(i),n(i)}});return{collection:i,disabledKeys:a,selectionManager:o,selectedKey:t,setSelectedKey:n,selectedItem:t==null?null:i.getItem(t)}}function vb(e){let t=_b({...e,onSelectionChange:e.onSelectionChange?t=>{t!=null&&e.onSelectionChange?.(t)}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:e.defaultSelectedKey??yb(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)??void 0}),{selectionManager:n,collection:r,selectedKey:i}=t,a=(0,v.useRef)(i);return(0,v.useEffect)(()=>{let o=i;e.selectedKey==null&&(n.isEmpty||o==null||!r.getItem(o))&&(o=yb(r,t.disabledKeys),o!=null&&n.setSelectedKeys([o])),(o!=null&&n.focusedKey==null||!n.isFocused&&o!==a.current)&&n.setFocusedKey(o),a.current=o}),{...t,isDisabled:e.isDisabled||!1}}function yb(e,t){let n=null;if(e){for(n=e.getFirstKey();n!=null&&(t.has(n)||e.getItem(n)?.props?.isDisabled)&&n!==e.getLastKey();)n=e.getKeyAfter(n);n!=null&&(t.has(n)||e.getItem(n)?.props?.isDisabled)&&n===e.getLastKey()&&(n=e.getFirstKey())}return n}var bb=(0,v.createContext)(null),xb=(0,v.createContext)(null),Sb=(0,v.forwardRef)(function(e,t){[e,t]=io(e,t,bb);let{children:n,orientation:r=`horizontal`}=e;return n=(0,v.useMemo)(()=>typeof n==`function`?n({orientation:r,defaultChildren:null}):n,[n,r]),v.createElement(Gd,{content:n},n=>v.createElement(Cb,{props:e,collection:n,tabsRef:t}))});function Cb({props:e,tabsRef:t,collection:n}){let{orientation:r=`horizontal`}=e,i=vb({...e,collection:n,children:void 0}),{focusProps:a,isFocused:o,isFocusVisible:s}=ic({within:!0}),c=(0,v.useMemo)(()=>({orientation:r,isFocusWithin:o,isFocusVisible:s}),[r,o,s]),l=G({...e,defaultClassName:`react-aria-Tabs`,values:c}),u=V(e,{global:!0});return v.createElement(K.div,{...B(u,l,a),ref:t,slot:e.slot||void 0,"data-focused":o||void 0,"data-orientation":r,"data-focus-visible":s||void 0,"data-disabled":i.isDisabled||void 0},v.createElement(to,{values:[[bb,e],[xb,i]]},l.children))}var wb=(0,v.forwardRef)(function(e,t){return(0,v.useContext)(xb)?v.createElement(Tb,{props:e,forwardedRef:t}):v.createElement(rf,e)});function Tb({props:e,forwardedRef:t}){let n=(0,v.useContext)(xb),{CollectionRoot:r}=(0,v.useContext)(uf),{orientation:i=`horizontal`,keyboardActivation:a=`automatic`}=ro(bb),o=st(t),{tabListProps:s}=gb({...e,orientation:i,keyboardActivation:a},n,o),c=G({...e,children:null,defaultClassName:`react-aria-TabList`,values:{orientation:i,state:n}}),l=V(e,{global:!0});return delete l.id,v.createElement(K.div,{...B(l,c,s),ref:o,"data-orientation":i||void 0},v.createElement(cp,null,v.createElement(r,{collection:n.collection,persistedKeys:df(n.selectionManager.focusedKey)})))}var Eb=$d(class extends Od{static{this.type=`item`}},(e,t,n)=>{let r=(0,v.useContext)(xb),i=st(t),{tabProps:a,isSelected:o,isDisabled:s,isPressed:c}=pb({key:n.key,...e},r,i),{focusProps:l,isFocused:u,isFocusVisible:d}=ic(),{hoverProps:f,isHovered:p}=uc({isDisabled:s,onHoverStart:e.onHoverStart,onHoverEnd:e.onHoverEnd,onHoverChange:e.onHoverChange}),m=G({...e,id:void 0,children:n.rendered,defaultClassName:`react-aria-Tab`,values:{isSelected:o,isDisabled:s,isFocused:u,isFocusVisible:d,isPressed:c,isHovered:p}}),h=n.props.href?K.a:K.div,g=V(e,{global:!0});return delete g.id,delete g.onClick,v.createElement(h,{...B(g,m,a,l,f),ref:i,"data-selected":o||void 0,"data-disabled":s||void 0,"data-focused":u||void 0,"data-focus-visible":d||void 0,"data-pressed":c||void 0,"data-hovered":p||void 0},v.createElement(up.Provider,{value:{isSelected:o}},m.children))}),Db=fo(function(e,t){let n=(0,v.useContext)(xb),r=st(t),i=n.selectedKey===e.id,[a,o]=(0,v.useState)(n.selectedKey==null?null:i);a==null&&n.selectedKey!=null?o(i):!i&&a&&o(!1);let s=Lt(r,i);return!i&&!e.shouldForceMount&&!s?null:v.createElement(Ob,{...e,tabPanelRef:r,isInitiallySelected:a||!1,isExiting:s})});function Ob(e){let t=(0,v.useContext)(xb),{id:n,tabPanelRef:r,isInitiallySelected:i,isExiting:a,...o}=e,{tabPanelProps:s}=mb(e,t,r),{focusProps:c,isFocused:l,isFocusVisible:u}=ic(),d=t.selectedKey===e.id,f=It(r)&&!i,p=G({...e,defaultClassName:`react-aria-TabPanel`,values:{isFocused:l,isFocusVisible:u,isInert:Pt(!d),isEntering:f,isExiting:a,state:t}}),m=V(o,{global:!0});delete m.id;let h=d?B(m,s,c,p):B(m,p);return v.createElement(K.div,{...h,ref:r,"data-focused":l||void 0,"data-focus-visible":u||void 0,inert:Pt(!d||e.inert),"data-inert":d?void 0:`true`,"data-entering":f||void 0,"data-exiting":a||void 0},v.createElement(to,{values:[[bb,null],[xb,null]]},v.createElement(uf.Provider,{value:sf},p.children)))}var kb=(0,v.createContext)({}),Ab=(0,v.createContext)(null),jb=fo(function(e,t){[e,t]=io(e,t,Ab);let{validationBehavior:n}=ro(xh)||{},r=e.validationBehavior??n??`native`,i=(0,v.useRef)(null);[e,i]=io(e,i,rp);let[a,o]=ao(!e[`aria-label`]&&!e[`aria-labelledby`]),[s,c]=(0,v.useState)(`input`),{labelProps:l,inputProps:u,descriptionProps:d,errorMessageProps:f,...p}=Uv({...oo(e),inputElementType:s,label:o,validationBehavior:r},i),m=(0,v.useCallback)(e=>{i.current=e,e&&c(e instanceof HTMLTextAreaElement?`textarea`:`input`)},[i]),h=G({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:p.isInvalid,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:`react-aria-TextField`}),g=V(e,{global:!0});return delete g.id,v.createElement(K.div,{...g,...h,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":p.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},v.createElement(to,{values:[[mo,{...l,ref:a}],[Bv,{...u,ref:m}],[kb,{...u,ref:m}],[ih,{role:`presentation`,isInvalid:p.isInvalid,isDisabled:e.isDisabled||!1}],[hp,{slots:{description:d,errorMessage:f}}],[oh,p]]},h.children))}),Mb={};Mb={close:`إغلاق`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{625}\u{634}\u{639}\u{627}\u{631}`,other:()=>`${t.number(e.count)} \u{625}\u{634}\u{639}\u{627}\u{631}\u{627}\u{62A}`})}.`};var Nb={};Nb={close:`Затвори`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{438}\u{437}\u{432}\u{435}\u{441}\u{442}\u{438}\u{435}`,other:()=>`${t.number(e.count)} \u{438}\u{437}\u{432}\u{435}\u{441}\u{442}\u{438}\u{44F}`})}.`};var Pb={};Pb={close:`Zavřít`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ozn\xe1men\xed`,other:()=>`${t.number(e.count)} ozn\xe1men\xed`})}.`};var Fb={};Fb={close:`Luk`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} besked`,other:()=>`${t.number(e.count)} beskeder`})}.`};var Ib={};Ib={close:`Schließen`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} Benachrichtigung`,other:()=>`${t.number(e.count)} Benachrichtigungen`})}.`};var Lb={};Lb={close:`Κλείσιμο`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{3B5}\u{3B9}\u{3B4}\u{3BF}\u{3C0}\u{3BF}\u{3AF}\u{3B7}\u{3C3}\u{3B7}`,other:()=>`${t.number(e.count)} \u{3B5}\u{3B9}\u{3B4}\u{3BF}\u{3C0}\u{3BF}\u{3B9}\u{3AE}\u{3C3}\u{3B5}\u{3B9}\u{3C2}`})}.`};var Rb={};Rb={close:`Close`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notification`,other:()=>`${t.number(e.count)} notifications`})}.`};var zb={};zb={close:`Cerrar`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notificaci\xf3n`,other:()=>`${t.number(e.count)} notificaciones`})}.`};var Bb={};Bb={close:`Sule`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} teatis`,other:()=>`${t.number(e.count)} teatist`})}.`};var Vb={};Vb={close:`Sulje`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ilmoitus`,other:()=>`${t.number(e.count)} ilmoitusta`})}.`};var Hb={};Hb={close:`Fermer`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notification`,other:()=>`${t.number(e.count)} notifications`})}.`};var Ub={};Ub={close:`סגור`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{5D4}\u{5EA}\u{5E8}\u{5D0}\u{5D4}`,other:()=>`${t.number(e.count)} \u{5D4}\u{5EA}\u{5E8}\u{5D0}\u{5D5}\u{5EA}`})}.`};var Wb={};Wb={close:`Zatvori`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} obavijest`,other:()=>`${t.number(e.count)} obavijesti`})}.`};var Gb={};Gb={close:`Bezárás`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \xe9rtes\xedt\xe9s`,other:()=>`${t.number(e.count)} \xe9rtes\xedt\xe9s`})}.`};var Kb={};Kb={close:`Chiudi`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notifica`,other:()=>`${t.number(e.count)} notifiche`})}.`};var qb={};qb={close:`閉じる`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{500B}\u{306E}\u{901A}\u{77E5}`,other:()=>`${t.number(e.count)} \u{500B}\u{306E}\u{901A}\u{77E5}`})}\u{3002}`};var Jb={};Jb={close:`닫기`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}\u{AC1C} \u{C54C}\u{B9BC}`,other:()=>`${t.number(e.count)}\u{AC1C} \u{C54C}\u{B9BC}`})}.`};var Yb={};Yb={close:`Uždaryti`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} prane\u{161}imas`,other:()=>`${t.number(e.count)} prane\u{161}imai`})}.`};var Xb={};Xb={close:`Aizvērt`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} pazi\u{146}ojums`,other:()=>`${t.number(e.count)} pazi\u{146}ojumi`})}.`};var Zb={};Zb={close:`Lukk`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} varsling`,other:()=>`${t.number(e.count)} varsler`})}.`};var Qb={};Qb={close:`Sluiten`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} melding`,other:()=>`${t.number(e.count)} meldingen`})}.`};var $b={};$b={close:`Zamknij`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} powiadomienie`,few:()=>`${t.number(e.count)} powiadomienia`,many:()=>`${t.number(e.count)} powiadomie\u{144}`,other:()=>`${t.number(e.count)} powiadomienia`})}.`};var ex={};ex={close:`Fechar`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notifica\xe7\xe3o`,other:()=>`${t.number(e.count)} notifica\xe7\xf5es`})}.`};var tx={};tx={close:`Fechar`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notifica\xe7\xe3o`,other:()=>`${t.number(e.count)} notifica\xe7\xf5es`})}.`};var nx={};nx={close:`Închideţi`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notificare`,other:()=>`${t.number(e.count)} notific\u{103}ri`})}.`};var rx={};rx={close:`Закрыть`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{443}\u{432}\u{435}\u{434}\u{43E}\u{43C}\u{43B}\u{435}\u{43D}\u{438}\u{435}`,other:()=>`${t.number(e.count)} \u{443}\u{432}\u{435}\u{434}\u{43E}\u{43C}\u{43B}\u{435}\u{43D}\u{438}\u{44F}`})}.`};var ix={};ix={close:`Zatvoriť`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ozn\xe1menie`,few:()=>`${t.number(e.count)} ozn\xe1menia`,other:()=>`${t.number(e.count)} ozn\xe1men\xed`})}.`};var ax={};ax={close:`Zapri`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} obvestilo`,two:()=>`${t.number(e.count)} obvestili`,few:()=>`${t.number(e.count)} obvestila`,other:()=>`${t.number(e.count)} obvestil`})}.`};var ox={};ox={close:`Zatvori`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} obave\u{161}tenje`,other:()=>`${t.number(e.count)} obave\u{161}tenja`})}.`};var sx={};sx={close:`Stäng`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} meddelande`,other:()=>`${t.number(e.count)} meddelanden`})}.`};var cx={};cx={close:`Kapat`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} bildirim`,other:()=>`${t.number(e.count)} bildirim`})}.`};var lx={};lx={close:`Закрити`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{441}\u{43F}\u{43E}\u{432}\u{456}\u{449}\u{435}\u{43D}\u{43D}\u{44F}`,other:()=>`${t.number(e.count)} \u{441}\u{43F}\u{43E}\u{432}\u{456}\u{449}\u{435}\u{43D}\u{43D}\u{44F}`})}.`};var ux={};ux={close:`关闭`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{4E2A}\u{901A}\u{77E5}`,other:()=>`${t.number(e.count)} \u{4E2A}\u{901A}\u{77E5}`})}\u{3002}`};var dx={};dx={close:`關閉`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{500B}\u{901A}\u{77E5}`,other:()=>`${t.number(e.count)} \u{500B}\u{901A}\u{77E5}`})}\u{3002}`};var fx={};fx={"ar-AE":Mb,"bg-BG":Nb,"cs-CZ":Pb,"da-DK":Fb,"de-DE":Ib,"el-GR":Lb,"en-US":Rb,"es-ES":zb,"et-EE":Bb,"fi-FI":Vb,"fr-FR":Hb,"he-IL":Ub,"hr-HR":Wb,"hu-HU":Gb,"it-IT":Kb,"ja-JP":qb,"ko-KR":Jb,"lt-LT":Yb,"lv-LV":Xb,"nb-NO":Zb,"nl-NL":Qb,"pl-PL":$b,"pt-BR":ex,"pt-PT":tx,"ro-RO":nx,"ru-RU":rx,"sk-SK":ix,"sl-SI":ax,"sr-SP":ox,"sv-SE":sx,"tr-TR":cx,"uk-UA":lx,"zh-CN":ux,"zh-TW":dx};function px(e){return e&&e.__esModule?e.default:e}function mx(e,t,n){let{key:r,timer:i,timeout:a}=e.toast;(0,v.useEffect)(()=>{if(i!=null&&a!=null)return i.reset(a),()=>{i.pause()}},[i,a]);let o=we(),s=Ee(),c=ud(px(fx),`@react-aria/toast`),[l,u]=(0,v.useState)(!1);return L(()=>{u(!0)},[]),{toastProps:{...V(e,{labelable:!0}),role:`alertdialog`,"aria-modal":`false`,"aria-labelledby":e[`aria-labelledby`]||o,"aria-describedby":e[`aria-describedby`]||s,tabIndex:0},contentProps:{role:`alert`,"aria-atomic":`true`,"aria-hidden":l?void 0:`true`},titleProps:{id:o},descriptionProps:{id:s},closeButtonProps:{"aria-label":c.format(`close`),onPress:()=>t.close(r)}}}var hx=1,gx=Symbol.for(`react-aria-landmark-manager`);function _x(e){return document.addEventListener(`react-aria-landmark-manager-change`,e),()=>document.removeEventListener(`react-aria-landmark-manager-change`,e)}function vx(){if(typeof document>`u`)return null;let e=document[gx];return e&&e.version>=hx?e:(document[gx]=new bx,document.dispatchEvent(new CustomEvent(`react-aria-landmark-manager-change`)),document[gx])}function yx(){return(0,Hd.useSyncExternalStore)(_x,vx,vx)}var bx=class{constructor(){this.landmarks=[],this.isListening=!1,this.refCount=0,this.version=hx,this.f6Handler=this.f6Handler.bind(this),this.focusinHandler=this.focusinHandler.bind(this),this.focusoutHandler=this.focusoutHandler.bind(this)}setupIfNeeded(){this.isListening||=(document.addEventListener(`keydown`,this.f6Handler,{capture:!0}),document.addEventListener(`focusin`,this.focusinHandler,{capture:!0}),document.addEventListener(`focusout`,this.focusoutHandler,{capture:!0}),!0)}teardownIfNeeded(){!this.isListening||this.landmarks.length>0||this.refCount>0||(document.removeEventListener(`keydown`,this.f6Handler,{capture:!0}),document.removeEventListener(`focusin`,this.focusinHandler,{capture:!0}),document.removeEventListener(`focusout`,this.focusoutHandler,{capture:!0}),this.isListening=!1)}focusLandmark(e,t){this.landmarks.find(t=>t.ref.current===e)?.focus?.(t)}getLandmarksByRole(e){return new Set(this.landmarks.filter(t=>t.role===e))}getLandmarkByRole(e){return this.landmarks.find(t=>t.role===e)}addLandmark(e){if(this.setupIfNeeded(),this.landmarks.find(t=>t.ref===e.ref)||!e.ref.current)return;if(this.landmarks.filter(e=>e.role===`main`).length,this.landmarks.length===0){this.landmarks=[e],this.checkLabels(e.role);return}let t=0,n=this.landmarks.length-1;for(;t<=n;){let r=Math.floor((t+n)/2),i=e.ref.current.compareDocumentPosition(this.landmarks[r].ref.current);i&Node.DOCUMENT_POSITION_PRECEDING||i&Node.DOCUMENT_POSITION_CONTAINS?t=r+1:n=r-1}this.landmarks.splice(t,0,e),this.checkLabels(e.role)}updateLandmark(e){let t=this.landmarks.findIndex(t=>t.ref===e.ref);t>=0&&(this.landmarks[t]={...this.landmarks[t],...e},this.checkLabels(this.landmarks[t].role))}removeLandmark(e){this.landmarks=this.landmarks.filter(t=>t.ref!==e),this.teardownIfNeeded()}checkLabels(e){let t=this.getLandmarksByRole(e);t.size>1&&[...t].filter(e=>!e.label).length}closestLandmark(e){let t=new Map(this.landmarks.map(e=>[e.ref.current,e])),n=e;for(;n&&!t.has(n)&&n!==document.body&&n.parentElement;)n=n.parentElement;return t.get(n)}getNextLandmark(e,{backward:t}){let n=this.closestLandmark(e),r=t?this.landmarks.length-1:0;n&&(r=this.landmarks.indexOf(n)+(t?-1:1));let i=()=>{if(r<0){if(!e.dispatchEvent(new CustomEvent(`react-aria-landmark-navigation`,{detail:{direction:`backward`},bubbles:!0,cancelable:!0})))return!0;r=this.landmarks.length-1}else if(r>=this.landmarks.length){if(!e.dispatchEvent(new CustomEvent(`react-aria-landmark-navigation`,{detail:{direction:`forward`},bubbles:!0,cancelable:!0})))return!0;r=0}return r<0||r>=this.landmarks.length};if(i())return;let a=r;for(;this.landmarks[r].ref.current?.closest(`[aria-hidden=true]`);){if(r+=t?-1:1,i())return;if(r===a)break}return this.landmarks[r]}f6Handler(e){e.key===`F6`&&(e.altKey?this.focusMain():this.navigate(z(e),e.shiftKey))&&(e.preventDefault(),e.stopPropagation())}focusMain(){let e=this.getLandmarkByRole(`main`);return e&&e.ref.current&&e.ref.current.isConnected?(this.focusLandmark(e.ref.current,`forward`),!0):!1}navigate(e,t){let n=this.getNextLandmark(e,{backward:t});if(!n)return!1;if(n.lastFocused){let e=n.lastFocused;if(Re(document.body,e))return e.focus(),!0}return n.ref.current&&n.ref.current.isConnected?(this.focusLandmark(n.ref.current,t?`backward`:`forward`),!0):!1}focusinHandler(e){let t=this.closestLandmark(z(e));t&&t.ref.current!==z(e)&&this.updateLandmark({ref:t.ref,lastFocused:z(e)});let n=e.relatedTarget;if(n){let e=this.closestLandmark(n);e&&e.ref.current===n&&e.blur()}}focusoutHandler(e){let t=z(e),n=e.relatedTarget;if(!n||n===document){let e=this.closestLandmark(t);e&&e.ref.current===t&&e.blur()}}createLandmarkController(){let e=this;return e.refCount++,e.setupIfNeeded(),{navigate(t,n){let r=n?.from||document.activeElement;return e.navigate(r,t===`backward`)},focusNext(t){let n=t?.from||document.activeElement;return e.navigate(n,!1)},focusPrevious(t){let n=t?.from||document.activeElement;return e.navigate(n,!0)},focusMain(){return e.focusMain()},dispose(){e&&=(e.refCount--,e.teardownIfNeeded(),null)}}}registerLandmark(e){return this.landmarks.find(t=>t.ref===e.ref)?this.updateLandmark(e):this.addLandmark(e),()=>this.removeLandmark(e.ref)}};function xx(e,t){let{role:n,"aria-label":r,"aria-labelledby":i,focus:a}=e,o=yx(),s=r||i,[c,l]=(0,v.useState)(!1),u=(0,v.useCallback)(()=>{l(!0)},[l]),d=(0,v.useCallback)(()=>{l(!1)},[l]);return L(()=>{if(o)return o.registerLandmark({ref:t,label:s,role:n,focus:a||u,blur:d})},[o,s,t,n,a,u,d]),(0,v.useEffect)(()=>{c&&t.current?.focus()},[c,t]),{landmarkProps:{role:n,tabIndex:c?-1:void 0,"aria-label":r,"aria-labelledby":i}}}function Sx(e){return e&&e.__esModule?e.default:e}function Cx(e,t,n){let r=ud(Sx(fx),`@react-aria/toast`),{landmarkProps:i}=xx({role:`region`,"aria-label":e[`aria-label`]||r.format(`notifications`,{count:t.visibleToasts.length})},n),a=(0,v.useRef)(!1),o=(0,v.useRef)(!1),s=(0,v.useCallback)(()=>{a.current||o.current?t.pauseAll():t.resumeAll()},[t]),{hoverProps:c}=uc({onHoverStart:()=>{a.current=!0,s()},onHoverEnd:()=>{a.current=!1,s()}}),l=(0,v.useRef)([]),u=(0,v.useRef)(t.visibleToasts),d=(0,v.useRef)(null);L(()=>{if(d.current===-1||t.visibleToasts.length===0||!n.current){l.current=[],u.current=t.visibleToasts;return}if(l.current=[...n.current.querySelectorAll(`[role="alertdialog"]`)],u.current.length===t.visibleToasts.length&&t.visibleToasts.every((e,t)=>e.key===u.current[t].key)){u.current=t.visibleToasts;return}let e=u.current.map((e,n)=>({...e,i:n,isRemoved:!t.visibleToasts.some(t=>e.key===t.key)})),r=e.findIndex(e=>e.i===d.current&&e.isRemoved);if(r>-1){if(us()===`pointer`&&f.current?.isConnected)P(f.current);else{let t=0,n,i;for(;t<=r;)e[t].isRemoved||(i=Math.max(0,t-1)),t++;for(;t<e.length;){if(!e[t].isRemoved){n=t-1;break}t++}i===void 0&&n===void 0&&(i=0),i>=0&&i<l.current.length?P(l.current[i]):n>=0&&n<l.current.length&&P(l.current[n])}}u.current=t.visibleToasts},[t.visibleToasts,n]);let f=(0,v.useRef)(null),{focusWithinProps:p}=rc({onFocusWithin:e=>{o.current=!0,f.current=e.relatedTarget,s()},onBlurWithin:()=>{o.current=!1,f.current=null,s()}});return(0,v.useEffect)(()=>{t.visibleToasts.length===0&&f.current?.isConnected&&(us()===`pointer`?P(f.current):f.current.focus(),f.current=null)},[n,t.visibleToasts.length]),(0,v.useEffect)(()=>()=>{f.current?.isConnected&&(us()===`pointer`?P(f.current):f.current.focus(),f.current=null)},[n]),{regionProps:B(i,c,p,{tabIndex:-1,"data-react-aria-top-layer":!0,onFocus:e=>{let t=z(e).closest(`[role="alertdialog"]`);d.current=l.current.findIndex(e=>e===t)},onBlur:()=>{d.current=-1}})}}function wx(e){let t=(0,v.useCallback)(t=>e.subscribe(t),[e]),n=(0,v.useCallback)(()=>e.visibleToasts,[e]);return{visibleToasts:(0,Hd.useSyncExternalStore)(t,n,n),add:(t,n)=>e.add(t,n),close:t=>e.close(t),pauseAll:()=>e.pauseAll(),resumeAll:()=>e.resumeAll()}}var Tx=class{constructor(e){this.queue=[],this.subscriptions=new Set,this.visibleToasts=[],this.maxVisibleToasts=e?.maxVisibleToasts??1/0,this.wrapUpdate=e?.wrapUpdate}runWithWrapUpdate(e,t){this.wrapUpdate?this.wrapUpdate(e,t):e()}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}add(e,t={}){let n=`_`+Math.random().toString(36).slice(2),r={...t,content:e,key:n,timer:t.timeout?new Ex(()=>this.close(n),t.timeout):void 0};return this.queue.unshift(r),this.updateVisibleToasts(`add`),n}close(e){let t=this.queue.findIndex(t=>t.key===e);t>=0&&(this.queue[t].onClose?.(),this.queue.splice(t,1)),this.updateVisibleToasts(`remove`)}updateVisibleToasts(e){this.visibleToasts=this.queue.slice(0,this.maxVisibleToasts),this.runWithWrapUpdate(()=>{for(let e of this.subscriptions)e()},e)}pauseAll(){for(let e of this.visibleToasts)e.timer&&e.timer.pause()}resumeAll(){for(let e of this.visibleToasts)e.timer&&e.timer.resume()}clear(){this.queue=[],this.updateVisibleToasts(`clear`)}},Ex=class{constructor(e,t){this.startTime=null,this.remaining=t,this.callback=e}reset(e){this.remaining=e,this.resume()}pause(){this.timerId!=null&&(clearTimeout(this.timerId),this.timerId=null,this.remaining-=Date.now()-this.startTime)}resume(){this.remaining<=0||(this.startTime=Date.now(),this.timerId=setTimeout(()=>{this.timerId=null,this.remaining=0,this.callback()},this.remaining))}},Dx=(0,v.createContext)(null),Ox=(0,v.forwardRef)(function(e,t){let n=ve(),r=wx(e.queue),i=st(t),{regionProps:a}=Cx(e,r,i),{focusProps:o,isFocused:s,isFocusVisible:c}=ic(),{hoverProps:l,isHovered:u}=uc({}),d=G({...e,children:void 0,defaultClassName:`react-aria-ToastRegion`,values:{visibleToasts:r.visibleToasts,isHovered:u,isFocused:s,isFocusVisible:c}}),{direction:f}=Do(),p,{getContainer:m}=yd();n||(p=document.body,m&&(p=m()));let h=V(e,{global:!0}),g=v.createElement(Dx.Provider,{value:r},v.createElement(K.div,{...B(h,d,a,o,l),dir:f,ref:i,"data-hovered":u||void 0,"data-focused":s||void 0,"data-focus-visible":c||void 0},typeof e.children==`function`?v.createElement(kx,{...e,render:void 0,className:void 0,style:{display:`contents`}},e.children):e.children));return r.visibleToasts.length>0&&p?(0,Ft.createPortal)(g,p):null}),kx=(0,v.forwardRef)(function(e,t){let n=(0,v.useContext)(Dx),{hoverProps:r,isHovered:i}=uc({}),a=G({...e,children:void 0,defaultClassName:`react-aria-ToastList`,values:{visibleToasts:n.visibleToasts,isFocused:!1,isFocusVisible:!1,isHovered:i}});return v.createElement(K.ol,{...r,...a,ref:t},n.visibleToasts.map(t=>v.createElement(`li`,{key:t.key,style:{display:`contents`}},e.children({toast:t}))))}),Ax=(0,v.forwardRef)(function(e,t){let n=(0,v.useContext)(Dx),r=st(t),{toastProps:i,contentProps:a,titleProps:o,descriptionProps:s,closeButtonProps:c}=mx(e,n,r),{focusProps:l,isFocused:u,isFocusVisible:d}=ic(),f=G({...e,defaultClassName:`react-aria-Toast`,values:{toast:e.toast,isFocused:u,isFocusVisible:d}}),p=V(e,{global:!0});return v.createElement(K.div,{...B(p,f,i,l),ref:r,"data-focused":u||void 0,"data-focus-visible":d||void 0},v.createElement(to,{values:[[jx,a],[hp,{slots:{[eo]:{},title:o,description:s}}],[dc,{slots:{[eo]:{},close:c}}]]},f.children))}),jx=(0,v.createContext)({}),Mx=(0,v.forwardRef)(function(e,t){return[e,t]=io(e,t,jx),v.createElement(K.div,{render:e.render,className:`react-aria-ToastContent`,...e,ref:t},e.children)}),Nx=v.createContext(null);function Px(e){let{children:t}=e,n=(0,v.useContext)(Nx),[r,i]=(0,v.useState)(0),a=(0,v.useMemo)(()=>({parent:n,modalCount:r,addModal(){i(e=>e+1),n&&n.addModal()},removeModal(){i(e=>e-1),n&&n.removeModal()}}),[n,r]);return v.createElement(Nx.Provider,{value:a},t)}function Fx(){let e=(0,v.useContext)(Nx);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function Ix(e){let{modalProviderProps:t}=Fx();return v.createElement(`div`,{"data-overlay-container":!0,...e,...t})}function Lx(e){return v.createElement(Px,null,v.createElement(Ix,e))}function Rx(e){let t=ve(),{portalContainer:n=t?null:document.body,...r}=e,{getContainer:i}=yd();if(!e.portalContainer&&i&&(n=i()),v.useEffect(()=>{if(n?.closest(`[data-overlay-container]`))throw Error(`An OverlayContainer must not be inside another container. Please change the portalContainer prop.`)},[n]),!n)return null;let a=v.createElement(Lx,r);return Ft.createPortal(a,n)}function zx(e,t){let n=V(e,{labelable:!0}),{hoverProps:r}=uc({onHoverStart:()=>t?.open(!0),onHoverEnd:()=>t?.close()});return{tooltipProps:B(n,r,{role:`tooltip`})}}function Bx(e,t,n){let{isDisabled:r,trigger:i,shouldCloseOnPress:a=!0}=e,o=we(),s=(0,v.useRef)(!1),c=(0,v.useRef)(!1),l=()=>{(s.current||c.current)&&t.open(c.current)},u=e=>{!s.current&&!c.current&&t.close(e)};(0,v.useEffect)(()=>{let e=e=>{n&&n.current&&e.key===`Escape`&&(e.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener(`keydown`,e,!0),()=>{document.removeEventListener(`keydown`,e,!0)}},[n,t]);let d=()=>{i!==`focus`&&(us()===`pointer`?s.current=!0:s.current=!1,l())},f=()=>{i!==`focus`&&(c.current=!1,s.current=!1,u())},p=()=>{a&&(c.current=!1,s.current=!1,u(!0))},m=()=>{ls()&&(c.current=!0,l())},h=()=>{c.current=!1,s.current=!1,u(!0)},{hoverProps:g}=uc({isDisabled:r,onHoverStart:d,onHoverEnd:f}),{focusableProps:_}=Is({isDisabled:r,onFocus:m,onBlur:h},n);return{triggerProps:{"aria-describedby":t.isOpen?o:void 0,...B(_,g,{onPointerDown:p,onKeyDown:p}),tabIndex:void 0},tooltipProps:{id:o}}}var Vx=(0,v.createContext)(null),Hx=(0,v.createContext)(null);function Ux(e){let t=_y(e),n=(0,v.useRef)(null),{triggerProps:r,tooltipProps:i}=Bx(e,t,n);return v.createElement(to,{values:[[Vx,t],[Hx,{...i,triggerRef:n}]]},v.createElement(Fs,{...r,ref:n},e.children))}var Wx=(0,v.forwardRef)(function({UNSTABLE_portalContainer:e,...t},n){[t,n]=io(t,n,Hx);let r=(0,v.useContext)(Vx),i=_y(t),a=t.isOpen!=null||t.defaultOpen!=null||!r?i:r,o=Lt(n,a.isOpen),s=t.isExiting||!a.shouldSkipAnimation&&o||!1;return!a.isOpen&&!s?null:v.createElement(Rx,{portalContainer:e},v.createElement(Gx,{...t,tooltipRef:n,isExiting:s}))});function Gx(e){let t=(0,v.useContext)(Vx),n=(0,v.useRef)(null),{overlayProps:r,arrowProps:i,placement:a,triggerAnchorPoint:o}=Dl({placement:e.placement||`top`,targetRef:e.triggerRef,overlayRef:e.tooltipRef,arrowRef:n,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,containerPadding:e.containerPadding,onClose:()=>t.close(!0)}),s=It(e.tooltipRef,!!a),c=e.isEntering||!t.shouldSkipAnimation&&s||!1,l=G({...e,defaultClassName:`react-aria-Tooltip`,values:{placement:a,isEntering:c,isExiting:e.isExiting,state:t}});e=B(e,r);let{tooltipProps:u}=zx(e,t),d=V(e,{global:!0});return v.createElement(K.div,{...B(d,l,u),ref:e.tooltipRef,style:{...r.style,"--trigger-anchor-point":o?`${o.x}px ${o.y}px`:void 0,...l.style},"data-placement":a??void 0,"data-entering":c||void 0,"data-exiting":e.isExiting||void 0},v.createElement(Jc.Provider,{value:{...i,placement:a,ref:n}},l.children))}var Kx={blue:`\x1B[34m`,green:`\x1B[32m`,magenta:`\x1B[35m`,red:`\x1B[31m`,reset:`\x1B[0m`,yellow:`\x1B[33m`},qx={debug:Kx.magenta,error:Kx.red,info:Kx.blue,success:Kx.green,warn:Kx.yellow},Jx={debug:`🔍`,error:`❌`,info:`ℹ️`,success:`✅`,warn:`⚠️`},Yx=new class{constructor(e={}){this.enabled=e.enabled??!0,this.prefix=e.prefix??`HeroUI`}formatMessage(e,t){let n=qx[e],r=Jx[e];return`${n}[${this.prefix}]${Kx.reset} ${r} ${t}`}log(e,t,...n){if(!this.enabled)return;let r=this.formatMessage(e,t);switch(e){case`error`:console.error(r,...n);break;case`warn`:console.warn(r,...n);break;default:console.log(r,...n)}}info(e,...t){this.log(`info`,e,...t)}success(e,...t){this.log(`success`,e,...t)}warn(e,...t){this.log(`warn`,e,...t)}error(e,...t){this.log(`error`,e,...t)}debug(e,...t){this.log(`debug`,e,...t)}divider(e=`=`,t=80){this.enabled&&console.log(e.repeat(t))}newline(){this.enabled&&console.log()}}({prefix:`HeroUI`}),Xx,Zx=typeof process<`u`&&!1,Qx=e=>{Zx&&(Xx??=new Set,Xx.has(e)&&Yx.warn(`Duplicate collection slot "${e}". Use a unique, namespaced name (e.g. "tabs.listContainer", "menu.popover").`),Xx.add(e));let t=`$$heroui.collection.${e}`,n=(0,v.createContext)(void 0),r=(e,n)=>v.Children.map(e,e=>(0,v.isValidElement)(e)?v.cloneElement(e,{[t]:n}):e),i=e=>{let{[t]:n,...r}=e;return[n,r]},a=e=>{let[t,r]=i(e),a=(0,v.useContext)(n);return[t??a,r]},o=({children:e,...t})=>(0,H.jsx)(n.Provider,{value:t,children:r(e,t)});return o.displayName=`HeroUI.CollectionSlot(${e})`,{key:t,inject:r,consume:i,useSlot:a,Injector:o,withSlot:(t,n)=>{let r=(0,v.forwardRef)(function(r,i){let[o,s]=a(r),{children:c,...l}=s;if(!o)return(0,H.jsx)(t,{...l,ref:i,children:c});if(n)return n({...l,children:c},o,i);let{className:u,render:d,...f}=o;return(0,H.jsx)(t,{...l,ref:i,children:d?d({children:c,className:u,...f}):(0,H.jsx)(`div`,{className:u,"data-slot":`${e}-container`,...f,children:c})})});return r.displayName=`HeroUI.withCollectionSlot(${t.displayName||t.name||e})`,r},Context:n}},$x=(0,v.createContext)({});Qx(`combo-box.inputGroup`);var eS=2**53-1,tS=.05,nS=4e3,rS=[`altKey`,`KeyT`],iS=({children:e,className:t,...n})=>Zg(`description`)?(0,H.jsx)(gp,{className:Ma({className:t}),"data-slot":`description`,slot:`description`,...n,children:e}):null,aS=Object.assign(iS,{Root:iS}),oS=(e,t)=>e.closest(`[data-slot="drawer-dialog"]`)===t,sS={variant:`default`},cS=8,lS=.3,uS=.5;function dS(e,t){let n=(0,v.use)(Um),r=(0,v.useRef)(null),i=(0,v.useRef)(!1),a=(0,v.useRef)(!1),o=(0,v.useRef)(0),s=(0,v.useRef)(0),c=(0,v.useRef)(0),l=(0,v.useRef)(0),u=(0,v.useRef)(0),d=e===`top`||e===`bottom`,f=(0,v.useCallback)(e=>d?e.clientY:e.clientX,[d]),p=(0,v.useCallback)(t=>{switch(e){case`bottom`:return Math.max(0,t);case`top`:return Math.min(0,t);case`right`:return Math.max(0,t);case`left`:return Math.min(0,t);default:return t}},[e]),m=(0,v.useCallback)(e=>{if(!t||e.button!==0)return;let n=e.target,r=e.currentTarget;oS(n,r)&&(n.closest(`input, textarea, button, [role='button'], select, a, [data-slot='drawer-body']`)||(i.current=!0,a.current=!1,o.current=f(e),u.current=o.current,l.current=Date.now(),s.current=0,c.current=0))},[f,t]),h=(0,v.useCallback)(e=>{if(!i.current||!r.current)return;let t=f(e),n=t-o.current,m=p(n);if(!a.current){if(Math.abs(n)<cS)return;a.current=!0,r.current.style.transition=`none`,r.current.setPointerCapture(e.pointerId)}s.current=m;let h=Date.now(),g=h-l.current;g>0&&(c.current=(t-u.current)/g,l.current=h,u.current=t);let _=d?`Y`:`X`;r.current.style.transform=`translate${_}(${m}px)`},[f,p,d]),g=(0,v.useCallback)(e=>{if(!i.current)return;i.current=!1;let t=r.current;if(!t||!a.current){a.current=!1;return}a.current=!1;try{t.releasePointerCapture(e.pointerId)}catch{}let o=d?t.offsetHeight:t.offsetWidth,l=Math.abs(s.current),u=Math.abs(c.current);(l>o*lS||u>uS)&&n?n.close():(t.style.transition=`transform 300ms cubic-bezier(0.32, 0.72, 0, 1)`,t.style.transform=``,t.addEventListener(`transitionend`,()=>{t.style.transition=``},{once:!0})),s.current=0,c.current=0},[d,n]);return{dialogRef:r,dragHandlers:t?{onPointerDown:m,onPointerMove:h,onPointerUp:g}:{}}}var fS=(0,v.createContext)({}),pS=({children:e,state:t,...n})=>{let r=(0,v.useMemo)(()=>({slots:Na(),placement:void 0,isDismissable:!0}),[]),i=(0,v.useMemo)(()=>t?{isOpen:t.isOpen,onOpenChange:t.setOpen}:{},[t]);return(0,H.jsx)(fS,{value:r,children:(0,H.jsx)(Wm,{"data-slot":`drawer-root`,...B(n,i),children:e})})};pS.displayName=`HeroUI.Drawer`;var mS=({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(fS);return(0,H.jsx)(fc,{className:J(t,r?.trigger()),"data-slot":`drawer-trigger`,...n,children:e})};mS.displayName=`HeroUI.Drawer.Trigger`;var hS=({children:e,className:t,isDismissable:n=!0,variant:r,...i})=>{let{slots:a}=(0,v.use)(fS),o=(0,v.useMemo)(()=>Na({variant:r}),[r]),s=(0,v.useMemo)(()=>({slots:{...a,...o},isDismissable:n}),[a,o,n]);return(0,H.jsx)(Zm,{className:J(t,o?.backdrop()),"data-slot":`drawer-backdrop`,isDismissable:n,...i,children:t=>(0,H.jsx)(fS,{value:s,children:typeof e==`function`?e(t):e})})};hS.displayName=`HeroUI.Drawer.Backdrop`;var gS=({children:e,className:t,placement:n=`bottom`,...r})=>{let{isDismissable:i,slots:a}=(0,v.use)(fS),o=(0,v.useMemo)(()=>Na({placement:n}),[n]),s=(0,v.useMemo)(()=>({placement:n,isDismissable:i,slots:{...a,...o}}),[a,n,i,o]);return(0,H.jsx)(Ym,{className:J(t,o?.content()),"data-placement":n,"data-slot":`drawer-content`,...r,children:t=>(0,H.jsx)(fS,{value:s,children:typeof e==`function`?e(t):e})})};gS.displayName=`HeroUI.Drawer.Content`;var _S=({children:e,className:t,...n})=>{let{isDismissable:r=!0,placement:i,slots:a}=(0,v.use)(fS),{dialogRef:o,dragHandlers:s}=dS(i,r);return(0,H.jsx)(Hc,{value:sS,children:(0,H.jsx)(Gm,{ref:o,className:Y(a?.dialog,t),"data-placement":i,"data-slot":`drawer-dialog`,style:r?{touchAction:`none`}:void 0,...s,...n,children:e})})};_S.displayName=`HeroUI.Drawer.Dialog`;var vS=({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(fS);return(0,H.jsx)(on.div,{className:Y(r?.header,t),"data-slot":`drawer-header`,...n,children:e})};vS.displayName=`HeroUI.Drawer.Header`;var yS=({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(fS);return(0,H.jsx)(on.div,{className:Y(r?.body,t),"data-slot":`drawer-body`,style:{touchAction:`pan-y`},...n,children:e})};yS.displayName=`HeroUI.Drawer.Body`;var bS=({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(fS);return(0,H.jsx)(on.div,{className:Y(r?.footer,t),"data-slot":`drawer-footer`,...n,children:e})};bS.displayName=`HeroUI.Drawer.Footer`;var xS=({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(fS);return(0,H.jsx)(Oc,{className:Y(r?.heading,t),"data-slot":`drawer-heading`,slot:`title`,...n,children:e})};xS.displayName=`HeroUI.Drawer.Heading`;var SS=({className:e,...t})=>{let{slots:n}=(0,v.use)(fS);return(0,H.jsx)(on.div,{"aria-hidden":`true`,className:Y(n?.handle,e),"data-slot":`drawer-handle`,...t,children:(0,H.jsx)(`div`,{"data-slot":`drawer-handle-bar`})})};SS.displayName=`HeroUI.Drawer.Handle`;var CS=({className:e,...t})=>{let{slots:n}=(0,v.use)(fS);return(0,H.jsx)(nh,{className:J(e,n?.closeTrigger()),"data-slot":`drawer-close-trigger`,slot:`close`,...t})};CS.displayName=`HeroUI.Drawer.CloseTrigger`;var wS=Object.assign(pS,{Root:pS,Trigger:mS,Backdrop:hS,Content:gS,Dialog:_S,Header:vS,Heading:xS,Body:yS,Footer:bS,Handle:SS,CloseTrigger:CS}),TS=({children:e,className:t,...n})=>(0,H.jsx)(on.div,{className:Pa({className:t}),"data-slot":`empty-state`,...n,children:e||`No results found`}),ES=Object.assign(TS,{Root:TS}),DS=({children:e,className:t,...n})=>(0,H.jsx)(sh,{"data-visible":!0,className:J(t,Fa()),"data-slot":`field-error`,...n,children:t=>typeof e==`function`?e(t):e}),OS=Object.assign(DS,{Root:DS}),kS=({...e})=>(0,H.jsx)(Sh,{...e}),AS=Object.assign(kS,{Root:kS}),jS=(0,v.createContext)({}),MS=({children:e,className:t,fullWidth:n,variant:r,...i})=>{let a=v.useMemo(()=>Za({fullWidth:n}),[n]),o=v.useMemo(()=>({variant:r}),[r]);return(0,H.jsx)(jb,{"data-slot":`textfield`,...i,className:J(t,a),children:t=>(0,H.jsx)(jS,{value:o,children:(0,H.jsx)(H.Fragment,{children:typeof e==`function`?e(t):e})})})},NS=({className:e,fullWidth:t,variant:n,...r})=>{let i=(0,v.use)(jS),a=(0,v.use)($x),o=n??i.variant??a.variant;return(0,H.jsx)(Hv,{className:J(e,Ia({fullWidth:t,variant:o})),"data-slot":`input`,...r})},PS=Object.assign(NS,{Root:NS}),FS=({children:e,className:t,isDisabled:n,isInvalid:r,isRequired:i,...a})=>(0,H.jsx)(ho,{className:La({isRequired:i,isDisabled:n,isInvalid:r,className:t}),"data-slot":`label`,...a,children:e}),IS=Object.assign(FS,{Root:FS}),LS=(0,v.createContext)({}),RS=({children:e,className:t,variant:n,...r})=>{let i=v.useMemo(()=>Ra({variant:n}),[n]);return(0,H.jsx)(Eg,{className:J(t,i.item()),"data-slot":`list-box-item`,...r,children:t=>(0,H.jsx)(LS,{value:{slots:i,state:t},children:typeof e==`function`?e(t):e})})},zS=({children:e,className:t,...n})=>{let{slots:r,state:i}=(0,v.use)(LS),a=i?.isSelected,o=typeof e==`function`?e(i??{}):e||(0,H.jsx)(`svg`,{"aria-hidden":`true`,"data-slot":`list-box-item-indicator--checkmark`,fill:`none`,role:`presentation`,stroke:`currentColor`,strokeDasharray:22,strokeDashoffset:a?44:66,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,viewBox:`0 0 17 18`,children:(0,H.jsx)(`polyline`,{points:`1 9 7 14 15 4`})});return(0,H.jsx)(on.span,{"aria-hidden":`true`,className:Y(r?.indicator,t),"data-slot":`list-box-item-indicator`,"data-visible":a||void 0,...n,children:o})},BS=Object.assign(RS,{Root:RS,Indicator:zS}),VS=({children:e,className:t,...n})=>{let r=v.useMemo(()=>za({class:typeof t==`string`?t:void 0}),[t]);return(0,H.jsx)(Tg,{className:r,...n,children:e})};function HS({className:e,variant:t,...n}){let r=v.useMemo(()=>Ba({variant:t}),[t]);return(0,H.jsx)(xg,{className:J(e,r),"data-slot":`list-box`,...n})}var US=Object.assign(HS,{Root:HS,Item:BS,ItemIndicator:zS,Section:VS}),WS={variant:`default`},GS=(0,v.createContext)({}),KS=({children:e,state:t,...n})=>{let r=(0,v.useMemo)(()=>({slots:Va(),placement:void 0}),[]),i=(0,v.useMemo)(()=>t?{isOpen:t.isOpen,onOpenChange:t.setOpen}:{},[t]);return(0,H.jsx)(GS,{value:r,children:(0,H.jsx)(Wm,{"data-slot":`modal-root`,...B(n,i),children:e})})},qS=Object.assign(KS,{Root:KS,Trigger:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(GS);return(0,H.jsx)(eh,{children:(0,H.jsx)(on.div,{className:Y(r?.trigger,t),"data-slot":`modal-trigger`,role:`button`,...n,children:e})})},Backdrop:({children:e,className:t,isDismissable:n=!0,onClick:r,variant:i,...a})=>{let{slots:o}=(0,v.use)(GS),s=(0,v.useMemo)(()=>Va({variant:i}),[i]),c=(0,v.useMemo)(()=>({slots:{...o,...s}}),[o,s]);return(0,H.jsx)(Zm,{className:J(t,s?.backdrop()),"data-slot":`modal-backdrop`,isDismissable:n,onClick:e=>{e.stopPropagation(),r?.(e)},...a,children:t=>(0,H.jsxs)(GS,{value:c,children:[typeof e==`function`?e(t):e,` `]})})},Container:({children:e,className:t,placement:n=`auto`,scroll:r,size:i,...a})=>{let{slots:o}=(0,v.use)(GS),s=(0,v.useMemo)(()=>Va({scroll:r,size:i}),[r,i]),c=(0,v.useMemo)(()=>({placement:n,slots:{...o,...s}}),[o,n,s]);return(0,H.jsx)(Ym,{className:J(t,s?.container()),"data-placement":n,"data-slot":`modal-container`,...a,children:t=>(0,H.jsx)(GS,{value:c,children:typeof e==`function`?e(t):e})})},Dialog:({children:e,className:t,...n})=>{let{placement:r,slots:i}=(0,v.use)(GS);return(0,H.jsx)(Hc,{value:WS,children:(0,H.jsx)(Gm,{className:Y(i?.dialog,t),"data-placement":r,"data-slot":`modal-dialog`,...n,children:e})})},Header:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(GS);return(0,H.jsx)(on.div,{className:Y(r?.header,t),"data-slot":`modal-header`,...n,children:e})},Icon:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(GS);return(0,H.jsx)(on.div,{className:Y(r?.icon,t),"data-slot":`modal-icon`,...n,children:e})},Heading:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(GS);return(0,H.jsx)(Oc,{className:Y(r?.heading,t),"data-slot":`modal-heading`,slot:`title`,...n,children:e})},Body:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(GS);return(0,H.jsx)(on.div,{className:Y(r?.body,t),"data-slot":`modal-body`,...n,children:e})},Footer:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(GS);return(0,H.jsx)(on.div,{className:Y(r?.footer,t),"data-slot":`modal-footer`,...n,children:e})},CloseTrigger:({className:e,...t})=>{let{slots:n}=(0,v.use)(GS);return(0,H.jsx)(nh,{className:J(e,n?.closeTrigger()),"data-slot":`modal-close-trigger`,slot:`close`,...t})}}),JS=(0,v.createContext)({}),YS={variant:`default`},XS=({children:e,...t})=>{let n=v.useMemo(()=>Ha(),[]),r=v.useMemo(()=>({slots:n}),[n]);return(0,H.jsx)(JS,{value:r,children:(0,H.jsx)(Wm,{"data-slot":`popover-root`,...t,children:e})})},ZS=Object.assign(XS,{Root:XS,Trigger:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(JS);return(0,H.jsx)(eh,{children:(0,H.jsx)(on.div,{className:Y(r?.trigger,t),"data-slot":`popover-trigger`,role:`button`,...n,children:e})})},Dialog:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(JS);return(0,H.jsx)(Gm,{"data-slot":`popover-dialog`,...n,className:Y(r?.dialog,t),children:e})},Arrow:({children:e,className:t,...n})=>{let r=(0,H.jsx)(`svg`,{"data-slot":`popover-overlay-arrow`,fill:`none`,height:`12`,viewBox:`0 0 12 12`,width:`12`,xmlns:`http://www.w3.org/2000/svg`,children:(0,H.jsx)(`path`,{d:`M0 0C5.48483 8 6.5 8 12 0Z`})}),i=v.isValidElement(e)?v.cloneElement(e,{"data-slot":`popover-overlay-arrow`}):r;return(0,H.jsx)(Yc,{"data-slot":`popover-overlay-arrow-group`,...n,className:t,children:i})},Content:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(JS),i=v.useMemo(()=>({slots:r}),[r]);return(0,H.jsx)(JS,{value:i,children:(0,H.jsx)(Hc,{value:YS,children:(0,H.jsx)(Ed,{...n,className:J(t,r?.base()),children:e})})})},Heading:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(JS);return(0,H.jsx)(Oc,{slot:`title`,...n,className:Y(r?.heading,t),children:e})}}),QS=globalThis?.document?v.useLayoutEffect:v.useEffect,$S=e=>{let{containerRef:t,isEnabled:n,offset:r,onVisibilityChange:i,orientation:a,visibility:o}=e,s=(0,v.useRef)(i);(0,v.useEffect)(()=>{s.current=i},[i]);let c=(0,v.useRef)(null),l=(0,v.useRef)(null),u=(0,v.useCallback)(()=>{let e=t.current;if(!e)return;let n=a===`vertical`,i=n?e.scrollTop:Math.abs(e.scrollLeft),o=n?e.scrollHeight:e.scrollWidth,u=n?e.clientHeight:e.clientWidth,d=i>r,f=i+u+r<o-1,p=c.current;p&&p.hasScrollBefore===d&&p.hasScrollAfter===f||(c.current={hasScrollBefore:d,hasScrollAfter:f},l.current!==null&&cancelAnimationFrame(l.current),l.current=requestAnimationFrame(()=>{l.current=null;let t=s.current;n?d&&f?(e.dataset.topBottomScroll=`true`,delete e.dataset.topScroll,delete e.dataset.bottomScroll,t?.(`both`)):(e.dataset.topScroll=String(d),e.dataset.bottomScroll=String(f),delete e.dataset.topBottomScroll,t&&t(d?`top`:f?`bottom`:`none`)):d&&f?(e.dataset.leftRightScroll=`true`,delete e.dataset.leftScroll,delete e.dataset.rightScroll,t?.(`both`)):(e.dataset.leftScroll=String(d),e.dataset.rightScroll=String(f),delete e.dataset.leftRightScroll,t&&t(d?`left`:f?`right`:`none`))}))},[t,a,r]);(0,v.useEffect)(()=>{let e=t.current;if(!e||!n||o!==`auto`)return;u(),e.addEventListener(`scroll`,u,{passive:!0});let r=new ResizeObserver(u);r.observe(e);let i=new MutationObserver(u);return i.observe(e,{attributeFilter:[`class`,`style`],attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>{e.removeEventListener(`scroll`,u),r.disconnect(),i.disconnect(),l.current!==null&&(cancelAnimationFrame(l.current),l.current=null),c.current=null}},[t,o,n,u])},eC=({children:e,className:t,hideScrollBar:n=!1,isEnabled:r=!0,offset:i=0,onVisibilityChange:a,orientation:o=`vertical`,ref:s,size:c=40,style:l,variant:u=`fade`,visibility:d=`auto`,...f})=>{let p=(0,v.useRef)(null);$S({containerRef:p,isEnabled:r,offset:i,onVisibilityChange:a,orientation:o,visibility:d}),QS(()=>{let e=p.current;e&&d!==`auto`&&(delete e.dataset.topScroll,delete e.dataset.bottomScroll,delete e.dataset.topBottomScroll,delete e.dataset.leftScroll,delete e.dataset.rightScroll,delete e.dataset.leftRightScroll,d===`both`?e.dataset[o===`vertical`?`topBottomScroll`:`leftRightScroll`]=`true`:d!==`none`&&(e.dataset[`${d}Scroll`]=`true`))},[d,o]);let m=(0,v.useMemo)(()=>Ua({hideScrollBar:n,orientation:o,variant:u}),[o,n,u]),h={"--scroll-shadow-size":`${c}px`,"--scroll-shadow-offset":`${i}px`,...l},g=(0,v.useMemo)(()=>We(p,s),[p,s]);return(0,H.jsx)(`div`,{ref:g,className:m.base({className:t}),"data-orientation":o,"data-scroll-shadow-mode":r&&d===`auto`?`auto`:`manual`,"data-scroll-shadow-size":c,"data-slot":`scroll-shadow`,style:h,...f,children:e})};eC.displayName=`HeroUI.ScrollShadow`;var tC=Object.assign(eC,{Root:eC}),nC=(0,v.createContext)({}),rC=({children:e,className:t,fullWidth:n,variant:r,...i})=>{let a=v.useMemo(()=>Wa({fullWidth:n,variant:r}),[n,r]),o=v.useMemo(()=>({slots:a}),[a]);return(0,H.jsx)(nC,{value:o,children:(0,H.jsx)(ib,{"data-slot":`search-field`,...i,className:J(t,a?.base()),children:t=>(0,H.jsx)(H.Fragment,{children:typeof e==`function`?e(t):e})})})},iC=Object.assign(rC,{Root:rC,Group:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(nC);return(0,H.jsx)(ah,{className:J(t,r?.group()),"data-slot":`search-field-group`,...n,children:t=>(0,H.jsx)(H.Fragment,{children:typeof e==`function`?e(t):e})})},Input:({className:e,...t})=>{let{slots:n}=(0,v.use)(nC);return(0,H.jsx)(Hv,{className:J(e,n?.input()),"data-slot":`search-field-input`,...t})},SearchIcon:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(nC);return e&&v.isValidElement(e)?v.cloneElement(e,{...n,className:Y(r?.searchIcon,t),"data-slot":`search-field-search-icon`}):(0,H.jsx)(Vc,{className:Y(r?.searchIcon,t),"data-slot":`search-field-search-icon`,...n})},ClearButton:({className:e,...t})=>{let{slots:n}=(0,v.use)(nC);return(0,H.jsx)(nh,{className:J(e,n?.clearButton()),"data-slot":`search-field-clear-button`,slot:`clear`,...t})}}),aC=(0,v.createContext)({}),oC=(0,v.createContext)({}),sC=e=>(e?.selectionManager.selectedKeys.size??0)===0,cC=(e,t)=>{e?.selectionManager.setSelectedKeys(new Set),t?.()},lC=({children:e,className:t,fullWidth:n,isDisabled:r,onClear:i,variant:a,...o})=>{let s=v.useMemo(()=>Ga({fullWidth:n,variant:a}),[n,a]),c=v.useRef(0),l=v.useCallback(()=>(c.current+=1,()=>{--c.current}),[]),u=v.useCallback(()=>c.current>0,[]),d=v.useMemo(()=>({hasClearButton:u,isDisabled:r,onClear:i,registerClearButton:l,slots:s}),[u,r,i,l,s]);return(0,H.jsx)(Qg,{children:(0,H.jsx)(aC,{value:d,children:(0,H.jsx)(Gg,{"data-slot":`select`,...o,className:J(t,s?.base()),isDisabled:r,children:t=>(0,H.jsx)(H.Fragment,{children:typeof e==`function`?e(t):e})})})})},uC=Object.assign(lC,{Root:lC,Trigger:({children:e,className:t,onKeyDown:n,...r})=>{let{hasClearButton:i,onClear:a,slots:o}=(0,v.use)(aC),s=(0,v.use)(Wg),c=e=>{n?.(e);let t=e.key===`Backspace`||e.key===`Delete`,r=!!i?.()&&!sC(s);if(!t||!r||s?.isOpen){e.continuePropagation();return}e.preventDefault(),cC(s,a)};return(0,H.jsx)(fc,{className:J(t,o?.trigger()),"data-slot":`select-trigger`,...r,onKeyDown:c,children:t=>(0,H.jsx)(oC,{value:{isDisabled:t.isDisabled},children:typeof e==`function`?e(t):e})})},Value:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(aC);return(0,H.jsx)(Yg,{className:J(t,r?.value()),"data-slot":`select-value`,...n,children:e})},Indicator:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(aC),i=(0,v.use)(Wg);return e&&v.isValidElement(e)?v.cloneElement(e,{...n,className:Y(r?.indicator,t),"data-slot":`select-indicator`,"data-open":kc(i?.isOpen)}):(0,H.jsx)(Ac,{className:Y(r?.indicator,t),"data-open":kc(i?.isOpen),"data-slot":`select-default-indicator`,...n})},ClearButton:({children:e,className:t,onClick:n,onPointerDown:r,...i})=>{let{isDisabled:a,onClear:o,registerClearButton:s,slots:c}=(0,v.use)(aC),{isDisabled:l}=(0,v.use)(oC),u=(0,v.use)(Wg),d=l??a??!1,f=sC(u);v.useEffect(()=>s?.(),[s]);let p=e=>{e.stopPropagation(),r?.(e)},m=e=>{e.preventDefault(),e.stopPropagation(),!d&&!f&&cC(u,o),n?.(e)};return(0,H.jsx)(on.span,{"aria-hidden":!0,className:c?.clearButton({className:t}),"data-empty":kc(f),"data-slot":`select-clear-button`,...i,onClick:m,onPointerDown:p,children:e??(0,H.jsx)(Pc,{"data-slot":`select-clear-button-icon`})})},Popover:({children:e,className:t,placement:n=`bottom`,...r})=>{let{slots:i}=(0,v.use)(aC);return(0,H.jsx)(Hc,{value:{variant:`default`},children:(0,H.jsx)(Ed,{...r,className:J(t,i?.popover()),"data-slot":`select-popover`,placement:n,children:e})})}}),dC=new Map;function fC(e,t,n=!0){let r=ve();return v.useMemo(()=>{if(t!==void 0)return t;if(!r){if(n&&dC.has(e))return dC.get(e);try{let t=document.documentElement,r=getComputedStyle(t).getPropertyValue(e).trim()||void 0;return n&&dC.set(e,r),r}catch{return}}},[e,t,r,n])}var pC=(0,v.createContext)({}),mC=({children:e,className:t,orientation:n=`horizontal`,...r})=>{let i=v.useMemo(()=>Ka({}),[]);return(0,H.jsx)(ay,{"data-slot":`slider`,orientation:n,...r,className:J(t,i.base()),children:t=>(0,H.jsx)(pC,{value:{slots:i,state:t},children:typeof e==`function`?e(t):e})})},hC=Object.assign(mC,{Root:mC,Output:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(pC);return(0,H.jsx)(oy,{className:J(t,r?.output()),"data-slot":`slider-output`,...n,children:e?t=>(0,H.jsx)(H.Fragment,{children:typeof e==`function`?e(t):e}):({state:e})=>e.values.map((t,n)=>e.getThumbValueLabel(n)).join(` – `)})},Track:({children:e,className:t,...n})=>{let{slots:r,state:i}=(0,v.use)(pC),{getThumbPercent:a,values:o}=i?.state||{},s=o?.length&&o.length===1,[c,l]=[o?.length&&o.length>1?a?.(0):0,a?.(o?.length?o.length-1:0)].sort(),u=(l-c)*100;return(0,H.jsx)(sy,{className:J(t,r?.track()),"data-disabled":kc(i?.isDisabled),"data-slot":`slider-track`,...s?{"data-fill-start":kc(u>0),"data-fill-end":kc(u==100)}:{"data-fill-start":kc(c==0),"data-fill-end":kc(c*100+u==100)},...n,children:t=>(0,H.jsx)(H.Fragment,{children:typeof e==`function`?e(t):e})})},Fill:({className:e,style:t,...n})=>{let{slots:r,state:i}=(0,v.use)(pC),{getThumbPercent:a,orientation:o,values:s}=i?.state||{},[c,l]=[s?.length&&s.length>1?a?.(0):0,a?.(s?.length?s.length-1:0)].sort(),u=o===`vertical`;return(0,H.jsx)(on.div,{className:Y(r?.fill,e),"data-disabled":kc(i?.isDisabled),"data-slot":`slider-fill`,style:{...t,[u?`bottom`:`left`]:`${c*100}%`,...u?{height:`${(l-c)*100}%`}:{width:`${(l-c)*100}%`}},...n})},Thumb:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(pC);return(0,H.jsx)(cy,{className:J(t,r?.thumb()),"data-slot":`slider-thumb`,...n,children:t=>(0,H.jsx)(H.Fragment,{children:typeof e==`function`?e(t):e})})},Marks:({className:e,...t})=>{let{slots:n}=(0,v.use)(pC);return(0,H.jsx)(on.div,{className:Y(n?.marks,e),"data-slot":`slider-marks`,...t})}}),gC=({...e})=>{let t=(0,v.useId)();return(0,H.jsxs)(`svg`,{"data-slot":`spinner-icon`,viewBox:`0 0 24 24`,...e,children:[(0,H.jsxs)(`defs`,{children:[(0,H.jsxs)(`linearGradient`,{id:`«data-slot-icon-def-1»-${t}`,x1:`50%`,x2:`50%`,y1:`5.271%`,y2:`91.793%`,children:[(0,H.jsx)(`stop`,{offset:`0%`,stopColor:`currentColor`}),(0,H.jsx)(`stop`,{offset:`100%`,stopColor:`currentColor`,stopOpacity:.55})]}),(0,H.jsxs)(`linearGradient`,{id:`«data-slot-icon-def-2»-${t}`,x1:`50%`,x2:`50%`,y1:`15.24%`,y2:`87.15%`,children:[(0,H.jsx)(`stop`,{offset:`0%`,stopColor:`currentColor`,stopOpacity:0}),(0,H.jsx)(`stop`,{offset:`100%`,stopColor:`currentColor`,stopOpacity:.55})]})]}),(0,H.jsxs)(`g`,{fill:`none`,children:[(0,H.jsx)(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),(0,H.jsx)(`path`,{d:`M8.749.021a1.5 1.5 0 0 1 .497 2.958A7.5 7.5 0 0 0 3 10.375a7.5 7.5 0 0 0 7.5 7.5v3c-5.799 0-10.5-4.7-10.5-10.5C0 5.23 3.726.865 8.749.021`,fill:`url(#«data-slot-icon-def-1»-${t})`,transform:`translate(1.5 1.625)`}),(0,H.jsx)(`path`,{d:`M15.392 2.673a1.5 1.5 0 0 1 2.119-.115A10.48 10.48 0 0 1 21 10.375c0 5.8-4.701 10.5-10.5 10.5v-3a7.5 7.5 0 0 0 5.007-13.084a1.5 1.5 0 0 1-.115-2.118`,fill:`url(#«data-slot-icon-def-2»-${t})`,transform:`translate(1.5 1.625)`})]})]})},_C=({className:e,color:t,size:n,...r})=>(0,H.jsx)(on.span,{"aria-label":`Loading`,"data-slot":`spinner`,role:`status`,...r,className:qa({className:e,color:t,size:n}),children:(0,H.jsx)(gC,{"aria-hidden":!0})}),vC=Object.assign(_C,{Root:_C}),yC=Object.assign(Uc,{Root:Uc}),bC={elementType:`span`},xC=(0,v.createContext)({}),SC=({children:e,className:t,size:n,...r})=>{let i=v.useMemo(()=>Ya({size:n}),[n]);return(0,H.jsx)(lb,{"data-slot":`switch`,...r,className:J(t,i.base()),children:t=>(0,H.jsx)(xC,{value:{slots:i,state:t},children:typeof e==`function`?e(t):e})})};SC.displayName=`HeroUI.Switch`;var CC=({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(xC);return(0,H.jsx)(ub,{"data-slot":`switch-content`,...n,className:J(t,r?.content()),children:t=>(0,H.jsx)(mo,{value:bC,children:typeof e==`function`?e(t):e})})};CC.displayName=`HeroUI.Switch.Content`;var wC=({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(xC);return(0,H.jsx)(on.span,{className:Y(r?.control,t),"data-slot":`switch-control`,...n,children:e})};wC.displayName=`HeroUI.Switch.Control`;var TC=({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(xC);return(0,H.jsx)(on.span,{className:Y(r?.thumb,t),"data-slot":`switch-thumb`,...n,children:e})};TC.displayName=`HeroUI.Switch.Thumb`;var EC=({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(xC);return(0,H.jsx)(on.span,{className:Y(r?.icon,t),"data-slot":`switch-icon`,...n,children:e})};EC.displayName=`HeroUI.Switch.Icon`;var DC=Object.assign(SC,{Root:SC,Content:CC,Control:wC,Thumb:TC,Icon:EC}),OC=(0,v.createContext)({}),kC=Qx(`tabs.listContainer`),AC=({align:e,children:t,className:n,orientation:r=`horizontal`,variant:i,...a})=>{let o=v.useMemo(()=>Xa({align:e,variant:i}),[e,i]),s=v.useMemo(()=>({orientation:r,slots:o}),[r,o]);return(0,H.jsx)(OC,{value:s,children:(0,H.jsx)(Sb,{...a,className:J(n,o.base()),"data-slot":`tabs`,orientation:r,children:t})})},jC=Object.assign(AC,{Root:AC,ListContainer:({children:e,className:t,render:n,...r})=>(0,H.jsx)(kC.Injector,{...r,className:t,render:n,children:e}),List:({children:e,className:t,...n})=>{let{orientation:r=`horizontal`,slots:i}=(0,v.use)(OC),a=(0,v.useRef)(null),o=r===`vertical`,[s,c]=kC.useSlot(n),l=(0,v.useCallback)(e=>{let t=a.current;if(!t)return;let n=o?t.clientHeight:t.clientWidth,r=o?t.scrollHeight:t.scrollWidth,i=Math.max(0,r-n),s=!o&&getComputedStyle(t).direction===`rtl`,c=e*n*.8*(s?-1:1),l=o?t.scrollTop:t.scrollLeft,u=Math.min(s?0:i,Math.max(s?-i:0,l+c));u!==l&&t.scrollTo({behavior:`smooth`,[o?`top`:`left`]:u})},[o]);if(!s)return(0,H.jsx)(wb,{...c,className:J(t,i?.tabList()),"data-slot":`tabs-list`,children:e});let{className:u,render:d,...f}=s;return(0,H.jsx)(wb,{...c,className:J(t,i?.tabList()),"data-slot":`tabs-list`,render:e=>{let{children:t,className:n,ref:s,...c}=e;return(0,H.jsxs)(on.div,{className:Y(i?.tabListContainer,u),"data-slot":`tabs-list-container`,render:d,...f,children:[(0,H.jsx)(tC,{ref:a,hideScrollBar:!0,className:Y(i?.scroller),orientation:r,size:64,children:(0,H.jsx)(`div`,{...c,ref:s,className:n,children:t})}),(0,H.jsx)(`button`,{"aria-label":o?`Scroll tabs up`:`Scroll tabs left`,className:Y(i?.scrollPrev),tabIndex:-1,type:`button`,onClick:()=>l(-1),children:o?(0,H.jsx)(jc,{}):(0,H.jsx)(Mc,{})}),(0,H.jsx)(`button`,{"aria-label":o?`Scroll tabs down`:`Scroll tabs right`,className:Y(i?.scrollNext),tabIndex:-1,type:`button`,onClick:()=>l(1),children:o?(0,H.jsx)(Ac,{}):(0,H.jsx)(Nc,{})})]})},children:e})},Tab:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(OC);return(0,H.jsx)(Eb,{...n,className:J(t,r?.tab()),"data-slot":`tabs-tab`,children:e})},Indicator:({className:e,...t})=>{let{slots:n}=(0,v.use)(OC);return(0,H.jsx)(dp,{className:Y(n?.tabIndicator,e),"data-slot":`tabs-indicator`,...t})},Separator:({className:e,...t})=>{let{slots:n}=(0,v.use)(OC);return(0,H.jsx)(on.span,{"aria-hidden":`true`,className:Y(n?.separator,e),"data-slot":`tabs-separator`,...t})},Panel:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(OC);return(0,H.jsx)(Db,{...n,className:J(t,r?.tabPanel()),"data-slot":`tabs-panel`,children:e})}}),MC=Object.assign(MS,{Root:MS}),NC=e=>{let[t,n]=(0,v.useState)(void 0),r=(0,v.useCallback)(()=>{let t=e.current;if(!t)return;let r=t.style.height;t.style.height=`auto`;let i=t.scrollHeight;t.style.height=r,n(e=>e===i?e:i)},[e]);return QS(()=>{r()},[r]),(0,v.useEffect)(()=>{let t=e.current;if(!t)return;let n=0,i=()=>{n||=requestAnimationFrame(()=>{n=0,r()})},a=new MutationObserver(i);a.observe(t,{attributeFilter:[`class`],attributes:!0,characterData:!0,childList:!0,subtree:!0});let o=t.getBoundingClientRect().width,s=new ResizeObserver(e=>{let t=e[0]?.contentRect.width;t===void 0||Math.abs(t-o)<.5||(o=t,i())});return s.observe(t),()=>{a.disconnect(),s.disconnect(),cancelAnimationFrame(n)}},[e,r]),{height:t}},PC=typeof window<`u`?v.useLayoutEffect:v.useEffect,FC=typeof window>`u`;function IC(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){let r=e=>FC?t:window.matchMedia(e).matches,[i,a]=(0,v.useState)(()=>n?r(e):t);function o(){a(r(e))}return PC(()=>{let t=window.matchMedia(e);return o(),t.addListener?t.addListener(o):t.addEventListener(`change`,o),()=>{t.removeListener?t.removeListener(o):t.removeEventListener(`change`,o)}},[e]),i}var LC=typeof performance<`u`&&typeof performance.now==`function`?()=>performance.now():()=>Date.now(),RC=new WeakSet,zC=class{startTime=null;constructor(e,t){this.remaining=t,this.callback=e}reset(e){this.remaining=e,this.resume()}pause(){this.timerId!=null&&(clearTimeout(this.timerId),this.timerId=null,this.remaining-=LC()-(this.startTime??LC()))}resume(){this.remaining<=0||(this.startTime=LC(),this.timerId=setTimeout(()=>{this.timerId=null,this.remaining=0,this.callback()},this.remaining))}},BC=class e extends Tx{static didWarnMissingNotify=!1;exitTimers=new Map;exitingSnapshot=new Set;exitSubscriptions=new Set;suspensions=new Set;isBatchingExits=!1;constructor(e,t=300){super(e),this.exitDuration=t}suspendTimers(e){let t=this.suspensions.size===0;this.suspensions.add(e),t&&super.pauseAll()}resumeTimers(e){this.suspensions.delete(e),this.suspensions.size===0&&super.resumeAll()}pauseAll(){this.suspendTimers(`external`)}resumeAll(){this.resumeTimers(`external`)}guardTimer(e){if(RC.has(e))return;RC.add(e);let t=e.resume.bind(e),n=e.reset.bind(e);e.resume=()=>{this.suspensions.size>0||e.timerId!=null||t()},e.reset=t=>{e.pause(),n(t)}}add(e,t){let n=super.add(e,t),r=this.visibleToasts.find(e=>e.key===n)?.timer;return r&&this.guardTimer(r),n}updateToast(t,n,r){if(this.exitTimers.has(t))return!1;let i=this.visibleToasts.find(e=>e.key===t);if(!i)return!1;if(i.content=n,r&&`onClose`in r&&(i.onClose=r.onClose),r?.timeout!==void 0){if(i.timer?.pause(),i.timeout=r.timeout,r.timeout>0){let e=new zC(()=>this.close(t),r.timeout);this.guardTimer(e),i.timer=e}else i.timer=void 0}let a=this.updateVisibleToasts;return typeof a==`function`?a.call(this,`add`):(e.didWarnMissingNotify||(e.didWarnMissingNotify=!0,console.warn(`[HeroUI Toast] react-stately no longer exposes updateVisibleToasts; toast updates fall back to a partial re-render.`)),this.exitingSnapshot=new Set(this.exitTimers.keys()),this.notifyExitSubscribers()),!0}getExitingKeys=()=>this.exitingSnapshot;subscribeExiting=e=>(this.exitSubscriptions.add(e),()=>{this.exitSubscriptions.delete(e)});notifyExitSubscribers(){for(let e of this.exitSubscriptions)e()}close(e){let t=this.visibleToasts.find(t=>t.key===e);if(this.exitTimers.has(e)||!t)return;if(!(this.exitDuration>0&&typeof window<`u`&&!window.matchMedia?.(`(prefers-reduced-motion: reduce)`)?.matches)){super.close(e);return}let n=t.onClose;t.onClose=void 0,this.exitTimers.set(e,setTimeout(()=>{this.exitTimers.delete(e),this.exitingSnapshot=new Set(this.exitTimers.keys()),super.close(e),this.isBatchingExits||this.notifyExitSubscribers()},this.exitDuration)),this.isBatchingExits||(this.exitingSnapshot=new Set(this.exitTimers.keys()),this.notifyExitSubscribers()),n?.()}clear(){this.isBatchingExits=!0;try{for(let e of[...this.visibleToasts])this.close(e.key)}finally{this.isBatchingExits=!1,this.exitingSnapshot=new Set(this.exitTimers.keys()),this.notifyExitSubscribers()}}destroy(){for(let e of this.exitTimers.values())clearTimeout(e);this.exitTimers.clear(),this.exitingSnapshot=new Set,this.exitSubscriptions.clear(),this.suspensions.clear();for(let e of this.visibleToasts)e.timer?.pause()}},VC=e=>e instanceof BC,HC=class{constructor(e){this.maxVisibleToasts=e?.maxVisibleToasts,this.queue=new BC({maxVisibleToasts:eS,wrapUpdate:e?.wrapUpdate},e?.exitDuration??300)}add(e,t){return this.queue.add(e,{...t,timeout:t?.timeout??4e3})}close(e){this.queue.close(e)}update(e,t,n){return this.queue.updateToast(e,t,n)}pauseAll(){this.queue.pauseAll()}resumeAll(){this.queue.resumeAll()}clear(){this.queue.clear()}subscribe(e){return this.queue.subscribe(e)}get visibleToasts(){return this.queue.visibleToasts}getQueue(){return this.queue}destroy(){this.queue.destroy()}};function UC(e){let t=(e,t)=>({title:e,description:t?.description,indicator:t?.indicator,variant:t?.variant||`default`,actionProps:t?.actionProps,isLoading:t?.isLoading}),n=e=>({timeout:e?.timeout??4e3,onClose:e?.onClose}),r=e=>({...e&&`timeout`in e?{timeout:e.timeout}:null,...e&&`onClose`in e?{onClose:e.onClose}:null}),i=(r,i)=>e.add(t(r,i),n(i));return i.success=(e,t)=>i(e,{...t,variant:`success`}),i.danger=(e,t)=>i(e,{...t,variant:`danger`}),i.info=(e,t)=>i(e,{...t,variant:`accent`}),i.warning=(e,t)=>i(e,{...t,variant:`warning`}),i.update=(i,a,o)=>{let s=t(a,o);return e.update(i,s,r(o))?i:e.add(s,n(o))},i.promise=(n,r)=>{let a=typeof n==`function`?n():n,o=e.add(t(r.loading,{isLoading:!0}),{timeout:0});return a.then(e=>{let t=typeof r.success==`function`?r.success(e):r.success;return i.update(o,t,{isLoading:!1,timeout:nS,variant:`success`})}).catch(e=>{let t=typeof r.error==`function`?r.error(e):r.error;return i.update(o,t,{isLoading:!1,timeout:nS,variant:`danger`})}),o},i.getQueue=()=>e.getQueue(),i.close=t=>e.close(t),i.pauseAll=()=>e.pauseAll(),i.resumeAll=()=>e.resumeAll(),i.clear=()=>e.clear(),i}var WC=UC(new HC),GC=(0,v.createContext)({}),KC=[`altKey`,`ctrlKey`,`metaKey`,`shiftKey`],qC=new Set,JC=()=>qC,YC=()=>()=>{},XC=(e,t)=>{if(!t){document.activeElement?.blur();return}let n=e=>e instanceof HTMLElement&&e.matches(`[data-slot="toast"]:not([data-exiting="true"]):not([data-hidden="true"])`),r=null,i=e.previousElementSibling;for(;i;){if(n(i)){r=i;break}i=i.previousElementSibling}if(!r)for(i=e.nextElementSibling;i;){if(n(i)){r=i;break}i=i.nextElementSibling}if(!r){let t=e.closest(`[data-slot="toast-region"]`);if(t){for(let n of t.querySelectorAll(`[data-slot="toast"]:not([data-exiting="true"]):not([data-hidden="true"])`))if(n!==e){r=n;break}}}r?r.focus():document.activeElement?.blur()},ZC=({children:e,className:t,placement:n,ref:r,scaleFactor:i,style:a,toast:o,variant:s,...c})=>{let{exitingKeys:l,gap:u=12,heightsByKey:d,isExpanded:f=!1,maxVisibleToasts:p=3,onToastHeightChange:m,onToastHeightRemove:h,placement:g,scaleFactor:_,slots:y}=(0,v.use)(GC),b=n??g,x=i??_??.05,S=(0,v.use)(Dx).visibleToasts,C=o?.key,w=C!=null&&(l?.has(C)??!1),T=(0,v.useMemo)(()=>!l||l.size===0?S:S.filter(e=>!l.has(e.key)||e.key===C),[l,C,S]),E=S.indexOf(o),D=T.indexOf(o),O=D<=0,k=!w&&D>=p,A=(0,v.useRef)(null),j=(0,v.useMemo)(()=>We(A,r),[r]),{height:M}=NC(A),{isFocusVisible:N}=hs(),[P,F]=(0,v.useState)(!0);(0,v.useEffect)(()=>{let e=0,t=requestAnimationFrame(()=>{e=requestAnimationFrame(()=>{F(!1)})});return()=>{cancelAnimationFrame(t),cancelAnimationFrame(e)}},[]),(0,v.useLayoutEffect)(()=>{C&&typeof M==`number`&&m?.(C,M)},[C,M,m]),(0,v.useEffect)(()=>{if(C)return()=>{h?.(C)}},[C,h]),(0,v.useLayoutEffect)(()=>{let e=A.current;if(e){if(e.tabIndex=O||f&&!k&&!w?0:-1,k||w){if(e.contains(document.activeElement)&&XC(e,N),e.setAttribute(`aria-hidden`,`true`),w)for(let t of e.querySelectorAll(`button, a`))t.tabIndex=-1;else e.setAttribute(`inert`,``)}else e.removeAttribute(`aria-hidden`),e.removeAttribute(`inert`)}},[O,f,k,w,N]);let I=(0,v.useMemo)(()=>{let e=T[0]?.key,t=(e?d?.[e]:void 0)??M??0,n=0;for(let e=0;e<D;e++){let r=T[e]?.key;n+=(r?d?.[r]:void 0)??t}return{"--offset-collapsed":`${D*u}px`,"--offset-expanded":`${n+D*u}px`,"--scale-collapsed":`${1-D*x}`,zIndex:w?0:S.length-E,"--front-height":`${t}px`,...typeof M==`number`?{"--toast-height":`${M}px`}:null}},[x,E,u,d,D,w,T,M,S.length]),ee=no(a,e=>({...I,...e}));return(0,H.jsx)(Ax,{...c,ref:j,className:J(t,y?.toast({variant:s})),"data-entering":kc(P),"data-exiting":kc(w),"data-expanded":kc(f),"data-frontmost":kc(O),"data-hidden":kc(k),"data-index":D,"data-placement":b,"data-slot":`toast`,style:ee,toast:o,children:e})};ZC.displayName=`HeroUI.Toast`;var QC=({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(GC);return(0,H.jsx)(Mx,{...n,className:Y(r?.content,t),"data-slot":`toast-content`,children:e})},$C=({children:e,className:t,variant:n,...r})=>{let{slots:i}=(0,v.use)(GC),a=v.isValidElement(e)?e.type:e??`default`,o=(0,v.useRef)(a),[s,c]=(0,v.useState)(!1);QS(()=>{o.current!==a&&(o.current=a,c(!0))},[a]);let l=(0,v.useCallback)(()=>{switch(n){case`accent`:return(0,H.jsx)(Fc,{"data-slot":`toast-default-icon`});case`success`:return(0,H.jsx)(Rc,{"data-slot":`toast-default-icon`});case`warning`:return(0,H.jsx)(Ic,{"data-slot":`toast-default-icon`});case`danger`:return(0,H.jsx)(Lc,{"data-slot":`toast-default-icon`});default:return(0,H.jsx)(Fc,{"data-slot":`toast-default-icon`})}},[n]);return(0,H.jsx)(on.div,{...r,className:Y(i?.indicator,t),"data-slot":`toast-indicator`,"data-swapped":kc(s),children:e??l()})};$C.displayName=`HeroUI.ToastIndicator`;var ew=({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(GC);return(0,H.jsx)(gp,{...n,className:Y(r?.title,t),"data-slot":`toast-title`,slot:`title`,children:e})};ew.displayName=`HeroUI.ToastTitle`;var tw=({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(GC);return(0,H.jsx)(gp,{...n,className:Y(r?.description,t),"data-slot":`toast-description`,slot:`description`,children:e})};tw.displayName=`HeroUI.ToastDescription`;var nw=({className:e,...t})=>{let{slots:n}=(0,v.use)(GC);return(0,H.jsx)(nh,{...t,className:J(e,n?.close()),"data-slot":`toast-close`,slot:`close`})};nw.displayName=`HeroUI.ToastCloseButton`;var rw=({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(GC);return(0,H.jsx)(ov,{...n,className:J(t,r?.action?.()),"data-slot":`toast-action-button`,children:e})};rw.displayName=`HeroUI.ToastActionButton`;var iw=({children:e,className:t,gap:n=12,hotkey:r=rS,isExpanded:i=!1,maxVisibleToasts:a,placement:o=`bottom`,queue:s,ref:c,scaleFactor:l=tS,style:u,width:d=460,...f})=>{let p=(0,v.useMemo)(()=>Qa({placement:o}),[o]),m=IC(`(max-width: 768px)`),[h,g]=(0,v.useState)({}),_=(0,v.useRef)(r);(0,v.useEffect)(()=>{_.current=r},[r]);let y=(0,v.useMemo)(()=>s?s.getQueue():WC.getQueue(),[s]),b=VC(y)?y:null,x=(0,v.useSyncExternalStore)(b?b.subscribeExiting:YC,b?b.getExitingKeys:JC,JC),S=(0,v.useCallback)(e=>y.subscribe(e),[y]),C=(0,v.useSyncExternalStore)(S,()=>y.visibleToasts.length,()=>0),[w,T]=(0,v.useState)(!1),E=(0,v.useRef)(!1),D=(0,v.useCallback)(e=>{let t=e=>{typeof c==`function`?c(e):c&&typeof c==`object`&&(c.current=e)};if(t(e),!e)return;let n=()=>{!E.current&&!e.contains(document.activeElement)&&T(!1)},r=e=>{e.pointerType!==`touch`&&(E.current=!0,T(!0))},i=e=>{e.pointerType!==`touch`&&(E.current=!1,n())},a=()=>{T(!0)},o=t=>{t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||n()},s=t=>{t.pointerType===`touch`||e.contains(t.target)||(E.current=!1,n())},l=t=>{t.key===`Escape`&&(e.contains(document.activeElement)&&document.activeElement.blur(),E.current=!1,T(!1))},u=t=>{let n=_.current;if(n.length===0)return;let r=KC.every(e=>t[e]===n.includes(e)),i=n.every(e=>KC.includes(e)||t.code===e);r&&i&&(t.preventDefault(),e.focus())};return e.addEventListener(`pointerenter`,r),e.addEventListener(`pointermove`,r),e.addEventListener(`pointerleave`,i),e.addEventListener(`focusin`,a),e.addEventListener(`focusout`,o),e.addEventListener(`keydown`,l),document.addEventListener(`pointerover`,s,!0),document.addEventListener(`keydown`,u),()=>{e.removeEventListener(`pointerenter`,r),e.removeEventListener(`pointermove`,r),e.removeEventListener(`pointerleave`,i),e.removeEventListener(`focusin`,a),e.removeEventListener(`focusout`,o),e.removeEventListener(`keydown`,l),document.removeEventListener(`pointerover`,s,!0),document.removeEventListener(`keydown`,u),E.current=!1,T(!1),t(null)}},[c]);(0,v.useEffect)(()=>{if(b&&w)return b.suspendTimers(`interaction`),()=>{b.resumeTimers(`interaction`)}},[b,w]),(0,v.useEffect)(()=>{if(typeof document>`u`||!b)return;let e=()=>{document.hidden?b.suspendTimers(`visibility`):b.resumeTimers(`visibility`)};return document.addEventListener(`visibilitychange`,e),()=>{document.removeEventListener(`visibilitychange`,e),b.resumeTimers(`visibility`)}},[b]);let O=C-x.size,k=(i||w)&&O>1,A=(0,v.useMemo)(()=>{let e=s&&`maxVisibleToasts`in s?s.maxVisibleToasts:void 0;return a??e??3},[a,s]),j=(0,v.useCallback)((e,t)=>{g(n=>n[e]===t?n:{...n,[e]:t})},[]),M=(0,v.useCallback)(e=>{g(t=>{if(!(e in t))return t;let n={...t};return delete n[e],n})},[]),N=(0,v.useCallback)(e=>{let{actionProps:t,description:n,indicator:r,isLoading:i,title:a,variant:s}=e.toast.content??{};return(0,H.jsxs)(ZC,{placement:o,scaleFactor:l,toast:e.toast,variant:s,children:[r===null?null:i?(0,H.jsx)($C,{variant:s,children:(0,H.jsx)(vC,{color:`current`,size:`sm`})}):(0,H.jsx)($C,{variant:s,children:r}),(0,H.jsxs)(QC,{children:[!!a&&(0,H.jsx)(ew,{children:a}),!!n&&(0,H.jsx)(tw,{children:n}),m&&t?.children?(0,H.jsx)(rw,{...t,children:t.children}):null]}),!m&&t?.children?(0,H.jsx)(rw,{...t,children:t.children}):null,(0,H.jsx)(nw,{})]})},[m,o,l]),P=(0,v.useMemo)(()=>({exitingKeys:x,gap:n,heightsByKey:h,isExpanded:k,maxVisibleToasts:A,onToastHeightChange:j,onToastHeightRemove:M,placement:o,scaleFactor:l,slots:p}),[x,n,j,M,k,o,A,l,p,h]),F=no(u,e=>({"--gap":`${n}px`,"--placement":o,"--scale-factor":l,"--toast-width":typeof d==`number`?`${d}px`:d,...e}));return(0,H.jsx)(Ox,{...f,ref:D,className:J(t,p?.region()),"data-expanded":kc(k),"data-slot":`toast-region`,queue:y,style:F,children:t=>{let n=t.toast.content,r={...t,isLoading:n?.isLoading??!1};return(0,H.jsx)(GC,{value:P,children:e===void 0?N(t):typeof e==`function`?e(r):e})}})};iw.displayName=`HeroUI.ToastProvider`;var aw=Object.assign(ZC,{Provider:iw,Content:QC,Indicator:$C,Title:ew,Description:tw,ActionButton:rw,CloseButton:nw,Queue:HC,toast:WC}),ow=e=>{if(!e)return;let t=e.trim(),n=parseFloat(t);if(!Number.isNaN(n))return t.endsWith(`ms`)?n:t.endsWith(`s`)?n*1e3:n},sw=(0,v.createContext)({}),cw=({children:e,shouldSkipAnimation:t})=>{let n=(0,v.use)(Vx);return!n||t?e:(0,H.jsx)(Vx,{value:{...n,shouldSkipAnimation:!1},children:e})},lw=({children:e,closeDelay:t,delay:n,shouldSkipAnimation:r=!1,...i})=>{let a=v.useMemo(()=>$a(),[]),o=fC(`--tooltip-delay`),s=fC(`--tooltip-close-delay`),c=n??ow(o),l=t??ow(s),u=v.useMemo(()=>({slots:a}),[a]);return(0,H.jsx)(sw,{value:u,children:(0,H.jsx)(Ux,{closeDelay:l,"data-slot":`tooltip-root`,delay:c,...i,children:(0,H.jsx)(cw,{shouldSkipAnimation:r,children:e})})})},uw=Object.assign(lw,{Root:lw,Trigger:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(sw),i=(0,v.useRef)(null),{focusableProps:a}=Is({},i);return(0,H.jsx)(on.div,{ref:i,className:Y(r?.trigger,t),"data-slot":`tooltip-trigger`,role:`button`,...B(a,n),children:e})},Content:({children:e,className:t,offset:n,showArrow:r=!1,...i})=>{let{slots:a}=(0,v.use)(sw),o=n||(r?7:3);return(0,H.jsx)(Wx,{...i,className:J(t,a?.base()),offset:o,children:e})},Arrow:({children:e,className:t,...n})=>{let r=(0,H.jsx)(`svg`,{"data-slot":`overlay-arrow`,fill:`none`,height:`12`,viewBox:`0 0 12 12`,width:`12`,xmlns:`http://www.w3.org/2000/svg`,children:(0,H.jsx)(`path`,{d:`M0 0C5.48483 8 6.5 8 12 0Z`})}),i=v.isValidElement(e)?v.cloneElement(e,{"data-slot":`overlay-arrow`}):r;return(0,H.jsx)(Yc,{"data-slot":`tooltip-arrow`,...n,className:t,children:i})}}),dw=(e={})=>{let{defaultOpen:t=!1,isOpen:n,onOpenChange:r}=e,[i,a]=(0,v.useState)(t),o=n!==void 0,s=o?n:i,c=(0,v.useRef)(r);(0,v.useEffect)(()=>{c.current=r},[r]);let l=(0,v.useCallback)(e=>{c.current?.(e),o||a(e)},[o]),u=(0,v.useCallback)(()=>{l(!0)},[l]);return{close:(0,v.useCallback)(()=>{l(!1)},[l]),isOpen:s,open:u,setOpen:l,toggle:(0,v.useCallback)(()=>{l(!s)},[l,s])}},fw=e=>(t,n)=>{let r=(0,v.useRef)(!1);e(()=>()=>{r.current=!1},[]),e(()=>{if(!r.current)r.current=!0;else return t()},n)};function pw(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 mw(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}var hw=e=>typeof e==`function`,gw=e=>e!=null,_w=e=>gw(e)&&hw(e.then),vw=e=>{let t=(0,v.useRef)(e);t.current=(0,v.useMemo)(()=>e,[e]);let n=(0,v.useRef)(void 0);return n.current||=function(...e){return t.current.apply(this,e)},n.current},yw=fw(v.useEffect),bw=(e,{manual:t,ready:n=!0,defaultParams:r=[],refreshDeps:i=[],refreshDepsAction:a})=>{let o=(0,v.useRef)(!1);return o.current=!1,yw(()=>{!t&&n&&(o.current=!0,e.run(...r))},[n]),yw(()=>{o.current||t||(o.current=!0,a?a():e.refresh())},[...i]),{onBefore:()=>{if(!n)return{stopNow:!0}}}};bw.onInit=({ready:e=!0,manual:t})=>({loading:!t&&e});function xw(e,t){if(e===t)return!0;for(let n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}var Sw=(e,t)=>{let{current:n}=(0,v.useRef)({deps:t,obj:void 0,initialized:!1});return(n.initialized===!1||!xw(n.deps,t))&&(n.deps=t,n.obj=e(),n.initialized=!0),n.obj};function Cw(e){let t=(0,v.useRef)(e);return t.current=e,t}var ww=e=>{let t=Cw(e);(0,v.useEffect)(()=>()=>{t.current()},[])},Tw=new Map,Ew=e=>{e?.timer&&clearTimeout(e.timer)},Dw=(e,t,n)=>{Ew(Tw.get(e));let r;t>-1&&(r=setTimeout(()=>{Tw.delete(e)},t)),Tw.set(e,Object.assign(Object.assign({},n),{timer:r}))},Ow=e=>Tw.get(e),kw=new Map,Aw=e=>kw.get(e),jw=(e,t)=>{kw.set(e,t),t.then(t=>(kw.delete(e),t)).catch(()=>{kw.delete(e)})},Mw={},Nw=(e,t)=>{Mw[e]&&Mw[e].forEach(e=>e(t))},Pw=(e,t)=>(Mw[e]||(Mw[e]=[]),Mw[e].push(t),function(){let n=Mw[e].indexOf(t);Mw[e].splice(n,1)}),Fw=(e,{cacheKey:t,cacheTime:n=3e5,staleTime:r=0,setCache:i,getCache:a})=>{let o=(0,v.useRef)(void 0),s=(0,v.useRef)(void 0),c=(e,t)=>{i?i(t):Dw(e,n,t),Nw(e,t.data)},l=(e,t=[])=>a?a(t):Ow(e);return Sw(()=>{if(!t)return;let n=l(t);n&&Object.hasOwnProperty.call(n,`data`)&&(e.state.data=n.data,e.state.params=n.params,(r===-1||Date.now()-n.time<=r)&&(e.state.loading=!1)),o.current=Pw(t,t=>{e.setState({data:t})})},[]),ww(()=>{var e;(e=o.current)==null||e.call(o)}),t?{onBefore:e=>{let n=l(t,e);return!n||!Object.hasOwnProperty.call(n,`data`)?{}:r===-1||Date.now()-n.time<=r?{loading:!1,data:n?.data,error:void 0,returnNow:!0}:{data:n?.data,error:void 0}},onRequest:(e,n)=>{let r=Aw(t);return r&&r!==s.current?{servicePromise:r}:(r=e(...n),s.current=r,jw(t,r),{servicePromise:r})},onSuccess:(n,r)=>{var i;t&&((i=o.current)==null||i.call(o),c(t,{data:n,params:r,time:Date.now()}),o.current=Pw(t,t=>{e.setState({data:t})}))},onMutate:n=>{var r;t&&((r=o.current)==null||r.call(o),c(t,{data:n,params:e.state.params,time:Date.now()}),o.current=Pw(t,t=>{e.setState({data:t})}))}}:{}},Iw=o(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),Lw=o(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),Rw=o(((e,t)=>{var n=Lw(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),zw=o(((e,t)=>{var n=Rw();t.exports=function(){return n.Date.now()}})),Bw=o(((e,t)=>{var n=/\s/;function r(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}t.exports=r})),Vw=o(((e,t)=>{var n=Bw(),r=/^\s+/;function i(e){return e&&e.slice(0,n(e)+1).replace(r,``)}t.exports=i})),Hw=o(((e,t)=>{t.exports=Rw().Symbol})),Uw=o(((e,t)=>{var n=Hw(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),Ww=o(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),Gw=o(((e,t)=>{var n=Hw(),r=Uw(),i=Ww(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),Kw=o(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),qw=o(((e,t)=>{var n=Gw(),r=Kw(),i=`[object Symbol]`;function a(e){return typeof e==`symbol`||r(e)&&n(e)==i}t.exports=a})),Jw=o(((e,t)=>{var n=Vw(),r=Iw(),i=qw(),a=NaN,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;function u(e){if(typeof e==`number`)return e;if(i(e))return a;if(r(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=r(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=n(e);var u=s.test(e);return u||c.test(e)?l(e.slice(2),u?2:8):o.test(e)?a:+e}t.exports=u})),Yw=o(((e,t)=>{var n=Iw(),r=zw(),i=Jw(),a=`Expected a function`,o=Math.max,s=Math.min;function c(e,t,c){var l,u,d,f,p,m,h=0,g=!1,_=!1,v=!0;if(typeof e!=`function`)throw TypeError(a);t=i(t)||0,n(c)&&(g=!!c.leading,_=`maxWait`in c,d=_?o(i(c.maxWait)||0,t):d,v=`trailing`in c?!!c.trailing:v);function y(t){var n=l,r=u;return l=u=void 0,h=t,f=e.apply(r,n),f}function b(e){return h=e,p=setTimeout(C,t),g?y(e):f}function x(e){var n=e-m,r=e-h,i=t-n;return _?s(i,d-r):i}function S(e){var n=e-m,r=e-h;return m===void 0||n>=t||n<0||_&&r>=d}function C(){var e=r();if(S(e))return w(e);p=setTimeout(C,x(e))}function w(e){return p=void 0,v&&l?y(e):(l=u=void 0,f)}function T(){p!==void 0&&clearTimeout(p),h=0,l=m=u=p=void 0}function E(){return p===void 0?f:w(r())}function D(){var e=r(),n=S(e);if(l=arguments,u=this,m=e,n){if(p===void 0)return b(m);if(_)return clearTimeout(p),p=setTimeout(C,t),y(m)}return p===void 0&&(p=setTimeout(C,t)),f}return D.cancel=T,D.flush=E,D}t.exports=c})),Xw,Zw=`__AHOOKS_CANCELLED_ERROR__`,Qw=class e extends Error{constructor(t=`useRequest: the request was cancelled or superseded.`){super(t),this[Xw]=!0,this.name=`CancelledError`,Object.setPrototypeOf(this,e.prototype)}};Xw=Zw;function $w(e){return e instanceof Qw||typeof e==`object`&&!!e&&e[Zw]===!0}function eT(e){var t;(t=e.current)==null||t.call(e,new Qw),e.current=void 0}var tT=l(Yw()),nT=(e,{debounceWait:t,debounceLeading:n,debounceTrailing:r,debounceMaxWait:i,ready:a})=>{let o=(0,v.useRef)(void 0),s=(0,v.useRef)(void 0),c=(0,v.useMemo)(()=>{let e={};return n!==void 0&&(e.leading=n),r!==void 0&&(e.trailing=r),i!==void 0&&(e.maxWait=i),e},[n,r,i]);return(0,v.useEffect)(()=>{if(t){let n=e.runAsync.bind(e);return o.current=(0,tT.default)(e=>{e()},t,c),e.runAsync=(...t)=>e.options.ready===!1?n(...t):(eT(s),new Promise((e,r)=>{var i;let a=!1;s.current=r,(i=o.current)==null||i.call(o,()=>{a=!0,s.current=void 0,n(...t).then(e).catch(r)}),!a&&c.trailing===!1&&eT(s)})),()=>{var t;(t=o.current)==null||t.cancel(),eT(s),e.runAsync=n}}},[t,c,e]),yw(()=>{var e;a===!1&&((e=o.current)==null||e.cancel(),eT(s))},[a]),t?{onCancel:()=>{var e;(e=o.current)==null||e.cancel(),eT(s)}}:{}},rT=(e,{loadingDelay:t,ready:n})=>{let r=(0,v.useRef)(void 0);if(!t)return{};let i=()=>{r.current&&clearTimeout(r.current)};return{onBefore:()=>(i(),n!==!1&&(r.current=setTimeout(()=>{e.setState({loading:!0})},t)),{loading:!1}),onFinally:()=>{i()},onCancel:()=>{i()}}},iT=!!(typeof window<`u`&&window.document&&window.document.createElement);function aT(){return!iT||document.visibilityState!==`hidden`}var oT=new Set;function sT(e){return oT.add(e),function(){oT.has(e)&&oT.delete(e)}}iT&&window.addEventListener(`visibilitychange`,()=>{aT()&&oT.forEach(e=>e())},!1);var cT=(e,{pollingInterval:t,pollingWhenHidden:n=!0,pollingErrorRetryCount:r=-1})=>{let i=(0,v.useRef)(void 0),a=(0,v.useRef)(void 0),o=(0,v.useRef)(0),s=()=>{var e;i.current&&clearTimeout(i.current),(e=a.current)==null||e.call(a)};return yw(()=>{t||s()},[t]),t?{onBefore:()=>{s()},onError:()=>{o.current+=1},onSuccess:()=>{o.current=0},onFinally:()=>{r===-1||r!==-1&&o.current<=r?i.current=setTimeout(()=>{!n&&!aT()?a.current=sT(()=>{e.refresh()}):e.refresh()},t):o.current=0},onCancel:()=>{s()}}:{}};function lT(e,t){let n=!1;return(...r)=>{n||(n=!0,e(...r),setTimeout(()=>{n=!1},t))}}var uT=()=>iT&&navigator.onLine!==void 0?navigator.onLine:!0,dT=new Set;function fT(e){return dT.add(e),function(){dT.has(e)&&dT.delete(e)}}if(iT){let e=()=>{aT()&&uT()&&dT.forEach(e=>e())};window.addEventListener(`visibilitychange`,e,!1),window.addEventListener(`focus`,e,!1)}var pT=(e,{refreshOnWindowFocus:t,focusTimespan:n=5e3})=>{let r=(0,v.useRef)(void 0),i=()=>{var e;(e=r.current)==null||e.call(r)};return(0,v.useEffect)(()=>{if(t){let t=lT(e.refresh.bind(e),n);r.current=fT(()=>{t()})}return()=>{i()}},[t,n]),ww(()=>{i()}),{}},mT=(e,{retryInterval:t,retryCount:n})=>{let r=(0,v.useRef)(void 0),i=(0,v.useRef)(0),a=(0,v.useRef)(!1);return n?{onBefore:()=>{a.current||(i.current=0),a.current=!1,r.current&&clearTimeout(r.current)},onSuccess:()=>{i.current=0},onError:()=>{if(i.current+=1,n===-1||i.current<=n){let n=t??Math.min(1e3*2**i.current,3e4);r.current=setTimeout(()=>{a.current=!0,e.refresh()},n)}else i.current=0},onCancel:()=>{i.current=0,r.current&&clearTimeout(r.current)}}:{}},hT=l(o(((e,t)=>{var n=Yw(),r=Iw(),i=`Expected a function`;function a(e,t,a){var o=!0,s=!0;if(typeof e!=`function`)throw TypeError(i);return r(a)&&(o=`leading`in a?!!a.leading:o,s=`trailing`in a?!!a.trailing:s),n(e,t,{leading:o,maxWait:t,trailing:s})}t.exports=a}))()),gT=(e,{throttleWait:t,throttleLeading:n,throttleTrailing:r})=>{let i=(0,v.useRef)(void 0),a=(0,v.useRef)(void 0),o={};return n!==void 0&&(o.leading=n),r!==void 0&&(o.trailing=r),(0,v.useEffect)(()=>{if(t){let n=e.runAsync.bind(e);return i.current=(0,hT.default)(e=>{e()},t,o),e.runAsync=(...e)=>(eT(a),new Promise((t,r)=>{var s;let c=!1;a.current=r,(s=i.current)==null||s.call(i,()=>{c=!0,a.current=void 0,n(...e).then(t).catch(r)}),!c&&o.trailing===!1&&eT(a)})),()=>{var t;e.runAsync=n,(t=i.current)==null||t.cancel(),eT(a)}}},[t,n,r]),t?{onCancel:()=>{var e;(e=i.current)==null||e.cancel(),eT(a)}}:{}},_T=e=>{(0,v.useEffect)(()=>{let t=e?.();if(!_w(t))return t},[])},vT=()=>{let[,e]=(0,v.useState)({});return vw(()=>e({}))},yT=class{constructor(e,t,n,r={}){this.serviceRef=e,this.options=t,this.subscribe=n,this.initState=r,this.pluginImpls=[],this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=Object.assign(Object.assign(Object.assign({},this.state),{loading:!t.manual}),r)}setState(e={}){this.state=Object.assign(Object.assign({},this.state),e),this.subscribe()}runPluginHandler(e,...t){let n=this.pluginImpls.map(n=>n[e]?.call(n,...t)).filter(Boolean);return Object.assign({},...n)}runAsync(...e){return mw(this,void 0,void 0,function*(){var t,n,r,i,a,o,s,c,l,u;this.count+=1;let d=this.count,f=this.runPluginHandler(`onBefore`,e),{stopNow:p=!1,returnNow:m=!1}=f,h=pw(f,[`stopNow`,`returnNow`]);if(p||(this.setState(Object.assign({loading:!0,params:e},h)),m))return Promise.resolve(h.data);(n=(t=this.options).onBefore)==null||n.call(t,e);try{let{servicePromise:t}=this.runPluginHandler(`onRequest`,this.serviceRef.current,e);t||=this.serviceRef.current(...e);let n=yield t;if(d!==this.count)throw new Qw;return this.setState({data:n,error:void 0,loading:!1}),(i=(r=this.options).onSuccess)==null||i.call(r,n,e),this.runPluginHandler(`onSuccess`,n,e),(o=(a=this.options).onFinally)==null||o.call(a,e,n,void 0),d===this.count&&this.runPluginHandler(`onFinally`,e,n,void 0),n}catch(t){throw d===this.count?(this.setState({error:t,loading:!1}),(c=(s=this.options).onError)==null||c.call(s,t,e),this.runPluginHandler(`onError`,t,e),(u=(l=this.options).onFinally)==null||u.call(l,e,void 0,t),d===this.count&&this.runPluginHandler(`onFinally`,e,void 0,t),t):$w(t)?t:new Qw}})}run(...e){this.runAsync(...e).catch(e=>{$w(e)||this.options.onError||console.error(e)})}cancel(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler(`onCancel`)}refresh(){this.run(...this.state.params||[])}refreshAsync(){return this.runAsync(...this.state.params||[])}mutate(e){let t=hw(e)?e(this.state.data):e;this.runPluginHandler(`onMutate`,t),this.setState({data:t})}};function bT(e,t={},n=[]){let{manual:r=!1,ready:i=!0}=t,a=pw(t,[`manual`,`ready`]),o=Object.assign({manual:r,ready:i},a),s=Cw(e),c=vT(),l=Sw(()=>{let e=n.map(e=>(e?.onInit)?.call(e,o)).filter(Boolean);return new yT(s,o,c,Object.assign({},...e))},[]);return l.options=o,l.pluginImpls=n.map(e=>e(l,o)),_T(()=>{if(!r&&i){let e=l.state.params||t.defaultParams||[];l.run(...e)}}),ww(()=>{l.cancel()}),{loading:l.state.loading,data:l.state.data,error:l.state.error,params:l.state.params||[],cancel:vw(l.cancel.bind(l)),refresh:vw(l.refresh.bind(l)),refreshAsync:vw(l.refreshAsync.bind(l)),run:vw(l.run.bind(l)),runAsync:vw((...e)=>l.runAsync(...e)),mutate:vw(l.mutate.bind(l))}}function xT(e,t,n){return bT(e,t,[...n||[],nT,rT,cT,pT,gT,bw,Fw,mT])}var ST=xT;function CT(e=!1,t){let[n,r]=(0,v.useState)(e);return[n,(0,v.useMemo)(()=>{let n=t===void 0?!e:t;return{toggle:()=>r(t=>t===e?n:e),set:e=>r(e),setLeft:()=>r(e),setRight:()=>r(n)}},[])]}function wT(e=!1){let[t,{toggle:n,set:r}]=CT(!!e);return[t,(0,v.useMemo)(()=>({toggle:n,set:e=>r(!!e),setTrue:()=>r(!0),setFalse:()=>r(!1)}),[])]}function TT(e){let[t,n]=(0,v.useState)(e??{});return[t,vw(e=>{n(t=>{let n=hw(e)?e(t):e;return n?Object.assign(Object.assign({},t),n):t})})]}var ET=`modulepreload`,DT=function(e){return`/kkk/assets/`+e},OT={},kT=function(e){return e.pathname.endsWith(`.css`)},AT=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},jT=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=DT(t,n);let r=s(t),i=kT(r);return AT(OT,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:ET,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},MT=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,NT=/^[\\/]{2}/;function PT(e,t){return t+e.replace(/\\/g,`/`)}var FT=`popstate`;function IT(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function LT(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return HT(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:UT(t)}return GT(t,n,null,e)}function RT(e,t){if(e===!1||e==null)throw Error(t)}function zT(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function BT(){return Math.random().toString(36).substring(2,10)}function VT(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function HT(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?WT(t):t,state:n,key:t&&t.key||r||BT(),mask:i}}function UT({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function WT(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function GT(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=IT(e)?e:HT(h.location,e,t);n&&n(r,e),l=u()+1;let d=VT(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=IT(e)?e:HT(h.location,e,t);n&&n(r,e),l=u();let i=VT(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return KT(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(FT,d),c=e,()=>{i.removeEventListener(FT,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function KT(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),RT(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:UT(t);return i=i.replace(/ $/,`%20`),!n&&NT.test(i)&&(i=r+i),new URL(i,r)}function qT(e,t,n=`/`){return JT(e,t,n,!1)}function JT(e,t,n,r,i){let a=pE((typeof t==`string`?WT(t):t).pathname||`/`,n);if(a==null)return null;let o=i??YT(e),s=null,c=fE(a);for(let e=0;s==null&&e<o.length;++e)s=cE(o[e],c,r);return s}function YT(e){let t=XT(e);return QT(t),t}function XT(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;RT(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=xE([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(RT(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),XT(e.children,t,u,l,o)),(e.path!=null||e.index)&&t.push({path:l,score:oE(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=dE(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of ZT(e.path))a(e,t,!0,n)}),t}function ZT(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=ZT(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function QT(e){e.sort((e,t)=>e.score===t.score?sE(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var $T=/^:[\w-]+$/,eE=3,tE=2,nE=1,rE=10,iE=-2,aE=e=>e===`*`;function oE(e,t){let n=e.split(`/`),r=n.length;return n.some(aE)&&(r+=iE),t&&(r+=tE),n.filter(e=>!aE(e)).reduce((e,t)=>e+($T.test(t)?eE:t===``?nE:rE),r)}function sE(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function cE(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?uE(u,l,s.matcher,s.compiledParams):lE(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=lE({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:xE([a,d.pathname]),pathnameBase:CE(xE([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=xE([a,d.pathnameBase]))}return o}function lE(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=dE(e.path,e.caseSensitive,e.end);return uE(e,t,n,r)}function uE(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=SE(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=SE(a.slice(0,a.length-e.length),1)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function dE(e,t=!1,n=!0){zT(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function fE(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return zT(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function pE(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function mE(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?WT(e):e,a;return n?(n=bE(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?hE(n.substring(1),`/`):hE(n,t)):a=t,{pathname:a,search:wE(r),hash:TE(i)}}function hE(e,t){let n=SE(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function gE(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function _E(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function vE(e){let t=_E(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function yE(e,t,n,r=!1){let i;typeof e==`string`?i=WT(e):(i={...e},RT(!i.pathname||!i.pathname.includes(`?`),gE(`?`,`pathname`,`search`,i)),RT(!i.pathname||!i.pathname.includes(`#`),gE(`#`,`pathname`,`hash`,i)),RT(!i.search||!i.search.includes(`#`),gE(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=mE(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var bE=e=>e.replace(/[\\/]{2,}/g,`/`),xE=e=>bE(e.join(`/`));function SE(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var CE=e=>SE(e).replace(/^\/*/,`/`),wE=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,TE=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,EE=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function DE(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function OE(e){return xE(e.map(e=>e.route.path).filter(Boolean))||`/`}var kE=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function AE(e,t){let n=e;if(typeof n!=`string`||!MT.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(kE)try{let e=new URL(window.location.href),r=NT.test(n)?new URL(PT(n,e.protocol)):new URL(n),a=pE(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{zT(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var jE=new URL(`http://localhost`);function ME(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),jE)}catch{return jE}}function NE(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function PE(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function FE(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!NE(i,n),s=!NE(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!PE(e,i)||!NE(i,a)))throw Error(`External navigation is not allowed`)}var IE=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(IE);var LE=[`GET`,...IE];new Set(LE);var RE=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function zE(e){try{return RE.includes(new URL(e).protocol)}catch{return!1}}var BE=v.createContext(null);BE.displayName=`DataRouter`;var VE=v.createContext(null);VE.displayName=`DataRouterState`;var HE=v.createContext(!1);function UE(){return v.useContext(HE)}var WE=v.createContext({isTransitioning:!1});WE.displayName=`ViewTransition`;var GE=v.createContext(new Map);GE.displayName=`Fetchers`;var KE=v.createContext(null);KE.displayName=`Await`;var qE=v.createContext(null);qE.displayName=`Navigation`;var JE=v.createContext(null);JE.displayName=`Location`;var YE=v.createContext({outlet:null,matches:[],isDataRoute:!1});YE.displayName=`Route`;var XE=v.createContext(null);XE.displayName=`RouteError`;var ZE=`REACT_ROUTER_ERROR`,QE=`REDIRECT`,$E=`ROUTE_ERROR_RESPONSE`;function eD(e){if(e.startsWith(`${ZE}:${QE}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function tD(e){if(e.startsWith(`${ZE}:${$E}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new EE(t.status,t.statusText,t.data)}catch{}}function nD(e,{relative:t}={}){RT(rD(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=v.useContext(qE),{hash:i,pathname:a,search:o}=lD(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:xE([n,a])),r.createHref({pathname:s,search:o,hash:i})}function rD(){return v.useContext(JE)!=null}function iD(){return RT(rD(),`useLocation() may be used only in the context of a <Router> component.`),v.useContext(JE).location}var aD=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function oD(e){v.useContext(qE).static||v.useLayoutEffect(e)}function sD(){let{isDataRoute:e}=v.useContext(YE);return e?ED():cD()}function cD(){RT(rD(),`useNavigate() may be used only in the context of a <Router> component.`);let e=v.useContext(BE),{basename:t,navigator:n}=v.useContext(qE),{matches:r}=v.useContext(YE),{pathname:i}=iD(),a=JSON.stringify(vE(r)),o=v.useRef(!1);return oD(()=>{o.current=!0}),v.useCallback((r,s={})=>{if(zT(o.current,aD),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=yE(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:xE([t,c.pathname])),FE(typeof r==`string`?r:UT(r),n.createHref(c),ME(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}v.createContext(null);function lD(e,{relative:t}={}){let{matches:n}=v.useContext(YE),{pathname:r}=iD(),i=JSON.stringify(vE(n));return v.useMemo(()=>yE(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function uD(e,t){return dD(e,t)}function dD(e,t,n){RT(rD(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=v.useContext(qE),{matches:i}=v.useContext(YE),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;OD(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
21
-
22
- Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=iD(),d;if(t){let e=typeof t==`string`?WT(t):t;RT(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):qT(e,{pathname:p});zT(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),zT(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=vD(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:xE([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:xE([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?v.createElement(JE.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function fD(){let e=TD(),t=DE(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=v.createElement(v.Fragment,null,v.createElement(`p`,null,`💿 Hey developer 👋`),v.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,v.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,v.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),v.createElement(v.Fragment,null,v.createElement(`h2`,null,`Unexpected Application Error!`),v.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?v.createElement(`pre`,{style:i},n):null,o)}var pD=v.createElement(fD,null),mD=class extends v.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=tD(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:v.createElement(YE.Provider,{value:this.props.routeContext},v.createElement(XE.Provider,{value:e,children:this.props.component}));return this.context?v.createElement(gD,{error:e},t):t}};mD.contextType=HE;var hD=new WeakMap;function gD({children:e,error:t}){let{basename:n,navigator:r}=v.useContext(qE);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=eD(t.digest);if(e){let i=hD.get(t);if(i)throw i;let a=AE(e.location,n),o=a.absoluteURL||a.to;if(FE(e.location,o,ME(r),`allow-explicit`),zE(o))throw Error(`Invalid redirect location`);if(kE&&!hD.get(t)){if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw hD.set(t,n),n}}return v.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function _D({routeContext:e,match:t,children:n}){let r=v.useContext(BE);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),v.createElement(YE.Provider,{value:e},n)}function vD(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);RT(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:OE(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||pD,o&&(s<0&&c===0?(OD(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?v.createElement(n.route.Component,null):n.route.element?n.route.element:e,v.createElement(_D,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?v.createElement(mD,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function yD(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function bD(e){let t=v.useContext(BE);return RT(t,yD(e)),t}function xD(e){let t=v.useContext(VE);return RT(t,yD(e)),t}function SD(e){let t=v.useContext(YE);return RT(t,yD(e)),t}function CD(e){let t=SD(e),n=t.matches[t.matches.length-1];return RT(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function wD(){return CD(`useRouteId`)}function TD(){let e=v.useContext(XE),t=xD(`useRouteError`),n=CD(`useRouteError`);return e===void 0?t.errors?.[n]:e}function ED(){let{router:e}=bD(`useNavigate`),t=CD(`useNavigate`),n=v.useRef(!1);return oD(()=>{n.current=!0}),v.useCallback(async(r,i={})=>{zT(n.current,aD),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var DD={};function OD(e,t,n){!t&&!DD[e]&&(DD[e]=!0,zT(!1,n))}v.memo(kD);function kD({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return dD(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function AD({to:e,replace:t,state:n,relative:r}){RT(rD(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i,navigator:a}=v.useContext(qE);zT(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:o}=v.useContext(YE),{pathname:s}=iD(),c=sD(),l=yE(e,vE(o),s,r===`path`);FE(typeof e==`string`?e:UT(e),a.createHref(l),ME(a),`reject`);let u=JSON.stringify(l);return v.useEffect(()=>{c(JSON.parse(u),{replace:t,state:n,relative:r})},[c,u,r,t,n]),null}function jD(e){RT(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function MD({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){RT(!rD(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=v.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=WT(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=v.useMemo(()=>{let e=pE(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return zT(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:v.createElement(qE.Provider,{value:c},v.createElement(JE.Provider,{children:t,value:h}))}function ND({children:e,location:t}){return uD(PD(e),t)}v.Component;function PD(e,t=[]){let n=[];return v.Children.forEach(e,(e,r)=>{if(!v.isValidElement(e))return;let i=[...t,r];if(e.type===v.Fragment){n.push.apply(n,PD(e.props.children,i));return}RT(e.type===jD,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),RT(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=PD(e.props.children,i)),n.push(a)}),n}var FD=`get`,ID=`application/x-www-form-urlencoded`;function LD(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function RD(e){return LD(e)&&e.tagName.toLowerCase()===`button`}function zD(e){return LD(e)&&e.tagName.toLowerCase()===`form`}function BD(e){return LD(e)&&e.tagName.toLowerCase()===`input`}function VD(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function HD(e,t){return e.button===0&&(!t||t===`_self`)&&!VD(e)}function UD(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function WD(e,t){let n=UD(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var GD=null;function KD(){if(GD===null)try{new FormData(document.createElement(`form`),0),GD=!1}catch{GD=!0}return GD}var qD=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function JD(e){return e!=null&&!qD.has(e)?(zT(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ID}"`),null):e}function YD(e,t){let n,r,i,a,o;if(zD(e)){let o=e.getAttribute(`action`);r=o?pE(o,t):null,n=e.getAttribute(`method`)||FD,i=JD(e.getAttribute(`enctype`))||ID,a=new FormData(e)}else if(RD(e)||BD(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?pE(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||FD,i=JD(e.getAttribute(`formenctype`))||JD(o.getAttribute(`enctype`))||ID,a=new FormData(o,e),!KD()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(LD(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=FD,r=null,i=ID,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function XD(e,t){if(e===!1||e==null)throw Error(t)}function ZD(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return i.pathname=n?i.pathname.endsWith(`/`)?`${i.pathname}_.${r}`:`${i.pathname}.${r}`:i.pathname===`/`?`_root.${r}`:t&&pE(i.pathname,t)===`/`?`${SE(t)}/_root.${r}`:`${SE(i.pathname)}.${r}`,i}async function QD(e,t){if(e.id in t)return t[e.id];try{let n=await jT(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function $D(e){return e!=null&&typeof e.page==`string`}function eO(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function tO(e,t,n){return oO((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await QD(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(eO).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function nO(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function rO(e,t,{includeHydrateFallback:n}={}){return iO(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function iO(e){return[...new Set(e)]}function aO(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function oO(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!$D(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(aO(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function sO(){let e=v.useContext(BE);return XD(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function cO(){let e=v.useContext(VE);return XD(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var lO=v.createContext(void 0);lO.displayName=`FrameworkContext`;function uO(){let e=v.useContext(lO);return XD(e,`You must render this element inside a <HydratedRouter> element`),e}function dO(e,t){let n=v.useContext(lO),[r,i]=v.useState(!1),[a,o]=v.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=v.useRef(null);v.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),v.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:fO(s,p),onBlur:fO(c,m),onMouseEnter:fO(l,p),onMouseLeave:fO(u,m),onTouchStart:fO(d,p)}]:[a,f,{}]:[!1,f,{}]}function fO(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function pO({page:e,...t}){let n=UE(),{nonce:r}=uO(),{router:i}=sO(),a=v.useMemo(()=>qT(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?v.createElement(hO,{page:e,matches:a,...t}):v.createElement(gO,{page:e,matches:a,...t})):null}function mO(e){let{manifest:t,routeModules:n}=uO(),[r,i]=v.useState([]);return v.useEffect(()=>{let r=!1;return tO(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function hO({page:e,matches:t,...n}){let r=iD(),{future:i}=uO(),{basename:a}=sO(),o=v.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=ZD(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return v.createElement(v.Fragment,null,o.map(e=>v.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function gO({page:e,matches:t,...n}){let r=iD(),{future:i,manifest:a,routeModules:o}=uO(),{basename:s}=sO(),{loaderData:c,matches:l}=cO(),u=v.useMemo(()=>nO(e,t,l,a,r,`data`),[e,t,l,a,r]),d=v.useMemo(()=>nO(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=v.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=ZD(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=v.useMemo(()=>rO(d,a),[d,a]),m=mO(d);return v.createElement(v.Fragment,null,f.map(e=>v.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>v.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>v.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function _O(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}v.Component;var vO=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{vO&&(window.__reactRouterVersion=`7.18.4`)}catch{}function yO({basename:e,children:t,useTransitions:n,window:r}){let i=v.useRef();i.current??=LT({window:r,v5Compat:!0});let a=i.current,[o,s]=v.useState({action:a.action,location:a.location}),c=v.useCallback(e=>{n===!1?s(e):v.startTransition(()=>s(e))},[n]);return v.useLayoutEffect(()=>a.listen(c),[a,c]),v.createElement(MD,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}var bO=v.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=v.useContext(qE),y=typeof l==`string`&&MT.test(l),b=AE(l,h);l=b.to;let x=nD(l,{relative:r}),S=iD(),C=null;if(o){let e=yE(o,[],S.mask?S.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:xE([h,e.pathname])),C=g.createHref(e)}let[w,T,E]=dO(n,p),D=TO(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function O(t){e&&e(t),t.defaultPrevented||D(t)}let k=!(b.isExternal||i),A=v.createElement(`a`,{...p,...E,href:(k?C:void 0)||b.absoluteURL||x,onClick:k?O:e,ref:_O(m,T),target:c,"data-discover":!y&&t===`render`?`true`:void 0});return w&&!y?v.createElement(v.Fragment,null,A,v.createElement(pO,{page:x})):A});bO.displayName=`Link`;var xO=v.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=lD(a,{relative:c.relative}),d=iD(),f=v.useContext(VE),{navigator:p,basename:m}=v.useContext(qE),h=f!=null&&jO(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,y=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),y=y?y.toLowerCase():null,g=g.toLowerCase()),y&&m&&(y=pE(y,m)||y);let b=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,x=_===g||!r&&_.startsWith(g)&&_.charAt(b)===`/`,S=y!=null&&(y===g||!r&&y.startsWith(g)&&y.charAt(g.length)===`/`),C={isActive:x,isPending:S,isTransitioning:h},w=x?e:void 0,T;T=typeof n==`function`?n(C):[n,x?`active`:null,S?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return v.createElement(bO,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});xO.displayName=`NavLink`;var SO=v.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=FD,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=v.useContext(qE),g=kO(),_=AO(s,{relative:l}),y=o.toLowerCase()===`get`?`get`:`post`,b=typeof s==`string`&&MT.test(s);return v.createElement(`form`,{ref:m,method:y,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?v.startTransition(()=>p()):p()},...p,"data-discover":!b&&e===`render`?`true`:void 0})});SO.displayName=`Form`;function CO(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function wO(e){let t=v.useContext(BE);return RT(t,CO(e)),t}function TO(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=sD(),d=iD(),f=lD(e,{relative:o});return v.useCallback(p=>{if(HD(p,t)){p.preventDefault();let t=n===void 0?UT(d)===UT(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?v.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function EO(e){zT(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=v.useRef(UD(e)),n=v.useRef(!1),r=iD(),i=v.useMemo(()=>WD(r.search,n.current?null:t.current),[r.search]),a=sD();return[i,v.useCallback((e,t)=>{let r=UD(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var DO=0,OO=()=>`__${String(++DO)}__`;function kO(){let{router:e}=wO(`useSubmit`),{basename:t}=v.useContext(qE),n=wD(),r=e.fetch,i=e.navigate;return v.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=YD(e,t);if(a.navigate===!1){let e=a.fetcherKey||OO();await r(e,n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function AO(e,{relative:t}={}){let{basename:n}=v.useContext(qE),r=v.useContext(YE);RT(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...lD(e||`.`,{relative:t})},o=iD();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:xE([n,a.pathname])),UT(a)}function jO(e,{relative:t}={}){let n=v.useContext(WE);RT(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=wO(`useViewTransitionState`),i=lD(e,{relative:t});if(!n.isTransitioning)return!1;let a=pE(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=pE(n.nextLocation.pathname,r)||n.nextLocation.pathname;return lE(i.pathname,o)!=null||lE(i.pathname,a)!=null}var MO={userId:`userId`,accessToken:`accessToken`,refreshToken:`refreshToken`},NO=`kkk-auth-changed`,PO=()=>localStorage.getItem(MO.accessToken),FO=()=>localStorage.getItem(MO.refreshToken),IO=()=>localStorage.getItem(MO.userId),LO=()=>!!(PO()&&IO()),RO=e=>{localStorage.setItem(MO.userId,e.userId),localStorage.setItem(MO.accessToken,e.accessToken),localStorage.setItem(MO.refreshToken,e.refreshToken),window.dispatchEvent(new Event(NO))},zO=e=>{localStorage.setItem(MO.accessToken,e),window.dispatchEvent(new Event(NO))},BO=()=>{localStorage.removeItem(MO.userId),localStorage.removeItem(MO.accessToken),localStorage.removeItem(MO.refreshToken),window.dispatchEvent(new Event(NO))},VO=l(o(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}}))(),1);function HO(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function UO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var WO={autoSleep:120,force3D:`auto`,nullTargetWarn:1,units:{lineHeight:``}},GO={duration:.5,overwrite:!1,delay:0},KO,qO,JO,YO=1e8,XO=1/YO,ZO=Math.PI*2,QO=ZO/4,$O=0,ek=Math.sqrt,tk=Math.cos,nk=Math.sin,rk=function(e){return typeof e==`string`},ik=function(e){return typeof e==`function`},ak=function(e){return typeof e==`number`},ok=function(e){return e===void 0},sk=function(e){return typeof e==`object`},ck=function(e){return e!==!1},lk=function(){return typeof window<`u`},uk=function(e){return ik(e)||rk(e)},dk=typeof ArrayBuffer==`function`&&ArrayBuffer.isView||function(){},fk=Array.isArray,pk=/random\([^)]+\)/g,mk=/,\s*/g,hk=/(?:-?\.?\d|\.)+/gi,gk=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,_k=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,vk=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,yk=/[+-]=-?[.\d]+/,bk=/[^,'"\[\]\s]+/gi,xk=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Sk,Ck,wk,Tk,Ek={},Dk={},Ok,kk=function(e){return(Dk=sA(e,Ek))&&EM},Ak=function(e,t){return console.warn(`Invalid property`,e,`set to`,t,`Missing plugin? gsap.registerPlugin()`)},jk=function(e,t){return!t&&console.warn(e)},Mk=function(e,t){return e&&(Ek[e]=t)&&Dk&&(Dk[e]=t)||Ek},Nk=function(){return 0},Pk={suppressEvents:!0,isStart:!0,kill:!1},Fk={suppressEvents:!0,kill:!1},Ik={suppressEvents:!0},Lk={},Rk=[],zk={},Bk,Vk={},Hk={},Uk=30,Wk=[],Gk=``,Kk=function(e){var t=e[0],n,r;if(sk(t)||ik(t)||(e=[e]),!(n=(t._gsap||{}).harness)){for(r=Wk.length;r--&&!Wk[r].targetTest(t););n=Wk[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new Ij(e[r],n)))||e.splice(r,1);return e},qk=function(e){return e._gsap||Kk(WA(e))[0]._gsap},Jk=function(e,t,n){return(n=e[t])&&ik(n)?e[t]():ok(n)&&e.getAttribute&&e.getAttribute(t)||n},Yk=function(e,t){return(e=e.split(`,`)).forEach(t)||e},Xk=function(e){return Math.round(e*1e5)/1e5||0},Zk=function(e){return Math.round(e*1e7)/1e7||0},Qk=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},$k=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++r<n;);return r<n},eA=function(){var e=Rk.length,t=Rk.slice(0),n,r;for(zk={},Rk.length=0,n=0;n<e;n++)r=t[n],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},tA=function(e){return!!(e._initted||e._startAt||e.add)},nA=function(e,t,n,r){Rk.length&&!qO&&eA(),e.render(t,n,r||!!(qO&&t<0&&tA(e))),Rk.length&&!qO&&eA()},rA=function(e){var t=parseFloat(e);return(t||t===0)&&(e+``).match(bk).length<2?t:rk(e)?e.trim():e},iA=function(e){return e},aA=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},oA=function(e){return function(t,n){for(var r in n)r in t||r===`duration`&&e||r===`ease`||(t[r]=n[r])}},sA=function(e,t){for(var n in t)e[n]=t[n];return e},cA=function e(t,n){for(var r in n)r!==`__proto__`&&r!==`constructor`&&r!==`prototype`&&(t[r]=sk(n[r])?e(t[r]||(t[r]={}),n[r]):n[r]);return t},lA=function(e,t){var n={},r;for(r in e)r in t||(n[r]=e[r]);return n},uA=function(e){var t=e.parent||Sk,n=e.keyframes?oA(fk(e.keyframes)):aA;if(ck(e.inherit))for(;t;)n(e,t.vars.defaults),t=t.parent||t._dp;return e},dA=function(e,t){for(var n=e.length,r=n===t.length;r&&n--&&e[n]===t[n];);return n<0},fA=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},pA=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},mA=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},hA=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},gA=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},_A=function(e,t,n,r){return e._startAt&&(qO?e._startAt.revert(Fk):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},vA=function e(t){return!t||t._ts&&e(t.parent)},yA=function(e){return e._repeat?bA(e._tTime,e=e.duration()+e._rDelay)*e:0},bA=function(e,t){var n=Math.floor(e=Zk(e/t));return e&&n===e?n-1:n},xA=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},SA=function(e){return e._end=Zk(e._start+(e._tDur/Math.abs(e._ts||e._rts||XO)||0))},CA=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=Zk(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),SA(e),n._dirty||hA(n,e)),e},wA=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(n=xA(e.rawTime(),t),(!t._dur||RA(0,t.totalDuration(),n)-t._tTime>XO)&&t.render(n,!0)),hA(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=-XO}},TA=function(e,t,n,r){return t.parent&&mA(t),t._start=Zk((ak(n)?n:n||e!==Sk?FA(e,n,t):e._time)+t._delay),t._end=Zk(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),fA(e,t,`_first`,`_last`,e._sort?`_start`:0),kA(t)||(e._recent=t),r||wA(e,t),e._ts<0&&CA(e,e._tTime),e},EA=function(e,t){return(Ek.ScrollTrigger||Ak(`scrollTrigger`,t))&&Ek.ScrollTrigger.create(t,e)},DA=function(e,t,n,r,i){if(Gj(e,t,i),!e._initted)return 1;if(!n&&e._pt&&!qO&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&Bk!==Sj.frame)return Rk.push(e),e._lazy=[i,r],1},OA=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},kA=function(e){var t=e.data;return t===`isFromStart`||t===`isStart`},AA=function(e,t,n,r){var i=e.ratio,a=t<0||!t&&(!e._start&&OA(e)&&(e._initted||!kA(e))||(e._ts<0||e._dp._ts<0)&&!kA(e))?0:1,o=e._rDelay,s=0,c,l,u;if(o&&e._repeat&&(s=RA(0,e._tDur,t),l=bA(s,o),e._yoyo&&l&1&&(a=1-a),l!==bA(e._tTime,o)&&(i=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==i||qO||r||e._zTime===XO||!t&&e._zTime){if(!e._initted&&DA(e,t,r,n,s))return;for(u=e._zTime,e._zTime=t||(n?XO: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&&_A(e,t,n,!0),e._onUpdate&&!n&&sj(e,`onUpdate`),s&&e._repeat&&!n&&e.parent&&sj(e,`onRepeat`),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&mA(e,1),!n&&!qO&&(sj(e,a?`onComplete`:`onReverseComplete`,!0),e._prom&&e._prom()))}else e._zTime||=t},jA=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}},MA=function(e,t,n,r){var i=e._repeat,a=Zk(t)||0,o=e._tTime/e._tDur;return o&&!r&&(e._time*=a/e._dur),e._dur=a,e._tDur=i?i<0?1e10:Zk(a*(i+1)+e._rDelay*i):a,o>0&&!r&&CA(e,e._tTime=e._tDur*o),e.parent&&SA(e),n||hA(e.parent,e),e},NA=function(e){return e instanceof Rj?hA(e):MA(e,e._dur)},PA={_start:0,endTime:Nk,totalDuration:Nk},FA=function e(t,n,r){var i=t.labels,a=t._recent||PA,o=t.duration()>=YO?a.endTime(!1):t._dur,s,c,l;return rk(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*(fk(r)?r[0]:r).totalDuration()),s>1?e(t,n.substr(0,s-1),r)+c:o+c)):n==null?o:+n},IA=function(e,t,n){var r=ak(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=ck(s.vars.inherit)&&s.parent;a.immediateRender=ck(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[i-1]}return new Qj(t[0],a,t[i+1])},LA=function(e,t){return e||e===0?t(e):t},RA=function(e,t,n){return n<e?e:n>t?t:n},zA=function(e,t){return!rk(e)||!(t=xk.exec(e))?``:t[1]},BA=function(e,t,n){return LA(n,function(n){return RA(e,t,n)})},VA=[].slice,HA=function(e,t){return e&&sk(e)&&`length`in e&&(!t&&!e.length||e.length-1 in e&&sk(e[0]))&&!e.nodeType&&e!==Ck},UA=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(e){var r;return rk(e)&&!t||HA(e,1)?(r=n).push.apply(r,WA(e)):n.push(e)})||n},WA=function(e,t,n){return JO&&!t&&JO.selector?JO.selector(e):rk(e)&&!n&&(wk||!Cj())?VA.call((t||Tk).querySelectorAll(e),0):fk(e)?UA(e,n):HA(e)?VA.call(e,0):e?[e]:[]},GA=function(e){return e=WA(e)[0]||jk(`Invalid scope`)||{},function(t){var n=e.current||e.nativeElement||e;return WA(t,n.querySelectorAll?n:n===e?jk(`Invalid scope`)||Tk.createElement(`div`):e)}},KA=function(e){return e.sort(function(){return .5-Math.random()})},qA=function(e){if(ik(e))return e;var t=sk(e)?e:{each:e},n=jj(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 rk(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,YO])[1],!S){for(b=-YO;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===YO?0:s?f*u/S-.5:r/S|0,b=0,x=YO,y=0;y<f;y++)g=y%S-m,_=h-(y/S|0),p[y]=v=c?Math.abs(c===`y`?_:g):ek(g*g+_*_),v>b&&(b=v),v<x&&(x=v);r===`random`&&KA(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=zA(t.amount||t.each)||0,n=n&&f<0?Aj(n):n}return f=(p[e]-p.min)/p.max||0,Zk(p.b+(n?n(f):f)*p.v)+p.u}},JA=function(e){var t=10**((e+``).split(`.`)[1]||``).length;return function(n){var r=Zk(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(ak(n)?0:zA(n))}},YA=function(e,t){var n=fk(e),r,i;return!n&&sk(e)&&(r=n=e.radius||YO,e.values?(e=WA(e.values),(i=!ak(e[0]))&&(r*=r)):e=JA(e.increment)),LA(t,n?ik(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=YO,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||ak(t)?s:s+zA(t)}:JA(e))},XA=function(e,t,n,r){return LA(fk(e)?!t:n===!0?!!(n=0):!r,function(){return fk(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})},ZA=function(){var e=[...arguments];return function(t){return e.reduce(function(e,t){return t(e)},t)}},QA=function(e,t){return function(n){return e(parseFloat(n))+(t||zA(n))}},$A=function(e,t,n){return ij(e,t,0,1,n)},ej=function(e,t,n){return LA(n,function(n){return e[~~t(n)]})},tj=function e(t,n,r){var i=n-t;return fk(t)?ej(t,e(0,t.length),n):LA(r,function(e){return(i+(e-t)%i)%i+t})},nj=function e(t,n,r){var i=n-t,a=i*2;return fk(t)?ej(t,e(0,t.length-1),n):LA(r,function(e){return e=(a+(e-t)%a)%a||0,t+(e>i?a-e:e)})},rj=function(e){return e.replace(pk,function(e){var t=e.indexOf(`[`)+1,n=e.substring(t||7,t?e.indexOf(`]`):e.length-1).split(mk);return XA(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},ij=function(e,t,n,r,i){var a=t-e,o=r-n;return LA(i,function(t){return n+((t-e)/a*o||0)})},aj=function e(t,n,r,i){var a=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!a){var o=rk(t),s={},c,l,u,d,f;if(r===!0&&(i=1)&&(r=null),o)t={p:t},n={p:n};else if(fk(t)&&!fk(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=sA(fk(t)?[]:{},t));if(!u){for(c in n)Bj.call(s,t,c,`get`,n[c]);a=function(e){return sM(e,s)||(o?t.p:t)}}}return LA(r,a)},oj=function(e,t,n){var r=e.labels,i=YO,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},sj=function(e,t,n){var r=e.vars,i=r[t],a=JO,o=e._ctx,s,c,l;if(i)return s=r[t+`Params`],c=r.callbackScope||e,n&&Rk.length&&eA(),o&&(JO=o),l=s?i.apply(c,s):i.call(c),JO=a,l},cj=function(e){return mA(e),e.scrollTrigger&&e.scrollTrigger.kill(!!qO),e.progress()<1&&sj(e,`onInterrupt`),e},lj,uj=[],dj=function(e){if(e){if(e=!e.name&&e.default||e,lk()||e.headless){var t=e.name,n=ik(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:Nk,render:sM,add:Bj,kill:lM,modifier:cM,rawVars:0},a={targetTest:0,get:0,getSetter:rM,aliases:{},register:0};if(Cj(),e!==r){if(Vk[t])return;aA(r,aA(lA(e,i),a)),sA(r.prototype,sA(i,lA(e,a))),Vk[r.prop=t]=r,e.targetTest&&(Wk.push(r),Lk[t]=1),t=(t===`css`?`CSS`:t.charAt(0).toUpperCase()+t.substr(1))+`Plugin`}Mk(t,r),e.register&&e.register(EM,r,fM)}else uj.push(e)}},fj=255,pj={aqua:[0,fj,fj],lime:[0,fj,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,fj],navy:[0,0,128],white:[fj,fj,fj],olive:[128,128,0],yellow:[fj,fj,0],orange:[fj,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[fj,0,0],pink:[fj,192,203],cyan:[0,fj,fj],transparent:[fj,fj,fj,0]},mj=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)*fj+.5|0},hj=function(e,t,n){var r=e?ak(e)?[e>>16,e>>8&fj,e&fj]:0:pj.black,i,a,o,s,c,l,u,d,f,p;if(!r){if(e.substr(-1)===`,`&&(e=e.substr(0,e.length-1)),pj[e])r=pj[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&fj,r&fj,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&fj,e&fj]}else if(e.substr(0,3)===`hsl`){if(r=p=e.match(hk),!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]=mj(s+1/3,i,a),r[1]=mj(s,i,a),r[2]=mj(s-1/3,i,a);else if(~e.indexOf(`=`))return r=e.match(gk),n&&r.length<4&&(r[3]=1),r}else r=e.match(hk)||pj.transparent;r=r.map(Number)}return t&&!p&&(i=r[0]/fj,a=r[1]/fj,o=r[2]/fj,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},gj=function(e){var t=[],n=[],r=-1;return e.split(vj).forEach(function(e){var i=e.match(_k)||[];t.push.apply(t,i),n.push(r+=i.length+1)}),t.c=n,t},_j=function(e,t,n){var r=``,i=(e+r).match(vj),a=t?`hsla(`:`rgba(`,o=0,s,c,l,u;if(!i)return e;if(i=i.map(function(e){return(e=hj(e,t,1))&&a+(t?e[0]+`,`+e[1]+`%,`+e[2]+`%,`+e[3]:e.join(`,`))+`)`}),n&&(l=gj(e),s=n.c,s.join(r)!==l.c.join(r)))for(c=e.replace(vj,`1`).split(_k),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(vj),u=c.length-1;o<u;o++)r+=c[o]+i[o];return r+c[u]},vj=function(){var e=`(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b`,t;for(t in pj)e+=`|`+t+`\\b`;return RegExp(e+`)`,`gi`)}(),yj=/hsl[a]?\(/,bj=function(e){var t=e.join(` `),n;if(vj.lastIndex=0,vj.test(t))return n=yj.test(t),e[1]=_j(e[1],n),e[0]=_j(e[0],n,gj(e[1])),!0},xj,Sj=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(){Ok&&(!wk&&lk()&&(Ck=wk=window,Tk=Ck.document||{},Ek.gsap=EM,(Ck.gsapVersions||(Ck.gsapVersions=[])).push(EM.version),kk(Dk||Ck.GreenSockGlobals||!Ck.gsap&&Ck||{}),uj.forEach(dj)),u=typeof requestAnimationFrame<`u`&&requestAnimationFrame,c&&d.sleep(),l=u||function(e){return setTimeout(e,o-d.time*1e3+1|0)},xj=1,m(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(c),xj=0,l=Nk},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),Cj(),r},remove:function(e,t){~(t=s.indexOf(e))&&s.splice(t,1)&&p>=t&&p--},_listeners:s},d}(),Cj=function(){return!xj&&Sj.wake()},wj={},Tj=/^[\d.\-M][\d.\-,\s]/,Ej=/["']/g,Dj=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(Ej,``).trim():+c,r=s.substr(o+1).trim();return t},Oj=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)},kj=function(e){var t=(e+``).split(`(`),n=wj[t[0]];return n&&t.length>1&&n.config?n.config.apply(null,~e.indexOf(`{`)?[Dj(t[1])]:Oj(e).split(`,`).map(rA)):wj._CE&&Tj.test(e)?wj._CE(``,e):n},Aj=function(e){return function(t){return 1-e(1-t)}},jj=function(e,t){return e&&(ik(e)?e:wj[e]||kj(e))||t},Mj=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 Yk(e,function(e){for(var t in wj[e]=Ek[e]=i,wj[a=e.toLowerCase()]=n,i)wj[a+(t===`easeIn`?`.in`:t===`easeOut`?`.out`:`.inOut`)]=wj[e+`.`+t]=i[t]}),i},Nj=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},Pj=function e(t,n,r){var i=n>=1?n:1,a=(r||(t?.3:.45))/(n<1?n:1),o=a/ZO*(Math.asin(1/i)||0),s=function(e){return e===1?1:i*2**(-10*e)*nk((e-o)*a)+1},c=t===`out`?s:t===`in`?function(e){return 1-s(1-e)}:Nj(s);return a=ZO/a,c.config=function(n,r){return e(t,n,r)},c},Fj=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)}:Nj(r);return i.config=function(n){return e(t,n)},i};Yk(`Linear,Quad,Cubic,Quart,Quint,Strong`,function(e,t){var n=t<5?t+1:t;Mj(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})}),wj.Linear.easeNone=wj.none=wj.Linear.easeIn,Mj(`Elastic`,Pj(`in`),Pj(`out`),Pj()),(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};Mj(`Bounce`,function(e){return 1-a(1-e)},a)})(7.5625,2.75),Mj(`Expo`,function(e){return 2**(10*(e-1))*e+e*e*e*e*e*e*(1-e)}),Mj(`Circ`,function(e){return-(ek(1-e*e)-1)}),Mj(`Sine`,function(e){return e===1?1:-tk(e*QO)+1}),Mj(`Back`,Fj(`in`),Fj(`out`),Fj()),wj.SteppedEase=wj.steps=Ek.SteppedEase={config:function(e,t){e===void 0&&(e=1);var n=1/e,r=e+ +!t,i=+!!t,a=1-XO;return function(e){return((r*RA(0,a,e)|0)+i)*n}}},GO.ease=wj[`quad.out`],Yk(`onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt`,function(e){return Gk+=e+`,`+e+`Params,`});var Ij=function(e,t){this.id=$O++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:Jk,this.set=t?t.getSetter:rM},Lj=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,MA(this,+e.duration,1,1),this.data=e.data,JO&&(this._ctx=JO,JO.data.push(this)),xj||Sj.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,MA(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(Cj(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(CA(this,e),!n._dp||n.parent||wA(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)&&TA(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===XO||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),nA(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+yA(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)+yA(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?bA(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return this._rts===-XO?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?xA(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-XO?0:this._rts,this.totalTime(RA(-Math.abs(this._delay),this.totalDuration(),n),t!==!1),SA(this),gA(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):(Cj(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==XO&&(this._tTime-=XO)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=Zk(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&TA(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(ck(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?xA(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){e===void 0&&(e=Ik);var t=qO;return qO=e,tA(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!==`nested`&&e.kill!==!1&&this.kill(),qO=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,NA(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,NA(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(FA(this,e),ck(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,ck(t)),this._dur||(this._zTime=-XO),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?-XO:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-XO,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)-XO)},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=ik(e)?e:iA,a=function(){var e=t.then;t.then=null,n&&n(),ik(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(){cj(this)},e}();aA(Lj.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:-XO,_prom:0,_ps:!1,_rts:1});var Rj=function(e){UO(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=ck(t.sortChildren),Sk&&TA(t.parent||Sk,HO(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&EA(HO(r),t.scrollTrigger),r}var n=t.prototype;return n.to=function(e,t,n){return IA(0,arguments,this),this},n.from=function(e,t,n){return IA(1,arguments,this),this},n.fromTo=function(e,t,n,r){return IA(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,uA(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new Qj(e,t,FA(this,n),1),this},n.call=function(e,t,n){return TA(this,Qj.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 Qj(e,n,FA(this,i)),this},n.staggerFrom=function(e,t,n,r,i,a,o){return n.runBackwards=1,uA(n).immediateRender=ck(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,uA(r).immediateRender=ck(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:Zk(e),s=this._zTime<0!=e<0&&(this._initted||!a),c,l,u,d,f,p,m,h,g,_,v,y;if(this!==Sk&&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=Zk(o%f),o===i?(d=this._repeat,c=a):(_=Zk(o/f),d=~~_,d&&d===_&&(c=a,d--),c>a&&(c=a)),_=bA(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:Zk(d*f)),t,!a)._lock=0,this._tTime=o,!t&&this.parent&&sj(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=jA(this,Zk(r),Zk(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&&!_&&(sj(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=-XO);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||qO&&tA(l)),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=S?-XO:XO);break}}l=u}}if(m&&!t&&(this.pause(),m.render(c>=r?0:-XO)._zTime=c>=r?1:-1,this._ts))return this._start=g,SA(this),this.render(e,t,n);this._onUpdate&&!t&&sj(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)&&mA(this,1),!t&&!(e<0&&!r)&&(o||r||!i)&&(sj(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(ak(t)||(t=FA(this,t,e)),!(e instanceof Lj)){if(fk(e))return e.forEach(function(e){return n.add(e,t)}),this;if(rk(e))return this.addLabel(e,t);if(ik(e))e=Qj.delayedCall(0,e);else return this}return this===e?this:TA(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=-YO);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof Qj?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 rk(e)?this.removeLabel(e):ik(e)?this.killTweensOf(e):(e.parent===this&&pA(this,e),e===this._recent&&(this._recent=this._last),hA(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Zk(Sj.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]=FA(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=Qj.delayedCall(0,t||Nk,n);return r.data=`isPause`,this._hasPause=1,TA(this,r,FA(this,e))},n.removePause=function(e){var t=this._first;for(e=FA(this,e);t;)t._start===e&&t.data===`isPause`&&mA(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)Uj!==r[i]&&r[i].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n=[],r=WA(e),i=this._first,a=ak(t),o;i;)i instanceof Qj?$k(i._targets,r)&&(a?(!Uj||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=FA(n,e),i=t,a=i.startAt,o=i.onStart,s=i.onStartParams,c=i.immediateRender,l,u=Qj.to(n,aA({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())||XO,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&&MA(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,aA({startAt:{time:FA(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return e===void 0&&(e=this._time),oj(this,FA(this,e))},n.previousLabel=function(e){return e===void 0&&(e=this._time),oj(this,FA(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+XO)},n.shiftChildren=function(e,t,n){n===void 0&&(n=0);var r=this._first,i=this.labels,a;for(e=Zk(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 hA(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={}),hA(this)},n.totalDuration=function(e){var t=0,n=this,r=n._last,i=YO,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,TA(n,r,o-r._delay,1)._lock=0):i=o,o<0&&r._ts&&(t-=o,(!s&&!n._dp||s&&s.smoothChildTiming)&&(n._start+=Zk(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;MA(n,n===Sk&&n._time>t?n._time:t,1,1),n._dirty=0}return n._tDur},t.updateRoot=function(e){if(Sk._ts&&(nA(Sk,xA(e,Sk)),Bk=Sj.frame),Sj.frame>=Uk){Uk+=WO.autoSleep||120;var t=Sk._first;if((!t||!t._ts)&&WO.autoSleep&&Sj._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||Sj.sleep()}}},t}(Lj);aA(Rj.prototype,{_lock:0,_hasPause:0,_forcing:0});var zj=function(e,t,n,r,i,a,o){var s=new fM(this._pt,e,t,0,1,oM,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=rj(r)),a&&(_=[n,r],a(_,e,t),n=_[0],r=_[1]),d=n.match(vk)||[];u=vk.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)===`=`?Qk(h,p)-h:parseFloat(p)-h,m:f&&f<4?Math.round:0},c=vk.lastIndex);return s.c=c<r.length?r.substring(c,r.length):``,s.fp=o,(yk.test(r)||g)&&(s.e=0),this._pt=s,s},Bj=function(e,t,n,r,i,a,o,s,c,l){ik(r)&&(r=r(i||0,e,a));var u=e[t],d=n===`get`?ik(u)?c?e[t.indexOf(`set`)||!ik(e[`get`+t.substr(3)])?t:`get`+t.substr(3)](c):e[t]():u:n,f=ik(u)?c?tM:eM:$j,p;if(rk(r)&&(~r.indexOf(`random(`)&&(r=rj(r)),r.charAt(1)===`=`&&(p=Qk(d,r)+(zA(d)||0),(p||p===0)&&(r=p))),!l||d!==r||Wj)return!isNaN(d*r)&&r!==``?(p=new fM(this._pt,e,t,+d||0,r-(d||0),typeof u==`boolean`?aM:iM,0,f),c&&(p.fp=c),o&&p.modifier(o,this,e),this._pt=p):(!u&&!(t in e)&&Ak(t,r),zj.call(this,e,t,d,r,f,s||WO.stringFilter,c))},Vj=function(e,t,n,r,i){if(ik(e)&&(e=Yj(e,i,t,n,r)),!sk(e)||e.style&&e.nodeType||fk(e)||dk(e))return rk(e)?Yj(e,i,t,n,r):e;var a={},o;for(o in e)a[o]=Yj(e[o],i,t,n,r);return a},Hj=function(e,t,n,r,i,a){var o,s,c,l;if(Vk[e]&&(o=new Vk[e]).init(i,o.rawVars?t[e]:Vj(t[e],r,i,a,n),n,r,a)!==!1&&(n._pt=s=new fM(n._pt,i,e,0,1,o.render,o,0,o.priority),n!==lj))for(c=n._ptLookup[n._targets.indexOf(i)],l=o._props.length;l--;)c[o._props[l]]=s;return o},Uj,Wj,Gj=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`&&!KO,b=t.timeline,x=i.easeReverse||d,S,C,w,T,E,D,O,k,A,j,M,N,P;if(b&&(!f||!a)&&(a=`none`),t._ease=jj(a,GO.ease),t._rEase=x&&(jj(x)||t._ease),t._from=!b&&!!i.runBackwards,t._from&&(t.ratio=1),!b||f&&!i.stagger){if(k=g[0]?qk(g[0]).harness:0,N=k&&i[k.prop],S=lA(i,Lk),h&&(h._zTime<0&&h.progress(1),n<0&&u&&s&&!p?h.render(-1,!0):h.revert(u&&m?Fk:Pk),h._lazy=0),o){if(mA(t._startAt=Qj.set(g,aA({data:`isStart`,overwrite:!1,parent:_,immediateRender:!0,lazy:!h&&ck(c),startAt:null,delay:0,onUpdate:l&&function(){return sj(t,`onUpdate`)},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,n<0&&(qO||!s&&!p)&&t._startAt.revert(Fk),s&&m&&n<=0&&r<=0){n&&(t._zTime=n);return}}else if(u&&m&&!h){if(n&&(s=!1),w=aA({overwrite:!1,data:`isFromStart`,lazy:s&&!h&&ck(c),immediateRender:s,stagger:0,parent:_},S),N&&(w[k.prop]=N),mA(t._startAt=Qj.set(g,w)),t._startAt._dp=0,t._startAt._sat=t,n<0&&(qO?t._startAt.revert(Fk):t._startAt.render(-1,!0)),t._zTime=n,!s)e(t._startAt,XO,XO);else if(!n)return}for(t._pt=t._ptCache=0,c=m&&ck(c)||c&&!m,C=0;C<g.length;C++){if(E=g[C],O=E._gsap||Kk(g)[C]._gsap,t._ptLookup[C]=j={},zk[O.id]&&Rk.length&&eA(),M=v===g?C:v.indexOf(E),k&&(A=new k).init(E,N||S,t,M,v)!==!1&&(t._pt=T=new fM(t._pt,E,A.name,0,1,A.render,A,0,A.priority),A._props.forEach(function(e){j[e]=T}),A.priority&&(D=1)),!k||N)for(w in S)Vk[w]&&(A=Hj(w,S,t,M,E,v))?A.priority&&(D=1):j[w]=T=Bj.call(t,E,w,`get`,S[w],M,v,0,i.stringFilter);t._op&&t._op[C]&&t.kill(E,t._op[C]),y&&t._pt&&(Uj=t,Sk.killTweensOf(E,j,t.globalTime(n)),P=!t.parent,Uj=0),t._pt&&c&&(zk[O.id]=1)}D&&dM(t),t._onInit&&t._onInit(t)}t._onUpdate=l,t._initted=(!t._op||t._pt)&&!P,f&&n<=0&&b.render(YO,!0,!0)},Kj=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 Wj=1,e.vars[t]=`+=0`,Gj(e,o),Wj=0,s?jk(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=Xk(n)+zA(u.e)),u.b&&(u.b=l.s+zA(u.b))},qj=function(e,t){var n=e[0]?qk(e[0]).harness:0,r=n&&n.aliases,i,a,o,s;if(!r)return t;for(a in i=sA({},t),r)if(a in i)for(s=r[a].split(`,`),o=s.length;o--;)i[s[o]]=i[a];return i},Jj=function(e,t,n,r){var i=t.ease||r||`power1.inOut`,a,o;if(fk(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})},Yj=function(e,t,n,r,i){return ik(e)?e.call(t,n,r,i):rk(e)&&~e.indexOf(`random(`)?rj(e):e},Xj=Gk+`repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert`,Zj={};Yk(Xj+`,id,stagger,delay,duration,paused,scrollTrigger`,function(e){return Zj[e]=1});var Qj=function(e){UO(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:uA(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||Sk,g=(fk(t)||dk(t)?ak(t[0]):`length`in n)?[t]:WA(t),_,v,y,b,x,S,C,w;if(a._targets=g.length?Kk(g):jk(`GSAP target `+t+` not found. https://gsap.com`,!WO.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=d,f||u||uk(s)||uk(c)){n=a.vars;var T=n.easeReverse||n.yoyoEase;if(_=a.timeline=new Rj({data:`nested`,defaults:p||{},targets:h&&h.data===`nested`?h.vars.targets:g}),_.kill(),_.parent=_._dp=HO(a),_._start=0,u||uk(s)||uk(c)){if(b=g.length,C=u&&qA(u),sk(u))for(x in u)~Xj.indexOf(x)&&(w||={},w[x]=u[x]);for(v=0;v<b;v++)y=lA(n,Zj),y.stagger=0,T&&(y.easeReverse=T),w&&sA(y,w),S=g[v],y.duration=+Yj(s,HO(a),v,S,g),y.delay=(+Yj(c,HO(a),v,S,g)||0)-a._delay,!u&&b===1&&y.delay&&(a._delay=c=y.delay,a._start+=c,y.delay=0),_.to(S,y,C?C(v,S,g):0),_._ease=wj.none;_.duration()?s=c=0:a.timeline=0}else if(f){uA(aA(_.vars.defaults,{ease:`none`})),_._ease=jj(f.ease||n.ease||`none`);var E=0,D,O,k;if(fk(f))f.forEach(function(e){return _.to(g,e,`>`)}),_.duration();else{for(x in y={},f)x===`ease`||x===`easeEach`||Jj(x,f[x],y,f.easeEach);for(x in y)for(D=y[x].sort(function(e,t){return e.t-t.t}),E=0,v=0;v<D.length;v++)O=D[v],k={ease:O.e,duration:(O.t-(v?D[v-1].t:0))/100*s},k[x]=O.v,_.to(g,k,E),E+=k.duration;_.duration()<s&&_.to({},{duration:s-_.duration()})}}s||a.duration(s=_.duration())}else a.timeline=0;return d===!0&&!KO&&(Uj=HO(a),Sk.killTweensOf(g),Uj=0),TA(h,HO(a),r),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(l||!s&&!f&&a._start===Zk(h._time)&&ck(l)&&vA(HO(a))&&h.data!==`nested`)&&(a._tTime=-XO,a.render(Math.max(0,-c)||0)),m&&EA(HO(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-XO&&!o?i:e<XO?0:e,c,l,u,d,f,p,m,h;if(!a)AA(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=Zk(s%d),s===i?(u=this._repeat,c=a):(f=Zk(s/d),u=~~f,u&&u===f?(c=a,u--):c>a&&(c=a)),p=this._yoyo&&u&1,p&&(c=a-c),f=bA(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(Zk(d*u),!0).invalidate()._lock=0)}if(!this._initted){if(DA(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&&(sj(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&&_A(this,e,t,n),sj(this,`onUpdate`)),this._repeat&&u!==f&&this.vars.onRepeat&&!t&&this.parent&&sj(this,`onRepeat`),(s===this._tDur||!s)&&this._tTime===s&&(o&&!this._onUpdate&&_A(this,e,!0,!0),(e||!a)&&(s===this._tDur&&this._ts>0||!s&&this._ts<0)&&mA(this,1),!t&&(!o||r)&&(s||r||p)&&(sj(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){xj||Sj.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts),o;return this._initted||Gj(this,a),o=this._ease(a/this._dur),Kj(this,e,t,n,r,o,a,i)?this.resetTo(e,t,n,r,1):(CA(this,0),this.parent||fA(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?cj(this):this.scrollTrigger&&this.scrollTrigger.kill(!!qO),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,Uj&&Uj.vars.overwrite!==!0)._first||cj(this),this.parent&&n!==this.timeline.totalDuration()&&MA(this,this._dur*this.timeline._tDur/n,0,1),this}var r=this._targets,i=e?WA(e):r,a=this._ptLookup,o=this._pt,s,c,l,u,d,f,p;if((!t||t===`all`)&&dA(r,i))return t===`all`&&(this._pt=0),cj(this);for(s=this._op=this._op||[],t!==`all`&&(rk(t)&&(d={},Yk(t,function(e){return d[e]=1}),t=d),t=qj(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)&&pA(this,f,`_pt`),delete c[d]),l!==`all`&&(l[d]=1);return this._initted&&!this._pt&&o&&cj(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return IA(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 IA(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 Sk.killTweensOf(e,t,n)},t}(Lj);aA(Qj.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Yk(`staggerTo,staggerFrom,staggerFromTo`,function(e){Qj[e]=function(){var t=new Rj,n=VA.call(arguments,0);return n.splice(e===`staggerFromTo`?5:4,0,0),t[e].apply(t,n)}});var $j=function(e,t,n){return e[t]=n},eM=function(e,t,n){return e[t](n)},tM=function(e,t,n,r){return e[t](r.fp,n)},nM=function(e,t,n){return e.setAttribute(t,n)},rM=function(e,t){return ik(e[t])?eM:ok(e[t])&&e.setAttribute?nM:$j},iM=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},aM=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},oM=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)},sM=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},cM=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},lM=function(e){for(var t=this._pt,n,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?pA(this,t,`_pt`):t.dep||(n=1),t=r;return!n},uM=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},dM=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},fM=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||iM,this.d=o||this,this.set=s||$j,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=uM,this.m=e,this.mt=n,this.tween=t},e}();Yk(Gk+`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 Lk[e]=1}),Ek.TweenMax=Ek.TweenLite=Qj,Ek.TimelineLite=Ek.TimelineMax=Rj,Sk=new Rj({sortChildren:!1,defaults:GO,autoRemoveChildren:!0,id:`root`,smoothChildTiming:!0}),WO.stringFilter=bj;var pM=[],mM={},hM=[],gM=0,_M=0,vM=function(e){return(mM[e]||hM).map(function(e){return e()})},yM=function(){var e=Date.now(),t=[];e-gM>2&&(vM(`matchMediaInit`),pM.forEach(function(e){var n=e.queries,r=e.conditions,i,a,o,s;for(a in n)i=Ck.matchMedia(n[a]).matches,i&&(o=1),i!==r[a]&&(r[a]=i,s=1);s&&(e.revert(),o&&t.push(e))}),vM(`matchMediaRevert`),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),gM=e,vM(`matchMedia`))},bM=function(){function e(e,t){this.selector=t&&GA(t),this.data=[],this._r=[],this.isReverted=!1,this.id=_M++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){ik(e)&&(n=t,t=e,e=ik);var r=this,i=function(){var e=JO,i=r.selector,a;return e&&e!==r&&e.data.push(r),n&&(r.selector=GA(n)),JO=r,a=t.apply(r,arguments),ik(a)&&r._r.push(a),JO=e,r.selector=i,r.isReverted=!1,a};return r.last=i,e===ik?i(r,function(e){return r.add(null,e)}):e?r[e]=i:i},t.ignore=function(e){var t=JO;JO=null,e(this),JO=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof Qj&&!(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 Rj?i.data!==`nested`&&(i.scrollTrigger&&i.scrollTrigger.revert(),i.kill()):!(i instanceof Qj)&&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=pM.length;r--;)pM[r].id===this.id&&pM.splice(r,1)},t.revert=function(e){this.kill(e||{})},e}(),xM=function(){function e(e){this.contexts=[],this.scope=e,JO&&JO.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){sk(e)||(e={matches:e});var r=new bM(0,n||this.scope),i=r.conditions={},a,o,s;for(o in JO&&!r.selector&&(r.selector=JO.selector),this.contexts.push(r),t=r.add(`onMatch`,t),r.queries=e,e)o===`all`?s=1:(a=Ck.matchMedia(e[o]),a&&(pM.indexOf(r)<0&&pM.push(r),(i[o]=a.matches)&&(s=1),a.addListener?a.addListener(yM):a.addEventListener(`change`,yM)));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}(),SM={registerPlugin:function(){[...arguments].forEach(function(e){return dj(e)})},timeline:function(e){return new Rj(e)},getTweensOf:function(e,t){return Sk.getTweensOf(e,t)},getProperty:function(e,t,n,r){rk(e)&&(e=WA(e)[0]);var i=qk(e||{}).get,a=n?iA:rA;return n===`native`&&(n=``),e&&(t?a((Vk[t]&&Vk[t].get||i)(e,t,n,r)):function(t,n,r){return a((Vk[t]&&Vk[t].get||i)(e,t,n,r))})},quickSetter:function(e,t,n){if(e=WA(e),e.length>1){var r=e.map(function(e){return EM.quickSetter(e,t,n)}),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}e=e[0]||{};var a=Vk[t],o=qk(e),s=o.harness&&(o.harness.aliases||{})[t]||t,c=a?function(t){var r=new a;lj._pt=0,r.init(e,n?t+n:t,lj,0,[e]),r.render(1,r),lj._pt&&sM(1,lj)}: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=EM.to(e,aA((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 Sk.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=jj(e.ease,GO.ease)),cA(GO,e||{})},config:function(e){return cA(WO,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&&!Vk[e]&&!Ek[e]&&jk(t+` effect requires `+e+` plugin.`)}),Hk[t]=function(e,t,r){return n(WA(e),aA(t||{},i),r)},a&&(Rj.prototype[t]=function(e,n,r){return this.add(Hk[t](e,sk(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){wj[e]=jj(t)},parseEase:function(e,t){return arguments.length?jj(e,t):wj},getById:function(e){return Sk.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n=new Rj(e),r,i;for(n.smoothChildTiming=ck(e.smoothChildTiming),Sk.remove(n),n._dp=0,n._time=n._tTime=Sk._time,r=Sk._first;r;)i=r._next,(t||!(!r._dur&&r instanceof Qj&&r.vars.onComplete===r._targets[0]))&&TA(n,r,r._start-r._delay),r=i;return TA(Sk,n,0),n},context:function(e,t){return e?new bM(e,t):JO},matchMedia:function(e){return new xM(e)},matchMediaRefresh:function(){return pM.forEach(function(e){var t=e.conditions,n,r;for(r in t)t[r]&&(t[r]=!1,n=1);n&&e.revert()})||yM()},addEventListener:function(e,t){var n=mM[e]||(mM[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=mM[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:tj,wrapYoyo:nj,distribute:qA,random:XA,snap:YA,normalize:$A,getUnit:zA,clamp:BA,splitColor:hj,toArray:WA,selector:GA,mapRange:ij,pipe:ZA,unitize:QA,interpolate:aj,shuffle:KA},install:kk,effects:Hk,ticker:Sj,updateRoot:Rj.updateRoot,plugins:Vk,globalTimeline:Sk,core:{PropTween:fM,globals:Mk,Tween:Qj,Timeline:Rj,Animation:Lj,getCache:qk,_removeLinkedListItem:pA,reverting:function(){return qO},context:function(e){return e&&JO&&(JO.data.push(e),e._ctx=JO),JO},suppressOverwrites:function(e){return KO=e}}};Yk(`to,from,fromTo,delayedCall,set,killTweensOf`,function(e){return SM[e]=Qj[e]}),Sj.add(Rj.updateRoot),lj=SM.to({},{duration:0});var CM=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},wM=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=CM(a,r)),a&&a.modifier&&a.modifier(t[r],e,n[i],r))},TM=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,i;if(rk(n)&&(r={},Yk(n,function(e){return r[e]=1}),n=r),t){for(i in r={},n)r[i]=t(n[i]);n=r}wM(e,n)}}}},EM=SM.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;)qO?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)}},TM(`roundProps`,JA),TM(`modifiers`),TM(`snap`,YA))||SM;Qj.version=Rj.version=EM.version=`3.15.0`,Ok=1,lk()&&Cj(),wj.Power0,wj.Power1,wj.Power2,wj.Power3,wj.Power4,wj.Linear,wj.Quad,wj.Cubic,wj.Quart,wj.Quint,wj.Strong,wj.Elastic,wj.Back,wj.SteppedEase,wj.Bounce,wj.Sine,wj.Expo,wj.Circ;var DM,OM,kM,AM,jM,MM,NM,PM=function(){return typeof window<`u`},FM={},IM=180/Math.PI,LM=Math.PI/180,RM=Math.atan2,zM=1e8,BM=/([A-Z])/g,VM=/(left|right|width|margin|padding|x)/i,HM=/[\s,\(]\S/,UM={autoAlpha:`opacity,visibility`,scale:`scaleX,scaleY`,alpha:`opacity`},WM=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},GM=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)},KM=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)},qM=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)},JM=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},YM=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},XM=function(e,t){return t.set(t.t,t.p,e===1?t.e:t.b,t)},ZM=function(e,t,n){return e.style[t]=n},QM=function(e,t,n){return e.style.setProperty(t,n)},$M=function(e,t,n){return e._gsap[t]=n},eN=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},tN=function(e,t,n,r,i){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},nN=function(e,t,n,r,i){var a=e._gsap;a[t]=n,a.renderTransform(i,a)},rN=`transform`,iN=rN+`Origin`,aN=function e(t,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(t in FM&&a){if(this.tfm=this.tfm||{},t!==`transform`)t=UM[t]||t,~t.indexOf(`,`)?t.split(`,`).forEach(function(e){return r.tfm[e]=wN(i,e)}):this.tfm[t]=o.x?o[t]:wN(i,t),t===iN&&(this.tfm.zOrigin=o.zOrigin);else return UM.transform.split(`,`).forEach(function(t){return e.call(r,t,n)});if(this.props.indexOf(rN)>=0)return;o.svg&&(this.svgo=i.getAttribute(`data-svg-origin`),this.props.push(iN,n,``)),t=rN}(a||n)&&this.props.push(t,n,a[t])},oN=function(e){e.translate&&(e.removeProperty(`translate`),e.removeProperty(`scale`),e.removeProperty(`rotate`))},sN=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(BM,`-$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=NM(),(!i||!i.isStart)&&!n[rN]&&(oN(n),r.zOrigin&&n[iN]&&(n[iN]+=` `+r.zOrigin+`px`,r.zOrigin=0,r.renderTransform()),r.uncache=1)}},cN=function(e,t){var n={target:e,props:[],revert:sN,save:aN};return e._gsap||EM.core.getCache(e),t&&e.style&&e.nodeType&&t.split(`,`).forEach(function(e){return n.save(e)}),n},lN,uN=function(e,t){var n=OM.createElementNS?OM.createElementNS((t||`http://www.w3.org/1999/xhtml`).replace(/^https/,`http`),e):OM.createElement(e);return n&&n.style?n:OM.createElement(e)},dN=function e(t,n,r){var i=getComputedStyle(t);return i[n]||i.getPropertyValue(n.replace(BM,`-$1`).toLowerCase())||i.getPropertyValue(n)||!r&&e(t,pN(n)||n,1)||``},fN=`O,Moz,ms,Ms,Webkit`.split(`,`),pN=function(e,t,n){var r=(t||jM).style,i=5;if(e in r&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);i--&&!(fN[i]+e in r););return i<0?null:(i===3?`ms`:i>=0?fN[i]:``)+e},mN=function(){PM()&&window.document&&(DM=window,OM=DM.document,kM=OM.documentElement,jM=uN(`div`)||{style:{}},uN(`div`),rN=pN(rN),iN=rN+`Origin`,jM.style.cssText=`border-width:0;line-height:0;position:absolute;padding:0`,lN=!!pN(`perspective`),NM=EM.core.reverting,AM=1)},hN=function(e){var t=e.ownerSVGElement,n=uN(`svg`,t&&t.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`),r=e.cloneNode(!0),i;r.style.display=`block`,n.appendChild(r),kM.appendChild(n);try{i=r.getBBox()}catch{}return n.removeChild(r),kM.removeChild(n),i},gN=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},_N=function(e){var t,n;try{t=e.getBBox()}catch{t=hN(e),n=1}return t&&(t.width||t.height)||n||(t=hN(e)),t&&!t.width&&!t.x&&!t.y?{x:+gN(e,[`x`,`cx`,`x1`])||0,y:+gN(e,[`y`,`cy`,`y1`])||0,width:0,height:0}:t},vN=function(e){return!(!e.getCTM||e.parentNode&&!e.ownerSVGElement||!_N(e))},yN=function(e,t){if(t){var n=e.style,r;t in FM&&t!==iN&&(t=rN),n.removeProperty?(r=t.substr(0,2),(r===`ms`||t.substr(0,6)===`webkit`)&&(t=`-`+t),n.removeProperty(r===`--`?t:t.replace(BM,`-$1`).toLowerCase())):n.removeAttribute(t)}},bN=function(e,t,n,r,i,a){var o=new fM(e._pt,t,n,0,1,a?XM:YM);return e._pt=o,o.b=r,o.e=i,e._props.push(n),o},xN={deg:1,rad:1,turn:1},SN={grid:1,flex:1},CN=function e(t,n,r,i){var a=parseFloat(r)||0,o=(r+``).trim().substr((a+``).length)||`px`,s=jM.style,c=VM.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||xN[i]||xN[o])return a;if(o!==`px`&&!f&&(a=e(t,n,r,`px`)),_=t.getCTM&&vN(t),(p||o===`%`)&&(FM[n]||~n.indexOf(`adius`)))return m=_?t.getBBox()[c?`width`:`height`]:t[u],Xk(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===OM||!h.appendChild)&&(h=OM.body),g=h._gsap,g&&p&&g.width&&c&&g.time===Sj.time&&!g.uncache)return Xk(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:yN(t,n)}else(p||o===`%`)&&!SN[dN(h,`display`)]&&(s.position=dN(t,`position`)),h===t&&(s.position=`static`),h.appendChild(jM),m=jM[u],h.removeChild(jM),s.position=`absolute`;return c&&p&&(g=qk(h),g.time=Sj.time,g.width=h[u]),Xk(f?m*a/d:m&&a?d/m*a:0)},wN=function(e,t,n,r){var i;return AM||mN(),t in UM&&t!==`transform`&&(t=UM[t],~t.indexOf(`,`)&&(t=t.split(`,`)[0])),FM[t]&&t!==`transform`?(i=IN(e,r),i=t===`transformOrigin`?i.svg?i.origin:LN(dN(e,iN))+` `+i.zOrigin+`px`:i[t]):(i=e.style[t],(!i||i===`auto`||r||~(i+``).indexOf(`calc(`))&&(i=kN[t]&&kN[t](e,t,n)||dN(e,t)||Jk(e,t)||+(t===`opacity`))),n&&!~(i+``).trim().indexOf(` `)?CN(e,t,i,n)+n:i},TN=function(e,t,n,r){if(!n||n===`none`){var i=pN(t,e,1),a=i&&dN(e,i,1);a&&a!==n?(t=i,n=a):t===`borderColor`&&(n=dN(e,`borderTopColor`))}var o=new fM(this._pt,e.style,t,0,1,oM),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=dN(e,r.substring(4,r.indexOf(`)`)))),r===`auto`&&(m=e.style[t],e.style[t]=r,r=dN(e,t)||r,m?e.style[t]=m:yN(e,t)),l=[n,r],bj(l),n=l[0],r=l[1],d=n.match(_k)||[],b=r.match(_k)||[],b.length){for(;u=_k.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=Qk(f,h)+y),g=parseFloat(h),v=h.substr((g+``).length),s=_k.lastIndex-v.length,v||(v=v||WO.units[t]||y,s===r.length&&(r+=v,o.e+=v)),y!==v&&(f=CN(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`?XM:YM;return yk.test(r)&&(o.e=0),this._pt=o,o},EN={top:`0%`,bottom:`100%`,left:`0%`,right:`100%`,center:`50%`},DN=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]=EN[n]||n,t[1]=EN[r]||r,t.join(` `)},ON=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],FM[o]&&(s=1,o=o===`transformOrigin`?iN:rN),yN(n,o);s&&(yN(n,rN),a&&(a.svg&&n.removeAttribute(`transform`),r.scale=r.rotate=r.translate=`none`,IN(n,1),a.uncache=1,oN(r)))}},kN={clearProps:function(e,t,n,r,i){if(i.data!==`isFromStart`){var a=e._pt=new fM(e._pt,t,n,0,0,ON);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},AN=[1,0,0,1,0,0],jN={},MN=function(e){return e===`matrix(1, 0, 0, 1, 0, 0)`||e===`none`||!e},NN=function(e){var t=dN(e,rN);return MN(t)?AN:t.substr(7).match(gk).map(Xk)},PN=function(e,t){var n=e._gsap||qk(e),r=e.style,i=NN(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`?AN:i):(i===AN&&!e.offsetParent&&e!==kM&&!n.svg&&(s=r.display,r.display=`block`,a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,o=e.nextElementSibling,kM.appendChild(e)),i=NN(e),s?r.display=s:yN(e,`display`),c&&(o?a.insertBefore(e,o):a?a.appendChild(e):kM.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},FN=function(e,t,n,r,i,a){var o=e._gsap,s=i||PN(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!==AN&&(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=_N(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[iN]=`0px 0px`,a&&(bN(a,o,`xOrigin`,c,y),bN(a,o,`yOrigin`,l,b),bN(a,o,`xOffset`,u,o.xOffset),bN(a,o,`yOffset`,d,o.yOffset)),e.setAttribute(`data-svg-origin`,y+` `+b)},IN=function(e,t){var n=e._gsap||new Ij(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=dN(e,iN)||`0`,l=u=d=m=h=g=_=v=y=0,u,d,f=p=1,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F,I,ee,te,ne,re;return n.svg=!!(e.getCTM&&vN(e)),s.translate&&((s.translate!==`none`||s.scale!==`none`||s.rotate!==`none`)&&(r[rN]=(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[rN]===`none`?``:s[rN])),r.scale=r.rotate=r.translate=`none`),S=PN(e,n.svg),n.svg&&(n.uncache?(N=e.getBBox(),c=n.xOrigin-N.x+`px `+(n.yOrigin-N.y)+`px`,M=``):M=!t&&e.getAttribute(`data-svg-origin`),FN(e,M||c,!!M||n.originIsAbsolute,n.smooth!==!1,S)),b=n.xOrigin||0,x=n.yOrigin||0,S!==AN&&(E=S[0],D=S[1],O=S[2],k=S[3],l=A=S[4],u=j=S[5],S.length===6?(f=Math.sqrt(E*E+D*D),p=Math.sqrt(k*k+O*O),m=E||D?RM(D,E)*IM:0,_=O||k?RM(O,k)*IM+m:0,_&&(p*=Math.abs(Math.cos(_*LM))),n.svg&&(l-=b-(b*E+x*O),u-=x-(b*D+x*k))):(re=S[6],te=S[7],F=S[8],I=S[9],ee=S[10],ne=S[11],l=S[12],u=S[13],d=S[14],C=RM(re,ee),h=C*IM,C&&(w=Math.cos(-C),T=Math.sin(-C),M=A*w+F*T,N=j*w+I*T,P=re*w+ee*T,F=A*-T+F*w,I=j*-T+I*w,ee=re*-T+ee*w,ne=te*-T+ne*w,A=M,j=N,re=P),C=RM(-O,ee),g=C*IM,C&&(w=Math.cos(-C),T=Math.sin(-C),M=E*w-F*T,N=D*w-I*T,P=O*w-ee*T,ne=k*T+ne*w,E=M,D=N,O=P),C=RM(D,E),m=C*IM,C&&(w=Math.cos(C),T=Math.sin(C),M=E*w+D*T,N=A*w+j*T,D=D*w-E*T,j=j*w-A*T,E=M,A=N),h&&Math.abs(h)+Math.abs(m)>359.9&&(h=m=0,g=180-g),f=Xk(Math.sqrt(E*E+D*D+O*O)),p=Xk(Math.sqrt(j*j+re*re)),C=RM(A,j),_=Math.abs(C)>2e-4?C*IM:0,y=ne?1/(ne<0?-ne:ne):0),n.svg&&(M=e.getAttribute(`transform`),n.forceCSS=e.setAttribute(`transform`,``)||!MN(dN(e,rN)),M&&e.setAttribute(`transform`,M))),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=Xk(f),n.scaleY=Xk(p),n.rotation=Xk(m)+o,n.rotationX=Xk(h)+o,n.rotationY=Xk(g)+o,n.skewX=_+o,n.skewY=v+o,n.transformPerspective=y+a,(n.zOrigin=parseFloat(c.split(` `)[2])||!t&&n.zOrigin||0)&&(r[iN]=LN(c)),n.xOffset=n.yOffset=0,n.force3D=WO.force3D,n.renderTransform=n.svg?WN:lN?UN:zN,n.uncache=0,n},LN=function(e){return(e=e.split(` `))[0]+` `+e[1]},RN=function(e,t,n){var r=zA(t);return Xk(parseFloat(t)+parseFloat(CN(e,`x`,n+`px`,r)))+r},zN=function(e,t){t.z=`0px`,t.rotationY=t.rotationX=`0deg`,t.force3D=0,UN(e,t)},BN=`0deg`,VN=`0px`,HN=`) `,UN=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!==BN||l!==BN)){var x=parseFloat(l)*LM,S=Math.sin(x),C=Math.cos(x),w;x=parseFloat(u)*LM,w=Math.cos(x),a=RN(_,a,S*w*-v),o=RN(_,o,-Math.sin(x)*-v),s=RN(_,s,C*w*-v+v)}h!==VN&&(y+=`perspective(`+h+HN),(r||i)&&(y+=`translate(`+r+`%, `+i+`%) `),(b||a!==VN||o!==VN||s!==VN)&&(y+=s!==VN||b?`translate3d(`+a+`, `+o+`, `+s+`) `:`translate(`+a+`, `+o+HN),c!==BN&&(y+=`rotate(`+c+HN),l!==BN&&(y+=`rotateY(`+l+HN),u!==BN&&(y+=`rotateX(`+u+HN),(d!==BN||f!==BN)&&(y+=`skew(`+d+`, `+f+HN),(p!==1||m!==1)&&(y+=`scale(`+p+`, `+m+HN),_.style[rN]=y||`translate(0, 0)`},WN=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*=LM,c*=LM,b=Math.cos(s)*u,x=Math.sin(s)*u,S=Math.sin(s-c)*-d,C=Math.cos(s-c)*d,c&&(l*=LM,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=Xk(b),x=Xk(x),S=Xk(S),C=Xk(C)):(b=u,C=d,x=S=0),(v&&!~(a+``).indexOf(`px`)||y&&!~(o+``).indexOf(`px`))&&(v=CN(f,`x`,a,`px`),y=CN(f,`y`,o,`px`)),(p||m||h||g)&&(v=Xk(v+p-(p*b+m*S)+h),y=Xk(y+m-(p*x+m*C)+g)),(r||i)&&(w=f.getBBox(),v=Xk(v+r/100*w.width),y=Xk(y+i/100*w.height)),w=`matrix(`+b+`,`+x+`,`+S+`,`+C+`,`+v+`,`+y+`)`,f.setAttribute(`transform`,w),_&&(f.style[rN]=w)},GN=function(e,t,n,r,i){var a=360,o=rk(i),s=parseFloat(i)*(o&&~i.indexOf(`rad`)?IM: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*zM)%a-~~(s/a)*a:l===`ccw`&&s>0&&(s=(s-a*zM)%a-~~(s/a)*a)),e._pt=u=new fM(e._pt,t,n,r,s,GM),u.e=c,u.u=`deg`,e._props.push(n),u},KN=function(e,t){for(var n in t)e[n]=t[n];return e},qN=function(e,t,n){var r=KN({},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[rN]=t,o=IN(n,1),yN(n,rN),n.setAttribute(`transform`,c)):(c=getComputedStyle(n)[rN],a[rN]=t,o=IN(n,1),a[rN]=c),FM)c=r[s],l=o[s],c!==l&&i.indexOf(s)<0&&(f=zA(c),p=zA(l),u=f===p?parseFloat(c):CN(n,s,c,p),d=parseFloat(l),e._pt=new fM(e._pt,o,s,u,d-u,WM),e._pt.u=p||0,e._props.push(s));KN(o,r)};Yk(`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});kN[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 wN(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 JN={name:`css`,register:mN,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,S,C,w;for(m in AM||mN(),this.styles=this.styles||cN(e),C=this.styles.props,this.tween=n,t)if(m!==`autoRound`&&(l=t[m],!(Vk[m]&&Hj(m,t,n,r,e,i)))){if(f=typeof l,p=kN[m],f===`function`&&(l=l.call(n,r,e,i),f=typeof l),f===`string`&&~l.indexOf(`random(`)&&(l=rj(l)),p)p(this,e,m,l,n)&&(S=1);else if(m.substr(0,2)===`--`)c=(getComputedStyle(e).getPropertyValue(m)+``).trim(),l+=``,vj.lastIndex=0,vj.test(c)||(h=zA(c),g=zA(l),g?h!==g&&(c=CN(e,m,c,g)+g):h&&(l+=h)),this.add(o,`setProperty`,c,l,r,i,0,0,m),a.push(m),C.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],rk(c)&&~c.indexOf(`random(`)&&(c=rj(c)),zA(c+``)||c===`auto`||(c+=WO.units[m]||zA(wN(e,m))||``),(c+``).charAt(1)===`=`&&(c=wN(e,m))):c=wN(e,m),d=parseFloat(c),_=f===`string`&&l.charAt(1)===`=`&&l.substr(0,2),_&&(l=l.substr(2)),u=parseFloat(l),m in UM&&(m===`autoAlpha`&&(d===1&&wN(e,`visibility`)===`hidden`&&u&&(d=0),C.push(`visibility`,0,o.visibility),bN(this,o,`visibility`,d?`inherit`:`hidden`,u?`inherit`:`hidden`,!u)),m!==`scale`&&m!==`transform`&&(m=UM[m],~m.indexOf(`,`)&&(m=m.split(`,`)[0]))),v=m in FM,v){if(this.styles.save(m),w=l,f===`string`&&l.substring(0,6)===`var(--`){if(l=dN(e,l.substring(4,l.indexOf(`)`))),l.substring(0,5)===`calc(`){var T=e.style.perspective;e.style.perspective=l,l=dN(e,`perspective`),T?e.style.perspective=T:yN(e,`perspective`)}u=parseFloat(l)}if(y||(b=e._gsap,b.renderTransform&&!t.parseTransform||IN(e,t.parseTransform),x=t.smoothOrigin!==!1&&b.smooth,y=this._pt=new fM(this._pt,o,rN,0,1,b.renderTransform,b,0,-1),y.dep=1),m===`scale`)this._pt=new fM(this._pt,b,`scaleY`,b.scaleY,(_?Qk(b.scaleY,_+u):u)-b.scaleY||0,WM),this._pt.u=0,a.push(`scaleY`,m),m+=`X`;else if(m===`transformOrigin`){C.push(iN,0,o[iN]),l=DN(l),b.svg?FN(e,l,0,x,0,this):(g=parseFloat(l.split(` `)[2])||0,g!==b.zOrigin&&bN(this,b,`zOrigin`,b.zOrigin,g),bN(this,o,m,LN(c),LN(l)));continue}else if(m===`svgOrigin`){FN(e,l,1,x,0,this);continue}else if(m in jN){GN(this,b,m,d,_?Qk(d,_+l):l);continue}else if(m===`smoothOrigin`){bN(this,b,`smooth`,b.smooth,l);continue}else if(m===`force3D`){b[m]=l;continue}else if(m===`transform`){qN(this,l,e);continue}}else m in o||(m=pN(m)||m);if(v||(u||u===0)&&(d||d===0)&&!HM.test(l)&&m in o)h=(c+``).substr((d+``).length),u||=0,g=zA(l)||(m in WO.units?WO.units[m]:h),h!==g&&(d=CN(e,m,c,g)),this._pt=new fM(this._pt,v?b:o,m,d,(_?Qk(d,_+u):u)-d,!v&&(g===`px`||m===`zIndex`)&&t.autoRound!==!1?JM:WM),this._pt.u=g||0,v&&w!==l?(this._pt.b=c,this._pt.e=w,this._pt.r=qM):h!==g&&g!==`%`&&(this._pt.b=c,this._pt.r=KM);else if(m in o)TN.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`){Ak(m,l);continue}v||(m in o?C.push(m,0,o[m]):typeof e[m]==`function`?C.push(m,2,e[m]()):C.push(m,1,c||e[m])),a.push(m)}}S&&dM(this)},render:function(e,t){if(t.tween._time||!NM())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:wN,aliases:UM,getSetter:function(e,t,n){var r=UM[t];return r&&r.indexOf(`,`)<0&&(t=r),t in FM&&t!==iN&&(e._gsap.x||wN(e,`x`))?n&&MM===n?t===`scale`?eN:$M:(MM=n||{})&&(t===`scale`?tN:nN):e.style&&!ok(e.style[t])?ZM:~t.indexOf(`-`)?QM:rM(e,t)},core:{_removeProperty:yN,_getMatrix:PN}};EM.utils.checkPrefix=pN,EM.core.getStyleSaver=cN,(function(e,t,n,r){var i=Yk(e+`,`+t+`,`+n,function(e){FM[e]=1});Yk(t,function(e){WO.units[e]=`deg`,jN[e]=1}),UM[i[13]]=e+`,`+t,Yk(r,function(e){var t=e.split(`:`);UM[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`),Yk(`x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective`,function(e){WO.units[e]=`px`}),EM.registerPlugin(JN);var YN=EM.registerPlugin(JN)||EM;YN.core.Tween;var XN=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function ZN(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:XN(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var QN=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},$N=e=>{let t=QN(e);return t.charAt(0).toUpperCase()+t.slice(1)},eP=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),tP={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 nP(e){return e!=null}function rP(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??tP.width,a=e.size??e.height??tP.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?eP(...c):eP(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??tP[`stroke-width`])*Number(e.size??e.width??tP.width)/Number(t.size??t.width??tP.width):t.strokeWidth??tP[`stroke-width`];return[`svg`,{...Object.entries(tP).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&nP(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&nP(t.width)&&{[r(`width`)]:t.width},...`height`in t&&nP(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 iP(e,t={}){return rP(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var aP=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},oP=(0,v.createContext)({}),sP=()=>(0,v.useContext)(oP),cP=(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=``}=sP()??{},b=!!c||aP(d),[x,S,C=[]]=iP(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:eP(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 lP(e,t=[],n=[]){let r=typeof e==`string`?ZN(e,t,n):e,i=(0,v.forwardRef)(({className:e,...t},n)=>(0,v.createElement)(cP,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=$N(r.name)),i}var uP={name:`arrow-right-left`,size:24,node:[[`path`,{d:`m16 3 4 4-4 4`,key:`1x1c3m`}],[`path`,{d:`M20 7H4`,key:`zbl0bi`}],[`path`,{d:`m8 21-4-4 4-4`,key:`h9nckh`}],[`path`,{d:`M4 17h16`,key:`g4d7ey`}]]};uP.node;var dP=lP(uP),fP={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};fP.node;var pP=lP(fP),mP={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};mP.node;var hP=lP(mP),gP={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`]};gP.node;var _P=lP(gP),vP={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`}]]};vP.node;var yP=lP(vP),bP={name:`eye-off`,size:24,node:[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]};bP.node;var xP=lP(bP),SP={name:`git-compare`,size:24,node:[[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M13 6h3a2 2 0 0 1 2 2v7`,key:`1yeb86`}],[`path`,{d:`M11 18H8a2 2 0 0 1-2-2V9`,key:`19pyzm`}]]};SP.node;var CP=lP(SP),wP={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`}]]};wP.node;var TP=lP(wP),EP={name:`key-round`,size:24,node:[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]};EP.node;var DP=lP(EP),OP={name:`log-in`,size:24,node:[[`path`,{d:`m10 17 5-5-5-5`,key:`1bsop3`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`,key:`u53s6r`}]]};OP.node;var kP=lP(OP),AP={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`}]]};AP.node;var jP=lP(AP),MP={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};MP.node;var NP=lP(MP),PP={name:`rotate-ccw`,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`}]]};PP.node;var FP=lP(PP),IP={name:`save`,size:24,node:[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]};IP.node;var LP=lP(IP),RP={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`}]]};RP.node;var zP=lP(RP),BP={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`]};BP.node;var VP=lP(BP),HP={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`]};HP.node;var UP=lP(HP);function WP(e,t){return function(){return e.apply(t,arguments)}}var{toString:GP}=Object.prototype,{getPrototypeOf:KP}=Object,{iterator:qP,toStringTag:JP}=Symbol,YP=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),XP=e=>typeof e==`string`&&(e===`__proto__`||e===`constructor`||e===`prototype`),ZP=(e,t,n)=>e===Object.prototype||!n&&t===null,QP=e=>{if(!Object.isExtensible(e))return!1;let t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(XP(t))return!1;let n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&n.writable===!0})},$P=(e,t)=>{let n=e,r=[];for(;n!=null;){if(r.indexOf(n)!==-1)return!1;r.push(n);let i=KP(n);if(ZP(n,i,n===e))return!1;if(YP(n,t))return!0;n=i}return!1},eF=(e,t)=>e!=null&&$P(e,t)?e[t]:void 0,tF=e=>{if(e==null||typeof e!=`object`&&typeof e!=`function`)return e;let t=KP(e);if(t===null&&QP(e))return e;let n=Object.create(null),r=Object.create(null),i=[],a=e;for(;a!=null&&i.indexOf(a)===-1;){i.push(a);let o=a===e?t:KP(a);if(ZP(a,o,a===e))break;let s=Object.getOwnPropertyNames(a);Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(a));for(let t of s)XP(t)||YP(r,t)||(n[t]=e[t],r[t]=!0);a=o}return n},nF=(e=>t=>{let n=GP.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),rF=e=>(e=e.toLowerCase(),t=>nF(t)===e),iF=e=>t=>typeof t===e,{isArray:aF}=Array,oF=iF(`undefined`);function sF(e){return e!==null&&!oF(e)&&e.constructor!==null&&!oF(e.constructor)&&dF(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var cF=rF(`ArrayBuffer`);function lF(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&cF(e.buffer),t}var uF=iF(`string`),dF=iF(`function`),fF=iF(`number`),pF=e=>typeof e==`object`&&!!e,mF=e=>e===!0||e===!1,hF=e=>{if(!pF(e))return!1;let t=KP(e);return(t===null||t===Object.prototype||KP(t)===null)&&!$P(e,JP)&&!$P(e,qP)},gF=e=>{if(!pF(e)||sF(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},_F=rF(`Date`),vF=rF(`File`),yF=e=>!!(e&&e.uri!==void 0),bF=e=>e&&e.getParts!==void 0,xF=rF(`Blob`),SF=rF(`FileList`),CF=rF(`Set`),wF=e=>pF(e)&&dF(e.pipe);function TF(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var EF=TF(),DF=EF.FormData===void 0?void 0:EF.FormData,OF=e=>{if(!e)return!1;if(DF&&e instanceof DF)return!0;let t=KP(e);if(!t||t===Object.prototype||!dF(e.append))return!1;let n=nF(e);return n===`formdata`||n===`object`&&dF(e.toString)&&e.toString()===`[object FormData]`},kF=rF(`URLSearchParams`),[AF,jF,MF,NF]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(rF),PF=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function FF(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),aF(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(sF(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function IF(e,t){if(sF(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-->0;)if(i=n[r],t===i.toLowerCase())return i;return null}var LF=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,RF=e=>!oF(e)&&e!==LF;function zF(...e){let{caseless:t,skipUndefined:n}=RF(this)&&this||{},r={},i=(e,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=t&&typeof i==`string`&&IF(r,i)||i,o=YP(r,a)?r[a]:void 0;hF(o)&&hF(e)?r[a]=zF(o,e):hF(e)?r[a]=zF({},e):aF(e)?r[a]=e.slice():(!n||!oF(e))&&(r[a]=e)};for(let t=0,n=e.length;t<n;t++){let n=e[t];if(!n||sF(n)||(FF(n,i),typeof n!=`object`||aF(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){let t=r[e];ZF.call(n,t)&&i(n[t],t)}}return r}var BF=(e,t,n,{allOwnKeys:r}={})=>(FF(t,(t,r)=>{n&&dF(t)?Object.defineProperty(e,r,{__proto__:null,value:WP(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),VF=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),HF=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},UF=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-->0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&KP(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},WF=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},GF=e=>{if(!e)return null;if(aF(e))return e;let t=e.length;if(!fF(t))return null;let n=Array(t);for(;t-->0;)n[t]=e[t];return n},KF=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&KP(Uint8Array)),qF=(e,t)=>{let n=(e&&e[qP]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},JF=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},YF=rF(`HTMLFormElement`),XF=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),{propertyIsEnumerable:ZF}=Object.prototype,QF=rF(`RegExp`),$F=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};FF(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},eI=e=>{$F(e,(t,n)=>{if(dF(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];if(dF(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},tI=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return aF(e)?r(e):r(String(e).split(t)),n},nI=()=>{},rI=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function iI(e){return!!(e&&dF(e.append)&&e[JP]===`FormData`&&e[qP])}var aI=e=>{let t=new WeakSet,n=e=>{if(pF(e)){if(t.has(e))return;if(sF(e))return e;if(!(`toJSON`in e)){t.add(e);let r;if(CF(e)){r=[];for(let t of e){let e=n(t);!oF(e)&&r.push(e)}}else r=aF(e)?[]:{},FF(e,(e,t)=>{let i=n(e);!oF(i)&&(r[t]=i)});return t.delete(e),r}}return e};return n(e)},oI=rF(`AsyncFunction`),sI=e=>e&&(pF(e)||dF(e))&&dF(e.then)&&dF(e.catch),cI=((e,t)=>e?setImmediate:t?((e,t)=>(LF.addEventListener(`message`,({source:n,data:r})=>{n===LF&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),LF.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,dF(LF.postMessage)),lI=typeof queueMicrotask<`u`?queueMicrotask.bind(LF):typeof process<`u`&&process.nextTick||cI,uI=e=>e!=null&&dF(e[qP]),X={isArray:aF,isArrayBuffer:cF,isBuffer:sF,isFormData:OF,isArrayBufferView:lF,isString:uF,isNumber:fF,isBoolean:mF,isObject:pF,isPlainObject:hF,isEmptyObject:gF,isReadableStream:AF,isRequest:jF,isResponse:MF,isHeaders:NF,isUndefined:oF,isDate:_F,isFile:vF,isReactNativeBlob:yF,isReactNative:bF,isBlob:xF,isRegExp:QF,isFunction:dF,isStream:wF,isURLSearchParams:kF,isTypedArray:KF,isFileList:SF,forEach:FF,merge:zF,extend:BF,trim:PF,stripBOM:VF,inherits:HF,toFlatObject:UF,kindOf:nF,kindOfTest:rF,endsWith:WF,toArray:GF,forEachEntry:qF,matchAll:JF,isHTMLForm:YF,hasOwnProperty:YP,hasOwnProp:YP,hasOwnInPrototypeChain:$P,getSafeProp:eF,toSafeFlatObject:tF,reduceDescriptors:$F,freezeMethods:eI,toObjectSet:tI,toCamelCase:XF,noop:nI,toFiniteNumber:rI,findKey:IF,global:LF,isContextDefined:RF,isSpecCompliantForm:iI,toJSONObject:aI,isAsyncFn:oI,isThenable:sI,setImmediate:cI,asap:lI,isIterable:uI,isSafeIterable:e=>e!=null&&$P(e,qP)&&uI(e)},dI=X.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]),fI=e=>{let t={},n,r,i;return e&&e.split(`
23
- `).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim();let a=X.hasOwnProp(t,n);!n||a&&X.hasOwnProp(dI,n)||(n===`set-cookie`?a?t[n].push(r):t[n]=[r]:t[n]=a?t[n]+`, `+r:r)}),t};function pI(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}var mI=RegExp(`[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+`,`g`),hI=RegExp(`[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+`,`g`);function gI(e,t){return X.isArray(e)?e.map(e=>gI(e,t)):pI(String(e).replace(t,``))}var _I=e=>gI(e,mI),vI=e=>gI(e,hI);function yI(e){let t=Object.create(null);return X.forEach(e.toJSON(),(e,n)=>{t[n]=vI(e)}),t}var bI=Symbol(`internals`);function xI(e){return e&&String(e).trim().toLowerCase()}function SI(e){return e===!1||e==null?e:X.isArray(e)?e.map(SI):_I(String(e))}function CI(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var wI=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function TI(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}function EI(e){let t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n=``;for(let r=1;r<t;r++){let i=e.charCodeAt(r);if(i===34||i===92&&(r+=1,r>=t))return e;n+=e[r]}return n}function DI(e){let t=Object.create(null),n=String(e),r=0,i=!1,a=!1;function o(e){let i=TI(n.slice(r,e)),a=i.indexOf(`=`);if(a<1)return;let o=TI(i.slice(0,a));if(!wI.test(o))return;let s=o.toLowerCase();if(s===`__proto__`||s===`constructor`||s===`prototype`)return;let c=TI(i.slice(a+1));t[s]=EI(c)}for(let e=0;e<n.length;e++){let t=n.charCodeAt(e);i?a?a=!1:t===92?a=!0:t===34&&(i=!1):t===34?i=!0:(t===44||t===59)&&(o(e),r=e+1)}return o(n.length),t}var OI=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function kI(e,t,n,r,i){if(X.isFunction(r))return r.call(this,t,n);if(i&&(t=n),X.isString(t)){if(X.isString(r))return t.indexOf(r)!==-1;if(X.isRegExp(r))return r.test(t)}}function AI(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function jI(e,t){let n=X.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var MI=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=xI(t);if(!i)return;let a=X.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=SI(e))}let a=(e,t)=>X.forEach(e,(e,n)=>i(e,n,t));if(X.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(X.isString(e)&&(e=e.trim())&&!OI(e))a(fI(e),t);else if(X.isObject(e)&&X.isSafeIterable(e)){let n=Object.create(null),r,i;for(let t of e){if(!X.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);i=t[0],X.hasOwnProp(n,i)?(r=n[i],n[i]=X.isArray(r)?[...r,t[1]]:[r,t[1]]):n[i]=t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=xI(e),e){let n=X.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return CI(e);if(X.isFunction(t))return t.call(this,e,n);if(X.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=xI(e),e){let n=X.findKey(this,e);return!(!n||this[n]===void 0||t&&!kI(this,this[n],n,t))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=xI(e),e){let i=X.findKey(n,e);i&&(!t||kI(n,n[i],i,t))&&(delete n[i],r=!0)}}return X.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||kI(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return X.forEach(this,(r,i)=>{let a=X.findKey(n,i);if(a){t[a]=SI(r),delete t[i];return}let o=e?AI(i):String(i).trim();o!==i&&delete t[i],t[o]=SI(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return X.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&X.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(`
24
- `)}getSetCookie(){let e=this.get(`set-cookie`);return X.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return DI(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[bI]=this[bI]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=xI(e);t[r]||(jI(n,e),t[r]=!0)}return X.isArray(e)?e.forEach(r):r(e),this}};MI.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),X.reduceDescriptors(MI.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),X.freezeMethods(MI);var NI=`[REDACTED ****]`;function PI(e){if(X.hasOwnProp(e,`toJSON`))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(X.hasOwnProp(t,`toJSON`))return!0;t=Object.getPrototypeOf(t)}return!1}function FI(e,t){let n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{if(typeof e!=`object`||!e||X.isBuffer(e))return e;if(r.indexOf(e)!==-1)return;e instanceof MI&&(e=e.toJSON()),r.push(e);let t;if(X.isArray(e))t=[],e.forEach((e,n)=>{let r=i(e);X.isUndefined(r)||(t[n]=r)});else{if(!X.isPlainObject(e)&&PI(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?NI:i(a);X.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}function II(e){try{return String(e)}catch{return``}}function LI(e){return e.errors.map(e=>{try{return e&&e.message?II(e.message):II(e)}catch{return``}}).filter(Boolean).join(`; `)||e.name||`AggregateError`}var Z=class e extends Error{static from(t,n,r,i,a,o){let s=t.message;!s&&X.isArray(t.errors)&&t.errors.length&&(s=LI(t));let c=new e(s,n||t.code,r,i,a);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),o&&Object.assign(c,o),c}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&X.hasOwnProp(e,`redact`)?e.redact:void 0,n=X.isArray(t)&&t.length>0?FI(e,t):X.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};Z.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,Z.ERR_BAD_OPTION=`ERR_BAD_OPTION`,Z.ECONNABORTED=`ECONNABORTED`,Z.ETIMEDOUT=`ETIMEDOUT`,Z.ECONNREFUSED=`ECONNREFUSED`,Z.ERR_NETWORK=`ERR_NETWORK`,Z.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,Z.ERR_DEPRECATED=`ERR_DEPRECATED`,Z.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,Z.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,Z.ERR_CANCELED=`ERR_CANCELED`,Z.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,Z.ERR_INVALID_URL=`ERR_INVALID_URL`,Z.ERR_FORM_DATA_DEPTH_EXCEEDED=`ERR_FORM_DATA_DEPTH_EXCEEDED`;function RI(e){return X.isPlainObject(e)||X.isArray(e)}function zI(e){return X.endsWith(e,`[]`)?e.slice(0,-2):e}function BI(e,t,n){return e?e.concat(t).map(function(e,t){return e=zI(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function VI(e){return X.isArray(e)&&!e.some(RI)}var HI=X.toFlatObject(X,{},null,function(e){return/^is[A-Z]/.test(e)});function UI(e,t,n){if(!X.isObject(e))throw TypeError(`target must be an object`);t||=new FormData;let r=(e,t)=>{let r=X.getSafeProp(n,e);return X.isUndefined(r)?t:r},i=r(`metaTokens`,!0),a=r(`visitor`)||h,o=r(`dots`,!1),s=r(`indexes`,!1),c=r(`Blob`)||typeof Blob<`u`&&Blob,l=r(`maxDepth`,100),u=c&&X.isSpecCompliantForm(t),d=[];if(!X.isFunction(a))throw TypeError(`visitor must be a function`);function f(e){if(e===null)return``;if(X.isDate(e))return e.toISOString();if(X.isBoolean(e))return e.toString();if(!u&&X.isBlob(e))throw new Z(`Blob is not supported. Use a Buffer instead.`);if(X.isArrayBuffer(e)||X.isTypedArray(e)){if(u&&typeof c==`function`)return new c([e]);throw new Z(`Blob is not supported. Use a Buffer instead.`,Z.ERR_NOT_SUPPORT)}return e}function p(e){if(e>l)throw new Z(`Object is too deeply nested (`+e+` levels). Max depth: `+l,Z.ERR_FORM_DATA_DEPTH_EXCEEDED)}function m(e,t){if(l===1/0)return JSON.stringify(e);let n=[];return JSON.stringify(e,function(e,r){if(!X.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),p(t+n.length-1),r})}function h(e,n,r){let a=e;if(X.isReactNative(t)&&X.isReactNativeBlob(e))return t.append(BI(r,n,o),f(e)),!1;if(e&&!r&&typeof e==`object`){if(X.endsWith(n,`{}`))n=i?n:n.slice(0,-2),e=m(e,1);else if(X.isArray(e)&&VI(e)||(X.isFileList(e)||X.endsWith(n,`[]`))&&(a=X.toArray(e)))return n=zI(n),a.forEach(function(e,r){!(X.isUndefined(e)||e===null)&&t.append(s===!0?BI([n],r,o):s===null?n:n+`[]`,f(e))}),!1}return RI(e)?!0:(t.append(BI(r,n,o),f(e)),!1)}let g=Object.assign(HI,{defaultVisitor:h,convertValue:f,isVisitable:RI});function _(e,n,r=0){if(!X.isUndefined(e)){if(p(r),d.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));d.push(e),X.forEach(e,function(e,i){(!(X.isUndefined(e)||e===null)&&a.call(t,e,X.isString(i)?i.trim():i,n,g))===!0&&_(e,n?n.concat(i):[i],r+1)}),d.pop()}}if(!X.isObject(e))throw TypeError(`data must be an object`);return _(e),t}function WI(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function GI(e,t){this._pairs=[],e&&UI(e,this,t)}var KI=GI.prototype;KI.append=function(e,t){this._pairs.push([e,t])},KI.toString=function(e){let t=e?t=>e.call(this,t,WI):WI;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function qI(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function JI(e,t,n){if(!t)return e;e||=``;let r=X.isFunction(n)?{serialize:n}:n,i=X.getSafeProp(r,`encode`)||qI,a=X.getSafeProp(r,`serialize`),o;if(o=a?a(t,r):X.isURLSearchParams(t)?t.toString():new GI(t,r).toString(i),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var YI=Symbol(`internals`);function XI(e){return e?e.length:0}function ZI(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function QI(e,t){let n=e.handlers,r=XI(n);n===t.handlersRef?r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(e,r){n[e.index]!==e.handler&&t.handlerEntries.delete(r)}):t.handlerEntries.clear()):(t.handlersRef=n,t.handlerEntries.clear()),t.handlersLength=r}var $I=class{constructor(){this.handlers=[],this[YI]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){let r={fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null},i=this[YI];this.handlers??=[],QI(this,i);let a=i.nextId++;return this.handlers.push(r),i.handlerEntries.set(a,{handler:r,index:this.handlers.length-1}),i.handlersLength=this.handlers.length,a}eject(e){let t=this[YI];QI(this,t);let n=t.handlerEntries.get(e);if(n){if(t.handlerEntries.delete(e),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,t.iterationDepth||(ZI(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],QI(this,this[YI]))}forEach(e){let t=this[YI];QI(this,t),t.iterationDepth++;try{X.forEach(this.handlers,function(t){t!==null&&e(t)})}finally{--t.iterationDepth||(QI(this,t),ZI(this.handlers),t.handlersLength=XI(this.handlers))}}},eL={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},tL={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:GI,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},nL=s({hasBrowserEnv:()=>rL,hasStandardBrowserEnv:()=>aL,hasStandardBrowserWebWorkerEnv:()=>oL,navigator:()=>iL,origin:()=>sL}),rL=typeof window<`u`&&typeof document<`u`,iL=typeof navigator==`object`&&navigator||void 0,aL=rL&&(!iL||[`ReactNative`,`NativeScript`,`NS`].indexOf(iL.product)<0),oL=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,sL=rL&&window.location.href||`http://localhost`,cL={...nL,...tL};function lL(e,t){return UI(e,new cL.classes.URLSearchParams,{visitor:function(e,t,n,r){return cL.isNode&&X.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}var uL=100;function dL(e){if(e>uL)throw new Z(`FormData field is too deeply nested (`+e+` levels). Max depth: `+uL,Z.ERR_FORM_DATA_DEPTH_EXCEEDED)}function fL(e){let t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g,r;for(;(r=n.exec(e))!==null;)dL(t.length),t.push(r[0]===`[]`?``:r[1]||r[0]);return t}function pL(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function mL(e){function t(e,n,r,i){dL(i);let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&X.isArray(r)?r.length:a,s?(X.hasOwnProp(r,a)?r[a]=X.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n,!o):((!X.hasOwnProp(r,a)||!X.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&X.isArray(r[a])&&(r[a]=pL(r[a])),!o)}if(X.isFormData(e)&&X.isFunction(e.entries)){let n={};return X.forEachEntry(e,(e,r)=>{t(fL(e),r,n,0)}),n}return null}var hL=Object.freeze([`get`,`delete`,`head`,`options`,`post`,`put`,`patch`,`purge`,`link`,`unlink`,`query`]),gL=(e,t)=>e!=null&&X.hasOwnProp(e,t)?e[t]:void 0;function _L(e,t,n){if(X.isString(e))try{return(t||JSON.parse)(e),X.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var vL={transitional:eL,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=X.isObject(e);if(i&&X.isHTMLForm(e)&&(e=new FormData(e)),X.isFormData(e))return r?JSON.stringify(mL(e)):e;if(X.isArrayBuffer(e)||X.isBuffer(e)||X.isStream(e)||X.isFile(e)||X.isBlob(e)||X.isReadableStream(e))return e;if(X.isArrayBufferView(e))return e.buffer;if(X.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){let t=gL(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return lL(e,t).toString();if((a=X.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=gL(this,`env`),r=n&&n.FormData;return UI(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),_L(e)):e}],transformResponse:[function(e){let t=gL(this,`transitional`)||vL.transitional,n=t&&t.forcedJSONParsing,r=gL(this,`responseType`),i=r===`json`;if(X.isResponse(e)||X.isReadableStream(e))return e;if(e&&X.isString(e)&&(n&&!r||i)){let n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,gL(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?Z.from(e,Z.ERR_BAD_RESPONSE,this,null,gL(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:cL.classes.FormData,Blob:cL.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};X.forEach(hL,e=>{vL.headers[e]={}});function yL(e,t){let n=this||vL,r=t||n,i=MI.from(r.headers),a=r.data;return X.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function bL(e){return!!(e&&e.__CANCEL__)}var xL=class extends Z{constructor(e,t,n){super(e??`canceled`,Z.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function SL(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Z(`Request failed with status code `+n.status,n.status>=400&&n.status<500?Z.ERR_BAD_REQUEST:Z.ERR_BAD_RESPONSE,n.config,n.request,n))}var CL=/[\t\n\r]/g;function wL(e){if(typeof e!=`string`)return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(CL,``)}function TL(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||``}function EL(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function DL(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i),(...e)=>o(e)]}var OL=(e,t,n=3)=>{let r=0,i=EL(50,250);return DL(n=>{if(!n||!X.isNumber(n.loaded))return;let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=Math.max(0,o==null?a:Math.min(a,o)),c=Math.max(0,s-r),l=i(c);r=Math.max(r,s),e({loaded:s,total:o,progress:o?s/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o?(o-s)/l:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},kL=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},AL=(e,t=X.asap)=>(...n)=>t(()=>e(...n)),jL=cL.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,cL.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(cL.origin),cL.navigator&&/(msie|trident)/i.test(cL.navigator.userAgent)):()=>!0,ML=cL.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];X.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),X.isString(r)&&s.push(`path=${r}`),X.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),X.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.split(`;`);for(let n=0;n<t.length;n++){let r=t[n].replace(/^\s+/,``),i=r.indexOf(`=`);if(i!==-1&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch{return r.slice(i+1)}}return null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function NL(e){return typeof e==`string`&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function PL(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+`/`+t.replace(/^\/+/,``)}var FL=/^https?:(?!\/\/)/i;function IL(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n=``)=>`${t}${n}${NI}`)}function LL(e){let t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${NI}@`),n=t.indexOf(`#`),r=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${NI}`);return n===-1?r:`${r}#${IL(t.slice(n+1))}`}function RL(e,t){if(typeof e==`string`){let n=wL(e);if(FL.test(n))throw new Z(`Invalid URL ${JSON.stringify(LL(n))}: missing "//" after protocol`,Z.ERR_INVALID_URL,t)}}function zL(e,t,n,r){RL(t,r);let i=!NL(t);return e&&(i||n===!1)?(RL(e,r),PL(e,t)):t}var BL=e=>e instanceof MI?{...e}:e,VL=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function HL(e,t){e||={},t||={};let n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(e,t,n,r){return X.isPlainObject(e)&&X.isPlainObject(t)?X.merge.call({caseless:r},e,t):X.isPlainObject(t)?X.merge({},t):X.isArray(t)?t.slice():t}function i(e,t,n,i){if(!X.isUndefined(t))return r(e,t,n,i);if(!X.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!X.isUndefined(t))return r(void 0,t)}function o(e,t){if(!X.isUndefined(t))return r(void 0,t);if(!X.isUndefined(e))return r(void 0,e)}function s(n){let r=X.hasOwnProp(t,`transitional`)?t.transitional:void 0;if(!X.isUndefined(r)){if(X.isPlainObject(r)){if(X.hasOwnProp(r,n))return r[n]}else return}let i=X.hasOwnProp(e,`transitional`)?e.transitional:void 0;if(X.isPlainObject(i)&&X.hasOwnProp(i,n))return i[n]}function c(n,i,a){if(X.hasOwnProp(t,a))return r(n,i);if(X.hasOwnProp(e,a))return r(void 0,n)}let l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutErrorMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:c,headers:(e,t,n)=>i(BL(e),BL(t),n,!0)};return X.forEach(VL({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=X.hasOwnProp(l,r)?l[r]:i,o=a(X.hasOwnProp(e,r)?e[r]:void 0,X.hasOwnProp(t,r)?t[r]:void 0,r);X.isUndefined(o)&&a!==c||(n[r]=o)}),X.hasOwnProp(t,`validateStatus`)&&X.isUndefined(t.validateStatus)&&s(`validateStatusUndefinedResolves`)===!1&&(X.hasOwnProp(e,`validateStatus`)?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}var UL=[`content-type`,`content-length`];function WL(e,t,n){if(n!==`content-only`){e.set(t);return}Object.entries(t||{}).forEach(([t,n])=>{UL.includes(t.toLowerCase())&&e.set(t,n)})}var GL=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function KL(e){let t=HL({},e),n=e=>X.hasOwnProp(t,e)?t[e]:void 0,r=n(`data`),i=n(`withXSRFToken`),a=n(`xsrfHeaderName`),o=n(`xsrfCookieName`),s=n(`headers`),c=n(`auth`),l=n(`baseURL`),u=n(`allowAbsoluteUrls`),d=n(`url`);if(t.headers=s=MI.from(s),t.url=JI(zL(l,d,u,t),n(`params`),n(`paramsSerializer`)),c){let t=X.getSafeProp(c,`username`)||``,n=X.getSafeProp(c,`password`)||``;try{s.set(`Authorization`,`Basic `+btoa(t+`:`+(n?GL(n):``)))}catch(t){throw Z.from(t,Z.ERR_BAD_OPTION_VALUE,e)}}if(X.isFormData(r)){let e=X.getSafeProp(r,`getHeaders`);cL.hasStandardBrowserEnv||cL.hasStandardBrowserWebWorkerEnv||X.isReactNative(r)?s.setContentType(void 0):X.isFunction(e)&&WL(s,e.call(r),n(`formDataHeaderPolicy`))}if(cL.hasStandardBrowserEnv&&(X.isFunction(i)&&(i=i(t)),i===!0||i==null&&jL(t.url))){let e=a&&o&&ML.read(o);e&&s.set(a,e)}return t}var qL=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=KL(e),i=r.data,a=MI.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p,m;function h(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let g=new XMLHttpRequest;g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout;function _(i){if(!g)return;if(g.status===0&&(TL(wL(r.url))||TL(cL.origin))!==`file`&&!(g.responseURL&&g.responseURL.startsWith(`file:`))){n(new Z(`Request aborted`,Z.ECONNABORTED,e,g)),h(),g=null;return}try{i?m&&m(i):p&&p()}catch(e){setTimeout(()=>{throw e})}if(!g)return;let a=MI.from(`getAllResponseHeaders`in g&&g.getAllResponseHeaders());SL(function(e){t(e),h()},function(e){n(e),h()},{data:!o||o===`text`||o===`json`?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:a,config:e,request:g}),g=null}`onloadend`in g?g.onloadend=_:g.onreadystatechange=function(){g&&g.readyState===4&&(g.status!==0||g.responseURL&&g.responseURL.startsWith(`file:`))&&setTimeout(_)},g.onabort=function(){g&&=(n(new Z(`Request aborted`,Z.ECONNABORTED,e,g)),h(),null)},g.onerror=function(t){let r=new Z(t&&t.message?t.message:`Network Error`,Z.ERR_NETWORK,e,g);r.event=t||null,n(r),h(),g=null},g.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||eL;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Z(t,i.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,e,g)),h(),g=null},i===void 0&&a.setContentType(null),`setRequestHeader`in g&&X.forEach(yI(a),function(e,t){g.setRequestHeader(t,e)}),X.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),o&&o!==`json`&&(g.responseType=r.responseType),c&&([d,p,m]=OL(c,!0),g.addEventListener(`progress`,d)),s&&g.upload&&([u,f]=OL(s),g.upload.addEventListener(`progress`,u),g.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{g&&=(n(!t||t.type?new xL(null,e,g):t),g.abort(),h(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let v=TL(r.url);if(v&&!cL.protocols.includes(v)){n(new Z(`Unsupported protocol `+v+`:`,Z.ERR_BAD_REQUEST,e)),h();return}g.send(i||null)})},JL=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,r=!1,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof Z?t:new xL(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new Z(`timeout of ${t}ms exceeded`,Z.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>{if(!r){if(e.aborted){i.call(e);return}e.addEventListener(`abort`,i,{once:!0})}});let{signal:s}=n;return s.unsubscribe=()=>X.asap(o),s},YL=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},XL=async function*(e,t){for await(let n of ZL(e))yield*YL(n,t)},ZL=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},QL=(e,t,n,r)=>{let i=XL(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},$L=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,eR=(e,t,n)=>t+2<n&&$L(e.charCodeAt(t+1))&&$L(e.charCodeAt(t+2)),tR=e=>e<=57?e-48:(e&223)-55,nR=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,rR=e=>e===9||e===10||e===12||e===13||e===32,iR=e=>{let t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},aR=e=>{let t=e.length,n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},oR=e=>{let t=e.length,n=0,r=0,i=!1;for(let a=0;a<t;a++){let o=e.charCodeAt(a);if(o===37&&eR(e,a,t)&&(o=tR(e.charCodeAt(a+1))*16+tR(e.charCodeAt(a+2)),a+=2),!rR(o)){if(o===61){r++;continue}if(!nR(o)||r>0){i=!0;continue}n++}}return i||r>2||r>0&&(n+r)%4!=0||n%4==1?aR(e):iR(n)},sR=(e,t)=>{if(!e||typeof e!=`string`||!e.startsWith(`data:`))return 0;let n=e.indexOf(`,`);if(n<0)return 0;let r=e.slice(5,n),i=e.slice(n+1);if(/;base64/i.test(r))return t(i);let a=0;for(let e=0,t=i.length;e<t;e++){let n=i.charCodeAt(e);if(n===37&&eR(i,e,t))a+=1,e+=2;else if(n<128)a+=1;else if(n<2048)a+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=i.charCodeAt(e+1);t>=56320&&t<=57343?(a+=4,e++):a+=3}else a+=3}return a};function cR(e){let t=typeof e==`string`?e.indexOf(`#`):-1;return sR(t===-1?e:e.slice(0,t),oR)}var lR=`1.20.0`,uR=65536,dR={cache:`default`,redirect:`follow`,referrer:`about:client`,referrerPolicy:``,mode:`cors`,integrity:``,keepalive:!1,priority:`auto`,window:null},{isFunction:fR}=X,pR=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),mR=e=>{if(!X.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},hR=(e,...t)=>{try{return!!e(...t)}catch{return!1}},gR=e=>{let t=e.indexOf(`://`),n=e;return t!==-1&&(n=n.slice(t+3)),n.includes(`@`)||n.includes(`:`)},_R=e=>{let t=X.global!==void 0&&X.global!==null?X.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=X.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);let{fetch:i,Request:a,Response:o}=e,s=i?fR(i):typeof fetch==`function`,c=fR(a),l=fR(o);if(!s)return!1;let u=s&&fR(n),d=s&&(typeof r==`function`?(e=>t=>e.encode(t))(new r):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=c&&u&&hR(()=>{let e=!1,t=new a(cL.origin,{body:new n,method:`POST`,get duplex(){return e=!0,`half`}}),r=t.headers.has(`Content-Type`);return t.body!=null&&t.body.cancel(),e&&!r}),p=l&&u&&hR(()=>X.isReadableStream(new o(``).body)),m={stream:p&&(e=>e.body)};s&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!m[e]&&(m[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new Z(`Response type '${e}' is not supported`,Z.ERR_NOT_SUPPORT,n)})});let h=async e=>{if(e==null)return 0;if(X.isBlob(e))return e.size;if(X.isSpecCompliantForm(e))return(await new a(cL.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(X.isArrayBufferView(e)||X.isArrayBuffer(e))return e.byteLength;if(X.isURLSearchParams(e)&&(e+=``),X.isString(e))return(await d(e)).byteLength},g=async(e,t)=>X.toFiniteNumber(e.getContentLength())??h(t);return async e=>{let{url:t,method:n,data:s,signal:l,cancelToken:d,timeout:_,onDownloadProgress:v,onUploadProgress:y,responseType:b,headers:x,withCredentials:S=`same-origin`,fetchOptions:C,maxContentLength:w,maxBodyLength:T,maxRedirects:E}=KL(e),D=X.isNumber(w)&&w>-1,O=X.isNumber(T)&&T>-1,k=t=>X.hasOwnProp(e,t)?e[t]:void 0,A=i||fetch;b=b?(b+``).toLowerCase():`text`;let j=JL([l,d&&d.toAbortSignal()],_),M=null,N=j&&j.unsubscribe&&(()=>{j.unsubscribe()}),P,F=null,I=()=>new Z(`Request body larger than maxBodyLength limit`,Z.ERR_BAD_REQUEST,e,M);try{let i,l=k(`auth`);if(l&&(i={username:X.getSafeProp(l,`username`)||``,password:X.getSafeProp(l,`password`)||``}),gR(t)){let e=new URL(t,cL.origin);!i&&(e.username||e.password)&&(i={username:mR(e.username),password:mR(e.password)}),(e.username||e.password)&&(e.username=``,e.password=``,t=e.href)}if(i&&(x.delete(`authorization`),x.set(`Authorization`,`Basic `+btoa(pR((i.username||``)+`:`+(i.password||``))))),D&&typeof t==`string`&&t.startsWith(`data:`)&&cR(t)>w)throw new Z(`maxContentLength size of `+w+` exceeded`,Z.ERR_BAD_RESPONSE,e,M);if(O&&n!==`get`&&n!==`head`){let e=await h(s);if(typeof e==`number`&&isFinite(e)&&(P=e,e>T))throw I()}let d=O&&(X.isReadableStream(s)||X.isStream(s)),_=(e,t,n)=>QL(e,uR,e=>{if(O&&e>T)throw F=I();t&&t(e)},n);if(f&&n!==`get`&&n!==`head`&&(y||d)){if(P??=await g(x,s),P!==0||d){let e=new a(t,{method:`POST`,body:s,duplex:`half`}),n;if(X.isFormData(s)&&(n=e.headers.get(`content-type`))&&x.setContentType(n),e.body){let[t,n]=y&&kL(P,OL(AL(y)))||[];s=_(e.body,t,n)}}}else if(d&&!c&&u&&n!==`get`&&n!==`head`)s=_(s);else if(d&&c&&!f&&n!==`get`&&n!==`head`)throw new Z(`Stream request bodies are not supported by the current fetch implementation`,Z.ERR_NOT_SUPPORT,e,M);X.isString(S)||(S=S?`include`:`omit`);let ee=c&&`credentials`in a.prototype;if(X.isFormData(s)){let e=x.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&x.delete(`content-type`)}x.set(`User-Agent`,`axios/`+lR,!1);let te=C==null?C:Object.assign(Object.create(null),C);te&&(delete te.body,delete te.headers,delete te.method,delete te.signal,delete te.duplex,delete te.credentials);let ne=Object.assign(Object.create(null),te,{signal:j,method:n.toUpperCase(),headers:yI(x.normalize()),body:s,duplex:`half`,credentials:ee?S:void 0});c&&(X.forEach(dR,(e,t)=>{ne[t]===void 0&&(ne[t]=e)}),ne.signal===void 0&&(ne.signal=null),ne.body===void 0&&(ne.body=null)),E===0&&(ne.redirect=`manual`,te&&(te.redirect=`manual`)),M=c&&new a(t,ne);let re=await(c?A(M,te):A(t,ne)),ie=MI.from(re.headers);if(D){let t=X.toFiniteNumber(ie.getContentLength());if(t!=null&&t>w)throw new Z(`maxContentLength size of `+w+` exceeded`,Z.ERR_BAD_RESPONSE,e,M)}let ae=p&&(b===`stream`||b===`response`);if(p&&re.body&&(v||D||ae&&N)){let t={};[`status`,`statusText`,`headers`].forEach(e=>{t[e]=re[e]});let n=X.toFiniteNumber(ie.getContentLength()),[r,i]=v&&kL(n,OL(AL(v),!0))||[],a=0;re=new o(QL(re.body,uR,t=>{if(D&&(a=t,a>w))throw new Z(`maxContentLength size of `+w+` exceeded`,Z.ERR_BAD_RESPONSE,e,M);r&&r(t)},()=>{i&&i(),N&&N()}),t)}b||=`text`;let oe=await m[X.findKey(m,b)||`text`](re,e);if(D&&!p&&!ae){let t;if(oe!=null&&(typeof oe.byteLength==`number`?t=oe.byteLength:typeof oe.size==`number`?t=oe.size:typeof oe==`string`&&(t=typeof r==`function`?new r().encode(oe).byteLength:oe.length)),typeof t==`number`&&t>w)throw new Z(`maxContentLength size of `+w+` exceeded`,Z.ERR_BAD_RESPONSE,e,M)}return!ae&&N&&N(),await new Promise((t,n)=>{SL(t,n,{data:oe,headers:MI.from(re.headers),status:re.status,statusText:re.statusText,config:e,request:M})})}catch(t){if(N&&N(),j&&j.aborted&&j.reason instanceof Z){let n=j.reason;throw n.config=e,M&&(n.request=M),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(F)throw M&&!F.request&&(F.request=M),F;if(t instanceof Z)throw M&&!t.request&&(t.request=M),t;if(t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)){let n=new Z(`Network Error`,Z.ERR_NETWORK,e,M,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw Z.from(t,t&&t.code,e,M,t&&t.response)}}},vR=new Map,yR=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=vR;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:_R(t)),l=c;return c};yR();var bR={http:null,xhr:qL,fetch:{get:yR}};X.forEach(bR,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var xR=e=>`- ${e}`,SR=e=>X.isFunction(e)||e===null||e===!1;function CR(e,t){e=X.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!SR(r)&&(i=bR[(n=String(r)).toLowerCase()],i===void 0))throw new Z(`Unknown adapter '${n}'`);if(i&&(X.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new Z(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
25
- `+e.map(xR).join(`
26
- `):` `+xR(e[0]):`as no adapter specified`),Z.ERR_NOT_SUPPORT)}return i}var wR={getAdapter:CR,adapters:bR};function TR(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xL(null,e)}function ER(e){let t=X.toSafeFlatObject(e);return TR(t),t.headers=MI.from(X.getSafeProp(t,`headers`)),t.data=yL.call(t,t.transformRequest),[`post`,`put`,`patch`].indexOf(t.method)!==-1&&t.headers.setContentType(`application/x-www-form-urlencoded`,!1),wR.getAdapter(t.adapter||vL.adapter,t)(t).then(function(e){TR(t),t.response=e;try{e.data=yL.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=MI.from(e.headers),e},function(e){if(!bL(e)&&(TR(t),e&&e.response)){t.response=e.response;try{e.response.data=yL.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=MI.from(e.response.headers)}return Promise.reject(e)})}var DR={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{DR[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var OR={};DR.transitional=function(e,t,n){function r(e,t){return`[Axios v`+lR+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new Z(r(i,` has been removed`+(t?` in `+t:``)),Z.ERR_DEPRECATED);return t&&!OR[i]&&(OR[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),!e||e(n,i,a)}},DR.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function kR(e,t,n){if(typeof e!=`object`||!e)throw new Z(`options must be an object`,Z.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-->0;){let a=r[i],o=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new Z(`option `+a+` must be `+n,Z.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Z(`Unknown option `+a,Z.ERR_BAD_OPTION)}}var AR={assertOptions:kR,validators:DR},jR=AR.validators,MR=class{constructor(e){this.defaults=e||{},this.interceptors={request:new $I,response:new $I}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack,r=``;if(typeof n==`string`){let e=n.indexOf(`
27
- `);r=e===-1?``:n.slice(e+1)}if(!e.stack)e.stack=r;else if(r){let t=r.indexOf(`
28
- `),n=t===-1?-1:r.indexOf(`
29
- `,t+1),i=n===-1?``:r.slice(n+1);String(e.stack).endsWith(i)||(e.stack+=`
30
- `+r)}}catch{}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=HL(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&AR.assertOptions(n,{silentJSONParsing:jR.transitional(jR.boolean),forcedJSONParsing:jR.transitional(jR.boolean),clarifyTimeoutError:jR.transitional(jR.boolean),legacyInterceptorReqResOrdering:jR.transitional(jR.boolean),advertiseZstdAcceptEncoding:jR.transitional(jR.boolean),validateStatusUndefinedResolves:jR.transitional(jR.boolean)},!1),r!=null&&(X.isFunction(r)?t.paramsSerializer={serialize:r}:AR.assertOptions(r,{encode:jR.function,serialize:jR.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),AR.assertOptions(t,{baseUrl:jR.spelling(`baseURL`),withXsrfToken:jR.spelling(`withXSRFToken`)},!0),t.method=(X.getSafeProp(t,`method`)||X.getSafeProp(this.defaults,`method`)||`get`).toLowerCase();let a=i&&X.merge(i.common,i[t.method]);i&&X.forEach(hL.concat(`common`),e=>{delete i[e]}),t.headers=MI.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||eL;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[ER.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e?e(f):f}catch(e){if(!t){l=Promise.reject(e);break}try{let n=t.call(this,e);X.isThenable(n)&&(l=Promise.resolve(n).then(()=>ER.call(this,f)))}catch(e){l=Promise.reject(e)}break}}if(!l)try{l=ER.call(this,f)}catch(e){l=Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=HL(this.defaults,e),JI(zL(e.baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};X.forEach([`delete`,`get`,`head`,`options`],function(e){MR.prototype[e]=function(t,n){return this.request(HL(n||{},{method:e,url:t,data:n&&X.hasOwnProp(n,`data`)?n.data:void 0}))}}),X.forEach([`post`,`put`,`patch`,`query`],function(e){function t(t){return function(n,r,i){return this.request(HL(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}MR.prototype[e]=t(),e!==`query`&&(MR.prototype[e+`Form`]=t(!0))});var NR=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-->0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new xL(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function PR(e){return function(t){return e.apply(null,t)}}function FR(e){return X.isObject(e)&&e.isAxiosError===!0}var IR={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(IR).forEach(([e,t])=>{IR[t]===void 0&&(IR[t]=e)});function LR(e){let t=new MR(e),n=WP(MR.prototype.request,t);return X.extend(n,MR.prototype,t,{allOwnKeys:!0}),X.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return LR(HL(e,t))},n}var RR=LR(vL);RR.Axios=MR,RR.CanceledError=xL,RR.CancelToken=NR,RR.isCancel=bL,RR.VERSION=lR,RR.toFormData=UI,RR.AxiosError=Z,RR.Cancel=RR.CanceledError,RR.all=function(e){return Promise.all(e)},RR.spread=PR,RR.isAxiosError=FR,RR.mergeConfig=HL,RR.AxiosHeaders=MI,RR.formToJSON=e=>mL(X.isHTMLForm(e)?new FormData(e):e),RR.getAdapter=wR.getAdapter,RR.HttpStatusCode=IR,RR.default=RR;var zR=e=>Array.from(e).map(e=>e.charCodeAt(0).toString(16).padStart(2,`0`)).join(``),BR=e=>btoa(unescape(encodeURIComponent(e))),VR=(e,t=5)=>Array.from(e).map(e=>String.fromCharCode(e.charCodeAt(0)+t)).join(``),HR=e=>{let t=zR(VR(e)),n=BR(Array.from(t).reverse().join(``));return BR(encodeURIComponent(n))},UR=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],WR=e=>{if(typeof TextEncoder<`u`)return new TextEncoder().encode(e);let t=unescape(encodeURIComponent(e));return Uint8Array.from(t,e=>e.charCodeAt(0))},GR=e=>Array.from(e).map(e=>e.toString(16).padStart(2,`0`)).join(``),KR=(...e)=>{let t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t),r=0;return e.forEach(e=>{n.set(e,r),r+=e.length}),n},qR=(e,t)=>e>>>t|e<<32-t,JR=e=>{let t=e.length*8,n=e.length+9+63>>6<<6,r=new Uint8Array(n),i=Array(64),a=1779033703,o=3144134277,s=1013904242,c=2773480762,l=1359893119,u=2600822924,d=528734635,f=1541459225;r.set(e),r[e.length]=128;for(let e=0;e<8;e++)r[n-1-e]=Math.floor(t/2**(e*8))&255;for(let e=0;e<r.length;e+=64){for(let t=0;t<16;t++){let n=e+t*4;i[t]=(r[n]<<24|r[n+1]<<16|r[n+2]<<8|r[n+3])>>>0}for(let e=16;e<64;e++){let t=qR(i[e-15],7)^qR(i[e-15],18)^i[e-15]>>>3,n=qR(i[e-2],17)^qR(i[e-2],19)^i[e-2]>>>10;i[e]=i[e-16]+t+i[e-7]+n>>>0}let t=a,n=o,p=s,m=c,h=l,g=u,_=d,v=f;for(let e=0;e<64;e++){let r=qR(h,6)^qR(h,11)^qR(h,25),a=h&g^~h&_,o=v+r+a+UR[e]+i[e]>>>0,s=(qR(t,2)^qR(t,13)^qR(t,22))+(t&n^t&p^n&p)>>>0;v=_,_=g,g=h,h=m+o>>>0,m=p,p=n,n=t,t=o+s>>>0}a=a+t>>>0,o=o+n>>>0,s=s+p>>>0,c=c+m>>>0,l=l+h>>>0,u=u+g>>>0,d=d+_>>>0,f=f+v>>>0}let p=new Uint8Array(32);return[a,o,s,c,l,u,d,f].forEach((e,t)=>{p[t*4]=e>>>24&255,p[t*4+1]=e>>>16&255,p[t*4+2]=e>>>8&255,p[t*4+3]=e&255}),p},YR=()=>{let e=globalThis.crypto?.subtle,t=e;return!e||typeof t?.digest!=`function`||typeof t.importKey!=`function`||typeof t.sign!=`function`?null:e},XR=async e=>{let t=WR(e),n=YR();if(n){let e=await n.digest(`SHA-256`,t);return GR(new Uint8Array(e))}return GR(JR(t))},ZR=async(e,t)=>{let n=WR(e),r=WR(t),i=YR();if(i){let e=await i.importKey(`raw`,r,{name:`HMAC`,hash:`SHA-256`},!1,[`sign`]),t=await i.sign(`HMAC`,e,n);return GR(new Uint8Array(t))}r.length>64&&(r=JR(r));let a=new Uint8Array(64),o=new Uint8Array(64),s=new Uint8Array(64);return a.set(r),a.forEach((e,t)=>{o[t]=e^92,s[t]=e^54}),GR(JR(KR(o,JR(KR(s,n)))))},QR=()=>{if(typeof globalThis.crypto?.randomUUID==`function`)return globalThis.crypto.randomUUID();if(typeof globalThis.crypto?.getRandomValues==`function`){let e=globalThis.crypto.getRandomValues(new Uint8Array(16));return Array.from(e).map(e=>e.toString(16).padStart(2,`0`)).join(``)}return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`},$R=async e=>{let t=String(Date.now()),n=QR();return{"x-signature":HR(await ZR(`${e.method.toUpperCase()}|${e.url}|${e.body}|${t}|${n}`,e.token)),"x-timestamp":t,"x-nonce":n}},ez=`/kkk/v1`,tz=null,nz=(e=``,t=``)=>/^https?:\/\//.test(t)?new URL(t).pathname:`${e.replace(/\/$/,``)}${t.startsWith(`/`)?t:`/${t}`}`,rz=e=>e.method?.toUpperCase()===`GET`?``:e.data===void 0||e.data===null?`{}`:typeof e.data==`string`?e.data:JSON.stringify(e.data),iz=async()=>tz||(tz=(async()=>{let e=PO(),t=FO();if(!e||!t)return!1;try{let n=(await RR.post(`/api/v1/refresh`,{accessToken:e,refreshToken:t})).data.data?.accessToken;return n?(zO(n),!0):!1}catch{return!1}finally{tz=null}})(),tz),az=RR.create({timeout:1e4,headers:{"Content-Type":`application/json`}});az.interceptors.request.use(async e=>{let t=PO(),n=IO();t&&e.headers.set(`Authorization`,`Bearer ${t}`),n&&e.headers.set(`x-user-id`,n);let r=nz(e.baseURL,e.url);if(t&&r.startsWith(ez)){let n=await $R({method:e.method||`GET`,url:r,body:rz(e),token:t});e.headers.set(`x-original-url`,r),Object.entries(n).forEach(([t,n])=>{e.headers.set(t,n)})}return e}),az.interceptors.response.use(e=>e,async e=>{let t=e.config,n=e.response?.status;if(t&&!t._retry&&(n===401||n===419)&&(t._retry=!0,await iz()))return az(t);throw(n===401||n===419||n===420)&&BO(),Error(e.response?.data?.message||e.message)});var oz=async e=>{let t=await XR(e),n=await RR.post(`/api/v1/login`,{authorization:t},{timeout:1e4,headers:{"Content-Type":`application/json`}});if(!n.data.data?.accessToken||!n.data.data.userId||!n.data.data.refreshToken)throw Error(n.data.message||`登录失败`);RO(n.data.data)},sz=`/kkk/v1`,cz=(e,t)=>{if((e.success||e.code===200)&&e.data!==void 0)return e.data;throw Error(e.message||t)},lz=async()=>cz((await az.get(`${sz}/config`)).data,`获取配置失败`),uz=async e=>{cz((await az.post(`${sz}/config`,e)).data,`保存配置失败`)},dz=()=>typeof window>`u`?!1:window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,fz=e=>dz()?.01:e,pz=e=>dz()?0:e,mz={duration:fz(.35),ease:`power2.out`,stagger:pz(.03)},hz={opacity:0,y:12},gz={opacity:1,y:0,...mz};function _z(e){let t=/^\/(.*)\/([gimyu]*)$/.exec(e.toString());if(!t)throw Error(`Invalid RegExp`);return new RegExp(t[1]??``,t[2])}function vz(e){if(typeof e!=`object`)return e;if(e===null)return null;if(Array.isArray(e))return e.map(vz);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return _z(e);let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=vz(e[n]));return t}function yz(e,t){if(e.length===0)throw Error(t||`Expected a non-empty array`)}function bz(e,t){if(e.length<2)throw Error(t||`Expected an array with at least 2 items`)}var xz=e=>e[e.length-1],Sz=class{setResult(e){return this.result=e,this.hasResult=!0,this}exit(){return this.exiting=!0,this}push(e,t){return e.parent=this,t!==void 0&&(e.childName=t),e.root=this.root||this,e.options=e.options||this.options,this.children?(yz(this.children),xz(this.children).next=e,this.children.push(e)):(this.children=[e],this.nextAfterChildren=this.next||null,this.next=e),e.next=this,this}},Cz=class extends Sz{constructor(e,t){super(),this.left=e,this.right=t,this.pipe=`diff`}prepareDeltaResult(e){if(typeof e==`object`&&(this.options?.omitRemovedValues&&Array.isArray(e)&&e.length>1&&(e.length===2||e[2]===0||e[2]===3)&&(e[0]=0),this.options?.cloneDiffValues)){let t=typeof this.options?.cloneDiffValues==`function`?this.options?.cloneDiffValues:vz;typeof e[0]==`object`&&(e[0]=t(e[0])),typeof e[1]==`object`&&(e[1]=t(e[1]))}return e}setResult(e){return this.prepareDeltaResult(e),super.setResult(e)}},wz=class extends Sz{constructor(e,t){super(),this.left=e,this.delta=t,this.pipe=`patch`}},Tz=class extends Sz{constructor(e){super(),this.delta=e,this.pipe=`reverse`}},Ez=class{constructor(e){this.name=e,this.filters=[]}process(e){if(!this.processor)throw Error(`add this pipe to a processor before using it`);let t=this.debug,n=this.filters.length,r=e;for(let e=0;e<n;e++){let n=this.filters[e];if(n&&(t&&this.log(`filter: ${n.filterName}`),n(r),typeof r==`object`&&r.exiting)){r.exiting=!1;break}}!r.next&&this.resultCheck&&this.resultCheck(r)}log(e){console.log(`[jsondiffpatch] ${this.name} pipe, ${e}`)}append(...e){return this.filters.push(...e),this}prepend(...e){return this.filters.unshift(...e),this}indexOf(e){if(!e)throw Error(`a filter name is required`);for(let t=0;t<this.filters.length;t++)if(this.filters[t]?.filterName===e)return t;throw Error(`filter not found: ${e}`)}list(){return this.filters.map(e=>e.filterName)}after(e,...t){let n=this.indexOf(e);return this.filters.splice(n+1,0,...t),this}before(e,...t){let n=this.indexOf(e);return this.filters.splice(n,0,...t),this}replace(e,...t){let n=this.indexOf(e);return this.filters.splice(n,1,...t),this}remove(e){let t=this.indexOf(e);return this.filters.splice(t,1),this}clear(){return this.filters.length=0,this}shouldHaveResult(e){return e===!1?(this.resultCheck=null,this):(this.resultCheck||=e=>{if(!e.hasResult){console.log(e);let t=Error(`${this.name} failed`);throw t.noResult=!0,t}},this)}},Dz=class{constructor(e){this.selfOptions=e||{},this.pipes={}}options(e){return e&&(this.selfOptions=e),this.selfOptions}pipe(e,t){let n=t;if(typeof e==`string`){if(n===void 0)return this.pipes[e];this.pipes[e]=n}if(e&&e.name){if(n=e,n.processor===this)return n;this.pipes[n.name]=n}if(!n)throw Error(`pipe is not defined: ${e}`);return n.processor=this,n}process(e,t){let n=e;n.options=this.options();let r=t||e.pipe||`default`,i;for(;r;)n.nextAfterChildren!==void 0&&(n.next=n.nextAfterChildren,n.nextAfterChildren=null),typeof r==`string`&&(r=this.pipe(r)),r.process(n),i=r,r=null,n&&n.next&&(n=n.next,r=n.pipe||i);return n.hasResult?n.result:void 0}},Oz=(e,t,n,r)=>e[n]===t[r],kz=(e,t,n,r)=>{let i=e.length,a=t.length,o,s,c=Array(i+1);for(o=0;o<i+1;o++){let e=Array(a+1);for(s=0;s<a+1;s++)e[s]=0;c[o]=e}for(c.match=n,o=1;o<i+1;o++){let i=c[o];if(i===void 0)throw Error(`LCS matrix row is undefined`);let l=c[o-1];if(l===void 0)throw Error(`LCS matrix row is undefined`);for(s=1;s<a+1;s++)n(e,t,o-1,s-1,r)?i[s]=(l[s-1]??0)+1:i[s]=Math.max(l[s]??0,i[s-1]??0)}return c},Az=(e,t,n,r)=>{let i=t.length,a=n.length,o={sequence:[],indices1:[],indices2:[]};for(;i!==0&&a!==0;){if(e.match===void 0)throw Error(`LCS matrix match function is undefined`);if(e.match(t,n,i-1,a-1,r))o.sequence.unshift(t[i-1]),o.indices1.unshift(i-1),o.indices2.unshift(a-1),--i,--a;else{let t=e[i];if(t===void 0)throw Error(`LCS matrix row is undefined`);let n=t[a-1];if(n===void 0)throw Error(`LCS matrix value is undefined`);let r=e[i-1];if(r===void 0)throw Error(`LCS matrix row is undefined`);let o=r[a];if(o===void 0)throw Error(`LCS matrix value is undefined`);n>o?--a:--i}}return o},jz={get:(e,t,n,r)=>{let i=r||{};return Az(kz(e,t,n||Oz,i),e,t,i)}},Mz=3;function Nz(e,t,n,r){for(let i=0;i<n;i++){let n=e[i];for(let e=0;e<r;e++){let r=t[e];if(i!==e&&n===r)return!0}}return!1}function Pz(e,t,n,r,i){let a=e[n],o=t[r];if(a===o)return!0;if(typeof a!=`object`||typeof o!=`object`)return!1;let s=i.objectHash;if(!s)return i.matchByPosition&&n===r;i.hashCache1=i.hashCache1||[];let c=i.hashCache1[n];if(c===void 0&&(i.hashCache1[n]=c=s(a,n)),c===void 0)return!1;i.hashCache2=i.hashCache2||[];let l=i.hashCache2[r];return l===void 0&&(i.hashCache2[r]=l=s(o,r)),l!==void 0&&c===l}var Fz=function(e){if(!e.leftIsArray)return;let t={objectHash:e.options?.objectHash,matchByPosition:e.options?.matchByPosition},n=0,r=0,i,a,o,s=e.left,c=e.right,l=s.length,u=c.length,d;for(l>0&&u>0&&!t.objectHash&&typeof t.matchByPosition!=`boolean`&&(t.matchByPosition=!Nz(s,c,l,u));n<l&&n<u&&Pz(s,c,n,n,t);)i=n,d=new Cz(s[i],c[i]),e.push(d,i),n++;for(;r+n<l&&r+n<u&&Pz(s,c,l-1-r,u-1-r,t);)a=l-1-r,o=u-1-r,d=new Cz(s[a],c[o]),e.push(d,o),r++;let f;if(n+r===l){if(l===u){e.setResult(void 0).exit();return}for(f||={_t:`a`},i=n;i<u-r;i++)f[i]=[c[i]],e.prepareDeltaResult(f[i]);e.setResult(f).exit();return}if(n+r===u){for(f||={_t:`a`},i=n;i<l-r;i++){let t=`_${i}`;f[t]=[s[i],0,0],e.prepareDeltaResult(f[t])}e.setResult(f).exit();return}t.hashCache1=void 0,t.hashCache2=void 0;let p=s.slice(n,l-r),m=c.slice(n,u-r),h=jz.get(p,m,Pz,t),g=[];for(f||={_t:`a`},i=n;i<l-r;i++)if(h.indices1.indexOf(i-n)<0){let t=`_${i}`;f[t]=[s[i],0,0],e.prepareDeltaResult(f[t]),g.push(i)}let _=!0;e.options?.arrays&&e.options.arrays.detectMove===!1&&(_=!1);let v=!1;e.options?.arrays?.includeValueOnMove&&(v=!0);let y=g.length;for(i=n;i<u-r;i++){let r=h.indices2.indexOf(i-n);if(r<0){let r=!1;if(_&&y>0)for(let l=0;l<y;l++){a=g[l];let u=a===void 0?void 0:f[`_${a}`];if(a!==void 0&&u&&Pz(p,m,a-n,i-n,t)){u.splice(1,2,i,Mz),u.splice(1,2,i,Mz),v||(u[0]=``),o=i,d=new Cz(s[a],c[o]),e.push(d,o),g.splice(l,1),r=!0;break}}r||(f[i]=[c[i]],e.prepareDeltaResult(f[i]))}else{if(h.indices1[r]===void 0)throw Error(`Invalid indexOnArray2: ${r}, seq.indices1: ${h.indices1}`);if(a=h.indices1[r]+n,h.indices2[r]===void 0)throw Error(`Invalid indexOnArray2: ${r}, seq.indices2: ${h.indices2}`);o=h.indices2[r]+n,d=new Cz(s[a],c[o]),e.push(d,o)}}e.setResult(f).exit()};Fz.filterName=`arrays`;var Iz={numerically(e,t){return e-t},numericallyBy(e){return(t,n)=>t[e]-n[e]}},Lz=function(e){if(!e.nested)return;let t=e.delta;if(t._t!==`a`)return;let n,r,i=t,a=e.left,o=[],s=[],c=[];for(n in i)if(n!==`_t`){if(n[0]===`_`){let e=n;if(i[e]!==void 0&&(i[e][2]===0||i[e][2]===Mz))o.push(Number.parseInt(n.slice(1),10));else throw Error(`only removal or move can be applied at original array indices, invalid diff type: ${i[e]?.[2]}`)}else{let e=n;i[e].length===1?s.push({index:Number.parseInt(e,10),value:i[e][0]}):c.push({index:Number.parseInt(e,10),delta:i[e]})}}for(o=o.sort(Iz.numerically),n=o.length-1;n>=0;n--){if(r=o[n],r===void 0)continue;let e=i[`_${r}`],t=a.splice(r,1)[0];e?.[2]===Mz&&s.push({index:e[1],value:t})}s=s.sort(Iz.numericallyBy(`index`));let l=s.length;for(n=0;n<l;n++){let e=s[n];e!==void 0&&a.splice(e.index,0,e.value)}let u=c.length;if(u>0)for(n=0;n<u;n++){let t=c[n];if(t===void 0)continue;let r=new wz(a[t.index],t.delta);e.push(r,t.index)}if(!e.children){e.setResult(a).exit();return}e.exit()};Lz.filterName=`arrays`;var Rz=function(e){if(!e||!e.children||e.delta._t!==`a`)return;let t=e.left,n=e.children.length;for(let r=0;r<n;r++){let n=e.children[r];if(n===void 0)continue;let i=n.childName;t[i]=n.result}e.setResult(t).exit()};Rz.filterName=`arraysCollectChildren`;var zz=function(e){if(!e.nested){let t=e.delta;if(t[2]===Mz){let n=t;e.newName=`_${n[1]}`,e.setResult([n[0],Number.parseInt(e.childName.substring(1),10),Mz]).exit()}return}let t=e.delta;if(t._t!==`a`)return;let n=t;for(let t in n){if(t===`_t`)continue;let r=new Tz(n[t]);e.push(r,t)}e.exit()};zz.filterName=`arrays`;var Bz=(e,t,n)=>{if(typeof t==`string`&&t[0]===`_`)return Number.parseInt(t.substring(1),10);if(Array.isArray(n)&&n[2]===0)return`_${t}`;let r=+t;for(let n in e){let i=e[n];if(Array.isArray(i)){if(i[2]===Mz){let e=Number.parseInt(n.substring(1),10),a=i[1];if(a===+t)return e;e<=r&&a>r?r++:e>=r&&a<r&&r--}else i[2]===0?Number.parseInt(n.substring(1),10)<=r&&r++:i.length===1&&Number.parseInt(n,10)<=r&&r--}}return r},Vz=e=>{if(!e||!e.children)return;let t=e.delta;if(t._t!==`a`)return;let n=t,r=e.children.length,i={_t:`a`};for(let t=0;t<r;t++){let r=e.children[t];if(r===void 0)continue;let a=r.newName;if(a===void 0){if(r.childName===void 0)throw Error(`child.childName is undefined`);a=Bz(n,r.childName,r.result)}i[a]!==r.result&&(i[a]=r.result)}e.setResult(i).exit()};Vz.filterName=`arraysCollectChildren`;var Hz=function(e){e.left instanceof Date?(e.right instanceof Date&&e.left.getTime()===e.right.getTime()?e.setResult(void 0):e.setResult([e.left,e.right]),e.exit()):e.right instanceof Date&&e.setResult([e.left,e.right]).exit()};Hz.filterName=`dates`;var Uz=new Set([`__proto__`]),Wz=e=>{if(!e||!e.children)return;let t=e.children.length,n=e.result;for(let r=0;r<t;r++){let t=e.children[r];if(t!==void 0&&t.result!==void 0){if(n||={},t.childName===void 0)throw Error(`diff child.childName is undefined`);n[t.childName]=t.result}}n&&e.leftIsArray&&(n._t=`a`),e.setResult(n).exit()};Wz.filterName=`collectChildren`;var Gz=e=>{if(e.leftIsArray||e.leftType!==`object`)return;let t=e.left,n=e.right,r=e.options?.propertyFilter;for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i)||r&&!r(i,e))continue;let a=new Cz(t[i],n[i]);e.push(a,i)}for(let i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&(!r||r(i,e))&&t[i]===void 0){let t=new Cz(void 0,n[i]);e.push(t,i)}if(!e.children||e.children.length===0){e.setResult(void 0).exit();return}e.exit()};Gz.filterName=`objects`;var Kz=function(e){if(!e.nested)return;let t=e.delta;if(t._t)return;let n=t,r=!1;for(let t in n){if(Uz.has(t)||!Object.prototype.hasOwnProperty.call(n,t))continue;let i=e.left,a=new wz(typeof i==`object`&&i&&Object.prototype.hasOwnProperty.call(i,t)?i[t]:void 0,n[t]);e.push(a,t),r=!0}if(!r){e.setResult(e.left).exit();return}e.exit()};Kz.filterName=`objects`;var qz=function(e){if(!e||!e.children||e.delta._t)return;if(e.left===null||typeof e.left!=`object`){e.setResult(e.left).exit();return}let t=e.left,n=e.children.length;for(let r=0;r<n;r++){let n=e.children[r];if(n===void 0)continue;let i=n.childName;Uz.has(i)||(Object.prototype.hasOwnProperty.call(e.left,i)&&n.result===void 0?delete t[i]:t[i]!==n.result&&(t[i]=n.result))}e.setResult(t).exit()};qz.filterName=`collectChildren`;var Jz=function(e){if(!e.nested||e.delta._t)return;let t=e.delta,n=!1;for(let r in t){if(Uz.has(r)||!Object.prototype.hasOwnProperty.call(t,r))continue;let i=new Tz(t[r]);e.push(i,r),n=!0}if(!n){e.setResult({}).exit();return}e.exit()};Jz.filterName=`objects`;var Yz=e=>{if(!e||!e.children||e.delta._t)return;let t=e.children.length,n={};for(let r=0;r<t;r++){let t=e.children[r];if(t===void 0)continue;let i=t.childName;Uz.has(i)||n[i]!==t.result&&(n[i]=t.result)}e.setResult(n).exit()};Yz.filterName=`collectChildren`;var Xz=2,Zz=60,Qz=null;function $z(e,t){if(!Qz){let n;if(e?.textDiff?.diffMatchPatch)n=new e.textDiff.diffMatchPatch;else{if(!t)return null;let e=Error("The diff-match-patch library was not provided. Pass the library in through the options or use the `jsondiffpatch/with-text-diffs` entry-point.");throw e.diff_match_patch_not_found=!0,e}Qz={diff:(e,t)=>n.patch_toText(n.patch_make(e,t)),patch:(e,t)=>{let r=n.patch_apply(n.patch_fromText(t),e);for(let e of r[1])if(!e){let e=Error(`text patch failed`);throw e.textPatchFailed=!0,e}return r[0]}}}return Qz}var eB=function(e){if(e.leftType!==`string`)return;let t=e.left,n=e.right,r=e.options?.textDiff?.minLength||Zz;if(t.length<r||n.length<r){e.setResult([t,n]).exit();return}let i=$z(e.options);if(!i){e.setResult([t,n]).exit();return}let a=i.diff;e.setResult([a(t,n),0,Xz]).exit()};eB.filterName=`texts`;var tB=function(e){if(e.nested)return;let t=e.delta;if(t[2]!==Xz)return;let n=t,r=$z(e.options,!0).patch;e.setResult(r(e.left,n[0])).exit()};tB.filterName=`texts`;var nB=e=>{let t=/^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/,n=e.split(`
31
- `);for(let e=0;e<n.length;e++){let r=n[e];if(r===void 0)continue;let i=r.slice(0,1);if(i===`@`){let i=t.exec(r);if(i!==null){let t=e;n[t]=`@@ -${i[3]},${i[4]} +${i[1]},${i[2]} @@`}}else if(i===`+`){if(n[e]=`-${n[e]?.slice(1)}`,n[e-1]?.slice(0,1)===`+`){let t=n[e];n[e]=n[e-1],n[e-1]=t}}else i===`-`&&(n[e]=`+${n[e]?.slice(1)}`)}return n.join(`
32
- `)},rB=function(e){if(e.nested)return;let t=e.delta;if(t[2]!==Xz)return;let n=t;e.setResult([nB(n[0]),0,Xz]).exit()};rB.filterName=`texts`;var iB=function(e){if(e.left===e.right){e.setResult(void 0).exit();return}if(e.left===void 0){if(typeof e.right==`function`)throw Error(`functions are not supported`);e.setResult([e.right]).exit();return}if(e.right===void 0){e.setResult([e.left,0,0]).exit();return}if(typeof e.left==`function`||typeof e.right==`function`)throw Error(`functions are not supported`);if(e.leftType=e.left===null?`null`:typeof e.left,e.rightType=e.right===null?`null`:typeof e.right,e.leftType!==e.rightType){e.setResult([e.left,e.right]).exit();return}if(e.leftType===`boolean`||e.leftType===`number`){e.setResult([e.left,e.right]).exit();return}if(e.leftType===`object`&&(e.leftIsArray=Array.isArray(e.left)),e.rightType===`object`&&(e.rightIsArray=Array.isArray(e.right)),e.leftIsArray!==e.rightIsArray){e.setResult([e.left,e.right]).exit();return}e.left instanceof RegExp&&(e.right instanceof RegExp?e.setResult([e.left.toString(),e.right.toString()]).exit():e.setResult([e.left,e.right]).exit())};iB.filterName=`trivial`;var aB=function(e){if(e.delta===void 0){e.setResult(e.left).exit();return}if(e.nested=!Array.isArray(e.delta),e.nested)return;let t=e.delta;if(t.length===1){e.setResult(t[0]).exit();return}if(t.length===2){if(e.left instanceof RegExp){let n=/^\/(.*)\/([gimyu]+)$/.exec(t[1]);if(n?.[1]){e.setResult(new RegExp(n[1],n[2])).exit();return}}e.setResult(t[1]).exit();return}t.length===3&&t[2]===0&&e.setResult(void 0).exit()};aB.filterName=`trivial`;var oB=function(e){if(e.delta===void 0){e.setResult(e.delta).exit();return}if(e.nested=!Array.isArray(e.delta),e.nested)return;let t=e.delta;if(t.length===1){e.setResult([t[0],0,0]).exit();return}if(t.length===2){e.setResult([t[1],t[0]]).exit();return}t.length===3&&t[2]===0&&e.setResult([t[0]]).exit()};oB.filterName=`trivial`;var sB=class{constructor(e){this.processor=new Dz(e),this.processor.pipe(new Ez(`diff`).append(Wz,iB,Hz,eB,Gz,Fz).shouldHaveResult()),this.processor.pipe(new Ez(`patch`).append(qz,Rz,aB,tB,Kz,Lz).shouldHaveResult()),this.processor.pipe(new Ez(`reverse`).append(Yz,Vz,oB,rB,Jz,zz).shouldHaveResult())}options(e){return this.processor.options(e)}diff(e,t){return this.processor.process(new Cz(e,t))}patch(e,t){return this.processor.process(new wz(e,t))}reverse(e){return this.processor.process(new Tz(e))}unpatch(e,t){return this.patch(e,this.reverse(t))}clone(e){return vz(e)}},cB;function lB(e,t){return cB||=new sB,cB.diff(e,t)}var uB=class{format(e,t){let n={};this.prepareContext(n);let r=n;return this.recurse(r,e,t),this.finalize(r)}prepareContext(e){e.buffer=[],e.out=function(...e){if(!this.buffer)throw Error(`context buffer is not initialized`);this.buffer.push(...e)}}typeFormattterNotFound(e,t){throw Error(`cannot format delta type: ${t}`)}typeFormattterErrorFormatter(e,t,n,r,i,a,o){}finalize({buffer:e}){return Array.isArray(e)?e.join(``):``}recurse(e,t,n,r,i,a,o){let s=t&&a?a.value:n;if(t===void 0&&r===void 0)return;let c=this.getDeltaType(t,a),l=c===`node`?t._t===`a`?`array`:`object`:``;r===void 0?this.rootBegin(e,c,l):this.nodeBegin(e,r,i,c,l,o??!1);let u;try{u=c===`unknown`?this.typeFormattterNotFound(e,c):this[`format_${c}`],u.call(this,e,t,s,r,i,a)}catch(n){this.typeFormattterErrorFormatter(e,n,t,s,r,i,a),typeof console<`u`&&console.error&&console.error(n.stack)}r===void 0?this.rootEnd(e,c,l):this.nodeEnd(e,r,i,c,l,o??!1)}formatDeltaChildren(e,t,n){this.forEachDeltaKey(t,n,(r,i,a,o)=>{this.recurse(e,t[r],n?n[i]:void 0,r,i,a,o)})}forEachDeltaKey(e,t,n){let r=[];if(e._t!==`a`){let i=Object.keys(e);typeof t==`object`&&t&&r.push(...Object.keys(t));for(let e of i)r.indexOf(e)>=0||r.push(e);for(let e=0;e<r.length;e++){let t=r[e];t!==void 0&&n(t,t,void 0,e===r.length-1)}return}let i={};for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(Array.isArray(n)&&n[2]===3){let e=n;i[e[1]]=Number.parseInt(t.substring(1))}}let a=e,o=0,s=0,c=Array.isArray(t)?t:void 0,l=c?c.length:Object.keys(a).reduce((e,t)=>{if(t===`_t`)return e;if(t.substring(0,1)===`_`){let n=a[t],r=Number.parseInt(t.substring(1)),i=Array.isArray(n)&&n.length>=3&&n[2]===3?n[1]:void 0,o=Math.max(r,i??0);return o>e?o:e}let n=Number.parseInt(t),r=i[n],o=Math.max(r??0,n??0);return o>e?o:e},0)+1,u=l,d,f=(...e)=>{d&&n(...d),d=e},p=()=>{d&&n(d[0],d[1],d[2],!0)};for(;o<l||s<u||`${s}`in a;){let e=!1,t=`_${o}`,n=`${s}`,r=s in i?i[s]:void 0;if(t in a){e=!0;let n=a[t];f(t,r??o,r?{key:`_${r}`,value:c?c[r]:void 0}:void 0,!1),Array.isArray(n)?n[2]===0?(u--,o++):(n[2],o++):o++}if(n in a){e=!0;let t=a[n],i=Array.isArray(t)&&t.length===1;f(n,r??o,r?{key:`_${r}`,value:c?c[r]:void 0}:void 0,!1),i?(u++,s++):(r===void 0&&o++,s++)}e||((c&&r===void 0||this.includeMoveDestinations!==!1)&&f(n,r??o,r?{key:`_${r}`,value:c?c[r]:void 0}:void 0,!1),r===void 0&&o++,s++)}p()}getDeltaType(e,t){if(e===void 0)return t===void 0?`unchanged`:`movedestination`;if(Array.isArray(e)){if(e.length===1)return`added`;if(e.length===2)return`modified`;if(e.length===3&&e[2]===0)return`deleted`;if(e.length===3&&e[2]===2)return`textdiff`;if(e.length===3&&e[2]===3)return`moved`}else if(typeof e==`object`)return`node`;return`unknown`}parseTextDiff(e){let t=[],n=e.split(`
33
- @@ `);for(let e of n){let n={pieces:[]},r=/^(?:@@ )?[-+]?(\d+),(\d+)/.exec(e)?.slice(1);if(!r)throw Error(`invalid text diff format`);bz(r),n.location={line:r[0],chr:r[1]};let i=e.split(`
34
- `).slice(1);for(let e=0,t=i.length;e<t;e++){let t=i[e];if(t===void 0||!t.length)continue;let r={type:`context`};t.substring(0,1)===`+`?r.type=`added`:t.substring(0,1)===`-`&&(r.type=`deleted`),r.text=t.slice(1),n.pieces.push(r)}t.push(n)}return t}},dB=class extends uB{typeFormattterErrorFormatter(e,t){let n=typeof t==`object`&&t&&`message`in t&&typeof t.message==`string`?t.message:String(t);e.out(`<pre class="jsondiffpatch-error">${fB(n)}</pre>`)}formatValue(e,t){let n=t===void 0?`undefined`:fB(JSON.stringify(t,null,2));e.out(`<pre>${n}</pre>`)}formatTextDiffString(e,t){let n=this.parseTextDiff(t);e.out(`<ul class="jsondiffpatch-textdiff">`);for(let t=0,r=n.length;t<r;t++){let r=n[t];if(r===void 0)return;e.out(`<li><div class="jsondiffpatch-textdiff-location"><span class="jsondiffpatch-textdiff-line-number">${r.location.line}</span><span class="jsondiffpatch-textdiff-char">${r.location.chr}</span></div><div class="jsondiffpatch-textdiff-line">`);let i=r.pieces;for(let t=0,n=i.length;t<n;t++){let n=i[t];if(n===void 0)return;e.out(`<span class="jsondiffpatch-textdiff-${n.type}">${fB(decodeURI(n.text))}</span>`)}e.out(`</div></li>`)}e.out(`</ul>`)}rootBegin(e,t,n){let r=`jsondiffpatch-${t}${n?` jsondiffpatch-child-node-type-${n}`:``}`;e.out(`<div class="jsondiffpatch-delta ${r}">`)}rootEnd(e){e.out(`</div>${e.hasArrows?`<script type="text/javascript">setTimeout(${pB.toString()},10);<\/script>`:``}`)}nodeBegin(e,t,n,r,i){let a=`jsondiffpatch-${r}${i?` jsondiffpatch-child-node-type-${i}`:``}`,o=typeof n==`number`&&t.substring(0,1)===`_`?t.substring(1):t;e.out(`<li class="${a}" data-key="${fB(t)}"><div class="jsondiffpatch-property-name">${fB(o)}</div>`)}nodeEnd(e){e.out(`</li>`)}format_unchanged(e,t,n){n!==void 0&&(e.out(`<div class="jsondiffpatch-value">`),this.formatValue(e,n),e.out(`</div>`))}format_movedestination(e,t,n){n!==void 0&&(e.out(`<div class="jsondiffpatch-value">`),this.formatValue(e,n),e.out(`</div>`))}format_node(e,t,n){let r=t._t===`a`?`array`:`object`;e.out(`<ul class="jsondiffpatch-node jsondiffpatch-node-type-${r}">`),this.formatDeltaChildren(e,t,n),e.out(`</ul>`)}format_added(e,t){e.out(`<div class="jsondiffpatch-value">`),this.formatValue(e,t[0]),e.out(`</div>`)}format_modified(e,t){e.out(`<div class="jsondiffpatch-value jsondiffpatch-left-value">`),this.formatValue(e,t[0]),e.out(`</div><div class="jsondiffpatch-value jsondiffpatch-right-value">`),this.formatValue(e,t[1]),e.out(`</div>`)}format_deleted(e,t){e.out(`<div class="jsondiffpatch-value">`),this.formatValue(e,t[0]),e.out(`</div>`)}format_moved(e,t){e.out(`<div class="jsondiffpatch-value">`),this.formatValue(e,t[0]),e.out(`</div><div class="jsondiffpatch-moved-destination">${t[1]}</div>`),e.out(`<div class="jsondiffpatch-arrow" style="position: relative; left: -34px;">
35
- <svg width="30" height="60" style="position: absolute; display: none;">
36
- <defs>
37
- <marker id="markerArrow" markerWidth="8" markerHeight="8"
38
- refx="2" refy="4" stroke="#88f"
39
- orient="auto" markerUnits="userSpaceOnUse">
40
- <path d="M1,1 L1,7 L7,4 L1,1" style="fill: #339;" />
41
- </marker>
42
- </defs>
43
- <path d="M30,0 Q-10,25 26,50"
44
- style="stroke: #88f; stroke-width: 2px; fill: none; stroke-opacity: 0.5; marker-end: url(#markerArrow);"
45
- ></path>
46
- </svg>
47
- </div>`),e.hasArrows=!0}format_textdiff(e,t){e.out(`<div class="jsondiffpatch-value">`),this.formatTextDiffString(e,t[0]),e.out(`</div>`)}};function fB(e){if(typeof e==`number`)return e;let t=String(e);for(let e of[[/&/g,`&amp;`],[/</g,`&lt;`],[/>/g,`&gt;`],[/'/g,`&apos;`],[/"/g,`&quot;`]])t=t.replace(e[0],e[1]);return t}var pB=function(e){let t=e||document,n=({textContent:e,innerText:t})=>e||t,r=(e,t,n)=>{let r=e.querySelectorAll(t);for(let e=0,t=r.length;e<t;e++)n(r[e])},i=({children:e},t)=>{for(let n=0,r=e.length;n<r;n++){let r=e[n];r&&t(r,n)}};r(t,`.jsondiffpatch-arrow`,({parentNode:e,children:t,style:r})=>{let a=e,o=t[0],s=o.children[1];o.style.display=`none`;let c=a.querySelector(`.jsondiffpatch-moved-destination`);if(!(c instanceof HTMLElement))return;let l=n(c),u=a.parentNode;if(!u)return;let d;if(i(u,e=>{e.getAttribute(`data-key`)===l&&(d=e)}),d)try{let e=d.offsetTop-a.offsetTop;o.setAttribute(`height`,`${Math.abs(e)+6}`),r.top=`${-8+(e>0?0:e)}px`;let t=e>0?`M30,0 Q-10,${Math.round(e/2)} 26,${e-4}`:`M30,${-e} Q-10,${Math.round(-e/2)} 26,4`;s.setAttribute(`d`,t),o.style.display=``}catch(e){console.debug(`[jsondiffpatch] error adjusting arrows: ${e}`)}})},mB=(e,t,n)=>{let r=t||document.body,i=`jsondiffpatch-unchanged-`,a={showing:`${i}showing`,hiding:`${i}hiding`,visible:`${i}visible`,hidden:`${i}hidden`},o=r.classList;if(!o)return;if(!n){o.remove(a.showing),o.remove(a.hiding),o.remove(a.visible),o.remove(a.hidden),e===!1&&o.add(a.hidden);return}e===!1?(o.remove(a.showing),o.add(a.visible),setTimeout(()=>{o.add(a.hiding)},10)):(o.remove(a.hiding),o.add(a.showing),o.remove(a.hidden));let s=setInterval(()=>{pB(r)},100);setTimeout(()=>{o.remove(a.showing),o.remove(a.hiding),e===!1?(o.add(a.hidden),o.remove(a.visible)):(o.add(a.visible),o.remove(a.hidden)),setTimeout(()=>{o.remove(a.visible),clearInterval(s)},n+400)},n)},hB=(e,t)=>mB(!1,e,t),gB;function _B(e,t){return gB||=new dB,gB.format(e,t)}var vB=e=>e.join(`.`),yB=e=>!!(e&&typeof e==`object`),Q=(e,t,n)=>e?t.reduce((e,t)=>{if(yB(e))return e[t]},e)??n:n,bB=(e,t,n)=>{let r=structuredClone(e),i=r;for(let e=0;e<t.length-1;e++){let n=t[e],r=i[n];yB(r)||(i[n]={}),i=i[n]}return i[t[t.length-1]]=n,r},xB=(e,t)=>{let n=Number(e);return Number.isFinite(n)?n:t},SB=(e,t)=>Array.isArray(e)&&e.includes(t),CB=e=>!!(e&&typeof e==`object`&&`description`in e),wB=e=>{if(!e||typeof e!=`object`)return e;let t=structuredClone(e);for(let{path:e,options:n}of[{path:[`bilibili`,`sendContent`],options:[`info`,`comment`,`video`,`image`]},{path:[`bilibili`,`displayContent`],options:[`cover`,`title`,`author`,`stats`,`desc`]},{path:[`bilibili`,`push`,`parseDynamicTypes`],options:[`DYNAMIC_TYPE_AV`,`DYNAMIC_TYPE_DRAW`,`DYNAMIC_TYPE_ARTICLE`]},{path:[`douyin`,`sendContent`],options:[`info`,`comment`,`video`,`image`]},{path:[`xiaohongshu`,`sendContent`],options:[`info`,`comment`,`video`,`image`]},{path:[`kuaishou`,`sendContent`],options:[`info`,`comment`,`video`,`image`]}]){let r=Q(t,e,null);if(!Array.isArray(r))continue;let i=n.filter(e=>r.includes(e)),a=t;for(let t=0;t<e.length-1;t++){let n=e[t];yB(a[n])||(a[n]={}),a=a[n]}a[e[e.length-1]]=i}return t},TB=e=>typeof e==`object`&&!!e,EB=e=>{let t={added:0,modified:0,deleted:0},n=e=>{if(TB(e)){if(Array.isArray(e)){e.length===1?t.added+=1:e.length===2?t.modified+=1:e.length===3&&e[2]===0&&(t.deleted+=1);return}for(let[t,r]of Object.entries(e))t!==`_t`&&n(r)}};return n(e),t},DB=({original:e,current:t,showUnchanged:n=!1})=>{let r=(0,v.useRef)(null),i=(0,v.useMemo)(()=>{if(e&&t)return lB(wB(e),wB(t))},[e,t]),a=(0,v.useMemo)(()=>e?wB(e):void 0,[e]),o=(0,v.useMemo)(()=>{if(i)return _B(i,a)},[i,a]),s=(0,v.useMemo)(()=>EB(i),[i]);return(0,v.useEffect)(()=>{r.current&&(o?(r.current.innerHTML=o,n?mB(!0,r.current):hB(r.current)):r.current.innerHTML=``)},[o,n]),o?(0,H.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,H.jsx)(Rv,{size:`sm`,color:`success`,variant:`soft`,children:(0,H.jsxs)(Rv.Label,{children:[`+ `,s.added,` 新增`]})}),(0,H.jsx)(Rv,{size:`sm`,color:`warning`,variant:`soft`,children:(0,H.jsxs)(Rv.Label,{children:[`~ `,s.modified,` 修改`]})}),(0,H.jsx)(Rv,{size:`sm`,color:`danger`,variant:`soft`,children:(0,H.jsxs)(Rv.Label,{children:[`- `,s.deleted,` 删除`]})})]}),(0,H.jsx)(`div`,{className:`max-h-[60vh] overflow-auto rounded-xl border border-default-200 bg-surface p-4`,children:(0,H.jsx)(`div`,{ref:r,className:`min-w-fit`})})]}):(0,H.jsx)(`div`,{className:`flex flex-col items-center justify-center gap-2 py-10 text-center`,children:(0,H.jsx)(aS,{className:`text-sm text-muted`,children:`当前没有检测到配置变更`})})},OB=`变更预览`,kB=`绿色 = 新增/改后的内容,红色 = 删除/改前的内容,灰色 = 没变化的内容。`,AB=({device:e,original:t,current:n,isOpen:r,onOpenChange:i})=>{let[a,o]=(0,v.useState)(!1),s=(0,H.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,H.jsx)(aS,{className:`text-xs text-muted`,children:kB}),(0,H.jsx)(DC,{size:`sm`,isSelected:a,onChange:o,"aria-label":`显示未变更字段`,children:(0,H.jsxs)(DC.Content,{children:[(0,H.jsx)(DC.Control,{children:(0,H.jsx)(DC.Thumb,{})}),`显示未变更`]})})]}),(0,H.jsx)(DB,{original:t,current:n,showUnchanged:a})]}),c=(0,H.jsx)(ov,{slot:`close`,size:`sm`,variant:`secondary`,children:`关闭`});return e===`mobile`?(0,H.jsx)(wS,{children:(0,H.jsx)(wS.Backdrop,{isOpen:r,onOpenChange:i,children:(0,H.jsx)(wS.Content,{placement:`bottom`,children:(0,H.jsxs)(wS.Dialog,{className:`h-[85vh]`,children:[(0,H.jsx)(wS.Handle,{}),(0,H.jsx)(wS.CloseTrigger,{}),(0,H.jsx)(wS.Header,{children:(0,H.jsx)(wS.Heading,{children:OB})}),(0,H.jsx)(wS.Body,{children:s}),(0,H.jsx)(wS.Footer,{children:c})]})})})}):(0,H.jsx)(qS,{children:(0,H.jsx)(qS.Backdrop,{isOpen:r,onOpenChange:i,children:(0,H.jsx)(qS.Container,{scroll:`inside`,size:`lg`,children:(0,H.jsxs)(qS.Dialog,{className:`w-full max-w-4xl`,children:[(0,H.jsx)(qS.CloseTrigger,{}),(0,H.jsxs)(qS.Header,{children:[(0,H.jsx)(qS.Icon,{className:`bg-accent-soft text-accent-soft-foreground`,children:(0,H.jsx)(CP,{className:`size-5`})}),(0,H.jsx)(qS.Heading,{children:OB})]}),(0,H.jsx)(qS.Body,{children:s}),(0,H.jsx)(qS.Footer,{children:c})]})})})})},jB=e=>!!(e&&typeof e==`object`),$=(e,t,n)=>e?t.reduce((e,t)=>{if(jB(e))return e[t]},e)??n:n,MB=(e,t)=>Array.isArray(e)&&e.includes(t),NB=[{path:[`app`,`priority`],rules:[{condition:e=>$(e,[`app`,`videoTool`],!0),message:`修改此配置项需要先将「默认解析优先级」关闭`}]},{path:[`app`,`multiPageHeight`],rules:[{condition:e=>!$(e,[`app`,`multiPageRender`],!0),message:`修改此配置项需要先将「分页渲染」打开`}]},{path:[`app`,`livePhotoSystem`],rules:[{condition:e=>$(e,[`app`,`livePhotoMode`],`video_and_livephoto`)===`video_only`,message:`修改此配置项需要先将「Live Photo 处理和发送方式」改为非「仅视频」模式`}]},{path:[`amagi`,`APIServerMount`],rules:[{condition:e=>!$(e,[`amagi`,`APIServer`],!1),message:`修改此配置项需要先将「API 服务」打开`}]},{path:[`amagi`,`APIServerPort`],rules:[{condition:e=>$(e,[`amagi`,`APIServerMount`],!0),message:`修改此配置项需要先将「挂载到 Karin」关闭`}]},{path:[`app`,`qrLoginExternalAddr`],rules:[{condition:e=>$(e,[`app`,`qrLoginAddrType`],`lan`)!==`external`,message:`修改此配置项需要先将「扫码登录地址」改为「外部地址」`}]},{path:[`app`,`videoSendMode`],rules:[{condition:e=>$(e,[`app`,`usegroupfile`],!1),message:`修改此配置项需要先将「群文件上传」关闭`}]},{path:[`app`,`usegroupfile`],rules:[{condition:e=>$(e,[`app`,`videoSendMode`],`file`)===`base64`,message:`修改此配置项需要先将「本地视频发送方式」改为「File 协议」`}]},{path:[`app`,`groupfilevalue`],rules:[{condition:e=>!$(e,[`app`,`usegroupfile`],!1),message:`修改此配置项需要先将「群文件上传」打开`},{condition:e=>$(e,[`app`,`videoSendMode`],`file`)===`base64`,message:`修改此配置项需要先将「本地视频发送方式」改为「File 协议」`}]},{path:[`app`,`filelimit`],rules:[{condition:e=>!$(e,[`app`,`usefilelimit`],!1),message:`修改此配置项需要先将「视频上传拦截」打开`}]},{path:[`app`,`compresstrigger`],rules:[{condition:e=>!$(e,[`app`,`compress`],!1),message:`修改此配置项需要先将「压缩视频」打开`}]},{path:[`app`,`compressvalue`],rules:[{condition:e=>!$(e,[`app`,`compress`],!1),message:`修改此配置项需要先将「压缩视频」打开`}]},{path:[`app`,`downloadMaxSpeed`],rules:[{condition:e=>!$(e,[`app`,`downloadThrottle`],!1),message:`修改此配置项需要先将「下载限速」打开`}]},{path:[`app`,`downloadAutoReduce`],rules:[{condition:e=>!$(e,[`app`,`downloadThrottle`],!1),message:`修改此配置项需要先将「下载限速」打开`}]},{path:[`app`,`downloadMinSpeed`],rules:[{condition:e=>!$(e,[`app`,`downloadThrottle`],!1),message:`修改此配置项需要先将「下载限速」打开`},{condition:e=>!$(e,[`app`,`downloadAutoReduce`],!1),message:`修改此配置项需要先将「断流自动降速」打开`}]},{path:[`amagi`,`proxy`,`protocol`],rules:[{condition:e=>!$(e,[`amagi`,`proxy`,`switch`],!1),message:`修改此配置项需要先将「代理开关」打开`}]},{path:[`amagi`,`proxy`,`host`],rules:[{condition:e=>!$(e,[`amagi`,`proxy`,`switch`],!1),message:`修改此配置项需要先将「代理开关」打开`}]},{path:[`amagi`,`proxy`,`port`],rules:[{condition:e=>!$(e,[`amagi`,`proxy`,`switch`],!1),message:`修改此配置项需要先将「代理开关」打开`}]},{path:[`amagi`,`proxy`,`auth`,`username`],rules:[{condition:e=>!$(e,[`amagi`,`proxy`,`switch`],!1),message:`修改此配置项需要先将「代理开关」打开`}]},{path:[`amagi`,`proxy`,`auth`,`password`],rules:[{condition:e=>!$(e,[`amagi`,`proxy`,`switch`],!1),message:`修改此配置项需要先将「代理开关」打开`}]},{path:[`douyin`,`sendContent`],rules:[{condition:e=>!$(e,[`douyin`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`}]},{path:[`douyin`,`numcomment`],rules:[{condition:e=>!$(e,[`douyin`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!MB($(e,[`douyin`,`sendContent`],[]),`comment`),message:`修改此配置项需要在「解析时发送的内容」中勾选「评论图」`}]},{path:[`douyin`,`subCommentLimit`],rules:[{condition:e=>!$(e,[`douyin`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!MB($(e,[`douyin`,`sendContent`],[]),`comment`),message:`修改此配置项需要在「解析时发送的内容」中勾选「评论图」`}]},{path:[`douyin`,`commentImageCollection`],rules:[{condition:e=>!$(e,[`douyin`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!MB($(e,[`douyin`,`sendContent`],[]),`comment`),message:`修改此配置项需要在「解析时发送的内容」中勾选「评论图」`}]},{path:[`douyin`,`liveImageMergeMode`],rules:[{condition:e=>!$(e,[`douyin`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>$(e,[`app`,`livePhotoMode`],`video_and_livephoto`)===`livephoto_only`,message:`修改此配置项需要先将「Live Photo 处理和发送方式」改为非「仅实况图」模式`}]},{path:[`douyin`,`videoQuality`],rules:[{condition:e=>!$(e,[`douyin`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`}]},{path:[`douyin`,`maxAutoVideoSize`],rules:[{condition:e=>!$(e,[`douyin`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>$(e,[`douyin`,`videoQuality`],`adapt`)!==`adapt`,message:`修改此配置项需要先将「画质偏好」改为「自动选择」`}]},{path:[`douyin`,`videoInfoMode`],rules:[{condition:e=>!$(e,[`douyin`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`}]},{path:[`douyin`,`displayContent`],rules:[{condition:e=>!$(e,[`douyin`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>$(e,[`douyin`,`videoInfoMode`],`text`)===`image`,message:`修改此配置项需要先将「视频信息返回形式」改为「文本模式」`}]},{path:[`douyin`,`burnDanmaku`],rules:[{condition:e=>!$(e,[`douyin`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`}]},{path:[`douyin`,`danmakuArea`],rules:[{condition:e=>!$(e,[`douyin`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!$(e,[`douyin`,`burnDanmaku`],!1),message:`修改此配置项需要先将「弹幕烧录」打开`}]},{path:[`douyin`,`danmakuFontSize`],rules:[{condition:e=>!$(e,[`douyin`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!$(e,[`douyin`,`burnDanmaku`],!1),message:`修改此配置项需要先将「弹幕烧录」打开`}]},{path:[`douyin`,`danmakuOpacity`],rules:[{condition:e=>!$(e,[`douyin`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!$(e,[`douyin`,`burnDanmaku`],!1),message:`修改此配置项需要先将「弹幕烧录」打开`}]},{path:[`douyin`,`verticalMode`],rules:[{condition:e=>!$(e,[`douyin`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!$(e,[`douyin`,`burnDanmaku`],!1),message:`修改此配置项需要先将「弹幕烧录」打开`}]},{path:[`douyin`,`videoCodec`],rules:[{condition:e=>!$(e,[`douyin`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!$(e,[`douyin`,`burnDanmaku`],!1),message:`修改此配置项需要先将「弹幕烧录」打开`}]},{path:[`douyin`,`push`,`permission`],rules:[{condition:e=>!$(e,[`douyin`,`push`,`switch`],!1),message:`修改此配置项需要先将「推送开关」打开`}]},{path:[`douyin`,`push`,`cron`],rules:[{condition:e=>!$(e,[`douyin`,`push`,`switch`],!1),message:`修改此配置项需要先将「推送开关」打开`}]},{path:[`douyin`,`push`,`parsedynamic`],rules:[{condition:e=>!$(e,[`douyin`,`push`,`switch`],!1),message:`修改此配置项需要先将「推送开关」打开`}]},{path:[`douyin`,`push`,`shareType`],rules:[{condition:e=>!$(e,[`douyin`,`push`,`switch`],!1),message:`修改此配置项需要先将「推送开关」打开`}]},{path:[`douyin`,`push`,`pushVideoQuality`],rules:[{condition:e=>!$(e,[`douyin`,`push`,`switch`],!1),message:`修改此配置项需要先将「推送开关」打开`}]},{path:[`douyin`,`push`,`pushMaxAutoVideoSize`],rules:[{condition:e=>!$(e,[`douyin`,`push`,`switch`],!1),message:`修改此配置项需要先将「推送开关」打开`},{condition:e=>$(e,[`douyin`,`push`,`pushVideoQuality`],`adapt`)!==`adapt`,message:`修改此配置项需要先将「画质偏好」改为「自动选择」`}]},{path:[`bilibili`,`sendContent`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`}]},{path:[`bilibili`,`numcomment`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!MB($(e,[`bilibili`,`sendContent`],[]),`comment`),message:`修改此配置项需要在「解析时发送的内容」中勾选「评论图」`}]},{path:[`bilibili`,`realCommentCount`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!MB($(e,[`bilibili`,`sendContent`],[]),`comment`),message:`修改此配置项需要在「解析时发送的内容」中勾选「评论图」`}]},{path:[`bilibili`,`commentImageCollection`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!MB($(e,[`bilibili`,`sendContent`],[]),`comment`),message:`修改此配置项需要在「解析时发送的内容」中勾选「评论图」`}]},{path:[`bilibili`,`videoQuality`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`}]},{path:[`bilibili`,`maxAutoVideoSize`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>Number($(e,[`bilibili`,`videoQuality`],0))!==0,message:`修改此配置项需要先将「画质偏好」改为「自动选择」`}]},{path:[`bilibili`,`videoInfoMode`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`}]},{path:[`bilibili`,`displayContent`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>$(e,[`bilibili`,`videoInfoMode`],`text`)===`image`,message:`修改此配置项需要先将「视频信息返回形式」改为「文本模式」`}]},{path:[`bilibili`,`showDanmakuInVideoInfo`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>$(e,[`bilibili`,`videoInfoMode`],`text`)===`text`,message:`修改此配置项需要先将「视频信息返回形式」改为「图片模式」`}]},{path:[`bilibili`,`burnDanmaku`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`}]},{path:[`bilibili`,`danmakuArea`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!$(e,[`bilibili`,`burnDanmaku`],!1),message:`修改此配置项需要先将「弹幕烧录」打开`}]},{path:[`bilibili`,`danmakuFontSize`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!$(e,[`bilibili`,`burnDanmaku`],!1),message:`修改此配置项需要先将「弹幕烧录」打开`}]},{path:[`bilibili`,`danmakuOpacity`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!$(e,[`bilibili`,`burnDanmaku`],!1),message:`修改此配置项需要先将「弹幕烧录」打开`}]},{path:[`bilibili`,`verticalMode`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!$(e,[`bilibili`,`burnDanmaku`],!1),message:`修改此配置项需要先将「弹幕烧录」打开`}]},{path:[`bilibili`,`videoCodec`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!$(e,[`bilibili`,`burnDanmaku`],!1),message:`修改此配置项需要先将「弹幕烧录」打开`}]},{path:[`bilibili`,`push`,`permission`],rules:[{condition:e=>!$(e,[`bilibili`,`push`,`switch`],!1),message:`修改此配置项需要先将「推送开关」打开`}]},{path:[`bilibili`,`push`,`cron`],rules:[{condition:e=>!$(e,[`bilibili`,`push`,`switch`],!1),message:`修改此配置项需要先将「推送开关」打开`}]},{path:[`bilibili`,`push`,`parsedynamic`],rules:[{condition:e=>!$(e,[`bilibili`,`push`,`switch`],!1),message:`修改此配置项需要先将「推送开关」打开`}]},{path:[`bilibili`,`push`,`parseDynamicTypes`],rules:[{condition:e=>!$(e,[`bilibili`,`push`,`switch`],!1),message:`修改此配置项需要先将「推送开关」打开`},{condition:e=>!$(e,[`bilibili`,`push`,`parsedynamic`],!1),message:`修改此配置项需要先将「作品解析」打开`}]},{path:[`bilibili`,`push`,`pushVideoQuality`],rules:[{condition:e=>!$(e,[`bilibili`,`push`,`switch`],!1),message:`修改此配置项需要先将「推送开关」打开`},{condition:e=>!$(e,[`bilibili`,`push`,`parsedynamic`],!1),message:`修改此配置项需要先将「作品解析」打开`}]},{path:[`bilibili`,`push`,`pushMaxAutoVideoSize`],rules:[{condition:e=>!$(e,[`bilibili`,`push`,`switch`],!1),message:`修改此配置项需要先将「推送开关」打开`},{condition:e=>!$(e,[`bilibili`,`push`,`parsedynamic`],!1),message:`修改此配置项需要先将「作品解析」打开`},{condition:e=>Number($(e,[`bilibili`,`push`,`pushVideoQuality`],0))!==0,message:`修改此配置项需要先将「解析视频动态时的画质偏好」改为「自动选择」`}]},{path:[`kuaishou`,`comment`],rules:[{condition:e=>!$(e,[`kuaishou`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`}]},{path:[`kuaishou`,`numcomment`],rules:[{condition:e=>!$(e,[`kuaishou`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!$(e,[`kuaishou`,`comment`],!1),message:`修改此配置项需要先将「评论解析」打开`}]},{path:[`xiaohongshu`,`sendContent`],rules:[{condition:e=>!$(e,[`xiaohongshu`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`}]},{path:[`xiaohongshu`,`numcomment`],rules:[{condition:e=>!$(e,[`xiaohongshu`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!MB($(e,[`xiaohongshu`,`sendContent`],[]),`comment`),message:`修改此配置项需要在「解析时发送的内容」中勾选「评论图」`}]},{path:[`xiaohongshu`,`subCommentLimit`],rules:[{condition:e=>!$(e,[`xiaohongshu`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!MB($(e,[`xiaohongshu`,`sendContent`],[]),`comment`),message:`修改此配置项需要在「解析时发送的内容」中勾选「评论图」`}]},{path:[`xiaohongshu`,`videoQuality`],rules:[{condition:e=>!$(e,[`xiaohongshu`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`}]},{path:[`xiaohongshu`,`maxAutoVideoSize`],rules:[{condition:e=>!$(e,[`xiaohongshu`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>$(e,[`xiaohongshu`,`videoQuality`],`adapt`)!==`adapt`,message:`修改此配置项需要先将「画质偏好」改为「自动选择」`}]}],PB=e=>e.join(`.`),FB=(e,t)=>{let n=PB(t),r=NB.find(e=>PB(e.path)===n);if(!r)return``;for(let t of r.rules)if(t.condition(e))return t.message;return``},IB=[{label:`信息`,value:`info`},{label:`评论图`,value:`comment`},{label:`视频`,value:`video`},{label:`图片`,value:`image`}],LB=[{label:`封面`,value:`cover`},{label:`标题`,value:`title`},{label:`作者`,value:`author`},{label:`统计`,value:`stats`},{label:`简介`,value:`desc`}],RB=[{label:`自动选择`,value:`adapt`,description:`根据「视频体积上限(MB)」自动选择分辨率进行下载`},{label:`标清 540p`,value:`540p`},{label:`高清 720p`,value:`720p`},{label:`高清 1080p`,value:`1080p`},{label:`超清 2k`,value:`2k`},{label:`超清 4k`,value:`4k`}],zB=[{label:`自动选择`,value:`0`},{label:`240P 极速`,value:`6`},{label:`360P 流畅`,value:`16`},{label:`480P 清晰`,value:`32`,description:`需登录(配置ck)`},{label:`720P 高清`,value:`64`,description:`需登录(配置ck)`},{label:`720P60 高帧率`,value:`74`,description:`需登录(配置ck)`},{label:`1080P 高清`,value:`80`,description:`需登录(配置ck)`},{label:`1080P+ 高码率`,value:`112`,description:`需大会员&视频支持`},{label:`1080P60 高帧率`,value:`116`,description:`需大会员&视频支持`},{label:`4K 超清`,value:`120`,description:`需大会员&视频支持`},{label:`8K 超高清`,value:`127`,description:`需大会员&视频支持`}],BB=[{label:`视频动态`,value:`DYNAMIC_TYPE_AV`},{label:`图文动态`,value:`DYNAMIC_TYPE_DRAW`},{label:`文章动态`,value:`DYNAMIC_TYPE_ARTICLE`}],VB=[{label:`所有人`,value:`all`},{label:`管理员`,value:`admin`},{label:`主人`,value:`master`},{label:`群主`,value:`group.owner`},{label:`群管理员`,value:`group.admin`}],HB=[{label:`H.264`,value:`h264`,description:`兼容性最好,支持几乎所有设备`},{label:`H.265`,value:`h265`,description:`压缩率更高,近几年设备支持良好(推荐)`},{label:`AV1`,value:`av1`,description:`最新编码格式,压缩率最高,但编码较慢`}],UB=[{label:`关闭`,value:`off`,description:`保持原始比例,不做转换`},{label:`智能`,value:`standard`,description:`仅对宽屏比例视频生效`},{label:`强制 9:16`,value:`force`,description:`所有视频统一转为 9:16 竖屏`}],WB=[{label:`1/4 屏`,value:`0.25`,description:`仅顶部区域`},{label:`半屏`,value:`0.5`,description:`上半部分(推荐)`},{label:`3/4 屏`,value:`0.75`,description:`大部分区域`},{label:`全屏`,value:`1`,description:`铺满整个画面`}],GB=[{label:`小号`,value:`small`},{label:`中号`,value:`medium`},{label:`大号`,value:`large`}],KB={enabled:`已开启`,disabled:`已关闭`},qB=[{key:`amagi`,label:`接口库`,description:`请求与 Cookies`},{key:`app`,label:`通用`,description:`运行与交互`},{key:`douyin`,label:`抖音`,description:`解析与推送`},{key:`bilibili`,label:`哔哩哔哩`,description:`解析与推送`},{key:`kuaishou`,label:`快手`,description:`快手解析`},{key:`xiaohongshu`,label:`小红书`,description:`小红书解析`},{key:`pushlist`,label:`推送列表`,description:`订阅 JSON`}],JB=(0,v.lazy)(()=>jT(()=>import(`./CronEditor-DSx8kkQQ.js`),__vite__mapDeps([0,1]))),YB=({className:e,disabled:t,...n})=>{let[r,i]=(0,v.useState)(!1),a=r?`隐藏密码`:`显示密码`;return(0,H.jsxs)(`div`,{className:`relative w-full`,children:[(0,H.jsx)(PS,{...n,variant:`secondary`,className:`w-full pr-10 ${e??``}`,type:r?`text`:`password`}),(0,H.jsx)(ov,{isIconOnly:!0,"aria-label":a,className:`absolute right-1 top-1/2 -translate-y-1/2`,isDisabled:t,size:`sm`,type:`button`,variant:`tertiary`,onPress:()=>i(e=>!e),children:r?(0,H.jsx)(xP,{className:`size-4`,"aria-hidden":`true`}):(0,H.jsx)(yP,{className:`size-4`,"aria-hidden":`true`})})]})},XB=({config:e,device:t,classes:n,validationErrors:r,updateConfigValue:i})=>{let a=e=>{let n=CB(e)?e:{description:e},r=t===`mobile`?n.mobileContent??n.desktopContent:n.desktopContent;return(0,H.jsxs)(aS,{className:`flex items-center gap-2`,children:[(0,H.jsx)(`span`,{children:n.description}),r?(0,H.jsxs)(uw,{delay:0,children:[(0,H.jsx)(uw.Trigger,{"aria-label":`查看详细说明`,children:(0,H.jsx)(ov,{isIconOnly:!0,size:`sm`,variant:`tertiary`,children:(0,H.jsx)(TP,{className:`size-4`,"aria-hidden":`true`})})}),(0,H.jsxs)(uw.Content,{showArrow:!0,placement:t===`mobile`?`bottom`:`top`,children:[(0,H.jsx)(uw.Arrow,{}),(0,H.jsx)(`div`,{className:`max-w-72`,children:r})]})]}):null,n.extra]})},o=(n,r,i)=>{if(!i)return n;let a=FB(e,r);return a?t===`mobile`?(0,H.jsxs)(ZS,{children:[(0,H.jsx)(ZS.Trigger,{className:`w-full cursor-not-allowed`,children:n}),(0,H.jsx)(ZS.Content,{placement:`bottom`,children:(0,H.jsxs)(ZS.Dialog,{children:[(0,H.jsx)(ZS.Arrow,{}),(0,H.jsx)(`div`,{className:`max-w-72 text-sm`,children:a})]})})]}):(0,H.jsxs)(uw,{delay:0,children:[(0,H.jsx)(uw.Trigger,{className:`w-full cursor-not-allowed`,children:n}),(0,H.jsxs)(uw.Content,{showArrow:!0,placement:`top`,children:[(0,H.jsx)(uw.Arrow,{}),(0,H.jsx)(`div`,{className:`max-w-72`,children:a})]})]}):n},s=(t,n,r,a)=>{let o=Q(e,t,[]),s=r?Array.from(new Set([...o,n])):o.filter(e=>e!==n);if(a&&r){let e=a.find(e=>e.includes(n));if(e){let t=e.filter(e=>e!==n);s=s.filter(e=>!t.includes(e))}}i(t,s)};return{renderSwitch:(t,n,r,s=!1)=>{let c=Q(e,t,!1),l=(0,H.jsxs)(DC,{isDisabled:s,isSelected:c,onChange:e=>i(t,e),children:[(0,H.jsxs)(DC.Content,{children:[(0,H.jsx)(DC.Control,{children:(0,H.jsx)(DC.Thumb,{})}),(0,H.jsx)(`span`,{className:`font-semibold`,children:n})]}),a(r||(c?KB.enabled:KB.disabled))]});return o(l,t,s)},renderTextField:(t,n,s,c)=>{let l=c?.type||`text`,u=String(Q(e,t,l===`number`?c?.fallback??0:``)),d=r[vB(t)],f=c?.disabled??!1,p=(0,H.jsxs)(MC,{fullWidth:!0,isInvalid:!!d,isDisabled:f,name:t.join(`.`),type:l,value:u,onChange:e=>{i(t,l===`number`?xB(e,c?.fallback??0):e)},children:[(0,H.jsx)(IS,{className:`font-semibold`,children:n}),l===`password`?(0,H.jsx)(YB,{disabled:f,max:c?.max,min:c?.min,pattern:c?.pattern,placeholder:c?.placeholder||n,step:c?.step}):(0,H.jsx)(PS,{variant:`secondary`,max:c?.max,min:c?.min,pattern:c?.pattern,placeholder:c?.placeholder||n,step:c?.step}),d?(0,H.jsx)(OS,{children:d}):a(s)]});return o(p,t,f)},renderSelectField:(t,n,r,s,c=e=>e,l=!1)=>{let u=String(Q(e,t,s[0]?.value||``)),d=s.filter(e=>e.disabled).map(e=>e.value),f=(0,H.jsxs)(uC,{disabledKeys:d,fullWidth:!0,isDisabled:l,name:t.join(`.`),placeholder:n,value:u,variant:`secondary`,onChange:e=>{e===null||Array.isArray(e)||i(t,c(String(e)))},children:[(0,H.jsx)(IS,{className:`font-semibold`,children:n}),(0,H.jsxs)(uC.Trigger,{children:[(0,H.jsx)(uC.Value,{}),(0,H.jsx)(uC.Indicator,{})]}),a(r),(0,H.jsx)(uC.Popover,{children:(0,H.jsx)(US,{children:s.map(e=>(0,H.jsxs)(US.Item,{id:e.value,textValue:e.label,children:[(0,H.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,H.jsx)(IS,{children:e.label}),e.description?(0,H.jsx)(aS,{children:e.description}):null]}),(0,H.jsx)(US.ItemIndicator,{})]},e.value))})})]});return o(f,t,l)},renderCheckboxGroup:(t,r,i,c,l=!1,u)=>{let d=Q(e,t,[]),f=(0,H.jsxs)(`div`,{className:n.field,children:[(0,H.jsx)(IS,{className:`font-semibold`,children:r}),a(i),(0,H.jsx)(`div`,{className:n.choiceGrid,children:c.map(e=>{let n=SB(d,e.value);return(0,H.jsxs)(Pv,{variant:`secondary`,isDisabled:l,isSelected:n,onChange:n=>s(t,e.value,n,u),children:[(0,H.jsxs)(Pv.Content,{children:[(0,H.jsx)(Pv.Control,{children:(0,H.jsx)(Pv.Indicator,{})}),e.label]}),e.description?(0,H.jsx)(aS,{children:e.description}):null]},e.value)})})]});return o(f,t,l)},renderSlider:(t,r,s,c)=>{let l=Q(e,t,c?.fallback??0),u=c?.disabled??!1,d=(0,H.jsxs)(`div`,{className:n.field,children:[(0,H.jsxs)(hC,{className:`w-full`,isDisabled:u,value:l,formatOptions:c?.formatOptions??{style:`percent`,maximumFractionDigits:0},maxValue:c?.max??1,minValue:c?.min??0,step:c?.step??.01,onChange:e=>{Array.isArray(e)||i(t,e)},children:[(0,H.jsx)(IS,{className:`font-semibold`,children:r}),(0,H.jsx)(hC.Output,{}),(0,H.jsxs)(hC.Track,{children:[(0,H.jsx)(hC.Fill,{}),(0,H.jsx)(hC.Thumb,{})]})]}),a(s)]});return o(d,t,u)},renderCronField:(r,a,s,c=!1)=>{let l=Q(e,r,`*/10 * * * *`),u=(0,H.jsx)(`div`,{className:n.field,children:(0,H.jsx)(v.Suspense,{fallback:(0,H.jsx)(`div`,{className:`h-64 animate-pulse rounded-lg bg-muted/30`}),children:(0,H.jsx)(JB,{device:t,disabled:c,value:l,onChange:e=>i(r,e)})})});return o(u,r,c)},renderPageHeader:(e,n)=>(0,H.jsxs)(`div`,{className:`mb-6 ${t===`mobile`?`pr-36`:``}`,"data-config-section":!0,children:[(0,H.jsx)(`h2`,{className:`text-2xl font-bold`,children:e}),(0,H.jsx)(`div`,{className:`mt-3`,children:(0,H.jsx)(aS,{children:n})})]}),renderSubSection:(e,t)=>(0,H.jsxs)(lv,{"data-config-section":!0,className:`mb-4`,children:[(0,H.jsx)(lv.Header,{className:n.sectionHeader,children:(0,H.jsx)(lv.Title,{className:`text-lg font-semibold`,children:e})}),(0,H.jsx)(lv.Content,{className:n.sectionContent,children:(0,H.jsx)(`div`,{className:n.fields,children:t})})]})}},ZB={root:`relative flex min-w-0 max-w-full flex-col gap-8`,loading:`flex min-h-80 items-center justify-center gap-3`,header:`grid grid-cols-[minmax(0,1fr)_auto] items-start gap-8 pr-44`,headerCopy:`flex min-w-0 flex-col gap-2`,form:`flex min-w-0 max-w-full flex-col gap-6`,floatingActions:`fixed right-6 top-20 z-10`,actionControls:`flex items-center justify-end gap-3`,sectionHeader:`p-2`,sectionContent:`p-6`,fields:`grid grid-cols-2 gap-x-6 gap-y-5`,field:`flex min-w-0 flex-col gap-2`,choiceGrid:`grid grid-cols-2 gap-3`,divider:`col-span-full flex min-w-0 flex-col gap-2 pt-3`,tabsListContainer:`w-full min-w-0 max-w-full overflow-x-auto overflow-y-hidden overscroll-x-contain overscroll-y-none [scrollbar-width:none] [&::-webkit-scrollbar]:hidden`,tabsList:`w-fit min-w-max *:w-fit *:min-w-fit *:flex-none *:shrink-0 *:whitespace-nowrap`,topLevelFields:`mb-4 space-y-4 px-2`},QB={root:`relative flex min-w-0 max-w-full flex-col gap-5`,loading:`flex min-h-80 items-center justify-center gap-3`,header:`flex flex-col gap-3 pt-12`,headerCopy:`flex min-w-0 flex-col gap-2`,form:`flex min-w-0 max-w-full flex-col gap-3`,floatingActions:`sticky top-0 z-20 flex h-0 w-full justify-end overflow-visible`,actionControls:`flex w-fit h-11 p-1 items-center gap-2 rounded-full border border-default-200 bg-background/90 shadow-sm backdrop-blur-md`,sectionHeader:`p-1`,sectionContent:`p-0`,fields:`grid grid-cols-1 gap-5`,field:`flex min-w-0 flex-col gap-2`,choiceGrid:`grid grid-cols-1 gap-3`,divider:`col-span-full flex min-w-0 flex-col gap-2 pt-3`,tabsListContainer:`w-full min-w-0 max-w-full overflow-x-auto overflow-y-hidden overscroll-x-contain overscroll-y-none [scrollbar-width:none] [&::-webkit-scrollbar]:hidden`,tabsList:`w-fit min-w-max *:w-fit *:min-w-fit *:flex-none *:shrink-0 *:whitespace-nowrap`,topLevelFields:`mb-4 space-y-4 px-4`},$B=e=>e===`mobile`?QB:ZB,eV=({config:e,renderers:t})=>{let{renderPageHeader:n,renderSelectField:r,renderSubSection:i,renderSwitch:a,renderTextField:o}=t,s=Q(e,[`amagi`,`proxy`,`switch`],!1),c=Q(e,[`amagi`,`APIServer`],!1);return(0,H.jsxs)(H.Fragment,{children:[n(`接口库配置`,`接口库的 Cookies、请求、代理和 API 服务配置。保存后后端会重载接口库客户端。`),i(`平台 Cookies`,(0,H.jsxs)(H.Fragment,{children:[o([`amagi`,`cookies`,`douyin`],`抖音 Cookies`,`请输入你的抖音Cookies,不输入则无法使用抖音相关功能噢。`,{type:`password`}),o([`amagi`,`cookies`,`bilibili`],`B站 Cookies`,`请输入你的B站Cookies,不输入部分功能将受限噢。`,{type:`password`}),o([`amagi`,`cookies`,`kuaishou`],`快手 Cookies`,`请输入你的快手Cookies,不输入则无法使用快手相关功能噢。`,{type:`password`}),o([`amagi`,`cookies`,`xiaohongshu`],`小红书 Cookies`,`请输入你的小红书Cookies,不输入则无法使用小红书相关功能噢。`,{type:`password`})]})),i(`请求配置`,(0,H.jsxs)(H.Fragment,{children:[o([`amagi`,`timeout`],`请求超时时间`,`网络请求的超时时间,单位:毫秒。`,{type:`number`,fallback:15e3,min:1e3,max:3e5}),o([`amagi`,`User-Agent`],`User-Agent`,`请求头中的User-Agent字段,用于标识客户端类型。`)]})),i(`代理配置(可选)`,(0,H.jsxs)(H.Fragment,{children:[a([`amagi`,`proxy`,`switch`],`代理开关`,`开启后需要配置「代理主机」「代理端口」。`),r([`amagi`,`proxy`,`protocol`],`代理协议`,`代理服务使用的协议。`,[{label:`HTTP`,value:`http`},{label:`HTTPS`,value:`https`}],e=>e,!s),o([`amagi`,`proxy`,`host`],`代理主机`,`代理服务器的主机地址,如:127.0.0.1。`,{disabled:!s}),o([`amagi`,`proxy`,`port`],`代理端口`,`代理服务器的端口号。`,{type:`number`,fallback:7890,min:1,max:65535,disabled:!s}),o([`amagi`,`proxy`,`auth`,`username`],`代理用户名`,`代理服务器的认证用户名(如果需要)。`,{disabled:!s}),o([`amagi`,`proxy`,`auth`,`password`],`代理密码`,`代理服务器的认证密码(如果需要)。`,{type:`password`,disabled:!s})]})),i(`API 服务配置`,(0,H.jsxs)(H.Fragment,{children:[a([`amagi`,`APIServer`],`API 服务`,`本地部署一个视频解析API服务,接口范围为本插件用到的所有。`),a([`amagi`,`APIServerMount`],`挂载到 Karin`,`API 服务是否挂载到 Karin 上,开启后监听端口为 Karin 的 http 端口,修改后需重启。需开启「API服务」。`,!c),o([`amagi`,`APIServerPort`],`API 服务端口`,`仅未挂载到 Karin 时生效。`,{type:`number`,disabled:Q(e,[`amagi`,`APIServerMount`],!0),fallback:4567,min:1024,max:65535})]}))]})},tV=({config:e,renderers:t})=>{let{renderCheckboxGroup:n,renderPageHeader:r,renderSelectField:i,renderSlider:a,renderSubSection:o,renderSwitch:s,renderTextField:c}=t,l=Q(e,[`app`,`livePhotoMode`],`video_and_livephoto`);return(0,H.jsxs)(H.Fragment,{children:[r(`通用`,`插件运行、渲染和交互相关配置。`),o(`缓存设置`,(0,H.jsx)(H.Fragment,{children:s([`app`,`removeCache`],`自动删除视频缓存`,`任务完成后删除下载缓存。`)})),o(`交互设置`,(0,H.jsxs)(H.Fragment,{children:[s([`app`,`EmojiReply`],`表情回应`,`在解析任务开始时添加表情回应,若适配器不支持需要关闭。`),s([`app`,`parseTip`],`解析提示`,`发送提示信息:"检测到xxx链接,开始解析"。`),s([`app`,`fakeForward`],`伪造合并转发消息`,`开启后合并转发将使用触发者身份展示;关闭后使用机器人身份展示。`),n([`app`,`errorLogSendTo`],`错误日志`,`遇到错误时谁会收到错误日志。注:推送任务只可发送给主人。「第一个主人」与「所有主人」互斥。`,[{label:`第一个主人`,value:`master`},{label:`所有主人`,value:`allMasters`},{label:`触发者的群聊`,value:`trigger`}],!1,[[`master`,`allMasters`]])]})),o(`渲染设置`,(0,H.jsxs)(H.Fragment,{children:[c([`app`,`renderScale`],`渲染精度`,`可选值50~200,建议100。设置高精度会提高图片的精细度,过高可能会影响渲染与发送速度。`,{type:`number`,fallback:100,min:50,max:200}),(0,H.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,H.jsx)(`div`,{className:`min-w-0 flex-1`,children:i([`app`,`Theme`],`渲染图片的主题色`,`渲染评论图和推送图的主题色。`,[{label:`自动`,value:`0`,description:`06:00-18:00为浅色,18:00-06:00为深色`},{label:`浅色`,value:`1`},{label:`深色`,value:`2`},{label:`智能场景(实验性)`,value:`3`,description:`自动模式的超集;部分模板会根据封面色调 智能调整主题色,可能会出现不适配的情况。`}],e=>Number(e))}),(0,H.jsxs)(ZS,{children:[(0,H.jsx)(ZS.Trigger,{"aria-label":`封面氛围背景参数`,className:`mt-7 shrink-0`,children:(0,H.jsx)(ov,{isIconOnly:!0,"aria-label":`封面氛围背景参数`,variant:`secondary`,children:(0,H.jsx)(zP,{className:`size-4`,"aria-hidden":`true`})})}),(0,H.jsx)(ZS.Content,{className:`w-90 max-w-[calc(100vw-2rem)]`,placement:`bottom`,children:(0,H.jsxs)(ZS.Dialog,{children:[(0,H.jsx)(ZS.Arrow,{}),(0,H.jsx)(ZS.Heading,{children:`封面氛围背景`}),(0,H.jsx)(`p`,{className:`mt-1 mb-5 text-sm text-muted`,children:`仅对使用封面氛围背景的模板生效(抖音视频/图文作品、B站视频信息、B站直播推荐动态)。`}),(0,H.jsxs)(`div`,{className:`flex flex-col gap-5`,children:[a([`app`,`ambientCover`,`coverOpacity`],`封面氛围强度`,`封面图对背景氛围的贡献度,即模糊封面层的不透明度,越大封面色越浓。`,{fallback:.7}),a([`app`,`ambientCover`,`overlayEdgeOpacity`],`氛围压色(顶部/底部)`,`背景两端主题色压色罩的不透明度,越大两端越接近纯色主题背景。`,{fallback:.9}),a([`app`,`ambientCover`,`overlayMiddleOpacity`],`氛围压色(中间带)`,`背景中间带主题色压色罩的不透明度,越小封面色越透。`,{fallback:.2})]})]})})]})]}),c([`app`,`RenderWaitTime`],`渲染图片的等待时间`,`单位:秒,Linux系统下不能为0;其他系统传递 0 可禁用。`,{type:`number`,fallback:60,min:0}),s([`app`,`multiPageRender`],`分页渲染`,`将模板渲染成多页的图片,以降低渲染器压力,默认开启,非必要不修改!`),c([`app`,`multiPageHeight`],`分页渲染时,每页的高度`,`经测试最佳每页高度为12000px,默认12000px。`,{type:`number`,disabled:!Q(e,[`app`,`multiPageRender`],!0),fallback:12e3,min:1e3,max:2e4})]})),o(`更新推送设置`,(0,H.jsx)(H.Fragment,{children:n([`app`,`UpdateNotifyChannels`],`更新推送渠道`,`接收哪些渠道的版本更新推送;金丝雀构建经 pkg.pr.new 分发,不提供推送。`,[{label:`正式版`,value:`stable`},{label:`预览版`,value:`rc`},{label:`测试版`,value:`beta`}])})),o(`上传与下载设置`,(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(yC,{className:`flex flex-col gap-5 p-4 mb-4 rounded-3xl`,variant:`secondary`,children:[i([`app`,`videoSendMode`],`本地视频发送方式`,`选择本地视频交付给协议端的方式。`,[{label:`File 协议(本地文件)`,value:`file`,description:`使用 file 协议发送本地视频,需 Karin 与协议端在同一网络环境下`},{label:`Base64(编码传输)`,value:`base64`,description:`将本地视频转换为 base64 发送,传输数据量增大约 30%,不在同一网络环境可能导致额外带宽成本,适合 karin 和协议端不在同一网络环境`}],e=>e,Q(e,[`app`,`usegroupfile`],!1)),s([`app`,`usegroupfile`],`群文件上传`,`使用群文件上传,开启后会将视频文件上传到群文件中,需配置「群文件上传阈值」。与「本地视频发送方式 = Base64」互斥。`,Q(e,[`app`,`videoSendMode`],`file`)===`base64`),c([`app`,`groupfilevalue`],`群文件上传阈值`,`当文件大小超过该值时将使用群文件上传,单位:MB,「使用群文件上传」开启后才会生效。`,{type:`number`,fallback:100,min:1,disabled:!Q(e,[`app`,`usegroupfile`],!1)||Q(e,[`app`,`videoSendMode`],`file`)===`base64`})]}),(0,H.jsx)(yC,{className:`flex flex-col gap-5 p-4 mb-4 rounded-3xl`,variant:`secondary`,children:i([`app`,`imageSendMode`],`网络图片发送方式`,`图片资源发送给协议端的方式。`,[{label:`URL 链接(直接传递)`,value:`url`,description:`直接传递 HTTP 链接给上游下载,可能因上游网络问题导致下载超时`},{label:`File 协议(本地文件)`,value:`file`,description:`下载到本地后使用 file 协议发送,需 Karin 与协议端在同一网络环境下`},{label:`Base64(编码传输)`,value:`base64`,description:`下载后转换为 base64 发送,传输数据量增大约 30%,不在同一网络环境可能导致额外带宽成本`}])}),(0,H.jsxs)(yC,{className:`flex flex-col gap-5 p-4 mb-4 rounded-3xl`,variant:`secondary`,children:[s([`app`,`usefilelimit`],`视频上传拦截`,`开启后会根据视频文件大小判断是否需要上传,需配置「视频拦截阈值」。`),c([`app`,`filelimit`],`视频拦截阈值`,`视频文件大于该数值则直接结束任务,不会上传,单位: MB,「视频上传拦截」开启后才会生效。`,{type:`number`,fallback:20,min:1,disabled:!Q(e,[`app`,`usefilelimit`],!1)}),s([`app`,`compress`],`压缩视频`,`开启后会将视频文件压缩后再上传,适合上传大文件,任务过程中会吃满CPU,对低配服务器不友好。需配置「压缩触发阈值」与「压缩后的值」。`),c([`app`,`compresstrigger`],`压缩触发阈值`,`触发视频压缩的阈值,单位:MB。当文件大小超过该值时,才会压缩视频,「压缩视频」开启后才会生效。`,{type:`number`,fallback:80,min:1,disabled:!Q(e,[`app`,`compress`],!1)}),c([`app`,`compressvalue`],`压缩后的值`,`单位:MB,若视频文件大小大于「压缩触发阈值」的值,则会进行压缩至该值(±5%),「压缩视频」开启后才会生效。`,{type:`number`,fallback:30,min:1,disabled:!Q(e,[`app`,`compress`],!1)})]}),(0,H.jsxs)(yC,{className:`flex flex-col gap-5 p-4 rounded-3xl`,variant:`secondary`,children:[s([`app`,`downloadThrottle`],`下载限速`,`开启后会限制下载速度,避免触发服务器风控导致连接被重置(ECONNRESET)。如果下载时经常报错"连接被重置",建议开启。`),c([`app`,`downloadMaxSpeed`],`最大下载速度`,`限速开关打开后生效。单位:MB/s,建议值:10,根据实际情况调整。`,{type:`number`,fallback:10,min:1,max:100,disabled:!Q(e,[`app`,`downloadThrottle`],!1)}),s([`app`,`downloadAutoReduce`],`断流自动降速`,`限速开关打开后生效。当检测到下载中断时,自动降低下载速度,避免再次触发风控。`,!Q(e,[`app`,`downloadThrottle`],!1)),c([`app`,`downloadMinSpeed`],`最低下载速度`,`断流降速开关打开后生效。单位:MB/s,自动降速的下限值。`,{type:`number`,fallback:1,min:.5,max:50,disabled:!Q(e,[`app`,`downloadThrottle`],!1)||!Q(e,[`app`,`downloadAutoReduce`],!1)})]})]})),o(`Live Photo 兼容设置`,(0,H.jsxs)(H.Fragment,{children:[i([`app`,`livePhotoMode`],`Live Photo 处理和发送方式`,`解析遇到实况图时的处理和发送方式。注意:生成视频性能开销大,2C2G 服务器单张约需 20 秒。`,[{label:`视频 + 实况图`,value:`video_and_livephoto`,description:`生成并发送仿 iPhone Live Photo 播放效果的视频(播放三次)+ 对应系统的实况图`},{label:`仅视频`,value:`video_only`,description:`仅生成并发送仿 iPhone Live Photo 播放效果的视频(播放三次)`},{label:`仅实况图`,value:`livephoto_only`,description:`仅生成并发送对应系统的实况图,性能开销小`}]),i([`app`,`livePhotoSystem`],`Live Photo 静态图兼容系统`,`当解析到作品/动态包含 Live Photo 时,合并转发里发送的 Live Photo 静态图按所选系统生成。推荐 OPPO,兼容性最广。`,[{label:`Google`,value:`google`,description:`Google Motion Photo 格式`},{label:`小米(HyperOS)`,value:`xiaomi`,description:`兼容小米(任何版本)和 Google,但无法被 OPPO 识别`},{label:`OPPO(ColorOS)`,value:`oppo`,description:`推荐,兼容 OPPO、小米(较新版本)和 Google`},{label:`华为/荣耀(HarmonyOS/MagicOS)`,value:`huawei_honor`,description:`理论可行但未实测(作者无对应设备)`},{label:`vivo(Origin OS)`,value:`vivo`,description:`需要独立的图片和同名视频文件,暂不支持`,disabled:!0},{label:`iPhone(iOS)`,value:`iphone`,description:`需要独立的图片和同名视频文件,暂不支持`,disabled:!0}],e=>e,l===`video_only`)]})),o(`我的小玩具`,(0,H.jsxs)(H.Fragment,{children:[s([`app`,`videoTool`],`默认解析优先级`,`关闭后使用自定义优先级,修改后需重启。`),c([`app`,`priority`],`自定义优先级`,`默认解析优先级关闭后生效。`,{type:`number`,disabled:Q(e,[`app`,`videoTool`],!0),fallback:800}),i([`app`,`qrLoginAddrType`],`扫码登录地址`,`生成登录二维码时使用的服务器地址。`,[{label:`局域网`,value:`lan`,description:`适用于手机和服务器在同一局域网`},{label:`外部地址`,value:`external`,description:`适用于远程访问,需手动配置`}]),c([`app`,`qrLoginExternalAddr`],`外部访问地址`,`公网 IP 或域名,如:123.45.67.89 或 example.com。`,{disabled:Q(e,[`app`,`qrLoginAddrType`],`lan`)!==`external`})]}))]})},nV=({config:e,renderers:t,classes:n})=>{let{renderCheckboxGroup:r,renderCronField:i,renderPageHeader:a,renderSelectField:o,renderSubSection:s,renderSwitch:c,renderTextField:l}=t,u=Q(e,[`bilibili`,`switch`],!1),d=Q(e,[`bilibili`,`sendContent`],[]),f=Q(e,[`bilibili`,`burnDanmaku`],!1),p=Q(e,[`bilibili`,`videoQuality`],0),m=Q(e,[`bilibili`,`videoInfoMode`],`text`),h=Q(e,[`bilibili`,`push`,`switch`],!1),g=Q(e,[`bilibili`,`push`,`parsedynamic`],!1),_=Q(e,[`bilibili`,`push`,`pushVideoQuality`],0),v=!u||!SB(d,`comment`),y=!u||!f;return(0,H.jsxs)(H.Fragment,{children:[a(`哔哩哔哩`,`B站解析、动态图片布局、弹幕和推送基础设置。`),(0,H.jsxs)(`div`,{className:n.topLevelFields,"data-config-section":!0,children:[c([`bilibili`,`switch`],`解析开关`,`B站解析开关,此开关为单独开关。`),r([`bilibili`,`sendContent`],`解析时发送的内容`,`若什么都不选,可能不会返回任何解析结果。`,IB.filter(e=>e.value!==`image`),!u)]}),s(`评论详情设置`,(0,H.jsxs)(H.Fragment,{children:[l([`bilibili`,`numcomment`],`评论解析数量`,`主评论解析数量。`,{type:`number`,fallback:5,min:1,disabled:v}),c([`bilibili`,`realCommentCount`],`显示真实评论数量`,`关闭则显示解析到的评论数量。`,v),c([`bilibili`,`commentImageCollection`],`是否收集评论区的图片`,`开启后将收集评论区的图片,以合并转发的形式返回。`,v)]})),s(`渲染与画质设置`,(0,H.jsxs)(H.Fragment,{children:[o([`bilibili`,`videoQuality`],`画质偏好`,`解析视频的分辨率偏好。`,zB,Number,!u),l([`bilibili`,`maxAutoVideoSize`],`视频体积上限(MB)`,`根据该值自动选择分辨率进行下载。仅在「画质偏好」 为 "自动选择" 时生效。`,{type:`number`,fallback:50,min:1,max:2e4,disabled:!u||Number(p)!==0}),o([`bilibili`,`imageLayout`],`解析图文动态时,遇到多张图片时的页面布局方式(动态推送图片也生效)`,`自动布局:少于4张时逐张上下排列;4~8张时瀑布流;9张及以上九宫格。`,[{label:`自动布局`,value:`auto`},{label:`逐张上下排列`,value:`vertical`},{label:`瀑布流排列`,value:`waterfall`},{label:`九宫格排列`,value:`grid`}]),o([`bilibili`,`videoInfoMode`],`视频信息返回形式`,`视频信息返回文本或图片。`,[{label:`图片模式`,value:`image`},{label:`文本模式`,value:`text`}],e=>e,!u),r([`bilibili`,`displayContent`],`视频信息前返回的内容`,`若什么都不选,则不会返回任何视频相关信息。`,LB,!u||m===`image`),c([`bilibili`,`showDanmakuInVideoInfo`],`视频信息图片中显示弹幕`,`开启后在视频信息图片的封面区域显示热门弹幕。关闭后不会请求弹幕数据,可提升解析速度。仅「视频信息返回形式」为图片模式时生效。`,!u||m===`text`)]})),s(`权限设置`,(0,H.jsx)(H.Fragment,{children:o([`bilibili`,`loginPerm`],`谁可以触发扫码登录`,`修改后需重启。`,VB)})),s(`弹幕烧录相关`,(0,H.jsxs)(H.Fragment,{children:[c([`bilibili`,`burnDanmaku`],`弹幕烧录`,`将弹幕硬编码到视频画面中。开启后视频需要重新编码,耗时较长,高分辨率视频会占用较多资源。`,!u),o([`bilibili`,`danmakuArea`],`弹幕区域`,`限制弹幕的显示范围,避免遮挡视频主体内容。`,WB,Number,y),o([`bilibili`,`danmakuFontSize`],`弹幕字号`,`弹幕文字大小。`,GB,e=>e,y),l([`bilibili`,`danmakuOpacity`],`弹幕透明度`,`0为完全透明,100为完全不透明,推荐70。`,{type:`number`,fallback:70,min:0,max:100,disabled:y}),o([`bilibili`,`verticalMode`],`竖屏适配`,`模拟手机端竖屏观看体验,视频居中显示,上下黑边区域用于展示弹幕。`,UB,e=>e,y),o([`bilibili`,`videoCodec`],`视频编码格式`,`弹幕烧录时使用的视频编码格式,会自动检测硬件加速。`,HB,e=>e,y)]})),s(`B站推送相关`,(0,H.jsxs)(H.Fragment,{children:[c([`bilibili`,`push`,`switch`],`推送开关`,`推送开关,修改后需重启;使用「#设置B站推送 + UID」配置推送列表。`),o([`bilibili`,`push`,`permission`],`谁可以设置推送`,`修改后需重启。`,VB,e=>e,!h),i([`bilibili`,`push`,`cron`],`定时任务表达式`,`定时推送的时间,支持可视化编辑或手动输入 cron 表达式。`,!h),c([`bilibili`,`push`,`parsedynamic`],`作品解析`,`触发推送时是否一同解析该作品。`,!h),r([`bilibili`,`push`,`parseDynamicTypes`],`需要解析的动态类型`,`选择推送时需要进一步解析的动态类型;未选择的类型只发送动态卡片。`,BB,!h||!g),o([`bilibili`,`push`,`pushVideoQuality`],`解析视频动态时的画质偏好`,`「作品解析」开启时生效,仅对视频动态有效。`,zB.filter(e=>e.value!==`127`),Number,!h||!g),l([`bilibili`,`push`,`pushMaxAutoVideoSize`],`视频动态的视频体积上限(MB)`,`根据该值自动选择分辨率进行下载。仅在「解析视频动态时的画质偏好」 为 "自动选择" 且「作品解析」开启时生效,仅对视频动态有效。`,{type:`number`,fallback:50,min:1,max:2e4,disabled:!h||!g||Number(_)!==0})]}))]})},rV=({config:e,renderers:t,classes:n})=>{let{renderCheckboxGroup:r,renderCronField:i,renderPageHeader:a,renderSelectField:o,renderSubSection:s,renderSwitch:c,renderTextField:l}=t,u=Q(e,[`app`,`livePhotoMode`],`video_and_livephoto`),d=Q(e,[`douyin`,`switch`],!1),f=Q(e,[`douyin`,`sendContent`],[]),p=Q(e,[`douyin`,`burnDanmaku`],!1),m=Q(e,[`douyin`,`videoQuality`],`adapt`),h=Q(e,[`douyin`,`videoInfoMode`],`text`),g=Q(e,[`douyin`,`push`,`switch`],!1),_=Q(e,[`douyin`,`push`,`pushVideoQuality`],`adapt`),v=!d||!SB(f,`comment`),y=!d||!p;return(0,H.jsxs)(H.Fragment,{children:[a(`抖音`,`抖音解析、画质、弹幕和推送基础设置。`),(0,H.jsxs)(`div`,{className:n.topLevelFields,"data-config-section":!0,children:[c([`douyin`,`switch`],`解析开关`,`抖音解析开关,此开关为单独开关。`),r([`douyin`,`sendContent`],`解析时发送的内容`,`若什么都不选,可能不会返回任何解析结果。`,IB.filter(e=>e.value!==`image`),!d)]}),s(`评论详情设置`,(0,H.jsxs)(H.Fragment,{children:[l([`douyin`,`numcomment`],`评论解析数量`,`主评论解析数量。`,{type:`number`,fallback:5,min:1,disabled:v}),l([`douyin`,`subCommentLimit`],`子评论请求数量`,`单条主评论下请求的子评论总条数(含多层嵌套)。注意:UI中最多显示 6 层回复嵌套,超出部分会被隐藏;因实际嵌套深度不可预知,配置数量不代表最终可见数量。`,{type:`number`,fallback:5,min:1,max:20,disabled:v}),c([`douyin`,`commentImageCollection`],`是否收集评论区的图片`,`开启后将收集评论区的图片,以合并转发的形式返回。`,v)]})),s(`渲染与画质设置`,(0,H.jsxs)(H.Fragment,{children:[o([`douyin`,`liveImageMergeMode`],`合辑 Live 图 BGM 合并方式`,`合辑 Live 图 BGM 合并方式,仅 Live Photo 模式不是「仅实况图」时生效。`,[{label:`连续`,value:`continuous`,description:`BGM 接续播放,结束后自动循环`},{label:`独立`,value:`independent`,description:`每张图 BGM 从头开始`}],e=>e,!d||u===`livephoto_only`),o([`douyin`,`videoQuality`],`画质偏好`,`解析视频的分辨率偏好。`,RB,e=>e,!d),l([`douyin`,`maxAutoVideoSize`],`视频体积上限(MB)`,`根据该值自动选择分辨率进行下载。仅在「画质偏好」 为 "自动选择" 时生效。`,{type:`number`,fallback:50,min:1,max:2e4,disabled:!d||m!==`adapt`}),o([`douyin`,`videoInfoMode`],`视频信息返回形式`,`视频信息返回文本或图片。`,[{label:`图片模式`,value:`image`},{label:`文本模式`,value:`text`}],e=>e,!d),r([`douyin`,`displayContent`],`视频信息的内容`,`若什么都不选,则不会返回任何视频相关信息。`,LB.filter(e=>e.value!==`desc`),!d||h===`image`)]})),s(`权限设置`,(0,H.jsx)(H.Fragment,{children:o([`douyin`,`loginPerm`],`谁可以触发扫码登录`,`修改后需重启。`,VB)})),s(`弹幕烧录相关`,(0,H.jsxs)(H.Fragment,{children:[c([`douyin`,`burnDanmaku`],`弹幕烧录`,`将弹幕硬编码到视频画面中。开启后视频需要重新编码,耗时较长。`,!d),o([`douyin`,`danmakuArea`],`弹幕显示区域`,`限制弹幕范围,避免遮挡视频主体。`,WB,Number,y),o([`douyin`,`danmakuFontSize`],`弹幕字号`,`弹幕文字大小。`,GB,e=>e,y),l([`douyin`,`danmakuOpacity`],`弹幕透明度`,`0为完全透明,100为完全不透明,推荐70。`,{type:`number`,fallback:70,min:0,max:100,disabled:y}),o([`douyin`,`verticalMode`],`竖屏适配`,`针对横屏视频,模拟手机端竖屏观看体验,视频居中显示,上下黑边区域用于展示弹幕。`,UB,e=>e,y),o([`douyin`,`videoCodec`],`视频编码格式`,`烧录弹幕后的视频编码格式。`,HB,e=>e,y)]})),s(`抖音推送相关`,(0,H.jsxs)(H.Fragment,{children:[c([`douyin`,`push`,`switch`],`推送开关`,`推送开关,修改后需重启;使用「#设置抖音推送 + 抖音号」配置推送列表。`),o([`douyin`,`push`,`permission`],`谁可以设置推送`,`修改后需重启。`,VB,e=>e,!g),i([`douyin`,`push`,`cron`],`定时任务表达式`,`定时推送的时间,支持可视化编辑或手动输入 cron 表达式。`,!g),c([`douyin`,`push`,`parsedynamic`],`作品解析`,`触发推送时是否一同解析该作品。`,!g),o([`douyin`,`push`,`shareType`],`推送图二维码的类型`,`推送图二维码识别后的跳转类型。`,[{label:`网页链接`,value:`web`,description:`识别后访问抖音官网对应的作品地址`},{label:`下载链接`,value:`download`,description:`识别后访问无水印作品下载地址`}],e=>e,!g),o([`douyin`,`push`,`pushVideoQuality`],`画质偏好`,`推送解析时解析视频的分辨率偏好。`,RB,e=>e,!g),l([`douyin`,`push`,`pushMaxAutoVideoSize`],`视频体积上限(MB)`,`推送解析时根据该值自动选择分辨率进行下载。仅在「画质偏好」 为 "自动选择" 时生效。`,{type:`number`,fallback:50,min:1,max:2e4,disabled:!g||_!==`adapt`})]}))]})},iV=({config:e,renderers:t,classes:n})=>{let{renderPageHeader:r,renderSelectField:i,renderSubSection:a,renderSwitch:o,renderTextField:s}=t,c=Q(e,[`kuaishou`,`switch`],!1),l=Q(e,[`kuaishou`,`comment`],!1);return(0,H.jsxs)(H.Fragment,{children:[r(`快手`,`快手解析基础设置。`),(0,H.jsx)(`div`,{className:n.topLevelFields,"data-config-section":!0,children:o([`kuaishou`,`switch`],`解析开关`,`快手解析开关,此开关为单独开关。`)}),a(`评论详情设置`,(0,H.jsxs)(H.Fragment,{children:[o([`kuaishou`,`comment`],`评论解析`,`快手评论解析,开启后可发送快手作品评论图。`,!c),s([`kuaishou`,`numcomment`],`评论解析数量`,`快手评论解析数量。`,{type:`number`,fallback:5,min:1,disabled:!c||!l})]})),a(`权限设置`,(0,H.jsx)(H.Fragment,{children:i([`kuaishou`,`loginPerm`],`谁可以触发扫码登录`,`修改后需重启。`,VB)}))]})},aV=({children:e,disabled:t,message:n,device:r})=>t?r===`mobile`?(0,H.jsxs)(ZS,{children:[(0,H.jsx)(ZS.Trigger,{className:`w-full cursor-not-allowed`,children:e}),(0,H.jsxs)(ZS.Content,{placement:`bottom`,children:[(0,H.jsx)(ZS.Arrow,{}),(0,H.jsx)(`div`,{className:`px-3 py-2`,children:(0,H.jsx)(`p`,{className:`text-sm text-foreground`,children:n})})]})]}):(0,H.jsxs)(uw,{delay:0,children:[(0,H.jsx)(uw.Trigger,{className:`w-full cursor-not-allowed`,children:e}),(0,H.jsxs)(uw.Content,{showArrow:!0,placement:`top`,children:[(0,H.jsx)(uw.Arrow,{}),n]})]}):e,oV=e=>e===`desktop`?`grid grid-cols-2 gap-4`:`flex flex-col gap-4`,sV=[{label:`作品列表`,value:`post`,description:`推送用户发布的作品`},{label:`喜欢列表`,value:`favorite`,description:`推送用户喜欢的作品`},{label:`推荐列表`,value:`recommend`,description:`推送推荐的作品`},{label:`直播`,value:`live`,description:`推送直播状态`}],cV=[{label:`投稿视频`,value:`video`,description:`推送UP主投稿的视频`},{label:`图文动态`,value:`draw`,description:`推送图文动态`},{label:`纯文动态`,value:`word`,description:`推送纯文字动态`},{label:`直播动态`,value:`live`,description:`推送直播状态`},{label:`转发动态`,value:`forward`,description:`推送转发的动态`},{label:`投稿专栏`,value:`article`,description:`推送专栏文章`}],lV=[{label:`黑名单`,value:`blacklist`,description:`命中关键词/标签则不推送`},{label:`白名单`,value:`whitelist`,description:`只推送命中关键词/标签的内容`}],uV=({label:e,description:t,items:n,onAdd:r,onRemove:i,disabled:a=!1})=>{let[o,s]=(0,v.useState)(``),[c,l]=(0,v.useState)(``),u=()=>{let e=o.trim();if(!e){l(`请输入内容`);return}if(n.includes(e)){l(`该项已存在,请勿重复添加`);return}r(e),s(``),l(``)};return(0,H.jsxs)(`div`,{className:`space-y-2`,children:[(0,H.jsxs)(`div`,{className:`flex gap-2`,children:[(0,H.jsxs)(MC,{className:`flex-1`,isDisabled:a,isInvalid:!!c,value:o,onChange:e=>{s(e),c&&l(``)},children:[(0,H.jsx)(IS,{children:e}),(0,H.jsx)(PS,{variant:`secondary`,placeholder:`输入${e}`,onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),u())}}),c?(0,H.jsx)(OS,{children:c}):null]}),(0,H.jsx)(ov,{isDisabled:a,variant:`secondary`,onPress:u,children:(0,H.jsx)(NP,{className:`size-4`})})]}),n.length>0?(0,H.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:n.map(e=>(0,H.jsxs)(Rv,{color:`accent`,variant:`soft`,children:[(0,H.jsx)(`span`,{children:e}),a?null:(0,H.jsx)(`button`,{type:`button`,className:`ml-1 rounded-full p-0.5 hover:bg-black/10`,onClick:()=>i(e),children:(0,H.jsx)(VP,{className:`size-3`})})]},e))}):(0,H.jsxs)(aS,{children:[`暂无`,e]}),(0,H.jsx)(aS,{children:t})]})},dV=(e,t)=>{if((e.success||e.code===200)&&e.data!==void 0)return e.data;throw Error(e.message||t)},fV=async()=>dV((await az.get(`/kkk/v1/bots`)).data,`获取 Bot 列表失败`),pV=async e=>dV((await az.get(`/kkk/v1/bots/${encodeURIComponent(e)}/groups`)).data,`获取群列表失败`),mV=async e=>e.length===0?[]:dV((await az.post(`/kkk/v1/groups/batch`,{groups:e})).data,`获取推送目标信息失败`),hV=({label:e,description:t,placeholder:n,disabled:r=!1,items:i,selectedId:a,onSelect:o})=>{let{contains:s}=rh({sensitivity:`base`});return(0,H.jsxs)(n_,{fullWidth:!0,allowsEmptyCollection:!0,isDisabled:r,placeholder:n,selectionMode:`single`,value:a||null,variant:`secondary`,onChange:e=>o(String(e??``)),children:[(0,H.jsx)(IS,{children:e}),(0,H.jsxs)(n_.Trigger,{children:[(0,H.jsx)(n_.Value,{className:`min-w-0`,children:({defaultChildren:e,isPlaceholder:t,state:n})=>{if(t||n.selectedItems.length===0)return e;let r=i.find(e=>e.id===n.selectedItems[0]?.key);return r?(0,H.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,H.jsxs)(tv,{className:`size-4 shrink-0`,size:`sm`,children:[(0,H.jsx)(tv.Image,{alt:r.name,src:r.avatar}),(0,H.jsx)(tv.Fallback,{children:r.name.slice(0,1)})]}),(0,H.jsx)(`span`,{className:`truncate`,children:r.name})]}):e}}),(0,H.jsx)(n_.ClearButton,{}),(0,H.jsx)(n_.Indicator,{})]}),(0,H.jsx)(aS,{children:t}),!r&&i.length===0?(0,H.jsx)(aS,{className:`text-warning`,children:`当前没有可选项`}):null,(0,H.jsx)(n_.Popover,{className:`max-h-72`,children:(0,H.jsxs)(n_.Filter,{filter:s,children:[(0,H.jsx)(iC,{autoFocus:!0,"aria-label":`搜索${e}`,variant:`secondary`,children:(0,H.jsxs)(iC.Group,{children:[(0,H.jsx)(iC.SearchIcon,{}),(0,H.jsx)(iC.Input,{placeholder:`搜索名称或 ID…`}),(0,H.jsx)(iC.ClearButton,{})]})}),(0,H.jsx)(US,{items:i,renderEmptyState:()=>(0,H.jsx)(ES,{children:`未找到结果`}),children:e=>(0,H.jsxs)(US.Item,{id:e.id,textValue:`${e.name} ${e.id} ${e.description}`,children:[(0,H.jsxs)(tv,{className:`shrink-0`,size:`sm`,children:[(0,H.jsx)(tv.Image,{alt:e.name,src:e.avatar}),(0,H.jsx)(tv.Fallback,{children:e.name.slice(0,1)})]}),(0,H.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,H.jsx)(IS,{className:`max-w-full truncate`,children:e.name}),(0,H.jsx)(aS,{className:`truncate`,children:e.description})]}),(0,H.jsx)(US.ItemIndicator,{})]})})]})})]})},gV=e=>`${e.groupId}:${e.botId}`,_V=e=>{let[t,n,r]=e.split(`:`);return!t||!n||r!==void 0?null:{groupId:t,botId:n}},vV=e=>{let t=new Set,n=[];return e.forEach(e=>{let r=_V(e);if(!r)return;let i=gV(r);t.has(i)||(t.add(i),n.push(i))}),n},yV=(e,t)=>{let n=_V(e);return n?gV({groupId:n.groupId,botId:t}):e},bV=e=>{let t=new Map;for(let n of e)for(let e of n){let n=_V(e);n&&t.set(n.botId,(t.get(n.botId)??0)+1)}return Array.from(t,([e,t])=>({botId:e,count:t})).sort((e,t)=>t.count-e.count)},xV=({name:e,avatar:t})=>(0,H.jsxs)(tv,{size:`sm`,children:[(0,H.jsx)(tv.Image,{alt:e,src:t}),(0,H.jsx)(tv.Fallback,{children:e.slice(0,1)})]}),SV=({isOpen:e,onOpenChange:t,device:n,platformLabel:r,items:i,onApply:a,title:o=`推送 Bot 快捷切换`,description:s=r?`把「${r}」的推送目标从当前 Bot 批量切换到目标 Bot。`:`把推送目标从当前 Bot 切换到目标 Bot。`,appliedHint:c=`保存配置后生效`})=>{let[l,u]=(0,v.useState)([]),[d,f]=(0,v.useState)(new Map),[p,m]=(0,v.useState)(``),[h,g]=(0,v.useState)(``),[_,y]=(0,v.useState)(!0),[b,x]=(0,v.useState)(``),[S,C]=(0,v.useState)(!1),[w,T]=(0,v.useState)([]),[E,D]=(0,v.useState)(null),O=n===`desktop`?`right`:`bottom`,k=n===`mobile`?`sm`:`md`;(0,v.useEffect)(()=>{if(!e)return;m(``),g(``),C(!1),T([]),D(null),u([]),f(new Map),x(``),y(!0);let t=!1,n=new Set,r=[];return i.forEach(e=>e.values.forEach(e=>{let t=_V(e);if(!t)return;let i=gV(t);n.has(i)||(n.add(i),r.push(t))})),Promise.all([fV(),mV(r).catch(()=>[])]).then(([e,n])=>{t||(u(e),f(new Map(n.map(e=>[gV(e),e]))))}).catch(e=>{t||x(e instanceof Error?e.message:`获取 Bot 列表失败`)}).finally(()=>{t||y(!1)}),()=>{t=!0}},[e]);let A=i.some(e=>e.values.length>0),j=(0,v.useMemo)(()=>bV(i.map(e=>e.values)).map(e=>{let t=l.find(t=>t.id===e.botId);return{id:e.botId,name:t?.name||e.botId,avatar:t?.avatar||``,description:`${e.count} 条推送目标 · ${t?`在线`:`离线/未注册`}`}}),[l,i]),M=(0,v.useMemo)(()=>l.filter(e=>e.id!==p).map(e=>({id:e.id,name:e.name,avatar:e.avatar,description:e.id})),[l,p]),N=(0,v.useMemo)(()=>{if(!p||!h)return[];let e=[];return i.forEach(t=>{let n=t.values.filter(e=>_V(e)?.botId===p).map(e=>({oldValue:e,newValue:yV(e,h)}));n.length>0&&e.push({item:t,entries:n})}),e},[i,p,h]),P=N.reduce((e,t)=>e+t.entries.length,0),F=S?w:N,I=()=>{if(!p||!h||N.length===0)return;let e=l.find(e=>e.id===p),t=l.find(e=>e.id===h);a(i.map(e=>e.values.map(e=>_V(e)?.botId===p?yV(e,h):e))),T(N),D({objects:N.length,entries:P,fromName:e?.name||p,toName:t?.name||h}),C(!0),WC.success(`已切换 ${N.length} 个推送对象的 ${P} 条推送目标,${c}`)},ee=e=>{let t=_V(e.oldValue);if(!t)return null;let n=d.get(e.oldValue),r=l.find(e=>e.id===h),i=n?.botName||p,a=r?.name||h;return(0,H.jsxs)(`div`,{className:`flex flex-col gap-1.5 rounded-lg border border-default-200 bg-default-50/50 p-2.5`,children:[(0,H.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,H.jsxs)(tv,{size:`sm`,children:[(0,H.jsx)(tv.Image,{alt:n?.groupName||t.groupId,src:n?.groupAvatar}),(0,H.jsx)(tv.Fallback,{children:(n?.groupName||t.groupId).slice(0,1)})]}),(0,H.jsxs)(`div`,{className:`min-w-0`,children:[(0,H.jsx)(IS,{className:`block truncate`,children:n?.groupName||t.groupId}),(0,H.jsx)(aS,{className:`block truncate`,children:t.groupId})]})]}),(0,H.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2 pl-8`,children:[(0,H.jsx)(xV,{name:i,avatar:n?.botAvatar}),(0,H.jsx)(`span`,{className:`min-w-0 truncate text-xs text-muted`,children:i}),(0,H.jsx)(`span`,{className:`shrink-0 text-xs text-muted`,children:`→`}),(0,H.jsx)(xV,{name:a,avatar:r?.avatar}),(0,H.jsx)(`span`,{className:`min-w-0 truncate text-xs`,children:a})]})]},e.oldValue)};return(0,H.jsx)(wS.Backdrop,{isOpen:e,onOpenChange:t,variant:`blur`,children:(0,H.jsx)(wS.Content,{placement:O,children:(0,H.jsxs)(wS.Dialog,{className:n===`desktop`?`h-full w-130 max-w-[90vw]`:`max-h-[84dvh]`,children:[(0,H.jsx)(wS.Handle,{}),(0,H.jsx)(wS.CloseTrigger,{}),(0,H.jsxs)(wS.Header,{children:[(0,H.jsx)(wS.Heading,{children:o}),(0,H.jsx)(aS,{children:s})]}),(0,H.jsxs)(wS.Body,{className:`flex min-h-0 flex-col gap-3`,children:[S&&E?(0,H.jsxs)(`div`,{className:`flex items-start gap-2 rounded-lg border border-success/30 bg-success/10 p-3 text-sm`,children:[(0,H.jsx)(_P,{className:`size-4 shrink-0 text-success`}),(0,H.jsxs)(`span`,{children:[`已将 `,E.objects,` 个推送对象的 `,E.entries,` 条推送目标从「`,E.fromName,`」切换到「`,E.toName,`」,`,c,`。`]})]}):null,_?(0,H.jsxs)(`div`,{className:`flex items-center gap-2 text-sm text-muted`,children:[(0,H.jsx)(vC,{size:`sm`,"aria-label":`正在读取 Bot 信息`}),(0,H.jsx)(`span`,{children:`正在读取 Bot 信息`})]}):(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(hV,{description:`列出推送目标中实际出现的 Bot,含离线 Bot。`,disabled:S,items:j,label:`当前 Bot`,placeholder:`选择要替换掉的 Bot`,selectedId:p,onSelect:e=>{g(``),m(e)}}),(0,H.jsx)(hV,{description:p?`Karin 当前在线的 Bot。`:`请先选择当前 Bot。`,disabled:S||!p,items:M,label:`目标 Bot`,placeholder:`选择切换后的 Bot`,selectedId:h,onSelect:g}),!p&&M.length===0&&l.length>0?(0,H.jsx)(aS,{className:`text-warning`,children:`当前没有其他在线 Bot 可作为切换目标。`}):null]}),b?(0,H.jsxs)(`div`,{className:`flex items-center gap-2 rounded-lg border border-danger/30 bg-danger/10 p-3 text-sm text-danger`,children:[(0,H.jsx)(UP,{className:`size-4 shrink-0`}),(0,H.jsx)(`span`,{children:b})]}):null,A?(0,H.jsxs)(`div`,{className:`flex min-h-0 flex-col gap-3`,children:[(0,H.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,H.jsx)(IS,{children:S?`已更改的推送对象`:`将被更改的推送对象`}),(0,H.jsx)(aS,{children:S&&E?`${E.objects} 个推送对象 / ${E.entries} 条推送目标`:p&&h?N.length>0?`${N.length} 个推送对象 / ${P} 条推送目标`:`没有匹配「当前 Bot」的推送目标。`:`选择当前 Bot 与目标 Bot 后,这里会预览受影响的推送对象。`})]}),F.length>0?(0,H.jsx)(`div`,{className:n===`mobile`?`flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto pb-2`:`flex max-h-96 flex-col gap-4 overflow-y-auto`,children:F.map(({item:e,entries:t},r)=>(0,H.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,H.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,H.jsx)(tv,{size:`sm`,children:(0,H.jsx)(tv.Fallback,{children:e.label.slice(0,1)})}),(0,H.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,H.jsx)(IS,{className:`block truncate`,children:e.label}),e.description?(0,H.jsx)(aS,{className:`block truncate`,children:e.description}):null]}),(0,H.jsxs)(Rv,{color:`accent`,variant:`soft`,children:[t.length,` 条`]})]}),(0,H.jsx)(`div`,{className:n===`mobile`?`flex flex-col gap-2`:`flex flex-col gap-2 pl-8`,children:t.map(ee)})]},r))}):null]}):(0,H.jsx)(`div`,{className:`rounded-lg border border-dashed border-default-300 px-4 py-5 text-sm text-muted`,children:r?`「${r}」还没有配置推送目标。`:`还没有配置推送目标。`})]}),(0,H.jsxs)(wS.Footer,{children:[(0,H.jsx)(ov,{size:k,slot:`close`,variant:`secondary`,children:`取消`}),S?(0,H.jsx)(ov,{size:k,slot:`close`,children:`完成`}):(0,H.jsx)(ov,{size:k,isDisabled:!p||!h||N.length===0,onPress:I,children:`应用更改`})]})]})})})},CV=({mapping:e,compact:t=!1,stacked:n=!1})=>n?(0,H.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,H.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,H.jsxs)(tv,{size:`sm`,children:[(0,H.jsx)(tv.Image,{alt:e.groupName||e.groupId,src:e.groupAvatar}),(0,H.jsx)(tv.Fallback,{children:(e.groupName||e.groupId).slice(0,1)})]}),(0,H.jsxs)(`div`,{className:`min-w-0`,children:[(0,H.jsx)(IS,{className:`block truncate`,children:e.groupName||e.groupId}),(0,H.jsx)(aS,{className:`block truncate`,children:e.groupId})]})]}),(0,H.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2 pl-8`,children:[(0,H.jsx)(pP,{className:`size-4 shrink-0 text-muted`}),(0,H.jsxs)(tv,{size:`sm`,children:[(0,H.jsx)(tv.Image,{alt:e.botName||e.botId,src:e.botAvatar}),(0,H.jsx)(tv.Fallback,{children:(e.botName||e.botId).slice(0,1)})]}),(0,H.jsxs)(`div`,{className:`min-w-0`,children:[(0,H.jsx)(IS,{className:`block truncate`,children:e.botName||e.botId}),(0,H.jsx)(aS,{className:`block truncate`,children:t?e.botId:`Bot ${e.botId}`})]})]})]}):(0,H.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,H.jsxs)(tv,{size:`sm`,children:[(0,H.jsx)(tv.Image,{alt:e.groupName||e.groupId,src:e.groupAvatar}),(0,H.jsx)(tv.Fallback,{children:(e.groupName||e.groupId).slice(0,1)})]}),(0,H.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,H.jsx)(IS,{className:`block truncate`,children:e.groupName||e.groupId}),(0,H.jsx)(aS,{className:`block truncate`,children:e.groupId})]}),(0,H.jsx)(pP,{className:`size-4 shrink-0 text-muted`}),(0,H.jsxs)(tv,{size:`sm`,children:[(0,H.jsx)(tv.Image,{alt:e.botName||e.botId,src:e.botAvatar}),(0,H.jsx)(tv.Fallback,{children:(e.botName||e.botId).slice(0,1)})]}),(0,H.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,H.jsx)(IS,{className:`block truncate`,children:e.botName||e.botId}),(0,H.jsx)(aS,{className:`block truncate`,children:t?e.botId:`Bot ${e.botId}`})]})]}),wV=({device:e,mappings:t,onEdit:n,onRemove:r})=>(0,H.jsxs)(`div`,{className:e===`mobile`?`flex min-h-0 min-w-0 flex-1 flex-col gap-4`:`flex min-w-0 flex-col gap-3`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(IS,{children:`已配置目标`}),(0,H.jsxs)(aS,{children:[t.length,` 个推送目标`]})]}),t.length>0?(0,H.jsx)(`div`,{className:e===`mobile`?`flex min-h-0 flex-1 flex-col gap-3 overflow-y-auto pb-2`:`flex max-h-72 flex-col gap-2 overflow-y-auto`,children:t.map(t=>{let i=gV(t);return(0,H.jsxs)(`div`,{className:`flex min-w-0 items-start gap-2 rounded-lg border border-default-200 bg-default-50/50 p-2.5`,children:[(0,H.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,H.jsx)(CV,{compact:!0,mapping:t,stacked:e===`mobile`})}),(0,H.jsxs)(uw,{delay:0,children:[(0,H.jsx)(ov,{isIconOnly:!0,"aria-label":`编辑推送目标`,size:`sm`,variant:`tertiary`,onPress:()=>n(i),children:(0,H.jsx)(jP,{className:`size-4`})}),(0,H.jsxs)(uw.Content,{showArrow:!0,placement:`top`,children:[(0,H.jsx)(uw.Arrow,{}),`编辑`]})]}),(0,H.jsxs)(uw,{delay:0,children:[(0,H.jsx)(ov,{isIconOnly:!0,"aria-label":`删除推送目标`,size:`sm`,variant:`danger`,onPress:()=>r(i),children:(0,H.jsx)(VP,{className:`size-4`})}),(0,H.jsxs)(uw.Content,{showArrow:!0,placement:`top`,children:[(0,H.jsx)(uw.Arrow,{}),`删除`]})]})]},i)})}):(0,H.jsx)(`div`,{className:`rounded-lg border border-dashed border-default-300 px-4 py-5 text-sm text-muted`,children:`还没有推送目标,点击上方按钮添加。`})]}),TV=({isOpen:e,device:t,initialMapping:n,onOpenChange:r,onConfirm:i})=>{let[a,o]=(0,v.useState)([]),[s,c]=(0,v.useState)([]),[l,u]=(0,v.useState)(n?.botId||``),[d,f]=(0,v.useState)(n?.groupId||``),[p,m]=(0,v.useState)(!0),[h,g]=(0,v.useState)(!!n?.botId),[_,y]=(0,v.useState)(``);(0,v.useEffect)(()=>{e&&(u(n?.botId||``),f(n?.groupId||``),c([]),o([]),m(!0),g(!!n?.botId),y(``))},[e,n?.botId,n?.groupId]);let b=(0,v.useMemo)(()=>a.find(e=>e.id===l),[a,l]),x=(0,v.useMemo)(()=>s.find(e=>e.id===d),[s,d]),S=(0,v.useMemo)(()=>a.map(e=>({id:e.id,name:e.name,avatar:e.avatar,description:e.id})),[a]),C=(0,v.useMemo)(()=>s.map(e=>({id:e.id,name:e.name,avatar:e.avatar,description:e.id})),[s]),w=!!(l&&d);(0,v.useEffect)(()=>{e&&fV().then(o).catch(e=>{y(e instanceof Error?e.message:`获取 Bot 列表失败`)}).finally(()=>m(!1))},[e]),(0,v.useEffect)(()=>{e&&l&&pV(l).then(e=>{c(e),f(t=>e.some(e=>e.id===t)?t:``)}).catch(e=>{y(e instanceof Error?e.message:`获取群列表失败`)}).finally(()=>g(!1))},[e,l]);let T=()=>{if(!w||!b||!x)return;let e={groupId:x.id,botId:b.id};x.name&&(e.groupName=x.name),x.avatar&&(e.groupAvatar=x.avatar),b.name&&(e.botName=b.name),b.avatar&&(e.botAvatar=b.avatar),b.isOnline!==void 0&&(e.isOnline=b.isOnline),i(e)},E=t===`desktop`?`right`:`bottom`,D=n?`编辑推送目标`:`添加推送目标`;return(0,H.jsx)(wS.Backdrop,{isOpen:e,onOpenChange:r,children:(0,H.jsx)(wS.Content,{placement:E,children:(0,H.jsxs)(wS.Dialog,{className:t===`desktop`?`h-full w-105 max-w-[90vw]`:`max-h-[78dvh]`,children:[(0,H.jsx)(wS.Handle,{}),(0,H.jsx)(wS.CloseTrigger,{}),(0,H.jsxs)(wS.Header,{children:[(0,H.jsx)(wS.Heading,{children:D}),(0,H.jsx)(aS,{children:`先选择 Bot,再选择该 Bot 加入的群。`})]}),(0,H.jsxs)(wS.Body,{className:`flex flex-col gap-4`,children:[(0,H.jsx)(hV,{description:`Karin 当前已注册且在线的 Bot。`,disabled:p,items:S,label:`机器人账号`,placeholder:`选择机器人账号`,selectedId:l,onSelect:e=>{y(``),c([]),g(!!e),u(e),f(``)}}),(0,H.jsx)(hV,{description:l?`当前 Bot 已加入的群。`:`请先选择机器人账号。`,disabled:!l||h,items:C,label:`推送群`,placeholder:`选择推送群`,selectedId:d,onSelect:f}),p||h?(0,H.jsxs)(`div`,{className:`flex items-center gap-2 text-sm text-muted`,children:[(0,H.jsx)(vC,{size:`sm`,"aria-label":`正在读取列表`}),(0,H.jsx)(`span`,{children:`正在读取列表`})]}):null,b&&x?(0,H.jsxs)(`div`,{className:`flex flex-col gap-2 rounded-lg border border-default-200 bg-default-50/60 p-3`,children:[(0,H.jsx)(IS,{children:`将写入`}),(0,H.jsxs)(aS,{className:`mt-1`,children:[x.name,`(`,x.id,`) -> `,b.name,`(`,b.id,`)`]})]}):null,_?(0,H.jsx)(aS,{className:`text-danger`,children:_}):null]}),(0,H.jsxs)(wS.Footer,{children:[(0,H.jsx)(ov,{size:t===`mobile`?`sm`:`md`,slot:`close`,variant:`secondary`,children:`取消`}),(0,H.jsx)(ov,{size:t===`mobile`?`sm`:`md`,slot:`close`,isDisabled:!w,onPress:T,children:n?`保存`:`添加`})]})]})})})},EV=(e,t,n)=>{let r=vV(e);return{values:r,mappings:r.map(e=>{let r=_V(e),i=n[e]||t.find(t=>gV(t)===e);if(!r)return null;let a={groupId:r.groupId,botId:r.botId};return i?.groupName&&(a.groupName=i.groupName),i?.groupAvatar&&(a.groupAvatar=i.groupAvatar),i?.botName&&(a.botName=i.botName),i?.botAvatar&&(a.botAvatar=i.botAvatar),i?.isOnline!==void 0&&(a.isOnline=i.isOnline),a}).filter(e=>!!e)}},DV=({isOpen:e,values:t,mappings:n,device:r,itemLabel:i,onOpenChange:a,onApply:o})=>{let[s,c]=(0,v.useState)(()=>vV(t)),[l,u]=(0,v.useState)({}),[d,f]=(0,v.useState)(null),[p,m]=(0,v.useState)(!1),[h,g]=(0,v.useState)(!1),[_,y]=(0,v.useState)([]),b=(0,v.useMemo)(()=>EV(s,n,l),[s,l,n]),x=r===`desktop`?`right`:`bottom`,S=r===`mobile`?`sm`:`md`,C=d?_V(d):null;(0,v.useEffect)(()=>{e&&fV().then(y).catch(()=>y([]))},[e]),(0,v.useEffect)(()=>{e||(c(vV(t)),u({}))},[e,t]);let w=e=>{f(e),m(!0)};return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(wS.Backdrop,{isOpen:e,onOpenChange:e=>{e||o(b.values),a(e)},variant:`blur`,children:(0,H.jsx)(wS.Content,{placement:x,children:(0,H.jsxs)(wS.Dialog,{className:r===`desktop`?`h-full w-130 max-w-[90vw]`:`max-h-[84dvh]`,children:[(0,H.jsx)(wS.Handle,{}),(0,H.jsx)(wS.CloseTrigger,{}),(0,H.jsxs)(wS.Header,{children:[(0,H.jsx)(wS.Heading,{children:`推送目标`}),(0,H.jsx)(aS,{children:`管理所有接收推送的群和 Bot 映射。`})]}),(0,H.jsxs)(wS.Body,{className:`flex min-h-0 flex-col gap-3`,children:[(0,H.jsx)(`div`,{className:`rounded-lg border border-default-200 bg-default-50/50 p-3`,children:(0,H.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,H.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,H.jsx)(IS,{children:`快捷切换 Bot`}),(0,H.jsx)(aS,{children:`把本推送对象的推送目标从当前 Bot 切换到目标 Bot,先应用到下方草稿。`})]}),(0,H.jsxs)(ov,{className:`self-start`,size:S,variant:`secondary`,isDisabled:s.length===0,onPress:()=>g(!0),children:[(0,H.jsx)(dP,{className:`size-4`}),(0,H.jsx)(`span`,{children:`切换 Bot`})]})]})}),(0,H.jsxs)(ov,{className:`self-start`,size:S,onPress:()=>w(null),children:[(0,H.jsx)(NP,{className:`size-4`}),`添加推送目标`]}),(0,H.jsx)(wV,{device:r,mappings:b.mappings,onEdit:e=>w(e),onRemove:e=>{c(t=>t.filter(t=>t!==e)),u(t=>{let n={...t};return delete n[e],n})}})]}),(0,H.jsxs)(wS.Footer,{children:[(0,H.jsx)(ov,{size:S,slot:`close`,variant:`secondary`,children:`取消`}),(0,H.jsx)(ov,{size:S,slot:`close`,onPress:()=>{o(b.values)},children:`完成`})]})]})})}),(0,H.jsx)(TV,{device:r,initialMapping:C,isOpen:p,onConfirm:e=>{let t=gV(e),n=[...s],r=d?n.indexOf(d):-1;r>=0?n[r]=t:n.unshift(t),c(vV(n)),u(n=>{let r={...n,[t]:e};return d&&d!==t&&delete r[d],r}),m(!1),f(null)},onOpenChange:m},d||`new`),(0,H.jsx)(SV,{device:r,isOpen:h,items:[{label:i||`本推送对象`,description:``,values:s}],title:`快捷切换 Bot`,description:`把本推送对象的推送目标从当前 Bot 切换到目标 Bot,先应用到抽屉草稿。`,appliedHint:`完成抽屉并保存配置后生效`,onApply:e=>{let t=vV(e[0]??s),r={};t.forEach(e=>{if(s.includes(e))return;let t=_V(e);if(!t)return;let i=s.find(e=>_V(e)?.groupId===t.groupId),a=i?l[i]||n.find(e=>gV(e)===i):void 0,o=_.find(e=>e.id===t.botId),c={groupId:t.groupId,botId:t.botId};a?.groupName&&(c.groupName=a.groupName),a?.groupAvatar&&(c.groupAvatar=a.groupAvatar),o?.name&&(c.botName=o.name),o?.avatar&&(c.botAvatar=o.avatar),o&&(c.isOnline=o.isOnline),r[e]=c}),c(t),u(e=>{let n={...e,...r};return s.forEach(e=>{t.includes(e)||delete n[e]}),n})},onOpenChange:g})]})},OV=(e,t)=>{let n=_V(e);if(!n)return null;let r={groupId:n.groupId,botId:n.botId};return t?.groupName&&(r.groupName=t.groupName),t?.groupAvatar&&(r.groupAvatar=t.groupAvatar),t?.botName&&(r.botName=t.botName),t?.botAvatar&&(r.botAvatar=t.botAvatar),t?.isOnline!==void 0&&(r.isOnline=t.isOnline),r},kV=({value:e,disabled:t,itemLabel:n,device:r,onChange:i})=>{let a=(0,v.useMemo)(()=>vV(e),[e]),o=(0,v.useMemo)(()=>e.filter(e=>!_V(e)),[e]),[s,c]=(0,v.useState)([]),[l,u]=(0,v.useState)(!1),[d,f]=(0,v.useState)(!1),p=(0,v.useMemo)(()=>a.map(e=>{let t=_V(e);return OV(e,t?s.find(e=>e.groupId===t.groupId&&e.botId===t.botId):void 0)}).filter(e=>!!e),[s,a]);(0,v.useEffect)(()=>{mV(a.map(_V).filter(e=>!!e)).then(c).catch(()=>c([])).finally(()=>u(!1))},[a]);let m=e=>i(vV(e)),h=`开启【${n}】的推送开关后才能编辑此字段`,g=a.length>0?`已配置 ${a.length} 个推送目标`:`还没有配置推送目标`;return(0,H.jsx)(aV,{disabled:t,device:r,message:h,children:(0,H.jsxs)(`div`,{className:`space-y-3`,children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between gap-4 rounded-lg border border-default-200 bg-default-50/50 px-4 py-3`,children:[(0,H.jsxs)(`div`,{className:`flex flex-col min-w-0`,children:[(0,H.jsx)(IS,{children:`推送目标`}),(0,H.jsx)(aS,{className:`mt-1`,children:g})]}),(0,H.jsxs)(ov,{isDisabled:t,size:r===`mobile`?`sm`:`md`,variant:r===`mobile`?`primary`:`secondary`,onPress:()=>f(!0),children:[(0,H.jsx)(jP,{className:`size-4`}),(0,H.jsx)(`span`,{children:`管理`})]})]}),l?(0,H.jsxs)(`div`,{className:`flex items-center gap-2 text-sm text-muted`,children:[(0,H.jsx)(vC,{size:`sm`,"aria-label":`正在读取推送目标`}),(0,H.jsx)(`span`,{children:`正在读取推送目标`})]}):null,o.length>0?(0,H.jsxs)(`div`,{className:`rounded-lg border border-warning/30 bg-warning/10 p-3 text-sm`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-2 font-medium text-warning`,children:[(0,H.jsx)(UP,{className:`size-4`}),(0,H.jsxs)(`span`,{children:[`发现 `,o.length,` 条旧格式或错误格式`]})]}),(0,H.jsx)(aS,{className:`mt-1`,children:`建议删除后用可视化选择重新添加,避免后端解析异常。`})]}):null,(0,H.jsx)(DV,{device:r,isOpen:d,itemLabel:n,mappings:p,values:a,onApply:m,onOpenChange:f})]})})},AV=({disabled:e,itemLabel:t,device:n,value:r,onChange:i})=>(0,H.jsx)(kV,{disabled:e,device:n,itemLabel:t,value:r,onChange:i}),jV=({disabled:e,itemLabel:t,device:n,options:r,value:i,onChange:a})=>(0,H.jsx)(aV,{disabled:e,device:n,message:`开启【${t}】的推送开关后才能编辑此字段`,children:(0,H.jsxs)(Dv,{"aria-label":`推送类型`,isDisabled:e,value:i,onChange:e=>a(e),children:[(0,H.jsx)(IS,{children:`推送类型`}),(0,H.jsx)(aS,{children:`选择要推送的内容类型`}),(0,H.jsx)(`div`,{className:`mt-2 ${oV(n)}`,children:r.map(e=>(0,H.jsxs)(Pv,{value:e.value,variant:`secondary`,children:[(0,H.jsxs)(Pv.Content,{children:[(0,H.jsx)(Pv.Control,{children:(0,H.jsx)(Pv.Indicator,{})}),e.label]}),(0,H.jsx)(aS,{children:e.description})]},e.value))})]})}),MV=({disabled:e,itemLabel:t,device:n,value:r,onChange:i})=>(0,H.jsx)(aV,{disabled:e,device:n,message:`开启【${t}】的推送开关后才能编辑此字段`,children:(0,H.jsxs)(uC,{fullWidth:!0,isDisabled:e,value:r,onChange:e=>{e&&!Array.isArray(e)&&i(e)},children:[(0,H.jsx)(IS,{children:`过滤模式`}),(0,H.jsxs)(uC.Trigger,{children:[(0,H.jsx)(uC.Value,{}),(0,H.jsx)(uC.Indicator,{})]}),(0,H.jsx)(aS,{children:`设置关键词/标签的过滤方式`}),(0,H.jsx)(uC.Popover,{children:(0,H.jsx)(US,{children:lV.map(e=>(0,H.jsxs)(US.Item,{id:e.value,textValue:e.label,children:[(0,H.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,H.jsx)(IS,{children:e.label}),(0,H.jsx)(aS,{children:e.description})]}),(0,H.jsx)(US.ItemIndicator,{})]},e.value))})})]})}),NV=({disabled:e,itemLabel:t,device:n,keywords:r,tags:i,onKeywordsChange:a,onTagsChange:o})=>{let s=`开启【${t}】的推送开关后才能编辑此字段`;return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(aV,{disabled:e,device:n,message:s,children:(0,H.jsx)(`div`,{children:(0,H.jsx)(uV,{label:`关键词`,description:`多个关键词用于内容过滤`,disabled:e,items:r,onAdd:e=>a([...r,e]),onRemove:e=>a(r.filter(t=>t!==e))})})}),(0,H.jsx)(aV,{disabled:e,device:n,message:s,children:(0,H.jsx)(`div`,{children:(0,H.jsx)(uV,{label:`标签`,description:`多个标签用于内容过滤`,disabled:e,items:i,onAdd:e=>o([...i,e]),onRemove:e=>o(i.filter(t=>t!==e))})})})]})},PV=({onDelete:e})=>(0,H.jsxs)(ov,{className:`w-full`,variant:`danger`,onPress:e,children:[(0,H.jsx)(VP,{className:`size-4`}),(0,H.jsx)(`span`,{children:`删除此推送项`})]}),FV=({item:e,index:t,list:n,onChange:r,device:i})=>{let a=i=>{let a=[...n];a[t]={...e,...i},r(a)},o=!e.switch,s=e.remark||`UID: ${e.host_mid}`||`未命名`,c=`开启【${s}】的推送开关后才能编辑此字段`;return(0,H.jsxs)(qc.Item,{id:`bilibili-${t}`,children:[(0,H.jsx)(qc.Heading,{children:(0,H.jsxs)(qc.Trigger,{children:[(0,H.jsxs)(`div`,{className:`flex flex-1 items-center gap-3`,children:[(0,H.jsx)(`div`,{onClick:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation(),children:(0,H.jsx)(DC,{"aria-label":`推送开关`,isSelected:e.switch,onChange:e=>a({switch:e}),children:(0,H.jsx)(DC.Content,{children:(0,H.jsx)(DC.Control,{children:(0,H.jsx)(DC.Thumb,{})})})})}),(0,H.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,H.jsx)(`span`,{className:`font-medium`,children:e.remark||`UID: ${e.host_mid}`||`推送项 ${t+1}`}),(0,H.jsxs)(aS,{className:`text-xs`,children:[`B站 UID: `,e.host_mid]})]})]}),(0,H.jsx)(qc.Indicator,{children:(0,H.jsx)(hP,{className:`size-5`})})]})}),(0,H.jsx)(qc.Panel,{children:(0,H.jsx)(qc.Body,{children:(0,H.jsxs)(`div`,{className:`space-y-4`,children:[(0,H.jsxs)(`div`,{className:oV(i),children:[(0,H.jsx)(aV,{disabled:o,device:i,message:c,children:(0,H.jsxs)(MC,{fullWidth:!0,isDisabled:o,isRequired:!0,type:`number`,value:String(e.host_mid),onChange:e=>a({host_mid:Number(e)||0}),children:[(0,H.jsx)(IS,{children:`B站 UID`}),(0,H.jsx)(PS,{placeholder:`UP主的 UID`}),(0,H.jsx)(aS,{children:`B站用户的唯一标识,必填`})]})}),(0,H.jsx)(aV,{disabled:o,device:i,message:c,children:(0,H.jsxs)(MC,{fullWidth:!0,isDisabled:o,value:e.remark,onChange:e=>a({remark:e}),children:[(0,H.jsx)(IS,{children:`备注名称`}),(0,H.jsx)(PS,{placeholder:`可选,用于识别该推送项`}),(0,H.jsx)(aS,{children:`方便识别的名称,如:UP主昵称`})]})})]}),(0,H.jsx)(AV,{disabled:o,device:i,itemLabel:s,value:e.group_id,onChange:e=>a({group_id:e})}),(0,H.jsx)(jV,{disabled:o,device:i,itemLabel:s,options:cV,value:e.pushTypes||[],onChange:e=>a({pushTypes:e})}),(0,H.jsx)(MV,{disabled:o,device:i,itemLabel:s,value:e.filterMode||`blacklist`,onChange:e=>a({filterMode:e})}),(0,H.jsx)(NV,{disabled:o,device:i,itemLabel:s,keywords:e.Keywords||[],tags:e.Tags||[],onKeywordsChange:e=>a({Keywords:e}),onTagsChange:e=>a({Tags:e})}),(0,H.jsx)(PV,{onDelete:()=>r(n.filter((e,n)=>n!==t))})]})})})]},t)},IV=({item:e,index:t,list:n,onChange:r,device:i})=>{let a=i=>{let a=[...n];a[t]={...e,...i},r(a)},o=!e.switch,s=e.remark||e.short_id||e.sec_uid||`未命名`,c=`开启【${s}】的推送开关后才能编辑此字段`;return(0,H.jsxs)(qc.Item,{id:`douyin-${t}`,children:[(0,H.jsx)(qc.Heading,{children:(0,H.jsxs)(qc.Trigger,{children:[(0,H.jsxs)(`div`,{className:`flex flex-1 items-center gap-3`,children:[(0,H.jsx)(`div`,{onClick:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation(),children:(0,H.jsx)(DC,{"aria-label":`推送开关`,isSelected:e.switch,onChange:e=>a({switch:e}),children:(0,H.jsx)(DC.Content,{children:(0,H.jsx)(DC.Control,{children:(0,H.jsx)(DC.Thumb,{})})})})}),(0,H.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,H.jsx)(`span`,{className:`font-medium`,children:e.remark||e.short_id||e.sec_uid||`推送项 ${t+1}`}),(0,H.jsxs)(aS,{className:`text-xs`,children:[e.short_id&&`抖音号: ${e.short_id}`,e.sec_uid&&!e.short_id&&`sec_uid: ${e.sec_uid.slice(0,20)}...`]})]})]}),(0,H.jsx)(qc.Indicator,{children:(0,H.jsx)(hP,{className:`size-5`})})]})}),(0,H.jsx)(qc.Panel,{children:(0,H.jsx)(qc.Body,{children:(0,H.jsxs)(`div`,{className:`space-y-4`,children:[(0,H.jsxs)(`div`,{className:oV(i),children:[(0,H.jsx)(aV,{disabled:o,device:i,message:c,children:(0,H.jsxs)(MC,{fullWidth:!0,isDisabled:o,isRequired:!0,value:e.short_id,onChange:e=>a({short_id:e}),children:[(0,H.jsx)(IS,{children:`抖音号`}),(0,H.jsx)(PS,{placeholder:`用户的抖音号`,variant:`secondary`}),(0,H.jsx)(aS,{children:`用户的抖音号(short_id),必填`})]})}),(0,H.jsx)(aV,{disabled:o,device:i,message:c,children:(0,H.jsxs)(MC,{fullWidth:!0,isDisabled:o,value:e.sec_uid,onChange:e=>a({sec_uid:e}),children:[(0,H.jsx)(IS,{children:`sec_uid`}),(0,H.jsx)(PS,{placeholder:`选填,会根据抖音号自动获取`,variant:`secondary`}),(0,H.jsx)(aS,{children:`用户的 sec_uid,可从分享链接获取。选填,推送时会自动获取`})]})})]}),(0,H.jsx)(aV,{disabled:o,device:i,message:c,children:(0,H.jsxs)(MC,{fullWidth:!0,isDisabled:o,value:e.remark,onChange:e=>a({remark:e}),children:[(0,H.jsx)(IS,{children:`备注名称`}),(0,H.jsx)(PS,{placeholder:`可选,用于识别该推送项`,variant:`secondary`}),(0,H.jsx)(aS,{children:`方便识别的名称,如:博主昵称`})]})}),(0,H.jsx)(AV,{disabled:o,device:i,itemLabel:s,value:e.group_id,onChange:e=>a({group_id:e})}),(0,H.jsx)(jV,{disabled:o,device:i,itemLabel:s,options:sV,value:e.pushTypes||[],onChange:e=>a({pushTypes:e})}),(0,H.jsx)(MV,{disabled:o,device:i,itemLabel:s,value:e.filterMode||`blacklist`,onChange:e=>a({filterMode:e})}),(0,H.jsx)(NV,{disabled:o,device:i,itemLabel:s,keywords:e.Keywords||[],tags:e.Tags||[],onKeywordsChange:e=>a({Keywords:e}),onTagsChange:e=>a({Tags:e})}),(0,H.jsx)(PV,{onDelete:()=>r(n.filter((e,n)=>n!==t))})]})})})]},t)},LV=({device:e,platformLabel:t,items:n,onApply:r})=>{let[i,a]=(0,v.useState)(!1),o=n.reduce((e,t)=>e+t.values.filter(e=>_V(e)).length,0),s=new Set;n.forEach(e=>e.values.forEach(e=>{let t=_V(e);t&&s.add(t.botId)}));let c=o===0?`「${t}」还没有配置推送目标`:`共 ${o} 条推送目标,涉及 ${s.size} 个 Bot`;return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between gap-4 rounded-lg border border-default-200 bg-default-50/50 px-4 py-3`,children:[(0,H.jsxs)(`div`,{className:`flex min-w-0 flex-col`,children:[(0,H.jsx)(IS,{children:`推送 Bot 快捷切换`}),(0,H.jsx)(aS,{className:`mt-1`,children:c})]}),(0,H.jsxs)(ov,{isDisabled:o===0,size:e===`mobile`?`sm`:`md`,variant:`secondary`,onPress:()=>a(!0),children:[(0,H.jsx)(dP,{className:`size-4`}),(0,H.jsx)(`span`,{children:`切换 Bot`})]})]}),(0,H.jsx)(SV,{device:e,isOpen:i,items:n,platformLabel:t,onApply:r,onOpenChange:a})]})},RV=()=>({switch:!0,sec_uid:``,short_id:``,group_id:[],remark:``,pushTypes:[`post`],filterMode:`blacklist`,Keywords:[],Tags:[]}),zV=()=>({switch:!0,host_mid:0,group_id:[],remark:``,pushTypes:[`video`],filterMode:`blacklist`,Keywords:[],Tags:[]}),BV=({platform:e})=>(0,H.jsx)(`div`,{className:`rounded-lg border-2 border-dashed border-gray-300 p-8 text-center`,children:(0,H.jsxs)(`p`,{className:`text-muted`,children:[`暂无`,e===`douyin`?`抖音`:`B站`,`推送项,点击上方按钮添加`]})});function VV({douyinList:e,bilibiliList:t,onDouyinChange:n,onBilibiliChange:r,device:i}){let[a,o]=(0,v.useState)(`douyin`);return(0,H.jsx)(`div`,{className:`space-y-4`,children:(0,H.jsxs)(jC,{selectedKey:a,onSelectionChange:e=>o(e),children:[(0,H.jsx)(jC.ListContainer,{children:(0,H.jsxs)(jC.List,{children:[(0,H.jsxs)(jC.Tab,{id:`douyin`,children:[(0,H.jsx)(`span`,{children:`抖音推送`}),(0,H.jsx)(jC.Indicator,{})]}),(0,H.jsxs)(jC.Tab,{id:`bilibili`,children:[(0,H.jsx)(`span`,{children:`B站推送`}),(0,H.jsx)(jC.Indicator,{})]})]})}),(0,H.jsx)(jC.Panel,{id:`douyin`,children:(0,H.jsxs)(`div`,{className:`space-y-4 pt-4`,children:[(0,H.jsx)(LV,{device:i,platformLabel:`抖音`,items:e.map((e,t)=>({label:e.remark||e.short_id||e.sec_uid||`推送项 ${t+1}`,description:e.short_id?`抖音号: ${e.short_id}`:e.sec_uid?`sec_uid: ${e.sec_uid.slice(0,20)}...`:``,values:e.group_id})),onApply:t=>n(e.map((e,n)=>({...e,group_id:t[n]??e.group_id})))}),(0,H.jsxs)(ov,{className:`w-full`,variant:`primary`,size:`sm`,onPress:()=>n([...e,RV()]),children:[(0,H.jsx)(NP,{className:`size-4`}),(0,H.jsx)(`span`,{children:`添加抖音推送项`})]}),e.length>0?(0,H.jsx)(qc,{variant:`surface`,"aria-label":`抖音推送列表`,children:e.map((t,r)=>(0,H.jsx)(IV,{device:i,index:r,item:t,list:e,onChange:n},r))}):(0,H.jsx)(BV,{platform:`douyin`})]})}),(0,H.jsx)(jC.Panel,{id:`bilibili`,children:(0,H.jsxs)(`div`,{className:`space-y-4 pt-4`,children:[(0,H.jsx)(LV,{device:i,platformLabel:`B站`,items:t.map((e,t)=>({label:e.remark||`UID: ${e.host_mid}`||`推送项 ${t+1}`,description:`B站 UID: ${e.host_mid}`,values:e.group_id})),onApply:e=>r(t.map((t,n)=>({...t,group_id:e[n]??t.group_id})))}),(0,H.jsxs)(ov,{className:`w-full`,variant:`primary`,onPress:()=>r([...t,zV()]),children:[(0,H.jsx)(NP,{className:`size-4`}),(0,H.jsx)(`span`,{children:`添加B站推送项`})]}),t.length>0?(0,H.jsx)(qc,{variant:`surface`,"aria-label":`B站推送列表`,children:t.map((e,n)=>(0,H.jsx)(FV,{device:i,index:n,item:e,list:t,onChange:r},n))}):(0,H.jsx)(BV,{platform:`bilibili`})]})})]})})}var HV=({config:e,device:t,renderers:n,updateConfigValue:r})=>{let{renderPageHeader:i}=n;return(0,H.jsxs)(H.Fragment,{children:[i(`推送列表`,`管理「抖音」与「哔哩哔哩」的推送订阅。`),(0,H.jsx)(VV,{douyinList:e.pushlist?.douyin||[],bilibiliList:e.pushlist?.bilibili||[],onDouyinChange:e=>{r([`pushlist`,`douyin`],e)},onBilibiliChange:e=>{r([`pushlist`,`bilibili`],e)},device:t})]})},UV=({config:e,renderers:t,classes:n})=>{let{renderCheckboxGroup:r,renderPageHeader:i,renderSelectField:a,renderSubSection:o,renderSwitch:s,renderTextField:c}=t,l=Q(e,[`xiaohongshu`,`switch`],!1),u=Q(e,[`xiaohongshu`,`sendContent`],[]),d=Q(e,[`xiaohongshu`,`videoQuality`],`adapt`);return(0,H.jsxs)(H.Fragment,{children:[i(`小红书`,`小红书解析基础设置。`),(0,H.jsxs)(`div`,{className:n.topLevelFields,"data-config-section":!0,children:[s([`xiaohongshu`,`switch`],`解析开关`,`小红书解析开关,此开关为单独开关。`),r([`xiaohongshu`,`sendContent`],`解析时发送的内容`,`若什么都不选,可能不会返回任何解析结果。`,IB,!l),c([`xiaohongshu`,`numcomment`],`评论解析数量`,`小红书评论解析数量。`,{type:`number`,fallback:5,min:1,disabled:!l||!SB(u,`comment`)}),c([`xiaohongshu`,`subCommentLimit`],`子评论请求数量`,`大于 2 时需要配置小红书 ck(平台不允许游客获取二级评论)。`,{type:`number`,fallback:2,min:2,max:20,disabled:!l||!SB(u,`comment`)})]}),o(`渲染与画质设置`,(0,H.jsxs)(H.Fragment,{children:[a([`xiaohongshu`,`videoQuality`],`画质偏好`,`解析视频的分辨率偏好。`,RB,e=>e,!l),c([`xiaohongshu`,`maxAutoVideoSize`],`视频体积上限(MB)`,`根据该值自动选择分辨率进行下载。仅在「画质偏好」 为 "自动选择" 时生效。`,{type:`number`,fallback:50,min:1,max:2e4,disabled:!l||d!==`adapt`})]})),o(`权限设置`,(0,H.jsx)(H.Fragment,{children:a([`xiaohongshu`,`loginPerm`],`谁可以触发扫码登录`,`修改后需重启。`,VB)}))]})},WV=e=>{switch(e.activeFile){case`amagi`:return(0,H.jsx)(eV,{...e});case`app`:return(0,H.jsx)(tV,{...e});case`douyin`:return(0,H.jsx)(rV,{...e});case`bilibili`:return(0,H.jsx)(nV,{...e});case`kuaishou`:return(0,H.jsx)(iV,{...e});case`xiaohongshu`:return(0,H.jsx)(UV,{...e});case`pushlist`:return(0,H.jsx)(HV,{...e})}},GV=(e,t)=>{let n=Number(e);return Number.isFinite(n)?t.min!==void 0&&n<t.min?t.error||`${t.label} 不能小于 ${t.min}`:t.max!==void 0&&n>t.max?t.error||`${t.label} 不能大于 ${t.max}`:``:`${t.label} 必须是数字`},KV=(e,t,n)=>{if(n.disabled)return;let r=GV(Q(t,n.path,0),n);r&&(e[vB(n.path)]=r)},qV=e=>typeof e==`string`&&/.+:.+/.test(e),JV=(e,t,n)=>{if(!Array.isArray(n)){e[`pushlist.${t}`]=`${t} 推送列表必须是数组`;return}let r=n.findIndex(e=>{if(!yB(e))return!0;let n=e.group_id,r=t===`douyin`?e.short_id:e.host_mid;return r==null||String(r).trim()===``||!Array.isArray(n)||n.some(e=>!qV(e))});r>=0&&(e[`pushlist.${t}`]=`${t} 推送列表第 ${r+1} 项缺少必填 UID/抖音号,或 group_id 未使用「群号:机器人账号」格式`)},YV=e=>{if(!e)return{};let t={},n=Q(e,[`app`,`livePhotoMode`],`video_and_livephoto`),r=Q(e,[`amagi`,`APIServerMount`],!1),i=Q(e,[`app`,`videoSendMode`],`file`),a=Q(e,[`app`,`usegroupfile`],!1),o=Q(e,[`app`,`usefilelimit`],!1),s=Q(e,[`app`,`compress`],!1),c=Q(e,[`app`,`downloadThrottle`],!1),l=Q(e,[`app`,`downloadAutoReduce`],!1),u=Q(e,[`amagi`,`proxy`,`switch`],!1),d=Q(e,[`douyin`,`switch`],!1),f=Q(e,[`douyin`,`sendContent`],[]),p=Q(e,[`douyin`,`burnDanmaku`],!1),m=Q(e,[`douyin`,`videoQuality`],`adapt`),h=Q(e,[`douyin`,`push`,`switch`],!1),g=Q(e,[`douyin`,`push`,`pushVideoQuality`],`adapt`),_=Q(e,[`bilibili`,`switch`],!1),v=Q(e,[`bilibili`,`sendContent`],[]),y=Q(e,[`bilibili`,`burnDanmaku`],!1),b=Q(e,[`bilibili`,`videoQuality`],0),x=Q(e,[`bilibili`,`push`,`switch`],!1),S=Q(e,[`bilibili`,`push`,`parsedynamic`],!1),C=Q(e,[`bilibili`,`push`,`pushVideoQuality`],0),w=Q(e,[`kuaishou`,`switch`],!1),T=Q(e,[`kuaishou`,`comment`],!1),E=Q(e,[`xiaohongshu`,`switch`],!1),D=Q(e,[`xiaohongshu`,`sendContent`],[]),O=Q(e,[`xiaohongshu`,`videoQuality`],`adapt`);return[{path:[`app`,`renderScale`],label:`渲染精度`,min:50,max:200},{path:[`app`,`ambientCover`,`coverOpacity`],label:`封面氛围强度`,min:0,max:1},{path:[`app`,`ambientCover`,`overlayEdgeOpacity`],label:`氛围压色(顶部/底部)`,min:0,max:1},{path:[`app`,`ambientCover`,`overlayMiddleOpacity`],label:`氛围压色(中间带)`,min:0,max:1},{path:[`app`,`RenderWaitTime`],label:`渲染图片的等待时间`,min:0},{path:[`app`,`multiPageHeight`],label:`分页渲染时,每页的高度`,min:1e3,max:2e4,disabled:!Q(e,[`app`,`multiPageRender`],!0),error:`请输入一个范围在 1000 到 20000 之间的数字`},{path:[`amagi`,`APIServerPort`],label:`API服务端口`,min:1024,max:65535,disabled:r,error:`请输入一个范围在 1024 到 65535 之间的数字`},{path:[`app`,`groupfilevalue`],label:`群文件上传阈值`,min:1,disabled:!a||i===`base64`},{path:[`app`,`filelimit`],label:`视频拦截阈值`,min:1,disabled:!o},{path:[`app`,`compresstrigger`],label:`压缩触发阈值`,min:1,disabled:!s},{path:[`app`,`compressvalue`],label:`压缩后的值`,min:1,disabled:!s},{path:[`app`,`downloadMaxSpeed`],label:`最大下载速度`,min:1,max:1e3,disabled:!c,error:`请输入一个范围在 1 到 1000 之间的数字`},{path:[`app`,`downloadMinSpeed`],label:`最低下载速度`,min:.1,max:100,disabled:!c||!l,error:`请输入一个范围在 0.1 到 100 之间的数字`},{path:[`amagi`,`timeout`],label:`请求超时时间`,min:1e3,max:3e5,error:`请输入一个范围在 1000 到 300000 之间的数字`},{path:[`amagi`,`proxy`,`port`],label:`代理端口`,min:1,max:65535,disabled:!u,error:`请输入一个范围在 1 到 65535 之间的数字`},{path:[`douyin`,`numcomment`],label:`评论解析数量`,min:1,disabled:!d||!SB(f,`comment`)},{path:[`douyin`,`subCommentLimit`],label:`次级评论解析数量`,min:1,max:20,disabled:!d||!SB(f,`comment`)},{path:[`douyin`,`maxAutoVideoSize`],label:`视频体积上限(MB)`,min:1,max:2e4,disabled:!d||m!==`adapt`},{path:[`douyin`,`danmakuOpacity`],label:`弹幕透明度`,min:0,max:100,disabled:!d||!p},{path:[`douyin`,`push`,`pushMaxAutoVideoSize`],label:`推送视频体积上限(MB)`,min:1,max:2e4,disabled:!h||g!==`adapt`},{path:[`bilibili`,`numcomment`],label:`评论解析数量`,min:1,disabled:!_||!SB(v,`comment`)},{path:[`bilibili`,`maxAutoVideoSize`],label:`视频体积上限(MB)`,min:1,max:2e4,disabled:!_||Number(b)!==0},{path:[`bilibili`,`danmakuOpacity`],label:`弹幕透明度`,min:0,max:100,disabled:!_||!y},{path:[`bilibili`,`push`,`pushMaxAutoVideoSize`],label:`视频动态的视频体积上限(MB)`,min:1,max:2e4,disabled:!x||!S||Number(C)!==0},{path:[`kuaishou`,`numcomment`],label:`评论解析数量`,min:1,disabled:!w||!T},{path:[`xiaohongshu`,`numcomment`],label:`评论解析数量`,min:1,disabled:!E||!SB(D,`comment`)},{path:[`xiaohongshu`,`subCommentLimit`],label:`子评论请求数量`,min:2,max:20,disabled:!E||!SB(D,`comment`)},{path:[`xiaohongshu`,`maxAutoVideoSize`],label:`视频体积上限(MB)`,min:1,max:2e4,disabled:!E||O!==`adapt`}].forEach(n=>KV(t,e,n)),n===`video_only`&&delete t[`app.livePhotoSystem`],JV(t,`douyin`,e.pushlist?.douyin||[]),JV(t,`bilibili`,e.pushlist?.bilibili||[]),t},XV=({device:e=`desktop`})=>{let t=(0,v.useRef)(null),[n,r]=EO(),i=dw(),a=n.get(`file`),[o,s]=TT({config:null,savedConfig:null,activeFile:a&&qB.some(e=>e.key===a)?a:`amagi`}),{activeFile:c,config:l,savedConfig:u}=o,d=(0,v.useMemo)(()=>$B(e),[e]),f=e===`mobile`?`sm`:`md`,{loading:p,run:m}=ST(lz,{onSuccess:e=>{s({config:structuredClone(e),savedConfig:structuredClone(e)})},onError:e=>{WC.danger(`加载配置失败`,{description:e.message})}}),{loading:h,runAsync:g}=ST(uz,{manual:!0}),_=(0,v.useMemo)(()=>{if(!l||!u)return!1;let e=wB(l),t=wB(u);return!(0,VO.default)(e,t)},[l,u]),y=(0,v.useMemo)(()=>YV(l),[l]),b=(0,v.useMemo)(()=>Object.values(y).some(Boolean),[y]),x=(0,v.useMemo)(()=>_&&!b&&!p,[_,b,p]),S=vw((e,t)=>{s(n=>n.config?{config:bB(n.config,e,t)}:null)}),C=vw(()=>{if(!l||b)return;let e=l,t=g(e).then(()=>{s({savedConfig:e})});WC.promise(t,{loading:`正在保存配置...`,success:`配置已保存`,error:e=>e instanceof Error?e.message:`保存配置失败`})}),w=vw(()=>{m()}),T=vw(e=>{r({file:e})}),E=vw(e=>{e.preventDefault(),C()});(0,v.useEffect)(()=>{let e=n.get(`file`);e&&qB.some(t=>t.key===e)&&e!==c&&s({activeFile:e})},[n,c,s]),(0,v.useEffect)(()=>{let e=t.current?.querySelector(`[data-config-tabs-scroll="true"]`);if(!e)return;let n=t=>{let n=Math.abs(t.deltaX)>Math.abs(t.deltaY)?t.deltaX:t.deltaY;n&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),!(e.scrollWidth<=e.clientWidth)&&(e.scrollLeft+=n))};return e.addEventListener(`wheel`,n,{passive:!1}),()=>{e.removeEventListener(`wheel`,n)}},[l]);let D=vw(()=>{t.current&&YN.fromTo(t.current.querySelectorAll(`[data-config-section]`),hz,{...gz,duration:fz(.35),stagger:pz(.03)})});(0,v.useEffect)(()=>{l&&t.current?.dataset.animated!==`true`&&(t.current&&(t.current.dataset.animated=`true`),D())},[l,D]),yw(()=>{D()},[c]);let O=(0,v.useMemo)(()=>l?XB({config:l,device:e,classes:d,validationErrors:y,updateConfigValue:S}):{},[l,e,d,y,S]);if(p||!l)return(0,H.jsxs)(`div`,{className:`${d.root} ${d.loading}`,children:[(0,H.jsx)(vC,{size:`sm`,"aria-label":`正在读取配置`}),(0,H.jsx)(`span`,{children:`正在读取配置`})]});let k=(0,H.jsx)(`div`,{className:d.floatingActions,children:(0,H.jsxs)(`div`,{className:d.actionControls,children:[(0,H.jsxs)(uw,{delay:0,children:[(0,H.jsx)(uw.Trigger,{"aria-label":`重新读取配置`,children:(0,H.jsx)(ov,{isIconOnly:!0,size:f,variant:`secondary`,isDisabled:p||h,onPress:w,children:(0,H.jsx)(FP,{size:16,"aria-hidden":`true`})})}),(0,H.jsxs)(uw.Content,{showArrow:!0,placement:`bottom`,children:[(0,H.jsx)(uw.Arrow,{}),`重新读取`]})]}),(0,H.jsxs)(uw,{delay:0,children:[(0,H.jsx)(uw.Trigger,{"aria-label":`查看配置变更`,children:(0,H.jsx)(ov,{isIconOnly:!0,size:f,variant:`secondary`,isDisabled:!_,onPress:i.open,children:(0,H.jsx)(CP,{size:16,"aria-hidden":`true`})})}),(0,H.jsxs)(uw.Content,{showArrow:!0,placement:`bottom`,children:[(0,H.jsx)(uw.Arrow,{}),`查看变更`]})]}),(0,H.jsxs)(ov,{size:f,isDisabled:!x,isPending:h,onPress:C,variant:`primary`,children:[(0,H.jsx)(LP,{size:16,"aria-hidden":`true`}),(0,H.jsx)(`span`,{children:`保存`})]})]})});return(0,H.jsxs)(`div`,{ref:t,className:d.root,children:[(0,H.jsx)(AB,{device:e,original:u,current:l,isOpen:i.isOpen,onOpenChange:i.setOpen}),(0,H.jsxs)(AS,{className:d.form,onSubmit:E,children:[(0,H.jsx)(jC,{className:`w-full min-w-0 max-w-full`,selectedKey:c,onSelectionChange:T,children:(0,H.jsx)(jC.ListContainer,{className:d.tabsListContainer,"data-config-tabs-scroll":`true`,"data-scrollbar":`none`,children:(0,H.jsx)(jC.List,{"aria-label":`配置文件选择`,className:d.tabsList,children:qB.map((e,t)=>(0,H.jsxs)(jC.Tab,{id:e.key,children:[t>0?(0,H.jsx)(jC.Separator,{}):null,(0,H.jsx)(`span`,{className:`whitespace-nowrap`,children:e.label}),(0,H.jsx)(jC.Indicator,{})]},e.key))})})}),(0,H.jsxs)(`div`,{className:`relative min-w-0 max-w-full`,children:[k,(0,H.jsx)(WV,{activeFile:c,classes:d,config:l,device:e,renderers:O,updateConfigValue:S},c)]})]})]})},ZV=({onLogin:e})=>{let[t,n]=TT({authKey:``,loading:!1,error:``}),[r,{toggle:i}]=wT(!1),a=r?`隐藏密钥`:`显示密钥`,o=vw(async r=>{r.preventDefault();let i=t.authKey.trim();if(!i){n({error:`请输入 Karin HTTP 鉴权密钥`});return}try{n({loading:!0,error:``}),await oz(i),e()}catch(e){n({error:e instanceof Error?e.message:`登录失败`})}finally{n({loading:!1})}});return(0,H.jsx)(yC,{className:`flex min-h-screen items-center justify-center px-4 py-8`,children:(0,H.jsxs)(lv,{className:`w-full max-w-105`,children:[(0,H.jsxs)(lv.Header,{className:`gap-4 p-6`,children:[(0,H.jsx)(DP,{className:`size-8 shrink-0`,"aria-hidden":`true`}),(0,H.jsxs)(`div`,{className:`min-w-0`,children:[(0,H.jsx)(lv.Title,{children:`Karin 鉴权`}),(0,H.jsx)(lv.Description,{children:`使用 Karin HTTP 鉴权密钥登录后管理 KKK 配置。`})]})]}),(0,H.jsx)(lv.Content,{className:`p-6`,children:(0,H.jsxs)(AS,{className:`flex flex-col gap-6`,onSubmit:o,children:[(0,H.jsxs)(MC,{fullWidth:!0,isInvalid:!!t.error,value:t.authKey,onChange:e=>{n({authKey:e,error:t.error?``:t.error})},children:[(0,H.jsx)(IS,{children:`HTTP 鉴权密钥`}),(0,H.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,H.jsx)(PS,{autoComplete:`current-password`,className:`min-w-0 flex-1`,placeholder:`请输入 Karin 的 HTTP_AUTH_KEY`,type:r?`text`:`password`}),(0,H.jsx)(ov,{isIconOnly:!0,"aria-label":a,type:`button`,variant:`tertiary`,onPress:i,children:r?(0,H.jsx)(xP,{className:`size-4`,"aria-hidden":`true`}):(0,H.jsx)(yP,{className:`size-4`,"aria-hidden":`true`})})]}),(0,H.jsx)(aS,{children:t.error||`生产环境会复用 Karin 主 Web 已保存的登录凭据。`})]}),(0,H.jsx)(ov,{fullWidth:!0,isPending:t.loading,type:`submit`,children:({isPending:e})=>(0,H.jsxs)(H.Fragment,{children:[e?(0,H.jsx)(vC,{color:`current`,size:`sm`,"aria-label":`登录中`}):(0,H.jsx)(kP,{className:`size-4`,"aria-hidden":`true`}),(0,H.jsx)(`span`,{children:`登录`})]})})]})})]})})},QV=`theme`,$V=`kkk-theme-changed`,eH=`karin-theme-change`,tH={light:`light`,dark:`dark`,system:`system`,inverse:`inverse`},nH=e=>e===tH.system||e===tH.inverse,rH=e=>e===tH.light||e===tH.dark,iH=e=>!e||typeof e!=`object`?!1:e.type===eH,aH=()=>{let e=localStorage.getItem(QV);if(nH(e))return e;try{let t=JSON.parse(e??``);if(nH(t))return t}catch{}return localStorage.setItem(QV,tH.system),tH.system},oH=()=>window.matchMedia(`(prefers-color-scheme: dark)`).matches?tH.dark:tH.light,sH=()=>window.matchMedia(`(prefers-color-scheme: dark)`).matches?tH.light:tH.dark,cH=e=>e===tH.system?oH():sH(),lH=e=>uH(cH(e)),uH=e=>(document.documentElement.classList.remove(tH.light,tH.dark),document.documentElement.classList.add(e),document.documentElement.dataset.theme=e,e),dH=()=>{let[e,t]=(0,v.useState)(()=>aH()),[n,r]=(0,v.useState)(()=>cH(e)),i=(0,v.useRef)(!1),a=(0,v.useCallback)(e=>{localStorage.setItem(QV,e),t(e),r(lH(e)),window.dispatchEvent(new CustomEvent($V,{detail:e}))},[]),o=(0,v.useCallback)(()=>{a(tH.system)},[a]),s=(0,v.useCallback)(()=>{a(tH.inverse)},[a]),c=(0,v.useCallback)(()=>{a(e===tH.system?tH.inverse:tH.system)},[a,e]);return(0,v.useEffect)(()=>{i.current?i.current=!1:r(lH(e));let n=window.matchMedia(`(prefers-color-scheme: dark)`),a=()=>{r(lH(e))},o=e=>{if(e.key!==QV||window.self!==window.top)return;let n=aH();t(n),r(lH(n))},s=e=>{let n=e.detail;nH(n)&&(t(n),r(lH(n)))},c=e=>{if(!iH(e.data))return;let n=e.data.theme,a=nH(n??null)?n:aH(),o=rH(e.data.appliedTheme)?e.data.appliedTheme:cH(a);i.current=!0,localStorage.setItem(QV,a),t(a),r(uH(o))};return n.addEventListener(`change`,a),window.addEventListener(`storage`,o),window.addEventListener($V,s),window.addEventListener(`message`,c),()=>{n.removeEventListener(`change`,a),window.removeEventListener(`storage`,o),window.removeEventListener($V,s),window.removeEventListener(`message`,c)}},[e]),{theme:e,appliedTheme:n,isDark:(0,v.useMemo)(()=>n===tH.dark,[n]),isLight:(0,v.useMemo)(()=>n===tH.light,[n]),isSystem:e===tH.system,isInverse:e===tH.inverse,setSystemTheme:o,setInverseTheme:s,toggleTheme:c}},fH=()=>document.documentElement.clientWidth||window.innerWidth,pH=(e=fH())=>e<=768?`mobile`:`desktop`,mH=()=>{let e=navigator.userAgent.toLowerCase();return[`android`,`webos`,`iphone`,`ipad`,`ipod`,`blackberry`,`windows phone`,`mobile`].some(t=>e.includes(t))},hH=()=>{let e=pH();return mH()||e===`mobile`?`mobile`:`desktop`},gH=.12,_H=33,vH=1,yH={scrollTo:()=>{},destroy:()=>{}},bH=(e,t)=>Math.min(Math.max(e,0),Math.max(t,0)),xH=()=>window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,SH=(e,t,n)=>{let r=e.scrollTop,i=r,a=r,o=!1,s=!1,c=()=>e.scrollHeight-e.clientHeight;function l(){o&&(o=!1,YN.ticker.remove(u))}function u(){let t=s?gH:1-.88**YN.ticker.deltaRatio(60);if(s=!1,i=bH(i,c()),r+=(i-r)*t,e.scrollTop!==r){e.scrollTop=r;let t=e.scrollTop;a=t,Math.abs(t-r)>vH&&(r=t,i=t)}Math.abs(i-r)<vH&&(r=i,l())}function d(){o||(o=!0,s=!0,YN.ticker.add(u))}let f=()=>{Math.abs(e.scrollTop-a)<vH||(r=e.scrollTop,i=r)};function p(t){let n=t.deltaY>0,r=t.target;for(;r&&r!==e;){if(r instanceof HTMLElement){let e=window.getComputedStyle(r).overflowY;if((e===`auto`||e===`scroll`)&&r.scrollHeight>r.clientHeight&&(n?r.scrollTop+r.clientHeight<r.scrollHeight-1:r.scrollTop>1))return!0}r=r.parentElement}return!1}let m=t=>{let n=t;if(n.ctrlKey||Math.abs(n.deltaX)>Math.abs(n.deltaY)||xH()||p(n))return;let r=n.deltaY;n.deltaMode===WheelEvent.DOM_DELTA_LINE?r*=_H:n.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(r*=e.clientHeight),r&&(n.preventDefault(),i=bH(i+r,c()),d())};return n.addEventListener(`scroll`,f,{passive:!0}),t.addEventListener(`wheel`,m,{passive:!1}),{scrollTo:t=>{if(r=e.scrollTop,i=bH(t,c()),xH()){r=i,a=i,e.scrollTop=i;return}d()},destroy:()=>{l(),n.removeEventListener(`scroll`,f),t.removeEventListener(`wheel`,m)}}},CH=e=>{let t=e.current;return t?SH(t,t,t):yH},wH=e=>{let t=e.current,n=document.scrollingElement;return!t||!n?yH:SH(n,t,window)},TH=()=>jT(()=>import(`./DesktopLayout-BJTY9p_l.js`),__vite__mapDeps([2,1,3])),EH=()=>jT(()=>import(`./MobileLayout-BKJi8d_L.js`),__vite__mapDeps([4,3])),DH={config:`/kkk/assets/config`,about:`/kkk/assets/about`},OH={"/kkk/assets/config":`config`,"/kkk/assets/about":`about`},kH=({device:e})=>{let t=(0,v.useRef)(null);return(0,v.useEffect)(()=>CH(t).destroy,[]),(0,H.jsxs)(yC,{className:`h-screen overflow-hidden bg-background`,children:[(0,H.jsx)(aw.Provider,{placement:`top`}),(0,H.jsx)(tC,{ref:t,hideScrollBar:!0,className:`h-full px-3 py-3 sm:px-5 sm:py-4 ${e===`mobile`?`data-[top-scroll=true]:mask-none data-[top-scroll=true]:[-webkit-mask-image:none] data-[top-bottom-scroll=true]:mask-[linear-gradient(180deg,black_calc(100%-var(--scroll-shadow-size)),transparent)] data-[top-bottom-scroll=true]:[-webkit-mask-image:linear-gradient(180deg,black_calc(100%-var(--scroll-shadow-size)),transparent)]`:``}`,size:56,children:(0,H.jsx)(XV,{device:e})})]})},AH=({LayoutComponent:e})=>{let t=iD(),n=sD(),r=OH[t.pathname]||`config`,i=vw(e=>{n(DH[e])});return e?(0,H.jsxs)(`div`,{children:[(0,H.jsx)(aw.Provider,{placement:`top`}),(0,H.jsx)(e,{activeMenu:r,onMenuChange:i})]}):(0,H.jsxs)(yC,{className:`flex min-h-screen items-center justify-center gap-4`,children:[(0,H.jsx)(vC,{size:`sm`,"aria-label":`正在加载布局`}),(0,H.jsx)(aS,{children:`正在加载`})]})},jH=()=>{dH();let[e,t]=TT({authenticated:LO(),device:hH(),LayoutComponent:null}),{authenticated:n,device:r,LayoutComponent:i}=e;(0,v.useEffect)(()=>{let e=()=>{t({authenticated:LO()})};return window.addEventListener(NO,e),window.addEventListener(`storage`,e),()=>{window.removeEventListener(NO,e),window.removeEventListener(`storage`,e)}},[t]);let a=vw(()=>{let e=hH();t(t=>t.device===e?null:{device:e,LayoutComponent:null})});(0,v.useEffect)(()=>{let e=0,t=()=>{window.cancelAnimationFrame(e),e=window.requestAnimationFrame(a)};return window.addEventListener(`resize`,t),window.addEventListener(`orientationchange`,t),()=>{window.cancelAnimationFrame(e),window.removeEventListener(`resize`,t),window.removeEventListener(`orientationchange`,t)}},[a]),(0,v.useEffect)(()=>{if(!n){t({LayoutComponent:null});return}let e=!1;return(async()=>{if(r===`mobile`){let n=await EH();e||t({LayoutComponent:n.default})}else{let n=await TH();e||t({LayoutComponent:n.default})}})(),()=>{e=!0}},[n,r,t]);let o=vw(()=>{t({authenticated:!0})});return n?(0,H.jsxs)(ND,{children:[(0,H.jsx)(jD,{path:`/kkk/assets/karin-config`,element:(0,H.jsx)(kH,{device:r})}),(0,H.jsx)(jD,{path:`/kkk/assets/config`,element:(0,H.jsx)(AH,{LayoutComponent:i})}),(0,H.jsx)(jD,{path:`/kkk/assets/about`,element:(0,H.jsx)(AH,{LayoutComponent:i})}),(0,H.jsx)(jD,{path:`/kkk/assets`,element:(0,H.jsx)(AD,{to:`/kkk/assets/config`,replace:!0})}),(0,H.jsx)(jD,{path:`/kkk`,element:(0,H.jsx)(AD,{to:`/kkk/assets/config`,replace:!0})}),(0,H.jsx)(jD,{path:`/kkk/login`,element:(0,H.jsx)(AD,{to:`/kkk/assets/config`,replace:!0})}),(0,H.jsx)(jD,{path:`*`,element:(0,H.jsx)(AD,{to:`/kkk/assets/config`,replace:!0})})]}):(0,H.jsxs)(ND,{children:[(0,H.jsx)(jD,{path:`/kkk/login`,element:(0,H.jsx)(ZV,{onLogin:o})}),(0,H.jsx)(jD,{path:`*`,element:(0,H.jsx)(AD,{to:`/kkk/login`,replace:!0})})]})};(0,y.createRoot)(document.getElementById(`root`)).render((0,H.jsx)(v.StrictMode,{children:(0,H.jsx)(()=>(0,H.jsx)(yO,{children:(0,H.jsx)(jH,{})}),{})}));export{uc as $,Ag as A,V as At,up as B,O as Bt,Bv as C,Qt as Ct,ov as D,lt as Dt,lv as E,Et,ah as F,ke as Ft,$l as G,op as H,d as Ht,ih as I,we as It,Y as J,zc as K,hp as L,L as Lt,ph as M,We as Mt,mh as N,ze as Nt,tv as O,st as Ot,oh as P,z as Pt,fc as Q,mp as R,E as Rt,Uv as S,nn as St,pv as T,Mt as Tt,pd as U,l as Ut,cp as V,h as Vt,ud as W,_c as X,J as Y,dc as Z,US as _,oo as _t,fz as a,vs as at,wS as b,ya as bt,BO as c,Fo as ct,uw as d,mo as dt,ic as et,MC as f,to as ft,ZS as g,K as gt,uC as h,ao as ht,XV as i,Ms as it,xh as j,B as jt,Ng as k,at as kt,wT as l,Mo as lt,yC as m,G as mt,CH as n,Js as nt,lP as o,Ro as ot,jC as p,io as pt,Bc as q,dH as r,Is as rt,YN as s,zo as st,wH as t,rc as tt,vw as u,Do as ut,IS as v,ro as vt,Hv as w,en as wt,aS as x,on as xt,PS as y,_a as yt,pp as z,M as zt};