karin-plugin-kkk 2.43.1 → 2.43.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/lib/build-metadata.json +5 -5
- package/lib/core_chunk/main.js +245 -56294
- package/lib/core_chunk/vendor.js +67670 -5096
- package/lib/web/assets/{CronEditor-DfBF9V9u.js → CronEditor-D6WcUMWp.js} +1 -1
- package/lib/web/assets/{DesktopLayout-gkSnAOjp.js → DesktopLayout-HHnL4XE7.js} +1 -1
- package/lib/web/assets/{MobileLayout-dflm5r4p.js → MobileLayout-Cy82W7Kf.js} +1 -1
- package/lib/web/assets/{ThemeSwitch-BPgXeCDr.js → ThemeSwitch-C993ByXH.js} +1 -1
- package/lib/web/assets/index-fXOBBsG5.css +2 -0
- package/lib/web/assets/{index-C0UVgRX2.js → index-hh3q5viH.js} +3 -3
- package/lib/web/assets/{separator-Bhb-fyOv.js → separator-HWG-0k_j.js} +1 -1
- package/lib/web/index.html +2 -2
- package/package.json +2 -2
- package/lib/web/assets/index-BGPYIuhv.css +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CronEditor-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CronEditor-D6WcUMWp.js","assets/separator-HWG-0k_j.js","assets/DesktopLayout-HHnL4XE7.js","assets/ThemeSwitch-C993ByXH.js","assets/MobileLayout-Cy82W7Kf.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.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var j=/\/+/g;function M(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function N(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function P(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,P(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+M(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(j,`$&/`)+`/`),P(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(j,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+M(a,u),c+=P(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+M(a,u++),c+=P(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return P(N(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function F(e,t,n){if(e==null)return e;var r=[],i=0;return P(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function I(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var ee=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function te(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,ee)}catch(e){ee(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function ne(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else te(ne.bind(null,e))}var re={map:F,forEach:function(e,t,n){F(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return F(e,function(){t++}),t},toArray:function(e){return F(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=re,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=ne,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=te,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.0`})),d=o(((e,t)=>{t.exports=u()})),f=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),p=o(((e,t)=>{t.exports=f()})),m=o((e=>{var t=d();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`),o=Symbol.for(`react.recoverable`),s=Symbol.for(`react.optimistic_key`);function c(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:r===s?s:``+r,children:e,containerInfo:t,implementation:n}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.browser=function(e){return{$$typeof:o,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return c(e,t,null,r)},e.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=u(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=u(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},e.useFormStatus=function(){return l.H.useHostTransitionStatus()},e.version=`19.3.0`})),h=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=m()})),g=o((e=>{var t=p(),n=d(),r=h();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}function m(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&m(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function g(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function _(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function v(e){var t=[null,null],n=g(e);return n===null||y(t,e,n.child,{foundSelf:!1}),t}function y(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&y(e,t,n.child,r))return!0;n=n.sibling}return!1}function b(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var x=null,S=null;function C(e,t,n){return e===n?!0:e===t?(x=e,!0):!1}function w(e,t,n){return e===n?(S=e,!1):e===t?(S!==null&&(x=e),!0):!1}function T(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function E(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var D=Object.assign,O=Symbol.for(`react.element`),k=Symbol.for(`react.transitional.element`),A=Symbol.for(`react.portal`),j=Symbol.for(`react.fragment`),M=Symbol.for(`react.strict_mode`),N=Symbol.for(`react.profiler`),P=Symbol.for(`react.consumer`),F=Symbol.for(`react.context`),I=Symbol.for(`react.forward_ref`),ee=Symbol.for(`react.suspense`),te=Symbol.for(`react.suspense_list`),ne=Symbol.for(`react.memo`),re=Symbol.for(`react.lazy`),ie=Symbol.for(`react.activity`),ae=Symbol.for(`react.legacy_hidden`),oe=Symbol.for(`react.memo_cache_sentinel`),se=Symbol.for(`react.view_transition`),L=Symbol.for(`react.recoverable`),ce=Symbol.iterator;function le(e){return typeof e!=`object`||!e?null:(e=ce&&e[ce]||e[`@@iterator`],typeof e==`function`?e:null)}var ue=Symbol.for(`react.client.reference`);function de(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ue?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case j:return`Fragment`;case N:return`Profiler`;case M:return`StrictMode`;case ee:return`Suspense`;case te:return`SuspenseList`;case ie:return`Activity`;case se:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case A:return`Portal`;case F:return e.displayName||`Context`;case P:return(e._context.displayName||`Context`)+`.Consumer`;case I:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ne:return t=e.displayName||null,t===null?de(e.type)||`Memo`:t;case re:t=e._payload,e=e._init;try{return de(e(t))}catch{}}return null}var fe=Array.isArray,R=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pe=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,me={pending:!1,data:null,method:null,action:null},he=[],ge=-1;function _e(e){return{current:e}}function ve(e){0>ge||(e.current=he[ge],he[ge]=null,ge--)}function ye(e,t){ge++,he[ge]=e.current,e.current=t}var be=_e(null),xe=_e(null),Se=_e(null),Ce=_e(null);function we(e,t){switch(ye(Se,t),ye(xe,e),ye(be,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?mp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=mp(t),e=hp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ve(be),ye(be,e)}function Te(){ve(be),ve(xe),ve(Se)}function Ee(e){var t=e.memoizedState;t!==null&&(dh._currentValue=t.memoizedState,ye(Ce,e)),t=be.current;var n=hp(t,e.type);t!==n&&(ye(xe,e),ye(be,n))}function De(e){xe.current===e&&(ve(be),ve(xe)),Ce.current===e&&(ve(Ce),dh._currentValue=me)}var Oe,ke;function Ae(e){if(Oe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Oe=t&&t[1]||``,ke=-1<e.stack.indexOf(`
|
|
3
3
|
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
4
|
`+Oe+e+ke}var je=!1;function Me(e,t){if(!e||je)return``;je=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
@@ -19,7 +19,7 @@ Error generating stack: `+e.message+`
|
|
|
19
19
|
}
|
|
20
20
|
}`,document.head.prepend(i);let o=e=>{if(!(e.touches.length===2||n)){if(!t||t===document.documentElement||t===document.body){e.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&e.preventDefault()}},s=e=>{let t=z(e),n=e.relatedTarget;n&&yt(n)?(n.focus({preventScroll:!0}),iu(n,yt(t))):n||(t.parentElement?.closest(`[tabindex]`))?.focus({preventScroll:!0})},c=HTMLElement.prototype.focus;Reflect.defineProperty(HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(e){let t=ze(),n=t!=null&&yt(t);c.call(this,{...e,preventScroll:!0}),(!e||!e.preventScroll)&&iu(this,n)}});let l=De(Pe(document,`touchstart`,r,{passive:!1,capture:!0}),Pe(document,`touchmove`,o,{passive:!1,capture:!0}),Pe(document,`blur`,s,!0));return()=>{e(),l(),i.remove(),Reflect.defineProperty(HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:c})}}function iu(e,t){t||!Ql?au(e):Ql.addEventListener(`resize`,()=>au(e),{once:!0})}function au(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let e=ht(n);if(e!==document.documentElement&&e!==document.body&&e!==n){let t=e.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.top<t.top||r.bottom>t.top+n.clientHeight){let n=t.bottom;Ql&&(n=Math.min(n,Ql.offsetTop+Ql.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 ou(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}=Zl({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}=vl({...c,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:a&&!l?t.close:null,getTargetRect:c.getTargetRect??(t.point?()=>new DOMRect(t.point.x,t.point.y,0,0):void 0)});tu({isDisabled:a||!t.isOpen}),(0,v.useEffect)(()=>{if(t.isOpen&&r.current)return a?Kc(i?.current??r.current):Gc([i?.current??r.current],{shouldUseInert:!0})},[a,t.isOpen,r,i]);let{focusWithinProps:g}=Xs(e);return{popoverProps:B(u,f,g),arrowProps:p,underlayProps:d,placement:m,triggerAnchorPoint:h}}var su={};su={dismiss:`تجاهل`};var cu={};cu={dismiss:`Отхвърляне`};var lu={};lu={dismiss:`Odstranit`};var uu={};uu={dismiss:`Luk`};var du={};du={dismiss:`Schließen`};var fu={};fu={dismiss:`Απόρριψη`};var pu={};pu={dismiss:`Dismiss`};var mu={};mu={dismiss:`Descartar`};var hu={};hu={dismiss:`Lõpeta`};var gu={};gu={dismiss:`Hylkää`};var _u={};_u={dismiss:`Rejeter`};var vu={};vu={dismiss:`התעלם`};var yu={};yu={dismiss:`Odbaci`};var bu={};bu={dismiss:`Elutasítás`};var xu={};xu={dismiss:`Ignora`};var Su={};Su={dismiss:`閉じる`};var Cu={};Cu={dismiss:`무시`};var wu={};wu={dismiss:`Atmesti`};var Tu={};Tu={dismiss:`Nerādīt`};var Eu={};Eu={dismiss:`Lukk`};var Du={};Du={dismiss:`Negeren`};var Ou={};Ou={dismiss:`Zignoruj`};var ku={};ku={dismiss:`Descartar`};var Au={};Au={dismiss:`Dispensar`};var ju={};ju={dismiss:`Revocare`};var Mu={};Mu={dismiss:`Пропустить`};var Nu={};Nu={dismiss:`Zrušiť`};var Pu={};Pu={dismiss:`Opusti`};var Fu={};Fu={dismiss:`Odbaci`};var Iu={};Iu={dismiss:`Avvisa`};var Lu={};Lu={dismiss:`Kapat`};var Ru={};Ru={dismiss:`Скасувати`};var zu={};zu={dismiss:`取消`};var Bu={};Bu={dismiss:`關閉`};var Vu={};Vu={"ar-AE":su,"bg-BG":cu,"cs-CZ":lu,"da-DK":uu,"de-DE":du,"el-GR":fu,"en-US":pu,"es-ES":mu,"et-EE":hu,"fi-FI":gu,"fr-FR":_u,"he-IL":vu,"hr-HR":yu,"hu-HU":bu,"it-IT":xu,"ja-JP":Su,"ko-KR":Cu,"lt-LT":wu,"lv-LV":Tu,"nb-NO":Eu,"nl-NL":Du,"pl-PL":Ou,"pt-BR":ku,"pt-PT":Au,"ro-RO":ju,"ru-RU":Mu,"sk-SK":Nu,"sl-SI":Pu,"sr-SP":Fu,"sv-SE":Iu,"tr-TR":Lu,"uk-UA":Ru,"zh-CN":zu,"zh-TW":Bu};var Hu=Symbol.for(`react-aria.i18n.locale`),Uu=Symbol.for(`react-aria.i18n.strings`),Wu=void 0,Gu=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=Ku(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(t){if(typeof window>`u`)return null;let n=window[Hu];if(Wu===void 0){let t=window[Uu];if(!t)return null;Wu={};for(let r in t)Wu[r]=new e({[n]:t[r]},n)}let r=Wu?.[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 Ku(e,t,n=`en-US`){if(t[e])return t[e];let r=qu(e),i=Ju(e);if(i&&t[`${r}-${i}`])return t[`${r}-${i}`];if(t[r])return t[r];for(let e in t)if(e.startsWith(r+`-`))return t[e];return t[n]}function qu(e){return Intl.Locale?new Intl.Locale(e).language:e.split(`-`)[0]}function Ju(e){if(Intl.Locale)return new Intl.Locale(e).script}var Yu=new Map,Xu=new Map,Zu=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=Yu.get(i);return a||(a=new Intl.PluralRules(this.locale,{type:n}),Yu.set(i,a)),r=t[a.select(e)]||t.other,typeof r==`function`?r():r}number(e){let t=Xu.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),Xu.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return typeof n==`function`?n():n}},Qu=new WeakMap;function $u(e){let t=Qu.get(e);return t||(t=new Gu(e),Qu.set(e,t)),t}function ed(e,t){return t&&Gu.getGlobalDictionaryForPackage(t)||$u(e)}function td(e,t){let{locale:n}=So(),r=ed(e,t);return(0,v.useMemo)(()=>new Zu(n,r),[n,r])}var nd={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 rd(e={}){let{style:t,isFocusable:n}=e,[r,i]=(0,v.useState)(!1),{focusWithinProps:a}=Xs({isDisabled:!n,onFocusWithinChange:e=>i(e)}),o=(0,v.useMemo)(()=>r?t:t?{...nd,...t}:nd,[r]);return{visuallyHiddenProps:{...a,style:o}}}function id(e){let{children:t,elementType:n=`div`,isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:o}=rd(e);return v.createElement(n,B(a,o),t)}function ad(e){return e&&e.__esModule?e.default:e}function od(e){let{onDismiss:t,...n}=e,r=ot(n,td(ad(Vu),`@react-aria/overlays`).format(`dismiss`)),i=()=>{t&&t()};return v.createElement(id,null,v.createElement(`button`,{...r,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}var sd=v.forwardRef(({children:e,...t},n)=>{let r=(0,v.useRef)(!1),i=(0,v.useContext)(Fs),a=B(i||{},{...t,register(){r.current=!0,i&&i.register()}});return a.ref=st(n||i?.ref),pt(i,a.ref),(0,v.useEffect)(()=>{r.current||=!0},[]),v.createElement(Fs.Provider,{value:a},e)});function cd({children:e}){let t=(0,v.useMemo)(()=>({register:()=>{}}),[]);return v.createElement(Fs.Provider,{value:t},e)}var ld=(0,v.createContext)({});function ud(){return(0,v.useContext)(ld)??{}}var dd=v.createContext(null);function fd(e){let t=ve(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=(0,v.useState)(!1),o=(0,v.useMemo)(()=>({contain:i,setContain:a}),[i,a]),{getContainer:s}=ud();if(!e.portalContainer&&s&&(n=s()),!n)return null;let c=e.children;return e.disableFocusManagement||(c=v.createElement(wl,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},c)),c=v.createElement(dd.Provider,{value:o},v.createElement(cd,null,v.createElement(Es.Provider,{value:null},c))),Ft.createPortal(c,n)}function pd(){let e=(0,v.useContext)(dd)?.setContain;L(()=>{e?.(!0)},[e])}function md(e){let[t,n]=uc(e.isOpen,e.defaultOpen||!1,e.onOpenChange),[r,i]=(0,v.useState)(null);return{isOpen:t,setOpen:n,open:(0,v.useCallback)(()=>{n(!0)},[n]),close:(0,v.useCallback)(()=>{n(!1)},[n]),toggle:(0,v.useCallback)(()=>{n(!t)},[n,t]),point:r,setPoint:i}}var hd=(0,v.createContext)(null),gd=(0,v.createContext)(null),_d=(0,v.forwardRef)(function(e,t){[e,t]=$a(e,t,hd);let n=(0,v.useContext)(qp),r=md(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,a=Lt(t,i.isOpen),o=e.isExiting||!e.shouldSkipAnimation&&a||!1,s=so(),{direction:c}=So();if(s){let t=e.children;return typeof t==`function`&&(t=t({trigger:e.trigger||null,placement:`bottom`,isEntering:!1,isExiting:!1,defaultChildren:null})),v.createElement(v.Fragment,null,t)}return i&&!i.isOpen&&!o?null:v.createElement(vd,{...e,triggerRef:e.triggerRef,state:i,popoverRef:t,isExiting:o,dir:c})});function vd({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)(gd),c=s&&i.trigger===`SubmenuTrigger`,{popoverProps:l,underlayProps:u,arrowProps:d,placement:f,triggerAnchorPoint:p}=ou({...i,offset:i.offset??8,arrowRef:a,groupRef:c?s:o},e),m=i.popoverRef,h=It(m,!!f),g=i.isEntering||!i.shouldSkipAnimation&&h||!1,_=G({...i,defaultClassName:`react-aria-Popover`,values:{trigger:i.trigger||null,placement:f,isEntering:g,isExiting:t}}),y=!i.isNonModal||i.trigger===`SubmenuTrigger`||i.trigger===`PreviewTrigger`,[b,x]=(0,v.useState)(i.trigger===`PreviewTrigger`);L(()=>{m.current&&x(y&&!m.current.querySelector(`[role=dialog]`))},[m,y]),(0,v.useEffect)(()=>{b&&i.trigger!==`PreviewTrigger`&&(i.trigger!==`SubmenuTrigger`||is()!==`pointer`)&&m.current&&!Ve(m.current)&&us(m.current)},[b,m,i.trigger]);let S=(0,v.useMemo)(()=>{let e=_.children;if(r)for(let t of r)e=v.createElement(t.Provider,{value:null},e);return e},[_.children,r]),[C,w]=(0,v.useState)(null),T=(0,v.useCallback)(()=>{i.triggerRef.current&&w(i.triggerRef.current.getBoundingClientRect().width+`px`)},[i.triggerRef]);L(T,[T]),ft({ref:_.style?.[`--trigger-width`]?void 0:i.triggerRef,onResize:T});let E={...l.style,"--trigger-anchor-point":p?`${p.x}px ${p.y}px`:void 0,..._.style,"--trigger-width":_.style?.[`--trigger-width`]||C},D=v.createElement(K.div,{...B(V(i,{global:!0}),l),..._,id:b?i.id:void 0,role:b?`dialog`:void 0,tabIndex:b?-1:void 0,"aria-label":i[`aria-label`],"aria-labelledby":i[`aria-labelledby`],ref:m,slot:i.slot||void 0,style:E,dir:i.dir,"data-trigger":i.trigger,"data-placement":f,"data-entering":g||void 0,"data-exiting":t||void 0},!i.isNonModal&&v.createElement(od,{onDismiss:e.close}),v.createElement(zc.Provider,{value:{...d,placement:f,ref:a}},S),v.createElement(od,{onDismiss:e.close}));return c?v.createElement(fd,{...i,shouldContainFocus:b&&i.trigger!==`PreviewTrigger`,isExiting:t,portalContainer:n??s?.current??void 0},D):v.createElement(fd,{...i,shouldContainFocus:b&&i.trigger!==`PreviewTrigger`,isExiting:t,portalContainer:n},!i.isNonModal&&e.isOpen&&v.createElement(`div`,{"data-testid":`underlay`,...u,style:{position:`fixed`,inset:0}}),v.createElement(`div`,{ref:o,style:{display:`contents`}},v.createElement(gd.Provider,{value:o},D)))}var yd=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}},bd=class extends yd{filter(e,t,n){let[r,i]=Ed(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},xd=class extends yd{static{this.type=`header`}},Sd=class extends yd{static{this.type=`loader`}},Cd=class extends bd{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}},wd=class extends bd{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}},Td=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]=Ed(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 Ed(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 Dd=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}},Od=class e extends Dd{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(){}},kd=class extends Dd{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 Od(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 Od&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof Od?(e.isConnected&&!e.isHidden&&(e.updateNode(),this.addNode(e)),e.node&&this.dirtyNodes.delete(e),e.isMutated=!1):this.dirtyNodes.delete(e);this.nextCollection&&(this.nextCollection.commit(this.firstVisibleChild?.node?.key??null,this.lastVisibleChild?.node?.key??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null))}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0,this.isSSR||(this.collection=this.collection.clone());for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),this.queuedRender&&e(),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}};function Ad(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=jd(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 jd(e){switch(typeof e){case`object`:return e!=null;case`function`:case`symbol`:return!0;default:return!1}}var Md=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})),Nd=o(((e,t)=>{t.exports=Md()}))(),Pd=(0,v.createContext)(!1),Fd=(0,v.createContext)(null);function Id(e){if((0,v.useContext)(Fd))return e.content;let{collection:t,document:n}=Bd(e.createCollection);return v.createElement(v.Fragment,null,v.createElement(ao,null,v.createElement(Fd.Provider,{value:n},e.content)),v.createElement(Ld,{render:e.children,collection:t}))}function Ld({collection:e,render:t}){return t(e)}function Rd(e,t,n){let r=ve(),i=(0,v.useRef)(r);return i.current=r,(0,Nd.useSyncExternalStore)(e,(0,v.useCallback)(()=>i.current?n():t(),[t,n]))}var zd=typeof v.useSyncExternalStore==`function`?v.useSyncExternalStore:Rd;function Bd(e){let[t]=(0,v.useState)(()=>new kd(e?.()||new Td));return{collection:zd((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 Vd=(0,v.createContext)(null);function Hd(e){return class extends yd{static{this.type=e}}}function Ud(e,t,n,r,i,a){typeof e==`string`&&(e=Hd(e));let o=(0,v.useCallback)(i=>{i?.setProps(t,n,e,r,a)},[t,n,r,a,e]),s=(0,v.useContext)(Vd);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(Vd.Provider,{value:o},i):null}return v.createElement(e.type,{ref:o},i)}function Wd(e,t){let n=({node:e})=>t(e.props,e.props.ref,e),r=(0,v.forwardRef)((r,i)=>{let a=(0,v.useContext)(Es);if(!(0,v.useContext)(Pd)){if(t.length>=3)throw Error(t.name+` cannot be rendered outside a collection.`);return t(r,i)}return Ud(e,r,i,`children`in r?r.children:null,null,e=>v.createElement(Es.Provider,{value:a},v.createElement(n,{node:e})))});return r.displayName=t.name,r}function Gd(e,t,n=Kd){let r=({node:e})=>t(e.props,e.props.ref,e),i=(0,v.forwardRef)((t,i)=>Ud(e,t,i,null,n(t),e=>v.createElement(r,{node:e}))??v.createElement(v.Fragment,null));return i.displayName=t.name,i}function Kd(e){return Ad({...e,addIdAndValue:!0})}var qd=(0,v.createContext)(null);function Jd(e){let t=(0,v.useContext)(qd),n=(t?.dependencies||[]).concat(e.dependencies),r=e.idScope??t?.idScope,i=Kd({...e,idScope:r,dependencies:n});return(0,v.useContext)(Fd)&&(i=v.createElement(Yd,null,i)),t=(0,v.useMemo)(()=>({dependencies:n,idScope:r}),[r,...n]),v.createElement(qd.Provider,{value:t},i)}function Yd({children:e}){let t=(0,v.useContext)(Fd),n=(0,v.useMemo)(()=>v.createElement(Fd.Provider,{value:null},v.createElement(Pd.Provider,{value:!0},e)),[e]);return ve()?v.createElement(Vd.Provider,{value:t},n):(0,Ft.createPortal)(n,t)}var Xd=(0,v.createContext)(null),Zd={CollectionRoot({collection:e,renderDropIndicator:t}){return Qd(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return Qd(e,t,n)}};function Qd(e,t,n){return Ad({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,$d(e,t,n))}})}function $d(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 ef=(0,v.createContext)(Zd);function tf(e){return(0,v.useMemo)(()=>e==null?null:new Set([e]),[e])}function nf(e){let t=of(Oe(e));t!==e&&(t&&rf(t,e),e&&af(e,t))}function rf(e,t){e.dispatchEvent(new FocusEvent(`blur`,{relatedTarget:t})),e.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,relatedTarget:t}))}function af(e,t){e.dispatchEvent(new FocusEvent(`focus`,{relatedTarget:t})),e.dispatchEvent(new FocusEvent(`focusin`,{bubbles:!0,relatedTarget:t}))}function of(e){let t=ze(e),n=t?.getAttribute(`aria-activedescendant`);return n&&e.getElementById(n)||t}var sf=(0,v.createContext)(null),cf=(0,v.createContext)(null),lf=(0,v.createContext)({}),uf=Wd(xd,function(e,t){return[e,t]=$a(e,t,lf),v.createElement(K.header,{className:`react-aria-Header`,...e,ref:t},e.children)}),df=(0,v.createContext)(null);function ff(e){let t=(0,v.useRef)({});return v.createElement(df.Provider,{value:t},e.children)}var pf=(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)(df);if(!d)throw Error(`<SharedElement> must be rendered inside a <SharedElementTransition>`);r&&l===`hidden`&&u(`visible`),t=st(t),L(()=>{let e=t.current,i=d.current,a=i[n],o=null;if(e&&r&&a){u(`visible`);let t=e.getAnimations(),r=a.style.map(([t,n])=>{let r=e.style[t];if(t===`translate`){let t=a.rect,n=e.getBoundingClientRect(),r=t.left-n?.left,i=t.top-n?.top;e.style.translate=`${r}px ${i}px`}else e.style[t]=n;return[t,r]});for(let n of e.getAnimations())t.includes(n)||n.cancel();o=requestAnimationFrame(()=>{o=null;for(let[t,n]of r)e.style[t]=n}),delete i[n]}else e&&r&&!a?(queueMicrotask(()=>(0,Ft.flushSync)(()=>u(`entering`))),o=requestAnimationFrame(()=>{o=null,u(`visible`)})):e&&!r&&queueMicrotask(()=>{i[n]?(delete i[n],(0,Ft.flushSync)(()=>u(`exiting`)),Promise.all(e.getAnimations().map(e=>e.finished)).then(()=>u(`hidden`)).catch(()=>{})):u(`hidden`)});return()=>{if(o!=null&&cancelAnimationFrame(o),e&&e.isConnected&&!e.hasAttribute(`data-exiting`)){let t=window.getComputedStyle(e);if(t.transitionProperty!==`none`){let r=t.transitionProperty.split(/\s*,\s*/);i[n]={rect:e.getBoundingClientRect(),style:r.map(e=>[e,t[e]])}}}}},[t,d,n,r]);let f=G({children:i,className:a,style:o,render:s,values:{isEntering:l===`entering`,isExiting:l===`exiting`}});return l===`hidden`?null:v.createElement(K.div,{...c,...f,ref:t,"data-entering":l===`entering`||void 0,"data-exiting":l===`exiting`||void 0})}),mf=(0,v.createContext)({isSelected:!1}),hf=(0,v.forwardRef)(function(e,t){[e,t]=$a(e,t,mf);let{isSelected:n,...r}=e;return v.createElement(pf,{...r,ref:t,className:e.className||`react-aria-SelectionIndicator`,name:`SelectionIndicator`,isVisible:n})});function gf(e){let t=V(e,{labelable:!0}),n;return e.orientation===`vertical`&&(n=`vertical`),e.elementType===`hr`?{separatorProps:t}:{separatorProps:{...t,role:`separator`,"aria-orientation":n}}}var _f=(0,v.createContext)({}),vf=Wd(class extends yd{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]=$a(e,t,_f);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}=gf({...s,elementType:n,orientation:r}),d=V(e,{global:!0});return v.createElement(l,{render:e.render,...B(d,u),style:i,className:a??`react-aria-Separator`,ref:t,slot:o||void 0})}),yf=(0,v.createContext)({}),bf=oo(function(e,t){[e,t]=$a(e,t,yf);let{elementType:n=`span`,...r}=e,i=K[n];return v.createElement(i,{className:`react-aria-Text`,...r,ref:t})}),xf={};xf={longPressMessage:`اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة`};var Sf={};Sf={longPressMessage:`Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто`};var Cf={};Cf={longPressMessage:`Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku`};var wf={};wf={longPressMessage:`Langt tryk eller tryk på Alt + pil ned for at åbne menuen`};var Tf={};Tf={longPressMessage:`Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen`};var Ef={};Ef={longPressMessage:`Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού`};var Df={};Df={longPressMessage:`Long press or press Alt + ArrowDown to open menu`};var Of={};Of={longPressMessage:`Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú`};var kf={};kf={longPressMessage:`Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool`};var Af={};Af={longPressMessage:`Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli`};var jf={};jf={longPressMessage:`Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu.`};var Mf={};Mf={longPressMessage:`לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט`};var Nf={};Nf={longPressMessage:`Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika`};var Pf={};Pf={longPressMessage:`Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához`};var Ff={};Ff={longPressMessage:`Premi a lungo o premi Alt + Freccia giù per aprire il menu`};var If={};If={longPressMessage:`長押しまたは Alt+下矢印キーでメニューを開く`};var Lf={};Lf={longPressMessage:`길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기`};var Rf={};Rf={longPressMessage:`Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“.`};var zf={};zf={longPressMessage:`Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa`};var Bf={};Bf={longPressMessage:`Langt trykk eller trykk Alt + PilNed for å åpne menyen`};var Vf={};Vf={longPressMessage:`Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen`};var Hf={};Hf={longPressMessage:`Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu`};var Uf={};Uf={longPressMessage:`Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu`};var Wf={};Wf={longPressMessage:`Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu`};var Gf={};Gf={longPressMessage:`Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul`};var Kf={};Kf={longPressMessage:`Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню`};var qf={};qf={longPressMessage:`Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol`};var Jf={};Jf={longPressMessage:`Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol`};var Yf={};Yf={longPressMessage:`Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni`};var Xf={};Xf={longPressMessage:`Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn`};var Zf={};Zf={longPressMessage:`Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın`};var Qf={};Qf={longPressMessage:`Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню`};var $f={};$f={longPressMessage:`长按或按 Alt + 向下方向键以打开菜单`};var ep={};ep={longPressMessage:`長按或按 Alt+向下鍵以開啟功能表`};var tp={};tp={"ar-AE":xf,"bg-BG":Sf,"cs-CZ":Cf,"da-DK":wf,"de-DE":Tf,"el-GR":Ef,"en-US":Df,"es-ES":Of,"et-EE":kf,"fi-FI":Af,"fr-FR":jf,"he-IL":Mf,"hr-HR":Nf,"hu-HU":Pf,"it-IT":Ff,"ja-JP":If,"ko-KR":Lf,"lt-LT":Rf,"lv-LV":zf,"nb-NO":Bf,"nl-NL":Vf,"pl-PL":Hf,"pt-BR":Uf,"pt-PT":Wf,"ro-RO":Gf,"ru-RU":Kf,"sk-SK":qf,"sl-SI":Jf,"sr-SP":Yf,"sv-SE":Xf,"tr-TR":Zf,"uk-UA":Qf,"zh-CN":$f,"zh-TW":ep};var np=500;function rp(e){let{isDisabled:t,pointerType:n,onLongPressStart:r,onLongPressEnd:i,onLongPress:a,threshold:o=np,accessibilityDescription:s}=e,c=(0,v.useRef)(void 0),{addGlobalListener:l,removeAllGlobalListeners:u}=at(),d=e=>n?e.pointerType===n:e.pointerType===`mouse`||e.pointerType===`touch`,{pressProps:f}=Vs({isDisabled:t,onPressStart(e){if(e.continuePropagation(),d(e)){r&&r({...e,type:`longpressstart`}),c.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent(`pointercancel`,{bubbles:!0})),l(e.target,`click`,e=>e.preventDefault(),{once:!0}),Oe(e.target).activeElement!==e.target&&P(e.target),a&&a({...e,type:`longpress`}),c.current=void 0},o),e.pointerType===`touch`&&l(e.target,`contextmenu`,e=>e.preventDefault(),{once:!0});let t=ke(e.target);l(t,`pointerup`,()=>{setTimeout(()=>{u()},100)},{once:!0})}},onPressEnd(e){c.current&&clearTimeout(c.current),i&&d(e)&&i({...e,type:`longpressend`})}});return{longPressProps:B(f,Tt(a&&!t?s:void 0))}}function ip(e){let{onContextMenu:t}=e,n=(0,v.useRef)(!1),{longPressProps:r}=rp({onLongPressStart(){n.current=!1},onLongPress(e){n.current?n.current=!1:t?.({target:e.target,x:e.x,y:e.y})}});return t?{contextMenuProps:B(O()?r:{},{onContextMenu(e){e.stopPropagation(),e.preventDefault(),n.current=!0;let r=e.currentTarget.getBoundingClientRect();t({target:e.currentTarget,x:e.clientX-r.x,y:e.clientY-r.y})},onKeyDown(e){if(T()&&e.ctrlKey&&e.key===`Enter`){n.current=!1;let r=e.currentTarget;e.stopPropagation(),setTimeout(()=>{if(n.current)n.current=!1;else{let e=r.getBoundingClientRect();t({target:r,x:e.width/2,y:e.height/2})}},10)}}})}:{contextMenuProps:{}}}function ap(e,t,n){let{type:r}=e,{isOpen:i}=t;(0,v.useEffect)(()=>{n&&n.current&&hl.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 op(e){return e&&e.__esModule?e.default:e}function sp(e,t,n){let{type:r=`menu`,isDisabled:i,trigger:a=`press`}=e,o=we(),{triggerProps:s,overlayProps:c}=ap({type:r},t,n),l=(e,n,r=`first`)=>{if(!e||n.isDefaultPrevented())return!1;t.toggle(r)},{keyboardProps:u}=Ts({isDisabled:i,shortcuts:{Enter:e=>l(a!==`longPress`,e,`first`)," ":e=>l(a!==`longPress`,e,`first`),ArrowDown:e=>l(a!==`longPress`,e,`first`),ArrowUp:e=>l(a!==`longPress`,e,`last`),"Alt+Enter":e=>l(a===`longPress`,e,`first`),"Alt+ ":e=>l(a===`longPress`,e,`first`),"Alt+ArrowDown":e=>l(!0,e,`first`),"Alt+ArrowUp":e=>l(!0,e,`last`)}}),d=td(op(tp),`@react-aria/menu`),{longPressProps:f}=rp({isDisabled:i||a!==`longPress`,accessibilityDescription:d.format(`longPressMessage`),onLongPressStart(){t.close()},onLongPress(){t.open(`first`)}}),p={preventFocusOnPress:!0,onPressStart(e){e.pointerType!==`touch`&&e.pointerType!==`keyboard`&&!i&&(P(e.target),t.open(e.pointerType===`virtual`?`first`:null))},onPress(e){e.pointerType===`touch`&&!i&&(P(e.target),t.toggle())}};delete s.onPress;let{contextMenuProps:m}=ip({onContextMenu(e){let n=e.target.getBoundingClientRect();t.setPoint({x:n.x+e.x,y:n.y+e.y}),t.open()}});(0,v.useEffect)(()=>{if(t.isOpen&&a===`contextMenu`){let e=e=>{(e.button===2||e.button===0&&e.ctrlKey===!0)&&z(e)===document.body&&t.close()};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)}},[t,a]);let h;if(a===`press`)h={...p,...u};else if(a===`longPress`)h={...f,...u};else if(a===`contextMenu`){h=m;let{"aria-haspopup":e,"aria-expanded":t,"aria-controls":n,...r}=s;s=r}return{menuTriggerProps:{...s,...h,id:o},menuProps:{...c,"aria-labelledby":o,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function cp(e){return k()?e.altKey:e.ctrlKey}function lp(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 up=new WeakMap;function dp(e){let t=we();return up.set(e,t),t}function fp(e){return up.get(e)}var pp=1e3;function mp(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=(0,v.useRef)({search:``,timeout:void 0});return(0,v.useEffect)(()=>{let e=i.current.timeout;return()=>{clearTimeout(e)}},[i]),{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{if(i.current.search.length>0&&e.key===` `){if(e.preventDefault(),(!(`continuePropagation`in e)||`continuePropagation`in e&&!e.isPropagationStopped())&&e.stopPropagation(),i.current.search+=` `,t.getKeyForSearch!=null){let e=t.getKeyForSearch(i.current.search,n.focusedKey);e??=t.getKeyForSearch(i.current.search),e!=null&&(n.setFocusedKey(e),r&&r(e))}clearTimeout(i.current.timeout),i.current.timeout=setTimeout(()=>{i.current.search=``},pp)}}:void 0,onKeyDown:t.getKeyForSearch?e=>{let a=hp(e.key);if(!(!a||e.ctrlKey||e.metaKey||e.altKey||!Re(e.currentTarget,z(e))||i.current.search.length===0&&a===` `)){if(i.current.search+=a,t.getKeyForSearch!=null){let a=t.getKeyForSearch(i.current.search,n.focusedKey);if(a??=t.getKeyForSearch(i.current.search),a!=null)n.setFocusedKey(a),r&&r(a),e.preventDefault(),`continuePropagation`in e||e.stopPropagation();else{i.current.search=``,clearTimeout(i.current.timeout),i.current.timeout=void 0;return}}clearTimeout(i.current.timeout),i.current.timeout=setTimeout(()=>{i.current.search=``},pp)}}:void 0}}}function hp(e){return e.length===1||!/^[A-Z]/i.test(e)?e:``}function gp(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:o=!1,disallowSelectAll:s=!1,escapeKeyBehavior:c=`clearSelection`,selectOnFocus:l=t.selectionBehavior===`replace`,disallowTypeAhead:u=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,scrollRef:p=r,linkBehavior:m=`action`,UNSTABLE_focusOnEntry:h}=e,{direction:g}=So(),_=re(),y=(e,n,i)=>{if(n!=null){if(t.isLink(n)&&m===`selection`&&l&&!cp(e)){(0,Ft.flushSync)(()=>{t.setFocusedKey(n,i)});let a=lp(r,n),o=t.getItemProps(n);if(a){_.open(a,e,o.href,o.routerOptions);return}return!1}if(t.setFocusedKey(n,i),t.isLink(n)&&m===`override`)return!1;if(e.shiftKey&&t.selectionMode===`multiple`){t.extendSelection(n);return}else if(l&&!cp(e)){t.replaceSelection(n);return}}return!1},S=e=>{if(n.getKeyBelow){let r=t.focusedKey==null?n.getFirstKey?.():n.getKeyBelow?.(t.focusedKey);if(r==null&&a&&(r=n.getFirstKey?.(t.focusedKey)),r!=null){y(e,r);return}}return!1},C=e=>{if(n.getKeyAbove){let r=t.focusedKey==null?n.getLastKey?.():n.getKeyAbove?.(t.focusedKey);if(r==null&&a&&(r=n.getLastKey?.(t.focusedKey)),r!=null){y(e,r);return}}return!1},w=e=>{if(n.getFirstKey){if(t.focusedKey===null&&e.shiftKey)return!1;let r=n.getFirstKey(t.focusedKey,_t(e));if(t.setFocusedKey(r),r!=null){if(_t(e)&&e.shiftKey&&t.selectionMode===`multiple`){t.extendSelection(r);return}else if(l){t.replaceSelection(r);return}}}return!1},E=e=>{if(n.getKeyLeftOf){let r=t.focusedKey==null?n.getFirstKey?.():n.getKeyLeftOf?.(t.focusedKey);if(r==null&&a&&(r=g===`rtl`?n.getFirstKey?.(t.focusedKey):n.getLastKey?.(t.focusedKey)),r!=null){y(e,r,g===`rtl`?`first`:`last`);return}}return!1},D=e=>{if(n.getKeyRightOf){let r=t.focusedKey==null?n.getFirstKey?.():n.getKeyRightOf?.(t.focusedKey);if(r==null&&a&&(r=g===`rtl`?n.getLastKey?.(t.focusedKey):n.getFirstKey?.(t.focusedKey)),r!=null){y(e,r,g===`rtl`?`last`:`first`);return}}return!1},O=e=>{if(n.getLastKey){if(t.focusedKey===null&&e.shiftKey)return!1;let r=n.getLastKey(t.focusedKey,_t(e));if(t.setFocusedKey(r),r!=null){if(_t(e)&&e.shiftKey&&t.selectionMode===`multiple`){t.extendSelection(r);return}else if(l){t.replaceSelection(r);return}}}return!1},k=e=>{if(n.getKeyPageBelow&&t.focusedKey!=null){let r=n.getKeyPageBelow(t.focusedKey);if(r!=null)return y(e,r)}return!1},A=e=>{if(n.getKeyPageAbove&&t.focusedKey!=null){let r=n.getKeyPageAbove(t.focusedKey);if(r!=null)return y(e,r)}return!1},j=()=>{if(t.selectionMode===`multiple`&&s!==!0){t.selectAll();return}return!1},M=()=>{if(c===`clearSelection`&&!o&&t.selectedKeys.size!==0){t.clearSelection();return}return!1},N=()=>{if(!f&&r.current){let e=Wl(r.current,{tabbable:!0}),t,n;do n=e.lastChild(),n&&(t=n);while(n);let i=ze();t&&(!Ve(t)||i&&!qt(i))&&P(t)}return{shouldContinuePropagation:!0,shouldPreventDefault:!1}},F=()=>(!f&&r.current&&r.current.focus(),{shouldContinuePropagation:!0,shouldPreventDefault:!1}),I=(e,t)=>({[T()?e+`+Shift+Alt`:e+`+Shift+Control`]:t,[e+`+Shift`]:t,[T()?e+`+Alt`:e+`+Control`]:t,[e]:t}),{keyboardProps:ee}=Ts({shortcuts:{...I(`ArrowDown`,S),...I(`ArrowUp`,C),...I(`ArrowLeft`,E),...I(`ArrowRight`,D),...I(`PageDown`,k),...I(`PageUp`,A)},allowRepeats:!0}),{keyboardProps:te}=Ts({shortcuts:{...I(`Home`,w),...I(`End`,O),"Mod+A":j,Escape:M,Tab:N,"Tab+Shift":F}}),ne=(0,v.useRef)({top:0,left:0});Et(p,`scroll`,()=>{ne.current={top:p.current?.scrollTop??0,left:p.current?.scrollLeft??0}});let ie=e=>{if(t.isFocused){Re(e.currentTarget,z(e))||t.setFocused(!1);return}if(!Re(e.currentTarget,z(e)))return;let i=is();t.setFocused(!0);let a=e=>{e!=null&&(t.setFocusedKey(e),l&&!t.isSelected(e)&&t.replaceSelection(e))};if(h&&(i===`keyboard`||i===`virtual`))a(h===`first`?n.getFirstKey?.():n.getLastKey?.());else if(t.focusedKey==null){let r=e.relatedTarget;r&&e.currentTarget.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_FOLLOWING?a(t.lastSelectedKey??n.getLastKey?.()):a(t.firstSelectedKey??n.getFirstKey?.())}else p.current&&(p.current.scrollTop=ne.current.top,p.current.scrollLeft=ne.current.left);if(t.focusedKey!=null&&p.current){let e=lp(r,t.focusedKey);e instanceof HTMLElement&&(!Ve(e)&&!d&&P(e),(i===`keyboard`||h&&i===`virtual`)&&kt(e,{containingElement:r.current}))}},ae=e=>{Re(e.currentTarget,e.relatedTarget)||t.setFocused(!1)},oe=(0,v.useRef)(!1);Et(r,x,d?e=>{let{detail:n}=e;e.stopPropagation(),t.setFocused(!0),n?.focusStrategy===`first`&&(oe.current=!0)}:void 0);let se=n.getFirstKey?.()??null;ut(()=>{if(oe.current)if(se==null){let e=ze();nf(r.current),af(e,null),t.collection.size>0&&(oe.current=!1)}else t.setFocusedKey(se),oe.current=!1},[se,t.collection.size]),ut(()=>{t.collection.size>0&&(oe.current=!1)},[t.focusedKey]),Et(r,b,d?e=>{e.stopPropagation(),t.setFocused(!1),e.detail?.clearFocusKey&&t.setFocusedKey(null)}:void 0);let L=(0,v.useRef)(i),ce=(0,v.useRef)(!1);(0,v.useEffect)(()=>{if(L.current){let e=null;i===`first`&&(e=n.getFirstKey?.()??null),i===`last`&&(e=n.getLastKey?.()??null);let a=t.selectedKeys;if(a.size){for(let n of a)if(t.canSelectItem(n)){e=n;break}}t.setFocused(!0),t.setFocusedKey(e),e!=null&&l&&!a.size&&t.canSelectItem(e)&&t.replaceSelection(e),e==null&&!d&&r.current&&us(r.current),t.collection.size>0&&(L.current=!1,ce.current=!0)}});let le=(0,v.useRef)(t.focusedKey),ue=(0,v.useRef)(null);(0,v.useEffect)(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==le.current||ce.current)&&p.current&&r.current){let e=is(),n=lp(r,t.focusedKey);if(!(n instanceof HTMLElement))return;(e===`keyboard`||ce.current)&&(ue.current&&cancelAnimationFrame(ue.current),ue.current=requestAnimationFrame(()=>{p.current&&(Dt(p.current,n),e!==`virtual`&&kt(n,{containingElement:r.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&le.current!=null&&r.current&&us(r.current),le.current=t.focusedKey,ce.current=!1}),(0,v.useEffect)(()=>()=>{ue.current&&cancelAnimationFrame(ue.current)},[]),Et(r,`react-aria-focus-scope-restore`,e=>{e.preventDefault(),t.setFocused(!0)});let de={...B(te,ee),onFocus:ie,onBlur:ae,onMouseDown(e){p.current===z(e)&&e.preventDefault()}},{typeSelectProps:fe}=mp({keyboardDelegate:n,selectionManager:t});u||(de=B(fe,de));let R;d||(R=t.focusedKey==null?0:-1);let pe=dp(t.collection);return{collectionProps:B(de,{tabIndex:R,"data-collection":pe})}}var _p=class{constructor(e){this.ref=e}getItemRect(e){let t=this.ref.current;if(!t)return null;let n=e==null?null:lp(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}}},vp=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 _p(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 _p(this.ref);this.layout===`stack`&&this.orientation===`vertical`&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}isDisabled(e){return this.disabledBehavior===`all`&&(e.props?.isDisabled||this.disabledKeys.has(e.key))&&e.props?.disabledBehavior!==`selection`}findNextNonDisabled(e,t,n=!1){let r=e;for(;r!=null;){let e=this.collection.getItem(r);if(e?.type===`item`&&(n||!this.isDisabled(e)))return r;r=t(r)}return null}getNextKey(e,t){let n=e;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,e=>this.collection.getKeyAfter(e),t?.includeDisabled)}getPreviousKey(e,t){let n=e;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,e=>this.collection.getKeyBefore(e),t?.includeDisabled)}findKey(e,t,n){let r=e,i=this.layoutDelegate.getItemRect(r);if(!i||r==null)return null;let a=i;do{if(r=t(r),r==null)break;i=this.layoutDelegate.getItemRect(r)}while(i&&n(a,i)&&r!=null);return r}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}isReversed(e){let t=this.getNextKey(e),n=lp(this.ref,e);if(t!=null){let e=lp(this.ref,t);return!n||!e?!1:n.getBoundingClientRect().top>e.getBoundingClientRect().top}let r=this.getPreviousKey(e);if(r!=null){let e=lp(this.ref,r);return!n||!e?!1:e.getBoundingClientRect().top>n.getBoundingClientRect().top}return!1}getKeyBelow(e,t){return this.layout===`grid`&&this.orientation===`vertical`?this.findKey(e,e=>this.getNextKey(e,t),this.isSameRow):this.orientation===`vertical`&&this.isReversed(e)?this.getPreviousKey(e,t):this.getNextKey(e,t)}getKeyAbove(e,t){return this.layout===`grid`&&this.orientation===`vertical`?this.findKey(e,e=>this.getPreviousKey(e,t),this.isSameRow):this.orientation===`vertical`&&this.isReversed(e)?this.getNextKey(e,t):this.getPreviousKey(e,t)}getNextColumn(e,t,n){return t?this.getPreviousKey(e,n):this.getNextKey(e,n)}getKeyRightOf(e,t){let n=this.direction===`ltr`?`getKeyRightOf`:`getKeyLeftOf`;return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[n](e),t?.includeDisabled)):this.layout===`grid`?this.orientation===`vertical`?this.getNextColumn(e,this.direction===`rtl`,t):this.findKey(e,e=>this.getNextColumn(e,this.direction===`rtl`,t),this.isSameColumn):this.orientation===`horizontal`?this.getNextColumn(e,this.direction===`rtl`,t):null}getKeyLeftOf(e,t){let n=this.direction===`ltr`?`getKeyLeftOf`:`getKeyRightOf`;return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[n](e),t?.includeDisabled)):this.layout===`grid`?this.orientation===`vertical`?this.getNextColumn(e,this.direction===`ltr`,t):this.findKey(e,e=>this.getNextColumn(e,this.direction===`ltr`,t),this.isSameColumn):this.orientation===`horizontal`?this.getNextColumn(e,this.direction===`ltr`,t):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyAfter(e))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;let r=this.isReversed(e);if(t&&!mt(t))return this.getFirstKey();let i=e;if(this.orientation===`horizontal`){let e=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>e&&i!=null;)i=this.getKeyAbove(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}else{let e=this.layoutDelegate.getVisibleRect(),t=r?n.y-e.height:Math.max(0,n.y+n.height-e.height);for(;n&&n.y>t&&i!=null;)i=this.getKeyAbove(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}return i??(r?this.getLastKey():this.getFirstKey())}getKeyPageBelow(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;let r=this.isReversed(e);if(t&&!mt(t))return this.getLastKey();let i=e;if(this.orientation===`horizontal`){let e=Math.min(this.layoutDelegate.getContentSize().width,n.x-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<e&&i!=null;)i=this.getKeyBelow(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}else{let e=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<e&&i!=null;)i=this.getKeyBelow(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}return i??(r?this.getFirstKey():this.getLastKey())}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t||this.getFirstKey();for(;r!=null;){let t=n.getItem(r);if(!t)return null;let i=t.textValue.slice(0,e.length);if(t.textValue&&this.collator.compare(i,e)===0)return r;r=this.getNextKey(r)}return null}},yp=new Map;function bp(e){let{locale:t}=So(),n=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():``);if(yp.has(n))return yp.get(n);let r=new Intl.Collator(t,e);return yp.set(n,r),r}function xp(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:o,orientation:s}=e,c=bp({usage:`search`,sensitivity:`base`}),l=t.disabledBehavior,u=(0,v.useMemo)(()=>a||new vp({collection:n,disabledKeys:r,disabledBehavior:l,ref:i,collator:c,layoutDelegate:o,orientation:s}),[a,o,n,r,i,c,l,s]),{collectionProps:d}=gp({...e,ref:i,selectionManager:t,keyboardDelegate:u});return{listProps:d}}function Sp(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:a,shouldUseVirtualFocus:o,focus:s,isDisabled:c,onAction:l,allowsDifferentPressOrigin:u,linkBehavior:d=`action`}=e,f=re();t=we(t);let p=e=>{if(e.pointerType===`keyboard`&&cp(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&&(_t(e)||e.pointerType===`touch`||e.pointerType===`virtual`)?n.toggleSelection(r):n.replaceSelection(r)}};(0,v.useEffect)(()=>{r===n.focusedKey&&n.isFocused&&(o?nf(i.current):s?s():ze()!==i.current&&i.current&&us(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,o]),c||=n.isDisabled(r);let m={};!o&&!c?m={tabIndex:r===n.focusedKey?0:-1,onFocus(e){z(e)===i.current&&n.setFocusedKey(r)}}:c&&(m.onMouseDown=e=>{e.preventDefault()}),(0,v.useEffect)(()=>{c&&n.focusedKey===r&&n.setFocusedKey(null)},[n,c,r]);let h=n.isLink(r)&&d===`override`,g=l&&e.UNSTABLE_itemBehavior===`action`,_=n.isLink(r)&&d!==`selection`&&d!==`none`,y=!c&&n.canSelectItem(r)&&!h&&!g,b=(l||_)&&!c,x=b&&(n.selectionBehavior===`replace`?!y:!y||n.isEmpty),S=b&&y&&n.selectionBehavior===`replace`,C=x||S,w=(0,v.useRef)(null),T=C&&y,E=(0,v.useRef)(!1),D=(0,v.useRef)(!1),O=n.getItemProps(r),k=e=>{l&&(l(),i.current?.dispatchEvent(new CustomEvent(`react-aria-item-action`,{bubbles:!0}))),_&&i.current&&f.open(i.current,e,O.href,O.routerOptions)},A={ref:i};a?(A.onPressStart=e=>{w.current=e.pointerType,E.current=T,e.pointerType===`keyboard`&&(!C||wp(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`&&!Cp(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||wp(e.key)))&&p(e)},A.onPress=e=>{(e.pointerType===`touch`||e.pointerType===`pen`||e.pointerType===`virtual`||e.pointerType===`keyboard`&&C&&Cp(e.key)||e.pointerType===`mouse`&&D.current)&&(C?k(e):y&&p(e))});let j=fp(n.collection);if(m[`data-collection`]=j,m[`data-key`]=r,A.preventFocusOnPress=o,o&&(A=B(A,{onPressStart(e){e.pointerType!==`touch`&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(e){e.pointerType===`touch`&&(n.setFocused(!0),n.setFocusedKey(r))}})),O)for(let e of[`onPressStart`,`onPressEnd`,`onPressChange`,`onPress`,`onPressUp`,`onClick`])O[e]&&(A[e]=De(A[e],O[e]));let{pressProps:M,isPressed:N}=Vs(A),P=S?e=>{w.current===`mouse`&&(e.stopPropagation(),e.preventDefault(),k(e))}:void 0,{longPressProps:F}=rp({isDisabled:!T,onLongPress(e){e.pointerType===`touch`&&(p(e),n.setSelectionBehavior(`toggle`))}}),I=e=>{w.current===`touch`&&E.current&&e.preventDefault()},ee=d!==`none`&&n.isLink(r)?e=>{ie.isOpening||e.preventDefault()}:void 0,te=B(m,y||x||o&&!c?M:{},T?F:{},{onDoubleClick:P,onDragStartCapture:I,onClick:ee,id:t},o?{onMouseDown:e=>e.preventDefault()}:void 0),ne=e=>{let t=e;for(;t&&t!==i.current;){let e=t.getAttribute(`data-collection`);if(e!=null)return e!==j;t=t.parentElement}return qt(e)},ae=te.onPointerDown;te.onPointerDown=e=>{let t=z(e);if(t&&t!==i.current&&ne(t)){e.stopPropagation();return}ae?.(e)};let oe=te.onMouseDown;return te.onMouseDown=e=>{let t=z(e);if(t&&t!==i.current&&ne(t)){e.stopPropagation();return}oe?.(e)},{itemProps:te,isPressed:N,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:c,allowsSelection:y,hasAction:C}}function Cp(e){return e===`Enter`}function wp(e){return e===` `}function Tp(e,t){return typeof t.getChildren==`function`?t.getChildren(e.key):e.childNodes}function Ep(e){return Dp(e,0)}function Dp(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function Op(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...kp(e,t),t],i=[...kp(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 kp(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}var Ap=new WeakMap;function jp(e){let t=Ap.get(e);if(t!=null)return t;let n=0,r=t=>{for(let i of t)i.type===`section`?r(Tp(i,e)):i.type===`item`&&n++};return r(e),Ap.set(e,n),n}function Mp(e){let t=md(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 Np=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)}},Pp=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&&Op(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&&Op(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 Np([t],t,t);else{let e=this.state.selectedKeys,r=e.anchorKey??t;n=new Np(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?Op(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 Np(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 Np([t],t,t):new Np;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode===`none`)return;let t=new Np;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(Ep(Tp(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 Np)}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})}},Fp=class{build(e,t){return this.context=t,Ip(()=>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:Lp(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 <${Rp(t.type)}> in <${Rp(r?.type??`unknown parent type`)}>. Only <${Rp(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:Ip(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 Ip(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 Lp(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Rp(e){return e[0].toUpperCase()+e.slice(1)}function zp(e,t,n){let r=(0,v.useMemo)(()=>new Fp,[]),{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 Bp(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Vp(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]=uc((0,v.useMemo)(()=>Hp(e.selectedKeys),[e.selectedKeys]),(0,v.useMemo)(()=>Hp(e.defaultSelectedKeys,new Np),[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||!Bp(e,d))&&f(e)},disabledKeys:p,disabledBehavior:a}}function Hp(e,t){return e?e===`all`?`all`:new Np(e):t}var Up=(0,v.createContext)(null),Wp=(0,v.createContext)(null);(class extends yd{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}}),Wd(Sd,function(e,t,n){let r=(0,v.useContext)(Up),{isLoading:i,onLoadMore:a,scrollOffset:o,...s}=e,c=(0,v.useRef)(null);Nt((0,v.useMemo)(()=>({onLoadMore:a,collection:r?.collection,sentinelRef:c,scrollOffset:o}),[a,o,r?.collection]),c);let l=G({...s,id:void 0,children:n.rendered,defaultClassName:`react-aria-MenuLoadingIndicator`,values:void 0});return v.createElement(v.Fragment,null,v.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:Pt(!0)},v.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:c,style:{position:`absolute`,height:1,width:1}})),i&&l.children&&v.createElement(v.Fragment,null,v.createElement(K.div,{...B(V(e,{global:!0}),{tabIndex:-1}),...l,role:`menuitem`,ref:t},l.children)))});function Gp(e,t){let{role:n=`dialog`}=e,r=Ee();r=e[`aria-label`]?void 0:r;let i=Ee();i=n===`alertdialog`&&!e[`aria-describedby`]?i:void 0;let a=(0,v.useRef)(!1);(0,v.useEffect)(()=>{if(t.current&&!Ve(t.current)){us(t.current);let e=setTimeout(()=>{(ze()===t.current||ze()===document.body)&&(a.current=!0,t.current&&(t.current.blur(),us(t.current)),a.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),pd(),(0,v.useRef)(!1),(0,v.useEffect)(()=>{});let o=e[`aria-describedby`]??i;return{dialogProps:{...V(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e[`aria-labelledby`]??r,"aria-describedby":o,onBlur:e=>{a.current&&e.stopPropagation()}},titleProps:{id:r},contentProps:{id:i}}}var Kp=(0,v.createContext)(null),qp=(0,v.createContext)(null);function Jp(e){let t=Mp(e),n=(0,v.useRef)(null),{triggerProps:r,overlayProps:i}=ap({type:`dialog`},t,n);return r.id=we(),i[`aria-labelledby`]=r.id,so()?null:v.createElement(Xa,{values:[[qp,t],[Wp,t],[Kp,i],[hd,{trigger:`DialogTrigger`,triggerRef:n,id:i.id,"aria-labelledby":i[`aria-labelledby`]}]]},v.createElement(sd,{...r,ref:n,isPressed:t.isOpen},e.children))}var Yp=(0,v.forwardRef)(function(e,t){let n=e[`aria-labelledby`];[e,t]=$a(e,t,Kp);let{dialogProps:r,titleProps:i,contentProps:a}=Gp({...e,"aria-labelledby":n},t),o=(0,v.useContext)(qp);!r[`aria-label`]&&!r[`aria-labelledby`]&&e[`aria-labelledby`]&&(r[`aria-labelledby`]=e[`aria-labelledby`]);let s=G({defaultClassName:`react-aria-Dialog`,className:e.className,style:e.style,children:e.children,values:{close:o?.close||(()=>{})}}),c=V(e,{global:!0});return v.createElement(K.section,{...B(c,s,r),render:e.render,ref:t,slot:e.slot||void 0},v.createElement(Xa,{values:[[bc,{slots:{[Ya]:{},title:{...i,level:2}}}],[yf,{slots:{[Ya]:{},description:a}}],[ic,{slots:{[Ya]:{},close:{onPress:()=>o?.close()}}}]]},s.children))});function Xp(e,t,n){let{overlayProps:r,underlayProps:i}=Zl({...e,isOpen:t.isOpen,onClose:t.close},n);return tu({isDisabled:!t.isOpen}),pd(),(0,v.useEffect)(()=>{if(t.isOpen&&n.current)return Gc([n.current],{shouldUseInert:!0})},[t.isOpen,n]),{modalProps:B(r),underlayProps:i}}var Zp=(0,v.createContext)(null),Qp=(0,v.createContext)(null),$p=(0,v.forwardRef)(function(e,t){if((0,v.useContext)(Qp))return v.createElement(rm,{...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(tm,{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:i,defaultOpen:a,onOpenChange:o,isEntering:c,isExiting:l,UNSTABLE_portalContainer:u,shouldCloseOnInteractOutside:d},v.createElement(rm,{...f,modalRef:t},s))});function em(e,t){[e,t]=$a(e,t,Zp);let n=(0,v.useContext)(qp),r=md(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,a=st(t),o=(0,v.useRef)(null),s=Lt(a,i.isOpen),c=Lt(o,i.isOpen),l=s||c||e.isExiting||!1,u=ve();return!i.isOpen&&!l||u?null:v.createElement(nm,{...e,state:i,isExiting:l,overlayRef:a,modalRef:o})}var tm=(0,v.forwardRef)(em);function nm({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:i,underlayProps:a}=Xp(t,r,n),o=It(t.overlayRef)||t.isEntering||!1,s=G({...t,defaultClassName:`react-aria-ModalOverlay`,values:{isEntering:o,isExiting:t.isExiting,state:r}}),c=xt(),l,u;if(typeof document<`u`){let e=mt(document.body)?document.body:document.scrollingElement||document.documentElement,t=e.getBoundingClientRect().width%1,n=e.getBoundingClientRect().height%1;l=e.scrollWidth-t,u=e.scrollHeight-n}let d={...s.style,"--visual-viewport-width":c.width+`px`,"--visual-viewport-height":c.height+`px`,"--page-width":l===void 0?void 0:l+`px`,"--page-height":u===void 0?void 0:u+`px`};return v.createElement(fd,{isExiting:t.isExiting,portalContainer:e},v.createElement(K.div,{...B(V(t,{global:!0}),a),...s,style:d,ref:t.overlayRef,"data-entering":o||void 0,"data-exiting":t.isExiting||void 0},v.createElement(Xa,{values:[[Qp,{modalProps:i,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[qp,r]]},s.children)))}function rm(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:i}=(0,v.useContext)(Qp),a=(0,v.useContext)(qp),o=st((0,v.useMemo)(()=>We(e.modalRef,n),[e.modalRef,n])),s=It(o),c=G({...e,defaultClassName:`react-aria-Modal`,values:{isEntering:s,isExiting:r,state:a}});return v.createElement(K.div,{...B(V(e,{global:!0}),t),...c,ref:o,"data-entering":s||void 0,"data-exiting":r||void 0},i&&v.createElement(od,{onDismiss:a.close}),c.children)}var im=v.forwardRef(({children:e,...t},n)=>{n=st(n);let{pressProps:r}=Vs({...t,ref:n}),{focusableProps:i}=ks(t,n),a=v.Children.only(e);(0,v.useEffect)(()=>{},[n,t.isDisabled]);let o=a.props.ref;return v.cloneElement(a,{...B(r,i,a.props),ref:We(o,n)})}),am=({children:e,className:t,slot:n,style:r,variant:i,...a})=>(0,H.jsx)(ac,{"aria-label":`Close`,className:J(t,(0,v.useMemo)(()=>Oa({variant:i}),[i])),"data-slot":`close-button`,slot:n,style:r,type:`button`,...a,children:t=>typeof e==`function`?e(t):e??(0,H.jsx)(Dc,{"data-slot":`close-button-icon`})}),om=Object.assign(am,{Root:am}),sm=(0,v.createContext)({}),cm=(0,v.forwardRef)(function(e,t){[e,t]=$a(e,t,sm);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}=rc({onHoverStart:a,onHoverChange:o,onHoverEnd:s,isDisabled:n}),{isFocused:d,isFocusVisible:f,focusProps:p}=Zs({within:!0}),m=G({...e,values:{isHovered:u,isFocusWithin:d,isFocusVisible:f,isDisabled:n,isInvalid:r},defaultClassName:`react-aria-Group`});return v.createElement(K.div,{...B(c,p,l),...m,ref:t,role:e.role??`group`,slot:e.slot??void 0,"data-focus-within":d||void 0,"data-hovered":u||void 0,"data-focus-visible":f||void 0,"data-disabled":n||void 0,"data-invalid":r||void 0,"data-readonly":i||void 0},m.children)}),lm=(0,v.createContext)(null),um=(0,v.forwardRef)(function(e,t){return(0,v.useContext)(lm)?.isInvalid?v.createElement(dm,{...e,ref:t}):null}),dm=(0,v.forwardRef)((e,t)=>{let n=(0,v.useContext)(lm),{elementType:r,...i}=e,a=V(i,{global:!0}),o=G({...i,defaultClassName:`react-aria-FieldError`,defaultChildren:n.validationErrors.length===0?void 0:n.validationErrors.join(` `),values:n});return o.children==null?null:v.createElement(bf,{slot:`errorMessage`,elementType:r,...a,...o,ref:t})}),fm={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},pm={...fm,customError:!0,valid:!1},mm={isInvalid:!1,validationDetails:fm,validationErrors:[]},hm=(0,v.createContext)({}),gm=`__reactAriaFormValidationState`;function _m(e){if(e.__reactAriaFormValidationState){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[gm];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return vm(e)}function vm(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:pm},l=(0,v.useMemo)(()=>!o||i==null?null:xm(bm(o,i)),[o,i]);a?.validationDetails.valid&&(a=void 0);let u=(0,v.useContext)(hm),d=(0,v.useMemo)(()=>r?Array.isArray(r)?r.flatMap(e=>ym(u[e])):ym(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)(()=>xm(m?[]:d),[m,d]),_=(0,v.useRef)(mm),[y,b]=(0,v.useState)(mm),x=(0,v.useRef)(mm),S=()=>{if(!C)return;w(!1);let e=l||a||_.current;Sm(e,x.current)||(x.current=e,b(e))},[C,w]=(0,v.useState)(!1);return(0,v.useEffect)(S),{realtimeValidation:c||g||l||a||mm,displayValidation:s===`native`?c||g||y:c||g||l||a||y,updateValidation(e){s===`aria`&&!Sm(y,e)?b(e):_.current=e},resetValidation(){let e=mm;Sm(e,x.current)||(x.current=e,b(e)),s===`native`&&w(!1),h(!0)},commitValidation(){s===`native`&&w(!0),h(!0)}}}function ym(e){return e?Array.isArray(e)?e:[e]:[]}function bm(e,t){if(typeof e==`function`){let n=e(t);if(n&&typeof n!=`boolean`)return ym(n)}return[]}function xm(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:pm}:null}function Sm(e,t){return e===t||!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((e,n)=>e===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([e,n])=>t.validationDetails[e]===n)}function Cm(...e){let t=new Set,n=!1,r={...fm};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 wm=(0,v.createContext)(null),Tm=(0,v.forwardRef)(function(e,t){[e,t]=$a(e,t,wm);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(wm.Provider,{value:{...e,validationBehavior:r}},v.createElement(hm.Provider,{value:n??{}},i)))}),Em={};Em={colorSwatchPicker:`تغييرات الألوان`,dropzoneLabel:`DropZone`,selectPlaceholder:`حدد عنصرًا`,tableResizer:`أداة تغيير الحجم`};var Dm={};Dm={colorSwatchPicker:`Цветови мостри`,dropzoneLabel:`DropZone`,selectPlaceholder:`Изберете предмет`,tableResizer:`Преоразмерител`};var Om={};Om={colorSwatchPicker:`Vzorky barev`,dropzoneLabel:`Místo pro přetažení`,selectPlaceholder:`Vyberte položku`,tableResizer:`Změna velikosti`};var km={};km={colorSwatchPicker:`Farveprøver`,dropzoneLabel:`DropZone`,selectPlaceholder:`Vælg et element`,tableResizer:`Størrelsesændring`};var Am={};Am={colorSwatchPicker:`Farbfelder`,dropzoneLabel:`Ablegebereich`,selectPlaceholder:`Element wählen`,tableResizer:`Größenanpassung`};var jm={};jm={colorSwatchPicker:`Χρωματικά δείγματα`,dropzoneLabel:`DropZone`,selectPlaceholder:`Επιλέξτε ένα αντικείμενο`,tableResizer:`Αλλαγή μεγέθους`};var Mm={};Mm={selectPlaceholder:`Select an item`,tableResizer:`Resizer`,dropzoneLabel:`DropZone`,colorSwatchPicker:`Color swatches`};var Nm={};Nm={colorSwatchPicker:`Muestras de colores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Seleccionar un artículo`,tableResizer:`Cambiador de tamaño`};var Pm={};Pm={colorSwatchPicker:`Värvinäidised`,dropzoneLabel:`DropZone`,selectPlaceholder:`Valige üksus`,tableResizer:`Suuruse muutja`};var Fm={};Fm={colorSwatchPicker:`Värimallit`,dropzoneLabel:`DropZone`,selectPlaceholder:`Valitse kohde`,tableResizer:`Koon muuttaja`};var Im={};Im={colorSwatchPicker:`Échantillons de couleurs`,dropzoneLabel:`DropZone`,selectPlaceholder:`Sélectionner un élément`,tableResizer:`Redimensionneur`};var Lm={};Lm={colorSwatchPicker:`דוגמיות צבע`,dropzoneLabel:`DropZone`,selectPlaceholder:`בחר פריט`,tableResizer:`שינוי גודל`};var Rm={};Rm={colorSwatchPicker:`Uzorci boja`,dropzoneLabel:`Zona spuštanja`,selectPlaceholder:`Odaberite stavku`,tableResizer:`Promjena veličine`};var zm={};zm={colorSwatchPicker:`Színtárak`,dropzoneLabel:`DropZone`,selectPlaceholder:`Válasszon ki egy elemet`,tableResizer:`Átméretező`};var Bm={};Bm={colorSwatchPicker:`Campioni di colore`,dropzoneLabel:`Zona di rilascio`,selectPlaceholder:`Seleziona un elemento`,tableResizer:`Ridimensionamento`};var Vm={};Vm={colorSwatchPicker:`カラースウォッチ`,dropzoneLabel:`ドロップゾーン`,selectPlaceholder:`項目を選択`,tableResizer:`サイズ変更ツール`};var Hm={};Hm={colorSwatchPicker:`색상 견본`,dropzoneLabel:`드롭 영역`,selectPlaceholder:`항목 선택`,tableResizer:`크기 조정기`};var Um={};Um={colorSwatchPicker:`Spalvų pavyzdžiai`,dropzoneLabel:`„DropZone“`,selectPlaceholder:`Pasirinkite elementą`,tableResizer:`Dydžio keitiklis`};var Wm={};Wm={colorSwatchPicker:`Krāsu paraugi`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izvēlēties vienumu`,tableResizer:`Izmēra mainītājs`};var Gm={};Gm={colorSwatchPicker:`Fargekart`,dropzoneLabel:`Droppsone`,selectPlaceholder:`Velg et element`,tableResizer:`Størrelsesendrer`};var Km={};Km={colorSwatchPicker:`kleurstalen`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecteer een item`,tableResizer:`Resizer`};var qm={};qm={colorSwatchPicker:`Próbki kolorów`,dropzoneLabel:`Strefa upuszczania`,selectPlaceholder:`Wybierz element`,tableResizer:`Zmiana rozmiaru`};var Jm={};Jm={colorSwatchPicker:`Amostras de cores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecione um item`,tableResizer:`Redimensionador`};var Ym={};Ym={colorSwatchPicker:`Amostras de cores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecione um item`,tableResizer:`Redimensionador`};var Xm={};Xm={colorSwatchPicker:`Specimene de culoare`,dropzoneLabel:`Zonă de plasare`,selectPlaceholder:`Selectați un element`,tableResizer:`Instrument de redimensionare`};var Zm={};Zm={colorSwatchPicker:`Цветовые образцы`,dropzoneLabel:`DropZone`,selectPlaceholder:`Выберите элемент`,tableResizer:`Средство изменения размера`};var Qm={};Qm={colorSwatchPicker:`Vzorkovníky farieb`,dropzoneLabel:`DropZone`,selectPlaceholder:`Vyberte položku`,tableResizer:`Nástroj na zmenu veľkosti`};var $m={};$m={colorSwatchPicker:`Barvne palete`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izberite element`,tableResizer:`Spreminjanje velikosti`};var eh={};eh={colorSwatchPicker:`Uzorci boje`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izaberite stavku`,tableResizer:`Promena veličine`};var th={};th={colorSwatchPicker:`Färgrutor`,dropzoneLabel:`DropZone`,selectPlaceholder:`Välj en artikel`,tableResizer:`Storleksändrare`};var nh={};nh={colorSwatchPicker:`Renk örnekleri`,dropzoneLabel:`Bırakma Bölgesi`,selectPlaceholder:`Bir öğe seçin`,tableResizer:`Yeniden boyutlandırıcı`};var rh={};rh={colorSwatchPicker:`Зразки кольорів`,dropzoneLabel:`DropZone`,selectPlaceholder:`Виберіть елемент`,tableResizer:`Засіб змінення розміру`};var ih={};ih={colorSwatchPicker:`颜色色板`,dropzoneLabel:`放置区域`,selectPlaceholder:`选择一个项目`,tableResizer:`尺寸调整器`};var ah={};ah={colorSwatchPicker:`色票`,dropzoneLabel:`放置區`,selectPlaceholder:`選取項目`,tableResizer:`大小調整器`};var oh={};oh={"ar-AE":Em,"bg-BG":Dm,"cs-CZ":Om,"da-DK":km,"de-DE":Am,"el-GR":jm,"en-US":Mm,"es-ES":Nm,"et-EE":Pm,"fi-FI":Fm,"fr-FR":Im,"he-IL":Lm,"hr-HR":Rm,"hu-HU":zm,"it-IT":Bm,"ja-JP":Vm,"ko-KR":Hm,"lt-LT":Um,"lv-LV":Wm,"nb-NO":Gm,"nl-NL":Km,"pl-PL":qm,"pt-BR":Jm,"pt-PT":Ym,"ro-RO":Xm,"ru-RU":Zm,"sk-SK":Qm,"sl-SI":$m,"sr-SP":eh,"sv-SE":th,"tr-TR":nh,"uk-UA":rh,"zh-CN":ih,"zh-TW":ah};var sh=(0,v.createContext)({}),ch=(0,v.createContext)(null),lh=(0,v.forwardRef)(function(e,t){let{render:n}=(0,v.useContext)(ch);return v.createElement(v.Fragment,null,n(e,t))});function uh(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(lh,{target:e})},[t?.target,r,n]);return e?.useDropIndicator?i:void 0}function dh(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 fh=new WeakMap;function ph(e){return typeof e==`string`?e.replace(/\s*/g,``):``+e}function mh(e,t){let n=fh.get(e);if(!n)throw Error(`Unknown list`);return`${n.id}-option-${ph(t)}`}function hh(e,t,n){let r=V(e,{labelable:!0}),i=e.selectionBehavior||`toggle`,a=e.orientation||`vertical`,o=e.linkBehavior||(i===`replace`?`action`:`override`);i===`toggle`&&o===`action`&&(o=`override`);let{listProps:s}=xp({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:o}),{focusWithinProps:c}=Xs({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=we(e.id);fh.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}=uo({...e,id:l,labelElementType:`span`});return{labelProps:u,listBoxProps:B(r,c,t.selectionManager.selectionMode===`multiple`?{"aria-multiselectable":`true`}:{},{role:`listbox`,"aria-orientation":a,...B(d,s)})}}function gh(e,t,n){let{key:r}=e,i=fh.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`]=jp(t.collection)}let h=i?.onAction?()=>i?.onAction?.(r):void 0,g=mh(t,r),{itemProps:_,isPressed:v,isFocused:y,hasAction:b,allowsSelection:x}=Sp({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}=rc({isDisabled:a||!c,onHoverStart(){rs()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(r))}}),C=V(m?.props);delete C.id;let w=se(m?.props);return{optionProps:{...p,...B(C,_,S,w),id:g},labelProps:{id:d},descriptionProps:{id:f},isFocused:y,isFocusVisible:y&&t.selectionManager.isFocused&&rs(),isSelected:o,isDisabled:a,isPressed:v,allowsSelection:x,hasAction:b}}function _h(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 vh=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 yh(e){let{filter:t,layoutDelegate:n}=e,r=Vp(e),i=(0,v.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=zp(e,(0,v.useCallback)(e=>t?new vh(t(e)):new vh(e),[t]),(0,v.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning])),o=(0,v.useMemo)(()=>new Pp(a,r,{layoutDelegate:n}),[a,r,n]);return xh(a,o),{collection:a,disabledKeys:i,selectionManager:o}}function bh(e,t){let n=(0,v.useMemo)(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),r=e.selectionManager.withCollection(n);return xh(n,r),{collection:n,selectionManager:r,disabledKeys:e.disabledKeys}}function xh(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 Sh=(0,v.createContext)(null),Ch=(0,v.createContext)(null),wh=(0,v.forwardRef)(function(e,t){[e,t]=$a(e,t,Sh);let n=(0,v.useContext)(Ch);return n?v.createElement(Eh,{state:n,props:e,listBoxRef:t}):v.createElement(Id,{content:v.createElement(Jd,e)},n=>v.createElement(Th,{props:e,listBoxRef:t,collection:n}))});function Th({props:e,listBoxRef:t,collection:n}){e={...e,collection:n,children:null,items:null};let{layoutDelegate:r}=(0,v.useContext)(ef),i=yh({...e,layoutDelegate:r});return v.createElement(Eh,{state:i,props:e,listBoxRef:t})}function Eh({state:e,props:t,listBoxRef:n}){[t,n]=$a(t,n,sf);let{dragAndDropHooks:r,layout:i=`stack`,orientation:a=`vertical`,filter:o}=t,s=bh(e,o),{collection:c,selectionManager:l}=s,u=!!r?.useDraggableCollectionState,d=!!r?.useDroppableCollectionState,{direction:f}=So(),{disabledBehavior:p,disabledKeys:m}=l,h=bp({usage:`search`,sensitivity:`base`}),{isVirtualized:g,layoutDelegate:_,dropTargetDelegate:y,CollectionRoot:b}=(0,v.useContext)(ef),x=(0,v.useMemo)(()=>t.keyboardDelegate||new vp({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}=hh({...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}=Zs(),M=s.collection.size===0,N={isDropTarget:E,isEmpty:M,isFocused:A,isFocusVisible:j,layout:t.layout||`stack`,orientation:a,state:s},P=G({...t,children:void 0,defaultClassName:`react-aria-ListBox`,values:N}),F=null;M&&t.renderEmptyState&&(F=v.createElement(`div`,{role:`option`,style:{display:`contents`}},t.renderEmptyState(N)));let I=V(t,{global:!0});return v.createElement(wl,null,v.createElement(K.div,{...B(I,P,S,k,T?.collectionProps),ref:n,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":E||void 0,"data-empty":M||void 0,"data-focused":A||void 0,"data-focus-visible":j||void 0,"data-layout":t.layout||`stack`,"data-orientation":a},v.createElement(Xa,{values:[[Sh,t],[Ch,s],[sh,{dragAndDropHooks:r,dragState:C,dropState:w}],[_f,{elementType:`div`}],[ch,{render:Ah}],[Xd,{name:`ListBoxSection`,render:Dh}]]},v.createElement(ff,null,v.createElement(b,{collection:c,scrollRef:n,persistedKeys:dh(l,r,w),renderDropIndicator:uh(r,w)}))),F,D))}function Dh(e,t,n,r=`react-aria-ListBoxSection`){let i=(0,v.useContext)(Ch),{dragAndDropHooks:a,dropState:o}=(0,v.useContext)(sh),{CollectionBranch:s}=(0,v.useContext)(ef),[c,l]=eo(),{headingProps:u,groupProps:d}=_h({heading:l,"aria-label":e[`aria-label`]??void 0}),f=G({...e,id:void 0,children:void 0,defaultClassName:r,values:void 0}),p=V(e,{global:!0});return delete p.id,v.createElement(K.section,{...B(p,f,d),ref:t},v.createElement(lf.Provider,{value:{...u,ref:c}},v.createElement(s,{collection:i.collection,parent:n,renderDropIndicator:uh(a,o)})))}var Oh=Gd(wd,Dh),kh=Wd(Cd,function(e,t,n){let r=st(t),i=(0,v.useContext)(Ch),{dragAndDropHooks:a,dragState:o,dropState:s}=(0,v.useContext)(sh),c=o&&!(o.isDisabled||o.selectionManager.isDisabled(n.key)),{optionProps:l,labelProps:u,descriptionProps:d,...f}=gh({key:n.key,"aria-label":e?.[`aria-label`]},i,r),{hoverProps:p,isHovered:m}=rc({isDisabled:!f.allowsSelection&&!f.hasAction&&!c,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),{keyboardProps:h}=Ts(e),{focusProps:g}=ds(e),_=null;o&&a&&(_=a.useDraggableItem({key:n.key,hasAction:f.hasAction},o));let y=null;s&&a&&(y=a.useDroppableItem({target:{type:`item`,key:n.key,dropPosition:`on`}},s,r));let b=o&&o.isDragging(n.key),x=G({...e,id:void 0,children:e.children,defaultClassName:`react-aria-ListBoxItem`,values:{...f,isHovered:m,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,allowsDragging:!!o,isDragging:b,isDropTarget:y?.isDropTarget}});(0,v.useEffect)(()=>{n.textValue},[n.textValue]);let S=e.href?K.a:K.div,C=V(e,{global:!0});return delete C.id,delete C.onClick,e.href&&l.tabIndex==null&&(l.tabIndex=-1),v.createElement(S,{...B(C,x,l,p,h,g,_?.dragProps,y?.dropProps),ref:r,"data-allows-dragging":!!o||void 0,"data-selected":f.isSelected||void 0,"data-disabled":f.isDisabled||void 0,"data-hovered":m||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":f.isFocusVisible||void 0,"data-pressed":f.isPressed||void 0,"data-dragging":b||void 0,"data-drop-target":y?.isDropTarget||void 0,"data-selection-mode":i.selectionManager.selectionMode===`none`?void 0:i.selectionManager.selectionMode},v.createElement(Xa,{values:[[yf,{slots:{[Ya]:u,label:u,description:d}}],[mf,{isSelected:f.isSelected}]]},x.children))});function Ah(e,t){t=st(t);let{dragAndDropHooks:n,dropState:r}=(0,v.useContext)(sh),{dropIndicatorProps:i,isHidden:a,isDropTarget:o}=n.useDropIndicator(e,r,t);return a?null:v.createElement(Mh,{...e,dropIndicatorProps:i,isDropTarget:o,ref:t})}function jh(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 Mh=(0,v.forwardRef)(jh);Wd(Sd,function(e,t,n){let r=(0,v.useContext)(Ch),{isLoading:i,onLoadMore:a,scrollOffset:o,...s}=e,c=(0,v.useRef)(null);Nt((0,v.useMemo)(()=>({onLoadMore:a,collection:r?.collection,sentinelRef:c,scrollOffset:o}),[a,o,r?.collection]),c);let l=G({...s,id:void 0,children:n.rendered,defaultClassName:`react-aria-ListBoxLoadingIndicator`,values:void 0});return v.createElement(v.Fragment,null,v.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:Pt(!0)},v.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:c,style:{position:`absolute`,height:1,width:1}})),i&&l.children&&v.createElement(v.Fragment,null,v.createElement(K.div,{...B(V(e,{global:!0}),{tabIndex:-1}),...l,role:`option`,ref:t},l.children)))});function Nh(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:o}=uo(e),s=Ee([!!t,!!n,r,i]),c=Ee([!!t,!!n,r,i]);return o=B(o,{"aria-describedby":[s,c,e[`aria-describedby`]].filter(Boolean).join(` `)||void 0}),{labelProps:a,fieldProps:o,descriptionProps:{id:s},errorMessageProps:{id:c}}}var Ph=new WeakMap;function Fh(e,t,n){let{keyboardDelegate:r,isDisabled:i,isRequired:a,name:o,form:s,validationBehavior:c=`aria`}=e,l=bp({usage:`search`,sensitivity:`base`}),u=(0,v.useMemo)(()=>r||new vp(t.collection,t.disabledKeys,n,l),[r,t.collection,t.disabledKeys,l,n]),{menuTriggerProps:d,menuProps:f}=sp({isDisabled:i,type:`listbox`},t,n),{keyboardProps:p}=Ts({shortcuts:{ArrowLeft:()=>{if(t.selectionManager.selectionMode===`multiple`)return!1;let e=t.selectedKey==null?u.getFirstKey?.():u.getKeyAbove?.(t.selectedKey);e!=null&&t.setSelectedKey(e)},ArrowRight:()=>{if(t.selectionManager.selectionMode===`multiple`)return!1;let e=t.selectedKey==null?u.getFirstKey?.():u.getKeyBelow?.(t.selectedKey);e!=null&&t.setSelectedKey(e)}},allowRepeats:!0,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp}),{typeSelectProps:m}=mp({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}=Nh({...e,labelElementType:`span`,isInvalid:h,errorMessage:e.errorMessage||g});t.selectionManager.selectionMode===`multiple`&&(m={});let C=V(e,{labelable:!0}),w=B(m,d,b),T=we();return Ph.set(t,{isDisabled:i,isRequired:a,name:o,form:s,validationBehavior:c}),{labelProps:{...y,onClick:()=>{e.isDisabled||(n.current?.focus(),as(`keyboard`))}},triggerProps:B(C,{...w,isDisabled:i,onKeyDown:De(w.onKeyDown,p.onKeyDown),onKeyUp:p.onKeyUp,"aria-labelledby":[T,w[`aria-labelledby`],w[`aria-label`]&&!w[`aria-labelledby`]?w.id:null].filter(Boolean).join(` `),onFocus(n){t.isFocused||(e.onFocus&&e.onFocus(n),e.onFocusChange&&e.onFocusChange(!0),t.setFocused(!0))},onBlur(n){t.isOpen||(e.onBlur&&e.onBlur(n),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))}}),valueProps:{id:T},menuProps:{...f,onAction:void 0,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:`selection`,onBlur:n=>{Re(n.currentTarget,n.relatedTarget)||(e.onBlur&&e.onBlur(n),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))},"aria-labelledby":[b[`aria-labelledby`],w[`aria-label`]&&!b[`aria-labelledby`]?w.id:null].filter(Boolean).join(` `)},descriptionProps:x,errorMessageProps:S,isInvalid:h,validationErrors:g,validationDetails:_,hiddenSelectProps:{isDisabled:i,name:o,label:e.label,state:t,triggerRef:n,form:s}}}function Ih(e,t,n){let{validationBehavior:r,focus:i}=e;L(()=>{if(r===`native`&&n?.current&&`setCustomValidity`in n.current&&!n.current.disabled){let e=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(` `)||`Invalid value.`:``;n.current.setCustomValidity(e),n.current.hasAttribute(`title`)||(n.current.title=``),t.realtimeValidation.isInvalid||t.updateValidation(Rh(n.current))}});let a=(0,v.useRef)(!1),o=lt(()=>{a.current||t.resetValidation()}),s=lt(e=>{t.displayValidation.isInvalid||t.commitValidation();let r=n?.current?.form;!e.defaultPrevented&&n&&r&&zh(r)===n.current&&(i?i():n.current?.focus(),as(`keyboard`)),e.preventDefault()}),c=lt(()=>{t.commitValidation()});(0,v.useEffect)(()=>{let e=n?.current;if(!e)return;let t=e.form,r=t?.reset;return t&&(t.reset=()=>{a.current=!window.event||window.event.type===`message`&&z(window.event)instanceof MessagePort,r?.call(t),a.current=!1}),e.addEventListener(`invalid`,s),e.addEventListener(`change`,c),t?.addEventListener(`reset`,o),()=>{e.removeEventListener(`invalid`,s),e.removeEventListener(`change`,c),t?.removeEventListener(`reset`,o),t&&(t.reset=r)}},[n,r])}function Lh(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 Rh(e){return{isInvalid:!e.validity.valid,validationDetails:Lh(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function zh(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 Bh(e,t,n){let r=Ph.get(t)||{},{autoComplete:i,name:a=r.name,form:o=r.form,isDisabled:s=r.isDisabled}=e,{validationBehavior:c,isRequired:l}=r,{visuallyHiddenProps:u}=rd({style:{position:`fixed`,top:0,left:0}});Mt(e.selectRef,t.defaultValue,t.setValue),Ih({validationBehavior:c,focus:()=>n.current?.focus()},t,e.selectRef);let d=t.setValue,f=(0,v.useCallback)(e=>{let t=z(e);t.multiple?d(Array.from(t.selectedOptions,e=>e.value)):d(e.currentTarget.value)},[d]);return{containerProps:{...u,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":`aria-hidden-focus`},inputProps:{style:{display:`none`}},selectProps:{tabIndex:-1,autoComplete:i,disabled:s,multiple:t.selectionManager.selectionMode===`multiple`,required:c===`native`&&l,name:a,form:o,value:t.value??``,onChange:f,onInput:f}}}function Vh(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}=Bh({...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}=Ph.get(t)||{};d.length===0&&(d=[null]);let n=d.map((t,n)=>{let r={type:`hidden`,autoComplete:u.autoComplete,name:i,form:a,disabled:o,value:t??``};return e===`native`?v.createElement(`input`,{key:n,...r,ref:n===0?c:null,style:{display:`none`},type:`text`,required:n===0&&u.required,onChange:()=>{}}):v.createElement(`input`,{key:n,...r,ref:n===0?c:null})});return v.createElement(v.Fragment,null,n)}return null}function Hh(e){let{selectionMode:t=`single`,shouldCloseOnSelect:n=t===`single`}=e,r=md(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]=uc((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=yh({...e,selectionMode:t,disallowEmptySelection:t===`single`,allowDuplicateSelectionEvents:!0,selectedKeys:(0,v.useMemo)(()=>Uh(l),[l]),onSelectionChange:e=>{if(e!==`all`){if(t===`single`){let t=e.values().next().value??null;u(t)}else u([...e]);n&&r.close(),m.commitValidation()}}}),f=d.selectionManager.firstSelectedKey,p=(0,v.useMemo)(()=>[...d.selectionManager.selectedKeys].map(e=>d.collection.getItem(e)).filter(e=>e!=null),[d.selectionManager.selectedKeys,d.collection]),m=_m({...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 Uh(e){if(e!==void 0)return e===null?[]:Array.isArray(e)?e:[e]}function Wh(e={}){let{locale:t}=So();return(0,v.useMemo)(()=>new Intl.ListFormat(t,e),[t,e])}function Gh(e){return e&&e.__esModule?e.default:e}var Kh=(0,v.createContext)(null),qh=(0,v.createContext)(null),Jh=oo(function(e,t){[e,t]=$a(e,t,Kh);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(Id,{content:o},n=>v.createElement(Xh,{props:e,collection:n,selectRef:t}))}),Yh=[co,ic,yf];function Xh({props:e,selectRef:t,collection:n}){let{validationBehavior:r}=Qa(wm)||{},i=e.validationBehavior??r??`native`,a=Hh({...e,collection:n,children:void 0,validationBehavior:i}),{isFocusVisible:o,focusProps:s}=Zs({within:!0}),c=(0,v.useRef)(null),[l,u]=eo(!e[`aria-label`]&&!e[`aria-labelledby`]),{labelProps:d,triggerProps:f,valueProps:p,menuProps:m,descriptionProps:h,errorMessageProps:g,hiddenSelectProps:_,...y}=Fh({...to(e),label:u,validationBehavior:i},a,c),b=(0,v.useMemo)(()=>({isOpen:a.isOpen,isFocused:a.isFocused,isFocusVisible:o,isDisabled:e.isDisabled||!1,isInvalid:y.isInvalid||!1,isRequired:e.isRequired||!1}),[a.isOpen,a.isFocused,o,e.isDisabled,y.isInvalid,e.isRequired]),x=G({...e,values:b,defaultClassName:`react-aria-Select`}),S=V(e,{global:!0});delete S.id;let C=(0,v.useRef)(null);return v.createElement(Xa,{values:[[Kh,e],[qh,a],[Zh,p],[co,{...d,ref:l,elementType:`span`}],[ic,{...f,ref:c,isPressed:a.isOpen,autoFocus:e.autoFocus}],[qp,a],[hd,{trigger:`Select`,triggerRef:c,scrollRef:C,placement:`bottom start`,"aria-labelledby":m[`aria-labelledby`],clearContexts:Yh}],[Sh,{...m,ref:C}],[Ch,a],[yf,{slots:{description:h,errorMessage:g}}],[lm,y]]},v.createElement(K.div,{...B(S,x,s),ref:t,slot:e.slot||void 0,"data-focused":a.isFocused||void 0,"data-focus-visible":o||void 0,"data-open":a.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":y.isInvalid||void 0,"data-required":e.isRequired||void 0},x.children,v.createElement(Vh,{..._,autoComplete:e.autoComplete})))}var Zh=(0,v.createContext)(null),Qh=oo(function(e,t){[e,t]=$a(e,t,Zh);let n=(0,v.useContext)(qh),{placeholder:r}=Qa(Kh),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=Wh(),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=td(Gh(oh),`react-aria-components`),d=G({...e,defaultChildren:l??r??u.format(`selectPlaceholder`),defaultClassName:`react-aria-SelectValue`,values:{selectedItem:n.selectedItems[0]?.value??null,selectedItems:(0,v.useMemo)(()=>n.selectedItems.map(e=>e.value??null),[n.selectedItems]),selectedText:c,isPlaceholder:n.selectedItems.length===0,state:n}}),f=V(e,{global:!0});return v.createElement(K.span,{ref:t,...f,...d,"data-placeholder":n.selectedItems.length===0||void 0},v.createElement(yf.Provider,{value:void 0},d.children))}),$h=(0,v.createContext)(!1),eg=e=>{let t=(0,v.use)($h),n=(0,v.use)(yf);return!t||n?.slots?.[e]!=null},tg=({children:e})=>(0,H.jsx)($h,{value:!0,children:e});function ng(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,H.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,rg(i,...t)]}function rg(...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 ig(e){let t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...e)=>t.current?.(...e),[])}var ag=globalThis?.document?v.useLayoutEffect:()=>{};function og(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function sg(...e){return t=>{let n=!1,r=e.map(e=>{let r=og(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():og(e[t],null)}}}}var cg=Symbol.for(`react.lazy`),lg=v.use;function ug(e){return typeof e==`object`&&!!e&&`then`in e}function dg(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===cg&&`_payload`in e&&ug(e._payload)}function fg(e){let t=pg(e),n=v.forwardRef((e,n)=>{let{children:r,...i}=e;dg(r)&&typeof lg==`function`&&(r=lg(r._payload));let a=v.Children.toArray(r),o=a.find(hg);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,H.jsx)(t,{...i,ref:n,children:v.isValidElement(e)?v.cloneElement(e,void 0,r):null})}return(0,H.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function pg(e){let t=v.forwardRef((e,t)=>{let{children:n,...r}=e;if(dg(n)&&typeof lg==`function`&&(n=lg(n._payload)),v.isValidElement(n)){let e=_g(n),i=gg(r,n.props);return n.type!==v.Fragment&&(i.ref=t?sg(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 mg=Symbol(`radix.slottable`);function hg(e){return v.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===mg}function gg(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 _g(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 vg=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=fg(`Primitive.${t}`),r=v.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,H.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function yg(){return(0,Nd.useSyncExternalStore)(bg,()=>!0,()=>!1)}function bg(){return()=>{}}var xg=`Avatar`,[Sg,Cg]=ng(xg),[wg,Tg]=Sg(xg),Eg=v.forwardRef((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,a]=v.useState(`idle`);return(0,H.jsx)(wg,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:a,children:(0,H.jsx)(vg.span,{...r,ref:t})})});Eg.displayName=xg;var Dg=`AvatarImage`,Og=v.forwardRef((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...a}=e,o=Tg(Dg,n),s=Mg(r,a),c=ig(e=>{i(e),o.onImageLoadingStatusChange(e)});return ag(()=>{s!==`idle`&&c(s)},[s,c]),s===`loaded`?(0,H.jsx)(vg.img,{...a,ref:t,src:r}):null});Og.displayName=Dg;var kg=`AvatarFallback`,Ag=v.forwardRef((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,a=Tg(kg,n),[o,s]=v.useState(r===void 0);return v.useEffect(()=>{if(r!==void 0){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),o&&a.imageLoadingStatus!==`loaded`?(0,H.jsx)(vg.span,{...i,ref:t}):null});Ag.displayName=kg;function jg(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?`loaded`:`loading`):`error`:`idle`}function Mg(e,{referrerPolicy:t,crossOrigin:n}){let r=yg(),i=v.useRef(null),a=r?(i.current||=new window.Image,i.current):null,[o,s]=v.useState(()=>jg(a,e));return ag(()=>{s(jg(a,e))},[a,e]),ag(()=>{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 Ng=Eg,Pg=Og,Fg=Ag,Ig=(0,v.createContext)({}),Lg=({children:e,className:t,color:n,size:r,variant:i,...a})=>{let o=v.useMemo(()=>Sa({color:n,size:r,variant:i}),[n,r,i]);return(0,H.jsx)(Ig,{value:{slots:o},children:(0,H.jsx)(Ng,{className:o.base({className:t}),...a,children:e})})},Rg=Object.assign(Lg,{Root:Lg,Image:({className:e,crossOrigin:t,loading:n,onError:r,onLoad:i,sizes:a,src:o,srcSet:s,...c})=>{let{slots:l}=v.use(Ig);return(0,H.jsx)(Pg,{className:Y(l?.image,e),crossOrigin:t,loading:n,sizes:a,src:o,srcSet:s,onError:r,onLoad:i,...c})},Fallback:({className:e,color:t,...n})=>{let{slots:r}=v.use(Ig);return(0,H.jsx)(Fg,{className:Y(r?.fallback,e,{color:t}),"data-slot":`avatar-fallback`,...n})}});function zg(e={}){let{isReadOnly:t}=e,[n,r]=uc(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 Bg=(0,v.createContext)({}),Vg=`__button_group_child`,Hg=({children:e,className:t,fullWidth:n,isDisabled:r,isIconOnly:i,size:a,slot:o,style:s,variant:c,[Vg]:l,...u})=>{let d=(0,v.use)(Bg),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,H.jsx)(ac,{className:J(t,Ca({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})},Ug=Object.assign(Hg,{Root:Hg}),Wg=(0,v.createContext)({}),Gg=({children:e,className:t,variant:n=`default`,...r})=>{let i=v.useMemo(()=>wa({variant:n}),[n]),a=(0,H.jsx)(on.div,{className:i.base({className:t}),"data-slot":`card`,...r,children:e});return(0,H.jsx)(Wg,{value:{slots:i},children:n===`transparent`?a:(0,H.jsx)(Pc,{value:{variant:n},children:a})})},Kg=Object.assign(Gg,{Root:Gg,Header:({className:e,...t})=>{let{slots:n}=(0,v.use)(Wg);return(0,H.jsx)(on.div,{className:Y(n?.header,e),"data-slot":`card-header`,...t})},Title:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(Wg);return(0,H.jsx)(on.h3,{className:Y(r?.title,t),"data-slot":`card-title`,...n,children:e})},Description:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(Wg);return(0,H.jsx)(on.p,{className:Y(r?.description,t),"data-slot":`card-description`,...n,children:e})},Content:({className:e,...t})=>{let{slots:n}=(0,v.use)(Wg);return(0,H.jsx)(on.div,{className:Y(n?.content,e),"data-slot":`card-content`,...t})},Footer:({className:e,...t})=>{let{slots:n}=(0,v.use)(Wg);return(0,H.jsx)(on.div,{className:Y(n?.footer,e),"data-slot":`card-footer`,...t})}}),qg=new WeakMap;function Jg(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}=Nh({...e,labelElementType:`span`,isInvalid:o,errorMessage:e.errorMessage||s});qg.set(t,{name:r,form:i,descriptionId:d.id,errorMessageId:f.id,validationBehavior:a});let p=V(e,{labelable:!0}),{focusWithinProps:m}=Xs({onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:B(p,{role:`group`,"aria-disabled":n||void 0,...u,...m}),labelProps:l,descriptionProps:d,errorMessageProps:f,isInvalid:o,validationErrors:s,validationDetails:c}}function Yg(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 Xg(e=!0){let t=we(),[n,r]=Yg(e);return{id:r?t:void 0,ref:n}}function Zg(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=_m({...e,value:t.isSelected}),{isInvalid:S,validationErrors:C,validationDetails:w}=x.displayValidation;Ih(e,x,n);let T=e=>{e.stopPropagation(),t.setSelected(z(e).checked)},{pressProps:E,isPressed:D}=Vs({onPressStart:m,onPressEnd:h,onPressChange:g,onPress:_,onPressUp:y,onClick:b,isDisabled:r}),[O,k]=(0,v.useState)(!1),{pressProps:A}=Vs({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{[gm]:i}=e,{commitValidation:a}=i||x;a()},isDisabled:r||i}),{focusableProps:j}=ks(e,n),M=B(E,j),N=V(e,{labelable:!0});Mt(n,t.defaultSelected,t.setSelected);let P=Xg(),F=Xg();return{labelProps:B(A,{onClick:e=>e.preventDefault()}),inputProps:B(N,{checked:t.isSelected,"aria-required":l&&u===`aria`||void 0,required:l&&u===`native`,"aria-invalid":S||e.validationState===`invalid`||void 0,"aria-errormessage":e[`aria-errormessage`],"aria-controls":e[`aria-controls`],"aria-readonly":i||void 0,"aria-describedby":[P.id,F.id,p].filter(Boolean).join(` `)||void 0,onChange:T,disabled:r,...a==null?{}:{value:a},name:o,form:s,type:`checkbox`,...M}),descriptionProps:P,errorMessageProps:F,isSelected:t.isSelected,isPressed:D||O,isDisabled:r,isReadOnly:i,isInvalid:S||e.validationState===`invalid`,validationErrors:C,validationDetails:w}}function Qg(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}=Zg(e,t,n),{isIndeterminate:m}=e;return(0,v.useEffect)(()=>{n.current&&(n.current.indeterminate=!!m)}),{labelProps:B(r,(0,v.useMemo)(()=>({onMouseDown:e=>e.preventDefault()}),[])),inputProps:i,descriptionProps:a,errorMessageProps:o,isSelected:s,isPressed:c,isDisabled:l,isReadOnly:u,isInvalid:d,validationErrors:f,validationDetails:p}}function $g(e,t,n){let r=zg({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}=qg.get(t);c=e.validationBehavior??c;let{realtimeValidation:l}=_m({...e,value:r.isSelected,name:void 0,validationBehavior:`aria`}),u=(0,v.useRef)(mm),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=Qg({...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,[gm]:{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 e_(e={}){let[t,n]=uc(e.value,e.defaultValue||[],e.onChange),[r]=(0,v.useState)(t),i=!!e.isRequired&&t.length===0,a=(0,v.useRef)(new Map),o=_m({...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(Cm(...n.values()))},validationState:e.validationState??(s?`invalid`:null),isInvalid:s,isRequired:i}}var t_=(0,v.createContext)(null),n_=(0,v.createContext)(null),r_=(0,v.createContext)(null),i_=(0,v.forwardRef)(function(e,t){[e,t]=$a(e,t,n_);let{validationBehavior:n}=Qa(wm)||{},r=e.validationBehavior??n??`native`,i=e_({...e,validationBehavior:r}),[a,o]=eo(!e[`aria-label`]&&!e[`aria-labelledby`]),{groupProps:s,labelProps:c,descriptionProps:l,errorMessageProps:u,...d}=Jg({...e,label:o,validationBehavior:r},i),f=G({...e,values:{isDisabled:i.isDisabled,isReadOnly:i.isReadOnly,isRequired:e.isRequired||!1,isInvalid:i.isInvalid,state:i},defaultClassName:`react-aria-CheckboxGroup`}),p=V(e,{global:!0});return v.createElement(K.div,{...B(p,f,s),ref:t,slot:e.slot||void 0,"data-readonly":i.isReadOnly||void 0,"data-required":e.isRequired||void 0,"data-invalid":i.isInvalid||void 0,"data-disabled":e.isDisabled||void 0},v.createElement(Xa,{values:[[r_,i],[co,{...c,ref:a,elementType:`span`}],[yf,{slots:{description:l,errorMessage:u}}],[lm,d]]},f.children))}),a_=(0,v.createContext)(null),o_=(0,v.forwardRef)(function(e,t){let{inputRef:n=null,...r}=e;[e,t]=$a(r,t,t_);let i=(0,v.useContext)(r_),[a,o]=s_(e,n),{descriptionProps:s,errorMessageProps:c,isSelected:l,isDisabled:u,isReadOnly:d,isInvalid:f,validationDetails:p,validationErrors:m}=a,h=G({...e,defaultClassName:`react-aria-CheckboxField`,values:{isSelected:l,isIndeterminate:e.isIndeterminate||!1,isDisabled:u,isReadOnly:d,isInvalid:f,isRequired:e.isRequired||!1}}),g=V(e,{global:!0});return delete g.id,delete g.onClick,v.createElement(K.div,{...B(g,h),ref:t,slot:e.slot||void 0,"data-selected":l||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-disabled":u||void 0,"data-readonly":d||void 0,"data-invalid":f||void 0,"data-required":e.isRequired||void 0},v.createElement(Xa,{values:[[a_,{...a,inputRef:o,defaultClassName:`react-aria-CheckboxButton`,isIndeterminate:e.isIndeterminate,isRequired:e.isRequired}],[yf,{slots:{description:s,errorMessage:c}}],[lm,i?null:{isInvalid:f,validationDetails:p,validationErrors:m}]]},h.children))});function s_(e,t){let{validationBehavior:n}=Qa(wm)||{},r=e.validationBehavior??n??`native`,i=(0,v.useContext)(r_),a=st((0,v.useMemo)(()=>We(t,e.inputRef===void 0?null:e.inputRef),[t,e.inputRef])),o={...to(e),children:typeof e.children==`function`||e.children,value:e.value,validationBehavior:r};return[i?$g(o,i,a):Qg(o,zg(e),a),a]}var c_=(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)(a_),{isFocused:p,isFocusVisible:m,focusProps:h}=Zs(),g=a||o,{hoverProps:_,isHovered:y}=rc({...e,isDisabled:g}),b=G({...e,defaultClassName:u,values:{isSelected:i,isIndeterminate:d||!1,isPressed:s,isHovered:y,isFocused:p,isFocusVisible:m,isDisabled:a,isReadOnly:o,isInvalid:c,isRequired:f||!1}}),x=V(e,{global:!0});return delete x.id,delete x.onClick,v.createElement(K.label,{...B(x,n,_,b),ref:t,slot:e.slot||void 0,"data-selected":i||void 0,"data-indeterminate":d||void 0,"data-pressed":s||void 0,"data-hovered":y||void 0,"data-focused":p||void 0,"data-focus-visible":m||void 0,"data-disabled":a||void 0,"data-readonly":o||void 0,"data-invalid":c||void 0,"data-required":f||void 0},v.createElement(id,{elementType:`span`},v.createElement(`input`,{...B(r,h),ref:l})),b.children)}),l_=(0,v.createContext)({}),u_=({children:e,className:t,variant:n,...r})=>{let i=v.useMemo(()=>Ta({variant:n}),[n]);return(0,H.jsx)(l_.Provider,{value:{variant:n},children:(0,H.jsx)(i_,{className:J(t,i),"data-slot":`checkbox-group`,...r,children:t=>(0,H.jsx)(H.Fragment,{children:typeof e==`function`?e(t):e})})})},d_=(0,v.createContext)({}),f_=({children:e,className:t,variant:n,...r})=>{let i=(0,v.use)(l_),a=n??i.variant,o=v.useMemo(()=>Ea({variant:a}),[a]);return(0,H.jsx)(o_,{"data-slot":`checkbox`,...r,className:J(t,o.base()),children:t=>(0,H.jsx)(d_,{value:{slots:o,state:t},children:typeof e==`function`?e(t):e})})};f_.displayName=`HeroUI.Checkbox`;var p_=({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(d_);return(0,H.jsx)(c_,{"data-slot":`checkbox-content`,...n,className:J(t,r?.content()),children:t=>(0,H.jsx)(co,{value:{elementType:`span`},children:typeof e==`function`?e(t):e})})};p_.displayName=`HeroUI.Checkbox.Content`;var m_=({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(d_);return(0,H.jsx)(on.span,{className:Y(r?.control,t),"data-slot":`checkbox-control`,...n,children:e})};m_.displayName=`HeroUI.Checkbox.Control`;var h_=({children:e,className:t,...n})=>{let{slots:r,state:i}=(0,v.use)(d_),a=i?.isSelected,o=i?.isIndeterminate,s=typeof e==`function`?e(i??{}):e||(o?(0,H.jsx)(`svg`,{"aria-hidden":`true`,"data-slot":`checkbox-default-indicator--indeterminate`,fill:`none`,role:`presentation`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:3,viewBox:`0 0 24 24`,children:(0,H.jsx)(`line`,{x1:`21`,x2:`3`,y1:`12`,y2:`12`})}):(0,H.jsx)(`svg`,{"aria-hidden":`true`,"data-slot":`checkbox-default-indicator--checkmark`,fill:`none`,role:`presentation`,stroke:`currentColor`,strokeDasharray:22,strokeDashoffset:a?44:66,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,viewBox:`0 0 17 18`,children:(0,H.jsx)(`polyline`,{points:`1 9 7 14 15 4`})}));return(0,H.jsx)(on.span,{"aria-hidden":`true`,className:Y(r?.indicator,t),"data-slot":`checkbox-indicator`,...n,children:s})};h_.displayName=`HeroUI.Checkbox.Indicator`;var g_=Object.assign(f_,{Root:f_,Content:p_,Control:m_,Indicator:h_}),__=(0,v.createContext)({}),v_=({children:e,className:t,color:n,size:r,variant:i,...a})=>{let o=v.useMemo(()=>Da({color:n,size:r,variant:i}),[n,r,i]),s=v.useMemo(()=>typeof e==`string`||typeof e==`number`?(0,H.jsx)(y_,{children:e}):e,[e]);return(0,H.jsx)(__,{value:{slots:o},children:(0,H.jsx)(on.span,{...a,className:Y(o.base,t),"data-slot":`chip`,children:s})})},y_=({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(__);return(0,H.jsx)(on.span,{className:Y(r?.label,t),"data-slot":`chip-label`,...n,children:e})},b_=Object.assign(v_,{Root:v_,Label:y_});function x_(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=(0,v.useRef)({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:a,removeGlobalListener:o}=at(),s=lt((0,v.useCallback)((e,r,a,o)=>{a===0&&o===0||(i.current.didMove||(i.current.didMove=!0,t?.({type:`movestart`,pointerType:r,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})),n?.({type:`move`,pointerType:r,deltaX:a,deltaY:o,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))},[t,n,i])),c=lt((0,v.useCallback)((e,t)=>{Ps(),i.current.didMove&&r?.({type:`moveend`,pointerType:t,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})},[r,i]));return{moveProps:(0,v.useMemo)(()=>{let e={},t=()=>{Ns(),i.current.didMove=!1};{let n=e=>{if(e.pointerId===i.current.id){let t=e.pointerType||`mouse`;s(e,t,e.pageX-(i.current.lastPosition?.pageX??0),e.pageY-(i.current.lastPosition?.pageY??0)),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY}}},r=e=>{if(e.pointerId===i.current.id){let t=e.pointerType||`mouse`;c(e,t),i.current.id=null;let a=ke(z(e));o(a,`pointermove`,n,!1),o(a,`pointerup`,r,!1),o(a,`pointercancel`,r,!1)}};e.onPointerDown=e=>{if(e.button===0&&i.current.id==null){t(),e.stopPropagation(),e.preventDefault(),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY},i.current.id=e.pointerId;let o=ke(z(e));a(o,`pointermove`,n,!1),a(o,`pointerup`,r,!1),a(o,`pointercancel`,r,!1)}}}let n=(e,n,r)=>{t(),s(e,`keyboard`,n,r),c(e,`keyboard`)};return e.onKeyDown=e=>{switch(e.key){case`Left`:case`ArrowLeft`:e.preventDefault(),e.stopPropagation(),n(e,-1,0);break;case`Right`:case`ArrowRight`:e.preventDefault(),e.stopPropagation(),n(e,1,0);break;case`Up`:case`ArrowUp`:e.preventDefault(),e.stopPropagation(),n(e,0,-1);break;case`Down`:case`ArrowDown`:e.preventDefault(),e.stopPropagation(),n(e,0,1);break}},e},[a,o,i])}}var S_=(0,v.createContext)({}),C_=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...i}=e;return i},w_=oo(function(e,t){[e,t]=$a(e,t,S_);let{hoverProps:n,isHovered:r}=rc({...e,isDisabled:e.disabled}),{isFocused:i,isFocusVisible:a,focusProps:o}=Zs({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e[`aria-invalid`]&&e[`aria-invalid`]!==`false`,c=G({...e,values:{isHovered:r,isFocused:i,isFocusVisible:a,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:`react-aria-Input`});return v.createElement(K.input,{...B(C_(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 T_(e,t){let{inputElementType:n=`input`,isDisabled:r=!1,isRequired:i=!1,isReadOnly:a=!1,type:o=`text`,validationBehavior:s=`aria`}=e,[c,l]=uc(e.value,e.defaultValue||``,e.onChange),{focusableProps:u}=ks(e,t),d=_m({...e,value:c}),{isInvalid:f,validationErrors:p,validationDetails:m}=d.displayValidation,{labelProps:h,fieldProps:g,descriptionProps:_,errorMessageProps:y}=Nh({...e,isInvalid:f,errorMessage:e.errorMessage||p}),b=V(e,{labelable:!0}),x={type:o,pattern:e.pattern},[S]=(0,v.useState)(c);return Mt(t,e.defaultValue??S,l),Ih(e,d,t),{labelProps:h,inputProps:B(b,n===`input`?x:void 0,{disabled:r,readOnly:a,required:i&&s===`native`,"aria-required":i&&s===`aria`||void 0,"aria-invalid":f||void 0,"aria-errormessage":e[`aria-errormessage`],"aria-activedescendant":e[`aria-activedescendant`],"aria-autocomplete":e[`aria-autocomplete`],"aria-haspopup":e[`aria-haspopup`],"aria-controls":e[`aria-controls`],value:c,onChange:e=>l(z(e).value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,enterKeyHint:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...u,...g}),descriptionProps:_,errorMessageProps:y,isInvalid:f,validationErrors:p,validationDetails:m}}var E_=new WeakMap;function D_(e,t){let n=E_.get(e);if(!n)throw Error(`Unknown slider state`);return`${n.id}-${t}`}function O_(e,t,n){let{labelProps:r,fieldProps:i}=uo(e),a=e.orientation===`vertical`;E_.set(t,{id:r.id??i.id,"aria-describedby":e[`aria-describedby`],"aria-details":e[`aria-details`]});let{direction:o}=So(),{addGlobalListener:s,removeGlobalListener:c}=at(),l=(0,v.useRef)(null),u=o===`rtl`,d=(0,v.useRef)(null),{moveProps:f}=x_({onMoveStart(){d.current=null},onMove({deltaX:e,deltaY:r}){if(!n.current)return;let{height:i,width:o}=n.current.getBoundingClientRect(),s=a?i:o;d.current==null&&l.current!=null&&(d.current=t.getThumbPercent(l.current)*s);let c=a?r:e;if((a||u)&&(c=-c),d.current+=c,l.current!=null&&n.current){let e=Qt(d.current/s,0,1);t.setThumbPercent(l.current,e)}},onMoveEnd(){l.current!=null&&(t.setThumbDragging(l.current,!1),l.current=null)}}),p=(0,v.useRef)(void 0),m=(r,i,c,u)=>{if(n.current&&!e.isDisabled&&t.values.every((e,n)=>!t.isThumbDragging(n))){let{height:e,width:d,top:f,left:m}=n.current.getBoundingClientRect(),g=a?e:d,_=((a?u:c)-(a?f:m))/g;(o===`rtl`||a)&&(_=1-_);let v=t.getPercentValue(_),y,b=t.values.findIndex(e=>v-e<0);if(b===0)y=b;else if(b===-1)y=t.values.length-1;else{let e=t.values[b-1],n=t.values[b];y=Math.abs(e-v)<Math.abs(n-v)?b-1:b}y>=0&&t.isThumbEditable(y)?(r.preventDefault(),l.current=y,t.setFocusedThumb(y),p.current=i,t.setThumbDragging(l.current,!0),t.setThumbValue(y,v),s(window,`mouseup`,h,!1),s(window,`touchend`,h,!1),s(window,`pointerup`,h,!1)):l.current=null}},h=e=>{(e.pointerId??e.changedTouches?.[0].identifier)===p.current&&(l.current!=null&&(t.setThumbDragging(l.current,!1),l.current=null),c(window,`mouseup`,h,!1),c(window,`touchend`,h,!1),c(window,`pointerup`,h,!1))};return`htmlFor`in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{document.getElementById(D_(t,0))?.focus(),as(`keyboard`)}),{labelProps:r,groupProps:{role:`group`,...i},trackProps:B({onMouseDown(e){e.button!==0||e.altKey||e.ctrlKey||e.metaKey||m(e,void 0,e.clientX,e.clientY)},onPointerDown(e){e.pointerType===`mouse`&&(e.button!==0||e.altKey||e.ctrlKey||e.metaKey)||m(e,e.pointerId,e.clientX,e.clientY)},onTouchStart(e){m(e,e.changedTouches[0].identifier,e.changedTouches[0].clientX,e.changedTouches[0].clientY)},style:{position:`relative`,touchAction:`none`}},f),outputProps:{htmlFor:t.values.map((e,n)=>D_(t,n)).join(` `),"aria-live":`off`}}}function k_(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:a,trackRef:o,inputRef:s,orientation:c=t.orientation,name:l,form:u}=e,d=e.isDisabled||t.isDisabled,f=c===`vertical`,{direction:p}=So(),{addGlobalListener:m,removeGlobalListener:h}=at(),g=E_.get(t),{labelProps:_,fieldProps:y}=uo({...e,id:D_(t,n),"aria-labelledby":`${g.id} ${e[`aria-labelledby`]??``}`.trim()}),b=t.values[n],x=(0,v.useCallback)(()=>{s.current&&P(s.current)},[s]),S=t.focusedThumb===n;(0,v.useEffect)(()=>{S&&x()},[S,x]);let C=p===`rtl`,w=(0,v.useRef)(null),T=e=>{t.setThumbDragging(n,!0),e(),t.setThumbDragging(n,!1)},{keyboardProps:E}=Ts({shortcuts:{PageUp:()=>T(()=>{t.incrementThumb(n,t.pageSize)}),PageDown:()=>T(()=>{t.decrementThumb(n,t.pageSize)}),Home:()=>T(()=>{t.setThumbValue(n,t.getThumbMinValue(n))}),End:()=>T(()=>{t.setThumbValue(n,t.getThumbMaxValue(n))})},allowRepeats:!0}),{moveProps:D}=x_({onMoveStart(){w.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:e,deltaY:r,pointerType:i,shiftKey:a}){let{getThumbPercent:s,setThumbPercent:c,decrementThumb:l,incrementThumb:u,step:d,pageSize:p}=t;if(!o.current)return;let{width:m,height:h}=o.current.getBoundingClientRect(),g=f?h:m;if(w.current??=s(n)*g,i===`keyboard`)e>0&&C||e<0&&!C||r>0?l(n,a?p:d):u(n,a?p:d);else{let t=f?r:e;(f||C)&&(t=-t),w.current+=t,c(n,Qt(w.current/g,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!d);let{focusableProps:O}=ks(B(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),s),k=(0,v.useRef)(void 0),A=e=>{x(),k.current=e,t.setThumbDragging(n,!0),m(window,`mouseup`,j,!1),m(window,`touchend`,j,!1),m(window,`pointerup`,j,!1)},j=e=>{(e.pointerId??e.changedTouches?.[0].identifier)===k.current&&(x(),t.setThumbDragging(n,!1),h(window,`mouseup`,j,!1),h(window,`touchend`,j,!1),h(window,`pointerup`,j,!1))},M=t.getThumbPercent(n);(f||p===`rtl`)&&(M=1-M);let N=d?{}:B(E,D,{onMouseDown:e=>{e.button!==0||e.altKey||e.ctrlKey||e.metaKey||A()},onPointerDown:e=>{e.button!==0||e.altKey||e.ctrlKey||e.metaKey||A(e.pointerId)},onTouchStart:e=>{A(e.changedTouches[0].identifier)}});return Mt(s,t.defaultValues[n],e=>{t.setThumbValue(n,e)}),{inputProps:B(O,y,{type:`range`,tabIndex:d?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:b,name:l,form:u,disabled:d,"aria-orientation":c,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":a||i===`invalid`||void 0,"aria-errormessage":e[`aria-errormessage`],"aria-describedby":[g[`aria-describedby`],e[`aria-describedby`]].filter(Boolean).join(` `),"aria-details":[g[`aria-details`],e[`aria-details`]].filter(Boolean).join(` `),onChange:e=>{t.setThumbValue(n,parseFloat(z(e).value))}}),thumbProps:{...N,style:{position:`absolute`,[f?`top`:`left`]:`${M*100}%`,transform:`translate(-50%, -50%)`,touchAction:`none`}},labelProps:_,isDragging:t.isThumbDragging(n),isDisabled:d,isFocused:S}}var A_=0,j_=100,M_=1;function N_(e){let{isDisabled:t=!1,minValue:n=A_,maxValue:r=j_,numberFormatter:i,step:a=M_,orientation:o=`horizontal`}=e,s=(0,v.useMemo)(()=>{let e=(r-n)/10;return e=en(e,0,e+a,a),Math.max(e,a)},[a,r,n]),c=(0,v.useCallback)(e=>e?.map((t,i)=>en(t,i===0?n:e[i-1],i===e.length-1?r:e[i+1],a)),[n,r,a]),l=(0,v.useMemo)(()=>c(F_(e.value)),[e.value,c]),u=(0,v.useMemo)(()=>c(F_(e.defaultValue)??[n]),[e.defaultValue,n,c]),d=I_(e.value,e.defaultValue,e.onChange),f=I_(e.value,e.defaultValue,e.onChangeEnd),[p,m]=uc(l,u,d),[h]=(0,v.useState)(p),[g,_]=(0,v.useState)(Array(p.length).fill(!1)),y=(0,v.useRef)(Array(p.length).fill(!0)),[b,x]=(0,v.useState)(void 0),S=(0,v.useRef)(p),C=(0,v.useRef)(g),w=e=>{S.current=e,m(e)},T=e=>{C.current=e,_(e)};function E(e){return(e-n)/(r-n)}function D(e){return e===0?n:p[e-1]}function O(e){return e===p.length-1?r:p[e+1]}function k(e){return y.current[e]}function A(e,t){y.current[e]=t}function j(e,n){if(t||!k(e))return;let r=D(e),i=O(e);n=en(n,r,i,a);let o=P_(S.current,e,n);w(o)}function M(e,n){if(t||!k(e))return;n&&(S.current=p);let r=C.current[e];C.current=P_(C.current,e,n),T(C.current),f&&r&&!C.current.some(Boolean)&&f(S.current)}let N=(0,v.useRef)(null);function P(e=p){switch(typeof e==`number`&&(e=[e]),e.length){case 0:return``;case 1:return i.format(e[0]);case 2:return i.formatRange(e[0],e[1]);default:{let t=e.map(e=>i.format(e)),n=N.current;return(!n||n.resolvedOptions().locale!==i.resolvedOptions().locale)&&(n=N.current=new Intl.ListFormat(i.resolvedOptions().locale,{type:`unit`})),n.format(t)}}}function F(e,t){j(e,ee(t))}function I(e){return Math.round((e-n)/a)*a+n}function ee(e){return Qt(I(e*(r-n)+n),n,r)}function te(e,t=1){let i=Math.max(t,a);j(e,en(p[e]+i,n,r,a))}function ne(e,t=1){let i=Math.max(t,a);j(e,en(p[e]-i,n,r,a))}return{values:p,defaultValues:e.defaultValue===void 0?h:u,getThumbValue:e=>p[e],setThumbValue:j,setThumbPercent:F,isThumbDragging:e=>g[e],setThumbDragging:M,focusedThumb:b,setFocusedThumb:x,getThumbPercent:e=>E(p[e]),getValuePercent:E,getThumbValueLabel:e=>P(p[e]),getFormattedValue:P,getThumbMinValue:D,getThumbMaxValue:O,getPercentValue:ee,isThumbEditable:k,setThumbEditable:A,incrementThumb:te,decrementThumb:ne,step:a,pageSize:s,orientation:o,isDisabled:t}}function P_(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function F_(e){if(e!=null)return Array.isArray(e)?e:[e]}function I_(e,t,n){return r=>{typeof e==`number`||typeof t==`number`?n?.(r[0]):n?.(r)}}var L_=(0,v.createContext)(null),R_=(0,v.createContext)(null),z_=(0,v.createContext)(null),B_=(0,v.createContext)(null),V_=(0,v.forwardRef)(function(e,t){[e,t]=$a(e,t,L_);let n=(0,v.useRef)(null),r=Ao(e.formatOptions),i=N_({...e,numberFormatter:r}),[a,o]=eo(!e[`aria-label`]&&!e[`aria-labelledby`]),{groupProps:s,trackProps:c,labelProps:l,outputProps:u}=O_({...e,label:o},i,n),d=G({...e,values:{orientation:i.orientation,isDisabled:i.isDisabled,state:i},defaultClassName:`react-aria-Slider`}),f=V(e,{global:!0});return delete f.id,v.createElement(Xa,{values:[[R_,i],[z_,{...c,ref:n}],[B_,u],[co,{...l,ref:a}]]},v.createElement(K.div,{...B(f,d,s),ref:t,slot:e.slot||void 0,"data-orientation":i.orientation,"data-disabled":i.isDisabled||void 0}))}),H_=(0,v.forwardRef)(function(e,t){[e,t]=$a(e,t,B_);let{children:n,style:r,className:i,render:a,...o}=e,s=(0,v.useContext)(R_),c=G({className:i,style:r,children:n,render:a,defaultChildren:s.getFormattedValue(),defaultClassName:`react-aria-SliderOutput`,values:{orientation:s.orientation,isDisabled:s.isDisabled,state:s}});return v.createElement(K.output,{...o,...c,ref:t,"data-orientation":s.orientation||void 0,"data-disabled":s.isDisabled||void 0})}),U_=(0,v.forwardRef)(function(e,t){[e,t]=$a(e,t,z_);let n=(0,v.useContext)(R_),{onHoverStart:r,onHoverEnd:i,onHoverChange:a,...o}=e,{hoverProps:s,isHovered:c}=rc({onHoverStart:r,onHoverEnd:i,onHoverChange:a}),l=G({...e,defaultClassName:`react-aria-SliderTrack`,values:{orientation:n.orientation,isDisabled:n.isDisabled,isHovered:c,state:n}});return v.createElement(K.div,{...B(o,s),...l,ref:t,"data-hovered":c||void 0,"data-orientation":n.orientation||void 0,"data-disabled":n.isDisabled||void 0})}),W_=(0,v.forwardRef)(function(e,t){let{inputRef:n=null}=e,r=(0,v.useContext)(R_),{ref:i}=Qa(z_),{index:a=0}=e,o=(0,v.useRef)(null),s=n||o,[c,l]=eo(!e[`aria-label`]&&!e[`aria-labelledby`]),{thumbProps:u,inputProps:d,labelProps:f,isDragging:p,isFocused:m,isDisabled:h}=k_({...e,index:a,trackRef:i,inputRef:s,label:l},r),{focusProps:g,isFocusVisible:_}=Zs(),{hoverProps:y,isHovered:b}=rc(e),x=G({...e,defaultClassName:`react-aria-SliderThumb`,values:{state:r,isHovered:b,isDragging:p,isFocused:m,isFocusVisible:_,isDisabled:h}}),S=V(e,{global:!0});return delete S.id,v.createElement(K.div,{...B(S,u,y),...x,ref:t,style:{...u.style,...x.style},"data-hovered":b||void 0,"data-dragging":p||void 0,"data-focused":m||void 0,"data-focus-visible":_||void 0,"data-disabled":h||void 0},v.createElement(id,null,v.createElement(`input`,{ref:s,...B(d,g)})),v.createElement(Xa,{values:[[co,{...f,ref:c}]]},x.children))});function G_(e,t){let n=t?.isDisabled,[r,i]=(0,v.useState)(!1);return L(()=>{if(e?.current&&!n){let t=()=>{if(e.current){let t=Wl(e.current,{tabbable:!0});i(!!t.nextNode())}};t();let n=new MutationObserver(t);return n.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:[`tabIndex`,`disabled`]}),()=>{n.disconnect()}}}),!n&&r}var K_=1500,q_=500,J_={},Y_=0,X_=!1,Z_=null,Q_=null;function $_(e={}){let{delay:t=K_,closeDelay:n=q_}=e,{isOpen:r,open:i,close:a}=md(e),[o,s]=(0,v.useState)(!1),c=(0,v.useMemo)(()=>`${++Y_}`,[]),l=(0,v.useRef)(null),u=(0,v.useRef)(a),d=()=>{J_[c]=m},f=()=>{for(let e in J_)e!==c&&(J_[e](!0,!0),delete J_[e])},p=e=>{l.current&&clearTimeout(l.current),l.current=null,f(),d(),s(!!e),X_=!0,i(),Z_&&=(clearTimeout(Z_),null),Q_&&=(clearTimeout(Q_),null)},m=(e,t)=>{s(!!t),e||n<=0?(l.current&&clearTimeout(l.current),l.current=null,u.current()):l.current||=setTimeout(()=>{l.current=null,u.current()},n),Z_&&=(clearTimeout(Z_),null),X_&&(Q_&&clearTimeout(Q_),Q_=setTimeout(()=>{delete J_[c],Q_=null,X_=!1},Math.max(q_,n)))},h=()=>{f(),d(),!r&&!X_?(Z_&&clearTimeout(Z_),Z_=setTimeout(()=>{Z_=null,X_=!0,p(!1)},t)):r||p(!0)};return(0,v.useEffect)(()=>{u.current=a},[a]),(0,v.useEffect)(()=>()=>{l.current&&clearTimeout(l.current),J_[c]&&delete J_[c]},[c]),{isOpen:r,shouldSkipAnimation:o,open:e=>{!e&&t>0&&!l.current?h():p(X_)},close:m}}function ev(e,t,n){let{labelProps:r,inputProps:i,isSelected:a,...o}=Zg(e,t,n);return{labelProps:r,inputProps:{...i,role:`switch`,checked:a},isSelected:a,...o}}var tv=(0,v.createContext)(null),nv=(0,v.createContext)(null),rv=(0,v.createContext)(null),iv=(0,v.forwardRef)(function(e,t){let{inputRef:n=null,...r}=e;[e,t]=$a(r,t,tv);let{validationBehavior:i}=Qa(wm)||{},a=e.validationBehavior??i??`native`,o=st((0,v.useMemo)(()=>We(n,e.inputRef===void 0?null:e.inputRef),[n,e.inputRef])),s=zg(e),c=ev({...to(e),children:typeof e.children==`function`||e.children,validationBehavior:a},s,o),{descriptionProps:l,errorMessageProps:u,isSelected:d,isDisabled:f,isReadOnly:p,isInvalid:m,validationDetails:h,validationErrors:g}=c,_=G({...e,defaultClassName:`react-aria-SwitchField`,values:{isSelected:d,isDisabled:f,isReadOnly:p,isInvalid:m,isRequired:e.isRequired||!1,state:s}}),y=V(e,{global:!0});return delete y.id,delete y.onClick,v.createElement(K.div,{...B(y,_),ref:t,slot:e.slot||void 0,"data-selected":d||void 0,"data-disabled":f||void 0,"data-readonly":p||void 0,"data-invalid":m||void 0,"data-required":e.isRequired||void 0},v.createElement(Xa,{values:[[nv,s],[rv,{...c,inputRef:o,defaultClassName:`react-aria-SwitchButton`,isRequired:e.isRequired}],[yf,{slots:{description:l,errorMessage:u}}],[lm,{isInvalid:m,validationDetails:h,validationErrors:g}]]},_.children))}),av=(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)(rv),{isFocused:f,isFocusVisible:p,focusProps:m}=Zs(),h=a||o,g=(0,v.useContext)(nv),{hoverProps:_,isHovered:y}=rc({...e,isDisabled:h}),b=G({...e,defaultClassName:u,values:{isSelected:i,isPressed:s,isHovered:y,isFocused:f,isFocusVisible:p,isDisabled:a,isReadOnly:o,isInvalid:c,isRequired:d||!1,state:g}}),x=V(e,{global:!0});return delete x.id,delete x.onClick,v.createElement(K.label,{...B(x,n,_,b),ref:t,slot:e.slot||void 0,"data-selected":i||void 0,"data-pressed":s||void 0,"data-hovered":y||void 0,"data-focused":f||void 0,"data-focus-visible":p||void 0,"data-disabled":a||void 0,"data-readonly":o||void 0,"data-invalid":c||void 0,"data-required":d||void 0},v.createElement(id,{elementType:`span`},v.createElement(`input`,{...B(r,m),ref:l})),b.children)}),ov=new WeakMap;function sv(e,t,n){return e?(typeof t==`string`&&(t=t.replace(/\s+/g,``)),`${ov.get(e)}-${n}-${t}`):``}function cv(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}=Sp({selectionManager:o,key:r,ref:n,isDisabled:l,shouldSelectOnPressUp:a??u?.props.href!=null,linkBehavior:`selection`}),p=sv(t,r,`tab`),m=sv(t,r,`tabpanel`),{tabIndex:h}=d,g=V(u?.props,{labelable:!0});delete g.id;let _=se(u?.props),{focusableProps:v}=ks({...u?.props,isDisabled:l},n);return{tabProps:B(g,v,_,d,{id:p,"aria-selected":c,"aria-disabled":l||void 0,"aria-controls":c?m:void 0,tabIndex:l?void 0:h,role:`tab`}),isSelected:c,isDisabled:l,isPressed:f}}function lv(e,t,n){let r=G_(n)?void 0:0,i=sv(t,e.id??t?.selectedKey,`tabpanel`);return{tabPanelProps:B(ot({...e,id:i,"aria-labelledby":sv(t,t?.selectedKey,`tab`)}),{tabIndex:r,role:`tabpanel`,"aria-describedby":e[`aria-describedby`],"aria-details":e[`aria-details`]})}}var uv=class{constructor(e,t,n,r=new Set){this.collection=e,this.flipDirection=t===`rtl`,this.disabledKeys=r,this.tabDirection=n===`horizontal`}getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){return this.disabledKeys.has(e)||!!this.collection.getItem(e)?.props?.isDisabled}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let t=e;do t=this.collection.getKeyAfter(t),t??=this.collection.getFirstKey();while(t!=null&&this.isDisabled(t)&&t!==e);return t}getPreviousKey(e){let t=e;do t=this.collection.getKeyBefore(t),t??=this.collection.getLastKey();while(t!=null&&this.isDisabled(t)&&t!==e);return t}};function dv(e,t,n){let{orientation:r=`horizontal`,keyboardActivation:i=`automatic`}=e,{collection:a,selectionManager:o,disabledKeys:s}=t,{direction:c}=So(),{collectionProps:l}=gp({ref:n,selectionManager:o,keyboardDelegate:(0,v.useMemo)(()=>new uv(a,c,r,s),[a,s,r,c]),selectOnFocus:i===`automatic`,disallowEmptySelection:!0,scrollRef:n,linkBehavior:`selection`}),u=we();return ov.set(t,u),{tabListProps:{...B(l,ot({...e,id:u})),role:`tablist`,"aria-orientation":r,tabIndex:void 0}}}function fv(e){let[t,n]=uc(e.selectedKey,e.defaultSelectedKey??null,e.onSelectionChange),r=(0,v.useMemo)(()=>t==null?[]:[t],[t]),{collection:i,disabledKeys:a,selectionManager:o}=yh({...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 pv(e){let t=fv({...e,onSelectionChange:e.onSelectionChange?t=>{t!=null&&e.onSelectionChange?.(t)}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:e.defaultSelectedKey??mv(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=mv(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 mv(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 hv=(0,v.createContext)(null),gv=(0,v.createContext)(null),_v=(0,v.forwardRef)(function(e,t){[e,t]=$a(e,t,hv);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(Id,{content:n},n=>v.createElement(vv,{props:e,collection:n,tabsRef:t}))});function vv({props:e,tabsRef:t,collection:n}){let{orientation:r=`horizontal`}=e,i=pv({...e,collection:n,children:void 0}),{focusProps:a,isFocused:o,isFocusVisible:s}=Zs({within:!0}),c=(0,v.useMemo)(()=>({orientation:r,isFocusWithin:o,isFocusVisible:s}),[r,o,s]),l=G({...e,defaultClassName:`react-aria-Tabs`,values:c}),u=V(e,{global:!0});return v.createElement(K.div,{...B(u,l,a),ref:t,slot:e.slot||void 0,"data-focused":o||void 0,"data-orientation":r,"data-focus-visible":s||void 0,"data-disabled":i.isDisabled||void 0},v.createElement(Xa,{values:[[hv,e],[gv,i]]},l.children))}var yv=(0,v.forwardRef)(function(e,t){return(0,v.useContext)(gv)?v.createElement(bv,{props:e,forwardedRef:t}):v.createElement(Jd,e)});function bv({props:e,forwardedRef:t}){let n=(0,v.useContext)(gv),{CollectionRoot:r}=(0,v.useContext)(ef),{orientation:i=`horizontal`,keyboardActivation:a=`automatic`}=Qa(hv),o=st(t),{tabListProps:s}=dv({...e,orientation:i,keyboardActivation:a},n,o),c=G({...e,children:null,defaultClassName:`react-aria-TabList`,values:{orientation:i,state:n}}),l=V(e,{global:!0});return delete l.id,v.createElement(K.div,{...B(l,c,s),ref:o,"data-orientation":i||void 0},v.createElement(ff,null,v.createElement(r,{collection:n.collection,persistedKeys:tf(n.selectionManager.focusedKey)})))}var xv=Wd(class extends yd{static{this.type=`item`}},(e,t,n)=>{let r=(0,v.useContext)(gv),i=st(t),{tabProps:a,isSelected:o,isDisabled:s,isPressed:c}=cv({key:n.key,...e},r,i),{focusProps:l,isFocused:u,isFocusVisible:d}=Zs(),{hoverProps:f,isHovered:p}=rc({isDisabled:s,onHoverStart:e.onHoverStart,onHoverEnd:e.onHoverEnd,onHoverChange:e.onHoverChange}),m=G({...e,id:void 0,children:n.rendered,defaultClassName:`react-aria-Tab`,values:{isSelected:o,isDisabled:s,isFocused:u,isFocusVisible:d,isPressed:c,isHovered:p}}),h=n.props.href?K.a:K.div,g=V(e,{global:!0});return delete g.id,delete g.onClick,v.createElement(h,{...B(g,m,a,l,f),ref:i,"data-selected":o||void 0,"data-disabled":s||void 0,"data-focused":u||void 0,"data-focus-visible":d||void 0,"data-pressed":c||void 0,"data-hovered":p||void 0},v.createElement(mf.Provider,{value:{isSelected:o}},m.children))}),Sv=oo(function(e,t){let n=(0,v.useContext)(gv),r=st(t),i=n.selectedKey===e.id,[a,o]=(0,v.useState)(n.selectedKey==null?null:i);a==null&&n.selectedKey!=null?o(i):!i&&a&&o(!1);let s=Lt(r,i);return!i&&!e.shouldForceMount&&!s?null:v.createElement(Cv,{...e,tabPanelRef:r,isInitiallySelected:a||!1,isExiting:s})});function Cv(e){let t=(0,v.useContext)(gv),{id:n,tabPanelRef:r,isInitiallySelected:i,isExiting:a,...o}=e,{tabPanelProps:s}=lv(e,t,r),{focusProps:c,isFocused:l,isFocusVisible:u}=Zs(),d=t.selectedKey===e.id,f=It(r)&&!i,p=G({...e,defaultClassName:`react-aria-TabPanel`,values:{isFocused:l,isFocusVisible:u,isInert:Pt(!d),isEntering:f,isExiting:a,state:t}}),m=V(o,{global:!0});delete m.id;let h=d?B(m,s,c,p):B(m,p);return v.createElement(K.div,{...h,ref:r,"data-focused":l||void 0,"data-focus-visible":u||void 0,inert:Pt(!d||e.inert),"data-inert":d?void 0:`true`,"data-entering":f||void 0,"data-exiting":a||void 0},v.createElement(Xa,{values:[[hv,null],[gv,null]]},v.createElement(ef.Provider,{value:Zd},p.children)))}var wv=(0,v.createContext)({}),Tv=(0,v.createContext)(null),Ev=oo(function(e,t){[e,t]=$a(e,t,Tv);let{validationBehavior:n}=Qa(wm)||{},r=e.validationBehavior??n??`native`,i=(0,v.useRef)(null);[e,i]=$a(e,i,cf);let[a,o]=eo(!e[`aria-label`]&&!e[`aria-labelledby`]),[s,c]=(0,v.useState)(`input`),{labelProps:l,inputProps:u,descriptionProps:d,errorMessageProps:f,...p}=T_({...to(e),inputElementType:s,label:o,validationBehavior:r},i),m=(0,v.useCallback)(e=>{i.current=e,e&&c(e instanceof HTMLTextAreaElement?`textarea`:`input`)},[i]),h=G({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:p.isInvalid,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:`react-aria-TextField`}),g=V(e,{global:!0});return delete g.id,v.createElement(K.div,{...g,...h,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":p.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},v.createElement(Xa,{values:[[co,{...l,ref:a}],[S_,{...u,ref:m}],[wv,{...u,ref:m}],[sm,{role:`presentation`,isInvalid:p.isInvalid,isDisabled:e.isDisabled||!1}],[yf,{slots:{description:d,errorMessage:f}}],[lm,p]]},h.children))}),Dv={};Dv={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 Ov={};Ov={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 kv={};kv={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 Av={};Av={close:`Luk`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} besked`,other:()=>`${t.number(e.count)} beskeder`})}.`};var jv={};jv={close:`Schließen`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} Benachrichtigung`,other:()=>`${t.number(e.count)} Benachrichtigungen`})}.`};var Mv={};Mv={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 Nv={};Nv={close:`Close`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notification`,other:()=>`${t.number(e.count)} notifications`})}.`};var Pv={};Pv={close:`Cerrar`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notificaci\xf3n`,other:()=>`${t.number(e.count)} notificaciones`})}.`};var Fv={};Fv={close:`Sule`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} teatis`,other:()=>`${t.number(e.count)} teatist`})}.`};var Iv={};Iv={close:`Sulje`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ilmoitus`,other:()=>`${t.number(e.count)} ilmoitusta`})}.`};var Lv={};Lv={close:`Fermer`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notification`,other:()=>`${t.number(e.count)} notifications`})}.`};var Rv={};Rv={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 zv={};zv={close:`Zatvori`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} obavijest`,other:()=>`${t.number(e.count)} obavijesti`})}.`};var Bv={};Bv={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 Vv={};Vv={close:`Chiudi`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notifica`,other:()=>`${t.number(e.count)} notifiche`})}.`};var Hv={};Hv={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 Uv={};Uv={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 Wv={};Wv={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 Gv={};Gv={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 Kv={};Kv={close:`Lukk`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} varsling`,other:()=>`${t.number(e.count)} varsler`})}.`};var qv={};qv={close:`Sluiten`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} melding`,other:()=>`${t.number(e.count)} meldingen`})}.`};var Jv={};Jv={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 Yv={};Yv={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 Xv={};Xv={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 Zv={};Zv={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 Qv={};Qv={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 $v={};$v={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 ey={};ey={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 ty={};ty={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 ny={};ny={close:`Stäng`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} meddelande`,other:()=>`${t.number(e.count)} meddelanden`})}.`};var ry={};ry={close:`Kapat`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} bildirim`,other:()=>`${t.number(e.count)} bildirim`})}.`};var iy={};iy={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 ay={};ay={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 oy={};oy={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 sy={};sy={"ar-AE":Dv,"bg-BG":Ov,"cs-CZ":kv,"da-DK":Av,"de-DE":jv,"el-GR":Mv,"en-US":Nv,"es-ES":Pv,"et-EE":Fv,"fi-FI":Iv,"fr-FR":Lv,"he-IL":Rv,"hr-HR":zv,"hu-HU":Bv,"it-IT":Vv,"ja-JP":Hv,"ko-KR":Uv,"lt-LT":Wv,"lv-LV":Gv,"nb-NO":Kv,"nl-NL":qv,"pl-PL":Jv,"pt-BR":Yv,"pt-PT":Xv,"ro-RO":Zv,"ru-RU":Qv,"sk-SK":$v,"sl-SI":ey,"sr-SP":ty,"sv-SE":ny,"tr-TR":ry,"uk-UA":iy,"zh-CN":ay,"zh-TW":oy};function cy(e){return e&&e.__esModule?e.default:e}function ly(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=td(cy(sy),`@react-aria/toast`),[l,u]=(0,v.useState)(!1);return L(()=>{u(!0)},[]),{toastProps:{...V(e,{labelable:!0}),role:`alertdialog`,"aria-modal":`false`,"aria-labelledby":e[`aria-labelledby`]||o,"aria-describedby":e[`aria-describedby`]||s,tabIndex:0},contentProps:{role:`alert`,"aria-atomic":`true`,"aria-hidden":l?void 0:`true`},titleProps:{id:o},descriptionProps:{id:s},closeButtonProps:{"aria-label":c.format(`close`),onPress:()=>t.close(r)}}}var uy=1,dy=Symbol.for(`react-aria-landmark-manager`);function fy(e){return document.addEventListener(`react-aria-landmark-manager-change`,e),()=>document.removeEventListener(`react-aria-landmark-manager-change`,e)}function py(){if(typeof document>`u`)return null;let e=document[dy];return e&&e.version>=uy?e:(document[dy]=new hy,document.dispatchEvent(new CustomEvent(`react-aria-landmark-manager-change`)),document[dy])}function my(){return(0,Nd.useSyncExternalStore)(fy,py,py)}var hy=class{constructor(){this.landmarks=[],this.isListening=!1,this.refCount=0,this.version=uy,this.f6Handler=this.f6Handler.bind(this),this.focusinHandler=this.focusinHandler.bind(this),this.focusoutHandler=this.focusoutHandler.bind(this)}setupIfNeeded(){this.isListening||=(document.addEventListener(`keydown`,this.f6Handler,{capture:!0}),document.addEventListener(`focusin`,this.focusinHandler,{capture:!0}),document.addEventListener(`focusout`,this.focusoutHandler,{capture:!0}),!0)}teardownIfNeeded(){!this.isListening||this.landmarks.length>0||this.refCount>0||(document.removeEventListener(`keydown`,this.f6Handler,{capture:!0}),document.removeEventListener(`focusin`,this.focusinHandler,{capture:!0}),document.removeEventListener(`focusout`,this.focusoutHandler,{capture:!0}),this.isListening=!1)}focusLandmark(e,t){this.landmarks.find(t=>t.ref.current===e)?.focus?.(t)}getLandmarksByRole(e){return new Set(this.landmarks.filter(t=>t.role===e))}getLandmarkByRole(e){return this.landmarks.find(t=>t.role===e)}addLandmark(e){if(this.setupIfNeeded(),this.landmarks.find(t=>t.ref===e.ref)||!e.ref.current)return;if(this.landmarks.filter(e=>e.role===`main`).length,this.landmarks.length===0){this.landmarks=[e],this.checkLabels(e.role);return}let t=0,n=this.landmarks.length-1;for(;t<=n;){let r=Math.floor((t+n)/2),i=e.ref.current.compareDocumentPosition(this.landmarks[r].ref.current);i&Node.DOCUMENT_POSITION_PRECEDING||i&Node.DOCUMENT_POSITION_CONTAINS?t=r+1:n=r-1}this.landmarks.splice(t,0,e),this.checkLabels(e.role)}updateLandmark(e){let t=this.landmarks.findIndex(t=>t.ref===e.ref);t>=0&&(this.landmarks[t]={...this.landmarks[t],...e},this.checkLabels(this.landmarks[t].role))}removeLandmark(e){this.landmarks=this.landmarks.filter(t=>t.ref!==e),this.teardownIfNeeded()}checkLabels(e){let t=this.getLandmarksByRole(e);t.size>1&&[...t].filter(e=>!e.label).length}closestLandmark(e){let t=new Map(this.landmarks.map(e=>[e.ref.current,e])),n=e;for(;n&&!t.has(n)&&n!==document.body&&n.parentElement;)n=n.parentElement;return t.get(n)}getNextLandmark(e,{backward:t}){let n=this.closestLandmark(e),r=t?this.landmarks.length-1:0;n&&(r=this.landmarks.indexOf(n)+(t?-1:1));let i=()=>{if(r<0){if(!e.dispatchEvent(new CustomEvent(`react-aria-landmark-navigation`,{detail:{direction:`backward`},bubbles:!0,cancelable:!0})))return!0;r=this.landmarks.length-1}else if(r>=this.landmarks.length){if(!e.dispatchEvent(new CustomEvent(`react-aria-landmark-navigation`,{detail:{direction:`forward`},bubbles:!0,cancelable:!0})))return!0;r=0}return r<0||r>=this.landmarks.length};if(i())return;let a=r;for(;this.landmarks[r].ref.current?.closest(`[aria-hidden=true]`);){if(r+=t?-1:1,i())return;if(r===a)break}return this.landmarks[r]}f6Handler(e){e.key===`F6`&&(e.altKey?this.focusMain():this.navigate(z(e),e.shiftKey))&&(e.preventDefault(),e.stopPropagation())}focusMain(){let e=this.getLandmarkByRole(`main`);return e&&e.ref.current&&e.ref.current.isConnected?(this.focusLandmark(e.ref.current,`forward`),!0):!1}navigate(e,t){let n=this.getNextLandmark(e,{backward:t});if(!n)return!1;if(n.lastFocused){let e=n.lastFocused;if(Re(document.body,e))return e.focus(),!0}return n.ref.current&&n.ref.current.isConnected?(this.focusLandmark(n.ref.current,t?`backward`:`forward`),!0):!1}focusinHandler(e){let t=this.closestLandmark(z(e));t&&t.ref.current!==z(e)&&this.updateLandmark({ref:t.ref,lastFocused:z(e)});let n=e.relatedTarget;if(n){let e=this.closestLandmark(n);e&&e.ref.current===n&&e.blur()}}focusoutHandler(e){let t=z(e),n=e.relatedTarget;if(!n||n===document){let e=this.closestLandmark(t);e&&e.ref.current===t&&e.blur()}}createLandmarkController(){let e=this;return e.refCount++,e.setupIfNeeded(),{navigate(t,n){let r=n?.from||document.activeElement;return e.navigate(r,t===`backward`)},focusNext(t){let n=t?.from||document.activeElement;return e.navigate(n,!1)},focusPrevious(t){let n=t?.from||document.activeElement;return e.navigate(n,!0)},focusMain(){return e.focusMain()},dispose(){e&&=(e.refCount--,e.teardownIfNeeded(),null)}}}registerLandmark(e){return this.landmarks.find(t=>t.ref===e.ref)?this.updateLandmark(e):this.addLandmark(e),()=>this.removeLandmark(e.ref)}};function gy(e,t){let{role:n,"aria-label":r,"aria-labelledby":i,focus:a}=e,o=my(),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 _y(e){return e&&e.__esModule?e.default:e}function vy(e,t,n){let r=td(_y(sy),`@react-aria/toast`),{landmarkProps:i}=gy({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}=rc({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(is()===`pointer`&&f.current?.isConnected)P(f.current);else{let t=0,n,i;for(;t<=r;)e[t].isRemoved||(i=Math.max(0,t-1)),t++;for(;t<e.length;){if(!e[t].isRemoved){n=t-1;break}t++}i===void 0&&n===void 0&&(i=0),i>=0&&i<l.current.length?P(l.current[i]):n>=0&&n<l.current.length&&P(l.current[n])}u.current=t.visibleToasts},[t.visibleToasts,n]);let f=(0,v.useRef)(null),{focusWithinProps:p}=Xs({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&&(is()===`pointer`?P(f.current):f.current.focus(),f.current=null)},[n,t.visibleToasts.length]),(0,v.useEffect)(()=>()=>{f.current?.isConnected&&(is()===`pointer`?P(f.current):f.current.focus(),f.current=null)},[n]),{regionProps:B(i,c,p,{tabIndex:-1,"data-react-aria-top-layer":!0,onFocus:e=>{let t=z(e).closest(`[role="alertdialog"]`);d.current=l.current.findIndex(e=>e===t)},onBlur:()=>{d.current=-1}})}}function yy(e){let t=(0,v.useCallback)(t=>e.subscribe(t),[e]),n=(0,v.useCallback)(()=>e.visibleToasts,[e]);return{visibleToasts:(0,Nd.useSyncExternalStore)(t,n,n),add:(t,n)=>e.add(t,n),close:t=>e.close(t),pauseAll:()=>e.pauseAll(),resumeAll:()=>e.resumeAll()}}var by=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 xy(()=>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`)}},xy=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))}},Sy=(0,v.createContext)(null),Cy=(0,v.forwardRef)(function(e,t){let n=ve(),r=yy(e.queue),i=st(t),{regionProps:a}=vy(e,r,i),{focusProps:o,isFocused:s,isFocusVisible:c}=Zs(),{hoverProps:l,isHovered:u}=rc({}),d=G({...e,children:void 0,defaultClassName:`react-aria-ToastRegion`,values:{visibleToasts:r.visibleToasts,isHovered:u,isFocused:s,isFocusVisible:c}}),{direction:f}=So(),p,{getContainer:m}=ud();n||(p=document.body,m&&(p=m()));let h=V(e,{global:!0}),g=v.createElement(Sy.Provider,{value:r},v.createElement(K.div,{...B(h,d,a,o,l),dir:f,ref:i,"data-hovered":u||void 0,"data-focused":s||void 0,"data-focus-visible":c||void 0},typeof e.children==`function`?v.createElement(wy,{...e,render:void 0,className:void 0,style:{display:`contents`}},e.children):e.children));return r.visibleToasts.length>0&&p?(0,Ft.createPortal)(g,p):null}),wy=(0,v.forwardRef)(function(e,t){let n=(0,v.useContext)(Sy),{hoverProps:r,isHovered:i}=rc({}),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}))))}),Ty=(0,v.forwardRef)(function(e,t){let n=(0,v.useContext)(Sy),r=st(t),{toastProps:i,contentProps:a,titleProps:o,descriptionProps:s,closeButtonProps:c}=ly(e,n,r),{focusProps:l,isFocused:u,isFocusVisible:d}=Zs(),f=G({...e,defaultClassName:`react-aria-Toast`,values:{toast:e.toast,isFocused:u,isFocusVisible:d}}),p=V(e,{global:!0});return v.createElement(K.div,{...B(p,f,i,l),ref:r,"data-focused":u||void 0,"data-focus-visible":d||void 0},v.createElement(Xa,{values:[[Ey,a],[yf,{slots:{[Ya]:{},title:o,description:s}}],[ic,{slots:{[Ya]:{},close:c}}]]},f.children))}),Ey=(0,v.createContext)({}),Dy=(0,v.forwardRef)(function(e,t){return[e,t]=$a(e,t,Ey),v.createElement(K.div,{render:e.render,className:`react-aria-ToastContent`,...e,ref:t},e.children)}),Oy=v.createContext(null);function ky(e){let{children:t}=e,n=(0,v.useContext)(Oy),[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(Oy.Provider,{value:a},t)}function Ay(){let e=(0,v.useContext)(Oy);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function jy(e){let{modalProviderProps:t}=Ay();return v.createElement(`div`,{"data-overlay-container":!0,...e,...t})}function My(e){return v.createElement(ky,null,v.createElement(jy,e))}function Ny(e){let t=ve(),{portalContainer:n=t?null:document.body,...r}=e,{getContainer:i}=ud();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(My,r);return Ft.createPortal(a,n)}function Py(e,t){let n=V(e,{labelable:!0}),{hoverProps:r}=rc({onHoverStart:()=>t?.open(!0),onHoverEnd:()=>t?.close()});return{tooltipProps:B(n,r,{role:`tooltip`})}}function Fy(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`&&(is()===`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=()=>{rs()&&(c.current=!0,l())},h=()=>{c.current=!1,s.current=!1,u(!0)},{hoverProps:g}=rc({isDisabled:r,onHoverStart:d,onHoverEnd:f}),{focusableProps:_}=ks({isDisabled:r,onFocus:m,onBlur:h},n);return{triggerProps:{"aria-describedby":t.isOpen?o:void 0,...B(_,g,{onPointerDown:p,onKeyDown:p}),tabIndex:void 0},tooltipProps:{id:o}}}var Iy=(0,v.createContext)(null),Ly=(0,v.createContext)(null);function Ry(e){let t=$_(e),n=(0,v.useRef)(null),{triggerProps:r,tooltipProps:i}=Fy(e,t,n);return v.createElement(Xa,{values:[[Iy,t],[Ly,{...i,triggerRef:n}]]},v.createElement(Os,{...r,ref:n},e.children))}var zy=(0,v.forwardRef)(function({UNSTABLE_portalContainer:e,...t},n){[t,n]=$a(t,n,Ly);let r=(0,v.useContext)(Iy),i=$_(t),a=t.isOpen!=null||t.defaultOpen!=null||!r?i:r,o=Lt(n,a.isOpen),s=t.isExiting||!a.shouldSkipAnimation&&o||!1;return!a.isOpen&&!s?null:v.createElement(Ny,{portalContainer:e},v.createElement(By,{...t,tooltipRef:n,isExiting:s}))});function By(e){let t=(0,v.useContext)(Iy),n=(0,v.useRef)(null),{overlayProps:r,arrowProps:i,placement:a,triggerAnchorPoint:o}=vl({placement:e.placement||`top`,targetRef:e.triggerRef,overlayRef:e.tooltipRef,arrowRef:n,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,containerPadding:e.containerPadding,onClose:()=>t.close(!0)}),s=It(e.tooltipRef,!!a),c=e.isEntering||!t.shouldSkipAnimation&&s||!1,l=G({...e,defaultClassName:`react-aria-Tooltip`,values:{placement:a,isEntering:c,isExiting:e.isExiting,state:t}});e=B(e,r);let{tooltipProps:u}=Py(e,t),d=V(e,{global:!0});return v.createElement(K.div,{...B(d,l,u),ref:e.tooltipRef,style:{...r.style,"--trigger-anchor-point":o?`${o.x}px ${o.y}px`:void 0,...l.style},"data-placement":a??void 0,"data-entering":c||void 0,"data-exiting":e.isExiting||void 0},v.createElement(zc.Provider,{value:{...i,placement:a,ref:n}},l.children))}var Vy={blue:`\x1B[34m`,green:`\x1B[32m`,magenta:`\x1B[35m`,red:`\x1B[31m`,reset:`\x1B[0m`,yellow:`\x1B[33m`},Hy={debug:Vy.magenta,error:Vy.red,info:Vy.blue,success:Vy.green,warn:Vy.yellow},Uy={debug:`🔍`,error:`❌`,info:`ℹ️`,success:`✅`,warn:`⚠️`},Wy=new class{constructor(e={}){this.enabled=e.enabled??!0,this.prefix=e.prefix??`HeroUI`}formatMessage(e,t){let n=Hy[e],r=Uy[e];return`${n}[${this.prefix}]${Vy.reset} ${r} ${t}`}log(e,t,...n){if(!this.enabled)return;let r=this.formatMessage(e,t);switch(e){case`error`:console.error(r,...n);break;case`warn`:console.warn(r,...n);break;default:console.log(r,...n)}}info(e,...t){this.log(`info`,e,...t)}success(e,...t){this.log(`success`,e,...t)}warn(e,...t){this.log(`warn`,e,...t)}error(e,...t){this.log(`error`,e,...t)}debug(e,...t){this.log(`debug`,e,...t)}divider(e=`=`,t=80){this.enabled&&console.log(e.repeat(t))}newline(){this.enabled&&console.log()}}({prefix:`HeroUI`}),Gy,Ky=typeof process<`u`&&!1,qy=e=>{Ky&&(Gy??=new Set,Gy.has(e)&&Wy.warn(`Duplicate collection slot "${e}". Use a unique, namespaced name (e.g. "tabs.listContainer", "menu.popover").`),Gy.add(e));let t=`$$heroui.collection.${e}`,n=(0,v.createContext)(void 0),r=(e,n)=>v.Children.map(e,e=>(0,v.isValidElement)(e)?v.cloneElement(e,{[t]:n}):e),i=e=>{let{[t]:n,...r}=e;return[n,r]},a=e=>{let[t,r]=i(e),a=(0,v.useContext)(n);return[t??a,r]},o=({children:e,...t})=>(0,H.jsx)(n.Provider,{value:t,children:r(e,t)});return o.displayName=`HeroUI.CollectionSlot(${e})`,{key:t,inject:r,consume:i,useSlot:a,Injector:o,withSlot:(t,n)=>{let r=(0,v.forwardRef)(function(r,i){let[o,s]=a(r),{children:c,...l}=s;if(!o)return(0,H.jsx)(t,{...l,ref:i,children:c});if(n)return n({...l,children:c},o,i);let{className:u,render:d,...f}=o;return(0,H.jsx)(t,{...l,ref:i,children:d?d({children:c,className:u,...f}):(0,H.jsx)(`div`,{className:u,"data-slot":`${e}-container`,...f,children:c})})});return r.displayName=`HeroUI.withCollectionSlot(${t.displayName||t.name||e})`,r},Context:n}},Jy=(0,v.createContext)({});qy(`combo-box.inputGroup`);var Yy=2**53-1,Xy=.05,Zy=4e3,Qy=[`altKey`,`KeyT`],$y=({children:e,className:t,...n})=>eg(`description`)?(0,H.jsx)(bf,{className:ka({className:t}),"data-slot":`description`,slot:`description`,...n,children:e}):null,eb=Object.assign($y,{Root:$y}),tb=(e,t)=>e.closest(`[data-slot="drawer-dialog"]`)===t,nb=8,rb=.3,ib=.5;function ab(e,t){let n=(0,v.use)(qp),r=(0,v.useRef)(null),i=(0,v.useRef)(!1),a=(0,v.useRef)(!1),o=(0,v.useRef)(0),s=(0,v.useRef)(0),c=(0,v.useRef)(0),l=(0,v.useRef)(0),u=(0,v.useRef)(0),d=e===`top`||e===`bottom`,f=(0,v.useCallback)(e=>d?e.clientY:e.clientX,[d]),p=(0,v.useCallback)(t=>{switch(e){case`bottom`:return Math.max(0,t);case`top`:return Math.min(0,t);case`right`:return Math.max(0,t);case`left`:return Math.min(0,t);default:return t}},[e]),m=(0,v.useCallback)(e=>{if(!t||e.button!==0)return;let n=e.target,r=e.currentTarget;tb(n,r)&&(n.closest(`input, textarea, button, [role='button'], select, a, [data-slot='drawer-body']`)||(i.current=!0,a.current=!1,o.current=f(e),u.current=o.current,l.current=Date.now(),s.current=0,c.current=0))},[f,t]),h=(0,v.useCallback)(e=>{if(!i.current||!r.current)return;let t=f(e),n=t-o.current,m=p(n);if(!a.current){if(Math.abs(n)<nb)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*rb||u>ib)&&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 ob=(0,v.createContext)({}),sb=({children:e,state:t,...n})=>{let r=(0,v.useMemo)(()=>({slots:Aa(),placement:void 0,isDismissable:!0}),[]),i=(0,v.useMemo)(()=>t?{isOpen:t.isOpen,onOpenChange:t.setOpen}:{},[t]);return(0,H.jsx)(ob,{value:r,children:(0,H.jsx)(Jp,{"data-slot":`drawer-root`,...B(n,i),children:e})})};sb.displayName=`HeroUI.Drawer`;var cb=({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(ob);return(0,H.jsx)(ac,{className:J(t,r?.trigger()),"data-slot":`drawer-trigger`,...n,children:e})};cb.displayName=`HeroUI.Drawer.Trigger`;var lb=({children:e,className:t,isDismissable:n=!0,variant:r,...i})=>{let{slots:a}=(0,v.use)(ob),o=(0,v.useMemo)(()=>Aa({variant:r}),[r]),s=(0,v.useMemo)(()=>({slots:{...a,...o},isDismissable:n}),[a,o,n]);return(0,H.jsx)(tm,{className:J(t,o?.backdrop()),"data-slot":`drawer-backdrop`,isDismissable:n,...i,children:t=>(0,H.jsx)(ob,{value:s,children:typeof e==`function`?e(t):e})})};lb.displayName=`HeroUI.Drawer.Backdrop`;var ub=({children:e,className:t,placement:n=`bottom`,...r})=>{let{isDismissable:i,slots:a}=(0,v.use)(ob),o=(0,v.useMemo)(()=>Aa({placement:n}),[n]),s=(0,v.useMemo)(()=>({placement:n,isDismissable:i,slots:{...a,...o}}),[a,n,i,o]);return(0,H.jsx)($p,{className:J(t,o?.content()),"data-placement":n,"data-slot":`drawer-content`,...r,children:t=>(0,H.jsx)(ob,{value:s,children:typeof e==`function`?e(t):e})})};ub.displayName=`HeroUI.Drawer.Content`;var db=({children:e,className:t,...n})=>{let{isDismissable:r=!0,placement:i,slots:a}=(0,v.use)(ob),{dialogRef:o,dragHandlers:s}=ab(i,r);return(0,H.jsx)(Pc,{value:{variant:`default`},children:(0,H.jsx)(Yp,{ref:o,className:Y(a?.dialog,t),"data-placement":i,"data-slot":`drawer-dialog`,style:r?{touchAction:`none`}:void 0,...s,...n,children:e})})};db.displayName=`HeroUI.Drawer.Dialog`;var fb=({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(ob);return(0,H.jsx)(on.div,{className:Y(r?.header,t),"data-slot":`drawer-header`,...n,children:e})};fb.displayName=`HeroUI.Drawer.Header`;var pb=({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(ob);return(0,H.jsx)(on.div,{className:Y(r?.body,t),"data-slot":`drawer-body`,style:{touchAction:`pan-y`},...n,children:e})};pb.displayName=`HeroUI.Drawer.Body`;var mb=({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(ob);return(0,H.jsx)(on.div,{className:Y(r?.footer,t),"data-slot":`drawer-footer`,...n,children:e})};mb.displayName=`HeroUI.Drawer.Footer`;var hb=({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(ob);return(0,H.jsx)(xc,{className:Y(r?.heading,t),"data-slot":`drawer-heading`,slot:`title`,...n,children:e})};hb.displayName=`HeroUI.Drawer.Heading`;var gb=({className:e,...t})=>{let{slots:n}=(0,v.use)(ob);return(0,H.jsx)(on.div,{"aria-hidden":`true`,className:Y(n?.handle,e),"data-slot":`drawer-handle`,...t,children:(0,H.jsx)(`div`,{"data-slot":`drawer-handle-bar`})})};gb.displayName=`HeroUI.Drawer.Handle`;var _b=({className:e,...t})=>{let{slots:n}=(0,v.use)(ob);return(0,H.jsx)(om,{className:J(e,n?.closeTrigger()),"data-slot":`drawer-close-trigger`,slot:`close`,...t})};_b.displayName=`HeroUI.Drawer.CloseTrigger`;var vb=Object.assign(sb,{Root:sb,Trigger:cb,Backdrop:lb,Content:ub,Dialog:db,Header:fb,Heading:hb,Body:pb,Footer:mb,Handle:gb,CloseTrigger:_b}),yb=({children:e,className:t,...n})=>(0,H.jsx)(um,{"data-visible":!0,className:J(t,ja()),"data-slot":`field-error`,...n,children:t=>typeof e==`function`?e(t):e}),bb=Object.assign(yb,{Root:yb}),xb=({...e})=>(0,H.jsx)(Tm,{...e}),Sb=Object.assign(xb,{Root:xb}),Cb=(0,v.createContext)({}),wb=({children:e,className:t,fullWidth:n,variant:r,...i})=>{let a=v.useMemo(()=>Ka({fullWidth:n}),[n]);return(0,H.jsx)(Ev,{"data-slot":`textfield`,...i,className:J(t,a),children:t=>(0,H.jsx)(Cb,{value:{variant:r},children:(0,H.jsx)(H.Fragment,{children:typeof e==`function`?e(t):e})})})},Tb=({className:e,fullWidth:t,variant:n,...r})=>{let i=(0,v.use)(Cb),a=(0,v.use)(Jy);return(0,H.jsx)(w_,{className:J(e,Ma({fullWidth:t,variant:n??i.variant??a.variant})),"data-slot":`input`,...r})},Eb=Object.assign(Tb,{Root:Tb}),Db=({children:e,className:t,isDisabled:n,isInvalid:r,isRequired:i,...a})=>(0,H.jsx)(lo,{className:Na({isRequired:i,isDisabled:n,isInvalid:r,className:t}),"data-slot":`label`,...a,children:e}),Ob=Object.assign(Db,{Root:Db}),kb=(0,v.createContext)({}),Ab=({children:e,className:t,variant:n,...r})=>{let i=v.useMemo(()=>Pa({variant:n}),[n]);return(0,H.jsx)(kh,{className:J(t,i.item()),"data-slot":`list-box-item`,...r,children:t=>(0,H.jsx)(kb,{value:{slots:i,state:t},children:typeof e==`function`?e(t):e})})},jb=({children:e,className:t,...n})=>{let{slots:r,state:i}=(0,v.use)(kb),a=i?.isSelected,o=typeof e==`function`?e(i??{}):e||(0,H.jsx)(`svg`,{"aria-hidden":`true`,"data-slot":`list-box-item-indicator--checkmark`,fill:`none`,role:`presentation`,stroke:`currentColor`,strokeDasharray:22,strokeDashoffset:a?44:66,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,viewBox:`0 0 17 18`,children:(0,H.jsx)(`polyline`,{points:`1 9 7 14 15 4`})});return(0,H.jsx)(on.span,{"aria-hidden":`true`,className:Y(r?.indicator,t),"data-slot":`list-box-item-indicator`,"data-visible":a||void 0,...n,children:o})},Mb=Object.assign(Ab,{Root:Ab,Indicator:jb}),Nb=({children:e,className:t,...n})=>(0,H.jsx)(Oh,{className:v.useMemo(()=>Fa({class:typeof t==`string`?t:void 0}),[t]),...n,children:e});function Pb({className:e,variant:t,...n}){return(0,H.jsx)(wh,{className:J(e,v.useMemo(()=>Ia({variant:t}),[t])),"data-slot":`list-box`,...n})}var Fb=Object.assign(Pb,{Root:Pb,Item:Mb,ItemIndicator:jb,Section:Nb}),Ib=(0,v.createContext)({}),Lb=({children:e,state:t,...n})=>{let r=(0,v.useMemo)(()=>({slots:La(),placement:void 0}),[]),i=(0,v.useMemo)(()=>t?{isOpen:t.isOpen,onOpenChange:t.setOpen}:{},[t]);return(0,H.jsx)(Ib,{value:r,children:(0,H.jsx)(Jp,{"data-slot":`modal-root`,...B(n,i),children:e})})},Rb=Object.assign(Lb,{Root:Lb,Trigger:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(Ib);return(0,H.jsx)(im,{children:(0,H.jsx)(on.div,{className:Y(r?.trigger,t),"data-slot":`modal-trigger`,role:`button`,...n,children:e})})},Backdrop:({children:e,className:t,isDismissable:n=!0,onClick:r,variant:i,...a})=>{let{slots:o}=(0,v.use)(Ib),s=(0,v.useMemo)(()=>La({variant:i}),[i]),c=(0,v.useMemo)(()=>({slots:{...o,...s}}),[o,s]);return(0,H.jsx)(tm,{className:J(t,s?.backdrop()),"data-slot":`modal-backdrop`,isDismissable:n,onClick:e=>{e.stopPropagation(),r?.(e)},...a,children:t=>(0,H.jsxs)(Ib,{value:c,children:[typeof e==`function`?e(t):e,` `]})})},Container:({children:e,className:t,placement:n=`auto`,scroll:r,size:i,...a})=>{let{slots:o}=(0,v.use)(Ib),s=(0,v.useMemo)(()=>La({scroll:r,size:i}),[r,i]),c=(0,v.useMemo)(()=>({placement:n,slots:{...o,...s}}),[o,n,s]);return(0,H.jsx)($p,{className:J(t,s?.container()),"data-placement":n,"data-slot":`modal-container`,...a,children:t=>(0,H.jsx)(Ib,{value:c,children:typeof e==`function`?e(t):e})})},Dialog:({children:e,className:t,...n})=>{let{placement:r,slots:i}=(0,v.use)(Ib);return(0,H.jsx)(Pc,{value:{variant:`default`},children:(0,H.jsx)(Yp,{className:Y(i?.dialog,t),"data-placement":r,"data-slot":`modal-dialog`,...n,children:e})})},Header:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(Ib);return(0,H.jsx)(on.div,{className:Y(r?.header,t),"data-slot":`modal-header`,...n,children:e})},Icon:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(Ib);return(0,H.jsx)(on.div,{className:Y(r?.icon,t),"data-slot":`modal-icon`,...n,children:e})},Heading:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(Ib);return(0,H.jsx)(xc,{className:Y(r?.heading,t),"data-slot":`modal-heading`,slot:`title`,...n,children:e})},Body:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(Ib);return(0,H.jsx)(on.div,{className:Y(r?.body,t),"data-slot":`modal-body`,...n,children:e})},Footer:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(Ib);return(0,H.jsx)(on.div,{className:Y(r?.footer,t),"data-slot":`modal-footer`,...n,children:e})},CloseTrigger:({className:e,...t})=>{let{slots:n}=(0,v.use)(Ib);return(0,H.jsx)(om,{className:J(e,n?.closeTrigger()),"data-slot":`modal-close-trigger`,slot:`close`,...t})}}),zb=(0,v.createContext)({}),Bb=({children:e,...t})=>{let n=v.useMemo(()=>Ra(),[]);return(0,H.jsx)(zb,{value:{slots:n},children:(0,H.jsx)(Jp,{"data-slot":`popover-root`,...t,children:e})})},Vb=Object.assign(Bb,{Root:Bb,Trigger:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(zb);return(0,H.jsx)(im,{children:(0,H.jsx)(on.div,{className:Y(r?.trigger,t),"data-slot":`popover-trigger`,role:`button`,...n,children:e})})},Dialog:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(zb);return(0,H.jsx)(Yp,{"data-slot":`popover-dialog`,...n,className:Y(r?.dialog,t),children:e})},Arrow:({children:e,className:t,...n})=>{let r=(0,H.jsx)(`svg`,{"data-slot":`popover-overlay-arrow`,fill:`none`,height:`12`,viewBox:`0 0 12 12`,width:`12`,xmlns:`http://www.w3.org/2000/svg`,children:(0,H.jsx)(`path`,{d:`M0 0C5.48483 8 6.5 8 12 0Z`})}),i=v.isValidElement(e)?v.cloneElement(e,{"data-slot":`popover-overlay-arrow`}):r;return(0,H.jsx)(Bc,{"data-slot":`popover-overlay-arrow-group`,...n,className:t,children:i})},Content:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(zb);return(0,H.jsx)(zb,{value:{slots:r},children:(0,H.jsx)(Pc,{value:{variant:`default`},children:(0,H.jsx)(_d,{...n,className:J(t,r?.base()),children:e})})})},Heading:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(zb);return(0,H.jsx)(xc,{slot:`title`,...n,className:Y(r?.heading,t),children:e})}}),Hb=globalThis?.document?v.useLayoutEffect:v.useEffect,Ub=e=>{let{containerRef:t,isEnabled:n,offset:r,onVisibilityChange:i,orientation:a,visibility:o}=e,s=(0,v.useRef)(i);(0,v.useEffect)(()=>{s.current=i},[i]);let c=(0,v.useRef)(null),l=(0,v.useRef)(null),u=(0,v.useCallback)(()=>{let e=t.current;if(!e)return;let n=a===`vertical`,i=n?e.scrollTop:Math.abs(e.scrollLeft),o=n?e.scrollHeight:e.scrollWidth,u=n?e.clientHeight:e.clientWidth,d=i>r,f=i+u+r<o-1,p=c.current;p&&p.hasScrollBefore===d&&p.hasScrollAfter===f||(c.current={hasScrollBefore:d,hasScrollAfter:f},l.current!==null&&cancelAnimationFrame(l.current),l.current=requestAnimationFrame(()=>{l.current=null;let t=s.current;n?d&&f?(e.dataset.topBottomScroll=`true`,delete e.dataset.topScroll,delete e.dataset.bottomScroll,t?.(`both`)):(e.dataset.topScroll=String(d),e.dataset.bottomScroll=String(f),delete e.dataset.topBottomScroll,t&&t(d?`top`:f?`bottom`:`none`)):d&&f?(e.dataset.leftRightScroll=`true`,delete e.dataset.leftScroll,delete e.dataset.rightScroll,t?.(`both`)):(e.dataset.leftScroll=String(d),e.dataset.rightScroll=String(f),delete e.dataset.leftRightScroll,t&&t(d?`left`:f?`right`:`none`))}))},[t,a,r]);(0,v.useEffect)(()=>{let e=t.current;if(!e||!n||o!==`auto`)return;u(),e.addEventListener(`scroll`,u,{passive:!0});let r=new ResizeObserver(u);r.observe(e);let i=new MutationObserver(u);return i.observe(e,{attributeFilter:[`class`,`style`],attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>{e.removeEventListener(`scroll`,u),r.disconnect(),i.disconnect(),l.current!==null&&(cancelAnimationFrame(l.current),l.current=null),c.current=null}},[t,o,n,u])},Wb=({children:e,className:t,hideScrollBar:n=!1,isEnabled:r=!0,offset:i=0,onVisibilityChange:a,orientation:o=`vertical`,ref:s,size:c=40,style:l,variant:u=`fade`,visibility:d=`auto`,...f})=>{let p=(0,v.useRef)(null);Ub({containerRef:p,isEnabled:r,offset:i,onVisibilityChange:a,orientation:o,visibility:d}),Hb(()=>{let e=p.current;!e||d===`auto`||(delete e.dataset.topScroll,delete e.dataset.bottomScroll,delete e.dataset.topBottomScroll,delete e.dataset.leftScroll,delete e.dataset.rightScroll,delete e.dataset.leftRightScroll,d===`both`?e.dataset[o===`vertical`?`topBottomScroll`:`leftRightScroll`]=`true`:d!==`none`&&(e.dataset[`${d}Scroll`]=`true`))},[d,o]);let m=(0,v.useMemo)(()=>za({hideScrollBar:n,orientation:o,variant:u}),[o,n,u]),h={"--scroll-shadow-size":`${c}px`,"--scroll-shadow-offset":`${i}px`,...l};return(0,H.jsx)(`div`,{ref:We(p,s),className:m.base({className:t}),"data-orientation":o,"data-scroll-shadow-mode":r&&d===`auto`?`auto`:`manual`,"data-scroll-shadow-size":c,"data-slot":`scroll-shadow`,style:h,...f,children:e})};Wb.displayName=`HeroUI.ScrollShadow`;var Gb=Object.assign(Wb,{Root:Wb}),Kb=(0,v.createContext)({}),qb=(0,v.createContext)({}),Jb=e=>(e?.selectionManager.selectedKeys.size??0)===0,Yb=(e,t)=>{e?.selectionManager.setSelectedKeys(new Set),t?.()},Xb=({children:e,className:t,fullWidth:n,isDisabled:r,onClear:i,variant:a,...o})=>{let s=v.useMemo(()=>Ba({fullWidth:n,variant:a}),[n,a]),c=v.useRef(0),l=v.useCallback(()=>(c.current+=1,()=>{--c.current}),[]),u=v.useCallback(()=>c.current>0,[]),d=v.useMemo(()=>({hasClearButton:u,isDisabled:r,onClear:i,registerClearButton:l,slots:s}),[u,r,i,l,s]);return(0,H.jsx)(tg,{children:(0,H.jsx)(Kb,{value:d,children:(0,H.jsx)(Jh,{"data-slot":`select`,...o,className:J(t,s?.base()),isDisabled:r,children:t=>(0,H.jsx)(H.Fragment,{children:typeof e==`function`?e(t):e})})})})},Zb=Object.assign(Xb,{Root:Xb,Trigger:({children:e,className:t,onKeyDown:n,...r})=>{let{hasClearButton:i,onClear:a,slots:o}=(0,v.use)(Kb),s=(0,v.use)(qh),c=e=>{n?.(e);let t=e.key===`Backspace`||e.key===`Delete`,r=!!i?.()&&!Jb(s);if(!t||!r||s?.isOpen){e.continuePropagation();return}e.preventDefault(),Yb(s,a)};return(0,H.jsx)(ac,{className:J(t,o?.trigger()),"data-slot":`select-trigger`,...r,onKeyDown:c,children:t=>(0,H.jsx)(qb,{value:{isDisabled:t.isDisabled},children:typeof e==`function`?e(t):e})})},Value:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(Kb);return(0,H.jsx)(Qh,{className:J(t,r?.value()),"data-slot":`select-value`,...n,children:e})},Indicator:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(Kb),i=(0,v.use)(qh);return e&&v.isValidElement(e)?v.cloneElement(e,{...n,className:Y(r?.indicator,t),"data-slot":`select-indicator`,"data-open":Sc(i?.isOpen)}):(0,H.jsx)(Cc,{className:Y(r?.indicator,t),"data-open":Sc(i?.isOpen),"data-slot":`select-default-indicator`,...n})},ClearButton:({children:e,className:t,onClick:n,onPointerDown:r,...i})=>{let{isDisabled:a,onClear:o,registerClearButton:s,slots:c}=(0,v.use)(Kb),{isDisabled:l}=(0,v.use)(qb),u=(0,v.use)(qh),d=l??a??!1,f=Jb(u);v.useEffect(()=>s?.(),[s]);let p=e=>{e.stopPropagation(),r?.(e)},m=e=>{e.preventDefault(),e.stopPropagation(),!d&&!f&&Yb(u,o),n?.(e)};return(0,H.jsx)(on.span,{"aria-hidden":!0,className:c?.clearButton({className:t}),"data-empty":Sc(f),"data-slot":`select-clear-button`,...i,onClick:m,onPointerDown:p,children:e??(0,H.jsx)(Dc,{"data-slot":`select-clear-button-icon`})})},Popover:({children:e,className:t,placement:n=`bottom`,...r})=>{let{slots:i}=(0,v.use)(Kb);return(0,H.jsx)(Pc,{value:{variant:`default`},children:(0,H.jsx)(_d,{...r,className:J(t,i?.popover()),"data-slot":`select-popover`,placement:n,children:e})})}}),Qb=new Map;function $b(e,t,n=!0){let r=ve();return v.useMemo(()=>{if(t!==void 0)return t;if(!r){if(n&&Qb.has(e))return Qb.get(e);try{let t=document.documentElement,r=getComputedStyle(t).getPropertyValue(e).trim()||void 0;return n&&Qb.set(e,r),r}catch{return}}},[e,t,r,n])}var ex=(0,v.createContext)({}),tx=({children:e,className:t,orientation:n=`horizontal`,...r})=>{let i=v.useMemo(()=>Va({}),[]);return(0,H.jsx)(V_,{"data-slot":`slider`,orientation:n,...r,className:J(t,i.base()),children:t=>(0,H.jsx)(ex,{value:{slots:i,state:t},children:typeof e==`function`?e(t):e})})},nx=Object.assign(tx,{Root:tx,Output:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(ex);return(0,H.jsx)(H_,{className:J(t,r?.output()),"data-slot":`slider-output`,...n,children:e?t=>(0,H.jsx)(H.Fragment,{children:typeof e==`function`?e(t):e}):({state:e})=>e.values.map((t,n)=>e.getThumbValueLabel(n)).join(` – `)})},Track:({children:e,className:t,...n})=>{let{slots:r,state:i}=(0,v.use)(ex),{getThumbPercent:a,values:o}=i?.state||{},s=o?.length&&o.length===1,[c,l]=[o?.length&&o.length>1?a?.(0):0,a?.(o?.length?o.length-1:0)].sort(),u=(l-c)*100;return(0,H.jsx)(U_,{className:J(t,r?.track()),"data-disabled":Sc(i?.isDisabled),"data-slot":`slider-track`,...s?{"data-fill-start":Sc(u>0),"data-fill-end":Sc(u==100)}:{"data-fill-start":Sc(c==0),"data-fill-end":Sc(c*100+u==100)},...n,children:t=>(0,H.jsx)(H.Fragment,{children:typeof e==`function`?e(t):e})})},Fill:({className:e,style:t,...n})=>{let{slots:r,state:i}=(0,v.use)(ex),{getThumbPercent:a,orientation:o,values:s}=i?.state||{},[c,l]=[s?.length&&s.length>1?a?.(0):0,a?.(s?.length?s.length-1:0)].sort(),u=o===`vertical`;return(0,H.jsx)(on.div,{className:Y(r?.fill,e),"data-disabled":Sc(i?.isDisabled),"data-slot":`slider-fill`,style:{...t,[u?`bottom`:`left`]:`${c*100}%`,...u?{height:`${(l-c)*100}%`}:{width:`${(l-c)*100}%`}},...n})},Thumb:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(ex);return(0,H.jsx)(W_,{className:J(t,r?.thumb()),"data-slot":`slider-thumb`,...n,children:t=>(0,H.jsx)(H.Fragment,{children:typeof e==`function`?e(t):e})})},Marks:({className:e,...t})=>{let{slots:n}=(0,v.use)(ex);return(0,H.jsx)(on.div,{className:Y(n?.marks,e),"data-slot":`slider-marks`,...t})}}),rx=({...e})=>{let t=(0,v.useId)();return(0,H.jsxs)(`svg`,{"data-slot":`spinner-icon`,viewBox:`0 0 24 24`,...e,children:[(0,H.jsxs)(`defs`,{children:[(0,H.jsxs)(`linearGradient`,{id:`«data-slot-icon-def-1»-${t}`,x1:`50%`,x2:`50%`,y1:`5.271%`,y2:`91.793%`,children:[(0,H.jsx)(`stop`,{offset:`0%`,stopColor:`currentColor`}),(0,H.jsx)(`stop`,{offset:`100%`,stopColor:`currentColor`,stopOpacity:.55})]}),(0,H.jsxs)(`linearGradient`,{id:`«data-slot-icon-def-2»-${t}`,x1:`50%`,x2:`50%`,y1:`15.24%`,y2:`87.15%`,children:[(0,H.jsx)(`stop`,{offset:`0%`,stopColor:`currentColor`,stopOpacity:0}),(0,H.jsx)(`stop`,{offset:`100%`,stopColor:`currentColor`,stopOpacity:.55})]})]}),(0,H.jsxs)(`g`,{fill:`none`,children:[(0,H.jsx)(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),(0,H.jsx)(`path`,{d:`M8.749.021a1.5 1.5 0 0 1 .497 2.958A7.5 7.5 0 0 0 3 10.375a7.5 7.5 0 0 0 7.5 7.5v3c-5.799 0-10.5-4.7-10.5-10.5C0 5.23 3.726.865 8.749.021`,fill:`url(#«data-slot-icon-def-1»-${t})`,transform:`translate(1.5 1.625)`}),(0,H.jsx)(`path`,{d:`M15.392 2.673a1.5 1.5 0 0 1 2.119-.115A10.48 10.48 0 0 1 21 10.375c0 5.8-4.701 10.5-10.5 10.5v-3a7.5 7.5 0 0 0 5.007-13.084a1.5 1.5 0 0 1-.115-2.118`,fill:`url(#«data-slot-icon-def-2»-${t})`,transform:`translate(1.5 1.625)`})]})]})},ix=({className:e,color:t,size:n,...r})=>(0,H.jsx)(on.span,{"aria-label":`Loading`,"data-slot":`spinner`,role:`status`,...r,className:Ha({className:e,color:t,size:n}),children:(0,H.jsx)(rx,{"aria-hidden":!0})}),ax=Object.assign(ix,{Root:ix}),ox=Object.assign(Fc,{Root:Fc}),sx=(0,v.createContext)({}),cx=({children:e,className:t,size:n,...r})=>{let i=v.useMemo(()=>Wa({size:n}),[n]);return(0,H.jsx)(iv,{"data-slot":`switch`,...r,className:J(t,i.base()),children:t=>(0,H.jsx)(sx,{value:{slots:i,state:t},children:typeof e==`function`?e(t):e})})};cx.displayName=`HeroUI.Switch`;var lx=({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(sx);return(0,H.jsx)(av,{"data-slot":`switch-content`,...n,className:J(t,r?.content()),children:t=>(0,H.jsx)(co,{value:{elementType:`span`},children:typeof e==`function`?e(t):e})})};lx.displayName=`HeroUI.Switch.Content`;var ux=({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(sx);return(0,H.jsx)(on.span,{className:Y(r?.control,t),"data-slot":`switch-control`,...n,children:e})};ux.displayName=`HeroUI.Switch.Control`;var dx=({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(sx);return(0,H.jsx)(on.span,{className:Y(r?.thumb,t),"data-slot":`switch-thumb`,...n,children:e})};dx.displayName=`HeroUI.Switch.Thumb`;var fx=({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(sx);return(0,H.jsx)(on.span,{className:Y(r?.icon,t),"data-slot":`switch-icon`,...n,children:e})};fx.displayName=`HeroUI.Switch.Icon`;var px=Object.assign(cx,{Root:cx,Content:lx,Control:ux,Thumb:dx,Icon:fx}),mx=(0,v.createContext)({}),hx=qy(`tabs.listContainer`),gx=({align:e,children:t,className:n,orientation:r=`horizontal`,variant:i,...a})=>{let o=v.useMemo(()=>Ga({align:e,variant:i}),[e,i]);return(0,H.jsx)(mx,{value:{orientation:r,slots:o},children:(0,H.jsx)(_v,{...a,className:J(n,o.base()),"data-slot":`tabs`,orientation:r,children:t})})},_x=Object.assign(gx,{Root:gx,ListContainer:({children:e,className:t,render:n,...r})=>(0,H.jsx)(hx.Injector,{...r,className:t,render:n,children:e}),List:({children:e,className:t,...n})=>{let{orientation:r=`horizontal`,slots:i}=(0,v.use)(mx),a=(0,v.useRef)(null),o=r===`vertical`,[s,c]=hx.useSlot(n),l=(0,v.useCallback)(e=>{let t=a.current;if(!t)return;let n=o?t.clientHeight:t.clientWidth,r=o?t.scrollHeight:t.scrollWidth,i=Math.max(0,r-n),s=!o&&getComputedStyle(t).direction===`rtl`,c=e*n*.8*(s?-1:1),l=o?t.scrollTop:t.scrollLeft,u=Math.min(s?0:i,Math.max(s?-i:0,l+c));u!==l&&t.scrollTo({behavior:`smooth`,[o?`top`:`left`]:u})},[o]);if(!s)return(0,H.jsx)(yv,{...c,className:J(t,i?.tabList()),"data-slot":`tabs-list`,children:e});let{className:u,render:d,...f}=s;return(0,H.jsx)(yv,{...c,className:J(t,i?.tabList()),"data-slot":`tabs-list`,render:e=>{let{children:t,className:n,ref:s,...c}=e;return(0,H.jsxs)(on.div,{className:Y(i?.tabListContainer,u),"data-slot":`tabs-list-container`,render:d,...f,children:[(0,H.jsx)(Gb,{ref:a,hideScrollBar:!0,className:Y(i?.scroller),orientation:r,size:64,children:(0,H.jsx)(`div`,{...c,ref:s,className:n,children:t})}),(0,H.jsx)(`button`,{"aria-label":o?`Scroll tabs up`:`Scroll tabs left`,className:Y(i?.scrollPrev),tabIndex:-1,type:`button`,onClick:()=>l(-1),children:o?(0,H.jsx)(wc,{}):(0,H.jsx)(Tc,{})}),(0,H.jsx)(`button`,{"aria-label":o?`Scroll tabs down`:`Scroll tabs right`,className:Y(i?.scrollNext),tabIndex:-1,type:`button`,onClick:()=>l(1),children:o?(0,H.jsx)(Cc,{}):(0,H.jsx)(Ec,{})})]})},children:e})},Tab:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(mx);return(0,H.jsx)(xv,{...n,className:J(t,r?.tab()),"data-slot":`tabs-tab`,children:e})},Indicator:({className:e,...t})=>{let{slots:n}=(0,v.use)(mx);return(0,H.jsx)(hf,{className:Y(n?.tabIndicator,e),"data-slot":`tabs-indicator`,...t})},Separator:({className:e,...t})=>{let{slots:n}=(0,v.use)(mx);return(0,H.jsx)(on.span,{"aria-hidden":`true`,className:Y(n?.separator,e),"data-slot":`tabs-separator`,...t})},Panel:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(mx);return(0,H.jsx)(Sv,{...n,className:J(t,r?.tabPanel()),"data-slot":`tabs-panel`,children:e})}}),vx=Object.assign(wb,{Root:wb}),yx=e=>{let[t,n]=(0,v.useState)(void 0),r=(0,v.useCallback)(()=>{let t=e.current;if(!t)return;let r=t.style.height;t.style.height=`auto`;let i=t.scrollHeight;t.style.height=r,n(e=>e===i?e:i)},[e]);return Hb(()=>{r()},[r]),(0,v.useEffect)(()=>{let t=e.current;if(!t)return;let n=0,i=()=>{n||=requestAnimationFrame(()=>{n=0,r()})},a=new MutationObserver(i);a.observe(t,{attributeFilter:[`class`],attributes:!0,characterData:!0,childList:!0,subtree:!0});let o=t.getBoundingClientRect().width,s=new ResizeObserver(e=>{let t=e[0]?.contentRect.width;t===void 0||Math.abs(t-o)<.5||(o=t,i())});return s.observe(t),()=>{a.disconnect(),s.disconnect(),cancelAnimationFrame(n)}},[e,r]),{height:t}},bx=typeof window<`u`?v.useLayoutEffect:v.useEffect,xx=typeof window>`u`;function Sx(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){let r=e=>xx?t:window.matchMedia(e).matches,[i,a]=(0,v.useState)(()=>n?r(e):t);function o(){a(r(e))}return bx(()=>{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 Cx=typeof performance<`u`&&typeof performance.now==`function`?()=>performance.now():()=>Date.now(),wx=new WeakSet,Tx=class{startTime=null;constructor(e,t){this.remaining=t,this.callback=e}reset(e){this.remaining=e,this.resume()}pause(){this.timerId!=null&&(clearTimeout(this.timerId),this.timerId=null,this.remaining-=Cx()-(this.startTime??Cx()))}resume(){this.remaining<=0||(this.startTime=Cx(),this.timerId=setTimeout(()=>{this.timerId=null,this.remaining=0,this.callback()},this.remaining))}},Ex=class e extends by{static didWarnMissingNotify=!1;exitTimers=new Map;exitingSnapshot=new Set;exitSubscriptions=new Set;suspensions=new Set;isBatchingExits=!1;constructor(e,t=300){super(e),this.exitDuration=t}suspendTimers(e){let t=this.suspensions.size===0;this.suspensions.add(e),t&&super.pauseAll()}resumeTimers(e){this.suspensions.delete(e),this.suspensions.size===0&&super.resumeAll()}pauseAll(){this.suspendTimers(`external`)}resumeAll(){this.resumeTimers(`external`)}guardTimer(e){if(wx.has(e))return;wx.add(e);let t=e.resume.bind(e),n=e.reset.bind(e);e.resume=()=>{this.suspensions.size>0||e.timerId!=null||t()},e.reset=t=>{e.pause(),n(t)}}add(e,t){let n=super.add(e,t),r=this.visibleToasts.find(e=>e.key===n)?.timer;return r&&this.guardTimer(r),n}updateToast(t,n,r){if(this.exitTimers.has(t))return!1;let i=this.visibleToasts.find(e=>e.key===t);if(!i)return!1;if(i.content=n,r&&`onClose`in r&&(i.onClose=r.onClose),r?.timeout!==void 0)if(i.timer?.pause(),i.timeout=r.timeout,r.timeout>0){let e=new Tx(()=>this.close(t),r.timeout);this.guardTimer(e),i.timer=e}else i.timer=void 0;let a=this.updateVisibleToasts;return typeof a==`function`?a.call(this,`add`):(e.didWarnMissingNotify||(e.didWarnMissingNotify=!0,console.warn(`[HeroUI Toast] react-stately no longer exposes updateVisibleToasts; toast updates fall back to a partial re-render.`)),this.exitingSnapshot=new Set(this.exitTimers.keys()),this.notifyExitSubscribers()),!0}getExitingKeys=()=>this.exitingSnapshot;subscribeExiting=e=>(this.exitSubscriptions.add(e),()=>{this.exitSubscriptions.delete(e)});notifyExitSubscribers(){for(let e of this.exitSubscriptions)e()}close(e){let t=this.visibleToasts.find(t=>t.key===e);if(this.exitTimers.has(e)||!t)return;if(!(this.exitDuration>0&&typeof window<`u`&&!window.matchMedia?.(`(prefers-reduced-motion: reduce)`)?.matches)){super.close(e);return}let n=t.onClose;t.onClose=void 0,this.exitTimers.set(e,setTimeout(()=>{this.exitTimers.delete(e),this.exitingSnapshot=new Set(this.exitTimers.keys()),super.close(e),this.isBatchingExits||this.notifyExitSubscribers()},this.exitDuration)),this.isBatchingExits||(this.exitingSnapshot=new Set(this.exitTimers.keys()),this.notifyExitSubscribers()),n?.()}clear(){this.isBatchingExits=!0;try{for(let e of[...this.visibleToasts])this.close(e.key)}finally{this.isBatchingExits=!1,this.exitingSnapshot=new Set(this.exitTimers.keys()),this.notifyExitSubscribers()}}destroy(){for(let e of this.exitTimers.values())clearTimeout(e);this.exitTimers.clear(),this.exitingSnapshot=new Set,this.exitSubscriptions.clear(),this.suspensions.clear();for(let e of this.visibleToasts)e.timer?.pause()}},Dx=e=>e instanceof Ex,Ox=class{constructor(e){this.maxVisibleToasts=e?.maxVisibleToasts,this.queue=new Ex({maxVisibleToasts:Yy,wrapUpdate:e?.wrapUpdate},e?.exitDuration??300)}add(e,t){return this.queue.add(e,{...t,timeout:t?.timeout??4e3})}close(e){this.queue.close(e)}update(e,t,n){return this.queue.updateToast(e,t,n)}pauseAll(){this.queue.pauseAll()}resumeAll(){this.queue.resumeAll()}clear(){this.queue.clear()}subscribe(e){return this.queue.subscribe(e)}get visibleToasts(){return this.queue.visibleToasts}getQueue(){return this.queue}destroy(){this.queue.destroy()}};function kx(e){let t=(e,t)=>({title:e,description:t?.description,indicator:t?.indicator,variant:t?.variant||`default`,actionProps:t?.actionProps,isLoading:t?.isLoading}),n=e=>({timeout:e?.timeout??4e3,onClose:e?.onClose}),r=e=>({...e&&`timeout`in e?{timeout:e.timeout}:null,...e&&`onClose`in e?{onClose:e.onClose}:null}),i=(r,i)=>e.add(t(r,i),n(i));return i.success=(e,t)=>i(e,{...t,variant:`success`}),i.danger=(e,t)=>i(e,{...t,variant:`danger`}),i.info=(e,t)=>i(e,{...t,variant:`accent`}),i.warning=(e,t)=>i(e,{...t,variant:`warning`}),i.update=(i,a,o)=>{let s=t(a,o);return e.update(i,s,r(o))?i:e.add(s,n(o))},i.promise=(n,r)=>{let a=typeof n==`function`?n():n,o=e.add(t(r.loading,{isLoading:!0}),{timeout:0});return a.then(e=>{let t=typeof r.success==`function`?r.success(e):r.success;return i.update(o,t,{isLoading:!1,timeout:Zy,variant:`success`})}).catch(e=>{let t=typeof r.error==`function`?r.error(e):r.error;return i.update(o,t,{isLoading:!1,timeout:Zy,variant:`danger`})}),o},i.getQueue=()=>e.getQueue(),i.close=t=>e.close(t),i.pauseAll=()=>e.pauseAll(),i.resumeAll=()=>e.resumeAll(),i.clear=()=>e.clear(),i}var Ax=kx(new Ox),jx=(0,v.createContext)({}),Mx=[`altKey`,`ctrlKey`,`metaKey`,`shiftKey`],Nx=new Set,Px=()=>Nx,Fx=()=>()=>{},Ix=(e,t)=>{if(!t){document.activeElement?.blur();return}let n=e=>e instanceof HTMLElement&&e.matches(`[data-slot="toast"]:not([data-exiting="true"]):not([data-hidden="true"])`),r=null,i=e.previousElementSibling;for(;i;){if(n(i)){r=i;break}i=i.previousElementSibling}if(!r)for(i=e.nextElementSibling;i;){if(n(i)){r=i;break}i=i.nextElementSibling}if(!r){let t=e.closest(`[data-slot="toast-region"]`);if(t){for(let n of t.querySelectorAll(`[data-slot="toast"]:not([data-exiting="true"]):not([data-hidden="true"])`))if(n!==e){r=n;break}}}r?r.focus():document.activeElement?.blur()},Lx=({children:e,className:t,placement:n,ref:r,scaleFactor:i,style:a,toast:o,variant:s,...c})=>{let{exitingKeys:l,gap:u=12,heightsByKey:d,isExpanded:f=!1,maxVisibleToasts:p=3,onToastHeightChange:m,onToastHeightRemove:h,placement:g,scaleFactor:_,slots:y}=(0,v.use)(jx),b=n??g,x=i??_??.05,S=(0,v.use)(Sy).visibleToasts,C=o?.key,w=C!=null&&(l?.has(C)??!1),T=(0,v.useMemo)(()=>!l||l.size===0?S:S.filter(e=>!l.has(e.key)||e.key===C),[l,C,S]),E=S.indexOf(o),D=T.indexOf(o),O=D<=0,k=!w&&D>=p,A=(0,v.useRef)(null),j=(0,v.useMemo)(()=>We(A,r),[r]),{height:M}=yx(A),{isFocusVisible:N}=cs(),[P,F]=(0,v.useState)(!0);(0,v.useEffect)(()=>{let e=0,t=requestAnimationFrame(()=>{e=requestAnimationFrame(()=>{F(!1)})});return()=>{cancelAnimationFrame(t),cancelAnimationFrame(e)}},[]),(0,v.useLayoutEffect)(()=>{C&&typeof M==`number`&&m?.(C,M)},[C,M,m]),(0,v.useEffect)(()=>{if(C)return()=>{h?.(C)}},[C,h]),(0,v.useLayoutEffect)(()=>{let e=A.current;if(e)if(e.tabIndex=O||f&&!k&&!w?0:-1,k||w)if(e.contains(document.activeElement)&&Ix(e,N),e.setAttribute(`aria-hidden`,`true`),w)for(let t of e.querySelectorAll(`button, a`))t.tabIndex=-1;else e.setAttribute(`inert`,``);else e.removeAttribute(`aria-hidden`),e.removeAttribute(`inert`)},[O,f,k,w,N]);let I=(0,v.useMemo)(()=>{let e=T[0]?.key,t=(e?d?.[e]:void 0)??M??0,n=0;for(let e=0;e<D;e++){let r=T[e]?.key;n+=(r?d?.[r]:void 0)??t}return{"--offset-collapsed":`${D*u}px`,"--offset-expanded":`${n+D*u}px`,"--scale-collapsed":`${1-D*x}`,zIndex:w?0:S.length-E,"--front-height":`${t}px`,...typeof M==`number`?{"--toast-height":`${M}px`}:null}},[x,E,u,d,D,w,T,M,S.length]),ee=Za(a,e=>({...I,...e}));return(0,H.jsx)(Ty,{...c,ref:j,className:J(t,y?.toast({variant:s})),"data-entering":Sc(P),"data-exiting":Sc(w),"data-expanded":Sc(f),"data-frontmost":Sc(O),"data-hidden":Sc(k),"data-index":D,"data-placement":b,"data-slot":`toast`,style:ee,toast:o,children:e})};Lx.displayName=`HeroUI.Toast`;var Rx=({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(jx);return(0,H.jsx)(Dy,{...n,className:Y(r?.content,t),"data-slot":`toast-content`,children:e})},zx=({children:e,className:t,variant:n,...r})=>{let{slots:i}=(0,v.use)(jx),a=v.isValidElement(e)?e.type:e??`default`,o=(0,v.useRef)(a),[s,c]=(0,v.useState)(!1);Hb(()=>{o.current!==a&&(o.current=a,c(!0))},[a]);let l=(0,v.useCallback)(()=>{switch(n){case`accent`:return(0,H.jsx)(Oc,{"data-slot":`toast-default-icon`});case`success`:return(0,H.jsx)(jc,{"data-slot":`toast-default-icon`});case`warning`:return(0,H.jsx)(kc,{"data-slot":`toast-default-icon`});case`danger`:return(0,H.jsx)(Ac,{"data-slot":`toast-default-icon`});default:return(0,H.jsx)(Oc,{"data-slot":`toast-default-icon`})}},[n]);return(0,H.jsx)(on.div,{...r,className:Y(i?.indicator,t),"data-slot":`toast-indicator`,"data-swapped":Sc(s),children:e??l()})};zx.displayName=`HeroUI.ToastIndicator`;var Bx=({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(jx);return(0,H.jsx)(bf,{...n,className:Y(r?.title,t),"data-slot":`toast-title`,slot:`title`,children:e})};Bx.displayName=`HeroUI.ToastTitle`;var Vx=({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(jx);return(0,H.jsx)(bf,{...n,className:Y(r?.description,t),"data-slot":`toast-description`,slot:`description`,children:e})};Vx.displayName=`HeroUI.ToastDescription`;var Hx=({className:e,...t})=>{let{slots:n}=(0,v.use)(jx);return(0,H.jsx)(om,{...t,className:J(e,n?.close()),"data-slot":`toast-close`,slot:`close`})};Hx.displayName=`HeroUI.ToastCloseButton`;var Ux=({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(jx);return(0,H.jsx)(Ug,{...n,className:J(t,r?.action?.()),"data-slot":`toast-action-button`,children:e})};Ux.displayName=`HeroUI.ToastActionButton`;var Wx=({children:e,className:t,gap:n=12,hotkey:r=Qy,isExpanded:i=!1,maxVisibleToasts:a,placement:o=`bottom`,queue:s,ref:c,scaleFactor:l=Xy,style:u,width:d=460,...f})=>{let p=(0,v.useMemo)(()=>qa({placement:o}),[o]),m=Sx(`(max-width: 768px)`),[h,g]=(0,v.useState)({}),_=(0,v.useRef)(r);(0,v.useEffect)(()=>{_.current=r},[r]);let y=(0,v.useMemo)(()=>s?s.getQueue():Ax.getQueue(),[s]),b=Dx(y)?y:null,x=(0,v.useSyncExternalStore)(b?b.subscribeExiting:Fx,b?b.getExitingKeys:Px,Px),S=(0,v.useSyncExternalStore)((0,v.useCallback)(e=>y.subscribe(e),[y]),()=>y.visibleToasts.length,()=>0),[C,w]=(0,v.useState)(!1),T=(0,v.useRef)(!1),E=(0,v.useCallback)(e=>{let t=e=>{typeof c==`function`?c(e):c&&typeof c==`object`&&(c.current=e)};if(t(e),!e)return;let n=()=>{!T.current&&!e.contains(document.activeElement)&&w(!1)},r=e=>{e.pointerType!==`touch`&&(T.current=!0,w(!0))},i=e=>{e.pointerType!==`touch`&&(T.current=!1,n())},a=()=>{w(!0)},o=t=>{t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||n()},s=t=>{t.pointerType===`touch`||e.contains(t.target)||(T.current=!1,n())},l=t=>{t.key===`Escape`&&(e.contains(document.activeElement)&&document.activeElement.blur(),T.current=!1,w(!1))},u=t=>{let n=_.current;if(n.length===0)return;let r=Mx.every(e=>t[e]===n.includes(e)),i=n.every(e=>Mx.includes(e)||t.code===e);!r||!i||(t.preventDefault(),e.focus())};return e.addEventListener(`pointerenter`,r),e.addEventListener(`pointermove`,r),e.addEventListener(`pointerleave`,i),e.addEventListener(`focusin`,a),e.addEventListener(`focusout`,o),e.addEventListener(`keydown`,l),document.addEventListener(`pointerover`,s,!0),document.addEventListener(`keydown`,u),()=>{e.removeEventListener(`pointerenter`,r),e.removeEventListener(`pointermove`,r),e.removeEventListener(`pointerleave`,i),e.removeEventListener(`focusin`,a),e.removeEventListener(`focusout`,o),e.removeEventListener(`keydown`,l),document.removeEventListener(`pointerover`,s,!0),document.removeEventListener(`keydown`,u),T.current=!1,w(!1),t(null)}},[c]);(0,v.useEffect)(()=>{if(!(!b||!C))return b.suspendTimers(`interaction`),()=>{b.resumeTimers(`interaction`)}},[b,C]),(0,v.useEffect)(()=>{if(typeof document>`u`||!b)return;let e=()=>{document.hidden?b.suspendTimers(`visibility`):b.resumeTimers(`visibility`)};return document.addEventListener(`visibilitychange`,e),()=>{document.removeEventListener(`visibilitychange`,e),b.resumeTimers(`visibility`)}},[b]);let D=S-x.size,O=(i||C)&&D>1,k=(0,v.useMemo)(()=>{let e=s&&`maxVisibleToasts`in s?s.maxVisibleToasts:void 0;return a??e??3},[a,s]),A=(0,v.useCallback)((e,t)=>{g(n=>n[e]===t?n:{...n,[e]:t})},[]),j=(0,v.useCallback)(e=>{g(t=>{if(!(e in t))return t;let n={...t};return delete n[e],n})},[]),M=(0,v.useCallback)(e=>{let{actionProps:t,description:n,indicator:r,isLoading:i,title:a,variant:s}=e.toast.content??{};return(0,H.jsxs)(Lx,{placement:o,scaleFactor:l,toast:e.toast,variant:s,children:[r===null?null:i?(0,H.jsx)(zx,{variant:s,children:(0,H.jsx)(ax,{color:`current`,size:`sm`})}):(0,H.jsx)(zx,{variant:s,children:r}),(0,H.jsxs)(Rx,{children:[!!a&&(0,H.jsx)(Bx,{children:a}),!!n&&(0,H.jsx)(Vx,{children:n}),m&&t?.children?(0,H.jsx)(Ux,{...t,children:t.children}):null]}),!m&&t?.children?(0,H.jsx)(Ux,{...t,children:t.children}):null,(0,H.jsx)(Hx,{})]})},[m,o,l]),N=(0,v.useMemo)(()=>({exitingKeys:x,gap:n,heightsByKey:h,isExpanded:O,maxVisibleToasts:k,onToastHeightChange:A,onToastHeightRemove:j,placement:o,scaleFactor:l,slots:p}),[x,n,A,j,O,o,k,l,p,h]),P=Za(u,e=>({"--gap":`${n}px`,"--placement":o,"--scale-factor":l,"--toast-width":typeof d==`number`?`${d}px`:d,...e}));return(0,H.jsx)(Cy,{...f,ref:E,className:J(t,p?.region()),"data-expanded":Sc(O),"data-slot":`toast-region`,queue:y,style:P,children:t=>{let n=t.toast.content,r={...t,isLoading:n?.isLoading??!1};return(0,H.jsx)(jx,{value:N,children:e===void 0?M(t):typeof e==`function`?e(r):e})}})};Wx.displayName=`HeroUI.ToastProvider`;var Gx=Object.assign(Lx,{Provider:Wx,Content:Rx,Indicator:zx,Title:Bx,Description:Vx,ActionButton:Ux,CloseButton:Hx,Queue:Ox,toast:Ax}),Kx=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},qx=(0,v.createContext)({}),Jx=({children:e,shouldSkipAnimation:t})=>{let n=(0,v.use)(Iy);return!n||t?e:(0,H.jsx)(Iy,{value:{...n,shouldSkipAnimation:!1},children:e})},Yx=({children:e,closeDelay:t,delay:n,shouldSkipAnimation:r=!1,...i})=>{let a=v.useMemo(()=>Ja(),[]),o=$b(`--tooltip-delay`),s=$b(`--tooltip-close-delay`),c=n??Kx(o),l=t??Kx(s);return(0,H.jsx)(qx,{value:{slots:a},children:(0,H.jsx)(Ry,{closeDelay:l,"data-slot":`tooltip-root`,delay:c,...i,children:(0,H.jsx)(Jx,{shouldSkipAnimation:r,children:e})})})},Xx=Object.assign(Yx,{Root:Yx,Trigger:({children:e,className:t,...n})=>{let{slots:r}=(0,v.use)(qx),i=(0,v.useRef)(null),{focusableProps:a}=ks({},i);return(0,H.jsx)(on.div,{ref:i,className:Y(r?.trigger,t),"data-slot":`tooltip-trigger`,role:`button`,...B(a,n),children:e})},Content:({children:e,className:t,offset:n,showArrow:r=!1,...i})=>{let{slots:a}=(0,v.use)(qx),o=n||(r?7:3);return(0,H.jsx)(zy,{...i,className:J(t,a?.base()),offset:o,children:e})},Arrow:({children:e,className:t,...n})=>{let r=(0,H.jsx)(`svg`,{"data-slot":`overlay-arrow`,fill:`none`,height:`12`,viewBox:`0 0 12 12`,width:`12`,xmlns:`http://www.w3.org/2000/svg`,children:(0,H.jsx)(`path`,{d:`M0 0C5.48483 8 6.5 8 12 0Z`})}),i=v.isValidElement(e)?v.cloneElement(e,{"data-slot":`overlay-arrow`}):r;return(0,H.jsx)(Bc,{"data-slot":`tooltip-arrow`,...n,className:t,children:i})}}),Zx=(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])}},Qx=e=>(t,n)=>{let r=(0,v.useRef)(!1);e(()=>()=>{r.current=!1},[]),e(()=>{if(!r.current)r.current=!0;else return t()},n)};function $x(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 eS(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}var tS=e=>typeof e==`function`,nS=e=>e!=null,rS=e=>nS(e)&&tS(e.then),iS=e=>{let t=(0,v.useRef)(e);t.current=(0,v.useMemo)(()=>e,[e]);let n=(0,v.useRef)(void 0);return n.current||=function(...e){return t.current.apply(this,e)},n.current},aS=Qx(v.useEffect),oS=(e,{manual:t,ready:n=!0,defaultParams:r=[],refreshDeps:i=[],refreshDepsAction:a})=>{let o=(0,v.useRef)(!1);return o.current=!1,aS(()=>{!t&&n&&(o.current=!0,e.run(...r))},[n]),aS(()=>{o.current||t||(o.current=!0,a?a():e.refresh())},[...i]),{onBefore:()=>{if(!n)return{stopNow:!0}}}};oS.onInit=({ready:e=!0,manual:t})=>({loading:!t&&e});function sS(e,t){if(e===t)return!0;for(let n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}var cS=(e,t)=>{let{current:n}=(0,v.useRef)({deps:t,obj:void 0,initialized:!1});return(n.initialized===!1||!sS(n.deps,t))&&(n.deps=t,n.obj=e(),n.initialized=!0),n.obj};function lS(e){let t=(0,v.useRef)(e);return t.current=e,t}var uS=e=>{let t=lS(e);(0,v.useEffect)(()=>()=>{t.current()},[])},dS=new Map,fS=e=>{e?.timer&&clearTimeout(e.timer)},pS=(e,t,n)=>{fS(dS.get(e));let r;t>-1&&(r=setTimeout(()=>{dS.delete(e)},t)),dS.set(e,Object.assign(Object.assign({},n),{timer:r}))},mS=e=>dS.get(e),hS=new Map,gS=e=>hS.get(e),_S=(e,t)=>{hS.set(e,t),t.then(t=>(hS.delete(e),t)).catch(()=>{hS.delete(e)})},vS={},yS=(e,t)=>{vS[e]&&vS[e].forEach(e=>e(t))},bS=(e,t)=>(vS[e]||(vS[e]=[]),vS[e].push(t),function(){let n=vS[e].indexOf(t);vS[e].splice(n,1)}),xS=(e,{cacheKey:t,cacheTime:n=300*1e3,staleTime:r=0,setCache:i,getCache:a})=>{let o=(0,v.useRef)(void 0),s=(0,v.useRef)(void 0),c=(e,t)=>{i?i(t):pS(e,n,t),yS(e,t.data)},l=(e,t=[])=>a?a(t):mS(e);return cS(()=>{if(!t)return;let n=l(t);n&&Object.hasOwnProperty.call(n,`data`)&&(e.state.data=n.data,e.state.params=n.params,(r===-1||Date.now()-n.time<=r)&&(e.state.loading=!1)),o.current=bS(t,t=>{e.setState({data:t})})},[]),uS(()=>{var e;(e=o.current)==null||e.call(o)}),t?{onBefore:e=>{let n=l(t,e);return!n||!Object.hasOwnProperty.call(n,`data`)?{}:r===-1||Date.now()-n.time<=r?{loading:!1,data:n?.data,error:void 0,returnNow:!0}:{data:n?.data,error:void 0}},onRequest:(e,n)=>{let r=gS(t);return r&&r!==s.current?{servicePromise:r}:(r=e(...n),s.current=r,_S(t,r),{servicePromise:r})},onSuccess:(n,r)=>{var i;t&&((i=o.current)==null||i.call(o),c(t,{data:n,params:r,time:Date.now()}),o.current=bS(t,t=>{e.setState({data:t})}))},onMutate:n=>{var r;t&&((r=o.current)==null||r.call(o),c(t,{data:n,params:e.state.params,time:Date.now()}),o.current=bS(t,t=>{e.setState({data:t})}))}}:{}},SS=o(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),CS=o(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),wS=o(((e,t)=>{var n=CS(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),TS=o(((e,t)=>{var n=wS();t.exports=function(){return n.Date.now()}})),ES=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})),DS=o(((e,t)=>{var n=ES(),r=/^\s+/;function i(e){return e&&e.slice(0,n(e)+1).replace(r,``)}t.exports=i})),OS=o(((e,t)=>{t.exports=wS().Symbol})),kS=o(((e,t)=>{var n=OS(),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})),AS=o(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),jS=o(((e,t)=>{var n=OS(),r=kS(),i=AS(),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})),MS=o(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),NS=o(((e,t)=>{var n=jS(),r=MS(),i=`[object Symbol]`;function a(e){return typeof e==`symbol`||r(e)&&n(e)==i}t.exports=a})),PS=o(((e,t)=>{var n=DS(),r=SS(),i=NS(),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})),FS=o(((e,t)=>{var n=SS(),r=TS(),i=PS(),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})),IS,LS=`__AHOOKS_CANCELLED_ERROR__`,RS=class e extends Error{constructor(t=`useRequest: the request was cancelled or superseded.`){super(t),this[IS]=!0,this.name=`CancelledError`,Object.setPrototypeOf(this,e.prototype)}};IS=LS;function zS(e){return e instanceof RS||typeof e==`object`&&!!e&&e[LS]===!0}function BS(e){var t;(t=e.current)==null||t.call(e,new RS),e.current=void 0}var VS=l(FS()),HS=(e,{debounceWait:t,debounceLeading:n,debounceTrailing:r,debounceMaxWait:i,ready:a})=>{let o=(0,v.useRef)(void 0),s=(0,v.useRef)(void 0),c=(0,v.useMemo)(()=>{let e={};return n!==void 0&&(e.leading=n),r!==void 0&&(e.trailing=r),i!==void 0&&(e.maxWait=i),e},[n,r,i]);return(0,v.useEffect)(()=>{if(t){let n=e.runAsync.bind(e);return o.current=(0,VS.default)(e=>{e()},t,c),e.runAsync=(...t)=>e.options.ready===!1?n(...t):(BS(s),new Promise((e,r)=>{var i;let a=!1;s.current=r,(i=o.current)==null||i.call(o,()=>{a=!0,s.current=void 0,n(...t).then(e).catch(r)}),!a&&c.trailing===!1&&BS(s)})),()=>{var t;(t=o.current)==null||t.cancel(),BS(s),e.runAsync=n}}},[t,c,e]),aS(()=>{var e;a===!1&&((e=o.current)==null||e.cancel(),BS(s))},[a]),t?{onCancel:()=>{var e;(e=o.current)==null||e.cancel(),BS(s)}}:{}},US=(e,{loadingDelay:t,ready:n})=>{let r=(0,v.useRef)(void 0);if(!t)return{};let i=()=>{r.current&&clearTimeout(r.current)};return{onBefore:()=>(i(),n!==!1&&(r.current=setTimeout(()=>{e.setState({loading:!0})},t)),{loading:!1}),onFinally:()=>{i()},onCancel:()=>{i()}}},WS=!!(typeof window<`u`&&window.document&&window.document.createElement);function GS(){return!WS||document.visibilityState!==`hidden`}var KS=new Set;function qS(e){return KS.add(e),function(){KS.has(e)&&KS.delete(e)}}WS&&window.addEventListener(`visibilitychange`,()=>{GS()&&KS.forEach(e=>e())},!1);var JS=(e,{pollingInterval:t,pollingWhenHidden:n=!0,pollingErrorRetryCount:r=-1})=>{let i=(0,v.useRef)(void 0),a=(0,v.useRef)(void 0),o=(0,v.useRef)(0),s=()=>{var e;i.current&&clearTimeout(i.current),(e=a.current)==null||e.call(a)};return aS(()=>{t||s()},[t]),t?{onBefore:()=>{s()},onError:()=>{o.current+=1},onSuccess:()=>{o.current=0},onFinally:()=>{r===-1||r!==-1&&o.current<=r?i.current=setTimeout(()=>{!n&&!GS()?a.current=qS(()=>{e.refresh()}):e.refresh()},t):o.current=0},onCancel:()=>{s()}}:{}};function YS(e,t){let n=!1;return(...r)=>{n||(n=!0,e(...r),setTimeout(()=>{n=!1},t))}}var XS=()=>WS&&navigator.onLine!==void 0?navigator.onLine:!0,ZS=new Set;function QS(e){return ZS.add(e),function(){ZS.has(e)&&ZS.delete(e)}}if(WS){let e=()=>{!GS()||!XS()||ZS.forEach(e=>e())};window.addEventListener(`visibilitychange`,e,!1),window.addEventListener(`focus`,e,!1)}var $S=(e,{refreshOnWindowFocus:t,focusTimespan:n=5e3})=>{let r=(0,v.useRef)(void 0),i=()=>{var e;(e=r.current)==null||e.call(r)};return(0,v.useEffect)(()=>{if(t){let t=YS(e.refresh.bind(e),n);r.current=QS(()=>{t()})}return()=>{i()}},[t,n]),uS(()=>{i()}),{}},eC=(e,{retryInterval:t,retryCount:n})=>{let r=(0,v.useRef)(void 0),i=(0,v.useRef)(0),a=(0,v.useRef)(!1);return n?{onBefore:()=>{a.current||(i.current=0),a.current=!1,r.current&&clearTimeout(r.current)},onSuccess:()=>{i.current=0},onError:()=>{if(i.current+=1,n===-1||i.current<=n){let n=t??Math.min(1e3*2**i.current,3e4);r.current=setTimeout(()=>{a.current=!0,e.refresh()},n)}else i.current=0},onCancel:()=>{i.current=0,r.current&&clearTimeout(r.current)}}:{}},tC=l(o(((e,t)=>{var n=FS(),r=SS(),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}))()),nC=(e,{throttleWait:t,throttleLeading:n,throttleTrailing:r})=>{let i=(0,v.useRef)(void 0),a=(0,v.useRef)(void 0),o={};return n!==void 0&&(o.leading=n),r!==void 0&&(o.trailing=r),(0,v.useEffect)(()=>{if(t){let n=e.runAsync.bind(e);return i.current=(0,tC.default)(e=>{e()},t,o),e.runAsync=(...e)=>(BS(a),new Promise((t,r)=>{var s;let c=!1;a.current=r,(s=i.current)==null||s.call(i,()=>{c=!0,a.current=void 0,n(...e).then(t).catch(r)}),!c&&o.trailing===!1&&BS(a)})),()=>{var t;e.runAsync=n,(t=i.current)==null||t.cancel(),BS(a)}}},[t,n,r]),t?{onCancel:()=>{var e;(e=i.current)==null||e.cancel(),BS(a)}}:{}},rC=e=>{(0,v.useEffect)(()=>{let t=e?.();if(!rS(t))return t},[])},iC=()=>{let[,e]=(0,v.useState)({});return iS(()=>e({}))},aC=class{constructor(e,t,n,r={}){this.serviceRef=e,this.options=t,this.subscribe=n,this.initState=r,this.pluginImpls=[],this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=Object.assign(Object.assign(Object.assign({},this.state),{loading:!t.manual}),r)}setState(e={}){this.state=Object.assign(Object.assign({},this.state),e),this.subscribe()}runPluginHandler(e,...t){let n=this.pluginImpls.map(n=>n[e]?.call(n,...t)).filter(Boolean);return Object.assign({},...n)}runAsync(...e){return eS(this,void 0,void 0,function*(){var t,n,r,i,a,o,s,c,l,u;this.count+=1;let d=this.count,f=this.runPluginHandler(`onBefore`,e),{stopNow:p=!1,returnNow:m=!1}=f,h=$x(f,[`stopNow`,`returnNow`]);if(p||(this.setState(Object.assign({loading:!0,params:e},h)),m))return Promise.resolve(h.data);(n=(t=this.options).onBefore)==null||n.call(t,e);try{let{servicePromise:t}=this.runPluginHandler(`onRequest`,this.serviceRef.current,e);t||=this.serviceRef.current(...e);let n=yield t;if(d!==this.count)throw new RS;return this.setState({data:n,error:void 0,loading:!1}),(i=(r=this.options).onSuccess)==null||i.call(r,n,e),this.runPluginHandler(`onSuccess`,n,e),(o=(a=this.options).onFinally)==null||o.call(a,e,n,void 0),d===this.count&&this.runPluginHandler(`onFinally`,e,n,void 0),n}catch(t){throw d===this.count?(this.setState({error:t,loading:!1}),(c=(s=this.options).onError)==null||c.call(s,t,e),this.runPluginHandler(`onError`,t,e),(u=(l=this.options).onFinally)==null||u.call(l,e,void 0,t),d===this.count&&this.runPluginHandler(`onFinally`,e,void 0,t),t):zS(t)?t:new RS}})}run(...e){this.runAsync(...e).catch(e=>{zS(e)||this.options.onError||console.error(e)})}cancel(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler(`onCancel`)}refresh(){this.run(...this.state.params||[])}refreshAsync(){return this.runAsync(...this.state.params||[])}mutate(e){let t=tS(e)?e(this.state.data):e;this.runPluginHandler(`onMutate`,t),this.setState({data:t})}};function oC(e,t={},n=[]){let{manual:r=!1,ready:i=!0}=t,a=$x(t,[`manual`,`ready`]),o=Object.assign({manual:r,ready:i},a),s=lS(e),c=iC(),l=cS(()=>{let e=n.map(e=>(e?.onInit)?.call(e,o)).filter(Boolean);return new aC(s,o,c,Object.assign({},...e))},[]);return l.options=o,l.pluginImpls=n.map(e=>e(l,o)),rC(()=>{if(!r&&i){let e=l.state.params||t.defaultParams||[];l.run(...e)}}),uS(()=>{l.cancel()}),{loading:l.state.loading,data:l.state.data,error:l.state.error,params:l.state.params||[],cancel:iS(l.cancel.bind(l)),refresh:iS(l.refresh.bind(l)),refreshAsync:iS(l.refreshAsync.bind(l)),run:iS(l.run.bind(l)),runAsync:iS((...e)=>l.runAsync(...e)),mutate:iS(l.mutate.bind(l))}}function sC(e,t,n){return oC(e,t,[...n||[],HS,US,JS,$S,nC,oS,xS,eC])}var cC=sC;function lC(e=!1,t){let[n,r]=(0,v.useState)(e);return[n,(0,v.useMemo)(()=>{let n=t===void 0?!e:t;return{toggle:()=>r(t=>t===e?n:e),set:e=>r(e),setLeft:()=>r(e),setRight:()=>r(n)}},[])]}function uC(e=!1){let[t,{toggle:n,set:r}]=lC(!!e);return[t,(0,v.useMemo)(()=>({toggle:n,set:e=>r(!!e),setTrue:()=>r(!0),setFalse:()=>r(!1)}),[])]}function dC(e){let[t,n]=(0,v.useState)(e??{});return[t,iS(e=>{n(t=>{let n=tS(e)?e(t):e;return n?Object.assign(Object.assign({},t),n):t})})]}var fC=`modulepreload`,pC=function(e){return`/kkk/assets/`+e},mC={},hC=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}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=pC(t,n),t=s(t),t in mC)return;mC[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:fC,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.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)})},gC=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,_C=/^[\\/]{2}/;function vC(e,t){return t+e.replace(/\\/g,`/`)}var yC=`popstate`;function bC(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function xC(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return EC(``,{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:DC(t)}return kC(t,n,null,e)}function SC(e,t){if(e===!1||e==null)throw Error(t)}function CC(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function wC(){return Math.random().toString(36).substring(2,10)}function TC(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 EC(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?OC(t):t,state:n,key:t&&t.key||r||wC(),mask:i}}function DC({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 OC(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 kC(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=bC(e)?e:EC(h.location,e,t);n&&n(r,e),l=u()+1;let d=TC(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=bC(e)?e:EC(h.location,e,t);n&&n(r,e),l=u();let i=TC(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 AC(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(yC,d),c=e,()=>{i.removeEventListener(yC,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 AC(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),SC(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:DC(t);return i=i.replace(/ $/,`%20`),!n&&_C.test(i)&&(i=r+i),new URL(i,r)}function jC(e,t,n=`/`){return MC(e,t,n,!1)}function MC(e,t,n,r,i){let a=QC((typeof t==`string`?OC(t):t).pathname||`/`,n);if(a==null)return null;let o=i??PC(e),s=null,c=ZC(a);for(let e=0;s==null&&e<o.length;++e)s=qC(o[e],c,r);return s}function NC(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 PC(e){let t=FC(e);return LC(t),t}function FC(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;SC(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=ow([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(SC(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),FC(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:GC(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=XC(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 IC(e.path))a(e,t,!0,n)}),t}function IC(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=IC(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 LC(e){e.sort((e,t)=>e.score===t.score?KC(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var RC=/^:[\w-]+$/,zC=3,BC=2,VC=1,HC=10,UC=-2,WC=e=>e===`*`;function GC(e,t){let n=e.split(`/`),r=n.length;return n.some(WC)&&(r+=UC),t&&(r+=BC),n.filter(e=>!WC(e)).reduce((e,t)=>e+(RC.test(t)?zC:t===``?VC:HC),r)}function KC(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 qC(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?YC(u,l,s.matcher,s.compiledParams):JC(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=JC({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:ow([a,d.pathname]),pathnameBase:cw(ow([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=ow([a,d.pathnameBase]))}return o}function JC(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=XC(e.path,e.caseSensitive,e.end);return YC(e,t,n,r)}function YC(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=sw(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=sw(a.slice(0,a.length-e.length),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 XC(e,t=!1,n=!0){CC(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 ZC(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return CC(!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 QC(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 $C(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?OC(e):e,a;return n?(n=aw(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?ew(n.substring(1),`/`):ew(n,t)):a=t,{pathname:a,search:lw(r),hash:uw(i)}}function ew(e,t){let n=sw(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function tw(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 nw(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function rw(e){let t=nw(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function iw(e,t,n,r=!1){let i;typeof e==`string`?i=OC(e):(i={...e},SC(!i.pathname||!i.pathname.includes(`?`),tw(`?`,`pathname`,`search`,i)),SC(!i.pathname||!i.pathname.includes(`#`),tw(`#`,`pathname`,`hash`,i)),SC(!i.search||!i.search.includes(`#`),tw(`#`,`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=$C(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var aw=e=>e.replace(/[\\/]{2,}/g,`/`),ow=e=>aw(e.join(`/`));function sw(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var cw=e=>sw(e).replace(/^\/*/,`/`),lw=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,uw=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,dw=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 fw(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function pw(e){return ow(e.map(e=>e.route.path).filter(Boolean))||`/`}var mw=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function hw(e,t){let n=e;if(typeof n!=`string`||!gC.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(mw)try{let e=new URL(window.location.href),r=_C.test(n)?new URL(vC(n,e.protocol)):new URL(n),a=QC(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{CC(!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 gw=new URL(`http://localhost`);function _w(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),gw)}catch{return gw}}function vw(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function yw(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function bw(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!vw(i,n),s=!vw(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!yw(e,i)||!vw(i,a)))throw Error(`External navigation is not allowed`)}var xw=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(xw);var Sw=[`GET`,...xw];new Set(Sw);var Cw=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function ww(e){try{return Cw.includes(new URL(e).protocol)}catch{return!1}}var Tw=v.createContext(null);Tw.displayName=`DataRouter`;var Ew=v.createContext(null);Ew.displayName=`DataRouterState`;var Dw=v.createContext(!1);function Ow(){return v.useContext(Dw)}var kw=v.createContext({isTransitioning:!1});kw.displayName=`ViewTransition`;var Aw=v.createContext(new Map);Aw.displayName=`Fetchers`;var jw=v.createContext(null);jw.displayName=`Await`;var Mw=v.createContext(null);Mw.displayName=`Navigation`;var Nw=v.createContext(null);Nw.displayName=`Location`;var Pw=v.createContext({outlet:null,matches:[],isDataRoute:!1});Pw.displayName=`Route`;var Fw=v.createContext(null);Fw.displayName=`RouteError`;var Iw=`REACT_ROUTER_ERROR`,Lw=`REDIRECT`,Rw=`ROUTE_ERROR_RESPONSE`;function zw(e){if(e.startsWith(`${Iw}:${Lw}:{`))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 Bw(e){if(e.startsWith(`${Iw}:${Rw}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new dw(t.status,t.statusText,t.data)}catch{}}function Vw(e,{relative:t}={}){SC(Hw(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=v.useContext(Mw),{hash:i,pathname:a,search:o}=Jw(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:ow([n,a])),r.createHref({pathname:s,search:o,hash:i})}function Hw(){return v.useContext(Nw)!=null}function Uw(){return SC(Hw(),`useLocation() may be used only in the context of a <Router> component.`),v.useContext(Nw).location}var Ww=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function Gw(e){v.useContext(Mw).static||v.useLayoutEffect(e)}function Kw(){let{isDataRoute:e}=v.useContext(Pw);return e?pT():qw()}function qw(){SC(Hw(),`useNavigate() may be used only in the context of a <Router> component.`);let e=v.useContext(Tw),{basename:t,navigator:n}=v.useContext(Mw),{matches:r}=v.useContext(Pw),{pathname:i}=Uw(),a=JSON.stringify(rw(r)),o=v.useRef(!1);return Gw(()=>{o.current=!0}),v.useCallback((r,s={})=>{if(CC(o.current,Ww),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=iw(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:ow([t,c.pathname])),bw(typeof r==`string`?r:DC(r),n.createHref(c),_w(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}v.createContext(null);function Jw(e,{relative:t}={}){let{matches:n}=v.useContext(Pw),{pathname:r}=Uw(),i=JSON.stringify(rw(n));return v.useMemo(()=>iw(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Yw(e,t){return Xw(e,t)}function Xw(e,t,n){SC(Hw(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=v.useContext(Mw),{matches:i}=v.useContext(Pw),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||``;hT(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=Uw(),d;if(t){let e=typeof t==`string`?OC(t):t;SC(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})):jC(e,{pathname:p});CC(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),CC(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=rT(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:ow([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:ow([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(Nw.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function Zw(){let e=fT(),t=fw(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 Qw=v.createElement(Zw,null),$w=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=Bw(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:v.createElement(Pw.Provider,{value:this.props.routeContext},v.createElement(Fw.Provider,{value:e,children:this.props.component}));return this.context?v.createElement(tT,{error:e},t):t}};$w.contextType=Dw;var eT=new WeakMap;function tT({children:e,error:t}){let{basename:n,navigator:r}=v.useContext(Mw);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=zw(t.digest);if(e){let i=eT.get(t);if(i)throw i;let a=hw(e.location,n),o=a.absoluteURL||a.to;if(bw(e.location,o,_w(r),`allow-explicit`),ww(o))throw Error(`Invalid redirect location`);if(mw&&!eT.get(t))if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw eT.set(t,n),n}return v.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function nT({routeContext:e,match:t,children:n}){let r=v.useContext(Tw);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),v.createElement(Pw.Provider,{value:e},n)}function rT(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);SC(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:pw(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||Qw,o&&(s<0&&c===0?(hT(`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(nT,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?v.createElement($w,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function iT(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function aT(e){let t=v.useContext(Tw);return SC(t,iT(e)),t}function oT(e){let t=v.useContext(Ew);return SC(t,iT(e)),t}function sT(e){let t=v.useContext(Pw);return SC(t,iT(e)),t}function cT(e){let t=sT(e),n=t.matches[t.matches.length-1];return SC(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function lT(){return cT(`useRouteId`)}function uT(){let e=oT(`useNavigation`);return v.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}function dT(){let{matches:e,loaderData:t}=oT(`useMatches`);return v.useMemo(()=>e.map(e=>NC(e,t)),[e,t])}function fT(){let e=v.useContext(Fw),t=oT(`useRouteError`),n=cT(`useRouteError`);return e===void 0?t.errors?.[n]:e}function pT(){let{router:e}=aT(`useNavigate`),t=cT(`useNavigate`),n=v.useRef(!1);return Gw(()=>{n.current=!0}),v.useCallback(async(r,i={})=>{CC(n.current,Ww),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var mT={};function hT(e,t,n){!t&&!mT[e]&&(mT[e]=!0,CC(!1,n))}v.memo(gT);function gT({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return Xw(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function _T({to:e,replace:t,state:n,relative:r}){SC(Hw(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i,navigator:a}=v.useContext(Mw);CC(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:o}=v.useContext(Pw),{pathname:s}=Uw(),c=Kw(),l=iw(e,rw(o),s,r===`path`);bw(typeof e==`string`?e:DC(e),a.createHref(l),_w(a),`reject`);let u=JSON.stringify(l);return v.useEffect(()=>{c(JSON.parse(u),{replace:t,state:n,relative:r})},[c,u,r,t,n]),null}function vT(e){SC(!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 yT({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){SC(!Hw(),`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=OC(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=v.useMemo(()=>{let e=QC(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 CC(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(Mw.Provider,{value:c},v.createElement(Nw.Provider,{children:t,value:h}))}function bT({children:e,location:t}){return Yw(xT(e),t)}v.Component;function xT(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,xT(e.props.children,i));return}SC(e.type===vT,`[${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>`),SC(!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=xT(e.props.children,i)),n.push(a)}),n}var ST=`get`,CT=`application/x-www-form-urlencoded`;function wT(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function TT(e){return wT(e)&&e.tagName.toLowerCase()===`button`}function ET(e){return wT(e)&&e.tagName.toLowerCase()===`form`}function DT(e){return wT(e)&&e.tagName.toLowerCase()===`input`}function OT(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function kT(e,t){return e.button===0&&(!t||t===`_self`)&&!OT(e)}function AT(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 jT(e,t){let n=AT(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var MT=null;function NT(){if(MT===null)try{new FormData(document.createElement(`form`),0),MT=!1}catch{MT=!0}return MT}var PT=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function FT(e){return e!=null&&!PT.has(e)?(CC(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${CT}"`),null):e}function IT(e,t){let n,r,i,a,o;if(ET(e)){let o=e.getAttribute(`action`);r=o?QC(o,t):null,n=e.getAttribute(`method`)||ST,i=FT(e.getAttribute(`enctype`))||CT,a=new FormData(e)}else if(TT(e)||DT(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?QC(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||ST,i=FT(e.getAttribute(`formenctype`))||FT(o.getAttribute(`enctype`))||CT,a=new FormData(o,e),!NT()){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(wT(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=ST,r=null,i=CT,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 LT={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},RT=/[&><\u2028\u2029]/g;function zT(e){return e.replace(RT,e=>LT[e])}function BT(e,t){if(e===!1||e==null)throw Error(t)}function VT(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&&QC(i.pathname,t)===`/`?i.pathname=`${sw(t)}/_root.${r}`:i.pathname=`${sw(i.pathname)}.${r}`,i}async function HT(e,t){if(e.id in t)return t[e.id];try{let n=await hC(()=>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 UT(e){return e!=null&&typeof e.page==`string`}function WT(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 GT(e,t,n){return XT((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await HT(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(WT).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function KT(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function qT(e,t,{includeHydrateFallback:n}={}){return JT(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 JT(e){return[...new Set(e)]}function YT(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function XT(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!UT(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(YT(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function ZT(){let e=v.useContext(Tw);return BT(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function QT(){let e=v.useContext(Ew);return BT(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var $T=v.createContext(void 0);$T.displayName=`FrameworkContext`;function eE(){let e=v.useContext($T);return BT(e,`You must render this element inside a <HydratedRouter> element`),e}function tE(e,t){let n=v.useContext($T),[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:nE(s,p),onBlur:nE(c,m),onMouseEnter:nE(l,p),onMouseLeave:nE(u,m),onTouchStart:nE(d,p)}]:[a,f,{}]:[!1,f,{}]}function nE(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function rE({page:e,...t}){let n=Ow(),{nonce:r}=eE(),{router:i}=ZT(),a=v.useMemo(()=>jC(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?v.createElement(aE,{page:e,matches:a,...t}):v.createElement(oE,{page:e,matches:a,...t})):null}function iE(e){let{manifest:t,routeModules:n}=eE(),[r,i]=v.useState([]);return v.useEffect(()=>{let r=!1;return GT(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function aE({page:e,matches:t,...n}){let r=Uw(),{future:i}=eE(),{basename:a}=ZT(),o=v.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=VT(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 oE({page:e,matches:t,...n}){let r=Uw(),{future:i,manifest:a,routeModules:o}=eE(),{basename:s}=ZT(),{loaderData:c,matches:l}=QT(),u=v.useMemo(()=>KT(e,t,l,a,r,`data`),[e,t,l,a,r]),d=v.useMemo(()=>KT(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=VT(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(()=>qT(d,a),[d,a]),m=iE(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 sE(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}v.Component;var cE=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{cE&&(window.__reactRouterVersion=`7.18.3`)}catch{}function lE({basename:e,children:t,useTransitions:n,window:r}){let i=v.useRef();i.current??=xC({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(yT,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function uE({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(yT,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}uE.displayName=`unstable_HistoryRouter`;var dE=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(Mw),y=typeof l==`string`&&gC.test(l),b=hw(l,h);l=b.to;let x=Vw(l,{relative:r}),S=Uw(),C=null;if(o){let e=iw(o,[],S.mask?S.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:ow([h,e.pathname])),C=g.createHref(e)}let[w,T,E]=tE(n,p),D=vE(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:sE(m,T),target:c,"data-discover":!y&&t===`render`?`true`:void 0});return w&&!y?v.createElement(v.Fragment,null,A,v.createElement(rE,{page:x})):A});dE.displayName=`Link`;var fE=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=Jw(a,{relative:c.relative}),d=Uw(),f=v.useContext(Ew),{navigator:p,basename:m}=v.useContext(Mw),h=f!=null&&kE(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=QC(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(dE,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});fE.displayName=`NavLink`;var pE=v.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=ST,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=v.useContext(Mw),g=SE(),_=CE(s,{relative:l}),y=o.toLowerCase()===`get`?`get`:`post`,b=typeof s==`string`&&gC.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})});pE.displayName=`Form`;function mE({getKey:e,storageKey:t,...n}){let r=v.useContext($T),{basename:i}=v.useContext(Mw),a=Uw(),o=dT();DE({getKey:e,storageKey:t});let s=v.useMemo(()=>{if(!r||!e)return null;let t=EE(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})(${zT(JSON.stringify(t||wE))}, ${zT(JSON.stringify(s))})`}})}mE.displayName=`ScrollRestoration`;function hE(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function gE(e){let t=v.useContext(Tw);return SC(t,hE(e)),t}function _E(e){let t=v.useContext(Ew);return SC(t,hE(e)),t}function vE(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=Kw(),d=Uw(),f=Jw(e,{relative:o});return v.useCallback(p=>{if(kT(p,t)){p.preventDefault();let t=n===void 0?DC(d)===DC(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 yE(e){CC(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(AT(e)),n=v.useRef(!1),r=Uw(),i=v.useMemo(()=>jT(r.search,n.current?null:t.current),[r.search]),a=Kw();return[i,v.useCallback((e,t)=>{let r=AT(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var bE=0,xE=()=>`__${String(++bE)}__`;function SE(){let{router:e}=gE(`useSubmit`),{basename:t}=v.useContext(Mw),n=lT(),r=e.fetch,i=e.navigate;return v.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=IT(e,t);if(a.navigate===!1){let e=a.fetcherKey||xE();await r(e,n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function CE(e,{relative:t}={}){let{basename:n}=v.useContext(Mw),r=v.useContext(Pw);SC(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...Jw(e||`.`,{relative:t})},o=Uw();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:ow([n,a.pathname])),DC(a)}var wE=`react-router-scroll-positions`,TE={};function EE(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:QC(e.pathname,n)||e.pathname},t)),i??=e.key,i}function DE({getKey:e,storageKey:t}={}){let{router:n}=gE(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=_E(`useScrollRestoration`),{basename:a}=v.useContext(Mw),o=Uw(),s=dT(),c=uT();v.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),OE(v.useCallback(()=>{if(c.state===`idle`){let t=EE(o,s,a,e);TE[t]=window.scrollY}try{sessionStorage.setItem(t||wE,JSON.stringify(TE))}catch(e){CC(!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||wE);e&&(TE=JSON.parse(e))}catch{}},[t]),v.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(TE,()=>window.scrollY,e?(t,n)=>EE(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{CC(!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 OE(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 kE(e,{relative:t}={}){let n=v.useContext(kw);SC(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=gE(`useViewTransitionState`),i=Jw(e,{relative:t});if(!n.isTransitioning)return!1;let a=QC(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=QC(n.nextLocation.pathname,r)||n.nextLocation.pathname;return JC(i.pathname,o)!=null||JC(i.pathname,a)!=null}var AE={userId:`userId`,accessToken:`accessToken`,refreshToken:`refreshToken`},jE=`kkk-auth-changed`,ME=()=>localStorage.getItem(AE.accessToken),NE=()=>localStorage.getItem(AE.refreshToken),PE=()=>localStorage.getItem(AE.userId),FE=()=>!!(ME()&&PE()),IE=e=>{localStorage.setItem(AE.userId,e.userId),localStorage.setItem(AE.accessToken,e.accessToken),localStorage.setItem(AE.refreshToken,e.refreshToken),window.dispatchEvent(new Event(jE))},LE=e=>{localStorage.setItem(AE.accessToken,e),window.dispatchEvent(new Event(jE))},RE=()=>{localStorage.removeItem(AE.userId),localStorage.removeItem(AE.accessToken),localStorage.removeItem(AE.refreshToken),window.dispatchEvent(new Event(jE))},zE=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 BE(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function VE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var HE={autoSleep:120,force3D:`auto`,nullTargetWarn:1,units:{lineHeight:``}},UE={duration:.5,overwrite:!1,delay:0},WE,GE,KE,qE=1e8,JE=1/qE,YE=Math.PI*2,XE=YE/4,ZE=0,QE=Math.sqrt,$E=Math.cos,eD=Math.sin,tD=function(e){return typeof e==`string`},nD=function(e){return typeof e==`function`},rD=function(e){return typeof e==`number`},iD=function(e){return e===void 0},aD=function(e){return typeof e==`object`},oD=function(e){return e!==!1},sD=function(){return typeof window<`u`},cD=function(e){return nD(e)||tD(e)},lD=typeof ArrayBuffer==`function`&&ArrayBuffer.isView||function(){},uD=Array.isArray,dD=/random\([^)]+\)/g,fD=/,\s*/g,pD=/(?:-?\.?\d|\.)+/gi,mD=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,hD=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,gD=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,_D=/[+-]=-?[.\d]+/,vD=/[^,'"\[\]\s]+/gi,yD=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,bD,xD,SD,CD,wD={},TD={},ED,DD=function(e){return(TD=aO(e,wD))&&wA},OD=function(e,t){return console.warn(`Invalid property`,e,`set to`,t,`Missing plugin? gsap.registerPlugin()`)},kD=function(e,t){return!t&&console.warn(e)},AD=function(e,t){return e&&(wD[e]=t)&&TD&&(TD[e]=t)||wD},jD=function(){return 0},MD={suppressEvents:!0,isStart:!0,kill:!1},ND={suppressEvents:!0,kill:!1},PD={suppressEvents:!0},FD={},ID=[],LD={},RD,zD={},BD={},VD=30,HD=[],UD=``,WD=function(e){var t=e[0],n,r;if(aD(t)||nD(t)||(e=[e]),!(n=(t._gsap||{}).harness)){for(r=HD.length;r--&&!HD[r].targetTest(t););n=HD[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new Pk(e[r],n)))||e.splice(r,1);return e},GD=function(e){return e._gsap||WD(HO(e))[0]._gsap},KD=function(e,t,n){return(n=e[t])&&nD(n)?e[t]():iD(n)&&e.getAttribute&&e.getAttribute(t)||n},qD=function(e,t){return(e=e.split(`,`)).forEach(t)||e},JD=function(e){return Math.round(e*1e5)/1e5||0},YD=function(e){return Math.round(e*1e7)/1e7||0},XD=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},ZD=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++r<n;);return r<n},QD=function(){var e=ID.length,t=ID.slice(0),n,r;for(LD={},ID.length=0,n=0;n<e;n++)r=t[n],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},$D=function(e){return!!(e._initted||e._startAt||e.add)},eO=function(e,t,n,r){ID.length&&!GE&&QD(),e.render(t,n,r||!!(GE&&t<0&&$D(e))),ID.length&&!GE&&QD()},tO=function(e){var t=parseFloat(e);return(t||t===0)&&(e+``).match(vD).length<2?t:tD(e)?e.trim():e},nO=function(e){return e},rO=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},iO=function(e){return function(t,n){for(var r in n)r in t||r===`duration`&&e||r===`ease`||(t[r]=n[r])}},aO=function(e,t){for(var n in t)e[n]=t[n];return e},oO=function e(t,n){for(var r in n)r!==`__proto__`&&r!==`constructor`&&r!==`prototype`&&(t[r]=aD(n[r])?e(t[r]||(t[r]={}),n[r]):n[r]);return t},sO=function(e,t){var n={},r;for(r in e)r in t||(n[r]=e[r]);return n},cO=function(e){var t=e.parent||bD,n=e.keyframes?iO(uD(e.keyframes)):rO;if(oD(e.inherit))for(;t;)n(e,t.vars.defaults),t=t.parent||t._dp;return e},lO=function(e,t){for(var n=e.length,r=n===t.length;r&&n--&&e[n]===t[n];);return n<0},uO=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},dO=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},fO=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},pO=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},mO=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},hO=function(e,t,n,r){return e._startAt&&(GE?e._startAt.revert(ND):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},gO=function e(t){return!t||t._ts&&e(t.parent)},_O=function(e){return e._repeat?vO(e._tTime,e=e.duration()+e._rDelay)*e:0},vO=function(e,t){var n=Math.floor(e=YD(e/t));return e&&n===e?n-1:n},yO=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},bO=function(e){return e._end=YD(e._start+(e._tDur/Math.abs(e._ts||e._rts||JE)||0))},xO=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=YD(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),bO(e),n._dirty||pO(n,e)),e},SO=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(n=yO(e.rawTime(),t),(!t._dur||IO(0,t.totalDuration(),n)-t._tTime>JE)&&t.render(n,!0)),pO(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=-JE}},CO=function(e,t,n,r){return t.parent&&fO(t),t._start=YD((rD(n)?n:n||e!==bD?NO(e,n,t):e._time)+t._delay),t._end=YD(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),uO(e,t,`_first`,`_last`,e._sort?`_start`:0),DO(t)||(e._recent=t),r||SO(e,t),e._ts<0&&xO(e,e._tTime),e},wO=function(e,t){return(wD.ScrollTrigger||OD(`scrollTrigger`,t))&&wD.ScrollTrigger.create(t,e)},TO=function(e,t,n,r,i){if(Uk(e,t,i),!e._initted)return 1;if(!n&&e._pt&&!GE&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&RD!==bk.frame)return ID.push(e),e._lazy=[i,r],1},EO=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},DO=function(e){var t=e.data;return t===`isFromStart`||t===`isStart`},OO=function(e,t,n,r){var i=e.ratio,a=t<0||!t&&(!e._start&&EO(e)&&!(!e._initted&&DO(e))||(e._ts<0||e._dp._ts<0)&&!DO(e))?0:1,o=e._rDelay,s=0,c,l,u;if(o&&e._repeat&&(s=IO(0,e._tDur,t),l=vO(s,o),e._yoyo&&l&1&&(a=1-a),l!==vO(e._tTime,o)&&(i=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==i||GE||r||e._zTime===JE||!t&&e._zTime){if(!e._initted&&TO(e,t,r,n,s))return;for(u=e._zTime,e._zTime=t||(n?JE: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&&hO(e,t,n,!0),e._onUpdate&&!n&&ak(e,`onUpdate`),s&&e._repeat&&!n&&e.parent&&ak(e,`onRepeat`),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&fO(e,1),!n&&!GE&&(ak(e,a?`onComplete`:`onReverseComplete`,!0),e._prom&&e._prom()))}else e._zTime||=t},kO=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}},AO=function(e,t,n,r){var i=e._repeat,a=YD(t)||0,o=e._tTime/e._tDur;return o&&!r&&(e._time*=a/e._dur),e._dur=a,e._tDur=i?i<0?1e10:YD(a*(i+1)+e._rDelay*i):a,o>0&&!r&&xO(e,e._tTime=e._tDur*o),e.parent&&bO(e),n||pO(e.parent,e),e},jO=function(e){return e instanceof Ik?pO(e):AO(e,e._dur)},MO={_start:0,endTime:jD,totalDuration:jD},NO=function e(t,n,r){var i=t.labels,a=t._recent||MO,o=t.duration()>=qE?a.endTime(!1):t._dur,s,c,l;return tD(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*(uD(r)?r[0]:r).totalDuration()),s>1?e(t,n.substr(0,s-1),r)+c:o+c)):n==null?o:+n},PO=function(e,t,n){var r=rD(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=oD(s.vars.inherit)&&s.parent;a.immediateRender=oD(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[i-1]}return new Xk(t[0],a,t[i+1])},FO=function(e,t){return e||e===0?t(e):t},IO=function(e,t,n){return n<e?e:n>t?t:n},LO=function(e,t){return!tD(e)||!(t=yD.exec(e))?``:t[1]},RO=function(e,t,n){return FO(n,function(n){return IO(e,t,n)})},zO=[].slice,BO=function(e,t){return e&&aD(e)&&`length`in e&&(!t&&!e.length||e.length-1 in e&&aD(e[0]))&&!e.nodeType&&e!==xD},VO=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(e){var r;return tD(e)&&!t||BO(e,1)?(r=n).push.apply(r,HO(e)):n.push(e)})||n},HO=function(e,t,n){return KE&&!t&&KE.selector?KE.selector(e):tD(e)&&!n&&(SD||!xk())?zO.call((t||CD).querySelectorAll(e),0):uD(e)?VO(e,n):BO(e)?zO.call(e,0):e?[e]:[]},UO=function(e){return e=HO(e)[0]||kD(`Invalid scope`)||{},function(t){var n=e.current||e.nativeElement||e;return HO(t,n.querySelectorAll?n:n===e?kD(`Invalid scope`)||CD.createElement(`div`):e)}},WO=function(e){return e.sort(function(){return .5-Math.random()})},GO=function(e){if(nD(e))return e;var t=aD(e)?e:{each:e},n=kk(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 tD(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,qE])[1],!S){for(b=-qE;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===qE?0:s?f*u/S-.5:r/S|0,b=0,x=qE,y=0;y<f;y++)g=y%S-m,_=h-(y/S|0),p[y]=v=c?Math.abs(c===`y`?_:g):QE(g*g+_*_),v>b&&(b=v),v<x&&(x=v);r===`random`&&WO(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=LO(t.amount||t.each)||0,n=n&&f<0?Ok(n):n}return f=(p[e]-p.min)/p.max||0,YD(p.b+(n?n(f):f)*p.v)+p.u}},KO=function(e){var t=10**((e+``).split(`.`)[1]||``).length;return function(n){var r=YD(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(rD(n)?0:LO(n))}},qO=function(e,t){var n=uD(e),r,i;return!n&&aD(e)&&(r=n=e.radius||qE,e.values?(e=HO(e.values),(i=!rD(e[0]))&&(r*=r)):e=KO(e.increment)),FO(t,n?nD(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=qE,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||rD(t)?s:s+LO(t)}:KO(e))},JO=function(e,t,n,r){return FO(uD(e)?!t:n===!0?!!(n=0):!r,function(){return uD(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})},YO=function(){var e=[...arguments];return function(t){return e.reduce(function(e,t){return t(e)},t)}},XO=function(e,t){return function(n){return e(parseFloat(n))+(t||LO(n))}},ZO=function(e,t,n){return nk(e,t,0,1,n)},QO=function(e,t,n){return FO(n,function(n){return e[~~t(n)]})},$O=function e(t,n,r){var i=n-t;return uD(t)?QO(t,e(0,t.length),n):FO(r,function(e){return(i+(e-t)%i)%i+t})},ek=function e(t,n,r){var i=n-t,a=i*2;return uD(t)?QO(t,e(0,t.length-1),n):FO(r,function(e){return e=(a+(e-t)%a)%a||0,t+(e>i?a-e:e)})},tk=function(e){return e.replace(dD,function(e){var t=e.indexOf(`[`)+1,n=e.substring(t||7,t?e.indexOf(`]`):e.length-1).split(fD);return JO(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},nk=function(e,t,n,r,i){var a=t-e,o=r-n;return FO(i,function(t){return n+((t-e)/a*o||0)})},rk=function e(t,n,r,i){var a=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!a){var o=tD(t),s={},c,l,u,d,f;if(r===!0&&(i=1)&&(r=null),o)t={p:t},n={p:n};else if(uD(t)&&!uD(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=aO(uD(t)?[]:{},t));if(!u){for(c in n)Rk.call(s,t,c,`get`,n[c]);a=function(e){return aA(e,s)||(o?t.p:t)}}}return FO(r,a)},ik=function(e,t,n){var r=e.labels,i=qE,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},ak=function(e,t,n){var r=e.vars,i=r[t],a=KE,o=e._ctx,s,c,l;if(i)return s=r[t+`Params`],c=r.callbackScope||e,n&&ID.length&&QD(),o&&(KE=o),l=s?i.apply(c,s):i.call(c),KE=a,l},ok=function(e){return fO(e),e.scrollTrigger&&e.scrollTrigger.kill(!!GE),e.progress()<1&&ak(e,`onInterrupt`),e},sk,ck=[],lk=function(e){if(e)if(e=!e.name&&e.default||e,sD()||e.headless){var t=e.name,n=nD(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:jD,render:aA,add:Rk,kill:sA,modifier:oA,rawVars:0},a={targetTest:0,get:0,getSetter:tA,aliases:{},register:0};if(xk(),e!==r){if(zD[t])return;rO(r,rO(sO(e,i),a)),aO(r.prototype,aO(i,sO(e,a))),zD[r.prop=t]=r,e.targetTest&&(HD.push(r),FD[t]=1),t=(t===`css`?`CSS`:t.charAt(0).toUpperCase()+t.substr(1))+`Plugin`}AD(t,r),e.register&&e.register(wA,r,uA)}else ck.push(e)},uk=255,dk={aqua:[0,uk,uk],lime:[0,uk,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,uk],navy:[0,0,128],white:[uk,uk,uk],olive:[128,128,0],yellow:[uk,uk,0],orange:[uk,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[uk,0,0],pink:[uk,192,203],cyan:[0,uk,uk],transparent:[uk,uk,uk,0]},fk=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)*uk+.5|0},pk=function(e,t,n){var r=e?rD(e)?[e>>16,e>>8&uk,e&uk]:0:dk.black,i,a,o,s,c,l,u,d,f,p;if(!r){if(e.substr(-1)===`,`&&(e=e.substr(0,e.length-1)),dk[e])r=dk[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&uk,r&uk,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&uk,e&uk]}else if(e.substr(0,3)===`hsl`){if(r=p=e.match(pD),!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]=fk(s+1/3,i,a),r[1]=fk(s,i,a),r[2]=fk(s-1/3,i,a);else if(~e.indexOf(`=`))return r=e.match(mD),n&&r.length<4&&(r[3]=1),r}else r=e.match(pD)||dk.transparent;r=r.map(Number)}return t&&!p&&(i=r[0]/uk,a=r[1]/uk,o=r[2]/uk,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},mk=function(e){var t=[],n=[],r=-1;return e.split(gk).forEach(function(e){var i=e.match(hD)||[];t.push.apply(t,i),n.push(r+=i.length+1)}),t.c=n,t},hk=function(e,t,n){var r=``,i=(e+r).match(gk),a=t?`hsla(`:`rgba(`,o=0,s,c,l,u;if(!i)return e;if(i=i.map(function(e){return(e=pk(e,t,1))&&a+(t?e[0]+`,`+e[1]+`%,`+e[2]+`%,`+e[3]:e.join(`,`))+`)`}),n&&(l=mk(e),s=n.c,s.join(r)!==l.c.join(r)))for(c=e.replace(gk,`1`).split(hD),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(gk),u=c.length-1;o<u;o++)r+=c[o]+i[o];return r+c[u]},gk=function(){var e=`(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b`,t;for(t in dk)e+=`|`+t+`\\b`;return RegExp(e+`)`,`gi`)}(),_k=/hsl[a]?\(/,vk=function(e){var t=e.join(` `),n;if(gk.lastIndex=0,gk.test(t))return n=_k.test(t),e[1]=hk(e[1],n),e[0]=hk(e[0],n,mk(e[1])),!0},yk,bk=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(){ED&&(!SD&&sD()&&(xD=SD=window,CD=xD.document||{},wD.gsap=wA,(xD.gsapVersions||=[]).push(wA.version),DD(TD||xD.GreenSockGlobals||!xD.gsap&&xD||{}),ck.forEach(lk)),u=typeof requestAnimationFrame<`u`&&requestAnimationFrame,c&&d.sleep(),l=u||function(e){return setTimeout(e,o-d.time*1e3+1|0)},yk=1,m(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(c),yk=0,l=jD},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),xk(),r},remove:function(e,t){~(t=s.indexOf(e))&&s.splice(t,1)&&p>=t&&p--},_listeners:s},d}(),xk=function(){return!yk&&bk.wake()},Sk={},Ck=/^[\d.\-M][\d.\-,\s]/,wk=/["']/g,Tk=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(wk,``).trim():+c,r=s.substr(o+1).trim();return t},Ek=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)},Dk=function(e){var t=(e+``).split(`(`),n=Sk[t[0]];return n&&t.length>1&&n.config?n.config.apply(null,~e.indexOf(`{`)?[Tk(t[1])]:Ek(e).split(`,`).map(tO)):Sk._CE&&Ck.test(e)?Sk._CE(``,e):n},Ok=function(e){return function(t){return 1-e(1-t)}},kk=function(e,t){return e&&(nD(e)?e:Sk[e]||Dk(e))||t},Ak=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 qD(e,function(e){for(var t in Sk[e]=wD[e]=i,Sk[a=e.toLowerCase()]=n,i)Sk[a+(t===`easeIn`?`.in`:t===`easeOut`?`.out`:`.inOut`)]=Sk[e+`.`+t]=i[t]}),i},jk=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},Mk=function e(t,n,r){var i=n>=1?n:1,a=(r||(t?.3:.45))/(n<1?n:1),o=a/YE*(Math.asin(1/i)||0),s=function(e){return e===1?1:i*2**(-10*e)*eD((e-o)*a)+1},c=t===`out`?s:t===`in`?function(e){return 1-s(1-e)}:jk(s);return a=YE/a,c.config=function(n,r){return e(t,n,r)},c},Nk=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)}:jk(r);return i.config=function(n){return e(t,n)},i};qD(`Linear,Quad,Cubic,Quart,Quint,Strong`,function(e,t){var n=t<5?t+1:t;Ak(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})}),Sk.Linear.easeNone=Sk.none=Sk.Linear.easeIn,Ak(`Elastic`,Mk(`in`),Mk(`out`),Mk()),(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};Ak(`Bounce`,function(e){return 1-a(1-e)},a)})(7.5625,2.75),Ak(`Expo`,function(e){return 2**(10*(e-1))*e+e*e*e*e*e*e*(1-e)}),Ak(`Circ`,function(e){return-(QE(1-e*e)-1)}),Ak(`Sine`,function(e){return e===1?1:-$E(e*XE)+1}),Ak(`Back`,Nk(`in`),Nk(`out`),Nk()),Sk.SteppedEase=Sk.steps=wD.SteppedEase={config:function(e,t){e===void 0&&(e=1);var n=1/e,r=e+ +!t,i=+!!t,a=1-JE;return function(e){return((r*IO(0,a,e)|0)+i)*n}}},UE.ease=Sk[`quad.out`],qD(`onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt`,function(e){return UD+=e+`,`+e+`Params,`});var Pk=function(e,t){this.id=ZE++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:KD,this.set=t?t.getSetter:tA},Fk=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,AO(this,+e.duration,1,1),this.data=e.data,KE&&(this._ctx=KE,KE.data.push(this)),yk||bk.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,AO(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(xk(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(xO(this,e),!n._dp||n.parent||SO(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)&&CO(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===JE||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),eO(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+_O(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)+_O(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?vO(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return this._rts===-JE?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?yO(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-JE?0:this._rts,this.totalTime(IO(-Math.abs(this._delay),this.totalDuration(),n),t!==!1),bO(this),mO(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):(xk(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==JE&&(this._tTime-=JE)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=YD(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&CO(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(oD(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?yO(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){e===void 0&&(e=PD);var t=GE;return GE=e,$D(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!==`nested`&&e.kill!==!1&&this.kill(),GE=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,jO(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,jO(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(NO(this,e),oD(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,oD(t)),this._dur||(this._zTime=-JE),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?-JE:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-JE,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)-JE)},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=nD(e)?e:nO,a=function(){var e=t.then;t.then=null,n&&n(),nD(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(){ok(this)},e}();rO(Fk.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:-JE,_prom:0,_ps:!1,_rts:1});var Ik=function(e){VE(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=oD(t.sortChildren),bD&&CO(t.parent||bD,BE(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&wO(BE(r),t.scrollTrigger),r}var n=t.prototype;return n.to=function(e,t,n){return PO(0,arguments,this),this},n.from=function(e,t,n){return PO(1,arguments,this),this},n.fromTo=function(e,t,n,r){return PO(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,cO(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new Xk(e,t,NO(this,n),1),this},n.call=function(e,t,n){return CO(this,Xk.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 Xk(e,n,NO(this,i)),this},n.staggerFrom=function(e,t,n,r,i,a,o){return n.runBackwards=1,cO(n).immediateRender=oD(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,cO(r).immediateRender=oD(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:YD(e),s=this._zTime<0!=e<0&&(this._initted||!a),c,l,u,d,f,p,m,h,g,_,v,y;if(this!==bD&&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=YD(o%f),o===i?(d=this._repeat,c=a):(_=YD(o/f),d=~~_,d&&d===_&&(c=a,d--),c>a&&(c=a)),_=vO(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:YD(d*f)),t,!a)._lock=0,this._tTime=o,!t&&this.parent&&ak(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=kO(this,YD(r),YD(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&&!_&&(ak(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=-JE);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||GE&&$D(l)),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=S?-JE:JE);break}}l=u}}if(m&&!t&&(this.pause(),m.render(c>=r?0:-JE)._zTime=c>=r?1:-1,this._ts))return this._start=g,bO(this),this.render(e,t,n);this._onUpdate&&!t&&ak(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)&&fO(this,1),!t&&!(e<0&&!r)&&(o||r||!i)&&(ak(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(rD(t)||(t=NO(this,t,e)),!(e instanceof Fk)){if(uD(e))return e.forEach(function(e){return n.add(e,t)}),this;if(tD(e))return this.addLabel(e,t);if(nD(e))e=Xk.delayedCall(0,e);else return this}return this===e?this:CO(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=-qE);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof Xk?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 tD(e)?this.removeLabel(e):nD(e)?this.killTweensOf(e):(e.parent===this&&dO(this,e),e===this._recent&&(this._recent=this._last),pO(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=YD(bk.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]=NO(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=Xk.delayedCall(0,t||jD,n);return r.data=`isPause`,this._hasPause=1,CO(this,r,NO(this,e))},n.removePause=function(e){var t=this._first;for(e=NO(this,e);t;)t._start===e&&t.data===`isPause`&&fO(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)Vk!==r[i]&&r[i].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n=[],r=HO(e),i=this._first,a=rD(t),o;i;)i instanceof Xk?ZD(i._targets,r)&&(a?(!Vk||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=NO(n,e),i=t,a=i.startAt,o=i.onStart,s=i.onStartParams,c=i.immediateRender,l,u=Xk.to(n,rO({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())||JE,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&&AO(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,rO({startAt:{time:NO(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return e===void 0&&(e=this._time),ik(this,NO(this,e))},n.previousLabel=function(e){return e===void 0&&(e=this._time),ik(this,NO(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+JE)},n.shiftChildren=function(e,t,n){n===void 0&&(n=0);var r=this._first,i=this.labels,a;for(e=YD(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 pO(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={}),pO(this)},n.totalDuration=function(e){var t=0,n=this,r=n._last,i=qE,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,CO(n,r,o-r._delay,1)._lock=0):i=o,o<0&&r._ts&&(t-=o,(!s&&!n._dp||s&&s.smoothChildTiming)&&(n._start+=YD(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;AO(n,n===bD&&n._time>t?n._time:t,1,1),n._dirty=0}return n._tDur},t.updateRoot=function(e){if(bD._ts&&(eO(bD,yO(e,bD)),RD=bk.frame),bk.frame>=VD){VD+=HE.autoSleep||120;var t=bD._first;if((!t||!t._ts)&&HE.autoSleep&&bk._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||bk.sleep()}}},t}(Fk);rO(Ik.prototype,{_lock:0,_hasPause:0,_forcing:0});var Lk=function(e,t,n,r,i,a,o){var s=new uA(this._pt,e,t,0,1,iA,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=tk(r)),a&&(_=[n,r],a(_,e,t),n=_[0],r=_[1]),d=n.match(gD)||[];u=gD.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)===`=`?XD(h,p)-h:parseFloat(p)-h,m:f&&f<4?Math.round:0},c=gD.lastIndex);return s.c=c<r.length?r.substring(c,r.length):``,s.fp=o,(_D.test(r)||g)&&(s.e=0),this._pt=s,s},Rk=function(e,t,n,r,i,a,o,s,c,l){nD(r)&&(r=r(i||0,e,a));var u=e[t],d=n===`get`?nD(u)?c?e[t.indexOf(`set`)||!nD(e[`get`+t.substr(3)])?t:`get`+t.substr(3)](c):e[t]():u:n,f=nD(u)?c?$k:Qk:Zk,p;if(tD(r)&&(~r.indexOf(`random(`)&&(r=tk(r)),r.charAt(1)===`=`&&(p=XD(d,r)+(LO(d)||0),(p||p===0)&&(r=p))),!l||d!==r||Hk)return!isNaN(d*r)&&r!==``?(p=new uA(this._pt,e,t,+d||0,r-(d||0),typeof u==`boolean`?rA:nA,0,f),c&&(p.fp=c),o&&p.modifier(o,this,e),this._pt=p):(!u&&!(t in e)&&OD(t,r),Lk.call(this,e,t,d,r,f,s||HE.stringFilter,c))},zk=function(e,t,n,r,i){if(nD(e)&&(e=qk(e,i,t,n,r)),!aD(e)||e.style&&e.nodeType||uD(e)||lD(e))return tD(e)?qk(e,i,t,n,r):e;var a={},o;for(o in e)a[o]=qk(e[o],i,t,n,r);return a},Bk=function(e,t,n,r,i,a){var o,s,c,l;if(zD[e]&&(o=new zD[e]).init(i,o.rawVars?t[e]:zk(t[e],r,i,a,n),n,r,a)!==!1&&(n._pt=s=new uA(n._pt,i,e,0,1,o.render,o,0,o.priority),n!==sk))for(c=n._ptLookup[n._targets.indexOf(i)],l=o._props.length;l--;)c[o._props[l]]=s;return o},Vk,Hk,Uk=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`&&!WE,b=t.timeline,x=i.easeReverse||d,S,C,w,T,E,D,O,k,A,j,M,N,P;if(b&&(!f||!a)&&(a=`none`),t._ease=kk(a,UE.ease),t._rEase=x&&(kk(x)||t._ease),t._from=!b&&!!i.runBackwards,t._from&&(t.ratio=1),!b||f&&!i.stagger){if(k=g[0]?GD(g[0]).harness:0,N=k&&i[k.prop],S=sO(i,FD),h&&(h._zTime<0&&h.progress(1),n<0&&u&&s&&!p?h.render(-1,!0):h.revert(u&&m?ND:MD),h._lazy=0),o){if(fO(t._startAt=Xk.set(g,rO({data:`isStart`,overwrite:!1,parent:_,immediateRender:!0,lazy:!h&&oD(c),startAt:null,delay:0,onUpdate:l&&function(){return ak(t,`onUpdate`)},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,n<0&&(GE||!s&&!p)&&t._startAt.revert(ND),s&&m&&n<=0&&r<=0){n&&(t._zTime=n);return}}else if(u&&m&&!h){if(n&&(s=!1),w=rO({overwrite:!1,data:`isFromStart`,lazy:s&&!h&&oD(c),immediateRender:s,stagger:0,parent:_},S),N&&(w[k.prop]=N),fO(t._startAt=Xk.set(g,w)),t._startAt._dp=0,t._startAt._sat=t,n<0&&(GE?t._startAt.revert(ND):t._startAt.render(-1,!0)),t._zTime=n,!s)e(t._startAt,JE,JE);else if(!n)return}for(t._pt=t._ptCache=0,c=m&&oD(c)||c&&!m,C=0;C<g.length;C++){if(E=g[C],O=E._gsap||WD(g)[C]._gsap,t._ptLookup[C]=j={},LD[O.id]&&ID.length&&QD(),M=v===g?C:v.indexOf(E),k&&(A=new k).init(E,N||S,t,M,v)!==!1&&(t._pt=T=new uA(t._pt,E,A.name,0,1,A.render,A,0,A.priority),A._props.forEach(function(e){j[e]=T}),A.priority&&(D=1)),!k||N)for(w in S)zD[w]&&(A=Bk(w,S,t,M,E,v))?A.priority&&(D=1):j[w]=T=Rk.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&&(Vk=t,bD.killTweensOf(E,j,t.globalTime(n)),P=!t.parent,Vk=0),t._pt&&c&&(LD[O.id]=1)}D&&lA(t),t._onInit&&t._onInit(t)}t._onUpdate=l,t._initted=(!t._op||t._pt)&&!P,f&&n<=0&&b.render(qE,!0,!0)},Wk=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 Hk=1,e.vars[t]=`+=0`,Uk(e,o),Hk=0,s?kD(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&&=JD(n)+LO(u.e),u.b&&=l.s+LO(u.b)},Gk=function(e,t){var n=e[0]?GD(e[0]).harness:0,r=n&&n.aliases,i,a,o,s;if(!r)return t;for(a in i=aO({},t),r)if(a in i)for(s=r[a].split(`,`),o=s.length;o--;)i[s[o]]=i[a];return i},Kk=function(e,t,n,r){var i=t.ease||r||`power1.inOut`,a,o;if(uD(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})},qk=function(e,t,n,r,i){return nD(e)?e.call(t,n,r,i):tD(e)&&~e.indexOf(`random(`)?tk(e):e},Jk=UD+`repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert`,Yk={};qD(Jk+`,id,stagger,delay,duration,paused,scrollTrigger`,function(e){return Yk[e]=1});var Xk=function(e){VE(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:cO(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||bD,g=(uD(t)||lD(t)?rD(t[0]):`length`in n)?[t]:HO(t),_,v,y,b,x,S,C,w;if(a._targets=g.length?WD(g):kD(`GSAP target `+t+` not found. https://gsap.com`,!HE.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=d,f||u||cD(s)||cD(c)){n=a.vars;var T=n.easeReverse||n.yoyoEase;if(_=a.timeline=new Ik({data:`nested`,defaults:p||{},targets:h&&h.data===`nested`?h.vars.targets:g}),_.kill(),_.parent=_._dp=BE(a),_._start=0,u||cD(s)||cD(c)){if(b=g.length,C=u&&GO(u),aD(u))for(x in u)~Jk.indexOf(x)&&(w||={},w[x]=u[x]);for(v=0;v<b;v++)y=sO(n,Yk),y.stagger=0,T&&(y.easeReverse=T),w&&aO(y,w),S=g[v],y.duration=+qk(s,BE(a),v,S,g),y.delay=(+qk(c,BE(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=Sk.none;_.duration()?s=c=0:a.timeline=0}else if(f){cO(rO(_.vars.defaults,{ease:`none`})),_._ease=kk(f.ease||n.ease||`none`);var E=0,D,O,k;if(uD(f))f.forEach(function(e){return _.to(g,e,`>`)}),_.duration();else{for(x in y={},f)x===`ease`||x===`easeEach`||Kk(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&&!WE&&(Vk=BE(a),bD.killTweensOf(g),Vk=0),CO(h,BE(a),r),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(l||!s&&!f&&a._start===YD(h._time)&&oD(l)&&gO(BE(a))&&h.data!==`nested`)&&(a._tTime=-JE,a.render(Math.max(0,-c)||0)),m&&wO(BE(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-JE&&!o?i:e<JE?0:e,c,l,u,d,f,p,m,h;if(!a)OO(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=YD(s%d),s===i?(u=this._repeat,c=a):(f=YD(s/d),u=~~f,u&&u===f?(c=a,u--):c>a&&(c=a)),p=this._yoyo&&u&1,p&&(c=a-c),f=vO(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(YD(d*u),!0).invalidate()._lock=0)}if(!this._initted){if(TO(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&&(ak(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&&hO(this,e,t,n),ak(this,`onUpdate`)),this._repeat&&u!==f&&this.vars.onRepeat&&!t&&this.parent&&ak(this,`onRepeat`),(s===this._tDur||!s)&&this._tTime===s&&(o&&!this._onUpdate&&hO(this,e,!0,!0),(e||!a)&&(s===this._tDur&&this._ts>0||!s&&this._ts<0)&&fO(this,1),!t&&!(o&&!r)&&(s||r||p)&&(ak(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){yk||bk.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts),o;return this._initted||Uk(this,a),o=this._ease(a/this._dur),Wk(this,e,t,n,r,o,a,i)?this.resetTo(e,t,n,r,1):(xO(this,0),this.parent||uO(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?ok(this):this.scrollTrigger&&this.scrollTrigger.kill(!!GE),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,Vk&&Vk.vars.overwrite!==!0)._first||ok(this),this.parent&&n!==this.timeline.totalDuration()&&AO(this,this._dur*this.timeline._tDur/n,0,1),this}var r=this._targets,i=e?HO(e):r,a=this._ptLookup,o=this._pt,s,c,l,u,d,f,p;if((!t||t===`all`)&&lO(r,i))return t===`all`&&(this._pt=0),ok(this);for(s=this._op=this._op||[],t!==`all`&&(tD(t)&&(d={},qD(t,function(e){return d[e]=1}),t=d),t=Gk(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)&&dO(this,f,`_pt`),delete c[d]),l!==`all`&&(l[d]=1);return this._initted&&!this._pt&&o&&ok(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return PO(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 PO(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 bD.killTweensOf(e,t,n)},t}(Fk);rO(Xk.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),qD(`staggerTo,staggerFrom,staggerFromTo`,function(e){Xk[e]=function(){var t=new Ik,n=zO.call(arguments,0);return n.splice(e===`staggerFromTo`?5:4,0,0),t[e].apply(t,n)}});var Zk=function(e,t,n){return e[t]=n},Qk=function(e,t,n){return e[t](n)},$k=function(e,t,n,r){return e[t](r.fp,n)},eA=function(e,t,n){return e.setAttribute(t,n)},tA=function(e,t){return nD(e[t])?Qk:iD(e[t])&&e.setAttribute?eA:Zk},nA=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},rA=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},iA=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)},aA=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},oA=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},sA=function(e){for(var t=this._pt,n,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?dO(this,t,`_pt`):t.dep||(n=1),t=r;return!n},cA=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},lA=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},uA=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||nA,this.d=o||this,this.set=s||Zk,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=cA,this.m=e,this.mt=n,this.tween=t},e}();qD(UD+`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 FD[e]=1}),wD.TweenMax=wD.TweenLite=Xk,wD.TimelineLite=wD.TimelineMax=Ik,bD=new Ik({sortChildren:!1,defaults:UE,autoRemoveChildren:!0,id:`root`,smoothChildTiming:!0}),HE.stringFilter=vk;var dA=[],fA={},pA=[],mA=0,hA=0,gA=function(e){return(fA[e]||pA).map(function(e){return e()})},_A=function(){var e=Date.now(),t=[];e-mA>2&&(gA(`matchMediaInit`),dA.forEach(function(e){var n=e.queries,r=e.conditions,i,a,o,s;for(a in n)i=xD.matchMedia(n[a]).matches,i&&(o=1),i!==r[a]&&(r[a]=i,s=1);s&&(e.revert(),o&&t.push(e))}),gA(`matchMediaRevert`),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),mA=e,gA(`matchMedia`))},vA=function(){function e(e,t){this.selector=t&&UO(t),this.data=[],this._r=[],this.isReverted=!1,this.id=hA++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){nD(e)&&(n=t,t=e,e=nD);var r=this,i=function(){var e=KE,i=r.selector,a;return e&&e!==r&&e.data.push(r),n&&(r.selector=UO(n)),KE=r,a=t.apply(r,arguments),nD(a)&&r._r.push(a),KE=e,r.selector=i,r.isReverted=!1,a};return r.last=i,e===nD?i(r,function(e){return r.add(null,e)}):e?r[e]=i:i},t.ignore=function(e){var t=KE;KE=null,e(this),KE=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof Xk&&!(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 Ik?i.data!==`nested`&&(i.scrollTrigger&&i.scrollTrigger.revert(),i.kill()):!(i instanceof Xk)&&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=dA.length;r--;)dA[r].id===this.id&&dA.splice(r,1)},t.revert=function(e){this.kill(e||{})},e}(),yA=function(){function e(e){this.contexts=[],this.scope=e,KE&&KE.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){aD(e)||(e={matches:e});var r=new vA(0,n||this.scope),i=r.conditions={},a,o,s;for(o in KE&&!r.selector&&(r.selector=KE.selector),this.contexts.push(r),t=r.add(`onMatch`,t),r.queries=e,e)o===`all`?s=1:(a=xD.matchMedia(e[o]),a&&(dA.indexOf(r)<0&&dA.push(r),(i[o]=a.matches)&&(s=1),a.addListener?a.addListener(_A):a.addEventListener(`change`,_A)));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}(),bA={registerPlugin:function(){[...arguments].forEach(function(e){return lk(e)})},timeline:function(e){return new Ik(e)},getTweensOf:function(e,t){return bD.getTweensOf(e,t)},getProperty:function(e,t,n,r){tD(e)&&(e=HO(e)[0]);var i=GD(e||{}).get,a=n?nO:tO;return n===`native`&&(n=``),e&&(t?a((zD[t]&&zD[t].get||i)(e,t,n,r)):function(t,n,r){return a((zD[t]&&zD[t].get||i)(e,t,n,r))})},quickSetter:function(e,t,n){if(e=HO(e),e.length>1){var r=e.map(function(e){return wA.quickSetter(e,t,n)}),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}e=e[0]||{};var a=zD[t],o=GD(e),s=o.harness&&(o.harness.aliases||{})[t]||t,c=a?function(t){var r=new a;sk._pt=0,r.init(e,n?t+n:t,sk,0,[e]),r.render(1,r),sk._pt&&aA(1,sk)}: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=wA.to(e,rO((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 bD.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=kk(e.ease,UE.ease)),oO(UE,e||{})},config:function(e){return oO(HE,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&&!zD[e]&&!wD[e]&&kD(t+` effect requires `+e+` plugin.`)}),BD[t]=function(e,t,r){return n(HO(e),rO(t||{},i),r)},a&&(Ik.prototype[t]=function(e,n,r){return this.add(BD[t](e,aD(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){Sk[e]=kk(t)},parseEase:function(e,t){return arguments.length?kk(e,t):Sk},getById:function(e){return bD.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n=new Ik(e),r,i;for(n.smoothChildTiming=oD(e.smoothChildTiming),bD.remove(n),n._dp=0,n._time=n._tTime=bD._time,r=bD._first;r;)i=r._next,(t||!(!r._dur&&r instanceof Xk&&r.vars.onComplete===r._targets[0]))&&CO(n,r,r._start-r._delay),r=i;return CO(bD,n,0),n},context:function(e,t){return e?new vA(e,t):KE},matchMedia:function(e){return new yA(e)},matchMediaRefresh:function(){return dA.forEach(function(e){var t=e.conditions,n,r;for(r in t)t[r]&&(t[r]=!1,n=1);n&&e.revert()})||_A()},addEventListener:function(e,t){var n=fA[e]||(fA[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=fA[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:$O,wrapYoyo:ek,distribute:GO,random:JO,snap:qO,normalize:ZO,getUnit:LO,clamp:RO,splitColor:pk,toArray:HO,selector:UO,mapRange:nk,pipe:YO,unitize:XO,interpolate:rk,shuffle:WO},install:DD,effects:BD,ticker:bk,updateRoot:Ik.updateRoot,plugins:zD,globalTimeline:bD,core:{PropTween:uA,globals:AD,Tween:Xk,Timeline:Ik,Animation:Fk,getCache:GD,_removeLinkedListItem:dO,reverting:function(){return GE},context:function(e){return e&&KE&&(KE.data.push(e),e._ctx=KE),KE},suppressOverwrites:function(e){return WE=e}}};qD(`to,from,fromTo,delayedCall,set,killTweensOf`,function(e){return bA[e]=Xk[e]}),bk.add(Ik.updateRoot),sk=bA.to({},{duration:0});var xA=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},SA=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=xA(a,r)),a&&a.modifier&&a.modifier(t[r],e,n[i],r))},CA=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,i;if(tD(n)&&(r={},qD(n,function(e){return r[e]=1}),n=r),t){for(i in r={},n)r[i]=t(n[i]);n=r}SA(e,n)}}}},wA=bA.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;)GE?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)}},CA(`roundProps`,KO),CA(`modifiers`),CA(`snap`,qO))||bA;Xk.version=Ik.version=wA.version=`3.15.0`,ED=1,sD()&&xk(),Sk.Power0,Sk.Power1,Sk.Power2,Sk.Power3,Sk.Power4,Sk.Linear,Sk.Quad,Sk.Cubic,Sk.Quart,Sk.Quint,Sk.Strong,Sk.Elastic,Sk.Back,Sk.SteppedEase,Sk.Bounce,Sk.Sine,Sk.Expo,Sk.Circ;var TA,EA,DA,OA,kA,AA,jA,MA=function(){return typeof window<`u`},NA={},PA=180/Math.PI,FA=Math.PI/180,IA=Math.atan2,LA=1e8,RA=/([A-Z])/g,zA=/(left|right|width|margin|padding|x)/i,BA=/[\s,\(]\S/,VA={autoAlpha:`opacity,visibility`,scale:`scaleX,scaleY`,alpha:`opacity`},HA=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},UA=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)},WA=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)},GA=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)},KA=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},qA=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},JA=function(e,t){return t.set(t.t,t.p,e===1?t.e:t.b,t)},YA=function(e,t,n){return e.style[t]=n},XA=function(e,t,n){return e.style.setProperty(t,n)},ZA=function(e,t,n){return e._gsap[t]=n},QA=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},$A=function(e,t,n,r,i){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},ej=function(e,t,n,r,i){var a=e._gsap;a[t]=n,a.renderTransform(i,a)},tj=`transform`,nj=tj+`Origin`,rj=function e(t,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(t in NA&&a){if(this.tfm=this.tfm||{},t!==`transform`)t=VA[t]||t,~t.indexOf(`,`)?t.split(`,`).forEach(function(e){return r.tfm[e]=Sj(i,e)}):this.tfm[t]=o.x?o[t]:Sj(i,t),t===nj&&(this.tfm.zOrigin=o.zOrigin);else return VA.transform.split(`,`).forEach(function(t){return e.call(r,t,n)});if(this.props.indexOf(tj)>=0)return;o.svg&&(this.svgo=i.getAttribute(`data-svg-origin`),this.props.push(nj,n,``)),t=tj}(a||n)&&this.props.push(t,n,a[t])},ij=function(e){e.translate&&(e.removeProperty(`translate`),e.removeProperty(`scale`),e.removeProperty(`rotate`))},aj=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(RA,`-$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=jA(),(!i||!i.isStart)&&!n[tj]&&(ij(n),r.zOrigin&&n[nj]&&(n[nj]+=` `+r.zOrigin+`px`,r.zOrigin=0,r.renderTransform()),r.uncache=1)}},oj=function(e,t){var n={target:e,props:[],revert:aj,save:rj};return e._gsap||wA.core.getCache(e),t&&e.style&&e.nodeType&&t.split(`,`).forEach(function(e){return n.save(e)}),n},sj,cj=function(e,t){var n=EA.createElementNS?EA.createElementNS((t||`http://www.w3.org/1999/xhtml`).replace(/^https/,`http`),e):EA.createElement(e);return n&&n.style?n:EA.createElement(e)},lj=function e(t,n,r){var i=getComputedStyle(t);return i[n]||i.getPropertyValue(n.replace(RA,`-$1`).toLowerCase())||i.getPropertyValue(n)||!r&&e(t,dj(n)||n,1)||``},uj=`O,Moz,ms,Ms,Webkit`.split(`,`),dj=function(e,t,n){var r=(t||kA).style,i=5;if(e in r&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);i--&&!(uj[i]+e in r););return i<0?null:(i===3?`ms`:i>=0?uj[i]:``)+e},fj=function(){MA()&&window.document&&(TA=window,EA=TA.document,DA=EA.documentElement,kA=cj(`div`)||{style:{}},cj(`div`),tj=dj(tj),nj=tj+`Origin`,kA.style.cssText=`border-width:0;line-height:0;position:absolute;padding:0`,sj=!!dj(`perspective`),jA=wA.core.reverting,OA=1)},pj=function(e){var t=e.ownerSVGElement,n=cj(`svg`,t&&t.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`),r=e.cloneNode(!0),i;r.style.display=`block`,n.appendChild(r),DA.appendChild(n);try{i=r.getBBox()}catch{}return n.removeChild(r),DA.removeChild(n),i},mj=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},hj=function(e){var t,n;try{t=e.getBBox()}catch{t=pj(e),n=1}return t&&(t.width||t.height)||n||(t=pj(e)),t&&!t.width&&!t.x&&!t.y?{x:+mj(e,[`x`,`cx`,`x1`])||0,y:+mj(e,[`y`,`cy`,`y1`])||0,width:0,height:0}:t},gj=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&hj(e))},_j=function(e,t){if(t){var n=e.style,r;t in NA&&t!==nj&&(t=tj),n.removeProperty?(r=t.substr(0,2),(r===`ms`||t.substr(0,6)===`webkit`)&&(t=`-`+t),n.removeProperty(r===`--`?t:t.replace(RA,`-$1`).toLowerCase())):n.removeAttribute(t)}},vj=function(e,t,n,r,i,a){var o=new uA(e._pt,t,n,0,1,a?JA:qA);return e._pt=o,o.b=r,o.e=i,e._props.push(n),o},yj={deg:1,rad:1,turn:1},bj={grid:1,flex:1},xj=function e(t,n,r,i){var a=parseFloat(r)||0,o=(r+``).trim().substr((a+``).length)||`px`,s=kA.style,c=zA.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||yj[i]||yj[o])return a;if(o!==`px`&&!f&&(a=e(t,n,r,`px`)),_=t.getCTM&&gj(t),(p||o===`%`)&&(NA[n]||~n.indexOf(`adius`)))return m=_?t.getBBox()[c?`width`:`height`]:t[u],JD(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===EA||!h.appendChild)&&(h=EA.body),g=h._gsap,g&&p&&g.width&&c&&g.time===bk.time&&!g.uncache)return JD(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:_j(t,n)}else(p||o===`%`)&&!bj[lj(h,`display`)]&&(s.position=lj(t,`position`)),h===t&&(s.position=`static`),h.appendChild(kA),m=kA[u],h.removeChild(kA),s.position=`absolute`;return c&&p&&(g=GD(h),g.time=bk.time,g.width=h[u]),JD(f?m*a/d:m&&a?d/m*a:0)},Sj=function(e,t,n,r){var i;return OA||fj(),t in VA&&t!==`transform`&&(t=VA[t],~t.indexOf(`,`)&&(t=t.split(`,`)[0])),NA[t]&&t!==`transform`?(i=Pj(e,r),i=t===`transformOrigin`?i.svg?i.origin:Fj(lj(e,nj))+` `+i.zOrigin+`px`:i[t]):(i=e.style[t],(!i||i===`auto`||r||~(i+``).indexOf(`calc(`))&&(i=Dj[t]&&Dj[t](e,t,n)||lj(e,t)||KD(e,t)||+(t===`opacity`))),n&&!~(i+``).trim().indexOf(` `)?xj(e,t,i,n)+n:i},Cj=function(e,t,n,r){if(!n||n===`none`){var i=dj(t,e,1),a=i&&lj(e,i,1);a&&a!==n?(t=i,n=a):t===`borderColor`&&(n=lj(e,`borderTopColor`))}var o=new uA(this._pt,e.style,t,0,1,iA),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=lj(e,r.substring(4,r.indexOf(`)`)))),r===`auto`&&(m=e.style[t],e.style[t]=r,r=lj(e,t)||r,m?e.style[t]=m:_j(e,t)),l=[n,r],vk(l),n=l[0],r=l[1],d=n.match(hD)||[],b=r.match(hD)||[],b.length){for(;u=hD.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=XD(f,h)+y),g=parseFloat(h),v=h.substr((g+``).length),s=hD.lastIndex-v.length,v||(v=v||HE.units[t]||y,s===r.length&&(r+=v,o.e+=v)),y!==v&&(f=xj(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`?JA:qA;return _D.test(r)&&(o.e=0),this._pt=o,o},wj={top:`0%`,bottom:`100%`,left:`0%`,right:`100%`,center:`50%`},Tj=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]=wj[n]||n,t[1]=wj[r]||r,t.join(` `)},Ej=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],NA[o]&&(s=1,o=o===`transformOrigin`?nj:tj),_j(n,o);s&&(_j(n,tj),a&&(a.svg&&n.removeAttribute(`transform`),r.scale=r.rotate=r.translate=`none`,Pj(n,1),a.uncache=1,ij(r)))}},Dj={clearProps:function(e,t,n,r,i){if(i.data!==`isFromStart`){var a=e._pt=new uA(e._pt,t,n,0,0,Ej);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},Oj=[1,0,0,1,0,0],kj={},Aj=function(e){return e===`matrix(1, 0, 0, 1, 0, 0)`||e===`none`||!e},jj=function(e){var t=lj(e,tj);return Aj(t)?Oj:t.substr(7).match(mD).map(JD)},Mj=function(e,t){var n=e._gsap||GD(e),r=e.style,i=jj(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`?Oj:i):(i===Oj&&!e.offsetParent&&e!==DA&&!n.svg&&(s=r.display,r.display=`block`,a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,o=e.nextElementSibling,DA.appendChild(e)),i=jj(e),s?r.display=s:_j(e,`display`),c&&(o?a.insertBefore(e,o):a?a.appendChild(e):DA.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},Nj=function(e,t,n,r,i,a){var o=e._gsap,s=i||Mj(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!==Oj&&(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=hj(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[nj]=`0px 0px`,a&&(vj(a,o,`xOrigin`,c,y),vj(a,o,`yOrigin`,l,b),vj(a,o,`xOffset`,u,o.xOffset),vj(a,o,`yOffset`,d,o.yOffset)),e.setAttribute(`data-svg-origin`,y+` `+b)},Pj=function(e,t){var n=e._gsap||new Pk(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=lj(e,nj)||`0`,l=u=d=m=h=g=_=v=y=0,u,d,f=p=1,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F,I,ee,te,ne,re;return n.svg=!!(e.getCTM&&gj(e)),s.translate&&((s.translate!==`none`||s.scale!==`none`||s.rotate!==`none`)&&(r[tj]=(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[tj]===`none`?``:s[tj])),r.scale=r.rotate=r.translate=`none`),S=Mj(e,n.svg),n.svg&&(n.uncache?(N=e.getBBox(),c=n.xOrigin-N.x+`px `+(n.yOrigin-N.y)+`px`,M=``):M=!t&&e.getAttribute(`data-svg-origin`),Nj(e,M||c,!!M||n.originIsAbsolute,n.smooth!==!1,S)),b=n.xOrigin||0,x=n.yOrigin||0,S!==Oj&&(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?IA(D,E)*PA:0,_=O||k?IA(O,k)*PA+m:0,_&&(p*=Math.abs(Math.cos(_*FA))),n.svg&&(l-=b-(b*E+x*O),u-=x-(b*D+x*k))):(re=S[6],te=S[7],F=S[8],I=S[9],ee=S[10],ne=S[11],l=S[12],u=S[13],d=S[14],C=IA(re,ee),h=C*PA,C&&(w=Math.cos(-C),T=Math.sin(-C),M=A*w+F*T,N=j*w+I*T,P=re*w+ee*T,F=A*-T+F*w,I=j*-T+I*w,ee=re*-T+ee*w,ne=te*-T+ne*w,A=M,j=N,re=P),C=IA(-O,ee),g=C*PA,C&&(w=Math.cos(-C),T=Math.sin(-C),M=E*w-F*T,N=D*w-I*T,P=O*w-ee*T,ne=k*T+ne*w,E=M,D=N,O=P),C=IA(D,E),m=C*PA,C&&(w=Math.cos(C),T=Math.sin(C),M=E*w+D*T,N=A*w+j*T,D=D*w-E*T,j=j*w-A*T,E=M,A=N),h&&Math.abs(h)+Math.abs(m)>359.9&&(h=m=0,g=180-g),f=JD(Math.sqrt(E*E+D*D+O*O)),p=JD(Math.sqrt(j*j+re*re)),C=IA(A,j),_=Math.abs(C)>2e-4?C*PA:0,y=ne?1/(ne<0?-ne:ne):0),n.svg&&(M=e.getAttribute(`transform`),n.forceCSS=e.setAttribute(`transform`,``)||!Aj(lj(e,tj)),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=JD(f),n.scaleY=JD(p),n.rotation=JD(m)+o,n.rotationX=JD(h)+o,n.rotationY=JD(g)+o,n.skewX=_+o,n.skewY=v+o,n.transformPerspective=y+a,(n.zOrigin=parseFloat(c.split(` `)[2])||!t&&n.zOrigin||0)&&(r[nj]=Fj(c)),n.xOffset=n.yOffset=0,n.force3D=HE.force3D,n.renderTransform=n.svg?Hj:sj?Vj:Lj,n.uncache=0,n},Fj=function(e){return(e=e.split(` `))[0]+` `+e[1]},Ij=function(e,t,n){var r=LO(t);return JD(parseFloat(t)+parseFloat(xj(e,`x`,n+`px`,r)))+r},Lj=function(e,t){t.z=`0px`,t.rotationY=t.rotationX=`0deg`,t.force3D=0,Vj(e,t)},Rj=`0deg`,zj=`0px`,Bj=`) `,Vj=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!==Rj||l!==Rj)){var x=parseFloat(l)*FA,S=Math.sin(x),C=Math.cos(x),w;x=parseFloat(u)*FA,w=Math.cos(x),a=Ij(_,a,S*w*-v),o=Ij(_,o,-Math.sin(x)*-v),s=Ij(_,s,C*w*-v+v)}h!==zj&&(y+=`perspective(`+h+Bj),(r||i)&&(y+=`translate(`+r+`%, `+i+`%) `),(b||a!==zj||o!==zj||s!==zj)&&(y+=s!==zj||b?`translate3d(`+a+`, `+o+`, `+s+`) `:`translate(`+a+`, `+o+Bj),c!==Rj&&(y+=`rotate(`+c+Bj),l!==Rj&&(y+=`rotateY(`+l+Bj),u!==Rj&&(y+=`rotateX(`+u+Bj),(d!==Rj||f!==Rj)&&(y+=`skew(`+d+`, `+f+Bj),(p!==1||m!==1)&&(y+=`scale(`+p+`, `+m+Bj),_.style[tj]=y||`translate(0, 0)`},Hj=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*=FA,c*=FA,b=Math.cos(s)*u,x=Math.sin(s)*u,S=Math.sin(s-c)*-d,C=Math.cos(s-c)*d,c&&(l*=FA,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=JD(b),x=JD(x),S=JD(S),C=JD(C)):(b=u,C=d,x=S=0),(v&&!~(a+``).indexOf(`px`)||y&&!~(o+``).indexOf(`px`))&&(v=xj(f,`x`,a,`px`),y=xj(f,`y`,o,`px`)),(p||m||h||g)&&(v=JD(v+p-(p*b+m*S)+h),y=JD(y+m-(p*x+m*C)+g)),(r||i)&&(w=f.getBBox(),v=JD(v+r/100*w.width),y=JD(y+i/100*w.height)),w=`matrix(`+b+`,`+x+`,`+S+`,`+C+`,`+v+`,`+y+`)`,f.setAttribute(`transform`,w),_&&(f.style[tj]=w)},Uj=function(e,t,n,r,i){var a=360,o=tD(i),s=parseFloat(i)*(o&&~i.indexOf(`rad`)?PA: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*LA)%a-~~(s/a)*a:l===`ccw`&&s>0&&(s=(s-a*LA)%a-~~(s/a)*a)),e._pt=u=new uA(e._pt,t,n,r,s,UA),u.e=c,u.u=`deg`,e._props.push(n),u},Wj=function(e,t){for(var n in t)e[n]=t[n];return e},Gj=function(e,t,n){var r=Wj({},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[tj]=t,o=Pj(n,1),_j(n,tj),n.setAttribute(`transform`,c)):(c=getComputedStyle(n)[tj],a[tj]=t,o=Pj(n,1),a[tj]=c),NA)c=r[s],l=o[s],c!==l&&i.indexOf(s)<0&&(f=LO(c),p=LO(l),u=f===p?parseFloat(c):xj(n,s,c,p),d=parseFloat(l),e._pt=new uA(e._pt,o,s,u,d-u,HA),e._pt.u=p||0,e._props.push(s));Wj(o,r)};qD(`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});Dj[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 Sj(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 Kj={name:`css`,register:fj,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 OA||fj(),this.styles=this.styles||oj(e),C=this.styles.props,this.tween=n,t)if(m!==`autoRound`&&(l=t[m],!(zD[m]&&Bk(m,t,n,r,e,i)))){if(f=typeof l,p=Dj[m],f===`function`&&(l=l.call(n,r,e,i),f=typeof l),f===`string`&&~l.indexOf(`random(`)&&(l=tk(l)),p)p(this,e,m,l,n)&&(S=1);else if(m.substr(0,2)===`--`)c=(getComputedStyle(e).getPropertyValue(m)+``).trim(),l+=``,gk.lastIndex=0,gk.test(c)||(h=LO(c),g=LO(l),g?h!==g&&(c=xj(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],tD(c)&&~c.indexOf(`random(`)&&(c=tk(c)),LO(c+``)||c===`auto`||(c+=HE.units[m]||LO(Sj(e,m))||``),(c+``).charAt(1)===`=`&&(c=Sj(e,m))):c=Sj(e,m),d=parseFloat(c),_=f===`string`&&l.charAt(1)===`=`&&l.substr(0,2),_&&(l=l.substr(2)),u=parseFloat(l),m in VA&&(m===`autoAlpha`&&(d===1&&Sj(e,`visibility`)===`hidden`&&u&&(d=0),C.push(`visibility`,0,o.visibility),vj(this,o,`visibility`,d?`inherit`:`hidden`,u?`inherit`:`hidden`,!u)),m!==`scale`&&m!==`transform`&&(m=VA[m],~m.indexOf(`,`)&&(m=m.split(`,`)[0]))),v=m in NA,v){if(this.styles.save(m),w=l,f===`string`&&l.substring(0,6)===`var(--`){if(l=lj(e,l.substring(4,l.indexOf(`)`))),l.substring(0,5)===`calc(`){var T=e.style.perspective;e.style.perspective=l,l=lj(e,`perspective`),T?e.style.perspective=T:_j(e,`perspective`)}u=parseFloat(l)}if(y||(b=e._gsap,b.renderTransform&&!t.parseTransform||Pj(e,t.parseTransform),x=t.smoothOrigin!==!1&&b.smooth,y=this._pt=new uA(this._pt,o,tj,0,1,b.renderTransform,b,0,-1),y.dep=1),m===`scale`)this._pt=new uA(this._pt,b,`scaleY`,b.scaleY,(_?XD(b.scaleY,_+u):u)-b.scaleY||0,HA),this._pt.u=0,a.push(`scaleY`,m),m+=`X`;else if(m===`transformOrigin`){C.push(nj,0,o[nj]),l=Tj(l),b.svg?Nj(e,l,0,x,0,this):(g=parseFloat(l.split(` `)[2])||0,g!==b.zOrigin&&vj(this,b,`zOrigin`,b.zOrigin,g),vj(this,o,m,Fj(c),Fj(l)));continue}else if(m===`svgOrigin`){Nj(e,l,1,x,0,this);continue}else if(m in kj){Uj(this,b,m,d,_?XD(d,_+l):l);continue}else if(m===`smoothOrigin`){vj(this,b,`smooth`,b.smooth,l);continue}else if(m===`force3D`){b[m]=l;continue}else if(m===`transform`){Gj(this,l,e);continue}}else m in o||(m=dj(m)||m);if(v||(u||u===0)&&(d||d===0)&&!BA.test(l)&&m in o)h=(c+``).substr((d+``).length),u||=0,g=LO(l)||(m in HE.units?HE.units[m]:h),h!==g&&(d=xj(e,m,c,g)),this._pt=new uA(this._pt,v?b:o,m,d,(_?XD(d,_+u):u)-d,!v&&(g===`px`||m===`zIndex`)&&t.autoRound!==!1?KA:HA),this._pt.u=g||0,v&&w!==l?(this._pt.b=c,this._pt.e=w,this._pt.r=GA):h!==g&&g!==`%`&&(this._pt.b=c,this._pt.r=WA);else if(m in o)Cj.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`){OD(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&&lA(this)},render:function(e,t){if(t.tween._time||!jA())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:Sj,aliases:VA,getSetter:function(e,t,n){var r=VA[t];return r&&r.indexOf(`,`)<0&&(t=r),t in NA&&t!==nj&&(e._gsap.x||Sj(e,`x`))?n&&AA===n?t===`scale`?QA:ZA:(AA=n||{})&&(t===`scale`?$A:ej):e.style&&!iD(e.style[t])?YA:~t.indexOf(`-`)?XA:tA(e,t)},core:{_removeProperty:_j,_getMatrix:Mj}};wA.utils.checkPrefix=dj,wA.core.getStyleSaver=oj,(function(e,t,n,r){var i=qD(e+`,`+t+`,`+n,function(e){NA[e]=1});qD(t,function(e){HE.units[e]=`deg`,kj[e]=1}),VA[i[13]]=e+`,`+t,qD(r,function(e){var t=e.split(`:`);VA[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`),qD(`x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective`,function(e){HE.units[e]=`px`}),wA.registerPlugin(Kj);var qj=wA.registerPlugin(Kj)||wA;qj.core.Tween;var Jj=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function Yj(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:Jj(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var Xj=e=>{let t=``,n=!1;for(let r of e){if(r===`-`||r===`_`||r<=` `){n=t.length>0;continue}t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1}return t},Zj=e=>{let t=Xj(e);return t.charAt(0).toUpperCase()+t.slice(1)},Qj=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),$j={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function eM(e){return e!=null}function tM(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??$j.width,a=e.size??e.height??$j.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?Qj(...c):Qj(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??$j[`stroke-width`])*Number(e.size??e.width??$j.width)/Number(t.size??t.width??$j.width):t.strokeWidth??$j[`stroke-width`];return[`svg`,{...Object.entries($j).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&eM(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&eM(t.width)&&{[r(`width`)]:t.width},...`height`in t&&eM(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function nM(e,t={}){return tM(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var rM=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},iM=(0,v.createContext)({}),aM=()=>(0,v.useContext)(iM),oM=(0,v.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:y=``}=aM()??{},b=!!c||rM(d),[x,S,C=[]]=nM(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:Qj(y,s),hasA11yProp:b,attributes:d});return(0,v.createElement)(x,{ref:f,...S},[...C.map(([e,t])=>(0,v.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function sM(e,t=[],n=[]){let r=typeof e==`string`?Yj(e,t,n):e,i=(0,v.forwardRef)(({className:e,...t},n)=>(0,v.createElement)(oM,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=Zj(r.name)),i}var cM={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};cM.node;var lM=sM(cM),uM={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};uM.node;var dM=sM(uM),fM={name:`eye-off`,size:24,node:[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]};fM.node;var pM=sM(fM),mM={name:`eye`,size:24,node:[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};mM.node;var hM=sM(mM),gM={name:`git-compare`,size:24,node:[[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M13 6h3a2 2 0 0 1 2 2v7`,key:`1yeb86`}],[`path`,{d:`M11 18H8a2 2 0 0 1-2-2V9`,key:`19pyzm`}]]};gM.node;var _M=sM(gM),vM={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};vM.node;var yM=sM(vM),bM={name:`key-round`,size:24,node:[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]};bM.node;var xM=sM(bM),SM={name:`log-in`,size:24,node:[[`path`,{d:`m10 17 5-5-5-5`,key:`1bsop3`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`,key:`u53s6r`}]]};SM.node;var CM=sM(SM),wM={name:`pencil`,size:24,node:[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]};wM.node;var TM=sM(wM),EM={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};EM.node;var DM=sM(EM),OM={name:`rotate-ccw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]};OM.node;var kM=sM(OM),AM={name:`save`,size:24,node:[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]};AM.node;var jM=sM(AM),MM={name:`sliders-horizontal`,size:24,node:[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]};MM.node;var NM=sM(MM),PM={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]};PM.node;var FM=sM(PM),IM={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};IM.node;var LM=sM(IM);function RM(e,t){return function(){return e.apply(t,arguments)}}var{toString:zM}=Object.prototype,{getPrototypeOf:BM}=Object,{iterator:VM,toStringTag:HM}=Symbol,UM=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),WM=e=>typeof e==`string`&&(e===`__proto__`||e===`constructor`||e===`prototype`),GM=(e,t,n)=>e===Object.prototype||!n&&t===null,KM=e=>{if(!Object.isExtensible(e))return!1;let t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(WM(t))return!1;let n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&n.writable===!0})},qM=(e,t)=>{let n=e,r=[];for(;n!=null;){if(r.indexOf(n)!==-1)return!1;r.push(n);let i=BM(n);if(GM(n,i,n===e))return!1;if(UM(n,t))return!0;n=i}return!1},JM=(e,t)=>e!=null&&qM(e,t)?e[t]:void 0,YM=e=>{if(e==null||typeof e!=`object`&&typeof e!=`function`)return e;let t=BM(e);if(t===null&&KM(e))return e;let n=Object.create(null),r=Object.create(null),i=[],a=e;for(;a!=null&&i.indexOf(a)===-1;){i.push(a);let o=a===e?t:BM(a);if(GM(a,o,a===e))break;let s=Object.getOwnPropertyNames(a);Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(a));for(let t of s)WM(t)||UM(r,t)||(n[t]=e[t],r[t]=!0);a=o}return n},XM=(e=>t=>{let n=zM.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ZM=e=>(e=e.toLowerCase(),t=>XM(t)===e),QM=e=>t=>typeof t===e,{isArray:$M}=Array,eN=QM(`undefined`);function tN(e){return e!==null&&!eN(e)&&e.constructor!==null&&!eN(e.constructor)&&aN(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var nN=ZM(`ArrayBuffer`);function rN(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&nN(e.buffer),t}var iN=QM(`string`),aN=QM(`function`),oN=QM(`number`),sN=e=>typeof e==`object`&&!!e,cN=e=>e===!0||e===!1,lN=e=>{if(!sN(e))return!1;let t=BM(e);return(t===null||t===Object.prototype||BM(t)===null)&&!qM(e,HM)&&!qM(e,VM)},uN=e=>{if(!sN(e)||tN(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},dN=ZM(`Date`),fN=ZM(`File`),pN=e=>!!(e&&e.uri!==void 0),mN=e=>e&&e.getParts!==void 0,hN=ZM(`Blob`),gN=ZM(`FileList`),_N=ZM(`Set`),vN=e=>sN(e)&&aN(e.pipe);function yN(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var bN=yN(),xN=bN.FormData===void 0?void 0:bN.FormData,SN=e=>{if(!e)return!1;if(xN&&e instanceof xN)return!0;let t=BM(e);if(!t||t===Object.prototype||!aN(e.append))return!1;let n=XM(e);return n===`formdata`||n===`object`&&aN(e.toString)&&e.toString()===`[object FormData]`},CN=ZM(`URLSearchParams`),[wN,TN,EN,DN]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(ZM),ON=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function kN(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),$M(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(tN(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 AN(e,t){if(tN(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 jN=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,MN=e=>!eN(e)&&e!==jN;function NN(...e){let{caseless:t,skipUndefined:n}=MN(this)&&this||{},r={},i=(e,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=t&&typeof i==`string`&&AN(r,i)||i,o=UM(r,a)?r[a]:void 0;lN(o)&&lN(e)?r[a]=NN(o,e):lN(e)?r[a]=NN({},e):$M(e)?r[a]=e.slice():(!n||!eN(e))&&(r[a]=e)};for(let t=0,n=e.length;t<n;t++){let n=e[t];if(!n||tN(n)||(kN(n,i),typeof n!=`object`||$M(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){let t=r[e];GN.call(n,t)&&i(n[t],t)}}return r}var PN=(e,t,n,{allOwnKeys:r}={})=>(kN(t,(t,r)=>{n&&aN(t)?Object.defineProperty(e,r,{__proto__:null,value:RM(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),FN=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),IN=(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)},LN=(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&&BM(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},RN=(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},zN=e=>{if(!e)return null;if($M(e))return e;let t=e.length;if(!oN(t))return null;let n=Array(t);for(;t-->0;)n[t]=e[t];return n},BN=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&BM(Uint8Array)),VN=(e,t)=>{let n=(e&&e[VM]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},HN=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},UN=ZM(`HTMLFormElement`),WN=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),{propertyIsEnumerable:GN}=Object.prototype,KN=ZM(`RegExp`),qN=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};kN(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},JN=e=>{qN(e,(t,n)=>{if(aN(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];if(aN(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},YN=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return $M(e)?r(e):r(String(e).split(t)),n},XN=()=>{},ZN=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function QN(e){return!!(e&&aN(e.append)&&e[HM]===`FormData`&&e[VM])}var $N=e=>{let t=new WeakSet,n=e=>{if(sN(e)){if(t.has(e))return;if(tN(e))return e;if(!(`toJSON`in e)){t.add(e);let r;if(_N(e)){r=[];for(let t of e){let e=n(t);!eN(e)&&r.push(e)}}else r=$M(e)?[]:{},kN(e,(e,t)=>{let i=n(e);!eN(i)&&(r[t]=i)});return t.delete(e),r}}return e};return n(e)},eP=ZM(`AsyncFunction`),tP=e=>e&&(sN(e)||aN(e))&&aN(e.then)&&aN(e.catch),nP=((e,t)=>e?setImmediate:t?((e,t)=>(jN.addEventListener(`message`,({source:n,data:r})=>{n===jN&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),jN.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,aN(jN.postMessage)),rP=typeof queueMicrotask<`u`?queueMicrotask.bind(jN):typeof process<`u`&&process.nextTick||nP,iP=e=>e!=null&&aN(e[VM]),X={isArray:$M,isArrayBuffer:nN,isBuffer:tN,isFormData:SN,isArrayBufferView:rN,isString:iN,isNumber:oN,isBoolean:cN,isObject:sN,isPlainObject:lN,isEmptyObject:uN,isReadableStream:wN,isRequest:TN,isResponse:EN,isHeaders:DN,isUndefined:eN,isDate:dN,isFile:fN,isReactNativeBlob:pN,isReactNative:mN,isBlob:hN,isRegExp:KN,isFunction:aN,isStream:vN,isURLSearchParams:CN,isTypedArray:BN,isFileList:gN,forEach:kN,merge:NN,extend:PN,trim:ON,stripBOM:FN,inherits:IN,toFlatObject:LN,kindOf:XM,kindOfTest:ZM,endsWith:RN,toArray:zN,forEachEntry:VN,matchAll:HN,isHTMLForm:UN,hasOwnProperty:UM,hasOwnProp:UM,hasOwnInPrototypeChain:qM,getSafeProp:JM,toSafeFlatObject:YM,reduceDescriptors:qN,freezeMethods:JN,toObjectSet:YN,toCamelCase:WN,noop:XN,toFiniteNumber:ZN,findKey:AN,global:jN,isContextDefined:MN,isSpecCompliantForm:QN,toJSONObject:$N,isAsyncFn:eP,isThenable:tP,setImmediate:nP,asap:rP,isIterable:iP,isSafeIterable:e=>e!=null&&qM(e,VM)&&iP(e)},aP=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`]),oP=e=>{let t={},n,r,i;return e&&e.split(`
|
|
22
|
+
Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=Uw(),d;if(t){let e=typeof t==`string`?OC(t):t;SC(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})):jC(e,{pathname:p});CC(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),CC(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=rT(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:ow([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:ow([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(Nw.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function Zw(){let e=fT(),t=fw(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 Qw=v.createElement(Zw,null),$w=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=Bw(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:v.createElement(Pw.Provider,{value:this.props.routeContext},v.createElement(Fw.Provider,{value:e,children:this.props.component}));return this.context?v.createElement(tT,{error:e},t):t}};$w.contextType=Dw;var eT=new WeakMap;function tT({children:e,error:t}){let{basename:n,navigator:r}=v.useContext(Mw);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=zw(t.digest);if(e){let i=eT.get(t);if(i)throw i;let a=hw(e.location,n),o=a.absoluteURL||a.to;if(bw(e.location,o,_w(r),`allow-explicit`),ww(o))throw Error(`Invalid redirect location`);if(mw&&!eT.get(t))if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw eT.set(t,n),n}return v.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function nT({routeContext:e,match:t,children:n}){let r=v.useContext(Tw);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),v.createElement(Pw.Provider,{value:e},n)}function rT(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);SC(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:pw(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||Qw,o&&(s<0&&c===0?(hT(`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(nT,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?v.createElement($w,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function iT(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function aT(e){let t=v.useContext(Tw);return SC(t,iT(e)),t}function oT(e){let t=v.useContext(Ew);return SC(t,iT(e)),t}function sT(e){let t=v.useContext(Pw);return SC(t,iT(e)),t}function cT(e){let t=sT(e),n=t.matches[t.matches.length-1];return SC(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function lT(){return cT(`useRouteId`)}function uT(){let e=oT(`useNavigation`);return v.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}function dT(){let{matches:e,loaderData:t}=oT(`useMatches`);return v.useMemo(()=>e.map(e=>NC(e,t)),[e,t])}function fT(){let e=v.useContext(Fw),t=oT(`useRouteError`),n=cT(`useRouteError`);return e===void 0?t.errors?.[n]:e}function pT(){let{router:e}=aT(`useNavigate`),t=cT(`useNavigate`),n=v.useRef(!1);return Gw(()=>{n.current=!0}),v.useCallback(async(r,i={})=>{CC(n.current,Ww),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var mT={};function hT(e,t,n){!t&&!mT[e]&&(mT[e]=!0,CC(!1,n))}v.memo(gT);function gT({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return Xw(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function _T({to:e,replace:t,state:n,relative:r}){SC(Hw(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i,navigator:a}=v.useContext(Mw);CC(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:o}=v.useContext(Pw),{pathname:s}=Uw(),c=Kw(),l=iw(e,rw(o),s,r===`path`);bw(typeof e==`string`?e:DC(e),a.createHref(l),_w(a),`reject`);let u=JSON.stringify(l);return v.useEffect(()=>{c(JSON.parse(u),{replace:t,state:n,relative:r})},[c,u,r,t,n]),null}function vT(e){SC(!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 yT({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){SC(!Hw(),`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=OC(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=v.useMemo(()=>{let e=QC(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 CC(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(Mw.Provider,{value:c},v.createElement(Nw.Provider,{children:t,value:h}))}function bT({children:e,location:t}){return Yw(xT(e),t)}v.Component;function xT(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,xT(e.props.children,i));return}SC(e.type===vT,`[${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>`),SC(!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=xT(e.props.children,i)),n.push(a)}),n}var ST=`get`,CT=`application/x-www-form-urlencoded`;function wT(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function TT(e){return wT(e)&&e.tagName.toLowerCase()===`button`}function ET(e){return wT(e)&&e.tagName.toLowerCase()===`form`}function DT(e){return wT(e)&&e.tagName.toLowerCase()===`input`}function OT(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function kT(e,t){return e.button===0&&(!t||t===`_self`)&&!OT(e)}function AT(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 jT(e,t){let n=AT(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var MT=null;function NT(){if(MT===null)try{new FormData(document.createElement(`form`),0),MT=!1}catch{MT=!0}return MT}var PT=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function FT(e){return e!=null&&!PT.has(e)?(CC(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${CT}"`),null):e}function IT(e,t){let n,r,i,a,o;if(ET(e)){let o=e.getAttribute(`action`);r=o?QC(o,t):null,n=e.getAttribute(`method`)||ST,i=FT(e.getAttribute(`enctype`))||CT,a=new FormData(e)}else if(TT(e)||DT(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?QC(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||ST,i=FT(e.getAttribute(`formenctype`))||FT(o.getAttribute(`enctype`))||CT,a=new FormData(o,e),!NT()){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(wT(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=ST,r=null,i=CT,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 LT={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},RT=/[&><\u2028\u2029]/g;function zT(e){return e.replace(RT,e=>LT[e])}function BT(e,t){if(e===!1||e==null)throw Error(t)}function VT(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&&QC(i.pathname,t)===`/`?i.pathname=`${sw(t)}/_root.${r}`:i.pathname=`${sw(i.pathname)}.${r}`,i}async function HT(e,t){if(e.id in t)return t[e.id];try{let n=await hC(()=>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 UT(e){return e!=null&&typeof e.page==`string`}function WT(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 GT(e,t,n){return XT((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await HT(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(WT).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function KT(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function qT(e,t,{includeHydrateFallback:n}={}){return JT(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 JT(e){return[...new Set(e)]}function YT(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function XT(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!UT(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(YT(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function ZT(){let e=v.useContext(Tw);return BT(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function QT(){let e=v.useContext(Ew);return BT(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var $T=v.createContext(void 0);$T.displayName=`FrameworkContext`;function eE(){let e=v.useContext($T);return BT(e,`You must render this element inside a <HydratedRouter> element`),e}function tE(e,t){let n=v.useContext($T),[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:nE(s,p),onBlur:nE(c,m),onMouseEnter:nE(l,p),onMouseLeave:nE(u,m),onTouchStart:nE(d,p)}]:[a,f,{}]:[!1,f,{}]}function nE(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function rE({page:e,...t}){let n=Ow(),{nonce:r}=eE(),{router:i}=ZT(),a=v.useMemo(()=>jC(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?v.createElement(aE,{page:e,matches:a,...t}):v.createElement(oE,{page:e,matches:a,...t})):null}function iE(e){let{manifest:t,routeModules:n}=eE(),[r,i]=v.useState([]);return v.useEffect(()=>{let r=!1;return GT(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function aE({page:e,matches:t,...n}){let r=Uw(),{future:i}=eE(),{basename:a}=ZT(),o=v.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=VT(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 oE({page:e,matches:t,...n}){let r=Uw(),{future:i,manifest:a,routeModules:o}=eE(),{basename:s}=ZT(),{loaderData:c,matches:l}=QT(),u=v.useMemo(()=>KT(e,t,l,a,r,`data`),[e,t,l,a,r]),d=v.useMemo(()=>KT(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=VT(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(()=>qT(d,a),[d,a]),m=iE(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 sE(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}v.Component;var cE=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{cE&&(window.__reactRouterVersion=`7.18.4`)}catch{}function lE({basename:e,children:t,useTransitions:n,window:r}){let i=v.useRef();i.current??=xC({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(yT,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function uE({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(yT,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}uE.displayName=`unstable_HistoryRouter`;var dE=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(Mw),y=typeof l==`string`&&gC.test(l),b=hw(l,h);l=b.to;let x=Vw(l,{relative:r}),S=Uw(),C=null;if(o){let e=iw(o,[],S.mask?S.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:ow([h,e.pathname])),C=g.createHref(e)}let[w,T,E]=tE(n,p),D=vE(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:sE(m,T),target:c,"data-discover":!y&&t===`render`?`true`:void 0});return w&&!y?v.createElement(v.Fragment,null,A,v.createElement(rE,{page:x})):A});dE.displayName=`Link`;var fE=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=Jw(a,{relative:c.relative}),d=Uw(),f=v.useContext(Ew),{navigator:p,basename:m}=v.useContext(Mw),h=f!=null&&kE(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=QC(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(dE,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});fE.displayName=`NavLink`;var pE=v.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=ST,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=v.useContext(Mw),g=SE(),_=CE(s,{relative:l}),y=o.toLowerCase()===`get`?`get`:`post`,b=typeof s==`string`&&gC.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})});pE.displayName=`Form`;function mE({getKey:e,storageKey:t,...n}){let r=v.useContext($T),{basename:i}=v.useContext(Mw),a=Uw(),o=dT();DE({getKey:e,storageKey:t});let s=v.useMemo(()=>{if(!r||!e)return null;let t=EE(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})(${zT(JSON.stringify(t||wE))}, ${zT(JSON.stringify(s))})`}})}mE.displayName=`ScrollRestoration`;function hE(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function gE(e){let t=v.useContext(Tw);return SC(t,hE(e)),t}function _E(e){let t=v.useContext(Ew);return SC(t,hE(e)),t}function vE(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=Kw(),d=Uw(),f=Jw(e,{relative:o});return v.useCallback(p=>{if(kT(p,t)){p.preventDefault();let t=n===void 0?DC(d)===DC(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 yE(e){CC(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(AT(e)),n=v.useRef(!1),r=Uw(),i=v.useMemo(()=>jT(r.search,n.current?null:t.current),[r.search]),a=Kw();return[i,v.useCallback((e,t)=>{let r=AT(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var bE=0,xE=()=>`__${String(++bE)}__`;function SE(){let{router:e}=gE(`useSubmit`),{basename:t}=v.useContext(Mw),n=lT(),r=e.fetch,i=e.navigate;return v.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=IT(e,t);if(a.navigate===!1){let e=a.fetcherKey||xE();await r(e,n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function CE(e,{relative:t}={}){let{basename:n}=v.useContext(Mw),r=v.useContext(Pw);SC(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...Jw(e||`.`,{relative:t})},o=Uw();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:ow([n,a.pathname])),DC(a)}var wE=`react-router-scroll-positions`,TE={};function EE(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:QC(e.pathname,n)||e.pathname},t)),i??=e.key,i}function DE({getKey:e,storageKey:t}={}){let{router:n}=gE(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=_E(`useScrollRestoration`),{basename:a}=v.useContext(Mw),o=Uw(),s=dT(),c=uT();v.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),OE(v.useCallback(()=>{if(c.state===`idle`){let t=EE(o,s,a,e);TE[t]=window.scrollY}try{sessionStorage.setItem(t||wE,JSON.stringify(TE))}catch(e){CC(!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||wE);e&&(TE=JSON.parse(e))}catch{}},[t]),v.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(TE,()=>window.scrollY,e?(t,n)=>EE(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{CC(!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 OE(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 kE(e,{relative:t}={}){let n=v.useContext(kw);SC(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=gE(`useViewTransitionState`),i=Jw(e,{relative:t});if(!n.isTransitioning)return!1;let a=QC(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=QC(n.nextLocation.pathname,r)||n.nextLocation.pathname;return JC(i.pathname,o)!=null||JC(i.pathname,a)!=null}var AE={userId:`userId`,accessToken:`accessToken`,refreshToken:`refreshToken`},jE=`kkk-auth-changed`,ME=()=>localStorage.getItem(AE.accessToken),NE=()=>localStorage.getItem(AE.refreshToken),PE=()=>localStorage.getItem(AE.userId),FE=()=>!!(ME()&&PE()),IE=e=>{localStorage.setItem(AE.userId,e.userId),localStorage.setItem(AE.accessToken,e.accessToken),localStorage.setItem(AE.refreshToken,e.refreshToken),window.dispatchEvent(new Event(jE))},LE=e=>{localStorage.setItem(AE.accessToken,e),window.dispatchEvent(new Event(jE))},RE=()=>{localStorage.removeItem(AE.userId),localStorage.removeItem(AE.accessToken),localStorage.removeItem(AE.refreshToken),window.dispatchEvent(new Event(jE))},zE=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 BE(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function VE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var HE={autoSleep:120,force3D:`auto`,nullTargetWarn:1,units:{lineHeight:``}},UE={duration:.5,overwrite:!1,delay:0},WE,GE,KE,qE=1e8,JE=1/qE,YE=Math.PI*2,XE=YE/4,ZE=0,QE=Math.sqrt,$E=Math.cos,eD=Math.sin,tD=function(e){return typeof e==`string`},nD=function(e){return typeof e==`function`},rD=function(e){return typeof e==`number`},iD=function(e){return e===void 0},aD=function(e){return typeof e==`object`},oD=function(e){return e!==!1},sD=function(){return typeof window<`u`},cD=function(e){return nD(e)||tD(e)},lD=typeof ArrayBuffer==`function`&&ArrayBuffer.isView||function(){},uD=Array.isArray,dD=/random\([^)]+\)/g,fD=/,\s*/g,pD=/(?:-?\.?\d|\.)+/gi,mD=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,hD=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,gD=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,_D=/[+-]=-?[.\d]+/,vD=/[^,'"\[\]\s]+/gi,yD=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,bD,xD,SD,CD,wD={},TD={},ED,DD=function(e){return(TD=aO(e,wD))&&wA},OD=function(e,t){return console.warn(`Invalid property`,e,`set to`,t,`Missing plugin? gsap.registerPlugin()`)},kD=function(e,t){return!t&&console.warn(e)},AD=function(e,t){return e&&(wD[e]=t)&&TD&&(TD[e]=t)||wD},jD=function(){return 0},MD={suppressEvents:!0,isStart:!0,kill:!1},ND={suppressEvents:!0,kill:!1},PD={suppressEvents:!0},FD={},ID=[],LD={},RD,zD={},BD={},VD=30,HD=[],UD=``,WD=function(e){var t=e[0],n,r;if(aD(t)||nD(t)||(e=[e]),!(n=(t._gsap||{}).harness)){for(r=HD.length;r--&&!HD[r].targetTest(t););n=HD[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new Pk(e[r],n)))||e.splice(r,1);return e},GD=function(e){return e._gsap||WD(HO(e))[0]._gsap},KD=function(e,t,n){return(n=e[t])&&nD(n)?e[t]():iD(n)&&e.getAttribute&&e.getAttribute(t)||n},qD=function(e,t){return(e=e.split(`,`)).forEach(t)||e},JD=function(e){return Math.round(e*1e5)/1e5||0},YD=function(e){return Math.round(e*1e7)/1e7||0},XD=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},ZD=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++r<n;);return r<n},QD=function(){var e=ID.length,t=ID.slice(0),n,r;for(LD={},ID.length=0,n=0;n<e;n++)r=t[n],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},$D=function(e){return!!(e._initted||e._startAt||e.add)},eO=function(e,t,n,r){ID.length&&!GE&&QD(),e.render(t,n,r||!!(GE&&t<0&&$D(e))),ID.length&&!GE&&QD()},tO=function(e){var t=parseFloat(e);return(t||t===0)&&(e+``).match(vD).length<2?t:tD(e)?e.trim():e},nO=function(e){return e},rO=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},iO=function(e){return function(t,n){for(var r in n)r in t||r===`duration`&&e||r===`ease`||(t[r]=n[r])}},aO=function(e,t){for(var n in t)e[n]=t[n];return e},oO=function e(t,n){for(var r in n)r!==`__proto__`&&r!==`constructor`&&r!==`prototype`&&(t[r]=aD(n[r])?e(t[r]||(t[r]={}),n[r]):n[r]);return t},sO=function(e,t){var n={},r;for(r in e)r in t||(n[r]=e[r]);return n},cO=function(e){var t=e.parent||bD,n=e.keyframes?iO(uD(e.keyframes)):rO;if(oD(e.inherit))for(;t;)n(e,t.vars.defaults),t=t.parent||t._dp;return e},lO=function(e,t){for(var n=e.length,r=n===t.length;r&&n--&&e[n]===t[n];);return n<0},uO=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},dO=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},fO=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},pO=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},mO=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},hO=function(e,t,n,r){return e._startAt&&(GE?e._startAt.revert(ND):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},gO=function e(t){return!t||t._ts&&e(t.parent)},_O=function(e){return e._repeat?vO(e._tTime,e=e.duration()+e._rDelay)*e:0},vO=function(e,t){var n=Math.floor(e=YD(e/t));return e&&n===e?n-1:n},yO=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},bO=function(e){return e._end=YD(e._start+(e._tDur/Math.abs(e._ts||e._rts||JE)||0))},xO=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=YD(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),bO(e),n._dirty||pO(n,e)),e},SO=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(n=yO(e.rawTime(),t),(!t._dur||IO(0,t.totalDuration(),n)-t._tTime>JE)&&t.render(n,!0)),pO(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=-JE}},CO=function(e,t,n,r){return t.parent&&fO(t),t._start=YD((rD(n)?n:n||e!==bD?NO(e,n,t):e._time)+t._delay),t._end=YD(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),uO(e,t,`_first`,`_last`,e._sort?`_start`:0),DO(t)||(e._recent=t),r||SO(e,t),e._ts<0&&xO(e,e._tTime),e},wO=function(e,t){return(wD.ScrollTrigger||OD(`scrollTrigger`,t))&&wD.ScrollTrigger.create(t,e)},TO=function(e,t,n,r,i){if(Uk(e,t,i),!e._initted)return 1;if(!n&&e._pt&&!GE&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&RD!==bk.frame)return ID.push(e),e._lazy=[i,r],1},EO=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},DO=function(e){var t=e.data;return t===`isFromStart`||t===`isStart`},OO=function(e,t,n,r){var i=e.ratio,a=t<0||!t&&(!e._start&&EO(e)&&!(!e._initted&&DO(e))||(e._ts<0||e._dp._ts<0)&&!DO(e))?0:1,o=e._rDelay,s=0,c,l,u;if(o&&e._repeat&&(s=IO(0,e._tDur,t),l=vO(s,o),e._yoyo&&l&1&&(a=1-a),l!==vO(e._tTime,o)&&(i=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==i||GE||r||e._zTime===JE||!t&&e._zTime){if(!e._initted&&TO(e,t,r,n,s))return;for(u=e._zTime,e._zTime=t||(n?JE: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&&hO(e,t,n,!0),e._onUpdate&&!n&&ak(e,`onUpdate`),s&&e._repeat&&!n&&e.parent&&ak(e,`onRepeat`),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&fO(e,1),!n&&!GE&&(ak(e,a?`onComplete`:`onReverseComplete`,!0),e._prom&&e._prom()))}else e._zTime||=t},kO=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}},AO=function(e,t,n,r){var i=e._repeat,a=YD(t)||0,o=e._tTime/e._tDur;return o&&!r&&(e._time*=a/e._dur),e._dur=a,e._tDur=i?i<0?1e10:YD(a*(i+1)+e._rDelay*i):a,o>0&&!r&&xO(e,e._tTime=e._tDur*o),e.parent&&bO(e),n||pO(e.parent,e),e},jO=function(e){return e instanceof Ik?pO(e):AO(e,e._dur)},MO={_start:0,endTime:jD,totalDuration:jD},NO=function e(t,n,r){var i=t.labels,a=t._recent||MO,o=t.duration()>=qE?a.endTime(!1):t._dur,s,c,l;return tD(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*(uD(r)?r[0]:r).totalDuration()),s>1?e(t,n.substr(0,s-1),r)+c:o+c)):n==null?o:+n},PO=function(e,t,n){var r=rD(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=oD(s.vars.inherit)&&s.parent;a.immediateRender=oD(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[i-1]}return new Xk(t[0],a,t[i+1])},FO=function(e,t){return e||e===0?t(e):t},IO=function(e,t,n){return n<e?e:n>t?t:n},LO=function(e,t){return!tD(e)||!(t=yD.exec(e))?``:t[1]},RO=function(e,t,n){return FO(n,function(n){return IO(e,t,n)})},zO=[].slice,BO=function(e,t){return e&&aD(e)&&`length`in e&&(!t&&!e.length||e.length-1 in e&&aD(e[0]))&&!e.nodeType&&e!==xD},VO=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(e){var r;return tD(e)&&!t||BO(e,1)?(r=n).push.apply(r,HO(e)):n.push(e)})||n},HO=function(e,t,n){return KE&&!t&&KE.selector?KE.selector(e):tD(e)&&!n&&(SD||!xk())?zO.call((t||CD).querySelectorAll(e),0):uD(e)?VO(e,n):BO(e)?zO.call(e,0):e?[e]:[]},UO=function(e){return e=HO(e)[0]||kD(`Invalid scope`)||{},function(t){var n=e.current||e.nativeElement||e;return HO(t,n.querySelectorAll?n:n===e?kD(`Invalid scope`)||CD.createElement(`div`):e)}},WO=function(e){return e.sort(function(){return .5-Math.random()})},GO=function(e){if(nD(e))return e;var t=aD(e)?e:{each:e},n=kk(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 tD(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,qE])[1],!S){for(b=-qE;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===qE?0:s?f*u/S-.5:r/S|0,b=0,x=qE,y=0;y<f;y++)g=y%S-m,_=h-(y/S|0),p[y]=v=c?Math.abs(c===`y`?_:g):QE(g*g+_*_),v>b&&(b=v),v<x&&(x=v);r===`random`&&WO(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=LO(t.amount||t.each)||0,n=n&&f<0?Ok(n):n}return f=(p[e]-p.min)/p.max||0,YD(p.b+(n?n(f):f)*p.v)+p.u}},KO=function(e){var t=10**((e+``).split(`.`)[1]||``).length;return function(n){var r=YD(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(rD(n)?0:LO(n))}},qO=function(e,t){var n=uD(e),r,i;return!n&&aD(e)&&(r=n=e.radius||qE,e.values?(e=HO(e.values),(i=!rD(e[0]))&&(r*=r)):e=KO(e.increment)),FO(t,n?nD(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=qE,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||rD(t)?s:s+LO(t)}:KO(e))},JO=function(e,t,n,r){return FO(uD(e)?!t:n===!0?!!(n=0):!r,function(){return uD(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})},YO=function(){var e=[...arguments];return function(t){return e.reduce(function(e,t){return t(e)},t)}},XO=function(e,t){return function(n){return e(parseFloat(n))+(t||LO(n))}},ZO=function(e,t,n){return nk(e,t,0,1,n)},QO=function(e,t,n){return FO(n,function(n){return e[~~t(n)]})},$O=function e(t,n,r){var i=n-t;return uD(t)?QO(t,e(0,t.length),n):FO(r,function(e){return(i+(e-t)%i)%i+t})},ek=function e(t,n,r){var i=n-t,a=i*2;return uD(t)?QO(t,e(0,t.length-1),n):FO(r,function(e){return e=(a+(e-t)%a)%a||0,t+(e>i?a-e:e)})},tk=function(e){return e.replace(dD,function(e){var t=e.indexOf(`[`)+1,n=e.substring(t||7,t?e.indexOf(`]`):e.length-1).split(fD);return JO(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},nk=function(e,t,n,r,i){var a=t-e,o=r-n;return FO(i,function(t){return n+((t-e)/a*o||0)})},rk=function e(t,n,r,i){var a=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!a){var o=tD(t),s={},c,l,u,d,f;if(r===!0&&(i=1)&&(r=null),o)t={p:t},n={p:n};else if(uD(t)&&!uD(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=aO(uD(t)?[]:{},t));if(!u){for(c in n)Rk.call(s,t,c,`get`,n[c]);a=function(e){return aA(e,s)||(o?t.p:t)}}}return FO(r,a)},ik=function(e,t,n){var r=e.labels,i=qE,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},ak=function(e,t,n){var r=e.vars,i=r[t],a=KE,o=e._ctx,s,c,l;if(i)return s=r[t+`Params`],c=r.callbackScope||e,n&&ID.length&&QD(),o&&(KE=o),l=s?i.apply(c,s):i.call(c),KE=a,l},ok=function(e){return fO(e),e.scrollTrigger&&e.scrollTrigger.kill(!!GE),e.progress()<1&&ak(e,`onInterrupt`),e},sk,ck=[],lk=function(e){if(e)if(e=!e.name&&e.default||e,sD()||e.headless){var t=e.name,n=nD(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:jD,render:aA,add:Rk,kill:sA,modifier:oA,rawVars:0},a={targetTest:0,get:0,getSetter:tA,aliases:{},register:0};if(xk(),e!==r){if(zD[t])return;rO(r,rO(sO(e,i),a)),aO(r.prototype,aO(i,sO(e,a))),zD[r.prop=t]=r,e.targetTest&&(HD.push(r),FD[t]=1),t=(t===`css`?`CSS`:t.charAt(0).toUpperCase()+t.substr(1))+`Plugin`}AD(t,r),e.register&&e.register(wA,r,uA)}else ck.push(e)},uk=255,dk={aqua:[0,uk,uk],lime:[0,uk,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,uk],navy:[0,0,128],white:[uk,uk,uk],olive:[128,128,0],yellow:[uk,uk,0],orange:[uk,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[uk,0,0],pink:[uk,192,203],cyan:[0,uk,uk],transparent:[uk,uk,uk,0]},fk=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)*uk+.5|0},pk=function(e,t,n){var r=e?rD(e)?[e>>16,e>>8&uk,e&uk]:0:dk.black,i,a,o,s,c,l,u,d,f,p;if(!r){if(e.substr(-1)===`,`&&(e=e.substr(0,e.length-1)),dk[e])r=dk[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&uk,r&uk,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&uk,e&uk]}else if(e.substr(0,3)===`hsl`){if(r=p=e.match(pD),!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]=fk(s+1/3,i,a),r[1]=fk(s,i,a),r[2]=fk(s-1/3,i,a);else if(~e.indexOf(`=`))return r=e.match(mD),n&&r.length<4&&(r[3]=1),r}else r=e.match(pD)||dk.transparent;r=r.map(Number)}return t&&!p&&(i=r[0]/uk,a=r[1]/uk,o=r[2]/uk,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},mk=function(e){var t=[],n=[],r=-1;return e.split(gk).forEach(function(e){var i=e.match(hD)||[];t.push.apply(t,i),n.push(r+=i.length+1)}),t.c=n,t},hk=function(e,t,n){var r=``,i=(e+r).match(gk),a=t?`hsla(`:`rgba(`,o=0,s,c,l,u;if(!i)return e;if(i=i.map(function(e){return(e=pk(e,t,1))&&a+(t?e[0]+`,`+e[1]+`%,`+e[2]+`%,`+e[3]:e.join(`,`))+`)`}),n&&(l=mk(e),s=n.c,s.join(r)!==l.c.join(r)))for(c=e.replace(gk,`1`).split(hD),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(gk),u=c.length-1;o<u;o++)r+=c[o]+i[o];return r+c[u]},gk=function(){var e=`(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b`,t;for(t in dk)e+=`|`+t+`\\b`;return RegExp(e+`)`,`gi`)}(),_k=/hsl[a]?\(/,vk=function(e){var t=e.join(` `),n;if(gk.lastIndex=0,gk.test(t))return n=_k.test(t),e[1]=hk(e[1],n),e[0]=hk(e[0],n,mk(e[1])),!0},yk,bk=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(){ED&&(!SD&&sD()&&(xD=SD=window,CD=xD.document||{},wD.gsap=wA,(xD.gsapVersions||=[]).push(wA.version),DD(TD||xD.GreenSockGlobals||!xD.gsap&&xD||{}),ck.forEach(lk)),u=typeof requestAnimationFrame<`u`&&requestAnimationFrame,c&&d.sleep(),l=u||function(e){return setTimeout(e,o-d.time*1e3+1|0)},yk=1,m(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(c),yk=0,l=jD},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),xk(),r},remove:function(e,t){~(t=s.indexOf(e))&&s.splice(t,1)&&p>=t&&p--},_listeners:s},d}(),xk=function(){return!yk&&bk.wake()},Sk={},Ck=/^[\d.\-M][\d.\-,\s]/,wk=/["']/g,Tk=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(wk,``).trim():+c,r=s.substr(o+1).trim();return t},Ek=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)},Dk=function(e){var t=(e+``).split(`(`),n=Sk[t[0]];return n&&t.length>1&&n.config?n.config.apply(null,~e.indexOf(`{`)?[Tk(t[1])]:Ek(e).split(`,`).map(tO)):Sk._CE&&Ck.test(e)?Sk._CE(``,e):n},Ok=function(e){return function(t){return 1-e(1-t)}},kk=function(e,t){return e&&(nD(e)?e:Sk[e]||Dk(e))||t},Ak=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 qD(e,function(e){for(var t in Sk[e]=wD[e]=i,Sk[a=e.toLowerCase()]=n,i)Sk[a+(t===`easeIn`?`.in`:t===`easeOut`?`.out`:`.inOut`)]=Sk[e+`.`+t]=i[t]}),i},jk=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},Mk=function e(t,n,r){var i=n>=1?n:1,a=(r||(t?.3:.45))/(n<1?n:1),o=a/YE*(Math.asin(1/i)||0),s=function(e){return e===1?1:i*2**(-10*e)*eD((e-o)*a)+1},c=t===`out`?s:t===`in`?function(e){return 1-s(1-e)}:jk(s);return a=YE/a,c.config=function(n,r){return e(t,n,r)},c},Nk=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)}:jk(r);return i.config=function(n){return e(t,n)},i};qD(`Linear,Quad,Cubic,Quart,Quint,Strong`,function(e,t){var n=t<5?t+1:t;Ak(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})}),Sk.Linear.easeNone=Sk.none=Sk.Linear.easeIn,Ak(`Elastic`,Mk(`in`),Mk(`out`),Mk()),(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};Ak(`Bounce`,function(e){return 1-a(1-e)},a)})(7.5625,2.75),Ak(`Expo`,function(e){return 2**(10*(e-1))*e+e*e*e*e*e*e*(1-e)}),Ak(`Circ`,function(e){return-(QE(1-e*e)-1)}),Ak(`Sine`,function(e){return e===1?1:-$E(e*XE)+1}),Ak(`Back`,Nk(`in`),Nk(`out`),Nk()),Sk.SteppedEase=Sk.steps=wD.SteppedEase={config:function(e,t){e===void 0&&(e=1);var n=1/e,r=e+ +!t,i=+!!t,a=1-JE;return function(e){return((r*IO(0,a,e)|0)+i)*n}}},UE.ease=Sk[`quad.out`],qD(`onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt`,function(e){return UD+=e+`,`+e+`Params,`});var Pk=function(e,t){this.id=ZE++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:KD,this.set=t?t.getSetter:tA},Fk=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,AO(this,+e.duration,1,1),this.data=e.data,KE&&(this._ctx=KE,KE.data.push(this)),yk||bk.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,AO(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(xk(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(xO(this,e),!n._dp||n.parent||SO(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)&&CO(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===JE||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),eO(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+_O(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)+_O(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?vO(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return this._rts===-JE?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?yO(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-JE?0:this._rts,this.totalTime(IO(-Math.abs(this._delay),this.totalDuration(),n),t!==!1),bO(this),mO(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):(xk(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==JE&&(this._tTime-=JE)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=YD(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&CO(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(oD(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?yO(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){e===void 0&&(e=PD);var t=GE;return GE=e,$D(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!==`nested`&&e.kill!==!1&&this.kill(),GE=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,jO(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,jO(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(NO(this,e),oD(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,oD(t)),this._dur||(this._zTime=-JE),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?-JE:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-JE,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)-JE)},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=nD(e)?e:nO,a=function(){var e=t.then;t.then=null,n&&n(),nD(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(){ok(this)},e}();rO(Fk.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:-JE,_prom:0,_ps:!1,_rts:1});var Ik=function(e){VE(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=oD(t.sortChildren),bD&&CO(t.parent||bD,BE(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&wO(BE(r),t.scrollTrigger),r}var n=t.prototype;return n.to=function(e,t,n){return PO(0,arguments,this),this},n.from=function(e,t,n){return PO(1,arguments,this),this},n.fromTo=function(e,t,n,r){return PO(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,cO(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new Xk(e,t,NO(this,n),1),this},n.call=function(e,t,n){return CO(this,Xk.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 Xk(e,n,NO(this,i)),this},n.staggerFrom=function(e,t,n,r,i,a,o){return n.runBackwards=1,cO(n).immediateRender=oD(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,cO(r).immediateRender=oD(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:YD(e),s=this._zTime<0!=e<0&&(this._initted||!a),c,l,u,d,f,p,m,h,g,_,v,y;if(this!==bD&&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=YD(o%f),o===i?(d=this._repeat,c=a):(_=YD(o/f),d=~~_,d&&d===_&&(c=a,d--),c>a&&(c=a)),_=vO(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:YD(d*f)),t,!a)._lock=0,this._tTime=o,!t&&this.parent&&ak(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=kO(this,YD(r),YD(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&&!_&&(ak(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=-JE);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||GE&&$D(l)),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=S?-JE:JE);break}}l=u}}if(m&&!t&&(this.pause(),m.render(c>=r?0:-JE)._zTime=c>=r?1:-1,this._ts))return this._start=g,bO(this),this.render(e,t,n);this._onUpdate&&!t&&ak(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)&&fO(this,1),!t&&!(e<0&&!r)&&(o||r||!i)&&(ak(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(rD(t)||(t=NO(this,t,e)),!(e instanceof Fk)){if(uD(e))return e.forEach(function(e){return n.add(e,t)}),this;if(tD(e))return this.addLabel(e,t);if(nD(e))e=Xk.delayedCall(0,e);else return this}return this===e?this:CO(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=-qE);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof Xk?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 tD(e)?this.removeLabel(e):nD(e)?this.killTweensOf(e):(e.parent===this&&dO(this,e),e===this._recent&&(this._recent=this._last),pO(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=YD(bk.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]=NO(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=Xk.delayedCall(0,t||jD,n);return r.data=`isPause`,this._hasPause=1,CO(this,r,NO(this,e))},n.removePause=function(e){var t=this._first;for(e=NO(this,e);t;)t._start===e&&t.data===`isPause`&&fO(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)Vk!==r[i]&&r[i].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n=[],r=HO(e),i=this._first,a=rD(t),o;i;)i instanceof Xk?ZD(i._targets,r)&&(a?(!Vk||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=NO(n,e),i=t,a=i.startAt,o=i.onStart,s=i.onStartParams,c=i.immediateRender,l,u=Xk.to(n,rO({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())||JE,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&&AO(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,rO({startAt:{time:NO(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return e===void 0&&(e=this._time),ik(this,NO(this,e))},n.previousLabel=function(e){return e===void 0&&(e=this._time),ik(this,NO(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+JE)},n.shiftChildren=function(e,t,n){n===void 0&&(n=0);var r=this._first,i=this.labels,a;for(e=YD(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 pO(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={}),pO(this)},n.totalDuration=function(e){var t=0,n=this,r=n._last,i=qE,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,CO(n,r,o-r._delay,1)._lock=0):i=o,o<0&&r._ts&&(t-=o,(!s&&!n._dp||s&&s.smoothChildTiming)&&(n._start+=YD(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;AO(n,n===bD&&n._time>t?n._time:t,1,1),n._dirty=0}return n._tDur},t.updateRoot=function(e){if(bD._ts&&(eO(bD,yO(e,bD)),RD=bk.frame),bk.frame>=VD){VD+=HE.autoSleep||120;var t=bD._first;if((!t||!t._ts)&&HE.autoSleep&&bk._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||bk.sleep()}}},t}(Fk);rO(Ik.prototype,{_lock:0,_hasPause:0,_forcing:0});var Lk=function(e,t,n,r,i,a,o){var s=new uA(this._pt,e,t,0,1,iA,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=tk(r)),a&&(_=[n,r],a(_,e,t),n=_[0],r=_[1]),d=n.match(gD)||[];u=gD.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)===`=`?XD(h,p)-h:parseFloat(p)-h,m:f&&f<4?Math.round:0},c=gD.lastIndex);return s.c=c<r.length?r.substring(c,r.length):``,s.fp=o,(_D.test(r)||g)&&(s.e=0),this._pt=s,s},Rk=function(e,t,n,r,i,a,o,s,c,l){nD(r)&&(r=r(i||0,e,a));var u=e[t],d=n===`get`?nD(u)?c?e[t.indexOf(`set`)||!nD(e[`get`+t.substr(3)])?t:`get`+t.substr(3)](c):e[t]():u:n,f=nD(u)?c?$k:Qk:Zk,p;if(tD(r)&&(~r.indexOf(`random(`)&&(r=tk(r)),r.charAt(1)===`=`&&(p=XD(d,r)+(LO(d)||0),(p||p===0)&&(r=p))),!l||d!==r||Hk)return!isNaN(d*r)&&r!==``?(p=new uA(this._pt,e,t,+d||0,r-(d||0),typeof u==`boolean`?rA:nA,0,f),c&&(p.fp=c),o&&p.modifier(o,this,e),this._pt=p):(!u&&!(t in e)&&OD(t,r),Lk.call(this,e,t,d,r,f,s||HE.stringFilter,c))},zk=function(e,t,n,r,i){if(nD(e)&&(e=qk(e,i,t,n,r)),!aD(e)||e.style&&e.nodeType||uD(e)||lD(e))return tD(e)?qk(e,i,t,n,r):e;var a={},o;for(o in e)a[o]=qk(e[o],i,t,n,r);return a},Bk=function(e,t,n,r,i,a){var o,s,c,l;if(zD[e]&&(o=new zD[e]).init(i,o.rawVars?t[e]:zk(t[e],r,i,a,n),n,r,a)!==!1&&(n._pt=s=new uA(n._pt,i,e,0,1,o.render,o,0,o.priority),n!==sk))for(c=n._ptLookup[n._targets.indexOf(i)],l=o._props.length;l--;)c[o._props[l]]=s;return o},Vk,Hk,Uk=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`&&!WE,b=t.timeline,x=i.easeReverse||d,S,C,w,T,E,D,O,k,A,j,M,N,P;if(b&&(!f||!a)&&(a=`none`),t._ease=kk(a,UE.ease),t._rEase=x&&(kk(x)||t._ease),t._from=!b&&!!i.runBackwards,t._from&&(t.ratio=1),!b||f&&!i.stagger){if(k=g[0]?GD(g[0]).harness:0,N=k&&i[k.prop],S=sO(i,FD),h&&(h._zTime<0&&h.progress(1),n<0&&u&&s&&!p?h.render(-1,!0):h.revert(u&&m?ND:MD),h._lazy=0),o){if(fO(t._startAt=Xk.set(g,rO({data:`isStart`,overwrite:!1,parent:_,immediateRender:!0,lazy:!h&&oD(c),startAt:null,delay:0,onUpdate:l&&function(){return ak(t,`onUpdate`)},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,n<0&&(GE||!s&&!p)&&t._startAt.revert(ND),s&&m&&n<=0&&r<=0){n&&(t._zTime=n);return}}else if(u&&m&&!h){if(n&&(s=!1),w=rO({overwrite:!1,data:`isFromStart`,lazy:s&&!h&&oD(c),immediateRender:s,stagger:0,parent:_},S),N&&(w[k.prop]=N),fO(t._startAt=Xk.set(g,w)),t._startAt._dp=0,t._startAt._sat=t,n<0&&(GE?t._startAt.revert(ND):t._startAt.render(-1,!0)),t._zTime=n,!s)e(t._startAt,JE,JE);else if(!n)return}for(t._pt=t._ptCache=0,c=m&&oD(c)||c&&!m,C=0;C<g.length;C++){if(E=g[C],O=E._gsap||WD(g)[C]._gsap,t._ptLookup[C]=j={},LD[O.id]&&ID.length&&QD(),M=v===g?C:v.indexOf(E),k&&(A=new k).init(E,N||S,t,M,v)!==!1&&(t._pt=T=new uA(t._pt,E,A.name,0,1,A.render,A,0,A.priority),A._props.forEach(function(e){j[e]=T}),A.priority&&(D=1)),!k||N)for(w in S)zD[w]&&(A=Bk(w,S,t,M,E,v))?A.priority&&(D=1):j[w]=T=Rk.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&&(Vk=t,bD.killTweensOf(E,j,t.globalTime(n)),P=!t.parent,Vk=0),t._pt&&c&&(LD[O.id]=1)}D&&lA(t),t._onInit&&t._onInit(t)}t._onUpdate=l,t._initted=(!t._op||t._pt)&&!P,f&&n<=0&&b.render(qE,!0,!0)},Wk=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 Hk=1,e.vars[t]=`+=0`,Uk(e,o),Hk=0,s?kD(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&&=JD(n)+LO(u.e),u.b&&=l.s+LO(u.b)},Gk=function(e,t){var n=e[0]?GD(e[0]).harness:0,r=n&&n.aliases,i,a,o,s;if(!r)return t;for(a in i=aO({},t),r)if(a in i)for(s=r[a].split(`,`),o=s.length;o--;)i[s[o]]=i[a];return i},Kk=function(e,t,n,r){var i=t.ease||r||`power1.inOut`,a,o;if(uD(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})},qk=function(e,t,n,r,i){return nD(e)?e.call(t,n,r,i):tD(e)&&~e.indexOf(`random(`)?tk(e):e},Jk=UD+`repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert`,Yk={};qD(Jk+`,id,stagger,delay,duration,paused,scrollTrigger`,function(e){return Yk[e]=1});var Xk=function(e){VE(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:cO(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||bD,g=(uD(t)||lD(t)?rD(t[0]):`length`in n)?[t]:HO(t),_,v,y,b,x,S,C,w;if(a._targets=g.length?WD(g):kD(`GSAP target `+t+` not found. https://gsap.com`,!HE.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=d,f||u||cD(s)||cD(c)){n=a.vars;var T=n.easeReverse||n.yoyoEase;if(_=a.timeline=new Ik({data:`nested`,defaults:p||{},targets:h&&h.data===`nested`?h.vars.targets:g}),_.kill(),_.parent=_._dp=BE(a),_._start=0,u||cD(s)||cD(c)){if(b=g.length,C=u&&GO(u),aD(u))for(x in u)~Jk.indexOf(x)&&(w||={},w[x]=u[x]);for(v=0;v<b;v++)y=sO(n,Yk),y.stagger=0,T&&(y.easeReverse=T),w&&aO(y,w),S=g[v],y.duration=+qk(s,BE(a),v,S,g),y.delay=(+qk(c,BE(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=Sk.none;_.duration()?s=c=0:a.timeline=0}else if(f){cO(rO(_.vars.defaults,{ease:`none`})),_._ease=kk(f.ease||n.ease||`none`);var E=0,D,O,k;if(uD(f))f.forEach(function(e){return _.to(g,e,`>`)}),_.duration();else{for(x in y={},f)x===`ease`||x===`easeEach`||Kk(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&&!WE&&(Vk=BE(a),bD.killTweensOf(g),Vk=0),CO(h,BE(a),r),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(l||!s&&!f&&a._start===YD(h._time)&&oD(l)&&gO(BE(a))&&h.data!==`nested`)&&(a._tTime=-JE,a.render(Math.max(0,-c)||0)),m&&wO(BE(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-JE&&!o?i:e<JE?0:e,c,l,u,d,f,p,m,h;if(!a)OO(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=YD(s%d),s===i?(u=this._repeat,c=a):(f=YD(s/d),u=~~f,u&&u===f?(c=a,u--):c>a&&(c=a)),p=this._yoyo&&u&1,p&&(c=a-c),f=vO(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(YD(d*u),!0).invalidate()._lock=0)}if(!this._initted){if(TO(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&&(ak(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&&hO(this,e,t,n),ak(this,`onUpdate`)),this._repeat&&u!==f&&this.vars.onRepeat&&!t&&this.parent&&ak(this,`onRepeat`),(s===this._tDur||!s)&&this._tTime===s&&(o&&!this._onUpdate&&hO(this,e,!0,!0),(e||!a)&&(s===this._tDur&&this._ts>0||!s&&this._ts<0)&&fO(this,1),!t&&!(o&&!r)&&(s||r||p)&&(ak(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){yk||bk.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts),o;return this._initted||Uk(this,a),o=this._ease(a/this._dur),Wk(this,e,t,n,r,o,a,i)?this.resetTo(e,t,n,r,1):(xO(this,0),this.parent||uO(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?ok(this):this.scrollTrigger&&this.scrollTrigger.kill(!!GE),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,Vk&&Vk.vars.overwrite!==!0)._first||ok(this),this.parent&&n!==this.timeline.totalDuration()&&AO(this,this._dur*this.timeline._tDur/n,0,1),this}var r=this._targets,i=e?HO(e):r,a=this._ptLookup,o=this._pt,s,c,l,u,d,f,p;if((!t||t===`all`)&&lO(r,i))return t===`all`&&(this._pt=0),ok(this);for(s=this._op=this._op||[],t!==`all`&&(tD(t)&&(d={},qD(t,function(e){return d[e]=1}),t=d),t=Gk(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)&&dO(this,f,`_pt`),delete c[d]),l!==`all`&&(l[d]=1);return this._initted&&!this._pt&&o&&ok(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return PO(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 PO(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 bD.killTweensOf(e,t,n)},t}(Fk);rO(Xk.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),qD(`staggerTo,staggerFrom,staggerFromTo`,function(e){Xk[e]=function(){var t=new Ik,n=zO.call(arguments,0);return n.splice(e===`staggerFromTo`?5:4,0,0),t[e].apply(t,n)}});var Zk=function(e,t,n){return e[t]=n},Qk=function(e,t,n){return e[t](n)},$k=function(e,t,n,r){return e[t](r.fp,n)},eA=function(e,t,n){return e.setAttribute(t,n)},tA=function(e,t){return nD(e[t])?Qk:iD(e[t])&&e.setAttribute?eA:Zk},nA=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},rA=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},iA=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)},aA=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},oA=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},sA=function(e){for(var t=this._pt,n,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?dO(this,t,`_pt`):t.dep||(n=1),t=r;return!n},cA=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},lA=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},uA=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||nA,this.d=o||this,this.set=s||Zk,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=cA,this.m=e,this.mt=n,this.tween=t},e}();qD(UD+`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 FD[e]=1}),wD.TweenMax=wD.TweenLite=Xk,wD.TimelineLite=wD.TimelineMax=Ik,bD=new Ik({sortChildren:!1,defaults:UE,autoRemoveChildren:!0,id:`root`,smoothChildTiming:!0}),HE.stringFilter=vk;var dA=[],fA={},pA=[],mA=0,hA=0,gA=function(e){return(fA[e]||pA).map(function(e){return e()})},_A=function(){var e=Date.now(),t=[];e-mA>2&&(gA(`matchMediaInit`),dA.forEach(function(e){var n=e.queries,r=e.conditions,i,a,o,s;for(a in n)i=xD.matchMedia(n[a]).matches,i&&(o=1),i!==r[a]&&(r[a]=i,s=1);s&&(e.revert(),o&&t.push(e))}),gA(`matchMediaRevert`),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),mA=e,gA(`matchMedia`))},vA=function(){function e(e,t){this.selector=t&&UO(t),this.data=[],this._r=[],this.isReverted=!1,this.id=hA++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){nD(e)&&(n=t,t=e,e=nD);var r=this,i=function(){var e=KE,i=r.selector,a;return e&&e!==r&&e.data.push(r),n&&(r.selector=UO(n)),KE=r,a=t.apply(r,arguments),nD(a)&&r._r.push(a),KE=e,r.selector=i,r.isReverted=!1,a};return r.last=i,e===nD?i(r,function(e){return r.add(null,e)}):e?r[e]=i:i},t.ignore=function(e){var t=KE;KE=null,e(this),KE=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof Xk&&!(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 Ik?i.data!==`nested`&&(i.scrollTrigger&&i.scrollTrigger.revert(),i.kill()):!(i instanceof Xk)&&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=dA.length;r--;)dA[r].id===this.id&&dA.splice(r,1)},t.revert=function(e){this.kill(e||{})},e}(),yA=function(){function e(e){this.contexts=[],this.scope=e,KE&&KE.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){aD(e)||(e={matches:e});var r=new vA(0,n||this.scope),i=r.conditions={},a,o,s;for(o in KE&&!r.selector&&(r.selector=KE.selector),this.contexts.push(r),t=r.add(`onMatch`,t),r.queries=e,e)o===`all`?s=1:(a=xD.matchMedia(e[o]),a&&(dA.indexOf(r)<0&&dA.push(r),(i[o]=a.matches)&&(s=1),a.addListener?a.addListener(_A):a.addEventListener(`change`,_A)));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}(),bA={registerPlugin:function(){[...arguments].forEach(function(e){return lk(e)})},timeline:function(e){return new Ik(e)},getTweensOf:function(e,t){return bD.getTweensOf(e,t)},getProperty:function(e,t,n,r){tD(e)&&(e=HO(e)[0]);var i=GD(e||{}).get,a=n?nO:tO;return n===`native`&&(n=``),e&&(t?a((zD[t]&&zD[t].get||i)(e,t,n,r)):function(t,n,r){return a((zD[t]&&zD[t].get||i)(e,t,n,r))})},quickSetter:function(e,t,n){if(e=HO(e),e.length>1){var r=e.map(function(e){return wA.quickSetter(e,t,n)}),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}e=e[0]||{};var a=zD[t],o=GD(e),s=o.harness&&(o.harness.aliases||{})[t]||t,c=a?function(t){var r=new a;sk._pt=0,r.init(e,n?t+n:t,sk,0,[e]),r.render(1,r),sk._pt&&aA(1,sk)}: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=wA.to(e,rO((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 bD.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=kk(e.ease,UE.ease)),oO(UE,e||{})},config:function(e){return oO(HE,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&&!zD[e]&&!wD[e]&&kD(t+` effect requires `+e+` plugin.`)}),BD[t]=function(e,t,r){return n(HO(e),rO(t||{},i),r)},a&&(Ik.prototype[t]=function(e,n,r){return this.add(BD[t](e,aD(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){Sk[e]=kk(t)},parseEase:function(e,t){return arguments.length?kk(e,t):Sk},getById:function(e){return bD.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n=new Ik(e),r,i;for(n.smoothChildTiming=oD(e.smoothChildTiming),bD.remove(n),n._dp=0,n._time=n._tTime=bD._time,r=bD._first;r;)i=r._next,(t||!(!r._dur&&r instanceof Xk&&r.vars.onComplete===r._targets[0]))&&CO(n,r,r._start-r._delay),r=i;return CO(bD,n,0),n},context:function(e,t){return e?new vA(e,t):KE},matchMedia:function(e){return new yA(e)},matchMediaRefresh:function(){return dA.forEach(function(e){var t=e.conditions,n,r;for(r in t)t[r]&&(t[r]=!1,n=1);n&&e.revert()})||_A()},addEventListener:function(e,t){var n=fA[e]||(fA[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=fA[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:$O,wrapYoyo:ek,distribute:GO,random:JO,snap:qO,normalize:ZO,getUnit:LO,clamp:RO,splitColor:pk,toArray:HO,selector:UO,mapRange:nk,pipe:YO,unitize:XO,interpolate:rk,shuffle:WO},install:DD,effects:BD,ticker:bk,updateRoot:Ik.updateRoot,plugins:zD,globalTimeline:bD,core:{PropTween:uA,globals:AD,Tween:Xk,Timeline:Ik,Animation:Fk,getCache:GD,_removeLinkedListItem:dO,reverting:function(){return GE},context:function(e){return e&&KE&&(KE.data.push(e),e._ctx=KE),KE},suppressOverwrites:function(e){return WE=e}}};qD(`to,from,fromTo,delayedCall,set,killTweensOf`,function(e){return bA[e]=Xk[e]}),bk.add(Ik.updateRoot),sk=bA.to({},{duration:0});var xA=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},SA=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=xA(a,r)),a&&a.modifier&&a.modifier(t[r],e,n[i],r))},CA=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,i;if(tD(n)&&(r={},qD(n,function(e){return r[e]=1}),n=r),t){for(i in r={},n)r[i]=t(n[i]);n=r}SA(e,n)}}}},wA=bA.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;)GE?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)}},CA(`roundProps`,KO),CA(`modifiers`),CA(`snap`,qO))||bA;Xk.version=Ik.version=wA.version=`3.15.0`,ED=1,sD()&&xk(),Sk.Power0,Sk.Power1,Sk.Power2,Sk.Power3,Sk.Power4,Sk.Linear,Sk.Quad,Sk.Cubic,Sk.Quart,Sk.Quint,Sk.Strong,Sk.Elastic,Sk.Back,Sk.SteppedEase,Sk.Bounce,Sk.Sine,Sk.Expo,Sk.Circ;var TA,EA,DA,OA,kA,AA,jA,MA=function(){return typeof window<`u`},NA={},PA=180/Math.PI,FA=Math.PI/180,IA=Math.atan2,LA=1e8,RA=/([A-Z])/g,zA=/(left|right|width|margin|padding|x)/i,BA=/[\s,\(]\S/,VA={autoAlpha:`opacity,visibility`,scale:`scaleX,scaleY`,alpha:`opacity`},HA=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},UA=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)},WA=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)},GA=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)},KA=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},qA=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},JA=function(e,t){return t.set(t.t,t.p,e===1?t.e:t.b,t)},YA=function(e,t,n){return e.style[t]=n},XA=function(e,t,n){return e.style.setProperty(t,n)},ZA=function(e,t,n){return e._gsap[t]=n},QA=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},$A=function(e,t,n,r,i){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},ej=function(e,t,n,r,i){var a=e._gsap;a[t]=n,a.renderTransform(i,a)},tj=`transform`,nj=tj+`Origin`,rj=function e(t,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(t in NA&&a){if(this.tfm=this.tfm||{},t!==`transform`)t=VA[t]||t,~t.indexOf(`,`)?t.split(`,`).forEach(function(e){return r.tfm[e]=Sj(i,e)}):this.tfm[t]=o.x?o[t]:Sj(i,t),t===nj&&(this.tfm.zOrigin=o.zOrigin);else return VA.transform.split(`,`).forEach(function(t){return e.call(r,t,n)});if(this.props.indexOf(tj)>=0)return;o.svg&&(this.svgo=i.getAttribute(`data-svg-origin`),this.props.push(nj,n,``)),t=tj}(a||n)&&this.props.push(t,n,a[t])},ij=function(e){e.translate&&(e.removeProperty(`translate`),e.removeProperty(`scale`),e.removeProperty(`rotate`))},aj=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(RA,`-$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=jA(),(!i||!i.isStart)&&!n[tj]&&(ij(n),r.zOrigin&&n[nj]&&(n[nj]+=` `+r.zOrigin+`px`,r.zOrigin=0,r.renderTransform()),r.uncache=1)}},oj=function(e,t){var n={target:e,props:[],revert:aj,save:rj};return e._gsap||wA.core.getCache(e),t&&e.style&&e.nodeType&&t.split(`,`).forEach(function(e){return n.save(e)}),n},sj,cj=function(e,t){var n=EA.createElementNS?EA.createElementNS((t||`http://www.w3.org/1999/xhtml`).replace(/^https/,`http`),e):EA.createElement(e);return n&&n.style?n:EA.createElement(e)},lj=function e(t,n,r){var i=getComputedStyle(t);return i[n]||i.getPropertyValue(n.replace(RA,`-$1`).toLowerCase())||i.getPropertyValue(n)||!r&&e(t,dj(n)||n,1)||``},uj=`O,Moz,ms,Ms,Webkit`.split(`,`),dj=function(e,t,n){var r=(t||kA).style,i=5;if(e in r&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);i--&&!(uj[i]+e in r););return i<0?null:(i===3?`ms`:i>=0?uj[i]:``)+e},fj=function(){MA()&&window.document&&(TA=window,EA=TA.document,DA=EA.documentElement,kA=cj(`div`)||{style:{}},cj(`div`),tj=dj(tj),nj=tj+`Origin`,kA.style.cssText=`border-width:0;line-height:0;position:absolute;padding:0`,sj=!!dj(`perspective`),jA=wA.core.reverting,OA=1)},pj=function(e){var t=e.ownerSVGElement,n=cj(`svg`,t&&t.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`),r=e.cloneNode(!0),i;r.style.display=`block`,n.appendChild(r),DA.appendChild(n);try{i=r.getBBox()}catch{}return n.removeChild(r),DA.removeChild(n),i},mj=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},hj=function(e){var t,n;try{t=e.getBBox()}catch{t=pj(e),n=1}return t&&(t.width||t.height)||n||(t=pj(e)),t&&!t.width&&!t.x&&!t.y?{x:+mj(e,[`x`,`cx`,`x1`])||0,y:+mj(e,[`y`,`cy`,`y1`])||0,width:0,height:0}:t},gj=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&hj(e))},_j=function(e,t){if(t){var n=e.style,r;t in NA&&t!==nj&&(t=tj),n.removeProperty?(r=t.substr(0,2),(r===`ms`||t.substr(0,6)===`webkit`)&&(t=`-`+t),n.removeProperty(r===`--`?t:t.replace(RA,`-$1`).toLowerCase())):n.removeAttribute(t)}},vj=function(e,t,n,r,i,a){var o=new uA(e._pt,t,n,0,1,a?JA:qA);return e._pt=o,o.b=r,o.e=i,e._props.push(n),o},yj={deg:1,rad:1,turn:1},bj={grid:1,flex:1},xj=function e(t,n,r,i){var a=parseFloat(r)||0,o=(r+``).trim().substr((a+``).length)||`px`,s=kA.style,c=zA.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||yj[i]||yj[o])return a;if(o!==`px`&&!f&&(a=e(t,n,r,`px`)),_=t.getCTM&&gj(t),(p||o===`%`)&&(NA[n]||~n.indexOf(`adius`)))return m=_?t.getBBox()[c?`width`:`height`]:t[u],JD(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===EA||!h.appendChild)&&(h=EA.body),g=h._gsap,g&&p&&g.width&&c&&g.time===bk.time&&!g.uncache)return JD(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:_j(t,n)}else(p||o===`%`)&&!bj[lj(h,`display`)]&&(s.position=lj(t,`position`)),h===t&&(s.position=`static`),h.appendChild(kA),m=kA[u],h.removeChild(kA),s.position=`absolute`;return c&&p&&(g=GD(h),g.time=bk.time,g.width=h[u]),JD(f?m*a/d:m&&a?d/m*a:0)},Sj=function(e,t,n,r){var i;return OA||fj(),t in VA&&t!==`transform`&&(t=VA[t],~t.indexOf(`,`)&&(t=t.split(`,`)[0])),NA[t]&&t!==`transform`?(i=Pj(e,r),i=t===`transformOrigin`?i.svg?i.origin:Fj(lj(e,nj))+` `+i.zOrigin+`px`:i[t]):(i=e.style[t],(!i||i===`auto`||r||~(i+``).indexOf(`calc(`))&&(i=Dj[t]&&Dj[t](e,t,n)||lj(e,t)||KD(e,t)||+(t===`opacity`))),n&&!~(i+``).trim().indexOf(` `)?xj(e,t,i,n)+n:i},Cj=function(e,t,n,r){if(!n||n===`none`){var i=dj(t,e,1),a=i&&lj(e,i,1);a&&a!==n?(t=i,n=a):t===`borderColor`&&(n=lj(e,`borderTopColor`))}var o=new uA(this._pt,e.style,t,0,1,iA),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=lj(e,r.substring(4,r.indexOf(`)`)))),r===`auto`&&(m=e.style[t],e.style[t]=r,r=lj(e,t)||r,m?e.style[t]=m:_j(e,t)),l=[n,r],vk(l),n=l[0],r=l[1],d=n.match(hD)||[],b=r.match(hD)||[],b.length){for(;u=hD.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=XD(f,h)+y),g=parseFloat(h),v=h.substr((g+``).length),s=hD.lastIndex-v.length,v||(v=v||HE.units[t]||y,s===r.length&&(r+=v,o.e+=v)),y!==v&&(f=xj(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`?JA:qA;return _D.test(r)&&(o.e=0),this._pt=o,o},wj={top:`0%`,bottom:`100%`,left:`0%`,right:`100%`,center:`50%`},Tj=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]=wj[n]||n,t[1]=wj[r]||r,t.join(` `)},Ej=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],NA[o]&&(s=1,o=o===`transformOrigin`?nj:tj),_j(n,o);s&&(_j(n,tj),a&&(a.svg&&n.removeAttribute(`transform`),r.scale=r.rotate=r.translate=`none`,Pj(n,1),a.uncache=1,ij(r)))}},Dj={clearProps:function(e,t,n,r,i){if(i.data!==`isFromStart`){var a=e._pt=new uA(e._pt,t,n,0,0,Ej);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},Oj=[1,0,0,1,0,0],kj={},Aj=function(e){return e===`matrix(1, 0, 0, 1, 0, 0)`||e===`none`||!e},jj=function(e){var t=lj(e,tj);return Aj(t)?Oj:t.substr(7).match(mD).map(JD)},Mj=function(e,t){var n=e._gsap||GD(e),r=e.style,i=jj(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`?Oj:i):(i===Oj&&!e.offsetParent&&e!==DA&&!n.svg&&(s=r.display,r.display=`block`,a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,o=e.nextElementSibling,DA.appendChild(e)),i=jj(e),s?r.display=s:_j(e,`display`),c&&(o?a.insertBefore(e,o):a?a.appendChild(e):DA.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},Nj=function(e,t,n,r,i,a){var o=e._gsap,s=i||Mj(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!==Oj&&(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=hj(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[nj]=`0px 0px`,a&&(vj(a,o,`xOrigin`,c,y),vj(a,o,`yOrigin`,l,b),vj(a,o,`xOffset`,u,o.xOffset),vj(a,o,`yOffset`,d,o.yOffset)),e.setAttribute(`data-svg-origin`,y+` `+b)},Pj=function(e,t){var n=e._gsap||new Pk(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=lj(e,nj)||`0`,l=u=d=m=h=g=_=v=y=0,u,d,f=p=1,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F,I,ee,te,ne,re;return n.svg=!!(e.getCTM&&gj(e)),s.translate&&((s.translate!==`none`||s.scale!==`none`||s.rotate!==`none`)&&(r[tj]=(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[tj]===`none`?``:s[tj])),r.scale=r.rotate=r.translate=`none`),S=Mj(e,n.svg),n.svg&&(n.uncache?(N=e.getBBox(),c=n.xOrigin-N.x+`px `+(n.yOrigin-N.y)+`px`,M=``):M=!t&&e.getAttribute(`data-svg-origin`),Nj(e,M||c,!!M||n.originIsAbsolute,n.smooth!==!1,S)),b=n.xOrigin||0,x=n.yOrigin||0,S!==Oj&&(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?IA(D,E)*PA:0,_=O||k?IA(O,k)*PA+m:0,_&&(p*=Math.abs(Math.cos(_*FA))),n.svg&&(l-=b-(b*E+x*O),u-=x-(b*D+x*k))):(re=S[6],te=S[7],F=S[8],I=S[9],ee=S[10],ne=S[11],l=S[12],u=S[13],d=S[14],C=IA(re,ee),h=C*PA,C&&(w=Math.cos(-C),T=Math.sin(-C),M=A*w+F*T,N=j*w+I*T,P=re*w+ee*T,F=A*-T+F*w,I=j*-T+I*w,ee=re*-T+ee*w,ne=te*-T+ne*w,A=M,j=N,re=P),C=IA(-O,ee),g=C*PA,C&&(w=Math.cos(-C),T=Math.sin(-C),M=E*w-F*T,N=D*w-I*T,P=O*w-ee*T,ne=k*T+ne*w,E=M,D=N,O=P),C=IA(D,E),m=C*PA,C&&(w=Math.cos(C),T=Math.sin(C),M=E*w+D*T,N=A*w+j*T,D=D*w-E*T,j=j*w-A*T,E=M,A=N),h&&Math.abs(h)+Math.abs(m)>359.9&&(h=m=0,g=180-g),f=JD(Math.sqrt(E*E+D*D+O*O)),p=JD(Math.sqrt(j*j+re*re)),C=IA(A,j),_=Math.abs(C)>2e-4?C*PA:0,y=ne?1/(ne<0?-ne:ne):0),n.svg&&(M=e.getAttribute(`transform`),n.forceCSS=e.setAttribute(`transform`,``)||!Aj(lj(e,tj)),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=JD(f),n.scaleY=JD(p),n.rotation=JD(m)+o,n.rotationX=JD(h)+o,n.rotationY=JD(g)+o,n.skewX=_+o,n.skewY=v+o,n.transformPerspective=y+a,(n.zOrigin=parseFloat(c.split(` `)[2])||!t&&n.zOrigin||0)&&(r[nj]=Fj(c)),n.xOffset=n.yOffset=0,n.force3D=HE.force3D,n.renderTransform=n.svg?Hj:sj?Vj:Lj,n.uncache=0,n},Fj=function(e){return(e=e.split(` `))[0]+` `+e[1]},Ij=function(e,t,n){var r=LO(t);return JD(parseFloat(t)+parseFloat(xj(e,`x`,n+`px`,r)))+r},Lj=function(e,t){t.z=`0px`,t.rotationY=t.rotationX=`0deg`,t.force3D=0,Vj(e,t)},Rj=`0deg`,zj=`0px`,Bj=`) `,Vj=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!==Rj||l!==Rj)){var x=parseFloat(l)*FA,S=Math.sin(x),C=Math.cos(x),w;x=parseFloat(u)*FA,w=Math.cos(x),a=Ij(_,a,S*w*-v),o=Ij(_,o,-Math.sin(x)*-v),s=Ij(_,s,C*w*-v+v)}h!==zj&&(y+=`perspective(`+h+Bj),(r||i)&&(y+=`translate(`+r+`%, `+i+`%) `),(b||a!==zj||o!==zj||s!==zj)&&(y+=s!==zj||b?`translate3d(`+a+`, `+o+`, `+s+`) `:`translate(`+a+`, `+o+Bj),c!==Rj&&(y+=`rotate(`+c+Bj),l!==Rj&&(y+=`rotateY(`+l+Bj),u!==Rj&&(y+=`rotateX(`+u+Bj),(d!==Rj||f!==Rj)&&(y+=`skew(`+d+`, `+f+Bj),(p!==1||m!==1)&&(y+=`scale(`+p+`, `+m+Bj),_.style[tj]=y||`translate(0, 0)`},Hj=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*=FA,c*=FA,b=Math.cos(s)*u,x=Math.sin(s)*u,S=Math.sin(s-c)*-d,C=Math.cos(s-c)*d,c&&(l*=FA,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=JD(b),x=JD(x),S=JD(S),C=JD(C)):(b=u,C=d,x=S=0),(v&&!~(a+``).indexOf(`px`)||y&&!~(o+``).indexOf(`px`))&&(v=xj(f,`x`,a,`px`),y=xj(f,`y`,o,`px`)),(p||m||h||g)&&(v=JD(v+p-(p*b+m*S)+h),y=JD(y+m-(p*x+m*C)+g)),(r||i)&&(w=f.getBBox(),v=JD(v+r/100*w.width),y=JD(y+i/100*w.height)),w=`matrix(`+b+`,`+x+`,`+S+`,`+C+`,`+v+`,`+y+`)`,f.setAttribute(`transform`,w),_&&(f.style[tj]=w)},Uj=function(e,t,n,r,i){var a=360,o=tD(i),s=parseFloat(i)*(o&&~i.indexOf(`rad`)?PA: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*LA)%a-~~(s/a)*a:l===`ccw`&&s>0&&(s=(s-a*LA)%a-~~(s/a)*a)),e._pt=u=new uA(e._pt,t,n,r,s,UA),u.e=c,u.u=`deg`,e._props.push(n),u},Wj=function(e,t){for(var n in t)e[n]=t[n];return e},Gj=function(e,t,n){var r=Wj({},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[tj]=t,o=Pj(n,1),_j(n,tj),n.setAttribute(`transform`,c)):(c=getComputedStyle(n)[tj],a[tj]=t,o=Pj(n,1),a[tj]=c),NA)c=r[s],l=o[s],c!==l&&i.indexOf(s)<0&&(f=LO(c),p=LO(l),u=f===p?parseFloat(c):xj(n,s,c,p),d=parseFloat(l),e._pt=new uA(e._pt,o,s,u,d-u,HA),e._pt.u=p||0,e._props.push(s));Wj(o,r)};qD(`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});Dj[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 Sj(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 Kj={name:`css`,register:fj,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 OA||fj(),this.styles=this.styles||oj(e),C=this.styles.props,this.tween=n,t)if(m!==`autoRound`&&(l=t[m],!(zD[m]&&Bk(m,t,n,r,e,i)))){if(f=typeof l,p=Dj[m],f===`function`&&(l=l.call(n,r,e,i),f=typeof l),f===`string`&&~l.indexOf(`random(`)&&(l=tk(l)),p)p(this,e,m,l,n)&&(S=1);else if(m.substr(0,2)===`--`)c=(getComputedStyle(e).getPropertyValue(m)+``).trim(),l+=``,gk.lastIndex=0,gk.test(c)||(h=LO(c),g=LO(l),g?h!==g&&(c=xj(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],tD(c)&&~c.indexOf(`random(`)&&(c=tk(c)),LO(c+``)||c===`auto`||(c+=HE.units[m]||LO(Sj(e,m))||``),(c+``).charAt(1)===`=`&&(c=Sj(e,m))):c=Sj(e,m),d=parseFloat(c),_=f===`string`&&l.charAt(1)===`=`&&l.substr(0,2),_&&(l=l.substr(2)),u=parseFloat(l),m in VA&&(m===`autoAlpha`&&(d===1&&Sj(e,`visibility`)===`hidden`&&u&&(d=0),C.push(`visibility`,0,o.visibility),vj(this,o,`visibility`,d?`inherit`:`hidden`,u?`inherit`:`hidden`,!u)),m!==`scale`&&m!==`transform`&&(m=VA[m],~m.indexOf(`,`)&&(m=m.split(`,`)[0]))),v=m in NA,v){if(this.styles.save(m),w=l,f===`string`&&l.substring(0,6)===`var(--`){if(l=lj(e,l.substring(4,l.indexOf(`)`))),l.substring(0,5)===`calc(`){var T=e.style.perspective;e.style.perspective=l,l=lj(e,`perspective`),T?e.style.perspective=T:_j(e,`perspective`)}u=parseFloat(l)}if(y||(b=e._gsap,b.renderTransform&&!t.parseTransform||Pj(e,t.parseTransform),x=t.smoothOrigin!==!1&&b.smooth,y=this._pt=new uA(this._pt,o,tj,0,1,b.renderTransform,b,0,-1),y.dep=1),m===`scale`)this._pt=new uA(this._pt,b,`scaleY`,b.scaleY,(_?XD(b.scaleY,_+u):u)-b.scaleY||0,HA),this._pt.u=0,a.push(`scaleY`,m),m+=`X`;else if(m===`transformOrigin`){C.push(nj,0,o[nj]),l=Tj(l),b.svg?Nj(e,l,0,x,0,this):(g=parseFloat(l.split(` `)[2])||0,g!==b.zOrigin&&vj(this,b,`zOrigin`,b.zOrigin,g),vj(this,o,m,Fj(c),Fj(l)));continue}else if(m===`svgOrigin`){Nj(e,l,1,x,0,this);continue}else if(m in kj){Uj(this,b,m,d,_?XD(d,_+l):l);continue}else if(m===`smoothOrigin`){vj(this,b,`smooth`,b.smooth,l);continue}else if(m===`force3D`){b[m]=l;continue}else if(m===`transform`){Gj(this,l,e);continue}}else m in o||(m=dj(m)||m);if(v||(u||u===0)&&(d||d===0)&&!BA.test(l)&&m in o)h=(c+``).substr((d+``).length),u||=0,g=LO(l)||(m in HE.units?HE.units[m]:h),h!==g&&(d=xj(e,m,c,g)),this._pt=new uA(this._pt,v?b:o,m,d,(_?XD(d,_+u):u)-d,!v&&(g===`px`||m===`zIndex`)&&t.autoRound!==!1?KA:HA),this._pt.u=g||0,v&&w!==l?(this._pt.b=c,this._pt.e=w,this._pt.r=GA):h!==g&&g!==`%`&&(this._pt.b=c,this._pt.r=WA);else if(m in o)Cj.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`){OD(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&&lA(this)},render:function(e,t){if(t.tween._time||!jA())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:Sj,aliases:VA,getSetter:function(e,t,n){var r=VA[t];return r&&r.indexOf(`,`)<0&&(t=r),t in NA&&t!==nj&&(e._gsap.x||Sj(e,`x`))?n&&AA===n?t===`scale`?QA:ZA:(AA=n||{})&&(t===`scale`?$A:ej):e.style&&!iD(e.style[t])?YA:~t.indexOf(`-`)?XA:tA(e,t)},core:{_removeProperty:_j,_getMatrix:Mj}};wA.utils.checkPrefix=dj,wA.core.getStyleSaver=oj,(function(e,t,n,r){var i=qD(e+`,`+t+`,`+n,function(e){NA[e]=1});qD(t,function(e){HE.units[e]=`deg`,kj[e]=1}),VA[i[13]]=e+`,`+t,qD(r,function(e){var t=e.split(`:`);VA[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`),qD(`x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective`,function(e){HE.units[e]=`px`}),wA.registerPlugin(Kj);var qj=wA.registerPlugin(Kj)||wA;qj.core.Tween;var Jj=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function Yj(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:Jj(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var Xj=e=>{let t=``,n=!1;for(let r of e){if(r===`-`||r===`_`||r<=` `){n=t.length>0;continue}t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1}return t},Zj=e=>{let t=Xj(e);return t.charAt(0).toUpperCase()+t.slice(1)},Qj=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),$j={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function eM(e){return e!=null}function tM(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??$j.width,a=e.size??e.height??$j.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?Qj(...c):Qj(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??$j[`stroke-width`])*Number(e.size??e.width??$j.width)/Number(t.size??t.width??$j.width):t.strokeWidth??$j[`stroke-width`];return[`svg`,{...Object.entries($j).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&eM(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&eM(t.width)&&{[r(`width`)]:t.width},...`height`in t&&eM(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function nM(e,t={}){return tM(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var rM=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},iM=(0,v.createContext)({}),aM=()=>(0,v.useContext)(iM),oM=(0,v.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:y=``}=aM()??{},b=!!c||rM(d),[x,S,C=[]]=nM(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:Qj(y,s),hasA11yProp:b,attributes:d});return(0,v.createElement)(x,{ref:f,...S},[...C.map(([e,t])=>(0,v.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function sM(e,t=[],n=[]){let r=typeof e==`string`?Yj(e,t,n):e,i=(0,v.forwardRef)(({className:e,...t},n)=>(0,v.createElement)(oM,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=Zj(r.name)),i}var cM={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};cM.node;var lM=sM(cM),uM={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};uM.node;var dM=sM(uM),fM={name:`eye-off`,size:24,node:[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]};fM.node;var pM=sM(fM),mM={name:`eye`,size:24,node:[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};mM.node;var hM=sM(mM),gM={name:`git-compare`,size:24,node:[[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M13 6h3a2 2 0 0 1 2 2v7`,key:`1yeb86`}],[`path`,{d:`M11 18H8a2 2 0 0 1-2-2V9`,key:`19pyzm`}]]};gM.node;var _M=sM(gM),vM={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};vM.node;var yM=sM(vM),bM={name:`key-round`,size:24,node:[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]};bM.node;var xM=sM(bM),SM={name:`log-in`,size:24,node:[[`path`,{d:`m10 17 5-5-5-5`,key:`1bsop3`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`,key:`u53s6r`}]]};SM.node;var CM=sM(SM),wM={name:`pencil`,size:24,node:[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]};wM.node;var TM=sM(wM),EM={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};EM.node;var DM=sM(EM),OM={name:`rotate-ccw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]};OM.node;var kM=sM(OM),AM={name:`save`,size:24,node:[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]};AM.node;var jM=sM(AM),MM={name:`sliders-horizontal`,size:24,node:[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]};MM.node;var NM=sM(MM),PM={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]};PM.node;var FM=sM(PM),IM={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};IM.node;var LM=sM(IM);function RM(e,t){return function(){return e.apply(t,arguments)}}var{toString:zM}=Object.prototype,{getPrototypeOf:BM}=Object,{iterator:VM,toStringTag:HM}=Symbol,UM=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),WM=e=>typeof e==`string`&&(e===`__proto__`||e===`constructor`||e===`prototype`),GM=(e,t,n)=>e===Object.prototype||!n&&t===null,KM=e=>{if(!Object.isExtensible(e))return!1;let t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(WM(t))return!1;let n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&n.writable===!0})},qM=(e,t)=>{let n=e,r=[];for(;n!=null;){if(r.indexOf(n)!==-1)return!1;r.push(n);let i=BM(n);if(GM(n,i,n===e))return!1;if(UM(n,t))return!0;n=i}return!1},JM=(e,t)=>e!=null&&qM(e,t)?e[t]:void 0,YM=e=>{if(e==null||typeof e!=`object`&&typeof e!=`function`)return e;let t=BM(e);if(t===null&&KM(e))return e;let n=Object.create(null),r=Object.create(null),i=[],a=e;for(;a!=null&&i.indexOf(a)===-1;){i.push(a);let o=a===e?t:BM(a);if(GM(a,o,a===e))break;let s=Object.getOwnPropertyNames(a);Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(a));for(let t of s)WM(t)||UM(r,t)||(n[t]=e[t],r[t]=!0);a=o}return n},XM=(e=>t=>{let n=zM.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ZM=e=>(e=e.toLowerCase(),t=>XM(t)===e),QM=e=>t=>typeof t===e,{isArray:$M}=Array,eN=QM(`undefined`);function tN(e){return e!==null&&!eN(e)&&e.constructor!==null&&!eN(e.constructor)&&aN(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var nN=ZM(`ArrayBuffer`);function rN(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&nN(e.buffer),t}var iN=QM(`string`),aN=QM(`function`),oN=QM(`number`),sN=e=>typeof e==`object`&&!!e,cN=e=>e===!0||e===!1,lN=e=>{if(!sN(e))return!1;let t=BM(e);return(t===null||t===Object.prototype||BM(t)===null)&&!qM(e,HM)&&!qM(e,VM)},uN=e=>{if(!sN(e)||tN(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},dN=ZM(`Date`),fN=ZM(`File`),pN=e=>!!(e&&e.uri!==void 0),mN=e=>e&&e.getParts!==void 0,hN=ZM(`Blob`),gN=ZM(`FileList`),_N=ZM(`Set`),vN=e=>sN(e)&&aN(e.pipe);function yN(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var bN=yN(),xN=bN.FormData===void 0?void 0:bN.FormData,SN=e=>{if(!e)return!1;if(xN&&e instanceof xN)return!0;let t=BM(e);if(!t||t===Object.prototype||!aN(e.append))return!1;let n=XM(e);return n===`formdata`||n===`object`&&aN(e.toString)&&e.toString()===`[object FormData]`},CN=ZM(`URLSearchParams`),[wN,TN,EN,DN]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(ZM),ON=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function kN(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),$M(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(tN(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 AN(e,t){if(tN(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 jN=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,MN=e=>!eN(e)&&e!==jN;function NN(...e){let{caseless:t,skipUndefined:n}=MN(this)&&this||{},r={},i=(e,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=t&&typeof i==`string`&&AN(r,i)||i,o=UM(r,a)?r[a]:void 0;lN(o)&&lN(e)?r[a]=NN(o,e):lN(e)?r[a]=NN({},e):$M(e)?r[a]=e.slice():(!n||!eN(e))&&(r[a]=e)};for(let t=0,n=e.length;t<n;t++){let n=e[t];if(!n||tN(n)||(kN(n,i),typeof n!=`object`||$M(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){let t=r[e];GN.call(n,t)&&i(n[t],t)}}return r}var PN=(e,t,n,{allOwnKeys:r}={})=>(kN(t,(t,r)=>{n&&aN(t)?Object.defineProperty(e,r,{__proto__:null,value:RM(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),FN=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),IN=(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)},LN=(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&&BM(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},RN=(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},zN=e=>{if(!e)return null;if($M(e))return e;let t=e.length;if(!oN(t))return null;let n=Array(t);for(;t-->0;)n[t]=e[t];return n},BN=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&BM(Uint8Array)),VN=(e,t)=>{let n=(e&&e[VM]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},HN=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},UN=ZM(`HTMLFormElement`),WN=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),{propertyIsEnumerable:GN}=Object.prototype,KN=ZM(`RegExp`),qN=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};kN(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},JN=e=>{qN(e,(t,n)=>{if(aN(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];if(aN(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},YN=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return $M(e)?r(e):r(String(e).split(t)),n},XN=()=>{},ZN=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function QN(e){return!!(e&&aN(e.append)&&e[HM]===`FormData`&&e[VM])}var $N=e=>{let t=new WeakSet,n=e=>{if(sN(e)){if(t.has(e))return;if(tN(e))return e;if(!(`toJSON`in e)){t.add(e);let r;if(_N(e)){r=[];for(let t of e){let e=n(t);!eN(e)&&r.push(e)}}else r=$M(e)?[]:{},kN(e,(e,t)=>{let i=n(e);!eN(i)&&(r[t]=i)});return t.delete(e),r}}return e};return n(e)},eP=ZM(`AsyncFunction`),tP=e=>e&&(sN(e)||aN(e))&&aN(e.then)&&aN(e.catch),nP=((e,t)=>e?setImmediate:t?((e,t)=>(jN.addEventListener(`message`,({source:n,data:r})=>{n===jN&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),jN.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,aN(jN.postMessage)),rP=typeof queueMicrotask<`u`?queueMicrotask.bind(jN):typeof process<`u`&&process.nextTick||nP,iP=e=>e!=null&&aN(e[VM]),X={isArray:$M,isArrayBuffer:nN,isBuffer:tN,isFormData:SN,isArrayBufferView:rN,isString:iN,isNumber:oN,isBoolean:cN,isObject:sN,isPlainObject:lN,isEmptyObject:uN,isReadableStream:wN,isRequest:TN,isResponse:EN,isHeaders:DN,isUndefined:eN,isDate:dN,isFile:fN,isReactNativeBlob:pN,isReactNative:mN,isBlob:hN,isRegExp:KN,isFunction:aN,isStream:vN,isURLSearchParams:CN,isTypedArray:BN,isFileList:gN,forEach:kN,merge:NN,extend:PN,trim:ON,stripBOM:FN,inherits:IN,toFlatObject:LN,kindOf:XM,kindOfTest:ZM,endsWith:RN,toArray:zN,forEachEntry:VN,matchAll:HN,isHTMLForm:UN,hasOwnProperty:UM,hasOwnProp:UM,hasOwnInPrototypeChain:qM,getSafeProp:JM,toSafeFlatObject:YM,reduceDescriptors:qN,freezeMethods:JN,toObjectSet:YN,toCamelCase:WN,noop:XN,toFiniteNumber:ZN,findKey:AN,global:jN,isContextDefined:MN,isSpecCompliantForm:QN,toJSONObject:$N,isAsyncFn:eP,isThenable:tP,setImmediate:nP,asap:rP,isIterable:iP,isSafeIterable:e=>e!=null&&qM(e,VM)&&iP(e)},aP=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`]),oP=e=>{let t={},n,r,i;return e&&e.split(`
|
|
23
23
|
`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim();let a=X.hasOwnProp(t,n);!n||a&&X.hasOwnProp(aP,n)||(n===`set-cookie`?a?t[n].push(r):t[n]=[r]:t[n]=a?t[n]+`, `+r:r)}),t};function sP(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 cP=RegExp(`[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+`,`g`),lP=RegExp(`[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+`,`g`);function uP(e,t){return X.isArray(e)?e.map(e=>uP(e,t)):sP(String(e).replace(t,``))}var dP=e=>uP(e,cP),fP=e=>uP(e,lP);function pP(e){let t=Object.create(null);return X.forEach(e.toJSON(),(e,n)=>{t[n]=fP(e)}),t}var mP=Symbol(`internals`);function hP(e){return e&&String(e).trim().toLowerCase()}function gP(e){return e===!1||e==null?e:X.isArray(e)?e.map(gP):dP(String(e))}function _P(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 vP=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function yP(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}function bP(e){let t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n=``;for(let r=1;r<t;r++){let i=e.charCodeAt(r);if(i===34||i===92&&(r+=1,r>=t))return e;n+=e[r]}return n}function xP(e){let t=Object.create(null),n=String(e),r=0,i=!1,a=!1;function o(e){let i=yP(n.slice(r,e)),a=i.indexOf(`=`);if(a<1)return;let o=yP(i.slice(0,a));if(!vP.test(o))return;let s=o.toLowerCase();if(s===`__proto__`||s===`constructor`||s===`prototype`)return;let c=yP(i.slice(a+1));t[s]=bP(c)}for(let e=0;e<n.length;e++){let t=n.charCodeAt(e);i?a?a=!1:t===92?a=!0:t===34&&(i=!1):t===34?i=!0:(t===44||t===59)&&(o(e),r=e+1)}return o(n.length),t}var SP=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function CP(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 wP(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function TP(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 EP=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=hP(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]=gP(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())&&!SP(e))a(oP(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=hP(e),e){let n=X.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return _P(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=hP(e),e){let n=X.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||CP(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=hP(e),e){let i=X.findKey(n,e);i&&(!t||CP(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||CP(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]=gP(r),delete t[i];return}let o=e?wP(i):String(i).trim();o!==i&&delete t[i],t[o]=gP(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
24
|
`)}getSetCookie(){let e=this.get(`set-cookie`);return X.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return xP(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[mP]=this[mP]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=hP(e);t[r]||(TP(n,e),t[r]=!0)}return X.isArray(e)?e.forEach(r):r(e),this}};EP.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),X.reduceDescriptors(EP.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),X.freezeMethods(EP);var DP=`[REDACTED ****]`;function OP(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 kP(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 EP&&(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)&&OP(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?DP:i(a);X.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}function AP(e){try{return String(e)}catch{return``}}function jP(e){return e.errors.map(e=>{try{return e&&e.message?AP(e.message):AP(e)}catch{return``}}).filter(Boolean).join(`; `)||e.name||`AggregateError`}var Z=class e extends Error{static from(t,n,r,i,a,o){let s=t.message;!s&&X.isArray(t.errors)&&t.errors.length&&(s=jP(t));let c=new e(s,n||t.code,r,i,a);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),o&&Object.assign(c,o),c}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&X.hasOwnProp(e,`redact`)?e.redact:void 0,n=X.isArray(t)&&t.length>0?kP(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 MP(e){return X.isPlainObject(e)||X.isArray(e)}function NP(e){return X.endsWith(e,`[]`)?e.slice(0,-2):e}function PP(e,t,n){return e?e.concat(t).map(function(e,t){return e=NP(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function FP(e){return X.isArray(e)&&!e.some(MP)}var IP=X.toFlatObject(X,{},null,function(e){return/^is[A-Z]/.test(e)});function LP(e,t,n){if(!X.isObject(e))throw TypeError(`target must be an object`);t||=new FormData;let r=(e,t)=>{let r=X.getSafeProp(n,e);return X.isUndefined(r)?t:r},i=r(`metaTokens`,!0),a=r(`visitor`)||h,o=r(`dots`,!1),s=r(`indexes`,!1),c=r(`Blob`)||typeof Blob<`u`&&Blob,l=r(`maxDepth`,100),u=c&&X.isSpecCompliantForm(t),d=[];if(!X.isFunction(a))throw TypeError(`visitor must be a function`);function f(e){if(e===null)return``;if(X.isDate(e))return e.toISOString();if(X.isBoolean(e))return e.toString();if(!u&&X.isBlob(e))throw new Z(`Blob is not supported. Use a Buffer instead.`);if(X.isArrayBuffer(e)||X.isTypedArray(e)){if(u&&typeof c==`function`)return new c([e]);throw new Z(`Blob is not supported. Use a Buffer instead.`,Z.ERR_NOT_SUPPORT)}return e}function p(e){if(e>l)throw new Z(`Object is too deeply nested (`+e+` levels). Max depth: `+l,Z.ERR_FORM_DATA_DEPTH_EXCEEDED)}function m(e,t){if(l===1/0)return JSON.stringify(e);let n=[];return JSON.stringify(e,function(e,r){if(!X.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),p(t+n.length-1),r})}function h(e,n,r){let a=e;if(X.isReactNative(t)&&X.isReactNativeBlob(e))return t.append(PP(r,n,o),f(e)),!1;if(e&&!r&&typeof e==`object`){if(X.endsWith(n,`{}`))n=i?n:n.slice(0,-2),e=m(e,1);else if(X.isArray(e)&&FP(e)||(X.isFileList(e)||X.endsWith(n,`[]`))&&(a=X.toArray(e)))return n=NP(n),a.forEach(function(e,r){!(X.isUndefined(e)||e===null)&&t.append(s===!0?PP([n],r,o):s===null?n:n+`[]`,f(e))}),!1}return MP(e)?!0:(t.append(PP(r,n,o),f(e)),!1)}let g=Object.assign(IP,{defaultVisitor:h,convertValue:f,isVisitable:MP});function _(e,n,r=0){if(!X.isUndefined(e)){if(p(r),d.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));d.push(e),X.forEach(e,function(e,i){(!(X.isUndefined(e)||e===null)&&a.call(t,e,X.isString(i)?i.trim():i,n,g))===!0&&_(e,n?n.concat(i):[i],r+1)}),d.pop()}}if(!X.isObject(e))throw TypeError(`data must be an object`);return _(e),t}function RP(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function zP(e,t){this._pairs=[],e&&LP(e,this,t)}var BP=zP.prototype;BP.append=function(e,t){this._pairs.push([e,t])},BP.toString=function(e){let t=e?t=>e.call(this,t,RP):RP;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function VP(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function HP(e,t,n){if(!t)return e;e||=``;let r=X.isFunction(n)?{serialize:n}:n,i=X.getSafeProp(r,`encode`)||VP,a=X.getSafeProp(r,`serialize`),o;if(o=a?a(t,r):X.isURLSearchParams(t)?t.toString():new zP(t,r).toString(i),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var UP=Symbol(`internals`);function WP(e){return e?e.length:0}function GP(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function KP(e,t){let n=e.handlers,r=WP(n);n===t.handlersRef?r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(e,r){n[e.index]!==e.handler&&t.handlerEntries.delete(r)}):t.handlerEntries.clear()):(t.handlersRef=n,t.handlerEntries.clear()),t.handlersLength=r}var qP=class{constructor(){this.handlers=[],this[UP]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){let r={fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null},i=this[UP];this.handlers??=[],KP(this,i);let a=i.nextId++;return this.handlers.push(r),i.handlerEntries.set(a,{handler:r,index:this.handlers.length-1}),i.handlersLength=this.handlers.length,a}eject(e){let t=this[UP];KP(this,t);let n=t.handlerEntries.get(e);if(n){if(t.handlerEntries.delete(e),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,t.iterationDepth||(GP(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],KP(this,this[UP]))}forEach(e){let t=this[UP];KP(this,t),t.iterationDepth++;try{X.forEach(this.handlers,function(t){t!==null&&e(t)})}finally{--t.iterationDepth||(KP(this,t),GP(this.handlers),t.handlersLength=WP(this.handlers))}}},JP={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},YP={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:zP,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},XP=s({hasBrowserEnv:()=>ZP,hasStandardBrowserEnv:()=>$P,hasStandardBrowserWebWorkerEnv:()=>eF,navigator:()=>QP,origin:()=>tF}),ZP=typeof window<`u`&&typeof document<`u`,QP=typeof navigator==`object`&&navigator||void 0,$P=ZP&&(!QP||[`ReactNative`,`NativeScript`,`NS`].indexOf(QP.product)<0),eF=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,tF=ZP&&window.location.href||`http://localhost`,nF={...XP,...YP};function rF(e,t){return LP(e,new nF.classes.URLSearchParams,{visitor:function(e,t,n,r){return nF.isNode&&X.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}var iF=100;function aF(e){if(e>iF)throw new Z(`FormData field is too deeply nested (`+e+` levels). Max depth: `+iF,Z.ERR_FORM_DATA_DEPTH_EXCEEDED)}function oF(e){let t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g,r;for(;(r=n.exec(e))!==null;)aF(t.length),t.push(r[0]===`[]`?``:r[1]||r[0]);return t}function sF(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 cF(e){function t(e,n,r,i){aF(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]=sF(r[a])),!o)}if(X.isFormData(e)&&X.isFunction(e.entries)){let n={};return X.forEachEntry(e,(e,r)=>{t(oF(e),r,n,0)}),n}return null}var lF=Object.freeze([`get`,`delete`,`head`,`options`,`post`,`put`,`patch`,`purge`,`link`,`unlink`,`query`]),uF=(e,t)=>e!=null&&X.hasOwnProp(e,t)?e[t]:void 0;function dF(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 fF={transitional:JP,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(cF(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=uF(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return rF(e,t).toString();if((a=X.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=uF(this,`env`),r=n&&n.FormData;return LP(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),dF(e)):e}],transformResponse:[function(e){let t=uF(this,`transitional`)||fF.transitional,n=t&&t.forcedJSONParsing,r=uF(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,uF(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?Z.from(e,Z.ERR_BAD_RESPONSE,this,null,uF(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:nF.classes.FormData,Blob:nF.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};X.forEach(lF,e=>{fF.headers[e]={}});function pF(e,t){let n=this||fF,r=t||n,i=EP.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 mF(e){return!!(e&&e.__CANCEL__)}var hF=class extends Z{constructor(e,t,n){super(e??`canceled`,Z.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function gF(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Z(`Request failed with status code `+n.status,n.status>=400&&n.status<500?Z.ERR_BAD_REQUEST:Z.ERR_BAD_RESPONSE,n.config,n.request,n))}var _F=/[\t\n\r]/g;function vF(e){if(typeof e!=`string`)return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(_F,``)}function yF(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||``}function bF(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 xF(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i),(...e)=>o(e)]}var SF=(e,t,n=3)=>{let r=0,i=bF(50,250);return xF(n=>{if(!n||!X.isNumber(n.loaded))return;let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=Math.max(0,o==null?a:Math.min(a,o)),c=Math.max(0,s-r),l=i(c);r=Math.max(r,s),e({loaded:s,total:o,progress:o?s/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o?(o-s)/l:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},CF=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},wF=(e,t=X.asap)=>(...n)=>t(()=>e(...n)),TF=nF.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,nF.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(nF.origin),nF.navigator&&/(msie|trident)/i.test(nF.navigator.userAgent)):()=>!0,EF=nF.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];X.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),X.isString(r)&&s.push(`path=${r}`),X.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),X.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.split(`;`);for(let n=0;n<t.length;n++){let r=t[n].replace(/^\s+/,``),i=r.indexOf(`=`);if(i!==-1&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch{return r.slice(i+1)}}return null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function DF(e){return typeof e==`string`&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function OF(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+`/`+t.replace(/^\/+/,``)}var kF=/^https?:(?!\/\/)/i;function AF(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n=``)=>`${t}${n}${DP}`)}function jF(e){let t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${DP}@`),n=t.indexOf(`#`),r=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${DP}`);return n===-1?r:`${r}#${AF(t.slice(n+1))}`}function MF(e,t){if(typeof e==`string`){let n=vF(e);if(kF.test(n))throw new Z(`Invalid URL ${JSON.stringify(jF(n))}: missing "//" after protocol`,Z.ERR_INVALID_URL,t)}}function NF(e,t,n,r){MF(t,r);let i=!DF(t);return e&&(i||n===!1)?(MF(e,r),OF(e,t)):t}var PF=e=>e instanceof EP?{...e}:e,FF=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function IF(e,t){e||={},t||={};let n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(e,t,n,r){return X.isPlainObject(e)&&X.isPlainObject(t)?X.merge.call({caseless:r},e,t):X.isPlainObject(t)?X.merge({},t):X.isArray(t)?t.slice():t}function i(e,t,n,i){if(!X.isUndefined(t))return r(e,t,n,i);if(!X.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!X.isUndefined(t))return r(void 0,t)}function o(e,t){if(!X.isUndefined(t))return r(void 0,t);if(!X.isUndefined(e))return r(void 0,e)}function s(n){let r=X.hasOwnProp(t,`transitional`)?t.transitional:void 0;if(!X.isUndefined(r))if(X.isPlainObject(r)){if(X.hasOwnProp(r,n))return r[n]}else return;let i=X.hasOwnProp(e,`transitional`)?e.transitional:void 0;if(X.isPlainObject(i)&&X.hasOwnProp(i,n))return i[n]}function c(n,i,a){if(X.hasOwnProp(t,a))return r(n,i);if(X.hasOwnProp(e,a))return r(void 0,n)}let l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutErrorMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:c,headers:(e,t,n)=>i(PF(e),PF(t),n,!0)};return X.forEach(FF({...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 LF=[`content-type`,`content-length`];function RF(e,t,n){if(n!==`content-only`){e.set(t);return}Object.entries(t||{}).forEach(([t,n])=>{LF.includes(t.toLowerCase())&&e.set(t,n)})}var zF=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function BF(e){let t=IF({},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=EP.from(s),t.url=HP(NF(l,d,u,t),n(`params`),n(`paramsSerializer`)),c){let t=X.getSafeProp(c,`username`)||``,n=X.getSafeProp(c,`password`)||``;try{s.set(`Authorization`,`Basic `+btoa(t+`:`+(n?zF(n):``)))}catch(t){throw Z.from(t,Z.ERR_BAD_OPTION_VALUE,e)}}if(X.isFormData(r)){let e=X.getSafeProp(r,`getHeaders`);nF.hasStandardBrowserEnv||nF.hasStandardBrowserWebWorkerEnv||X.isReactNative(r)?s.setContentType(void 0):X.isFunction(e)&&RF(s,e.call(r),n(`formDataHeaderPolicy`))}if(nF.hasStandardBrowserEnv&&(X.isFunction(i)&&(i=i(t)),i===!0||i==null&&TF(t.url))){let e=a&&o&&EF.read(o);e&&s.set(a,e)}return t}var VF=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=BF(e),i=r.data,a=EP.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p,m;function h(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let g=new XMLHttpRequest;g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout;function _(i){if(!g)return;if(g.status===0&&(yF(vF(r.url))||yF(nF.origin))!==`file`&&!(g.responseURL&&g.responseURL.startsWith(`file:`))){n(new Z(`Request aborted`,Z.ECONNABORTED,e,g)),h(),g=null;return}try{i?m&&m(i):p&&p()}catch(e){setTimeout(()=>{throw e})}if(!g)return;let a=EP.from(`getAllResponseHeaders`in g&&g.getAllResponseHeaders());gF(function(e){t(e),h()},function(e){n(e),h()},{data:!o||o===`text`||o===`json`?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:a,config:e,request:g}),g=null}`onloadend`in g?g.onloadend=_:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.startsWith(`file:`))||setTimeout(_)},g.onabort=function(){g&&=(n(new Z(`Request aborted`,Z.ECONNABORTED,e,g)),h(),null)},g.onerror=function(t){let r=new Z(t&&t.message?t.message:`Network Error`,Z.ERR_NETWORK,e,g);r.event=t||null,n(r),h(),g=null},g.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||JP;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Z(t,i.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,e,g)),h(),g=null},i===void 0&&a.setContentType(null),`setRequestHeader`in g&&X.forEach(pP(a),function(e,t){g.setRequestHeader(t,e)}),X.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),o&&o!==`json`&&(g.responseType=r.responseType),c&&([d,p,m]=SF(c,!0),g.addEventListener(`progress`,d)),s&&g.upload&&([u,f]=SF(s),g.upload.addEventListener(`progress`,u),g.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{g&&=(n(!t||t.type?new hF(null,e,g):t),g.abort(),h(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let v=yF(r.url);if(v&&!nF.protocols.includes(v)){n(new Z(`Unsupported protocol `+v+`:`,Z.ERR_BAD_REQUEST,e)),h();return}g.send(i||null)})},HF=(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 hF(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new Z(`timeout of ${t}ms exceeded`,Z.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>{if(!r){if(e.aborted){i.call(e);return}e.addEventListener(`abort`,i,{once:!0})}});let{signal:s}=n;return s.unsubscribe=()=>X.asap(o),s},UF=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},WF=async function*(e,t){for await(let n of GF(e))yield*UF(n,t)},GF=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()}},KF=(e,t,n,r)=>{let i=WF(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})},qF=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,JF=(e,t,n)=>t+2<n&&qF(e.charCodeAt(t+1))&&qF(e.charCodeAt(t+2)),YF=e=>e<=57?e-48:(e&223)-55,XF=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,ZF=e=>e===9||e===10||e===12||e===13||e===32,QF=e=>{let t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},$F=e=>{let t=e.length,n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},eI=e=>{let t=e.length,n=0,r=0,i=!1;for(let a=0;a<t;a++){let o=e.charCodeAt(a);if(o===37&&JF(e,a,t)&&(o=YF(e.charCodeAt(a+1))*16+YF(e.charCodeAt(a+2)),a+=2),!ZF(o)){if(o===61){r++;continue}if(!XF(o)||r>0){i=!0;continue}n++}}return i||r>2||r>0&&(n+r)%4!=0||n%4==1?$F(e):QF(n)},tI=(e,t)=>{if(!e||typeof e!=`string`||!e.startsWith(`data:`))return 0;let n=e.indexOf(`,`);if(n<0)return 0;let r=e.slice(5,n),i=e.slice(n+1);if(/;base64/i.test(r))return t(i);let a=0;for(let e=0,t=i.length;e<t;e++){let n=i.charCodeAt(e);if(n===37&&JF(i,e,t))a+=1,e+=2;else if(n<128)a+=1;else if(n<2048)a+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=i.charCodeAt(e+1);t>=56320&&t<=57343?(a+=4,e++):a+=3}else a+=3}return a};function nI(e){let t=typeof e==`string`?e.indexOf(`#`):-1;return tI(t===-1?e:e.slice(0,t),eI)}var rI=`1.20.0`,iI=64*1024,aI={cache:`default`,redirect:`follow`,referrer:`about:client`,referrerPolicy:``,mode:`cors`,integrity:``,keepalive:!1,priority:`auto`,window:null},{isFunction:oI}=X,sI=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),cI=e=>{if(!X.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},lI=(e,...t)=>{try{return!!e(...t)}catch{return!1}},uI=e=>{let t=e.indexOf(`://`),n=e;return t!==-1&&(n=n.slice(t+3)),n.includes(`@`)||n.includes(`:`)},dI=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?oI(i):typeof fetch==`function`,c=oI(a),l=oI(o);if(!s)return!1;let u=s&&oI(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&&lI(()=>{let e=!1,t=new a(nF.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&&lI(()=>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(nF.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(X.isArrayBufferView(e)||X.isArrayBuffer(e))return e.byteLength;if(X.isURLSearchParams(e)&&(e+=``),X.isString(e))return(await d(e)).byteLength},g=async(e,t)=>X.toFiniteNumber(e.getContentLength())??h(t);return async e=>{let{url:t,method:n,data:s,signal:l,cancelToken:d,timeout:_,onDownloadProgress:v,onUploadProgress:y,responseType:b,headers:x,withCredentials:S=`same-origin`,fetchOptions:C,maxContentLength:w,maxBodyLength:T,maxRedirects:E}=BF(e),D=X.isNumber(w)&&w>-1,O=X.isNumber(T)&&T>-1,k=t=>X.hasOwnProp(e,t)?e[t]:void 0,A=i||fetch;b=b?(b+``).toLowerCase():`text`;let j=HF([l,d&&d.toAbortSignal()],_),M=null,N=j&&j.unsubscribe&&(()=>{j.unsubscribe()}),P,F=null,I=()=>new Z(`Request body larger than maxBodyLength limit`,Z.ERR_BAD_REQUEST,e,M);try{let i,l=k(`auth`);if(l&&(i={username:X.getSafeProp(l,`username`)||``,password:X.getSafeProp(l,`password`)||``}),uI(t)){let e=new URL(t,nF.origin);!i&&(e.username||e.password)&&(i={username:cI(e.username),password:cI(e.password)}),(e.username||e.password)&&(e.username=``,e.password=``,t=e.href)}if(i&&(x.delete(`authorization`),x.set(`Authorization`,`Basic `+btoa(sI((i.username||``)+`:`+(i.password||``))))),D&&typeof t==`string`&&t.startsWith(`data:`)&&nI(t)>w)throw new Z(`maxContentLength size of `+w+` exceeded`,Z.ERR_BAD_RESPONSE,e,M);if(O&&n!==`get`&&n!==`head`){let e=await h(s);if(typeof e==`number`&&isFinite(e)&&(P=e,e>T))throw I()}let d=O&&(X.isReadableStream(s)||X.isStream(s)),_=(e,t,n)=>KF(e,iI,e=>{if(O&&e>T)throw F=I();t&&t(e)},n);if(f&&n!==`get`&&n!==`head`&&(y||d)){if(P??=await g(x,s),P!==0||d){let e=new a(t,{method:`POST`,body:s,duplex:`half`}),n;if(X.isFormData(s)&&(n=e.headers.get(`content-type`))&&x.setContentType(n),e.body){let[t,n]=y&&CF(P,SF(wF(y)))||[];s=_(e.body,t,n)}}}else if(d&&!c&&u&&n!==`get`&&n!==`head`)s=_(s);else if(d&&c&&!f&&n!==`get`&&n!==`head`)throw new Z(`Stream request bodies are not supported by the current fetch implementation`,Z.ERR_NOT_SUPPORT,e,M);X.isString(S)||(S=S?`include`:`omit`);let ee=c&&`credentials`in a.prototype;if(X.isFormData(s)){let e=x.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&x.delete(`content-type`)}x.set(`User-Agent`,`axios/`+rI,!1);let te=C==null?C:Object.assign(Object.create(null),C);te&&(delete te.body,delete te.headers,delete te.method,delete te.signal,delete te.duplex,delete te.credentials);let ne=Object.assign(Object.create(null),te,{signal:j,method:n.toUpperCase(),headers:pP(x.normalize()),body:s,duplex:`half`,credentials:ee?S:void 0});c&&(X.forEach(aI,(e,t)=>{ne[t]===void 0&&(ne[t]=e)}),ne.signal===void 0&&(ne.signal=null),ne.body===void 0&&(ne.body=null)),E===0&&(ne.redirect=`manual`,te&&(te.redirect=`manual`)),M=c&&new a(t,ne);let re=await(c?A(M,te):A(t,ne)),ie=EP.from(re.headers);if(D){let t=X.toFiniteNumber(ie.getContentLength());if(t!=null&&t>w)throw new Z(`maxContentLength size of `+w+` exceeded`,Z.ERR_BAD_RESPONSE,e,M)}let ae=p&&(b===`stream`||b===`response`);if(p&&re.body&&(v||D||ae&&N)){let t={};[`status`,`statusText`,`headers`].forEach(e=>{t[e]=re[e]});let n=X.toFiniteNumber(ie.getContentLength()),[r,i]=v&&CF(n,SF(wF(v),!0))||[],a=0;re=new o(KF(re.body,iI,t=>{if(D&&(a=t,a>w))throw new Z(`maxContentLength size of `+w+` exceeded`,Z.ERR_BAD_RESPONSE,e,M);r&&r(t)},()=>{i&&i(),N&&N()}),t)}b||=`text`;let oe=await m[X.findKey(m,b)||`text`](re,e);if(D&&!p&&!ae){let t;if(oe!=null&&(typeof oe.byteLength==`number`?t=oe.byteLength:typeof oe.size==`number`?t=oe.size:typeof oe==`string`&&(t=typeof r==`function`?new r().encode(oe).byteLength:oe.length)),typeof t==`number`&&t>w)throw new Z(`maxContentLength size of `+w+` exceeded`,Z.ERR_BAD_RESPONSE,e,M)}return!ae&&N&&N(),await new Promise((t,n)=>{gF(t,n,{data:oe,headers:EP.from(re.headers),status:re.status,statusText:re.statusText,config:e,request:M})})}catch(t){if(N&&N(),j&&j.aborted&&j.reason instanceof Z){let n=j.reason;throw n.config=e,M&&(n.request=M),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(F)throw M&&!F.request&&(F.request=M),F;if(t instanceof Z)throw M&&!t.request&&(t.request=M),t;if(t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)){let n=new Z(`Network Error`,Z.ERR_NETWORK,e,M,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw Z.from(t,t&&t.code,e,M,t&&t.response)}}},fI=new Map,pI=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=fI;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:dI(t)),l=c;return c};pI();var mI={http:null,xhr:VF,fetch:{get:pI}};X.forEach(mI,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var hI=e=>`- ${e}`,gI=e=>X.isFunction(e)||e===null||e===!1;function _I(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,!gI(r)&&(i=mI[(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
25
|
`+e.map(hI).join(`
|
|
@@ -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 oR(e){if(typeof e==`number`)return e;let t=String(e);for(let e of[[/&/g,`&`],[/</g,`<`],[/>/g,`>`],[/'/g,`'`],[/"/g,`"`]])t=t.replace(e[0],e[1]);return t}var sR=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}`)}})},cR=(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(()=>{sR(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)},lR=(e,t)=>cR(!1,e,t),uR;function dR(e,t){return uR||=new aR,uR.format(e,t)}var fR=e=>e.join(`.`),pR=e=>!!(e&&typeof e==`object`),Q=(e,t,n)=>e?t.reduce((e,t)=>{if(pR(e))return e[t]},e)??n:n,mR=(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];pR(r)||(i[n]={}),i=i[n]}return i[t[t.length-1]]=n,r},hR=(e,t)=>{let n=Number(e);return Number.isFinite(n)?n:t},gR=(e,t)=>Array.isArray(e)&&e.includes(t),_R=e=>!!(e&&typeof e==`object`&&`description`in e),vR=e=>{if(!e||typeof e!=`object`)return e;let t=structuredClone(e);for(let{path:e,options:n}of[{path:[`bilibili`,`sendContent`],options:[`info`,`comment`,`video`,`image`]},{path:[`bilibili`,`displayContent`],options:[`cover`,`title`,`author`,`stats`,`desc`]},{path:[`bilibili`,`push`,`parseDynamicTypes`],options:[`DYNAMIC_TYPE_AV`,`DYNAMIC_TYPE_DRAW`,`DYNAMIC_TYPE_ARTICLE`]},{path:[`douyin`,`sendContent`],options:[`info`,`comment`,`video`,`image`]},{path:[`xiaohongshu`,`sendContent`],options:[`info`,`comment`,`video`,`image`]},{path:[`kuaishou`,`sendContent`],options:[`info`,`comment`,`video`,`image`]}]){let r=Q(t,e,null);if(!Array.isArray(r))continue;let i=n.filter(e=>r.includes(e)),a=t;for(let t=0;t<e.length-1;t++){let n=e[t];pR(a[n])||(a[n]={}),a=a[n]}a[e[e.length-1]]=i}return t},yR=e=>typeof e==`object`&&!!e,bR=e=>{let t={added:0,modified:0,deleted:0},n=e=>{if(yR(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},xR=({original:e,current:t,showUnchanged:n=!1})=>{let r=(0,v.useRef)(null),i=(0,v.useMemo)(()=>{if(!(!e||!t))return rR(vR(e),vR(t))},[e,t]),a=(0,v.useMemo)(()=>e?vR(e):void 0,[e]),o=(0,v.useMemo)(()=>{if(i)return dR(i,a)},[i,a]),s=(0,v.useMemo)(()=>bR(i),[i]);return(0,v.useEffect)(()=>{r.current&&(o?(r.current.innerHTML=o,n?cR(!0,r.current):lR(r.current)):r.current.innerHTML=``)},[o,n]),o?(0,H.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,H.jsx)(b_,{size:`sm`,color:`success`,variant:`soft`,children:(0,H.jsxs)(b_.Label,{children:[`+ `,s.added,` 新增`]})}),(0,H.jsx)(b_,{size:`sm`,color:`warning`,variant:`soft`,children:(0,H.jsxs)(b_.Label,{children:[`~ `,s.modified,` 修改`]})}),(0,H.jsx)(b_,{size:`sm`,color:`danger`,variant:`soft`,children:(0,H.jsxs)(b_.Label,{children:[`- `,s.deleted,` 删除`]})})]}),(0,H.jsx)(`div`,{className:`max-h-[60vh] overflow-auto rounded-xl border border-default-200 bg-surface p-4`,children:(0,H.jsx)(`div`,{ref:r,className:`min-w-fit`})})]}):(0,H.jsx)(`div`,{className:`flex flex-col items-center justify-center gap-2 py-10 text-center`,children:(0,H.jsx)(eb,{className:`text-sm text-muted`,children:`当前没有检测到配置变更`})})},SR=`变更预览`,CR=`绿色 = 新增/改后的内容,红色 = 删除/改前的内容,灰色 = 没变化的内容。`,wR=({device:e,original:t,current:n,isOpen:r,onOpenChange:i})=>{let[a,o]=(0,v.useState)(!1),s=(0,H.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,H.jsx)(eb,{className:`text-xs text-muted`,children:CR}),(0,H.jsx)(px,{size:`sm`,isSelected:a,onChange:o,"aria-label":`显示未变更字段`,children:(0,H.jsxs)(px.Content,{children:[(0,H.jsx)(px.Control,{children:(0,H.jsx)(px.Thumb,{})}),`显示未变更`]})})]}),(0,H.jsx)(xR,{original:t,current:n,showUnchanged:a})]}),c=(0,H.jsx)(Ug,{slot:`close`,size:`sm`,variant:`secondary`,children:`关闭`});return e===`mobile`?(0,H.jsx)(vb,{children:(0,H.jsx)(vb.Backdrop,{isOpen:r,onOpenChange:i,children:(0,H.jsx)(vb.Content,{placement:`bottom`,children:(0,H.jsxs)(vb.Dialog,{className:`h-[85vh]`,children:[(0,H.jsx)(vb.Handle,{}),(0,H.jsx)(vb.CloseTrigger,{}),(0,H.jsx)(vb.Header,{children:(0,H.jsx)(vb.Heading,{children:SR})}),(0,H.jsx)(vb.Body,{children:s}),(0,H.jsx)(vb.Footer,{children:c})]})})})}):(0,H.jsx)(Rb,{children:(0,H.jsx)(Rb.Backdrop,{isOpen:r,onOpenChange:i,children:(0,H.jsx)(Rb.Container,{scroll:`inside`,size:`lg`,children:(0,H.jsxs)(Rb.Dialog,{className:`w-full max-w-4xl`,children:[(0,H.jsx)(Rb.CloseTrigger,{}),(0,H.jsxs)(Rb.Header,{children:[(0,H.jsx)(Rb.Icon,{className:`bg-accent-soft text-accent-soft-foreground`,children:(0,H.jsx)(_M,{className:`size-5`})}),(0,H.jsx)(Rb.Heading,{children:SR})]}),(0,H.jsx)(Rb.Body,{children:s}),(0,H.jsx)(Rb.Footer,{children:c})]})})})})},TR=e=>!!(e&&typeof e==`object`),$=(e,t,n)=>e?t.reduce((e,t)=>{if(TR(e))return e[t]},e)??n:n,ER=(e,t)=>Array.isArray(e)&&e.includes(t),DR=[{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=>!ER($(e,[`douyin`,`sendContent`],[]),`comment`),message:`修改此配置项需要在「解析时发送的内容」中勾选「评论图」`}]},{path:[`douyin`,`subCommentLimit`],rules:[{condition:e=>!$(e,[`douyin`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!ER($(e,[`douyin`,`sendContent`],[]),`comment`),message:`修改此配置项需要在「解析时发送的内容」中勾选「评论图」`}]},{path:[`douyin`,`commentImageCollection`],rules:[{condition:e=>!$(e,[`douyin`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!ER($(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=>!ER($(e,[`bilibili`,`sendContent`],[]),`comment`),message:`修改此配置项需要在「解析时发送的内容」中勾选「评论图」`}]},{path:[`bilibili`,`realCommentCount`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!ER($(e,[`bilibili`,`sendContent`],[]),`comment`),message:`修改此配置项需要在「解析时发送的内容」中勾选「评论图」`}]},{path:[`bilibili`,`commentImageCollection`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!ER($(e,[`bilibili`,`sendContent`],[]),`comment`),message:`修改此配置项需要在「解析时发送的内容」中勾选「评论图」`}]},{path:[`bilibili`,`videoQuality`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`}]},{path:[`bilibili`,`maxAutoVideoSize`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>Number($(e,[`bilibili`,`videoQuality`],0))!==0,message:`修改此配置项需要先将「画质偏好」改为「自动选择」`}]},{path:[`bilibili`,`videoInfoMode`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`}]},{path:[`bilibili`,`displayContent`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>$(e,[`bilibili`,`videoInfoMode`],`text`)===`image`,message:`修改此配置项需要先将「视频信息返回形式」改为「文本模式」`}]},{path:[`bilibili`,`showDanmakuInVideoInfo`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>$(e,[`bilibili`,`videoInfoMode`],`text`)===`text`,message:`修改此配置项需要先将「视频信息返回形式」改为「图片模式」`}]},{path:[`bilibili`,`burnDanmaku`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`}]},{path:[`bilibili`,`danmakuArea`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!$(e,[`bilibili`,`burnDanmaku`],!1),message:`修改此配置项需要先将「弹幕烧录」打开`}]},{path:[`bilibili`,`danmakuFontSize`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!$(e,[`bilibili`,`burnDanmaku`],!1),message:`修改此配置项需要先将「弹幕烧录」打开`}]},{path:[`bilibili`,`danmakuOpacity`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!$(e,[`bilibili`,`burnDanmaku`],!1),message:`修改此配置项需要先将「弹幕烧录」打开`}]},{path:[`bilibili`,`verticalMode`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!$(e,[`bilibili`,`burnDanmaku`],!1),message:`修改此配置项需要先将「弹幕烧录」打开`}]},{path:[`bilibili`,`videoCodec`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!$(e,[`bilibili`,`burnDanmaku`],!1),message:`修改此配置项需要先将「弹幕烧录」打开`}]},{path:[`bilibili`,`push`,`permission`],rules:[{condition:e=>!$(e,[`bilibili`,`push`,`switch`],!1),message:`修改此配置项需要先将「推送开关」打开`}]},{path:[`bilibili`,`push`,`cron`],rules:[{condition:e=>!$(e,[`bilibili`,`push`,`switch`],!1),message:`修改此配置项需要先将「推送开关」打开`}]},{path:[`bilibili`,`push`,`parsedynamic`],rules:[{condition:e=>!$(e,[`bilibili`,`push`,`switch`],!1),message:`修改此配置项需要先将「推送开关」打开`}]},{path:[`bilibili`,`push`,`parseDynamicTypes`],rules:[{condition:e=>!$(e,[`bilibili`,`push`,`switch`],!1),message:`修改此配置项需要先将「推送开关」打开`},{condition:e=>!$(e,[`bilibili`,`push`,`parsedynamic`],!1),message:`修改此配置项需要先将「作品解析」打开`}]},{path:[`bilibili`,`push`,`pushVideoQuality`],rules:[{condition:e=>!$(e,[`bilibili`,`push`,`switch`],!1),message:`修改此配置项需要先将「推送开关」打开`},{condition:e=>!$(e,[`bilibili`,`push`,`parsedynamic`],!1),message:`修改此配置项需要先将「作品解析」打开`}]},{path:[`bilibili`,`push`,`pushMaxAutoVideoSize`],rules:[{condition:e=>!$(e,[`bilibili`,`push`,`switch`],!1),message:`修改此配置项需要先将「推送开关」打开`},{condition:e=>!$(e,[`bilibili`,`push`,`parsedynamic`],!1),message:`修改此配置项需要先将「作品解析」打开`},{condition:e=>Number($(e,[`bilibili`,`push`,`pushVideoQuality`],0))!==0,message:`修改此配置项需要先将「解析视频动态时的画质偏好」改为「自动选择」`}]},{path:[`kuaishou`,`comment`],rules:[{condition:e=>!$(e,[`kuaishou`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`}]},{path:[`kuaishou`,`numcomment`],rules:[{condition:e=>!$(e,[`kuaishou`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!$(e,[`kuaishou`,`comment`],!1),message:`修改此配置项需要先将「评论解析」打开`}]},{path:[`xiaohongshu`,`sendContent`],rules:[{condition:e=>!$(e,[`xiaohongshu`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`}]},{path:[`xiaohongshu`,`numcomment`],rules:[{condition:e=>!$(e,[`xiaohongshu`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!ER($(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:`修改此配置项需要先将「画质偏好」改为「自动选择」`}]}],OR=e=>e.join(`.`),kR=(e,t)=>{let n=OR(t),r=DR.find(e=>OR(e.path)===n);if(!r)return``;for(let t of r.rules)if(t.condition(e))return t.message;return``},AR=[{label:`信息`,value:`info`},{label:`评论图`,value:`comment`},{label:`视频`,value:`video`},{label:`图片`,value:`image`}],jR=[{label:`封面`,value:`cover`},{label:`标题`,value:`title`},{label:`作者`,value:`author`},{label:`统计`,value:`stats`},{label:`简介`,value:`desc`}],MR=[{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`}],NR=[{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:`需大会员&视频支持`}],PR=[{label:`视频动态`,value:`DYNAMIC_TYPE_AV`},{label:`图文动态`,value:`DYNAMIC_TYPE_DRAW`},{label:`文章动态`,value:`DYNAMIC_TYPE_ARTICLE`}],FR=[{label:`所有人`,value:`all`},{label:`管理员`,value:`admin`},{label:`主人`,value:`master`},{label:`群主`,value:`group.owner`},{label:`群管理员`,value:`group.admin`}],IR=[{label:`H.264`,value:`h264`,description:`兼容性最好,支持几乎所有设备`},{label:`H.265`,value:`h265`,description:`压缩率更高,近几年设备支持良好(推荐)`},{label:`AV1`,value:`av1`,description:`最新编码格式,压缩率最高,但编码较慢`}],LR=[{label:`关闭`,value:`off`,description:`保持原始比例,不做转换`},{label:`智能`,value:`standard`,description:`仅对宽屏比例视频生效`},{label:`强制 9:16`,value:`force`,description:`所有视频统一转为 9:16 竖屏`}],RR=[{label:`1/4 屏`,value:`0.25`,description:`仅顶部区域`},{label:`半屏`,value:`0.5`,description:`上半部分(推荐)`},{label:`3/4 屏`,value:`0.75`,description:`大部分区域`},{label:`全屏`,value:`1`,description:`铺满整个画面`}],zR=[{label:`小号`,value:`small`},{label:`中号`,value:`medium`},{label:`大号`,value:`large`}],BR={enabled:`已开启`,disabled:`已关闭`},VR=[{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`}],HR=(0,v.lazy)(()=>hC(()=>import(`./CronEditor-DfBF9V9u.js`),__vite__mapDeps([0,1]))),UR=({className:e,disabled:t,...n})=>{let[r,i]=(0,v.useState)(!1),a=r?`隐藏密码`:`显示密码`;return(0,H.jsxs)(`div`,{className:`relative w-full`,children:[(0,H.jsx)(Eb,{...n,variant:`secondary`,className:`w-full pr-10 ${e??``}`,type:r?`text`:`password`}),(0,H.jsx)(Ug,{isIconOnly:!0,"aria-label":a,className:`absolute right-1 top-1/2 -translate-y-1/2`,isDisabled:t,size:`sm`,type:`button`,variant:`tertiary`,onPress:()=>i(e=>!e),children:r?(0,H.jsx)(pM,{className:`size-4`,"aria-hidden":`true`}):(0,H.jsx)(hM,{className:`size-4`,"aria-hidden":`true`})})]})},WR=({config:e,device:t,classes:n,validationErrors:r,updateConfigValue:i})=>{let a=e=>{let n=_R(e)?e:{description:e},r=t===`mobile`?n.mobileContent??n.desktopContent:n.desktopContent;return(0,H.jsxs)(eb,{className:`flex items-center gap-2`,children:[(0,H.jsx)(`span`,{children:n.description}),r?(0,H.jsxs)(Xx,{delay:0,children:[(0,H.jsx)(Xx.Trigger,{"aria-label":`查看详细说明`,children:(0,H.jsx)(Ug,{isIconOnly:!0,size:`sm`,variant:`tertiary`,children:(0,H.jsx)(yM,{className:`size-4`,"aria-hidden":`true`})})}),(0,H.jsxs)(Xx.Content,{showArrow:!0,placement:t===`mobile`?`bottom`:`top`,children:[(0,H.jsx)(Xx.Arrow,{}),(0,H.jsx)(`div`,{className:`max-w-72`,children:r})]})]}):null,n.extra]})},o=(n,r,i)=>{if(!i)return n;let a=kR(e,r);return a?t===`mobile`?(0,H.jsxs)(Vb,{children:[(0,H.jsx)(Vb.Trigger,{className:`w-full cursor-not-allowed`,children:n}),(0,H.jsx)(Vb.Content,{placement:`bottom`,children:(0,H.jsxs)(Vb.Dialog,{children:[(0,H.jsx)(Vb.Arrow,{}),(0,H.jsx)(`div`,{className:`max-w-72 text-sm`,children:a})]})})]}):(0,H.jsxs)(Xx,{delay:0,children:[(0,H.jsx)(Xx.Trigger,{className:`w-full cursor-not-allowed`,children:n}),(0,H.jsxs)(Xx.Content,{showArrow:!0,placement:`top`,children:[(0,H.jsx)(Xx.Arrow,{}),(0,H.jsx)(`div`,{className:`max-w-72`,children:a})]})]}):n},s=(t,n,r,a)=>{let o=Q(e,t,[]),s=r?Array.from(new Set([...o,n])):o.filter(e=>e!==n);if(a&&r){let e=a.find(e=>e.includes(n));if(e){let t=e.filter(e=>e!==n);s=s.filter(e=>!t.includes(e))}}i(t,s)};return{renderSwitch:(t,n,r,s=!1)=>{let c=Q(e,t,!1),l=(0,H.jsxs)(px,{isDisabled:s,isSelected:c,onChange:e=>i(t,e),children:[(0,H.jsxs)(px.Content,{children:[(0,H.jsx)(px.Control,{children:(0,H.jsx)(px.Thumb,{})}),(0,H.jsx)(`span`,{className:`font-semibold`,children:n})]}),a(r||(c?BR.enabled:BR.disabled))]});return o(l,t,s)},renderTextField:(t,n,s,c)=>{let l=c?.type||`text`,u=String(Q(e,t,l===`number`?c?.fallback??0:``)),d=r[fR(t)],f=c?.disabled??!1,p=(0,H.jsxs)(vx,{fullWidth:!0,isInvalid:!!d,isDisabled:f,name:t.join(`.`),type:l,value:u,onChange:e=>{i(t,l===`number`?hR(e,c?.fallback??0):e)},children:[(0,H.jsx)(Ob,{className:`font-semibold`,children:n}),l===`password`?(0,H.jsx)(UR,{disabled:f,max:c?.max,min:c?.min,pattern:c?.pattern,placeholder:c?.placeholder||n,step:c?.step}):(0,H.jsx)(Eb,{variant:`secondary`,max:c?.max,min:c?.min,pattern:c?.pattern,placeholder:c?.placeholder||n,step:c?.step}),d?(0,H.jsx)(bb,{children:d}):a(s)]});return o(p,t,f)},renderSelectField:(t,n,r,s,c=e=>e,l=!1)=>{let u=String(Q(e,t,s[0]?.value||``)),d=(0,H.jsxs)(Zb,{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,H.jsx)(Ob,{className:`font-semibold`,children:n}),(0,H.jsxs)(Zb.Trigger,{children:[(0,H.jsx)(Zb.Value,{}),(0,H.jsx)(Zb.Indicator,{})]}),a(r),(0,H.jsx)(Zb.Popover,{children:(0,H.jsx)(Fb,{children:s.map(e=>(0,H.jsxs)(Fb.Item,{id:e.value,textValue:e.label,children:[(0,H.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,H.jsx)(Ob,{children:e.label}),e.description?(0,H.jsx)(eb,{children:e.description}):null]}),(0,H.jsx)(Fb.ItemIndicator,{})]},e.value))})})]});return o(d,t,l)},renderCheckboxGroup:(t,r,i,c,l=!1,u)=>{let d=Q(e,t,[]),f=(0,H.jsxs)(`div`,{className:n.field,children:[(0,H.jsx)(Ob,{className:`font-semibold`,children:r}),a(i),(0,H.jsx)(`div`,{className:n.choiceGrid,children:c.map(e=>(0,H.jsxs)(g_,{variant:`secondary`,isDisabled:l,isSelected:gR(d,e.value),onChange:n=>s(t,e.value,n,u),children:[(0,H.jsxs)(g_.Content,{children:[(0,H.jsx)(g_.Control,{children:(0,H.jsx)(g_.Indicator,{})}),e.label]}),e.description?(0,H.jsx)(eb,{children:e.description}):null]},e.value))})]});return o(f,t,l)},renderSlider:(t,r,s,c)=>{let l=Q(e,t,c?.fallback??0),u=c?.disabled??!1,d=(0,H.jsxs)(`div`,{className:n.field,children:[(0,H.jsxs)(nx,{className:`w-full`,isDisabled:u,value:l,formatOptions:c?.formatOptions??{style:`percent`,maximumFractionDigits:0},maxValue:c?.max??1,minValue:c?.min??0,step:c?.step??.01,onChange:e=>{Array.isArray(e)||i(t,e)},children:[(0,H.jsx)(Ob,{className:`font-semibold`,children:r}),(0,H.jsx)(nx.Output,{}),(0,H.jsxs)(nx.Track,{children:[(0,H.jsx)(nx.Fill,{}),(0,H.jsx)(nx.Thumb,{})]})]}),a(s)]});return o(d,t,u)},renderCronField:(r,a,s,c=!1)=>{let l=Q(e,r,`*/10 * * * *`),u=(0,H.jsx)(`div`,{className:n.field,children:(0,H.jsx)(v.Suspense,{fallback:(0,H.jsx)(`div`,{className:`h-64 animate-pulse rounded-lg bg-muted/30`}),children:(0,H.jsx)(HR,{device:t,disabled:c,value:l,onChange:e=>i(r,e)})})});return o(u,r,c)},renderPageHeader:(e,n)=>(0,H.jsxs)(`div`,{className:`mb-6 ${t===`mobile`?`pr-36`:``}`,"data-config-section":!0,children:[(0,H.jsx)(`h2`,{className:`text-2xl font-bold`,children:e}),(0,H.jsx)(`div`,{className:`mt-3`,children:(0,H.jsx)(eb,{children:n})})]}),renderSubSection:(e,t)=>(0,H.jsxs)(Kg,{"data-config-section":!0,className:`mb-4`,children:[(0,H.jsx)(Kg.Header,{className:n.sectionHeader,children:(0,H.jsx)(Kg.Title,{className:`text-lg font-semibold`,children:e})}),(0,H.jsx)(Kg.Content,{className:n.sectionContent,children:(0,H.jsx)(`div`,{className:n.fields,children:t})})]})}},GR={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`},KR={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`},qR=e=>e===`mobile`?KR:GR,JR=({config:e,renderers:t})=>{let{renderPageHeader:n,renderSelectField:r,renderSubSection:i,renderSwitch:a,renderTextField:o}=t,s=Q(e,[`amagi`,`proxy`,`switch`],!1),c=Q(e,[`amagi`,`APIServer`],!1);return(0,H.jsxs)(H.Fragment,{children:[n(`接口库配置`,`接口库的 Cookies、请求、代理和 API 服务配置。保存后后端会重载接口库客户端。`),i(`平台 Cookies`,(0,H.jsxs)(H.Fragment,{children:[o([`amagi`,`cookies`,`douyin`],`抖音 Cookies`,`请输入你的抖音Cookies,不输入则无法使用抖音相关功能噢。`,{type:`password`}),o([`amagi`,`cookies`,`bilibili`],`B站 Cookies`,`请输入你的B站Cookies,不输入部分功能将受限噢。`,{type:`password`}),o([`amagi`,`cookies`,`kuaishou`],`快手 Cookies`,`请输入你的快手Cookies,不输入则无法使用快手相关功能噢。`,{type:`password`}),o([`amagi`,`cookies`,`xiaohongshu`],`小红书 Cookies`,`请输入你的小红书Cookies,不输入则无法使用小红书相关功能噢。`,{type:`password`})]})),i(`请求配置`,(0,H.jsxs)(H.Fragment,{children:[o([`amagi`,`timeout`],`请求超时时间`,`网络请求的超时时间,单位:毫秒。`,{type:`number`,fallback:15e3,min:1e3,max:3e5}),o([`amagi`,`User-Agent`],`User-Agent`,`请求头中的User-Agent字段,用于标识客户端类型。`)]})),i(`代理配置(可选)`,(0,H.jsxs)(H.Fragment,{children:[a([`amagi`,`proxy`,`switch`],`代理开关`,`开启后需要配置「代理主机」「代理端口」。`),r([`amagi`,`proxy`,`protocol`],`代理协议`,`代理服务使用的协议。`,[{label:`HTTP`,value:`http`},{label:`HTTPS`,value:`https`}],e=>e,!s),o([`amagi`,`proxy`,`host`],`代理主机`,`代理服务器的主机地址,如:127.0.0.1。`,{disabled:!s}),o([`amagi`,`proxy`,`port`],`代理端口`,`代理服务器的端口号。`,{type:`number`,fallback:7890,min:1,max:65535,disabled:!s}),o([`amagi`,`proxy`,`auth`,`username`],`代理用户名`,`代理服务器的认证用户名(如果需要)。`,{disabled:!s}),o([`amagi`,`proxy`,`auth`,`password`],`代理密码`,`代理服务器的认证密码(如果需要)。`,{type:`password`,disabled:!s})]})),i(`API 服务配置`,(0,H.jsxs)(H.Fragment,{children:[a([`amagi`,`APIServer`],`API 服务`,`本地部署一个视频解析API服务,接口范围为本插件用到的所有。`),a([`amagi`,`APIServerMount`],`挂载到 Karin`,`API 服务是否挂载到 Karin 上,开启后监听端口为 Karin 的 http 端口,修改后需重启。需开启「API服务」。`,!c),o([`amagi`,`APIServerPort`],`API 服务端口`,`仅未挂载到 Karin 时生效。`,{type:`number`,disabled:Q(e,[`amagi`,`APIServerMount`],!0),fallback:4567,min:1024,max:65535})]}))]})},YR=({config:e,renderers:t})=>{let{renderCheckboxGroup:n,renderPageHeader:r,renderSelectField:i,renderSlider:a,renderSubSection:o,renderSwitch:s,renderTextField:c}=t,l=Q(e,[`app`,`livePhotoMode`],`video_and_livephoto`);return(0,H.jsxs)(H.Fragment,{children:[r(`通用`,`插件运行、渲染和交互相关配置。`),o(`缓存设置`,(0,H.jsx)(H.Fragment,{children:s([`app`,`removeCache`],`自动删除视频缓存`,`任务完成后删除下载缓存。`)})),o(`交互设置`,(0,H.jsxs)(H.Fragment,{children:[s([`app`,`EmojiReply`],`表情回应`,`在解析任务开始时添加表情回应,若适配器不支持需要关闭。`),s([`app`,`parseTip`],`解析提示`,`发送提示信息:"检测到xxx链接,开始解析"。`),s([`app`,`fakeForward`],`伪造合并转发消息`,`开启后合并转发将使用触发者身份展示;关闭后使用机器人身份展示。`),n([`app`,`errorLogSendTo`],`错误日志`,`遇到错误时谁会收到错误日志。注:推送任务只可发送给主人。「第一个主人」与「所有主人」互斥。`,[{label:`第一个主人`,value:`master`},{label:`所有主人`,value:`allMasters`},{label:`触发者的群聊`,value:`trigger`}],!1,[[`master`,`allMasters`]])]})),o(`渲染设置`,(0,H.jsxs)(H.Fragment,{children:[c([`app`,`renderScale`],`渲染精度`,`可选值50~200,建议100。设置高精度会提高图片的精细度,过高可能会影响渲染与发送速度。`,{type:`number`,fallback:100,min:50,max:200}),(0,H.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,H.jsx)(`div`,{className:`min-w-0 flex-1`,children:i([`app`,`Theme`],`渲染图片的主题色`,`渲染评论图和推送图的主题色。`,[{label:`自动`,value:`0`,description:`06:00-18:00为浅色,18:00-06:00为深色`},{label:`浅色`,value:`1`},{label:`深色`,value:`2`},{label:`智能场景(实验性)`,value:`3`,description:`自动模式的超集;部分模板会根据封面色调 智能调整主题色,可能会出现不适配的情况。`}],e=>Number(e))}),(0,H.jsxs)(Vb,{children:[(0,H.jsx)(Vb.Trigger,{"aria-label":`封面氛围背景参数`,className:`mt-7 shrink-0`,children:(0,H.jsx)(Ug,{isIconOnly:!0,"aria-label":`封面氛围背景参数`,variant:`secondary`,children:(0,H.jsx)(NM,{className:`size-4`,"aria-hidden":`true`})})}),(0,H.jsx)(Vb.Content,{className:`w-90 max-w-[calc(100vw-2rem)]`,placement:`bottom`,children:(0,H.jsxs)(Vb.Dialog,{children:[(0,H.jsx)(Vb.Arrow,{}),(0,H.jsx)(Vb.Heading,{children:`封面氛围背景`}),(0,H.jsx)(`p`,{className:`mt-1 mb-5 text-sm text-muted`,children:`仅对使用封面氛围背景的模板生效(抖音视频/图文作品、B站视频信息、B站直播推荐动态)。`}),(0,H.jsxs)(`div`,{className:`flex flex-col gap-5`,children:[a([`app`,`ambientCover`,`coverOpacity`],`封面氛围强度`,`封面图对背景氛围的贡献度,即模糊封面层的不透明度,越大封面色越浓。`,{fallback:.7}),a([`app`,`ambientCover`,`overlayEdgeOpacity`],`氛围压色(顶部/底部)`,`背景两端主题色压色罩的不透明度,越大两端越接近纯色主题背景。`,{fallback:.9}),a([`app`,`ambientCover`,`overlayMiddleOpacity`],`氛围压色(中间带)`,`背景中间带主题色压色罩的不透明度,越小封面色越透。`,{fallback:.2})]})]})})]})]}),c([`app`,`RenderWaitTime`],`渲染图片的等待时间`,`单位:秒,Linux系统下不能为0;其他系统传递 0 可禁用。`,{type:`number`,fallback:60,min:0}),s([`app`,`multiPageRender`],`分页渲染`,`将模板渲染成多页的图片,以降低渲染器压力,默认开启,非必要不修改!`),c([`app`,`multiPageHeight`],`分页渲染时,每页的高度`,`经测试最佳每页高度为12000px,默认12000px。`,{type:`number`,disabled:!Q(e,[`app`,`multiPageRender`],!0),fallback:12e3,min:1e3,max:2e4})]})),o(`上传与下载设置`,(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(ox,{className:`flex flex-col gap-5 p-4 mb-4 rounded-3xl`,variant:`secondary`,children:[i([`app`,`videoSendMode`],`本地视频发送方式`,`选择本地视频交付给协议端的方式。`,[{label:`File 协议(本地文件)`,value:`file`,description:`使用 file 协议发送本地视频,需 Karin 与协议端在同一网络环境下`},{label:`Base64(编码传输)`,value:`base64`,description:`将本地视频转换为 base64 发送,传输数据量增大约 30%,不在同一网络环境可能导致额外带宽成本,适合 karin 和协议端不在同一网络环境`}],e=>e,Q(e,[`app`,`usegroupfile`],!1)),s([`app`,`usegroupfile`],`群文件上传`,`使用群文件上传,开启后会将视频文件上传到群文件中,需配置「群文件上传阈值」。与「本地视频发送方式 = Base64」互斥。`,Q(e,[`app`,`videoSendMode`],`file`)===`base64`),c([`app`,`groupfilevalue`],`群文件上传阈值`,`当文件大小超过该值时将使用群文件上传,单位:MB,「使用群文件上传」开启后才会生效。`,{type:`number`,fallback:100,min:1,disabled:!Q(e,[`app`,`usegroupfile`],!1)||Q(e,[`app`,`videoSendMode`],`file`)===`base64`})]}),(0,H.jsx)(ox,{className:`flex flex-col gap-5 p-4 mb-4 rounded-3xl`,variant:`secondary`,children:i([`app`,`imageSendMode`],`网络图片发送方式`,`图片资源发送给协议端的方式。`,[{label:`URL 链接(直接传递)`,value:`url`,description:`直接传递 HTTP 链接给上游下载,可能因上游网络问题导致下载超时`},{label:`File 协议(本地文件)`,value:`file`,description:`下载到本地后使用 file 协议发送,需 Karin 与协议端在同一网络环境下`},{label:`Base64(编码传输)`,value:`base64`,description:`下载后转换为 base64 发送,传输数据量增大约 30%,不在同一网络环境可能导致额外带宽成本`}])}),(0,H.jsxs)(ox,{className:`flex flex-col gap-5 p-4 mb-4 rounded-3xl`,variant:`secondary`,children:[s([`app`,`usefilelimit`],`视频上传拦截`,`开启后会根据视频文件大小判断是否需要上传,需配置「视频拦截阈值」。`),c([`app`,`filelimit`],`视频拦截阈值`,`视频文件大于该数值则直接结束任务,不会上传,单位: MB,「视频上传拦截」开启后才会生效。`,{type:`number`,fallback:20,min:1,disabled:!Q(e,[`app`,`usefilelimit`],!1)}),s([`app`,`compress`],`压缩视频`,`开启后会将视频文件压缩后再上传,适合上传大文件,任务过程中会吃满CPU,对低配服务器不友好。需配置「压缩触发阈值」与「压缩后的值」。`),c([`app`,`compresstrigger`],`压缩触发阈值`,`触发视频压缩的阈值,单位:MB。当文件大小超过该值时,才会压缩视频,「压缩视频」开启后才会生效。`,{type:`number`,fallback:80,min:1,disabled:!Q(e,[`app`,`compress`],!1)}),c([`app`,`compressvalue`],`压缩后的值`,`单位:MB,若视频文件大小大于「压缩触发阈值」的值,则会进行压缩至该值(±5%),「压缩视频」开启后才会生效。`,{type:`number`,fallback:30,min:1,disabled:!Q(e,[`app`,`compress`],!1)})]}),(0,H.jsxs)(ox,{className:`flex flex-col gap-5 p-4 rounded-3xl`,variant:`secondary`,children:[s([`app`,`downloadThrottle`],`下载限速`,`开启后会限制下载速度,避免触发服务器风控导致连接被重置(ECONNRESET)。如果下载时经常报错"连接被重置",建议开启。`),c([`app`,`downloadMaxSpeed`],`最大下载速度`,`限速开关打开后生效。单位:MB/s,建议值:10,根据实际情况调整。`,{type:`number`,fallback:10,min:1,max:100,disabled:!Q(e,[`app`,`downloadThrottle`],!1)}),s([`app`,`downloadAutoReduce`],`断流自动降速`,`限速开关打开后生效。当检测到下载中断时,自动降低下载速度,避免再次触发风控。`,!Q(e,[`app`,`downloadThrottle`],!1)),c([`app`,`downloadMinSpeed`],`最低下载速度`,`断流降速开关打开后生效。单位:MB/s,自动降速的下限值。`,{type:`number`,fallback:1,min:.5,max:50,disabled:!Q(e,[`app`,`downloadThrottle`],!1)||!Q(e,[`app`,`downloadAutoReduce`],!1)})]})]})),o(`Live Photo 兼容设置`,(0,H.jsxs)(H.Fragment,{children:[i([`app`,`livePhotoMode`],`Live Photo 处理和发送方式`,`解析遇到实况图时的处理和发送方式。注意:生成视频性能开销大,2C2G 服务器单张约需 20 秒。`,[{label:`视频 + 实况图`,value:`video_and_livephoto`,description:`生成并发送仿 iPhone Live Photo 播放效果的视频(播放三次)+ 对应系统的实况图`},{label:`仅视频`,value:`video_only`,description:`仅生成并发送仿 iPhone Live Photo 播放效果的视频(播放三次)`},{label:`仅实况图`,value:`livephoto_only`,description:`仅生成并发送对应系统的实况图,性能开销小`}]),i([`app`,`livePhotoSystem`],`Live Photo 静态图兼容系统`,`当解析到作品/动态包含 Live Photo 时,合并转发里发送的 Live Photo 静态图按所选系统生成。推荐 OPPO,兼容性最广。`,[{label:`Google`,value:`google`,description:`Google Motion Photo 格式`},{label:`小米(HyperOS)`,value:`xiaomi`,description:`兼容小米(任何版本)和 Google,但无法被 OPPO 识别`},{label:`OPPO(ColorOS)`,value:`oppo`,description:`推荐,兼容 OPPO、小米(较新版本)和 Google`},{label:`华为/荣耀(HarmonyOS/MagicOS)`,value:`huawei_honor`,description:`理论可行但未实测(作者无对应设备)`},{label:`vivo(Origin OS)`,value:`vivo`,description:`需要独立的图片和同名视频文件,暂不支持`,disabled:!0},{label:`iPhone(iOS)`,value:`iphone`,description:`需要独立的图片和同名视频文件,暂不支持`,disabled:!0}],e=>e,l===`video_only`)]})),o(`我的小玩具`,(0,H.jsxs)(H.Fragment,{children:[s([`app`,`videoTool`],`默认解析优先级`,`关闭后使用自定义优先级,修改后需重启。`),c([`app`,`priority`],`自定义优先级`,`默认解析优先级关闭后生效。`,{type:`number`,disabled:Q(e,[`app`,`videoTool`],!0),fallback:800}),i([`app`,`qrLoginAddrType`],`扫码登录地址`,`生成登录二维码时使用的服务器地址。`,[{label:`局域网`,value:`lan`,description:`适用于手机和服务器在同一局域网`},{label:`外部地址`,value:`external`,description:`适用于远程访问,需手动配置`}]),c([`app`,`qrLoginExternalAddr`],`外部访问地址`,`公网 IP 或域名,如:123.45.67.89 或 example.com。`,{disabled:Q(e,[`app`,`qrLoginAddrType`],`lan`)!==`external`})]}))]})},XR=({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||!gR(d,`comment`),y=!u||!f;return(0,H.jsxs)(H.Fragment,{children:[a(`哔哩哔哩`,`B站解析、动态图片布局、弹幕和推送基础设置。`),(0,H.jsxs)(`div`,{className:n.topLevelFields,"data-config-section":!0,children:[c([`bilibili`,`switch`],`解析开关`,`B站解析开关,此开关为单独开关。`),r([`bilibili`,`sendContent`],`解析时发送的内容`,`若什么都不选,可能不会返回任何解析结果。`,AR.filter(e=>e.value!==`image`),!u)]}),s(`评论详情设置`,(0,H.jsxs)(H.Fragment,{children:[l([`bilibili`,`numcomment`],`评论解析数量`,`主评论解析数量。`,{type:`number`,fallback:5,min:1,disabled:v}),c([`bilibili`,`realCommentCount`],`显示真实评论数量`,`关闭则显示解析到的评论数量。`,v),c([`bilibili`,`commentImageCollection`],`是否收集评论区的图片`,`开启后将收集评论区的图片,以合并转发的形式返回。`,v)]})),s(`渲染与画质设置`,(0,H.jsxs)(H.Fragment,{children:[o([`bilibili`,`videoQuality`],`画质偏好`,`解析视频的分辨率偏好。`,NR,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`],`视频信息前返回的内容`,`若什么都不选,则不会返回任何视频相关信息。`,jR,!u||m===`image`),c([`bilibili`,`showDanmakuInVideoInfo`],`视频信息图片中显示弹幕`,`开启后在视频信息图片的封面区域显示热门弹幕。关闭后不会请求弹幕数据,可提升解析速度。仅「视频信息返回形式」为图片模式时生效。`,!u||m===`text`)]})),s(`权限设置`,(0,H.jsx)(H.Fragment,{children:o([`bilibili`,`loginPerm`],`谁可以触发扫码登录`,`修改后需重启。`,FR)})),s(`弹幕烧录相关`,(0,H.jsxs)(H.Fragment,{children:[c([`bilibili`,`burnDanmaku`],`弹幕烧录`,`将弹幕硬编码到视频画面中。开启后视频需要重新编码,耗时较长,高分辨率视频会占用较多资源。`,!u),o([`bilibili`,`danmakuArea`],`弹幕区域`,`限制弹幕的显示范围,避免遮挡视频主体内容。`,RR,Number,y),o([`bilibili`,`danmakuFontSize`],`弹幕字号`,`弹幕文字大小。`,zR,e=>e,y),l([`bilibili`,`danmakuOpacity`],`弹幕透明度`,`0为完全透明,100为完全不透明,推荐70。`,{type:`number`,fallback:70,min:0,max:100,disabled:y}),o([`bilibili`,`verticalMode`],`竖屏适配`,`模拟手机端竖屏观看体验,视频居中显示,上下黑边区域用于展示弹幕。`,LR,e=>e,y),o([`bilibili`,`videoCodec`],`视频编码格式`,`弹幕烧录时使用的视频编码格式,会自动检测硬件加速。`,IR,e=>e,y)]})),s(`B站推送相关`,(0,H.jsxs)(H.Fragment,{children:[c([`bilibili`,`push`,`switch`],`推送开关`,`推送开关,修改后需重启;使用「#设置B站推送 + UID」配置推送列表。`),o([`bilibili`,`push`,`permission`],`谁可以设置推送`,`修改后需重启。`,FR,e=>e,!h),i([`bilibili`,`push`,`cron`],`定时任务表达式`,`定时推送的时间,支持可视化编辑或手动输入 cron 表达式。`,!h),c([`bilibili`,`push`,`parsedynamic`],`作品解析`,`触发推送时是否一同解析该作品。`,!h),r([`bilibili`,`push`,`parseDynamicTypes`],`需要解析的动态类型`,`选择推送时需要进一步解析的动态类型;未选择的类型只发送动态卡片。`,PR,!h||!g),o([`bilibili`,`push`,`pushVideoQuality`],`解析视频动态时的画质偏好`,`「作品解析」开启时生效,仅对视频动态有效。`,NR.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})]}))]})},ZR=({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||!gR(f,`comment`),y=!d||!p;return(0,H.jsxs)(H.Fragment,{children:[a(`抖音`,`抖音解析、画质、弹幕和推送基础设置。`),(0,H.jsxs)(`div`,{className:n.topLevelFields,"data-config-section":!0,children:[c([`douyin`,`switch`],`解析开关`,`抖音解析开关,此开关为单独开关。`),r([`douyin`,`sendContent`],`解析时发送的内容`,`若什么都不选,可能不会返回任何解析结果。`,AR.filter(e=>e.value!==`image`),!d)]}),s(`评论详情设置`,(0,H.jsxs)(H.Fragment,{children:[l([`douyin`,`numcomment`],`评论解析数量`,`主评论解析数量。`,{type:`number`,fallback:5,min:1,disabled:v}),l([`douyin`,`subCommentLimit`],`子评论请求数量`,`单条主评论下请求的子评论总条数(含多层嵌套)。注意:UI中最多显示 6 层回复嵌套,超出部分会被隐藏;因实际嵌套深度不可预知,配置数量不代表最终可见数量。`,{type:`number`,fallback:5,min:1,max:20,disabled:v}),c([`douyin`,`commentImageCollection`],`是否收集评论区的图片`,`开启后将收集评论区的图片,以合并转发的形式返回。`,v)]})),s(`渲染与画质设置`,(0,H.jsxs)(H.Fragment,{children:[o([`douyin`,`liveImageMergeMode`],`合辑 Live 图 BGM 合并方式`,`合辑 Live 图 BGM 合并方式,仅 Live Photo 模式不是「仅实况图」时生效。`,[{label:`连续`,value:`continuous`,description:`BGM 接续播放,结束后自动循环`},{label:`独立`,value:`independent`,description:`每张图 BGM 从头开始`}],e=>e,!d||u===`livephoto_only`),o([`douyin`,`videoQuality`],`画质偏好`,`解析视频的分辨率偏好。`,MR,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`],`视频信息的内容`,`若什么都不选,则不会返回任何视频相关信息。`,jR.filter(e=>e.value!==`desc`),!d||h===`image`)]})),s(`权限设置`,(0,H.jsx)(H.Fragment,{children:o([`douyin`,`loginPerm`],`谁可以触发扫码登录`,`修改后需重启。`,FR)})),s(`弹幕烧录相关`,(0,H.jsxs)(H.Fragment,{children:[c([`douyin`,`burnDanmaku`],`弹幕烧录`,`将弹幕硬编码到视频画面中。开启后视频需要重新编码,耗时较长。`,!d),o([`douyin`,`danmakuArea`],`弹幕显示区域`,`限制弹幕范围,避免遮挡视频主体。`,RR,Number,y),o([`douyin`,`danmakuFontSize`],`弹幕字号`,`弹幕文字大小。`,zR,e=>e,y),l([`douyin`,`danmakuOpacity`],`弹幕透明度`,`0为完全透明,100为完全不透明,推荐70。`,{type:`number`,fallback:70,min:0,max:100,disabled:y}),o([`douyin`,`verticalMode`],`竖屏适配`,`针对横屏视频,模拟手机端竖屏观看体验,视频居中显示,上下黑边区域用于展示弹幕。`,LR,e=>e,y),o([`douyin`,`videoCodec`],`视频编码格式`,`烧录弹幕后的视频编码格式。`,IR,e=>e,y)]})),s(`抖音推送相关`,(0,H.jsxs)(H.Fragment,{children:[c([`douyin`,`push`,`switch`],`推送开关`,`推送开关,修改后需重启;使用「#设置抖音推送 + 抖音号」配置推送列表。`),o([`douyin`,`push`,`permission`],`谁可以设置推送`,`修改后需重启。`,FR,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`],`画质偏好`,`推送解析时解析视频的分辨率偏好。`,MR,e=>e,!g),l([`douyin`,`push`,`pushMaxAutoVideoSize`],`视频体积上限(MB)`,`推送解析时根据该值自动选择分辨率进行下载。仅在「画质偏好」 为 "自动选择" 时生效。`,{type:`number`,fallback:50,min:1,max:2e4,disabled:!g||_!==`adapt`})]}))]})},QR=({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,H.jsxs)(H.Fragment,{children:[r(`快手`,`快手解析基础设置。`),(0,H.jsx)(`div`,{className:n.topLevelFields,"data-config-section":!0,children:a([`kuaishou`,`switch`],`解析开关`,`快手解析开关,此开关为单独开关。`)}),i(`评论详情设置`,(0,H.jsxs)(H.Fragment,{children:[a([`kuaishou`,`comment`],`评论解析`,`快手评论解析,开启后可发送快手作品评论图。`,!s),o([`kuaishou`,`numcomment`],`评论解析数量`,`快手评论解析数量。`,{type:`number`,fallback:5,min:1,disabled:!s||!c})]}))]})},$R=({children:e,disabled:t,message:n,device:r})=>t?r===`mobile`?(0,H.jsxs)(Vb,{children:[(0,H.jsx)(Vb.Trigger,{className:`w-full cursor-not-allowed`,children:e}),(0,H.jsxs)(Vb.Content,{placement:`bottom`,children:[(0,H.jsx)(Vb.Arrow,{}),(0,H.jsx)(`div`,{className:`px-3 py-2`,children:(0,H.jsx)(`p`,{className:`text-sm text-foreground`,children:n})})]})]}):(0,H.jsxs)(Xx,{delay:0,children:[(0,H.jsx)(Xx.Trigger,{className:`w-full cursor-not-allowed`,children:e}),(0,H.jsxs)(Xx.Content,{showArrow:!0,placement:`top`,children:[(0,H.jsx)(Xx.Arrow,{}),n]})]}):e,ez=e=>e===`desktop`?`grid grid-cols-2 gap-4`:`flex flex-col gap-4`,tz=[{label:`作品列表`,value:`post`,description:`推送用户发布的作品`},{label:`喜欢列表`,value:`favorite`,description:`推送用户喜欢的作品`},{label:`推荐列表`,value:`recommend`,description:`推送推荐的作品`},{label:`直播`,value:`live`,description:`推送直播状态`}],nz=[{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:`推送专栏文章`}],rz=[{label:`黑名单`,value:`blacklist`,description:`命中关键词/标签则不推送`},{label:`白名单`,value:`whitelist`,description:`只推送命中关键词/标签的内容`}],iz=({label:e,description:t,items:n,onAdd:r,onRemove:i,disabled:a=!1})=>{let[o,s]=(0,v.useState)(``),[c,l]=(0,v.useState)(``),u=()=>{let e=o.trim();if(!e){l(`请输入内容`);return}if(n.includes(e)){l(`该项已存在,请勿重复添加`);return}r(e),s(``),l(``)};return(0,H.jsxs)(`div`,{className:`space-y-2`,children:[(0,H.jsxs)(`div`,{className:`flex gap-2`,children:[(0,H.jsxs)(vx,{className:`flex-1`,isDisabled:a,isInvalid:!!c,value:o,onChange:e=>{s(e),c&&l(``)},children:[(0,H.jsx)(Ob,{children:e}),(0,H.jsx)(Eb,{variant:`secondary`,placeholder:`输入${e}`,onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),u())}}),c?(0,H.jsx)(bb,{children:c}):null]}),(0,H.jsx)(Ug,{isDisabled:a,variant:`secondary`,onPress:u,children:(0,H.jsx)(DM,{className:`size-4`})})]}),n.length>0?(0,H.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:n.map(e=>(0,H.jsxs)(b_,{color:`accent`,variant:`soft`,children:[(0,H.jsx)(`span`,{children:e}),a?null:(0,H.jsx)(`button`,{type:`button`,className:`ml-1 rounded-full p-0.5 hover:bg-black/10`,onClick:()=>i(e),children:(0,H.jsx)(FM,{className:`size-3`})})]},e))}):(0,H.jsxs)(eb,{children:[`暂无`,e]}),(0,H.jsx)(eb,{children:t})]})},az=(e,t)=>{if((e.success||e.code===200)&&e.data!==void 0)return e.data;throw Error(e.message||t)},oz=async()=>az((await $I.get(`/kkk/v1/bots`)).data,`获取 Bot 列表失败`),sz=async e=>az((await $I.get(`/kkk/v1/bots/${encodeURIComponent(e)}/groups`)).data,`获取群列表失败`),cz=async e=>e.length===0?[]:az((await $I.post(`/kkk/v1/groups/batch`,{groups:e})).data,`获取推送目标信息失败`),lz=({mapping:e,compact:t=!1,stacked:n=!1})=>n?(0,H.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,H.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,H.jsxs)(Rg,{size:`sm`,children:[(0,H.jsx)(Rg.Image,{alt:e.groupName||e.groupId,src:e.groupAvatar}),(0,H.jsx)(Rg.Fallback,{children:(e.groupName||e.groupId).slice(0,1)})]}),(0,H.jsxs)(`div`,{className:`min-w-0`,children:[(0,H.jsx)(Ob,{className:`block truncate`,children:e.groupName||e.groupId}),(0,H.jsx)(eb,{className:`block truncate`,children:e.groupId})]})]}),(0,H.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2 pl-8`,children:[(0,H.jsx)(lM,{className:`size-4 shrink-0 text-muted`}),(0,H.jsxs)(Rg,{size:`sm`,children:[(0,H.jsx)(Rg.Image,{alt:e.botName||e.botId,src:e.botAvatar}),(0,H.jsx)(Rg.Fallback,{children:(e.botName||e.botId).slice(0,1)})]}),(0,H.jsxs)(`div`,{className:`min-w-0`,children:[(0,H.jsx)(Ob,{className:`block truncate`,children:e.botName||e.botId}),(0,H.jsx)(eb,{className:`block truncate`,children:t?e.botId:`Bot ${e.botId}`})]})]})]}):(0,H.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,H.jsxs)(Rg,{size:`sm`,children:[(0,H.jsx)(Rg.Image,{alt:e.groupName||e.groupId,src:e.groupAvatar}),(0,H.jsx)(Rg.Fallback,{children:(e.groupName||e.groupId).slice(0,1)})]}),(0,H.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,H.jsx)(Ob,{className:`block truncate`,children:e.groupName||e.groupId}),(0,H.jsx)(eb,{className:`block truncate`,children:e.groupId})]}),(0,H.jsx)(lM,{className:`size-4 shrink-0 text-muted`}),(0,H.jsxs)(Rg,{size:`sm`,children:[(0,H.jsx)(Rg.Image,{alt:e.botName||e.botId,src:e.botAvatar}),(0,H.jsx)(Rg.Fallback,{children:(e.botName||e.botId).slice(0,1)})]}),(0,H.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,H.jsx)(Ob,{className:`block truncate`,children:e.botName||e.botId}),(0,H.jsx)(eb,{className:`block truncate`,children:t?e.botId:`Bot ${e.botId}`})]})]}),uz=e=>`${e.groupId}:${e.botId}`,dz=e=>{let[t,n,r]=e.split(`:`);return!t||!n||r!==void 0?null:{groupId:t,botId:n}},fz=e=>{let t=new Set,n=[];return e.forEach(e=>{let r=dz(e);if(!r)return;let i=uz(r);t.has(i)||(t.add(i),n.push(i))}),n},pz=({device:e,mappings:t,onEdit:n,onRemove:r})=>(0,H.jsxs)(`div`,{className:e===`mobile`?`flex min-h-0 min-w-0 flex-1 flex-col gap-4`:`flex min-w-0 flex-col gap-3`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(Ob,{children:`已配置目标`}),(0,H.jsxs)(eb,{children:[t.length,` 个推送目标`]})]}),t.length>0?(0,H.jsx)(`div`,{className:e===`mobile`?`flex min-h-0 flex-1 flex-col gap-3 overflow-y-auto pb-2`:`flex max-h-72 flex-col gap-2 overflow-y-auto`,children:t.map(t=>{let i=uz(t);return(0,H.jsxs)(`div`,{className:`flex min-w-0 items-start gap-2 rounded-lg border border-default-200 bg-default-50/50 p-2.5`,children:[(0,H.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,H.jsx)(lz,{compact:!0,mapping:t,stacked:e===`mobile`})}),(0,H.jsxs)(Xx,{delay:0,children:[(0,H.jsx)(Ug,{isIconOnly:!0,"aria-label":`编辑推送目标`,size:`sm`,variant:`tertiary`,onPress:()=>n(i),children:(0,H.jsx)(TM,{className:`size-4`})}),(0,H.jsxs)(Xx.Content,{showArrow:!0,placement:`top`,children:[(0,H.jsx)(Xx.Arrow,{}),`编辑`]})]}),(0,H.jsxs)(Xx,{delay:0,children:[(0,H.jsx)(Ug,{isIconOnly:!0,"aria-label":`删除推送目标`,size:`sm`,variant:`danger`,onPress:()=>r(i),children:(0,H.jsx)(FM,{className:`size-4`})}),(0,H.jsxs)(Xx.Content,{showArrow:!0,placement:`top`,children:[(0,H.jsx)(Xx.Arrow,{}),`删除`]})]})]},i)})}):(0,H.jsx)(`div`,{className:`rounded-lg border border-dashed border-default-300 px-4 py-5 text-sm text-muted`,children:`还没有推送目标,点击上方按钮添加。`})]}),mz=({label:e,description:t,placeholder:n,disabled:r=!1,items:i,selectedId:a,onSelect:o})=>(0,H.jsxs)(Zb,{fullWidth:!0,allowsEmptyCollection:!0,isDisabled:r,placeholder:n,value:a||null,variant:`secondary`,onChange:e=>o(String(e||``)),children:[(0,H.jsx)(Ob,{children:e}),(0,H.jsxs)(Zb.Trigger,{children:[(0,H.jsx)(Zb.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,H.jsxs)(`span`,{className:`flex min-w-0 items-center gap-3`,children:[(0,H.jsxs)(Rg,{size:`sm`,children:[(0,H.jsx)(Rg.Image,{alt:r.name,src:r.avatar}),(0,H.jsx)(Rg.Fallback,{children:r.name.slice(0,1)})]}),(0,H.jsxs)(`span`,{className:`min-w-0`,children:[(0,H.jsx)(`span`,{className:`block truncate`,children:r.name}),(0,H.jsx)(`span`,{className:`block truncate text-xs text-muted`,children:r.description})]})]}):e}}),(0,H.jsx)(Zb.Indicator,{})]}),(0,H.jsx)(eb,{children:t}),!r&&i.length===0?(0,H.jsx)(eb,{className:`text-warning`,children:`当前没有可选项`}):null,(0,H.jsx)(Zb.Popover,{className:`max-h-72`,children:(0,H.jsx)(Fb,{items:i,children:e=>(0,H.jsxs)(Fb.Item,{id:e.id,textValue:`${e.name} ${e.description}`,children:[(0,H.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[(0,H.jsxs)(Rg,{size:`sm`,children:[(0,H.jsx)(Rg.Image,{alt:e.name,src:e.avatar}),(0,H.jsx)(Rg.Fallback,{children:e.name.slice(0,1)})]}),(0,H.jsxs)(`div`,{className:`min-w-0`,children:[(0,H.jsx)(Ob,{className:`truncate`,children:e.name}),(0,H.jsx)(eb,{className:`truncate`,children:e.description})]})]}),(0,H.jsx)(Fb.ItemIndicator,{})]})})})]}),hz=({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&&oz().then(o).catch(e=>{y(e instanceof Error?e.message:`获取 Bot 列表失败`)}).finally(()=>m(!1))},[e]),(0,v.useEffect)(()=>{!e||!l||sz(l).then(e=>{c(e),f(t=>e.some(e=>e.id===t)?t:``)}).catch(e=>{y(e instanceof Error?e.message:`获取群列表失败`)}).finally(()=>g(!1))},[e,l]);let T=()=>{if(!w||!b||!x)return;let e={groupId:x.id,botId:b.id};x.name&&(e.groupName=x.name),x.avatar&&(e.groupAvatar=x.avatar),b.name&&(e.botName=b.name),b.avatar&&(e.botAvatar=b.avatar),b.isOnline!==void 0&&(e.isOnline=b.isOnline),i(e)},E=t===`desktop`?`right`:`bottom`,D=n?`编辑推送目标`:`添加推送目标`;return(0,H.jsx)(vb.Backdrop,{isOpen:e,onOpenChange:r,children:(0,H.jsx)(vb.Content,{placement:E,children:(0,H.jsxs)(vb.Dialog,{className:t===`desktop`?`h-full w-105 max-w-[90vw]`:`max-h-[78dvh]`,children:[(0,H.jsx)(vb.Handle,{}),(0,H.jsx)(vb.CloseTrigger,{}),(0,H.jsxs)(vb.Header,{children:[(0,H.jsx)(vb.Heading,{children:D}),(0,H.jsx)(eb,{children:`先选择 Bot,再选择该 Bot 加入的群。`})]}),(0,H.jsxs)(vb.Body,{className:`flex flex-col gap-4`,children:[(0,H.jsx)(mz,{description:`Karin 当前已注册且在线的 Bot。`,disabled:p,items:S,label:`机器人账号`,placeholder:`选择机器人账号`,selectedId:l,onSelect:e=>{y(``),c([]),g(!!e),u(e),f(``)}}),(0,H.jsx)(mz,{description:l?`当前 Bot 已加入的群。`:`请先选择机器人账号。`,disabled:!l||h,items:C,label:`推送群`,placeholder:`选择推送群`,selectedId:d,onSelect:f}),p||h?(0,H.jsxs)(`div`,{className:`flex items-center gap-2 text-sm text-muted`,children:[(0,H.jsx)(ax,{size:`sm`,"aria-label":`正在读取列表`}),(0,H.jsx)(`span`,{children:`正在读取列表`})]}):null,b&&x?(0,H.jsxs)(`div`,{className:`flex flex-col gap-2 rounded-lg border border-default-200 bg-default-50/60 p-3`,children:[(0,H.jsx)(Ob,{children:`将写入`}),(0,H.jsxs)(eb,{className:`mt-1`,children:[x.name,`(`,x.id,`) -> `,b.name,`(`,b.id,`)`]})]}):null,_?(0,H.jsx)(eb,{className:`text-danger`,children:_}):null]}),(0,H.jsxs)(vb.Footer,{children:[(0,H.jsx)(Ug,{size:t===`mobile`?`sm`:`md`,slot:`close`,variant:`secondary`,children:`取消`}),(0,H.jsx)(Ug,{size:t===`mobile`?`sm`:`md`,slot:`close`,isDisabled:!w,onPress:T,children:n?`保存`:`添加`})]})]})})})},gz=(e,t,n)=>{let r=fz(e);return{values:r,mappings:r.map(e=>{let r=dz(e),i=n[e]||t.find(t=>uz(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)}},_z=({isOpen:e,values:t,mappings:n,device:r,onOpenChange:i,onApply:a})=>{let[o,s]=(0,v.useState)(()=>fz(t)),[c,l]=(0,v.useState)({}),[u,d]=(0,v.useState)(null),[f,p]=(0,v.useState)(!1),m=(0,v.useMemo)(()=>gz(o,n,c),[o,c,n]),h=r===`desktop`?`right`:`bottom`,g=u?dz(u):null,_=e=>{d(e),p(!0)};return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(vb.Backdrop,{isOpen:e,onOpenChange:e=>{e||a(m.values),i(e)},variant:`blur`,children:(0,H.jsx)(vb.Content,{placement:h,children:(0,H.jsxs)(vb.Dialog,{className:r===`desktop`?`h-full w-130 max-w-[90vw]`:`max-h-[84dvh]`,children:[(0,H.jsx)(vb.Handle,{}),(0,H.jsx)(vb.CloseTrigger,{}),(0,H.jsxs)(vb.Header,{children:[(0,H.jsx)(vb.Heading,{children:`推送目标`}),(0,H.jsx)(eb,{children:`管理所有接收推送的群和 Bot 映射。`})]}),(0,H.jsxs)(vb.Body,{className:`flex min-h-0 flex-col gap-3`,children:[(0,H.jsxs)(Ug,{className:`self-start`,size:r===`mobile`?`sm`:`md`,onPress:()=>_(null),children:[(0,H.jsx)(DM,{className:`size-4`}),`添加推送目标`]}),(0,H.jsx)(pz,{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,H.jsxs)(vb.Footer,{children:[(0,H.jsx)(Ug,{size:r===`mobile`?`sm`:`md`,slot:`close`,variant:`secondary`,children:`取消`}),(0,H.jsx)(Ug,{size:r===`mobile`?`sm`:`md`,slot:`close`,onPress:()=>{a(m.values)},children:`完成`})]})]})})}),(0,H.jsx)(hz,{device:r,initialMapping:g,isOpen:f,onConfirm:e=>{let t=uz(e),n=[...o],r=u?n.indexOf(u):-1;r>=0?n[r]=t:n.unshift(t),s(fz(n)),l(n=>{let r={...n,[t]:e};return u&&u!==t&&delete r[u],r}),p(!1),d(null)},onOpenChange:p},u||`new`)]})},vz=(e,t)=>{let n=dz(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},yz=({value:e,disabled:t,itemLabel:n,device:r,onChange:i})=>{let a=(0,v.useMemo)(()=>fz(e),[e]),o=(0,v.useMemo)(()=>e.filter(e=>!dz(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=dz(e);return vz(e,t?s.find(e=>e.groupId===t.groupId&&e.botId===t.botId):void 0)}).filter(e=>!!e),[s,a]);(0,v.useEffect)(()=>{cz(a.map(dz).filter(e=>!!e)).then(c).catch(()=>c([])).finally(()=>u(!1))},[a]);let m=e=>i(fz(e)),h=`开启【${n}】的推送开关后才能编辑此字段`,g=a.length>0?`已配置 ${a.length} 个推送目标`:`还没有配置推送目标`;return(0,H.jsx)($R,{disabled:t,device:r,message:h,children:(0,H.jsxs)(`div`,{className:`space-y-3`,children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between gap-4 rounded-lg border border-default-200 bg-default-50/50 px-4 py-3`,children:[(0,H.jsxs)(`div`,{className:`flex flex-col min-w-0`,children:[(0,H.jsx)(Ob,{children:`推送目标`}),(0,H.jsx)(eb,{className:`mt-1`,children:g})]}),(0,H.jsxs)(Ug,{isDisabled:t,size:r===`mobile`?`sm`:`md`,variant:r===`mobile`?`primary`:`secondary`,onPress:()=>f(!0),children:[(0,H.jsx)(TM,{className:`size-4`}),(0,H.jsx)(`span`,{children:`管理`})]})]}),l?(0,H.jsxs)(`div`,{className:`flex items-center gap-2 text-sm text-muted`,children:[(0,H.jsx)(ax,{size:`sm`,"aria-label":`正在读取推送目标`}),(0,H.jsx)(`span`,{children:`正在读取推送目标`})]}):null,o.length>0?(0,H.jsxs)(`div`,{className:`rounded-lg border border-warning/30 bg-warning/10 p-3 text-sm`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-2 font-medium text-warning`,children:[(0,H.jsx)(LM,{className:`size-4`}),(0,H.jsxs)(`span`,{children:[`发现 `,o.length,` 条旧格式或错误格式`]})]}),(0,H.jsx)(eb,{className:`mt-1`,children:`建议删除后用可视化选择重新添加,避免后端解析异常。`})]}):null,(0,H.jsx)(_z,{device:r,isOpen:d,mappings:p,values:a,onApply:m,onOpenChange:f})]})})},bz=({disabled:e,itemLabel:t,device:n,value:r,onChange:i})=>(0,H.jsx)(yz,{disabled:e,device:n,itemLabel:t,value:r,onChange:i}),xz=({disabled:e,itemLabel:t,device:n,options:r,value:i,onChange:a})=>(0,H.jsx)($R,{disabled:e,device:n,message:`开启【${t}】的推送开关后才能编辑此字段`,children:(0,H.jsxs)(u_,{"aria-label":`推送类型`,isDisabled:e,value:i,onChange:e=>a(e),children:[(0,H.jsx)(Ob,{children:`推送类型`}),(0,H.jsx)(eb,{children:`选择要推送的内容类型`}),(0,H.jsx)(`div`,{className:`mt-2 ${ez(n)}`,children:r.map(e=>(0,H.jsxs)(g_,{value:e.value,variant:`secondary`,children:[(0,H.jsxs)(g_.Content,{children:[(0,H.jsx)(g_.Control,{children:(0,H.jsx)(g_.Indicator,{})}),e.label]}),(0,H.jsx)(eb,{children:e.description})]},e.value))})]})}),Sz=({disabled:e,itemLabel:t,device:n,value:r,onChange:i})=>(0,H.jsx)($R,{disabled:e,device:n,message:`开启【${t}】的推送开关后才能编辑此字段`,children:(0,H.jsxs)(Zb,{fullWidth:!0,isDisabled:e,value:r,onChange:e=>{e&&!Array.isArray(e)&&i(e)},children:[(0,H.jsx)(Ob,{children:`过滤模式`}),(0,H.jsxs)(Zb.Trigger,{children:[(0,H.jsx)(Zb.Value,{}),(0,H.jsx)(Zb.Indicator,{})]}),(0,H.jsx)(eb,{children:`设置关键词/标签的过滤方式`}),(0,H.jsx)(Zb.Popover,{children:(0,H.jsx)(Fb,{children:rz.map(e=>(0,H.jsxs)(Fb.Item,{id:e.value,textValue:e.label,children:[(0,H.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,H.jsx)(Ob,{children:e.label}),(0,H.jsx)(eb,{children:e.description})]}),(0,H.jsx)(Fb.ItemIndicator,{})]},e.value))})})]})}),Cz=({disabled:e,itemLabel:t,device:n,keywords:r,tags:i,onKeywordsChange:a,onTagsChange:o})=>{let s=`开启【${t}】的推送开关后才能编辑此字段`;return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)($R,{disabled:e,device:n,message:s,children:(0,H.jsx)(`div`,{children:(0,H.jsx)(iz,{label:`关键词`,description:`多个关键词用于内容过滤`,disabled:e,items:r,onAdd:e=>a([...r,e]),onRemove:e=>a(r.filter(t=>t!==e))})})}),(0,H.jsx)($R,{disabled:e,device:n,message:s,children:(0,H.jsx)(`div`,{children:(0,H.jsx)(iz,{label:`标签`,description:`多个标签用于内容过滤`,disabled:e,items:i,onAdd:e=>o([...i,e]),onRemove:e=>o(i.filter(t=>t!==e))})})})]})},wz=({onDelete:e})=>(0,H.jsxs)(Ug,{className:`w-full`,variant:`danger`,onPress:e,children:[(0,H.jsx)(FM,{className:`size-4`}),(0,H.jsx)(`span`,{children:`删除此推送项`})]}),Tz=({item:e,index:t,list:n,onChange:r,device:i})=>{let a=i=>{let a=[...n];a[t]={...e,...i},r(a)},o=!e.switch,s=e.remark||`UID: ${e.host_mid}`||`未命名`,c=`开启【${s}】的推送开关后才能编辑此字段`;return(0,H.jsxs)(Rc.Item,{id:`bilibili-${t}`,children:[(0,H.jsx)(Rc.Heading,{children:(0,H.jsxs)(Rc.Trigger,{children:[(0,H.jsxs)(`div`,{className:`flex flex-1 items-center gap-3`,children:[(0,H.jsx)(`div`,{onClick:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation(),children:(0,H.jsx)(px,{"aria-label":`推送开关`,isSelected:e.switch,onChange:e=>a({switch:e}),children:(0,H.jsx)(px.Content,{children:(0,H.jsx)(px.Control,{children:(0,H.jsx)(px.Thumb,{})})})})}),(0,H.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,H.jsx)(`span`,{className:`font-medium`,children:e.remark||`UID: ${e.host_mid}`||`推送项 ${t+1}`}),(0,H.jsxs)(eb,{className:`text-xs`,children:[`B站 UID: `,e.host_mid]})]})]}),(0,H.jsx)(Rc.Indicator,{children:(0,H.jsx)(dM,{className:`size-5`})})]})}),(0,H.jsx)(Rc.Panel,{children:(0,H.jsx)(Rc.Body,{children:(0,H.jsxs)(`div`,{className:`space-y-4`,children:[(0,H.jsxs)(`div`,{className:ez(i),children:[(0,H.jsx)($R,{disabled:o,device:i,message:c,children:(0,H.jsxs)(vx,{fullWidth:!0,isDisabled:o,isRequired:!0,type:`number`,value:String(e.host_mid),onChange:e=>a({host_mid:Number(e)||0}),children:[(0,H.jsx)(Ob,{children:`B站 UID`}),(0,H.jsx)(Eb,{placeholder:`UP主的 UID`}),(0,H.jsx)(eb,{children:`B站用户的唯一标识,必填`})]})}),(0,H.jsx)($R,{disabled:o,device:i,message:c,children:(0,H.jsxs)(vx,{fullWidth:!0,isDisabled:o,value:e.remark,onChange:e=>a({remark:e}),children:[(0,H.jsx)(Ob,{children:`备注名称`}),(0,H.jsx)(Eb,{placeholder:`可选,用于识别该推送项`}),(0,H.jsx)(eb,{children:`方便识别的名称,如:UP主昵称`})]})})]}),(0,H.jsx)(bz,{disabled:o,device:i,itemLabel:s,value:e.group_id,onChange:e=>a({group_id:e})}),(0,H.jsx)(xz,{disabled:o,device:i,itemLabel:s,options:nz,value:e.pushTypes||[],onChange:e=>a({pushTypes:e})}),(0,H.jsx)(Sz,{disabled:o,device:i,itemLabel:s,value:e.filterMode||`blacklist`,onChange:e=>a({filterMode:e})}),(0,H.jsx)(Cz,{disabled:o,device:i,itemLabel:s,keywords:e.Keywords||[],tags:e.Tags||[],onKeywordsChange:e=>a({Keywords:e}),onTagsChange:e=>a({Tags:e})}),(0,H.jsx)(wz,{onDelete:()=>r(n.filter((e,n)=>n!==t))})]})})})]},t)},Ez=({item:e,index:t,list:n,onChange:r,device:i})=>{let a=i=>{let a=[...n];a[t]={...e,...i},r(a)},o=!e.switch,s=e.remark||e.short_id||e.sec_uid||`未命名`,c=`开启【${s}】的推送开关后才能编辑此字段`;return(0,H.jsxs)(Rc.Item,{id:`douyin-${t}`,children:[(0,H.jsx)(Rc.Heading,{children:(0,H.jsxs)(Rc.Trigger,{children:[(0,H.jsxs)(`div`,{className:`flex flex-1 items-center gap-3`,children:[(0,H.jsx)(`div`,{onClick:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation(),children:(0,H.jsx)(px,{"aria-label":`推送开关`,isSelected:e.switch,onChange:e=>a({switch:e}),children:(0,H.jsx)(px.Content,{children:(0,H.jsx)(px.Control,{children:(0,H.jsx)(px.Thumb,{})})})})}),(0,H.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,H.jsx)(`span`,{className:`font-medium`,children:e.remark||e.short_id||e.sec_uid||`推送项 ${t+1}`}),(0,H.jsxs)(eb,{className:`text-xs`,children:[e.short_id&&`抖音号: ${e.short_id}`,e.sec_uid&&!e.short_id&&`sec_uid: ${e.sec_uid.slice(0,20)}...`]})]})]}),(0,H.jsx)(Rc.Indicator,{children:(0,H.jsx)(dM,{className:`size-5`})})]})}),(0,H.jsx)(Rc.Panel,{children:(0,H.jsx)(Rc.Body,{children:(0,H.jsxs)(`div`,{className:`space-y-4`,children:[(0,H.jsxs)(`div`,{className:ez(i),children:[(0,H.jsx)($R,{disabled:o,device:i,message:c,children:(0,H.jsxs)(vx,{fullWidth:!0,isDisabled:o,isRequired:!0,value:e.short_id,onChange:e=>a({short_id:e}),children:[(0,H.jsx)(Ob,{children:`抖音号`}),(0,H.jsx)(Eb,{placeholder:`用户的抖音号`,variant:`secondary`}),(0,H.jsx)(eb,{children:`用户的抖音号(short_id),必填`})]})}),(0,H.jsx)($R,{disabled:o,device:i,message:c,children:(0,H.jsxs)(vx,{fullWidth:!0,isDisabled:o,value:e.sec_uid,onChange:e=>a({sec_uid:e}),children:[(0,H.jsx)(Ob,{children:`sec_uid`}),(0,H.jsx)(Eb,{placeholder:`选填,会根据抖音号自动获取`,variant:`secondary`}),(0,H.jsx)(eb,{children:`用户的 sec_uid,可从分享链接获取。选填,推送时会自动获取`})]})})]}),(0,H.jsx)($R,{disabled:o,device:i,message:c,children:(0,H.jsxs)(vx,{fullWidth:!0,isDisabled:o,value:e.remark,onChange:e=>a({remark:e}),children:[(0,H.jsx)(Ob,{children:`备注名称`}),(0,H.jsx)(Eb,{placeholder:`可选,用于识别该推送项`,variant:`secondary`}),(0,H.jsx)(eb,{children:`方便识别的名称,如:博主昵称`})]})}),(0,H.jsx)(bz,{disabled:o,device:i,itemLabel:s,value:e.group_id,onChange:e=>a({group_id:e})}),(0,H.jsx)(xz,{disabled:o,device:i,itemLabel:s,options:tz,value:e.pushTypes||[],onChange:e=>a({pushTypes:e})}),(0,H.jsx)(Sz,{disabled:o,device:i,itemLabel:s,value:e.filterMode||`blacklist`,onChange:e=>a({filterMode:e})}),(0,H.jsx)(Cz,{disabled:o,device:i,itemLabel:s,keywords:e.Keywords||[],tags:e.Tags||[],onKeywordsChange:e=>a({Keywords:e}),onTagsChange:e=>a({Tags:e})}),(0,H.jsx)(wz,{onDelete:()=>r(n.filter((e,n)=>n!==t))})]})})})]},t)},Dz=()=>({switch:!0,sec_uid:``,short_id:``,group_id:[],remark:``,pushTypes:[`post`],filterMode:`blacklist`,Keywords:[],Tags:[]}),Oz=()=>({switch:!0,host_mid:0,group_id:[],remark:``,pushTypes:[`video`],filterMode:`blacklist`,Keywords:[],Tags:[]}),kz=({platform:e})=>(0,H.jsx)(`div`,{className:`rounded-lg border-2 border-dashed border-gray-300 p-8 text-center`,children:(0,H.jsxs)(`p`,{className:`text-muted`,children:[`暂无`,e===`douyin`?`抖音`:`B站`,`推送项,点击上方按钮添加`]})});function Az({douyinList:e,bilibiliList:t,onDouyinChange:n,onBilibiliChange:r,device:i}){let[a,o]=(0,v.useState)(`douyin`);return(0,H.jsx)(`div`,{className:`space-y-4`,children:(0,H.jsxs)(_x,{selectedKey:a,onSelectionChange:e=>o(e),children:[(0,H.jsx)(_x.ListContainer,{children:(0,H.jsxs)(_x.List,{children:[(0,H.jsxs)(_x.Tab,{id:`douyin`,children:[(0,H.jsx)(`span`,{children:`抖音推送`}),(0,H.jsx)(_x.Indicator,{})]}),(0,H.jsxs)(_x.Tab,{id:`bilibili`,children:[(0,H.jsx)(`span`,{children:`B站推送`}),(0,H.jsx)(_x.Indicator,{})]})]})}),(0,H.jsx)(_x.Panel,{id:`douyin`,children:(0,H.jsxs)(`div`,{className:`space-y-4 pt-4`,children:[(0,H.jsxs)(Ug,{className:`w-full`,variant:`primary`,size:`sm`,onPress:()=>n([...e,Dz()]),children:[(0,H.jsx)(DM,{className:`size-4`}),(0,H.jsx)(`span`,{children:`添加抖音推送项`})]}),e.length>0?(0,H.jsx)(Rc,{variant:`surface`,"aria-label":`抖音推送列表`,children:e.map((t,r)=>(0,H.jsx)(Ez,{device:i,index:r,item:t,list:e,onChange:n},r))}):(0,H.jsx)(kz,{platform:`douyin`})]})}),(0,H.jsx)(_x.Panel,{id:`bilibili`,children:(0,H.jsxs)(`div`,{className:`space-y-4 pt-4`,children:[(0,H.jsxs)(Ug,{className:`w-full`,variant:`primary`,onPress:()=>r([...t,Oz()]),children:[(0,H.jsx)(DM,{className:`size-4`}),(0,H.jsx)(`span`,{children:`添加B站推送项`})]}),t.length>0?(0,H.jsx)(Rc,{variant:`surface`,"aria-label":`B站推送列表`,children:t.map((e,n)=>(0,H.jsx)(Tz,{device:i,index:n,item:e,list:t,onChange:r},n))}):(0,H.jsx)(kz,{platform:`bilibili`})]})})]})})}var jz=({config:e,device:t,renderers:n,updateConfigValue:r})=>{let{renderPageHeader:i}=n;return(0,H.jsxs)(H.Fragment,{children:[i(`推送列表`,`管理「抖音」与「哔哩哔哩」的推送订阅。`),(0,H.jsx)(Az,{douyinList:e.pushlist?.douyin||[],bilibiliList:e.pushlist?.bilibili||[],onDouyinChange:e=>{r([`pushlist`,`douyin`],e)},onBilibiliChange:e=>{r([`pushlist`,`bilibili`],e)},device:t})]})},Mz=({config:e,renderers:t,classes:n})=>{let{renderCheckboxGroup:r,renderPageHeader:i,renderSelectField:a,renderSubSection:o,renderSwitch:s,renderTextField:c}=t,l=Q(e,[`xiaohongshu`,`switch`],!1),u=Q(e,[`xiaohongshu`,`sendContent`],[]),d=Q(e,[`xiaohongshu`,`videoQuality`],`adapt`);return(0,H.jsxs)(H.Fragment,{children:[i(`小红书`,`小红书解析基础设置。`),(0,H.jsxs)(`div`,{className:n.topLevelFields,"data-config-section":!0,children:[s([`xiaohongshu`,`switch`],`解析开关`,`小红书解析开关,此开关为单独开关。`),r([`xiaohongshu`,`sendContent`],`解析时发送的内容`,`若什么都不选,可能不会返回任何解析结果。`,AR,!l),c([`xiaohongshu`,`numcomment`],`评论解析数量`,`小红书评论解析数量。`,{type:`number`,fallback:5,min:1,disabled:!l||!gR(u,`comment`)})]}),o(`渲染与画质设置`,(0,H.jsxs)(H.Fragment,{children:[a([`xiaohongshu`,`videoQuality`],`画质偏好`,`解析视频的分辨率偏好。`,MR,e=>e,!l),c([`xiaohongshu`,`maxAutoVideoSize`],`视频体积上限(MB)`,`根据该值自动选择分辨率进行下载。仅在「画质偏好」 为 "自动选择" 时生效。`,{type:`number`,fallback:50,min:1,max:2e4,disabled:!l||d!==`adapt`})]}))]})},Nz=e=>{switch(e.activeFile){case`amagi`:return(0,H.jsx)(JR,{...e});case`app`:return(0,H.jsx)(YR,{...e});case`douyin`:return(0,H.jsx)(ZR,{...e});case`bilibili`:return(0,H.jsx)(XR,{...e});case`kuaishou`:return(0,H.jsx)(QR,{...e});case`xiaohongshu`:return(0,H.jsx)(Mz,{...e});case`pushlist`:return(0,H.jsx)(jz,{...e})}},Pz=(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} 必须是数字`},Fz=(e,t,n)=>{if(n.disabled)return;let r=Pz(Q(t,n.path,0),n);r&&(e[fR(n.path)]=r)},Iz=e=>typeof e==`string`&&/.+:.+/.test(e),Lz=(e,t,n)=>{if(!Array.isArray(n)){e[`pushlist.${t}`]=`${t} 推送列表必须是数组`;return}let r=n.findIndex(e=>{if(!pR(e))return!0;let n=e.group_id,r=t===`douyin`?e.short_id:e.host_mid;return r==null||String(r).trim()===``||!Array.isArray(n)||n.some(e=>!Iz(e))});r>=0&&(e[`pushlist.${t}`]=`${t} 推送列表第 ${r+1} 项缺少必填 UID/抖音号,或 group_id 未使用「群号:机器人账号」格式`)},Rz=e=>{if(!e)return{};let t={},n=Q(e,[`app`,`livePhotoMode`],`video_and_livephoto`),r=Q(e,[`amagi`,`APIServerMount`],!1),i=Q(e,[`app`,`videoSendMode`],`file`),a=Q(e,[`app`,`usegroupfile`],!1),o=Q(e,[`app`,`usefilelimit`],!1),s=Q(e,[`app`,`compress`],!1),c=Q(e,[`app`,`downloadThrottle`],!1),l=Q(e,[`app`,`downloadAutoReduce`],!1),u=Q(e,[`amagi`,`proxy`,`switch`],!1),d=Q(e,[`douyin`,`switch`],!1),f=Q(e,[`douyin`,`sendContent`],[]),p=Q(e,[`douyin`,`burnDanmaku`],!1),m=Q(e,[`douyin`,`videoQuality`],`adapt`),h=Q(e,[`douyin`,`push`,`switch`],!1),g=Q(e,[`douyin`,`push`,`pushVideoQuality`],`adapt`),_=Q(e,[`bilibili`,`switch`],!1),v=Q(e,[`bilibili`,`sendContent`],[]),y=Q(e,[`bilibili`,`burnDanmaku`],!1),b=Q(e,[`bilibili`,`videoQuality`],0),x=Q(e,[`bilibili`,`push`,`switch`],!1),S=Q(e,[`bilibili`,`push`,`parsedynamic`],!1),C=Q(e,[`bilibili`,`push`,`pushVideoQuality`],0),w=Q(e,[`kuaishou`,`switch`],!1),T=Q(e,[`kuaishou`,`comment`],!1),E=Q(e,[`xiaohongshu`,`switch`],!1),D=Q(e,[`xiaohongshu`,`sendContent`],[]),O=Q(e,[`xiaohongshu`,`videoQuality`],`adapt`);return[{path:[`app`,`renderScale`],label:`渲染精度`,min:50,max:200},{path:[`app`,`ambientCover`,`coverOpacity`],label:`封面氛围强度`,min:0,max:1},{path:[`app`,`ambientCover`,`overlayEdgeOpacity`],label:`氛围压色(顶部/底部)`,min:0,max:1},{path:[`app`,`ambientCover`,`overlayMiddleOpacity`],label:`氛围压色(中间带)`,min:0,max:1},{path:[`app`,`RenderWaitTime`],label:`渲染图片的等待时间`,min:0},{path:[`app`,`multiPageHeight`],label:`分页渲染时,每页的高度`,min:1e3,max:2e4,disabled:!Q(e,[`app`,`multiPageRender`],!0),error:`请输入一个范围在 1000 到 20000 之间的数字`},{path:[`amagi`,`APIServerPort`],label:`API服务端口`,min:1024,max:65535,disabled:r,error:`请输入一个范围在 1024 到 65535 之间的数字`},{path:[`app`,`groupfilevalue`],label:`群文件上传阈值`,min:1,disabled:!a||i===`base64`},{path:[`app`,`filelimit`],label:`视频拦截阈值`,min:1,disabled:!o},{path:[`app`,`compresstrigger`],label:`压缩触发阈值`,min:1,disabled:!s},{path:[`app`,`compressvalue`],label:`压缩后的值`,min:1,disabled:!s},{path:[`app`,`downloadMaxSpeed`],label:`最大下载速度`,min:1,max:1e3,disabled:!c,error:`请输入一个范围在 1 到 1000 之间的数字`},{path:[`app`,`downloadMinSpeed`],label:`最低下载速度`,min:.1,max:100,disabled:!c||!l,error:`请输入一个范围在 0.1 到 100 之间的数字`},{path:[`amagi`,`timeout`],label:`请求超时时间`,min:1e3,max:3e5,error:`请输入一个范围在 1000 到 300000 之间的数字`},{path:[`amagi`,`proxy`,`port`],label:`代理端口`,min:1,max:65535,disabled:!u,error:`请输入一个范围在 1 到 65535 之间的数字`},{path:[`douyin`,`numcomment`],label:`评论解析数量`,min:1,disabled:!d||!gR(f,`comment`)},{path:[`douyin`,`subCommentLimit`],label:`次级评论解析数量`,min:1,max:20,disabled:!d||!gR(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:!_||!gR(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||!gR(D,`comment`)},{path:[`xiaohongshu`,`maxAutoVideoSize`],label:`视频体积上限(MB)`,min:1,max:2e4,disabled:!E||O!==`adapt`}].forEach(n=>Fz(t,e,n)),n===`video_only`&&delete t[`app.livePhotoSystem`],Lz(t,`douyin`,e.pushlist?.douyin||[]),Lz(t,`bilibili`,e.pushlist?.bilibili||[]),t},zz=({device:e=`desktop`})=>{let t=(0,v.useRef)(null),[n,r]=yE(),i=Zx(),a=n.get(`file`),[o,s]=dC({config:null,savedConfig:null,activeFile:a&&VR.some(e=>e.key===a)?a:`amagi`}),{activeFile:c,config:l,savedConfig:u}=o,d=(0,v.useMemo)(()=>qR(e),[e]),f=e===`mobile`?`sm`:`md`,{loading:p,run:m}=cC(rL,{onSuccess:e=>{s({config:structuredClone(e),savedConfig:structuredClone(e)})},onError:e=>{Ax.danger(`加载配置失败`,{description:e.message})}}),{loading:h,runAsync:g}=cC(iL,{manual:!0}),_=(0,v.useMemo)(()=>!l||!u?!1:!(0,zE.default)(vR(l),vR(u)),[l,u]),y=(0,v.useMemo)(()=>Rz(l),[l]),b=(0,v.useMemo)(()=>Object.values(y).some(Boolean),[y]),x=(0,v.useMemo)(()=>_&&!b&&!p,[_,b,p]),S=iS((e,t)=>{s(n=>n.config?{config:mR(n.config,e,t)}:null)}),C=iS(()=>{if(!l||b)return;let e=l,t=g(e).then(()=>{s({savedConfig:e})});Ax.promise(t,{loading:`正在保存配置...`,success:`配置已保存`,error:e=>e instanceof Error?e.message:`保存配置失败`})}),w=iS(()=>{m()}),T=iS(e=>{r({file:e})}),E=iS(e=>{e.preventDefault(),C()});(0,v.useEffect)(()=>{let e=n.get(`file`);e&&VR.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=iS(()=>{t.current&&qj.fromTo(t.current.querySelectorAll(`[data-config-section]`),lL,{...uL,duration:oL(.35),stagger:sL(.03)})});(0,v.useEffect)(()=>{!l||t.current?.dataset.animated===`true`||(t.current&&(t.current.dataset.animated=`true`),D())},[l,D]),aS(()=>{D()},[c]);let O=(0,v.useMemo)(()=>l?WR({config:l,device:e,classes:d,validationErrors:y,updateConfigValue:S}):{},[l,e,d,y,S]);if(p||!l)return(0,H.jsxs)(`div`,{className:`${d.root} ${d.loading}`,children:[(0,H.jsx)(ax,{size:`sm`,"aria-label":`正在读取配置`}),(0,H.jsx)(`span`,{children:`正在读取配置`})]});let k=(0,H.jsx)(`div`,{className:d.floatingActions,children:(0,H.jsxs)(`div`,{className:d.actionControls,children:[(0,H.jsxs)(Xx,{delay:0,children:[(0,H.jsx)(Xx.Trigger,{"aria-label":`重新读取配置`,children:(0,H.jsx)(Ug,{isIconOnly:!0,size:f,variant:`secondary`,isDisabled:p||h,onPress:w,children:(0,H.jsx)(kM,{size:16,"aria-hidden":`true`})})}),(0,H.jsxs)(Xx.Content,{showArrow:!0,placement:`bottom`,children:[(0,H.jsx)(Xx.Arrow,{}),`重新读取`]})]}),(0,H.jsxs)(Xx,{delay:0,children:[(0,H.jsx)(Xx.Trigger,{"aria-label":`查看配置变更`,children:(0,H.jsx)(Ug,{isIconOnly:!0,size:f,variant:`secondary`,isDisabled:!_,onPress:i.open,children:(0,H.jsx)(_M,{size:16,"aria-hidden":`true`})})}),(0,H.jsxs)(Xx.Content,{showArrow:!0,placement:`bottom`,children:[(0,H.jsx)(Xx.Arrow,{}),`查看变更`]})]}),(0,H.jsxs)(Ug,{size:f,isDisabled:!x,isPending:h,onPress:C,variant:`primary`,children:[(0,H.jsx)(jM,{size:16,"aria-hidden":`true`}),(0,H.jsx)(`span`,{children:`保存`})]})]})});return(0,H.jsxs)(`div`,{ref:t,className:d.root,children:[(0,H.jsx)(wR,{device:e,original:u,current:l,isOpen:i.isOpen,onOpenChange:i.setOpen}),(0,H.jsxs)(Sb,{className:d.form,onSubmit:E,children:[(0,H.jsx)(_x,{className:`w-full min-w-0 max-w-full`,selectedKey:c,onSelectionChange:T,children:(0,H.jsx)(_x.ListContainer,{className:d.tabsListContainer,"data-config-tabs-scroll":`true`,"data-scrollbar":`none`,children:(0,H.jsx)(_x.List,{"aria-label":`配置文件选择`,className:d.tabsList,children:VR.map((e,t)=>(0,H.jsxs)(_x.Tab,{id:e.key,children:[t>0?(0,H.jsx)(_x.Separator,{}):null,(0,H.jsx)(`span`,{className:`whitespace-nowrap`,children:e.label}),(0,H.jsx)(_x.Indicator,{})]},e.key))})})}),(0,H.jsxs)(`div`,{className:`relative min-w-0 max-w-full`,children:[k,(0,H.jsx)(Nz,{activeFile:c,classes:d,config:l,device:e,renderers:O,updateConfigValue:S},c)]})]})]})},Bz=({onLogin:e})=>{let[t,n]=dC({authKey:``,loading:!1,error:``}),[r,{toggle:i}]=uC(!1),a=r?`隐藏密钥`:`显示密钥`,o=iS(async r=>{r.preventDefault();let i=t.authKey.trim();if(!i){n({error:`请输入 Karin HTTP 鉴权密钥`});return}try{n({loading:!0,error:``}),await eL(i),e()}catch(e){n({error:e instanceof Error?e.message:`登录失败`})}finally{n({loading:!1})}});return(0,H.jsx)(ox,{className:`flex min-h-screen items-center justify-center px-4 py-8`,children:(0,H.jsxs)(Kg,{className:`w-full max-w-105`,children:[(0,H.jsxs)(Kg.Header,{className:`gap-4 p-6`,children:[(0,H.jsx)(xM,{className:`size-8 shrink-0`,"aria-hidden":`true`}),(0,H.jsxs)(`div`,{className:`min-w-0`,children:[(0,H.jsx)(Kg.Title,{children:`Karin 鉴权`}),(0,H.jsx)(Kg.Description,{children:`使用 Karin HTTP 鉴权密钥登录后管理 KKK 配置。`})]})]}),(0,H.jsx)(Kg.Content,{className:`p-6`,children:(0,H.jsxs)(Sb,{className:`flex flex-col gap-6`,onSubmit:o,children:[(0,H.jsxs)(vx,{fullWidth:!0,isInvalid:!!t.error,value:t.authKey,onChange:e=>{n({authKey:e,error:t.error?``:t.error})},children:[(0,H.jsx)(Ob,{children:`HTTP 鉴权密钥`}),(0,H.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,H.jsx)(Eb,{autoComplete:`current-password`,className:`min-w-0 flex-1`,placeholder:`请输入 Karin 的 HTTP_AUTH_KEY`,type:r?`text`:`password`}),(0,H.jsx)(Ug,{isIconOnly:!0,"aria-label":a,type:`button`,variant:`tertiary`,onPress:i,children:r?(0,H.jsx)(pM,{className:`size-4`,"aria-hidden":`true`}):(0,H.jsx)(hM,{className:`size-4`,"aria-hidden":`true`})})]}),(0,H.jsx)(eb,{children:t.error||`生产环境会复用 Karin 主 Web 已保存的登录凭据。`})]}),(0,H.jsx)(Ug,{fullWidth:!0,isPending:t.loading,type:`submit`,children:({isPending:e})=>(0,H.jsxs)(H.Fragment,{children:[e?(0,H.jsx)(ax,{color:`current`,size:`sm`,"aria-label":`登录中`}):(0,H.jsx)(CM,{className:`size-4`,"aria-hidden":`true`}),(0,H.jsx)(`span`,{children:`登录`})]})})]})})]})})},Vz=`theme`,Hz=`kkk-theme-changed`,Uz=`karin-theme-change`,Wz={light:`light`,dark:`dark`,system:`system`,inverse:`inverse`},Gz=e=>e===Wz.system||e===Wz.inverse,Kz=e=>e===Wz.light||e===Wz.dark,qz=e=>!e||typeof e!=`object`?!1:e.type===Uz,Jz=()=>{let e=localStorage.getItem(Vz);if(Gz(e))return e;try{let t=JSON.parse(e??``);if(Gz(t))return t}catch{}return localStorage.setItem(Vz,Wz.system),Wz.system},Yz=()=>window.matchMedia(`(prefers-color-scheme: dark)`).matches?Wz.dark:Wz.light,Xz=()=>window.matchMedia(`(prefers-color-scheme: dark)`).matches?Wz.light:Wz.dark,Zz=e=>e===Wz.system?Yz():Xz(),Qz=e=>$z(Zz(e)),$z=e=>(document.documentElement.classList.remove(Wz.light,Wz.dark),document.documentElement.classList.add(e),document.documentElement.dataset.theme=e,e),eB=()=>{let[e,t]=(0,v.useState)(()=>Jz()),[n,r]=(0,v.useState)(()=>Zz(e)),i=(0,v.useRef)(!1),a=(0,v.useCallback)(e=>{localStorage.setItem(Vz,e),t(e),r(Qz(e)),window.dispatchEvent(new CustomEvent(Hz,{detail:e}))},[]),o=(0,v.useCallback)(()=>{a(Wz.system)},[a]),s=(0,v.useCallback)(()=>{a(Wz.inverse)},[a]),c=(0,v.useCallback)(()=>{a(e===Wz.system?Wz.inverse:Wz.system)},[a,e]);return(0,v.useEffect)(()=>{i.current?i.current=!1:r(Qz(e));let n=window.matchMedia(`(prefers-color-scheme: dark)`),a=()=>{r(Qz(e))},o=e=>{if(e.key!==Vz||window.self!==window.top)return;let n=Jz();t(n),r(Qz(n))},s=e=>{let n=e.detail;Gz(n)&&(t(n),r(Qz(n)))},c=e=>{if(!qz(e.data))return;let n=e.data.theme,a=Gz(n??null)?n:Jz(),o=Kz(e.data.appliedTheme)?e.data.appliedTheme:Zz(a);i.current=!0,localStorage.setItem(Vz,a),t(a),r($z(o))};return n.addEventListener(`change`,a),window.addEventListener(`storage`,o),window.addEventListener(Hz,s),window.addEventListener(`message`,c),()=>{n.removeEventListener(`change`,a),window.removeEventListener(`storage`,o),window.removeEventListener(Hz,s),window.removeEventListener(`message`,c)}},[e]),{theme:e,appliedTheme:n,isDark:(0,v.useMemo)(()=>n===Wz.dark,[n]),isLight:(0,v.useMemo)(()=>n===Wz.light,[n]),isSystem:e===Wz.system,isInverse:e===Wz.inverse,setSystemTheme:o,setInverseTheme:s,toggleTheme:c}},tB=()=>document.documentElement.clientWidth||window.innerWidth,nB=(e=tB())=>e<=768?`mobile`:`desktop`,rB=()=>{let e=navigator.userAgent.toLowerCase();return[`android`,`webos`,`iphone`,`ipad`,`ipod`,`blackberry`,`windows phone`,`mobile`].some(t=>e.includes(t))},iB=()=>{let e=nB();return rB()||e===`mobile`?`mobile`:`desktop`},aB=()=>hC(()=>import(`./DesktopLayout-gkSnAOjp.js`),__vite__mapDeps([2,1,3])),oB=()=>hC(()=>import(`./MobileLayout-dflm5r4p.js`),__vite__mapDeps([4,3])),sB={config:`/kkk/assets/config`,about:`/kkk/assets/about`},cB={"/kkk/assets/config":`config`,"/kkk/assets/about":`about`},lB=({device:e})=>(0,H.jsxs)(ox,{className:`h-screen overflow-hidden bg-background`,children:[(0,H.jsx)(Gx.Provider,{placement:`top`}),(0,H.jsx)(Gb,{hideScrollBar:!0,className:`h-full px-3 py-3 sm:px-5 sm:py-4 ${e===`mobile`?`data-[top-scroll=true]:mask-none data-[top-scroll=true]:[-webkit-mask-image:none] data-[top-bottom-scroll=true]:mask-[linear-gradient(180deg,black_calc(100%-var(--scroll-shadow-size)),transparent)] data-[top-bottom-scroll=true]:[-webkit-mask-image:linear-gradient(180deg,black_calc(100%-var(--scroll-shadow-size)),transparent)]`:``}`,size:56,children:(0,H.jsx)(zz,{device:e})})]}),uB=({LayoutComponent:e})=>{let t=Uw(),n=Kw(),r=cB[t.pathname]||`config`,i=iS(e=>{n(sB[e])});return e?(0,H.jsxs)(`div`,{children:[(0,H.jsx)(Gx.Provider,{placement:`top`}),(0,H.jsx)(e,{activeMenu:r,onMenuChange:i})]}):(0,H.jsxs)(ox,{className:`flex min-h-screen items-center justify-center gap-4`,children:[(0,H.jsx)(ax,{size:`sm`,"aria-label":`正在加载布局`}),(0,H.jsx)(eb,{children:`正在加载`})]})},dB=()=>{eB();let[e,t]=dC({authenticated:FE(),device:iB(),LayoutComponent:null}),{authenticated:n,device:r,LayoutComponent:i}=e;(0,v.useEffect)(()=>{let e=()=>{t({authenticated:FE()})};return window.addEventListener(jE,e),window.addEventListener(`storage`,e),()=>{window.removeEventListener(jE,e),window.removeEventListener(`storage`,e)}},[t]);let a=iS(()=>{let e=iB();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 oB();e||t({LayoutComponent:n.default})}else{let n=await aB();e||t({LayoutComponent:n.default})}})(),()=>{e=!0}},[n,r,t]);let o=iS(()=>{t({authenticated:!0})});return n?(0,H.jsxs)(bT,{children:[(0,H.jsx)(vT,{path:`/kkk/assets/karin-config`,element:(0,H.jsx)(lB,{device:r})}),(0,H.jsx)(vT,{path:`/kkk/assets/config`,element:(0,H.jsx)(uB,{LayoutComponent:i})}),(0,H.jsx)(vT,{path:`/kkk/assets/about`,element:(0,H.jsx)(uB,{LayoutComponent:i})}),(0,H.jsx)(vT,{path:`/kkk/assets`,element:(0,H.jsx)(_T,{to:`/kkk/assets/config`,replace:!0})}),(0,H.jsx)(vT,{path:`/kkk`,element:(0,H.jsx)(_T,{to:`/kkk/assets/config`,replace:!0})}),(0,H.jsx)(vT,{path:`/kkk/login`,element:(0,H.jsx)(_T,{to:`/kkk/assets/config`,replace:!0})}),(0,H.jsx)(vT,{path:`*`,element:(0,H.jsx)(_T,{to:`/kkk/assets/config`,replace:!0})})]}):(0,H.jsxs)(bT,{children:[(0,H.jsx)(vT,{path:`/kkk/login`,element:(0,H.jsx)(Bz,{onLogin:o})}),(0,H.jsx)(vT,{path:`*`,element:(0,H.jsx)(_T,{to:`/kkk/login`,replace:!0})})]})};(0,y.createRoot)(document.getElementById(`root`)).render((0,H.jsx)(v.StrictMode,{children:(0,H.jsx)(()=>(0,H.jsx)(lE,{children:(0,H.jsx)(dB,{})}),{})}));export{Vs as $,_m as A,ze as At,id as B,l as Bt,Kg as C,Et as Ct,Nh as D,V as Dt,Ih as E,at as Et,vf as F,E as Ft,Y as G,Wl as H,_f as I,M as It,ic as J,J as K,mf as L,O as Lt,cm as M,ke as Mt,sm as N,we as Nt,wm as O,B as Ot,yf as P,L as Pt,Xs as Q,ff as R,h as Rt,Xg as S,Mt as St,Rg as T,st as Tt,Mc as U,td as V,Nc as W,rc as X,ac as Y,Zs as Z,vb as _,ya as _t,RE as a,Ao as at,S_ as b,Qt as bt,Xx as c,co as ct,ox as d,G as dt,ks as et,Zb as f,eo as ft,Eb as g,_a as gt,Ob as h,Qa as ht,qj as i,Fo as it,lm as j,z as jt,gm as k,We as kt,vx as l,Xa as lt,Fb as m,to as mt,zz as n,ds as nt,uC as o,Do as ot,Vb as p,K as pt,uc as q,sM as r,Po as rt,iS as s,So as st,eB as t,Ts as tt,_x as u,$a as ut,eb as v,on as vt,Ug as w,lt as wt,w_ as x,en as xt,T_ as y,nn as yt,uf as z,d as zt};
|
|
47
|
+
</div>`),e.hasArrows=!0}format_textdiff(e,t){e.out(`<div class="jsondiffpatch-value">`),this.formatTextDiffString(e,t[0]),e.out(`</div>`)}};function oR(e){if(typeof e==`number`)return e;let t=String(e);for(let e of[[/&/g,`&`],[/</g,`<`],[/>/g,`>`],[/'/g,`'`],[/"/g,`"`]])t=t.replace(e[0],e[1]);return t}var sR=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}`)}})},cR=(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(()=>{sR(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)},lR=(e,t)=>cR(!1,e,t),uR;function dR(e,t){return uR||=new aR,uR.format(e,t)}var fR=e=>e.join(`.`),pR=e=>!!(e&&typeof e==`object`),Q=(e,t,n)=>e?t.reduce((e,t)=>{if(pR(e))return e[t]},e)??n:n,mR=(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];pR(r)||(i[n]={}),i=i[n]}return i[t[t.length-1]]=n,r},hR=(e,t)=>{let n=Number(e);return Number.isFinite(n)?n:t},gR=(e,t)=>Array.isArray(e)&&e.includes(t),_R=e=>!!(e&&typeof e==`object`&&`description`in e),vR=e=>{if(!e||typeof e!=`object`)return e;let t=structuredClone(e);for(let{path:e,options:n}of[{path:[`bilibili`,`sendContent`],options:[`info`,`comment`,`video`,`image`]},{path:[`bilibili`,`displayContent`],options:[`cover`,`title`,`author`,`stats`,`desc`]},{path:[`bilibili`,`push`,`parseDynamicTypes`],options:[`DYNAMIC_TYPE_AV`,`DYNAMIC_TYPE_DRAW`,`DYNAMIC_TYPE_ARTICLE`]},{path:[`douyin`,`sendContent`],options:[`info`,`comment`,`video`,`image`]},{path:[`xiaohongshu`,`sendContent`],options:[`info`,`comment`,`video`,`image`]},{path:[`kuaishou`,`sendContent`],options:[`info`,`comment`,`video`,`image`]}]){let r=Q(t,e,null);if(!Array.isArray(r))continue;let i=n.filter(e=>r.includes(e)),a=t;for(let t=0;t<e.length-1;t++){let n=e[t];pR(a[n])||(a[n]={}),a=a[n]}a[e[e.length-1]]=i}return t},yR=e=>typeof e==`object`&&!!e,bR=e=>{let t={added:0,modified:0,deleted:0},n=e=>{if(yR(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},xR=({original:e,current:t,showUnchanged:n=!1})=>{let r=(0,v.useRef)(null),i=(0,v.useMemo)(()=>{if(!(!e||!t))return rR(vR(e),vR(t))},[e,t]),a=(0,v.useMemo)(()=>e?vR(e):void 0,[e]),o=(0,v.useMemo)(()=>{if(i)return dR(i,a)},[i,a]),s=(0,v.useMemo)(()=>bR(i),[i]);return(0,v.useEffect)(()=>{r.current&&(o?(r.current.innerHTML=o,n?cR(!0,r.current):lR(r.current)):r.current.innerHTML=``)},[o,n]),o?(0,H.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,H.jsx)(b_,{size:`sm`,color:`success`,variant:`soft`,children:(0,H.jsxs)(b_.Label,{children:[`+ `,s.added,` 新增`]})}),(0,H.jsx)(b_,{size:`sm`,color:`warning`,variant:`soft`,children:(0,H.jsxs)(b_.Label,{children:[`~ `,s.modified,` 修改`]})}),(0,H.jsx)(b_,{size:`sm`,color:`danger`,variant:`soft`,children:(0,H.jsxs)(b_.Label,{children:[`- `,s.deleted,` 删除`]})})]}),(0,H.jsx)(`div`,{className:`max-h-[60vh] overflow-auto rounded-xl border border-default-200 bg-surface p-4`,children:(0,H.jsx)(`div`,{ref:r,className:`min-w-fit`})})]}):(0,H.jsx)(`div`,{className:`flex flex-col items-center justify-center gap-2 py-10 text-center`,children:(0,H.jsx)(eb,{className:`text-sm text-muted`,children:`当前没有检测到配置变更`})})},SR=`变更预览`,CR=`绿色 = 新增/改后的内容,红色 = 删除/改前的内容,灰色 = 没变化的内容。`,wR=({device:e,original:t,current:n,isOpen:r,onOpenChange:i})=>{let[a,o]=(0,v.useState)(!1),s=(0,H.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,H.jsx)(eb,{className:`text-xs text-muted`,children:CR}),(0,H.jsx)(px,{size:`sm`,isSelected:a,onChange:o,"aria-label":`显示未变更字段`,children:(0,H.jsxs)(px.Content,{children:[(0,H.jsx)(px.Control,{children:(0,H.jsx)(px.Thumb,{})}),`显示未变更`]})})]}),(0,H.jsx)(xR,{original:t,current:n,showUnchanged:a})]}),c=(0,H.jsx)(Ug,{slot:`close`,size:`sm`,variant:`secondary`,children:`关闭`});return e===`mobile`?(0,H.jsx)(vb,{children:(0,H.jsx)(vb.Backdrop,{isOpen:r,onOpenChange:i,children:(0,H.jsx)(vb.Content,{placement:`bottom`,children:(0,H.jsxs)(vb.Dialog,{className:`h-[85vh]`,children:[(0,H.jsx)(vb.Handle,{}),(0,H.jsx)(vb.CloseTrigger,{}),(0,H.jsx)(vb.Header,{children:(0,H.jsx)(vb.Heading,{children:SR})}),(0,H.jsx)(vb.Body,{children:s}),(0,H.jsx)(vb.Footer,{children:c})]})})})}):(0,H.jsx)(Rb,{children:(0,H.jsx)(Rb.Backdrop,{isOpen:r,onOpenChange:i,children:(0,H.jsx)(Rb.Container,{scroll:`inside`,size:`lg`,children:(0,H.jsxs)(Rb.Dialog,{className:`w-full max-w-4xl`,children:[(0,H.jsx)(Rb.CloseTrigger,{}),(0,H.jsxs)(Rb.Header,{children:[(0,H.jsx)(Rb.Icon,{className:`bg-accent-soft text-accent-soft-foreground`,children:(0,H.jsx)(_M,{className:`size-5`})}),(0,H.jsx)(Rb.Heading,{children:SR})]}),(0,H.jsx)(Rb.Body,{children:s}),(0,H.jsx)(Rb.Footer,{children:c})]})})})})},TR=e=>!!(e&&typeof e==`object`),$=(e,t,n)=>e?t.reduce((e,t)=>{if(TR(e))return e[t]},e)??n:n,ER=(e,t)=>Array.isArray(e)&&e.includes(t),DR=[{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=>!ER($(e,[`douyin`,`sendContent`],[]),`comment`),message:`修改此配置项需要在「解析时发送的内容」中勾选「评论图」`}]},{path:[`douyin`,`subCommentLimit`],rules:[{condition:e=>!$(e,[`douyin`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!ER($(e,[`douyin`,`sendContent`],[]),`comment`),message:`修改此配置项需要在「解析时发送的内容」中勾选「评论图」`}]},{path:[`douyin`,`commentImageCollection`],rules:[{condition:e=>!$(e,[`douyin`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!ER($(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=>!ER($(e,[`bilibili`,`sendContent`],[]),`comment`),message:`修改此配置项需要在「解析时发送的内容」中勾选「评论图」`}]},{path:[`bilibili`,`realCommentCount`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!ER($(e,[`bilibili`,`sendContent`],[]),`comment`),message:`修改此配置项需要在「解析时发送的内容」中勾选「评论图」`}]},{path:[`bilibili`,`commentImageCollection`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!ER($(e,[`bilibili`,`sendContent`],[]),`comment`),message:`修改此配置项需要在「解析时发送的内容」中勾选「评论图」`}]},{path:[`bilibili`,`videoQuality`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`}]},{path:[`bilibili`,`maxAutoVideoSize`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>Number($(e,[`bilibili`,`videoQuality`],0))!==0,message:`修改此配置项需要先将「画质偏好」改为「自动选择」`}]},{path:[`bilibili`,`videoInfoMode`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`}]},{path:[`bilibili`,`displayContent`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>$(e,[`bilibili`,`videoInfoMode`],`text`)===`image`,message:`修改此配置项需要先将「视频信息返回形式」改为「文本模式」`}]},{path:[`bilibili`,`showDanmakuInVideoInfo`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>$(e,[`bilibili`,`videoInfoMode`],`text`)===`text`,message:`修改此配置项需要先将「视频信息返回形式」改为「图片模式」`}]},{path:[`bilibili`,`burnDanmaku`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`}]},{path:[`bilibili`,`danmakuArea`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!$(e,[`bilibili`,`burnDanmaku`],!1),message:`修改此配置项需要先将「弹幕烧录」打开`}]},{path:[`bilibili`,`danmakuFontSize`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!$(e,[`bilibili`,`burnDanmaku`],!1),message:`修改此配置项需要先将「弹幕烧录」打开`}]},{path:[`bilibili`,`danmakuOpacity`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!$(e,[`bilibili`,`burnDanmaku`],!1),message:`修改此配置项需要先将「弹幕烧录」打开`}]},{path:[`bilibili`,`verticalMode`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!$(e,[`bilibili`,`burnDanmaku`],!1),message:`修改此配置项需要先将「弹幕烧录」打开`}]},{path:[`bilibili`,`videoCodec`],rules:[{condition:e=>!$(e,[`bilibili`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!$(e,[`bilibili`,`burnDanmaku`],!1),message:`修改此配置项需要先将「弹幕烧录」打开`}]},{path:[`bilibili`,`push`,`permission`],rules:[{condition:e=>!$(e,[`bilibili`,`push`,`switch`],!1),message:`修改此配置项需要先将「推送开关」打开`}]},{path:[`bilibili`,`push`,`cron`],rules:[{condition:e=>!$(e,[`bilibili`,`push`,`switch`],!1),message:`修改此配置项需要先将「推送开关」打开`}]},{path:[`bilibili`,`push`,`parsedynamic`],rules:[{condition:e=>!$(e,[`bilibili`,`push`,`switch`],!1),message:`修改此配置项需要先将「推送开关」打开`}]},{path:[`bilibili`,`push`,`parseDynamicTypes`],rules:[{condition:e=>!$(e,[`bilibili`,`push`,`switch`],!1),message:`修改此配置项需要先将「推送开关」打开`},{condition:e=>!$(e,[`bilibili`,`push`,`parsedynamic`],!1),message:`修改此配置项需要先将「作品解析」打开`}]},{path:[`bilibili`,`push`,`pushVideoQuality`],rules:[{condition:e=>!$(e,[`bilibili`,`push`,`switch`],!1),message:`修改此配置项需要先将「推送开关」打开`},{condition:e=>!$(e,[`bilibili`,`push`,`parsedynamic`],!1),message:`修改此配置项需要先将「作品解析」打开`}]},{path:[`bilibili`,`push`,`pushMaxAutoVideoSize`],rules:[{condition:e=>!$(e,[`bilibili`,`push`,`switch`],!1),message:`修改此配置项需要先将「推送开关」打开`},{condition:e=>!$(e,[`bilibili`,`push`,`parsedynamic`],!1),message:`修改此配置项需要先将「作品解析」打开`},{condition:e=>Number($(e,[`bilibili`,`push`,`pushVideoQuality`],0))!==0,message:`修改此配置项需要先将「解析视频动态时的画质偏好」改为「自动选择」`}]},{path:[`kuaishou`,`comment`],rules:[{condition:e=>!$(e,[`kuaishou`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`}]},{path:[`kuaishou`,`numcomment`],rules:[{condition:e=>!$(e,[`kuaishou`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!$(e,[`kuaishou`,`comment`],!1),message:`修改此配置项需要先将「评论解析」打开`}]},{path:[`xiaohongshu`,`sendContent`],rules:[{condition:e=>!$(e,[`xiaohongshu`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`}]},{path:[`xiaohongshu`,`numcomment`],rules:[{condition:e=>!$(e,[`xiaohongshu`,`switch`],!1),message:`修改此配置项需要先将「解析开关」打开`},{condition:e=>!ER($(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:`修改此配置项需要先将「画质偏好」改为「自动选择」`}]}],OR=e=>e.join(`.`),kR=(e,t)=>{let n=OR(t),r=DR.find(e=>OR(e.path)===n);if(!r)return``;for(let t of r.rules)if(t.condition(e))return t.message;return``},AR=[{label:`信息`,value:`info`},{label:`评论图`,value:`comment`},{label:`视频`,value:`video`},{label:`图片`,value:`image`}],jR=[{label:`封面`,value:`cover`},{label:`标题`,value:`title`},{label:`作者`,value:`author`},{label:`统计`,value:`stats`},{label:`简介`,value:`desc`}],MR=[{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`}],NR=[{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:`需大会员&视频支持`}],PR=[{label:`视频动态`,value:`DYNAMIC_TYPE_AV`},{label:`图文动态`,value:`DYNAMIC_TYPE_DRAW`},{label:`文章动态`,value:`DYNAMIC_TYPE_ARTICLE`}],FR=[{label:`所有人`,value:`all`},{label:`管理员`,value:`admin`},{label:`主人`,value:`master`},{label:`群主`,value:`group.owner`},{label:`群管理员`,value:`group.admin`}],IR=[{label:`H.264`,value:`h264`,description:`兼容性最好,支持几乎所有设备`},{label:`H.265`,value:`h265`,description:`压缩率更高,近几年设备支持良好(推荐)`},{label:`AV1`,value:`av1`,description:`最新编码格式,压缩率最高,但编码较慢`}],LR=[{label:`关闭`,value:`off`,description:`保持原始比例,不做转换`},{label:`智能`,value:`standard`,description:`仅对宽屏比例视频生效`},{label:`强制 9:16`,value:`force`,description:`所有视频统一转为 9:16 竖屏`}],RR=[{label:`1/4 屏`,value:`0.25`,description:`仅顶部区域`},{label:`半屏`,value:`0.5`,description:`上半部分(推荐)`},{label:`3/4 屏`,value:`0.75`,description:`大部分区域`},{label:`全屏`,value:`1`,description:`铺满整个画面`}],zR=[{label:`小号`,value:`small`},{label:`中号`,value:`medium`},{label:`大号`,value:`large`}],BR={enabled:`已开启`,disabled:`已关闭`},VR=[{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`}],HR=(0,v.lazy)(()=>hC(()=>import(`./CronEditor-D6WcUMWp.js`),__vite__mapDeps([0,1]))),UR=({className:e,disabled:t,...n})=>{let[r,i]=(0,v.useState)(!1),a=r?`隐藏密码`:`显示密码`;return(0,H.jsxs)(`div`,{className:`relative w-full`,children:[(0,H.jsx)(Eb,{...n,variant:`secondary`,className:`w-full pr-10 ${e??``}`,type:r?`text`:`password`}),(0,H.jsx)(Ug,{isIconOnly:!0,"aria-label":a,className:`absolute right-1 top-1/2 -translate-y-1/2`,isDisabled:t,size:`sm`,type:`button`,variant:`tertiary`,onPress:()=>i(e=>!e),children:r?(0,H.jsx)(pM,{className:`size-4`,"aria-hidden":`true`}):(0,H.jsx)(hM,{className:`size-4`,"aria-hidden":`true`})})]})},WR=({config:e,device:t,classes:n,validationErrors:r,updateConfigValue:i})=>{let a=e=>{let n=_R(e)?e:{description:e},r=t===`mobile`?n.mobileContent??n.desktopContent:n.desktopContent;return(0,H.jsxs)(eb,{className:`flex items-center gap-2`,children:[(0,H.jsx)(`span`,{children:n.description}),r?(0,H.jsxs)(Xx,{delay:0,children:[(0,H.jsx)(Xx.Trigger,{"aria-label":`查看详细说明`,children:(0,H.jsx)(Ug,{isIconOnly:!0,size:`sm`,variant:`tertiary`,children:(0,H.jsx)(yM,{className:`size-4`,"aria-hidden":`true`})})}),(0,H.jsxs)(Xx.Content,{showArrow:!0,placement:t===`mobile`?`bottom`:`top`,children:[(0,H.jsx)(Xx.Arrow,{}),(0,H.jsx)(`div`,{className:`max-w-72`,children:r})]})]}):null,n.extra]})},o=(n,r,i)=>{if(!i)return n;let a=kR(e,r);return a?t===`mobile`?(0,H.jsxs)(Vb,{children:[(0,H.jsx)(Vb.Trigger,{className:`w-full cursor-not-allowed`,children:n}),(0,H.jsx)(Vb.Content,{placement:`bottom`,children:(0,H.jsxs)(Vb.Dialog,{children:[(0,H.jsx)(Vb.Arrow,{}),(0,H.jsx)(`div`,{className:`max-w-72 text-sm`,children:a})]})})]}):(0,H.jsxs)(Xx,{delay:0,children:[(0,H.jsx)(Xx.Trigger,{className:`w-full cursor-not-allowed`,children:n}),(0,H.jsxs)(Xx.Content,{showArrow:!0,placement:`top`,children:[(0,H.jsx)(Xx.Arrow,{}),(0,H.jsx)(`div`,{className:`max-w-72`,children:a})]})]}):n},s=(t,n,r,a)=>{let o=Q(e,t,[]),s=r?Array.from(new Set([...o,n])):o.filter(e=>e!==n);if(a&&r){let e=a.find(e=>e.includes(n));if(e){let t=e.filter(e=>e!==n);s=s.filter(e=>!t.includes(e))}}i(t,s)};return{renderSwitch:(t,n,r,s=!1)=>{let c=Q(e,t,!1),l=(0,H.jsxs)(px,{isDisabled:s,isSelected:c,onChange:e=>i(t,e),children:[(0,H.jsxs)(px.Content,{children:[(0,H.jsx)(px.Control,{children:(0,H.jsx)(px.Thumb,{})}),(0,H.jsx)(`span`,{className:`font-semibold`,children:n})]}),a(r||(c?BR.enabled:BR.disabled))]});return o(l,t,s)},renderTextField:(t,n,s,c)=>{let l=c?.type||`text`,u=String(Q(e,t,l===`number`?c?.fallback??0:``)),d=r[fR(t)],f=c?.disabled??!1,p=(0,H.jsxs)(vx,{fullWidth:!0,isInvalid:!!d,isDisabled:f,name:t.join(`.`),type:l,value:u,onChange:e=>{i(t,l===`number`?hR(e,c?.fallback??0):e)},children:[(0,H.jsx)(Ob,{className:`font-semibold`,children:n}),l===`password`?(0,H.jsx)(UR,{disabled:f,max:c?.max,min:c?.min,pattern:c?.pattern,placeholder:c?.placeholder||n,step:c?.step}):(0,H.jsx)(Eb,{variant:`secondary`,max:c?.max,min:c?.min,pattern:c?.pattern,placeholder:c?.placeholder||n,step:c?.step}),d?(0,H.jsx)(bb,{children:d}):a(s)]});return o(p,t,f)},renderSelectField:(t,n,r,s,c=e=>e,l=!1)=>{let u=String(Q(e,t,s[0]?.value||``)),d=(0,H.jsxs)(Zb,{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,H.jsx)(Ob,{className:`font-semibold`,children:n}),(0,H.jsxs)(Zb.Trigger,{children:[(0,H.jsx)(Zb.Value,{}),(0,H.jsx)(Zb.Indicator,{})]}),a(r),(0,H.jsx)(Zb.Popover,{children:(0,H.jsx)(Fb,{children:s.map(e=>(0,H.jsxs)(Fb.Item,{id:e.value,textValue:e.label,children:[(0,H.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,H.jsx)(Ob,{children:e.label}),e.description?(0,H.jsx)(eb,{children:e.description}):null]}),(0,H.jsx)(Fb.ItemIndicator,{})]},e.value))})})]});return o(d,t,l)},renderCheckboxGroup:(t,r,i,c,l=!1,u)=>{let d=Q(e,t,[]),f=(0,H.jsxs)(`div`,{className:n.field,children:[(0,H.jsx)(Ob,{className:`font-semibold`,children:r}),a(i),(0,H.jsx)(`div`,{className:n.choiceGrid,children:c.map(e=>(0,H.jsxs)(g_,{variant:`secondary`,isDisabled:l,isSelected:gR(d,e.value),onChange:n=>s(t,e.value,n,u),children:[(0,H.jsxs)(g_.Content,{children:[(0,H.jsx)(g_.Control,{children:(0,H.jsx)(g_.Indicator,{})}),e.label]}),e.description?(0,H.jsx)(eb,{children:e.description}):null]},e.value))})]});return o(f,t,l)},renderSlider:(t,r,s,c)=>{let l=Q(e,t,c?.fallback??0),u=c?.disabled??!1,d=(0,H.jsxs)(`div`,{className:n.field,children:[(0,H.jsxs)(nx,{className:`w-full`,isDisabled:u,value:l,formatOptions:c?.formatOptions??{style:`percent`,maximumFractionDigits:0},maxValue:c?.max??1,minValue:c?.min??0,step:c?.step??.01,onChange:e=>{Array.isArray(e)||i(t,e)},children:[(0,H.jsx)(Ob,{className:`font-semibold`,children:r}),(0,H.jsx)(nx.Output,{}),(0,H.jsxs)(nx.Track,{children:[(0,H.jsx)(nx.Fill,{}),(0,H.jsx)(nx.Thumb,{})]})]}),a(s)]});return o(d,t,u)},renderCronField:(r,a,s,c=!1)=>{let l=Q(e,r,`*/10 * * * *`),u=(0,H.jsx)(`div`,{className:n.field,children:(0,H.jsx)(v.Suspense,{fallback:(0,H.jsx)(`div`,{className:`h-64 animate-pulse rounded-lg bg-muted/30`}),children:(0,H.jsx)(HR,{device:t,disabled:c,value:l,onChange:e=>i(r,e)})})});return o(u,r,c)},renderPageHeader:(e,n)=>(0,H.jsxs)(`div`,{className:`mb-6 ${t===`mobile`?`pr-36`:``}`,"data-config-section":!0,children:[(0,H.jsx)(`h2`,{className:`text-2xl font-bold`,children:e}),(0,H.jsx)(`div`,{className:`mt-3`,children:(0,H.jsx)(eb,{children:n})})]}),renderSubSection:(e,t)=>(0,H.jsxs)(Kg,{"data-config-section":!0,className:`mb-4`,children:[(0,H.jsx)(Kg.Header,{className:n.sectionHeader,children:(0,H.jsx)(Kg.Title,{className:`text-lg font-semibold`,children:e})}),(0,H.jsx)(Kg.Content,{className:n.sectionContent,children:(0,H.jsx)(`div`,{className:n.fields,children:t})})]})}},GR={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`},KR={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`},qR=e=>e===`mobile`?KR:GR,JR=({config:e,renderers:t})=>{let{renderPageHeader:n,renderSelectField:r,renderSubSection:i,renderSwitch:a,renderTextField:o}=t,s=Q(e,[`amagi`,`proxy`,`switch`],!1),c=Q(e,[`amagi`,`APIServer`],!1);return(0,H.jsxs)(H.Fragment,{children:[n(`接口库配置`,`接口库的 Cookies、请求、代理和 API 服务配置。保存后后端会重载接口库客户端。`),i(`平台 Cookies`,(0,H.jsxs)(H.Fragment,{children:[o([`amagi`,`cookies`,`douyin`],`抖音 Cookies`,`请输入你的抖音Cookies,不输入则无法使用抖音相关功能噢。`,{type:`password`}),o([`amagi`,`cookies`,`bilibili`],`B站 Cookies`,`请输入你的B站Cookies,不输入部分功能将受限噢。`,{type:`password`}),o([`amagi`,`cookies`,`kuaishou`],`快手 Cookies`,`请输入你的快手Cookies,不输入则无法使用快手相关功能噢。`,{type:`password`}),o([`amagi`,`cookies`,`xiaohongshu`],`小红书 Cookies`,`请输入你的小红书Cookies,不输入则无法使用小红书相关功能噢。`,{type:`password`})]})),i(`请求配置`,(0,H.jsxs)(H.Fragment,{children:[o([`amagi`,`timeout`],`请求超时时间`,`网络请求的超时时间,单位:毫秒。`,{type:`number`,fallback:15e3,min:1e3,max:3e5}),o([`amagi`,`User-Agent`],`User-Agent`,`请求头中的User-Agent字段,用于标识客户端类型。`)]})),i(`代理配置(可选)`,(0,H.jsxs)(H.Fragment,{children:[a([`amagi`,`proxy`,`switch`],`代理开关`,`开启后需要配置「代理主机」「代理端口」。`),r([`amagi`,`proxy`,`protocol`],`代理协议`,`代理服务使用的协议。`,[{label:`HTTP`,value:`http`},{label:`HTTPS`,value:`https`}],e=>e,!s),o([`amagi`,`proxy`,`host`],`代理主机`,`代理服务器的主机地址,如:127.0.0.1。`,{disabled:!s}),o([`amagi`,`proxy`,`port`],`代理端口`,`代理服务器的端口号。`,{type:`number`,fallback:7890,min:1,max:65535,disabled:!s}),o([`amagi`,`proxy`,`auth`,`username`],`代理用户名`,`代理服务器的认证用户名(如果需要)。`,{disabled:!s}),o([`amagi`,`proxy`,`auth`,`password`],`代理密码`,`代理服务器的认证密码(如果需要)。`,{type:`password`,disabled:!s})]})),i(`API 服务配置`,(0,H.jsxs)(H.Fragment,{children:[a([`amagi`,`APIServer`],`API 服务`,`本地部署一个视频解析API服务,接口范围为本插件用到的所有。`),a([`amagi`,`APIServerMount`],`挂载到 Karin`,`API 服务是否挂载到 Karin 上,开启后监听端口为 Karin 的 http 端口,修改后需重启。需开启「API服务」。`,!c),o([`amagi`,`APIServerPort`],`API 服务端口`,`仅未挂载到 Karin 时生效。`,{type:`number`,disabled:Q(e,[`amagi`,`APIServerMount`],!0),fallback:4567,min:1024,max:65535})]}))]})},YR=({config:e,renderers:t})=>{let{renderCheckboxGroup:n,renderPageHeader:r,renderSelectField:i,renderSlider:a,renderSubSection:o,renderSwitch:s,renderTextField:c}=t,l=Q(e,[`app`,`livePhotoMode`],`video_and_livephoto`);return(0,H.jsxs)(H.Fragment,{children:[r(`通用`,`插件运行、渲染和交互相关配置。`),o(`缓存设置`,(0,H.jsx)(H.Fragment,{children:s([`app`,`removeCache`],`自动删除视频缓存`,`任务完成后删除下载缓存。`)})),o(`交互设置`,(0,H.jsxs)(H.Fragment,{children:[s([`app`,`EmojiReply`],`表情回应`,`在解析任务开始时添加表情回应,若适配器不支持需要关闭。`),s([`app`,`parseTip`],`解析提示`,`发送提示信息:"检测到xxx链接,开始解析"。`),s([`app`,`fakeForward`],`伪造合并转发消息`,`开启后合并转发将使用触发者身份展示;关闭后使用机器人身份展示。`),n([`app`,`errorLogSendTo`],`错误日志`,`遇到错误时谁会收到错误日志。注:推送任务只可发送给主人。「第一个主人」与「所有主人」互斥。`,[{label:`第一个主人`,value:`master`},{label:`所有主人`,value:`allMasters`},{label:`触发者的群聊`,value:`trigger`}],!1,[[`master`,`allMasters`]])]})),o(`渲染设置`,(0,H.jsxs)(H.Fragment,{children:[c([`app`,`renderScale`],`渲染精度`,`可选值50~200,建议100。设置高精度会提高图片的精细度,过高可能会影响渲染与发送速度。`,{type:`number`,fallback:100,min:50,max:200}),(0,H.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,H.jsx)(`div`,{className:`min-w-0 flex-1`,children:i([`app`,`Theme`],`渲染图片的主题色`,`渲染评论图和推送图的主题色。`,[{label:`自动`,value:`0`,description:`06:00-18:00为浅色,18:00-06:00为深色`},{label:`浅色`,value:`1`},{label:`深色`,value:`2`},{label:`智能场景(实验性)`,value:`3`,description:`自动模式的超集;部分模板会根据封面色调 智能调整主题色,可能会出现不适配的情况。`}],e=>Number(e))}),(0,H.jsxs)(Vb,{children:[(0,H.jsx)(Vb.Trigger,{"aria-label":`封面氛围背景参数`,className:`mt-7 shrink-0`,children:(0,H.jsx)(Ug,{isIconOnly:!0,"aria-label":`封面氛围背景参数`,variant:`secondary`,children:(0,H.jsx)(NM,{className:`size-4`,"aria-hidden":`true`})})}),(0,H.jsx)(Vb.Content,{className:`w-90 max-w-[calc(100vw-2rem)]`,placement:`bottom`,children:(0,H.jsxs)(Vb.Dialog,{children:[(0,H.jsx)(Vb.Arrow,{}),(0,H.jsx)(Vb.Heading,{children:`封面氛围背景`}),(0,H.jsx)(`p`,{className:`mt-1 mb-5 text-sm text-muted`,children:`仅对使用封面氛围背景的模板生效(抖音视频/图文作品、B站视频信息、B站直播推荐动态)。`}),(0,H.jsxs)(`div`,{className:`flex flex-col gap-5`,children:[a([`app`,`ambientCover`,`coverOpacity`],`封面氛围强度`,`封面图对背景氛围的贡献度,即模糊封面层的不透明度,越大封面色越浓。`,{fallback:.7}),a([`app`,`ambientCover`,`overlayEdgeOpacity`],`氛围压色(顶部/底部)`,`背景两端主题色压色罩的不透明度,越大两端越接近纯色主题背景。`,{fallback:.9}),a([`app`,`ambientCover`,`overlayMiddleOpacity`],`氛围压色(中间带)`,`背景中间带主题色压色罩的不透明度,越小封面色越透。`,{fallback:.2})]})]})})]})]}),c([`app`,`RenderWaitTime`],`渲染图片的等待时间`,`单位:秒,Linux系统下不能为0;其他系统传递 0 可禁用。`,{type:`number`,fallback:60,min:0}),s([`app`,`multiPageRender`],`分页渲染`,`将模板渲染成多页的图片,以降低渲染器压力,默认开启,非必要不修改!`),c([`app`,`multiPageHeight`],`分页渲染时,每页的高度`,`经测试最佳每页高度为12000px,默认12000px。`,{type:`number`,disabled:!Q(e,[`app`,`multiPageRender`],!0),fallback:12e3,min:1e3,max:2e4})]})),o(`上传与下载设置`,(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(ox,{className:`flex flex-col gap-5 p-4 mb-4 rounded-3xl`,variant:`secondary`,children:[i([`app`,`videoSendMode`],`本地视频发送方式`,`选择本地视频交付给协议端的方式。`,[{label:`File 协议(本地文件)`,value:`file`,description:`使用 file 协议发送本地视频,需 Karin 与协议端在同一网络环境下`},{label:`Base64(编码传输)`,value:`base64`,description:`将本地视频转换为 base64 发送,传输数据量增大约 30%,不在同一网络环境可能导致额外带宽成本,适合 karin 和协议端不在同一网络环境`}],e=>e,Q(e,[`app`,`usegroupfile`],!1)),s([`app`,`usegroupfile`],`群文件上传`,`使用群文件上传,开启后会将视频文件上传到群文件中,需配置「群文件上传阈值」。与「本地视频发送方式 = Base64」互斥。`,Q(e,[`app`,`videoSendMode`],`file`)===`base64`),c([`app`,`groupfilevalue`],`群文件上传阈值`,`当文件大小超过该值时将使用群文件上传,单位:MB,「使用群文件上传」开启后才会生效。`,{type:`number`,fallback:100,min:1,disabled:!Q(e,[`app`,`usegroupfile`],!1)||Q(e,[`app`,`videoSendMode`],`file`)===`base64`})]}),(0,H.jsx)(ox,{className:`flex flex-col gap-5 p-4 mb-4 rounded-3xl`,variant:`secondary`,children:i([`app`,`imageSendMode`],`网络图片发送方式`,`图片资源发送给协议端的方式。`,[{label:`URL 链接(直接传递)`,value:`url`,description:`直接传递 HTTP 链接给上游下载,可能因上游网络问题导致下载超时`},{label:`File 协议(本地文件)`,value:`file`,description:`下载到本地后使用 file 协议发送,需 Karin 与协议端在同一网络环境下`},{label:`Base64(编码传输)`,value:`base64`,description:`下载后转换为 base64 发送,传输数据量增大约 30%,不在同一网络环境可能导致额外带宽成本`}])}),(0,H.jsxs)(ox,{className:`flex flex-col gap-5 p-4 mb-4 rounded-3xl`,variant:`secondary`,children:[s([`app`,`usefilelimit`],`视频上传拦截`,`开启后会根据视频文件大小判断是否需要上传,需配置「视频拦截阈值」。`),c([`app`,`filelimit`],`视频拦截阈值`,`视频文件大于该数值则直接结束任务,不会上传,单位: MB,「视频上传拦截」开启后才会生效。`,{type:`number`,fallback:20,min:1,disabled:!Q(e,[`app`,`usefilelimit`],!1)}),s([`app`,`compress`],`压缩视频`,`开启后会将视频文件压缩后再上传,适合上传大文件,任务过程中会吃满CPU,对低配服务器不友好。需配置「压缩触发阈值」与「压缩后的值」。`),c([`app`,`compresstrigger`],`压缩触发阈值`,`触发视频压缩的阈值,单位:MB。当文件大小超过该值时,才会压缩视频,「压缩视频」开启后才会生效。`,{type:`number`,fallback:80,min:1,disabled:!Q(e,[`app`,`compress`],!1)}),c([`app`,`compressvalue`],`压缩后的值`,`单位:MB,若视频文件大小大于「压缩触发阈值」的值,则会进行压缩至该值(±5%),「压缩视频」开启后才会生效。`,{type:`number`,fallback:30,min:1,disabled:!Q(e,[`app`,`compress`],!1)})]}),(0,H.jsxs)(ox,{className:`flex flex-col gap-5 p-4 rounded-3xl`,variant:`secondary`,children:[s([`app`,`downloadThrottle`],`下载限速`,`开启后会限制下载速度,避免触发服务器风控导致连接被重置(ECONNRESET)。如果下载时经常报错"连接被重置",建议开启。`),c([`app`,`downloadMaxSpeed`],`最大下载速度`,`限速开关打开后生效。单位:MB/s,建议值:10,根据实际情况调整。`,{type:`number`,fallback:10,min:1,max:100,disabled:!Q(e,[`app`,`downloadThrottle`],!1)}),s([`app`,`downloadAutoReduce`],`断流自动降速`,`限速开关打开后生效。当检测到下载中断时,自动降低下载速度,避免再次触发风控。`,!Q(e,[`app`,`downloadThrottle`],!1)),c([`app`,`downloadMinSpeed`],`最低下载速度`,`断流降速开关打开后生效。单位:MB/s,自动降速的下限值。`,{type:`number`,fallback:1,min:.5,max:50,disabled:!Q(e,[`app`,`downloadThrottle`],!1)||!Q(e,[`app`,`downloadAutoReduce`],!1)})]})]})),o(`Live Photo 兼容设置`,(0,H.jsxs)(H.Fragment,{children:[i([`app`,`livePhotoMode`],`Live Photo 处理和发送方式`,`解析遇到实况图时的处理和发送方式。注意:生成视频性能开销大,2C2G 服务器单张约需 20 秒。`,[{label:`视频 + 实况图`,value:`video_and_livephoto`,description:`生成并发送仿 iPhone Live Photo 播放效果的视频(播放三次)+ 对应系统的实况图`},{label:`仅视频`,value:`video_only`,description:`仅生成并发送仿 iPhone Live Photo 播放效果的视频(播放三次)`},{label:`仅实况图`,value:`livephoto_only`,description:`仅生成并发送对应系统的实况图,性能开销小`}]),i([`app`,`livePhotoSystem`],`Live Photo 静态图兼容系统`,`当解析到作品/动态包含 Live Photo 时,合并转发里发送的 Live Photo 静态图按所选系统生成。推荐 OPPO,兼容性最广。`,[{label:`Google`,value:`google`,description:`Google Motion Photo 格式`},{label:`小米(HyperOS)`,value:`xiaomi`,description:`兼容小米(任何版本)和 Google,但无法被 OPPO 识别`},{label:`OPPO(ColorOS)`,value:`oppo`,description:`推荐,兼容 OPPO、小米(较新版本)和 Google`},{label:`华为/荣耀(HarmonyOS/MagicOS)`,value:`huawei_honor`,description:`理论可行但未实测(作者无对应设备)`},{label:`vivo(Origin OS)`,value:`vivo`,description:`需要独立的图片和同名视频文件,暂不支持`,disabled:!0},{label:`iPhone(iOS)`,value:`iphone`,description:`需要独立的图片和同名视频文件,暂不支持`,disabled:!0}],e=>e,l===`video_only`)]})),o(`我的小玩具`,(0,H.jsxs)(H.Fragment,{children:[s([`app`,`videoTool`],`默认解析优先级`,`关闭后使用自定义优先级,修改后需重启。`),c([`app`,`priority`],`自定义优先级`,`默认解析优先级关闭后生效。`,{type:`number`,disabled:Q(e,[`app`,`videoTool`],!0),fallback:800}),i([`app`,`qrLoginAddrType`],`扫码登录地址`,`生成登录二维码时使用的服务器地址。`,[{label:`局域网`,value:`lan`,description:`适用于手机和服务器在同一局域网`},{label:`外部地址`,value:`external`,description:`适用于远程访问,需手动配置`}]),c([`app`,`qrLoginExternalAddr`],`外部访问地址`,`公网 IP 或域名,如:123.45.67.89 或 example.com。`,{disabled:Q(e,[`app`,`qrLoginAddrType`],`lan`)!==`external`})]}))]})},XR=({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||!gR(d,`comment`),y=!u||!f;return(0,H.jsxs)(H.Fragment,{children:[a(`哔哩哔哩`,`B站解析、动态图片布局、弹幕和推送基础设置。`),(0,H.jsxs)(`div`,{className:n.topLevelFields,"data-config-section":!0,children:[c([`bilibili`,`switch`],`解析开关`,`B站解析开关,此开关为单独开关。`),r([`bilibili`,`sendContent`],`解析时发送的内容`,`若什么都不选,可能不会返回任何解析结果。`,AR.filter(e=>e.value!==`image`),!u)]}),s(`评论详情设置`,(0,H.jsxs)(H.Fragment,{children:[l([`bilibili`,`numcomment`],`评论解析数量`,`主评论解析数量。`,{type:`number`,fallback:5,min:1,disabled:v}),c([`bilibili`,`realCommentCount`],`显示真实评论数量`,`关闭则显示解析到的评论数量。`,v),c([`bilibili`,`commentImageCollection`],`是否收集评论区的图片`,`开启后将收集评论区的图片,以合并转发的形式返回。`,v)]})),s(`渲染与画质设置`,(0,H.jsxs)(H.Fragment,{children:[o([`bilibili`,`videoQuality`],`画质偏好`,`解析视频的分辨率偏好。`,NR,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`],`视频信息前返回的内容`,`若什么都不选,则不会返回任何视频相关信息。`,jR,!u||m===`image`),c([`bilibili`,`showDanmakuInVideoInfo`],`视频信息图片中显示弹幕`,`开启后在视频信息图片的封面区域显示热门弹幕。关闭后不会请求弹幕数据,可提升解析速度。仅「视频信息返回形式」为图片模式时生效。`,!u||m===`text`)]})),s(`权限设置`,(0,H.jsx)(H.Fragment,{children:o([`bilibili`,`loginPerm`],`谁可以触发扫码登录`,`修改后需重启。`,FR)})),s(`弹幕烧录相关`,(0,H.jsxs)(H.Fragment,{children:[c([`bilibili`,`burnDanmaku`],`弹幕烧录`,`将弹幕硬编码到视频画面中。开启后视频需要重新编码,耗时较长,高分辨率视频会占用较多资源。`,!u),o([`bilibili`,`danmakuArea`],`弹幕区域`,`限制弹幕的显示范围,避免遮挡视频主体内容。`,RR,Number,y),o([`bilibili`,`danmakuFontSize`],`弹幕字号`,`弹幕文字大小。`,zR,e=>e,y),l([`bilibili`,`danmakuOpacity`],`弹幕透明度`,`0为完全透明,100为完全不透明,推荐70。`,{type:`number`,fallback:70,min:0,max:100,disabled:y}),o([`bilibili`,`verticalMode`],`竖屏适配`,`模拟手机端竖屏观看体验,视频居中显示,上下黑边区域用于展示弹幕。`,LR,e=>e,y),o([`bilibili`,`videoCodec`],`视频编码格式`,`弹幕烧录时使用的视频编码格式,会自动检测硬件加速。`,IR,e=>e,y)]})),s(`B站推送相关`,(0,H.jsxs)(H.Fragment,{children:[c([`bilibili`,`push`,`switch`],`推送开关`,`推送开关,修改后需重启;使用「#设置B站推送 + UID」配置推送列表。`),o([`bilibili`,`push`,`permission`],`谁可以设置推送`,`修改后需重启。`,FR,e=>e,!h),i([`bilibili`,`push`,`cron`],`定时任务表达式`,`定时推送的时间,支持可视化编辑或手动输入 cron 表达式。`,!h),c([`bilibili`,`push`,`parsedynamic`],`作品解析`,`触发推送时是否一同解析该作品。`,!h),r([`bilibili`,`push`,`parseDynamicTypes`],`需要解析的动态类型`,`选择推送时需要进一步解析的动态类型;未选择的类型只发送动态卡片。`,PR,!h||!g),o([`bilibili`,`push`,`pushVideoQuality`],`解析视频动态时的画质偏好`,`「作品解析」开启时生效,仅对视频动态有效。`,NR.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})]}))]})},ZR=({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||!gR(f,`comment`),y=!d||!p;return(0,H.jsxs)(H.Fragment,{children:[a(`抖音`,`抖音解析、画质、弹幕和推送基础设置。`),(0,H.jsxs)(`div`,{className:n.topLevelFields,"data-config-section":!0,children:[c([`douyin`,`switch`],`解析开关`,`抖音解析开关,此开关为单独开关。`),r([`douyin`,`sendContent`],`解析时发送的内容`,`若什么都不选,可能不会返回任何解析结果。`,AR.filter(e=>e.value!==`image`),!d)]}),s(`评论详情设置`,(0,H.jsxs)(H.Fragment,{children:[l([`douyin`,`numcomment`],`评论解析数量`,`主评论解析数量。`,{type:`number`,fallback:5,min:1,disabled:v}),l([`douyin`,`subCommentLimit`],`子评论请求数量`,`单条主评论下请求的子评论总条数(含多层嵌套)。注意:UI中最多显示 6 层回复嵌套,超出部分会被隐藏;因实际嵌套深度不可预知,配置数量不代表最终可见数量。`,{type:`number`,fallback:5,min:1,max:20,disabled:v}),c([`douyin`,`commentImageCollection`],`是否收集评论区的图片`,`开启后将收集评论区的图片,以合并转发的形式返回。`,v)]})),s(`渲染与画质设置`,(0,H.jsxs)(H.Fragment,{children:[o([`douyin`,`liveImageMergeMode`],`合辑 Live 图 BGM 合并方式`,`合辑 Live 图 BGM 合并方式,仅 Live Photo 模式不是「仅实况图」时生效。`,[{label:`连续`,value:`continuous`,description:`BGM 接续播放,结束后自动循环`},{label:`独立`,value:`independent`,description:`每张图 BGM 从头开始`}],e=>e,!d||u===`livephoto_only`),o([`douyin`,`videoQuality`],`画质偏好`,`解析视频的分辨率偏好。`,MR,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`],`视频信息的内容`,`若什么都不选,则不会返回任何视频相关信息。`,jR.filter(e=>e.value!==`desc`),!d||h===`image`)]})),s(`权限设置`,(0,H.jsx)(H.Fragment,{children:o([`douyin`,`loginPerm`],`谁可以触发扫码登录`,`修改后需重启。`,FR)})),s(`弹幕烧录相关`,(0,H.jsxs)(H.Fragment,{children:[c([`douyin`,`burnDanmaku`],`弹幕烧录`,`将弹幕硬编码到视频画面中。开启后视频需要重新编码,耗时较长。`,!d),o([`douyin`,`danmakuArea`],`弹幕显示区域`,`限制弹幕范围,避免遮挡视频主体。`,RR,Number,y),o([`douyin`,`danmakuFontSize`],`弹幕字号`,`弹幕文字大小。`,zR,e=>e,y),l([`douyin`,`danmakuOpacity`],`弹幕透明度`,`0为完全透明,100为完全不透明,推荐70。`,{type:`number`,fallback:70,min:0,max:100,disabled:y}),o([`douyin`,`verticalMode`],`竖屏适配`,`针对横屏视频,模拟手机端竖屏观看体验,视频居中显示,上下黑边区域用于展示弹幕。`,LR,e=>e,y),o([`douyin`,`videoCodec`],`视频编码格式`,`烧录弹幕后的视频编码格式。`,IR,e=>e,y)]})),s(`抖音推送相关`,(0,H.jsxs)(H.Fragment,{children:[c([`douyin`,`push`,`switch`],`推送开关`,`推送开关,修改后需重启;使用「#设置抖音推送 + 抖音号」配置推送列表。`),o([`douyin`,`push`,`permission`],`谁可以设置推送`,`修改后需重启。`,FR,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`],`画质偏好`,`推送解析时解析视频的分辨率偏好。`,MR,e=>e,!g),l([`douyin`,`push`,`pushMaxAutoVideoSize`],`视频体积上限(MB)`,`推送解析时根据该值自动选择分辨率进行下载。仅在「画质偏好」 为 "自动选择" 时生效。`,{type:`number`,fallback:50,min:1,max:2e4,disabled:!g||_!==`adapt`})]}))]})},QR=({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,H.jsxs)(H.Fragment,{children:[r(`快手`,`快手解析基础设置。`),(0,H.jsx)(`div`,{className:n.topLevelFields,"data-config-section":!0,children:a([`kuaishou`,`switch`],`解析开关`,`快手解析开关,此开关为单独开关。`)}),i(`评论详情设置`,(0,H.jsxs)(H.Fragment,{children:[a([`kuaishou`,`comment`],`评论解析`,`快手评论解析,开启后可发送快手作品评论图。`,!s),o([`kuaishou`,`numcomment`],`评论解析数量`,`快手评论解析数量。`,{type:`number`,fallback:5,min:1,disabled:!s||!c})]}))]})},$R=({children:e,disabled:t,message:n,device:r})=>t?r===`mobile`?(0,H.jsxs)(Vb,{children:[(0,H.jsx)(Vb.Trigger,{className:`w-full cursor-not-allowed`,children:e}),(0,H.jsxs)(Vb.Content,{placement:`bottom`,children:[(0,H.jsx)(Vb.Arrow,{}),(0,H.jsx)(`div`,{className:`px-3 py-2`,children:(0,H.jsx)(`p`,{className:`text-sm text-foreground`,children:n})})]})]}):(0,H.jsxs)(Xx,{delay:0,children:[(0,H.jsx)(Xx.Trigger,{className:`w-full cursor-not-allowed`,children:e}),(0,H.jsxs)(Xx.Content,{showArrow:!0,placement:`top`,children:[(0,H.jsx)(Xx.Arrow,{}),n]})]}):e,ez=e=>e===`desktop`?`grid grid-cols-2 gap-4`:`flex flex-col gap-4`,tz=[{label:`作品列表`,value:`post`,description:`推送用户发布的作品`},{label:`喜欢列表`,value:`favorite`,description:`推送用户喜欢的作品`},{label:`推荐列表`,value:`recommend`,description:`推送推荐的作品`},{label:`直播`,value:`live`,description:`推送直播状态`}],nz=[{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:`推送专栏文章`}],rz=[{label:`黑名单`,value:`blacklist`,description:`命中关键词/标签则不推送`},{label:`白名单`,value:`whitelist`,description:`只推送命中关键词/标签的内容`}],iz=({label:e,description:t,items:n,onAdd:r,onRemove:i,disabled:a=!1})=>{let[o,s]=(0,v.useState)(``),[c,l]=(0,v.useState)(``),u=()=>{let e=o.trim();if(!e){l(`请输入内容`);return}if(n.includes(e)){l(`该项已存在,请勿重复添加`);return}r(e),s(``),l(``)};return(0,H.jsxs)(`div`,{className:`space-y-2`,children:[(0,H.jsxs)(`div`,{className:`flex gap-2`,children:[(0,H.jsxs)(vx,{className:`flex-1`,isDisabled:a,isInvalid:!!c,value:o,onChange:e=>{s(e),c&&l(``)},children:[(0,H.jsx)(Ob,{children:e}),(0,H.jsx)(Eb,{variant:`secondary`,placeholder:`输入${e}`,onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),u())}}),c?(0,H.jsx)(bb,{children:c}):null]}),(0,H.jsx)(Ug,{isDisabled:a,variant:`secondary`,onPress:u,children:(0,H.jsx)(DM,{className:`size-4`})})]}),n.length>0?(0,H.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:n.map(e=>(0,H.jsxs)(b_,{color:`accent`,variant:`soft`,children:[(0,H.jsx)(`span`,{children:e}),a?null:(0,H.jsx)(`button`,{type:`button`,className:`ml-1 rounded-full p-0.5 hover:bg-black/10`,onClick:()=>i(e),children:(0,H.jsx)(FM,{className:`size-3`})})]},e))}):(0,H.jsxs)(eb,{children:[`暂无`,e]}),(0,H.jsx)(eb,{children:t})]})},az=(e,t)=>{if((e.success||e.code===200)&&e.data!==void 0)return e.data;throw Error(e.message||t)},oz=async()=>az((await $I.get(`/kkk/v1/bots`)).data,`获取 Bot 列表失败`),sz=async e=>az((await $I.get(`/kkk/v1/bots/${encodeURIComponent(e)}/groups`)).data,`获取群列表失败`),cz=async e=>e.length===0?[]:az((await $I.post(`/kkk/v1/groups/batch`,{groups:e})).data,`获取推送目标信息失败`),lz=({mapping:e,compact:t=!1,stacked:n=!1})=>n?(0,H.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,H.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,H.jsxs)(Rg,{size:`sm`,children:[(0,H.jsx)(Rg.Image,{alt:e.groupName||e.groupId,src:e.groupAvatar}),(0,H.jsx)(Rg.Fallback,{children:(e.groupName||e.groupId).slice(0,1)})]}),(0,H.jsxs)(`div`,{className:`min-w-0`,children:[(0,H.jsx)(Ob,{className:`block truncate`,children:e.groupName||e.groupId}),(0,H.jsx)(eb,{className:`block truncate`,children:e.groupId})]})]}),(0,H.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2 pl-8`,children:[(0,H.jsx)(lM,{className:`size-4 shrink-0 text-muted`}),(0,H.jsxs)(Rg,{size:`sm`,children:[(0,H.jsx)(Rg.Image,{alt:e.botName||e.botId,src:e.botAvatar}),(0,H.jsx)(Rg.Fallback,{children:(e.botName||e.botId).slice(0,1)})]}),(0,H.jsxs)(`div`,{className:`min-w-0`,children:[(0,H.jsx)(Ob,{className:`block truncate`,children:e.botName||e.botId}),(0,H.jsx)(eb,{className:`block truncate`,children:t?e.botId:`Bot ${e.botId}`})]})]})]}):(0,H.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,H.jsxs)(Rg,{size:`sm`,children:[(0,H.jsx)(Rg.Image,{alt:e.groupName||e.groupId,src:e.groupAvatar}),(0,H.jsx)(Rg.Fallback,{children:(e.groupName||e.groupId).slice(0,1)})]}),(0,H.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,H.jsx)(Ob,{className:`block truncate`,children:e.groupName||e.groupId}),(0,H.jsx)(eb,{className:`block truncate`,children:e.groupId})]}),(0,H.jsx)(lM,{className:`size-4 shrink-0 text-muted`}),(0,H.jsxs)(Rg,{size:`sm`,children:[(0,H.jsx)(Rg.Image,{alt:e.botName||e.botId,src:e.botAvatar}),(0,H.jsx)(Rg.Fallback,{children:(e.botName||e.botId).slice(0,1)})]}),(0,H.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,H.jsx)(Ob,{className:`block truncate`,children:e.botName||e.botId}),(0,H.jsx)(eb,{className:`block truncate`,children:t?e.botId:`Bot ${e.botId}`})]})]}),uz=e=>`${e.groupId}:${e.botId}`,dz=e=>{let[t,n,r]=e.split(`:`);return!t||!n||r!==void 0?null:{groupId:t,botId:n}},fz=e=>{let t=new Set,n=[];return e.forEach(e=>{let r=dz(e);if(!r)return;let i=uz(r);t.has(i)||(t.add(i),n.push(i))}),n},pz=({device:e,mappings:t,onEdit:n,onRemove:r})=>(0,H.jsxs)(`div`,{className:e===`mobile`?`flex min-h-0 min-w-0 flex-1 flex-col gap-4`:`flex min-w-0 flex-col gap-3`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(Ob,{children:`已配置目标`}),(0,H.jsxs)(eb,{children:[t.length,` 个推送目标`]})]}),t.length>0?(0,H.jsx)(`div`,{className:e===`mobile`?`flex min-h-0 flex-1 flex-col gap-3 overflow-y-auto pb-2`:`flex max-h-72 flex-col gap-2 overflow-y-auto`,children:t.map(t=>{let i=uz(t);return(0,H.jsxs)(`div`,{className:`flex min-w-0 items-start gap-2 rounded-lg border border-default-200 bg-default-50/50 p-2.5`,children:[(0,H.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,H.jsx)(lz,{compact:!0,mapping:t,stacked:e===`mobile`})}),(0,H.jsxs)(Xx,{delay:0,children:[(0,H.jsx)(Ug,{isIconOnly:!0,"aria-label":`编辑推送目标`,size:`sm`,variant:`tertiary`,onPress:()=>n(i),children:(0,H.jsx)(TM,{className:`size-4`})}),(0,H.jsxs)(Xx.Content,{showArrow:!0,placement:`top`,children:[(0,H.jsx)(Xx.Arrow,{}),`编辑`]})]}),(0,H.jsxs)(Xx,{delay:0,children:[(0,H.jsx)(Ug,{isIconOnly:!0,"aria-label":`删除推送目标`,size:`sm`,variant:`danger`,onPress:()=>r(i),children:(0,H.jsx)(FM,{className:`size-4`})}),(0,H.jsxs)(Xx.Content,{showArrow:!0,placement:`top`,children:[(0,H.jsx)(Xx.Arrow,{}),`删除`]})]})]},i)})}):(0,H.jsx)(`div`,{className:`rounded-lg border border-dashed border-default-300 px-4 py-5 text-sm text-muted`,children:`还没有推送目标,点击上方按钮添加。`})]}),mz=({label:e,description:t,placeholder:n,disabled:r=!1,items:i,selectedId:a,onSelect:o})=>(0,H.jsxs)(Zb,{fullWidth:!0,allowsEmptyCollection:!0,isDisabled:r,placeholder:n,value:a||null,variant:`secondary`,onChange:e=>o(String(e||``)),children:[(0,H.jsx)(Ob,{children:e}),(0,H.jsxs)(Zb.Trigger,{children:[(0,H.jsx)(Zb.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,H.jsxs)(`span`,{className:`flex min-w-0 items-center gap-3`,children:[(0,H.jsxs)(Rg,{size:`sm`,children:[(0,H.jsx)(Rg.Image,{alt:r.name,src:r.avatar}),(0,H.jsx)(Rg.Fallback,{children:r.name.slice(0,1)})]}),(0,H.jsxs)(`span`,{className:`min-w-0`,children:[(0,H.jsx)(`span`,{className:`block truncate`,children:r.name}),(0,H.jsx)(`span`,{className:`block truncate text-xs text-muted`,children:r.description})]})]}):e}}),(0,H.jsx)(Zb.Indicator,{})]}),(0,H.jsx)(eb,{children:t}),!r&&i.length===0?(0,H.jsx)(eb,{className:`text-warning`,children:`当前没有可选项`}):null,(0,H.jsx)(Zb.Popover,{className:`max-h-72`,children:(0,H.jsx)(Fb,{items:i,children:e=>(0,H.jsxs)(Fb.Item,{id:e.id,textValue:`${e.name} ${e.description}`,children:[(0,H.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[(0,H.jsxs)(Rg,{size:`sm`,children:[(0,H.jsx)(Rg.Image,{alt:e.name,src:e.avatar}),(0,H.jsx)(Rg.Fallback,{children:e.name.slice(0,1)})]}),(0,H.jsxs)(`div`,{className:`min-w-0`,children:[(0,H.jsx)(Ob,{className:`truncate`,children:e.name}),(0,H.jsx)(eb,{className:`truncate`,children:e.description})]})]}),(0,H.jsx)(Fb.ItemIndicator,{})]})})})]}),hz=({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&&oz().then(o).catch(e=>{y(e instanceof Error?e.message:`获取 Bot 列表失败`)}).finally(()=>m(!1))},[e]),(0,v.useEffect)(()=>{!e||!l||sz(l).then(e=>{c(e),f(t=>e.some(e=>e.id===t)?t:``)}).catch(e=>{y(e instanceof Error?e.message:`获取群列表失败`)}).finally(()=>g(!1))},[e,l]);let T=()=>{if(!w||!b||!x)return;let e={groupId:x.id,botId:b.id};x.name&&(e.groupName=x.name),x.avatar&&(e.groupAvatar=x.avatar),b.name&&(e.botName=b.name),b.avatar&&(e.botAvatar=b.avatar),b.isOnline!==void 0&&(e.isOnline=b.isOnline),i(e)},E=t===`desktop`?`right`:`bottom`,D=n?`编辑推送目标`:`添加推送目标`;return(0,H.jsx)(vb.Backdrop,{isOpen:e,onOpenChange:r,children:(0,H.jsx)(vb.Content,{placement:E,children:(0,H.jsxs)(vb.Dialog,{className:t===`desktop`?`h-full w-105 max-w-[90vw]`:`max-h-[78dvh]`,children:[(0,H.jsx)(vb.Handle,{}),(0,H.jsx)(vb.CloseTrigger,{}),(0,H.jsxs)(vb.Header,{children:[(0,H.jsx)(vb.Heading,{children:D}),(0,H.jsx)(eb,{children:`先选择 Bot,再选择该 Bot 加入的群。`})]}),(0,H.jsxs)(vb.Body,{className:`flex flex-col gap-4`,children:[(0,H.jsx)(mz,{description:`Karin 当前已注册且在线的 Bot。`,disabled:p,items:S,label:`机器人账号`,placeholder:`选择机器人账号`,selectedId:l,onSelect:e=>{y(``),c([]),g(!!e),u(e),f(``)}}),(0,H.jsx)(mz,{description:l?`当前 Bot 已加入的群。`:`请先选择机器人账号。`,disabled:!l||h,items:C,label:`推送群`,placeholder:`选择推送群`,selectedId:d,onSelect:f}),p||h?(0,H.jsxs)(`div`,{className:`flex items-center gap-2 text-sm text-muted`,children:[(0,H.jsx)(ax,{size:`sm`,"aria-label":`正在读取列表`}),(0,H.jsx)(`span`,{children:`正在读取列表`})]}):null,b&&x?(0,H.jsxs)(`div`,{className:`flex flex-col gap-2 rounded-lg border border-default-200 bg-default-50/60 p-3`,children:[(0,H.jsx)(Ob,{children:`将写入`}),(0,H.jsxs)(eb,{className:`mt-1`,children:[x.name,`(`,x.id,`) -> `,b.name,`(`,b.id,`)`]})]}):null,_?(0,H.jsx)(eb,{className:`text-danger`,children:_}):null]}),(0,H.jsxs)(vb.Footer,{children:[(0,H.jsx)(Ug,{size:t===`mobile`?`sm`:`md`,slot:`close`,variant:`secondary`,children:`取消`}),(0,H.jsx)(Ug,{size:t===`mobile`?`sm`:`md`,slot:`close`,isDisabled:!w,onPress:T,children:n?`保存`:`添加`})]})]})})})},gz=(e,t,n)=>{let r=fz(e);return{values:r,mappings:r.map(e=>{let r=dz(e),i=n[e]||t.find(t=>uz(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)}},_z=({isOpen:e,values:t,mappings:n,device:r,onOpenChange:i,onApply:a})=>{let[o,s]=(0,v.useState)(()=>fz(t)),[c,l]=(0,v.useState)({}),[u,d]=(0,v.useState)(null),[f,p]=(0,v.useState)(!1),m=(0,v.useMemo)(()=>gz(o,n,c),[o,c,n]),h=r===`desktop`?`right`:`bottom`,g=u?dz(u):null,_=e=>{d(e),p(!0)};return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(vb.Backdrop,{isOpen:e,onOpenChange:e=>{e||a(m.values),i(e)},variant:`blur`,children:(0,H.jsx)(vb.Content,{placement:h,children:(0,H.jsxs)(vb.Dialog,{className:r===`desktop`?`h-full w-130 max-w-[90vw]`:`max-h-[84dvh]`,children:[(0,H.jsx)(vb.Handle,{}),(0,H.jsx)(vb.CloseTrigger,{}),(0,H.jsxs)(vb.Header,{children:[(0,H.jsx)(vb.Heading,{children:`推送目标`}),(0,H.jsx)(eb,{children:`管理所有接收推送的群和 Bot 映射。`})]}),(0,H.jsxs)(vb.Body,{className:`flex min-h-0 flex-col gap-3`,children:[(0,H.jsxs)(Ug,{className:`self-start`,size:r===`mobile`?`sm`:`md`,onPress:()=>_(null),children:[(0,H.jsx)(DM,{className:`size-4`}),`添加推送目标`]}),(0,H.jsx)(pz,{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,H.jsxs)(vb.Footer,{children:[(0,H.jsx)(Ug,{size:r===`mobile`?`sm`:`md`,slot:`close`,variant:`secondary`,children:`取消`}),(0,H.jsx)(Ug,{size:r===`mobile`?`sm`:`md`,slot:`close`,onPress:()=>{a(m.values)},children:`完成`})]})]})})}),(0,H.jsx)(hz,{device:r,initialMapping:g,isOpen:f,onConfirm:e=>{let t=uz(e),n=[...o],r=u?n.indexOf(u):-1;r>=0?n[r]=t:n.unshift(t),s(fz(n)),l(n=>{let r={...n,[t]:e};return u&&u!==t&&delete r[u],r}),p(!1),d(null)},onOpenChange:p},u||`new`)]})},vz=(e,t)=>{let n=dz(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},yz=({value:e,disabled:t,itemLabel:n,device:r,onChange:i})=>{let a=(0,v.useMemo)(()=>fz(e),[e]),o=(0,v.useMemo)(()=>e.filter(e=>!dz(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=dz(e);return vz(e,t?s.find(e=>e.groupId===t.groupId&&e.botId===t.botId):void 0)}).filter(e=>!!e),[s,a]);(0,v.useEffect)(()=>{cz(a.map(dz).filter(e=>!!e)).then(c).catch(()=>c([])).finally(()=>u(!1))},[a]);let m=e=>i(fz(e)),h=`开启【${n}】的推送开关后才能编辑此字段`,g=a.length>0?`已配置 ${a.length} 个推送目标`:`还没有配置推送目标`;return(0,H.jsx)($R,{disabled:t,device:r,message:h,children:(0,H.jsxs)(`div`,{className:`space-y-3`,children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between gap-4 rounded-lg border border-default-200 bg-default-50/50 px-4 py-3`,children:[(0,H.jsxs)(`div`,{className:`flex flex-col min-w-0`,children:[(0,H.jsx)(Ob,{children:`推送目标`}),(0,H.jsx)(eb,{className:`mt-1`,children:g})]}),(0,H.jsxs)(Ug,{isDisabled:t,size:r===`mobile`?`sm`:`md`,variant:r===`mobile`?`primary`:`secondary`,onPress:()=>f(!0),children:[(0,H.jsx)(TM,{className:`size-4`}),(0,H.jsx)(`span`,{children:`管理`})]})]}),l?(0,H.jsxs)(`div`,{className:`flex items-center gap-2 text-sm text-muted`,children:[(0,H.jsx)(ax,{size:`sm`,"aria-label":`正在读取推送目标`}),(0,H.jsx)(`span`,{children:`正在读取推送目标`})]}):null,o.length>0?(0,H.jsxs)(`div`,{className:`rounded-lg border border-warning/30 bg-warning/10 p-3 text-sm`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-2 font-medium text-warning`,children:[(0,H.jsx)(LM,{className:`size-4`}),(0,H.jsxs)(`span`,{children:[`发现 `,o.length,` 条旧格式或错误格式`]})]}),(0,H.jsx)(eb,{className:`mt-1`,children:`建议删除后用可视化选择重新添加,避免后端解析异常。`})]}):null,(0,H.jsx)(_z,{device:r,isOpen:d,mappings:p,values:a,onApply:m,onOpenChange:f})]})})},bz=({disabled:e,itemLabel:t,device:n,value:r,onChange:i})=>(0,H.jsx)(yz,{disabled:e,device:n,itemLabel:t,value:r,onChange:i}),xz=({disabled:e,itemLabel:t,device:n,options:r,value:i,onChange:a})=>(0,H.jsx)($R,{disabled:e,device:n,message:`开启【${t}】的推送开关后才能编辑此字段`,children:(0,H.jsxs)(u_,{"aria-label":`推送类型`,isDisabled:e,value:i,onChange:e=>a(e),children:[(0,H.jsx)(Ob,{children:`推送类型`}),(0,H.jsx)(eb,{children:`选择要推送的内容类型`}),(0,H.jsx)(`div`,{className:`mt-2 ${ez(n)}`,children:r.map(e=>(0,H.jsxs)(g_,{value:e.value,variant:`secondary`,children:[(0,H.jsxs)(g_.Content,{children:[(0,H.jsx)(g_.Control,{children:(0,H.jsx)(g_.Indicator,{})}),e.label]}),(0,H.jsx)(eb,{children:e.description})]},e.value))})]})}),Sz=({disabled:e,itemLabel:t,device:n,value:r,onChange:i})=>(0,H.jsx)($R,{disabled:e,device:n,message:`开启【${t}】的推送开关后才能编辑此字段`,children:(0,H.jsxs)(Zb,{fullWidth:!0,isDisabled:e,value:r,onChange:e=>{e&&!Array.isArray(e)&&i(e)},children:[(0,H.jsx)(Ob,{children:`过滤模式`}),(0,H.jsxs)(Zb.Trigger,{children:[(0,H.jsx)(Zb.Value,{}),(0,H.jsx)(Zb.Indicator,{})]}),(0,H.jsx)(eb,{children:`设置关键词/标签的过滤方式`}),(0,H.jsx)(Zb.Popover,{children:(0,H.jsx)(Fb,{children:rz.map(e=>(0,H.jsxs)(Fb.Item,{id:e.value,textValue:e.label,children:[(0,H.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,H.jsx)(Ob,{children:e.label}),(0,H.jsx)(eb,{children:e.description})]}),(0,H.jsx)(Fb.ItemIndicator,{})]},e.value))})})]})}),Cz=({disabled:e,itemLabel:t,device:n,keywords:r,tags:i,onKeywordsChange:a,onTagsChange:o})=>{let s=`开启【${t}】的推送开关后才能编辑此字段`;return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)($R,{disabled:e,device:n,message:s,children:(0,H.jsx)(`div`,{children:(0,H.jsx)(iz,{label:`关键词`,description:`多个关键词用于内容过滤`,disabled:e,items:r,onAdd:e=>a([...r,e]),onRemove:e=>a(r.filter(t=>t!==e))})})}),(0,H.jsx)($R,{disabled:e,device:n,message:s,children:(0,H.jsx)(`div`,{children:(0,H.jsx)(iz,{label:`标签`,description:`多个标签用于内容过滤`,disabled:e,items:i,onAdd:e=>o([...i,e]),onRemove:e=>o(i.filter(t=>t!==e))})})})]})},wz=({onDelete:e})=>(0,H.jsxs)(Ug,{className:`w-full`,variant:`danger`,onPress:e,children:[(0,H.jsx)(FM,{className:`size-4`}),(0,H.jsx)(`span`,{children:`删除此推送项`})]}),Tz=({item:e,index:t,list:n,onChange:r,device:i})=>{let a=i=>{let a=[...n];a[t]={...e,...i},r(a)},o=!e.switch,s=e.remark||`UID: ${e.host_mid}`||`未命名`,c=`开启【${s}】的推送开关后才能编辑此字段`;return(0,H.jsxs)(Rc.Item,{id:`bilibili-${t}`,children:[(0,H.jsx)(Rc.Heading,{children:(0,H.jsxs)(Rc.Trigger,{children:[(0,H.jsxs)(`div`,{className:`flex flex-1 items-center gap-3`,children:[(0,H.jsx)(`div`,{onClick:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation(),children:(0,H.jsx)(px,{"aria-label":`推送开关`,isSelected:e.switch,onChange:e=>a({switch:e}),children:(0,H.jsx)(px.Content,{children:(0,H.jsx)(px.Control,{children:(0,H.jsx)(px.Thumb,{})})})})}),(0,H.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,H.jsx)(`span`,{className:`font-medium`,children:e.remark||`UID: ${e.host_mid}`||`推送项 ${t+1}`}),(0,H.jsxs)(eb,{className:`text-xs`,children:[`B站 UID: `,e.host_mid]})]})]}),(0,H.jsx)(Rc.Indicator,{children:(0,H.jsx)(dM,{className:`size-5`})})]})}),(0,H.jsx)(Rc.Panel,{children:(0,H.jsx)(Rc.Body,{children:(0,H.jsxs)(`div`,{className:`space-y-4`,children:[(0,H.jsxs)(`div`,{className:ez(i),children:[(0,H.jsx)($R,{disabled:o,device:i,message:c,children:(0,H.jsxs)(vx,{fullWidth:!0,isDisabled:o,isRequired:!0,type:`number`,value:String(e.host_mid),onChange:e=>a({host_mid:Number(e)||0}),children:[(0,H.jsx)(Ob,{children:`B站 UID`}),(0,H.jsx)(Eb,{placeholder:`UP主的 UID`}),(0,H.jsx)(eb,{children:`B站用户的唯一标识,必填`})]})}),(0,H.jsx)($R,{disabled:o,device:i,message:c,children:(0,H.jsxs)(vx,{fullWidth:!0,isDisabled:o,value:e.remark,onChange:e=>a({remark:e}),children:[(0,H.jsx)(Ob,{children:`备注名称`}),(0,H.jsx)(Eb,{placeholder:`可选,用于识别该推送项`}),(0,H.jsx)(eb,{children:`方便识别的名称,如:UP主昵称`})]})})]}),(0,H.jsx)(bz,{disabled:o,device:i,itemLabel:s,value:e.group_id,onChange:e=>a({group_id:e})}),(0,H.jsx)(xz,{disabled:o,device:i,itemLabel:s,options:nz,value:e.pushTypes||[],onChange:e=>a({pushTypes:e})}),(0,H.jsx)(Sz,{disabled:o,device:i,itemLabel:s,value:e.filterMode||`blacklist`,onChange:e=>a({filterMode:e})}),(0,H.jsx)(Cz,{disabled:o,device:i,itemLabel:s,keywords:e.Keywords||[],tags:e.Tags||[],onKeywordsChange:e=>a({Keywords:e}),onTagsChange:e=>a({Tags:e})}),(0,H.jsx)(wz,{onDelete:()=>r(n.filter((e,n)=>n!==t))})]})})})]},t)},Ez=({item:e,index:t,list:n,onChange:r,device:i})=>{let a=i=>{let a=[...n];a[t]={...e,...i},r(a)},o=!e.switch,s=e.remark||e.short_id||e.sec_uid||`未命名`,c=`开启【${s}】的推送开关后才能编辑此字段`;return(0,H.jsxs)(Rc.Item,{id:`douyin-${t}`,children:[(0,H.jsx)(Rc.Heading,{children:(0,H.jsxs)(Rc.Trigger,{children:[(0,H.jsxs)(`div`,{className:`flex flex-1 items-center gap-3`,children:[(0,H.jsx)(`div`,{onClick:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation(),children:(0,H.jsx)(px,{"aria-label":`推送开关`,isSelected:e.switch,onChange:e=>a({switch:e}),children:(0,H.jsx)(px.Content,{children:(0,H.jsx)(px.Control,{children:(0,H.jsx)(px.Thumb,{})})})})}),(0,H.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,H.jsx)(`span`,{className:`font-medium`,children:e.remark||e.short_id||e.sec_uid||`推送项 ${t+1}`}),(0,H.jsxs)(eb,{className:`text-xs`,children:[e.short_id&&`抖音号: ${e.short_id}`,e.sec_uid&&!e.short_id&&`sec_uid: ${e.sec_uid.slice(0,20)}...`]})]})]}),(0,H.jsx)(Rc.Indicator,{children:(0,H.jsx)(dM,{className:`size-5`})})]})}),(0,H.jsx)(Rc.Panel,{children:(0,H.jsx)(Rc.Body,{children:(0,H.jsxs)(`div`,{className:`space-y-4`,children:[(0,H.jsxs)(`div`,{className:ez(i),children:[(0,H.jsx)($R,{disabled:o,device:i,message:c,children:(0,H.jsxs)(vx,{fullWidth:!0,isDisabled:o,isRequired:!0,value:e.short_id,onChange:e=>a({short_id:e}),children:[(0,H.jsx)(Ob,{children:`抖音号`}),(0,H.jsx)(Eb,{placeholder:`用户的抖音号`,variant:`secondary`}),(0,H.jsx)(eb,{children:`用户的抖音号(short_id),必填`})]})}),(0,H.jsx)($R,{disabled:o,device:i,message:c,children:(0,H.jsxs)(vx,{fullWidth:!0,isDisabled:o,value:e.sec_uid,onChange:e=>a({sec_uid:e}),children:[(0,H.jsx)(Ob,{children:`sec_uid`}),(0,H.jsx)(Eb,{placeholder:`选填,会根据抖音号自动获取`,variant:`secondary`}),(0,H.jsx)(eb,{children:`用户的 sec_uid,可从分享链接获取。选填,推送时会自动获取`})]})})]}),(0,H.jsx)($R,{disabled:o,device:i,message:c,children:(0,H.jsxs)(vx,{fullWidth:!0,isDisabled:o,value:e.remark,onChange:e=>a({remark:e}),children:[(0,H.jsx)(Ob,{children:`备注名称`}),(0,H.jsx)(Eb,{placeholder:`可选,用于识别该推送项`,variant:`secondary`}),(0,H.jsx)(eb,{children:`方便识别的名称,如:博主昵称`})]})}),(0,H.jsx)(bz,{disabled:o,device:i,itemLabel:s,value:e.group_id,onChange:e=>a({group_id:e})}),(0,H.jsx)(xz,{disabled:o,device:i,itemLabel:s,options:tz,value:e.pushTypes||[],onChange:e=>a({pushTypes:e})}),(0,H.jsx)(Sz,{disabled:o,device:i,itemLabel:s,value:e.filterMode||`blacklist`,onChange:e=>a({filterMode:e})}),(0,H.jsx)(Cz,{disabled:o,device:i,itemLabel:s,keywords:e.Keywords||[],tags:e.Tags||[],onKeywordsChange:e=>a({Keywords:e}),onTagsChange:e=>a({Tags:e})}),(0,H.jsx)(wz,{onDelete:()=>r(n.filter((e,n)=>n!==t))})]})})})]},t)},Dz=()=>({switch:!0,sec_uid:``,short_id:``,group_id:[],remark:``,pushTypes:[`post`],filterMode:`blacklist`,Keywords:[],Tags:[]}),Oz=()=>({switch:!0,host_mid:0,group_id:[],remark:``,pushTypes:[`video`],filterMode:`blacklist`,Keywords:[],Tags:[]}),kz=({platform:e})=>(0,H.jsx)(`div`,{className:`rounded-lg border-2 border-dashed border-gray-300 p-8 text-center`,children:(0,H.jsxs)(`p`,{className:`text-muted`,children:[`暂无`,e===`douyin`?`抖音`:`B站`,`推送项,点击上方按钮添加`]})});function Az({douyinList:e,bilibiliList:t,onDouyinChange:n,onBilibiliChange:r,device:i}){let[a,o]=(0,v.useState)(`douyin`);return(0,H.jsx)(`div`,{className:`space-y-4`,children:(0,H.jsxs)(_x,{selectedKey:a,onSelectionChange:e=>o(e),children:[(0,H.jsx)(_x.ListContainer,{children:(0,H.jsxs)(_x.List,{children:[(0,H.jsxs)(_x.Tab,{id:`douyin`,children:[(0,H.jsx)(`span`,{children:`抖音推送`}),(0,H.jsx)(_x.Indicator,{})]}),(0,H.jsxs)(_x.Tab,{id:`bilibili`,children:[(0,H.jsx)(`span`,{children:`B站推送`}),(0,H.jsx)(_x.Indicator,{})]})]})}),(0,H.jsx)(_x.Panel,{id:`douyin`,children:(0,H.jsxs)(`div`,{className:`space-y-4 pt-4`,children:[(0,H.jsxs)(Ug,{className:`w-full`,variant:`primary`,size:`sm`,onPress:()=>n([...e,Dz()]),children:[(0,H.jsx)(DM,{className:`size-4`}),(0,H.jsx)(`span`,{children:`添加抖音推送项`})]}),e.length>0?(0,H.jsx)(Rc,{variant:`surface`,"aria-label":`抖音推送列表`,children:e.map((t,r)=>(0,H.jsx)(Ez,{device:i,index:r,item:t,list:e,onChange:n},r))}):(0,H.jsx)(kz,{platform:`douyin`})]})}),(0,H.jsx)(_x.Panel,{id:`bilibili`,children:(0,H.jsxs)(`div`,{className:`space-y-4 pt-4`,children:[(0,H.jsxs)(Ug,{className:`w-full`,variant:`primary`,onPress:()=>r([...t,Oz()]),children:[(0,H.jsx)(DM,{className:`size-4`}),(0,H.jsx)(`span`,{children:`添加B站推送项`})]}),t.length>0?(0,H.jsx)(Rc,{variant:`surface`,"aria-label":`B站推送列表`,children:t.map((e,n)=>(0,H.jsx)(Tz,{device:i,index:n,item:e,list:t,onChange:r},n))}):(0,H.jsx)(kz,{platform:`bilibili`})]})})]})})}var jz=({config:e,device:t,renderers:n,updateConfigValue:r})=>{let{renderPageHeader:i}=n;return(0,H.jsxs)(H.Fragment,{children:[i(`推送列表`,`管理「抖音」与「哔哩哔哩」的推送订阅。`),(0,H.jsx)(Az,{douyinList:e.pushlist?.douyin||[],bilibiliList:e.pushlist?.bilibili||[],onDouyinChange:e=>{r([`pushlist`,`douyin`],e)},onBilibiliChange:e=>{r([`pushlist`,`bilibili`],e)},device:t})]})},Mz=({config:e,renderers:t,classes:n})=>{let{renderCheckboxGroup:r,renderPageHeader:i,renderSelectField:a,renderSubSection:o,renderSwitch:s,renderTextField:c}=t,l=Q(e,[`xiaohongshu`,`switch`],!1),u=Q(e,[`xiaohongshu`,`sendContent`],[]),d=Q(e,[`xiaohongshu`,`videoQuality`],`adapt`);return(0,H.jsxs)(H.Fragment,{children:[i(`小红书`,`小红书解析基础设置。`),(0,H.jsxs)(`div`,{className:n.topLevelFields,"data-config-section":!0,children:[s([`xiaohongshu`,`switch`],`解析开关`,`小红书解析开关,此开关为单独开关。`),r([`xiaohongshu`,`sendContent`],`解析时发送的内容`,`若什么都不选,可能不会返回任何解析结果。`,AR,!l),c([`xiaohongshu`,`numcomment`],`评论解析数量`,`小红书评论解析数量。`,{type:`number`,fallback:5,min:1,disabled:!l||!gR(u,`comment`)})]}),o(`渲染与画质设置`,(0,H.jsxs)(H.Fragment,{children:[a([`xiaohongshu`,`videoQuality`],`画质偏好`,`解析视频的分辨率偏好。`,MR,e=>e,!l),c([`xiaohongshu`,`maxAutoVideoSize`],`视频体积上限(MB)`,`根据该值自动选择分辨率进行下载。仅在「画质偏好」 为 "自动选择" 时生效。`,{type:`number`,fallback:50,min:1,max:2e4,disabled:!l||d!==`adapt`})]}))]})},Nz=e=>{switch(e.activeFile){case`amagi`:return(0,H.jsx)(JR,{...e});case`app`:return(0,H.jsx)(YR,{...e});case`douyin`:return(0,H.jsx)(ZR,{...e});case`bilibili`:return(0,H.jsx)(XR,{...e});case`kuaishou`:return(0,H.jsx)(QR,{...e});case`xiaohongshu`:return(0,H.jsx)(Mz,{...e});case`pushlist`:return(0,H.jsx)(jz,{...e})}},Pz=(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} 必须是数字`},Fz=(e,t,n)=>{if(n.disabled)return;let r=Pz(Q(t,n.path,0),n);r&&(e[fR(n.path)]=r)},Iz=e=>typeof e==`string`&&/.+:.+/.test(e),Lz=(e,t,n)=>{if(!Array.isArray(n)){e[`pushlist.${t}`]=`${t} 推送列表必须是数组`;return}let r=n.findIndex(e=>{if(!pR(e))return!0;let n=e.group_id,r=t===`douyin`?e.short_id:e.host_mid;return r==null||String(r).trim()===``||!Array.isArray(n)||n.some(e=>!Iz(e))});r>=0&&(e[`pushlist.${t}`]=`${t} 推送列表第 ${r+1} 项缺少必填 UID/抖音号,或 group_id 未使用「群号:机器人账号」格式`)},Rz=e=>{if(!e)return{};let t={},n=Q(e,[`app`,`livePhotoMode`],`video_and_livephoto`),r=Q(e,[`amagi`,`APIServerMount`],!1),i=Q(e,[`app`,`videoSendMode`],`file`),a=Q(e,[`app`,`usegroupfile`],!1),o=Q(e,[`app`,`usefilelimit`],!1),s=Q(e,[`app`,`compress`],!1),c=Q(e,[`app`,`downloadThrottle`],!1),l=Q(e,[`app`,`downloadAutoReduce`],!1),u=Q(e,[`amagi`,`proxy`,`switch`],!1),d=Q(e,[`douyin`,`switch`],!1),f=Q(e,[`douyin`,`sendContent`],[]),p=Q(e,[`douyin`,`burnDanmaku`],!1),m=Q(e,[`douyin`,`videoQuality`],`adapt`),h=Q(e,[`douyin`,`push`,`switch`],!1),g=Q(e,[`douyin`,`push`,`pushVideoQuality`],`adapt`),_=Q(e,[`bilibili`,`switch`],!1),v=Q(e,[`bilibili`,`sendContent`],[]),y=Q(e,[`bilibili`,`burnDanmaku`],!1),b=Q(e,[`bilibili`,`videoQuality`],0),x=Q(e,[`bilibili`,`push`,`switch`],!1),S=Q(e,[`bilibili`,`push`,`parsedynamic`],!1),C=Q(e,[`bilibili`,`push`,`pushVideoQuality`],0),w=Q(e,[`kuaishou`,`switch`],!1),T=Q(e,[`kuaishou`,`comment`],!1),E=Q(e,[`xiaohongshu`,`switch`],!1),D=Q(e,[`xiaohongshu`,`sendContent`],[]),O=Q(e,[`xiaohongshu`,`videoQuality`],`adapt`);return[{path:[`app`,`renderScale`],label:`渲染精度`,min:50,max:200},{path:[`app`,`ambientCover`,`coverOpacity`],label:`封面氛围强度`,min:0,max:1},{path:[`app`,`ambientCover`,`overlayEdgeOpacity`],label:`氛围压色(顶部/底部)`,min:0,max:1},{path:[`app`,`ambientCover`,`overlayMiddleOpacity`],label:`氛围压色(中间带)`,min:0,max:1},{path:[`app`,`RenderWaitTime`],label:`渲染图片的等待时间`,min:0},{path:[`app`,`multiPageHeight`],label:`分页渲染时,每页的高度`,min:1e3,max:2e4,disabled:!Q(e,[`app`,`multiPageRender`],!0),error:`请输入一个范围在 1000 到 20000 之间的数字`},{path:[`amagi`,`APIServerPort`],label:`API服务端口`,min:1024,max:65535,disabled:r,error:`请输入一个范围在 1024 到 65535 之间的数字`},{path:[`app`,`groupfilevalue`],label:`群文件上传阈值`,min:1,disabled:!a||i===`base64`},{path:[`app`,`filelimit`],label:`视频拦截阈值`,min:1,disabled:!o},{path:[`app`,`compresstrigger`],label:`压缩触发阈值`,min:1,disabled:!s},{path:[`app`,`compressvalue`],label:`压缩后的值`,min:1,disabled:!s},{path:[`app`,`downloadMaxSpeed`],label:`最大下载速度`,min:1,max:1e3,disabled:!c,error:`请输入一个范围在 1 到 1000 之间的数字`},{path:[`app`,`downloadMinSpeed`],label:`最低下载速度`,min:.1,max:100,disabled:!c||!l,error:`请输入一个范围在 0.1 到 100 之间的数字`},{path:[`amagi`,`timeout`],label:`请求超时时间`,min:1e3,max:3e5,error:`请输入一个范围在 1000 到 300000 之间的数字`},{path:[`amagi`,`proxy`,`port`],label:`代理端口`,min:1,max:65535,disabled:!u,error:`请输入一个范围在 1 到 65535 之间的数字`},{path:[`douyin`,`numcomment`],label:`评论解析数量`,min:1,disabled:!d||!gR(f,`comment`)},{path:[`douyin`,`subCommentLimit`],label:`次级评论解析数量`,min:1,max:20,disabled:!d||!gR(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:!_||!gR(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||!gR(D,`comment`)},{path:[`xiaohongshu`,`maxAutoVideoSize`],label:`视频体积上限(MB)`,min:1,max:2e4,disabled:!E||O!==`adapt`}].forEach(n=>Fz(t,e,n)),n===`video_only`&&delete t[`app.livePhotoSystem`],Lz(t,`douyin`,e.pushlist?.douyin||[]),Lz(t,`bilibili`,e.pushlist?.bilibili||[]),t},zz=({device:e=`desktop`})=>{let t=(0,v.useRef)(null),[n,r]=yE(),i=Zx(),a=n.get(`file`),[o,s]=dC({config:null,savedConfig:null,activeFile:a&&VR.some(e=>e.key===a)?a:`amagi`}),{activeFile:c,config:l,savedConfig:u}=o,d=(0,v.useMemo)(()=>qR(e),[e]),f=e===`mobile`?`sm`:`md`,{loading:p,run:m}=cC(rL,{onSuccess:e=>{s({config:structuredClone(e),savedConfig:structuredClone(e)})},onError:e=>{Ax.danger(`加载配置失败`,{description:e.message})}}),{loading:h,runAsync:g}=cC(iL,{manual:!0}),_=(0,v.useMemo)(()=>!l||!u?!1:!(0,zE.default)(vR(l),vR(u)),[l,u]),y=(0,v.useMemo)(()=>Rz(l),[l]),b=(0,v.useMemo)(()=>Object.values(y).some(Boolean),[y]),x=(0,v.useMemo)(()=>_&&!b&&!p,[_,b,p]),S=iS((e,t)=>{s(n=>n.config?{config:mR(n.config,e,t)}:null)}),C=iS(()=>{if(!l||b)return;let e=l,t=g(e).then(()=>{s({savedConfig:e})});Ax.promise(t,{loading:`正在保存配置...`,success:`配置已保存`,error:e=>e instanceof Error?e.message:`保存配置失败`})}),w=iS(()=>{m()}),T=iS(e=>{r({file:e})}),E=iS(e=>{e.preventDefault(),C()});(0,v.useEffect)(()=>{let e=n.get(`file`);e&&VR.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=iS(()=>{t.current&&qj.fromTo(t.current.querySelectorAll(`[data-config-section]`),lL,{...uL,duration:oL(.35),stagger:sL(.03)})});(0,v.useEffect)(()=>{!l||t.current?.dataset.animated===`true`||(t.current&&(t.current.dataset.animated=`true`),D())},[l,D]),aS(()=>{D()},[c]);let O=(0,v.useMemo)(()=>l?WR({config:l,device:e,classes:d,validationErrors:y,updateConfigValue:S}):{},[l,e,d,y,S]);if(p||!l)return(0,H.jsxs)(`div`,{className:`${d.root} ${d.loading}`,children:[(0,H.jsx)(ax,{size:`sm`,"aria-label":`正在读取配置`}),(0,H.jsx)(`span`,{children:`正在读取配置`})]});let k=(0,H.jsx)(`div`,{className:d.floatingActions,children:(0,H.jsxs)(`div`,{className:d.actionControls,children:[(0,H.jsxs)(Xx,{delay:0,children:[(0,H.jsx)(Xx.Trigger,{"aria-label":`重新读取配置`,children:(0,H.jsx)(Ug,{isIconOnly:!0,size:f,variant:`secondary`,isDisabled:p||h,onPress:w,children:(0,H.jsx)(kM,{size:16,"aria-hidden":`true`})})}),(0,H.jsxs)(Xx.Content,{showArrow:!0,placement:`bottom`,children:[(0,H.jsx)(Xx.Arrow,{}),`重新读取`]})]}),(0,H.jsxs)(Xx,{delay:0,children:[(0,H.jsx)(Xx.Trigger,{"aria-label":`查看配置变更`,children:(0,H.jsx)(Ug,{isIconOnly:!0,size:f,variant:`secondary`,isDisabled:!_,onPress:i.open,children:(0,H.jsx)(_M,{size:16,"aria-hidden":`true`})})}),(0,H.jsxs)(Xx.Content,{showArrow:!0,placement:`bottom`,children:[(0,H.jsx)(Xx.Arrow,{}),`查看变更`]})]}),(0,H.jsxs)(Ug,{size:f,isDisabled:!x,isPending:h,onPress:C,variant:`primary`,children:[(0,H.jsx)(jM,{size:16,"aria-hidden":`true`}),(0,H.jsx)(`span`,{children:`保存`})]})]})});return(0,H.jsxs)(`div`,{ref:t,className:d.root,children:[(0,H.jsx)(wR,{device:e,original:u,current:l,isOpen:i.isOpen,onOpenChange:i.setOpen}),(0,H.jsxs)(Sb,{className:d.form,onSubmit:E,children:[(0,H.jsx)(_x,{className:`w-full min-w-0 max-w-full`,selectedKey:c,onSelectionChange:T,children:(0,H.jsx)(_x.ListContainer,{className:d.tabsListContainer,"data-config-tabs-scroll":`true`,"data-scrollbar":`none`,children:(0,H.jsx)(_x.List,{"aria-label":`配置文件选择`,className:d.tabsList,children:VR.map((e,t)=>(0,H.jsxs)(_x.Tab,{id:e.key,children:[t>0?(0,H.jsx)(_x.Separator,{}):null,(0,H.jsx)(`span`,{className:`whitespace-nowrap`,children:e.label}),(0,H.jsx)(_x.Indicator,{})]},e.key))})})}),(0,H.jsxs)(`div`,{className:`relative min-w-0 max-w-full`,children:[k,(0,H.jsx)(Nz,{activeFile:c,classes:d,config:l,device:e,renderers:O,updateConfigValue:S},c)]})]})]})},Bz=({onLogin:e})=>{let[t,n]=dC({authKey:``,loading:!1,error:``}),[r,{toggle:i}]=uC(!1),a=r?`隐藏密钥`:`显示密钥`,o=iS(async r=>{r.preventDefault();let i=t.authKey.trim();if(!i){n({error:`请输入 Karin HTTP 鉴权密钥`});return}try{n({loading:!0,error:``}),await eL(i),e()}catch(e){n({error:e instanceof Error?e.message:`登录失败`})}finally{n({loading:!1})}});return(0,H.jsx)(ox,{className:`flex min-h-screen items-center justify-center px-4 py-8`,children:(0,H.jsxs)(Kg,{className:`w-full max-w-105`,children:[(0,H.jsxs)(Kg.Header,{className:`gap-4 p-6`,children:[(0,H.jsx)(xM,{className:`size-8 shrink-0`,"aria-hidden":`true`}),(0,H.jsxs)(`div`,{className:`min-w-0`,children:[(0,H.jsx)(Kg.Title,{children:`Karin 鉴权`}),(0,H.jsx)(Kg.Description,{children:`使用 Karin HTTP 鉴权密钥登录后管理 KKK 配置。`})]})]}),(0,H.jsx)(Kg.Content,{className:`p-6`,children:(0,H.jsxs)(Sb,{className:`flex flex-col gap-6`,onSubmit:o,children:[(0,H.jsxs)(vx,{fullWidth:!0,isInvalid:!!t.error,value:t.authKey,onChange:e=>{n({authKey:e,error:t.error?``:t.error})},children:[(0,H.jsx)(Ob,{children:`HTTP 鉴权密钥`}),(0,H.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,H.jsx)(Eb,{autoComplete:`current-password`,className:`min-w-0 flex-1`,placeholder:`请输入 Karin 的 HTTP_AUTH_KEY`,type:r?`text`:`password`}),(0,H.jsx)(Ug,{isIconOnly:!0,"aria-label":a,type:`button`,variant:`tertiary`,onPress:i,children:r?(0,H.jsx)(pM,{className:`size-4`,"aria-hidden":`true`}):(0,H.jsx)(hM,{className:`size-4`,"aria-hidden":`true`})})]}),(0,H.jsx)(eb,{children:t.error||`生产环境会复用 Karin 主 Web 已保存的登录凭据。`})]}),(0,H.jsx)(Ug,{fullWidth:!0,isPending:t.loading,type:`submit`,children:({isPending:e})=>(0,H.jsxs)(H.Fragment,{children:[e?(0,H.jsx)(ax,{color:`current`,size:`sm`,"aria-label":`登录中`}):(0,H.jsx)(CM,{className:`size-4`,"aria-hidden":`true`}),(0,H.jsx)(`span`,{children:`登录`})]})})]})})]})})},Vz=`theme`,Hz=`kkk-theme-changed`,Uz=`karin-theme-change`,Wz={light:`light`,dark:`dark`,system:`system`,inverse:`inverse`},Gz=e=>e===Wz.system||e===Wz.inverse,Kz=e=>e===Wz.light||e===Wz.dark,qz=e=>!e||typeof e!=`object`?!1:e.type===Uz,Jz=()=>{let e=localStorage.getItem(Vz);if(Gz(e))return e;try{let t=JSON.parse(e??``);if(Gz(t))return t}catch{}return localStorage.setItem(Vz,Wz.system),Wz.system},Yz=()=>window.matchMedia(`(prefers-color-scheme: dark)`).matches?Wz.dark:Wz.light,Xz=()=>window.matchMedia(`(prefers-color-scheme: dark)`).matches?Wz.light:Wz.dark,Zz=e=>e===Wz.system?Yz():Xz(),Qz=e=>$z(Zz(e)),$z=e=>(document.documentElement.classList.remove(Wz.light,Wz.dark),document.documentElement.classList.add(e),document.documentElement.dataset.theme=e,e),eB=()=>{let[e,t]=(0,v.useState)(()=>Jz()),[n,r]=(0,v.useState)(()=>Zz(e)),i=(0,v.useRef)(!1),a=(0,v.useCallback)(e=>{localStorage.setItem(Vz,e),t(e),r(Qz(e)),window.dispatchEvent(new CustomEvent(Hz,{detail:e}))},[]),o=(0,v.useCallback)(()=>{a(Wz.system)},[a]),s=(0,v.useCallback)(()=>{a(Wz.inverse)},[a]),c=(0,v.useCallback)(()=>{a(e===Wz.system?Wz.inverse:Wz.system)},[a,e]);return(0,v.useEffect)(()=>{i.current?i.current=!1:r(Qz(e));let n=window.matchMedia(`(prefers-color-scheme: dark)`),a=()=>{r(Qz(e))},o=e=>{if(e.key!==Vz||window.self!==window.top)return;let n=Jz();t(n),r(Qz(n))},s=e=>{let n=e.detail;Gz(n)&&(t(n),r(Qz(n)))},c=e=>{if(!qz(e.data))return;let n=e.data.theme,a=Gz(n??null)?n:Jz(),o=Kz(e.data.appliedTheme)?e.data.appliedTheme:Zz(a);i.current=!0,localStorage.setItem(Vz,a),t(a),r($z(o))};return n.addEventListener(`change`,a),window.addEventListener(`storage`,o),window.addEventListener(Hz,s),window.addEventListener(`message`,c),()=>{n.removeEventListener(`change`,a),window.removeEventListener(`storage`,o),window.removeEventListener(Hz,s),window.removeEventListener(`message`,c)}},[e]),{theme:e,appliedTheme:n,isDark:(0,v.useMemo)(()=>n===Wz.dark,[n]),isLight:(0,v.useMemo)(()=>n===Wz.light,[n]),isSystem:e===Wz.system,isInverse:e===Wz.inverse,setSystemTheme:o,setInverseTheme:s,toggleTheme:c}},tB=()=>document.documentElement.clientWidth||window.innerWidth,nB=(e=tB())=>e<=768?`mobile`:`desktop`,rB=()=>{let e=navigator.userAgent.toLowerCase();return[`android`,`webos`,`iphone`,`ipad`,`ipod`,`blackberry`,`windows phone`,`mobile`].some(t=>e.includes(t))},iB=()=>{let e=nB();return rB()||e===`mobile`?`mobile`:`desktop`},aB=()=>hC(()=>import(`./DesktopLayout-HHnL4XE7.js`),__vite__mapDeps([2,1,3])),oB=()=>hC(()=>import(`./MobileLayout-Cy82W7Kf.js`),__vite__mapDeps([4,3])),sB={config:`/kkk/assets/config`,about:`/kkk/assets/about`},cB={"/kkk/assets/config":`config`,"/kkk/assets/about":`about`},lB=({device:e})=>(0,H.jsxs)(ox,{className:`h-screen overflow-hidden bg-background`,children:[(0,H.jsx)(Gx.Provider,{placement:`top`}),(0,H.jsx)(Gb,{hideScrollBar:!0,className:`h-full px-3 py-3 sm:px-5 sm:py-4 ${e===`mobile`?`data-[top-scroll=true]:mask-none data-[top-scroll=true]:[-webkit-mask-image:none] data-[top-bottom-scroll=true]:mask-[linear-gradient(180deg,black_calc(100%-var(--scroll-shadow-size)),transparent)] data-[top-bottom-scroll=true]:[-webkit-mask-image:linear-gradient(180deg,black_calc(100%-var(--scroll-shadow-size)),transparent)]`:``}`,size:56,children:(0,H.jsx)(zz,{device:e})})]}),uB=({LayoutComponent:e})=>{let t=Uw(),n=Kw(),r=cB[t.pathname]||`config`,i=iS(e=>{n(sB[e])});return e?(0,H.jsxs)(`div`,{children:[(0,H.jsx)(Gx.Provider,{placement:`top`}),(0,H.jsx)(e,{activeMenu:r,onMenuChange:i})]}):(0,H.jsxs)(ox,{className:`flex min-h-screen items-center justify-center gap-4`,children:[(0,H.jsx)(ax,{size:`sm`,"aria-label":`正在加载布局`}),(0,H.jsx)(eb,{children:`正在加载`})]})},dB=()=>{eB();let[e,t]=dC({authenticated:FE(),device:iB(),LayoutComponent:null}),{authenticated:n,device:r,LayoutComponent:i}=e;(0,v.useEffect)(()=>{let e=()=>{t({authenticated:FE()})};return window.addEventListener(jE,e),window.addEventListener(`storage`,e),()=>{window.removeEventListener(jE,e),window.removeEventListener(`storage`,e)}},[t]);let a=iS(()=>{let e=iB();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 oB();e||t({LayoutComponent:n.default})}else{let n=await aB();e||t({LayoutComponent:n.default})}})(),()=>{e=!0}},[n,r,t]);let o=iS(()=>{t({authenticated:!0})});return n?(0,H.jsxs)(bT,{children:[(0,H.jsx)(vT,{path:`/kkk/assets/karin-config`,element:(0,H.jsx)(lB,{device:r})}),(0,H.jsx)(vT,{path:`/kkk/assets/config`,element:(0,H.jsx)(uB,{LayoutComponent:i})}),(0,H.jsx)(vT,{path:`/kkk/assets/about`,element:(0,H.jsx)(uB,{LayoutComponent:i})}),(0,H.jsx)(vT,{path:`/kkk/assets`,element:(0,H.jsx)(_T,{to:`/kkk/assets/config`,replace:!0})}),(0,H.jsx)(vT,{path:`/kkk`,element:(0,H.jsx)(_T,{to:`/kkk/assets/config`,replace:!0})}),(0,H.jsx)(vT,{path:`/kkk/login`,element:(0,H.jsx)(_T,{to:`/kkk/assets/config`,replace:!0})}),(0,H.jsx)(vT,{path:`*`,element:(0,H.jsx)(_T,{to:`/kkk/assets/config`,replace:!0})})]}):(0,H.jsxs)(bT,{children:[(0,H.jsx)(vT,{path:`/kkk/login`,element:(0,H.jsx)(Bz,{onLogin:o})}),(0,H.jsx)(vT,{path:`*`,element:(0,H.jsx)(_T,{to:`/kkk/login`,replace:!0})})]})};(0,y.createRoot)(document.getElementById(`root`)).render((0,H.jsx)(v.StrictMode,{children:(0,H.jsx)(()=>(0,H.jsx)(lE,{children:(0,H.jsx)(dB,{})}),{})}));export{Vs as $,_m as A,ze as At,id as B,l as Bt,Kg as C,Et as Ct,Nh as D,V as Dt,Ih as E,at as Et,vf as F,E as Ft,Y as G,Wl as H,_f as I,M as It,ic as J,J as K,mf as L,O as Lt,cm as M,ke as Mt,sm as N,we as Nt,wm as O,B as Ot,yf as P,L as Pt,Xs as Q,ff as R,h as Rt,Xg as S,Mt as St,Rg as T,st as Tt,Mc as U,td as V,Nc as W,rc as X,ac as Y,Zs as Z,vb as _,ya as _t,RE as a,Ao as at,S_ as b,Qt as bt,Xx as c,co as ct,ox as d,G as dt,ks as et,Zb as f,eo as ft,Eb as g,_a as gt,Ob as h,Qa as ht,qj as i,Fo as it,lm as j,z as jt,gm as k,We as kt,vx as l,Xa as lt,Fb as m,to as mt,zz as n,ds as nt,uC as o,Do as ot,Vb as p,K as pt,uc as q,sM as r,Po as rt,iS as s,So as st,eB as t,Ts as tt,_x as u,$a as ut,eb as v,on as vt,Ug as w,lt as wt,w_ as x,en as xt,T_ as y,nn as yt,uf as z,d as zt};
|