karin-plugin-kkk 2.36.0 → 2.36.1

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,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DesktopLayout-Cdla4l6u.js","assets/ThemeSwitch-DcAlzu8R.js","assets/MobileLayout-DfXVuyA-.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CronEditor-DLELr4UG.js","assets/separator-D6lAHrvZ.js","assets/DesktopLayout-DMqLKe0d.js","assets/ThemeSwitch-C9X8kWTm.js","assets/MobileLayout-Dq6Ng8rW.js"])))=>i.map(i=>d[i]);
2
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,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,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),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`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.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.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`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(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 ee(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,ee(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),ee(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=ee(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=ee(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ee(M(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 N(e,t,n){if(e==null)return e;var r=[],i=0;return ee(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function te(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var P=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)},F={map:N,forEach:function(e,t,n){N(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return N(e,function(){t++}),t},toArray:function(e){return N(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=F,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},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=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.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 E(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)T.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 E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:te}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,P)}catch(e){P(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.7`})),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`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(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.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 o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.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=c(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=c(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})}}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=c(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=c(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})}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 s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.7`})),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){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n: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}var m=Object.assign,g=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),k=Symbol.for(`react.activity`),A=Symbol.for(`react.memo_cache_sentinel`),j=Symbol.iterator;function M(e){return typeof e!=`object`||!e?null:(e=j&&e[j]||e[`@@iterator`],typeof e==`function`?e:null)}var ee=Symbol.for(`react.client.reference`);function N(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ee?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case k:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?N(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return N(e(t))}catch{}}return null}var te=Array.isArray,P=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},re=[],ie=-1;function ae(e){return{current:e}}function oe(e){0>ie||(e.current=re[ie],re[ie]=null,ie--)}function I(e,t){ie++,re[ie]=e.current,e.current=t}var se=ae(null),L=ae(null),ce=ae(null),le=ae(null);function ue(e,t){switch(I(ce,t),I(L,e),I(se,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Gd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Gd(t),e=Kd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}oe(se),I(se,e)}function de(){oe(se),oe(L),oe(ce)}function fe(e){e.memoizedState!==null&&I(le,e);var t=se.current,n=Kd(t,e.type);t!==n&&(I(L,e),I(se,n))}function pe(e){L.current===e&&(oe(se),oe(L)),le.current===e&&(oe(le),np._currentValue=ne)}var me,he;function ge(e){if(me===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);me=t&&t[1]||``,he=-1<e.stack.indexOf(`
3
3
  at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4
4
  `+me+e+he}var _e=!1;function ve(e,t){if(!e||_e)return``;_e=!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}e.call(n.prototype)}}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(`
@@ -17,21 +17,21 @@ Error generating stack: `+e.message+`
17
17
  * {
18
18
  overscroll-behavior: contain;
19
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=R(e),n=e.relatedTarget;n&&mt(n)?(n.focus({preventScroll:!0}),oc(n,mt(t))):n||(t.parentElement?.closest(`[tabindex]`))?.focus({preventScroll:!0})},c=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(e){let t=Fe(),n=t!=null&&mt(t);c.call(this,{...e,preventScroll:!0}),(!e||!e.preventScroll)&&oc(this,n)};let l=De(ac(document,`touchstart`,r,{passive:!1,capture:!0}),ac(document,`touchmove`,o,{passive:!1,capture:!0}),ac(document,`blur`,s,!0));return()=>{e(),l(),i.remove(),HTMLElement.prototype.focus=c}}function ic(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function ac(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function oc(e,t){t||!Qs?sc(e):Qs.addEventListener(`resize`,()=>sc(e),{once:!0})}function sc(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let e=ut(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;Qs&&(n=Math.min(n,Qs.offsetTop+Qs.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 cc(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}=Zs({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}=vs({...c,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:a&&!l?t.close:null});return tc({isDisabled:a||!t.isOpen}),(0,v.useEffect)(()=>{if(t.isOpen&&r.current)return a?Ko(i?.current??r.current):Go([i?.current??r.current],{shouldUseInert:!0})},[a,t.isOpen,r,i]),{popoverProps:z(u,f),arrowProps:p,underlayProps:d,placement:m,triggerAnchorPoint:h}}var lc={};lc={dismiss:`تجاهل`};var uc={};uc={dismiss:`Отхвърляне`};var dc={};dc={dismiss:`Odstranit`};var fc={};fc={dismiss:`Luk`};var pc={};pc={dismiss:`Schließen`};var mc={};mc={dismiss:`Απόρριψη`};var hc={};hc={dismiss:`Dismiss`};var gc={};gc={dismiss:`Descartar`};var _c={};_c={dismiss:`Lõpeta`};var vc={};vc={dismiss:`Hylkää`};var yc={};yc={dismiss:`Rejeter`};var bc={};bc={dismiss:`התעלם`};var xc={};xc={dismiss:`Odbaci`};var Sc={};Sc={dismiss:`Elutasítás`};var Cc={};Cc={dismiss:`Ignora`};var wc={};wc={dismiss:`閉じる`};var Tc={};Tc={dismiss:`무시`};var Ec={};Ec={dismiss:`Atmesti`};var Dc={};Dc={dismiss:`Nerādīt`};var Oc={};Oc={dismiss:`Lukk`};var kc={};kc={dismiss:`Negeren`};var Ac={};Ac={dismiss:`Zignoruj`};var jc={};jc={dismiss:`Descartar`};var Mc={};Mc={dismiss:`Dispensar`};var Nc={};Nc={dismiss:`Revocare`};var Pc={};Pc={dismiss:`Пропустить`};var Fc={};Fc={dismiss:`Zrušiť`};var Ic={};Ic={dismiss:`Opusti`};var Lc={};Lc={dismiss:`Odbaci`};var Rc={};Rc={dismiss:`Avvisa`};var zc={};zc={dismiss:`Kapat`};var Bc={};Bc={dismiss:`Скасувати`};var Vc={};Vc={dismiss:`取消`};var Hc={};Hc={dismiss:`關閉`};var Uc={};Uc={"ar-AE":lc,"bg-BG":uc,"cs-CZ":dc,"da-DK":fc,"de-DE":pc,"el-GR":mc,"en-US":hc,"es-ES":gc,"et-EE":_c,"fi-FI":vc,"fr-FR":yc,"he-IL":bc,"hr-HR":xc,"hu-HU":Sc,"it-IT":Cc,"ja-JP":wc,"ko-KR":Tc,"lt-LT":Ec,"lv-LV":Dc,"nb-NO":Oc,"nl-NL":kc,"pl-PL":Ac,"pt-BR":jc,"pt-PT":Mc,"ro-RO":Nc,"ru-RU":Pc,"sk-SK":Fc,"sl-SI":Ic,"sr-SP":Lc,"sv-SE":Rc,"tr-TR":zc,"uk-UA":Bc,"zh-CN":Vc,"zh-TW":Hc};var Wc=Symbol.for(`react-aria.i18n.locale`),Gc=Symbol.for(`react-aria.i18n.strings`),Kc=void 0,qc=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=Jc(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(t){if(typeof window>`u`)return null;let n=window[Wc];if(Kc===void 0){let t=window[Gc];if(!t)return null;Kc={};for(let r in t)Kc[r]=new e({[n]:t[r]},n)}let r=Kc?.[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 Jc(e,t,n=`en-US`){if(t[e])return t[e];let r=Yc(e);if(t[r])return t[r];for(let e in t)if(e.startsWith(r+`-`))return t[e];return t[n]}function Yc(e){return Intl.Locale?new Intl.Locale(e).language:e.split(`-`)[0]}var Xc=new Map,Zc=new Map,Qc=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=Xc.get(i);return a||(a=new Intl.PluralRules(this.locale,{type:n}),Xc.set(i,a)),r=t[a.select(e)]||t.other,typeof r==`function`?r():r}number(e){let t=Zc.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),Zc.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return typeof n==`function`?n():n}},$c=new WeakMap;function el(e){let t=$c.get(e);return t||(t=new qc(e),$c.set(e,t)),t}function tl(e,t){return t&&qc.getGlobalDictionaryForPackage(t)||el(e)}function nl(e,t){let{locale:n}=Gi(),r=tl(e,t);return(0,v.useMemo)(()=>new Qc(n,r),[n,r])}var rl={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 il(e={}){let{style:t,isFocusable:n}=e,[r,i]=(0,v.useState)(!1),{focusWithinProps:a}=$a({isDisabled:!n,onFocusWithinChange:e=>i(e)}),o=(0,v.useMemo)(()=>r?t:t?{...rl,...t}:rl,[r]);return{visuallyHiddenProps:{...a,style:o}}}function al(e){let{children:t,elementType:n=`div`,isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:o}=il(e);return v.createElement(n,z(a,o),t)}function ol(e){return e&&e.__esModule?e.default:e}function sl(e){let{onDismiss:t,...n}=e,r=tt(n,nl(ol(Uc),`@react-aria/overlays`).format(`dismiss`)),i=()=>{t&&t()};return v.createElement(al,null,v.createElement(`button`,{...r,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}var cl=v.forwardRef(({children:e,...t},n)=>{let r=(0,v.useRef)(!1),i=(0,v.useContext)(Ra),a=z(i||{},{...t,register(){r.current=!0,i&&i.register()}});return a.ref=nt(n||i?.ref),ct(i,a.ref),(0,v.useEffect)(()=>{r.current||=!0},[]),v.createElement(Ra.Provider,{value:a},e)});function ll({children:e}){let t=(0,v.useMemo)(()=>({register:()=>{}}),[]);return v.createElement(Ra.Provider,{value:t},e)}var ul=(0,v.createContext)({});function dl(){return(0,v.useContext)(ul)??{}}var fl=v.createContext(null);function pl(e){let t=ye(),{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}=dl();if(!e.portalContainer&&s&&(n=s()),!n)return null;let c=e.children;return e.disableFocusManagement||(c=v.createElement(ws,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},c)),c=v.createElement(fl.Provider,{value:o},v.createElement(ll,null,c)),kt.createPortal(c,n)}function ml(){let e=(0,v.useContext)(fl)?.setContain;L(()=>{e?.(!0)},[e])}function hl(e){let[t,n]=po(e.isOpen,e.defaultOpen||!1,e.onOpenChange);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])}}var gl=(0,v.createContext)(null),_l=(0,v.createContext)(null),vl=(0,v.forwardRef)(function(e,t){[e,t]=Ci(e,t,gl);let n=(0,v.useContext)(Ud),r=hl(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,a=jt(t,i.isOpen)||e.isExiting||!1,o=ji(),{direction:s}=Gi();if(o){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&&!a?null:v.createElement(yl,{...e,triggerRef:e.triggerRef,state:i,popoverRef:t,isExiting:a,dir:s})});function yl({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)(_l),c=s&&i.trigger===`SubmenuTrigger`,{popoverProps:l,underlayProps:u,arrowProps:d,placement:f,triggerAnchorPoint:p}=cc({...i,offset:i.offset??8,arrowRef:a,groupRef:c?s:o},e),m=i.popoverRef,h=At(m,!!f)||i.isEntering||!1,g=G({...i,defaultClassName:`react-aria-Popover`,values:{trigger:i.trigger||null,placement:f,isEntering:h,isExiting:t}}),_=!i.isNonModal||i.trigger===`SubmenuTrigger`,[y,b]=(0,v.useState)(!1);L(()=>{m.current&&b(_&&!m.current.querySelector(`[role=dialog]`))},[m,_]),(0,v.useEffect)(()=>{y&&(i.trigger!==`SubmenuTrigger`||ba()!==`pointer`)&&m.current&&!Ie(m.current)&&Ta(m.current)},[y,m,i.trigger]);let x=(0,v.useMemo)(()=>{let e=g.children;if(r)for(let t of r)e=v.createElement(t.Provider,{value:null},e);return e},[g.children,r]),[S,C]=(0,v.useState)(null),w=(0,v.useCallback)(()=>{i.triggerRef.current&&C(i.triggerRef.current.getBoundingClientRect().width+`px`)},[i.triggerRef]);L(w,[w]),st({ref:g.style?.[`--trigger-width`]?void 0:i.triggerRef,onResize:w});let T={...l.style,"--trigger-anchor-point":p?`${p.x}px ${p.y}px`:void 0,...g.style,"--trigger-width":g.style?.[`--trigger-width`]||S},E=v.createElement(K.div,{...z(B(i,{global:!0}),l),...g,role:y?`dialog`:void 0,tabIndex:y?-1:void 0,"aria-label":i[`aria-label`],"aria-labelledby":i[`aria-labelledby`],ref:m,slot:i.slot||void 0,style:T,dir:i.dir,"data-trigger":i.trigger,"data-placement":f,"data-entering":h||void 0,"data-exiting":t||void 0},!i.isNonModal&&v.createElement(sl,{onDismiss:e.close}),v.createElement(zo.Provider,{value:{...d,placement:f,ref:a}},x),v.createElement(sl,{onDismiss:e.close}));return c?v.createElement(pl,{...i,shouldContainFocus:y,isExiting:t,portalContainer:n??s?.current??void 0},E):v.createElement(pl,{...i,shouldContainFocus:y,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(_l.Provider,{value:o},E)))}var bl=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}},xl=class extends bl{filter(e,t,n){let[r,i]=El(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}};(class extends bl{static{this.type=`header`}});var Sl=class extends bl{static{this.type=`loader`}},Cl=class extends xl{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}},wl=class extends xl{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}},Tl=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]=El(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 El(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 Dl=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}},Ol=class e extends Dl{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(){}},kl=class extends Dl{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 Ol(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 Ol&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof Ol?(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.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}};function Al(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=jl(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}else if(typeof t!=`function`)return t},[t,n,s,r,i])}function jl(e){switch(typeof e){case`object`:return e!=null;case`function`:case`symbol`:return!0;default:return!1}}var Ml=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})),Nl=o(((e,t)=>{t.exports=Ml()}))(),Pl=(0,v.createContext)(!1),Fl=(0,v.createContext)(null);function Il(e){if((0,v.useContext)(Fl))return e.content;let{collection:t,document:n}=Bl(e.createCollection);return v.createElement(v.Fragment,null,v.createElement(ki,null,v.createElement(Fl.Provider,{value:n},e.content)),v.createElement(Ll,{render:e.children,collection:t}))}function Ll({collection:e,render:t}){return t(e)}function Rl(e,t,n){let r=ye(),i=(0,v.useRef)(r);return i.current=r,(0,Nl.useSyncExternalStore)(e,(0,v.useCallback)(()=>i.current?n():t(),[t,n]))}var zl=typeof v.useSyncExternalStore==`function`?v.useSyncExternalStore:Rl;function Bl(e){let[t]=(0,v.useState)(()=>new kl(e?.()||new Tl));return{collection:zl((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 Vl=(0,v.createContext)(null);function Hl(e){return class extends bl{static{this.type=e}}}function Ul(e,t,n,r,i,a){typeof e==`string`&&(e=Hl(e));let o=(0,v.useCallback)(i=>{i?.setProps(t,n,e,r,a)},[t,n,r,a,e]),s=(0,v.useContext)(Vl);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(Vl.Provider,{value:o},i):null}return v.createElement(e.type,{ref:o},i)}function Wl(e,t){let n=({node:e})=>t(e.props,e.props.ref,e),r=(0,v.forwardRef)((r,i)=>{let a=(0,v.useContext)(ka);if(!(0,v.useContext)(Pl)){if(t.length>=3)throw Error(t.name+` cannot be rendered outside a collection.`);return t(r,i)}return Ul(e,r,i,`children`in r?r.children:null,null,e=>v.createElement(ka.Provider,{value:a},v.createElement(n,{node:e})))});return r.displayName=t.name,r}function Gl(e,t,n=Kl){let r=({node:e})=>t(e.props,e.props.ref,e),i=(0,v.forwardRef)((t,i)=>Ul(e,t,i,null,n(t),e=>v.createElement(r,{node:e}))??v.createElement(v.Fragment,null));return i.displayName=t.name,i}function Kl(e){return Al({...e,addIdAndValue:!0})}var ql=(0,v.createContext)(null);function Jl(e){let t=(0,v.useContext)(ql),n=(t?.dependencies||[]).concat(e.dependencies),r=e.idScope??t?.idScope,i=Kl({...e,idScope:r,dependencies:n});return(0,v.useContext)(Fl)&&(i=v.createElement(Yl,null,i)),t=(0,v.useMemo)(()=>({dependencies:n,idScope:r}),[r,...n]),v.createElement(ql.Provider,{value:t},i)}function Yl({children:e}){let t=(0,v.useContext)(Fl),n=(0,v.useMemo)(()=>v.createElement(Fl.Provider,{value:null},v.createElement(Pl.Provider,{value:!0},e)),[e]);return ye()?v.createElement(Vl.Provider,{value:t},n):(0,kt.createPortal)(n,t)}var Xl=(0,v.createContext)(null),Zl={CollectionRoot({collection:e,renderDropIndicator:t}){return Ql(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return Ql(e,t,n)}};function Ql(e,t,n){return Al({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,$l(e,t,n))}})}function $l(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 eu=(0,v.createContext)(Zl);function tu(e){return(0,v.useMemo)(()=>e==null?null:new Set([e]),[e])}function nu(e){let t=au(Oe(e));t!==e&&(t&&ru(t,e),e&&iu(e,t))}function ru(e,t){e.dispatchEvent(new FocusEvent(`blur`,{relatedTarget:t})),e.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,relatedTarget:t}))}function iu(e,t){e.dispatchEvent(new FocusEvent(`focus`,{relatedTarget:t})),e.dispatchEvent(new FocusEvent(`focusin`,{bubbles:!0,relatedTarget:t}))}function au(e){let t=Fe(e),n=t?.getAttribute(`aria-activedescendant`);return n&&e.getElementById(n)||t}var ou=(0,v.createContext)(null),su=(0,v.createContext)(null),cu=(0,v.createContext)({}),lu=(0,v.createContext)(null);function uu(e){let t=(0,v.useRef)({});return v.createElement(lu.Provider,{value:t},e.children)}var du=(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)(lu);if(!d)throw Error(`<SharedElement> must be rendered inside a <SharedElementTransition>`);r&&l===`hidden`&&u(`visible`),t=nt(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,kt.flushSync)(()=>u(`entering`))),o=requestAnimationFrame(()=>{o=null,u(`visible`)})):e&&!r&&queueMicrotask(()=>{i[n]?(delete i[n],(0,kt.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})}),fu=(0,v.createContext)({isSelected:!1}),pu=(0,v.forwardRef)(function(e,t){[e,t]=Ci(e,t,fu);let{isSelected:n,...r}=e;return v.createElement(du,{...r,ref:t,className:e.className||`react-aria-SelectionIndicator`,name:`SelectionIndicator`,isVisible:n})});function mu(e){let t=B(e,{labelable:!0}),n;return e.orientation===`vertical`&&(n=`vertical`),e.elementType===`hr`?{separatorProps:t}:{separatorProps:{...t,role:`separator`,"aria-orientation":n}}}var hu=(0,v.createContext)({}),gu=Wl(class extends bl{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]=Ci(e,t,hu);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}=mu({...s,elementType:n,orientation:r}),d=B(e,{global:!0});return v.createElement(l,{render:e.render,...z(d,u),style:i,className:a??`react-aria-Separator`,ref:t,slot:o||void 0})}),_u=(0,v.createContext)({}),vu=(0,v.forwardRef)(function(e,t){[e,t]=Ci(e,t,_u);let{elementType:n=`span`,...r}=e,i=K[n];return v.createElement(i,{className:`react-aria-Text`,...r,ref:t})}),yu={};yu={longPressMessage:`اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة`};var bu={};bu={longPressMessage:`Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто`};var xu={};xu={longPressMessage:`Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku`};var Su={};Su={longPressMessage:`Langt tryk eller tryk på Alt + pil ned for at åbne menuen`};var Cu={};Cu={longPressMessage:`Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen`};var wu={};wu={longPressMessage:`Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού`};var Tu={};Tu={longPressMessage:`Long press or press Alt + ArrowDown to open menu`};var Eu={};Eu={longPressMessage:`Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú`};var Du={};Du={longPressMessage:`Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool`};var Ou={};Ou={longPressMessage:`Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli`};var ku={};ku={longPressMessage:`Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu.`};var Au={};Au={longPressMessage:`לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט`};var ju={};ju={longPressMessage:`Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika`};var Mu={};Mu={longPressMessage:`Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához`};var Nu={};Nu={longPressMessage:`Premi a lungo o premi Alt + Freccia giù per aprire il menu`};var Pu={};Pu={longPressMessage:`長押しまたは Alt+下矢印キーでメニューを開く`};var Fu={};Fu={longPressMessage:`길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기`};var Iu={};Iu={longPressMessage:`Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“.`};var Lu={};Lu={longPressMessage:`Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa`};var Ru={};Ru={longPressMessage:`Langt trykk eller trykk Alt + PilNed for å åpne menyen`};var zu={};zu={longPressMessage:`Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen`};var Bu={};Bu={longPressMessage:`Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu`};var Vu={};Vu={longPressMessage:`Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu`};var Hu={};Hu={longPressMessage:`Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu`};var Uu={};Uu={longPressMessage:`Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul`};var Wu={};Wu={longPressMessage:`Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню`};var Gu={};Gu={longPressMessage:`Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol`};var Ku={};Ku={longPressMessage:`Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol`};var qu={};qu={longPressMessage:`Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni`};var Ju={};Ju={longPressMessage:`Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn`};var Yu={};Yu={longPressMessage:`Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın`};var Xu={};Xu={longPressMessage:`Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню`};var Zu={};Zu={longPressMessage:`长按或按 Alt + 向下方向键以打开菜单`};var Qu={};Qu={longPressMessage:`長按或按 Alt+向下鍵以開啟功能表`};var $u={};$u={"ar-AE":yu,"bg-BG":bu,"cs-CZ":xu,"da-DK":Su,"de-DE":Cu,"el-GR":wu,"en-US":Tu,"es-ES":Eu,"et-EE":Du,"fi-FI":Ou,"fr-FR":ku,"he-IL":Au,"hr-HR":ju,"hu-HU":Mu,"it-IT":Nu,"ja-JP":Pu,"ko-KR":Fu,"lt-LT":Iu,"lv-LV":Lu,"nb-NO":Ru,"nl-NL":zu,"pl-PL":Bu,"pt-BR":Vu,"pt-PT":Hu,"ro-RO":Uu,"ru-RU":Wu,"sk-SK":Gu,"sl-SI":Ku,"sr-SP":qu,"sv-SE":Ju,"tr-TR":Yu,"uk-UA":Xu,"zh-CN":Zu,"zh-TW":Qu};var ed=500;function td(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:a=ed,accessibilityDescription:o}=e,s=(0,v.useRef)(void 0),{addGlobalListener:c,removeGlobalListener:l}=et(),{pressProps:u}=Wa({isDisabled:t,onPressStart(e){if(e.continuePropagation(),(e.pointerType===`mouse`||e.pointerType===`touch`)&&(n&&n({...e,type:`longpressstart`}),s.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent(`pointercancel`,{bubbles:!0})),Oe(e.target).activeElement!==e.target&&N(e.target),i&&i({...e,type:`longpress`}),s.current=void 0},a),e.pointerType===`touch`)){let t=e=>{e.preventDefault()},n=ke(e.target);c(e.target,`contextmenu`,t,{once:!0}),c(n,`pointerup`,()=>{setTimeout(()=>{l(e.target,`contextmenu`,t)},30)},{once:!0})}},onPressEnd(e){s.current&&clearTimeout(s.current),r&&(e.pointerType===`mouse`||e.pointerType===`touch`)&&r({...e,type:`longpressend`})}});return{longPressProps:z(u,bt(i&&!t?o:void 0))}}function nd(e,t,n){let{type:r}=e,{isOpen:i}=t;(0,v.useEffect)(()=>{n&&n.current&&hs.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 rd(e){return e&&e.__esModule?e.default:e}function id(e,t,n){let{type:r=`menu`,isDisabled:i,trigger:a=`press`}=e,o=we(),{triggerProps:s,overlayProps:c}=nd({type:r},t,n),l=e=>{if(!i&&!(a===`longPress`&&!e.altKey)&&n&&n.current)switch(e.key){case`Enter`:case` `:if(a===`longPress`||e.isDefaultPrevented())return;case`ArrowDown`:`continuePropagation`in e||e.stopPropagation(),e.preventDefault(),t.toggle(`first`);break;case`ArrowUp`:`continuePropagation`in e||e.stopPropagation(),e.preventDefault(),t.toggle(`last`);break;default:`continuePropagation`in e&&e.continuePropagation()}},u=nl(rd($u),`@react-aria/menu`),{longPressProps:d}=td({isDisabled:i||a!==`longPress`,accessibilityDescription:u.format(`longPressMessage`),onLongPressStart(){t.close()},onLongPress(){t.open(`first`)}}),f={preventFocusOnPress:!0,onPressStart(e){e.pointerType!==`touch`&&e.pointerType!==`keyboard`&&!i&&(N(e.target),t.open(e.pointerType===`virtual`?`first`:null))},onPress(e){e.pointerType===`touch`&&!i&&(N(e.target),t.toggle())}};return delete s.onPress,{menuTriggerProps:{...s,...a===`press`?f:d,id:o,onKeyDown:l},menuProps:{...c,"aria-labelledby":o,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function ad(e){return k()?e.altKey:e.ctrlKey}function od(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 sd=new WeakMap;function cd(e){let t=we();return sd.set(e,t),t}function ld(e){return sd.get(e)}var ud=1e3;function dd(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=(0,v.useRef)({search:``,timeout:void 0}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{let a=fd(e.key);if(!(!a||e.ctrlKey||e.metaKey||!Pe(e.currentTarget,R(e))||i.search.length===0&&a===` `)){if(a===` `&&i.search.trim().length>0&&(e.preventDefault(),`continuePropagation`in e||e.stopPropagation()),i.search+=a,t.getKeyForSearch!=null){let e=t.getKeyForSearch(i.search,n.focusedKey);e??=t.getKeyForSearch(i.search),e!=null&&(n.setFocusedKey(e),r&&r(e))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=``},ud)}}:void 0}}}function fd(e){return e.length===1||!/^[A-Z]/i.test(e)?e:``}function pd(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`}=e,{direction:h}=Gi(),g=ie(),_=e=>{if(e.altKey&&e.key===`Tab`&&e.preventDefault(),!r.current||!Pe(r.current,R(e)))return;let i=(n,i)=>{if(n!=null){if(t.isLink(n)&&m===`selection`&&l&&!ad(e)){(0,kt.flushSync)(()=>{t.setFocusedKey(n,i)});let a=od(r,n),o=t.getItemProps(n);a&&g.open(a,e,o.href,o.routerOptions);return}if(t.setFocusedKey(n,i),t.isLink(n)&&m===`override`)return;e.shiftKey&&t.selectionMode===`multiple`?t.extendSelection(n):l&&!ad(e)&&t.replaceSelection(n)}};switch(e.key){case`ArrowDown`:if(n.getKeyBelow){let r=t.focusedKey==null?n.getFirstKey?.():n.getKeyBelow?.(t.focusedKey);r==null&&a&&(r=n.getFirstKey?.(t.focusedKey)),r!=null&&(e.preventDefault(),i(r))}break;case`ArrowUp`:if(n.getKeyAbove){let r=t.focusedKey==null?n.getLastKey?.():n.getKeyAbove?.(t.focusedKey);r==null&&a&&(r=n.getLastKey?.(t.focusedKey)),r!=null&&(e.preventDefault(),i(r))}break;case`ArrowLeft`:if(n.getKeyLeftOf){let r=t.focusedKey==null?n.getFirstKey?.():n.getKeyLeftOf?.(t.focusedKey);r==null&&a&&(r=h===`rtl`?n.getFirstKey?.(t.focusedKey):n.getLastKey?.(t.focusedKey)),r!=null&&(e.preventDefault(),i(r,h===`rtl`?`first`:`last`))}break;case`ArrowRight`:if(n.getKeyRightOf){let r=t.focusedKey==null?n.getFirstKey?.():n.getKeyRightOf?.(t.focusedKey);r==null&&a&&(r=h===`rtl`?n.getLastKey?.(t.focusedKey):n.getFirstKey?.(t.focusedKey)),r!=null&&(e.preventDefault(),i(r,h===`rtl`?`last`:`first`))}break;case`Home`:if(n.getFirstKey){if(t.focusedKey===null&&e.shiftKey)return;e.preventDefault();let r=n.getFirstKey(t.focusedKey,ft(e));t.setFocusedKey(r),r!=null&&(ft(e)&&e.shiftKey&&t.selectionMode===`multiple`?t.extendSelection(r):l&&t.replaceSelection(r))}break;case`End`:if(n.getLastKey){if(t.focusedKey===null&&e.shiftKey)return;e.preventDefault();let r=n.getLastKey(t.focusedKey,ft(e));t.setFocusedKey(r),r!=null&&(ft(e)&&e.shiftKey&&t.selectionMode===`multiple`?t.extendSelection(r):l&&t.replaceSelection(r))}break;case`PageDown`:if(n.getKeyPageBelow&&t.focusedKey!=null){let r=n.getKeyPageBelow(t.focusedKey);r!=null&&(e.preventDefault(),i(r))}break;case`PageUp`:if(n.getKeyPageAbove&&t.focusedKey!=null){let r=n.getKeyPageAbove(t.focusedKey);r!=null&&(e.preventDefault(),i(r))}break;case`a`:ft(e)&&t.selectionMode===`multiple`&&s!==!0&&(e.preventDefault(),t.selectAll());break;case`Escape`:c===`clearSelection`&&!o&&t.selectedKeys.size!==0&&(e.stopPropagation(),e.preventDefault(),t.clearSelection());break;case`Tab`:if(!f){if(e.shiftKey)r.current.focus();else{let e=Ws(r.current,{tabbable:!0}),t,n;do n=e.lastChild(),n&&(t=n);while(n);let i=Fe();t&&(!Ie(t)||i&&!Vt(i))&&N(t)}break}}},y=(0,v.useRef)({top:0,left:0});xt(p,`scroll`,()=>{y.current={top:p.current?.scrollTop??0,left:p.current?.scrollLeft??0}});let S=e=>{if(t.isFocused){Pe(e.currentTarget,R(e))||t.setFocused(!1);return}if(Pe(e.currentTarget,R(e))){if(t.setFocused(!0),t.focusedKey==null){let r=e=>{e!=null&&(t.setFocusedKey(e),l&&!t.isSelected(e)&&t.replaceSelection(e))},i=e.relatedTarget;i&&e.currentTarget.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING?r(t.lastSelectedKey??n.getLastKey?.()):r(t.firstSelectedKey??n.getFirstKey?.())}else p.current&&(p.current.scrollTop=y.current.top,p.current.scrollLeft=y.current.left);if(t.focusedKey!=null&&p.current){let e=od(r,t.focusedKey);e instanceof HTMLElement&&(!Ie(e)&&!d&&N(e),ba()===`keyboard`&&Ct(e,{containingElement:r.current}))}}},C=e=>{Pe(e.currentTarget,e.relatedTarget)||t.setFocused(!1)},w=(0,v.useRef)(!1);xt(r,x,d?e=>{let{detail:n}=e;e.stopPropagation(),t.setFocused(!0),n?.focusStrategy===`first`&&(w.current=!0)}:void 0),at(()=>{if(w.current){let e=n.getFirstKey?.()??null;if(e==null){let e=Fe();nu(r.current),iu(e,null),t.collection.size>0&&(w.current=!1)}else t.setFocusedKey(e),w.current=!1}},[t.collection]),at(()=>{t.collection.size>0&&(w.current=!1)},[t.focusedKey]),xt(r,b,d?e=>{e.stopPropagation(),t.setFocused(!1),e.detail?.clearFocusKey&&t.setFocusedKey(null)}:void 0);let T=(0,v.useRef)(i),E=(0,v.useRef)(!1);(0,v.useEffect)(()=>{if(T.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&&!d&&r.current&&Ta(r.current),t.collection.size>0&&(T.current=!1,E.current=!0)}});let D=(0,v.useRef)(t.focusedKey),O=(0,v.useRef)(null);(0,v.useEffect)(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==D.current||E.current)&&p.current&&r.current){let e=ba(),n=od(r,t.focusedKey);if(!(n instanceof HTMLElement))return;(e===`keyboard`||E.current)&&(O.current&&cancelAnimationFrame(O.current),O.current=requestAnimationFrame(()=>{p.current&&(St(p.current,n),e!==`virtual`&&Ct(n,{containingElement:r.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&D.current!=null&&r.current&&Ta(r.current),D.current=t.focusedKey,E.current=!1}),(0,v.useEffect)(()=>()=>{O.current&&cancelAnimationFrame(O.current)},[]),xt(r,`react-aria-focus-scope-restore`,e=>{e.preventDefault(),t.setFocused(!0)});let k={onKeyDown:_,onFocus:S,onBlur:C,onMouseDown(e){p.current===R(e)&&e.preventDefault()}},{typeSelectProps:A}=dd({keyboardDelegate:n,selectionManager:t});u||(k=z(A,k));let j;d||(j=t.focusedKey==null?0:-1);let M=cd(t.collection);return{collectionProps:z(k,{tabIndex:j,"data-collection":M})}}var md=class{constructor(e){this.ref=e}getItemRect(e){let t=this.ref.current;if(!t)return null;let n=e==null?null:od(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}}},hd=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 md(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 md(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}getKeyBelow(e,t){return this.layout===`grid`&&this.orientation===`vertical`?this.findKey(e,e=>this.getNextKey(e,t),this.isSameRow):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.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;if(t&&!lt(t))return this.getFirstKey();let r=e;if(this.orientation===`horizontal`){let e=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>e&&r!=null;)r=this.getKeyAbove(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}else{let e=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>e&&r!=null;)r=this.getKeyAbove(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}return r??this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(t&&!lt(t))return this.getLastKey();let r=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&&r!=null;)r=this.getKeyBelow(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}else{let e=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<e&&r!=null;)r=this.getKeyBelow(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}return r??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}},gd=new Map;function _d(e){let{locale:t}=Gi(),n=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():``);if(gd.has(n))return gd.get(n);let r=new Intl.Collator(t,e);return gd.set(n,r),r}function vd(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:o,orientation:s}=e,c=_d({usage:`search`,sensitivity:`base`}),l=t.disabledBehavior,u=(0,v.useMemo)(()=>a||new hd({collection:n,disabledKeys:r,disabledBehavior:l,ref:i,collator:c,layoutDelegate:o,orientation:s}),[a,o,n,r,i,c,l,s]),{collectionProps:d}=pd({...e,ref:i,selectionManager:t,keyboardDelegate:u});return{listProps:d}}function yd(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=ie();t=we(t);let p=e=>{if(e.pointerType===`keyboard`&&ad(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}else 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&&(ft(e)||e.pointerType===`touch`||e.pointerType===`virtual`)?n.toggleSelection(r):n.replaceSelection(r)}};(0,v.useEffect)(()=>{r===n.focusedKey&&n.isFocused&&(o?nu(i.current):s?s():Fe()!==i.current&&i.current&&Ta(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){R(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};if(a?(A.onPressStart=e=>{w.current=e.pointerType,E.current=T,e.pointerType===`keyboard`&&(!C||xd(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`&&!bd(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||xd(e.key)))&&p(e)},A.onPress=e=>{(e.pointerType===`touch`||e.pointerType===`pen`||e.pointerType===`virtual`||e.pointerType===`keyboard`&&C&&bd(e.key)||e.pointerType===`mouse`&&D.current)&&(C?k(e):y&&p(e))}),m[`data-collection`]=ld(n.collection),m[`data-key`]=r,A.preventFocusOnPress=o,o&&(A=z(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:j,isPressed:M}=Wa(A),ee=S?e=>{w.current===`mouse`&&(e.stopPropagation(),e.preventDefault(),k(e))}:void 0,{longPressProps:N}=td({isDisabled:!T,onLongPress(e){e.pointerType===`touch`&&(p(e),n.setSelectionBehavior(`toggle`))}}),te=e=>{w.current===`touch`&&E.current&&e.preventDefault()},P=d!==`none`&&n.isLink(r)?e=>{ae.isOpening||e.preventDefault()}:void 0;return{itemProps:z(m,y||x||o&&!c?j:{},T?N:{},{onDoubleClick:ee,onDragStartCapture:te,onClick:P,id:t},o?{onMouseDown:e=>e.preventDefault()}:void 0),isPressed:M,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:c,allowsSelection:y,hasAction:C}}function bd(e){return e===`Enter`}function xd(e){return e===` `}function Sd(e,t){return typeof t.getChildren==`function`?t.getChildren(e.key):e.childNodes}function Cd(e){return wd(e,0)}function wd(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function Td(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...Ed(e,t),t],i=[...Ed(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 Ed(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}var Dd=new WeakMap;function Od(e){let t=Dd.get(e);if(t!=null)return t;let n=0,r=t=>{for(let i of t)i.type===`section`?r(Sd(i,e)):i.type===`item`&&n++};return r(e),Dd.set(e,n),n}function kd(e){let t=hl(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 Ad=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)}},jd=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&&Td(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&&Td(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 Ad([t],t,t);else{let e=this.state.selectedKeys,r=e.anchorKey??t;n=new Ad(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?Td(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 Ad(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 Ad([t],t,t):new Ad;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode===`none`)return;let t=new Ad;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(Cd(Sd(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 Ad)}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})}},Md=class{build(e,t){return this.context=t,Nd(()=>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:Pd(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 <${Fd(t.type)}> in <${Fd(r?.type??`unknown parent type`)}>. Only <${Fd(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:Nd(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 Nd(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 Pd(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Fd(e){return e[0].toUpperCase()+e.slice(1)}function Id(e,t,n){let r=(0,v.useMemo)(()=>new Md,[]),{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 Ld(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Rd(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]=po((0,v.useMemo)(()=>zd(e.selectedKeys),[e.selectedKeys]),(0,v.useMemo)(()=>zd(e.defaultSelectedKeys,new Ad),[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||!Ld(e,d))&&f(e)},disabledKeys:p,disabledBehavior:a}}function zd(e,t){return e?e===`all`?`all`:new Ad(e):t}var Bd=(0,v.createContext)(null);(class extends bl{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}});function Vd(e,t){let{role:n=`dialog`}=e,r=Ee();r=e[`aria-label`]?void 0:r;let i=(0,v.useRef)(!1);return(0,v.useEffect)(()=>{if(t.current&&!Ie(t.current)){Ta(t.current);let e=setTimeout(()=>{(Fe()===t.current||Fe()===document.body)&&(i.current=!0,t.current&&(t.current.blur(),Ta(t.current)),i.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),ml(),(0,v.useRef)(!1),(0,v.useEffect)(()=>{}),{dialogProps:{...B(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e[`aria-labelledby`]||r,onBlur:e=>{i.current&&e.stopPropagation()}},titleProps:{id:r}}}var Hd=(0,v.createContext)(null),Ud=(0,v.createContext)(null);function Wd(e){let t=kd(e),n=(0,v.useRef)(null),{triggerProps:r,overlayProps:i}=nd({type:`dialog`},t,n);return r.id=we(),i[`aria-labelledby`]=r.id,v.createElement(bi,{values:[[Ud,t],[Bd,t],[Hd,i],[gl,{trigger:`DialogTrigger`,triggerRef:n,"aria-labelledby":i[`aria-labelledby`]}]]},v.createElement(cl,{...r,ref:n,isPressed:t.isOpen},e.children))}var Gd=(0,v.forwardRef)(function(e,t){let n=e[`aria-labelledby`];[e,t]=Ci(e,t,Hd);let{dialogProps:r,titleProps:i}=Vd({...e,"aria-labelledby":n},t),a=(0,v.useContext)(Ud);!r[`aria-label`]&&!r[`aria-labelledby`]&&e[`aria-labelledby`]&&(r[`aria-labelledby`]=e[`aria-labelledby`]);let o=G({defaultClassName:`react-aria-Dialog`,className:e.className,style:e.style,children:e.children,values:{close:a?.close||(()=>{})}}),s=B(e,{global:!0});return v.createElement(K.section,{...z(s,o,r),render:e.render,ref:t,slot:e.slot||void 0},v.createElement(bi,{values:[[Co,{slots:{[yi]:{},title:{...i,level:2}}}],[oo,{slots:{[yi]:{},close:{onPress:()=>a?.close()}}}]]},o.children))});function Kd(e,t,n){let{overlayProps:r,underlayProps:i}=Zs({...e,isOpen:t.isOpen,onClose:t.close},n);return tc({isDisabled:!t.isOpen}),ml(),(0,v.useEffect)(()=>{if(t.isOpen&&n.current)return Go([n.current],{shouldUseInert:!0})},[t.isOpen,n]),{modalProps:z(r),underlayProps:i}}var qd=(0,v.createContext)(null),Jd=(0,v.createContext)(null),Yd=(0,v.forwardRef)(function(e,t){if((0,v.useContext)(Jd))return v.createElement($d,{...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(Zd,{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:i,defaultOpen:a,onOpenChange:o,isEntering:c,isExiting:l,UNSTABLE_portalContainer:u,shouldCloseOnInteractOutside:d},v.createElement($d,{...f,modalRef:t},s))});function Xd(e,t){[e,t]=Ci(e,t,qd);let n=(0,v.useContext)(Ud),r=hl(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,a=nt(t),o=(0,v.useRef)(null),s=jt(a,i.isOpen),c=jt(o,i.isOpen),l=s||c||e.isExiting||!1,u=ye();return!i.isOpen&&!l||u?null:v.createElement(Qd,{...e,state:i,isExiting:l,overlayRef:a,modalRef:o})}var Zd=(0,v.forwardRef)(Xd);function Qd({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:i,underlayProps:a}=Kd(t,r,n),o=At(t.overlayRef)||t.isEntering||!1,s=G({...t,defaultClassName:`react-aria-ModalOverlay`,values:{isEntering:o,isExiting:t.isExiting,state:r}}),c=gt(),l,u;if(typeof document<`u`){let e=lt(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(pl,{isExiting:t.isExiting,portalContainer:e},v.createElement(K.div,{...z(B(t,{global:!0}),a),...s,style:d,ref:t.overlayRef,"data-entering":o||void 0,"data-exiting":t.isExiting||void 0},v.createElement(bi,{values:[[Jd,{modalProps:i,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[Ud,r]]},s.children)))}function $d(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:i}=(0,v.useContext)(Jd),a=(0,v.useContext)(Ud),o=nt((0,v.useMemo)(()=>ze(e.modalRef,n),[e.modalRef,n])),s=At(o),c=G({...e,defaultClassName:`react-aria-Modal`,values:{isEntering:s,isExiting:r,state:a}});return v.createElement(K.div,{...z(B(e,{global:!0}),t),...c,ref:o,"data-entering":s||void 0,"data-exiting":r||void 0},i&&v.createElement(sl,{onDismiss:a.close}),c.children)}var ef=v.forwardRef(({children:e,...t},n)=>{n=nt(n);let{pressProps:r}=Wa({...t,ref:n}),{focusableProps:i}=Ma(t,n),a=v.Children.only(e);(0,v.useEffect)(()=>{},[n,t.isDisabled]);let o=a.props.ref;return v.cloneElement(a,{...z(r,i,a.props),ref:ze(o,n)})}),tf=({children:e,className:t,slot:n,style:r,variant:i,...a})=>(0,V.jsx)(so,{"aria-label":`Close`,className:J(t,(0,v.useMemo)(()=>$r({variant:i}),[i])),"data-slot":`close-button`,slot:n,style:r,...a,children:t=>typeof e==`function`?e(t):e??(0,V.jsx)(Do,{"data-slot":`close-button-icon`})}),nf=Object.assign(tf,{Root:tf}),rf=(0,v.createContext)({}),af=(0,v.forwardRef)(function(e,t){[e,t]=Ci(e,t,rf);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}=q({onHoverStart:a,onHoverChange:o,onHoverEnd:s,isDisabled:n}),{isFocused:d,isFocusVisible:f,focusProps:p}=eo({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,{...z(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)}),of=(0,v.createContext)(null),sf=(0,v.forwardRef)(function(e,t){return(0,v.useContext)(of)?.isInvalid?v.createElement(cf,{...e,ref:t}):null}),cf=(0,v.forwardRef)((e,t)=>{let n=(0,v.useContext)(of),{elementType:r,...i}=e,a=B(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(vu,{slot:`errorMessage`,elementType:r,...a,...o,ref:t})}),lf={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},uf={...lf,customError:!0,valid:!1},df={isInvalid:!1,validationDetails:lf,validationErrors:[]},ff=(0,v.createContext)({}),pf=`__reactAriaFormValidationState`;function mf(e){if(e.__reactAriaFormValidationState){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[pf];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return hf(e)}function hf(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:uf},l=(0,v.useMemo)(()=>!o||i==null?null:vf(_f(o,i)),[o,i]);a?.validationDetails.valid&&(a=void 0);let u=(0,v.useContext)(ff),d=(0,v.useMemo)(()=>r?Array.isArray(r)?r.flatMap(e=>gf(u[e])):gf(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)(()=>vf(m?[]:d),[m,d]),_=(0,v.useRef)(df),[y,b]=(0,v.useState)(df),x=(0,v.useRef)(df),S=()=>{if(!C)return;w(!1);let e=l||a||_.current;yf(e,x.current)||(x.current=e,b(e))},[C,w]=(0,v.useState)(!1);return(0,v.useEffect)(S),{realtimeValidation:c||g||l||a||df,displayValidation:s===`native`?c||g||y:c||g||l||a||y,updateValidation(e){s===`aria`&&!yf(y,e)?b(e):_.current=e},resetValidation(){let e=df;yf(e,x.current)||(x.current=e,b(e)),s===`native`&&w(!1),h(!0)},commitValidation(){s===`native`&&w(!0),h(!0)}}}function gf(e){return e?Array.isArray(e)?e:[e]:[]}function _f(e,t){if(typeof e==`function`){let n=e(t);if(n&&typeof n!=`boolean`)return gf(n)}return[]}function vf(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:uf}:null}function yf(e,t){return e===t?!0:!!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 bf(...e){let t=new Set,n=!1,r={...lf};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 xf=(0,v.createContext)(null),Sf=(0,v.forwardRef)(function(e,t){[e,t]=Ci(e,t,xf);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(xf.Provider,{value:{...e,validationBehavior:r}},v.createElement(ff.Provider,{value:n??{}},i)))}),Cf={};Cf={colorSwatchPicker:`تغييرات الألوان`,dropzoneLabel:`DropZone`,selectPlaceholder:`حدد عنصرًا`,tableResizer:`أداة تغيير الحجم`};var wf={};wf={colorSwatchPicker:`Цветови мостри`,dropzoneLabel:`DropZone`,selectPlaceholder:`Изберете предмет`,tableResizer:`Преоразмерител`};var Tf={};Tf={colorSwatchPicker:`Vzorky barev`,dropzoneLabel:`Místo pro přetažení`,selectPlaceholder:`Vyberte položku`,tableResizer:`Změna velikosti`};var Ef={};Ef={colorSwatchPicker:`Farveprøver`,dropzoneLabel:`DropZone`,selectPlaceholder:`Vælg et element`,tableResizer:`Størrelsesændring`};var Df={};Df={colorSwatchPicker:`Farbfelder`,dropzoneLabel:`Ablegebereich`,selectPlaceholder:`Element wählen`,tableResizer:`Größenanpassung`};var Of={};Of={colorSwatchPicker:`Χρωματικά δείγματα`,dropzoneLabel:`DropZone`,selectPlaceholder:`Επιλέξτε ένα αντικείμενο`,tableResizer:`Αλλαγή μεγέθους`};var kf={};kf={selectPlaceholder:`Select an item`,tableResizer:`Resizer`,dropzoneLabel:`DropZone`,colorSwatchPicker:`Color swatches`};var Af={};Af={colorSwatchPicker:`Muestras de colores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Seleccionar un artículo`,tableResizer:`Cambiador de tamaño`};var jf={};jf={colorSwatchPicker:`Värvinäidised`,dropzoneLabel:`DropZone`,selectPlaceholder:`Valige üksus`,tableResizer:`Suuruse muutja`};var Mf={};Mf={colorSwatchPicker:`Värimallit`,dropzoneLabel:`DropZone`,selectPlaceholder:`Valitse kohde`,tableResizer:`Koon muuttaja`};var Nf={};Nf={colorSwatchPicker:`Échantillons de couleurs`,dropzoneLabel:`DropZone`,selectPlaceholder:`Sélectionner un élément`,tableResizer:`Redimensionneur`};var Pf={};Pf={colorSwatchPicker:`דוגמיות צבע`,dropzoneLabel:`DropZone`,selectPlaceholder:`בחר פריט`,tableResizer:`שינוי גודל`};var Ff={};Ff={colorSwatchPicker:`Uzorci boja`,dropzoneLabel:`Zona spuštanja`,selectPlaceholder:`Odaberite stavku`,tableResizer:`Promjena veličine`};var If={};If={colorSwatchPicker:`Színtárak`,dropzoneLabel:`DropZone`,selectPlaceholder:`Válasszon ki egy elemet`,tableResizer:`Átméretező`};var Lf={};Lf={colorSwatchPicker:`Campioni di colore`,dropzoneLabel:`Zona di rilascio`,selectPlaceholder:`Seleziona un elemento`,tableResizer:`Ridimensionamento`};var Rf={};Rf={colorSwatchPicker:`カラースウォッチ`,dropzoneLabel:`ドロップゾーン`,selectPlaceholder:`項目を選択`,tableResizer:`サイズ変更ツール`};var zf={};zf={colorSwatchPicker:`색상 견본`,dropzoneLabel:`드롭 영역`,selectPlaceholder:`항목 선택`,tableResizer:`크기 조정기`};var Bf={};Bf={colorSwatchPicker:`Spalvų pavyzdžiai`,dropzoneLabel:`„DropZone“`,selectPlaceholder:`Pasirinkite elementą`,tableResizer:`Dydžio keitiklis`};var Vf={};Vf={colorSwatchPicker:`Krāsu paraugi`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izvēlēties vienumu`,tableResizer:`Izmēra mainītājs`};var Hf={};Hf={colorSwatchPicker:`Fargekart`,dropzoneLabel:`Droppsone`,selectPlaceholder:`Velg et element`,tableResizer:`Størrelsesendrer`};var Uf={};Uf={colorSwatchPicker:`kleurstalen`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecteer een item`,tableResizer:`Resizer`};var Wf={};Wf={colorSwatchPicker:`Próbki kolorów`,dropzoneLabel:`Strefa upuszczania`,selectPlaceholder:`Wybierz element`,tableResizer:`Zmiana rozmiaru`};var Gf={};Gf={colorSwatchPicker:`Amostras de cores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecione um item`,tableResizer:`Redimensionador`};var Kf={};Kf={colorSwatchPicker:`Amostras de cores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecione um item`,tableResizer:`Redimensionador`};var qf={};qf={colorSwatchPicker:`Specimene de culoare`,dropzoneLabel:`Zonă de plasare`,selectPlaceholder:`Selectați un element`,tableResizer:`Instrument de redimensionare`};var Jf={};Jf={colorSwatchPicker:`Цветовые образцы`,dropzoneLabel:`DropZone`,selectPlaceholder:`Выберите элемент`,tableResizer:`Средство изменения размера`};var Yf={};Yf={colorSwatchPicker:`Vzorkovníky farieb`,dropzoneLabel:`DropZone`,selectPlaceholder:`Vyberte položku`,tableResizer:`Nástroj na zmenu veľkosti`};var Xf={};Xf={colorSwatchPicker:`Barvne palete`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izberite element`,tableResizer:`Spreminjanje velikosti`};var Zf={};Zf={colorSwatchPicker:`Uzorci boje`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izaberite stavku`,tableResizer:`Promena veličine`};var Qf={};Qf={colorSwatchPicker:`Färgrutor`,dropzoneLabel:`DropZone`,selectPlaceholder:`Välj en artikel`,tableResizer:`Storleksändrare`};var $f={};$f={colorSwatchPicker:`Renk örnekleri`,dropzoneLabel:`Bırakma Bölgesi`,selectPlaceholder:`Bir öğe seçin`,tableResizer:`Yeniden boyutlandırıcı`};var ep={};ep={colorSwatchPicker:`Зразки кольорів`,dropzoneLabel:`DropZone`,selectPlaceholder:`Виберіть елемент`,tableResizer:`Засіб змінення розміру`};var tp={};tp={colorSwatchPicker:`颜色色板`,dropzoneLabel:`放置区域`,selectPlaceholder:`选择一个项目`,tableResizer:`尺寸调整器`};var np={};np={colorSwatchPicker:`色票`,dropzoneLabel:`放置區`,selectPlaceholder:`選取項目`,tableResizer:`大小調整器`};var rp={};rp={"ar-AE":Cf,"bg-BG":wf,"cs-CZ":Tf,"da-DK":Ef,"de-DE":Df,"el-GR":Of,"en-US":kf,"es-ES":Af,"et-EE":jf,"fi-FI":Mf,"fr-FR":Nf,"he-IL":Pf,"hr-HR":Ff,"hu-HU":If,"it-IT":Lf,"ja-JP":Rf,"ko-KR":zf,"lt-LT":Bf,"lv-LV":Vf,"nb-NO":Hf,"nl-NL":Uf,"pl-PL":Wf,"pt-BR":Gf,"pt-PT":Kf,"ro-RO":qf,"ru-RU":Jf,"sk-SK":Yf,"sl-SI":Xf,"sr-SP":Zf,"sv-SE":Qf,"tr-TR":$f,"uk-UA":ep,"zh-CN":tp,"zh-TW":np};var ip=(0,v.createContext)({}),ap=(0,v.createContext)(null),op=(0,v.forwardRef)(function(e,t){let{render:n}=(0,v.useContext)(ap);return v.createElement(v.Fragment,null,n(e,t))});function sp(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(op,{target:e})},[t?.target,r,n]);return e?.useDropIndicator?i:void 0}function cp(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 lp=new WeakMap;function up(e){return typeof e==`string`?e.replace(/\s*/g,``):``+e}function dp(e,t){let n=lp.get(e);if(!n)throw Error(`Unknown list`);return`${n.id}-option-${up(t)}`}function fp(e,t,n){let r=B(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}=vd({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:o}),{focusWithinProps:c}=$a({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=we(e.id);lp.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}=Pi({...e,id:l,labelElementType:`span`});return{labelProps:u,listBoxProps:z(r,c,t.selectionManager.selectionMode===`multiple`?{"aria-multiselectable":`true`}:{},{role:`listbox`,"aria-orientation":a,...z(d,s)})}}function pp(e,t,n){let{key:r}=e,i=lp.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`]=Od(t.collection)}let h=i?.onAction?()=>i?.onAction?.(r):void 0,g=dp(t,r),{itemProps:_,isPressed:v,isFocused:y,hasAction:b,allowsSelection:x}=yd({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}=q({isDisabled:a||!c,onHoverStart(){ya()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(r))}}),C=B(m?.props);delete C.id;let w=se(m?.props);return{optionProps:{...p,...z(C,_,S,w),id:g},labelProps:{id:d},descriptionProps:{id:f},isFocused:y,isFocusVisible:y&&t.selectionManager.isFocused&&ya(),isSelected:o,isDisabled:a,isPressed:v,allowsSelection:x,hasAction:b}}function mp(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 hp=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 gp(e){let{filter:t,layoutDelegate:n}=e,r=Rd(e),i=(0,v.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=Id(e,(0,v.useCallback)(e=>t?new hp(t(e)):new hp(e),[t]),(0,v.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning])),o=(0,v.useMemo)(()=>new jd(a,r,{layoutDelegate:n}),[a,r,n]);return vp(a,o),{collection:a,disabledKeys:i,selectionManager:o}}function _p(e,t){let n=(0,v.useMemo)(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),r=e.selectionManager.withCollection(n);return vp(n,r),{collection:n,selectionManager:r,disabledKeys:e.disabledKeys}}function vp(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 yp=(0,v.createContext)(null),bp=(0,v.createContext)(null),xp=(0,v.forwardRef)(function(e,t){[e,t]=Ci(e,t,yp);let n=(0,v.useContext)(bp);return n?v.createElement(Cp,{state:n,props:e,listBoxRef:t}):v.createElement(Il,{content:v.createElement(Jl,e)},n=>v.createElement(Sp,{props:e,listBoxRef:t,collection:n}))});function Sp({props:e,listBoxRef:t,collection:n}){e={...e,collection:n,children:null,items:null};let{layoutDelegate:r}=(0,v.useContext)(eu),i=gp({...e,layoutDelegate:r});return v.createElement(Cp,{state:i,props:e,listBoxRef:t})}function Cp({state:e,props:t,listBoxRef:n}){[t,n]=Ci(t,n,ou);let{dragAndDropHooks:r,layout:i=`stack`,orientation:a=`vertical`,filter:o}=t,s=_p(e,o),{collection:c,selectionManager:l}=s,u=!!r?.useDraggableCollectionState,d=!!r?.useDroppableCollectionState,{direction:f}=Gi(),{disabledBehavior:p,disabledKeys:m}=l,h=_d({usage:`search`,sensitivity:`base`}),{isVirtualized:g,layoutDelegate:_,dropTargetDelegate:y,CollectionRoot:b}=(0,v.useContext)(eu),x=(0,v.useMemo)(()=>t.keyboardDelegate||new hd({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}=fp({...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}=eo(),M=s.collection.size===0,ee={isDropTarget:E,isEmpty:M,isFocused:A,isFocusVisible:j,layout:t.layout||`stack`,orientation:a,state:s},N=G({...t,children:void 0,defaultClassName:`react-aria-ListBox`,values:ee}),te=null;M&&t.renderEmptyState&&(te=v.createElement(`div`,{role:`option`,style:{display:`contents`}},t.renderEmptyState(ee)));let P=B(t,{global:!0});return v.createElement(ws,null,v.createElement(K.div,{...z(P,N,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(bi,{values:[[yp,t],[bp,s],[ip,{dragAndDropHooks:r,dragState:C,dropState:w}],[hu,{elementType:`div`}],[ap,{render:Dp}],[Xl,{name:`ListBoxSection`,render:wp}]]},v.createElement(uu,null,v.createElement(b,{collection:c,scrollRef:n,persistedKeys:cp(l,r,w),renderDropIndicator:sp(r,w)}))),te,D))}function wp(e,t,n,r=`react-aria-ListBoxSection`){let i=(0,v.useContext)(bp),{dragAndDropHooks:a,dropState:o}=(0,v.useContext)(ip),{CollectionBranch:s}=(0,v.useContext)(eu),[c,l]=wi(),{headingProps:u,groupProps:d}=mp({heading:l,"aria-label":e[`aria-label`]??void 0}),f=G({...e,id:void 0,children:void 0,defaultClassName:r,values:void 0}),p=B(e,{global:!0});return delete p.id,v.createElement(K.section,{...z(p,f,d),ref:t},v.createElement(cu.Provider,{value:{...u,ref:c}},v.createElement(s,{collection:i.collection,parent:n,renderDropIndicator:sp(a,o)})))}var Tp=Gl(wl,wp),Ep=Wl(Cl,function(e,t,n){let r=nt(t),i=(0,v.useContext)(bp),{dragAndDropHooks:a,dragState:o,dropState:s}=(0,v.useContext)(ip),c=o&&!(o.isDisabled||o.selectionManager.isDisabled(n.key)),{optionProps:l,labelProps:u,descriptionProps:d,...f}=pp({key:n.key,"aria-label":e?.[`aria-label`]},i,r),{hoverProps:p,isHovered:m}=q({isDisabled:!f.allowsSelection&&!f.hasAction&&!c,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),{keyboardProps:h}=Oa(e),{focusProps:g}=Ea(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=B(e,{global:!0});return delete C.id,delete C.onClick,e.href&&l.tabIndex==null&&(l.tabIndex=-1),v.createElement(S,{...z(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(bi,{values:[[_u,{slots:{[yi]:u,label:u,description:d}}],[fu,{isSelected:f.isSelected}]]},x.children))});function Dp(e,t){t=nt(t);let{dragAndDropHooks:n,dropState:r}=(0,v.useContext)(ip),{dropIndicatorProps:i,isHidden:a,isDropTarget:o}=n.useDropIndicator(e,r,t);return a?null:v.createElement(kp,{...e,dropIndicatorProps:i,isDropTarget:o,ref:t})}function Op(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 kp=(0,v.forwardRef)(Op);Wl(Sl,function(e,t,n){let r=(0,v.useContext)(bp),{isLoading:i,onLoadMore:a,scrollOffset:o,...s}=e,c=(0,v.useRef)(null);Dt((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:Ot(!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,{...z(B(e,{global:!0}),{tabIndex:-1}),...l,role:`option`,ref:t},l.children)))});function Ap(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:o}=Pi(e),s=Ee([!!t,!!n,r,i]),c=Ee([!!t,!!n,r,i]);return o=z(o,{"aria-describedby":[s,c,e[`aria-describedby`]].filter(Boolean).join(` `)||void 0}),{labelProps:a,fieldProps:o,descriptionProps:{id:s},errorMessageProps:{id:c}}}var jp=new WeakMap;function Mp(e,t,n){let{keyboardDelegate:r,isDisabled:i,isRequired:a,name:o,form:s,validationBehavior:c=`aria`}=e,l=_d({usage:`search`,sensitivity:`base`}),u=(0,v.useMemo)(()=>r||new hd(t.collection,t.disabledKeys,n,l),[r,t.collection,t.disabledKeys,l,n]),{menuTriggerProps:d,menuProps:f}=id({isDisabled:i,type:`listbox`},t,n),p=e=>{if(t.selectionManager.selectionMode!==`multiple`)switch(e.key){case`ArrowLeft`:{e.preventDefault();let n=t.selectedKey==null?u.getFirstKey?.():u.getKeyAbove?.(t.selectedKey);n!=null&&t.setSelectedKey(n);break}case`ArrowRight`:{e.preventDefault();let n=t.selectedKey==null?u.getFirstKey?.():u.getKeyBelow?.(t.selectedKey);n!=null&&t.setSelectedKey(n);break}}},{typeSelectProps:m}=dd({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}=Ap({...e,labelElementType:`span`,isInvalid:h,errorMessage:e.errorMessage||g});m.onKeyDown=m.onKeyDownCapture,delete m.onKeyDownCapture,t.selectionManager.selectionMode===`multiple`&&(m={});let C=B(e,{labelable:!0}),w=z(m,d,b),T=we();return jp.set(t,{isDisabled:i,isRequired:a,name:o,form:s,validationBehavior:c}),{labelProps:{...y,onClick:()=>{e.isDisabled||(n.current?.focus(),xa(`keyboard`))}},triggerProps:z(C,{...w,isDisabled:i,onKeyDown:De(w.onKeyDown,p,e.onKeyDown),onKeyUp:e.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,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:`selection`,onBlur:n=>{Pe(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 Np(e,t,n){let{validationBehavior:r,focus:i}=e;L(()=>{if(r===`native`&&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(Fp(n.current))}});let a=(0,v.useRef)(!1),o=it(()=>{a.current||t.resetValidation()}),s=it(e=>{t.displayValidation.isInvalid||t.commitValidation();let r=n?.current?.form;!e.defaultPrevented&&n&&r&&Ip(r)===n.current&&(i?i():n.current?.focus(),xa(`keyboard`)),e.preventDefault()}),c=it(()=>{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`&&R(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 Pp(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 Fp(e){return{isInvalid:!e.validity.valid,validationDetails:Pp(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function Ip(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 Lp(e,t,n){let r=jp.get(t)||{},{autoComplete:i,name:a=r.name,form:o=r.form,isDisabled:s=r.isDisabled}=e,{validationBehavior:c,isRequired:l}=r,{visuallyHiddenProps:u}=il({style:{position:`fixed`,top:0,left:0}});Et(e.selectRef,t.defaultValue,t.setValue),Np({validationBehavior:c,focus:()=>n.current?.focus()},t,e.selectRef);let d=t.setValue,f=(0,v.useCallback)(e=>{let t=R(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 Rp(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}=Lp({...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}=jp.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:!1,onChange:()=>{}}):v.createElement(`input`,{key:n,...r,ref:n===0?c:null})});return v.createElement(v.Fragment,null,n)}return null}function zp(e){let{selectionMode:t=`single`,shouldCloseOnSelect:n=t===`single`}=e,r=hl(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]=po((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=gp({...e,selectionMode:t,disallowEmptySelection:t===`single`,allowDuplicateSelectionEvents:!0,selectedKeys:(0,v.useMemo)(()=>Bp(l),[l]),onSelectionChange:e=>{e!==`all`&&(u(t===`single`?e.values().next().value??null:[...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=mf({...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 Bp(e){if(e!==void 0)return e===null?[]:Array.isArray(e)?e:[e]}function Vp(e={}){let{locale:t}=Gi();return(0,v.useMemo)(()=>new Intl.ListFormat(t,e),[t,e])}function Hp(e){return e&&e.__esModule?e.default:e}var Up=(0,v.createContext)(null),Wp=(0,v.createContext)(null),Gp=Ai(function(e,t){[e,t]=Ci(e,t,Up);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(Il,{content:o},n=>v.createElement(qp,{props:e,collection:n,selectRef:t}))}),Kp=[Mi,oo,_u];function qp({props:e,selectRef:t,collection:n}){let{validationBehavior:r}=Si(xf)||{},i=e.validationBehavior??r??`native`,a=zp({...e,collection:n,children:void 0,validationBehavior:i}),{isFocusVisible:o,focusProps:s}=eo({within:!0}),c=(0,v.useRef)(null),[l,u]=wi(!e[`aria-label`]&&!e[`aria-labelledby`]),{labelProps:d,triggerProps:f,valueProps:p,menuProps:m,descriptionProps:h,errorMessageProps:g,hiddenSelectProps:_,...y}=Mp({...Ti(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=B(e,{global:!0});delete S.id;let C=(0,v.useRef)(null);return v.createElement(bi,{values:[[Up,e],[Wp,a],[Jp,p],[Mi,{...d,ref:l,elementType:`span`}],[oo,{...f,ref:c,isPressed:a.isOpen,autoFocus:e.autoFocus}],[Ud,a],[gl,{trigger:`Select`,triggerRef:c,scrollRef:C,placement:`bottom start`,"aria-labelledby":m[`aria-labelledby`],clearContexts:Kp}],[yp,{...m,ref:C}],[bp,a],[_u,{slots:{description:h,errorMessage:g}}],[of,y]]},v.createElement(K.div,{...z(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(Rp,{..._,autoComplete:e.autoComplete})))}var Jp=(0,v.createContext)(null),Yp=Ai(function(e,t){[e,t]=Ci(e,t,Jp);let n=(0,v.useContext)(Wp),{placeholder:r}=Si(Up),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=Vp(),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=nl(Hp(rp),`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=B(e,{global:!0});return v.createElement(K.span,{ref:t,...f,...d,"data-placeholder":n.selectedItems.length===0||void 0},v.createElement(_u.Provider,{value:void 0},d.children))});function Xp(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=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=v.useMemo(()=>o,Object.values(o));return(0,V.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=v.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>v.createContext(e));return function(n){let r=n?.[e]||t;return v.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Zp(i,...t)]}function Zp(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return 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])}};return n.scopeName=t.scopeName,n}function Qp(e){let t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...e)=>t.current?.(...e),[])}var $p=globalThis?.document?v.useLayoutEffect:()=>{};function em(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function tm(...e){return t=>{let n=!1,r=e.map(e=>{let r=em(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():em(e[t],null)}}}}var nm=Symbol.for(`react.lazy`),rm=v.use;function im(e){return typeof e==`object`&&!!e&&`then`in e}function am(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===nm&&`_payload`in e&&im(e._payload)}function om(e){let t=sm(e),n=v.forwardRef((e,n)=>{let{children:r,...i}=e;am(r)&&typeof rm==`function`&&(r=rm(r._payload));let a=v.Children.toArray(r),o=a.find(lm);if(o){let e=o.props.children,r=a.map(t=>t===o?v.Children.count(e)>1?v.Children.only(null):v.isValidElement(e)?e.props.children:null:t);return(0,V.jsx)(t,{...i,ref:n,children:v.isValidElement(e)?v.cloneElement(e,void 0,r):null})}return(0,V.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function sm(e){let t=v.forwardRef((e,t)=>{let{children:n,...r}=e;if(am(n)&&typeof rm==`function`&&(n=rm(n._payload)),v.isValidElement(n)){let e=dm(n),i=um(r,n.props);return n.type!==v.Fragment&&(i.ref=t?tm(t,e):e),v.cloneElement(n,i)}return v.Children.count(n)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var cm=Symbol(`radix.slottable`);function lm(e){return v.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===cm}function um(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}}function dm(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)}var fm=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=om(`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,V.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function pm(){return(0,Nl.useSyncExternalStore)(mm,()=>!0,()=>!1)}function mm(){return()=>{}}var hm=`Avatar`,[gm,_m]=Xp(hm),[vm,ym]=gm(hm),bm=v.forwardRef((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,a]=v.useState(`idle`);return(0,V.jsx)(vm,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:a,children:(0,V.jsx)(fm.span,{...r,ref:t})})});bm.displayName=hm;var xm=`AvatarImage`,Sm=v.forwardRef((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...a}=e,o=ym(xm,n),s=Em(r,a),c=Qp(e=>{i(e),o.onImageLoadingStatusChange(e)});return $p(()=>{s!==`idle`&&c(s)},[s,c]),s===`loaded`?(0,V.jsx)(fm.img,{...a,ref:t,src:r}):null});Sm.displayName=xm;var Cm=`AvatarFallback`,wm=v.forwardRef((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,a=ym(Cm,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,V.jsx)(fm.span,{...i,ref:t}):null});wm.displayName=Cm;function Tm(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?`loaded`:`loading`):`error`:`idle`}function Em(e,{referrerPolicy:t,crossOrigin:n}){let r=pm(),i=v.useRef(null),a=r?(i.current||=new window.Image,i.current):null,[o,s]=v.useState(()=>Tm(a,e));return $p(()=>{s(Tm(a,e))},[a,e]),$p(()=>{let e=e=>()=>{s(e)};if(!a)return;let r=e(`loaded`),i=e(`error`);return a.addEventListener(`load`,r),a.addEventListener(`error`,i),t&&(a.referrerPolicy=t),typeof n==`string`&&(a.crossOrigin=n),()=>{a.removeEventListener(`load`,r),a.removeEventListener(`error`,i)}},[a,n,t]),o}var Dm=bm,Om=Sm,km=wm,Am=(0,v.createContext)({}),jm=({children:e,className:t,color:n,size:r,variant:i,...a})=>{let o=v.useMemo(()=>qr({color:n,size:r,variant:i}),[n,r,i]);return(0,V.jsx)(Am,{value:{slots:o},children:(0,V.jsx)(Dm,{className:o.base({className:t}),...a,children:e})})},Mm=Object.assign(jm,{Root:jm,Image:({className:e,crossOrigin:t,loading:n,onError:r,onLoad:i,sizes:a,src:o,srcSet:s,...c})=>{let{slots:l}=v.useContext(Am);return(0,V.jsx)(Om,{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.useContext(Am);return(0,V.jsx)(km,{className:Y(r?.fallback,e,{color:t}),"data-slot":`avatar-fallback`,...n})}});function Nm(e={}){let{isReadOnly:t}=e,[n,r]=po(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 Pm=(0,v.createContext)({}),Fm=`__button_group_child`,Im=({children:e,className:t,fullWidth:n,isDisabled:r,isIconOnly:i,size:a,slot:o,style:s,variant:c,[Fm]:l,...u})=>{let d=(0,v.useContext)(Pm),f=l===!0,p=a??(f?d?.size:void 0),m=c??(f?d?.variant:void 0),h=r??(f?d?.isDisabled:void 0);return(0,V.jsx)(so,{className:J(t,Jr({fullWidth:n??(f?d?.fullWidth:void 0),isIconOnly:i,size:p,variant:m})),"data-slot":`button`,isDisabled:h,slot:o,style:s,...u,children:t=>typeof e==`function`?e(t):e})},Lm=Object.assign(Im,{Root:Im}),Rm=(0,v.createContext)({}),zm=({children:e,className:t,variant:n=`default`,...r})=>{let i=v.useMemo(()=>Yr({variant:n}),[n]),a=(0,V.jsx)($t.div,{className:i.base({className:t}),"data-slot":`card`,...r,children:e});return(0,V.jsx)(Rm,{value:{slots:i},children:n===`transparent`?a:(0,V.jsx)(Po,{value:{variant:n},children:a})})},Bm=Object.assign(zm,{Root:zm,Header:({className:e,...t})=>{let{slots:n}=(0,v.useContext)(Rm);return(0,V.jsx)($t.div,{className:Y(n?.header,e),"data-slot":`card-header`,...t})},Title:({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Rm);return(0,V.jsx)($t.h3,{className:Y(r?.title,t),"data-slot":`card-title`,...n,children:e})},Description:({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Rm);return(0,V.jsx)($t.p,{className:Y(r?.description,t),"data-slot":`card-description`,...n,children:e})},Content:({className:e,...t})=>{let{slots:n}=(0,v.useContext)(Rm);return(0,V.jsx)($t.div,{className:Y(n?.content,e),"data-slot":`card-content`,...t})},Footer:({className:e,...t})=>{let{slots:n}=(0,v.useContext)(Rm);return(0,V.jsx)($t.div,{className:Y(n?.footer,e),"data-slot":`card-footer`,...t})}}),Vm=new WeakMap;function Hm(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}=Ap({...e,labelElementType:`span`,isInvalid:o,errorMessage:e.errorMessage||s});Vm.set(t,{name:r,form:i,descriptionId:d.id,errorMessageId:f.id,validationBehavior:a});let p=B(e,{labelable:!0}),{focusWithinProps:m}=$a({onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:z(p,{role:`group`,"aria-disabled":n||void 0,...u,...m}),labelProps:l,descriptionProps:d,errorMessageProps:f,isInvalid:o,validationErrors:s,validationDetails:c}}function Um(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 Wm(e=!0){let t=we(),[n,r]=Um(e);return{id:r?t:void 0,ref:n}}function Gm(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=mf({...e,value:t.isSelected}),{isInvalid:S,validationErrors:C,validationDetails:w}=x.displayValidation;Np(e,x,n);let T=e=>{e.stopPropagation(),t.setSelected(R(e).checked)},{pressProps:E,isPressed:D}=Wa({onPressStart:m,onPressEnd:h,onPressChange:g,onPress:_,onPressUp:y,onClick:b,isDisabled:r}),[O,k]=(0,v.useState)(!1),{pressProps:A}=Wa({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{[pf]:i}=e,{commitValidation:a}=i||x;a()},isDisabled:r||i}),{focusableProps:j}=Ma(e,n),M=z(E,j),ee=B(e,{labelable:!0});Et(n,t.defaultSelected,t.setSelected);let N=Wm(),te=Wm();return{labelProps:z(A,{onClick:e=>e.preventDefault()}),inputProps:z(ee,{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":[N.id,te.id,p].filter(Boolean).join(` `)||void 0,onChange:T,disabled:r,...a==null?{}:{value:a},name:o,form:s,type:`checkbox`,...M}),descriptionProps:N,errorMessageProps:te,isSelected:t.isSelected,isPressed:D||O,isDisabled:r,isReadOnly:i,isInvalid:S||e.validationState===`invalid`,validationErrors:C,validationDetails:w}}function Km(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}=Gm(e,t,n),{isIndeterminate:m}=e;return(0,v.useEffect)(()=>{n.current&&(n.current.indeterminate=!!m)}),{labelProps:z(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 qm(e,t,n){let r=Nm({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}=Vm.get(t);c=e.validationBehavior??c;let{realtimeValidation:l}=mf({...e,value:r.isSelected,name:void 0,validationBehavior:`aria`}),u=(0,v.useRef)(df),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=Km({...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,[pf]:{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 Jm(e={}){let[t,n]=po(e.value,e.defaultValue||[],e.onChange),[r]=(0,v.useState)(t),i=!!e.isRequired&&t.length===0,a=(0,v.useRef)(new Map),o=mf({...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(bf(...n.values()))},validationState:e.validationState??(s?`invalid`:null),isInvalid:s,isRequired:i}}var Ym=(0,v.createContext)(null),Xm=(0,v.createContext)(null),Zm=(0,v.createContext)(null),Qm=(0,v.forwardRef)(function(e,t){[e,t]=Ci(e,t,Xm);let{validationBehavior:n}=Si(xf)||{},r=e.validationBehavior??n??`native`,i=Jm({...e,validationBehavior:r}),[a,o]=wi(!e[`aria-label`]&&!e[`aria-labelledby`]),{groupProps:s,labelProps:c,descriptionProps:l,errorMessageProps:u,...d}=Hm({...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=B(e,{global:!0});return v.createElement(K.div,{...z(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(bi,{values:[[Zm,i],[Mi,{...c,ref:a,elementType:`span`}],[_u,{slots:{description:l,errorMessage:u}}],[of,d]]},f.children))}),$m=(0,v.createContext)(null),eh=(0,v.forwardRef)(function(e,t){let{inputRef:n=null,...r}=e;[e,t]=Ci(r,t,Ym);let i=(0,v.useContext)(Zm),[a,o]=th(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=B(e,{global:!0});return delete g.id,delete g.onClick,v.createElement(K.div,{...z(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(bi,{values:[[$m,{...a,inputRef:o,defaultClassName:`react-aria-CheckboxButton`,isIndeterminate:e.isIndeterminate,isRequired:e.isRequired}],[_u,{slots:{description:s,errorMessage:c}}],[of,i?null:{isInvalid:f,validationDetails:p,validationErrors:m}]]},h.children))});function th(e,t){let{validationBehavior:n}=Si(xf)||{},r=e.validationBehavior??n??`native`,i=(0,v.useContext)(Zm),a=nt((0,v.useMemo)(()=>ze(t,e.inputRef===void 0?null:e.inputRef),[t,e.inputRef])),o={...Ti(e),children:typeof e.children==`function`?!0:e.children,value:e.value,validationBehavior:r};return[i?qm(o,i,a):Km(o,Nm(e),a),a]}var nh=(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)($m),{isFocused:p,isFocusVisible:m,focusProps:h}=eo(),g=a||o,{hoverProps:_,isHovered:y}=q({...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=B(e,{global:!0});return delete x.id,delete x.onClick,v.createElement(K.label,{...z(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(al,{elementType:`span`},v.createElement(`input`,{...z(r,h),ref:l})),b.children)}),rh=(0,v.createContext)({}),ih=({children:e,className:t,variant:n,...r})=>{let i=v.useMemo(()=>Zr({variant:n}),[n]);return(0,V.jsx)(rh.Provider,{value:{variant:n},children:(0,V.jsx)(Qm,{className:J(t,i),"data-slot":`checkbox-group`,...r,children:t=>(0,V.jsx)(V.Fragment,{children:typeof e==`function`?e(t):e})})})},ah=(0,v.createContext)({}),oh=({children:e,className:t,variant:n,...r})=>{let i=(0,v.useContext)(rh),a=n??i.variant,o=v.useMemo(()=>Xr({variant:a}),[a]);return(0,V.jsx)(eh,{"data-slot":`checkbox`,...r,className:J(t,o.base()),children:t=>(0,V.jsx)(ah,{value:{slots:o,state:t},children:typeof e==`function`?e(t):e})})};oh.displayName=`HeroUI.Checkbox`;var sh=({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(ah);return(0,V.jsx)(nh,{"data-slot":`checkbox-content`,...n,className:J(t,r?.content()),children:e})};sh.displayName=`HeroUI.Checkbox.Content`;var ch=({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(ah);return(0,V.jsx)($t.span,{className:Y(r?.control,t),"data-slot":`checkbox-control`,...n,children:e})};ch.displayName=`HeroUI.Checkbox.Control`;var lh=({children:e,className:t,...n})=>{let{slots:r,state:i}=(0,v.useContext)(ah),a=i?.isSelected,o=i?.isIndeterminate,s=typeof e==`function`?e(i??{}):e||(o?(0,V.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,V.jsx)(`line`,{x1:`21`,x2:`3`,y1:`12`,y2:`12`})}):(0,V.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,V.jsx)(`polyline`,{points:`1 9 7 14 15 4`})}));return(0,V.jsx)($t.span,{"aria-hidden":`true`,className:Y(r?.indicator,t),"data-slot":`checkbox-indicator`,...n,children:s})};lh.displayName=`HeroUI.Checkbox.Indicator`;var uh=Object.assign(oh,{Root:oh,Content:sh,Control:ch,Indicator:lh}),dh=(0,v.createContext)({}),fh=({children:e,className:t,color:n,size:r,variant:i,...a})=>{let o=v.useMemo(()=>Qr({color:n,size:r,variant:i}),[n,r,i]),s=v.useMemo(()=>typeof e==`string`||typeof e==`number`?(0,V.jsx)(ph,{children:e}):e,[e]);return(0,V.jsx)(dh,{value:{slots:o},children:(0,V.jsx)($t.span,{...a,className:Y(o.base,t),"data-slot":`chip`,children:s})})},ph=({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(dh);return(0,V.jsx)($t.span,{className:Y(r?.label,t),"data-slot":`chip-label`,...n,children:e})},mh=Object.assign(fh,{Root:fh,Label:ph}),hh=(0,v.createContext)({}),gh=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...i}=e;return i},_h=Ai(function(e,t){[e,t]=Ci(e,t,hh);let{hoverProps:n,isHovered:r}=q({...e,isDisabled:e.disabled}),{isFocused:i,isFocusVisible:a,focusProps:o}=eo({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,{...z(gh(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 vh(e,t){let{inputElementType:n=`input`,isDisabled:r=!1,isRequired:i=!1,isReadOnly:a=!1,type:o=`text`,validationBehavior:s=`aria`}=e,[c,l]=po(e.value,e.defaultValue||``,e.onChange),{focusableProps:u}=Ma(e,t),d=mf({...e,value:c}),{isInvalid:f,validationErrors:p,validationDetails:m}=d.displayValidation,{labelProps:h,fieldProps:g,descriptionProps:_,errorMessageProps:y}=Ap({...e,isInvalid:f,errorMessage:e.errorMessage||p}),b=B(e,{labelable:!0}),x={type:o,pattern:e.pattern},[S]=(0,v.useState)(c);return Et(t,e.defaultValue??S,l),Np(e,d,t),{labelProps:h,inputProps:z(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(R(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 yh=(0,v.createContext)({}),bh=8,xh=.3,Sh=.5;function Ch(e,t){let n=(0,v.useContext)(Ud),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=>{t&&e.button===0&&(e.target.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)<bh)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*xh||u>Sh)&&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 wh=(0,v.createContext)({}),Th=({children:e,state:t,...n})=>(0,V.jsx)(wh,{value:(0,v.useMemo)(()=>({slots:ti(),placement:void 0,isDismissable:!0}),[]),children:(0,V.jsx)(Wd,{"data-slot":`drawer-root`,...z(n,(0,v.useMemo)(()=>t?{isOpen:t.isOpen,onOpenChange:t.setOpen}:{},[t])),children:e})});Th.displayName=`HeroUI.Drawer`;var Eh=({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(wh);return(0,V.jsx)(so,{className:J(t,r?.trigger()),"data-slot":`drawer-trigger`,...n,children:e})};Eh.displayName=`HeroUI.Drawer.Trigger`;var Dh=({children:e,className:t,isDismissable:n=!0,variant:r,...i})=>{let{slots:a}=(0,v.useContext)(wh),o=(0,v.useMemo)(()=>ti({variant:r}),[r]),s=(0,v.useMemo)(()=>({slots:{...a,...o},isDismissable:n}),[a,o,n]);return(0,V.jsx)(Zd,{className:J(t,o?.backdrop()),"data-slot":`drawer-backdrop`,isDismissable:n,...i,children:t=>(0,V.jsx)(wh,{value:s,children:typeof e==`function`?e(t):e})})};Dh.displayName=`HeroUI.Drawer.Backdrop`;var Oh=({children:e,className:t,placement:n=`bottom`,...r})=>{let{isDismissable:i,slots:a}=(0,v.useContext)(wh),o=(0,v.useMemo)(()=>ti({placement:n}),[n]),s=(0,v.useMemo)(()=>({placement:n,isDismissable:i,slots:{...a,...o}}),[a,n,i,o]);return(0,V.jsx)(Yd,{className:J(t,o?.content()),"data-placement":n,"data-slot":`drawer-content`,...r,children:t=>(0,V.jsx)(wh,{value:s,children:typeof e==`function`?e(t):e})})};Oh.displayName=`HeroUI.Drawer.Content`;var kh=({children:e,className:t,...n})=>{let{isDismissable:r=!0,placement:i,slots:a}=(0,v.useContext)(wh),{dialogRef:o,dragHandlers:s}=Ch(i,r);return(0,V.jsx)(Po,{value:{variant:`default`},children:(0,V.jsx)(Gd,{ref:o,className:Y(a?.dialog,t),"data-placement":i,"data-slot":`drawer-dialog`,style:r?{touchAction:`none`}:void 0,...s,...n,children:e})})};kh.displayName=`HeroUI.Drawer.Dialog`;var Ah=({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(wh);return(0,V.jsx)($t.div,{className:Y(r?.header,t),"data-slot":`drawer-header`,...n,children:e})};Ah.displayName=`HeroUI.Drawer.Header`;var jh=({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(wh);return(0,V.jsx)($t.div,{className:Y(r?.body,t),"data-slot":`drawer-body`,style:{touchAction:`pan-y`},...n,children:e})};jh.displayName=`HeroUI.Drawer.Body`;var Mh=({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(wh);return(0,V.jsx)($t.div,{className:Y(r?.footer,t),"data-slot":`drawer-footer`,...n,children:e})};Mh.displayName=`HeroUI.Drawer.Footer`;var Nh=({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(wh);return(0,V.jsx)(wo,{className:Y(r?.heading,t),"data-slot":`drawer-heading`,slot:`title`,...n,children:e})};Nh.displayName=`HeroUI.Drawer.Heading`;var Ph=({className:e,...t})=>{let{slots:n}=(0,v.useContext)(wh);return(0,V.jsx)($t.div,{"aria-hidden":`true`,className:Y(n?.handle,e),"data-slot":`drawer-handle`,...t,children:(0,V.jsx)(`div`,{"data-slot":`drawer-handle-bar`})})};Ph.displayName=`HeroUI.Drawer.Handle`;var Fh=({className:e,...t})=>{let{slots:n}=(0,v.useContext)(wh);return(0,V.jsx)(nf,{className:J(e,n?.closeTrigger()),"data-slot":`drawer-close-trigger`,slot:`close`,...t})};Fh.displayName=`HeroUI.Drawer.CloseTrigger`;var Ih=Object.assign(Th,{Root:Th,Trigger:Eh,Backdrop:Dh,Content:Oh,Dialog:kh,Header:Ah,Heading:Nh,Body:jh,Footer:Mh,Handle:Ph,CloseTrigger:Fh}),Lh=(0,v.createContext)({}),Rh=({children:e,...t})=>(0,V.jsx)(Lh,{value:{slots:v.useMemo(()=>li(),[])},children:(0,V.jsx)(Wd,{"data-slot":`popover-root`,...t,children:e})}),zh=Object.assign(Rh,{Root:Rh,Trigger:({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Lh);return(0,V.jsx)(ef,{children:(0,V.jsx)($t.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.useContext)(Lh);return(0,V.jsx)(Gd,{"data-slot":`popover-dialog`,...n,className:Y(r?.dialog,t),children:e})},Arrow:({children:e,className:t,...n})=>{let r=(0,V.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,V.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,V.jsx)(Bo,{"data-slot":`popover-overlay-arrow-group`,...n,className:t,children:i})},Content:({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Lh);return(0,V.jsx)(Lh,{value:{slots:r},children:(0,V.jsx)(Po,{value:{variant:`default`},children:(0,V.jsx)(vl,{...n,className:J(t,r?.base()),children:e})})})},Heading:({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Lh);return(0,V.jsx)(wo,{slot:`title`,...n,className:Y(r?.heading,t),children:e})}}),Bh=e=>{let{containerRef:t,isEnabled:n,offset:r,onVisibilityChange:i,orientation:a,visibility:o}=e,s=(0,v.useRef)(null),c=(0,v.useRef)(null),l=(0,v.useCallback)(()=>{let e=t.current;if(!e)return;let n=a===`vertical`,o=n?e.scrollTop:e.scrollLeft,l=n?e.scrollHeight:e.scrollWidth,u=n?e.clientHeight:e.clientWidth,d=o>r,f=o+u+r<l,p=s.current;p&&p.hasScrollBefore===d&&p.hasScrollAfter===f||(s.current={hasScrollBefore:d,hasScrollAfter:f},c.current!==null&&cancelAnimationFrame(c.current),c.current=requestAnimationFrame(()=>{c.current=null,n?d&&f?(e.dataset.topBottomScroll=`true`,delete e.dataset.topScroll,delete e.dataset.bottomScroll,i?.(`both`)):(e.dataset.topScroll=String(d),e.dataset.bottomScroll=String(f),delete e.dataset.topBottomScroll,i&&i(d?`top`:f?`bottom`:`none`)):d&&f?(e.dataset.leftRightScroll=`true`,delete e.dataset.leftScroll,delete e.dataset.rightScroll,i?.(`both`)):(e.dataset.leftScroll=String(d),e.dataset.rightScroll=String(f),delete e.dataset.leftRightScroll,i&&i(d?`left`:f?`right`:`none`))}))},[t,a,r,i]);(0,v.useEffect)(()=>{let e=t.current;if(!e||!n||o!==`auto`)return;l(),e.addEventListener(`scroll`,l,{passive:!0});let r=new ResizeObserver(l);return r.observe(e),()=>{e.removeEventListener(`scroll`,l),r.disconnect(),c.current!==null&&(cancelAnimationFrame(c.current),c.current=null),s.current=null}},[t,o,n,l])},Vh=globalThis?.document?v.useLayoutEffect:v.useEffect,Hh=({children:e,className:t,hideScrollBar:n=!1,isEnabled:r=!0,offset:i=0,onVisibilityChange:a,orientation:o=`vertical`,ref:s,size:c=40,variant:l=`fade`,visibility:u=`auto`,...d})=>{let f=(0,v.useRef)(null);Bh({containerRef:f,isEnabled:r,offset:i,onVisibilityChange:a,orientation:o,visibility:u}),Vh(()=>{let e=f.current;!e||u===`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,u===`both`?e.dataset[o===`vertical`?`topBottomScroll`:`leftRightScroll`]=`true`:u!==`none`&&(e.dataset[`${u}Scroll`]=`true`))},[u,o]);let p=(0,v.useMemo)(()=>ui({hideScrollBar:n,orientation:o,variant:l}),[o,n,l]),m={"--scroll-shadow-size":`${c}px`,...d.style};return(0,V.jsx)(`div`,{ref:ze(f,s),className:p.base({className:t}),"data-orientation":o,"data-scroll-shadow-size":c,"data-slot":`scroll-shadow`,style:m,...d,children:e})};Hh.displayName=`HeroUI.ScrollShadow`;var Uh=Object.assign(Hh,{Root:Hh}),Wh=new Map;function Gh(e,t,n=!0){let r=ye();return v.useMemo(()=>{if(t!==void 0)return t;if(!r){if(n&&Wh.has(e))return Wh.get(e);try{let t=document.documentElement,r=getComputedStyle(t).getPropertyValue(e).trim()||void 0;return n&&Wh.set(e,r),r}catch{return}}},[e,t,r,n])}var Kh=({...e})=>{let t=(0,v.useId)();return(0,V.jsxs)(`svg`,{"data-slot":`spinner-icon`,viewBox:`0 0 24 24`,...e,children:[(0,V.jsxs)(`defs`,{children:[(0,V.jsxs)(`linearGradient`,{id:`«data-slot-icon-def-1»-${t}`,x1:`50%`,x2:`50%`,y1:`5.271%`,y2:`91.793%`,children:[(0,V.jsx)(`stop`,{offset:`0%`,stopColor:`currentColor`}),(0,V.jsx)(`stop`,{offset:`100%`,stopColor:`currentColor`,stopOpacity:.55})]}),(0,V.jsxs)(`linearGradient`,{id:`«data-slot-icon-def-2»-${t}`,x1:`50%`,x2:`50%`,y1:`15.24%`,y2:`87.15%`,children:[(0,V.jsx)(`stop`,{offset:`0%`,stopColor:`currentColor`,stopOpacity:0}),(0,V.jsx)(`stop`,{offset:`100%`,stopColor:`currentColor`,stopOpacity:.55})]})]}),(0,V.jsxs)(`g`,{fill:`none`,children:[(0,V.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,V.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,V.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)`})]})]})},qh=({className:e,color:t,size:n,...r})=>(0,V.jsx)($t.span,{"data-slot":`spinner`,...r,className:fi({className:e,color:t,size:n}),children:(0,V.jsx)(Kh,{"aria-hidden":!0,"aria-label":`Loading`,role:`presentation`})}),Jh=Object.assign(qh,{Root:qh}),Yh=Object.assign(Fo,{Root:Fo}),Xh=2**53-1,Zh=.05,Qh=4e3,$h={};$h={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 eg={};eg={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 tg={};tg={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 ng={};ng={close:`Luk`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} besked`,other:()=>`${t.number(e.count)} beskeder`})}.`};var rg={};rg={close:`Schließen`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} Benachrichtigung`,other:()=>`${t.number(e.count)} Benachrichtigungen`})}.`};var ig={};ig={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 ag={};ag={close:`Close`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notification`,other:()=>`${t.number(e.count)} notifications`})}.`};var og={};og={close:`Cerrar`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notificaci\xf3n`,other:()=>`${t.number(e.count)} notificaciones`})}.`};var sg={};sg={close:`Sule`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} teatis`,other:()=>`${t.number(e.count)} teatist`})}.`};var cg={};cg={close:`Sulje`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ilmoitus`,other:()=>`${t.number(e.count)} ilmoitusta`})}.`};var lg={};lg={close:`Fermer`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notification`,other:()=>`${t.number(e.count)} notifications`})}.`};var ug={};ug={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 dg={};dg={close:`Zatvori`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} obavijest`,other:()=>`${t.number(e.count)} obavijesti`})}.`};var fg={};fg={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 pg={};pg={close:`Chiudi`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notifica`,other:()=>`${t.number(e.count)} notifiche`})}.`};var mg={};mg={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 hg={};hg={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 gg={};gg={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 _g={};_g={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 vg={};vg={close:`Lukk`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} varsling`,other:()=>`${t.number(e.count)} varsler`})}.`};var yg={};yg={close:`Sluiten`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} melding`,other:()=>`${t.number(e.count)} meldingen`})}.`};var bg={};bg={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 xg={};xg={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 Sg={};Sg={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 Cg={};Cg={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 wg={};wg={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 Tg={};Tg={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 Eg={};Eg={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 Dg={};Dg={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 Og={};Og={close:`Stäng`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} meddelande`,other:()=>`${t.number(e.count)} meddelanden`})}.`};var kg={};kg={close:`Kapat`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} bildirim`,other:()=>`${t.number(e.count)} bildirim`})}.`};var Ag={};Ag={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 jg={};jg={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 Mg={};Mg={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 Ng={};Ng={"ar-AE":$h,"bg-BG":eg,"cs-CZ":tg,"da-DK":ng,"de-DE":rg,"el-GR":ig,"en-US":ag,"es-ES":og,"et-EE":sg,"fi-FI":cg,"fr-FR":lg,"he-IL":ug,"hr-HR":dg,"hu-HU":fg,"it-IT":pg,"ja-JP":mg,"ko-KR":hg,"lt-LT":gg,"lv-LV":_g,"nb-NO":vg,"nl-NL":yg,"pl-PL":bg,"pt-BR":xg,"pt-PT":Sg,"ro-RO":Cg,"ru-RU":wg,"sk-SK":Tg,"sl-SI":Eg,"sr-SP":Dg,"sv-SE":Og,"tr-TR":kg,"uk-UA":Ag,"zh-CN":jg,"zh-TW":Mg};function Pg(e){return e&&e.__esModule?e.default:e}function Fg(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=nl(Pg(Ng),`@react-aria/toast`),[l,u]=(0,v.useState)(!1);return L(()=>{u(!0)},[]),{toastProps:{...B(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 Ig=1,Lg=Symbol.for(`react-aria-landmark-manager`);function Rg(e){return document.addEventListener(`react-aria-landmark-manager-change`,e),()=>document.removeEventListener(`react-aria-landmark-manager-change`,e)}function zg(){if(typeof document>`u`)return null;let e=document[Lg];return e&&e.version>=Ig?e:(document[Lg]=new Vg,document.dispatchEvent(new CustomEvent(`react-aria-landmark-manager-change`)),document[Lg])}function Bg(){return(0,Nl.useSyncExternalStore)(Rg,zg,zg)}var Vg=class{constructor(){this.landmarks=[],this.isListening=!1,this.refCount=0,this.version=Ig,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(R(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(Pe(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(R(e));t&&t.ref.current!==R(e)&&this.updateLandmark({ref:t.ref,lastFocused:R(e)});let n=e.relatedTarget;if(n){let e=this.closestLandmark(n);e&&e.ref.current===n&&e.blur()}}focusoutHandler(e){let t=R(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 Hg(e,t){let{role:n,"aria-label":r,"aria-labelledby":i,focus:a}=e,o=Bg(),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 Ug(e){return e&&e.__esModule?e.default:e}function Wg(e,t,n){let r=nl(Ug(Ng),`@react-aria/toast`),{landmarkProps:i}=Hg({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}=q({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(ba()===`pointer`&&f.current?.isConnected)N(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?N(l.current[i]):n>=0&&n<l.current.length&&N(l.current[n])}u.current=t.visibleToasts},[t.visibleToasts,n]);let f=(0,v.useRef)(null),{focusWithinProps:p}=$a({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&&(ba()===`pointer`?N(f.current):f.current.focus(),f.current=null)},[n,t.visibleToasts.length]),(0,v.useEffect)(()=>()=>{f.current?.isConnected&&(ba()===`pointer`?N(f.current):f.current.focus(),f.current=null)},[n]),{regionProps:z(i,c,p,{tabIndex:-1,"data-react-aria-top-layer":!0,onFocus:e=>{let t=R(e).closest(`[role="alertdialog"]`);d.current=l.current.findIndex(e=>e===t)},onBlur:()=>{d.current=-1}})}}function Gg(e){let t=(0,v.useCallback)(t=>e.subscribe(t),[e]),n=(0,v.useCallback)(()=>e.visibleToasts,[e]);return{visibleToasts:(0,Nl.useSyncExternalStore)(t,n,n),add:(t,n)=>e.add(t,n),close:t=>e.close(t),pauseAll:()=>e.pauseAll(),resumeAll:()=>e.resumeAll()}}var Kg=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 qg(()=>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`)}},qg=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))}},Jg=(0,v.createContext)(null),Yg=(0,v.forwardRef)(function(e,t){let n=ye(),r=Gg(e.queue),i=nt(t),{regionProps:a}=Wg(e,r,i),{focusProps:o,isFocused:s,isFocusVisible:c}=eo(),{hoverProps:l,isHovered:u}=q({}),d=G({...e,children:void 0,defaultClassName:`react-aria-ToastRegion`,values:{visibleToasts:r.visibleToasts,isHovered:u,isFocused:s,isFocusVisible:c}}),{direction:f}=Gi(),p,{getContainer:m}=dl();n||(p=document.body,m&&(p=m()));let h=B(e,{global:!0}),g=v.createElement(Jg.Provider,{value:r},v.createElement(K.div,{...z(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(Xg,{...e,render:void 0,className:void 0,style:{display:`contents`}},e.children):e.children));return r.visibleToasts.length>0&&p?(0,kt.createPortal)(g,p):null}),Xg=(0,v.forwardRef)(function(e,t){let n=(0,v.useContext)(Jg),{hoverProps:r,isHovered:i}=q({}),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}))))}),Zg=(0,v.forwardRef)(function(e,t){let n=(0,v.useContext)(Jg),r=nt(t),{toastProps:i,contentProps:a,titleProps:o,descriptionProps:s,closeButtonProps:c}=Fg(e,n,r),{focusProps:l,isFocused:u,isFocusVisible:d}=eo(),f=G({...e,defaultClassName:`react-aria-Toast`,values:{toast:e.toast,isFocused:u,isFocusVisible:d}}),p=B(e,{global:!0});return v.createElement(K.div,{...z(p,f,i,l),ref:r,"data-focused":u||void 0,"data-focus-visible":d||void 0},v.createElement(bi,{values:[[Qg,a],[_u,{slots:{[yi]:{},title:o,description:s}}],[oo,{slots:{[yi]:{},close:c}}]]},f.children))}),Qg=(0,v.createContext)({}),$g=(0,v.forwardRef)(function(e,t){return[e,t]=Ci(e,t,Qg),v.createElement(K.div,{render:e.render,className:`react-aria-ToastContent`,...e,ref:t},e.children)}),e_=class{constructor(e){this.maxVisibleToasts=e?.maxVisibleToasts;let t=Promise.resolve(),n=e=>{if(typeof document>`u`||!(`startViewTransition`in document)){e();return}let n=()=>document.startViewTransition(()=>{(0,kt.flushSync)(e)}).finished.catch(()=>{});t=t.then(n,n)};this.queue=new Kg({maxVisibleToasts:Xh,wrapUpdate:e?.wrapUpdate??n})}add(e,t){let n=t?.timeout===void 0?Qh:t.timeout;return this.queue.add(e,{...t,timeout:n})}close(e){this.queue.close(e)}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}};function t_(e){let t=(t,n)=>{let r=n?.timeout===void 0?Qh:n.timeout;return e.add({title:t,description:n?.description,indicator:n?.indicator,variant:n?.variant||`default`,actionProps:n?.actionProps,isLoading:n?.isLoading},{timeout:r,onClose:()=>{requestAnimationFrame(()=>{n?.onClose?.()})}})};return t.success=(e,n)=>t(e,{...n,variant:`success`}),t.danger=(e,n)=>t(e,{...n,variant:`danger`}),t.info=(e,n)=>t(e,{...n,variant:`accent`}),t.warning=(e,n)=>t(e,{...n,variant:`warning`}),t.promise=(n,r)=>{let i=typeof n==`function`?n():n,a=e.add({title:r.loading,variant:`default`,isLoading:!0},{timeout:0});return i.then(n=>{let i=typeof r.success==`function`?r.success(n):r.success;return e.close(a),t.success(i)}).catch(n=>{let i=typeof r.error==`function`?r.error(n):r.error;return e.close(a),t.danger(i)}),a},t.getQueue=()=>e.getQueue(),t.close=t=>e.close(t),t.pauseAll=()=>e.pauseAll(),t.resumeAll=()=>e.resumeAll(),t.clear=()=>e.clear(),t}var n_=t_(new e_({maxVisibleToasts:Xh})),r_=e=>{let[t,n]=(0,v.useState)(void 0),r=(0,v.useCallback)(()=>{if(e.current){let t=e.current.scrollHeight;n(e=>e===t?e:t)}},[e]);return(0,v.useEffect)(()=>{let t=e.current;if(!t)return;let n=new ResizeObserver(r),i=new MutationObserver(e=>{e.some(e=>e.type===`attributes`&&e.attributeName===`aria-hidden`)&&r()});return n.observe(t),i.observe(t,{attributeFilter:[`aria-hidden`],attributes:!0}),()=>{n.disconnect(),i.disconnect()}},[e,r]),{height:t}},i_=typeof window<`u`?v.useLayoutEffect:v.useEffect,a_=typeof window>`u`;function o_(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){let r=e=>a_?t:window.matchMedia(e).matches,[i,a]=(0,v.useState)(()=>n?r(e):t);function o(){a(r(e))}return i_(()=>{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 s_=(0,v.createContext)({}),c_=({children:e,className:t,placement:n,scaleFactor:r=Zh,toast:i,variant:a,...o})=>{let{gap:s=12,heightsByKey:c,maxVisibleToasts:l=3,onToastHeightChange:u,onToastHeightRemove:d,placement:f,scaleFactor:p,slots:m}=(0,v.useContext)(s_),h=n??f,g=r??p,_=(0,v.useContext)(Jg).visibleToasts,y=_.indexOf(i),b=y<=0,x=h?.startsWith(`bottom`),S=y>=l,C=i?.key,w=(0,v.useRef)(null),{height:T}=r_(w);(0,v.useEffect)(()=>{C&&typeof T==`number`&&u?.(C,T)},[C,T,u]),(0,v.useEffect)(()=>{if(C)return()=>{d?.(C)}},[C,d]),(0,v.useLayoutEffect)(()=>{let e=w.current;e&&(e.tabIndex=b?0:-1)},[b]);let E=(0,v.useMemo)(()=>{let e=_[0]?.key,t=(e?c?.[e]:void 0)??T??0,n=y*s,r=(x?-1:1)*n;return{scale:`${1-y*g}`,translate:`0 ${r}px 0`,viewTransitionName:`toast-${String(i.key).replace(/[^a-zA-Z0-9]/g,`-`)}`,zIndex:_.length-y,...t?{"--front-height":`${t}px`}:null,opacity:+!S,pointerEvents:S?`none`:`auto`,...o.style}},[g,s,c,y,x,b,S,o.style,i?.key,T,_]);return(0,V.jsx)(Zg,{ref:w,"aria-hidden":S,className:J(t,m?.toast({variant:a})),"data-frontmost":To(b),"data-hidden":To(S),"data-index":y,"data-slot":`toast`,style:E,toast:i,...o,children:e})};c_.displayName=`HeroUI.Toast`;var l_=({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(s_);return(0,V.jsx)($g,{className:Y(r?.content,t),"data-slot":`toast-content`,...n,children:e})},u_=({children:e,className:t,variant:n,...r})=>{let{slots:i}=(0,v.useContext)(s_),a=(0,v.useCallback)(()=>{switch(n){case`accent`:return(0,V.jsx)(Oo,{"data-slot":`toast-default-icon`});case`success`:return(0,V.jsx)(jo,{"data-slot":`toast-default-icon`});case`warning`:return(0,V.jsx)(ko,{"data-slot":`toast-default-icon`});case`danger`:return(0,V.jsx)(Ao,{"data-slot":`toast-default-icon`});default:return(0,V.jsx)(Oo,{"data-slot":`toast-default-icon`})}},[n]);return(0,V.jsx)($t.div,{className:Y(i?.indicator,t),"data-slot":`toast-indicator`,...r,children:e??a()})};u_.displayName=`HeroUI.ToastIndicator`;var d_=({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(s_);return(0,V.jsx)(vu,{className:Y(r?.title,t),"data-slot":`toast-title`,slot:`title`,...n,children:e})};d_.displayName=`HeroUI.ToastTitle`;var f_=({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(s_);return(0,V.jsx)(vu,{className:Y(r?.description,t),"data-slot":`toast-description`,slot:`description`,...n,children:e})};f_.displayName=`HeroUI.ToastDescription`;var p_=({className:e,...t})=>{let{slots:n}=(0,v.useContext)(s_);return(0,V.jsx)(nf,{className:J(e,n?.close()),"data-slot":`toast-close`,slot:`close`,...t})};p_.displayName=`HeroUI.ToastCloseButton`;var m_=({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(s_);return(0,V.jsx)(Lm,{className:J(t,r?.action?.()),"data-slot":`toast-action-button`,...n,children:e})};m_.displayName=`HeroUI.ToastActionButton`;var h_=({children:e,className:t,gap:n=12,maxVisibleToasts:r,placement:i=`bottom`,queue:a,scaleFactor:o=Zh,width:s=460,...c})=>{let l=(0,v.useMemo)(()=>_i({placement:i}),[i]),u=o_(`(max-width: 768px)`),[d,f]=v.useState({}),p=(0,v.useMemo)(()=>a?a.getQueue():n_.getQueue(),[a]),m=(0,v.useMemo)(()=>{let e=a&&`maxVisibleToasts`in a?a.maxVisibleToasts:void 0;return r??e??3},[r,a]),h=(0,v.useCallback)((e,t)=>{f(n=>n[e]===t?n:{...n,[e]:t})},[]),g=(0,v.useCallback)(e=>{f(t=>{if(!(e in t))return t;let n={...t};return delete n[e],n})},[]),_=(0,v.useCallback)(e=>{let{actionProps:t,description:n,indicator:r,isLoading:a,title:s,variant:c}=e.toast.content??{};return(0,V.jsxs)(c_,{placement:i,scaleFactor:o,toast:e.toast,variant:c,children:[r===null?null:a?(0,V.jsx)(u_,{variant:c,children:(0,V.jsx)(Jh,{color:`current`,size:`sm`})}):(0,V.jsx)(u_,{variant:c,children:r}),(0,V.jsxs)(l_,{children:[!!s&&(0,V.jsx)(d_,{children:s}),!!n&&(0,V.jsx)(f_,{children:n}),u&&t?.children?(0,V.jsx)(m_,{...t,children:t.children}):null]}),!u&&t?.children?(0,V.jsx)(m_,{...t,children:t.children}):null,(0,V.jsx)(p_,{})]})},[u,i,o]);return(0,V.jsx)(Yg,{className:J(t,l?.region()),"data-slot":`toast-region`,queue:p,style:{"--gap":`${n}px`,"--placement":i,"--scale-factor":o,"--toast-width":typeof s==`number`?`${s}px`:s},...c,children:t=>{let r=t.toast.content,a={...t,isLoading:r?.isLoading??!1};return(0,V.jsx)(s_,{value:{gap:n,heightsByKey:d,maxVisibleToasts:m,onToastHeightChange:h,onToastHeightRemove:g,placement:i,scaleFactor:o,slots:l,width:s},children:e===void 0?_(t):typeof e==`function`?e(a):e})}})};h_.displayName=`HeroUI.ToastProvider`;var g_=Object.assign(c_,{Provider:h_,Content:l_,Indicator:u_,Title:d_,Description:f_,ActionButton:m_,CloseButton:p_,Queue:e_,toast:n_});function __(e,t,n){let{labelProps:r,inputProps:i,isSelected:a,...o}=Gm(e,t,n);return{labelProps:r,inputProps:{...i,role:`switch`,checked:a},isSelected:a,...o}}var v_=(0,v.createContext)(null),y_=(0,v.createContext)(null),b_=(0,v.createContext)(null),x_=(0,v.forwardRef)(function(e,t){let{inputRef:n=null,...r}=e;[e,t]=Ci(r,t,v_);let{validationBehavior:i}=Si(xf)||{},a=e.validationBehavior??i??`native`,o=nt(ze(n,e.inputRef===void 0?null:e.inputRef)),s=Nm(e),c=__({...Ti(e),children:typeof e.children==`function`?!0: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=B(e,{global:!0});return delete y.id,delete y.onClick,v.createElement(K.div,{...z(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(bi,{values:[[y_,s],[b_,{...c,inputRef:o,defaultClassName:`react-aria-SwitchButton`,isRequired:e.isRequired}],[_u,{slots:{description:l,errorMessage:u}}],[of,{isInvalid:m,validationDetails:h,validationErrors:g}]]},_.children))}),S_=(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)(b_),{isFocused:f,isFocusVisible:p,focusProps:m}=eo(),h=a||o,g=(0,v.useContext)(y_),{hoverProps:_,isHovered:y}=q({...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=B(e,{global:!0});return delete x.id,delete x.onClick,v.createElement(K.label,{...z(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(al,{elementType:`span`},v.createElement(`input`,{...z(r,m),ref:l})),b.children)}),C_=(0,v.createContext)({}),w_=({children:e,className:t,size:n,...r})=>{let i=v.useMemo(()=>mi({size:n}),[n]);return(0,V.jsx)(x_,{"data-slot":`switch`,...r,className:J(t,i.base()),children:t=>(0,V.jsx)(C_,{value:{slots:i,state:t},children:typeof e==`function`?e(t):e})})};w_.displayName=`HeroUI.Switch`;var T_=({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(C_);return(0,V.jsx)(S_,{"data-slot":`switch-content`,...n,className:J(t,r?.content()),children:e})};T_.displayName=`HeroUI.Switch.Content`;var E_=({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(C_);return(0,V.jsx)($t.span,{className:Y(r?.control,t),"data-slot":`switch-control`,...n,children:e})};E_.displayName=`HeroUI.Switch.Control`;var D_=({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(C_);return(0,V.jsx)($t.span,{className:Y(r?.thumb,t),"data-slot":`switch-thumb`,...n,children:e})};D_.displayName=`HeroUI.Switch.Thumb`;var O_=({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(C_);return(0,V.jsx)($t.span,{className:Y(r?.icon,t),"data-slot":`switch-icon`,...n,children:e})};O_.displayName=`HeroUI.Switch.Icon`;var k_=Object.assign(w_,{Root:w_,Content:T_,Control:E_,Thumb:D_,Icon:O_}),A_=new WeakMap;function j_(e,t,n){return e?(typeof t==`string`&&(t=t.replace(/\s+/g,``)),`${A_.get(e)}-${n}-${t}`):``}function M_(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}=yd({selectionManager:o,key:r,ref:n,isDisabled:l,shouldSelectOnPressUp:a??u?.props.href!=null,linkBehavior:`selection`}),p=j_(t,r,`tab`),m=j_(t,r,`tabpanel`),{tabIndex:h}=d,g=B(u?.props,{labelable:!0});delete g.id;let _=se(u?.props),{focusableProps:v}=Ma({...u?.props,isDisabled:l},n);return{tabProps:z(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 N_(e,t){let n=t?.isDisabled,[r,i]=(0,v.useState)(!1);return L(()=>{if(e?.current&&!n){let t=()=>{e.current&&i(!!Ws(e.current,{tabbable:!0}).nextNode())};t();let n=new MutationObserver(t);return n.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:[`tabIndex`,`disabled`]}),()=>{n.disconnect()}}}),n?!1:r}function P_(e,t,n){let r=N_(n)?void 0:0,i=j_(t,e.id??t?.selectedKey,`tabpanel`);return{tabPanelProps:z(tt({...e,id:i,"aria-labelledby":j_(t,t?.selectedKey,`tab`)}),{tabIndex:r,role:`tabpanel`,"aria-describedby":e[`aria-describedby`],"aria-details":e[`aria-details`]})}}var F_=class{constructor(e,t,n,r=new Set){this.collection=e,this.flipDirection=t===`rtl`&&n===`horizontal`,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));return t}getPreviousKey(e){let t=e;do t=this.collection.getKeyBefore(t),t??=this.collection.getLastKey();while(t!=null&&this.isDisabled(t));return t}};function I_(e,t,n){let{orientation:r=`horizontal`,keyboardActivation:i=`automatic`}=e,{collection:a,selectionManager:o,disabledKeys:s}=t,{direction:c}=Gi(),{collectionProps:l}=pd({ref:n,selectionManager:o,keyboardDelegate:(0,v.useMemo)(()=>new F_(a,c,r,s),[a,s,r,c]),selectOnFocus:i===`automatic`,disallowEmptySelection:!0,scrollRef:n,linkBehavior:`selection`}),u=we();return A_.set(t,u),{tabListProps:{...z(l,tt({...e,id:u})),role:`tablist`,"aria-orientation":r,tabIndex:void 0}}}function L_(e){let[t,n]=po(e.selectedKey,e.defaultSelectedKey??null,e.onSelectionChange),r=(0,v.useMemo)(()=>t==null?[]:[t],[t]),{collection:i,disabledKeys:a,selectionManager:o}=gp({...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 R_(e){let t=L_({...e,onSelectionChange:e.onSelectionChange?t=>{t!=null&&e.onSelectionChange?.(t)}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:e.defaultSelectedKey??z_(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=z_(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 z_(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 B_=(0,v.createContext)(null),V_=(0,v.createContext)(null),H_=(0,v.forwardRef)(function(e,t){[e,t]=Ci(e,t,B_);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(Il,{content:n},n=>v.createElement(U_,{props:e,collection:n,tabsRef:t}))});function U_({props:e,tabsRef:t,collection:n}){let{orientation:r=`horizontal`}=e,i=R_({...e,collection:n,children:void 0}),{focusProps:a,isFocused:o,isFocusVisible:s}=eo({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=B(e,{global:!0});return v.createElement(K.div,{...z(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(bi,{values:[[B_,e],[V_,i]]},l.children))}var W_=(0,v.forwardRef)(function(e,t){return(0,v.useContext)(V_)?v.createElement(G_,{props:e,forwardedRef:t}):v.createElement(Jl,e)});function G_({props:e,forwardedRef:t}){let n=(0,v.useContext)(V_),{CollectionRoot:r}=(0,v.useContext)(eu),{orientation:i=`horizontal`,keyboardActivation:a=`automatic`}=Si(B_),o=nt(t),{tabListProps:s}=I_({...e,orientation:i,keyboardActivation:a},n,o),c=G({...e,children:null,defaultClassName:`react-aria-TabList`,values:{orientation:i,state:n}}),l=B(e,{global:!0});return delete l.id,v.createElement(K.div,{...z(l,c,s),ref:o,"data-orientation":i||void 0},v.createElement(uu,null,v.createElement(r,{collection:n.collection,persistedKeys:tu(n.selectionManager.focusedKey)})))}var K_=Wl(class extends bl{static{this.type=`item`}},(e,t,n)=>{let r=(0,v.useContext)(V_),i=nt(t),{tabProps:a,isSelected:o,isDisabled:s,isPressed:c}=M_({key:n.key,...e},r,i),{focusProps:l,isFocused:u,isFocusVisible:d}=eo(),{hoverProps:f,isHovered:p}=q({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=B(e,{global:!0});return delete g.id,delete g.onClick,v.createElement(h,{...z(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(fu.Provider,{value:{isSelected:o}},m.children))}),q_=Ai(function(e,t){let n=(0,v.useContext)(V_),r=nt(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=jt(r,i);return!i&&!e.shouldForceMount&&!s?null:v.createElement(J_,{...e,tabPanelRef:r,isInitiallySelected:a||!1,isExiting:s})});function J_(e){let t=(0,v.useContext)(V_),{id:n,tabPanelRef:r,isInitiallySelected:i,isExiting:a,...o}=e,{tabPanelProps:s}=P_(e,t,r),{focusProps:c,isFocused:l,isFocusVisible:u}=eo(),d=t.selectedKey===e.id,f=At(r)&&!i,p=G({...e,defaultClassName:`react-aria-TabPanel`,values:{isFocused:l,isFocusVisible:u,isInert:Ot(!d),isEntering:f,isExiting:a,state:t}}),m=B(o,{global:!0});delete m.id;let h=d?z(m,s,c,p):z(m,p);return v.createElement(K.div,{...h,ref:r,"data-focused":l||void 0,"data-focus-visible":u||void 0,inert:Ot(!d||e.inert),"data-inert":d?void 0:`true`,"data-entering":f||void 0,"data-exiting":a||void 0},v.createElement(bi,{values:[[B_,null],[V_,null]]},v.createElement(eu.Provider,{value:Zl},p.children)))}var Y_=(0,v.createContext)({}),X_=({children:e,className:t,orientation:n=`horizontal`,variant:r,...i})=>{let a=v.useMemo(()=>hi({variant:r}),[r]);return(0,V.jsx)(Y_,{value:{orientation:n,slots:a},children:(0,V.jsx)(H_,{...i,className:J(t,a.base()),"data-slot":`tabs`,orientation:n,children:e})})},Z_=Object.assign(X_,{Root:X_,ListContainer:({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Y_);return(0,V.jsx)($t.div,{className:Y(r?.tabListContainer,t),"data-slot":`tabs-list-container`,...n,children:e})},List:({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Y_);return(0,V.jsx)(W_,{...n,className:J(t,r?.tabList()),"data-slot":`tabs-list`,children:e})},Tab:({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Y_);return(0,V.jsx)(K_,{...n,className:J(t,r?.tab()),"data-slot":`tabs-tab`,children:e})},Indicator:({className:e,...t})=>{let{slots:n}=(0,v.useContext)(Y_);return(0,V.jsx)(pu,{className:Y(n?.tabIndicator,e),"data-slot":`tabs-indicator`,...t})},Separator:({className:e,...t})=>{let{slots:n}=(0,v.useContext)(Y_);return(0,V.jsx)($t.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.useContext)(Y_);return(0,V.jsx)(q_,{...n,className:J(t,r?.tabPanel()),"data-slot":`tabs-panel`,children:e})}}),Q_=v.createContext(null);function $_(e){let{children:t}=e,n=(0,v.useContext)(Q_),[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(Q_.Provider,{value:a},t)}function ev(){let e=(0,v.useContext)(Q_);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function tv(e){let{modalProviderProps:t}=ev();return v.createElement(`div`,{"data-overlay-container":!0,...e,...t})}function nv(e){return v.createElement($_,null,v.createElement(tv,e))}function rv(e){let t=ye(),{portalContainer:n=t?null:document.body,...r}=e,{getContainer:i}=dl();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(nv,r);return kt.createPortal(a,n)}var iv=1500,av=500,ov={},sv=0,cv=!1,lv=null,uv=null;function dv(e={}){let{delay:t=iv,closeDelay:n=av}=e,{isOpen:r,open:i,close:a}=hl(e),o=(0,v.useMemo)(()=>`${++sv}`,[]),s=(0,v.useRef)(null),c=(0,v.useRef)(a),l=()=>{ov[o]=f},u=()=>{for(let e in ov)e!==o&&(ov[e](!0),delete ov[e])},d=()=>{s.current&&clearTimeout(s.current),s.current=null,u(),l(),cv=!0,i(),lv&&=(clearTimeout(lv),null),uv&&=(clearTimeout(uv),null)},f=e=>{e||n<=0?(s.current&&clearTimeout(s.current),s.current=null,c.current()):s.current||=setTimeout(()=>{s.current=null,c.current()},n),lv&&=(clearTimeout(lv),null),cv&&(uv&&clearTimeout(uv),uv=setTimeout(()=>{delete ov[o],uv=null,cv=!1},Math.max(av,n)))},p=()=>{u(),l(),!r&&!cv?(lv&&clearTimeout(lv),lv=setTimeout(()=>{lv=null,cv=!0,d()},t)):r||d()};return(0,v.useEffect)(()=>{c.current=a},[a]),(0,v.useEffect)(()=>()=>{s.current&&clearTimeout(s.current),ov[o]&&delete ov[o]},[o]),{isOpen:r,open:e=>{!e&&t>0&&!s.current?p():d()},close:f}}function fv(e,t){let n=B(e,{labelable:!0}),{hoverProps:r}=q({onHoverStart:()=>t?.open(!0),onHoverEnd:()=>t?.close()});return{tooltipProps:z(n,r,{role:`tooltip`})}}function pv(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`&&(ba()===`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=()=>{ya()&&(c.current=!0,l())},h=()=>{c.current=!1,s.current=!1,u(!0)},{hoverProps:g}=q({isDisabled:r,onHoverStart:d,onHoverEnd:f}),{focusableProps:_}=Ma({isDisabled:r,onFocus:m,onBlur:h},n);return{triggerProps:{"aria-describedby":t.isOpen?o:void 0,...z(_,g,{onPointerDown:p,onKeyDown:p}),tabIndex:void 0},tooltipProps:{id:o}}}var mv=(0,v.createContext)(null),hv=(0,v.createContext)(null);function gv(e){let t=dv(e),n=(0,v.useRef)(null),{triggerProps:r,tooltipProps:i}=pv(e,t,n);return v.createElement(bi,{values:[[mv,t],[hv,{...i,triggerRef:n}]]},v.createElement(ja,{...r,ref:n},e.children))}var _v=(0,v.forwardRef)(function({UNSTABLE_portalContainer:e,...t},n){[t,n]=Ci(t,n,hv);let r=(0,v.useContext)(mv),i=dv(t),a=t.isOpen!=null||t.defaultOpen!=null||!r?i:r,o=jt(n,a.isOpen)||t.isExiting||!1;return!a.isOpen&&!o?null:v.createElement(rv,{portalContainer:e},v.createElement(vv,{...t,tooltipRef:n,isExiting:o}))});function vv(e){let t=(0,v.useContext)(mv),n=(0,v.useRef)(null),{overlayProps:r,arrowProps:i,placement:a,triggerAnchorPoint:o}=vs({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=At(e.tooltipRef,!!a)||e.isEntering||!1,c=G({...e,defaultClassName:`react-aria-Tooltip`,values:{placement:a,isEntering:s,isExiting:e.isExiting,state:t}});e=z(e,r);let{tooltipProps:l}=fv(e,t),u=B(e,{global:!0});return v.createElement(K.div,{...z(u,c,l),ref:e.tooltipRef,style:{...r.style,"--trigger-anchor-point":o?`${o.x}px ${o.y}px`:void 0,...c.style},"data-placement":a??void 0,"data-entering":s||void 0,"data-exiting":e.isExiting||void 0},v.createElement(zo.Provider,{value:{...i,placement:a,ref:n}},c.children))}var yv=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},bv=(0,v.createContext)({}),xv=({children:e,closeDelay:t,delay:n,...r})=>{let i=v.useMemo(()=>vi(),[]),a=Gh(`--tooltip-delay`),o=Gh(`--tooltip-close-delay`),s=n??yv(a),c=t??yv(o);return(0,V.jsx)(bv,{value:{slots:i},children:(0,V.jsx)(gv,{closeDelay:c,"data-slot":`tooltip-root`,delay:s,...r,children:e})})},Sv=Object.assign(xv,{Root:xv,Trigger:({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(bv),i=(0,v.useRef)(null),{focusableProps:a}=Ma({},i);return(0,V.jsx)($t.div,{ref:i,className:Y(r?.trigger,t),"data-slot":`tooltip-trigger`,role:`button`,...z(a,n),children:e})},Content:({children:e,className:t,offset:n,showArrow:r=!1,...i})=>{let{slots:a}=(0,v.useContext)(bv),o=n||(r?7:3);return(0,V.jsx)(_v,{...i,className:J(t,a?.base()),offset:o,children:e})},Arrow:({children:e,className:t,...n})=>{let r=(0,V.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,V.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,V.jsx)(Bo,{"data-slot":`tooltip-arrow`,...n,className:t,children:i})}}),Cv=(0,v.createContext)({}),wv=(0,v.createContext)(null),Tv=Ai(function(e,t){[e,t]=Ci(e,t,wv);let{validationBehavior:n}=Si(xf)||{},r=e.validationBehavior??n??`native`,i=(0,v.useRef)(null);[e,i]=Ci(e,i,su);let[a,o]=wi(!e[`aria-label`]&&!e[`aria-labelledby`]),[s,c]=(0,v.useState)(`input`),{labelProps:l,inputProps:u,descriptionProps:d,errorMessageProps:f,...p}=vh({...Ti(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=B(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(bi,{values:[[Mi,{...l,ref:a}],[hh,{...u,ref:m}],[Cv,{...u,ref:m}],[rf,{role:`presentation`,isInvalid:p.isInvalid,isDisabled:e.isDisabled||!1}],[_u,{slots:{description:d,errorMessage:f}}],[of,p]]},h.children))}),Ev=(0,v.createContext)({}),Dv=({children:e,className:t,fullWidth:n,variant:r,...i})=>{let a=v.useMemo(()=>gi({fullWidth:n}),[n]);return(0,V.jsx)(Tv,{"data-slot":`textfield`,...i,className:J(t,a),children:t=>(0,V.jsx)(Ev,{value:{variant:r},children:(0,V.jsx)(V.Fragment,{children:typeof e==`function`?e(t):e})})})},Ov=({className:e,fullWidth:t,variant:n,...r})=>{let i=(0,v.useContext)(Ev),a=(0,v.useContext)(yh);return(0,V.jsx)(_h,{className:J(e,ri({fullWidth:t,variant:n??i.variant??a.variant})),"data-slot":`input`,...r})},kv=Object.assign(Ov,{Root:Ov}),Av=Object.assign(Dv,{Root:Dv}),jv=({children:e,className:t,isDisabled:n,isInvalid:r,isRequired:i,...a})=>(0,V.jsx)(Ni,{className:ii({isRequired:i,isDisabled:n,isInvalid:r,className:t}),"data-slot":`label`,...a,children:e}),Mv=Object.assign(jv,{Root:jv}),Nv=({children:e,className:t,...n})=>(0,V.jsx)(vu,{className:ei({className:t}),"data-slot":`description`,slot:`description`,...n,children:e}),Pv=Object.assign(Nv,{Root:Nv}),Fv=({children:e,className:t,...n})=>(0,V.jsx)(sf,{"data-visible":!0,className:J(t,ni()),"data-slot":`field-error`,...n,children:t=>typeof e==`function`?e(t):e}),Iv=Object.assign(Fv,{Root:Fv}),Lv=({...e})=>(0,V.jsx)(Sf,{...e}),Rv=Object.assign(Lv,{Root:Lv}),zv=(0,v.createContext)({}),Bv=({children:e,className:t,variant:n,...r})=>{let i=v.useMemo(()=>oi({variant:n}),[n]);return(0,V.jsx)(Ep,{className:J(t,i.item()),"data-slot":`list-box-item`,...r,children:t=>(0,V.jsx)(zv,{value:{slots:i,state:t},children:typeof e==`function`?e(t):e})})},Vv=({children:e,className:t,...n})=>{let{slots:r,state:i}=(0,v.useContext)(zv),a=i?.isSelected,o=typeof e==`function`?e(i??{}):e||(0,V.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,V.jsx)(`polyline`,{points:`1 9 7 14 15 4`})});return(0,V.jsx)($t.span,{"aria-hidden":`true`,className:Y(r?.indicator,t),"data-slot":`list-box-item-indicator`,"data-visible":a||void 0,...n,children:o})},Hv=Object.assign(Bv,{Root:Bv,Indicator:Vv}),Uv=({children:e,className:t,...n})=>(0,V.jsx)(Tp,{className:v.useMemo(()=>si({class:typeof t==`string`?t:void 0}),[t]),...n,children:e});function Wv({className:e,variant:t,...n}){return(0,V.jsx)(xp,{className:J(e,v.useMemo(()=>ai({variant:t}),[t])),"data-slot":`list-box`,...n})}var Gv=Object.assign(Wv,{Root:Wv,Item:Hv,ItemIndicator:Vv,Section:Uv}),Kv=(0,v.createContext)({}),qv=({children:e,state:t,...n})=>(0,V.jsx)(Kv,{value:(0,v.useMemo)(()=>({slots:ci(),placement:void 0}),[]),children:(0,V.jsx)(Wd,{"data-slot":`modal-root`,...z(n,(0,v.useMemo)(()=>t?{isOpen:t.isOpen,onOpenChange:t.setOpen}:{},[t])),children:e})}),Jv=Object.assign(qv,{Root:qv,Trigger:({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Kv);return(0,V.jsx)(ef,{children:(0,V.jsx)($t.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.useContext)(Kv),s=(0,v.useMemo)(()=>ci({variant:i}),[i]),c=(0,v.useMemo)(()=>({slots:{...o,...s}}),[o,s]);return(0,V.jsx)(Zd,{className:J(t,s?.backdrop()),"data-slot":`modal-backdrop`,isDismissable:n,onClick:e=>{e.stopPropagation(),r?.(e)},...a,children:t=>(0,V.jsxs)(Kv,{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.useContext)(Kv),s=(0,v.useMemo)(()=>ci({scroll:r,size:i}),[r,i]),c=(0,v.useMemo)(()=>({placement:n,slots:{...o,...s}}),[o,n,s]);return(0,V.jsx)(Yd,{className:J(t,s?.container()),"data-placement":n,"data-slot":`modal-container`,...a,children:t=>(0,V.jsx)(Kv,{value:c,children:typeof e==`function`?e(t):e})})},Dialog:({children:e,className:t,...n})=>{let{placement:r,slots:i}=(0,v.useContext)(Kv);return(0,V.jsx)(Po,{value:{variant:`default`},children:(0,V.jsx)(Gd,{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.useContext)(Kv);return(0,V.jsx)($t.div,{className:Y(r?.header,t),"data-slot":`modal-header`,...n,children:e})},Icon:({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Kv);return(0,V.jsx)($t.div,{className:Y(r?.icon,t),"data-slot":`modal-icon`,...n,children:e})},Heading:({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Kv);return(0,V.jsx)(wo,{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.useContext)(Kv);return(0,V.jsx)($t.div,{className:Y(r?.body,t),"data-slot":`modal-body`,...n,children:e})},Footer:({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Kv);return(0,V.jsx)($t.div,{className:Y(r?.footer,t),"data-slot":`modal-footer`,...n,children:e})},CloseTrigger:({className:e,...t})=>{let{slots:n}=(0,v.useContext)(Kv);return(0,V.jsx)(nf,{className:J(e,n?.closeTrigger()),"data-slot":`modal-close-trigger`,slot:`close`,...t})}}),Yv=(0,v.createContext)({}),Xv=({children:e,className:t,fullWidth:n,variant:r,...i})=>{let a=v.useMemo(()=>di({fullWidth:n,variant:r}),[n,r]);return(0,V.jsx)(Yv,{value:{slots:a},children:(0,V.jsx)(Gp,{"data-slot":`select`,...i,className:J(t,a?.base()),children:t=>(0,V.jsx)(V.Fragment,{children:typeof e==`function`?e(t):e})})})},Zv=Object.assign(Xv,{Root:Xv,Trigger:({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Yv);return(0,V.jsx)(so,{className:J(t,r?.trigger()),"data-slot":`select-trigger`,...n,children:t=>(0,V.jsx)(V.Fragment,{children:typeof e==`function`?e(t):e})})},Value:({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Yv);return(0,V.jsx)(Yp,{className:J(t,r?.value()),"data-slot":`select-value`,...n,children:e})},Indicator:({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Yv),i=(0,v.useContext)(Wp);return e&&v.isValidElement(e)?v.cloneElement(e,{...n,className:Y(r?.indicator,t),"data-slot":`select-indicator`,"data-open":To(i?.isOpen)}):(0,V.jsx)(Eo,{className:Y(r?.indicator,t),"data-open":To(i?.isOpen),"data-slot":`select-default-indicator`,...n})},Popover:({children:e,className:t,placement:n=`bottom`,...r})=>{let{slots:i}=(0,v.useContext)(Yv);return(0,V.jsx)(Po,{value:{variant:`default`},children:(0,V.jsx)(vl,{...r,className:J(t,i?.popover()),"data-slot":`select-popover`,placement:n,children:e})})}}),Qv=(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])}},$v=function(e){return function(t,n){var r=(0,v.useRef)(!1);e(function(){return function(){r.current=!1}},[]),e(function(){if(!r.current)r.current=!0;else return t()},n)}},ey=function(){return ey=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ey.apply(this,arguments)};function ty(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 ny(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())})}function ry(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function iy(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function ay(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var oy=function(e){return typeof e==`function`},sy=function(e){var t=(0,v.useRef)(e);t.current=(0,v.useMemo)(function(){return e},[e]);var n=(0,v.useRef)(void 0);return n.current||=function(){var e=[...arguments];return t.current.apply(this,e)},n.current},cy=$v(v.useEffect),ly=function(e,t){var n=t.manual,r=t.ready,i=r===void 0?!0:r,a=t.defaultParams,o=a===void 0?[]:a,s=t.refreshDeps,c=s===void 0?[]:s,l=t.refreshDepsAction,u=(0,v.useRef)(!1);return u.current=!1,cy(function(){!n&&i&&(u.current=!0,e.run.apply(e,ay([],iy(o),!1)))},[i]),cy(function(){u.current||n||(u.current=!0,l?l():e.refresh())},ay([],iy(c),!1)),{onBefore:function(){if(!i)return{stopNow:!0}}}};ly.onInit=function(e){var t=e.ready,n=t===void 0?!0:t;return{loading:!e.manual&&n}};function uy(e,t){if(e===t)return!0;for(var n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}var dy=function(e,t){var n=(0,v.useRef)({deps:t,obj:void 0,initialized:!1}).current;return(n.initialized===!1||!uy(n.deps,t))&&(n.deps=t,n.obj=e(),n.initialized=!0),n.obj};function fy(e){var t=(0,v.useRef)(e);return t.current=e,t}var py=function(e){var t=fy(e);(0,v.useEffect)(function(){return function(){t.current()}},[])},my=new Map,hy=function(e,t,n){var r=my.get(e);r?.timer&&clearTimeout(r.timer);var i=void 0;t>-1&&(i=setTimeout(function(){my.delete(e)},t)),my.set(e,ey(ey({},n),{timer:i}))},gy=function(e){return my.get(e)},_y=new Map,vy=function(e){return _y.get(e)},yy=function(e,t){_y.set(e,t),t.then(function(t){return _y.delete(e),t}).catch(function(){_y.delete(e)})},by={},xy=function(e,t){by[e]&&by[e].forEach(function(e){return e(t)})},Sy=function(e,t){return by[e]||(by[e]=[]),by[e].push(t),function(){var n=by[e].indexOf(t);by[e].splice(n,1)}},Cy=function(e,t){var n=t.cacheKey,r=t.cacheTime,i=r===void 0?300*1e3:r,a=t.staleTime,o=a===void 0?0:a,s=t.setCache,c=t.getCache,l=(0,v.useRef)(void 0),u=(0,v.useRef)(void 0),d=function(e,t){s?s(t):hy(e,i,t),xy(e,t.data)},f=function(e,t){return t===void 0&&(t=[]),c?c(t):gy(e)};return dy(function(){if(n){var t=f(n);t&&Object.hasOwnProperty.call(t,`data`)&&(e.state.data=t.data,e.state.params=t.params,(o===-1||Date.now()-t.time<=o)&&(e.state.loading=!1)),l.current=Sy(n,function(t){e.setState({data:t})})}},[]),py(function(){var e;(e=l.current)==null||e.call(l)}),n?{onBefore:function(e){var t=f(n,e);return!t||!Object.hasOwnProperty.call(t,`data`)?{}:o===-1||Date.now()-t.time<=o?{loading:!1,data:t?.data,error:void 0,returnNow:!0}:{data:t?.data,error:void 0}},onRequest:function(e,t){var r=vy(n);return r&&r!==u.current?{servicePromise:r}:(r=e.apply(void 0,ay([],iy(t),!1)),u.current=r,yy(n,r),{servicePromise:r})},onSuccess:function(t,r){var i;n&&((i=l.current)==null||i.call(l),d(n,{data:t,params:r,time:Date.now()}),l.current=Sy(n,function(t){e.setState({data:t})}))},onMutate:function(t){var r;n&&((r=l.current)==null||r.call(l),d(n,{data:t,params:e.state.params,time:Date.now()}),l.current=Sy(n,function(t){e.setState({data:t})}))}}:{}},wy=o(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),Ty=o(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),Ey=o(((e,t)=>{var n=Ty(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),Dy=o(((e,t)=>{var n=Ey();t.exports=function(){return n.Date.now()}})),Oy=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})),ky=o(((e,t)=>{var n=Oy(),r=/^\s+/;function i(e){return e&&e.slice(0,n(e)+1).replace(r,``)}t.exports=i})),Ay=o(((e,t)=>{t.exports=Ey().Symbol})),jy=o(((e,t)=>{var n=Ay(),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})),My=o(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),Ny=o(((e,t)=>{var n=Ay(),r=jy(),i=My(),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})),Py=o(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),Fy=o(((e,t)=>{var n=Ny(),r=Py(),i=`[object Symbol]`;function a(e){return typeof e==`symbol`||r(e)&&n(e)==i}t.exports=a})),Iy=o(((e,t)=>{var n=ky(),r=wy(),i=Fy(),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})),Ly=o(((e,t)=>{var n=wy(),r=Dy(),i=Iy(),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})),Ry=l(Ly()),zy=function(e,t){var n=t.debounceWait,r=t.debounceLeading,i=t.debounceTrailing,a=t.debounceMaxWait,o=(0,v.useRef)(void 0),s=(0,v.useMemo)(function(){var e={};return r!==void 0&&(e.leading=r),i!==void 0&&(e.trailing=i),a!==void 0&&(e.maxWait=a),e},[r,i,a]);return(0,v.useEffect)(function(){if(n){var t=e.runAsync.bind(e);return o.current=(0,Ry.default)(function(e){e()},n,s),e.runAsync=function(){var e=[...arguments];return new Promise(function(n,r){var i;(i=o.current)==null||i.call(o,function(){t.apply(void 0,ay([],iy(e),!1)).then(n).catch(r)})})},function(){var n;(n=o.current)==null||n.cancel(),e.runAsync=t}}},[n,s]),n?{onCancel:function(){var e;(e=o.current)==null||e.cancel()}}:{}},By=function(e,t){var n=t.loadingDelay,r=t.ready,i=(0,v.useRef)(void 0);if(!n)return{};var a=function(){i.current&&clearTimeout(i.current)};return{onBefore:function(){return a(),r!==!1&&(i.current=setTimeout(function(){e.setState({loading:!0})},n)),{loading:!1}},onFinally:function(){a()},onCancel:function(){a()}}},Vy=!!(typeof window<`u`&&window.document&&window.document.createElement);function Hy(){return Vy?document.visibilityState!==`hidden`:!0}var Uy=new Set;function Wy(e){return Uy.add(e),function(){Uy.has(e)&&Uy.delete(e)}}Vy&&window.addEventListener(`visibilitychange`,function(){Hy()&&Uy.forEach(function(e){return e()})},!1);var Gy=function(e,t){var n=t.pollingInterval,r=t.pollingWhenHidden,i=r===void 0?!0:r,a=t.pollingErrorRetryCount,o=a===void 0?-1:a,s=(0,v.useRef)(void 0),c=(0,v.useRef)(void 0),l=(0,v.useRef)(0),u=function(){var e;s.current&&clearTimeout(s.current),(e=c.current)==null||e.call(c)};return cy(function(){n||u()},[n]),n?{onBefore:function(){u()},onError:function(){l.current+=1},onSuccess:function(){l.current=0},onFinally:function(){o===-1||o!==-1&&l.current<=o?s.current=setTimeout(function(){!i&&!Hy()?c.current=Wy(function(){e.refresh()}):e.refresh()},n):l.current=0},onCancel:function(){u()}}:{}};function Ky(e,t){var n=!1;return function(){var r=[...arguments];n||(n=!0,e.apply(void 0,ay([],iy(r),!1)),setTimeout(function(){n=!1},t))}}var qy=function(){return Vy&&navigator.onLine!==void 0?navigator.onLine:!0},Jy=new Set;function Yy(e){return Jy.add(e),function(){Jy.has(e)&&Jy.delete(e)}}if(Vy){var Xy=function(){!Hy()||!qy()||Jy.forEach(function(e){return e()})};window.addEventListener(`visibilitychange`,Xy,!1),window.addEventListener(`focus`,Xy,!1)}var Zy=function(e,t){var n=t.refreshOnWindowFocus,r=t.focusTimespan,i=r===void 0?5e3:r,a=(0,v.useRef)(void 0),o=function(){var e;(e=a.current)==null||e.call(a)};return(0,v.useEffect)(function(){if(n){var t=Ky(e.refresh.bind(e),i);a.current=Yy(function(){t()})}return function(){o()}},[n,i]),py(function(){o()}),{}},Qy=function(e,t){var n=t.retryInterval,r=t.retryCount,i=(0,v.useRef)(void 0),a=(0,v.useRef)(0),o=(0,v.useRef)(!1);return r?{onBefore:function(){o.current||(a.current=0),o.current=!1,i.current&&clearTimeout(i.current)},onSuccess:function(){a.current=0},onError:function(){if(a.current+=1,r===-1||a.current<=r){var t=n??Math.min(1e3*2**a.current,3e4);i.current=setTimeout(function(){o.current=!0,e.refresh()},t)}else a.current=0},onCancel:function(){a.current=0,i.current&&clearTimeout(i.current)}}:{}},$y=l(o(((e,t)=>{var n=Ly(),r=wy(),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}))()),eb=function(e,t){var n=t.throttleWait,r=t.throttleLeading,i=t.throttleTrailing,a=(0,v.useRef)(void 0),o={};return r!==void 0&&(o.leading=r),i!==void 0&&(o.trailing=i),(0,v.useEffect)(function(){if(n){var t=e.runAsync.bind(e);return a.current=(0,$y.default)(function(e){e()},n,o),e.runAsync=function(){var e=[...arguments];return new Promise(function(n,r){var i;(i=a.current)==null||i.call(a,function(){t.apply(void 0,ay([],iy(e),!1)).then(n).catch(r)})})},function(){var n;e.runAsync=t,(n=a.current)==null||n.cancel()}}},[n,r,i]),n?{onCancel:function(){var e;(e=a.current)==null||e.cancel()}}:{}},tb=function(e){(0,v.useEffect)(function(){var t=e?.();if(!(t&&typeof t==`object`&&typeof t.then==`function`))return t},[])},nb=function(){var e=iy((0,v.useState)({}),2)[1];return sy(function(){return e({})})},rb=function(){function e(e,t,n,r){r===void 0&&(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=ey(ey(ey({},this.state),{loading:!t.manual}),r)}return e.prototype.setState=function(e){e===void 0&&(e={}),this.state=ey(ey({},this.state),e),this.subscribe()},e.prototype.runPluginHandler=function(e){var t=[...arguments].slice(1),n=this.pluginImpls.map(function(n){var r;return(r=n[e])?.call.apply(r,ay([n],iy(t),!1))}).filter(Boolean);return Object.assign.apply(Object,ay([{}],iy(n),!1))},e.prototype.runAsync=function(){var e=[...arguments];return ny(this,void 0,void 0,function(){var t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x;return ry(this,function(S){switch(S.label){case 0:if(this.count+=1,t=this.count,n=this.runPluginHandler(`onBefore`,e),r=n.stopNow,i=r===void 0?!1:r,a=n.returnNow,o=a===void 0?!1:a,s=ty(n,[`stopNow`,`returnNow`]),i||(this.setState(ey({loading:!0,params:e},s)),o))return[2,Promise.resolve(s.data)];(p=(f=this.options).onBefore)==null||p.call(f,e),S.label=1;case 1:return S.trys.push([1,3,,4]),c=this.runPluginHandler(`onRequest`,this.serviceRef.current,e).servicePromise,c||=(d=this.serviceRef).current.apply(d,ay([],iy(e),!1)),[4,c];case 2:return l=S.sent(),t===this.count?(this.setState({data:l,error:void 0,loading:!1}),(h=(m=this.options).onSuccess)==null||h.call(m,l,e),this.runPluginHandler(`onSuccess`,l,e),(_=(g=this.options).onFinally)==null||_.call(g,e,l,void 0),t===this.count&&this.runPluginHandler(`onFinally`,e,l,void 0),[2,l]):[2,new Promise(function(){})];case 3:if(u=S.sent(),t!==this.count)return[2,new Promise(function(){})];throw this.setState({error:u,loading:!1}),(y=(v=this.options).onError)==null||y.call(v,u,e),this.runPluginHandler(`onError`,u,e),(x=(b=this.options).onFinally)==null||x.call(b,e,void 0,u),t===this.count&&this.runPluginHandler(`onFinally`,e,void 0,u),u;case 4:return[2]}})})},e.prototype.run=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.runAsync.apply(this,ay([],iy(t),!1)).catch(function(t){e.options.onError||console.error(t)})},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler(`onCancel`)},e.prototype.refresh=function(){this.run.apply(this,ay([],iy(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,ay([],iy(this.state.params||[]),!1))},e.prototype.mutate=function(e){var t=oy(e)?e(this.state.data):e;this.runPluginHandler(`onMutate`,t),this.setState({data:t})},e}();function ib(e,t,n){t===void 0&&(t={}),n===void 0&&(n=[]);var r=t.manual,i=r===void 0?!1:r,a=t.ready,o=a===void 0?!0:a,s=ty(t,[`manual`,`ready`]),c=ey({manual:i,ready:o},s),l=fy(e),u=nb(),d=dy(function(){var e=n.map(function(e){return(e?.onInit)?.call(e,c)}).filter(Boolean);return new rb(l,c,u,Object.assign.apply(Object,ay([{}],iy(e),!1)))},[]);return d.options=c,d.pluginImpls=n.map(function(e){return e(d,c)}),tb(function(){if(!i&&o){var e=d.state.params||t.defaultParams||[];d.run.apply(d,ay([],iy(e),!1))}}),py(function(){d.cancel()}),{loading:d.state.loading,data:d.state.data,error:d.state.error,params:d.state.params||[],cancel:sy(d.cancel.bind(d)),refresh:sy(d.refresh.bind(d)),refreshAsync:sy(d.refreshAsync.bind(d)),run:sy(d.run.bind(d)),runAsync:sy(d.runAsync.bind(d)),mutate:sy(d.mutate.bind(d))}}function ab(e,t,n){return ib(e,t,ay(ay([],iy(n||[]),!1),[zy,By,Gy,Zy,eb,ly,Cy,Qy],!1))}var ob=ab;function sb(e,t){e===void 0&&(e=!1);var n=iy((0,v.useState)(e),2),r=n[0],i=n[1];return[r,(0,v.useMemo)(function(){var n=t===void 0?!e:t;return{toggle:function(){return i(function(t){return t===e?n:e})},set:function(e){return i(e)},setLeft:function(){return i(e)},setRight:function(){return i(n)}}},[])]}function cb(e){e===void 0&&(e=!1);var t=iy(sb(!!e),2),n=t[0],r=t[1],i=r.toggle,a=r.set;return[n,(0,v.useMemo)(function(){return{toggle:i,set:function(e){return a(!!e)},setTrue:function(){return a(!0)},setFalse:function(){return a(!1)}}},[])]}var lb=function(e){var t=iy((0,v.useState)(e),2),n=t[0],r=t[1];return[n,sy(function(e){r(function(t){var n=oy(e)?e(t):e;return n?ey(ey({},t),n):t})})]},ub=`modulepreload`,db=function(e){return`/kkk/assets/`+e},fb={},pb=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),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}))))}r=o(t.map(t=>{if(t=db(t,n),t in fb)return;fb[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:ub,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}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)})},mb=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,hb=/^[\\/]{2}/;function gb(e,t){return t+e.replace(/\\/g,`/`)}var _b=`popstate`;function vb(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function yb(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return wb(``,{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:Tb(t)}return Db(t,n,null,e)}function bb(e,t){if(e===!1||e==null)throw Error(t)}function xb(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function Sb(){return Math.random().toString(36).substring(2,10)}function Cb(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 wb(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?Eb(t):t,state:n,key:t&&t.key||r||Sb(),mask:i}}function Tb({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 Eb(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 Db(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=vb(e)?e:wb(h.location,e,t);n&&n(r,e),l=u()+1;let d=Cb(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=vb(e)?e:wb(h.location,e,t);n&&n(r,e),l=u();let i=Cb(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 Ob(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(_b,d),c=e,()=>{i.removeEventListener(_b,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 Ob(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),bb(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:Tb(t);return i=i.replace(/ $/,`%20`),!n&&hb.test(i)&&(i=r+i),new URL(i,r)}function kb(e,t,n=`/`){return Ab(e,t,n,!1)}function Ab(e,t,n,r,i){let a=Xb((typeof t==`string`?Eb(t):t).pathname||`/`,n);if(a==null)return null;let o=i??Mb(e),s=null,c=Yb(a);for(let e=0;s==null&&e<o.length;++e)s=Gb(o[e],c,r);return s}function jb(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function Mb(e){let t=Nb(e);return Fb(t),t}function Nb(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;bb(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=ix([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(bb(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),Nb(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:Ub(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=Jb(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 Pb(e.path))a(e,t,!0,n)}),t}function Pb(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=Pb(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 Fb(e){e.sort((e,t)=>e.score===t.score?Wb(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var Ib=/^:[\w-]+$/,Lb=3,Rb=2,zb=1,Bb=10,Vb=-2,Hb=e=>e===`*`;function Ub(e,t){let n=e.split(`/`),r=n.length;return n.some(Hb)&&(r+=Vb),t&&(r+=Rb),n.filter(e=>!Hb(e)).reduce((e,t)=>e+(Ib.test(t)?Lb:t===``?zb:Bb),r)}function Wb(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 Gb(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?qb(u,l,s.matcher,s.compiledParams):Kb(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Kb({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:ix([a,d.pathname]),pathnameBase:ox(ix([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=ix([a,d.pathnameBase]))}return o}function Kb(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Jb(e.path,e.caseSensitive,e.end);return qb(e,t,n,r)}function qb(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function Jb(e,t=!1,n=!0){xb(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 Yb(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return xb(!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 Xb(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 Zb(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?Eb(e):e,a;return n?(n=rx(n),a=n.startsWith(`/`)?Qb(n.substring(1),`/`):Qb(n,t)):a=t,{pathname:a,search:sx(r),hash:cx(i)}}function Qb(e,t){let n=ax(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function $b(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 ex(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function tx(e){let t=ex(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function nx(e,t,n,r=!1){let i;typeof e==`string`?i=Eb(e):(i={...e},bb(!i.pathname||!i.pathname.includes(`?`),$b(`?`,`pathname`,`search`,i)),bb(!i.pathname||!i.pathname.includes(`#`),$b(`#`,`pathname`,`hash`,i)),bb(!i.search||!i.search.includes(`#`),$b(`#`,`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=Zb(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var rx=e=>e.replace(/[\\/]{2,}/g,`/`),ix=e=>rx(e.join(`/`)),ax=e=>e.replace(/\/+$/,``),ox=e=>ax(e).replace(/^\/*/,`/`),sx=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,cx=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,lx=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 ux(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function dx(e){return ix(e.map(e=>e.route.path).filter(Boolean))||`/`}var fx=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function px(e,t){let n=e;if(typeof n!=`string`||!mb.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(fx)try{let e=new URL(window.location.href),r=hb.test(n)?new URL(gb(n,e.protocol)):new URL(n),a=Xb(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{xb(!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 mx=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(mx);var hx=[`GET`,...mx];new Set(hx);var gx=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function _x(e){try{return gx.includes(new URL(e).protocol)}catch{return!1}}var vx=v.createContext(null);vx.displayName=`DataRouter`;var yx=v.createContext(null);yx.displayName=`DataRouterState`;var bx=v.createContext(!1);function xx(){return v.useContext(bx)}var Sx=v.createContext({isTransitioning:!1});Sx.displayName=`ViewTransition`;var Cx=v.createContext(new Map);Cx.displayName=`Fetchers`;var wx=v.createContext(null);wx.displayName=`Await`;var Tx=v.createContext(null);Tx.displayName=`Navigation`;var Ex=v.createContext(null);Ex.displayName=`Location`;var Dx=v.createContext({outlet:null,matches:[],isDataRoute:!1});Dx.displayName=`Route`;var Ox=v.createContext(null);Ox.displayName=`RouteError`;var kx=`REACT_ROUTER_ERROR`,Ax=`REDIRECT`,jx=`ROUTE_ERROR_RESPONSE`;function Mx(e){if(e.startsWith(`${kx}:${Ax}:{`))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 Nx(e){if(e.startsWith(`${kx}:${jx}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new lx(t.status,t.statusText,t.data)}catch{}}function Px(e,{relative:t}={}){bb(Fx(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=v.useContext(Tx),{hash:i,pathname:a,search:o}=Vx(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:ix([n,a])),r.createHref({pathname:s,search:o,hash:i})}function Fx(){return v.useContext(Ex)!=null}function Ix(){return bb(Fx(),`useLocation() may be used only in the context of a <Router> component.`),v.useContext(Ex).location}var Lx=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function Rx(e){v.useContext(Tx).static||v.useLayoutEffect(e)}function zx(){let{isDataRoute:e}=v.useContext(Dx);return e?oS():Bx()}function Bx(){bb(Fx(),`useNavigate() may be used only in the context of a <Router> component.`);let e=v.useContext(vx),{basename:t,navigator:n}=v.useContext(Tx),{matches:r}=v.useContext(Dx),{pathname:i}=Ix(),a=JSON.stringify(tx(r)),o=v.useRef(!1);return Rx(()=>{o.current=!0}),v.useCallback((r,s={})=>{if(xb(o.current,Lx),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=nx(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:ix([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}v.createContext(null);function Vx(e,{relative:t}={}){let{matches:n}=v.useContext(Dx),{pathname:r}=Ix(),i=JSON.stringify(tx(n));return v.useMemo(()=>nx(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Hx(e,t){return Ux(e,t)}function Ux(e,t,n){bb(Fx(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=v.useContext(Tx),{matches:i}=v.useContext(Dx),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||``;cS(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.
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=R(e),n=e.relatedTarget;n&&mt(n)?(n.focus({preventScroll:!0}),oc(n,mt(t))):n||(t.parentElement?.closest(`[tabindex]`))?.focus({preventScroll:!0})},c=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(e){let t=Fe(),n=t!=null&&mt(t);c.call(this,{...e,preventScroll:!0}),(!e||!e.preventScroll)&&oc(this,n)};let l=De(ac(document,`touchstart`,r,{passive:!1,capture:!0}),ac(document,`touchmove`,o,{passive:!1,capture:!0}),ac(document,`blur`,s,!0));return()=>{e(),l(),i.remove(),HTMLElement.prototype.focus=c}}function ic(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function ac(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function oc(e,t){t||!Qs?sc(e):Qs.addEventListener(`resize`,()=>sc(e),{once:!0})}function sc(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let e=ut(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;Qs&&(n=Math.min(n,Qs.offsetTop+Qs.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 cc(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}=Zs({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}=vs({...c,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:a&&!l?t.close:null});return tc({isDisabled:a||!t.isOpen}),(0,v.useEffect)(()=>{if(t.isOpen&&r.current)return a?Ko(i?.current??r.current):Go([i?.current??r.current],{shouldUseInert:!0})},[a,t.isOpen,r,i]),{popoverProps:z(u,f),arrowProps:p,underlayProps:d,placement:m,triggerAnchorPoint:h}}var lc={};lc={dismiss:`تجاهل`};var uc={};uc={dismiss:`Отхвърляне`};var dc={};dc={dismiss:`Odstranit`};var fc={};fc={dismiss:`Luk`};var pc={};pc={dismiss:`Schließen`};var mc={};mc={dismiss:`Απόρριψη`};var hc={};hc={dismiss:`Dismiss`};var gc={};gc={dismiss:`Descartar`};var _c={};_c={dismiss:`Lõpeta`};var vc={};vc={dismiss:`Hylkää`};var yc={};yc={dismiss:`Rejeter`};var bc={};bc={dismiss:`התעלם`};var xc={};xc={dismiss:`Odbaci`};var Sc={};Sc={dismiss:`Elutasítás`};var Cc={};Cc={dismiss:`Ignora`};var wc={};wc={dismiss:`閉じる`};var Tc={};Tc={dismiss:`무시`};var Ec={};Ec={dismiss:`Atmesti`};var Dc={};Dc={dismiss:`Nerādīt`};var Oc={};Oc={dismiss:`Lukk`};var kc={};kc={dismiss:`Negeren`};var Ac={};Ac={dismiss:`Zignoruj`};var jc={};jc={dismiss:`Descartar`};var Mc={};Mc={dismiss:`Dispensar`};var Nc={};Nc={dismiss:`Revocare`};var Pc={};Pc={dismiss:`Пропустить`};var Fc={};Fc={dismiss:`Zrušiť`};var Ic={};Ic={dismiss:`Opusti`};var Lc={};Lc={dismiss:`Odbaci`};var Rc={};Rc={dismiss:`Avvisa`};var zc={};zc={dismiss:`Kapat`};var Bc={};Bc={dismiss:`Скасувати`};var Vc={};Vc={dismiss:`取消`};var Hc={};Hc={dismiss:`關閉`};var Uc={};Uc={"ar-AE":lc,"bg-BG":uc,"cs-CZ":dc,"da-DK":fc,"de-DE":pc,"el-GR":mc,"en-US":hc,"es-ES":gc,"et-EE":_c,"fi-FI":vc,"fr-FR":yc,"he-IL":bc,"hr-HR":xc,"hu-HU":Sc,"it-IT":Cc,"ja-JP":wc,"ko-KR":Tc,"lt-LT":Ec,"lv-LV":Dc,"nb-NO":Oc,"nl-NL":kc,"pl-PL":Ac,"pt-BR":jc,"pt-PT":Mc,"ro-RO":Nc,"ru-RU":Pc,"sk-SK":Fc,"sl-SI":Ic,"sr-SP":Lc,"sv-SE":Rc,"tr-TR":zc,"uk-UA":Bc,"zh-CN":Vc,"zh-TW":Hc};var Wc=Symbol.for(`react-aria.i18n.locale`),Gc=Symbol.for(`react-aria.i18n.strings`),Kc=void 0,qc=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=Jc(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(t){if(typeof window>`u`)return null;let n=window[Wc];if(Kc===void 0){let t=window[Gc];if(!t)return null;Kc={};for(let r in t)Kc[r]=new e({[n]:t[r]},n)}let r=Kc?.[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 Jc(e,t,n=`en-US`){if(t[e])return t[e];let r=Yc(e);if(t[r])return t[r];for(let e in t)if(e.startsWith(r+`-`))return t[e];return t[n]}function Yc(e){return Intl.Locale?new Intl.Locale(e).language:e.split(`-`)[0]}var Xc=new Map,Zc=new Map,Qc=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=Xc.get(i);return a||(a=new Intl.PluralRules(this.locale,{type:n}),Xc.set(i,a)),r=t[a.select(e)]||t.other,typeof r==`function`?r():r}number(e){let t=Zc.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),Zc.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return typeof n==`function`?n():n}},$c=new WeakMap;function el(e){let t=$c.get(e);return t||(t=new qc(e),$c.set(e,t)),t}function tl(e,t){return t&&qc.getGlobalDictionaryForPackage(t)||el(e)}function nl(e,t){let{locale:n}=Gi(),r=tl(e,t);return(0,v.useMemo)(()=>new Qc(n,r),[n,r])}var rl={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 il(e={}){let{style:t,isFocusable:n}=e,[r,i]=(0,v.useState)(!1),{focusWithinProps:a}=$a({isDisabled:!n,onFocusWithinChange:e=>i(e)}),o=(0,v.useMemo)(()=>r?t:t?{...rl,...t}:rl,[r]);return{visuallyHiddenProps:{...a,style:o}}}function al(e){let{children:t,elementType:n=`div`,isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:o}=il(e);return v.createElement(n,z(a,o),t)}function ol(e){return e&&e.__esModule?e.default:e}function sl(e){let{onDismiss:t,...n}=e,r=tt(n,nl(ol(Uc),`@react-aria/overlays`).format(`dismiss`)),i=()=>{t&&t()};return v.createElement(al,null,v.createElement(`button`,{...r,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}var cl=v.forwardRef(({children:e,...t},n)=>{let r=(0,v.useRef)(!1),i=(0,v.useContext)(Ra),a=z(i||{},{...t,register(){r.current=!0,i&&i.register()}});return a.ref=nt(n||i?.ref),ct(i,a.ref),(0,v.useEffect)(()=>{r.current||=!0},[]),v.createElement(Ra.Provider,{value:a},e)});function ll({children:e}){let t=(0,v.useMemo)(()=>({register:()=>{}}),[]);return v.createElement(Ra.Provider,{value:t},e)}var ul=(0,v.createContext)({});function dl(){return(0,v.useContext)(ul)??{}}var fl=v.createContext(null);function pl(e){let t=ye(),{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}=dl();if(!e.portalContainer&&s&&(n=s()),!n)return null;let c=e.children;return e.disableFocusManagement||(c=v.createElement(ws,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},c)),c=v.createElement(fl.Provider,{value:o},v.createElement(ll,null,c)),kt.createPortal(c,n)}function ml(){let e=(0,v.useContext)(fl)?.setContain;L(()=>{e?.(!0)},[e])}function hl(e){let[t,n]=po(e.isOpen,e.defaultOpen||!1,e.onOpenChange);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])}}var gl=(0,v.createContext)(null),_l=(0,v.createContext)(null),vl=(0,v.forwardRef)(function(e,t){[e,t]=Ci(e,t,gl);let n=(0,v.useContext)(Gd),r=hl(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,a=jt(t,i.isOpen)||e.isExiting||!1,o=ji(),{direction:s}=Gi();if(o){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&&!a?null:v.createElement(yl,{...e,triggerRef:e.triggerRef,state:i,popoverRef:t,isExiting:a,dir:s})});function yl({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)(_l),c=s&&i.trigger===`SubmenuTrigger`,{popoverProps:l,underlayProps:u,arrowProps:d,placement:f,triggerAnchorPoint:p}=cc({...i,offset:i.offset??8,arrowRef:a,groupRef:c?s:o},e),m=i.popoverRef,h=At(m,!!f)||i.isEntering||!1,g=G({...i,defaultClassName:`react-aria-Popover`,values:{trigger:i.trigger||null,placement:f,isEntering:h,isExiting:t}}),_=!i.isNonModal||i.trigger===`SubmenuTrigger`,[y,b]=(0,v.useState)(!1);L(()=>{m.current&&b(_&&!m.current.querySelector(`[role=dialog]`))},[m,_]),(0,v.useEffect)(()=>{y&&(i.trigger!==`SubmenuTrigger`||ba()!==`pointer`)&&m.current&&!Ie(m.current)&&Ta(m.current)},[y,m,i.trigger]);let x=(0,v.useMemo)(()=>{let e=g.children;if(r)for(let t of r)e=v.createElement(t.Provider,{value:null},e);return e},[g.children,r]),[S,C]=(0,v.useState)(null),w=(0,v.useCallback)(()=>{i.triggerRef.current&&C(i.triggerRef.current.getBoundingClientRect().width+`px`)},[i.triggerRef]);L(w,[w]),st({ref:g.style?.[`--trigger-width`]?void 0:i.triggerRef,onResize:w});let T={...l.style,"--trigger-anchor-point":p?`${p.x}px ${p.y}px`:void 0,...g.style,"--trigger-width":g.style?.[`--trigger-width`]||S},E=v.createElement(K.div,{...z(B(i,{global:!0}),l),...g,role:y?`dialog`:void 0,tabIndex:y?-1:void 0,"aria-label":i[`aria-label`],"aria-labelledby":i[`aria-labelledby`],ref:m,slot:i.slot||void 0,style:T,dir:i.dir,"data-trigger":i.trigger,"data-placement":f,"data-entering":h||void 0,"data-exiting":t||void 0},!i.isNonModal&&v.createElement(sl,{onDismiss:e.close}),v.createElement(zo.Provider,{value:{...d,placement:f,ref:a}},x),v.createElement(sl,{onDismiss:e.close}));return c?v.createElement(pl,{...i,shouldContainFocus:y,isExiting:t,portalContainer:n??s?.current??void 0},E):v.createElement(pl,{...i,shouldContainFocus:y,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(_l.Provider,{value:o},E)))}var bl=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}},xl=class extends bl{filter(e,t,n){let[r,i]=Dl(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},Sl=class extends bl{static{this.type=`header`}},Cl=class extends bl{static{this.type=`loader`}},wl=class extends xl{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}},Tl=class extends xl{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}},El=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]=Dl(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 Dl(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 Ol=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}},kl=class e extends Ol{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(){}},Al=class extends Ol{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 kl(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 kl&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof kl?(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.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}};function jl(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=Ml(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}else if(typeof t!=`function`)return t},[t,n,s,r,i])}function Ml(e){switch(typeof e){case`object`:return e!=null;case`function`:case`symbol`:return!0;default:return!1}}var Nl=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})),Pl=o(((e,t)=>{t.exports=Nl()}))(),Fl=(0,v.createContext)(!1),Il=(0,v.createContext)(null);function Ll(e){if((0,v.useContext)(Il))return e.content;let{collection:t,document:n}=Vl(e.createCollection);return v.createElement(v.Fragment,null,v.createElement(ki,null,v.createElement(Il.Provider,{value:n},e.content)),v.createElement(Rl,{render:e.children,collection:t}))}function Rl({collection:e,render:t}){return t(e)}function zl(e,t,n){let r=ye(),i=(0,v.useRef)(r);return i.current=r,(0,Pl.useSyncExternalStore)(e,(0,v.useCallback)(()=>i.current?n():t(),[t,n]))}var Bl=typeof v.useSyncExternalStore==`function`?v.useSyncExternalStore:zl;function Vl(e){let[t]=(0,v.useState)(()=>new Al(e?.()||new El));return{collection:Bl((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 Hl=(0,v.createContext)(null);function Ul(e){return class extends bl{static{this.type=e}}}function Wl(e,t,n,r,i,a){typeof e==`string`&&(e=Ul(e));let o=(0,v.useCallback)(i=>{i?.setProps(t,n,e,r,a)},[t,n,r,a,e]),s=(0,v.useContext)(Hl);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(Hl.Provider,{value:o},i):null}return v.createElement(e.type,{ref:o},i)}function Gl(e,t){let n=({node:e})=>t(e.props,e.props.ref,e),r=(0,v.forwardRef)((r,i)=>{let a=(0,v.useContext)(ka);if(!(0,v.useContext)(Fl)){if(t.length>=3)throw Error(t.name+` cannot be rendered outside a collection.`);return t(r,i)}return Wl(e,r,i,`children`in r?r.children:null,null,e=>v.createElement(ka.Provider,{value:a},v.createElement(n,{node:e})))});return r.displayName=t.name,r}function Kl(e,t,n=ql){let r=({node:e})=>t(e.props,e.props.ref,e),i=(0,v.forwardRef)((t,i)=>Wl(e,t,i,null,n(t),e=>v.createElement(r,{node:e}))??v.createElement(v.Fragment,null));return i.displayName=t.name,i}function ql(e){return jl({...e,addIdAndValue:!0})}var Jl=(0,v.createContext)(null);function Yl(e){let t=(0,v.useContext)(Jl),n=(t?.dependencies||[]).concat(e.dependencies),r=e.idScope??t?.idScope,i=ql({...e,idScope:r,dependencies:n});return(0,v.useContext)(Il)&&(i=v.createElement(Xl,null,i)),t=(0,v.useMemo)(()=>({dependencies:n,idScope:r}),[r,...n]),v.createElement(Jl.Provider,{value:t},i)}function Xl({children:e}){let t=(0,v.useContext)(Il),n=(0,v.useMemo)(()=>v.createElement(Il.Provider,{value:null},v.createElement(Fl.Provider,{value:!0},e)),[e]);return ye()?v.createElement(Hl.Provider,{value:t},n):(0,kt.createPortal)(n,t)}var Zl=(0,v.createContext)(null),Ql={CollectionRoot({collection:e,renderDropIndicator:t}){return $l(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return $l(e,t,n)}};function $l(e,t,n){return jl({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,eu(e,t,n))}})}function eu(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 tu=(0,v.createContext)(Ql);function nu(e){return(0,v.useMemo)(()=>e==null?null:new Set([e]),[e])}function ru(e){let t=ou(Oe(e));t!==e&&(t&&iu(t,e),e&&au(e,t))}function iu(e,t){e.dispatchEvent(new FocusEvent(`blur`,{relatedTarget:t})),e.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,relatedTarget:t}))}function au(e,t){e.dispatchEvent(new FocusEvent(`focus`,{relatedTarget:t})),e.dispatchEvent(new FocusEvent(`focusin`,{bubbles:!0,relatedTarget:t}))}function ou(e){let t=Fe(e),n=t?.getAttribute(`aria-activedescendant`);return n&&e.getElementById(n)||t}var su=(0,v.createContext)(null),cu=(0,v.createContext)(null),lu=(0,v.createContext)({}),uu=Gl(Sl,function(e,t){return[e,t]=Ci(e,t,lu),v.createElement(K.header,{className:`react-aria-Header`,...e,ref:t},e.children)}),du=(0,v.createContext)(null);function fu(e){let t=(0,v.useRef)({});return v.createElement(du.Provider,{value:t},e.children)}var pu=(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)(du);if(!d)throw Error(`<SharedElement> must be rendered inside a <SharedElementTransition>`);r&&l===`hidden`&&u(`visible`),t=nt(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,kt.flushSync)(()=>u(`entering`))),o=requestAnimationFrame(()=>{o=null,u(`visible`)})):e&&!r&&queueMicrotask(()=>{i[n]?(delete i[n],(0,kt.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})}),mu=(0,v.createContext)({isSelected:!1}),hu=(0,v.forwardRef)(function(e,t){[e,t]=Ci(e,t,mu);let{isSelected:n,...r}=e;return v.createElement(pu,{...r,ref:t,className:e.className||`react-aria-SelectionIndicator`,name:`SelectionIndicator`,isVisible:n})});function gu(e){let t=B(e,{labelable:!0}),n;return e.orientation===`vertical`&&(n=`vertical`),e.elementType===`hr`?{separatorProps:t}:{separatorProps:{...t,role:`separator`,"aria-orientation":n}}}var _u=(0,v.createContext)({}),vu=Gl(class extends bl{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]=Ci(e,t,_u);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}=gu({...s,elementType:n,orientation:r}),d=B(e,{global:!0});return v.createElement(l,{render:e.render,...z(d,u),style:i,className:a??`react-aria-Separator`,ref:t,slot:o||void 0})}),yu=(0,v.createContext)({}),bu=(0,v.forwardRef)(function(e,t){[e,t]=Ci(e,t,yu);let{elementType:n=`span`,...r}=e,i=K[n];return v.createElement(i,{className:`react-aria-Text`,...r,ref:t})}),xu={};xu={longPressMessage:`اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة`};var Su={};Su={longPressMessage:`Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто`};var Cu={};Cu={longPressMessage:`Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku`};var wu={};wu={longPressMessage:`Langt tryk eller tryk på Alt + pil ned for at åbne menuen`};var Tu={};Tu={longPressMessage:`Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen`};var Eu={};Eu={longPressMessage:`Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού`};var Du={};Du={longPressMessage:`Long press or press Alt + ArrowDown to open menu`};var Ou={};Ou={longPressMessage:`Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú`};var ku={};ku={longPressMessage:`Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool`};var Au={};Au={longPressMessage:`Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli`};var ju={};ju={longPressMessage:`Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu.`};var Mu={};Mu={longPressMessage:`לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט`};var Nu={};Nu={longPressMessage:`Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika`};var Pu={};Pu={longPressMessage:`Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához`};var Fu={};Fu={longPressMessage:`Premi a lungo o premi Alt + Freccia giù per aprire il menu`};var Iu={};Iu={longPressMessage:`長押しまたは Alt+下矢印キーでメニューを開く`};var Lu={};Lu={longPressMessage:`길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기`};var Ru={};Ru={longPressMessage:`Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“.`};var zu={};zu={longPressMessage:`Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa`};var Bu={};Bu={longPressMessage:`Langt trykk eller trykk Alt + PilNed for å åpne menyen`};var Vu={};Vu={longPressMessage:`Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen`};var Hu={};Hu={longPressMessage:`Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu`};var Uu={};Uu={longPressMessage:`Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu`};var Wu={};Wu={longPressMessage:`Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu`};var Gu={};Gu={longPressMessage:`Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul`};var Ku={};Ku={longPressMessage:`Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню`};var qu={};qu={longPressMessage:`Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol`};var Ju={};Ju={longPressMessage:`Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol`};var Yu={};Yu={longPressMessage:`Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni`};var Xu={};Xu={longPressMessage:`Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn`};var Zu={};Zu={longPressMessage:`Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın`};var Qu={};Qu={longPressMessage:`Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню`};var $u={};$u={longPressMessage:`长按或按 Alt + 向下方向键以打开菜单`};var ed={};ed={longPressMessage:`長按或按 Alt+向下鍵以開啟功能表`};var td={};td={"ar-AE":xu,"bg-BG":Su,"cs-CZ":Cu,"da-DK":wu,"de-DE":Tu,"el-GR":Eu,"en-US":Du,"es-ES":Ou,"et-EE":ku,"fi-FI":Au,"fr-FR":ju,"he-IL":Mu,"hr-HR":Nu,"hu-HU":Pu,"it-IT":Fu,"ja-JP":Iu,"ko-KR":Lu,"lt-LT":Ru,"lv-LV":zu,"nb-NO":Bu,"nl-NL":Vu,"pl-PL":Hu,"pt-BR":Uu,"pt-PT":Wu,"ro-RO":Gu,"ru-RU":Ku,"sk-SK":qu,"sl-SI":Ju,"sr-SP":Yu,"sv-SE":Xu,"tr-TR":Zu,"uk-UA":Qu,"zh-CN":$u,"zh-TW":ed};var nd=500;function rd(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:a=nd,accessibilityDescription:o}=e,s=(0,v.useRef)(void 0),{addGlobalListener:c,removeGlobalListener:l}=et(),{pressProps:u}=Wa({isDisabled:t,onPressStart(e){if(e.continuePropagation(),(e.pointerType===`mouse`||e.pointerType===`touch`)&&(n&&n({...e,type:`longpressstart`}),s.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent(`pointercancel`,{bubbles:!0})),Oe(e.target).activeElement!==e.target&&N(e.target),i&&i({...e,type:`longpress`}),s.current=void 0},a),e.pointerType===`touch`)){let t=e=>{e.preventDefault()},n=ke(e.target);c(e.target,`contextmenu`,t,{once:!0}),c(n,`pointerup`,()=>{setTimeout(()=>{l(e.target,`contextmenu`,t)},30)},{once:!0})}},onPressEnd(e){s.current&&clearTimeout(s.current),r&&(e.pointerType===`mouse`||e.pointerType===`touch`)&&r({...e,type:`longpressend`})}});return{longPressProps:z(u,bt(i&&!t?o:void 0))}}function id(e,t,n){let{type:r}=e,{isOpen:i}=t;(0,v.useEffect)(()=>{n&&n.current&&hs.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 ad(e){return e&&e.__esModule?e.default:e}function od(e,t,n){let{type:r=`menu`,isDisabled:i,trigger:a=`press`}=e,o=we(),{triggerProps:s,overlayProps:c}=id({type:r},t,n),l=e=>{if(!i&&!(a===`longPress`&&!e.altKey)&&n&&n.current)switch(e.key){case`Enter`:case` `:if(a===`longPress`||e.isDefaultPrevented())return;case`ArrowDown`:`continuePropagation`in e||e.stopPropagation(),e.preventDefault(),t.toggle(`first`);break;case`ArrowUp`:`continuePropagation`in e||e.stopPropagation(),e.preventDefault(),t.toggle(`last`);break;default:`continuePropagation`in e&&e.continuePropagation()}},u=nl(ad(td),`@react-aria/menu`),{longPressProps:d}=rd({isDisabled:i||a!==`longPress`,accessibilityDescription:u.format(`longPressMessage`),onLongPressStart(){t.close()},onLongPress(){t.open(`first`)}}),f={preventFocusOnPress:!0,onPressStart(e){e.pointerType!==`touch`&&e.pointerType!==`keyboard`&&!i&&(N(e.target),t.open(e.pointerType===`virtual`?`first`:null))},onPress(e){e.pointerType===`touch`&&!i&&(N(e.target),t.toggle())}};return delete s.onPress,{menuTriggerProps:{...s,...a===`press`?f:d,id:o,onKeyDown:l},menuProps:{...c,"aria-labelledby":o,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function sd(e){return k()?e.altKey:e.ctrlKey}function cd(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 ld=new WeakMap;function ud(e){let t=we();return ld.set(e,t),t}function dd(e){return ld.get(e)}var fd=1e3;function pd(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=(0,v.useRef)({search:``,timeout:void 0}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{let a=md(e.key);if(!(!a||e.ctrlKey||e.metaKey||!Pe(e.currentTarget,R(e))||i.search.length===0&&a===` `)){if(a===` `&&i.search.trim().length>0&&(e.preventDefault(),`continuePropagation`in e||e.stopPropagation()),i.search+=a,t.getKeyForSearch!=null){let e=t.getKeyForSearch(i.search,n.focusedKey);e??=t.getKeyForSearch(i.search),e!=null&&(n.setFocusedKey(e),r&&r(e))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=``},fd)}}:void 0}}}function md(e){return e.length===1||!/^[A-Z]/i.test(e)?e:``}function hd(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`}=e,{direction:h}=Gi(),g=ie(),_=e=>{if(e.altKey&&e.key===`Tab`&&e.preventDefault(),!r.current||!Pe(r.current,R(e)))return;let i=(n,i)=>{if(n!=null){if(t.isLink(n)&&m===`selection`&&l&&!sd(e)){(0,kt.flushSync)(()=>{t.setFocusedKey(n,i)});let a=cd(r,n),o=t.getItemProps(n);a&&g.open(a,e,o.href,o.routerOptions);return}if(t.setFocusedKey(n,i),t.isLink(n)&&m===`override`)return;e.shiftKey&&t.selectionMode===`multiple`?t.extendSelection(n):l&&!sd(e)&&t.replaceSelection(n)}};switch(e.key){case`ArrowDown`:if(n.getKeyBelow){let r=t.focusedKey==null?n.getFirstKey?.():n.getKeyBelow?.(t.focusedKey);r==null&&a&&(r=n.getFirstKey?.(t.focusedKey)),r!=null&&(e.preventDefault(),i(r))}break;case`ArrowUp`:if(n.getKeyAbove){let r=t.focusedKey==null?n.getLastKey?.():n.getKeyAbove?.(t.focusedKey);r==null&&a&&(r=n.getLastKey?.(t.focusedKey)),r!=null&&(e.preventDefault(),i(r))}break;case`ArrowLeft`:if(n.getKeyLeftOf){let r=t.focusedKey==null?n.getFirstKey?.():n.getKeyLeftOf?.(t.focusedKey);r==null&&a&&(r=h===`rtl`?n.getFirstKey?.(t.focusedKey):n.getLastKey?.(t.focusedKey)),r!=null&&(e.preventDefault(),i(r,h===`rtl`?`first`:`last`))}break;case`ArrowRight`:if(n.getKeyRightOf){let r=t.focusedKey==null?n.getFirstKey?.():n.getKeyRightOf?.(t.focusedKey);r==null&&a&&(r=h===`rtl`?n.getLastKey?.(t.focusedKey):n.getFirstKey?.(t.focusedKey)),r!=null&&(e.preventDefault(),i(r,h===`rtl`?`last`:`first`))}break;case`Home`:if(n.getFirstKey){if(t.focusedKey===null&&e.shiftKey)return;e.preventDefault();let r=n.getFirstKey(t.focusedKey,ft(e));t.setFocusedKey(r),r!=null&&(ft(e)&&e.shiftKey&&t.selectionMode===`multiple`?t.extendSelection(r):l&&t.replaceSelection(r))}break;case`End`:if(n.getLastKey){if(t.focusedKey===null&&e.shiftKey)return;e.preventDefault();let r=n.getLastKey(t.focusedKey,ft(e));t.setFocusedKey(r),r!=null&&(ft(e)&&e.shiftKey&&t.selectionMode===`multiple`?t.extendSelection(r):l&&t.replaceSelection(r))}break;case`PageDown`:if(n.getKeyPageBelow&&t.focusedKey!=null){let r=n.getKeyPageBelow(t.focusedKey);r!=null&&(e.preventDefault(),i(r))}break;case`PageUp`:if(n.getKeyPageAbove&&t.focusedKey!=null){let r=n.getKeyPageAbove(t.focusedKey);r!=null&&(e.preventDefault(),i(r))}break;case`a`:ft(e)&&t.selectionMode===`multiple`&&s!==!0&&(e.preventDefault(),t.selectAll());break;case`Escape`:c===`clearSelection`&&!o&&t.selectedKeys.size!==0&&(e.stopPropagation(),e.preventDefault(),t.clearSelection());break;case`Tab`:if(!f){if(e.shiftKey)r.current.focus();else{let e=Ws(r.current,{tabbable:!0}),t,n;do n=e.lastChild(),n&&(t=n);while(n);let i=Fe();t&&(!Ie(t)||i&&!Vt(i))&&N(t)}break}}},y=(0,v.useRef)({top:0,left:0});xt(p,`scroll`,()=>{y.current={top:p.current?.scrollTop??0,left:p.current?.scrollLeft??0}});let S=e=>{if(t.isFocused){Pe(e.currentTarget,R(e))||t.setFocused(!1);return}if(Pe(e.currentTarget,R(e))){if(t.setFocused(!0),t.focusedKey==null){let r=e=>{e!=null&&(t.setFocusedKey(e),l&&!t.isSelected(e)&&t.replaceSelection(e))},i=e.relatedTarget;i&&e.currentTarget.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING?r(t.lastSelectedKey??n.getLastKey?.()):r(t.firstSelectedKey??n.getFirstKey?.())}else p.current&&(p.current.scrollTop=y.current.top,p.current.scrollLeft=y.current.left);if(t.focusedKey!=null&&p.current){let e=cd(r,t.focusedKey);e instanceof HTMLElement&&(!Ie(e)&&!d&&N(e),ba()===`keyboard`&&Ct(e,{containingElement:r.current}))}}},C=e=>{Pe(e.currentTarget,e.relatedTarget)||t.setFocused(!1)},w=(0,v.useRef)(!1);xt(r,x,d?e=>{let{detail:n}=e;e.stopPropagation(),t.setFocused(!0),n?.focusStrategy===`first`&&(w.current=!0)}:void 0),at(()=>{if(w.current){let e=n.getFirstKey?.()??null;if(e==null){let e=Fe();ru(r.current),au(e,null),t.collection.size>0&&(w.current=!1)}else t.setFocusedKey(e),w.current=!1}},[t.collection]),at(()=>{t.collection.size>0&&(w.current=!1)},[t.focusedKey]),xt(r,b,d?e=>{e.stopPropagation(),t.setFocused(!1),e.detail?.clearFocusKey&&t.setFocusedKey(null)}:void 0);let T=(0,v.useRef)(i),E=(0,v.useRef)(!1);(0,v.useEffect)(()=>{if(T.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&&!d&&r.current&&Ta(r.current),t.collection.size>0&&(T.current=!1,E.current=!0)}});let D=(0,v.useRef)(t.focusedKey),O=(0,v.useRef)(null);(0,v.useEffect)(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==D.current||E.current)&&p.current&&r.current){let e=ba(),n=cd(r,t.focusedKey);if(!(n instanceof HTMLElement))return;(e===`keyboard`||E.current)&&(O.current&&cancelAnimationFrame(O.current),O.current=requestAnimationFrame(()=>{p.current&&(St(p.current,n),e!==`virtual`&&Ct(n,{containingElement:r.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&D.current!=null&&r.current&&Ta(r.current),D.current=t.focusedKey,E.current=!1}),(0,v.useEffect)(()=>()=>{O.current&&cancelAnimationFrame(O.current)},[]),xt(r,`react-aria-focus-scope-restore`,e=>{e.preventDefault(),t.setFocused(!0)});let k={onKeyDown:_,onFocus:S,onBlur:C,onMouseDown(e){p.current===R(e)&&e.preventDefault()}},{typeSelectProps:A}=pd({keyboardDelegate:n,selectionManager:t});u||(k=z(A,k));let j;d||(j=t.focusedKey==null?0:-1);let M=ud(t.collection);return{collectionProps:z(k,{tabIndex:j,"data-collection":M})}}var gd=class{constructor(e){this.ref=e}getItemRect(e){let t=this.ref.current;if(!t)return null;let n=e==null?null:cd(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}}},_d=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 gd(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 gd(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}getKeyBelow(e,t){return this.layout===`grid`&&this.orientation===`vertical`?this.findKey(e,e=>this.getNextKey(e,t),this.isSameRow):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.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;if(t&&!lt(t))return this.getFirstKey();let r=e;if(this.orientation===`horizontal`){let e=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>e&&r!=null;)r=this.getKeyAbove(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}else{let e=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>e&&r!=null;)r=this.getKeyAbove(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}return r??this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(t&&!lt(t))return this.getLastKey();let r=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&&r!=null;)r=this.getKeyBelow(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}else{let e=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<e&&r!=null;)r=this.getKeyBelow(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}return r??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}},vd=new Map;function yd(e){let{locale:t}=Gi(),n=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():``);if(vd.has(n))return vd.get(n);let r=new Intl.Collator(t,e);return vd.set(n,r),r}function bd(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:o,orientation:s}=e,c=yd({usage:`search`,sensitivity:`base`}),l=t.disabledBehavior,u=(0,v.useMemo)(()=>a||new _d({collection:n,disabledKeys:r,disabledBehavior:l,ref:i,collator:c,layoutDelegate:o,orientation:s}),[a,o,n,r,i,c,l,s]),{collectionProps:d}=hd({...e,ref:i,selectionManager:t,keyboardDelegate:u});return{listProps:d}}function xd(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=ie();t=we(t);let p=e=>{if(e.pointerType===`keyboard`&&sd(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}else 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&&(ft(e)||e.pointerType===`touch`||e.pointerType===`virtual`)?n.toggleSelection(r):n.replaceSelection(r)}};(0,v.useEffect)(()=>{r===n.focusedKey&&n.isFocused&&(o?ru(i.current):s?s():Fe()!==i.current&&i.current&&Ta(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){R(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};if(a?(A.onPressStart=e=>{w.current=e.pointerType,E.current=T,e.pointerType===`keyboard`&&(!C||Cd(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`&&!Sd(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||Cd(e.key)))&&p(e)},A.onPress=e=>{(e.pointerType===`touch`||e.pointerType===`pen`||e.pointerType===`virtual`||e.pointerType===`keyboard`&&C&&Sd(e.key)||e.pointerType===`mouse`&&D.current)&&(C?k(e):y&&p(e))}),m[`data-collection`]=dd(n.collection),m[`data-key`]=r,A.preventFocusOnPress=o,o&&(A=z(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:j,isPressed:M}=Wa(A),ee=S?e=>{w.current===`mouse`&&(e.stopPropagation(),e.preventDefault(),k(e))}:void 0,{longPressProps:N}=rd({isDisabled:!T,onLongPress(e){e.pointerType===`touch`&&(p(e),n.setSelectionBehavior(`toggle`))}}),te=e=>{w.current===`touch`&&E.current&&e.preventDefault()},P=d!==`none`&&n.isLink(r)?e=>{ae.isOpening||e.preventDefault()}:void 0;return{itemProps:z(m,y||x||o&&!c?j:{},T?N:{},{onDoubleClick:ee,onDragStartCapture:te,onClick:P,id:t},o?{onMouseDown:e=>e.preventDefault()}:void 0),isPressed:M,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:c,allowsSelection:y,hasAction:C}}function Sd(e){return e===`Enter`}function Cd(e){return e===` `}function wd(e,t){return typeof t.getChildren==`function`?t.getChildren(e.key):e.childNodes}function Td(e){return Ed(e,0)}function Ed(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function Dd(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...Od(e,t),t],i=[...Od(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 Od(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}var kd=new WeakMap;function Ad(e){let t=kd.get(e);if(t!=null)return t;let n=0,r=t=>{for(let i of t)i.type===`section`?r(wd(i,e)):i.type===`item`&&n++};return r(e),kd.set(e,n),n}function jd(e){let t=hl(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 Md=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)}},Nd=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&&Dd(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&&Dd(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 Md([t],t,t);else{let e=this.state.selectedKeys,r=e.anchorKey??t;n=new Md(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?Dd(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 Md(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 Md([t],t,t):new Md;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode===`none`)return;let t=new Md;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(Td(wd(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 Md)}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})}},Pd=class{build(e,t){return this.context=t,Fd(()=>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:Id(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 <${Ld(t.type)}> in <${Ld(r?.type??`unknown parent type`)}>. Only <${Ld(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:Fd(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 Fd(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 Id(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Ld(e){return e[0].toUpperCase()+e.slice(1)}function Rd(e,t,n){let r=(0,v.useMemo)(()=>new Pd,[]),{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 zd(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Bd(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]=po((0,v.useMemo)(()=>Vd(e.selectedKeys),[e.selectedKeys]),(0,v.useMemo)(()=>Vd(e.defaultSelectedKeys,new Md),[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||!zd(e,d))&&f(e)},disabledKeys:p,disabledBehavior:a}}function Vd(e,t){return e?e===`all`?`all`:new Md(e):t}var Hd=(0,v.createContext)(null);(class extends bl{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}});function Ud(e,t){let{role:n=`dialog`}=e,r=Ee();r=e[`aria-label`]?void 0:r;let i=(0,v.useRef)(!1);return(0,v.useEffect)(()=>{if(t.current&&!Ie(t.current)){Ta(t.current);let e=setTimeout(()=>{(Fe()===t.current||Fe()===document.body)&&(i.current=!0,t.current&&(t.current.blur(),Ta(t.current)),i.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),ml(),(0,v.useRef)(!1),(0,v.useEffect)(()=>{}),{dialogProps:{...B(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e[`aria-labelledby`]||r,onBlur:e=>{i.current&&e.stopPropagation()}},titleProps:{id:r}}}var Wd=(0,v.createContext)(null),Gd=(0,v.createContext)(null);function Kd(e){let t=jd(e),n=(0,v.useRef)(null),{triggerProps:r,overlayProps:i}=id({type:`dialog`},t,n);return r.id=we(),i[`aria-labelledby`]=r.id,v.createElement(bi,{values:[[Gd,t],[Hd,t],[Wd,i],[gl,{trigger:`DialogTrigger`,triggerRef:n,"aria-labelledby":i[`aria-labelledby`]}]]},v.createElement(cl,{...r,ref:n,isPressed:t.isOpen},e.children))}var qd=(0,v.forwardRef)(function(e,t){let n=e[`aria-labelledby`];[e,t]=Ci(e,t,Wd);let{dialogProps:r,titleProps:i}=Ud({...e,"aria-labelledby":n},t),a=(0,v.useContext)(Gd);!r[`aria-label`]&&!r[`aria-labelledby`]&&e[`aria-labelledby`]&&(r[`aria-labelledby`]=e[`aria-labelledby`]);let o=G({defaultClassName:`react-aria-Dialog`,className:e.className,style:e.style,children:e.children,values:{close:a?.close||(()=>{})}}),s=B(e,{global:!0});return v.createElement(K.section,{...z(s,o,r),render:e.render,ref:t,slot:e.slot||void 0},v.createElement(bi,{values:[[Co,{slots:{[yi]:{},title:{...i,level:2}}}],[oo,{slots:{[yi]:{},close:{onPress:()=>a?.close()}}}]]},o.children))});function Jd(e,t,n){let{overlayProps:r,underlayProps:i}=Zs({...e,isOpen:t.isOpen,onClose:t.close},n);return tc({isDisabled:!t.isOpen}),ml(),(0,v.useEffect)(()=>{if(t.isOpen&&n.current)return Go([n.current],{shouldUseInert:!0})},[t.isOpen,n]),{modalProps:z(r),underlayProps:i}}var Yd=(0,v.createContext)(null),Xd=(0,v.createContext)(null),Zd=(0,v.forwardRef)(function(e,t){if((0,v.useContext)(Xd))return v.createElement(tf,{...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($d,{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:i,defaultOpen:a,onOpenChange:o,isEntering:c,isExiting:l,UNSTABLE_portalContainer:u,shouldCloseOnInteractOutside:d},v.createElement(tf,{...f,modalRef:t},s))});function Qd(e,t){[e,t]=Ci(e,t,Yd);let n=(0,v.useContext)(Gd),r=hl(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,a=nt(t),o=(0,v.useRef)(null),s=jt(a,i.isOpen),c=jt(o,i.isOpen),l=s||c||e.isExiting||!1,u=ye();return!i.isOpen&&!l||u?null:v.createElement(ef,{...e,state:i,isExiting:l,overlayRef:a,modalRef:o})}var $d=(0,v.forwardRef)(Qd);function ef({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:i,underlayProps:a}=Jd(t,r,n),o=At(t.overlayRef)||t.isEntering||!1,s=G({...t,defaultClassName:`react-aria-ModalOverlay`,values:{isEntering:o,isExiting:t.isExiting,state:r}}),c=gt(),l,u;if(typeof document<`u`){let e=lt(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(pl,{isExiting:t.isExiting,portalContainer:e},v.createElement(K.div,{...z(B(t,{global:!0}),a),...s,style:d,ref:t.overlayRef,"data-entering":o||void 0,"data-exiting":t.isExiting||void 0},v.createElement(bi,{values:[[Xd,{modalProps:i,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[Gd,r]]},s.children)))}function tf(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:i}=(0,v.useContext)(Xd),a=(0,v.useContext)(Gd),o=nt((0,v.useMemo)(()=>ze(e.modalRef,n),[e.modalRef,n])),s=At(o),c=G({...e,defaultClassName:`react-aria-Modal`,values:{isEntering:s,isExiting:r,state:a}});return v.createElement(K.div,{...z(B(e,{global:!0}),t),...c,ref:o,"data-entering":s||void 0,"data-exiting":r||void 0},i&&v.createElement(sl,{onDismiss:a.close}),c.children)}var nf=v.forwardRef(({children:e,...t},n)=>{n=nt(n);let{pressProps:r}=Wa({...t,ref:n}),{focusableProps:i}=Ma(t,n),a=v.Children.only(e);(0,v.useEffect)(()=>{},[n,t.isDisabled]);let o=a.props.ref;return v.cloneElement(a,{...z(r,i,a.props),ref:ze(o,n)})}),rf=({children:e,className:t,slot:n,style:r,variant:i,...a})=>(0,V.jsx)(so,{"aria-label":`Close`,className:J(t,(0,v.useMemo)(()=>$r({variant:i}),[i])),"data-slot":`close-button`,slot:n,style:r,...a,children:t=>typeof e==`function`?e(t):e??(0,V.jsx)(Do,{"data-slot":`close-button-icon`})}),af=Object.assign(rf,{Root:rf}),of=(0,v.createContext)({}),sf=(0,v.forwardRef)(function(e,t){[e,t]=Ci(e,t,of);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}=q({onHoverStart:a,onHoverChange:o,onHoverEnd:s,isDisabled:n}),{isFocused:d,isFocusVisible:f,focusProps:p}=eo({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,{...z(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)}),cf=(0,v.createContext)(null),lf=(0,v.forwardRef)(function(e,t){return(0,v.useContext)(cf)?.isInvalid?v.createElement(uf,{...e,ref:t}):null}),uf=(0,v.forwardRef)((e,t)=>{let n=(0,v.useContext)(cf),{elementType:r,...i}=e,a=B(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(bu,{slot:`errorMessage`,elementType:r,...a,...o,ref:t})}),df={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},ff={...df,customError:!0,valid:!1},pf={isInvalid:!1,validationDetails:df,validationErrors:[]},mf=(0,v.createContext)({}),hf=`__reactAriaFormValidationState`;function gf(e){if(e.__reactAriaFormValidationState){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[hf];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return _f(e)}function _f(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:ff},l=(0,v.useMemo)(()=>!o||i==null?null:bf(yf(o,i)),[o,i]);a?.validationDetails.valid&&(a=void 0);let u=(0,v.useContext)(mf),d=(0,v.useMemo)(()=>r?Array.isArray(r)?r.flatMap(e=>vf(u[e])):vf(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)(()=>bf(m?[]:d),[m,d]),_=(0,v.useRef)(pf),[y,b]=(0,v.useState)(pf),x=(0,v.useRef)(pf),S=()=>{if(!C)return;w(!1);let e=l||a||_.current;xf(e,x.current)||(x.current=e,b(e))},[C,w]=(0,v.useState)(!1);return(0,v.useEffect)(S),{realtimeValidation:c||g||l||a||pf,displayValidation:s===`native`?c||g||y:c||g||l||a||y,updateValidation(e){s===`aria`&&!xf(y,e)?b(e):_.current=e},resetValidation(){let e=pf;xf(e,x.current)||(x.current=e,b(e)),s===`native`&&w(!1),h(!0)},commitValidation(){s===`native`&&w(!0),h(!0)}}}function vf(e){return e?Array.isArray(e)?e:[e]:[]}function yf(e,t){if(typeof e==`function`){let n=e(t);if(n&&typeof n!=`boolean`)return vf(n)}return[]}function bf(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:ff}:null}function xf(e,t){return e===t?!0:!!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 Sf(...e){let t=new Set,n=!1,r={...df};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 Cf=(0,v.createContext)(null),wf=(0,v.forwardRef)(function(e,t){[e,t]=Ci(e,t,Cf);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(Cf.Provider,{value:{...e,validationBehavior:r}},v.createElement(mf.Provider,{value:n??{}},i)))}),Tf={};Tf={colorSwatchPicker:`تغييرات الألوان`,dropzoneLabel:`DropZone`,selectPlaceholder:`حدد عنصرًا`,tableResizer:`أداة تغيير الحجم`};var Ef={};Ef={colorSwatchPicker:`Цветови мостри`,dropzoneLabel:`DropZone`,selectPlaceholder:`Изберете предмет`,tableResizer:`Преоразмерител`};var Df={};Df={colorSwatchPicker:`Vzorky barev`,dropzoneLabel:`Místo pro přetažení`,selectPlaceholder:`Vyberte položku`,tableResizer:`Změna velikosti`};var Of={};Of={colorSwatchPicker:`Farveprøver`,dropzoneLabel:`DropZone`,selectPlaceholder:`Vælg et element`,tableResizer:`Størrelsesændring`};var kf={};kf={colorSwatchPicker:`Farbfelder`,dropzoneLabel:`Ablegebereich`,selectPlaceholder:`Element wählen`,tableResizer:`Größenanpassung`};var Af={};Af={colorSwatchPicker:`Χρωματικά δείγματα`,dropzoneLabel:`DropZone`,selectPlaceholder:`Επιλέξτε ένα αντικείμενο`,tableResizer:`Αλλαγή μεγέθους`};var jf={};jf={selectPlaceholder:`Select an item`,tableResizer:`Resizer`,dropzoneLabel:`DropZone`,colorSwatchPicker:`Color swatches`};var Mf={};Mf={colorSwatchPicker:`Muestras de colores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Seleccionar un artículo`,tableResizer:`Cambiador de tamaño`};var Nf={};Nf={colorSwatchPicker:`Värvinäidised`,dropzoneLabel:`DropZone`,selectPlaceholder:`Valige üksus`,tableResizer:`Suuruse muutja`};var Pf={};Pf={colorSwatchPicker:`Värimallit`,dropzoneLabel:`DropZone`,selectPlaceholder:`Valitse kohde`,tableResizer:`Koon muuttaja`};var Ff={};Ff={colorSwatchPicker:`Échantillons de couleurs`,dropzoneLabel:`DropZone`,selectPlaceholder:`Sélectionner un élément`,tableResizer:`Redimensionneur`};var If={};If={colorSwatchPicker:`דוגמיות צבע`,dropzoneLabel:`DropZone`,selectPlaceholder:`בחר פריט`,tableResizer:`שינוי גודל`};var Lf={};Lf={colorSwatchPicker:`Uzorci boja`,dropzoneLabel:`Zona spuštanja`,selectPlaceholder:`Odaberite stavku`,tableResizer:`Promjena veličine`};var Rf={};Rf={colorSwatchPicker:`Színtárak`,dropzoneLabel:`DropZone`,selectPlaceholder:`Válasszon ki egy elemet`,tableResizer:`Átméretező`};var zf={};zf={colorSwatchPicker:`Campioni di colore`,dropzoneLabel:`Zona di rilascio`,selectPlaceholder:`Seleziona un elemento`,tableResizer:`Ridimensionamento`};var Bf={};Bf={colorSwatchPicker:`カラースウォッチ`,dropzoneLabel:`ドロップゾーン`,selectPlaceholder:`項目を選択`,tableResizer:`サイズ変更ツール`};var Vf={};Vf={colorSwatchPicker:`색상 견본`,dropzoneLabel:`드롭 영역`,selectPlaceholder:`항목 선택`,tableResizer:`크기 조정기`};var Hf={};Hf={colorSwatchPicker:`Spalvų pavyzdžiai`,dropzoneLabel:`„DropZone“`,selectPlaceholder:`Pasirinkite elementą`,tableResizer:`Dydžio keitiklis`};var Uf={};Uf={colorSwatchPicker:`Krāsu paraugi`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izvēlēties vienumu`,tableResizer:`Izmēra mainītājs`};var Wf={};Wf={colorSwatchPicker:`Fargekart`,dropzoneLabel:`Droppsone`,selectPlaceholder:`Velg et element`,tableResizer:`Størrelsesendrer`};var Gf={};Gf={colorSwatchPicker:`kleurstalen`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecteer een item`,tableResizer:`Resizer`};var Kf={};Kf={colorSwatchPicker:`Próbki kolorów`,dropzoneLabel:`Strefa upuszczania`,selectPlaceholder:`Wybierz element`,tableResizer:`Zmiana rozmiaru`};var qf={};qf={colorSwatchPicker:`Amostras de cores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecione um item`,tableResizer:`Redimensionador`};var Jf={};Jf={colorSwatchPicker:`Amostras de cores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecione um item`,tableResizer:`Redimensionador`};var Yf={};Yf={colorSwatchPicker:`Specimene de culoare`,dropzoneLabel:`Zonă de plasare`,selectPlaceholder:`Selectați un element`,tableResizer:`Instrument de redimensionare`};var Xf={};Xf={colorSwatchPicker:`Цветовые образцы`,dropzoneLabel:`DropZone`,selectPlaceholder:`Выберите элемент`,tableResizer:`Средство изменения размера`};var Zf={};Zf={colorSwatchPicker:`Vzorkovníky farieb`,dropzoneLabel:`DropZone`,selectPlaceholder:`Vyberte položku`,tableResizer:`Nástroj na zmenu veľkosti`};var Qf={};Qf={colorSwatchPicker:`Barvne palete`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izberite element`,tableResizer:`Spreminjanje velikosti`};var $f={};$f={colorSwatchPicker:`Uzorci boje`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izaberite stavku`,tableResizer:`Promena veličine`};var ep={};ep={colorSwatchPicker:`Färgrutor`,dropzoneLabel:`DropZone`,selectPlaceholder:`Välj en artikel`,tableResizer:`Storleksändrare`};var tp={};tp={colorSwatchPicker:`Renk örnekleri`,dropzoneLabel:`Bırakma Bölgesi`,selectPlaceholder:`Bir öğe seçin`,tableResizer:`Yeniden boyutlandırıcı`};var np={};np={colorSwatchPicker:`Зразки кольорів`,dropzoneLabel:`DropZone`,selectPlaceholder:`Виберіть елемент`,tableResizer:`Засіб змінення розміру`};var rp={};rp={colorSwatchPicker:`颜色色板`,dropzoneLabel:`放置区域`,selectPlaceholder:`选择一个项目`,tableResizer:`尺寸调整器`};var ip={};ip={colorSwatchPicker:`色票`,dropzoneLabel:`放置區`,selectPlaceholder:`選取項目`,tableResizer:`大小調整器`};var ap={};ap={"ar-AE":Tf,"bg-BG":Ef,"cs-CZ":Df,"da-DK":Of,"de-DE":kf,"el-GR":Af,"en-US":jf,"es-ES":Mf,"et-EE":Nf,"fi-FI":Pf,"fr-FR":Ff,"he-IL":If,"hr-HR":Lf,"hu-HU":Rf,"it-IT":zf,"ja-JP":Bf,"ko-KR":Vf,"lt-LT":Hf,"lv-LV":Uf,"nb-NO":Wf,"nl-NL":Gf,"pl-PL":Kf,"pt-BR":qf,"pt-PT":Jf,"ro-RO":Yf,"ru-RU":Xf,"sk-SK":Zf,"sl-SI":Qf,"sr-SP":$f,"sv-SE":ep,"tr-TR":tp,"uk-UA":np,"zh-CN":rp,"zh-TW":ip};var op=(0,v.createContext)({}),sp=(0,v.createContext)(null),cp=(0,v.forwardRef)(function(e,t){let{render:n}=(0,v.useContext)(sp);return v.createElement(v.Fragment,null,n(e,t))});function lp(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(cp,{target:e})},[t?.target,r,n]);return e?.useDropIndicator?i:void 0}function up(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 dp=new WeakMap;function fp(e){return typeof e==`string`?e.replace(/\s*/g,``):``+e}function pp(e,t){let n=dp.get(e);if(!n)throw Error(`Unknown list`);return`${n.id}-option-${fp(t)}`}function mp(e,t,n){let r=B(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}=bd({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:o}),{focusWithinProps:c}=$a({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=we(e.id);dp.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}=Pi({...e,id:l,labelElementType:`span`});return{labelProps:u,listBoxProps:z(r,c,t.selectionManager.selectionMode===`multiple`?{"aria-multiselectable":`true`}:{},{role:`listbox`,"aria-orientation":a,...z(d,s)})}}function hp(e,t,n){let{key:r}=e,i=dp.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`]=Ad(t.collection)}let h=i?.onAction?()=>i?.onAction?.(r):void 0,g=pp(t,r),{itemProps:_,isPressed:v,isFocused:y,hasAction:b,allowsSelection:x}=xd({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}=q({isDisabled:a||!c,onHoverStart(){ya()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(r))}}),C=B(m?.props);delete C.id;let w=se(m?.props);return{optionProps:{...p,...z(C,_,S,w),id:g},labelProps:{id:d},descriptionProps:{id:f},isFocused:y,isFocusVisible:y&&t.selectionManager.isFocused&&ya(),isSelected:o,isDisabled:a,isPressed:v,allowsSelection:x,hasAction:b}}function gp(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 _p=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 vp(e){let{filter:t,layoutDelegate:n}=e,r=Bd(e),i=(0,v.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=Rd(e,(0,v.useCallback)(e=>t?new _p(t(e)):new _p(e),[t]),(0,v.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning])),o=(0,v.useMemo)(()=>new Nd(a,r,{layoutDelegate:n}),[a,r,n]);return bp(a,o),{collection:a,disabledKeys:i,selectionManager:o}}function yp(e,t){let n=(0,v.useMemo)(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),r=e.selectionManager.withCollection(n);return bp(n,r),{collection:n,selectionManager:r,disabledKeys:e.disabledKeys}}function bp(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 xp=(0,v.createContext)(null),Sp=(0,v.createContext)(null),Cp=(0,v.forwardRef)(function(e,t){[e,t]=Ci(e,t,xp);let n=(0,v.useContext)(Sp);return n?v.createElement(Tp,{state:n,props:e,listBoxRef:t}):v.createElement(Ll,{content:v.createElement(Yl,e)},n=>v.createElement(wp,{props:e,listBoxRef:t,collection:n}))});function wp({props:e,listBoxRef:t,collection:n}){e={...e,collection:n,children:null,items:null};let{layoutDelegate:r}=(0,v.useContext)(tu),i=vp({...e,layoutDelegate:r});return v.createElement(Tp,{state:i,props:e,listBoxRef:t})}function Tp({state:e,props:t,listBoxRef:n}){[t,n]=Ci(t,n,su);let{dragAndDropHooks:r,layout:i=`stack`,orientation:a=`vertical`,filter:o}=t,s=yp(e,o),{collection:c,selectionManager:l}=s,u=!!r?.useDraggableCollectionState,d=!!r?.useDroppableCollectionState,{direction:f}=Gi(),{disabledBehavior:p,disabledKeys:m}=l,h=yd({usage:`search`,sensitivity:`base`}),{isVirtualized:g,layoutDelegate:_,dropTargetDelegate:y,CollectionRoot:b}=(0,v.useContext)(tu),x=(0,v.useMemo)(()=>t.keyboardDelegate||new _d({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}=mp({...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}=eo(),M=s.collection.size===0,ee={isDropTarget:E,isEmpty:M,isFocused:A,isFocusVisible:j,layout:t.layout||`stack`,orientation:a,state:s},N=G({...t,children:void 0,defaultClassName:`react-aria-ListBox`,values:ee}),te=null;M&&t.renderEmptyState&&(te=v.createElement(`div`,{role:`option`,style:{display:`contents`}},t.renderEmptyState(ee)));let P=B(t,{global:!0});return v.createElement(ws,null,v.createElement(K.div,{...z(P,N,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(bi,{values:[[xp,t],[Sp,s],[op,{dragAndDropHooks:r,dragState:C,dropState:w}],[_u,{elementType:`div`}],[sp,{render:kp}],[Zl,{name:`ListBoxSection`,render:Ep}]]},v.createElement(fu,null,v.createElement(b,{collection:c,scrollRef:n,persistedKeys:up(l,r,w),renderDropIndicator:lp(r,w)}))),te,D))}function Ep(e,t,n,r=`react-aria-ListBoxSection`){let i=(0,v.useContext)(Sp),{dragAndDropHooks:a,dropState:o}=(0,v.useContext)(op),{CollectionBranch:s}=(0,v.useContext)(tu),[c,l]=wi(),{headingProps:u,groupProps:d}=gp({heading:l,"aria-label":e[`aria-label`]??void 0}),f=G({...e,id:void 0,children:void 0,defaultClassName:r,values:void 0}),p=B(e,{global:!0});return delete p.id,v.createElement(K.section,{...z(p,f,d),ref:t},v.createElement(lu.Provider,{value:{...u,ref:c}},v.createElement(s,{collection:i.collection,parent:n,renderDropIndicator:lp(a,o)})))}var Dp=Kl(Tl,Ep),Op=Gl(wl,function(e,t,n){let r=nt(t),i=(0,v.useContext)(Sp),{dragAndDropHooks:a,dragState:o,dropState:s}=(0,v.useContext)(op),c=o&&!(o.isDisabled||o.selectionManager.isDisabled(n.key)),{optionProps:l,labelProps:u,descriptionProps:d,...f}=hp({key:n.key,"aria-label":e?.[`aria-label`]},i,r),{hoverProps:p,isHovered:m}=q({isDisabled:!f.allowsSelection&&!f.hasAction&&!c,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),{keyboardProps:h}=Oa(e),{focusProps:g}=Ea(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=B(e,{global:!0});return delete C.id,delete C.onClick,e.href&&l.tabIndex==null&&(l.tabIndex=-1),v.createElement(S,{...z(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(bi,{values:[[yu,{slots:{[yi]:u,label:u,description:d}}],[mu,{isSelected:f.isSelected}]]},x.children))});function kp(e,t){t=nt(t);let{dragAndDropHooks:n,dropState:r}=(0,v.useContext)(op),{dropIndicatorProps:i,isHidden:a,isDropTarget:o}=n.useDropIndicator(e,r,t);return a?null:v.createElement(jp,{...e,dropIndicatorProps:i,isDropTarget:o,ref:t})}function Ap(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 jp=(0,v.forwardRef)(Ap);Gl(Cl,function(e,t,n){let r=(0,v.useContext)(Sp),{isLoading:i,onLoadMore:a,scrollOffset:o,...s}=e,c=(0,v.useRef)(null);Dt((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:Ot(!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,{...z(B(e,{global:!0}),{tabIndex:-1}),...l,role:`option`,ref:t},l.children)))});function Mp(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:o}=Pi(e),s=Ee([!!t,!!n,r,i]),c=Ee([!!t,!!n,r,i]);return o=z(o,{"aria-describedby":[s,c,e[`aria-describedby`]].filter(Boolean).join(` `)||void 0}),{labelProps:a,fieldProps:o,descriptionProps:{id:s},errorMessageProps:{id:c}}}var Np=new WeakMap;function Pp(e,t,n){let{keyboardDelegate:r,isDisabled:i,isRequired:a,name:o,form:s,validationBehavior:c=`aria`}=e,l=yd({usage:`search`,sensitivity:`base`}),u=(0,v.useMemo)(()=>r||new _d(t.collection,t.disabledKeys,n,l),[r,t.collection,t.disabledKeys,l,n]),{menuTriggerProps:d,menuProps:f}=od({isDisabled:i,type:`listbox`},t,n),p=e=>{if(t.selectionManager.selectionMode!==`multiple`)switch(e.key){case`ArrowLeft`:{e.preventDefault();let n=t.selectedKey==null?u.getFirstKey?.():u.getKeyAbove?.(t.selectedKey);n!=null&&t.setSelectedKey(n);break}case`ArrowRight`:{e.preventDefault();let n=t.selectedKey==null?u.getFirstKey?.():u.getKeyBelow?.(t.selectedKey);n!=null&&t.setSelectedKey(n);break}}},{typeSelectProps:m}=pd({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}=Mp({...e,labelElementType:`span`,isInvalid:h,errorMessage:e.errorMessage||g});m.onKeyDown=m.onKeyDownCapture,delete m.onKeyDownCapture,t.selectionManager.selectionMode===`multiple`&&(m={});let C=B(e,{labelable:!0}),w=z(m,d,b),T=we();return Np.set(t,{isDisabled:i,isRequired:a,name:o,form:s,validationBehavior:c}),{labelProps:{...y,onClick:()=>{e.isDisabled||(n.current?.focus(),xa(`keyboard`))}},triggerProps:z(C,{...w,isDisabled:i,onKeyDown:De(w.onKeyDown,p,e.onKeyDown),onKeyUp:e.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,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:`selection`,onBlur:n=>{Pe(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 Fp(e,t,n){let{validationBehavior:r,focus:i}=e;L(()=>{if(r===`native`&&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(Lp(n.current))}});let a=(0,v.useRef)(!1),o=it(()=>{a.current||t.resetValidation()}),s=it(e=>{t.displayValidation.isInvalid||t.commitValidation();let r=n?.current?.form;!e.defaultPrevented&&n&&r&&Rp(r)===n.current&&(i?i():n.current?.focus(),xa(`keyboard`)),e.preventDefault()}),c=it(()=>{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`&&R(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 Ip(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 Lp(e){return{isInvalid:!e.validity.valid,validationDetails:Ip(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function Rp(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 zp(e,t,n){let r=Np.get(t)||{},{autoComplete:i,name:a=r.name,form:o=r.form,isDisabled:s=r.isDisabled}=e,{validationBehavior:c,isRequired:l}=r,{visuallyHiddenProps:u}=il({style:{position:`fixed`,top:0,left:0}});Et(e.selectRef,t.defaultValue,t.setValue),Fp({validationBehavior:c,focus:()=>n.current?.focus()},t,e.selectRef);let d=t.setValue,f=(0,v.useCallback)(e=>{let t=R(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 Bp(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}=zp({...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}=Np.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:!1,onChange:()=>{}}):v.createElement(`input`,{key:n,...r,ref:n===0?c:null})});return v.createElement(v.Fragment,null,n)}return null}function Vp(e){let{selectionMode:t=`single`,shouldCloseOnSelect:n=t===`single`}=e,r=hl(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]=po((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=vp({...e,selectionMode:t,disallowEmptySelection:t===`single`,allowDuplicateSelectionEvents:!0,selectedKeys:(0,v.useMemo)(()=>Hp(l),[l]),onSelectionChange:e=>{e!==`all`&&(u(t===`single`?e.values().next().value??null:[...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=gf({...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 Hp(e){if(e!==void 0)return e===null?[]:Array.isArray(e)?e:[e]}function Up(e={}){let{locale:t}=Gi();return(0,v.useMemo)(()=>new Intl.ListFormat(t,e),[t,e])}function Wp(e){return e&&e.__esModule?e.default:e}var Gp=(0,v.createContext)(null),Kp=(0,v.createContext)(null),qp=Ai(function(e,t){[e,t]=Ci(e,t,Gp);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(Ll,{content:o},n=>v.createElement(Yp,{props:e,collection:n,selectRef:t}))}),Jp=[Mi,oo,yu];function Yp({props:e,selectRef:t,collection:n}){let{validationBehavior:r}=Si(Cf)||{},i=e.validationBehavior??r??`native`,a=Vp({...e,collection:n,children:void 0,validationBehavior:i}),{isFocusVisible:o,focusProps:s}=eo({within:!0}),c=(0,v.useRef)(null),[l,u]=wi(!e[`aria-label`]&&!e[`aria-labelledby`]),{labelProps:d,triggerProps:f,valueProps:p,menuProps:m,descriptionProps:h,errorMessageProps:g,hiddenSelectProps:_,...y}=Pp({...Ti(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=B(e,{global:!0});delete S.id;let C=(0,v.useRef)(null);return v.createElement(bi,{values:[[Gp,e],[Kp,a],[Xp,p],[Mi,{...d,ref:l,elementType:`span`}],[oo,{...f,ref:c,isPressed:a.isOpen,autoFocus:e.autoFocus}],[Gd,a],[gl,{trigger:`Select`,triggerRef:c,scrollRef:C,placement:`bottom start`,"aria-labelledby":m[`aria-labelledby`],clearContexts:Jp}],[xp,{...m,ref:C}],[Sp,a],[yu,{slots:{description:h,errorMessage:g}}],[cf,y]]},v.createElement(K.div,{...z(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(Bp,{..._,autoComplete:e.autoComplete})))}var Xp=(0,v.createContext)(null),Zp=Ai(function(e,t){[e,t]=Ci(e,t,Xp);let n=(0,v.useContext)(Kp),{placeholder:r}=Si(Gp),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=Up(),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=nl(Wp(ap),`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=B(e,{global:!0});return v.createElement(K.span,{ref:t,...f,...d,"data-placeholder":n.selectedItems.length===0||void 0},v.createElement(yu.Provider,{value:void 0},d.children))});function Qp(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=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=v.useMemo(()=>o,Object.values(o));return(0,V.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=v.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>v.createContext(e));return function(n){let r=n?.[e]||t;return v.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,$p(i,...t)]}function $p(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return 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])}};return n.scopeName=t.scopeName,n}function em(e){let t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...e)=>t.current?.(...e),[])}var tm=globalThis?.document?v.useLayoutEffect:()=>{};function nm(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function rm(...e){return t=>{let n=!1,r=e.map(e=>{let r=nm(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():nm(e[t],null)}}}}var im=Symbol.for(`react.lazy`),am=v.use;function om(e){return typeof e==`object`&&!!e&&`then`in e}function sm(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===im&&`_payload`in e&&om(e._payload)}function cm(e){let t=lm(e),n=v.forwardRef((e,n)=>{let{children:r,...i}=e;sm(r)&&typeof am==`function`&&(r=am(r._payload));let a=v.Children.toArray(r),o=a.find(dm);if(o){let e=o.props.children,r=a.map(t=>t===o?v.Children.count(e)>1?v.Children.only(null):v.isValidElement(e)?e.props.children:null:t);return(0,V.jsx)(t,{...i,ref:n,children:v.isValidElement(e)?v.cloneElement(e,void 0,r):null})}return(0,V.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function lm(e){let t=v.forwardRef((e,t)=>{let{children:n,...r}=e;if(sm(n)&&typeof am==`function`&&(n=am(n._payload)),v.isValidElement(n)){let e=pm(n),i=fm(r,n.props);return n.type!==v.Fragment&&(i.ref=t?rm(t,e):e),v.cloneElement(n,i)}return v.Children.count(n)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var um=Symbol(`radix.slottable`);function dm(e){return v.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===um}function fm(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}}function pm(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)}var mm=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=cm(`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,V.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function hm(){return(0,Pl.useSyncExternalStore)(gm,()=>!0,()=>!1)}function gm(){return()=>{}}var _m=`Avatar`,[vm,ym]=Qp(_m),[bm,xm]=vm(_m),Sm=v.forwardRef((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,a]=v.useState(`idle`);return(0,V.jsx)(bm,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:a,children:(0,V.jsx)(mm.span,{...r,ref:t})})});Sm.displayName=_m;var Cm=`AvatarImage`,wm=v.forwardRef((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...a}=e,o=xm(Cm,n),s=Om(r,a),c=em(e=>{i(e),o.onImageLoadingStatusChange(e)});return tm(()=>{s!==`idle`&&c(s)},[s,c]),s===`loaded`?(0,V.jsx)(mm.img,{...a,ref:t,src:r}):null});wm.displayName=Cm;var Tm=`AvatarFallback`,Em=v.forwardRef((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,a=xm(Tm,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,V.jsx)(mm.span,{...i,ref:t}):null});Em.displayName=Tm;function Dm(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?`loaded`:`loading`):`error`:`idle`}function Om(e,{referrerPolicy:t,crossOrigin:n}){let r=hm(),i=v.useRef(null),a=r?(i.current||=new window.Image,i.current):null,[o,s]=v.useState(()=>Dm(a,e));return tm(()=>{s(Dm(a,e))},[a,e]),tm(()=>{let e=e=>()=>{s(e)};if(!a)return;let r=e(`loaded`),i=e(`error`);return a.addEventListener(`load`,r),a.addEventListener(`error`,i),t&&(a.referrerPolicy=t),typeof n==`string`&&(a.crossOrigin=n),()=>{a.removeEventListener(`load`,r),a.removeEventListener(`error`,i)}},[a,n,t]),o}var km=Sm,Am=wm,jm=Em,Mm=(0,v.createContext)({}),Nm=({children:e,className:t,color:n,size:r,variant:i,...a})=>{let o=v.useMemo(()=>qr({color:n,size:r,variant:i}),[n,r,i]);return(0,V.jsx)(Mm,{value:{slots:o},children:(0,V.jsx)(km,{className:o.base({className:t}),...a,children:e})})},Pm=Object.assign(Nm,{Root:Nm,Image:({className:e,crossOrigin:t,loading:n,onError:r,onLoad:i,sizes:a,src:o,srcSet:s,...c})=>{let{slots:l}=v.useContext(Mm);return(0,V.jsx)(Am,{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.useContext(Mm);return(0,V.jsx)(jm,{className:Y(r?.fallback,e,{color:t}),"data-slot":`avatar-fallback`,...n})}});function Fm(e={}){let{isReadOnly:t}=e,[n,r]=po(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 Im=(0,v.createContext)({}),Lm=`__button_group_child`,Rm=({children:e,className:t,fullWidth:n,isDisabled:r,isIconOnly:i,size:a,slot:o,style:s,variant:c,[Lm]:l,...u})=>{let d=(0,v.useContext)(Im),f=l===!0,p=a??(f?d?.size:void 0),m=c??(f?d?.variant:void 0),h=r??(f?d?.isDisabled:void 0);return(0,V.jsx)(so,{className:J(t,Jr({fullWidth:n??(f?d?.fullWidth:void 0),isIconOnly:i,size:p,variant:m})),"data-slot":`button`,isDisabled:h,slot:o,style:s,...u,children:t=>typeof e==`function`?e(t):e})},zm=Object.assign(Rm,{Root:Rm}),Bm=(0,v.createContext)({}),Vm=({children:e,className:t,variant:n=`default`,...r})=>{let i=v.useMemo(()=>Yr({variant:n}),[n]),a=(0,V.jsx)($t.div,{className:i.base({className:t}),"data-slot":`card`,...r,children:e});return(0,V.jsx)(Bm,{value:{slots:i},children:n===`transparent`?a:(0,V.jsx)(Po,{value:{variant:n},children:a})})},Hm=Object.assign(Vm,{Root:Vm,Header:({className:e,...t})=>{let{slots:n}=(0,v.useContext)(Bm);return(0,V.jsx)($t.div,{className:Y(n?.header,e),"data-slot":`card-header`,...t})},Title:({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Bm);return(0,V.jsx)($t.h3,{className:Y(r?.title,t),"data-slot":`card-title`,...n,children:e})},Description:({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Bm);return(0,V.jsx)($t.p,{className:Y(r?.description,t),"data-slot":`card-description`,...n,children:e})},Content:({className:e,...t})=>{let{slots:n}=(0,v.useContext)(Bm);return(0,V.jsx)($t.div,{className:Y(n?.content,e),"data-slot":`card-content`,...t})},Footer:({className:e,...t})=>{let{slots:n}=(0,v.useContext)(Bm);return(0,V.jsx)($t.div,{className:Y(n?.footer,e),"data-slot":`card-footer`,...t})}}),Um=new WeakMap;function Wm(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}=Mp({...e,labelElementType:`span`,isInvalid:o,errorMessage:e.errorMessage||s});Um.set(t,{name:r,form:i,descriptionId:d.id,errorMessageId:f.id,validationBehavior:a});let p=B(e,{labelable:!0}),{focusWithinProps:m}=$a({onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:z(p,{role:`group`,"aria-disabled":n||void 0,...u,...m}),labelProps:l,descriptionProps:d,errorMessageProps:f,isInvalid:o,validationErrors:s,validationDetails:c}}function Gm(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 Km(e=!0){let t=we(),[n,r]=Gm(e);return{id:r?t:void 0,ref:n}}function qm(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=gf({...e,value:t.isSelected}),{isInvalid:S,validationErrors:C,validationDetails:w}=x.displayValidation;Fp(e,x,n);let T=e=>{e.stopPropagation(),t.setSelected(R(e).checked)},{pressProps:E,isPressed:D}=Wa({onPressStart:m,onPressEnd:h,onPressChange:g,onPress:_,onPressUp:y,onClick:b,isDisabled:r}),[O,k]=(0,v.useState)(!1),{pressProps:A}=Wa({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{[hf]:i}=e,{commitValidation:a}=i||x;a()},isDisabled:r||i}),{focusableProps:j}=Ma(e,n),M=z(E,j),ee=B(e,{labelable:!0});Et(n,t.defaultSelected,t.setSelected);let N=Km(),te=Km();return{labelProps:z(A,{onClick:e=>e.preventDefault()}),inputProps:z(ee,{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":[N.id,te.id,p].filter(Boolean).join(` `)||void 0,onChange:T,disabled:r,...a==null?{}:{value:a},name:o,form:s,type:`checkbox`,...M}),descriptionProps:N,errorMessageProps:te,isSelected:t.isSelected,isPressed:D||O,isDisabled:r,isReadOnly:i,isInvalid:S||e.validationState===`invalid`,validationErrors:C,validationDetails:w}}function Jm(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}=qm(e,t,n),{isIndeterminate:m}=e;return(0,v.useEffect)(()=>{n.current&&(n.current.indeterminate=!!m)}),{labelProps:z(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 Ym(e,t,n){let r=Fm({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}=Um.get(t);c=e.validationBehavior??c;let{realtimeValidation:l}=gf({...e,value:r.isSelected,name:void 0,validationBehavior:`aria`}),u=(0,v.useRef)(pf),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=Jm({...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,[hf]:{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 Xm(e={}){let[t,n]=po(e.value,e.defaultValue||[],e.onChange),[r]=(0,v.useState)(t),i=!!e.isRequired&&t.length===0,a=(0,v.useRef)(new Map),o=gf({...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(Sf(...n.values()))},validationState:e.validationState??(s?`invalid`:null),isInvalid:s,isRequired:i}}var Zm=(0,v.createContext)(null),Qm=(0,v.createContext)(null),$m=(0,v.createContext)(null),eh=(0,v.forwardRef)(function(e,t){[e,t]=Ci(e,t,Qm);let{validationBehavior:n}=Si(Cf)||{},r=e.validationBehavior??n??`native`,i=Xm({...e,validationBehavior:r}),[a,o]=wi(!e[`aria-label`]&&!e[`aria-labelledby`]),{groupProps:s,labelProps:c,descriptionProps:l,errorMessageProps:u,...d}=Wm({...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=B(e,{global:!0});return v.createElement(K.div,{...z(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(bi,{values:[[$m,i],[Mi,{...c,ref:a,elementType:`span`}],[yu,{slots:{description:l,errorMessage:u}}],[cf,d]]},f.children))}),th=(0,v.createContext)(null),nh=(0,v.forwardRef)(function(e,t){let{inputRef:n=null,...r}=e;[e,t]=Ci(r,t,Zm);let i=(0,v.useContext)($m),[a,o]=rh(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=B(e,{global:!0});return delete g.id,delete g.onClick,v.createElement(K.div,{...z(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(bi,{values:[[th,{...a,inputRef:o,defaultClassName:`react-aria-CheckboxButton`,isIndeterminate:e.isIndeterminate,isRequired:e.isRequired}],[yu,{slots:{description:s,errorMessage:c}}],[cf,i?null:{isInvalid:f,validationDetails:p,validationErrors:m}]]},h.children))});function rh(e,t){let{validationBehavior:n}=Si(Cf)||{},r=e.validationBehavior??n??`native`,i=(0,v.useContext)($m),a=nt((0,v.useMemo)(()=>ze(t,e.inputRef===void 0?null:e.inputRef),[t,e.inputRef])),o={...Ti(e),children:typeof e.children==`function`?!0:e.children,value:e.value,validationBehavior:r};return[i?Ym(o,i,a):Jm(o,Fm(e),a),a]}var ih=(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)(th),{isFocused:p,isFocusVisible:m,focusProps:h}=eo(),g=a||o,{hoverProps:_,isHovered:y}=q({...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=B(e,{global:!0});return delete x.id,delete x.onClick,v.createElement(K.label,{...z(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(al,{elementType:`span`},v.createElement(`input`,{...z(r,h),ref:l})),b.children)}),ah=(0,v.createContext)({}),oh=({children:e,className:t,variant:n,...r})=>{let i=v.useMemo(()=>Zr({variant:n}),[n]);return(0,V.jsx)(ah.Provider,{value:{variant:n},children:(0,V.jsx)(eh,{className:J(t,i),"data-slot":`checkbox-group`,...r,children:t=>(0,V.jsx)(V.Fragment,{children:typeof e==`function`?e(t):e})})})},sh=(0,v.createContext)({}),ch=({children:e,className:t,variant:n,...r})=>{let i=(0,v.useContext)(ah),a=n??i.variant,o=v.useMemo(()=>Xr({variant:a}),[a]);return(0,V.jsx)(nh,{"data-slot":`checkbox`,...r,className:J(t,o.base()),children:t=>(0,V.jsx)(sh,{value:{slots:o,state:t},children:typeof e==`function`?e(t):e})})};ch.displayName=`HeroUI.Checkbox`;var lh=({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(sh);return(0,V.jsx)(ih,{"data-slot":`checkbox-content`,...n,className:J(t,r?.content()),children:e})};lh.displayName=`HeroUI.Checkbox.Content`;var uh=({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(sh);return(0,V.jsx)($t.span,{className:Y(r?.control,t),"data-slot":`checkbox-control`,...n,children:e})};uh.displayName=`HeroUI.Checkbox.Control`;var dh=({children:e,className:t,...n})=>{let{slots:r,state:i}=(0,v.useContext)(sh),a=i?.isSelected,o=i?.isIndeterminate,s=typeof e==`function`?e(i??{}):e||(o?(0,V.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,V.jsx)(`line`,{x1:`21`,x2:`3`,y1:`12`,y2:`12`})}):(0,V.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,V.jsx)(`polyline`,{points:`1 9 7 14 15 4`})}));return(0,V.jsx)($t.span,{"aria-hidden":`true`,className:Y(r?.indicator,t),"data-slot":`checkbox-indicator`,...n,children:s})};dh.displayName=`HeroUI.Checkbox.Indicator`;var fh=Object.assign(ch,{Root:ch,Content:lh,Control:uh,Indicator:dh}),ph=(0,v.createContext)({}),mh=({children:e,className:t,color:n,size:r,variant:i,...a})=>{let o=v.useMemo(()=>Qr({color:n,size:r,variant:i}),[n,r,i]),s=v.useMemo(()=>typeof e==`string`||typeof e==`number`?(0,V.jsx)(hh,{children:e}):e,[e]);return(0,V.jsx)(ph,{value:{slots:o},children:(0,V.jsx)($t.span,{...a,className:Y(o.base,t),"data-slot":`chip`,children:s})})},hh=({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(ph);return(0,V.jsx)($t.span,{className:Y(r?.label,t),"data-slot":`chip-label`,...n,children:e})},gh=Object.assign(mh,{Root:mh,Label:hh}),_h=(0,v.createContext)({}),vh=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...i}=e;return i},yh=Ai(function(e,t){[e,t]=Ci(e,t,_h);let{hoverProps:n,isHovered:r}=q({...e,isDisabled:e.disabled}),{isFocused:i,isFocusVisible:a,focusProps:o}=eo({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,{...z(vh(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 bh(e,t){let{inputElementType:n=`input`,isDisabled:r=!1,isRequired:i=!1,isReadOnly:a=!1,type:o=`text`,validationBehavior:s=`aria`}=e,[c,l]=po(e.value,e.defaultValue||``,e.onChange),{focusableProps:u}=Ma(e,t),d=gf({...e,value:c}),{isInvalid:f,validationErrors:p,validationDetails:m}=d.displayValidation,{labelProps:h,fieldProps:g,descriptionProps:_,errorMessageProps:y}=Mp({...e,isInvalid:f,errorMessage:e.errorMessage||p}),b=B(e,{labelable:!0}),x={type:o,pattern:e.pattern},[S]=(0,v.useState)(c);return Et(t,e.defaultValue??S,l),Fp(e,d,t),{labelProps:h,inputProps:z(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(R(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 xh=(0,v.createContext)({}),Sh=8,Ch=.3,wh=.5;function Th(e,t){let n=(0,v.useContext)(Gd),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=>{t&&e.button===0&&(e.target.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)<Sh)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*Ch||u>wh)&&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 Eh=(0,v.createContext)({}),Dh=({children:e,state:t,...n})=>(0,V.jsx)(Eh,{value:(0,v.useMemo)(()=>({slots:ti(),placement:void 0,isDismissable:!0}),[]),children:(0,V.jsx)(Kd,{"data-slot":`drawer-root`,...z(n,(0,v.useMemo)(()=>t?{isOpen:t.isOpen,onOpenChange:t.setOpen}:{},[t])),children:e})});Dh.displayName=`HeroUI.Drawer`;var Oh=({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Eh);return(0,V.jsx)(so,{className:J(t,r?.trigger()),"data-slot":`drawer-trigger`,...n,children:e})};Oh.displayName=`HeroUI.Drawer.Trigger`;var kh=({children:e,className:t,isDismissable:n=!0,variant:r,...i})=>{let{slots:a}=(0,v.useContext)(Eh),o=(0,v.useMemo)(()=>ti({variant:r}),[r]),s=(0,v.useMemo)(()=>({slots:{...a,...o},isDismissable:n}),[a,o,n]);return(0,V.jsx)($d,{className:J(t,o?.backdrop()),"data-slot":`drawer-backdrop`,isDismissable:n,...i,children:t=>(0,V.jsx)(Eh,{value:s,children:typeof e==`function`?e(t):e})})};kh.displayName=`HeroUI.Drawer.Backdrop`;var Ah=({children:e,className:t,placement:n=`bottom`,...r})=>{let{isDismissable:i,slots:a}=(0,v.useContext)(Eh),o=(0,v.useMemo)(()=>ti({placement:n}),[n]),s=(0,v.useMemo)(()=>({placement:n,isDismissable:i,slots:{...a,...o}}),[a,n,i,o]);return(0,V.jsx)(Zd,{className:J(t,o?.content()),"data-placement":n,"data-slot":`drawer-content`,...r,children:t=>(0,V.jsx)(Eh,{value:s,children:typeof e==`function`?e(t):e})})};Ah.displayName=`HeroUI.Drawer.Content`;var jh=({children:e,className:t,...n})=>{let{isDismissable:r=!0,placement:i,slots:a}=(0,v.useContext)(Eh),{dialogRef:o,dragHandlers:s}=Th(i,r);return(0,V.jsx)(Po,{value:{variant:`default`},children:(0,V.jsx)(qd,{ref:o,className:Y(a?.dialog,t),"data-placement":i,"data-slot":`drawer-dialog`,style:r?{touchAction:`none`}:void 0,...s,...n,children:e})})};jh.displayName=`HeroUI.Drawer.Dialog`;var Mh=({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Eh);return(0,V.jsx)($t.div,{className:Y(r?.header,t),"data-slot":`drawer-header`,...n,children:e})};Mh.displayName=`HeroUI.Drawer.Header`;var Nh=({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Eh);return(0,V.jsx)($t.div,{className:Y(r?.body,t),"data-slot":`drawer-body`,style:{touchAction:`pan-y`},...n,children:e})};Nh.displayName=`HeroUI.Drawer.Body`;var Ph=({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Eh);return(0,V.jsx)($t.div,{className:Y(r?.footer,t),"data-slot":`drawer-footer`,...n,children:e})};Ph.displayName=`HeroUI.Drawer.Footer`;var Fh=({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Eh);return(0,V.jsx)(wo,{className:Y(r?.heading,t),"data-slot":`drawer-heading`,slot:`title`,...n,children:e})};Fh.displayName=`HeroUI.Drawer.Heading`;var Ih=({className:e,...t})=>{let{slots:n}=(0,v.useContext)(Eh);return(0,V.jsx)($t.div,{"aria-hidden":`true`,className:Y(n?.handle,e),"data-slot":`drawer-handle`,...t,children:(0,V.jsx)(`div`,{"data-slot":`drawer-handle-bar`})})};Ih.displayName=`HeroUI.Drawer.Handle`;var Lh=({className:e,...t})=>{let{slots:n}=(0,v.useContext)(Eh);return(0,V.jsx)(af,{className:J(e,n?.closeTrigger()),"data-slot":`drawer-close-trigger`,slot:`close`,...t})};Lh.displayName=`HeroUI.Drawer.CloseTrigger`;var Rh=Object.assign(Dh,{Root:Dh,Trigger:Oh,Backdrop:kh,Content:Ah,Dialog:jh,Header:Mh,Heading:Fh,Body:Nh,Footer:Ph,Handle:Ih,CloseTrigger:Lh}),zh=(0,v.createContext)({}),Bh=({children:e,...t})=>(0,V.jsx)(zh,{value:{slots:v.useMemo(()=>li(),[])},children:(0,V.jsx)(Kd,{"data-slot":`popover-root`,...t,children:e})}),Vh=Object.assign(Bh,{Root:Bh,Trigger:({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(zh);return(0,V.jsx)(nf,{children:(0,V.jsx)($t.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.useContext)(zh);return(0,V.jsx)(qd,{"data-slot":`popover-dialog`,...n,className:Y(r?.dialog,t),children:e})},Arrow:({children:e,className:t,...n})=>{let r=(0,V.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,V.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,V.jsx)(Bo,{"data-slot":`popover-overlay-arrow-group`,...n,className:t,children:i})},Content:({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(zh);return(0,V.jsx)(zh,{value:{slots:r},children:(0,V.jsx)(Po,{value:{variant:`default`},children:(0,V.jsx)(vl,{...n,className:J(t,r?.base()),children:e})})})},Heading:({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(zh);return(0,V.jsx)(wo,{slot:`title`,...n,className:Y(r?.heading,t),children:e})}}),Hh=e=>{let{containerRef:t,isEnabled:n,offset:r,onVisibilityChange:i,orientation:a,visibility:o}=e,s=(0,v.useRef)(null),c=(0,v.useRef)(null),l=(0,v.useCallback)(()=>{let e=t.current;if(!e)return;let n=a===`vertical`,o=n?e.scrollTop:e.scrollLeft,l=n?e.scrollHeight:e.scrollWidth,u=n?e.clientHeight:e.clientWidth,d=o>r,f=o+u+r<l,p=s.current;p&&p.hasScrollBefore===d&&p.hasScrollAfter===f||(s.current={hasScrollBefore:d,hasScrollAfter:f},c.current!==null&&cancelAnimationFrame(c.current),c.current=requestAnimationFrame(()=>{c.current=null,n?d&&f?(e.dataset.topBottomScroll=`true`,delete e.dataset.topScroll,delete e.dataset.bottomScroll,i?.(`both`)):(e.dataset.topScroll=String(d),e.dataset.bottomScroll=String(f),delete e.dataset.topBottomScroll,i&&i(d?`top`:f?`bottom`:`none`)):d&&f?(e.dataset.leftRightScroll=`true`,delete e.dataset.leftScroll,delete e.dataset.rightScroll,i?.(`both`)):(e.dataset.leftScroll=String(d),e.dataset.rightScroll=String(f),delete e.dataset.leftRightScroll,i&&i(d?`left`:f?`right`:`none`))}))},[t,a,r,i]);(0,v.useEffect)(()=>{let e=t.current;if(!e||!n||o!==`auto`)return;l(),e.addEventListener(`scroll`,l,{passive:!0});let r=new ResizeObserver(l);return r.observe(e),()=>{e.removeEventListener(`scroll`,l),r.disconnect(),c.current!==null&&(cancelAnimationFrame(c.current),c.current=null),s.current=null}},[t,o,n,l])},Uh=globalThis?.document?v.useLayoutEffect:v.useEffect,Wh=({children:e,className:t,hideScrollBar:n=!1,isEnabled:r=!0,offset:i=0,onVisibilityChange:a,orientation:o=`vertical`,ref:s,size:c=40,variant:l=`fade`,visibility:u=`auto`,...d})=>{let f=(0,v.useRef)(null);Hh({containerRef:f,isEnabled:r,offset:i,onVisibilityChange:a,orientation:o,visibility:u}),Uh(()=>{let e=f.current;!e||u===`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,u===`both`?e.dataset[o===`vertical`?`topBottomScroll`:`leftRightScroll`]=`true`:u!==`none`&&(e.dataset[`${u}Scroll`]=`true`))},[u,o]);let p=(0,v.useMemo)(()=>ui({hideScrollBar:n,orientation:o,variant:l}),[o,n,l]),m={"--scroll-shadow-size":`${c}px`,...d.style};return(0,V.jsx)(`div`,{ref:ze(f,s),className:p.base({className:t}),"data-orientation":o,"data-scroll-shadow-size":c,"data-slot":`scroll-shadow`,style:m,...d,children:e})};Wh.displayName=`HeroUI.ScrollShadow`;var Gh=Object.assign(Wh,{Root:Wh}),Kh=new Map;function qh(e,t,n=!0){let r=ye();return v.useMemo(()=>{if(t!==void 0)return t;if(!r){if(n&&Kh.has(e))return Kh.get(e);try{let t=document.documentElement,r=getComputedStyle(t).getPropertyValue(e).trim()||void 0;return n&&Kh.set(e,r),r}catch{return}}},[e,t,r,n])}var Jh=({...e})=>{let t=(0,v.useId)();return(0,V.jsxs)(`svg`,{"data-slot":`spinner-icon`,viewBox:`0 0 24 24`,...e,children:[(0,V.jsxs)(`defs`,{children:[(0,V.jsxs)(`linearGradient`,{id:`«data-slot-icon-def-1»-${t}`,x1:`50%`,x2:`50%`,y1:`5.271%`,y2:`91.793%`,children:[(0,V.jsx)(`stop`,{offset:`0%`,stopColor:`currentColor`}),(0,V.jsx)(`stop`,{offset:`100%`,stopColor:`currentColor`,stopOpacity:.55})]}),(0,V.jsxs)(`linearGradient`,{id:`«data-slot-icon-def-2»-${t}`,x1:`50%`,x2:`50%`,y1:`15.24%`,y2:`87.15%`,children:[(0,V.jsx)(`stop`,{offset:`0%`,stopColor:`currentColor`,stopOpacity:0}),(0,V.jsx)(`stop`,{offset:`100%`,stopColor:`currentColor`,stopOpacity:.55})]})]}),(0,V.jsxs)(`g`,{fill:`none`,children:[(0,V.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,V.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,V.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)`})]})]})},Yh=({className:e,color:t,size:n,...r})=>(0,V.jsx)($t.span,{"data-slot":`spinner`,...r,className:fi({className:e,color:t,size:n}),children:(0,V.jsx)(Jh,{"aria-hidden":!0,"aria-label":`Loading`,role:`presentation`})}),Xh=Object.assign(Yh,{Root:Yh}),Zh=Object.assign(Fo,{Root:Fo}),Qh=2**53-1,$h=.05,eg=4e3,tg={};tg={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 ng={};ng={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 rg={};rg={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 ig={};ig={close:`Luk`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} besked`,other:()=>`${t.number(e.count)} beskeder`})}.`};var ag={};ag={close:`Schließen`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} Benachrichtigung`,other:()=>`${t.number(e.count)} Benachrichtigungen`})}.`};var og={};og={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 sg={};sg={close:`Close`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notification`,other:()=>`${t.number(e.count)} notifications`})}.`};var cg={};cg={close:`Cerrar`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notificaci\xf3n`,other:()=>`${t.number(e.count)} notificaciones`})}.`};var lg={};lg={close:`Sule`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} teatis`,other:()=>`${t.number(e.count)} teatist`})}.`};var ug={};ug={close:`Sulje`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ilmoitus`,other:()=>`${t.number(e.count)} ilmoitusta`})}.`};var dg={};dg={close:`Fermer`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notification`,other:()=>`${t.number(e.count)} notifications`})}.`};var fg={};fg={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 pg={};pg={close:`Zatvori`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} obavijest`,other:()=>`${t.number(e.count)} obavijesti`})}.`};var mg={};mg={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 hg={};hg={close:`Chiudi`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notifica`,other:()=>`${t.number(e.count)} notifiche`})}.`};var gg={};gg={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 _g={};_g={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 vg={};vg={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 yg={};yg={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 bg={};bg={close:`Lukk`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} varsling`,other:()=>`${t.number(e.count)} varsler`})}.`};var xg={};xg={close:`Sluiten`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} melding`,other:()=>`${t.number(e.count)} meldingen`})}.`};var Sg={};Sg={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 Cg={};Cg={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 wg={};wg={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 Tg={};Tg={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 Eg={};Eg={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 Dg={};Dg={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 Og={};Og={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 kg={};kg={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 Ag={};Ag={close:`Stäng`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} meddelande`,other:()=>`${t.number(e.count)} meddelanden`})}.`};var jg={};jg={close:`Kapat`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} bildirim`,other:()=>`${t.number(e.count)} bildirim`})}.`};var Mg={};Mg={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 Ng={};Ng={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 Pg={};Pg={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 Fg={};Fg={"ar-AE":tg,"bg-BG":ng,"cs-CZ":rg,"da-DK":ig,"de-DE":ag,"el-GR":og,"en-US":sg,"es-ES":cg,"et-EE":lg,"fi-FI":ug,"fr-FR":dg,"he-IL":fg,"hr-HR":pg,"hu-HU":mg,"it-IT":hg,"ja-JP":gg,"ko-KR":_g,"lt-LT":vg,"lv-LV":yg,"nb-NO":bg,"nl-NL":xg,"pl-PL":Sg,"pt-BR":Cg,"pt-PT":wg,"ro-RO":Tg,"ru-RU":Eg,"sk-SK":Dg,"sl-SI":Og,"sr-SP":kg,"sv-SE":Ag,"tr-TR":jg,"uk-UA":Mg,"zh-CN":Ng,"zh-TW":Pg};function Ig(e){return e&&e.__esModule?e.default:e}function Lg(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=nl(Ig(Fg),`@react-aria/toast`),[l,u]=(0,v.useState)(!1);return L(()=>{u(!0)},[]),{toastProps:{...B(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 Rg=1,zg=Symbol.for(`react-aria-landmark-manager`);function Bg(e){return document.addEventListener(`react-aria-landmark-manager-change`,e),()=>document.removeEventListener(`react-aria-landmark-manager-change`,e)}function Vg(){if(typeof document>`u`)return null;let e=document[zg];return e&&e.version>=Rg?e:(document[zg]=new Ug,document.dispatchEvent(new CustomEvent(`react-aria-landmark-manager-change`)),document[zg])}function Hg(){return(0,Pl.useSyncExternalStore)(Bg,Vg,Vg)}var Ug=class{constructor(){this.landmarks=[],this.isListening=!1,this.refCount=0,this.version=Rg,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(R(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(Pe(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(R(e));t&&t.ref.current!==R(e)&&this.updateLandmark({ref:t.ref,lastFocused:R(e)});let n=e.relatedTarget;if(n){let e=this.closestLandmark(n);e&&e.ref.current===n&&e.blur()}}focusoutHandler(e){let t=R(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 Wg(e,t){let{role:n,"aria-label":r,"aria-labelledby":i,focus:a}=e,o=Hg(),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 Gg(e){return e&&e.__esModule?e.default:e}function Kg(e,t,n){let r=nl(Gg(Fg),`@react-aria/toast`),{landmarkProps:i}=Wg({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}=q({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(ba()===`pointer`&&f.current?.isConnected)N(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?N(l.current[i]):n>=0&&n<l.current.length&&N(l.current[n])}u.current=t.visibleToasts},[t.visibleToasts,n]);let f=(0,v.useRef)(null),{focusWithinProps:p}=$a({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&&(ba()===`pointer`?N(f.current):f.current.focus(),f.current=null)},[n,t.visibleToasts.length]),(0,v.useEffect)(()=>()=>{f.current?.isConnected&&(ba()===`pointer`?N(f.current):f.current.focus(),f.current=null)},[n]),{regionProps:z(i,c,p,{tabIndex:-1,"data-react-aria-top-layer":!0,onFocus:e=>{let t=R(e).closest(`[role="alertdialog"]`);d.current=l.current.findIndex(e=>e===t)},onBlur:()=>{d.current=-1}})}}function qg(e){let t=(0,v.useCallback)(t=>e.subscribe(t),[e]),n=(0,v.useCallback)(()=>e.visibleToasts,[e]);return{visibleToasts:(0,Pl.useSyncExternalStore)(t,n,n),add:(t,n)=>e.add(t,n),close:t=>e.close(t),pauseAll:()=>e.pauseAll(),resumeAll:()=>e.resumeAll()}}var Jg=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 Yg(()=>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`)}},Yg=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))}},Xg=(0,v.createContext)(null),Zg=(0,v.forwardRef)(function(e,t){let n=ye(),r=qg(e.queue),i=nt(t),{regionProps:a}=Kg(e,r,i),{focusProps:o,isFocused:s,isFocusVisible:c}=eo(),{hoverProps:l,isHovered:u}=q({}),d=G({...e,children:void 0,defaultClassName:`react-aria-ToastRegion`,values:{visibleToasts:r.visibleToasts,isHovered:u,isFocused:s,isFocusVisible:c}}),{direction:f}=Gi(),p,{getContainer:m}=dl();n||(p=document.body,m&&(p=m()));let h=B(e,{global:!0}),g=v.createElement(Xg.Provider,{value:r},v.createElement(K.div,{...z(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(Qg,{...e,render:void 0,className:void 0,style:{display:`contents`}},e.children):e.children));return r.visibleToasts.length>0&&p?(0,kt.createPortal)(g,p):null}),Qg=(0,v.forwardRef)(function(e,t){let n=(0,v.useContext)(Xg),{hoverProps:r,isHovered:i}=q({}),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}))))}),$g=(0,v.forwardRef)(function(e,t){let n=(0,v.useContext)(Xg),r=nt(t),{toastProps:i,contentProps:a,titleProps:o,descriptionProps:s,closeButtonProps:c}=Lg(e,n,r),{focusProps:l,isFocused:u,isFocusVisible:d}=eo(),f=G({...e,defaultClassName:`react-aria-Toast`,values:{toast:e.toast,isFocused:u,isFocusVisible:d}}),p=B(e,{global:!0});return v.createElement(K.div,{...z(p,f,i,l),ref:r,"data-focused":u||void 0,"data-focus-visible":d||void 0},v.createElement(bi,{values:[[e_,a],[yu,{slots:{[yi]:{},title:o,description:s}}],[oo,{slots:{[yi]:{},close:c}}]]},f.children))}),e_=(0,v.createContext)({}),t_=(0,v.forwardRef)(function(e,t){return[e,t]=Ci(e,t,e_),v.createElement(K.div,{render:e.render,className:`react-aria-ToastContent`,...e,ref:t},e.children)}),n_=class{constructor(e){this.maxVisibleToasts=e?.maxVisibleToasts;let t=Promise.resolve(),n=e=>{if(typeof document>`u`||!(`startViewTransition`in document)){e();return}let n=()=>document.startViewTransition(()=>{(0,kt.flushSync)(e)}).finished.catch(()=>{});t=t.then(n,n)};this.queue=new Jg({maxVisibleToasts:Qh,wrapUpdate:e?.wrapUpdate??n})}add(e,t){let n=t?.timeout===void 0?eg:t.timeout;return this.queue.add(e,{...t,timeout:n})}close(e){this.queue.close(e)}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}};function r_(e){let t=(t,n)=>{let r=n?.timeout===void 0?eg:n.timeout;return e.add({title:t,description:n?.description,indicator:n?.indicator,variant:n?.variant||`default`,actionProps:n?.actionProps,isLoading:n?.isLoading},{timeout:r,onClose:()=>{requestAnimationFrame(()=>{n?.onClose?.()})}})};return t.success=(e,n)=>t(e,{...n,variant:`success`}),t.danger=(e,n)=>t(e,{...n,variant:`danger`}),t.info=(e,n)=>t(e,{...n,variant:`accent`}),t.warning=(e,n)=>t(e,{...n,variant:`warning`}),t.promise=(n,r)=>{let i=typeof n==`function`?n():n,a=e.add({title:r.loading,variant:`default`,isLoading:!0},{timeout:0});return i.then(n=>{let i=typeof r.success==`function`?r.success(n):r.success;return e.close(a),t.success(i)}).catch(n=>{let i=typeof r.error==`function`?r.error(n):r.error;return e.close(a),t.danger(i)}),a},t.getQueue=()=>e.getQueue(),t.close=t=>e.close(t),t.pauseAll=()=>e.pauseAll(),t.resumeAll=()=>e.resumeAll(),t.clear=()=>e.clear(),t}var i_=r_(new n_({maxVisibleToasts:Qh})),a_=e=>{let[t,n]=(0,v.useState)(void 0),r=(0,v.useCallback)(()=>{if(e.current){let t=e.current.scrollHeight;n(e=>e===t?e:t)}},[e]);return(0,v.useEffect)(()=>{let t=e.current;if(!t)return;let n=new ResizeObserver(r),i=new MutationObserver(e=>{e.some(e=>e.type===`attributes`&&e.attributeName===`aria-hidden`)&&r()});return n.observe(t),i.observe(t,{attributeFilter:[`aria-hidden`],attributes:!0}),()=>{n.disconnect(),i.disconnect()}},[e,r]),{height:t}},o_=typeof window<`u`?v.useLayoutEffect:v.useEffect,s_=typeof window>`u`;function c_(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){let r=e=>s_?t:window.matchMedia(e).matches,[i,a]=(0,v.useState)(()=>n?r(e):t);function o(){a(r(e))}return o_(()=>{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 l_=(0,v.createContext)({}),u_=({children:e,className:t,placement:n,scaleFactor:r=$h,toast:i,variant:a,...o})=>{let{gap:s=12,heightsByKey:c,maxVisibleToasts:l=3,onToastHeightChange:u,onToastHeightRemove:d,placement:f,scaleFactor:p,slots:m}=(0,v.useContext)(l_),h=n??f,g=r??p,_=(0,v.useContext)(Xg).visibleToasts,y=_.indexOf(i),b=y<=0,x=h?.startsWith(`bottom`),S=y>=l,C=i?.key,w=(0,v.useRef)(null),{height:T}=a_(w);(0,v.useEffect)(()=>{C&&typeof T==`number`&&u?.(C,T)},[C,T,u]),(0,v.useEffect)(()=>{if(C)return()=>{d?.(C)}},[C,d]),(0,v.useLayoutEffect)(()=>{let e=w.current;e&&(e.tabIndex=b?0:-1)},[b]);let E=(0,v.useMemo)(()=>{let e=_[0]?.key,t=(e?c?.[e]:void 0)??T??0,n=y*s,r=(x?-1:1)*n;return{scale:`${1-y*g}`,translate:`0 ${r}px 0`,viewTransitionName:`toast-${String(i.key).replace(/[^a-zA-Z0-9]/g,`-`)}`,zIndex:_.length-y,...t?{"--front-height":`${t}px`}:null,opacity:+!S,pointerEvents:S?`none`:`auto`,...o.style}},[g,s,c,y,x,b,S,o.style,i?.key,T,_]);return(0,V.jsx)($g,{ref:w,"aria-hidden":S,className:J(t,m?.toast({variant:a})),"data-frontmost":To(b),"data-hidden":To(S),"data-index":y,"data-slot":`toast`,style:E,toast:i,...o,children:e})};u_.displayName=`HeroUI.Toast`;var d_=({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(l_);return(0,V.jsx)(t_,{className:Y(r?.content,t),"data-slot":`toast-content`,...n,children:e})},f_=({children:e,className:t,variant:n,...r})=>{let{slots:i}=(0,v.useContext)(l_),a=(0,v.useCallback)(()=>{switch(n){case`accent`:return(0,V.jsx)(Oo,{"data-slot":`toast-default-icon`});case`success`:return(0,V.jsx)(jo,{"data-slot":`toast-default-icon`});case`warning`:return(0,V.jsx)(ko,{"data-slot":`toast-default-icon`});case`danger`:return(0,V.jsx)(Ao,{"data-slot":`toast-default-icon`});default:return(0,V.jsx)(Oo,{"data-slot":`toast-default-icon`})}},[n]);return(0,V.jsx)($t.div,{className:Y(i?.indicator,t),"data-slot":`toast-indicator`,...r,children:e??a()})};f_.displayName=`HeroUI.ToastIndicator`;var p_=({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(l_);return(0,V.jsx)(bu,{className:Y(r?.title,t),"data-slot":`toast-title`,slot:`title`,...n,children:e})};p_.displayName=`HeroUI.ToastTitle`;var m_=({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(l_);return(0,V.jsx)(bu,{className:Y(r?.description,t),"data-slot":`toast-description`,slot:`description`,...n,children:e})};m_.displayName=`HeroUI.ToastDescription`;var h_=({className:e,...t})=>{let{slots:n}=(0,v.useContext)(l_);return(0,V.jsx)(af,{className:J(e,n?.close()),"data-slot":`toast-close`,slot:`close`,...t})};h_.displayName=`HeroUI.ToastCloseButton`;var g_=({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(l_);return(0,V.jsx)(zm,{className:J(t,r?.action?.()),"data-slot":`toast-action-button`,...n,children:e})};g_.displayName=`HeroUI.ToastActionButton`;var __=({children:e,className:t,gap:n=12,maxVisibleToasts:r,placement:i=`bottom`,queue:a,scaleFactor:o=$h,width:s=460,...c})=>{let l=(0,v.useMemo)(()=>_i({placement:i}),[i]),u=c_(`(max-width: 768px)`),[d,f]=v.useState({}),p=(0,v.useMemo)(()=>a?a.getQueue():i_.getQueue(),[a]),m=(0,v.useMemo)(()=>{let e=a&&`maxVisibleToasts`in a?a.maxVisibleToasts:void 0;return r??e??3},[r,a]),h=(0,v.useCallback)((e,t)=>{f(n=>n[e]===t?n:{...n,[e]:t})},[]),g=(0,v.useCallback)(e=>{f(t=>{if(!(e in t))return t;let n={...t};return delete n[e],n})},[]),_=(0,v.useCallback)(e=>{let{actionProps:t,description:n,indicator:r,isLoading:a,title:s,variant:c}=e.toast.content??{};return(0,V.jsxs)(u_,{placement:i,scaleFactor:o,toast:e.toast,variant:c,children:[r===null?null:a?(0,V.jsx)(f_,{variant:c,children:(0,V.jsx)(Xh,{color:`current`,size:`sm`})}):(0,V.jsx)(f_,{variant:c,children:r}),(0,V.jsxs)(d_,{children:[!!s&&(0,V.jsx)(p_,{children:s}),!!n&&(0,V.jsx)(m_,{children:n}),u&&t?.children?(0,V.jsx)(g_,{...t,children:t.children}):null]}),!u&&t?.children?(0,V.jsx)(g_,{...t,children:t.children}):null,(0,V.jsx)(h_,{})]})},[u,i,o]);return(0,V.jsx)(Zg,{className:J(t,l?.region()),"data-slot":`toast-region`,queue:p,style:{"--gap":`${n}px`,"--placement":i,"--scale-factor":o,"--toast-width":typeof s==`number`?`${s}px`:s},...c,children:t=>{let r=t.toast.content,a={...t,isLoading:r?.isLoading??!1};return(0,V.jsx)(l_,{value:{gap:n,heightsByKey:d,maxVisibleToasts:m,onToastHeightChange:h,onToastHeightRemove:g,placement:i,scaleFactor:o,slots:l,width:s},children:e===void 0?_(t):typeof e==`function`?e(a):e})}})};__.displayName=`HeroUI.ToastProvider`;var v_=Object.assign(u_,{Provider:__,Content:d_,Indicator:f_,Title:p_,Description:m_,ActionButton:g_,CloseButton:h_,Queue:n_,toast:i_});function y_(e,t,n){let{labelProps:r,inputProps:i,isSelected:a,...o}=qm(e,t,n);return{labelProps:r,inputProps:{...i,role:`switch`,checked:a},isSelected:a,...o}}var b_=(0,v.createContext)(null),x_=(0,v.createContext)(null),S_=(0,v.createContext)(null),C_=(0,v.forwardRef)(function(e,t){let{inputRef:n=null,...r}=e;[e,t]=Ci(r,t,b_);let{validationBehavior:i}=Si(Cf)||{},a=e.validationBehavior??i??`native`,o=nt(ze(n,e.inputRef===void 0?null:e.inputRef)),s=Fm(e),c=y_({...Ti(e),children:typeof e.children==`function`?!0: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=B(e,{global:!0});return delete y.id,delete y.onClick,v.createElement(K.div,{...z(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(bi,{values:[[x_,s],[S_,{...c,inputRef:o,defaultClassName:`react-aria-SwitchButton`,isRequired:e.isRequired}],[yu,{slots:{description:l,errorMessage:u}}],[cf,{isInvalid:m,validationDetails:h,validationErrors:g}]]},_.children))}),w_=(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)(S_),{isFocused:f,isFocusVisible:p,focusProps:m}=eo(),h=a||o,g=(0,v.useContext)(x_),{hoverProps:_,isHovered:y}=q({...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=B(e,{global:!0});return delete x.id,delete x.onClick,v.createElement(K.label,{...z(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(al,{elementType:`span`},v.createElement(`input`,{...z(r,m),ref:l})),b.children)}),T_=(0,v.createContext)({}),E_=({children:e,className:t,size:n,...r})=>{let i=v.useMemo(()=>mi({size:n}),[n]);return(0,V.jsx)(C_,{"data-slot":`switch`,...r,className:J(t,i.base()),children:t=>(0,V.jsx)(T_,{value:{slots:i,state:t},children:typeof e==`function`?e(t):e})})};E_.displayName=`HeroUI.Switch`;var D_=({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(T_);return(0,V.jsx)(w_,{"data-slot":`switch-content`,...n,className:J(t,r?.content()),children:e})};D_.displayName=`HeroUI.Switch.Content`;var O_=({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(T_);return(0,V.jsx)($t.span,{className:Y(r?.control,t),"data-slot":`switch-control`,...n,children:e})};O_.displayName=`HeroUI.Switch.Control`;var k_=({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(T_);return(0,V.jsx)($t.span,{className:Y(r?.thumb,t),"data-slot":`switch-thumb`,...n,children:e})};k_.displayName=`HeroUI.Switch.Thumb`;var A_=({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(T_);return(0,V.jsx)($t.span,{className:Y(r?.icon,t),"data-slot":`switch-icon`,...n,children:e})};A_.displayName=`HeroUI.Switch.Icon`;var j_=Object.assign(E_,{Root:E_,Content:D_,Control:O_,Thumb:k_,Icon:A_}),M_=new WeakMap;function N_(e,t,n){return e?(typeof t==`string`&&(t=t.replace(/\s+/g,``)),`${M_.get(e)}-${n}-${t}`):``}function P_(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}=xd({selectionManager:o,key:r,ref:n,isDisabled:l,shouldSelectOnPressUp:a??u?.props.href!=null,linkBehavior:`selection`}),p=N_(t,r,`tab`),m=N_(t,r,`tabpanel`),{tabIndex:h}=d,g=B(u?.props,{labelable:!0});delete g.id;let _=se(u?.props),{focusableProps:v}=Ma({...u?.props,isDisabled:l},n);return{tabProps:z(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 F_(e,t){let n=t?.isDisabled,[r,i]=(0,v.useState)(!1);return L(()=>{if(e?.current&&!n){let t=()=>{e.current&&i(!!Ws(e.current,{tabbable:!0}).nextNode())};t();let n=new MutationObserver(t);return n.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:[`tabIndex`,`disabled`]}),()=>{n.disconnect()}}}),n?!1:r}function I_(e,t,n){let r=F_(n)?void 0:0,i=N_(t,e.id??t?.selectedKey,`tabpanel`);return{tabPanelProps:z(tt({...e,id:i,"aria-labelledby":N_(t,t?.selectedKey,`tab`)}),{tabIndex:r,role:`tabpanel`,"aria-describedby":e[`aria-describedby`],"aria-details":e[`aria-details`]})}}var L_=class{constructor(e,t,n,r=new Set){this.collection=e,this.flipDirection=t===`rtl`&&n===`horizontal`,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));return t}getPreviousKey(e){let t=e;do t=this.collection.getKeyBefore(t),t??=this.collection.getLastKey();while(t!=null&&this.isDisabled(t));return t}};function R_(e,t,n){let{orientation:r=`horizontal`,keyboardActivation:i=`automatic`}=e,{collection:a,selectionManager:o,disabledKeys:s}=t,{direction:c}=Gi(),{collectionProps:l}=hd({ref:n,selectionManager:o,keyboardDelegate:(0,v.useMemo)(()=>new L_(a,c,r,s),[a,s,r,c]),selectOnFocus:i===`automatic`,disallowEmptySelection:!0,scrollRef:n,linkBehavior:`selection`}),u=we();return M_.set(t,u),{tabListProps:{...z(l,tt({...e,id:u})),role:`tablist`,"aria-orientation":r,tabIndex:void 0}}}function z_(e){let[t,n]=po(e.selectedKey,e.defaultSelectedKey??null,e.onSelectionChange),r=(0,v.useMemo)(()=>t==null?[]:[t],[t]),{collection:i,disabledKeys:a,selectionManager:o}=vp({...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 B_(e){let t=z_({...e,onSelectionChange:e.onSelectionChange?t=>{t!=null&&e.onSelectionChange?.(t)}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:e.defaultSelectedKey??V_(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=V_(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 V_(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 H_=(0,v.createContext)(null),U_=(0,v.createContext)(null),W_=(0,v.forwardRef)(function(e,t){[e,t]=Ci(e,t,H_);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(Ll,{content:n},n=>v.createElement(G_,{props:e,collection:n,tabsRef:t}))});function G_({props:e,tabsRef:t,collection:n}){let{orientation:r=`horizontal`}=e,i=B_({...e,collection:n,children:void 0}),{focusProps:a,isFocused:o,isFocusVisible:s}=eo({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=B(e,{global:!0});return v.createElement(K.div,{...z(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(bi,{values:[[H_,e],[U_,i]]},l.children))}var K_=(0,v.forwardRef)(function(e,t){return(0,v.useContext)(U_)?v.createElement(q_,{props:e,forwardedRef:t}):v.createElement(Yl,e)});function q_({props:e,forwardedRef:t}){let n=(0,v.useContext)(U_),{CollectionRoot:r}=(0,v.useContext)(tu),{orientation:i=`horizontal`,keyboardActivation:a=`automatic`}=Si(H_),o=nt(t),{tabListProps:s}=R_({...e,orientation:i,keyboardActivation:a},n,o),c=G({...e,children:null,defaultClassName:`react-aria-TabList`,values:{orientation:i,state:n}}),l=B(e,{global:!0});return delete l.id,v.createElement(K.div,{...z(l,c,s),ref:o,"data-orientation":i||void 0},v.createElement(fu,null,v.createElement(r,{collection:n.collection,persistedKeys:nu(n.selectionManager.focusedKey)})))}var J_=Gl(class extends bl{static{this.type=`item`}},(e,t,n)=>{let r=(0,v.useContext)(U_),i=nt(t),{tabProps:a,isSelected:o,isDisabled:s,isPressed:c}=P_({key:n.key,...e},r,i),{focusProps:l,isFocused:u,isFocusVisible:d}=eo(),{hoverProps:f,isHovered:p}=q({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=B(e,{global:!0});return delete g.id,delete g.onClick,v.createElement(h,{...z(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(mu.Provider,{value:{isSelected:o}},m.children))}),Y_=Ai(function(e,t){let n=(0,v.useContext)(U_),r=nt(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=jt(r,i);return!i&&!e.shouldForceMount&&!s?null:v.createElement(X_,{...e,tabPanelRef:r,isInitiallySelected:a||!1,isExiting:s})});function X_(e){let t=(0,v.useContext)(U_),{id:n,tabPanelRef:r,isInitiallySelected:i,isExiting:a,...o}=e,{tabPanelProps:s}=I_(e,t,r),{focusProps:c,isFocused:l,isFocusVisible:u}=eo(),d=t.selectedKey===e.id,f=At(r)&&!i,p=G({...e,defaultClassName:`react-aria-TabPanel`,values:{isFocused:l,isFocusVisible:u,isInert:Ot(!d),isEntering:f,isExiting:a,state:t}}),m=B(o,{global:!0});delete m.id;let h=d?z(m,s,c,p):z(m,p);return v.createElement(K.div,{...h,ref:r,"data-focused":l||void 0,"data-focus-visible":u||void 0,inert:Ot(!d||e.inert),"data-inert":d?void 0:`true`,"data-entering":f||void 0,"data-exiting":a||void 0},v.createElement(bi,{values:[[H_,null],[U_,null]]},v.createElement(tu.Provider,{value:Ql},p.children)))}var Z_=(0,v.createContext)({}),Q_=({children:e,className:t,orientation:n=`horizontal`,variant:r,...i})=>{let a=v.useMemo(()=>hi({variant:r}),[r]);return(0,V.jsx)(Z_,{value:{orientation:n,slots:a},children:(0,V.jsx)(W_,{...i,className:J(t,a.base()),"data-slot":`tabs`,orientation:n,children:e})})},$_=Object.assign(Q_,{Root:Q_,ListContainer:({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Z_);return(0,V.jsx)($t.div,{className:Y(r?.tabListContainer,t),"data-slot":`tabs-list-container`,...n,children:e})},List:({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Z_);return(0,V.jsx)(K_,{...n,className:J(t,r?.tabList()),"data-slot":`tabs-list`,children:e})},Tab:({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Z_);return(0,V.jsx)(J_,{...n,className:J(t,r?.tab()),"data-slot":`tabs-tab`,children:e})},Indicator:({className:e,...t})=>{let{slots:n}=(0,v.useContext)(Z_);return(0,V.jsx)(hu,{className:Y(n?.tabIndicator,e),"data-slot":`tabs-indicator`,...t})},Separator:({className:e,...t})=>{let{slots:n}=(0,v.useContext)(Z_);return(0,V.jsx)($t.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.useContext)(Z_);return(0,V.jsx)(Y_,{...n,className:J(t,r?.tabPanel()),"data-slot":`tabs-panel`,children:e})}}),ev=v.createContext(null);function tv(e){let{children:t}=e,n=(0,v.useContext)(ev),[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(ev.Provider,{value:a},t)}function nv(){let e=(0,v.useContext)(ev);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function rv(e){let{modalProviderProps:t}=nv();return v.createElement(`div`,{"data-overlay-container":!0,...e,...t})}function iv(e){return v.createElement(tv,null,v.createElement(rv,e))}function av(e){let t=ye(),{portalContainer:n=t?null:document.body,...r}=e,{getContainer:i}=dl();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(iv,r);return kt.createPortal(a,n)}var ov=1500,sv=500,cv={},lv=0,uv=!1,dv=null,fv=null;function pv(e={}){let{delay:t=ov,closeDelay:n=sv}=e,{isOpen:r,open:i,close:a}=hl(e),o=(0,v.useMemo)(()=>`${++lv}`,[]),s=(0,v.useRef)(null),c=(0,v.useRef)(a),l=()=>{cv[o]=f},u=()=>{for(let e in cv)e!==o&&(cv[e](!0),delete cv[e])},d=()=>{s.current&&clearTimeout(s.current),s.current=null,u(),l(),uv=!0,i(),dv&&=(clearTimeout(dv),null),fv&&=(clearTimeout(fv),null)},f=e=>{e||n<=0?(s.current&&clearTimeout(s.current),s.current=null,c.current()):s.current||=setTimeout(()=>{s.current=null,c.current()},n),dv&&=(clearTimeout(dv),null),uv&&(fv&&clearTimeout(fv),fv=setTimeout(()=>{delete cv[o],fv=null,uv=!1},Math.max(sv,n)))},p=()=>{u(),l(),!r&&!uv?(dv&&clearTimeout(dv),dv=setTimeout(()=>{dv=null,uv=!0,d()},t)):r||d()};return(0,v.useEffect)(()=>{c.current=a},[a]),(0,v.useEffect)(()=>()=>{s.current&&clearTimeout(s.current),cv[o]&&delete cv[o]},[o]),{isOpen:r,open:e=>{!e&&t>0&&!s.current?p():d()},close:f}}function mv(e,t){let n=B(e,{labelable:!0}),{hoverProps:r}=q({onHoverStart:()=>t?.open(!0),onHoverEnd:()=>t?.close()});return{tooltipProps:z(n,r,{role:`tooltip`})}}function hv(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`&&(ba()===`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=()=>{ya()&&(c.current=!0,l())},h=()=>{c.current=!1,s.current=!1,u(!0)},{hoverProps:g}=q({isDisabled:r,onHoverStart:d,onHoverEnd:f}),{focusableProps:_}=Ma({isDisabled:r,onFocus:m,onBlur:h},n);return{triggerProps:{"aria-describedby":t.isOpen?o:void 0,...z(_,g,{onPointerDown:p,onKeyDown:p}),tabIndex:void 0},tooltipProps:{id:o}}}var gv=(0,v.createContext)(null),_v=(0,v.createContext)(null);function vv(e){let t=pv(e),n=(0,v.useRef)(null),{triggerProps:r,tooltipProps:i}=hv(e,t,n);return v.createElement(bi,{values:[[gv,t],[_v,{...i,triggerRef:n}]]},v.createElement(ja,{...r,ref:n},e.children))}var yv=(0,v.forwardRef)(function({UNSTABLE_portalContainer:e,...t},n){[t,n]=Ci(t,n,_v);let r=(0,v.useContext)(gv),i=pv(t),a=t.isOpen!=null||t.defaultOpen!=null||!r?i:r,o=jt(n,a.isOpen)||t.isExiting||!1;return!a.isOpen&&!o?null:v.createElement(av,{portalContainer:e},v.createElement(bv,{...t,tooltipRef:n,isExiting:o}))});function bv(e){let t=(0,v.useContext)(gv),n=(0,v.useRef)(null),{overlayProps:r,arrowProps:i,placement:a,triggerAnchorPoint:o}=vs({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=At(e.tooltipRef,!!a)||e.isEntering||!1,c=G({...e,defaultClassName:`react-aria-Tooltip`,values:{placement:a,isEntering:s,isExiting:e.isExiting,state:t}});e=z(e,r);let{tooltipProps:l}=mv(e,t),u=B(e,{global:!0});return v.createElement(K.div,{...z(u,c,l),ref:e.tooltipRef,style:{...r.style,"--trigger-anchor-point":o?`${o.x}px ${o.y}px`:void 0,...c.style},"data-placement":a??void 0,"data-entering":s||void 0,"data-exiting":e.isExiting||void 0},v.createElement(zo.Provider,{value:{...i,placement:a,ref:n}},c.children))}var xv=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},Sv=(0,v.createContext)({}),Cv=({children:e,closeDelay:t,delay:n,...r})=>{let i=v.useMemo(()=>vi(),[]),a=qh(`--tooltip-delay`),o=qh(`--tooltip-close-delay`),s=n??xv(a),c=t??xv(o);return(0,V.jsx)(Sv,{value:{slots:i},children:(0,V.jsx)(vv,{closeDelay:c,"data-slot":`tooltip-root`,delay:s,...r,children:e})})},wv=Object.assign(Cv,{Root:Cv,Trigger:({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Sv),i=(0,v.useRef)(null),{focusableProps:a}=Ma({},i);return(0,V.jsx)($t.div,{ref:i,className:Y(r?.trigger,t),"data-slot":`tooltip-trigger`,role:`button`,...z(a,n),children:e})},Content:({children:e,className:t,offset:n,showArrow:r=!1,...i})=>{let{slots:a}=(0,v.useContext)(Sv),o=n||(r?7:3);return(0,V.jsx)(yv,{...i,className:J(t,a?.base()),offset:o,children:e})},Arrow:({children:e,className:t,...n})=>{let r=(0,V.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,V.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,V.jsx)(Bo,{"data-slot":`tooltip-arrow`,...n,className:t,children:i})}}),Tv=(0,v.createContext)({}),Ev=(0,v.createContext)(null),Dv=Ai(function(e,t){[e,t]=Ci(e,t,Ev);let{validationBehavior:n}=Si(Cf)||{},r=e.validationBehavior??n??`native`,i=(0,v.useRef)(null);[e,i]=Ci(e,i,cu);let[a,o]=wi(!e[`aria-label`]&&!e[`aria-labelledby`]),[s,c]=(0,v.useState)(`input`),{labelProps:l,inputProps:u,descriptionProps:d,errorMessageProps:f,...p}=bh({...Ti(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=B(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(bi,{values:[[Mi,{...l,ref:a}],[_h,{...u,ref:m}],[Tv,{...u,ref:m}],[of,{role:`presentation`,isInvalid:p.isInvalid,isDisabled:e.isDisabled||!1}],[yu,{slots:{description:d,errorMessage:f}}],[cf,p]]},h.children))}),Ov=(0,v.createContext)({}),kv=({children:e,className:t,fullWidth:n,variant:r,...i})=>{let a=v.useMemo(()=>gi({fullWidth:n}),[n]);return(0,V.jsx)(Dv,{"data-slot":`textfield`,...i,className:J(t,a),children:t=>(0,V.jsx)(Ov,{value:{variant:r},children:(0,V.jsx)(V.Fragment,{children:typeof e==`function`?e(t):e})})})},Av=({className:e,fullWidth:t,variant:n,...r})=>{let i=(0,v.useContext)(Ov),a=(0,v.useContext)(xh);return(0,V.jsx)(yh,{className:J(e,ri({fullWidth:t,variant:n??i.variant??a.variant})),"data-slot":`input`,...r})},jv=Object.assign(Av,{Root:Av}),Mv=Object.assign(kv,{Root:kv}),Nv=({children:e,className:t,isDisabled:n,isInvalid:r,isRequired:i,...a})=>(0,V.jsx)(Ni,{className:ii({isRequired:i,isDisabled:n,isInvalid:r,className:t}),"data-slot":`label`,...a,children:e}),Pv=Object.assign(Nv,{Root:Nv}),Fv=({children:e,className:t,...n})=>(0,V.jsx)(bu,{className:ei({className:t}),"data-slot":`description`,slot:`description`,...n,children:e}),Iv=Object.assign(Fv,{Root:Fv}),Lv=({children:e,className:t,...n})=>(0,V.jsx)(lf,{"data-visible":!0,className:J(t,ni()),"data-slot":`field-error`,...n,children:t=>typeof e==`function`?e(t):e}),Rv=Object.assign(Lv,{Root:Lv}),zv=({...e})=>(0,V.jsx)(wf,{...e}),Bv=Object.assign(zv,{Root:zv}),Vv=(0,v.createContext)({}),Hv=({children:e,className:t,variant:n,...r})=>{let i=v.useMemo(()=>oi({variant:n}),[n]);return(0,V.jsx)(Op,{className:J(t,i.item()),"data-slot":`list-box-item`,...r,children:t=>(0,V.jsx)(Vv,{value:{slots:i,state:t},children:typeof e==`function`?e(t):e})})},Uv=({children:e,className:t,...n})=>{let{slots:r,state:i}=(0,v.useContext)(Vv),a=i?.isSelected,o=typeof e==`function`?e(i??{}):e||(0,V.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,V.jsx)(`polyline`,{points:`1 9 7 14 15 4`})});return(0,V.jsx)($t.span,{"aria-hidden":`true`,className:Y(r?.indicator,t),"data-slot":`list-box-item-indicator`,"data-visible":a||void 0,...n,children:o})},Wv=Object.assign(Hv,{Root:Hv,Indicator:Uv}),Gv=({children:e,className:t,...n})=>(0,V.jsx)(Dp,{className:v.useMemo(()=>si({class:typeof t==`string`?t:void 0}),[t]),...n,children:e});function Kv({className:e,variant:t,...n}){return(0,V.jsx)(Cp,{className:J(e,v.useMemo(()=>ai({variant:t}),[t])),"data-slot":`list-box`,...n})}var qv=Object.assign(Kv,{Root:Kv,Item:Wv,ItemIndicator:Uv,Section:Gv}),Jv=(0,v.createContext)({}),Yv=({children:e,state:t,...n})=>(0,V.jsx)(Jv,{value:(0,v.useMemo)(()=>({slots:ci(),placement:void 0}),[]),children:(0,V.jsx)(Kd,{"data-slot":`modal-root`,...z(n,(0,v.useMemo)(()=>t?{isOpen:t.isOpen,onOpenChange:t.setOpen}:{},[t])),children:e})}),Xv=Object.assign(Yv,{Root:Yv,Trigger:({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Jv);return(0,V.jsx)(nf,{children:(0,V.jsx)($t.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.useContext)(Jv),s=(0,v.useMemo)(()=>ci({variant:i}),[i]),c=(0,v.useMemo)(()=>({slots:{...o,...s}}),[o,s]);return(0,V.jsx)($d,{className:J(t,s?.backdrop()),"data-slot":`modal-backdrop`,isDismissable:n,onClick:e=>{e.stopPropagation(),r?.(e)},...a,children:t=>(0,V.jsxs)(Jv,{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.useContext)(Jv),s=(0,v.useMemo)(()=>ci({scroll:r,size:i}),[r,i]),c=(0,v.useMemo)(()=>({placement:n,slots:{...o,...s}}),[o,n,s]);return(0,V.jsx)(Zd,{className:J(t,s?.container()),"data-placement":n,"data-slot":`modal-container`,...a,children:t=>(0,V.jsx)(Jv,{value:c,children:typeof e==`function`?e(t):e})})},Dialog:({children:e,className:t,...n})=>{let{placement:r,slots:i}=(0,v.useContext)(Jv);return(0,V.jsx)(Po,{value:{variant:`default`},children:(0,V.jsx)(qd,{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.useContext)(Jv);return(0,V.jsx)($t.div,{className:Y(r?.header,t),"data-slot":`modal-header`,...n,children:e})},Icon:({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Jv);return(0,V.jsx)($t.div,{className:Y(r?.icon,t),"data-slot":`modal-icon`,...n,children:e})},Heading:({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Jv);return(0,V.jsx)(wo,{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.useContext)(Jv);return(0,V.jsx)($t.div,{className:Y(r?.body,t),"data-slot":`modal-body`,...n,children:e})},Footer:({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Jv);return(0,V.jsx)($t.div,{className:Y(r?.footer,t),"data-slot":`modal-footer`,...n,children:e})},CloseTrigger:({className:e,...t})=>{let{slots:n}=(0,v.useContext)(Jv);return(0,V.jsx)(af,{className:J(e,n?.closeTrigger()),"data-slot":`modal-close-trigger`,slot:`close`,...t})}}),Zv=(0,v.createContext)({}),Qv=({children:e,className:t,fullWidth:n,variant:r,...i})=>{let a=v.useMemo(()=>di({fullWidth:n,variant:r}),[n,r]);return(0,V.jsx)(Zv,{value:{slots:a},children:(0,V.jsx)(qp,{"data-slot":`select`,...i,className:J(t,a?.base()),children:t=>(0,V.jsx)(V.Fragment,{children:typeof e==`function`?e(t):e})})})},$v=Object.assign(Qv,{Root:Qv,Trigger:({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Zv);return(0,V.jsx)(so,{className:J(t,r?.trigger()),"data-slot":`select-trigger`,...n,children:t=>(0,V.jsx)(V.Fragment,{children:typeof e==`function`?e(t):e})})},Value:({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Zv);return(0,V.jsx)(Zp,{className:J(t,r?.value()),"data-slot":`select-value`,...n,children:e})},Indicator:({children:e,className:t,...n})=>{let{slots:r}=(0,v.useContext)(Zv),i=(0,v.useContext)(Kp);return e&&v.isValidElement(e)?v.cloneElement(e,{...n,className:Y(r?.indicator,t),"data-slot":`select-indicator`,"data-open":To(i?.isOpen)}):(0,V.jsx)(Eo,{className:Y(r?.indicator,t),"data-open":To(i?.isOpen),"data-slot":`select-default-indicator`,...n})},Popover:({children:e,className:t,placement:n=`bottom`,...r})=>{let{slots:i}=(0,v.useContext)(Zv);return(0,V.jsx)(Po,{value:{variant:`default`},children:(0,V.jsx)(vl,{...r,className:J(t,i?.popover()),"data-slot":`select-popover`,placement:n,children:e})})}}),ey=(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])}},ty=function(e){return function(t,n){var r=(0,v.useRef)(!1);e(function(){return function(){r.current=!1}},[]),e(function(){if(!r.current)r.current=!0;else return t()},n)}},ny=function(){return ny=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ny.apply(this,arguments)};function ry(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 iy(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())})}function ay(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function oy(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function sy(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var cy=function(e){return typeof e==`function`},ly=function(e){var t=(0,v.useRef)(e);t.current=(0,v.useMemo)(function(){return e},[e]);var n=(0,v.useRef)(void 0);return n.current||=function(){var e=[...arguments];return t.current.apply(this,e)},n.current},uy=ty(v.useEffect),dy=function(e,t){var n=t.manual,r=t.ready,i=r===void 0?!0:r,a=t.defaultParams,o=a===void 0?[]:a,s=t.refreshDeps,c=s===void 0?[]:s,l=t.refreshDepsAction,u=(0,v.useRef)(!1);return u.current=!1,uy(function(){!n&&i&&(u.current=!0,e.run.apply(e,sy([],oy(o),!1)))},[i]),uy(function(){u.current||n||(u.current=!0,l?l():e.refresh())},sy([],oy(c),!1)),{onBefore:function(){if(!i)return{stopNow:!0}}}};dy.onInit=function(e){var t=e.ready,n=t===void 0?!0:t;return{loading:!e.manual&&n}};function fy(e,t){if(e===t)return!0;for(var n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}var py=function(e,t){var n=(0,v.useRef)({deps:t,obj:void 0,initialized:!1}).current;return(n.initialized===!1||!fy(n.deps,t))&&(n.deps=t,n.obj=e(),n.initialized=!0),n.obj};function my(e){var t=(0,v.useRef)(e);return t.current=e,t}var hy=function(e){var t=my(e);(0,v.useEffect)(function(){return function(){t.current()}},[])},gy=new Map,_y=function(e,t,n){var r=gy.get(e);r?.timer&&clearTimeout(r.timer);var i=void 0;t>-1&&(i=setTimeout(function(){gy.delete(e)},t)),gy.set(e,ny(ny({},n),{timer:i}))},vy=function(e){return gy.get(e)},yy=new Map,by=function(e){return yy.get(e)},xy=function(e,t){yy.set(e,t),t.then(function(t){return yy.delete(e),t}).catch(function(){yy.delete(e)})},Sy={},Cy=function(e,t){Sy[e]&&Sy[e].forEach(function(e){return e(t)})},wy=function(e,t){return Sy[e]||(Sy[e]=[]),Sy[e].push(t),function(){var n=Sy[e].indexOf(t);Sy[e].splice(n,1)}},Ty=function(e,t){var n=t.cacheKey,r=t.cacheTime,i=r===void 0?300*1e3:r,a=t.staleTime,o=a===void 0?0:a,s=t.setCache,c=t.getCache,l=(0,v.useRef)(void 0),u=(0,v.useRef)(void 0),d=function(e,t){s?s(t):_y(e,i,t),Cy(e,t.data)},f=function(e,t){return t===void 0&&(t=[]),c?c(t):vy(e)};return py(function(){if(n){var t=f(n);t&&Object.hasOwnProperty.call(t,`data`)&&(e.state.data=t.data,e.state.params=t.params,(o===-1||Date.now()-t.time<=o)&&(e.state.loading=!1)),l.current=wy(n,function(t){e.setState({data:t})})}},[]),hy(function(){var e;(e=l.current)==null||e.call(l)}),n?{onBefore:function(e){var t=f(n,e);return!t||!Object.hasOwnProperty.call(t,`data`)?{}:o===-1||Date.now()-t.time<=o?{loading:!1,data:t?.data,error:void 0,returnNow:!0}:{data:t?.data,error:void 0}},onRequest:function(e,t){var r=by(n);return r&&r!==u.current?{servicePromise:r}:(r=e.apply(void 0,sy([],oy(t),!1)),u.current=r,xy(n,r),{servicePromise:r})},onSuccess:function(t,r){var i;n&&((i=l.current)==null||i.call(l),d(n,{data:t,params:r,time:Date.now()}),l.current=wy(n,function(t){e.setState({data:t})}))},onMutate:function(t){var r;n&&((r=l.current)==null||r.call(l),d(n,{data:t,params:e.state.params,time:Date.now()}),l.current=wy(n,function(t){e.setState({data:t})}))}}:{}},Ey=o(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),Dy=o(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),Oy=o(((e,t)=>{var n=Dy(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),ky=o(((e,t)=>{var n=Oy();t.exports=function(){return n.Date.now()}})),Ay=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})),jy=o(((e,t)=>{var n=Ay(),r=/^\s+/;function i(e){return e&&e.slice(0,n(e)+1).replace(r,``)}t.exports=i})),My=o(((e,t)=>{t.exports=Oy().Symbol})),Ny=o(((e,t)=>{var n=My(),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})),Py=o(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),Fy=o(((e,t)=>{var n=My(),r=Ny(),i=Py(),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})),Iy=o(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),Ly=o(((e,t)=>{var n=Fy(),r=Iy(),i=`[object Symbol]`;function a(e){return typeof e==`symbol`||r(e)&&n(e)==i}t.exports=a})),Ry=o(((e,t)=>{var n=jy(),r=Ey(),i=Ly(),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})),zy=o(((e,t)=>{var n=Ey(),r=ky(),i=Ry(),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})),By=l(zy()),Vy=function(e,t){var n=t.debounceWait,r=t.debounceLeading,i=t.debounceTrailing,a=t.debounceMaxWait,o=(0,v.useRef)(void 0),s=(0,v.useMemo)(function(){var e={};return r!==void 0&&(e.leading=r),i!==void 0&&(e.trailing=i),a!==void 0&&(e.maxWait=a),e},[r,i,a]);return(0,v.useEffect)(function(){if(n){var t=e.runAsync.bind(e);return o.current=(0,By.default)(function(e){e()},n,s),e.runAsync=function(){var e=[...arguments];return new Promise(function(n,r){var i;(i=o.current)==null||i.call(o,function(){t.apply(void 0,sy([],oy(e),!1)).then(n).catch(r)})})},function(){var n;(n=o.current)==null||n.cancel(),e.runAsync=t}}},[n,s]),n?{onCancel:function(){var e;(e=o.current)==null||e.cancel()}}:{}},Hy=function(e,t){var n=t.loadingDelay,r=t.ready,i=(0,v.useRef)(void 0);if(!n)return{};var a=function(){i.current&&clearTimeout(i.current)};return{onBefore:function(){return a(),r!==!1&&(i.current=setTimeout(function(){e.setState({loading:!0})},n)),{loading:!1}},onFinally:function(){a()},onCancel:function(){a()}}},Uy=!!(typeof window<`u`&&window.document&&window.document.createElement);function Wy(){return Uy?document.visibilityState!==`hidden`:!0}var Gy=new Set;function Ky(e){return Gy.add(e),function(){Gy.has(e)&&Gy.delete(e)}}Uy&&window.addEventListener(`visibilitychange`,function(){Wy()&&Gy.forEach(function(e){return e()})},!1);var qy=function(e,t){var n=t.pollingInterval,r=t.pollingWhenHidden,i=r===void 0?!0:r,a=t.pollingErrorRetryCount,o=a===void 0?-1:a,s=(0,v.useRef)(void 0),c=(0,v.useRef)(void 0),l=(0,v.useRef)(0),u=function(){var e;s.current&&clearTimeout(s.current),(e=c.current)==null||e.call(c)};return uy(function(){n||u()},[n]),n?{onBefore:function(){u()},onError:function(){l.current+=1},onSuccess:function(){l.current=0},onFinally:function(){o===-1||o!==-1&&l.current<=o?s.current=setTimeout(function(){!i&&!Wy()?c.current=Ky(function(){e.refresh()}):e.refresh()},n):l.current=0},onCancel:function(){u()}}:{}};function Jy(e,t){var n=!1;return function(){var r=[...arguments];n||(n=!0,e.apply(void 0,sy([],oy(r),!1)),setTimeout(function(){n=!1},t))}}var Yy=function(){return Uy&&navigator.onLine!==void 0?navigator.onLine:!0},Xy=new Set;function Zy(e){return Xy.add(e),function(){Xy.has(e)&&Xy.delete(e)}}if(Uy){var Qy=function(){!Wy()||!Yy()||Xy.forEach(function(e){return e()})};window.addEventListener(`visibilitychange`,Qy,!1),window.addEventListener(`focus`,Qy,!1)}var $y=function(e,t){var n=t.refreshOnWindowFocus,r=t.focusTimespan,i=r===void 0?5e3:r,a=(0,v.useRef)(void 0),o=function(){var e;(e=a.current)==null||e.call(a)};return(0,v.useEffect)(function(){if(n){var t=Jy(e.refresh.bind(e),i);a.current=Zy(function(){t()})}return function(){o()}},[n,i]),hy(function(){o()}),{}},eb=function(e,t){var n=t.retryInterval,r=t.retryCount,i=(0,v.useRef)(void 0),a=(0,v.useRef)(0),o=(0,v.useRef)(!1);return r?{onBefore:function(){o.current||(a.current=0),o.current=!1,i.current&&clearTimeout(i.current)},onSuccess:function(){a.current=0},onError:function(){if(a.current+=1,r===-1||a.current<=r){var t=n??Math.min(1e3*2**a.current,3e4);i.current=setTimeout(function(){o.current=!0,e.refresh()},t)}else a.current=0},onCancel:function(){a.current=0,i.current&&clearTimeout(i.current)}}:{}},tb=l(o(((e,t)=>{var n=zy(),r=Ey(),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}))()),nb=function(e,t){var n=t.throttleWait,r=t.throttleLeading,i=t.throttleTrailing,a=(0,v.useRef)(void 0),o={};return r!==void 0&&(o.leading=r),i!==void 0&&(o.trailing=i),(0,v.useEffect)(function(){if(n){var t=e.runAsync.bind(e);return a.current=(0,tb.default)(function(e){e()},n,o),e.runAsync=function(){var e=[...arguments];return new Promise(function(n,r){var i;(i=a.current)==null||i.call(a,function(){t.apply(void 0,sy([],oy(e),!1)).then(n).catch(r)})})},function(){var n;e.runAsync=t,(n=a.current)==null||n.cancel()}}},[n,r,i]),n?{onCancel:function(){var e;(e=a.current)==null||e.cancel()}}:{}},rb=function(e){(0,v.useEffect)(function(){var t=e?.();if(!(t&&typeof t==`object`&&typeof t.then==`function`))return t},[])},ib=function(){var e=oy((0,v.useState)({}),2)[1];return ly(function(){return e({})})},ab=function(){function e(e,t,n,r){r===void 0&&(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=ny(ny(ny({},this.state),{loading:!t.manual}),r)}return e.prototype.setState=function(e){e===void 0&&(e={}),this.state=ny(ny({},this.state),e),this.subscribe()},e.prototype.runPluginHandler=function(e){var t=[...arguments].slice(1),n=this.pluginImpls.map(function(n){var r;return(r=n[e])?.call.apply(r,sy([n],oy(t),!1))}).filter(Boolean);return Object.assign.apply(Object,sy([{}],oy(n),!1))},e.prototype.runAsync=function(){var e=[...arguments];return iy(this,void 0,void 0,function(){var t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x;return ay(this,function(S){switch(S.label){case 0:if(this.count+=1,t=this.count,n=this.runPluginHandler(`onBefore`,e),r=n.stopNow,i=r===void 0?!1:r,a=n.returnNow,o=a===void 0?!1:a,s=ry(n,[`stopNow`,`returnNow`]),i||(this.setState(ny({loading:!0,params:e},s)),o))return[2,Promise.resolve(s.data)];(p=(f=this.options).onBefore)==null||p.call(f,e),S.label=1;case 1:return S.trys.push([1,3,,4]),c=this.runPluginHandler(`onRequest`,this.serviceRef.current,e).servicePromise,c||=(d=this.serviceRef).current.apply(d,sy([],oy(e),!1)),[4,c];case 2:return l=S.sent(),t===this.count?(this.setState({data:l,error:void 0,loading:!1}),(h=(m=this.options).onSuccess)==null||h.call(m,l,e),this.runPluginHandler(`onSuccess`,l,e),(_=(g=this.options).onFinally)==null||_.call(g,e,l,void 0),t===this.count&&this.runPluginHandler(`onFinally`,e,l,void 0),[2,l]):[2,new Promise(function(){})];case 3:if(u=S.sent(),t!==this.count)return[2,new Promise(function(){})];throw this.setState({error:u,loading:!1}),(y=(v=this.options).onError)==null||y.call(v,u,e),this.runPluginHandler(`onError`,u,e),(x=(b=this.options).onFinally)==null||x.call(b,e,void 0,u),t===this.count&&this.runPluginHandler(`onFinally`,e,void 0,u),u;case 4:return[2]}})})},e.prototype.run=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.runAsync.apply(this,sy([],oy(t),!1)).catch(function(t){e.options.onError||console.error(t)})},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler(`onCancel`)},e.prototype.refresh=function(){this.run.apply(this,sy([],oy(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,sy([],oy(this.state.params||[]),!1))},e.prototype.mutate=function(e){var t=cy(e)?e(this.state.data):e;this.runPluginHandler(`onMutate`,t),this.setState({data:t})},e}();function ob(e,t,n){t===void 0&&(t={}),n===void 0&&(n=[]);var r=t.manual,i=r===void 0?!1:r,a=t.ready,o=a===void 0?!0:a,s=ry(t,[`manual`,`ready`]),c=ny({manual:i,ready:o},s),l=my(e),u=ib(),d=py(function(){var e=n.map(function(e){return(e?.onInit)?.call(e,c)}).filter(Boolean);return new ab(l,c,u,Object.assign.apply(Object,sy([{}],oy(e),!1)))},[]);return d.options=c,d.pluginImpls=n.map(function(e){return e(d,c)}),rb(function(){if(!i&&o){var e=d.state.params||t.defaultParams||[];d.run.apply(d,sy([],oy(e),!1))}}),hy(function(){d.cancel()}),{loading:d.state.loading,data:d.state.data,error:d.state.error,params:d.state.params||[],cancel:ly(d.cancel.bind(d)),refresh:ly(d.refresh.bind(d)),refreshAsync:ly(d.refreshAsync.bind(d)),run:ly(d.run.bind(d)),runAsync:ly(d.runAsync.bind(d)),mutate:ly(d.mutate.bind(d))}}function sb(e,t,n){return ob(e,t,sy(sy([],oy(n||[]),!1),[Vy,Hy,qy,$y,nb,dy,Ty,eb],!1))}var cb=sb;function lb(e,t){e===void 0&&(e=!1);var n=oy((0,v.useState)(e),2),r=n[0],i=n[1];return[r,(0,v.useMemo)(function(){var n=t===void 0?!e:t;return{toggle:function(){return i(function(t){return t===e?n:e})},set:function(e){return i(e)},setLeft:function(){return i(e)},setRight:function(){return i(n)}}},[])]}function ub(e){e===void 0&&(e=!1);var t=oy(lb(!!e),2),n=t[0],r=t[1],i=r.toggle,a=r.set;return[n,(0,v.useMemo)(function(){return{toggle:i,set:function(e){return a(!!e)},setTrue:function(){return a(!0)},setFalse:function(){return a(!1)}}},[])]}var db=function(e){var t=oy((0,v.useState)(e),2),n=t[0],r=t[1];return[n,ly(function(e){r(function(t){var n=cy(e)?e(t):e;return n?ny(ny({},t),n):t})})]},fb=`modulepreload`,pb=function(e){return`/kkk/assets/`+e},mb={},hb=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),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}))))}r=o(t.map(t=>{if(t=pb(t,n),t in mb)return;mb[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:fb,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}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)})},gb=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,_b=/^[\\/]{2}/;function vb(e,t){return t+e.replace(/\\/g,`/`)}var yb=`popstate`;function bb(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function xb(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return Eb(``,{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:Db(t)}return kb(t,n,null,e)}function Sb(e,t){if(e===!1||e==null)throw Error(t)}function Cb(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function wb(){return Math.random().toString(36).substring(2,10)}function Tb(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 Eb(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?Ob(t):t,state:n,key:t&&t.key||r||wb(),mask:i}}function Db({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 Ob(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 kb(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=bb(e)?e:Eb(h.location,e,t);n&&n(r,e),l=u()+1;let d=Tb(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=bb(e)?e:Eb(h.location,e,t);n&&n(r,e),l=u();let i=Tb(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 Ab(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(yb,d),c=e,()=>{i.removeEventListener(yb,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 Ab(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),Sb(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:Db(t);return i=i.replace(/ $/,`%20`),!n&&_b.test(i)&&(i=r+i),new URL(i,r)}function jb(e,t,n=`/`){return Mb(e,t,n,!1)}function Mb(e,t,n,r,i){let a=Qb((typeof t==`string`?Ob(t):t).pathname||`/`,n);if(a==null)return null;let o=i??Pb(e),s=null,c=Zb(a);for(let e=0;s==null&&e<o.length;++e)s=qb(o[e],c,r);return s}function Nb(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function Pb(e){let t=Fb(e);return Lb(t),t}function Fb(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;Sb(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=ox([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(Sb(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),Fb(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:Gb(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=Xb(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 Ib(e.path))a(e,t,!0,n)}),t}function Ib(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=Ib(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 Lb(e){e.sort((e,t)=>e.score===t.score?Kb(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var Rb=/^:[\w-]+$/,zb=3,Bb=2,Vb=1,Hb=10,Ub=-2,Wb=e=>e===`*`;function Gb(e,t){let n=e.split(`/`),r=n.length;return n.some(Wb)&&(r+=Ub),t&&(r+=Bb),n.filter(e=>!Wb(e)).reduce((e,t)=>e+(Rb.test(t)?zb:t===``?Vb:Hb),r)}function Kb(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 qb(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?Yb(u,l,s.matcher,s.compiledParams):Jb(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Jb({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:ox([a,d.pathname]),pathnameBase:cx(ox([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=ox([a,d.pathnameBase]))}return o}function Jb(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Xb(e.path,e.caseSensitive,e.end);return Yb(e,t,n,r)}function Yb(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function Xb(e,t=!1,n=!0){Cb(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 Zb(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return Cb(!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 Qb(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 $b(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?Ob(e):e,a;return n?(n=ax(n),a=n.startsWith(`/`)?ex(n.substring(1),`/`):ex(n,t)):a=t,{pathname:a,search:lx(r),hash:ux(i)}}function ex(e,t){let n=sx(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function tx(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 nx(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function rx(e){let t=nx(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function ix(e,t,n,r=!1){let i;typeof e==`string`?i=Ob(e):(i={...e},Sb(!i.pathname||!i.pathname.includes(`?`),tx(`?`,`pathname`,`search`,i)),Sb(!i.pathname||!i.pathname.includes(`#`),tx(`#`,`pathname`,`hash`,i)),Sb(!i.search||!i.search.includes(`#`),tx(`#`,`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=$b(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var ax=e=>e.replace(/[\\/]{2,}/g,`/`),ox=e=>ax(e.join(`/`)),sx=e=>e.replace(/\/+$/,``),cx=e=>sx(e).replace(/^\/*/,`/`),lx=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,ux=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,dx=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 fx(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function px(e){return ox(e.map(e=>e.route.path).filter(Boolean))||`/`}var mx=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function hx(e,t){let n=e;if(typeof n!=`string`||!gb.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(mx)try{let e=new URL(window.location.href),r=_b.test(n)?new URL(vb(n,e.protocol)):new URL(n),a=Qb(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{Cb(!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 gx=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(gx);var _x=[`GET`,...gx];new Set(_x);var vx=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function yx(e){try{return vx.includes(new URL(e).protocol)}catch{return!1}}var bx=v.createContext(null);bx.displayName=`DataRouter`;var xx=v.createContext(null);xx.displayName=`DataRouterState`;var Sx=v.createContext(!1);function Cx(){return v.useContext(Sx)}var wx=v.createContext({isTransitioning:!1});wx.displayName=`ViewTransition`;var Tx=v.createContext(new Map);Tx.displayName=`Fetchers`;var Ex=v.createContext(null);Ex.displayName=`Await`;var Dx=v.createContext(null);Dx.displayName=`Navigation`;var Ox=v.createContext(null);Ox.displayName=`Location`;var kx=v.createContext({outlet:null,matches:[],isDataRoute:!1});kx.displayName=`Route`;var Ax=v.createContext(null);Ax.displayName=`RouteError`;var jx=`REACT_ROUTER_ERROR`,Mx=`REDIRECT`,Nx=`ROUTE_ERROR_RESPONSE`;function Px(e){if(e.startsWith(`${jx}:${Mx}:{`))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 Fx(e){if(e.startsWith(`${jx}:${Nx}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new dx(t.status,t.statusText,t.data)}catch{}}function Ix(e,{relative:t}={}){Sb(Lx(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=v.useContext(Dx),{hash:i,pathname:a,search:o}=Ux(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:ox([n,a])),r.createHref({pathname:s,search:o,hash:i})}function Lx(){return v.useContext(Ox)!=null}function Rx(){return Sb(Lx(),`useLocation() may be used only in the context of a <Router> component.`),v.useContext(Ox).location}var zx=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function Bx(e){v.useContext(Dx).static||v.useLayoutEffect(e)}function Vx(){let{isDataRoute:e}=v.useContext(kx);return e?cS():Hx()}function Hx(){Sb(Lx(),`useNavigate() may be used only in the context of a <Router> component.`);let e=v.useContext(bx),{basename:t,navigator:n}=v.useContext(Dx),{matches:r}=v.useContext(kx),{pathname:i}=Rx(),a=JSON.stringify(rx(r)),o=v.useRef(!1);return Bx(()=>{o.current=!0}),v.useCallback((r,s={})=>{if(Cb(o.current,zx),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=ix(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:ox([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}v.createContext(null);function Ux(e,{relative:t}={}){let{matches:n}=v.useContext(kx),{pathname:r}=Rx(),i=JSON.stringify(rx(n));return v.useMemo(()=>ix(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Wx(e,t){return Gx(e,t)}function Gx(e,t,n){Sb(Lx(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=v.useContext(Dx),{matches:i}=v.useContext(kx),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||``;uS(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
21
 
22
- Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=Ix(),d;if(t){let e=typeof t==`string`?Eb(t):t;bb(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})):kb(e,{pathname:p});xb(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),xb(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=Xx(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:ix([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:ix([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(Ex.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function Wx(){let e=aS(),t=ux(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 Gx=v.createElement(Wx,null),Kx=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=Nx(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:v.createElement(Dx.Provider,{value:this.props.routeContext},v.createElement(Ox.Provider,{value:e,children:this.props.component}));return this.context?v.createElement(Jx,{error:e},t):t}};Kx.contextType=bx;var qx=new WeakMap;function Jx({children:e,error:t}){let{basename:n}=v.useContext(Tx);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Mx(t.digest);if(e){let r=qx.get(t);if(r)throw r;let i=px(e.location,n),a=i.absoluteURL||i.to;if(_x(a))throw Error(`Invalid redirect location`);if(fx&&!qx.get(t))if(i.isExternal||e.reloadDocument)window.location.href=a;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw qx.set(t,n),n}return v.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${a}`})}}return e}function Yx({routeContext:e,match:t,children:n}){let r=v.useContext(vx);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),v.createElement(Dx.Provider,{value:e},n)}function Xx(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);bb(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:dx(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||Gx,o&&(s<0&&c===0?(cS(`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(Yx,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?v.createElement(Kx,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function Zx(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Qx(e){let t=v.useContext(vx);return bb(t,Zx(e)),t}function $x(e){let t=v.useContext(yx);return bb(t,Zx(e)),t}function eS(e){let t=v.useContext(Dx);return bb(t,Zx(e)),t}function tS(e){let t=eS(e),n=t.matches[t.matches.length-1];return bb(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function nS(){return tS(`useRouteId`)}function rS(){let e=$x(`useNavigation`);return v.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}function iS(){let{matches:e,loaderData:t}=$x(`useMatches`);return v.useMemo(()=>e.map(e=>jb(e,t)),[e,t])}function aS(){let e=v.useContext(Ox),t=$x(`useRouteError`),n=tS(`useRouteError`);return e===void 0?t.errors?.[n]:e}function oS(){let{router:e}=Qx(`useNavigate`),t=tS(`useNavigate`),n=v.useRef(!1);return Rx(()=>{n.current=!0}),v.useCallback(async(r,i={})=>{xb(n.current,Lx),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var sS={};function cS(e,t,n){!t&&!sS[e]&&(sS[e]=!0,xb(!1,n))}v.memo(lS);function lS({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return Ux(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function uS({to:e,replace:t,state:n,relative:r}){bb(Fx(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i}=v.useContext(Tx);xb(!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:a}=v.useContext(Dx),{pathname:o}=Ix(),s=zx(),c=nx(e,tx(a),o,r===`path`),l=JSON.stringify(c);return v.useEffect(()=>{s(JSON.parse(l),{replace:t,state:n,relative:r})},[s,l,r,t,n]),null}function dS(e){bb(!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 fS({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){bb(!Fx(),`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=Eb(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=v.useMemo(()=>{let e=Xb(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 xb(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(Tx.Provider,{value:c},v.createElement(Ex.Provider,{children:t,value:h}))}function pS({children:e,location:t}){return Hx(mS(e),t)}v.Component;function mS(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,mS(e.props.children,i));return}bb(e.type===dS,`[${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>`),bb(!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=mS(e.props.children,i)),n.push(a)}),n}var hS=`get`,gS=`application/x-www-form-urlencoded`;function _S(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function vS(e){return _S(e)&&e.tagName.toLowerCase()===`button`}function yS(e){return _S(e)&&e.tagName.toLowerCase()===`form`}function bS(e){return _S(e)&&e.tagName.toLowerCase()===`input`}function xS(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function SS(e,t){return e.button===0&&(!t||t===`_self`)&&!xS(e)}function CS(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 wS(e,t){let n=CS(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var TS=null;function ES(){if(TS===null)try{new FormData(document.createElement(`form`),0),TS=!1}catch{TS=!0}return TS}var DS=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function OS(e){return e!=null&&!DS.has(e)?(xb(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${gS}"`),null):e}function kS(e,t){let n,r,i,a,o;if(yS(e)){let o=e.getAttribute(`action`);r=o?Xb(o,t):null,n=e.getAttribute(`method`)||hS,i=OS(e.getAttribute(`enctype`))||gS,a=new FormData(e)}else if(vS(e)||bS(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?Xb(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||hS,i=OS(e.getAttribute(`formenctype`))||OS(o.getAttribute(`enctype`))||gS,a=new FormData(o,e),!ES()){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(_S(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=hS,r=null,i=gS,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`);var AS={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},jS=/[&><\u2028\u2029]/g;function MS(e){return e.replace(jS,e=>AS[e])}function NS(e,t){if(e===!1||e==null)throw Error(t)}function PS(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n?i.pathname.endsWith(`/`)?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname===`/`?i.pathname=`_root.${r}`:t&&Xb(i.pathname,t)===`/`?i.pathname=`${ax(t)}/_root.${r}`:i.pathname=`${ax(i.pathname)}.${r}`,i}async function FS(e,t){if(e.id in t)return t[e.id];try{let n=await pb(()=>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 IS(e){return e!=null&&typeof e.page==`string`}function LS(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 RS(e,t,n){return US((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await FS(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(LS).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function zS(e,t,n,r,i,a){let o=(e,t)=>n[t]?e.route.id!==n[t].route.id:!0,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 BS(e,t,{includeHydrateFallback:n}={}){return VS(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 VS(e){return[...new Set(e)]}function HS(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function US(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!IS(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(HS(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function WS(){let e=v.useContext(vx);return NS(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function GS(){let e=v.useContext(yx);return NS(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var KS=v.createContext(void 0);KS.displayName=`FrameworkContext`;function qS(){let e=v.useContext(KS);return NS(e,`You must render this element inside a <HydratedRouter> element`),e}function JS(e,t){let n=v.useContext(KS),[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:YS(s,p),onBlur:YS(c,m),onMouseEnter:YS(l,p),onMouseLeave:YS(u,m),onTouchStart:YS(d,p)}]:[a,f,{}]:[!1,f,{}]}function YS(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function XS({page:e,...t}){let n=xx(),{nonce:r}=qS(),{router:i}=WS(),a=v.useMemo(()=>kb(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?v.createElement(QS,{page:e,matches:a,...t}):v.createElement($S,{page:e,matches:a,...t})):null}function ZS(e){let{manifest:t,routeModules:n}=qS(),[r,i]=v.useState([]);return v.useEffect(()=>{let r=!1;return RS(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function QS({page:e,matches:t,...n}){let r=Ix(),{future:i}=qS(),{basename:a}=WS(),o=v.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=PS(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 $S({page:e,matches:t,...n}){let r=Ix(),{future:i,manifest:a,routeModules:o}=qS(),{basename:s}=WS(),{loaderData:c,matches:l}=GS(),u=v.useMemo(()=>zS(e,t,l,a,r,`data`),[e,t,l,a,r]),d=v.useMemo(()=>zS(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=PS(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(()=>BS(d,a),[d,a]),m=ZS(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 eC(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}v.Component;var tC=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{tC&&(window.__reactRouterVersion=`7.18.0`)}catch{}function nC({basename:e,children:t,useTransitions:n,window:r}){let i=v.useRef();i.current??=yb({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(fS,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function rC({basename:e,children:t,history:n,useTransitions:r}){let[i,a]=v.useState({action:n.action,location:n.location}),o=v.useCallback(e=>{r===!1?a(e):v.startTransition(()=>a(e))},[r]);return v.useLayoutEffect(()=>n.listen(o),[n,o]),v.createElement(fS,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}rC.displayName=`unstable_HistoryRouter`;var iC=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(Tx),y=typeof l==`string`&&mb.test(l),b=px(l,h);l=b.to;let x=Px(l,{relative:r}),S=Ix(),C=null;if(o){let e=nx(o,[],S.mask?S.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:ix([h,e.pathname])),C=g.createHref(e)}let[w,T,E]=JS(n,p),D=dC(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:eC(m,T),target:c,"data-discover":!y&&t===`render`?`true`:void 0});return w&&!y?v.createElement(v.Fragment,null,A,v.createElement(XS,{page:x})):A});iC.displayName=`Link`;var aC=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=Vx(a,{relative:c.relative}),d=Ix(),f=v.useContext(yx),{navigator:p,basename:m}=v.useContext(Tx),h=f!=null&&SC(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=Xb(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(iC,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});aC.displayName=`NavLink`;var oC=v.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=hS,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=v.useContext(Tx),g=hC(),_=gC(s,{relative:l}),y=o.toLowerCase()===`get`?`get`:`post`,b=typeof s==`string`&&mb.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})});oC.displayName=`Form`;function sC({getKey:e,storageKey:t,...n}){let r=v.useContext(KS),{basename:i}=v.useContext(Tx),a=Ix(),o=iS();bC({getKey:e,storageKey:t});let s=v.useMemo(()=>{if(!r||!e)return null;let t=yC(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return n.nonce==null&&r?.nonce&&(n.nonce=r.nonce),v.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${MS(JSON.stringify(t||_C))}, ${MS(JSON.stringify(s))})`}})}sC.displayName=`ScrollRestoration`;function cC(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function lC(e){let t=v.useContext(vx);return bb(t,cC(e)),t}function uC(e){let t=v.useContext(yx);return bb(t,cC(e)),t}function dC(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=zx(),d=Ix(),f=Vx(e,{relative:o});return v.useCallback(p=>{if(SS(p,t)){p.preventDefault();let t=n===void 0?Tb(d)===Tb(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 fC(e){xb(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(CS(e)),n=v.useRef(!1),r=Ix(),i=v.useMemo(()=>wS(r.search,n.current?null:t.current),[r.search]),a=zx();return[i,v.useCallback((e,t)=>{let r=CS(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var pC=0,mC=()=>`__${String(++pC)}__`;function hC(){let{router:e}=lC(`useSubmit`),{basename:t}=v.useContext(Tx),n=nS(),r=e.fetch,i=e.navigate;return v.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=kS(e,t);a.navigate===!1?await r(a.fetcherKey||mC(),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}):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 gC(e,{relative:t}={}){let{basename:n}=v.useContext(Tx),r=v.useContext(Dx);bb(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...Vx(e||`.`,{relative:t})},o=Ix();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:ix([n,a.pathname])),Tb(a)}var _C=`react-router-scroll-positions`,vC={};function yC(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:Xb(e.pathname,n)||e.pathname},t)),i??=e.key,i}function bC({getKey:e,storageKey:t}={}){let{router:n}=lC(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=uC(`useScrollRestoration`),{basename:a}=v.useContext(Tx),o=Ix(),s=iS(),c=rS();v.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),xC(v.useCallback(()=>{if(c.state===`idle`){let t=yC(o,s,a,e);vC[t]=window.scrollY}try{sessionStorage.setItem(t||_C,JSON.stringify(vC))}catch(e){xb(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(v.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||_C);e&&(vC=JSON.parse(e))}catch{}},[t]),v.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(vC,()=>window.scrollY,e?(t,n)=>yC(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),v.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{xb(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function xC(e,t){let{capture:n}=t||{};v.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function SC(e,{relative:t}={}){let n=v.useContext(Sx);bb(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=lC(`useViewTransitionState`),i=Vx(e,{relative:t});if(!n.isTransitioning)return!1;let a=Xb(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Xb(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Kb(i.pathname,o)!=null||Kb(i.pathname,a)!=null}var CC={userId:`userId`,accessToken:`accessToken`,refreshToken:`refreshToken`},wC=`kkk-auth-changed`,TC=()=>localStorage.getItem(CC.accessToken),EC=()=>localStorage.getItem(CC.refreshToken),DC=()=>localStorage.getItem(CC.userId),OC=()=>!!(TC()&&DC()),kC=e=>{localStorage.setItem(CC.userId,e.userId),localStorage.setItem(CC.accessToken,e.accessToken),localStorage.setItem(CC.refreshToken,e.refreshToken),window.dispatchEvent(new Event(wC))},AC=e=>{localStorage.setItem(CC.accessToken,e),window.dispatchEvent(new Event(wC))},jC=()=>{localStorage.removeItem(CC.userId),localStorage.removeItem(CC.accessToken),localStorage.removeItem(CC.refreshToken),window.dispatchEvent(new Event(wC))},MC=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 NC(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function PC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var FC={autoSleep:120,force3D:`auto`,nullTargetWarn:1,units:{lineHeight:``}},IC={duration:.5,overwrite:!1,delay:0},LC,RC,zC,BC=1e8,VC=1/BC,HC=Math.PI*2,UC=HC/4,WC=0,GC=Math.sqrt,KC=Math.cos,qC=Math.sin,JC=function(e){return typeof e==`string`},YC=function(e){return typeof e==`function`},XC=function(e){return typeof e==`number`},ZC=function(e){return e===void 0},QC=function(e){return typeof e==`object`},$C=function(e){return e!==!1},ew=function(){return typeof window<`u`},tw=function(e){return YC(e)||JC(e)},nw=typeof ArrayBuffer==`function`&&ArrayBuffer.isView||function(){},rw=Array.isArray,iw=/random\([^)]+\)/g,aw=/,\s*/g,ow=/(?:-?\.?\d|\.)+/gi,sw=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,cw=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,lw=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,uw=/[+-]=-?[.\d]+/,dw=/[^,'"\[\]\s]+/gi,fw=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,pw,mw,hw,gw,_w={},vw={},yw,bw=function(e){return(vw=Qw(e,_w))&&_D},xw=function(e,t){return console.warn(`Invalid property`,e,`set to`,t,`Missing plugin? gsap.registerPlugin()`)},Sw=function(e,t){return!t&&console.warn(e)},Cw=function(e,t){return e&&(_w[e]=t)&&vw&&(vw[e]=t)||_w},ww=function(){return 0},Tw={suppressEvents:!0,isStart:!0,kill:!1},Ew={suppressEvents:!0,kill:!1},Dw={suppressEvents:!0},Ow={},kw=[],Aw={},jw,Mw={},Nw={},Pw=30,Fw=[],Iw=``,Lw=function(e){var t=e[0],n,r;if(QC(t)||YC(t)||(e=[e]),!(n=(t._gsap||{}).harness)){for(r=Fw.length;r--&&!Fw[r].targetTest(t););n=Fw[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new DE(e[r],n)))||e.splice(r,1);return e},Rw=function(e){return e._gsap||Lw(FT(e))[0]._gsap},zw=function(e,t,n){return(n=e[t])&&YC(n)?e[t]():ZC(n)&&e.getAttribute&&e.getAttribute(t)||n},Bw=function(e,t){return(e=e.split(`,`)).forEach(t)||e},Vw=function(e){return Math.round(e*1e5)/1e5||0},Hw=function(e){return Math.round(e*1e7)/1e7||0},Uw=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},Ww=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++r<n;);return r<n},Gw=function(){var e=kw.length,t=kw.slice(0),n,r;for(Aw={},kw.length=0,n=0;n<e;n++)r=t[n],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},Kw=function(e){return!!(e._initted||e._startAt||e.add)},qw=function(e,t,n,r){kw.length&&!RC&&Gw(),e.render(t,n,r||!!(RC&&t<0&&Kw(e))),kw.length&&!RC&&Gw()},Jw=function(e){var t=parseFloat(e);return(t||t===0)&&(e+``).match(dw).length<2?t:JC(e)?e.trim():e},Yw=function(e){return e},Xw=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},Zw=function(e){return function(t,n){for(var r in n)r in t||r===`duration`&&e||r===`ease`||(t[r]=n[r])}},Qw=function(e,t){for(var n in t)e[n]=t[n];return e},$w=function e(t,n){for(var r in n)r!==`__proto__`&&r!==`constructor`&&r!==`prototype`&&(t[r]=QC(n[r])?e(t[r]||(t[r]={}),n[r]):n[r]);return t},eT=function(e,t){var n={},r;for(r in e)r in t||(n[r]=e[r]);return n},tT=function(e){var t=e.parent||pw,n=e.keyframes?Zw(rw(e.keyframes)):Xw;if($C(e.inherit))for(;t;)n(e,t.vars.defaults),t=t.parent||t._dp;return e},nT=function(e,t){for(var n=e.length,r=n===t.length;r&&n--&&e[n]===t[n];);return n<0},rT=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},iT=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},aT=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},oT=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},sT=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},cT=function(e,t,n,r){return e._startAt&&(RC?e._startAt.revert(Ew):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},lT=function e(t){return!t||t._ts&&e(t.parent)},uT=function(e){return e._repeat?dT(e._tTime,e=e.duration()+e._rDelay)*e:0},dT=function(e,t){var n=Math.floor(e=Hw(e/t));return e&&n===e?n-1:n},fT=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},pT=function(e){return e._end=Hw(e._start+(e._tDur/Math.abs(e._ts||e._rts||VC)||0))},mT=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=Hw(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),pT(e),n._dirty||oT(n,e)),e},hT=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(n=fT(e.rawTime(),t),(!t._dur||kT(0,t.totalDuration(),n)-t._tTime>VC)&&t.render(n,!0)),oT(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=-VC}},gT=function(e,t,n,r){return t.parent&&aT(t),t._start=Hw((XC(n)?n:n||e!==pw?ET(e,n,t):e._time)+t._delay),t._end=Hw(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),rT(e,t,`_first`,`_last`,e._sort?`_start`:0),bT(t)||(e._recent=t),r||hT(e,t),e._ts<0&&mT(e,e._tTime),e},_T=function(e,t){return(_w.ScrollTrigger||xw(`scrollTrigger`,t))&&_w.ScrollTrigger.create(t,e)},vT=function(e,t,n,r,i){if(IE(e,t,i),!e._initted)return 1;if(!n&&e._pt&&!RC&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&jw!==pE.frame)return kw.push(e),e._lazy=[i,r],1},yT=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},bT=function(e){var t=e.data;return t===`isFromStart`||t===`isStart`},xT=function(e,t,n,r){var i=e.ratio,a=t<0||!t&&(!e._start&&yT(e)&&!(!e._initted&&bT(e))||(e._ts<0||e._dp._ts<0)&&!bT(e))?0:1,o=e._rDelay,s=0,c,l,u;if(o&&e._repeat&&(s=kT(0,e._tDur,t),l=dT(s,o),e._yoyo&&l&1&&(a=1-a),l!==dT(e._tTime,o)&&(i=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==i||RC||r||e._zTime===VC||!t&&e._zTime){if(!e._initted&&vT(e,t,r,n,s))return;for(u=e._zTime,e._zTime=t||(n?VC: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&&cT(e,t,n,!0),e._onUpdate&&!n&&QT(e,`onUpdate`),s&&e._repeat&&!n&&e.parent&&QT(e,`onRepeat`),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&aT(e,1),!n&&!RC&&(QT(e,a?`onComplete`:`onReverseComplete`,!0),e._prom&&e._prom()))}else e._zTime||=t},ST=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}},CT=function(e,t,n,r){var i=e._repeat,a=Hw(t)||0,o=e._tTime/e._tDur;return o&&!r&&(e._time*=a/e._dur),e._dur=a,e._tDur=i?i<0?1e10:Hw(a*(i+1)+e._rDelay*i):a,o>0&&!r&&mT(e,e._tTime=e._tDur*o),e.parent&&pT(e),n||oT(e.parent,e),e},wT=function(e){return e instanceof kE?oT(e):CT(e,e._dur)},TT={_start:0,endTime:ww,totalDuration:ww},ET=function e(t,n,r){var i=t.labels,a=t._recent||TT,o=t.duration()>=BC?a.endTime(!1):t._dur,s,c,l;return JC(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*(rw(r)?r[0]:r).totalDuration()),s>1?e(t,n.substr(0,s-1),r)+c:o+c)):n==null?o:+n},DT=function(e,t,n){var r=XC(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=$C(s.vars.inherit)&&s.parent;a.immediateRender=$C(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[i-1]}return new UE(t[0],a,t[i+1])},OT=function(e,t){return e||e===0?t(e):t},kT=function(e,t,n){return n<e?e:n>t?t:n},AT=function(e,t){return!JC(e)||!(t=fw.exec(e))?``:t[1]},jT=function(e,t,n){return OT(n,function(n){return kT(e,t,n)})},MT=[].slice,NT=function(e,t){return e&&QC(e)&&`length`in e&&(!t&&!e.length||e.length-1 in e&&QC(e[0]))&&!e.nodeType&&e!==mw},PT=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(e){var r;return JC(e)&&!t||NT(e,1)?(r=n).push.apply(r,FT(e)):n.push(e)})||n},FT=function(e,t,n){return zC&&!t&&zC.selector?zC.selector(e):JC(e)&&!n&&(hw||!mE())?MT.call((t||gw).querySelectorAll(e),0):rw(e)?PT(e,n):NT(e)?MT.call(e,0):e?[e]:[]},IT=function(e){return e=FT(e)[0]||Sw(`Invalid scope`)||{},function(t){var n=e.current||e.nativeElement||e;return FT(t,n.querySelectorAll?n:n===e?Sw(`Invalid scope`)||gw.createElement(`div`):e)}},LT=function(e){return e.sort(function(){return .5-Math.random()})},RT=function(e){if(YC(e))return e;var t=QC(e)?e:{each:e},n=SE(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 JC(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,BC])[1],!S){for(b=-BC;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===BC?0:s?f*u/S-.5:r/S|0,b=0,x=BC,y=0;y<f;y++)g=y%S-m,_=h-(y/S|0),p[y]=v=c?Math.abs(c===`y`?_:g):GC(g*g+_*_),v>b&&(b=v),v<x&&(x=v);r===`random`&&LT(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=AT(t.amount||t.each)||0,n=n&&f<0?xE(n):n}return f=(p[e]-p.min)/p.max||0,Hw(p.b+(n?n(f):f)*p.v)+p.u}},zT=function(e){var t=10**((e+``).split(`.`)[1]||``).length;return function(n){var r=Hw(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(XC(n)?0:AT(n))}},BT=function(e,t){var n=rw(e),r,i;return!n&&QC(e)&&(r=n=e.radius||BC,e.values?(e=FT(e.values),(i=!XC(e[0]))&&(r*=r)):e=zT(e.increment)),OT(t,n?YC(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=BC,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||XC(t)?s:s+AT(t)}:zT(e))},VT=function(e,t,n,r){return OT(rw(e)?!t:n===!0?!!(n=0):!r,function(){return rw(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})},HT=function(){var e=[...arguments];return function(t){return e.reduce(function(e,t){return t(e)},t)}},UT=function(e,t){return function(n){return e(parseFloat(n))+(t||AT(n))}},WT=function(e,t,n){return YT(e,t,0,1,n)},GT=function(e,t,n){return OT(n,function(n){return e[~~t(n)]})},KT=function e(t,n,r){var i=n-t;return rw(t)?GT(t,e(0,t.length),n):OT(r,function(e){return(i+(e-t)%i)%i+t})},qT=function e(t,n,r){var i=n-t,a=i*2;return rw(t)?GT(t,e(0,t.length-1),n):OT(r,function(e){return e=(a+(e-t)%a)%a||0,t+(e>i?a-e:e)})},JT=function(e){return e.replace(iw,function(e){var t=e.indexOf(`[`)+1,n=e.substring(t||7,t?e.indexOf(`]`):e.length-1).split(aw);return VT(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},YT=function(e,t,n,r,i){var a=t-e,o=r-n;return OT(i,function(t){return n+((t-e)/a*o||0)})},XT=function e(t,n,r,i){var a=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!a){var o=JC(t),s={},c,l,u,d,f;if(r===!0&&(i=1)&&(r=null),o)t={p:t},n={p:n};else if(rw(t)&&!rw(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=Qw(rw(t)?[]:{},t));if(!u){for(c in n)jE.call(s,t,c,`get`,n[c]);a=function(e){return QE(e,s)||(o?t.p:t)}}}return OT(r,a)},ZT=function(e,t,n){var r=e.labels,i=BC,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},QT=function(e,t,n){var r=e.vars,i=r[t],a=zC,o=e._ctx,s,c,l;if(i)return s=r[t+`Params`],c=r.callbackScope||e,n&&kw.length&&Gw(),o&&(zC=o),l=s?i.apply(c,s):i.call(c),zC=a,l},$T=function(e){return aT(e),e.scrollTrigger&&e.scrollTrigger.kill(!!RC),e.progress()<1&&QT(e,`onInterrupt`),e},eE,tE=[],nE=function(e){if(e)if(e=!e.name&&e.default||e,ew()||e.headless){var t=e.name,n=YC(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:ww,render:QE,add:jE,kill:eD,modifier:$E,rawVars:0},a={targetTest:0,get:0,getSetter:JE,aliases:{},register:0};if(mE(),e!==r){if(Mw[t])return;Xw(r,Xw(eT(e,i),a)),Qw(r.prototype,Qw(i,eT(e,a))),Mw[r.prop=t]=r,e.targetTest&&(Fw.push(r),Ow[t]=1),t=(t===`css`?`CSS`:t.charAt(0).toUpperCase()+t.substr(1))+`Plugin`}Cw(t,r),e.register&&e.register(_D,r,rD)}else tE.push(e)},rE=255,iE={aqua:[0,rE,rE],lime:[0,rE,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,rE],navy:[0,0,128],white:[rE,rE,rE],olive:[128,128,0],yellow:[rE,rE,0],orange:[rE,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[rE,0,0],pink:[rE,192,203],cyan:[0,rE,rE],transparent:[rE,rE,rE,0]},aE=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)*rE+.5|0},oE=function(e,t,n){var r=e?XC(e)?[e>>16,e>>8&rE,e&rE]:0:iE.black,i,a,o,s,c,l,u,d,f,p;if(!r){if(e.substr(-1)===`,`&&(e=e.substr(0,e.length-1)),iE[e])r=iE[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&rE,r&rE,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&rE,e&rE]}else if(e.substr(0,3)===`hsl`){if(r=p=e.match(ow),!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]=aE(s+1/3,i,a),r[1]=aE(s,i,a),r[2]=aE(s-1/3,i,a);else if(~e.indexOf(`=`))return r=e.match(sw),n&&r.length<4&&(r[3]=1),r}else r=e.match(ow)||iE.transparent;r=r.map(Number)}return t&&!p&&(i=r[0]/rE,a=r[1]/rE,o=r[2]/rE,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},sE=function(e){var t=[],n=[],r=-1;return e.split(lE).forEach(function(e){var i=e.match(cw)||[];t.push.apply(t,i),n.push(r+=i.length+1)}),t.c=n,t},cE=function(e,t,n){var r=``,i=(e+r).match(lE),a=t?`hsla(`:`rgba(`,o=0,s,c,l,u;if(!i)return e;if(i=i.map(function(e){return(e=oE(e,t,1))&&a+(t?e[0]+`,`+e[1]+`%,`+e[2]+`%,`+e[3]:e.join(`,`))+`)`}),n&&(l=sE(e),s=n.c,s.join(r)!==l.c.join(r)))for(c=e.replace(lE,`1`).split(cw),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(lE),u=c.length-1;o<u;o++)r+=c[o]+i[o];return r+c[u]},lE=function(){var e=`(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b`,t;for(t in iE)e+=`|`+t+`\\b`;return RegExp(e+`)`,`gi`)}(),uE=/hsl[a]?\(/,dE=function(e){var t=e.join(` `),n;if(lE.lastIndex=0,lE.test(t))return n=uE.test(t),e[1]=cE(e[1],n),e[0]=cE(e[0],n,sE(e[1])),!0},fE,pE=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(){yw&&(!hw&&ew()&&(mw=hw=window,gw=mw.document||{},_w.gsap=_D,(mw.gsapVersions||=[]).push(_D.version),bw(vw||mw.GreenSockGlobals||!mw.gsap&&mw||{}),tE.forEach(nE)),u=typeof requestAnimationFrame<`u`&&requestAnimationFrame,c&&d.sleep(),l=u||function(e){return setTimeout(e,o-d.time*1e3+1|0)},fE=1,m(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(c),fE=0,l=ww},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),mE(),r},remove:function(e,t){~(t=s.indexOf(e))&&s.splice(t,1)&&p>=t&&p--},_listeners:s},d}(),mE=function(){return!fE&&pE.wake()},hE={},gE=/^[\d.\-M][\d.\-,\s]/,_E=/["']/g,vE=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(_E,``).trim():+c,r=s.substr(o+1).trim();return t},yE=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)},bE=function(e){var t=(e+``).split(`(`),n=hE[t[0]];return n&&t.length>1&&n.config?n.config.apply(null,~e.indexOf(`{`)?[vE(t[1])]:yE(e).split(`,`).map(Jw)):hE._CE&&gE.test(e)?hE._CE(``,e):n},xE=function(e){return function(t){return 1-e(1-t)}},SE=function(e,t){return e&&(YC(e)?e:hE[e]||bE(e))||t},CE=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 Bw(e,function(e){for(var t in hE[e]=_w[e]=i,hE[a=e.toLowerCase()]=n,i)hE[a+(t===`easeIn`?`.in`:t===`easeOut`?`.out`:`.inOut`)]=hE[e+`.`+t]=i[t]}),i},wE=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},TE=function e(t,n,r){var i=n>=1?n:1,a=(r||(t?.3:.45))/(n<1?n:1),o=a/HC*(Math.asin(1/i)||0),s=function(e){return e===1?1:i*2**(-10*e)*qC((e-o)*a)+1},c=t===`out`?s:t===`in`?function(e){return 1-s(1-e)}:wE(s);return a=HC/a,c.config=function(n,r){return e(t,n,r)},c},EE=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)}:wE(r);return i.config=function(n){return e(t,n)},i};Bw(`Linear,Quad,Cubic,Quart,Quint,Strong`,function(e,t){var n=t<5?t+1:t;CE(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})}),hE.Linear.easeNone=hE.none=hE.Linear.easeIn,CE(`Elastic`,TE(`in`),TE(`out`),TE()),(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};CE(`Bounce`,function(e){return 1-a(1-e)},a)})(7.5625,2.75),CE(`Expo`,function(e){return 2**(10*(e-1))*e+e*e*e*e*e*e*(1-e)}),CE(`Circ`,function(e){return-(GC(1-e*e)-1)}),CE(`Sine`,function(e){return e===1?1:-KC(e*UC)+1}),CE(`Back`,EE(`in`),EE(`out`),EE()),hE.SteppedEase=hE.steps=_w.SteppedEase={config:function(e,t){e===void 0&&(e=1);var n=1/e,r=e+ +!t,i=+!!t,a=1-VC;return function(e){return((r*kT(0,a,e)|0)+i)*n}}},IC.ease=hE[`quad.out`],Bw(`onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt`,function(e){return Iw+=e+`,`+e+`Params,`});var DE=function(e,t){this.id=WC++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:zw,this.set=t?t.getSetter:JE},OE=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,CT(this,+e.duration,1,1),this.data=e.data,zC&&(this._ctx=zC,zC.data.push(this)),fE||pE.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,CT(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(mE(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(mT(this,e),!n._dp||n.parent||hT(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)&&gT(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===VC||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),qw(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+uT(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)+uT(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?dT(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return this._rts===-VC?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?fT(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-VC?0:this._rts,this.totalTime(kT(-Math.abs(this._delay),this.totalDuration(),n),t!==!1),pT(this),sT(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):(mE(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==VC&&(this._tTime-=VC)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=Hw(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&gT(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+($C(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?fT(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){e===void 0&&(e=Dw);var t=RC;return RC=e,Kw(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!==`nested`&&e.kill!==!1&&this.kill(),RC=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,wT(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,wT(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(ET(this,e),$C(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,$C(t)),this._dur||(this._zTime=-VC),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?-VC:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-VC,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)-VC)},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=YC(e)?e:Yw,a=function(){var e=t.then;t.then=null,n&&n(),YC(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(){$T(this)},e}();Xw(OE.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:-VC,_prom:0,_ps:!1,_rts:1});var kE=function(e){PC(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=$C(t.sortChildren),pw&&gT(t.parent||pw,NC(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&_T(NC(r),t.scrollTrigger),r}var n=t.prototype;return n.to=function(e,t,n){return DT(0,arguments,this),this},n.from=function(e,t,n){return DT(1,arguments,this),this},n.fromTo=function(e,t,n,r){return DT(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,tT(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new UE(e,t,ET(this,n),1),this},n.call=function(e,t,n){return gT(this,UE.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 UE(e,n,ET(this,i)),this},n.staggerFrom=function(e,t,n,r,i,a,o){return n.runBackwards=1,tT(n).immediateRender=$C(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,tT(r).immediateRender=$C(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:Hw(e),s=this._zTime<0!=e<0&&(this._initted||!a),c,l,u,d,f,p,m,h,g,_,v,y;if(this!==pw&&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=Hw(o%f),o===i?(d=this._repeat,c=a):(_=Hw(o/f),d=~~_,d&&d===_&&(c=a,d--),c>a&&(c=a)),_=dT(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:Hw(d*f)),t,!a)._lock=0,this._tTime=o,!t&&this.parent&&QT(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=ST(this,Hw(r),Hw(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&&!_&&(QT(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=-VC);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||RC&&Kw(l)),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=S?-VC:VC);break}}l=u}}if(m&&!t&&(this.pause(),m.render(c>=r?0:-VC)._zTime=c>=r?1:-1,this._ts))return this._start=g,pT(this),this.render(e,t,n);this._onUpdate&&!t&&QT(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)&&aT(this,1),!t&&!(e<0&&!r)&&(o||r||!i)&&(QT(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(XC(t)||(t=ET(this,t,e)),!(e instanceof OE)){if(rw(e))return e.forEach(function(e){return n.add(e,t)}),this;if(JC(e))return this.addLabel(e,t);if(YC(e))e=UE.delayedCall(0,e);else return this}return this===e?this:gT(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=-BC);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof UE?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 JC(e)?this.removeLabel(e):YC(e)?this.killTweensOf(e):(e.parent===this&&iT(this,e),e===this._recent&&(this._recent=this._last),oT(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Hw(pE.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]=ET(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=UE.delayedCall(0,t||ww,n);return r.data=`isPause`,this._hasPause=1,gT(this,r,ET(this,e))},n.removePause=function(e){var t=this._first;for(e=ET(this,e);t;)t._start===e&&t.data===`isPause`&&aT(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)PE!==r[i]&&r[i].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n=[],r=FT(e),i=this._first,a=XC(t),o;i;)i instanceof UE?Ww(i._targets,r)&&(a?(!PE||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=ET(n,e),i=t,a=i.startAt,o=i.onStart,s=i.onStartParams,c=i.immediateRender,l,u=UE.to(n,Xw({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())||VC,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&&CT(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,Xw({startAt:{time:ET(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return e===void 0&&(e=this._time),ZT(this,ET(this,e))},n.previousLabel=function(e){return e===void 0&&(e=this._time),ZT(this,ET(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+VC)},n.shiftChildren=function(e,t,n){n===void 0&&(n=0);var r=this._first,i=this.labels,a;for(e=Hw(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 oT(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={}),oT(this)},n.totalDuration=function(e){var t=0,n=this,r=n._last,i=BC,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,gT(n,r,o-r._delay,1)._lock=0):i=o,o<0&&r._ts&&(t-=o,(!s&&!n._dp||s&&s.smoothChildTiming)&&(n._start+=Hw(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;CT(n,n===pw&&n._time>t?n._time:t,1,1),n._dirty=0}return n._tDur},t.updateRoot=function(e){if(pw._ts&&(qw(pw,fT(e,pw)),jw=pE.frame),pE.frame>=Pw){Pw+=FC.autoSleep||120;var t=pw._first;if((!t||!t._ts)&&FC.autoSleep&&pE._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||pE.sleep()}}},t}(OE);Xw(kE.prototype,{_lock:0,_hasPause:0,_forcing:0});var AE=function(e,t,n,r,i,a,o){var s=new rD(this._pt,e,t,0,1,ZE,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=JT(r)),a&&(_=[n,r],a(_,e,t),n=_[0],r=_[1]),d=n.match(lw)||[];u=lw.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)===`=`?Uw(h,p)-h:parseFloat(p)-h,m:f&&f<4?Math.round:0},c=lw.lastIndex);return s.c=c<r.length?r.substring(c,r.length):``,s.fp=o,(uw.test(r)||g)&&(s.e=0),this._pt=s,s},jE=function(e,t,n,r,i,a,o,s,c,l){YC(r)&&(r=r(i||0,e,a));var u=e[t],d=n===`get`?YC(u)?c?e[t.indexOf(`set`)||!YC(e[`get`+t.substr(3)])?t:`get`+t.substr(3)](c):e[t]():u:n,f=YC(u)?c?KE:GE:WE,p;if(JC(r)&&(~r.indexOf(`random(`)&&(r=JT(r)),r.charAt(1)===`=`&&(p=Uw(d,r)+(AT(d)||0),(p||p===0)&&(r=p))),!l||d!==r||FE)return!isNaN(d*r)&&r!==``?(p=new rD(this._pt,e,t,+d||0,r-(d||0),typeof u==`boolean`?XE:YE,0,f),c&&(p.fp=c),o&&p.modifier(o,this,e),this._pt=p):(!u&&!(t in e)&&xw(t,r),AE.call(this,e,t,d,r,f,s||FC.stringFilter,c))},ME=function(e,t,n,r,i){if(YC(e)&&(e=BE(e,i,t,n,r)),!QC(e)||e.style&&e.nodeType||rw(e)||nw(e))return JC(e)?BE(e,i,t,n,r):e;var a={},o;for(o in e)a[o]=BE(e[o],i,t,n,r);return a},NE=function(e,t,n,r,i,a){var o,s,c,l;if(Mw[e]&&(o=new Mw[e]).init(i,o.rawVars?t[e]:ME(t[e],r,i,a,n),n,r,a)!==!1&&(n._pt=s=new rD(n._pt,i,e,0,1,o.render,o,0,o.priority),n!==eE))for(c=n._ptLookup[n._targets.indexOf(i)],l=o._props.length;l--;)c[o._props[l]]=s;return o},PE,FE,IE=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`&&!LC,b=t.timeline,x=i.easeReverse||d,S,C,w,T,E,D,O,k,A,j,M,ee,N;if(b&&(!f||!a)&&(a=`none`),t._ease=SE(a,IC.ease),t._rEase=x&&(SE(x)||t._ease),t._from=!b&&!!i.runBackwards,t._from&&(t.ratio=1),!b||f&&!i.stagger){if(k=g[0]?Rw(g[0]).harness:0,ee=k&&i[k.prop],S=eT(i,Ow),h&&(h._zTime<0&&h.progress(1),n<0&&u&&s&&!p?h.render(-1,!0):h.revert(u&&m?Ew:Tw),h._lazy=0),o){if(aT(t._startAt=UE.set(g,Xw({data:`isStart`,overwrite:!1,parent:_,immediateRender:!0,lazy:!h&&$C(c),startAt:null,delay:0,onUpdate:l&&function(){return QT(t,`onUpdate`)},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,n<0&&(RC||!s&&!p)&&t._startAt.revert(Ew),s&&m&&n<=0&&r<=0){n&&(t._zTime=n);return}}else if(u&&m&&!h){if(n&&(s=!1),w=Xw({overwrite:!1,data:`isFromStart`,lazy:s&&!h&&$C(c),immediateRender:s,stagger:0,parent:_},S),ee&&(w[k.prop]=ee),aT(t._startAt=UE.set(g,w)),t._startAt._dp=0,t._startAt._sat=t,n<0&&(RC?t._startAt.revert(Ew):t._startAt.render(-1,!0)),t._zTime=n,!s)e(t._startAt,VC,VC);else if(!n)return}for(t._pt=t._ptCache=0,c=m&&$C(c)||c&&!m,C=0;C<g.length;C++){if(E=g[C],O=E._gsap||Lw(g)[C]._gsap,t._ptLookup[C]=j={},Aw[O.id]&&kw.length&&Gw(),M=v===g?C:v.indexOf(E),k&&(A=new k).init(E,ee||S,t,M,v)!==!1&&(t._pt=T=new rD(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||ee)for(w in S)Mw[w]&&(A=NE(w,S,t,M,E,v))?A.priority&&(D=1):j[w]=T=jE.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&&(PE=t,pw.killTweensOf(E,j,t.globalTime(n)),N=!t.parent,PE=0),t._pt&&c&&(Aw[O.id]=1)}D&&nD(t),t._onInit&&t._onInit(t)}t._onUpdate=l,t._initted=(!t._op||t._pt)&&!N,f&&n<=0&&b.render(BC,!0,!0)},LE=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 FE=1,e.vars[t]=`+=0`,IE(e,o),FE=0,s?Sw(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&&=Vw(n)+AT(u.e),u.b&&=l.s+AT(u.b)},RE=function(e,t){var n=e[0]?Rw(e[0]).harness:0,r=n&&n.aliases,i,a,o,s;if(!r)return t;for(a in i=Qw({},t),r)if(a in i)for(s=r[a].split(`,`),o=s.length;o--;)i[s[o]]=i[a];return i},zE=function(e,t,n,r){var i=t.ease||r||`power1.inOut`,a,o;if(rw(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})},BE=function(e,t,n,r,i){return YC(e)?e.call(t,n,r,i):JC(e)&&~e.indexOf(`random(`)?JT(e):e},VE=Iw+`repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert`,HE={};Bw(VE+`,id,stagger,delay,duration,paused,scrollTrigger`,function(e){return HE[e]=1});var UE=function(e){PC(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:tT(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||pw,g=(rw(t)||nw(t)?XC(t[0]):`length`in n)?[t]:FT(t),_,v,y,b,x,S,C,w;if(a._targets=g.length?Lw(g):Sw(`GSAP target `+t+` not found. https://gsap.com`,!FC.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=d,f||u||tw(s)||tw(c)){n=a.vars;var T=n.easeReverse||n.yoyoEase;if(_=a.timeline=new kE({data:`nested`,defaults:p||{},targets:h&&h.data===`nested`?h.vars.targets:g}),_.kill(),_.parent=_._dp=NC(a),_._start=0,u||tw(s)||tw(c)){if(b=g.length,C=u&&RT(u),QC(u))for(x in u)~VE.indexOf(x)&&(w||={},w[x]=u[x]);for(v=0;v<b;v++)y=eT(n,HE),y.stagger=0,T&&(y.easeReverse=T),w&&Qw(y,w),S=g[v],y.duration=+BE(s,NC(a),v,S,g),y.delay=(+BE(c,NC(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=hE.none;_.duration()?s=c=0:a.timeline=0}else if(f){tT(Xw(_.vars.defaults,{ease:`none`})),_._ease=SE(f.ease||n.ease||`none`);var E=0,D,O,k;if(rw(f))f.forEach(function(e){return _.to(g,e,`>`)}),_.duration();else{for(x in y={},f)x===`ease`||x===`easeEach`||zE(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&&!LC&&(PE=NC(a),pw.killTweensOf(g),PE=0),gT(h,NC(a),r),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(l||!s&&!f&&a._start===Hw(h._time)&&$C(l)&&lT(NC(a))&&h.data!==`nested`)&&(a._tTime=-VC,a.render(Math.max(0,-c)||0)),m&&_T(NC(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-VC&&!o?i:e<VC?0:e,c,l,u,d,f,p,m,h;if(!a)xT(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=Hw(s%d),s===i?(u=this._repeat,c=a):(f=Hw(s/d),u=~~f,u&&u===f?(c=a,u--):c>a&&(c=a)),p=this._yoyo&&u&1,p&&(c=a-c),f=dT(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(Hw(d*u),!0).invalidate()._lock=0)}if(!this._initted){if(vT(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&&(QT(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&&cT(this,e,t,n),QT(this,`onUpdate`)),this._repeat&&u!==f&&this.vars.onRepeat&&!t&&this.parent&&QT(this,`onRepeat`),(s===this._tDur||!s)&&this._tTime===s&&(o&&!this._onUpdate&&cT(this,e,!0,!0),(e||!a)&&(s===this._tDur&&this._ts>0||!s&&this._ts<0)&&aT(this,1),!t&&!(o&&!r)&&(s||r||p)&&(QT(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){fE||pE.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts),o;return this._initted||IE(this,a),o=this._ease(a/this._dur),LE(this,e,t,n,r,o,a,i)?this.resetTo(e,t,n,r,1):(mT(this,0),this.parent||rT(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?$T(this):this.scrollTrigger&&this.scrollTrigger.kill(!!RC),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,PE&&PE.vars.overwrite!==!0)._first||$T(this),this.parent&&n!==this.timeline.totalDuration()&&CT(this,this._dur*this.timeline._tDur/n,0,1),this}var r=this._targets,i=e?FT(e):r,a=this._ptLookup,o=this._pt,s,c,l,u,d,f,p;if((!t||t===`all`)&&nT(r,i))return t===`all`&&(this._pt=0),$T(this);for(s=this._op=this._op||[],t!==`all`&&(JC(t)&&(d={},Bw(t,function(e){return d[e]=1}),t=d),t=RE(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)&&iT(this,f,`_pt`),delete c[d]),l!==`all`&&(l[d]=1);return this._initted&&!this._pt&&o&&$T(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return DT(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 DT(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 pw.killTweensOf(e,t,n)},t}(OE);Xw(UE.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Bw(`staggerTo,staggerFrom,staggerFromTo`,function(e){UE[e]=function(){var t=new kE,n=MT.call(arguments,0);return n.splice(e===`staggerFromTo`?5:4,0,0),t[e].apply(t,n)}});var WE=function(e,t,n){return e[t]=n},GE=function(e,t,n){return e[t](n)},KE=function(e,t,n,r){return e[t](r.fp,n)},qE=function(e,t,n){return e.setAttribute(t,n)},JE=function(e,t){return YC(e[t])?GE:ZC(e[t])&&e.setAttribute?qE:WE},YE=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},XE=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},ZE=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)},QE=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},$E=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},eD=function(e){for(var t=this._pt,n,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?iT(this,t,`_pt`):t.dep||(n=1),t=r;return!n},tD=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},nD=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},rD=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||YE,this.d=o||this,this.set=s||WE,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=tD,this.m=e,this.mt=n,this.tween=t},e}();Bw(Iw+`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 Ow[e]=1}),_w.TweenMax=_w.TweenLite=UE,_w.TimelineLite=_w.TimelineMax=kE,pw=new kE({sortChildren:!1,defaults:IC,autoRemoveChildren:!0,id:`root`,smoothChildTiming:!0}),FC.stringFilter=dE;var iD=[],aD={},oD=[],sD=0,cD=0,lD=function(e){return(aD[e]||oD).map(function(e){return e()})},uD=function(){var e=Date.now(),t=[];e-sD>2&&(lD(`matchMediaInit`),iD.forEach(function(e){var n=e.queries,r=e.conditions,i,a,o,s;for(a in n)i=mw.matchMedia(n[a]).matches,i&&(o=1),i!==r[a]&&(r[a]=i,s=1);s&&(e.revert(),o&&t.push(e))}),lD(`matchMediaRevert`),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),sD=e,lD(`matchMedia`))},dD=function(){function e(e,t){this.selector=t&&IT(t),this.data=[],this._r=[],this.isReverted=!1,this.id=cD++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){YC(e)&&(n=t,t=e,e=YC);var r=this,i=function(){var e=zC,i=r.selector,a;return e&&e!==r&&e.data.push(r),n&&(r.selector=IT(n)),zC=r,a=t.apply(r,arguments),YC(a)&&r._r.push(a),zC=e,r.selector=i,r.isReverted=!1,a};return r.last=i,e===YC?i(r,function(e){return r.add(null,e)}):e?r[e]=i:i},t.ignore=function(e){var t=zC;zC=null,e(this),zC=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof UE&&!(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 kE?i.data!==`nested`&&(i.scrollTrigger&&i.scrollTrigger.revert(),i.kill()):!(i instanceof UE)&&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=iD.length;r--;)iD[r].id===this.id&&iD.splice(r,1)},t.revert=function(e){this.kill(e||{})},e}(),fD=function(){function e(e){this.contexts=[],this.scope=e,zC&&zC.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){QC(e)||(e={matches:e});var r=new dD(0,n||this.scope),i=r.conditions={},a,o,s;for(o in zC&&!r.selector&&(r.selector=zC.selector),this.contexts.push(r),t=r.add(`onMatch`,t),r.queries=e,e)o===`all`?s=1:(a=mw.matchMedia(e[o]),a&&(iD.indexOf(r)<0&&iD.push(r),(i[o]=a.matches)&&(s=1),a.addListener?a.addListener(uD):a.addEventListener(`change`,uD)));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}(),pD={registerPlugin:function(){[...arguments].forEach(function(e){return nE(e)})},timeline:function(e){return new kE(e)},getTweensOf:function(e,t){return pw.getTweensOf(e,t)},getProperty:function(e,t,n,r){JC(e)&&(e=FT(e)[0]);var i=Rw(e||{}).get,a=n?Yw:Jw;return n===`native`&&(n=``),e&&(t?a((Mw[t]&&Mw[t].get||i)(e,t,n,r)):function(t,n,r){return a((Mw[t]&&Mw[t].get||i)(e,t,n,r))})},quickSetter:function(e,t,n){if(e=FT(e),e.length>1){var r=e.map(function(e){return _D.quickSetter(e,t,n)}),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}e=e[0]||{};var a=Mw[t],o=Rw(e),s=o.harness&&(o.harness.aliases||{})[t]||t,c=a?function(t){var r=new a;eE._pt=0,r.init(e,n?t+n:t,eE,0,[e]),r.render(1,r),eE._pt&&QE(1,eE)}: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=_D.to(e,Xw((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 pw.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=SE(e.ease,IC.ease)),$w(IC,e||{})},config:function(e){return $w(FC,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&&!Mw[e]&&!_w[e]&&Sw(t+` effect requires `+e+` plugin.`)}),Nw[t]=function(e,t,r){return n(FT(e),Xw(t||{},i),r)},a&&(kE.prototype[t]=function(e,n,r){return this.add(Nw[t](e,QC(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){hE[e]=SE(t)},parseEase:function(e,t){return arguments.length?SE(e,t):hE},getById:function(e){return pw.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n=new kE(e),r,i;for(n.smoothChildTiming=$C(e.smoothChildTiming),pw.remove(n),n._dp=0,n._time=n._tTime=pw._time,r=pw._first;r;)i=r._next,(t||!(!r._dur&&r instanceof UE&&r.vars.onComplete===r._targets[0]))&&gT(n,r,r._start-r._delay),r=i;return gT(pw,n,0),n},context:function(e,t){return e?new dD(e,t):zC},matchMedia:function(e){return new fD(e)},matchMediaRefresh:function(){return iD.forEach(function(e){var t=e.conditions,n,r;for(r in t)t[r]&&(t[r]=!1,n=1);n&&e.revert()})||uD()},addEventListener:function(e,t){var n=aD[e]||(aD[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=aD[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:KT,wrapYoyo:qT,distribute:RT,random:VT,snap:BT,normalize:WT,getUnit:AT,clamp:jT,splitColor:oE,toArray:FT,selector:IT,mapRange:YT,pipe:HT,unitize:UT,interpolate:XT,shuffle:LT},install:bw,effects:Nw,ticker:pE,updateRoot:kE.updateRoot,plugins:Mw,globalTimeline:pw,core:{PropTween:rD,globals:Cw,Tween:UE,Timeline:kE,Animation:OE,getCache:Rw,_removeLinkedListItem:iT,reverting:function(){return RC},context:function(e){return e&&zC&&(zC.data.push(e),e._ctx=zC),zC},suppressOverwrites:function(e){return LC=e}}};Bw(`to,from,fromTo,delayedCall,set,killTweensOf`,function(e){return pD[e]=UE[e]}),pE.add(kE.updateRoot),eE=pD.to({},{duration:0});var mD=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},hD=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=mD(a,r)),a&&a.modifier&&a.modifier(t[r],e,n[i],r))},gD=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,i;if(JC(n)&&(r={},Bw(n,function(e){return r[e]=1}),n=r),t){for(i in r={},n)r[i]=t(n[i]);n=r}hD(e,n)}}}},_D=pD.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;)RC?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)}},gD(`roundProps`,zT),gD(`modifiers`),gD(`snap`,BT))||pD;UE.version=kE.version=_D.version=`3.15.0`,yw=1,ew()&&mE(),hE.Power0,hE.Power1,hE.Power2,hE.Power3,hE.Power4,hE.Linear,hE.Quad,hE.Cubic,hE.Quart,hE.Quint,hE.Strong,hE.Elastic,hE.Back,hE.SteppedEase,hE.Bounce,hE.Sine,hE.Expo,hE.Circ;var vD,yD,bD,xD,SD,CD,wD,TD=function(){return typeof window<`u`},ED={},DD=180/Math.PI,OD=Math.PI/180,kD=Math.atan2,AD=1e8,jD=/([A-Z])/g,MD=/(left|right|width|margin|padding|x)/i,ND=/[\s,\(]\S/,PD={autoAlpha:`opacity,visibility`,scale:`scaleX,scaleY`,alpha:`opacity`},FD=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},ID=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)},LD=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)},RD=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)},zD=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},BD=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},VD=function(e,t){return t.set(t.t,t.p,e===1?t.e:t.b,t)},HD=function(e,t,n){return e.style[t]=n},UD=function(e,t,n){return e.style.setProperty(t,n)},WD=function(e,t,n){return e._gsap[t]=n},GD=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},KD=function(e,t,n,r,i){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},qD=function(e,t,n,r,i){var a=e._gsap;a[t]=n,a.renderTransform(i,a)},JD=`transform`,YD=JD+`Origin`,XD=function e(t,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(t in ED&&a){if(this.tfm=this.tfm||{},t!==`transform`)t=PD[t]||t,~t.indexOf(`,`)?t.split(`,`).forEach(function(e){return r.tfm[e]=hO(i,e)}):this.tfm[t]=o.x?o[t]:hO(i,t),t===YD&&(this.tfm.zOrigin=o.zOrigin);else return PD.transform.split(`,`).forEach(function(t){return e.call(r,t,n)});if(this.props.indexOf(JD)>=0)return;o.svg&&(this.svgo=i.getAttribute(`data-svg-origin`),this.props.push(YD,n,``)),t=JD}(a||n)&&this.props.push(t,n,a[t])},ZD=function(e){e.translate&&(e.removeProperty(`translate`),e.removeProperty(`scale`),e.removeProperty(`rotate`))},QD=function(){var e=this.props,t=this.target,n=t.style,r=t._gsap,i,a;for(i=0;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(jD,`-$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=wD(),(!i||!i.isStart)&&!n[JD]&&(ZD(n),r.zOrigin&&n[YD]&&(n[YD]+=` `+r.zOrigin+`px`,r.zOrigin=0,r.renderTransform()),r.uncache=1)}},$D=function(e,t){var n={target:e,props:[],revert:QD,save:XD};return e._gsap||_D.core.getCache(e),t&&e.style&&e.nodeType&&t.split(`,`).forEach(function(e){return n.save(e)}),n},eO,tO=function(e,t){var n=yD.createElementNS?yD.createElementNS((t||`http://www.w3.org/1999/xhtml`).replace(/^https/,`http`),e):yD.createElement(e);return n&&n.style?n:yD.createElement(e)},nO=function e(t,n,r){var i=getComputedStyle(t);return i[n]||i.getPropertyValue(n.replace(jD,`-$1`).toLowerCase())||i.getPropertyValue(n)||!r&&e(t,iO(n)||n,1)||``},rO=`O,Moz,ms,Ms,Webkit`.split(`,`),iO=function(e,t,n){var r=(t||SD).style,i=5;if(e in r&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);i--&&!(rO[i]+e in r););return i<0?null:(i===3?`ms`:i>=0?rO[i]:``)+e},aO=function(){TD()&&window.document&&(vD=window,yD=vD.document,bD=yD.documentElement,SD=tO(`div`)||{style:{}},tO(`div`),JD=iO(JD),YD=JD+`Origin`,SD.style.cssText=`border-width:0;line-height:0;position:absolute;padding:0`,eO=!!iO(`perspective`),wD=_D.core.reverting,xD=1)},oO=function(e){var t=e.ownerSVGElement,n=tO(`svg`,t&&t.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`),r=e.cloneNode(!0),i;r.style.display=`block`,n.appendChild(r),bD.appendChild(n);try{i=r.getBBox()}catch{}return n.removeChild(r),bD.removeChild(n),i},sO=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},cO=function(e){var t,n;try{t=e.getBBox()}catch{t=oO(e),n=1}return t&&(t.width||t.height)||n||(t=oO(e)),t&&!t.width&&!t.x&&!t.y?{x:+sO(e,[`x`,`cx`,`x1`])||0,y:+sO(e,[`y`,`cy`,`y1`])||0,width:0,height:0}:t},lO=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&cO(e))},uO=function(e,t){if(t){var n=e.style,r;t in ED&&t!==YD&&(t=JD),n.removeProperty?(r=t.substr(0,2),(r===`ms`||t.substr(0,6)===`webkit`)&&(t=`-`+t),n.removeProperty(r===`--`?t:t.replace(jD,`-$1`).toLowerCase())):n.removeAttribute(t)}},dO=function(e,t,n,r,i,a){var o=new rD(e._pt,t,n,0,1,a?VD:BD);return e._pt=o,o.b=r,o.e=i,e._props.push(n),o},fO={deg:1,rad:1,turn:1},pO={grid:1,flex:1},mO=function e(t,n,r,i){var a=parseFloat(r)||0,o=(r+``).trim().substr((a+``).length)||`px`,s=SD.style,c=MD.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||fO[i]||fO[o])return a;if(o!==`px`&&!f&&(a=e(t,n,r,`px`)),_=t.getCTM&&lO(t),(p||o===`%`)&&(ED[n]||~n.indexOf(`adius`)))return m=_?t.getBBox()[c?`width`:`height`]:t[u],Vw(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===yD||!h.appendChild)&&(h=yD.body),g=h._gsap,g&&p&&g.width&&c&&g.time===pE.time&&!g.uncache)return Vw(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:uO(t,n)}else (p||o===`%`)&&!pO[nO(h,`display`)]&&(s.position=nO(t,`position`)),h===t&&(s.position=`static`),h.appendChild(SD),m=SD[u],h.removeChild(SD),s.position=`absolute`;return c&&p&&(g=Rw(h),g.time=pE.time,g.width=h[u]),Vw(f?m*a/d:m&&a?d/m*a:0)},hO=function(e,t,n,r){var i;return xD||aO(),t in PD&&t!==`transform`&&(t=PD[t],~t.indexOf(`,`)&&(t=t.split(`,`)[0])),ED[t]&&t!==`transform`?(i=DO(e,r),i=t===`transformOrigin`?i.svg?i.origin:OO(nO(e,YD))+` `+i.zOrigin+`px`:i[t]):(i=e.style[t],(!i||i===`auto`||r||~(i+``).indexOf(`calc(`))&&(i=bO[t]&&bO[t](e,t,n)||nO(e,t)||zw(e,t)||+(t===`opacity`))),n&&!~(i+``).trim().indexOf(` `)?mO(e,t,i,n)+n:i},gO=function(e,t,n,r){if(!n||n===`none`){var i=iO(t,e,1),a=i&&nO(e,i,1);a&&a!==n?(t=i,n=a):t===`borderColor`&&(n=nO(e,`borderTopColor`))}var o=new rD(this._pt,e.style,t,0,1,ZE),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=nO(e,r.substring(4,r.indexOf(`)`)))),r===`auto`&&(m=e.style[t],e.style[t]=r,r=nO(e,t)||r,m?e.style[t]=m:uO(e,t)),l=[n,r],dE(l),n=l[0],r=l[1],d=n.match(cw)||[],b=r.match(cw)||[],b.length){for(;u=cw.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=Uw(f,h)+y),g=parseFloat(h),v=h.substr((g+``).length),s=cw.lastIndex-v.length,v||(v=v||FC.units[t]||y,s===r.length&&(r+=v,o.e+=v)),y!==v&&(f=mO(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`?VD:BD;return uw.test(r)&&(o.e=0),this._pt=o,o},_O={top:`0%`,bottom:`100%`,left:`0%`,right:`100%`,center:`50%`},vO=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]=_O[n]||n,t[1]=_O[r]||r,t.join(` `)},yO=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],ED[o]&&(s=1,o=o===`transformOrigin`?YD:JD),uO(n,o);s&&(uO(n,JD),a&&(a.svg&&n.removeAttribute(`transform`),r.scale=r.rotate=r.translate=`none`,DO(n,1),a.uncache=1,ZD(r)))}},bO={clearProps:function(e,t,n,r,i){if(i.data!==`isFromStart`){var a=e._pt=new rD(e._pt,t,n,0,0,yO);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},xO=[1,0,0,1,0,0],SO={},CO=function(e){return e===`matrix(1, 0, 0, 1, 0, 0)`||e===`none`||!e},wO=function(e){var t=nO(e,JD);return CO(t)?xO:t.substr(7).match(sw).map(Vw)},TO=function(e,t){var n=e._gsap||Rw(e),r=e.style,i=wO(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`?xO:i):(i===xO&&!e.offsetParent&&e!==bD&&!n.svg&&(s=r.display,r.display=`block`,a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,o=e.nextElementSibling,bD.appendChild(e)),i=wO(e),s?r.display=s:uO(e,`display`),c&&(o?a.insertBefore(e,o):a?a.appendChild(e):bD.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},EO=function(e,t,n,r,i,a){var o=e._gsap,s=i||TO(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!==xO&&(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=cO(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[YD]=`0px 0px`,a&&(dO(a,o,`xOrigin`,c,y),dO(a,o,`yOrigin`,l,b),dO(a,o,`xOffset`,u,o.xOffset),dO(a,o,`yOffset`,d,o.yOffset)),e.setAttribute(`data-svg-origin`,y+` `+b)},DO=function(e,t){var n=e._gsap||new DE(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=nO(e,YD)||`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,ee,N,te,P,F,ne,re,ie;return n.svg=!!(e.getCTM&&lO(e)),s.translate&&((s.translate!==`none`||s.scale!==`none`||s.rotate!==`none`)&&(r[JD]=(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[JD]===`none`?``:s[JD])),r.scale=r.rotate=r.translate=`none`),S=TO(e,n.svg),n.svg&&(n.uncache?(ee=e.getBBox(),c=n.xOrigin-ee.x+`px `+(n.yOrigin-ee.y)+`px`,M=``):M=!t&&e.getAttribute(`data-svg-origin`),EO(e,M||c,!!M||n.originIsAbsolute,n.smooth!==!1,S)),b=n.xOrigin||0,x=n.yOrigin||0,S!==xO&&(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?kD(D,E)*DD:0,_=O||k?kD(O,k)*DD+m:0,_&&(p*=Math.abs(Math.cos(_*OD))),n.svg&&(l-=b-(b*E+x*O),u-=x-(b*D+x*k))):(ie=S[6],ne=S[7],te=S[8],P=S[9],F=S[10],re=S[11],l=S[12],u=S[13],d=S[14],C=kD(ie,F),h=C*DD,C&&(w=Math.cos(-C),T=Math.sin(-C),M=A*w+te*T,ee=j*w+P*T,N=ie*w+F*T,te=A*-T+te*w,P=j*-T+P*w,F=ie*-T+F*w,re=ne*-T+re*w,A=M,j=ee,ie=N),C=kD(-O,F),g=C*DD,C&&(w=Math.cos(-C),T=Math.sin(-C),M=E*w-te*T,ee=D*w-P*T,N=O*w-F*T,re=k*T+re*w,E=M,D=ee,O=N),C=kD(D,E),m=C*DD,C&&(w=Math.cos(C),T=Math.sin(C),M=E*w+D*T,ee=A*w+j*T,D=D*w-E*T,j=j*w-A*T,E=M,A=ee),h&&Math.abs(h)+Math.abs(m)>359.9&&(h=m=0,g=180-g),f=Vw(Math.sqrt(E*E+D*D+O*O)),p=Vw(Math.sqrt(j*j+ie*ie)),C=kD(A,j),_=Math.abs(C)>2e-4?C*DD:0,y=re?1/(re<0?-re:re):0),n.svg&&(M=e.getAttribute(`transform`),n.forceCSS=e.setAttribute(`transform`,``)||!CO(nO(e,JD)),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=Vw(f),n.scaleY=Vw(p),n.rotation=Vw(m)+o,n.rotationX=Vw(h)+o,n.rotationY=Vw(g)+o,n.skewX=_+o,n.skewY=v+o,n.transformPerspective=y+a,(n.zOrigin=parseFloat(c.split(` `)[2])||!t&&n.zOrigin||0)&&(r[YD]=OO(c)),n.xOffset=n.yOffset=0,n.force3D=FC.force3D,n.renderTransform=n.svg?FO:eO?PO:AO,n.uncache=0,n},OO=function(e){return(e=e.split(` `))[0]+` `+e[1]},kO=function(e,t,n){var r=AT(t);return Vw(parseFloat(t)+parseFloat(mO(e,`x`,n+`px`,r)))+r},AO=function(e,t){t.z=`0px`,t.rotationY=t.rotationX=`0deg`,t.force3D=0,PO(e,t)},jO=`0deg`,MO=`0px`,NO=`) `,PO=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!==jO||l!==jO)){var x=parseFloat(l)*OD,S=Math.sin(x),C=Math.cos(x),w;x=parseFloat(u)*OD,w=Math.cos(x),a=kO(_,a,S*w*-v),o=kO(_,o,-Math.sin(x)*-v),s=kO(_,s,C*w*-v+v)}h!==MO&&(y+=`perspective(`+h+NO),(r||i)&&(y+=`translate(`+r+`%, `+i+`%) `),(b||a!==MO||o!==MO||s!==MO)&&(y+=s!==MO||b?`translate3d(`+a+`, `+o+`, `+s+`) `:`translate(`+a+`, `+o+NO),c!==jO&&(y+=`rotate(`+c+NO),l!==jO&&(y+=`rotateY(`+l+NO),u!==jO&&(y+=`rotateX(`+u+NO),(d!==jO||f!==jO)&&(y+=`skew(`+d+`, `+f+NO),(p!==1||m!==1)&&(y+=`scale(`+p+`, `+m+NO),_.style[JD]=y||`translate(0, 0)`},FO=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*=OD,c*=OD,b=Math.cos(s)*u,x=Math.sin(s)*u,S=Math.sin(s-c)*-d,C=Math.cos(s-c)*d,c&&(l*=OD,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=Vw(b),x=Vw(x),S=Vw(S),C=Vw(C)):(b=u,C=d,x=S=0),(v&&!~(a+``).indexOf(`px`)||y&&!~(o+``).indexOf(`px`))&&(v=mO(f,`x`,a,`px`),y=mO(f,`y`,o,`px`)),(p||m||h||g)&&(v=Vw(v+p-(p*b+m*S)+h),y=Vw(y+m-(p*x+m*C)+g)),(r||i)&&(w=f.getBBox(),v=Vw(v+r/100*w.width),y=Vw(y+i/100*w.height)),w=`matrix(`+b+`,`+x+`,`+S+`,`+C+`,`+v+`,`+y+`)`,f.setAttribute(`transform`,w),_&&(f.style[JD]=w)},IO=function(e,t,n,r,i){var a=360,o=JC(i),s=parseFloat(i)*(o&&~i.indexOf(`rad`)?DD: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*AD)%a-~~(s/a)*a:l===`ccw`&&s>0&&(s=(s-a*AD)%a-~~(s/a)*a)),e._pt=u=new rD(e._pt,t,n,r,s,ID),u.e=c,u.u=`deg`,e._props.push(n),u},LO=function(e,t){for(var n in t)e[n]=t[n];return e},RO=function(e,t,n){var r=LO({},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[JD]=t,o=DO(n,1),uO(n,JD),n.setAttribute(`transform`,c)):(c=getComputedStyle(n)[JD],a[JD]=t,o=DO(n,1),a[JD]=c),ED)c=r[s],l=o[s],c!==l&&i.indexOf(s)<0&&(f=AT(c),p=AT(l),u=f===p?parseFloat(c):mO(n,s,c,p),d=parseFloat(l),e._pt=new rD(e._pt,o,s,u,d-u,FD),e._pt.u=p||0,e._props.push(s));LO(o,r)};Bw(`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});bO[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 hO(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 zO={name:`css`,register:aO,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 xD||aO(),this.styles=this.styles||$D(e),C=this.styles.props,this.tween=n,t)if(m!==`autoRound`&&(l=t[m],!(Mw[m]&&NE(m,t,n,r,e,i)))){if(f=typeof l,p=bO[m],f===`function`&&(l=l.call(n,r,e,i),f=typeof l),f===`string`&&~l.indexOf(`random(`)&&(l=JT(l)),p)p(this,e,m,l,n)&&(S=1);else if(m.substr(0,2)===`--`)c=(getComputedStyle(e).getPropertyValue(m)+``).trim(),l+=``,lE.lastIndex=0,lE.test(c)||(h=AT(c),g=AT(l),g?h!==g&&(c=mO(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],JC(c)&&~c.indexOf(`random(`)&&(c=JT(c)),AT(c+``)||c===`auto`||(c+=FC.units[m]||AT(hO(e,m))||``),(c+``).charAt(1)===`=`&&(c=hO(e,m))):c=hO(e,m),d=parseFloat(c),_=f===`string`&&l.charAt(1)===`=`&&l.substr(0,2),_&&(l=l.substr(2)),u=parseFloat(l),m in PD&&(m===`autoAlpha`&&(d===1&&hO(e,`visibility`)===`hidden`&&u&&(d=0),C.push(`visibility`,0,o.visibility),dO(this,o,`visibility`,d?`inherit`:`hidden`,u?`inherit`:`hidden`,!u)),m!==`scale`&&m!==`transform`&&(m=PD[m],~m.indexOf(`,`)&&(m=m.split(`,`)[0]))),v=m in ED,v){if(this.styles.save(m),w=l,f===`string`&&l.substring(0,6)===`var(--`){if(l=nO(e,l.substring(4,l.indexOf(`)`))),l.substring(0,5)===`calc(`){var T=e.style.perspective;e.style.perspective=l,l=nO(e,`perspective`),T?e.style.perspective=T:uO(e,`perspective`)}u=parseFloat(l)}if(y||(b=e._gsap,b.renderTransform&&!t.parseTransform||DO(e,t.parseTransform),x=t.smoothOrigin!==!1&&b.smooth,y=this._pt=new rD(this._pt,o,JD,0,1,b.renderTransform,b,0,-1),y.dep=1),m===`scale`)this._pt=new rD(this._pt,b,`scaleY`,b.scaleY,(_?Uw(b.scaleY,_+u):u)-b.scaleY||0,FD),this._pt.u=0,a.push(`scaleY`,m),m+=`X`;else if(m===`transformOrigin`){C.push(YD,0,o[YD]),l=vO(l),b.svg?EO(e,l,0,x,0,this):(g=parseFloat(l.split(` `)[2])||0,g!==b.zOrigin&&dO(this,b,`zOrigin`,b.zOrigin,g),dO(this,o,m,OO(c),OO(l)));continue}else if(m===`svgOrigin`){EO(e,l,1,x,0,this);continue}else if(m in SO){IO(this,b,m,d,_?Uw(d,_+l):l);continue}else if(m===`smoothOrigin`){dO(this,b,`smooth`,b.smooth,l);continue}else if(m===`force3D`){b[m]=l;continue}else if(m===`transform`){RO(this,l,e);continue}}else m in o||(m=iO(m)||m);if(v||(u||u===0)&&(d||d===0)&&!ND.test(l)&&m in o)h=(c+``).substr((d+``).length),u||=0,g=AT(l)||(m in FC.units?FC.units[m]:h),h!==g&&(d=mO(e,m,c,g)),this._pt=new rD(this._pt,v?b:o,m,d,(_?Uw(d,_+u):u)-d,!v&&(g===`px`||m===`zIndex`)&&t.autoRound!==!1?zD:FD),this._pt.u=g||0,v&&w!==l?(this._pt.b=c,this._pt.e=w,this._pt.r=RD):h!==g&&g!==`%`&&(this._pt.b=c,this._pt.r=LD);else if(m in o)gO.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`){xw(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&&nD(this)},render:function(e,t){if(t.tween._time||!wD())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:hO,aliases:PD,getSetter:function(e,t,n){var r=PD[t];return r&&r.indexOf(`,`)<0&&(t=r),t in ED&&t!==YD&&(e._gsap.x||hO(e,`x`))?n&&CD===n?t===`scale`?GD:WD:(CD=n||{})&&(t===`scale`?KD:qD):e.style&&!ZC(e.style[t])?HD:~t.indexOf(`-`)?UD:JE(e,t)},core:{_removeProperty:uO,_getMatrix:TO}};_D.utils.checkPrefix=iO,_D.core.getStyleSaver=$D,(function(e,t,n,r){var i=Bw(e+`,`+t+`,`+n,function(e){ED[e]=1});Bw(t,function(e){FC.units[e]=`deg`,SO[e]=1}),PD[i[13]]=e+`,`+t,Bw(r,function(e){var t=e.split(`:`);PD[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`),Bw(`x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective`,function(e){FC.units[e]=`px`}),_D.registerPlugin(zO);var BO=_D.registerPlugin(zO)||_D;BO.core.Tween;var VO=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),HO=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),UO=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),WO=e=>{let t=UO(e);return t.charAt(0).toUpperCase()+t.slice(1)},GO={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},KO=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},qO=(0,v.createContext)({}),JO=()=>(0,v.useContext)(qO),YO=(0,v.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=JO()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,v.createElement)(`svg`,{ref:c,...GO,width:t??l??GO.width,height:t??l??GO.height,stroke:e??f,strokeWidth:m,className:VO(`lucide`,p,i),...!a&&!KO(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,v.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),XO=(e,t)=>{let n=(0,v.forwardRef)(({className:n,...r},i)=>(0,v.createElement)(YO,{ref:i,iconNode:t,className:VO(`lucide-${HO(WO(e))}`,`lucide-${e}`,n),...r}));return n.displayName=WO(e),n},ZO=XO(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),QO=XO(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),$O=XO(`eye-off`,[[`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`}]]),ek=XO(`eye`,[[`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`}]]),tk=XO(`git-compare`,[[`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`}]]),nk=XO(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),rk=XO(`key-round`,[[`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`}]]),ik=XO(`log-in`,[[`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`}]]),ak=XO(`pencil`,[[`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`}]]),ok=XO(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),sk=XO(`rotate-ccw`,[[`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`}]]),ck=XO(`save`,[[`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`}]]),lk=XO(`trash-2`,[[`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`}]]),uk=XO(`triangle-alert`,[[`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`}]]);function dk(e,t){return function(){return e.apply(t,arguments)}}var{toString:fk}=Object.prototype,{getPrototypeOf:pk}=Object,{iterator:mk,toStringTag:hk}=Symbol,gk=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),_k=(e,t)=>{let n=e,r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),gk(n,t))return!0;n=pk(n)}return!1},vk=(e,t)=>e!=null&&_k(e,t)?e[t]:void 0,yk=(e=>t=>{let n=fk.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),bk=e=>(e=e.toLowerCase(),t=>yk(t)===e),xk=e=>t=>typeof t===e,{isArray:Sk}=Array,Ck=xk(`undefined`);function wk(e){return e!==null&&!Ck(e)&&e.constructor!==null&&!Ck(e.constructor)&&Ok(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var Tk=bk(`ArrayBuffer`);function Ek(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Tk(e.buffer),t}var Dk=xk(`string`),Ok=xk(`function`),kk=xk(`number`),Ak=e=>typeof e==`object`&&!!e,jk=e=>e===!0||e===!1,Mk=e=>{if(!Ak(e))return!1;let t=pk(e);return(t===null||t===Object.prototype||pk(t)===null)&&!_k(e,hk)&&!_k(e,mk)},Nk=e=>{if(!Ak(e)||wk(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Pk=bk(`Date`),Fk=bk(`File`),Ik=e=>!!(e&&e.uri!==void 0),Lk=e=>e&&e.getParts!==void 0,Rk=bk(`Blob`),zk=bk(`FileList`),Bk=e=>Ak(e)&&Ok(e.pipe);function Vk(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var Hk=Vk(),Uk=Hk.FormData===void 0?void 0:Hk.FormData,Wk=e=>{if(!e)return!1;if(Uk&&e instanceof Uk)return!0;let t=pk(e);if(!t||t===Object.prototype||!Ok(e.append))return!1;let n=yk(e);return n===`formdata`||n===`object`&&Ok(e.toString)&&e.toString()===`[object FormData]`},Gk=bk(`URLSearchParams`),[Kk,qk,Jk,Yk]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(bk),Xk=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function Zk(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),Sk(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(wk(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 Qk(e,t){if(wk(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 $k=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,eA=e=>!Ck(e)&&e!==$k;function tA(...e){let{caseless:t,skipUndefined:n}=eA(this)&&this||{},r={},i=(e,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=t&&typeof i==`string`&&Qk(r,i)||i,o=gk(r,a)?r[a]:void 0;Mk(o)&&Mk(e)?r[a]=tA(o,e):Mk(e)?r[a]=tA({},e):Sk(e)?r[a]=e.slice():(!n||!Ck(e))&&(r[a]=e)};for(let t=0,n=e.length;t<n;t++){let n=e[t];if(!n||wk(n)||(Zk(n,i),typeof n!=`object`||Sk(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){let t=r[e];pA.call(n,t)&&i(n[t],t)}}return r}var nA=(e,t,n,{allOwnKeys:r}={})=>(Zk(t,(t,r)=>{n&&Ok(t)?Object.defineProperty(e,r,{__proto__:null,value:dk(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),rA=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),iA=(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)},aA=(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&&pk(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},oA=(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},sA=e=>{if(!e)return null;if(Sk(e))return e;let t=e.length;if(!kk(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},cA=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&pk(Uint8Array)),lA=(e,t)=>{let n=(e&&e[mk]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},uA=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},dA=bk(`HTMLFormElement`),fA=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),{propertyIsEnumerable:pA}=Object.prototype,mA=bk(`RegExp`),hA=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};Zk(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},gA=e=>{hA(e,(t,n)=>{if(Ok(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];if(Ok(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},_A=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return Sk(e)?r(e):r(String(e).split(t)),n},vA=()=>{},yA=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function bA(e){return!!(e&&Ok(e.append)&&e[hk]===`FormData`&&e[mk])}var xA=e=>{let t=new WeakSet,n=e=>{if(Ak(e)){if(t.has(e))return;if(wk(e))return e;if(!(`toJSON`in e)){t.add(e);let r=Sk(e)?[]:{};return Zk(e,(e,t)=>{let i=n(e);!Ck(i)&&(r[t]=i)}),t.delete(e),r}}return e};return n(e)},SA=bk(`AsyncFunction`),CA=e=>e&&(Ak(e)||Ok(e))&&Ok(e.then)&&Ok(e.catch),wA=((e,t)=>e?setImmediate:t?((e,t)=>($k.addEventListener(`message`,({source:n,data:r})=>{n===$k&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),$k.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,Ok($k.postMessage)),TA=typeof queueMicrotask<`u`?queueMicrotask.bind($k):typeof process<`u`&&process.nextTick||wA,EA=e=>e!=null&&Ok(e[mk]),X={isArray:Sk,isArrayBuffer:Tk,isBuffer:wk,isFormData:Wk,isArrayBufferView:Ek,isString:Dk,isNumber:kk,isBoolean:jk,isObject:Ak,isPlainObject:Mk,isEmptyObject:Nk,isReadableStream:Kk,isRequest:qk,isResponse:Jk,isHeaders:Yk,isUndefined:Ck,isDate:Pk,isFile:Fk,isReactNativeBlob:Ik,isReactNative:Lk,isBlob:Rk,isRegExp:mA,isFunction:Ok,isStream:Bk,isURLSearchParams:Gk,isTypedArray:cA,isFileList:zk,forEach:Zk,merge:tA,extend:nA,trim:Xk,stripBOM:rA,inherits:iA,toFlatObject:aA,kindOf:yk,kindOfTest:bk,endsWith:oA,toArray:sA,forEachEntry:lA,matchAll:uA,isHTMLForm:dA,hasOwnProperty:gk,hasOwnProp:gk,hasOwnInPrototypeChain:_k,getSafeProp:vk,reduceDescriptors:hA,freezeMethods:gA,toObjectSet:_A,toCamelCase:fA,noop:vA,toFiniteNumber:yA,findKey:Qk,global:$k,isContextDefined:eA,isSpecCompliantForm:bA,toJSONObject:xA,isAsyncFn:SA,isThenable:CA,setImmediate:wA,asap:TA,isIterable:EA,isSafeIterable:e=>e!=null&&_k(e,mk)&&EA(e)},DA=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`]),OA=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(),!(!n||t[n]&&DA[n])&&(n===`set-cookie`?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+`, `+r:r)}),t};function kA(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 AA=RegExp(`[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+`,`g`),jA=RegExp(`[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+`,`g`);function MA(e,t){return X.isArray(e)?e.map(e=>MA(e,t)):kA(String(e).replace(t,``))}var NA=e=>MA(e,AA),PA=e=>MA(e,jA);function FA(e){let t=Object.create(null);return X.forEach(e.toJSON(),(e,n)=>{t[n]=PA(e)}),t}var IA=Symbol(`internals`);function LA(e){return e&&String(e).trim().toLowerCase()}function RA(e){return e===!1||e==null?e:X.isArray(e)?e.map(RA):NA(String(e))}function zA(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 BA=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function VA(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 HA(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function UA(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 WA=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=LA(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]=RA(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())&&!BA(e))a(OA(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=LA(e),e){let n=X.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return zA(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=LA(e),e){let n=X.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||VA(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=LA(e),e){let i=X.findKey(n,e);i&&(!t||VA(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||VA(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]=RA(r),delete t[i];return}let o=e?HA(i):String(i).trim();o!==i&&delete t[i],t[o]=RA(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(){return this.get(`set-cookie`)||[]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[IA]=this[IA]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=LA(e);t[r]||(UA(n,e),t[r]=!0)}return X.isArray(e)?e.forEach(r):r(e),this}};WA.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),X.reduceDescriptors(WA.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),X.freezeMethods(WA);var GA=`[REDACTED ****]`;function KA(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 qA(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 WA&&(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)&&KA(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?GA:i(a);X.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}var Z=class e extends Error{static from(t,n,r,i,a,o){let s=new e(t.message,n||t.code,r,i,a);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),o&&Object.assign(s,o),s}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?qA(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 JA(e){return X.isPlainObject(e)||X.isArray(e)}function YA(e){return X.endsWith(e,`[]`)?e.slice(0,-2):e}function XA(e,t,n){return e?e.concat(t).map(function(e,t){return e=YA(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function ZA(e){return X.isArray(e)&&!e.some(JA)}var QA=X.toFlatObject(X,{},null,function(e){return/^is[A-Z]/.test(e)});function $A(e,t,n){if(!X.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=X.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!X.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||m,a=n.dots,o=n.indexes,s=n.Blob||typeof Blob<`u`&&Blob,c=n.maxDepth===void 0?100:n.maxDepth,l=s&&X.isSpecCompliantForm(t),u=[];if(!X.isFunction(i))throw TypeError(`visitor must be a function`);function d(e){if(e===null)return``;if(X.isDate(e))return e.toISOString();if(X.isBoolean(e))return e.toString();if(!l&&X.isBlob(e))throw new Z(`Blob is not supported. Use a Buffer instead.`);return X.isArrayBuffer(e)||X.isTypedArray(e)?l&&typeof Blob==`function`?new Blob([e]):Buffer.from(e):e}function f(e){if(e>c)throw new Z(`Object is too deeply nested (`+e+` levels). Max depth: `+c,Z.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(e,t){if(c===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),f(t+n.length-1),r})}function m(e,n,i){let s=e;if(X.isReactNative(t)&&X.isReactNativeBlob(e))return t.append(XA(i,n,a),d(e)),!1;if(e&&!i&&typeof e==`object`){if(X.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=p(e,1);else if(X.isArray(e)&&ZA(e)||(X.isFileList(e)||X.endsWith(n,`[]`))&&(s=X.toArray(e)))return n=YA(n),s.forEach(function(e,r){!(X.isUndefined(e)||e===null)&&t.append(o===!0?XA([n],r,a):o===null?n:n+`[]`,d(e))}),!1}return JA(e)?!0:(t.append(XA(i,n,a),d(e)),!1)}let h=Object.assign(QA,{defaultVisitor:m,convertValue:d,isVisitable:JA});function g(e,n,r=0){if(!X.isUndefined(e)){if(f(r),u.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));u.push(e),X.forEach(e,function(e,a){(!(X.isUndefined(e)||e===null)&&i.call(t,e,X.isString(a)?a.trim():a,n,h))===!0&&g(e,n?n.concat(a):[a],r+1)}),u.pop()}}if(!X.isObject(e))throw TypeError(`data must be an object`);return g(e),t}function ej(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function tj(e,t){this._pairs=[],e&&$A(e,this,t)}var nj=tj.prototype;nj.append=function(e,t){this._pairs.push([e,t])},nj.toString=function(e){let t=e?function(t){return e.call(this,t,ej)}:ej;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function rj(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function ij(e,t,n){if(!t)return e;let r=X.isFunction(n)?{serialize:n}:n,i=X.getSafeProp(r,`encode`)||rj,a=X.getSafeProp(r,`serialize`),o;if(o=a?a(t,r):X.isURLSearchParams(t)?t.toString():new tj(t,r).toString(i),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var aj=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&=[]}forEach(e){X.forEach(this.handlers,function(t){t!==null&&e(t)})}},oj={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},sj={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:tj,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},cj=s({hasBrowserEnv:()=>lj,hasStandardBrowserEnv:()=>dj,hasStandardBrowserWebWorkerEnv:()=>fj,navigator:()=>uj,origin:()=>pj}),lj=typeof window<`u`&&typeof document<`u`,uj=typeof navigator==`object`&&navigator||void 0,dj=lj&&(!uj||[`ReactNative`,`NativeScript`,`NS`].indexOf(uj.product)<0),fj=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,pj=lj&&window.location.href||`http://localhost`,mj={...cj,...sj};function hj(e,t){return $A(e,new mj.classes.URLSearchParams,{visitor:function(e,t,n,r){return mj.isNode&&X.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}var gj=100;function _j(e){if(e>gj)throw new Z(`FormData field is too deeply nested (`+e+` levels). Max depth: `+gj,Z.ERR_FORM_DATA_DEPTH_EXCEEDED)}function vj(e){let t=[],n=/\w+|\[(\w*)]/g,r;for(;(r=n.exec(e))!==null;)_j(t.length),t.push(r[0]===`[]`?``:r[1]||r[0]);return t}function yj(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 bj(e){function t(e,n,r,i){_j(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]=yj(r[a])),!o)}if(X.isFormData(e)&&X.isFunction(e.entries)){let n={};return X.forEachEntry(e,(e,r)=>{t(vj(e),r,n,0)}),n}return null}var xj=(e,t)=>e!=null&&X.hasOwnProp(e,t)?e[t]:void 0;function Sj(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 Cj={transitional:oj,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(bj(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=xj(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return hj(e,t).toString();if((a=X.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=xj(this,`env`),r=n&&n.FormData;return $A(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),Sj(e)):e}],transformResponse:[function(e){let t=xj(this,`transitional`)||Cj.transitional,n=t&&t.forcedJSONParsing,r=xj(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,xj(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?Z.from(e,Z.ERR_BAD_RESPONSE,this,null,xj(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:mj.classes.FormData,Blob:mj.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};X.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`],e=>{Cj.headers[e]={}});function wj(e,t){let n=this||Cj,r=t||n,i=WA.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 Tj(e){return!!(e&&e.__CANCEL__)}var Ej=class extends Z{constructor(e,t,n){super(e??`canceled`,Z.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function Dj(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))}function Oj(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||``}function kj(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 Aj(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)]}var jj=(e,t,n=3)=>{let r=0,i=kj(50,250);return Aj(n=>{if(!n||typeof n.loaded!=`number`)return;let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=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)},Mj=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Nj=e=>(...t)=>X.asap(()=>e(...t)),Pj=mj.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,mj.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(mj.origin),mj.navigator&&/(msie|trident)/i.test(mj.navigator.userAgent)):()=>!0,Fj=mj.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)return decodeURIComponent(r.slice(i+1))}return null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function Ij(e){return typeof e==`string`?/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e):!1}function Lj(e,t){return t?e.replace(/\/?\/$/,``)+`/`+t.replace(/^\/+/,``):e}var Rj=/^https?:(?!\/\/)/i,zj=/[\t\n\r]/g;function Bj(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function Vj(e){return Bj(e).replace(zj,``)}function Hj(e,t){if(typeof e==`string`&&Rj.test(Vj(e)))throw new Z(`Invalid URL: missing "//" after protocol`,Z.ERR_INVALID_URL,t)}function Uj(e,t,n,r){Hj(t,r);let i=!Ij(t);return e&&(i||n===!1)?(Hj(e,r),Lj(e,t)):t}var Wj=e=>e instanceof WA?{...e}:e;function Gj(e,t){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,timeoutMessage: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(Wj(e),Wj(t),n,!0)};return X.forEach(Object.keys({...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 Kj=[`content-type`,`content-length`];function qj(e,t,n){if(n!==`content-only`){e.set(t);return}Object.entries(t).forEach(([t,n])=>{Kj.includes(t.toLowerCase())&&e.set(t,n)})}var Jj=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function Yj(e){let t=Gj({},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=WA.from(s),t.url=ij(Uj(l,d,u,t),n(`params`),n(`paramsSerializer`)),c){let e=X.getSafeProp(c,`username`)||``,t=X.getSafeProp(c,`password`)||``;s.set(`Authorization`,`Basic `+btoa(e+`:`+(t?Jj(t):``)))}if(X.isFormData(r)&&(mj.hasStandardBrowserEnv||mj.hasStandardBrowserWebWorkerEnv||X.isReactNative(r)?s.setContentType(void 0):X.isFunction(r.getHeaders)&&qj(s,r.getHeaders(),n(`formDataHeaderPolicy`))),mj.hasStandardBrowserEnv&&(X.isFunction(i)&&(i=i(t)),i===!0||i==null&&Pj(t.url))){let e=a&&o&&Fj.read(o);e&&s.set(a,e)}return t}var Xj=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=Yj(e),i=r.data,a=WA.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p;function m(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function g(){if(!h)return;let r=WA.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());Dj(function(e){t(e),m()},function(e){n(e),m()},{data:!o||o===`text`||o===`json`?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}`onloadend`in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.startsWith(`file:`))||setTimeout(g)},h.onabort=function(){h&&=(n(new Z(`Request aborted`,Z.ECONNABORTED,e,h)),m(),null)},h.onerror=function(t){let r=new Z(t&&t.message?t.message:`Network Error`,Z.ERR_NETWORK,e,h);r.event=t||null,n(r),m(),h=null},h.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||oj;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Z(t,i.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,e,h)),m(),h=null},i===void 0&&a.setContentType(null),`setRequestHeader`in h&&X.forEach(FA(a),function(e,t){h.setRequestHeader(t,e)}),X.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),o&&o!==`json`&&(h.responseType=r.responseType),c&&([d,p]=jj(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=jj(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new Ej(null,e,h):t),h.abort(),m(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let _=Oj(r.url);if(_&&!mj.protocols.includes(_)){n(new Z(`Unsupported protocol `+_+`:`,Z.ERR_BAD_REQUEST,e));return}h.send(i||null)})},Zj=(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 Ej(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=>e.addEventListener(`abort`,i));let{signal:s}=n;return s.unsubscribe=()=>X.asap(o),s},Qj=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},$j=async function*(e,t){for await(let n of eM(e))yield*Qj(n,t)},eM=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()}},tM=(e,t,n,r)=>{let i=$j(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})},nM=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,rM=(e,t,n)=>t+2<n&&nM(e.charCodeAt(t+1))&&nM(e.charCodeAt(t+2));function iM(e){if(!e||typeof e!=`string`||!e.startsWith(`data:`))return 0;let t=e.indexOf(`,`);if(t<0)return 0;let n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let e=r.length,t=r.length;for(let n=0;n<t;n++)if(r.charCodeAt(n)===37&&n+2<t){let t=r.charCodeAt(n+1),i=r.charCodeAt(n+2);nM(t)&&nM(i)&&(e-=2,n+=2)}let n=0,i=t-1,a=e=>e>=2&&r.charCodeAt(e-2)===37&&r.charCodeAt(e-1)===51&&(r.charCodeAt(e)===68||r.charCodeAt(e)===100);i>=0&&(r.charCodeAt(i)===61?(n++,i--):a(i)&&(n++,i-=3)),n===1&&i>=0&&(r.charCodeAt(i)===61||a(i))&&n++;let o=Math.floor(e/4)*3-(n||0);return o>0?o:0}let i=0;for(let e=0,t=r.length;e<t;e++){let n=r.charCodeAt(e);if(n===37&&rM(r,e,t))i+=1,e+=2;else if(n<128)i+=1;else if(n<2048)i+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=r.charCodeAt(e+1);t>=56320&&t<=57343?(i+=4,e++):i+=3}else i+=3}return i}var aM=`1.18.0`,oM=64*1024,{isFunction:sM}=X,cM=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),lM=e=>{if(!X.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},uM=(e,...t)=>{try{return!!e(...t)}catch{return!1}},dM=e=>{let t=e.indexOf(`://`),n=e;return t!==-1&&(n=n.slice(t+3)),n.includes(`@`)||n.includes(`:`)},fM=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?sM(i):typeof fetch==`function`,c=sM(a),l=sM(o);if(!s)return!1;let u=s&&sM(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&&uM(()=>{let e=!1,t=new a(mj.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&&uM(()=>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(mj.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}=Yj(e),E=X.isNumber(w)&&w>-1,D=X.isNumber(T)&&T>-1,O=t=>X.hasOwnProp(e,t)?e[t]:void 0,k=i||fetch;b=b?(b+``).toLowerCase():`text`;let A=Zj([l,d&&d.toAbortSignal()],_),j=null,M=A&&A.unsubscribe&&(()=>{A.unsubscribe()}),ee,N=null,te=()=>new Z(`Request body larger than maxBodyLength limit`,Z.ERR_BAD_REQUEST,e,j);try{let i,l=O(`auth`);if(l&&(i={username:X.getSafeProp(l,`username`)||``,password:X.getSafeProp(l,`password`)||``}),dM(t)){let e=new URL(t,mj.origin);!i&&(e.username||e.password)&&(i={username:lM(e.username),password:lM(e.password)}),(e.username||e.password)&&(e.username=``,e.password=``,t=e.href)}if(i&&(x.delete(`authorization`),x.set(`Authorization`,`Basic `+btoa(cM((i.username||``)+`:`+(i.password||``))))),E&&typeof t==`string`&&t.startsWith(`data:`)&&iM(t)>w)throw new Z(`maxContentLength size of `+w+` exceeded`,Z.ERR_BAD_RESPONSE,e,j);if(D&&n!==`get`&&n!==`head`){let e=await h(s);if(typeof e==`number`&&isFinite(e)&&(ee=e,e>T))throw te()}let d=D&&(X.isReadableStream(s)||X.isStream(s)),_=(e,t,n)=>tM(e,oM,e=>{if(D&&e>T)throw N=te();t&&t(e)},n);if(f&&n!==`get`&&n!==`head`&&(y||d)){if(ee??=await g(x,s),ee!==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&&Mj(ee,jj(Nj(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,j);X.isString(S)||(S=S?`include`:`omit`);let P=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/`+aM,!1);let F={...C,signal:A,method:n.toUpperCase(),headers:FA(x.normalize()),body:s,duplex:`half`,credentials:P?S:void 0};j=c&&new a(t,F);let ne=await(c?k(j,C):k(t,F)),re=WA.from(ne.headers);if(E){let t=X.toFiniteNumber(re.getContentLength());if(t!=null&&t>w)throw new Z(`maxContentLength size of `+w+` exceeded`,Z.ERR_BAD_RESPONSE,e,j)}let ie=p&&(b===`stream`||b===`response`);if(p&&ne.body&&(v||E||ie&&M)){let t={};[`status`,`statusText`,`headers`].forEach(e=>{t[e]=ne[e]});let n=X.toFiniteNumber(re.getContentLength()),[r,i]=v&&Mj(n,jj(Nj(v),!0))||[],a=0;ne=new o(tM(ne.body,oM,t=>{if(E&&(a=t,a>w))throw new Z(`maxContentLength size of `+w+` exceeded`,Z.ERR_BAD_RESPONSE,e,j);r&&r(t)},()=>{i&&i(),M&&M()}),t)}b||=`text`;let ae=await m[X.findKey(m,b)||`text`](ne,e);if(E&&!p&&!ie){let t;if(ae!=null&&(typeof ae.byteLength==`number`?t=ae.byteLength:typeof ae.size==`number`?t=ae.size:typeof ae==`string`&&(t=typeof r==`function`?new r().encode(ae).byteLength:ae.length)),typeof t==`number`&&t>w)throw new Z(`maxContentLength size of `+w+` exceeded`,Z.ERR_BAD_RESPONSE,e,j)}return!ie&&M&&M(),await new Promise((t,n)=>{Dj(t,n,{data:ae,headers:WA.from(ne.headers),status:ne.status,statusText:ne.statusText,config:e,request:j})})}catch(t){if(M&&M(),A&&A.aborted&&A.reason instanceof Z){let n=A.reason;throw n.config=e,j&&(n.request=j),t!==n&&(n.cause=t),n}throw N?(j&&!N.request&&(N.request=j),N):t instanceof Z?(j&&!t.request&&(t.request=j),t):t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)?Object.assign(new Z(`Network Error`,Z.ERR_NETWORK,e,j,t&&t.response),{cause:t.cause||t}):Z.from(t,t&&t.code,e,j,t&&t.response)}}},pM=new Map,mM=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=pM;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:fM(t)),l=c;return c};mM();var hM={http:null,xhr:Xj,fetch:{get:mM}};X.forEach(hM,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var gM=e=>`- ${e}`,_M=e=>X.isFunction(e)||e===null||e===!1;function vM(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,!_M(r)&&(i=hM[(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(gM).join(`
26
- `):` `+gM(e[0]):`as no adapter specified`),`ERR_NOT_SUPPORT`)}return i}var yM={getAdapter:vM,adapters:hM};function bM(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ej(null,e)}function xM(e){return bM(e),e.headers=WA.from(e.headers),e.data=wj.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),yM.getAdapter(e.adapter||Cj.adapter,e)(e).then(function(t){bM(e),e.response=t;try{t.data=wj.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=WA.from(t.headers),t},function(t){if(!Tj(t)&&(bM(e),t&&t.response)){e.response=t.response;try{t.response.data=wj.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=WA.from(t.response.headers)}return Promise.reject(t)})}var SM={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{SM[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var CM={};SM.transitional=function(e,t,n){function r(e,t){return`[Axios v`+aM+`] 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&&!CM[i]&&(CM[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):!0}},SM.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function wM(e,t,n){if(typeof e!=`object`)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 TM={assertOptions:wM,validators:SM},EM=TM.validators,DM=class{constructor(e){this.defaults=e||{},this.interceptors={request:new aj,response:new aj}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=(()=>{if(!t.stack)return``;let e=t.stack.indexOf(`
22
+ Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=Rx(),d;if(t){let e=typeof t==`string`?Ob(t):t;Sb(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})):jb(e,{pathname:p});Cb(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),Cb(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=Qx(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:ox([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:ox([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(Ox.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function Kx(){let e=sS(),t=fx(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 qx=v.createElement(Kx,null),Jx=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=Fx(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:v.createElement(kx.Provider,{value:this.props.routeContext},v.createElement(Ax.Provider,{value:e,children:this.props.component}));return this.context?v.createElement(Xx,{error:e},t):t}};Jx.contextType=Sx;var Yx=new WeakMap;function Xx({children:e,error:t}){let{basename:n}=v.useContext(Dx);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Px(t.digest);if(e){let r=Yx.get(t);if(r)throw r;let i=hx(e.location,n),a=i.absoluteURL||i.to;if(yx(a))throw Error(`Invalid redirect location`);if(mx&&!Yx.get(t))if(i.isExternal||e.reloadDocument)window.location.href=a;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw Yx.set(t,n),n}return v.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${a}`})}}return e}function Zx({routeContext:e,match:t,children:n}){let r=v.useContext(bx);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),v.createElement(kx.Provider,{value:e},n)}function Qx(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);Sb(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:px(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||qx,o&&(s<0&&c===0?(uS(`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(Zx,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?v.createElement(Jx,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function $x(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function eS(e){let t=v.useContext(bx);return Sb(t,$x(e)),t}function tS(e){let t=v.useContext(xx);return Sb(t,$x(e)),t}function nS(e){let t=v.useContext(kx);return Sb(t,$x(e)),t}function rS(e){let t=nS(e),n=t.matches[t.matches.length-1];return Sb(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function iS(){return rS(`useRouteId`)}function aS(){let e=tS(`useNavigation`);return v.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}function oS(){let{matches:e,loaderData:t}=tS(`useMatches`);return v.useMemo(()=>e.map(e=>Nb(e,t)),[e,t])}function sS(){let e=v.useContext(Ax),t=tS(`useRouteError`),n=rS(`useRouteError`);return e===void 0?t.errors?.[n]:e}function cS(){let{router:e}=eS(`useNavigate`),t=rS(`useNavigate`),n=v.useRef(!1);return Bx(()=>{n.current=!0}),v.useCallback(async(r,i={})=>{Cb(n.current,zx),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var lS={};function uS(e,t,n){!t&&!lS[e]&&(lS[e]=!0,Cb(!1,n))}v.memo(dS);function dS({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return Gx(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function fS({to:e,replace:t,state:n,relative:r}){Sb(Lx(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i}=v.useContext(Dx);Cb(!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:a}=v.useContext(kx),{pathname:o}=Rx(),s=Vx(),c=ix(e,rx(a),o,r===`path`),l=JSON.stringify(c);return v.useEffect(()=>{s(JSON.parse(l),{replace:t,state:n,relative:r})},[s,l,r,t,n]),null}function pS(e){Sb(!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 mS({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){Sb(!Lx(),`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=Ob(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=v.useMemo(()=>{let e=Qb(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 Cb(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(Dx.Provider,{value:c},v.createElement(Ox.Provider,{children:t,value:h}))}function hS({children:e,location:t}){return Wx(gS(e),t)}v.Component;function gS(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,gS(e.props.children,i));return}Sb(e.type===pS,`[${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>`),Sb(!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=gS(e.props.children,i)),n.push(a)}),n}var _S=`get`,vS=`application/x-www-form-urlencoded`;function yS(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function bS(e){return yS(e)&&e.tagName.toLowerCase()===`button`}function xS(e){return yS(e)&&e.tagName.toLowerCase()===`form`}function SS(e){return yS(e)&&e.tagName.toLowerCase()===`input`}function CS(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function wS(e,t){return e.button===0&&(!t||t===`_self`)&&!CS(e)}function TS(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 ES(e,t){let n=TS(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var DS=null;function OS(){if(DS===null)try{new FormData(document.createElement(`form`),0),DS=!1}catch{DS=!0}return DS}var kS=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function AS(e){return e!=null&&!kS.has(e)?(Cb(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${vS}"`),null):e}function jS(e,t){let n,r,i,a,o;if(xS(e)){let o=e.getAttribute(`action`);r=o?Qb(o,t):null,n=e.getAttribute(`method`)||_S,i=AS(e.getAttribute(`enctype`))||vS,a=new FormData(e)}else if(bS(e)||SS(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?Qb(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||_S,i=AS(e.getAttribute(`formenctype`))||AS(o.getAttribute(`enctype`))||vS,a=new FormData(o,e),!OS()){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(yS(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=_S,r=null,i=vS,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`);var MS={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},NS=/[&><\u2028\u2029]/g;function PS(e){return e.replace(NS,e=>MS[e])}function FS(e,t){if(e===!1||e==null)throw Error(t)}function IS(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n?i.pathname.endsWith(`/`)?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname===`/`?i.pathname=`_root.${r}`:t&&Qb(i.pathname,t)===`/`?i.pathname=`${sx(t)}/_root.${r}`:i.pathname=`${sx(i.pathname)}.${r}`,i}async function LS(e,t){if(e.id in t)return t[e.id];try{let n=await hb(()=>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 RS(e){return e!=null&&typeof e.page==`string`}function zS(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 BS(e,t,n){return GS((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await LS(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(zS).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function VS(e,t,n,r,i,a){let o=(e,t)=>n[t]?e.route.id!==n[t].route.id:!0,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 HS(e,t,{includeHydrateFallback:n}={}){return US(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 US(e){return[...new Set(e)]}function WS(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function GS(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!RS(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(WS(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function KS(){let e=v.useContext(bx);return FS(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function qS(){let e=v.useContext(xx);return FS(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var JS=v.createContext(void 0);JS.displayName=`FrameworkContext`;function YS(){let e=v.useContext(JS);return FS(e,`You must render this element inside a <HydratedRouter> element`),e}function XS(e,t){let n=v.useContext(JS),[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:ZS(s,p),onBlur:ZS(c,m),onMouseEnter:ZS(l,p),onMouseLeave:ZS(u,m),onTouchStart:ZS(d,p)}]:[a,f,{}]:[!1,f,{}]}function ZS(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function QS({page:e,...t}){let n=Cx(),{nonce:r}=YS(),{router:i}=KS(),a=v.useMemo(()=>jb(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?v.createElement(eC,{page:e,matches:a,...t}):v.createElement(tC,{page:e,matches:a,...t})):null}function $S(e){let{manifest:t,routeModules:n}=YS(),[r,i]=v.useState([]);return v.useEffect(()=>{let r=!1;return BS(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function eC({page:e,matches:t,...n}){let r=Rx(),{future:i}=YS(),{basename:a}=KS(),o=v.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=IS(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 tC({page:e,matches:t,...n}){let r=Rx(),{future:i,manifest:a,routeModules:o}=YS(),{basename:s}=KS(),{loaderData:c,matches:l}=qS(),u=v.useMemo(()=>VS(e,t,l,a,r,`data`),[e,t,l,a,r]),d=v.useMemo(()=>VS(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=IS(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(()=>HS(d,a),[d,a]),m=$S(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 nC(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}v.Component;var rC=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{rC&&(window.__reactRouterVersion=`7.18.0`)}catch{}function iC({basename:e,children:t,useTransitions:n,window:r}){let i=v.useRef();i.current??=xb({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(mS,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function aC({basename:e,children:t,history:n,useTransitions:r}){let[i,a]=v.useState({action:n.action,location:n.location}),o=v.useCallback(e=>{r===!1?a(e):v.startTransition(()=>a(e))},[r]);return v.useLayoutEffect(()=>n.listen(o),[n,o]),v.createElement(mS,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}aC.displayName=`unstable_HistoryRouter`;var oC=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(Dx),y=typeof l==`string`&&gb.test(l),b=hx(l,h);l=b.to;let x=Ix(l,{relative:r}),S=Rx(),C=null;if(o){let e=ix(o,[],S.mask?S.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:ox([h,e.pathname])),C=g.createHref(e)}let[w,T,E]=XS(n,p),D=pC(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:nC(m,T),target:c,"data-discover":!y&&t===`render`?`true`:void 0});return w&&!y?v.createElement(v.Fragment,null,A,v.createElement(QS,{page:x})):A});oC.displayName=`Link`;var sC=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=Ux(a,{relative:c.relative}),d=Rx(),f=v.useContext(xx),{navigator:p,basename:m}=v.useContext(Dx),h=f!=null&&wC(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=Qb(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(oC,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});sC.displayName=`NavLink`;var cC=v.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=_S,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=v.useContext(Dx),g=_C(),_=vC(s,{relative:l}),y=o.toLowerCase()===`get`?`get`:`post`,b=typeof s==`string`&&gb.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})});cC.displayName=`Form`;function lC({getKey:e,storageKey:t,...n}){let r=v.useContext(JS),{basename:i}=v.useContext(Dx),a=Rx(),o=oS();SC({getKey:e,storageKey:t});let s=v.useMemo(()=>{if(!r||!e)return null;let t=xC(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return n.nonce==null&&r?.nonce&&(n.nonce=r.nonce),v.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${PS(JSON.stringify(t||yC))}, ${PS(JSON.stringify(s))})`}})}lC.displayName=`ScrollRestoration`;function uC(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function dC(e){let t=v.useContext(bx);return Sb(t,uC(e)),t}function fC(e){let t=v.useContext(xx);return Sb(t,uC(e)),t}function pC(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=Vx(),d=Rx(),f=Ux(e,{relative:o});return v.useCallback(p=>{if(wS(p,t)){p.preventDefault();let t=n===void 0?Db(d)===Db(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 mC(e){Cb(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(TS(e)),n=v.useRef(!1),r=Rx(),i=v.useMemo(()=>ES(r.search,n.current?null:t.current),[r.search]),a=Vx();return[i,v.useCallback((e,t)=>{let r=TS(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var hC=0,gC=()=>`__${String(++hC)}__`;function _C(){let{router:e}=dC(`useSubmit`),{basename:t}=v.useContext(Dx),n=iS(),r=e.fetch,i=e.navigate;return v.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=jS(e,t);a.navigate===!1?await r(a.fetcherKey||gC(),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}):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 vC(e,{relative:t}={}){let{basename:n}=v.useContext(Dx),r=v.useContext(kx);Sb(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...Ux(e||`.`,{relative:t})},o=Rx();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:ox([n,a.pathname])),Db(a)}var yC=`react-router-scroll-positions`,bC={};function xC(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:Qb(e.pathname,n)||e.pathname},t)),i??=e.key,i}function SC({getKey:e,storageKey:t}={}){let{router:n}=dC(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=fC(`useScrollRestoration`),{basename:a}=v.useContext(Dx),o=Rx(),s=oS(),c=aS();v.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),CC(v.useCallback(()=>{if(c.state===`idle`){let t=xC(o,s,a,e);bC[t]=window.scrollY}try{sessionStorage.setItem(t||yC,JSON.stringify(bC))}catch(e){Cb(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(v.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||yC);e&&(bC=JSON.parse(e))}catch{}},[t]),v.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(bC,()=>window.scrollY,e?(t,n)=>xC(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),v.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{Cb(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function CC(e,t){let{capture:n}=t||{};v.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function wC(e,{relative:t}={}){let n=v.useContext(wx);Sb(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=dC(`useViewTransitionState`),i=Ux(e,{relative:t});if(!n.isTransitioning)return!1;let a=Qb(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Qb(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Jb(i.pathname,o)!=null||Jb(i.pathname,a)!=null}var TC={userId:`userId`,accessToken:`accessToken`,refreshToken:`refreshToken`},EC=`kkk-auth-changed`,DC=()=>localStorage.getItem(TC.accessToken),OC=()=>localStorage.getItem(TC.refreshToken),kC=()=>localStorage.getItem(TC.userId),AC=()=>!!(DC()&&kC()),jC=e=>{localStorage.setItem(TC.userId,e.userId),localStorage.setItem(TC.accessToken,e.accessToken),localStorage.setItem(TC.refreshToken,e.refreshToken),window.dispatchEvent(new Event(EC))},MC=e=>{localStorage.setItem(TC.accessToken,e),window.dispatchEvent(new Event(EC))},NC=()=>{localStorage.removeItem(TC.userId),localStorage.removeItem(TC.accessToken),localStorage.removeItem(TC.refreshToken),window.dispatchEvent(new Event(EC))},PC=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 FC(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function IC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var LC={autoSleep:120,force3D:`auto`,nullTargetWarn:1,units:{lineHeight:``}},RC={duration:.5,overwrite:!1,delay:0},zC,BC,VC,HC=1e8,UC=1/HC,WC=Math.PI*2,GC=WC/4,KC=0,qC=Math.sqrt,JC=Math.cos,YC=Math.sin,XC=function(e){return typeof e==`string`},ZC=function(e){return typeof e==`function`},QC=function(e){return typeof e==`number`},$C=function(e){return e===void 0},ew=function(e){return typeof e==`object`},tw=function(e){return e!==!1},nw=function(){return typeof window<`u`},rw=function(e){return ZC(e)||XC(e)},iw=typeof ArrayBuffer==`function`&&ArrayBuffer.isView||function(){},aw=Array.isArray,ow=/random\([^)]+\)/g,sw=/,\s*/g,cw=/(?:-?\.?\d|\.)+/gi,lw=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,uw=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,dw=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,fw=/[+-]=-?[.\d]+/,pw=/[^,'"\[\]\s]+/gi,mw=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,hw,gw,_w,vw,yw={},bw={},xw,Sw=function(e){return(bw=eT(e,yw))&&yD},Cw=function(e,t){return console.warn(`Invalid property`,e,`set to`,t,`Missing plugin? gsap.registerPlugin()`)},ww=function(e,t){return!t&&console.warn(e)},Tw=function(e,t){return e&&(yw[e]=t)&&bw&&(bw[e]=t)||yw},Ew=function(){return 0},Dw={suppressEvents:!0,isStart:!0,kill:!1},Ow={suppressEvents:!0,kill:!1},kw={suppressEvents:!0},Aw={},jw=[],Mw={},Nw,Pw={},Fw={},Iw=30,Lw=[],Rw=``,zw=function(e){var t=e[0],n,r;if(ew(t)||ZC(t)||(e=[e]),!(n=(t._gsap||{}).harness)){for(r=Lw.length;r--&&!Lw[r].targetTest(t););n=Lw[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new kE(e[r],n)))||e.splice(r,1);return e},Bw=function(e){return e._gsap||zw(LT(e))[0]._gsap},Vw=function(e,t,n){return(n=e[t])&&ZC(n)?e[t]():$C(n)&&e.getAttribute&&e.getAttribute(t)||n},Hw=function(e,t){return(e=e.split(`,`)).forEach(t)||e},Uw=function(e){return Math.round(e*1e5)/1e5||0},Ww=function(e){return Math.round(e*1e7)/1e7||0},Gw=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},Kw=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++r<n;);return r<n},qw=function(){var e=jw.length,t=jw.slice(0),n,r;for(Mw={},jw.length=0,n=0;n<e;n++)r=t[n],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},Jw=function(e){return!!(e._initted||e._startAt||e.add)},Yw=function(e,t,n,r){jw.length&&!BC&&qw(),e.render(t,n,r||!!(BC&&t<0&&Jw(e))),jw.length&&!BC&&qw()},Xw=function(e){var t=parseFloat(e);return(t||t===0)&&(e+``).match(pw).length<2?t:XC(e)?e.trim():e},Zw=function(e){return e},Qw=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},$w=function(e){return function(t,n){for(var r in n)r in t||r===`duration`&&e||r===`ease`||(t[r]=n[r])}},eT=function(e,t){for(var n in t)e[n]=t[n];return e},tT=function e(t,n){for(var r in n)r!==`__proto__`&&r!==`constructor`&&r!==`prototype`&&(t[r]=ew(n[r])?e(t[r]||(t[r]={}),n[r]):n[r]);return t},nT=function(e,t){var n={},r;for(r in e)r in t||(n[r]=e[r]);return n},rT=function(e){var t=e.parent||hw,n=e.keyframes?$w(aw(e.keyframes)):Qw;if(tw(e.inherit))for(;t;)n(e,t.vars.defaults),t=t.parent||t._dp;return e},iT=function(e,t){for(var n=e.length,r=n===t.length;r&&n--&&e[n]===t[n];);return n<0},aT=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},oT=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},sT=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},cT=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},lT=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},uT=function(e,t,n,r){return e._startAt&&(BC?e._startAt.revert(Ow):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},dT=function e(t){return!t||t._ts&&e(t.parent)},fT=function(e){return e._repeat?pT(e._tTime,e=e.duration()+e._rDelay)*e:0},pT=function(e,t){var n=Math.floor(e=Ww(e/t));return e&&n===e?n-1:n},mT=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},hT=function(e){return e._end=Ww(e._start+(e._tDur/Math.abs(e._ts||e._rts||UC)||0))},gT=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=Ww(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),hT(e),n._dirty||cT(n,e)),e},_T=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(n=mT(e.rawTime(),t),(!t._dur||jT(0,t.totalDuration(),n)-t._tTime>UC)&&t.render(n,!0)),cT(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=-UC}},vT=function(e,t,n,r){return t.parent&&sT(t),t._start=Ww((QC(n)?n:n||e!==hw?OT(e,n,t):e._time)+t._delay),t._end=Ww(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),aT(e,t,`_first`,`_last`,e._sort?`_start`:0),ST(t)||(e._recent=t),r||_T(e,t),e._ts<0&&gT(e,e._tTime),e},yT=function(e,t){return(yw.ScrollTrigger||Cw(`scrollTrigger`,t))&&yw.ScrollTrigger.create(t,e)},bT=function(e,t,n,r,i){if(RE(e,t,i),!e._initted)return 1;if(!n&&e._pt&&!BC&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&Nw!==hE.frame)return jw.push(e),e._lazy=[i,r],1},xT=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},ST=function(e){var t=e.data;return t===`isFromStart`||t===`isStart`},CT=function(e,t,n,r){var i=e.ratio,a=t<0||!t&&(!e._start&&xT(e)&&!(!e._initted&&ST(e))||(e._ts<0||e._dp._ts<0)&&!ST(e))?0:1,o=e._rDelay,s=0,c,l,u;if(o&&e._repeat&&(s=jT(0,e._tDur,t),l=pT(s,o),e._yoyo&&l&1&&(a=1-a),l!==pT(e._tTime,o)&&(i=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==i||BC||r||e._zTime===UC||!t&&e._zTime){if(!e._initted&&bT(e,t,r,n,s))return;for(u=e._zTime,e._zTime=t||(n?UC: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&&uT(e,t,n,!0),e._onUpdate&&!n&&eE(e,`onUpdate`),s&&e._repeat&&!n&&e.parent&&eE(e,`onRepeat`),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&sT(e,1),!n&&!BC&&(eE(e,a?`onComplete`:`onReverseComplete`,!0),e._prom&&e._prom()))}else e._zTime||=t},wT=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}},TT=function(e,t,n,r){var i=e._repeat,a=Ww(t)||0,o=e._tTime/e._tDur;return o&&!r&&(e._time*=a/e._dur),e._dur=a,e._tDur=i?i<0?1e10:Ww(a*(i+1)+e._rDelay*i):a,o>0&&!r&&gT(e,e._tTime=e._tDur*o),e.parent&&hT(e),n||cT(e.parent,e),e},ET=function(e){return e instanceof jE?cT(e):TT(e,e._dur)},DT={_start:0,endTime:Ew,totalDuration:Ew},OT=function e(t,n,r){var i=t.labels,a=t._recent||DT,o=t.duration()>=HC?a.endTime(!1):t._dur,s,c,l;return XC(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*(aw(r)?r[0]:r).totalDuration()),s>1?e(t,n.substr(0,s-1),r)+c:o+c)):n==null?o:+n},kT=function(e,t,n){var r=QC(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=tw(s.vars.inherit)&&s.parent;a.immediateRender=tw(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[i-1]}return new GE(t[0],a,t[i+1])},AT=function(e,t){return e||e===0?t(e):t},jT=function(e,t,n){return n<e?e:n>t?t:n},MT=function(e,t){return!XC(e)||!(t=mw.exec(e))?``:t[1]},NT=function(e,t,n){return AT(n,function(n){return jT(e,t,n)})},PT=[].slice,FT=function(e,t){return e&&ew(e)&&`length`in e&&(!t&&!e.length||e.length-1 in e&&ew(e[0]))&&!e.nodeType&&e!==gw},IT=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(e){var r;return XC(e)&&!t||FT(e,1)?(r=n).push.apply(r,LT(e)):n.push(e)})||n},LT=function(e,t,n){return VC&&!t&&VC.selector?VC.selector(e):XC(e)&&!n&&(_w||!gE())?PT.call((t||vw).querySelectorAll(e),0):aw(e)?IT(e,n):FT(e)?PT.call(e,0):e?[e]:[]},RT=function(e){return e=LT(e)[0]||ww(`Invalid scope`)||{},function(t){var n=e.current||e.nativeElement||e;return LT(t,n.querySelectorAll?n:n===e?ww(`Invalid scope`)||vw.createElement(`div`):e)}},zT=function(e){return e.sort(function(){return .5-Math.random()})},BT=function(e){if(ZC(e))return e;var t=ew(e)?e:{each:e},n=wE(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 XC(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,HC])[1],!S){for(b=-HC;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===HC?0:s?f*u/S-.5:r/S|0,b=0,x=HC,y=0;y<f;y++)g=y%S-m,_=h-(y/S|0),p[y]=v=c?Math.abs(c===`y`?_:g):qC(g*g+_*_),v>b&&(b=v),v<x&&(x=v);r===`random`&&zT(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=MT(t.amount||t.each)||0,n=n&&f<0?CE(n):n}return f=(p[e]-p.min)/p.max||0,Ww(p.b+(n?n(f):f)*p.v)+p.u}},VT=function(e){var t=10**((e+``).split(`.`)[1]||``).length;return function(n){var r=Ww(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(QC(n)?0:MT(n))}},HT=function(e,t){var n=aw(e),r,i;return!n&&ew(e)&&(r=n=e.radius||HC,e.values?(e=LT(e.values),(i=!QC(e[0]))&&(r*=r)):e=VT(e.increment)),AT(t,n?ZC(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=HC,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||QC(t)?s:s+MT(t)}:VT(e))},UT=function(e,t,n,r){return AT(aw(e)?!t:n===!0?!!(n=0):!r,function(){return aw(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})},WT=function(){var e=[...arguments];return function(t){return e.reduce(function(e,t){return t(e)},t)}},GT=function(e,t){return function(n){return e(parseFloat(n))+(t||MT(n))}},KT=function(e,t,n){return ZT(e,t,0,1,n)},qT=function(e,t,n){return AT(n,function(n){return e[~~t(n)]})},JT=function e(t,n,r){var i=n-t;return aw(t)?qT(t,e(0,t.length),n):AT(r,function(e){return(i+(e-t)%i)%i+t})},YT=function e(t,n,r){var i=n-t,a=i*2;return aw(t)?qT(t,e(0,t.length-1),n):AT(r,function(e){return e=(a+(e-t)%a)%a||0,t+(e>i?a-e:e)})},XT=function(e){return e.replace(ow,function(e){var t=e.indexOf(`[`)+1,n=e.substring(t||7,t?e.indexOf(`]`):e.length-1).split(sw);return UT(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},ZT=function(e,t,n,r,i){var a=t-e,o=r-n;return AT(i,function(t){return n+((t-e)/a*o||0)})},QT=function e(t,n,r,i){var a=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!a){var o=XC(t),s={},c,l,u,d,f;if(r===!0&&(i=1)&&(r=null),o)t={p:t},n={p:n};else if(aw(t)&&!aw(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=eT(aw(t)?[]:{},t));if(!u){for(c in n)NE.call(s,t,c,`get`,n[c]);a=function(e){return eD(e,s)||(o?t.p:t)}}}return AT(r,a)},$T=function(e,t,n){var r=e.labels,i=HC,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},eE=function(e,t,n){var r=e.vars,i=r[t],a=VC,o=e._ctx,s,c,l;if(i)return s=r[t+`Params`],c=r.callbackScope||e,n&&jw.length&&qw(),o&&(VC=o),l=s?i.apply(c,s):i.call(c),VC=a,l},tE=function(e){return sT(e),e.scrollTrigger&&e.scrollTrigger.kill(!!BC),e.progress()<1&&eE(e,`onInterrupt`),e},nE,rE=[],iE=function(e){if(e)if(e=!e.name&&e.default||e,nw()||e.headless){var t=e.name,n=ZC(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:Ew,render:eD,add:NE,kill:nD,modifier:tD,rawVars:0},a={targetTest:0,get:0,getSetter:XE,aliases:{},register:0};if(gE(),e!==r){if(Pw[t])return;Qw(r,Qw(nT(e,i),a)),eT(r.prototype,eT(i,nT(e,a))),Pw[r.prop=t]=r,e.targetTest&&(Lw.push(r),Aw[t]=1),t=(t===`css`?`CSS`:t.charAt(0).toUpperCase()+t.substr(1))+`Plugin`}Tw(t,r),e.register&&e.register(yD,r,aD)}else rE.push(e)},aE=255,oE={aqua:[0,aE,aE],lime:[0,aE,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,aE],navy:[0,0,128],white:[aE,aE,aE],olive:[128,128,0],yellow:[aE,aE,0],orange:[aE,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[aE,0,0],pink:[aE,192,203],cyan:[0,aE,aE],transparent:[aE,aE,aE,0]},sE=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)*aE+.5|0},cE=function(e,t,n){var r=e?QC(e)?[e>>16,e>>8&aE,e&aE]:0:oE.black,i,a,o,s,c,l,u,d,f,p;if(!r){if(e.substr(-1)===`,`&&(e=e.substr(0,e.length-1)),oE[e])r=oE[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&aE,r&aE,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&aE,e&aE]}else if(e.substr(0,3)===`hsl`){if(r=p=e.match(cw),!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]=sE(s+1/3,i,a),r[1]=sE(s,i,a),r[2]=sE(s-1/3,i,a);else if(~e.indexOf(`=`))return r=e.match(lw),n&&r.length<4&&(r[3]=1),r}else r=e.match(cw)||oE.transparent;r=r.map(Number)}return t&&!p&&(i=r[0]/aE,a=r[1]/aE,o=r[2]/aE,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},lE=function(e){var t=[],n=[],r=-1;return e.split(dE).forEach(function(e){var i=e.match(uw)||[];t.push.apply(t,i),n.push(r+=i.length+1)}),t.c=n,t},uE=function(e,t,n){var r=``,i=(e+r).match(dE),a=t?`hsla(`:`rgba(`,o=0,s,c,l,u;if(!i)return e;if(i=i.map(function(e){return(e=cE(e,t,1))&&a+(t?e[0]+`,`+e[1]+`%,`+e[2]+`%,`+e[3]:e.join(`,`))+`)`}),n&&(l=lE(e),s=n.c,s.join(r)!==l.c.join(r)))for(c=e.replace(dE,`1`).split(uw),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(dE),u=c.length-1;o<u;o++)r+=c[o]+i[o];return r+c[u]},dE=function(){var e=`(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b`,t;for(t in oE)e+=`|`+t+`\\b`;return RegExp(e+`)`,`gi`)}(),fE=/hsl[a]?\(/,pE=function(e){var t=e.join(` `),n;if(dE.lastIndex=0,dE.test(t))return n=fE.test(t),e[1]=uE(e[1],n),e[0]=uE(e[0],n,lE(e[1])),!0},mE,hE=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(){xw&&(!_w&&nw()&&(gw=_w=window,vw=gw.document||{},yw.gsap=yD,(gw.gsapVersions||=[]).push(yD.version),Sw(bw||gw.GreenSockGlobals||!gw.gsap&&gw||{}),rE.forEach(iE)),u=typeof requestAnimationFrame<`u`&&requestAnimationFrame,c&&d.sleep(),l=u||function(e){return setTimeout(e,o-d.time*1e3+1|0)},mE=1,m(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(c),mE=0,l=Ew},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),gE(),r},remove:function(e,t){~(t=s.indexOf(e))&&s.splice(t,1)&&p>=t&&p--},_listeners:s},d}(),gE=function(){return!mE&&hE.wake()},_E={},vE=/^[\d.\-M][\d.\-,\s]/,yE=/["']/g,bE=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(yE,``).trim():+c,r=s.substr(o+1).trim();return t},xE=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)},SE=function(e){var t=(e+``).split(`(`),n=_E[t[0]];return n&&t.length>1&&n.config?n.config.apply(null,~e.indexOf(`{`)?[bE(t[1])]:xE(e).split(`,`).map(Xw)):_E._CE&&vE.test(e)?_E._CE(``,e):n},CE=function(e){return function(t){return 1-e(1-t)}},wE=function(e,t){return e&&(ZC(e)?e:_E[e]||SE(e))||t},TE=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 Hw(e,function(e){for(var t in _E[e]=yw[e]=i,_E[a=e.toLowerCase()]=n,i)_E[a+(t===`easeIn`?`.in`:t===`easeOut`?`.out`:`.inOut`)]=_E[e+`.`+t]=i[t]}),i},EE=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},DE=function e(t,n,r){var i=n>=1?n:1,a=(r||(t?.3:.45))/(n<1?n:1),o=a/WC*(Math.asin(1/i)||0),s=function(e){return e===1?1:i*2**(-10*e)*YC((e-o)*a)+1},c=t===`out`?s:t===`in`?function(e){return 1-s(1-e)}:EE(s);return a=WC/a,c.config=function(n,r){return e(t,n,r)},c},OE=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)}:EE(r);return i.config=function(n){return e(t,n)},i};Hw(`Linear,Quad,Cubic,Quart,Quint,Strong`,function(e,t){var n=t<5?t+1:t;TE(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})}),_E.Linear.easeNone=_E.none=_E.Linear.easeIn,TE(`Elastic`,DE(`in`),DE(`out`),DE()),(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};TE(`Bounce`,function(e){return 1-a(1-e)},a)})(7.5625,2.75),TE(`Expo`,function(e){return 2**(10*(e-1))*e+e*e*e*e*e*e*(1-e)}),TE(`Circ`,function(e){return-(qC(1-e*e)-1)}),TE(`Sine`,function(e){return e===1?1:-JC(e*GC)+1}),TE(`Back`,OE(`in`),OE(`out`),OE()),_E.SteppedEase=_E.steps=yw.SteppedEase={config:function(e,t){e===void 0&&(e=1);var n=1/e,r=e+ +!t,i=+!!t,a=1-UC;return function(e){return((r*jT(0,a,e)|0)+i)*n}}},RC.ease=_E[`quad.out`],Hw(`onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt`,function(e){return Rw+=e+`,`+e+`Params,`});var kE=function(e,t){this.id=KC++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:Vw,this.set=t?t.getSetter:XE},AE=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,TT(this,+e.duration,1,1),this.data=e.data,VC&&(this._ctx=VC,VC.data.push(this)),mE||hE.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,TT(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(gE(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(gT(this,e),!n._dp||n.parent||_T(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)&&vT(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===UC||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),Yw(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+fT(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)+fT(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?pT(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return this._rts===-UC?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?mT(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-UC?0:this._rts,this.totalTime(jT(-Math.abs(this._delay),this.totalDuration(),n),t!==!1),hT(this),lT(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):(gE(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==UC&&(this._tTime-=UC)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=Ww(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&vT(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(tw(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?mT(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){e===void 0&&(e=kw);var t=BC;return BC=e,Jw(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!==`nested`&&e.kill!==!1&&this.kill(),BC=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,ET(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,ET(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(OT(this,e),tw(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,tw(t)),this._dur||(this._zTime=-UC),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?-UC:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-UC,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)-UC)},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=ZC(e)?e:Zw,a=function(){var e=t.then;t.then=null,n&&n(),ZC(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(){tE(this)},e}();Qw(AE.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:-UC,_prom:0,_ps:!1,_rts:1});var jE=function(e){IC(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=tw(t.sortChildren),hw&&vT(t.parent||hw,FC(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&yT(FC(r),t.scrollTrigger),r}var n=t.prototype;return n.to=function(e,t,n){return kT(0,arguments,this),this},n.from=function(e,t,n){return kT(1,arguments,this),this},n.fromTo=function(e,t,n,r){return kT(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,rT(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new GE(e,t,OT(this,n),1),this},n.call=function(e,t,n){return vT(this,GE.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 GE(e,n,OT(this,i)),this},n.staggerFrom=function(e,t,n,r,i,a,o){return n.runBackwards=1,rT(n).immediateRender=tw(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,rT(r).immediateRender=tw(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:Ww(e),s=this._zTime<0!=e<0&&(this._initted||!a),c,l,u,d,f,p,m,h,g,_,v,y;if(this!==hw&&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=Ww(o%f),o===i?(d=this._repeat,c=a):(_=Ww(o/f),d=~~_,d&&d===_&&(c=a,d--),c>a&&(c=a)),_=pT(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:Ww(d*f)),t,!a)._lock=0,this._tTime=o,!t&&this.parent&&eE(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=wT(this,Ww(r),Ww(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&&!_&&(eE(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=-UC);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||BC&&Jw(l)),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=S?-UC:UC);break}}l=u}}if(m&&!t&&(this.pause(),m.render(c>=r?0:-UC)._zTime=c>=r?1:-1,this._ts))return this._start=g,hT(this),this.render(e,t,n);this._onUpdate&&!t&&eE(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)&&sT(this,1),!t&&!(e<0&&!r)&&(o||r||!i)&&(eE(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(QC(t)||(t=OT(this,t,e)),!(e instanceof AE)){if(aw(e))return e.forEach(function(e){return n.add(e,t)}),this;if(XC(e))return this.addLabel(e,t);if(ZC(e))e=GE.delayedCall(0,e);else return this}return this===e?this:vT(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=-HC);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof GE?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 XC(e)?this.removeLabel(e):ZC(e)?this.killTweensOf(e):(e.parent===this&&oT(this,e),e===this._recent&&(this._recent=this._last),cT(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Ww(hE.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]=OT(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=GE.delayedCall(0,t||Ew,n);return r.data=`isPause`,this._hasPause=1,vT(this,r,OT(this,e))},n.removePause=function(e){var t=this._first;for(e=OT(this,e);t;)t._start===e&&t.data===`isPause`&&sT(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)IE!==r[i]&&r[i].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n=[],r=LT(e),i=this._first,a=QC(t),o;i;)i instanceof GE?Kw(i._targets,r)&&(a?(!IE||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=OT(n,e),i=t,a=i.startAt,o=i.onStart,s=i.onStartParams,c=i.immediateRender,l,u=GE.to(n,Qw({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())||UC,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&&TT(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,Qw({startAt:{time:OT(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return e===void 0&&(e=this._time),$T(this,OT(this,e))},n.previousLabel=function(e){return e===void 0&&(e=this._time),$T(this,OT(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+UC)},n.shiftChildren=function(e,t,n){n===void 0&&(n=0);var r=this._first,i=this.labels,a;for(e=Ww(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 cT(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={}),cT(this)},n.totalDuration=function(e){var t=0,n=this,r=n._last,i=HC,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,vT(n,r,o-r._delay,1)._lock=0):i=o,o<0&&r._ts&&(t-=o,(!s&&!n._dp||s&&s.smoothChildTiming)&&(n._start+=Ww(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;TT(n,n===hw&&n._time>t?n._time:t,1,1),n._dirty=0}return n._tDur},t.updateRoot=function(e){if(hw._ts&&(Yw(hw,mT(e,hw)),Nw=hE.frame),hE.frame>=Iw){Iw+=LC.autoSleep||120;var t=hw._first;if((!t||!t._ts)&&LC.autoSleep&&hE._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||hE.sleep()}}},t}(AE);Qw(jE.prototype,{_lock:0,_hasPause:0,_forcing:0});var ME=function(e,t,n,r,i,a,o){var s=new aD(this._pt,e,t,0,1,$E,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=XT(r)),a&&(_=[n,r],a(_,e,t),n=_[0],r=_[1]),d=n.match(dw)||[];u=dw.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)===`=`?Gw(h,p)-h:parseFloat(p)-h,m:f&&f<4?Math.round:0},c=dw.lastIndex);return s.c=c<r.length?r.substring(c,r.length):``,s.fp=o,(fw.test(r)||g)&&(s.e=0),this._pt=s,s},NE=function(e,t,n,r,i,a,o,s,c,l){ZC(r)&&(r=r(i||0,e,a));var u=e[t],d=n===`get`?ZC(u)?c?e[t.indexOf(`set`)||!ZC(e[`get`+t.substr(3)])?t:`get`+t.substr(3)](c):e[t]():u:n,f=ZC(u)?c?JE:qE:KE,p;if(XC(r)&&(~r.indexOf(`random(`)&&(r=XT(r)),r.charAt(1)===`=`&&(p=Gw(d,r)+(MT(d)||0),(p||p===0)&&(r=p))),!l||d!==r||LE)return!isNaN(d*r)&&r!==``?(p=new aD(this._pt,e,t,+d||0,r-(d||0),typeof u==`boolean`?QE:ZE,0,f),c&&(p.fp=c),o&&p.modifier(o,this,e),this._pt=p):(!u&&!(t in e)&&Cw(t,r),ME.call(this,e,t,d,r,f,s||LC.stringFilter,c))},PE=function(e,t,n,r,i){if(ZC(e)&&(e=HE(e,i,t,n,r)),!ew(e)||e.style&&e.nodeType||aw(e)||iw(e))return XC(e)?HE(e,i,t,n,r):e;var a={},o;for(o in e)a[o]=HE(e[o],i,t,n,r);return a},FE=function(e,t,n,r,i,a){var o,s,c,l;if(Pw[e]&&(o=new Pw[e]).init(i,o.rawVars?t[e]:PE(t[e],r,i,a,n),n,r,a)!==!1&&(n._pt=s=new aD(n._pt,i,e,0,1,o.render,o,0,o.priority),n!==nE))for(c=n._ptLookup[n._targets.indexOf(i)],l=o._props.length;l--;)c[o._props[l]]=s;return o},IE,LE,RE=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`&&!zC,b=t.timeline,x=i.easeReverse||d,S,C,w,T,E,D,O,k,A,j,M,ee,N;if(b&&(!f||!a)&&(a=`none`),t._ease=wE(a,RC.ease),t._rEase=x&&(wE(x)||t._ease),t._from=!b&&!!i.runBackwards,t._from&&(t.ratio=1),!b||f&&!i.stagger){if(k=g[0]?Bw(g[0]).harness:0,ee=k&&i[k.prop],S=nT(i,Aw),h&&(h._zTime<0&&h.progress(1),n<0&&u&&s&&!p?h.render(-1,!0):h.revert(u&&m?Ow:Dw),h._lazy=0),o){if(sT(t._startAt=GE.set(g,Qw({data:`isStart`,overwrite:!1,parent:_,immediateRender:!0,lazy:!h&&tw(c),startAt:null,delay:0,onUpdate:l&&function(){return eE(t,`onUpdate`)},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,n<0&&(BC||!s&&!p)&&t._startAt.revert(Ow),s&&m&&n<=0&&r<=0){n&&(t._zTime=n);return}}else if(u&&m&&!h){if(n&&(s=!1),w=Qw({overwrite:!1,data:`isFromStart`,lazy:s&&!h&&tw(c),immediateRender:s,stagger:0,parent:_},S),ee&&(w[k.prop]=ee),sT(t._startAt=GE.set(g,w)),t._startAt._dp=0,t._startAt._sat=t,n<0&&(BC?t._startAt.revert(Ow):t._startAt.render(-1,!0)),t._zTime=n,!s)e(t._startAt,UC,UC);else if(!n)return}for(t._pt=t._ptCache=0,c=m&&tw(c)||c&&!m,C=0;C<g.length;C++){if(E=g[C],O=E._gsap||zw(g)[C]._gsap,t._ptLookup[C]=j={},Mw[O.id]&&jw.length&&qw(),M=v===g?C:v.indexOf(E),k&&(A=new k).init(E,ee||S,t,M,v)!==!1&&(t._pt=T=new aD(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||ee)for(w in S)Pw[w]&&(A=FE(w,S,t,M,E,v))?A.priority&&(D=1):j[w]=T=NE.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&&(IE=t,hw.killTweensOf(E,j,t.globalTime(n)),N=!t.parent,IE=0),t._pt&&c&&(Mw[O.id]=1)}D&&iD(t),t._onInit&&t._onInit(t)}t._onUpdate=l,t._initted=(!t._op||t._pt)&&!N,f&&n<=0&&b.render(HC,!0,!0)},zE=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 LE=1,e.vars[t]=`+=0`,RE(e,o),LE=0,s?ww(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&&=Uw(n)+MT(u.e),u.b&&=l.s+MT(u.b)},BE=function(e,t){var n=e[0]?Bw(e[0]).harness:0,r=n&&n.aliases,i,a,o,s;if(!r)return t;for(a in i=eT({},t),r)if(a in i)for(s=r[a].split(`,`),o=s.length;o--;)i[s[o]]=i[a];return i},VE=function(e,t,n,r){var i=t.ease||r||`power1.inOut`,a,o;if(aw(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})},HE=function(e,t,n,r,i){return ZC(e)?e.call(t,n,r,i):XC(e)&&~e.indexOf(`random(`)?XT(e):e},UE=Rw+`repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert`,WE={};Hw(UE+`,id,stagger,delay,duration,paused,scrollTrigger`,function(e){return WE[e]=1});var GE=function(e){IC(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:rT(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||hw,g=(aw(t)||iw(t)?QC(t[0]):`length`in n)?[t]:LT(t),_,v,y,b,x,S,C,w;if(a._targets=g.length?zw(g):ww(`GSAP target `+t+` not found. https://gsap.com`,!LC.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=d,f||u||rw(s)||rw(c)){n=a.vars;var T=n.easeReverse||n.yoyoEase;if(_=a.timeline=new jE({data:`nested`,defaults:p||{},targets:h&&h.data===`nested`?h.vars.targets:g}),_.kill(),_.parent=_._dp=FC(a),_._start=0,u||rw(s)||rw(c)){if(b=g.length,C=u&&BT(u),ew(u))for(x in u)~UE.indexOf(x)&&(w||={},w[x]=u[x]);for(v=0;v<b;v++)y=nT(n,WE),y.stagger=0,T&&(y.easeReverse=T),w&&eT(y,w),S=g[v],y.duration=+HE(s,FC(a),v,S,g),y.delay=(+HE(c,FC(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=_E.none;_.duration()?s=c=0:a.timeline=0}else if(f){rT(Qw(_.vars.defaults,{ease:`none`})),_._ease=wE(f.ease||n.ease||`none`);var E=0,D,O,k;if(aw(f))f.forEach(function(e){return _.to(g,e,`>`)}),_.duration();else{for(x in y={},f)x===`ease`||x===`easeEach`||VE(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&&!zC&&(IE=FC(a),hw.killTweensOf(g),IE=0),vT(h,FC(a),r),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(l||!s&&!f&&a._start===Ww(h._time)&&tw(l)&&dT(FC(a))&&h.data!==`nested`)&&(a._tTime=-UC,a.render(Math.max(0,-c)||0)),m&&yT(FC(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-UC&&!o?i:e<UC?0:e,c,l,u,d,f,p,m,h;if(!a)CT(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=Ww(s%d),s===i?(u=this._repeat,c=a):(f=Ww(s/d),u=~~f,u&&u===f?(c=a,u--):c>a&&(c=a)),p=this._yoyo&&u&1,p&&(c=a-c),f=pT(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(Ww(d*u),!0).invalidate()._lock=0)}if(!this._initted){if(bT(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&&(eE(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&&uT(this,e,t,n),eE(this,`onUpdate`)),this._repeat&&u!==f&&this.vars.onRepeat&&!t&&this.parent&&eE(this,`onRepeat`),(s===this._tDur||!s)&&this._tTime===s&&(o&&!this._onUpdate&&uT(this,e,!0,!0),(e||!a)&&(s===this._tDur&&this._ts>0||!s&&this._ts<0)&&sT(this,1),!t&&!(o&&!r)&&(s||r||p)&&(eE(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){mE||hE.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts),o;return this._initted||RE(this,a),o=this._ease(a/this._dur),zE(this,e,t,n,r,o,a,i)?this.resetTo(e,t,n,r,1):(gT(this,0),this.parent||aT(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?tE(this):this.scrollTrigger&&this.scrollTrigger.kill(!!BC),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,IE&&IE.vars.overwrite!==!0)._first||tE(this),this.parent&&n!==this.timeline.totalDuration()&&TT(this,this._dur*this.timeline._tDur/n,0,1),this}var r=this._targets,i=e?LT(e):r,a=this._ptLookup,o=this._pt,s,c,l,u,d,f,p;if((!t||t===`all`)&&iT(r,i))return t===`all`&&(this._pt=0),tE(this);for(s=this._op=this._op||[],t!==`all`&&(XC(t)&&(d={},Hw(t,function(e){return d[e]=1}),t=d),t=BE(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)&&oT(this,f,`_pt`),delete c[d]),l!==`all`&&(l[d]=1);return this._initted&&!this._pt&&o&&tE(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return kT(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 kT(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 hw.killTweensOf(e,t,n)},t}(AE);Qw(GE.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Hw(`staggerTo,staggerFrom,staggerFromTo`,function(e){GE[e]=function(){var t=new jE,n=PT.call(arguments,0);return n.splice(e===`staggerFromTo`?5:4,0,0),t[e].apply(t,n)}});var KE=function(e,t,n){return e[t]=n},qE=function(e,t,n){return e[t](n)},JE=function(e,t,n,r){return e[t](r.fp,n)},YE=function(e,t,n){return e.setAttribute(t,n)},XE=function(e,t){return ZC(e[t])?qE:$C(e[t])&&e.setAttribute?YE:KE},ZE=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},QE=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},$E=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)},eD=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},tD=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},nD=function(e){for(var t=this._pt,n,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?oT(this,t,`_pt`):t.dep||(n=1),t=r;return!n},rD=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},iD=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},aD=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||ZE,this.d=o||this,this.set=s||KE,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=rD,this.m=e,this.mt=n,this.tween=t},e}();Hw(Rw+`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 Aw[e]=1}),yw.TweenMax=yw.TweenLite=GE,yw.TimelineLite=yw.TimelineMax=jE,hw=new jE({sortChildren:!1,defaults:RC,autoRemoveChildren:!0,id:`root`,smoothChildTiming:!0}),LC.stringFilter=pE;var oD=[],sD={},cD=[],lD=0,uD=0,dD=function(e){return(sD[e]||cD).map(function(e){return e()})},fD=function(){var e=Date.now(),t=[];e-lD>2&&(dD(`matchMediaInit`),oD.forEach(function(e){var n=e.queries,r=e.conditions,i,a,o,s;for(a in n)i=gw.matchMedia(n[a]).matches,i&&(o=1),i!==r[a]&&(r[a]=i,s=1);s&&(e.revert(),o&&t.push(e))}),dD(`matchMediaRevert`),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),lD=e,dD(`matchMedia`))},pD=function(){function e(e,t){this.selector=t&&RT(t),this.data=[],this._r=[],this.isReverted=!1,this.id=uD++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){ZC(e)&&(n=t,t=e,e=ZC);var r=this,i=function(){var e=VC,i=r.selector,a;return e&&e!==r&&e.data.push(r),n&&(r.selector=RT(n)),VC=r,a=t.apply(r,arguments),ZC(a)&&r._r.push(a),VC=e,r.selector=i,r.isReverted=!1,a};return r.last=i,e===ZC?i(r,function(e){return r.add(null,e)}):e?r[e]=i:i},t.ignore=function(e){var t=VC;VC=null,e(this),VC=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof GE&&!(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 jE?i.data!==`nested`&&(i.scrollTrigger&&i.scrollTrigger.revert(),i.kill()):!(i instanceof GE)&&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=oD.length;r--;)oD[r].id===this.id&&oD.splice(r,1)},t.revert=function(e){this.kill(e||{})},e}(),mD=function(){function e(e){this.contexts=[],this.scope=e,VC&&VC.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){ew(e)||(e={matches:e});var r=new pD(0,n||this.scope),i=r.conditions={},a,o,s;for(o in VC&&!r.selector&&(r.selector=VC.selector),this.contexts.push(r),t=r.add(`onMatch`,t),r.queries=e,e)o===`all`?s=1:(a=gw.matchMedia(e[o]),a&&(oD.indexOf(r)<0&&oD.push(r),(i[o]=a.matches)&&(s=1),a.addListener?a.addListener(fD):a.addEventListener(`change`,fD)));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}(),hD={registerPlugin:function(){[...arguments].forEach(function(e){return iE(e)})},timeline:function(e){return new jE(e)},getTweensOf:function(e,t){return hw.getTweensOf(e,t)},getProperty:function(e,t,n,r){XC(e)&&(e=LT(e)[0]);var i=Bw(e||{}).get,a=n?Zw:Xw;return n===`native`&&(n=``),e&&(t?a((Pw[t]&&Pw[t].get||i)(e,t,n,r)):function(t,n,r){return a((Pw[t]&&Pw[t].get||i)(e,t,n,r))})},quickSetter:function(e,t,n){if(e=LT(e),e.length>1){var r=e.map(function(e){return yD.quickSetter(e,t,n)}),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}e=e[0]||{};var a=Pw[t],o=Bw(e),s=o.harness&&(o.harness.aliases||{})[t]||t,c=a?function(t){var r=new a;nE._pt=0,r.init(e,n?t+n:t,nE,0,[e]),r.render(1,r),nE._pt&&eD(1,nE)}: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=yD.to(e,Qw((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 hw.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=wE(e.ease,RC.ease)),tT(RC,e||{})},config:function(e){return tT(LC,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&&!Pw[e]&&!yw[e]&&ww(t+` effect requires `+e+` plugin.`)}),Fw[t]=function(e,t,r){return n(LT(e),Qw(t||{},i),r)},a&&(jE.prototype[t]=function(e,n,r){return this.add(Fw[t](e,ew(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){_E[e]=wE(t)},parseEase:function(e,t){return arguments.length?wE(e,t):_E},getById:function(e){return hw.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n=new jE(e),r,i;for(n.smoothChildTiming=tw(e.smoothChildTiming),hw.remove(n),n._dp=0,n._time=n._tTime=hw._time,r=hw._first;r;)i=r._next,(t||!(!r._dur&&r instanceof GE&&r.vars.onComplete===r._targets[0]))&&vT(n,r,r._start-r._delay),r=i;return vT(hw,n,0),n},context:function(e,t){return e?new pD(e,t):VC},matchMedia:function(e){return new mD(e)},matchMediaRefresh:function(){return oD.forEach(function(e){var t=e.conditions,n,r;for(r in t)t[r]&&(t[r]=!1,n=1);n&&e.revert()})||fD()},addEventListener:function(e,t){var n=sD[e]||(sD[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=sD[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:JT,wrapYoyo:YT,distribute:BT,random:UT,snap:HT,normalize:KT,getUnit:MT,clamp:NT,splitColor:cE,toArray:LT,selector:RT,mapRange:ZT,pipe:WT,unitize:GT,interpolate:QT,shuffle:zT},install:Sw,effects:Fw,ticker:hE,updateRoot:jE.updateRoot,plugins:Pw,globalTimeline:hw,core:{PropTween:aD,globals:Tw,Tween:GE,Timeline:jE,Animation:AE,getCache:Bw,_removeLinkedListItem:oT,reverting:function(){return BC},context:function(e){return e&&VC&&(VC.data.push(e),e._ctx=VC),VC},suppressOverwrites:function(e){return zC=e}}};Hw(`to,from,fromTo,delayedCall,set,killTweensOf`,function(e){return hD[e]=GE[e]}),hE.add(jE.updateRoot),nE=hD.to({},{duration:0});var gD=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},_D=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=gD(a,r)),a&&a.modifier&&a.modifier(t[r],e,n[i],r))},vD=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,i;if(XC(n)&&(r={},Hw(n,function(e){return r[e]=1}),n=r),t){for(i in r={},n)r[i]=t(n[i]);n=r}_D(e,n)}}}},yD=hD.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;)BC?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)}},vD(`roundProps`,VT),vD(`modifiers`),vD(`snap`,HT))||hD;GE.version=jE.version=yD.version=`3.15.0`,xw=1,nw()&&gE(),_E.Power0,_E.Power1,_E.Power2,_E.Power3,_E.Power4,_E.Linear,_E.Quad,_E.Cubic,_E.Quart,_E.Quint,_E.Strong,_E.Elastic,_E.Back,_E.SteppedEase,_E.Bounce,_E.Sine,_E.Expo,_E.Circ;var bD,xD,SD,CD,wD,TD,ED,DD=function(){return typeof window<`u`},OD={},kD=180/Math.PI,AD=Math.PI/180,jD=Math.atan2,MD=1e8,ND=/([A-Z])/g,PD=/(left|right|width|margin|padding|x)/i,FD=/[\s,\(]\S/,ID={autoAlpha:`opacity,visibility`,scale:`scaleX,scaleY`,alpha:`opacity`},LD=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},RD=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)},zD=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)},BD=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)},VD=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},HD=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},UD=function(e,t){return t.set(t.t,t.p,e===1?t.e:t.b,t)},WD=function(e,t,n){return e.style[t]=n},GD=function(e,t,n){return e.style.setProperty(t,n)},KD=function(e,t,n){return e._gsap[t]=n},qD=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},JD=function(e,t,n,r,i){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},YD=function(e,t,n,r,i){var a=e._gsap;a[t]=n,a.renderTransform(i,a)},XD=`transform`,ZD=XD+`Origin`,QD=function e(t,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(t in OD&&a){if(this.tfm=this.tfm||{},t!==`transform`)t=ID[t]||t,~t.indexOf(`,`)?t.split(`,`).forEach(function(e){return r.tfm[e]=_O(i,e)}):this.tfm[t]=o.x?o[t]:_O(i,t),t===ZD&&(this.tfm.zOrigin=o.zOrigin);else return ID.transform.split(`,`).forEach(function(t){return e.call(r,t,n)});if(this.props.indexOf(XD)>=0)return;o.svg&&(this.svgo=i.getAttribute(`data-svg-origin`),this.props.push(ZD,n,``)),t=XD}(a||n)&&this.props.push(t,n,a[t])},$D=function(e){e.translate&&(e.removeProperty(`translate`),e.removeProperty(`scale`),e.removeProperty(`rotate`))},eO=function(){var e=this.props,t=this.target,n=t.style,r=t._gsap,i,a;for(i=0;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(ND,`-$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=ED(),(!i||!i.isStart)&&!n[XD]&&($D(n),r.zOrigin&&n[ZD]&&(n[ZD]+=` `+r.zOrigin+`px`,r.zOrigin=0,r.renderTransform()),r.uncache=1)}},tO=function(e,t){var n={target:e,props:[],revert:eO,save:QD};return e._gsap||yD.core.getCache(e),t&&e.style&&e.nodeType&&t.split(`,`).forEach(function(e){return n.save(e)}),n},nO,rO=function(e,t){var n=xD.createElementNS?xD.createElementNS((t||`http://www.w3.org/1999/xhtml`).replace(/^https/,`http`),e):xD.createElement(e);return n&&n.style?n:xD.createElement(e)},iO=function e(t,n,r){var i=getComputedStyle(t);return i[n]||i.getPropertyValue(n.replace(ND,`-$1`).toLowerCase())||i.getPropertyValue(n)||!r&&e(t,oO(n)||n,1)||``},aO=`O,Moz,ms,Ms,Webkit`.split(`,`),oO=function(e,t,n){var r=(t||wD).style,i=5;if(e in r&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);i--&&!(aO[i]+e in r););return i<0?null:(i===3?`ms`:i>=0?aO[i]:``)+e},sO=function(){DD()&&window.document&&(bD=window,xD=bD.document,SD=xD.documentElement,wD=rO(`div`)||{style:{}},rO(`div`),XD=oO(XD),ZD=XD+`Origin`,wD.style.cssText=`border-width:0;line-height:0;position:absolute;padding:0`,nO=!!oO(`perspective`),ED=yD.core.reverting,CD=1)},cO=function(e){var t=e.ownerSVGElement,n=rO(`svg`,t&&t.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`),r=e.cloneNode(!0),i;r.style.display=`block`,n.appendChild(r),SD.appendChild(n);try{i=r.getBBox()}catch{}return n.removeChild(r),SD.removeChild(n),i},lO=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},uO=function(e){var t,n;try{t=e.getBBox()}catch{t=cO(e),n=1}return t&&(t.width||t.height)||n||(t=cO(e)),t&&!t.width&&!t.x&&!t.y?{x:+lO(e,[`x`,`cx`,`x1`])||0,y:+lO(e,[`y`,`cy`,`y1`])||0,width:0,height:0}:t},dO=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&uO(e))},fO=function(e,t){if(t){var n=e.style,r;t in OD&&t!==ZD&&(t=XD),n.removeProperty?(r=t.substr(0,2),(r===`ms`||t.substr(0,6)===`webkit`)&&(t=`-`+t),n.removeProperty(r===`--`?t:t.replace(ND,`-$1`).toLowerCase())):n.removeAttribute(t)}},pO=function(e,t,n,r,i,a){var o=new aD(e._pt,t,n,0,1,a?UD:HD);return e._pt=o,o.b=r,o.e=i,e._props.push(n),o},mO={deg:1,rad:1,turn:1},hO={grid:1,flex:1},gO=function e(t,n,r,i){var a=parseFloat(r)||0,o=(r+``).trim().substr((a+``).length)||`px`,s=wD.style,c=PD.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||mO[i]||mO[o])return a;if(o!==`px`&&!f&&(a=e(t,n,r,`px`)),_=t.getCTM&&dO(t),(p||o===`%`)&&(OD[n]||~n.indexOf(`adius`)))return m=_?t.getBBox()[c?`width`:`height`]:t[u],Uw(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===xD||!h.appendChild)&&(h=xD.body),g=h._gsap,g&&p&&g.width&&c&&g.time===hE.time&&!g.uncache)return Uw(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:fO(t,n)}else (p||o===`%`)&&!hO[iO(h,`display`)]&&(s.position=iO(t,`position`)),h===t&&(s.position=`static`),h.appendChild(wD),m=wD[u],h.removeChild(wD),s.position=`absolute`;return c&&p&&(g=Bw(h),g.time=hE.time,g.width=h[u]),Uw(f?m*a/d:m&&a?d/m*a:0)},_O=function(e,t,n,r){var i;return CD||sO(),t in ID&&t!==`transform`&&(t=ID[t],~t.indexOf(`,`)&&(t=t.split(`,`)[0])),OD[t]&&t!==`transform`?(i=kO(e,r),i=t===`transformOrigin`?i.svg?i.origin:AO(iO(e,ZD))+` `+i.zOrigin+`px`:i[t]):(i=e.style[t],(!i||i===`auto`||r||~(i+``).indexOf(`calc(`))&&(i=SO[t]&&SO[t](e,t,n)||iO(e,t)||Vw(e,t)||+(t===`opacity`))),n&&!~(i+``).trim().indexOf(` `)?gO(e,t,i,n)+n:i},vO=function(e,t,n,r){if(!n||n===`none`){var i=oO(t,e,1),a=i&&iO(e,i,1);a&&a!==n?(t=i,n=a):t===`borderColor`&&(n=iO(e,`borderTopColor`))}var o=new aD(this._pt,e.style,t,0,1,$E),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=iO(e,r.substring(4,r.indexOf(`)`)))),r===`auto`&&(m=e.style[t],e.style[t]=r,r=iO(e,t)||r,m?e.style[t]=m:fO(e,t)),l=[n,r],pE(l),n=l[0],r=l[1],d=n.match(uw)||[],b=r.match(uw)||[],b.length){for(;u=uw.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=Gw(f,h)+y),g=parseFloat(h),v=h.substr((g+``).length),s=uw.lastIndex-v.length,v||(v=v||LC.units[t]||y,s===r.length&&(r+=v,o.e+=v)),y!==v&&(f=gO(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`?UD:HD;return fw.test(r)&&(o.e=0),this._pt=o,o},yO={top:`0%`,bottom:`100%`,left:`0%`,right:`100%`,center:`50%`},bO=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]=yO[n]||n,t[1]=yO[r]||r,t.join(` `)},xO=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],OD[o]&&(s=1,o=o===`transformOrigin`?ZD:XD),fO(n,o);s&&(fO(n,XD),a&&(a.svg&&n.removeAttribute(`transform`),r.scale=r.rotate=r.translate=`none`,kO(n,1),a.uncache=1,$D(r)))}},SO={clearProps:function(e,t,n,r,i){if(i.data!==`isFromStart`){var a=e._pt=new aD(e._pt,t,n,0,0,xO);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},CO=[1,0,0,1,0,0],wO={},TO=function(e){return e===`matrix(1, 0, 0, 1, 0, 0)`||e===`none`||!e},EO=function(e){var t=iO(e,XD);return TO(t)?CO:t.substr(7).match(lw).map(Uw)},DO=function(e,t){var n=e._gsap||Bw(e),r=e.style,i=EO(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`?CO:i):(i===CO&&!e.offsetParent&&e!==SD&&!n.svg&&(s=r.display,r.display=`block`,a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,o=e.nextElementSibling,SD.appendChild(e)),i=EO(e),s?r.display=s:fO(e,`display`),c&&(o?a.insertBefore(e,o):a?a.appendChild(e):SD.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},OO=function(e,t,n,r,i,a){var o=e._gsap,s=i||DO(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!==CO&&(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=uO(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[ZD]=`0px 0px`,a&&(pO(a,o,`xOrigin`,c,y),pO(a,o,`yOrigin`,l,b),pO(a,o,`xOffset`,u,o.xOffset),pO(a,o,`yOffset`,d,o.yOffset)),e.setAttribute(`data-svg-origin`,y+` `+b)},kO=function(e,t){var n=e._gsap||new kE(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=iO(e,ZD)||`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,ee,N,te,P,F,ne,re,ie;return n.svg=!!(e.getCTM&&dO(e)),s.translate&&((s.translate!==`none`||s.scale!==`none`||s.rotate!==`none`)&&(r[XD]=(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[XD]===`none`?``:s[XD])),r.scale=r.rotate=r.translate=`none`),S=DO(e,n.svg),n.svg&&(n.uncache?(ee=e.getBBox(),c=n.xOrigin-ee.x+`px `+(n.yOrigin-ee.y)+`px`,M=``):M=!t&&e.getAttribute(`data-svg-origin`),OO(e,M||c,!!M||n.originIsAbsolute,n.smooth!==!1,S)),b=n.xOrigin||0,x=n.yOrigin||0,S!==CO&&(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?jD(D,E)*kD:0,_=O||k?jD(O,k)*kD+m:0,_&&(p*=Math.abs(Math.cos(_*AD))),n.svg&&(l-=b-(b*E+x*O),u-=x-(b*D+x*k))):(ie=S[6],ne=S[7],te=S[8],P=S[9],F=S[10],re=S[11],l=S[12],u=S[13],d=S[14],C=jD(ie,F),h=C*kD,C&&(w=Math.cos(-C),T=Math.sin(-C),M=A*w+te*T,ee=j*w+P*T,N=ie*w+F*T,te=A*-T+te*w,P=j*-T+P*w,F=ie*-T+F*w,re=ne*-T+re*w,A=M,j=ee,ie=N),C=jD(-O,F),g=C*kD,C&&(w=Math.cos(-C),T=Math.sin(-C),M=E*w-te*T,ee=D*w-P*T,N=O*w-F*T,re=k*T+re*w,E=M,D=ee,O=N),C=jD(D,E),m=C*kD,C&&(w=Math.cos(C),T=Math.sin(C),M=E*w+D*T,ee=A*w+j*T,D=D*w-E*T,j=j*w-A*T,E=M,A=ee),h&&Math.abs(h)+Math.abs(m)>359.9&&(h=m=0,g=180-g),f=Uw(Math.sqrt(E*E+D*D+O*O)),p=Uw(Math.sqrt(j*j+ie*ie)),C=jD(A,j),_=Math.abs(C)>2e-4?C*kD:0,y=re?1/(re<0?-re:re):0),n.svg&&(M=e.getAttribute(`transform`),n.forceCSS=e.setAttribute(`transform`,``)||!TO(iO(e,XD)),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=Uw(f),n.scaleY=Uw(p),n.rotation=Uw(m)+o,n.rotationX=Uw(h)+o,n.rotationY=Uw(g)+o,n.skewX=_+o,n.skewY=v+o,n.transformPerspective=y+a,(n.zOrigin=parseFloat(c.split(` `)[2])||!t&&n.zOrigin||0)&&(r[ZD]=AO(c)),n.xOffset=n.yOffset=0,n.force3D=LC.force3D,n.renderTransform=n.svg?LO:nO?IO:MO,n.uncache=0,n},AO=function(e){return(e=e.split(` `))[0]+` `+e[1]},jO=function(e,t,n){var r=MT(t);return Uw(parseFloat(t)+parseFloat(gO(e,`x`,n+`px`,r)))+r},MO=function(e,t){t.z=`0px`,t.rotationY=t.rotationX=`0deg`,t.force3D=0,IO(e,t)},NO=`0deg`,PO=`0px`,FO=`) `,IO=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!==NO||l!==NO)){var x=parseFloat(l)*AD,S=Math.sin(x),C=Math.cos(x),w;x=parseFloat(u)*AD,w=Math.cos(x),a=jO(_,a,S*w*-v),o=jO(_,o,-Math.sin(x)*-v),s=jO(_,s,C*w*-v+v)}h!==PO&&(y+=`perspective(`+h+FO),(r||i)&&(y+=`translate(`+r+`%, `+i+`%) `),(b||a!==PO||o!==PO||s!==PO)&&(y+=s!==PO||b?`translate3d(`+a+`, `+o+`, `+s+`) `:`translate(`+a+`, `+o+FO),c!==NO&&(y+=`rotate(`+c+FO),l!==NO&&(y+=`rotateY(`+l+FO),u!==NO&&(y+=`rotateX(`+u+FO),(d!==NO||f!==NO)&&(y+=`skew(`+d+`, `+f+FO),(p!==1||m!==1)&&(y+=`scale(`+p+`, `+m+FO),_.style[XD]=y||`translate(0, 0)`},LO=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*=AD,c*=AD,b=Math.cos(s)*u,x=Math.sin(s)*u,S=Math.sin(s-c)*-d,C=Math.cos(s-c)*d,c&&(l*=AD,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=Uw(b),x=Uw(x),S=Uw(S),C=Uw(C)):(b=u,C=d,x=S=0),(v&&!~(a+``).indexOf(`px`)||y&&!~(o+``).indexOf(`px`))&&(v=gO(f,`x`,a,`px`),y=gO(f,`y`,o,`px`)),(p||m||h||g)&&(v=Uw(v+p-(p*b+m*S)+h),y=Uw(y+m-(p*x+m*C)+g)),(r||i)&&(w=f.getBBox(),v=Uw(v+r/100*w.width),y=Uw(y+i/100*w.height)),w=`matrix(`+b+`,`+x+`,`+S+`,`+C+`,`+v+`,`+y+`)`,f.setAttribute(`transform`,w),_&&(f.style[XD]=w)},RO=function(e,t,n,r,i){var a=360,o=XC(i),s=parseFloat(i)*(o&&~i.indexOf(`rad`)?kD: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*MD)%a-~~(s/a)*a:l===`ccw`&&s>0&&(s=(s-a*MD)%a-~~(s/a)*a)),e._pt=u=new aD(e._pt,t,n,r,s,RD),u.e=c,u.u=`deg`,e._props.push(n),u},zO=function(e,t){for(var n in t)e[n]=t[n];return e},BO=function(e,t,n){var r=zO({},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[XD]=t,o=kO(n,1),fO(n,XD),n.setAttribute(`transform`,c)):(c=getComputedStyle(n)[XD],a[XD]=t,o=kO(n,1),a[XD]=c),OD)c=r[s],l=o[s],c!==l&&i.indexOf(s)<0&&(f=MT(c),p=MT(l),u=f===p?parseFloat(c):gO(n,s,c,p),d=parseFloat(l),e._pt=new aD(e._pt,o,s,u,d-u,LD),e._pt.u=p||0,e._props.push(s));zO(o,r)};Hw(`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});SO[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 _O(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 VO={name:`css`,register:sO,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 CD||sO(),this.styles=this.styles||tO(e),C=this.styles.props,this.tween=n,t)if(m!==`autoRound`&&(l=t[m],!(Pw[m]&&FE(m,t,n,r,e,i)))){if(f=typeof l,p=SO[m],f===`function`&&(l=l.call(n,r,e,i),f=typeof l),f===`string`&&~l.indexOf(`random(`)&&(l=XT(l)),p)p(this,e,m,l,n)&&(S=1);else if(m.substr(0,2)===`--`)c=(getComputedStyle(e).getPropertyValue(m)+``).trim(),l+=``,dE.lastIndex=0,dE.test(c)||(h=MT(c),g=MT(l),g?h!==g&&(c=gO(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],XC(c)&&~c.indexOf(`random(`)&&(c=XT(c)),MT(c+``)||c===`auto`||(c+=LC.units[m]||MT(_O(e,m))||``),(c+``).charAt(1)===`=`&&(c=_O(e,m))):c=_O(e,m),d=parseFloat(c),_=f===`string`&&l.charAt(1)===`=`&&l.substr(0,2),_&&(l=l.substr(2)),u=parseFloat(l),m in ID&&(m===`autoAlpha`&&(d===1&&_O(e,`visibility`)===`hidden`&&u&&(d=0),C.push(`visibility`,0,o.visibility),pO(this,o,`visibility`,d?`inherit`:`hidden`,u?`inherit`:`hidden`,!u)),m!==`scale`&&m!==`transform`&&(m=ID[m],~m.indexOf(`,`)&&(m=m.split(`,`)[0]))),v=m in OD,v){if(this.styles.save(m),w=l,f===`string`&&l.substring(0,6)===`var(--`){if(l=iO(e,l.substring(4,l.indexOf(`)`))),l.substring(0,5)===`calc(`){var T=e.style.perspective;e.style.perspective=l,l=iO(e,`perspective`),T?e.style.perspective=T:fO(e,`perspective`)}u=parseFloat(l)}if(y||(b=e._gsap,b.renderTransform&&!t.parseTransform||kO(e,t.parseTransform),x=t.smoothOrigin!==!1&&b.smooth,y=this._pt=new aD(this._pt,o,XD,0,1,b.renderTransform,b,0,-1),y.dep=1),m===`scale`)this._pt=new aD(this._pt,b,`scaleY`,b.scaleY,(_?Gw(b.scaleY,_+u):u)-b.scaleY||0,LD),this._pt.u=0,a.push(`scaleY`,m),m+=`X`;else if(m===`transformOrigin`){C.push(ZD,0,o[ZD]),l=bO(l),b.svg?OO(e,l,0,x,0,this):(g=parseFloat(l.split(` `)[2])||0,g!==b.zOrigin&&pO(this,b,`zOrigin`,b.zOrigin,g),pO(this,o,m,AO(c),AO(l)));continue}else if(m===`svgOrigin`){OO(e,l,1,x,0,this);continue}else if(m in wO){RO(this,b,m,d,_?Gw(d,_+l):l);continue}else if(m===`smoothOrigin`){pO(this,b,`smooth`,b.smooth,l);continue}else if(m===`force3D`){b[m]=l;continue}else if(m===`transform`){BO(this,l,e);continue}}else m in o||(m=oO(m)||m);if(v||(u||u===0)&&(d||d===0)&&!FD.test(l)&&m in o)h=(c+``).substr((d+``).length),u||=0,g=MT(l)||(m in LC.units?LC.units[m]:h),h!==g&&(d=gO(e,m,c,g)),this._pt=new aD(this._pt,v?b:o,m,d,(_?Gw(d,_+u):u)-d,!v&&(g===`px`||m===`zIndex`)&&t.autoRound!==!1?VD:LD),this._pt.u=g||0,v&&w!==l?(this._pt.b=c,this._pt.e=w,this._pt.r=BD):h!==g&&g!==`%`&&(this._pt.b=c,this._pt.r=zD);else if(m in o)vO.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`){Cw(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&&iD(this)},render:function(e,t){if(t.tween._time||!ED())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:_O,aliases:ID,getSetter:function(e,t,n){var r=ID[t];return r&&r.indexOf(`,`)<0&&(t=r),t in OD&&t!==ZD&&(e._gsap.x||_O(e,`x`))?n&&TD===n?t===`scale`?qD:KD:(TD=n||{})&&(t===`scale`?JD:YD):e.style&&!$C(e.style[t])?WD:~t.indexOf(`-`)?GD:XE(e,t)},core:{_removeProperty:fO,_getMatrix:DO}};yD.utils.checkPrefix=oO,yD.core.getStyleSaver=tO,(function(e,t,n,r){var i=Hw(e+`,`+t+`,`+n,function(e){OD[e]=1});Hw(t,function(e){LC.units[e]=`deg`,wO[e]=1}),ID[i[13]]=e+`,`+t,Hw(r,function(e){var t=e.split(`:`);ID[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`),Hw(`x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective`,function(e){LC.units[e]=`px`}),yD.registerPlugin(VO);var HO=yD.registerPlugin(VO)||yD;HO.core.Tween;var UO=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),WO=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),GO=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),KO=e=>{let t=GO(e);return t.charAt(0).toUpperCase()+t.slice(1)},qO={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},JO=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},YO=(0,v.createContext)({}),XO=()=>(0,v.useContext)(YO),ZO=(0,v.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=XO()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,v.createElement)(`svg`,{ref:c,...qO,width:t??l??qO.width,height:t??l??qO.height,stroke:e??f,strokeWidth:m,className:UO(`lucide`,p,i),...!a&&!JO(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,v.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),QO=(e,t)=>{let n=(0,v.forwardRef)(({className:n,...r},i)=>(0,v.createElement)(ZO,{ref:i,iconNode:t,className:UO(`lucide-${WO(KO(e))}`,`lucide-${e}`,n),...r}));return n.displayName=KO(e),n},$O=QO(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),ek=QO(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),tk=QO(`eye-off`,[[`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`}]]),nk=QO(`eye`,[[`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`}]]),rk=QO(`git-compare`,[[`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`}]]),ik=QO(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),ak=QO(`key-round`,[[`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`}]]),ok=QO(`log-in`,[[`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`}]]),sk=QO(`pencil`,[[`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`}]]),ck=QO(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),lk=QO(`rotate-ccw`,[[`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`}]]),uk=QO(`save`,[[`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`}]]),dk=QO(`trash-2`,[[`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`}]]),fk=QO(`triangle-alert`,[[`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`}]]);function pk(e,t){return function(){return e.apply(t,arguments)}}var{toString:mk}=Object.prototype,{getPrototypeOf:hk}=Object,{iterator:gk,toStringTag:_k}=Symbol,vk=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),yk=(e,t)=>{let n=e,r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),vk(n,t))return!0;n=hk(n)}return!1},bk=(e,t)=>e!=null&&yk(e,t)?e[t]:void 0,xk=(e=>t=>{let n=mk.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Sk=e=>(e=e.toLowerCase(),t=>xk(t)===e),Ck=e=>t=>typeof t===e,{isArray:wk}=Array,Tk=Ck(`undefined`);function Ek(e){return e!==null&&!Tk(e)&&e.constructor!==null&&!Tk(e.constructor)&&Ak(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var Dk=Sk(`ArrayBuffer`);function Ok(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Dk(e.buffer),t}var kk=Ck(`string`),Ak=Ck(`function`),jk=Ck(`number`),Mk=e=>typeof e==`object`&&!!e,Nk=e=>e===!0||e===!1,Pk=e=>{if(!Mk(e))return!1;let t=hk(e);return(t===null||t===Object.prototype||hk(t)===null)&&!yk(e,_k)&&!yk(e,gk)},Fk=e=>{if(!Mk(e)||Ek(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Ik=Sk(`Date`),Lk=Sk(`File`),Rk=e=>!!(e&&e.uri!==void 0),zk=e=>e&&e.getParts!==void 0,Bk=Sk(`Blob`),Vk=Sk(`FileList`),Hk=e=>Mk(e)&&Ak(e.pipe);function Uk(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var Wk=Uk(),Gk=Wk.FormData===void 0?void 0:Wk.FormData,Kk=e=>{if(!e)return!1;if(Gk&&e instanceof Gk)return!0;let t=hk(e);if(!t||t===Object.prototype||!Ak(e.append))return!1;let n=xk(e);return n===`formdata`||n===`object`&&Ak(e.toString)&&e.toString()===`[object FormData]`},qk=Sk(`URLSearchParams`),[Jk,Yk,Xk,Zk]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(Sk),Qk=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function $k(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),wk(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(Ek(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 eA(e,t){if(Ek(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 tA=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,nA=e=>!Tk(e)&&e!==tA;function rA(...e){let{caseless:t,skipUndefined:n}=nA(this)&&this||{},r={},i=(e,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=t&&typeof i==`string`&&eA(r,i)||i,o=vk(r,a)?r[a]:void 0;Pk(o)&&Pk(e)?r[a]=rA(o,e):Pk(e)?r[a]=rA({},e):wk(e)?r[a]=e.slice():(!n||!Tk(e))&&(r[a]=e)};for(let t=0,n=e.length;t<n;t++){let n=e[t];if(!n||Ek(n)||($k(n,i),typeof n!=`object`||wk(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){let t=r[e];hA.call(n,t)&&i(n[t],t)}}return r}var iA=(e,t,n,{allOwnKeys:r}={})=>($k(t,(t,r)=>{n&&Ak(t)?Object.defineProperty(e,r,{__proto__:null,value:pk(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),aA=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),oA=(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)},sA=(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&&hk(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},cA=(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},lA=e=>{if(!e)return null;if(wk(e))return e;let t=e.length;if(!jk(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},uA=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&hk(Uint8Array)),dA=(e,t)=>{let n=(e&&e[gk]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},fA=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},pA=Sk(`HTMLFormElement`),mA=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),{propertyIsEnumerable:hA}=Object.prototype,gA=Sk(`RegExp`),_A=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};$k(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},vA=e=>{_A(e,(t,n)=>{if(Ak(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];if(Ak(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},yA=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return wk(e)?r(e):r(String(e).split(t)),n},bA=()=>{},xA=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function SA(e){return!!(e&&Ak(e.append)&&e[_k]===`FormData`&&e[gk])}var CA=e=>{let t=new WeakSet,n=e=>{if(Mk(e)){if(t.has(e))return;if(Ek(e))return e;if(!(`toJSON`in e)){t.add(e);let r=wk(e)?[]:{};return $k(e,(e,t)=>{let i=n(e);!Tk(i)&&(r[t]=i)}),t.delete(e),r}}return e};return n(e)},wA=Sk(`AsyncFunction`),TA=e=>e&&(Mk(e)||Ak(e))&&Ak(e.then)&&Ak(e.catch),EA=((e,t)=>e?setImmediate:t?((e,t)=>(tA.addEventListener(`message`,({source:n,data:r})=>{n===tA&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),tA.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,Ak(tA.postMessage)),DA=typeof queueMicrotask<`u`?queueMicrotask.bind(tA):typeof process<`u`&&process.nextTick||EA,OA=e=>e!=null&&Ak(e[gk]),X={isArray:wk,isArrayBuffer:Dk,isBuffer:Ek,isFormData:Kk,isArrayBufferView:Ok,isString:kk,isNumber:jk,isBoolean:Nk,isObject:Mk,isPlainObject:Pk,isEmptyObject:Fk,isReadableStream:Jk,isRequest:Yk,isResponse:Xk,isHeaders:Zk,isUndefined:Tk,isDate:Ik,isFile:Lk,isReactNativeBlob:Rk,isReactNative:zk,isBlob:Bk,isRegExp:gA,isFunction:Ak,isStream:Hk,isURLSearchParams:qk,isTypedArray:uA,isFileList:Vk,forEach:$k,merge:rA,extend:iA,trim:Qk,stripBOM:aA,inherits:oA,toFlatObject:sA,kindOf:xk,kindOfTest:Sk,endsWith:cA,toArray:lA,forEachEntry:dA,matchAll:fA,isHTMLForm:pA,hasOwnProperty:vk,hasOwnProp:vk,hasOwnInPrototypeChain:yk,getSafeProp:bk,reduceDescriptors:_A,freezeMethods:vA,toObjectSet:yA,toCamelCase:mA,noop:bA,toFiniteNumber:xA,findKey:eA,global:tA,isContextDefined:nA,isSpecCompliantForm:SA,toJSONObject:CA,isAsyncFn:wA,isThenable:TA,setImmediate:EA,asap:DA,isIterable:OA,isSafeIterable:e=>e!=null&&yk(e,gk)&&OA(e)},kA=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`]),AA=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(),!(!n||t[n]&&kA[n])&&(n===`set-cookie`?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+`, `+r:r)}),t};function jA(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 MA=RegExp(`[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+`,`g`),NA=RegExp(`[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+`,`g`);function PA(e,t){return X.isArray(e)?e.map(e=>PA(e,t)):jA(String(e).replace(t,``))}var FA=e=>PA(e,MA),IA=e=>PA(e,NA);function LA(e){let t=Object.create(null);return X.forEach(e.toJSON(),(e,n)=>{t[n]=IA(e)}),t}var RA=Symbol(`internals`);function zA(e){return e&&String(e).trim().toLowerCase()}function BA(e){return e===!1||e==null?e:X.isArray(e)?e.map(BA):FA(String(e))}function VA(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 HA=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function UA(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 WA(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function GA(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 KA=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=zA(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]=BA(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())&&!HA(e))a(AA(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=zA(e),e){let n=X.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return VA(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=zA(e),e){let n=X.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||UA(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=zA(e),e){let i=X.findKey(n,e);i&&(!t||UA(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||UA(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]=BA(r),delete t[i];return}let o=e?WA(i):String(i).trim();o!==i&&delete t[i],t[o]=BA(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(){return this.get(`set-cookie`)||[]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[RA]=this[RA]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=zA(e);t[r]||(GA(n,e),t[r]=!0)}return X.isArray(e)?e.forEach(r):r(e),this}};KA.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),X.reduceDescriptors(KA.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),X.freezeMethods(KA);var qA=`[REDACTED ****]`;function JA(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 YA(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 KA&&(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)&&JA(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?qA:i(a);X.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}var Z=class e extends Error{static from(t,n,r,i,a,o){let s=new e(t.message,n||t.code,r,i,a);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),o&&Object.assign(s,o),s}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?YA(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 XA(e){return X.isPlainObject(e)||X.isArray(e)}function ZA(e){return X.endsWith(e,`[]`)?e.slice(0,-2):e}function QA(e,t,n){return e?e.concat(t).map(function(e,t){return e=ZA(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function $A(e){return X.isArray(e)&&!e.some(XA)}var ej=X.toFlatObject(X,{},null,function(e){return/^is[A-Z]/.test(e)});function tj(e,t,n){if(!X.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=X.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!X.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||m,a=n.dots,o=n.indexes,s=n.Blob||typeof Blob<`u`&&Blob,c=n.maxDepth===void 0?100:n.maxDepth,l=s&&X.isSpecCompliantForm(t),u=[];if(!X.isFunction(i))throw TypeError(`visitor must be a function`);function d(e){if(e===null)return``;if(X.isDate(e))return e.toISOString();if(X.isBoolean(e))return e.toString();if(!l&&X.isBlob(e))throw new Z(`Blob is not supported. Use a Buffer instead.`);return X.isArrayBuffer(e)||X.isTypedArray(e)?l&&typeof Blob==`function`?new Blob([e]):Buffer.from(e):e}function f(e){if(e>c)throw new Z(`Object is too deeply nested (`+e+` levels). Max depth: `+c,Z.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(e,t){if(c===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),f(t+n.length-1),r})}function m(e,n,i){let s=e;if(X.isReactNative(t)&&X.isReactNativeBlob(e))return t.append(QA(i,n,a),d(e)),!1;if(e&&!i&&typeof e==`object`){if(X.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=p(e,1);else if(X.isArray(e)&&$A(e)||(X.isFileList(e)||X.endsWith(n,`[]`))&&(s=X.toArray(e)))return n=ZA(n),s.forEach(function(e,r){!(X.isUndefined(e)||e===null)&&t.append(o===!0?QA([n],r,a):o===null?n:n+`[]`,d(e))}),!1}return XA(e)?!0:(t.append(QA(i,n,a),d(e)),!1)}let h=Object.assign(ej,{defaultVisitor:m,convertValue:d,isVisitable:XA});function g(e,n,r=0){if(!X.isUndefined(e)){if(f(r),u.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));u.push(e),X.forEach(e,function(e,a){(!(X.isUndefined(e)||e===null)&&i.call(t,e,X.isString(a)?a.trim():a,n,h))===!0&&g(e,n?n.concat(a):[a],r+1)}),u.pop()}}if(!X.isObject(e))throw TypeError(`data must be an object`);return g(e),t}function nj(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function rj(e,t){this._pairs=[],e&&tj(e,this,t)}var ij=rj.prototype;ij.append=function(e,t){this._pairs.push([e,t])},ij.toString=function(e){let t=e?function(t){return e.call(this,t,nj)}:nj;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function aj(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function oj(e,t,n){if(!t)return e;let r=X.isFunction(n)?{serialize:n}:n,i=X.getSafeProp(r,`encode`)||aj,a=X.getSafeProp(r,`serialize`),o;if(o=a?a(t,r):X.isURLSearchParams(t)?t.toString():new rj(t,r).toString(i),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var sj=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&=[]}forEach(e){X.forEach(this.handlers,function(t){t!==null&&e(t)})}},cj={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},lj={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:rj,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},uj=s({hasBrowserEnv:()=>dj,hasStandardBrowserEnv:()=>pj,hasStandardBrowserWebWorkerEnv:()=>mj,navigator:()=>fj,origin:()=>hj}),dj=typeof window<`u`&&typeof document<`u`,fj=typeof navigator==`object`&&navigator||void 0,pj=dj&&(!fj||[`ReactNative`,`NativeScript`,`NS`].indexOf(fj.product)<0),mj=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,hj=dj&&window.location.href||`http://localhost`,gj={...uj,...lj};function _j(e,t){return tj(e,new gj.classes.URLSearchParams,{visitor:function(e,t,n,r){return gj.isNode&&X.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}var vj=100;function yj(e){if(e>vj)throw new Z(`FormData field is too deeply nested (`+e+` levels). Max depth: `+vj,Z.ERR_FORM_DATA_DEPTH_EXCEEDED)}function bj(e){let t=[],n=/\w+|\[(\w*)]/g,r;for(;(r=n.exec(e))!==null;)yj(t.length),t.push(r[0]===`[]`?``:r[1]||r[0]);return t}function xj(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 Sj(e){function t(e,n,r,i){yj(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]=xj(r[a])),!o)}if(X.isFormData(e)&&X.isFunction(e.entries)){let n={};return X.forEachEntry(e,(e,r)=>{t(bj(e),r,n,0)}),n}return null}var Cj=(e,t)=>e!=null&&X.hasOwnProp(e,t)?e[t]:void 0;function wj(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 Tj={transitional:cj,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(Sj(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=Cj(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return _j(e,t).toString();if((a=X.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=Cj(this,`env`),r=n&&n.FormData;return tj(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),wj(e)):e}],transformResponse:[function(e){let t=Cj(this,`transitional`)||Tj.transitional,n=t&&t.forcedJSONParsing,r=Cj(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,Cj(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?Z.from(e,Z.ERR_BAD_RESPONSE,this,null,Cj(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:gj.classes.FormData,Blob:gj.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};X.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`],e=>{Tj.headers[e]={}});function Ej(e,t){let n=this||Tj,r=t||n,i=KA.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 Dj(e){return!!(e&&e.__CANCEL__)}var Oj=class extends Z{constructor(e,t,n){super(e??`canceled`,Z.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function kj(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))}function Aj(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||``}function jj(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 Mj(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)]}var Nj=(e,t,n=3)=>{let r=0,i=jj(50,250);return Mj(n=>{if(!n||typeof n.loaded!=`number`)return;let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=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)},Pj=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Fj=e=>(...t)=>X.asap(()=>e(...t)),Ij=gj.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,gj.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(gj.origin),gj.navigator&&/(msie|trident)/i.test(gj.navigator.userAgent)):()=>!0,Lj=gj.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)return decodeURIComponent(r.slice(i+1))}return null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function Rj(e){return typeof e==`string`?/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e):!1}function zj(e,t){return t?e.replace(/\/?\/$/,``)+`/`+t.replace(/^\/+/,``):e}var Bj=/^https?:(?!\/\/)/i,Vj=/[\t\n\r]/g;function Hj(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function Uj(e){return Hj(e).replace(Vj,``)}function Wj(e,t){if(typeof e==`string`&&Bj.test(Uj(e)))throw new Z(`Invalid URL: missing "//" after protocol`,Z.ERR_INVALID_URL,t)}function Gj(e,t,n,r){Wj(t,r);let i=!Rj(t);return e&&(i||n===!1)?(Wj(e,r),zj(e,t)):t}var Kj=e=>e instanceof KA?{...e}:e;function qj(e,t){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,timeoutMessage: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(Kj(e),Kj(t),n,!0)};return X.forEach(Object.keys({...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 Jj=[`content-type`,`content-length`];function Yj(e,t,n){if(n!==`content-only`){e.set(t);return}Object.entries(t).forEach(([t,n])=>{Jj.includes(t.toLowerCase())&&e.set(t,n)})}var Xj=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function Zj(e){let t=qj({},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=KA.from(s),t.url=oj(Gj(l,d,u,t),n(`params`),n(`paramsSerializer`)),c){let e=X.getSafeProp(c,`username`)||``,t=X.getSafeProp(c,`password`)||``;s.set(`Authorization`,`Basic `+btoa(e+`:`+(t?Xj(t):``)))}if(X.isFormData(r)&&(gj.hasStandardBrowserEnv||gj.hasStandardBrowserWebWorkerEnv||X.isReactNative(r)?s.setContentType(void 0):X.isFunction(r.getHeaders)&&Yj(s,r.getHeaders(),n(`formDataHeaderPolicy`))),gj.hasStandardBrowserEnv&&(X.isFunction(i)&&(i=i(t)),i===!0||i==null&&Ij(t.url))){let e=a&&o&&Lj.read(o);e&&s.set(a,e)}return t}var Qj=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=Zj(e),i=r.data,a=KA.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p;function m(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function g(){if(!h)return;let r=KA.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());kj(function(e){t(e),m()},function(e){n(e),m()},{data:!o||o===`text`||o===`json`?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}`onloadend`in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.startsWith(`file:`))||setTimeout(g)},h.onabort=function(){h&&=(n(new Z(`Request aborted`,Z.ECONNABORTED,e,h)),m(),null)},h.onerror=function(t){let r=new Z(t&&t.message?t.message:`Network Error`,Z.ERR_NETWORK,e,h);r.event=t||null,n(r),m(),h=null},h.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||cj;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Z(t,i.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,e,h)),m(),h=null},i===void 0&&a.setContentType(null),`setRequestHeader`in h&&X.forEach(LA(a),function(e,t){h.setRequestHeader(t,e)}),X.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),o&&o!==`json`&&(h.responseType=r.responseType),c&&([d,p]=Nj(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=Nj(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new Oj(null,e,h):t),h.abort(),m(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let _=Aj(r.url);if(_&&!gj.protocols.includes(_)){n(new Z(`Unsupported protocol `+_+`:`,Z.ERR_BAD_REQUEST,e));return}h.send(i||null)})},$j=(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 Oj(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=>e.addEventListener(`abort`,i));let{signal:s}=n;return s.unsubscribe=()=>X.asap(o),s},eM=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},tM=async function*(e,t){for await(let n of nM(e))yield*eM(n,t)},nM=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()}},rM=(e,t,n,r)=>{let i=tM(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})},iM=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,aM=(e,t,n)=>t+2<n&&iM(e.charCodeAt(t+1))&&iM(e.charCodeAt(t+2));function oM(e){if(!e||typeof e!=`string`||!e.startsWith(`data:`))return 0;let t=e.indexOf(`,`);if(t<0)return 0;let n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let e=r.length,t=r.length;for(let n=0;n<t;n++)if(r.charCodeAt(n)===37&&n+2<t){let t=r.charCodeAt(n+1),i=r.charCodeAt(n+2);iM(t)&&iM(i)&&(e-=2,n+=2)}let n=0,i=t-1,a=e=>e>=2&&r.charCodeAt(e-2)===37&&r.charCodeAt(e-1)===51&&(r.charCodeAt(e)===68||r.charCodeAt(e)===100);i>=0&&(r.charCodeAt(i)===61?(n++,i--):a(i)&&(n++,i-=3)),n===1&&i>=0&&(r.charCodeAt(i)===61||a(i))&&n++;let o=Math.floor(e/4)*3-(n||0);return o>0?o:0}let i=0;for(let e=0,t=r.length;e<t;e++){let n=r.charCodeAt(e);if(n===37&&aM(r,e,t))i+=1,e+=2;else if(n<128)i+=1;else if(n<2048)i+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=r.charCodeAt(e+1);t>=56320&&t<=57343?(i+=4,e++):i+=3}else i+=3}return i}var sM=`1.18.0`,cM=64*1024,{isFunction:lM}=X,uM=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),dM=e=>{if(!X.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},fM=(e,...t)=>{try{return!!e(...t)}catch{return!1}},pM=e=>{let t=e.indexOf(`://`),n=e;return t!==-1&&(n=n.slice(t+3)),n.includes(`@`)||n.includes(`:`)},mM=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?lM(i):typeof fetch==`function`,c=lM(a),l=lM(o);if(!s)return!1;let u=s&&lM(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&&fM(()=>{let e=!1,t=new a(gj.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&&fM(()=>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(gj.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}=Zj(e),E=X.isNumber(w)&&w>-1,D=X.isNumber(T)&&T>-1,O=t=>X.hasOwnProp(e,t)?e[t]:void 0,k=i||fetch;b=b?(b+``).toLowerCase():`text`;let A=$j([l,d&&d.toAbortSignal()],_),j=null,M=A&&A.unsubscribe&&(()=>{A.unsubscribe()}),ee,N=null,te=()=>new Z(`Request body larger than maxBodyLength limit`,Z.ERR_BAD_REQUEST,e,j);try{let i,l=O(`auth`);if(l&&(i={username:X.getSafeProp(l,`username`)||``,password:X.getSafeProp(l,`password`)||``}),pM(t)){let e=new URL(t,gj.origin);!i&&(e.username||e.password)&&(i={username:dM(e.username),password:dM(e.password)}),(e.username||e.password)&&(e.username=``,e.password=``,t=e.href)}if(i&&(x.delete(`authorization`),x.set(`Authorization`,`Basic `+btoa(uM((i.username||``)+`:`+(i.password||``))))),E&&typeof t==`string`&&t.startsWith(`data:`)&&oM(t)>w)throw new Z(`maxContentLength size of `+w+` exceeded`,Z.ERR_BAD_RESPONSE,e,j);if(D&&n!==`get`&&n!==`head`){let e=await h(s);if(typeof e==`number`&&isFinite(e)&&(ee=e,e>T))throw te()}let d=D&&(X.isReadableStream(s)||X.isStream(s)),_=(e,t,n)=>rM(e,cM,e=>{if(D&&e>T)throw N=te();t&&t(e)},n);if(f&&n!==`get`&&n!==`head`&&(y||d)){if(ee??=await g(x,s),ee!==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&&Pj(ee,Nj(Fj(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,j);X.isString(S)||(S=S?`include`:`omit`);let P=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/`+sM,!1);let F={...C,signal:A,method:n.toUpperCase(),headers:LA(x.normalize()),body:s,duplex:`half`,credentials:P?S:void 0};j=c&&new a(t,F);let ne=await(c?k(j,C):k(t,F)),re=KA.from(ne.headers);if(E){let t=X.toFiniteNumber(re.getContentLength());if(t!=null&&t>w)throw new Z(`maxContentLength size of `+w+` exceeded`,Z.ERR_BAD_RESPONSE,e,j)}let ie=p&&(b===`stream`||b===`response`);if(p&&ne.body&&(v||E||ie&&M)){let t={};[`status`,`statusText`,`headers`].forEach(e=>{t[e]=ne[e]});let n=X.toFiniteNumber(re.getContentLength()),[r,i]=v&&Pj(n,Nj(Fj(v),!0))||[],a=0;ne=new o(rM(ne.body,cM,t=>{if(E&&(a=t,a>w))throw new Z(`maxContentLength size of `+w+` exceeded`,Z.ERR_BAD_RESPONSE,e,j);r&&r(t)},()=>{i&&i(),M&&M()}),t)}b||=`text`;let ae=await m[X.findKey(m,b)||`text`](ne,e);if(E&&!p&&!ie){let t;if(ae!=null&&(typeof ae.byteLength==`number`?t=ae.byteLength:typeof ae.size==`number`?t=ae.size:typeof ae==`string`&&(t=typeof r==`function`?new r().encode(ae).byteLength:ae.length)),typeof t==`number`&&t>w)throw new Z(`maxContentLength size of `+w+` exceeded`,Z.ERR_BAD_RESPONSE,e,j)}return!ie&&M&&M(),await new Promise((t,n)=>{kj(t,n,{data:ae,headers:KA.from(ne.headers),status:ne.status,statusText:ne.statusText,config:e,request:j})})}catch(t){if(M&&M(),A&&A.aborted&&A.reason instanceof Z){let n=A.reason;throw n.config=e,j&&(n.request=j),t!==n&&(n.cause=t),n}throw N?(j&&!N.request&&(N.request=j),N):t instanceof Z?(j&&!t.request&&(t.request=j),t):t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)?Object.assign(new Z(`Network Error`,Z.ERR_NETWORK,e,j,t&&t.response),{cause:t.cause||t}):Z.from(t,t&&t.code,e,j,t&&t.response)}}},hM=new Map,gM=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=hM;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:mM(t)),l=c;return c};gM();var _M={http:null,xhr:Qj,fetch:{get:gM}};X.forEach(_M,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var vM=e=>`- ${e}`,yM=e=>X.isFunction(e)||e===null||e===!1;function bM(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,!yM(r)&&(i=_M[(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(vM).join(`
26
+ `):` `+vM(e[0]):`as no adapter specified`),`ERR_NOT_SUPPORT`)}return i}var xM={getAdapter:bM,adapters:_M};function SM(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Oj(null,e)}function CM(e){return SM(e),e.headers=KA.from(e.headers),e.data=Ej.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),xM.getAdapter(e.adapter||Tj.adapter,e)(e).then(function(t){SM(e),e.response=t;try{t.data=Ej.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=KA.from(t.headers),t},function(t){if(!Dj(t)&&(SM(e),t&&t.response)){e.response=t.response;try{t.response.data=Ej.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=KA.from(t.response.headers)}return Promise.reject(t)})}var wM={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{wM[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var TM={};wM.transitional=function(e,t,n){function r(e,t){return`[Axios v`+sM+`] 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&&!TM[i]&&(TM[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):!0}},wM.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function EM(e,t,n){if(typeof e!=`object`)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 DM={assertOptions:EM,validators:wM},OM=DM.validators,kM=class{constructor(e){this.defaults=e||{},this.interceptors={request:new sj,response:new sj}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=(()=>{if(!t.stack)return``;let e=t.stack.indexOf(`
27
27
  `);return e===-1?``:t.stack.slice(e+1)})();try{if(!e.stack)e.stack=n;else if(n){let t=n.indexOf(`
28
28
  `),r=t===-1?-1:n.indexOf(`
29
29
  `,t+1),i=r===-1?``:n.slice(r+1);String(e.stack).endsWith(i)||(e.stack+=`
30
- `+n)}}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=Gj(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&TM.assertOptions(n,{silentJSONParsing:EM.transitional(EM.boolean),forcedJSONParsing:EM.transitional(EM.boolean),clarifyTimeoutError:EM.transitional(EM.boolean),legacyInterceptorReqResOrdering:EM.transitional(EM.boolean),advertiseZstdAcceptEncoding:EM.transitional(EM.boolean),validateStatusUndefinedResolves:EM.transitional(EM.boolean)},!1),r!=null&&(X.isFunction(r)?t.paramsSerializer={serialize:r}:TM.assertOptions(r,{encode:EM.function,serialize:EM.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),TM.assertOptions(t,{baseUrl:EM.spelling(`baseURL`),withXsrfToken:EM.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&X.merge(i.common,i[t.method]);i&&X.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`,`common`],e=>{delete i[e]}),t.headers=WA.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||oj;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=[xM.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(f)}catch(e){t.call(this,e);break}}try{l=xM.call(this,f)}catch(e){return Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=Gj(this.defaults,e),ij(Uj(e.baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};X.forEach([`delete`,`get`,`head`,`options`],function(e){DM.prototype[e]=function(t,n){return this.request(Gj(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(Gj(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}DM.prototype[e]=t(),e!==`query`&&(DM.prototype[e+`Form`]=t(!0))});var OM=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 Ej(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 kM(e){return function(t){return e.apply(null,t)}}function AM(e){return X.isObject(e)&&e.isAxiosError===!0}var jM={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,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity: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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(jM).forEach(([e,t])=>{jM[t]=e});function MM(e){let t=new DM(e),n=dk(DM.prototype.request,t);return X.extend(n,DM.prototype,t,{allOwnKeys:!0}),X.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return MM(Gj(e,t))},n}var NM=MM(Cj);NM.Axios=DM,NM.CanceledError=Ej,NM.CancelToken=OM,NM.isCancel=Tj,NM.VERSION=aM,NM.toFormData=$A,NM.AxiosError=Z,NM.Cancel=NM.CanceledError,NM.all=function(e){return Promise.all(e)},NM.spread=kM,NM.isAxiosError=AM,NM.mergeConfig=Gj,NM.AxiosHeaders=WA,NM.formToJSON=e=>bj(X.isHTMLForm(e)?new FormData(e):e),NM.getAdapter=yM.getAdapter,NM.HttpStatusCode=jM,NM.default=NM;var PM=e=>Array.from(e).map(e=>e.charCodeAt(0).toString(16).padStart(2,`0`)).join(``),FM=e=>btoa(unescape(encodeURIComponent(e))),IM=(e,t=5)=>Array.from(e).map(e=>String.fromCharCode(e.charCodeAt(0)+t)).join(``),LM=e=>{let t=PM(IM(e)),n=FM(Array.from(t).reverse().join(``));return FM(encodeURIComponent(n))},RM=[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],zM=e=>{if(typeof TextEncoder<`u`)return new TextEncoder().encode(e);let t=unescape(encodeURIComponent(e));return Uint8Array.from(t,e=>e.charCodeAt(0))},BM=e=>Array.from(e).map(e=>e.toString(16).padStart(2,`0`)).join(``),VM=(...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},HM=(e,t)=>e>>>t|e<<32-t,UM=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=HM(i[e-15],7)^HM(i[e-15],18)^i[e-15]>>>3,n=HM(i[e-2],17)^HM(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=HM(h,6)^HM(h,11)^HM(h,25),a=h&g^~h&_,o=v+r+a+RM[e]+i[e]>>>0,s=(HM(t,2)^HM(t,13)^HM(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},WM=()=>{let e=globalThis.crypto?.subtle,t=e;return!e||typeof t?.digest!=`function`||typeof t.importKey!=`function`||typeof t.sign!=`function`?null:e},GM=async e=>{let t=zM(e),n=WM();if(n){let e=await n.digest(`SHA-256`,t);return BM(new Uint8Array(e))}return BM(UM(t))},KM=async(e,t)=>{let n=zM(e),r=zM(t),i=WM();if(i){let e=await i.importKey(`raw`,r,{name:`HMAC`,hash:`SHA-256`},!1,[`sign`]),t=await i.sign(`HMAC`,e,n);return BM(new Uint8Array(t))}r.length>64&&(r=UM(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}),BM(UM(VM(o,UM(VM(s,n)))))},qM=()=>{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)}`},JM=async e=>{let t=String(Date.now()),n=qM();return{"x-signature":LM(await KM(`${e.method.toUpperCase()}|${e.url}|${e.body}|${t}|${n}`,e.token)),"x-timestamp":t,"x-nonce":n}},YM=`/kkk/v1`,XM=null,ZM=(e=``,t=``)=>/^https?:\/\//.test(t)?new URL(t).pathname:`${e.replace(/\/$/,``)}${t.startsWith(`/`)?t:`/${t}`}`,QM=e=>e.method?.toUpperCase()===`GET`?``:e.data===void 0||e.data===null?`{}`:typeof e.data==`string`?e.data:JSON.stringify(e.data),$M=async()=>XM||(XM=(async()=>{let e=TC(),t=EC();if(!e||!t)return!1;try{let n=(await NM.post(`/api/v1/refresh`,{accessToken:e,refreshToken:t})).data.data?.accessToken;return n?(AC(n),!0):!1}catch{return!1}finally{XM=null}})(),XM),eN=NM.create({timeout:1e4,headers:{"Content-Type":`application/json`}});eN.interceptors.request.use(async e=>{let t=TC(),n=DC();t&&e.headers.set(`Authorization`,`Bearer ${t}`),n&&e.headers.set(`x-user-id`,n);let r=ZM(e.baseURL,e.url);if(t&&r.startsWith(YM)){let n=await JM({method:e.method||`GET`,url:r,body:QM(e),token:t});e.headers.set(`x-original-url`,r),Object.entries(n).forEach(([t,n])=>{e.headers.set(t,n)})}return e}),eN.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 $M()))return eN(t);throw(n===401||n===419||n===420)&&jC(),Error(e.response?.data?.message||e.message)});var tN=async e=>{let t=await GM(e),n=await NM.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||`登录失败`);kC(n.data.data)},nN=`/kkk/v1`,rN=(e,t)=>{if((e.success||e.code===200)&&e.data!==void 0)return e.data;throw Error(e.message||t)},iN=async()=>rN((await eN.get(`${nN}/config`)).data,`获取配置失败`),aN=async e=>{rN((await eN.post(`${nN}/config`,e)).data,`保存配置失败`)},oN=()=>typeof window>`u`?!1:window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,sN=e=>oN()?.01:e,cN=e=>oN()?0:e,lN={duration:sN(.35),ease:`power2.out`,stagger:cN(.03)},uN={opacity:0,y:12},dN={opacity:1,y:0,...lN};function fN(e){let t=/^\/(.*)\/([gimyu]*)$/.exec(e.toString());if(!t)throw Error(`Invalid RegExp`);return new RegExp(t[1]??``,t[2])}function pN(e){if(typeof e!=`object`)return e;if(e===null)return null;if(Array.isArray(e))return e.map(pN);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return fN(e);let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=pN(e[n]));return t}function mN(e,t){if(e.length===0)throw Error(t||`Expected a non-empty array`)}function hN(e,t){if(e.length<2)throw Error(t||`Expected an array with at least 2 items`)}var gN=e=>e[e.length-1],_N=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?(mN(this.children),gN(this.children).next=e,this.children.push(e)):(this.children=[e],this.nextAfterChildren=this.next||null,this.next=e),e.next=this,this}},vN=class extends _N{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:pN;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)}},yN=class extends _N{constructor(e,t){super(),this.left=e,this.delta=t,this.pipe=`patch`}},bN=class extends _N{constructor(e){super(),this.delta=e,this.pipe=`reverse`}},xN=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)}},SN=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}},CN=(e,t,n,r)=>e[n]===t[r],wN=(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},TN=(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},EN={get:(e,t,n,r)=>{let i=r||{};return TN(wN(e,t,n||CN,i),e,t,i)}},DN=3;function ON(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 kN(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?!1:c===l}var AN=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=!ON(s,c,l,u));n<l&&n<u&&kN(s,c,n,n,t);)i=n,d=new vN(s[i],c[i]),e.push(d,i),n++;for(;r+n<l&&r+n<u&&kN(s,c,l-1-r,u-1-r,t);)a=l-1-r,o=u-1-r,d=new vN(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=EN.get(p,m,kN,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&&kN(p,m,a-n,i-n,t)){u.splice(1,2,i,DN),u.splice(1,2,i,DN),v||(u[0]=``),o=i,d=new vN(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 vN(s[a],c[o]),e.push(d,o)}}e.setResult(f).exit()};AN.filterName=`arrays`;var jN={numerically(e,t){return e-t},numericallyBy(e){return(t,n)=>t[e]-n[e]}},MN=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]===DN))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(jN.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]===DN&&s.push({index:e[1],value:t})}s=s.sort(jN.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 yN(a[t.index],t.delta);e.push(r,t.index)}if(!e.children){e.setResult(a).exit();return}e.exit()};MN.filterName=`arrays`;var NN=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()};NN.filterName=`arraysCollectChildren`;var PN=function(e){if(!e.nested){let t=e.delta;if(t[2]===DN){let n=t;e.newName=`_${n[1]}`,e.setResult([n[0],Number.parseInt(e.childName.substring(1),10),DN]).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 bN(n[t]);e.push(r,t)}e.exit()};PN.filterName=`arrays`;var FN=(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]===DN){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},IN=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=FN(n,r.childName,r.result)}i[a]!==r.result&&(i[a]=r.result)}e.setResult(i).exit()};IN.filterName=`arraysCollectChildren`;var LN=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()};LN.filterName=`dates`;var RN=new Set([`__proto__`]),zN=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()};zN.filterName=`collectChildren`;var BN=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 vN(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 vN(void 0,n[i]);e.push(t,i)}if(!e.children||e.children.length===0){e.setResult(void 0).exit();return}e.exit()};BN.filterName=`objects`;var VN=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(RN.has(t)||!Object.prototype.hasOwnProperty.call(n,t))continue;let i=e.left,a=new yN(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()};VN.filterName=`objects`;var HN=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;RN.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()};HN.filterName=`collectChildren`;var UN=function(e){if(!e.nested||e.delta._t)return;let t=e.delta,n=!1;for(let r in t){if(RN.has(r)||!Object.prototype.hasOwnProperty.call(t,r))continue;let i=new bN(t[r]);e.push(i,r),n=!0}if(!n){e.setResult({}).exit();return}e.exit()};UN.filterName=`objects`;var WN=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;RN.has(i)||n[i]!==t.result&&(n[i]=t.result)}e.setResult(n).exit()};WN.filterName=`collectChildren`;var GN=2,KN=60,qN=null;function JN(e,t){if(!qN){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}qN={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 qN}var YN=function(e){if(e.leftType!==`string`)return;let t=e.left,n=e.right,r=e.options?.textDiff?.minLength||KN;if(t.length<r||n.length<r){e.setResult([t,n]).exit();return}let i=JN(e.options);if(!i){e.setResult([t,n]).exit();return}let a=i.diff;e.setResult([a(t,n),0,GN]).exit()};YN.filterName=`texts`;var XN=function(e){if(e.nested)return;let t=e.delta;if(t[2]!==GN)return;let n=t,r=JN(e.options,!0).patch;e.setResult(r(e.left,n[0])).exit()};XN.filterName=`texts`;var ZN=e=>{let t=/^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/,n=e.split(`
30
+ `+n)}}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=qj(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&DM.assertOptions(n,{silentJSONParsing:OM.transitional(OM.boolean),forcedJSONParsing:OM.transitional(OM.boolean),clarifyTimeoutError:OM.transitional(OM.boolean),legacyInterceptorReqResOrdering:OM.transitional(OM.boolean),advertiseZstdAcceptEncoding:OM.transitional(OM.boolean),validateStatusUndefinedResolves:OM.transitional(OM.boolean)},!1),r!=null&&(X.isFunction(r)?t.paramsSerializer={serialize:r}:DM.assertOptions(r,{encode:OM.function,serialize:OM.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),DM.assertOptions(t,{baseUrl:OM.spelling(`baseURL`),withXsrfToken:OM.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&X.merge(i.common,i[t.method]);i&&X.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`,`common`],e=>{delete i[e]}),t.headers=KA.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||cj;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=[CM.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(f)}catch(e){t.call(this,e);break}}try{l=CM.call(this,f)}catch(e){return Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=qj(this.defaults,e),oj(Gj(e.baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};X.forEach([`delete`,`get`,`head`,`options`],function(e){kM.prototype[e]=function(t,n){return this.request(qj(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(qj(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}kM.prototype[e]=t(),e!==`query`&&(kM.prototype[e+`Form`]=t(!0))});var AM=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 Oj(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 jM(e){return function(t){return e.apply(null,t)}}function MM(e){return X.isObject(e)&&e.isAxiosError===!0}var NM={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,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity: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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(NM).forEach(([e,t])=>{NM[t]=e});function PM(e){let t=new kM(e),n=pk(kM.prototype.request,t);return X.extend(n,kM.prototype,t,{allOwnKeys:!0}),X.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return PM(qj(e,t))},n}var FM=PM(Tj);FM.Axios=kM,FM.CanceledError=Oj,FM.CancelToken=AM,FM.isCancel=Dj,FM.VERSION=sM,FM.toFormData=tj,FM.AxiosError=Z,FM.Cancel=FM.CanceledError,FM.all=function(e){return Promise.all(e)},FM.spread=jM,FM.isAxiosError=MM,FM.mergeConfig=qj,FM.AxiosHeaders=KA,FM.formToJSON=e=>Sj(X.isHTMLForm(e)?new FormData(e):e),FM.getAdapter=xM.getAdapter,FM.HttpStatusCode=NM,FM.default=FM;var IM=e=>Array.from(e).map(e=>e.charCodeAt(0).toString(16).padStart(2,`0`)).join(``),LM=e=>btoa(unescape(encodeURIComponent(e))),RM=(e,t=5)=>Array.from(e).map(e=>String.fromCharCode(e.charCodeAt(0)+t)).join(``),zM=e=>{let t=IM(RM(e)),n=LM(Array.from(t).reverse().join(``));return LM(encodeURIComponent(n))},BM=[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],VM=e=>{if(typeof TextEncoder<`u`)return new TextEncoder().encode(e);let t=unescape(encodeURIComponent(e));return Uint8Array.from(t,e=>e.charCodeAt(0))},HM=e=>Array.from(e).map(e=>e.toString(16).padStart(2,`0`)).join(``),UM=(...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},WM=(e,t)=>e>>>t|e<<32-t,GM=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=WM(i[e-15],7)^WM(i[e-15],18)^i[e-15]>>>3,n=WM(i[e-2],17)^WM(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=WM(h,6)^WM(h,11)^WM(h,25),a=h&g^~h&_,o=v+r+a+BM[e]+i[e]>>>0,s=(WM(t,2)^WM(t,13)^WM(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},KM=()=>{let e=globalThis.crypto?.subtle,t=e;return!e||typeof t?.digest!=`function`||typeof t.importKey!=`function`||typeof t.sign!=`function`?null:e},qM=async e=>{let t=VM(e),n=KM();if(n){let e=await n.digest(`SHA-256`,t);return HM(new Uint8Array(e))}return HM(GM(t))},JM=async(e,t)=>{let n=VM(e),r=VM(t),i=KM();if(i){let e=await i.importKey(`raw`,r,{name:`HMAC`,hash:`SHA-256`},!1,[`sign`]),t=await i.sign(`HMAC`,e,n);return HM(new Uint8Array(t))}r.length>64&&(r=GM(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}),HM(GM(UM(o,GM(UM(s,n)))))},YM=()=>{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)}`},XM=async e=>{let t=String(Date.now()),n=YM();return{"x-signature":zM(await JM(`${e.method.toUpperCase()}|${e.url}|${e.body}|${t}|${n}`,e.token)),"x-timestamp":t,"x-nonce":n}},ZM=`/kkk/v1`,QM=null,$M=(e=``,t=``)=>/^https?:\/\//.test(t)?new URL(t).pathname:`${e.replace(/\/$/,``)}${t.startsWith(`/`)?t:`/${t}`}`,eN=e=>e.method?.toUpperCase()===`GET`?``:e.data===void 0||e.data===null?`{}`:typeof e.data==`string`?e.data:JSON.stringify(e.data),tN=async()=>QM||(QM=(async()=>{let e=DC(),t=OC();if(!e||!t)return!1;try{let n=(await FM.post(`/api/v1/refresh`,{accessToken:e,refreshToken:t})).data.data?.accessToken;return n?(MC(n),!0):!1}catch{return!1}finally{QM=null}})(),QM),nN=FM.create({timeout:1e4,headers:{"Content-Type":`application/json`}});nN.interceptors.request.use(async e=>{let t=DC(),n=kC();t&&e.headers.set(`Authorization`,`Bearer ${t}`),n&&e.headers.set(`x-user-id`,n);let r=$M(e.baseURL,e.url);if(t&&r.startsWith(ZM)){let n=await XM({method:e.method||`GET`,url:r,body:eN(e),token:t});e.headers.set(`x-original-url`,r),Object.entries(n).forEach(([t,n])=>{e.headers.set(t,n)})}return e}),nN.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 tN()))return nN(t);throw(n===401||n===419||n===420)&&NC(),Error(e.response?.data?.message||e.message)});var rN=async e=>{let t=await qM(e),n=await FM.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||`登录失败`);jC(n.data.data)},iN=`/kkk/v1`,aN=(e,t)=>{if((e.success||e.code===200)&&e.data!==void 0)return e.data;throw Error(e.message||t)},oN=async()=>aN((await nN.get(`${iN}/config`)).data,`获取配置失败`),sN=async e=>{aN((await nN.post(`${iN}/config`,e)).data,`保存配置失败`)},cN=()=>typeof window>`u`?!1:window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,lN=e=>cN()?.01:e,uN=e=>cN()?0:e,dN={duration:lN(.35),ease:`power2.out`,stagger:uN(.03)},fN={opacity:0,y:12},pN={opacity:1,y:0,...dN};function mN(e){let t=/^\/(.*)\/([gimyu]*)$/.exec(e.toString());if(!t)throw Error(`Invalid RegExp`);return new RegExp(t[1]??``,t[2])}function hN(e){if(typeof e!=`object`)return e;if(e===null)return null;if(Array.isArray(e))return e.map(hN);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return mN(e);let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=hN(e[n]));return t}function gN(e,t){if(e.length===0)throw Error(t||`Expected a non-empty array`)}function _N(e,t){if(e.length<2)throw Error(t||`Expected an array with at least 2 items`)}var vN=e=>e[e.length-1],yN=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?(gN(this.children),vN(this.children).next=e,this.children.push(e)):(this.children=[e],this.nextAfterChildren=this.next||null,this.next=e),e.next=this,this}},bN=class extends yN{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:hN;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)}},xN=class extends yN{constructor(e,t){super(),this.left=e,this.delta=t,this.pipe=`patch`}},SN=class extends yN{constructor(e){super(),this.delta=e,this.pipe=`reverse`}},CN=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)}},wN=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}},TN=(e,t,n,r)=>e[n]===t[r],EN=(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},DN=(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},ON={get:(e,t,n,r)=>{let i=r||{};return DN(EN(e,t,n||TN,i),e,t,i)}},kN=3;function AN(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 jN(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?!1:c===l}var MN=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=!AN(s,c,l,u));n<l&&n<u&&jN(s,c,n,n,t);)i=n,d=new bN(s[i],c[i]),e.push(d,i),n++;for(;r+n<l&&r+n<u&&jN(s,c,l-1-r,u-1-r,t);)a=l-1-r,o=u-1-r,d=new bN(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=ON.get(p,m,jN,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&&jN(p,m,a-n,i-n,t)){u.splice(1,2,i,kN),u.splice(1,2,i,kN),v||(u[0]=``),o=i,d=new bN(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 bN(s[a],c[o]),e.push(d,o)}}e.setResult(f).exit()};MN.filterName=`arrays`;var NN={numerically(e,t){return e-t},numericallyBy(e){return(t,n)=>t[e]-n[e]}},PN=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]===kN))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(NN.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]===kN&&s.push({index:e[1],value:t})}s=s.sort(NN.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 xN(a[t.index],t.delta);e.push(r,t.index)}if(!e.children){e.setResult(a).exit();return}e.exit()};PN.filterName=`arrays`;var FN=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()};FN.filterName=`arraysCollectChildren`;var IN=function(e){if(!e.nested){let t=e.delta;if(t[2]===kN){let n=t;e.newName=`_${n[1]}`,e.setResult([n[0],Number.parseInt(e.childName.substring(1),10),kN]).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 SN(n[t]);e.push(r,t)}e.exit()};IN.filterName=`arrays`;var LN=(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]===kN){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},RN=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=LN(n,r.childName,r.result)}i[a]!==r.result&&(i[a]=r.result)}e.setResult(i).exit()};RN.filterName=`arraysCollectChildren`;var zN=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()};zN.filterName=`dates`;var BN=new Set([`__proto__`]),VN=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()};VN.filterName=`collectChildren`;var HN=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 bN(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 bN(void 0,n[i]);e.push(t,i)}if(!e.children||e.children.length===0){e.setResult(void 0).exit();return}e.exit()};HN.filterName=`objects`;var UN=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(BN.has(t)||!Object.prototype.hasOwnProperty.call(n,t))continue;let i=e.left,a=new xN(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()};UN.filterName=`objects`;var WN=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;BN.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()};WN.filterName=`collectChildren`;var GN=function(e){if(!e.nested||e.delta._t)return;let t=e.delta,n=!1;for(let r in t){if(BN.has(r)||!Object.prototype.hasOwnProperty.call(t,r))continue;let i=new SN(t[r]);e.push(i,r),n=!0}if(!n){e.setResult({}).exit();return}e.exit()};GN.filterName=`objects`;var KN=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;BN.has(i)||n[i]!==t.result&&(n[i]=t.result)}e.setResult(n).exit()};KN.filterName=`collectChildren`;var qN=2,JN=60,YN=null;function XN(e,t){if(!YN){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}YN={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 YN}var ZN=function(e){if(e.leftType!==`string`)return;let t=e.left,n=e.right,r=e.options?.textDiff?.minLength||JN;if(t.length<r||n.length<r){e.setResult([t,n]).exit();return}let i=XN(e.options);if(!i){e.setResult([t,n]).exit();return}let a=i.diff;e.setResult([a(t,n),0,qN]).exit()};ZN.filterName=`texts`;var QN=function(e){if(e.nested)return;let t=e.delta;if(t[2]!==qN)return;let n=t,r=XN(e.options,!0).patch;e.setResult(r(e.left,n[0])).exit()};QN.filterName=`texts`;var $N=e=>{let t=/^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/,n=e.split(`
31
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
- `)},QN=function(e){if(e.nested)return;let t=e.delta;if(t[2]!==GN)return;let n=t;e.setResult([ZN(n[0]),0,GN]).exit()};QN.filterName=`texts`;var $N=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())};$N.filterName=`trivial`;var eP=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()};eP.filterName=`trivial`;var tP=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()};tP.filterName=`trivial`;var nP=class{constructor(e){this.processor=new SN(e),this.processor.pipe(new xN(`diff`).append(zN,$N,LN,YN,BN,AN).shouldHaveResult()),this.processor.pipe(new xN(`patch`).append(HN,NN,eP,XN,VN,MN).shouldHaveResult()),this.processor.pipe(new xN(`reverse`).append(WN,IN,tP,QN,UN,PN).shouldHaveResult())}options(e){return this.processor.options(e)}diff(e,t){return this.processor.process(new vN(e,t))}patch(e,t){return this.processor.process(new yN(e,t))}reverse(e){return this.processor.process(new bN(e))}unpatch(e,t){return this.patch(e,this.reverse(t))}clone(e){return pN(e)}},rP;function iP(e,t){return rP||=new nP,rP.diff(e,t)}var aP=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`);hN(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}},oP=class extends aP{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">${sP(n)}</pre>`)}formatValue(e,t){let n=t===void 0?`undefined`:sP(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}">${sP(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(${cP.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="${sP(t)}"><div class="jsondiffpatch-property-name">${sP(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;">
32
+ `)},eP=function(e){if(e.nested)return;let t=e.delta;if(t[2]!==qN)return;let n=t;e.setResult([$N(n[0]),0,qN]).exit()};eP.filterName=`texts`;var tP=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())};tP.filterName=`trivial`;var nP=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()};nP.filterName=`trivial`;var rP=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()};rP.filterName=`trivial`;var iP=class{constructor(e){this.processor=new wN(e),this.processor.pipe(new CN(`diff`).append(VN,tP,zN,ZN,HN,MN).shouldHaveResult()),this.processor.pipe(new CN(`patch`).append(WN,FN,nP,QN,UN,PN).shouldHaveResult()),this.processor.pipe(new CN(`reverse`).append(KN,RN,rP,eP,GN,IN).shouldHaveResult())}options(e){return this.processor.options(e)}diff(e,t){return this.processor.process(new bN(e,t))}patch(e,t){return this.processor.process(new xN(e,t))}reverse(e){return this.processor.process(new SN(e))}unpatch(e,t){return this.patch(e,this.reverse(t))}clone(e){return hN(e)}},aP;function oP(e,t){return aP||=new iP,aP.diff(e,t)}var sP=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`);_N(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}},cP=class extends sP{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">${lP(n)}</pre>`)}formatValue(e,t){let n=t===void 0?`undefined`:lP(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}">${lP(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(${uP.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="${lP(t)}"><div class="jsondiffpatch-property-name">${lP(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
35
  <svg width="30" height="60" style="position: absolute; display: none;">
36
36
  <defs>
37
37
  <marker id="markerArrow" markerWidth="8" markerHeight="8"
@@ -44,4 +44,4 @@ Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}
44
44
  style="stroke: #88f; stroke-width: 2px; fill: none; stroke-opacity: 0.5; marker-end: url(#markerArrow);"
45
45
  ></path>
46
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 sP(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 cP=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}`)}})},lP=(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(()=>{cP(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)},uP=(e,t)=>lP(!1,e,t),dP;function fP(e,t){return dP||=new oP,dP.format(e,t)}var pP=e=>e.join(`.`),mP=e=>!!(e&&typeof e==`object`),Q=(e,t,n)=>e?t.reduce((e,t)=>{if(mP(e))return e[t]},e)??n:n,hP=(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];mP(r)||(i[n]={}),i=i[n]}return i[t[t.length-1]]=n,r},gP=(e,t)=>{let n=Number(e);return Number.isFinite(n)?n:t},_P=(e,t)=>Array.isArray(e)&&e.includes(t),vP=e=>!!(e&&typeof e==`object`&&`description`in e),yP=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:[`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];mP(a[n])||(a[n]={}),a=a[n]}a[e[e.length-1]]=i}return t},bP=e=>typeof e==`object`&&!!e,xP=e=>{let t={added:0,modified:0,deleted:0},n=e=>{if(bP(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},SP=({original:e,current:t,showUnchanged:n=!1})=>{let r=(0,v.useRef)(null),i=(0,v.useMemo)(()=>{if(!(!e||!t))return iP(yP(e),yP(t))},[e,t]),a=(0,v.useMemo)(()=>e?yP(e):void 0,[e]),o=(0,v.useMemo)(()=>{if(i)return fP(i,a)},[i,a]),s=(0,v.useMemo)(()=>xP(i),[i]);return(0,v.useEffect)(()=>{r.current&&(o?(r.current.innerHTML=o,n?lP(!0,r.current):uP(r.current)):r.current.innerHTML=``)},[o,n]),o?(0,V.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,V.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,V.jsx)(mh,{size:`sm`,color:`success`,variant:`soft`,children:(0,V.jsxs)(mh.Label,{children:[`+ `,s.added,` 新增`]})}),(0,V.jsx)(mh,{size:`sm`,color:`warning`,variant:`soft`,children:(0,V.jsxs)(mh.Label,{children:[`~ `,s.modified,` 修改`]})}),(0,V.jsx)(mh,{size:`sm`,color:`danger`,variant:`soft`,children:(0,V.jsxs)(mh.Label,{children:[`- `,s.deleted,` 删除`]})})]}),(0,V.jsx)(`div`,{className:`max-h-[60vh] overflow-auto rounded-xl border border-default-200 bg-surface p-4`,children:(0,V.jsx)(`div`,{ref:r,className:`min-w-fit`})})]}):(0,V.jsx)(`div`,{className:`flex flex-col items-center justify-center gap-2 py-10 text-center`,children:(0,V.jsx)(Pv,{className:`text-sm text-muted`,children:`当前没有检测到配置变更`})})},CP=`变更预览`,wP=`绿色 = 新增/改后的内容,红色 = 删除/改前的内容,灰色 = 没变化的内容。`,TP=({device:e,original:t,current:n,isOpen:r,onOpenChange:i})=>{let[a,o]=(0,v.useState)(!1),s=(0,V.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,V.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,V.jsx)(Pv,{className:`text-xs text-muted`,children:wP}),(0,V.jsx)(k_,{size:`sm`,isSelected:a,onChange:o,"aria-label":`显示未变更字段`,children:(0,V.jsxs)(k_.Content,{children:[(0,V.jsx)(k_.Control,{children:(0,V.jsx)(k_.Thumb,{})}),`显示未变更`]})})]}),(0,V.jsx)(SP,{original:t,current:n,showUnchanged:a})]}),c=(0,V.jsx)(Lm,{slot:`close`,size:`sm`,variant:`secondary`,children:`关闭`});return e===`mobile`?(0,V.jsx)(Ih,{children:(0,V.jsx)(Ih.Backdrop,{isOpen:r,onOpenChange:i,children:(0,V.jsx)(Ih.Content,{placement:`bottom`,children:(0,V.jsxs)(Ih.Dialog,{className:`h-[85vh]`,children:[(0,V.jsx)(Ih.Handle,{}),(0,V.jsx)(Ih.CloseTrigger,{}),(0,V.jsx)(Ih.Header,{children:(0,V.jsx)(Ih.Heading,{children:CP})}),(0,V.jsx)(Ih.Body,{children:s}),(0,V.jsx)(Ih.Footer,{children:c})]})})})}):(0,V.jsx)(Jv,{children:(0,V.jsx)(Jv.Backdrop,{isOpen:r,onOpenChange:i,children:(0,V.jsx)(Jv.Container,{scroll:`inside`,size:`lg`,children:(0,V.jsxs)(Jv.Dialog,{className:`w-full max-w-4xl`,children:[(0,V.jsx)(Jv.CloseTrigger,{}),(0,V.jsxs)(Jv.Header,{children:[(0,V.jsx)(Jv.Icon,{className:`bg-accent-soft text-accent-soft-foreground`,children:(0,V.jsx)(tk,{className:`size-5`})}),(0,V.jsx)(Jv.Heading,{children:CP})]}),(0,V.jsx)(Jv.Body,{children:s}),(0,V.jsx)(Jv.Footer,{children:c})]})})})})},EP=e=>!!(e&&typeof e==`object`),$=(e,t,n)=>e?t.reduce((e,t)=>{if(EP(e))return e[t]},e)??n:n,DP=(e,t)=>Array.isArray(e)&&e.includes(t),OP=[{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=>!DP($(e,[`douyin`,`sendContent`],[]),`comment`),message:`修改此配置项需要在「解析时发送的内容」中勾选「评论图」`}]},{path:[`douyin`,`subCommentLimit`],rules:[{condition:e=>!$(e,[`douyin`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!DP($(e,[`douyin`,`sendContent`],[]),`comment`),message:`修改此配置项需要在「解析时发送的内容」中勾选「评论图」`}]},{path:[`douyin`,`commentImageCollection`],rules:[{condition:e=>!$(e,[`douyin`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!DP($(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=>!DP($(e,[`bilibili`,`sendContent`],[]),`comment`),message:`修改此配置项需要在「解析时发送的内容」中勾选「评论图」`}]},{path:[`bilibili`,`realCommentCount`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!DP($(e,[`bilibili`,`sendContent`],[]),`comment`),message:`修改此配置项需要在「解析时发送的内容」中勾选「评论图」`}]},{path:[`bilibili`,`commentImageCollection`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!DP($(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`,`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=>!DP($(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:`修改此配置项需要先将「画质偏好」改为「自动选择」`}]}],kP=e=>e.join(`.`),AP=(e,t)=>{let n=kP(t),r=OP.find(e=>kP(e.path)===n);if(!r)return``;for(let t of r.rules)if(t.condition(e))return t.message;return``},jP=[{label:`信息`,value:`info`},{label:`评论图`,value:`comment`},{label:`视频`,value:`video`},{label:`图片`,value:`image`}],MP=[{label:`封面`,value:`cover`},{label:`标题`,value:`title`},{label:`作者`,value:`author`},{label:`统计`,value:`stats`},{label:`简介`,value:`desc`}],NP=[{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`}],PP=[{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:`需大会员&视频支持`}],FP=[{label:`所有人`,value:`all`},{label:`管理员`,value:`admin`},{label:`主人`,value:`master`},{label:`群主`,value:`group.owner`},{label:`群管理员`,value:`group.admin`}],IP=[{label:`H.264`,value:`h264`,description:`兼容性最好,支持几乎所有设备`},{label:`H.265`,value:`h265`,description:`压缩率更高,近几年设备支持良好(推荐)`},{label:`AV1`,value:`av1`,description:`最新编码格式,压缩率最高,但编码较慢`}],LP=[{label:`关闭`,value:`off`,description:`保持原始比例,不做转换`},{label:`智能`,value:`standard`,description:`仅对宽屏比例视频生效`},{label:`强制 9:16`,value:`force`,description:`所有视频统一转为 9:16 竖屏`}],RP=[{label:`1/4 屏`,value:`0.25`,description:`仅顶部区域`},{label:`半屏`,value:`0.5`,description:`上半部分(推荐)`},{label:`3/4 屏`,value:`0.75`,description:`大部分区域`},{label:`全屏`,value:`1`,description:`铺满整个画面`}],zP=[{label:`小号`,value:`small`},{label:`中号`,value:`medium`},{label:`大号`,value:`large`}],BP={enabled:`已开启`,disabled:`已关闭`},VP=[{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`}],HP=(0,v.lazy)(()=>pb(()=>import(`./CronEditor-KiEwYMrF.js`),[])),UP=({className:e,disabled:t,...n})=>{let[r,i]=(0,v.useState)(!1),a=r?`隐藏密码`:`显示密码`;return(0,V.jsxs)(`div`,{className:`relative w-full`,children:[(0,V.jsx)(kv,{...n,className:`w-full pr-10 ${e??``}`,type:r?`text`:`password`}),(0,V.jsx)(Lm,{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,V.jsx)($O,{className:`size-4`,"aria-hidden":`true`}):(0,V.jsx)(ek,{className:`size-4`,"aria-hidden":`true`})})]})},WP=({config:e,device:t,classes:n,validationErrors:r,updateConfigValue:i})=>{let a=e=>{let n=vP(e)?e:{description:e},r=t===`mobile`?n.mobileContent??n.desktopContent:n.desktopContent;return(0,V.jsxs)(Pv,{className:`flex items-center gap-2`,children:[(0,V.jsx)(`span`,{children:n.description}),r?(0,V.jsxs)(Sv,{delay:0,children:[(0,V.jsx)(Sv.Trigger,{"aria-label":`查看详细说明`,children:(0,V.jsx)(Lm,{isIconOnly:!0,size:`sm`,variant:`tertiary`,children:(0,V.jsx)(nk,{className:`size-4`,"aria-hidden":`true`})})}),(0,V.jsxs)(Sv.Content,{showArrow:!0,placement:t===`mobile`?`bottom`:`top`,children:[(0,V.jsx)(Sv.Arrow,{}),(0,V.jsx)(`div`,{className:`max-w-72`,children:r})]})]}):null,n.extra]})},o=(n,r,i)=>{if(!i)return n;let a=AP(e,r);return a?t===`mobile`?(0,V.jsxs)(zh,{children:[(0,V.jsx)(zh.Trigger,{className:`w-full cursor-not-allowed`,children:n}),(0,V.jsx)(zh.Content,{placement:`bottom`,children:(0,V.jsxs)(zh.Dialog,{children:[(0,V.jsx)(zh.Arrow,{}),(0,V.jsx)(`div`,{className:`max-w-72 text-sm`,children:a})]})})]}):(0,V.jsxs)(Sv,{delay:0,children:[(0,V.jsx)(Sv.Trigger,{className:`w-full cursor-not-allowed`,children:n}),(0,V.jsxs)(Sv.Content,{showArrow:!0,placement:`top`,children:[(0,V.jsx)(Sv.Arrow,{}),(0,V.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);return o((0,V.jsxs)(k_,{isDisabled:s,isSelected:c,onChange:e=>i(t,e),children:[(0,V.jsxs)(k_.Content,{children:[(0,V.jsx)(k_.Control,{children:(0,V.jsx)(k_.Thumb,{})}),(0,V.jsx)(`span`,{className:`font-semibold`,children:n})]}),a(r||(c?BP.enabled:BP.disabled))]}),t,s)},renderTextField:(t,n,s,c)=>{let l=c?.type||`text`,u=String(Q(e,t,l===`number`?c?.fallback??0:``)),d=r[pP(t)],f=c?.disabled??!1;return o((0,V.jsxs)(Av,{fullWidth:!0,isInvalid:!!d,isDisabled:f,name:t.join(`.`),type:l,value:u,onChange:e=>{i(t,l===`number`?gP(e,c?.fallback??0):e)},children:[(0,V.jsx)(Mv,{className:`font-semibold`,children:n}),l===`password`?(0,V.jsx)(UP,{disabled:f,max:c?.max,min:c?.min,pattern:c?.pattern,placeholder:c?.placeholder||n,step:c?.step}):(0,V.jsx)(kv,{max:c?.max,min:c?.min,pattern:c?.pattern,placeholder:c?.placeholder||n,step:c?.step}),d?(0,V.jsx)(Iv,{children:d}):a(s)]}),t,f)},renderSelectField:(t,n,r,s,c=e=>e,l=!1)=>{let u=String(Q(e,t,s[0]?.value||``));return o((0,V.jsxs)(Zv,{disabledKeys:s.filter(e=>e.disabled).map(e=>e.value),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,V.jsx)(Mv,{className:`font-semibold`,children:n}),(0,V.jsxs)(Zv.Trigger,{children:[(0,V.jsx)(Zv.Value,{}),(0,V.jsx)(Zv.Indicator,{})]}),a(r),(0,V.jsx)(Zv.Popover,{children:(0,V.jsx)(Gv,{children:s.map(e=>(0,V.jsxs)(Gv.Item,{id:e.value,textValue:e.label,children:[(0,V.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,V.jsx)(Mv,{children:e.label}),e.description?(0,V.jsx)(Pv,{children:e.description}):null]}),(0,V.jsx)(Gv.ItemIndicator,{})]},e.value))})})]}),t,l)},renderCheckboxGroup:(t,r,i,c,l=!1,u)=>{let d=Q(e,t,[]);return o((0,V.jsxs)(`div`,{className:n.field,children:[(0,V.jsx)(Mv,{className:`font-semibold`,children:r}),a(i),(0,V.jsx)(`div`,{className:n.choiceGrid,children:c.map(e=>(0,V.jsxs)(uh,{isDisabled:l,isSelected:_P(d,e.value),onChange:n=>s(t,e.value,n,u),children:[(0,V.jsxs)(uh.Content,{children:[(0,V.jsx)(uh.Control,{children:(0,V.jsx)(uh.Indicator,{})}),e.label]}),e.description?(0,V.jsx)(Pv,{children:e.description}):null]},e.value))})]}),t,l)},renderCronField:(r,a,s,c=!1)=>{let l=Q(e,r,`*/10 * * * *`);return o((0,V.jsx)(`div`,{className:n.field,children:(0,V.jsx)(v.Suspense,{fallback:(0,V.jsx)(`div`,{className:`h-64 animate-pulse rounded-lg bg-muted/30`}),children:(0,V.jsx)(HP,{device:t,disabled:c,value:l,onChange:e=>i(r,e)})})}),r,c)},renderPageHeader:(e,n)=>(0,V.jsxs)(`div`,{className:`mb-6 ${t===`mobile`?`pr-36`:``}`,"data-config-section":!0,children:[(0,V.jsx)(`h2`,{className:`text-2xl font-bold`,children:e}),(0,V.jsx)(`div`,{className:`mt-2.5`,children:(0,V.jsx)(Pv,{children:n})})]}),renderSubSection:(e,t)=>(0,V.jsxs)(Bm,{"data-config-section":!0,className:`mb-4`,children:[(0,V.jsx)(Bm.Header,{className:n.sectionHeader,children:(0,V.jsx)(Bm.Title,{className:`text-lg font-semibold`,children:e})}),(0,V.jsx)(Bm.Content,{className:n.sectionContent,children:(0,V.jsx)(`div`,{className:n.fields,children:t})})]})}},GP={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`},KP={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-5`,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`},qP=e=>e===`mobile`?KP:GP,JP=({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,V.jsxs)(V.Fragment,{children:[n(`接口库配置`,`接口库的 Cookies、请求、代理和 API 服务配置。保存后后端会重载接口库客户端。`),i(`平台 Cookies`,(0,V.jsxs)(V.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,V.jsxs)(V.Fragment,{children:[o([`amagi`,`timeout`],`请求超时时间`,`网络请求的超时时间,单位:毫秒。`,{type:`number`,fallback:15e3,min:1e3,max:3e5}),o([`amagi`,`User-Agent`],`User-Agent`,`请求头中的User-Agent字段,用于标识客户端类型。`)]})),i(`代理配置(可选)`,(0,V.jsxs)(V.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,V.jsxs)(V.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})]}))]})},YP=({config:e,renderers:t})=>{let{renderCheckboxGroup:n,renderPageHeader:r,renderSelectField:i,renderSubSection:a,renderSwitch:o,renderTextField:s}=t,c=Q(e,[`app`,`livePhotoMode`],`video_and_livephoto`);return(0,V.jsxs)(V.Fragment,{children:[r(`通用`,`插件运行、渲染和交互相关配置。`),a(`缓存设置`,(0,V.jsx)(V.Fragment,{children:o([`app`,`removeCache`],`自动删除视频缓存`,`任务完成后删除下载缓存。`)})),a(`交互设置`,(0,V.jsxs)(V.Fragment,{children:[o([`app`,`EmojiReply`],`表情回应`,`在解析任务开始时添加表情回应,若适配器不支持需要关闭。`),o([`app`,`parseTip`],`解析提示`,`发送提示信息:"检测到xxx链接,开始解析"。`),o([`app`,`fakeForward`],`伪造合并转发消息`,`开启后合并转发将使用触发者身份展示;关闭后使用机器人身份展示。`),n([`app`,`errorLogSendTo`],`错误日志`,`遇到错误时谁会收到错误日志。注:推送任务只可发送给主人。「第一个主人」与「所有主人」互斥。`,[{label:`第一个主人`,value:`master`},{label:`所有主人`,value:`allMasters`},{label:`触发者的群聊`,value:`trigger`}],!1,[[`master`,`allMasters`]])]})),a(`渲染设置`,(0,V.jsxs)(V.Fragment,{children:[s([`app`,`renderScale`],`渲染精度`,`可选值50~200,建议100。设置高精度会提高图片的精细度,过高可能会影响渲染与发送速度。`,{type:`number`,fallback:100,min:50,max:200}),i([`app`,`Theme`],`渲染图片的主题色`,`渲染评论图和推送图的主题色。`,[{label:`自动`,value:`0`,description:`06:00-18:00为浅色,18:00-06:00为深色`},{label:`浅色`,value:`1`},{label:`深色`,value:`2`}],e=>Number(e)),o([`app`,`RemoveWatermark`],`移除版本信息`,`渲染的图片是否移除底部版本信息。`),s([`app`,`RenderWaitTime`],`渲染图片的等待时间`,`单位:秒,Linux系统下不能为0;其他系统传递 0 可禁用。`,{type:`number`,fallback:60,min:0}),o([`app`,`multiPageRender`],`分页渲染`,`将模板渲染成多页的图片,以降低渲染器压力,默认开启,非必要不修改!`),s([`app`,`multiPageHeight`],`分页渲染时,每页的高度`,`经测试最佳每页高度为12000px,默认12000px。`,{type:`number`,disabled:!Q(e,[`app`,`multiPageRender`],!0),fallback:12e3,min:1e3,max:2e4})]})),a(`上传与下载设置`,(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(Yh,{className:`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)),o([`app`,`usegroupfile`],`群文件上传`,`使用群文件上传,开启后会将视频文件上传到群文件中,需配置「群文件上传阈值」。与「本地视频发送方式 = Base64」互斥。`,Q(e,[`app`,`videoSendMode`],`file`)===`base64`),s([`app`,`groupfilevalue`],`群文件上传阈值`,`当文件大小超过该值时将使用群文件上传,单位:MB,「使用群文件上传」开启后才会生效。`,{type:`number`,fallback:100,min:1,disabled:!Q(e,[`app`,`usegroupfile`],!1)||Q(e,[`app`,`videoSendMode`],`file`)===`base64`})]}),(0,V.jsx)(Yh,{className:`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,V.jsxs)(Yh,{className:`p-4 mb-4 rounded-3xl`,variant:`secondary`,children:[o([`app`,`usefilelimit`],`视频上传拦截`,`开启后会根据视频文件大小判断是否需要上传,需配置「视频拦截阈值」。`),s([`app`,`filelimit`],`视频拦截阈值`,`视频文件大于该数值则直接结束任务,不会上传,单位: MB,「视频上传拦截」开启后才会生效。`,{type:`number`,fallback:20,min:1,disabled:!Q(e,[`app`,`usefilelimit`],!1)}),o([`app`,`compress`],`压缩视频`,`开启后会将视频文件压缩后再上传,适合上传大文件,任务过程中会吃满CPU,对低配服务器不友好。需配置「压缩触发阈值」与「压缩后的值」。`),s([`app`,`compresstrigger`],`压缩触发阈值`,`触发视频压缩的阈值,单位:MB。当文件大小超过该值时,才会压缩视频,「压缩视频」开启后才会生效。`,{type:`number`,fallback:80,min:1,disabled:!Q(e,[`app`,`compress`],!1)}),s([`app`,`compressvalue`],`压缩后的值`,`单位:MB,若视频文件大小大于「压缩触发阈值」的值,则会进行压缩至该值(±5%),「压缩视频」开启后才会生效。`,{type:`number`,fallback:30,min:1,disabled:!Q(e,[`app`,`compress`],!1)})]}),(0,V.jsxs)(Yh,{className:`p-4 rounded-3xl`,variant:`secondary`,children:[o([`app`,`downloadThrottle`],`下载限速`,`开启后会限制下载速度,避免触发服务器风控导致连接被重置(ECONNRESET)。如果下载时经常报错"连接被重置",建议开启。`),s([`app`,`downloadMaxSpeed`],`最大下载速度`,`限速开关打开后生效。单位:MB/s,建议值:10,根据实际情况调整。`,{type:`number`,fallback:10,min:1,max:100,disabled:!Q(e,[`app`,`downloadThrottle`],!1)}),o([`app`,`downloadAutoReduce`],`断流自动降速`,`限速开关打开后生效。当检测到下载中断时,自动降低下载速度,避免再次触发风控。`,!Q(e,[`app`,`downloadThrottle`],!1)),s([`app`,`downloadMinSpeed`],`最低下载速度`,`断流降速开关打开后生效。单位:MB/s,自动降速的下限值。`,{type:`number`,fallback:1,min:.5,max:50,disabled:!Q(e,[`app`,`downloadThrottle`],!1)||!Q(e,[`app`,`downloadAutoReduce`],!1)})]})]})),a(`Live Photo 兼容设置`,(0,V.jsxs)(V.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,c===`video_only`)]})),a(`我的小玩具`,(0,V.jsxs)(V.Fragment,{children:[o([`app`,`videoTool`],`默认解析优先级`,`关闭后使用自定义优先级,修改后需重启。`),s([`app`,`priority`],`自定义优先级`,`默认解析优先级关闭后生效。`,{type:`number`,disabled:Q(e,[`app`,`videoTool`],!0),fallback:800}),i([`app`,`qrLoginAddrType`],`扫码登录地址`,`生成登录二维码时使用的服务器地址。`,[{label:`局域网`,value:`lan`,description:`适用于手机和服务器在同一局域网`},{label:`外部地址`,value:`external`,description:`适用于远程访问,需手动配置`}]),s([`app`,`qrLoginExternalAddr`],`外部访问地址`,`公网 IP 或域名,如:123.45.67.89 或 example.com。`,{disabled:Q(e,[`app`,`qrLoginAddrType`],`lan`)!==`external`})]}))]})},XP=({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||!_P(d,`comment`),y=!u||!f;return(0,V.jsxs)(V.Fragment,{children:[a(`哔哩哔哩`,`B站解析、动态图片布局、弹幕和推送基础设置。`),(0,V.jsxs)(`div`,{className:n.topLevelFields,"data-config-section":!0,children:[c([`bilibili`,`switch`],`解析开关`,`B站解析开关,此开关为单独开关。`),r([`bilibili`,`sendContent`],`解析时发送的内容`,`若什么都不选,可能不会返回任何解析结果。`,jP.filter(e=>e.value!==`image`),!u)]}),s(`评论详情设置`,(0,V.jsxs)(V.Fragment,{children:[l([`bilibili`,`numcomment`],`评论解析数量`,`主评论解析数量。`,{type:`number`,fallback:5,min:1,disabled:v}),c([`bilibili`,`realCommentCount`],`显示真实评论数量`,`关闭则显示解析到的评论数量。`,v),c([`bilibili`,`commentImageCollection`],`是否收集评论区的图片`,`开启后将收集评论区的图片,以合并转发的形式返回。`,v)]})),s(`渲染与画质设置`,(0,V.jsxs)(V.Fragment,{children:[o([`bilibili`,`videoQuality`],`画质偏好`,`解析视频的分辨率偏好。`,PP,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`],`视频信息前返回的内容`,`若什么都不选,则不会返回任何视频相关信息。`,MP,!u||m===`image`),c([`bilibili`,`showDanmakuInVideoInfo`],`视频信息图片中显示弹幕`,`开启后在视频信息图片的封面区域显示热门弹幕。关闭后不会请求弹幕数据,可提升解析速度。仅「视频信息返回形式」为图片模式时生效。`,!u||m===`text`)]})),s(`权限设置`,(0,V.jsx)(V.Fragment,{children:o([`bilibili`,`loginPerm`],`谁可以触发扫码登录`,`修改后需重启。`,FP)})),s(`弹幕烧录相关`,(0,V.jsxs)(V.Fragment,{children:[c([`bilibili`,`burnDanmaku`],`弹幕烧录`,`将弹幕硬编码到视频画面中。开启后视频需要重新编码,耗时较长,高分辨率视频会占用较多资源。`,!u),o([`bilibili`,`danmakuArea`],`弹幕区域`,`限制弹幕的显示范围,避免遮挡视频主体内容。`,RP,Number,y),o([`bilibili`,`danmakuFontSize`],`弹幕字号`,`弹幕文字大小。`,zP,e=>e,y),l([`bilibili`,`danmakuOpacity`],`弹幕透明度`,`0为完全透明,100为完全不透明,推荐70。`,{type:`number`,fallback:70,min:0,max:100,disabled:y}),o([`bilibili`,`verticalMode`],`竖屏适配`,`模拟手机端竖屏观看体验,视频居中显示,上下黑边区域用于展示弹幕。`,LP,e=>e,y),o([`bilibili`,`videoCodec`],`视频编码格式`,`弹幕烧录时使用的视频编码格式,会自动检测硬件加速。`,IP,e=>e,y)]})),s(`B站推送相关`,(0,V.jsxs)(V.Fragment,{children:[c([`bilibili`,`push`,`switch`],`推送开关`,`推送开关,修改后需重启;使用「#设置B站推送 + UID」配置推送列表。`),o([`bilibili`,`push`,`permission`],`谁可以设置推送`,`修改后需重启。`,FP,e=>e,!h),i([`bilibili`,`push`,`cron`],`定时任务表达式`,`定时推送的时间,支持可视化编辑或手动输入 cron 表达式。`,!h),c([`bilibili`,`push`,`parsedynamic`],`作品解析`,`触发推送时是否一同解析该作品。`,!h),o([`bilibili`,`push`,`pushVideoQuality`],`解析视频动态时的画质偏好`,`「作品解析」开启时生效,仅对视频动态有效。`,PP.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})]}))]})},ZP=({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||!_P(f,`comment`),y=!d||!p;return(0,V.jsxs)(V.Fragment,{children:[a(`抖音`,`抖音解析、画质、弹幕和推送基础设置。`),(0,V.jsxs)(`div`,{className:n.topLevelFields,"data-config-section":!0,children:[c([`douyin`,`switch`],`解析开关`,`抖音解析开关,此开关为单独开关。`),r([`douyin`,`sendContent`],`解析时发送的内容`,`若什么都不选,可能不会返回任何解析结果。`,jP.filter(e=>e.value!==`image`),!d)]}),s(`评论详情设置`,(0,V.jsxs)(V.Fragment,{children:[l([`douyin`,`numcomment`],`评论解析数量`,`主评论解析数量。`,{type:`number`,fallback:5,min:1,disabled:v}),l([`douyin`,`subCommentLimit`],`次级评论解析数量`,`次级评论解析数量,当前逻辑不仅无法判断请求的来的评论的嵌套深度,而且「次级评论解析深度」会限制嵌套深度,超过深度的评论会被截断。`,{type:`number`,fallback:5,min:1,max:20,disabled:v}),c([`douyin`,`commentImageCollection`],`是否收集评论区的图片`,`开启后将收集评论区的图片,以合并转发的形式返回。`,v)]})),s(`渲染与画质设置`,(0,V.jsxs)(V.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`],`画质偏好`,`解析视频的分辨率偏好。`,NP,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`],`视频信息的内容`,`若什么都不选,则不会返回任何视频相关信息。`,MP.filter(e=>e.value!==`desc`),!d||h===`image`)]})),s(`权限设置`,(0,V.jsx)(V.Fragment,{children:o([`douyin`,`loginPerm`],`谁可以触发扫码登录`,`修改后需重启。`,FP)})),s(`弹幕烧录相关`,(0,V.jsxs)(V.Fragment,{children:[c([`douyin`,`burnDanmaku`],`弹幕烧录`,`将弹幕硬编码到视频画面中。开启后视频需要重新编码,耗时较长。`,!d),o([`douyin`,`danmakuArea`],`弹幕显示区域`,`限制弹幕范围,避免遮挡视频主体。`,RP,Number,y),o([`douyin`,`danmakuFontSize`],`弹幕字号`,`弹幕文字大小。`,zP,e=>e,y),l([`douyin`,`danmakuOpacity`],`弹幕透明度`,`0为完全透明,100为完全不透明,推荐70。`,{type:`number`,fallback:70,min:0,max:100,disabled:y}),o([`douyin`,`verticalMode`],`竖屏适配`,`针对横屏视频,模拟手机端竖屏观看体验,视频居中显示,上下黑边区域用于展示弹幕。`,LP,e=>e,y),o([`douyin`,`videoCodec`],`视频编码格式`,`烧录弹幕后的视频编码格式。`,IP,e=>e,y)]})),s(`抖音推送相关`,(0,V.jsxs)(V.Fragment,{children:[c([`douyin`,`push`,`switch`],`推送开关`,`推送开关,修改后需重启;使用「#设置抖音推送 + 抖音号」配置推送列表。`),o([`douyin`,`push`,`permission`],`谁可以设置推送`,`修改后需重启。`,FP,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`],`画质偏好`,`推送解析时解析视频的分辨率偏好。`,NP,e=>e,!g),l([`douyin`,`push`,`pushMaxAutoVideoSize`],`视频体积上限(MB)`,`推送解析时根据该值自动选择分辨率进行下载。仅在「画质偏好」 为 "自动选择" 时生效。`,{type:`number`,fallback:50,min:1,max:2e4,disabled:!g||_!==`adapt`})]}))]})},QP=({config:e,renderers:t,classes:n})=>{let{renderPageHeader:r,renderSubSection:i,renderSwitch:a,renderTextField:o}=t,s=Q(e,[`kuaishou`,`switch`],!1),c=Q(e,[`kuaishou`,`comment`],!1);return(0,V.jsxs)(V.Fragment,{children:[r(`快手`,`快手解析基础设置。`),(0,V.jsx)(`div`,{className:n.topLevelFields,"data-config-section":!0,children:a([`kuaishou`,`switch`],`解析开关`,`快手解析开关,此开关为单独开关。`)}),i(`评论详情设置`,(0,V.jsxs)(V.Fragment,{children:[a([`kuaishou`,`comment`],`评论解析`,`快手评论解析,开启后可发送快手作品评论图。`,!s),o([`kuaishou`,`numcomment`],`评论解析数量`,`快手评论解析数量。`,{type:`number`,fallback:5,min:1,disabled:!s||!c})]}))]})},$P=({children:e,disabled:t,message:n,device:r})=>t?r===`mobile`?(0,V.jsxs)(zh,{children:[(0,V.jsx)(zh.Trigger,{className:`w-full cursor-not-allowed`,children:e}),(0,V.jsxs)(zh.Content,{placement:`bottom`,children:[(0,V.jsx)(zh.Arrow,{}),(0,V.jsx)(`div`,{className:`px-3 py-2`,children:(0,V.jsx)(`p`,{className:`text-sm text-foreground`,children:n})})]})]}):(0,V.jsxs)(Sv,{delay:0,children:[(0,V.jsx)(Sv.Trigger,{className:`w-full cursor-not-allowed`,children:e}),(0,V.jsxs)(Sv.Content,{showArrow:!0,placement:`top`,children:[(0,V.jsx)(Sv.Arrow,{}),n]})]}):e,eF=e=>e===`desktop`?`grid grid-cols-2 gap-4`:`flex flex-col gap-4`,tF=[{label:`作品列表`,value:`post`,description:`推送用户发布的作品`},{label:`喜欢列表`,value:`favorite`,description:`推送用户喜欢的作品`},{label:`推荐列表`,value:`recommend`,description:`推送推荐的作品`},{label:`直播`,value:`live`,description:`推送直播状态`}],nF=[{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:`推送专栏文章`}],rF=[{label:`黑名单`,value:`blacklist`,description:`命中关键词/标签则不推送`},{label:`白名单`,value:`whitelist`,description:`只推送命中关键词/标签的内容`}],iF=({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,V.jsxs)(`div`,{className:`space-y-2`,children:[(0,V.jsxs)(`div`,{className:`flex gap-2`,children:[(0,V.jsxs)(Av,{className:`flex-1`,isDisabled:a,isInvalid:!!c,value:o,onChange:e=>{s(e),c&&l(``)},children:[(0,V.jsx)(Mv,{children:e}),(0,V.jsx)(kv,{placeholder:`输入${e}`,onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),u())}}),c?(0,V.jsx)(Iv,{children:c}):null]}),(0,V.jsx)(Lm,{isDisabled:a,variant:`secondary`,onPress:u,children:(0,V.jsx)(ok,{className:`size-4`})})]}),n.length>0?(0,V.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:n.map(e=>(0,V.jsxs)(mh,{color:`accent`,variant:`soft`,children:[(0,V.jsx)(`span`,{children:e}),a?null:(0,V.jsx)(`button`,{type:`button`,className:`ml-1 rounded-full p-0.5 hover:bg-black/10`,onClick:()=>i(e),children:(0,V.jsx)(lk,{className:`size-3`})})]},e))}):(0,V.jsxs)(Pv,{children:[`暂无`,e]}),(0,V.jsx)(Pv,{children:t})]})},aF=(e,t)=>{if((e.success||e.code===200)&&e.data!==void 0)return e.data;throw Error(e.message||t)},oF=async()=>aF((await eN.get(`/kkk/v1/bots`)).data,`获取 Bot 列表失败`),sF=async e=>aF((await eN.get(`/kkk/v1/bots/${encodeURIComponent(e)}/groups`)).data,`获取群列表失败`),cF=async e=>e.length===0?[]:aF((await eN.post(`/kkk/v1/groups/batch`,{groups:e})).data,`获取推送目标信息失败`),lF=({mapping:e,compact:t=!1,stacked:n=!1})=>n?(0,V.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,V.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,V.jsxs)(Mm,{size:`sm`,children:[(0,V.jsx)(Mm.Image,{alt:e.groupName||e.groupId,src:e.groupAvatar}),(0,V.jsx)(Mm.Fallback,{children:(e.groupName||e.groupId).slice(0,1)})]}),(0,V.jsxs)(`div`,{className:`min-w-0`,children:[(0,V.jsx)(Mv,{className:`block truncate`,children:e.groupName||e.groupId}),(0,V.jsx)(Pv,{className:`block truncate`,children:e.groupId})]})]}),(0,V.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2 pl-8`,children:[(0,V.jsx)(ZO,{className:`size-4 shrink-0 text-muted`}),(0,V.jsxs)(Mm,{size:`sm`,children:[(0,V.jsx)(Mm.Image,{alt:e.botName||e.botId,src:e.botAvatar}),(0,V.jsx)(Mm.Fallback,{children:(e.botName||e.botId).slice(0,1)})]}),(0,V.jsxs)(`div`,{className:`min-w-0`,children:[(0,V.jsx)(Mv,{className:`block truncate`,children:e.botName||e.botId}),(0,V.jsx)(Pv,{className:`block truncate`,children:t?e.botId:`Bot ${e.botId}`})]})]})]}):(0,V.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,V.jsxs)(Mm,{size:`sm`,children:[(0,V.jsx)(Mm.Image,{alt:e.groupName||e.groupId,src:e.groupAvatar}),(0,V.jsx)(Mm.Fallback,{children:(e.groupName||e.groupId).slice(0,1)})]}),(0,V.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,V.jsx)(Mv,{className:`block truncate`,children:e.groupName||e.groupId}),(0,V.jsx)(Pv,{className:`block truncate`,children:e.groupId})]}),(0,V.jsx)(ZO,{className:`size-4 shrink-0 text-muted`}),(0,V.jsxs)(Mm,{size:`sm`,children:[(0,V.jsx)(Mm.Image,{alt:e.botName||e.botId,src:e.botAvatar}),(0,V.jsx)(Mm.Fallback,{children:(e.botName||e.botId).slice(0,1)})]}),(0,V.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,V.jsx)(Mv,{className:`block truncate`,children:e.botName||e.botId}),(0,V.jsx)(Pv,{className:`block truncate`,children:t?e.botId:`Bot ${e.botId}`})]})]}),uF=e=>`${e.groupId}:${e.botId}`,dF=e=>{let[t,n,r]=e.split(`:`);return!t||!n||r!==void 0?null:{groupId:t,botId:n}},fF=e=>{let t=new Set,n=[];return e.forEach(e=>{let r=dF(e);if(!r)return;let i=uF(r);t.has(i)||(t.add(i),n.push(i))}),n},pF=({device:e,mappings:t,onEdit:n,onRemove:r})=>(0,V.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,V.jsxs)(`div`,{children:[(0,V.jsx)(Mv,{children:`已配置目标`}),(0,V.jsxs)(Pv,{children:[t.length,` 个推送目标`]})]}),t.length>0?(0,V.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=uF(t);return(0,V.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,V.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,V.jsx)(lF,{compact:!0,mapping:t,stacked:e===`mobile`})}),(0,V.jsxs)(Sv,{delay:0,children:[(0,V.jsx)(Lm,{isIconOnly:!0,"aria-label":`编辑推送目标`,size:`sm`,variant:`tertiary`,onPress:()=>n(i),children:(0,V.jsx)(ak,{className:`size-4`})}),(0,V.jsxs)(Sv.Content,{showArrow:!0,placement:`top`,children:[(0,V.jsx)(Sv.Arrow,{}),`编辑`]})]}),(0,V.jsxs)(Sv,{delay:0,children:[(0,V.jsx)(Lm,{isIconOnly:!0,"aria-label":`删除推送目标`,size:`sm`,variant:`danger`,onPress:()=>r(i),children:(0,V.jsx)(lk,{className:`size-4`})}),(0,V.jsxs)(Sv.Content,{showArrow:!0,placement:`top`,children:[(0,V.jsx)(Sv.Arrow,{}),`删除`]})]})]},i)})}):(0,V.jsx)(`div`,{className:`rounded-lg border border-dashed border-default-300 px-4 py-5 text-sm text-muted`,children:`还没有推送目标,点击上方按钮添加。`})]}),mF=({label:e,description:t,placeholder:n,disabled:r=!1,items:i,selectedId:a,onSelect:o})=>(0,V.jsxs)(Zv,{fullWidth:!0,allowsEmptyCollection:!0,isDisabled:r,placeholder:n,value:a||null,variant:`secondary`,onChange:e=>o(String(e||``)),children:[(0,V.jsx)(Mv,{children:e}),(0,V.jsxs)(Zv.Trigger,{children:[(0,V.jsx)(Zv.Value,{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,V.jsxs)(`span`,{className:`flex min-w-0 items-center gap-3`,children:[(0,V.jsxs)(Mm,{size:`sm`,children:[(0,V.jsx)(Mm.Image,{alt:r.name,src:r.avatar}),(0,V.jsx)(Mm.Fallback,{children:r.name.slice(0,1)})]}),(0,V.jsxs)(`span`,{className:`min-w-0`,children:[(0,V.jsx)(`span`,{className:`block truncate`,children:r.name}),(0,V.jsx)(`span`,{className:`block truncate text-xs text-muted`,children:r.description})]})]}):e}}),(0,V.jsx)(Zv.Indicator,{})]}),(0,V.jsx)(Pv,{children:t}),!r&&i.length===0?(0,V.jsx)(Pv,{className:`text-warning`,children:`当前没有可选项`}):null,(0,V.jsx)(Zv.Popover,{className:`max-h-72`,children:(0,V.jsx)(Gv,{items:i,children:e=>(0,V.jsxs)(Gv.Item,{id:e.id,textValue:`${e.name} ${e.description}`,children:[(0,V.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[(0,V.jsxs)(Mm,{size:`sm`,children:[(0,V.jsx)(Mm.Image,{alt:e.name,src:e.avatar}),(0,V.jsx)(Mm.Fallback,{children:e.name.slice(0,1)})]}),(0,V.jsxs)(`div`,{className:`min-w-0`,children:[(0,V.jsx)(Mv,{className:`truncate`,children:e.name}),(0,V.jsx)(Pv,{className:`truncate`,children:e.description})]})]}),(0,V.jsx)(Gv.ItemIndicator,{})]})})})]}),hF=({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)(``),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&&oF().then(o).catch(e=>{y(e instanceof Error?e.message:`获取 Bot 列表失败`)}).finally(()=>m(!1))},[e]),(0,v.useEffect)(()=>{!e||!l||sF(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,V.jsx)(Ih.Backdrop,{isOpen:e,onOpenChange:r,variant:`blur`,children:(0,V.jsx)(Ih.Content,{placement:E,children:(0,V.jsxs)(Ih.Dialog,{className:t===`desktop`?`h-full w-105 max-w-[90vw]`:`max-h-[78dvh]`,children:[(0,V.jsx)(Ih.Handle,{}),(0,V.jsx)(Ih.CloseTrigger,{}),(0,V.jsxs)(Ih.Header,{children:[(0,V.jsx)(Ih.Heading,{children:D}),(0,V.jsx)(Pv,{children:`先选择 Bot,再选择该 Bot 加入的群。`})]}),(0,V.jsxs)(Ih.Body,{className:`flex flex-col gap-4`,children:[(0,V.jsx)(mF,{description:`Karin 当前已注册且在线的 Bot。`,disabled:p,items:S,label:`机器人账号`,placeholder:`选择机器人账号`,selectedId:l,onSelect:e=>{y(``),c([]),g(!!e),u(e),f(``)}}),(0,V.jsx)(mF,{description:l?`当前 Bot 已加入的群。`:`请先选择机器人账号。`,disabled:!l||h,items:C,label:`推送群`,placeholder:`选择推送群`,selectedId:d,onSelect:f}),p||h?(0,V.jsxs)(`div`,{className:`flex items-center gap-2 text-sm text-muted`,children:[(0,V.jsx)(Jh,{size:`sm`,"aria-label":`正在读取列表`}),(0,V.jsx)(`span`,{children:`正在读取列表`})]}):null,b&&x?(0,V.jsxs)(`div`,{className:`flex flex-col gap-2 rounded-lg border border-default-200 bg-default-50/60 p-3`,children:[(0,V.jsx)(Mv,{children:`将写入`}),(0,V.jsxs)(Pv,{className:`mt-1`,children:[x.name,`(`,x.id,`) -> `,b.name,`(`,b.id,`)`]})]}):null,_?(0,V.jsx)(Pv,{className:`text-danger`,children:_}):null]}),(0,V.jsxs)(Ih.Footer,{children:[(0,V.jsx)(Lm,{size:t===`mobile`?`sm`:`md`,slot:`close`,variant:`secondary`,children:`取消`}),(0,V.jsx)(Lm,{size:t===`mobile`?`sm`:`md`,slot:`close`,isDisabled:!w,onPress:T,children:n?`保存`:`添加`})]})]})})})},gF=(e,t,n)=>{let r=fF(e);return{values:r,mappings:r.map(e=>{let r=dF(e),i=n[e]||t.find(t=>uF(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)}},_F=({isOpen:e,values:t,mappings:n,device:r,onOpenChange:i,onApply:a})=>{let[o,s]=(0,v.useState)(()=>fF(t)),[c,l]=(0,v.useState)({}),[u,d]=(0,v.useState)(null),[f,p]=(0,v.useState)(!1),m=(0,v.useMemo)(()=>gF(o,n,c),[o,c,n]),h=r===`desktop`?`right`:`bottom`,g=u?dF(u):null,_=e=>{d(e),p(!0)};return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Ih.Backdrop,{isOpen:e,onOpenChange:e=>{e||a(m.values),i(e)},variant:`blur`,children:(0,V.jsx)(Ih.Content,{placement:h,children:(0,V.jsxs)(Ih.Dialog,{className:r===`desktop`?`h-full w-130 max-w-[90vw]`:`max-h-[84dvh]`,children:[(0,V.jsx)(Ih.Handle,{}),(0,V.jsx)(Ih.CloseTrigger,{}),(0,V.jsxs)(Ih.Header,{children:[(0,V.jsx)(Ih.Heading,{children:`推送目标`}),(0,V.jsx)(Pv,{children:`管理所有接收推送的群和 Bot 映射。`})]}),(0,V.jsxs)(Ih.Body,{className:`flex min-h-0 flex-col gap-3`,children:[(0,V.jsxs)(Lm,{className:`self-start`,size:r===`mobile`?`sm`:`md`,onPress:()=>_(null),children:[(0,V.jsx)(ok,{className:`size-4`}),`添加推送目标`]}),(0,V.jsx)(pF,{device:r,mappings:m.mappings,onEdit:e=>_(e),onRemove:e=>{s(t=>t.filter(t=>t!==e)),l(t=>{let n={...t};return delete n[e],n})}})]}),(0,V.jsxs)(Ih.Footer,{children:[(0,V.jsx)(Lm,{size:r===`mobile`?`sm`:`md`,slot:`close`,variant:`secondary`,children:`取消`}),(0,V.jsx)(Lm,{size:r===`mobile`?`sm`:`md`,slot:`close`,onPress:()=>{a(m.values)},children:`完成`})]})]})})}),(0,V.jsx)(hF,{device:r,initialMapping:g,isOpen:f,onConfirm:e=>{let t=uF(e),n=[...o],r=u?n.indexOf(u):-1;r>=0?n[r]=t:n.unshift(t),s(fF(n)),l(n=>{let r={...n,[t]:e};return u&&u!==t&&delete r[u],r}),p(!1),d(null)},onOpenChange:e=>{p(e),e||d(null)}},u||`new`)]})},vF=(e,t)=>{let n=dF(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},yF=({value:e,disabled:t,itemLabel:n,device:r,onChange:i})=>{let a=(0,v.useMemo)(()=>fF(e),[e]),o=(0,v.useMemo)(()=>e.filter(e=>!dF(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=dF(e);return vF(e,t?s.find(e=>e.groupId===t.groupId&&e.botId===t.botId):void 0)}).filter(e=>!!e),[s,a]);(0,v.useEffect)(()=>{cF(a.map(dF).filter(e=>!!e)).then(c).catch(()=>c([])).finally(()=>u(!1))},[a]);let m=e=>i(fF(e)),h=`开启【${n}】的推送开关后才能编辑此字段`,g=a.length>0?`已配置 ${a.length} 个推送目标`:`还没有配置推送目标`;return(0,V.jsx)($P,{disabled:t,device:r,message:h,children:(0,V.jsxs)(`div`,{className:`space-y-3`,children:[(0,V.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,V.jsxs)(`div`,{className:`flex flex-col min-w-0`,children:[(0,V.jsx)(Mv,{children:`推送目标`}),(0,V.jsx)(Pv,{className:`mt-1`,children:g})]}),(0,V.jsxs)(Lm,{isDisabled:t,size:r===`mobile`?`sm`:`md`,variant:r===`mobile`?`primary`:`secondary`,onPress:()=>f(!0),children:[(0,V.jsx)(ak,{className:`size-4`}),(0,V.jsx)(`span`,{children:`管理`})]})]}),l?(0,V.jsxs)(`div`,{className:`flex items-center gap-2 text-sm text-muted`,children:[(0,V.jsx)(Jh,{size:`sm`,"aria-label":`正在读取推送目标`}),(0,V.jsx)(`span`,{children:`正在读取推送目标`})]}):null,o.length>0?(0,V.jsxs)(`div`,{className:`rounded-lg border border-warning/30 bg-warning/10 p-3 text-sm`,children:[(0,V.jsxs)(`div`,{className:`flex items-center gap-2 font-medium text-warning`,children:[(0,V.jsx)(uk,{className:`size-4`}),(0,V.jsxs)(`span`,{children:[`发现 `,o.length,` 条旧格式或错误格式`]})]}),(0,V.jsx)(Pv,{className:`mt-1`,children:`建议删除后用可视化选择重新添加,避免后端解析异常。`})]}):null,(0,V.jsx)(_F,{device:r,isOpen:d,mappings:p,values:a,onApply:m,onOpenChange:f})]})})},bF=({disabled:e,itemLabel:t,device:n,value:r,onChange:i})=>(0,V.jsx)(yF,{disabled:e,device:n,itemLabel:t,value:r,onChange:i}),xF=({disabled:e,itemLabel:t,device:n,options:r,value:i,onChange:a})=>(0,V.jsx)($P,{disabled:e,device:n,message:`开启【${t}】的推送开关后才能编辑此字段`,children:(0,V.jsxs)(ih,{"aria-label":`推送类型`,isDisabled:e,value:i,onChange:e=>a(e),children:[(0,V.jsx)(Mv,{children:`推送类型`}),(0,V.jsx)(Pv,{children:`选择要推送的内容类型`}),(0,V.jsx)(`div`,{className:`mt-2 ${eF(n)}`,children:r.map(e=>(0,V.jsxs)(uh,{value:e.value,children:[(0,V.jsxs)(uh.Content,{children:[(0,V.jsx)(uh.Control,{children:(0,V.jsx)(uh.Indicator,{})}),e.label]}),(0,V.jsx)(Pv,{children:e.description})]},e.value))})]})}),SF=({disabled:e,itemLabel:t,device:n,value:r,onChange:i})=>(0,V.jsx)($P,{disabled:e,device:n,message:`开启【${t}】的推送开关后才能编辑此字段`,children:(0,V.jsxs)(Zv,{fullWidth:!0,isDisabled:e,value:r,onChange:e=>{e&&!Array.isArray(e)&&i(e)},children:[(0,V.jsx)(Mv,{children:`过滤模式`}),(0,V.jsxs)(Zv.Trigger,{children:[(0,V.jsx)(Zv.Value,{}),(0,V.jsx)(Zv.Indicator,{})]}),(0,V.jsx)(Pv,{children:`设置关键词/标签的过滤方式`}),(0,V.jsx)(Zv.Popover,{children:(0,V.jsx)(Gv,{children:rF.map(e=>(0,V.jsxs)(Gv.Item,{id:e.value,textValue:e.label,children:[(0,V.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,V.jsx)(Mv,{children:e.label}),(0,V.jsx)(Pv,{children:e.description})]}),(0,V.jsx)(Gv.ItemIndicator,{})]},e.value))})})]})}),CF=({disabled:e,itemLabel:t,device:n,keywords:r,tags:i,onKeywordsChange:a,onTagsChange:o})=>{let s=`开启【${t}】的推送开关后才能编辑此字段`;return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)($P,{disabled:e,device:n,message:s,children:(0,V.jsx)(`div`,{children:(0,V.jsx)(iF,{label:`关键词`,description:`多个关键词用于内容过滤`,disabled:e,items:r,onAdd:e=>a([...r,e]),onRemove:e=>a(r.filter(t=>t!==e))})})}),(0,V.jsx)($P,{disabled:e,device:n,message:s,children:(0,V.jsx)(`div`,{children:(0,V.jsx)(iF,{label:`标签`,description:`多个标签用于内容过滤`,disabled:e,items:i,onAdd:e=>o([...i,e]),onRemove:e=>o(i.filter(t=>t!==e))})})})]})},wF=({onDelete:e})=>(0,V.jsxs)(Lm,{className:`w-full`,variant:`danger`,onPress:e,children:[(0,V.jsx)(lk,{className:`size-4`}),(0,V.jsx)(`span`,{children:`删除此推送项`})]}),TF=({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,V.jsxs)(Ro.Item,{id:`bilibili-${t}`,children:[(0,V.jsx)(Ro.Heading,{children:(0,V.jsxs)(Ro.Trigger,{children:[(0,V.jsxs)(`div`,{className:`flex flex-1 items-center gap-3`,children:[(0,V.jsx)(`div`,{onClick:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation(),children:(0,V.jsx)(k_,{"aria-label":`推送开关`,isSelected:e.switch,onChange:e=>a({switch:e}),children:(0,V.jsx)(k_.Content,{children:(0,V.jsx)(k_.Control,{children:(0,V.jsx)(k_.Thumb,{})})})})}),(0,V.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,V.jsx)(`span`,{className:`font-medium`,children:e.remark||`UID: ${e.host_mid}`||`推送项 ${t+1}`}),(0,V.jsxs)(Pv,{className:`text-xs`,children:[`B站 UID: `,e.host_mid]})]})]}),(0,V.jsx)(Ro.Indicator,{children:(0,V.jsx)(QO,{className:`size-5`})})]})}),(0,V.jsx)(Ro.Panel,{children:(0,V.jsx)(Ro.Body,{children:(0,V.jsxs)(`div`,{className:`space-y-4`,children:[(0,V.jsxs)(`div`,{className:eF(i),children:[(0,V.jsx)($P,{disabled:o,device:i,message:c,children:(0,V.jsxs)(Av,{fullWidth:!0,isDisabled:o,isRequired:!0,type:`number`,value:String(e.host_mid),onChange:e=>a({host_mid:Number(e)||0}),children:[(0,V.jsx)(Mv,{children:`B站 UID`}),(0,V.jsx)(kv,{placeholder:`UP主的 UID`}),(0,V.jsx)(Pv,{children:`B站用户的唯一标识,必填`})]})}),(0,V.jsx)($P,{disabled:o,device:i,message:c,children:(0,V.jsxs)(Av,{fullWidth:!0,isDisabled:o,value:e.remark,onChange:e=>a({remark:e}),children:[(0,V.jsx)(Mv,{children:`备注名称`}),(0,V.jsx)(kv,{placeholder:`可选,用于识别该推送项`}),(0,V.jsx)(Pv,{children:`方便识别的名称,如:UP主昵称`})]})})]}),(0,V.jsx)(bF,{disabled:o,device:i,itemLabel:s,value:e.group_id,onChange:e=>a({group_id:e})}),(0,V.jsx)(xF,{disabled:o,device:i,itemLabel:s,options:nF,value:e.pushTypes||[],onChange:e=>a({pushTypes:e})}),(0,V.jsx)(SF,{disabled:o,device:i,itemLabel:s,value:e.filterMode||`blacklist`,onChange:e=>a({filterMode:e})}),(0,V.jsx)(CF,{disabled:o,device:i,itemLabel:s,keywords:e.Keywords||[],tags:e.Tags||[],onKeywordsChange:e=>a({Keywords:e}),onTagsChange:e=>a({Tags:e})}),(0,V.jsx)(wF,{onDelete:()=>r(n.filter((e,n)=>n!==t))})]})})})]},t)},EF=({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,V.jsxs)(Ro.Item,{id:`douyin-${t}`,children:[(0,V.jsx)(Ro.Heading,{children:(0,V.jsxs)(Ro.Trigger,{children:[(0,V.jsxs)(`div`,{className:`flex flex-1 items-center gap-3`,children:[(0,V.jsx)(`div`,{onClick:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation(),children:(0,V.jsx)(k_,{"aria-label":`推送开关`,isSelected:e.switch,onChange:e=>a({switch:e}),children:(0,V.jsx)(k_.Content,{children:(0,V.jsx)(k_.Control,{children:(0,V.jsx)(k_.Thumb,{})})})})}),(0,V.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,V.jsx)(`span`,{className:`font-medium`,children:e.remark||e.short_id||e.sec_uid||`推送项 ${t+1}`}),(0,V.jsxs)(Pv,{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,V.jsx)(Ro.Indicator,{children:(0,V.jsx)(QO,{className:`size-5`})})]})}),(0,V.jsx)(Ro.Panel,{children:(0,V.jsx)(Ro.Body,{children:(0,V.jsxs)(`div`,{className:`space-y-4`,children:[(0,V.jsxs)(`div`,{className:eF(i),children:[(0,V.jsx)($P,{disabled:o,device:i,message:c,children:(0,V.jsxs)(Av,{fullWidth:!0,isDisabled:o,isRequired:!0,value:e.short_id,onChange:e=>a({short_id:e}),children:[(0,V.jsx)(Mv,{children:`抖音号`}),(0,V.jsx)(kv,{placeholder:`用户的抖音号`}),(0,V.jsx)(Pv,{children:`用户的抖音号(short_id),必填`})]})}),(0,V.jsx)($P,{disabled:o,device:i,message:c,children:(0,V.jsxs)(Av,{fullWidth:!0,isDisabled:o,value:e.sec_uid,onChange:e=>a({sec_uid:e}),children:[(0,V.jsx)(Mv,{children:`sec_uid`}),(0,V.jsx)(kv,{placeholder:`选填,会根据抖音号自动获取`}),(0,V.jsx)(Pv,{children:`用户的 sec_uid,可从分享链接获取。选填,推送时会自动获取`})]})})]}),(0,V.jsx)($P,{disabled:o,device:i,message:c,children:(0,V.jsxs)(Av,{fullWidth:!0,isDisabled:o,value:e.remark,onChange:e=>a({remark:e}),children:[(0,V.jsx)(Mv,{children:`备注名称`}),(0,V.jsx)(kv,{placeholder:`可选,用于识别该推送项`}),(0,V.jsx)(Pv,{children:`方便识别的名称,如:博主昵称`})]})}),(0,V.jsx)(bF,{disabled:o,device:i,itemLabel:s,value:e.group_id,onChange:e=>a({group_id:e})}),(0,V.jsx)(xF,{disabled:o,device:i,itemLabel:s,options:tF,value:e.pushTypes||[],onChange:e=>a({pushTypes:e})}),(0,V.jsx)(SF,{disabled:o,device:i,itemLabel:s,value:e.filterMode||`blacklist`,onChange:e=>a({filterMode:e})}),(0,V.jsx)(CF,{disabled:o,device:i,itemLabel:s,keywords:e.Keywords||[],tags:e.Tags||[],onKeywordsChange:e=>a({Keywords:e}),onTagsChange:e=>a({Tags:e})}),(0,V.jsx)(wF,{onDelete:()=>r(n.filter((e,n)=>n!==t))})]})})})]},t)},DF=()=>({switch:!0,sec_uid:``,short_id:``,group_id:[],remark:``,pushTypes:[`post`],filterMode:`blacklist`,Keywords:[],Tags:[]}),OF=()=>({switch:!0,host_mid:0,group_id:[],remark:``,pushTypes:[`video`],filterMode:`blacklist`,Keywords:[],Tags:[]}),kF=({platform:e})=>(0,V.jsx)(`div`,{className:`rounded-lg border-2 border-dashed border-gray-300 p-8 text-center`,children:(0,V.jsxs)(`p`,{className:`text-muted`,children:[`暂无`,e===`douyin`?`抖音`:`B站`,`推送项,点击上方按钮添加`]})});function AF({douyinList:e,bilibiliList:t,onDouyinChange:n,onBilibiliChange:r,device:i}){let[a,o]=(0,v.useState)(`douyin`);return(0,V.jsx)(`div`,{className:`space-y-4`,children:(0,V.jsxs)(Z_,{selectedKey:a,onSelectionChange:e=>o(e),children:[(0,V.jsx)(Z_.ListContainer,{children:(0,V.jsxs)(Z_.List,{children:[(0,V.jsxs)(Z_.Tab,{id:`douyin`,children:[(0,V.jsx)(`span`,{children:`抖音推送`}),(0,V.jsx)(Z_.Indicator,{})]}),(0,V.jsxs)(Z_.Tab,{id:`bilibili`,children:[(0,V.jsx)(`span`,{children:`B站推送`}),(0,V.jsx)(Z_.Indicator,{})]})]})}),(0,V.jsx)(Z_.Panel,{id:`douyin`,children:(0,V.jsxs)(`div`,{className:`space-y-4 pt-4`,children:[(0,V.jsxs)(Lm,{className:`w-full`,variant:`primary`,size:`sm`,onPress:()=>n([...e,DF()]),children:[(0,V.jsx)(ok,{className:`size-4`}),(0,V.jsx)(`span`,{children:`添加抖音推送项`})]}),e.length>0?(0,V.jsx)(Ro,{variant:`surface`,"aria-label":`抖音推送列表`,children:e.map((t,r)=>(0,V.jsx)(EF,{device:i,index:r,item:t,list:e,onChange:n},r))}):(0,V.jsx)(kF,{platform:`douyin`})]})}),(0,V.jsx)(Z_.Panel,{id:`bilibili`,children:(0,V.jsxs)(`div`,{className:`space-y-4 pt-4`,children:[(0,V.jsxs)(Lm,{className:`w-full`,variant:`primary`,onPress:()=>r([...t,OF()]),children:[(0,V.jsx)(ok,{className:`size-4`}),(0,V.jsx)(`span`,{children:`添加B站推送项`})]}),t.length>0?(0,V.jsx)(Ro,{variant:`surface`,"aria-label":`B站推送列表`,children:t.map((e,n)=>(0,V.jsx)(TF,{device:i,index:n,item:e,list:t,onChange:r},n))}):(0,V.jsx)(kF,{platform:`bilibili`})]})})]})})}var jF=({config:e,device:t,renderers:n,updateConfigValue:r})=>{let{renderPageHeader:i}=n;return(0,V.jsxs)(V.Fragment,{children:[i(`推送列表`,`管理「抖音」与「哔哩哔哩」的推送订阅。`),(0,V.jsx)(AF,{douyinList:e.pushlist?.douyin||[],bilibiliList:e.pushlist?.bilibili||[],onDouyinChange:e=>{r([`pushlist`,`douyin`],e)},onBilibiliChange:e=>{r([`pushlist`,`bilibili`],e)},device:t})]})},MF=({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,V.jsxs)(V.Fragment,{children:[i(`小红书`,`小红书解析基础设置。`),(0,V.jsxs)(`div`,{className:n.topLevelFields,"data-config-section":!0,children:[s([`xiaohongshu`,`switch`],`解析开关`,`小红书解析开关,此开关为单独开关。`),r([`xiaohongshu`,`sendContent`],`解析时发送的内容`,`若什么都不选,可能不会返回任何解析结果。`,jP,!l),c([`xiaohongshu`,`numcomment`],`评论解析数量`,`小红书评论解析数量。`,{type:`number`,fallback:5,min:1,disabled:!l||!_P(u,`comment`)})]}),o(`渲染与画质设置`,(0,V.jsxs)(V.Fragment,{children:[a([`xiaohongshu`,`videoQuality`],`画质偏好`,`解析视频的分辨率偏好。`,NP,e=>e,!l),c([`xiaohongshu`,`maxAutoVideoSize`],`视频体积上限(MB)`,`根据该值自动选择分辨率进行下载。仅在「画质偏好」 为 "自动选择" 时生效。`,{type:`number`,fallback:50,min:1,max:2e4,disabled:!l||d!==`adapt`})]}))]})},NF=e=>{switch(e.activeFile){case`amagi`:return(0,V.jsx)(JP,{...e});case`app`:return(0,V.jsx)(YP,{...e});case`douyin`:return(0,V.jsx)(ZP,{...e});case`bilibili`:return(0,V.jsx)(XP,{...e});case`kuaishou`:return(0,V.jsx)(QP,{...e});case`xiaohongshu`:return(0,V.jsx)(MF,{...e});case`pushlist`:return(0,V.jsx)(jF,{...e})}},PF=(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} 必须是数字`},FF=(e,t,n)=>{if(n.disabled)return;let r=PF(Q(t,n.path,0),n);r&&(e[pP(n.path)]=r)},IF=e=>typeof e==`string`&&/.+:.+/.test(e),LF=(e,t,n)=>{if(!Array.isArray(n)){e[`pushlist.${t}`]=`${t} 推送列表必须是数组`;return}let r=n.findIndex(e=>{if(!mP(e))return!0;let n=e.group_id,r=t===`douyin`?e.short_id:e.host_mid;return r==null||String(r).trim()===``?!0:!Array.isArray(n)||n.length===0||n.some(e=>!IF(e))});r>=0&&(e[`pushlist.${t}`]=`${t} 推送列表第 ${r+1} 项缺少必填 UID/抖音号,或 group_id 未使用「群号:机器人账号」格式`)},RF=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`,`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||!_P(f,`comment`)},{path:[`douyin`,`subCommentLimit`],label:`次级评论解析数量`,min:1,max:20,disabled:!d||!_P(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:!_||!_P(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||!_P(D,`comment`)},{path:[`xiaohongshu`,`maxAutoVideoSize`],label:`视频体积上限(MB)`,min:1,max:2e4,disabled:!E||O!==`adapt`}].forEach(n=>FF(t,e,n)),n===`video_only`&&delete t[`app.livePhotoSystem`],LF(t,`douyin`,e.pushlist?.douyin||[]),LF(t,`bilibili`,e.pushlist?.bilibili||[]),t},zF=({device:e=`desktop`})=>{let t=(0,v.useRef)(null),[n,r]=fC(),i=Qv(),a=n.get(`file`),[o,s]=lb({config:null,savedConfig:null,activeFile:a&&VP.some(e=>e.key===a)?a:`amagi`}),{activeFile:c,config:l,savedConfig:u}=o,d=(0,v.useMemo)(()=>qP(e),[e]),f=e===`mobile`?`sm`:`md`,{loading:p,run:m}=ob(iN,{onSuccess:e=>{s({config:structuredClone(e),savedConfig:structuredClone(e)})},onError:e=>{n_.danger(`加载配置失败`,{description:e.message})}}),{loading:h,runAsync:g}=ob(aN,{manual:!0}),_=(0,v.useMemo)(()=>!l||!u?!1:!(0,MC.default)(yP(l),yP(u)),[l,u]),y=(0,v.useMemo)(()=>RF(l),[l]),b=(0,v.useMemo)(()=>Object.values(y).some(Boolean),[y]),x=(0,v.useMemo)(()=>_&&!b&&!p,[_,b,p]),S=sy((e,t)=>{s(n=>n.config?{config:hP(n.config,e,t)}:null)}),C=sy(()=>{if(!l||b)return;let e=l,t=g(e).then(()=>{s({savedConfig:e})});n_.promise(t,{loading:`正在保存配置...`,success:`配置已保存`,error:e=>e instanceof Error?e.message:`保存配置失败`})}),w=sy(()=>{m()}),T=sy(e=>{r({file:e})}),E=sy(e=>{e.preventDefault(),C()});(0,v.useEffect)(()=>{let e=n.get(`file`);e&&VP.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=sy(()=>{t.current&&BO.fromTo(t.current.querySelectorAll(`[data-config-section]`),uN,{...dN,duration:sN(.35),stagger:cN(.03)})});(0,v.useEffect)(()=>{!l||t.current?.dataset.animated===`true`||(t.current&&(t.current.dataset.animated=`true`),D())},[l,D]),cy(()=>{D()},[c]);let O=(0,v.useMemo)(()=>l?WP({config:l,device:e,classes:d,validationErrors:y,updateConfigValue:S}):{},[l,e,d,y,S]);if(p||!l)return(0,V.jsxs)(`div`,{className:`${d.root} ${d.loading}`,children:[(0,V.jsx)(Jh,{size:`sm`,"aria-label":`正在读取配置`}),(0,V.jsx)(`span`,{children:`正在读取配置`})]});let k=(0,V.jsx)(`div`,{className:d.floatingActions,children:(0,V.jsxs)(`div`,{className:d.actionControls,children:[(0,V.jsxs)(Sv,{delay:0,children:[(0,V.jsx)(Sv.Trigger,{"aria-label":`重新读取配置`,children:(0,V.jsx)(Lm,{isIconOnly:!0,size:f,variant:`secondary`,isDisabled:p||h,onPress:w,children:(0,V.jsx)(sk,{size:16,"aria-hidden":`true`})})}),(0,V.jsxs)(Sv.Content,{showArrow:!0,placement:`bottom`,children:[(0,V.jsx)(Sv.Arrow,{}),`重新读取`]})]}),(0,V.jsxs)(Sv,{delay:0,children:[(0,V.jsx)(Sv.Trigger,{"aria-label":`查看配置变更`,children:(0,V.jsx)(Lm,{isIconOnly:!0,size:f,variant:`secondary`,isDisabled:!_,onPress:i.open,children:(0,V.jsx)(tk,{size:16,"aria-hidden":`true`})})}),(0,V.jsxs)(Sv.Content,{showArrow:!0,placement:`bottom`,children:[(0,V.jsx)(Sv.Arrow,{}),`查看变更`]})]}),(0,V.jsxs)(Lm,{size:f,isDisabled:!x,isPending:h,onPress:C,variant:`primary`,children:[(0,V.jsx)(ck,{size:16,"aria-hidden":`true`}),(0,V.jsx)(`span`,{children:`保存`})]})]})});return(0,V.jsxs)(`div`,{ref:t,className:d.root,children:[(0,V.jsx)(TP,{device:e,original:u,current:l,isOpen:i.isOpen,onOpenChange:i.setOpen}),(0,V.jsx)(`div`,{className:d.header,children:(0,V.jsxs)(`div`,{className:d.headerCopy,children:[(0,V.jsx)(`h2`,{className:`text-2xl font-bold`,children:`配置管理`}),(0,V.jsx)(Pv,{children:`直接读取并写回 Karin 插件配置文件,未展示字段会原样保留。`})]})}),(0,V.jsxs)(Rv,{className:d.form,onSubmit:E,children:[(0,V.jsx)(Z_,{className:`w-full min-w-0 max-w-full`,selectedKey:c,onSelectionChange:T,children:(0,V.jsx)(Z_.ListContainer,{className:d.tabsListContainer,"data-config-tabs-scroll":`true`,"data-scrollbar":`none`,children:(0,V.jsx)(Z_.List,{"aria-label":`配置文件选择`,className:d.tabsList,children:VP.map((e,t)=>(0,V.jsxs)(Z_.Tab,{id:e.key,children:[t>0?(0,V.jsx)(Z_.Separator,{}):null,(0,V.jsx)(`span`,{className:`whitespace-nowrap`,children:e.label}),(0,V.jsx)(Z_.Indicator,{})]},e.key))})})}),(0,V.jsxs)(`div`,{className:`relative min-w-0 max-w-full`,children:[k,(0,V.jsx)(NF,{activeFile:c,classes:d,config:l,device:e,renderers:O,updateConfigValue:S},c)]})]})]})},BF=({onLogin:e})=>{let[t,n]=lb({authKey:``,loading:!1,error:``}),[r,{toggle:i}]=cb(!1),a=r?`隐藏密钥`:`显示密钥`,o=sy(async r=>{r.preventDefault();let i=t.authKey.trim();if(!i){n({error:`请输入 Karin HTTP 鉴权密钥`});return}try{n({loading:!0,error:``}),await tN(i),e()}catch(e){n({error:e instanceof Error?e.message:`登录失败`})}finally{n({loading:!1})}});return(0,V.jsx)(Yh,{className:`flex min-h-screen items-center justify-center px-4 py-8`,children:(0,V.jsxs)(Bm,{className:`w-full max-w-105`,children:[(0,V.jsxs)(Bm.Header,{className:`gap-4 p-6`,children:[(0,V.jsx)(rk,{className:`size-8 shrink-0`,"aria-hidden":`true`}),(0,V.jsxs)(`div`,{className:`min-w-0`,children:[(0,V.jsx)(Bm.Title,{children:`Karin 鉴权`}),(0,V.jsx)(Bm.Description,{children:`使用 Karin HTTP 鉴权密钥登录后管理 KKK 配置。`})]})]}),(0,V.jsx)(Bm.Content,{className:`p-6`,children:(0,V.jsxs)(Rv,{className:`flex flex-col gap-6`,onSubmit:o,children:[(0,V.jsxs)(Av,{fullWidth:!0,isInvalid:!!t.error,value:t.authKey,onChange:e=>{n({authKey:e,error:t.error?``:t.error})},children:[(0,V.jsx)(Mv,{children:`HTTP 鉴权密钥`}),(0,V.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,V.jsx)(kv,{autoComplete:`current-password`,className:`min-w-0 flex-1`,placeholder:`请输入 Karin 的 HTTP_AUTH_KEY`,type:r?`text`:`password`}),(0,V.jsx)(Lm,{isIconOnly:!0,"aria-label":a,type:`button`,variant:`tertiary`,onPress:i,children:r?(0,V.jsx)($O,{className:`size-4`,"aria-hidden":`true`}):(0,V.jsx)(ek,{className:`size-4`,"aria-hidden":`true`})})]}),(0,V.jsx)(Pv,{children:t.error||`生产环境会复用 Karin 主 Web 已保存的登录凭据。`})]}),(0,V.jsx)(Lm,{fullWidth:!0,isPending:t.loading,type:`submit`,children:({isPending:e})=>(0,V.jsxs)(V.Fragment,{children:[e?(0,V.jsx)(Jh,{color:`current`,size:`sm`,"aria-label":`登录中`}):(0,V.jsx)(ik,{className:`size-4`,"aria-hidden":`true`}),(0,V.jsx)(`span`,{children:`登录`})]})})]})})]})})},VF=`theme`,HF=`kkk-theme-changed`,UF=`karin-theme-change`,WF={light:`light`,dark:`dark`,system:`system`,inverse:`inverse`},GF=e=>e===WF.system||e===WF.inverse,KF=e=>e===WF.light||e===WF.dark,qF=e=>!e||typeof e!=`object`?!1:e.type===UF,JF=()=>{let e=localStorage.getItem(VF);if(GF(e))return e;try{let t=JSON.parse(e??``);if(GF(t))return t}catch{}return localStorage.setItem(VF,WF.system),WF.system},YF=()=>window.matchMedia(`(prefers-color-scheme: dark)`).matches?WF.dark:WF.light,XF=()=>window.matchMedia(`(prefers-color-scheme: dark)`).matches?WF.light:WF.dark,ZF=e=>e===WF.system?YF():XF(),QF=e=>$F(ZF(e)),$F=e=>(document.documentElement.classList.remove(WF.light,WF.dark),document.documentElement.classList.add(e),document.documentElement.dataset.theme=e,e),eI=()=>{let[e,t]=(0,v.useState)(()=>JF()),[n,r]=(0,v.useState)(()=>ZF(e)),i=(0,v.useRef)(!1),a=(0,v.useCallback)(e=>{localStorage.setItem(VF,e),t(e),r(QF(e)),window.dispatchEvent(new CustomEvent(HF,{detail:e}))},[]),o=(0,v.useCallback)(()=>{a(WF.system)},[a]),s=(0,v.useCallback)(()=>{a(WF.inverse)},[a]),c=(0,v.useCallback)(()=>{a(e===WF.system?WF.inverse:WF.system)},[a,e]);return(0,v.useEffect)(()=>{i.current?i.current=!1:r(QF(e));let n=window.matchMedia(`(prefers-color-scheme: dark)`),a=()=>{r(QF(e))},o=e=>{if(e.key!==VF||window.self!==window.top)return;let n=JF();t(n),r(QF(n))},s=e=>{let n=e.detail;GF(n)&&(t(n),r(QF(n)))},c=e=>{if(!qF(e.data))return;let n=e.data.theme,a=GF(n??null)?n:JF(),o=KF(e.data.appliedTheme)?e.data.appliedTheme:ZF(a);i.current=!0,localStorage.setItem(VF,a),t(a),r($F(o))};return n.addEventListener(`change`,a),window.addEventListener(`storage`,o),window.addEventListener(HF,s),window.addEventListener(`message`,c),()=>{n.removeEventListener(`change`,a),window.removeEventListener(`storage`,o),window.removeEventListener(HF,s),window.removeEventListener(`message`,c)}},[e]),{theme:e,appliedTheme:n,isDark:(0,v.useMemo)(()=>n===WF.dark,[n]),isLight:(0,v.useMemo)(()=>n===WF.light,[n]),isSystem:e===WF.system,isInverse:e===WF.inverse,setSystemTheme:o,setInverseTheme:s,toggleTheme:c}},tI=()=>document.documentElement.clientWidth||window.innerWidth,nI=(e=tI())=>e<=768?`mobile`:`desktop`,rI=()=>{let e=navigator.userAgent.toLowerCase();return[`android`,`webos`,`iphone`,`ipad`,`ipod`,`blackberry`,`windows phone`,`mobile`].some(t=>e.includes(t))},iI=()=>{let e=nI();return rI()||e===`mobile`?`mobile`:`desktop`},aI=()=>pb(()=>import(`./DesktopLayout-Cdla4l6u.js`),__vite__mapDeps([0,1])),oI=()=>pb(()=>import(`./MobileLayout-DfXVuyA-.js`),__vite__mapDeps([2,1])),sI={config:`/kkk/assets/config`,about:`/kkk/assets/about`},cI={"/kkk/assets/config":`config`,"/kkk/assets/about":`about`},lI=({device:e})=>(0,V.jsxs)(Yh,{className:`h-screen overflow-hidden`,children:[(0,V.jsx)(g_.Provider,{placement:`top`}),(0,V.jsx)(Uh,{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,V.jsx)(zF,{device:e})})]}),uI=({LayoutComponent:e})=>{let t=Ix(),n=zx(),r=cI[t.pathname]||`config`,i=sy(e=>{n(sI[e])});return e?(0,V.jsxs)(`div`,{children:[(0,V.jsx)(g_.Provider,{placement:`top`}),(0,V.jsx)(e,{activeMenu:r,onMenuChange:i})]}):(0,V.jsxs)(Yh,{className:`flex min-h-screen items-center justify-center gap-4`,children:[(0,V.jsx)(Jh,{size:`sm`,"aria-label":`正在加载布局`}),(0,V.jsx)(Pv,{children:`正在加载`})]})},dI=()=>{eI();let[e,t]=lb({authenticated:OC(),device:iI(),LayoutComponent:null}),{authenticated:n,device:r,LayoutComponent:i}=e;(0,v.useEffect)(()=>{let e=()=>{t({authenticated:OC()})};return window.addEventListener(wC,e),window.addEventListener(`storage`,e),()=>{window.removeEventListener(wC,e),window.removeEventListener(`storage`,e)}},[t]);let a=sy(()=>{let e=iI();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 oI();e||t({LayoutComponent:n.default})}else{let n=await aI();e||t({LayoutComponent:n.default})}})(),()=>{e=!0}},[n,r,t]);let o=sy(()=>{t({authenticated:!0})});return n?(0,V.jsxs)(pS,{children:[(0,V.jsx)(dS,{path:`/kkk/assets/karin-config`,element:(0,V.jsx)(lI,{device:r})}),(0,V.jsx)(dS,{path:`/kkk/assets/config`,element:(0,V.jsx)(uI,{LayoutComponent:i})}),(0,V.jsx)(dS,{path:`/kkk/assets/about`,element:(0,V.jsx)(uI,{LayoutComponent:i})}),(0,V.jsx)(dS,{path:`/kkk/assets`,element:(0,V.jsx)(uS,{to:`/kkk/assets/config`,replace:!0})}),(0,V.jsx)(dS,{path:`/kkk`,element:(0,V.jsx)(uS,{to:`/kkk/assets/config`,replace:!0})}),(0,V.jsx)(dS,{path:`/kkk/login`,element:(0,V.jsx)(uS,{to:`/kkk/assets/config`,replace:!0})}),(0,V.jsx)(dS,{path:`*`,element:(0,V.jsx)(uS,{to:`/kkk/assets/config`,replace:!0})})]}):(0,V.jsxs)(pS,{children:[(0,V.jsx)(dS,{path:`/kkk/login`,element:(0,V.jsx)(BF,{onLogin:o})}),(0,V.jsx)(dS,{path:`*`,element:(0,V.jsx)(uS,{to:`/kkk/login`,replace:!0})})]})};(0,y.createRoot)(document.getElementById(`root`)).render((0,V.jsx)(v.StrictMode,{children:(0,V.jsx)(()=>(0,V.jsx)(nC,{children:(0,V.jsx)(dI,{})}),{})}));export{Yi as $,af as A,E as At,Mo as B,Mm as C,ze as Ct,pf as D,De as Dt,xf as E,ke as Et,fu as F,l as Ft,oo as G,Y as H,uu as I,eo as J,so as K,al as L,_u as M,O as Mt,gu as N,h as Nt,mf as O,we as Ot,hu as P,d as Pt,Ea as Q,nl as R,Lm as S,z as St,Ap as T,R as Tt,J as U,No as V,po as W,Wa as X,$a as Y,Ma as Z,vh as _,xt as _t,jC as a,G as at,Wm as b,et as bt,Pv as c,Ti as ct,kv as d,Gr as dt,Xi as et,Sv as f,$t as ft,Ih as g,Et as gt,zh as h,Jt as ht,BO as i,Ci as it,rf as j,M as jt,of as k,L as kt,Mv as l,Si as lt,Yh as m,Kt as mt,zF as n,Mi as nt,cb as o,wi as ot,Z_ as p,Xt as pt,q,XO as r,bi as rt,sy as s,K as st,eI as t,Gi as tt,Av as u,Ur as ut,hh as v,it as vt,Np as w,Fe as wt,Bm as x,B as xt,_h as y,nt as yt,Ws as z};
47
+ </div>`),e.hasArrows=!0}format_textdiff(e,t){e.out(`<div class="jsondiffpatch-value">`),this.formatTextDiffString(e,t[0]),e.out(`</div>`)}};function lP(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 uP=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}`)}})},dP=(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(()=>{uP(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)},fP=(e,t)=>dP(!1,e,t),pP;function mP(e,t){return pP||=new cP,pP.format(e,t)}var hP=e=>e.join(`.`),gP=e=>!!(e&&typeof e==`object`),Q=(e,t,n)=>e?t.reduce((e,t)=>{if(gP(e))return e[t]},e)??n:n,_P=(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];gP(r)||(i[n]={}),i=i[n]}return i[t[t.length-1]]=n,r},vP=(e,t)=>{let n=Number(e);return Number.isFinite(n)?n:t},yP=(e,t)=>Array.isArray(e)&&e.includes(t),bP=e=>!!(e&&typeof e==`object`&&`description`in e),xP=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:[`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];gP(a[n])||(a[n]={}),a=a[n]}a[e[e.length-1]]=i}return t},SP=e=>typeof e==`object`&&!!e,CP=e=>{let t={added:0,modified:0,deleted:0},n=e=>{if(SP(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},wP=({original:e,current:t,showUnchanged:n=!1})=>{let r=(0,v.useRef)(null),i=(0,v.useMemo)(()=>{if(!(!e||!t))return oP(xP(e),xP(t))},[e,t]),a=(0,v.useMemo)(()=>e?xP(e):void 0,[e]),o=(0,v.useMemo)(()=>{if(i)return mP(i,a)},[i,a]),s=(0,v.useMemo)(()=>CP(i),[i]);return(0,v.useEffect)(()=>{r.current&&(o?(r.current.innerHTML=o,n?dP(!0,r.current):fP(r.current)):r.current.innerHTML=``)},[o,n]),o?(0,V.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,V.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,V.jsx)(gh,{size:`sm`,color:`success`,variant:`soft`,children:(0,V.jsxs)(gh.Label,{children:[`+ `,s.added,` 新增`]})}),(0,V.jsx)(gh,{size:`sm`,color:`warning`,variant:`soft`,children:(0,V.jsxs)(gh.Label,{children:[`~ `,s.modified,` 修改`]})}),(0,V.jsx)(gh,{size:`sm`,color:`danger`,variant:`soft`,children:(0,V.jsxs)(gh.Label,{children:[`- `,s.deleted,` 删除`]})})]}),(0,V.jsx)(`div`,{className:`max-h-[60vh] overflow-auto rounded-xl border border-default-200 bg-surface p-4`,children:(0,V.jsx)(`div`,{ref:r,className:`min-w-fit`})})]}):(0,V.jsx)(`div`,{className:`flex flex-col items-center justify-center gap-2 py-10 text-center`,children:(0,V.jsx)(Iv,{className:`text-sm text-muted`,children:`当前没有检测到配置变更`})})},TP=`变更预览`,EP=`绿色 = 新增/改后的内容,红色 = 删除/改前的内容,灰色 = 没变化的内容。`,DP=({device:e,original:t,current:n,isOpen:r,onOpenChange:i})=>{let[a,o]=(0,v.useState)(!1),s=(0,V.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,V.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,V.jsx)(Iv,{className:`text-xs text-muted`,children:EP}),(0,V.jsx)(j_,{size:`sm`,isSelected:a,onChange:o,"aria-label":`显示未变更字段`,children:(0,V.jsxs)(j_.Content,{children:[(0,V.jsx)(j_.Control,{children:(0,V.jsx)(j_.Thumb,{})}),`显示未变更`]})})]}),(0,V.jsx)(wP,{original:t,current:n,showUnchanged:a})]}),c=(0,V.jsx)(zm,{slot:`close`,size:`sm`,variant:`secondary`,children:`关闭`});return e===`mobile`?(0,V.jsx)(Rh,{children:(0,V.jsx)(Rh.Backdrop,{isOpen:r,onOpenChange:i,children:(0,V.jsx)(Rh.Content,{placement:`bottom`,children:(0,V.jsxs)(Rh.Dialog,{className:`h-[85vh]`,children:[(0,V.jsx)(Rh.Handle,{}),(0,V.jsx)(Rh.CloseTrigger,{}),(0,V.jsx)(Rh.Header,{children:(0,V.jsx)(Rh.Heading,{children:TP})}),(0,V.jsx)(Rh.Body,{children:s}),(0,V.jsx)(Rh.Footer,{children:c})]})})})}):(0,V.jsx)(Xv,{children:(0,V.jsx)(Xv.Backdrop,{isOpen:r,onOpenChange:i,children:(0,V.jsx)(Xv.Container,{scroll:`inside`,size:`lg`,children:(0,V.jsxs)(Xv.Dialog,{className:`w-full max-w-4xl`,children:[(0,V.jsx)(Xv.CloseTrigger,{}),(0,V.jsxs)(Xv.Header,{children:[(0,V.jsx)(Xv.Icon,{className:`bg-accent-soft text-accent-soft-foreground`,children:(0,V.jsx)(rk,{className:`size-5`})}),(0,V.jsx)(Xv.Heading,{children:TP})]}),(0,V.jsx)(Xv.Body,{children:s}),(0,V.jsx)(Xv.Footer,{children:c})]})})})})},OP=e=>!!(e&&typeof e==`object`),$=(e,t,n)=>e?t.reduce((e,t)=>{if(OP(e))return e[t]},e)??n:n,kP=(e,t)=>Array.isArray(e)&&e.includes(t),AP=[{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=>!kP($(e,[`douyin`,`sendContent`],[]),`comment`),message:`修改此配置项需要在「解析时发送的内容」中勾选「评论图」`}]},{path:[`douyin`,`subCommentLimit`],rules:[{condition:e=>!$(e,[`douyin`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!kP($(e,[`douyin`,`sendContent`],[]),`comment`),message:`修改此配置项需要在「解析时发送的内容」中勾选「评论图」`}]},{path:[`douyin`,`commentImageCollection`],rules:[{condition:e=>!$(e,[`douyin`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!kP($(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=>!kP($(e,[`bilibili`,`sendContent`],[]),`comment`),message:`修改此配置项需要在「解析时发送的内容」中勾选「评论图」`}]},{path:[`bilibili`,`realCommentCount`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!kP($(e,[`bilibili`,`sendContent`],[]),`comment`),message:`修改此配置项需要在「解析时发送的内容」中勾选「评论图」`}]},{path:[`bilibili`,`commentImageCollection`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!kP($(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`,`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=>!kP($(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:`修改此配置项需要先将「画质偏好」改为「自动选择」`}]}],jP=e=>e.join(`.`),MP=(e,t)=>{let n=jP(t),r=AP.find(e=>jP(e.path)===n);if(!r)return``;for(let t of r.rules)if(t.condition(e))return t.message;return``},NP=[{label:`信息`,value:`info`},{label:`评论图`,value:`comment`},{label:`视频`,value:`video`},{label:`图片`,value:`image`}],PP=[{label:`封面`,value:`cover`},{label:`标题`,value:`title`},{label:`作者`,value:`author`},{label:`统计`,value:`stats`},{label:`简介`,value:`desc`}],FP=[{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`}],IP=[{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:`需大会员&视频支持`}],LP=[{label:`所有人`,value:`all`},{label:`管理员`,value:`admin`},{label:`主人`,value:`master`},{label:`群主`,value:`group.owner`},{label:`群管理员`,value:`group.admin`}],RP=[{label:`H.264`,value:`h264`,description:`兼容性最好,支持几乎所有设备`},{label:`H.265`,value:`h265`,description:`压缩率更高,近几年设备支持良好(推荐)`},{label:`AV1`,value:`av1`,description:`最新编码格式,压缩率最高,但编码较慢`}],zP=[{label:`关闭`,value:`off`,description:`保持原始比例,不做转换`},{label:`智能`,value:`standard`,description:`仅对宽屏比例视频生效`},{label:`强制 9:16`,value:`force`,description:`所有视频统一转为 9:16 竖屏`}],BP=[{label:`1/4 屏`,value:`0.25`,description:`仅顶部区域`},{label:`半屏`,value:`0.5`,description:`上半部分(推荐)`},{label:`3/4 屏`,value:`0.75`,description:`大部分区域`},{label:`全屏`,value:`1`,description:`铺满整个画面`}],VP=[{label:`小号`,value:`small`},{label:`中号`,value:`medium`},{label:`大号`,value:`large`}],HP={enabled:`已开启`,disabled:`已关闭`},UP=[{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`}],WP=(0,v.lazy)(()=>hb(()=>import(`./CronEditor-DLELr4UG.js`),__vite__mapDeps([0,1]))),GP=({className:e,disabled:t,...n})=>{let[r,i]=(0,v.useState)(!1),a=r?`隐藏密码`:`显示密码`;return(0,V.jsxs)(`div`,{className:`relative w-full`,children:[(0,V.jsx)(jv,{...n,variant:`secondary`,className:`w-full pr-10 ${e??``}`,type:r?`text`:`password`}),(0,V.jsx)(zm,{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,V.jsx)(tk,{className:`size-4`,"aria-hidden":`true`}):(0,V.jsx)(nk,{className:`size-4`,"aria-hidden":`true`})})]})},KP=({config:e,device:t,classes:n,validationErrors:r,updateConfigValue:i})=>{let a=e=>{let n=bP(e)?e:{description:e},r=t===`mobile`?n.mobileContent??n.desktopContent:n.desktopContent;return(0,V.jsxs)(Iv,{className:`flex items-center gap-2`,children:[(0,V.jsx)(`span`,{children:n.description}),r?(0,V.jsxs)(wv,{delay:0,children:[(0,V.jsx)(wv.Trigger,{"aria-label":`查看详细说明`,children:(0,V.jsx)(zm,{isIconOnly:!0,size:`sm`,variant:`tertiary`,children:(0,V.jsx)(ik,{className:`size-4`,"aria-hidden":`true`})})}),(0,V.jsxs)(wv.Content,{showArrow:!0,placement:t===`mobile`?`bottom`:`top`,children:[(0,V.jsx)(wv.Arrow,{}),(0,V.jsx)(`div`,{className:`max-w-72`,children:r})]})]}):null,n.extra]})},o=(n,r,i)=>{if(!i)return n;let a=MP(e,r);return a?t===`mobile`?(0,V.jsxs)(Vh,{children:[(0,V.jsx)(Vh.Trigger,{className:`w-full cursor-not-allowed`,children:n}),(0,V.jsx)(Vh.Content,{placement:`bottom`,children:(0,V.jsxs)(Vh.Dialog,{children:[(0,V.jsx)(Vh.Arrow,{}),(0,V.jsx)(`div`,{className:`max-w-72 text-sm`,children:a})]})})]}):(0,V.jsxs)(wv,{delay:0,children:[(0,V.jsx)(wv.Trigger,{className:`w-full cursor-not-allowed`,children:n}),(0,V.jsxs)(wv.Content,{showArrow:!0,placement:`top`,children:[(0,V.jsx)(wv.Arrow,{}),(0,V.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);return o((0,V.jsxs)(j_,{isDisabled:s,isSelected:c,onChange:e=>i(t,e),children:[(0,V.jsxs)(j_.Content,{children:[(0,V.jsx)(j_.Control,{children:(0,V.jsx)(j_.Thumb,{})}),(0,V.jsx)(`span`,{className:`font-semibold`,children:n})]}),a(r||(c?HP.enabled:HP.disabled))]}),t,s)},renderTextField:(t,n,s,c)=>{let l=c?.type||`text`,u=String(Q(e,t,l===`number`?c?.fallback??0:``)),d=r[hP(t)],f=c?.disabled??!1;return o((0,V.jsxs)(Mv,{fullWidth:!0,isInvalid:!!d,isDisabled:f,name:t.join(`.`),type:l,value:u,onChange:e=>{i(t,l===`number`?vP(e,c?.fallback??0):e)},children:[(0,V.jsx)(Pv,{className:`font-semibold`,children:n}),l===`password`?(0,V.jsx)(GP,{disabled:f,max:c?.max,min:c?.min,pattern:c?.pattern,placeholder:c?.placeholder||n,step:c?.step}):(0,V.jsx)(jv,{variant:`secondary`,max:c?.max,min:c?.min,pattern:c?.pattern,placeholder:c?.placeholder||n,step:c?.step}),d?(0,V.jsx)(Rv,{children:d}):a(s)]}),t,f)},renderSelectField:(t,n,r,s,c=e=>e,l=!1)=>{let u=String(Q(e,t,s[0]?.value||``));return o((0,V.jsxs)($v,{disabledKeys:s.filter(e=>e.disabled).map(e=>e.value),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,V.jsx)(Pv,{className:`font-semibold`,children:n}),(0,V.jsxs)($v.Trigger,{children:[(0,V.jsx)($v.Value,{}),(0,V.jsx)($v.Indicator,{})]}),a(r),(0,V.jsx)($v.Popover,{children:(0,V.jsx)(qv,{children:s.map(e=>(0,V.jsxs)(qv.Item,{id:e.value,textValue:e.label,children:[(0,V.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,V.jsx)(Pv,{children:e.label}),e.description?(0,V.jsx)(Iv,{children:e.description}):null]}),(0,V.jsx)(qv.ItemIndicator,{})]},e.value))})})]}),t,l)},renderCheckboxGroup:(t,r,i,c,l=!1,u)=>{let d=Q(e,t,[]);return o((0,V.jsxs)(`div`,{className:n.field,children:[(0,V.jsx)(Pv,{className:`font-semibold`,children:r}),a(i),(0,V.jsx)(`div`,{className:n.choiceGrid,children:c.map(e=>(0,V.jsxs)(fh,{variant:`secondary`,isDisabled:l,isSelected:yP(d,e.value),onChange:n=>s(t,e.value,n,u),children:[(0,V.jsxs)(fh.Content,{children:[(0,V.jsx)(fh.Control,{children:(0,V.jsx)(fh.Indicator,{})}),e.label]}),e.description?(0,V.jsx)(Iv,{children:e.description}):null]},e.value))})]}),t,l)},renderCronField:(r,a,s,c=!1)=>{let l=Q(e,r,`*/10 * * * *`);return o((0,V.jsx)(`div`,{className:n.field,children:(0,V.jsx)(v.Suspense,{fallback:(0,V.jsx)(`div`,{className:`h-64 animate-pulse rounded-lg bg-muted/30`}),children:(0,V.jsx)(WP,{device:t,disabled:c,value:l,onChange:e=>i(r,e)})})}),r,c)},renderPageHeader:(e,n)=>(0,V.jsxs)(`div`,{className:`mb-6 ${t===`mobile`?`pr-36`:``}`,"data-config-section":!0,children:[(0,V.jsx)(`h2`,{className:`text-2xl font-bold`,children:e}),(0,V.jsx)(`div`,{className:`mt-3`,children:(0,V.jsx)(Iv,{children:n})})]}),renderSubSection:(e,t)=>(0,V.jsxs)(Hm,{"data-config-section":!0,className:`mb-4`,children:[(0,V.jsx)(Hm.Header,{className:n.sectionHeader,children:(0,V.jsx)(Hm.Title,{className:`text-lg font-semibold`,children:e})}),(0,V.jsx)(Hm.Content,{className:n.sectionContent,children:(0,V.jsx)(`div`,{className:n.fields,children:t})})]})}},qP={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`},JP={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`},YP=e=>e===`mobile`?JP:qP,XP=({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,V.jsxs)(V.Fragment,{children:[n(`接口库配置`,`接口库的 Cookies、请求、代理和 API 服务配置。保存后后端会重载接口库客户端。`),i(`平台 Cookies`,(0,V.jsxs)(V.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,V.jsxs)(V.Fragment,{children:[o([`amagi`,`timeout`],`请求超时时间`,`网络请求的超时时间,单位:毫秒。`,{type:`number`,fallback:15e3,min:1e3,max:3e5}),o([`amagi`,`User-Agent`],`User-Agent`,`请求头中的User-Agent字段,用于标识客户端类型。`)]})),i(`代理配置(可选)`,(0,V.jsxs)(V.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,V.jsxs)(V.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})]}))]})},ZP=({config:e,renderers:t})=>{let{renderCheckboxGroup:n,renderPageHeader:r,renderSelectField:i,renderSubSection:a,renderSwitch:o,renderTextField:s}=t,c=Q(e,[`app`,`livePhotoMode`],`video_and_livephoto`);return(0,V.jsxs)(V.Fragment,{children:[r(`通用`,`插件运行、渲染和交互相关配置。`),a(`缓存设置`,(0,V.jsx)(V.Fragment,{children:o([`app`,`removeCache`],`自动删除视频缓存`,`任务完成后删除下载缓存。`)})),a(`交互设置`,(0,V.jsxs)(V.Fragment,{children:[o([`app`,`EmojiReply`],`表情回应`,`在解析任务开始时添加表情回应,若适配器不支持需要关闭。`),o([`app`,`parseTip`],`解析提示`,`发送提示信息:"检测到xxx链接,开始解析"。`),o([`app`,`fakeForward`],`伪造合并转发消息`,`开启后合并转发将使用触发者身份展示;关闭后使用机器人身份展示。`),n([`app`,`errorLogSendTo`],`错误日志`,`遇到错误时谁会收到错误日志。注:推送任务只可发送给主人。「第一个主人」与「所有主人」互斥。`,[{label:`第一个主人`,value:`master`},{label:`所有主人`,value:`allMasters`},{label:`触发者的群聊`,value:`trigger`}],!1,[[`master`,`allMasters`]])]})),a(`渲染设置`,(0,V.jsxs)(V.Fragment,{children:[s([`app`,`renderScale`],`渲染精度`,`可选值50~200,建议100。设置高精度会提高图片的精细度,过高可能会影响渲染与发送速度。`,{type:`number`,fallback:100,min:50,max:200}),i([`app`,`Theme`],`渲染图片的主题色`,`渲染评论图和推送图的主题色。`,[{label:`自动`,value:`0`,description:`06:00-18:00为浅色,18:00-06:00为深色`},{label:`浅色`,value:`1`},{label:`深色`,value:`2`}],e=>Number(e)),o([`app`,`RemoveWatermark`],`移除版本信息`,`渲染的图片是否移除底部版本信息。`),s([`app`,`RenderWaitTime`],`渲染图片的等待时间`,`单位:秒,Linux系统下不能为0;其他系统传递 0 可禁用。`,{type:`number`,fallback:60,min:0}),o([`app`,`multiPageRender`],`分页渲染`,`将模板渲染成多页的图片,以降低渲染器压力,默认开启,非必要不修改!`),s([`app`,`multiPageHeight`],`分页渲染时,每页的高度`,`经测试最佳每页高度为12000px,默认12000px。`,{type:`number`,disabled:!Q(e,[`app`,`multiPageRender`],!0),fallback:12e3,min:1e3,max:2e4})]})),a(`上传与下载设置`,(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(Zh,{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)),o([`app`,`usegroupfile`],`群文件上传`,`使用群文件上传,开启后会将视频文件上传到群文件中,需配置「群文件上传阈值」。与「本地视频发送方式 = Base64」互斥。`,Q(e,[`app`,`videoSendMode`],`file`)===`base64`),s([`app`,`groupfilevalue`],`群文件上传阈值`,`当文件大小超过该值时将使用群文件上传,单位:MB,「使用群文件上传」开启后才会生效。`,{type:`number`,fallback:100,min:1,disabled:!Q(e,[`app`,`usegroupfile`],!1)||Q(e,[`app`,`videoSendMode`],`file`)===`base64`})]}),(0,V.jsx)(Zh,{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,V.jsxs)(Zh,{className:`flex flex-col gap-5 p-4 mb-4 rounded-3xl`,variant:`secondary`,children:[o([`app`,`usefilelimit`],`视频上传拦截`,`开启后会根据视频文件大小判断是否需要上传,需配置「视频拦截阈值」。`),s([`app`,`filelimit`],`视频拦截阈值`,`视频文件大于该数值则直接结束任务,不会上传,单位: MB,「视频上传拦截」开启后才会生效。`,{type:`number`,fallback:20,min:1,disabled:!Q(e,[`app`,`usefilelimit`],!1)}),o([`app`,`compress`],`压缩视频`,`开启后会将视频文件压缩后再上传,适合上传大文件,任务过程中会吃满CPU,对低配服务器不友好。需配置「压缩触发阈值」与「压缩后的值」。`),s([`app`,`compresstrigger`],`压缩触发阈值`,`触发视频压缩的阈值,单位:MB。当文件大小超过该值时,才会压缩视频,「压缩视频」开启后才会生效。`,{type:`number`,fallback:80,min:1,disabled:!Q(e,[`app`,`compress`],!1)}),s([`app`,`compressvalue`],`压缩后的值`,`单位:MB,若视频文件大小大于「压缩触发阈值」的值,则会进行压缩至该值(±5%),「压缩视频」开启后才会生效。`,{type:`number`,fallback:30,min:1,disabled:!Q(e,[`app`,`compress`],!1)})]}),(0,V.jsxs)(Zh,{className:`flex flex-col gap-5 p-4 rounded-3xl`,variant:`secondary`,children:[o([`app`,`downloadThrottle`],`下载限速`,`开启后会限制下载速度,避免触发服务器风控导致连接被重置(ECONNRESET)。如果下载时经常报错"连接被重置",建议开启。`),s([`app`,`downloadMaxSpeed`],`最大下载速度`,`限速开关打开后生效。单位:MB/s,建议值:10,根据实际情况调整。`,{type:`number`,fallback:10,min:1,max:100,disabled:!Q(e,[`app`,`downloadThrottle`],!1)}),o([`app`,`downloadAutoReduce`],`断流自动降速`,`限速开关打开后生效。当检测到下载中断时,自动降低下载速度,避免再次触发风控。`,!Q(e,[`app`,`downloadThrottle`],!1)),s([`app`,`downloadMinSpeed`],`最低下载速度`,`断流降速开关打开后生效。单位:MB/s,自动降速的下限值。`,{type:`number`,fallback:1,min:.5,max:50,disabled:!Q(e,[`app`,`downloadThrottle`],!1)||!Q(e,[`app`,`downloadAutoReduce`],!1)})]})]})),a(`Live Photo 兼容设置`,(0,V.jsxs)(V.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,c===`video_only`)]})),a(`我的小玩具`,(0,V.jsxs)(V.Fragment,{children:[o([`app`,`videoTool`],`默认解析优先级`,`关闭后使用自定义优先级,修改后需重启。`),s([`app`,`priority`],`自定义优先级`,`默认解析优先级关闭后生效。`,{type:`number`,disabled:Q(e,[`app`,`videoTool`],!0),fallback:800}),i([`app`,`qrLoginAddrType`],`扫码登录地址`,`生成登录二维码时使用的服务器地址。`,[{label:`局域网`,value:`lan`,description:`适用于手机和服务器在同一局域网`},{label:`外部地址`,value:`external`,description:`适用于远程访问,需手动配置`}]),s([`app`,`qrLoginExternalAddr`],`外部访问地址`,`公网 IP 或域名,如:123.45.67.89 或 example.com。`,{disabled:Q(e,[`app`,`qrLoginAddrType`],`lan`)!==`external`})]}))]})},QP=({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||!yP(d,`comment`),y=!u||!f;return(0,V.jsxs)(V.Fragment,{children:[a(`哔哩哔哩`,`B站解析、动态图片布局、弹幕和推送基础设置。`),(0,V.jsxs)(`div`,{className:n.topLevelFields,"data-config-section":!0,children:[c([`bilibili`,`switch`],`解析开关`,`B站解析开关,此开关为单独开关。`),r([`bilibili`,`sendContent`],`解析时发送的内容`,`若什么都不选,可能不会返回任何解析结果。`,NP.filter(e=>e.value!==`image`),!u)]}),s(`评论详情设置`,(0,V.jsxs)(V.Fragment,{children:[l([`bilibili`,`numcomment`],`评论解析数量`,`主评论解析数量。`,{type:`number`,fallback:5,min:1,disabled:v}),c([`bilibili`,`realCommentCount`],`显示真实评论数量`,`关闭则显示解析到的评论数量。`,v),c([`bilibili`,`commentImageCollection`],`是否收集评论区的图片`,`开启后将收集评论区的图片,以合并转发的形式返回。`,v)]})),s(`渲染与画质设置`,(0,V.jsxs)(V.Fragment,{children:[o([`bilibili`,`videoQuality`],`画质偏好`,`解析视频的分辨率偏好。`,IP,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`],`视频信息前返回的内容`,`若什么都不选,则不会返回任何视频相关信息。`,PP,!u||m===`image`),c([`bilibili`,`showDanmakuInVideoInfo`],`视频信息图片中显示弹幕`,`开启后在视频信息图片的封面区域显示热门弹幕。关闭后不会请求弹幕数据,可提升解析速度。仅「视频信息返回形式」为图片模式时生效。`,!u||m===`text`)]})),s(`权限设置`,(0,V.jsx)(V.Fragment,{children:o([`bilibili`,`loginPerm`],`谁可以触发扫码登录`,`修改后需重启。`,LP)})),s(`弹幕烧录相关`,(0,V.jsxs)(V.Fragment,{children:[c([`bilibili`,`burnDanmaku`],`弹幕烧录`,`将弹幕硬编码到视频画面中。开启后视频需要重新编码,耗时较长,高分辨率视频会占用较多资源。`,!u),o([`bilibili`,`danmakuArea`],`弹幕区域`,`限制弹幕的显示范围,避免遮挡视频主体内容。`,BP,Number,y),o([`bilibili`,`danmakuFontSize`],`弹幕字号`,`弹幕文字大小。`,VP,e=>e,y),l([`bilibili`,`danmakuOpacity`],`弹幕透明度`,`0为完全透明,100为完全不透明,推荐70。`,{type:`number`,fallback:70,min:0,max:100,disabled:y}),o([`bilibili`,`verticalMode`],`竖屏适配`,`模拟手机端竖屏观看体验,视频居中显示,上下黑边区域用于展示弹幕。`,zP,e=>e,y),o([`bilibili`,`videoCodec`],`视频编码格式`,`弹幕烧录时使用的视频编码格式,会自动检测硬件加速。`,RP,e=>e,y)]})),s(`B站推送相关`,(0,V.jsxs)(V.Fragment,{children:[c([`bilibili`,`push`,`switch`],`推送开关`,`推送开关,修改后需重启;使用「#设置B站推送 + UID」配置推送列表。`),o([`bilibili`,`push`,`permission`],`谁可以设置推送`,`修改后需重启。`,LP,e=>e,!h),i([`bilibili`,`push`,`cron`],`定时任务表达式`,`定时推送的时间,支持可视化编辑或手动输入 cron 表达式。`,!h),c([`bilibili`,`push`,`parsedynamic`],`作品解析`,`触发推送时是否一同解析该作品。`,!h),o([`bilibili`,`push`,`pushVideoQuality`],`解析视频动态时的画质偏好`,`「作品解析」开启时生效,仅对视频动态有效。`,IP.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})]}))]})},$P=({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||!yP(f,`comment`),y=!d||!p;return(0,V.jsxs)(V.Fragment,{children:[a(`抖音`,`抖音解析、画质、弹幕和推送基础设置。`),(0,V.jsxs)(`div`,{className:n.topLevelFields,"data-config-section":!0,children:[c([`douyin`,`switch`],`解析开关`,`抖音解析开关,此开关为单独开关。`),r([`douyin`,`sendContent`],`解析时发送的内容`,`若什么都不选,可能不会返回任何解析结果。`,NP.filter(e=>e.value!==`image`),!d)]}),s(`评论详情设置`,(0,V.jsxs)(V.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,V.jsxs)(V.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`],`画质偏好`,`解析视频的分辨率偏好。`,FP,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`],`视频信息的内容`,`若什么都不选,则不会返回任何视频相关信息。`,PP.filter(e=>e.value!==`desc`),!d||h===`image`)]})),s(`权限设置`,(0,V.jsx)(V.Fragment,{children:o([`douyin`,`loginPerm`],`谁可以触发扫码登录`,`修改后需重启。`,LP)})),s(`弹幕烧录相关`,(0,V.jsxs)(V.Fragment,{children:[c([`douyin`,`burnDanmaku`],`弹幕烧录`,`将弹幕硬编码到视频画面中。开启后视频需要重新编码,耗时较长。`,!d),o([`douyin`,`danmakuArea`],`弹幕显示区域`,`限制弹幕范围,避免遮挡视频主体。`,BP,Number,y),o([`douyin`,`danmakuFontSize`],`弹幕字号`,`弹幕文字大小。`,VP,e=>e,y),l([`douyin`,`danmakuOpacity`],`弹幕透明度`,`0为完全透明,100为完全不透明,推荐70。`,{type:`number`,fallback:70,min:0,max:100,disabled:y}),o([`douyin`,`verticalMode`],`竖屏适配`,`针对横屏视频,模拟手机端竖屏观看体验,视频居中显示,上下黑边区域用于展示弹幕。`,zP,e=>e,y),o([`douyin`,`videoCodec`],`视频编码格式`,`烧录弹幕后的视频编码格式。`,RP,e=>e,y)]})),s(`抖音推送相关`,(0,V.jsxs)(V.Fragment,{children:[c([`douyin`,`push`,`switch`],`推送开关`,`推送开关,修改后需重启;使用「#设置抖音推送 + 抖音号」配置推送列表。`),o([`douyin`,`push`,`permission`],`谁可以设置推送`,`修改后需重启。`,LP,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`],`画质偏好`,`推送解析时解析视频的分辨率偏好。`,FP,e=>e,!g),l([`douyin`,`push`,`pushMaxAutoVideoSize`],`视频体积上限(MB)`,`推送解析时根据该值自动选择分辨率进行下载。仅在「画质偏好」 为 "自动选择" 时生效。`,{type:`number`,fallback:50,min:1,max:2e4,disabled:!g||_!==`adapt`})]}))]})},eF=({config:e,renderers:t,classes:n})=>{let{renderPageHeader:r,renderSubSection:i,renderSwitch:a,renderTextField:o}=t,s=Q(e,[`kuaishou`,`switch`],!1),c=Q(e,[`kuaishou`,`comment`],!1);return(0,V.jsxs)(V.Fragment,{children:[r(`快手`,`快手解析基础设置。`),(0,V.jsx)(`div`,{className:n.topLevelFields,"data-config-section":!0,children:a([`kuaishou`,`switch`],`解析开关`,`快手解析开关,此开关为单独开关。`)}),i(`评论详情设置`,(0,V.jsxs)(V.Fragment,{children:[a([`kuaishou`,`comment`],`评论解析`,`快手评论解析,开启后可发送快手作品评论图。`,!s),o([`kuaishou`,`numcomment`],`评论解析数量`,`快手评论解析数量。`,{type:`number`,fallback:5,min:1,disabled:!s||!c})]}))]})},tF=({children:e,disabled:t,message:n,device:r})=>t?r===`mobile`?(0,V.jsxs)(Vh,{children:[(0,V.jsx)(Vh.Trigger,{className:`w-full cursor-not-allowed`,children:e}),(0,V.jsxs)(Vh.Content,{placement:`bottom`,children:[(0,V.jsx)(Vh.Arrow,{}),(0,V.jsx)(`div`,{className:`px-3 py-2`,children:(0,V.jsx)(`p`,{className:`text-sm text-foreground`,children:n})})]})]}):(0,V.jsxs)(wv,{delay:0,children:[(0,V.jsx)(wv.Trigger,{className:`w-full cursor-not-allowed`,children:e}),(0,V.jsxs)(wv.Content,{showArrow:!0,placement:`top`,children:[(0,V.jsx)(wv.Arrow,{}),n]})]}):e,nF=e=>e===`desktop`?`grid grid-cols-2 gap-4`:`flex flex-col gap-4`,rF=[{label:`作品列表`,value:`post`,description:`推送用户发布的作品`},{label:`喜欢列表`,value:`favorite`,description:`推送用户喜欢的作品`},{label:`推荐列表`,value:`recommend`,description:`推送推荐的作品`},{label:`直播`,value:`live`,description:`推送直播状态`}],iF=[{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:`推送专栏文章`}],aF=[{label:`黑名单`,value:`blacklist`,description:`命中关键词/标签则不推送`},{label:`白名单`,value:`whitelist`,description:`只推送命中关键词/标签的内容`}],oF=({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,V.jsxs)(`div`,{className:`space-y-2`,children:[(0,V.jsxs)(`div`,{className:`flex gap-2`,children:[(0,V.jsxs)(Mv,{className:`flex-1`,isDisabled:a,isInvalid:!!c,value:o,onChange:e=>{s(e),c&&l(``)},children:[(0,V.jsx)(Pv,{children:e}),(0,V.jsx)(jv,{variant:`secondary`,placeholder:`输入${e}`,onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),u())}}),c?(0,V.jsx)(Rv,{children:c}):null]}),(0,V.jsx)(zm,{isDisabled:a,variant:`secondary`,onPress:u,children:(0,V.jsx)(ck,{className:`size-4`})})]}),n.length>0?(0,V.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:n.map(e=>(0,V.jsxs)(gh,{color:`accent`,variant:`soft`,children:[(0,V.jsx)(`span`,{children:e}),a?null:(0,V.jsx)(`button`,{type:`button`,className:`ml-1 rounded-full p-0.5 hover:bg-black/10`,onClick:()=>i(e),children:(0,V.jsx)(dk,{className:`size-3`})})]},e))}):(0,V.jsxs)(Iv,{children:[`暂无`,e]}),(0,V.jsx)(Iv,{children:t})]})},sF=(e,t)=>{if((e.success||e.code===200)&&e.data!==void 0)return e.data;throw Error(e.message||t)},cF=async()=>sF((await nN.get(`/kkk/v1/bots`)).data,`获取 Bot 列表失败`),lF=async e=>sF((await nN.get(`/kkk/v1/bots/${encodeURIComponent(e)}/groups`)).data,`获取群列表失败`),uF=async e=>e.length===0?[]:sF((await nN.post(`/kkk/v1/groups/batch`,{groups:e})).data,`获取推送目标信息失败`),dF=({mapping:e,compact:t=!1,stacked:n=!1})=>n?(0,V.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,V.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,V.jsxs)(Pm,{size:`sm`,children:[(0,V.jsx)(Pm.Image,{alt:e.groupName||e.groupId,src:e.groupAvatar}),(0,V.jsx)(Pm.Fallback,{children:(e.groupName||e.groupId).slice(0,1)})]}),(0,V.jsxs)(`div`,{className:`min-w-0`,children:[(0,V.jsx)(Pv,{className:`block truncate`,children:e.groupName||e.groupId}),(0,V.jsx)(Iv,{className:`block truncate`,children:e.groupId})]})]}),(0,V.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2 pl-8`,children:[(0,V.jsx)($O,{className:`size-4 shrink-0 text-muted`}),(0,V.jsxs)(Pm,{size:`sm`,children:[(0,V.jsx)(Pm.Image,{alt:e.botName||e.botId,src:e.botAvatar}),(0,V.jsx)(Pm.Fallback,{children:(e.botName||e.botId).slice(0,1)})]}),(0,V.jsxs)(`div`,{className:`min-w-0`,children:[(0,V.jsx)(Pv,{className:`block truncate`,children:e.botName||e.botId}),(0,V.jsx)(Iv,{className:`block truncate`,children:t?e.botId:`Bot ${e.botId}`})]})]})]}):(0,V.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,V.jsxs)(Pm,{size:`sm`,children:[(0,V.jsx)(Pm.Image,{alt:e.groupName||e.groupId,src:e.groupAvatar}),(0,V.jsx)(Pm.Fallback,{children:(e.groupName||e.groupId).slice(0,1)})]}),(0,V.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,V.jsx)(Pv,{className:`block truncate`,children:e.groupName||e.groupId}),(0,V.jsx)(Iv,{className:`block truncate`,children:e.groupId})]}),(0,V.jsx)($O,{className:`size-4 shrink-0 text-muted`}),(0,V.jsxs)(Pm,{size:`sm`,children:[(0,V.jsx)(Pm.Image,{alt:e.botName||e.botId,src:e.botAvatar}),(0,V.jsx)(Pm.Fallback,{children:(e.botName||e.botId).slice(0,1)})]}),(0,V.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,V.jsx)(Pv,{className:`block truncate`,children:e.botName||e.botId}),(0,V.jsx)(Iv,{className:`block truncate`,children:t?e.botId:`Bot ${e.botId}`})]})]}),fF=e=>`${e.groupId}:${e.botId}`,pF=e=>{let[t,n,r]=e.split(`:`);return!t||!n||r!==void 0?null:{groupId:t,botId:n}},mF=e=>{let t=new Set,n=[];return e.forEach(e=>{let r=pF(e);if(!r)return;let i=fF(r);t.has(i)||(t.add(i),n.push(i))}),n},hF=({device:e,mappings:t,onEdit:n,onRemove:r})=>(0,V.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,V.jsxs)(`div`,{children:[(0,V.jsx)(Pv,{children:`已配置目标`}),(0,V.jsxs)(Iv,{children:[t.length,` 个推送目标`]})]}),t.length>0?(0,V.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=fF(t);return(0,V.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,V.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,V.jsx)(dF,{compact:!0,mapping:t,stacked:e===`mobile`})}),(0,V.jsxs)(wv,{delay:0,children:[(0,V.jsx)(zm,{isIconOnly:!0,"aria-label":`编辑推送目标`,size:`sm`,variant:`tertiary`,onPress:()=>n(i),children:(0,V.jsx)(sk,{className:`size-4`})}),(0,V.jsxs)(wv.Content,{showArrow:!0,placement:`top`,children:[(0,V.jsx)(wv.Arrow,{}),`编辑`]})]}),(0,V.jsxs)(wv,{delay:0,children:[(0,V.jsx)(zm,{isIconOnly:!0,"aria-label":`删除推送目标`,size:`sm`,variant:`danger`,onPress:()=>r(i),children:(0,V.jsx)(dk,{className:`size-4`})}),(0,V.jsxs)(wv.Content,{showArrow:!0,placement:`top`,children:[(0,V.jsx)(wv.Arrow,{}),`删除`]})]})]},i)})}):(0,V.jsx)(`div`,{className:`rounded-lg border border-dashed border-default-300 px-4 py-5 text-sm text-muted`,children:`还没有推送目标,点击上方按钮添加。`})]}),gF=({label:e,description:t,placeholder:n,disabled:r=!1,items:i,selectedId:a,onSelect:o})=>(0,V.jsxs)($v,{fullWidth:!0,allowsEmptyCollection:!0,isDisabled:r,placeholder:n,value:a||null,variant:`secondary`,onChange:e=>o(String(e||``)),children:[(0,V.jsx)(Pv,{children:e}),(0,V.jsxs)($v.Trigger,{children:[(0,V.jsx)($v.Value,{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,V.jsxs)(`span`,{className:`flex min-w-0 items-center gap-3`,children:[(0,V.jsxs)(Pm,{size:`sm`,children:[(0,V.jsx)(Pm.Image,{alt:r.name,src:r.avatar}),(0,V.jsx)(Pm.Fallback,{children:r.name.slice(0,1)})]}),(0,V.jsxs)(`span`,{className:`min-w-0`,children:[(0,V.jsx)(`span`,{className:`block truncate`,children:r.name}),(0,V.jsx)(`span`,{className:`block truncate text-xs text-muted`,children:r.description})]})]}):e}}),(0,V.jsx)($v.Indicator,{})]}),(0,V.jsx)(Iv,{children:t}),!r&&i.length===0?(0,V.jsx)(Iv,{className:`text-warning`,children:`当前没有可选项`}):null,(0,V.jsx)($v.Popover,{className:`max-h-72`,children:(0,V.jsx)(qv,{items:i,children:e=>(0,V.jsxs)(qv.Item,{id:e.id,textValue:`${e.name} ${e.description}`,children:[(0,V.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[(0,V.jsxs)(Pm,{size:`sm`,children:[(0,V.jsx)(Pm.Image,{alt:e.name,src:e.avatar}),(0,V.jsx)(Pm.Fallback,{children:e.name.slice(0,1)})]}),(0,V.jsxs)(`div`,{className:`min-w-0`,children:[(0,V.jsx)(Pv,{className:`truncate`,children:e.name}),(0,V.jsx)(Iv,{className:`truncate`,children:e.description})]})]}),(0,V.jsx)(qv.ItemIndicator,{})]})})})]}),_F=({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&&cF().then(o).catch(e=>{y(e instanceof Error?e.message:`获取 Bot 列表失败`)}).finally(()=>m(!1))},[e]),(0,v.useEffect)(()=>{!e||!l||lF(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,V.jsx)(Rh.Backdrop,{isOpen:e,onOpenChange:r,children:(0,V.jsx)(Rh.Content,{placement:E,children:(0,V.jsxs)(Rh.Dialog,{className:t===`desktop`?`h-full w-105 max-w-[90vw]`:`max-h-[78dvh]`,children:[(0,V.jsx)(Rh.Handle,{}),(0,V.jsx)(Rh.CloseTrigger,{}),(0,V.jsxs)(Rh.Header,{children:[(0,V.jsx)(Rh.Heading,{children:D}),(0,V.jsx)(Iv,{children:`先选择 Bot,再选择该 Bot 加入的群。`})]}),(0,V.jsxs)(Rh.Body,{className:`flex flex-col gap-4`,children:[(0,V.jsx)(gF,{description:`Karin 当前已注册且在线的 Bot。`,disabled:p,items:S,label:`机器人账号`,placeholder:`选择机器人账号`,selectedId:l,onSelect:e=>{y(``),c([]),g(!!e),u(e),f(``)}}),(0,V.jsx)(gF,{description:l?`当前 Bot 已加入的群。`:`请先选择机器人账号。`,disabled:!l||h,items:C,label:`推送群`,placeholder:`选择推送群`,selectedId:d,onSelect:f}),p||h?(0,V.jsxs)(`div`,{className:`flex items-center gap-2 text-sm text-muted`,children:[(0,V.jsx)(Xh,{size:`sm`,"aria-label":`正在读取列表`}),(0,V.jsx)(`span`,{children:`正在读取列表`})]}):null,b&&x?(0,V.jsxs)(`div`,{className:`flex flex-col gap-2 rounded-lg border border-default-200 bg-default-50/60 p-3`,children:[(0,V.jsx)(Pv,{children:`将写入`}),(0,V.jsxs)(Iv,{className:`mt-1`,children:[x.name,`(`,x.id,`) -> `,b.name,`(`,b.id,`)`]})]}):null,_?(0,V.jsx)(Iv,{className:`text-danger`,children:_}):null]}),(0,V.jsxs)(Rh.Footer,{children:[(0,V.jsx)(zm,{size:t===`mobile`?`sm`:`md`,slot:`close`,variant:`secondary`,children:`取消`}),(0,V.jsx)(zm,{size:t===`mobile`?`sm`:`md`,slot:`close`,isDisabled:!w,onPress:T,children:n?`保存`:`添加`})]})]})})})},vF=(e,t,n)=>{let r=mF(e);return{values:r,mappings:r.map(e=>{let r=pF(e),i=n[e]||t.find(t=>fF(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)}},yF=({isOpen:e,values:t,mappings:n,device:r,onOpenChange:i,onApply:a})=>{let[o,s]=(0,v.useState)(()=>mF(t)),[c,l]=(0,v.useState)({}),[u,d]=(0,v.useState)(null),[f,p]=(0,v.useState)(!1),m=(0,v.useMemo)(()=>vF(o,n,c),[o,c,n]),h=r===`desktop`?`right`:`bottom`,g=u?pF(u):null,_=e=>{d(e),p(!0)};return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Rh.Backdrop,{isOpen:e,onOpenChange:e=>{e||a(m.values),i(e)},variant:`blur`,children:(0,V.jsx)(Rh.Content,{placement:h,children:(0,V.jsxs)(Rh.Dialog,{className:r===`desktop`?`h-full w-130 max-w-[90vw]`:`max-h-[84dvh]`,children:[(0,V.jsx)(Rh.Handle,{}),(0,V.jsx)(Rh.CloseTrigger,{}),(0,V.jsxs)(Rh.Header,{children:[(0,V.jsx)(Rh.Heading,{children:`推送目标`}),(0,V.jsx)(Iv,{children:`管理所有接收推送的群和 Bot 映射。`})]}),(0,V.jsxs)(Rh.Body,{className:`flex min-h-0 flex-col gap-3`,children:[(0,V.jsxs)(zm,{className:`self-start`,size:r===`mobile`?`sm`:`md`,onPress:()=>_(null),children:[(0,V.jsx)(ck,{className:`size-4`}),`添加推送目标`]}),(0,V.jsx)(hF,{device:r,mappings:m.mappings,onEdit:e=>_(e),onRemove:e=>{s(t=>t.filter(t=>t!==e)),l(t=>{let n={...t};return delete n[e],n})}})]}),(0,V.jsxs)(Rh.Footer,{children:[(0,V.jsx)(zm,{size:r===`mobile`?`sm`:`md`,slot:`close`,variant:`secondary`,children:`取消`}),(0,V.jsx)(zm,{size:r===`mobile`?`sm`:`md`,slot:`close`,onPress:()=>{a(m.values)},children:`完成`})]})]})})}),(0,V.jsx)(_F,{device:r,initialMapping:g,isOpen:f,onConfirm:e=>{let t=fF(e),n=[...o],r=u?n.indexOf(u):-1;r>=0?n[r]=t:n.unshift(t),s(mF(n)),l(n=>{let r={...n,[t]:e};return u&&u!==t&&delete r[u],r}),p(!1),d(null)},onOpenChange:p},u||`new`)]})},bF=(e,t)=>{let n=pF(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},xF=({value:e,disabled:t,itemLabel:n,device:r,onChange:i})=>{let a=(0,v.useMemo)(()=>mF(e),[e]),o=(0,v.useMemo)(()=>e.filter(e=>!pF(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=pF(e);return bF(e,t?s.find(e=>e.groupId===t.groupId&&e.botId===t.botId):void 0)}).filter(e=>!!e),[s,a]);(0,v.useEffect)(()=>{uF(a.map(pF).filter(e=>!!e)).then(c).catch(()=>c([])).finally(()=>u(!1))},[a]);let m=e=>i(mF(e)),h=`开启【${n}】的推送开关后才能编辑此字段`,g=a.length>0?`已配置 ${a.length} 个推送目标`:`还没有配置推送目标`;return(0,V.jsx)(tF,{disabled:t,device:r,message:h,children:(0,V.jsxs)(`div`,{className:`space-y-3`,children:[(0,V.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,V.jsxs)(`div`,{className:`flex flex-col min-w-0`,children:[(0,V.jsx)(Pv,{children:`推送目标`}),(0,V.jsx)(Iv,{className:`mt-1`,children:g})]}),(0,V.jsxs)(zm,{isDisabled:t,size:r===`mobile`?`sm`:`md`,variant:r===`mobile`?`primary`:`secondary`,onPress:()=>f(!0),children:[(0,V.jsx)(sk,{className:`size-4`}),(0,V.jsx)(`span`,{children:`管理`})]})]}),l?(0,V.jsxs)(`div`,{className:`flex items-center gap-2 text-sm text-muted`,children:[(0,V.jsx)(Xh,{size:`sm`,"aria-label":`正在读取推送目标`}),(0,V.jsx)(`span`,{children:`正在读取推送目标`})]}):null,o.length>0?(0,V.jsxs)(`div`,{className:`rounded-lg border border-warning/30 bg-warning/10 p-3 text-sm`,children:[(0,V.jsxs)(`div`,{className:`flex items-center gap-2 font-medium text-warning`,children:[(0,V.jsx)(fk,{className:`size-4`}),(0,V.jsxs)(`span`,{children:[`发现 `,o.length,` 条旧格式或错误格式`]})]}),(0,V.jsx)(Iv,{className:`mt-1`,children:`建议删除后用可视化选择重新添加,避免后端解析异常。`})]}):null,(0,V.jsx)(yF,{device:r,isOpen:d,mappings:p,values:a,onApply:m,onOpenChange:f})]})})},SF=({disabled:e,itemLabel:t,device:n,value:r,onChange:i})=>(0,V.jsx)(xF,{disabled:e,device:n,itemLabel:t,value:r,onChange:i}),CF=({disabled:e,itemLabel:t,device:n,options:r,value:i,onChange:a})=>(0,V.jsx)(tF,{disabled:e,device:n,message:`开启【${t}】的推送开关后才能编辑此字段`,children:(0,V.jsxs)(oh,{"aria-label":`推送类型`,isDisabled:e,value:i,onChange:e=>a(e),children:[(0,V.jsx)(Pv,{children:`推送类型`}),(0,V.jsx)(Iv,{children:`选择要推送的内容类型`}),(0,V.jsx)(`div`,{className:`mt-2 ${nF(n)}`,children:r.map(e=>(0,V.jsxs)(fh,{value:e.value,variant:`secondary`,children:[(0,V.jsxs)(fh.Content,{children:[(0,V.jsx)(fh.Control,{children:(0,V.jsx)(fh.Indicator,{})}),e.label]}),(0,V.jsx)(Iv,{children:e.description})]},e.value))})]})}),wF=({disabled:e,itemLabel:t,device:n,value:r,onChange:i})=>(0,V.jsx)(tF,{disabled:e,device:n,message:`开启【${t}】的推送开关后才能编辑此字段`,children:(0,V.jsxs)($v,{fullWidth:!0,isDisabled:e,value:r,onChange:e=>{e&&!Array.isArray(e)&&i(e)},children:[(0,V.jsx)(Pv,{children:`过滤模式`}),(0,V.jsxs)($v.Trigger,{children:[(0,V.jsx)($v.Value,{}),(0,V.jsx)($v.Indicator,{})]}),(0,V.jsx)(Iv,{children:`设置关键词/标签的过滤方式`}),(0,V.jsx)($v.Popover,{children:(0,V.jsx)(qv,{children:aF.map(e=>(0,V.jsxs)(qv.Item,{id:e.value,textValue:e.label,children:[(0,V.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,V.jsx)(Pv,{children:e.label}),(0,V.jsx)(Iv,{children:e.description})]}),(0,V.jsx)(qv.ItemIndicator,{})]},e.value))})})]})}),TF=({disabled:e,itemLabel:t,device:n,keywords:r,tags:i,onKeywordsChange:a,onTagsChange:o})=>{let s=`开启【${t}】的推送开关后才能编辑此字段`;return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(tF,{disabled:e,device:n,message:s,children:(0,V.jsx)(`div`,{children:(0,V.jsx)(oF,{label:`关键词`,description:`多个关键词用于内容过滤`,disabled:e,items:r,onAdd:e=>a([...r,e]),onRemove:e=>a(r.filter(t=>t!==e))})})}),(0,V.jsx)(tF,{disabled:e,device:n,message:s,children:(0,V.jsx)(`div`,{children:(0,V.jsx)(oF,{label:`标签`,description:`多个标签用于内容过滤`,disabled:e,items:i,onAdd:e=>o([...i,e]),onRemove:e=>o(i.filter(t=>t!==e))})})})]})},EF=({onDelete:e})=>(0,V.jsxs)(zm,{className:`w-full`,variant:`danger`,onPress:e,children:[(0,V.jsx)(dk,{className:`size-4`}),(0,V.jsx)(`span`,{children:`删除此推送项`})]}),DF=({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,V.jsxs)(Ro.Item,{id:`bilibili-${t}`,children:[(0,V.jsx)(Ro.Heading,{children:(0,V.jsxs)(Ro.Trigger,{children:[(0,V.jsxs)(`div`,{className:`flex flex-1 items-center gap-3`,children:[(0,V.jsx)(`div`,{onClick:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation(),children:(0,V.jsx)(j_,{"aria-label":`推送开关`,isSelected:e.switch,onChange:e=>a({switch:e}),children:(0,V.jsx)(j_.Content,{children:(0,V.jsx)(j_.Control,{children:(0,V.jsx)(j_.Thumb,{})})})})}),(0,V.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,V.jsx)(`span`,{className:`font-medium`,children:e.remark||`UID: ${e.host_mid}`||`推送项 ${t+1}`}),(0,V.jsxs)(Iv,{className:`text-xs`,children:[`B站 UID: `,e.host_mid]})]})]}),(0,V.jsx)(Ro.Indicator,{children:(0,V.jsx)(ek,{className:`size-5`})})]})}),(0,V.jsx)(Ro.Panel,{children:(0,V.jsx)(Ro.Body,{children:(0,V.jsxs)(`div`,{className:`space-y-4`,children:[(0,V.jsxs)(`div`,{className:nF(i),children:[(0,V.jsx)(tF,{disabled:o,device:i,message:c,children:(0,V.jsxs)(Mv,{fullWidth:!0,isDisabled:o,isRequired:!0,type:`number`,value:String(e.host_mid),onChange:e=>a({host_mid:Number(e)||0}),children:[(0,V.jsx)(Pv,{children:`B站 UID`}),(0,V.jsx)(jv,{placeholder:`UP主的 UID`}),(0,V.jsx)(Iv,{children:`B站用户的唯一标识,必填`})]})}),(0,V.jsx)(tF,{disabled:o,device:i,message:c,children:(0,V.jsxs)(Mv,{fullWidth:!0,isDisabled:o,value:e.remark,onChange:e=>a({remark:e}),children:[(0,V.jsx)(Pv,{children:`备注名称`}),(0,V.jsx)(jv,{placeholder:`可选,用于识别该推送项`}),(0,V.jsx)(Iv,{children:`方便识别的名称,如:UP主昵称`})]})})]}),(0,V.jsx)(SF,{disabled:o,device:i,itemLabel:s,value:e.group_id,onChange:e=>a({group_id:e})}),(0,V.jsx)(CF,{disabled:o,device:i,itemLabel:s,options:iF,value:e.pushTypes||[],onChange:e=>a({pushTypes:e})}),(0,V.jsx)(wF,{disabled:o,device:i,itemLabel:s,value:e.filterMode||`blacklist`,onChange:e=>a({filterMode:e})}),(0,V.jsx)(TF,{disabled:o,device:i,itemLabel:s,keywords:e.Keywords||[],tags:e.Tags||[],onKeywordsChange:e=>a({Keywords:e}),onTagsChange:e=>a({Tags:e})}),(0,V.jsx)(EF,{onDelete:()=>r(n.filter((e,n)=>n!==t))})]})})})]},t)},OF=({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,V.jsxs)(Ro.Item,{id:`douyin-${t}`,children:[(0,V.jsx)(Ro.Heading,{children:(0,V.jsxs)(Ro.Trigger,{children:[(0,V.jsxs)(`div`,{className:`flex flex-1 items-center gap-3`,children:[(0,V.jsx)(`div`,{onClick:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation(),children:(0,V.jsx)(j_,{"aria-label":`推送开关`,isSelected:e.switch,onChange:e=>a({switch:e}),children:(0,V.jsx)(j_.Content,{children:(0,V.jsx)(j_.Control,{children:(0,V.jsx)(j_.Thumb,{})})})})}),(0,V.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,V.jsx)(`span`,{className:`font-medium`,children:e.remark||e.short_id||e.sec_uid||`推送项 ${t+1}`}),(0,V.jsxs)(Iv,{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,V.jsx)(Ro.Indicator,{children:(0,V.jsx)(ek,{className:`size-5`})})]})}),(0,V.jsx)(Ro.Panel,{children:(0,V.jsx)(Ro.Body,{children:(0,V.jsxs)(`div`,{className:`space-y-4`,children:[(0,V.jsxs)(`div`,{className:nF(i),children:[(0,V.jsx)(tF,{disabled:o,device:i,message:c,children:(0,V.jsxs)(Mv,{fullWidth:!0,isDisabled:o,isRequired:!0,value:e.short_id,onChange:e=>a({short_id:e}),children:[(0,V.jsx)(Pv,{children:`抖音号`}),(0,V.jsx)(jv,{placeholder:`用户的抖音号`,variant:`secondary`}),(0,V.jsx)(Iv,{children:`用户的抖音号(short_id),必填`})]})}),(0,V.jsx)(tF,{disabled:o,device:i,message:c,children:(0,V.jsxs)(Mv,{fullWidth:!0,isDisabled:o,value:e.sec_uid,onChange:e=>a({sec_uid:e}),children:[(0,V.jsx)(Pv,{children:`sec_uid`}),(0,V.jsx)(jv,{placeholder:`选填,会根据抖音号自动获取`,variant:`secondary`}),(0,V.jsx)(Iv,{children:`用户的 sec_uid,可从分享链接获取。选填,推送时会自动获取`})]})})]}),(0,V.jsx)(tF,{disabled:o,device:i,message:c,children:(0,V.jsxs)(Mv,{fullWidth:!0,isDisabled:o,value:e.remark,onChange:e=>a({remark:e}),children:[(0,V.jsx)(Pv,{children:`备注名称`}),(0,V.jsx)(jv,{placeholder:`可选,用于识别该推送项`,variant:`secondary`}),(0,V.jsx)(Iv,{children:`方便识别的名称,如:博主昵称`})]})}),(0,V.jsx)(SF,{disabled:o,device:i,itemLabel:s,value:e.group_id,onChange:e=>a({group_id:e})}),(0,V.jsx)(CF,{disabled:o,device:i,itemLabel:s,options:rF,value:e.pushTypes||[],onChange:e=>a({pushTypes:e})}),(0,V.jsx)(wF,{disabled:o,device:i,itemLabel:s,value:e.filterMode||`blacklist`,onChange:e=>a({filterMode:e})}),(0,V.jsx)(TF,{disabled:o,device:i,itemLabel:s,keywords:e.Keywords||[],tags:e.Tags||[],onKeywordsChange:e=>a({Keywords:e}),onTagsChange:e=>a({Tags:e})}),(0,V.jsx)(EF,{onDelete:()=>r(n.filter((e,n)=>n!==t))})]})})})]},t)},kF=()=>({switch:!0,sec_uid:``,short_id:``,group_id:[],remark:``,pushTypes:[`post`],filterMode:`blacklist`,Keywords:[],Tags:[]}),AF=()=>({switch:!0,host_mid:0,group_id:[],remark:``,pushTypes:[`video`],filterMode:`blacklist`,Keywords:[],Tags:[]}),jF=({platform:e})=>(0,V.jsx)(`div`,{className:`rounded-lg border-2 border-dashed border-gray-300 p-8 text-center`,children:(0,V.jsxs)(`p`,{className:`text-muted`,children:[`暂无`,e===`douyin`?`抖音`:`B站`,`推送项,点击上方按钮添加`]})});function MF({douyinList:e,bilibiliList:t,onDouyinChange:n,onBilibiliChange:r,device:i}){let[a,o]=(0,v.useState)(`douyin`);return(0,V.jsx)(`div`,{className:`space-y-4`,children:(0,V.jsxs)($_,{selectedKey:a,onSelectionChange:e=>o(e),children:[(0,V.jsx)($_.ListContainer,{children:(0,V.jsxs)($_.List,{children:[(0,V.jsxs)($_.Tab,{id:`douyin`,children:[(0,V.jsx)(`span`,{children:`抖音推送`}),(0,V.jsx)($_.Indicator,{})]}),(0,V.jsxs)($_.Tab,{id:`bilibili`,children:[(0,V.jsx)(`span`,{children:`B站推送`}),(0,V.jsx)($_.Indicator,{})]})]})}),(0,V.jsx)($_.Panel,{id:`douyin`,children:(0,V.jsxs)(`div`,{className:`space-y-4 pt-4`,children:[(0,V.jsxs)(zm,{className:`w-full`,variant:`primary`,size:`sm`,onPress:()=>n([...e,kF()]),children:[(0,V.jsx)(ck,{className:`size-4`}),(0,V.jsx)(`span`,{children:`添加抖音推送项`})]}),e.length>0?(0,V.jsx)(Ro,{variant:`surface`,"aria-label":`抖音推送列表`,children:e.map((t,r)=>(0,V.jsx)(OF,{device:i,index:r,item:t,list:e,onChange:n},r))}):(0,V.jsx)(jF,{platform:`douyin`})]})}),(0,V.jsx)($_.Panel,{id:`bilibili`,children:(0,V.jsxs)(`div`,{className:`space-y-4 pt-4`,children:[(0,V.jsxs)(zm,{className:`w-full`,variant:`primary`,onPress:()=>r([...t,AF()]),children:[(0,V.jsx)(ck,{className:`size-4`}),(0,V.jsx)(`span`,{children:`添加B站推送项`})]}),t.length>0?(0,V.jsx)(Ro,{variant:`surface`,"aria-label":`B站推送列表`,children:t.map((e,n)=>(0,V.jsx)(DF,{device:i,index:n,item:e,list:t,onChange:r},n))}):(0,V.jsx)(jF,{platform:`bilibili`})]})})]})})}var NF=({config:e,device:t,renderers:n,updateConfigValue:r})=>{let{renderPageHeader:i}=n;return(0,V.jsxs)(V.Fragment,{children:[i(`推送列表`,`管理「抖音」与「哔哩哔哩」的推送订阅。`),(0,V.jsx)(MF,{douyinList:e.pushlist?.douyin||[],bilibiliList:e.pushlist?.bilibili||[],onDouyinChange:e=>{r([`pushlist`,`douyin`],e)},onBilibiliChange:e=>{r([`pushlist`,`bilibili`],e)},device:t})]})},PF=({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,V.jsxs)(V.Fragment,{children:[i(`小红书`,`小红书解析基础设置。`),(0,V.jsxs)(`div`,{className:n.topLevelFields,"data-config-section":!0,children:[s([`xiaohongshu`,`switch`],`解析开关`,`小红书解析开关,此开关为单独开关。`),r([`xiaohongshu`,`sendContent`],`解析时发送的内容`,`若什么都不选,可能不会返回任何解析结果。`,NP,!l),c([`xiaohongshu`,`numcomment`],`评论解析数量`,`小红书评论解析数量。`,{type:`number`,fallback:5,min:1,disabled:!l||!yP(u,`comment`)})]}),o(`渲染与画质设置`,(0,V.jsxs)(V.Fragment,{children:[a([`xiaohongshu`,`videoQuality`],`画质偏好`,`解析视频的分辨率偏好。`,FP,e=>e,!l),c([`xiaohongshu`,`maxAutoVideoSize`],`视频体积上限(MB)`,`根据该值自动选择分辨率进行下载。仅在「画质偏好」 为 "自动选择" 时生效。`,{type:`number`,fallback:50,min:1,max:2e4,disabled:!l||d!==`adapt`})]}))]})},FF=e=>{switch(e.activeFile){case`amagi`:return(0,V.jsx)(XP,{...e});case`app`:return(0,V.jsx)(ZP,{...e});case`douyin`:return(0,V.jsx)($P,{...e});case`bilibili`:return(0,V.jsx)(QP,{...e});case`kuaishou`:return(0,V.jsx)(eF,{...e});case`xiaohongshu`:return(0,V.jsx)(PF,{...e});case`pushlist`:return(0,V.jsx)(NF,{...e})}},IF=(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} 必须是数字`},LF=(e,t,n)=>{if(n.disabled)return;let r=IF(Q(t,n.path,0),n);r&&(e[hP(n.path)]=r)},RF=e=>typeof e==`string`&&/.+:.+/.test(e),zF=(e,t,n)=>{if(!Array.isArray(n)){e[`pushlist.${t}`]=`${t} 推送列表必须是数组`;return}let r=n.findIndex(e=>{if(!gP(e))return!0;let n=e.group_id,r=t===`douyin`?e.short_id:e.host_mid;return r==null||String(r).trim()===``?!0:!Array.isArray(n)||n.length===0||n.some(e=>!RF(e))});r>=0&&(e[`pushlist.${t}`]=`${t} 推送列表第 ${r+1} 项缺少必填 UID/抖音号,或 group_id 未使用「群号:机器人账号」格式`)},BF=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`,`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||!yP(f,`comment`)},{path:[`douyin`,`subCommentLimit`],label:`次级评论解析数量`,min:1,max:20,disabled:!d||!yP(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:!_||!yP(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||!yP(D,`comment`)},{path:[`xiaohongshu`,`maxAutoVideoSize`],label:`视频体积上限(MB)`,min:1,max:2e4,disabled:!E||O!==`adapt`}].forEach(n=>LF(t,e,n)),n===`video_only`&&delete t[`app.livePhotoSystem`],zF(t,`douyin`,e.pushlist?.douyin||[]),zF(t,`bilibili`,e.pushlist?.bilibili||[]),t},VF=({device:e=`desktop`})=>{let t=(0,v.useRef)(null),[n,r]=mC(),i=ey(),a=n.get(`file`),[o,s]=db({config:null,savedConfig:null,activeFile:a&&UP.some(e=>e.key===a)?a:`amagi`}),{activeFile:c,config:l,savedConfig:u}=o,d=(0,v.useMemo)(()=>YP(e),[e]),f=e===`mobile`?`sm`:`md`,{loading:p,run:m}=cb(oN,{onSuccess:e=>{s({config:structuredClone(e),savedConfig:structuredClone(e)})},onError:e=>{i_.danger(`加载配置失败`,{description:e.message})}}),{loading:h,runAsync:g}=cb(sN,{manual:!0}),_=(0,v.useMemo)(()=>!l||!u?!1:!(0,PC.default)(xP(l),xP(u)),[l,u]),y=(0,v.useMemo)(()=>BF(l),[l]),b=(0,v.useMemo)(()=>Object.values(y).some(Boolean),[y]),x=(0,v.useMemo)(()=>_&&!b&&!p,[_,b,p]),S=ly((e,t)=>{s(n=>n.config?{config:_P(n.config,e,t)}:null)}),C=ly(()=>{if(!l||b)return;let e=l,t=g(e).then(()=>{s({savedConfig:e})});i_.promise(t,{loading:`正在保存配置...`,success:`配置已保存`,error:e=>e instanceof Error?e.message:`保存配置失败`})}),w=ly(()=>{m()}),T=ly(e=>{r({file:e})}),E=ly(e=>{e.preventDefault(),C()});(0,v.useEffect)(()=>{let e=n.get(`file`);e&&UP.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=ly(()=>{t.current&&HO.fromTo(t.current.querySelectorAll(`[data-config-section]`),fN,{...pN,duration:lN(.35),stagger:uN(.03)})});(0,v.useEffect)(()=>{!l||t.current?.dataset.animated===`true`||(t.current&&(t.current.dataset.animated=`true`),D())},[l,D]),uy(()=>{D()},[c]);let O=(0,v.useMemo)(()=>l?KP({config:l,device:e,classes:d,validationErrors:y,updateConfigValue:S}):{},[l,e,d,y,S]);if(p||!l)return(0,V.jsxs)(`div`,{className:`${d.root} ${d.loading}`,children:[(0,V.jsx)(Xh,{size:`sm`,"aria-label":`正在读取配置`}),(0,V.jsx)(`span`,{children:`正在读取配置`})]});let k=(0,V.jsx)(`div`,{className:d.floatingActions,children:(0,V.jsxs)(`div`,{className:d.actionControls,children:[(0,V.jsxs)(wv,{delay:0,children:[(0,V.jsx)(wv.Trigger,{"aria-label":`重新读取配置`,children:(0,V.jsx)(zm,{isIconOnly:!0,size:f,variant:`secondary`,isDisabled:p||h,onPress:w,children:(0,V.jsx)(lk,{size:16,"aria-hidden":`true`})})}),(0,V.jsxs)(wv.Content,{showArrow:!0,placement:`bottom`,children:[(0,V.jsx)(wv.Arrow,{}),`重新读取`]})]}),(0,V.jsxs)(wv,{delay:0,children:[(0,V.jsx)(wv.Trigger,{"aria-label":`查看配置变更`,children:(0,V.jsx)(zm,{isIconOnly:!0,size:f,variant:`secondary`,isDisabled:!_,onPress:i.open,children:(0,V.jsx)(rk,{size:16,"aria-hidden":`true`})})}),(0,V.jsxs)(wv.Content,{showArrow:!0,placement:`bottom`,children:[(0,V.jsx)(wv.Arrow,{}),`查看变更`]})]}),(0,V.jsxs)(zm,{size:f,isDisabled:!x,isPending:h,onPress:C,variant:`primary`,children:[(0,V.jsx)(uk,{size:16,"aria-hidden":`true`}),(0,V.jsx)(`span`,{children:`保存`})]})]})});return(0,V.jsxs)(`div`,{ref:t,className:d.root,children:[(0,V.jsx)(DP,{device:e,original:u,current:l,isOpen:i.isOpen,onOpenChange:i.setOpen}),(0,V.jsxs)(Bv,{className:d.form,onSubmit:E,children:[(0,V.jsx)($_,{className:`w-full min-w-0 max-w-full`,selectedKey:c,onSelectionChange:T,children:(0,V.jsx)($_.ListContainer,{className:d.tabsListContainer,"data-config-tabs-scroll":`true`,"data-scrollbar":`none`,children:(0,V.jsx)($_.List,{"aria-label":`配置文件选择`,className:d.tabsList,children:UP.map((e,t)=>(0,V.jsxs)($_.Tab,{id:e.key,children:[t>0?(0,V.jsx)($_.Separator,{}):null,(0,V.jsx)(`span`,{className:`whitespace-nowrap`,children:e.label}),(0,V.jsx)($_.Indicator,{})]},e.key))})})}),(0,V.jsxs)(`div`,{className:`relative min-w-0 max-w-full`,children:[k,(0,V.jsx)(FF,{activeFile:c,classes:d,config:l,device:e,renderers:O,updateConfigValue:S},c)]})]})]})},HF=({onLogin:e})=>{let[t,n]=db({authKey:``,loading:!1,error:``}),[r,{toggle:i}]=ub(!1),a=r?`隐藏密钥`:`显示密钥`,o=ly(async r=>{r.preventDefault();let i=t.authKey.trim();if(!i){n({error:`请输入 Karin HTTP 鉴权密钥`});return}try{n({loading:!0,error:``}),await rN(i),e()}catch(e){n({error:e instanceof Error?e.message:`登录失败`})}finally{n({loading:!1})}});return(0,V.jsx)(Zh,{className:`flex min-h-screen items-center justify-center px-4 py-8`,children:(0,V.jsxs)(Hm,{className:`w-full max-w-105`,children:[(0,V.jsxs)(Hm.Header,{className:`gap-4 p-6`,children:[(0,V.jsx)(ak,{className:`size-8 shrink-0`,"aria-hidden":`true`}),(0,V.jsxs)(`div`,{className:`min-w-0`,children:[(0,V.jsx)(Hm.Title,{children:`Karin 鉴权`}),(0,V.jsx)(Hm.Description,{children:`使用 Karin HTTP 鉴权密钥登录后管理 KKK 配置。`})]})]}),(0,V.jsx)(Hm.Content,{className:`p-6`,children:(0,V.jsxs)(Bv,{className:`flex flex-col gap-6`,onSubmit:o,children:[(0,V.jsxs)(Mv,{fullWidth:!0,isInvalid:!!t.error,value:t.authKey,onChange:e=>{n({authKey:e,error:t.error?``:t.error})},children:[(0,V.jsx)(Pv,{children:`HTTP 鉴权密钥`}),(0,V.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,V.jsx)(jv,{autoComplete:`current-password`,className:`min-w-0 flex-1`,placeholder:`请输入 Karin 的 HTTP_AUTH_KEY`,type:r?`text`:`password`}),(0,V.jsx)(zm,{isIconOnly:!0,"aria-label":a,type:`button`,variant:`tertiary`,onPress:i,children:r?(0,V.jsx)(tk,{className:`size-4`,"aria-hidden":`true`}):(0,V.jsx)(nk,{className:`size-4`,"aria-hidden":`true`})})]}),(0,V.jsx)(Iv,{children:t.error||`生产环境会复用 Karin 主 Web 已保存的登录凭据。`})]}),(0,V.jsx)(zm,{fullWidth:!0,isPending:t.loading,type:`submit`,children:({isPending:e})=>(0,V.jsxs)(V.Fragment,{children:[e?(0,V.jsx)(Xh,{color:`current`,size:`sm`,"aria-label":`登录中`}):(0,V.jsx)(ok,{className:`size-4`,"aria-hidden":`true`}),(0,V.jsx)(`span`,{children:`登录`})]})})]})})]})})},UF=`theme`,WF=`kkk-theme-changed`,GF=`karin-theme-change`,KF={light:`light`,dark:`dark`,system:`system`,inverse:`inverse`},qF=e=>e===KF.system||e===KF.inverse,JF=e=>e===KF.light||e===KF.dark,YF=e=>!e||typeof e!=`object`?!1:e.type===GF,XF=()=>{let e=localStorage.getItem(UF);if(qF(e))return e;try{let t=JSON.parse(e??``);if(qF(t))return t}catch{}return localStorage.setItem(UF,KF.system),KF.system},ZF=()=>window.matchMedia(`(prefers-color-scheme: dark)`).matches?KF.dark:KF.light,QF=()=>window.matchMedia(`(prefers-color-scheme: dark)`).matches?KF.light:KF.dark,$F=e=>e===KF.system?ZF():QF(),eI=e=>tI($F(e)),tI=e=>(document.documentElement.classList.remove(KF.light,KF.dark),document.documentElement.classList.add(e),document.documentElement.dataset.theme=e,e),nI=()=>{let[e,t]=(0,v.useState)(()=>XF()),[n,r]=(0,v.useState)(()=>$F(e)),i=(0,v.useRef)(!1),a=(0,v.useCallback)(e=>{localStorage.setItem(UF,e),t(e),r(eI(e)),window.dispatchEvent(new CustomEvent(WF,{detail:e}))},[]),o=(0,v.useCallback)(()=>{a(KF.system)},[a]),s=(0,v.useCallback)(()=>{a(KF.inverse)},[a]),c=(0,v.useCallback)(()=>{a(e===KF.system?KF.inverse:KF.system)},[a,e]);return(0,v.useEffect)(()=>{i.current?i.current=!1:r(eI(e));let n=window.matchMedia(`(prefers-color-scheme: dark)`),a=()=>{r(eI(e))},o=e=>{if(e.key!==UF||window.self!==window.top)return;let n=XF();t(n),r(eI(n))},s=e=>{let n=e.detail;qF(n)&&(t(n),r(eI(n)))},c=e=>{if(!YF(e.data))return;let n=e.data.theme,a=qF(n??null)?n:XF(),o=JF(e.data.appliedTheme)?e.data.appliedTheme:$F(a);i.current=!0,localStorage.setItem(UF,a),t(a),r(tI(o))};return n.addEventListener(`change`,a),window.addEventListener(`storage`,o),window.addEventListener(WF,s),window.addEventListener(`message`,c),()=>{n.removeEventListener(`change`,a),window.removeEventListener(`storage`,o),window.removeEventListener(WF,s),window.removeEventListener(`message`,c)}},[e]),{theme:e,appliedTheme:n,isDark:(0,v.useMemo)(()=>n===KF.dark,[n]),isLight:(0,v.useMemo)(()=>n===KF.light,[n]),isSystem:e===KF.system,isInverse:e===KF.inverse,setSystemTheme:o,setInverseTheme:s,toggleTheme:c}},rI=()=>document.documentElement.clientWidth||window.innerWidth,iI=(e=rI())=>e<=768?`mobile`:`desktop`,aI=()=>{let e=navigator.userAgent.toLowerCase();return[`android`,`webos`,`iphone`,`ipad`,`ipod`,`blackberry`,`windows phone`,`mobile`].some(t=>e.includes(t))},oI=()=>{let e=iI();return aI()||e===`mobile`?`mobile`:`desktop`},sI=()=>hb(()=>import(`./DesktopLayout-DMqLKe0d.js`),__vite__mapDeps([2,1,3])),cI=()=>hb(()=>import(`./MobileLayout-Dq6Ng8rW.js`),__vite__mapDeps([4,3])),lI={config:`/kkk/assets/config`,about:`/kkk/assets/about`},uI={"/kkk/assets/config":`config`,"/kkk/assets/about":`about`},dI=({device:e})=>(0,V.jsxs)(Zh,{className:`h-screen overflow-hidden bg-background`,children:[(0,V.jsx)(v_.Provider,{placement:`top`}),(0,V.jsx)(Gh,{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,V.jsx)(VF,{device:e})})]}),fI=({LayoutComponent:e})=>{let t=Rx(),n=Vx(),r=uI[t.pathname]||`config`,i=ly(e=>{n(lI[e])});return e?(0,V.jsxs)(`div`,{children:[(0,V.jsx)(v_.Provider,{placement:`top`}),(0,V.jsx)(e,{activeMenu:r,onMenuChange:i})]}):(0,V.jsxs)(Zh,{className:`flex min-h-screen items-center justify-center gap-4`,children:[(0,V.jsx)(Xh,{size:`sm`,"aria-label":`正在加载布局`}),(0,V.jsx)(Iv,{children:`正在加载`})]})},pI=()=>{nI();let[e,t]=db({authenticated:AC(),device:oI(),LayoutComponent:null}),{authenticated:n,device:r,LayoutComponent:i}=e;(0,v.useEffect)(()=>{let e=()=>{t({authenticated:AC()})};return window.addEventListener(EC,e),window.addEventListener(`storage`,e),()=>{window.removeEventListener(EC,e),window.removeEventListener(`storage`,e)}},[t]);let a=ly(()=>{let e=oI();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 cI();e||t({LayoutComponent:n.default})}else{let n=await sI();e||t({LayoutComponent:n.default})}})(),()=>{e=!0}},[n,r,t]);let o=ly(()=>{t({authenticated:!0})});return n?(0,V.jsxs)(hS,{children:[(0,V.jsx)(pS,{path:`/kkk/assets/karin-config`,element:(0,V.jsx)(dI,{device:r})}),(0,V.jsx)(pS,{path:`/kkk/assets/config`,element:(0,V.jsx)(fI,{LayoutComponent:i})}),(0,V.jsx)(pS,{path:`/kkk/assets/about`,element:(0,V.jsx)(fI,{LayoutComponent:i})}),(0,V.jsx)(pS,{path:`/kkk/assets`,element:(0,V.jsx)(fS,{to:`/kkk/assets/config`,replace:!0})}),(0,V.jsx)(pS,{path:`/kkk`,element:(0,V.jsx)(fS,{to:`/kkk/assets/config`,replace:!0})}),(0,V.jsx)(pS,{path:`/kkk/login`,element:(0,V.jsx)(fS,{to:`/kkk/assets/config`,replace:!0})}),(0,V.jsx)(pS,{path:`*`,element:(0,V.jsx)(fS,{to:`/kkk/assets/config`,replace:!0})})]}):(0,V.jsxs)(hS,{children:[(0,V.jsx)(pS,{path:`/kkk/login`,element:(0,V.jsx)(HF,{onLogin:o})}),(0,V.jsx)(pS,{path:`*`,element:(0,V.jsx)(fS,{to:`/kkk/login`,replace:!0})})]})};(0,y.createRoot)(document.getElementById(`root`)).render((0,V.jsx)(v.StrictMode,{children:(0,V.jsx)(()=>(0,V.jsx)(iC,{children:(0,V.jsx)(pI,{})}),{})}));export{Wa as $,gf as A,De as At,al as B,Hm as C,et as Ct,Mp as D,Fe as Dt,Fp as E,ze as Et,vu as F,O as Ft,Y as G,Ws as H,_u as I,h as It,oo as J,J as K,mu as L,d as Lt,sf as M,L as Mt,of as N,E as Nt,Cf as O,R as Ot,yu as P,M as Pt,$a as Q,fu as R,l as Rt,Km as S,nt as St,Pm as T,z as Tt,Mo as U,nl as V,No as W,q as X,so as Y,eo as Z,Vh as _,Kt as _t,NC as a,Mi as at,_h as b,xt as bt,$v as c,G as ct,Pv as d,Ti as dt,Ma as et,Mv as f,Si as ft,Zh as g,Xt as gt,$_ as h,$t as ht,HO as i,Gi as it,cf as j,we as jt,hf as k,ke as kt,qv as l,wi as lt,wv as m,Gr as mt,VF as n,Yi as nt,ub as o,bi as ot,jv as p,Ur as pt,po as q,QO as r,Xi as rt,ly as s,Ci as st,nI as t,Ea as tt,Iv as u,K as ut,Rh as v,Jt as vt,zm as w,B as wt,yh as x,it as xt,bh as y,Et as yt,uu as z};