@wellesley/error-kit 1.0.701 → 1.0.703
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/index.mjs +14 -14
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var fL=Object.defineProperty,pL=(e,t,n)=>t in e?fL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,
|
|
1
|
+
var fL=Object.defineProperty,pL=(e,t,n)=>t in e?fL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,O1=(e,t,n)=>pL(e,"symbol"!=typeof t?t+"":t,n);function hL(e,t){for(var n=0;n<t.length;n++){const r=t[n];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var ka=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function py(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var u$,l$,c$,d$,A1={exports:{}},Vm={},k1={exports:{}},Tt={};
|
|
2
2
|
/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react.production.min.js
|
|
@@ -7,7 +7,7 @@ var fL=Object.defineProperty,pL=(e,t,n)=>t in e?fL(e,t,{enumerable:!0,configurab
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/function mL(){if(u$)return Tt;u$=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,m={};function h(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}function v(){}function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}h.prototype.isReactComponent={},h.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): 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")},h.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=h.prototype;var y=g.prototype=new v;y.constructor=g,p(y,h.prototype),y.isPureReactComponent=!0;var b=Array.isArray,w=Object.prototype.hasOwnProperty,x={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function E(t,n,r){var o,i={},a=null,u=null;if(null!=n)for(o in void 0!==n.ref&&(u=n.ref),void 0!==n.key&&(a=""+n.key),n)w.call(n,o)&&!_.hasOwnProperty(o)&&(i[o]=n[o]);var s=arguments.length-2;if(1===s)i.children=r;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];i.children=l}if(t&&t.defaultProps)for(o in s=t.defaultProps)void 0===i[o]&&(i[o]=s[o]);return{$$typeof:e,type:t,key:a,ref:u,props:i,_owner:x.current}}function S(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var
|
|
10
|
+
*/function mL(){if(u$)return Tt;u$=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,m={};function h(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}function v(){}function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}h.prototype.isReactComponent={},h.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): 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")},h.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=h.prototype;var y=g.prototype=new v;y.constructor=g,p(y,h.prototype),y.isPureReactComponent=!0;var b=Array.isArray,w=Object.prototype.hasOwnProperty,x={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function E(t,n,r){var o,i={},a=null,u=null;if(null!=n)for(o in void 0!==n.ref&&(u=n.ref),void 0!==n.key&&(a=""+n.key),n)w.call(n,o)&&!_.hasOwnProperty(o)&&(i[o]=n[o]);var s=arguments.length-2;if(1===s)i.children=r;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];i.children=l}if(t&&t.defaultProps)for(o in s=t.defaultProps)void 0===i[o]&&(i[o]=s[o]);return{$$typeof:e,type:t,key:a,ref:u,props:i,_owner:x.current}}function S(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var k=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(n,r,o,i,a){var u=typeof n;("undefined"===u||"boolean"===u)&&(n=null);var s=!1;if(null===n)s=!0;else switch(u){case"string":case"number":s=!0;break;case"object":switch(n.$$typeof){case e:case t:s=!0}}if(s)return a=a(s=n),n=""===i?"."+A(s,0):i,b(a)?(o="",null!=n&&(o=n.replace(k,"$&/")+"/"),C(a,r,o,"",(function(e){return e}))):null!=a&&(S(a)&&(a=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(a,o+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(k,"$&/")+"/")+n)),r.push(a)),1;if(s=0,i=""===i?".":i+":",b(n))for(var l=0;l<n.length;l++){var c=i+A(u=n[l],l);s+=C(u,r,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),l=0;!(u=n.next()).done;)s+=C(u=u.value,r,o,c=i+A(u,l++),a);else if("object"===u)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return s}function I(e,t,n){if(null==e)return e;var r=[],o=0;return C(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function R(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){(0===e._status||-1===e._status)&&(e._status=1,e._result=t)}),(function(t){(0===e._status||-1===e._status)&&(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},T={transition:null},O={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:T,ReactCurrentOwner:x};return Tt.Children={map:I,forEach:function(e,t,n){I(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return I(e,(function(){t++})),t},toArray:function(e){return I(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Tt.Component=h,Tt.Fragment=n,Tt.Profiler=o,Tt.PureComponent=g,Tt.StrictMode=r,Tt.Suspense=s,Tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,Tt.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=p({},t.props),i=t.key,a=t.ref,u=t._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,u=x.current),void 0!==n.key&&(i=""+n.key),t.type&&t.type.defaultProps)var s=t.type.defaultProps;for(l in n)w.call(n,l)&&!_.hasOwnProperty(l)&&(o[l]=void 0===n[l]&&void 0!==s?s[l]:n[l])}var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];o.children=s}return{$$typeof:e,type:t.type,key:i,ref:a,props:o,_owner:u}},Tt.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},Tt.createElement=E,Tt.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},Tt.createRef=function(){return{current:null}},Tt.forwardRef=function(e){return{$$typeof:u,render:e}},Tt.isValidElement=S,Tt.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:R}},Tt.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},Tt.startTransition=function(e){var t=T.transition;T.transition={};try{e()}finally{T.transition=t}},Tt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},Tt.useCallback=function(e,t){return P.current.useCallback(e,t)},Tt.useContext=function(e){return P.current.useContext(e)},Tt.useDebugValue=function(){},Tt.useDeferredValue=function(e){return P.current.useDeferredValue(e)},Tt.useEffect=function(e,t){return P.current.useEffect(e,t)},Tt.useId=function(){return P.current.useId()},Tt.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},Tt.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},Tt.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},Tt.useMemo=function(e,t){return P.current.useMemo(e,t)},Tt.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},Tt.useRef=function(e){return P.current.useRef(e)},Tt.useState=function(e){return P.current.useState(e)},Tt.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},Tt.useTransition=function(){return P.current.useTransition()},Tt.version="18.2.0",Tt}function hy(){return l$||(l$=1,k1.exports=mL()),k1.exports
|
|
11
11
|
/**
|
|
12
12
|
* @license React
|
|
13
13
|
* react-jsx-runtime.production.min.js
|
|
@@ -16,7 +16,7 @@ var fL=Object.defineProperty,pL=(e,t,n)=>t in e?fL(e,t,{enumerable:!0,configurab
|
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the MIT license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/}function vL(){if(c$)return Vm;c$=1;var e=hy(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var u,s={},l=null,c=null;for(u in void 0!==a&&(l=""+a),void 0!==n.key&&(l=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,u)&&!i.hasOwnProperty(u)&&(s[u]=n[u]);if(e&&e.defaultProps)for(u in n=e.defaultProps)void 0===s[u]&&(s[u]=n[u]);return{$$typeof:t,type:e,key:l,ref:c,props:s,_owner:o.current}}return Vm.Fragment=n,Vm.jsx=a,Vm.jsxs=a,Vm}function gL(){return d$||(d$=1,k1.exports=vL()),k1.exports}var G=gL(),m=hy();const We=py(m),Qg=hL({__proto__:null,default:We},[m]),nv="8.48.0",Sl=globalThis;function fE(e,t,n){const r=Sl,o=r.__SENTRY__=r.__SENTRY__||{},i=o[nv]=o[nv]||{};return i[e]||(i[e]=t())}const UA=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,yL="Sentry Logger ",f$=["debug","info","warn","error","log","assert","trace"],p$={};function wL(e){if(!("console"in Sl))return e();const t=Sl.console,n={},r=Object.keys(p$);r.forEach((e=>{const r=p$[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}function _L(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return UA?f$.forEach((n=>{t[n]=(...t)=>{e&&wL((()=>{Sl.console[n](`${yL}[${n}]:`,...t)}))}})):f$.forEach((e=>{t[e]=()=>{}})),t}const Wg=fE("logger",_L);function pE(){return hE(Sl),Sl}function hE(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||nv,t[nv]=t[nv]||{}}const bL=Object.prototype.toString;function xL(e,t){return bL.call(e)===`[object ${t}]`}function SL(e){return xL(e,"Object")}function EL(e){return!(!e||!e.then||"function"!=typeof e.then)}function CL(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{UA&&Wg.log(`Failed to add non-enumerable property "${t}" to object`,e)}}const zA=1e3;function WA(){return Date.now()/zA}function $L(){const{performance:e}=Sl;if(!e||!e.now)return WA;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/zA}const IL=$L();function Ph(){const e=Sl,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch{}return"10000000100040008000100000000000".replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function RL(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||IL(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:Ph()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function h$(){return Ph()}function m$(){return Ph().substring(16)}function qA(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&t&&0===Object.keys(t).length)return e;const r={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=qA(r[e],t[e],n-1));return r}(()=>{const{performance:e}=Sl;if(!e||!e.now)return;const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,a=e.timing&&e.timing.navigationStart,u="number"==typeof a?Math.abs(a+n-r):t;(i||u<t)&&(o<=u&&e.timeOrigin)})();const bS="_sentrySpan";function v$(e,t){t?CL(e,bS,t):delete e[bS]}function g$(e){return e[bS]}const PL=100;class mE{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:h$(),spanId:m$()}}clone(){const e=new mE;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,v$(e,g$(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&RL(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[n,r]=t instanceof dv?[t.getScopeData(),t.getRequestSession()]:SL(t)?[e,e.requestSession]:[],{tags:o,extra:i,user:a,contexts:u,level:s,fingerprint:l=[],propagationContext:c}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...u},a&&Object.keys(a).length&&(this._user=a),s&&(this._level=s),l.length&&(this._fingerprint=l),c&&(this._propagationContext=c),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,v$(this,void 0),this._attachments=[],this.setPropagationContext({traceId:h$()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:PL;if(n<=0)return this;const r={timestamp:WA(),...e},o=this._breadcrumbs;return o.push(r),this._breadcrumbs=o.length>n?o.slice(-n):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:g$(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=qA(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:m$(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:Ph();if(!this._client)return Wg.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:Ph();if(!this._client)return Wg.warn("No client configured on scope - will not capture message!"),r;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:Ph();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(Wg.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}const dv=mE;function TL(){return fE("defaultCurrentScope",(()=>new dv))}function OL(){return fE("defaultIsolationScope",(()=>new dv))}class AL{constructor(e,t){let n,r;n=e||new dv,r=t||new dv,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return EL(n)?n.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function kh(){const e=hE(pE());return e.stack=e.stack||new AL(TL(),OL())}function kL(e){return kh().withScope(e)}function DL(e,t){const n=kh();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function y$(e){return kh().withScope((()=>e(kh().getIsolationScope())))}function NL(){return{withIsolationScope:y$,withScope:kL,withSetScope:DL,withSetIsolationScope:(e,t)=>y$(t),getCurrentScope:()=>kh().getScope(),getIsolationScope:()=>kh().getIsolationScope()}}function GA(e){const t=hE(e);return t.acs?t.acs:NL()}function HA(){return GA(pE()).getCurrentScope()}function ML(){return GA(pE()).getIsolationScope()}function LL(e,t){return HA().captureException(e,void 0)}function FL(e,t){const n={captureContext:t};return HA().captureMessage(e,void 0,n)}function BL(e,t){ML().setExtra(e,t)}const jL=(...e)=>{let t="";for(const n of e){if(n instanceof Error){const e=n;return BL("exceptionMessage",t),void LL(e)}if("object"!=typeof n)t+=n;else try{t+=" "+JSON.stringify(n)}catch{t+=" "+n}}FL(t)},my=()=>"object"!=typeof window,VL="wlsy",KA=()=>{try{return window.localStorage}catch(e){console.warn("Error getting window.localStorage storage",e)}},UL=()=>{const e=new Set,t=KA();if(!t)return[];for(let n=0;n<(null==t?void 0:t.length);n+=1){const r=null==t?void 0:t.key(n);"string"==typeof r&&e.add(r)}return Array.from(e)},vE=e=>{const t=`${VL}${e?`:${e}`:""}`,n=e=>`${t}:${e}`,r=()=>UL().filter((e=>e.startsWith(`${t}:`))),o=e=>e.slice(t.length+1),i=KA(),a=e=>{try{return null==i?void 0:i.getItem(n(e))}catch{return null}},u=(e,t)=>{try{null==i||i.setItem(n(e),String(t))}catch{return}};return{getItem:a,setItem:u,removeItem:e=>{try{null==i||i.removeItem(n(e))}catch{return}},clear:()=>{try{r().forEach((e=>null==i?void 0:i.removeItem(e)))}catch{return}},keys:()=>r().map(o),has:e=>null!==a(e),getJSON:e=>{const t=a(e);if(null==t)return null;try{return JSON.parse(t)}catch{return null}},setJSON:(e,t)=>{try{u(e,JSON.stringify(t))}catch{return}}}},w$=["debug","info","warn","error"],zL=(e,t)=>{const n=w$.indexOf(e);return w$.indexOf(t)>=n},wg=(e,t,n,...r)=>{zL(t,e)&&console.log(`[${e}] ${n}`,...r)},WL=()=>vE().getItem("logger_lvl"),qL=(e=(my()?"info":WL()||"warn"))=>{let t=e;return{debug:(e,...n)=>wg("debug",t,e,...n),info:(e,...n)=>wg("info",t,e,...n),warn:(e,...n)=>wg("warn",t,e,...n),error:(e,...n)=>(jL(e,...n),wg("error",t,e,...n)),setLevel:e=>{t=e},getLevel:()=>t}},El=qL();function xS(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var N1=()=>Math.random().toString(36).substring(7).split("").join("."),GL={INIT:`@@redux/INIT${N1()}`,REPLACE:`@@redux/REPLACE${N1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${N1()}`},_$=GL;function cd(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function HL(e){Object.keys(e).forEach((t=>{const n=e[t];if(typeof n(void 0,{type:_$.INIT})>"u")throw new Error(xS(12));if(typeof n(void 0,{type:_$.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(xS(13))}))}function QA(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}const r=Object.keys(n);let o;try{HL(n)}catch(e){o=e}return function(e={},t){if(o)throw o;let i=!1;const a={};for(let o=0;o<r.length;o++){const u=r[o],s=n[u],l=e[u],c=s(l,t);if(typeof c>"u")throw t&&t.type,new Error(xS(14));a[u]=c,i=i||c!==l}return i=i||r.length!==Object.keys(e).length,i?a:e}}function YA(e){return cd(e)&&"type"in e&&"string"==typeof e.type}var gE=Symbol.for("immer-nothing"),rv=Symbol.for("immer-draftable"),xi=Symbol.for("immer-state");function Eo(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var zf=Object.getPrototypeOf;function vs(e){return!!e&&!!e[xi]}function gs(e){var t;return!!e&&(XA(e)||Array.isArray(e)||!!e[rv]||!(null==(t=e.constructor)||!t[rv])||Pv(e)||Tv(e))}var KL=Object.prototype.constructor.toString();function XA(e){if(!e||"object"!=typeof e)return!1;const t=zf(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===KL}function QL(e){return vs(e)||Eo(15,e),e[xi].base_}function Dh(e,t){0===Wf(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function Wf(e){const t=e[xi];return t?t.type_:Array.isArray(e)?1:Pv(e)?2:Tv(e)?3:0}function fv(e,t){return 2===Wf(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function M1(e,t){return 2===Wf(e)?e.get(t):e[t]}function JA(e,t,n){const r=Wf(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function YL(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function Pv(e){return e instanceof Map}function Tv(e){return e instanceof Set}function Df(e){return e.copy_||e.base_}function SS(e,t){if(Pv(e))return new Map(e);if(Tv(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&XA(e))return zf(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[xi];let r=Reflect.ownKeys(n);for(let t=0;t<r.length;t++){const o=r[t],i=n[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(n[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(zf(e),n)}function yE(e,t=!1){return vy(e)||vs(e)||!gs(e)||(Wf(e)>1&&(e.set=e.add=e.clear=e.delete=XL),Object.freeze(e),t&&Dh(e,((e,t)=>yE(t,!0)))),e}function XL(){Eo(2)}function vy(e){return Object.isFrozen(e)}var pv,ES={};function qf(e){const t=ES[e];return t||Eo(0,e),t}function JL(e,t){ES[e]||(ES[e]=t)}function ZA(){return pv}function ZL(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function b$(e,t){t&&(qf("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function CS(e){$S(e),e.drafts_.forEach(e5),e.drafts_=null}function $S(e){e===pv&&(pv=e.parent_)}function x$(e){return pv=ZL(pv,e)}function e5(e){const t=e[xi];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function S$(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[xi].modified_&&(CS(t),Eo(4)),gs(e)&&(e=Yg(t,e),t.parent_||Xg(t,e)),t.patches_&&qf("Patches").generateReplacementPatches_(n[xi].base_,e,t.patches_,t.inversePatches_)):e=Yg(t,n,[]),CS(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==gE?e:void 0}function Yg(e,t,n){if(vy(t))return t;const r=t[xi];if(!r)return Dh(t,((o,i)=>E$(e,r,t,o,i,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return Xg(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,i=!1;3===r.type_&&(o=new Set(t),t.clear(),i=!0),Dh(o,((o,a)=>E$(e,r,t,o,a,n,i))),Xg(e,t,!1),n&&e.patches_&&qf("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function E$(e,t,n,r,o,i,a){if(vs(o)){const a=Yg(e,o,i&&t&&3!==t.type_&&!fv(t.assigned_,r)?i.concat(r):void 0);if(JA(n,r,a),!vs(a))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(gs(o)&&!vy(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Yg(e,o),(!t||!t.scope_.parent_)&&Xg(e,o)}}function Xg(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&yE(t,n)}function t5(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:ZA(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=wE;n&&(o=[r],i=hv);const{revoke:a,proxy:u}=Proxy.revocable(o,i);return r.draft_=u,r.revoke_=a,u}var wE={get(e,t){if(t===xi)return e;const n=Df(e);if(!fv(n,t))return n5(e,n,t);const r=n[t];return e.finalized_||!gs(r)?r:r===L1(e.base_,t)?(F1(e),e.copy_[t]=RS(r,e)):r},has:(e,t)=>t in Df(e),ownKeys:e=>Reflect.ownKeys(Df(e)),set(e,t,n){const r=e2(Df(e),t);if(null!=r&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=L1(Df(e),t),o=null==r?void 0:r[xi];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(YL(n,r)&&(void 0!==n||fv(e.base_,t)))return!0;F1(e),IS(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==L1(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,F1(e),IS(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=Df(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}},defineProperty(){Eo(11)},getPrototypeOf:e=>zf(e.base_),setPrototypeOf(){Eo(12)}},hv={};function L1(e,t){const n=e[xi];return(n?Df(n):e)[t]}function n5(e,t,n){var r;const o=e2(t,n);return o?"value"in o?o.value:null==(r=o.get)?void 0:r.call(e.draft_):void 0}function e2(e,t){if(!(t in e))return;let n=zf(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=zf(n)}}function IS(e){e.modified_||(e.modified_=!0,e.parent_&&IS(e.parent_))}function F1(e){e.copy_||(e.copy_=SS(e.base_,e.scope_.immer_.useStrictShallowCopy_))}Dh(wE,((e,t)=>{hv[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),hv.deleteProperty=function(e,t){return hv.set.call(this,e,t,void 0)},hv.set=function(e,t,n){return wE.set.call(this,e[0],t,n,e[0])};var r5=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...o){return r.produce(e,(e=>t.call(this,e,...o)))}}let r;if("function"!=typeof t&&Eo(6),void 0!==n&&"function"!=typeof n&&Eo(7),gs(e)){const o=x$(this),i=RS(e,void 0);let a=!0;try{r=t(i),a=!1}finally{a?CS(o):$S(o)}return b$(o,n),S$(r,o)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===gE&&(r=void 0),this.autoFreeze_&&yE(r,!0),n){const t=[],o=[];qf("Patches").generateReplacementPatches_(e,r,t,o),n(t,o)}return r}Eo(1,e)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;return[this.produce(e,t,((e,t)=>{n=e,r=t})),n,r]},"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof(null==e?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){gs(e)||Eo(8),vs(e)&&(e=t2(e));const t=x$(this),n=RS(e,void 0);return n[xi].isManual_=!0,$S(t),n}finishDraft(e,t){const n=e&&e[xi];(!n||!n.isManual_)&&Eo(9);const{scope_:r}=n;return b$(r,t),S$(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=qf("Patches").applyPatches_;return vs(e)?r(e,t):this.produce(e,(e=>r(e,t)))}};function RS(e,t){const n=Pv(e)?qf("MapSet").proxyMap_(e,t):Tv(e)?qf("MapSet").proxySet_(e,t):t5(e,t);return(t?t.scope_:ZA()).drafts_.push(n),n}function t2(e){return vs(e)||Eo(10,e),n2(e)}function n2(e){if(!gs(e)||vy(e))return e;const t=e[xi];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=SS(e,t.scope_.immer_.useStrictShallowCopy_)}else n=SS(e,!0);return Dh(n,((e,t)=>{JA(n,e,n2(t))})),t&&(t.finalized_=!1),n}function o5(){const e="replace",t="remove";function n(e){if(!gs(e))return e;if(Array.isArray(e))return e.map(n);if(Pv(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,n(t)])));if(Tv(e))return new Set(Array.from(e).map(n));const t=Object.create(zf(e));for(const r in e)t[r]=n(e[r]);return fv(e,rv)&&(t[rv]=e[rv]),t}function r(e){return vs(e)?n(e):e}JL("Patches",{applyPatches_:function(r,o){return o.forEach((o=>{const{path:i,op:a}=o;let u=r;for(let e=0;e<i.length-1;e++){const t=Wf(u);let n=i[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),(0===t||1===t)&&("__proto__"===n||"constructor"===n)&&Eo(19),"function"==typeof u&&"prototype"===n&&Eo(19),u=M1(u,n),"object"!=typeof u&&Eo(18,i.join("/"))}const s=Wf(u),l=n(o.value),c=i[i.length-1];switch(a){case e:switch(s){case 2:return u.set(c,l);case 3:Eo(16);default:return u[c]=l}case"add":switch(s){case 1:return"-"===c?u.push(l):u.splice(c,0,l);case 2:return u.set(c,l);case 3:return u.add(l);default:return u[c]=l}case t:switch(s){case 1:return u.splice(c,1);case 2:return u.delete(c);case 3:return u.delete(o.value);default:return delete u[c]}default:Eo(17,a)}})),r},generatePatches_:function(n,o,i,a){switch(n.type_){case 0:case 2:return function(n,o,i,a){const{base_:u,copy_:s}=n;Dh(n.assigned_,((n,l)=>{const c=M1(u,n),d=M1(s,n),f=l?fv(u,n)?e:"add":t;if(c===d&&f===e)return;const p=o.concat(n);i.push(f===t?{op:f,path:p}:{op:f,path:p,value:d}),a.push("add"===f?{op:t,path:p}:f===t?{op:"add",path:p,value:r(c)}:{op:e,path:p,value:r(c)})}))}(n,o,i,a);case 1:return function(n,o,i,a){let{base_:u,assigned_:s}=n,l=n.copy_;l.length<u.length&&([u,l]=[l,u],[i,a]=[a,i]);for(let t=0;t<u.length;t++)if(s[t]&&l[t]!==u[t]){const n=o.concat([t]);i.push({op:e,path:n,value:r(l[t])}),a.push({op:e,path:n,value:r(u[t])})}for(let e=u.length;e<l.length;e++){const t=o.concat([e]);i.push({op:"add",path:t,value:r(l[e])})}for(let e=l.length-1;u.length<=e;--e){const n=o.concat([e]);a.push({op:t,path:n})}}(n,o,i,a);case 3:return function(e,n,r,o){let{base_:i,copy_:a}=e,u=0;i.forEach((e=>{if(!a.has(e)){const i=n.concat([u]);r.push({op:t,path:i,value:e}),o.unshift({op:"add",path:i,value:e})}u++})),u=0,a.forEach((e=>{if(!i.has(e)){const i=n.concat([u]);r.push({op:"add",path:i,value:e}),o.unshift({op:t,path:i,value:e})}u++}))}(n,o,i,a)}},generateReplacementPatches_:function(t,n,r,o){r.push({op:e,path:[],value:n===gE?void 0:n}),o.push({op:e,path:[],value:t})}})}var Zi=new r5,Ov=Zi.produce,r2=Zi.produceWithPatches.bind(Zi);Zi.setAutoFreeze.bind(Zi),Zi.setUseStrictShallowCopy.bind(Zi);var C$=Zi.applyPatches.bind(Zi);function i5(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function a5(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function s5(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"==typeof e))){const n=e.map((e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}Zi.createDraft.bind(Zi),Zi.finishDraft.bind(Zi);var $$=e=>Array.isArray(e)?e:[e];function u5(e){const t=Array.isArray(e[0])?e[0]:e;return s5(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function l5(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}var c5=class{constructor(e){this.value=e}deref(){return this.value}},d5=typeof WeakRef<"u"?WeakRef:c5,f5=0,I$=1;function _g(){return{s:f5,v:void 0,o:null,p:null}}function mv(e,t={}){let n=_g();const{resultEqualityCheck:r}=t;let o,i=0;function a(){var t;let a=n;const{length:u}=arguments;for(let e=0,t=u;e<t;e++){const t=arguments[e];if("function"==typeof t||"object"==typeof t&&null!==t){let e=a.o;null===e&&(a.o=e=new WeakMap);const n=e.get(t);void 0===n?(a=_g(),e.set(t,a)):a=n}else{let e=a.p;null===e&&(a.p=e=new Map);const n=e.get(t);void 0===n?(a=_g(),e.set(t,a)):a=n}}const s=a;let l;if(a.s===I$?l=a.v:(l=e.apply(null,arguments),i++),s.s=I$,r){const e=(null==(t=null==o?void 0:o.deref)?void 0:t.call(o))??o;null!=e&&r(e,l)&&(l=e,0!==i&&i--),o="object"==typeof l&&null!==l||"function"==typeof l?new d5(l):l}return s.v=l,l}return a.clearCache=()=>{n=_g(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function o2(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,o=0,i={},a=e.pop();"object"==typeof a&&(i=a,a=e.pop()),i5(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const u={...n,...i},{memoize:s,memoizeOptions:l=[],argsMemoize:c=mv,argsMemoizeOptions:d=[],devModeChecks:f={}}=u,p=$$(l),m=$$(d),h=u5(e),v=s((function(){return r++,a.apply(null,arguments)}),...p),g=c((function(){o++;const e=l5(h,arguments);return t=v.apply(null,e),t}),...m);return Object.assign(g,{resultFunc:a,memoizedResultFunc:v,dependencies:h,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:s,argsMemoize:c})};return Object.assign(r,{withTypes:()=>r}),r}var Zn=o2(mv),p5=Object.assign(((e,t=Zn)=>{a5(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})))}),{withTypes:()=>p5}),h5=(...e)=>{const t=o2(...e),n=Object.assign(((...e)=>{const n=t(...e),r=(e,...t)=>n(vs(e)?t2(e):e,...t);return Object.assign(r,n),r}),{withTypes:()=>n});return n};h5(mv);var m5=e=>e&&"function"==typeof e.match;function Un(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(Co(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>YA(t)&&t.type===e,n}function R$(e){return gs(e)?Ov(e,(()=>{})):e}function PS(e,t,n){if(e.has(t)){let r=e.get(t);return n.update&&(r=n.update(r,t,e),e.set(t,r)),r}if(!n.insert)throw new Error(Co(10));const r=n.insert(t,e);return e.set(t,r),r}var Ym="RTK_autoBatch",Um=()=>e=>({payload:e,meta:{[Ym]:!0}});function i2(e){const t={},n=[];let r;const o={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(Co(28));if(r in t)throw new Error(Co(29));return t[r]=n,o},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(r=e,o)};return e(o),[t,n,r]}function v5(e){return"function"==typeof e}function g5(e,t){let n,[r,o,i]=i2(t);if(v5(e))n=()=>R$(e());else{const t=R$(e);n=()=>t}function a(e=n(),t){let a=[r[t.type],...o.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===a.filter((e=>!!e)).length&&(a=[i]),a.reduce(((e,n)=>{if(n){if(vs(e)){const r=n(e,t);return void 0===r?e:r}if(gs(e))return Ov(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(Co(9))}return r}}return e}),e)}return a.getInitialState=n,a}var y5="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",gy=(e=21)=>{let t="",n=e;for(;n--;)t+=y5[64*Math.random()|0];return t},a2=(e,t)=>m5(e)?e.match(t):e(t);function dd(...e){return t=>e.some((e=>a2(e,t)))}function ov(...e){return t=>e.every((e=>a2(e,t)))}function yy(e,t){if(!e||!e.meta)return!1;const n="string"==typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function Av(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function _E(...e){return 0===e.length?e=>yy(e,["pending"]):Av(e)?t=>dd(...e.map((e=>e.pending)))(t):_E()(e[0])}function Nh(...e){return 0===e.length?e=>yy(e,["rejected"]):Av(e)?t=>dd(...e.map((e=>e.rejected)))(t):Nh()(e[0])}function wy(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||Av(e)?n=>ov(Nh(...e),t)(n):wy()(e[0])}function fd(...e){return 0===e.length?e=>yy(e,["fulfilled"]):Av(e)?t=>dd(...e.map((e=>e.fulfilled)))(t):fd()(e[0])}function TS(...e){return 0===e.length?e=>yy(e,["pending","fulfilled","rejected"]):Av(e)?t=>{const n=[];for(const t of e)n.push(t.pending,t.rejected,t.fulfilled);return dd(...n)(t)}:TS()(e[0])}var w5=["name","message","stack","code"],B1=class{constructor(e,t){A1(this,"_type"),this.payload=e,this.meta=t}},P$=class{constructor(e,t){A1(this,"_type"),this.payload=e,this.meta=t}},_5=e=>{if("object"==typeof e&&null!==e){const t={};for(const n of w5)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},T$=(()=>{function e(e,t,n){const r=Un(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),o=Un(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),i=Un(e+"/rejected",((e,t,r,o,i)=>({payload:o,error:(n&&n.serializeError||_5)(e||"Rejected"),meta:{...i||{},arg:r,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)}})));return Object.assign((function(e){return(a,u,s)=>{const l=null!=n&&n.idGenerator?n.idGenerator(e):gy(),c=new AbortController;let d,f;function p(e){f=e,c.abort()}const m=async function(){var m,h;let v;try{let i=null==(m=null==n?void 0:n.condition)?void 0:m.call(n,e,{getState:u,extra:s});if(x5(i)&&(i=await i),!1===i||c.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const g=new Promise(((e,t)=>{d=()=>{t({name:"AbortError",message:f||"Aborted"})},c.signal.addEventListener("abort",d)}));a(o(l,e,null==(h=null==n?void 0:n.getPendingMeta)?void 0:h.call(n,{requestId:l,arg:e},{getState:u,extra:s}))),v=await Promise.race([g,Promise.resolve(t(e,{dispatch:a,getState:u,extra:s,requestId:l,signal:c.signal,abort:p,rejectWithValue:(e,t)=>new B1(e,t),fulfillWithValue:(e,t)=>new P$(e,t)})).then((t=>{if(t instanceof B1)throw t;return t instanceof P$?r(t.payload,l,e,t.meta):r(t,l,e)}))])}catch(t){v=t instanceof B1?i(null,l,e,t.payload,t.meta):i(t,l,e)}finally{d&&c.signal.removeEventListener("abort",d)}return n&&!n.dispatchConditionRejection&&i.match(v)&&v.meta.condition||a(v),v}();return Object.assign(m,{abort:p,requestId:l,arg:e,unwrap:()=>m.then(b5)})}}),{pending:o,rejected:i,fulfilled:r,settled:dd(i,r),typePrefix:e})}return e.withTypes=()=>e,e})();function b5(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function x5(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}var S5=Symbol.for("rtk-slice-createasyncthunk");function E5(e,t){return`${e}/${t}`}function C5({creators:e}={}){var t;const n=null==(t=null==e?void 0:e.asyncThunk)?void 0:t[S5];return function(e){const{name:t,reducerPath:r=t}=e;if(!t)throw new Error(Co(11));const o=("function"==typeof e.reducers?e.reducers(I5()):e.reducers)||{},i=Object.keys(o),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(Co(12));if(n in a.sliceCaseReducersByType)throw new Error(Co(13));return a.sliceCaseReducersByType[n]=t,u},addMatcher:(e,t)=>(a.sliceMatchers.push({matcher:e,reducer:t}),u),exposeAction:(e,t)=>(a.actionCreators[e]=t,u),exposeCaseReducer:(e,t)=>(a.sliceCaseReducersByName[e]=t,u)};function s(){const[t={},n=[],r]="function"==typeof e.extraReducers?i2(e.extraReducers):[e.extraReducers],o={...t,...a.sliceCaseReducersByType};return g5(e.initialState,(e=>{for(let t in o)e.addCase(t,o[t]);for(let t of a.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)}))}i.forEach((r=>{const i=o[r],a={reducerName:r,type:E5(t,r),createNotation:"function"==typeof e.reducers};P5(i)?O5(a,i,u,n):R5(a,i,u)}));const l=e=>e,c=new Map;let d;function f(e,t){return d||(d=s()),d(e,t)}function p(){return d||(d=s()),d.getInitialState()}function m(t,n=!1){function r(e){let r=e[t];return typeof r>"u"&&n&&(r=p()),r}function o(t=l){const r=PS(c,n,{insert:()=>new WeakMap});return PS(r,t,{insert:()=>{const r={};for(const[o,i]of Object.entries(e.selectors??{}))r[o]=$5(i,t,p,n);return r}})}return{reducerPath:t,getSelectors:o,get selectors(){return o(r)},selectSlice:r}}const h={name:t,reducer:f,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:p,...m(r),injectInto(e,{reducerPath:t,...n}={}){const o=t??r;return e.inject({reducerPath:o,reducer:f},n),{...h,...m(o,!0)}}};return h}}function $5(e,t,n,r){function o(o,...i){let a=t(o);return typeof a>"u"&&r&&(a=n()),e(a,...i)}return o.unwrapped=e,o}var So=C5();function I5(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}function R5({type:e,reducerName:t,createNotation:n},r,o){let i,a;if("reducer"in r){if(n&&!T5(r))throw new Error(Co(17));i=r.reducer,a=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?Un(e,a):Un(e))}function P5(e){return"asyncThunk"===e._reducerDefinitionType}function T5(e){return"reducerWithPrepare"===e._reducerDefinitionType}function O5({type:e,reducerName:t},n,r,o){if(!o)throw new Error(Co(18));const{payloadCreator:i,fulfilled:a,pending:u,rejected:s,settled:l,options:c}=n,d=o(e,i,c);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a),u&&r.addCase(d.pending,u),s&&r.addCase(d.rejected,s),l&&r.addMatcher(d.settled,l),r.exposeCaseReducer(t,{fulfilled:a||bg,pending:u||bg,rejected:s||bg,settled:l||bg})}function bg(){}var A5=(e,t)=>{if("function"!=typeof e)throw new Error(Co(32))},bE="listenerMiddleware",k5=e=>{let{type:t,actionCreator:n,matcher:r,predicate:o,effect:i}=e;if(t)o=Un(t).match;else if(n)t=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(Co(21));return A5(i),{predicate:o,type:t,effect:i}},D5=Object.assign((e=>{const{type:t,predicate:n,effect:r}=k5(e);return{id:gy(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Co(22))}}}),{withTypes:()=>D5}),N5=Object.assign(Un(`${bE}/add`),{withTypes:()=>N5});Un(`${bE}/removeAll`);var M5=Object.assign(Un(`${bE}/remove`),{withTypes:()=>M5}),L5=e=>"reducerPath"in e&&"string"==typeof e.reducerPath,F5=e=>e.flatMap((e=>L5(e)?[[e.reducerPath,e.reducer]]:Object.entries(e))),xE=Symbol.for("rtk-state-proxy-original"),B5=e=>!!e&&!!e[xE],j5=new WeakMap,V5=(e,t)=>PS(j5,e,{insert:()=>new Proxy(e,{get:(e,n,r)=>{if(n===xE)return e;const o=Reflect.get(e,n,r);if(typeof o>"u"){const e=t[n.toString()];if(e){const t=e(void 0,{type:gy()});if(typeof t>"u")throw new Error(Co(24));return t}}return o}})}),U5=e=>{if(!B5(e))throw new Error(Co(25));return e[xE]},z5=(e={})=>e;function W5(...e){const t=Object.fromEntries(F5(e)),n=()=>Object.keys(t).length?QA(t):z5;let r=n();function o(e,t){return r(e,t)}o.withLazyLoadedSlices=()=>o;const i=Object.assign((function(e,n){return function(r,...o){return e(V5(n?n(r,...o):r,t),...o)}}),{original:U5});return Object.assign(o,{inject:(e,i={})=>{const{reducerPath:a,reducer:u}=e,s=t[a];return!i.overrideExisting&&s&&s!==u||(t[a]=u,r=n()),o},selector:i})}function Co(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const s2=()=>c2()?location.hostname:location.hostname.replace(/\w\w\w\.|^/,"."),u2=e=>{const t=new Date;return t.setTime(t.getTime()+24*e*60*60*1e3),t.toUTCString()},l2=e=>Object.keys(e).reduce(((t,n)=>`${t}${n}${!0===e[n]?"":`=${e[n]}`};`),""),q5=(e,t)=>{const n=my()?"":document.cookie,r=`; ${t||n}`.split(`; ${e}=`);if(2===r.length)return(r.pop()||"").replace("=","").split(";").shift()},G5=(e,t)=>{my()||(document.cookie=l2({[e]:"",path:"/",domain:t||s2(),expires:"Thu, 01 Jan 1970 00:00:01 GMT"}))},H5=["localhost","127.0.0.1","dev.localtest.me","wellesleydev.localtest.me"],c2=()=>H5.includes(location.hostname),K5=(e,t="",n=10,r)=>{my()||(document.cookie=l2({[e]:t,path:"/",domain:r||s2(),expires:u2(n),...!c2()&&{SameSite:"None",Secure:!0}}))},SE={set:K5,remove:G5,get:q5,getExpireDate:u2},EE="auth_token",d2=()=>SE.get(EE)||void 0,Q5=e=>SE.set(EE,e),Y5=()=>SE.remove(EE),X5=()=>!!d2(),CE={getToken:d2,setToken:Q5,removeToken:Y5,hasToken:X5},O$={forgotPasswordStep:"request",forgotPasswordFields:null,signupStep:"rules",signupFields:null,token:null,newEmail:null,isPending:!!CE.getToken(),isAuthenticated:!1,isAskLoginOpen:!1},f2=So({name:"auth",initialState:O$,reducers:{setAskLoginOpen:(e,t)=>{e.isAskLoginOpen=t.payload},login:(e,t)=>{e.isAuthenticated=!0,e.token=t.payload||null,e.isPending=!1},logout:()=>({...O$,isPending:!1}),setNewEmail:(e,t)=>{e.newEmail=t.payload},setForgotPasswordStep:(e,t)=>{e.forgotPasswordStep=t.payload},updateForgotPasswordFields:(e,t)=>{e.forgotPasswordFields={...e.forgotPasswordFields,...t.payload}},resetForgotPasswordFields:e=>{e.forgotPasswordFields=null},setSignupStep:(e,t)=>{e.signupStep=t.payload},updateSignupFields:(e,t)=>{e.signupFields={...e.signupFields,...t.payload}},resetSignupFields:e=>{e.signupFields=null},setPending:(e,t)=>{e.isPending=t.payload}},selectors:{selectAskLoginOpen:e=>e.isAskLoginOpen,selectToken:e=>e.token,selectNewEmail:e=>e.newEmail,selectForgotPasswordStep:e=>e.forgotPasswordStep,selectForgotPasswordFields:e=>e.forgotPasswordFields,selectSignupStep:e=>e.signupStep,selectSignupFields:e=>e.signupFields,selectPending:e=>e.isPending,selectIsAuthenticated:e=>e.isAuthenticated}});var A$,k$,j1={exports:{}},V1={};
|
|
19
|
+
*/}function vL(){if(c$)return Vm;c$=1;var e=hy(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var u,s={},l=null,c=null;for(u in void 0!==a&&(l=""+a),void 0!==n.key&&(l=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,u)&&!i.hasOwnProperty(u)&&(s[u]=n[u]);if(e&&e.defaultProps)for(u in n=e.defaultProps)void 0===s[u]&&(s[u]=n[u]);return{$$typeof:t,type:e,key:l,ref:c,props:s,_owner:o.current}}return Vm.Fragment=n,Vm.jsx=a,Vm.jsxs=a,Vm}function gL(){return d$||(d$=1,A1.exports=vL()),A1.exports}var G=gL(),m=hy();const We=py(m),Qg=hL({__proto__:null,default:We},[m]),nv="8.48.0",Sl=globalThis;function dE(e,t,n){const r=Sl,o=r.__SENTRY__=r.__SENTRY__||{},i=o[nv]=o[nv]||{};return i[e]||(i[e]=t())}const UA=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,yL="Sentry Logger ",f$=["debug","info","warn","error","log","assert","trace"],p$={};function wL(e){if(!("console"in Sl))return e();const t=Sl.console,n={},r=Object.keys(p$);r.forEach((e=>{const r=p$[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}function _L(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return UA?f$.forEach((n=>{t[n]=(...t)=>{e&&wL((()=>{Sl.console[n](`${yL}[${n}]:`,...t)}))}})):f$.forEach((e=>{t[e]=()=>{}})),t}const Wg=dE("logger",_L);function fE(){return pE(Sl),Sl}function pE(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||nv,t[nv]=t[nv]||{}}const bL=Object.prototype.toString;function xL(e,t){return bL.call(e)===`[object ${t}]`}function SL(e){return xL(e,"Object")}function EL(e){return!(!e||!e.then||"function"!=typeof e.then)}function CL(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{UA&&Wg.log(`Failed to add non-enumerable property "${t}" to object`,e)}}const zA=1e3;function WA(){return Date.now()/zA}function $L(){const{performance:e}=Sl;if(!e||!e.now)return WA;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/zA}const IL=$L();function Ph(){const e=Sl,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch{}return"10000000100040008000100000000000".replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function RL(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||IL(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:Ph()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function h$(){return Ph()}function m$(){return Ph().substring(16)}function qA(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&t&&0===Object.keys(t).length)return e;const r={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=qA(r[e],t[e],n-1));return r}(()=>{const{performance:e}=Sl;if(!e||!e.now)return;const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,a=e.timing&&e.timing.navigationStart,u="number"==typeof a?Math.abs(a+n-r):t;(i||u<t)&&(o<=u&&e.timeOrigin)})();const _S="_sentrySpan";function v$(e,t){t?CL(e,_S,t):delete e[_S]}function g$(e){return e[_S]}const PL=100;class hE{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:h$(),spanId:m$()}}clone(){const e=new hE;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,v$(e,g$(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&RL(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[n,r]=t instanceof dv?[t.getScopeData(),t.getRequestSession()]:SL(t)?[e,e.requestSession]:[],{tags:o,extra:i,user:a,contexts:u,level:s,fingerprint:l=[],propagationContext:c}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...u},a&&Object.keys(a).length&&(this._user=a),s&&(this._level=s),l.length&&(this._fingerprint=l),c&&(this._propagationContext=c),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,v$(this,void 0),this._attachments=[],this.setPropagationContext({traceId:h$()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:PL;if(n<=0)return this;const r={timestamp:WA(),...e},o=this._breadcrumbs;return o.push(r),this._breadcrumbs=o.length>n?o.slice(-n):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:g$(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=qA(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:m$(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:Ph();if(!this._client)return Wg.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:Ph();if(!this._client)return Wg.warn("No client configured on scope - will not capture message!"),r;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:Ph();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(Wg.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}const dv=hE;function TL(){return dE("defaultCurrentScope",(()=>new dv))}function OL(){return dE("defaultIsolationScope",(()=>new dv))}class AL{constructor(e,t){let n,r;n=e||new dv,r=t||new dv,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return EL(n)?n.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function kh(){const e=pE(fE());return e.stack=e.stack||new AL(TL(),OL())}function kL(e){return kh().withScope(e)}function DL(e,t){const n=kh();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function y$(e){return kh().withScope((()=>e(kh().getIsolationScope())))}function NL(){return{withIsolationScope:y$,withScope:kL,withSetScope:DL,withSetIsolationScope:(e,t)=>y$(t),getCurrentScope:()=>kh().getScope(),getIsolationScope:()=>kh().getIsolationScope()}}function GA(e){const t=pE(e);return t.acs?t.acs:NL()}function HA(){return GA(fE()).getCurrentScope()}function ML(){return GA(fE()).getIsolationScope()}function LL(e,t){return HA().captureException(e,void 0)}function FL(e,t){const n={captureContext:t};return HA().captureMessage(e,void 0,n)}function BL(e,t){ML().setExtra(e,t)}const jL=(...e)=>{let t="";for(const n of e){if(n instanceof Error){const e=n;return BL("exceptionMessage",t),void LL(e)}if("object"!=typeof n)t+=n;else try{t+=" "+JSON.stringify(n)}catch{t+=" "+n}}FL(t)},my=()=>"object"!=typeof window,VL="wlsy",KA=()=>{try{return window.localStorage}catch(e){console.warn("Error getting window.localStorage storage",e)}},UL=()=>{const e=new Set,t=KA();if(!t)return[];for(let n=0;n<(null==t?void 0:t.length);n+=1){const r=null==t?void 0:t.key(n);"string"==typeof r&&e.add(r)}return Array.from(e)},mE=e=>{const t=`${VL}${e?`:${e}`:""}`,n=e=>`${t}:${e}`,r=()=>UL().filter((e=>e.startsWith(`${t}:`))),o=e=>e.slice(t.length+1),i=KA(),a=e=>{try{return null==i?void 0:i.getItem(n(e))}catch{return null}},u=(e,t)=>{try{null==i||i.setItem(n(e),String(t))}catch{return}};return{getItem:a,setItem:u,removeItem:e=>{try{null==i||i.removeItem(n(e))}catch{return}},clear:()=>{try{r().forEach((e=>null==i?void 0:i.removeItem(e)))}catch{return}},keys:()=>r().map(o),has:e=>null!==a(e),getJSON:e=>{const t=a(e);if(null==t)return null;try{return JSON.parse(t)}catch{return null}},setJSON:(e,t)=>{try{u(e,JSON.stringify(t))}catch{return}}}},w$=["debug","info","warn","error"],zL=(e,t)=>{const n=w$.indexOf(e);return w$.indexOf(t)>=n},wg=(e,t,n,...r)=>{zL(t,e)&&console.log(`[${e}] ${n}`,...r)},WL=()=>mE().getItem("logger_lvl"),qL=(e=(my()?"info":WL()||"warn"))=>{let t=e;return{debug:(e,...n)=>wg("debug",t,e,...n),info:(e,...n)=>wg("info",t,e,...n),warn:(e,...n)=>wg("warn",t,e,...n),error:(e,...n)=>(jL(e,...n),wg("error",t,e,...n)),setLevel:e=>{t=e},getLevel:()=>t}},El=qL();function bS(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var D1=()=>Math.random().toString(36).substring(7).split("").join("."),GL={INIT:`@@redux/INIT${D1()}`,REPLACE:`@@redux/REPLACE${D1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${D1()}`},_$=GL;function cd(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function HL(e){Object.keys(e).forEach((t=>{const n=e[t];if(typeof n(void 0,{type:_$.INIT})>"u")throw new Error(bS(12));if(typeof n(void 0,{type:_$.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(bS(13))}))}function QA(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}const r=Object.keys(n);let o;try{HL(n)}catch(e){o=e}return function(e={},t){if(o)throw o;let i=!1;const a={};for(let o=0;o<r.length;o++){const u=r[o],s=n[u],l=e[u],c=s(l,t);if(typeof c>"u")throw t&&t.type,new Error(bS(14));a[u]=c,i=i||c!==l}return i=i||r.length!==Object.keys(e).length,i?a:e}}function YA(e){return cd(e)&&"type"in e&&"string"==typeof e.type}var vE=Symbol.for("immer-nothing"),rv=Symbol.for("immer-draftable"),xi=Symbol.for("immer-state");function Eo(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var zf=Object.getPrototypeOf;function vs(e){return!!e&&!!e[xi]}function gs(e){var t;return!!e&&(XA(e)||Array.isArray(e)||!!e[rv]||!(null==(t=e.constructor)||!t[rv])||Pv(e)||Tv(e))}var KL=Object.prototype.constructor.toString();function XA(e){if(!e||"object"!=typeof e)return!1;const t=zf(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===KL}function QL(e){return vs(e)||Eo(15,e),e[xi].base_}function Dh(e,t){0===Wf(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function Wf(e){const t=e[xi];return t?t.type_:Array.isArray(e)?1:Pv(e)?2:Tv(e)?3:0}function fv(e,t){return 2===Wf(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function N1(e,t){return 2===Wf(e)?e.get(t):e[t]}function JA(e,t,n){const r=Wf(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function YL(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function Pv(e){return e instanceof Map}function Tv(e){return e instanceof Set}function Df(e){return e.copy_||e.base_}function xS(e,t){if(Pv(e))return new Map(e);if(Tv(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&XA(e))return zf(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[xi];let r=Reflect.ownKeys(n);for(let t=0;t<r.length;t++){const o=r[t],i=n[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(n[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(zf(e),n)}function gE(e,t=!1){return vy(e)||vs(e)||!gs(e)||(Wf(e)>1&&(e.set=e.add=e.clear=e.delete=XL),Object.freeze(e),t&&Dh(e,((e,t)=>gE(t,!0)))),e}function XL(){Eo(2)}function vy(e){return Object.isFrozen(e)}var pv,SS={};function qf(e){const t=SS[e];return t||Eo(0,e),t}function JL(e,t){SS[e]||(SS[e]=t)}function ZA(){return pv}function ZL(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function b$(e,t){t&&(qf("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ES(e){CS(e),e.drafts_.forEach(e6),e.drafts_=null}function CS(e){e===pv&&(pv=e.parent_)}function x$(e){return pv=ZL(pv,e)}function e6(e){const t=e[xi];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function S$(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[xi].modified_&&(ES(t),Eo(4)),gs(e)&&(e=Yg(t,e),t.parent_||Xg(t,e)),t.patches_&&qf("Patches").generateReplacementPatches_(n[xi].base_,e,t.patches_,t.inversePatches_)):e=Yg(t,n,[]),ES(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==vE?e:void 0}function Yg(e,t,n){if(vy(t))return t;const r=t[xi];if(!r)return Dh(t,((o,i)=>E$(e,r,t,o,i,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return Xg(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,i=!1;3===r.type_&&(o=new Set(t),t.clear(),i=!0),Dh(o,((o,a)=>E$(e,r,t,o,a,n,i))),Xg(e,t,!1),n&&e.patches_&&qf("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function E$(e,t,n,r,o,i,a){if(vs(o)){const a=Yg(e,o,i&&t&&3!==t.type_&&!fv(t.assigned_,r)?i.concat(r):void 0);if(JA(n,r,a),!vs(a))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(gs(o)&&!vy(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Yg(e,o),(!t||!t.scope_.parent_)&&Xg(e,o)}}function Xg(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&gE(t,n)}function t6(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:ZA(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=yE;n&&(o=[r],i=hv);const{revoke:a,proxy:u}=Proxy.revocable(o,i);return r.draft_=u,r.revoke_=a,u}var yE={get(e,t){if(t===xi)return e;const n=Df(e);if(!fv(n,t))return n6(e,n,t);const r=n[t];return e.finalized_||!gs(r)?r:r===M1(e.base_,t)?(L1(e),e.copy_[t]=IS(r,e)):r},has:(e,t)=>t in Df(e),ownKeys:e=>Reflect.ownKeys(Df(e)),set(e,t,n){const r=e2(Df(e),t);if(null!=r&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=M1(Df(e),t),o=null==r?void 0:r[xi];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(YL(n,r)&&(void 0!==n||fv(e.base_,t)))return!0;L1(e),$S(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==M1(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,L1(e),$S(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=Df(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}},defineProperty(){Eo(11)},getPrototypeOf:e=>zf(e.base_),setPrototypeOf(){Eo(12)}},hv={};function M1(e,t){const n=e[xi];return(n?Df(n):e)[t]}function n6(e,t,n){var r;const o=e2(t,n);return o?"value"in o?o.value:null==(r=o.get)?void 0:r.call(e.draft_):void 0}function e2(e,t){if(!(t in e))return;let n=zf(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=zf(n)}}function $S(e){e.modified_||(e.modified_=!0,e.parent_&&$S(e.parent_))}function L1(e){e.copy_||(e.copy_=xS(e.base_,e.scope_.immer_.useStrictShallowCopy_))}Dh(yE,((e,t)=>{hv[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),hv.deleteProperty=function(e,t){return hv.set.call(this,e,t,void 0)},hv.set=function(e,t,n){return yE.set.call(this,e[0],t,n,e[0])};var r6=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...o){return r.produce(e,(e=>t.call(this,e,...o)))}}let r;if("function"!=typeof t&&Eo(6),void 0!==n&&"function"!=typeof n&&Eo(7),gs(e)){const o=x$(this),i=IS(e,void 0);let a=!0;try{r=t(i),a=!1}finally{a?ES(o):CS(o)}return b$(o,n),S$(r,o)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===vE&&(r=void 0),this.autoFreeze_&&gE(r,!0),n){const t=[],o=[];qf("Patches").generateReplacementPatches_(e,r,t,o),n(t,o)}return r}Eo(1,e)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;return[this.produce(e,t,((e,t)=>{n=e,r=t})),n,r]},"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof(null==e?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){gs(e)||Eo(8),vs(e)&&(e=t2(e));const t=x$(this),n=IS(e,void 0);return n[xi].isManual_=!0,CS(t),n}finishDraft(e,t){const n=e&&e[xi];(!n||!n.isManual_)&&Eo(9);const{scope_:r}=n;return b$(r,t),S$(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=qf("Patches").applyPatches_;return vs(e)?r(e,t):this.produce(e,(e=>r(e,t)))}};function IS(e,t){const n=Pv(e)?qf("MapSet").proxyMap_(e,t):Tv(e)?qf("MapSet").proxySet_(e,t):t6(e,t);return(t?t.scope_:ZA()).drafts_.push(n),n}function t2(e){return vs(e)||Eo(10,e),n2(e)}function n2(e){if(!gs(e)||vy(e))return e;const t=e[xi];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=xS(e,t.scope_.immer_.useStrictShallowCopy_)}else n=xS(e,!0);return Dh(n,((e,t)=>{JA(n,e,n2(t))})),t&&(t.finalized_=!1),n}function o6(){const e="replace",t="remove";function n(e){if(!gs(e))return e;if(Array.isArray(e))return e.map(n);if(Pv(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,n(t)])));if(Tv(e))return new Set(Array.from(e).map(n));const t=Object.create(zf(e));for(const r in e)t[r]=n(e[r]);return fv(e,rv)&&(t[rv]=e[rv]),t}function r(e){return vs(e)?n(e):e}JL("Patches",{applyPatches_:function(r,o){return o.forEach((o=>{const{path:i,op:a}=o;let u=r;for(let e=0;e<i.length-1;e++){const t=Wf(u);let n=i[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),(0===t||1===t)&&("__proto__"===n||"constructor"===n)&&Eo(19),"function"==typeof u&&"prototype"===n&&Eo(19),u=N1(u,n),"object"!=typeof u&&Eo(18,i.join("/"))}const s=Wf(u),l=n(o.value),c=i[i.length-1];switch(a){case e:switch(s){case 2:return u.set(c,l);case 3:Eo(16);default:return u[c]=l}case"add":switch(s){case 1:return"-"===c?u.push(l):u.splice(c,0,l);case 2:return u.set(c,l);case 3:return u.add(l);default:return u[c]=l}case t:switch(s){case 1:return u.splice(c,1);case 2:return u.delete(c);case 3:return u.delete(o.value);default:return delete u[c]}default:Eo(17,a)}})),r},generatePatches_:function(n,o,i,a){switch(n.type_){case 0:case 2:return function(n,o,i,a){const{base_:u,copy_:s}=n;Dh(n.assigned_,((n,l)=>{const c=N1(u,n),d=N1(s,n),f=l?fv(u,n)?e:"add":t;if(c===d&&f===e)return;const p=o.concat(n);i.push(f===t?{op:f,path:p}:{op:f,path:p,value:d}),a.push("add"===f?{op:t,path:p}:f===t?{op:"add",path:p,value:r(c)}:{op:e,path:p,value:r(c)})}))}(n,o,i,a);case 1:return function(n,o,i,a){let{base_:u,assigned_:s}=n,l=n.copy_;l.length<u.length&&([u,l]=[l,u],[i,a]=[a,i]);for(let t=0;t<u.length;t++)if(s[t]&&l[t]!==u[t]){const n=o.concat([t]);i.push({op:e,path:n,value:r(l[t])}),a.push({op:e,path:n,value:r(u[t])})}for(let e=u.length;e<l.length;e++){const t=o.concat([e]);i.push({op:"add",path:t,value:r(l[e])})}for(let e=l.length-1;u.length<=e;--e){const n=o.concat([e]);a.push({op:t,path:n})}}(n,o,i,a);case 3:return function(e,n,r,o){let{base_:i,copy_:a}=e,u=0;i.forEach((e=>{if(!a.has(e)){const i=n.concat([u]);r.push({op:t,path:i,value:e}),o.unshift({op:"add",path:i,value:e})}u++})),u=0,a.forEach((e=>{if(!i.has(e)){const i=n.concat([u]);r.push({op:"add",path:i,value:e}),o.unshift({op:t,path:i,value:e})}u++}))}(n,o,i,a)}},generateReplacementPatches_:function(t,n,r,o){r.push({op:e,path:[],value:n===vE?void 0:n}),o.push({op:e,path:[],value:t})}})}var Zi=new r6,Ov=Zi.produce,r2=Zi.produceWithPatches.bind(Zi);Zi.setAutoFreeze.bind(Zi),Zi.setUseStrictShallowCopy.bind(Zi);var C$=Zi.applyPatches.bind(Zi);function i6(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function a6(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function s6(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"==typeof e))){const n=e.map((e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}Zi.createDraft.bind(Zi),Zi.finishDraft.bind(Zi);var $$=e=>Array.isArray(e)?e:[e];function u6(e){const t=Array.isArray(e[0])?e[0]:e;return s6(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function l6(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}var c6=class{constructor(e){this.value=e}deref(){return this.value}},d6=typeof WeakRef<"u"?WeakRef:c6,f6=0,I$=1;function _g(){return{s:f6,v:void 0,o:null,p:null}}function mv(e,t={}){let n=_g();const{resultEqualityCheck:r}=t;let o,i=0;function a(){var t;let a=n;const{length:u}=arguments;for(let e=0,t=u;e<t;e++){const t=arguments[e];if("function"==typeof t||"object"==typeof t&&null!==t){let e=a.o;null===e&&(a.o=e=new WeakMap);const n=e.get(t);void 0===n?(a=_g(),e.set(t,a)):a=n}else{let e=a.p;null===e&&(a.p=e=new Map);const n=e.get(t);void 0===n?(a=_g(),e.set(t,a)):a=n}}const s=a;let l;if(a.s===I$?l=a.v:(l=e.apply(null,arguments),i++),s.s=I$,r){const e=(null==(t=null==o?void 0:o.deref)?void 0:t.call(o))??o;null!=e&&r(e,l)&&(l=e,0!==i&&i--),o="object"==typeof l&&null!==l||"function"==typeof l?new d6(l):l}return s.v=l,l}return a.clearCache=()=>{n=_g(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function o2(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,o=0,i={},a=e.pop();"object"==typeof a&&(i=a,a=e.pop()),i6(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const u={...n,...i},{memoize:s,memoizeOptions:l=[],argsMemoize:c=mv,argsMemoizeOptions:d=[],devModeChecks:f={}}=u,p=$$(l),m=$$(d),h=u6(e),v=s((function(){return r++,a.apply(null,arguments)}),...p),g=c((function(){o++;const e=l6(h,arguments);return t=v.apply(null,e),t}),...m);return Object.assign(g,{resultFunc:a,memoizedResultFunc:v,dependencies:h,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:s,argsMemoize:c})};return Object.assign(r,{withTypes:()=>r}),r}var Zn=o2(mv),p6=Object.assign(((e,t=Zn)=>{a6(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})))}),{withTypes:()=>p6}),h6=(...e)=>{const t=o2(...e),n=Object.assign(((...e)=>{const n=t(...e),r=(e,...t)=>n(vs(e)?t2(e):e,...t);return Object.assign(r,n),r}),{withTypes:()=>n});return n};h6(mv);var m6=e=>e&&"function"==typeof e.match;function Un(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(Co(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>YA(t)&&t.type===e,n}function R$(e){return gs(e)?Ov(e,(()=>{})):e}function RS(e,t,n){if(e.has(t)){let r=e.get(t);return n.update&&(r=n.update(r,t,e),e.set(t,r)),r}if(!n.insert)throw new Error(Co(10));const r=n.insert(t,e);return e.set(t,r),r}var Ym="RTK_autoBatch",Um=()=>e=>({payload:e,meta:{[Ym]:!0}});function i2(e){const t={},n=[];let r;const o={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(Co(28));if(r in t)throw new Error(Co(29));return t[r]=n,o},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(r=e,o)};return e(o),[t,n,r]}function v6(e){return"function"==typeof e}function g6(e,t){let n,[r,o,i]=i2(t);if(v6(e))n=()=>R$(e());else{const t=R$(e);n=()=>t}function a(e=n(),t){let a=[r[t.type],...o.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===a.filter((e=>!!e)).length&&(a=[i]),a.reduce(((e,n)=>{if(n){if(vs(e)){const r=n(e,t);return void 0===r?e:r}if(gs(e))return Ov(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(Co(9))}return r}}return e}),e)}return a.getInitialState=n,a}var y6="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",gy=(e=21)=>{let t="",n=e;for(;n--;)t+=y6[64*Math.random()|0];return t},a2=(e,t)=>m6(e)?e.match(t):e(t);function dd(...e){return t=>e.some((e=>a2(e,t)))}function ov(...e){return t=>e.every((e=>a2(e,t)))}function yy(e,t){if(!e||!e.meta)return!1;const n="string"==typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function Av(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function wE(...e){return 0===e.length?e=>yy(e,["pending"]):Av(e)?t=>dd(...e.map((e=>e.pending)))(t):wE()(e[0])}function Nh(...e){return 0===e.length?e=>yy(e,["rejected"]):Av(e)?t=>dd(...e.map((e=>e.rejected)))(t):Nh()(e[0])}function wy(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||Av(e)?n=>ov(Nh(...e),t)(n):wy()(e[0])}function fd(...e){return 0===e.length?e=>yy(e,["fulfilled"]):Av(e)?t=>dd(...e.map((e=>e.fulfilled)))(t):fd()(e[0])}function PS(...e){return 0===e.length?e=>yy(e,["pending","fulfilled","rejected"]):Av(e)?t=>{const n=[];for(const t of e)n.push(t.pending,t.rejected,t.fulfilled);return dd(...n)(t)}:PS()(e[0])}var w6=["name","message","stack","code"],F1=class{constructor(e,t){O1(this,"_type"),this.payload=e,this.meta=t}},P$=class{constructor(e,t){O1(this,"_type"),this.payload=e,this.meta=t}},_6=e=>{if("object"==typeof e&&null!==e){const t={};for(const n of w6)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},T$=(()=>{function e(e,t,n){const r=Un(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),o=Un(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),i=Un(e+"/rejected",((e,t,r,o,i)=>({payload:o,error:(n&&n.serializeError||_6)(e||"Rejected"),meta:{...i||{},arg:r,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)}})));return Object.assign((function(e){return(a,u,s)=>{const l=null!=n&&n.idGenerator?n.idGenerator(e):gy(),c=new AbortController;let d,f;function p(e){f=e,c.abort()}const m=async function(){var m,h;let v;try{let i=null==(m=null==n?void 0:n.condition)?void 0:m.call(n,e,{getState:u,extra:s});if(x6(i)&&(i=await i),!1===i||c.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const g=new Promise(((e,t)=>{d=()=>{t({name:"AbortError",message:f||"Aborted"})},c.signal.addEventListener("abort",d)}));a(o(l,e,null==(h=null==n?void 0:n.getPendingMeta)?void 0:h.call(n,{requestId:l,arg:e},{getState:u,extra:s}))),v=await Promise.race([g,Promise.resolve(t(e,{dispatch:a,getState:u,extra:s,requestId:l,signal:c.signal,abort:p,rejectWithValue:(e,t)=>new F1(e,t),fulfillWithValue:(e,t)=>new P$(e,t)})).then((t=>{if(t instanceof F1)throw t;return t instanceof P$?r(t.payload,l,e,t.meta):r(t,l,e)}))])}catch(t){v=t instanceof F1?i(null,l,e,t.payload,t.meta):i(t,l,e)}finally{d&&c.signal.removeEventListener("abort",d)}return n&&!n.dispatchConditionRejection&&i.match(v)&&v.meta.condition||a(v),v}();return Object.assign(m,{abort:p,requestId:l,arg:e,unwrap:()=>m.then(b6)})}}),{pending:o,rejected:i,fulfilled:r,settled:dd(i,r),typePrefix:e})}return e.withTypes=()=>e,e})();function b6(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function x6(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}var S6=Symbol.for("rtk-slice-createasyncthunk");function E6(e,t){return`${e}/${t}`}function C6({creators:e}={}){var t;const n=null==(t=null==e?void 0:e.asyncThunk)?void 0:t[S6];return function(e){const{name:t,reducerPath:r=t}=e;if(!t)throw new Error(Co(11));const o=("function"==typeof e.reducers?e.reducers(I6()):e.reducers)||{},i=Object.keys(o),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(Co(12));if(n in a.sliceCaseReducersByType)throw new Error(Co(13));return a.sliceCaseReducersByType[n]=t,u},addMatcher:(e,t)=>(a.sliceMatchers.push({matcher:e,reducer:t}),u),exposeAction:(e,t)=>(a.actionCreators[e]=t,u),exposeCaseReducer:(e,t)=>(a.sliceCaseReducersByName[e]=t,u)};function s(){const[t={},n=[],r]="function"==typeof e.extraReducers?i2(e.extraReducers):[e.extraReducers],o={...t,...a.sliceCaseReducersByType};return g6(e.initialState,(e=>{for(let t in o)e.addCase(t,o[t]);for(let t of a.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)}))}i.forEach((r=>{const i=o[r],a={reducerName:r,type:E6(t,r),createNotation:"function"==typeof e.reducers};P6(i)?O6(a,i,u,n):R6(a,i,u)}));const l=e=>e,c=new Map;let d;function f(e,t){return d||(d=s()),d(e,t)}function p(){return d||(d=s()),d.getInitialState()}function m(t,n=!1){function r(e){let r=e[t];return typeof r>"u"&&n&&(r=p()),r}function o(t=l){const r=RS(c,n,{insert:()=>new WeakMap});return RS(r,t,{insert:()=>{const r={};for(const[o,i]of Object.entries(e.selectors??{}))r[o]=$6(i,t,p,n);return r}})}return{reducerPath:t,getSelectors:o,get selectors(){return o(r)},selectSlice:r}}const h={name:t,reducer:f,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:p,...m(r),injectInto(e,{reducerPath:t,...n}={}){const o=t??r;return e.inject({reducerPath:o,reducer:f},n),{...h,...m(o,!0)}}};return h}}function $6(e,t,n,r){function o(o,...i){let a=t(o);return typeof a>"u"&&r&&(a=n()),e(a,...i)}return o.unwrapped=e,o}var So=C6();function I6(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}function R6({type:e,reducerName:t,createNotation:n},r,o){let i,a;if("reducer"in r){if(n&&!T6(r))throw new Error(Co(17));i=r.reducer,a=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?Un(e,a):Un(e))}function P6(e){return"asyncThunk"===e._reducerDefinitionType}function T6(e){return"reducerWithPrepare"===e._reducerDefinitionType}function O6({type:e,reducerName:t},n,r,o){if(!o)throw new Error(Co(18));const{payloadCreator:i,fulfilled:a,pending:u,rejected:s,settled:l,options:c}=n,d=o(e,i,c);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a),u&&r.addCase(d.pending,u),s&&r.addCase(d.rejected,s),l&&r.addMatcher(d.settled,l),r.exposeCaseReducer(t,{fulfilled:a||bg,pending:u||bg,rejected:s||bg,settled:l||bg})}function bg(){}var A6=(e,t)=>{if("function"!=typeof e)throw new Error(Co(32))},_E="listenerMiddleware",k6=e=>{let{type:t,actionCreator:n,matcher:r,predicate:o,effect:i}=e;if(t)o=Un(t).match;else if(n)t=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(Co(21));return A6(i),{predicate:o,type:t,effect:i}},D6=Object.assign((e=>{const{type:t,predicate:n,effect:r}=k6(e);return{id:gy(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Co(22))}}}),{withTypes:()=>D6}),N6=Object.assign(Un(`${_E}/add`),{withTypes:()=>N6});Un(`${_E}/removeAll`);var M6=Object.assign(Un(`${_E}/remove`),{withTypes:()=>M6}),L6=e=>"reducerPath"in e&&"string"==typeof e.reducerPath,F6=e=>e.flatMap((e=>L6(e)?[[e.reducerPath,e.reducer]]:Object.entries(e))),bE=Symbol.for("rtk-state-proxy-original"),B6=e=>!!e&&!!e[bE],j6=new WeakMap,V6=(e,t)=>RS(j6,e,{insert:()=>new Proxy(e,{get:(e,n,r)=>{if(n===bE)return e;const o=Reflect.get(e,n,r);if(typeof o>"u"){const e=t[n.toString()];if(e){const t=e(void 0,{type:gy()});if(typeof t>"u")throw new Error(Co(24));return t}}return o}})}),U6=e=>{if(!B6(e))throw new Error(Co(25));return e[bE]},z6=(e={})=>e;function W6(...e){const t=Object.fromEntries(F6(e)),n=()=>Object.keys(t).length?QA(t):z6;let r=n();function o(e,t){return r(e,t)}o.withLazyLoadedSlices=()=>o;const i=Object.assign((function(e,n){return function(r,...o){return e(V6(n?n(r,...o):r,t),...o)}}),{original:U6});return Object.assign(o,{inject:(e,i={})=>{const{reducerPath:a,reducer:u}=e,s=t[a];return!i.overrideExisting&&s&&s!==u||(t[a]=u,r=n()),o},selector:i})}function Co(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const s2=()=>c2()?location.hostname:location.hostname.replace(/\w\w\w\.|^/,"."),u2=e=>{const t=new Date;return t.setTime(t.getTime()+24*e*60*60*1e3),t.toUTCString()},l2=e=>Object.keys(e).reduce(((t,n)=>`${t}${n}${!0===e[n]?"":`=${e[n]}`};`),""),q6=(e,t)=>{const n=my()?"":document.cookie,r=`; ${t||n}`.split(`; ${e}=`);if(2===r.length)return(r.pop()||"").replace("=","").split(";").shift()},G6=(e,t)=>{my()||(document.cookie=l2({[e]:"",path:"/",domain:t||s2(),expires:"Thu, 01 Jan 1970 00:00:01 GMT"}))},H6=["localhost","127.0.0.1","dev.localtest.me","wellesleydev.localtest.me"],c2=()=>H6.includes(location.hostname),K6=(e,t="",n=10,r)=>{my()||(document.cookie=l2({[e]:t,path:"/",domain:r||s2(),expires:u2(n),...!c2()&&{SameSite:"None",Secure:!0}}))},xE={set:K6,remove:G6,get:q6,getExpireDate:u2},SE="auth_token",d2=()=>xE.get(SE)||void 0,Q6=e=>xE.set(SE,e),Y6=()=>xE.remove(SE),X6=()=>!!d2(),EE={getToken:d2,setToken:Q6,removeToken:Y6,hasToken:X6},O$={forgotPasswordStep:"request",forgotPasswordFields:null,signupStep:"rules",signupFields:null,token:null,newEmail:null,isPending:!!EE.getToken(),isAuthenticated:!1,isAskLoginOpen:!1},f2=So({name:"auth",initialState:O$,reducers:{setAskLoginOpen:(e,t)=>{e.isAskLoginOpen=t.payload},login:(e,t)=>{e.isAuthenticated=!0,e.token=t.payload||null,e.isPending=!1},logout:()=>({...O$,isPending:!1}),setNewEmail:(e,t)=>{e.newEmail=t.payload},setForgotPasswordStep:(e,t)=>{e.forgotPasswordStep=t.payload},updateForgotPasswordFields:(e,t)=>{e.forgotPasswordFields={...e.forgotPasswordFields,...t.payload}},resetForgotPasswordFields:e=>{e.forgotPasswordFields=null},setSignupStep:(e,t)=>{e.signupStep=t.payload},updateSignupFields:(e,t)=>{e.signupFields={...e.signupFields,...t.payload}},resetSignupFields:e=>{e.signupFields=null},setPending:(e,t)=>{e.isPending=t.payload}},selectors:{selectAskLoginOpen:e=>e.isAskLoginOpen,selectToken:e=>e.token,selectNewEmail:e=>e.newEmail,selectForgotPasswordStep:e=>e.forgotPasswordStep,selectForgotPasswordFields:e=>e.forgotPasswordFields,selectSignupStep:e=>e.signupStep,selectSignupFields:e=>e.signupFields,selectPending:e=>e.isPending,selectIsAuthenticated:e=>e.isAuthenticated}});var A$,k$,B1={exports:{}},j1={};
|
|
20
20
|
/**
|
|
21
21
|
* @license React
|
|
22
22
|
* use-sync-external-store-with-selector.production.min.js
|
|
@@ -25,7 +25,7 @@ var fL=Object.defineProperty,pL=(e,t,n)=>t in e?fL(e,t,{enumerable:!0,configurab
|
|
|
25
25
|
*
|
|
26
26
|
* This source code is licensed under the MIT license found in the
|
|
27
27
|
* LICENSE file in the root directory of this source tree.
|
|
28
|
-
*/function
|
|
28
|
+
*/function J6(){if(A$)return j1;A$=1;var e=hy();var t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useSyncExternalStore,r=e.useRef,o=e.useEffect,i=e.useMemo,a=e.useDebugValue;return j1.useSyncExternalStoreWithSelector=function(e,u,s,l,c){var d=r(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=i((function(){function e(e){if(!o){if(o=!0,n=e,e=l(e),void 0!==c&&f.hasValue){var i=f.value;if(c(i,e))return r=i}return r=e}if(i=r,t(n,e))return i;var a=l(e);return void 0!==c&&c(i,a)?i:(n=e,r=a)}var n,r,o=!1,i=void 0===s?null:s;return[function(){return e(u())},null===i?void 0:function(){return e(i())}]}),[u,s,l,c]);var p=n(e,d[0],d[1]);return o((function(){f.hasValue=!0,f.value=p}),[p]),a(p),p},j1}function Z6(){return k$||(k$=1,B1.exports=J6()),B1.exports}var e5=Z6(),du="default"in Qg?We:Qg,D$=Symbol.for("react-redux-context"),N$=typeof globalThis<"u"?globalThis:{};function t5(){if(!du.createContext)return{};const e=N$[D$]??(N$[D$]=new Map);let t=e.get(du.createContext);return t||(t=du.createContext(null),e.set(du.createContext,t)),t}var Gf=t5(),n5=()=>{throw new Error("uSES not initialized!")};function CE(e=Gf){return function(){return du.useContext(e)}}var p2=CE(),h2=n5,r5=e=>{h2=e},o5=(e,t)=>e===t;function i5(e=Gf){const t=e===Gf?p2:CE(e),n=(e,n={})=>{const{equalityFn:r=o5,devModeChecks:o={}}="function"==typeof n?{equalityFn:n}:n,{store:i,subscription:a,getServerState:u,stabilityCheck:s,identityFunctionCheck:l}=t();du.useRef(!0);const c=du.useCallback({[e.name]:t=>e(t)}[e.name],[e,s,o.stabilityCheck]),d=h2(a.addNestedSub,i.getState,u||i.getState,c,r);return du.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var _y=i5();function a5(e){e()}var s5=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function M$(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function iv(e,t){if(M$(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!M$(e[n[r]],t[n[r]]))return!1;return!0}function m2(e=Gf){const t=e===Gf?p2:CE(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}s5?du.useLayoutEffect:du.useEffect;var v2=m2();function u5(e=Gf){const t=e===Gf?v2:m2(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var l5=u5(),c5=a5;r5(e5.useSyncExternalStoreWithSelector);var L$,Xm={exports:{}},d5=Xm.exports;
|
|
29
29
|
/**
|
|
30
30
|
* @license
|
|
31
31
|
* Lodash <https://lodash.com/>
|
|
@@ -33,31 +33,31 @@ var fL=Object.defineProperty,pL=(e,t,n)=>t in e?fL(e,t,{enumerable:!0,configurab
|
|
|
33
33
|
* Released under MIT license <https://lodash.com/license>
|
|
34
34
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
35
35
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
36
|
-
*/function f6(){return L$||(L$=1,e=Xm,t=Xm.exports,function(){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function r(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function o(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function i(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function a(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function u(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function s(e,t){return!(null==e||!e.length)&&g(e,t,0)>-1}function l(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function c(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function d(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function f(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function p(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function m(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function h(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function v(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function g(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):v(e,b,n)}function y(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function b(e){return e!=e}function w(e,t){var n=null==e?0:e.length;return n?S(e,t)/n:J}function x(e){return function(t){return null==t?V:t[e]}}function _(e){return function(t){return null==e?V:e[t]}}function E(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function S(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);i!==V&&(n=n===V?i:n+i)}return n}function A(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function k(e){return e&&e.slice(0,B(e)+1).replace(Ge,"")}function C(e){return function(t){return e(t)}}function I(e,t){return c(t,(function(t){return e[t]}))}function P(e,t){return e.has(t)}function R(e,t){for(var n=-1,r=e.length;++n<r&&g(t,e[n],0)>-1;);return n}function O(e,t){for(var n=e.length;n--&&g(t,e[n],0)>-1;);return n}function T(e){return"\\"+Qt[e]}function N(e){return Ft.test(e)}function j(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function q(e,t){return function(n){return e(t(n))}}function D(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==U||(e[n]=U,i[o++]=n)}return i}function M(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function L(e){return N(e)?function(e){for(var t=Vt.lastIndex=0;Vt.test(e);)++t;return t}(e):pn(e)}function $(e){return N(e)?function(e){return e.match(Vt)||[]}(e):function(e){return e.split("")}(e)}function B(e){for(var t=e.length;t--&&We.test(e.charAt(t)););return t}var V,z="Expected a function",F="__lodash_hash_undefined__",U="__lodash_placeholder__",G=16,W=32,H=64,K=128,Q=256,Y=1/0,X=9007199254740991,J=NaN,Z=4294967295,ee=Z-1,te=Z>>>1,ne=[["ary",K],["bind",1],["bindKey",2],["curry",8],["curryRight",G],["flip",512],["partial",W],["partialRight",H],["rearg",Q]],re="[object Arguments]",oe="[object Array]",ie="[object Boolean]",ae="[object Date]",ue="[object Error]",se="[object Function]",le="[object GeneratorFunction]",ce="[object Map]",de="[object Number]",fe="[object Object]",pe="[object Promise]",me="[object RegExp]",he="[object Set]",ve="[object String]",ge="[object Symbol]",ye="[object WeakMap]",be="[object ArrayBuffer]",we="[object DataView]",xe="[object Float32Array]",_e="[object Float64Array]",Ee="[object Int8Array]",Se="[object Int16Array]",Ae="[object Int32Array]",ke="[object Uint8Array]",Ce="[object Uint8ClampedArray]",Ie="[object Uint16Array]",Pe="[object Uint32Array]",Re=/\b__p \+= '';/g,Oe=/\b(__p \+=) '' \+/g,Te=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ne=/&(?:amp|lt|gt|quot|#39);/g,je=/[&<>"']/g,qe=RegExp(Ne.source),De=RegExp(je.source),Me=/<%-([\s\S]+?)%>/g,Le=/<%([\s\S]+?)%>/g,$e=/<%=([\s\S]+?)%>/g,Be=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ve=/^\w*$/,ze=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fe=/[\\^$.*+?()[\]{}|]/g,Ue=RegExp(Fe.source),Ge=/^\s+/,We=/\s/,He=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ke=/\{\n\/\* \[wrapped with (.+)\] \*/,Qe=/,? & /,Ye=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Xe=/[()=,{}\[\]\/\s]/,Je=/\\(\\)?/g,Ze=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,et=/\w*$/,tt=/^[-+]0x[0-9a-f]+$/i,nt=/^0b[01]+$/i,rt=/^\[object .+?Constructor\]$/,ot=/^0o[0-7]+$/i,it=/^(?:0|[1-9]\d*)$/,at=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ut=/($^)/,st=/['\n\r\u2028\u2029\\]/g,lt="\\ud800-\\udfff",ct="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",dt="\\u2700-\\u27bf",ft="a-z\\xdf-\\xf6\\xf8-\\xff",pt="A-Z\\xc0-\\xd6\\xd8-\\xde",mt="\\ufe0e\\ufe0f",ht="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",vt="['’]",gt="["+lt+"]",yt="["+ht+"]",bt="["+ct+"]",wt="\\d+",xt="["+dt+"]",_t="["+ft+"]",Et="[^"+lt+ht+wt+dt+ft+pt+"]",St="\\ud83c[\\udffb-\\udfff]",At="[^"+lt+"]",kt="(?:\\ud83c[\\udde6-\\uddff]){2}",Ct="[\\ud800-\\udbff][\\udc00-\\udfff]",It="["+pt+"]",Pt="\\u200d",Rt="(?:"+_t+"|"+Et+")",Ot="(?:"+It+"|"+Et+")",Tt="(?:['’](?:d|ll|m|re|s|t|ve))?",Nt="(?:['’](?:D|LL|M|RE|S|T|VE))?",jt="(?:"+bt+"|"+St+")?",qt="["+mt+"]?",Dt=qt+jt+"(?:"+Pt+"(?:"+[At,kt,Ct].join("|")+")"+qt+jt+")*",Mt="(?:"+[xt,kt,Ct].join("|")+")"+Dt,Lt="(?:"+[At+bt+"?",bt,kt,Ct,gt].join("|")+")",$t=RegExp(vt,"g"),Bt=RegExp(bt,"g"),Vt=RegExp(St+"(?="+St+")|"+Lt+Dt,"g"),zt=RegExp([It+"?"+_t+"+"+Tt+"(?="+[yt,It,"$"].join("|")+")",Ot+"+"+Nt+"(?="+[yt,It+Rt,"$"].join("|")+")",It+"?"+Rt+"+"+Tt,It+"+"+Nt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",wt,Mt].join("|"),"g"),Ft=RegExp("["+Pt+lt+ct+mt+"]"),Ut=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Gt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Wt=-1,Ht={};Ht[xe]=Ht[_e]=Ht[Ee]=Ht[Se]=Ht[Ae]=Ht[ke]=Ht[Ce]=Ht[Ie]=Ht[Pe]=!0,Ht[re]=Ht[oe]=Ht[be]=Ht[ie]=Ht[we]=Ht[ae]=Ht[ue]=Ht[se]=Ht[ce]=Ht[de]=Ht[fe]=Ht[me]=Ht[he]=Ht[ve]=Ht[ye]=!1;var Kt={};Kt[re]=Kt[oe]=Kt[be]=Kt[we]=Kt[ie]=Kt[ae]=Kt[xe]=Kt[_e]=Kt[Ee]=Kt[Se]=Kt[Ae]=Kt[ce]=Kt[de]=Kt[fe]=Kt[me]=Kt[he]=Kt[ve]=Kt[ge]=Kt[ke]=Kt[Ce]=Kt[Ie]=Kt[Pe]=!0,Kt[ue]=Kt[se]=Kt[ye]=!1;var Qt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Yt=parseFloat,Xt=parseInt,Jt="object"==typeof ka&&ka&&ka.Object===Object&&ka,Zt="object"==typeof self&&self&&self.Object===Object&&self,en=Jt||Zt||Function("return this")(),tn=t&&!t.nodeType&&t,nn=tn&&e&&!e.nodeType&&e,rn=nn&&nn.exports===tn,on=rn&&Jt.process,an=function(){try{return nn&&nn.require&&nn.require("util").types||on&&on.binding&&on.binding("util")}catch{}}(),un=an&&an.isArrayBuffer,sn=an&&an.isDate,ln=an&&an.isMap,cn=an&&an.isRegExp,dn=an&&an.isSet,fn=an&&an.isTypedArray,pn=x("length"),mn=_({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),hn=_({"&":"&","<":"<",">":">",'"':""","'":"'"}),vn=_({"&":"&","<":"<",">":">",""":'"',"'":"'"}),gn=function e(t){function _(e){if(Lo(e)&&!Iu(e)&&!(e instanceof ct)){if(e instanceof lt)return e;if(Ii.call(e,"__wrapped__"))return lo(e)}return new lt(e)}function We(){}function lt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=V}function ct(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Z,this.__views__=[]}function dt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ft(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function pt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function mt(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new pt;++t<n;)this.add(e[t])}function ht(e){this.size=(this.__data__=new ft(e)).size}function vt(e,t){var n=Iu(e),r=!n&&Cu(e),o=!n&&!r&&Ru(e),i=!n&&!r&&!o&&qu(e),a=n||r||o||i,u=a?A(e.length,xi):[],s=u.length;for(var l in e)!t&&!Ii.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Kr(l,s))||u.push(l);return u}function gt(e){var t=e.length;return t?e[Nn(0,t-1)]:V}function yt(e,t){return ao(cr(e),Ct(t,0,e.length))}function bt(e){return ao(cr(e))}function wt(e,t,n){(n===V||Ro(e[t],n))&&(n!==V||t in e)||At(e,t,n)}function xt(e,t,n){var r=e[t];Ii.call(e,t)&&Ro(r,n)&&(n!==V||t in e)||At(e,t,n)}function _t(e,t){for(var n=e.length;n--;)if(Ro(e[n][0],t))return n;return-1}function Et(e,t,n,r){return ka(e,(function(e,o,i){t(r,e,n(e),i)})),r}function St(e,t){return e&&dr(t,Jo(t),e)}function At(e,t,n){"__proto__"==t&&Wi?Wi(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function kt(e,t){for(var n=-1,r=t.length,o=mi(r),i=null==e;++n<r;)o[n]=i?V:Yo(e,t[n]);return o}function Ct(e,t,n){return e==e&&(n!==V&&(e=e<=n?e:n),t!==V&&(e=e>=t?e:t)),e}function It(e,t,n,r,i,a){var u,s=1&t,l=2&t,c=4&t;if(n&&(u=i?n(e,r,i,a):n(e)),u!==V)return u;if(!Mo(e))return e;var d=Iu(e);if(d){if(u=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ii.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return cr(e,u)}else{var f=La(e),p=f==se||f==le;if(Ru(e))return or(e,s);if(f==fe||f==re||p&&!i){if(u=l||p?{}:Wr(e),!s)return l?function(e,t){return dr(e,Ma(e),t)}(e,function(e,t){return e&&dr(t,Zo(t),e)}(u,e)):function(e,t){return dr(e,Da(e),t)}(e,St(u,e))}else{if(!Kt[f])return i?e:{};u=function(e,t,n){var r=e.constructor;switch(t){case be:return ir(e);case ie:case ae:return new r(+e);case we:return function(e,t){return new e.constructor(t?ir(e.buffer):e.buffer,e.byteOffset,e.byteLength)}(e,n);case xe:case _e:case Ee:case Se:case Ae:case ke:case Ce:case Ie:case Pe:return ar(e,n);case ce:return new r;case de:case ve:return new r(e);case me:return function(e){var t=new e.constructor(e.source,et.exec(e));return t.lastIndex=e.lastIndex,t}(e);case he:return new r;case ge:return function(e){return Ea?bi(Ea.call(e)):{}}(e)}}(e,f,s)}}a||(a=new ht);var m=a.get(e);if(m)return m;a.set(e,u),ju(e)?e.forEach((function(r){u.add(It(r,t,n,r,e,a))})):Tu(e)&&e.forEach((function(r,o){u.set(o,It(r,t,n,o,e,a))}));var h=d?V:(c?l?Lr:Mr:l?Zo:Jo)(e);return o(h||e,(function(r,o){h&&(r=e[o=r]),xt(u,o,It(r,t,n,o,e,a))})),u}function Pt(e,t,n){var r=n.length;if(null==e)return!r;for(e=bi(e);r--;){var o=n[r],i=t[o],a=e[o];if(a===V&&!(o in e)||!i(a))return!1}return!0}function Rt(e,t,n){if("function"!=typeof e)throw new _i(z);return Va((function(){e.apply(V,n)}),t)}function Ot(e,t,n,r){var o=-1,i=s,a=!0,u=e.length,d=[],f=t.length;if(!u)return d;n&&(t=c(t,C(n))),r?(i=l,a=!1):t.length>=200&&(i=P,a=!1,t=new mt(t));e:for(;++o<u;){var p=e[o],m=null==n?p:n(p);if(p=r||0!==p?p:0,a&&m==m){for(var h=f;h--;)if(t[h]===m)continue e;d.push(p)}else i(t,m,r)||d.push(p)}return d}function Tt(e,t){var n=!0;return ka(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function Nt(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(u===V?a==a&&!zo(a):n(a,u)))var u=a,s=i}return s}function jt(e,t){var n=[];return ka(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function qt(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=Hr),o||(o=[]);++i<a;){var u=e[i];t>0&&n(u)?t>1?qt(u,t-1,n,r,o):d(o,u):r||(o[o.length]=u)}return o}function Dt(e,t){return e&&Ia(e,t,Jo)}function Mt(e,t){return e&&Pa(e,t,Jo)}function Lt(e,t){return u(t,(function(t){return jo(e[t])}))}function Vt(e,t){for(var n=0,r=(t=nr(t,e)).length;null!=e&&n<r;)e=e[uo(t[n++])];return n&&n==r?e:V}function Ft(e,t,n){var r=t(e);return Iu(e)?r:d(r,n(e))}function Qt(e){return null==e?e===V?"[object Undefined]":"[object Null]":Gi&&Gi in bi(e)?function(e){var t=Ii.call(e,Gi),n=e[Gi];try{e[Gi]=V;var r=!0}catch{}var o=Oi.call(e);return r&&(t?e[Gi]=n:delete e[Gi]),o}(e):function(e){return Oi.call(e)}(e)}function Jt(e,t){return e>t}function Zt(e,t){return null!=e&&Ii.call(e,t)}function tn(e,t){return null!=e&&t in bi(e)}function nn(e,t,n){for(var r=n?l:s,o=e[0].length,i=e.length,a=i,u=mi(i),d=1/0,f=[];a--;){var p=e[a];a&&t&&(p=c(p,C(t))),d=oa(p.length,d),u[a]=!n&&(t||o>=120&&p.length>=120)?new mt(a&&p):V}p=e[0];var m=-1,h=u[0];e:for(;++m<o&&f.length<d;){var v=p[m],g=t?t(v):v;if(v=n||0!==v?v:0,!(h?P(h,g):r(f,g,n))){for(a=i;--a;){var y=u[a];if(!(y?P(y,g):r(e[a],g,n)))continue e}h&&h.push(g),f.push(v)}}return f}function on(e,t,r){var o=null==(e=no(e,t=nr(t,e)))?e:e[uo(ho(t))];return null==o?V:n(o,e,r)}function an(e){return Lo(e)&&Qt(e)==re}function pn(e,t,n,r,o){return e===t||(null==e||null==t||!Lo(e)&&!Lo(t)?e!=e&&t!=t:function(e,t,n,r,o,i){var a=Iu(e),u=Iu(t),s=a?oe:La(e),l=u?oe:La(t),c=(s=s==re?fe:s)==fe,d=(l=l==re?fe:l)==fe,f=s==l;if(f&&Ru(e)){if(!Ru(t))return!1;a=!0,c=!1}if(f&&!c)return i||(i=new ht),a||qu(e)?qr(e,t,n,r,o,i):function(e,t,n,r,o,i,a){switch(n){case we:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case be:return!(e.byteLength!=t.byteLength||!i(new Mi(e),new Mi(t)));case ie:case ae:case de:return Ro(+e,+t);case ue:return e.name==t.name&&e.message==t.message;case me:case ve:return e==t+"";case ce:var u=j;case he:var s=1&r;if(u||(u=M),e.size!=t.size&&!s)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var c=qr(u(e),u(t),r,o,i,a);return a.delete(e),c;case ge:if(Ea)return Ea.call(e)==Ea.call(t)}return!1}(e,t,s,n,r,o,i);if(!(1&n)){var p=c&&Ii.call(e,"__wrapped__"),m=d&&Ii.call(t,"__wrapped__");if(p||m){var h=p?e.value():e,v=m?t.value():t;return i||(i=new ht),o(h,v,n,r,i)}}return!!f&&(i||(i=new ht),function(e,t,n,r,o,i){var a=1&n,u=Mr(e),s=u.length;if(s!=Mr(t).length&&!a)return!1;for(var l=s;l--;){var c=u[l];if(!(a?c in t:Ii.call(t,c)))return!1}var d=i.get(e),f=i.get(t);if(d&&f)return d==t&&f==e;var p=!0;i.set(e,t),i.set(t,e);for(var m=a;++l<s;){var h=e[c=u[l]],v=t[c];if(r)var g=a?r(v,h,c,t,e,i):r(h,v,c,e,t,i);if(!(g===V?h===v||o(h,v,n,r,i):g)){p=!1;break}m||(m="constructor"==c)}if(p&&!m){var y=e.constructor,b=t.constructor;y!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b)&&(p=!1)}return i.delete(e),i.delete(t),p}(e,t,n,r,o,i))}(e,t,n,r,pn,o))}function yn(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=bi(e);o--;){var u=n[o];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<i;){var s=(u=n[o])[0],l=e[s],c=u[1];if(a&&u[2]){if(l===V&&!(s in e))return!1}else{var d=new ht;if(r)var f=r(l,c,s,e,t,d);if(!(f===V?pn(c,l,3,r,d):f))return!1}}return!0}function bn(e){return!(!Mo(e)||function(e){return!!Ri&&Ri in e}(e))&&(jo(e)?ji:rt).test(so(e))}function wn(e){return"function"==typeof e?e:null==e?ai:"object"==typeof e?Iu(e)?kn(e[0],e[1]):An(e):ci(e)}function xn(e){if(!Jr(e))return na(e);var t=[];for(var n in bi(e))Ii.call(e,n)&&"constructor"!=n&&t.push(n);return t}function _n(e){if(!Mo(e))return function(e){var t=[];if(null!=e)for(var n in bi(e))t.push(n);return t}(e);var t=Jr(e),n=[];for(var r in e)("constructor"!=r||!t&&Ii.call(e,r))&&n.push(r);return n}function En(e,t){return e<t}function Sn(e,t){var n=-1,r=Oo(e)?mi(e.length):[];return ka(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}function An(e){var t=Fr(e);return 1==t.length&&t[0][2]?eo(t[0][0],t[0][1]):function(n){return n===e||yn(n,e,t)}}function kn(e,t){return Yr(e)&&Zr(t)?eo(uo(e),t):function(n){var r=Yo(n,e);return r===V&&r===t?Xo(n,e):pn(t,r,3)}}function Cn(e,t,n,r,o){e!==t&&Ia(t,(function(i,a){if(o||(o=new ht),Mo(i))!function(e,t,n,r,o,i,a){var u=ro(e,n),s=ro(t,n),l=a.get(s);if(l)return wt(e,n,l),V;var c=i?i(u,s,n+"",e,t,a):V,d=c===V;if(d){var f=Iu(s),p=!f&&Ru(s),m=!f&&!p&&qu(s);c=s,f||p||m?Iu(u)?c=u:To(u)?c=cr(u):p?(d=!1,c=or(s,!0)):m?(d=!1,c=ar(s,!0)):c=[]:Bo(s)||Cu(s)?(c=u,Cu(u)?c=Ko(u):Mo(u)&&!jo(u)||(c=Wr(s))):d=!1}d&&(a.set(s,c),o(c,s,r,i,a),a.delete(s)),wt(e,n,c)}(e,t,a,n,Cn,r,o);else{var u=r?r(ro(e,a),i,a+"",e,t,o):V;u===V&&(u=i),wt(e,a,u)}}),Zo)}function In(e,t){var n=e.length;if(n)return Kr(t+=t<0?n:0,n)?e[t]:V}function Pn(e,t,n){t=t.length?c(t,(function(e){return Iu(e)?function(t){return Vt(t,1===e.length?e[0]:e)}:e})):[ai];var r=-1;return t=c(t,C(Vr())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Sn(e,(function(e,n,o){return{criteria:c(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,u=n.length;++r<a;){var s=ur(o[r],i[r]);if(s)return r>=u?s:s*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Rn(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],u=Vt(e,a);n(u,a)&&Ln(i,nr(a,e),u)}return i}function On(e,t,n,r){var o=r?y:g,i=-1,a=t.length,u=e;for(e===t&&(t=cr(t)),n&&(u=c(e,C(n)));++i<a;)for(var s=0,l=t[i],d=n?n(l):l;(s=o(u,d,s,r))>-1;)u!==e&&zi.call(u,s,1),zi.call(e,s,1);return e}function Tn(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Kr(o)?zi.call(e,o,1):Kn(e,o)}}return e}function Nn(e,t){return e+Xi(ua()*(t-e+1))}function jn(e,t){var n="";if(!e||t<1||t>X)return n;do{t%2&&(n+=e),(t=Xi(t/2))&&(e+=e)}while(t);return n}function qn(e,t){return za(to(e,t,ai),e+"")}function Dn(e){return gt(ti(e))}function Mn(e,t){var n=ti(e);return ao(n,Ct(t,0,n.length))}function Ln(e,t,n,r){if(!Mo(e))return e;for(var o=-1,i=(t=nr(t,e)).length,a=i-1,u=e;null!=u&&++o<i;){var s=uo(t[o]),l=n;if("__proto__"===s||"constructor"===s||"prototype"===s)return e;if(o!=a){var c=u[s];(l=r?r(c,s,u):V)===V&&(l=Mo(c)?c:Kr(t[o+1])?[]:{})}xt(u,s,l),u=u[s]}return e}function $n(e){return ao(ti(e))}function Bn(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=mi(o);++r<o;)i[r]=e[r+t];return i}function Vn(e,t){var n;return ka(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function zn(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=te){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!zo(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return Fn(e,t,ai,n)}function Fn(e,t,n,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;for(var a=(t=n(t))!=t,u=null===t,s=zo(t),l=t===V;o<i;){var c=Xi((o+i)/2),d=n(e[c]),f=d!==V,p=null===d,m=d==d,h=zo(d);if(a)var v=r||m;else v=l?m&&(r||f):u?m&&f&&(r||!p):s?m&&f&&!p&&(r||!h):!p&&!h&&(r?d<=t:d<t);v?o=c+1:i=c}return oa(i,ee)}function Un(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],u=t?t(a):a;if(!n||!Ro(u,s)){var s=u;i[o++]=0===a?0:a}}return i}function Gn(e){return"number"==typeof e?e:zo(e)?J:+e}function Wn(e){if("string"==typeof e)return e;if(Iu(e))return c(e,Wn)+"";if(zo(e))return Sa?Sa.call(e):"";var t=e+"";return"0"==t&&1/e==-Y?"-0":t}function Hn(e,t,n){var r=-1,o=s,i=e.length,a=!0,u=[],c=u;if(n)a=!1,o=l;else if(i>=200){var d=t?null:ja(e);if(d)return M(d);a=!1,o=P,c=new mt}else c=t?[]:u;e:for(;++r<i;){var f=e[r],p=t?t(f):f;if(f=n||0!==f?f:0,a&&p==p){for(var m=c.length;m--;)if(c[m]===p)continue e;t&&c.push(p),u.push(f)}else o(c,p,n)||(c!==u&&c.push(p),u.push(f))}return u}function Kn(e,t){return null==(e=no(e,t=nr(t,e)))||delete e[uo(ho(t))]}function Qn(e,t,n,r){return Ln(e,t,n(Vt(e,t)),r)}function Yn(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?Bn(e,r?0:i,r?i+1:o):Bn(e,r?i+1:0,r?o:i)}function Xn(e,t){var n=e;return n instanceof ct&&(n=n.value()),f(t,(function(e,t){return t.func.apply(t.thisArg,d([e],t.args))}),n)}function Jn(e,t,n){var r=e.length;if(r<2)return r?Hn(e[0]):[];for(var o=-1,i=mi(r);++o<r;)for(var a=e[o],u=-1;++u<r;)u!=o&&(i[o]=Ot(i[o]||a,e[u],t,n));return Hn(qt(i,1),t,n)}function Zn(e,t,n){for(var r=-1,o=e.length,i=t.length,a={};++r<o;)n(a,e[r],r<i?t[r]:V);return a}function er(e){return To(e)?e:[]}function tr(e){return"function"==typeof e?e:ai}function nr(e,t){return Iu(e)?e:Yr(e,t)?[e]:Fa(Qo(e))}function rr(e,t,n){var r=e.length;return n=n===V?r:n,!t&&n>=r?e:Bn(e,t,n)}function or(e,t){if(t)return e.slice();var n=e.length,r=Li?Li(n):new e.constructor(n);return e.copy(r),r}function ir(e){var t=new e.constructor(e.byteLength);return new Mi(t).set(new Mi(e)),t}function ar(e,t){return new e.constructor(t?ir(e.buffer):e.buffer,e.byteOffset,e.length)}function ur(e,t){if(e!==t){var n=e!==V,r=null===e,o=e==e,i=zo(e),a=t!==V,u=null===t,s=t==t,l=zo(t);if(!u&&!l&&!i&&e>t||i&&a&&s&&!u&&!l||r&&a&&s||!n&&s||!o)return 1;if(!r&&!i&&!l&&e<t||l&&n&&o&&!r&&!i||u&&n&&o||!a&&o||!s)return-1}return 0}function sr(e,t,n,r){for(var o=-1,i=e.length,a=n.length,u=-1,s=t.length,l=ra(i-a,0),c=mi(s+l),d=!r;++u<s;)c[u]=t[u];for(;++o<a;)(d||o<i)&&(c[n[o]]=e[o]);for(;l--;)c[u++]=e[o++];return c}function lr(e,t,n,r){for(var o=-1,i=e.length,a=-1,u=n.length,s=-1,l=t.length,c=ra(i-u,0),d=mi(c+l),f=!r;++o<c;)d[o]=e[o];for(var p=o;++s<l;)d[p+s]=t[s];for(;++a<u;)(f||o<i)&&(d[p+n[a]]=e[o++]);return d}function cr(e,t){var n=-1,r=e.length;for(t||(t=mi(r));++n<r;)t[n]=e[n];return t}function dr(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var u=t[i],s=r?r(n[u],e[u],u,n,e):V;s===V&&(s=e[u]),o?At(n,u,s):xt(n,u,s)}return n}function fr(e,t){return function(n,o){var i=Iu(n)?r:Et,a=t?t():{};return i(n,e,Vr(o,2),a)}}function pr(e){return qn((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:V,a=o>2?n[2]:V;for(i=e.length>3&&"function"==typeof i?(o--,i):V,a&&Qr(n[0],n[1],a)&&(i=o<3?V:i,o=1),t=bi(t);++r<o;){var u=n[r];u&&e(t,u,r,i)}return t}))}function mr(e,t){return function(n,r){if(null==n)return n;if(!Oo(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=bi(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function hr(e){return function(t,n,r){for(var o=-1,i=bi(t),a=r(t),u=a.length;u--;){var s=a[e?u:++o];if(!1===n(i[s],s,i))break}return t}}function vr(e){return function(t){var n=N(t=Qo(t))?$(t):V,r=n?n[0]:t.charAt(0),o=n?rr(n,1).join(""):t.slice(1);return r[e]()+o}}function gr(e){return function(t){return f(oi(ri(t).replace($t,"")),e,"")}}function yr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Aa(e.prototype),r=e.apply(n,t);return Mo(r)?r:n}}function br(e){return function(t,n,r){var o=bi(t);if(!Oo(t)){var i=Vr(n,3);t=Jo(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:V}}function wr(e){return Dr((function(t){var n=t.length,r=n,o=lt.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if("function"!=typeof i)throw new _i(z);if(o&&!a&&"wrapper"==$r(i))var a=new lt([],!0)}for(r=a?r:n;++r<n;){var u=$r(i=t[r]),s="wrapper"==u?qa(i):V;a=s&&Xr(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?a[$r(s[0])].apply(a,s[3]):1==i.length&&Xr(i)?a[u]():a.thru(i)}return function(){var e=arguments,r=e[0];if(a&&1==e.length&&Iu(r))return a.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function xr(e,t,n,r,o,i,a,u,s,l){var c=t&K,d=1&t,f=2&t,p=24&t,m=512&t,h=f?V:yr(e);return function v(){for(var g=arguments.length,y=mi(g),b=g;b--;)y[b]=arguments[b];if(p)var w=Br(v),x=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(y,w);if(r&&(y=sr(y,r,o,p)),i&&(y=lr(y,i,a,p)),g-=x,p&&g<l)return Ir(e,t,xr,v.placeholder,n,y,D(y,w),u,s,l-g);var _=d?n:this,E=f?_[e]:e;return g=y.length,u?y=function(e,t){for(var n=e.length,r=oa(t.length,n),o=cr(e);r--;){var i=t[r];e[r]=Kr(i,n)?o[i]:V}return e}(y,u):m&&g>1&&y.reverse(),c&&s<g&&(y.length=s),this&&this!==en&&this instanceof v&&(E=h||yr(E)),E.apply(_,y)}}function _r(e,t){return function(n,r){return function(e,t,n,r){return Dt(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Er(e,t){return function(n,r){var o;if(n===V&&r===V)return t;if(n!==V&&(o=n),r!==V){if(o===V)return r;"string"==typeof n||"string"==typeof r?(n=Wn(n),r=Wn(r)):(n=Gn(n),r=Gn(r)),o=e(n,r)}return o}}function Sr(e){return Dr((function(t){return t=c(t,C(Vr())),qn((function(r){var o=this;return e(t,(function(e){return n(e,o,r)}))}))}))}function Ar(e,t){var n=(t=t===V?" ":Wn(t)).length;if(n<2)return n?jn(t,e):t;var r=jn(t,Yi(e/L(t)));return N(t)?rr($(r),0,e).join(""):r.slice(0,e)}function kr(e){return function(t,n,r){return r&&"number"!=typeof r&&Qr(t,n,r)&&(n=r=V),t=Uo(t),n===V?(n=t,t=0):n=Uo(n),function(e,t,n,r){for(var o=-1,i=ra(Yi((t-e)/(n||1)),0),a=mi(i);i--;)a[r?i:++o]=e,e+=n;return a}(t,n,r=r===V?t<n?1:-1:Uo(r),e)}}function Cr(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Ho(t),n=Ho(n)),e(t,n)}}function Ir(e,t,n,r,o,i,a,u,s,l){var c=8&t;t|=c?W:H,4&(t&=~(c?H:W))||(t&=-4);var d=[e,t,o,c?i:V,c?a:V,c?V:i,c?V:a,u,s,l],f=n.apply(V,d);return Xr(e)&&Ba(f,d),f.placeholder=r,oo(f,e,t)}function Pr(e){var t=yi[e];return function(e,n){if(e=Ho(e),(n=null==n?0:oa(Go(n),292))&&ea(e)){var r=(Qo(e)+"e").split("e");return+((r=(Qo(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}function Rr(e){return function(t){var n=La(t);return n==ce?j(t):n==he?function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}(t):function(e,t){return c(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Or(e,t,r,o,i,a,u,s){var l=2&t;if(!l&&"function"!=typeof e)throw new _i(z);var c=o?o.length:0;if(c||(t&=-97,o=i=V),u=u===V?u:ra(Go(u),0),s=s===V?s:Go(s),c-=i?i.length:0,t&H){var d=o,f=i;o=i=V}var p=l?V:qa(e),m=[e,t,r,o,i,d,f,a,u,s];if(p&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==K&&8==n||r==K&&n==Q&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var u=t[3];if(u){var s=e[3];e[3]=s?sr(s,u,t[4]):u,e[4]=s?D(e[3],U):t[4]}(u=t[5])&&(s=e[5],e[5]=s?lr(s,u,t[6]):u,e[6]=s?D(e[5],U):t[6]),(u=t[7])&&(e[7]=u),r&K&&(e[8]=null==e[8]?t[8]:oa(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(m,p),e=m[0],t=m[1],r=m[2],o=m[3],i=m[4],!(s=m[9]=m[9]===V?l?0:e.length:ra(m[9]-c,0))&&24&t&&(t&=-25),t&&1!=t)h=8==t||t==G?function(e,t,r){var o=yr(e);return function i(){for(var a=arguments.length,u=mi(a),s=a,l=Br(i);s--;)u[s]=arguments[s];var c=a<3&&u[0]!==l&&u[a-1]!==l?[]:D(u,l);return(a-=c.length)<r?Ir(e,t,xr,i.placeholder,V,u,c,V,V,r-a):n(this&&this!==en&&this instanceof i?o:e,this,u)}}(e,t,s):t!=W&&33!=t||i.length?xr.apply(V,m):function(e,t,r,o){var i=1&t,a=yr(e);return function t(){for(var u=-1,s=arguments.length,l=-1,c=o.length,d=mi(c+s),f=this&&this!==en&&this instanceof t?a:e;++l<c;)d[l]=o[l];for(;s--;)d[l++]=arguments[++u];return n(f,i?r:this,d)}}(e,t,r,o);else var h=function(e,t,n){var r=1&t,o=yr(e);return function t(){return(this&&this!==en&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,r);return oo((p?Ra:Ba)(h,m),e,t)}function Tr(e,t,n,r){return e===V||Ro(e,Ai[n])&&!Ii.call(r,n)?t:e}function Nr(e,t,n,r,o,i){return Mo(e)&&Mo(t)&&(i.set(t,e),Cn(e,t,V,Nr,i),i.delete(t)),e}function jr(e){return Bo(e)?V:e}function qr(e,t,n,r,o,i){var a=1&n,u=e.length,s=t.length;if(u!=s&&!(a&&s>u))return!1;var l=i.get(e),c=i.get(t);if(l&&c)return l==t&&c==e;var d=-1,f=!0,p=2&n?new mt:V;for(i.set(e,t),i.set(t,e);++d<u;){var h=e[d],v=t[d];if(r)var g=a?r(v,h,d,t,e,i):r(h,v,d,e,t,i);if(g!==V){if(g)continue;f=!1;break}if(p){if(!m(t,(function(e,t){if(!P(p,t)&&(h===e||o(h,e,n,r,i)))return p.push(t)}))){f=!1;break}}else if(h!==v&&!o(h,v,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function Dr(e){return za(to(e,V,po),e+"")}function Mr(e){return Ft(e,Jo,Da)}function Lr(e){return Ft(e,Zo,Ma)}function $r(e){for(var t=e.name+"",n=va[t],r=Ii.call(va,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function Br(e){return(Ii.call(_,"placeholder")?_:e).placeholder}function Vr(){var e=_.iteratee||ui;return e=e===ui?wn:e,arguments.length?e(arguments[0],arguments[1]):e}function zr(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Fr(e){for(var t=Jo(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Zr(o)]}return t}function Ur(e,t){var n=function(e,t){return null==e?V:e[t]}(e,t);return bn(n)?n:V}function Gr(e,t,n){for(var r=-1,o=(t=nr(t,e)).length,i=!1;++r<o;){var a=uo(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Do(o)&&Kr(a,o)&&(Iu(e)||Cu(e))}function Wr(e){return"function"!=typeof e.constructor||Jr(e)?{}:Aa($i(e))}function Hr(e){return Iu(e)||Cu(e)||!!(Fi&&e&&e[Fi])}function Kr(e,t){var n=typeof e;return!!(t=t??X)&&("number"==n||"symbol"!=n&&it.test(e))&&e>-1&&e%1==0&&e<t}function Qr(e,t,n){if(!Mo(n))return!1;var r=typeof t;return!!("number"==r?Oo(n)&&Kr(t,n.length):"string"==r&&t in n)&&Ro(n[t],e)}function Yr(e,t){if(Iu(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!zo(e))||Ve.test(e)||!Be.test(e)||null!=t&&e in bi(t)}function Xr(e){var t=$r(e),n=_[t];if("function"!=typeof n||!(t in ct.prototype))return!1;if(e===n)return!0;var r=qa(n);return!!r&&e===r[0]}function Jr(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ai)}function Zr(e){return e==e&&!Mo(e)}function eo(e,t){return function(n){return null!=n&&n[e]===t&&(t!==V||e in bi(n))}}function to(e,t,r){return t=ra(t===V?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=ra(o.length-t,0),u=mi(a);++i<a;)u[i]=o[t+i];i=-1;for(var s=mi(t+1);++i<t;)s[i]=o[i];return s[t]=r(u),n(e,this,s)}}function no(e,t){return t.length<2?e:Vt(e,Bn(t,0,-1))}function ro(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function oo(e,t,n){var r=t+"";return za(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(He,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return o(ne,(function(n){var r="_."+n[0];t&n[1]&&!s(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(Ke);return t?t[1].split(Qe):[]}(r),n)))}function io(e){var t=0,n=0;return function(){var r=ia(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(V,arguments)}}function ao(e,t){var n=-1,r=e.length,o=r-1;for(t=t===V?r:t;++n<t;){var i=Nn(n,o),a=e[i];e[i]=e[n],e[n]=a}return e.length=t,e}function uo(e){if("string"==typeof e||zo(e))return e;var t=e+"";return"0"==t&&1/e==-Y?"-0":t}function so(e){if(null!=e){try{return Ci.call(e)}catch{}try{return e+""}catch{}}return""}function lo(e){if(e instanceof ct)return e.clone();var t=new lt(e.__wrapped__,e.__chain__);return t.__actions__=cr(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function co(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Go(n);return o<0&&(o=ra(r+o,0)),v(e,Vr(t,3),o)}function fo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==V&&(o=Go(n),o=n<0?ra(r+o,0):oa(o,r-1)),v(e,Vr(t,3),o,!0)}function po(e){return null!=e&&e.length?qt(e,1):[]}function mo(e){return e&&e.length?e[0]:V}function ho(e){var t=null==e?0:e.length;return t?e[t-1]:V}function vo(e,t){return e&&e.length&&t&&t.length?On(e,t):e}function go(e){return null==e?e:sa.call(e)}function yo(e){if(!e||!e.length)return[];var t=0;return e=u(e,(function(e){if(To(e))return t=ra(e.length,t),!0})),A(t,(function(t){return c(e,x(t))}))}function bo(e,t){if(!e||!e.length)return[];var r=yo(e);return null==t?r:c(r,(function(e){return n(t,V,e)}))}function wo(e){var t=_(e);return t.__chain__=!0,t}function xo(e,t){return t(e)}function _o(e,t){return(Iu(e)?o:ka)(e,Vr(t,3))}function Eo(e,t){return(Iu(e)?i:Ca)(e,Vr(t,3))}function So(e,t){return(Iu(e)?c:Sn)(e,Vr(t,3))}function Ao(e,t,n){return t=n?V:t,t=e&&null==t?e.length:t,Or(e,K,V,V,V,V,t)}function ko(e,t){var n;if("function"!=typeof t)throw new _i(z);return e=Go(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=V),n}}function Co(e,t,n){function r(t){var n=s,r=l;return s=l=V,m=t,d=e.apply(r,n)}function o(e){var n=e-p;return p===V||n>=t||n<0||v&&e-m>=c}function i(){var e=vu();return o(e)?a(e):(f=Va(i,function(e){var n=t-(e-p);return v?oa(n,c-(e-m)):n}(e)),V)}function a(e){return f=V,g&&s?r(e):(s=l=V,d)}function u(){var e=vu(),n=o(e);if(s=arguments,l=this,p=e,n){if(f===V)return function(e){return m=e,f=Va(i,t),h?r(e):d}(p);if(v)return Na(f),f=Va(i,t),r(p)}return f===V&&(f=Va(i,t)),d}var s,l,c,d,f,p,m=0,h=!1,v=!1,g=!0;if("function"!=typeof e)throw new _i(z);return t=Ho(t)||0,Mo(n)&&(h=!!n.leading,c=(v="maxWait"in n)?ra(Ho(n.maxWait)||0,t):c,g="trailing"in n?!!n.trailing:g),u.cancel=function(){f!==V&&Na(f),m=0,s=p=l=f=V},u.flush=function(){return f===V?d:a(vu())},u}function Io(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new _i(z);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Io.Cache||pt),n}function Po(e){if("function"!=typeof e)throw new _i(z);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ro(e,t){return e===t||e!=e&&t!=t}function Oo(e){return null!=e&&Do(e.length)&&!jo(e)}function To(e){return Lo(e)&&Oo(e)}function No(e){if(!Lo(e))return!1;var t=Qt(e);return t==ue||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Bo(e)}function jo(e){if(!Mo(e))return!1;var t=Qt(e);return t==se||t==le||"[object AsyncFunction]"==t||"[object Proxy]"==t}function qo(e){return"number"==typeof e&&e==Go(e)}function Do(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=X}function Mo(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Lo(e){return null!=e&&"object"==typeof e}function $o(e){return"number"==typeof e||Lo(e)&&Qt(e)==de}function Bo(e){if(!Lo(e)||Qt(e)!=fe)return!1;var t=$i(e);if(null===t)return!0;var n=Ii.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ci.call(n)==Ti}function Vo(e){return"string"==typeof e||!Iu(e)&&Lo(e)&&Qt(e)==ve}function zo(e){return"symbol"==typeof e||Lo(e)&&Qt(e)==ge}function Fo(e){if(!e)return[];if(Oo(e))return Vo(e)?$(e):cr(e);if(Ui&&e[Ui])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ui]());var t=La(e);return(t==ce?j:t==he?M:ti)(e)}function Uo(e){return e?(e=Ho(e))===Y||e===-Y?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function Go(e){var t=Uo(e),n=t%1;return t==t?n?t-n:t:0}function Wo(e){return e?Ct(Go(e),0,Z):0}function Ho(e){if("number"==typeof e)return e;if(zo(e))return J;if(Mo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Mo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=k(e);var n=nt.test(e);return n||ot.test(e)?Xt(e.slice(2),n?2:8):tt.test(e)?J:+e}function Ko(e){return dr(e,Zo(e))}function Qo(e){return null==e?"":Wn(e)}function Yo(e,t,n){var r=null==e?V:Vt(e,t);return r===V?n:r}function Xo(e,t){return null!=e&&Gr(e,t,tn)}function Jo(e){return Oo(e)?vt(e):xn(e)}function Zo(e){return Oo(e)?vt(e,!0):_n(e)}function ei(e,t){if(null==e)return{};var n=c(Lr(e),(function(e){return[e]}));return t=Vr(t),Rn(e,n,(function(e,n){return t(e,n[0])}))}function ti(e){return null==e?[]:I(e,Jo(e))}function ni(e){return us(Qo(e).toLowerCase())}function ri(e){return(e=Qo(e))&&e.replace(at,mn).replace(Bt,"")}function oi(e,t,n){return e=Qo(e),(t=n?V:t)===V?function(e){return Ut.test(e)}(e)?function(e){return e.match(zt)||[]}(e):function(e){return e.match(Ye)||[]}(e):e.match(t)||[]}function ii(e){return function(){return e}}function ai(e){return e}function ui(e){return wn("function"==typeof e?e:It(e,1))}function si(e,t,n){var r=Jo(t),i=Lt(t,r);null!=n||Mo(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Lt(t,Jo(t)));var a=!(Mo(n)&&"chain"in n&&!n.chain),u=jo(e);return o(i,(function(n){var r=t[n];e[n]=r,u&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=cr(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,d([this.value()],arguments))})})),e}function li(){}function ci(e){return Yr(e)?x(uo(e)):function(e){return function(t){return Vt(t,e)}}(e)}function di(){return[]}function fi(){return!1}var pi,mi=(t=null==t?en:gn.defaults(en.Object(),t,gn.pick(en,Gt))).Array,hi=t.Date,vi=t.Error,gi=t.Function,yi=t.Math,bi=t.Object,wi=t.RegExp,xi=t.String,_i=t.TypeError,Ei=mi.prototype,Si=gi.prototype,Ai=bi.prototype,ki=t["__core-js_shared__"],Ci=Si.toString,Ii=Ai.hasOwnProperty,Pi=0,Ri=(pi=/[^.]+$/.exec(ki&&ki.keys&&ki.keys.IE_PROTO||""))?"Symbol(src)_1."+pi:"",Oi=Ai.toString,Ti=Ci.call(bi),Ni=en._,ji=wi("^"+Ci.call(Ii).replace(Fe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qi=rn?t.Buffer:V,Di=t.Symbol,Mi=t.Uint8Array,Li=qi?qi.allocUnsafe:V,$i=q(bi.getPrototypeOf,bi),Bi=bi.create,Vi=Ai.propertyIsEnumerable,zi=Ei.splice,Fi=Di?Di.isConcatSpreadable:V,Ui=Di?Di.iterator:V,Gi=Di?Di.toStringTag:V,Wi=function(){try{var e=Ur(bi,"defineProperty");return e({},"",{}),e}catch{}}(),Hi=t.clearTimeout!==en.clearTimeout&&t.clearTimeout,Ki=hi&&hi.now!==en.Date.now&&hi.now,Qi=t.setTimeout!==en.setTimeout&&t.setTimeout,Yi=yi.ceil,Xi=yi.floor,Ji=bi.getOwnPropertySymbols,Zi=qi?qi.isBuffer:V,ea=t.isFinite,ta=Ei.join,na=q(bi.keys,bi),ra=yi.max,oa=yi.min,ia=hi.now,aa=t.parseInt,ua=yi.random,sa=Ei.reverse,la=Ur(t,"DataView"),ca=Ur(t,"Map"),da=Ur(t,"Promise"),fa=Ur(t,"Set"),pa=Ur(t,"WeakMap"),ma=Ur(bi,"create"),ha=pa&&new pa,va={},ga=so(la),ya=so(ca),ba=so(da),wa=so(fa),xa=so(pa),_a=Di?Di.prototype:V,Ea=_a?_a.valueOf:V,Sa=_a?_a.toString:V,Aa=function(){function e(){}return function(t){if(!Mo(t))return{};if(Bi)return Bi(t);e.prototype=t;var n=new e;return e.prototype=V,n}}();_.templateSettings={escape:Me,evaluate:Le,interpolate:$e,variable:"",imports:{_:_}},_.prototype=We.prototype,_.prototype.constructor=_,lt.prototype=Aa(We.prototype),lt.prototype.constructor=lt,ct.prototype=Aa(We.prototype),ct.prototype.constructor=ct,dt.prototype.clear=function(){this.__data__=ma?ma(null):{},this.size=0},dt.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},dt.prototype.get=function(e){var t=this.__data__;if(ma){var n=t[e];return n===F?V:n}return Ii.call(t,e)?t[e]:V},dt.prototype.has=function(e){var t=this.__data__;return ma?t[e]!==V:Ii.call(t,e)},dt.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ma&&t===V?F:t,this},ft.prototype.clear=function(){this.__data__=[],this.size=0},ft.prototype.delete=function(e){var t=this.__data__,n=_t(t,e);return!(n<0||(n==t.length-1?t.pop():zi.call(t,n,1),--this.size,0))},ft.prototype.get=function(e){var t=this.__data__,n=_t(t,e);return n<0?V:t[n][1]},ft.prototype.has=function(e){return _t(this.__data__,e)>-1},ft.prototype.set=function(e,t){var n=this.__data__,r=_t(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},pt.prototype.clear=function(){this.size=0,this.__data__={hash:new dt,map:new(ca||ft),string:new dt}},pt.prototype.delete=function(e){var t=zr(this,e).delete(e);return this.size-=t?1:0,t},pt.prototype.get=function(e){return zr(this,e).get(e)},pt.prototype.has=function(e){return zr(this,e).has(e)},pt.prototype.set=function(e,t){var n=zr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},mt.prototype.add=mt.prototype.push=function(e){return this.__data__.set(e,F),this},mt.prototype.has=function(e){return this.__data__.has(e)},ht.prototype.clear=function(){this.__data__=new ft,this.size=0},ht.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ht.prototype.get=function(e){return this.__data__.get(e)},ht.prototype.has=function(e){return this.__data__.has(e)},ht.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ft){var r=n.__data__;if(!ca||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new pt(r)}return n.set(e,t),this.size=n.size,this};var ka=mr(Dt),Ca=mr(Mt,!0),Ia=hr(),Pa=hr(!0),Ra=ha?function(e,t){return ha.set(e,t),e}:ai,Oa=Wi?function(e,t){return Wi(e,"toString",{configurable:!0,enumerable:!1,value:ii(t),writable:!0})}:ai,Ta=qn,Na=Hi||function(e){return en.clearTimeout(e)},ja=fa&&1/M(new fa([,-0]))[1]==Y?function(e){return new fa(e)}:li,qa=ha?function(e){return ha.get(e)}:li,Da=Ji?function(e){return null==e?[]:(e=bi(e),u(Ji(e),(function(t){return Vi.call(e,t)})))}:di,Ma=Ji?function(e){for(var t=[];e;)d(t,Da(e)),e=$i(e);return t}:di,La=Qt;(la&&La(new la(new ArrayBuffer(1)))!=we||ca&&La(new ca)!=ce||da&&La(da.resolve())!=pe||fa&&La(new fa)!=he||pa&&La(new pa)!=ye)&&(La=function(e){var t=Qt(e),n=t==fe?e.constructor:V,r=n?so(n):"";if(r)switch(r){case ga:return we;case ya:return ce;case ba:return pe;case wa:return he;case xa:return ye}return t});var $a=ki?jo:fi,Ba=io(Ra),Va=Qi||function(e,t){return en.setTimeout(e,t)},za=io(Oa),Fa=function(e){var t=Io(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ze,(function(e,n,r,o){t.push(r?o.replace(Je,"$1"):n||e)})),t})),Ua=qn((function(e,t){return To(e)?Ot(e,qt(t,1,To,!0)):[]})),Ga=qn((function(e,t){var n=ho(t);return To(n)&&(n=V),To(e)?Ot(e,qt(t,1,To,!0),Vr(n,2)):[]})),Wa=qn((function(e,t){var n=ho(t);return To(n)&&(n=V),To(e)?Ot(e,qt(t,1,To,!0),V,n):[]})),Ha=qn((function(e){var t=c(e,er);return t.length&&t[0]===e[0]?nn(t):[]})),Ka=qn((function(e){var t=ho(e),n=c(e,er);return t===ho(n)?t=V:n.pop(),n.length&&n[0]===e[0]?nn(n,Vr(t,2)):[]})),Qa=qn((function(e){var t=ho(e),n=c(e,er);return(t="function"==typeof t?t:V)&&n.pop(),n.length&&n[0]===e[0]?nn(n,V,t):[]})),Ya=qn(vo),Xa=Dr((function(e,t){var n=null==e?0:e.length,r=kt(e,t);return Tn(e,c(t,(function(e){return Kr(e,n)?+e:e})).sort(ur)),r})),Ja=qn((function(e){return Hn(qt(e,1,To,!0))})),Za=qn((function(e){var t=ho(e);return To(t)&&(t=V),Hn(qt(e,1,To,!0),Vr(t,2))})),eu=qn((function(e){var t=ho(e);return t="function"==typeof t?t:V,Hn(qt(e,1,To,!0),V,t)})),tu=qn((function(e,t){return To(e)?Ot(e,t):[]})),nu=qn((function(e){return Jn(u(e,To))})),ru=qn((function(e){var t=ho(e);return To(t)&&(t=V),Jn(u(e,To),Vr(t,2))})),ou=qn((function(e){var t=ho(e);return t="function"==typeof t?t:V,Jn(u(e,To),V,t)})),iu=qn(yo),au=qn((function(e){var t=e.length,n=t>1?e[t-1]:V;return n="function"==typeof n?(e.pop(),n):V,bo(e,n)})),uu=Dr((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return kt(t,e)};return!(t>1||this.__actions__.length)&&r instanceof ct&&Kr(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:xo,args:[o],thisArg:V}),new lt(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(V),e}))):this.thru(o)})),su=fr((function(e,t,n){Ii.call(e,n)?++e[n]:At(e,n,1)})),lu=br(co),cu=br(fo),du=fr((function(e,t,n){Ii.call(e,n)?e[n].push(t):At(e,n,[t])})),fu=qn((function(e,t,r){var o=-1,i="function"==typeof t,a=Oo(e)?mi(e.length):[];return ka(e,(function(e){a[++o]=i?n(t,e,r):on(e,t,r)})),a})),pu=fr((function(e,t,n){At(e,n,t)})),mu=fr((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),hu=qn((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Qr(e,t[0],t[1])?t=[]:n>2&&Qr(t[0],t[1],t[2])&&(t=[t[0]]),Pn(e,qt(t,1),[])})),vu=Ki||function(){return en.Date.now()},gu=qn((function(e,t,n){var r=1;if(n.length){var o=D(n,Br(gu));r|=W}return Or(e,r,t,n,o)})),yu=qn((function(e,t,n){var r=3;if(n.length){var o=D(n,Br(yu));r|=W}return Or(t,r,e,n,o)})),bu=qn((function(e,t){return Rt(e,1,t)})),wu=qn((function(e,t,n){return Rt(e,Ho(t)||0,n)}));Io.Cache=pt;var xu=Ta((function(e,t){var r=(t=1==t.length&&Iu(t[0])?c(t[0],C(Vr())):c(qt(t,1),C(Vr()))).length;return qn((function(o){for(var i=-1,a=oa(o.length,r);++i<a;)o[i]=t[i].call(this,o[i]);return n(e,this,o)}))})),_u=qn((function(e,t){return Or(e,W,V,t,D(t,Br(_u)))})),Eu=qn((function(e,t){return Or(e,H,V,t,D(t,Br(Eu)))})),Su=Dr((function(e,t){return Or(e,Q,V,V,V,t)})),Au=Cr(Jt),ku=Cr((function(e,t){return e>=t})),Cu=an(function(){return arguments}())?an:function(e){return Lo(e)&&Ii.call(e,"callee")&&!Vi.call(e,"callee")},Iu=mi.isArray,Pu=un?C(un):function(e){return Lo(e)&&Qt(e)==be},Ru=Zi||fi,Ou=sn?C(sn):function(e){return Lo(e)&&Qt(e)==ae},Tu=ln?C(ln):function(e){return Lo(e)&&La(e)==ce},Nu=cn?C(cn):function(e){return Lo(e)&&Qt(e)==me},ju=dn?C(dn):function(e){return Lo(e)&&La(e)==he},qu=fn?C(fn):function(e){return Lo(e)&&Do(e.length)&&!!Ht[Qt(e)]},Du=Cr(En),Mu=Cr((function(e,t){return e<=t})),Lu=pr((function(e,t){if(Jr(t)||Oo(t))return dr(t,Jo(t),e),V;for(var n in t)Ii.call(t,n)&&xt(e,n,t[n])})),$u=pr((function(e,t){dr(t,Zo(t),e)})),Bu=pr((function(e,t,n,r){dr(t,Zo(t),e,r)})),Vu=pr((function(e,t,n,r){dr(t,Jo(t),e,r)})),zu=Dr(kt),Fu=qn((function(e,t){e=bi(e);var n=-1,r=t.length,o=r>2?t[2]:V;for(o&&Qr(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],a=Zo(i),u=-1,s=a.length;++u<s;){var l=a[u],c=e[l];(c===V||Ro(c,Ai[l])&&!Ii.call(e,l))&&(e[l]=i[l])}return e})),Uu=qn((function(e){return e.push(V,Nr),n(Qu,V,e)})),Gu=_r((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Oi.call(t)),e[t]=n}),ii(ai)),Wu=_r((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Oi.call(t)),Ii.call(e,t)?e[t].push(n):e[t]=[n]}),Vr),Hu=qn(on),Ku=pr((function(e,t,n){Cn(e,t,n)})),Qu=pr((function(e,t,n,r){Cn(e,t,n,r)})),Yu=Dr((function(e,t){var n={};if(null==e)return n;var r=!1;t=c(t,(function(t){return t=nr(t,e),r||(r=t.length>1),t})),dr(e,Lr(e),n),r&&(n=It(n,7,jr));for(var o=t.length;o--;)Kn(n,t[o]);return n})),Xu=Dr((function(e,t){return null==e?{}:function(e,t){return Rn(e,t,(function(t,n){return Xo(e,n)}))}(e,t)})),Ju=Rr(Jo),Zu=Rr(Zo),es=gr((function(e,t,n){return t=t.toLowerCase(),e+(n?ni(t):t)})),ts=gr((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),ns=gr((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),rs=vr("toLowerCase"),os=gr((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),is=gr((function(e,t,n){return e+(n?" ":"")+us(t)})),as=gr((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),us=vr("toUpperCase"),ss=qn((function(e,t){try{return n(e,V,t)}catch(e){return No(e)?e:new vi(e)}})),ls=Dr((function(e,t){return o(t,(function(t){t=uo(t),At(e,t,gu(e[t],e))})),e})),cs=wr(),ds=wr(!0),fs=qn((function(e,t){return function(n){return on(n,e,t)}})),ps=qn((function(e,t){return function(n){return on(e,n,t)}})),ms=Sr(c),hs=Sr(a),vs=Sr(m),gs=kr(),ys=kr(!0),bs=Er((function(e,t){return e+t}),0),ws=Pr("ceil"),xs=Er((function(e,t){return e/t}),1),_s=Pr("floor"),Es=Er((function(e,t){return e*t}),1),Ss=Pr("round"),As=Er((function(e,t){return e-t}),0);return _.after=function(e,t){if("function"!=typeof t)throw new _i(z);return e=Go(e),function(){if(--e<1)return t.apply(this,arguments)}},_.ary=Ao,_.assign=Lu,_.assignIn=$u,_.assignInWith=Bu,_.assignWith=Vu,_.at=zu,_.before=ko,_.bind=gu,_.bindAll=ls,_.bindKey=yu,_.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Iu(e)?e:[e]},_.chain=wo,_.chunk=function(e,t,n){t=(n?Qr(e,t,n):t===V)?1:ra(Go(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=mi(Yi(r/t));o<r;)a[i++]=Bn(e,o,o+=t);return a},_.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},_.concat=function(){var e=arguments.length;if(!e)return[];for(var t=mi(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return d(Iu(n)?cr(n):[n],qt(t,1))},_.cond=function(e){var t=null==e?0:e.length,r=Vr();return e=t?c(e,(function(e){if("function"!=typeof e[1])throw new _i(z);return[r(e[0]),e[1]]})):[],qn((function(r){for(var o=-1;++o<t;){var i=e[o];if(n(i[0],this,r))return n(i[1],this,r)}}))},_.conforms=function(e){return function(e){var t=Jo(e);return function(n){return Pt(n,e,t)}}(It(e,1))},_.constant=ii,_.countBy=su,_.create=function(e,t){var n=Aa(e);return null==t?n:St(n,t)},_.curry=function e(t,n,r){var o=Or(t,8,V,V,V,V,V,n=r?V:n);return o.placeholder=e.placeholder,o},_.curryRight=function e(t,n,r){var o=Or(t,G,V,V,V,V,V,n=r?V:n);return o.placeholder=e.placeholder,o},_.debounce=Co,_.defaults=Fu,_.defaultsDeep=Uu,_.defer=bu,_.delay=wu,_.difference=Ua,_.differenceBy=Ga,_.differenceWith=Wa,_.drop=function(e,t,n){var r=null==e?0:e.length;return r?Bn(e,(t=n||t===V?1:Go(t))<0?0:t,r):[]},_.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Bn(e,0,(t=r-(t=n||t===V?1:Go(t)))<0?0:t):[]},_.dropRightWhile=function(e,t){return e&&e.length?Yn(e,Vr(t,3),!0,!0):[]},_.dropWhile=function(e,t){return e&&e.length?Yn(e,Vr(t,3),!0):[]},_.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&Qr(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=Go(n))<0&&(n=-n>o?0:o+n),(r=r===V||r>o?o:Go(r))<0&&(r+=o),r=n>r?0:Wo(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},_.filter=function(e,t){return(Iu(e)?u:jt)(e,Vr(t,3))},_.flatMap=function(e,t){return qt(So(e,t),1)},_.flatMapDeep=function(e,t){return qt(So(e,t),Y)},_.flatMapDepth=function(e,t,n){return n=n===V?1:Go(n),qt(So(e,t),n)},_.flatten=po,_.flattenDeep=function(e){return null!=e&&e.length?qt(e,Y):[]},_.flattenDepth=function(e,t){return null!=e&&e.length?qt(e,t=t===V?1:Go(t)):[]},_.flip=function(e){return Or(e,512)},_.flow=cs,_.flowRight=ds,_.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},_.functions=function(e){return null==e?[]:Lt(e,Jo(e))},_.functionsIn=function(e){return null==e?[]:Lt(e,Zo(e))},_.groupBy=du,_.initial=function(e){return null!=e&&e.length?Bn(e,0,-1):[]},_.intersection=Ha,_.intersectionBy=Ka,_.intersectionWith=Qa,_.invert=Gu,_.invertBy=Wu,_.invokeMap=fu,_.iteratee=ui,_.keyBy=pu,_.keys=Jo,_.keysIn=Zo,_.map=So,_.mapKeys=function(e,t){var n={};return t=Vr(t,3),Dt(e,(function(e,r,o){At(n,t(e,r,o),e)})),n},_.mapValues=function(e,t){var n={};return t=Vr(t,3),Dt(e,(function(e,r,o){At(n,r,t(e,r,o))})),n},_.matches=function(e){return An(It(e,1))},_.matchesProperty=function(e,t){return kn(e,It(t,1))},_.memoize=Io,_.merge=Ku,_.mergeWith=Qu,_.method=fs,_.methodOf=ps,_.mixin=si,_.negate=Po,_.nthArg=function(e){return e=Go(e),qn((function(t){return In(t,e)}))},_.omit=Yu,_.omitBy=function(e,t){return ei(e,Po(Vr(t)))},_.once=function(e){return ko(2,e)},_.orderBy=function(e,t,n,r){return null==e?[]:(Iu(t)||(t=null==t?[]:[t]),Iu(n=r?V:n)||(n=null==n?[]:[n]),Pn(e,t,n))},_.over=ms,_.overArgs=xu,_.overEvery=hs,_.overSome=vs,_.partial=_u,_.partialRight=Eu,_.partition=mu,_.pick=Xu,_.pickBy=ei,_.property=ci,_.propertyOf=function(e){return function(t){return null==e?V:Vt(e,t)}},_.pull=Ya,_.pullAll=vo,_.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?On(e,t,Vr(n,2)):e},_.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?On(e,t,V,n):e},_.pullAt=Xa,_.range=gs,_.rangeRight=ys,_.rearg=Su,_.reject=function(e,t){return(Iu(e)?u:jt)(e,Po(Vr(t,3)))},_.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=Vr(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Tn(e,o),n},_.rest=function(e,t){if("function"!=typeof e)throw new _i(z);return qn(e,t=t===V?t:Go(t))},_.reverse=go,_.sampleSize=function(e,t,n){return t=(n?Qr(e,t,n):t===V)?1:Go(t),(Iu(e)?yt:Mn)(e,t)},_.set=function(e,t,n){return null==e?e:Ln(e,t,n)},_.setWith=function(e,t,n,r){return r="function"==typeof r?r:V,null==e?e:Ln(e,t,n,r)},_.shuffle=function(e){return(Iu(e)?bt:$n)(e)},_.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Qr(e,t,n)?(t=0,n=r):(t=null==t?0:Go(t),n=n===V?r:Go(n)),Bn(e,t,n)):[]},_.sortBy=hu,_.sortedUniq=function(e){return e&&e.length?Un(e):[]},_.sortedUniqBy=function(e,t){return e&&e.length?Un(e,Vr(t,2)):[]},_.split=function(e,t,n){return n&&"number"!=typeof n&&Qr(e,t,n)&&(t=n=V),(n=n===V?Z:n>>>0)?(e=Qo(e))&&("string"==typeof t||null!=t&&!Nu(t))&&!(t=Wn(t))&&N(e)?rr($(e),0,n):e.split(t,n):[]},_.spread=function(e,t){if("function"!=typeof e)throw new _i(z);return t=null==t?0:ra(Go(t),0),qn((function(r){var o=r[t],i=rr(r,0,t);return o&&d(i,o),n(e,this,i)}))},_.tail=function(e){var t=null==e?0:e.length;return t?Bn(e,1,t):[]},_.take=function(e,t,n){return e&&e.length?Bn(e,0,(t=n||t===V?1:Go(t))<0?0:t):[]},_.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Bn(e,(t=r-(t=n||t===V?1:Go(t)))<0?0:t,r):[]},_.takeRightWhile=function(e,t){return e&&e.length?Yn(e,Vr(t,3),!1,!0):[]},_.takeWhile=function(e,t){return e&&e.length?Yn(e,Vr(t,3)):[]},_.tap=function(e,t){return t(e),e},_.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new _i(z);return Mo(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Co(e,t,{leading:r,maxWait:t,trailing:o})},_.thru=xo,_.toArray=Fo,_.toPairs=Ju,_.toPairsIn=Zu,_.toPath=function(e){return Iu(e)?c(e,uo):zo(e)?[e]:cr(Fa(Qo(e)))},_.toPlainObject=Ko,_.transform=function(e,t,n){var r=Iu(e),i=r||Ru(e)||qu(e);if(t=Vr(t,4),null==n){var a=e&&e.constructor;n=i?r?new a:[]:Mo(e)&&jo(a)?Aa($i(e)):{}}return(i?o:Dt)(e,(function(e,r,o){return t(n,e,r,o)})),n},_.unary=function(e){return Ao(e,1)},_.union=Ja,_.unionBy=Za,_.unionWith=eu,_.uniq=function(e){return e&&e.length?Hn(e):[]},_.uniqBy=function(e,t){return e&&e.length?Hn(e,Vr(t,2)):[]},_.uniqWith=function(e,t){return t="function"==typeof t?t:V,e&&e.length?Hn(e,V,t):[]},_.unset=function(e,t){return null==e||Kn(e,t)},_.unzip=yo,_.unzipWith=bo,_.update=function(e,t,n){return null==e?e:Qn(e,t,tr(n))},_.updateWith=function(e,t,n,r){return r="function"==typeof r?r:V,null==e?e:Qn(e,t,tr(n),r)},_.values=ti,_.valuesIn=function(e){return null==e?[]:I(e,Zo(e))},_.without=tu,_.words=oi,_.wrap=function(e,t){return _u(tr(t),e)},_.xor=nu,_.xorBy=ru,_.xorWith=ou,_.zip=iu,_.zipObject=function(e,t){return Zn(e||[],t||[],xt)},_.zipObjectDeep=function(e,t){return Zn(e||[],t||[],Ln)},_.zipWith=au,_.entries=Ju,_.entriesIn=Zu,_.extend=$u,_.extendWith=Bu,si(_,_),_.add=bs,_.attempt=ss,_.camelCase=es,_.capitalize=ni,_.ceil=ws,_.clamp=function(e,t,n){return n===V&&(n=t,t=V),n!==V&&(n=(n=Ho(n))==n?n:0),t!==V&&(t=(t=Ho(t))==t?t:0),Ct(Ho(e),t,n)},_.clone=function(e){return It(e,4)},_.cloneDeep=function(e){return It(e,5)},_.cloneDeepWith=function(e,t){return It(e,5,t="function"==typeof t?t:V)},_.cloneWith=function(e,t){return It(e,4,t="function"==typeof t?t:V)},_.conformsTo=function(e,t){return null==t||Pt(e,t,Jo(t))},_.deburr=ri,_.defaultTo=function(e,t){return null==e||e!=e?t:e},_.divide=xs,_.endsWith=function(e,t,n){e=Qo(e),t=Wn(t);var r=e.length,o=n=n===V?r:Ct(Go(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},_.eq=Ro,_.escape=function(e){return(e=Qo(e))&&De.test(e)?e.replace(je,hn):e},_.escapeRegExp=function(e){return(e=Qo(e))&&Ue.test(e)?e.replace(Fe,"\\$&"):e},_.every=function(e,t,n){var r=Iu(e)?a:Tt;return n&&Qr(e,t,n)&&(t=V),r(e,Vr(t,3))},_.find=lu,_.findIndex=co,_.findKey=function(e,t){return h(e,Vr(t,3),Dt)},_.findLast=cu,_.findLastIndex=fo,_.findLastKey=function(e,t){return h(e,Vr(t,3),Mt)},_.floor=_s,_.forEach=_o,_.forEachRight=Eo,_.forIn=function(e,t){return null==e?e:Ia(e,Vr(t,3),Zo)},_.forInRight=function(e,t){return null==e?e:Pa(e,Vr(t,3),Zo)},_.forOwn=function(e,t){return e&&Dt(e,Vr(t,3))},_.forOwnRight=function(e,t){return e&&Mt(e,Vr(t,3))},_.get=Yo,_.gt=Au,_.gte=ku,_.has=function(e,t){return null!=e&&Gr(e,t,Zt)},_.hasIn=Xo,_.head=mo,_.identity=ai,_.includes=function(e,t,n,r){e=Oo(e)?e:ti(e),n=n&&!r?Go(n):0;var o=e.length;return n<0&&(n=ra(o+n,0)),Vo(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&g(e,t,n)>-1},_.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Go(n);return o<0&&(o=ra(r+o,0)),g(e,t,o)},_.inRange=function(e,t,n){return t=Uo(t),n===V?(n=t,t=0):n=Uo(n),function(e,t,n){return e>=oa(t,n)&&e<ra(t,n)}(e=Ho(e),t,n)},_.invoke=Hu,_.isArguments=Cu,_.isArray=Iu,_.isArrayBuffer=Pu,_.isArrayLike=Oo,_.isArrayLikeObject=To,_.isBoolean=function(e){return!0===e||!1===e||Lo(e)&&Qt(e)==ie},_.isBuffer=Ru,_.isDate=Ou,_.isElement=function(e){return Lo(e)&&1===e.nodeType&&!Bo(e)},_.isEmpty=function(e){if(null==e)return!0;if(Oo(e)&&(Iu(e)||"string"==typeof e||"function"==typeof e.splice||Ru(e)||qu(e)||Cu(e)))return!e.length;var t=La(e);if(t==ce||t==he)return!e.size;if(Jr(e))return!xn(e).length;for(var n in e)if(Ii.call(e,n))return!1;return!0},_.isEqual=function(e,t){return pn(e,t)},_.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:V)?n(e,t):V;return r===V?pn(e,t,V,n):!!r},_.isError=No,_.isFinite=function(e){return"number"==typeof e&&ea(e)},_.isFunction=jo,_.isInteger=qo,_.isLength=Do,_.isMap=Tu,_.isMatch=function(e,t){return e===t||yn(e,t,Fr(t))},_.isMatchWith=function(e,t,n){return n="function"==typeof n?n:V,yn(e,t,Fr(t),n)},_.isNaN=function(e){return $o(e)&&e!=+e},_.isNative=function(e){if($a(e))throw new vi("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return bn(e)},_.isNil=function(e){return null==e},_.isNull=function(e){return null===e},_.isNumber=$o,_.isObject=Mo,_.isObjectLike=Lo,_.isPlainObject=Bo,_.isRegExp=Nu,_.isSafeInteger=function(e){return qo(e)&&e>=-X&&e<=X},_.isSet=ju,_.isString=Vo,_.isSymbol=zo,_.isTypedArray=qu,_.isUndefined=function(e){return e===V},_.isWeakMap=function(e){return Lo(e)&&La(e)==ye},_.isWeakSet=function(e){return Lo(e)&&"[object WeakSet]"==Qt(e)},_.join=function(e,t){return null==e?"":ta.call(e,t)},_.kebabCase=ts,_.last=ho,_.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==V&&(o=(o=Go(n))<0?ra(r+o,0):oa(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):v(e,b,o,!0)},_.lowerCase=ns,_.lowerFirst=rs,_.lt=Du,_.lte=Mu,_.max=function(e){return e&&e.length?Nt(e,ai,Jt):V},_.maxBy=function(e,t){return e&&e.length?Nt(e,Vr(t,2),Jt):V},_.mean=function(e){return w(e,ai)},_.meanBy=function(e,t){return w(e,Vr(t,2))},_.min=function(e){return e&&e.length?Nt(e,ai,En):V},_.minBy=function(e,t){return e&&e.length?Nt(e,Vr(t,2),En):V},_.stubArray=di,_.stubFalse=fi,_.stubObject=function(){return{}},_.stubString=function(){return""},_.stubTrue=function(){return!0},_.multiply=Es,_.nth=function(e,t){return e&&e.length?In(e,Go(t)):V},_.noConflict=function(){return en._===this&&(en._=Ni),this},_.noop=li,_.now=vu,_.pad=function(e,t,n){e=Qo(e);var r=(t=Go(t))?L(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Ar(Xi(o),n)+e+Ar(Yi(o),n)},_.padEnd=function(e,t,n){e=Qo(e);var r=(t=Go(t))?L(e):0;return t&&r<t?e+Ar(t-r,n):e},_.padStart=function(e,t,n){e=Qo(e);var r=(t=Go(t))?L(e):0;return t&&r<t?Ar(t-r,n)+e:e},_.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),aa(Qo(e).replace(Ge,""),t||0)},_.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Qr(e,t,n)&&(t=n=V),n===V&&("boolean"==typeof t?(n=t,t=V):"boolean"==typeof e&&(n=e,e=V)),e===V&&t===V?(e=0,t=1):(e=Uo(e),t===V?(t=e,e=0):t=Uo(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=ua();return oa(e+o*(t-e+Yt("1e-"+((o+"").length-1))),t)}return Nn(e,t)},_.reduce=function(e,t,n){var r=Iu(e)?f:E,o=arguments.length<3;return r(e,Vr(t,4),n,o,ka)},_.reduceRight=function(e,t,n){var r=Iu(e)?p:E,o=arguments.length<3;return r(e,Vr(t,4),n,o,Ca)},_.repeat=function(e,t,n){return t=(n?Qr(e,t,n):t===V)?1:Go(t),jn(Qo(e),t)},_.replace=function(){var e=arguments,t=Qo(e[0]);return e.length<3?t:t.replace(e[1],e[2])},_.result=function(e,t,n){var r=-1,o=(t=nr(t,e)).length;for(o||(o=1,e=V);++r<o;){var i=null==e?V:e[uo(t[r])];i===V&&(r=o,i=n),e=jo(i)?i.call(e):i}return e},_.round=Ss,_.runInContext=e,_.sample=function(e){return(Iu(e)?gt:Dn)(e)},_.size=function(e){if(null==e)return 0;if(Oo(e))return Vo(e)?L(e):e.length;var t=La(e);return t==ce||t==he?e.size:xn(e).length},_.snakeCase=os,_.some=function(e,t,n){var r=Iu(e)?m:Vn;return n&&Qr(e,t,n)&&(t=V),r(e,Vr(t,3))},_.sortedIndex=function(e,t){return zn(e,t)},_.sortedIndexBy=function(e,t,n){return Fn(e,t,Vr(n,2))},_.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=zn(e,t);if(r<n&&Ro(e[r],t))return r}return-1},_.sortedLastIndex=function(e,t){return zn(e,t,!0)},_.sortedLastIndexBy=function(e,t,n){return Fn(e,t,Vr(n,2),!0)},_.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=zn(e,t,!0)-1;if(Ro(e[n],t))return n}return-1},_.startCase=is,_.startsWith=function(e,t,n){return e=Qo(e),n=null==n?0:Ct(Go(n),0,e.length),t=Wn(t),e.slice(n,n+t.length)==t},_.subtract=As,_.sum=function(e){return e&&e.length?S(e,ai):0},_.sumBy=function(e,t){return e&&e.length?S(e,Vr(t,2)):0},_.template=function(e,t,n){var r=_.templateSettings;n&&Qr(e,t,n)&&(t=V),e=Qo(e),t=Bu({},t,r,Tr);var o,i,a=Bu({},t.imports,r.imports,Tr),u=Jo(a),s=I(a,u),l=0,c=t.interpolate||ut,d="__p += '",f=wi((t.escape||ut).source+"|"+c.source+"|"+(c===$e?Ze:ut).source+"|"+(t.evaluate||ut).source+"|$","g"),p="//# sourceURL="+(Ii.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Wt+"]")+"\n";e.replace(f,(function(t,n,r,a,u,s){return r||(r=a),d+=e.slice(l,s).replace(st,T),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),u&&(i=!0,d+="';\n"+u+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=s+t.length,t})),d+="';\n";var m=Ii.call(t,"variable")&&t.variable;if(m){if(Xe.test(m))throw new vi("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(i?d.replace(Re,""):d).replace(Oe,"$1").replace(Te,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var h=ss((function(){return gi(u,p+"return "+d).apply(V,s)}));if(h.source=d,No(h))throw h;return h},_.times=function(e,t){if((e=Go(e))<1||e>X)return[];var n=Z,r=oa(e,Z);t=Vr(t),e-=Z;for(var o=A(r,t);++n<e;)t(n);return o},_.toFinite=Uo,_.toInteger=Go,_.toLength=Wo,_.toLower=function(e){return Qo(e).toLowerCase()},_.toNumber=Ho,_.toSafeInteger=function(e){return e?Ct(Go(e),-X,X):0===e?e:0},_.toString=Qo,_.toUpper=function(e){return Qo(e).toUpperCase()},_.trim=function(e,t,n){if((e=Qo(e))&&(n||t===V))return k(e);if(!e||!(t=Wn(t)))return e;var r=$(e),o=$(t);return rr(r,R(r,o),O(r,o)+1).join("")},_.trimEnd=function(e,t,n){if((e=Qo(e))&&(n||t===V))return e.slice(0,B(e)+1);if(!e||!(t=Wn(t)))return e;var r=$(e);return rr(r,0,O(r,$(t))+1).join("")},_.trimStart=function(e,t,n){if((e=Qo(e))&&(n||t===V))return e.replace(Ge,"");if(!e||!(t=Wn(t)))return e;var r=$(e);return rr(r,R(r,$(t))).join("")},_.truncate=function(e,t){var n=30,r="...";if(Mo(t)){var o="separator"in t?t.separator:o;n="length"in t?Go(t.length):n,r="omission"in t?Wn(t.omission):r}var i=(e=Qo(e)).length;if(N(e)){var a=$(e);i=a.length}if(n>=i)return e;var u=n-L(r);if(u<1)return r;var s=a?rr(a,0,u).join(""):e.slice(0,u);if(o===V)return s+r;if(a&&(u+=s.length-u),Nu(o)){if(e.slice(u).search(o)){var l,c=s;for(o.global||(o=wi(o.source,Qo(et.exec(o))+"g")),o.lastIndex=0;l=o.exec(c);)var d=l.index;s=s.slice(0,d===V?u:d)}}else if(e.indexOf(Wn(o),u)!=u){var f=s.lastIndexOf(o);f>-1&&(s=s.slice(0,f))}return s+r},_.unescape=function(e){return(e=Qo(e))&&qe.test(e)?e.replace(Ne,vn):e},_.uniqueId=function(e){var t=++Pi;return Qo(e)+t},_.upperCase=as,_.upperFirst=us,_.each=_o,_.eachRight=Eo,_.first=mo,si(_,function(){var e={};return Dt(_,(function(t,n){Ii.call(_.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),_.VERSION="4.17.21",o(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){_[e].placeholder=_})),o(["drop","take"],(function(e,t){ct.prototype[e]=function(n){n=n===V?1:ra(Go(n),0);var r=this.__filtered__&&!t?new ct(this):this.clone();return r.__filtered__?r.__takeCount__=oa(n,r.__takeCount__):r.__views__.push({size:oa(n,Z),type:e+(r.__dir__<0?"Right":"")}),r},ct.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),o(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;ct.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Vr(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),o(["head","last"],(function(e,t){var n="take"+(t?"Right":"");ct.prototype[e]=function(){return this[n](1).value()[0]}})),o(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");ct.prototype[e]=function(){return this.__filtered__?new ct(this):this[n](1)}})),ct.prototype.compact=function(){return this.filter(ai)},ct.prototype.find=function(e){return this.filter(e).head()},ct.prototype.findLast=function(e){return this.reverse().find(e)},ct.prototype.invokeMap=qn((function(e,t){return"function"==typeof e?new ct(this):this.map((function(n){return on(n,e,t)}))})),ct.prototype.reject=function(e){return this.filter(Po(Vr(e)))},ct.prototype.slice=function(e,t){e=Go(e);var n=this;return n.__filtered__&&(e>0||t<0)?new ct(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==V&&(n=(t=Go(t))<0?n.dropRight(-t):n.take(t-e)),n)},ct.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ct.prototype.toArray=function(){return this.take(Z)},Dt(ct.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=_[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(_.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,u=t instanceof ct,s=a[0],l=u||Iu(t),c=function(e){var t=o.apply(_,d([e],a));return r&&f?t[0]:t};l&&n&&"function"==typeof s&&1!=s.length&&(u=l=!1);var f=this.__chain__,p=!!this.__actions__.length,m=i&&!f,h=u&&!p;if(!i&&l){t=h?t:new ct(this);var v=e.apply(t,a);return v.__actions__.push({func:xo,args:[c],thisArg:V}),new lt(v,f)}return m&&h?e.apply(this,a):(v=this.thru(c),m?r?v.value()[0]:v.value():v)})})),o(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ei[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);_.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Iu(o)?o:[],e)}return this[n]((function(n){return t.apply(Iu(n)?n:[],e)}))}})),Dt(ct.prototype,(function(e,t){var n=_[t];if(n){var r=n.name+"";Ii.call(va,r)||(va[r]=[]),va[r].push({name:t,func:n})}})),va[xr(V,2).name]=[{name:"wrapper",func:V}],ct.prototype.clone=function(){var e=new ct(this.__wrapped__);return e.__actions__=cr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=cr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=cr(this.__views__),e},ct.prototype.reverse=function(){if(this.__filtered__){var e=new ct(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},ct.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Iu(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=oa(t,e+a);break;case"takeRight":e=ra(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,u=i.end,s=u-a,l=r?u:a-1,c=this.__iteratees__,d=c.length,f=0,p=oa(s,this.__takeCount__);if(!n||!r&&o==s&&p==s)return Xn(e,this.__actions__);var m=[];e:for(;s--&&f<p;){for(var h=-1,v=e[l+=t];++h<d;){var g=c[h],y=g.iteratee,b=g.type,w=y(v);if(2==b)v=w;else if(!w){if(1==b)continue e;break e}}m[f++]=v}return m},_.prototype.at=uu,_.prototype.chain=function(){return wo(this)},_.prototype.commit=function(){return new lt(this.value(),this.__chain__)},_.prototype.next=function(){this.__values__===V&&(this.__values__=Fo(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?V:this.__values__[this.__index__++]}},_.prototype.plant=function(e){for(var t,n=this;n instanceof We;){var r=lo(n);r.__index__=0,r.__values__=V,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},_.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof ct){var t=e;return this.__actions__.length&&(t=new ct(this)),(t=t.reverse()).__actions__.push({func:xo,args:[go],thisArg:V}),new lt(t,this.__chain__)}return this.thru(go)},_.prototype.toJSON=_.prototype.valueOf=_.prototype.value=function(){return Xn(this.__wrapped__,this.__actions__)},_.prototype.first=_.prototype.head,Ui&&(_.prototype[Ui]=function(){return this}),_}();nn?((nn.exports=gn)._=gn,tn._=gn):en._=gn}.call(d6)),Xm.exports;var e,t}var F$,z1,B$,W1,j$,q1,V$,U1={};function p6(){return F$||(F$=1,(e=U1).aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},e.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},e.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},e.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},e.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},e.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},e.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},e.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},e.realToAlias=function(){var t=Object.prototype.hasOwnProperty,n=e.aliasToReal,r={};for(var o in n){var i=n[o];t.call(r,i)?r[i].push(o):r[i]=[o]}return r}(),e.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},e.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},e.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}),U1;var e}function g2(){return B$||(B$=1,z1={}),z1}function y2(){if(j$)return W1;j$=1;var e=p6(),t=g2(),n=Array.prototype.push;function r(e,t){return 2==t?function(t,n){return e(t,n)}:function(t){return e(t)}}function o(e){for(var t=e?e.length:0,n=Array(t);t--;)n[t]=e[t];return n}function i(e,t){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var o=r[0]=t.apply(void 0,r);return e.apply(void 0,r),o}}}return W1=function a(u,s,l,c){var d="function"==typeof s,f=s===Object(s);if(f&&(c=l,l=s,s=void 0),null==l)throw new TypeError;c||(c={});var p=!("cap"in c)||c.cap,m=!("curry"in c)||c.curry,h=!("fixed"in c)||c.fixed,v=!("immutable"in c)||c.immutable,g=!("rearg"in c)||c.rearg,y=d?l:t,b="curry"in c&&c.curry,w="fixed"in c&&c.fixed,x="rearg"in c&&c.rearg,_=d?l.runInContext():void 0,E=d?l:{ary:u.ary,assign:u.assign,clone:u.clone,curry:u.curry,forEach:u.forEach,isArray:u.isArray,isError:u.isError,isFunction:u.isFunction,isWeakMap:u.isWeakMap,iteratee:u.iteratee,keys:u.keys,rearg:u.rearg,toInteger:u.toInteger,toPath:u.toPath},S=E.ary,A=E.assign,k=E.clone,C=E.curry,I=E.forEach,P=E.isArray,R=E.isError,O=E.isFunction,T=E.isWeakMap,N=E.keys,j=E.rearg,q=E.toInteger,D=E.toPath,M=N(e.aryMethod),L={castArray:function(e){return function(){var t=arguments[0];return P(t)?e(o(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[1],n=e(arguments[0],t),o=n.length;return p&&"number"==typeof t?(t=t>2?t-2:1,o&&o<=t?n:r(n,t)):n}},mixin:function(e){return function(t){var n=this;if(!O(n))return e(n,Object(t));var r=[];return I(N(t),(function(e){O(t[e])&&r.push([e,n.prototype[e]])})),e(n,Object(t)),I(r,(function(e){var t=e[1];O(t)?n.prototype[e[0]]=t:delete n.prototype[e[0]]})),n}},nthArg:function(e){return function(t){var n=t<0?1:q(t)+1;return C(e(t),n)}},rearg:function(e){return function(t,n){var r=n?n.length:0;return C(e(t,n),r)}},runInContext:function(e){return function(t){return a(u,e(t),c)}}};function $(t,n){if(p){var o=e.iterateeRearg[t];if(o)return function(e,t){return U(e,(function(e){var n=t.length;return function(e,t){return 2==t?function(t,n){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(j(r(e,n),t),n)}))}(n,o);var i=!d&&e.iterateeAry[t];if(i)return function(e,t){return U(e,(function(e){return"function"==typeof e?r(e,t):e}))}(n,i)}return n}function B(t,r,o){if(h&&(w||!e.skipFixed[t])){var i=e.methodSpread[t],a=i&&i.start;return void 0===a?S(r,o):function(e,t){return function(){for(var r=arguments.length,o=r-1,i=Array(r);r--;)i[r]=arguments[r];var a=i[t],u=i.slice(0,t);return a&&n.apply(u,a),t!=o&&n.apply(u,i.slice(t+1)),e.apply(this,u)}}(r,a)}return r}function V(t,n,r){return g&&r>1&&(x||!e.skipRearg[t])?j(n,e.methodRearg[t]||e.aryRearg[r]):n}function z(e,t){for(var n=-1,r=(t=D(t)).length,o=r-1,i=k(Object(e)),a=i;null!=a&&++n<r;){var u=t[n],s=a[u];null!=s&&!(O(s)||R(s)||T(s))&&(a[u]=k(n==o?s:Object(s))),a=a[u]}return i}function F(t,n){var r=e.aliasToReal[t]||t,o=e.remap[r]||r,i=c;return function(e){var t=d?_:E,u=d?_[o]:n,s=A(A({},i),e);return a(t,r,u,s)}}function U(e,t){return function(){var n=arguments.length;if(!n)return e();for(var r=Array(n);n--;)r[n]=arguments[n];var o=g?0:n-1;return r[o]=t(r[o]),e.apply(void 0,r)}}function G(t,n,r){var a,u=e.aliasToReal[t]||t,s=n,l=L[u];return l?s=l(n):v&&(e.mutate.array[u]?s=i(n,o):e.mutate.object[u]?s=i(n,function(e){return function(t){return e({},t)}}(n)):e.mutate.set[u]&&(s=i(n,z))),I(M,(function(t){return I(e.aryMethod[t],(function(n){if(u==n){var r=e.methodSpread[u],o=r&&r.afterRearg;return a=o?B(u,V(u,s,t),t):V(u,B(u,s,t),t),a=function(e,t,n){return b||m&&n>1?C(t,n):t}(0,a=$(u,a),t),!1}})),!a})),a||(a=s),a==n&&(a=b?C(a,1):function(){return n.apply(this,arguments)}),a.convert=F(u,n),a.placeholder=n.placeholder=r,a}if(!f)return G(s,l,y);var W=l,H=[];return I(M,(function(t){I(e.aryMethod[t],(function(t){var n=W[e.remap[t]||t];n&&H.push([t,G(t,n,W)])}))})),I(N(W),(function(e){var t=W[e];if("function"==typeof t){for(var n=H.length;n--;)if(H[n][0]==e)return;t.convert=F(e,t),H.push([e,t])}})),I(H,(function(e){W[e[0]]=e[1]})),W.convert=function(e){return W.runInContext.convert(e)(void 0)},W.placeholder=W,I(N(W),(function(t){I(e.realToAlias[t]||[],(function(e){W[e]=W[t]}))})),W},W1}function h6(){if(V$)return q1;V$=1;var e=f6().runInContext();return q1=y2()(e,e)}var jf=h6();
|
|
36
|
+
*/function f5(){return L$||(L$=1,e=Xm,t=Xm.exports,function(){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function r(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function o(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function i(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function a(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function u(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function s(e,t){return!(null==e||!e.length)&&g(e,t,0)>-1}function l(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function c(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function d(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function f(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function p(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function m(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function h(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function v(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function g(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):v(e,b,n)}function y(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function b(e){return e!=e}function w(e,t){var n=null==e?0:e.length;return n?S(e,t)/n:Y}function x(e){return function(t){return null==t?V:t[e]}}function _(e){return function(t){return null==e?V:e[t]}}function E(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function S(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);i!==V&&(n=n===V?i:n+i)}return n}function k(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function A(e){return e&&e.slice(0,B(e)+1).replace(Ge,"")}function C(e){return function(t){return e(t)}}function I(e,t){return c(t,(function(t){return e[t]}))}function R(e,t){return e.has(t)}function P(e,t){for(var n=-1,r=e.length;++n<r&&g(t,e[n],0)>-1;);return n}function T(e,t){for(var n=e.length;n--&&g(t,e[n],0)>-1;);return n}function O(e){return"\\"+Qt[e]}function N(e){return Ft.test(e)}function j(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function q(e,t){return function(n){return e(t(n))}}function D(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==U||(e[n]=U,i[o++]=n)}return i}function M(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function L(e){return N(e)?function(e){for(var t=Vt.lastIndex=0;Vt.test(e);)++t;return t}(e):pn(e)}function $(e){return N(e)?function(e){return e.match(Vt)||[]}(e):function(e){return e.split("")}(e)}function B(e){for(var t=e.length;t--&&We.test(e.charAt(t)););return t}var V,z="Expected a function",F="__lodash_hash_undefined__",U="__lodash_placeholder__",G=16,W=32,H=64,K=128,Q=256,X=1/0,J=9007199254740991,Y=NaN,Z=4294967295,ee=Z-1,te=Z>>>1,ne=[["ary",K],["bind",1],["bindKey",2],["curry",8],["curryRight",G],["flip",512],["partial",W],["partialRight",H],["rearg",Q]],re="[object Arguments]",oe="[object Array]",ie="[object Boolean]",ae="[object Date]",ue="[object Error]",se="[object Function]",le="[object GeneratorFunction]",ce="[object Map]",de="[object Number]",fe="[object Object]",pe="[object Promise]",me="[object RegExp]",he="[object Set]",ve="[object String]",ge="[object Symbol]",ye="[object WeakMap]",be="[object ArrayBuffer]",we="[object DataView]",xe="[object Float32Array]",_e="[object Float64Array]",Ee="[object Int8Array]",Se="[object Int16Array]",ke="[object Int32Array]",Ae="[object Uint8Array]",Ce="[object Uint8ClampedArray]",Ie="[object Uint16Array]",Re="[object Uint32Array]",Pe=/\b__p \+= '';/g,Te=/\b(__p \+=) '' \+/g,Oe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ne=/&(?:amp|lt|gt|quot|#39);/g,je=/[&<>"']/g,qe=RegExp(Ne.source),De=RegExp(je.source),Me=/<%-([\s\S]+?)%>/g,Le=/<%([\s\S]+?)%>/g,$e=/<%=([\s\S]+?)%>/g,Be=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ve=/^\w*$/,ze=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fe=/[\\^$.*+?()[\]{}|]/g,Ue=RegExp(Fe.source),Ge=/^\s+/,We=/\s/,He=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ke=/\{\n\/\* \[wrapped with (.+)\] \*/,Qe=/,? & /,Xe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Je=/[()=,{}\[\]\/\s]/,Ye=/\\(\\)?/g,Ze=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,et=/\w*$/,tt=/^[-+]0x[0-9a-f]+$/i,nt=/^0b[01]+$/i,rt=/^\[object .+?Constructor\]$/,ot=/^0o[0-7]+$/i,it=/^(?:0|[1-9]\d*)$/,at=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ut=/($^)/,st=/['\n\r\u2028\u2029\\]/g,lt="\\ud800-\\udfff",ct="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",dt="\\u2700-\\u27bf",ft="a-z\\xdf-\\xf6\\xf8-\\xff",pt="A-Z\\xc0-\\xd6\\xd8-\\xde",mt="\\ufe0e\\ufe0f",ht="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",vt="['’]",gt="["+lt+"]",yt="["+ht+"]",bt="["+ct+"]",wt="\\d+",xt="["+dt+"]",_t="["+ft+"]",Et="[^"+lt+ht+wt+dt+ft+pt+"]",St="\\ud83c[\\udffb-\\udfff]",kt="[^"+lt+"]",At="(?:\\ud83c[\\udde6-\\uddff]){2}",Ct="[\\ud800-\\udbff][\\udc00-\\udfff]",It="["+pt+"]",Rt="\\u200d",Pt="(?:"+_t+"|"+Et+")",Tt="(?:"+It+"|"+Et+")",Ot="(?:['’](?:d|ll|m|re|s|t|ve))?",Nt="(?:['’](?:D|LL|M|RE|S|T|VE))?",jt="(?:"+bt+"|"+St+")?",qt="["+mt+"]?",Dt=qt+jt+"(?:"+Rt+"(?:"+[kt,At,Ct].join("|")+")"+qt+jt+")*",Mt="(?:"+[xt,At,Ct].join("|")+")"+Dt,Lt="(?:"+[kt+bt+"?",bt,At,Ct,gt].join("|")+")",$t=RegExp(vt,"g"),Bt=RegExp(bt,"g"),Vt=RegExp(St+"(?="+St+")|"+Lt+Dt,"g"),zt=RegExp([It+"?"+_t+"+"+Ot+"(?="+[yt,It,"$"].join("|")+")",Tt+"+"+Nt+"(?="+[yt,It+Pt,"$"].join("|")+")",It+"?"+Pt+"+"+Ot,It+"+"+Nt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",wt,Mt].join("|"),"g"),Ft=RegExp("["+Rt+lt+ct+mt+"]"),Ut=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Gt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Wt=-1,Ht={};Ht[xe]=Ht[_e]=Ht[Ee]=Ht[Se]=Ht[ke]=Ht[Ae]=Ht[Ce]=Ht[Ie]=Ht[Re]=!0,Ht[re]=Ht[oe]=Ht[be]=Ht[ie]=Ht[we]=Ht[ae]=Ht[ue]=Ht[se]=Ht[ce]=Ht[de]=Ht[fe]=Ht[me]=Ht[he]=Ht[ve]=Ht[ye]=!1;var Kt={};Kt[re]=Kt[oe]=Kt[be]=Kt[we]=Kt[ie]=Kt[ae]=Kt[xe]=Kt[_e]=Kt[Ee]=Kt[Se]=Kt[ke]=Kt[ce]=Kt[de]=Kt[fe]=Kt[me]=Kt[he]=Kt[ve]=Kt[ge]=Kt[Ae]=Kt[Ce]=Kt[Ie]=Kt[Re]=!0,Kt[ue]=Kt[se]=Kt[ye]=!1;var Qt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Xt=parseFloat,Jt=parseInt,Yt="object"==typeof ka&&ka&&ka.Object===Object&&ka,Zt="object"==typeof self&&self&&self.Object===Object&&self,en=Yt||Zt||Function("return this")(),tn=t&&!t.nodeType&&t,nn=tn&&e&&!e.nodeType&&e,rn=nn&&nn.exports===tn,on=rn&&Yt.process,an=function(){try{return nn&&nn.require&&nn.require("util").types||on&&on.binding&&on.binding("util")}catch{}}(),un=an&&an.isArrayBuffer,sn=an&&an.isDate,ln=an&&an.isMap,cn=an&&an.isRegExp,dn=an&&an.isSet,fn=an&&an.isTypedArray,pn=x("length"),mn=_({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),hn=_({"&":"&","<":"<",">":">",'"':""","'":"'"}),vn=_({"&":"&","<":"<",">":">",""":'"',"'":"'"}),gn=function e(t){function _(e){if(Lo(e)&&!Iu(e)&&!(e instanceof ct)){if(e instanceof lt)return e;if(Ii.call(e,"__wrapped__"))return lo(e)}return new lt(e)}function We(){}function lt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=V}function ct(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Z,this.__views__=[]}function dt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ft(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function pt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function mt(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new pt;++t<n;)this.add(e[t])}function ht(e){this.size=(this.__data__=new ft(e)).size}function vt(e,t){var n=Iu(e),r=!n&&Cu(e),o=!n&&!r&&Pu(e),i=!n&&!r&&!o&&qu(e),a=n||r||o||i,u=a?k(e.length,xi):[],s=u.length;for(var l in e)!t&&!Ii.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Kr(l,s))||u.push(l);return u}function gt(e){var t=e.length;return t?e[Nn(0,t-1)]:V}function yt(e,t){return ao(cr(e),Ct(t,0,e.length))}function bt(e){return ao(cr(e))}function wt(e,t,n){(n===V||Po(e[t],n))&&(n!==V||t in e)||kt(e,t,n)}function xt(e,t,n){var r=e[t];Ii.call(e,t)&&Po(r,n)&&(n!==V||t in e)||kt(e,t,n)}function _t(e,t){for(var n=e.length;n--;)if(Po(e[n][0],t))return n;return-1}function Et(e,t,n,r){return Aa(e,(function(e,o,i){t(r,e,n(e),i)})),r}function St(e,t){return e&&dr(t,Yo(t),e)}function kt(e,t,n){"__proto__"==t&&Wi?Wi(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function At(e,t){for(var n=-1,r=t.length,o=mi(r),i=null==e;++n<r;)o[n]=i?V:Xo(e,t[n]);return o}function Ct(e,t,n){return e==e&&(n!==V&&(e=e<=n?e:n),t!==V&&(e=e>=t?e:t)),e}function It(e,t,n,r,i,a){var u,s=1&t,l=2&t,c=4&t;if(n&&(u=i?n(e,r,i,a):n(e)),u!==V)return u;if(!Mo(e))return e;var d=Iu(e);if(d){if(u=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ii.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return cr(e,u)}else{var f=La(e),p=f==se||f==le;if(Pu(e))return or(e,s);if(f==fe||f==re||p&&!i){if(u=l||p?{}:Wr(e),!s)return l?function(e,t){return dr(e,Ma(e),t)}(e,function(e,t){return e&&dr(t,Zo(t),e)}(u,e)):function(e,t){return dr(e,Da(e),t)}(e,St(u,e))}else{if(!Kt[f])return i?e:{};u=function(e,t,n){var r=e.constructor;switch(t){case be:return ir(e);case ie:case ae:return new r(+e);case we:return function(e,t){return new e.constructor(t?ir(e.buffer):e.buffer,e.byteOffset,e.byteLength)}(e,n);case xe:case _e:case Ee:case Se:case ke:case Ae:case Ce:case Ie:case Re:return ar(e,n);case ce:return new r;case de:case ve:return new r(e);case me:return function(e){var t=new e.constructor(e.source,et.exec(e));return t.lastIndex=e.lastIndex,t}(e);case he:return new r;case ge:return function(e){return Ea?bi(Ea.call(e)):{}}(e)}}(e,f,s)}}a||(a=new ht);var m=a.get(e);if(m)return m;a.set(e,u),ju(e)?e.forEach((function(r){u.add(It(r,t,n,r,e,a))})):Ou(e)&&e.forEach((function(r,o){u.set(o,It(r,t,n,o,e,a))}));var h=d?V:(c?l?Lr:Mr:l?Zo:Yo)(e);return o(h||e,(function(r,o){h&&(r=e[o=r]),xt(u,o,It(r,t,n,o,e,a))})),u}function Rt(e,t,n){var r=n.length;if(null==e)return!r;for(e=bi(e);r--;){var o=n[r],i=t[o],a=e[o];if(a===V&&!(o in e)||!i(a))return!1}return!0}function Pt(e,t,n){if("function"!=typeof e)throw new _i(z);return Va((function(){e.apply(V,n)}),t)}function Tt(e,t,n,r){var o=-1,i=s,a=!0,u=e.length,d=[],f=t.length;if(!u)return d;n&&(t=c(t,C(n))),r?(i=l,a=!1):t.length>=200&&(i=R,a=!1,t=new mt(t));e:for(;++o<u;){var p=e[o],m=null==n?p:n(p);if(p=r||0!==p?p:0,a&&m==m){for(var h=f;h--;)if(t[h]===m)continue e;d.push(p)}else i(t,m,r)||d.push(p)}return d}function Ot(e,t){var n=!0;return Aa(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function Nt(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(u===V?a==a&&!zo(a):n(a,u)))var u=a,s=i}return s}function jt(e,t){var n=[];return Aa(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function qt(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=Hr),o||(o=[]);++i<a;){var u=e[i];t>0&&n(u)?t>1?qt(u,t-1,n,r,o):d(o,u):r||(o[o.length]=u)}return o}function Dt(e,t){return e&&Ia(e,t,Yo)}function Mt(e,t){return e&&Ra(e,t,Yo)}function Lt(e,t){return u(t,(function(t){return jo(e[t])}))}function Vt(e,t){for(var n=0,r=(t=nr(t,e)).length;null!=e&&n<r;)e=e[uo(t[n++])];return n&&n==r?e:V}function Ft(e,t,n){var r=t(e);return Iu(e)?r:d(r,n(e))}function Qt(e){return null==e?e===V?"[object Undefined]":"[object Null]":Gi&&Gi in bi(e)?function(e){var t=Ii.call(e,Gi),n=e[Gi];try{e[Gi]=V;var r=!0}catch{}var o=Ti.call(e);return r&&(t?e[Gi]=n:delete e[Gi]),o}(e):function(e){return Ti.call(e)}(e)}function Yt(e,t){return e>t}function Zt(e,t){return null!=e&&Ii.call(e,t)}function tn(e,t){return null!=e&&t in bi(e)}function nn(e,t,n){for(var r=n?l:s,o=e[0].length,i=e.length,a=i,u=mi(i),d=1/0,f=[];a--;){var p=e[a];a&&t&&(p=c(p,C(t))),d=oa(p.length,d),u[a]=!n&&(t||o>=120&&p.length>=120)?new mt(a&&p):V}p=e[0];var m=-1,h=u[0];e:for(;++m<o&&f.length<d;){var v=p[m],g=t?t(v):v;if(v=n||0!==v?v:0,!(h?R(h,g):r(f,g,n))){for(a=i;--a;){var y=u[a];if(!(y?R(y,g):r(e[a],g,n)))continue e}h&&h.push(g),f.push(v)}}return f}function on(e,t,r){var o=null==(e=no(e,t=nr(t,e)))?e:e[uo(ho(t))];return null==o?V:n(o,e,r)}function an(e){return Lo(e)&&Qt(e)==re}function pn(e,t,n,r,o){return e===t||(null==e||null==t||!Lo(e)&&!Lo(t)?e!=e&&t!=t:function(e,t,n,r,o,i){var a=Iu(e),u=Iu(t),s=a?oe:La(e),l=u?oe:La(t),c=(s=s==re?fe:s)==fe,d=(l=l==re?fe:l)==fe,f=s==l;if(f&&Pu(e)){if(!Pu(t))return!1;a=!0,c=!1}if(f&&!c)return i||(i=new ht),a||qu(e)?qr(e,t,n,r,o,i):function(e,t,n,r,o,i,a){switch(n){case we:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case be:return!(e.byteLength!=t.byteLength||!i(new Mi(e),new Mi(t)));case ie:case ae:case de:return Po(+e,+t);case ue:return e.name==t.name&&e.message==t.message;case me:case ve:return e==t+"";case ce:var u=j;case he:var s=1&r;if(u||(u=M),e.size!=t.size&&!s)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var c=qr(u(e),u(t),r,o,i,a);return a.delete(e),c;case ge:if(Ea)return Ea.call(e)==Ea.call(t)}return!1}(e,t,s,n,r,o,i);if(!(1&n)){var p=c&&Ii.call(e,"__wrapped__"),m=d&&Ii.call(t,"__wrapped__");if(p||m){var h=p?e.value():e,v=m?t.value():t;return i||(i=new ht),o(h,v,n,r,i)}}return!!f&&(i||(i=new ht),function(e,t,n,r,o,i){var a=1&n,u=Mr(e),s=u.length;if(s!=Mr(t).length&&!a)return!1;for(var l=s;l--;){var c=u[l];if(!(a?c in t:Ii.call(t,c)))return!1}var d=i.get(e),f=i.get(t);if(d&&f)return d==t&&f==e;var p=!0;i.set(e,t),i.set(t,e);for(var m=a;++l<s;){var h=e[c=u[l]],v=t[c];if(r)var g=a?r(v,h,c,t,e,i):r(h,v,c,e,t,i);if(!(g===V?h===v||o(h,v,n,r,i):g)){p=!1;break}m||(m="constructor"==c)}if(p&&!m){var y=e.constructor,b=t.constructor;y!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b)&&(p=!1)}return i.delete(e),i.delete(t),p}(e,t,n,r,o,i))}(e,t,n,r,pn,o))}function yn(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=bi(e);o--;){var u=n[o];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<i;){var s=(u=n[o])[0],l=e[s],c=u[1];if(a&&u[2]){if(l===V&&!(s in e))return!1}else{var d=new ht;if(r)var f=r(l,c,s,e,t,d);if(!(f===V?pn(c,l,3,r,d):f))return!1}}return!0}function bn(e){return!(!Mo(e)||function(e){return!!Pi&&Pi in e}(e))&&(jo(e)?ji:rt).test(so(e))}function wn(e){return"function"==typeof e?e:null==e?ai:"object"==typeof e?Iu(e)?An(e[0],e[1]):kn(e):ci(e)}function xn(e){if(!Yr(e))return na(e);var t=[];for(var n in bi(e))Ii.call(e,n)&&"constructor"!=n&&t.push(n);return t}function _n(e){if(!Mo(e))return function(e){var t=[];if(null!=e)for(var n in bi(e))t.push(n);return t}(e);var t=Yr(e),n=[];for(var r in e)("constructor"!=r||!t&&Ii.call(e,r))&&n.push(r);return n}function En(e,t){return e<t}function Sn(e,t){var n=-1,r=To(e)?mi(e.length):[];return Aa(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}function kn(e){var t=Fr(e);return 1==t.length&&t[0][2]?eo(t[0][0],t[0][1]):function(n){return n===e||yn(n,e,t)}}function An(e,t){return Xr(e)&&Zr(t)?eo(uo(e),t):function(n){var r=Xo(n,e);return r===V&&r===t?Jo(n,e):pn(t,r,3)}}function Cn(e,t,n,r,o){e!==t&&Ia(t,(function(i,a){if(o||(o=new ht),Mo(i))!function(e,t,n,r,o,i,a){var u=ro(e,n),s=ro(t,n),l=a.get(s);if(l)return wt(e,n,l),V;var c=i?i(u,s,n+"",e,t,a):V,d=c===V;if(d){var f=Iu(s),p=!f&&Pu(s),m=!f&&!p&&qu(s);c=s,f||p||m?Iu(u)?c=u:Oo(u)?c=cr(u):p?(d=!1,c=or(s,!0)):m?(d=!1,c=ar(s,!0)):c=[]:Bo(s)||Cu(s)?(c=u,Cu(u)?c=Ko(u):Mo(u)&&!jo(u)||(c=Wr(s))):d=!1}d&&(a.set(s,c),o(c,s,r,i,a),a.delete(s)),wt(e,n,c)}(e,t,a,n,Cn,r,o);else{var u=r?r(ro(e,a),i,a+"",e,t,o):V;u===V&&(u=i),wt(e,a,u)}}),Zo)}function In(e,t){var n=e.length;if(n)return Kr(t+=t<0?n:0,n)?e[t]:V}function Rn(e,t,n){t=t.length?c(t,(function(e){return Iu(e)?function(t){return Vt(t,1===e.length?e[0]:e)}:e})):[ai];var r=-1;return t=c(t,C(Vr())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Sn(e,(function(e,n,o){return{criteria:c(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,u=n.length;++r<a;){var s=ur(o[r],i[r]);if(s)return r>=u?s:s*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Pn(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],u=Vt(e,a);n(u,a)&&Ln(i,nr(a,e),u)}return i}function Tn(e,t,n,r){var o=r?y:g,i=-1,a=t.length,u=e;for(e===t&&(t=cr(t)),n&&(u=c(e,C(n)));++i<a;)for(var s=0,l=t[i],d=n?n(l):l;(s=o(u,d,s,r))>-1;)u!==e&&zi.call(u,s,1),zi.call(e,s,1);return e}function On(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Kr(o)?zi.call(e,o,1):Kn(e,o)}}return e}function Nn(e,t){return e+Ji(ua()*(t-e+1))}function jn(e,t){var n="";if(!e||t<1||t>J)return n;do{t%2&&(n+=e),(t=Ji(t/2))&&(e+=e)}while(t);return n}function qn(e,t){return za(to(e,t,ai),e+"")}function Dn(e){return gt(ti(e))}function Mn(e,t){var n=ti(e);return ao(n,Ct(t,0,n.length))}function Ln(e,t,n,r){if(!Mo(e))return e;for(var o=-1,i=(t=nr(t,e)).length,a=i-1,u=e;null!=u&&++o<i;){var s=uo(t[o]),l=n;if("__proto__"===s||"constructor"===s||"prototype"===s)return e;if(o!=a){var c=u[s];(l=r?r(c,s,u):V)===V&&(l=Mo(c)?c:Kr(t[o+1])?[]:{})}xt(u,s,l),u=u[s]}return e}function $n(e){return ao(ti(e))}function Bn(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=mi(o);++r<o;)i[r]=e[r+t];return i}function Vn(e,t){var n;return Aa(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function zn(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=te){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!zo(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return Fn(e,t,ai,n)}function Fn(e,t,n,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;for(var a=(t=n(t))!=t,u=null===t,s=zo(t),l=t===V;o<i;){var c=Ji((o+i)/2),d=n(e[c]),f=d!==V,p=null===d,m=d==d,h=zo(d);if(a)var v=r||m;else v=l?m&&(r||f):u?m&&f&&(r||!p):s?m&&f&&!p&&(r||!h):!p&&!h&&(r?d<=t:d<t);v?o=c+1:i=c}return oa(i,ee)}function Un(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],u=t?t(a):a;if(!n||!Po(u,s)){var s=u;i[o++]=0===a?0:a}}return i}function Gn(e){return"number"==typeof e?e:zo(e)?Y:+e}function Wn(e){if("string"==typeof e)return e;if(Iu(e))return c(e,Wn)+"";if(zo(e))return Sa?Sa.call(e):"";var t=e+"";return"0"==t&&1/e==-X?"-0":t}function Hn(e,t,n){var r=-1,o=s,i=e.length,a=!0,u=[],c=u;if(n)a=!1,o=l;else if(i>=200){var d=t?null:ja(e);if(d)return M(d);a=!1,o=R,c=new mt}else c=t?[]:u;e:for(;++r<i;){var f=e[r],p=t?t(f):f;if(f=n||0!==f?f:0,a&&p==p){for(var m=c.length;m--;)if(c[m]===p)continue e;t&&c.push(p),u.push(f)}else o(c,p,n)||(c!==u&&c.push(p),u.push(f))}return u}function Kn(e,t){return null==(e=no(e,t=nr(t,e)))||delete e[uo(ho(t))]}function Qn(e,t,n,r){return Ln(e,t,n(Vt(e,t)),r)}function Xn(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?Bn(e,r?0:i,r?i+1:o):Bn(e,r?i+1:0,r?o:i)}function Jn(e,t){var n=e;return n instanceof ct&&(n=n.value()),f(t,(function(e,t){return t.func.apply(t.thisArg,d([e],t.args))}),n)}function Yn(e,t,n){var r=e.length;if(r<2)return r?Hn(e[0]):[];for(var o=-1,i=mi(r);++o<r;)for(var a=e[o],u=-1;++u<r;)u!=o&&(i[o]=Tt(i[o]||a,e[u],t,n));return Hn(qt(i,1),t,n)}function Zn(e,t,n){for(var r=-1,o=e.length,i=t.length,a={};++r<o;)n(a,e[r],r<i?t[r]:V);return a}function er(e){return Oo(e)?e:[]}function tr(e){return"function"==typeof e?e:ai}function nr(e,t){return Iu(e)?e:Xr(e,t)?[e]:Fa(Qo(e))}function rr(e,t,n){var r=e.length;return n=n===V?r:n,!t&&n>=r?e:Bn(e,t,n)}function or(e,t){if(t)return e.slice();var n=e.length,r=Li?Li(n):new e.constructor(n);return e.copy(r),r}function ir(e){var t=new e.constructor(e.byteLength);return new Mi(t).set(new Mi(e)),t}function ar(e,t){return new e.constructor(t?ir(e.buffer):e.buffer,e.byteOffset,e.length)}function ur(e,t){if(e!==t){var n=e!==V,r=null===e,o=e==e,i=zo(e),a=t!==V,u=null===t,s=t==t,l=zo(t);if(!u&&!l&&!i&&e>t||i&&a&&s&&!u&&!l||r&&a&&s||!n&&s||!o)return 1;if(!r&&!i&&!l&&e<t||l&&n&&o&&!r&&!i||u&&n&&o||!a&&o||!s)return-1}return 0}function sr(e,t,n,r){for(var o=-1,i=e.length,a=n.length,u=-1,s=t.length,l=ra(i-a,0),c=mi(s+l),d=!r;++u<s;)c[u]=t[u];for(;++o<a;)(d||o<i)&&(c[n[o]]=e[o]);for(;l--;)c[u++]=e[o++];return c}function lr(e,t,n,r){for(var o=-1,i=e.length,a=-1,u=n.length,s=-1,l=t.length,c=ra(i-u,0),d=mi(c+l),f=!r;++o<c;)d[o]=e[o];for(var p=o;++s<l;)d[p+s]=t[s];for(;++a<u;)(f||o<i)&&(d[p+n[a]]=e[o++]);return d}function cr(e,t){var n=-1,r=e.length;for(t||(t=mi(r));++n<r;)t[n]=e[n];return t}function dr(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var u=t[i],s=r?r(n[u],e[u],u,n,e):V;s===V&&(s=e[u]),o?kt(n,u,s):xt(n,u,s)}return n}function fr(e,t){return function(n,o){var i=Iu(n)?r:Et,a=t?t():{};return i(n,e,Vr(o,2),a)}}function pr(e){return qn((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:V,a=o>2?n[2]:V;for(i=e.length>3&&"function"==typeof i?(o--,i):V,a&&Qr(n[0],n[1],a)&&(i=o<3?V:i,o=1),t=bi(t);++r<o;){var u=n[r];u&&e(t,u,r,i)}return t}))}function mr(e,t){return function(n,r){if(null==n)return n;if(!To(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=bi(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function hr(e){return function(t,n,r){for(var o=-1,i=bi(t),a=r(t),u=a.length;u--;){var s=a[e?u:++o];if(!1===n(i[s],s,i))break}return t}}function vr(e){return function(t){var n=N(t=Qo(t))?$(t):V,r=n?n[0]:t.charAt(0),o=n?rr(n,1).join(""):t.slice(1);return r[e]()+o}}function gr(e){return function(t){return f(oi(ri(t).replace($t,"")),e,"")}}function yr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=ka(e.prototype),r=e.apply(n,t);return Mo(r)?r:n}}function br(e){return function(t,n,r){var o=bi(t);if(!To(t)){var i=Vr(n,3);t=Yo(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:V}}function wr(e){return Dr((function(t){var n=t.length,r=n,o=lt.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if("function"!=typeof i)throw new _i(z);if(o&&!a&&"wrapper"==$r(i))var a=new lt([],!0)}for(r=a?r:n;++r<n;){var u=$r(i=t[r]),s="wrapper"==u?qa(i):V;a=s&&Jr(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?a[$r(s[0])].apply(a,s[3]):1==i.length&&Jr(i)?a[u]():a.thru(i)}return function(){var e=arguments,r=e[0];if(a&&1==e.length&&Iu(r))return a.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function xr(e,t,n,r,o,i,a,u,s,l){var c=t&K,d=1&t,f=2&t,p=24&t,m=512&t,h=f?V:yr(e);return function v(){for(var g=arguments.length,y=mi(g),b=g;b--;)y[b]=arguments[b];if(p)var w=Br(v),x=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(y,w);if(r&&(y=sr(y,r,o,p)),i&&(y=lr(y,i,a,p)),g-=x,p&&g<l)return Ir(e,t,xr,v.placeholder,n,y,D(y,w),u,s,l-g);var _=d?n:this,E=f?_[e]:e;return g=y.length,u?y=function(e,t){for(var n=e.length,r=oa(t.length,n),o=cr(e);r--;){var i=t[r];e[r]=Kr(i,n)?o[i]:V}return e}(y,u):m&&g>1&&y.reverse(),c&&s<g&&(y.length=s),this&&this!==en&&this instanceof v&&(E=h||yr(E)),E.apply(_,y)}}function _r(e,t){return function(n,r){return function(e,t,n,r){return Dt(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Er(e,t){return function(n,r){var o;if(n===V&&r===V)return t;if(n!==V&&(o=n),r!==V){if(o===V)return r;"string"==typeof n||"string"==typeof r?(n=Wn(n),r=Wn(r)):(n=Gn(n),r=Gn(r)),o=e(n,r)}return o}}function Sr(e){return Dr((function(t){return t=c(t,C(Vr())),qn((function(r){var o=this;return e(t,(function(e){return n(e,o,r)}))}))}))}function kr(e,t){var n=(t=t===V?" ":Wn(t)).length;if(n<2)return n?jn(t,e):t;var r=jn(t,Xi(e/L(t)));return N(t)?rr($(r),0,e).join(""):r.slice(0,e)}function Ar(e){return function(t,n,r){return r&&"number"!=typeof r&&Qr(t,n,r)&&(n=r=V),t=Uo(t),n===V?(n=t,t=0):n=Uo(n),function(e,t,n,r){for(var o=-1,i=ra(Xi((t-e)/(n||1)),0),a=mi(i);i--;)a[r?i:++o]=e,e+=n;return a}(t,n,r=r===V?t<n?1:-1:Uo(r),e)}}function Cr(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Ho(t),n=Ho(n)),e(t,n)}}function Ir(e,t,n,r,o,i,a,u,s,l){var c=8&t;t|=c?W:H,4&(t&=~(c?H:W))||(t&=-4);var d=[e,t,o,c?i:V,c?a:V,c?V:i,c?V:a,u,s,l],f=n.apply(V,d);return Jr(e)&&Ba(f,d),f.placeholder=r,oo(f,e,t)}function Rr(e){var t=yi[e];return function(e,n){if(e=Ho(e),(n=null==n?0:oa(Go(n),292))&&ea(e)){var r=(Qo(e)+"e").split("e");return+((r=(Qo(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}function Pr(e){return function(t){var n=La(t);return n==ce?j(t):n==he?function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}(t):function(e,t){return c(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Tr(e,t,r,o,i,a,u,s){var l=2&t;if(!l&&"function"!=typeof e)throw new _i(z);var c=o?o.length:0;if(c||(t&=-97,o=i=V),u=u===V?u:ra(Go(u),0),s=s===V?s:Go(s),c-=i?i.length:0,t&H){var d=o,f=i;o=i=V}var p=l?V:qa(e),m=[e,t,r,o,i,d,f,a,u,s];if(p&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==K&&8==n||r==K&&n==Q&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var u=t[3];if(u){var s=e[3];e[3]=s?sr(s,u,t[4]):u,e[4]=s?D(e[3],U):t[4]}(u=t[5])&&(s=e[5],e[5]=s?lr(s,u,t[6]):u,e[6]=s?D(e[5],U):t[6]),(u=t[7])&&(e[7]=u),r&K&&(e[8]=null==e[8]?t[8]:oa(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(m,p),e=m[0],t=m[1],r=m[2],o=m[3],i=m[4],!(s=m[9]=m[9]===V?l?0:e.length:ra(m[9]-c,0))&&24&t&&(t&=-25),t&&1!=t)h=8==t||t==G?function(e,t,r){var o=yr(e);return function i(){for(var a=arguments.length,u=mi(a),s=a,l=Br(i);s--;)u[s]=arguments[s];var c=a<3&&u[0]!==l&&u[a-1]!==l?[]:D(u,l);return(a-=c.length)<r?Ir(e,t,xr,i.placeholder,V,u,c,V,V,r-a):n(this&&this!==en&&this instanceof i?o:e,this,u)}}(e,t,s):t!=W&&33!=t||i.length?xr.apply(V,m):function(e,t,r,o){var i=1&t,a=yr(e);return function t(){for(var u=-1,s=arguments.length,l=-1,c=o.length,d=mi(c+s),f=this&&this!==en&&this instanceof t?a:e;++l<c;)d[l]=o[l];for(;s--;)d[l++]=arguments[++u];return n(f,i?r:this,d)}}(e,t,r,o);else var h=function(e,t,n){var r=1&t,o=yr(e);return function t(){return(this&&this!==en&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,r);return oo((p?Pa:Ba)(h,m),e,t)}function Or(e,t,n,r){return e===V||Po(e,ki[n])&&!Ii.call(r,n)?t:e}function Nr(e,t,n,r,o,i){return Mo(e)&&Mo(t)&&(i.set(t,e),Cn(e,t,V,Nr,i),i.delete(t)),e}function jr(e){return Bo(e)?V:e}function qr(e,t,n,r,o,i){var a=1&n,u=e.length,s=t.length;if(u!=s&&!(a&&s>u))return!1;var l=i.get(e),c=i.get(t);if(l&&c)return l==t&&c==e;var d=-1,f=!0,p=2&n?new mt:V;for(i.set(e,t),i.set(t,e);++d<u;){var h=e[d],v=t[d];if(r)var g=a?r(v,h,d,t,e,i):r(h,v,d,e,t,i);if(g!==V){if(g)continue;f=!1;break}if(p){if(!m(t,(function(e,t){if(!R(p,t)&&(h===e||o(h,e,n,r,i)))return p.push(t)}))){f=!1;break}}else if(h!==v&&!o(h,v,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function Dr(e){return za(to(e,V,po),e+"")}function Mr(e){return Ft(e,Yo,Da)}function Lr(e){return Ft(e,Zo,Ma)}function $r(e){for(var t=e.name+"",n=va[t],r=Ii.call(va,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function Br(e){return(Ii.call(_,"placeholder")?_:e).placeholder}function Vr(){var e=_.iteratee||ui;return e=e===ui?wn:e,arguments.length?e(arguments[0],arguments[1]):e}function zr(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Fr(e){for(var t=Yo(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Zr(o)]}return t}function Ur(e,t){var n=function(e,t){return null==e?V:e[t]}(e,t);return bn(n)?n:V}function Gr(e,t,n){for(var r=-1,o=(t=nr(t,e)).length,i=!1;++r<o;){var a=uo(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Do(o)&&Kr(a,o)&&(Iu(e)||Cu(e))}function Wr(e){return"function"!=typeof e.constructor||Yr(e)?{}:ka($i(e))}function Hr(e){return Iu(e)||Cu(e)||!!(Fi&&e&&e[Fi])}function Kr(e,t){var n=typeof e;return!!(t=t??J)&&("number"==n||"symbol"!=n&&it.test(e))&&e>-1&&e%1==0&&e<t}function Qr(e,t,n){if(!Mo(n))return!1;var r=typeof t;return!!("number"==r?To(n)&&Kr(t,n.length):"string"==r&&t in n)&&Po(n[t],e)}function Xr(e,t){if(Iu(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!zo(e))||Ve.test(e)||!Be.test(e)||null!=t&&e in bi(t)}function Jr(e){var t=$r(e),n=_[t];if("function"!=typeof n||!(t in ct.prototype))return!1;if(e===n)return!0;var r=qa(n);return!!r&&e===r[0]}function Yr(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ki)}function Zr(e){return e==e&&!Mo(e)}function eo(e,t){return function(n){return null!=n&&n[e]===t&&(t!==V||e in bi(n))}}function to(e,t,r){return t=ra(t===V?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=ra(o.length-t,0),u=mi(a);++i<a;)u[i]=o[t+i];i=-1;for(var s=mi(t+1);++i<t;)s[i]=o[i];return s[t]=r(u),n(e,this,s)}}function no(e,t){return t.length<2?e:Vt(e,Bn(t,0,-1))}function ro(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function oo(e,t,n){var r=t+"";return za(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(He,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return o(ne,(function(n){var r="_."+n[0];t&n[1]&&!s(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(Ke);return t?t[1].split(Qe):[]}(r),n)))}function io(e){var t=0,n=0;return function(){var r=ia(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(V,arguments)}}function ao(e,t){var n=-1,r=e.length,o=r-1;for(t=t===V?r:t;++n<t;){var i=Nn(n,o),a=e[i];e[i]=e[n],e[n]=a}return e.length=t,e}function uo(e){if("string"==typeof e||zo(e))return e;var t=e+"";return"0"==t&&1/e==-X?"-0":t}function so(e){if(null!=e){try{return Ci.call(e)}catch{}try{return e+""}catch{}}return""}function lo(e){if(e instanceof ct)return e.clone();var t=new lt(e.__wrapped__,e.__chain__);return t.__actions__=cr(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function co(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Go(n);return o<0&&(o=ra(r+o,0)),v(e,Vr(t,3),o)}function fo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==V&&(o=Go(n),o=n<0?ra(r+o,0):oa(o,r-1)),v(e,Vr(t,3),o,!0)}function po(e){return null!=e&&e.length?qt(e,1):[]}function mo(e){return e&&e.length?e[0]:V}function ho(e){var t=null==e?0:e.length;return t?e[t-1]:V}function vo(e,t){return e&&e.length&&t&&t.length?Tn(e,t):e}function go(e){return null==e?e:sa.call(e)}function yo(e){if(!e||!e.length)return[];var t=0;return e=u(e,(function(e){if(Oo(e))return t=ra(e.length,t),!0})),k(t,(function(t){return c(e,x(t))}))}function bo(e,t){if(!e||!e.length)return[];var r=yo(e);return null==t?r:c(r,(function(e){return n(t,V,e)}))}function wo(e){var t=_(e);return t.__chain__=!0,t}function xo(e,t){return t(e)}function _o(e,t){return(Iu(e)?o:Aa)(e,Vr(t,3))}function Eo(e,t){return(Iu(e)?i:Ca)(e,Vr(t,3))}function So(e,t){return(Iu(e)?c:Sn)(e,Vr(t,3))}function ko(e,t,n){return t=n?V:t,t=e&&null==t?e.length:t,Tr(e,K,V,V,V,V,t)}function Ao(e,t){var n;if("function"!=typeof t)throw new _i(z);return e=Go(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=V),n}}function Co(e,t,n){function r(t){var n=s,r=l;return s=l=V,m=t,d=e.apply(r,n)}function o(e){var n=e-p;return p===V||n>=t||n<0||v&&e-m>=c}function i(){var e=vu();return o(e)?a(e):(f=Va(i,function(e){var n=t-(e-p);return v?oa(n,c-(e-m)):n}(e)),V)}function a(e){return f=V,g&&s?r(e):(s=l=V,d)}function u(){var e=vu(),n=o(e);if(s=arguments,l=this,p=e,n){if(f===V)return function(e){return m=e,f=Va(i,t),h?r(e):d}(p);if(v)return Na(f),f=Va(i,t),r(p)}return f===V&&(f=Va(i,t)),d}var s,l,c,d,f,p,m=0,h=!1,v=!1,g=!0;if("function"!=typeof e)throw new _i(z);return t=Ho(t)||0,Mo(n)&&(h=!!n.leading,c=(v="maxWait"in n)?ra(Ho(n.maxWait)||0,t):c,g="trailing"in n?!!n.trailing:g),u.cancel=function(){f!==V&&Na(f),m=0,s=p=l=f=V},u.flush=function(){return f===V?d:a(vu())},u}function Io(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new _i(z);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Io.Cache||pt),n}function Ro(e){if("function"!=typeof e)throw new _i(z);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Po(e,t){return e===t||e!=e&&t!=t}function To(e){return null!=e&&Do(e.length)&&!jo(e)}function Oo(e){return Lo(e)&&To(e)}function No(e){if(!Lo(e))return!1;var t=Qt(e);return t==ue||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Bo(e)}function jo(e){if(!Mo(e))return!1;var t=Qt(e);return t==se||t==le||"[object AsyncFunction]"==t||"[object Proxy]"==t}function qo(e){return"number"==typeof e&&e==Go(e)}function Do(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=J}function Mo(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Lo(e){return null!=e&&"object"==typeof e}function $o(e){return"number"==typeof e||Lo(e)&&Qt(e)==de}function Bo(e){if(!Lo(e)||Qt(e)!=fe)return!1;var t=$i(e);if(null===t)return!0;var n=Ii.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ci.call(n)==Oi}function Vo(e){return"string"==typeof e||!Iu(e)&&Lo(e)&&Qt(e)==ve}function zo(e){return"symbol"==typeof e||Lo(e)&&Qt(e)==ge}function Fo(e){if(!e)return[];if(To(e))return Vo(e)?$(e):cr(e);if(Ui&&e[Ui])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ui]());var t=La(e);return(t==ce?j:t==he?M:ti)(e)}function Uo(e){return e?(e=Ho(e))===X||e===-X?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function Go(e){var t=Uo(e),n=t%1;return t==t?n?t-n:t:0}function Wo(e){return e?Ct(Go(e),0,Z):0}function Ho(e){if("number"==typeof e)return e;if(zo(e))return Y;if(Mo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Mo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=A(e);var n=nt.test(e);return n||ot.test(e)?Jt(e.slice(2),n?2:8):tt.test(e)?Y:+e}function Ko(e){return dr(e,Zo(e))}function Qo(e){return null==e?"":Wn(e)}function Xo(e,t,n){var r=null==e?V:Vt(e,t);return r===V?n:r}function Jo(e,t){return null!=e&&Gr(e,t,tn)}function Yo(e){return To(e)?vt(e):xn(e)}function Zo(e){return To(e)?vt(e,!0):_n(e)}function ei(e,t){if(null==e)return{};var n=c(Lr(e),(function(e){return[e]}));return t=Vr(t),Pn(e,n,(function(e,n){return t(e,n[0])}))}function ti(e){return null==e?[]:I(e,Yo(e))}function ni(e){return us(Qo(e).toLowerCase())}function ri(e){return(e=Qo(e))&&e.replace(at,mn).replace(Bt,"")}function oi(e,t,n){return e=Qo(e),(t=n?V:t)===V?function(e){return Ut.test(e)}(e)?function(e){return e.match(zt)||[]}(e):function(e){return e.match(Xe)||[]}(e):e.match(t)||[]}function ii(e){return function(){return e}}function ai(e){return e}function ui(e){return wn("function"==typeof e?e:It(e,1))}function si(e,t,n){var r=Yo(t),i=Lt(t,r);null!=n||Mo(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Lt(t,Yo(t)));var a=!(Mo(n)&&"chain"in n&&!n.chain),u=jo(e);return o(i,(function(n){var r=t[n];e[n]=r,u&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=cr(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,d([this.value()],arguments))})})),e}function li(){}function ci(e){return Xr(e)?x(uo(e)):function(e){return function(t){return Vt(t,e)}}(e)}function di(){return[]}function fi(){return!1}var pi,mi=(t=null==t?en:gn.defaults(en.Object(),t,gn.pick(en,Gt))).Array,hi=t.Date,vi=t.Error,gi=t.Function,yi=t.Math,bi=t.Object,wi=t.RegExp,xi=t.String,_i=t.TypeError,Ei=mi.prototype,Si=gi.prototype,ki=bi.prototype,Ai=t["__core-js_shared__"],Ci=Si.toString,Ii=ki.hasOwnProperty,Ri=0,Pi=(pi=/[^.]+$/.exec(Ai&&Ai.keys&&Ai.keys.IE_PROTO||""))?"Symbol(src)_1."+pi:"",Ti=ki.toString,Oi=Ci.call(bi),Ni=en._,ji=wi("^"+Ci.call(Ii).replace(Fe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qi=rn?t.Buffer:V,Di=t.Symbol,Mi=t.Uint8Array,Li=qi?qi.allocUnsafe:V,$i=q(bi.getPrototypeOf,bi),Bi=bi.create,Vi=ki.propertyIsEnumerable,zi=Ei.splice,Fi=Di?Di.isConcatSpreadable:V,Ui=Di?Di.iterator:V,Gi=Di?Di.toStringTag:V,Wi=function(){try{var e=Ur(bi,"defineProperty");return e({},"",{}),e}catch{}}(),Hi=t.clearTimeout!==en.clearTimeout&&t.clearTimeout,Ki=hi&&hi.now!==en.Date.now&&hi.now,Qi=t.setTimeout!==en.setTimeout&&t.setTimeout,Xi=yi.ceil,Ji=yi.floor,Yi=bi.getOwnPropertySymbols,Zi=qi?qi.isBuffer:V,ea=t.isFinite,ta=Ei.join,na=q(bi.keys,bi),ra=yi.max,oa=yi.min,ia=hi.now,aa=t.parseInt,ua=yi.random,sa=Ei.reverse,la=Ur(t,"DataView"),ca=Ur(t,"Map"),da=Ur(t,"Promise"),fa=Ur(t,"Set"),pa=Ur(t,"WeakMap"),ma=Ur(bi,"create"),ha=pa&&new pa,va={},ga=so(la),ya=so(ca),ba=so(da),wa=so(fa),xa=so(pa),_a=Di?Di.prototype:V,Ea=_a?_a.valueOf:V,Sa=_a?_a.toString:V,ka=function(){function e(){}return function(t){if(!Mo(t))return{};if(Bi)return Bi(t);e.prototype=t;var n=new e;return e.prototype=V,n}}();_.templateSettings={escape:Me,evaluate:Le,interpolate:$e,variable:"",imports:{_:_}},_.prototype=We.prototype,_.prototype.constructor=_,lt.prototype=ka(We.prototype),lt.prototype.constructor=lt,ct.prototype=ka(We.prototype),ct.prototype.constructor=ct,dt.prototype.clear=function(){this.__data__=ma?ma(null):{},this.size=0},dt.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},dt.prototype.get=function(e){var t=this.__data__;if(ma){var n=t[e];return n===F?V:n}return Ii.call(t,e)?t[e]:V},dt.prototype.has=function(e){var t=this.__data__;return ma?t[e]!==V:Ii.call(t,e)},dt.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ma&&t===V?F:t,this},ft.prototype.clear=function(){this.__data__=[],this.size=0},ft.prototype.delete=function(e){var t=this.__data__,n=_t(t,e);return!(n<0||(n==t.length-1?t.pop():zi.call(t,n,1),--this.size,0))},ft.prototype.get=function(e){var t=this.__data__,n=_t(t,e);return n<0?V:t[n][1]},ft.prototype.has=function(e){return _t(this.__data__,e)>-1},ft.prototype.set=function(e,t){var n=this.__data__,r=_t(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},pt.prototype.clear=function(){this.size=0,this.__data__={hash:new dt,map:new(ca||ft),string:new dt}},pt.prototype.delete=function(e){var t=zr(this,e).delete(e);return this.size-=t?1:0,t},pt.prototype.get=function(e){return zr(this,e).get(e)},pt.prototype.has=function(e){return zr(this,e).has(e)},pt.prototype.set=function(e,t){var n=zr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},mt.prototype.add=mt.prototype.push=function(e){return this.__data__.set(e,F),this},mt.prototype.has=function(e){return this.__data__.has(e)},ht.prototype.clear=function(){this.__data__=new ft,this.size=0},ht.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ht.prototype.get=function(e){return this.__data__.get(e)},ht.prototype.has=function(e){return this.__data__.has(e)},ht.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ft){var r=n.__data__;if(!ca||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new pt(r)}return n.set(e,t),this.size=n.size,this};var Aa=mr(Dt),Ca=mr(Mt,!0),Ia=hr(),Ra=hr(!0),Pa=ha?function(e,t){return ha.set(e,t),e}:ai,Ta=Wi?function(e,t){return Wi(e,"toString",{configurable:!0,enumerable:!1,value:ii(t),writable:!0})}:ai,Oa=qn,Na=Hi||function(e){return en.clearTimeout(e)},ja=fa&&1/M(new fa([,-0]))[1]==X?function(e){return new fa(e)}:li,qa=ha?function(e){return ha.get(e)}:li,Da=Yi?function(e){return null==e?[]:(e=bi(e),u(Yi(e),(function(t){return Vi.call(e,t)})))}:di,Ma=Yi?function(e){for(var t=[];e;)d(t,Da(e)),e=$i(e);return t}:di,La=Qt;(la&&La(new la(new ArrayBuffer(1)))!=we||ca&&La(new ca)!=ce||da&&La(da.resolve())!=pe||fa&&La(new fa)!=he||pa&&La(new pa)!=ye)&&(La=function(e){var t=Qt(e),n=t==fe?e.constructor:V,r=n?so(n):"";if(r)switch(r){case ga:return we;case ya:return ce;case ba:return pe;case wa:return he;case xa:return ye}return t});var $a=Ai?jo:fi,Ba=io(Pa),Va=Qi||function(e,t){return en.setTimeout(e,t)},za=io(Ta),Fa=function(e){var t=Io(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ze,(function(e,n,r,o){t.push(r?o.replace(Ye,"$1"):n||e)})),t})),Ua=qn((function(e,t){return Oo(e)?Tt(e,qt(t,1,Oo,!0)):[]})),Ga=qn((function(e,t){var n=ho(t);return Oo(n)&&(n=V),Oo(e)?Tt(e,qt(t,1,Oo,!0),Vr(n,2)):[]})),Wa=qn((function(e,t){var n=ho(t);return Oo(n)&&(n=V),Oo(e)?Tt(e,qt(t,1,Oo,!0),V,n):[]})),Ha=qn((function(e){var t=c(e,er);return t.length&&t[0]===e[0]?nn(t):[]})),Ka=qn((function(e){var t=ho(e),n=c(e,er);return t===ho(n)?t=V:n.pop(),n.length&&n[0]===e[0]?nn(n,Vr(t,2)):[]})),Qa=qn((function(e){var t=ho(e),n=c(e,er);return(t="function"==typeof t?t:V)&&n.pop(),n.length&&n[0]===e[0]?nn(n,V,t):[]})),Xa=qn(vo),Ja=Dr((function(e,t){var n=null==e?0:e.length,r=At(e,t);return On(e,c(t,(function(e){return Kr(e,n)?+e:e})).sort(ur)),r})),Ya=qn((function(e){return Hn(qt(e,1,Oo,!0))})),Za=qn((function(e){var t=ho(e);return Oo(t)&&(t=V),Hn(qt(e,1,Oo,!0),Vr(t,2))})),eu=qn((function(e){var t=ho(e);return t="function"==typeof t?t:V,Hn(qt(e,1,Oo,!0),V,t)})),tu=qn((function(e,t){return Oo(e)?Tt(e,t):[]})),nu=qn((function(e){return Yn(u(e,Oo))})),ru=qn((function(e){var t=ho(e);return Oo(t)&&(t=V),Yn(u(e,Oo),Vr(t,2))})),ou=qn((function(e){var t=ho(e);return t="function"==typeof t?t:V,Yn(u(e,Oo),V,t)})),iu=qn(yo),au=qn((function(e){var t=e.length,n=t>1?e[t-1]:V;return n="function"==typeof n?(e.pop(),n):V,bo(e,n)})),uu=Dr((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return At(t,e)};return!(t>1||this.__actions__.length)&&r instanceof ct&&Kr(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:xo,args:[o],thisArg:V}),new lt(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(V),e}))):this.thru(o)})),su=fr((function(e,t,n){Ii.call(e,n)?++e[n]:kt(e,n,1)})),lu=br(co),cu=br(fo),du=fr((function(e,t,n){Ii.call(e,n)?e[n].push(t):kt(e,n,[t])})),fu=qn((function(e,t,r){var o=-1,i="function"==typeof t,a=To(e)?mi(e.length):[];return Aa(e,(function(e){a[++o]=i?n(t,e,r):on(e,t,r)})),a})),pu=fr((function(e,t,n){kt(e,n,t)})),mu=fr((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),hu=qn((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Qr(e,t[0],t[1])?t=[]:n>2&&Qr(t[0],t[1],t[2])&&(t=[t[0]]),Rn(e,qt(t,1),[])})),vu=Ki||function(){return en.Date.now()},gu=qn((function(e,t,n){var r=1;if(n.length){var o=D(n,Br(gu));r|=W}return Tr(e,r,t,n,o)})),yu=qn((function(e,t,n){var r=3;if(n.length){var o=D(n,Br(yu));r|=W}return Tr(t,r,e,n,o)})),bu=qn((function(e,t){return Pt(e,1,t)})),wu=qn((function(e,t,n){return Pt(e,Ho(t)||0,n)}));Io.Cache=pt;var xu=Oa((function(e,t){var r=(t=1==t.length&&Iu(t[0])?c(t[0],C(Vr())):c(qt(t,1),C(Vr()))).length;return qn((function(o){for(var i=-1,a=oa(o.length,r);++i<a;)o[i]=t[i].call(this,o[i]);return n(e,this,o)}))})),_u=qn((function(e,t){return Tr(e,W,V,t,D(t,Br(_u)))})),Eu=qn((function(e,t){return Tr(e,H,V,t,D(t,Br(Eu)))})),Su=Dr((function(e,t){return Tr(e,Q,V,V,V,t)})),ku=Cr(Yt),Au=Cr((function(e,t){return e>=t})),Cu=an(function(){return arguments}())?an:function(e){return Lo(e)&&Ii.call(e,"callee")&&!Vi.call(e,"callee")},Iu=mi.isArray,Ru=un?C(un):function(e){return Lo(e)&&Qt(e)==be},Pu=Zi||fi,Tu=sn?C(sn):function(e){return Lo(e)&&Qt(e)==ae},Ou=ln?C(ln):function(e){return Lo(e)&&La(e)==ce},Nu=cn?C(cn):function(e){return Lo(e)&&Qt(e)==me},ju=dn?C(dn):function(e){return Lo(e)&&La(e)==he},qu=fn?C(fn):function(e){return Lo(e)&&Do(e.length)&&!!Ht[Qt(e)]},Du=Cr(En),Mu=Cr((function(e,t){return e<=t})),Lu=pr((function(e,t){if(Yr(t)||To(t))return dr(t,Yo(t),e),V;for(var n in t)Ii.call(t,n)&&xt(e,n,t[n])})),$u=pr((function(e,t){dr(t,Zo(t),e)})),Bu=pr((function(e,t,n,r){dr(t,Zo(t),e,r)})),Vu=pr((function(e,t,n,r){dr(t,Yo(t),e,r)})),zu=Dr(At),Fu=qn((function(e,t){e=bi(e);var n=-1,r=t.length,o=r>2?t[2]:V;for(o&&Qr(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],a=Zo(i),u=-1,s=a.length;++u<s;){var l=a[u],c=e[l];(c===V||Po(c,ki[l])&&!Ii.call(e,l))&&(e[l]=i[l])}return e})),Uu=qn((function(e){return e.push(V,Nr),n(Qu,V,e)})),Gu=_r((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ti.call(t)),e[t]=n}),ii(ai)),Wu=_r((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ti.call(t)),Ii.call(e,t)?e[t].push(n):e[t]=[n]}),Vr),Hu=qn(on),Ku=pr((function(e,t,n){Cn(e,t,n)})),Qu=pr((function(e,t,n,r){Cn(e,t,n,r)})),Xu=Dr((function(e,t){var n={};if(null==e)return n;var r=!1;t=c(t,(function(t){return t=nr(t,e),r||(r=t.length>1),t})),dr(e,Lr(e),n),r&&(n=It(n,7,jr));for(var o=t.length;o--;)Kn(n,t[o]);return n})),Ju=Dr((function(e,t){return null==e?{}:function(e,t){return Pn(e,t,(function(t,n){return Jo(e,n)}))}(e,t)})),Yu=Pr(Yo),Zu=Pr(Zo),es=gr((function(e,t,n){return t=t.toLowerCase(),e+(n?ni(t):t)})),ts=gr((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),ns=gr((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),rs=vr("toLowerCase"),os=gr((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),is=gr((function(e,t,n){return e+(n?" ":"")+us(t)})),as=gr((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),us=vr("toUpperCase"),ss=qn((function(e,t){try{return n(e,V,t)}catch(e){return No(e)?e:new vi(e)}})),ls=Dr((function(e,t){return o(t,(function(t){t=uo(t),kt(e,t,gu(e[t],e))})),e})),cs=wr(),ds=wr(!0),fs=qn((function(e,t){return function(n){return on(n,e,t)}})),ps=qn((function(e,t){return function(n){return on(e,n,t)}})),ms=Sr(c),hs=Sr(a),vs=Sr(m),gs=Ar(),ys=Ar(!0),bs=Er((function(e,t){return e+t}),0),ws=Rr("ceil"),xs=Er((function(e,t){return e/t}),1),_s=Rr("floor"),Es=Er((function(e,t){return e*t}),1),Ss=Rr("round"),ks=Er((function(e,t){return e-t}),0);return _.after=function(e,t){if("function"!=typeof t)throw new _i(z);return e=Go(e),function(){if(--e<1)return t.apply(this,arguments)}},_.ary=ko,_.assign=Lu,_.assignIn=$u,_.assignInWith=Bu,_.assignWith=Vu,_.at=zu,_.before=Ao,_.bind=gu,_.bindAll=ls,_.bindKey=yu,_.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Iu(e)?e:[e]},_.chain=wo,_.chunk=function(e,t,n){t=(n?Qr(e,t,n):t===V)?1:ra(Go(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=mi(Xi(r/t));o<r;)a[i++]=Bn(e,o,o+=t);return a},_.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},_.concat=function(){var e=arguments.length;if(!e)return[];for(var t=mi(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return d(Iu(n)?cr(n):[n],qt(t,1))},_.cond=function(e){var t=null==e?0:e.length,r=Vr();return e=t?c(e,(function(e){if("function"!=typeof e[1])throw new _i(z);return[r(e[0]),e[1]]})):[],qn((function(r){for(var o=-1;++o<t;){var i=e[o];if(n(i[0],this,r))return n(i[1],this,r)}}))},_.conforms=function(e){return function(e){var t=Yo(e);return function(n){return Rt(n,e,t)}}(It(e,1))},_.constant=ii,_.countBy=su,_.create=function(e,t){var n=ka(e);return null==t?n:St(n,t)},_.curry=function e(t,n,r){var o=Tr(t,8,V,V,V,V,V,n=r?V:n);return o.placeholder=e.placeholder,o},_.curryRight=function e(t,n,r){var o=Tr(t,G,V,V,V,V,V,n=r?V:n);return o.placeholder=e.placeholder,o},_.debounce=Co,_.defaults=Fu,_.defaultsDeep=Uu,_.defer=bu,_.delay=wu,_.difference=Ua,_.differenceBy=Ga,_.differenceWith=Wa,_.drop=function(e,t,n){var r=null==e?0:e.length;return r?Bn(e,(t=n||t===V?1:Go(t))<0?0:t,r):[]},_.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Bn(e,0,(t=r-(t=n||t===V?1:Go(t)))<0?0:t):[]},_.dropRightWhile=function(e,t){return e&&e.length?Xn(e,Vr(t,3),!0,!0):[]},_.dropWhile=function(e,t){return e&&e.length?Xn(e,Vr(t,3),!0):[]},_.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&Qr(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=Go(n))<0&&(n=-n>o?0:o+n),(r=r===V||r>o?o:Go(r))<0&&(r+=o),r=n>r?0:Wo(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},_.filter=function(e,t){return(Iu(e)?u:jt)(e,Vr(t,3))},_.flatMap=function(e,t){return qt(So(e,t),1)},_.flatMapDeep=function(e,t){return qt(So(e,t),X)},_.flatMapDepth=function(e,t,n){return n=n===V?1:Go(n),qt(So(e,t),n)},_.flatten=po,_.flattenDeep=function(e){return null!=e&&e.length?qt(e,X):[]},_.flattenDepth=function(e,t){return null!=e&&e.length?qt(e,t=t===V?1:Go(t)):[]},_.flip=function(e){return Tr(e,512)},_.flow=cs,_.flowRight=ds,_.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},_.functions=function(e){return null==e?[]:Lt(e,Yo(e))},_.functionsIn=function(e){return null==e?[]:Lt(e,Zo(e))},_.groupBy=du,_.initial=function(e){return null!=e&&e.length?Bn(e,0,-1):[]},_.intersection=Ha,_.intersectionBy=Ka,_.intersectionWith=Qa,_.invert=Gu,_.invertBy=Wu,_.invokeMap=fu,_.iteratee=ui,_.keyBy=pu,_.keys=Yo,_.keysIn=Zo,_.map=So,_.mapKeys=function(e,t){var n={};return t=Vr(t,3),Dt(e,(function(e,r,o){kt(n,t(e,r,o),e)})),n},_.mapValues=function(e,t){var n={};return t=Vr(t,3),Dt(e,(function(e,r,o){kt(n,r,t(e,r,o))})),n},_.matches=function(e){return kn(It(e,1))},_.matchesProperty=function(e,t){return An(e,It(t,1))},_.memoize=Io,_.merge=Ku,_.mergeWith=Qu,_.method=fs,_.methodOf=ps,_.mixin=si,_.negate=Ro,_.nthArg=function(e){return e=Go(e),qn((function(t){return In(t,e)}))},_.omit=Xu,_.omitBy=function(e,t){return ei(e,Ro(Vr(t)))},_.once=function(e){return Ao(2,e)},_.orderBy=function(e,t,n,r){return null==e?[]:(Iu(t)||(t=null==t?[]:[t]),Iu(n=r?V:n)||(n=null==n?[]:[n]),Rn(e,t,n))},_.over=ms,_.overArgs=xu,_.overEvery=hs,_.overSome=vs,_.partial=_u,_.partialRight=Eu,_.partition=mu,_.pick=Ju,_.pickBy=ei,_.property=ci,_.propertyOf=function(e){return function(t){return null==e?V:Vt(e,t)}},_.pull=Xa,_.pullAll=vo,_.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Tn(e,t,Vr(n,2)):e},_.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Tn(e,t,V,n):e},_.pullAt=Ja,_.range=gs,_.rangeRight=ys,_.rearg=Su,_.reject=function(e,t){return(Iu(e)?u:jt)(e,Ro(Vr(t,3)))},_.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=Vr(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return On(e,o),n},_.rest=function(e,t){if("function"!=typeof e)throw new _i(z);return qn(e,t=t===V?t:Go(t))},_.reverse=go,_.sampleSize=function(e,t,n){return t=(n?Qr(e,t,n):t===V)?1:Go(t),(Iu(e)?yt:Mn)(e,t)},_.set=function(e,t,n){return null==e?e:Ln(e,t,n)},_.setWith=function(e,t,n,r){return r="function"==typeof r?r:V,null==e?e:Ln(e,t,n,r)},_.shuffle=function(e){return(Iu(e)?bt:$n)(e)},_.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Qr(e,t,n)?(t=0,n=r):(t=null==t?0:Go(t),n=n===V?r:Go(n)),Bn(e,t,n)):[]},_.sortBy=hu,_.sortedUniq=function(e){return e&&e.length?Un(e):[]},_.sortedUniqBy=function(e,t){return e&&e.length?Un(e,Vr(t,2)):[]},_.split=function(e,t,n){return n&&"number"!=typeof n&&Qr(e,t,n)&&(t=n=V),(n=n===V?Z:n>>>0)?(e=Qo(e))&&("string"==typeof t||null!=t&&!Nu(t))&&!(t=Wn(t))&&N(e)?rr($(e),0,n):e.split(t,n):[]},_.spread=function(e,t){if("function"!=typeof e)throw new _i(z);return t=null==t?0:ra(Go(t),0),qn((function(r){var o=r[t],i=rr(r,0,t);return o&&d(i,o),n(e,this,i)}))},_.tail=function(e){var t=null==e?0:e.length;return t?Bn(e,1,t):[]},_.take=function(e,t,n){return e&&e.length?Bn(e,0,(t=n||t===V?1:Go(t))<0?0:t):[]},_.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Bn(e,(t=r-(t=n||t===V?1:Go(t)))<0?0:t,r):[]},_.takeRightWhile=function(e,t){return e&&e.length?Xn(e,Vr(t,3),!1,!0):[]},_.takeWhile=function(e,t){return e&&e.length?Xn(e,Vr(t,3)):[]},_.tap=function(e,t){return t(e),e},_.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new _i(z);return Mo(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Co(e,t,{leading:r,maxWait:t,trailing:o})},_.thru=xo,_.toArray=Fo,_.toPairs=Yu,_.toPairsIn=Zu,_.toPath=function(e){return Iu(e)?c(e,uo):zo(e)?[e]:cr(Fa(Qo(e)))},_.toPlainObject=Ko,_.transform=function(e,t,n){var r=Iu(e),i=r||Pu(e)||qu(e);if(t=Vr(t,4),null==n){var a=e&&e.constructor;n=i?r?new a:[]:Mo(e)&&jo(a)?ka($i(e)):{}}return(i?o:Dt)(e,(function(e,r,o){return t(n,e,r,o)})),n},_.unary=function(e){return ko(e,1)},_.union=Ya,_.unionBy=Za,_.unionWith=eu,_.uniq=function(e){return e&&e.length?Hn(e):[]},_.uniqBy=function(e,t){return e&&e.length?Hn(e,Vr(t,2)):[]},_.uniqWith=function(e,t){return t="function"==typeof t?t:V,e&&e.length?Hn(e,V,t):[]},_.unset=function(e,t){return null==e||Kn(e,t)},_.unzip=yo,_.unzipWith=bo,_.update=function(e,t,n){return null==e?e:Qn(e,t,tr(n))},_.updateWith=function(e,t,n,r){return r="function"==typeof r?r:V,null==e?e:Qn(e,t,tr(n),r)},_.values=ti,_.valuesIn=function(e){return null==e?[]:I(e,Zo(e))},_.without=tu,_.words=oi,_.wrap=function(e,t){return _u(tr(t),e)},_.xor=nu,_.xorBy=ru,_.xorWith=ou,_.zip=iu,_.zipObject=function(e,t){return Zn(e||[],t||[],xt)},_.zipObjectDeep=function(e,t){return Zn(e||[],t||[],Ln)},_.zipWith=au,_.entries=Yu,_.entriesIn=Zu,_.extend=$u,_.extendWith=Bu,si(_,_),_.add=bs,_.attempt=ss,_.camelCase=es,_.capitalize=ni,_.ceil=ws,_.clamp=function(e,t,n){return n===V&&(n=t,t=V),n!==V&&(n=(n=Ho(n))==n?n:0),t!==V&&(t=(t=Ho(t))==t?t:0),Ct(Ho(e),t,n)},_.clone=function(e){return It(e,4)},_.cloneDeep=function(e){return It(e,5)},_.cloneDeepWith=function(e,t){return It(e,5,t="function"==typeof t?t:V)},_.cloneWith=function(e,t){return It(e,4,t="function"==typeof t?t:V)},_.conformsTo=function(e,t){return null==t||Rt(e,t,Yo(t))},_.deburr=ri,_.defaultTo=function(e,t){return null==e||e!=e?t:e},_.divide=xs,_.endsWith=function(e,t,n){e=Qo(e),t=Wn(t);var r=e.length,o=n=n===V?r:Ct(Go(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},_.eq=Po,_.escape=function(e){return(e=Qo(e))&&De.test(e)?e.replace(je,hn):e},_.escapeRegExp=function(e){return(e=Qo(e))&&Ue.test(e)?e.replace(Fe,"\\$&"):e},_.every=function(e,t,n){var r=Iu(e)?a:Ot;return n&&Qr(e,t,n)&&(t=V),r(e,Vr(t,3))},_.find=lu,_.findIndex=co,_.findKey=function(e,t){return h(e,Vr(t,3),Dt)},_.findLast=cu,_.findLastIndex=fo,_.findLastKey=function(e,t){return h(e,Vr(t,3),Mt)},_.floor=_s,_.forEach=_o,_.forEachRight=Eo,_.forIn=function(e,t){return null==e?e:Ia(e,Vr(t,3),Zo)},_.forInRight=function(e,t){return null==e?e:Ra(e,Vr(t,3),Zo)},_.forOwn=function(e,t){return e&&Dt(e,Vr(t,3))},_.forOwnRight=function(e,t){return e&&Mt(e,Vr(t,3))},_.get=Xo,_.gt=ku,_.gte=Au,_.has=function(e,t){return null!=e&&Gr(e,t,Zt)},_.hasIn=Jo,_.head=mo,_.identity=ai,_.includes=function(e,t,n,r){e=To(e)?e:ti(e),n=n&&!r?Go(n):0;var o=e.length;return n<0&&(n=ra(o+n,0)),Vo(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&g(e,t,n)>-1},_.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Go(n);return o<0&&(o=ra(r+o,0)),g(e,t,o)},_.inRange=function(e,t,n){return t=Uo(t),n===V?(n=t,t=0):n=Uo(n),function(e,t,n){return e>=oa(t,n)&&e<ra(t,n)}(e=Ho(e),t,n)},_.invoke=Hu,_.isArguments=Cu,_.isArray=Iu,_.isArrayBuffer=Ru,_.isArrayLike=To,_.isArrayLikeObject=Oo,_.isBoolean=function(e){return!0===e||!1===e||Lo(e)&&Qt(e)==ie},_.isBuffer=Pu,_.isDate=Tu,_.isElement=function(e){return Lo(e)&&1===e.nodeType&&!Bo(e)},_.isEmpty=function(e){if(null==e)return!0;if(To(e)&&(Iu(e)||"string"==typeof e||"function"==typeof e.splice||Pu(e)||qu(e)||Cu(e)))return!e.length;var t=La(e);if(t==ce||t==he)return!e.size;if(Yr(e))return!xn(e).length;for(var n in e)if(Ii.call(e,n))return!1;return!0},_.isEqual=function(e,t){return pn(e,t)},_.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:V)?n(e,t):V;return r===V?pn(e,t,V,n):!!r},_.isError=No,_.isFinite=function(e){return"number"==typeof e&&ea(e)},_.isFunction=jo,_.isInteger=qo,_.isLength=Do,_.isMap=Ou,_.isMatch=function(e,t){return e===t||yn(e,t,Fr(t))},_.isMatchWith=function(e,t,n){return n="function"==typeof n?n:V,yn(e,t,Fr(t),n)},_.isNaN=function(e){return $o(e)&&e!=+e},_.isNative=function(e){if($a(e))throw new vi("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return bn(e)},_.isNil=function(e){return null==e},_.isNull=function(e){return null===e},_.isNumber=$o,_.isObject=Mo,_.isObjectLike=Lo,_.isPlainObject=Bo,_.isRegExp=Nu,_.isSafeInteger=function(e){return qo(e)&&e>=-J&&e<=J},_.isSet=ju,_.isString=Vo,_.isSymbol=zo,_.isTypedArray=qu,_.isUndefined=function(e){return e===V},_.isWeakMap=function(e){return Lo(e)&&La(e)==ye},_.isWeakSet=function(e){return Lo(e)&&"[object WeakSet]"==Qt(e)},_.join=function(e,t){return null==e?"":ta.call(e,t)},_.kebabCase=ts,_.last=ho,_.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==V&&(o=(o=Go(n))<0?ra(r+o,0):oa(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):v(e,b,o,!0)},_.lowerCase=ns,_.lowerFirst=rs,_.lt=Du,_.lte=Mu,_.max=function(e){return e&&e.length?Nt(e,ai,Yt):V},_.maxBy=function(e,t){return e&&e.length?Nt(e,Vr(t,2),Yt):V},_.mean=function(e){return w(e,ai)},_.meanBy=function(e,t){return w(e,Vr(t,2))},_.min=function(e){return e&&e.length?Nt(e,ai,En):V},_.minBy=function(e,t){return e&&e.length?Nt(e,Vr(t,2),En):V},_.stubArray=di,_.stubFalse=fi,_.stubObject=function(){return{}},_.stubString=function(){return""},_.stubTrue=function(){return!0},_.multiply=Es,_.nth=function(e,t){return e&&e.length?In(e,Go(t)):V},_.noConflict=function(){return en._===this&&(en._=Ni),this},_.noop=li,_.now=vu,_.pad=function(e,t,n){e=Qo(e);var r=(t=Go(t))?L(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return kr(Ji(o),n)+e+kr(Xi(o),n)},_.padEnd=function(e,t,n){e=Qo(e);var r=(t=Go(t))?L(e):0;return t&&r<t?e+kr(t-r,n):e},_.padStart=function(e,t,n){e=Qo(e);var r=(t=Go(t))?L(e):0;return t&&r<t?kr(t-r,n)+e:e},_.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),aa(Qo(e).replace(Ge,""),t||0)},_.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Qr(e,t,n)&&(t=n=V),n===V&&("boolean"==typeof t?(n=t,t=V):"boolean"==typeof e&&(n=e,e=V)),e===V&&t===V?(e=0,t=1):(e=Uo(e),t===V?(t=e,e=0):t=Uo(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=ua();return oa(e+o*(t-e+Xt("1e-"+((o+"").length-1))),t)}return Nn(e,t)},_.reduce=function(e,t,n){var r=Iu(e)?f:E,o=arguments.length<3;return r(e,Vr(t,4),n,o,Aa)},_.reduceRight=function(e,t,n){var r=Iu(e)?p:E,o=arguments.length<3;return r(e,Vr(t,4),n,o,Ca)},_.repeat=function(e,t,n){return t=(n?Qr(e,t,n):t===V)?1:Go(t),jn(Qo(e),t)},_.replace=function(){var e=arguments,t=Qo(e[0]);return e.length<3?t:t.replace(e[1],e[2])},_.result=function(e,t,n){var r=-1,o=(t=nr(t,e)).length;for(o||(o=1,e=V);++r<o;){var i=null==e?V:e[uo(t[r])];i===V&&(r=o,i=n),e=jo(i)?i.call(e):i}return e},_.round=Ss,_.runInContext=e,_.sample=function(e){return(Iu(e)?gt:Dn)(e)},_.size=function(e){if(null==e)return 0;if(To(e))return Vo(e)?L(e):e.length;var t=La(e);return t==ce||t==he?e.size:xn(e).length},_.snakeCase=os,_.some=function(e,t,n){var r=Iu(e)?m:Vn;return n&&Qr(e,t,n)&&(t=V),r(e,Vr(t,3))},_.sortedIndex=function(e,t){return zn(e,t)},_.sortedIndexBy=function(e,t,n){return Fn(e,t,Vr(n,2))},_.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=zn(e,t);if(r<n&&Po(e[r],t))return r}return-1},_.sortedLastIndex=function(e,t){return zn(e,t,!0)},_.sortedLastIndexBy=function(e,t,n){return Fn(e,t,Vr(n,2),!0)},_.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=zn(e,t,!0)-1;if(Po(e[n],t))return n}return-1},_.startCase=is,_.startsWith=function(e,t,n){return e=Qo(e),n=null==n?0:Ct(Go(n),0,e.length),t=Wn(t),e.slice(n,n+t.length)==t},_.subtract=ks,_.sum=function(e){return e&&e.length?S(e,ai):0},_.sumBy=function(e,t){return e&&e.length?S(e,Vr(t,2)):0},_.template=function(e,t,n){var r=_.templateSettings;n&&Qr(e,t,n)&&(t=V),e=Qo(e),t=Bu({},t,r,Or);var o,i,a=Bu({},t.imports,r.imports,Or),u=Yo(a),s=I(a,u),l=0,c=t.interpolate||ut,d="__p += '",f=wi((t.escape||ut).source+"|"+c.source+"|"+(c===$e?Ze:ut).source+"|"+(t.evaluate||ut).source+"|$","g"),p="//# sourceURL="+(Ii.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Wt+"]")+"\n";e.replace(f,(function(t,n,r,a,u,s){return r||(r=a),d+=e.slice(l,s).replace(st,O),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),u&&(i=!0,d+="';\n"+u+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=s+t.length,t})),d+="';\n";var m=Ii.call(t,"variable")&&t.variable;if(m){if(Je.test(m))throw new vi("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(i?d.replace(Pe,""):d).replace(Te,"$1").replace(Oe,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var h=ss((function(){return gi(u,p+"return "+d).apply(V,s)}));if(h.source=d,No(h))throw h;return h},_.times=function(e,t){if((e=Go(e))<1||e>J)return[];var n=Z,r=oa(e,Z);t=Vr(t),e-=Z;for(var o=k(r,t);++n<e;)t(n);return o},_.toFinite=Uo,_.toInteger=Go,_.toLength=Wo,_.toLower=function(e){return Qo(e).toLowerCase()},_.toNumber=Ho,_.toSafeInteger=function(e){return e?Ct(Go(e),-J,J):0===e?e:0},_.toString=Qo,_.toUpper=function(e){return Qo(e).toUpperCase()},_.trim=function(e,t,n){if((e=Qo(e))&&(n||t===V))return A(e);if(!e||!(t=Wn(t)))return e;var r=$(e),o=$(t);return rr(r,P(r,o),T(r,o)+1).join("")},_.trimEnd=function(e,t,n){if((e=Qo(e))&&(n||t===V))return e.slice(0,B(e)+1);if(!e||!(t=Wn(t)))return e;var r=$(e);return rr(r,0,T(r,$(t))+1).join("")},_.trimStart=function(e,t,n){if((e=Qo(e))&&(n||t===V))return e.replace(Ge,"");if(!e||!(t=Wn(t)))return e;var r=$(e);return rr(r,P(r,$(t))).join("")},_.truncate=function(e,t){var n=30,r="...";if(Mo(t)){var o="separator"in t?t.separator:o;n="length"in t?Go(t.length):n,r="omission"in t?Wn(t.omission):r}var i=(e=Qo(e)).length;if(N(e)){var a=$(e);i=a.length}if(n>=i)return e;var u=n-L(r);if(u<1)return r;var s=a?rr(a,0,u).join(""):e.slice(0,u);if(o===V)return s+r;if(a&&(u+=s.length-u),Nu(o)){if(e.slice(u).search(o)){var l,c=s;for(o.global||(o=wi(o.source,Qo(et.exec(o))+"g")),o.lastIndex=0;l=o.exec(c);)var d=l.index;s=s.slice(0,d===V?u:d)}}else if(e.indexOf(Wn(o),u)!=u){var f=s.lastIndexOf(o);f>-1&&(s=s.slice(0,f))}return s+r},_.unescape=function(e){return(e=Qo(e))&&qe.test(e)?e.replace(Ne,vn):e},_.uniqueId=function(e){var t=++Ri;return Qo(e)+t},_.upperCase=as,_.upperFirst=us,_.each=_o,_.eachRight=Eo,_.first=mo,si(_,function(){var e={};return Dt(_,(function(t,n){Ii.call(_.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),_.VERSION="4.17.21",o(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){_[e].placeholder=_})),o(["drop","take"],(function(e,t){ct.prototype[e]=function(n){n=n===V?1:ra(Go(n),0);var r=this.__filtered__&&!t?new ct(this):this.clone();return r.__filtered__?r.__takeCount__=oa(n,r.__takeCount__):r.__views__.push({size:oa(n,Z),type:e+(r.__dir__<0?"Right":"")}),r},ct.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),o(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;ct.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Vr(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),o(["head","last"],(function(e,t){var n="take"+(t?"Right":"");ct.prototype[e]=function(){return this[n](1).value()[0]}})),o(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");ct.prototype[e]=function(){return this.__filtered__?new ct(this):this[n](1)}})),ct.prototype.compact=function(){return this.filter(ai)},ct.prototype.find=function(e){return this.filter(e).head()},ct.prototype.findLast=function(e){return this.reverse().find(e)},ct.prototype.invokeMap=qn((function(e,t){return"function"==typeof e?new ct(this):this.map((function(n){return on(n,e,t)}))})),ct.prototype.reject=function(e){return this.filter(Ro(Vr(e)))},ct.prototype.slice=function(e,t){e=Go(e);var n=this;return n.__filtered__&&(e>0||t<0)?new ct(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==V&&(n=(t=Go(t))<0?n.dropRight(-t):n.take(t-e)),n)},ct.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ct.prototype.toArray=function(){return this.take(Z)},Dt(ct.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=_[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(_.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,u=t instanceof ct,s=a[0],l=u||Iu(t),c=function(e){var t=o.apply(_,d([e],a));return r&&f?t[0]:t};l&&n&&"function"==typeof s&&1!=s.length&&(u=l=!1);var f=this.__chain__,p=!!this.__actions__.length,m=i&&!f,h=u&&!p;if(!i&&l){t=h?t:new ct(this);var v=e.apply(t,a);return v.__actions__.push({func:xo,args:[c],thisArg:V}),new lt(v,f)}return m&&h?e.apply(this,a):(v=this.thru(c),m?r?v.value()[0]:v.value():v)})})),o(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ei[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);_.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Iu(o)?o:[],e)}return this[n]((function(n){return t.apply(Iu(n)?n:[],e)}))}})),Dt(ct.prototype,(function(e,t){var n=_[t];if(n){var r=n.name+"";Ii.call(va,r)||(va[r]=[]),va[r].push({name:t,func:n})}})),va[xr(V,2).name]=[{name:"wrapper",func:V}],ct.prototype.clone=function(){var e=new ct(this.__wrapped__);return e.__actions__=cr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=cr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=cr(this.__views__),e},ct.prototype.reverse=function(){if(this.__filtered__){var e=new ct(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},ct.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Iu(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=oa(t,e+a);break;case"takeRight":e=ra(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,u=i.end,s=u-a,l=r?u:a-1,c=this.__iteratees__,d=c.length,f=0,p=oa(s,this.__takeCount__);if(!n||!r&&o==s&&p==s)return Jn(e,this.__actions__);var m=[];e:for(;s--&&f<p;){for(var h=-1,v=e[l+=t];++h<d;){var g=c[h],y=g.iteratee,b=g.type,w=y(v);if(2==b)v=w;else if(!w){if(1==b)continue e;break e}}m[f++]=v}return m},_.prototype.at=uu,_.prototype.chain=function(){return wo(this)},_.prototype.commit=function(){return new lt(this.value(),this.__chain__)},_.prototype.next=function(){this.__values__===V&&(this.__values__=Fo(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?V:this.__values__[this.__index__++]}},_.prototype.plant=function(e){for(var t,n=this;n instanceof We;){var r=lo(n);r.__index__=0,r.__values__=V,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},_.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof ct){var t=e;return this.__actions__.length&&(t=new ct(this)),(t=t.reverse()).__actions__.push({func:xo,args:[go],thisArg:V}),new lt(t,this.__chain__)}return this.thru(go)},_.prototype.toJSON=_.prototype.valueOf=_.prototype.value=function(){return Jn(this.__wrapped__,this.__actions__)},_.prototype.first=_.prototype.head,Ui&&(_.prototype[Ui]=function(){return this}),_}();nn?((nn.exports=gn)._=gn,tn._=gn):en._=gn}.call(d5)),Xm.exports;var e,t}var F$,U1,B$,z1,j$,W1,V$,V1={};function p5(){return F$||(F$=1,(e=V1).aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},e.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},e.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},e.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},e.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},e.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},e.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},e.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},e.realToAlias=function(){var t=Object.prototype.hasOwnProperty,n=e.aliasToReal,r={};for(var o in n){var i=n[o];t.call(r,i)?r[i].push(o):r[i]=[o]}return r}(),e.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},e.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},e.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}),V1;var e}function g2(){return B$||(B$=1,U1={}),U1}function y2(){if(j$)return z1;j$=1;var e=p5(),t=g2(),n=Array.prototype.push;function r(e,t){return 2==t?function(t,n){return e(t,n)}:function(t){return e(t)}}function o(e){for(var t=e?e.length:0,n=Array(t);t--;)n[t]=e[t];return n}function i(e,t){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var o=r[0]=t.apply(void 0,r);return e.apply(void 0,r),o}}}return z1=function a(u,s,l,c){var d="function"==typeof s,f=s===Object(s);if(f&&(c=l,l=s,s=void 0),null==l)throw new TypeError;c||(c={});var p=!("cap"in c)||c.cap,m=!("curry"in c)||c.curry,h=!("fixed"in c)||c.fixed,v=!("immutable"in c)||c.immutable,g=!("rearg"in c)||c.rearg,y=d?l:t,b="curry"in c&&c.curry,w="fixed"in c&&c.fixed,x="rearg"in c&&c.rearg,_=d?l.runInContext():void 0,E=d?l:{ary:u.ary,assign:u.assign,clone:u.clone,curry:u.curry,forEach:u.forEach,isArray:u.isArray,isError:u.isError,isFunction:u.isFunction,isWeakMap:u.isWeakMap,iteratee:u.iteratee,keys:u.keys,rearg:u.rearg,toInteger:u.toInteger,toPath:u.toPath},S=E.ary,k=E.assign,A=E.clone,C=E.curry,I=E.forEach,R=E.isArray,P=E.isError,T=E.isFunction,O=E.isWeakMap,N=E.keys,j=E.rearg,q=E.toInteger,D=E.toPath,M=N(e.aryMethod),L={castArray:function(e){return function(){var t=arguments[0];return R(t)?e(o(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[1],n=e(arguments[0],t),o=n.length;return p&&"number"==typeof t?(t=t>2?t-2:1,o&&o<=t?n:r(n,t)):n}},mixin:function(e){return function(t){var n=this;if(!T(n))return e(n,Object(t));var r=[];return I(N(t),(function(e){T(t[e])&&r.push([e,n.prototype[e]])})),e(n,Object(t)),I(r,(function(e){var t=e[1];T(t)?n.prototype[e[0]]=t:delete n.prototype[e[0]]})),n}},nthArg:function(e){return function(t){var n=t<0?1:q(t)+1;return C(e(t),n)}},rearg:function(e){return function(t,n){var r=n?n.length:0;return C(e(t,n),r)}},runInContext:function(e){return function(t){return a(u,e(t),c)}}};function $(t,n){if(p){var o=e.iterateeRearg[t];if(o)return function(e,t){return U(e,(function(e){var n=t.length;return function(e,t){return 2==t?function(t,n){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(j(r(e,n),t),n)}))}(n,o);var i=!d&&e.iterateeAry[t];if(i)return function(e,t){return U(e,(function(e){return"function"==typeof e?r(e,t):e}))}(n,i)}return n}function B(t,r,o){if(h&&(w||!e.skipFixed[t])){var i=e.methodSpread[t],a=i&&i.start;return void 0===a?S(r,o):function(e,t){return function(){for(var r=arguments.length,o=r-1,i=Array(r);r--;)i[r]=arguments[r];var a=i[t],u=i.slice(0,t);return a&&n.apply(u,a),t!=o&&n.apply(u,i.slice(t+1)),e.apply(this,u)}}(r,a)}return r}function V(t,n,r){return g&&r>1&&(x||!e.skipRearg[t])?j(n,e.methodRearg[t]||e.aryRearg[r]):n}function z(e,t){for(var n=-1,r=(t=D(t)).length,o=r-1,i=A(Object(e)),a=i;null!=a&&++n<r;){var u=t[n],s=a[u];null!=s&&!(T(s)||P(s)||O(s))&&(a[u]=A(n==o?s:Object(s))),a=a[u]}return i}function F(t,n){var r=e.aliasToReal[t]||t,o=e.remap[r]||r,i=c;return function(e){var t=d?_:E,u=d?_[o]:n,s=k(k({},i),e);return a(t,r,u,s)}}function U(e,t){return function(){var n=arguments.length;if(!n)return e();for(var r=Array(n);n--;)r[n]=arguments[n];var o=g?0:n-1;return r[o]=t(r[o]),e.apply(void 0,r)}}function G(t,n,r){var a,u=e.aliasToReal[t]||t,s=n,l=L[u];return l?s=l(n):v&&(e.mutate.array[u]?s=i(n,o):e.mutate.object[u]?s=i(n,function(e){return function(t){return e({},t)}}(n)):e.mutate.set[u]&&(s=i(n,z))),I(M,(function(t){return I(e.aryMethod[t],(function(n){if(u==n){var r=e.methodSpread[u],o=r&&r.afterRearg;return a=o?B(u,V(u,s,t),t):V(u,B(u,s,t),t),a=function(e,t,n){return b||m&&n>1?C(t,n):t}(0,a=$(u,a),t),!1}})),!a})),a||(a=s),a==n&&(a=b?C(a,1):function(){return n.apply(this,arguments)}),a.convert=F(u,n),a.placeholder=n.placeholder=r,a}if(!f)return G(s,l,y);var W=l,H=[];return I(M,(function(t){I(e.aryMethod[t],(function(t){var n=W[e.remap[t]||t];n&&H.push([t,G(t,n,W)])}))})),I(N(W),(function(e){var t=W[e];if("function"==typeof t){for(var n=H.length;n--;)if(H[n][0]==e)return;t.convert=F(e,t),H.push([e,t])}})),I(H,(function(e){W[e[0]]=e[1]})),W.convert=function(e){return W.runInContext.convert(e)(void 0)},W.placeholder=W,I(N(W),(function(t){I(e.realToAlias[t]||[],(function(e){W[e]=W[t]}))})),W},z1}function h5(){if(V$)return W1;V$=1;var e=f5().runInContext();return W1=y2()(e,e)}var jf=h5();
|
|
37
37
|
/**
|
|
38
38
|
* @license lucide-react v0.471.2 - ISC
|
|
39
39
|
*
|
|
40
40
|
* This source code is licensed under the ISC license.
|
|
41
41
|
* See the LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/const
|
|
42
|
+
*/const m5=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),w2=(...e)=>e.filter(((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t)).join(" ").trim()
|
|
43
43
|
/**
|
|
44
44
|
* @license lucide-react v0.471.2 - ISC
|
|
45
45
|
*
|
|
46
46
|
* This source code is licensed under the ISC license.
|
|
47
47
|
* See the LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/;var
|
|
48
|
+
*/;var v5={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};
|
|
49
49
|
/**
|
|
50
50
|
* @license lucide-react v0.471.2 - ISC
|
|
51
51
|
*
|
|
52
52
|
* This source code is licensed under the ISC license.
|
|
53
53
|
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
-
*/const
|
|
54
|
+
*/const g5=m.forwardRef((({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:a,...u},s)=>m.createElement("svg",{ref:s,...v5,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:w2("lucide",o),...u},[...a.map((([e,t])=>m.createElement(e,t))),...Array.isArray(i)?i:[i]]))),Si=(e,t)=>{const n=m.forwardRef((({className:n,...r},o)=>m.createElement(g5,{ref:o,iconNode:t,className:w2(`lucide-${m5(e)}`,n),...r})));return n.displayName=`${e}`,n},y5=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],$E=Si("Check",y5),w5=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],_2=Si("ChevronDown",w5),_5=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],b2=Si("ChevronLeft",_5),b5=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],x2=Si("ChevronRight",b5),x5=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],S5=Si("ChevronUp",x5),E5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],C5=Si("Circle",E5),$5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],I5=Si("Info",$5),R5=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],S2=Si("LoaderCircle",R5),P5=[["path",{d:"M5 12h14",key:"1ays0h"}]],T5=Si("Minus",P5),O5=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]],A5=Si("PanelRightClose",O5),k5=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m10 15-3-3 3-3",key:"1pgupc"}]],D5=Si("PanelRightOpen",k5),N5=[["path",{d:"M4 11a9 9 0 0 1 9 9",key:"pv89mb"}],["path",{d:"M4 4a16 16 0 0 1 16 16",key:"k0647b"}],["circle",{cx:"5",cy:"19",r:"1",key:"bfqh0e"}]],M5=Si("Rss",N5),L5=[["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"}]],E2=Si("TriangleAlert",L5),F5=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],by=Si("X",F5),C2={404:{user:{title:"Oops! We can’t find that page",description:"This page isn’t available. It may have been removed or you don’t have permission to view it",links:[{text:"Go to feed",link:"/feed",icon:G.jsx(M5,{size:20,color:"white"})},{text:"Discover groups",link:"/discover"}]}},500:{user:{title:"Oops, something went wrong!",description:'We are already on it. Please try again later or contact us at <a href="mailto:support@wave.video">support@wave.video</a>'}},user404:{user:{title:"We could not find the user you were looking for",description:"Check the username and try one more time",links:[{text:"Wellsley account",link:"/account"},{text:"account settings",link:"/account/settings"}]}},group404:{user:{title:"Oops! We can't find that page",description:"This page isn’t available. It may have been removed or you don’t have permission to view it",links:[{text:"Go to group",link:"/discover"}]}},groupHidden:{user:{title:"This is a hidden private group",description:"Access is restricted — you can join only via a direct invitation link from the owner"}},page404:{user:{title:"We could not find the page you were looking for",description:"Check the address and try one more time"}},post404:{user:{title:"We could not find the post you were looking for",description:"Check the address and try one more time"}},RBACInsufficientPermissions:{user:{title:"You don't have permission to perform this action",description:"Please contact the administrator to get access"}}},B5=e=>{const{title:t,description:n,links:r}=e||{};return!!(t||n||r)},j5=e=>Object.keys(C2).some((t=>t==e)),V5=404,av=(e=V5,t=!0)=>{const n=C2[e],r=null==n?void 0:n.user;return t?r:n.guest||r},U$=e=>{var t,n,r,o;if(!e)return av(500).description;if(jf.isString(e))return e;if("data"in e&&jf.isString(e.data))return e.data;if("data"in e&&null!=(t=e.data)&&t.errorCode)return null==(n=e.data)?void 0:n.message;if("isUnhandledError"in e&&!e.isUnhandledError){const{status:t,data:n}=null==e?void 0:e.error;return(jf.isString(n)?n:null==n?void 0:n.message)||(null==(r=av(t||500))?void 0:r.description)}return"message"in e&&e.message?e.message:"error"in e?e.error:"status"in e?null==(o=av(e.status))?void 0:o.description:void 0},U5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFsAAABACAYAAAB1JwvBAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAeiSURBVHgB7VxNVttIEK4SkCGLSZRFAu/NYpRdBvJenBPEPkGSE4w5AcwJgBOEnAA4QZgTQE6A82ZMskMs5j3ILCIWSRgbuqaq1fKPrF//CDtP38aypKpufV1dXd3qEkCJEj8iEAqC7VRsuLquAFGF//6qiOze65YFZ0DoAWIDFucbntvw4AfDRMkWgtW31joiVgGomksY8Igr9yfgwoF33nDhB8BEyLaXn1aJaDM/wXFg4km99T5/PIAZxljJHj/JYWADceH1pC3dd3lXNiwueoE7s39ZrcANVEApD6w5zzv/+yivHgvGAFF6b2n1DZE6nBzRAqoQtU6lLP0gE8C9pafr9L19SmSdwlVrQ87ZD1crdE3HbEi7hPhOnvP+0uqXe49Wd+3lipOmR1213si5kcmWwuh76xiBNqAgSFlSZtyDDgvRh6B2uFH7G3IOKv3lw1v+cRGpzo1/rK0+g555GKVyDytsae1DOcwmgR5XUPzuGR+7/dfIAYJnBPrBnAzKHH7QQ37Q194/zQaMA6q9Ge1YuW69mMc9vAbX1NWGa1Xl30acHovgUovBkNBEW0I0pRCtCWZLsI6y+DlfN1vKnNogwheQTLzD3VsIr41KuO6h1KpnuVfK4jp2/QKinagHQfv9odxINqKFZNjGu18fe+cnW1mJFnj/Nhve+cf65cXJYw4b1/iUm3C7bQivwCgQa/Thds4RRcT66Ddqe8FN14N98rnJ1i1ntd4lES0+rUOy6440OfHOm3uIqsa9Yz/hNiH83bA+XD8T+1855sbd7lxAa6DuaKzU8wYnXbZdsVlP1dy33+HINFpusrmLMNHxXZsHrz+8i5ONUUnuhXf+yRVLF90Jt3H3be/CUGhXzYErjZt0pwJyg2MM97jF9ivwuXHF0DrnTaPlIvveoxXpIjHdVdyGVfMuPu7AhCC6keZeh7tnF1S1l37LHRX5c4OQVWuEB3FN2FluPVZOsnU4g7AVd51neGt5/PKw8D7/dcD1iLVwAtzM405kIgYda4yxaopuXC6r4yYS9ai8bqTr+AcgA2GRU2ntx+Ndiq0S6joAUuvyM2jVDAtte/mJE0QTEcI+2XPzLhP6e6weDh1FT6bpuglnTqOusXIO6Zo1uAXwLC52xop37zzIsnJ4f2mFzKFrfp2QpgYqWCOLjvU/MSzjjwNZcZ/sQoKgIUYPuNksO9FSbtbgloCYULaZamfQcmQOHIgY+LkHnfWFeeRP4LTFB+AlYehOamL0wIdMZAfhzOB52JNIAW4JUrZYWtQ1IljPoAIuL5o1VPhcrFNiehPXa/Wse48V7UmYF0QeCuG+f3neCe6THpSgBwI9qTNIfyVPOVHXLFDbcOtQe1yTqJ5nS92zDNoyier9z+5hVyIRdo/dnoP0nq3LQUI/GvNfgogbbSTr0WGg1pNu2aReRZ32ffXtWXUAvw4dV9CPmLpnAYYHRbIMkf46CTvrl+b/+2Q93fAxlWwOb57FXEqa0RUK/UYnAgl1T0Xv5EXjv4U9E9/bfixvXOscJkdhRJfBYQafHbM+PQfjWWkbB/Am5oFpyPUSPApPXrTfxpvnsmzAjfjGnHZTFsAO2BI61xNDPxlx9SL6IHhAOHmQKBu84JWbh5js5JWXxfyo9RpeV3mc190FkUacnO04Nnz7uQpWu5GkW9ZKYPHKDu5JGSBlxFUDZ3sHhejK6hcKss7tyH8eKDhquFPL+jprSHm5Vol+hsRVwwGkNY5Z90mdxJnFqo7vH8trsTDMgpDTcyrXItEw8hj2sQEstGFKkEJ26A2FgYp7sK5cNdu5McpjdyDqg1KzQvZwwOhu60JGjCo/rZgI2WyFb8NnohdoJiU/nRjphW8cZN2Z39EdgaXqzBJPb639XK/FRpSfVkyEbIGZuuZeyB+X/DRiQm6kRBRKsgtESXaBKMkuECXZBaIku0CUZBeIkuwCUZJdIEqyC0RJdoEoyS4QJdkFoiS7QJRkF4iS7AIxlpcH/h4PSXGQ/XEZM8KG3FeiE5XaygHrp8as5bSPbNl+Jmvri85+JXUo2bdpMkGiqtzvZ8uunGbJFpCMWp1pq7NsW6cm7WRmMBLZ8rB+JmsXkn0rpMTJmI31nQ04Bn4CaQLhohNNRlenLIStWSJ8aLI10TE5NkJKFOExRAeIJTyK6G5Zs0P4UGQj4aukZCZ9T4jwFKIDDBCeRHS3LNgisl7ClGPIAZIy7TIyhINlLWxnIDpAQHhNEpHSiM5bp9vExLYyBDBfLqhDPsjevmOWnXoC82CK4+zkvHiYQYyLbFf2QbMvz5WNoD8kEJOAFC+D+7IpHWZw79843IgQXTN7mus2+2hCPwEzCb35hPbyimR3babL4L533qz7Mk9qPChmHQemAqNadi/RGt7nZj3NwnuJ1jJ8nGbhvUT7Mp902TBDFj4K2QNEB0giPEx0RyaB8DDRXZnZIjyZ7JvYJKVYogNowv1vKXWgP48RQXRHJoLwOKK7MmmEowtTgtTcdfbBeyEfnEp0n7z+WgE5sPj1IOs3SHQCkVqoACk3nMiZJBP24dLY8u0TmBJk/FDAap0Je6Fz+pB2piHZNAq6kQg39J5uwg/eRXMHSpQoMWH8D1sQEgyM9DZGAAAAAElFTkSuQmCC";
|
|
55
55
|
/**
|
|
56
56
|
* @license lucide-react v0.471.2 - ISC
|
|
57
57
|
*
|
|
58
58
|
* This source code is licensed under the ISC license.
|
|
59
59
|
* See the LICENSE file in the root directory of this source tree.
|
|
60
|
-
*/function z6(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function W6(...e){return t=>e.forEach((e=>z6(e,t)))}var wd=m.forwardRef(((e,t)=>{const{children:n,...r}=e,o=m.Children.toArray(n),i=o.find(G6);if(i){const e=i.props.children,n=o.map((t=>t===i?m.Children.count(e)>1?m.Children.only(null):m.isValidElement(e)?e.props.children:null:t));return G.jsx(OS,{...r,ref:t,children:m.isValidElement(e)?m.cloneElement(e,void 0,n):null})}return G.jsx(OS,{...r,ref:t,children:n})}));wd.displayName="Slot";var OS=m.forwardRef(((e,t)=>{const{children:n,...r}=e;if(m.isValidElement(n)){const e=K6(n);return m.cloneElement(n,{...H6(r,n.props),ref:t?W6(t,e):e})}return m.Children.count(n)>1?m.Children.only(null):null}));OS.displayName="SlotClone";var q6=({children:e})=>G.jsx(G.Fragment,{children:e});function G6(e){return m.isValidElement(e)&&e.type===q6}function H6(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function K6(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}function $2(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=$2(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Q6(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=$2(e))&&(r&&(r+=" "),r+=t);return r}const z$=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,W$=Q6,mu=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return W$(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map((e=>{const t=null==n?void 0:n[e],r=null==i?void 0:i[e];if(null===t)return null;const a=z$(t)||z$(r);return o[e][a]})),u=n&&Object.entries(n).reduce(((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e}),{}),s=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce(((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every((e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...u}[t]):{...i,...u}[t]===n}))?[...e,n,r]:e}),[]);return W$(e,a,s,null==n?void 0:n.class,null==n?void 0:n.className)};function I2(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=I2(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function R2(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=I2(e))&&(r&&(r+=" "),r+=t);return r}const RE="-";function Y6(e){const t=J6(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:function(e){const n=e.split(RE);return""===n[0]&&1!==n.length&&n.shift(),P2(n,t)||X6(e)},getConflictingClassGroupIds:function(e,t){const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}}function P2(e,t){var n;if(0===e.length)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),i=o?P2(e.slice(1),o):void 0;if(i)return i;if(0===t.validators.length)return;const a=e.join(RE);return null==(n=t.validators.find((({validator:e})=>e(a))))?void 0:n.classGroupId}const q$=/^\[(.+)\]$/;function X6(e){if(q$.test(e)){const t=q$.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function J6(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return e7(Object.entries(e.classGroups),n).forEach((([e,n])=>{AS(n,r,e,t)})),r}function AS(e,t,n,r){e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return Z6(e)?void AS(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{AS(o,G$(t,e),n,r)}))}else{(""===e?t:G$(t,e)).classGroupId=n}}))}function G$(e,t){let n=e;return t.split(RE).forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n}function Z6(e){return e.isThemeGetter}function e7(e,t){return t?e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))])):e}function t7(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(o,i){n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)}return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}}const T2="!";function n7(e){const t=e.separator,n=1===t.length,r=t[0],o=t.length;return function(e){const i=[];let a,u=0,s=0;for(let l=0;l<e.length;l++){let c=e[l];if(0===u){if(c===r&&(n||e.slice(l,l+o)===t)){i.push(e.slice(s,l)),s=l+o;continue}if("/"===c){a=l;continue}}"["===c?u++:"]"===c&&u--}const l=0===i.length?e:e.substring(s),c=l.startsWith(T2);return{modifiers:i,hasImportantModifier:c,baseClassName:c?l.substring(1):l,maybePostfixModifierPosition:a&&a>s?a-s:void 0}}}function r7(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t}function o7(e){return{cache:t7(e.cacheSize),splitModifiers:n7(e),...Y6(e)}}const i7=/\s+/;function a7(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=new Set;return e.trim().split(i7).map((e=>{const{modifiers:t,hasImportantModifier:o,baseClassName:i,maybePostfixModifierPosition:a}=n(e);let u=r(a?i.substring(0,a):i),s=!!a;if(!u){if(!a)return{isTailwindClass:!1,originalClassName:e};if(u=r(i),!u)return{isTailwindClass:!1,originalClassName:e};s=!1}const l=r7(t).join(":");return{isTailwindClass:!0,modifierId:o?l+T2:l,classGroupId:u,originalClassName:e,hasPostfixModifier:s}})).reverse().filter((e=>{if(!e.isTailwindClass)return!0;const{modifierId:t,classGroupId:n,hasPostfixModifier:r}=e,a=t+n;return!i.has(a)&&(i.add(a),o(n,r).forEach((e=>i.add(t+e))),!0)})).reverse().map((e=>e.originalClassName)).join(" ")}function s7(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=O2(e))&&(r&&(r+=" "),r+=t);return r}function O2(e){if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=O2(e[r]))&&(n&&(n+=" "),n+=t);return n}function u7(e,...t){let n,r,o,i=function(u){const s=t.reduce(((e,t)=>t(e)),e());return n=o7(s),r=n.cache.get,o=n.cache.set,i=a,a(u)};function a(e){const t=r(e);if(t)return t;const i=a7(e,n);return o(e,i),i}return function(){return i(s7.apply(null,arguments))}}function Rn(e){const t=t=>t[e]||[];return t.isThemeGetter=!0,t}const A2=/^\[(?:([a-z-]+):)?(.+)\]$/i,l7=/^\d+\/\d+$/,c7=new Set(["px","full","screen"]),d7=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,f7=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,p7=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,h7=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function yl(e){return Lf(e)||c7.has(e)||l7.test(e)}function nd(e){return Bh(e,"length",x7)}function Lf(e){return!!e&&!Number.isNaN(Number(e))}function xg(e){return Bh(e,"number",Lf)}function zm(e){return!!e&&Number.isInteger(Number(e))}function m7(e){return e.endsWith("%")&&Lf(e.slice(0,-1))}function $t(e){return A2.test(e)}function rd(e){return d7.test(e)}const v7=new Set(["length","size","percentage"]);function g7(e){return Bh(e,v7,k2)}function y7(e){return Bh(e,"position",k2)}const w7=new Set(["image","url"]);function _7(e){return Bh(e,w7,E7)}function b7(e){return Bh(e,"",S7)}function Wm(){return!0}function Bh(e,t,n){const r=A2.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))}function x7(e){return f7.test(e)}function k2(){return!1}function S7(e){return p7.test(e)}function E7(e){return h7.test(e)}function C7(){const e=Rn("colors"),t=Rn("spacing"),n=Rn("blur"),r=Rn("brightness"),o=Rn("borderColor"),i=Rn("borderRadius"),a=Rn("borderSpacing"),u=Rn("borderWidth"),s=Rn("contrast"),l=Rn("grayscale"),c=Rn("hueRotate"),d=Rn("invert"),f=Rn("gap"),p=Rn("gradientColorStops"),m=Rn("gradientColorStopPositions"),h=Rn("inset"),v=Rn("margin"),g=Rn("opacity"),y=Rn("padding"),b=Rn("saturate"),w=Rn("scale"),x=Rn("sepia"),_=Rn("skew"),E=Rn("space"),S=Rn("translate"),A=()=>["auto",$t,t],k=()=>[$t,t],C=()=>["",yl,nd],I=()=>["auto",Lf,$t],P=()=>["","0",$t],R=()=>[Lf,xg],O=()=>[Lf,$t];return{cacheSize:500,separator:":",theme:{colors:[Wm],spacing:[yl,nd],blur:["none","",rd,$t],brightness:R(),borderColor:[e],borderRadius:["none","","full",rd,$t],borderSpacing:k(),borderWidth:C(),contrast:R(),grayscale:P(),hueRotate:O(),invert:P(),gap:k(),gradientColorStops:[e],gradientColorStopPositions:[m7,nd],inset:A(),margin:A(),opacity:R(),padding:k(),saturate:R(),scale:R(),sepia:P(),skew:O(),space:k(),translate:k()},classGroups:{aspect:[{aspect:["auto","square","video",$t]}],container:["container"],columns:[{columns:[rd]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",$t]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",zm,$t]}],basis:[{basis:A()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",$t]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",zm,$t]}],"grid-cols":[{"grid-cols":[Wm]}],"col-start-end":[{col:["auto",{span:["full",zm,$t]},$t]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[Wm]}],"row-start-end":[{row:["auto",{span:[zm,$t]},$t]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",$t]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",$t]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",$t,t]}],"min-w":[{"min-w":[$t,t,"min","max","fit"]}],"max-w":[{"max-w":[$t,t,"none","full","min","max","fit","prose",{screen:[rd]},rd]}],h:[{h:[$t,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[$t,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[$t,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[$t,t,"auto","min","max","fit"]}],"font-size":[{text:["base",rd,nd]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",xg]}],"font-family":[{font:[Wm]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",$t]}],"line-clamp":[{"line-clamp":["none",Lf,xg]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",yl,$t]}],"list-image":[{"list-image":["none",$t]}],"list-style-type":[{list:["none","disc","decimal",$t]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",yl,nd]}],"underline-offset":[{"underline-offset":["auto",yl,$t]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$t]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",$t]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",y7]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",g7]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},_7]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[yl,$t]}],"outline-w":[{outline:[yl,nd]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:C()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[yl,nd]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",rd,b7]}],"shadow-color":[{shadow:[Wm]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",rd,$t]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",$t]}],duration:[{duration:O()}],ease:[{ease:["linear","in","out","in-out",$t]}],delay:[{delay:O()}],animate:[{animate:["none","spin","ping","pulse","bounce",$t]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[zm,$t]}],"translate-x":[{"translate-x":[S]}],"translate-y":[{"translate-y":[S]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",$t]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",$t]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",$t]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[yl,nd,xg]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const $7=u7(C7);function be(...e){return $7(R2(e))}const PE=mu("inline-flex items-center justify-center whitespace-nowrap text-sm font-semibold ring-offset-background transition-colors duration-300 ease-in-out focus-visible:outline-none focus-visible:ring-offset-2 disabled:pointer-events-none disabled:text-gray-100 disabled:bg-gray-300 disabled:border-0",{variants:{variant:{primary:"bg-blue_100 text-white hover:bg-blue_120",secondary:"bg-gray-100 text-gray-700 hover:bg-gray-200",secondary_danger:"bg-red_10 text-red-dark border-none hover:bg-red_20 !rounded-m",tertiary:"text-blue_100 hover:text-blue_120 disabled:text-gray-300 disabled:bg-transparent",red_primary:"bg-red-dark text-white hover:bg-red_100",red_secondary:"bg-white text-red-dark border-red_30 border hover:bg-red_20 hover:border-red_20",red_tertiary:"text-red-dark hover:text-red_100 disabled:bg-transparent",none:""},size:{l:"min-w-[80px] h-l text-base gap-xxs px-s rounded-lg",m:"min-w-[80px] h-m text-base gap-xxs px-xs rounded-m",s:"min-w-[80px] h-s text-sm gap-xxxs px-xxs rounded-sm",icon_l:"size-12",icon_m:"size-10",icon_s:"size-8",icon_xs:"size-6",none:""}},defaultVariants:{variant:"primary",size:"m"}}),kv=m.forwardRef((({className:e,variant:t,size:n,asChild:r=!1,as:o="button",...i},a)=>{const u=r?wd:o;return G.jsx(u,{className:be(PE({variant:t,size:n,className:e})),ref:a,...i})}));function Pe(){return Pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pe.apply(null,arguments)}function I7(e,t){const n=m.createContext(t);function r(e){const{children:t,...r}=e,o=m.useMemo((()=>r),Object.values(r));return m.createElement(n.Provider,{value:o},t)}return r.displayName=e+"Provider",[r,function(r){const o=m.useContext(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}function ni(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>m.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return m.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=m.createContext(r),i=n.length;function a(t){const{scope:n,children:r,...a}=t,u=(null==n?void 0:n[e][i])||o,s=m.useMemo((()=>a),Object.values(a));return m.createElement(u.Provider,{value:s},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const u=(null==a?void 0:a[e][i])||o,s=m.useContext(u);if(s)return s;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},R7(r,...t)]}function R7(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return m.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function P7(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function TE(...e){return t=>e.forEach((e=>P7(e,t)))}function Ut(...e){return m.useCallback(TE(...e),e)}function et(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}kv.displayName="Button";const Uo=null!=globalThis&&globalThis.document?m.useLayoutEffect:()=>{},T7=Qg.useId||(()=>{});let O7=0;function sd(e){const[t,n]=m.useState(T7());return Uo((()=>{n((e=>e??String(O7++)))}),[e]),t?`radix-${t}`:""}function ys(e){const t=m.useRef(e);return m.useEffect((()=>{t.current=e})),m.useMemo((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function pd({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=A7({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,u=ys(n);return[a,m.useCallback((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&u(n)}else o(t)}),[i,e,o,u])]}function A7({defaultProp:e,onChange:t}){const n=m.useState(e),[r]=n,o=m.useRef(r),i=ys(t);return m.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}var H$,K$,Q$,Y$,G1={exports:{}},bi={},H1={exports:{}},K1={};
|
|
60
|
+
*/function z5(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function W5(...e){return t=>e.forEach((e=>z5(e,t)))}var wd=m.forwardRef(((e,t)=>{const{children:n,...r}=e,o=m.Children.toArray(n),i=o.find(G5);if(i){const e=i.props.children,n=o.map((t=>t===i?m.Children.count(e)>1?m.Children.only(null):m.isValidElement(e)?e.props.children:null:t));return G.jsx(TS,{...r,ref:t,children:m.isValidElement(e)?m.cloneElement(e,void 0,n):null})}return G.jsx(TS,{...r,ref:t,children:n})}));wd.displayName="Slot";var TS=m.forwardRef(((e,t)=>{const{children:n,...r}=e;if(m.isValidElement(n)){const e=K5(n);return m.cloneElement(n,{...H5(r,n.props),ref:t?W5(t,e):e})}return m.Children.count(n)>1?m.Children.only(null):null}));TS.displayName="SlotClone";var q5=({children:e})=>G.jsx(G.Fragment,{children:e});function G5(e){return m.isValidElement(e)&&e.type===q5}function H5(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function K5(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}function $2(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=$2(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Q5(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=$2(e))&&(r&&(r+=" "),r+=t);return r}const z$=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,W$=Q5,mu=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return W$(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map((e=>{const t=null==n?void 0:n[e],r=null==i?void 0:i[e];if(null===t)return null;const a=z$(t)||z$(r);return o[e][a]})),u=n&&Object.entries(n).reduce(((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e}),{}),s=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce(((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every((e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...u}[t]):{...i,...u}[t]===n}))?[...e,n,r]:e}),[]);return W$(e,a,s,null==n?void 0:n.class,null==n?void 0:n.className)};function I2(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=I2(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function R2(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=I2(e))&&(r&&(r+=" "),r+=t);return r}const IE="-";function Y5(e){const t=J5(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:function(e){const n=e.split(IE);return""===n[0]&&1!==n.length&&n.shift(),P2(n,t)||X5(e)},getConflictingClassGroupIds:function(e,t){const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}}function P2(e,t){var n;if(0===e.length)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),i=o?P2(e.slice(1),o):void 0;if(i)return i;if(0===t.validators.length)return;const a=e.join(IE);return null==(n=t.validators.find((({validator:e})=>e(a))))?void 0:n.classGroupId}const q$=/^\[(.+)\]$/;function X5(e){if(q$.test(e)){const t=q$.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function J5(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return e7(Object.entries(e.classGroups),n).forEach((([e,n])=>{OS(n,r,e,t)})),r}function OS(e,t,n,r){e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return Z5(e)?void OS(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{OS(o,G$(t,e),n,r)}))}else{(""===e?t:G$(t,e)).classGroupId=n}}))}function G$(e,t){let n=e;return t.split(IE).forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n}function Z5(e){return e.isThemeGetter}function e7(e,t){return t?e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))])):e}function t7(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(o,i){n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)}return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}}const T2="!";function n7(e){const t=e.separator,n=1===t.length,r=t[0],o=t.length;return function(e){const i=[];let a,u=0,s=0;for(let l=0;l<e.length;l++){let c=e[l];if(0===u){if(c===r&&(n||e.slice(l,l+o)===t)){i.push(e.slice(s,l)),s=l+o;continue}if("/"===c){a=l;continue}}"["===c?u++:"]"===c&&u--}const l=0===i.length?e:e.substring(s),c=l.startsWith(T2);return{modifiers:i,hasImportantModifier:c,baseClassName:c?l.substring(1):l,maybePostfixModifierPosition:a&&a>s?a-s:void 0}}}function r7(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t}function o7(e){return{cache:t7(e.cacheSize),splitModifiers:n7(e),...Y5(e)}}const i7=/\s+/;function a7(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=new Set;return e.trim().split(i7).map((e=>{const{modifiers:t,hasImportantModifier:o,baseClassName:i,maybePostfixModifierPosition:a}=n(e);let u=r(a?i.substring(0,a):i),s=!!a;if(!u){if(!a)return{isTailwindClass:!1,originalClassName:e};if(u=r(i),!u)return{isTailwindClass:!1,originalClassName:e};s=!1}const l=r7(t).join(":");return{isTailwindClass:!0,modifierId:o?l+T2:l,classGroupId:u,originalClassName:e,hasPostfixModifier:s}})).reverse().filter((e=>{if(!e.isTailwindClass)return!0;const{modifierId:t,classGroupId:n,hasPostfixModifier:r}=e,a=t+n;return!i.has(a)&&(i.add(a),o(n,r).forEach((e=>i.add(t+e))),!0)})).reverse().map((e=>e.originalClassName)).join(" ")}function s7(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=O2(e))&&(r&&(r+=" "),r+=t);return r}function O2(e){if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=O2(e[r]))&&(n&&(n+=" "),n+=t);return n}function u7(e,...t){let n,r,o,i=function(u){const s=t.reduce(((e,t)=>t(e)),e());return n=o7(s),r=n.cache.get,o=n.cache.set,i=a,a(u)};function a(e){const t=r(e);if(t)return t;const i=a7(e,n);return o(e,i),i}return function(){return i(s7.apply(null,arguments))}}function Rn(e){const t=t=>t[e]||[];return t.isThemeGetter=!0,t}const A2=/^\[(?:([a-z-]+):)?(.+)\]$/i,l7=/^\d+\/\d+$/,c7=new Set(["px","full","screen"]),d7=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,f7=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,p7=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,h7=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function yl(e){return Lf(e)||c7.has(e)||l7.test(e)}function nd(e){return Bh(e,"length",x7)}function Lf(e){return!!e&&!Number.isNaN(Number(e))}function xg(e){return Bh(e,"number",Lf)}function zm(e){return!!e&&Number.isInteger(Number(e))}function m7(e){return e.endsWith("%")&&Lf(e.slice(0,-1))}function $t(e){return A2.test(e)}function rd(e){return d7.test(e)}const v7=new Set(["length","size","percentage"]);function g7(e){return Bh(e,v7,k2)}function y7(e){return Bh(e,"position",k2)}const w7=new Set(["image","url"]);function _7(e){return Bh(e,w7,E7)}function b7(e){return Bh(e,"",S7)}function Wm(){return!0}function Bh(e,t,n){const r=A2.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))}function x7(e){return f7.test(e)}function k2(){return!1}function S7(e){return p7.test(e)}function E7(e){return h7.test(e)}function C7(){const e=Rn("colors"),t=Rn("spacing"),n=Rn("blur"),r=Rn("brightness"),o=Rn("borderColor"),i=Rn("borderRadius"),a=Rn("borderSpacing"),u=Rn("borderWidth"),s=Rn("contrast"),l=Rn("grayscale"),c=Rn("hueRotate"),d=Rn("invert"),f=Rn("gap"),p=Rn("gradientColorStops"),m=Rn("gradientColorStopPositions"),h=Rn("inset"),v=Rn("margin"),g=Rn("opacity"),y=Rn("padding"),b=Rn("saturate"),w=Rn("scale"),x=Rn("sepia"),_=Rn("skew"),E=Rn("space"),S=Rn("translate"),k=()=>["auto",$t,t],A=()=>[$t,t],C=()=>["",yl,nd],I=()=>["auto",Lf,$t],R=()=>["","0",$t],P=()=>[Lf,xg],T=()=>[Lf,$t];return{cacheSize:500,separator:":",theme:{colors:[Wm],spacing:[yl,nd],blur:["none","",rd,$t],brightness:P(),borderColor:[e],borderRadius:["none","","full",rd,$t],borderSpacing:A(),borderWidth:C(),contrast:P(),grayscale:R(),hueRotate:T(),invert:R(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[m7,nd],inset:k(),margin:k(),opacity:P(),padding:A(),saturate:P(),scale:P(),sepia:R(),skew:T(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",$t]}],container:["container"],columns:[{columns:[rd]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",$t]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",zm,$t]}],basis:[{basis:k()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",$t]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",zm,$t]}],"grid-cols":[{"grid-cols":[Wm]}],"col-start-end":[{col:["auto",{span:["full",zm,$t]},$t]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[Wm]}],"row-start-end":[{row:["auto",{span:[zm,$t]},$t]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",$t]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",$t]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",$t,t]}],"min-w":[{"min-w":[$t,t,"min","max","fit"]}],"max-w":[{"max-w":[$t,t,"none","full","min","max","fit","prose",{screen:[rd]},rd]}],h:[{h:[$t,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[$t,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[$t,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[$t,t,"auto","min","max","fit"]}],"font-size":[{text:["base",rd,nd]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",xg]}],"font-family":[{font:[Wm]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",$t]}],"line-clamp":[{"line-clamp":["none",Lf,xg]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",yl,$t]}],"list-image":[{"list-image":["none",$t]}],"list-style-type":[{list:["none","disc","decimal",$t]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",yl,nd]}],"underline-offset":[{"underline-offset":["auto",yl,$t]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$t]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",$t]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",y7]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",g7]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},_7]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[yl,$t]}],"outline-w":[{outline:[yl,nd]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:C()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[yl,nd]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",rd,b7]}],"shadow-color":[{shadow:[Wm]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",rd,$t]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",$t]}],duration:[{duration:T()}],ease:[{ease:["linear","in","out","in-out",$t]}],delay:[{delay:T()}],animate:[{animate:["none","spin","ping","pulse","bounce",$t]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[zm,$t]}],"translate-x":[{"translate-x":[S]}],"translate-y":[{"translate-y":[S]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",$t]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",$t]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",$t]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[yl,nd,xg]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const $7=u7(C7);function we(...e){return $7(R2(e))}const RE=mu("inline-flex items-center justify-center whitespace-nowrap text-sm font-semibold ring-offset-background transition-colors duration-300 ease-in-out focus-visible:outline-none focus-visible:ring-offset-2 disabled:pointer-events-none disabled:text-gray-100 disabled:bg-gray-300 disabled:border-0",{variants:{variant:{primary:"bg-blue_100 text-white hover:bg-blue_120",secondary:"bg-gray-100 text-gray-700 hover:bg-gray-200",secondary_danger:"bg-red_10 text-red-dark border-none hover:bg-red_20 !rounded-m",tertiary:"text-blue_100 hover:text-blue_120 disabled:text-gray-300 disabled:bg-transparent",red_primary:"bg-red-dark text-white hover:bg-red_100",red_secondary:"bg-white text-red-dark border-red_30 border hover:bg-red_20 hover:border-red_20",red_tertiary:"text-red-dark hover:text-red_100 disabled:bg-transparent",none:""},size:{l:"min-w-[80px] h-l text-base gap-xxs px-s rounded-lg",m:"min-w-[80px] h-m text-base gap-xxs px-xs rounded-m",s:"min-w-[80px] h-s text-sm gap-xxxs px-xxs rounded-sm",icon_l:"size-12",icon_m:"size-10",icon_s:"size-8",icon_xs:"size-6",none:""}},defaultVariants:{variant:"primary",size:"m"}}),kv=m.forwardRef((({className:e,variant:t,size:n,asChild:r=!1,as:o="button",...i},a)=>{const u=r?wd:o;return G.jsx(u,{className:we(RE({variant:t,size:n,className:e})),ref:a,...i})}));function Te(){return Te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Te.apply(null,arguments)}function I7(e,t){const n=m.createContext(t);function r(e){const{children:t,...r}=e,o=m.useMemo((()=>r),Object.values(r));return m.createElement(n.Provider,{value:o},t)}return r.displayName=e+"Provider",[r,function(r){const o=m.useContext(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}function ni(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>m.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return m.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=m.createContext(r),i=n.length;function a(t){const{scope:n,children:r,...a}=t,u=(null==n?void 0:n[e][i])||o,s=m.useMemo((()=>a),Object.values(a));return m.createElement(u.Provider,{value:s},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const u=(null==a?void 0:a[e][i])||o,s=m.useContext(u);if(s)return s;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},R7(r,...t)]}function R7(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return m.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function P7(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function PE(...e){return t=>e.forEach((e=>P7(e,t)))}function Ut(...e){return m.useCallback(PE(...e),e)}function et(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}kv.displayName="Button";const Uo=null!=globalThis&&globalThis.document?m.useLayoutEffect:()=>{},T7=Qg.useId||(()=>{});let O7=0;function sd(e){const[t,n]=m.useState(T7());return Uo((()=>{n((e=>e??String(O7++)))}),[e]),t?`radix-${t}`:""}function ys(e){const t=m.useRef(e);return m.useEffect((()=>{t.current=e})),m.useMemo((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function pd({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=A7({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,u=ys(n);return[a,m.useCallback((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&u(n)}else o(t)}),[i,e,o,u])]}function A7({defaultProp:e,onChange:t}){const n=m.useState(e),[r]=n,o=m.useRef(r),i=ys(t);return m.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}var H$,K$,Q$,Y$,q1={exports:{}},bi={},G1={exports:{}},H1={};
|
|
61
61
|
/**
|
|
62
62
|
* @license React
|
|
63
63
|
* scheduler.production.min.js
|
|
@@ -66,7 +66,7 @@ var fL=Object.defineProperty,pL=(e,t,n)=>t in e?fL(e,t,{enumerable:!0,configurab
|
|
|
66
66
|
*
|
|
67
67
|
* This source code is licensed under the MIT license found in the
|
|
68
68
|
* LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/function k7(){return H$||(H$=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var u=2*(r+1)-1,s=e[u],l=u+1,c=e[l];if(0>o(s,n))l<i&&0>o(c,s)?(e[r]=c,e[l]=n,r=l):(e[r]=s,e[u]=n,r=u);else{if(!(l<i&&0>o(c,n)))break e;e[r]=c,e[l]=n,r=l}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,u=a.now();e.unstable_now=function(){return a.now()-u}}var s=[],l=[],c=1,d=null,f=3,p=!1,m=!1,h=!1,v="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;function b(e){for(var o=n(l);null!==o;){if(null===o.callback)r(l);else{if(!(o.startTime<=e))break;r(l),o.sortIndex=o.expirationTime,t(s,o)}o=n(l)}}function w(e){if(h=!1,b(e),!m)if(null!==n(s))m=!0,
|
|
69
|
+
*/function k7(){return H$||(H$=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var u=2*(r+1)-1,s=e[u],l=u+1,c=e[l];if(0>o(s,n))l<i&&0>o(c,s)?(e[r]=c,e[l]=n,r=l):(e[r]=s,e[u]=n,r=u);else{if(!(l<i&&0>o(c,n)))break e;e[r]=c,e[l]=n,r=l}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,u=a.now();e.unstable_now=function(){return a.now()-u}}var s=[],l=[],c=1,d=null,f=3,p=!1,m=!1,h=!1,v="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;function b(e){for(var o=n(l);null!==o;){if(null===o.callback)r(l);else{if(!(o.startTime<=e))break;r(l),o.sortIndex=o.expirationTime,t(s,o)}o=n(l)}}function w(e){if(h=!1,b(e),!m)if(null!==n(s))m=!0,O(x);else{var t=n(l);null!==t&&N(w,t.startTime-e)}}function x(t,o){m=!1,h&&(h=!1,g(k),k=-1),p=!0;var i=f;try{for(b(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!I());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var u=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof u?d.callback=u:d===n(s)&&r(s),b(o)}else r(s);d=n(s)}if(null!==d)var c=!0;else{var v=n(l);null!==v&&N(w,v.startTime-o),c=!1}return c}finally{d=null,f=i,p=!1}}typeof navigator<"u"&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var _,E=!1,S=null,k=-1,A=5,C=-1;function I(){return!(e.unstable_now()-C<A)}function R(){if(null!==S){var t=e.unstable_now();C=t;var n=!0;try{n=S(!0,t)}finally{n?_():(E=!1,S=null)}}else E=!1}if("function"==typeof y)_=function(){y(R)};else if(typeof MessageChannel<"u"){var P=new MessageChannel,T=P.port2;P.port1.onmessage=R,_=function(){T.postMessage(null)}}else _=function(){v(R,0)};function O(e){S=e,E||(E=!0,_())}function N(t,n){k=v((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_continueExecution=function(){m||p||(m=!0,O(x))},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"):A=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(s)},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_pauseExecution=function(){},e.unstable_requestPaint=function(){},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,o,i){var a=e.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,r){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:u=i+u,sortIndex:-1},i>a?(r.sortIndex=i,t(l,r),null===n(s)&&r===n(l)&&(h?(g(k),k=-1):h=!0,N(w,i-a))):(r.sortIndex=u,t(s,r),m||p||(m=!0,O(x))),r},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(H1)),H1}function D7(){return K$||(K$=1,G1.exports=k7()),G1.exports
|
|
70
70
|
/**
|
|
71
71
|
* @license React
|
|
72
72
|
* react-dom.production.min.js
|
|
@@ -75,7 +75,7 @@ var fL=Object.defineProperty,pL=(e,t,n)=>t in e?fL(e,t,{enumerable:!0,configurab
|
|
|
75
75
|
*
|
|
76
76
|
* This source code is licensed under the MIT license found in the
|
|
77
77
|
* LICENSE file in the root directory of this source tree.
|
|
78
|
-
*/}function N7(){if(Q$)return bi;Q$=1;var e=hy(),t=D7();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;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."}var r=new Set,o={};function i(e,t){a(e,t),a(e+"Capture",t)}function a(e,t){for(o[e]=t,e=0;e<t.length;e++)r.add(t[e])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),s=Object.prototype.hasOwnProperty,l=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,c={},d={};function f(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){p[e]=new f(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];p[t]=new f(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){p[e]=new f(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){p[e]=new f(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){p[e]=new f(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){p[e]=new f(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){p[e]=new f(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){p[e]=new f(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){p[e]=new f(e,5,!1,e.toLowerCase(),null,!1,!1)}));var m=/[\-:]([a-z])/g;function h(e){return e[1].toUpperCase()}function v(e,t,n,r){var o=p.hasOwnProperty(t)?p[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||typeof t>"u"||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!s.call(d,e)||!s.call(c,e)&&(l.test(e)?d[e]=!0:(c[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(m,h);p[t]=new f(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(m,h);p[t]=new f(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(m,h);p[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)})),p.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)}));var g=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,y=Symbol.for("react.element"),b=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),S=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),O=Symbol.iterator;function T(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=O&&e[O]||e["@@iterator"])?e:null}var N,j=Object.assign;function q(e){if(void 0===N)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);N=t&&t[1]||""}return"\n"+N+e}var D=!1;function M(e,t){if(!e||D)return"";D=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,u=i.length-1;1<=a&&0<=u&&o[a]!==i[u];)u--;for(;1<=a&&0<=u;a--,u--)if(o[a]!==i[u]){if(1!==a||1!==u)do{if(a--,0>--u||o[a]!==i[u]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=u);break}}}finally{D=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?q(e):""}function L(e){switch(e.tag){case 5:return q(e.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return e=M(e.type,!1);case 11:return e=M(e.type.render,!1);case 1:return e=M(e.type,!0);default:return""}}function $(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case w:return"Fragment";case b:return"Portal";case _:return"Profiler";case x:return"StrictMode";case k:return"Suspense";case C:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case S:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case A:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:$(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return $(e(t))}catch{}}return null}function B(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $(t);case 8:return t===x?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function V(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function z(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function F(e){e._valueTracker||(e._valueTracker=function(e){var t=z(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function U(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=z(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if(typeof(e=e||(typeof document<"u"?document:void 0))>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function W(e,t){var n=t.checked;return j({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function H(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=V(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function K(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function Q(e,t){K(e,t);var n=V(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?X(e,t.type,n):t.hasOwnProperty("defaultValue")&&X(e,t.type,V(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Y(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function X(e,t,n){("number"!==t||G(e.ownerDocument)!==e)&&(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var J=Array.isArray;function Z(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+V(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function ee(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return j({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function te(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(J(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:V(r)}}function ne(e,t){var n=V(t.value),r=V(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function re(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function oe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ie(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?oe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ae,ue,se=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ae=ae||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ae.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function le(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ce={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},de=["Webkit","ms","Moz","O"];function fe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ce.hasOwnProperty(e)&&ce[e]?(""+t).trim():t+"px"}function pe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=fe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ce).forEach((function(e){de.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ce[t]=ce[e]}))}));var me=j({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function he(e,t){if(t){if(me[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ge=null;function ye(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var be=null,we=null,xe=null;function _e(e){if(e=go(e)){if("function"!=typeof be)throw Error(n(280));var t=e.stateNode;t&&(t=bo(t),be(e.stateNode,e.type,t))}}function Ee(e){we?xe?xe.push(e):xe=[e]:we=e}function Se(){if(we){var e=we,t=xe;if(xe=we=null,_e(e),t)for(e=0;e<t.length;e++)_e(t[e])}}function Ae(e,t){return e(t)}function ke(){}var Ce=!1;function Ie(e,t,n){if(Ce)return e(t,n);Ce=!0;try{return Ae(e,t,n)}finally{Ce=!1,(null!==we||null!==xe)&&(ke(),Se())}}function Pe(e,t){var r=e.stateNode;if(null===r)return null;var o=bo(r);if(null===o)return null;r=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Re=!1;if(u)try{var Oe={};Object.defineProperty(Oe,"passive",{get:function(){Re=!0}}),window.addEventListener("test",Oe,Oe),window.removeEventListener("test",Oe,Oe)}catch{Re=!1}function Te(e,t,n,r,o,i,a,u,s){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var Ne=!1,je=null,qe=!1,De=null,Me={onError:function(e){Ne=!0,je=e}};function Le(e,t,n,r,o,i,a,u,s){Ne=!1,je=null,Te.apply(Me,arguments)}function $e(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Be(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ve(e){if($e(e)!==e)throw Error(n(188))}function ze(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=$e(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,o=t;;){var i=r.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(o=i.return)){r=o;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return Ve(i),e;if(a===o)return Ve(i),t;a=a.sibling}throw Error(n(188))}if(r.return!==o.return)r=i,o=a;else{for(var u=!1,s=i.child;s;){if(s===r){u=!0,r=i,o=a;break}if(s===o){u=!0,o=i,r=a;break}s=s.sibling}if(!u){for(s=a.child;s;){if(s===r){u=!0,r=a,o=i;break}if(s===o){u=!0,o=a,r=i;break}s=s.sibling}if(!u)throw Error(n(189))}}if(r.alternate!==o)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e))?Fe(e):null}function Fe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Fe(e);if(null!==t)return t;e=e.sibling}return null}var Ue=t.unstable_scheduleCallback,Ge=t.unstable_cancelCallback,We=t.unstable_shouldYield,He=t.unstable_requestPaint,Ke=t.unstable_now,Qe=t.unstable_getCurrentPriorityLevel,Ye=t.unstable_ImmediatePriority,Xe=t.unstable_UserBlockingPriority,Je=t.unstable_NormalPriority,Ze=t.unstable_LowPriority,et=t.unstable_IdlePriority,tt=null,nt=null;var rt=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(ot(e)/it|0)|0},ot=Math.log,it=Math.LN2;var at=64,ut=4194304;function st(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function lt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var u=a&~o;0!==u?r=st(u):0!==(i&=a)&&(r=st(i))}else 0!==(a=n&~o)?r=st(a):0!==i&&(r=st(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(!!(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-rt(t)),r|=e[n],t&=~o;return r}function ct(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function dt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ft(){var e=at;return!(4194240&(at<<=1))&&(at=64),e}function pt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function mt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-rt(t)]=n}function ht(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-rt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var vt=0;function gt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var yt,bt,wt,xt,_t,Et=!1,St=[],At=null,kt=null,Ct=null,It=new Map,Pt=new Map,Rt=[],Ot="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Tt(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":kt=null;break;case"mouseover":case"mouseout":Ct=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pt.delete(t.pointerId)}}function Nt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=go(t))&&bt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function jt(e){var t=vo(e.target);if(null!==t){var n=$e(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Be(n)))return e.blockedOn=t,void _t(e.priority,(function(){wt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function qt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Wt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=go(n))&&bt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ge=r,n.target.dispatchEvent(r),ge=null,t.shift()}return!0}function Dt(e,t,n){qt(e)&&n.delete(t)}function Mt(){Et=!1,null!==At&&qt(At)&&(At=null),null!==kt&&qt(kt)&&(kt=null),null!==Ct&&qt(Ct)&&(Ct=null),It.forEach(Dt),Pt.forEach(Dt)}function Lt(e,n){e.blockedOn===n&&(e.blockedOn=null,Et||(Et=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Mt)))}function $t(e){function t(t){return Lt(t,e)}if(0<St.length){Lt(St[0],e);for(var n=1;n<St.length;n++){var r=St[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==At&&Lt(At,e),null!==kt&&Lt(kt,e),null!==Ct&&Lt(Ct,e),It.forEach(t),Pt.forEach(t),n=0;n<Rt.length;n++)(r=Rt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Rt.length&&null===(n=Rt[0]).blockedOn;)jt(n),null===n.blockedOn&&Rt.shift()}var Bt=g.ReactCurrentBatchConfig,Vt=!0;function zt(e,t,n,r){var o=vt,i=Bt.transition;Bt.transition=null;try{vt=1,Ut(e,t,n,r)}finally{vt=o,Bt.transition=i}}function Ft(e,t,n,r){var o=vt,i=Bt.transition;Bt.transition=null;try{vt=4,Ut(e,t,n,r)}finally{vt=o,Bt.transition=i}}function Ut(e,t,n,r){if(Vt){var o=Wt(e,t,n,r);if(null===o)Vr(e,t,r,Gt,n),Tt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return At=Nt(At,e,t,n,r,o),!0;case"dragenter":return kt=Nt(kt,e,t,n,r,o),!0;case"mouseover":return Ct=Nt(Ct,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return It.set(i,Nt(It.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Pt.set(i,Nt(Pt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Tt(e,r),4&t&&-1<Ot.indexOf(e)){for(;null!==o;){var i=go(o);if(null!==i&&yt(i),null===(i=Wt(e,t,n,r))&&Vr(e,t,r,Gt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Vr(e,t,r,null,n)}}var Gt=null;function Wt(e,t,n,r){if(Gt=null,null!==(e=vo(e=ye(r))))if(null===(t=$e(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Be(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Ht(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qe()){case Ye:return 1;case Xe:return 4;case Je:case Ze:return 16;case et:return 536870912;default:return 16}default:return 16}}var Kt=null,Qt=null,Yt=null;function Xt(){if(Yt)return Yt;var e,t,n=Qt,r=n.length,o="value"in Kt?Kt.value:Kt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Yt=o.slice(e,1<t?1-t:void 0)}function Jt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Zt(){return!0}function en(){return!1}function tn(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Zt:en,this.isPropagationStopped=en,this}return j(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Zt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Zt)},persist:function(){},isPersistent:Zt}),t}var nn,rn,on,an={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=tn(an),sn=j({},an,{view:0,detail:0}),ln=tn(sn),cn=j({},sn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_n,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==on&&(on&&"mousemove"===e.type?(nn=e.screenX-on.screenX,rn=e.screenY-on.screenY):rn=nn=0,on=e),nn)},movementY:function(e){return"movementY"in e?e.movementY:rn}}),dn=tn(cn),fn=tn(j({},cn,{dataTransfer:0})),pn=tn(j({},sn,{relatedTarget:0})),mn=tn(j({},an,{animationName:0,elapsedTime:0,pseudoElement:0})),hn=j({},an,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vn=tn(hn),gn=tn(j({},an,{data:0})),yn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},wn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=wn[e])&&!!t[e]}function _n(){return xn}var En=j({},sn,{key:function(e){if(e.key){var t=yn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Jt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?bn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_n,charCode:function(e){return"keypress"===e.type?Jt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Jt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Sn=tn(En),An=tn(j({},cn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),kn=tn(j({},sn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_n})),Cn=tn(j({},an,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=j({},cn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Pn=tn(In),Rn=[9,13,27,32],On=u&&"CompositionEvent"in window,Tn=null;u&&"documentMode"in document&&(Tn=document.documentMode);var Nn=u&&"TextEvent"in window&&!Tn,jn=u&&(!On||Tn&&8<Tn&&11>=Tn),qn=" ",Dn=!1;function Mn(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ln(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var $n=!1;var Bn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Bn[e.type]:"textarea"===t}function zn(e,t,n,r){Ee(r),0<(t=Fr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Fn=null,Un=null;function Gn(e){qr(e,0)}function Wn(e){if(U(yo(e)))return e}function Hn(e,t){if("change"===e)return t}var Kn=!1;if(u){var Qn;if(u){var Yn="oninput"in document;if(!Yn){var Xn=document.createElement("div");Xn.setAttribute("oninput","return;"),Yn="function"==typeof Xn.oninput}Qn=Yn}else Qn=!1;Kn=Qn&&(!document.documentMode||9<document.documentMode)}function Jn(){Fn&&(Fn.detachEvent("onpropertychange",Zn),Un=Fn=null)}function Zn(e){if("value"===e.propertyName&&Wn(Un)){var t=[];zn(t,Un,e,ye(e)),Ie(Gn,t)}}function er(e,t,n){"focusin"===e?(Jn(),Un=n,(Fn=t).attachEvent("onpropertychange",Zn)):"focusout"===e&&Jn()}function tr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Wn(Un)}function nr(e,t){if("click"===e)return Wn(t)}function rr(e,t){if("input"===e||"change"===e)return Wn(t)}var or="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ir(e,t){if(or(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!s.call(t,o)||!or(e[o],t[o]))return!1}return!0}function ar(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=ar(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ar(r)}}function sr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?sr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function lr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch{n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function dr(e){var t=lr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&sr(n.ownerDocument.documentElement,n)){if(null!==r&&cr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ur(n,i);var a=ur(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var fr=u&&"documentMode"in document&&11>=document.documentMode,pr=null,mr=null,hr=null,vr=!1;function gr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==pr||pr!==G(r)||("selectionStart"in(r=pr)&&cr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},hr&&ir(hr,r)||(hr=r,0<(r=Fr(mr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=pr)))}function yr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var br={animationend:yr("Animation","AnimationEnd"),animationiteration:yr("Animation","AnimationIteration"),animationstart:yr("Animation","AnimationStart"),transitionend:yr("Transition","TransitionEnd")},wr={},xr={};function _r(e){if(wr[e])return wr[e];if(!br[e])return e;var t,n=br[e];for(t in n)if(n.hasOwnProperty(t)&&t in xr)return wr[e]=n[t];return e}u&&(xr=document.createElement("div").style,"AnimationEvent"in window||(delete br.animationend.animation,delete br.animationiteration.animation,delete br.animationstart.animation),"TransitionEvent"in window||delete br.transitionend.transition);var Er=_r("animationend"),Sr=_r("animationiteration"),Ar=_r("animationstart"),kr=_r("transitionend"),Cr=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Pr(e,t){Cr.set(e,t),i(t,[e])}for(var Rr=0;Rr<Ir.length;Rr++){var Or=Ir[Rr];Pr(Or.toLowerCase(),"on"+(Or[0].toUpperCase()+Or.slice(1)))}Pr(Er,"onAnimationEnd"),Pr(Sr,"onAnimationIteration"),Pr(Ar,"onAnimationStart"),Pr("dblclick","onDoubleClick"),Pr("focusin","onFocus"),Pr("focusout","onBlur"),Pr(kr,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Tr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Nr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Tr));function jr(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,o,i,a,u,s,l){if(Le.apply(this,arguments),Ne){if(!Ne)throw Error(n(198));var c=je;Ne=!1,je=null,qe||(qe=!0,De=c)}}(o,t,void 0,e),e.currentTarget=null}function qr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var u=r[a],s=u.instance,l=u.currentTarget;if(u=u.listener,s!==i&&o.isPropagationStopped())break e;jr(o,u,l),i=s}else for(a=0;a<r.length;a++){if(s=(u=r[a]).instance,l=u.currentTarget,u=u.listener,s!==i&&o.isPropagationStopped())break e;jr(o,u,l),i=s}}}if(qe)throw e=De,qe=!1,De=null,e}function Dr(e,t){var n=t[po];void 0===n&&(n=t[po]=new Set);var r=e+"__bubble";n.has(r)||(Br(t,e,2,!1),n.add(r))}function Mr(e,t,n){var r=0;t&&(r|=4),Br(n,e,r,t)}var Lr="_reactListening"+Math.random().toString(36).slice(2);function $r(e){if(!e[Lr]){e[Lr]=!0,r.forEach((function(t){"selectionchange"!==t&&(Nr.has(t)||Mr(t,!1,e),Mr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Lr]||(t[Lr]=!0,Mr("selectionchange",!1,t))}}function Br(e,t,n,r){switch(Ht(t)){case 1:var o=zt;break;case 4:o=Ft;break;default:o=Ut}n=o.bind(null,t,n,e),o=void 0,!Re||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Vr(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var u=r.stateNode.containerInfo;if(u===o||8===u.nodeType&&u.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==u;){if(null===(a=vo(u)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}u=u.parentNode}}r=r.return}Ie((function(){var r=i,o=ye(n),a=[];e:{var u=Cr.get(e);if(void 0!==u){var s=un,l=e;switch(e){case"keypress":if(0===Jt(n))break e;case"keydown":case"keyup":s=Sn;break;case"focusin":l="focus",s=pn;break;case"focusout":l="blur",s=pn;break;case"beforeblur":case"afterblur":s=pn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=dn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=fn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=kn;break;case Er:case Sr:case Ar:s=mn;break;case kr:s=Cn;break;case"scroll":s=ln;break;case"wheel":s=Pn;break;case"copy":case"cut":case"paste":s=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=An}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==u?u+"Capture":null:u;c=[];for(var p,m=r;null!==m;){var h=(p=m).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==f&&(null!=(h=Pe(m,f))&&c.push(zr(m,h,p)))),d)break;m=m.return}0<c.length&&(u=new s(u,l,null,n,o),a.push({event:u,listeners:c}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(u="mouseover"===e||"pointerover"===e)||n===ge||!(l=n.relatedTarget||n.fromElement)||!vo(l)&&!l[fo])&&(s||u)&&(u=o.window===o?o:(u=o.ownerDocument)?u.defaultView||u.parentWindow:window,s?(s=r,null!==(l=(l=n.relatedTarget||n.toElement)?vo(l):null)&&(l!==(d=$e(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(s=null,l=r),s!==l)){if(c=dn,h="onMouseLeave",f="onMouseEnter",m="mouse",("pointerout"===e||"pointerover"===e)&&(c=An,h="onPointerLeave",f="onPointerEnter",m="pointer"),d=null==s?u:yo(s),p=null==l?u:yo(l),(u=new c(h,m+"leave",s,n,o)).target=d,u.relatedTarget=p,h=null,vo(o)===r&&((c=new c(f,m+"enter",l,n,o)).target=p,c.relatedTarget=d,h=c),d=h,s&&l)e:{for(f=l,m=0,p=c=s;p;p=Ur(p))m++;for(p=0,h=f;h;h=Ur(h))p++;for(;0<m-p;)c=Ur(c),m--;for(;0<p-m;)f=Ur(f),p--;for(;m--;){if(c===f||null!==f&&c===f.alternate)break e;c=Ur(c),f=Ur(f)}c=null}else c=null;null!==s&&Gr(a,u,s,c,!1),null!==l&&null!==d&&Gr(a,d,l,c,!0)}if("select"===(s=(u=r?yo(r):window).nodeName&&u.nodeName.toLowerCase())||"input"===s&&"file"===u.type)var v=Hn;else if(Vn(u))if(Kn)v=rr;else{v=tr;var g=er}else(s=u.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===u.type||"radio"===u.type)&&(v=nr);switch(v&&(v=v(e,r))?zn(a,v,n,o):(g&&g(e,u,r),"focusout"===e&&(g=u._wrapperState)&&g.controlled&&"number"===u.type&&X(u,"number",u.value)),g=r?yo(r):window,e){case"focusin":(Vn(g)||"true"===g.contentEditable)&&(pr=g,mr=r,hr=null);break;case"focusout":hr=mr=pr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,gr(a,n,o);break;case"selectionchange":if(fr)break;case"keydown":case"keyup":gr(a,n,o)}var y;if(On)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else $n?Mn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(jn&&"ko"!==n.locale&&($n||"onCompositionStart"!==b?"onCompositionEnd"===b&&$n&&(y=Xt()):(Qt="value"in(Kt=o)?Kt.value:Kt.textContent,$n=!0)),0<(g=Fr(r,b)).length&&(b=new gn(b,e,null,n,o),a.push({event:b,listeners:g}),y?b.data=y:null!==(y=Ln(n))&&(b.data=y))),(y=Nn?function(e,t){switch(e){case"compositionend":return Ln(t);case"keypress":return 32!==t.which?null:(Dn=!0,qn);case"textInput":return(e=t.data)===qn&&Dn?null:e;default:return null}}(e,n):function(e,t){if($n)return"compositionend"===e||!On&&Mn(e,t)?(e=Xt(),Yt=Qt=Kt=null,$n=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return jn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Fr(r,"onBeforeInput")).length&&(o=new gn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}qr(a,t)}))}function zr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Fr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Pe(e,n))&&r.unshift(zr(e,i,o)),null!=(i=Pe(e,t))&&r.push(zr(e,i,o))),e=e.return}return r}function Ur(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var u=n,s=u.alternate,l=u.stateNode;if(null!==s&&s===r)break;5===u.tag&&null!==l&&(u=l,o?null!=(s=Pe(n,i))&&a.unshift(zr(n,s,u)):o||null!=(s=Pe(n,i))&&a.push(zr(n,s,u))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Wr=/\r\n?/g,Hr=/\u0000|\uFFFD/g;function Kr(e){return("string"==typeof e?e:""+e).replace(Wr,"\n").replace(Hr,"")}function Qr(e,t,r){if(t=Kr(t),Kr(e)!==t&&r)throw Error(n(425))}function Yr(){}var Xr=null,Jr=null;function Zr(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var eo="function"==typeof setTimeout?setTimeout:void 0,to="function"==typeof clearTimeout?clearTimeout:void 0,no="function"==typeof Promise?Promise:void 0,ro="function"==typeof queueMicrotask?queueMicrotask:typeof no<"u"?function(e){return no.resolve(null).then(e).catch(oo)}:eo;function oo(e){setTimeout((function(){throw e}))}function io(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void $t(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);$t(t)}function ao(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var so=Math.random().toString(36).slice(2),lo="__reactFiber$"+so,co="__reactProps$"+so,fo="__reactContainer$"+so,po="__reactEvents$"+so,mo="__reactListeners$"+so,ho="__reactHandles$"+so;function vo(e){var t=e[lo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fo]||n[lo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[lo])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function go(e){return!(e=e[lo]||e[fo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function yo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function bo(e){return e[co]||null}var wo=[],xo=-1;function _o(e){return{current:e}}function Eo(e){0>xo||(e.current=wo[xo],wo[xo]=null,xo--)}function So(e,t){xo++,wo[xo]=e.current,e.current=t}var Ao={},ko=_o(Ao),Co=_o(!1),Io=Ao;function Po(e,t){var n=e.type.contextTypes;if(!n)return Ao;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ro(e){return null!=(e=e.childContextTypes)}function Oo(){Eo(Co),Eo(ko)}function To(e,t,r){if(ko.current!==Ao)throw Error(n(168));So(ko,t),So(Co,r)}function No(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return r;for(var i in o=o.getChildContext())if(!(i in t))throw Error(n(108,B(e)||"Unknown",i));return j({},r,o)}function jo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ao,Io=ko.current,So(ko,e),So(Co,Co.current),!0}function qo(e,t,r){var o=e.stateNode;if(!o)throw Error(n(169));r?(e=No(e,t,Io),o.__reactInternalMemoizedMergedChildContext=e,Eo(Co),Eo(ko),So(ko,e)):Eo(Co),So(Co,r)}var Do=null,Mo=!1,Lo=!1;function $o(e){null===Do?Do=[e]:Do.push(e)}function Bo(){if(!Lo&&null!==Do){Lo=!0;var e=0,t=vt;try{var n=Do;for(vt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Do=null,Mo=!1}catch(t){throw null!==Do&&(Do=Do.slice(e+1)),Ue(Ye,Bo),t}finally{vt=t,Lo=!1}}return null}var Vo=[],zo=0,Fo=null,Uo=0,Go=[],Wo=0,Ho=null,Ko=1,Qo="";function Yo(e,t){Vo[zo++]=Uo,Vo[zo++]=Fo,Fo=e,Uo=t}function Xo(e,t,n){Go[Wo++]=Ko,Go[Wo++]=Qo,Go[Wo++]=Ho,Ho=e;var r=Ko;e=Qo;var o=32-rt(r)-1;r&=~(1<<o),n+=1;var i=32-rt(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Ko=1<<32-rt(t)+o|n<<o|r,Qo=i+e}else Ko=1<<i|n<<o|r,Qo=e}function Jo(e){null!==e.return&&(Yo(e,1),Xo(e,1,0))}function Zo(e){for(;e===Fo;)Fo=Vo[--zo],Vo[zo]=null,Uo=Vo[--zo],Vo[zo]=null;for(;e===Ho;)Ho=Go[--Wo],Go[Wo]=null,Qo=Go[--Wo],Go[Wo]=null,Ko=Go[--Wo],Go[Wo]=null}var ei=null,ti=null,ni=!1,ri=null;function oi(e,t){var n=Rl(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ii(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ei=e,ti=ao(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ei=e,ti=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ho?{id:Ko,overflow:Qo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Rl(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ei=e,ti=null,!0);default:return!1}}function ai(e){return!(!(1&e.mode)||128&e.flags)}function ui(e){if(ni){var t=ti;if(t){var r=t;if(!ii(e,t)){if(ai(e))throw Error(n(418));t=ao(r.nextSibling);var o=ei;t&&ii(e,t)?oi(o,r):(e.flags=-4097&e.flags|2,ni=!1,ei=e)}}else{if(ai(e))throw Error(n(418));e.flags=-4097&e.flags|2,ni=!1,ei=e}}}function si(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ei=e}function li(e){if(e!==ei)return!1;if(!ni)return si(e),ni=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Zr(e.type,e.memoizedProps)),t&&(t=ti)){if(ai(e))throw ci(),Error(n(418));for(;t;)oi(e,t),t=ao(t.nextSibling)}if(si(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){ti=ao(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}ti=null}}else ti=ei?ao(e.stateNode.nextSibling):null;return!0}function ci(){for(var e=ti;e;)e=ao(e.nextSibling)}function di(){ti=ei=null,ni=!1}function fi(e){null===ri?ri=[e]:ri.push(e)}var pi=g.ReactCurrentBatchConfig;function mi(e,t){if(e&&e.defaultProps){for(var n in t=j({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var hi=_o(null),vi=null,gi=null,yi=null;function wi(){yi=gi=vi=null}function xi(e){var t=hi.current;Eo(hi),e._currentValue=t}function _i(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ei(e,t){vi=e,yi=gi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(yu=!0),e.firstContext=null)}function Si(e){var t=e._currentValue;if(yi!==e)if(e={context:e,memoizedValue:t,next:null},null===gi){if(null===vi)throw Error(n(308));gi=e,vi.dependencies={lanes:0,firstContext:e}}else gi=gi.next=e;return t}var Ai=null;function ki(e){null===Ai?Ai=[e]:Ai.push(e)}function Ci(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,ki(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ii(e,r)}function Ii(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Pi=!1;function Ri(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Oi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ti(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ni(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Cs){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ii(e,n)}return null===(o=r.interleaved)?(t.next=t,ki(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ii(e,n)}function ji(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,ht(e,n)}}function qi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Di(e,t,n,r){var o=e.updateQueue;Pi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,u=o.shared.pending;if(null!==u){o.shared.pending=null;var s=u,l=s.next;s.next=null,null===a?i=l:a.next=l,a=s;var c=e.alternate;null!==c&&((u=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===u?c.firstBaseUpdate=l:u.next=l,c.lastBaseUpdate=s))}if(null!==i){var d=o.baseState;for(a=0,c=l=s=null,u=i;;){var f=u.lane,p=u.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var m=e,h=u;switch(f=t,p=n,h.tag){case 1:if("function"==typeof(m=h.payload)){d=m.call(p,d,f);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(f="function"==typeof(m=h.payload)?m.call(p,d,f):m))break e;d=j({},d,f);break e;case 2:Pi=!0}}null!==u.callback&&0!==u.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[u]:f.push(u))}else p={eventTime:p,lane:f,tag:u.tag,payload:u.payload,callback:u.callback,next:null},null===c?(l=c=p,s=d):c=c.next=p,a|=f;if(null===(u=u.next)){if(null===(u=o.shared.pending))break;u=(f=u).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(s=d),o.baseState=s,o.firstBaseUpdate=l,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);qs|=a,e.lanes=a,e.memoizedState=d}}function Mi(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],i=o.callback;if(null!==i){if(o.callback=null,o=r,"function"!=typeof i)throw Error(n(191,i));i.call(o)}}}var Li=(new e.Component).refs;function $i(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:j({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Bi={isMounted:function(e){return!!(e=e._reactInternals)&&$e(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Zs(),o=el(e),i=Ti(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Ni(e,i,o))&&(tl(t,e,o,r),ji(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Zs(),o=el(e),i=Ti(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Ni(e,i,o))&&(tl(t,e,o,r),ji(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Zs(),r=el(e),o=Ti(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Ni(e,o,r))&&(tl(t,e,r,n),ji(t,e,r))}};function Vi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!ir(n,r)||!ir(o,i))}function zi(e,t,n){var r=!1,o=Ao,i=t.contextType;return"object"==typeof i&&null!==i?i=Si(i):(o=Ro(t)?Io:ko.current,i=(r=null!=(r=t.contextTypes))?Po(e,o):Ao),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Bi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Fi(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Bi.enqueueReplaceState(t,t.state,null)}function Ui(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Li,Ri(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Si(i):(i=Ro(t)?Io:ko.current,o.context=Po(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&($i(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Bi.enqueueReplaceState(o,o.state,null),Di(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Gi(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var o=r.stateNode}if(!o)throw Error(n(147,e));var i=o,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=i.refs;t===Li&&(t=i.refs={}),null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function Wi(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Hi(e){return(0,e._init)(e._payload)}function Ki(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Tl(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function u(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Dl(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){var o=n.type;return o===w?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===P&&Hi(o)===t.type)?((r=i(t,n.props)).ref=Gi(e,t,n),r.return=e,r):((r=Nl(n.type,n.key,n.props,null,e.mode,r)).ref=Gi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ml(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=jl(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Dl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case y:return(n=Nl(t.type,t.key,t.props,null,e.mode,n)).ref=Gi(e,null,t),n.return=e,n;case b:return(t=Ml(t,e.mode,n)).return=e,t;case P:return f(e,(0,t._init)(t._payload),n)}if(J(t)||T(t))return(t=jl(t,e.mode,n,null)).return=e,t;Wi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case y:return n.key===o?l(e,t,n,r):null;case b:return n.key===o?c(e,t,n,r):null;case P:return p(e,t,(o=n._init)(n._payload),r)}if(J(n)||T(n))return null!==o?null:d(e,t,n,r,null);Wi(e,n)}return null}function m(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case y:return l(t,e=e.get(null===r.key?n:r.key)||null,r,o);case b:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case P:return m(e,t,n,(0,r._init)(r._payload),o)}if(J(r)||T(r))return d(t,e=e.get(n)||null,r,o,null);Wi(t,r)}return null}return function s(l,c,d,h){if("object"==typeof d&&null!==d&&d.type===w&&null===d.key&&(d=d.props.children),"object"==typeof d&&null!==d){switch(d.$$typeof){case y:e:{for(var v=d.key,g=c;null!==g;){if(g.key===v){if((v=d.type)===w){if(7===g.tag){r(l,g.sibling),(c=i(g,d.props.children)).return=l,l=c;break e}}else if(g.elementType===v||"object"==typeof v&&null!==v&&v.$$typeof===P&&Hi(v)===g.type){r(l,g.sibling),(c=i(g,d.props)).ref=Gi(l,g,d),c.return=l,l=c;break e}r(l,g);break}t(l,g),g=g.sibling}d.type===w?((c=jl(d.props.children,l.mode,h,d.key)).return=l,l=c):((h=Nl(d.type,d.key,d.props,null,l.mode,h)).ref=Gi(l,c,d),h.return=l,l=h)}return u(l);case b:e:{for(g=d.key;null!==c;){if(c.key===g){if(4===c.tag&&c.stateNode.containerInfo===d.containerInfo&&c.stateNode.implementation===d.implementation){r(l,c.sibling),(c=i(c,d.children||[])).return=l,l=c;break e}r(l,c);break}t(l,c),c=c.sibling}(c=Ml(d,l.mode,h)).return=l,l=c}return u(l);case P:return s(l,c,(g=d._init)(d._payload),h)}if(J(d))return function(n,i,u,s){for(var l=null,c=null,d=i,h=i=0,v=null;null!==d&&h<u.length;h++){d.index>h?(v=d,d=null):v=d.sibling;var g=p(n,d,u[h],s);if(null===g){null===d&&(d=v);break}e&&d&&null===g.alternate&&t(n,d),i=a(g,i,h),null===c?l=g:c.sibling=g,c=g,d=v}if(h===u.length)return r(n,d),ni&&Yo(n,h),l;if(null===d){for(;h<u.length;h++)null!==(d=f(n,u[h],s))&&(i=a(d,i,h),null===c?l=d:c.sibling=d,c=d);return ni&&Yo(n,h),l}for(d=o(n,d);h<u.length;h++)null!==(v=m(d,n,h,u[h],s))&&(e&&null!==v.alternate&&d.delete(null===v.key?h:v.key),i=a(v,i,h),null===c?l=v:c.sibling=v,c=v);return e&&d.forEach((function(e){return t(n,e)})),ni&&Yo(n,h),l}(l,c,d,h);if(T(d))return function(i,u,s,l){var c=T(s);if("function"!=typeof c)throw Error(n(150));if(null==(s=c.call(s)))throw Error(n(151));for(var d=c=null,h=u,v=u=0,g=null,y=s.next();null!==h&&!y.done;v++,y=s.next()){h.index>v?(g=h,h=null):g=h.sibling;var b=p(i,h,y.value,l);if(null===b){null===h&&(h=g);break}e&&h&&null===b.alternate&&t(i,h),u=a(b,u,v),null===d?c=b:d.sibling=b,d=b,h=g}if(y.done)return r(i,h),ni&&Yo(i,v),c;if(null===h){for(;!y.done;v++,y=s.next())null!==(y=f(i,y.value,l))&&(u=a(y,u,v),null===d?c=y:d.sibling=y,d=y);return ni&&Yo(i,v),c}for(h=o(i,h);!y.done;v++,y=s.next())null!==(y=m(h,i,v,y.value,l))&&(e&&null!==y.alternate&&h.delete(null===y.key?v:y.key),u=a(y,u,v),null===d?c=y:d.sibling=y,d=y);return e&&h.forEach((function(e){return t(i,e)})),ni&&Yo(i,v),c}(l,c,d,h);Wi(l,d)}return"string"==typeof d&&""!==d||"number"==typeof d?(d=""+d,null!==c&&6===c.tag?(r(l,c.sibling),(c=i(c,d)).return=l,l=c):(r(l,c),(c=Dl(d,l.mode,h)).return=l,l=c),u(l)):r(l,c)}}var Qi=Ki(!0),Yi=Ki(!1),Xi={},Ji=_o(Xi),Zi=_o(Xi),ea=_o(Xi);function ta(e){if(e===Xi)throw Error(n(174));return e}function na(e,t){switch(So(ea,t),So(Zi,e),So(Ji,Xi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ie(null,"");break;default:t=ie(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Eo(Ji),So(Ji,t)}function ra(){Eo(Ji),Eo(Zi),Eo(ea)}function oa(e){ta(ea.current);var t=ta(Ji.current),n=ie(t,e.type);t!==n&&(So(Zi,e),So(Ji,n))}function ia(e){Zi.current===e&&(Eo(Ji),Eo(Zi))}var aa=_o(0);function ua(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var sa=[];function la(){for(var e=0;e<sa.length;e++)sa[e]._workInProgressVersionPrimary=null;sa.length=0}var ca=g.ReactCurrentDispatcher,da=g.ReactCurrentBatchConfig,fa=0,pa=null,ma=null,ha=null,va=!1,ga=!1,ya=0,ba=0;function wa(){throw Error(n(321))}function xa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!or(e[n],t[n]))return!1;return!0}function _a(e,t,r,o,i,a){if(fa=a,pa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ca.current=null===e||null===e.memoizedState?iu:au,e=r(o,i),ga){a=0;do{if(ga=!1,ya=0,25<=a)throw Error(n(301));a+=1,ha=ma=null,t.updateQueue=null,ca.current=uu,e=r(o,i)}while(ga)}if(ca.current=ou,t=null!==ma&&null!==ma.next,fa=0,ha=ma=pa=null,va=!1,t)throw Error(n(300));return e}function Ea(){var e=0!==ya;return ya=0,e}function Sa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ha?pa.memoizedState=ha=e:ha=ha.next=e,ha}function Aa(){if(null===ma){var e=pa.alternate;e=null!==e?e.memoizedState:null}else e=ma.next;var t=null===ha?pa.memoizedState:ha.next;if(null!==t)ha=t,ma=e;else{if(null===e)throw Error(n(310));e={memoizedState:(ma=e).memoizedState,baseState:ma.baseState,baseQueue:ma.baseQueue,queue:ma.queue,next:null},null===ha?pa.memoizedState=ha=e:ha=ha.next=e}return ha}function ka(e,t){return"function"==typeof t?t(e):t}function Ca(e){var t=Aa(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=ma,i=o.baseQueue,a=r.pending;if(null!==a){if(null!==i){var u=i.next;i.next=a.next,a.next=u}o.baseQueue=i=a,r.pending=null}if(null!==i){a=i.next,o=o.baseState;var s=u=null,l=null,c=a;do{var d=c.lane;if((fa&d)===d)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),o=c.hasEagerState?c.eagerState:e(o,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(s=l=f,u=o):l=l.next=f,pa.lanes|=d,qs|=d}c=c.next}while(null!==c&&c!==a);null===l?u=o:l.next=s,or(o,t.memoizedState)||(yu=!0),t.memoizedState=o,t.baseState=u,t.baseQueue=l,r.lastRenderedState=o}if(null!==(e=r.interleaved)){i=e;do{a=i.lane,pa.lanes|=a,qs|=a,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Ia(e){var t=Aa(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=r.dispatch,i=r.pending,a=t.memoizedState;if(null!==i){r.pending=null;var u=i=i.next;do{a=e(a,u.action),u=u.next}while(u!==i);or(a,t.memoizedState)||(yu=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,o]}function Pa(){}function Ra(e,t){var r=pa,o=Aa(),i=t(),a=!or(o.memoizedState,i);if(a&&(o.memoizedState=i,yu=!0),o=o.queue,za(Na.bind(null,r,o,e),[e]),o.getSnapshot!==t||a||null!==ha&&1&ha.memoizedState.tag){if(r.flags|=2048,Ma(9,Ta.bind(null,r,o,i,t),void 0,null),null===Is)throw Error(n(349));30&fa||Oa(r,t,i)}return i}function Oa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=pa.updateQueue)?(t={lastEffect:null,stores:null},pa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ta(e,t,n,r){t.value=n,t.getSnapshot=r,ja(t)&&qa(e)}function Na(e,t,n){return n((function(){ja(t)&&qa(e)}))}function ja(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!or(e,n)}catch{return!0}}function qa(e){var t=Ii(e,1);null!==t&&tl(t,e,1,-1)}function Da(e){var t=Sa();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ka,lastRenderedState:e},t.queue=e,e=e.dispatch=eu.bind(null,pa,e),[t.memoizedState,e]}function Ma(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=pa.updateQueue)?(t={lastEffect:null,stores:null},pa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function La(){return Aa().memoizedState}function $a(e,t,n,r){var o=Sa();pa.flags|=e,o.memoizedState=Ma(1|t,n,void 0,void 0===r?null:r)}function Ba(e,t,n,r){var o=Aa();r=void 0===r?null:r;var i=void 0;if(null!==ma){var a=ma.memoizedState;if(i=a.destroy,null!==r&&xa(r,a.deps))return void(o.memoizedState=Ma(t,n,i,r))}pa.flags|=e,o.memoizedState=Ma(1|t,n,i,r)}function Va(e,t){return $a(8390656,8,e,t)}function za(e,t){return Ba(2048,8,e,t)}function Fa(e,t){return Ba(4,2,e,t)}function Ua(e,t){return Ba(4,4,e,t)}function Ga(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Wa(e,t,n){return n=null!=n?n.concat([e]):null,Ba(4,4,Ga.bind(null,t,e),n)}function Ha(){}function Ka(e,t){var n=Aa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&xa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Qa(e,t){var n=Aa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&xa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ya(e,t,n){return 21&fa?(or(n,t)||(n=ft(),pa.lanes|=n,qs|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,yu=!0),e.memoizedState=n)}function Xa(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=da.transition;da.transition={};try{e(!1),t()}finally{vt=n,da.transition=r}}function Ja(){return Aa().memoizedState}function Za(e,t,n){var r=el(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},tu(e))nu(t,n);else if(null!==(n=Ci(e,t,n,r))){tl(n,e,r,Zs()),ru(n,t,r)}}function eu(e,t,n){var r=el(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(tu(e))nu(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,u=i(a,n);if(o.hasEagerState=!0,o.eagerState=u,or(u,a)){var s=t.interleaved;return null===s?(o.next=o,ki(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch{}null!==(n=Ci(e,t,o,r))&&(tl(n,e,r,o=Zs()),ru(n,t,r))}}function tu(e){var t=e.alternate;return e===pa||null!==t&&t===pa}function nu(e,t){ga=va=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ru(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,ht(e,n)}}var ou={readContext:Si,useCallback:wa,useContext:wa,useEffect:wa,useImperativeHandle:wa,useInsertionEffect:wa,useLayoutEffect:wa,useMemo:wa,useReducer:wa,useRef:wa,useState:wa,useDebugValue:wa,useDeferredValue:wa,useTransition:wa,useMutableSource:wa,useSyncExternalStore:wa,useId:wa,unstable_isNewReconciler:!1},iu={readContext:Si,useCallback:function(e,t){return Sa().memoizedState=[e,void 0===t?null:t],e},useContext:Si,useEffect:Va,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,$a(4194308,4,Ga.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $a(4194308,4,e,t)},useInsertionEffect:function(e,t){return $a(4,2,e,t)},useMemo:function(e,t){var n=Sa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Sa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Za.bind(null,pa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Sa().memoizedState=e},useState:Da,useDebugValue:Ha,useDeferredValue:function(e){return Sa().memoizedState=e},useTransition:function(){var e=Da(!1),t=e[0];return e=Xa.bind(null,e[1]),Sa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=pa,i=Sa();if(ni){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Is)throw Error(n(349));30&fa||Oa(o,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Va(Na.bind(null,o,a,e),[e]),o.flags|=2048,Ma(9,Ta.bind(null,o,a,r,t),void 0,null),r},useId:function(){var e=Sa(),t=Is.identifierPrefix;if(ni){var n=Qo;t=":"+t+"R"+(n=(Ko&~(1<<32-rt(Ko)-1)).toString(32)+n),0<(n=ya++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ba++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},au={readContext:Si,useCallback:Ka,useContext:Si,useEffect:za,useImperativeHandle:Wa,useInsertionEffect:Fa,useLayoutEffect:Ua,useMemo:Qa,useReducer:Ca,useRef:La,useState:function(){return Ca(ka)},useDebugValue:Ha,useDeferredValue:function(e){return Ya(Aa(),ma.memoizedState,e)},useTransition:function(){return[Ca(ka)[0],Aa().memoizedState]},useMutableSource:Pa,useSyncExternalStore:Ra,useId:Ja,unstable_isNewReconciler:!1},uu={readContext:Si,useCallback:Ka,useContext:Si,useEffect:za,useImperativeHandle:Wa,useInsertionEffect:Fa,useLayoutEffect:Ua,useMemo:Qa,useReducer:Ia,useRef:La,useState:function(){return Ia(ka)},useDebugValue:Ha,useDeferredValue:function(e){var t=Aa();return null===ma?t.memoizedState=e:Ya(t,ma.memoizedState,e)},useTransition:function(){return[Ia(ka)[0],Aa().memoizedState]},useMutableSource:Pa,useSyncExternalStore:Ra,useId:Ja,unstable_isNewReconciler:!1};function su(e,t){try{var n="",r=t;do{n+=L(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function lu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function cu(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var du="function"==typeof WeakMap?WeakMap:Map;function fu(e,t,n){(n=Ti(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Fs||(Fs=!0,Us=r),cu(0,t)},n}function pu(e,t,n){(n=Ti(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){cu(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){cu(0,t),"function"!=typeof r&&(null===Gs?Gs=new Set([this]):Gs.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function mu(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new du;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Sl.bind(null,e,t,n),t.then(e,e))}function hu(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vu(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ti(-1,1)).tag=2,Ni(n,t,1))),n.lanes|=1),e)}var gu=g.ReactCurrentOwner,yu=!1;function bu(e,t,n,r){t.child=null===e?Yi(t,null,n,r):Qi(t,e.child,n,r)}function wu(e,t,n,r,o){n=n.render;var i=t.ref;return Ei(t,o),r=_a(e,t,n,r,i,o),n=Ea(),null===e||yu?(ni&&n&&Jo(t),t.flags|=1,bu(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Fu(e,t,o))}function xu(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Ol(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nl(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,_u(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:ir)(a,r)&&e.ref===t.ref)return Fu(e,t,o)}return t.flags|=1,(e=Tl(i,r)).ref=t.ref,e.return=t,t.child=e}function _u(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(ir(i,r)&&e.ref===t.ref){if(yu=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,Fu(e,t,o);131072&e.flags&&(yu=!0)}}return Au(e,t,n,r,o)}function Eu(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,So(Ts,Os),Os|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,So(Ts,Os),Os|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},So(Ts,Os),Os|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,So(Ts,Os),Os|=r;return bu(e,t,o,n),t.child}function Su(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Au(e,t,n,r,o){var i=Ro(n)?Io:ko.current;return i=Po(t,i),Ei(t,o),n=_a(e,t,n,r,i,o),r=Ea(),null===e||yu?(ni&&r&&Jo(t),t.flags|=1,bu(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Fu(e,t,o))}function ku(e,t,n,r,o){if(Ro(n)){var i=!0;jo(t)}else i=!1;if(Ei(t,o),null===t.stateNode)zu(e,t),zi(t,n,r),Ui(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,u=t.memoizedProps;a.props=u;var s=a.context,l=n.contextType;"object"==typeof l&&null!==l?l=Si(l):l=Po(t,l=Ro(n)?Io:ko.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(u!==r||s!==l)&&Fi(t,a,r,l),Pi=!1;var f=t.memoizedState;a.state=f,Di(t,r,a,o),s=t.memoizedState,u!==r||f!==s||Co.current||Pi?("function"==typeof c&&($i(t,n,c,r),s=t.memoizedState),(u=Pi||Vi(t,n,u,r,f,s,l))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=l,r=u):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Oi(e,t),u=t.memoizedProps,l=t.type===t.elementType?u:mi(t.type,u),a.props=l,d=t.pendingProps,f=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=Si(s):s=Po(t,s=Ro(n)?Io:ko.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(u!==d||f!==s)&&Fi(t,a,r,s),Pi=!1,f=t.memoizedState,a.state=f,Di(t,r,a,o);var m=t.memoizedState;u!==d||f!==m||Co.current||Pi?("function"==typeof p&&($i(t,n,p,r),m=t.memoizedState),(l=Pi||Vi(t,n,l,r,f,m,s)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,m,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,m,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||u===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=s,r=l):("function"!=typeof a.componentDidUpdate||u===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Cu(e,t,n,r,i,o)}function Cu(e,t,n,r,o,i){Su(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&qo(t,n,!1),Fu(e,t,i);r=t.stateNode,gu.current=t;var u=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Qi(t,e.child,null,i),t.child=Qi(t,null,u,i)):bu(e,t,u,i),t.memoizedState=r.state,o&&qo(t,n,!0),t.child}function Iu(e){var t=e.stateNode;t.pendingContext?To(0,t.pendingContext,t.pendingContext!==t.context):t.context&&To(0,t.context,!1),na(e,t.containerInfo)}function Pu(e,t,n,r,o){return di(),fi(o),t.flags|=256,bu(e,t,n,r),t.child}var Ru,Ou,Tu,Nu,ju={dehydrated:null,treeContext:null,retryLane:0};function qu(e){return{baseLanes:e,cachePool:null,transitions:null}}function Du(e,t,r){var o,i=t.pendingProps,a=aa.current,u=!1,s=!!(128&t.flags);if((o=s)||(o=(null===e||null!==e.memoizedState)&&!!(2&a)),o?(u=!0,t.flags&=-129):(null===e||null!==e.memoizedState)&&(a|=1),So(aa,1&a),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=i.children,e=i.fallback,u?(i=t.mode,u=t.child,s={mode:"hidden",children:s},1&i||null===u?u=ql(s,i,0,null):(u.childLanes=0,u.pendingProps=s),e=jl(e,i,r,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=qu(r),t.memoizedState=ju,e):Mu(t,s));if(null!==(a=e.memoizedState)&&null!==(o=a.dehydrated))return function(e,t,r,o,i,a,u){if(r)return 256&t.flags?(t.flags&=-257,o=lu(Error(n(422))),Lu(e,t,u,o)):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=o.fallback,i=t.mode,o=ql({mode:"visible",children:o.children},i,0,null),a=jl(a,i,u,null),a.flags|=2,o.return=t,a.return=t,o.sibling=a,t.child=o,!!(1&t.mode)&&Qi(t,e.child,null,u),t.child.memoizedState=qu(u),t.memoizedState=ju,a);if(!(1&t.mode))return Lu(e,t,u,null);if("$!"===i.data){if(o=i.nextSibling&&i.nextSibling.dataset)var s=o.dgst;return o=s,Lu(e,t,u,o=lu(a=Error(n(419)),o,void 0))}if(s=!!(u&e.childLanes),yu||s){if(null!==(o=Is)){switch(u&-u){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=i&(o.suspendedLanes|u)?0:i)&&i!==a.retryLane&&(a.retryLane=i,Ii(e,i),tl(o,e,i,-1))}return ml(),Lu(e,t,u,o=lu(Error(n(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=kl.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ti=ao(i.nextSibling),ei=t,ni=!0,ri=null,null!==e&&(Go[Wo++]=Ko,Go[Wo++]=Qo,Go[Wo++]=Ho,Ko=e.id,Qo=e.overflow,Ho=t),t=Mu(t,o.children),t.flags|=4096,t)}(e,t,s,i,o,a,r);if(u){u=i.fallback,s=t.mode,o=(a=e.child).sibling;var l={mode:"hidden",children:i.children};return 1&s||t.child===a?(i=Tl(a,l)).subtreeFlags=14680064&a.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null),null!==o?u=Tl(o,u):(u=jl(u,s,r,null)).flags|=2,u.return=t,i.return=t,i.sibling=u,t.child=i,i=u,u=t.child,s=null===(s=e.child.memoizedState)?qu(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},u.memoizedState=s,u.childLanes=e.childLanes&~r,t.memoizedState=ju,i}return e=(u=e.child).sibling,i=Tl(u,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=r),i.return=t,i.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function Mu(e,t){return(t=ql({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Lu(e,t,n,r){return null!==r&&fi(r),Qi(t,e.child,null,n),(e=Mu(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function $u(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),_i(e.return,t,n)}function Bu(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Vu(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(bu(e,t,r.children,n),2&(r=aa.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&$u(e,n,t);else if(19===e.tag)$u(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(So(aa,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ua(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Bu(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ua(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Bu(t,!0,n,null,i);break;case"together":Bu(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function zu(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Fu(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),qs|=t.lanes,!(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Tl(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Tl(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Uu(e,t){if(!ni)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Gu(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Wu(e,t,r){var i=t.pendingProps;switch(Zo(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gu(t),null;case 1:case 17:return Ro(t.type)&&Oo(),Gu(t),null;case 3:return i=t.stateNode,ra(),Eo(Co),Eo(ko),la(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(null===e||null===e.child)&&(li(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ri&&(il(ri),ri=null))),Ou(e,t),Gu(t),null;case 5:ia(t);var a=ta(ea.current);if(r=t.type,null!==e&&null!=t.stateNode)Tu(e,t,r,i,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(null===t.stateNode)throw Error(n(166));return Gu(t),null}if(e=ta(Ji.current),li(t)){i=t.stateNode,r=t.type;var u=t.memoizedProps;switch(i[lo]=t,i[co]=u,e=!!(1&t.mode),r){case"dialog":Dr("cancel",i),Dr("close",i);break;case"iframe":case"object":case"embed":Dr("load",i);break;case"video":case"audio":for(a=0;a<Tr.length;a++)Dr(Tr[a],i);break;case"source":Dr("error",i);break;case"img":case"image":case"link":Dr("error",i),Dr("load",i);break;case"details":Dr("toggle",i);break;case"input":H(i,u),Dr("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!u.multiple},Dr("invalid",i);break;case"textarea":te(i,u),Dr("invalid",i)}for(var s in he(r,u),a=null,u)if(u.hasOwnProperty(s)){var l=u[s];"children"===s?"string"==typeof l?i.textContent!==l&&(!0!==u.suppressHydrationWarning&&Qr(i.textContent,l,e),a=["children",l]):"number"==typeof l&&i.textContent!==""+l&&(!0!==u.suppressHydrationWarning&&Qr(i.textContent,l,e),a=["children",""+l]):o.hasOwnProperty(s)&&null!=l&&"onScroll"===s&&Dr("scroll",i)}switch(r){case"input":F(i),Y(i,u,!0);break;case"textarea":F(i),re(i);break;case"select":case"option":break;default:"function"==typeof u.onClick&&(i.onclick=Yr)}i=a,t.updateQueue=i,null!==i&&(t.flags|=4)}else{s=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=oe(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof i.is?e=s.createElement(r,{is:i.is}):(e=s.createElement(r),"select"===r&&(s=e,i.multiple?s.multiple=!0:i.size&&(s.size=i.size))):e=s.createElementNS(e,r),e[lo]=t,e[co]=i,Ru(e,t,!1,!1),t.stateNode=e;e:{switch(s=ve(r,i),r){case"dialog":Dr("cancel",e),Dr("close",e),a=i;break;case"iframe":case"object":case"embed":Dr("load",e),a=i;break;case"video":case"audio":for(a=0;a<Tr.length;a++)Dr(Tr[a],e);a=i;break;case"source":Dr("error",e),a=i;break;case"img":case"image":case"link":Dr("error",e),Dr("load",e),a=i;break;case"details":Dr("toggle",e),a=i;break;case"input":H(e,i),a=W(e,i),Dr("invalid",e);break;case"option":default:a=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},a=j({},i,{value:void 0}),Dr("invalid",e);break;case"textarea":te(e,i),a=ee(e,i),Dr("invalid",e)}for(u in he(r,a),l=a)if(l.hasOwnProperty(u)){var c=l[u];"style"===u?pe(e,c):"dangerouslySetInnerHTML"===u?null!=(c=c?c.__html:void 0)&&se(e,c):"children"===u?"string"==typeof c?("textarea"!==r||""!==c)&&le(e,c):"number"==typeof c&&le(e,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(o.hasOwnProperty(u)?null!=c&&"onScroll"===u&&Dr("scroll",e):null!=c&&v(e,u,c,s))}switch(r){case"input":F(e),Y(e,i,!1);break;case"textarea":F(e),re(e);break;case"option":null!=i.value&&e.setAttribute("value",""+V(i.value));break;case"select":e.multiple=!!i.multiple,null!=(u=i.value)?Z(e,!!i.multiple,u,!1):null!=i.defaultValue&&Z(e,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Yr)}switch(r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Gu(t),null;case 6:if(e&&null!=t.stateNode)Nu(e,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(n(166));if(r=ta(ea.current),ta(Ji.current),li(t)){if(i=t.stateNode,r=t.memoizedProps,i[lo]=t,(u=i.nodeValue!==r)&&null!==(e=ei))switch(e.tag){case 3:Qr(i.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qr(i.nodeValue,r,!!(1&e.mode))}u&&(t.flags|=4)}else(i=(9===r.nodeType?r:r.ownerDocument).createTextNode(i))[lo]=t,t.stateNode=i}return Gu(t),null;case 13:if(Eo(aa),i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ni&&null!==ti&&1&t.mode&&!(128&t.flags))ci(),di(),t.flags|=98560,u=!1;else if(u=li(t),null!==i&&null!==i.dehydrated){if(null===e){if(!u)throw Error(n(318));if(!(u=null!==(u=t.memoizedState)?u.dehydrated:null))throw Error(n(317));u[lo]=t}else di(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gu(t),u=!1}else null!==ri&&(il(ri),ri=null),u=!0;if(!u)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((i=null!==i)!==(null!==e&&null!==e.memoizedState)&&i&&(t.child.flags|=8192,!!(1&t.mode)&&(null===e||1&aa.current?0===Ns&&(Ns=3):ml())),null!==t.updateQueue&&(t.flags|=4),Gu(t),null);case 4:return ra(),Ou(e,t),null===e&&$r(t.stateNode.containerInfo),Gu(t),null;case 10:return xi(t.type._context),Gu(t),null;case 19:if(Eo(aa),null===(u=t.memoizedState))return Gu(t),null;if(i=!!(128&t.flags),null===(s=u.rendering))if(i)Uu(u,!1);else{if(0!==Ns||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(s=ua(e))){for(t.flags|=128,Uu(u,!1),null!==(i=s.updateQueue)&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=r,r=t.child;null!==r;)e=i,(u=r).flags&=14680066,null===(s=u.alternate)?(u.childLanes=0,u.lanes=e,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=s.childLanes,u.lanes=s.lanes,u.child=s.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=s.memoizedProps,u.memoizedState=s.memoizedState,u.updateQueue=s.updateQueue,u.type=s.type,e=s.dependencies,u.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return So(aa,1&aa.current|2),t.child}e=e.sibling}null!==u.tail&&Ke()>Vs&&(t.flags|=128,i=!0,Uu(u,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=ua(s))){if(t.flags|=128,i=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Uu(u,!0),null===u.tail&&"hidden"===u.tailMode&&!s.alternate&&!ni)return Gu(t),null}else 2*Ke()-u.renderingStartTime>Vs&&1073741824!==r&&(t.flags|=128,i=!0,Uu(u,!1),t.lanes=4194304);u.isBackwards?(s.sibling=t.child,t.child=s):(null!==(r=u.last)?r.sibling=s:t.child=s,u.last=s)}return null!==u.tail?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Ke(),t.sibling=null,r=aa.current,So(aa,i?1&r|2:1&r),t):(Gu(t),null);case 22:case 23:return cl(),i=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==i&&(t.flags|=8192),i&&1&t.mode?!!(1073741824&Os)&&(Gu(t),6&t.subtreeFlags&&(t.flags|=8192)):Gu(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Hu(e,t){switch(Zo(t),t.tag){case 1:return Ro(t.type)&&Oo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ra(),Eo(Co),Eo(ko),la(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ia(t),null;case 13:if(Eo(aa),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));di()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Eo(aa),null;case 4:return ra(),null;case 10:return xi(t.type._context),null;case 22:case 23:return cl(),null;default:return null}}Ru=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ou=function(){},Tu=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ta(Ji.current);var a,u=null;switch(n){case"input":i=W(e,i),r=W(e,r),u=[];break;case"select":i=j({},i,{value:void 0}),r=j({},r,{value:void 0}),u=[];break;case"textarea":i=ee(e,i),r=ee(e,r),u=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Yr)}for(c in he(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var s=i[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(o.hasOwnProperty(c)?u||(u=[]):(u=u||[]).push(c,null));for(c in r){var l=r[c];if(s=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(null!=l||null!=s))if("style"===c)if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(u||(u=[]),u.push(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(u=u||[]).push(c,l)):"children"===c?"string"!=typeof l&&"number"!=typeof l||(u=u||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(o.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&Dr("scroll",e),u||s===l||(u=[])):(u=u||[]).push(c,l))}n&&(u=u||[]).push("style",n);var c=u;(t.updateQueue=c)&&(t.flags|=4)}},Nu=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ku=!1,Qu=!1,Yu="function"==typeof WeakSet?WeakSet:Set,Xu=null;function Ju(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){El(e,t,n)}else n.current=null}function Zu(e,t,n){try{n()}catch(n){El(e,t,n)}}var es=!1;function ts(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&Zu(t,n,i)}o=o.next}while(o!==r)}}function ns(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function rs(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function os(e){var t=e.alternate;null!==t&&(e.alternate=null,os(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[lo],delete t[co],delete t[po],delete t[mo],delete t[ho])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function is(e){return 5===e.tag||3===e.tag||4===e.tag}function as(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||is(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function us(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Yr));else if(4!==r&&null!==(e=e.child))for(us(e,t,n),e=e.sibling;null!==e;)us(e,t,n),e=e.sibling}function ss(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ss(e,t,n),e=e.sibling;null!==e;)ss(e,t,n),e=e.sibling}var ls=null,cs=!1;function ds(e,t,n){for(n=n.child;null!==n;)fs(e,t,n),n=n.sibling}function fs(e,t,n){if(nt&&"function"==typeof nt.onCommitFiberUnmount)try{nt.onCommitFiberUnmount(tt,n)}catch{}switch(n.tag){case 5:Qu||Ju(n,t);case 6:var r=ls,o=cs;ls=null,ds(e,t,n),cs=o,null!==(ls=r)&&(cs?(e=ls,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ls.removeChild(n.stateNode));break;case 18:null!==ls&&(cs?(e=ls,n=n.stateNode,8===e.nodeType?io(e.parentNode,n):1===e.nodeType&&io(e,n),$t(e)):io(ls,n.stateNode));break;case 4:r=ls,o=cs,ls=n.stateNode.containerInfo,cs=!0,ds(e,t,n),ls=r,cs=o;break;case 0:case 11:case 14:case 15:if(!Qu&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(!!(2&i)||!!(4&i))&&Zu(n,t,a),o=o.next}while(o!==r)}ds(e,t,n);break;case 1:if(!Qu&&(Ju(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){El(n,t,e)}ds(e,t,n);break;case 21:ds(e,t,n);break;case 22:1&n.mode?(Qu=(r=Qu)||null!==n.memoizedState,ds(e,t,n),Qu=r):ds(e,t,n);break;default:ds(e,t,n)}}function ps(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Yu),t.forEach((function(t){var r=Cl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ms(e,t){var r=t.deletions;if(null!==r)for(var o=0;o<r.length;o++){var i=r[o];try{var a=e,u=t,s=u;e:for(;null!==s;){switch(s.tag){case 5:ls=s.stateNode,cs=!1;break e;case 3:case 4:ls=s.stateNode.containerInfo,cs=!0;break e}s=s.return}if(null===ls)throw Error(n(160));fs(a,u,i),ls=null,cs=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(e){El(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)hs(t,e),t=t.sibling}function hs(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ms(t,e),vs(e),4&o){try{ts(3,e,e.return),ns(3,e)}catch(t){El(e,e.return,t)}try{ts(5,e,e.return)}catch(t){El(e,e.return,t)}}break;case 1:ms(t,e),vs(e),512&o&&null!==r&&Ju(r,r.return);break;case 5:if(ms(t,e),vs(e),512&o&&null!==r&&Ju(r,r.return),32&e.flags){var i=e.stateNode;try{le(i,"")}catch(t){El(e,e.return,t)}}if(4&o&&null!=(i=e.stateNode)){var a=e.memoizedProps,u=null!==r?r.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===a.type&&null!=a.name&&K(i,a),ve(s,u);var c=ve(s,a);for(u=0;u<l.length;u+=2){var d=l[u],f=l[u+1];"style"===d?pe(i,f):"dangerouslySetInnerHTML"===d?se(i,f):"children"===d?le(i,f):v(i,d,f,c)}switch(s){case"input":Q(i,a);break;case"textarea":ne(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var m=a.value;null!=m?Z(i,!!a.multiple,m,!1):p!==!!a.multiple&&(null!=a.defaultValue?Z(i,!!a.multiple,a.defaultValue,!0):Z(i,!!a.multiple,a.multiple?[]:"",!1))}i[co]=a}catch(t){El(e,e.return,t)}}break;case 6:if(ms(t,e),vs(e),4&o){if(null===e.stateNode)throw Error(n(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){El(e,e.return,t)}}break;case 3:if(ms(t,e),vs(e),4&o&&null!==r&&r.memoizedState.isDehydrated)try{$t(t.containerInfo)}catch(t){El(e,e.return,t)}break;case 4:default:ms(t,e),vs(e);break;case 13:ms(t,e),vs(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Bs=Ke())),4&o&&ps(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Qu=(c=Qu)||d,ms(t,e),Qu=c):ms(t,e),vs(e),8192&o){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Xu=e,d=e.child;null!==d;){for(f=Xu=d;null!==Xu;){switch(m=(p=Xu).child,p.tag){case 0:case 11:case 14:case 15:ts(4,p,p.return);break;case 1:Ju(p,p.return);var h=p.stateNode;if("function"==typeof h.componentWillUnmount){o=p,r=p.return;try{t=o,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){El(o,r,e)}}break;case 5:Ju(p,p.return);break;case 22:if(null!==p.memoizedState){ws(f);continue}}null!==m?(m.return=p,Xu=m):ws(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,c?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(s=f.stateNode,u=null!=(l=f.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=fe("display",u))}catch(t){El(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){El(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ms(t,e),vs(e),4&o&&ps(e);case 21:}}function vs(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(is(r)){var o=r;break e}r=r.return}throw Error(n(160))}switch(o.tag){case 5:var i=o.stateNode;32&o.flags&&(le(i,""),o.flags&=-33),ss(e,as(e),i);break;case 3:case 4:var a=o.stateNode.containerInfo;us(e,as(e),a);break;default:throw Error(n(161))}}catch(t){El(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function gs(e,t,n){Xu=e,ys(e)}function ys(e,t,n){for(var r=!!(1&e.mode);null!==Xu;){var o=Xu,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Ku;if(!a){var u=o.alternate,s=null!==u&&null!==u.memoizedState||Qu;u=Ku;var l=Qu;if(Ku=a,(Qu=s)&&!l)for(Xu=o;null!==Xu;)s=(a=Xu).child,22===a.tag&&null!==a.memoizedState?xs(o):null!==s?(s.return=a,Xu=s):xs(o);for(;null!==i;)Xu=i,ys(i),i=i.sibling;Xu=o,Ku=u,Qu=l}bs(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Xu=i):bs(e)}}function bs(e){for(;null!==Xu;){var t=Xu;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Qu||ns(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Qu)if(null===r)o.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:mi(t.type,r.memoizedProps);o.componentDidUpdate(i,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Mi(t,a,o);break;case 3:var u=t.updateQueue;if(null!==u){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Mi(t,u,r)}break;case 5:var s=t.stateNode;if(null===r&&4&t.flags){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&$t(f)}}}break;default:throw Error(n(163))}Qu||512&t.flags&&rs(t)}catch(e){El(t,t.return,e)}}if(t===e){Xu=null;break}if(null!==(r=t.sibling)){r.return=t.return,Xu=r;break}Xu=t.return}}function ws(e){for(;null!==Xu;){var t=Xu;if(t===e){Xu=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Xu=n;break}Xu=t.return}}function xs(e){for(;null!==Xu;){var t=Xu;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ns(4,t)}catch(e){El(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){El(t,o,e)}}var i=t.return;try{rs(t)}catch(e){El(t,i,e)}break;case 5:var a=t.return;try{rs(t)}catch(e){El(t,a,e)}}}catch(e){El(t,t.return,e)}if(t===e){Xu=null;break}var u=t.sibling;if(null!==u){u.return=t.return,Xu=u;break}Xu=t.return}}var _s,Es=Math.ceil,Ss=g.ReactCurrentDispatcher,As=g.ReactCurrentOwner,ks=g.ReactCurrentBatchConfig,Cs=0,Is=null,Ps=null,Rs=0,Os=0,Ts=_o(0),Ns=0,js=null,qs=0,Ds=0,Ms=0,Ls=null,$s=null,Bs=0,Vs=1/0,zs=null,Fs=!1,Us=null,Gs=null,Ws=!1,Hs=null,Ks=0,Qs=0,Ys=null,Xs=-1,Js=0;function Zs(){return 6&Cs?Ke():-1!==Xs?Xs:Xs=Ke()}function el(e){return 1&e.mode?2&Cs&&0!==Rs?Rs&-Rs:null!==pi.transition?(0===Js&&(Js=ft()),Js):(0!==(e=vt)||(e=void 0===(e=window.event)?16:Ht(e.type)),e):1}function tl(e,t,r,o){if(50<Qs)throw Qs=0,Ys=null,Error(n(185));mt(e,r,o),(!(2&Cs)||e!==Is)&&(e===Is&&(!(2&Cs)&&(Ds|=r),4===Ns&&al(e,Rs)),nl(e,o),1===r&&0===Cs&&!(1&t.mode)&&(Vs=Ke()+500,Mo&&Bo()))}function nl(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-rt(i),u=1<<a,s=o[a];-1===s?(!(u&n)||!!(u&r))&&(o[a]=ct(u,t)):s<=t&&(e.expiredLanes|=u),i&=~u}}(e,t);var r=lt(e,e===Is?Rs:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Mo=!0,$o(e)}(ul.bind(null,e)):$o(ul.bind(null,e)),ro((function(){!(6&Cs)&&Bo()})),n=null;else{switch(gt(r)){case 1:n=Ye;break;case 4:n=Xe;break;case 16:default:n=Je;break;case 536870912:n=et}n=Il(n,rl.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function rl(e,t){if(Xs=-1,Js=0,6&Cs)throw Error(n(327));var r=e.callbackNode;if(xl()&&e.callbackNode!==r)return null;var o=lt(e,e===Is?Rs:0);if(0===o)return null;if(30&o||o&e.expiredLanes||t)t=hl(e,o);else{t=o;var i=Cs;Cs|=2;var a=pl();for((Is!==e||Rs!==t)&&(zs=null,Vs=Ke()+500,dl(e,t));;)try{gl();break}catch(t){fl(e,t)}wi(),Ss.current=a,Cs=i,null!==Ps?t=0:(Is=null,Rs=0,t=Ns)}if(0!==t){if(2===t&&(0!==(i=dt(e))&&(o=i,t=ol(e,i))),1===t)throw r=js,dl(e,0),al(e,o),nl(e,Ke()),r;if(6===t)al(e,o);else{if(i=e.current.alternate,!(30&o||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!or(i(),o))return!1}catch{return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=hl(e,o),2===t&&(a=dt(e),0!==a&&(o=a,t=ol(e,a))),1!==t)))throw r=js,dl(e,0),al(e,o),nl(e,Ke()),r;switch(e.finishedWork=i,e.finishedLanes=o,t){case 0:case 1:throw Error(n(345));case 2:case 5:wl(e,$s,zs);break;case 3:if(al(e,o),(130023424&o)===o&&10<(t=Bs+500-Ke())){if(0!==lt(e,0))break;if(((i=e.suspendedLanes)&o)!==o){Zs(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=eo(wl.bind(null,e,$s,zs),t);break}wl(e,$s,zs);break;case 4:if(al(e,o),(4194240&o)===o)break;for(t=e.eventTimes,i=-1;0<o;){var u=31-rt(o);a=1<<u,(u=t[u])>i&&(i=u),o&=~a}if(o=i,10<(o=(120>(o=Ke()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Es(o/1960))-o)){e.timeoutHandle=eo(wl.bind(null,e,$s,zs),o);break}wl(e,$s,zs);break;default:throw Error(n(329))}}}return nl(e,Ke()),e.callbackNode===r?rl.bind(null,e):null}function ol(e,t){var n=Ls;return e.current.memoizedState.isDehydrated&&(dl(e,t).flags|=256),2!==(e=hl(e,t))&&(t=$s,$s=n,null!==t&&il(t)),e}function il(e){null===$s?$s=e:$s.push.apply($s,e)}function al(e,t){for(t&=~Ms,t&=~Ds,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-rt(t),r=1<<n;e[n]=-1,t&=~r}}function ul(e){if(6&Cs)throw Error(n(327));xl();var t=lt(e,0);if(!(1&t))return nl(e,Ke()),null;var r=hl(e,t);if(0!==e.tag&&2===r){var o=dt(e);0!==o&&(t=o,r=ol(e,o))}if(1===r)throw r=js,dl(e,0),al(e,t),nl(e,Ke()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wl(e,$s,zs),nl(e,Ke()),null}function sl(e,t){var n=Cs;Cs|=1;try{return e(t)}finally{0===(Cs=n)&&(Vs=Ke()+500,Mo&&Bo())}}function ll(e){null!==Hs&&0===Hs.tag&&!(6&Cs)&&xl();var t=Cs;Cs|=1;var n=ks.transition,r=vt;try{if(ks.transition=null,vt=1,e)return e()}finally{vt=r,ks.transition=n,!(6&(Cs=t))&&Bo()}}function cl(){Os=Ts.current,Eo(Ts)}function dl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,to(n)),null!==Ps)for(n=Ps.return;null!==n;){var r=n;switch(Zo(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Oo();break;case 3:ra(),Eo(Co),Eo(ko),la();break;case 5:ia(r);break;case 4:ra();break;case 13:case 19:Eo(aa);break;case 10:xi(r.type._context);break;case 22:case 23:cl()}n=n.return}if(Is=e,Ps=e=Tl(e.current,null),Rs=Os=t,Ns=0,js=null,Ms=Ds=qs=0,$s=Ls=null,null!==Ai){for(t=0;t<Ai.length;t++)if(null!==(r=(n=Ai[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Ai=null}return e}function fl(e,t){for(;;){var r=Ps;try{if(wi(),ca.current=ou,va){for(var o=pa.memoizedState;null!==o;){var i=o.queue;null!==i&&(i.pending=null),o=o.next}va=!1}if(fa=0,ha=ma=pa=null,ga=!1,ya=0,As.current=null,null===r||null===r.return){Ns=1,js=t,Ps=null;break}e:{var a=e,u=r.return,s=r,l=t;if(t=Rs,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l,d=s,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=hu(u);if(null!==m){m.flags&=-257,vu(m,u,s,0,t),1&m.mode&&mu(a,c,t),l=c;var h=(t=m).updateQueue;if(null===h){var v=new Set;v.add(l),t.updateQueue=v}else h.add(l);break e}if(!(1&t)){mu(a,c,t),ml();break e}l=Error(n(426))}else if(ni&&1&s.mode){var g=hu(u);if(null!==g){!(65536&g.flags)&&(g.flags|=256),vu(g,u,s,0,t),fi(su(l,s));break e}}a=l=su(l,s),4!==Ns&&(Ns=2),null===Ls?Ls=[a]:Ls.push(a),a=u;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,qi(a,fu(0,l,t));break e;case 1:s=l;var y=a.type,b=a.stateNode;if(!(128&a.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Gs&&Gs.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,qi(a,pu(a,s,t));break e}}a=a.return}while(null!==a)}bl(r)}catch(e){t=e,Ps===r&&null!==r&&(Ps=r=r.return);continue}break}}function pl(){var e=Ss.current;return Ss.current=ou,null===e?ou:e}function ml(){(0===Ns||3===Ns||2===Ns)&&(Ns=4),null===Is||!(268435455&qs)&&!(268435455&Ds)||al(Is,Rs)}function hl(e,t){var r=Cs;Cs|=2;var o=pl();for((Is!==e||Rs!==t)&&(zs=null,dl(e,t));;)try{vl();break}catch(t){fl(e,t)}if(wi(),Cs=r,Ss.current=o,null!==Ps)throw Error(n(261));return Is=null,Rs=0,Ns}function vl(){for(;null!==Ps;)yl(Ps)}function gl(){for(;null!==Ps&&!We();)yl(Ps)}function yl(e){var t=_s(e.alternate,e,Os);e.memoizedProps=e.pendingProps,null===t?bl(e):Ps=t,As.current=null}function bl(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Hu(n,t)))return n.flags&=32767,void(Ps=n);if(null===e)return Ns=6,void(Ps=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Wu(n,t,Os)))return void(Ps=n);if(null!==(t=t.sibling))return void(Ps=t);Ps=t=e}while(null!==t);0===Ns&&(Ns=5)}function wl(e,t,r){var o=vt,i=ks.transition;try{ks.transition=null,vt=1,function(e,t,r,o){do{xl()}while(null!==Hs);if(6&Cs)throw Error(n(327));r=e.finishedWork;var i=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-rt(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Is&&(Ps=Is=null,Rs=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Ws||(Ws=!0,Il(Je,(function(){return xl(),null}))),a=!!(15990&r.flags),15990&r.subtreeFlags||a){a=ks.transition,ks.transition=null;var u=vt;vt=1;var s=Cs;Cs|=4,As.current=null,function(e,t){if(Xr=Vt,cr(e=lr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(o&&0!==o.rangeCount){r=o.anchorNode;var i=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var u=0,s=-1,l=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var m;f!==r||0!==i&&3!==f.nodeType||(s=u+i),f!==a||0!==o&&3!==f.nodeType||(l=u+o),3===f.nodeType&&(u+=f.nodeValue.length),null!==(m=f.firstChild);)p=f,f=m;for(;;){if(f===e)break t;if(p===r&&++c===i&&(s=u),p===a&&++d===o&&(l=u),null!==(m=f.nextSibling))break;p=(f=p).parentNode}f=m}r=-1===s||-1===l?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Jr={focusedElem:e,selectionRange:r},Vt=!1,Xu=t;null!==Xu;)if(e=(t=Xu).child,1028&t.subtreeFlags&&null!==e)e.return=t,Xu=e;else for(;null!==Xu;){t=Xu;try{var h=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var v=h.memoizedProps,g=h.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:mi(t.type,v),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(n(163))}}catch(e){El(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Xu=e;break}Xu=t.return}h=es,es=!1}(e,r),hs(r,e),dr(Jr),Vt=!!Xr,Jr=Xr=null,e.current=r,gs(r),He(),Cs=s,vt=u,ks.transition=a}else e.current=r;if(Ws&&(Ws=!1,Hs=e,Ks=i),a=e.pendingLanes,0===a&&(Gs=null),function(e){if(nt&&"function"==typeof nt.onCommitFiberRoot)try{nt.onCommitFiberRoot(tt,e,void 0,!(128&~e.current.flags))}catch{}}(r.stateNode),nl(e,Ke()),null!==t)for(o=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],o(i.value,{componentStack:i.stack,digest:i.digest});if(Fs)throw Fs=!1,e=Us,Us=null,e;!!(1&Ks)&&0!==e.tag&&xl(),a=e.pendingLanes,1&a?e===Ys?Qs++:(Qs=0,Ys=e):Qs=0,Bo()}(e,t,r,o)}finally{ks.transition=i,vt=o}return null}function xl(){if(null!==Hs){var e=gt(Ks),t=ks.transition,r=vt;try{if(ks.transition=null,vt=16>e?16:e,null===Hs)var o=!1;else{if(e=Hs,Hs=null,Ks=0,6&Cs)throw Error(n(331));var i=Cs;for(Cs|=4,Xu=e.current;null!==Xu;){var a=Xu,u=a.child;if(16&Xu.flags){var s=a.deletions;if(null!==s){for(var l=0;l<s.length;l++){var c=s[l];for(Xu=c;null!==Xu;){var d=Xu;switch(d.tag){case 0:case 11:case 15:ts(8,d,a)}var f=d.child;if(null!==f)f.return=d,Xu=f;else for(;null!==Xu;){var p=(d=Xu).sibling,m=d.return;if(os(d),d===c){Xu=null;break}if(null!==p){p.return=m,Xu=p;break}Xu=m}}}var h=a.alternate;if(null!==h){var v=h.child;if(null!==v){h.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(null!==v)}}Xu=a}}if(2064&a.subtreeFlags&&null!==u)u.return=a,Xu=u;else e:for(;null!==Xu;){if(2048&(a=Xu).flags)switch(a.tag){case 0:case 11:case 15:ts(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Xu=y;break e}Xu=a.return}}var b=e.current;for(Xu=b;null!==Xu;){var w=(u=Xu).child;if(2064&u.subtreeFlags&&null!==w)w.return=u,Xu=w;else e:for(u=b;null!==Xu;){if(2048&(s=Xu).flags)try{switch(s.tag){case 0:case 11:case 15:ns(9,s)}}catch(e){El(s,s.return,e)}if(s===u){Xu=null;break e}var x=s.sibling;if(null!==x){x.return=s.return,Xu=x;break e}Xu=s.return}}if(Cs=i,Bo(),nt&&"function"==typeof nt.onPostCommitFiberRoot)try{nt.onPostCommitFiberRoot(tt,e)}catch{}o=!0}return o}finally{vt=r,ks.transition=t}}return!1}function _l(e,t,n){e=Ni(e,t=fu(0,t=su(n,t),1),1),t=Zs(),null!==e&&(mt(e,1,t),nl(e,t))}function El(e,t,n){if(3===e.tag)_l(e,e,n);else for(;null!==t;){if(3===t.tag){_l(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Gs||!Gs.has(r))){t=Ni(t,e=pu(t,e=su(n,e),1),1),e=Zs(),null!==t&&(mt(t,1,e),nl(t,e));break}}t=t.return}}function Sl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Zs(),e.pingedLanes|=e.suspendedLanes&n,Is===e&&(Rs&n)===n&&(4===Ns||3===Ns&&(130023424&Rs)===Rs&&500>Ke()-Bs?dl(e,0):Ms|=n),nl(e,t)}function Al(e,t){0===t&&(1&e.mode?(t=ut,!(130023424&(ut<<=1))&&(ut=4194304)):t=1);var n=Zs();null!==(e=Ii(e,t))&&(mt(e,t,n),nl(e,n))}function kl(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Al(e,n)}function Cl(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(n(314))}null!==o&&o.delete(t),Al(e,r)}function Il(e,t){return Ue(e,t)}function Pl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rl(e,t,n,r){return new Pl(e,t,n,r)}function Ol(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Tl(e,t){var n=e.alternate;return null===n?((n=Rl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nl(e,t,r,o,i,a){var u=2;if(o=e,"function"==typeof e)Ol(e)&&(u=1);else if("string"==typeof e)u=5;else e:switch(e){case w:return jl(r.children,i,a,t);case x:u=8,i|=8;break;case _:return(e=Rl(12,r,t,2|i)).elementType=_,e.lanes=a,e;case k:return(e=Rl(13,r,t,i)).elementType=k,e.lanes=a,e;case C:return(e=Rl(19,r,t,i)).elementType=C,e.lanes=a,e;case R:return ql(r,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case E:u=10;break e;case S:u=9;break e;case A:u=11;break e;case I:u=14;break e;case P:u=16,o=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Rl(u,r,t,i)).elementType=e,t.type=o,t.lanes=a,t}function jl(e,t,n,r){return(e=Rl(7,e,r,t)).lanes=n,e}function ql(e,t,n,r){return(e=Rl(22,e,r,t)).elementType=R,e.lanes=n,e.stateNode={isHidden:!1},e}function Dl(e,t,n){return(e=Rl(6,e,null,t)).lanes=n,e}function Ml(e,t,n){return(t=Rl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ll(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pt(0),this.expirationTimes=pt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function $l(e,t,n,r,o,i,a,u,s){return e=new Ll(e,t,n,u,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Rl(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ri(i),e}function Bl(e){if(!e)return Ao;e:{if($e(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ro(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Ro(r))return No(e,r,t)}return t}function Vl(e,t,n,r,o,i,a,u,s){return(e=$l(n,r,!0,e,0,i,0,u,s)).context=Bl(null),n=e.current,(i=Ti(r=Zs(),o=el(n))).callback=t??null,Ni(n,i,o),e.current.lanes=o,mt(e,o,r),nl(e,r),e}function zl(e,t,n,r){var o=t.current,i=Zs(),a=el(o);return n=Bl(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ti(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ni(o,t,a))&&(tl(e,o,a,i),ji(e,o,a)),a}function Fl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Ul(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Gl(e,t){Ul(e,t),(e=e.alternate)&&Ul(e,t)}_s=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Co.current)yu=!0;else{if(!(e.lanes&r||128&t.flags))return yu=!1,function(e,t,n){switch(t.tag){case 3:Iu(t),di();break;case 5:oa(t);break;case 1:Ro(t.type)&&jo(t);break;case 4:na(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;So(hi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(So(aa,1&aa.current),t.flags|=128,null):n&t.child.childLanes?Du(e,t,n):(So(aa,1&aa.current),null!==(e=Fu(e,t,n))?e.sibling:null);So(aa,1&aa.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Vu(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),So(aa,aa.current),r)break;return null;case 22:case 23:return t.lanes=0,Eu(e,t,n)}return Fu(e,t,n)}(e,t,r);yu=!!(131072&e.flags)}else yu=!1,ni&&1048576&t.flags&&Xo(t,Uo,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;zu(e,t),e=t.pendingProps;var i=Po(t,ko.current);Ei(t,r),i=_a(null,t,o,e,i,r);var a=Ea();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ro(o)?(a=!0,jo(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Ri(t),i.updater=Bi,t.stateNode=i,i._reactInternals=t,Ui(t,o,e,r),t=Cu(null,t,o,!0,a,r)):(t.tag=0,ni&&a&&Jo(t),bu(null,t,i,r),t=t.child),t;case 16:o=t.elementType;e:{switch(zu(e,t),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Ol(e)?1:0;if(null!=e){if((e=e.$$typeof)===A)return 11;if(e===I)return 14}return 2}(o),e=mi(o,e),i){case 0:t=Au(null,t,o,e,r);break e;case 1:t=ku(null,t,o,e,r);break e;case 11:t=wu(null,t,o,e,r);break e;case 14:t=xu(null,t,o,mi(o.type,e),r);break e}throw Error(n(306,o,""))}return t;case 0:return o=t.type,i=t.pendingProps,Au(e,t,o,i=t.elementType===o?i:mi(o,i),r);case 1:return o=t.type,i=t.pendingProps,ku(e,t,o,i=t.elementType===o?i:mi(o,i),r);case 3:e:{if(Iu(t),null===e)throw Error(n(387));o=t.pendingProps,i=(a=t.memoizedState).element,Oi(e,t),Di(t,o,null,r);var u=t.memoizedState;if(o=u.element,a.isDehydrated){if(a={element:o,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Pu(e,t,o,r,i=su(Error(n(423)),t));break e}if(o!==i){t=Pu(e,t,o,r,i=su(Error(n(424)),t));break e}for(ti=ao(t.stateNode.containerInfo.firstChild),ei=t,ni=!0,ri=null,r=Yi(t,null,o,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(di(),o===i){t=Fu(e,t,r);break e}bu(e,t,o,r)}t=t.child}return t;case 5:return oa(t),null===e&&ui(t),o=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,u=i.children,Zr(o,i)?u=null:null!==a&&Zr(o,a)&&(t.flags|=32),Su(e,t),bu(e,t,u,r),t.child;case 6:return null===e&&ui(t),null;case 13:return Du(e,t,r);case 4:return na(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Qi(t,null,o,r):bu(e,t,o,r),t.child;case 11:return o=t.type,i=t.pendingProps,wu(e,t,o,i=t.elementType===o?i:mi(o,i),r);case 7:return bu(e,t,t.pendingProps,r),t.child;case 8:case 12:return bu(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,i=t.pendingProps,a=t.memoizedProps,u=i.value,So(hi,o._currentValue),o._currentValue=u,null!==a)if(or(a.value,u)){if(a.children===i.children&&!Co.current){t=Fu(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){u=a.child;for(var l=s.firstContext;null!==l;){if(l.context===o){if(1===a.tag){(l=Ti(-1,r&-r)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}a.lanes|=r,null!==(l=a.alternate)&&(l.lanes|=r),_i(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(10===a.tag)u=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(u=a.return))throw Error(n(341));u.lanes|=r,null!==(s=u.alternate)&&(s.lanes|=r),_i(u,r,t),u=a.sibling}else u=a.child;if(null!==u)u.return=a;else for(u=a;null!==u;){if(u===t){u=null;break}if(null!==(a=u.sibling)){a.return=u.return,u=a;break}u=u.return}a=u}bu(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps.children,Ei(t,r),o=o(i=Si(i)),t.flags|=1,bu(e,t,o,r),t.child;case 14:return i=mi(o=t.type,t.pendingProps),xu(e,t,o,i=mi(o.type,i),r);case 15:return _u(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:mi(o,i),zu(e,t),t.tag=1,Ro(o)?(e=!0,jo(t)):e=!1,Ei(t,r),zi(t,o,i),Ui(t,o,i,r),Cu(null,t,o,!0,e,r);case 19:return Vu(e,t,r);case 22:return Eu(e,t,r)}throw Error(n(156,t.tag))};var Wl="function"==typeof reportError?reportError:function(e){console.error(e)};function Hl(e){this._internalRoot=e}function Kl(e){this._internalRoot=e}function Ql(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Yl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xl(){}function Jl(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var u=o;o=function(){var e=Fl(a);u.call(e)}}zl(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Fl(a);i.call(e)}}var a=Vl(t,r,e,0,null,!1,0,"",Xl);return e._reactRootContainer=a,e[fo]=a.current,$r(8===e.nodeType?e.parentNode:e),ll(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var u=r;r=function(){var e=Fl(s);u.call(e)}}var s=$l(e,0,!1,null,0,!1,0,"",Xl);return e._reactRootContainer=s,e[fo]=s.current,$r(8===e.nodeType?e.parentNode:e),ll((function(){zl(t,s,n,r)})),s}(n,t,e,o,r);return Fl(a)}Kl.prototype.render=Hl.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));zl(e,t,null,null)},Kl.prototype.unmount=Hl.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;ll((function(){zl(null,e,null,null)})),t[fo]=null}},Kl.prototype.unstable_scheduleHydration=function(e){if(e){var t=xt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rt.length&&0!==t&&t<Rt[n].priority;n++);Rt.splice(n,0,e),0===n&&jt(e)}},yt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=st(t.pendingLanes);0!==n&&(ht(t,1|n),nl(t,Ke()),!(6&Cs)&&(Vs=Ke()+500,Bo()))}break;case 13:ll((function(){var t=Ii(e,1);if(null!==t){var n=Zs();tl(t,e,1,n)}})),Gl(e,1)}},bt=function(e){if(13===e.tag){var t=Ii(e,134217728);if(null!==t)tl(t,e,134217728,Zs());Gl(e,134217728)}},wt=function(e){if(13===e.tag){var t=el(e),n=Ii(e,t);if(null!==n)tl(n,e,t,Zs());Gl(e,t)}},xt=function(){return vt},_t=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},be=function(e,t,r){switch(t){case"input":if(Q(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var i=bo(o);if(!i)throw Error(n(90));U(o),Q(o,i)}}}break;case"textarea":ne(e,r);break;case"select":null!=(t=r.value)&&Z(e,!!r.multiple,t,!1)}},Ae=sl,ke=ll;var Zl={usingClientEntryPoint:!1,Events:[go,yo,bo,Ee,Se,sl]},ec={findFiberByHostInstance:vo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},tc={bundleType:ec.bundleType,version:ec.version,rendererPackageName:ec.rendererPackageName,rendererConfig:ec.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:g.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=ze(e))?null:e.stateNode},findFiberByHostInstance:ec.findFiberByHostInstance,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var nc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nc.isDisabled&&nc.supportsFiber)try{tt=nc.inject(tc),nt=nc}catch{}}return bi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zl,bi.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ql(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:b,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},bi.createRoot=function(e,t){if(!Ql(e))throw Error(n(299));var r=!1,o="",i=Wl;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=$l(e,1,!1,null,0,r,0,o,i),e[fo]=t.current,$r(8===e.nodeType?e.parentNode:e),new Hl(t)},bi.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t)throw"function"==typeof e.render?Error(n(188)):(e=Object.keys(e).join(","),Error(n(268,e)));return e=null===(e=ze(t))?null:e.stateNode},bi.flushSync=function(e){return ll(e)},bi.hydrate=function(e,t,r){if(!Yl(t))throw Error(n(200));return Jl(null,e,t,!0,r)},bi.hydrateRoot=function(e,t,r){if(!Ql(e))throw Error(n(405));var o=null!=r&&r.hydratedSources||null,i=!1,a="",u=Wl;if(null!=r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(u=r.onRecoverableError)),t=Vl(t,null,e,1,r??null,i,0,a,u),e[fo]=t.current,$r(e),o)for(e=0;e<o.length;e++)i=(i=(r=o[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Kl(t)},bi.render=function(e,t,r){if(!Yl(t))throw Error(n(200));return Jl(null,e,t,!1,r)},bi.unmountComponentAtNode=function(e){if(!Yl(e))throw Error(n(40));return!!e._reactRootContainer&&(ll((function(){Jl(null,null,e,!1,(function(){e._reactRootContainer=null,e[fo]=null}))})),!0)},bi.unstable_batchedUpdates=sl,bi.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Yl(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Jl(e,t,r,!1,o)},bi.version="18.2.0-next-9e3b772b8-20220608",bi}function M7(){if(Y$)return G1.exports;return Y$=1,function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||"function"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),G1.exports=N7(),G1.exports}var vu=M7();const D2=py(vu),Hf=m.forwardRef(((e,t)=>{const{children:n,...r}=e,o=m.Children.toArray(n),i=o.find(L7);if(i){const e=i.props.children,n=o.map((t=>t===i?m.Children.count(e)>1?m.Children.only(null):m.isValidElement(e)?e.props.children:null:t));return m.createElement(kS,Pe({},r,{ref:t}),m.isValidElement(e)?m.cloneElement(e,void 0,n):null)}return m.createElement(kS,Pe({},r,{ref:t}),n)}));Hf.displayName="Slot";const kS=m.forwardRef(((e,t)=>{const{children:n,...r}=e;return m.isValidElement(n)?m.cloneElement(n,{...F7(r,n.props),ref:t?TE(t,n.ref):n.ref}):m.Children.count(n)>1?m.Children.only(null):null}));kS.displayName="SlotClone";const OE=({children:e})=>m.createElement(m.Fragment,null,e);function L7(e){return m.isValidElement(e)&&e.type===OE}function F7(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const B7=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],lt=B7.reduce(((e,t)=>{const n=m.forwardRef(((e,n)=>{const{asChild:r,...o}=e,i=r?Hf:t;return m.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),m.createElement(i,Pe({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function N2(e,t){e&&vu.flushSync((()=>e.dispatchEvent(t)))}function j7(e,t=(null==globalThis?void 0:globalThis.document)){const n=ys(e);m.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}const DS="dismissableLayer.update",V7="dismissableLayer.pointerDownOutside",U7="dismissableLayer.focusOutside";let X$;const z7=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xy=m.forwardRef(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:u,onDismiss:s,...l}=e,c=m.useContext(z7),[d,f]=m.useState(null),p=null!==(n=null==d?void 0:d.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,h]=m.useState({}),v=Ut(t,(e=>f(e))),g=Array.from(c.layers),[y]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),w=d?g.indexOf(d):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,_=w>=b,E=W7((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));!_||n||(null==i||i(e),null==u||u(e),e.defaultPrevented||null==s||s())}),p),S=q7((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==a||a(e),null==u||u(e),e.defaultPrevented||null==s||s())}),p);return j7((e=>{w===c.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),p),m.useEffect((()=>{if(d)return r&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(X$=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),J$(),()=>{r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=X$)}}),[d,p,r,c]),m.useEffect((()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),J$())}),[d,c]),m.useEffect((()=>{const e=()=>h({});return document.addEventListener(DS,e),()=>document.removeEventListener(DS,e)}),[]),m.createElement(lt.div,Pe({},l,{ref:v,style:{pointerEvents:x?_?"auto":"none":void 0,...e.style},onFocusCapture:et(e.onFocusCapture,S.onFocusCapture),onBlurCapture:et(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:et(e.onPointerDownCapture,E.onPointerDownCapture)}))}));function W7(e,t=(null==globalThis?void 0:globalThis.document)){const n=ys(e),r=m.useRef(!1),o=m.useRef((()=>{}));return m.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){M2(V7,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}function q7(e,t=(null==globalThis?void 0:globalThis.document)){const n=ys(e),r=m.useRef(!1);return m.useEffect((()=>{const e=e=>{e.target&&!r.current&&M2(U7,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function J$(){const e=new CustomEvent(DS);document.dispatchEvent(e)}function M2(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?N2(o,i):o.dispatchEvent(i)}const Q1="focusScope.autoFocusOnMount",Y1="focusScope.autoFocusOnUnmount",Z$={bubbles:!1,cancelable:!0},AE=m.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[u,s]=m.useState(null),l=ys(o),c=ys(i),d=m.useRef(null),f=Ut(t,(e=>s(e))),p=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect((()=>{if(r){let e=function(e){if(p.paused||!u)return;const t=e.target;u.contains(t)?d.current=t:id(d.current,{select:!0})},t=function(e){if(p.paused||!u)return;const t=e.relatedTarget;null!==t&&(u.contains(t)||id(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&id(u)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return u&&r.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,u,p.paused]),m.useEffect((()=>{if(u){tI.add(p);const e=document.activeElement;if(!u.contains(e)){const t=new CustomEvent(Q1,Z$);u.addEventListener(Q1,l),u.dispatchEvent(t),t.defaultPrevented||(G7(X7(L2(u)),{select:!0}),document.activeElement===e&&id(u))}return()=>{u.removeEventListener(Q1,l),setTimeout((()=>{const t=new CustomEvent(Y1,Z$);u.addEventListener(Y1,c),u.dispatchEvent(t),t.defaultPrevented||id(e??document.body,{select:!0}),u.removeEventListener(Y1,c),tI.remove(p)}),0)}}}),[u,l,c,p]);const h=m.useCallback((e=>{if(!n&&!r||p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=H7(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&id(i,{select:!0})):(e.preventDefault(),n&&id(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,p.paused]);return m.createElement(lt.div,Pe({tabIndex:-1},a,{ref:f,onKeyDown:h}))}));function G7(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(id(r,{select:t}),document.activeElement!==n)return}function H7(e){const t=L2(e);return[eI(t,e),eI(t.reverse(),e)]}function L2(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function eI(e,t){for(const n of e)if(!K7(n,{upTo:t}))return n}function K7(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Q7(e){return e instanceof HTMLInputElement&&"select"in e}function id(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Q7(e)&&t&&e.select()}}const tI=Y7();function Y7(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=nI(e,t),e.unshift(t)},remove(t){var n;e=nI(e,t),null===(n=e[0])||void 0===n||n.resume()}}}function nI(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function X7(e){return e.filter((e=>"A"!==e.tagName))}const Sy=m.forwardRef(((e,t)=>{var n;const{container:r=(null==globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?D2.createPortal(m.createElement(lt.div,Pe({},o,{ref:t})),r):null}));function J7(e,t){return m.useReducer(((e,n)=>t[e][n]??e),e)}const ea=e=>{const{present:t,children:n}=e,r=Z7(t),o="function"==typeof n?n({present:r.isPresent}):m.Children.only(n),i=Ut(r.ref,o.ref);return"function"==typeof n||r.isPresent?m.cloneElement(o,{ref:i}):null};function Z7(e){const[t,n]=m.useState(),r=m.useRef({}),o=m.useRef(e),i=m.useRef("none"),a=e?"mounted":"unmounted",[u,s]=J7(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect((()=>{const e=Sg(r.current);i.current="mounted"===u?e:"none"}),[u]),Uo((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=Sg(t);e?s("MOUNT"):"none"===a||"none"===(null==t?void 0:t.display)?s("UNMOUNT"):s(n&&r!==a?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,s]),Uo((()=>{if(t){const e=e=>{const n=Sg(r.current).includes(e.animationName);e.target===t&&n&&vu.flushSync((()=>s("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=Sg(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}s("ANIMATION_END")}),[t,s]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:m.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function Sg(e){return(null==e?void 0:e.animationName)||"none"}ea.displayName="Presence";let X1=0;function kE(){m.useEffect((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:rI()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:rI()),X1++,()=>{1===X1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),X1--}}),[])}function rI(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Vo=function(){return Vo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Vo.apply(this,arguments)};function DE(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function F2(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)(r||!(o in t))&&(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var sv="right-scroll-bar-position",uv="width-before-scroll-bar",e8="with-scroll-bars-hidden",t8="--removed-body-scroll-bar-size";function J1(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}function n8(e,t){var n=m.useState((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}var r8=typeof window<"u"?m.useLayoutEffect:m.useEffect,oI=new WeakMap;function B2(e,t){var n=n8(null,(function(t){return e.forEach((function(e){return J1(e,t)}))}));return r8((function(){var t=oI.get(n);if(t){var r=new Set(t),o=new Set(e),i=n.current;r.forEach((function(e){o.has(e)||J1(e,null)})),o.forEach((function(e){r.has(e)||J1(e,i)}))}oI.set(n,e)}),[e]),n}function o8(e){return e}function i8(e,t){void 0===t&&(t=o8);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}function j2(e){void 0===e&&(e={});var t=i8(null);return t.options=Vo({async:!0,ssr:!1},e),t}var V2=function(e){var t=e.sideCar,n=DE(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return m.createElement(r,Vo({},n))};function U2(e,t){return e.useMedium(t),V2}V2.isSideCarExport=!0;var z2=j2(),Z1=function(){},Ey=m.forwardRef((function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:Z1,onWheelCapture:Z1,onTouchMoveCapture:Z1}),o=r[0],i=r[1],a=e.forwardProps,u=e.children,s=e.className,l=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,h=e.inert,v=e.allowPinchZoom,g=e.as,y=void 0===g?"div":g,b=DE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=f,x=B2([n,t]),_=Vo(Vo({},b),o);return m.createElement(m.Fragment,null,c&&m.createElement(w,{sideCar:z2,removeScrollBar:l,shards:d,noIsolation:p,inert:h,setCallbacks:i,allowPinchZoom:!!v,lockRef:n}),a?m.cloneElement(m.Children.only(u),Vo(Vo({},_),{ref:x})):m.createElement(y,Vo({},_,{className:s,ref:x}),u))}));Ey.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ey.classNames={fullWidth:uv,zeroRight:sv};var a8=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function s8(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=a8();return t&&e.setAttribute("nonce",t),e}function u8(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function l8(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}var c8=function(){var e=0,t=null;return{add:function(n){0==e&&(t=s8())&&(u8(t,n),l8(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},d8=function(){var e=c8();return function(t,n){m.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])}},NE=function(){var e=d8();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},f8={left:0,top:0,right:0,gap:0},ew=function(e){return parseInt(e||"",10)||0},p8=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[ew(n),ew(r),ew(o)]},h8=function(e){if(void 0===e&&(e="margin"),typeof window>"u")return f8;var t=p8(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},m8=NE(),Th="data-scroll-locked",v8=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n .".concat(e8," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(u,"px ").concat(r,";\n }\n body[").concat(Th,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(sv," {\n right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(uv," {\n margin-right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(sv," .").concat(sv," {\n right: 0 ").concat(r,";\n }\n \n .").concat(uv," .").concat(uv," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(Th,"] {\n ").concat(t8,": ").concat(u,"px;\n }\n")},iI=function(){var e=parseInt(document.body.getAttribute(Th)||"0",10);return isFinite(e)?e:0},g8=function(){m.useEffect((function(){return document.body.setAttribute(Th,(iI()+1).toString()),function(){var e=iI()-1;e<=0?document.body.removeAttribute(Th):document.body.setAttribute(Th,e.toString())}}),[])},W2=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;g8();var i=m.useMemo((function(){return h8(o)}),[o]);return m.createElement(m8,{styles:v8(i,!t,o,n?"":"!important")})},NS=!1;if(typeof window<"u")try{var Eg=Object.defineProperty({},"passive",{get:function(){return NS=!0,!0}});window.addEventListener("test",Eg,Eg),window.removeEventListener("test",Eg,Eg)}catch{NS=!1}var wh=!!NS&&{passive:!1},y8=function(e){return"TEXTAREA"===e.tagName},q2=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!y8(e)&&"visible"===n[t])},w8=function(e){return q2(e,"overflowY")},_8=function(e){return q2(e,"overflowX")},aI=function(e,t){var n=t;do{if(typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host),G2(e,n)){var r=H2(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},b8=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},x8=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},G2=function(e,t){return"v"===e?w8(t):_8(t)},H2=function(e,t){return"v"===e?b8(t):x8(t)},S8=function(e,t){return"h"===e&&"rtl"===t?-1:1},E8=function(e,t,n,r,o){var i=S8(e,window.getComputedStyle(t).direction),a=i*r,u=n.target,s=t.contains(u),l=!1,c=a>0,d=0,f=0;do{var p=H2(e,u),m=p[0],h=p[1]-p[2]-i*m;(m||h)&&G2(e,u)&&(d+=h,f+=m),u=u.parentNode}while(!s&&u!==document.body||s&&(t.contains(u)||t===u));return(c&&(0===d||!o)||!c&&(0===f||!o))&&(l=!0),l},Cg=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},sI=function(e){return[e.deltaX,e.deltaY]},uI=function(e){return e&&"current"in e?e.current:e},C8=function(e,t){return e[0]===t[0]&&e[1]===t[1]},$8=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},I8=0,_h=[];function R8(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),o=m.useState(I8++)[0],i=m.useState((function(){return NE()}))[0],a=m.useRef(e);m.useEffect((function(){a.current=e}),[e]),m.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=F2([e.lockRef.current],(e.shards||[]).map(uI),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var u=m.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=Cg(e),u=n.current,s="deltaX"in e?e.deltaX:u[0]-i[0],l="deltaY"in e?e.deltaY:u[1]-i[1],c=e.target,d=Math.abs(s)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=aI(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=aI(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||l)&&(r.current=o),!o)return!0;var p=r.current||o;return E8(p,t,e,"h"===p?s:l,!0)}),[]),s=m.useCallback((function(e){var n=e;if(_h.length&&_h[_h.length-1]===i){var r="deltaY"in n?sI(n):Cg(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&C8(e.delta,r)}))[0];if(o&&o.should)return void(n.cancelable&&n.preventDefault());if(!o){var s=(a.current.shards||[]).map(uI).filter(Boolean).filter((function(e){return e.contains(n.target)}));(s.length>0?u(n,s[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),l=m.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),c=m.useCallback((function(e){n.current=Cg(e),r.current=void 0}),[]),d=m.useCallback((function(t){l(t.type,sI(t),t.target,u(t,e.lockRef.current))}),[]),f=m.useCallback((function(t){l(t.type,Cg(t),t.target,u(t,e.lockRef.current))}),[]);m.useEffect((function(){return _h.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",s,wh),document.addEventListener("touchmove",s,wh),document.addEventListener("touchstart",c,wh),function(){_h=_h.filter((function(e){return e!==i})),document.removeEventListener("wheel",s,wh),document.removeEventListener("touchmove",s,wh),document.removeEventListener("touchstart",c,wh)}}),[]);var p=e.removeScrollBar,h=e.inert;return m.createElement(m.Fragment,null,h?m.createElement(i,{styles:$8(o)}):null,p?m.createElement(W2,{gapMode:"margin"}):null)}const P8=U2(z2,R8);var Cy=m.forwardRef((function(e,t){return m.createElement(Ey,Vo({},e,{ref:t,sideCar:P8}))}));Cy.classNames=Ey.classNames;var T8=function(e){return typeof document>"u"?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},bh=new WeakMap,$g=new WeakMap,Ig={},tw=0,K2=function(e){return e&&(e.host||K2(e.parentNode))},O8=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=K2(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return!!e}))},A8=function(e,t,n,r){var o=O8(t,Array.isArray(e)?e:[e]);Ig[n]||(Ig[n]=new WeakMap);var i=Ig[n],a=[],u=new Set,s=new Set(o),l=function(e){!e||u.has(e)||(u.add(e),l(e.parentNode))};o.forEach(l);var c=function(e){!e||s.has(e)||Array.prototype.forEach.call(e.children,(function(e){if(u.has(e))c(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,s=(bh.get(e)||0)+1,l=(i.get(e)||0)+1;bh.set(e,s),i.set(e,l),a.push(e),1===s&&o&&$g.set(e,!0),1===l&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return c(t),u.clear(),tw++,function(){a.forEach((function(e){var t=bh.get(e)-1,o=i.get(e)-1;bh.set(e,t),i.set(e,o),t||($g.has(e)||e.removeAttribute(r),$g.delete(e)),o||e.removeAttribute(n)})),--tw||(bh=new WeakMap,bh=new WeakMap,$g=new WeakMap,Ig={})}},$y=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=T8(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),A8(r,o,n,"aria-hidden")):function(){return null}};const Q2="Dialog",[Y2,X2]=ni(Q2),[k8,gu]=Y2(Q2),D8=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,u=m.useRef(null),s=m.useRef(null),[l=!1,c]=pd({prop:r,defaultProp:o,onChange:i});return m.createElement(k8,{scope:t,triggerRef:u,contentRef:s,contentId:sd(),titleId:sd(),descriptionId:sd(),open:l,onOpenChange:c,onOpenToggle:m.useCallback((()=>c((e=>!e))),[c]),modal:a},n)},J2="DialogPortal",[N8,Z2]=Y2(J2,{forceMount:void 0}),M8=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=gu(J2,t);return m.createElement(N8,{scope:t,forceMount:n},m.Children.map(r,(e=>m.createElement(ea,{present:n||i.open},m.createElement(Sy,{asChild:!0,container:o},e)))))},MS="DialogOverlay",L8=m.forwardRef(((e,t)=>{const n=Z2(MS,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=gu(MS,e.__scopeDialog);return i.modal?m.createElement(ea,{present:r||i.open},m.createElement(F8,Pe({},o,{ref:t}))):null})),F8=m.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=gu(MS,n);return m.createElement(Cy,{as:Hf,allowPinchZoom:!0,shards:[o.contentRef]},m.createElement(lt.div,Pe({"data-state":nk(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))})),Mh="DialogContent",B8=m.forwardRef(((e,t)=>{const n=Z2(Mh,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=gu(Mh,e.__scopeDialog);return m.createElement(ea,{present:r||i.open},i.modal?m.createElement(j8,Pe({},o,{ref:t})):m.createElement(V8,Pe({},o,{ref:t})))})),j8=m.forwardRef(((e,t)=>{const n=gu(Mh,e.__scopeDialog),r=m.useRef(null),o=Ut(t,n.contentRef,r);return m.useEffect((()=>{const e=r.current;if(e)return $y(e)}),[]),m.createElement(ek,Pe({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:et(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:et(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:et(e.onFocusOutside,(e=>e.preventDefault()))}))})),V8=m.forwardRef(((e,t)=>{const n=gu(Mh,e.__scopeDialog),r=m.useRef(!1),o=m.useRef(!1);return m.createElement(ek,Pe({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,a;(null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented)||(r.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault());r.current=!1,o.current=!1},onInteractOutside:t=>{var i,a;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const u=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(u))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))})),ek=m.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,u=gu(Mh,n),s=Ut(t,m.useRef(null));return kE(),m.createElement(m.Fragment,null,m.createElement(AE,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},m.createElement(xy,Pe({role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":nk(u.open)},a,{ref:s,onDismiss:()=>u.onOpenChange(!1)}))),!1)})),tk="DialogTitle",U8=m.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=gu(tk,n);return m.createElement(lt.h2,Pe({id:o.titleId},r,{ref:t}))})),z8="DialogDescription",W8=m.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=gu(z8,n);return m.createElement(lt.p,Pe({id:o.descriptionId},r,{ref:t}))})),q8="DialogClose",G8=m.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=gu(q8,n);return m.createElement(lt.button,Pe({type:"button"},r,{ref:t,onClick:et(e.onClick,(()=>o.onOpenChange(!1)))}))}));function nk(e){return e?"open":"closed"}const H8="DialogTitleWarning",[K8,VZ]=I7(H8,{contentName:Mh,titleName:tk,docsSlug:"dialog"}),rk=D8,Iy=M8,jh=L8,Vh=B8,Dv=U8,Nv=W8,Ry=G8,Q8="AlertDialog",[Y8,UZ]=ni(Q8,[X2]),ep=X2(),X8=e=>{const{__scopeAlertDialog:t,...n}=e,r=ep(t);return m.createElement(Iy,Pe({},r,n))},J8=m.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=ep(n);return m.createElement(jh,Pe({},o,r,{ref:t}))})),ok="AlertDialogContent",[Z8,e4]=Y8(ok),t4=m.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,i=ep(n),a=Ut(t,m.useRef(null)),u=m.useRef(null);return m.createElement(K8,{contentName:ok,titleName:n4,docsSlug:"alert-dialog"},m.createElement(Z8,{scope:n,cancelRef:u},m.createElement(Vh,Pe({role:"alertdialog"},i,o,{ref:a,onOpenAutoFocus:et(o.onOpenAutoFocus,(e=>{var t;e.preventDefault(),null===(t=u.current)||void 0===t||t.focus({preventScroll:!0})})),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault()}),m.createElement(OE,null,r),!1)))})),n4="AlertDialogTitle",r4=m.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=ep(n);return m.createElement(Dv,Pe({},o,r,{ref:t}))})),o4=m.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=ep(n);return m.createElement(Nv,Pe({},o,r,{ref:t}))})),i4=m.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=ep(n);return m.createElement(Ry,Pe({},o,r,{ref:t}))})),a4="AlertDialogCancel",s4=m.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=e4(a4,n),i=ep(n),a=Ut(t,o);return m.createElement(Ry,Pe({},i,r,{ref:a}))})),u4=X8,ik=J8,ak=t4,sk=i4,uk=s4,lk=r4,ck=o4,l4=u4,dk=m.forwardRef((({className:e,...t},n)=>G.jsx(ik,{className:be("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n})));dk.displayName=ik.displayName;const c4=m.forwardRef((({className:e,...t},n)=>G.jsxs(l4,{children:[G.jsx(dk,{}),G.jsx(ak,{ref:n,className:be("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-sm",e),...t})]})));c4.displayName=ak.displayName;const d4=m.forwardRef((({className:e,...t},n)=>G.jsx(lk,{ref:n,className:be("text-lg font-semibold",e),...t})));d4.displayName=lk.displayName;const f4=m.forwardRef((({className:e,...t},n)=>G.jsx(ck,{ref:n,className:be("text-sm text-muted-foreground",e),...t})));f4.displayName=ck.displayName;const p4=m.forwardRef((({className:e,...t},n)=>G.jsx(sk,{ref:n,className:be(PE(),e),...t})));p4.displayName=sk.displayName;const h4=m.forwardRef((({className:e,...t},n)=>G.jsx(uk,{ref:n,className:be(PE({variant:"primary"}),"mt-2 sm:mt-0",e),...t})));h4.displayName=uk.displayName;const fk="Avatar",[m4,zZ]=ni(fk),[v4,pk]=m4(fk),g4=m.forwardRef(((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,i]=m.useState("idle");return m.createElement(v4,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:i},m.createElement(lt.span,Pe({},r,{ref:t})))})),y4="AvatarImage",w4=m.forwardRef(((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...i}=e,a=pk(y4,n),u=x4(r),s=ys((e=>{o(e),a.onImageLoadingStatusChange(e)}));return Uo((()=>{"idle"!==u&&s(u)}),[u,s]),"loaded"===u?m.createElement(lt.img,Pe({},i,{ref:t,src:r})):null})),_4="AvatarFallback",b4=m.forwardRef(((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,i=pk(_4,n),[a,u]=m.useState(void 0===r);return m.useEffect((()=>{if(void 0!==r){const e=window.setTimeout((()=>u(!0)),r);return()=>window.clearTimeout(e)}}),[r]),a&&"loaded"!==i.imageLoadingStatus?m.createElement(lt.span,Pe({},o,{ref:t})):null}));function x4(e){const[t,n]=m.useState("idle");return Uo((()=>{if(!e)return void n("error");let t=!0;const r=new window.Image,o=e=>()=>{t&&n(e)};return n("loading"),r.onload=o("loaded"),r.onerror=o("error"),r.src=e,()=>{t=!1}}),[e]),t}const hk=g4,mk=w4,vk=b4,gk=m.forwardRef((({className:e,...t},n)=>G.jsx(hk,{ref:n,className:be("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t})));gk.displayName=hk.displayName;const yk=m.forwardRef((({className:e,...t},n)=>G.jsx(mk,{ref:n,className:be("aspect-square size-full",e),...t})));yk.displayName=mk.displayName;const wk=m.forwardRef((({className:e,...t},n)=>G.jsx(vk,{ref:n,className:be("flex size-full items-center justify-center bg-gray-700 text-white",e),...t})));wk.displayName=vk.displayName;const S4=m.forwardRef((({className:e,...t},n)=>G.jsx("div",{ref:n,className:be("rounded-sm border bg-card text-card-foreground shadow-sm",e),...t})));S4.displayName="Card";const E4=m.forwardRef((({className:e,...t},n)=>G.jsx("div",{ref:n,className:be("flex flex-col space-y-1.5 p-6",e),...t})));E4.displayName="CardHeader";const C4=m.forwardRef((({className:e,...t},n)=>G.jsx("h3",{ref:n,className:be("text-3xl font-semibold leading-none tracking-tight",e),...t})));C4.displayName="CardTitle";const $4=m.forwardRef((({className:e,...t},n)=>G.jsx("p",{ref:n,className:be("text-sm text-muted-foreground",e),...t})));$4.displayName="CardDescription";const I4=m.forwardRef((({className:e,...t},n)=>G.jsx("div",{ref:n,className:be("p-6 pt-0",e),...t})));I4.displayName="CardContent";const R4=m.forwardRef((({className:e,...t},n)=>G.jsx("div",{ref:n,className:be("flex items-center p-6 pt-0",e),...t})));function P4(e){return"[object Object]"===Object.prototype.toString.call(e)}function lI(e){return P4(e)||Array.isArray(e)}function T4(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function ME(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;return JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every((n=>{const r=e[n],o=t[n];return"function"==typeof r?`${r}`==`${o}`:lI(r)&&lI(o)?ME(r,o):r===o}))}function cI(e){return e.concat().sort(((e,t)=>e.name>t.name?1:-1)).map((e=>e.options))}function O4(e,t){if(e.length!==t.length)return!1;const n=cI(e),r=cI(t);return n.every(((e,t)=>ME(e,r[t])))}function LE(e){return"number"==typeof e}function LS(e){return"string"==typeof e}function FE(e){return"boolean"==typeof e}function dI(e){return"[object Object]"===Object.prototype.toString.call(e)}function kn(e){return Math.abs(e)}function BE(e){return Math.sign(e)}function lv(e,t){return kn(e-t)}function A4(e,t){if(0===e||0===t||kn(e)<=kn(t))return 0;const n=lv(kn(e),kn(t));return kn(n/e)}function vv(e){return gv(e).map(Number)}function hs(e){return e[Mv(e)]}function Mv(e){return Math.max(0,e.length-1)}function jE(e,t){return t===Mv(e)}function fI(e,t=0){return Array.from(Array(e),((e,n)=>t+n))}function gv(e){return Object.keys(e)}function _k(e,t){return[e,t].reduce(((e,t)=>(gv(t).forEach((n=>{const r=e[n],o=t[n],i=dI(r)&&dI(o);e[n]=i?_k(r,o):o})),e)),{})}function bk(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function k4(e,t){const n={start:function(){return 0},center:function(e){return r(e)/2},end:r};function r(e){return t-e}return{measure:function(r,o){return LS(e)?n[e](r):e(t,r,o)}}}function yv(){let e=[];const t={add:function(n,r,o,i={passive:!0}){let a;if("addEventListener"in n)n.addEventListener(r,o,i),a=()=>n.removeEventListener(r,o,i);else{const e=n;e.addListener(o),a=()=>e.removeListener(o)}return e.push(a),t},clear:function(){e=e.filter((e=>e()))}};return t}function D4(e,t,n,r){const o=yv(),i=1e3/60;let a=null,u=0,s=0;function l(e){if(!s)return;a||(a=e);const o=e-a;for(a=e,u+=o;u>=i;)n(),u-=i;const c=kn(u/i);r(c),s&&t.requestAnimationFrame(l)}function c(){t.cancelAnimationFrame(s),a=null,u=0,s=0}return{init:function(){o.add(e,"visibilitychange",(()=>{e.hidden&&(a=null,u=0)}))},destroy:function(){c(),o.clear()},start:function(){s||(s=t.requestAnimationFrame(l))},stop:c,update:n,render:r}}function N4(e,t){const n="y"===e?"y":"x";return{scroll:n,cross:"y"===e?"x":"y",startEdge:"y"===n?"top":"rtl"===t?"right":"left",endEdge:"y"===n?"bottom":"rtl"===t?"left":"right",measureSize:function(e){const{width:t,height:r}=e;return"x"===n?t:r}}}function Kf(e=0,t=0){const n=kn(e-t);function r(t){return t<e}function o(e){return e>t}function i(e){return r(e)||o(e)}return{length:n,max:t,min:e,constrain:function(n){return i(n)?r(n)?e:t:n},reachedAny:i,reachedMax:o,reachedMin:r,removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function xk(e,t,n){const{constrain:r}=Kf(0,e),o=e+1;let i=a(t);function a(e){return n?kn((o+e)%o):r(e)}function u(){return i}function s(){return xk(e,u(),n)}const l={get:u,set:function(e){return i=a(e),l},add:function(e){return s().set(u()+e)},clone:s};return l}function M4(e){const t="rtl"===e?-1:1;return{apply:function(e){return e*t}}}function L4(e,t,n,r,o,i,a,u,s,l,c,d,f,p,m,h,v,g,y,b){const{cross:w}=e,x=["INPUT","SELECT","TEXTAREA"],_={passive:!1},E=yv(),S=yv(),A=Kf(50,225).constrain(m.measure(20)),k={mouse:300,touch:400},C={mouse:500,touch:600},I=h?43:25;let P=!1,R=0,O=0,T=!1,N=!1,j=!1,q=!1;function D(e){const n=a.readPoint(e),r=a.readPoint(e,w),o=lv(n,R),u=lv(r,O);if(!(N||q||e.cancelable&&(N=o>u,N)))return M(e);const l=a.pointerMove(e);o>v&&(j=!0),c.useFriction(.3).useDuration(1),s.start(),i.add(t.apply(l)),e.preventDefault()}function M(e){const n=d.byDistance(0,!1).index!==f.get(),r=a.pointerUp(e)*(h?C:k)[q?"mouse":"touch"],o=function(e,t){const n=f.add(-1*BE(e)),r=d.byDistance(e,!h).distance;return h||kn(e)<A?r:g&&t?.5*r:d.byIndex(n.get(),0).distance}(t.apply(r),n),i=A4(r,o),u=I-10*i,s=y+i/50;N=!1,T=!1,S.clear(),c.useDuration(u).useFriction(s),l.distance(o,!h),q=!1,p.emit("pointerUp")}function L(e){j&&(e.stopPropagation(),e.preventDefault())}return{init:function(e){if(!b)return;function t(t){(FE(b)||b(e,t))&&function(e){const t=bk(e,o);q=t,(!t||0===e.button)&&(function(e){const t=e.nodeName||"";return x.includes(t)}(e.target)||(j=h&&t&&!e.buttons&&P,P=lv(i.get(),u.get())>=2,T=!0,a.pointerDown(e),c.useFriction(0).useDuration(0),i.set(u),function(){const e=q?r:n;S.add(e,"touchmove",D,_).add(e,"touchend",M).add(e,"mousemove",D,_).add(e,"mouseup",M)}(),R=a.readPoint(e),O=a.readPoint(e,w),p.emit("pointerDown")))}(t)}const s=n;E.add(s,"dragstart",(e=>e.preventDefault()),_).add(s,"touchmove",(()=>{}),_).add(s,"touchend",(()=>{})).add(s,"touchstart",t).add(s,"mousedown",t).add(s,"touchcancel",M).add(s,"contextmenu",M).add(s,"click",L,!0)},pointerDown:function(){return T},destroy:function(){E.clear(),S.clear()}}}function F4(e,t){let n,r;function o(e){return e.timeStamp}function i(n,r){const o="client"+("x"===(r||e.scroll)?"X":"Y");return(bk(n,t)?n:n.touches[0])[o]}return{pointerDown:function(e){return n=e,r=e,i(e)},pointerMove:function(e){const t=i(e)-i(r),a=o(e)-o(n)>170;return r=e,a&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;const t=i(r)-i(n),a=o(e)-o(n),u=o(e)-o(r)>170,s=t/a;return a&&!u&&kn(s)>.1?s:0},readPoint:i}}function B4(){return{measure:function(e){const{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:o}=e;return{top:t,right:n+r,bottom:t+o,left:n,width:r,height:o}}}}function j4(e){return{measure:function(t){return e*(t/100)}}}function V4(e,t,n,r,o,i,a){let u,s,l=[],c=!1;function d(e){return o.measureSize(a.measure(e))}return{init:function(o){i&&(s=d(e),l=r.map(d),u=new ResizeObserver((a=>{c||(FE(i)||i(o,a))&&function(i){for(const a of i){const i=a.target===e,u=r.indexOf(a.target),c=i?s:l[u];if(kn(d(i?e:r[u])-c)>=.5){n.requestAnimationFrame((()=>{o.reInit(),t.emit("resize")}));break}}}(a)})),[e].concat(r).forEach((e=>u.observe(e))))},destroy:function(){u&&u.disconnect(),c=!0}}}function U4(e,t,n,r,o){let i=0,a=0,u=r,s=o,l=e.get(),c=0;function d(e){return u=e,p}function f(e){return s=e,p}const p={direction:function(){return a},duration:function(){return u},velocity:function(){return i},seek:function(){const t=n.get()-e.get();let r=0;return!u?(i=0,e.set(n),r=t):(i+=t/u,i*=s,l+=i,e.add(i),r=l-c),a=BE(r),c=l,p},settled:function(){return kn(n.get()-t.get())<.001},useBaseFriction:function(){return f(o)},useBaseDuration:function(){return d(r)},useFriction:f,useDuration:d};return p}function z4(e,t,n,r,o){const i=o.measure(10),a=o.measure(50),u=Kf(.1,.99);let s=!1;return{constrain:function(o){if(s||!e.reachedAny(n.get())||!e.reachedAny(t.get()))return;const l=e.reachedMin(t.get())?"min":"max",c=kn(e[l]-t.get()),d=n.get()-t.get(),f=u.constrain(c/a);n.subtract(d*f),!o&&kn(d)<i&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())},toggleActive:function(e){s=!e}}}function W4(e,t,n,r,o){const i=Kf(-t+e,0),a=n.map(((e,t)=>{const{min:r,max:o}=i,a=i.constrain(e),u=!t,l=jE(n,t);return u?o:l||s(r,a)?r:s(o,a)?o:a})).map((e=>parseFloat(e.toFixed(3)))),u=function(){const e=a[0],t=hs(a),n=a.lastIndexOf(e),r=a.indexOf(t)+1;return Kf(n,r)}();function s(e,t){return lv(e,t)<1}return{snapsContained:function(){if(t<=e+o)return[i.max];if("keepSnaps"===r)return a;const{min:n,max:s}=u;return a.slice(n,s)}(),scrollContainLimit:u}}function q4(e,t,n){const r=t[0];return{limit:Kf(n?r-e:hs(t),r)}}function G4(e,t,n,r){const o=t.min+.1,i=t.max+.1,{reachedMin:a,reachedMax:u}=Kf(o,i);return{loop:function(t){if(!function(e){return 1===e?u(n.get()):-1===e&&a(n.get())}(t))return;const o=e*(-1*t);r.forEach((e=>e.add(o)))}}}function H4(e){const{max:t,length:n}=e;return{get:function(e){return n?(e-t)/-n:0}}}function K4(e,t,n,r,o){const{startEdge:i,endEdge:a}=e,{groupSlides:u}=o,s=u(r).map((e=>hs(e)[a]-e[0][i])).map(kn).map(t.measure),l=r.map((e=>n[i]-e[i])).map((e=>-kn(e))),c=u(l).map((e=>e[0])).map(((e,t)=>e+s[t]));return{snaps:l,snapsAligned:c}}function Q4(e,t,n,r,o,i){const{groupSlides:a}=o,{min:u,max:s}=r;return{slideRegistry:function(){const r=a(i),o=!e||"keepSnaps"===t;return 1===n.length?[i]:o?r:r.slice(u,s).map(((e,t,n)=>{const r=!t,o=jE(n,t);if(r){return fI(hs(n[0])+1)}if(o){return fI(Mv(i)-hs(n)[0]+1,hs(n)[0])}return e}))}()}}function Y4(e,t,n,r,o){const{reachedAny:i,removeOffset:a,constrain:u}=r;function s(e){return e.concat().sort(((e,t)=>kn(e)-kn(t)))[0]}function l(t,r){const o=[t,t+n,t-n];if(!e)return o[0];if(!r)return s(o);const i=o.filter((e=>BE(e)===r));return i.length?s(i):hs(o)-n}return{byDistance:function(n,r){const s=o.get()+n,{index:c,distance:d}=function(n){const r=e?a(n):u(n),o=t.map((e=>e-r)).map((e=>l(e,0))).map(((e,t)=>({diff:e,index:t}))).sort(((e,t)=>kn(e.diff)-kn(t.diff))),{index:i}=o[0];return{index:i,distance:r}}(s),f=!e&&i(s);return!r||f?{index:c,distance:n}:{index:c,distance:n+l(t[c]-d,0)}},byIndex:function(e,n){return{index:e,distance:l(t[e]-o.get(),n)}},shortcut:l}}function X4(e,t,n,r,o,i,a){function u(o){const u=o.distance,s=o.index!==t.get();i.add(u),u&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),s&&(n.set(t.get()),t.set(o.index),a.emit("select"))}return{distance:function(e,t){u(o.byDistance(e,t))},index:function(e,n){const r=t.clone().set(e);u(o.byIndex(r.get(),n))}}}function J4(e,t,n,r,o,i){let a=0;function u(e){"Tab"===e.code&&(a=(new Date).getTime())}function s(u){i.add(u,"focus",(()=>{if((new Date).getTime()-a>10)return;e.scrollLeft=0;const i=t.indexOf(u),s=n.findIndex((e=>e.includes(i)));LE(s)&&(o.useDuration(0),r.index(s,0))}),{passive:!0,capture:!0})}return{init:function(){i.add(document,"keydown",u,!1),t.forEach(s)}}}function qg(e){let t=e;function n(e){return LE(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function Sk(e,t,n){const r="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},o=n.style;let i=!1;return{clear:function(){i||(o.transform="",n.getAttribute("style")||n.removeAttribute("style"))},to:function(e){i||(o.transform=r(t.apply(e)))},toggleActive:function(e){i=!e}}}function Z4(e,t,n,r,o,i,a,u,s,l){const c=vv(i),d=vv(i).reverse(),f=function(){const e=u[0];return h(m(d,e),r,!1)}().concat(function(){const e=n-u[0]-1;return h(m(c,e),-r,!0)}());function p(e,t){return e.reduce(((e,t)=>e-i[t]),t)}function m(e,t){return e.reduce(((e,n)=>p(e,t)>0?e.concat([n]):e),[])}function h(i,u,c){const d=function(e){return a.map(((t,r)=>({start:t-o[r]+.5+e,end:t+n-.5+e})))}(u);return i.map((n=>{const o=c?0:-r,i=c?r:0,a=c?"end":"start",u=d[n][a];return{index:n,loopPoint:u,slideLocation:qg(-1),translate:Sk(e,t,l[n]),target:()=>s.get()>u?o:i}}))}return{canLoop:function(){return f.every((({index:e})=>p(c.filter((t=>t!==e)),n)<=.1))},clear:function(){f.forEach((e=>e.translate.clear()))},loop:function(){f.forEach((e=>{const{target:t,translate:n,slideLocation:r}=e,o=t();o!==r.get()&&(n.to(o),r.set(o))}))},loopPoints:f}}function eF(e,t,n){let r,o=!1;return{init:function(i){n&&(r=new MutationObserver((e=>{o||(FE(n)||n(i,e))&&function(e){for(const n of e)if("childList"===n.type){i.reInit(),t.emit("slidesChanged");break}}(e)})),r.observe(e,{childList:!0}))},destroy:function(){r&&r.disconnect(),o=!0}}}function tF(e,t,n,r){const o={};let i,a=null,u=null,s=!1;return{init:function(){i=new IntersectionObserver((e=>{s||(e.forEach((e=>{const n=t.indexOf(e.target);o[n]=e})),a=null,u=null,n.emit("slidesInView"))}),{root:e.parentElement,threshold:r}),t.forEach((e=>i.observe(e)))},destroy:function(){i&&i.disconnect(),s=!0},get:function(e=!0){if(e&&a)return a;if(!e&&u)return u;const t=function(e){return gv(o).reduce(((t,n)=>{const r=parseInt(n),{isIntersecting:i}=o[r];return(e&&i||!e&&!i)&&t.push(r),t}),[])}(e);return e&&(a=t),e||(u=t),t}}}function nF(e,t,n,r,o,i){const{measureSize:a,startEdge:u,endEdge:s}=e,l=n[0]&&o,c=function(){if(!l)return 0;const e=n[0];return kn(t[u]-e[u])}(),d=function(){if(!l)return 0;const e=i.getComputedStyle(hs(r));return parseFloat(e.getPropertyValue(`margin-${s}`))}(),f=n.map(a),p=n.map(((e,t,n)=>{const r=!t,o=jE(n,t);return r?f[t]+c:o?f[t]+d:n[t+1][u]-e[u]})).map(kn);return{slideSizes:f,slideSizesWithGaps:p,startGap:c,endGap:d}}function rF(e,t,n,r,o,i,a,u,s,l){const{startEdge:c,endEdge:d}=e,f=LE(r);return{groupSlides:function(e){return f?function(e,t){return vv(e).filter((e=>e%t==0)).map((n=>e.slice(n,n+t)))}(e,r):function(e){return e.length?vv(e).reduce(((r,f)=>{const p=hs(r)||0,m=0===p,h=f===Mv(e),v=i[c]-a[p][c],g=i[c]-a[f][d],y=!o&&m?t.apply(u):0;return kn(g-(!o&&h?t.apply(s):0)-(v+y))>n+l&&r.push(f),h&&r.push(e.length),r}),[]).map(((t,n,r)=>{const o=Math.max(r[n-1]||0);return e.slice(o,t)})):[]}(e)}}}function oF(e,t,n,r,o,i,a){const{align:u,axis:s,direction:l,startIndex:c,loop:d,duration:f,dragFree:p,dragThreshold:m,inViewThreshold:h,slidesToScroll:v,skipSnaps:g,containScroll:y,watchResize:b,watchSlides:w,watchDrag:x}=i,_=B4(),E=_.measure(t),S=n.map(_.measure),A=M4(l),k=N4(s,l),C=k.measureSize(E),I=j4(C),P=k4(u,C),R=!d&&!!y,O=d||!!y,{slideSizes:T,slideSizesWithGaps:N,startGap:j,endGap:q}=nF(k,E,S,n,O,o),D=rF(k,A,C,v,d,E,S,j,q,2),{snaps:M,snapsAligned:L}=K4(k,P,E,S,D),$=-hs(M)+hs(N),{snapsContained:B,scrollContainLimit:V}=W4(C,$,L,y,2),z=R?B:L,{limit:F}=q4($,z,d),U=xk(Mv(z),c,d),G=U.clone(),W=vv(n),H=D4(r,o,(()=>(({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()})(ae)),(e=>(({scrollBody:e,translate:t,location:n,offsetLocation:r,scrollLooper:o,slideLooper:i,dragHandler:a,animation:u,eventHandler:s,options:{loop:l}},c)=>{const d=e.velocity(),f=e.settled();f&&!a.pointerDown()&&(u.stop(),s.emit("settle")),f||s.emit("scroll"),r.set(n.get()-d+d*c),l&&(o.loop(e.direction()),i.loop()),t.to(r.get())})(ae,e))),K=z[U.get()],Q=qg(K),Y=qg(K),X=qg(K),J=U4(Q,Y,X,f,.68),Z=Y4(d,z,$,F,X),ee=X4(H,U,G,J,Z,X,a),te=H4(F),ne=yv(),re=tF(t,n,a,h),{slideRegistry:oe}=Q4(R,y,z,V,D,W),ie=J4(e,n,oe,ee,J,ne),ae={ownerDocument:r,ownerWindow:o,eventHandler:a,containerRect:E,slideRects:S,animation:H,axis:k,direction:A,dragHandler:L4(k,A,e,r,o,X,F4(k,o),Q,H,ee,J,Z,U,a,I,p,m,g,.68,x),eventStore:ne,percentOfView:I,index:U,indexPrevious:G,limit:F,location:Q,offsetLocation:Y,options:i,resizeHandler:V4(t,a,o,n,k,b,_),scrollBody:J,scrollBounds:z4(F,Y,X,J,I),scrollLooper:G4($,F,Y,[Q,Y,X]),scrollProgress:te,scrollSnapList:z.map(te.get),scrollSnaps:z,scrollTarget:Z,scrollTo:ee,slideLooper:Z4(k,A,C,$,T,N,M,z,Y,n),slideFocus:ie,slidesHandler:eF(t,a,w),slidesInView:re,slideIndexes:W,slideRegistry:oe,slidesToScroll:D,target:X,translate:Sk(k,A,t)};return ae}function iF(){const e={};let t;function n(t){return e[t]||[]}const r={init:function(e){t=e},emit:function(e){return n(e).forEach((n=>n(t,e))),r},off:function(t,o){return e[t]=n(t).filter((e=>e!==o)),r},on:function(t,o){return e[t]=n(t).concat([o]),r}};return r}R4.displayName="CardFooter";const aF={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0};function sF(e){function t(e,t){return _k(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){const r=n.breakpoints||{},o=gv(r).filter((t=>e.matchMedia(t).matches)).map((e=>r[e])).reduce(((e,n)=>t(e,n)),{});return t(n,o)},optionsMediaQueries:function(t){return t.map((e=>gv(e.breakpoints||{}))).reduce(((e,t)=>e.concat(t)),[]).map(e.matchMedia)}}}function uF(e){let t=[];return{init:function(n,r){return t=r.filter((({options:t})=>!1!==e.optionsAtMedia(t).active)),t.forEach((t=>t.init(n,e))),r.reduce(((e,t)=>Object.assign(e,{[t.name]:t})),{})},destroy:function(){t=t.filter((e=>e.destroy()))}}}function Jg(e,t,n){const r=e.ownerDocument,o=r.defaultView,i=sF(o),a=uF(i),u=yv(),s=iF(),{mergeOptions:l,optionsAtMedia:c,optionsMediaQueries:d}=i,{on:f,off:p,emit:m}=s,h=k;let v,g,y,b,w=!1,x=l(aF,Jg.globalOptions),_=l(x),E=[];function S(t){const n=oF(e,y,b,r,o,t,s);if(t.loop&&!n.slideLooper.canLoop()){return S(Object.assign({},t,{loop:!1}))}return n}function A(t,n){w||(x=l(x,t),_=c(x),E=n||E,function(){const{container:t,slides:n}=_;y=(LS(t)?e.querySelector(t):t)||e.children[0];const r=LS(n)?y.querySelectorAll(n):n;b=[].slice.call(r||y.children)}(),v=S(_),d([x,...E.map((({options:e})=>e))]).forEach((e=>u.add(e,"change",k))),_.active&&(v.translate.to(v.location.get()),v.animation.init(),v.slidesInView.init(),v.slideFocus.init(),v.eventHandler.init(R),v.resizeHandler.init(R),v.slidesHandler.init(R),v.options.loop&&v.slideLooper.loop(),y.offsetParent&&b.length&&v.dragHandler.init(R),g=a.init(R,E)))}function k(e,t){const n=P();C(),A(l({startIndex:n},e),t),s.emit("reInit")}function C(){v.dragHandler.destroy(),v.eventStore.clear(),v.translate.clear(),v.slideLooper.clear(),v.resizeHandler.destroy(),v.slidesHandler.destroy(),v.slidesInView.destroy(),v.animation.destroy(),a.destroy(),u.clear()}function I(e,t,n){!_.active||w||(v.scrollBody.useBaseFriction().useDuration(!0===t?0:_.duration),v.scrollTo.index(e,n||0))}function P(){return v.index.get()}const R={canScrollNext:function(){return v.index.add(1).get()!==P()},canScrollPrev:function(){return v.index.add(-1).get()!==P()},containerNode:function(){return y},internalEngine:function(){return v},destroy:function(){w||(w=!0,u.clear(),C(),s.emit("destroy"))},off:p,on:f,emit:m,plugins:function(){return g},previousScrollSnap:function(){return v.indexPrevious.get()},reInit:h,rootNode:function(){return e},scrollNext:function(e){I(v.index.add(1).get(),e,-1)},scrollPrev:function(e){I(v.index.add(-1).get(),e,1)},scrollProgress:function(){return v.scrollProgress.get(v.location.get())},scrollSnapList:function(){return v.scrollSnapList},scrollTo:I,selectedScrollSnap:P,slideNodes:function(){return b},slidesInView:function(){return v.slidesInView.get()},slidesNotInView:function(){return v.slidesInView.get(!1)}};return A(t,n),setTimeout((()=>s.emit("init")),0),R}function VE(e={},t=[]){const n=m.useRef(e),r=m.useRef(t),[o,i]=m.useState(),[a,u]=m.useState(),s=m.useCallback((()=>{o&&o.reInit(n.current,r.current)}),[o]);return m.useEffect((()=>{if(T4()&&a){Jg.globalOptions=VE.globalOptions;const e=Jg(a,n.current,r.current);return i(e),()=>e.destroy()}i(void 0)}),[a,i]),m.useEffect((()=>{ME(n.current,e)||(n.current=e,s())}),[e,s]),m.useEffect((()=>{O4(r.current,t)||(r.current=t,s())}),[t,s]),[u,o]}Jg.globalOptions=void 0,VE.globalOptions=void 0;const Ek=mu("",{variants:{variant:{fullHeight:"absolute bg-base_white_90 top-[0] h-[calc(100%-35px)] w-[32px] border-0 rounded-none transform-none text-gray-700 [&>svg]:text-gray-700 [&>svg]:size-[37px] [&>svg]:stroke-[3px]",bottom:"size-5 bottom-[0] rounded-[2px] bg-gray-900_50 disabled:opacity-1 hover:bg-gray-900_50 [&:disabled>svg]:text-gray-900_20 [&>svg]:text-white [&>svg]:size-5"},position:{left:"",right:""}},compoundVariants:[{variant:"fullHeight",position:"left",class:"rounded-tl-[6px] left-0"},{variant:"fullHeight",position:"right",class:"rounded-tr-[6px] right-0"},{variant:"bottom",position:"left",class:"mr-[6px]"}]}),Ck=m.createContext(null),Py=()=>{const e=m.useContext(Ck);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e},lF=m.forwardRef((({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:o,children:i,...a},u)=>{const[s,l]=VE({...t,axis:"horizontal"===e?"x":"y"},r),[c,d]=m.useState(!1),[f,p]=m.useState(!1),h=m.useCallback((e=>{e&&(d(e.canScrollPrev()),p(e.canScrollNext()))}),[]),v=m.useCallback((()=>{null==l||l.scrollPrev()}),[l]),g=m.useCallback((()=>{null==l||l.scrollNext()}),[l]),y=m.useCallback((e=>{"ArrowLeft"===e.key?(e.preventDefault(),v()):"ArrowRight"===e.key&&(e.preventDefault(),g())}),[v,g]);return m.useEffect((()=>{!l||!n||n(l)}),[l,n]),m.useEffect((()=>{if(l)return h(l),l.on("reInit",h),l.on("select",h),()=>{null==l||l.off("select",h)}}),[l,h]),G.jsx(Ck.Provider,{value:{carouselRef:s,api:l,opts:t,orientation:e||("y"===(null==t?void 0:t.axis)?"vertical":"horizontal"),scrollPrev:v,scrollNext:g,canScrollPrev:c,canScrollNext:f},children:G.jsx("div",{ref:u,onKeyDownCapture:y,className:be("relative",o),role:"region","aria-roledescription":"carousel",...a,children:i})})}));lF.displayName="Carousel";const cF=m.forwardRef((({className:e,...t},n)=>{const{carouselRef:r,orientation:o}=Py();return G.jsx("div",{ref:r,children:G.jsx("div",{ref:n,className:be("flex","horizontal"===o?"":"-mt-4 flex-col",e),...t})})}));cF.displayName="CarouselContent";const dF=m.forwardRef((({className:e,sideGap:t,isFullPreview:n,...r},o)=>{const{orientation:i}=Py();return G.jsx("div",{ref:o,role:"group","aria-roledescription":"slide",style:{...n&&{width:"100%"},marginRight:t&&`${t}px`,maxWidth:t&&`calc(100% - ${t}px)`},className:be("min-w-0 shrink-0 grow-0","horizontal"===i?!t&&"pr-[10px]":"pt-4",e),...r})}));dF.displayName="CarouselItem";const fF=m.forwardRef((({className:e,variant:t="fullHeight",size:n="icon_m",...r},o)=>{const{scrollPrev:i,canScrollPrev:a,opts:u}=Py(),s=be(("fullHeight"===t&&!a||!(null!=u&&u.active))&&"hidden",Ek({variant:t,position:"left"}),e);return G.jsxs(kv,{ref:o,variant:"primary",size:n,className:s,disabled:!a,onClick:i,...r,children:[G.jsx(b2,{}),G.jsx("span",{className:"sr-only",children:"Previous slide"})]})}));fF.displayName="CarouselPrevious";const pF=m.forwardRef((({className:e,variant:t="fullHeight",size:n="icon_m",...r},o)=>{const{scrollNext:i,canScrollNext:a,opts:u}=Py(),s=be(("fullHeight"===t&&!a||!(null!=u&&u.active))&&"hidden",Ek({variant:t,position:"right"}),e);return G.jsxs(kv,{ref:o,variant:"primary",size:n,className:s,disabled:!a,onClick:i,...r,children:[G.jsx(x2,{}),G.jsx("span",{className:"sr-only",children:"Next slide"})]})}));var nw,pI,rw,hI,ow,mI,iw,vI,aw,gI,sw,yI,uw,wI,lw,_I,cw,bI,dw,xI,fw,SI,pw,EI,hw,CI,mw,$I,vw,II,gw,RI,yw,PI,ww,TI,_w,OI,bw,AI,xw,kI,Sw,DI,Ew,NI,Cw,MI,$w,LI,Iw,FI,Rw,BI,Pw,jI,Tw,VI,Ow,UI,Aw,zI,kw,WI,Dw,qI,Nw,GI,Mw,HI,Lw,KI,Fw,QI,Bw,YI,jw,XI,Vw,JI,Uw,ZI,zw,eR,Ww,tR,qw,nR,Gw,rR,Hw,oR,Kw,iR,Qw,aR,Yw,sR,Xw,uR,Jw,lR,Zw,cR,e_,dR;function Ei(){if(pI)return nw;pI=1;var e=Array.isArray;return nw=e}function $k(){if(hI)return rw;hI=1;var e="object"==typeof ka&&ka&&ka.Object===Object&&ka;return rw=e}function ri(){if(mI)return ow;mI=1;var e=$k(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return ow=n}function Uh(){if(vI)return iw;vI=1;var e=ri().Symbol;return iw=e}function hF(){if(gI)return aw;gI=1;var e=Uh(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,o=e?e.toStringTag:void 0;return aw=function(e){var t=n.call(e,o),i=e[o];try{e[o]=void 0;var a=!0}catch{}var u=r.call(e);return a&&(t?e[o]=i:delete e[o]),u}}function mF(){if(yI)return sw;yI=1;var e=Object.prototype.toString;return sw=function(t){return e.call(t)}}function Il(){if(wI)return uw;wI=1;var e=Uh(),t=hF(),n=mF(),r=e?e.toStringTag:void 0;return uw=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?t(e):n(e)}}function ta(){if(_I)return lw;return _I=1,lw=function(e){return null!=e&&"object"==typeof e}}function Lv(){if(bI)return cw;bI=1;var e=Il(),t=ta();return cw=function(n){return"symbol"==typeof n||t(n)&&"[object Symbol]"==e(n)}}function UE(){if(xI)return dw;xI=1;var e=Ei(),t=Lv(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return dw=function(o,i){if(e(o))return!1;var a=typeof o;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=o&&!t(o))||(r.test(o)||!n.test(o)||null!=i&&o in Object(i))}}function ws(){if(SI)return fw;return SI=1,fw=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}function Ty(){if(EI)return pw;EI=1;var e=Il(),t=ws();return pw=function(n){if(!t(n))return!1;var r=e(n);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}}function vF(){if(CI)return hw;CI=1;var e=ri()["__core-js_shared__"];return hw=e}function gF(){if($I)return mw;$I=1;var e,t=vF(),n=(e=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"";return mw=function(e){return!!n&&n in e},mw}function Ik(){if(II)return vw;II=1;var e=Function.prototype.toString;return vw=function(t){if(null!=t){try{return e.call(t)}catch{}try{return t+""}catch{}}return""}}function yF(){if(RI)return gw;RI=1;var e=Ty(),t=gF(),n=ws(),r=Ik(),o=/^\[object .+?Constructor\]$/,i=Function.prototype,a=Object.prototype,u=i.toString,s=a.hasOwnProperty,l=RegExp("^"+u.call(s).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return gw=function(i){return!(!n(i)||t(i))&&(e(i)?l:o).test(r(i))}}function wF(){if(PI)return yw;return PI=1,yw=function(e,t){return null==e?void 0:e[t]}}function tp(){if(TI)return ww;TI=1;var e=yF(),t=wF();return ww=function(n,r){var o=t(n,r);return e(o)?o:void 0}}function Oy(){if(OI)return _w;OI=1;var e=tp()(Object,"create");return _w=e}function _F(){if(AI)return bw;AI=1;var e=Oy();return bw=function(){this.__data__=e?e(null):{},this.size=0}}function bF(){if(kI)return xw;return kI=1,xw=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}}function xF(){if(DI)return Sw;DI=1;var e=Oy(),t=Object.prototype.hasOwnProperty;return Sw=function(n){var r=this.__data__;if(e){var o=r[n];return"__lodash_hash_undefined__"===o?void 0:o}return t.call(r,n)?r[n]:void 0}}function SF(){if(NI)return Ew;NI=1;var e=Oy(),t=Object.prototype.hasOwnProperty;return Ew=function(n){var r=this.__data__;return e?void 0!==r[n]:t.call(r,n)}}function EF(){if(MI)return Cw;MI=1;var e=Oy();return Cw=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=e&&void 0===n?"__lodash_hash_undefined__":n,this}}function CF(){if(LI)return $w;LI=1;var e=_F(),t=bF(),n=xF(),r=SF(),o=EF();function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,$w=i}function $F(){if(FI)return Iw;return FI=1,Iw=function(){this.__data__=[],this.size=0}}function zE(){if(BI)return Rw;return BI=1,Rw=function(e,t){return e===t||e!=e&&t!=t}}function Ay(){if(jI)return Pw;jI=1;var e=zE();return Pw=function(t,n){for(var r=t.length;r--;)if(e(t[r][0],n))return r;return-1}}function IF(){if(VI)return Tw;VI=1;var e=Ay(),t=Array.prototype.splice;return Tw=function(n){var r=this.__data__,o=e(r,n);return!(o<0)&&(o==r.length-1?r.pop():t.call(r,o,1),--this.size,!0)}}function RF(){if(UI)return Ow;UI=1;var e=Ay();return Ow=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]}}function PF(){if(zI)return Aw;zI=1;var e=Ay();return Aw=function(t){return e(this.__data__,t)>-1}}function TF(){if(WI)return kw;WI=1;var e=Ay();return kw=function(t,n){var r=this.__data__,o=e(r,t);return o<0?(++this.size,r.push([t,n])):r[o][1]=n,this}}function ky(){if(qI)return Dw;qI=1;var e=$F(),t=IF(),n=RF(),r=PF(),o=TF();function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,Dw=i}function WE(){if(GI)return Nw;GI=1;var e=tp()(ri(),"Map");return Nw=e}function OF(){if(HI)return Mw;HI=1;var e=CF(),t=ky(),n=WE();return Mw=function(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}}function AF(){if(KI)return Lw;return KI=1,Lw=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}}function Dy(){if(QI)return Fw;QI=1;var e=AF();return Fw=function(t,n){var r=t.__data__;return e(n)?r["string"==typeof n?"string":"hash"]:r.map}}function kF(){if(YI)return Bw;YI=1;var e=Dy();return Bw=function(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}}function DF(){if(XI)return jw;XI=1;var e=Dy();return jw=function(t){return e(this,t).get(t)}}function NF(){if(JI)return Vw;JI=1;var e=Dy();return Vw=function(t){return e(this,t).has(t)}}function MF(){if(ZI)return Uw;ZI=1;var e=Dy();return Uw=function(t,n){var r=e(this,t),o=r.size;return r.set(t,n),this.size+=r.size==o?0:1,this}}function qE(){if(eR)return zw;eR=1;var e=OF(),t=kF(),n=DF(),r=NF(),o=MF();function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,zw=i}function LF(){if(tR)return Ww;tR=1;var e=qE();function t(n,r){if("function"!=typeof n||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var o=function(){var e=arguments,t=r?r.apply(this,e):e[0],i=o.cache;if(i.has(t))return i.get(t);var a=n.apply(this,e);return o.cache=i.set(t,a)||i,a};return o.cache=new(t.Cache||e),o}return t.Cache=e,Ww=t}function FF(){if(nR)return qw;nR=1;var e=LF();return qw=function(t){var n=e(t,(function(e){return 500===r.size&&r.clear(),e})),r=n.cache;return n}}function Rk(){if(rR)return Gw;rR=1;var e=FF(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e((function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(t,(function(e,t,o,i){r.push(o?i.replace(n,"$1"):t||e)})),r}));return Gw=r}function Pk(){if(oR)return Hw;return oR=1,Hw=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}}function BF(){if(iR)return Kw;iR=1;var e=Uh(),t=Pk(),n=Ei(),r=Lv(),o=1/0,i=e?e.prototype:void 0,a=i?i.toString:void 0;return Kw=function e(i){if("string"==typeof i)return i;if(n(i))return t(i,e)+"";if(r(i))return a?a.call(i):"";var u=i+"";return"0"==u&&1/i==-o?"-0":u},Kw}function Tk(){if(aR)return Qw;aR=1;var e=BF();return Qw=function(t){return null==t?"":e(t)}}function Ok(){if(sR)return Yw;sR=1;var e=Ei(),t=UE(),n=Rk(),r=Tk();return Yw=function(o,i){return e(o)?o:t(o,i)?[o]:n(r(o))}}function Fv(){if(uR)return Xw;uR=1;var e=Lv(),t=1/0;return Xw=function(n){if("string"==typeof n||e(n))return n;var r=n+"";return"0"==r&&1/n==-t?"-0":r}}function Ak(){if(lR)return Jw;lR=1;var e=Ok(),t=Fv();return Jw=function(n,r){for(var o=0,i=(r=e(r,n)).length;null!=n&&o<i;)n=n[t(r[o++])];return o&&o==i?n:void 0}}function kk(){if(cR)return Zw;cR=1;var e=Ak();return Zw=function(t,n,r){var o=null==t?void 0:e(t,n);return void 0===o?r:o}}function jF(){if(dR)return e_;dR=1;var e=Il(),t=Ei(),n=ta();return e_=function(r){return"string"==typeof r||!t(r)&&n(r)&&"[object String]"==e(r)}}pF.displayName="CarouselNext",kk();var VF=jF();const UF=py(VF);Ty(),ws();var fR,pR,n_,hR,r_,mR,t_={exports:{}},nn={};
|
|
78
|
+
*/}function N7(){if(Q$)return bi;Q$=1;var e=hy(),t=D7();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;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."}var r=new Set,o={};function i(e,t){a(e,t),a(e+"Capture",t)}function a(e,t){for(o[e]=t,e=0;e<t.length;e++)r.add(t[e])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),s=Object.prototype.hasOwnProperty,l=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,c={},d={};function f(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){p[e]=new f(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];p[t]=new f(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){p[e]=new f(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){p[e]=new f(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){p[e]=new f(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){p[e]=new f(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){p[e]=new f(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){p[e]=new f(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){p[e]=new f(e,5,!1,e.toLowerCase(),null,!1,!1)}));var m=/[\-:]([a-z])/g;function h(e){return e[1].toUpperCase()}function v(e,t,n,r){var o=p.hasOwnProperty(t)?p[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||typeof t>"u"||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!s.call(d,e)||!s.call(c,e)&&(l.test(e)?d[e]=!0:(c[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(m,h);p[t]=new f(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(m,h);p[t]=new f(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(m,h);p[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)})),p.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)}));var g=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,y=Symbol.for("react.element"),b=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),S=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),T=Symbol.iterator;function O(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=T&&e[T]||e["@@iterator"])?e:null}var N,j=Object.assign;function q(e){if(void 0===N)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);N=t&&t[1]||""}return"\n"+N+e}var D=!1;function M(e,t){if(!e||D)return"";D=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,u=i.length-1;1<=a&&0<=u&&o[a]!==i[u];)u--;for(;1<=a&&0<=u;a--,u--)if(o[a]!==i[u]){if(1!==a||1!==u)do{if(a--,0>--u||o[a]!==i[u]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=u);break}}}finally{D=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?q(e):""}function L(e){switch(e.tag){case 5:return q(e.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return e=M(e.type,!1);case 11:return e=M(e.type.render,!1);case 1:return e=M(e.type,!0);default:return""}}function $(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case w:return"Fragment";case b:return"Portal";case _:return"Profiler";case x:return"StrictMode";case A:return"Suspense";case C:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case S:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case k:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:$(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return $(e(t))}catch{}}return null}function B(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $(t);case 8:return t===x?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function V(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function z(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function F(e){e._valueTracker||(e._valueTracker=function(e){var t=z(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function U(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=z(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if(typeof(e=e||(typeof document<"u"?document:void 0))>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function W(e,t){var n=t.checked;return j({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function H(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=V(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function K(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function Q(e,t){K(e,t);var n=V(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?J(e,t.type,n):t.hasOwnProperty("defaultValue")&&J(e,t.type,V(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function J(e,t,n){("number"!==t||G(e.ownerDocument)!==e)&&(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Y=Array.isArray;function Z(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+V(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function ee(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return j({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function te(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(Y(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:V(r)}}function ne(e,t){var n=V(t.value),r=V(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function re(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function oe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ie(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?oe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ae,ue,se=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ae=ae||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ae.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function le(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ce={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},de=["Webkit","ms","Moz","O"];function fe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ce.hasOwnProperty(e)&&ce[e]?(""+t).trim():t+"px"}function pe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=fe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ce).forEach((function(e){de.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ce[t]=ce[e]}))}));var me=j({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function he(e,t){if(t){if(me[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ge=null;function ye(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var be=null,we=null,xe=null;function _e(e){if(e=go(e)){if("function"!=typeof be)throw Error(n(280));var t=e.stateNode;t&&(t=bo(t),be(e.stateNode,e.type,t))}}function Ee(e){we?xe?xe.push(e):xe=[e]:we=e}function Se(){if(we){var e=we,t=xe;if(xe=we=null,_e(e),t)for(e=0;e<t.length;e++)_e(t[e])}}function ke(e,t){return e(t)}function Ae(){}var Ce=!1;function Ie(e,t,n){if(Ce)return e(t,n);Ce=!0;try{return ke(e,t,n)}finally{Ce=!1,(null!==we||null!==xe)&&(Ae(),Se())}}function Re(e,t){var r=e.stateNode;if(null===r)return null;var o=bo(r);if(null===o)return null;r=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Pe=!1;if(u)try{var Te={};Object.defineProperty(Te,"passive",{get:function(){Pe=!0}}),window.addEventListener("test",Te,Te),window.removeEventListener("test",Te,Te)}catch{Pe=!1}function Oe(e,t,n,r,o,i,a,u,s){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var Ne=!1,je=null,qe=!1,De=null,Me={onError:function(e){Ne=!0,je=e}};function Le(e,t,n,r,o,i,a,u,s){Ne=!1,je=null,Oe.apply(Me,arguments)}function $e(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Be(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ve(e){if($e(e)!==e)throw Error(n(188))}function ze(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=$e(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,o=t;;){var i=r.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(o=i.return)){r=o;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return Ve(i),e;if(a===o)return Ve(i),t;a=a.sibling}throw Error(n(188))}if(r.return!==o.return)r=i,o=a;else{for(var u=!1,s=i.child;s;){if(s===r){u=!0,r=i,o=a;break}if(s===o){u=!0,o=i,r=a;break}s=s.sibling}if(!u){for(s=a.child;s;){if(s===r){u=!0,r=a,o=i;break}if(s===o){u=!0,o=a,r=i;break}s=s.sibling}if(!u)throw Error(n(189))}}if(r.alternate!==o)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e))?Fe(e):null}function Fe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Fe(e);if(null!==t)return t;e=e.sibling}return null}var Ue=t.unstable_scheduleCallback,Ge=t.unstable_cancelCallback,We=t.unstable_shouldYield,He=t.unstable_requestPaint,Ke=t.unstable_now,Qe=t.unstable_getCurrentPriorityLevel,Xe=t.unstable_ImmediatePriority,Je=t.unstable_UserBlockingPriority,Ye=t.unstable_NormalPriority,Ze=t.unstable_LowPriority,et=t.unstable_IdlePriority,tt=null,nt=null;var rt=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(ot(e)/it|0)|0},ot=Math.log,it=Math.LN2;var at=64,ut=4194304;function st(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function lt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var u=a&~o;0!==u?r=st(u):0!==(i&=a)&&(r=st(i))}else 0!==(a=n&~o)?r=st(a):0!==i&&(r=st(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(!!(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-rt(t)),r|=e[n],t&=~o;return r}function ct(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function dt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ft(){var e=at;return!(4194240&(at<<=1))&&(at=64),e}function pt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function mt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-rt(t)]=n}function ht(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-rt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var vt=0;function gt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var yt,bt,wt,xt,_t,Et=!1,St=[],kt=null,At=null,Ct=null,It=new Map,Rt=new Map,Pt=[],Tt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ot(e,t){switch(e){case"focusin":case"focusout":kt=null;break;case"dragenter":case"dragleave":At=null;break;case"mouseover":case"mouseout":Ct=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function Nt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=go(t))&&bt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function jt(e){var t=vo(e.target);if(null!==t){var n=$e(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Be(n)))return e.blockedOn=t,void _t(e.priority,(function(){wt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function qt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Wt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=go(n))&&bt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ge=r,n.target.dispatchEvent(r),ge=null,t.shift()}return!0}function Dt(e,t,n){qt(e)&&n.delete(t)}function Mt(){Et=!1,null!==kt&&qt(kt)&&(kt=null),null!==At&&qt(At)&&(At=null),null!==Ct&&qt(Ct)&&(Ct=null),It.forEach(Dt),Rt.forEach(Dt)}function Lt(e,n){e.blockedOn===n&&(e.blockedOn=null,Et||(Et=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Mt)))}function $t(e){function t(t){return Lt(t,e)}if(0<St.length){Lt(St[0],e);for(var n=1;n<St.length;n++){var r=St[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==kt&&Lt(kt,e),null!==At&&Lt(At,e),null!==Ct&&Lt(Ct,e),It.forEach(t),Rt.forEach(t),n=0;n<Pt.length;n++)(r=Pt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Pt.length&&null===(n=Pt[0]).blockedOn;)jt(n),null===n.blockedOn&&Pt.shift()}var Bt=g.ReactCurrentBatchConfig,Vt=!0;function zt(e,t,n,r){var o=vt,i=Bt.transition;Bt.transition=null;try{vt=1,Ut(e,t,n,r)}finally{vt=o,Bt.transition=i}}function Ft(e,t,n,r){var o=vt,i=Bt.transition;Bt.transition=null;try{vt=4,Ut(e,t,n,r)}finally{vt=o,Bt.transition=i}}function Ut(e,t,n,r){if(Vt){var o=Wt(e,t,n,r);if(null===o)Vr(e,t,r,Gt,n),Ot(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return kt=Nt(kt,e,t,n,r,o),!0;case"dragenter":return At=Nt(At,e,t,n,r,o),!0;case"mouseover":return Ct=Nt(Ct,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return It.set(i,Nt(It.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Rt.set(i,Nt(Rt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Ot(e,r),4&t&&-1<Tt.indexOf(e)){for(;null!==o;){var i=go(o);if(null!==i&&yt(i),null===(i=Wt(e,t,n,r))&&Vr(e,t,r,Gt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Vr(e,t,r,null,n)}}var Gt=null;function Wt(e,t,n,r){if(Gt=null,null!==(e=vo(e=ye(r))))if(null===(t=$e(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Be(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Ht(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qe()){case Xe:return 1;case Je:return 4;case Ye:case Ze:return 16;case et:return 536870912;default:return 16}default:return 16}}var Kt=null,Qt=null,Xt=null;function Jt(){if(Xt)return Xt;var e,t,n=Qt,r=n.length,o="value"in Kt?Kt.value:Kt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Xt=o.slice(e,1<t?1-t:void 0)}function Yt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Zt(){return!0}function en(){return!1}function tn(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Zt:en,this.isPropagationStopped=en,this}return j(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Zt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Zt)},persist:function(){},isPersistent:Zt}),t}var nn,rn,on,an={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=tn(an),sn=j({},an,{view:0,detail:0}),ln=tn(sn),cn=j({},sn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_n,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==on&&(on&&"mousemove"===e.type?(nn=e.screenX-on.screenX,rn=e.screenY-on.screenY):rn=nn=0,on=e),nn)},movementY:function(e){return"movementY"in e?e.movementY:rn}}),dn=tn(cn),fn=tn(j({},cn,{dataTransfer:0})),pn=tn(j({},sn,{relatedTarget:0})),mn=tn(j({},an,{animationName:0,elapsedTime:0,pseudoElement:0})),hn=j({},an,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vn=tn(hn),gn=tn(j({},an,{data:0})),yn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},wn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=wn[e])&&!!t[e]}function _n(){return xn}var En=j({},sn,{key:function(e){if(e.key){var t=yn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Yt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?bn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_n,charCode:function(e){return"keypress"===e.type?Yt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Yt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Sn=tn(En),kn=tn(j({},cn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),An=tn(j({},sn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_n})),Cn=tn(j({},an,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=j({},cn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Rn=tn(In),Pn=[9,13,27,32],Tn=u&&"CompositionEvent"in window,On=null;u&&"documentMode"in document&&(On=document.documentMode);var Nn=u&&"TextEvent"in window&&!On,jn=u&&(!Tn||On&&8<On&&11>=On),qn=" ",Dn=!1;function Mn(e,t){switch(e){case"keyup":return-1!==Pn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ln(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var $n=!1;var Bn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Bn[e.type]:"textarea"===t}function zn(e,t,n,r){Ee(r),0<(t=Fr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Fn=null,Un=null;function Gn(e){qr(e,0)}function Wn(e){if(U(yo(e)))return e}function Hn(e,t){if("change"===e)return t}var Kn=!1;if(u){var Qn;if(u){var Xn="oninput"in document;if(!Xn){var Jn=document.createElement("div");Jn.setAttribute("oninput","return;"),Xn="function"==typeof Jn.oninput}Qn=Xn}else Qn=!1;Kn=Qn&&(!document.documentMode||9<document.documentMode)}function Yn(){Fn&&(Fn.detachEvent("onpropertychange",Zn),Un=Fn=null)}function Zn(e){if("value"===e.propertyName&&Wn(Un)){var t=[];zn(t,Un,e,ye(e)),Ie(Gn,t)}}function er(e,t,n){"focusin"===e?(Yn(),Un=n,(Fn=t).attachEvent("onpropertychange",Zn)):"focusout"===e&&Yn()}function tr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Wn(Un)}function nr(e,t){if("click"===e)return Wn(t)}function rr(e,t){if("input"===e||"change"===e)return Wn(t)}var or="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ir(e,t){if(or(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!s.call(t,o)||!or(e[o],t[o]))return!1}return!0}function ar(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=ar(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ar(r)}}function sr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?sr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function lr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch{n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function dr(e){var t=lr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&sr(n.ownerDocument.documentElement,n)){if(null!==r&&cr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ur(n,i);var a=ur(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var fr=u&&"documentMode"in document&&11>=document.documentMode,pr=null,mr=null,hr=null,vr=!1;function gr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==pr||pr!==G(r)||("selectionStart"in(r=pr)&&cr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},hr&&ir(hr,r)||(hr=r,0<(r=Fr(mr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=pr)))}function yr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var br={animationend:yr("Animation","AnimationEnd"),animationiteration:yr("Animation","AnimationIteration"),animationstart:yr("Animation","AnimationStart"),transitionend:yr("Transition","TransitionEnd")},wr={},xr={};function _r(e){if(wr[e])return wr[e];if(!br[e])return e;var t,n=br[e];for(t in n)if(n.hasOwnProperty(t)&&t in xr)return wr[e]=n[t];return e}u&&(xr=document.createElement("div").style,"AnimationEvent"in window||(delete br.animationend.animation,delete br.animationiteration.animation,delete br.animationstart.animation),"TransitionEvent"in window||delete br.transitionend.transition);var Er=_r("animationend"),Sr=_r("animationiteration"),kr=_r("animationstart"),Ar=_r("transitionend"),Cr=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rr(e,t){Cr.set(e,t),i(t,[e])}for(var Pr=0;Pr<Ir.length;Pr++){var Tr=Ir[Pr];Rr(Tr.toLowerCase(),"on"+(Tr[0].toUpperCase()+Tr.slice(1)))}Rr(Er,"onAnimationEnd"),Rr(Sr,"onAnimationIteration"),Rr(kr,"onAnimationStart"),Rr("dblclick","onDoubleClick"),Rr("focusin","onFocus"),Rr("focusout","onBlur"),Rr(Ar,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Or="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Nr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Or));function jr(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,o,i,a,u,s,l){if(Le.apply(this,arguments),Ne){if(!Ne)throw Error(n(198));var c=je;Ne=!1,je=null,qe||(qe=!0,De=c)}}(o,t,void 0,e),e.currentTarget=null}function qr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var u=r[a],s=u.instance,l=u.currentTarget;if(u=u.listener,s!==i&&o.isPropagationStopped())break e;jr(o,u,l),i=s}else for(a=0;a<r.length;a++){if(s=(u=r[a]).instance,l=u.currentTarget,u=u.listener,s!==i&&o.isPropagationStopped())break e;jr(o,u,l),i=s}}}if(qe)throw e=De,qe=!1,De=null,e}function Dr(e,t){var n=t[po];void 0===n&&(n=t[po]=new Set);var r=e+"__bubble";n.has(r)||(Br(t,e,2,!1),n.add(r))}function Mr(e,t,n){var r=0;t&&(r|=4),Br(n,e,r,t)}var Lr="_reactListening"+Math.random().toString(36).slice(2);function $r(e){if(!e[Lr]){e[Lr]=!0,r.forEach((function(t){"selectionchange"!==t&&(Nr.has(t)||Mr(t,!1,e),Mr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Lr]||(t[Lr]=!0,Mr("selectionchange",!1,t))}}function Br(e,t,n,r){switch(Ht(t)){case 1:var o=zt;break;case 4:o=Ft;break;default:o=Ut}n=o.bind(null,t,n,e),o=void 0,!Pe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Vr(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var u=r.stateNode.containerInfo;if(u===o||8===u.nodeType&&u.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==u;){if(null===(a=vo(u)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}u=u.parentNode}}r=r.return}Ie((function(){var r=i,o=ye(n),a=[];e:{var u=Cr.get(e);if(void 0!==u){var s=un,l=e;switch(e){case"keypress":if(0===Yt(n))break e;case"keydown":case"keyup":s=Sn;break;case"focusin":l="focus",s=pn;break;case"focusout":l="blur",s=pn;break;case"beforeblur":case"afterblur":s=pn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=dn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=fn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=An;break;case Er:case Sr:case kr:s=mn;break;case Ar:s=Cn;break;case"scroll":s=ln;break;case"wheel":s=Rn;break;case"copy":case"cut":case"paste":s=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=kn}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==u?u+"Capture":null:u;c=[];for(var p,m=r;null!==m;){var h=(p=m).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==f&&(null!=(h=Re(m,f))&&c.push(zr(m,h,p)))),d)break;m=m.return}0<c.length&&(u=new s(u,l,null,n,o),a.push({event:u,listeners:c}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(u="mouseover"===e||"pointerover"===e)||n===ge||!(l=n.relatedTarget||n.fromElement)||!vo(l)&&!l[fo])&&(s||u)&&(u=o.window===o?o:(u=o.ownerDocument)?u.defaultView||u.parentWindow:window,s?(s=r,null!==(l=(l=n.relatedTarget||n.toElement)?vo(l):null)&&(l!==(d=$e(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(s=null,l=r),s!==l)){if(c=dn,h="onMouseLeave",f="onMouseEnter",m="mouse",("pointerout"===e||"pointerover"===e)&&(c=kn,h="onPointerLeave",f="onPointerEnter",m="pointer"),d=null==s?u:yo(s),p=null==l?u:yo(l),(u=new c(h,m+"leave",s,n,o)).target=d,u.relatedTarget=p,h=null,vo(o)===r&&((c=new c(f,m+"enter",l,n,o)).target=p,c.relatedTarget=d,h=c),d=h,s&&l)e:{for(f=l,m=0,p=c=s;p;p=Ur(p))m++;for(p=0,h=f;h;h=Ur(h))p++;for(;0<m-p;)c=Ur(c),m--;for(;0<p-m;)f=Ur(f),p--;for(;m--;){if(c===f||null!==f&&c===f.alternate)break e;c=Ur(c),f=Ur(f)}c=null}else c=null;null!==s&&Gr(a,u,s,c,!1),null!==l&&null!==d&&Gr(a,d,l,c,!0)}if("select"===(s=(u=r?yo(r):window).nodeName&&u.nodeName.toLowerCase())||"input"===s&&"file"===u.type)var v=Hn;else if(Vn(u))if(Kn)v=rr;else{v=tr;var g=er}else(s=u.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===u.type||"radio"===u.type)&&(v=nr);switch(v&&(v=v(e,r))?zn(a,v,n,o):(g&&g(e,u,r),"focusout"===e&&(g=u._wrapperState)&&g.controlled&&"number"===u.type&&J(u,"number",u.value)),g=r?yo(r):window,e){case"focusin":(Vn(g)||"true"===g.contentEditable)&&(pr=g,mr=r,hr=null);break;case"focusout":hr=mr=pr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,gr(a,n,o);break;case"selectionchange":if(fr)break;case"keydown":case"keyup":gr(a,n,o)}var y;if(Tn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else $n?Mn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(jn&&"ko"!==n.locale&&($n||"onCompositionStart"!==b?"onCompositionEnd"===b&&$n&&(y=Jt()):(Qt="value"in(Kt=o)?Kt.value:Kt.textContent,$n=!0)),0<(g=Fr(r,b)).length&&(b=new gn(b,e,null,n,o),a.push({event:b,listeners:g}),y?b.data=y:null!==(y=Ln(n))&&(b.data=y))),(y=Nn?function(e,t){switch(e){case"compositionend":return Ln(t);case"keypress":return 32!==t.which?null:(Dn=!0,qn);case"textInput":return(e=t.data)===qn&&Dn?null:e;default:return null}}(e,n):function(e,t){if($n)return"compositionend"===e||!Tn&&Mn(e,t)?(e=Jt(),Xt=Qt=Kt=null,$n=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return jn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Fr(r,"onBeforeInput")).length&&(o=new gn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}qr(a,t)}))}function zr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Fr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Re(e,n))&&r.unshift(zr(e,i,o)),null!=(i=Re(e,t))&&r.push(zr(e,i,o))),e=e.return}return r}function Ur(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var u=n,s=u.alternate,l=u.stateNode;if(null!==s&&s===r)break;5===u.tag&&null!==l&&(u=l,o?null!=(s=Re(n,i))&&a.unshift(zr(n,s,u)):o||null!=(s=Re(n,i))&&a.push(zr(n,s,u))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Wr=/\r\n?/g,Hr=/\u0000|\uFFFD/g;function Kr(e){return("string"==typeof e?e:""+e).replace(Wr,"\n").replace(Hr,"")}function Qr(e,t,r){if(t=Kr(t),Kr(e)!==t&&r)throw Error(n(425))}function Xr(){}var Jr=null,Yr=null;function Zr(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var eo="function"==typeof setTimeout?setTimeout:void 0,to="function"==typeof clearTimeout?clearTimeout:void 0,no="function"==typeof Promise?Promise:void 0,ro="function"==typeof queueMicrotask?queueMicrotask:typeof no<"u"?function(e){return no.resolve(null).then(e).catch(oo)}:eo;function oo(e){setTimeout((function(){throw e}))}function io(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void $t(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);$t(t)}function ao(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var so=Math.random().toString(36).slice(2),lo="__reactFiber$"+so,co="__reactProps$"+so,fo="__reactContainer$"+so,po="__reactEvents$"+so,mo="__reactListeners$"+so,ho="__reactHandles$"+so;function vo(e){var t=e[lo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fo]||n[lo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[lo])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function go(e){return!(e=e[lo]||e[fo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function yo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function bo(e){return e[co]||null}var wo=[],xo=-1;function _o(e){return{current:e}}function Eo(e){0>xo||(e.current=wo[xo],wo[xo]=null,xo--)}function So(e,t){xo++,wo[xo]=e.current,e.current=t}var ko={},Ao=_o(ko),Co=_o(!1),Io=ko;function Ro(e,t){var n=e.type.contextTypes;if(!n)return ko;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Po(e){return null!=(e=e.childContextTypes)}function To(){Eo(Co),Eo(Ao)}function Oo(e,t,r){if(Ao.current!==ko)throw Error(n(168));So(Ao,t),So(Co,r)}function No(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return r;for(var i in o=o.getChildContext())if(!(i in t))throw Error(n(108,B(e)||"Unknown",i));return j({},r,o)}function jo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ko,Io=Ao.current,So(Ao,e),So(Co,Co.current),!0}function qo(e,t,r){var o=e.stateNode;if(!o)throw Error(n(169));r?(e=No(e,t,Io),o.__reactInternalMemoizedMergedChildContext=e,Eo(Co),Eo(Ao),So(Ao,e)):Eo(Co),So(Co,r)}var Do=null,Mo=!1,Lo=!1;function $o(e){null===Do?Do=[e]:Do.push(e)}function Bo(){if(!Lo&&null!==Do){Lo=!0;var e=0,t=vt;try{var n=Do;for(vt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Do=null,Mo=!1}catch(t){throw null!==Do&&(Do=Do.slice(e+1)),Ue(Xe,Bo),t}finally{vt=t,Lo=!1}}return null}var Vo=[],zo=0,Fo=null,Uo=0,Go=[],Wo=0,Ho=null,Ko=1,Qo="";function Xo(e,t){Vo[zo++]=Uo,Vo[zo++]=Fo,Fo=e,Uo=t}function Jo(e,t,n){Go[Wo++]=Ko,Go[Wo++]=Qo,Go[Wo++]=Ho,Ho=e;var r=Ko;e=Qo;var o=32-rt(r)-1;r&=~(1<<o),n+=1;var i=32-rt(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Ko=1<<32-rt(t)+o|n<<o|r,Qo=i+e}else Ko=1<<i|n<<o|r,Qo=e}function Yo(e){null!==e.return&&(Xo(e,1),Jo(e,1,0))}function Zo(e){for(;e===Fo;)Fo=Vo[--zo],Vo[zo]=null,Uo=Vo[--zo],Vo[zo]=null;for(;e===Ho;)Ho=Go[--Wo],Go[Wo]=null,Qo=Go[--Wo],Go[Wo]=null,Ko=Go[--Wo],Go[Wo]=null}var ei=null,ti=null,ni=!1,ri=null;function oi(e,t){var n=Pl(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ii(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ei=e,ti=ao(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ei=e,ti=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ho?{id:Ko,overflow:Qo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Pl(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ei=e,ti=null,!0);default:return!1}}function ai(e){return!(!(1&e.mode)||128&e.flags)}function ui(e){if(ni){var t=ti;if(t){var r=t;if(!ii(e,t)){if(ai(e))throw Error(n(418));t=ao(r.nextSibling);var o=ei;t&&ii(e,t)?oi(o,r):(e.flags=-4097&e.flags|2,ni=!1,ei=e)}}else{if(ai(e))throw Error(n(418));e.flags=-4097&e.flags|2,ni=!1,ei=e}}}function si(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ei=e}function li(e){if(e!==ei)return!1;if(!ni)return si(e),ni=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Zr(e.type,e.memoizedProps)),t&&(t=ti)){if(ai(e))throw ci(),Error(n(418));for(;t;)oi(e,t),t=ao(t.nextSibling)}if(si(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){ti=ao(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}ti=null}}else ti=ei?ao(e.stateNode.nextSibling):null;return!0}function ci(){for(var e=ti;e;)e=ao(e.nextSibling)}function di(){ti=ei=null,ni=!1}function fi(e){null===ri?ri=[e]:ri.push(e)}var pi=g.ReactCurrentBatchConfig;function mi(e,t){if(e&&e.defaultProps){for(var n in t=j({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var hi=_o(null),vi=null,gi=null,yi=null;function wi(){yi=gi=vi=null}function xi(e){var t=hi.current;Eo(hi),e._currentValue=t}function _i(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ei(e,t){vi=e,yi=gi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(yu=!0),e.firstContext=null)}function Si(e){var t=e._currentValue;if(yi!==e)if(e={context:e,memoizedValue:t,next:null},null===gi){if(null===vi)throw Error(n(308));gi=e,vi.dependencies={lanes:0,firstContext:e}}else gi=gi.next=e;return t}var ki=null;function Ai(e){null===ki?ki=[e]:ki.push(e)}function Ci(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ai(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ii(e,r)}function Ii(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ri=!1;function Pi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ti(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Oi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ni(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Cs){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ii(e,n)}return null===(o=r.interleaved)?(t.next=t,Ai(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ii(e,n)}function ji(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,ht(e,n)}}function qi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Di(e,t,n,r){var o=e.updateQueue;Ri=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,u=o.shared.pending;if(null!==u){o.shared.pending=null;var s=u,l=s.next;s.next=null,null===a?i=l:a.next=l,a=s;var c=e.alternate;null!==c&&((u=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===u?c.firstBaseUpdate=l:u.next=l,c.lastBaseUpdate=s))}if(null!==i){var d=o.baseState;for(a=0,c=l=s=null,u=i;;){var f=u.lane,p=u.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var m=e,h=u;switch(f=t,p=n,h.tag){case 1:if("function"==typeof(m=h.payload)){d=m.call(p,d,f);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(f="function"==typeof(m=h.payload)?m.call(p,d,f):m))break e;d=j({},d,f);break e;case 2:Ri=!0}}null!==u.callback&&0!==u.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[u]:f.push(u))}else p={eventTime:p,lane:f,tag:u.tag,payload:u.payload,callback:u.callback,next:null},null===c?(l=c=p,s=d):c=c.next=p,a|=f;if(null===(u=u.next)){if(null===(u=o.shared.pending))break;u=(f=u).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(s=d),o.baseState=s,o.firstBaseUpdate=l,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);qs|=a,e.lanes=a,e.memoizedState=d}}function Mi(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],i=o.callback;if(null!==i){if(o.callback=null,o=r,"function"!=typeof i)throw Error(n(191,i));i.call(o)}}}var Li=(new e.Component).refs;function $i(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:j({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Bi={isMounted:function(e){return!!(e=e._reactInternals)&&$e(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Zs(),o=el(e),i=Oi(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Ni(e,i,o))&&(tl(t,e,o,r),ji(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Zs(),o=el(e),i=Oi(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Ni(e,i,o))&&(tl(t,e,o,r),ji(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Zs(),r=el(e),o=Oi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Ni(e,o,r))&&(tl(t,e,r,n),ji(t,e,r))}};function Vi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!ir(n,r)||!ir(o,i))}function zi(e,t,n){var r=!1,o=ko,i=t.contextType;return"object"==typeof i&&null!==i?i=Si(i):(o=Po(t)?Io:Ao.current,i=(r=null!=(r=t.contextTypes))?Ro(e,o):ko),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Bi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Fi(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Bi.enqueueReplaceState(t,t.state,null)}function Ui(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Li,Pi(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Si(i):(i=Po(t)?Io:Ao.current,o.context=Ro(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&($i(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Bi.enqueueReplaceState(o,o.state,null),Di(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Gi(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var o=r.stateNode}if(!o)throw Error(n(147,e));var i=o,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=i.refs;t===Li&&(t=i.refs={}),null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function Wi(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Hi(e){return(0,e._init)(e._payload)}function Ki(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Ol(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function u(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Dl(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){var o=n.type;return o===w?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===R&&Hi(o)===t.type)?((r=i(t,n.props)).ref=Gi(e,t,n),r.return=e,r):((r=Nl(n.type,n.key,n.props,null,e.mode,r)).ref=Gi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ml(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=jl(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Dl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case y:return(n=Nl(t.type,t.key,t.props,null,e.mode,n)).ref=Gi(e,null,t),n.return=e,n;case b:return(t=Ml(t,e.mode,n)).return=e,t;case R:return f(e,(0,t._init)(t._payload),n)}if(Y(t)||O(t))return(t=jl(t,e.mode,n,null)).return=e,t;Wi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case y:return n.key===o?l(e,t,n,r):null;case b:return n.key===o?c(e,t,n,r):null;case R:return p(e,t,(o=n._init)(n._payload),r)}if(Y(n)||O(n))return null!==o?null:d(e,t,n,r,null);Wi(e,n)}return null}function m(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case y:return l(t,e=e.get(null===r.key?n:r.key)||null,r,o);case b:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case R:return m(e,t,n,(0,r._init)(r._payload),o)}if(Y(r)||O(r))return d(t,e=e.get(n)||null,r,o,null);Wi(t,r)}return null}return function s(l,c,d,h){if("object"==typeof d&&null!==d&&d.type===w&&null===d.key&&(d=d.props.children),"object"==typeof d&&null!==d){switch(d.$$typeof){case y:e:{for(var v=d.key,g=c;null!==g;){if(g.key===v){if((v=d.type)===w){if(7===g.tag){r(l,g.sibling),(c=i(g,d.props.children)).return=l,l=c;break e}}else if(g.elementType===v||"object"==typeof v&&null!==v&&v.$$typeof===R&&Hi(v)===g.type){r(l,g.sibling),(c=i(g,d.props)).ref=Gi(l,g,d),c.return=l,l=c;break e}r(l,g);break}t(l,g),g=g.sibling}d.type===w?((c=jl(d.props.children,l.mode,h,d.key)).return=l,l=c):((h=Nl(d.type,d.key,d.props,null,l.mode,h)).ref=Gi(l,c,d),h.return=l,l=h)}return u(l);case b:e:{for(g=d.key;null!==c;){if(c.key===g){if(4===c.tag&&c.stateNode.containerInfo===d.containerInfo&&c.stateNode.implementation===d.implementation){r(l,c.sibling),(c=i(c,d.children||[])).return=l,l=c;break e}r(l,c);break}t(l,c),c=c.sibling}(c=Ml(d,l.mode,h)).return=l,l=c}return u(l);case R:return s(l,c,(g=d._init)(d._payload),h)}if(Y(d))return function(n,i,u,s){for(var l=null,c=null,d=i,h=i=0,v=null;null!==d&&h<u.length;h++){d.index>h?(v=d,d=null):v=d.sibling;var g=p(n,d,u[h],s);if(null===g){null===d&&(d=v);break}e&&d&&null===g.alternate&&t(n,d),i=a(g,i,h),null===c?l=g:c.sibling=g,c=g,d=v}if(h===u.length)return r(n,d),ni&&Xo(n,h),l;if(null===d){for(;h<u.length;h++)null!==(d=f(n,u[h],s))&&(i=a(d,i,h),null===c?l=d:c.sibling=d,c=d);return ni&&Xo(n,h),l}for(d=o(n,d);h<u.length;h++)null!==(v=m(d,n,h,u[h],s))&&(e&&null!==v.alternate&&d.delete(null===v.key?h:v.key),i=a(v,i,h),null===c?l=v:c.sibling=v,c=v);return e&&d.forEach((function(e){return t(n,e)})),ni&&Xo(n,h),l}(l,c,d,h);if(O(d))return function(i,u,s,l){var c=O(s);if("function"!=typeof c)throw Error(n(150));if(null==(s=c.call(s)))throw Error(n(151));for(var d=c=null,h=u,v=u=0,g=null,y=s.next();null!==h&&!y.done;v++,y=s.next()){h.index>v?(g=h,h=null):g=h.sibling;var b=p(i,h,y.value,l);if(null===b){null===h&&(h=g);break}e&&h&&null===b.alternate&&t(i,h),u=a(b,u,v),null===d?c=b:d.sibling=b,d=b,h=g}if(y.done)return r(i,h),ni&&Xo(i,v),c;if(null===h){for(;!y.done;v++,y=s.next())null!==(y=f(i,y.value,l))&&(u=a(y,u,v),null===d?c=y:d.sibling=y,d=y);return ni&&Xo(i,v),c}for(h=o(i,h);!y.done;v++,y=s.next())null!==(y=m(h,i,v,y.value,l))&&(e&&null!==y.alternate&&h.delete(null===y.key?v:y.key),u=a(y,u,v),null===d?c=y:d.sibling=y,d=y);return e&&h.forEach((function(e){return t(i,e)})),ni&&Xo(i,v),c}(l,c,d,h);Wi(l,d)}return"string"==typeof d&&""!==d||"number"==typeof d?(d=""+d,null!==c&&6===c.tag?(r(l,c.sibling),(c=i(c,d)).return=l,l=c):(r(l,c),(c=Dl(d,l.mode,h)).return=l,l=c),u(l)):r(l,c)}}var Qi=Ki(!0),Xi=Ki(!1),Ji={},Yi=_o(Ji),Zi=_o(Ji),ea=_o(Ji);function ta(e){if(e===Ji)throw Error(n(174));return e}function na(e,t){switch(So(ea,t),So(Zi,e),So(Yi,Ji),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ie(null,"");break;default:t=ie(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Eo(Yi),So(Yi,t)}function ra(){Eo(Yi),Eo(Zi),Eo(ea)}function oa(e){ta(ea.current);var t=ta(Yi.current),n=ie(t,e.type);t!==n&&(So(Zi,e),So(Yi,n))}function ia(e){Zi.current===e&&(Eo(Yi),Eo(Zi))}var aa=_o(0);function ua(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var sa=[];function la(){for(var e=0;e<sa.length;e++)sa[e]._workInProgressVersionPrimary=null;sa.length=0}var ca=g.ReactCurrentDispatcher,da=g.ReactCurrentBatchConfig,fa=0,pa=null,ma=null,ha=null,va=!1,ga=!1,ya=0,ba=0;function wa(){throw Error(n(321))}function xa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!or(e[n],t[n]))return!1;return!0}function _a(e,t,r,o,i,a){if(fa=a,pa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ca.current=null===e||null===e.memoizedState?iu:au,e=r(o,i),ga){a=0;do{if(ga=!1,ya=0,25<=a)throw Error(n(301));a+=1,ha=ma=null,t.updateQueue=null,ca.current=uu,e=r(o,i)}while(ga)}if(ca.current=ou,t=null!==ma&&null!==ma.next,fa=0,ha=ma=pa=null,va=!1,t)throw Error(n(300));return e}function Ea(){var e=0!==ya;return ya=0,e}function Sa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ha?pa.memoizedState=ha=e:ha=ha.next=e,ha}function ka(){if(null===ma){var e=pa.alternate;e=null!==e?e.memoizedState:null}else e=ma.next;var t=null===ha?pa.memoizedState:ha.next;if(null!==t)ha=t,ma=e;else{if(null===e)throw Error(n(310));e={memoizedState:(ma=e).memoizedState,baseState:ma.baseState,baseQueue:ma.baseQueue,queue:ma.queue,next:null},null===ha?pa.memoizedState=ha=e:ha=ha.next=e}return ha}function Aa(e,t){return"function"==typeof t?t(e):t}function Ca(e){var t=ka(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=ma,i=o.baseQueue,a=r.pending;if(null!==a){if(null!==i){var u=i.next;i.next=a.next,a.next=u}o.baseQueue=i=a,r.pending=null}if(null!==i){a=i.next,o=o.baseState;var s=u=null,l=null,c=a;do{var d=c.lane;if((fa&d)===d)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),o=c.hasEagerState?c.eagerState:e(o,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(s=l=f,u=o):l=l.next=f,pa.lanes|=d,qs|=d}c=c.next}while(null!==c&&c!==a);null===l?u=o:l.next=s,or(o,t.memoizedState)||(yu=!0),t.memoizedState=o,t.baseState=u,t.baseQueue=l,r.lastRenderedState=o}if(null!==(e=r.interleaved)){i=e;do{a=i.lane,pa.lanes|=a,qs|=a,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Ia(e){var t=ka(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=r.dispatch,i=r.pending,a=t.memoizedState;if(null!==i){r.pending=null;var u=i=i.next;do{a=e(a,u.action),u=u.next}while(u!==i);or(a,t.memoizedState)||(yu=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,o]}function Ra(){}function Pa(e,t){var r=pa,o=ka(),i=t(),a=!or(o.memoizedState,i);if(a&&(o.memoizedState=i,yu=!0),o=o.queue,za(Na.bind(null,r,o,e),[e]),o.getSnapshot!==t||a||null!==ha&&1&ha.memoizedState.tag){if(r.flags|=2048,Ma(9,Oa.bind(null,r,o,i,t),void 0,null),null===Is)throw Error(n(349));30&fa||Ta(r,t,i)}return i}function Ta(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=pa.updateQueue)?(t={lastEffect:null,stores:null},pa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Oa(e,t,n,r){t.value=n,t.getSnapshot=r,ja(t)&&qa(e)}function Na(e,t,n){return n((function(){ja(t)&&qa(e)}))}function ja(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!or(e,n)}catch{return!0}}function qa(e){var t=Ii(e,1);null!==t&&tl(t,e,1,-1)}function Da(e){var t=Sa();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Aa,lastRenderedState:e},t.queue=e,e=e.dispatch=eu.bind(null,pa,e),[t.memoizedState,e]}function Ma(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=pa.updateQueue)?(t={lastEffect:null,stores:null},pa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function La(){return ka().memoizedState}function $a(e,t,n,r){var o=Sa();pa.flags|=e,o.memoizedState=Ma(1|t,n,void 0,void 0===r?null:r)}function Ba(e,t,n,r){var o=ka();r=void 0===r?null:r;var i=void 0;if(null!==ma){var a=ma.memoizedState;if(i=a.destroy,null!==r&&xa(r,a.deps))return void(o.memoizedState=Ma(t,n,i,r))}pa.flags|=e,o.memoizedState=Ma(1|t,n,i,r)}function Va(e,t){return $a(8390656,8,e,t)}function za(e,t){return Ba(2048,8,e,t)}function Fa(e,t){return Ba(4,2,e,t)}function Ua(e,t){return Ba(4,4,e,t)}function Ga(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Wa(e,t,n){return n=null!=n?n.concat([e]):null,Ba(4,4,Ga.bind(null,t,e),n)}function Ha(){}function Ka(e,t){var n=ka();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&xa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Qa(e,t){var n=ka();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&xa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xa(e,t,n){return 21&fa?(or(n,t)||(n=ft(),pa.lanes|=n,qs|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,yu=!0),e.memoizedState=n)}function Ja(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=da.transition;da.transition={};try{e(!1),t()}finally{vt=n,da.transition=r}}function Ya(){return ka().memoizedState}function Za(e,t,n){var r=el(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},tu(e))nu(t,n);else if(null!==(n=Ci(e,t,n,r))){tl(n,e,r,Zs()),ru(n,t,r)}}function eu(e,t,n){var r=el(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(tu(e))nu(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,u=i(a,n);if(o.hasEagerState=!0,o.eagerState=u,or(u,a)){var s=t.interleaved;return null===s?(o.next=o,Ai(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch{}null!==(n=Ci(e,t,o,r))&&(tl(n,e,r,o=Zs()),ru(n,t,r))}}function tu(e){var t=e.alternate;return e===pa||null!==t&&t===pa}function nu(e,t){ga=va=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ru(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,ht(e,n)}}var ou={readContext:Si,useCallback:wa,useContext:wa,useEffect:wa,useImperativeHandle:wa,useInsertionEffect:wa,useLayoutEffect:wa,useMemo:wa,useReducer:wa,useRef:wa,useState:wa,useDebugValue:wa,useDeferredValue:wa,useTransition:wa,useMutableSource:wa,useSyncExternalStore:wa,useId:wa,unstable_isNewReconciler:!1},iu={readContext:Si,useCallback:function(e,t){return Sa().memoizedState=[e,void 0===t?null:t],e},useContext:Si,useEffect:Va,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,$a(4194308,4,Ga.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $a(4194308,4,e,t)},useInsertionEffect:function(e,t){return $a(4,2,e,t)},useMemo:function(e,t){var n=Sa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Sa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Za.bind(null,pa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Sa().memoizedState=e},useState:Da,useDebugValue:Ha,useDeferredValue:function(e){return Sa().memoizedState=e},useTransition:function(){var e=Da(!1),t=e[0];return e=Ja.bind(null,e[1]),Sa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=pa,i=Sa();if(ni){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Is)throw Error(n(349));30&fa||Ta(o,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Va(Na.bind(null,o,a,e),[e]),o.flags|=2048,Ma(9,Oa.bind(null,o,a,r,t),void 0,null),r},useId:function(){var e=Sa(),t=Is.identifierPrefix;if(ni){var n=Qo;t=":"+t+"R"+(n=(Ko&~(1<<32-rt(Ko)-1)).toString(32)+n),0<(n=ya++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ba++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},au={readContext:Si,useCallback:Ka,useContext:Si,useEffect:za,useImperativeHandle:Wa,useInsertionEffect:Fa,useLayoutEffect:Ua,useMemo:Qa,useReducer:Ca,useRef:La,useState:function(){return Ca(Aa)},useDebugValue:Ha,useDeferredValue:function(e){return Xa(ka(),ma.memoizedState,e)},useTransition:function(){return[Ca(Aa)[0],ka().memoizedState]},useMutableSource:Ra,useSyncExternalStore:Pa,useId:Ya,unstable_isNewReconciler:!1},uu={readContext:Si,useCallback:Ka,useContext:Si,useEffect:za,useImperativeHandle:Wa,useInsertionEffect:Fa,useLayoutEffect:Ua,useMemo:Qa,useReducer:Ia,useRef:La,useState:function(){return Ia(Aa)},useDebugValue:Ha,useDeferredValue:function(e){var t=ka();return null===ma?t.memoizedState=e:Xa(t,ma.memoizedState,e)},useTransition:function(){return[Ia(Aa)[0],ka().memoizedState]},useMutableSource:Ra,useSyncExternalStore:Pa,useId:Ya,unstable_isNewReconciler:!1};function su(e,t){try{var n="",r=t;do{n+=L(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function lu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function cu(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var du="function"==typeof WeakMap?WeakMap:Map;function fu(e,t,n){(n=Oi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Fs||(Fs=!0,Us=r),cu(0,t)},n}function pu(e,t,n){(n=Oi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){cu(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){cu(0,t),"function"!=typeof r&&(null===Gs?Gs=new Set([this]):Gs.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function mu(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new du;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Sl.bind(null,e,t,n),t.then(e,e))}function hu(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vu(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Oi(-1,1)).tag=2,Ni(n,t,1))),n.lanes|=1),e)}var gu=g.ReactCurrentOwner,yu=!1;function bu(e,t,n,r){t.child=null===e?Xi(t,null,n,r):Qi(t,e.child,n,r)}function wu(e,t,n,r,o){n=n.render;var i=t.ref;return Ei(t,o),r=_a(e,t,n,r,i,o),n=Ea(),null===e||yu?(ni&&n&&Yo(t),t.flags|=1,bu(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Fu(e,t,o))}function xu(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Tl(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nl(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,_u(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:ir)(a,r)&&e.ref===t.ref)return Fu(e,t,o)}return t.flags|=1,(e=Ol(i,r)).ref=t.ref,e.return=t,t.child=e}function _u(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(ir(i,r)&&e.ref===t.ref){if(yu=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,Fu(e,t,o);131072&e.flags&&(yu=!0)}}return ku(e,t,n,r,o)}function Eu(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,So(Os,Ts),Ts|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,So(Os,Ts),Ts|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},So(Os,Ts),Ts|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,So(Os,Ts),Ts|=r;return bu(e,t,o,n),t.child}function Su(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ku(e,t,n,r,o){var i=Po(n)?Io:Ao.current;return i=Ro(t,i),Ei(t,o),n=_a(e,t,n,r,i,o),r=Ea(),null===e||yu?(ni&&r&&Yo(t),t.flags|=1,bu(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Fu(e,t,o))}function Au(e,t,n,r,o){if(Po(n)){var i=!0;jo(t)}else i=!1;if(Ei(t,o),null===t.stateNode)zu(e,t),zi(t,n,r),Ui(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,u=t.memoizedProps;a.props=u;var s=a.context,l=n.contextType;"object"==typeof l&&null!==l?l=Si(l):l=Ro(t,l=Po(n)?Io:Ao.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(u!==r||s!==l)&&Fi(t,a,r,l),Ri=!1;var f=t.memoizedState;a.state=f,Di(t,r,a,o),s=t.memoizedState,u!==r||f!==s||Co.current||Ri?("function"==typeof c&&($i(t,n,c,r),s=t.memoizedState),(u=Ri||Vi(t,n,u,r,f,s,l))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=l,r=u):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ti(e,t),u=t.memoizedProps,l=t.type===t.elementType?u:mi(t.type,u),a.props=l,d=t.pendingProps,f=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=Si(s):s=Ro(t,s=Po(n)?Io:Ao.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(u!==d||f!==s)&&Fi(t,a,r,s),Ri=!1,f=t.memoizedState,a.state=f,Di(t,r,a,o);var m=t.memoizedState;u!==d||f!==m||Co.current||Ri?("function"==typeof p&&($i(t,n,p,r),m=t.memoizedState),(l=Ri||Vi(t,n,l,r,f,m,s)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,m,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,m,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||u===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=s,r=l):("function"!=typeof a.componentDidUpdate||u===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Cu(e,t,n,r,i,o)}function Cu(e,t,n,r,o,i){Su(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&qo(t,n,!1),Fu(e,t,i);r=t.stateNode,gu.current=t;var u=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Qi(t,e.child,null,i),t.child=Qi(t,null,u,i)):bu(e,t,u,i),t.memoizedState=r.state,o&&qo(t,n,!0),t.child}function Iu(e){var t=e.stateNode;t.pendingContext?Oo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Oo(0,t.context,!1),na(e,t.containerInfo)}function Ru(e,t,n,r,o){return di(),fi(o),t.flags|=256,bu(e,t,n,r),t.child}var Pu,Tu,Ou,Nu,ju={dehydrated:null,treeContext:null,retryLane:0};function qu(e){return{baseLanes:e,cachePool:null,transitions:null}}function Du(e,t,r){var o,i=t.pendingProps,a=aa.current,u=!1,s=!!(128&t.flags);if((o=s)||(o=(null===e||null!==e.memoizedState)&&!!(2&a)),o?(u=!0,t.flags&=-129):(null===e||null!==e.memoizedState)&&(a|=1),So(aa,1&a),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=i.children,e=i.fallback,u?(i=t.mode,u=t.child,s={mode:"hidden",children:s},1&i||null===u?u=ql(s,i,0,null):(u.childLanes=0,u.pendingProps=s),e=jl(e,i,r,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=qu(r),t.memoizedState=ju,e):Mu(t,s));if(null!==(a=e.memoizedState)&&null!==(o=a.dehydrated))return function(e,t,r,o,i,a,u){if(r)return 256&t.flags?(t.flags&=-257,o=lu(Error(n(422))),Lu(e,t,u,o)):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=o.fallback,i=t.mode,o=ql({mode:"visible",children:o.children},i,0,null),a=jl(a,i,u,null),a.flags|=2,o.return=t,a.return=t,o.sibling=a,t.child=o,!!(1&t.mode)&&Qi(t,e.child,null,u),t.child.memoizedState=qu(u),t.memoizedState=ju,a);if(!(1&t.mode))return Lu(e,t,u,null);if("$!"===i.data){if(o=i.nextSibling&&i.nextSibling.dataset)var s=o.dgst;return o=s,Lu(e,t,u,o=lu(a=Error(n(419)),o,void 0))}if(s=!!(u&e.childLanes),yu||s){if(null!==(o=Is)){switch(u&-u){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=i&(o.suspendedLanes|u)?0:i)&&i!==a.retryLane&&(a.retryLane=i,Ii(e,i),tl(o,e,i,-1))}return ml(),Lu(e,t,u,o=lu(Error(n(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Al.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ti=ao(i.nextSibling),ei=t,ni=!0,ri=null,null!==e&&(Go[Wo++]=Ko,Go[Wo++]=Qo,Go[Wo++]=Ho,Ko=e.id,Qo=e.overflow,Ho=t),t=Mu(t,o.children),t.flags|=4096,t)}(e,t,s,i,o,a,r);if(u){u=i.fallback,s=t.mode,o=(a=e.child).sibling;var l={mode:"hidden",children:i.children};return 1&s||t.child===a?(i=Ol(a,l)).subtreeFlags=14680064&a.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null),null!==o?u=Ol(o,u):(u=jl(u,s,r,null)).flags|=2,u.return=t,i.return=t,i.sibling=u,t.child=i,i=u,u=t.child,s=null===(s=e.child.memoizedState)?qu(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},u.memoizedState=s,u.childLanes=e.childLanes&~r,t.memoizedState=ju,i}return e=(u=e.child).sibling,i=Ol(u,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=r),i.return=t,i.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function Mu(e,t){return(t=ql({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Lu(e,t,n,r){return null!==r&&fi(r),Qi(t,e.child,null,n),(e=Mu(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function $u(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),_i(e.return,t,n)}function Bu(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Vu(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(bu(e,t,r.children,n),2&(r=aa.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&$u(e,n,t);else if(19===e.tag)$u(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(So(aa,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ua(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Bu(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ua(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Bu(t,!0,n,null,i);break;case"together":Bu(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function zu(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Fu(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),qs|=t.lanes,!(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Ol(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Ol(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Uu(e,t){if(!ni)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Gu(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Wu(e,t,r){var i=t.pendingProps;switch(Zo(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gu(t),null;case 1:case 17:return Po(t.type)&&To(),Gu(t),null;case 3:return i=t.stateNode,ra(),Eo(Co),Eo(Ao),la(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(null===e||null===e.child)&&(li(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ri&&(il(ri),ri=null))),Tu(e,t),Gu(t),null;case 5:ia(t);var a=ta(ea.current);if(r=t.type,null!==e&&null!=t.stateNode)Ou(e,t,r,i,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(null===t.stateNode)throw Error(n(166));return Gu(t),null}if(e=ta(Yi.current),li(t)){i=t.stateNode,r=t.type;var u=t.memoizedProps;switch(i[lo]=t,i[co]=u,e=!!(1&t.mode),r){case"dialog":Dr("cancel",i),Dr("close",i);break;case"iframe":case"object":case"embed":Dr("load",i);break;case"video":case"audio":for(a=0;a<Or.length;a++)Dr(Or[a],i);break;case"source":Dr("error",i);break;case"img":case"image":case"link":Dr("error",i),Dr("load",i);break;case"details":Dr("toggle",i);break;case"input":H(i,u),Dr("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!u.multiple},Dr("invalid",i);break;case"textarea":te(i,u),Dr("invalid",i)}for(var s in he(r,u),a=null,u)if(u.hasOwnProperty(s)){var l=u[s];"children"===s?"string"==typeof l?i.textContent!==l&&(!0!==u.suppressHydrationWarning&&Qr(i.textContent,l,e),a=["children",l]):"number"==typeof l&&i.textContent!==""+l&&(!0!==u.suppressHydrationWarning&&Qr(i.textContent,l,e),a=["children",""+l]):o.hasOwnProperty(s)&&null!=l&&"onScroll"===s&&Dr("scroll",i)}switch(r){case"input":F(i),X(i,u,!0);break;case"textarea":F(i),re(i);break;case"select":case"option":break;default:"function"==typeof u.onClick&&(i.onclick=Xr)}i=a,t.updateQueue=i,null!==i&&(t.flags|=4)}else{s=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=oe(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof i.is?e=s.createElement(r,{is:i.is}):(e=s.createElement(r),"select"===r&&(s=e,i.multiple?s.multiple=!0:i.size&&(s.size=i.size))):e=s.createElementNS(e,r),e[lo]=t,e[co]=i,Pu(e,t,!1,!1),t.stateNode=e;e:{switch(s=ve(r,i),r){case"dialog":Dr("cancel",e),Dr("close",e),a=i;break;case"iframe":case"object":case"embed":Dr("load",e),a=i;break;case"video":case"audio":for(a=0;a<Or.length;a++)Dr(Or[a],e);a=i;break;case"source":Dr("error",e),a=i;break;case"img":case"image":case"link":Dr("error",e),Dr("load",e),a=i;break;case"details":Dr("toggle",e),a=i;break;case"input":H(e,i),a=W(e,i),Dr("invalid",e);break;case"option":default:a=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},a=j({},i,{value:void 0}),Dr("invalid",e);break;case"textarea":te(e,i),a=ee(e,i),Dr("invalid",e)}for(u in he(r,a),l=a)if(l.hasOwnProperty(u)){var c=l[u];"style"===u?pe(e,c):"dangerouslySetInnerHTML"===u?null!=(c=c?c.__html:void 0)&&se(e,c):"children"===u?"string"==typeof c?("textarea"!==r||""!==c)&&le(e,c):"number"==typeof c&&le(e,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(o.hasOwnProperty(u)?null!=c&&"onScroll"===u&&Dr("scroll",e):null!=c&&v(e,u,c,s))}switch(r){case"input":F(e),X(e,i,!1);break;case"textarea":F(e),re(e);break;case"option":null!=i.value&&e.setAttribute("value",""+V(i.value));break;case"select":e.multiple=!!i.multiple,null!=(u=i.value)?Z(e,!!i.multiple,u,!1):null!=i.defaultValue&&Z(e,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Xr)}switch(r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Gu(t),null;case 6:if(e&&null!=t.stateNode)Nu(e,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(n(166));if(r=ta(ea.current),ta(Yi.current),li(t)){if(i=t.stateNode,r=t.memoizedProps,i[lo]=t,(u=i.nodeValue!==r)&&null!==(e=ei))switch(e.tag){case 3:Qr(i.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qr(i.nodeValue,r,!!(1&e.mode))}u&&(t.flags|=4)}else(i=(9===r.nodeType?r:r.ownerDocument).createTextNode(i))[lo]=t,t.stateNode=i}return Gu(t),null;case 13:if(Eo(aa),i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ni&&null!==ti&&1&t.mode&&!(128&t.flags))ci(),di(),t.flags|=98560,u=!1;else if(u=li(t),null!==i&&null!==i.dehydrated){if(null===e){if(!u)throw Error(n(318));if(!(u=null!==(u=t.memoizedState)?u.dehydrated:null))throw Error(n(317));u[lo]=t}else di(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gu(t),u=!1}else null!==ri&&(il(ri),ri=null),u=!0;if(!u)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((i=null!==i)!==(null!==e&&null!==e.memoizedState)&&i&&(t.child.flags|=8192,!!(1&t.mode)&&(null===e||1&aa.current?0===Ns&&(Ns=3):ml())),null!==t.updateQueue&&(t.flags|=4),Gu(t),null);case 4:return ra(),Tu(e,t),null===e&&$r(t.stateNode.containerInfo),Gu(t),null;case 10:return xi(t.type._context),Gu(t),null;case 19:if(Eo(aa),null===(u=t.memoizedState))return Gu(t),null;if(i=!!(128&t.flags),null===(s=u.rendering))if(i)Uu(u,!1);else{if(0!==Ns||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(s=ua(e))){for(t.flags|=128,Uu(u,!1),null!==(i=s.updateQueue)&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=r,r=t.child;null!==r;)e=i,(u=r).flags&=14680066,null===(s=u.alternate)?(u.childLanes=0,u.lanes=e,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=s.childLanes,u.lanes=s.lanes,u.child=s.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=s.memoizedProps,u.memoizedState=s.memoizedState,u.updateQueue=s.updateQueue,u.type=s.type,e=s.dependencies,u.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return So(aa,1&aa.current|2),t.child}e=e.sibling}null!==u.tail&&Ke()>Vs&&(t.flags|=128,i=!0,Uu(u,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=ua(s))){if(t.flags|=128,i=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Uu(u,!0),null===u.tail&&"hidden"===u.tailMode&&!s.alternate&&!ni)return Gu(t),null}else 2*Ke()-u.renderingStartTime>Vs&&1073741824!==r&&(t.flags|=128,i=!0,Uu(u,!1),t.lanes=4194304);u.isBackwards?(s.sibling=t.child,t.child=s):(null!==(r=u.last)?r.sibling=s:t.child=s,u.last=s)}return null!==u.tail?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Ke(),t.sibling=null,r=aa.current,So(aa,i?1&r|2:1&r),t):(Gu(t),null);case 22:case 23:return cl(),i=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==i&&(t.flags|=8192),i&&1&t.mode?!!(1073741824&Ts)&&(Gu(t),6&t.subtreeFlags&&(t.flags|=8192)):Gu(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Hu(e,t){switch(Zo(t),t.tag){case 1:return Po(t.type)&&To(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ra(),Eo(Co),Eo(Ao),la(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ia(t),null;case 13:if(Eo(aa),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));di()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Eo(aa),null;case 4:return ra(),null;case 10:return xi(t.type._context),null;case 22:case 23:return cl(),null;default:return null}}Pu=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Tu=function(){},Ou=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ta(Yi.current);var a,u=null;switch(n){case"input":i=W(e,i),r=W(e,r),u=[];break;case"select":i=j({},i,{value:void 0}),r=j({},r,{value:void 0}),u=[];break;case"textarea":i=ee(e,i),r=ee(e,r),u=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Xr)}for(c in he(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var s=i[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(o.hasOwnProperty(c)?u||(u=[]):(u=u||[]).push(c,null));for(c in r){var l=r[c];if(s=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(null!=l||null!=s))if("style"===c)if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(u||(u=[]),u.push(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(u=u||[]).push(c,l)):"children"===c?"string"!=typeof l&&"number"!=typeof l||(u=u||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(o.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&Dr("scroll",e),u||s===l||(u=[])):(u=u||[]).push(c,l))}n&&(u=u||[]).push("style",n);var c=u;(t.updateQueue=c)&&(t.flags|=4)}},Nu=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ku=!1,Qu=!1,Xu="function"==typeof WeakSet?WeakSet:Set,Ju=null;function Yu(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){El(e,t,n)}else n.current=null}function Zu(e,t,n){try{n()}catch(n){El(e,t,n)}}var es=!1;function ts(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&Zu(t,n,i)}o=o.next}while(o!==r)}}function ns(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function rs(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function os(e){var t=e.alternate;null!==t&&(e.alternate=null,os(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[lo],delete t[co],delete t[po],delete t[mo],delete t[ho])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function is(e){return 5===e.tag||3===e.tag||4===e.tag}function as(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||is(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function us(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(us(e,t,n),e=e.sibling;null!==e;)us(e,t,n),e=e.sibling}function ss(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ss(e,t,n),e=e.sibling;null!==e;)ss(e,t,n),e=e.sibling}var ls=null,cs=!1;function ds(e,t,n){for(n=n.child;null!==n;)fs(e,t,n),n=n.sibling}function fs(e,t,n){if(nt&&"function"==typeof nt.onCommitFiberUnmount)try{nt.onCommitFiberUnmount(tt,n)}catch{}switch(n.tag){case 5:Qu||Yu(n,t);case 6:var r=ls,o=cs;ls=null,ds(e,t,n),cs=o,null!==(ls=r)&&(cs?(e=ls,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ls.removeChild(n.stateNode));break;case 18:null!==ls&&(cs?(e=ls,n=n.stateNode,8===e.nodeType?io(e.parentNode,n):1===e.nodeType&&io(e,n),$t(e)):io(ls,n.stateNode));break;case 4:r=ls,o=cs,ls=n.stateNode.containerInfo,cs=!0,ds(e,t,n),ls=r,cs=o;break;case 0:case 11:case 14:case 15:if(!Qu&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(!!(2&i)||!!(4&i))&&Zu(n,t,a),o=o.next}while(o!==r)}ds(e,t,n);break;case 1:if(!Qu&&(Yu(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){El(n,t,e)}ds(e,t,n);break;case 21:ds(e,t,n);break;case 22:1&n.mode?(Qu=(r=Qu)||null!==n.memoizedState,ds(e,t,n),Qu=r):ds(e,t,n);break;default:ds(e,t,n)}}function ps(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xu),t.forEach((function(t){var r=Cl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ms(e,t){var r=t.deletions;if(null!==r)for(var o=0;o<r.length;o++){var i=r[o];try{var a=e,u=t,s=u;e:for(;null!==s;){switch(s.tag){case 5:ls=s.stateNode,cs=!1;break e;case 3:case 4:ls=s.stateNode.containerInfo,cs=!0;break e}s=s.return}if(null===ls)throw Error(n(160));fs(a,u,i),ls=null,cs=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(e){El(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)hs(t,e),t=t.sibling}function hs(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ms(t,e),vs(e),4&o){try{ts(3,e,e.return),ns(3,e)}catch(t){El(e,e.return,t)}try{ts(5,e,e.return)}catch(t){El(e,e.return,t)}}break;case 1:ms(t,e),vs(e),512&o&&null!==r&&Yu(r,r.return);break;case 5:if(ms(t,e),vs(e),512&o&&null!==r&&Yu(r,r.return),32&e.flags){var i=e.stateNode;try{le(i,"")}catch(t){El(e,e.return,t)}}if(4&o&&null!=(i=e.stateNode)){var a=e.memoizedProps,u=null!==r?r.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===a.type&&null!=a.name&&K(i,a),ve(s,u);var c=ve(s,a);for(u=0;u<l.length;u+=2){var d=l[u],f=l[u+1];"style"===d?pe(i,f):"dangerouslySetInnerHTML"===d?se(i,f):"children"===d?le(i,f):v(i,d,f,c)}switch(s){case"input":Q(i,a);break;case"textarea":ne(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var m=a.value;null!=m?Z(i,!!a.multiple,m,!1):p!==!!a.multiple&&(null!=a.defaultValue?Z(i,!!a.multiple,a.defaultValue,!0):Z(i,!!a.multiple,a.multiple?[]:"",!1))}i[co]=a}catch(t){El(e,e.return,t)}}break;case 6:if(ms(t,e),vs(e),4&o){if(null===e.stateNode)throw Error(n(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){El(e,e.return,t)}}break;case 3:if(ms(t,e),vs(e),4&o&&null!==r&&r.memoizedState.isDehydrated)try{$t(t.containerInfo)}catch(t){El(e,e.return,t)}break;case 4:default:ms(t,e),vs(e);break;case 13:ms(t,e),vs(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Bs=Ke())),4&o&&ps(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Qu=(c=Qu)||d,ms(t,e),Qu=c):ms(t,e),vs(e),8192&o){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Ju=e,d=e.child;null!==d;){for(f=Ju=d;null!==Ju;){switch(m=(p=Ju).child,p.tag){case 0:case 11:case 14:case 15:ts(4,p,p.return);break;case 1:Yu(p,p.return);var h=p.stateNode;if("function"==typeof h.componentWillUnmount){o=p,r=p.return;try{t=o,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){El(o,r,e)}}break;case 5:Yu(p,p.return);break;case 22:if(null!==p.memoizedState){ws(f);continue}}null!==m?(m.return=p,Ju=m):ws(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,c?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(s=f.stateNode,u=null!=(l=f.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=fe("display",u))}catch(t){El(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){El(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ms(t,e),vs(e),4&o&&ps(e);case 21:}}function vs(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(is(r)){var o=r;break e}r=r.return}throw Error(n(160))}switch(o.tag){case 5:var i=o.stateNode;32&o.flags&&(le(i,""),o.flags&=-33),ss(e,as(e),i);break;case 3:case 4:var a=o.stateNode.containerInfo;us(e,as(e),a);break;default:throw Error(n(161))}}catch(t){El(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function gs(e,t,n){Ju=e,ys(e)}function ys(e,t,n){for(var r=!!(1&e.mode);null!==Ju;){var o=Ju,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Ku;if(!a){var u=o.alternate,s=null!==u&&null!==u.memoizedState||Qu;u=Ku;var l=Qu;if(Ku=a,(Qu=s)&&!l)for(Ju=o;null!==Ju;)s=(a=Ju).child,22===a.tag&&null!==a.memoizedState?xs(o):null!==s?(s.return=a,Ju=s):xs(o);for(;null!==i;)Ju=i,ys(i),i=i.sibling;Ju=o,Ku=u,Qu=l}bs(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Ju=i):bs(e)}}function bs(e){for(;null!==Ju;){var t=Ju;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Qu||ns(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Qu)if(null===r)o.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:mi(t.type,r.memoizedProps);o.componentDidUpdate(i,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Mi(t,a,o);break;case 3:var u=t.updateQueue;if(null!==u){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Mi(t,u,r)}break;case 5:var s=t.stateNode;if(null===r&&4&t.flags){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&$t(f)}}}break;default:throw Error(n(163))}Qu||512&t.flags&&rs(t)}catch(e){El(t,t.return,e)}}if(t===e){Ju=null;break}if(null!==(r=t.sibling)){r.return=t.return,Ju=r;break}Ju=t.return}}function ws(e){for(;null!==Ju;){var t=Ju;if(t===e){Ju=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Ju=n;break}Ju=t.return}}function xs(e){for(;null!==Ju;){var t=Ju;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ns(4,t)}catch(e){El(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){El(t,o,e)}}var i=t.return;try{rs(t)}catch(e){El(t,i,e)}break;case 5:var a=t.return;try{rs(t)}catch(e){El(t,a,e)}}}catch(e){El(t,t.return,e)}if(t===e){Ju=null;break}var u=t.sibling;if(null!==u){u.return=t.return,Ju=u;break}Ju=t.return}}var _s,Es=Math.ceil,Ss=g.ReactCurrentDispatcher,ks=g.ReactCurrentOwner,As=g.ReactCurrentBatchConfig,Cs=0,Is=null,Rs=null,Ps=0,Ts=0,Os=_o(0),Ns=0,js=null,qs=0,Ds=0,Ms=0,Ls=null,$s=null,Bs=0,Vs=1/0,zs=null,Fs=!1,Us=null,Gs=null,Ws=!1,Hs=null,Ks=0,Qs=0,Xs=null,Js=-1,Ys=0;function Zs(){return 6&Cs?Ke():-1!==Js?Js:Js=Ke()}function el(e){return 1&e.mode?2&Cs&&0!==Ps?Ps&-Ps:null!==pi.transition?(0===Ys&&(Ys=ft()),Ys):(0!==(e=vt)||(e=void 0===(e=window.event)?16:Ht(e.type)),e):1}function tl(e,t,r,o){if(50<Qs)throw Qs=0,Xs=null,Error(n(185));mt(e,r,o),(!(2&Cs)||e!==Is)&&(e===Is&&(!(2&Cs)&&(Ds|=r),4===Ns&&al(e,Ps)),nl(e,o),1===r&&0===Cs&&!(1&t.mode)&&(Vs=Ke()+500,Mo&&Bo()))}function nl(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-rt(i),u=1<<a,s=o[a];-1===s?(!(u&n)||!!(u&r))&&(o[a]=ct(u,t)):s<=t&&(e.expiredLanes|=u),i&=~u}}(e,t);var r=lt(e,e===Is?Ps:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Mo=!0,$o(e)}(ul.bind(null,e)):$o(ul.bind(null,e)),ro((function(){!(6&Cs)&&Bo()})),n=null;else{switch(gt(r)){case 1:n=Xe;break;case 4:n=Je;break;case 16:default:n=Ye;break;case 536870912:n=et}n=Il(n,rl.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function rl(e,t){if(Js=-1,Ys=0,6&Cs)throw Error(n(327));var r=e.callbackNode;if(xl()&&e.callbackNode!==r)return null;var o=lt(e,e===Is?Ps:0);if(0===o)return null;if(30&o||o&e.expiredLanes||t)t=hl(e,o);else{t=o;var i=Cs;Cs|=2;var a=pl();for((Is!==e||Ps!==t)&&(zs=null,Vs=Ke()+500,dl(e,t));;)try{gl();break}catch(t){fl(e,t)}wi(),Ss.current=a,Cs=i,null!==Rs?t=0:(Is=null,Ps=0,t=Ns)}if(0!==t){if(2===t&&(0!==(i=dt(e))&&(o=i,t=ol(e,i))),1===t)throw r=js,dl(e,0),al(e,o),nl(e,Ke()),r;if(6===t)al(e,o);else{if(i=e.current.alternate,!(30&o||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!or(i(),o))return!1}catch{return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=hl(e,o),2===t&&(a=dt(e),0!==a&&(o=a,t=ol(e,a))),1!==t)))throw r=js,dl(e,0),al(e,o),nl(e,Ke()),r;switch(e.finishedWork=i,e.finishedLanes=o,t){case 0:case 1:throw Error(n(345));case 2:case 5:wl(e,$s,zs);break;case 3:if(al(e,o),(130023424&o)===o&&10<(t=Bs+500-Ke())){if(0!==lt(e,0))break;if(((i=e.suspendedLanes)&o)!==o){Zs(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=eo(wl.bind(null,e,$s,zs),t);break}wl(e,$s,zs);break;case 4:if(al(e,o),(4194240&o)===o)break;for(t=e.eventTimes,i=-1;0<o;){var u=31-rt(o);a=1<<u,(u=t[u])>i&&(i=u),o&=~a}if(o=i,10<(o=(120>(o=Ke()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Es(o/1960))-o)){e.timeoutHandle=eo(wl.bind(null,e,$s,zs),o);break}wl(e,$s,zs);break;default:throw Error(n(329))}}}return nl(e,Ke()),e.callbackNode===r?rl.bind(null,e):null}function ol(e,t){var n=Ls;return e.current.memoizedState.isDehydrated&&(dl(e,t).flags|=256),2!==(e=hl(e,t))&&(t=$s,$s=n,null!==t&&il(t)),e}function il(e){null===$s?$s=e:$s.push.apply($s,e)}function al(e,t){for(t&=~Ms,t&=~Ds,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-rt(t),r=1<<n;e[n]=-1,t&=~r}}function ul(e){if(6&Cs)throw Error(n(327));xl();var t=lt(e,0);if(!(1&t))return nl(e,Ke()),null;var r=hl(e,t);if(0!==e.tag&&2===r){var o=dt(e);0!==o&&(t=o,r=ol(e,o))}if(1===r)throw r=js,dl(e,0),al(e,t),nl(e,Ke()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wl(e,$s,zs),nl(e,Ke()),null}function sl(e,t){var n=Cs;Cs|=1;try{return e(t)}finally{0===(Cs=n)&&(Vs=Ke()+500,Mo&&Bo())}}function ll(e){null!==Hs&&0===Hs.tag&&!(6&Cs)&&xl();var t=Cs;Cs|=1;var n=As.transition,r=vt;try{if(As.transition=null,vt=1,e)return e()}finally{vt=r,As.transition=n,!(6&(Cs=t))&&Bo()}}function cl(){Ts=Os.current,Eo(Os)}function dl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,to(n)),null!==Rs)for(n=Rs.return;null!==n;){var r=n;switch(Zo(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&To();break;case 3:ra(),Eo(Co),Eo(Ao),la();break;case 5:ia(r);break;case 4:ra();break;case 13:case 19:Eo(aa);break;case 10:xi(r.type._context);break;case 22:case 23:cl()}n=n.return}if(Is=e,Rs=e=Ol(e.current,null),Ps=Ts=t,Ns=0,js=null,Ms=Ds=qs=0,$s=Ls=null,null!==ki){for(t=0;t<ki.length;t++)if(null!==(r=(n=ki[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}ki=null}return e}function fl(e,t){for(;;){var r=Rs;try{if(wi(),ca.current=ou,va){for(var o=pa.memoizedState;null!==o;){var i=o.queue;null!==i&&(i.pending=null),o=o.next}va=!1}if(fa=0,ha=ma=pa=null,ga=!1,ya=0,ks.current=null,null===r||null===r.return){Ns=1,js=t,Rs=null;break}e:{var a=e,u=r.return,s=r,l=t;if(t=Ps,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l,d=s,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=hu(u);if(null!==m){m.flags&=-257,vu(m,u,s,0,t),1&m.mode&&mu(a,c,t),l=c;var h=(t=m).updateQueue;if(null===h){var v=new Set;v.add(l),t.updateQueue=v}else h.add(l);break e}if(!(1&t)){mu(a,c,t),ml();break e}l=Error(n(426))}else if(ni&&1&s.mode){var g=hu(u);if(null!==g){!(65536&g.flags)&&(g.flags|=256),vu(g,u,s,0,t),fi(su(l,s));break e}}a=l=su(l,s),4!==Ns&&(Ns=2),null===Ls?Ls=[a]:Ls.push(a),a=u;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,qi(a,fu(0,l,t));break e;case 1:s=l;var y=a.type,b=a.stateNode;if(!(128&a.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Gs&&Gs.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,qi(a,pu(a,s,t));break e}}a=a.return}while(null!==a)}bl(r)}catch(e){t=e,Rs===r&&null!==r&&(Rs=r=r.return);continue}break}}function pl(){var e=Ss.current;return Ss.current=ou,null===e?ou:e}function ml(){(0===Ns||3===Ns||2===Ns)&&(Ns=4),null===Is||!(268435455&qs)&&!(268435455&Ds)||al(Is,Ps)}function hl(e,t){var r=Cs;Cs|=2;var o=pl();for((Is!==e||Ps!==t)&&(zs=null,dl(e,t));;)try{vl();break}catch(t){fl(e,t)}if(wi(),Cs=r,Ss.current=o,null!==Rs)throw Error(n(261));return Is=null,Ps=0,Ns}function vl(){for(;null!==Rs;)yl(Rs)}function gl(){for(;null!==Rs&&!We();)yl(Rs)}function yl(e){var t=_s(e.alternate,e,Ts);e.memoizedProps=e.pendingProps,null===t?bl(e):Rs=t,ks.current=null}function bl(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Hu(n,t)))return n.flags&=32767,void(Rs=n);if(null===e)return Ns=6,void(Rs=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Wu(n,t,Ts)))return void(Rs=n);if(null!==(t=t.sibling))return void(Rs=t);Rs=t=e}while(null!==t);0===Ns&&(Ns=5)}function wl(e,t,r){var o=vt,i=As.transition;try{As.transition=null,vt=1,function(e,t,r,o){do{xl()}while(null!==Hs);if(6&Cs)throw Error(n(327));r=e.finishedWork;var i=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-rt(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Is&&(Rs=Is=null,Ps=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Ws||(Ws=!0,Il(Ye,(function(){return xl(),null}))),a=!!(15990&r.flags),15990&r.subtreeFlags||a){a=As.transition,As.transition=null;var u=vt;vt=1;var s=Cs;Cs|=4,ks.current=null,function(e,t){if(Jr=Vt,cr(e=lr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(o&&0!==o.rangeCount){r=o.anchorNode;var i=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var u=0,s=-1,l=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var m;f!==r||0!==i&&3!==f.nodeType||(s=u+i),f!==a||0!==o&&3!==f.nodeType||(l=u+o),3===f.nodeType&&(u+=f.nodeValue.length),null!==(m=f.firstChild);)p=f,f=m;for(;;){if(f===e)break t;if(p===r&&++c===i&&(s=u),p===a&&++d===o&&(l=u),null!==(m=f.nextSibling))break;p=(f=p).parentNode}f=m}r=-1===s||-1===l?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Yr={focusedElem:e,selectionRange:r},Vt=!1,Ju=t;null!==Ju;)if(e=(t=Ju).child,1028&t.subtreeFlags&&null!==e)e.return=t,Ju=e;else for(;null!==Ju;){t=Ju;try{var h=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var v=h.memoizedProps,g=h.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:mi(t.type,v),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(n(163))}}catch(e){El(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Ju=e;break}Ju=t.return}h=es,es=!1}(e,r),hs(r,e),dr(Yr),Vt=!!Jr,Yr=Jr=null,e.current=r,gs(r),He(),Cs=s,vt=u,As.transition=a}else e.current=r;if(Ws&&(Ws=!1,Hs=e,Ks=i),a=e.pendingLanes,0===a&&(Gs=null),function(e){if(nt&&"function"==typeof nt.onCommitFiberRoot)try{nt.onCommitFiberRoot(tt,e,void 0,!(128&~e.current.flags))}catch{}}(r.stateNode),nl(e,Ke()),null!==t)for(o=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],o(i.value,{componentStack:i.stack,digest:i.digest});if(Fs)throw Fs=!1,e=Us,Us=null,e;!!(1&Ks)&&0!==e.tag&&xl(),a=e.pendingLanes,1&a?e===Xs?Qs++:(Qs=0,Xs=e):Qs=0,Bo()}(e,t,r,o)}finally{As.transition=i,vt=o}return null}function xl(){if(null!==Hs){var e=gt(Ks),t=As.transition,r=vt;try{if(As.transition=null,vt=16>e?16:e,null===Hs)var o=!1;else{if(e=Hs,Hs=null,Ks=0,6&Cs)throw Error(n(331));var i=Cs;for(Cs|=4,Ju=e.current;null!==Ju;){var a=Ju,u=a.child;if(16&Ju.flags){var s=a.deletions;if(null!==s){for(var l=0;l<s.length;l++){var c=s[l];for(Ju=c;null!==Ju;){var d=Ju;switch(d.tag){case 0:case 11:case 15:ts(8,d,a)}var f=d.child;if(null!==f)f.return=d,Ju=f;else for(;null!==Ju;){var p=(d=Ju).sibling,m=d.return;if(os(d),d===c){Ju=null;break}if(null!==p){p.return=m,Ju=p;break}Ju=m}}}var h=a.alternate;if(null!==h){var v=h.child;if(null!==v){h.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(null!==v)}}Ju=a}}if(2064&a.subtreeFlags&&null!==u)u.return=a,Ju=u;else e:for(;null!==Ju;){if(2048&(a=Ju).flags)switch(a.tag){case 0:case 11:case 15:ts(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Ju=y;break e}Ju=a.return}}var b=e.current;for(Ju=b;null!==Ju;){var w=(u=Ju).child;if(2064&u.subtreeFlags&&null!==w)w.return=u,Ju=w;else e:for(u=b;null!==Ju;){if(2048&(s=Ju).flags)try{switch(s.tag){case 0:case 11:case 15:ns(9,s)}}catch(e){El(s,s.return,e)}if(s===u){Ju=null;break e}var x=s.sibling;if(null!==x){x.return=s.return,Ju=x;break e}Ju=s.return}}if(Cs=i,Bo(),nt&&"function"==typeof nt.onPostCommitFiberRoot)try{nt.onPostCommitFiberRoot(tt,e)}catch{}o=!0}return o}finally{vt=r,As.transition=t}}return!1}function _l(e,t,n){e=Ni(e,t=fu(0,t=su(n,t),1),1),t=Zs(),null!==e&&(mt(e,1,t),nl(e,t))}function El(e,t,n){if(3===e.tag)_l(e,e,n);else for(;null!==t;){if(3===t.tag){_l(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Gs||!Gs.has(r))){t=Ni(t,e=pu(t,e=su(n,e),1),1),e=Zs(),null!==t&&(mt(t,1,e),nl(t,e));break}}t=t.return}}function Sl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Zs(),e.pingedLanes|=e.suspendedLanes&n,Is===e&&(Ps&n)===n&&(4===Ns||3===Ns&&(130023424&Ps)===Ps&&500>Ke()-Bs?dl(e,0):Ms|=n),nl(e,t)}function kl(e,t){0===t&&(1&e.mode?(t=ut,!(130023424&(ut<<=1))&&(ut=4194304)):t=1);var n=Zs();null!==(e=Ii(e,t))&&(mt(e,t,n),nl(e,n))}function Al(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),kl(e,n)}function Cl(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(n(314))}null!==o&&o.delete(t),kl(e,r)}function Il(e,t){return Ue(e,t)}function Rl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pl(e,t,n,r){return new Rl(e,t,n,r)}function Tl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ol(e,t){var n=e.alternate;return null===n?((n=Pl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nl(e,t,r,o,i,a){var u=2;if(o=e,"function"==typeof e)Tl(e)&&(u=1);else if("string"==typeof e)u=5;else e:switch(e){case w:return jl(r.children,i,a,t);case x:u=8,i|=8;break;case _:return(e=Pl(12,r,t,2|i)).elementType=_,e.lanes=a,e;case A:return(e=Pl(13,r,t,i)).elementType=A,e.lanes=a,e;case C:return(e=Pl(19,r,t,i)).elementType=C,e.lanes=a,e;case P:return ql(r,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case E:u=10;break e;case S:u=9;break e;case k:u=11;break e;case I:u=14;break e;case R:u=16,o=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Pl(u,r,t,i)).elementType=e,t.type=o,t.lanes=a,t}function jl(e,t,n,r){return(e=Pl(7,e,r,t)).lanes=n,e}function ql(e,t,n,r){return(e=Pl(22,e,r,t)).elementType=P,e.lanes=n,e.stateNode={isHidden:!1},e}function Dl(e,t,n){return(e=Pl(6,e,null,t)).lanes=n,e}function Ml(e,t,n){return(t=Pl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ll(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pt(0),this.expirationTimes=pt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function $l(e,t,n,r,o,i,a,u,s){return e=new Ll(e,t,n,u,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Pl(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pi(i),e}function Bl(e){if(!e)return ko;e:{if($e(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Po(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Po(r))return No(e,r,t)}return t}function Vl(e,t,n,r,o,i,a,u,s){return(e=$l(n,r,!0,e,0,i,0,u,s)).context=Bl(null),n=e.current,(i=Oi(r=Zs(),o=el(n))).callback=t??null,Ni(n,i,o),e.current.lanes=o,mt(e,o,r),nl(e,r),e}function zl(e,t,n,r){var o=t.current,i=Zs(),a=el(o);return n=Bl(n),null===t.context?t.context=n:t.pendingContext=n,(t=Oi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ni(o,t,a))&&(tl(e,o,a,i),ji(e,o,a)),a}function Fl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Ul(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Gl(e,t){Ul(e,t),(e=e.alternate)&&Ul(e,t)}_s=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Co.current)yu=!0;else{if(!(e.lanes&r||128&t.flags))return yu=!1,function(e,t,n){switch(t.tag){case 3:Iu(t),di();break;case 5:oa(t);break;case 1:Po(t.type)&&jo(t);break;case 4:na(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;So(hi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(So(aa,1&aa.current),t.flags|=128,null):n&t.child.childLanes?Du(e,t,n):(So(aa,1&aa.current),null!==(e=Fu(e,t,n))?e.sibling:null);So(aa,1&aa.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Vu(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),So(aa,aa.current),r)break;return null;case 22:case 23:return t.lanes=0,Eu(e,t,n)}return Fu(e,t,n)}(e,t,r);yu=!!(131072&e.flags)}else yu=!1,ni&&1048576&t.flags&&Jo(t,Uo,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;zu(e,t),e=t.pendingProps;var i=Ro(t,Ao.current);Ei(t,r),i=_a(null,t,o,e,i,r);var a=Ea();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Po(o)?(a=!0,jo(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Pi(t),i.updater=Bi,t.stateNode=i,i._reactInternals=t,Ui(t,o,e,r),t=Cu(null,t,o,!0,a,r)):(t.tag=0,ni&&a&&Yo(t),bu(null,t,i,r),t=t.child),t;case 16:o=t.elementType;e:{switch(zu(e,t),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Tl(e)?1:0;if(null!=e){if((e=e.$$typeof)===k)return 11;if(e===I)return 14}return 2}(o),e=mi(o,e),i){case 0:t=ku(null,t,o,e,r);break e;case 1:t=Au(null,t,o,e,r);break e;case 11:t=wu(null,t,o,e,r);break e;case 14:t=xu(null,t,o,mi(o.type,e),r);break e}throw Error(n(306,o,""))}return t;case 0:return o=t.type,i=t.pendingProps,ku(e,t,o,i=t.elementType===o?i:mi(o,i),r);case 1:return o=t.type,i=t.pendingProps,Au(e,t,o,i=t.elementType===o?i:mi(o,i),r);case 3:e:{if(Iu(t),null===e)throw Error(n(387));o=t.pendingProps,i=(a=t.memoizedState).element,Ti(e,t),Di(t,o,null,r);var u=t.memoizedState;if(o=u.element,a.isDehydrated){if(a={element:o,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ru(e,t,o,r,i=su(Error(n(423)),t));break e}if(o!==i){t=Ru(e,t,o,r,i=su(Error(n(424)),t));break e}for(ti=ao(t.stateNode.containerInfo.firstChild),ei=t,ni=!0,ri=null,r=Xi(t,null,o,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(di(),o===i){t=Fu(e,t,r);break e}bu(e,t,o,r)}t=t.child}return t;case 5:return oa(t),null===e&&ui(t),o=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,u=i.children,Zr(o,i)?u=null:null!==a&&Zr(o,a)&&(t.flags|=32),Su(e,t),bu(e,t,u,r),t.child;case 6:return null===e&&ui(t),null;case 13:return Du(e,t,r);case 4:return na(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Qi(t,null,o,r):bu(e,t,o,r),t.child;case 11:return o=t.type,i=t.pendingProps,wu(e,t,o,i=t.elementType===o?i:mi(o,i),r);case 7:return bu(e,t,t.pendingProps,r),t.child;case 8:case 12:return bu(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,i=t.pendingProps,a=t.memoizedProps,u=i.value,So(hi,o._currentValue),o._currentValue=u,null!==a)if(or(a.value,u)){if(a.children===i.children&&!Co.current){t=Fu(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){u=a.child;for(var l=s.firstContext;null!==l;){if(l.context===o){if(1===a.tag){(l=Oi(-1,r&-r)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}a.lanes|=r,null!==(l=a.alternate)&&(l.lanes|=r),_i(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(10===a.tag)u=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(u=a.return))throw Error(n(341));u.lanes|=r,null!==(s=u.alternate)&&(s.lanes|=r),_i(u,r,t),u=a.sibling}else u=a.child;if(null!==u)u.return=a;else for(u=a;null!==u;){if(u===t){u=null;break}if(null!==(a=u.sibling)){a.return=u.return,u=a;break}u=u.return}a=u}bu(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps.children,Ei(t,r),o=o(i=Si(i)),t.flags|=1,bu(e,t,o,r),t.child;case 14:return i=mi(o=t.type,t.pendingProps),xu(e,t,o,i=mi(o.type,i),r);case 15:return _u(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:mi(o,i),zu(e,t),t.tag=1,Po(o)?(e=!0,jo(t)):e=!1,Ei(t,r),zi(t,o,i),Ui(t,o,i,r),Cu(null,t,o,!0,e,r);case 19:return Vu(e,t,r);case 22:return Eu(e,t,r)}throw Error(n(156,t.tag))};var Wl="function"==typeof reportError?reportError:function(e){console.error(e)};function Hl(e){this._internalRoot=e}function Kl(e){this._internalRoot=e}function Ql(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jl(){}function Yl(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var u=o;o=function(){var e=Fl(a);u.call(e)}}zl(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Fl(a);i.call(e)}}var a=Vl(t,r,e,0,null,!1,0,"",Jl);return e._reactRootContainer=a,e[fo]=a.current,$r(8===e.nodeType?e.parentNode:e),ll(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var u=r;r=function(){var e=Fl(s);u.call(e)}}var s=$l(e,0,!1,null,0,!1,0,"",Jl);return e._reactRootContainer=s,e[fo]=s.current,$r(8===e.nodeType?e.parentNode:e),ll((function(){zl(t,s,n,r)})),s}(n,t,e,o,r);return Fl(a)}Kl.prototype.render=Hl.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));zl(e,t,null,null)},Kl.prototype.unmount=Hl.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;ll((function(){zl(null,e,null,null)})),t[fo]=null}},Kl.prototype.unstable_scheduleHydration=function(e){if(e){var t=xt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Pt.length&&0!==t&&t<Pt[n].priority;n++);Pt.splice(n,0,e),0===n&&jt(e)}},yt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=st(t.pendingLanes);0!==n&&(ht(t,1|n),nl(t,Ke()),!(6&Cs)&&(Vs=Ke()+500,Bo()))}break;case 13:ll((function(){var t=Ii(e,1);if(null!==t){var n=Zs();tl(t,e,1,n)}})),Gl(e,1)}},bt=function(e){if(13===e.tag){var t=Ii(e,134217728);if(null!==t)tl(t,e,134217728,Zs());Gl(e,134217728)}},wt=function(e){if(13===e.tag){var t=el(e),n=Ii(e,t);if(null!==n)tl(n,e,t,Zs());Gl(e,t)}},xt=function(){return vt},_t=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},be=function(e,t,r){switch(t){case"input":if(Q(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var i=bo(o);if(!i)throw Error(n(90));U(o),Q(o,i)}}}break;case"textarea":ne(e,r);break;case"select":null!=(t=r.value)&&Z(e,!!r.multiple,t,!1)}},ke=sl,Ae=ll;var Zl={usingClientEntryPoint:!1,Events:[go,yo,bo,Ee,Se,sl]},ec={findFiberByHostInstance:vo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},tc={bundleType:ec.bundleType,version:ec.version,rendererPackageName:ec.rendererPackageName,rendererConfig:ec.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:g.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=ze(e))?null:e.stateNode},findFiberByHostInstance:ec.findFiberByHostInstance,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var nc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nc.isDisabled&&nc.supportsFiber)try{tt=nc.inject(tc),nt=nc}catch{}}return bi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zl,bi.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ql(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:b,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},bi.createRoot=function(e,t){if(!Ql(e))throw Error(n(299));var r=!1,o="",i=Wl;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=$l(e,1,!1,null,0,r,0,o,i),e[fo]=t.current,$r(8===e.nodeType?e.parentNode:e),new Hl(t)},bi.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t)throw"function"==typeof e.render?Error(n(188)):(e=Object.keys(e).join(","),Error(n(268,e)));return e=null===(e=ze(t))?null:e.stateNode},bi.flushSync=function(e){return ll(e)},bi.hydrate=function(e,t,r){if(!Xl(t))throw Error(n(200));return Yl(null,e,t,!0,r)},bi.hydrateRoot=function(e,t,r){if(!Ql(e))throw Error(n(405));var o=null!=r&&r.hydratedSources||null,i=!1,a="",u=Wl;if(null!=r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(u=r.onRecoverableError)),t=Vl(t,null,e,1,r??null,i,0,a,u),e[fo]=t.current,$r(e),o)for(e=0;e<o.length;e++)i=(i=(r=o[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Kl(t)},bi.render=function(e,t,r){if(!Xl(t))throw Error(n(200));return Yl(null,e,t,!1,r)},bi.unmountComponentAtNode=function(e){if(!Xl(e))throw Error(n(40));return!!e._reactRootContainer&&(ll((function(){Yl(null,null,e,!1,(function(){e._reactRootContainer=null,e[fo]=null}))})),!0)},bi.unstable_batchedUpdates=sl,bi.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Xl(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Yl(e,t,r,!1,o)},bi.version="18.2.0-next-9e3b772b8-20220608",bi}function M7(){if(Y$)return q1.exports;return Y$=1,function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||"function"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),q1.exports=N7(),q1.exports}var vu=M7();const D2=py(vu),Hf=m.forwardRef(((e,t)=>{const{children:n,...r}=e,o=m.Children.toArray(n),i=o.find(L7);if(i){const e=i.props.children,n=o.map((t=>t===i?m.Children.count(e)>1?m.Children.only(null):m.isValidElement(e)?e.props.children:null:t));return m.createElement(AS,Te({},r,{ref:t}),m.isValidElement(e)?m.cloneElement(e,void 0,n):null)}return m.createElement(AS,Te({},r,{ref:t}),n)}));Hf.displayName="Slot";const AS=m.forwardRef(((e,t)=>{const{children:n,...r}=e;return m.isValidElement(n)?m.cloneElement(n,{...F7(r,n.props),ref:t?PE(t,n.ref):n.ref}):m.Children.count(n)>1?m.Children.only(null):null}));AS.displayName="SlotClone";const TE=({children:e})=>m.createElement(m.Fragment,null,e);function L7(e){return m.isValidElement(e)&&e.type===TE}function F7(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const B7=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ft=B7.reduce(((e,t)=>{const n=m.forwardRef(((e,n)=>{const{asChild:r,...o}=e,i=r?Hf:t;return m.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),m.createElement(i,Te({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function N2(e,t){e&&vu.flushSync((()=>e.dispatchEvent(t)))}function j7(e,t=(null==globalThis?void 0:globalThis.document)){const n=ys(e);m.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}const kS="dismissableLayer.update",V7="dismissableLayer.pointerDownOutside",U7="dismissableLayer.focusOutside";let X$;const z7=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xy=m.forwardRef(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:u,onDismiss:s,...l}=e,c=m.useContext(z7),[d,f]=m.useState(null),p=null!==(n=null==d?void 0:d.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,h]=m.useState({}),v=Ut(t,(e=>f(e))),g=Array.from(c.layers),[y]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),w=d?g.indexOf(d):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,_=w>=b,E=W7((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));!_||n||(null==i||i(e),null==u||u(e),e.defaultPrevented||null==s||s())}),p),S=q7((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==a||a(e),null==u||u(e),e.defaultPrevented||null==s||s())}),p);return j7((e=>{w===c.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),p),m.useEffect((()=>{if(d)return r&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(X$=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),J$(),()=>{r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=X$)}}),[d,p,r,c]),m.useEffect((()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),J$())}),[d,c]),m.useEffect((()=>{const e=()=>h({});return document.addEventListener(kS,e),()=>document.removeEventListener(kS,e)}),[]),m.createElement(ft.div,Te({},l,{ref:v,style:{pointerEvents:x?_?"auto":"none":void 0,...e.style},onFocusCapture:et(e.onFocusCapture,S.onFocusCapture),onBlurCapture:et(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:et(e.onPointerDownCapture,E.onPointerDownCapture)}))}));function W7(e,t=(null==globalThis?void 0:globalThis.document)){const n=ys(e),r=m.useRef(!1),o=m.useRef((()=>{}));return m.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){M2(V7,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}function q7(e,t=(null==globalThis?void 0:globalThis.document)){const n=ys(e),r=m.useRef(!1);return m.useEffect((()=>{const e=e=>{e.target&&!r.current&&M2(U7,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function J$(){const e=new CustomEvent(kS);document.dispatchEvent(e)}function M2(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?N2(o,i):o.dispatchEvent(i)}const K1="focusScope.autoFocusOnMount",Q1="focusScope.autoFocusOnUnmount",Z$={bubbles:!1,cancelable:!0},OE=m.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[u,s]=m.useState(null),l=ys(o),c=ys(i),d=m.useRef(null),f=Ut(t,(e=>s(e))),p=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect((()=>{if(r){let e=function(e){if(p.paused||!u)return;const t=e.target;u.contains(t)?d.current=t:id(d.current,{select:!0})},t=function(e){if(p.paused||!u)return;const t=e.relatedTarget;null!==t&&(u.contains(t)||id(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&id(u)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return u&&r.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,u,p.paused]),m.useEffect((()=>{if(u){tI.add(p);const e=document.activeElement;if(!u.contains(e)){const t=new CustomEvent(K1,Z$);u.addEventListener(K1,l),u.dispatchEvent(t),t.defaultPrevented||(G7(X7(L2(u)),{select:!0}),document.activeElement===e&&id(u))}return()=>{u.removeEventListener(K1,l),setTimeout((()=>{const t=new CustomEvent(Q1,Z$);u.addEventListener(Q1,c),u.dispatchEvent(t),t.defaultPrevented||id(e??document.body,{select:!0}),u.removeEventListener(Q1,c),tI.remove(p)}),0)}}}),[u,l,c,p]);const h=m.useCallback((e=>{if(!n&&!r||p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=H7(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&id(i,{select:!0})):(e.preventDefault(),n&&id(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,p.paused]);return m.createElement(ft.div,Te({tabIndex:-1},a,{ref:f,onKeyDown:h}))}));function G7(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(id(r,{select:t}),document.activeElement!==n)return}function H7(e){const t=L2(e);return[eI(t,e),eI(t.reverse(),e)]}function L2(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function eI(e,t){for(const n of e)if(!K7(n,{upTo:t}))return n}function K7(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Q7(e){return e instanceof HTMLInputElement&&"select"in e}function id(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Q7(e)&&t&&e.select()}}const tI=Y7();function Y7(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=nI(e,t),e.unshift(t)},remove(t){var n;e=nI(e,t),null===(n=e[0])||void 0===n||n.resume()}}}function nI(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function X7(e){return e.filter((e=>"A"!==e.tagName))}const Sy=m.forwardRef(((e,t)=>{var n;const{container:r=(null==globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?D2.createPortal(m.createElement(ft.div,Te({},o,{ref:t})),r):null}));function J7(e,t){return m.useReducer(((e,n)=>t[e][n]??e),e)}const ea=e=>{const{present:t,children:n}=e,r=Z7(t),o="function"==typeof n?n({present:r.isPresent}):m.Children.only(n),i=Ut(r.ref,o.ref);return"function"==typeof n||r.isPresent?m.cloneElement(o,{ref:i}):null};function Z7(e){const[t,n]=m.useState(),r=m.useRef({}),o=m.useRef(e),i=m.useRef("none"),a=e?"mounted":"unmounted",[u,s]=J7(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect((()=>{const e=Sg(r.current);i.current="mounted"===u?e:"none"}),[u]),Uo((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=Sg(t);e?s("MOUNT"):"none"===a||"none"===(null==t?void 0:t.display)?s("UNMOUNT"):s(n&&r!==a?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,s]),Uo((()=>{if(t){const e=e=>{const n=Sg(r.current).includes(e.animationName);e.target===t&&n&&vu.flushSync((()=>s("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=Sg(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}s("ANIMATION_END")}),[t,s]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:m.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function Sg(e){return(null==e?void 0:e.animationName)||"none"}ea.displayName="Presence";let Y1=0;function AE(){m.useEffect((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:rI()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:rI()),Y1++,()=>{1===Y1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Y1--}}),[])}function rI(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Vo=function(){return Vo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Vo.apply(this,arguments)};function kE(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function F2(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)(r||!(o in t))&&(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var sv="right-scroll-bar-position",uv="width-before-scroll-bar",e8="with-scroll-bars-hidden",t8="--removed-body-scroll-bar-size";function X1(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}function n8(e,t){var n=m.useState((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}var r8=typeof window<"u"?m.useLayoutEffect:m.useEffect,oI=new WeakMap;function B2(e,t){var n=n8(null,(function(t){return e.forEach((function(e){return X1(e,t)}))}));return r8((function(){var t=oI.get(n);if(t){var r=new Set(t),o=new Set(e),i=n.current;r.forEach((function(e){o.has(e)||X1(e,null)})),o.forEach((function(e){r.has(e)||X1(e,i)}))}oI.set(n,e)}),[e]),n}function o8(e){return e}function i8(e,t){void 0===t&&(t=o8);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}function j2(e){void 0===e&&(e={});var t=i8(null);return t.options=Vo({async:!0,ssr:!1},e),t}var V2=function(e){var t=e.sideCar,n=kE(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return m.createElement(r,Vo({},n))};function U2(e,t){return e.useMedium(t),V2}V2.isSideCarExport=!0;var z2=j2(),J1=function(){},Ey=m.forwardRef((function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:J1,onWheelCapture:J1,onTouchMoveCapture:J1}),o=r[0],i=r[1],a=e.forwardProps,u=e.children,s=e.className,l=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,h=e.inert,v=e.allowPinchZoom,g=e.as,y=void 0===g?"div":g,b=kE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=f,x=B2([n,t]),_=Vo(Vo({},b),o);return m.createElement(m.Fragment,null,c&&m.createElement(w,{sideCar:z2,removeScrollBar:l,shards:d,noIsolation:p,inert:h,setCallbacks:i,allowPinchZoom:!!v,lockRef:n}),a?m.cloneElement(m.Children.only(u),Vo(Vo({},_),{ref:x})):m.createElement(y,Vo({},_,{className:s,ref:x}),u))}));Ey.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ey.classNames={fullWidth:uv,zeroRight:sv};var a8=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function s8(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=a8();return t&&e.setAttribute("nonce",t),e}function u8(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function l8(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}var c8=function(){var e=0,t=null;return{add:function(n){0==e&&(t=s8())&&(u8(t,n),l8(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},d8=function(){var e=c8();return function(t,n){m.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])}},DE=function(){var e=d8();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},f8={left:0,top:0,right:0,gap:0},Z1=function(e){return parseInt(e||"",10)||0},p8=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Z1(n),Z1(r),Z1(o)]},h8=function(e){if(void 0===e&&(e="margin"),typeof window>"u")return f8;var t=p8(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},m8=DE(),Th="data-scroll-locked",v8=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n .".concat(e8," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(u,"px ").concat(r,";\n }\n body[").concat(Th,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(sv," {\n right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(uv," {\n margin-right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(sv," .").concat(sv," {\n right: 0 ").concat(r,";\n }\n \n .").concat(uv," .").concat(uv," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(Th,"] {\n ").concat(t8,": ").concat(u,"px;\n }\n")},iI=function(){var e=parseInt(document.body.getAttribute(Th)||"0",10);return isFinite(e)?e:0},g8=function(){m.useEffect((function(){return document.body.setAttribute(Th,(iI()+1).toString()),function(){var e=iI()-1;e<=0?document.body.removeAttribute(Th):document.body.setAttribute(Th,e.toString())}}),[])},W2=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;g8();var i=m.useMemo((function(){return h8(o)}),[o]);return m.createElement(m8,{styles:v8(i,!t,o,n?"":"!important")})},DS=!1;if(typeof window<"u")try{var Eg=Object.defineProperty({},"passive",{get:function(){return DS=!0,!0}});window.addEventListener("test",Eg,Eg),window.removeEventListener("test",Eg,Eg)}catch{DS=!1}var wh=!!DS&&{passive:!1},y8=function(e){return"TEXTAREA"===e.tagName},q2=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!y8(e)&&"visible"===n[t])},w8=function(e){return q2(e,"overflowY")},_8=function(e){return q2(e,"overflowX")},aI=function(e,t){var n=t;do{if(typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host),G2(e,n)){var r=H2(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},b8=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},x8=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},G2=function(e,t){return"v"===e?w8(t):_8(t)},H2=function(e,t){return"v"===e?b8(t):x8(t)},S8=function(e,t){return"h"===e&&"rtl"===t?-1:1},E8=function(e,t,n,r,o){var i=S8(e,window.getComputedStyle(t).direction),a=i*r,u=n.target,s=t.contains(u),l=!1,c=a>0,d=0,f=0;do{var p=H2(e,u),m=p[0],h=p[1]-p[2]-i*m;(m||h)&&G2(e,u)&&(d+=h,f+=m),u=u.parentNode}while(!s&&u!==document.body||s&&(t.contains(u)||t===u));return(c&&(0===d||!o)||!c&&(0===f||!o))&&(l=!0),l},Cg=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},sI=function(e){return[e.deltaX,e.deltaY]},uI=function(e){return e&&"current"in e?e.current:e},C8=function(e,t){return e[0]===t[0]&&e[1]===t[1]},$8=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},I8=0,_h=[];function R8(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),o=m.useState(I8++)[0],i=m.useState((function(){return DE()}))[0],a=m.useRef(e);m.useEffect((function(){a.current=e}),[e]),m.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=F2([e.lockRef.current],(e.shards||[]).map(uI),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var u=m.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=Cg(e),u=n.current,s="deltaX"in e?e.deltaX:u[0]-i[0],l="deltaY"in e?e.deltaY:u[1]-i[1],c=e.target,d=Math.abs(s)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=aI(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=aI(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||l)&&(r.current=o),!o)return!0;var p=r.current||o;return E8(p,t,e,"h"===p?s:l,!0)}),[]),s=m.useCallback((function(e){var n=e;if(_h.length&&_h[_h.length-1]===i){var r="deltaY"in n?sI(n):Cg(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&C8(e.delta,r)}))[0];if(o&&o.should)return void(n.cancelable&&n.preventDefault());if(!o){var s=(a.current.shards||[]).map(uI).filter(Boolean).filter((function(e){return e.contains(n.target)}));(s.length>0?u(n,s[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),l=m.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),c=m.useCallback((function(e){n.current=Cg(e),r.current=void 0}),[]),d=m.useCallback((function(t){l(t.type,sI(t),t.target,u(t,e.lockRef.current))}),[]),f=m.useCallback((function(t){l(t.type,Cg(t),t.target,u(t,e.lockRef.current))}),[]);m.useEffect((function(){return _h.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",s,wh),document.addEventListener("touchmove",s,wh),document.addEventListener("touchstart",c,wh),function(){_h=_h.filter((function(e){return e!==i})),document.removeEventListener("wheel",s,wh),document.removeEventListener("touchmove",s,wh),document.removeEventListener("touchstart",c,wh)}}),[]);var p=e.removeScrollBar,h=e.inert;return m.createElement(m.Fragment,null,h?m.createElement(i,{styles:$8(o)}):null,p?m.createElement(W2,{gapMode:"margin"}):null)}const P8=U2(z2,R8);var Cy=m.forwardRef((function(e,t){return m.createElement(Ey,Vo({},e,{ref:t,sideCar:P8}))}));Cy.classNames=Ey.classNames;var T8=function(e){return typeof document>"u"?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},bh=new WeakMap,$g=new WeakMap,Ig={},ew=0,K2=function(e){return e&&(e.host||K2(e.parentNode))},O8=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=K2(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return!!e}))},A8=function(e,t,n,r){var o=O8(t,Array.isArray(e)?e:[e]);Ig[n]||(Ig[n]=new WeakMap);var i=Ig[n],a=[],u=new Set,s=new Set(o),l=function(e){!e||u.has(e)||(u.add(e),l(e.parentNode))};o.forEach(l);var c=function(e){!e||s.has(e)||Array.prototype.forEach.call(e.children,(function(e){if(u.has(e))c(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,s=(bh.get(e)||0)+1,l=(i.get(e)||0)+1;bh.set(e,s),i.set(e,l),a.push(e),1===s&&o&&$g.set(e,!0),1===l&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return c(t),u.clear(),ew++,function(){a.forEach((function(e){var t=bh.get(e)-1,o=i.get(e)-1;bh.set(e,t),i.set(e,o),t||($g.has(e)||e.removeAttribute(r),$g.delete(e)),o||e.removeAttribute(n)})),--ew||(bh=new WeakMap,bh=new WeakMap,$g=new WeakMap,Ig={})}},$y=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=T8(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),A8(r,o,n,"aria-hidden")):function(){return null}};const Q2="Dialog",[Y2,X2]=ni(Q2),[k8,gu]=Y2(Q2),D8=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,u=m.useRef(null),s=m.useRef(null),[l=!1,c]=pd({prop:r,defaultProp:o,onChange:i});return m.createElement(k8,{scope:t,triggerRef:u,contentRef:s,contentId:sd(),titleId:sd(),descriptionId:sd(),open:l,onOpenChange:c,onOpenToggle:m.useCallback((()=>c((e=>!e))),[c]),modal:a},n)},J2="DialogPortal",[N8,Z2]=Y2(J2,{forceMount:void 0}),M8=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=gu(J2,t);return m.createElement(N8,{scope:t,forceMount:n},m.Children.map(r,(e=>m.createElement(ea,{present:n||i.open},m.createElement(Sy,{asChild:!0,container:o},e)))))},NS="DialogOverlay",L8=m.forwardRef(((e,t)=>{const n=Z2(NS,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=gu(NS,e.__scopeDialog);return i.modal?m.createElement(ea,{present:r||i.open},m.createElement(F8,Te({},o,{ref:t}))):null})),F8=m.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=gu(NS,n);return m.createElement(Cy,{as:Hf,allowPinchZoom:!0,shards:[o.contentRef]},m.createElement(ft.div,Te({"data-state":nk(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))})),Mh="DialogContent",B8=m.forwardRef(((e,t)=>{const n=Z2(Mh,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=gu(Mh,e.__scopeDialog);return m.createElement(ea,{present:r||i.open},i.modal?m.createElement(j8,Te({},o,{ref:t})):m.createElement(V8,Te({},o,{ref:t})))})),j8=m.forwardRef(((e,t)=>{const n=gu(Mh,e.__scopeDialog),r=m.useRef(null),o=Ut(t,n.contentRef,r);return m.useEffect((()=>{const e=r.current;if(e)return $y(e)}),[]),m.createElement(ek,Te({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:et(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:et(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:et(e.onFocusOutside,(e=>e.preventDefault()))}))})),V8=m.forwardRef(((e,t)=>{const n=gu(Mh,e.__scopeDialog),r=m.useRef(!1),o=m.useRef(!1);return m.createElement(ek,Te({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,a;(null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented)||(r.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault());r.current=!1,o.current=!1},onInteractOutside:t=>{var i,a;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const u=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(u))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))})),ek=m.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,u=gu(Mh,n),s=Ut(t,m.useRef(null));return AE(),m.createElement(m.Fragment,null,m.createElement(OE,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},m.createElement(xy,Te({role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":nk(u.open)},a,{ref:s,onDismiss:()=>u.onOpenChange(!1)}))),!1)})),tk="DialogTitle",U8=m.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=gu(tk,n);return m.createElement(ft.h2,Te({id:o.titleId},r,{ref:t}))})),z8="DialogDescription",W8=m.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=gu(z8,n);return m.createElement(ft.p,Te({id:o.descriptionId},r,{ref:t}))})),q8="DialogClose",G8=m.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=gu(q8,n);return m.createElement(ft.button,Te({type:"button"},r,{ref:t,onClick:et(e.onClick,(()=>o.onOpenChange(!1)))}))}));function nk(e){return e?"open":"closed"}const H8="DialogTitleWarning",[K8,TZ]=I7(H8,{contentName:Mh,titleName:tk,docsSlug:"dialog"}),rk=D8,Iy=M8,jh=L8,Vh=B8,Dv=U8,Nv=W8,Ry=G8,Q8="AlertDialog",[Y8,OZ]=ni(Q8,[X2]),ep=X2(),X8=e=>{const{__scopeAlertDialog:t,...n}=e,r=ep(t);return m.createElement(Iy,Te({},r,n))},J8=m.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=ep(n);return m.createElement(jh,Te({},o,r,{ref:t}))})),ok="AlertDialogContent",[Z8,e4]=Y8(ok),t4=m.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,i=ep(n),a=Ut(t,m.useRef(null)),u=m.useRef(null);return m.createElement(K8,{contentName:ok,titleName:n4,docsSlug:"alert-dialog"},m.createElement(Z8,{scope:n,cancelRef:u},m.createElement(Vh,Te({role:"alertdialog"},i,o,{ref:a,onOpenAutoFocus:et(o.onOpenAutoFocus,(e=>{var t;e.preventDefault(),null===(t=u.current)||void 0===t||t.focus({preventScroll:!0})})),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault()}),m.createElement(TE,null,r),!1)))})),n4="AlertDialogTitle",r4=m.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=ep(n);return m.createElement(Dv,Te({},o,r,{ref:t}))})),o4=m.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=ep(n);return m.createElement(Nv,Te({},o,r,{ref:t}))})),i4=m.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=ep(n);return m.createElement(Ry,Te({},o,r,{ref:t}))})),a4="AlertDialogCancel",s4=m.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=e4(a4,n),i=ep(n),a=Ut(t,o);return m.createElement(Ry,Te({},i,r,{ref:a}))})),u4=X8,ik=J8,ak=t4,sk=i4,uk=s4,lk=r4,ck=o4,l4=u4,dk=m.forwardRef((({className:e,...t},n)=>G.jsx(ik,{className:we("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n})));dk.displayName=ik.displayName;const c4=m.forwardRef((({className:e,...t},n)=>G.jsxs(l4,{children:[G.jsx(dk,{}),G.jsx(ak,{ref:n,className:we("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-sm",e),...t})]})));c4.displayName=ak.displayName;const d4=m.forwardRef((({className:e,...t},n)=>G.jsx(lk,{ref:n,className:we("text-lg font-semibold",e),...t})));d4.displayName=lk.displayName;const f4=m.forwardRef((({className:e,...t},n)=>G.jsx(ck,{ref:n,className:we("text-sm text-muted-foreground",e),...t})));f4.displayName=ck.displayName;const p4=m.forwardRef((({className:e,...t},n)=>G.jsx(sk,{ref:n,className:we(RE(),e),...t})));p4.displayName=sk.displayName;const h4=m.forwardRef((({className:e,...t},n)=>G.jsx(uk,{ref:n,className:we(RE({variant:"primary"}),"mt-2 sm:mt-0",e),...t})));h4.displayName=uk.displayName;const fk="Avatar",[m4,AZ]=ni(fk),[v4,pk]=m4(fk),g4=m.forwardRef(((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,i]=m.useState("idle");return m.createElement(v4,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:i},m.createElement(ft.span,Te({},r,{ref:t})))})),y4="AvatarImage",w4=m.forwardRef(((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...i}=e,a=pk(y4,n),u=x4(r),s=ys((e=>{o(e),a.onImageLoadingStatusChange(e)}));return Uo((()=>{"idle"!==u&&s(u)}),[u,s]),"loaded"===u?m.createElement(ft.img,Te({},i,{ref:t,src:r})):null})),_4="AvatarFallback",b4=m.forwardRef(((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,i=pk(_4,n),[a,u]=m.useState(void 0===r);return m.useEffect((()=>{if(void 0!==r){const e=window.setTimeout((()=>u(!0)),r);return()=>window.clearTimeout(e)}}),[r]),a&&"loaded"!==i.imageLoadingStatus?m.createElement(ft.span,Te({},o,{ref:t})):null}));function x4(e){const[t,n]=m.useState("idle");return Uo((()=>{if(!e)return void n("error");let t=!0;const r=new window.Image,o=e=>()=>{t&&n(e)};return n("loading"),r.onload=o("loaded"),r.onerror=o("error"),r.src=e,()=>{t=!1}}),[e]),t}const hk=g4,mk=w4,vk=b4,gk=m.forwardRef((({className:e,...t},n)=>G.jsx(hk,{ref:n,className:we("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t})));gk.displayName=hk.displayName;const yk=m.forwardRef((({className:e,...t},n)=>G.jsx(mk,{ref:n,className:we("aspect-square size-full",e),...t})));yk.displayName=mk.displayName;const wk=m.forwardRef((({className:e,...t},n)=>G.jsx(vk,{ref:n,className:we("flex size-full items-center justify-center bg-gray-700 text-white",e),...t})));wk.displayName=vk.displayName;const S4=m.forwardRef((({className:e,...t},n)=>G.jsx("div",{ref:n,className:we("rounded-sm border bg-card text-card-foreground shadow-sm",e),...t})));S4.displayName="Card";const E4=m.forwardRef((({className:e,...t},n)=>G.jsx("div",{ref:n,className:we("flex flex-col space-y-1.5 p-6",e),...t})));E4.displayName="CardHeader";const C4=m.forwardRef((({className:e,...t},n)=>G.jsx("h3",{ref:n,className:we("text-3xl font-semibold leading-none tracking-tight",e),...t})));C4.displayName="CardTitle";const $4=m.forwardRef((({className:e,...t},n)=>G.jsx("p",{ref:n,className:we("text-sm text-muted-foreground",e),...t})));$4.displayName="CardDescription";const I4=m.forwardRef((({className:e,...t},n)=>G.jsx("div",{ref:n,className:we("p-6 pt-0",e),...t})));I4.displayName="CardContent";const R4=m.forwardRef((({className:e,...t},n)=>G.jsx("div",{ref:n,className:we("flex items-center p-6 pt-0",e),...t})));function P4(e){return"[object Object]"===Object.prototype.toString.call(e)}function lI(e){return P4(e)||Array.isArray(e)}function T4(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function NE(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;return JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every((n=>{const r=e[n],o=t[n];return"function"==typeof r?`${r}`==`${o}`:lI(r)&&lI(o)?NE(r,o):r===o}))}function cI(e){return e.concat().sort(((e,t)=>e.name>t.name?1:-1)).map((e=>e.options))}function O4(e,t){if(e.length!==t.length)return!1;const n=cI(e),r=cI(t);return n.every(((e,t)=>NE(e,r[t])))}function ME(e){return"number"==typeof e}function MS(e){return"string"==typeof e}function LE(e){return"boolean"==typeof e}function dI(e){return"[object Object]"===Object.prototype.toString.call(e)}function kn(e){return Math.abs(e)}function FE(e){return Math.sign(e)}function lv(e,t){return kn(e-t)}function A4(e,t){if(0===e||0===t||kn(e)<=kn(t))return 0;const n=lv(kn(e),kn(t));return kn(n/e)}function vv(e){return gv(e).map(Number)}function hs(e){return e[Mv(e)]}function Mv(e){return Math.max(0,e.length-1)}function BE(e,t){return t===Mv(e)}function fI(e,t=0){return Array.from(Array(e),((e,n)=>t+n))}function gv(e){return Object.keys(e)}function _k(e,t){return[e,t].reduce(((e,t)=>(gv(t).forEach((n=>{const r=e[n],o=t[n],i=dI(r)&&dI(o);e[n]=i?_k(r,o):o})),e)),{})}function bk(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function k4(e,t){const n={start:function(){return 0},center:function(e){return r(e)/2},end:r};function r(e){return t-e}return{measure:function(r,o){return MS(e)?n[e](r):e(t,r,o)}}}function yv(){let e=[];const t={add:function(n,r,o,i={passive:!0}){let a;if("addEventListener"in n)n.addEventListener(r,o,i),a=()=>n.removeEventListener(r,o,i);else{const e=n;e.addListener(o),a=()=>e.removeListener(o)}return e.push(a),t},clear:function(){e=e.filter((e=>e()))}};return t}function D4(e,t,n,r){const o=yv(),i=1e3/60;let a=null,u=0,s=0;function l(e){if(!s)return;a||(a=e);const o=e-a;for(a=e,u+=o;u>=i;)n(),u-=i;const c=kn(u/i);r(c),s&&t.requestAnimationFrame(l)}function c(){t.cancelAnimationFrame(s),a=null,u=0,s=0}return{init:function(){o.add(e,"visibilitychange",(()=>{e.hidden&&(a=null,u=0)}))},destroy:function(){c(),o.clear()},start:function(){s||(s=t.requestAnimationFrame(l))},stop:c,update:n,render:r}}function N4(e,t){const n="y"===e?"y":"x";return{scroll:n,cross:"y"===e?"x":"y",startEdge:"y"===n?"top":"rtl"===t?"right":"left",endEdge:"y"===n?"bottom":"rtl"===t?"left":"right",measureSize:function(e){const{width:t,height:r}=e;return"x"===n?t:r}}}function Kf(e=0,t=0){const n=kn(e-t);function r(t){return t<e}function o(e){return e>t}function i(e){return r(e)||o(e)}return{length:n,max:t,min:e,constrain:function(n){return i(n)?r(n)?e:t:n},reachedAny:i,reachedMax:o,reachedMin:r,removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function xk(e,t,n){const{constrain:r}=Kf(0,e),o=e+1;let i=a(t);function a(e){return n?kn((o+e)%o):r(e)}function u(){return i}function s(){return xk(e,u(),n)}const l={get:u,set:function(e){return i=a(e),l},add:function(e){return s().set(u()+e)},clone:s};return l}function M4(e){const t="rtl"===e?-1:1;return{apply:function(e){return e*t}}}function L4(e,t,n,r,o,i,a,u,s,l,c,d,f,p,m,h,v,g,y,b){const{cross:w}=e,x=["INPUT","SELECT","TEXTAREA"],_={passive:!1},E=yv(),S=yv(),k=Kf(50,225).constrain(m.measure(20)),A={mouse:300,touch:400},C={mouse:500,touch:600},I=h?43:25;let R=!1,P=0,T=0,O=!1,N=!1,j=!1,q=!1;function D(e){const n=a.readPoint(e),r=a.readPoint(e,w),o=lv(n,P),u=lv(r,T);if(!(N||q||e.cancelable&&(N=o>u,N)))return M(e);const l=a.pointerMove(e);o>v&&(j=!0),c.useFriction(.3).useDuration(1),s.start(),i.add(t.apply(l)),e.preventDefault()}function M(e){const n=d.byDistance(0,!1).index!==f.get(),r=a.pointerUp(e)*(h?C:A)[q?"mouse":"touch"],o=function(e,t){const n=f.add(-1*FE(e)),r=d.byDistance(e,!h).distance;return h||kn(e)<k?r:g&&t?.5*r:d.byIndex(n.get(),0).distance}(t.apply(r),n),i=A4(r,o),u=I-10*i,s=y+i/50;N=!1,O=!1,S.clear(),c.useDuration(u).useFriction(s),l.distance(o,!h),q=!1,p.emit("pointerUp")}function L(e){j&&(e.stopPropagation(),e.preventDefault())}return{init:function(e){if(!b)return;function t(t){(LE(b)||b(e,t))&&function(e){const t=bk(e,o);q=t,(!t||0===e.button)&&(function(e){const t=e.nodeName||"";return x.includes(t)}(e.target)||(j=h&&t&&!e.buttons&&R,R=lv(i.get(),u.get())>=2,O=!0,a.pointerDown(e),c.useFriction(0).useDuration(0),i.set(u),function(){const e=q?r:n;S.add(e,"touchmove",D,_).add(e,"touchend",M).add(e,"mousemove",D,_).add(e,"mouseup",M)}(),P=a.readPoint(e),T=a.readPoint(e,w),p.emit("pointerDown")))}(t)}const s=n;E.add(s,"dragstart",(e=>e.preventDefault()),_).add(s,"touchmove",(()=>{}),_).add(s,"touchend",(()=>{})).add(s,"touchstart",t).add(s,"mousedown",t).add(s,"touchcancel",M).add(s,"contextmenu",M).add(s,"click",L,!0)},pointerDown:function(){return O},destroy:function(){E.clear(),S.clear()}}}function F4(e,t){let n,r;function o(e){return e.timeStamp}function i(n,r){const o="client"+("x"===(r||e.scroll)?"X":"Y");return(bk(n,t)?n:n.touches[0])[o]}return{pointerDown:function(e){return n=e,r=e,i(e)},pointerMove:function(e){const t=i(e)-i(r),a=o(e)-o(n)>170;return r=e,a&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;const t=i(r)-i(n),a=o(e)-o(n),u=o(e)-o(r)>170,s=t/a;return a&&!u&&kn(s)>.1?s:0},readPoint:i}}function B4(){return{measure:function(e){const{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:o}=e;return{top:t,right:n+r,bottom:t+o,left:n,width:r,height:o}}}}function j4(e){return{measure:function(t){return e*(t/100)}}}function V4(e,t,n,r,o,i,a){let u,s,l=[],c=!1;function d(e){return o.measureSize(a.measure(e))}return{init:function(o){i&&(s=d(e),l=r.map(d),u=new ResizeObserver((a=>{c||(LE(i)||i(o,a))&&function(i){for(const a of i){const i=a.target===e,u=r.indexOf(a.target),c=i?s:l[u];if(kn(d(i?e:r[u])-c)>=.5){n.requestAnimationFrame((()=>{o.reInit(),t.emit("resize")}));break}}}(a)})),[e].concat(r).forEach((e=>u.observe(e))))},destroy:function(){u&&u.disconnect(),c=!0}}}function U4(e,t,n,r,o){let i=0,a=0,u=r,s=o,l=e.get(),c=0;function d(e){return u=e,p}function f(e){return s=e,p}const p={direction:function(){return a},duration:function(){return u},velocity:function(){return i},seek:function(){const t=n.get()-e.get();let r=0;return!u?(i=0,e.set(n),r=t):(i+=t/u,i*=s,l+=i,e.add(i),r=l-c),a=FE(r),c=l,p},settled:function(){return kn(n.get()-t.get())<.001},useBaseFriction:function(){return f(o)},useBaseDuration:function(){return d(r)},useFriction:f,useDuration:d};return p}function z4(e,t,n,r,o){const i=o.measure(10),a=o.measure(50),u=Kf(.1,.99);let s=!1;return{constrain:function(o){if(s||!e.reachedAny(n.get())||!e.reachedAny(t.get()))return;const l=e.reachedMin(t.get())?"min":"max",c=kn(e[l]-t.get()),d=n.get()-t.get(),f=u.constrain(c/a);n.subtract(d*f),!o&&kn(d)<i&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())},toggleActive:function(e){s=!e}}}function W4(e,t,n,r,o){const i=Kf(-t+e,0),a=n.map(((e,t)=>{const{min:r,max:o}=i,a=i.constrain(e),u=!t,l=BE(n,t);return u?o:l||s(r,a)?r:s(o,a)?o:a})).map((e=>parseFloat(e.toFixed(3)))),u=function(){const e=a[0],t=hs(a),n=a.lastIndexOf(e),r=a.indexOf(t)+1;return Kf(n,r)}();function s(e,t){return lv(e,t)<1}return{snapsContained:function(){if(t<=e+o)return[i.max];if("keepSnaps"===r)return a;const{min:n,max:s}=u;return a.slice(n,s)}(),scrollContainLimit:u}}function q4(e,t,n){const r=t[0];return{limit:Kf(n?r-e:hs(t),r)}}function G4(e,t,n,r){const o=t.min+.1,i=t.max+.1,{reachedMin:a,reachedMax:u}=Kf(o,i);return{loop:function(t){if(!function(e){return 1===e?u(n.get()):-1===e&&a(n.get())}(t))return;const o=e*(-1*t);r.forEach((e=>e.add(o)))}}}function H4(e){const{max:t,length:n}=e;return{get:function(e){return n?(e-t)/-n:0}}}function K4(e,t,n,r,o){const{startEdge:i,endEdge:a}=e,{groupSlides:u}=o,s=u(r).map((e=>hs(e)[a]-e[0][i])).map(kn).map(t.measure),l=r.map((e=>n[i]-e[i])).map((e=>-kn(e))),c=u(l).map((e=>e[0])).map(((e,t)=>e+s[t]));return{snaps:l,snapsAligned:c}}function Q4(e,t,n,r,o,i){const{groupSlides:a}=o,{min:u,max:s}=r;return{slideRegistry:function(){const r=a(i),o=!e||"keepSnaps"===t;return 1===n.length?[i]:o?r:r.slice(u,s).map(((e,t,n)=>{const r=!t,o=BE(n,t);if(r){return fI(hs(n[0])+1)}if(o){return fI(Mv(i)-hs(n)[0]+1,hs(n)[0])}return e}))}()}}function Y4(e,t,n,r,o){const{reachedAny:i,removeOffset:a,constrain:u}=r;function s(e){return e.concat().sort(((e,t)=>kn(e)-kn(t)))[0]}function l(t,r){const o=[t,t+n,t-n];if(!e)return o[0];if(!r)return s(o);const i=o.filter((e=>FE(e)===r));return i.length?s(i):hs(o)-n}return{byDistance:function(n,r){const s=o.get()+n,{index:c,distance:d}=function(n){const r=e?a(n):u(n),o=t.map((e=>e-r)).map((e=>l(e,0))).map(((e,t)=>({diff:e,index:t}))).sort(((e,t)=>kn(e.diff)-kn(t.diff))),{index:i}=o[0];return{index:i,distance:r}}(s),f=!e&&i(s);return!r||f?{index:c,distance:n}:{index:c,distance:n+l(t[c]-d,0)}},byIndex:function(e,n){return{index:e,distance:l(t[e]-o.get(),n)}},shortcut:l}}function X4(e,t,n,r,o,i,a){function u(o){const u=o.distance,s=o.index!==t.get();i.add(u),u&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),s&&(n.set(t.get()),t.set(o.index),a.emit("select"))}return{distance:function(e,t){u(o.byDistance(e,t))},index:function(e,n){const r=t.clone().set(e);u(o.byIndex(r.get(),n))}}}function J4(e,t,n,r,o,i){let a=0;function u(e){"Tab"===e.code&&(a=(new Date).getTime())}function s(u){i.add(u,"focus",(()=>{if((new Date).getTime()-a>10)return;e.scrollLeft=0;const i=t.indexOf(u),s=n.findIndex((e=>e.includes(i)));ME(s)&&(o.useDuration(0),r.index(s,0))}),{passive:!0,capture:!0})}return{init:function(){i.add(document,"keydown",u,!1),t.forEach(s)}}}function qg(e){let t=e;function n(e){return ME(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function Sk(e,t,n){const r="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},o=n.style;let i=!1;return{clear:function(){i||(o.transform="",n.getAttribute("style")||n.removeAttribute("style"))},to:function(e){i||(o.transform=r(t.apply(e)))},toggleActive:function(e){i=!e}}}function Z4(e,t,n,r,o,i,a,u,s,l){const c=vv(i),d=vv(i).reverse(),f=function(){const e=u[0];return h(m(d,e),r,!1)}().concat(function(){const e=n-u[0]-1;return h(m(c,e),-r,!0)}());function p(e,t){return e.reduce(((e,t)=>e-i[t]),t)}function m(e,t){return e.reduce(((e,n)=>p(e,t)>0?e.concat([n]):e),[])}function h(i,u,c){const d=function(e){return a.map(((t,r)=>({start:t-o[r]+.5+e,end:t+n-.5+e})))}(u);return i.map((n=>{const o=c?0:-r,i=c?r:0,a=c?"end":"start",u=d[n][a];return{index:n,loopPoint:u,slideLocation:qg(-1),translate:Sk(e,t,l[n]),target:()=>s.get()>u?o:i}}))}return{canLoop:function(){return f.every((({index:e})=>p(c.filter((t=>t!==e)),n)<=.1))},clear:function(){f.forEach((e=>e.translate.clear()))},loop:function(){f.forEach((e=>{const{target:t,translate:n,slideLocation:r}=e,o=t();o!==r.get()&&(n.to(o),r.set(o))}))},loopPoints:f}}function eF(e,t,n){let r,o=!1;return{init:function(i){n&&(r=new MutationObserver((e=>{o||(LE(n)||n(i,e))&&function(e){for(const n of e)if("childList"===n.type){i.reInit(),t.emit("slidesChanged");break}}(e)})),r.observe(e,{childList:!0}))},destroy:function(){r&&r.disconnect(),o=!0}}}function tF(e,t,n,r){const o={};let i,a=null,u=null,s=!1;return{init:function(){i=new IntersectionObserver((e=>{s||(e.forEach((e=>{const n=t.indexOf(e.target);o[n]=e})),a=null,u=null,n.emit("slidesInView"))}),{root:e.parentElement,threshold:r}),t.forEach((e=>i.observe(e)))},destroy:function(){i&&i.disconnect(),s=!0},get:function(e=!0){if(e&&a)return a;if(!e&&u)return u;const t=function(e){return gv(o).reduce(((t,n)=>{const r=parseInt(n),{isIntersecting:i}=o[r];return(e&&i||!e&&!i)&&t.push(r),t}),[])}(e);return e&&(a=t),e||(u=t),t}}}function nF(e,t,n,r,o,i){const{measureSize:a,startEdge:u,endEdge:s}=e,l=n[0]&&o,c=function(){if(!l)return 0;const e=n[0];return kn(t[u]-e[u])}(),d=function(){if(!l)return 0;const e=i.getComputedStyle(hs(r));return parseFloat(e.getPropertyValue(`margin-${s}`))}(),f=n.map(a),p=n.map(((e,t,n)=>{const r=!t,o=BE(n,t);return r?f[t]+c:o?f[t]+d:n[t+1][u]-e[u]})).map(kn);return{slideSizes:f,slideSizesWithGaps:p,startGap:c,endGap:d}}function rF(e,t,n,r,o,i,a,u,s,l){const{startEdge:c,endEdge:d}=e,f=ME(r);return{groupSlides:function(e){return f?function(e,t){return vv(e).filter((e=>e%t==0)).map((n=>e.slice(n,n+t)))}(e,r):function(e){return e.length?vv(e).reduce(((r,f)=>{const p=hs(r)||0,m=0===p,h=f===Mv(e),v=i[c]-a[p][c],g=i[c]-a[f][d],y=!o&&m?t.apply(u):0;return kn(g-(!o&&h?t.apply(s):0)-(v+y))>n+l&&r.push(f),h&&r.push(e.length),r}),[]).map(((t,n,r)=>{const o=Math.max(r[n-1]||0);return e.slice(o,t)})):[]}(e)}}}function oF(e,t,n,r,o,i,a){const{align:u,axis:s,direction:l,startIndex:c,loop:d,duration:f,dragFree:p,dragThreshold:m,inViewThreshold:h,slidesToScroll:v,skipSnaps:g,containScroll:y,watchResize:b,watchSlides:w,watchDrag:x}=i,_=B4(),E=_.measure(t),S=n.map(_.measure),k=M4(l),A=N4(s,l),C=A.measureSize(E),I=j4(C),R=k4(u,C),P=!d&&!!y,T=d||!!y,{slideSizes:O,slideSizesWithGaps:N,startGap:j,endGap:q}=nF(A,E,S,n,T,o),D=rF(A,k,C,v,d,E,S,j,q,2),{snaps:M,snapsAligned:L}=K4(A,R,E,S,D),$=-hs(M)+hs(N),{snapsContained:B,scrollContainLimit:V}=W4(C,$,L,y,2),z=P?B:L,{limit:F}=q4($,z,d),U=xk(Mv(z),c,d),G=U.clone(),W=vv(n),H=D4(r,o,(()=>(({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()})(ae)),(e=>(({scrollBody:e,translate:t,location:n,offsetLocation:r,scrollLooper:o,slideLooper:i,dragHandler:a,animation:u,eventHandler:s,options:{loop:l}},c)=>{const d=e.velocity(),f=e.settled();f&&!a.pointerDown()&&(u.stop(),s.emit("settle")),f||s.emit("scroll"),r.set(n.get()-d+d*c),l&&(o.loop(e.direction()),i.loop()),t.to(r.get())})(ae,e))),K=z[U.get()],Q=qg(K),X=qg(K),J=qg(K),Y=U4(Q,X,J,f,.68),Z=Y4(d,z,$,F,J),ee=X4(H,U,G,Y,Z,J,a),te=H4(F),ne=yv(),re=tF(t,n,a,h),{slideRegistry:oe}=Q4(P,y,z,V,D,W),ie=J4(e,n,oe,ee,Y,ne),ae={ownerDocument:r,ownerWindow:o,eventHandler:a,containerRect:E,slideRects:S,animation:H,axis:A,direction:k,dragHandler:L4(A,k,e,r,o,J,F4(A,o),Q,H,ee,Y,Z,U,a,I,p,m,g,.68,x),eventStore:ne,percentOfView:I,index:U,indexPrevious:G,limit:F,location:Q,offsetLocation:X,options:i,resizeHandler:V4(t,a,o,n,A,b,_),scrollBody:Y,scrollBounds:z4(F,X,J,Y,I),scrollLooper:G4($,F,X,[Q,X,J]),scrollProgress:te,scrollSnapList:z.map(te.get),scrollSnaps:z,scrollTarget:Z,scrollTo:ee,slideLooper:Z4(A,k,C,$,O,N,M,z,X,n),slideFocus:ie,slidesHandler:eF(t,a,w),slidesInView:re,slideIndexes:W,slideRegistry:oe,slidesToScroll:D,target:J,translate:Sk(A,k,t)};return ae}function iF(){const e={};let t;function n(t){return e[t]||[]}const r={init:function(e){t=e},emit:function(e){return n(e).forEach((n=>n(t,e))),r},off:function(t,o){return e[t]=n(t).filter((e=>e!==o)),r},on:function(t,o){return e[t]=n(t).concat([o]),r}};return r}R4.displayName="CardFooter";const aF={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0};function sF(e){function t(e,t){return _k(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){const r=n.breakpoints||{},o=gv(r).filter((t=>e.matchMedia(t).matches)).map((e=>r[e])).reduce(((e,n)=>t(e,n)),{});return t(n,o)},optionsMediaQueries:function(t){return t.map((e=>gv(e.breakpoints||{}))).reduce(((e,t)=>e.concat(t)),[]).map(e.matchMedia)}}}function uF(e){let t=[];return{init:function(n,r){return t=r.filter((({options:t})=>!1!==e.optionsAtMedia(t).active)),t.forEach((t=>t.init(n,e))),r.reduce(((e,t)=>Object.assign(e,{[t.name]:t})),{})},destroy:function(){t=t.filter((e=>e.destroy()))}}}function Jg(e,t,n){const r=e.ownerDocument,o=r.defaultView,i=sF(o),a=uF(i),u=yv(),s=iF(),{mergeOptions:l,optionsAtMedia:c,optionsMediaQueries:d}=i,{on:f,off:p,emit:m}=s,h=A;let v,g,y,b,w=!1,x=l(aF,Jg.globalOptions),_=l(x),E=[];function S(t){const n=oF(e,y,b,r,o,t,s);if(t.loop&&!n.slideLooper.canLoop()){return S(Object.assign({},t,{loop:!1}))}return n}function k(t,n){w||(x=l(x,t),_=c(x),E=n||E,function(){const{container:t,slides:n}=_;y=(MS(t)?e.querySelector(t):t)||e.children[0];const r=MS(n)?y.querySelectorAll(n):n;b=[].slice.call(r||y.children)}(),v=S(_),d([x,...E.map((({options:e})=>e))]).forEach((e=>u.add(e,"change",A))),_.active&&(v.translate.to(v.location.get()),v.animation.init(),v.slidesInView.init(),v.slideFocus.init(),v.eventHandler.init(P),v.resizeHandler.init(P),v.slidesHandler.init(P),v.options.loop&&v.slideLooper.loop(),y.offsetParent&&b.length&&v.dragHandler.init(P),g=a.init(P,E)))}function A(e,t){const n=R();C(),k(l({startIndex:n},e),t),s.emit("reInit")}function C(){v.dragHandler.destroy(),v.eventStore.clear(),v.translate.clear(),v.slideLooper.clear(),v.resizeHandler.destroy(),v.slidesHandler.destroy(),v.slidesInView.destroy(),v.animation.destroy(),a.destroy(),u.clear()}function I(e,t,n){!_.active||w||(v.scrollBody.useBaseFriction().useDuration(!0===t?0:_.duration),v.scrollTo.index(e,n||0))}function R(){return v.index.get()}const P={canScrollNext:function(){return v.index.add(1).get()!==R()},canScrollPrev:function(){return v.index.add(-1).get()!==R()},containerNode:function(){return y},internalEngine:function(){return v},destroy:function(){w||(w=!0,u.clear(),C(),s.emit("destroy"))},off:p,on:f,emit:m,plugins:function(){return g},previousScrollSnap:function(){return v.indexPrevious.get()},reInit:h,rootNode:function(){return e},scrollNext:function(e){I(v.index.add(1).get(),e,-1)},scrollPrev:function(e){I(v.index.add(-1).get(),e,1)},scrollProgress:function(){return v.scrollProgress.get(v.location.get())},scrollSnapList:function(){return v.scrollSnapList},scrollTo:I,selectedScrollSnap:R,slideNodes:function(){return b},slidesInView:function(){return v.slidesInView.get()},slidesNotInView:function(){return v.slidesInView.get(!1)}};return k(t,n),setTimeout((()=>s.emit("init")),0),P}function jE(e={},t=[]){const n=m.useRef(e),r=m.useRef(t),[o,i]=m.useState(),[a,u]=m.useState(),s=m.useCallback((()=>{o&&o.reInit(n.current,r.current)}),[o]);return m.useEffect((()=>{if(T4()&&a){Jg.globalOptions=jE.globalOptions;const e=Jg(a,n.current,r.current);return i(e),()=>e.destroy()}i(void 0)}),[a,i]),m.useEffect((()=>{NE(n.current,e)||(n.current=e,s())}),[e,s]),m.useEffect((()=>{O4(r.current,t)||(r.current=t,s())}),[t,s]),[u,o]}Jg.globalOptions=void 0,jE.globalOptions=void 0;const Ek=mu("",{variants:{variant:{fullHeight:"absolute bg-base_white_90 top-[0] h-[calc(100%-35px)] w-[32px] border-0 rounded-none transform-none text-gray-700 [&>svg]:text-gray-700 [&>svg]:size-[37px] [&>svg]:stroke-[3px]",bottom:"size-5 bottom-[0] rounded-[2px] bg-gray-900_50 disabled:opacity-1 hover:bg-gray-900_50 [&:disabled>svg]:text-gray-900_20 [&>svg]:text-white [&>svg]:size-5"},position:{left:"",right:""}},compoundVariants:[{variant:"fullHeight",position:"left",class:"rounded-tl-[6px] left-0"},{variant:"fullHeight",position:"right",class:"rounded-tr-[6px] right-0"},{variant:"bottom",position:"left",class:"mr-[6px]"}]}),Ck=m.createContext(null),Py=()=>{const e=m.useContext(Ck);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e},lF=m.forwardRef((({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:o,children:i,...a},u)=>{const[s,l]=jE({...t,axis:"horizontal"===e?"x":"y"},r),[c,d]=m.useState(!1),[f,p]=m.useState(!1),h=m.useCallback((e=>{e&&(d(e.canScrollPrev()),p(e.canScrollNext()))}),[]),v=m.useCallback((()=>{null==l||l.scrollPrev()}),[l]),g=m.useCallback((()=>{null==l||l.scrollNext()}),[l]),y=m.useCallback((e=>{"ArrowLeft"===e.key?(e.preventDefault(),v()):"ArrowRight"===e.key&&(e.preventDefault(),g())}),[v,g]);return m.useEffect((()=>{!l||!n||n(l)}),[l,n]),m.useEffect((()=>{if(l)return h(l),l.on("reInit",h),l.on("select",h),()=>{null==l||l.off("select",h)}}),[l,h]),G.jsx(Ck.Provider,{value:{carouselRef:s,api:l,opts:t,orientation:e||("y"===(null==t?void 0:t.axis)?"vertical":"horizontal"),scrollPrev:v,scrollNext:g,canScrollPrev:c,canScrollNext:f},children:G.jsx("div",{ref:u,onKeyDownCapture:y,className:we("relative",o),role:"region","aria-roledescription":"carousel",...a,children:i})})}));lF.displayName="Carousel";const cF=m.forwardRef((({className:e,...t},n)=>{const{carouselRef:r,orientation:o}=Py();return G.jsx("div",{ref:r,children:G.jsx("div",{ref:n,className:we("flex","horizontal"===o?"":"-mt-4 flex-col",e),...t})})}));cF.displayName="CarouselContent";const dF=m.forwardRef((({className:e,sideGap:t,isFullPreview:n,...r},o)=>{const{orientation:i}=Py();return G.jsx("div",{ref:o,role:"group","aria-roledescription":"slide",style:{...n&&{width:"100%"},marginRight:t&&`${t}px`,maxWidth:t&&`calc(100% - ${t}px)`},className:we("min-w-0 shrink-0 grow-0","horizontal"===i?!t&&"pr-[10px]":"pt-4",e),...r})}));dF.displayName="CarouselItem";const fF=m.forwardRef((({className:e,variant:t="fullHeight",size:n="icon_m",...r},o)=>{const{scrollPrev:i,canScrollPrev:a,opts:u}=Py(),s=we(("fullHeight"===t&&!a||!(null!=u&&u.active))&&"hidden",Ek({variant:t,position:"left"}),e);return G.jsxs(kv,{ref:o,variant:"primary",size:n,className:s,disabled:!a,onClick:i,...r,children:[G.jsx(b2,{}),G.jsx("span",{className:"sr-only",children:"Previous slide"})]})}));fF.displayName="CarouselPrevious";const pF=m.forwardRef((({className:e,variant:t="fullHeight",size:n="icon_m",...r},o)=>{const{scrollNext:i,canScrollNext:a,opts:u}=Py(),s=we(("fullHeight"===t&&!a||!(null!=u&&u.active))&&"hidden",Ek({variant:t,position:"right"}),e);return G.jsxs(kv,{ref:o,variant:"primary",size:n,className:s,disabled:!a,onClick:i,...r,children:[G.jsx(x2,{}),G.jsx("span",{className:"sr-only",children:"Next slide"})]})}));var tw,pI,nw,hI,rw,mI,ow,vI,iw,gI,aw,yI,sw,wI,uw,_I,lw,bI,cw,xI,dw,SI,fw,EI,pw,CI,hw,$I,mw,II,vw,RI,gw,PI,yw,TI,ww,OI,_w,AI,bw,kI,xw,DI,Sw,NI,Ew,MI,Cw,LI,$w,FI,Iw,BI,Rw,jI,Pw,VI,Tw,UI,Ow,zI,Aw,WI,kw,qI,Dw,GI,Nw,HI,Mw,KI,Lw,QI,Fw,YI,Bw,XI,jw,JI,Vw,ZI,Uw,eR,zw,tR,Ww,nR,qw,rR,Gw,oR,Hw,iR,Kw,aR,Qw,sR,Yw,uR,Xw,lR,Jw,cR,Zw,dR;function Ei(){if(pI)return tw;pI=1;var e=Array.isArray;return tw=e}function $k(){if(hI)return nw;hI=1;var e="object"==typeof ka&&ka&&ka.Object===Object&&ka;return nw=e}function ri(){if(mI)return rw;mI=1;var e=$k(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return rw=n}function Uh(){if(vI)return ow;vI=1;var e=ri().Symbol;return ow=e}function hF(){if(gI)return iw;gI=1;var e=Uh(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,o=e?e.toStringTag:void 0;return iw=function(e){var t=n.call(e,o),i=e[o];try{e[o]=void 0;var a=!0}catch{}var u=r.call(e);return a&&(t?e[o]=i:delete e[o]),u}}function mF(){if(yI)return aw;yI=1;var e=Object.prototype.toString;return aw=function(t){return e.call(t)}}function Il(){if(wI)return sw;wI=1;var e=Uh(),t=hF(),n=mF(),r=e?e.toStringTag:void 0;return sw=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?t(e):n(e)}}function ta(){if(_I)return uw;return _I=1,uw=function(e){return null!=e&&"object"==typeof e}}function Lv(){if(bI)return lw;bI=1;var e=Il(),t=ta();return lw=function(n){return"symbol"==typeof n||t(n)&&"[object Symbol]"==e(n)}}function VE(){if(xI)return cw;xI=1;var e=Ei(),t=Lv(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return cw=function(o,i){if(e(o))return!1;var a=typeof o;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=o&&!t(o))||(r.test(o)||!n.test(o)||null!=i&&o in Object(i))}}function ws(){if(SI)return dw;return SI=1,dw=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}function Ty(){if(EI)return fw;EI=1;var e=Il(),t=ws();return fw=function(n){if(!t(n))return!1;var r=e(n);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}}function vF(){if(CI)return pw;CI=1;var e=ri()["__core-js_shared__"];return pw=e}function gF(){if($I)return hw;$I=1;var e,t=vF(),n=(e=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"";return hw=function(e){return!!n&&n in e},hw}function Ik(){if(II)return mw;II=1;var e=Function.prototype.toString;return mw=function(t){if(null!=t){try{return e.call(t)}catch{}try{return t+""}catch{}}return""}}function yF(){if(RI)return vw;RI=1;var e=Ty(),t=gF(),n=ws(),r=Ik(),o=/^\[object .+?Constructor\]$/,i=Function.prototype,a=Object.prototype,u=i.toString,s=a.hasOwnProperty,l=RegExp("^"+u.call(s).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return vw=function(i){return!(!n(i)||t(i))&&(e(i)?l:o).test(r(i))}}function wF(){if(PI)return gw;return PI=1,gw=function(e,t){return null==e?void 0:e[t]}}function tp(){if(TI)return yw;TI=1;var e=yF(),t=wF();return yw=function(n,r){var o=t(n,r);return e(o)?o:void 0}}function Oy(){if(OI)return ww;OI=1;var e=tp()(Object,"create");return ww=e}function _F(){if(AI)return _w;AI=1;var e=Oy();return _w=function(){this.__data__=e?e(null):{},this.size=0}}function bF(){if(kI)return bw;return kI=1,bw=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}}function xF(){if(DI)return xw;DI=1;var e=Oy(),t=Object.prototype.hasOwnProperty;return xw=function(n){var r=this.__data__;if(e){var o=r[n];return"__lodash_hash_undefined__"===o?void 0:o}return t.call(r,n)?r[n]:void 0}}function SF(){if(NI)return Sw;NI=1;var e=Oy(),t=Object.prototype.hasOwnProperty;return Sw=function(n){var r=this.__data__;return e?void 0!==r[n]:t.call(r,n)}}function EF(){if(MI)return Ew;MI=1;var e=Oy();return Ew=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=e&&void 0===n?"__lodash_hash_undefined__":n,this}}function CF(){if(LI)return Cw;LI=1;var e=_F(),t=bF(),n=xF(),r=SF(),o=EF();function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,Cw=i}function $F(){if(FI)return $w;return FI=1,$w=function(){this.__data__=[],this.size=0}}function UE(){if(BI)return Iw;return BI=1,Iw=function(e,t){return e===t||e!=e&&t!=t}}function Ay(){if(jI)return Rw;jI=1;var e=UE();return Rw=function(t,n){for(var r=t.length;r--;)if(e(t[r][0],n))return r;return-1}}function IF(){if(VI)return Pw;VI=1;var e=Ay(),t=Array.prototype.splice;return Pw=function(n){var r=this.__data__,o=e(r,n);return!(o<0)&&(o==r.length-1?r.pop():t.call(r,o,1),--this.size,!0)}}function RF(){if(UI)return Tw;UI=1;var e=Ay();return Tw=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]}}function PF(){if(zI)return Ow;zI=1;var e=Ay();return Ow=function(t){return e(this.__data__,t)>-1}}function TF(){if(WI)return Aw;WI=1;var e=Ay();return Aw=function(t,n){var r=this.__data__,o=e(r,t);return o<0?(++this.size,r.push([t,n])):r[o][1]=n,this}}function ky(){if(qI)return kw;qI=1;var e=$F(),t=IF(),n=RF(),r=PF(),o=TF();function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,kw=i}function zE(){if(GI)return Dw;GI=1;var e=tp()(ri(),"Map");return Dw=e}function OF(){if(HI)return Nw;HI=1;var e=CF(),t=ky(),n=zE();return Nw=function(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}}function AF(){if(KI)return Mw;return KI=1,Mw=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}}function Dy(){if(QI)return Lw;QI=1;var e=AF();return Lw=function(t,n){var r=t.__data__;return e(n)?r["string"==typeof n?"string":"hash"]:r.map}}function kF(){if(YI)return Fw;YI=1;var e=Dy();return Fw=function(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}}function DF(){if(XI)return Bw;XI=1;var e=Dy();return Bw=function(t){return e(this,t).get(t)}}function NF(){if(JI)return jw;JI=1;var e=Dy();return jw=function(t){return e(this,t).has(t)}}function MF(){if(ZI)return Vw;ZI=1;var e=Dy();return Vw=function(t,n){var r=e(this,t),o=r.size;return r.set(t,n),this.size+=r.size==o?0:1,this}}function WE(){if(eR)return Uw;eR=1;var e=OF(),t=kF(),n=DF(),r=NF(),o=MF();function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,Uw=i}function LF(){if(tR)return zw;tR=1;var e=WE();function t(n,r){if("function"!=typeof n||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var o=function(){var e=arguments,t=r?r.apply(this,e):e[0],i=o.cache;if(i.has(t))return i.get(t);var a=n.apply(this,e);return o.cache=i.set(t,a)||i,a};return o.cache=new(t.Cache||e),o}return t.Cache=e,zw=t}function FF(){if(nR)return Ww;nR=1;var e=LF();return Ww=function(t){var n=e(t,(function(e){return 500===r.size&&r.clear(),e})),r=n.cache;return n}}function Rk(){if(rR)return qw;rR=1;var e=FF(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e((function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(t,(function(e,t,o,i){r.push(o?i.replace(n,"$1"):t||e)})),r}));return qw=r}function Pk(){if(oR)return Gw;return oR=1,Gw=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}}function BF(){if(iR)return Hw;iR=1;var e=Uh(),t=Pk(),n=Ei(),r=Lv(),o=1/0,i=e?e.prototype:void 0,a=i?i.toString:void 0;return Hw=function e(i){if("string"==typeof i)return i;if(n(i))return t(i,e)+"";if(r(i))return a?a.call(i):"";var u=i+"";return"0"==u&&1/i==-o?"-0":u},Hw}function Tk(){if(aR)return Kw;aR=1;var e=BF();return Kw=function(t){return null==t?"":e(t)}}function Ok(){if(sR)return Qw;sR=1;var e=Ei(),t=VE(),n=Rk(),r=Tk();return Qw=function(o,i){return e(o)?o:t(o,i)?[o]:n(r(o))}}function Fv(){if(uR)return Yw;uR=1;var e=Lv(),t=1/0;return Yw=function(n){if("string"==typeof n||e(n))return n;var r=n+"";return"0"==r&&1/n==-t?"-0":r}}function Ak(){if(lR)return Xw;lR=1;var e=Ok(),t=Fv();return Xw=function(n,r){for(var o=0,i=(r=e(r,n)).length;null!=n&&o<i;)n=n[t(r[o++])];return o&&o==i?n:void 0}}function kk(){if(cR)return Jw;cR=1;var e=Ak();return Jw=function(t,n,r){var o=null==t?void 0:e(t,n);return void 0===o?r:o}}function jF(){if(dR)return Zw;dR=1;var e=Il(),t=Ei(),n=ta();return Zw=function(r){return"string"==typeof r||!t(r)&&n(r)&&"[object String]"==e(r)}}pF.displayName="CarouselNext",kk();var VF=jF();const UF=py(VF);Ty(),ws();var fR,pR,t_,hR,n_,mR,e_={exports:{}},nn={};
|
|
79
79
|
/**
|
|
80
80
|
* @license React
|
|
81
81
|
* react-is.production.min.js
|
|
@@ -84,7 +84,7 @@ var fL=Object.defineProperty,pL=(e,t,n)=>t in e?fL(e,t,{enumerable:!0,configurab
|
|
|
84
84
|
*
|
|
85
85
|
* This source code is licensed under the MIT license found in the
|
|
86
86
|
* LICENSE file in the root directory of this source tree.
|
|
87
|
-
*/function zF(){if(fR)return nn;fR=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case r:case i:case o:case c:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case l:case p:case f:case a:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),nn.ContextConsumer=u,nn.ContextProvider=a,nn.Element=t,nn.ForwardRef=l,nn.Fragment=r,nn.Lazy=p,nn.Memo=f,nn.Portal=n,nn.Profiler=i,nn.StrictMode=o,nn.Suspense=c,nn.SuspenseList=d,nn.isAsyncMode=function(){return!1},nn.isConcurrentMode=function(){return!1},nn.isContextConsumer=function(e){return h(e)===u},nn.isContextProvider=function(e){return h(e)===a},nn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},nn.isForwardRef=function(e){return h(e)===l},nn.isFragment=function(e){return h(e)===r},nn.isLazy=function(e){return h(e)===p},nn.isMemo=function(e){return h(e)===f},nn.isPortal=function(e){return h(e)===n},nn.isProfiler=function(e){return h(e)===i},nn.isStrictMode=function(e){return h(e)===o},nn.isSuspense=function(e){return h(e)===c},nn.isSuspenseList=function(e){return h(e)===d},nn.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===c||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===u||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},nn.typeOf=h,nn}function WF(){return pR||(pR=1,t_.exports=zF()),t_.exports}function Dk(){if(hR)return n_;hR=1;var e=Il(),t=ta();return n_=function(n){return"number"==typeof n||t(n)&&"[object Number]"==e(n)}}function qF(){if(mR)return r_;mR=1;var e=Dk();return r_=function(t){return e(t)&&t!=+t}}WF(),qF(),Dk();var i_,vR,a_,gR,s_,yR,u_,wR,l_,_R,c_,bR,d_,xR,f_,SR,p_,ER,h_,CR,m_,$R,v_,IR,g_,RR,y_,PR,w_,TR,__,OR,b_,AR,x_,kR,S_,DR,E_,NR,C_,MR,$_,LR,I_,FR,R_,BR,Rg=function(e){return UF(e)&&e.indexOf("%")===e.length-1},GF=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},o_=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o]};function HF(){if(vR)return i_;vR=1;var e=ky();return i_=function(){this.__data__=new e,this.size=0}}function KF(){if(gR)return a_;return gR=1,a_=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}}function QF(){if(yR)return s_;return yR=1,s_=function(e){return this.__data__.get(e)}}function YF(){if(wR)return u_;return wR=1,u_=function(e){return this.__data__.has(e)}}function XF(){if(_R)return l_;_R=1;var e=ky(),t=WE(),n=qE();return l_=function(r,o){var i=this.__data__;if(i instanceof e){var a=i.__data__;if(!t||a.length<199)return a.push([r,o]),this.size=++i.size,this;i=this.__data__=new n(a)}return i.set(r,o),this.size=i.size,this}}function GE(){if(bR)return c_;bR=1;var e=ky(),t=HF(),n=KF(),r=QF(),o=YF(),i=XF();function a(t){var n=this.__data__=new e(t);this.size=n.size}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=o,a.prototype.set=i,c_=a}function JF(){if(xR)return d_;xR=1;return d_=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}}function ZF(){if(SR)return f_;return SR=1,f_=function(e){return this.__data__.has(e)}}function eB(){if(ER)return p_;ER=1;var e=qE(),t=JF(),n=ZF();function r(t){var n=-1,r=null==t?0:t.length;for(this.__data__=new e;++n<r;)this.add(t[n])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,p_=r}function tB(){if(CR)return h_;return CR=1,h_=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}}function nB(){if($R)return m_;return $R=1,m_=function(e,t){return e.has(t)}}function Nk(){if(IR)return v_;IR=1;var e=eB(),t=tB(),n=nB();return v_=function(r,o,i,a,u,s){var l=1&i,c=r.length,d=o.length;if(c!=d&&!(l&&d>c))return!1;var f=s.get(r),p=s.get(o);if(f&&p)return f==o&&p==r;var m=-1,h=!0,v=2&i?new e:void 0;for(s.set(r,o),s.set(o,r);++m<c;){var g=r[m],y=o[m];if(a)var b=l?a(y,g,m,o,r,s):a(g,y,m,r,o,s);if(void 0!==b){if(b)continue;h=!1;break}if(v){if(!t(o,(function(e,t){if(!n(v,t)&&(g===e||u(g,e,i,a,s)))return v.push(t)}))){h=!1;break}}else if(g!==y&&!u(g,y,i,a,s)){h=!1;break}}return s.delete(r),s.delete(o),h}}function Mk(){if(RR)return g_;RR=1;var e=ri().Uint8Array;return g_=e}function rB(){if(PR)return y_;return PR=1,y_=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}}function oB(){if(TR)return w_;return TR=1,w_=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}}function iB(){if(OR)return __;OR=1;var e=Uh(),t=Mk(),n=zE(),r=Nk(),o=rB(),i=oB(),a=e?e.prototype:void 0,u=a?a.valueOf:void 0;return __=function(e,a,s,l,c,d,f){switch(s){case"[object DataView]":if(e.byteLength!=a.byteLength||e.byteOffset!=a.byteOffset)return!1;e=e.buffer,a=a.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=a.byteLength||!d(new t(e),new t(a)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+e,+a);case"[object Error]":return e.name==a.name&&e.message==a.message;case"[object RegExp]":case"[object String]":return e==a+"";case"[object Map]":var p=o;case"[object Set]":var m=1&l;if(p||(p=i),e.size!=a.size&&!m)return!1;var h=f.get(e);if(h)return h==a;l|=2,f.set(e,a);var v=r(p(e),p(a),l,c,d,f);return f.delete(e),v;case"[object Symbol]":if(u)return u.call(e)==u.call(a)}return!1}}function HE(){if(AR)return b_;return AR=1,b_=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}}function Lk(){if(kR)return x_;kR=1;var e=HE(),t=Ei();return x_=function(n,r,o){var i=r(n);return t(n)?i:e(i,o(n))}}function aB(){if(DR)return S_;return DR=1,S_=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}}function Fk(){if(NR)return E_;return NR=1,E_=function(){return[]}}function KE(){if(MR)return C_;MR=1;var e=aB(),t=Fk(),n=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols;return C_=r?function(t){return null==t?[]:(t=Object(t),e(r(t),(function(e){return n.call(t,e)})))}:t}function sB(){if(LR)return $_;return LR=1,$_=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}}function uB(){if(FR)return I_;FR=1;var e=Il(),t=ta();return I_=function(n){return t(n)&&"[object Arguments]"==e(n)}}function QE(){if(BR)return R_;BR=1;var e=uB(),t=ta(),n=Object.prototype,r=n.hasOwnProperty,o=n.propertyIsEnumerable,i=e(function(){return arguments}())?e:function(e){return t(e)&&r.call(e,"callee")&&!o.call(e,"callee")};return R_=i}var P_,jR,VR,T_,UR,O_,zR,A_,WR,k_,qR,Jm={exports:{}};function lB(){if(jR)return P_;return jR=1,P_=function(){return!1}}function YE(){return VR||(VR=1,e=Jm,t=Jm.exports,n=ri(),r=lB(),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,u=(a?a.isBuffer:void 0)||r,e.exports=u),Jm.exports;var e,t,n,r,o,i,a,u}function XE(){if(UR)return T_;UR=1;var e=/^(?:0|[1-9]\d*)$/;return T_=function(t,n){var r=typeof t;return!!(n=n??9007199254740991)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}}function JE(){if(zR)return O_;zR=1;return O_=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}function cB(){if(WR)return A_;WR=1;var e=Il(),t=JE(),n=ta(),r={};return r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,A_=function(o){return n(o)&&t(o.length)&&!!r[e(o)]}}function ZE(){if(qR)return k_;return qR=1,k_=function(e){return function(t){return e(t)}}}Jm.exports;var GR,D_,HR,N_,KR,M_,QR,L_,YR,F_,XR,B_,JR,j_,ZR,V_,eP,U_,tP,z_,nP,W_,rP,q_,oP,G_,iP,H_,aP,K_,sP,Q_,uP,Y_,lP,X_,cP,J_,dP,Z_,fP,eb,pP,tb,hP,nb,mP,rb,vP,ob,gP,ib,yP,ab,wP,sb,_P,ub,bP,lb,xP,cb,SP,db,EP,fb,CP,pb,$P,hb,IP,mb,RP,vb,PP,gb,TP,yb,OP,wb,AP,_b,kP,bb,DP,xb,NP,Sb,MP,Eb,LP,Cb,FP,$b,BP,Ib,jP,Rb,VP,Pb,UP,Tb,zP,Ob,WP,Zm={exports:{}};function eC(){return GR||(GR=1,e=Zm,t=Zm.exports,n=$k(),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch{}}(),e.exports=a),Zm.exports;var e,t,n,r,o,i,a}function Bk(){if(HR)return D_;HR=1;var e=cB(),t=ZE(),n=eC(),r=n&&n.isTypedArray,o=r?t(r):e;return D_=o}function jk(){if(KR)return N_;KR=1;var e=sB(),t=QE(),n=Ei(),r=YE(),o=XE(),i=Bk(),a=Object.prototype.hasOwnProperty;return N_=function(u,s){var l=n(u),c=!l&&t(u),d=!l&&!c&&r(u),f=!l&&!c&&!d&&i(u),p=l||c||d||f,m=p?e(u.length,String):[],h=m.length;for(var v in u)(s||a.call(u,v))&&(!p||!("length"==v||d&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||o(v,h)))&&m.push(v);return m}}function tC(){if(QR)return M_;QR=1;var e=Object.prototype;return M_=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}function Vk(){if(YR)return L_;return YR=1,L_=function(e,t){return function(n){return e(t(n))}}}function dB(){if(XR)return F_;XR=1;var e=Vk()(Object.keys,Object);return F_=e}function Uk(){if(JR)return B_;JR=1;var e=tC(),t=dB(),n=Object.prototype.hasOwnProperty;return B_=function(r){if(!e(r))return t(r);var o=[];for(var i in Object(r))n.call(r,i)&&"constructor"!=i&&o.push(i);return o}}function zk(){if(ZR)return j_;ZR=1;var e=Ty(),t=JE();return j_=function(n){return null!=n&&t(n.length)&&!e(n)}}function Ny(){if(eP)return V_;eP=1;var e=jk(),t=Uk(),n=zk();return V_=function(r){return n(r)?e(r):t(r)}}function Wk(){if(tP)return U_;tP=1;var e=Lk(),t=KE(),n=Ny();return U_=function(r){return e(r,n,t)}}function fB(){if(nP)return z_;nP=1;var e=Wk(),t=Object.prototype.hasOwnProperty;return z_=function(n,r,o,i,a,u){var s=1&o,l=e(n),c=l.length;if(c!=e(r).length&&!s)return!1;for(var d=c;d--;){var f=l[d];if(!(s?f in r:t.call(r,f)))return!1}var p=u.get(n),m=u.get(r);if(p&&m)return p==r&&m==n;var h=!0;u.set(n,r),u.set(r,n);for(var v=s;++d<c;){var g=n[f=l[d]],y=r[f];if(i)var b=s?i(y,g,f,r,n,u):i(g,y,f,n,r,u);if(!(void 0===b?g===y||a(g,y,o,i,u):b)){h=!1;break}v||(v="constructor"==f)}if(h&&!v){var w=n.constructor,x=r.constructor;w!=x&&"constructor"in n&&"constructor"in r&&!("function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x)&&(h=!1)}return u.delete(n),u.delete(r),h}}function pB(){if(rP)return W_;rP=1;var e=tp()(ri(),"DataView");return W_=e}function hB(){if(oP)return q_;oP=1;var e=tp()(ri(),"Promise");return q_=e}function mB(){if(iP)return G_;iP=1;var e=tp()(ri(),"Set");return G_=e}function qk(){if(aP)return H_;aP=1;var e=tp()(ri(),"WeakMap");return H_=e}function Bv(){if(sP)return K_;sP=1;var e=pB(),t=WE(),n=hB(),r=mB(),o=qk(),i=Il(),a=Ik(),u="[object Map]",s="[object Promise]",l="[object Set]",c="[object WeakMap]",d="[object DataView]",f=a(e),p=a(t),m=a(n),h=a(r),v=a(o),g=i;return(e&&g(new e(new ArrayBuffer(1)))!=d||t&&g(new t)!=u||n&&g(n.resolve())!=s||r&&g(new r)!=l||o&&g(new o)!=c)&&(g=function(e){var t=i(e),n="[object Object]"==t?e.constructor:void 0,r=n?a(n):"";if(r)switch(r){case f:return d;case p:return u;case m:return s;case h:return l;case v:return c}return t}),K_=g}function vB(){if(uP)return Q_;uP=1;var e=GE(),t=Nk(),n=iB(),r=fB(),o=Bv(),i=Ei(),a=YE(),u=Bk(),s="[object Arguments]",l="[object Array]",c="[object Object]",d=Object.prototype.hasOwnProperty;return Q_=function(f,p,m,h,v,g){var y=i(f),b=i(p),w=y?l:o(f),x=b?l:o(p),_=(w=w==s?c:w)==c,E=(x=x==s?c:x)==c,S=w==x;if(S&&a(f)){if(!a(p))return!1;y=!0,_=!1}if(S&&!_)return g||(g=new e),y||u(f)?t(f,p,m,h,v,g):n(f,p,w,m,h,v,g);if(!(1&m)){var A=_&&d.call(f,"__wrapped__"),k=E&&d.call(p,"__wrapped__");if(A||k){var C=A?f.value():f,I=k?p.value():p;return g||(g=new e),v(C,I,m,h,g)}}return!!S&&(g||(g=new e),r(f,p,m,h,v,g))}}function Gk(){if(lP)return Y_;lP=1;var e=vB(),t=ta();return Y_=function n(r,o,i,a,u){return r===o||(null==r||null==o||!t(r)&&!t(o)?r!=r&&o!=o:e(r,o,i,a,n,u))},Y_}function gB(){if(cP)return X_;cP=1;var e=GE(),t=Gk();return X_=function(n,r,o,i){var a=o.length,u=a,s=!i;if(null==n)return!u;for(n=Object(n);a--;){var l=o[a];if(s&&l[2]?l[1]!==n[l[0]]:!(l[0]in n))return!1}for(;++a<u;){var c=(l=o[a])[0],d=n[c],f=l[1];if(s&&l[2]){if(void 0===d&&!(c in n))return!1}else{var p=new e;if(i)var m=i(d,f,c,n,r,p);if(!(void 0===m?t(f,d,3,i,p):m))return!1}}return!0}}function Hk(){if(dP)return J_;dP=1;var e=ws();return J_=function(t){return t==t&&!e(t)}}function yB(){if(fP)return Z_;fP=1;var e=Hk(),t=Ny();return Z_=function(n){for(var r=t(n),o=r.length;o--;){var i=r[o],a=n[i];r[o]=[i,a,e(a)]}return r}}function Kk(){if(pP)return eb;return pP=1,eb=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}}function wB(){if(hP)return tb;hP=1;var e=gB(),t=yB(),n=Kk();return tb=function(r){var o=t(r);return 1==o.length&&o[0][2]?n(o[0][0],o[0][1]):function(t){return t===r||e(t,r,o)}}}function _B(){if(mP)return nb;return mP=1,nb=function(e,t){return null!=e&&t in Object(e)}}function bB(){if(vP)return rb;vP=1;var e=Ok(),t=QE(),n=Ei(),r=XE(),o=JE(),i=Fv();return rb=function(a,u,s){for(var l=-1,c=(u=e(u,a)).length,d=!1;++l<c;){var f=i(u[l]);if(!(d=null!=a&&s(a,f)))break;a=a[f]}return d||++l!=c?d:!!(c=null==a?0:a.length)&&o(c)&&r(f,c)&&(n(a)||t(a))}}function xB(){if(gP)return ob;gP=1;var e=_B(),t=bB();return ob=function(n,r){return null!=n&&t(n,r,e)}}function SB(){if(yP)return ib;yP=1;var e=Gk(),t=kk(),n=xB(),r=UE(),o=Hk(),i=Kk(),a=Fv();return ib=function(u,s){return r(u)&&o(s)?i(a(u),s):function(r){var o=t(r,u);return void 0===o&&o===s?n(r,u):e(s,o,3)}}}function nC(){if(wP)return ab;return wP=1,ab=function(e){return e}}function EB(){if(_P)return sb;return _P=1,sb=function(e){return function(t){return null==t?void 0:t[e]}}}function CB(){if(bP)return ub;bP=1;var e=Ak();return ub=function(t){return function(n){return e(n,t)}}}function $B(){if(xP)return lb;xP=1;var e=EB(),t=CB(),n=UE(),r=Fv();return lb=function(o){return n(o)?e(r(o)):t(o)}}function IB(){if(SP)return cb;SP=1;var e=wB(),t=SB(),n=nC(),r=Ei(),o=$B();return cb=function(i){return"function"==typeof i?i:null==i?n:"object"==typeof i?r(i)?t(i[0],i[1]):e(i):o(i)}}function RB(){if(EP)return db;return EP=1,db=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}}function PB(){if(CP)return fb;return CP=1,fb=function(e){return e!=e}}function TB(){if($P)return pb;return $P=1,pb=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}}function OB(){if(IP)return hb;IP=1;var e=RB(),t=PB(),n=TB();return hb=function(r,o,i){return o==o?n(r,o,i):e(r,t,i)}}function AB(){if(RP)return mb;RP=1;var e=OB();return mb=function(t,n){return!!(null==t?0:t.length)&&e(t,n,0)>-1}}function kB(){if(PP)return vb;return PP=1,vb=function(){}}function DB(){if(TP)return gb;TP=1;var e=Uh(),t=QE(),n=Ei(),r=e?e.isConcatSpreadable:void 0;return gb=function(e){return n(e)||t(e)||!!(r&&e&&e[r])}}function NB(){if(OP)return yb;OP=1;var e=HE(),t=DB();return yb=function n(r,o,i,a,u){var s=-1,l=r.length;for(i||(i=t),u||(u=[]);++s<l;){var c=r[s];o>0&&i(c)?o>1?n(c,o-1,i,a,u):e(u,c):a||(u[u.length]=c)}return u},yb}function rC(){if(AP)return wb;return AP=1,wb=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}}function MB(){if(kP)return _b;kP=1;var e=rC(),t=Math.max;return _b=function(n,r,o){return r=t(void 0===r?n.length-1:r,0),function(){for(var i=arguments,a=-1,u=t(i.length-r,0),s=Array(u);++a<u;)s[a]=i[r+a];a=-1;for(var l=Array(r+1);++a<r;)l[a]=i[a];return l[r]=o(s),e(n,this,l)}},_b}function LB(){if(DP)return bb;return DP=1,bb=function(e){return function(){return e}}}function Qk(){if(NP)return xb;NP=1;var e=tp(),t=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch{}}();return xb=t}function FB(){if(MP)return Sb;MP=1;var e=LB(),t=Qk(),n=nC();return Sb=t?function(n,r){return t(n,"toString",{configurable:!0,enumerable:!1,value:e(r),writable:!0})}:n}function Yk(){if(LP)return Eb;LP=1;var e=Date.now;return Eb=function(t){var n=0,r=0;return function(){var o=e(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}},Eb}function Xk(){if(FP)return Cb;FP=1;var e=FB(),t=Yk()(e);return Cb=t}function BB(){if(BP)return $b;BP=1;var e=ri();return $b=function(){return e.Date.now()}}function jB(){if(jP)return Ib;jP=1;var e=/\s/;return Ib=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}}function VB(){if(VP)return Rb;VP=1;var e=jB(),t=/^\s+/;return Rb=function(n){return n&&n.slice(0,e(n)+1).replace(t,"")}}function Jk(){if(UP)return Pb;UP=1;var e=VB(),t=ws(),n=Lv(),r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt;return Pb=function(u){if("number"==typeof u)return u;if(n(u))return NaN;if(t(u)){var s="function"==typeof u.valueOf?u.valueOf():u;u=t(s)?s+"":s}if("string"!=typeof u)return 0===u?u:+u;u=e(u);var l=o.test(u);return l||i.test(u)?a(u.slice(2),l?2:8):r.test(u)?NaN:+u}}function Zk(){if(zP)return Tb;zP=1;var e=ws(),t=BB(),n=Jk(),r=Math.max,o=Math.min;return Tb=function(i,a,u){var s,l,c,d,f,p,m=0,h=!1,v=!1,g=!0;if("function"!=typeof i)throw new TypeError("Expected a function");function y(e){var t=s,n=l;return s=l=void 0,m=e,d=i.apply(n,t)}function b(e){var t=e-p;return void 0===p||t>=a||t<0||v&&e-m>=c}function w(){var e=t();if(b(e))return x(e);f=setTimeout(w,function(e){var t=a-(e-p);return v?o(t,c-(e-m)):t}(e))}function x(e){return f=void 0,g&&s?y(e):(s=l=void 0,d)}function _(){var e=t(),n=b(e);if(s=arguments,l=this,p=e,n){if(void 0===f)return function(e){return m=e,f=setTimeout(w,a),h?y(e):d}(p);if(v)return clearTimeout(f),f=setTimeout(w,a),y(p)}return void 0===f&&(f=setTimeout(w,a)),d}return a=n(a)||0,e(u)&&(h=!!u.leading,c=(v="maxWait"in u)?r(n(u.maxWait)||0,a):c,g="trailing"in u?!!u.trailing:g),_.cancel=function(){void 0!==f&&clearTimeout(f),m=0,s=p=l=f=void 0},_.flush=function(){return void 0===f?d:x(t())},_},Tb}function UB(){if(WP)return Ob;WP=1;var e=Zk(),t=ws();return Ob=function(n,r,o){var i=!0,a=!0;if("function"!=typeof n)throw new TypeError("Expected a function");return t(o)&&(i="leading"in o?!!o.leading:i,a="trailing"in o?!!o.trailing:a),e(n,r,{leading:i,maxWait:r,trailing:a})}}Zm.exports;var zB=UB();const WB=py(zB);function wv(e){return(wv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qP(Object(n),!0).forEach((function(t){qB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qB(e,t,n){return(t=GB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GB(e){var t=HB(e,"string");return"symbol"==wv(t)?t:t+""}function HB(e,t){if("object"!=wv(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=wv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function KB(e,t){return JB(e)||XB(e,t)||YB(e,t)||QB()}function QB(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function YB(e,t){if(e){if("string"==typeof e)return GP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GP(e,t)}}function GP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function XB(e,t){var n=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0!==t)for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}function JB(e){if(Array.isArray(e))return e}var Ab,HP,kb,KP,Db,QP,Nb,YP,Mb,XP,Lb,JP,Fb,ZP,Bb,eT,jb,tT,Vb,nT,Ub,rT,zb,oT,Wb,iT,ZB=m.forwardRef((function(e,t){var n=e.aspect,r=e.initialDimension,o=void 0===r?{width:-1,height:-1}:r,i=e.width,a=void 0===i?"100%":i,u=e.height,s=void 0===u?"100%":u,l=e.minWidth,c=void 0===l?0:l,d=e.minHeight,f=e.maxHeight,p=e.children,h=e.debounce,v=void 0===h?0:h,g=e.id,y=e.className,b=e.onResize,w=e.style,x=void 0===w?{}:w,_=m.useRef(null),E=m.useRef();E.current=b,m.useImperativeHandle(t,(function(){return Object.defineProperty(_.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),_.current},configurable:!0})}));var S=KB(m.useState({containerWidth:o.width,containerHeight:o.height}),2),A=S[0],k=S[1],C=m.useCallback((function(e,t){k((function(n){var r=Math.round(e),o=Math.round(t);return n.containerWidth===r&&n.containerHeight===o?n:{containerWidth:r,containerHeight:o}}))}),[]);m.useEffect((function(){var e=function(e){var t,n=e[0].contentRect,r=n.width,o=n.height;C(r,o),null===(t=E.current)||void 0===t||t.call(E,r,o)};v>0&&(e=WB(e,v,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=_.current.getBoundingClientRect(),r=n.width,o=n.height;return C(r,o),t.observe(_.current),function(){t.disconnect()}}),[C,v]);var I=m.useMemo((function(){var e=A.containerWidth,t=A.containerHeight;if(e<0||t<0)return null;o_(Rg(a)||Rg(s),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",a,s),o_(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=Rg(a)?e:a,o=Rg(s)?t:s;n&&n>0&&(r?o=r/n:o&&(r=o*n),f&&o>f&&(o=f)),o_(r>0||o>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",r,o,a,s,c,d,n);var i=!Array.isArray(p)&&GF(p.type).endsWith("Chart");return We.Children.map(p,(function(e){return We.isValidElement(e)?m.cloneElement(e,Pg({width:r,height:o},i?{style:Pg({height:"100%",width:"100%",maxHeight:o,maxWidth:r},e.props.style)}:{})):e}))}),[n,p,s,f,d,c,A,a]);return We.createElement("div",{id:g?"".concat(g):void 0,className:R2("recharts-responsive-container",y),style:Pg(Pg({},x),{},{width:a,height:s,minWidth:c,minHeight:d,maxHeight:f}),ref:_},I)}));function oC(){if(HP)return Ab;HP=1;var e=Vk()(Object.getPrototypeOf,Object);return Ab=e}function e9(){if(KP)return kb;KP=1;var e=Il(),t=oC(),n=ta(),r=Function.prototype,o=Object.prototype,i=r.toString,a=o.hasOwnProperty,u=i.call(Object);return kb=function(r){if(!n(r)||"[object Object]"!=e(r))return!1;var o=t(r);if(null===o)return!0;var s=a.call(o,"constructor")&&o.constructor;return"function"==typeof s&&s instanceof s&&i.call(s)==u}}function t9(){if(QP)return Db;QP=1;var e=Jk(),t=1/0;return Db=function(n){return n?(n=e(n))===t||n===-t?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}}function eD(){if(YP)return Nb;YP=1;var e=Qk();return Nb=function(t,n,r){"__proto__"==n&&e?e(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}}function tD(){if(XP)return Mb;XP=1;var e=t9();return Mb=function(t){var n=e(t),r=n%1;return n==n?r?n-r:n:0}}function iC(){if(JP)return Lb;return JP=1,Lb=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}}function nD(){if(ZP)return Fb;ZP=1;var e=eD(),t=zE(),n=Object.prototype.hasOwnProperty;return Fb=function(r,o,i){var a=r[o];(!n.call(r,o)||!t(a,i)||void 0===i&&!(o in r))&&e(r,o,i)}}function My(){if(eT)return Bb;eT=1;var e=nD(),t=eD();return Bb=function(n,r,o,i){var a=!o;o||(o={});for(var u=-1,s=r.length;++u<s;){var l=r[u],c=i?i(o[l],n[l],l,o,n):void 0;void 0===c&&(c=n[l]),a?t(o,l,c):e(o,l,c)}return o}}function rD(){if(tT)return jb;tT=1;var e=My(),t=Ny();return jb=function(n,r){return n&&e(r,t(r),n)}}function n9(){if(nT)return Vb;return nT=1,Vb=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}}function r9(){if(rT)return Ub;rT=1;var e=ws(),t=tC(),n=n9(),r=Object.prototype.hasOwnProperty;return Ub=function(o){if(!e(o))return n(o);var i=t(o),a=[];for(var u in o)"constructor"==u&&(i||!r.call(o,u))||a.push(u);return a}}function aC(){if(oT)return zb;oT=1;var e=jk(),t=r9(),n=zk();return zb=function(r){return n(r)?e(r,!0):t(r)}}function o9(){if(iT)return Wb;iT=1;var e=My(),t=aC();return Wb=function(n,r){return n&&e(r,t(r),n)}}var aT,qb,sT,Gb,uT,Hb,lT,Kb,cT,Qb,dT,Yb,fT,Xb,pT,Jb,hT,Zb,mT,ex,vT,tx,gT,nx,yT,rx,wT,ox,_T,ix,bT,ax,xT,sx,ST,ux,ET,lx,CT,cx,$T,dx,IT,ev={exports:{}};function i9(){return aT||(aT=1,e=ev,t=ev.exports,n=ri(),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r?n.Buffer:void 0,a=i?i.allocUnsafe:void 0,e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}),ev.exports;var e,t,n,r,o,i,a}function Ly(){if(sT)return qb;return sT=1,qb=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}}function a9(){if(uT)return Gb;uT=1;var e=My(),t=KE();return Gb=function(n,r){return e(n,t(n),r)}}function oD(){if(lT)return Hb;lT=1;var e=HE(),t=oC(),n=KE(),r=Fk(),o=Object.getOwnPropertySymbols;return Hb=o?function(r){for(var o=[];r;)e(o,n(r)),r=t(r);return o}:r}function s9(){if(cT)return Kb;cT=1;var e=My(),t=oD();return Kb=function(n,r){return e(n,t(n),r)}}function u9(){if(dT)return Qb;dT=1;var e=Lk(),t=oD(),n=aC();return Qb=function(r){return e(r,n,t)}}function l9(){if(fT)return Yb;fT=1;var e=Object.prototype.hasOwnProperty;return Yb=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}}function sC(){if(pT)return Xb;pT=1;var e=Mk();return Xb=function(t){var n=new t.constructor(t.byteLength);return new e(n).set(new e(t)),n}}function c9(){if(hT)return Jb;hT=1;var e=sC();return Jb=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}}function d9(){if(mT)return Zb;mT=1;var e=/\w*$/;return Zb=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}}function f9(){if(vT)return ex;vT=1;var e=Uh(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;return ex=function(e){return n?Object(n.call(e)):{}}}function p9(){if(gT)return tx;gT=1;var e=sC();return tx=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}}function h9(){if(yT)return nx;yT=1;var e=sC(),t=c9(),n=d9(),r=f9(),o=p9();return nx=function(i,a,u){var s=i.constructor;switch(a){case"[object ArrayBuffer]":return e(i);case"[object Boolean]":case"[object Date]":return new s(+i);case"[object DataView]":return t(i,u);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return o(i,u);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(i);case"[object RegExp]":return n(i);case"[object Symbol]":return r(i)}}}function Fy(){if(wT)return rx;wT=1;var e=ws(),t=Object.create;return rx=function(){function n(){}return function(r){if(!e(r))return{};if(t)return t(r);n.prototype=r;var o=new n;return n.prototype=void 0,o}}()}function m9(){if(_T)return ox;_T=1;var e=Fy(),t=oC(),n=tC();return ox=function(r){return"function"!=typeof r.constructor||n(r)?{}:e(t(r))}}function v9(){if(bT)return ix;bT=1;var e=Bv(),t=ta();return ix=function(n){return t(n)&&"[object Map]"==e(n)}}function g9(){if(xT)return ax;xT=1;var e=v9(),t=ZE(),n=eC(),r=n&&n.isMap,o=r?t(r):e;return ax=o}function y9(){if(ST)return sx;ST=1;var e=Bv(),t=ta();return sx=function(n){return t(n)&&"[object Set]"==e(n)}}function w9(){if(ET)return ux;ET=1;var e=y9(),t=ZE(),n=eC(),r=n&&n.isSet,o=r?t(r):e;return ux=o}function iD(){if(CT)return lx;CT=1;var e=GE(),t=iC(),n=nD(),r=rD(),o=o9(),i=i9(),a=Ly(),u=a9(),s=s9(),l=Wk(),c=u9(),d=Bv(),f=l9(),p=h9(),m=m9(),h=Ei(),v=YE(),g=g9(),y=ws(),b=w9(),w=Ny(),x=aC(),_="[object Arguments]",E="[object Function]",S="[object Object]",A={};return A[_]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[S]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[E]=A["[object WeakMap]"]=!1,lx=function k(C,I,P,R,O,T){var N,j=1&I,q=2&I,D=4&I;if(P&&(N=O?P(C,R,O,T):P(C)),void 0!==N)return N;if(!y(C))return C;var M=h(C);if(M){if(N=f(C),!j)return a(C,N)}else{var L=d(C),$=L==E||"[object GeneratorFunction]"==L;if(v(C))return i(C,j);if(L==S||L==_||$&&!O){if(N=q||$?{}:m(C),!j)return q?s(C,o(N,C)):u(C,r(N,C))}else{if(!A[L])return O?C:{};N=p(C,L,j)}}T||(T=new e);var B=T.get(C);if(B)return B;T.set(C,N),b(C)?C.forEach((function(e){N.add(k(e,I,P,e,C,T))})):g(C)&&C.forEach((function(e,t){N.set(t,k(e,I,P,t,C,T))}));var V=M?void 0:(D?q?c:l:q?x:w)(C);return t(V||C,(function(e,t){V&&(e=C[t=e]),n(N,t,k(e,I,P,t,C,T))})),N},lx}function _9(){if($T)return cx;$T=1;var e=NB();return cx=function(t){return(null==t?0:t.length)?e(t,1):[]}}function b9(){if(IT)return dx;IT=1;var e=_9(),t=MB(),n=Xk();return dx=function(r){return n(t(r,void 0,e),r+"")}}ev.exports;const x9={light:"",dark:".dark"},aD=m.createContext(null);function sD(){const e=m.useContext(aD);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const S9=m.forwardRef((({id:e,className:t,children:n,config:r,...o},i)=>{const a=m.useId(),u=`chart-${e||a.replace(/:/g,"")}`;return G.jsx(aD.Provider,{value:{config:r},children:G.jsxs("div",{"data-chart":u,ref:i,className:be("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",t),...o,children:[G.jsx(E9,{id:u,config:r}),G.jsx(ZB,{children:n})]})})}));S9.displayName="Chart";const E9=({id:e,config:t})=>{const n=Object.entries(t).filter((([,e])=>e.theme||e.color));return n.length?G.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(x9).map((([t,r])=>`\n${r} [data-chart=${e}] {\n${n.map((([e,n])=>{var r;const o=(null==(r=n.theme)?void 0:r[t])||n.color;return o?` --color-${e}: ${o};`:null})).join("\n")}\n}\n`)).join("\n")}}):null},C9=m.forwardRef((({active:e,payload:t,className:n,indicator:r="dot",hideLabel:o=!1,hideIndicator:i=!1,label:a,labelFormatter:u,labelClassName:s,formatter:l,color:c,nameKey:d,labelKey:f,hoveredItem:p,onItemHover:h},v)=>{const{config:g}=sD(),y=m.useMemo((()=>{var e;if(o||null==t||!t.length)return null;const[n]=t,r=`${f||(null==n?void 0:n.dataKey)||(null==n?void 0:n.name)||"value"}`,i=FS(g,n,r),l=f||"string"!=typeof a?null==i?void 0:i.label:(null==(e=g[a])?void 0:e.label)||a;return u?G.jsx("div",{className:be("font-medium",s),children:u(l,t)}):l?G.jsx("div",{className:be("font-medium",s),children:l}):null}),[a,u,t,o,s,g,f]);if(!e||null==t||!t.length)return null;const b=1===t.length&&"dot"!==r,w=t.length>10;return G.jsxs("div",{ref:v,className:be("grid min-w-[8rem] items-start gap-xxs rounded-sm border border-border/50 bg-background px-xs py-xxs text-xs shadow-xl",w&&"min-w-[16rem]",n),children:[b?null:y,G.jsx("div",{className:be("grid gap-xxs",w&&"grid-cols-2 gap-x-s"),children:t.map(((e,t)=>{var n;const o=`${d||e.name||e.dataKey||"value"}`,a=FS(g,e,o),u=c||(null==(n=e.payload)?void 0:n.fill)||e.color||"",s=o===p;return G.jsx("div",{className:be("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===r&&"items-center",s?"":p?"opacity-40":""),onMouseEnter:()=>null==h?void 0:h(o),onMouseLeave:()=>null==h?void 0:h(null),children:l&&void 0!==(null==e?void 0:e.value)&&void 0!==(null==e?void 0:e.payload)&&e.name?l(e.value,e.name,e,t,[e.payload]):G.jsxs(G.Fragment,{children:[null!=a&&a.icon?G.jsx(a.icon,{}):!i&&G.jsx("div",{className:be("shrink-0 rounded-full border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===r,"w-1":"line"===r,"w-0 border border-dashed bg-transparent":"dashed"===r,"my-0.5":b&&"dashed"===r}),style:{"--color-bg":u,"--color-border":u}}),G.jsxs("div",{className:be("flex flex-1 justify-between leading-none",b?"items-end":"items-center"),children:[G.jsxs("div",{className:"grid gap-xxs",children:[b?y:null,G.jsx("span",{className:be("text-muted-foreground",s&&"font-medium text-foreground"),children:(null==a?void 0:a.label)||e.name})]}),e.value&&G.jsx("span",{className:be("font-mono font-medium tabular-nums text-foreground",s&&"font-bold"),children:e.value.toLocaleString()})]})]})},e.dataKey)}))})]})}));C9.displayName="ChartTooltip";const $9=m.forwardRef((({className:e,hideIcon:t=!1,payload:n,nameKey:r,onItemHover:o,hoveredItem:i},a)=>{const{config:u}=sD(),s=m.useRef({});return m.useEffect((()=>{if(i&&s.current[i]){const e=s.current[i];e&&e.scrollIntoView({behavior:"smooth",block:"nearest"})}}),[i]),null!=n&&n.length?G.jsx("div",{ref:a,className:be("flex h-[150px] w-full flex-wrap items-center justify-center gap-l overflow-y-auto pb-xl",e),children:n.map((e=>{var n;const a=`${r||e.dataKey||"value"}`,l=FS(u,e,a),c=!!o&&a===i;return G.jsxs("div",{ref:e=>{e?s.current[a]=e:delete s.current[a]},className:be("group flex cursor-pointer select-none items-center gap-xs text-base transition-all duration-150",c?"scale-105 text-black":i?"text-gray-700 opacity-40":"text-gray-700"),onMouseEnter:()=>null==o?void 0:o(e.dataKey),onMouseLeave:()=>null==o?void 0:o(null),children:[null!=l&&l.icon&&!t?G.jsx(l.icon,{}):G.jsx("div",{className:"h-2 w-2 shrink-0 rounded-full",style:{backgroundColor:e.color||""}}),G.jsx("span",{className:"min-w-[max-content]",children:(null==l?void 0:l.label)||e.name})]},(null==(n=e.value)?void 0:n.toString())||a)}))}):null}));function FS(e,t,n){if("object"!=typeof t||null===t)return;const r="payload"in t&&"object"==typeof t.payload&&null!==t.payload?t.payload:void 0;let o=n;return n in t&&"string"==typeof t[n]?o=t[n]:r&&n in r&&"string"==typeof r[n]&&(o=r[n]),o in e?e[o]:e[n]}$9.displayName="ChartLegend";const I9=({children:e,className:t})=>G.jsx("div",{className:be("flex flex-wrap gap-xxxs",t),children:e}),uD=({text:e,icon:t,disabled:n,isLoading:r,avatarSrc:o,onClick:i,onRemove:a,className:u})=>G.jsxs("div",{onClick:n?void 0:i,className:be("flex cursor-pointer items-center gap-xxxs rounded-sm bg-gray-100 p-xxs text-sm font-medium text-gray-900 transition-all hover:bg-gray-200 [&_svg]:size-4",n&&"cursor-not-allowed bg-gray-100 text-gray-300",u),children:[o&&G.jsxs(gk,{className:be("size-6 text-[10px]"),children:[G.jsx(yk,{src:o,alt:e}),G.jsx(wk,{className:"text-xs",children:e.charAt(0).toUpperCase()})]}),t,G.jsx("span",{children:e}),a&&!r&&G.jsx("span",{role:"button",tabIndex:-1,onClick:e=>{e.stopPropagation(),e.preventDefault(),!n&&(null==a||a())},onPointerDown:e=>{e.stopPropagation(),e.preventDefault()},className:be("pointer-events-auto cursor-pointer",n&&"pointer-events-none cursor-not-allowed opacity-50"),children:G.jsx(by,{size:16})}),r&&G.jsx(S2,{size:16,className:"animate-spin"})]});function By(e){const t=m.useRef({value:e,previous:e});return m.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}function jy(e){const[t,n]=m.useState(void 0);return Uo((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t)||!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}const lD="Checkbox",[R9,WZ]=ni(lD),[P9,T9]=R9(lD),O9=m.forwardRef(((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:a,disabled:u,value:s="on",onCheckedChange:l,...c}=e,[d,f]=m.useState(null),p=Ut(t,(e=>f(e))),h=m.useRef(!1),v=!d||!!d.closest("form"),[g=!1,y]=pd({prop:o,defaultProp:i,onChange:l}),b=m.useRef(g);return m.useEffect((()=>{const e=null==d?void 0:d.form;if(e){const t=()=>y(b.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[d,y]),m.createElement(P9,{scope:n,state:g,disabled:u},m.createElement(lt.button,Pe({type:"button",role:"checkbox","aria-checked":Vf(g)?"mixed":g,"aria-required":a,"data-state":cD(g),"data-disabled":u?"":void 0,disabled:u,value:s},c,{ref:p,onKeyDown:et(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:et(e.onClick,(e=>{y((e=>!!Vf(e)||!e)),v&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())}))})),v&&m.createElement(D9,{control:d,bubbles:!h.current,name:r,value:s,checked:g,required:a,disabled:u,style:{transform:"translateX(-100%)"}}))})),A9="CheckboxIndicator",k9=m.forwardRef(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=T9(A9,n);return m.createElement(ea,{present:r||Vf(i.state)||!0===i.state},m.createElement(lt.span,Pe({"data-state":cD(i.state),"data-disabled":i.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))})),D9=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=m.useRef(null),a=By(n),u=jy(t);return m.useEffect((()=>{const e=i.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(a!==n&&o){const t=new Event("click",{bubbles:r});e.indeterminate=Vf(n),o.call(e,!Vf(n)&&n),e.dispatchEvent(t)}}),[a,n,r]),m.createElement("input",Pe({type:"checkbox","aria-hidden":!0,defaultChecked:!Vf(n)&&n},o,{tabIndex:-1,ref:i,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Vf(e){return"indeterminate"===e}function cD(e){return Vf(e)?"indeterminate":e?"checked":"unchecked"}const dD=O9,N9=k9,M9=mu("relative overflow-hidden ",{variants:{size:{default:"size-xs"},variant:{default:"peer shrink-0 rounded-sm border disabled:cursor-not-allowed disabled:!border-0 disabled:!bg-gray-100"}},defaultVariants:{size:"default",variant:"default"}}),uC=m.forwardRef((({className:e,size:t,variant:n,iconType:r,...o},i)=>{const a=o.checked,[u]=m.useState(a),[s,l]=m.useState(!1);m.useEffect((()=>{u!==a&&l(!0)}),[a]);const c=e=>"minus"===r?G.jsx(T6,{...e}):G.jsx(IE,{...e});return G.jsxs(dD,{ref:i,className:be(M9({size:t,variant:n}),"transition-[border] duration-100 ease-linear",a?"border-0":"border-gray-300 hover:border-2",e),...o,children:[G.jsx("div",{className:be("transform-origin-center absolute left-0 top-0 size-full rounded-full bg-blue_100",a?"scale-[1.2]":"scale-0",{"animate-fill-in":a&&s,"animate-fill-out":!a&&s})}),G.jsx(N9,{className:"relative flex items-center justify-center text-current",children:G.jsx(c,{className:"size-xxxs",color:o.disabled?"var(--gray-300)":"white"})})]})}));uC.displayName=dD.displayName;var RT=1,L9=.9,F9=.8,B9=.17,fx=.1,px=.999,j9=.9999,V9=.99,U9=/[\\\/_+.#"@\[\(\{&]/,z9=/[\\\/_+.#"@\[\(\{&]/g,W9=/[\s-]/,fD=/[\s-]/g;function BS(e,t,n,r,o,i,a){if(i===t.length)return o===e.length?RT:V9;var u=`${o},${i}`;if(void 0!==a[u])return a[u];for(var s,l,c,d,f=r.charAt(i),p=n.indexOf(f,o),m=0;p>=0;)(s=BS(e,t,n,r,p+1,i+1,a))>m&&(p===o?s*=RT:U9.test(e.charAt(p-1))?(s*=F9,(c=e.slice(o,p-1).match(z9))&&o>0&&(s*=Math.pow(px,c.length))):W9.test(e.charAt(p-1))?(s*=L9,(d=e.slice(o,p-1).match(fD))&&o>0&&(s*=Math.pow(px,d.length))):(s*=B9,o>0&&(s*=Math.pow(px,p-o))),e.charAt(p)!==t.charAt(i)&&(s*=j9)),(s<fx&&n.charAt(p-1)===r.charAt(i+1)||r.charAt(i+1)===r.charAt(i)&&n.charAt(p-1)!==r.charAt(i))&&((l=BS(e,t,n,r,p+1,i+2,a))*fx>s&&(s=l*fx)),s>m&&(m=s),p=n.indexOf(f,p+1);return a[u]=m,m}function PT(e){return e.toLowerCase().replace(fD," ")}function q9(e,t,n){return BS(e=n&&n.length>0?""+(e+" "+n.join(" ")):e,t,PT(e),PT(t),0,0,{})}var qm='[cmdk-group=""]',hx='[cmdk-group-items=""]',G9='[cmdk-group-heading=""]',lC='[cmdk-item=""]',TT=`${lC}:not([aria-disabled="true"])`,jS="cmdk-item-select",Mf="data-value",H9=(e,t,n)=>q9(e,t,n),pD=m.createContext(void 0),jv=()=>m.useContext(pD),hD=m.createContext(void 0),cC=()=>m.useContext(hD),mD=m.createContext(void 0),vD=m.forwardRef(((e,t)=>{let n=$h((()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",filtered:{count:0,items:new Map,groups:new Set}}})),r=$h((()=>new Set)),o=$h((()=>new Map)),i=$h((()=>new Map)),a=$h((()=>new Set)),u=gD(e),{label:s,children:l,value:c,onValueChange:d,filter:f,shouldFilter:p,loop:h,disablePointerSelection:v=!1,vimBindings:g=!0,...y}=e,b=m.useId(),w=m.useId(),x=m.useId(),_=m.useRef(null),E=oj();Qf((()=>{if(void 0!==c){let e=c.trim();n.current.value=e,S.emit()}}),[c]),Qf((()=>{E(6,R)}),[]);let S=m.useMemo((()=>({subscribe:e=>(a.current.add(e),()=>a.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var o,i,a;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)P(),C(),E(1,I);else if("value"===e&&(r||E(5,R),void 0!==(null==(o=u.current)?void 0:o.value))){let e=t??"";return void(null==(a=(i=u.current).onValueChange)||a.call(i,e))}S.emit()}},emit:()=>{a.current.forEach((e=>e()))}})),[]),A=m.useMemo((()=>({value:(e,t,r)=>{var o;t!==(null==(o=i.current.get(e))?void 0:o.value)&&(i.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,k(t,r)),E(2,(()=>{C(),S.emit()})))},item:(e,t)=>(r.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),E(3,(()=>{P(),C(),n.current.value||I(),S.emit()})),()=>{i.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=O();E(4,(()=>{P(),(null==t?void 0:t.getAttribute("id"))===e&&I(),S.emit()}))}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{i.current.delete(e),o.current.delete(e)}),filter:()=>u.current.shouldFilter,label:s||e["aria-label"],disablePointerSelection:v,listId:b,inputId:x,labelId:w,listInnerRef:_})),[]);function k(e,t){var r,o;let i=null!=(o=null==(r=u.current)?void 0:r.filter)?o:H9;return e?i(e,n.current.search,t):0}function C(){if(!n.current.search||!1===u.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach((n=>{let r=o.current.get(n),i=0;r.forEach((t=>{let n=e.get(t);i=Math.max(n,i)})),t.push([n,i])}));let r=_.current;T().sort(((t,n)=>{var r,o;let i=t.getAttribute("id"),a=n.getAttribute("id");return(null!=(r=e.get(a))?r:0)-(null!=(o=e.get(i))?o:0)})).forEach((e=>{let t=e.closest(hx);t?t.appendChild(e.parentElement===t?e:e.closest(`${hx} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${hx} > *`))})),t.sort(((e,t)=>t[1]-e[1])).forEach((e=>{let t=_.current.querySelector(`${qm}[${Mf}="${encodeURIComponent(e[0])}"]`);null==t||t.parentElement.appendChild(t)}))}function I(){let e=T().find((e=>"true"!==e.getAttribute("aria-disabled"))),t=null==e?void 0:e.getAttribute(Mf);S.setState("value",t||void 0)}function P(){var e,t,a,s;if(!n.current.search||!1===u.current.shouldFilter)return void(n.current.filtered.count=r.current.size);n.current.filtered.groups=new Set;let l=0;for(let o of r.current){let r=k(null!=(t=null==(e=i.current.get(o))?void 0:e.value)?t:"",null!=(s=null==(a=i.current.get(o))?void 0:a.keywords)?s:[]);n.current.filtered.items.set(o,r),r>0&&l++}for(let[e,t]of o.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=l}function R(){var e,t,n;let r=O();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(qm))?void 0:t.querySelector(G9))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function O(){var e;return null==(e=_.current)?void 0:e.querySelector(`${lC}[aria-selected="true"]`)}function T(){var e;return Array.from(null==(e=_.current)?void 0:e.querySelectorAll(TT))}function N(e){let t=T()[e];t&&S.setState("value",t.getAttribute(Mf))}function j(e){var t;let n=O(),r=T(),o=r.findIndex((e=>e===n)),i=r[o+e];null!=(t=u.current)&&t.loop&&(i=o+e<0?r[r.length-1]:o+e===r.length?r[0]:r[o+e]),i&&S.setState("value",i.getAttribute(Mf))}function q(e){let t,n=O(),r=null==n?void 0:n.closest(qm);for(;r&&!t;)r=e>0?nj(r,qm):rj(r,qm),t=null==r?void 0:r.querySelector(TT);t?S.setState("value",t.getAttribute(Mf)):j(e)}let D=()=>N(T().length-1),M=e=>{e.preventDefault(),e.metaKey?D():e.altKey?q(1):j(1)},L=e=>{e.preventDefault(),e.metaKey?N(0):e.altKey?q(-1):j(-1)};return m.createElement(lt.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=y.onKeyDown)||t.call(y,e),!e.defaultPrevented)switch(e.key){case"n":case"j":g&&e.ctrlKey&&M(e);break;case"ArrowDown":M(e);break;case"p":case"k":g&&e.ctrlKey&&L(e);break;case"ArrowUp":L(e);break;case"Home":e.preventDefault(),N(0);break;case"End":e.preventDefault(),D();break;case"Enter":if(!e.nativeEvent.isComposing&&229!==e.keyCode){e.preventDefault();let t=O();if(t){let e=new Event(jS);t.dispatchEvent(e)}}}}},m.createElement("label",{"cmdk-label":"",htmlFor:A.inputId,id:A.labelId,style:aj},s),Vy(e,(e=>m.createElement(hD.Provider,{value:S},m.createElement(pD.Provider,{value:A},e)))))})),K9=m.forwardRef(((e,t)=>{var n,r;let o=m.useId(),i=m.useRef(null),a=m.useContext(mD),u=jv(),s=gD(e),l=null!=(r=null==(n=s.current)?void 0:n.forceMount)?r:null==a?void 0:a.forceMount;Qf((()=>{if(!l)return u.item(o,null==a?void 0:a.id)}),[l]);let c=yD(o,i,[e.value,e.children,i],e.keywords),d=cC(),f=Yf((e=>e.value&&e.value===c.current)),p=Yf((e=>!(!l&&!1!==u.filter())||(!e.search||e.filtered.items.get(o)>0)));function h(){var e,t;v(),null==(t=(e=s.current).onSelect)||t.call(e,c.current)}function v(){d.setState("value",c.current,!0)}if(m.useEffect((()=>{let t=i.current;if(t&&!e.disabled)return t.addEventListener(jS,h),()=>t.removeEventListener(jS,h)}),[p,e.onSelect,e.disabled]),!p)return null;let{disabled:g,value:y,onSelect:b,forceMount:w,keywords:x,..._}=e;return m.createElement(lt.div,{ref:_v([i,t]),..._,id:o,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!f,"data-disabled":!!g,"data-selected":!!f,onPointerMove:g||u.disablePointerSelection?void 0:v,onClick:g?void 0:h},e.children)})),Q9=m.forwardRef(((e,t)=>{let{heading:n,children:r,forceMount:o,...i}=e,a=m.useId(),u=m.useRef(null),s=m.useRef(null),l=m.useId(),c=jv(),d=Yf((e=>!(!o&&!1!==c.filter())||(!e.search||e.filtered.groups.has(a))));Qf((()=>c.group(a)),[]),yD(a,u,[e.value,e.heading,s]);let f=m.useMemo((()=>({id:a,forceMount:o})),[o]);return m.createElement(lt.div,{ref:_v([u,t]),...i,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&m.createElement("div",{ref:s,"cmdk-group-heading":"","aria-hidden":!0,id:l},n),Vy(e,(e=>m.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?l:void 0},m.createElement(mD.Provider,{value:f},e)))))})),Y9=m.forwardRef(((e,t)=>{let{alwaysRender:n,...r}=e,o=m.useRef(null),i=Yf((e=>!e.search));return n||i?m.createElement(lt.div,{ref:_v([o,t]),...r,"cmdk-separator":"",role:"separator"}):null})),X9=m.forwardRef(((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,i=cC(),a=Yf((e=>e.search)),u=Yf((e=>e.value)),s=jv(),l=m.useMemo((()=>{var e;let t=null==(e=s.listInnerRef.current)?void 0:e.querySelector(`${lC}[${Mf}="${encodeURIComponent(u)}"]`);return null==t?void 0:t.getAttribute("id")}),[]);return m.useEffect((()=>{null!=e.value&&i.setState("search",e.value)}),[e.value]),m.createElement(lt.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":s.listId,"aria-labelledby":s.labelId,"aria-activedescendant":l,id:s.inputId,type:"text",value:o?e.value:a,onChange:e=>{o||i.setState("search",e.target.value),null==n||n(e.target.value)}})})),J9=m.forwardRef(((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,i=m.useRef(null),a=m.useRef(null),u=jv();return m.useEffect((()=>{if(a.current&&i.current){let e,t=a.current,n=i.current,r=new ResizeObserver((()=>{e=requestAnimationFrame((()=>{let e=t.offsetHeight;n.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")}))}));return r.observe(t),()=>{cancelAnimationFrame(e),r.unobserve(t)}}}),[]),m.createElement(lt.div,{ref:_v([i,t]),...o,"cmdk-list":"",role:"listbox","aria-label":r,id:u.listId},Vy(e,(e=>m.createElement("div",{ref:_v([a,u.listInnerRef]),"cmdk-list-sizer":""},e))))})),Z9=m.forwardRef(((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:i,container:a,...u}=e;return m.createElement(rk,{open:n,onOpenChange:r},m.createElement(Iy,{container:a},m.createElement(jh,{"cmdk-overlay":"",className:o}),m.createElement(Vh,{"aria-label":e.label,"cmdk-dialog":"",className:i},m.createElement(vD,{ref:t,...u}))))})),ej=m.forwardRef(((e,t)=>Yf((e=>0===e.filtered.count))?m.createElement(lt.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null)),tj=m.forwardRef(((e,t)=>{let{progress:n,children:r,label:o="Loading...",...i}=e;return m.createElement(lt.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Vy(e,(e=>m.createElement("div",{"aria-hidden":!0},e))))})),Ci=Object.assign(vD,{List:J9,Item:K9,Input:X9,Group:Q9,Separator:Y9,Dialog:Z9,Empty:ej,Loading:tj});function nj(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function rj(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function gD(e){let t=m.useRef(e);return Qf((()=>{t.current=e})),t}var Qf=typeof window>"u"?m.useEffect:m.useLayoutEffect;function $h(e){let t=m.useRef();return void 0===t.current&&(t.current=e()),t}function _v(e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}function Yf(e){let t=cC(),n=()=>e(t.snapshot());return m.useSyncExternalStore(t.subscribe,n,n)}function yD(e,t,n,r=[]){let o=m.useRef(),i=jv();return Qf((()=>{var a;let u=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():o.current}})(),s=r.map((e=>e.trim()));i.value(e,u,s),null==(a=t.current)||a.setAttribute(Mf,u),o.current=u})),o}var oj=()=>{let[e,t]=m.useState(),n=$h((()=>new Map));return Qf((()=>{n.current.forEach((e=>e())),n.current=new Map}),[e]),(e,r)=>{n.current.set(e,r),t({})}};function ij(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}function Vy({asChild:e,children:t},n){return e&&m.isValidElement(t)?m.cloneElement(ij(t),{ref:t.ref},n(t.props.children)):n(t)}var aj={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const sj=Iy,wD=m.forwardRef((({className:e,...t},n)=>(m.useEffect((()=>{const e=document.querySelectorAll(".blured-modal-overlay");return e.forEach((e=>e&&(e.style.filter="blur(5px)"))),()=>{0===Array.from(document.querySelectorAll('[role="dialog"]')).length&&e.forEach((e=>e&&(e.style.filter="none")))}}),[]),G.jsx(jh,{ref:n,"data-testid":"dialog_overlay",className:be("fixed inset-0 z-dialog bg-black opacity-[0.8] data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}))));wD.displayName=jh.displayName;const uj=mu("",{variants:{closeVariant:{none:"",insideCard:"absolute right-m top-m rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground text-gray-400",outsideCard:"fixed right-[30px] top-[30px] z-100 text-gray-400",mobileGallery:"fixed right-m top-[62px] text-white z-[110]"}},defaultVariants:{closeVariant:"outsideCard"}}),lj=mu("",{variants:{closeSize:{small:"size-6",big:"size-[42px]","18x18":"size-[18px]"}},defaultVariants:{closeSize:"small"}}),cj=m.forwardRef((({title:e,titleIcon:t,className:n,dialogName:r,showClose:o=!0,closeVariant:i="outsideCard",closeSize:a="big",children:u,titleClassName:s,overlayClassName:l,childrenClassName:c,footerClassName:d,onBack:f,onCloseModal:p,renderFooter:m,onScroll:h,...v},g)=>{const y=G.jsxs(Ry,{className:be(uj({closeVariant:i})),children:[G.jsx(by,{onClick:p,fill:"currentColor",className:be(lj({closeSize:a}))}),G.jsx("span",{className:"sr-only",children:"Close"})]});return G.jsxs(sj,{children:[G.jsx(wD,{className:l,onClick:p}),o&&"insideCard"!==i&&y,G.jsxs(Vh,{ref:g,className:be("fixed left-[50%] top-[50%] z-[101] grid max-w-[600px] translate-x-[-50%] translate-y-[-50%] !overflow-visible rounded-sm bg-background shadow-lg outline-none duration-200 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] max-md:w-[calc(100vw-32px)] md:w-full [&>div]:min-w-0",n),...v,children:[e&&G.jsxs("h3",{className:be("flex items-center justify-center gap-xxs border-b border-gray-200 p-m text-center text-lg font-semibold text-gray-700",s),children:[t,e]}),G.jsx("div",{id:r||"dialog-content",className:be("p-m",c),onScroll:h,children:u}),o&&"insideCard"===i&&y,f&&G.jsx("button",{"data-testid":"dialog-back-button","aria-label":"Back",onClick:f,className:"absolute left-m top-m",children:G.jsx(b2,{color:"var(--gray-400)",size:24})}),G.jsx(_D,{className:be("empty:hidden",d),children:null==m?void 0:m()})]})]})}));cj.displayName=Vh.displayName;const _D=({className:e,...t})=>G.jsx("div",{className:be("flex border-t border-gray-200 p-m",e),...t});_D.displayName="DialogFooter";const dj=m.forwardRef((({className:e,...t},n)=>G.jsx(Dv,{ref:n,className:be("text-lg font-semibold leading-none tracking-tight",e),...t})));dj.displayName=Dv.displayName;const fj=m.forwardRef((({className:e,...t},n)=>G.jsx(Nv,{ref:n,className:be("text-sm text-muted-foreground",e),...t})));fj.displayName=Nv.displayName;const pj=m.forwardRef((({className:e,...t},n)=>G.jsx(Ci,{ref:n,className:be("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t})));pj.displayName=Ci.displayName;const hj=m.forwardRef((({className:e,...t},n)=>G.jsx("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:G.jsx(Ci.Input,{ref:n,className:be("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})})));hj.displayName=Ci.Input.displayName;const mj=m.forwardRef((({className:e,...t},n)=>G.jsx(Ci.List,{ref:n,className:be("mt-2 max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t})));mj.displayName=Ci.List.displayName;const vj=m.forwardRef(((e,t)=>G.jsx(Ci.Empty,{ref:t,className:"py-6 text-center text-sm",...e})));vj.displayName=Ci.Empty.displayName;const gj=m.forwardRef((({className:e,...t},n)=>G.jsx(Ci.Group,{ref:n,className:be("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t})));gj.displayName=Ci.Group.displayName;const yj=m.forwardRef((({className:e,...t},n)=>G.jsx(Ci.Separator,{ref:n,className:be("-mx-1 h-px bg-border",e),...t})));yj.displayName=Ci.Separator.displayName;const wj=m.forwardRef((({className:e,...t},n)=>G.jsx(Ci.Item,{ref:n,className:be("relative flex max-w-[215px] cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",e),...t})));function ud(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function OT(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function bD(...e){return t=>{let n=!1;const r=e.map((e=>{const r=OT(e,t);return!n&&"function"==typeof r&&(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():OT(e[t],null)}}}}function np(...e){return m.useCallback(bD(...e),e)}function _j(e,t){const n=m.createContext(t),r=e=>{const{children:t,...r}=e,o=m.useMemo((()=>r),Object.values(r));return G.jsx(n.Provider,{value:o,children:t})};return r.displayName=e+"Provider",[r,function(r){const o=m.useContext(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}function bj(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>m.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return m.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=m.createContext(r),i=n.length;n=[...n,r];const a=t=>{var n;const{scope:r,children:a,...u}=t,s=(null==(n=null==r?void 0:r[e])?void 0:n[i])||o,l=m.useMemo((()=>u),Object.values(u));return G.jsx(s.Provider,{value:l,children:a})};return a.displayName=t+"Provider",[a,function(n,a){var u;const s=(null==(u=null==a?void 0:a[e])?void 0:u[i])||o,l=m.useContext(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},xj(r,...t)]}function xj(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return m.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}wj.displayName=Ci.Item.displayName;var Zg=null!=globalThis&&globalThis.document?m.useLayoutEffect:()=>{},Sj=Qg[" useId ".trim().toString()]||(()=>{}),Ej=0;function mx(e){const[t,n]=m.useState(Sj());return Zg((()=>{e||n((e=>e??String(Ej++)))}),[e]),e||(t?`radix-${t}`:"")}function Xf(e){const t=m.useRef(e);return m.useEffect((()=>{t.current=e})),m.useMemo((()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function Cj({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=$j({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,u=Xf(n);return[a,m.useCallback((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&u(n)}else o(t)}),[i,e,o,u])]}function $j({defaultProp:e,onChange:t}){const n=m.useState(e),[r]=n,o=m.useRef(r),i=Xf(t);return m.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}function xD(e){const t=Ij(e),n=m.forwardRef(((e,n)=>{const{children:r,...o}=e,i=m.Children.toArray(r),a=i.find(Pj);if(a){const e=a.props.children,r=i.map((t=>t===a?m.Children.count(e)>1?m.Children.only(null):m.isValidElement(e)?e.props.children:null:t));return G.jsx(t,{...o,ref:n,children:m.isValidElement(e)?m.cloneElement(e,void 0,r):null})}return G.jsx(t,{...o,ref:n,children:r})}));return n.displayName=`${e}.Slot`,n}function Ij(e){const t=m.forwardRef(((e,t)=>{const{children:n,...r}=e;if(m.isValidElement(n)){const e=Oj(n),o=Tj(r,n.props);return n.type!==m.Fragment&&(o.ref=t?bD(t,e):e),m.cloneElement(n,o)}return m.Children.count(n)>1?m.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var Rj=Symbol("radix.slottable");function Pj(e){return m.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Rj}function Tj(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Oj(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var Aj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Rl=Aj.reduce(((e,t)=>{const n=xD(`Primitive.${t}`),r=m.forwardRef(((e,r)=>{const{asChild:o,...i}=e,a=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),G.jsx(a,{...i,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{});function kj(e,t){e&&vu.flushSync((()=>e.dispatchEvent(t)))}function Dj(e,t=(null==globalThis?void 0:globalThis.document)){const n=Xf(e);m.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}var AT,Nj="DismissableLayer",VS="dismissableLayer.update",Mj="dismissableLayer.pointerDownOutside",Lj="dismissableLayer.focusOutside",SD=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ED=m.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:u,...s}=e,l=m.useContext(SD),[c,d]=m.useState(null),f=(null==c?void 0:c.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,p]=m.useState({}),h=np(t,(e=>d(e))),v=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(g),b=c?v.indexOf(c):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,x=b>=y,_=jj((e=>{const t=e.target,n=[...l.branches].some((e=>e.contains(t)));!x||n||(null==o||o(e),null==a||a(e),e.defaultPrevented||null==u||u())}),f),E=Vj((e=>{const t=e.target;[...l.branches].some((e=>e.contains(t)))||(null==i||i(e),null==a||a(e),e.defaultPrevented||null==u||u())}),f);return Dj((e=>{b===l.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))}),f),m.useEffect((()=>{if(c)return n&&(0===l.layersWithOutsidePointerEventsDisabled.size&&(AT=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(c)),l.layers.add(c),kT(),()=>{n&&1===l.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=AT)}}),[c,f,n,l]),m.useEffect((()=>()=>{c&&(l.layers.delete(c),l.layersWithOutsidePointerEventsDisabled.delete(c),kT())}),[c,l]),m.useEffect((()=>{const e=()=>p({});return document.addEventListener(VS,e),()=>document.removeEventListener(VS,e)}),[]),G.jsx(Rl.div,{...s,ref:h,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:ud(e.onFocusCapture,E.onFocusCapture),onBlurCapture:ud(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:ud(e.onPointerDownCapture,_.onPointerDownCapture)})}));ED.displayName=Nj;var Fj="DismissableLayerBranch",Bj=m.forwardRef(((e,t)=>{const n=m.useContext(SD),r=m.useRef(null),o=np(t,r);return m.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),G.jsx(Rl.div,{...e,ref:o})}));function jj(e,t=(null==globalThis?void 0:globalThis.document)){const n=Xf(e),r=m.useRef(!1),o=m.useRef((()=>{}));return m.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){CD(Mj,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Vj(e,t=(null==globalThis?void 0:globalThis.document)){const n=Xf(e),r=m.useRef(!1);return m.useEffect((()=>{const e=e=>{e.target&&!r.current&&CD(Lj,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function kT(){const e=new CustomEvent(VS);document.dispatchEvent(e)}function CD(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?kj(o,i):o.dispatchEvent(i)}Bj.displayName=Fj;var vx="focusScope.autoFocusOnMount",gx="focusScope.autoFocusOnUnmount",DT={bubbles:!1,cancelable:!0},Uj="FocusScope",$D=m.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[u,s]=m.useState(null),l=Xf(o),c=Xf(i),d=m.useRef(null),f=np(t,(e=>s(e))),p=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect((()=>{if(r){let e=function(e){if(p.paused||!u)return;const t=e.target;u.contains(t)?d.current=t:ad(d.current,{select:!0})},t=function(e){if(p.paused||!u)return;const t=e.relatedTarget;null!==t&&(u.contains(t)||ad(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&ad(u)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return u&&r.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,u,p.paused]),m.useEffect((()=>{if(u){MT.add(p);const e=document.activeElement;if(!u.contains(e)){const t=new CustomEvent(vx,DT);u.addEventListener(vx,l),u.dispatchEvent(t),t.defaultPrevented||(zj(Kj(ID(u)),{select:!0}),document.activeElement===e&&ad(u))}return()=>{u.removeEventListener(vx,l),setTimeout((()=>{const t=new CustomEvent(gx,DT);u.addEventListener(gx,c),u.dispatchEvent(t),t.defaultPrevented||ad(e??document.body,{select:!0}),u.removeEventListener(gx,c),MT.remove(p)}),0)}}}),[u,l,c,p]);const h=m.useCallback((e=>{if(!n&&!r||p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=Wj(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&ad(i,{select:!0})):(e.preventDefault(),n&&ad(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,p.paused]);return G.jsx(Rl.div,{tabIndex:-1,...a,ref:f,onKeyDown:h})}));function zj(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ad(r,{select:t}),document.activeElement!==n)return}function Wj(e){const t=ID(e);return[NT(t,e),NT(t.reverse(),e)]}function ID(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function NT(e,t){for(const n of e)if(!qj(n,{upTo:t}))return n}function qj(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Gj(e){return e instanceof HTMLInputElement&&"select"in e}function ad(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Gj(e)&&t&&e.select()}}$D.displayName=Uj;var MT=Hj();function Hj(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=LT(e,t),e.unshift(t)},remove(t){var n;e=LT(e,t),null==(n=e[0])||n.resume()}}}function LT(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function Kj(e){return e.filter((e=>"A"!==e.tagName))}var Qj="Portal",RD=m.forwardRef(((e,t)=>{var n;const{container:r,...o}=e,[i,a]=m.useState(!1);Zg((()=>a(!0)),[]);const u=r||i&&(null==(n=null==globalThis?void 0:globalThis.document)?void 0:n.body);return u?D2.createPortal(G.jsx(Rl.div,{...o,ref:t}),u):null}));function Yj(e,t){return m.useReducer(((e,n)=>t[e][n]??e),e)}RD.displayName=Qj;var Uy=e=>{const{present:t,children:n}=e,r=Xj(t),o="function"==typeof n?n({present:r.isPresent}):m.Children.only(n),i=np(r.ref,Jj(o));return"function"==typeof n||r.isPresent?m.cloneElement(o,{ref:i}):null};function Xj(e){const[t,n]=m.useState(),r=m.useRef({}),o=m.useRef(e),i=m.useRef("none"),a=e?"mounted":"unmounted",[u,s]=Yj(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect((()=>{const e=Tg(r.current);i.current="mounted"===u?e:"none"}),[u]),Zg((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=Tg(t);e?s("MOUNT"):"none"===a||"none"===(null==t?void 0:t.display)?s("UNMOUNT"):s(n&&r!==a?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,s]),Zg((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,a=i=>{const a=Tg(r.current).includes(i.animationName);if(i.target===t&&a&&(s("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},u=e=>{e.target===t&&(i.current=Tg(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",a),t.addEventListener("animationend",a),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",a),t.removeEventListener("animationend",a)}}s("ANIMATION_END")}),[t,s]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:m.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function Tg(e){return(null==e?void 0:e.animationName)||"none"}function Jj(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}Uy.displayName="Presence";var yx=0;function Zj(){m.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??FT()),document.body.insertAdjacentElement("beforeend",e[1]??FT()),yx++,()=>{1===yx&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),yx--}}),[])}function FT(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var PD=j2(),wx=function(){},zy=m.forwardRef((function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:wx,onWheelCapture:wx,onTouchMoveCapture:wx}),o=r[0],i=r[1],a=e.forwardProps,u=e.children,s=e.className,l=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,h=e.inert,v=e.allowPinchZoom,g=e.as,y=void 0===g?"div":g,b=e.gapMode,w=DE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=f,_=B2([n,t]),E=Vo(Vo({},w),o);return m.createElement(m.Fragment,null,c&&m.createElement(x,{sideCar:PD,removeScrollBar:l,shards:d,noIsolation:p,inert:h,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:b}),a?m.cloneElement(m.Children.only(u),Vo(Vo({},E),{ref:_})):m.createElement(y,Vo({},E,{className:s,ref:_}),u))}));zy.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},zy.classNames={fullWidth:uv,zeroRight:sv};var US=!1;if(typeof window<"u")try{var Og=Object.defineProperty({},"passive",{get:function(){return US=!0,!0}});window.addEventListener("test",Og,Og),window.removeEventListener("test",Og,Og)}catch{US=!1}var xh=!!US&&{passive:!1},eV=function(e){return"TEXTAREA"===e.tagName},TD=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!eV(e)&&"visible"===n[t])},tV=function(e){return TD(e,"overflowY")},nV=function(e){return TD(e,"overflowX")},BT=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host),OD(e,r)){var o=AD(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},rV=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},oV=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},OD=function(e,t){return"v"===e?tV(t):nV(t)},AD=function(e,t){return"v"===e?rV(t):oV(t)},iV=function(e,t){return"h"===e&&"rtl"===t?-1:1},aV=function(e,t,n,r,o){var i=iV(e,window.getComputedStyle(t).direction),a=i*r,u=n.target,s=t.contains(u),l=!1,c=a>0,d=0,f=0;do{var p=AD(e,u),m=p[0],h=p[1]-p[2]-i*m;(m||h)&&OD(e,u)&&(d+=h,f+=m),u=u instanceof ShadowRoot?u.host:u.parentNode}while(!s&&u!==document.body||s&&(t.contains(u)||t===u));return(c&&(Math.abs(d)<1||!o)||!c&&(Math.abs(f)<1||!o))&&(l=!0),l},Ag=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},jT=function(e){return[e.deltaX,e.deltaY]},VT=function(e){return e&&"current"in e?e.current:e},sV=function(e,t){return e[0]===t[0]&&e[1]===t[1]},uV=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},lV=0,Sh=[];function cV(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),o=m.useState(lV++)[0],i=m.useState(NE)[0],a=m.useRef(e);m.useEffect((function(){a.current=e}),[e]),m.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=F2([e.lockRef.current],(e.shards||[]).map(VT),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var u=m.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=Ag(e),u=n.current,s="deltaX"in e?e.deltaX:u[0]-i[0],l="deltaY"in e?e.deltaY:u[1]-i[1],c=e.target,d=Math.abs(s)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=BT(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=BT(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||l)&&(r.current=o),!o)return!0;var p=r.current||o;return aV(p,t,e,"h"===p?s:l,!0)}),[]),s=m.useCallback((function(e){var n=e;if(Sh.length&&Sh[Sh.length-1]===i){var r="deltaY"in n?jT(n):Ag(n),o=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&sV(e.delta,r)}))[0];if(o&&o.should)return void(n.cancelable&&n.preventDefault());if(!o){var s=(a.current.shards||[]).map(VT).filter(Boolean).filter((function(e){return e.contains(n.target)}));(s.length>0?u(n,s[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),l=m.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:dV(r)};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),c=m.useCallback((function(e){n.current=Ag(e),r.current=void 0}),[]),d=m.useCallback((function(t){l(t.type,jT(t),t.target,u(t,e.lockRef.current))}),[]),f=m.useCallback((function(t){l(t.type,Ag(t),t.target,u(t,e.lockRef.current))}),[]);m.useEffect((function(){return Sh.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",s,xh),document.addEventListener("touchmove",s,xh),document.addEventListener("touchstart",c,xh),function(){Sh=Sh.filter((function(e){return e!==i})),document.removeEventListener("wheel",s,xh),document.removeEventListener("touchmove",s,xh),document.removeEventListener("touchstart",c,xh)}}),[]);var p=e.removeScrollBar,h=e.inert;return m.createElement(m.Fragment,null,h?m.createElement(i,{styles:uV(o)}):null,p?m.createElement(W2,{gapMode:e.gapMode}):null)}function dV(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const fV=U2(PD,cV);var kD=m.forwardRef((function(e,t){return m.createElement(zy,Vo({},e,{ref:t,sideCar:fV}))}));kD.classNames=zy.classNames;var dC="Dialog",[DD,qZ]=bj(dC),[pV,_s]=DD(dC),ND=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,u=m.useRef(null),s=m.useRef(null),[l=!1,c]=Cj({prop:r,defaultProp:o,onChange:i});return G.jsx(pV,{scope:t,triggerRef:u,contentRef:s,contentId:mx(),titleId:mx(),descriptionId:mx(),open:l,onOpenChange:c,onOpenToggle:m.useCallback((()=>c((e=>!e))),[c]),modal:a,children:n})};ND.displayName=dC;var MD="DialogTrigger",LD=m.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=_s(MD,n),i=np(t,o.triggerRef);return G.jsx(Rl.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":hC(o.open),...r,ref:i,onClick:ud(e.onClick,o.onOpenToggle)})}));LD.displayName=MD;var fC="DialogPortal",[hV,FD]=DD(fC,{forceMount:void 0}),BD=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=_s(fC,t);return G.jsx(hV,{scope:t,forceMount:n,children:m.Children.map(r,(e=>G.jsx(Uy,{present:n||i.open,children:G.jsx(RD,{asChild:!0,container:o,children:e})})))})};BD.displayName=fC;var ey="DialogOverlay",jD=m.forwardRef(((e,t)=>{const n=FD(ey,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=_s(ey,e.__scopeDialog);return i.modal?G.jsx(Uy,{present:r||i.open,children:G.jsx(vV,{...o,ref:t})}):null}));jD.displayName=ey;var mV=xD("DialogOverlay.RemoveScroll"),vV=m.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=_s(ey,n);return G.jsx(kD,{as:mV,allowPinchZoom:!0,shards:[o.contentRef],children:G.jsx(Rl.div,{"data-state":hC(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})})),Jf="DialogContent",VD=m.forwardRef(((e,t)=>{const n=FD(Jf,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=_s(Jf,e.__scopeDialog);return G.jsx(Uy,{present:r||i.open,children:i.modal?G.jsx(gV,{...o,ref:t}):G.jsx(yV,{...o,ref:t})})}));VD.displayName=Jf;var gV=m.forwardRef(((e,t)=>{const n=_s(Jf,e.__scopeDialog),r=m.useRef(null),o=np(t,n.contentRef,r);return m.useEffect((()=>{const e=r.current;if(e)return $y(e)}),[]),G.jsx(UD,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ud(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()})),onPointerDownOutside:ud(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:ud(e.onFocusOutside,(e=>e.preventDefault()))})})),yV=m.forwardRef(((e,t)=>{const n=_s(Jf,e.__scopeDialog),r=m.useRef(!1),o=m.useRef(!1);return G.jsx(UD,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,a;null==(i=e.onCloseAutoFocus)||i.call(e,t),t.defaultPrevented||(r.current||null==(a=n.triggerRef.current)||a.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var i,a;null==(i=e.onInteractOutside)||i.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const u=t.target;(null==(a=n.triggerRef.current)?void 0:a.contains(u))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})})),UD=m.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,u=_s(Jf,n),s=m.useRef(null),l=np(t,s);return Zj(),G.jsxs(G.Fragment,{children:[G.jsx($D,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:G.jsx(ED,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":hC(u.open),...a,ref:l,onDismiss:()=>u.onOpenChange(!1)})}),G.jsxs(G.Fragment,{children:[G.jsx(wV,{titleId:u.titleId}),G.jsx(bV,{contentRef:s,descriptionId:u.descriptionId})]})]})})),pC="DialogTitle",zD=m.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=_s(pC,n);return G.jsx(Rl.h2,{id:o.titleId,...r,ref:t})}));zD.displayName=pC;var WD="DialogDescription",qD=m.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=_s(WD,n);return G.jsx(Rl.p,{id:o.descriptionId,...r,ref:t})}));qD.displayName=WD;var GD="DialogClose",HD=m.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=_s(GD,n);return G.jsx(Rl.button,{type:"button",...r,ref:t,onClick:ud(e.onClick,(()=>o.onOpenChange(!1)))})}));function hC(e){return e?"open":"closed"}HD.displayName=GD;var KD="DialogTitleWarning",[GZ,QD]=_j(KD,{contentName:Jf,titleName:pC,docsSlug:"dialog"}),wV=({titleId:e})=>{const t=QD(KD),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return m.useEffect((()=>{e&&(document.getElementById(e)||console.error(n))}),[n,e]),null},_V="DialogDescriptionWarning",bV=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${QD(_V).contentName}}.`;return m.useEffect((()=>{var r;const o=null==(r=e.current)?void 0:r.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))}),[n,e,t]),null},xV=ND,SV=LD,EV=BD,CV=jD,$V=VD,IV=zD,RV=qD,PV=HD;function TV(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const YD=We.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),zh=()=>{const e=We.useContext(YD);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};TV("[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(\n[data-state=closed]\n){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,100%,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,100%,0)}}@keyframes slideFromTop{from{transform:translate3d(0,-100%,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,-100%,0)}}@keyframes slideFromLeft{from{transform:translate3d(-100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(-100%,0,0)}}@keyframes slideFromRight{from{transform:translate3d(100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(100%,0,0)}}");const OV=24,AV=typeof window<"u"?m.useLayoutEffect:m.useEffect;function UT(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}function kV(){return mC(/^Mac/)}function DV(){return mC(/^iPhone/)}function zT(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function NV(){return mC(/^iPad/)||kV()&&navigator.maxTouchPoints>1}function XD(){return DV()||NV()}function mC(e){return typeof window<"u"&&null!=window.navigator?e.test(window.navigator.platform):void 0}const _x=typeof document<"u"&&window.visualViewport;function WT(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function JD(e){for(WT(e)&&(e=e.parentElement);e&&!WT(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const MV=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let bx,kg=0;function LV(e={}){let{isDisabled:t}=e;AV((()=>{if(!t)return kg++,1===kg&&XD()&&(bx=FV()),()=>{kg--,0===kg&&(null==bx||bx())}}),[t])}function FV(){let e,t=0,n=window.pageXOffset,r=window.pageYOffset,o=UT(BV(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"));window.scrollTo(0,0);let i=UT(Gm(document,"touchstart",(n=>{e=JD(n.target),(e!==document.documentElement||e!==document.body)&&(t=n.changedTouches[0].pageY)}),{passive:!1,capture:!0}),Gm(document,"touchmove",(n=>{if(!e||e===document.documentElement||e===document.body)return void n.preventDefault();let r=n.changedTouches[0].pageY,o=e.scrollTop,i=e.scrollHeight-e.clientHeight;0!==i&&((o<=0&&r>t||o>=i&&r<t)&&n.preventDefault(),t=r)}),{passive:!1,capture:!0}),Gm(document,"touchend",(e=>{let t=e.target;zS(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame((()=>{t.style.transform=""})))}),{passive:!1,capture:!0}),Gm(document,"focus",(e=>{let t=e.target;zS(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",_x&&(_x.height<window.innerHeight?requestAnimationFrame((()=>{qT(t)})):_x.addEventListener("resize",(()=>qT(t)),{once:!0}))})))}),!0),Gm(window,"scroll",(()=>{window.scrollTo(0,0)})));return()=>{o(),i(),window.scrollTo(n,r)}}function BV(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Gm(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function qT(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=JD(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;e.getBoundingClientRect().bottom>t.getBoundingClientRect().bottom+24&&(t.scrollTop+=r-n)}e=t.parentElement}}function zS(e){return e instanceof HTMLInputElement&&!MV.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function jV(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function VV(...e){return t=>e.forEach((e=>jV(e,t)))}function ZD(...e){return m.useCallback(VV(...e),e)}const eN=new WeakMap;function zr(e,t,n=!1){if(!(e&&e instanceof HTMLElement))return;let r={};Object.entries(t).forEach((([t,n])=>{t.startsWith("--")?e.style.setProperty(t,n):(r[t]=e.style[t],e.style[t]=n)})),!n&&eN.set(e,r)}function UV(e,t){if(!(e&&e instanceof HTMLElement))return;let n=eN.get(e);n&&(e.style[t]=n[t])}const Wr=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function Dg(e,t){if(!e)return null;const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let o=r.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[Wr(t)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[Wr(t)?5:4]):null)}function zV(e){return 8*(Math.log(e+1)-2)}function xx(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function WV(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}const Vn={DURATION:.5,EASE:[.32,.72,0,1]},tN=.4,qV=.25,GV=100,nN=8,kf=16,WS=26,Sx="vaul-dragging";function rN(e){const t=We.useRef(e);return We.useEffect((()=>{t.current=e})),We.useMemo((()=>(...e)=>null==t.current?void 0:t.current.call(t,...e)),[])}function HV({defaultProp:e,onChange:t}){const n=We.useState(e),[r]=n,o=We.useRef(r),i=rN(t);return We.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}function oN({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=HV({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,u=rN(n);return[a,We.useCallback((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&u(n)}else o(t)}),[i,e,o,u])]}function KV({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:i,onSnapPointChange:a,direction:u="bottom",container:s,snapToSequentialPoint:l}){const[c,d]=oN({prop:e,defaultProp:null==n?void 0:n[0],onChange:t}),[f,p]=We.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);We.useEffect((()=>{function e(){p({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]);const m=We.useMemo((()=>c===(null==n?void 0:n[n.length-1])||null),[n,c]),h=We.useMemo((()=>null==n?void 0:n.findIndex((e=>e===c))),[n,c]),v=n&&n.length>0&&(i||0===i)&&!Number.isNaN(i)&&n[i]===c||!n,g=We.useMemo((()=>{const e=s?{width:s.getBoundingClientRect().width,height:s.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var t;return null!=(t=null==n?void 0:n.map((t=>{const n="string"==typeof t;let r=0;if(n&&(r=parseInt(t,10)),Wr(u)){const o=n?r:f?t*e.height:0;return f?"bottom"===u?e.height-o:-e.height+o:o}const o=n?r:f?t*e.width:0;return f?"right"===u?e.width-o:-e.width+o:o})))?t:[]}),[n,f,s]),y=We.useMemo((()=>null!==h?null==g?void 0:g[h]:null),[g,h]),b=We.useCallback((e=>{var t;const s=null!=(t=null==g?void 0:g.findIndex((t=>t===e)))?t:null;a(s),zr(r.current,{transition:`transform ${Vn.DURATION}s cubic-bezier(${Vn.EASE.join(",")})`,transform:Wr(u)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`}),g&&s!==g.length-1&&s!==i&&s<i?zr(o.current,{transition:`opacity ${Vn.DURATION}s cubic-bezier(${Vn.EASE.join(",")})`,opacity:"0"}):zr(o.current,{transition:`opacity ${Vn.DURATION}s cubic-bezier(${Vn.EASE.join(",")})`,opacity:"1"}),d(null==n?void 0:n[Math.max(s,0)])}),[r.current,n,g,i,o,d]);return We.useEffect((()=>{if(c||e){var t;const r=null!=(t=null==n?void 0:n.findIndex((t=>t===e||t===c)))?t:-1;g&&-1!==r&&"number"==typeof g[r]&&b(g[r])}}),[c,e,n,g,b]),{isLastSnapPoint:m,activeSnapPoint:c,shouldFade:v,getPercentageDragged:function(e,t){if(!n||"number"!=typeof h||!g||void 0===i)return null;const r=h===i-1;if(h>=i&&t)return 0;if(r&&!t)return 1;if(!v&&!r)return null;const o=r?h+1:h-1,a=r?g[o]-g[o-1]:g[o+1]-g[o],u=e/Math.abs(a);return r?1-u:u},setActiveSnapPoint:d,activeSnapPointIndex:h,onRelease:function({draggedDistance:e,closeDrawer:t,velocity:r,dismissible:a}){if(void 0===i)return;const s="bottom"===u||"right"===u?(y??0)-e:(y??0)+e,c=0===h,d=e>0;if(h===i-1&&zr(o.current,{transition:`opacity ${Vn.DURATION}s cubic-bezier(${Vn.EASE.join(",")})`}),!l&&r>2&&!d)return void(a?t():b(g[0]));if(!l&&r>2&&d&&g&&n)return void b(g[n.length-1]);const f=null==g?void 0:g.reduce(((e,t)=>"number"!=typeof e||"number"!=typeof t?e:Math.abs(t-s)<Math.abs(e-s)?t:e)),p=Wr(u)?window.innerHeight:window.innerWidth;if(r>tN&&Math.abs(e)<.4*p){const e=d?1:-1;if(e>0&&m)return void b(g[n.length-1]);if(c&&e<0&&a&&t(),null===h)return;b(g[h+e])}else b(f)},onDrag:function({draggedDistance:e}){if(null===y)return;const t="bottom"===u||"right"===u?y-e:y+e;("bottom"===u||"right"===u)&&t<g[g.length-1]||("top"===u||"left"===u)&&t>g[g.length-1]||zr(r.current,{transform:Wr(u)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})},snapPointsOffset:g}}const QV=()=>()=>{};function YV(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:o}=zh(),i=We.useRef(null),a=m.useMemo((()=>document.body.style.backgroundColor),[]);function u(){return(window.innerWidth-26)/window.innerWidth}We.useEffect((()=>{if(t&&n){i.current&&clearTimeout(i.current);const t=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!t)return;WV(r&&!o?xx(document.body,{background:"black"}):QV,xx(t,{transformOrigin:Wr(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${Vn.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Vn.EASE.join(",")})`}));const n=xx(t,{borderRadius:"8px",overflow:"hidden",...Wr(e)?{transform:`scale(${u()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${u()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{n(),i.current=window.setTimeout((()=>{a?document.body.style.background=a:document.body.style.removeProperty("background")}),1e3*Vn.DURATION)}}}),[t,n,a])}let Hm=null;function XV({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:i}){const[a,u]=We.useState((()=>typeof window<"u"?window.location.href:"")),s=We.useRef(0),l=We.useCallback((()=>{if(zT()&&null===Hm&&e&&!i){Hm={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:e,innerHeight:t}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:-s.current+"px",left:-e+"px",right:"0px",height:"auto"}),window.setTimeout((()=>window.requestAnimationFrame((()=>{const e=t-window.innerHeight;e&&s.current>=t&&(document.body.style.top=-(s.current+e)+"px")}))),300)}}),[e]),c=We.useCallback((()=>{if(zT()&&null!==Hm&&!i){const e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,Hm),window.requestAnimationFrame((()=>{o&&a!==window.location.href?u(window.location.href):window.scrollTo(t,e)})),Hm=null}}),[a]);return We.useEffect((()=>{function e(){s.current=window.scrollY}return e(),window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[]),We.useEffect((()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&l(),t||window.setTimeout((()=>{c()}),500)):c())}),[e,r,a,t,n,l,c]),{restorePositionSetting:c}}function iN({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:o,snapPoints:i,shouldScaleBackground:a=!1,setBackgroundColorOnScale:u=!0,closeThreshold:s=qV,scrollLockTimeout:l=GV,dismissible:c=!0,handleOnly:d=!1,fadeFromIndex:f=i&&i.length-1,activeSnapPoint:p,setActiveSnapPoint:m,fixed:h,modal:v=!0,onClose:g,nested:y,noBodyStyles:b,direction:w="bottom",defaultOpen:x=!1,disablePreventScroll:_=!0,snapToSequentialPoint:E=!1,preventScrollRestoration:S=!1,repositionInputs:A=!0,onAnimationEnd:k,container:C,autoFocus:I=!1}){var P,R;const[O=!1,T]=oN({defaultProp:x,prop:e,onChange:e=>{null==t||t(e),!e&&!y&&se(),setTimeout((()=>{null==k||k(e)}),1e3*Vn.DURATION),e&&!v&&typeof window<"u"&&window.requestAnimationFrame((()=>{document.body.style.pointerEvents="auto"})),e||(document.body.style.pointerEvents="auto")}}),[N,j]=We.useState(!1),[q,D]=We.useState(!1),[M,L]=We.useState(!1),$=We.useRef(null),B=We.useRef(null),V=We.useRef(null),z=We.useRef(null),F=We.useRef(null),U=We.useRef(!1),G=We.useRef(null),W=We.useRef(0),H=We.useRef(!1),K=We.useRef(0),Q=We.useRef(null),Y=We.useRef((null==(P=Q.current)?void 0:P.getBoundingClientRect().height)||0),X=We.useRef((null==(R=Q.current)?void 0:R.getBoundingClientRect().width)||0),J=We.useRef(0),Z=We.useCallback((e=>{i&&e===oe.length-1&&(B.current=new Date)}),[]),{activeSnapPoint:ee,activeSnapPointIndex:te,setActiveSnapPoint:ne,onRelease:re,snapPointsOffset:oe,onDrag:ie,shouldFade:ae,getPercentageDragged:ue}=KV({snapPoints:i,activeSnapPointProp:p,setActiveSnapPointProp:m,drawerRef:Q,fadeFromIndex:f,overlayRef:$,onSnapPointChange:Z,direction:w,container:C,snapToSequentialPoint:E});LV({isDisabled:!O||q||!v||M||!N||!A||!_});const{restorePositionSetting:se}=XV({isOpen:O,modal:v,nested:y,hasBeenOpened:N,preventScrollRestoration:S,noBodyStyles:b});function le(){return(window.innerWidth-26)/window.innerWidth}function ce(e,t){var n,r;let o=e;const i=null==(n=window.getSelection())?void 0:n.toString(),a=Q.current?Dg(Q.current,w):null,u=new Date;if(o.hasAttribute("data-vaul-no-drag")||o.closest("[data-vaul-no-drag]"))return!1;if("right"===w||"left"===w)return!0;if(B.current&&u.getTime()-B.current.getTime()<500)return!1;if(null!==a&&("bottom"===w?a>0:a<0))return!0;if(i&&i.length>0)return!1;if(u.getTime()-(null==(r=F.current)?void 0:r.getTime())<l&&0===a||t)return F.current=u,!1;for(;o;){if(o.scrollHeight>o.clientHeight){if(0!==o.scrollTop)return F.current=new Date,!1;if("dialog"===o.getAttribute("role"))return!0}o=o.parentNode}return!0}function de(e){!q||!Q.current||(Q.current.classList.remove(Sx),U.current=!1,D(!1),z.current=new Date),null==g||g(),e||T(!1),setTimeout((()=>{i&&ne(i[0])}),1e3*Vn.DURATION)}function fe(){if(!Q.current)return;const e=document.querySelector("[data-vaul-drawer-wrapper]"),t=Dg(Q.current,w);zr(Q.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${Vn.DURATION}s cubic-bezier(${Vn.EASE.join(",")})`}),zr($.current,{transition:`opacity ${Vn.DURATION}s cubic-bezier(${Vn.EASE.join(",")})`,opacity:"1"}),a&&t&&t>0&&O&&zr(e,{borderRadius:"8px",overflow:"hidden",...Wr(w)?{transform:`scale(${le()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${le()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${Vn.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Vn.EASE.join(",")})`},!0)}return We.useEffect((()=>{var e;function t(){if(!Q.current||!A)return;if(zS(document.activeElement)||H.current){var e;const t=(null==(e=window.visualViewport)?void 0:e.height)||0,n=window.innerHeight;let r=n-t;const o=Q.current.getBoundingClientRect().height||0,a=o>.8*n;J.current||(J.current=o);const u=Q.current.getBoundingClientRect().top;if(Math.abs(K.current-r)>60&&(H.current=!H.current),i&&i.length>0&&oe&&te){r+=oe[te]||0}if(K.current=r,o>t||H.current){const e=Q.current.getBoundingClientRect().height;let n=e;e>t&&(n=t-(a?u:26)),Q.current.style.height=h?e-Math.max(r,0)+"px":`${Math.max(n,t-u)}px`}else Q.current.style.height=`${J.current}px`;i&&i.length>0&&!H.current?Q.current.style.bottom="0px":Q.current.style.bottom=`${Math.max(r,0)}px`}}return null==(e=window.visualViewport)||e.addEventListener("resize",t),()=>{var e;return null==(e=window.visualViewport)?void 0:e.removeEventListener("resize",t)}}),[te,i,oe]),We.useEffect((()=>(O&&(zr(document.documentElement,{scrollBehavior:"auto"}),B.current=new Date),()=>{UV(document.documentElement,"scrollBehavior")})),[O]),We.createElement(xV,{defaultOpen:x,onOpenChange:e=>{!c&&!e||(e?j(!0):de(!0),T(e))},open:O},We.createElement(YD.Provider,{value:{activeSnapPoint:ee,snapPoints:i,setActiveSnapPoint:ne,drawerRef:Q,overlayRef:$,onOpenChange:t,onPress:function(e){var t,n;!c&&!i||Q.current&&!Q.current.contains(e.target)||(Y.current=(null==(t=Q.current)?void 0:t.getBoundingClientRect().height)||0,X.current=(null==(n=Q.current)?void 0:n.getBoundingClientRect().width)||0,D(!0),V.current=new Date,XD()&&window.addEventListener("touchend",(()=>U.current=!1),{once:!0}),e.target.setPointerCapture(e.pointerId),W.current=Wr(w)?e.pageY:e.pageX)},onRelease:function(e){if(!q||!Q.current)return;Q.current.classList.remove(Sx),U.current=!1,D(!1),z.current=new Date;const t=Dg(Q.current,w);if(!ce(e.target,!1)||!t||Number.isNaN(t)||null===V.current)return;const n=z.current.getTime()-V.current.getTime(),r=W.current-(Wr(w)?e.pageY:e.pageX),a=Math.abs(r)/n;if(a>.05&&(L(!0),setTimeout((()=>{L(!1)}),200)),i)return re({draggedDistance:r*("bottom"===w||"right"===w?1:-1),closeDrawer:de,velocity:a,dismissible:c}),void(null==o||o(e,!0));if("bottom"===w||"right"===w?r>0:r<0)return fe(),void(null==o||o(e,!0));if(a>tN)return de(),void(null==o||o(e,!1));var u;const l=Math.min(null!=(u=Q.current.getBoundingClientRect().height)?u:0,window.innerHeight);var d;const f=Math.min(null!=(d=Q.current.getBoundingClientRect().width)?d:0,window.innerWidth),p="left"===w||"right"===w;if(Math.abs(t)>=(p?f:l)*s)return de(),void(null==o||o(e,!1));null==o||o(e,!0),fe()},onDrag:function(e){if(Q.current&&q){const t="bottom"===w||"right"===w?1:-1,n=(W.current-(Wr(w)?e.pageY:e.pageX))*t,o=n>0,u=i&&!c&&!o;if(u&&0===te)return;const s=Math.abs(n),l=document.querySelector("[data-vaul-drawer-wrapper]");let d=s/("bottom"===w||"top"===w?Y.current:X.current);const p=ue(s,o);if(null!==p&&(d=p),u&&d>=1||!U.current&&!ce(e.target,o))return;if(Q.current.classList.add(Sx),U.current=!0,zr(Q.current,{transition:"none"}),zr($.current,{transition:"none"}),i&&ie({draggedDistance:n}),o&&!i){const e=zV(n),r=Math.min(-1*e,0)*t;return void zr(Q.current,{transform:Wr(w)?`translate3d(0, ${r}px, 0)`:`translate3d(${r}px, 0, 0)`})}const m=1-d;if((ae||f&&te===f-1)&&(null==r||r(e,d),zr($.current,{opacity:`${m}`,transition:"none"},!0)),l&&$.current&&a){const e=Math.min(le()+d*(1-le()),1),t=8-8*d,n=Math.max(0,14-14*d);zr(l,{borderRadius:`${t}px`,transform:Wr(w)?`scale(${e}) translate3d(0, ${n}px, 0)`:`scale(${e}) translate3d(${n}px, 0, 0)`,transition:"none"},!0)}if(!i){const e=s*t;zr(Q.current,{transform:Wr(w)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}},dismissible:c,handleOnly:d,isOpen:O,isDragging:q,shouldFade:ae,closeDrawer:de,onNestedDrag:function(e,t){if(t<0)return;const n=(window.innerWidth-16)/window.innerWidth,r=n+t*(1-n),o=16*t-16;zr(Q.current,{transform:Wr(w)?`scale(${r}) translate3d(0, ${o}px, 0)`:`scale(${r}) translate3d(${o}px, 0, 0)`,transition:"none"})},onNestedOpenChange:function(e){const t=e?(window.innerWidth-16)/window.innerWidth:1,n=e?-16:0;G.current&&window.clearTimeout(G.current),zr(Q.current,{transition:`transform ${Vn.DURATION}s cubic-bezier(${Vn.EASE.join(",")})`,transform:`scale(${t}) translate3d(0, ${n}px, 0)`}),!e&&Q.current&&(G.current=setTimeout((()=>{const e=Dg(Q.current,w);zr(Q.current,{transition:"none",transform:Wr(w)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}),500))},onNestedRelease:function(e,t){const n=Wr(w)?window.innerHeight:window.innerWidth,r=t?(n-16)/n:1,o=t?-16:0;t&&zr(Q.current,{transition:`transform ${Vn.DURATION}s cubic-bezier(${Vn.EASE.join(",")})`,transform:Wr(w)?`scale(${r}) translate3d(0, ${o}px, 0)`:`scale(${r}) translate3d(${o}px, 0, 0)`})},keyboardIsOpen:H,modal:v,snapPointsOffset:oe,direction:w,shouldScaleBackground:a,setBackgroundColorOnScale:u,noBodyStyles:b,container:C,autoFocus:I}},n))}const aN=We.forwardRef((function({...e},t){const{overlayRef:n,snapPoints:r,onRelease:o,shouldFade:i,isOpen:a,modal:u}=zh(),s=ZD(t,n),l=r&&r.length>0;return u?We.createElement(CV,{onMouseUp:o,ref:s,"data-vaul-overlay":"","data-vaul-snap-points":a&&l?"true":"false","data-vaul-snap-points-overlay":a&&i?"true":"false",...e}):(typeof window<"u"&&window.requestAnimationFrame((()=>{document.body.style.pointerEvents="auto"})),null)}));aN.displayName="Drawer.Overlay";const sN=We.forwardRef((function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},o){const{drawerRef:i,onPress:a,onRelease:u,onDrag:s,keyboardIsOpen:l,snapPointsOffset:c,modal:d,isOpen:f,direction:p,snapPoints:m,container:h,handleOnly:v,autoFocus:g}=zh(),[y,b]=We.useState(!1),w=ZD(o,i),x=We.useRef(null),_=We.useRef(null),E=We.useRef(!1),S=m&&m.length>0;YV();function A(e){x.current=null,E.current=!1,u(e)}return We.useEffect((()=>{S&&window.requestAnimationFrame((()=>{b(!0)}))}),[]),We.createElement($V,{"data-vaul-drawer-direction":p,"data-vaul-drawer":"","data-vaul-delayed-snap-points":y?"true":"false","data-vaul-snap-points":f&&S?"true":"false","data-vaul-custom-container":h?"true":"false",...r,ref:w,style:c&&c.length>0?{"--snap-point-height":`${c[0]}px`,...t}:t,onPointerDown:e=>{v||(null==r.onPointerDown||r.onPointerDown.call(r,e),x.current={x:e.pageX,y:e.pageY},a(e))},onOpenAutoFocus:e=>{null==n||n(e),g||e.preventDefault()},onPointerDownOutside:t=>{null==e||e(t),d&&!t.defaultPrevented?l.current&&(l.current=!1):t.preventDefault()},onFocusOutside:e=>{d||e.preventDefault()},onPointerMove:e=>{if(_.current=e,v||(null==r.onPointerMove||r.onPointerMove.call(r,e),!x.current))return;const t=e.pageY-x.current.y,n=e.pageX-x.current.x,o="touch"===e.pointerType?10:2;((e,t,n=0)=>{if(E.current)return!0;const r=Math.abs(e.y),o=Math.abs(e.x),i=o>r,a=["bottom","right"].includes(t)?1:-1;if("left"===t||"right"===t){if(!(e.x*a<0)&&o>=0&&o<=n)return i}else if(!(e.y*a<0)&&r>=0&&r<=n)return!i;return E.current=!0,!0})({x:n,y:t},p,o)?s(e):(Math.abs(n)>o||Math.abs(t)>o)&&(x.current=null)},onPointerUp:e=>{null==r.onPointerUp||r.onPointerUp.call(r,e),x.current=null,E.current=!1,u(e)},onPointerOut:e=>{null==r.onPointerOut||r.onPointerOut.call(r,e),A(_.current)},onContextMenu:e=>{null==r.onContextMenu||r.onContextMenu.call(r,e),A(_.current)}})}));sN.displayName="Drawer.Content";const JV=250,ZV=120,uN=We.forwardRef((function({preventCycle:e=!1,children:t,...n},r){const{closeDrawer:o,isDragging:i,snapPoints:a,activeSnapPoint:u,setActiveSnapPoint:s,dismissible:l,handleOnly:c,isOpen:d,onPress:f,onDrag:p}=zh(),m=We.useRef(null),h=We.useRef(!1);function v(){window.clearTimeout(m.current),h.current=!1}return We.createElement("div",{onClick:function(){h.current?v():window.setTimeout((()=>{!function(){if(i||e||h.current)return void v();if(v(),(!a||0===a.length)&&l)return void o();if(u===a[a.length-1]&&l)return void o();const t=a.findIndex((e=>e===u));if(-1===t)return;const n=a[t+1];s(n)}()}),ZV)},onPointerCancel:v,onPointerDown:e=>{c&&f(e),m.current=window.setTimeout((()=>{h.current=!0}),JV)},onPointerMove:e=>{c&&p(e)},ref:r,"data-vaul-drawer-visible":d?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},We.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))}));function eU({onDrag:e,onOpenChange:t,...n}){const{onNestedDrag:r,onNestedOpenChange:o,onNestedRelease:i}=zh();if(!r)throw new Error("Drawer.NestedRoot must be placed in another drawer");return We.createElement(iN,{nested:!0,onClose:()=>{o(!1)},onDrag:(t,n)=>{r(t,n),null==e||e(t,n)},onOpenChange:e=>{e&&o(e)},onRelease:i,...n})}function tU(e){const t=zh(),{container:n=t.container,...r}=e;return We.createElement(EV,{container:n,...r})}uN.displayName="Drawer.Handle";const _d={Root:iN,NestedRoot:eU,Content:sN,Overlay:aN,Trigger:SV,Portal:tU,Handle:uN,Close:PV,Title:IV,Description:RV},nU=_d.Portal,lN=m.forwardRef((({className:e,...t},n)=>G.jsx(_d.Overlay,{ref:n,className:be("fixed inset-0 z-50 bg-black/5",e),...t})));lN.displayName=_d.Overlay.displayName;const rU=m.forwardRef((({className:e,children:t,direction:n="bottom",...r},o)=>G.jsxs(nU,{children:[G.jsx(lN,{}),G.jsxs(_d.Content,{ref:o,className:be("fixed z-50 border bg-background shadow-lg","bottom"===n&&"inset-x-0 bottom-0 mt-24 flex h-auto flex-col rounded-t-sm","top"===n&&"inset-x-0 top-0 mb-24 flex h-auto flex-col rounded-b-sm","left"===n&&"inset-y-0 left-0 flex h-full flex-col","right"===n&&"inset-y-0 right-0 flex h-full w-[346px] flex-col sm:w-[435px]",e),...r,children:["bottom"===n&&G.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]})));rU.displayName="DrawerContent";const oU=m.forwardRef((({className:e,...t},n)=>G.jsx(_d.Title,{ref:n,className:be("text-lg font-semibold leading-none tracking-tight",e),...t})));oU.displayName=_d.Title.displayName;const iU=m.forwardRef((({className:e,...t},n)=>G.jsx(_d.Description,{ref:n,className:be("text-sm text-muted-foreground",e),...t})));function vC(e){const t=e+"CollectionProvider",[n,r]=ni(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",u=e+"CollectionItemSlot",s="data-radix-collection-item";return[{Provider:e=>{const{scope:t,children:n}=e,r=We.useRef(null),i=We.useRef(new Map).current;return We.createElement(o,{scope:t,itemMap:i,collectionRef:r},n)},Slot:We.forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=Ut(t,i(a,n).collectionRef);return We.createElement(Hf,{ref:o},r)})),ItemSlot:We.forwardRef(((e,t)=>{const{scope:n,children:r,...o}=e,a=We.useRef(null),l=Ut(t,a),c=i(u,n);return We.useEffect((()=>(c.itemMap.set(a,{ref:a,...o}),()=>{c.itemMap.delete(a)}))),We.createElement(Hf,{[s]:"",ref:l},r)}))},function(t){const n=i(e+"CollectionConsumer",t);return We.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${s}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},r]}iU.displayName=_d.Description.displayName;const aU=m.createContext(void 0);function gC(e){const t=m.useContext(aU);return e||t||"ltr"}const sU=["top","right","bottom","left"],hd=Math.min,Xi=Math.max,ty=Math.round,Ng=Math.floor,md=e=>({x:e,y:e}),uU={left:"right",right:"left",bottom:"top",top:"bottom"},lU={start:"end",end:"start"};function qS(e,t,n){return Xi(e,hd(t,n))}function Cl(e,t){return"function"==typeof e?e(t):e}function $l(e){return e.split("-")[0]}function Wh(e){return e.split("-")[1]}function yC(e){return"x"===e?"y":"x"}function wC(e){return"y"===e?"height":"width"}function vd(e){return["top","bottom"].includes($l(e))?"y":"x"}function _C(e){return yC(vd(e))}function cU(e,t,n){void 0===n&&(n=!1);const r=Wh(e),o=_C(e),i=wC(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=ny(a)),[a,ny(a)]}function dU(e){const t=ny(e);return[GS(e),t,GS(t)]}function GS(e){return e.replace(/start|end/g,(e=>lU[e]))}function fU(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}function pU(e,t,n,r){const o=Wh(e);let i=fU($l(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(GS)))),i}function ny(e){return e.replace(/left|right|bottom|top/g,(e=>uU[e]))}function hU(e){return{top:0,right:0,bottom:0,left:0,...e}}function cN(e){return"number"!=typeof e?hU(e):{top:e,right:e,bottom:e,left:e}}function ry(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function GT(e,t,n){let{reference:r,floating:o}=e;const i=vd(t),a=_C(t),u=wC(a),s=$l(t),l="y"===i,c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[u]/2-o[u]/2;let p;switch(s){case"top":p={x:c,y:r.y-o.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Wh(t)){case"start":p[a]-=f*(n&&l?-1:1);break;case"end":p[a]+=f*(n&&l?-1:1)}return p}const mU=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,u=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=GT(l,r,s),f=r,p={},m=0;for(let n=0;n<u.length;n++){const{name:i,fn:h}=u[n],{x:v,y:g,data:y,reset:b}=await h({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:l,platform:a,elements:{reference:e,floating:t}});c=v??c,d=g??d,p={...p,[i]:{...p[i],...y}},b&&m<=50&&(m++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(l=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:c,y:d}=GT(l,f,s))),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}};async function bv(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:u,strategy:s}=e,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Cl(t,e),m=cN(p),h=u[f?"floating"===d?"reference":"floating":d],v=ry(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(u.floating)),boundary:l,rootBoundary:c,strategy:s})),g="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(u.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=ry(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:g,offsetParent:y,strategy:s}):g);return{top:(v.top-w.top+m.top)/b.y,bottom:(w.bottom-v.bottom+m.bottom)/b.y,left:(v.left-w.left+m.left)/b.x,right:(w.right-v.right+m.right)/b.x}}const vU=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:u,middlewareData:s}=t,{element:l,padding:c=0}=Cl(e,t)||{};if(null==l)return{};const d=cN(c),f={x:n,y:r},p=_C(o),m=wC(p),h=await a.getDimensions(l),v="y"===p,g=v?"top":"left",y=v?"bottom":"right",b=v?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[p]-f[p]-i.floating[m],x=f[p]-i.reference[p],_=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let E=_?_[b]:0;(!E||!await(null==a.isElement?void 0:a.isElement(_)))&&(E=u.floating[b]||i.floating[m]);const S=w/2-x/2,A=E/2-h[m]/2-1,k=hd(d[g],A),C=hd(d[y],A),I=k,P=E-h[m]-C,R=E/2-h[m]/2+S,O=qS(I,R,P),T=!s.arrow&&null!=Wh(o)&&R!==O&&i.reference[m]/2-(R<I?k:C)-h[m]/2<0,N=T?R<I?R-I:R-P:0;return{[p]:f[p]+N,data:{[p]:O,centerOffset:R-O-N,...T&&{alignmentOffset:N}},reset:T}}}),gU=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:u,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...v}=Cl(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const g=$l(o),y=vd(u),b=$l(u)===u,w=await(null==s.isRTL?void 0:s.isRTL(l.floating)),x=f||(b||!h?[ny(u)]:dU(u)),_="none"!==m;!f&&_&&x.push(...pU(u,h,m,w));const E=[u,...x],S=await bv(t,v),A=[];let k=(null==(r=i.flip)?void 0:r.overflows)||[];if(c&&A.push(S[g]),d){const e=cU(o,a,w);A.push(S[e[0]],S[e[1]])}if(k=[...k,{placement:o,overflows:A}],!A.every((e=>e<=0))){var C,I;const e=((null==(C=i.flip)?void 0:C.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(I=k.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:I.placement;if(!n)switch(p){case"bestFit":{var P;const e=null==(P=k.filter((e=>{if(_){const t=vd(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:P[0];e&&(n=e);break}case"initialPlacement":n=u}if(o!==n)return{reset:{placement:n}}}return{}}}};function HT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function KT(e){return sU.some((t=>e[t]>=0))}const yU=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Cl(e,t);switch(r){case"referenceHidden":{const e=HT(await bv(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:KT(e)}}}case"escaped":{const e=HT(await bv(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:KT(e)}}}default:return{}}}}};async function wU(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=$l(n),u=Wh(n),s="y"===vd(n),l=["left","top"].includes(a)?-1:1,c=i&&s?-1:1,d=Cl(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return u&&"number"==typeof m&&(p="end"===u?-1*m:m),s?{x:p*c,y:f*l}:{x:f*l,y:p*c}}const _U=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:u}=t,s=await wU(t,e);return a===(null==(n=u.offset)?void 0:n.placement)&&null!=(r=u.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},bU=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=Cl(e,t),l={x:n,y:r},c=await bv(t,s),d=vd($l(o)),f=yC(d);let p=l[f],m=l[d];if(i){const e="y"===f?"bottom":"right";p=qS(p+c["y"===f?"top":"left"],p,p-c[e])}if(a){const e="y"===d?"bottom":"right";m=qS(m+c["y"===d?"top":"left"],m,m-c[e])}const h=u.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:i,[d]:a}}}}}},xU=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:u=0,mainAxis:s=!0,crossAxis:l=!0}=Cl(e,t),c={x:n,y:r},d=vd(o),f=yC(d);let p=c[f],m=c[d];const h=Cl(u,t),v="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+v.mainAxis,n=i.reference[f]+i.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var g,y;const e="y"===f?"width":"height",t=["top","left"].includes($l(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(g=a.offset)?void 0:g[d])||0)+(t?0:v.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?v.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},SU=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:u}=t,{apply:s=()=>{},...l}=Cl(e,t),c=await bv(t,l),d=$l(o),f=Wh(o),p="y"===vd(o),{width:m,height:h}=i.floating;let v,g;"top"===d||"bottom"===d?(v=d,g=f===(await(null==a.isRTL?void 0:a.isRTL(u.floating))?"start":"end")?"left":"right"):(g=d,v="end"===f?"top":"bottom");const y=h-c.top-c.bottom,b=m-c.left-c.right,w=hd(h-c[v],y),x=hd(m-c[g],b),_=!t.middlewareData.shift;let E=w,S=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(E=y),_&&!f){const e=Xi(c.left,0),t=Xi(c.right,0),n=Xi(c.top,0),r=Xi(c.bottom,0);p?S=m-2*(0!==e||0!==t?e+t:Xi(c.left,c.right)):E=h-2*(0!==n||0!==r?n+r:Xi(c.top,c.bottom))}await s({...t,availableWidth:S,availableHeight:E});const A=await a.getDimensions(u.floating);return m!==A.width||h!==A.height?{reset:{rects:!0}}:{}}}};function Wy(){return typeof window<"u"}function gd(e){return dN(e)?(e.nodeName||"").toLowerCase():"#document"}function Ji(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Pl(e){var t;return null==(t=(dN(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function dN(e){return!!Wy()&&(e instanceof Node||e instanceof Ji(e).Node)}function fu(e){return!!Wy()&&(e instanceof Element||e instanceof Ji(e).Element)}function pu(e){return!!Wy()&&(e instanceof HTMLElement||e instanceof Ji(e).HTMLElement)}function QT(e){return!(!Wy()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof Ji(e).ShadowRoot)}function Vv(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Da(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function EU(e){return["table","td","th"].includes(gd(e))}function CU(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch{return!1}}))}function bC(e){const t=xC(),n=fu(e)?Da(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function fN(e){let t=Lh(e);for(;pu(t)&&!qy(t);){if(bC(t))return t;if(CU(t))return null;t=Lh(t)}return null}function xC(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function qy(e){return["html","body","#document"].includes(gd(e))}function Da(e){return Ji(e).getComputedStyle(e)}function Gy(e){return fu(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Lh(e){if("html"===gd(e))return e;const t=e.assignedSlot||e.parentNode||QT(e)&&e.host||Pl(e);return QT(t)?t.host:t}function pN(e){const t=Lh(e);return qy(t)?e.ownerDocument?e.ownerDocument.body:e.body:pu(t)&&Vv(t)?t:pN(t)}function xv(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=pN(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Ji(o);if(i){const e=$U(a);return t.concat(a,a.visualViewport||[],Vv(o)?o:[],e&&n?xv(e):[])}return t.concat(o,xv(o,[],n))}function $U(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function hN(e){const t=Da(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=pu(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,u=ty(n)!==i||ty(r)!==a;return u&&(n=i,r=a),{width:n,height:r,$:u}}function SC(e){return fu(e)?e:e.contextElement}function Oh(e){const t=SC(e);if(!pu(t))return md(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=hN(t);let a=(i?ty(n.width):n.width)/r,u=(i?ty(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!u||!Number.isFinite(u))&&(u=1),{x:a,y:u}}const IU=md(0);function mN(e){const t=Ji(e);return xC()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:IU}function RU(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Ji(e))&&t}function Zf(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=SC(e);let a=md(1);t&&(r?fu(r)&&(a=Oh(r)):a=Oh(e));const u=RU(i,n,r)?mN(i):md(0);let s=(o.left+u.x)/a.x,l=(o.top+u.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(i){const e=Ji(i),t=r&&fu(r)?Ji(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=Oh(n),t=n.getBoundingClientRect(),r=Da(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,l*=e.y,c*=e.x,d*=e.y,s+=o,l+=i,n=Ji(n).frameElement}}return ry({width:c,height:d,x:s,y:l})}const PU=[":popover-open",":modal"];function vN(e){let t=!1,n=0,r=0;if(PU.forEach((n=>{!function(n){try{t=t||e.matches(n)}catch{}}(n)})),t){const t=fN(e);if(t){const e=t.getBoundingClientRect();n=e.x,r=e.y}}return[t,n,r]}function TU(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=Pl(r),[a]=t?vN(t.floating):[!1];if(r===i||a)return n;let u={scrollLeft:0,scrollTop:0},s=md(1);const l=md(0),c=pu(r);if((c||!c&&"fixed"!==o)&&(("body"!==gd(r)||Vv(i))&&(u=Gy(r)),pu(r))){const e=Zf(r);s=Oh(r),l.x=e.x+r.clientLeft,l.y=e.y+r.clientTop}return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-u.scrollLeft*s.x+l.x,y:n.y*s.y-u.scrollTop*s.y+l.y}}function OU(e){return Array.from(e.getClientRects())}function gN(e){return Zf(Pl(e)).left+Gy(e).scrollLeft}function AU(e){const t=Pl(e),n=Gy(e),r=e.ownerDocument.body,o=Xi(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Xi(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+gN(e);const u=-n.scrollTop;return"rtl"===Da(r).direction&&(a+=Xi(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:u}}function kU(e,t){const n=Ji(e),r=Pl(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,u=0,s=0;if(o){i=o.width,a=o.height;const e=xC();(!e||e&&"fixed"===t)&&(u=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:u,y:s}}function DU(e,t){const n=Zf(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=pu(e)?Oh(e):md(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}function YT(e,t,n){let r;if("viewport"===t)r=kU(e,n);else if("document"===t)r=AU(Pl(e));else if(fu(t))r=DU(t,n);else{const n=mN(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return ry(r)}function yN(e,t){const n=Lh(e);return!(n===t||!fu(n)||qy(n))&&("fixed"===Da(n).position||yN(n,t))}function NU(e,t){const n=t.get(e);if(n)return n;let r=xv(e,[],!1).filter((e=>fu(e)&&"body"!==gd(e))),o=null;const i="fixed"===Da(e).position;let a=i?Lh(e):e;for(;fu(a)&&!qy(a);){const t=Da(a),n=bC(a);!n&&"fixed"===t.position&&(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Vv(a)&&!n&&yN(e,a))?r=r.filter((e=>e!==a)):o=t,a=Lh(a)}return t.set(e,r),r}function MU(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?NU(t,this._c):[].concat(n),r],a=i[0],u=i.reduce(((e,n)=>{const r=YT(t,n,o);return e.top=Xi(r.top,e.top),e.right=hd(r.right,e.right),e.bottom=hd(r.bottom,e.bottom),e.left=Xi(r.left,e.left),e}),YT(t,a,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function LU(e){const{width:t,height:n}=hN(e);return{width:t,height:n}}function FU(e,t,n,r){const o=pu(t),i=Pl(t),a="fixed"===n,u=Zf(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=md(0);if(o||!o&&!a)if(("body"!==gd(t)||Vv(i))&&(s=Gy(t)),o){const e=Zf(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=gN(i));let c=u.left+s.scrollLeft-l.x,d=u.top+s.scrollTop-l.y;const[f,p,m]=vN(r);return f&&(c+=p,d+=m,o&&(c+=t.clientLeft,d+=t.clientTop)),{x:c,y:d,width:u.width,height:u.height}}function XT(e,t){return pu(e)&&"fixed"!==Da(e).position?t?t(e):e.offsetParent:null}function wN(e,t){const n=Ji(e);if(!pu(e))return n;let r=XT(e,t);for(;r&&EU(r)&&"static"===Da(r).position;)r=XT(r,t);return r&&("html"===gd(r)||"body"===gd(r)&&"static"===Da(r).position&&!bC(r))?n:r||fN(e)||n}const BU=async function(e){const t=this.getOffsetParent||wN,n=this.getDimensions;return{reference:FU(e.reference,await t(e.floating),e.strategy,e.floating),floating:{x:0,y:0,...await n(e.floating)}}};function jU(e){return"rtl"===Da(e).direction}const VU={convertOffsetParentRelativeRectToViewportRelativeRect:TU,getDocumentElement:Pl,getClippingRect:MU,getOffsetParent:wN,getElementRects:BU,getClientRects:OU,getDimensions:LU,getScale:Oh,isElement:fu,isRTL:jU};function UU(e,t){let n,r=null;const o=Pl(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(u,s){void 0===u&&(u=!1),void 0===s&&(s=1),i();const{left:l,top:c,width:d,height:f}=e.getBoundingClientRect();if(u||t(),!d||!f)return;const p={rootMargin:-Ng(c)+"px "+-Ng(o.clientWidth-(l+d))+"px "+-Ng(o.clientHeight-(c+f))+"px "+-Ng(l)+"px",threshold:Xi(0,hd(1,s))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==s){if(!m)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}m=!1}try{r=new IntersectionObserver(h,{...p,root:o.ownerDocument})}catch{r=new IntersectionObserver(h,p)}r.observe(e)}(!0),i}function zU(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,l=SC(e),c=o||i?[...l?xv(l):[],...xv(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=l&&u?UU(l,n):null;let f=-1,p=null;a&&(p=new ResizeObserver((e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=p)||e.observe(t)}))),n()})),l&&!s&&p.observe(l),p.observe(t));let m,h=s?Zf(e):null;return s&&function t(){const r=Zf(e);h&&(r.x!==h.x||r.y!==h.y||r.width!==h.width||r.height!==h.height)&&n(),h=r,m=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=p)||e.disconnect(),p=null,s&&cancelAnimationFrame(m)}}const WU=bU,qU=gU,GU=SU,HU=yU,JT=vU,KU=xU,QU=(e,t,n)=>{const r=new Map,o={platform:VU,...n},i={...o.platform,_c:r};return mU(e,t,{...o,platform:i})};var Gg=typeof document<"u"?m.useLayoutEffect:m.useEffect;function oy(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!oy(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||oy(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function _N(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ZT(e,t){const n=_N(e);return Math.round(t*n)/n}function Ex(e){const t=m.useRef(e);return Gg((()=>{t.current=e})),t}function YU(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:u=!0,whileElementsMounted:s,open:l}=e,[c,d]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=m.useState(r);oy(f,r)||p(r);const[h,v]=m.useState(null),[g,y]=m.useState(null),b=m.useCallback((e=>{e!==E.current&&(E.current=e,v(e))}),[]),w=m.useCallback((e=>{e!==S.current&&(S.current=e,y(e))}),[]),x=i||h,_=a||g,E=m.useRef(null),S=m.useRef(null),A=m.useRef(c),k=null!=s,C=Ex(s),I=Ex(o),P=Ex(l),R=m.useCallback((()=>{if(!E.current||!S.current)return;const e={placement:t,strategy:n,middleware:f};I.current&&(e.platform=I.current),QU(E.current,S.current,e).then((e=>{const t={...e,isPositioned:!1!==P.current};O.current&&!oy(A.current,t)&&(A.current=t,vu.flushSync((()=>{d(t)})))}))}),[f,t,n,I,P]);Gg((()=>{!1===l&&A.current.isPositioned&&(A.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[l]);const O=m.useRef(!1);Gg((()=>(O.current=!0,()=>{O.current=!1})),[]),Gg((()=>{if(x&&(E.current=x),_&&(S.current=_),x&&_){if(C.current)return C.current(x,_,R);R()}}),[x,_,R,C,k]);const T=m.useMemo((()=>({reference:E,floating:S,setReference:b,setFloating:w})),[b,w]),N=m.useMemo((()=>({reference:x,floating:_})),[x,_]),j=m.useMemo((()=>{const e={position:n,left:0,top:0};if(!N.floating)return e;const t=ZT(N.floating,c.x),r=ZT(N.floating,c.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",..._N(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,u,N.floating,c.x,c.y]);return m.useMemo((()=>({...c,update:R,refs:T,elements:N,floatingStyles:j})),[c,R,T,N,j])}const XU=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&function(e){return{}.hasOwnProperty.call(e,"current")}(n)?null!=n.current?JT({element:n.current,padding:r}).fn(t):{}:n?JT({element:n,padding:r}).fn(t):{}}}),JU=(e,t)=>({..._U(e),options:[e,t]}),ZU=(e,t)=>({...WU(e),options:[e,t]}),ez=(e,t)=>({...KU(e),options:[e,t]}),tz=(e,t)=>({...qU(e),options:[e,t]}),nz=(e,t)=>({...GU(e),options:[e,t]}),rz=(e,t)=>({...HU(e),options:[e,t]}),oz=(e,t)=>({...XU(e),options:[e,t]}),iz=m.forwardRef(((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return m.createElement(lt.svg,Pe({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:m.createElement("polygon",{points:"0,0 30,0 15,10"}))})),az=iz,bN="Popper",[xN,qh]=ni(bN),[sz,SN]=xN(bN),uz=e=>{const{__scopePopper:t,children:n}=e,[r,o]=m.useState(null);return m.createElement(sz,{scope:t,anchor:r,onAnchorChange:o},n)},lz="PopperAnchor",cz=m.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=SN(lz,n),a=m.useRef(null),u=Ut(t,a);return m.useEffect((()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)})),r?null:m.createElement(lt.div,Pe({},o,{ref:u}))})),EN="PopperContent",[dz,fz]=xN(EN),pz=m.forwardRef(((e,t)=>{var n,r,o,i,a,u,s,l;const{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:p="center",alignOffset:h=0,arrowPadding:v=0,avoidCollisions:g=!0,collisionBoundary:y=[],collisionPadding:b=0,sticky:w="partial",hideWhenDetached:x=!1,updatePositionStrategy:_="optimized",onPlaced:E,...S}=e,A=SN(EN,c),[k,C]=m.useState(null),I=Ut(t,(e=>C(e))),[P,R]=m.useState(null),O=jy(P),T=null!==(n=null==O?void 0:O.width)&&void 0!==n?n:0,N=null!==(r=null==O?void 0:O.height)&&void 0!==r?r:0,j=d+("center"!==p?"-"+p:""),q="number"==typeof b?b:{top:0,right:0,bottom:0,left:0,...b},D=Array.isArray(y)?y:[y],M=D.length>0,L={padding:q,boundary:D.filter(gz),altBoundary:M},{refs:$,floatingStyles:B,placement:V,isPositioned:z,middlewareData:F}=YU({strategy:"fixed",placement:j,whileElementsMounted:(...e)=>zU(...e,{animationFrame:"always"===_}),elements:{reference:A.anchor},middleware:[JU({mainAxis:f+N,alignmentAxis:h}),g&&ZU({mainAxis:!0,crossAxis:!1,limiter:"partial"===w?ez():void 0,...L}),g&&tz({...L}),nz({...L,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),P&&oz({element:P,padding:v}),yz({arrowWidth:T,arrowHeight:N}),x&&rz({strategy:"referenceHidden",...L})]}),[U,G]=CN(V),W=ys(E);Uo((()=>{z&&(null==W||W())}),[z,W]);const H=null===(o=F.arrow)||void 0===o?void 0:o.x,K=null===(i=F.arrow)||void 0===i?void 0:i.y,Q=0!==(null===(a=F.arrow)||void 0===a?void 0:a.centerOffset),[Y,X]=m.useState();return Uo((()=>{k&&X(window.getComputedStyle(k).zIndex)}),[k]),m.createElement("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:z?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[null===(u=F.transformOrigin)||void 0===u?void 0:u.x,null===(s=F.transformOrigin)||void 0===s?void 0:s.y].join(" ")},dir:e.dir},m.createElement(dz,{scope:c,placedSide:U,onArrowChange:R,arrowX:H,arrowY:K,shouldHideArrow:Q},m.createElement(lt.div,Pe({"data-side":U,"data-align":G},S,{ref:I,style:{...S.style,animation:z?void 0:"none",opacity:null!==(l=F.hide)&&void 0!==l&&l.referenceHidden?0:void 0}}))))})),hz="PopperArrow",mz={top:"bottom",right:"left",bottom:"top",left:"right"},vz=m.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,o=fz(hz,n),i=mz[o.placedSide];return m.createElement("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0}},m.createElement(az,Pe({},r,{ref:t,style:{...r.style,display:"block"}})))}));function gz(e){return null!==e}const yz=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:u,rects:s,middlewareData:l}=t,c=0!==(null===(n=l.arrow)||void 0===n?void 0:n.centerOffset),d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,m]=CN(u),h={start:"0%",center:"50%",end:"100%"}[m],v=(null!==(r=null===(o=l.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,g=(null!==(i=null===(a=l.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let y="",b="";return"bottom"===p?(y=c?h:`${v}px`,b=-f+"px"):"top"===p?(y=c?h:`${v}px`,b=`${s.floating.height+f}px`):"right"===p?(y=-f+"px",b=c?h:`${g}px`):"left"===p&&(y=`${s.floating.width+f}px`,b=c?h:`${g}px`),{data:{x:y,y:b}}}});function CN(e){const[t,n="center"]=e.split("-");return[t,n]}const $N=uz,EC=cz,CC=pz,wz=vz,Cx="rovingFocusGroup.onEntryFocus",_z={bubbles:!1,cancelable:!0},$C="RovingFocusGroup",[HS,IN,bz]=vC($C),[xz,Gh]=ni($C,[bz]),[Sz,Ez]=xz($C),Cz=m.forwardRef(((e,t)=>m.createElement(HS.Provider,{scope:e.__scopeRovingFocusGroup},m.createElement(HS.Slot,{scope:e.__scopeRovingFocusGroup},m.createElement($z,Pe({},e,{ref:t})))))),$z=m.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:s,onEntryFocus:l,...c}=e,d=m.useRef(null),f=Ut(t,d),p=gC(i),[h=null,v]=pd({prop:a,defaultProp:u,onChange:s}),[g,y]=m.useState(!1),b=ys(l),w=IN(n),x=m.useRef(!1),[_,E]=m.useState(0);return m.useEffect((()=>{const e=d.current;if(e)return e.addEventListener(Cx,b),()=>e.removeEventListener(Cx,b)}),[b]),m.createElement(Sz,{scope:n,orientation:r,dir:p,loop:o,currentTabStopId:h,onItemFocus:m.useCallback((e=>v(e)),[v]),onItemShiftTab:m.useCallback((()=>y(!0)),[]),onFocusableItemAdd:m.useCallback((()=>E((e=>e+1))),[]),onFocusableItemRemove:m.useCallback((()=>E((e=>e-1))),[])},m.createElement(lt.div,Pe({tabIndex:g||0===_?-1:0,"data-orientation":r},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:et(e.onMouseDown,(()=>{x.current=!0})),onFocus:et(e.onFocus,(e=>{const t=!x.current;if(e.target===e.currentTarget&&t&&!g){const t=new CustomEvent(Cx,_z);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=w().filter((e=>e.focusable));RN([e.find((e=>e.active)),e.find((e=>e.id===h)),...e].filter(Boolean).map((e=>e.ref.current)))}}x.current=!1})),onBlur:et(e.onBlur,(()=>y(!1)))})))})),Iz="RovingFocusGroupItem",Rz=m.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,u=sd(),s=i||u,l=Ez(Iz,n),c=l.currentTabStopId===s,d=IN(n),{onFocusableItemAdd:f,onFocusableItemRemove:p}=l;return m.useEffect((()=>{if(r)return f(),()=>p()}),[r,f,p]),m.createElement(HS.ItemSlot,{scope:n,id:s,focusable:r,active:o},m.createElement(lt.span,Pe({tabIndex:c?0:-1,"data-orientation":l.orientation},a,{ref:t,onMouseDown:et(e.onMouseDown,(e=>{r?l.onItemFocus(s):e.preventDefault()})),onFocus:et(e.onFocus,(()=>l.onItemFocus(s))),onKeyDown:et(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void l.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=Oz(e,l.orientation,l.dir);if(void 0!==t){e.preventDefault();let n=d().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();const r=n.indexOf(e.currentTarget);n=l.loop?Az(n,r+1):n.slice(r+1)}setTimeout((()=>RN(n)))}}))})))})),Pz={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Tz(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function Oz(e,t,n){const r=Tz(e.key,n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)))return Pz[r]}function RN(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Az(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}const IC=Cz,RC=Rz,KS=["Enter"," "],kz=["ArrowDown","PageUp","Home"],PN=["ArrowUp","PageDown","End"],Dz=[...kz,...PN],Nz={ltr:[...KS,"ArrowRight"],rtl:[...KS,"ArrowLeft"]},Mz={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Hy="Menu",[Sv,Lz,Fz]=vC(Hy),[rp,TN]=ni(Hy,[Fz,qh,Gh]),ON=qh(),AN=Gh(),[HZ,op]=rp(Hy),[KZ,Uv]=rp(Hy),Bz=m.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e,o=ON(n);return m.createElement(EC,Pe({},o,r,{ref:t}))})),kN="MenuPortal",[jz,DN]=rp(kN,{forceMount:void 0}),Vz=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=op(kN,t);return m.createElement(jz,{scope:t,forceMount:n},m.createElement(ea,{present:n||i.open},m.createElement(Sy,{asChild:!0,container:o},r)))},ms="MenuContent",[Uz,PC]=rp(ms),zz=m.forwardRef(((e,t)=>{const n=DN(ms,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=op(ms,e.__scopeMenu),a=Uv(ms,e.__scopeMenu);return m.createElement(Sv.Provider,{scope:e.__scopeMenu},m.createElement(ea,{present:r||i.open},m.createElement(Sv.Slot,{scope:e.__scopeMenu},a.modal?m.createElement(Wz,Pe({},o,{ref:t})):m.createElement(qz,Pe({},o,{ref:t})))))})),Wz=m.forwardRef(((e,t)=>{const n=op(ms,e.__scopeMenu),r=m.useRef(null),o=Ut(t,r);return m.useEffect((()=>{const e=r.current;if(e)return $y(e)}),[]),m.createElement(TC,Pe({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:et(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))})),qz=m.forwardRef(((e,t)=>{const n=op(ms,e.__scopeMenu);return m.createElement(TC,Pe({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))})),TC=m.forwardRef(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:u,onEntryFocus:s,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:h,...v}=e,g=op(ms,n),y=Uv(ms,n),b=ON(n),w=AN(n),x=Lz(n),[_,E]=m.useState(null),S=m.useRef(null),A=Ut(t,S,g.onContentChange),k=m.useRef(0),C=m.useRef(""),I=m.useRef(0),P=m.useRef(null),R=m.useRef("right"),O=m.useRef(0),T=h?Cy:m.Fragment,N=h?{as:Hf,allowPinchZoom:!0}:void 0;m.useEffect((()=>()=>window.clearTimeout(k.current)),[]),kE();const j=m.useCallback((e=>{var t,n;return R.current===(null===(t=P.current)||void 0===t?void 0:t.side)&&lW(e,null===(n=P.current)||void 0===n?void 0:n.area)}),[]);return m.createElement(Uz,{scope:n,searchRef:C,onItemEnter:m.useCallback((e=>{j(e)&&e.preventDefault()}),[j]),onItemLeave:m.useCallback((e=>{var t;j(e)||(null===(t=S.current)||void 0===t||t.focus(),E(null))}),[j]),onTriggerLeave:m.useCallback((e=>{j(e)&&e.preventDefault()}),[j]),pointerGraceTimerRef:I,onPointerGraceIntentChange:m.useCallback((e=>{P.current=e}),[])},m.createElement(T,N,m.createElement(AE,{asChild:!0,trapped:o,onMountAutoFocus:et(i,(e=>{var t;e.preventDefault(),null===(t=S.current)||void 0===t||t.focus()})),onUnmountAutoFocus:a},m.createElement(xy,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p},m.createElement(IC,Pe({asChild:!0},w,{dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:_,onCurrentTabStopIdChange:E,onEntryFocus:et(s,(e=>{y.isUsingKeyboardRef.current||e.preventDefault()}))}),m.createElement(CC,Pe({role:"menu","aria-orientation":"vertical","data-state":BN(g.open),"data-radix-menu-content":"",dir:y.dir},b,v,{ref:A,style:{outline:"none",...v.style},onKeyDown:et(v.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&(e=>{var t,n;const r=C.current+e,o=x().filter((e=>!e.disabled)),i=document.activeElement,a=null===(t=o.find((e=>e.ref.current===i)))||void 0===t?void 0:t.textValue,u=sW(o.map((e=>e.textValue)),r,a),s=null===(n=o.find((e=>e.textValue===u)))||void 0===n?void 0:n.ref.current;(function e(t){C.current=t,window.clearTimeout(k.current),""!==t&&(k.current=window.setTimeout((()=>e("")),1e3))})(r),s&&setTimeout((()=>s.focus()))})(e.key));const o=S.current;if(e.target!==o||!Dz.includes(e.key))return;e.preventDefault();const i=x().filter((e=>!e.disabled)).map((e=>e.ref.current));PN.includes(e.key)&&i.reverse(),iW(i)})),onBlur:et(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(k.current),C.current="")})),onPointerMove:et(e.onPointerMove,Ev((e=>{const t=e.target,n=O.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>O.current?"right":"left";R.current=t,O.current=e.clientX}})))})))))))})),Gz=m.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return m.createElement(lt.div,Pe({},r,{ref:t}))})),QS="MenuItem",eO="menu.itemSelect",OC=m.forwardRef(((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=m.useRef(null),a=Uv(QS,e.__scopeMenu),u=PC(QS,e.__scopeMenu),s=Ut(t,i),l=m.useRef(!1);return m.createElement(NN,Pe({},o,{ref:s,disabled:n,onClick:et(e.onClick,(()=>{const e=i.current;if(!n&&e){const t=new CustomEvent(eO,{bubbles:!0,cancelable:!0});e.addEventListener(eO,(e=>null==r?void 0:r(e)),{once:!0}),N2(e,t),t.defaultPrevented?l.current=!1:a.onClose()}})),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),l.current=!0},onPointerUp:et(e.onPointerUp,(e=>{var t;l.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:et(e.onKeyDown,(e=>{const t=""!==u.searchRef.current;n||t&&" "===e.key||KS.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),NN=m.forwardRef(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,a=PC(QS,n),u=AN(n),s=m.useRef(null),l=Ut(t,s),[c,d]=m.useState(!1),[f,p]=m.useState("");return m.useEffect((()=>{const e=s.current;var t;e&&p((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}),[i.children]),m.createElement(Sv.ItemSlot,{scope:n,disabled:r,textValue:o??f},m.createElement(RC,Pe({asChild:!0},u,{focusable:!r}),m.createElement(lt.div,Pe({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},i,{ref:l,onPointerMove:et(e.onPointerMove,Ev((e=>{r?a.onItemLeave(e):(a.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus())}))),onPointerLeave:et(e.onPointerLeave,Ev((e=>a.onItemLeave(e)))),onFocus:et(e.onFocus,(()=>d(!0))),onBlur:et(e.onBlur,(()=>d(!1)))}))))})),Hz=m.forwardRef(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return m.createElement(LN,{scope:e.__scopeMenu,checked:n},m.createElement(OC,Pe({role:"menuitemcheckbox","aria-checked":iy(n)?"mixed":n},o,{ref:t,"data-state":AC(n),onSelect:et(o.onSelect,(()=>null==r?void 0:r(!!iy(n)||!n)),{checkForDefaultPrevented:!1})})))})),Kz="MenuRadioGroup",[QZ,Qz]=rp(Kz,{value:void 0,onValueChange:()=>{}}),Yz="MenuRadioItem",Xz=m.forwardRef(((e,t)=>{const{value:n,...r}=e,o=Qz(Yz,e.__scopeMenu),i=n===o.value;return m.createElement(LN,{scope:e.__scopeMenu,checked:i},m.createElement(OC,Pe({role:"menuitemradio","aria-checked":i},r,{ref:t,"data-state":AC(i),onSelect:et(r.onSelect,(()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,n)}),{checkForDefaultPrevented:!1})})))})),MN="MenuItemIndicator",[LN,Jz]=rp(MN,{checked:!1}),Zz=m.forwardRef(((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=Jz(MN,n);return m.createElement(ea,{present:r||iy(i.checked)||!0===i.checked},m.createElement(lt.span,Pe({},o,{ref:t,"data-state":AC(i.checked)})))})),eW=m.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return m.createElement(lt.div,Pe({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))})),tW="MenuSub",[YZ,FN]=rp(tW),Mg="MenuSubTrigger",nW=m.forwardRef(((e,t)=>{const n=op(Mg,e.__scopeMenu),r=Uv(Mg,e.__scopeMenu),o=FN(Mg,e.__scopeMenu),i=PC(Mg,e.__scopeMenu),a=m.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:s}=i,l={__scopeMenu:e.__scopeMenu},c=m.useCallback((()=>{a.current&&window.clearTimeout(a.current),a.current=null}),[]);return m.useEffect((()=>c),[c]),m.useEffect((()=>{const e=u.current;return()=>{window.clearTimeout(e),s(null)}}),[u,s]),m.createElement(Bz,Pe({asChild:!0},l),m.createElement(NN,Pe({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":BN(n.open)},e,{ref:TE(t,o.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),!e.disabled&&!t.defaultPrevented&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:et(e.onPointerMove,Ev((t=>{i.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(i.onPointerGraceIntentChange(null),a.current=window.setTimeout((()=>{n.onOpenChange(!0),c()}),100))}))),onPointerLeave:et(e.onPointerLeave,Ev((e=>{var t;c();const r=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(r){var o;const t=null===(o=n.content)||void 0===o?void 0:o.dataset.side,a="right"===t,s=a?-5:5,l=r[a?"left":"right"],c=r[a?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+s,y:e.clientY},{x:l,y:r.top},{x:c,y:r.top},{x:c,y:r.bottom},{x:l,y:r.bottom}],side:t}),window.clearTimeout(u.current),u.current=window.setTimeout((()=>i.onPointerGraceIntentChange(null)),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}}))),onKeyDown:et(e.onKeyDown,(t=>{const o=""!==i.searchRef.current;var a;e.disabled||o&&" "===t.key||!Nz[r.dir].includes(t.key)||(n.onOpenChange(!0),null===(a=n.content)||void 0===a||a.focus(),t.preventDefault())}))})))})),rW="MenuSubContent",oW=m.forwardRef(((e,t)=>{const n=DN(ms,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=op(ms,e.__scopeMenu),a=Uv(ms,e.__scopeMenu),u=FN(rW,e.__scopeMenu),s=m.useRef(null),l=Ut(t,s);return m.createElement(Sv.Provider,{scope:e.__scopeMenu},m.createElement(ea,{present:r||i.open},m.createElement(Sv.Slot,{scope:e.__scopeMenu},m.createElement(TC,Pe({id:u.contentId,"aria-labelledby":u.triggerId},o,{ref:l,align:"start",side:"rtl"===a.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;a.isUsingKeyboardRef.current&&(null===(t=s.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:et(e.onFocusOutside,(e=>{e.target!==u.trigger&&i.onOpenChange(!1)})),onEscapeKeyDown:et(e.onEscapeKeyDown,(e=>{a.onClose(),e.preventDefault()})),onKeyDown:et(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=Mz[a.dir].includes(e.key);var r;t&&n&&(i.onOpenChange(!1),null===(r=u.trigger)||void 0===r||r.focus(),e.preventDefault())}))})))))}));function BN(e){return e?"open":"closed"}function iy(e){return"indeterminate"===e}function AC(e){return iy(e)?"indeterminate":e?"checked":"unchecked"}function iW(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function aW(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}function sW(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,o=n?e.indexOf(n):-1;let i=aW(e,Math.max(o,0));1===r.length&&(i=i.filter((e=>e!==n)));const a=i.find((e=>e.toLowerCase().startsWith(r.toLowerCase())));return a!==n?a:void 0}function uW(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,u=t[e].y,s=t[i].x,l=t[i].y;u>r!=l>r&&n<(s-a)*(r-u)/(l-u)+a&&(o=!o)}return o}function lW(e,t){if(!t)return!1;return uW({x:e.clientX,y:e.clientY},t)}function Ev(e){return t=>"mouse"===t.pointerType?e(t):void 0}const cW=Vz,dW=zz,fW=Gz,pW=OC,hW=Hz,mW=Xz,vW=Zz,gW=eW,yW=nW,wW=oW,jN="DropdownMenu",[_W,XZ]=ni(jN,[TN]),yu=TN(),[JZ,bW]=_W(jN),xW=e=>{const{__scopeDropdownMenu:t,...n}=e,r=yu(t);return m.createElement(cW,Pe({},r,n))},SW="DropdownMenuContent",EW=m.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=bW(SW,n),i=yu(n),a=m.useRef(!1);return m.createElement(dW,Pe({id:o.contentId,"aria-labelledby":o.triggerId},i,r,{ref:t,onCloseAutoFocus:et(e.onCloseAutoFocus,(e=>{var t;a.current||null===(t=o.triggerRef.current)||void 0===t||t.focus(),a.current=!1,e.preventDefault()})),onInteractOutside:et(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!o.modal||r)&&(a.current=!0)})),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),CW=m.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yu(n);return m.createElement(fW,Pe({},o,r,{ref:t}))})),$W=m.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yu(n);return m.createElement(pW,Pe({},o,r,{ref:t}))})),IW=m.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yu(n);return m.createElement(hW,Pe({},o,r,{ref:t}))})),RW=m.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yu(n);return m.createElement(mW,Pe({},o,r,{ref:t}))})),PW=m.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yu(n);return m.createElement(vW,Pe({},o,r,{ref:t}))})),TW=m.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yu(n);return m.createElement(gW,Pe({},o,r,{ref:t}))})),OW=m.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yu(n);return m.createElement(yW,Pe({},o,r,{ref:t}))})),AW=m.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yu(n);return m.createElement(wW,Pe({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),kW=xW,VN=EW,UN=CW,zN=$W,WN=IW,qN=RW,DW=PW,kC=TW,GN=OW,HN=AW,NW=m.forwardRef((({className:e,inset:t,children:n,...r},o)=>G.jsxs(GN,{ref:o,className:be("flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,G.jsx(x2,{className:"ml-auto h-4 w-4"})]})));NW.displayName=GN.displayName;const MW=m.forwardRef((({className:e,...t},n)=>G.jsx(HN,{ref:n,className:be("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})));MW.displayName=HN.displayName;const tO=e=>{e.preventDefault()},LW=m.forwardRef((({className:e,sideOffset:t=4,isPortal:n,...r},o)=>{const i=G.jsx(VN,{ref:o,sideOffset:t,onOpenAutoFocus:tO,onCloseAutoFocus:tO,className:be("z-[101] flex max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] flex-col gap-xxxs overflow-y-auto rounded-lg border border-gray-200 bg-white p-xxs text-popover-foreground ","shadow-[0px_0px_12px_0px_rgba(0,0,0,0.08)] ","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=open]:fade-in data-[state=open]:slide-in-from-top-2","data-[state=closed]:fade-out data-[state=closed]:slide-out-to-top-2","data-[state=closed]:duration-150 data-[state=open]:duration-150","data-[state=closed]:[animation-timing-function:ease-in] data-[state=open]:[animation-timing-function:ease-out]",e),...r});return n?G.jsx(kW,{children:i}):i}));LW.displayName=VN.displayName;const FW=m.forwardRef((({className:e,inset:t,...n},r)=>G.jsx(zN,{ref:r,className:be("relative flex cursor-default select-none items-center gap-xxs rounded-m p-xxs text-base font-medium text-gray-900 outline-none transition-colors hover:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-xl",e),...n})));FW.displayName=zN.displayName;const BW=m.forwardRef((({className:e,children:t,checked:n,checkboxPosition:r="right",...o},i)=>{const a=G.jsx(uC,{size:"default",variant:"default",checked:n});return G.jsxs(WN,{ref:i,className:be("relative flex cursor-default select-none items-center gap-xxs rounded-m p-xxs text-base font-medium text-gray-900"," outline-none transition-colors hover:bg-gray-100 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,onSelect:e=>e.preventDefault(),...o,children:["left"===r&&a,G.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:t}),"right"===r&&a]})}));BW.displayName=WN.displayName;const jW=m.forwardRef((({className:e,children:t,radioPosition:n="right",...r},o)=>{const i=G.jsx("div",{className:"flex h-xxs items-center justify-center",children:G.jsx(DW,{children:G.jsx(IE,{size:20})})});return G.jsxs(qN,{ref:o,className:be("relative flex cursor-default select-none items-center gap-xxs rounded-m p-xxs text-base font-medium text-gray-900"," outline-none transition-colors hover:bg-gray-100 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),onSelect:e=>e.preventDefault(),...r,children:["left"===n&&i,G.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:t}),"right"===n&&i]})}));jW.displayName=qN.displayName;const VW=m.forwardRef((({className:e,inset:t,...n},r)=>G.jsx(UN,{ref:r,className:be("text-sm font-semibold",t&&"pl-xl",e),...n})));VW.displayName=UN.displayName;const UW=m.forwardRef((({className:e,...t},n)=>G.jsx(kC,{ref:n,className:be("-mx-1 my-1 h-px bg-muted",e),...t})));UW.displayName=kC.displayName;const zW=We.createContext(null),WW=()=>We.useContext(zW),qW=m.forwardRef(((e,t)=>m.createElement(lt.label,Pe({},e,{ref:t,onMouseDown:t=>{var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()}})))),KN=qW,GW=mu("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),QN=m.forwardRef((({className:e,...t},n)=>G.jsx(KN,{ref:n,className:be(GW(),e),...t})));function nO(e,[t,n]){return Math.min(n,Math.max(t,e))}QN.displayName=KN.displayName;const YN=m.forwardRef(((e,t)=>m.createElement(lt.span,Pe({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),HW=YN,KW=[" ","Enter","ArrowUp","ArrowDown"],QW=[" ","Enter"],Ky="Select",[Qy,Yy,YW]=vC(Ky),[Hh,ZZ]=ni(Ky,[YW,qh]),DC=qh(),[XW,ip]=Hh(Ky),[JW,ZW]=Hh(Ky),eq=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:a,defaultValue:u,onValueChange:s,dir:l,name:c,autoComplete:d,disabled:f,required:p}=e,h=DC(t),[v,g]=m.useState(null),[y,b]=m.useState(null),[w,x]=m.useState(!1),_=gC(l),[E=!1,S]=pd({prop:r,defaultProp:o,onChange:i}),[A,k]=pd({prop:a,defaultProp:u,onChange:s}),C=m.useRef(null),I=!v||!!v.closest("form"),[P,R]=m.useState(new Set),O=Array.from(P).map((e=>e.props.value)).join(";");return m.createElement($N,h,m.createElement(XW,{required:p,scope:t,trigger:v,onTriggerChange:g,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:w,onValueNodeHasChildrenChange:x,contentId:sd(),value:A,onValueChange:k,open:E,onOpenChange:S,dir:_,triggerPointerDownPosRef:C,disabled:f},m.createElement(Qy.Provider,{scope:t},m.createElement(JW,{scope:e.__scopeSelect,onNativeOptionAdd:m.useCallback((e=>{R((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:m.useCallback((e=>{R((t=>{const n=new Set(t);return n.delete(e),n}))}),[])},n)),I?m.createElement(tM,{key:O,"aria-hidden":!0,required:p,tabIndex:-1,name:c,autoComplete:d,value:A,onChange:e=>k(e.target.value),disabled:f},void 0===A?m.createElement("option",{value:""}):null,Array.from(P)):null))},tq="SelectTrigger",nq=m.forwardRef(((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=DC(n),a=ip(tq,n),u=a.disabled||r,s=Ut(t,a.onTriggerChange),l=Yy(n),[c,d,f]=nM((e=>{const t=l().filter((e=>!e.disabled)),n=t.find((e=>e.value===a.value)),r=rM(t,e,n);void 0!==r&&a.onValueChange(r.value)})),p=()=>{u||(a.onOpenChange(!0),f())};return m.createElement(EC,Pe({asChild:!0},i),m.createElement(lt.button,Pe({type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":eM(a.value)?"":void 0},o,{ref:s,onClick:et(o.onClick,(e=>{e.currentTarget.focus()})),onPointerDown:et(o.onPointerDown,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(p(),a.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())})),onKeyDown:et(o.onKeyDown,(e=>{const t=""!==c.current;!(e.ctrlKey||e.altKey||e.metaKey)&&1===e.key.length&&d(e.key),(!t||" "!==e.key)&&KW.includes(e.key)&&(p(),e.preventDefault())}))})))})),rq="SelectValue",oq=m.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:a="",...u}=e,s=ip(rq,n),{onValueNodeHasChildrenChange:l}=s,c=void 0!==i,d=Ut(t,s.onValueNodeChange);return Uo((()=>{l(c)}),[l,c]),m.createElement(lt.span,Pe({},u,{ref:d,style:{pointerEvents:"none"}}),eM(s.value)?m.createElement(m.Fragment,null,a):i)})),iq=m.forwardRef(((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return m.createElement(lt.span,Pe({"aria-hidden":!0},o,{ref:t}),r||"▼")})),aq=e=>m.createElement(Sy,Pe({asChild:!0},e)),Fh="SelectContent",sq=m.forwardRef(((e,t)=>{const n=ip(Fh,e.__scopeSelect),[r,o]=m.useState();if(Uo((()=>{o(new DocumentFragment)}),[]),!n.open){const t=r;return t?vu.createPortal(m.createElement(XN,{scope:e.__scopeSelect},m.createElement(Qy.Slot,{scope:e.__scopeSelect},m.createElement("div",null,e.children))),t):null}return m.createElement(uq,Pe({},e,{ref:t}))})),wl=10,[XN,ap]=Hh(Fh),uq=m.forwardRef(((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:u,sideOffset:s,align:l,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:h,hideWhenDetached:v,avoidCollisions:g,...y}=e,b=ip(Fh,n),[w,x]=m.useState(null),[_,E]=m.useState(null),S=Ut(t,(e=>x(e))),[A,k]=m.useState(null),[C,I]=m.useState(null),P=Yy(n),[R,O]=m.useState(!1),T=m.useRef(!1);m.useEffect((()=>{if(w)return $y(w)}),[w]),kE();const N=m.useCallback((e=>{const[t,...n]=P().map((e=>e.ref.current)),[r]=n.slice(-1),o=document.activeElement;for(const n of e)if(n===o||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&_&&(_.scrollTop=0),n===r&&_&&(_.scrollTop=_.scrollHeight),null==n||n.focus(),document.activeElement!==o))return}),[P,_]),j=m.useCallback((()=>N([A,w])),[N,A,w]);m.useEffect((()=>{R&&j()}),[R,j]);const{onOpenChange:q,triggerPointerDownPosRef:D}=b;m.useEffect((()=>{if(w){let e={x:0,y:0};const t=t=>{var n,r,o,i;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(r=D.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(i=D.current)||void 0===i?void 0:i.y)&&void 0!==o?o:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():w.contains(n.target)||q(!1),document.removeEventListener("pointermove",t),D.current=null};return null!==D.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[w,q,D]),m.useEffect((()=>{const e=()=>q(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[q]);const[M,L]=nM((e=>{const t=P().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=rM(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),$=m.useCallback(((e,t,n)=>{const r=!T.current&&!n;(void 0!==b.value&&b.value===t||r)&&(k(e),r&&(T.current=!0))}),[b.value]),B=m.useCallback((()=>null==w?void 0:w.focus()),[w]),V=m.useCallback(((e,t,n)=>{const r=!T.current&&!n;(void 0!==b.value&&b.value===t||r)&&I(e)}),[b.value]),z="popper"===r?rO:lq,F=z===rO?{side:u,sideOffset:s,align:l,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:h,hideWhenDetached:v,avoidCollisions:g}:{};return m.createElement(XN,{scope:n,content:w,viewport:_,onViewportChange:E,itemRefCallback:$,selectedItem:A,onItemLeave:B,itemTextRefCallback:V,focusSelectedItem:j,selectedItemText:C,position:r,isPositioned:R,searchRef:M},m.createElement(Cy,{as:Hf,allowPinchZoom:!0},m.createElement(AE,{asChild:!0,trapped:b.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:et(o,(e=>{var t;null===(t=b.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}))},m.createElement(xy,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1)},m.createElement(z,Pe({role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:e=>e.preventDefault()},y,F,{onPlaced:()=>O(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:et(y.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),!t&&1===e.key.length&&L(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=P().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout((()=>N(t))),e.preventDefault()}}))}))))))})),lq=m.forwardRef(((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=ip(Fh,n),a=ap(Fh,n),[u,s]=m.useState(null),[l,c]=m.useState(null),d=Ut(t,(e=>c(e))),f=Yy(n),p=m.useRef(!1),h=m.useRef(!0),{viewport:v,selectedItem:g,selectedItemText:y,focusSelectedItem:b}=a,w=m.useCallback((()=>{if(i.trigger&&i.valueNode&&u&&l&&v&&g&&y){const e=i.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=i.valueNode.getBoundingClientRect(),o=y.getBoundingClientRect();if("rtl"!==i.dir){const r=o.left-t.left,i=n.left-r,a=e.left-i,s=e.width+a,l=Math.max(s,t.width),c=window.innerWidth-wl,d=nO(i,[wl,c-l]);u.style.minWidth=s+"px",u.style.left=d+"px"}else{const r=t.right-o.right,i=window.innerWidth-n.right-r,a=window.innerWidth-e.right-i,s=e.width+a,l=Math.max(s,t.width),c=window.innerWidth-wl,d=nO(i,[wl,c-l]);u.style.minWidth=s+"px",u.style.right=d+"px"}const a=f(),s=window.innerHeight-2*wl,c=v.scrollHeight,d=window.getComputedStyle(l),m=parseInt(d.borderTopWidth,10),h=parseInt(d.paddingTop,10),b=parseInt(d.borderBottomWidth,10),w=m+h+c+parseInt(d.paddingBottom,10)+b,x=Math.min(5*g.offsetHeight,w),_=window.getComputedStyle(v),E=parseInt(_.paddingTop,10),S=parseInt(_.paddingBottom,10),A=e.top+e.height/2-wl,k=s-A,C=g.offsetHeight/2,I=m+h+(g.offsetTop+C),P=w-I;if(I<=A){const e=g===a[a.length-1].ref.current;u.style.bottom="0px";const t=l.clientHeight-v.offsetTop-v.offsetHeight,n=I+Math.max(k,C+(e?S:0)+t+b);u.style.height=n+"px"}else{const e=g===a[0].ref.current;u.style.top="0px";const t=Math.max(A,m+v.offsetTop+(e?E:0)+C)+P;u.style.height=t+"px",v.scrollTop=I-A+v.offsetTop}u.style.margin=`${wl}px 0`,u.style.minHeight=x+"px",u.style.maxHeight=s+"px",null==r||r(),requestAnimationFrame((()=>p.current=!0))}}),[f,i.trigger,i.valueNode,u,l,v,g,y,i.dir,r]);Uo((()=>w()),[w]);const[x,_]=m.useState();Uo((()=>{l&&_(window.getComputedStyle(l).zIndex)}),[l]);const E=m.useCallback((e=>{e&&!0===h.current&&(w(),null==b||b(),h.current=!1)}),[w,b]);return m.createElement(cq,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:p,onScrollButtonChange:E},m.createElement("div",{ref:s,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:x}},m.createElement(lt.div,Pe({},o,{ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))})),rO=m.forwardRef(((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=wl,...i}=e,a=DC(n);return m.createElement(CC,Pe({},a,i,{ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))})),[cq,NC]=Hh(Fh,{}),oO="SelectViewport",dq=m.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,o=ap(oO,n),i=NC(oO,n),a=Ut(t,o.onViewportChange),u=m.useRef(0);return m.createElement(m.Fragment,null,m.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),m.createElement(Qy.Slot,{scope:n},m.createElement(lt.div,Pe({"data-radix-select-viewport":"",role:"presentation"},r,{ref:a,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:et(r.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=i;if(null!=r&&r.current&&n){const e=Math.abs(u.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*wl,o=parseFloat(n.style.minHeight),i=parseFloat(n.style.height),a=Math.max(o,i);if(a<r){const o=a+e,i=Math.min(r,o),u=o-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=u>0?u:0,n.style.justifyContent="flex-end")}}}u.current=t.scrollTop}))}))))})),fq="SelectGroup",[pq,hq]=Hh(fq),mq=m.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,o=sd();return m.createElement(pq,{scope:n,id:o},m.createElement(lt.div,Pe({role:"group","aria-labelledby":o},r,{ref:t})))})),vq="SelectLabel",gq=m.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,o=hq(vq,n);return m.createElement(lt.div,Pe({id:o.id},r,{ref:t}))})),YS="SelectItem",[yq,JN]=Hh(YS),wq=m.forwardRef(((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...a}=e,u=ip(YS,n),s=ap(YS,n),l=u.value===r,[c,d]=m.useState(i??""),[f,p]=m.useState(!1),h=Ut(t,(e=>{var t;return null===(t=s.itemRefCallback)||void 0===t?void 0:t.call(s,e,r,o)})),v=sd(),g=()=>{o||(u.onValueChange(r),u.onOpenChange(!1))};if(""===r)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return m.createElement(yq,{scope:n,value:r,disabled:o,textId:v,isSelected:l,onItemTextChange:m.useCallback((e=>{d((t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()}))}),[])},m.createElement(Qy.ItemSlot,{scope:n,value:r,disabled:o,textValue:c},m.createElement(lt.div,Pe({role:"option","aria-labelledby":v,"data-highlighted":f?"":void 0,"aria-selected":l&&f,"data-state":l?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},a,{ref:h,onFocus:et(a.onFocus,(()=>p(!0))),onBlur:et(a.onBlur,(()=>p(!1))),onPointerUp:et(a.onPointerUp,g),onPointerMove:et(a.onPointerMove,(e=>{var t;o?null===(t=s.onItemLeave)||void 0===t||t.call(s):e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:et(a.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null===(t=s.onItemLeave)||void 0===t||t.call(s))})),onKeyDown:et(a.onKeyDown,(e=>{var t;""!==(null===(t=s.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(QW.includes(e.key)&&g()," "===e.key&&e.preventDefault())}))}))))})),Lg="SelectItemText",_q=m.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,a=ip(Lg,n),u=ap(Lg,n),s=JN(Lg,n),l=ZW(Lg,n),[c,d]=m.useState(null),f=Ut(t,(e=>d(e)),s.onItemTextChange,(e=>{var t;return null===(t=u.itemTextRefCallback)||void 0===t?void 0:t.call(u,e,s.value,s.disabled)})),p=null==c?void 0:c.textContent,h=m.useMemo((()=>m.createElement("option",{key:s.value,value:s.value,disabled:s.disabled},p)),[s.disabled,s.value,p]),{onNativeOptionAdd:v,onNativeOptionRemove:g}=l;return Uo((()=>(v(h),()=>g(h))),[v,g,h]),m.createElement(m.Fragment,null,m.createElement(lt.span,Pe({id:s.textId},i,{ref:f})),s.isSelected&&a.valueNode&&!a.valueNodeHasChildren?vu.createPortal(i.children,a.valueNode):null)})),bq="SelectItemIndicator",xq=m.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return JN(bq,n).isSelected?m.createElement(lt.span,Pe({"aria-hidden":!0},r,{ref:t})):null})),iO="SelectScrollUpButton",Sq=m.forwardRef(((e,t)=>{const n=ap(iO,e.__scopeSelect),r=NC(iO,e.__scopeSelect),[o,i]=m.useState(!1),a=Ut(t,r.onScrollButtonChange);return Uo((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;i(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),o?m.createElement(ZN,Pe({},e,{ref:a,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null})),aO="SelectScrollDownButton",Eq=m.forwardRef(((e,t)=>{const n=ap(aO,e.__scopeSelect),r=NC(aO,e.__scopeSelect),[o,i]=m.useState(!1),a=Ut(t,r.onScrollButtonChange);return Uo((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;i(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),o?m.createElement(ZN,Pe({},e,{ref:a,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null})),ZN=m.forwardRef(((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=ap("SelectScrollButton",n),a=m.useRef(null),u=Yy(n),s=m.useCallback((()=>{null!==a.current&&(window.clearInterval(a.current),a.current=null)}),[]);return m.useEffect((()=>()=>s()),[s]),Uo((()=>{var e;const t=u().find((e=>e.ref.current===document.activeElement));null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})}),[u]),m.createElement(lt.div,Pe({"aria-hidden":!0},o,{ref:t,style:{flexShrink:0,...o.style},onPointerDown:et(o.onPointerDown,(()=>{null===a.current&&(a.current=window.setInterval(r,50))})),onPointerMove:et(o.onPointerMove,(()=>{var e;null===(e=i.onItemLeave)||void 0===e||e.call(i),null===a.current&&(a.current=window.setInterval(r,50))})),onPointerLeave:et(o.onPointerLeave,(()=>{s()}))}))})),Cq=m.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return m.createElement(lt.div,Pe({"aria-hidden":!0},r,{ref:t}))}));function eM(e){return""===e||void 0===e}const tM=m.forwardRef(((e,t)=>{const{value:n,...r}=e,o=m.useRef(null),i=Ut(t,o),a=By(n);return m.useEffect((()=>{const e=o.current,t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(a!==n&&r){const t=new Event("change",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}}),[a,n]),m.createElement(YN,{asChild:!0},m.createElement("select",Pe({},r,{ref:i,defaultValue:n})))}));function nM(e){const t=ys(e),n=m.useRef(""),r=m.useRef(0),o=m.useCallback((e=>{const o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout((()=>e("")),1e3))}(o)}),[t]),i=m.useCallback((()=>{n.current="",window.clearTimeout(r.current)}),[]);return m.useEffect((()=>()=>window.clearTimeout(r.current)),[]),[n,o,i]}function rM(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,o=n?e.indexOf(n):-1;let i=$q(e,Math.max(o,0));1===r.length&&(i=i.filter((e=>e!==n)));const a=i.find((e=>e.textValue.toLowerCase().startsWith(r.toLowerCase())));return a!==n?a:void 0}function $q(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}tM.displayName="BubbleSelect";const oM=eq,MC=nq,iM=oq,Iq=iq,Rq=aq,aM=sq,Pq=dq,sM=mq,uM=gq,lM=wq,Tq=_q,Oq=xq,cM=Sq,dM=Eq,fM=Cq,Aq=oM,LC=m.forwardRef((({...e},t)=>G.jsx(Aq,{ref:t,...e})));LC.displayName=oM.displayName;const pM=m.forwardRef(((e,t)=>G.jsx(sM,{ref:t,...e})));pM.displayName=sM.displayName;const hM=m.forwardRef(((e,t)=>G.jsx(iM,{ref:t,...e})));hM.displayName=iM.displayName;const FC=m.forwardRef((({className:e,children:t,caption:n,error:r,icon:o,renderCaret:i,...a},u)=>{const s=i?i():i?null:G.jsx(_2,{size:20,className:"transition-transform duration-200 group-data-[state=open]/select:rotate-180"});return G.jsxs("div",{className:"w-full",children:[G.jsxs(MC,{ref:u,className:be("group/select flex h-l w-full items-center justify-between rounded-m border bg-background p-xxs text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus-visible:ring-gray-700 focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50",r?"border-red-500":"border-input",e),...a,children:[G.jsxs("div",{className:be("flex flex-1 items-center gap-xxs",{"max-w-[90%]":!!i}),children:[o&&G.jsx("span",{className:be("text-muted-foreground",{"text-red-dark":r}),children:o}),t]}),G.jsx(Iq,{asChild:!0,children:s})]}),n||r?r?G.jsxs("div",{className:"mt-xxs flex items-center gap-xxxs text-sm text-red-600",children:[G.jsx(E2,{size:16}),r]}):G.jsxs("div",{className:"mt-xxs flex items-center gap-xxxs text-sm text-muted-foreground",children:[G.jsx(I6,{size:16}),n]}):null]})}));FC.displayName="SelectTriggerWrapper";const mM=m.forwardRef((({className:e,children:t,caption:n,error:r,icon:o,...i},a)=>G.jsx(FC,{ref:a,className:be("[&>span]:line-clamp-1 [&>span]:text-left",e),caption:n,error:r,icon:o,...i,children:t})));mM.displayName=MC.displayName;const BC=m.forwardRef((({className:e,children:t,position:n="popper",...r},o)=>{const i=m.useMemo((()=>{const e=t=>{var n,r;if(!t)return!1;if(Array.isArray(t))return t.some(e);if(m.isValidElement(t)){const o=null==(n=t.type)?void 0:n.displayName;return"SelectActions"===o||"SelectFooter"===o||e(null==(r=t.props)?void 0:r.children)}return!1};return e(t)}),[t]);return G.jsx(Rq,{children:G.jsx(aM,{ref:o,className:be("z-[101] flex max-h-[var(--radix-select-content-available-height)] min-w-[8rem] flex-col rounded-lg border border-gray-200 bg-white text-popover-foreground","shadow-[0px_0px_12px_0px_rgba(0,0,0,0.08)]","data-[state=open]:animate-in data-[state=closed]:animate-out ","data-[state=open]:fade-in data-[state=open]:slide-in-from-top-2 ","data-[state=closed]:fade-out data-[state=closed]:slide-out-to-top-2 ","data-[state=closed]:duration-150 data-[state=open]:duration-150 ","data-[state=closed]:[animation-timing-function:ease-in] data-[state=open]:[animation-timing-function:ease-out]","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:G.jsx(Pq,{className:be("flex flex-col gap-xxxs overflow-y-auto px-xxs",{"py-xxs":!i},"popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t})})})}));BC.displayName=aM.displayName;const vM=m.forwardRef((({className:e,...t},n)=>G.jsx(uM,{ref:n,className:be("text-sm font-medium text-gray-900",e),...t})));vM.displayName=uM.displayName;const gM=m.forwardRef((({className:e,showCheck:t=!0,checkPosition:n="right",children:r,...o},i)=>{const a=G.jsx(Oq,{children:G.jsx(IE,{size:20})});return G.jsxs(lM,{ref:i,className:be("relative flex cursor-default select-none items-center gap-xxs rounded-m p-xxs","text-base font-medium text-gray-900 outline-none transition-colors hover:bg-gray-100","focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[t&&"left"===n&&a,G.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:G.jsx(Tq,{children:r})}),t&&"right"===n&&a]})}));gM.displayName=lM.displayName;const yM=m.forwardRef((({className:e,...t},n)=>G.jsx(fM,{ref:n,className:be("-mx-1 my-1 h-px bg-gray-200",e),...t})));yM.displayName=fM.displayName;const kq=({selectedValues:e=[],onRemoveValue:t})=>{const n=m.useRef(null),[r,o]=m.useState(e.length);return m.useLayoutEffect((()=>{if(!n.current||0===e.length)return void o(e.length);const r=n.current.offsetWidth-60,i=document.createElement("div");Object.assign(i.style,{position:"absolute",visibility:"hidden",whiteSpace:"nowrap",display:"flex",gap:"4px",top:"-9999px",left:"-9999px"}),document.body.appendChild(i);let a=0,u=0;for(const n of e){const e=document.createElement("div");e.className="gap-xxxs p-xxs flex cursor-pointer items-center rounded-sm bg-gray-100 text-sm font-medium text-gray-900";const o=document.createElement("span");if(o.textContent="string"==typeof n?n:n.value,e.appendChild(o),"string"!=typeof n&&n.avatar){const t=document.createElement("div");t.className="w-6 h-6 rounded-full bg-gray-300 flex-shrink-0",e.insertBefore(t,o)}if(t){const t=document.createElement("button");t.innerHTML="×",t.className="ml-1 rounded-full outline-none",e.appendChild(t)}i.appendChild(e);const s=e.offsetWidth+4;if(!(a+s<=r))break;a+=s,u++}document.body.removeChild(i),o(Math.max(1,u))}),[e,t]),{containerRef:n,visibleCount:r}},wM=({hiddenCount:e,selectedValues:t=[],onRemoveValue:n})=>{const r=e=>{e.stopPropagation(),e.preventDefault()};return G.jsx("div",{onPointerDown:r,onMouseDown:r,onClick:r,children:G.jsxs(LC,{name:"hidden-chips-counter",children:[G.jsx(MC,{asChild:!0,children:G.jsx("div",{children:G.jsx(uD,{text:`+${e}`})})}),G.jsx(BC,{align:"end",className:"max-h-[250px] w-screen max-w-[300px] gap-xxxs overflow-y-auto",children:t.map((e=>{const t="string"==typeof e?e:e.value;return G.jsxs("div",{className:"flex justify-between p-xxs",onClick:e=>e.stopPropagation(),children:[G.jsx("span",{children:t}),G.jsx(by,{size:16,className:"cursor-pointer",onClick:()=>null==n?void 0:n(t)})]},t)}))})]})})};wM.displayName="SelectHiddenChipsCounter";const Dq=m.forwardRef(((e,t)=>{const{className:n,selectedValues:r=[],placeholder:o,onRemoveValue:i,icon:a,caption:u,error:s,...l}=e,{containerRef:c,visibleCount:d}=kq({selectedValues:r,onRemoveValue:i}),f=r.length-d;return G.jsx(FC,{ref:t,className:n,caption:u,error:s,icon:a,...l,children:G.jsx("div",{ref:c,className:"flex w-full flex-1 flex-nowrap overflow-hidden",children:0===r.length?G.jsx("span",{children:o||"Select options..."}):G.jsxs(I9,{children:[r.slice(0,d).map((e=>{const t="string"==typeof e?e:e.value;return G.jsx(uD,{avatarSrc:"string"==typeof e?void 0:e.avatar,text:t,onRemove:()=>null==i?void 0:i(t)},t)})),f>0&&G.jsx(wM,{hiddenCount:f,onRemoveValue:i,selectedValues:r})]})})})}));Dq.displayName="SelectMultiTrigger";const Nq=m.forwardRef((({value:e,isSelected:t=!1,isLoading:n=!1,checkboxPosition:r="right",onSelect:o,className:i,children:a,...u},s)=>{const l=n?G.jsx(S2,{size:24,className:"flex-shrink-0 animate-spin text-blue_100"}):G.jsx(uC,{size:"default",variant:"default",checked:t}),c=()=>{null==o||o(e)};return G.jsxs("div",{ref:s,className:be("relative flex cursor-pointer select-none items-center gap-xxs rounded-m","p-xxs text-base font-medium text-gray-900 outline-none transition-colors hover:bg-gray-100","focus:bg-accent focus:text-accent-foreground",{"pointer-events-none":n},i),onClick:c,role:"button",tabIndex:0,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),c())},...u,children:["left"===r&&l,G.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:a}),"right"===r&&l]})}));Nq.displayName="SelectCheckboxItem";const Mq=m.forwardRef((({className:e,...t},n)=>G.jsx(cM,{ref:n,className:be("flex cursor-default items-center justify-center py-xxs",e),...t,children:G.jsx(S6,{size:16})})));Mq.displayName=cM.displayName;const Lq=m.forwardRef((({className:e,...t},n)=>G.jsx(dM,{ref:n,className:be("flex cursor-default items-center justify-center p-xxs",e),...t,children:G.jsx(_2,{size:16})})));Lq.displayName=dM.displayName;const Fq=m.forwardRef((({className:e,children:t,...n},r)=>G.jsx("div",{ref:r,className:be("sticky top-0 z-20 bg-white p-xxs",e),...n,children:t})));Fq.displayName="SelectActions";const Bq=m.forwardRef((({className:e,children:t,...n},r)=>G.jsx("div",{ref:r,className:be("sticky bottom-0 z-20 bg-white p-xxs",e),...n,children:t})));Bq.displayName="SelectFooter";const jq=m.createContext({}),bd=()=>{const e=m.useContext(jq),t=m.useContext(_M),n=WW();e||console.error("useFormContext must be used within a FormProvider");const{getFieldState:r,formState:o}=n,i=r(e.name,o);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...i}},_M=m.createContext({}),Vq=m.forwardRef((({className:e,...t},n)=>{const r=m.useId();return G.jsx(_M.Provider,{value:{id:r},children:G.jsx("div",{ref:n,className:be("mt-[8px]",e),...t})})}));Vq.displayName="FormItem";const Uq=m.forwardRef((({className:e,isRequired:t,...n},r)=>{const{formItemId:o}=bd();return G.jsxs(QN,{ref:r,className:be("mb-2 text-sm font-medium",e),htmlFor:o,...n,children:[t&&"*",n.children]})}));Uq.displayName="FormLabel";const zq=m.forwardRef((({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:o,formMessageId:i}=bd();return G.jsx(wd,{ref:t,id:r,"aria-describedby":n?`${o} ${i}`:`${o}`,"aria-invalid":!!n,...e})}));zq.displayName="FormControl";const Wq=m.forwardRef((({className:e,...t},n)=>{const{formDescriptionId:r}=bd();return G.jsx("p",{ref:n,id:r,className:be("text-sm text-muted-foreground",e),...t})}));Wq.displayName="FormDescription";const qq=m.forwardRef((({className:e,children:t,...n},r)=>{const{error:o,formMessageId:i}=bd(),a=o?String(null==o?void 0:o.message):t;return a?G.jsxs("p",{ref:r,id:i,className:be("flex items-start gap-1 pt-xxs text-sm text-red-dark",e),...n,children:[G.jsx(E2,{size:16,className:"text-red-dark"})," ",a]}):null}));qq.displayName="FormMessage";const Gq=m.forwardRef((({...e},t)=>{const{name:n}=bd();return G.jsx(LC,{ref:t,name:n,...e})}));Gq.displayName="FormSelect";const Hq=m.forwardRef((({className:e,children:t,...n},r)=>{const{formItemId:o}=bd();return G.jsx(mM,{ref:r,id:o,className:e,...n,children:t})}));Hq.displayName="FormSelectTrigger";const Kq=m.forwardRef(((e,t)=>G.jsx(BC,{ref:t,...e})));Kq.displayName="FormSelectContent";const Qq=m.forwardRef(((e,t)=>G.jsx(gM,{ref:t,...e})));Qq.displayName="FormSelectItem";const Yq=m.forwardRef(((e,t)=>G.jsx(pM,{ref:t,...e})));Yq.displayName="FormSelectGroup";const Xq=m.forwardRef(((e,t)=>G.jsx(vM,{ref:t,...e})));Xq.displayName="FormSelectLabel";const Jq=m.forwardRef(((e,t)=>G.jsx(yM,{ref:t,...e})));Jq.displayName="FormSelectSeparator";const Zq=m.forwardRef(((e,t)=>G.jsx(hM,{ref:t,...e})));function Uf(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function bM(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>m.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return m.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=m.createContext(r),i=n.length;function a(t){const{scope:n,children:r,...a}=t,u=(null==n?void 0:n[e][i])||o,s=m.useMemo((()=>a),Object.values(a));return m.createElement(u.Provider,{value:s},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const u=(null==a?void 0:a[e][i])||o,s=m.useContext(u);if(s)return s;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},eG(r,...t)]}function eG(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return m.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function Xy(e){const t=m.useRef(e);return m.useEffect((()=>{t.current=e})),m.useMemo((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function tG(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function nG(...e){return t=>e.forEach((e=>tG(e,t)))}function rG(...e){return m.useCallback(nG(...e),e)}function sp(e){return e.split("-")[0]}function zv(e){return e.split("-")[1]}function Kh(e){return["top","bottom"].includes(sp(e))?"x":"y"}function jC(e){return"y"===e?"height":"width"}function sO(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,u=Kh(t),s=jC(u),l=r[s]/2-o[s]/2,c="x"===u;let d;switch(sp(t)){case"top":d={x:i,y:r.y-o.height};break;case"bottom":d={x:i,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-o.width,y:a};break;default:d={x:r.x,y:r.y}}switch(zv(t)){case"start":d[u]-=l*(n&&c?-1:1);break;case"end":d[u]+=l*(n&&c?-1:1)}return d}Zq.displayName="FormSelectValue";const oG=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,u=await(null==a.isRTL?void 0:a.isRTL(t));let s=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:c}=sO(s,r,u),d=r,f={},p=0;for(let n=0;n<i.length;n++){const{name:m,fn:h}=i[n],{x:v,y:g,data:y,reset:b}=await h({x:l,y:c,initialPlacement:r,placement:d,strategy:o,middlewareData:f,rects:s,platform:a,elements:{reference:e,floating:t}});l=v??l,c=g??c,f={...f,[m]:{...f[m],...y}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(s=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:l,y:c}=sO(s,d,u))),n=-1)}return{x:l,y:c,placement:d,strategy:o,middlewareData:f}};function xM(e){return"number"!=typeof e?(t=e,{top:0,right:0,bottom:0,left:0,...t}):{top:e,right:e,bottom:e,left:e};var t}function ay(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function Cv(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:u,strategy:s}=e,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=t,m=xM(p),h=u[f?"floating"===d?"reference":"floating":d],v=ay(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(u.floating)),boundary:l,rootBoundary:c,strategy:s})),g=ay(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===d?{...a.floating,x:r,y:o}:a.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(u.floating)),strategy:s}):a[d]);return{top:v.top-g.top+m.top,bottom:g.bottom-v.bottom+m.bottom,left:v.left-g.left+m.left,right:g.right-v.right+m.right}}const iG=Math.min,Nf=Math.max;function XS(e,t,n){return Nf(e,iG(t,n))}const uO=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=e??{},{x:o,y:i,placement:a,rects:u,platform:s}=t;if(null==n)return{};const l=xM(r),c={x:o,y:i},d=Kh(a),f=zv(a),p=jC(d),m=await s.getDimensions(n),h="y"===d?"top":"left",v="y"===d?"bottom":"right",g=u.reference[p]+u.reference[d]-c[d]-u.floating[p],y=c[d]-u.reference[d],b=await(null==s.getOffsetParent?void 0:s.getOffsetParent(n));let w=b?"y"===d?b.clientHeight||0:b.clientWidth||0:0;0===w&&(w=u.floating[p]);const x=g/2-y/2,_=l[h],E=w-m[p]-l[v],S=w/2-m[p]/2+x,A=XS(_,S,E),k=("start"===f?l[h]:l[v])>0&&S!==A&&u.reference[p]<=u.floating[p];return{[d]:c[d]-(k?S<_?_-S:E-S:0),data:{[d]:A,centerOffset:S-A}}}}),aG={left:"right",right:"left",bottom:"top",top:"bottom"};function sy(e){return e.replace(/left|right|bottom|top/g,(e=>aG[e]))}function sG(e,t,n){void 0===n&&(n=!1);const r=zv(e),o=Kh(e),i=jC(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=sy(a)),{main:a,cross:sy(a)}}const uG={start:"end",end:"start"};function lO(e){return e.replace(/start|end/g,(e=>uG[e]))}const SM=["top","right","bottom","left"];SM.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);const lG=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:u,elements:s}=t,{mainAxis:l=!0,crossAxis:c=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",flipAlignment:p=!0,...m}=e,h=sp(r),v=[a,...d||(h!==a&&p?function(e){const t=sy(e);return[lO(e),t,lO(t)]}(a):[sy(a)])],g=await Cv(t,m),y=[];let b=(null==(n=o.flip)?void 0:n.overflows)||[];if(l&&y.push(g[h]),c){const{main:e,cross:t}=sG(r,i,await(null==u.isRTL?void 0:u.isRTL(s.floating)));y.push(g[e],g[t])}if(b=[...b,{placement:r,overflows:y}],!y.every((e=>e<=0))){var w,x;const e=(null!=(w=null==(x=o.flip)?void 0:x.index)?w:0)+1,t=v[e];if(t)return{data:{index:e,overflows:b},reset:{placement:t}};let n="bottom";switch(f){case"bestFit":{var _;const e=null==(_=b.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:_[0].placement;e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}};function cO(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function dO(e){return SM.some((t=>e[t]>=0))}const cG=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){const{rects:r}=e;switch(t){case"referenceHidden":{const t=cO(await Cv(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:dO(t)}}}case"escaped":{const t=cO(await Cv(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:dO(t)}}}default:return{}}}}},dG=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=sp(n),u=zv(n),s="x"===Kh(n),l=["left","top"].includes(a)?-1:1,c=i&&s?-1:1,d="function"==typeof t?t(e):t;let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return u&&"number"==typeof m&&(p="end"===u?-1*m:m),s?{x:p*c,y:f*l}:{x:f*l,y:p*c}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}};function EM(e){return"x"===e?"y":"x"}const fG=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=e,l={x:n,y:r},c=await Cv(t,s),d=Kh(sp(o)),f=EM(d);let p=l[d],m=l[f];if(i){const e="y"===d?"bottom":"right";p=XS(p+c["y"===d?"top":"left"],p,p-c[e])}if(a){const e="y"===f?"bottom":"right";m=XS(m+c["y"===f?"top":"left"],m,m-c[e])}const h=u.fn({...t,[d]:p,[f]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}},pG=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:u=0,mainAxis:s=!0,crossAxis:l=!0}=e,c={x:n,y:r},d=Kh(o),f=EM(d);let p=c[d],m=c[f];const h="function"==typeof u?u({...i,placement:o}):u,v="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+v.mainAxis,n=i.reference[d]+i.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var g,y,b,w;const e="y"===d?"width":"height",t=["top","left"].includes(sp(o)),n=i.reference[f]-i.floating[e]+(t&&null!=(g=null==(y=a.offset)?void 0:y[f])?g:0)+(t?0:v.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:null!=(b=null==(w=a.offset)?void 0:w[f])?b:0)-(t?v.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[d]:p,[f]:m}}}},hG=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a,...u}=e,s=await Cv(t,u),l=sp(n),c=zv(n);let d,f;"top"===l||"bottom"===l?(d=l,f=c===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(f=l,d="end"===c?"top":"bottom");const p=Nf(s.left,0),m=Nf(s.right,0),h=Nf(s.top,0),v=Nf(s.bottom,0),g={availableHeight:r.floating.height-(["left","right"].includes(n)?2*(0!==h||0!==v?h+v:Nf(s.top,s.bottom)):s[d]),availableWidth:r.floating.width-(["top","bottom"].includes(n)?2*(0!==p||0!==m?p+m:Nf(s.left,s.right)):s[f])},y=await o.getDimensions(i.floating);null==a||a({...t,...g});const b=await o.getDimensions(i.floating);return y.width!==b.width||y.height!==b.height?{reset:{rects:!0}}:{}}}};function CM(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Tl(e){if(null==e)return window;if(!CM(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wv(e){return Tl(e).getComputedStyle(e)}function _l(e){return CM(e)?"":e?(e.nodeName||"").toLowerCase():""}function $M(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function hu(e){return e instanceof Tl(e).HTMLElement}function yd(e){return e instanceof Tl(e).Element}function VC(e){return!(typeof ShadowRoot>"u")&&(e instanceof Tl(e).ShadowRoot||e instanceof ShadowRoot)}function Jy(e){const{overflow:t,overflowX:n,overflowY:r}=Wv(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function mG(e){return["table","td","th"].includes(_l(e))}function fO(e){const t=/firefox/i.test($M()),n=Wv(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function IM(){return!/^((?!chrome|android).)*safari/i.test($M())}const pO=Math.min,cv=Math.max,uy=Math.round;function bl(e,t,n){var r,o,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const u=e.getBoundingClientRect();let s=1,l=1;t&&hu(e)&&(s=e.offsetWidth>0&&uy(u.width)/e.offsetWidth||1,l=e.offsetHeight>0&&uy(u.height)/e.offsetHeight||1);const c=yd(e)?Tl(e):window,d=!IM()&&n,f=(u.left+(d&&null!=(r=null==(o=c.visualViewport)?void 0:o.offsetLeft)?r:0))/s,p=(u.top+(d&&null!=(i=null==(a=c.visualViewport)?void 0:a.offsetTop)?i:0))/l,m=u.width/s,h=u.height/l;return{width:m,height:h,top:p,right:f+m,bottom:p+h,left:f,x:f,y:p}}function ld(e){return(t=e,(t instanceof Tl(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function Zy(e){return yd(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function RM(e){return bl(ld(e)).left+Zy(e).scrollLeft}function vG(e,t,n){const r=hu(t),o=ld(t),i=bl(e,r&&function(e){const t=bl(e);return uy(t.width)!==e.offsetWidth||uy(t.height)!==e.offsetHeight}(t),"fixed"===n);let a={scrollLeft:0,scrollTop:0};const u={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==_l(t)||Jy(o))&&(a=Zy(t)),hu(t)){const e=bl(t,!0);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=RM(o));return{x:i.left+a.scrollLeft-u.x,y:i.top+a.scrollTop-u.y,width:i.width,height:i.height}}function PM(e){return"html"===_l(e)?e:e.assignedSlot||e.parentNode||(VC(e)?e.host:null)||ld(e)}function hO(e){return hu(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function JS(e){const t=Tl(e);let n=hO(e);for(;n&&mG(n)&&"static"===getComputedStyle(n).position;)n=hO(n);return n&&("html"===_l(n)||"body"===_l(n)&&"static"===getComputedStyle(n).position&&!fO(n))?t:n||function(e){let t=PM(e);for(VC(t)&&(t=t.host);hu(t)&&!["html","body"].includes(_l(t));){if(fO(t))return t;t=t.parentNode}return null}(e)||t}function mO(e){if(hu(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=bl(e);return{width:t.width,height:t.height}}function TM(e){const t=PM(e);return["html","body","#document"].includes(_l(t))?e.ownerDocument.body:hu(t)&&Jy(t)?t:TM(t)}function ly(e,t){var n;void 0===t&&(t=[]);const r=TM(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Tl(r),a=o?[i].concat(i.visualViewport||[],Jy(r)?r:[]):r,u=t.concat(a);return o?u:u.concat(ly(a))}function vO(e,t,n){return"viewport"===t?ay(function(e,t){const n=Tl(e),r=ld(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,u=0,s=0;if(o){i=o.width,a=o.height;const e=IM();(e||!e&&"fixed"===t)&&(u=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:u,y:s}}(e,n)):yd(t)?function(e,t){const n=bl(e,!1,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft;return{top:r,left:o,x:o,y:r,right:o+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):ay(function(e){var t;const n=ld(e),r=Zy(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=cv(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=cv(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let u=-r.scrollLeft+RM(e);const s=-r.scrollTop;return"rtl"===Wv(o||n).direction&&(u+=cv(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:u,y:s}}(ld(e)))}function gG(e){const t=ly(e),n=["absolute","fixed"].includes(Wv(e).position)&&hu(e)?JS(e):e;return yd(n)?t.filter((e=>yd(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&VC(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==_l(e))):[]}const yG={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?gG(t):[].concat(n),r],a=i[0],u=i.reduce(((e,n)=>{const r=vO(t,n,o);return e.top=cv(r.top,e.top),e.right=pO(r.right,e.right),e.bottom=pO(r.bottom,e.bottom),e.left=cv(r.left,e.left),e}),vO(t,a,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=hu(n),i=ld(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0};const u={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==_l(n)||Jy(i))&&(a=Zy(n)),hu(n))){const e=bl(n,!0);u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+u.x,y:t.y-a.scrollTop+u.y}},isElement:yd,getDimensions:mO,getOffsetParent:JS,getDocumentElement:ld,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:vG(t,JS(n),r),floating:{...mO(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===Wv(e).direction};function wG(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:u=!1}=r,s=o&&!u,l=i&&!u,c=s||l?[...yd(e)?ly(e):[],...ly(t)]:[];c.forEach((e=>{s&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)}));let d,f=null;if(a){let r=!0;f=new ResizeObserver((()=>{r||n(),r=!1})),yd(e)&&!u&&f.observe(e),f.observe(t)}let p=u?bl(e):null;return u&&function t(){const r=bl(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{s&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)})),null==(e=f)||e.disconnect(),f=null,u&&cancelAnimationFrame(d)}}const _G=(e,t,n)=>oG(e,t,{platform:yG,...n});var ZS=typeof document<"u"?m.useLayoutEffect:m.useEffect;function eE(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!eE(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||eE(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function bG(e){const t=m.useRef(e);return ZS((()=>{t.current=e})),t}function xG(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:o}=void 0===e?{}:e;const i=m.useRef(null),a=m.useRef(null),u=bG(o),s=m.useRef(null),[l,c]=m.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=m.useState(t);eE(null==d?void 0:d.map((e=>{let{options:t}=e;return t})),null==t?void 0:t.map((e=>{let{options:t}=e;return t})))||f(t);const p=m.useCallback((()=>{!i.current||!a.current||_G(i.current,a.current,{middleware:d,placement:n,strategy:r}).then((e=>{h.current&&vu.flushSync((()=>{c(e)}))}))}),[d,n,r]);ZS((()=>{h.current&&p()}),[p]);const h=m.useRef(!1);ZS((()=>(h.current=!0,()=>{h.current=!1})),[]);const v=m.useCallback((()=>{if("function"==typeof s.current&&(s.current(),s.current=null),i.current&&a.current)if(u.current){const e=u.current(i.current,a.current,p);s.current=e}else p()}),[p,u]),g=m.useCallback((e=>{i.current=e,v()}),[v]),y=m.useCallback((e=>{a.current=e,v()}),[v]),b=m.useMemo((()=>({reference:i,floating:a})),[]);return m.useMemo((()=>({...l,update:p,refs:b,reference:g,floating:y})),[l,p,b,g,y])}const SG=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn:e=>function(e){return Object.prototype.hasOwnProperty.call(e,"current")}(t)?null!=t.current?uO({element:t.current,padding:n}).fn(e):{}:t?uO({element:t,padding:n}).fn(e):{}}};function EG(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function CG(...e){return t=>e.forEach((e=>EG(e,t)))}const OM=m.forwardRef(((e,t)=>{const{children:n,...r}=e,o=m.Children.toArray(n),i=o.find(IG);if(i){const e=i.props.children,n=o.map((t=>t===i?m.Children.count(e)>1?m.Children.only(null):m.isValidElement(e)?e.props.children:null:t));return m.createElement(tE,Pe({},r,{ref:t}),m.isValidElement(e)?m.cloneElement(e,void 0,n):null)}return m.createElement(tE,Pe({},r,{ref:t}),n)}));OM.displayName="Slot";const tE=m.forwardRef(((e,t)=>{const{children:n,...r}=e;return m.isValidElement(n)?m.cloneElement(n,{...RG(r,n.props),ref:CG(t,n.ref)}):m.Children.count(n)>1?m.Children.only(null):null}));tE.displayName="SlotClone";const $G=({children:e})=>m.createElement(m.Fragment,null,e);function IG(e){return m.isValidElement(e)&&e.type===$G}function RG(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const PG=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],nE=PG.reduce(((e,t)=>{const n=m.forwardRef(((e,n)=>{const{asChild:r,...o}=e,i=r?OM:t;return m.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),m.createElement(i,Pe({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function TG(e,t){e&&vu.flushSync((()=>e.dispatchEvent(t)))}function OG(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function AG(...e){return t=>e.forEach((e=>OG(e,t)))}function kG(...e){return m.useCallback(AG(...e),e)}const Ff=null!=globalThis&&globalThis.document?m.useLayoutEffect:()=>{};function DG(e){const[t,n]=m.useState(void 0);return Ff((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t)||!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}const AM="Popper",[UC,kM]=bM(AM),[eee,NG]=UC(AM),cy="PopperContent",[MG,tee]=UC(cy),[LG,FG]=UC(cy,{hasParent:!1,positionUpdateFns:new Set}),BG=m.forwardRef(((e,t)=>{var n,r,o,i,a,u,s,l;const{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:p="center",alignOffset:h=0,arrowPadding:v=0,collisionBoundary:g=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:w=!1,avoidCollisions:x=!0,onPlaced:_,...E}=e,S=NG(cy,c),[A,k]=m.useState(null),C=kG(t,(e=>k(e))),[I,P]=m.useState(null),R=DG(I),O=null!==(n=null==R?void 0:R.width)&&void 0!==n?n:0,T=null!==(r=null==R?void 0:R.height)&&void 0!==r?r:0,N=d+("center"!==p?"-"+p:""),j="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},q=Array.isArray(g)?g:[g],D=q.length>0,M={padding:j,boundary:q.filter(VG),altBoundary:D},{reference:L,floating:$,strategy:B,x:V,y:z,placement:F,middlewareData:U,update:G}=xG({strategy:"fixed",placement:N,whileElementsMounted:wG,middleware:[UG(),dG({mainAxis:f+T,alignmentAxis:h}),x?fG({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?pG():void 0,...M}):void 0,I?SG({element:I,padding:v}):void 0,x?lG({...M}):void 0,hG({...M,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}}),zG({arrowWidth:O,arrowHeight:T}),w?cG({strategy:"referenceHidden"}):void 0].filter(jG)});Ff((()=>{L(S.anchor)}),[L,S.anchor]);const W=null!==V&&null!==z,[H,K]=DM(F),Q=Xy(_);Ff((()=>{W&&(null==Q||Q())}),[W,Q]);const Y=null===(o=U.arrow)||void 0===o?void 0:o.x,X=null===(i=U.arrow)||void 0===i?void 0:i.y,J=0!==(null===(a=U.arrow)||void 0===a?void 0:a.centerOffset),[Z,ee]=m.useState();Ff((()=>{A&&ee(window.getComputedStyle(A).zIndex)}),[A]);const{hasParent:te,positionUpdateFns:ne}=FG(cy,c),re=!te;m.useLayoutEffect((()=>{if(!re)return ne.add(G),()=>{ne.delete(G)}}),[re,ne,G]),Ff((()=>{re&&W&&Array.from(ne).reverse().forEach((e=>requestAnimationFrame(e)))}),[re,W,ne]);const oe={"data-side":H,"data-align":K,...E,ref:C,style:{...E.style,animation:W?void 0:"none",opacity:null!==(u=U.hide)&&void 0!==u&&u.referenceHidden?0:void 0}};return m.createElement("div",{ref:$,"data-radix-popper-content-wrapper":"",style:{position:B,left:0,top:0,transform:W?`translate3d(${Math.round(V)}px, ${Math.round(z)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Z,"--radix-popper-transform-origin":[null===(s=U.transformOrigin)||void 0===s?void 0:s.x,null===(l=U.transformOrigin)||void 0===l?void 0:l.y].join(" ")},dir:e.dir},m.createElement(MG,{scope:c,placedSide:H,onArrowChange:P,arrowX:Y,arrowY:X,shouldHideArrow:J},re?m.createElement(LG,{scope:c,hasParent:!0,positionUpdateFns:ne},m.createElement(nE.div,oe)):m.createElement(nE.div,oe)))}));function jG(e){return void 0!==e}function VG(e){return null!==e}const UG=()=>({name:"anchorCssProperties",fn(e){const{rects:t,elements:n}=e,{width:r,height:o}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${o}px`),{}}}),zG=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:u,rects:s,middlewareData:l}=t,c=0!==(null===(n=l.arrow)||void 0===n?void 0:n.centerOffset),d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,m]=DM(u),h={start:"0%",center:"50%",end:"100%"}[m],v=(null!==(r=null===(o=l.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,g=(null!==(i=null===(a=l.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let y="",b="";return"bottom"===p?(y=c?h:`${v}px`,b=-f+"px"):"top"===p?(y=c?h:`${v}px`,b=`${s.floating.height+f}px`):"right"===p?(y=-f+"px",b=c?h:`${g}px`):"left"===p&&(y=`${s.floating.width+f}px`,b=c?h:`${g}px`),{data:{x:y,y:b}}}});function DM(e){const[t,n="center"]=e.split("-");return[t,n]}const WG=BG;function qG(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function GG(...e){return t=>e.forEach((e=>qG(e,t)))}function HG(...e){return m.useCallback(GG(...e),e)}function KG(e,t){return m.useReducer(((e,n)=>t[e][n]??e),e)}const NM=e=>{const{present:t,children:n}=e,r=QG(t),o="function"==typeof n?n({present:r.isPresent}):m.Children.only(n),i=HG(r.ref,o.ref);return"function"==typeof n||r.isPresent?m.cloneElement(o,{ref:i}):null};function QG(e){const[t,n]=m.useState(),r=m.useRef({}),o=m.useRef(e),i=m.useRef("none"),a=e?"mounted":"unmounted",[u,s]=KG(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect((()=>{const e=Fg(r.current);i.current="mounted"===u?e:"none"}),[u]),Ff((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=Fg(t);e?s("MOUNT"):"none"===a||"none"===(null==t?void 0:t.display)?s("UNMOUNT"):s(n&&r!==a?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,s]),Ff((()=>{if(t){const e=e=>{const n=Fg(r.current).includes(e.animationName);e.target===t&&n&&vu.flushSync((()=>s("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=Fg(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}s("ANIMATION_END")}),[t,s]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:m.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function Fg(e){return(null==e?void 0:e.animationName)||"none"}function YG(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function XG(...e){return t=>e.forEach((e=>YG(e,t)))}function JG(...e){return m.useCallback(XG(...e),e)}function ZG(e,t=(null==globalThis?void 0:globalThis.document)){const n=Xy(e);m.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}NM.displayName="Presence";const rE="dismissableLayer.update",eH="dismissableLayer.pointerDownOutside",tH="dismissableLayer.focusOutside";let gO;const nH=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),rH=m.forwardRef(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:u,onDismiss:s,...l}=e,c=m.useContext(nH),[d,f]=m.useState(null),p=null!==(n=null==d?void 0:d.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,h]=m.useState({}),v=JG(t,(e=>f(e))),g=Array.from(c.layers),[y]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),w=d?g.indexOf(d):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,_=w>=b,E=oH((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));!_||n||(null==i||i(e),null==u||u(e),e.defaultPrevented||null==s||s())}),p),S=iH((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==a||a(e),null==u||u(e),e.defaultPrevented||null==s||s())}),p);return ZG((e=>{w===c.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),p),m.useEffect((()=>{if(d)return r&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(gO=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),yO(),()=>{r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=gO)}}),[d,p,r,c]),m.useEffect((()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),yO())}),[d,c]),m.useEffect((()=>{const e=()=>h({});return document.addEventListener(rE,e),()=>document.removeEventListener(rE,e)}),[]),m.createElement(nE.div,Pe({},l,{ref:v,style:{pointerEvents:x?_?"auto":"none":void 0,...e.style},onFocusCapture:Uf(e.onFocusCapture,S.onFocusCapture),onBlurCapture:Uf(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:Uf(e.onPointerDownCapture,E.onPointerDownCapture)}))}));function oH(e,t=(null==globalThis?void 0:globalThis.document)){const n=Xy(e),r=m.useRef(!1),o=m.useRef((()=>{}));return m.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){MM(eH,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}function iH(e,t=(null==globalThis?void 0:globalThis.document)){const n=Xy(e),r=m.useRef(!1);return m.useEffect((()=>{const e=e=>{e.target&&!r.current&&MM(tH,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function yO(){const e=new CustomEvent(rE);document.dispatchEvent(e)}function MM(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?TG(o,i):o.dispatchEvent(i)}let $x;const LM="HoverCard",[FM,nee]=bM(LM,[kM]),aH=kM(),[ree,BM]=FM(LM),sH="HoverCardPortal",[oee,uH]=FM(sH,{forceMount:void 0}),oE="HoverCardContent",lH=m.forwardRef(((e,t)=>{const n=uH(oE,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,i=BM(oE,e.__scopeHoverCard);return m.createElement(NM,{present:r||i.open},m.createElement(cH,Pe({"data-state":i.open?"open":"closed"},o,{onPointerEnter:Uf(e.onPointerEnter,wO(i.onOpen)),onPointerLeave:Uf(e.onPointerLeave,wO(i.onClose)),ref:t})))})),cH=m.forwardRef(((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,...u}=e,s=BM(oE,n),l=aH(n),c=m.useRef(null),d=rG(t,c),[f,p]=m.useState(!1);return m.useEffect((()=>{if(f){const e=document.body;return $x=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=$x,e.style.webkitUserSelect=$x}}}),[f]),m.useEffect((()=>{if(c.current){const e=()=>{p(!1),s.isPointerDownOnContentRef.current=!1,setTimeout((()=>{var e;""!==(null===(e=document.getSelection())||void 0===e?void 0:e.toString())&&(s.hasSelectionRef.current=!0)}))};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),s.hasSelectionRef.current=!1,s.isPointerDownOnContentRef.current=!1}}}),[s.isPointerDownOnContentRef,s.hasSelectionRef]),m.useEffect((()=>{c.current&&dH(c.current).forEach((e=>e.setAttribute("tabindex","-1")))})),m.createElement(rH,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:a,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:Uf(i,(e=>{e.preventDefault()})),onDismiss:s.onDismiss},m.createElement(WG,Pe({},l,u,{onPointerDown:Uf(u.onPointerDown,(e=>{e.currentTarget.contains(e.target)&&p(!0),s.hasSelectionRef.current=!1,s.isPointerDownOnContentRef.current=!0})),ref:d,style:{...u.style,userSelect:f?"text":void 0,WebkitUserSelect:f?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})))}));function wO(e){return t=>"touch"===t.pointerType?void 0:e()}function dH(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}const jM=lH,fH=m.forwardRef((({className:e,align:t="center",sideOffset:n=4,...r},o)=>G.jsx(jM,{ref:o,align:t,sideOffset:n,className:be("z-50 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})));fH.displayName=jM.displayName;const VM=m.forwardRef((({className:e,type:t,...n},r)=>{const{error:o}=bd();return G.jsx("input",{type:t,title:n.disabled?"Disabled":"",className:be("flex w-full rounded-m px-s py-3.5 text-base text-gray-900 outline outline-1 outline-input ring-offset-background transition-all duration-200 ease-in-out file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-base placeholder:text-gray-400 placeholder:text-muted-foreground focus-visible:bg-gray-50 focus-visible:text-gray-900 focus-visible:outline-2 focus-visible:outline-blue_120 enabled:hover:outline-2 enabled:hover:outline-gray-400 disabled:bg-transparent disabled:text-gray-300 disabled:outline-gray-200 disabled:ring-0 disabled:ring-transparent disabled:placeholder:text-gray-300",{"bg-red_30_17 outline-red-dark":!!o},e),ref:r,...n})}));function pH(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>m.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return m.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=m.createContext(r),i=n.length;n=[...n,r];const a=t=>{var n;const{scope:r,children:a,...u}=t,s=(null==(n=null==r?void 0:r[e])?void 0:n[i])||o,l=m.useMemo((()=>u),Object.values(u));return G.jsx(s.Provider,{value:l,children:a})};return a.displayName=t+"Provider",[a,function(n,a){var u;const s=(null==(u=null==a?void 0:a[e])?void 0:u[i])||o,l=m.useContext(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},hH(r,...t)]}function hH(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return m.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function _O(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function mH(...e){return t=>{let n=!1;const r=e.map((e=>{const r=_O(e,t);return!n&&"function"==typeof r&&(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():_O(e[t],null)}}}}function vH(e){const t=gH(e),n=m.forwardRef(((e,n)=>{const{children:r,...o}=e,i=m.Children.toArray(r),a=i.find(wH);if(a){const e=a.props.children,r=i.map((t=>t===a?m.Children.count(e)>1?m.Children.only(null):m.isValidElement(e)?e.props.children:null:t));return G.jsx(t,{...o,ref:n,children:m.isValidElement(e)?m.cloneElement(e,void 0,r):null})}return G.jsx(t,{...o,ref:n,children:r})}));return n.displayName=`${e}.Slot`,n}function gH(e){const t=m.forwardRef(((e,t)=>{const{children:n,...r}=e;if(m.isValidElement(n)){const e=bH(n),o=_H(r,n.props);return n.type!==m.Fragment&&(o.ref=t?mH(t,e):e),m.cloneElement(n,o)}return m.Children.count(n)>1?m.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}VM.displayName="Input";var yH=Symbol("radix.slottable");function wH(e){return m.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===yH}function _H(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function bH(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var xH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],UM=xH.reduce(((e,t)=>{const n=vH(`Primitive.${t}`),r=m.forwardRef(((e,r)=>{const{asChild:o,...i}=e,a=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),G.jsx(a,{...i,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{}),zC="Progress",WC=100,[SH,iee]=pH(zC),[EH,CH]=SH(zC),zM=m.forwardRef(((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:i=$H,...a}=e;(o||0===o)&&!bO(o)&&console.error(IH(`${o}`,"Progress"));const u=bO(o)?o:WC;null!==r&&!xO(r,u)&&console.error(RH(`${r}`,"Progress"));const s=xO(r,u)?r:null,l=dy(s)?i(s,u):void 0;return G.jsx(EH,{scope:n,value:s,max:u,children:G.jsx(UM.div,{"aria-valuemax":u,"aria-valuemin":0,"aria-valuenow":dy(s)?s:void 0,"aria-valuetext":l,role:"progressbar","data-state":GM(s,u),"data-value":s??void 0,"data-max":u,...a,ref:t})})}));zM.displayName=zC;var WM="ProgressIndicator",qM=m.forwardRef(((e,t)=>{const{__scopeProgress:n,...r}=e,o=CH(WM,n);return G.jsx(UM.div,{"data-state":GM(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})}));function $H(e,t){return`${Math.round(e/t*100)}%`}function GM(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function dy(e){return"number"==typeof e}function bO(e){return dy(e)&&!isNaN(e)&&e>0}function xO(e,t){return dy(e)&&!isNaN(e)&&e<=t&&e>=0}function IH(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${WC}\`.`}function RH(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:\n - a positive number\n - less than the value passed to \`max\` (or ${WC} if no \`max\` prop is set)\n - \`null\` or \`undefined\` if the progress is indeterminate.\n\nDefaulting to \`null\`.`}qM.displayName=WM;var HM=zM,PH=qM;const TH=m.forwardRef((({className:e,value:t,indicatorClassName:n,...r},o)=>G.jsx(HM,{ref:o,className:be("relative h-[7px] w-full overflow-hidden rounded-full bg-blue_10",e),...r,children:G.jsx(PH,{className:be("h-full w-full flex-1 rounded-full bg-blue_100 transition-all",n),style:{transform:`translateX(-${100-(t||0)}%)`}})})));TH.displayName=HM.displayName;const KM="Radio",[OH,QM]=ni(KM),[AH,kH]=OH(KM),DH=m.forwardRef(((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:i,disabled:a,value:u="on",onCheck:s,...l}=e,[c,d]=m.useState(null),f=Ut(t,(e=>d(e))),p=m.useRef(!1),h=!c||!!c.closest("form");return m.createElement(AH,{scope:n,checked:o,disabled:a},m.createElement(lt.button,Pe({type:"button",role:"radio","aria-checked":o,"data-state":YM(o),"data-disabled":a?"":void 0,disabled:a,value:u},l,{ref:f,onClick:et(e.onClick,(e=>{o||null==s||s(),h&&(p.current=e.isPropagationStopped(),p.current||e.stopPropagation())}))})),h&&m.createElement(LH,{control:c,bubbles:!p.current,name:r,value:u,checked:o,required:i,disabled:a,style:{transform:"translateX(-100%)"}}))})),NH="RadioIndicator",MH=m.forwardRef(((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,i=kH(NH,n);return m.createElement(ea,{present:r||i.checked},m.createElement(lt.span,Pe({"data-state":YM(i.checked),"data-disabled":i.disabled?"":void 0},o,{ref:t})))})),LH=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=m.useRef(null),a=By(n),u=jy(t);return m.useEffect((()=>{const e=i.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(a!==n&&o){const t=new Event("click",{bubbles:r});o.call(e,n),e.dispatchEvent(t)}}),[a,n,r]),m.createElement("input",Pe({type:"radio","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:i,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function YM(e){return e?"checked":"unchecked"}const FH=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],XM="RadioGroup",[BH,aee]=ni(XM,[Gh,QM]),JM=Gh(),ZM=QM(),[jH,VH]=BH(XM),UH=m.forwardRef(((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:i,required:a=!1,disabled:u=!1,orientation:s,dir:l,loop:c=!0,onValueChange:d,...f}=e,p=JM(n),h=gC(l),[v,g]=pd({prop:i,defaultProp:o,onChange:d});return m.createElement(jH,{scope:n,name:r,required:a,disabled:u,value:v,onValueChange:g},m.createElement(IC,Pe({asChild:!0},p,{orientation:s,dir:h,loop:c}),m.createElement(lt.div,Pe({role:"radiogroup","aria-required":a,"aria-orientation":s,"data-disabled":u?"":void 0,dir:h},f,{ref:t}))))})),zH="RadioGroupItem",WH=m.forwardRef(((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,i=VH(zH,n),a=i.disabled||r,u=JM(n),s=ZM(n),l=m.useRef(null),c=Ut(t,l),d=i.value===o.value,f=m.useRef(!1);return m.useEffect((()=>{const e=e=>{FH.includes(e.key)&&(f.current=!0)},t=()=>f.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}}),[]),m.createElement(RC,Pe({asChild:!0},u,{focusable:!a,active:d}),m.createElement(DH,Pe({disabled:a,required:i.required,checked:d},s,o,{name:i.name,ref:c,onCheck:()=>i.onValueChange(o.value),onKeyDown:et((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:et(o.onFocus,(()=>{var e;f.current&&(null===(e=l.current)||void 0===e||e.click())}))})))})),qH=m.forwardRef(((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=ZM(n);return m.createElement(MH,Pe({},o,r,{ref:t}))})),e3=UH,t3=WH,GH=qH,HH=m.forwardRef((({className:e,...t},n)=>G.jsx(e3,{className:be("grid gap-2",e),...t,ref:n})));HH.displayName=e3.displayName;const KH=m.forwardRef((({className:e,...t},n)=>G.jsx(t3,{ref:n,className:be("aspect-square size-6 rounded-full border border-gray-300 disabled:cursor-not-allowed disabled:border-gray-100 disabled:bg-gray-100","data-[state=checked]:border-blue_100 data-[state=checked]:bg-blue_100 hover:data-[state=checked]:border-blue_120","disabled:data-[state=checked]:border-gray-100 disabled:data-[state=checked]:bg-gray-100","transition-[border] duration-200 hover:data-[state=checked]:bg-blue_120 md:hover:border-2",e),...t,children:G.jsx(GH,{className:"flex items-center justify-center",children:G.jsx(C6,{className:"stack-animate size-2 border-none",style:{fill:t.disabled?"var(--gray-300)":"white",color:t.disabled?"var(--gray-300)":"white"}})})})));KH.displayName=t3.displayName;const QH=rk,YH=Iy,n3=m.forwardRef((({className:e,...t},n)=>G.jsx(jh,{className:be("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n})));n3.displayName=jh.displayName;const XH=mu("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),r3=m.forwardRef((({side:e="right",className:t,overlayClassName:n,children:r,...o},i)=>G.jsxs(YH,{children:[G.jsx(n3,{className:be("bg-gray-900/70",n)}),G.jsxs(Vh,{ref:i,className:be(XH({side:e}),t),...o,children:[r,G.jsxs(Ry,{className:"absolute right-4 top-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[G.jsx(by,{className:"h-4 w-4"}),G.jsx("span",{className:"sr-only",children:"Close"})]})]})]})));r3.displayName=Vh.displayName;const o3=({className:e,...t})=>G.jsx("div",{className:be("flex flex-col space-y-2 text-center sm:text-left",e),...t});o3.displayName="SheetHeader";const i3=m.forwardRef((({className:e,...t},n)=>G.jsx(Dv,{ref:n,className:be("text-lg font-semibold text-foreground",e),...t})));i3.displayName=Dv.displayName;const a3=m.forwardRef((({className:e,...t},n)=>G.jsx(Nv,{ref:n,className:be("text-sm text-muted-foreground",e),...t})));a3.displayName=Nv.displayName;const[e0,see]=ni("Tooltip",[qh]),t0=qh(),JH="TooltipProvider",ZH=700,iE="tooltip.open",[eK,qC]=e0(JH),tK=e=>{const{__scopeTooltip:t,delayDuration:n=ZH,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,[a,u]=m.useState(!0),s=m.useRef(!1),l=m.useRef(0);return m.useEffect((()=>{const e=l.current;return()=>window.clearTimeout(e)}),[]),m.createElement(eK,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:m.useCallback((()=>{window.clearTimeout(l.current),u(!1)}),[]),onClose:m.useCallback((()=>{window.clearTimeout(l.current),l.current=window.setTimeout((()=>u(!0)),r)}),[r]),isPointerInTransitRef:s,onPointerInTransitChange:m.useCallback((e=>{s.current=e}),[]),disableHoverableContent:o},i)},GC="Tooltip",[nK,qv]=e0(GC),rK=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:a,delayDuration:u}=e,s=qC(GC,e.__scopeTooltip),l=t0(t),[c,d]=m.useState(null),f=sd(),p=m.useRef(0),h=a??s.disableHoverableContent,v=u??s.delayDuration,g=m.useRef(!1),[y=!1,b]=pd({prop:r,defaultProp:o,onChange:e=>{e?(s.onOpen(),document.dispatchEvent(new CustomEvent(iE))):s.onClose(),null==i||i(e)}}),w=m.useMemo((()=>y?g.current?"delayed-open":"instant-open":"closed"),[y]),x=m.useCallback((()=>{window.clearTimeout(p.current),g.current=!1,b(!0)}),[b]),_=m.useCallback((()=>{window.clearTimeout(p.current),b(!1)}),[b]),E=m.useCallback((()=>{window.clearTimeout(p.current),p.current=window.setTimeout((()=>{g.current=!0,b(!0)}),v)}),[v,b]);return m.useEffect((()=>()=>window.clearTimeout(p.current)),[]),m.createElement($N,l,m.createElement(nK,{scope:t,contentId:f,open:y,stateAttribute:w,trigger:c,onTriggerChange:d,onTriggerEnter:m.useCallback((()=>{s.isOpenDelayed?E():x()}),[s.isOpenDelayed,E,x]),onTriggerLeave:m.useCallback((()=>{h?_():window.clearTimeout(p.current)}),[_,h]),onOpen:x,onClose:_,disableHoverableContent:h},n))},SO="TooltipTrigger",oK=m.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=qv(SO,n),i=qC(SO,n),a=t0(n),u=Ut(t,m.useRef(null),o.onTriggerChange),s=m.useRef(!1),l=m.useRef(!1),c=m.useCallback((()=>s.current=!1),[]);return m.useEffect((()=>()=>document.removeEventListener("pointerup",c)),[c]),m.createElement(EC,Pe({asChild:!0},a),m.createElement(lt.button,Pe({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:u,onPointerMove:et(e.onPointerMove,(e=>{"touch"!==e.pointerType&&!l.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),l.current=!0)})),onPointerLeave:et(e.onPointerLeave,(()=>{o.onTriggerLeave(),l.current=!1})),onPointerDown:et(e.onPointerDown,(()=>{s.current=!0,document.addEventListener("pointerup",c,{once:!0})})),onFocus:et(e.onFocus,(()=>{s.current||o.onOpen()})),onBlur:et(e.onBlur,o.onClose),onClick:et(e.onClick,o.onClose)})))})),s3="TooltipPortal",[iK,aK]=e0(s3,{forceMount:void 0}),sK=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=qv(s3,t);return m.createElement(iK,{scope:t,forceMount:n},m.createElement(ea,{present:n||i.open},m.createElement(Sy,{asChild:!0,container:o},r)))},$v="TooltipContent",u3=m.forwardRef(((e,t)=>{const n=aK($v,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=qv($v,e.__scopeTooltip);return m.createElement(ea,{present:r||a.open},a.disableHoverableContent?m.createElement(l3,Pe({side:o},i,{ref:t})):m.createElement(uK,Pe({side:o},i,{ref:t})))})),uK=m.forwardRef(((e,t)=>{const n=qv($v,e.__scopeTooltip),r=qC($v,e.__scopeTooltip),o=m.useRef(null),i=Ut(t,o),[a,u]=m.useState(null),{trigger:s,onClose:l}=n,c=o.current,{onPointerInTransitChange:d}=r,f=m.useCallback((()=>{u(null),d(!1)}),[d]),p=m.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=gK([...hK(r,pK(r,n.getBoundingClientRect())),...mK(t.getBoundingClientRect())]);u(o),d(!0)}),[d]);return m.useEffect((()=>()=>f()),[f]),m.useEffect((()=>{if(s&&c){const e=e=>p(e,c),t=e=>p(e,s);return s.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{s.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}}),[s,c,p,f]),m.useEffect((()=>{if(a){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==s?void 0:s.contains(t))||(null==c?void 0:c.contains(t)),o=!vK(n,a);r?f():o&&(f(),l())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[s,c,a,l,f]),m.createElement(l3,Pe({},e,{ref:i}))})),[lK,cK]=e0(GC,{isInside:!1}),l3=m.forwardRef(((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...u}=e,s=qv($v,n),l=t0(n),{onClose:c}=s;return m.useEffect((()=>(document.addEventListener(iE,c),()=>document.removeEventListener(iE,c))),[c]),m.useEffect((()=>{if(s.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(s.trigger)&&c()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[s.trigger,c]),m.createElement(xy,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:c},m.createElement(CC,Pe({"data-state":s.stateAttribute},l,u,{ref:t,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),m.createElement(OE,null,r),m.createElement(lK,{scope:n,isInside:!0},m.createElement(HW,{id:s.contentId,role:"tooltip"},o||r))))})),dK="TooltipArrow",fK=m.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=t0(n);return cK(dK,n).isInside?null:m.createElement(wz,Pe({},o,r,{ref:t}))}));function pK(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function hK(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}function mK(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function vK(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,u=t[e].y,s=t[i].x,l=t[i].y;u>r!=l>r&&n<(s-a)*(r-u)/(l-u)+a&&(o=!o)}return o}function gK(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),yK(t)}function yK(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const wK=sK,c3=u3,_K=fK,bK=()=>{const e=window.innerWidth;return e<768?"mobile":e<1024?"tablet":"desktop"},xK=e=>{if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)},SK=e=>xK(e)&&"type"in e&&"string"==typeof e.type,wt=e=>{const t=t=>({type:e,payload:t});return t.toString=()=>`${e}`,t.type=e,t.match=t=>SK(t)&&t.type===e,t};wt("remoteReady"),wt("askLogin"),wt("reselectUser"),wt("requestLogout");const EK=wt("setConfirmLeavePage"),d3=wt("requestChangePath");wt("wsSubscribe"),wt("wsUnSubscribe"),wt("hostStoreConnect"),wt("remoteLogin");const CK=wt("remoteLogout");wt("wsOnMessage");const $K=wt("setRouterPath"),IK=wt("setDeviceType"),RK=wt("setDeviceWidth"),PK=wt("setUserError"),TK=wt("setUserIsError"),OK=wt("setUserPending"),AK=wt("setUserSuccess"),kK=wt("setUserData"),DK=wt("updateAccountData"),NK=wt("updateUser"),MK=wt("addNotification"),LK=wt("markNotification"),FK=wt("setNotificationsError"),BK=wt("setNotificationsList"),jK=wt("setNotificationsPending"),VK=wt("setNotificationsTotalCount"),UK=wt("setNotificationsUnreadCount"),zK=wt("acceptAllFollowRequests"),WK=wt("resetNotificationsState"),qK=wt("undoNotification"),GK=wt("setInstanceInfo"),HK=wt("setInstanceInfoPending"),KK=wt("setInstanceInfoError"),QK=wt("setPlatformSettings"),YK=wt("setProfileSettings");wt("setGroupData"),wt("setGroupLoading"),wt("requestLocalStorageGet"),wt("requestLocalStorageSet"),wt("requestLocalStorageRemove"),wt("requestLocalStorageClear"),wt("requestLocalStorageKeys"),wt("requestLocalStorageHas"),wt("sendLocalStorageResponse"),wt("sendLocalStorageChanged");const XK=e=>{try{const{type:t,payload:n}=e,r={type:t};return void 0!==n&&(r.payload=JSON.parse(JSON.stringify(n))),r}catch(t){return El.warn(`Could not serialize action type: ${e.type}`,t),{type:e.type,payload:`[Non-serializable payload for action: ${e.type}]`}}},f3=({action:e,windowElement:t,whitelist:n})=>{if(t)try{const{type:r}=e;if(!n.some((({type:e})=>e===r||"*"===e)))return;const o=XK(e);t.postMessage(o,"*")}catch(e){El.error("Failed to process or send message:",e)}},p3=({onMessage:e,whitelist:t,sourceWindow:n})=>{const r=r=>{const o=r.origin===window.location.origin,i=!n||r.source===n,a=r.data&&"object"==typeof r.data&&"type"in r.data,u=t.some((({type:e})=>e===r.data.type||"*"===e));!o&&i&&a&&u&&e(r.data)};return window.addEventListener("message",r),()=>{window.removeEventListener("message",r)}},Ih=()=>{try{return window.self!==window.top}catch{return!0}},EO=Un("requestMicroFrontendFetch"),JK=Un("sendMicroFrontendFetchResponse"),ZK={deviceType:bK(),deviceWidth:window.innerWidth},h3=So({name:"ui",initialState:ZK,reducers:{},extraReducers:e=>{e.addCase(IK,((e,{payload:t})=>{e.deviceType=t})),e.addCase(RK,((e,{payload:t})=>{e.deviceWidth=t}))},selectors:{selectDeviceType:e=>e.deviceType,selectDeviceWidth:e=>e.deviceWidth,selectIsMobile:e=>"mobile"===e.deviceType,selectIsTablet:e=>"tablet"===e.deviceType,selectIsDesktop:e=>"desktop"===e.deviceType}});var Ix,CO,Rx,$O,Px,IO,Tx,RO,Ox,PO,Ax,TO,kx,OO,Dx,AO,Nx,kO,Mx,DO,Lx,NO,Fx,MO,Bx,LO,jx,FO,Vx,BO,Ux,jO,zx,VO,Wx,UO,qx,zO,Gx,WO,Hx,qO,Kx,GO,Qx,HO,Yx,KO,Xx,QO,Jx,YO,Zx,XO,eS,JO,tS,ZO,nS,eA,rS,tA,oS,nA,iS,rA,aS,oA,sS,iA,uS,aA,lS,sA,cS,uA,dS,lA,fS,cA,pS,dA;function m3(){if(CO)return Ix;CO=1;var e=qk(),t=e&&new e;return Ix=t}function v3(){if($O)return Rx;$O=1;var e=nC(),t=m3();return Rx=t?function(e,n){return t.set(e,n),e}:e}function n0(){if(IO)return Px;IO=1;var e=Fy(),t=ws();return Px=function(n){return function(){var r=arguments;switch(r.length){case 0:return new n;case 1:return new n(r[0]);case 2:return new n(r[0],r[1]);case 3:return new n(r[0],r[1],r[2]);case 4:return new n(r[0],r[1],r[2],r[3]);case 5:return new n(r[0],r[1],r[2],r[3],r[4]);case 6:return new n(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new n(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var o=e(n.prototype),i=n.apply(o,r);return t(i)?i:o}},Px}function eQ(){if(RO)return Tx;RO=1;var e=n0(),t=ri();return Tx=function(n,r,o){var i=1&r,a=e(n);return function e(){return(this&&this!==t&&this instanceof e?a:n).apply(i?o:this,arguments)}},Tx}function g3(){if(PO)return Ox;PO=1;var e=Math.max;return Ox=function(t,n,r,o){for(var i=-1,a=t.length,u=r.length,s=-1,l=n.length,c=e(a-u,0),d=Array(l+c),f=!o;++s<l;)d[s]=n[s];for(;++i<u;)(f||i<a)&&(d[r[i]]=t[i]);for(;c--;)d[s++]=t[i++];return d}}function y3(){if(TO)return Ax;TO=1;var e=Math.max;return Ax=function(t,n,r,o){for(var i=-1,a=t.length,u=-1,s=r.length,l=-1,c=n.length,d=e(a-s,0),f=Array(d+c),p=!o;++i<d;)f[i]=t[i];for(var m=i;++l<c;)f[m+l]=n[l];for(;++u<s;)(p||i<a)&&(f[m+r[u]]=t[i++]);return f}}function tQ(){if(OO)return kx;return OO=1,kx=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}}function HC(){if(AO)return Dx;return AO=1,Dx=function(){}}function KC(){if(kO)return Nx;kO=1;var e=Fy(),t=HC();function n(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}return n.prototype=e(t.prototype),n.prototype.constructor=n,Nx=n}function w3(){if(DO)return Mx;DO=1;var e=m3(),t=kB();return Mx=e?function(t){return e.get(t)}:t}function nQ(){if(NO)return Lx;NO=1;return Lx={}}function rQ(){if(MO)return Fx;MO=1;var e=nQ(),t=Object.prototype.hasOwnProperty;return Fx=function(n){for(var r=n.name+"",o=e[r],i=t.call(e,r)?o.length:0;i--;){var a=o[i],u=a.func;if(null==u||u==n)return a.name}return r}}function _3(){if(LO)return Bx;LO=1;var e=Fy(),t=HC();function n(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}return n.prototype=e(t.prototype),n.prototype.constructor=n,Bx=n}function oQ(){if(FO)return jx;FO=1;var e=KC(),t=_3(),n=Ly();return jx=function(r){if(r instanceof e)return r.clone();var o=new t(r.__wrapped__,r.__chain__);return o.__actions__=n(r.__actions__),o.__index__=r.__index__,o.__values__=r.__values__,o}}function iQ(){if(BO)return Vx;BO=1;var e=KC(),t=_3(),n=HC(),r=Ei(),o=ta(),i=oQ(),a=Object.prototype.hasOwnProperty;function u(n){if(o(n)&&!r(n)&&!(n instanceof e)){if(n instanceof t)return n;if(a.call(n,"__wrapped__"))return i(n)}return new t(n)}return u.prototype=n.prototype,u.prototype.constructor=u,Vx=u}function aQ(){if(jO)return Ux;jO=1;var e=KC(),t=w3(),n=rQ(),r=iQ();return Ux=function(o){var i=n(o),a=r[i];if("function"!=typeof a||!(i in e.prototype))return!1;if(o===a)return!0;var u=t(a);return!!u&&o===u[0]}}function b3(){if(VO)return zx;VO=1;var e=v3(),t=Yk()(e);return zx=t}function sQ(){if(UO)return Wx;UO=1;var e=/\{\n\/\* \[wrapped with (.+)\] \*/,t=/,? & /;return Wx=function(n){var r=n.match(e);return r?r[1].split(t):[]}}function uQ(){if(zO)return qx;zO=1;var e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;return qx=function(t,n){var r=n.length;if(!r)return t;var o=r-1;return n[o]=(r>1?"& ":"")+n[o],n=n.join(r>2?", ":" "),t.replace(e,"{\n/* [wrapped with "+n+"] */\n")}}function lQ(){if(WO)return Gx;WO=1;var e=iC(),t=AB(),n=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];return Gx=function(r,o){return e(n,(function(e){var n="_."+e[0];o&e[1]&&!t(r,n)&&r.push(n)})),r.sort()}}function x3(){if(qO)return Hx;qO=1;var e=sQ(),t=uQ(),n=Xk(),r=lQ();return Hx=function(o,i,a){var u=i+"";return n(o,t(u,r(e(u),a)))}}function S3(){if(GO)return Kx;GO=1;var e=aQ(),t=b3(),n=x3();return Kx=function(r,o,i,a,u,s,l,c,d,f){var p=8&o;o|=p?32:64,4&(o&=~(p?64:32))||(o&=-4);var m=[r,o,u,p?s:void 0,p?l:void 0,p?void 0:s,p?void 0:l,c,d,f],h=i.apply(void 0,m);return e(r)&&t(h,m),h.placeholder=a,n(h,r,o)}}function E3(){if(HO)return Qx;return HO=1,Qx=function(e){return e.placeholder}}function cQ(){if(KO)return Yx;KO=1;var e=Ly(),t=XE(),n=Math.min;return Yx=function(r,o){for(var i=r.length,a=n(o.length,i),u=e(r);a--;){var s=o[a];r[a]=t(s,i)?u[s]:void 0}return r}}function QC(){if(QO)return Xx;QO=1;var e="__lodash_placeholder__";return Xx=function(t,n){for(var r=-1,o=t.length,i=0,a=[];++r<o;){var u=t[r];(u===n||u===e)&&(t[r]=e,a[i++]=r)}return a}}function C3(){if(YO)return Jx;YO=1;var e=g3(),t=y3(),n=tQ(),r=n0(),o=S3(),i=E3(),a=cQ(),u=QC(),s=ri();return Jx=function l(c,d,f,p,m,h,v,g,y,b){var w=128&d,x=1&d,_=2&d,E=24&d,S=512&d,A=_?void 0:r(c);return function k(){for(var C=arguments.length,I=Array(C),P=C;P--;)I[P]=arguments[P];if(E)var R=i(k),O=n(I,R);if(p&&(I=e(I,p,m,E)),h&&(I=t(I,h,v,E)),C-=O,E&&C<b){var T=u(I,R);return o(c,d,l,k.placeholder,f,I,T,g,y,b-C)}var N=x?f:this,j=_?N[c]:c;return C=I.length,g?I=a(I,g):S&&C>1&&I.reverse(),w&&y<C&&(I.length=y),this&&this!==s&&this instanceof k&&(j=A||r(j)),j.apply(N,I)}},Jx}function dQ(){if(XO)return Zx;XO=1;var e=rC(),t=n0(),n=C3(),r=S3(),o=E3(),i=QC(),a=ri();return Zx=function(u,s,l){var c=t(u);return function t(){for(var d=arguments.length,f=Array(d),p=d,m=o(t);p--;)f[p]=arguments[p];var h=d<3&&f[0]!==m&&f[d-1]!==m?[]:i(f,m);return(d-=h.length)<l?r(u,s,n,t.placeholder,void 0,f,h,void 0,void 0,l-d):e(this&&this!==a&&this instanceof t?c:u,this,f)}},Zx}function fQ(){if(JO)return eS;JO=1;var e=rC(),t=n0(),n=ri();return eS=function(r,o,i,a){var u=1&o,s=t(r);return function t(){for(var o=-1,l=arguments.length,c=-1,d=a.length,f=Array(d+l),p=this&&this!==n&&this instanceof t?s:r;++c<d;)f[c]=a[c];for(;l--;)f[c++]=arguments[++o];return e(p,u?i:this,f)}},eS}function pQ(){if(ZO)return tS;ZO=1;var e=g3(),t=y3(),n=QC(),r="__lodash_placeholder__",o=128,i=Math.min;return tS=function(a,u){var s=a[1],l=u[1],c=s|l,d=c<131,f=l==o&&8==s||l==o&&256==s&&a[7].length<=u[8]||384==l&&u[7].length<=u[8]&&8==s;if(!d&&!f)return a;1&l&&(a[2]=u[2],c|=1&s?0:4);var p=u[3];if(p){var m=a[3];a[3]=m?e(m,p,u[4]):p,a[4]=m?n(a[3],r):u[4]}return(p=u[5])&&(m=a[5],a[5]=m?t(m,p,u[6]):p,a[6]=m?n(a[5],r):u[6]),(p=u[7])&&(a[7]=p),l&o&&(a[8]=null==a[8]?u[8]:i(a[8],u[8])),null==a[9]&&(a[9]=u[9]),a[0]=u[0],a[1]=c,a}}function YC(){if(eA)return nS;eA=1;var e=v3(),t=eQ(),n=dQ(),r=C3(),o=fQ(),i=w3(),a=pQ(),u=b3(),s=x3(),l=tD(),c=Math.max;return nS=function(d,f,p,m,h,v,g,y){var b=2&f;if(!b&&"function"!=typeof d)throw new TypeError("Expected a function");var w=m?m.length:0;if(w||(f&=-97,m=h=void 0),g=void 0===g?g:c(l(g),0),y=void 0===y?y:l(y),w-=h?h.length:0,64&f){var x=m,_=h;m=h=void 0}var E=b?void 0:i(d),S=[d,f,p,m,h,x,_,v,g,y];if(E&&a(S,E),d=S[0],f=S[1],p=S[2],m=S[3],h=S[4],!(y=S[9]=void 0===S[9]?b?0:d.length:c(S[9]-w,0))&&24&f&&(f&=-25),f&&1!=f)A=8==f||16==f?n(d,f,y):32!=f&&33!=f||h.length?r.apply(void 0,S):o(d,f,p,m);else var A=t(d,f,p);return s((E?e:u)(A,S),d,f)}}function hQ(){if(tA)return rS;tA=1;var e=YC();return rS=function(t,n,r){return n=r?void 0:n,n=t&&null==n?t.length:n,e(t,128,void 0,void 0,void 0,void 0,n)}}function mQ(){if(nA)return oS;nA=1;var e=iD();return oS=function(t){return e(t,4)}}function vQ(){if(rA)return iS;rA=1;var e=YC();function t(n,r,o){var i=e(n,8,void 0,void 0,void 0,void 0,void 0,r=o?void 0:r);return i.placeholder=t.placeholder,i}return t.placeholder={},iS=t}function gQ(){if(oA)return aS;oA=1;var e=Il(),t=ta(),n=e9();return aS=function(r){if(!t(r))return!1;var o=e(r);return"[object Error]"==o||"[object DOMException]"==o||"string"==typeof r.message&&"string"==typeof r.name&&!n(r)}}function yQ(){if(iA)return sS;iA=1;var e=Bv(),t=ta();return sS=function(n){return t(n)&&"[object WeakMap]"==e(n)}}function wQ(){if(aA)return uS;aA=1;var e=iD(),t=IB();return uS=function(n){return t("function"==typeof n?n:e(n,1))}}function _Q(){if(sA)return lS;sA=1;var e=YC(),t=b9(),n=t((function(t,n){return e(t,256,void 0,void 0,void 0,n)}));return lS=n}function bQ(){if(uA)return cS;uA=1;var e=Pk(),t=Ly(),n=Ei(),r=Lv(),o=Rk(),i=Fv(),a=Tk();return cS=function(u){return n(u)?e(u,i):r(u)?[u]:t(o(a(u)))}}function xQ(){return lA||(lA=1,dS={ary:hQ(),assign:rD(),clone:mQ(),curry:vQ(),forEach:iC(),isArray:Ei(),isError:gQ(),isFunction:Ty(),isWeakMap:yQ(),iteratee:wQ(),keys:Uk(),rearg:_Q(),toInteger:tD(),toPath:bQ()}),dS}function SQ(){if(cA)return fS;cA=1;var e=y2(),t=xQ();return fS=function(n,r,o){return e(t,n,r,o)}}function EQ(){if(dA)return pS;dA=1;var e=SQ()("debounce",Zk());return e.placeholder=g2(),pS=e}EQ();const CQ=()=>_y(h3.selectors.selectIsMobile);function fA({className:e,...t}){return G.jsx("div",{className:be("animate-pulse rounded-md bg-muted",e),...t})}const $Q="sidebar_state",IQ=604800,RQ="12rem",PQ="18rem",TQ="2rem",OQ="b",$3=m.createContext(null);function r0(){const e=m.useContext($3);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const AQ=m.forwardRef((({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:i,...a},u)=>{const s=CQ(),[l,c]=m.useState(!1),[d,f]=m.useState(e),p=t??d,h=m.useCallback((e=>{const t="function"==typeof e?e(p):e;n?n(t):f(t),document.cookie=`${$Q}=${t}; path=/; max-age=${IQ}`}),[n,p]),v=m.useCallback((()=>s?c((e=>!e)):h((e=>!e))),[s,h,c]);m.useEffect((()=>{const e=e=>{e.key===OQ&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),v())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[v]);const g=p?"expanded":"collapsed",y=m.useMemo((()=>({state:g,open:p,setOpen:h,isMobile:s,openMobile:l,setOpenMobile:c,toggleSidebar:v})),[g,p,h,s,l,c,v]);return G.jsx($3.Provider,{value:y,children:G.jsx(tK,{delayDuration:0,children:G.jsx("div",{style:{"--sidebar-width":RQ,"--sidebar-width-icon":TQ,...o},className:be("group/sidebar-wrapper flex min-h-svh w-full bg-gray-100 has-[[data-variant=inset]]:bg-sidebar",r),ref:u,...a,children:i})})})}));AQ.displayName="SidebarProvider";const kQ=m.forwardRef((({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...i},a)=>{const{isMobile:u,state:s,openMobile:l,setOpenMobile:c}=r0();return"none"===n?G.jsx("div",{className:be("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:a,...i,children:o}):u?G.jsx(QH,{open:l,onOpenChange:c,children:G.jsxs(r3,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":PQ},side:e,children:[G.jsxs(o3,{className:"sr-only",children:[G.jsx(i3,{children:"Sidebar"}),G.jsx(a3,{children:"Displays the mobile sidebar."})]}),G.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):G.jsxs("div",{ref:a,className:"group peer hidden text-sidebar-foreground md:block","data-state":s,"data-collapsible":"collapsed"===s?n:"","data-variant":t,"data-side":e,children:[G.jsx("div",{className:be("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===t||"inset"===t?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),G.jsx("div",{className:be("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex","left"===e?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","floating"===t||"inset"===t?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...i,children:G.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-sm group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:o})})]})}));kQ.displayName="Sidebar";const DQ=m.forwardRef((({className:e,onClick:t,...n},r)=>{const{toggleSidebar:o,open:i}=r0();return G.jsx(kv,{ref:r,"data-sidebar":"trigger",variant:"tertiary",size:"icon_m",className:be("size-6 text-gray-900",e),onClick:e=>{null==t||t(e),o()},...n,children:i?G.jsx(D6,{size:16}):G.jsx(A6,{size:16})})}));DQ.displayName="SidebarTrigger";const NQ=m.forwardRef((({className:e,...t},n)=>{const{toggleSidebar:r}=r0();return G.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:be("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})}));NQ.displayName="SidebarRail";const MQ=m.forwardRef((({className:e,...t},n)=>G.jsx("main",{ref:n,className:be("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-m md:peer-data-[variant=inset]:shadow",e),...t})));MQ.displayName="SidebarInset";const LQ=m.forwardRef((({className:e,...t},n)=>G.jsx(VM,{ref:n,"data-sidebar":"input",className:be("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t})));LQ.displayName="SidebarInput";const FQ=m.forwardRef((({className:e,...t},n)=>G.jsx("div",{ref:n,"data-sidebar":"header",className:be("flex flex-col gap-xxs p-xs",e),...t})));FQ.displayName="SidebarHeader";const BQ=m.forwardRef((({className:e,...t},n)=>G.jsx("div",{ref:n,"data-sidebar":"footer",className:be("flex flex-col gap-2 p-2",e),...t})));BQ.displayName="SidebarFooter";const jQ=m.forwardRef((({className:e,...t},n)=>G.jsx(kC,{ref:n,"data-sidebar":"separator",className:be("mx-2 w-auto bg-sidebar-border",e),...t})));jQ.displayName="SidebarSeparator";const VQ=m.forwardRef((({className:e,...t},n)=>G.jsx("div",{ref:n,"data-sidebar":"content",className:be("flex min-h-0 flex-1 flex-col gap-xxxs overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})));VQ.displayName="SidebarContent";const UQ=m.forwardRef((({className:e,...t},n)=>G.jsx("div",{ref:n,"data-sidebar":"group",className:be("relative flex w-full min-w-0 flex-col pt-xs",e),...t})));UQ.displayName="SidebarGroup";const zQ=m.forwardRef((({className:e,asChild:t=!1,...n},r)=>{const o=t?wd:"div";return G.jsx(o,{ref:r,"data-sidebar":"group-label",className:be("flex h-s shrink-0 items-center rounded-md px-xxs py-xxs text-xs font-semibold text-gray-700 opacity-60 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-xl group-data-[collapsible=icon]:opacity-0",e),...n})}));zQ.displayName="SidebarGroupLabel";const WQ=m.forwardRef((({className:e,asChild:t=!1,...n},r)=>{const o=t?wd:"button";return G.jsx(o,{ref:r,"data-sidebar":"group-action",className:be("absolute right-xs top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...n})}));WQ.displayName="SidebarGroupAction";const qQ=m.forwardRef((({className:e,...t},n)=>G.jsx("div",{ref:n,"data-sidebar":"group-content",className:be("w-full text-sm",e),...t})));qQ.displayName="SidebarGroupContent";const GQ=m.forwardRef((({className:e,...t},n)=>G.jsx("ul",{ref:n,"data-sidebar":"menu",className:be("flex w-full min-w-0 flex-col p-xs font-semibold text-gray-700 [&_svg]:size-4",e),...t})));GQ.displayName="SidebarMenu";const HQ=m.forwardRef((({className:e,...t},n)=>G.jsx("li",{ref:n,"data-sidebar":"menu-item",className:be("group/menu-item relative",e),...t})));HQ.displayName="SidebarMenuItem";const KQ=mu("peer/menu-button flex w-full items-center gap-xxs overflow-hidden rounded-sm p-xxs text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:text-blue_100 hover:bg-white focus-visible:ring-2 active:bg-white active:text-blue_100 disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-white data-[active=true]:font-medium data-[active=true]:text-blue_100 data-[state=open]:hover:bg-white data-[state=open]:hover:text-blue_100 group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:text-blue_100 hover:bg-white",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-white hover:text-blue_100 hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-s text-sm",sm:"h-m text-xs",lg:"h-l text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),QQ=m.forwardRef((({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:i,...a},u)=>{const s=e?wd:"button",{isMobile:l,state:c}=r0(),d=G.jsx(s,{ref:u,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:be(KQ({variant:n,size:r}),i),...a});return o?("string"==typeof o&&(o={children:o}),G.jsxs(rK,{children:[G.jsx(oK,{asChild:!0,children:d}),G.jsx(u3,{side:"right",align:"center",hidden:"collapsed"!==c||l,...o})]})):d}));QQ.displayName="SidebarMenuButton";const YQ=m.forwardRef((({className:e,asChild:t=!1,showOnHover:n=!1,...r},o)=>{const i=t?wd:"button";return G.jsx(i,{ref:o,"data-sidebar":"menu-action",className:be("absolute right-xxxs top-xxs flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-xxxs","peer-data-[size=default]/menu-button:top-xxs","peer-data-[size=lg]/menu-button:top-xs","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r})}));YQ.displayName="SidebarMenuAction";const XQ=m.forwardRef((({className:e,...t},n)=>G.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:be("pointer-events-none absolute right-xxxs flex h-m min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-xxxs","peer-data-[size=default]/menu-button:top-xxs","peer-data-[size=lg]/menu-button:top-xs","group-data-[collapsible=icon]:hidden",e),...t})));XQ.displayName="SidebarMenuBadge";const JQ=m.forwardRef((({className:e,showIcon:t=!1,...n},r)=>{const o=m.useMemo((()=>`${Math.floor(40*Math.random())+50}%`),[]);return G.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:be("flex h-8 items-center gap-xxs rounded-md px-xxs",e),...n,children:[t&&G.jsx(fA,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),G.jsx(fA,{className:"h-xxxs max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})}));JQ.displayName="SidebarMenuSkeleton";const ZQ=m.forwardRef((({className:e,...t},n)=>G.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:be("flex min-w-0 translate-x-px flex-col gap-xxxs border-l border-sidebar-border","group-data-[collapsible=icon]:hidden",e),...t})));ZQ.displayName="SidebarMenuSub";const eY=m.forwardRef((({...e},t)=>G.jsx("li",{ref:t,...e})));eY.displayName="SidebarMenuSubItem";const tY=m.forwardRef((({asChild:e=!1,size:t="md",isActive:n,className:r,...o},i)=>{const a=e?wd:"a";return G.jsx(a,{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:be("flex h-s min-w-0 -translate-x-px items-center gap-xxs overflow-hidden rounded-sm px-xxs text-sm text-gray-700 outline-none ring-sidebar-ring hover:bg-white hover:text-blue_100 focus-visible:ring-2 active:bg-white active:text-blue_100 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-blue_100","data-[active=true]:bg-white data-[active=true]:text-blue_100","sm"===t&&"text-xs","md"===t&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o})}));tY.displayName="SidebarMenuSubButton";const I3="Switch",[nY,uee]=ni(I3),[rY,oY]=nY(I3),iY=m.forwardRef(((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:i,required:a,disabled:u,value:s="on",onCheckedChange:l,...c}=e,[d,f]=m.useState(null),p=Ut(t,(e=>f(e))),h=m.useRef(!1),v=!d||!!d.closest("form"),[g=!1,y]=pd({prop:o,defaultProp:i,onChange:l});return m.createElement(rY,{scope:n,checked:g,disabled:u},m.createElement(lt.button,Pe({type:"button",role:"switch","aria-checked":g,"aria-required":a,"data-state":R3(g),"data-disabled":u?"":void 0,disabled:u,value:s},c,{ref:p,onClick:et(e.onClick,(e=>{y((e=>!e)),v&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())}))})),v&&m.createElement(uY,{control:d,bubbles:!h.current,name:r,value:s,checked:g,required:a,disabled:u,style:{transform:"translateX(-100%)"}}))})),aY="SwitchThumb",sY=m.forwardRef(((e,t)=>{const{__scopeSwitch:n,...r}=e,o=oY(aY,n);return m.createElement(lt.span,Pe({"data-state":R3(o.checked),"data-disabled":o.disabled?"":void 0},r,{ref:t}))})),uY=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=m.useRef(null),a=By(n),u=jy(t);return m.useEffect((()=>{const e=i.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(a!==n&&o){const t=new Event("click",{bubbles:r});o.call(e,n),e.dispatchEvent(t)}}),[a,n,r]),m.createElement("input",Pe({type:"checkbox","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:i,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function R3(e){return e?"checked":"unchecked"}const P3=iY,lY=sY,cY=m.forwardRef((({className:e,...t},n)=>G.jsx(P3,{className:be("group peer inline-flex h-xs w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background data-[state=checked]:bg-blue_100 data-[state=unchecked]:bg-gray-200","disabled:cursor-not-allowed disabled:!bg-gray-100 md:hover:data-[state=checked]:bg-blue_120 md:hover:data-[state=unchecked]:!bg-gray-300",e),...t,ref:n,children:G.jsx(lY,{className:be("pointer-events-none block size-xxs rounded-full bg-background shadow-lg ring-0 transition-[transform,width] data-[state=checked]:translate-x-[20px] data-[state=unchecked]:translate-x-0",{"md:group-hover:w-[26px] md:group-hover:data-[state=checked]:translate-x-[14px]":!t.disabled,"bg-gray-300":t.disabled})})})));cY.displayName=P3.displayName;const dY=(e,t,{skipParams:n=!1}={})=>{const{props:r,params:o}=Object.keys(t).reduce(((n,r)=>(e.includes(`:${r}`)?n.props[r]=t[r]:n.params.set(r,t[r]),n)),{props:{},params:new URLSearchParams}),i=Object.keys(r).reduce(((e,t)=>{const n=new RegExp(`/:${t}\\?`,"g");return(e=e.replace(n,`/${r[t]}`)).replace(new RegExp(`:${t}`,"g"),r[t])}),e).replace(/\/:[^/]+?\?/g,"");return o.toString()&&!n?`${i}?${o.toString()}`:i},fY=e=>e&&jf.values(e).length?"?"+new URLSearchParams(e).toString():"";var pY={USER:"teamcity",npm_config_user_agent:"npm/10.9.3 node/v22.18.0 linux x64 workspaces/true",SENTRY_AUTH_TOKEN:"1d93ff28a44e4c3aaaaff854277cd8583c1de670bd8744bc895670dfd9300840",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.18.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/error-kit/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.18.0",npm_config_npm_version:"10.9.3",npm_config_cache:"/home/teamcity/.npm",USE_NPM_LIBS:"false",npm_config_ignore_scripts:"true",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.18.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/error-kit/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.18.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.18.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.9/bin:/home/teamcity/.rvm/gems/ruby-3.3.9@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.9/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.18.0/bin",TURBO_HASH:"830a354eb9d99165",NODE:"/home/teamcity/.nvm/versions/node/v22.18.0/bin/node",npm_package_name:"@wellesley/error-kit",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"vite build",SHELL:"/bin/bash",npm_package_version:"1.0.701",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",SENTRY_MAPS_UPLOAD:"true",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.18.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/error-kit",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.18.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.18.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",USE_PACKAGES_FROM_NPM:"false",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/error-kit",EDITOR:"vi",NODE_ENV:"production",BUILD_NUMBER:"3777",APP_NAME:"@wellesley/error-kit"},T3=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(T3||{});function hY(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function mY(e){return new RegExp("(^|:)//").test(e)}var vY=e=>e.replace(/\/$/,""),gY=e=>e.replace(/^\//,"");function yY(e,t){if(!e)return t;if(!t)return e;if(mY(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=vY(e)}${n}${t=gY(t)}`}var pA=e=>[].concat(...e);function wY(){return typeof navigator>"u"||void 0===navigator.onLine||navigator.onLine}function _Y(){return typeof document>"u"||"hidden"!==document.visibilityState}var hA=cd;function O3(e,t){if(e===t||!(hA(e)&&hA(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let o=n.length===r.length;const i=Array.isArray(t)?[]:{};for(const r of n)i[r]=O3(e[r],t[r]),o&&(o=e[r]===i[r]);return o?e:i}var mA=(...e)=>fetch(...e),bY=e=>e.status>=200&&e.status<=299,xY=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function vA(e){if(!cd(e))return e;const t={...e};for(const[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}function SY({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=mA,paramsSerializer:r,isJsonContentType:o=xY,jsonContentType:i="application/json",jsonReplacer:a,timeout:u,responseHandler:s,validateStatus:l,...c}={}){return typeof fetch>"u"&&n===mA&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(f,p)=>{const{signal:m,getState:h,extra:v,endpoint:g,forced:y,type:b}=p;let w,{url:x,headers:_=new Headers(c.headers),params:E,responseHandler:S=s??"json",validateStatus:A=l??bY,timeout:k=u,...C}="string"==typeof f?{url:f}:f,I={...c,signal:m,...C};_=new Headers(vA(_)),I.headers=await t(_,{getState:h,extra:v,endpoint:g,forced:y,type:b})||_;const P=e=>"object"==typeof e&&(cd(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!I.headers.has("content-type")&&P(I.body)&&I.headers.set("content-type",i),P(I.body)&&o(I.headers)&&(I.body=JSON.stringify(I.body,a)),E){const e=~x.indexOf("?")?"&":"?";x+=e+(r?r(E):new URLSearchParams(vA(E)))}x=yY(e,x);const R=new Request(x,I);w={request:new Request(x,I)};let O,T=!1,N=k&&setTimeout((()=>{T=!0,p.abort()}),k);try{O=await n(R)}catch(e){return{error:{status:T?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:w}}finally{N&&clearTimeout(N)}const j=O.clone();w.response=j;let q,D="";try{let e;if(await Promise.all([d(O,S).then((e=>q=e),(t=>e=t)),j.text().then((e=>D=e),(()=>{}))]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:O.status,data:D,error:String(e)},meta:w}}return A(O,q)?{data:q,meta:w}:{error:{status:O.status,data:q},meta:w}};async function d(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=o(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var gA=class{constructor(e,t=void 0){this.value=e,this.meta=t}},XC=Un("__rtkq/focused"),A3=Un("__rtkq/unfocused"),JC=Un("__rtkq/online"),k3=Un("__rtkq/offline");function D3(e){return"query"===e.type}function EY(e){return"mutation"===e.type}function ZC(e,t,n,r,o,i){return CY(e)?e(t,n,r,o).map(aE).map(i):Array.isArray(e)?e.map(aE).map(i):[]}function CY(e){return"function"==typeof e}function aE(e){return"string"==typeof e?{type:e}:e}function yA(e){return null!=e}function Ah(e){let t=0;for(const n in e)t++;return t}function $Y(e,t){return e.catch(t)}var Iv=Symbol("forceQueryFn"),sE=e=>"function"==typeof e[Iv];function IY({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:o}){const i=new Map,a=new Map,{unsubscribeQueryResult:u,removeMutationResult:s,updateSubscriptionOptions:l}=r.internalActions;return{buildInitiateQuery:function(n,o){const a=(s,{subscribe:c=!0,forceRefetch:d,subscriptionOptions:f,[Iv]:p,...m}={})=>(h,v)=>{var g;const y=e({queryArgs:s,endpointDefinition:o,endpointName:n}),b=t({...m,type:"query",subscribe:c,forceRefetch:d,subscriptionOptions:f,endpointName:n,originalArgs:s,queryCacheKey:y,[Iv]:p}),w=r.endpoints[n].select(s),x=h(b),_=w(v()),{requestId:E,abort:S}=x,A=_.requestId!==E,k=null==(g=i.get(h))?void 0:g[y],C=()=>w(v()),I=Object.assign(p?x.then(C):A&&!k?Promise.resolve(_):Promise.all([k,x]).then(C),{arg:s,requestId:E,subscriptionOptions:f,queryCacheKey:y,abort:S,async unwrap(){const e=await I;if(e.isError)throw e.error;return e.data},refetch:()=>h(a(s,{subscribe:!1,forceRefetch:!0})),unsubscribe(){c&&h(u({queryCacheKey:y,requestId:E}))},updateSubscriptionOptions(e){I.subscriptionOptions=e,h(l({endpointName:n,requestId:E,queryCacheKey:y,options:e}))}});if(!k&&!A&&!p){const e=i.get(h)||{};e[y]=I,i.set(h,e),I.then((()=>{delete e[y],Ah(e)||i.delete(h)}))}return I};return a},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:o}={})=>(i,u)=>{const l=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:o}),c=i(l),{requestId:d,abort:f,unwrap:p}=c,m=$Y(c.unwrap().then((e=>({data:e}))),(e=>({error:e}))),h=Object.assign(m,{arg:c.arg,requestId:d,abort:f,unwrap:p,reset:()=>{i(s({requestId:d,fixedCacheKey:o}))}}),v=a.get(i)||{};return a.set(i,v),v[d]=h,h.then((()=>{delete v[d],Ah(v)||a.delete(i)})),o&&(v[o]=h,h.then((()=>{v[o]===h&&(delete v[o],Ah(v)||a.delete(i))}))),h}},getRunningQueryThunk:function(t,n){return r=>{var a;const u=o.endpointDefinitions[t],s=e({queryArgs:n,endpointDefinition:u,endpointName:t});return null==(a=i.get(r))?void 0:a[s]}},getRunningMutationThunk:function(e,t){return e=>{var n;return null==(n=a.get(e))?void 0:n[t]}},getRunningQueriesThunk:function(){return e=>Object.values(i.get(e)||{}).filter(yA)},getRunningMutationsThunk:function(){return e=>Object.values(a.get(e)||{}).filter(yA)}}}function wA(e){return e}function RY({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:o,assertTagType:i}){const a=async(e,{signal:r,abort:o,rejectWithValue:i,fulfillWithValue:a,dispatch:s,getState:l,extra:c})=>{const d=n[e.endpointName];try{let n,i=wA;const f={signal:r,abort:o,dispatch:s,getState:l,extra:c,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?u(e,l()):void 0},p="query"===e.type?e[Iv]:void 0;if(p?n=p():d.query?(n=await t(d.query(e.originalArgs),f,d.extraOptions),d.transformResponse&&(i=d.transformResponse)):n=await d.queryFn(e.originalArgs,f,d.extraOptions,(e=>t(e,f,d.extraOptions))),typeof process<"u"&&pY.NODE_ENV,n.error)throw new gA(n.error,n.meta);return a(await i(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[Ym]:!0})}catch(t){let n=t;if(n instanceof gA){let t=wA;d.query&&d.transformErrorResponse&&(t=d.transformErrorResponse);try{return i(await t(n.value,n.meta,e.originalArgs),{baseQueryMeta:n.meta,[Ym]:!0})}catch(e){n=e}}throw console.error(n),n}};function u(t,n){var r,o,i;const a=null==(o=null==(r=n[e])?void 0:r.queries)?void 0:o[t.queryCacheKey],u=null==(i=n[e])?void 0:i.config.refetchOnMountOrArgChange,s=null==a?void 0:a.fulfilledTimeStamp,l=t.forceRefetch??(t.subscribe&&u);return!!l&&(!0===l||(Number(new Date)-Number(s))/1e3>=l)}const s=T$(`${e}/executeQuery`,a,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[Ym]:!0}),condition(t,{getState:r}){var o,i,a;const s=r(),l=null==(i=null==(o=s[e])?void 0:o.queries)?void 0:i[t.queryCacheKey],c=null==l?void 0:l.fulfilledTimeStamp,d=t.originalArgs,f=null==l?void 0:l.originalArgs,p=n[t.endpointName];return!!sE(t)||"pending"!==(null==l?void 0:l.status)&&(!!(u(t,s)||D3(p)&&null!=(a=null==p?void 0:p.forceRefetch)&&a.call(p,{currentArg:d,previousArg:f,endpointState:l,state:s}))||!c)},dispatchConditionRejection:!0}),l=T$(`${e}/executeMutation`,a,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[Ym]:!0})});function c(e){return t=>{var n,r;return(null==(r=null==(n=null==t?void 0:t.meta)?void 0:n.arg)?void 0:r.endpointName)===e}}return{queryThunk:s,mutationThunk:l,prefetch:(e,t,n)=>(r,i)=>{const a=(e=>"force"in e)(n)&&n.force,u=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,s=(n=!0)=>{const r={forceRefetch:n,isPrefetch:!0};return o.endpoints[e].initiate(t,r)},l=o.endpoints[e].select(t)(i());if(a)r(s());else if(u){const e=null==l?void 0:l.fulfilledTimeStamp;if(!e)return void r(s());(Number(new Date)-Number(new Date(e)))/1e3>=u&&r(s())}else r(s(!1))},updateQueryData:(e,t,n,r=!0)=>(i,a)=>{const u=o.endpoints[e].select(t)(a());let s,l={patches:[],inversePatches:[],undo:()=>i(o.util.patchQueryData(e,t,l.inversePatches,r))};if("uninitialized"===u.status)return l;if("data"in u)if(gs(u.data)){const[e,t,r]=r2(u.data,n);l.patches.push(...t),l.inversePatches.push(...r),s=e}else s=n(u.data),l.patches.push({op:"replace",path:[],value:s}),l.inversePatches.push({op:"replace",path:[],value:u.data});return i(o.util.patchQueryData(e,t,l.patches,r)),l},upsertQueryData:(e,t,n)=>r=>r(o.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[Iv]:()=>({data:n})})),patchQueryData:(e,t,a,u)=>(s,l)=>{const c=n[e],d=r({queryArgs:t,endpointDefinition:c,endpointName:e});if(s(o.internalActions.queryResultPatched({queryCacheKey:d,patches:a})),!u)return;const f=o.endpoints[e].select(t)(l()),p=ZC(c.providesTags,f.data,void 0,t,{},i);s(o.internalActions.updateProvidedBy({queryCacheKey:d,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:ov(_E(e),c(t)),matchFulfilled:ov(fd(e),c(t)),matchRejected:ov(Nh(e),c(t))}}}}function N3(e,t,n,r){return ZC(n[e.meta.arg.endpointName][t],fd(e)?e.payload:void 0,wy(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function Bg(e,t,n){const r=e[t];r&&n(r)}function Rv(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function _A(e,t,n){const r=e[Rv(t)];r&&n(r)}var Km={};function PY({reducerPath:e,queryThunk:t,mutationThunk:n,context:{endpointDefinitions:r,apiUid:o,extractRehydrationInfo:i,hasRehydrationInfo:a},assertTagType:u,config:s}){const l=Un(`${e}/resetApiState`),c=So({name:`${e}/queries`,initialState:Km,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:Um()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){Bg(e,t,(e=>{e.data=C$(e.data,n.concat())}))},prepare:Um()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{var r;const o=sE(n);e[r=n.queryCacheKey]??(e[r]={status:"uninitialized",endpointName:n.endpointName}),Bg(e,n.queryCacheKey,(e=>{e.status="pending",e.requestId=o&&e.requestId?e.requestId:t.requestId,void 0!==n.originalArgs&&(e.originalArgs=n.originalArgs),e.startedTimeStamp=t.startedTimeStamp}))})).addCase(t.fulfilled,((e,{meta:t,payload:n})=>{Bg(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!sE(t.arg))return;const{merge:o}=r[t.arg.endpointName];if(e.status="fulfilled",o)if(void 0!==e.data){const{fulfilledTimeStamp:r,arg:i,baseQueryMeta:a,requestId:u}=t;let s=Ov(e.data,(e=>o(e,n,{arg:i.originalArgs,baseQueryMeta:a,fulfilledTimeStamp:r,requestId:u})));e.data=s}else e.data=n;else e.data=r[t.arg.endpointName].structuralSharing??1?O3(vs(e.data)?QL(e.data):e.data,n):n;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp}))})).addCase(t.rejected,((e,{meta:{condition:t,arg:n,requestId:r},error:o,payload:i})=>{Bg(e,n.queryCacheKey,(e=>{if(!t){if(e.requestId!==r)return;e.status="rejected",e.error=i??o}}))})).addMatcher(a,((e,t)=>{const{queries:n}=i(t);for(const[t,r]of Object.entries(n))("fulfilled"===(null==r?void 0:r.status)||"rejected"===(null==r?void 0:r.status))&&(e[t]=r)}))}}),d=So({name:`${e}/mutations`,initialState:Km,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=Rv(t);n in e&&delete e[n]},prepare:Um()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:o}})=>{r.track&&(e[Rv(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:o})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&_A(e,n,(e=>{e.requestId===n.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)}))})).addCase(n.rejected,((e,{payload:t,error:n,meta:r})=>{r.arg.track&&_A(e,r,(e=>{e.requestId===r.requestId&&(e.status="rejected",e.error=t??n)}))})).addMatcher(a,((e,t)=>{const{mutations:n}=i(t);for(const[t,r]of Object.entries(n))("fulfilled"===(null==r?void 0:r.status)||"rejected"===(null==r?void 0:r.status))&&t!==(null==r?void 0:r.requestId)&&(e[t]=r)}))}}),f=So({name:`${e}/invalidation`,initialState:Km,reducers:{updateProvidedBy:{reducer(e,t){var n,r;const{queryCacheKey:o,providedTags:i}=t.payload;for(const t of Object.values(e))for(const e of Object.values(t)){const t=e.indexOf(o);-1!==t&&e.splice(t,1)}for(const{type:t,id:a}of i){const i=(n=e[t]??(e[t]={}))[r=a||"__internal_without_id"]??(n[r]=[]);i.includes(o)||i.push(o)}},prepare:Um()}},extraReducers(e){e.addCase(c.actions.removeQueryResult,((e,{payload:{queryCacheKey:t}})=>{for(const n of Object.values(e))for(const e of Object.values(n)){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}})).addMatcher(a,((e,t)=>{var n,r;const{provided:o}=i(t);for(const[t,i]of Object.entries(o))for(const[o,a]of Object.entries(i)){const i=(n=e[t]??(e[t]={}))[r=o||"__internal_without_id"]??(n[r]=[]);for(const e of a)i.includes(e)||i.push(e)}})).addMatcher(dd(fd(t),wy(t)),((e,t)=>{const n=N3(t,"providesTags",r,u),{queryCacheKey:o}=t.meta.arg;f.caseReducers.updateProvidedBy(e,f.actions.updateProvidedBy({queryCacheKey:o,providedTags:n}))}))}}),p=So({name:`${e}/subscriptions`,initialState:Km,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),m=So({name:`${e}/internalSubscriptions`,initialState:Km,reducers:{subscriptionsUpdated:{reducer:(e,t)=>C$(e,t.payload),prepare:Um()}}}),h=So({name:`${e}/config`,initialState:{online:wY(),focused:_Y(),middlewareRegistered:!1,...s},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&o===t||"conflict"}},extraReducers:e=>{e.addCase(JC,(e=>{e.online=!0})).addCase(k3,(e=>{e.online=!1})).addCase(XC,(e=>{e.focused=!0})).addCase(A3,(e=>{e.focused=!1})).addMatcher(a,(e=>({...e})))}}),v=QA({queries:c.reducer,mutations:d.reducer,provided:f.reducer,subscriptions:m.reducer,config:h.reducer});return{reducer:(e,t)=>v(l.match(t)?void 0:e,t),actions:{...h.actions,...c.actions,...p.actions,...m.actions,...d.actions,...f.actions,resetApiState:l}}}var Bf=Symbol.for("RTKQ/skipToken"),M3={status:"uninitialized"},bA=Ov(M3,(()=>{})),xA=Ov(M3,(()=>{}));function TY({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>bA,o=e=>xA;return{buildQuerySelector:function(t,o){return u=>{const s=e({queryArgs:u,endpointDefinition:o,endpointName:t});return n(u===Bf?r:e=>{var t,n;return(null==(n=null==(t=a(e))?void 0:t.queries)?void 0:n[s])??bA},i)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?Rv(e)??Bf:e,n(t===Bf?o:e=>{var n,r;return(null==(r=null==(n=a(e))?void 0:n.mutations)?void 0:r[t])??xA},i)}},selectInvalidatedBy:function(e,n){const r=e[t],o=new Set;for(const e of n.map(aE)){const t=r.provided[e.type];if(!t)continue;let n=(void 0!==e.id?t[e.id]:pA(Object.values(t)))??[];for(const e of n)o.add(e)}return pA(Array.from(o.values()).map((e=>{const t=r.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]})))},selectCachedArgsForQuery:function(e,n){return Object.values(e[t].queries).filter((e=>(null==e?void 0:e.endpointName)===n&&"uninitialized"!==e.status)).map((e=>e.originalArgs))}};function i(e){return{...e,...hY(e.status)}}function a(e){return e[t]}}var Eh=WeakMap?new WeakMap:void 0,SA=({endpointName:e,queryArgs:t})=>{let n="";const r=null==Eh?void 0:Eh.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>cd(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));cd(t)&&(null==Eh||Eh.set(t,e)),n=e}return`${e}(${n})`};function OY(...e){return function(t){const n=mv((e=>{var n;return null==(n=t.extractRehydrationInfo)?void 0:n.call(t,e,{reducerPath:t.reducerPath??"api"})})),r={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:n,serializeQueryArgs(e){let n=SA;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:SA({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},o={endpointDefinitions:{},batch(e){e()},apiUid:gy(),extractRehydrationInfo:n,hasRehydrationInfo:mv((e=>null!=n(e)))},i={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"})});for(const[n,r]of Object.entries(t))if(!0!==e.overrideExisting&&n in o.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error(Co(39))}else{o.endpointDefinitions[n]=r;for(const e of a)e.injectEndpoint(n,r)}return i},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const t of e)r.tagTypes.includes(t)||r.tagTypes.push(t);if(t)for(const[e,n]of Object.entries(t))"function"==typeof n?n(o.endpointDefinitions[e]):Object.assign(o.endpointDefinitions[e]||{},n);return i}},a=e.map((e=>e.init(i,r,o)));return i.injectEndpoints({endpoints:t.endpoints})}}function AY(e){for(let t in e)return!1;return!0}var kY=2147482.647,DY=({reducerPath:e,api:t,context:n,internalState:r})=>{const{removeQueryResult:o,unsubscribeQueryResult:i}=t.internalActions;function a(e){const t=r.currentSubscriptions[e];return!!t&&!AY(t)}const u={};function s(e,t,r,i){const s=n.endpointDefinitions[t],l=(null==s?void 0:s.keepUnusedDataFor)??i.keepUnusedDataFor;if(l===1/0)return;const c=Math.max(0,Math.min(l,kY));if(!a(e)){const t=u[e];t&&clearTimeout(t),u[e]=setTimeout((()=>{a(e)||r.dispatch(o({queryCacheKey:e})),delete u[e]}),1e3*c)}}return(r,o,a)=>{var l;if(i.match(r)){const t=o.getState()[e],{queryCacheKey:n}=r.payload;s(n,null==(l=t.queries[n])?void 0:l.endpointName,o,t.config)}if(t.util.resetApiState.match(r))for(const[e,t]of Object.entries(u))t&&clearTimeout(t),delete u[e];if(n.hasRehydrationInfo(r)){const t=o.getState()[e],{queries:i}=n.extractRehydrationInfo(r);for(const[e,n]of Object.entries(i))s(e,null==n?void 0:n.endpointName,o,t.config)}}},NY=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:o,api:i,assertTagType:a,refetchQuery:u,internalState:s})=>{const{removeQueryResult:l}=i.internalActions,c=dd(fd(r),wy(r)),d=dd(fd(r,o),Nh(r,o));let f=[];function p(n,r){const o=r.getState(),a=o[e];if(f.push(...n),"delayed"===a.config.invalidationBehavior&&function(e){var t,n;for(const n in e.queries)if("pending"===(null==(t=e.queries[n])?void 0:t.status))return!0;for(const t in e.mutations)if("pending"===(null==(n=e.mutations[t])?void 0:n.status))return!0;return!1}(a))return;const c=f;if(f=[],0===c.length)return;const d=i.util.selectInvalidatedBy(o,c);t.batch((()=>{const e=Array.from(d.values());for(const{queryCacheKey:t}of e){const e=a.queries[t],n=s.currentSubscriptions[t]??{};e&&(0===Ah(n)?r.dispatch(l({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(u(e,t)))}}))}return(e,t)=>{c(e)?p(N3(e,"invalidatesTags",n,a),t):d(e)?p([],t):i.util.invalidateTags.match(e)&&p(ZC(e.payload,void 0,void 0,void 0,void 0,a),t)}},MY=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:o})=>{const i={};function a({queryCacheKey:t},n){const u=n.getState()[e],s=u.queries[t],c=o.currentSubscriptions[t];if(!s||"uninitialized"===s.status)return;const{lowestPollingInterval:d,skipPollingIfUnfocused:f}=l(c);if(!Number.isFinite(d))return;const p=i[t];null!=p&&p.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const m=Date.now()+d;i[t]={nextPollTimestamp:m,pollingInterval:d,timeout:setTimeout((()=>{(u.config.focused||!f)&&n.dispatch(r(s,t)),a({queryCacheKey:t},n)}),d)}}function u({queryCacheKey:t},n){const r=n.getState()[e].queries[t],u=o.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:c}=l(u);if(!Number.isFinite(c))return void s(t);const d=i[t],f=Date.now()+c;(!d||f<d.nextPollTimestamp)&&a({queryCacheKey:t},n)}function s(e){const t=i[e];null!=t&&t.timeout&&clearTimeout(t.timeout),delete i[e]}function l(e={}){let t=!1,n=Number.POSITIVE_INFINITY;for(let r in e)e[r].pollingInterval&&(n=Math.min(e[r].pollingInterval,n),t=e[r].skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,r)=>{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&u(e.payload,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&u(e.meta.arg,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&a(e.meta.arg,r),n.util.resetApiState.match(e)&&function(){for(const e of Object.keys(i))s(e)}()}},LY=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:o})=>{const{removeQueryResult:i}=n.internalActions;function a(n,a){const u=n.getState()[e],s=u.queries,l=o.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(l)){const t=s[e],o=l[e];o&&t&&((Object.values(o).some((e=>!0===e[a]))||Object.values(o).every((e=>void 0===e[a]))&&u.config[a])&&(0===Ah(o)?n.dispatch(i({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t,e))))}}))}return(e,t)=>{XC.match(e)&&a(t,"refetchOnFocus"),JC.match(e)&&a(t,"refetchOnReconnect")}},EA=new Error("Promise never resolved before cacheEntryRemoved."),FY=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:o,internalState:i})=>{const a=TS(r),u=TS(o),s=fd(r,o),l={};function c(t,r,o,i,a){const u=n.endpointDefinitions[t],s=null==u?void 0:u.onCacheEntryAdded;if(!s)return;let c={};const d=new Promise((e=>{c.cacheEntryRemoved=e})),f=Promise.race([new Promise((e=>{c.valueResolved=e})),d.then((()=>{throw EA}))]);f.catch((()=>{})),l[o]=c;const p=e.endpoints[t].select("query"===u.type?r:o),m=i.dispatch(((e,t,n)=>n)),h={...i,getCacheEntry:()=>p(i.getState()),requestId:a,extra:m,updateCachedData:"query"===u.type?n=>i.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:f,cacheEntryRemoved:d},v=s(r,h);Promise.resolve(v).catch((e=>{if(e!==EA)throw e}))}return(n,i,d)=>{const f=function(t){return a(t)?t.meta.arg.queryCacheKey:u(t)?t.meta.arg.fixedCacheKey??t.meta.requestId:e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?Rv(t.payload):""}(n);if(r.pending.match(n)){const e=d[t].queries[f],r=i.getState()[t].queries[f];!e&&r&&c(n.meta.arg.endpointName,n.meta.arg.originalArgs,f,i,n.meta.requestId)}else if(o.pending.match(n))i.getState()[t].mutations[f]&&c(n.meta.arg.endpointName,n.meta.arg.originalArgs,f,i,n.meta.requestId);else if(s(n)){const e=l[f];null!=e&&e.valueResolved&&(e.valueResolved({data:n.payload,meta:n.meta.baseQueryMeta}),delete e.valueResolved)}else if(e.internalActions.removeQueryResult.match(n)||e.internalActions.removeMutationResult.match(n)){const e=l[f];e&&(delete l[f],e.cacheEntryRemoved())}else if(e.util.resetApiState.match(n))for(const[e,t]of Object.entries(l))delete l[e],t.cacheEntryRemoved()}},BY=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const o=_E(n,r),i=Nh(n,r),a=fd(n,r),u={};return(n,r)=>{var s,l;if(o(n)){const{requestId:o,arg:{endpointName:i,originalArgs:a}}=n.meta,s=t.endpointDefinitions[i],l=null==s?void 0:s.onQueryStarted;if(l){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));n.catch((()=>{})),u[o]=t;const c=e.endpoints[i].select("query"===s.type?a:o),d=r.dispatch(((e,t,n)=>n)),f={...r,getCacheEntry:()=>c(r.getState()),requestId:o,extra:d,updateCachedData:"query"===s.type?t=>r.dispatch(e.util.updateQueryData(i,a,t)):void 0,queryFulfilled:n};l(a,f)}}else if(a(n)){const{requestId:e,baseQueryMeta:t}=n.meta;null==(s=u[e])||s.resolve({data:n.payload,meta:t}),delete u[e]}else if(i(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;null==(l=u[e])||l.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete u[e]}}},jY=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},VY=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let o=null,i=null;const{updateSubscriptionOptions:a,unsubscribeQueryResult:u}=e.internalActions,s=()=>n.currentSubscriptions,l={getSubscriptions:s,getSubscriptionCount:e=>Ah(s()[e]??{}),isRequestSubscribed:(e,t)=>{var n;const r=s();return!(null==(n=null==r?void 0:r[e])||!n[t])}};return(s,c)=>{if(o||(o=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(s))return o=n.currentSubscriptions={},i=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(s))return[!1,l];const d=((n,r)=>{var o,i,s;if(a.match(r)){const{queryCacheKey:e,requestId:t,options:i}=r.payload;return null!=(o=null==n?void 0:n[e])&&o[t]&&(n[e][t]=i),!0}if(u.match(r)){const{queryCacheKey:e,requestId:t}=r.payload;return n[e]&&delete n[e][t],!0}if(e.internalActions.removeQueryResult.match(r))return delete n[r.payload.queryCacheKey],!0;if(t.pending.match(r)){const{meta:{arg:e,requestId:t}}=r,o=n[i=e.queryCacheKey]??(n[i]={});return o[`${t}_running`]={},e.subscribe&&(o[t]=e.subscriptionOptions??o[t]??{}),!0}let l=!1;if(t.fulfilled.match(r)||t.rejected.match(r)){const e=n[r.meta.arg.queryCacheKey]||{},t=`${r.meta.requestId}_running`;l||(l=!!e[t]),delete e[t]}if(t.rejected.match(r)){const{meta:{condition:e,arg:t,requestId:o}}=r;if(e&&t.subscribe){const e=n[s=t.queryCacheKey]??(n[s]={});e[o]=t.subscriptionOptions??e[o]??{},l=!0}}return l})(n.currentSubscriptions,s);let f=!0;if(d){i||(i=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=r2(o,(()=>t));c.next(e.internalActions.subscriptionsUpdated(r)),o=t,i=null}),500));const a="string"==typeof s.type&&!!s.type.startsWith(r),u=t.rejected.match(s)&&s.meta.condition&&!!s.meta.arg.subscribe;f=!a&&!u}return[f,!1]}};function UY(e){const{reducerPath:t,queryThunk:n,api:r,context:o}=e,{apiUid:i}=o,a={invalidateTags:Un(`${t}/invalidateTags`)},u=e=>e.type.startsWith(`${t}/`),s=[jY,DY,NY,MY,FY,BY];return{middleware:n=>{let a=!1;const c={...e,internalState:{currentSubscriptions:{}},refetchQuery:l,isThisApiSliceAction:u},d=s.map((e=>e(c))),f=VY(c),p=LY(c);return e=>s=>{if(!YA(s))return e(s);a||(a=!0,n.dispatch(r.internalActions.middlewareRegistered(i)));const l={...n,next:e},c=n.getState(),[m,h]=f(s,l,c);let v;if(v=m?e(s):h,n.getState()[t]&&(p(s,l,c),u(s)||o.hasRehydrationInfo(s)))for(let e of d)e(s,l,c);return v}},actions:a};function l(e,t,r={}){return n({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t,...r})}}function od(e,...t){return Object.assign(e,...t)}var CA=Symbol(),zY=({createSelector:e=Zn}={})=>({name:CA,init(t,{baseQuery:n,tagTypes:r,reducerPath:o,serializeQueryArgs:i,keepUnusedDataFor:a,refetchOnMountOrArgChange:u,refetchOnFocus:s,refetchOnReconnect:l,invalidationBehavior:c},d){o5();const f=e=>e;Object.assign(t,{reducerPath:o,endpoints:{},internalActions:{onOnline:JC,onOffline:k3,onFocus:XC,onFocusLost:A3},util:{}});const{queryThunk:p,mutationThunk:m,patchQueryData:h,updateQueryData:v,upsertQueryData:g,prefetch:y,buildMatchThunkActions:b}=RY({baseQuery:n,reducerPath:o,context:d,api:t,serializeQueryArgs:i,assertTagType:f}),{reducer:w,actions:x}=PY({context:d,queryThunk:p,mutationThunk:m,reducerPath:o,assertTagType:f,config:{refetchOnFocus:s,refetchOnReconnect:l,refetchOnMountOrArgChange:u,keepUnusedDataFor:a,reducerPath:o,invalidationBehavior:c}});od(t.util,{patchQueryData:h,updateQueryData:v,upsertQueryData:g,prefetch:y,resetApiState:x.resetApiState}),od(t.internalActions,x);const{middleware:_,actions:E}=UY({reducerPath:o,context:d,queryThunk:p,mutationThunk:m,api:t,assertTagType:f});od(t.util,E),od(t,{reducer:w,middleware:_});const{buildQuerySelector:S,buildMutationSelector:A,selectInvalidatedBy:k,selectCachedArgsForQuery:C}=TY({serializeQueryArgs:i,reducerPath:o,createSelector:e});od(t.util,{selectInvalidatedBy:k,selectCachedArgsForQuery:C});const{buildInitiateQuery:I,buildInitiateMutation:P,getRunningMutationThunk:R,getRunningMutationsThunk:O,getRunningQueriesThunk:T,getRunningQueryThunk:N}=IY({queryThunk:p,mutationThunk:m,api:t,serializeQueryArgs:i,context:d});return od(t.util,{getRunningMutationThunk:R,getRunningMutationsThunk:O,getRunningQueryThunk:N,getRunningQueriesThunk:T}),{name:CA,injectEndpoint(e,n){var r;const o=t;(r=o.endpoints)[e]??(r[e]={}),D3(n)?od(o.endpoints[e],{name:e,select:S(e,n),initiate:I(e,n)},b(p,e)):EY(n)&&od(o.endpoints[e],{name:e,select:A(),initiate:P(e)},b(m,e))}}}});function WY(e){return"query"===e.type}function qY(e){return"mutation"===e.type}function jg(e,...t){return Object.assign(e,...t)}function hS(e){return e.replace(e[0],e[0].toUpperCase())}var Ch=WeakMap?new WeakMap:void 0,GY=({endpointName:e,queryArgs:t})=>{let n="";const r=null==Ch?void 0:Ch.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>cd(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));cd(t)&&(null==Ch||Ch.set(t,e)),n=e}return`${e}(${n})`},mS=Symbol();function $A(e,t,n,r){const o=m.useMemo((()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e})),[e,t,n,r]),i=m.useRef(o);return m.useEffect((()=>{i.current.serialized!==o.serialized&&(i.current=o)}),[o]),i.current.serialized===o.serialized?i.current.queryArgs:e}function vS(e){const t=m.useRef(e);return m.useEffect((()=>{iv(t.current,e)||(t.current=e)}),[e]),iv(t.current,e)?t.current:e}var HY=typeof window<"u"&&window.document&&window.document.createElement?m.useLayoutEffect:m.useEffect,KY=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:T3.pending}:e;function QY({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:o},unstable__sideEffectsInRender:i,createSelector:a},serializeQueryArgs:u,context:s}){const l=i?e=>e():m.useEffect;return{buildQueryHooks:function(i){const d=(t,{refetchOnReconnect:r,refetchOnFocus:o,refetchOnMountOrArgChange:a,skip:u=!1,pollingInterval:c=0,skipPollingIfUnfocused:d=!1}={})=>{const{initiate:f}=e.endpoints[i],p=n(),h=m.useRef();if(!h.current){const t=p(e.internalActions.internal_getRTKQSubscriptions());h.current=t}const v=$A(u?Bf:t,GY,s.endpointDefinitions[i],i),g=vS({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:c,skipPollingIfUnfocused:d}),y=m.useRef(!1),b=m.useRef();let{queryCacheKey:w,requestId:x}=b.current||{},_=!1;w&&x&&(_=h.current.isRequestSubscribed(w,x));const E=!_&&y.current;return l((()=>{y.current=_})),l((()=>{E&&(b.current=void 0)}),[E]),l((()=>{var e;const t=b.current;if(v===Bf)return null==t||t.unsubscribe(),void(b.current=void 0);const n=null==(e=b.current)?void 0:e.subscriptionOptions;if(t&&t.arg===v)g!==n&&t.updateSubscriptionOptions(g);else{null==t||t.unsubscribe();const e=p(f(v,{subscriptionOptions:g,forceRefetch:a}));b.current=e}}),[p,f,a,v,g,E]),m.useEffect((()=>()=>{var e;null==(e=b.current)||e.unsubscribe(),b.current=void 0}),[]),m.useMemo((()=>({refetch:()=>{var e;if(!b.current)throw new Error(Co(38));return null==(e=b.current)?void 0:e.refetch()}})),[])},f=({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:a=0,skipPollingIfUnfocused:u=!1}={})=>{const{initiate:s}=e.endpoints[i],c=n(),[d,f]=m.useState(mS),p=m.useRef(),h=vS({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:a,skipPollingIfUnfocused:u});l((()=>{var e,t;const n=null==(e=p.current)?void 0:e.subscriptionOptions;h!==n&&(null==(t=p.current)||t.updateSubscriptionOptions(h))}),[h]);const v=m.useRef(h);l((()=>{v.current=h}),[h]);const g=m.useCallback((function(e,n=!1){let r;return t((()=>{var t;null==(t=p.current)||t.unsubscribe(),p.current=r=c(s(e,{subscriptionOptions:v.current,forceRefetch:!n})),f(e)})),r}),[c,s]);return m.useEffect((()=>()=>{var e;null==(e=null==p?void 0:p.current)||e.unsubscribe()}),[]),m.useEffect((()=>{d!==mS&&!p.current&&g(d,!0)}),[d,g]),m.useMemo((()=>[g,d]),[g,d])},p=(t,{skip:n=!1,selectFromResult:l}={})=>{const{select:d}=e.endpoints[i],f=$A(n?Bf:t,u,s.endpointDefinitions[i],i),p=m.useRef(),h=m.useMemo((()=>a([d(f),(e,t)=>t,e=>f],c,{memoizeOptions:{resultEqualityCheck:iv}})),[d,f]),v=m.useMemo((()=>l?a([h],l,{devModeChecks:{identityFunctionCheck:"never"}}):h),[h,l]),g=r((e=>v(e,p.current)),iv),y=o(),b=h(y.getState(),p.current);return HY((()=>{p.current=b}),[b]),g};return{useQueryState:p,useQuerySubscription:d,useLazyQuerySubscription:f,useLazyQuery(e){const[t,n]=f(e),r=p(n,{...e,skip:n===mS}),o=m.useMemo((()=>({lastArg:n})),[n]);return m.useMemo((()=>[t,r,o]),[t,r,o])},useQuery(e,t){const n=d(e,t),r=p(e,{selectFromResult:e===Bf||null!=t&&t.skip?void 0:KY,...t}),{data:o,status:i,isLoading:a,isSuccess:u,isError:s,error:l}=r;return m.useDebugValue({data:o,status:i,isLoading:a,isSuccess:u,isError:s,error:l}),m.useMemo((()=>({...r,...n})),[r,n])}}},buildMutationHook:function(o){return({selectFromResult:i,fixedCacheKey:u}={})=>{const{select:s,initiate:l}=e.endpoints[o],c=n(),[d,f]=m.useState();m.useEffect((()=>()=>{null!=d&&d.arg.fixedCacheKey||null==d||d.reset()}),[d]);const p=m.useCallback((function(e){const t=c(l(e,{fixedCacheKey:u}));return f(t),t}),[c,l,u]),{requestId:h}=d||{},v=m.useMemo((()=>s({fixedCacheKey:u,requestId:null==d?void 0:d.requestId})),[u,d,s]),g=m.useMemo((()=>i?a([v],i):v),[i,v]),y=r(g,iv),b=null==u?null==d?void 0:d.arg.originalArgs:void 0,w=m.useCallback((()=>{t((()=>{d&&f(void 0),u&&c(e.internalActions.removeMutationResult({requestId:h,fixedCacheKey:u}))}))}),[c,u,d,h]),{endpointName:x,data:_,status:E,isLoading:S,isSuccess:A,isError:k,error:C}=y;m.useDebugValue({endpointName:x,data:_,status:E,isLoading:S,isSuccess:A,isError:k,error:C});const I=m.useMemo((()=>({...y,originalArgs:b,reset:w})),[y,b,w]);return m.useMemo((()=>[p,I]),[p,I])}},usePrefetch:function(t,r){const o=n(),i=vS(r);return m.useCallback(((n,r)=>o(e.util.prefetch(t,n,{...i,...r}))),[t,o,i])}};function c(e,t,n){if(null!=t&&t.endpointName&&e.isUninitialized){const{endpointName:e}=t,r=s.endpointDefinitions[e];u({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===u({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:null==t?void 0:t.data;void 0===r&&(r=e.data);const o=void 0!==r,i=e.isLoading,a=!o&&i,l=e.isSuccess||i&&o;return{...e,data:r,currentData:e.data,isFetching:i,isLoading:a,isSuccess:l}}}var YY=Symbol(),XY=({batch:e=c6,hooks:t={useDispatch:l6,useSelector:_y,useStore:v2},createSelector:n=Zn,unstable__sideEffectsInRender:r=!1,...o}={})=>({name:YY,init(o,{serializeQueryArgs:i},a){const u=o,{buildQueryHooks:s,buildMutationHook:l,usePrefetch:c}=QY({api:o,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:i,context:a});return jg(u,{usePrefetch:c}),jg(a,{batch:e}),{injectEndpoint(e,t){if(WY(t)){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:i,useQuerySubscription:a}=s(e);jg(u.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:i,useQuerySubscription:a}),o[`use${hS(e)}Query`]=t,o[`useLazy${hS(e)}Query`]=n}else if(qY(t)){const t=l(e);jg(u.endpoints[e],{useMutation:t}),o[`use${hS(e)}Mutation`]=t}}}}}),JY=OY(zY(),XY());const ZY=e=>{CE.removeToken(),e(CK()),vE("user").clear()},eX=e=>async(t,n,r)=>{const o=await e(t,n,r);return o.error&&[401].includes(o.error.status)&&ZY(n.dispatch),o},tX=async(e,t=2e3)=>{for(;!e();)await new Promise((e=>setTimeout(e,t)))},nX=5,rX=e=>t=>!!e&&t.includes(e.status),IA=e=>new Promise((t=>setTimeout(t,1e3*e))),oX=e=>async(t,n,r)=>{const o=(null==r?void 0:r.maxRetries)??5;await tX((()=>n.getState().network.isOnline));let i=0;const a=async()=>{var u,s,l,c;const d=await e(t,n,r),f=d.error;if(i>=o)return d;i>0&&await IA(Math.pow(2,i)),i++;const p=rX(f);switch(!0){case"mutation"===n.type:return d;case!navigator.onLine:case p([408,404]):case f&&"FETCH_ERROR"===(null==f?void 0:f.status):case f&&f.status>=500:return await a();case 429===(null==(u=null==d?void 0:d.error)?void 0:u.status):{const e=null==(c=null==(l=null==(s=d.meta)?void 0:s.response)?void 0:l.headers)?void 0:c.get("Retry-After");return await IA(+(e||"0")),await a()}default:return d}};return await a()},RA=Un("requestOpenapiHydrationCacheHas"),PA=Un("requestOpenapiHydrationCacheAdd"),TA=Un("requestOpenapiHydrationCacheRemove"),OA=Un("requestOpenapiHydrationCacheClear"),AA=Un("sendOpenapiHydrationCacheResponse"),iX=()=>Math.random().toString(16).slice(2),aX=()=>{try{return!!Ih()&&window.location.origin!==window.parent.location.origin}catch{return!0}},Vg=()=>{const e=window.parent;return e.__wlsy_openapiHydrationCache||(e.__wlsy_openapiHydrationCache=new Set),e.__wlsy_openapiHydrationCache},Ug=new Set,sX=()=>{const e=aX(),t=new Map,n=(()=>{let n=null;return()=>{!e||n||(n=p3({sourceWindow:window.parent,onMessage:e=>{if(!AA.match(e))return;const{id:n,value:r,success:o,error:i}=e.payload,a=t.get(n);a&&(t.delete(n),window.clearTimeout(a.timeoutId),o?a.resolve(r):a.reject(new Error(i||"Unknown error")))},whitelist:[AA]}))}})(),r=(e,r)=>{const o=iX();return new Promise(((i,a)=>{const u=window.setTimeout((()=>{t.delete(o),a(new Error("OpenAPI hydration cache request timed out"))}),8e3);t.set(o,{resolve:i,reject:a,timeoutId:u}),(e=>{n(),f3({action:e,windowElement:window.parent,whitelist:[RA,PA,TA,OA]})})(e({id:o,...r}))}))};return{has:async t=>e?!!await r(RA,{key:t}):(t=>Ih()&&!e?Vg().has(t):Ug.has(t))(t),add:async t=>{e?await r(PA,{key:t}):(t=>{!Ih()||e?Ug.add(t):Vg().add(t)})(t)},remove:async t=>{e?await r(TA,{key:t}):(t=>{!Ih()||e?Ug.delete(t):Vg().delete(t)})(t)},clear:async()=>{e?await r(OA,{}):!Ih()||e?Ug.clear():Vg().clear()}}},uX=e=>"object"==typeof e&&null!==e,kA=sX(),lX=e=>async(t,n,r)=>{var o,i,a,u;if("mutation"===n.type)return e(t,n,r);const s=n.endpoint;if(!s||!(null!=r&&r.initialDataKey||null!=r&&r.initialDataKeyResolver||null!=r&&r.initialDataResolver))return e(t,n,r);const l=(null==(o=null==r?void 0:r.initialDataKeyResolver)?void 0:o.call(r,{endpoint:s,requestArgs:t}))??(null==r?void 0:r.initialDataKey),c=(null==(i=null==r?void 0:r.hydrationCacheKeyResolver)?void 0:i.call(r,{endpoint:s,requestArgs:t,initialDataKey:l}))??(l?`initialDataKey:${l}`:s);if(await kA.has(c))return e(t,n,r);const d=null==(a=n.getState().initialState)?void 0:a.value,f=(null==(u=null==r?void 0:r.initialDataResolver)?void 0:u.call(r,{endpoint:s,requestArgs:t,initialState:d}))??(()=>{if(l)return uX(d)?d[l]:void 0})();return void 0===f?e(t,n,r):(await kA.add(c),{data:f})};var L3=(e=>(e.SERVER_RULES="serverRules",e.INVITE_PEOPLE="invitePeople",e))(L3||{});const o0="staticState",F3=vE(),Hg={path:"",baseUrl:"",search:""},cX=e=>{if(!e)return Hg;try{return JSON.parse(decodeURIComponent(e))||Hg}catch(e){return El.error("Error parsing static state",e),Hg}},B3=()=>new URLSearchParams(window.location.search).get(o0),dX=({path:e,baseUrl:t,search:n}={})=>{const{pathname:r,origin:o,search:i}=window.location;return`${o0}=${encodeURIComponent(JSON.stringify({path:e||r,baseUrl:t||o,search:n||i}))}`},fX=()=>{const e=B3();return e&&F3.setItem(o0,e),j3()},j3=()=>{try{const e=F3.getItem(o0)||B3();return cX(e)}catch(e){return El.error("Error parsing static state",e),Hg}},V3={create:dX,init:fX,get:j3},pX=async e=>{const t={};e.headers.forEach(((e,n)=>{t[n]=e}));return{body:["get","head"].includes(e.method.toLowerCase())?null:await(async()=>{try{return await e.text()}catch(e){return El.error("No body or error reading body:",e),null}})(),headers:t,url:e.url,method:e.method,mode:e.mode,credentials:e.credentials,cache:e.cache,redirect:e.redirect,referrer:e.referrer,integrity:e.integrity}},hX=e=>{const{url:t,status:n,statusText:r,headers:o,body:i}=e,a=new Response(JSON.stringify(i),{status:n,statusText:r,headers:o});return Object.defineProperties(a,{url:{value:t},type:{value:"cors"}}),a},mX=async e=>{const t=crypto.randomUUID();return new Promise(((n,r)=>{const o=p3({onMessage:({payload:{id:e,response:r}})=>{t===e&&(null==o||o(),n(hX(r)))},whitelist:[JK]});(async()=>{try{f3({action:EO({id:t,options:await pX(e)}),windowElement:window.parent,whitelist:[EO]})}catch(e){r(e)}})()}))};new EventTarget;const e$=()=>{var e;try{return(null==(e=window.wellesley)?void 0:e.v1)||window.wellesley}catch(e){El.error("Error getting window.wellesley:",e)}},vX=e=>new Response(JSON.stringify(e),{status:200,statusText:"OK",headers:{"Content-Type":"application/json"}}),gX=e=>{var t,n;if(e.url.includes("accounts/profile")){const e=null==(n=null==(t=e$())?void 0:t.initialState)?void 0:n.currentAccount;return!(null==e||!e.selectedUserId)&&vX(e)}},yX=Object.freeze(Object.defineProperty({__proto__:null,userHandler:gX},Symbol.toStringTag,{value:"Module"})),wX=e=>Object.values(yX).reduce(((t,n)=>t||n(e)),void 0),_X=async e=>wX(e)||await fetch(e),bX=()=>e=>Ih()?mX(e):_X(e),xX=V3.get().baseUrl,SX=xX||"",EX=SY({fetchFn:bX(),baseUrl:SX,responseHandler:e=>{const t=e.headers.get("content-type");if(!(null==t?void 0:t.startsWith("application/json")))return e.text();try{return e.json()}catch{return e.text()}},prepareHeaders:e=>{const t=CE.getToken();return t&&e.set("authorization",`Bearer ${t}`),e}}),CX=eX(lX(oX(EX))),$X=JY({tagTypes:["Secure","Post","Follow","Like","Settings","UserSettings","RBAC","Rbac_Config","Admin_Apps","Admin_Platform_Data","Admin_Ai_Agents_Assignments","Admin_Users","Admin_Groups","Admin_Audit_Logs","Admin_Reports","Admin_Signup_Requests","Admin_Posts","Admin_Uploads","Admin_Roles","Admin_Jobs_Stats","Admin_Federation","Admin_Domain_Block","Admin_Custom_Emojis","Admin_Domain_Allow","Admin_Link_Service_Configure","Groups","Group_Channels","GroupMembers","GroupMembership","GroupRules","Group_Roles","Group_Join_Requests","Group_Apps","Group_Ai_Agents_Assignments","User_Apps","Account","Profile","UserNoHtml","Relationship","Bookmarks","Global_Search","Events","Event","EventAttendees",...Object.values(L3)],reducerPath:"openapi",baseQuery:CX,endpoints:()=>({})}),IX=$X.injectEndpoints({endpoints:e=>({getApiMetaCompat:e.query({query:()=>({url:"/api/meta/compat"})}),postApiV1AccountsAddReason:e.mutation({query:e=>({url:"/api/v1/accounts/add-reason",method:"POST",body:e.signupReasonParams})}),postApiV1AccountsAuthenticateEmail:e.mutation({query:e=>({url:"/api/v1/accounts/authenticate/email",method:"POST",body:e.authRequest})}),postApiV1AccountsAuthenticatePhone:e.mutation({query:e=>({url:"/api/v1/accounts/authenticate/phone",method:"POST",body:e.authPhoneRequest})}),putApiV1AccountsChangeName:e.mutation({query:e=>({url:"/api/v1/accounts/change/name",method:"PUT",params:{id:e.id,name:e.name,username:e.username}})}),postApiV1AccountsCheckCaptcha:e.mutation({query:e=>({url:"/api/v1/accounts/check-captcha",method:"POST",body:e.captchaVerificationParams})}),postApiV1AccountsConfirmEmail:e.mutation({query:e=>({url:"/api/v1/accounts/confirm-email",method:"POST",body:e.codeVerificationParams})}),postApiV1AccountsConfirmPhone:e.mutation({query:e=>({url:"/api/v1/accounts/confirm-phone",method:"POST",body:e.codeVerificationParams})}),deleteApiV1AccountsDelete:e.mutation({query:()=>({url:"/api/v1/accounts/delete",method:"DELETE"})}),postApiV1AccountsEmailChangeConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/email/change/confirm",method:"POST",body:e.body})}),postApiV1AccountsEmailChangeRequest:e.mutation({query:e=>({url:"/api/v1/accounts/email/change/request",method:"POST",body:e.emailChangeRequest})}),putApiV1AccountsEmailChangeResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/email/change/resend-code",method:"PUT"})}),postApiV1AccountsFinishCreating:e.mutation({query:e=>({url:"/api/v1/accounts/finish-creating",method:"POST",body:e.finishCreatingAccountParams,params:{htmlContent:e.htmlContent}})}),putApiV1AccountsGetTokenByHash:e.mutation({query:e=>({url:`/api/v1/accounts/get-token/${e.hash}`,method:"PUT"})}),postApiV1AccountsLoginsAddEmailPassword:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-email-password",method:"POST",body:e.addEmailRequest})}),postApiV1AccountsLoginsAddEmailPasswordConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-email-password/confirm",method:"POST",body:e.body})}),putApiV1AccountsLoginsAddEmailPasswordResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/logins/add-email-password/resend-code",method:"PUT"})}),postApiV1AccountsLoginsAddPhone:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-phone",method:"POST",body:e.addPhoneRequest})}),deleteApiV1AccountsLoginsRemoveEmailPassword:e.mutation({query:()=>({url:"/api/v1/accounts/logins/remove-email-password",method:"DELETE"})}),deleteApiV1AccountsLoginsRemovePhone:e.mutation({query:()=>({url:"/api/v1/accounts/logins/remove-phone",method:"DELETE"})}),postApiV1AccountsPasswordChangeConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/password/change/confirm",method:"POST",body:e.body})}),postApiV1AccountsPasswordChangeRequest:e.mutation({query:e=>({url:"/api/v1/accounts/password/change/request",method:"POST",body:e.passwordChangeRequest})}),putApiV1AccountsPasswordChangeResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/password/change/resend-code",method:"PUT"})}),postApiV1AccountsPasswordRecover:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover",method:"POST",body:e.passwordRecoveryRequest})}),postApiV1AccountsPasswordRecoverChange:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover/change",method:"POST",body:e.passwordRecoveryChange})}),postApiV1AccountsPasswordRecoverCheckCode:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover/check-code",method:"POST",body:e.passwordRecoveryCode})}),postApiV1AccountsPhoneChangeConfirmAuth:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/confirm/auth",method:"POST",body:e.body})}),postApiV1AccountsPhoneChangeConfirmNewPhone:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/confirm/new-phone",method:"POST",body:e.body})}),postApiV1AccountsPhoneChangeNewPhone:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/new-phone",method:"POST",body:e.addPhoneRequest})}),putApiV1AccountsPhoneChangeRequest:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/request",method:"PUT"})}),putApiV1AccountsPhoneChangeResendCodeAuth:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/resend-code/auth",method:"PUT"})}),putApiV1AccountsPhoneChangeResendCodeNewPhone:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/resend-code/new-phone",method:"PUT"})}),getApiV1AccountsProfile:e.query({query:e=>({url:"/api/v1/accounts/profile",params:{htmlContent:e.htmlContent}})}),putApiV1AccountsResendCodeByHash:e.mutation({query:e=>({url:`/api/v1/accounts/resend-code/${e.hash}`,method:"PUT"})}),putApiV1AccountsResendEmailByHash:e.mutation({query:e=>({url:`/api/v1/accounts/resend-email/${e.hash}`,method:"PUT"})}),postApiV1AccountsSignup:e.mutation({query:e=>({url:"/api/v1/accounts/signup",method:"POST",body:e.accountCreate})}),postApiV1AccountsSignupPhone:e.mutation({query:e=>({url:"/api/v1/accounts/signup-phone",method:"POST",body:e.phoneSignup})}),postApiV1AccountsUserReselectUser:e.mutation({query:e=>({url:"/api/v1/accounts/user/reselect-user",method:"POST",params:{userId:e.userId,userName:e.userName}})}),getApiV1AddressesSuggest:e.query({query:e=>({url:"/api/v1/addresses/suggest",params:{lang:e.lang,text:e.text}})}),getApiV1AdminAccountByAccountId:e.query({query:e=>({url:`/api/v1/admin/account/${e.accountId}`,params:{htmlContent:e.htmlContent}})}),getApiV1AdminAuditLog:e.query({query:e=>({url:"/api/v1/admin/audit_log",params:{accountId:e.accountId,action:e.action,appId:e.appId,domainSearch:e.domainSearch,email:e.email,group:e.group,groupId:e.groupId,lastId:e.lastId,limit:e.limit,offset:e.offset,ruleId:e.ruleId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId,username:e.username}})}),putApiV1AdminChangeEmail:e.mutation({query:e=>({url:"/api/v1/admin/change/email",method:"PUT",params:{email:e.email,id:e.id,username:e.username}})}),putApiV1AdminChangePassword:e.mutation({query:e=>({url:"/api/v1/admin/change/password",method:"PUT",params:{id:e.id,password:e.password,username:e.username}})}),putApiV1AdminChangeRoleAssign:e.mutation({query:e=>({url:"/api/v1/admin/change/role/assign",method:"PUT",params:{id:e.id,role:e.role,username:e.username,htmlContent:e.htmlContent}})}),putApiV1AdminChangeRoleRevoke:e.mutation({query:e=>({url:"/api/v1/admin/change/role/revoke",method:"PUT",params:{id:e.id,role:e.role,username:e.username,htmlContent:e.htmlContent}})}),postApiV1AdminClearApErrors:e.mutation({query:e=>({url:"/api/v1/admin/clear-ap-errors",method:"POST",params:{domain:e.domain}})}),postApiV1AdminCreateAccount:e.mutation({query:e=>({url:"/api/v1/admin/create-account",method:"POST",body:e.accountCreate,params:{htmlContent:e.htmlContent}})}),postApiV1AdminCreateUser:e.mutation({query:e=>({url:"/api/v1/admin/create-user",method:"POST",body:e.userCreate,params:{account_id:e.accountId,htmlContent:e.htmlContent}})}),deleteApiV1AdminDelete:e.mutation({query:e=>({url:"/api/v1/admin/delete",method:"DELETE",params:{email:e.email,id:e.id,username:e.username}})}),deleteApiV1AdminDeleteUser:e.mutation({query:e=>({url:"/api/v1/admin/delete-user",method:"DELETE",params:{id:e.id,username:e.username}})}),getApiV1AdminDomainAllow:e.query({query:e=>({url:"/api/v1/admin/domain-allow",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1AdminDomainAllow:e.mutation({query:e=>({url:"/api/v1/admin/domain-allow",method:"POST",body:e.allowedDomainReq})}),deleteApiV1AdminDomainAllowByDomain:e.mutation({query:e=>({url:`/api/v1/admin/domain-allow/${e.domain}`,method:"DELETE"})}),putApiV1AdminDomainBlock:e.mutation({query:e=>({url:"/api/v1/admin/domain-block",method:"PUT",body:e.blockDomainReq})}),getApiV1AdminDomainBlock:e.query({query:e=>({url:"/api/v1/admin/domain-block",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1AdminDomainBlock:e.mutation({query:e=>({url:"/api/v1/admin/domain-block",method:"POST",body:e.blockDomainReq})}),deleteApiV1AdminDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/admin/domain-block/${e.domain}`,method:"DELETE"})}),getApiV1AdminEmailAllow:e.query({query:()=>({url:"/api/v1/admin/email-allow"})}),postApiV1AdminEmailAllow:e.mutation({query:e=>({url:"/api/v1/admin/email-allow",method:"POST",body:e.allowedDomainReq})}),deleteApiV1AdminEmailAllowByDomain:e.mutation({query:e=>({url:`/api/v1/admin/email-allow/${e.domain}`,method:"DELETE"})}),getApiV1AdminEmailBlock:e.query({query:()=>({url:"/api/v1/admin/email-block"})}),postApiV1AdminEmailBlock:e.mutation({query:e=>({url:"/api/v1/admin/email-block",method:"POST",body:e.blockEmailRequest})}),deleteApiV1AdminEmailBlockByPattern:e.mutation({query:e=>({url:`/api/v1/admin/email-block/${e.pattern}`,method:"DELETE"})}),getApiV1AdminFederation:e.query({query:e=>({url:"/api/v1/admin/federation",params:{blockState:e.blockState,lastId:e.lastId,limit:e.limit,offset:e.offset,search:e.search,sortBy:e.sortBy,sortOrder:e.sortOrder,unavailable:e.unavailable,untilId:e.untilId,warning:e.warning}})}),getApiV1AdminFederationMetricsOperations:e.query({query:e=>({url:"/api/v1/admin/federation/metrics/operations",params:{window:e.window}})}),getApiV1AdminFederationMetricsRunningAverageSingle:e.query({query:e=>({url:"/api/v1/admin/federation/metrics/running-average-single",params:{operation:e.operation,window:e.window}})}),getApiV1AdminFederationMetricsRunningAveragesAll:e.query({query:e=>({url:"/api/v1/admin/federation/metrics/running-averages-all",params:{operations:e.operations,window:e.window}})}),getApiV1AdminFederationByDomain:e.query({query:e=>({url:`/api/v1/admin/federation/${e.domain}`})}),postApiV1AdminFeedClearUserFeed:e.mutation({query:e=>({url:"/api/v1/admin/feed/clear-user-feed",method:"POST",params:{userId:e.userId,username:e.username}})}),getApiV1AdminFeedDiagnose:e.query({query:e=>({url:"/api/v1/admin/feed/diagnose",params:{limit:e.limit,skipExactMatch:e.skipExactMatch,skipFull:e.skipFull,skipOrderMismatch:e.skipOrderMismatch,userId:e.userId,username:e.username}})}),getApiV1AdminFeedMetricsGlobalAllOperation:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/global-all-operation",params:{window:e.window}})}),getApiV1AdminFeedMetricsGlobalSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/global-single",params:{operation:e.operation,window:e.window}})}),getApiV1AdminFeedMetricsHistory:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/history",params:{limit:e.limit,operation:e.operation,userId:e.userId}})}),getApiV1AdminFeedMetricsHistoryAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/history/all",params:{limit:e.limit,userId:e.userId}})}),getApiV1AdminFeedMetricsRunningAverageSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/running-average-single",params:{operation:e.operation,userId:e.userId,window:e.window}})}),getApiV1AdminFeedMetricsRunningAveragesAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/running-averages-all",params:{userId:e.userId,window:e.window}})}),getApiV1AdminFeedMetricsSlowestOperations:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-operations",params:{limit:e.limit,window:e.window}})}),getApiV1AdminFeedMetricsSlowestUsers:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-users",params:{limit:e.limit,operation:e.operation,window:e.window}})}),getApiV1AdminFeedMetricsSlowestUsersAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-users-all",params:{limit:e.limit,sortDesc:e.sortDesc,window:e.window}})}),getApiV1AdminFeedMetricsSlowestUsersSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-users-single",params:{limit:e.limit,operation:e.operation,sortDesc:e.sortDesc,window:e.window}})}),getApiV1AdminFeedMetricsSummary:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/summary",params:{includeUserCounts:e.includeUserCounts,window:e.window}})}),getApiV1AdminFeedMetricsUserCountAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/user-count-all",params:{window:e.window}})}),getApiV1AdminFeedMetricsUserCountSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/user-count-single",params:{operation:e.operation,window:e.window}})}),postApiV1AdminFeedRegenerateUserFeed:e.mutation({query:e=>({url:"/api/v1/admin/feed/regenerate-user-feed",method:"POST",params:{clear:e.clear,userId:e.userId,username:e.username}})}),getApiV1AdminGroupsSearch:e.query({query:e=>({url:"/api/v1/admin/groups/search",params:{accountId:e.accountId,displayName:e.displayName,domain:e.domain,email:e.email,joinMode:e.joinMode,lastId:e.lastId,limit:e.limit,offset:e.offset,privacy:e.privacy,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId,username:e.username,visibility:e.visibility}})}),getApiV1AdminGroupsUserByUserId:e.query({query:e=>({url:`/api/v1/admin/groups/user/${e.userId}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,roles:e.roles,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1AdminGroupsByAccountId:e.query({query:e=>({url:`/api/v1/admin/groups/${e.accountId}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1AdminGroupsByGroupIdCategories:e.query({query:e=>({url:`/api/v1/admin/groups/${e.groupId}/categories`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1AdminGroupsByGroupIdChannels:e.query({query:e=>({url:`/api/v1/admin/groups/${e.groupId}/channels`})}),getApiV1AdminGroupsByGroupIdEvents:e.query({query:e=>({url:`/api/v1/admin/groups/${e.groupId}/events`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withTranslation:e.withTranslation}})}),getApiV1AdminImpersonate:e.query({query:e=>({url:"/api/v1/admin/impersonate",params:{username:e.username}})}),getApiV1AdminLinkService:e.query({query:()=>({url:"/api/v1/admin/link-service"})}),postApiV1AdminLinkServiceConfigure:e.mutation({query:e=>({url:"/api/v1/admin/link-service/configure",method:"POST",body:e.configureRequest})}),postApiV1AdminPostsDelete:e.mutation({query:e=>({url:"/api/v1/admin/posts/delete",method:"POST",body:e.postDelete})}),deleteApiV1AdminPurge:e.mutation({query:e=>({url:"/api/v1/admin/purge",method:"DELETE",params:{id:e.id}})}),postApiV1AdminRegenerateKeys:e.mutation({query:e=>({url:"/api/v1/admin/regenerate-keys",method:"POST",params:{userId:e.userId,username:e.username}})}),postApiV1AdminRegenerateKeysAll:e.mutation({query:e=>({url:"/api/v1/admin/regenerate-keys-all",method:"POST",params:{batch:e.batch}})}),postApiV1AdminReleaseUsername:e.mutation({query:e=>({url:"/api/v1/admin/release-username",method:"POST",params:{username:e.username}})}),postApiV1AdminReportsDeletePosts:e.mutation({query:e=>({url:"/api/v1/admin/reports/delete-posts",method:"POST",body:e.body})}),getApiV1AdminReportsList:e.query({query:e=>({url:"/api/v1/admin/reports/list",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,open:e.open,postId:e.postId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId}})}),getApiV1AdminReportsByReportId:e.query({query:e=>({url:`/api/v1/admin/reports/${e.reportId}`})}),postApiV1AdminReportsByReportIdAddNote:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/add-note`,method:"POST",body:e.body})}),postApiV1AdminReportsByReportIdAssignToSelf:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/assign-to-self`,method:"POST"})}),deleteApiV1AdminReportsByReportIdDelete:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/delete`,method:"DELETE"})}),postApiV1AdminReportsByReportIdRemoveNote:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/remove-note`,method:"POST",params:{index:e.index}})}),postApiV1AdminReportsByReportIdReopen:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/reopen`,method:"POST"})}),postApiV1AdminReportsByReportIdResolve:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/resolve`,method:"POST"})}),postApiV1AdminReportsByReportIdUnassign:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/unassign`,method:"POST"})}),postApiV1AdminRestartApDelivery:e.mutation({query:e=>({url:"/api/v1/admin/restart-ap-delivery",method:"POST",params:{domain:e.domain}})}),getApiV1AdminSearch:e.query({query:e=>({url:"/api/v1/admin/search",params:{accountId:e.accountId,actorType:e.actorType,country:e.country,displayName:e.displayName,domain:e.domain,email:e.email,ip:e.ip,kind:e.kind,lastId:e.lastId,limit:e.limit,offset:e.offset,role:e.role,search:e.search,sortBy:e.sortBy,sortOrder:e.sortOrder,state:e.state,untilId:e.untilId,userId:e.userId,username:e.username}})}),putApiV1AdminSignupRequestsApproveByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/approve/${e.hash}`,method:"PUT"})}),deleteApiV1AdminSignupRequestsDeleteByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/delete/${e.hash}`,method:"DELETE"})}),getApiV1AdminSignupRequestsList:e.query({query:e=>({url:"/api/v1/admin/signup_requests/list",params:{email:e.email,hash:e.hash,ip:e.ip,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),putApiV1AdminSignupRequestsRejectByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/reject/${e.hash}`,method:"PUT",params:{reason:e.reason}})}),getApiV1AdminUploadsJobsQueueByQueueName:e.query({query:e=>({url:`/api/v1/admin/uploads/jobs/queue/${e.queueName}`,params:{limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,uploadType:e.uploadType}})}),getApiV1AdminUploadsJobsSummary:e.query({query:()=>({url:"/api/v1/admin/uploads/jobs/summary"})}),getApiV1AdminUploadsSearch:e.query({query:e=>({url:"/api/v1/admin/uploads/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,uploadType:e.uploadType,userId:e.userId}})}),getApiV1AdminUploadsStorageByUserId:e.query({query:e=>({url:`/api/v1/admin/uploads/storage/${e.userId}`})}),postApiV1AdminUserChangeState:e.mutation({query:e=>({url:"/api/v1/admin/user/change-state",method:"POST",body:e.changeUserState})}),postApiV1AdminUserChangeStateBulk:e.mutation({query:e=>({url:"/api/v1/admin/user/change-state-bulk",method:"POST",body:e.changeUserStateBulk})}),getApiV1AdminUserByUserId:e.query({query:e=>({url:`/api/v1/admin/user/${e.userId}`})}),getApiV1AiAgentsAssignments:e.query({query:e=>({url:"/api/v1/ai-agents/assignments",params:{resourceId:e.resourceId,type:e.type}})}),deleteApiV1AiAgentsAssignments:e.mutation({query:e=>({url:"/api/v1/ai-agents/assignments",method:"DELETE",params:{id:e.id}})}),postApiV1AiAgentsAssignments:e.mutation({query:e=>({url:"/api/v1/ai-agents/assignments",method:"POST",body:e.aiAgentAssignmentCreate})}),getApiV1AiAgentsPosts:e.query({query:e=>({url:"/api/v1/ai-agents/posts",params:{limit:e.limit,ownerId:e.ownerId,since:e.since,htmlContent:e.htmlContent}})}),getApiV1AiModels:e.query({query:e=>({url:"/api/v1/ai-models",params:{capabilities:e.capabilities,deprecated:e.deprecated,enabled:e.enabled,maxContextWindow:e.maxContextWindow,maxInputPrice:e.maxInputPrice,maxMaxOutputTokens:e.maxMaxOutputTokens,maxOutputPrice:e.maxOutputPrice,minContextWindow:e.minContextWindow,minMaxOutputTokens:e.minMaxOutputTokens,modalities:e.modalities,openWeights:e.openWeights,page:e.page,pageSize:e.pageSize,providerId:e.providerId,search:e.search}})}),putApiV1AiModelsByModelId:e.mutation({query:e=>({url:`/api/v1/ai-models/${e.modelId}`,method:"PUT",body:e.aiModelUpdate,params:{scope:e.scope}})}),getApiV1AiModelsByModelId:e.query({query:e=>({url:`/api/v1/ai-models/${e.modelId}`})}),deleteApiV1AiModelsByModelId:e.mutation({query:e=>({url:`/api/v1/ai-models/${e.modelId}`,method:"DELETE",params:{scope:e.scope}})}),getApiV1AiModelsByModelIdMigrationPath:e.query({query:e=>({url:`/api/v1/ai-models/${e.modelId}/migration-path`})}),getApiV1AiModelsByModelIdResolve:e.query({query:e=>({url:`/api/v1/ai-models/${e.modelId}/resolve`})}),getApiV1AiProviders:e.query({query:e=>({url:"/api/v1/ai-providers",params:{enabledOnly:e.enabledOnly,scope:e.scope}})}),postApiV1AiProviders:e.mutation({query:e=>({url:"/api/v1/ai-providers",method:"POST",body:e.aiProviderCreate,params:{scope:e.scope}})}),putApiV1AiProvidersByProviderId:e.mutation({query:e=>({url:`/api/v1/ai-providers/${e.providerId}`,method:"PUT",body:e.aiProviderUpdate,params:{scope:e.scope}})}),getApiV1AiProvidersByProviderId:e.query({query:e=>({url:`/api/v1/ai-providers/${e.providerId}`,params:{scope:e.scope}})}),deleteApiV1AiProvidersByProviderId:e.mutation({query:e=>({url:`/api/v1/ai-providers/${e.providerId}`,method:"DELETE",params:{scope:e.scope}})}),getApiV1AiProvidersByProviderIdModels:e.query({query:e=>({url:`/api/v1/ai-providers/${e.providerId}/models`,params:{enabledOnly:e.enabledOnly,includeDeprecated:e.includeDeprecated}})}),postApiV1AiProvidersByProviderIdModels:e.mutation({query:e=>({url:`/api/v1/ai-providers/${e.providerId}/models`,method:"POST",body:e.aiModelCreate,params:{scope:e.scope}})}),postApiV1Apps:e.mutation({query:e=>({url:"/api/v1/apps",method:"POST",body:e.body,params:{enable:e.enable}})}),getApiV1Apps:e.query({query:()=>({url:"/api/v1/apps"})}),getApiV1AppsEnabled:e.query({query:()=>({url:"/api/v1/apps/enabled"})}),getApiV1AppsInstalled:e.query({query:()=>({url:"/api/v1/apps/installed"})}),getApiV1AppsUser:e.query({query:()=>({url:"/api/v1/apps/user"})}),deleteApiV1AppsUserByAppId:e.mutation({query:e=>({url:`/api/v1/apps/user/${e.appId}`,method:"DELETE"})}),putApiV1AppsUserByAppId:e.mutation({query:e=>({url:`/api/v1/apps/user/${e.appId}`,method:"PUT"})}),putApiV1AppsByAppId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}`,method:"PUT",body:e.body,params:{enable:e.enable}})}),getApiV1AppsByAppId:e.query({query:e=>({url:`/api/v1/apps/${e.appId}`})}),deleteApiV1AppsByAppId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}`,method:"DELETE"})}),getApiV1AppsByAppIdData:e.query({query:e=>({url:`/api/v1/apps/${e.appId}/data`,params:{owner:e.owner,tags:e.tags,type:e.type}})}),postApiV1AppsByAppIdData:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data`,method:"POST",body:e.dataCreate})}),putApiV1AppsByAppIdDataAndId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data/${e.id}`,method:"PUT",body:e.dataCreate})}),deleteApiV1AppsByAppIdDataAndId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data/${e.id}`,method:"DELETE"})}),putApiV1AppsByAppIdDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/default`,method:"PUT"})}),putApiV1AppsByAppIdDisable:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/disable`,method:"PUT"})}),putApiV1AppsByAppIdEnable:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/enable`,method:"PUT"})}),getApiV1AppsByAppIdStats:e.query({query:e=>({url:`/api/v1/apps/${e.appId}/stats`})}),putApiV1AppsByAppIdUserDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/user-default`,method:"PUT"})}),deleteApiV1AppsByAppIdUserDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/user-default`,method:"DELETE"})}),getApiV1Block:e.query({query:e=>({url:"/api/v1/block",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1BlockBy:e.query({query:e=>({url:"/api/v1/block/by",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1BlockByUserId:e.mutation({query:e=>({url:`/api/v1/block/${e.userId}`,method:"DELETE"})}),postApiV1BlockByUserId:e.mutation({query:e=>({url:`/api/v1/block/${e.userId}`,method:"POST"})}),getApiV1CustomEmojis:e.query({query:e=>({url:"/api/v1/custom_emojis",params:{category:e.category,lastId:e.lastId,limit:e.limit,offset:e.offset,shortcode:e.shortcode,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1CustomEmojis:e.mutation({query:e=>({url:"/api/v1/custom_emojis",method:"DELETE",params:{category:e.category,shortcode:e.shortcode}})}),postApiV1CustomEmojis:e.mutation({query:e=>({url:"/api/v1/custom_emojis",method:"POST",body:e.emoji,params:{overwrite:e.overwrite}})}),getApiV1CustomEmojisCategories:e.query({query:e=>({url:"/api/v1/custom_emojis/categories",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,q:e.q,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1CustomEmojisExport:e.query({query:e=>({url:"/api/v1/custom_emojis/export",params:{category:e.category}})}),postApiV1CustomEmojisImport:e.mutation({query:e=>({url:"/api/v1/custom_emojis/import",method:"POST",body:e.body,params:{category:e.category,domain:e.domain,overwrite:e.overwrite,visible:e.visible}})}),postApiV1CustomEmojisImportUpload:e.mutation({query:e=>({url:"/api/v1/custom_emojis/import/upload",method:"POST",params:{category:e.category,domain:e.domain,overwrite:e.overwrite,uploadId:e.uploadId,visible:e.visible}})}),getApiV1CustomEmojisSearch:e.query({query:e=>({url:"/api/v1/custom_emojis/search",params:{category:e.category,lastId:e.lastId,limit:e.limit,offset:e.offset,shortcode:e.shortcode,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1CustomEmojisUpload:e.mutation({query:e=>({url:"/api/v1/custom_emojis/upload",method:"POST",params:{category:e.category,domain:e.domain,overwrite:e.overwrite,shortcode:e.shortcode,uploadId:e.uploadId,visible:e.visible}})}),patchApiV1CustomEmojisByShortcode:e.mutation({query:e=>({url:`/api/v1/custom_emojis/${e.shortcode}`,method:"PATCH",body:e.emojiPatchRequest})}),getApiV1Data:e.query({query:e=>({url:"/api/v1/data",params:{owner:e.owner,tags:e.tags,type:e.type}})}),postApiV1Data:e.mutation({query:e=>({url:"/api/v1/data",method:"POST",body:e.dataCreate})}),putApiV1DataById:e.mutation({query:e=>({url:`/api/v1/data/${e.id}`,method:"PUT",body:e.dataCreate})}),deleteApiV1DataById:e.mutation({query:e=>({url:`/api/v1/data/${e.id}`,method:"DELETE"})}),putApiV1Devices:e.mutation({query:e=>({url:"/api/v1/devices",method:"PUT",body:e.deviceRegistrationRequest})}),getApiV1Devices:e.query({query:()=>({url:"/api/v1/devices"})}),deleteApiV1DevicesAll:e.mutation({query:()=>({url:"/api/v1/devices/all",method:"DELETE"})}),getApiV1DevicesVapidPublicKey:e.query({query:()=>({url:"/api/v1/devices/vapid-public-key"})}),deleteApiV1DevicesByDeviceId:e.mutation({query:e=>({url:`/api/v1/devices/${e.deviceId}`,method:"DELETE"})}),getApiV1DomainBlock:e.query({query:e=>({url:"/api/v1/domain-block",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1Drafts:e.query({query:e=>({url:"/api/v1/drafts",params:{ownerId:e.ownerId}})}),postApiV1Drafts:e.mutation({query:e=>({url:"/api/v1/drafts",method:"POST",body:e.createDraftRequest,params:{ownerId:e.ownerId}})}),getApiV1DraftsPostByPostId:e.query({query:e=>({url:`/api/v1/drafts/post/${e.postId}`})}),putApiV1DraftsByDraftId:e.mutation({query:e=>({url:`/api/v1/drafts/${e.draftId}`,method:"PUT",body:e.updateDraftRequest})}),getApiV1DraftsByDraftId:e.query({query:e=>({url:`/api/v1/drafts/${e.draftId}`})}),deleteApiV1DraftsByDraftId:e.mutation({query:e=>({url:`/api/v1/drafts/${e.draftId}`,method:"DELETE"})}),postApiV1DraftsByDraftIdPublish:e.mutation({query:e=>({url:`/api/v1/drafts/${e.draftId}/publish`,method:"POST",params:{htmlContent:e.htmlContent}})}),getApiV1Events:e.query({query:e=>({url:"/api/v1/events",params:{groupId:e.groupId,limit:e.limit,offset:e.offset,organizerId:e.organizerId,username:e.username,withTranslation:e.withTranslation}})}),postApiV1Events:e.mutation({query:e=>({url:"/api/v1/events",method:"POST",body:e.createEvent})}),getApiV1EventsCalendarGByGroupnameIcs:e.query({query:e=>({url:`/api/v1/events/calendar/g/${e.groupname}.ics`})}),getApiV1EventsCalendarPByIdIcs:e.query({query:e=>({url:`/api/v1/events/calendar/p/${e.id}.ics`})}),getApiV1EventsCalendarUByUsernameIcs:e.query({query:e=>({url:`/api/v1/events/calendar/u/${e.username}.ics`})}),getApiV1EventsFollowing:e.query({query:e=>({url:"/api/v1/events/following",params:{limit:e.limit,offset:e.offset,withTranslation:e.withTranslation}})}),getApiV1EventsMy:e.query({query:e=>({url:"/api/v1/events/my",params:{limit:e.limit,notRespondedOnly:e.notRespondedOnly,offset:e.offset,organizedOnly:e.organizedOnly,past:e.past,withTranslation:e.withTranslation}})}),getApiV1EventsSettings:e.query({query:e=>({url:"/api/v1/events/settings",params:{ownerId:e.ownerId}})}),postApiV1EventsSettingsRegeneratePrivateId:e.mutation({query:e=>({url:"/api/v1/events/settings/regeneratePrivateId",method:"POST",params:{ownerId:e.ownerId}})}),postApiV1EventsSettingsUpdate:e.mutation({query:e=>({url:"/api/v1/events/settings/update",method:"POST",body:e.updateEventsSettings,params:{ownerId:e.ownerId}})}),putApiV1EventsByEventId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}`,method:"PUT",body:e.updateEvent})}),getApiV1EventsByEventId:e.query({query:e=>({url:`/api/v1/events/${e.eventId}`,params:{withTranslation:e.withTranslation}})}),deleteApiV1EventsByEventId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}`,method:"DELETE"})}),getApiV1EventsByEventIdIcs:e.query({query:e=>({url:`/api/v1/events/${e.eventId}.ics`})}),postApiV1EventsByEventIdAccept:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/accept`,method:"POST"})}),getApiV1EventsByEventIdAttendees:e.query({query:e=>({url:`/api/v1/events/${e.eventId}/attendees`,params:{limit:e.limit,offset:e.offset}})}),deleteApiV1EventsByEventIdAttendeesAndUserId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/attendees/${e.userId}`,method:"DELETE"})}),postApiV1EventsByEventIdAttendeesAndUserId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/attendees/${e.userId}`,method:"POST"})}),postApiV1EventsByEventIdCancel:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/cancel`,method:"POST"})}),postApiV1EventsByEventIdInterested:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/interested`,method:"POST"})}),postApiV1EventsByEventIdJoin:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/join`,method:"POST"})}),deleteApiV1EventsByEventIdJoinOrInterested:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/joinOrInterested`,method:"DELETE"})}),postApiV1EventsByEventIdMaybe:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/maybe`,method:"POST"})}),getApiV1EventsByEventIdMutual:e.query({query:e=>({url:`/api/v1/events/${e.eventId}/mutual`,params:{limit:e.limit,offset:e.offset}})}),postApiV1EventsByEventIdReject:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/reject`,method:"POST"})}),postApiV1EventsByEventIdTranslate:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/translate`,method:"POST",params:{lang:e.lang}})}),postApiV1FaspClear:e.mutation({query:()=>({url:"/api/v1/fasp/clear",method:"POST"})}),getApiV1FaspDebugV0CallbackCallbacks:e.query({query:()=>({url:"/api/v1/fasp/debug/v0/callback/callbacks"})}),deleteApiV1FaspDebugV0CallbackCallbacksById:e.mutation({query:e=>({url:`/api/v1/fasp/debug/v0/callback/callbacks/${e.id}`,method:"DELETE"})}),postApiV1FaspRegistration:e.mutation({query:e=>({url:"/api/v1/fasp/registration",method:"POST",body:e.registrationRequest})}),postApiV1FaspByProviderIdCapabilities:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/capabilities`,method:"POST",body:e.body})}),postApiV1FaspByProviderIdDebugCall:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/debug-call`,method:"POST",body:e.body})}),getApiV1FaspByProviderIdRegistrationFinish:e.query({query:e=>({url:`/api/v1/fasp/${e.providerId}/registration-finish`})}),postApiV1FaspByProviderIdRegistrationFinish:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/registration-finish`,method:"POST"})}),postApiV1FaspByProviderIdRequestBackfill:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/request_backfill`,method:"POST",params:{category:e.category}})}),postApiV1FederationTokens:e.mutation({query:e=>({url:"/api/v1/federation/tokens",method:"POST",body:e.groupFederationTokenRequest})}),getApiV1Geo:e.query({query:e=>({url:"/api/v1/geo",params:{latitude:e.latitude,longitude:e.longitude}})}),getApiV1Groups:e.query({query:e=>({url:"/api/v1/groups",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1Groups:e.mutation({query:e=>({url:"/api/v1/groups",method:"POST",body:e.groupCreate})}),getApiV1GroupsApps:e.query({query:()=>({url:"/api/v1/groups/apps"})}),getApiV1GroupsInvites:e.query({query:e=>({url:"/api/v1/groups/invites",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1GroupsInvitesByGroupInviteId:e.query({query:e=>({url:`/api/v1/groups/invites/${e.groupInviteId}`})}),getApiV1GroupsMemberByUserId:e.query({query:e=>({url:`/api/v1/groups/member/${e.userId}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsMemberByUserIdGroups:e.query({query:e=>({url:`/api/v1/groups/member/${e.userId}/groups`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsMyGroups:e.query({query:e=>({url:"/api/v1/groups/my-groups",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsNameByGroupname:e.query({query:e=>({url:`/api/v1/groups/name/${e.groupname}`})}),getApiV1GroupsOwned:e.query({query:e=>({url:"/api/v1/groups/owned",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsPinned:e.query({query:e=>({url:"/api/v1/groups/pinned",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsSearch:e.query({query:e=>({url:"/api/v1/groups/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,substring:e.substring,untilId:e.untilId}})}),getApiV1GroupsUsersByUserIdMutual:e.query({query:e=>({url:`/api/v1/groups/users/${e.userId}/mutual`})}),putApiV1GroupsByGroupId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}`,method:"PUT",body:e.groupUpdate})}),getApiV1GroupsByGroupId:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}`})}),deleteApiV1GroupsByGroupId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}`,method:"DELETE"})}),getApiV1GroupsByGroupIdAiAgentsAssignments:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/ai-agents/assignments`,params:{resourceId:e.resourceId,type:e.type}})}),deleteApiV1GroupsByGroupIdAiAgentsAssignments:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/ai-agents/assignments`,method:"DELETE",params:{assignmentId:e.assignmentId}})}),postApiV1GroupsByGroupIdAiAgentsAssignments:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/ai-agents/assignments`,method:"POST",body:e.aiAgentAssignmentCreate})}),getApiV1GroupsByGroupIdApps:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/apps`})}),deleteApiV1GroupsByGroupIdAppsAndAppId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/apps/${e.appId}`,method:"DELETE"})}),putApiV1GroupsByGroupIdAppsAndAppId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/apps/${e.appId}`,method:"PUT"})}),putApiV1GroupsByGroupIdBranding:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/branding`,method:"PUT",body:e.groupBrandingUpdate})}),getApiV1GroupsByGroupIdCategories:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/categories`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1GroupsByGroupIdCategories:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/categories`,method:"POST",body:e.categoryCreate})}),getApiV1GroupsByGroupIdCategoriesNameAndCategoryName:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/categories/name/${e.categoryName}`})}),putApiV1GroupsByGroupIdCategoriesAndCategoryId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/categories/${e.categoryId}`,method:"PUT",body:e.categoryUpdate})}),getApiV1GroupsByGroupIdCategoriesAndCategoryId:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/categories/${e.categoryId}`})}),deleteApiV1GroupsByGroupIdCategoriesAndCategoryId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/categories/${e.categoryId}`,method:"DELETE"})}),getApiV1GroupsByGroupIdChannels:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/channels`})}),postApiV1GroupsByGroupIdChannels:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/channels`,method:"POST",body:e.body,params:{htmlContent:e.htmlContent}})}),getApiV1GroupsByGroupIdChannelsDefault:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/default`})}),getApiV1GroupsByGroupIdChannelsLookup:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/lookup`,params:{full:e.full,username:e.username,htmlContent:e.htmlContent}})}),getApiV1GroupsByGroupIdChannelsMain:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/main`,params:{htmlContent:e.htmlContent}})}),getApiV1GroupsByGroupIdChannelsPublic:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/public`})}),putApiV1GroupsByGroupIdChannelsAndChannelId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/${e.channelId}`,method:"PUT",body:e.body,params:{htmlContent:e.htmlContent}})}),getApiV1GroupsByGroupIdChannelsAndChannelId:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/${e.channelId}`,params:{full:e.full,htmlContent:e.htmlContent}})}),deleteApiV1GroupsByGroupIdChannelsAndChannelId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/${e.channelId}`,method:"DELETE"})}),putApiV1GroupsByGroupIdChannelsAndChannelIdDefault:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/${e.channelId}/default`,method:"PUT",params:{isDefault:e.isDefault,htmlContent:e.htmlContent}})}),putApiV1GroupsByGroupIdChannelsAndChannelIdMain:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/${e.channelId}/main`,method:"PUT",params:{htmlContent:e.htmlContent}})}),putApiV1GroupsByGroupIdChannelsAndChannelIdUsername:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/${e.channelId}/username`,method:"PUT",body:e.body,params:{htmlContent:e.htmlContent}})}),postApiV1GroupsByGroupIdFederationToken:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/federation-token`,method:"POST"})}),putApiV1GroupsByGroupIdForum:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/forum`,method:"PUT",body:e.forumUpdate})}),getApiV1GroupsByGroupIdForum:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/forum`})}),deleteApiV1GroupsByGroupIdForum:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/forum`,method:"DELETE"})}),deleteApiV1GroupsByGroupIdForumHard:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/forum/hard`,method:"DELETE"})}),getApiV1GroupsByGroupIdForumStats:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/forum/stats`})}),getApiV1GroupsByGroupIdForumTags:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/forum/tags`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsByGroupIdForumTagsSearch:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/forum/tags/search`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,q:e.q,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsByGroupIdInvites:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/invites`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),postApiV1GroupsByGroupIdInvites:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/invites`,method:"POST",body:e.groupInviteCreate})}),deleteApiV1GroupsByGroupIdInvitesAndGroupInviteId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/invites/${e.groupInviteId}`,method:"DELETE"})}),postApiV1GroupsByGroupIdInvitesAndGroupInviteIdAccept:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/invites/${e.groupInviteId}/accept`,method:"POST"})}),postApiV1GroupsByGroupIdInvitesAndGroupInviteIdReject:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/invites/${e.groupInviteId}/reject`,method:"POST"})}),postApiV1GroupsByGroupIdJoin:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/join`,method:"POST",params:{answerToken:e.answerToken}})}),deleteApiV1GroupsByGroupIdJoin:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/join`,method:"DELETE"})}),getApiV1GroupsByGroupIdJoinRequests:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/join-requests`,params:{createdFrom:e.createdFrom,createdTo:e.createdTo,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId,username:e.username}})}),deleteApiV1GroupsByGroupIdJoinRequestsAndGroupJoinRequestId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/join-requests/${e.groupJoinRequestId}`,method:"DELETE",params:{purge:e.purge,reason:e.reason}})}),putApiV1GroupsByGroupIdJoinRequestsAndGroupJoinRequestId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/join-requests/${e.groupJoinRequestId}`,method:"PUT",params:{reason:e.reason}})}),putApiV1GroupsByGroupIdMemberSettings:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/member-settings`,method:"PUT",body:e.groupMemberSettings})}),getApiV1GroupsByGroupIdMemberSettings:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/member-settings`,params:{keys:e.keys}})}),deleteApiV1GroupsByGroupIdMemberSettings:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/member-settings`,method:"DELETE",params:{keys:e.keys}})}),getApiV1GroupsByGroupIdMembers:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/members`,params:{actorType:e.actorType,createdAfter:e.createdAfter,displayName:e.displayName,domain:e.domain,limit:e.limit,offset:e.offset,order:e.order,role:e.role,sort:e.sort,username:e.username}})}),postApiV1GroupsByGroupIdMembers:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members`,method:"POST",body:e.groupMemberCreate})}),getApiV1GroupsByGroupIdMembersSearch:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/members/search`,params:{actorType:e.actorType,country:e.country,createdAfter:e.createdAfter,displayName:e.displayName,domain:e.domain,ip:e.ip,lastId:e.lastId,limit:e.limit,offset:e.offset,role:e.role,roles:e.roles,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,username:e.username}})}),putApiV1GroupsByGroupIdMembersAndMemberId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members/${e.memberId}`,method:"PUT",body:e.groupMemberUpdate})}),deleteApiV1GroupsByGroupIdMembersAndMemberId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members/${e.memberId}`,method:"DELETE",params:{reason:e.reason}})}),deleteApiV1GroupsByGroupIdMembership:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/membership`,method:"DELETE"})}),getApiV1GroupsByGroupIdMembership:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/membership`})}),deleteApiV1GroupsByGroupIdPin:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/pin`,method:"DELETE"})}),putApiV1GroupsByGroupIdPin:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/pin`,method:"PUT",params:{pin:e.pin}})}),getApiV1GroupsByGroupIdQuestions:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/questions`})}),postApiV1GroupsByGroupIdQuestions:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/questions`,method:"POST",body:e.questionCreate})}),postApiV1GroupsByGroupIdQuestionsAnswers:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/questions/answers`,method:"POST",body:e.questionAnswerCreate})}),putApiV1GroupsByGroupIdQuestionsAndQuestionId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/questions/${e.questionId}`,method:"PUT",body:e.questionUpdate})}),deleteApiV1GroupsByGroupIdQuestionsAndQuestionId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/questions/${e.questionId}`,method:"DELETE"})}),postApiV1GroupsByGroupIdReportsDeletePosts:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/reports/delete-posts`,method:"POST",body:e.body})}),getApiV1GroupsByGroupIdReportsList:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/reports/list`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,open:e.open,postId:e.postId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId}})}),getApiV1GroupsByGroupIdReportsAndReportId:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/reports/${e.reportId}`})}),postApiV1GroupsByGroupIdReportsAndReportIdAddNote:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/reports/${e.reportId}/add-note`,method:"POST",body:e.body})}),postApiV1GroupsByGroupIdReportsAndReportIdRemoveNote:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/reports/${e.reportId}/remove-note`,method:"POST",params:{index:e.index}})}),postApiV1GroupsByGroupIdReportsAndReportIdReopen:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/reports/${e.reportId}/reopen`,method:"POST"})}),postApiV1GroupsByGroupIdReportsAndReportIdResolve:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/reports/${e.reportId}/resolve`,method:"POST"})}),getApiV1GroupsByGroupIdRules:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/rules`})}),postApiV1GroupsByGroupIdRules:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/rules`,method:"POST",params:{hint:e.hint,ordering:e.ordering,text:e.text}})}),postApiV1GroupsByGroupIdRulesReorder:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/rules/reorder`,method:"POST",body:e.body})}),deleteApiV1GroupsByGroupIdRulesAndId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/rules/${e.id}`,method:"DELETE"})}),putApiV1GroupsByGroupIdRulesAndRuleId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/rules/${e.ruleId}`,method:"PUT",body:e.ruleUpdate})}),putApiV1GroupsByGroupIdSettings:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/settings`,method:"PUT",body:e.groupSettings})}),getApiV1GroupsByGroupIdSettings:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/settings`,params:{keys:e.keys}})}),deleteApiV1GroupsByGroupIdSettings:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/settings`,method:"DELETE",params:{keys:e.keys}})}),getApiV1GroupsByGroupIdUsers:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/users`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,order:e.order,role:e.role,sort:e.sort,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1Import:e.query({query:()=>({url:"/api/v1/import"})}),postApiV1Import:e.mutation({query:e=>({url:"/api/v1/import",method:"POST",body:e.body,params:{overwrite:e.overwrite,type:e.type}})}),postApiV1ImportStartById:e.mutation({query:e=>({url:`/api/v1/import/start/${e.id}`,method:"POST"})}),getApiV1ImportById:e.query({query:e=>({url:`/api/v1/import/${e.id}`})}),getApiV1Instance:e.query({query:()=>({url:"/api/v1/instance"})}),getApiV1InstanceCountries:e.query({query:()=>({url:"/api/v1/instance/countries"})}),getApiV1InstanceDomains:e.query({query:e=>({url:"/api/v1/instance/domains",params:{domain:e.domain,limit:e.limit,software:e.software}})}),getApiV1InstanceExtendedDescription:e.query({query:()=>({url:"/api/v1/instance/extended_description"})}),getApiV1InstanceSupportedLanguages:e.query({query:()=>({url:"/api/v1/instance/supported_languages"})}),getApiV1InstanceTimezones:e.query({query:()=>({url:"/api/v1/instance/timezones"})}),getApiV1JobsListJobs:e.query({query:e=>({url:"/api/v1/jobs/list-jobs",params:{limit:e.limit,offset:e.offset}})}),getApiV1JobsListStats:e.query({query:e=>({url:"/api/v1/jobs/list-stats",params:{queue:e.queue}})}),getApiV1JobsListStatsAll:e.query({query:()=>({url:"/api/v1/jobs/list-stats-all"})}),getApiV1JobsLists:e.query({query:e=>({url:"/api/v1/jobs/lists",params:{limit:e.limit,listKind:e.listKind,offset:e.offset,queue:e.queue}})}),getApiV1JobsStats:e.query({query:()=>({url:"/api/v1/jobs/stats"})}),getApiV1JobsStatsPerDay:e.query({query:e=>({url:"/api/v1/jobs/stats-per-day",params:{lastDays:e.lastDays,queue:e.queue}})}),getApiV1Links:e.query({query:e=>({url:"/api/v1/links",params:{url:e.url}})}),getApiV1Lists:e.query({query:()=>({url:"/api/v1/lists"})}),postApiV1Lists:e.mutation({query:e=>({url:"/api/v1/lists",method:"POST",body:e.userListCreate})}),putApiV1ListsByListId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}`,method:"PUT",body:e.userListCreate})}),getApiV1ListsByListId:e.query({query:e=>({url:`/api/v1/lists/${e.listId}`})}),deleteApiV1ListsByListId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}`,method:"DELETE"})}),getApiV1ListsByListIdUsers:e.query({query:e=>({url:`/api/v1/lists/${e.listId}/users`})}),deleteApiV1ListsByListIdUsersAndUserId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}/users/${e.userId}`,method:"DELETE"})}),postApiV1ListsByListIdUsersAndUserId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}/users/${e.userId}`,method:"POST"})}),getApiV1Metrics:e.query({query:e=>({url:"/api/v1/metrics",params:{from:e.from,period:e.period,to:e.to}})}),getApiV1MetricsTotals:e.query({query:()=>({url:"/api/v1/metrics/totals"})}),getApiV1Mute:e.query({query:e=>({url:"/api/v1/mute",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1MuteByUserId:e.mutation({query:e=>({url:`/api/v1/mute/${e.userId}`,method:"DELETE"})}),postApiV1MuteByUserId:e.mutation({query:e=>({url:`/api/v1/mute/${e.userId}`,method:"POST",params:{duration:e.duration}})}),getApiV1NamesCheck:e.query({query:e=>({url:"/api/v1/names/check",params:{name:e.name,nameScope:e.nameScope,scope:e.scope}})}),putApiV1Notes:e.mutation({query:e=>({url:"/api/v1/notes",method:"PUT",body:e.noteUpdate})}),getApiV1Notes:e.query({query:e=>({url:"/api/v1/notes",params:{userIds:e.userIds}})}),deleteApiV1NotesByUserId:e.mutation({query:e=>({url:`/api/v1/notes/${e.userId}`,method:"DELETE"})}),getApiV1Notifications:e.query({query:e=>({url:"/api/v1/notifications",params:{excludeTypes:e.excludeTypes,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,types:e.types,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1NotificationsCount:e.query({query:e=>({url:"/api/v1/notifications/count",params:{excludeTypes:e.excludeTypes,status:e.status,types:e.types}})}),postApiV1NotificationsMarkAll:e.mutation({query:e=>({url:"/api/v1/notifications/mark-all",method:"POST",params:{status:e.status}})}),getApiV1NotificationsById:e.query({query:e=>({url:`/api/v1/notifications/${e.id}`,params:{htmlContent:e.htmlContent}})}),postApiV1NotificationsByIdMark:e.mutation({query:e=>({url:`/api/v1/notifications/${e.id}/mark`,method:"POST",params:{status:e.status,htmlContent:e.htmlContent}})}),getApiV1Passkeys:e.query({query:()=>({url:"/api/v1/passkeys"})}),getApiV1PasskeysBeginAuth:e.query({query:e=>({url:"/api/v1/passkeys/begin-auth",params:{username:e.username}})}),getApiV1PasskeysBeginRegister:e.query({query:()=>({url:"/api/v1/passkeys/begin-register"})}),postApiV1PasskeysFinishAuth:e.mutation({query:e=>({url:"/api/v1/passkeys/finish-auth",method:"POST",body:e.jsonObject})}),postApiV1PasskeysFinishRegister:e.mutation({query:e=>({url:"/api/v1/passkeys/finish-register",method:"POST",body:e.jsonObject})}),deleteApiV1PasskeysByCredentialId:e.mutation({query:e=>({url:`/api/v1/passkeys/${e.credentialId}`,method:"DELETE"})}),postApiV1PollsByPollIdRefresh:e.mutation({query:e=>({url:`/api/v1/polls/${e.pollId}/refresh`,method:"POST"})}),postApiV1PollsByPollIdVote:e.mutation({query:e=>({url:`/api/v1/polls/${e.pollId}/vote`,method:"POST",body:e.body})}),getApiV1Posts:e.query({query:e=>({url:"/api/v1/posts",params:{all:e.all,bookmarkedOnly:e.bookmarkedOnly,forumTags:e.forumTags,includeBookmarkStatus:e.includeBookmarkStatus,includeComments:e.includeComments,includeFollowStatus:e.includeFollowStatus,includePinnedStatus:e.includePinnedStatus,includeReply:e.includeReply,lastId:e.lastId,limit:e.limit,limitFirstLevelComments:e.limitFirstLevelComments,limitSecondLevelComments:e.limitSecondLevelComments,listId:e.listId,maxLevel:e.maxLevel,minLevel:e.minLevel,offset:e.offset,ownerId:e.ownerId,pinned:e.pinned,repostKind:e.repostKind,repostOf:e.repostOf,repostsOnly:e.repostsOnly,search:e.search,skipReposts:e.skipReposts,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,userId:e.userId,username:e.username,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),postApiV1Posts:e.mutation({query:e=>({url:"/api/v1/posts",method:"POST",body:e.createPost,params:{ownerId:e.ownerId,htmlContent:e.htmlContent}})}),getApiV1PostsBookmarked:e.query({query:e=>({url:"/api/v1/posts/bookmarked",params:{includeComments:e.includeComments,includeReply:e.includeReply,lastId:e.lastId,limit:e.limit,my:e.my,offset:e.offset,ownerId:e.ownerId,search:e.search,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsFeedsFollowing:e.query({query:e=>({url:"/api/v1/posts/feeds/following",params:{ignoreCache:e.ignoreCache,includeBookmarkStatus:e.includeBookmarkStatus,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,htmlContent:e.htmlContent}})}),getApiV1PostsFeedsPublic:e.query({query:e=>({url:"/api/v1/posts/feeds/public",params:{includeBookmarkStatus:e.includeBookmarkStatus,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,local:e.local,offset:e.offset,skipReposts:e.skipReposts,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),getApiV1PostsLiked:e.query({query:e=>({url:"/api/v1/posts/liked",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,ownerId:e.ownerId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),putApiV1PostsMarkdown2Html:e.mutation({query:e=>({url:"/api/v1/posts/markdown2html",method:"PUT",body:e.body})}),getApiV1PostsMentioned:e.query({query:e=>({url:"/api/v1/posts/mentioned",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,ownerId:e.ownerId,private:e.private,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsMy:e.query({query:e=>({url:"/api/v1/posts/my",params:{bookmarkedOnly:e.bookmarkedOnly,includeBookmarkStatus:e.includeBookmarkStatus,includeComments:e.includeComments,lastId:e.lastId,limit:e.limit,offset:e.offset,ownerId:e.ownerId,repostsOnly:e.repostsOnly,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsPins:e.query({query:e=>({url:"/api/v1/posts/pins",params:{ownerId:e.ownerId,postOnly:e.postOnly}})}),deleteApiV1PostsPinsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/pins/${e.postId}`,method:"DELETE"})}),postApiV1PostsPinsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/pins/${e.postId}`,method:"POST"})}),getApiV1PostsReplies:e.query({query:e=>({url:"/api/v1/posts/replies",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,ownerId:e.ownerId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId,username:e.username,htmlContent:e.htmlContent}})}),getApiV1PostsSubscribe:e.query({query:e=>({url:"/api/v1/posts/subscribe",params:{all:e.all,ownerId:e.ownerId,htmlContent:e.htmlContent}})}),putApiV1PostsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}`,method:"PUT",body:e.createPost,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostId:e.query({query:e=>({url:`/api/v1/posts/${e.postId}`,params:{includeBookmarkStatus:e.includeBookmarkStatus,limitFirstLevelComments:e.limitFirstLevelComments,limitSecondLevelComments:e.limitSecondLevelComments,maxLevel:e.maxLevel,minLevel:e.minLevel,withComments:e.withComments,withParents:e.withParents,withRepostedBy:e.withRepostedBy,withRootParent:e.withRootParent,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}`,method:"DELETE"})}),getApiV1PostsByPostIdActiveUsers:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/active-users`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1PostsByPostIdBookmark:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/bookmark`,method:"DELETE"})}),postApiV1PostsByPostIdBookmark:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/bookmark`,method:"POST"})}),getApiV1PostsByPostIdComments:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/comments`,params:{lastId:e.lastId,limit:e.limit,limitFirstLevelComments:e.limitFirstLevelComments,maxLevel:e.maxLevel,minLevel:e.minLevel,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),postApiV1PostsByPostIdComments:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments`,method:"POST",body:e.createPost,params:{htmlContent:e.htmlContent}})}),putApiV1PostsByPostIdCommentsAndCommentId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments/${e.commentId}`,method:"PUT",body:e.createPost,params:{htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostIdCommentsAndCommentId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments/${e.commentId}`,method:"DELETE"})}),postApiV1PostsByPostIdDetach:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/detach`,method:"POST"})}),postApiV1PostsByPostIdDownvote:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/downvote`,method:"POST",params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostIdEdits:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/edits`,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostIdLikes:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,params:{includeFollowedStatus:e.includeFollowedStatus,includeFollowingStatus:e.includeFollowingStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostIdLikes:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,method:"DELETE"})}),postApiV1PostsByPostIdLikes:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,method:"POST"})}),postApiV1PostsByPostIdRefreshCard:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/refresh-card`,method:"POST"})}),deleteApiV1PostsByPostIdRepost:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/repost`,method:"DELETE"})}),postApiV1PostsByPostIdRepost:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/repost`,method:"POST",body:e.createPost,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostIdReposts:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/reposts`,params:{includeFollowedStatus:e.includeFollowedStatus,includeFollowingStatus:e.includeFollowingStatus,kind:e.kind,lastId:e.lastId,limit:e.limit,offset:e.offset,skipDuplicates:e.skipDuplicates,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),postApiV1PostsByPostIdSubscribe:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/subscribe`,method:"POST"})}),deleteApiV1PostsByPostIdSubscribe:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/subscribe`,method:"DELETE"})}),postApiV1PostsByPostIdTrackView:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/track-view`,method:"POST"})}),postApiV1PostsByPostIdTranslate:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/translate`,method:"POST",params:{htmlContent:e.htmlContent,lang:e.lang}})}),postApiV1PostsByPostIdUpvote:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/upvote`,method:"POST",params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostIdVotes:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/votes`,params:{htmlContent:e.htmlContent}})}),getApiV1Rbac:e.query({query:()=>({url:"/api/v1/rbac"})}),getApiV1RbacActorsByActorIdPermissions:e.query({query:e=>({url:`/api/v1/rbac/actors/${e.actorId}/permissions`,params:{targetScope:e.targetScope}})}),getApiV1RbacActorsByActorIdRoles:e.query({query:e=>({url:`/api/v1/rbac/actors/${e.actorId}/roles`,params:{targetScope:e.targetScope}})}),putApiV1RbacRolesByRoleId:e.mutation({query:e=>({url:`/api/v1/rbac/roles/${e.roleId}`,method:"PUT",body:e.rbacRoleTemplate})}),getApiV1RbacScopesByScopeRoles:e.query({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles`})}),postApiV1RbacScopesByScopeRoles:e.mutation({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles`,method:"POST",body:e.rbacRoleTemplate})}),deleteApiV1RbacScopesByScopeRolesAndRoleName:e.mutation({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles/${e.roleName}`,method:"DELETE"})}),getApiV1RbacByResource:e.query({query:e=>({url:`/api/v1/rbac/${e.resource}`})}),postApiV1Reports:e.mutation({query:e=>({url:"/api/v1/reports",method:"POST",body:e.createReport})}),putApiV1Rules:e.mutation({query:e=>({url:"/api/v1/rules",method:"PUT",body:e.rule})}),getApiV1Rules:e.query({query:()=>({url:"/api/v1/rules"})}),postApiV1Rules:e.mutation({query:e=>({url:"/api/v1/rules",method:"POST",body:e.ruleCreate})}),postApiV1RulesReorder:e.mutation({query:e=>({url:"/api/v1/rules/reorder",method:"POST",body:e.body})}),deleteApiV1RulesById:e.mutation({query:e=>({url:`/api/v1/rules/${e.id}`,method:"DELETE"})}),getApiV1Search:e.query({query:e=>({url:"/api/v1/search",params:{actorType:e.actorType,fasp:e.fasp,faspHydrated:e.faspHydrated,filter:e.filter,followStatus:e.followStatus,followers:e.followers,following:e.following,groupId:e.groupId,groupMemberRole:e.groupMemberRole,includeRelations:e.includeRelations,lastId:e.lastId,limit:e.limit,offset:e.offset,ownerId:e.ownerId,q:e.q,resolve:e.resolve,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withComments:e.withComments,withParent:e.withParent,htmlContent:e.htmlContent}})}),deleteApiV1SessionsAll:e.mutation({query:()=>({url:"/api/v1/sessions/all",method:"DELETE"})}),getApiV1SessionsList:e.query({query:()=>({url:"/api/v1/sessions/list"})}),putApiV1SessionsRevokeAll:e.mutation({query:()=>({url:"/api/v1/sessions/revoke/all",method:"PUT"})}),putApiV1SessionsRevokeBySessionKey:e.mutation({query:e=>({url:`/api/v1/sessions/revoke/${e.sessionKey}`,method:"PUT"})}),deleteApiV1SessionsBySessionKey:e.mutation({query:e=>({url:`/api/v1/sessions/${e.sessionKey}`,method:"DELETE"})}),putApiV1Settings:e.mutation({query:e=>({url:"/api/v1/settings",method:"PUT",body:e.platformSettings})}),getApiV1Settings:e.query({query:e=>({url:"/api/v1/settings",params:{keys:e.keys}})}),deleteApiV1Settings:e.mutation({query:e=>({url:"/api/v1/settings",method:"DELETE",params:{keys:e.keys}})}),getApiV1SettingsNames:e.query({query:e=>({url:"/api/v1/settings/names",params:{type:e.type}})}),putApiV1SettingsUser:e.mutation({query:e=>({url:"/api/v1/settings/user",method:"PUT",body:e.userSettings})}),getApiV1SettingsUser:e.query({query:e=>({url:"/api/v1/settings/user",params:{keys:e.keys}})}),deleteApiV1SettingsUser:e.mutation({query:e=>({url:"/api/v1/settings/user",method:"DELETE",params:{keys:e.keys}})}),getApiV1TagsFeatured:e.query({query:e=>({url:"/api/v1/tags/featured",params:{scope:e.scope,userId:e.userId}})}),deleteApiV1TagsFeaturedByName:e.mutation({query:e=>({url:`/api/v1/tags/featured/${e.name}`,method:"DELETE",params:{scope:e.scope}})}),postApiV1TagsFeaturedByName:e.mutation({query:e=>({url:`/api/v1/tags/featured/${e.name}`,method:"POST",params:{scope:e.scope}})}),postApiV1TagsFollowByName:e.mutation({query:e=>({url:`/api/v1/tags/follow/${e.name}`,method:"POST",params:{scope:e.scope}})}),getApiV1TagsFollowed:e.query({query:e=>({url:"/api/v1/tags/followed",params:{scope:e.scope}})}),putApiV1TagsList:e.mutation({query:e=>({url:"/api/v1/tags/list",method:"PUT",body:e.body,params:{scope:e.scope,soft:e.soft,type:e.type}})}),patchApiV1TagsList:e.mutation({query:e=>({url:"/api/v1/tags/list",method:"PATCH",body:e.body,params:{scope:e.scope,soft:e.soft,type:e.type}})}),getApiV1TagsList:e.query({query:e=>({url:"/api/v1/tags/list",params:{scope:e.scope,soft:e.soft,type:e.type}})}),deleteApiV1TagsList:e.mutation({query:e=>({url:"/api/v1/tags/list",method:"DELETE",body:e.body,params:{scope:e.scope,soft:e.soft,type:e.type}})}),putApiV1TagsPolicy:e.mutation({query:e=>({url:"/api/v1/tags/policy",method:"PUT",body:e.setTagPolicyRequest,params:{scope:e.scope}})}),getApiV1TagsPolicy:e.query({query:e=>({url:"/api/v1/tags/policy",params:{scope:e.scope}})}),postApiV1TagsReport:e.mutation({query:e=>({url:"/api/v1/tags/report",method:"POST",body:e.createTagReportRequest,params:{name:e.name,scope:e.scope}})}),getApiV1TagsReports:e.query({query:e=>({url:"/api/v1/tags/reports",params:{scope:e.scope}})}),getApiV1TagsSearch:e.query({query:e=>({url:"/api/v1/tags/search",params:{limit:e.limit,name:e.name,offset:e.offset,scope:e.scope}})}),getApiV1TagsTrending:e.query({query:e=>({url:"/api/v1/tags/trending",params:{limit:e.limit,offset:e.offset,scope:e.scope,sortBy:e.sortBy,sortOrder:e.sortOrder}})}),postApiV1TagsUnfollowByName:e.mutation({query:e=>({url:`/api/v1/tags/unfollow/${e.name}`,method:"POST",params:{scope:e.scope}})}),getApiV1TagsByName:e.query({query:e=>({url:`/api/v1/tags/${e.name}`,params:{historySince:e.historySince,scope:e.scope}})}),postApiV1TranslateText:e.mutation({query:e=>({url:"/api/v1/translate/text",method:"POST",body:e.translationRequest})}),getApiV1TrendsLinks:e.query({query:()=>({url:"/api/v1/trends/links"})}),getApiV1TrendsPosts:e.query({query:e=>({url:"/api/v1/trends/posts",params:{htmlContent:e.htmlContent}})}),getApiV1TrendsTags:e.query({query:e=>({url:"/api/v1/trends/tags",params:{scope:e.scope}})}),postApiV1Uploads:e.mutation({query:e=>({url:"/api/v1/uploads",method:"POST",body:e.createUpload})}),postApiV1UploadsBatch:e.mutation({query:e=>({url:"/api/v1/uploads/batch",method:"POST",body:e.body})}),postApiV1UploadsList:e.mutation({query:e=>({url:"/api/v1/uploads/list",method:"POST",body:e.uploadList})}),getApiV1UploadsSearch:e.query({query:e=>({url:"/api/v1/uploads/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,uploadType:e.uploadType}})}),getApiV1UploadsUsages:e.query({query:e=>({url:"/api/v1/uploads/usages",params:{ids:e.ids}})}),getApiV1UploadsById:e.query({query:e=>({url:`/api/v1/uploads/${e.id}`})}),deleteApiV1UploadsById:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}`,method:"DELETE"})}),postApiV1UploadsByIdMeta:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/meta`,method:"POST",body:e.body})}),putApiV1UploadsByIdMeta:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/meta`,method:"PUT",body:e.body})}),postApiV1UploadsByIdPrivacy:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/privacy`,method:"POST",body:e.updateUploadPrivacy})}),postApiV1UploadsByIdTags:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/tags`,method:"POST",body:e.body})}),putApiV1UploadsByIdTags:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/tags`,method:"PUT",body:e.body})}),postApiV1UploadsByIdThumbnail:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/thumbnail`,method:"POST",body:e.changeVideoThumbnail})}),getApiV1UserAlias:e.query({query:()=>({url:"/api/v1/user-alias"})}),deleteApiV1UserAlias:e.mutation({query:e=>({url:"/api/v1/user-alias",method:"DELETE",params:{uri:e.uri}})}),postApiV1UserAlias:e.mutation({query:e=>({url:"/api/v1/user-alias",method:"POST",params:{acct:e.acct}})}),getApiV1UserDomainBlock:e.query({query:()=>({url:"/api/v1/user-domain-block"})}),deleteApiV1UserDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/user-domain-block/${e.domain}`,method:"DELETE"})}),postApiV1UserDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/user-domain-block/${e.domain}`,method:"POST"})}),deleteApiV1Users:e.mutation({query:e=>({url:"/api/v1/users",method:"DELETE",params:{id:e.id,name:e.name}})}),postApiV1Users:e.mutation({query:e=>({url:"/api/v1/users",method:"POST",body:e.userCreate,params:{htmlContent:e.htmlContent}})}),getApiV1Users:e.query({query:e=>({url:"/api/v1/users",params:{full:e.full,includeBlockedByStatus:e.includeBlockedByStatus,includeBlockedStatus:e.includeBlockedStatus,includeFollowedStatus:e.includeFollowedStatus,includeFollowingStatus:e.includeFollowingStatus,includeMutedStatus:e.includeMutedStatus,relations:e.relations,username:e.username,htmlContent:e.htmlContent}})}),getApiV1UsersConnections:e.query({query:e=>({url:"/api/v1/users/connections",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),postApiV1UsersFollowByUsername:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}`,method:"POST",params:{domain:e.domain,mutual:e.mutual,scheme:e.scheme}})}),postApiV1UsersFollowByUsernameAccept:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/accept`,method:"POST"})}),postApiV1UsersFollowByUsernamePend:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/pend`,method:"POST"})}),postApiV1UsersFollowByUsernameReject:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/reject`,method:"POST"})}),postApiV1UsersFollowByUsernameUndo:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/undo`,method:"POST",params:{domain:e.domain,mutual:e.mutual,scheme:e.scheme}})}),getApiV1UsersFollowees:e.query({query:e=>({url:"/api/v1/users/followees",params:{anyStatus:e.anyStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersFollowers:e.query({query:e=>({url:"/api/v1/users/followers",params:{anyStatus:e.anyStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteLinks:e.query({query:e=>({url:"/api/v1/users/invite-links",params:{active:e.active,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1UsersInviteLinks:e.mutation({query:e=>({url:"/api/v1/users/invite-links",method:"POST",body:e.signupInviteLinkCreate})}),putApiV1UsersInviteLinksDeactivateByCode:e.mutation({query:e=>({url:`/api/v1/users/invite-links/deactivate/${e.code}`,method:"PUT"})}),getApiV1UsersProfile:e.query({query:e=>({url:"/api/v1/users/profile",params:{htmlContent:e.htmlContent}})}),getApiV1UsersRelationships:e.query({query:e=>({url:"/api/v1/users/relationships",params:{filter:e.filter,targets:e.targets}})}),getApiV1UsersRemoteByUserNameFullFollowers:e.query({query:e=>({url:`/api/v1/users/remote/${e.userNameFull}/followers`,params:{limit:e.limit,offset:e.offset}})}),getApiV1UsersRemoteByUserNameFullFollowing:e.query({query:e=>({url:`/api/v1/users/remote/${e.userNameFull}/following`,params:{limit:e.limit,offset:e.offset}})}),getApiV1UsersRenameHistory:e.query({query:()=>({url:"/api/v1/users/rename-history"})}),putApiV1UsersByUserId:e.mutation({query:e=>({url:`/api/v1/users/${e.userId}`,method:"PUT",body:e.userUpdate,params:{htmlContent:e.htmlContent}})}),getApiV1UsersByUserId:e.query({query:e=>({url:`/api/v1/users/${e.userId}`,params:{full:e.full,includeBlockedByStatus:e.includeBlockedByStatus,includeBlockedStatus:e.includeBlockedStatus,includeFollowedStatus:e.includeFollowedStatus,includeFollowingStatus:e.includeFollowingStatus,includeMutedStatus:e.includeMutedStatus,relations:e.relations,htmlContent:e.htmlContent}})}),getApiV1UsersByUserIdFollowers:e.query({query:e=>({url:`/api/v1/users/${e.userId}/followers`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1UsersByUserIdFollowing:e.query({query:e=>({url:`/api/v1/users/${e.userId}/following`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),putApiV1UsersByUserIdMedia:e.mutation({query:e=>({url:`/api/v1/users/${e.userId}/media`,method:"PUT",body:e.userUpdateMedia,params:{htmlContent:e.htmlContent}})}),getRoot:e.query({query:e=>({url:"/",params:{format:e.format}})}),getUser:e.query({query:e=>({url:`/@${e.username}`,params:{format:e.format}})}),getUserEvent:e.query({query:e=>({url:`/@${e.username}/events/${e.eventId}`,params:{format:e.format}})}),getUserPost:e.query({query:e=>({url:`/@${e.username}/posts/${e.postId}`,params:{format:e.format}})}),getAbout:e.query({query:e=>({url:"/about",params:{format:e.format}})}),getFeed:e.query({query:e=>({url:"/feed",params:{format:e.format}})}),getFeedDiscover:e.query({query:e=>({url:"/feed/discover",params:{format:e.format}})}),getFeedFollowing:e.query({query:e=>({url:"/feed/following",params:{format:e.format}})}),getGroup:e.query({query:e=>({url:`/g/${e.groupName}`,params:{format:e.format}})}),getGroupChannel:e.query({query:e=>({url:`/g/${e.groupName}/@${e.channelName}`,params:{format:e.format}})}),getGroupChannelPost:e.query({query:e=>({url:`/g/${e.groupName}/@${e.channelName}/posts/${e.postId}`,params:{format:e.format}})}),getGroupEvent:e.query({query:e=>({url:`/g/${e.groupName}/events/${e.eventId}`,params:{format:e.format}})}),getGroupForumCategory:e.query({query:e=>({url:`/g/${e.groupName}/forum/c/${e.categoryName}`,params:{format:e.format}})}),getGroupForumPost:e.query({query:e=>({url:`/g/${e.groupName}/forum/posts/${e.postId}`,params:{format:e.format}})}),getForumTag:e.query({query:e=>({url:`/g/${e.groupName}/forum/tag/${e.tagName}`,params:{format:e.format}})}),getPrivacy:e.query({query:e=>({url:"/privacy",params:{format:e.format}})}),getTerms:e.query({query:e=>({url:"/terms",params:{format:e.format}})})}),overrideExisting:!1}),RX={data:null,isPending:!1,isSuccess:!1},PX=So({name:"userNoHTML",initialState:RX,reducers:{setUser:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectUser:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),DA={data:null,isError:!1,isPending:!1,isSuccess:!1},TX=So({name:"user",initialState:DA,reducers:{reset:e=>{Object.assign(e,DA)}},extraReducers:e=>{e.addCase(kK,((e,{payload:t})=>{e.data=t})).addCase(DK,((e,{payload:t})=>{e.data&&Object.assign(e.data,t||{})})).addCase(AK,((e,{payload:t})=>{e.isSuccess=t})).addCase(OK,((e,{payload:t})=>{e.isPending=t})).addCase(TK,((e,{payload:t})=>{e.isError=t})).addCase(PK,((e,{payload:t})=>{e.error=t})).addCase(NK,((e,{payload:t})=>{var n;null!=(n=e.data)&&n.users&&(e.data.users=e.data.users.map((e=>t.id===e.id?t:e)))}))},selectors:{selectIsError:e=>e.isError,selectError:e=>e.error,selectPending:e=>e.isPending,selectData:e=>e.data,selectAccount:e=>{var t;return null==(t=e.data)?void 0:t.account},selectAccountId:e=>{var t;return null==(t=e.data)?void 0:t.account.id},selectUsers:e=>{var t;return null==(t=e.data)?void 0:t.users},selectUserById:(e,t)=>{var n;return null==(n=e.data)?void 0:n.users.find((({id:e})=>e===t))},selectCurrentUser:e=>{var t;return null==(t=e.data)?void 0:t.users.find((({id:t})=>{var n;return t===(null==(n=e.data)?void 0:n.selectedUserId)}))},selectSelectedUserId:e=>{var t;return null==(t=e.data)?void 0:t.selectedUserId},selectSuccess:e=>e.isSuccess}});var VA;const OX={value:(null==(VA=e$())?void 0:VA.initialState)??null},AX=So({name:"initialState",initialState:OX,reducers:{setInitialState:(e,t)=>{e.value=t.payload},clearInitialState:e=>{e.value=null}},selectors:{selectInitialState:e=>e.value}}),t$=e=>e,i0=Zn(t$,(e=>e.data)),kX=Zn(t$,(e=>e.error)),DX=Zn(t$,(e=>e.isPending)),NX=Zn(i0,(e=>null==e?void 0:e.rules)),MX=Zn(i0,(e=>null==e?void 0:e.contact_account)),LX=Zn(i0,(e=>(null==e?void 0:e.stats)&&Object.fromEntries(Object.entries(e.stats).map((([e,t])=>[e,t??0]))))),FX={data:null,isPending:!1},BX=So({name:"instanceInfo",initialState:FX,reducers:{},extraReducers:e=>{e.addCase(GK,((e,{payload:t})=>{e.data=t})).addCase(HK,((e,{payload:t})=>{e.isPending=t})).addCase(KK,((e,{payload:t})=>{e.error=t}))},selectors:{selectInstanceInfo:i0,selectInstanceInfoError:kX,selectInstanceInfoPending:DX,selectPlatformRules:NX,selectInstanceContacts:MX,selectInstanceStats:LX,selectDescription:e=>{var t;return null==(t=e.data)?void 0:t.description},selectStats:e=>{var t;return null==(t=e.data)?void 0:t.stats},selectRegistrations:e=>{var t;return null==(t=e.data)?void 0:t.configuration.registrations}}}),jX={data:null,isPending:!1,isSuccess:!1},VX=So({name:"profileSettings",initialState:jX,reducers:{setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},extraReducers:e=>{e.addCase(YK,((e,{payload:t})=>{e.data=t}))},selectors:{selectProfileSettings:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),UX={sms:"wellesley.admin.sms",openai:"wellesley.admin.openai",uploads:"wellesley.admin.uploads",captcha:"wellesley.admin.captcha",language:"wellesley.admin.language",mediacache:"wellesley.admin.mediacache",translation:"wellesley.admin.translation",link_service:"wellesley.admin.link_service"},uE={posts:"wellesley.posts",translation:"wellesley.translation",registration:"wellesley.registration",confirmationCode:"wellesley.confirmationCode",uploadsPolicyDoc:"wellesley.uploads.policy.doc",uploadsPolicyAudio:"wellesley.uploads.policy.audio",uploadsPolicyImage:"wellesley.uploads.policy.image",uploadsPolicyVideo:"wellesley.uploads.policy.video",captcha:"wellesley.captcha",access:"wellesley.access",branding:"wellesley.branding",instanceAdmin:"wellesley.instance.admin",legal:"wellesley.instance.legal",domainBlocks:"wellesley.instance.domainBlocks",contacts:"wellesley.instance.contacts"},Rh=e=>(null==e?void 0:e.map((e=>e.value||e)))||[],zX={data:null,isPending:!1},{posts:gS,uploadsPolicyDoc:NA,uploadsPolicyAudio:yS,uploadsPolicyImage:zg,uploadsPolicyVideo:Qm,registration:U3,captcha:WX,instanceAdmin:qX,branding:GX,translation:HX,domainBlocks:KX,access:QX}=uE,{captcha:YX,language:XX,translation:JX,openai:ZX,link_service:eJ}=UX,up=e=>e.data,tJ=Zn(up,(e=>{var t,n,r;return{max_characters:(null==(t=null==e?void 0:e[gS])?void 0:t.max_characters)||0,max_media_attachments:(null==(n=null==e?void 0:e[gS])?void 0:n.max_media_attachments)||0,max_pins:(null==(r=null==e?void 0:e[gS])?void 0:r.max_pins)||0}})),n$=Zn(up,(e=>{var t,n,r;return{...null==e?void 0:e[zg],maxSize:(null==(t=null==e?void 0:e[zg])?void 0:t.maxSize)||0,maxMatrix:(null==(n=null==e?void 0:e[zg])?void 0:n.maxMatrix)||0,maxResolution:(null==(r=null==e?void 0:e[zg])?void 0:r.maxResolution)||0}})),nJ=Zn(n$,(e=>Rh(e.extensions))),r$=Zn(up,(e=>{var t,n,r,o;return{...null==e?void 0:e[Qm],maxSize:(null==(t=null==e?void 0:e[Qm])?void 0:t.maxSize)||0,maxMatrix:(null==(n=null==e?void 0:e[Qm])?void 0:n.maxMatrix)||0,maxDuration:(null==(r=null==e?void 0:e[Qm])?void 0:r.maxDuration)||0,maxResolution:(null==(o=null==e?void 0:e[Qm])?void 0:o.maxResolution)||0}})),rJ=Zn(r$,(e=>Rh(e.extensions))),z3=Zn(up,(e=>{var t,n;return{...null==e?void 0:e[yS],maxSize:null==(t=null==e?void 0:e[yS])?void 0:t.maxSize,keepOriginal:(null==(n=null==e?void 0:e[yS])?void 0:n.keepOriginal)||0}})),W3=Zn(up,(e=>{var t;return{...null==e?void 0:e[NA],maxSize:(null==(t=null==e?void 0:e[NA])?void 0:t.maxSize)||0}})),q3=Zn([n$,r$,z3,W3],((e,t,n,r)=>({IMAGE:Rh(null==e?void 0:e.extensions),VIDEO:Rh(null==t?void 0:t.extensions),AUDIO:Rh(null==n?void 0:n.extensions),DOCUMENT:Rh(null==r?void 0:r.extensions)}))),oJ=Zn(q3,(e=>Object.keys(e).reduce(((t,n)=>[...t,...e[n]||[]]),[]))),iJ=Zn(up,(e=>{var t;return null==(t=null==e?void 0:e[U3])?void 0:t.invites})),aJ=So({name:"platformSettings",initialState:zX,reducers:{setError:(e,t)=>{e.error=t.payload},setPending:(e,t)=>{e.isPending=t.payload}},extraReducers:e=>{e.addCase(QK,((e,{payload:t})=>{e.data={...e.data,...t}}))},selectors:{selectSettings:up,selectPostConfig:tJ,selectDocPolicy:W3,selectImagePolicy:n$,selectVideoPolicy:r$,selectAudioPolicy:z3,selectInvitesEnabled:iJ,selectImageExtensions:nJ,selectVideoExtensions:rJ,selectSupportedExtensions:q3,selectFullExtensionsList:oJ,selectRegistration:e=>{var t;return null==(t=e.data)?void 0:t[U3]},selectLanguageDetection:e=>{var t;return null==(t=e.data)?void 0:t[XX]},selectLanguageTranslation:e=>{var t;return null==(t=e.data)?void 0:t[JX]},selectOpenai:e=>{var t;return null==(t=e.data)?void 0:t[ZX]},selectCaptcha:e=>{var t;return null==(t=e.data)?void 0:t[WX]},selectAdminCaptcha:e=>{var t;return null==(t=e.data)?void 0:t[YX]},selectPlatformTranslation:e=>{var t;return null==(t=e.data)?void 0:t[HX]},selectAccess:e=>{var t;return null==(t=e.data)?void 0:t[QX]},selectBranding:e=>{var t;return null==(t=e.data)?void 0:t[GX]},selectLinkService:e=>{var t;return null==(t=e.data)?void 0:t[eJ]},selectInstanceAdmin:e=>{var t;return null==(t=e.data)?void 0:t[qX]},selectLegal:e=>{var t;return null==(t=e.data)?void 0:t[uE.legal]},selectDomainBlocks:e=>{var t;return null==(t=e.data)?void 0:t[KX]},selectContacts:e=>{var t;return null==(t=e.data)?void 0:t[uE.contacts]}}}),MA={data:{userId:"",list:[]},count:{},isPending:!1},sJ=e=>e,uJ=e=>e.error,lJ=e=>e.isPending,cJ=e=>{var t;return null==(t=e.count)?void 0:t.total},dJ=e=>{var t;return null==(t=e.count)?void 0:t.unread},fJ=e=>e.data.userId,o$=Zn(sJ,(e=>e.data.list)),pJ=Zn(o$,(e=>null==e?void 0:e.filter((e=>"UNREAD"===e.status)))),hJ=Zn(o$,(e=>null==e?void 0:e.at(-1))),mJ=So({name:"notifications",initialState:MA,reducers:{updateNotification:(e,t)=>{var n;if(!e.data.list)return;const r=t.payload;e.data.list=null==(n=e.data.list)?void 0:n.map((e=>e.id===r.id?{...e,...r}:e))},readAll:e=>{var t;e.data.list&&(e.data.list=null==(t=e.data.list)?void 0:t.map((e=>({...e,status:"READ"}))))}},extraReducers:e=>{e.addCase(jK,((e,t)=>{e.isPending=t.payload})).addCase(FK,((e,t)=>{e.error=t.payload})).addCase(BK,((e,t)=>{const n=t.payload.userId,r=t.payload.list;e.data={userId:n,list:[...e.data.list||[],...r.filter((t=>{var n;return!(null!=(n=e.data.list)&&n.some((e=>e.id===t.id)))}))]}})).addCase(MK,((e,t)=>{e.count.unread=(e.count.unread||0)+1,e.data.list&&(e.data.list=[t.payload,...e.data.list||[]])})).addCase(LK,((e,t)=>{e.data.list&&(e.data.list=e.data.list.map((e=>e.id===t.payload.id?{...e,status:t.payload.status}:e)))})).addCase(VK,((e,t)=>{e.count.total=t.payload})).addCase(UK,((e,t)=>{e.count.unread=t.payload})).addCase(WK,(()=>MA)).addCase(qK,((e,t)=>{var n,r,o;const i=t.payload;"UNREAD"===(null==(r=null==(n=e.data.list)?void 0:n.find((e=>e.id===i)))?void 0:r.status)&&e.count.unread&&(e.count.unread-=1),e.data.list=(null==(o=e.data.list)?void 0:o.filter((e=>e.id!==i)))||[]})).addCase(zK,(e=>{e.data.list&&(e.data.list=e.data.list.map((e=>"FOLLOW_REQUEST"===e.type?{...e,followResponse:"Accepted"}:e)))}))},selectors:{selectError:uJ,selectIsPending:lJ,selectTotalCount:cJ,selectUnreadCount:dJ,selectNotifications:o$,selectUnreadNotifications:pJ,selectLastNotification:hJ,selectNotificationsOwner:fJ}});function vJ(){return!(typeof navigator<"u"&&"boolean"==typeof navigator.onLine)||navigator.onLine}const gJ={isOnline:vJ()},yJ=So({name:"network",initialState:gJ,reducers:{setOnline:(e,{payload:t})=>{e.isOnline=t}},selectors:{selectOnline:e=>e.isOnline}}),wJ=W5(IX,yJ,h3,f2,TX,PX,AX,BX,mJ,VX,aJ);Un("app/hydrate");const _J=()=>window._wlsy_store,G3=(e,t)=>(null!=t&&t.props&&!jf.isNumber(e)?dY(e,null==t?void 0:t.props):e)+fY(null==t?void 0:t.queryParams),bJ=e=>!(null==e||!e.target);function xJ(e,t){const n=G3(e,t);if(bJ(t)&&"_blank"===t.target){const{origin:e}=new URL(document.referrer||window.location.origin),t=n.includes("://")?n:e+n;window.open(t,"_blank")}else _J().dispatch(d3(n))}const SJ=()=>xJ,EJ=({to:e,props:t,children:n,target:r,queryParams:o,className:i,disabled:a,onClick:u,...s})=>{const l=SJ(),c=G3(e,{queryParams:o,props:t}),{baseUrl:d}=V3.get(),f=r?c:`${d}${c}`;return G.jsx("a",{href:f,target:r,onClick:n=>{n.preventDefault(),!a&&(null==u||u(n),l(e,{queryParams:o,props:t,target:n.ctrlKey||n.metaKey?"_blank":r}))},className:i,...s,children:n})};
|
|
87
|
+
*/function zF(){if(fR)return nn;fR=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case r:case i:case o:case c:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case l:case p:case f:case a:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),nn.ContextConsumer=u,nn.ContextProvider=a,nn.Element=t,nn.ForwardRef=l,nn.Fragment=r,nn.Lazy=p,nn.Memo=f,nn.Portal=n,nn.Profiler=i,nn.StrictMode=o,nn.Suspense=c,nn.SuspenseList=d,nn.isAsyncMode=function(){return!1},nn.isConcurrentMode=function(){return!1},nn.isContextConsumer=function(e){return h(e)===u},nn.isContextProvider=function(e){return h(e)===a},nn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},nn.isForwardRef=function(e){return h(e)===l},nn.isFragment=function(e){return h(e)===r},nn.isLazy=function(e){return h(e)===p},nn.isMemo=function(e){return h(e)===f},nn.isPortal=function(e){return h(e)===n},nn.isProfiler=function(e){return h(e)===i},nn.isStrictMode=function(e){return h(e)===o},nn.isSuspense=function(e){return h(e)===c},nn.isSuspenseList=function(e){return h(e)===d},nn.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===c||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===u||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},nn.typeOf=h,nn}function WF(){return pR||(pR=1,e_.exports=zF()),e_.exports}function Dk(){if(hR)return t_;hR=1;var e=Il(),t=ta();return t_=function(n){return"number"==typeof n||t(n)&&"[object Number]"==e(n)}}function qF(){if(mR)return n_;mR=1;var e=Dk();return n_=function(t){return e(t)&&t!=+t}}WF(),qF(),Dk();var o_,vR,i_,gR,a_,yR,s_,wR,u_,_R,l_,bR,c_,xR,d_,SR,f_,ER,p_,CR,h_,$R,m_,IR,v_,RR,g_,PR,y_,TR,w_,OR,__,AR,b_,kR,x_,DR,S_,NR,E_,MR,C_,LR,$_,FR,I_,BR,Rg=function(e){return UF(e)&&e.indexOf("%")===e.length-1},GF=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},r_=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o]};function HF(){if(vR)return o_;vR=1;var e=ky();return o_=function(){this.__data__=new e,this.size=0}}function KF(){if(gR)return i_;return gR=1,i_=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}}function QF(){if(yR)return a_;return yR=1,a_=function(e){return this.__data__.get(e)}}function YF(){if(wR)return s_;return wR=1,s_=function(e){return this.__data__.has(e)}}function XF(){if(_R)return u_;_R=1;var e=ky(),t=zE(),n=WE();return u_=function(r,o){var i=this.__data__;if(i instanceof e){var a=i.__data__;if(!t||a.length<199)return a.push([r,o]),this.size=++i.size,this;i=this.__data__=new n(a)}return i.set(r,o),this.size=i.size,this}}function qE(){if(bR)return l_;bR=1;var e=ky(),t=HF(),n=KF(),r=QF(),o=YF(),i=XF();function a(t){var n=this.__data__=new e(t);this.size=n.size}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=o,a.prototype.set=i,l_=a}function JF(){if(xR)return c_;xR=1;return c_=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}}function ZF(){if(SR)return d_;return SR=1,d_=function(e){return this.__data__.has(e)}}function eB(){if(ER)return f_;ER=1;var e=WE(),t=JF(),n=ZF();function r(t){var n=-1,r=null==t?0:t.length;for(this.__data__=new e;++n<r;)this.add(t[n])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,f_=r}function tB(){if(CR)return p_;return CR=1,p_=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}}function nB(){if($R)return h_;return $R=1,h_=function(e,t){return e.has(t)}}function Nk(){if(IR)return m_;IR=1;var e=eB(),t=tB(),n=nB();return m_=function(r,o,i,a,u,s){var l=1&i,c=r.length,d=o.length;if(c!=d&&!(l&&d>c))return!1;var f=s.get(r),p=s.get(o);if(f&&p)return f==o&&p==r;var m=-1,h=!0,v=2&i?new e:void 0;for(s.set(r,o),s.set(o,r);++m<c;){var g=r[m],y=o[m];if(a)var b=l?a(y,g,m,o,r,s):a(g,y,m,r,o,s);if(void 0!==b){if(b)continue;h=!1;break}if(v){if(!t(o,(function(e,t){if(!n(v,t)&&(g===e||u(g,e,i,a,s)))return v.push(t)}))){h=!1;break}}else if(g!==y&&!u(g,y,i,a,s)){h=!1;break}}return s.delete(r),s.delete(o),h}}function Mk(){if(RR)return v_;RR=1;var e=ri().Uint8Array;return v_=e}function rB(){if(PR)return g_;return PR=1,g_=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}}function oB(){if(TR)return y_;return TR=1,y_=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}}function iB(){if(OR)return w_;OR=1;var e=Uh(),t=Mk(),n=UE(),r=Nk(),o=rB(),i=oB(),a=e?e.prototype:void 0,u=a?a.valueOf:void 0;return w_=function(e,a,s,l,c,d,f){switch(s){case"[object DataView]":if(e.byteLength!=a.byteLength||e.byteOffset!=a.byteOffset)return!1;e=e.buffer,a=a.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=a.byteLength||!d(new t(e),new t(a)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+e,+a);case"[object Error]":return e.name==a.name&&e.message==a.message;case"[object RegExp]":case"[object String]":return e==a+"";case"[object Map]":var p=o;case"[object Set]":var m=1&l;if(p||(p=i),e.size!=a.size&&!m)return!1;var h=f.get(e);if(h)return h==a;l|=2,f.set(e,a);var v=r(p(e),p(a),l,c,d,f);return f.delete(e),v;case"[object Symbol]":if(u)return u.call(e)==u.call(a)}return!1}}function GE(){if(AR)return __;return AR=1,__=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}}function Lk(){if(kR)return b_;kR=1;var e=GE(),t=Ei();return b_=function(n,r,o){var i=r(n);return t(n)?i:e(i,o(n))}}function aB(){if(DR)return x_;return DR=1,x_=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}}function Fk(){if(NR)return S_;return NR=1,S_=function(){return[]}}function HE(){if(MR)return E_;MR=1;var e=aB(),t=Fk(),n=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols;return E_=r?function(t){return null==t?[]:(t=Object(t),e(r(t),(function(e){return n.call(t,e)})))}:t}function sB(){if(LR)return C_;return LR=1,C_=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}}function uB(){if(FR)return $_;FR=1;var e=Il(),t=ta();return $_=function(n){return t(n)&&"[object Arguments]"==e(n)}}function KE(){if(BR)return I_;BR=1;var e=uB(),t=ta(),n=Object.prototype,r=n.hasOwnProperty,o=n.propertyIsEnumerable,i=e(function(){return arguments}())?e:function(e){return t(e)&&r.call(e,"callee")&&!o.call(e,"callee")};return I_=i}var R_,jR,VR,P_,UR,T_,zR,O_,WR,A_,qR,Jm={exports:{}};function lB(){if(jR)return R_;return jR=1,R_=function(){return!1}}function QE(){return VR||(VR=1,e=Jm,t=Jm.exports,n=ri(),r=lB(),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,u=(a?a.isBuffer:void 0)||r,e.exports=u),Jm.exports;var e,t,n,r,o,i,a,u}function YE(){if(UR)return P_;UR=1;var e=/^(?:0|[1-9]\d*)$/;return P_=function(t,n){var r=typeof t;return!!(n=n??9007199254740991)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}}function XE(){if(zR)return T_;zR=1;return T_=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}function cB(){if(WR)return O_;WR=1;var e=Il(),t=XE(),n=ta(),r={};return r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,O_=function(o){return n(o)&&t(o.length)&&!!r[e(o)]}}function JE(){if(qR)return A_;return qR=1,A_=function(e){return function(t){return e(t)}}}Jm.exports;var GR,k_,HR,D_,KR,N_,QR,M_,YR,L_,XR,F_,JR,B_,ZR,j_,eP,V_,tP,U_,nP,z_,rP,W_,oP,q_,iP,G_,aP,H_,sP,K_,uP,Q_,lP,Y_,cP,X_,dP,J_,fP,Z_,pP,eb,hP,tb,mP,nb,vP,rb,gP,ob,yP,ib,wP,ab,_P,sb,bP,ub,xP,lb,SP,cb,EP,db,CP,fb,$P,pb,IP,hb,RP,mb,PP,vb,TP,gb,OP,yb,AP,wb,kP,_b,DP,bb,NP,xb,MP,Sb,LP,Eb,FP,Cb,BP,$b,jP,Ib,VP,Rb,UP,Pb,zP,Tb,WP,Zm={exports:{}};function ZE(){return GR||(GR=1,e=Zm,t=Zm.exports,n=$k(),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch{}}(),e.exports=a),Zm.exports;var e,t,n,r,o,i,a}function Bk(){if(HR)return k_;HR=1;var e=cB(),t=JE(),n=ZE(),r=n&&n.isTypedArray,o=r?t(r):e;return k_=o}function jk(){if(KR)return D_;KR=1;var e=sB(),t=KE(),n=Ei(),r=QE(),o=YE(),i=Bk(),a=Object.prototype.hasOwnProperty;return D_=function(u,s){var l=n(u),c=!l&&t(u),d=!l&&!c&&r(u),f=!l&&!c&&!d&&i(u),p=l||c||d||f,m=p?e(u.length,String):[],h=m.length;for(var v in u)(s||a.call(u,v))&&(!p||!("length"==v||d&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||o(v,h)))&&m.push(v);return m}}function eC(){if(QR)return N_;QR=1;var e=Object.prototype;return N_=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}function Vk(){if(YR)return M_;return YR=1,M_=function(e,t){return function(n){return e(t(n))}}}function dB(){if(XR)return L_;XR=1;var e=Vk()(Object.keys,Object);return L_=e}function Uk(){if(JR)return F_;JR=1;var e=eC(),t=dB(),n=Object.prototype.hasOwnProperty;return F_=function(r){if(!e(r))return t(r);var o=[];for(var i in Object(r))n.call(r,i)&&"constructor"!=i&&o.push(i);return o}}function zk(){if(ZR)return B_;ZR=1;var e=Ty(),t=XE();return B_=function(n){return null!=n&&t(n.length)&&!e(n)}}function Ny(){if(eP)return j_;eP=1;var e=jk(),t=Uk(),n=zk();return j_=function(r){return n(r)?e(r):t(r)}}function Wk(){if(tP)return V_;tP=1;var e=Lk(),t=HE(),n=Ny();return V_=function(r){return e(r,n,t)}}function fB(){if(nP)return U_;nP=1;var e=Wk(),t=Object.prototype.hasOwnProperty;return U_=function(n,r,o,i,a,u){var s=1&o,l=e(n),c=l.length;if(c!=e(r).length&&!s)return!1;for(var d=c;d--;){var f=l[d];if(!(s?f in r:t.call(r,f)))return!1}var p=u.get(n),m=u.get(r);if(p&&m)return p==r&&m==n;var h=!0;u.set(n,r),u.set(r,n);for(var v=s;++d<c;){var g=n[f=l[d]],y=r[f];if(i)var b=s?i(y,g,f,r,n,u):i(g,y,f,n,r,u);if(!(void 0===b?g===y||a(g,y,o,i,u):b)){h=!1;break}v||(v="constructor"==f)}if(h&&!v){var w=n.constructor,x=r.constructor;w!=x&&"constructor"in n&&"constructor"in r&&!("function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x)&&(h=!1)}return u.delete(n),u.delete(r),h}}function pB(){if(rP)return z_;rP=1;var e=tp()(ri(),"DataView");return z_=e}function hB(){if(oP)return W_;oP=1;var e=tp()(ri(),"Promise");return W_=e}function mB(){if(iP)return q_;iP=1;var e=tp()(ri(),"Set");return q_=e}function qk(){if(aP)return G_;aP=1;var e=tp()(ri(),"WeakMap");return G_=e}function Bv(){if(sP)return H_;sP=1;var e=pB(),t=zE(),n=hB(),r=mB(),o=qk(),i=Il(),a=Ik(),u="[object Map]",s="[object Promise]",l="[object Set]",c="[object WeakMap]",d="[object DataView]",f=a(e),p=a(t),m=a(n),h=a(r),v=a(o),g=i;return(e&&g(new e(new ArrayBuffer(1)))!=d||t&&g(new t)!=u||n&&g(n.resolve())!=s||r&&g(new r)!=l||o&&g(new o)!=c)&&(g=function(e){var t=i(e),n="[object Object]"==t?e.constructor:void 0,r=n?a(n):"";if(r)switch(r){case f:return d;case p:return u;case m:return s;case h:return l;case v:return c}return t}),H_=g}function vB(){if(uP)return K_;uP=1;var e=qE(),t=Nk(),n=iB(),r=fB(),o=Bv(),i=Ei(),a=QE(),u=Bk(),s="[object Arguments]",l="[object Array]",c="[object Object]",d=Object.prototype.hasOwnProperty;return K_=function(f,p,m,h,v,g){var y=i(f),b=i(p),w=y?l:o(f),x=b?l:o(p),_=(w=w==s?c:w)==c,E=(x=x==s?c:x)==c,S=w==x;if(S&&a(f)){if(!a(p))return!1;y=!0,_=!1}if(S&&!_)return g||(g=new e),y||u(f)?t(f,p,m,h,v,g):n(f,p,w,m,h,v,g);if(!(1&m)){var k=_&&d.call(f,"__wrapped__"),A=E&&d.call(p,"__wrapped__");if(k||A){var C=k?f.value():f,I=A?p.value():p;return g||(g=new e),v(C,I,m,h,g)}}return!!S&&(g||(g=new e),r(f,p,m,h,v,g))}}function Gk(){if(lP)return Q_;lP=1;var e=vB(),t=ta();return Q_=function n(r,o,i,a,u){return r===o||(null==r||null==o||!t(r)&&!t(o)?r!=r&&o!=o:e(r,o,i,a,n,u))},Q_}function gB(){if(cP)return Y_;cP=1;var e=qE(),t=Gk();return Y_=function(n,r,o,i){var a=o.length,u=a,s=!i;if(null==n)return!u;for(n=Object(n);a--;){var l=o[a];if(s&&l[2]?l[1]!==n[l[0]]:!(l[0]in n))return!1}for(;++a<u;){var c=(l=o[a])[0],d=n[c],f=l[1];if(s&&l[2]){if(void 0===d&&!(c in n))return!1}else{var p=new e;if(i)var m=i(d,f,c,n,r,p);if(!(void 0===m?t(f,d,3,i,p):m))return!1}}return!0}}function Hk(){if(dP)return X_;dP=1;var e=ws();return X_=function(t){return t==t&&!e(t)}}function yB(){if(fP)return J_;fP=1;var e=Hk(),t=Ny();return J_=function(n){for(var r=t(n),o=r.length;o--;){var i=r[o],a=n[i];r[o]=[i,a,e(a)]}return r}}function Kk(){if(pP)return Z_;return pP=1,Z_=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}}function wB(){if(hP)return eb;hP=1;var e=gB(),t=yB(),n=Kk();return eb=function(r){var o=t(r);return 1==o.length&&o[0][2]?n(o[0][0],o[0][1]):function(t){return t===r||e(t,r,o)}}}function _B(){if(mP)return tb;return mP=1,tb=function(e,t){return null!=e&&t in Object(e)}}function bB(){if(vP)return nb;vP=1;var e=Ok(),t=KE(),n=Ei(),r=YE(),o=XE(),i=Fv();return nb=function(a,u,s){for(var l=-1,c=(u=e(u,a)).length,d=!1;++l<c;){var f=i(u[l]);if(!(d=null!=a&&s(a,f)))break;a=a[f]}return d||++l!=c?d:!!(c=null==a?0:a.length)&&o(c)&&r(f,c)&&(n(a)||t(a))}}function xB(){if(gP)return rb;gP=1;var e=_B(),t=bB();return rb=function(n,r){return null!=n&&t(n,r,e)}}function SB(){if(yP)return ob;yP=1;var e=Gk(),t=kk(),n=xB(),r=VE(),o=Hk(),i=Kk(),a=Fv();return ob=function(u,s){return r(u)&&o(s)?i(a(u),s):function(r){var o=t(r,u);return void 0===o&&o===s?n(r,u):e(s,o,3)}}}function tC(){if(wP)return ib;return wP=1,ib=function(e){return e}}function EB(){if(_P)return ab;return _P=1,ab=function(e){return function(t){return null==t?void 0:t[e]}}}function CB(){if(bP)return sb;bP=1;var e=Ak();return sb=function(t){return function(n){return e(n,t)}}}function $B(){if(xP)return ub;xP=1;var e=EB(),t=CB(),n=VE(),r=Fv();return ub=function(o){return n(o)?e(r(o)):t(o)}}function IB(){if(SP)return lb;SP=1;var e=wB(),t=SB(),n=tC(),r=Ei(),o=$B();return lb=function(i){return"function"==typeof i?i:null==i?n:"object"==typeof i?r(i)?t(i[0],i[1]):e(i):o(i)}}function RB(){if(EP)return cb;return EP=1,cb=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}}function PB(){if(CP)return db;return CP=1,db=function(e){return e!=e}}function TB(){if($P)return fb;return $P=1,fb=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}}function OB(){if(IP)return pb;IP=1;var e=RB(),t=PB(),n=TB();return pb=function(r,o,i){return o==o?n(r,o,i):e(r,t,i)}}function AB(){if(RP)return hb;RP=1;var e=OB();return hb=function(t,n){return!!(null==t?0:t.length)&&e(t,n,0)>-1}}function kB(){if(PP)return mb;return PP=1,mb=function(){}}function DB(){if(TP)return vb;TP=1;var e=Uh(),t=KE(),n=Ei(),r=e?e.isConcatSpreadable:void 0;return vb=function(e){return n(e)||t(e)||!!(r&&e&&e[r])}}function NB(){if(OP)return gb;OP=1;var e=GE(),t=DB();return gb=function n(r,o,i,a,u){var s=-1,l=r.length;for(i||(i=t),u||(u=[]);++s<l;){var c=r[s];o>0&&i(c)?o>1?n(c,o-1,i,a,u):e(u,c):a||(u[u.length]=c)}return u},gb}function nC(){if(AP)return yb;return AP=1,yb=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}}function MB(){if(kP)return wb;kP=1;var e=nC(),t=Math.max;return wb=function(n,r,o){return r=t(void 0===r?n.length-1:r,0),function(){for(var i=arguments,a=-1,u=t(i.length-r,0),s=Array(u);++a<u;)s[a]=i[r+a];a=-1;for(var l=Array(r+1);++a<r;)l[a]=i[a];return l[r]=o(s),e(n,this,l)}},wb}function LB(){if(DP)return _b;return DP=1,_b=function(e){return function(){return e}}}function Qk(){if(NP)return bb;NP=1;var e=tp(),t=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch{}}();return bb=t}function FB(){if(MP)return xb;MP=1;var e=LB(),t=Qk(),n=tC();return xb=t?function(n,r){return t(n,"toString",{configurable:!0,enumerable:!1,value:e(r),writable:!0})}:n}function Yk(){if(LP)return Sb;LP=1;var e=Date.now;return Sb=function(t){var n=0,r=0;return function(){var o=e(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}},Sb}function Xk(){if(FP)return Eb;FP=1;var e=FB(),t=Yk()(e);return Eb=t}function BB(){if(BP)return Cb;BP=1;var e=ri();return Cb=function(){return e.Date.now()}}function jB(){if(jP)return $b;jP=1;var e=/\s/;return $b=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}}function VB(){if(VP)return Ib;VP=1;var e=jB(),t=/^\s+/;return Ib=function(n){return n&&n.slice(0,e(n)+1).replace(t,"")}}function Jk(){if(UP)return Rb;UP=1;var e=VB(),t=ws(),n=Lv(),r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt;return Rb=function(u){if("number"==typeof u)return u;if(n(u))return NaN;if(t(u)){var s="function"==typeof u.valueOf?u.valueOf():u;u=t(s)?s+"":s}if("string"!=typeof u)return 0===u?u:+u;u=e(u);var l=o.test(u);return l||i.test(u)?a(u.slice(2),l?2:8):r.test(u)?NaN:+u}}function Zk(){if(zP)return Pb;zP=1;var e=ws(),t=BB(),n=Jk(),r=Math.max,o=Math.min;return Pb=function(i,a,u){var s,l,c,d,f,p,m=0,h=!1,v=!1,g=!0;if("function"!=typeof i)throw new TypeError("Expected a function");function y(e){var t=s,n=l;return s=l=void 0,m=e,d=i.apply(n,t)}function b(e){var t=e-p;return void 0===p||t>=a||t<0||v&&e-m>=c}function w(){var e=t();if(b(e))return x(e);f=setTimeout(w,function(e){var t=a-(e-p);return v?o(t,c-(e-m)):t}(e))}function x(e){return f=void 0,g&&s?y(e):(s=l=void 0,d)}function _(){var e=t(),n=b(e);if(s=arguments,l=this,p=e,n){if(void 0===f)return function(e){return m=e,f=setTimeout(w,a),h?y(e):d}(p);if(v)return clearTimeout(f),f=setTimeout(w,a),y(p)}return void 0===f&&(f=setTimeout(w,a)),d}return a=n(a)||0,e(u)&&(h=!!u.leading,c=(v="maxWait"in u)?r(n(u.maxWait)||0,a):c,g="trailing"in u?!!u.trailing:g),_.cancel=function(){void 0!==f&&clearTimeout(f),m=0,s=p=l=f=void 0},_.flush=function(){return void 0===f?d:x(t())},_},Pb}function UB(){if(WP)return Tb;WP=1;var e=Zk(),t=ws();return Tb=function(n,r,o){var i=!0,a=!0;if("function"!=typeof n)throw new TypeError("Expected a function");return t(o)&&(i="leading"in o?!!o.leading:i,a="trailing"in o?!!o.trailing:a),e(n,r,{leading:i,maxWait:r,trailing:a})}}Zm.exports;var zB=UB();const WB=py(zB);function wv(e){return(wv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qP(Object(n),!0).forEach((function(t){qB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qB(e,t,n){return(t=GB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GB(e){var t=HB(e,"string");return"symbol"==wv(t)?t:t+""}function HB(e,t){if("object"!=wv(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=wv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function KB(e,t){return JB(e)||XB(e,t)||YB(e,t)||QB()}function QB(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function YB(e,t){if(e){if("string"==typeof e)return GP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GP(e,t)}}function GP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function XB(e,t){var n=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0!==t)for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}function JB(e){if(Array.isArray(e))return e}var Ob,HP,Ab,KP,kb,QP,Db,YP,Nb,XP,Mb,JP,Lb,ZP,Fb,eT,Bb,tT,jb,nT,Vb,rT,Ub,oT,zb,iT,ZB=m.forwardRef((function(e,t){var n=e.aspect,r=e.initialDimension,o=void 0===r?{width:-1,height:-1}:r,i=e.width,a=void 0===i?"100%":i,u=e.height,s=void 0===u?"100%":u,l=e.minWidth,c=void 0===l?0:l,d=e.minHeight,f=e.maxHeight,p=e.children,h=e.debounce,v=void 0===h?0:h,g=e.id,y=e.className,b=e.onResize,w=e.style,x=void 0===w?{}:w,_=m.useRef(null),E=m.useRef();E.current=b,m.useImperativeHandle(t,(function(){return Object.defineProperty(_.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),_.current},configurable:!0})}));var S=KB(m.useState({containerWidth:o.width,containerHeight:o.height}),2),k=S[0],A=S[1],C=m.useCallback((function(e,t){A((function(n){var r=Math.round(e),o=Math.round(t);return n.containerWidth===r&&n.containerHeight===o?n:{containerWidth:r,containerHeight:o}}))}),[]);m.useEffect((function(){var e=function(e){var t,n=e[0].contentRect,r=n.width,o=n.height;C(r,o),null===(t=E.current)||void 0===t||t.call(E,r,o)};v>0&&(e=WB(e,v,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=_.current.getBoundingClientRect(),r=n.width,o=n.height;return C(r,o),t.observe(_.current),function(){t.disconnect()}}),[C,v]);var I=m.useMemo((function(){var e=k.containerWidth,t=k.containerHeight;if(e<0||t<0)return null;r_(Rg(a)||Rg(s),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",a,s),r_(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=Rg(a)?e:a,o=Rg(s)?t:s;n&&n>0&&(r?o=r/n:o&&(r=o*n),f&&o>f&&(o=f)),r_(r>0||o>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",r,o,a,s,c,d,n);var i=!Array.isArray(p)&&GF(p.type).endsWith("Chart");return We.Children.map(p,(function(e){return We.isValidElement(e)?m.cloneElement(e,Pg({width:r,height:o},i?{style:Pg({height:"100%",width:"100%",maxHeight:o,maxWidth:r},e.props.style)}:{})):e}))}),[n,p,s,f,d,c,k,a]);return We.createElement("div",{id:g?"".concat(g):void 0,className:R2("recharts-responsive-container",y),style:Pg(Pg({},x),{},{width:a,height:s,minWidth:c,minHeight:d,maxHeight:f}),ref:_},I)}));function rC(){if(HP)return Ob;HP=1;var e=Vk()(Object.getPrototypeOf,Object);return Ob=e}function e9(){if(KP)return Ab;KP=1;var e=Il(),t=rC(),n=ta(),r=Function.prototype,o=Object.prototype,i=r.toString,a=o.hasOwnProperty,u=i.call(Object);return Ab=function(r){if(!n(r)||"[object Object]"!=e(r))return!1;var o=t(r);if(null===o)return!0;var s=a.call(o,"constructor")&&o.constructor;return"function"==typeof s&&s instanceof s&&i.call(s)==u}}function t9(){if(QP)return kb;QP=1;var e=Jk(),t=1/0;return kb=function(n){return n?(n=e(n))===t||n===-t?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}}function eD(){if(YP)return Db;YP=1;var e=Qk();return Db=function(t,n,r){"__proto__"==n&&e?e(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}}function tD(){if(XP)return Nb;XP=1;var e=t9();return Nb=function(t){var n=e(t),r=n%1;return n==n?r?n-r:n:0}}function oC(){if(JP)return Mb;return JP=1,Mb=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}}function nD(){if(ZP)return Lb;ZP=1;var e=eD(),t=UE(),n=Object.prototype.hasOwnProperty;return Lb=function(r,o,i){var a=r[o];(!n.call(r,o)||!t(a,i)||void 0===i&&!(o in r))&&e(r,o,i)}}function My(){if(eT)return Fb;eT=1;var e=nD(),t=eD();return Fb=function(n,r,o,i){var a=!o;o||(o={});for(var u=-1,s=r.length;++u<s;){var l=r[u],c=i?i(o[l],n[l],l,o,n):void 0;void 0===c&&(c=n[l]),a?t(o,l,c):e(o,l,c)}return o}}function rD(){if(tT)return Bb;tT=1;var e=My(),t=Ny();return Bb=function(n,r){return n&&e(r,t(r),n)}}function n9(){if(nT)return jb;return nT=1,jb=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}}function r9(){if(rT)return Vb;rT=1;var e=ws(),t=eC(),n=n9(),r=Object.prototype.hasOwnProperty;return Vb=function(o){if(!e(o))return n(o);var i=t(o),a=[];for(var u in o)"constructor"==u&&(i||!r.call(o,u))||a.push(u);return a}}function iC(){if(oT)return Ub;oT=1;var e=jk(),t=r9(),n=zk();return Ub=function(r){return n(r)?e(r,!0):t(r)}}function o9(){if(iT)return zb;iT=1;var e=My(),t=iC();return zb=function(n,r){return n&&e(r,t(r),n)}}var aT,Wb,sT,qb,uT,Gb,lT,Hb,cT,Kb,dT,Qb,fT,Yb,pT,Xb,hT,Jb,mT,Zb,vT,ex,gT,tx,yT,nx,wT,rx,_T,ox,bT,ix,xT,ax,ST,sx,ET,ux,CT,lx,$T,cx,IT,ev={exports:{}};function i9(){return aT||(aT=1,e=ev,t=ev.exports,n=ri(),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r?n.Buffer:void 0,a=i?i.allocUnsafe:void 0,e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}),ev.exports;var e,t,n,r,o,i,a}function Ly(){if(sT)return Wb;return sT=1,Wb=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}}function a9(){if(uT)return qb;uT=1;var e=My(),t=HE();return qb=function(n,r){return e(n,t(n),r)}}function oD(){if(lT)return Gb;lT=1;var e=GE(),t=rC(),n=HE(),r=Fk(),o=Object.getOwnPropertySymbols;return Gb=o?function(r){for(var o=[];r;)e(o,n(r)),r=t(r);return o}:r}function s9(){if(cT)return Hb;cT=1;var e=My(),t=oD();return Hb=function(n,r){return e(n,t(n),r)}}function u9(){if(dT)return Kb;dT=1;var e=Lk(),t=oD(),n=iC();return Kb=function(r){return e(r,n,t)}}function l9(){if(fT)return Qb;fT=1;var e=Object.prototype.hasOwnProperty;return Qb=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}}function aC(){if(pT)return Yb;pT=1;var e=Mk();return Yb=function(t){var n=new t.constructor(t.byteLength);return new e(n).set(new e(t)),n}}function c9(){if(hT)return Xb;hT=1;var e=aC();return Xb=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}}function d9(){if(mT)return Jb;mT=1;var e=/\w*$/;return Jb=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}}function f9(){if(vT)return Zb;vT=1;var e=Uh(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;return Zb=function(e){return n?Object(n.call(e)):{}}}function p9(){if(gT)return ex;gT=1;var e=aC();return ex=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}}function h9(){if(yT)return tx;yT=1;var e=aC(),t=c9(),n=d9(),r=f9(),o=p9();return tx=function(i,a,u){var s=i.constructor;switch(a){case"[object ArrayBuffer]":return e(i);case"[object Boolean]":case"[object Date]":return new s(+i);case"[object DataView]":return t(i,u);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return o(i,u);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(i);case"[object RegExp]":return n(i);case"[object Symbol]":return r(i)}}}function Fy(){if(wT)return nx;wT=1;var e=ws(),t=Object.create;return nx=function(){function n(){}return function(r){if(!e(r))return{};if(t)return t(r);n.prototype=r;var o=new n;return n.prototype=void 0,o}}()}function m9(){if(_T)return rx;_T=1;var e=Fy(),t=rC(),n=eC();return rx=function(r){return"function"!=typeof r.constructor||n(r)?{}:e(t(r))}}function v9(){if(bT)return ox;bT=1;var e=Bv(),t=ta();return ox=function(n){return t(n)&&"[object Map]"==e(n)}}function g9(){if(xT)return ix;xT=1;var e=v9(),t=JE(),n=ZE(),r=n&&n.isMap,o=r?t(r):e;return ix=o}function y9(){if(ST)return ax;ST=1;var e=Bv(),t=ta();return ax=function(n){return t(n)&&"[object Set]"==e(n)}}function w9(){if(ET)return sx;ET=1;var e=y9(),t=JE(),n=ZE(),r=n&&n.isSet,o=r?t(r):e;return sx=o}function iD(){if(CT)return ux;CT=1;var e=qE(),t=oC(),n=nD(),r=rD(),o=o9(),i=i9(),a=Ly(),u=a9(),s=s9(),l=Wk(),c=u9(),d=Bv(),f=l9(),p=h9(),m=m9(),h=Ei(),v=QE(),g=g9(),y=ws(),b=w9(),w=Ny(),x=iC(),_="[object Arguments]",E="[object Function]",S="[object Object]",k={};return k[_]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k[S]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k[E]=k["[object WeakMap]"]=!1,ux=function A(C,I,R,P,T,O){var N,j=1&I,q=2&I,D=4&I;if(R&&(N=T?R(C,P,T,O):R(C)),void 0!==N)return N;if(!y(C))return C;var M=h(C);if(M){if(N=f(C),!j)return a(C,N)}else{var L=d(C),$=L==E||"[object GeneratorFunction]"==L;if(v(C))return i(C,j);if(L==S||L==_||$&&!T){if(N=q||$?{}:m(C),!j)return q?s(C,o(N,C)):u(C,r(N,C))}else{if(!k[L])return T?C:{};N=p(C,L,j)}}O||(O=new e);var B=O.get(C);if(B)return B;O.set(C,N),b(C)?C.forEach((function(e){N.add(A(e,I,R,e,C,O))})):g(C)&&C.forEach((function(e,t){N.set(t,A(e,I,R,t,C,O))}));var V=M?void 0:(D?q?c:l:q?x:w)(C);return t(V||C,(function(e,t){V&&(e=C[t=e]),n(N,t,A(e,I,R,t,C,O))})),N},ux}function _9(){if($T)return lx;$T=1;var e=NB();return lx=function(t){return(null==t?0:t.length)?e(t,1):[]}}function b9(){if(IT)return cx;IT=1;var e=_9(),t=MB(),n=Xk();return cx=function(r){return n(t(r,void 0,e),r+"")}}ev.exports;const x9={light:"",dark:".dark"},aD=m.createContext(null);function sD(){const e=m.useContext(aD);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const S9=m.forwardRef((({id:e,className:t,children:n,config:r,...o},i)=>{const a=m.useId(),u=`chart-${e||a.replace(/:/g,"")}`;return G.jsx(aD.Provider,{value:{config:r},children:G.jsxs("div",{"data-chart":u,ref:i,className:we("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",t),...o,children:[G.jsx(E9,{id:u,config:r}),G.jsx(ZB,{children:n})]})})}));S9.displayName="Chart";const E9=({id:e,config:t})=>{const n=Object.entries(t).filter((([,e])=>e.theme||e.color));return n.length?G.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(x9).map((([t,r])=>`\n${r} [data-chart=${e}] {\n${n.map((([e,n])=>{var r;const o=(null==(r=n.theme)?void 0:r[t])||n.color;return o?` --color-${e}: ${o};`:null})).join("\n")}\n}\n`)).join("\n")}}):null},C9=m.forwardRef((({active:e,payload:t,className:n,indicator:r="dot",hideLabel:o=!1,hideIndicator:i=!1,label:a,labelFormatter:u,labelClassName:s,formatter:l,color:c,nameKey:d,labelKey:f,hoveredItem:p,onItemHover:h},v)=>{const{config:g}=sD(),y=m.useMemo((()=>{var e;if(o||null==t||!t.length)return null;const[n]=t,r=`${f||(null==n?void 0:n.dataKey)||(null==n?void 0:n.name)||"value"}`,i=LS(g,n,r),l=f||"string"!=typeof a?null==i?void 0:i.label:(null==(e=g[a])?void 0:e.label)||a;return u?G.jsx("div",{className:we("font-medium",s),children:u(l,t)}):l?G.jsx("div",{className:we("font-medium",s),children:l}):null}),[a,u,t,o,s,g,f]);if(!e||null==t||!t.length)return null;const b=1===t.length&&"dot"!==r,w=t.length>10;return G.jsxs("div",{ref:v,className:we("grid min-w-[8rem] items-start gap-xxs rounded-sm border border-border/50 bg-background px-xs py-xxs text-xs shadow-xl",w&&"min-w-[16rem]",n),children:[b?null:y,G.jsx("div",{className:we("grid gap-xxs",w&&"grid-cols-2 gap-x-s"),children:t.map(((e,t)=>{var n;const o=`${d||e.name||e.dataKey||"value"}`,a=LS(g,e,o),u=c||(null==(n=e.payload)?void 0:n.fill)||e.color||"",s=o===p;return G.jsx("div",{className:we("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===r&&"items-center",s?"":p?"opacity-40":""),onMouseEnter:()=>null==h?void 0:h(o),onMouseLeave:()=>null==h?void 0:h(null),children:l&&void 0!==(null==e?void 0:e.value)&&void 0!==(null==e?void 0:e.payload)&&e.name?l(e.value,e.name,e,t,[e.payload]):G.jsxs(G.Fragment,{children:[null!=a&&a.icon?G.jsx(a.icon,{}):!i&&G.jsx("div",{className:we("shrink-0 rounded-full border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===r,"w-1":"line"===r,"w-0 border border-dashed bg-transparent":"dashed"===r,"my-0.5":b&&"dashed"===r}),style:{"--color-bg":u,"--color-border":u}}),G.jsxs("div",{className:we("flex flex-1 justify-between leading-none",b?"items-end":"items-center"),children:[G.jsxs("div",{className:"grid gap-xxs",children:[b?y:null,G.jsx("span",{className:we("text-muted-foreground",s&&"font-medium text-foreground"),children:(null==a?void 0:a.label)||e.name})]}),e.value&&G.jsx("span",{className:we("font-mono font-medium tabular-nums text-foreground",s&&"font-bold"),children:e.value.toLocaleString()})]})]})},e.dataKey)}))})]})}));C9.displayName="ChartTooltip";const $9=m.forwardRef((({className:e,hideIcon:t=!1,payload:n,nameKey:r,onItemHover:o,hoveredItem:i},a)=>{const{config:u}=sD(),s=m.useRef({});return m.useEffect((()=>{if(i&&s.current[i]){const e=s.current[i];e&&e.scrollIntoView({behavior:"smooth",block:"nearest"})}}),[i]),null!=n&&n.length?G.jsx("div",{ref:a,className:we("flex h-[150px] w-full flex-wrap items-center justify-center gap-l overflow-y-auto pb-xl",e),children:n.map((e=>{var n;const a=`${r||e.dataKey||"value"}`,l=LS(u,e,a),c=!!o&&a===i;return G.jsxs("div",{ref:e=>{e?s.current[a]=e:delete s.current[a]},className:we("group flex cursor-pointer select-none items-center gap-xs text-base transition-all duration-150",c?"scale-105 text-black":i?"text-gray-700 opacity-40":"text-gray-700"),onMouseEnter:()=>null==o?void 0:o(e.dataKey),onMouseLeave:()=>null==o?void 0:o(null),children:[null!=l&&l.icon&&!t?G.jsx(l.icon,{}):G.jsx("div",{className:"h-2 w-2 shrink-0 rounded-full",style:{backgroundColor:e.color||""}}),G.jsx("span",{className:"min-w-[max-content]",children:(null==l?void 0:l.label)||e.name})]},(null==(n=e.value)?void 0:n.toString())||a)}))}):null}));function LS(e,t,n){if("object"!=typeof t||null===t)return;const r="payload"in t&&"object"==typeof t.payload&&null!==t.payload?t.payload:void 0;let o=n;return n in t&&"string"==typeof t[n]?o=t[n]:r&&n in r&&"string"==typeof r[n]&&(o=r[n]),o in e?e[o]:e[n]}$9.displayName="ChartLegend";const I9=({children:e,className:t})=>G.jsx("div",{className:we("flex flex-wrap gap-xxxs",t),children:e}),uD=({text:e,icon:t,disabled:n,isLoading:r,avatarSrc:o,onClick:i,onRemove:a,className:u})=>G.jsxs("div",{onClick:n?void 0:i,className:we("flex cursor-pointer items-center gap-xxxs rounded-sm bg-gray-100 p-xxs text-sm font-medium text-gray-900 transition-all hover:bg-gray-200 [&_svg]:size-4",n&&"cursor-not-allowed bg-gray-100 text-gray-300",u),children:[o&&G.jsxs(gk,{className:we("size-6 text-[10px]"),children:[G.jsx(yk,{src:o,alt:e}),G.jsx(wk,{className:"text-xs",children:e.charAt(0).toUpperCase()})]}),t,G.jsx("span",{children:e}),a&&!r&&G.jsx("span",{role:"button",tabIndex:-1,onClick:e=>{e.stopPropagation(),e.preventDefault(),!n&&(null==a||a())},onPointerDown:e=>{e.stopPropagation(),e.preventDefault()},className:we("pointer-events-auto cursor-pointer",n&&"pointer-events-none cursor-not-allowed opacity-50"),children:G.jsx(by,{size:16})}),r&&G.jsx(S2,{size:16,className:"animate-spin"})]});function By(e){const t=m.useRef({value:e,previous:e});return m.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}function jy(e){const[t,n]=m.useState(void 0);return Uo((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t)||!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}const lD="Checkbox",[R9,kZ]=ni(lD),[P9,T9]=R9(lD),O9=m.forwardRef(((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:a,disabled:u,value:s="on",onCheckedChange:l,...c}=e,[d,f]=m.useState(null),p=Ut(t,(e=>f(e))),h=m.useRef(!1),v=!d||!!d.closest("form"),[g=!1,y]=pd({prop:o,defaultProp:i,onChange:l}),b=m.useRef(g);return m.useEffect((()=>{const e=null==d?void 0:d.form;if(e){const t=()=>y(b.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[d,y]),m.createElement(P9,{scope:n,state:g,disabled:u},m.createElement(ft.button,Te({type:"button",role:"checkbox","aria-checked":Vf(g)?"mixed":g,"aria-required":a,"data-state":cD(g),"data-disabled":u?"":void 0,disabled:u,value:s},c,{ref:p,onKeyDown:et(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:et(e.onClick,(e=>{y((e=>!!Vf(e)||!e)),v&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())}))})),v&&m.createElement(D9,{control:d,bubbles:!h.current,name:r,value:s,checked:g,required:a,disabled:u,style:{transform:"translateX(-100%)"}}))})),A9="CheckboxIndicator",k9=m.forwardRef(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=T9(A9,n);return m.createElement(ea,{present:r||Vf(i.state)||!0===i.state},m.createElement(ft.span,Te({"data-state":cD(i.state),"data-disabled":i.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))})),D9=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=m.useRef(null),a=By(n),u=jy(t);return m.useEffect((()=>{const e=i.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(a!==n&&o){const t=new Event("click",{bubbles:r});e.indeterminate=Vf(n),o.call(e,!Vf(n)&&n),e.dispatchEvent(t)}}),[a,n,r]),m.createElement("input",Te({type:"checkbox","aria-hidden":!0,defaultChecked:!Vf(n)&&n},o,{tabIndex:-1,ref:i,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Vf(e){return"indeterminate"===e}function cD(e){return Vf(e)?"indeterminate":e?"checked":"unchecked"}const dD=O9,N9=k9,M9=mu("relative overflow-hidden ",{variants:{size:{default:"size-xs"},variant:{default:"peer shrink-0 rounded-sm border disabled:cursor-not-allowed disabled:!border-0 disabled:!bg-gray-100"}},defaultVariants:{size:"default",variant:"default"}}),sC=m.forwardRef((({className:e,size:t,variant:n,iconType:r,...o},i)=>{const a=o.checked,[u]=m.useState(a),[s,l]=m.useState(!1);m.useEffect((()=>{u!==a&&l(!0)}),[a]);const c=e=>"minus"===r?G.jsx(T5,{...e}):G.jsx($E,{...e});return G.jsxs(dD,{ref:i,className:we(M9({size:t,variant:n}),"transition-[border] duration-100 ease-linear",a?"border-0":"border-gray-300 hover:border-2",e),...o,children:[G.jsx("div",{className:we("transform-origin-center absolute left-0 top-0 size-full rounded-full bg-blue_100",a?"scale-[1.2]":"scale-0",{"animate-fill-in":a&&s,"animate-fill-out":!a&&s})}),G.jsx(N9,{className:"relative flex items-center justify-center text-current",children:G.jsx(c,{className:"size-xxxs",color:o.disabled?"var(--gray-300)":"white"})})]})}));sC.displayName=dD.displayName;var RT=1,L9=.9,F9=.8,B9=.17,dx=.1,fx=.999,j9=.9999,V9=.99,U9=/[\\\/_+.#"@\[\(\{&]/,z9=/[\\\/_+.#"@\[\(\{&]/g,W9=/[\s-]/,fD=/[\s-]/g;function FS(e,t,n,r,o,i,a){if(i===t.length)return o===e.length?RT:V9;var u=`${o},${i}`;if(void 0!==a[u])return a[u];for(var s,l,c,d,f=r.charAt(i),p=n.indexOf(f,o),m=0;p>=0;)(s=FS(e,t,n,r,p+1,i+1,a))>m&&(p===o?s*=RT:U9.test(e.charAt(p-1))?(s*=F9,(c=e.slice(o,p-1).match(z9))&&o>0&&(s*=Math.pow(fx,c.length))):W9.test(e.charAt(p-1))?(s*=L9,(d=e.slice(o,p-1).match(fD))&&o>0&&(s*=Math.pow(fx,d.length))):(s*=B9,o>0&&(s*=Math.pow(fx,p-o))),e.charAt(p)!==t.charAt(i)&&(s*=j9)),(s<dx&&n.charAt(p-1)===r.charAt(i+1)||r.charAt(i+1)===r.charAt(i)&&n.charAt(p-1)!==r.charAt(i))&&((l=FS(e,t,n,r,p+1,i+2,a))*dx>s&&(s=l*dx)),s>m&&(m=s),p=n.indexOf(f,p+1);return a[u]=m,m}function PT(e){return e.toLowerCase().replace(fD," ")}function q9(e,t,n){return FS(e=n&&n.length>0?""+(e+" "+n.join(" ")):e,t,PT(e),PT(t),0,0,{})}var qm='[cmdk-group=""]',px='[cmdk-group-items=""]',G9='[cmdk-group-heading=""]',uC='[cmdk-item=""]',TT=`${uC}:not([aria-disabled="true"])`,BS="cmdk-item-select",Mf="data-value",H9=(e,t,n)=>q9(e,t,n),pD=m.createContext(void 0),jv=()=>m.useContext(pD),hD=m.createContext(void 0),lC=()=>m.useContext(hD),mD=m.createContext(void 0),vD=m.forwardRef(((e,t)=>{let n=$h((()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",filtered:{count:0,items:new Map,groups:new Set}}})),r=$h((()=>new Set)),o=$h((()=>new Map)),i=$h((()=>new Map)),a=$h((()=>new Set)),u=gD(e),{label:s,children:l,value:c,onValueChange:d,filter:f,shouldFilter:p,loop:h,disablePointerSelection:v=!1,vimBindings:g=!0,...y}=e,b=m.useId(),w=m.useId(),x=m.useId(),_=m.useRef(null),E=oj();Qf((()=>{if(void 0!==c){let e=c.trim();n.current.value=e,S.emit()}}),[c]),Qf((()=>{E(6,P)}),[]);let S=m.useMemo((()=>({subscribe:e=>(a.current.add(e),()=>a.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var o,i,a;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)R(),C(),E(1,I);else if("value"===e&&(r||E(5,P),void 0!==(null==(o=u.current)?void 0:o.value))){let e=t??"";return void(null==(a=(i=u.current).onValueChange)||a.call(i,e))}S.emit()}},emit:()=>{a.current.forEach((e=>e()))}})),[]),k=m.useMemo((()=>({value:(e,t,r)=>{var o;t!==(null==(o=i.current.get(e))?void 0:o.value)&&(i.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,A(t,r)),E(2,(()=>{C(),S.emit()})))},item:(e,t)=>(r.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),E(3,(()=>{R(),C(),n.current.value||I(),S.emit()})),()=>{i.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=T();E(4,(()=>{R(),(null==t?void 0:t.getAttribute("id"))===e&&I(),S.emit()}))}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{i.current.delete(e),o.current.delete(e)}),filter:()=>u.current.shouldFilter,label:s||e["aria-label"],disablePointerSelection:v,listId:b,inputId:x,labelId:w,listInnerRef:_})),[]);function A(e,t){var r,o;let i=null!=(o=null==(r=u.current)?void 0:r.filter)?o:H9;return e?i(e,n.current.search,t):0}function C(){if(!n.current.search||!1===u.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach((n=>{let r=o.current.get(n),i=0;r.forEach((t=>{let n=e.get(t);i=Math.max(n,i)})),t.push([n,i])}));let r=_.current;O().sort(((t,n)=>{var r,o;let i=t.getAttribute("id"),a=n.getAttribute("id");return(null!=(r=e.get(a))?r:0)-(null!=(o=e.get(i))?o:0)})).forEach((e=>{let t=e.closest(px);t?t.appendChild(e.parentElement===t?e:e.closest(`${px} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${px} > *`))})),t.sort(((e,t)=>t[1]-e[1])).forEach((e=>{let t=_.current.querySelector(`${qm}[${Mf}="${encodeURIComponent(e[0])}"]`);null==t||t.parentElement.appendChild(t)}))}function I(){let e=O().find((e=>"true"!==e.getAttribute("aria-disabled"))),t=null==e?void 0:e.getAttribute(Mf);S.setState("value",t||void 0)}function R(){var e,t,a,s;if(!n.current.search||!1===u.current.shouldFilter)return void(n.current.filtered.count=r.current.size);n.current.filtered.groups=new Set;let l=0;for(let o of r.current){let r=A(null!=(t=null==(e=i.current.get(o))?void 0:e.value)?t:"",null!=(s=null==(a=i.current.get(o))?void 0:a.keywords)?s:[]);n.current.filtered.items.set(o,r),r>0&&l++}for(let[e,t]of o.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=l}function P(){var e,t,n;let r=T();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(qm))?void 0:t.querySelector(G9))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function T(){var e;return null==(e=_.current)?void 0:e.querySelector(`${uC}[aria-selected="true"]`)}function O(){var e;return Array.from(null==(e=_.current)?void 0:e.querySelectorAll(TT))}function N(e){let t=O()[e];t&&S.setState("value",t.getAttribute(Mf))}function j(e){var t;let n=T(),r=O(),o=r.findIndex((e=>e===n)),i=r[o+e];null!=(t=u.current)&&t.loop&&(i=o+e<0?r[r.length-1]:o+e===r.length?r[0]:r[o+e]),i&&S.setState("value",i.getAttribute(Mf))}function q(e){let t,n=T(),r=null==n?void 0:n.closest(qm);for(;r&&!t;)r=e>0?nj(r,qm):rj(r,qm),t=null==r?void 0:r.querySelector(TT);t?S.setState("value",t.getAttribute(Mf)):j(e)}let D=()=>N(O().length-1),M=e=>{e.preventDefault(),e.metaKey?D():e.altKey?q(1):j(1)},L=e=>{e.preventDefault(),e.metaKey?N(0):e.altKey?q(-1):j(-1)};return m.createElement(ft.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=y.onKeyDown)||t.call(y,e),!e.defaultPrevented)switch(e.key){case"n":case"j":g&&e.ctrlKey&&M(e);break;case"ArrowDown":M(e);break;case"p":case"k":g&&e.ctrlKey&&L(e);break;case"ArrowUp":L(e);break;case"Home":e.preventDefault(),N(0);break;case"End":e.preventDefault(),D();break;case"Enter":if(!e.nativeEvent.isComposing&&229!==e.keyCode){e.preventDefault();let t=T();if(t){let e=new Event(BS);t.dispatchEvent(e)}}}}},m.createElement("label",{"cmdk-label":"",htmlFor:k.inputId,id:k.labelId,style:aj},s),Vy(e,(e=>m.createElement(hD.Provider,{value:S},m.createElement(pD.Provider,{value:k},e)))))})),K9=m.forwardRef(((e,t)=>{var n,r;let o=m.useId(),i=m.useRef(null),a=m.useContext(mD),u=jv(),s=gD(e),l=null!=(r=null==(n=s.current)?void 0:n.forceMount)?r:null==a?void 0:a.forceMount;Qf((()=>{if(!l)return u.item(o,null==a?void 0:a.id)}),[l]);let c=yD(o,i,[e.value,e.children,i],e.keywords),d=lC(),f=Yf((e=>e.value&&e.value===c.current)),p=Yf((e=>!(!l&&!1!==u.filter())||(!e.search||e.filtered.items.get(o)>0)));function h(){var e,t;v(),null==(t=(e=s.current).onSelect)||t.call(e,c.current)}function v(){d.setState("value",c.current,!0)}if(m.useEffect((()=>{let t=i.current;if(t&&!e.disabled)return t.addEventListener(BS,h),()=>t.removeEventListener(BS,h)}),[p,e.onSelect,e.disabled]),!p)return null;let{disabled:g,value:y,onSelect:b,forceMount:w,keywords:x,..._}=e;return m.createElement(ft.div,{ref:_v([i,t]),..._,id:o,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!f,"data-disabled":!!g,"data-selected":!!f,onPointerMove:g||u.disablePointerSelection?void 0:v,onClick:g?void 0:h},e.children)})),Q9=m.forwardRef(((e,t)=>{let{heading:n,children:r,forceMount:o,...i}=e,a=m.useId(),u=m.useRef(null),s=m.useRef(null),l=m.useId(),c=jv(),d=Yf((e=>!(!o&&!1!==c.filter())||(!e.search||e.filtered.groups.has(a))));Qf((()=>c.group(a)),[]),yD(a,u,[e.value,e.heading,s]);let f=m.useMemo((()=>({id:a,forceMount:o})),[o]);return m.createElement(ft.div,{ref:_v([u,t]),...i,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&m.createElement("div",{ref:s,"cmdk-group-heading":"","aria-hidden":!0,id:l},n),Vy(e,(e=>m.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?l:void 0},m.createElement(mD.Provider,{value:f},e)))))})),Y9=m.forwardRef(((e,t)=>{let{alwaysRender:n,...r}=e,o=m.useRef(null),i=Yf((e=>!e.search));return n||i?m.createElement(ft.div,{ref:_v([o,t]),...r,"cmdk-separator":"",role:"separator"}):null})),X9=m.forwardRef(((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,i=lC(),a=Yf((e=>e.search)),u=Yf((e=>e.value)),s=jv(),l=m.useMemo((()=>{var e;let t=null==(e=s.listInnerRef.current)?void 0:e.querySelector(`${uC}[${Mf}="${encodeURIComponent(u)}"]`);return null==t?void 0:t.getAttribute("id")}),[]);return m.useEffect((()=>{null!=e.value&&i.setState("search",e.value)}),[e.value]),m.createElement(ft.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":s.listId,"aria-labelledby":s.labelId,"aria-activedescendant":l,id:s.inputId,type:"text",value:o?e.value:a,onChange:e=>{o||i.setState("search",e.target.value),null==n||n(e.target.value)}})})),J9=m.forwardRef(((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,i=m.useRef(null),a=m.useRef(null),u=jv();return m.useEffect((()=>{if(a.current&&i.current){let e,t=a.current,n=i.current,r=new ResizeObserver((()=>{e=requestAnimationFrame((()=>{let e=t.offsetHeight;n.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")}))}));return r.observe(t),()=>{cancelAnimationFrame(e),r.unobserve(t)}}}),[]),m.createElement(ft.div,{ref:_v([i,t]),...o,"cmdk-list":"",role:"listbox","aria-label":r,id:u.listId},Vy(e,(e=>m.createElement("div",{ref:_v([a,u.listInnerRef]),"cmdk-list-sizer":""},e))))})),Z9=m.forwardRef(((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:i,container:a,...u}=e;return m.createElement(rk,{open:n,onOpenChange:r},m.createElement(Iy,{container:a},m.createElement(jh,{"cmdk-overlay":"",className:o}),m.createElement(Vh,{"aria-label":e.label,"cmdk-dialog":"",className:i},m.createElement(vD,{ref:t,...u}))))})),ej=m.forwardRef(((e,t)=>Yf((e=>0===e.filtered.count))?m.createElement(ft.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null)),tj=m.forwardRef(((e,t)=>{let{progress:n,children:r,label:o="Loading...",...i}=e;return m.createElement(ft.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Vy(e,(e=>m.createElement("div",{"aria-hidden":!0},e))))})),Ci=Object.assign(vD,{List:J9,Item:K9,Input:X9,Group:Q9,Separator:Y9,Dialog:Z9,Empty:ej,Loading:tj});function nj(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function rj(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function gD(e){let t=m.useRef(e);return Qf((()=>{t.current=e})),t}var Qf=typeof window>"u"?m.useEffect:m.useLayoutEffect;function $h(e){let t=m.useRef();return void 0===t.current&&(t.current=e()),t}function _v(e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}function Yf(e){let t=lC(),n=()=>e(t.snapshot());return m.useSyncExternalStore(t.subscribe,n,n)}function yD(e,t,n,r=[]){let o=m.useRef(),i=jv();return Qf((()=>{var a;let u=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():o.current}})(),s=r.map((e=>e.trim()));i.value(e,u,s),null==(a=t.current)||a.setAttribute(Mf,u),o.current=u})),o}var oj=()=>{let[e,t]=m.useState(),n=$h((()=>new Map));return Qf((()=>{n.current.forEach((e=>e())),n.current=new Map}),[e]),(e,r)=>{n.current.set(e,r),t({})}};function ij(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}function Vy({asChild:e,children:t},n){return e&&m.isValidElement(t)?m.cloneElement(ij(t),{ref:t.ref},n(t.props.children)):n(t)}var aj={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const sj=Iy,wD=m.forwardRef((({className:e,...t},n)=>(m.useEffect((()=>{const e=document.querySelectorAll(".blured-modal-overlay");return e.forEach((e=>e&&(e.style.filter="blur(5px)"))),()=>{0===Array.from(document.querySelectorAll('[role="dialog"]')).length&&e.forEach((e=>e&&(e.style.filter="none")))}}),[]),G.jsx(jh,{ref:n,"data-testid":"dialog_overlay",className:we("fixed inset-0 z-dialog bg-black opacity-[0.8] data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}))));wD.displayName=jh.displayName;const uj=mu("",{variants:{closeVariant:{none:"",insideCard:"absolute right-m top-m rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground text-gray-400",outsideCard:"fixed right-[30px] top-[30px] z-100 text-gray-400",mobileGallery:"fixed right-m top-[62px] text-white z-[110]"}},defaultVariants:{closeVariant:"outsideCard"}}),lj=mu("",{variants:{closeSize:{small:"size-6",big:"size-[42px]","18x18":"size-[18px]"}},defaultVariants:{closeSize:"small"}}),cj=m.forwardRef((({title:e,titleIcon:t,className:n,dialogName:r,showClose:o=!0,closeVariant:i="outsideCard",closeSize:a="big",children:u,titleClassName:s,overlayClassName:l,childrenClassName:c,footerClassName:d,onBack:f,onCloseModal:p,renderFooter:m,onScroll:h,...v},g)=>{const y=G.jsxs(Ry,{className:we(uj({closeVariant:i})),children:[G.jsx(by,{onClick:p,fill:"currentColor",className:we(lj({closeSize:a}))}),G.jsx("span",{className:"sr-only",children:"Close"})]});return G.jsxs(sj,{children:[G.jsx(wD,{className:l,onClick:p}),o&&"insideCard"!==i&&y,G.jsxs(Vh,{ref:g,className:we("fixed left-[50%] top-[50%] z-[101] grid max-w-[600px] translate-x-[-50%] translate-y-[-50%] !overflow-visible rounded-sm bg-background shadow-lg outline-none duration-200 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] max-md:w-[calc(100vw-32px)] md:w-full [&>div]:min-w-0",n),...v,children:[e&&G.jsxs("h3",{className:we("flex items-center justify-center gap-xxs border-b border-gray-200 p-m text-center text-lg font-semibold text-gray-700",s),children:[t,e]}),G.jsx("div",{id:r||"dialog-content",className:we("p-m",c),onScroll:h,children:u}),o&&"insideCard"===i&&y,f&&G.jsx("button",{"data-testid":"dialog-back-button","aria-label":"Back",onClick:f,className:"absolute left-m top-m",children:G.jsx(b2,{color:"var(--gray-400)",size:24})}),G.jsx(_D,{className:we("empty:hidden",d),children:null==m?void 0:m()})]})]})}));cj.displayName=Vh.displayName;const _D=({className:e,...t})=>G.jsx("div",{className:we("flex border-t border-gray-200 p-m",e),...t});_D.displayName="DialogFooter";const dj=m.forwardRef((({className:e,...t},n)=>G.jsx(Dv,{ref:n,className:we("text-lg font-semibold leading-none tracking-tight",e),...t})));dj.displayName=Dv.displayName;const fj=m.forwardRef((({className:e,...t},n)=>G.jsx(Nv,{ref:n,className:we("text-sm text-muted-foreground",e),...t})));fj.displayName=Nv.displayName;const pj=m.forwardRef((({className:e,...t},n)=>G.jsx(Ci,{ref:n,className:we("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t})));pj.displayName=Ci.displayName;const hj=m.forwardRef((({className:e,...t},n)=>G.jsx("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:G.jsx(Ci.Input,{ref:n,className:we("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})})));hj.displayName=Ci.Input.displayName;const mj=m.forwardRef((({className:e,...t},n)=>G.jsx(Ci.List,{ref:n,className:we("mt-2 max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t})));mj.displayName=Ci.List.displayName;const vj=m.forwardRef(((e,t)=>G.jsx(Ci.Empty,{ref:t,className:"py-6 text-center text-sm",...e})));vj.displayName=Ci.Empty.displayName;const gj=m.forwardRef((({className:e,...t},n)=>G.jsx(Ci.Group,{ref:n,className:we("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t})));gj.displayName=Ci.Group.displayName;const yj=m.forwardRef((({className:e,...t},n)=>G.jsx(Ci.Separator,{ref:n,className:we("-mx-1 h-px bg-border",e),...t})));yj.displayName=Ci.Separator.displayName;const wj=m.forwardRef((({className:e,...t},n)=>G.jsx(Ci.Item,{ref:n,className:we("relative flex max-w-[215px] cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",e),...t})));function ud(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function OT(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function bD(...e){return t=>{let n=!1;const r=e.map((e=>{const r=OT(e,t);return!n&&"function"==typeof r&&(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():OT(e[t],null)}}}}function np(...e){return m.useCallback(bD(...e),e)}function _j(e,t){const n=m.createContext(t),r=e=>{const{children:t,...r}=e,o=m.useMemo((()=>r),Object.values(r));return G.jsx(n.Provider,{value:o,children:t})};return r.displayName=e+"Provider",[r,function(r){const o=m.useContext(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}function bj(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>m.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return m.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=m.createContext(r),i=n.length;n=[...n,r];const a=t=>{var n;const{scope:r,children:a,...u}=t,s=(null==(n=null==r?void 0:r[e])?void 0:n[i])||o,l=m.useMemo((()=>u),Object.values(u));return G.jsx(s.Provider,{value:l,children:a})};return a.displayName=t+"Provider",[a,function(n,a){var u;const s=(null==(u=null==a?void 0:a[e])?void 0:u[i])||o,l=m.useContext(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},xj(r,...t)]}function xj(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return m.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}wj.displayName=Ci.Item.displayName;var Zg=null!=globalThis&&globalThis.document?m.useLayoutEffect:()=>{},Sj=Qg[" useId ".trim().toString()]||(()=>{}),Ej=0;function hx(e){const[t,n]=m.useState(Sj());return Zg((()=>{e||n((e=>e??String(Ej++)))}),[e]),e||(t?`radix-${t}`:"")}function Xf(e){const t=m.useRef(e);return m.useEffect((()=>{t.current=e})),m.useMemo((()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function Cj({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=$j({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,u=Xf(n);return[a,m.useCallback((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&u(n)}else o(t)}),[i,e,o,u])]}function $j({defaultProp:e,onChange:t}){const n=m.useState(e),[r]=n,o=m.useRef(r),i=Xf(t);return m.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}function xD(e){const t=Ij(e),n=m.forwardRef(((e,n)=>{const{children:r,...o}=e,i=m.Children.toArray(r),a=i.find(Pj);if(a){const e=a.props.children,r=i.map((t=>t===a?m.Children.count(e)>1?m.Children.only(null):m.isValidElement(e)?e.props.children:null:t));return G.jsx(t,{...o,ref:n,children:m.isValidElement(e)?m.cloneElement(e,void 0,r):null})}return G.jsx(t,{...o,ref:n,children:r})}));return n.displayName=`${e}.Slot`,n}function Ij(e){const t=m.forwardRef(((e,t)=>{const{children:n,...r}=e;if(m.isValidElement(n)){const e=Oj(n),o=Tj(r,n.props);return n.type!==m.Fragment&&(o.ref=t?bD(t,e):e),m.cloneElement(n,o)}return m.Children.count(n)>1?m.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var Rj=Symbol("radix.slottable");function Pj(e){return m.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Rj}function Tj(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Oj(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var Aj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Rl=Aj.reduce(((e,t)=>{const n=xD(`Primitive.${t}`),r=m.forwardRef(((e,r)=>{const{asChild:o,...i}=e,a=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),G.jsx(a,{...i,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{});function kj(e,t){e&&vu.flushSync((()=>e.dispatchEvent(t)))}function Dj(e,t=(null==globalThis?void 0:globalThis.document)){const n=Xf(e);m.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}var AT,Nj="DismissableLayer",jS="dismissableLayer.update",Mj="dismissableLayer.pointerDownOutside",Lj="dismissableLayer.focusOutside",SD=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ED=m.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:u,...s}=e,l=m.useContext(SD),[c,d]=m.useState(null),f=(null==c?void 0:c.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,p]=m.useState({}),h=np(t,(e=>d(e))),v=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(g),b=c?v.indexOf(c):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,x=b>=y,_=jj((e=>{const t=e.target,n=[...l.branches].some((e=>e.contains(t)));!x||n||(null==o||o(e),null==a||a(e),e.defaultPrevented||null==u||u())}),f),E=Vj((e=>{const t=e.target;[...l.branches].some((e=>e.contains(t)))||(null==i||i(e),null==a||a(e),e.defaultPrevented||null==u||u())}),f);return Dj((e=>{b===l.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))}),f),m.useEffect((()=>{if(c)return n&&(0===l.layersWithOutsidePointerEventsDisabled.size&&(AT=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(c)),l.layers.add(c),kT(),()=>{n&&1===l.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=AT)}}),[c,f,n,l]),m.useEffect((()=>()=>{c&&(l.layers.delete(c),l.layersWithOutsidePointerEventsDisabled.delete(c),kT())}),[c,l]),m.useEffect((()=>{const e=()=>p({});return document.addEventListener(jS,e),()=>document.removeEventListener(jS,e)}),[]),G.jsx(Rl.div,{...s,ref:h,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:ud(e.onFocusCapture,E.onFocusCapture),onBlurCapture:ud(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:ud(e.onPointerDownCapture,_.onPointerDownCapture)})}));ED.displayName=Nj;var Fj="DismissableLayerBranch",Bj=m.forwardRef(((e,t)=>{const n=m.useContext(SD),r=m.useRef(null),o=np(t,r);return m.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),G.jsx(Rl.div,{...e,ref:o})}));function jj(e,t=(null==globalThis?void 0:globalThis.document)){const n=Xf(e),r=m.useRef(!1),o=m.useRef((()=>{}));return m.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){CD(Mj,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Vj(e,t=(null==globalThis?void 0:globalThis.document)){const n=Xf(e),r=m.useRef(!1);return m.useEffect((()=>{const e=e=>{e.target&&!r.current&&CD(Lj,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function kT(){const e=new CustomEvent(jS);document.dispatchEvent(e)}function CD(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?kj(o,i):o.dispatchEvent(i)}Bj.displayName=Fj;var mx="focusScope.autoFocusOnMount",vx="focusScope.autoFocusOnUnmount",DT={bubbles:!1,cancelable:!0},Uj="FocusScope",$D=m.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[u,s]=m.useState(null),l=Xf(o),c=Xf(i),d=m.useRef(null),f=np(t,(e=>s(e))),p=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect((()=>{if(r){let e=function(e){if(p.paused||!u)return;const t=e.target;u.contains(t)?d.current=t:ad(d.current,{select:!0})},t=function(e){if(p.paused||!u)return;const t=e.relatedTarget;null!==t&&(u.contains(t)||ad(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&ad(u)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return u&&r.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,u,p.paused]),m.useEffect((()=>{if(u){MT.add(p);const e=document.activeElement;if(!u.contains(e)){const t=new CustomEvent(mx,DT);u.addEventListener(mx,l),u.dispatchEvent(t),t.defaultPrevented||(zj(Kj(ID(u)),{select:!0}),document.activeElement===e&&ad(u))}return()=>{u.removeEventListener(mx,l),setTimeout((()=>{const t=new CustomEvent(vx,DT);u.addEventListener(vx,c),u.dispatchEvent(t),t.defaultPrevented||ad(e??document.body,{select:!0}),u.removeEventListener(vx,c),MT.remove(p)}),0)}}}),[u,l,c,p]);const h=m.useCallback((e=>{if(!n&&!r||p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=Wj(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&ad(i,{select:!0})):(e.preventDefault(),n&&ad(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,p.paused]);return G.jsx(Rl.div,{tabIndex:-1,...a,ref:f,onKeyDown:h})}));function zj(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ad(r,{select:t}),document.activeElement!==n)return}function Wj(e){const t=ID(e);return[NT(t,e),NT(t.reverse(),e)]}function ID(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function NT(e,t){for(const n of e)if(!qj(n,{upTo:t}))return n}function qj(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Gj(e){return e instanceof HTMLInputElement&&"select"in e}function ad(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Gj(e)&&t&&e.select()}}$D.displayName=Uj;var MT=Hj();function Hj(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=LT(e,t),e.unshift(t)},remove(t){var n;e=LT(e,t),null==(n=e[0])||n.resume()}}}function LT(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function Kj(e){return e.filter((e=>"A"!==e.tagName))}var Qj="Portal",RD=m.forwardRef(((e,t)=>{var n;const{container:r,...o}=e,[i,a]=m.useState(!1);Zg((()=>a(!0)),[]);const u=r||i&&(null==(n=null==globalThis?void 0:globalThis.document)?void 0:n.body);return u?D2.createPortal(G.jsx(Rl.div,{...o,ref:t}),u):null}));function Yj(e,t){return m.useReducer(((e,n)=>t[e][n]??e),e)}RD.displayName=Qj;var Uy=e=>{const{present:t,children:n}=e,r=Xj(t),o="function"==typeof n?n({present:r.isPresent}):m.Children.only(n),i=np(r.ref,Jj(o));return"function"==typeof n||r.isPresent?m.cloneElement(o,{ref:i}):null};function Xj(e){const[t,n]=m.useState(),r=m.useRef({}),o=m.useRef(e),i=m.useRef("none"),a=e?"mounted":"unmounted",[u,s]=Yj(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect((()=>{const e=Tg(r.current);i.current="mounted"===u?e:"none"}),[u]),Zg((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=Tg(t);e?s("MOUNT"):"none"===a||"none"===(null==t?void 0:t.display)?s("UNMOUNT"):s(n&&r!==a?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,s]),Zg((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,a=i=>{const a=Tg(r.current).includes(i.animationName);if(i.target===t&&a&&(s("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},u=e=>{e.target===t&&(i.current=Tg(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",a),t.addEventListener("animationend",a),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",a),t.removeEventListener("animationend",a)}}s("ANIMATION_END")}),[t,s]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:m.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function Tg(e){return(null==e?void 0:e.animationName)||"none"}function Jj(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}Uy.displayName="Presence";var gx=0;function Zj(){m.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??FT()),document.body.insertAdjacentElement("beforeend",e[1]??FT()),gx++,()=>{1===gx&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),gx--}}),[])}function FT(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var PD=j2(),yx=function(){},zy=m.forwardRef((function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:yx,onWheelCapture:yx,onTouchMoveCapture:yx}),o=r[0],i=r[1],a=e.forwardProps,u=e.children,s=e.className,l=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,h=e.inert,v=e.allowPinchZoom,g=e.as,y=void 0===g?"div":g,b=e.gapMode,w=kE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=f,_=B2([n,t]),E=Vo(Vo({},w),o);return m.createElement(m.Fragment,null,c&&m.createElement(x,{sideCar:PD,removeScrollBar:l,shards:d,noIsolation:p,inert:h,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:b}),a?m.cloneElement(m.Children.only(u),Vo(Vo({},E),{ref:_})):m.createElement(y,Vo({},E,{className:s,ref:_}),u))}));zy.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},zy.classNames={fullWidth:uv,zeroRight:sv};var VS=!1;if(typeof window<"u")try{var Og=Object.defineProperty({},"passive",{get:function(){return VS=!0,!0}});window.addEventListener("test",Og,Og),window.removeEventListener("test",Og,Og)}catch{VS=!1}var xh=!!VS&&{passive:!1},eV=function(e){return"TEXTAREA"===e.tagName},TD=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!eV(e)&&"visible"===n[t])},tV=function(e){return TD(e,"overflowY")},nV=function(e){return TD(e,"overflowX")},BT=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host),OD(e,r)){var o=AD(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},rV=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},oV=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},OD=function(e,t){return"v"===e?tV(t):nV(t)},AD=function(e,t){return"v"===e?rV(t):oV(t)},iV=function(e,t){return"h"===e&&"rtl"===t?-1:1},aV=function(e,t,n,r,o){var i=iV(e,window.getComputedStyle(t).direction),a=i*r,u=n.target,s=t.contains(u),l=!1,c=a>0,d=0,f=0;do{var p=AD(e,u),m=p[0],h=p[1]-p[2]-i*m;(m||h)&&OD(e,u)&&(d+=h,f+=m),u=u instanceof ShadowRoot?u.host:u.parentNode}while(!s&&u!==document.body||s&&(t.contains(u)||t===u));return(c&&(Math.abs(d)<1||!o)||!c&&(Math.abs(f)<1||!o))&&(l=!0),l},Ag=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},jT=function(e){return[e.deltaX,e.deltaY]},VT=function(e){return e&&"current"in e?e.current:e},sV=function(e,t){return e[0]===t[0]&&e[1]===t[1]},uV=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},lV=0,Sh=[];function cV(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),o=m.useState(lV++)[0],i=m.useState(DE)[0],a=m.useRef(e);m.useEffect((function(){a.current=e}),[e]),m.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=F2([e.lockRef.current],(e.shards||[]).map(VT),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var u=m.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=Ag(e),u=n.current,s="deltaX"in e?e.deltaX:u[0]-i[0],l="deltaY"in e?e.deltaY:u[1]-i[1],c=e.target,d=Math.abs(s)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=BT(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=BT(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||l)&&(r.current=o),!o)return!0;var p=r.current||o;return aV(p,t,e,"h"===p?s:l,!0)}),[]),s=m.useCallback((function(e){var n=e;if(Sh.length&&Sh[Sh.length-1]===i){var r="deltaY"in n?jT(n):Ag(n),o=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&sV(e.delta,r)}))[0];if(o&&o.should)return void(n.cancelable&&n.preventDefault());if(!o){var s=(a.current.shards||[]).map(VT).filter(Boolean).filter((function(e){return e.contains(n.target)}));(s.length>0?u(n,s[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),l=m.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:dV(r)};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),c=m.useCallback((function(e){n.current=Ag(e),r.current=void 0}),[]),d=m.useCallback((function(t){l(t.type,jT(t),t.target,u(t,e.lockRef.current))}),[]),f=m.useCallback((function(t){l(t.type,Ag(t),t.target,u(t,e.lockRef.current))}),[]);m.useEffect((function(){return Sh.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",s,xh),document.addEventListener("touchmove",s,xh),document.addEventListener("touchstart",c,xh),function(){Sh=Sh.filter((function(e){return e!==i})),document.removeEventListener("wheel",s,xh),document.removeEventListener("touchmove",s,xh),document.removeEventListener("touchstart",c,xh)}}),[]);var p=e.removeScrollBar,h=e.inert;return m.createElement(m.Fragment,null,h?m.createElement(i,{styles:uV(o)}):null,p?m.createElement(W2,{gapMode:e.gapMode}):null)}function dV(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const fV=U2(PD,cV);var kD=m.forwardRef((function(e,t){return m.createElement(zy,Vo({},e,{ref:t,sideCar:fV}))}));kD.classNames=zy.classNames;var cC="Dialog",[DD,DZ]=bj(cC),[pV,_s]=DD(cC),ND=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,u=m.useRef(null),s=m.useRef(null),[l=!1,c]=Cj({prop:r,defaultProp:o,onChange:i});return G.jsx(pV,{scope:t,triggerRef:u,contentRef:s,contentId:hx(),titleId:hx(),descriptionId:hx(),open:l,onOpenChange:c,onOpenToggle:m.useCallback((()=>c((e=>!e))),[c]),modal:a,children:n})};ND.displayName=cC;var MD="DialogTrigger",LD=m.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=_s(MD,n),i=np(t,o.triggerRef);return G.jsx(Rl.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":pC(o.open),...r,ref:i,onClick:ud(e.onClick,o.onOpenToggle)})}));LD.displayName=MD;var dC="DialogPortal",[hV,FD]=DD(dC,{forceMount:void 0}),BD=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=_s(dC,t);return G.jsx(hV,{scope:t,forceMount:n,children:m.Children.map(r,(e=>G.jsx(Uy,{present:n||i.open,children:G.jsx(RD,{asChild:!0,container:o,children:e})})))})};BD.displayName=dC;var ey="DialogOverlay",jD=m.forwardRef(((e,t)=>{const n=FD(ey,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=_s(ey,e.__scopeDialog);return i.modal?G.jsx(Uy,{present:r||i.open,children:G.jsx(vV,{...o,ref:t})}):null}));jD.displayName=ey;var mV=xD("DialogOverlay.RemoveScroll"),vV=m.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=_s(ey,n);return G.jsx(kD,{as:mV,allowPinchZoom:!0,shards:[o.contentRef],children:G.jsx(Rl.div,{"data-state":pC(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})})),Jf="DialogContent",VD=m.forwardRef(((e,t)=>{const n=FD(Jf,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=_s(Jf,e.__scopeDialog);return G.jsx(Uy,{present:r||i.open,children:i.modal?G.jsx(gV,{...o,ref:t}):G.jsx(yV,{...o,ref:t})})}));VD.displayName=Jf;var gV=m.forwardRef(((e,t)=>{const n=_s(Jf,e.__scopeDialog),r=m.useRef(null),o=np(t,n.contentRef,r);return m.useEffect((()=>{const e=r.current;if(e)return $y(e)}),[]),G.jsx(UD,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ud(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()})),onPointerDownOutside:ud(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:ud(e.onFocusOutside,(e=>e.preventDefault()))})})),yV=m.forwardRef(((e,t)=>{const n=_s(Jf,e.__scopeDialog),r=m.useRef(!1),o=m.useRef(!1);return G.jsx(UD,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,a;null==(i=e.onCloseAutoFocus)||i.call(e,t),t.defaultPrevented||(r.current||null==(a=n.triggerRef.current)||a.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var i,a;null==(i=e.onInteractOutside)||i.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const u=t.target;(null==(a=n.triggerRef.current)?void 0:a.contains(u))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})})),UD=m.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,u=_s(Jf,n),s=m.useRef(null),l=np(t,s);return Zj(),G.jsxs(G.Fragment,{children:[G.jsx($D,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:G.jsx(ED,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":pC(u.open),...a,ref:l,onDismiss:()=>u.onOpenChange(!1)})}),G.jsxs(G.Fragment,{children:[G.jsx(wV,{titleId:u.titleId}),G.jsx(bV,{contentRef:s,descriptionId:u.descriptionId})]})]})})),fC="DialogTitle",zD=m.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=_s(fC,n);return G.jsx(Rl.h2,{id:o.titleId,...r,ref:t})}));zD.displayName=fC;var WD="DialogDescription",qD=m.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=_s(WD,n);return G.jsx(Rl.p,{id:o.descriptionId,...r,ref:t})}));qD.displayName=WD;var GD="DialogClose",HD=m.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=_s(GD,n);return G.jsx(Rl.button,{type:"button",...r,ref:t,onClick:ud(e.onClick,(()=>o.onOpenChange(!1)))})}));function pC(e){return e?"open":"closed"}HD.displayName=GD;var KD="DialogTitleWarning",[NZ,QD]=_j(KD,{contentName:Jf,titleName:fC,docsSlug:"dialog"}),wV=({titleId:e})=>{const t=QD(KD),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return m.useEffect((()=>{e&&(document.getElementById(e)||console.error(n))}),[n,e]),null},_V="DialogDescriptionWarning",bV=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${QD(_V).contentName}}.`;return m.useEffect((()=>{var r;const o=null==(r=e.current)?void 0:r.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))}),[n,e,t]),null},xV=ND,SV=LD,EV=BD,CV=jD,$V=VD,IV=zD,RV=qD,PV=HD;function TV(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const YD=We.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),zh=()=>{const e=We.useContext(YD);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};TV("[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(\n[data-state=closed]\n){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,100%,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,100%,0)}}@keyframes slideFromTop{from{transform:translate3d(0,-100%,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,-100%,0)}}@keyframes slideFromLeft{from{transform:translate3d(-100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(-100%,0,0)}}@keyframes slideFromRight{from{transform:translate3d(100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(100%,0,0)}}");const OV=24,AV=typeof window<"u"?m.useLayoutEffect:m.useEffect;function UT(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}function kV(){return hC(/^Mac/)}function DV(){return hC(/^iPhone/)}function zT(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function NV(){return hC(/^iPad/)||kV()&&navigator.maxTouchPoints>1}function XD(){return DV()||NV()}function hC(e){return typeof window<"u"&&null!=window.navigator?e.test(window.navigator.platform):void 0}const wx=typeof document<"u"&&window.visualViewport;function WT(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function JD(e){for(WT(e)&&(e=e.parentElement);e&&!WT(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const MV=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let _x,kg=0;function LV(e={}){let{isDisabled:t}=e;AV((()=>{if(!t)return kg++,1===kg&&XD()&&(_x=FV()),()=>{kg--,0===kg&&(null==_x||_x())}}),[t])}function FV(){let e,t=0,n=window.pageXOffset,r=window.pageYOffset,o=UT(BV(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"));window.scrollTo(0,0);let i=UT(Gm(document,"touchstart",(n=>{e=JD(n.target),(e!==document.documentElement||e!==document.body)&&(t=n.changedTouches[0].pageY)}),{passive:!1,capture:!0}),Gm(document,"touchmove",(n=>{if(!e||e===document.documentElement||e===document.body)return void n.preventDefault();let r=n.changedTouches[0].pageY,o=e.scrollTop,i=e.scrollHeight-e.clientHeight;0!==i&&((o<=0&&r>t||o>=i&&r<t)&&n.preventDefault(),t=r)}),{passive:!1,capture:!0}),Gm(document,"touchend",(e=>{let t=e.target;US(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame((()=>{t.style.transform=""})))}),{passive:!1,capture:!0}),Gm(document,"focus",(e=>{let t=e.target;US(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",wx&&(wx.height<window.innerHeight?requestAnimationFrame((()=>{qT(t)})):wx.addEventListener("resize",(()=>qT(t)),{once:!0}))})))}),!0),Gm(window,"scroll",(()=>{window.scrollTo(0,0)})));return()=>{o(),i(),window.scrollTo(n,r)}}function BV(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Gm(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function qT(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=JD(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;e.getBoundingClientRect().bottom>t.getBoundingClientRect().bottom+24&&(t.scrollTop+=r-n)}e=t.parentElement}}function US(e){return e instanceof HTMLInputElement&&!MV.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function jV(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function VV(...e){return t=>e.forEach((e=>jV(e,t)))}function ZD(...e){return m.useCallback(VV(...e),e)}const eN=new WeakMap;function zr(e,t,n=!1){if(!(e&&e instanceof HTMLElement))return;let r={};Object.entries(t).forEach((([t,n])=>{t.startsWith("--")?e.style.setProperty(t,n):(r[t]=e.style[t],e.style[t]=n)})),!n&&eN.set(e,r)}function UV(e,t){if(!(e&&e instanceof HTMLElement))return;let n=eN.get(e);n&&(e.style[t]=n[t])}const Wr=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function Dg(e,t){if(!e)return null;const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let o=r.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[Wr(t)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[Wr(t)?5:4]):null)}function zV(e){return 8*(Math.log(e+1)-2)}function bx(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function WV(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}const Vn={DURATION:.5,EASE:[.32,.72,0,1]},tN=.4,qV=.25,GV=100,nN=8,kf=16,zS=26,xx="vaul-dragging";function rN(e){const t=We.useRef(e);return We.useEffect((()=>{t.current=e})),We.useMemo((()=>(...e)=>null==t.current?void 0:t.current.call(t,...e)),[])}function HV({defaultProp:e,onChange:t}){const n=We.useState(e),[r]=n,o=We.useRef(r),i=rN(t);return We.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}function oN({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=HV({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,u=rN(n);return[a,We.useCallback((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&u(n)}else o(t)}),[i,e,o,u])]}function KV({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:i,onSnapPointChange:a,direction:u="bottom",container:s,snapToSequentialPoint:l}){const[c,d]=oN({prop:e,defaultProp:null==n?void 0:n[0],onChange:t}),[f,p]=We.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);We.useEffect((()=>{function e(){p({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]);const m=We.useMemo((()=>c===(null==n?void 0:n[n.length-1])||null),[n,c]),h=We.useMemo((()=>null==n?void 0:n.findIndex((e=>e===c))),[n,c]),v=n&&n.length>0&&(i||0===i)&&!Number.isNaN(i)&&n[i]===c||!n,g=We.useMemo((()=>{const e=s?{width:s.getBoundingClientRect().width,height:s.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var t;return null!=(t=null==n?void 0:n.map((t=>{const n="string"==typeof t;let r=0;if(n&&(r=parseInt(t,10)),Wr(u)){const o=n?r:f?t*e.height:0;return f?"bottom"===u?e.height-o:-e.height+o:o}const o=n?r:f?t*e.width:0;return f?"right"===u?e.width-o:-e.width+o:o})))?t:[]}),[n,f,s]),y=We.useMemo((()=>null!==h?null==g?void 0:g[h]:null),[g,h]),b=We.useCallback((e=>{var t;const s=null!=(t=null==g?void 0:g.findIndex((t=>t===e)))?t:null;a(s),zr(r.current,{transition:`transform ${Vn.DURATION}s cubic-bezier(${Vn.EASE.join(",")})`,transform:Wr(u)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`}),g&&s!==g.length-1&&s!==i&&s<i?zr(o.current,{transition:`opacity ${Vn.DURATION}s cubic-bezier(${Vn.EASE.join(",")})`,opacity:"0"}):zr(o.current,{transition:`opacity ${Vn.DURATION}s cubic-bezier(${Vn.EASE.join(",")})`,opacity:"1"}),d(null==n?void 0:n[Math.max(s,0)])}),[r.current,n,g,i,o,d]);return We.useEffect((()=>{if(c||e){var t;const r=null!=(t=null==n?void 0:n.findIndex((t=>t===e||t===c)))?t:-1;g&&-1!==r&&"number"==typeof g[r]&&b(g[r])}}),[c,e,n,g,b]),{isLastSnapPoint:m,activeSnapPoint:c,shouldFade:v,getPercentageDragged:function(e,t){if(!n||"number"!=typeof h||!g||void 0===i)return null;const r=h===i-1;if(h>=i&&t)return 0;if(r&&!t)return 1;if(!v&&!r)return null;const o=r?h+1:h-1,a=r?g[o]-g[o-1]:g[o+1]-g[o],u=e/Math.abs(a);return r?1-u:u},setActiveSnapPoint:d,activeSnapPointIndex:h,onRelease:function({draggedDistance:e,closeDrawer:t,velocity:r,dismissible:a}){if(void 0===i)return;const s="bottom"===u||"right"===u?(y??0)-e:(y??0)+e,c=0===h,d=e>0;if(h===i-1&&zr(o.current,{transition:`opacity ${Vn.DURATION}s cubic-bezier(${Vn.EASE.join(",")})`}),!l&&r>2&&!d)return void(a?t():b(g[0]));if(!l&&r>2&&d&&g&&n)return void b(g[n.length-1]);const f=null==g?void 0:g.reduce(((e,t)=>"number"!=typeof e||"number"!=typeof t?e:Math.abs(t-s)<Math.abs(e-s)?t:e)),p=Wr(u)?window.innerHeight:window.innerWidth;if(r>tN&&Math.abs(e)<.4*p){const e=d?1:-1;if(e>0&&m)return void b(g[n.length-1]);if(c&&e<0&&a&&t(),null===h)return;b(g[h+e])}else b(f)},onDrag:function({draggedDistance:e}){if(null===y)return;const t="bottom"===u||"right"===u?y-e:y+e;("bottom"===u||"right"===u)&&t<g[g.length-1]||("top"===u||"left"===u)&&t>g[g.length-1]||zr(r.current,{transform:Wr(u)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})},snapPointsOffset:g}}const QV=()=>()=>{};function YV(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:o}=zh(),i=We.useRef(null),a=m.useMemo((()=>document.body.style.backgroundColor),[]);function u(){return(window.innerWidth-26)/window.innerWidth}We.useEffect((()=>{if(t&&n){i.current&&clearTimeout(i.current);const t=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!t)return;WV(r&&!o?bx(document.body,{background:"black"}):QV,bx(t,{transformOrigin:Wr(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${Vn.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Vn.EASE.join(",")})`}));const n=bx(t,{borderRadius:"8px",overflow:"hidden",...Wr(e)?{transform:`scale(${u()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${u()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{n(),i.current=window.setTimeout((()=>{a?document.body.style.background=a:document.body.style.removeProperty("background")}),1e3*Vn.DURATION)}}}),[t,n,a])}let Hm=null;function XV({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:i}){const[a,u]=We.useState((()=>typeof window<"u"?window.location.href:"")),s=We.useRef(0),l=We.useCallback((()=>{if(zT()&&null===Hm&&e&&!i){Hm={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:e,innerHeight:t}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:-s.current+"px",left:-e+"px",right:"0px",height:"auto"}),window.setTimeout((()=>window.requestAnimationFrame((()=>{const e=t-window.innerHeight;e&&s.current>=t&&(document.body.style.top=-(s.current+e)+"px")}))),300)}}),[e]),c=We.useCallback((()=>{if(zT()&&null!==Hm&&!i){const e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,Hm),window.requestAnimationFrame((()=>{o&&a!==window.location.href?u(window.location.href):window.scrollTo(t,e)})),Hm=null}}),[a]);return We.useEffect((()=>{function e(){s.current=window.scrollY}return e(),window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[]),We.useEffect((()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&l(),t||window.setTimeout((()=>{c()}),500)):c())}),[e,r,a,t,n,l,c]),{restorePositionSetting:c}}function iN({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:o,snapPoints:i,shouldScaleBackground:a=!1,setBackgroundColorOnScale:u=!0,closeThreshold:s=qV,scrollLockTimeout:l=GV,dismissible:c=!0,handleOnly:d=!1,fadeFromIndex:f=i&&i.length-1,activeSnapPoint:p,setActiveSnapPoint:m,fixed:h,modal:v=!0,onClose:g,nested:y,noBodyStyles:b,direction:w="bottom",defaultOpen:x=!1,disablePreventScroll:_=!0,snapToSequentialPoint:E=!1,preventScrollRestoration:S=!1,repositionInputs:k=!0,onAnimationEnd:A,container:C,autoFocus:I=!1}){var R,P;const[T=!1,O]=oN({defaultProp:x,prop:e,onChange:e=>{null==t||t(e),!e&&!y&&se(),setTimeout((()=>{null==A||A(e)}),1e3*Vn.DURATION),e&&!v&&typeof window<"u"&&window.requestAnimationFrame((()=>{document.body.style.pointerEvents="auto"})),e||(document.body.style.pointerEvents="auto")}}),[N,j]=We.useState(!1),[q,D]=We.useState(!1),[M,L]=We.useState(!1),$=We.useRef(null),B=We.useRef(null),V=We.useRef(null),z=We.useRef(null),F=We.useRef(null),U=We.useRef(!1),G=We.useRef(null),W=We.useRef(0),H=We.useRef(!1),K=We.useRef(0),Q=We.useRef(null),X=We.useRef((null==(R=Q.current)?void 0:R.getBoundingClientRect().height)||0),J=We.useRef((null==(P=Q.current)?void 0:P.getBoundingClientRect().width)||0),Y=We.useRef(0),Z=We.useCallback((e=>{i&&e===oe.length-1&&(B.current=new Date)}),[]),{activeSnapPoint:ee,activeSnapPointIndex:te,setActiveSnapPoint:ne,onRelease:re,snapPointsOffset:oe,onDrag:ie,shouldFade:ae,getPercentageDragged:ue}=KV({snapPoints:i,activeSnapPointProp:p,setActiveSnapPointProp:m,drawerRef:Q,fadeFromIndex:f,overlayRef:$,onSnapPointChange:Z,direction:w,container:C,snapToSequentialPoint:E});LV({isDisabled:!T||q||!v||M||!N||!k||!_});const{restorePositionSetting:se}=XV({isOpen:T,modal:v,nested:y,hasBeenOpened:N,preventScrollRestoration:S,noBodyStyles:b});function le(){return(window.innerWidth-26)/window.innerWidth}function ce(e,t){var n,r;let o=e;const i=null==(n=window.getSelection())?void 0:n.toString(),a=Q.current?Dg(Q.current,w):null,u=new Date;if(o.hasAttribute("data-vaul-no-drag")||o.closest("[data-vaul-no-drag]"))return!1;if("right"===w||"left"===w)return!0;if(B.current&&u.getTime()-B.current.getTime()<500)return!1;if(null!==a&&("bottom"===w?a>0:a<0))return!0;if(i&&i.length>0)return!1;if(u.getTime()-(null==(r=F.current)?void 0:r.getTime())<l&&0===a||t)return F.current=u,!1;for(;o;){if(o.scrollHeight>o.clientHeight){if(0!==o.scrollTop)return F.current=new Date,!1;if("dialog"===o.getAttribute("role"))return!0}o=o.parentNode}return!0}function de(e){!q||!Q.current||(Q.current.classList.remove(xx),U.current=!1,D(!1),z.current=new Date),null==g||g(),e||O(!1),setTimeout((()=>{i&&ne(i[0])}),1e3*Vn.DURATION)}function fe(){if(!Q.current)return;const e=document.querySelector("[data-vaul-drawer-wrapper]"),t=Dg(Q.current,w);zr(Q.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${Vn.DURATION}s cubic-bezier(${Vn.EASE.join(",")})`}),zr($.current,{transition:`opacity ${Vn.DURATION}s cubic-bezier(${Vn.EASE.join(",")})`,opacity:"1"}),a&&t&&t>0&&T&&zr(e,{borderRadius:"8px",overflow:"hidden",...Wr(w)?{transform:`scale(${le()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${le()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${Vn.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Vn.EASE.join(",")})`},!0)}return We.useEffect((()=>{var e;function t(){if(!Q.current||!k)return;if(US(document.activeElement)||H.current){var e;const t=(null==(e=window.visualViewport)?void 0:e.height)||0,n=window.innerHeight;let r=n-t;const o=Q.current.getBoundingClientRect().height||0,a=o>.8*n;Y.current||(Y.current=o);const u=Q.current.getBoundingClientRect().top;if(Math.abs(K.current-r)>60&&(H.current=!H.current),i&&i.length>0&&oe&&te){r+=oe[te]||0}if(K.current=r,o>t||H.current){const e=Q.current.getBoundingClientRect().height;let n=e;e>t&&(n=t-(a?u:26)),Q.current.style.height=h?e-Math.max(r,0)+"px":`${Math.max(n,t-u)}px`}else Q.current.style.height=`${Y.current}px`;i&&i.length>0&&!H.current?Q.current.style.bottom="0px":Q.current.style.bottom=`${Math.max(r,0)}px`}}return null==(e=window.visualViewport)||e.addEventListener("resize",t),()=>{var e;return null==(e=window.visualViewport)?void 0:e.removeEventListener("resize",t)}}),[te,i,oe]),We.useEffect((()=>(T&&(zr(document.documentElement,{scrollBehavior:"auto"}),B.current=new Date),()=>{UV(document.documentElement,"scrollBehavior")})),[T]),We.createElement(xV,{defaultOpen:x,onOpenChange:e=>{!c&&!e||(e?j(!0):de(!0),O(e))},open:T},We.createElement(YD.Provider,{value:{activeSnapPoint:ee,snapPoints:i,setActiveSnapPoint:ne,drawerRef:Q,overlayRef:$,onOpenChange:t,onPress:function(e){var t,n;!c&&!i||Q.current&&!Q.current.contains(e.target)||(X.current=(null==(t=Q.current)?void 0:t.getBoundingClientRect().height)||0,J.current=(null==(n=Q.current)?void 0:n.getBoundingClientRect().width)||0,D(!0),V.current=new Date,XD()&&window.addEventListener("touchend",(()=>U.current=!1),{once:!0}),e.target.setPointerCapture(e.pointerId),W.current=Wr(w)?e.pageY:e.pageX)},onRelease:function(e){if(!q||!Q.current)return;Q.current.classList.remove(xx),U.current=!1,D(!1),z.current=new Date;const t=Dg(Q.current,w);if(!ce(e.target,!1)||!t||Number.isNaN(t)||null===V.current)return;const n=z.current.getTime()-V.current.getTime(),r=W.current-(Wr(w)?e.pageY:e.pageX),a=Math.abs(r)/n;if(a>.05&&(L(!0),setTimeout((()=>{L(!1)}),200)),i)return re({draggedDistance:r*("bottom"===w||"right"===w?1:-1),closeDrawer:de,velocity:a,dismissible:c}),void(null==o||o(e,!0));if("bottom"===w||"right"===w?r>0:r<0)return fe(),void(null==o||o(e,!0));if(a>tN)return de(),void(null==o||o(e,!1));var u;const l=Math.min(null!=(u=Q.current.getBoundingClientRect().height)?u:0,window.innerHeight);var d;const f=Math.min(null!=(d=Q.current.getBoundingClientRect().width)?d:0,window.innerWidth),p="left"===w||"right"===w;if(Math.abs(t)>=(p?f:l)*s)return de(),void(null==o||o(e,!1));null==o||o(e,!0),fe()},onDrag:function(e){if(Q.current&&q){const t="bottom"===w||"right"===w?1:-1,n=(W.current-(Wr(w)?e.pageY:e.pageX))*t,o=n>0,u=i&&!c&&!o;if(u&&0===te)return;const s=Math.abs(n),l=document.querySelector("[data-vaul-drawer-wrapper]");let d=s/("bottom"===w||"top"===w?X.current:J.current);const p=ue(s,o);if(null!==p&&(d=p),u&&d>=1||!U.current&&!ce(e.target,o))return;if(Q.current.classList.add(xx),U.current=!0,zr(Q.current,{transition:"none"}),zr($.current,{transition:"none"}),i&&ie({draggedDistance:n}),o&&!i){const e=zV(n),r=Math.min(-1*e,0)*t;return void zr(Q.current,{transform:Wr(w)?`translate3d(0, ${r}px, 0)`:`translate3d(${r}px, 0, 0)`})}const m=1-d;if((ae||f&&te===f-1)&&(null==r||r(e,d),zr($.current,{opacity:`${m}`,transition:"none"},!0)),l&&$.current&&a){const e=Math.min(le()+d*(1-le()),1),t=8-8*d,n=Math.max(0,14-14*d);zr(l,{borderRadius:`${t}px`,transform:Wr(w)?`scale(${e}) translate3d(0, ${n}px, 0)`:`scale(${e}) translate3d(${n}px, 0, 0)`,transition:"none"},!0)}if(!i){const e=s*t;zr(Q.current,{transform:Wr(w)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}},dismissible:c,handleOnly:d,isOpen:T,isDragging:q,shouldFade:ae,closeDrawer:de,onNestedDrag:function(e,t){if(t<0)return;const n=(window.innerWidth-16)/window.innerWidth,r=n+t*(1-n),o=16*t-16;zr(Q.current,{transform:Wr(w)?`scale(${r}) translate3d(0, ${o}px, 0)`:`scale(${r}) translate3d(${o}px, 0, 0)`,transition:"none"})},onNestedOpenChange:function(e){const t=e?(window.innerWidth-16)/window.innerWidth:1,n=e?-16:0;G.current&&window.clearTimeout(G.current),zr(Q.current,{transition:`transform ${Vn.DURATION}s cubic-bezier(${Vn.EASE.join(",")})`,transform:`scale(${t}) translate3d(0, ${n}px, 0)`}),!e&&Q.current&&(G.current=setTimeout((()=>{const e=Dg(Q.current,w);zr(Q.current,{transition:"none",transform:Wr(w)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}),500))},onNestedRelease:function(e,t){const n=Wr(w)?window.innerHeight:window.innerWidth,r=t?(n-16)/n:1,o=t?-16:0;t&&zr(Q.current,{transition:`transform ${Vn.DURATION}s cubic-bezier(${Vn.EASE.join(",")})`,transform:Wr(w)?`scale(${r}) translate3d(0, ${o}px, 0)`:`scale(${r}) translate3d(${o}px, 0, 0)`})},keyboardIsOpen:H,modal:v,snapPointsOffset:oe,direction:w,shouldScaleBackground:a,setBackgroundColorOnScale:u,noBodyStyles:b,container:C,autoFocus:I}},n))}const aN=We.forwardRef((function({...e},t){const{overlayRef:n,snapPoints:r,onRelease:o,shouldFade:i,isOpen:a,modal:u}=zh(),s=ZD(t,n),l=r&&r.length>0;return u?We.createElement(CV,{onMouseUp:o,ref:s,"data-vaul-overlay":"","data-vaul-snap-points":a&&l?"true":"false","data-vaul-snap-points-overlay":a&&i?"true":"false",...e}):(typeof window<"u"&&window.requestAnimationFrame((()=>{document.body.style.pointerEvents="auto"})),null)}));aN.displayName="Drawer.Overlay";const sN=We.forwardRef((function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},o){const{drawerRef:i,onPress:a,onRelease:u,onDrag:s,keyboardIsOpen:l,snapPointsOffset:c,modal:d,isOpen:f,direction:p,snapPoints:m,container:h,handleOnly:v,autoFocus:g}=zh(),[y,b]=We.useState(!1),w=ZD(o,i),x=We.useRef(null),_=We.useRef(null),E=We.useRef(!1),S=m&&m.length>0;YV();function k(e){x.current=null,E.current=!1,u(e)}return We.useEffect((()=>{S&&window.requestAnimationFrame((()=>{b(!0)}))}),[]),We.createElement($V,{"data-vaul-drawer-direction":p,"data-vaul-drawer":"","data-vaul-delayed-snap-points":y?"true":"false","data-vaul-snap-points":f&&S?"true":"false","data-vaul-custom-container":h?"true":"false",...r,ref:w,style:c&&c.length>0?{"--snap-point-height":`${c[0]}px`,...t}:t,onPointerDown:e=>{v||(null==r.onPointerDown||r.onPointerDown.call(r,e),x.current={x:e.pageX,y:e.pageY},a(e))},onOpenAutoFocus:e=>{null==n||n(e),g||e.preventDefault()},onPointerDownOutside:t=>{null==e||e(t),d&&!t.defaultPrevented?l.current&&(l.current=!1):t.preventDefault()},onFocusOutside:e=>{d||e.preventDefault()},onPointerMove:e=>{if(_.current=e,v||(null==r.onPointerMove||r.onPointerMove.call(r,e),!x.current))return;const t=e.pageY-x.current.y,n=e.pageX-x.current.x,o="touch"===e.pointerType?10:2;((e,t,n=0)=>{if(E.current)return!0;const r=Math.abs(e.y),o=Math.abs(e.x),i=o>r,a=["bottom","right"].includes(t)?1:-1;if("left"===t||"right"===t){if(!(e.x*a<0)&&o>=0&&o<=n)return i}else if(!(e.y*a<0)&&r>=0&&r<=n)return!i;return E.current=!0,!0})({x:n,y:t},p,o)?s(e):(Math.abs(n)>o||Math.abs(t)>o)&&(x.current=null)},onPointerUp:e=>{null==r.onPointerUp||r.onPointerUp.call(r,e),x.current=null,E.current=!1,u(e)},onPointerOut:e=>{null==r.onPointerOut||r.onPointerOut.call(r,e),k(_.current)},onContextMenu:e=>{null==r.onContextMenu||r.onContextMenu.call(r,e),k(_.current)}})}));sN.displayName="Drawer.Content";const JV=250,ZV=120,uN=We.forwardRef((function({preventCycle:e=!1,children:t,...n},r){const{closeDrawer:o,isDragging:i,snapPoints:a,activeSnapPoint:u,setActiveSnapPoint:s,dismissible:l,handleOnly:c,isOpen:d,onPress:f,onDrag:p}=zh(),m=We.useRef(null),h=We.useRef(!1);function v(){window.clearTimeout(m.current),h.current=!1}return We.createElement("div",{onClick:function(){h.current?v():window.setTimeout((()=>{!function(){if(i||e||h.current)return void v();if(v(),(!a||0===a.length)&&l)return void o();if(u===a[a.length-1]&&l)return void o();const t=a.findIndex((e=>e===u));if(-1===t)return;const n=a[t+1];s(n)}()}),ZV)},onPointerCancel:v,onPointerDown:e=>{c&&f(e),m.current=window.setTimeout((()=>{h.current=!0}),JV)},onPointerMove:e=>{c&&p(e)},ref:r,"data-vaul-drawer-visible":d?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},We.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))}));function eU({onDrag:e,onOpenChange:t,...n}){const{onNestedDrag:r,onNestedOpenChange:o,onNestedRelease:i}=zh();if(!r)throw new Error("Drawer.NestedRoot must be placed in another drawer");return We.createElement(iN,{nested:!0,onClose:()=>{o(!1)},onDrag:(t,n)=>{r(t,n),null==e||e(t,n)},onOpenChange:e=>{e&&o(e)},onRelease:i,...n})}function tU(e){const t=zh(),{container:n=t.container,...r}=e;return We.createElement(EV,{container:n,...r})}uN.displayName="Drawer.Handle";const _d={Root:iN,NestedRoot:eU,Content:sN,Overlay:aN,Trigger:SV,Portal:tU,Handle:uN,Close:PV,Title:IV,Description:RV},nU=_d.Portal,lN=m.forwardRef((({className:e,...t},n)=>G.jsx(_d.Overlay,{ref:n,className:we("fixed inset-0 z-50 bg-black/5",e),...t})));lN.displayName=_d.Overlay.displayName;const rU=m.forwardRef((({className:e,children:t,direction:n="bottom",...r},o)=>G.jsxs(nU,{children:[G.jsx(lN,{}),G.jsxs(_d.Content,{ref:o,className:we("fixed z-50 border bg-background shadow-lg","bottom"===n&&"inset-x-0 bottom-0 mt-24 flex h-auto flex-col rounded-t-sm","top"===n&&"inset-x-0 top-0 mb-24 flex h-auto flex-col rounded-b-sm","left"===n&&"inset-y-0 left-0 flex h-full flex-col","right"===n&&"inset-y-0 right-0 flex h-full w-[346px] flex-col sm:w-[435px]",e),...r,children:["bottom"===n&&G.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]})));rU.displayName="DrawerContent";const oU=m.forwardRef((({className:e,...t},n)=>G.jsx(_d.Title,{ref:n,className:we("text-lg font-semibold leading-none tracking-tight",e),...t})));oU.displayName=_d.Title.displayName;const iU=m.forwardRef((({className:e,...t},n)=>G.jsx(_d.Description,{ref:n,className:we("text-sm text-muted-foreground",e),...t})));function mC(e){const t=e+"CollectionProvider",[n,r]=ni(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",u=e+"CollectionItemSlot",s="data-radix-collection-item";return[{Provider:e=>{const{scope:t,children:n}=e,r=We.useRef(null),i=We.useRef(new Map).current;return We.createElement(o,{scope:t,itemMap:i,collectionRef:r},n)},Slot:We.forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=Ut(t,i(a,n).collectionRef);return We.createElement(Hf,{ref:o},r)})),ItemSlot:We.forwardRef(((e,t)=>{const{scope:n,children:r,...o}=e,a=We.useRef(null),l=Ut(t,a),c=i(u,n);return We.useEffect((()=>(c.itemMap.set(a,{ref:a,...o}),()=>{c.itemMap.delete(a)}))),We.createElement(Hf,{[s]:"",ref:l},r)}))},function(t){const n=i(e+"CollectionConsumer",t);return We.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${s}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},r]}iU.displayName=_d.Description.displayName;const aU=m.createContext(void 0);function vC(e){const t=m.useContext(aU);return e||t||"ltr"}const sU=["top","right","bottom","left"],hd=Math.min,Xi=Math.max,ty=Math.round,Ng=Math.floor,md=e=>({x:e,y:e}),uU={left:"right",right:"left",bottom:"top",top:"bottom"},lU={start:"end",end:"start"};function WS(e,t,n){return Xi(e,hd(t,n))}function Cl(e,t){return"function"==typeof e?e(t):e}function $l(e){return e.split("-")[0]}function Wh(e){return e.split("-")[1]}function gC(e){return"x"===e?"y":"x"}function yC(e){return"y"===e?"height":"width"}function vd(e){return["top","bottom"].includes($l(e))?"y":"x"}function wC(e){return gC(vd(e))}function cU(e,t,n){void 0===n&&(n=!1);const r=Wh(e),o=wC(e),i=yC(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=ny(a)),[a,ny(a)]}function dU(e){const t=ny(e);return[qS(e),t,qS(t)]}function qS(e){return e.replace(/start|end/g,(e=>lU[e]))}function fU(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}function pU(e,t,n,r){const o=Wh(e);let i=fU($l(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(qS)))),i}function ny(e){return e.replace(/left|right|bottom|top/g,(e=>uU[e]))}function hU(e){return{top:0,right:0,bottom:0,left:0,...e}}function cN(e){return"number"!=typeof e?hU(e):{top:e,right:e,bottom:e,left:e}}function ry(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function GT(e,t,n){let{reference:r,floating:o}=e;const i=vd(t),a=wC(t),u=yC(a),s=$l(t),l="y"===i,c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[u]/2-o[u]/2;let p;switch(s){case"top":p={x:c,y:r.y-o.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Wh(t)){case"start":p[a]-=f*(n&&l?-1:1);break;case"end":p[a]+=f*(n&&l?-1:1)}return p}const mU=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,u=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=GT(l,r,s),f=r,p={},m=0;for(let n=0;n<u.length;n++){const{name:i,fn:h}=u[n],{x:v,y:g,data:y,reset:b}=await h({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:l,platform:a,elements:{reference:e,floating:t}});c=v??c,d=g??d,p={...p,[i]:{...p[i],...y}},b&&m<=50&&(m++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(l=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:c,y:d}=GT(l,f,s))),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}};async function bv(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:u,strategy:s}=e,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Cl(t,e),m=cN(p),h=u[f?"floating"===d?"reference":"floating":d],v=ry(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(u.floating)),boundary:l,rootBoundary:c,strategy:s})),g="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(u.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=ry(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:g,offsetParent:y,strategy:s}):g);return{top:(v.top-w.top+m.top)/b.y,bottom:(w.bottom-v.bottom+m.bottom)/b.y,left:(v.left-w.left+m.left)/b.x,right:(w.right-v.right+m.right)/b.x}}const vU=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:u,middlewareData:s}=t,{element:l,padding:c=0}=Cl(e,t)||{};if(null==l)return{};const d=cN(c),f={x:n,y:r},p=wC(o),m=yC(p),h=await a.getDimensions(l),v="y"===p,g=v?"top":"left",y=v?"bottom":"right",b=v?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[p]-f[p]-i.floating[m],x=f[p]-i.reference[p],_=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let E=_?_[b]:0;(!E||!await(null==a.isElement?void 0:a.isElement(_)))&&(E=u.floating[b]||i.floating[m]);const S=w/2-x/2,k=E/2-h[m]/2-1,A=hd(d[g],k),C=hd(d[y],k),I=A,R=E-h[m]-C,P=E/2-h[m]/2+S,T=WS(I,P,R),O=!s.arrow&&null!=Wh(o)&&P!==T&&i.reference[m]/2-(P<I?A:C)-h[m]/2<0,N=O?P<I?P-I:P-R:0;return{[p]:f[p]+N,data:{[p]:T,centerOffset:P-T-N,...O&&{alignmentOffset:N}},reset:O}}}),gU=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:u,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...v}=Cl(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const g=$l(o),y=vd(u),b=$l(u)===u,w=await(null==s.isRTL?void 0:s.isRTL(l.floating)),x=f||(b||!h?[ny(u)]:dU(u)),_="none"!==m;!f&&_&&x.push(...pU(u,h,m,w));const E=[u,...x],S=await bv(t,v),k=[];let A=(null==(r=i.flip)?void 0:r.overflows)||[];if(c&&k.push(S[g]),d){const e=cU(o,a,w);k.push(S[e[0]],S[e[1]])}if(A=[...A,{placement:o,overflows:k}],!k.every((e=>e<=0))){var C,I;const e=((null==(C=i.flip)?void 0:C.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:A},reset:{placement:t}};let n=null==(I=A.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:I.placement;if(!n)switch(p){case"bestFit":{var R;const e=null==(R=A.filter((e=>{if(_){const t=vd(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:R[0];e&&(n=e);break}case"initialPlacement":n=u}if(o!==n)return{reset:{placement:n}}}return{}}}};function HT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function KT(e){return sU.some((t=>e[t]>=0))}const yU=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Cl(e,t);switch(r){case"referenceHidden":{const e=HT(await bv(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:KT(e)}}}case"escaped":{const e=HT(await bv(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:KT(e)}}}default:return{}}}}};async function wU(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=$l(n),u=Wh(n),s="y"===vd(n),l=["left","top"].includes(a)?-1:1,c=i&&s?-1:1,d=Cl(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return u&&"number"==typeof m&&(p="end"===u?-1*m:m),s?{x:p*c,y:f*l}:{x:f*l,y:p*c}}const _U=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:u}=t,s=await wU(t,e);return a===(null==(n=u.offset)?void 0:n.placement)&&null!=(r=u.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},bU=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=Cl(e,t),l={x:n,y:r},c=await bv(t,s),d=vd($l(o)),f=gC(d);let p=l[f],m=l[d];if(i){const e="y"===f?"bottom":"right";p=WS(p+c["y"===f?"top":"left"],p,p-c[e])}if(a){const e="y"===d?"bottom":"right";m=WS(m+c["y"===d?"top":"left"],m,m-c[e])}const h=u.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:i,[d]:a}}}}}},xU=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:u=0,mainAxis:s=!0,crossAxis:l=!0}=Cl(e,t),c={x:n,y:r},d=vd(o),f=gC(d);let p=c[f],m=c[d];const h=Cl(u,t),v="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+v.mainAxis,n=i.reference[f]+i.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var g,y;const e="y"===f?"width":"height",t=["top","left"].includes($l(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(g=a.offset)?void 0:g[d])||0)+(t?0:v.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?v.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},SU=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:u}=t,{apply:s=()=>{},...l}=Cl(e,t),c=await bv(t,l),d=$l(o),f=Wh(o),p="y"===vd(o),{width:m,height:h}=i.floating;let v,g;"top"===d||"bottom"===d?(v=d,g=f===(await(null==a.isRTL?void 0:a.isRTL(u.floating))?"start":"end")?"left":"right"):(g=d,v="end"===f?"top":"bottom");const y=h-c.top-c.bottom,b=m-c.left-c.right,w=hd(h-c[v],y),x=hd(m-c[g],b),_=!t.middlewareData.shift;let E=w,S=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(E=y),_&&!f){const e=Xi(c.left,0),t=Xi(c.right,0),n=Xi(c.top,0),r=Xi(c.bottom,0);p?S=m-2*(0!==e||0!==t?e+t:Xi(c.left,c.right)):E=h-2*(0!==n||0!==r?n+r:Xi(c.top,c.bottom))}await s({...t,availableWidth:S,availableHeight:E});const k=await a.getDimensions(u.floating);return m!==k.width||h!==k.height?{reset:{rects:!0}}:{}}}};function Wy(){return typeof window<"u"}function gd(e){return dN(e)?(e.nodeName||"").toLowerCase():"#document"}function Ji(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Pl(e){var t;return null==(t=(dN(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function dN(e){return!!Wy()&&(e instanceof Node||e instanceof Ji(e).Node)}function fu(e){return!!Wy()&&(e instanceof Element||e instanceof Ji(e).Element)}function pu(e){return!!Wy()&&(e instanceof HTMLElement||e instanceof Ji(e).HTMLElement)}function QT(e){return!(!Wy()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof Ji(e).ShadowRoot)}function Vv(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Da(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function EU(e){return["table","td","th"].includes(gd(e))}function CU(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch{return!1}}))}function _C(e){const t=bC(),n=fu(e)?Da(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function fN(e){let t=Lh(e);for(;pu(t)&&!qy(t);){if(_C(t))return t;if(CU(t))return null;t=Lh(t)}return null}function bC(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function qy(e){return["html","body","#document"].includes(gd(e))}function Da(e){return Ji(e).getComputedStyle(e)}function Gy(e){return fu(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Lh(e){if("html"===gd(e))return e;const t=e.assignedSlot||e.parentNode||QT(e)&&e.host||Pl(e);return QT(t)?t.host:t}function pN(e){const t=Lh(e);return qy(t)?e.ownerDocument?e.ownerDocument.body:e.body:pu(t)&&Vv(t)?t:pN(t)}function xv(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=pN(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Ji(o);if(i){const e=$U(a);return t.concat(a,a.visualViewport||[],Vv(o)?o:[],e&&n?xv(e):[])}return t.concat(o,xv(o,[],n))}function $U(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function hN(e){const t=Da(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=pu(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,u=ty(n)!==i||ty(r)!==a;return u&&(n=i,r=a),{width:n,height:r,$:u}}function xC(e){return fu(e)?e:e.contextElement}function Oh(e){const t=xC(e);if(!pu(t))return md(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=hN(t);let a=(i?ty(n.width):n.width)/r,u=(i?ty(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!u||!Number.isFinite(u))&&(u=1),{x:a,y:u}}const IU=md(0);function mN(e){const t=Ji(e);return bC()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:IU}function RU(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Ji(e))&&t}function Zf(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=xC(e);let a=md(1);t&&(r?fu(r)&&(a=Oh(r)):a=Oh(e));const u=RU(i,n,r)?mN(i):md(0);let s=(o.left+u.x)/a.x,l=(o.top+u.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(i){const e=Ji(i),t=r&&fu(r)?Ji(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=Oh(n),t=n.getBoundingClientRect(),r=Da(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,l*=e.y,c*=e.x,d*=e.y,s+=o,l+=i,n=Ji(n).frameElement}}return ry({width:c,height:d,x:s,y:l})}const PU=[":popover-open",":modal"];function vN(e){let t=!1,n=0,r=0;if(PU.forEach((n=>{!function(n){try{t=t||e.matches(n)}catch{}}(n)})),t){const t=fN(e);if(t){const e=t.getBoundingClientRect();n=e.x,r=e.y}}return[t,n,r]}function TU(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=Pl(r),[a]=t?vN(t.floating):[!1];if(r===i||a)return n;let u={scrollLeft:0,scrollTop:0},s=md(1);const l=md(0),c=pu(r);if((c||!c&&"fixed"!==o)&&(("body"!==gd(r)||Vv(i))&&(u=Gy(r)),pu(r))){const e=Zf(r);s=Oh(r),l.x=e.x+r.clientLeft,l.y=e.y+r.clientTop}return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-u.scrollLeft*s.x+l.x,y:n.y*s.y-u.scrollTop*s.y+l.y}}function OU(e){return Array.from(e.getClientRects())}function gN(e){return Zf(Pl(e)).left+Gy(e).scrollLeft}function AU(e){const t=Pl(e),n=Gy(e),r=e.ownerDocument.body,o=Xi(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Xi(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+gN(e);const u=-n.scrollTop;return"rtl"===Da(r).direction&&(a+=Xi(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:u}}function kU(e,t){const n=Ji(e),r=Pl(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,u=0,s=0;if(o){i=o.width,a=o.height;const e=bC();(!e||e&&"fixed"===t)&&(u=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:u,y:s}}function DU(e,t){const n=Zf(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=pu(e)?Oh(e):md(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}function YT(e,t,n){let r;if("viewport"===t)r=kU(e,n);else if("document"===t)r=AU(Pl(e));else if(fu(t))r=DU(t,n);else{const n=mN(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return ry(r)}function yN(e,t){const n=Lh(e);return!(n===t||!fu(n)||qy(n))&&("fixed"===Da(n).position||yN(n,t))}function NU(e,t){const n=t.get(e);if(n)return n;let r=xv(e,[],!1).filter((e=>fu(e)&&"body"!==gd(e))),o=null;const i="fixed"===Da(e).position;let a=i?Lh(e):e;for(;fu(a)&&!qy(a);){const t=Da(a),n=_C(a);!n&&"fixed"===t.position&&(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Vv(a)&&!n&&yN(e,a))?r=r.filter((e=>e!==a)):o=t,a=Lh(a)}return t.set(e,r),r}function MU(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?NU(t,this._c):[].concat(n),r],a=i[0],u=i.reduce(((e,n)=>{const r=YT(t,n,o);return e.top=Xi(r.top,e.top),e.right=hd(r.right,e.right),e.bottom=hd(r.bottom,e.bottom),e.left=Xi(r.left,e.left),e}),YT(t,a,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function LU(e){const{width:t,height:n}=hN(e);return{width:t,height:n}}function FU(e,t,n,r){const o=pu(t),i=Pl(t),a="fixed"===n,u=Zf(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=md(0);if(o||!o&&!a)if(("body"!==gd(t)||Vv(i))&&(s=Gy(t)),o){const e=Zf(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=gN(i));let c=u.left+s.scrollLeft-l.x,d=u.top+s.scrollTop-l.y;const[f,p,m]=vN(r);return f&&(c+=p,d+=m,o&&(c+=t.clientLeft,d+=t.clientTop)),{x:c,y:d,width:u.width,height:u.height}}function XT(e,t){return pu(e)&&"fixed"!==Da(e).position?t?t(e):e.offsetParent:null}function wN(e,t){const n=Ji(e);if(!pu(e))return n;let r=XT(e,t);for(;r&&EU(r)&&"static"===Da(r).position;)r=XT(r,t);return r&&("html"===gd(r)||"body"===gd(r)&&"static"===Da(r).position&&!_C(r))?n:r||fN(e)||n}const BU=async function(e){const t=this.getOffsetParent||wN,n=this.getDimensions;return{reference:FU(e.reference,await t(e.floating),e.strategy,e.floating),floating:{x:0,y:0,...await n(e.floating)}}};function jU(e){return"rtl"===Da(e).direction}const VU={convertOffsetParentRelativeRectToViewportRelativeRect:TU,getDocumentElement:Pl,getClippingRect:MU,getOffsetParent:wN,getElementRects:BU,getClientRects:OU,getDimensions:LU,getScale:Oh,isElement:fu,isRTL:jU};function UU(e,t){let n,r=null;const o=Pl(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(u,s){void 0===u&&(u=!1),void 0===s&&(s=1),i();const{left:l,top:c,width:d,height:f}=e.getBoundingClientRect();if(u||t(),!d||!f)return;const p={rootMargin:-Ng(c)+"px "+-Ng(o.clientWidth-(l+d))+"px "+-Ng(o.clientHeight-(c+f))+"px "+-Ng(l)+"px",threshold:Xi(0,hd(1,s))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==s){if(!m)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}m=!1}try{r=new IntersectionObserver(h,{...p,root:o.ownerDocument})}catch{r=new IntersectionObserver(h,p)}r.observe(e)}(!0),i}function zU(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,l=xC(e),c=o||i?[...l?xv(l):[],...xv(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=l&&u?UU(l,n):null;let f=-1,p=null;a&&(p=new ResizeObserver((e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=p)||e.observe(t)}))),n()})),l&&!s&&p.observe(l),p.observe(t));let m,h=s?Zf(e):null;return s&&function t(){const r=Zf(e);h&&(r.x!==h.x||r.y!==h.y||r.width!==h.width||r.height!==h.height)&&n(),h=r,m=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=p)||e.disconnect(),p=null,s&&cancelAnimationFrame(m)}}const WU=bU,qU=gU,GU=SU,HU=yU,JT=vU,KU=xU,QU=(e,t,n)=>{const r=new Map,o={platform:VU,...n},i={...o.platform,_c:r};return mU(e,t,{...o,platform:i})};var Gg=typeof document<"u"?m.useLayoutEffect:m.useEffect;function oy(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!oy(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||oy(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function _N(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ZT(e,t){const n=_N(e);return Math.round(t*n)/n}function Sx(e){const t=m.useRef(e);return Gg((()=>{t.current=e})),t}function YU(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:u=!0,whileElementsMounted:s,open:l}=e,[c,d]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=m.useState(r);oy(f,r)||p(r);const[h,v]=m.useState(null),[g,y]=m.useState(null),b=m.useCallback((e=>{e!==E.current&&(E.current=e,v(e))}),[]),w=m.useCallback((e=>{e!==S.current&&(S.current=e,y(e))}),[]),x=i||h,_=a||g,E=m.useRef(null),S=m.useRef(null),k=m.useRef(c),A=null!=s,C=Sx(s),I=Sx(o),R=Sx(l),P=m.useCallback((()=>{if(!E.current||!S.current)return;const e={placement:t,strategy:n,middleware:f};I.current&&(e.platform=I.current),QU(E.current,S.current,e).then((e=>{const t={...e,isPositioned:!1!==R.current};T.current&&!oy(k.current,t)&&(k.current=t,vu.flushSync((()=>{d(t)})))}))}),[f,t,n,I,R]);Gg((()=>{!1===l&&k.current.isPositioned&&(k.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[l]);const T=m.useRef(!1);Gg((()=>(T.current=!0,()=>{T.current=!1})),[]),Gg((()=>{if(x&&(E.current=x),_&&(S.current=_),x&&_){if(C.current)return C.current(x,_,P);P()}}),[x,_,P,C,A]);const O=m.useMemo((()=>({reference:E,floating:S,setReference:b,setFloating:w})),[b,w]),N=m.useMemo((()=>({reference:x,floating:_})),[x,_]),j=m.useMemo((()=>{const e={position:n,left:0,top:0};if(!N.floating)return e;const t=ZT(N.floating,c.x),r=ZT(N.floating,c.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",..._N(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,u,N.floating,c.x,c.y]);return m.useMemo((()=>({...c,update:P,refs:O,elements:N,floatingStyles:j})),[c,P,O,N,j])}const XU=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&function(e){return{}.hasOwnProperty.call(e,"current")}(n)?null!=n.current?JT({element:n.current,padding:r}).fn(t):{}:n?JT({element:n,padding:r}).fn(t):{}}}),JU=(e,t)=>({..._U(e),options:[e,t]}),ZU=(e,t)=>({...WU(e),options:[e,t]}),ez=(e,t)=>({...KU(e),options:[e,t]}),tz=(e,t)=>({...qU(e),options:[e,t]}),nz=(e,t)=>({...GU(e),options:[e,t]}),rz=(e,t)=>({...HU(e),options:[e,t]}),oz=(e,t)=>({...XU(e),options:[e,t]}),bN="Popper",[xN,qh]=ni(bN),[iz,SN]=xN(bN),az=e=>{const{__scopePopper:t,children:n}=e,[r,o]=m.useState(null);return m.createElement(iz,{scope:t,anchor:r,onAnchorChange:o},n)},sz="PopperAnchor",uz=m.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=SN(sz,n),a=m.useRef(null),u=Ut(t,a);return m.useEffect((()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)})),r?null:m.createElement(ft.div,Te({},o,{ref:u}))})),EN="PopperContent",[lz,MZ]=xN(EN),cz=m.forwardRef(((e,t)=>{var n,r,o,i,a,u,s,l;const{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:p="center",alignOffset:h=0,arrowPadding:v=0,avoidCollisions:g=!0,collisionBoundary:y=[],collisionPadding:b=0,sticky:w="partial",hideWhenDetached:x=!1,updatePositionStrategy:_="optimized",onPlaced:E,...S}=e,k=SN(EN,c),[A,C]=m.useState(null),I=Ut(t,(e=>C(e))),[R,P]=m.useState(null),T=jy(R),O=null!==(n=null==T?void 0:T.width)&&void 0!==n?n:0,N=null!==(r=null==T?void 0:T.height)&&void 0!==r?r:0,j=d+("center"!==p?"-"+p:""),q="number"==typeof b?b:{top:0,right:0,bottom:0,left:0,...b},D=Array.isArray(y)?y:[y],M=D.length>0,L={padding:q,boundary:D.filter(dz),altBoundary:M},{refs:$,floatingStyles:B,placement:V,isPositioned:z,middlewareData:F}=YU({strategy:"fixed",placement:j,whileElementsMounted:(...e)=>zU(...e,{animationFrame:"always"===_}),elements:{reference:k.anchor},middleware:[JU({mainAxis:f+N,alignmentAxis:h}),g&&ZU({mainAxis:!0,crossAxis:!1,limiter:"partial"===w?ez():void 0,...L}),g&&tz({...L}),nz({...L,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),R&&oz({element:R,padding:v}),fz({arrowWidth:O,arrowHeight:N}),x&&rz({strategy:"referenceHidden",...L})]}),[U,G]=CN(V),W=ys(E);Uo((()=>{z&&(null==W||W())}),[z,W]);const H=null===(o=F.arrow)||void 0===o?void 0:o.x,K=null===(i=F.arrow)||void 0===i?void 0:i.y,Q=0!==(null===(a=F.arrow)||void 0===a?void 0:a.centerOffset),[X,J]=m.useState();return Uo((()=>{A&&J(window.getComputedStyle(A).zIndex)}),[A]),m.createElement("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:z?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:X,"--radix-popper-transform-origin":[null===(u=F.transformOrigin)||void 0===u?void 0:u.x,null===(s=F.transformOrigin)||void 0===s?void 0:s.y].join(" ")},dir:e.dir},m.createElement(lz,{scope:c,placedSide:U,onArrowChange:P,arrowX:H,arrowY:K,shouldHideArrow:Q},m.createElement(ft.div,Te({"data-side":U,"data-align":G},S,{ref:I,style:{...S.style,animation:z?void 0:"none",opacity:null!==(l=F.hide)&&void 0!==l&&l.referenceHidden?0:void 0}}))))}));function dz(e){return null!==e}const fz=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:u,rects:s,middlewareData:l}=t,c=0!==(null===(n=l.arrow)||void 0===n?void 0:n.centerOffset),d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,m]=CN(u),h={start:"0%",center:"50%",end:"100%"}[m],v=(null!==(r=null===(o=l.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,g=(null!==(i=null===(a=l.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let y="",b="";return"bottom"===p?(y=c?h:`${v}px`,b=-f+"px"):"top"===p?(y=c?h:`${v}px`,b=`${s.floating.height+f}px`):"right"===p?(y=-f+"px",b=c?h:`${g}px`):"left"===p&&(y=`${s.floating.width+f}px`,b=c?h:`${g}px`),{data:{x:y,y:b}}}});function CN(e){const[t,n="center"]=e.split("-");return[t,n]}const $N=az,SC=uz,EC=cz,Ex="rovingFocusGroup.onEntryFocus",pz={bubbles:!1,cancelable:!0},CC="RovingFocusGroup",[GS,IN,hz]=mC(CC),[mz,Gh]=ni(CC,[hz]),[vz,gz]=mz(CC),yz=m.forwardRef(((e,t)=>m.createElement(GS.Provider,{scope:e.__scopeRovingFocusGroup},m.createElement(GS.Slot,{scope:e.__scopeRovingFocusGroup},m.createElement(wz,Te({},e,{ref:t})))))),wz=m.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:s,onEntryFocus:l,...c}=e,d=m.useRef(null),f=Ut(t,d),p=vC(i),[h=null,v]=pd({prop:a,defaultProp:u,onChange:s}),[g,y]=m.useState(!1),b=ys(l),w=IN(n),x=m.useRef(!1),[_,E]=m.useState(0);return m.useEffect((()=>{const e=d.current;if(e)return e.addEventListener(Ex,b),()=>e.removeEventListener(Ex,b)}),[b]),m.createElement(vz,{scope:n,orientation:r,dir:p,loop:o,currentTabStopId:h,onItemFocus:m.useCallback((e=>v(e)),[v]),onItemShiftTab:m.useCallback((()=>y(!0)),[]),onFocusableItemAdd:m.useCallback((()=>E((e=>e+1))),[]),onFocusableItemRemove:m.useCallback((()=>E((e=>e-1))),[])},m.createElement(ft.div,Te({tabIndex:g||0===_?-1:0,"data-orientation":r},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:et(e.onMouseDown,(()=>{x.current=!0})),onFocus:et(e.onFocus,(e=>{const t=!x.current;if(e.target===e.currentTarget&&t&&!g){const t=new CustomEvent(Ex,pz);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=w().filter((e=>e.focusable));RN([e.find((e=>e.active)),e.find((e=>e.id===h)),...e].filter(Boolean).map((e=>e.ref.current)))}}x.current=!1})),onBlur:et(e.onBlur,(()=>y(!1)))})))})),_z="RovingFocusGroupItem",bz=m.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,u=sd(),s=i||u,l=gz(_z,n),c=l.currentTabStopId===s,d=IN(n),{onFocusableItemAdd:f,onFocusableItemRemove:p}=l;return m.useEffect((()=>{if(r)return f(),()=>p()}),[r,f,p]),m.createElement(GS.ItemSlot,{scope:n,id:s,focusable:r,active:o},m.createElement(ft.span,Te({tabIndex:c?0:-1,"data-orientation":l.orientation},a,{ref:t,onMouseDown:et(e.onMouseDown,(e=>{r?l.onItemFocus(s):e.preventDefault()})),onFocus:et(e.onFocus,(()=>l.onItemFocus(s))),onKeyDown:et(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void l.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=Ez(e,l.orientation,l.dir);if(void 0!==t){e.preventDefault();let n=d().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();const r=n.indexOf(e.currentTarget);n=l.loop?Cz(n,r+1):n.slice(r+1)}setTimeout((()=>RN(n)))}}))})))})),xz={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Sz(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function Ez(e,t,n){const r=Sz(e.key,n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)))return xz[r]}function RN(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Cz(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}const $C=yz,IC=bz,HS=["Enter"," "],$z=["ArrowDown","PageUp","Home"],PN=["ArrowUp","PageDown","End"],Iz=[...$z,...PN],Rz={ltr:[...HS,"ArrowRight"],rtl:[...HS,"ArrowLeft"]},Pz={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Hy="Menu",[Sv,Tz,Oz]=mC(Hy),[rp,TN]=ni(Hy,[Oz,qh,Gh]),ON=qh(),AN=Gh(),[LZ,op]=rp(Hy),[FZ,Uv]=rp(Hy),Az=m.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e,o=ON(n);return m.createElement(SC,Te({},o,r,{ref:t}))})),kN="MenuPortal",[kz,DN]=rp(kN,{forceMount:void 0}),Dz=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=op(kN,t);return m.createElement(kz,{scope:t,forceMount:n},m.createElement(ea,{present:n||i.open},m.createElement(Sy,{asChild:!0,container:o},r)))},ms="MenuContent",[Nz,RC]=rp(ms),Mz=m.forwardRef(((e,t)=>{const n=DN(ms,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=op(ms,e.__scopeMenu),a=Uv(ms,e.__scopeMenu);return m.createElement(Sv.Provider,{scope:e.__scopeMenu},m.createElement(ea,{present:r||i.open},m.createElement(Sv.Slot,{scope:e.__scopeMenu},a.modal?m.createElement(Lz,Te({},o,{ref:t})):m.createElement(Fz,Te({},o,{ref:t})))))})),Lz=m.forwardRef(((e,t)=>{const n=op(ms,e.__scopeMenu),r=m.useRef(null),o=Ut(t,r);return m.useEffect((()=>{const e=r.current;if(e)return $y(e)}),[]),m.createElement(PC,Te({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:et(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))})),Fz=m.forwardRef(((e,t)=>{const n=op(ms,e.__scopeMenu);return m.createElement(PC,Te({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))})),PC=m.forwardRef(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:u,onEntryFocus:s,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:h,...v}=e,g=op(ms,n),y=Uv(ms,n),b=ON(n),w=AN(n),x=Tz(n),[_,E]=m.useState(null),S=m.useRef(null),k=Ut(t,S,g.onContentChange),A=m.useRef(0),C=m.useRef(""),I=m.useRef(0),R=m.useRef(null),P=m.useRef("right"),T=m.useRef(0),O=h?Cy:m.Fragment,N=h?{as:Hf,allowPinchZoom:!0}:void 0;m.useEffect((()=>()=>window.clearTimeout(A.current)),[]),AE();const j=m.useCallback((e=>{var t,n;return P.current===(null===(t=R.current)||void 0===t?void 0:t.side)&&nW(e,null===(n=R.current)||void 0===n?void 0:n.area)}),[]);return m.createElement(Nz,{scope:n,searchRef:C,onItemEnter:m.useCallback((e=>{j(e)&&e.preventDefault()}),[j]),onItemLeave:m.useCallback((e=>{var t;j(e)||(null===(t=S.current)||void 0===t||t.focus(),E(null))}),[j]),onTriggerLeave:m.useCallback((e=>{j(e)&&e.preventDefault()}),[j]),pointerGraceTimerRef:I,onPointerGraceIntentChange:m.useCallback((e=>{R.current=e}),[])},m.createElement(O,N,m.createElement(OE,{asChild:!0,trapped:o,onMountAutoFocus:et(i,(e=>{var t;e.preventDefault(),null===(t=S.current)||void 0===t||t.focus()})),onUnmountAutoFocus:a},m.createElement(xy,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p},m.createElement($C,Te({asChild:!0},w,{dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:_,onCurrentTabStopIdChange:E,onEntryFocus:et(s,(e=>{y.isUsingKeyboardRef.current||e.preventDefault()}))}),m.createElement(EC,Te({role:"menu","aria-orientation":"vertical","data-state":BN(g.open),"data-radix-menu-content":"",dir:y.dir},b,v,{ref:k,style:{outline:"none",...v.style},onKeyDown:et(v.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&(e=>{var t,n;const r=C.current+e,o=x().filter((e=>!e.disabled)),i=document.activeElement,a=null===(t=o.find((e=>e.ref.current===i)))||void 0===t?void 0:t.textValue,u=eW(o.map((e=>e.textValue)),r,a),s=null===(n=o.find((e=>e.textValue===u)))||void 0===n?void 0:n.ref.current;(function e(t){C.current=t,window.clearTimeout(A.current),""!==t&&(A.current=window.setTimeout((()=>e("")),1e3))})(r),s&&setTimeout((()=>s.focus()))})(e.key));const o=S.current;if(e.target!==o||!Iz.includes(e.key))return;e.preventDefault();const i=x().filter((e=>!e.disabled)).map((e=>e.ref.current));PN.includes(e.key)&&i.reverse(),Jz(i)})),onBlur:et(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(A.current),C.current="")})),onPointerMove:et(e.onPointerMove,Ev((e=>{const t=e.target,n=T.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>T.current?"right":"left";P.current=t,T.current=e.clientX}})))})))))))})),Bz=m.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return m.createElement(ft.div,Te({},r,{ref:t}))})),KS="MenuItem",eO="menu.itemSelect",TC=m.forwardRef(((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=m.useRef(null),a=Uv(KS,e.__scopeMenu),u=RC(KS,e.__scopeMenu),s=Ut(t,i),l=m.useRef(!1);return m.createElement(NN,Te({},o,{ref:s,disabled:n,onClick:et(e.onClick,(()=>{const e=i.current;if(!n&&e){const t=new CustomEvent(eO,{bubbles:!0,cancelable:!0});e.addEventListener(eO,(e=>null==r?void 0:r(e)),{once:!0}),N2(e,t),t.defaultPrevented?l.current=!1:a.onClose()}})),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),l.current=!0},onPointerUp:et(e.onPointerUp,(e=>{var t;l.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:et(e.onKeyDown,(e=>{const t=""!==u.searchRef.current;n||t&&" "===e.key||HS.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),NN=m.forwardRef(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,a=RC(KS,n),u=AN(n),s=m.useRef(null),l=Ut(t,s),[c,d]=m.useState(!1),[f,p]=m.useState("");return m.useEffect((()=>{const e=s.current;var t;e&&p((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}),[i.children]),m.createElement(Sv.ItemSlot,{scope:n,disabled:r,textValue:o??f},m.createElement(IC,Te({asChild:!0},u,{focusable:!r}),m.createElement(ft.div,Te({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},i,{ref:l,onPointerMove:et(e.onPointerMove,Ev((e=>{r?a.onItemLeave(e):(a.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus())}))),onPointerLeave:et(e.onPointerLeave,Ev((e=>a.onItemLeave(e)))),onFocus:et(e.onFocus,(()=>d(!0))),onBlur:et(e.onBlur,(()=>d(!1)))}))))})),jz=m.forwardRef(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return m.createElement(LN,{scope:e.__scopeMenu,checked:n},m.createElement(TC,Te({role:"menuitemcheckbox","aria-checked":iy(n)?"mixed":n},o,{ref:t,"data-state":OC(n),onSelect:et(o.onSelect,(()=>null==r?void 0:r(!!iy(n)||!n)),{checkForDefaultPrevented:!1})})))})),Vz="MenuRadioGroup",[BZ,Uz]=rp(Vz,{value:void 0,onValueChange:()=>{}}),zz="MenuRadioItem",Wz=m.forwardRef(((e,t)=>{const{value:n,...r}=e,o=Uz(zz,e.__scopeMenu),i=n===o.value;return m.createElement(LN,{scope:e.__scopeMenu,checked:i},m.createElement(TC,Te({role:"menuitemradio","aria-checked":i},r,{ref:t,"data-state":OC(i),onSelect:et(r.onSelect,(()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,n)}),{checkForDefaultPrevented:!1})})))})),MN="MenuItemIndicator",[LN,qz]=rp(MN,{checked:!1}),Gz=m.forwardRef(((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=qz(MN,n);return m.createElement(ea,{present:r||iy(i.checked)||!0===i.checked},m.createElement(ft.span,Te({},o,{ref:t,"data-state":OC(i.checked)})))})),Hz=m.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return m.createElement(ft.div,Te({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))})),Kz="MenuSub",[jZ,FN]=rp(Kz),Mg="MenuSubTrigger",Qz=m.forwardRef(((e,t)=>{const n=op(Mg,e.__scopeMenu),r=Uv(Mg,e.__scopeMenu),o=FN(Mg,e.__scopeMenu),i=RC(Mg,e.__scopeMenu),a=m.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:s}=i,l={__scopeMenu:e.__scopeMenu},c=m.useCallback((()=>{a.current&&window.clearTimeout(a.current),a.current=null}),[]);return m.useEffect((()=>c),[c]),m.useEffect((()=>{const e=u.current;return()=>{window.clearTimeout(e),s(null)}}),[u,s]),m.createElement(Az,Te({asChild:!0},l),m.createElement(NN,Te({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":BN(n.open)},e,{ref:PE(t,o.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),!e.disabled&&!t.defaultPrevented&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:et(e.onPointerMove,Ev((t=>{i.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(i.onPointerGraceIntentChange(null),a.current=window.setTimeout((()=>{n.onOpenChange(!0),c()}),100))}))),onPointerLeave:et(e.onPointerLeave,Ev((e=>{var t;c();const r=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(r){var o;const t=null===(o=n.content)||void 0===o?void 0:o.dataset.side,a="right"===t,s=a?-5:5,l=r[a?"left":"right"],c=r[a?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+s,y:e.clientY},{x:l,y:r.top},{x:c,y:r.top},{x:c,y:r.bottom},{x:l,y:r.bottom}],side:t}),window.clearTimeout(u.current),u.current=window.setTimeout((()=>i.onPointerGraceIntentChange(null)),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}}))),onKeyDown:et(e.onKeyDown,(t=>{const o=""!==i.searchRef.current;var a;e.disabled||o&&" "===t.key||!Rz[r.dir].includes(t.key)||(n.onOpenChange(!0),null===(a=n.content)||void 0===a||a.focus(),t.preventDefault())}))})))})),Yz="MenuSubContent",Xz=m.forwardRef(((e,t)=>{const n=DN(ms,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=op(ms,e.__scopeMenu),a=Uv(ms,e.__scopeMenu),u=FN(Yz,e.__scopeMenu),s=m.useRef(null),l=Ut(t,s);return m.createElement(Sv.Provider,{scope:e.__scopeMenu},m.createElement(ea,{present:r||i.open},m.createElement(Sv.Slot,{scope:e.__scopeMenu},m.createElement(PC,Te({id:u.contentId,"aria-labelledby":u.triggerId},o,{ref:l,align:"start",side:"rtl"===a.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;a.isUsingKeyboardRef.current&&(null===(t=s.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:et(e.onFocusOutside,(e=>{e.target!==u.trigger&&i.onOpenChange(!1)})),onEscapeKeyDown:et(e.onEscapeKeyDown,(e=>{a.onClose(),e.preventDefault()})),onKeyDown:et(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=Pz[a.dir].includes(e.key);var r;t&&n&&(i.onOpenChange(!1),null===(r=u.trigger)||void 0===r||r.focus(),e.preventDefault())}))})))))}));function BN(e){return e?"open":"closed"}function iy(e){return"indeterminate"===e}function OC(e){return iy(e)?"indeterminate":e?"checked":"unchecked"}function Jz(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Zz(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}function eW(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,o=n?e.indexOf(n):-1;let i=Zz(e,Math.max(o,0));1===r.length&&(i=i.filter((e=>e!==n)));const a=i.find((e=>e.toLowerCase().startsWith(r.toLowerCase())));return a!==n?a:void 0}function tW(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,u=t[e].y,s=t[i].x,l=t[i].y;u>r!=l>r&&n<(s-a)*(r-u)/(l-u)+a&&(o=!o)}return o}function nW(e,t){if(!t)return!1;return tW({x:e.clientX,y:e.clientY},t)}function Ev(e){return t=>"mouse"===t.pointerType?e(t):void 0}const rW=Dz,oW=Mz,iW=Bz,aW=TC,sW=jz,uW=Wz,lW=Gz,cW=Hz,dW=Qz,fW=Xz,jN="DropdownMenu",[pW,VZ]=ni(jN,[TN]),yu=TN(),[UZ,hW]=pW(jN),mW=e=>{const{__scopeDropdownMenu:t,...n}=e,r=yu(t);return m.createElement(rW,Te({},r,n))},vW="DropdownMenuContent",gW=m.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=hW(vW,n),i=yu(n),a=m.useRef(!1);return m.createElement(oW,Te({id:o.contentId,"aria-labelledby":o.triggerId},i,r,{ref:t,onCloseAutoFocus:et(e.onCloseAutoFocus,(e=>{var t;a.current||null===(t=o.triggerRef.current)||void 0===t||t.focus(),a.current=!1,e.preventDefault()})),onInteractOutside:et(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!o.modal||r)&&(a.current=!0)})),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),yW=m.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yu(n);return m.createElement(iW,Te({},o,r,{ref:t}))})),wW=m.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yu(n);return m.createElement(aW,Te({},o,r,{ref:t}))})),_W=m.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yu(n);return m.createElement(sW,Te({},o,r,{ref:t}))})),bW=m.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yu(n);return m.createElement(uW,Te({},o,r,{ref:t}))})),xW=m.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yu(n);return m.createElement(lW,Te({},o,r,{ref:t}))})),SW=m.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yu(n);return m.createElement(cW,Te({},o,r,{ref:t}))})),EW=m.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yu(n);return m.createElement(dW,Te({},o,r,{ref:t}))})),CW=m.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yu(n);return m.createElement(fW,Te({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),$W=mW,VN=gW,UN=yW,zN=wW,WN=_W,qN=bW,IW=xW,AC=SW,GN=EW,HN=CW,RW=m.forwardRef((({className:e,inset:t,children:n,...r},o)=>G.jsxs(GN,{ref:o,className:we("flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,G.jsx(x2,{className:"ml-auto h-4 w-4"})]})));RW.displayName=GN.displayName;const PW=m.forwardRef((({className:e,...t},n)=>G.jsx(HN,{ref:n,className:we("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})));PW.displayName=HN.displayName;const tO=e=>{e.preventDefault()},TW=m.forwardRef((({className:e,sideOffset:t=4,isPortal:n,...r},o)=>{const i=G.jsx(VN,{ref:o,sideOffset:t,onOpenAutoFocus:tO,onCloseAutoFocus:tO,className:we("z-[101] flex max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] flex-col gap-xxxs overflow-y-auto rounded-lg border border-gray-200 bg-white p-xxs text-popover-foreground ","shadow-[0px_0px_12px_0px_rgba(0,0,0,0.08)] ","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=open]:fade-in data-[state=open]:slide-in-from-top-2","data-[state=closed]:fade-out data-[state=closed]:slide-out-to-top-2","data-[state=closed]:duration-150 data-[state=open]:duration-150","data-[state=closed]:[animation-timing-function:ease-in] data-[state=open]:[animation-timing-function:ease-out]",e),...r});return n?G.jsx($W,{children:i}):i}));TW.displayName=VN.displayName;const OW=m.forwardRef((({className:e,inset:t,...n},r)=>G.jsx(zN,{ref:r,className:we("relative flex cursor-default select-none items-center gap-xxs rounded-m p-xxs text-base font-medium text-gray-900 outline-none transition-colors hover:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-xl",e),...n})));OW.displayName=zN.displayName;const AW=m.forwardRef((({className:e,children:t,checked:n,checkboxPosition:r="right",...o},i)=>{const a=G.jsx(sC,{size:"default",variant:"default",checked:n});return G.jsxs(WN,{ref:i,className:we("relative flex cursor-default select-none items-center gap-xxs rounded-m p-xxs text-base font-medium text-gray-900"," outline-none transition-colors hover:bg-gray-100 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,onSelect:e=>e.preventDefault(),...o,children:["left"===r&&a,G.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:t}),"right"===r&&a]})}));AW.displayName=WN.displayName;const kW=m.forwardRef((({className:e,children:t,radioPosition:n="right",...r},o)=>{const i=G.jsx("div",{className:"flex h-xxs items-center justify-center",children:G.jsx(IW,{children:G.jsx($E,{size:20})})});return G.jsxs(qN,{ref:o,className:we("relative flex cursor-default select-none items-center gap-xxs rounded-m p-xxs text-base font-medium text-gray-900"," outline-none transition-colors hover:bg-gray-100 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),onSelect:e=>e.preventDefault(),...r,children:["left"===n&&i,G.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:t}),"right"===n&&i]})}));kW.displayName=qN.displayName;const DW=m.forwardRef((({className:e,inset:t,...n},r)=>G.jsx(UN,{ref:r,className:we("text-sm font-semibold",t&&"pl-xl",e),...n})));DW.displayName=UN.displayName;const NW=m.forwardRef((({className:e,...t},n)=>G.jsx(AC,{ref:n,className:we("-mx-1 my-1 h-px bg-muted",e),...t})));NW.displayName=AC.displayName;const MW=We.createContext(null),LW=()=>We.useContext(MW),FW=m.forwardRef(((e,t)=>m.createElement(ft.label,Te({},e,{ref:t,onMouseDown:t=>{var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()}})))),KN=FW,BW=mu("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),QN=m.forwardRef((({className:e,...t},n)=>G.jsx(KN,{ref:n,className:we(BW(),e),...t})));function nO(e,[t,n]){return Math.min(n,Math.max(t,e))}QN.displayName=KN.displayName;const YN=m.forwardRef(((e,t)=>m.createElement(ft.span,Te({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),jW=YN,VW=[" ","Enter","ArrowUp","ArrowDown"],UW=[" ","Enter"],Ky="Select",[Qy,Yy,zW]=mC(Ky),[Hh,zZ]=ni(Ky,[zW,qh]),kC=qh(),[WW,ip]=Hh(Ky),[qW,GW]=Hh(Ky),HW=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:a,defaultValue:u,onValueChange:s,dir:l,name:c,autoComplete:d,disabled:f,required:p}=e,h=kC(t),[v,g]=m.useState(null),[y,b]=m.useState(null),[w,x]=m.useState(!1),_=vC(l),[E=!1,S]=pd({prop:r,defaultProp:o,onChange:i}),[k,A]=pd({prop:a,defaultProp:u,onChange:s}),C=m.useRef(null),I=!v||!!v.closest("form"),[R,P]=m.useState(new Set),T=Array.from(R).map((e=>e.props.value)).join(";");return m.createElement($N,h,m.createElement(WW,{required:p,scope:t,trigger:v,onTriggerChange:g,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:w,onValueNodeHasChildrenChange:x,contentId:sd(),value:k,onValueChange:A,open:E,onOpenChange:S,dir:_,triggerPointerDownPosRef:C,disabled:f},m.createElement(Qy.Provider,{scope:t},m.createElement(qW,{scope:e.__scopeSelect,onNativeOptionAdd:m.useCallback((e=>{P((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:m.useCallback((e=>{P((t=>{const n=new Set(t);return n.delete(e),n}))}),[])},n)),I?m.createElement(tM,{key:T,"aria-hidden":!0,required:p,tabIndex:-1,name:c,autoComplete:d,value:k,onChange:e=>A(e.target.value),disabled:f},void 0===k?m.createElement("option",{value:""}):null,Array.from(R)):null))},KW="SelectTrigger",QW=m.forwardRef(((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=kC(n),a=ip(KW,n),u=a.disabled||r,s=Ut(t,a.onTriggerChange),l=Yy(n),[c,d,f]=nM((e=>{const t=l().filter((e=>!e.disabled)),n=t.find((e=>e.value===a.value)),r=rM(t,e,n);void 0!==r&&a.onValueChange(r.value)})),p=()=>{u||(a.onOpenChange(!0),f())};return m.createElement(SC,Te({asChild:!0},i),m.createElement(ft.button,Te({type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":eM(a.value)?"":void 0},o,{ref:s,onClick:et(o.onClick,(e=>{e.currentTarget.focus()})),onPointerDown:et(o.onPointerDown,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(p(),a.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())})),onKeyDown:et(o.onKeyDown,(e=>{const t=""!==c.current;!(e.ctrlKey||e.altKey||e.metaKey)&&1===e.key.length&&d(e.key),(!t||" "!==e.key)&&VW.includes(e.key)&&(p(),e.preventDefault())}))})))})),YW="SelectValue",XW=m.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:a="",...u}=e,s=ip(YW,n),{onValueNodeHasChildrenChange:l}=s,c=void 0!==i,d=Ut(t,s.onValueNodeChange);return Uo((()=>{l(c)}),[l,c]),m.createElement(ft.span,Te({},u,{ref:d,style:{pointerEvents:"none"}}),eM(s.value)?m.createElement(m.Fragment,null,a):i)})),JW=m.forwardRef(((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return m.createElement(ft.span,Te({"aria-hidden":!0},o,{ref:t}),r||"▼")})),ZW=e=>m.createElement(Sy,Te({asChild:!0},e)),Fh="SelectContent",eq=m.forwardRef(((e,t)=>{const n=ip(Fh,e.__scopeSelect),[r,o]=m.useState();if(Uo((()=>{o(new DocumentFragment)}),[]),!n.open){const t=r;return t?vu.createPortal(m.createElement(XN,{scope:e.__scopeSelect},m.createElement(Qy.Slot,{scope:e.__scopeSelect},m.createElement("div",null,e.children))),t):null}return m.createElement(tq,Te({},e,{ref:t}))})),wl=10,[XN,ap]=Hh(Fh),tq=m.forwardRef(((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:u,sideOffset:s,align:l,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:h,hideWhenDetached:v,avoidCollisions:g,...y}=e,b=ip(Fh,n),[w,x]=m.useState(null),[_,E]=m.useState(null),S=Ut(t,(e=>x(e))),[k,A]=m.useState(null),[C,I]=m.useState(null),R=Yy(n),[P,T]=m.useState(!1),O=m.useRef(!1);m.useEffect((()=>{if(w)return $y(w)}),[w]),AE();const N=m.useCallback((e=>{const[t,...n]=R().map((e=>e.ref.current)),[r]=n.slice(-1),o=document.activeElement;for(const n of e)if(n===o||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&_&&(_.scrollTop=0),n===r&&_&&(_.scrollTop=_.scrollHeight),null==n||n.focus(),document.activeElement!==o))return}),[R,_]),j=m.useCallback((()=>N([k,w])),[N,k,w]);m.useEffect((()=>{P&&j()}),[P,j]);const{onOpenChange:q,triggerPointerDownPosRef:D}=b;m.useEffect((()=>{if(w){let e={x:0,y:0};const t=t=>{var n,r,o,i;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(r=D.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(i=D.current)||void 0===i?void 0:i.y)&&void 0!==o?o:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():w.contains(n.target)||q(!1),document.removeEventListener("pointermove",t),D.current=null};return null!==D.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[w,q,D]),m.useEffect((()=>{const e=()=>q(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[q]);const[M,L]=nM((e=>{const t=R().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=rM(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),$=m.useCallback(((e,t,n)=>{const r=!O.current&&!n;(void 0!==b.value&&b.value===t||r)&&(A(e),r&&(O.current=!0))}),[b.value]),B=m.useCallback((()=>null==w?void 0:w.focus()),[w]),V=m.useCallback(((e,t,n)=>{const r=!O.current&&!n;(void 0!==b.value&&b.value===t||r)&&I(e)}),[b.value]),z="popper"===r?rO:nq,F=z===rO?{side:u,sideOffset:s,align:l,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:h,hideWhenDetached:v,avoidCollisions:g}:{};return m.createElement(XN,{scope:n,content:w,viewport:_,onViewportChange:E,itemRefCallback:$,selectedItem:k,onItemLeave:B,itemTextRefCallback:V,focusSelectedItem:j,selectedItemText:C,position:r,isPositioned:P,searchRef:M},m.createElement(Cy,{as:Hf,allowPinchZoom:!0},m.createElement(OE,{asChild:!0,trapped:b.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:et(o,(e=>{var t;null===(t=b.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}))},m.createElement(xy,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1)},m.createElement(z,Te({role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:e=>e.preventDefault()},y,F,{onPlaced:()=>T(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:et(y.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),!t&&1===e.key.length&&L(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=R().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout((()=>N(t))),e.preventDefault()}}))}))))))})),nq=m.forwardRef(((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=ip(Fh,n),a=ap(Fh,n),[u,s]=m.useState(null),[l,c]=m.useState(null),d=Ut(t,(e=>c(e))),f=Yy(n),p=m.useRef(!1),h=m.useRef(!0),{viewport:v,selectedItem:g,selectedItemText:y,focusSelectedItem:b}=a,w=m.useCallback((()=>{if(i.trigger&&i.valueNode&&u&&l&&v&&g&&y){const e=i.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=i.valueNode.getBoundingClientRect(),o=y.getBoundingClientRect();if("rtl"!==i.dir){const r=o.left-t.left,i=n.left-r,a=e.left-i,s=e.width+a,l=Math.max(s,t.width),c=window.innerWidth-wl,d=nO(i,[wl,c-l]);u.style.minWidth=s+"px",u.style.left=d+"px"}else{const r=t.right-o.right,i=window.innerWidth-n.right-r,a=window.innerWidth-e.right-i,s=e.width+a,l=Math.max(s,t.width),c=window.innerWidth-wl,d=nO(i,[wl,c-l]);u.style.minWidth=s+"px",u.style.right=d+"px"}const a=f(),s=window.innerHeight-2*wl,c=v.scrollHeight,d=window.getComputedStyle(l),m=parseInt(d.borderTopWidth,10),h=parseInt(d.paddingTop,10),b=parseInt(d.borderBottomWidth,10),w=m+h+c+parseInt(d.paddingBottom,10)+b,x=Math.min(5*g.offsetHeight,w),_=window.getComputedStyle(v),E=parseInt(_.paddingTop,10),S=parseInt(_.paddingBottom,10),k=e.top+e.height/2-wl,A=s-k,C=g.offsetHeight/2,I=m+h+(g.offsetTop+C),R=w-I;if(I<=k){const e=g===a[a.length-1].ref.current;u.style.bottom="0px";const t=l.clientHeight-v.offsetTop-v.offsetHeight,n=I+Math.max(A,C+(e?S:0)+t+b);u.style.height=n+"px"}else{const e=g===a[0].ref.current;u.style.top="0px";const t=Math.max(k,m+v.offsetTop+(e?E:0)+C)+R;u.style.height=t+"px",v.scrollTop=I-k+v.offsetTop}u.style.margin=`${wl}px 0`,u.style.minHeight=x+"px",u.style.maxHeight=s+"px",null==r||r(),requestAnimationFrame((()=>p.current=!0))}}),[f,i.trigger,i.valueNode,u,l,v,g,y,i.dir,r]);Uo((()=>w()),[w]);const[x,_]=m.useState();Uo((()=>{l&&_(window.getComputedStyle(l).zIndex)}),[l]);const E=m.useCallback((e=>{e&&!0===h.current&&(w(),null==b||b(),h.current=!1)}),[w,b]);return m.createElement(rq,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:p,onScrollButtonChange:E},m.createElement("div",{ref:s,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:x}},m.createElement(ft.div,Te({},o,{ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))})),rO=m.forwardRef(((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=wl,...i}=e,a=kC(n);return m.createElement(EC,Te({},a,i,{ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))})),[rq,DC]=Hh(Fh,{}),oO="SelectViewport",oq=m.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,o=ap(oO,n),i=DC(oO,n),a=Ut(t,o.onViewportChange),u=m.useRef(0);return m.createElement(m.Fragment,null,m.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),m.createElement(Qy.Slot,{scope:n},m.createElement(ft.div,Te({"data-radix-select-viewport":"",role:"presentation"},r,{ref:a,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:et(r.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=i;if(null!=r&&r.current&&n){const e=Math.abs(u.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*wl,o=parseFloat(n.style.minHeight),i=parseFloat(n.style.height),a=Math.max(o,i);if(a<r){const o=a+e,i=Math.min(r,o),u=o-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=u>0?u:0,n.style.justifyContent="flex-end")}}}u.current=t.scrollTop}))}))))})),iq="SelectGroup",[aq,sq]=Hh(iq),uq=m.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,o=sd();return m.createElement(aq,{scope:n,id:o},m.createElement(ft.div,Te({role:"group","aria-labelledby":o},r,{ref:t})))})),lq="SelectLabel",cq=m.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,o=sq(lq,n);return m.createElement(ft.div,Te({id:o.id},r,{ref:t}))})),QS="SelectItem",[dq,JN]=Hh(QS),fq=m.forwardRef(((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...a}=e,u=ip(QS,n),s=ap(QS,n),l=u.value===r,[c,d]=m.useState(i??""),[f,p]=m.useState(!1),h=Ut(t,(e=>{var t;return null===(t=s.itemRefCallback)||void 0===t?void 0:t.call(s,e,r,o)})),v=sd(),g=()=>{o||(u.onValueChange(r),u.onOpenChange(!1))};if(""===r)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return m.createElement(dq,{scope:n,value:r,disabled:o,textId:v,isSelected:l,onItemTextChange:m.useCallback((e=>{d((t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()}))}),[])},m.createElement(Qy.ItemSlot,{scope:n,value:r,disabled:o,textValue:c},m.createElement(ft.div,Te({role:"option","aria-labelledby":v,"data-highlighted":f?"":void 0,"aria-selected":l&&f,"data-state":l?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},a,{ref:h,onFocus:et(a.onFocus,(()=>p(!0))),onBlur:et(a.onBlur,(()=>p(!1))),onPointerUp:et(a.onPointerUp,g),onPointerMove:et(a.onPointerMove,(e=>{var t;o?null===(t=s.onItemLeave)||void 0===t||t.call(s):e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:et(a.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null===(t=s.onItemLeave)||void 0===t||t.call(s))})),onKeyDown:et(a.onKeyDown,(e=>{var t;""!==(null===(t=s.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(UW.includes(e.key)&&g()," "===e.key&&e.preventDefault())}))}))))})),Lg="SelectItemText",pq=m.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,a=ip(Lg,n),u=ap(Lg,n),s=JN(Lg,n),l=GW(Lg,n),[c,d]=m.useState(null),f=Ut(t,(e=>d(e)),s.onItemTextChange,(e=>{var t;return null===(t=u.itemTextRefCallback)||void 0===t?void 0:t.call(u,e,s.value,s.disabled)})),p=null==c?void 0:c.textContent,h=m.useMemo((()=>m.createElement("option",{key:s.value,value:s.value,disabled:s.disabled},p)),[s.disabled,s.value,p]),{onNativeOptionAdd:v,onNativeOptionRemove:g}=l;return Uo((()=>(v(h),()=>g(h))),[v,g,h]),m.createElement(m.Fragment,null,m.createElement(ft.span,Te({id:s.textId},i,{ref:f})),s.isSelected&&a.valueNode&&!a.valueNodeHasChildren?vu.createPortal(i.children,a.valueNode):null)})),hq="SelectItemIndicator",mq=m.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return JN(hq,n).isSelected?m.createElement(ft.span,Te({"aria-hidden":!0},r,{ref:t})):null})),iO="SelectScrollUpButton",vq=m.forwardRef(((e,t)=>{const n=ap(iO,e.__scopeSelect),r=DC(iO,e.__scopeSelect),[o,i]=m.useState(!1),a=Ut(t,r.onScrollButtonChange);return Uo((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;i(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),o?m.createElement(ZN,Te({},e,{ref:a,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null})),aO="SelectScrollDownButton",gq=m.forwardRef(((e,t)=>{const n=ap(aO,e.__scopeSelect),r=DC(aO,e.__scopeSelect),[o,i]=m.useState(!1),a=Ut(t,r.onScrollButtonChange);return Uo((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;i(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),o?m.createElement(ZN,Te({},e,{ref:a,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null})),ZN=m.forwardRef(((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=ap("SelectScrollButton",n),a=m.useRef(null),u=Yy(n),s=m.useCallback((()=>{null!==a.current&&(window.clearInterval(a.current),a.current=null)}),[]);return m.useEffect((()=>()=>s()),[s]),Uo((()=>{var e;const t=u().find((e=>e.ref.current===document.activeElement));null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})}),[u]),m.createElement(ft.div,Te({"aria-hidden":!0},o,{ref:t,style:{flexShrink:0,...o.style},onPointerDown:et(o.onPointerDown,(()=>{null===a.current&&(a.current=window.setInterval(r,50))})),onPointerMove:et(o.onPointerMove,(()=>{var e;null===(e=i.onItemLeave)||void 0===e||e.call(i),null===a.current&&(a.current=window.setInterval(r,50))})),onPointerLeave:et(o.onPointerLeave,(()=>{s()}))}))})),yq=m.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return m.createElement(ft.div,Te({"aria-hidden":!0},r,{ref:t}))}));function eM(e){return""===e||void 0===e}const tM=m.forwardRef(((e,t)=>{const{value:n,...r}=e,o=m.useRef(null),i=Ut(t,o),a=By(n);return m.useEffect((()=>{const e=o.current,t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(a!==n&&r){const t=new Event("change",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}}),[a,n]),m.createElement(YN,{asChild:!0},m.createElement("select",Te({},r,{ref:i,defaultValue:n})))}));function nM(e){const t=ys(e),n=m.useRef(""),r=m.useRef(0),o=m.useCallback((e=>{const o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout((()=>e("")),1e3))}(o)}),[t]),i=m.useCallback((()=>{n.current="",window.clearTimeout(r.current)}),[]);return m.useEffect((()=>()=>window.clearTimeout(r.current)),[]),[n,o,i]}function rM(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,o=n?e.indexOf(n):-1;let i=wq(e,Math.max(o,0));1===r.length&&(i=i.filter((e=>e!==n)));const a=i.find((e=>e.textValue.toLowerCase().startsWith(r.toLowerCase())));return a!==n?a:void 0}function wq(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}tM.displayName="BubbleSelect";const oM=HW,NC=QW,iM=XW,_q=JW,bq=ZW,aM=eq,xq=oq,sM=uq,uM=cq,lM=fq,Sq=pq,Eq=mq,cM=vq,dM=gq,fM=yq,Cq=oM,MC=m.forwardRef((({...e},t)=>G.jsx(Cq,{ref:t,...e})));MC.displayName=oM.displayName;const pM=m.forwardRef(((e,t)=>G.jsx(sM,{ref:t,...e})));pM.displayName=sM.displayName;const hM=m.forwardRef(((e,t)=>G.jsx(iM,{ref:t,...e})));hM.displayName=iM.displayName;const LC=m.forwardRef((({className:e,children:t,caption:n,error:r,icon:o,renderCaret:i,...a},u)=>{const s=i?i():i?null:G.jsx(_2,{size:20,className:"transition-transform duration-200 group-data-[state=open]/select:rotate-180"});return G.jsxs("div",{className:"w-full",children:[G.jsxs(NC,{ref:u,className:we("group/select flex h-l w-full items-center justify-between rounded-m border bg-background p-xxs text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus-visible:ring-gray-700 focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50",r?"border-red-500":"border-input",e),...a,children:[G.jsxs("div",{className:we("flex flex-1 items-center gap-xxs",{"max-w-[calc(100%-20px)]":s}),children:[o&&G.jsx("span",{className:we("text-muted-foreground",{"text-red-dark":r}),children:o}),t]}),G.jsx(_q,{asChild:!0,children:s})]}),n||r?r?G.jsxs("div",{className:"mt-xxs flex items-center gap-xxxs text-sm text-red-600",children:[G.jsx(E2,{size:16}),r]}):G.jsxs("div",{className:"mt-xxs flex items-center gap-xxxs text-sm text-muted-foreground",children:[G.jsx(I5,{size:16}),n]}):null]})}));LC.displayName="SelectTriggerWrapper";const mM=m.forwardRef((({className:e,children:t,caption:n,error:r,icon:o,...i},a)=>G.jsx(LC,{ref:a,className:we("[&>span]:line-clamp-1 [&>span]:text-left",e),caption:n,error:r,icon:o,...i,children:t})));mM.displayName=NC.displayName;const FC=m.forwardRef((({className:e,children:t,position:n="popper",...r},o)=>{const i=m.useMemo((()=>{const e=t=>{var n,r;if(!t)return!1;if(Array.isArray(t))return t.some(e);if(m.isValidElement(t)){const o=null==(n=t.type)?void 0:n.displayName;return"SelectActions"===o||"SelectFooter"===o||e(null==(r=t.props)?void 0:r.children)}return!1};return e(t)}),[t]);return G.jsx(bq,{children:G.jsx(aM,{ref:o,className:we("z-[101] flex max-h-[var(--radix-select-content-available-height)] min-w-[8rem] flex-col rounded-lg border border-gray-200 bg-white text-popover-foreground","shadow-[0px_0px_12px_0px_rgba(0,0,0,0.08)]","data-[state=open]:animate-in data-[state=closed]:animate-out ","data-[state=open]:fade-in data-[state=open]:slide-in-from-top-2 ","data-[state=closed]:fade-out data-[state=closed]:slide-out-to-top-2 ","data-[state=closed]:duration-150 data-[state=open]:duration-150 ","data-[state=closed]:[animation-timing-function:ease-in] data-[state=open]:[animation-timing-function:ease-out]","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:G.jsx(xq,{className:we("flex flex-col gap-xxxs overflow-y-auto px-xxs",{"py-xxs":!i},"popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t})})})}));FC.displayName=aM.displayName;const vM=m.forwardRef((({className:e,...t},n)=>G.jsx(uM,{ref:n,className:we("text-sm font-medium text-gray-900",e),...t})));vM.displayName=uM.displayName;const gM=m.forwardRef((({className:e,showCheck:t=!0,checkPosition:n="right",children:r,...o},i)=>{const a=G.jsx(Eq,{children:G.jsx($E,{size:20})});return G.jsxs(lM,{ref:i,className:we("relative flex cursor-default select-none items-center gap-xxs rounded-m p-xxs","text-base font-medium text-gray-900 outline-none transition-colors hover:bg-gray-100","focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[t&&"left"===n&&a,G.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:G.jsx(Sq,{children:r})}),t&&"right"===n&&a]})}));gM.displayName=lM.displayName;const yM=m.forwardRef((({className:e,...t},n)=>G.jsx(fM,{ref:n,className:we("-mx-1 my-1 h-px bg-gray-200",e),...t})));yM.displayName=fM.displayName;const $q=({selectedValues:e=[],onRemoveValue:t})=>{const n=m.useRef(null),[r,o]=m.useState(e.length);return m.useLayoutEffect((()=>{if(!n.current||0===e.length)return void o(e.length);const r=n.current.offsetWidth-60,i=document.createElement("div");Object.assign(i.style,{position:"absolute",visibility:"hidden",whiteSpace:"nowrap",display:"flex",gap:"4px",top:"-9999px",left:"-9999px"}),document.body.appendChild(i);let a=0,u=0;for(const n of e){const e=document.createElement("div");e.className="gap-xxxs p-xxs flex cursor-pointer items-center rounded-sm bg-gray-100 text-sm font-medium text-gray-900";const o=document.createElement("span");if(o.textContent="string"==typeof n?n:n.value,e.appendChild(o),"string"!=typeof n&&n.avatar){const t=document.createElement("div");t.className="w-6 h-6 rounded-full bg-gray-300 flex-shrink-0",e.insertBefore(t,o)}if(t){const t=document.createElement("button");t.innerHTML="×",t.className="ml-1 rounded-full outline-none",e.appendChild(t)}i.appendChild(e);const s=e.offsetWidth+4;if(!(a+s<=r))break;a+=s,u++}document.body.removeChild(i),o(Math.max(1,u))}),[e,t]),{containerRef:n,visibleCount:r}},wM=({hiddenCount:e,selectedValues:t=[],onRemoveValue:n})=>{const r=e=>{e.stopPropagation(),e.preventDefault()};return G.jsx("div",{onPointerDown:r,onMouseDown:r,onClick:r,children:G.jsxs(MC,{name:"hidden-chips-counter",children:[G.jsx(NC,{asChild:!0,children:G.jsx("div",{children:G.jsx(uD,{text:`+${e}`})})}),G.jsx(FC,{align:"end",className:"max-h-[250px] w-screen max-w-[300px] gap-xxxs overflow-y-auto",children:t.map((e=>{const t="string"==typeof e?e:e.value;return G.jsxs("div",{className:"flex justify-between p-xxs",onClick:e=>e.stopPropagation(),children:[G.jsx("span",{children:t}),G.jsx(by,{size:16,className:"cursor-pointer",onClick:()=>null==n?void 0:n(t)})]},t)}))})]})})};wM.displayName="SelectHiddenChipsCounter";const Iq=m.forwardRef(((e,t)=>{const{className:n,selectedValues:r=[],placeholder:o,onRemoveValue:i,icon:a,caption:u,error:s,...l}=e,{containerRef:c,visibleCount:d}=$q({selectedValues:r,onRemoveValue:i}),f=r.length-d;return G.jsx(LC,{ref:t,className:n,caption:u,error:s,icon:a,...l,children:G.jsx("div",{ref:c,className:"flex w-full flex-1 flex-nowrap overflow-hidden",children:0===r.length?G.jsx("span",{children:o||"Select options..."}):G.jsxs(I9,{children:[r.slice(0,d).map((e=>{const t="string"==typeof e?e:e.value;return G.jsx(uD,{avatarSrc:"string"==typeof e?void 0:e.avatar,text:t,onRemove:()=>null==i?void 0:i(t)},t)})),f>0&&G.jsx(wM,{hiddenCount:f,onRemoveValue:i,selectedValues:r})]})})})}));Iq.displayName="SelectMultiTrigger";const Rq=m.forwardRef((({value:e,isSelected:t=!1,isLoading:n=!1,checkboxPosition:r="right",onSelect:o,className:i,children:a,...u},s)=>{const l=n?G.jsx(S2,{size:24,className:"flex-shrink-0 animate-spin text-blue_100"}):G.jsx(sC,{size:"default",variant:"default",checked:t}),c=()=>{null==o||o(e)};return G.jsxs("div",{ref:s,className:we("relative flex cursor-pointer select-none items-center gap-xxs rounded-m","p-xxs text-base font-medium text-gray-900 outline-none transition-colors hover:bg-gray-100","focus:bg-accent focus:text-accent-foreground",{"pointer-events-none":n},i),onClick:c,role:"button",tabIndex:0,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),c())},...u,children:["left"===r&&l,G.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:a}),"right"===r&&l]})}));Rq.displayName="SelectCheckboxItem";const Pq=m.forwardRef((({className:e,...t},n)=>G.jsx(cM,{ref:n,className:we("flex cursor-default items-center justify-center py-xxs",e),...t,children:G.jsx(S5,{size:16})})));Pq.displayName=cM.displayName;const Tq=m.forwardRef((({className:e,...t},n)=>G.jsx(dM,{ref:n,className:we("flex cursor-default items-center justify-center p-xxs",e),...t,children:G.jsx(_2,{size:16})})));Tq.displayName=dM.displayName;const Oq=m.forwardRef((({className:e,children:t,...n},r)=>G.jsx("div",{ref:r,className:we("sticky top-0 z-20 bg-white p-xxs",e),...n,children:t})));Oq.displayName="SelectActions";const Aq=m.forwardRef((({className:e,children:t,...n},r)=>G.jsx("div",{ref:r,className:we("sticky bottom-0 z-20 bg-white p-xxs",e),...n,children:t})));Aq.displayName="SelectFooter";const kq=m.createContext({}),bd=()=>{const e=m.useContext(kq),t=m.useContext(_M),n=LW();e||console.error("useFormContext must be used within a FormProvider");const{getFieldState:r,formState:o}=n,i=r(e.name,o);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...i}},_M=m.createContext({}),Dq=m.forwardRef((({className:e,...t},n)=>{const r=m.useId();return G.jsx(_M.Provider,{value:{id:r},children:G.jsx("div",{ref:n,className:we("mt-[8px]",e),...t})})}));Dq.displayName="FormItem";const Nq=m.forwardRef((({className:e,isRequired:t,...n},r)=>{const{formItemId:o}=bd();return G.jsxs(QN,{ref:r,className:we("mb-2 text-sm font-medium",e),htmlFor:o,...n,children:[t&&"*",n.children]})}));Nq.displayName="FormLabel";const Mq=m.forwardRef((({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:o,formMessageId:i}=bd();return G.jsx(wd,{ref:t,id:r,"aria-describedby":n?`${o} ${i}`:`${o}`,"aria-invalid":!!n,...e})}));Mq.displayName="FormControl";const Lq=m.forwardRef((({className:e,...t},n)=>{const{formDescriptionId:r}=bd();return G.jsx("p",{ref:n,id:r,className:we("text-sm text-muted-foreground",e),...t})}));Lq.displayName="FormDescription";const Fq=m.forwardRef((({className:e,children:t,...n},r)=>{const{error:o,formMessageId:i}=bd(),a=o?String(null==o?void 0:o.message):t;return a?G.jsxs("p",{ref:r,id:i,className:we("flex items-start gap-1 pt-xxs text-sm text-red-dark",e),...n,children:[G.jsx(E2,{size:16,className:"text-red-dark"})," ",a]}):null}));Fq.displayName="FormMessage";const Bq=m.forwardRef((({...e},t)=>{const{name:n}=bd();return G.jsx(MC,{ref:t,name:n,...e})}));Bq.displayName="FormSelect";const jq=m.forwardRef((({className:e,children:t,...n},r)=>{const{formItemId:o}=bd();return G.jsx(mM,{ref:r,id:o,className:e,...n,children:t})}));jq.displayName="FormSelectTrigger";const Vq=m.forwardRef(((e,t)=>G.jsx(FC,{ref:t,...e})));Vq.displayName="FormSelectContent";const Uq=m.forwardRef(((e,t)=>G.jsx(gM,{ref:t,...e})));Uq.displayName="FormSelectItem";const zq=m.forwardRef(((e,t)=>G.jsx(pM,{ref:t,...e})));zq.displayName="FormSelectGroup";const Wq=m.forwardRef(((e,t)=>G.jsx(vM,{ref:t,...e})));Wq.displayName="FormSelectLabel";const qq=m.forwardRef(((e,t)=>G.jsx(yM,{ref:t,...e})));qq.displayName="FormSelectSeparator";const Gq=m.forwardRef(((e,t)=>G.jsx(hM,{ref:t,...e})));function Uf(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function bM(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>m.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return m.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=m.createContext(r),i=n.length;function a(t){const{scope:n,children:r,...a}=t,u=(null==n?void 0:n[e][i])||o,s=m.useMemo((()=>a),Object.values(a));return m.createElement(u.Provider,{value:s},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const u=(null==a?void 0:a[e][i])||o,s=m.useContext(u);if(s)return s;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Hq(r,...t)]}function Hq(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return m.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function Xy(e){const t=m.useRef(e);return m.useEffect((()=>{t.current=e})),m.useMemo((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function Kq(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function Qq(...e){return t=>e.forEach((e=>Kq(e,t)))}function Yq(...e){return m.useCallback(Qq(...e),e)}function sp(e){return e.split("-")[0]}function zv(e){return e.split("-")[1]}function Kh(e){return["top","bottom"].includes(sp(e))?"x":"y"}function BC(e){return"y"===e?"height":"width"}function sO(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,u=Kh(t),s=BC(u),l=r[s]/2-o[s]/2,c="x"===u;let d;switch(sp(t)){case"top":d={x:i,y:r.y-o.height};break;case"bottom":d={x:i,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-o.width,y:a};break;default:d={x:r.x,y:r.y}}switch(zv(t)){case"start":d[u]-=l*(n&&c?-1:1);break;case"end":d[u]+=l*(n&&c?-1:1)}return d}Gq.displayName="FormSelectValue";const Xq=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,u=await(null==a.isRTL?void 0:a.isRTL(t));let s=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:c}=sO(s,r,u),d=r,f={},p=0;for(let n=0;n<i.length;n++){const{name:m,fn:h}=i[n],{x:v,y:g,data:y,reset:b}=await h({x:l,y:c,initialPlacement:r,placement:d,strategy:o,middlewareData:f,rects:s,platform:a,elements:{reference:e,floating:t}});l=v??l,c=g??c,f={...f,[m]:{...f[m],...y}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(s=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:l,y:c}=sO(s,d,u))),n=-1)}return{x:l,y:c,placement:d,strategy:o,middlewareData:f}};function xM(e){return"number"!=typeof e?(t=e,{top:0,right:0,bottom:0,left:0,...t}):{top:e,right:e,bottom:e,left:e};var t}function ay(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function Cv(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:u,strategy:s}=e,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=t,m=xM(p),h=u[f?"floating"===d?"reference":"floating":d],v=ay(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(u.floating)),boundary:l,rootBoundary:c,strategy:s})),g=ay(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===d?{...a.floating,x:r,y:o}:a.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(u.floating)),strategy:s}):a[d]);return{top:v.top-g.top+m.top,bottom:g.bottom-v.bottom+m.bottom,left:v.left-g.left+m.left,right:g.right-v.right+m.right}}const Jq=Math.min,Nf=Math.max;function YS(e,t,n){return Nf(e,Jq(t,n))}const uO=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=e??{},{x:o,y:i,placement:a,rects:u,platform:s}=t;if(null==n)return{};const l=xM(r),c={x:o,y:i},d=Kh(a),f=zv(a),p=BC(d),m=await s.getDimensions(n),h="y"===d?"top":"left",v="y"===d?"bottom":"right",g=u.reference[p]+u.reference[d]-c[d]-u.floating[p],y=c[d]-u.reference[d],b=await(null==s.getOffsetParent?void 0:s.getOffsetParent(n));let w=b?"y"===d?b.clientHeight||0:b.clientWidth||0:0;0===w&&(w=u.floating[p]);const x=g/2-y/2,_=l[h],E=w-m[p]-l[v],S=w/2-m[p]/2+x,k=YS(_,S,E),A=("start"===f?l[h]:l[v])>0&&S!==k&&u.reference[p]<=u.floating[p];return{[d]:c[d]-(A?S<_?_-S:E-S:0),data:{[d]:k,centerOffset:S-k}}}}),Zq={left:"right",right:"left",bottom:"top",top:"bottom"};function sy(e){return e.replace(/left|right|bottom|top/g,(e=>Zq[e]))}function eG(e,t,n){void 0===n&&(n=!1);const r=zv(e),o=Kh(e),i=BC(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=sy(a)),{main:a,cross:sy(a)}}const tG={start:"end",end:"start"};function lO(e){return e.replace(/start|end/g,(e=>tG[e]))}const SM=["top","right","bottom","left"];SM.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);const nG=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:u,elements:s}=t,{mainAxis:l=!0,crossAxis:c=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",flipAlignment:p=!0,...m}=e,h=sp(r),v=[a,...d||(h!==a&&p?function(e){const t=sy(e);return[lO(e),t,lO(t)]}(a):[sy(a)])],g=await Cv(t,m),y=[];let b=(null==(n=o.flip)?void 0:n.overflows)||[];if(l&&y.push(g[h]),c){const{main:e,cross:t}=eG(r,i,await(null==u.isRTL?void 0:u.isRTL(s.floating)));y.push(g[e],g[t])}if(b=[...b,{placement:r,overflows:y}],!y.every((e=>e<=0))){var w,x;const e=(null!=(w=null==(x=o.flip)?void 0:x.index)?w:0)+1,t=v[e];if(t)return{data:{index:e,overflows:b},reset:{placement:t}};let n="bottom";switch(f){case"bestFit":{var _;const e=null==(_=b.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:_[0].placement;e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}};function cO(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function dO(e){return SM.some((t=>e[t]>=0))}const rG=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){const{rects:r}=e;switch(t){case"referenceHidden":{const t=cO(await Cv(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:dO(t)}}}case"escaped":{const t=cO(await Cv(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:dO(t)}}}default:return{}}}}},oG=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=sp(n),u=zv(n),s="x"===Kh(n),l=["left","top"].includes(a)?-1:1,c=i&&s?-1:1,d="function"==typeof t?t(e):t;let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return u&&"number"==typeof m&&(p="end"===u?-1*m:m),s?{x:p*c,y:f*l}:{x:f*l,y:p*c}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}};function EM(e){return"x"===e?"y":"x"}const iG=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=e,l={x:n,y:r},c=await Cv(t,s),d=Kh(sp(o)),f=EM(d);let p=l[d],m=l[f];if(i){const e="y"===d?"bottom":"right";p=YS(p+c["y"===d?"top":"left"],p,p-c[e])}if(a){const e="y"===f?"bottom":"right";m=YS(m+c["y"===f?"top":"left"],m,m-c[e])}const h=u.fn({...t,[d]:p,[f]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}},aG=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:u=0,mainAxis:s=!0,crossAxis:l=!0}=e,c={x:n,y:r},d=Kh(o),f=EM(d);let p=c[d],m=c[f];const h="function"==typeof u?u({...i,placement:o}):u,v="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+v.mainAxis,n=i.reference[d]+i.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var g,y,b,w;const e="y"===d?"width":"height",t=["top","left"].includes(sp(o)),n=i.reference[f]-i.floating[e]+(t&&null!=(g=null==(y=a.offset)?void 0:y[f])?g:0)+(t?0:v.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:null!=(b=null==(w=a.offset)?void 0:w[f])?b:0)-(t?v.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[d]:p,[f]:m}}}},sG=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a,...u}=e,s=await Cv(t,u),l=sp(n),c=zv(n);let d,f;"top"===l||"bottom"===l?(d=l,f=c===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(f=l,d="end"===c?"top":"bottom");const p=Nf(s.left,0),m=Nf(s.right,0),h=Nf(s.top,0),v=Nf(s.bottom,0),g={availableHeight:r.floating.height-(["left","right"].includes(n)?2*(0!==h||0!==v?h+v:Nf(s.top,s.bottom)):s[d]),availableWidth:r.floating.width-(["top","bottom"].includes(n)?2*(0!==p||0!==m?p+m:Nf(s.left,s.right)):s[f])},y=await o.getDimensions(i.floating);null==a||a({...t,...g});const b=await o.getDimensions(i.floating);return y.width!==b.width||y.height!==b.height?{reset:{rects:!0}}:{}}}};function CM(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Tl(e){if(null==e)return window;if(!CM(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wv(e){return Tl(e).getComputedStyle(e)}function _l(e){return CM(e)?"":e?(e.nodeName||"").toLowerCase():""}function $M(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function hu(e){return e instanceof Tl(e).HTMLElement}function yd(e){return e instanceof Tl(e).Element}function jC(e){return!(typeof ShadowRoot>"u")&&(e instanceof Tl(e).ShadowRoot||e instanceof ShadowRoot)}function Jy(e){const{overflow:t,overflowX:n,overflowY:r}=Wv(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function uG(e){return["table","td","th"].includes(_l(e))}function fO(e){const t=/firefox/i.test($M()),n=Wv(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function IM(){return!/^((?!chrome|android).)*safari/i.test($M())}const pO=Math.min,cv=Math.max,uy=Math.round;function bl(e,t,n){var r,o,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const u=e.getBoundingClientRect();let s=1,l=1;t&&hu(e)&&(s=e.offsetWidth>0&&uy(u.width)/e.offsetWidth||1,l=e.offsetHeight>0&&uy(u.height)/e.offsetHeight||1);const c=yd(e)?Tl(e):window,d=!IM()&&n,f=(u.left+(d&&null!=(r=null==(o=c.visualViewport)?void 0:o.offsetLeft)?r:0))/s,p=(u.top+(d&&null!=(i=null==(a=c.visualViewport)?void 0:a.offsetTop)?i:0))/l,m=u.width/s,h=u.height/l;return{width:m,height:h,top:p,right:f+m,bottom:p+h,left:f,x:f,y:p}}function ld(e){return(t=e,(t instanceof Tl(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function Zy(e){return yd(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function RM(e){return bl(ld(e)).left+Zy(e).scrollLeft}function lG(e,t,n){const r=hu(t),o=ld(t),i=bl(e,r&&function(e){const t=bl(e);return uy(t.width)!==e.offsetWidth||uy(t.height)!==e.offsetHeight}(t),"fixed"===n);let a={scrollLeft:0,scrollTop:0};const u={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==_l(t)||Jy(o))&&(a=Zy(t)),hu(t)){const e=bl(t,!0);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=RM(o));return{x:i.left+a.scrollLeft-u.x,y:i.top+a.scrollTop-u.y,width:i.width,height:i.height}}function PM(e){return"html"===_l(e)?e:e.assignedSlot||e.parentNode||(jC(e)?e.host:null)||ld(e)}function hO(e){return hu(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function XS(e){const t=Tl(e);let n=hO(e);for(;n&&uG(n)&&"static"===getComputedStyle(n).position;)n=hO(n);return n&&("html"===_l(n)||"body"===_l(n)&&"static"===getComputedStyle(n).position&&!fO(n))?t:n||function(e){let t=PM(e);for(jC(t)&&(t=t.host);hu(t)&&!["html","body"].includes(_l(t));){if(fO(t))return t;t=t.parentNode}return null}(e)||t}function mO(e){if(hu(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=bl(e);return{width:t.width,height:t.height}}function TM(e){const t=PM(e);return["html","body","#document"].includes(_l(t))?e.ownerDocument.body:hu(t)&&Jy(t)?t:TM(t)}function ly(e,t){var n;void 0===t&&(t=[]);const r=TM(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Tl(r),a=o?[i].concat(i.visualViewport||[],Jy(r)?r:[]):r,u=t.concat(a);return o?u:u.concat(ly(a))}function vO(e,t,n){return"viewport"===t?ay(function(e,t){const n=Tl(e),r=ld(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,u=0,s=0;if(o){i=o.width,a=o.height;const e=IM();(e||!e&&"fixed"===t)&&(u=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:u,y:s}}(e,n)):yd(t)?function(e,t){const n=bl(e,!1,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft;return{top:r,left:o,x:o,y:r,right:o+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):ay(function(e){var t;const n=ld(e),r=Zy(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=cv(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=cv(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let u=-r.scrollLeft+RM(e);const s=-r.scrollTop;return"rtl"===Wv(o||n).direction&&(u+=cv(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:u,y:s}}(ld(e)))}function cG(e){const t=ly(e),n=["absolute","fixed"].includes(Wv(e).position)&&hu(e)?XS(e):e;return yd(n)?t.filter((e=>yd(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&jC(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==_l(e))):[]}const dG={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?cG(t):[].concat(n),r],a=i[0],u=i.reduce(((e,n)=>{const r=vO(t,n,o);return e.top=cv(r.top,e.top),e.right=pO(r.right,e.right),e.bottom=pO(r.bottom,e.bottom),e.left=cv(r.left,e.left),e}),vO(t,a,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=hu(n),i=ld(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0};const u={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==_l(n)||Jy(i))&&(a=Zy(n)),hu(n))){const e=bl(n,!0);u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+u.x,y:t.y-a.scrollTop+u.y}},isElement:yd,getDimensions:mO,getOffsetParent:XS,getDocumentElement:ld,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:lG(t,XS(n),r),floating:{...mO(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===Wv(e).direction};function fG(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:u=!1}=r,s=o&&!u,l=i&&!u,c=s||l?[...yd(e)?ly(e):[],...ly(t)]:[];c.forEach((e=>{s&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)}));let d,f=null;if(a){let r=!0;f=new ResizeObserver((()=>{r||n(),r=!1})),yd(e)&&!u&&f.observe(e),f.observe(t)}let p=u?bl(e):null;return u&&function t(){const r=bl(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{s&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)})),null==(e=f)||e.disconnect(),f=null,u&&cancelAnimationFrame(d)}}const pG=(e,t,n)=>Xq(e,t,{platform:dG,...n});var JS=typeof document<"u"?m.useLayoutEffect:m.useEffect;function ZS(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!ZS(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||ZS(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function hG(e){const t=m.useRef(e);return JS((()=>{t.current=e})),t}function mG(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:o}=void 0===e?{}:e;const i=m.useRef(null),a=m.useRef(null),u=hG(o),s=m.useRef(null),[l,c]=m.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=m.useState(t);ZS(null==d?void 0:d.map((e=>{let{options:t}=e;return t})),null==t?void 0:t.map((e=>{let{options:t}=e;return t})))||f(t);const p=m.useCallback((()=>{!i.current||!a.current||pG(i.current,a.current,{middleware:d,placement:n,strategy:r}).then((e=>{h.current&&vu.flushSync((()=>{c(e)}))}))}),[d,n,r]);JS((()=>{h.current&&p()}),[p]);const h=m.useRef(!1);JS((()=>(h.current=!0,()=>{h.current=!1})),[]);const v=m.useCallback((()=>{if("function"==typeof s.current&&(s.current(),s.current=null),i.current&&a.current)if(u.current){const e=u.current(i.current,a.current,p);s.current=e}else p()}),[p,u]),g=m.useCallback((e=>{i.current=e,v()}),[v]),y=m.useCallback((e=>{a.current=e,v()}),[v]),b=m.useMemo((()=>({reference:i,floating:a})),[]);return m.useMemo((()=>({...l,update:p,refs:b,reference:g,floating:y})),[l,p,b,g,y])}const vG=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn:e=>function(e){return Object.prototype.hasOwnProperty.call(e,"current")}(t)?null!=t.current?uO({element:t.current,padding:n}).fn(e):{}:t?uO({element:t,padding:n}).fn(e):{}}};function gG(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function yG(...e){return t=>e.forEach((e=>gG(e,t)))}const OM=m.forwardRef(((e,t)=>{const{children:n,...r}=e,o=m.Children.toArray(n),i=o.find(_G);if(i){const e=i.props.children,n=o.map((t=>t===i?m.Children.count(e)>1?m.Children.only(null):m.isValidElement(e)?e.props.children:null:t));return m.createElement(eE,Te({},r,{ref:t}),m.isValidElement(e)?m.cloneElement(e,void 0,n):null)}return m.createElement(eE,Te({},r,{ref:t}),n)}));OM.displayName="Slot";const eE=m.forwardRef(((e,t)=>{const{children:n,...r}=e;return m.isValidElement(n)?m.cloneElement(n,{...bG(r,n.props),ref:yG(t,n.ref)}):m.Children.count(n)>1?m.Children.only(null):null}));eE.displayName="SlotClone";const wG=({children:e})=>m.createElement(m.Fragment,null,e);function _G(e){return m.isValidElement(e)&&e.type===wG}function bG(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const xG=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],tE=xG.reduce(((e,t)=>{const n=m.forwardRef(((e,n)=>{const{asChild:r,...o}=e,i=r?OM:t;return m.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),m.createElement(i,Te({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function SG(e,t){e&&vu.flushSync((()=>e.dispatchEvent(t)))}function EG(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function CG(...e){return t=>e.forEach((e=>EG(e,t)))}function $G(...e){return m.useCallback(CG(...e),e)}const Ff=null!=globalThis&&globalThis.document?m.useLayoutEffect:()=>{};function IG(e){const[t,n]=m.useState(void 0);return Ff((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t)||!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}const AM="Popper",[VC,kM]=bM(AM),[WZ,RG]=VC(AM),cy="PopperContent",[PG,qZ]=VC(cy),[TG,OG]=VC(cy,{hasParent:!1,positionUpdateFns:new Set}),AG=m.forwardRef(((e,t)=>{var n,r,o,i,a,u,s,l;const{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:p="center",alignOffset:h=0,arrowPadding:v=0,collisionBoundary:g=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:w=!1,avoidCollisions:x=!0,onPlaced:_,...E}=e,S=RG(cy,c),[k,A]=m.useState(null),C=$G(t,(e=>A(e))),[I,R]=m.useState(null),P=IG(I),T=null!==(n=null==P?void 0:P.width)&&void 0!==n?n:0,O=null!==(r=null==P?void 0:P.height)&&void 0!==r?r:0,N=d+("center"!==p?"-"+p:""),j="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},q=Array.isArray(g)?g:[g],D=q.length>0,M={padding:j,boundary:q.filter(DG),altBoundary:D},{reference:L,floating:$,strategy:B,x:V,y:z,placement:F,middlewareData:U,update:G}=mG({strategy:"fixed",placement:N,whileElementsMounted:fG,middleware:[NG(),oG({mainAxis:f+O,alignmentAxis:h}),x?iG({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?aG():void 0,...M}):void 0,I?vG({element:I,padding:v}):void 0,x?nG({...M}):void 0,sG({...M,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}}),MG({arrowWidth:T,arrowHeight:O}),w?rG({strategy:"referenceHidden"}):void 0].filter(kG)});Ff((()=>{L(S.anchor)}),[L,S.anchor]);const W=null!==V&&null!==z,[H,K]=DM(F),Q=Xy(_);Ff((()=>{W&&(null==Q||Q())}),[W,Q]);const X=null===(o=U.arrow)||void 0===o?void 0:o.x,J=null===(i=U.arrow)||void 0===i?void 0:i.y,Y=0!==(null===(a=U.arrow)||void 0===a?void 0:a.centerOffset),[Z,ee]=m.useState();Ff((()=>{k&&ee(window.getComputedStyle(k).zIndex)}),[k]);const{hasParent:te,positionUpdateFns:ne}=OG(cy,c),re=!te;m.useLayoutEffect((()=>{if(!re)return ne.add(G),()=>{ne.delete(G)}}),[re,ne,G]),Ff((()=>{re&&W&&Array.from(ne).reverse().forEach((e=>requestAnimationFrame(e)))}),[re,W,ne]);const oe={"data-side":H,"data-align":K,...E,ref:C,style:{...E.style,animation:W?void 0:"none",opacity:null!==(u=U.hide)&&void 0!==u&&u.referenceHidden?0:void 0}};return m.createElement("div",{ref:$,"data-radix-popper-content-wrapper":"",style:{position:B,left:0,top:0,transform:W?`translate3d(${Math.round(V)}px, ${Math.round(z)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Z,"--radix-popper-transform-origin":[null===(s=U.transformOrigin)||void 0===s?void 0:s.x,null===(l=U.transformOrigin)||void 0===l?void 0:l.y].join(" ")},dir:e.dir},m.createElement(PG,{scope:c,placedSide:H,onArrowChange:R,arrowX:X,arrowY:J,shouldHideArrow:Y},re?m.createElement(TG,{scope:c,hasParent:!0,positionUpdateFns:ne},m.createElement(tE.div,oe)):m.createElement(tE.div,oe)))}));function kG(e){return void 0!==e}function DG(e){return null!==e}const NG=()=>({name:"anchorCssProperties",fn(e){const{rects:t,elements:n}=e,{width:r,height:o}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${o}px`),{}}}),MG=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:u,rects:s,middlewareData:l}=t,c=0!==(null===(n=l.arrow)||void 0===n?void 0:n.centerOffset),d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,m]=DM(u),h={start:"0%",center:"50%",end:"100%"}[m],v=(null!==(r=null===(o=l.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,g=(null!==(i=null===(a=l.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let y="",b="";return"bottom"===p?(y=c?h:`${v}px`,b=-f+"px"):"top"===p?(y=c?h:`${v}px`,b=`${s.floating.height+f}px`):"right"===p?(y=-f+"px",b=c?h:`${g}px`):"left"===p&&(y=`${s.floating.width+f}px`,b=c?h:`${g}px`),{data:{x:y,y:b}}}});function DM(e){const[t,n="center"]=e.split("-");return[t,n]}const LG=AG;function FG(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function BG(...e){return t=>e.forEach((e=>FG(e,t)))}function jG(...e){return m.useCallback(BG(...e),e)}function VG(e,t){return m.useReducer(((e,n)=>t[e][n]??e),e)}const NM=e=>{const{present:t,children:n}=e,r=UG(t),o="function"==typeof n?n({present:r.isPresent}):m.Children.only(n),i=jG(r.ref,o.ref);return"function"==typeof n||r.isPresent?m.cloneElement(o,{ref:i}):null};function UG(e){const[t,n]=m.useState(),r=m.useRef({}),o=m.useRef(e),i=m.useRef("none"),a=e?"mounted":"unmounted",[u,s]=VG(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect((()=>{const e=Fg(r.current);i.current="mounted"===u?e:"none"}),[u]),Ff((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=Fg(t);e?s("MOUNT"):"none"===a||"none"===(null==t?void 0:t.display)?s("UNMOUNT"):s(n&&r!==a?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,s]),Ff((()=>{if(t){const e=e=>{const n=Fg(r.current).includes(e.animationName);e.target===t&&n&&vu.flushSync((()=>s("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=Fg(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}s("ANIMATION_END")}),[t,s]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:m.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function Fg(e){return(null==e?void 0:e.animationName)||"none"}function zG(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function WG(...e){return t=>e.forEach((e=>zG(e,t)))}function qG(...e){return m.useCallback(WG(...e),e)}function GG(e,t=(null==globalThis?void 0:globalThis.document)){const n=Xy(e);m.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}NM.displayName="Presence";const nE="dismissableLayer.update",HG="dismissableLayer.pointerDownOutside",KG="dismissableLayer.focusOutside";let gO;const QG=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),YG=m.forwardRef(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:u,onDismiss:s,...l}=e,c=m.useContext(QG),[d,f]=m.useState(null),p=null!==(n=null==d?void 0:d.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,h]=m.useState({}),v=qG(t,(e=>f(e))),g=Array.from(c.layers),[y]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),w=d?g.indexOf(d):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,_=w>=b,E=XG((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));!_||n||(null==i||i(e),null==u||u(e),e.defaultPrevented||null==s||s())}),p),S=JG((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==a||a(e),null==u||u(e),e.defaultPrevented||null==s||s())}),p);return GG((e=>{w===c.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),p),m.useEffect((()=>{if(d)return r&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(gO=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),yO(),()=>{r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=gO)}}),[d,p,r,c]),m.useEffect((()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),yO())}),[d,c]),m.useEffect((()=>{const e=()=>h({});return document.addEventListener(nE,e),()=>document.removeEventListener(nE,e)}),[]),m.createElement(tE.div,Te({},l,{ref:v,style:{pointerEvents:x?_?"auto":"none":void 0,...e.style},onFocusCapture:Uf(e.onFocusCapture,S.onFocusCapture),onBlurCapture:Uf(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:Uf(e.onPointerDownCapture,E.onPointerDownCapture)}))}));function XG(e,t=(null==globalThis?void 0:globalThis.document)){const n=Xy(e),r=m.useRef(!1),o=m.useRef((()=>{}));return m.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){MM(HG,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}function JG(e,t=(null==globalThis?void 0:globalThis.document)){const n=Xy(e),r=m.useRef(!1);return m.useEffect((()=>{const e=e=>{e.target&&!r.current&&MM(KG,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function yO(){const e=new CustomEvent(nE);document.dispatchEvent(e)}function MM(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?SG(o,i):o.dispatchEvent(i)}let Cx;const LM="HoverCard",[FM,GZ]=bM(LM,[kM]),ZG=kM(),[HZ,BM]=FM(LM),eH="HoverCardPortal",[KZ,tH]=FM(eH,{forceMount:void 0}),rE="HoverCardContent",nH=m.forwardRef(((e,t)=>{const n=tH(rE,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,i=BM(rE,e.__scopeHoverCard);return m.createElement(NM,{present:r||i.open},m.createElement(rH,Te({"data-state":i.open?"open":"closed"},o,{onPointerEnter:Uf(e.onPointerEnter,wO(i.onOpen)),onPointerLeave:Uf(e.onPointerLeave,wO(i.onClose)),ref:t})))})),rH=m.forwardRef(((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,...u}=e,s=BM(rE,n),l=ZG(n),c=m.useRef(null),d=Yq(t,c),[f,p]=m.useState(!1);return m.useEffect((()=>{if(f){const e=document.body;return Cx=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=Cx,e.style.webkitUserSelect=Cx}}}),[f]),m.useEffect((()=>{if(c.current){const e=()=>{p(!1),s.isPointerDownOnContentRef.current=!1,setTimeout((()=>{var e;""!==(null===(e=document.getSelection())||void 0===e?void 0:e.toString())&&(s.hasSelectionRef.current=!0)}))};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),s.hasSelectionRef.current=!1,s.isPointerDownOnContentRef.current=!1}}}),[s.isPointerDownOnContentRef,s.hasSelectionRef]),m.useEffect((()=>{c.current&&oH(c.current).forEach((e=>e.setAttribute("tabindex","-1")))})),m.createElement(YG,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:a,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:Uf(i,(e=>{e.preventDefault()})),onDismiss:s.onDismiss},m.createElement(LG,Te({},l,u,{onPointerDown:Uf(u.onPointerDown,(e=>{e.currentTarget.contains(e.target)&&p(!0),s.hasSelectionRef.current=!1,s.isPointerDownOnContentRef.current=!0})),ref:d,style:{...u.style,userSelect:f?"text":void 0,WebkitUserSelect:f?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})))}));function wO(e){return t=>"touch"===t.pointerType?void 0:e()}function oH(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}const jM=nH,iH=m.forwardRef((({className:e,align:t="center",sideOffset:n=4,...r},o)=>G.jsx(jM,{ref:o,align:t,sideOffset:n,className:we("z-50 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})));iH.displayName=jM.displayName;const VM=m.forwardRef((({className:e,type:t,...n},r)=>{const{error:o}=bd();return G.jsx("input",{type:t,title:n.disabled?"Disabled":"",className:we("flex w-full rounded-m px-s py-3.5 text-base text-gray-900 outline outline-1 outline-input ring-offset-background transition-all duration-200 ease-in-out file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-base placeholder:text-gray-400 placeholder:text-muted-foreground focus-visible:bg-gray-50 focus-visible:text-gray-900 focus-visible:outline-2 focus-visible:outline-blue_120 enabled:hover:outline-2 enabled:hover:outline-gray-400 disabled:bg-transparent disabled:text-gray-300 disabled:outline-gray-200 disabled:ring-0 disabled:ring-transparent disabled:placeholder:text-gray-300",{"bg-red_30_17 outline-red-dark":!!o},e),ref:r,...n})}));function aH(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>m.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return m.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=m.createContext(r),i=n.length;n=[...n,r];const a=t=>{var n;const{scope:r,children:a,...u}=t,s=(null==(n=null==r?void 0:r[e])?void 0:n[i])||o,l=m.useMemo((()=>u),Object.values(u));return G.jsx(s.Provider,{value:l,children:a})};return a.displayName=t+"Provider",[a,function(n,a){var u;const s=(null==(u=null==a?void 0:a[e])?void 0:u[i])||o,l=m.useContext(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},sH(r,...t)]}function sH(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return m.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function _O(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function uH(...e){return t=>{let n=!1;const r=e.map((e=>{const r=_O(e,t);return!n&&"function"==typeof r&&(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():_O(e[t],null)}}}}function lH(e){const t=cH(e),n=m.forwardRef(((e,n)=>{const{children:r,...o}=e,i=m.Children.toArray(r),a=i.find(fH);if(a){const e=a.props.children,r=i.map((t=>t===a?m.Children.count(e)>1?m.Children.only(null):m.isValidElement(e)?e.props.children:null:t));return G.jsx(t,{...o,ref:n,children:m.isValidElement(e)?m.cloneElement(e,void 0,r):null})}return G.jsx(t,{...o,ref:n,children:r})}));return n.displayName=`${e}.Slot`,n}function cH(e){const t=m.forwardRef(((e,t)=>{const{children:n,...r}=e;if(m.isValidElement(n)){const e=hH(n),o=pH(r,n.props);return n.type!==m.Fragment&&(o.ref=t?uH(t,e):e),m.cloneElement(n,o)}return m.Children.count(n)>1?m.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}VM.displayName="Input";var dH=Symbol("radix.slottable");function fH(e){return m.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===dH}function pH(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function hH(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var mH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],UM=mH.reduce(((e,t)=>{const n=lH(`Primitive.${t}`),r=m.forwardRef(((e,r)=>{const{asChild:o,...i}=e,a=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),G.jsx(a,{...i,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{}),UC="Progress",zC=100,[vH,QZ]=aH(UC),[gH,yH]=vH(UC),zM=m.forwardRef(((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:i=wH,...a}=e;(o||0===o)&&!bO(o)&&console.error(_H(`${o}`,"Progress"));const u=bO(o)?o:zC;null!==r&&!xO(r,u)&&console.error(bH(`${r}`,"Progress"));const s=xO(r,u)?r:null,l=dy(s)?i(s,u):void 0;return G.jsx(gH,{scope:n,value:s,max:u,children:G.jsx(UM.div,{"aria-valuemax":u,"aria-valuemin":0,"aria-valuenow":dy(s)?s:void 0,"aria-valuetext":l,role:"progressbar","data-state":GM(s,u),"data-value":s??void 0,"data-max":u,...a,ref:t})})}));zM.displayName=UC;var WM="ProgressIndicator",qM=m.forwardRef(((e,t)=>{const{__scopeProgress:n,...r}=e,o=yH(WM,n);return G.jsx(UM.div,{"data-state":GM(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})}));function wH(e,t){return`${Math.round(e/t*100)}%`}function GM(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function dy(e){return"number"==typeof e}function bO(e){return dy(e)&&!isNaN(e)&&e>0}function xO(e,t){return dy(e)&&!isNaN(e)&&e<=t&&e>=0}function _H(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${zC}\`.`}function bH(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:\n - a positive number\n - less than the value passed to \`max\` (or ${zC} if no \`max\` prop is set)\n - \`null\` or \`undefined\` if the progress is indeterminate.\n\nDefaulting to \`null\`.`}qM.displayName=WM;var HM=zM,xH=qM;const SH=m.forwardRef((({className:e,value:t,indicatorClassName:n,...r},o)=>G.jsx(HM,{ref:o,className:we("relative h-[7px] w-full overflow-hidden rounded-full bg-blue_10",e),...r,children:G.jsx(xH,{className:we("h-full w-full flex-1 rounded-full bg-blue_100 transition-all",n),style:{transform:`translateX(-${100-(t||0)}%)`}})})));SH.displayName=HM.displayName;const KM="Radio",[EH,QM]=ni(KM),[CH,$H]=EH(KM),IH=m.forwardRef(((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:i,disabled:a,value:u="on",onCheck:s,...l}=e,[c,d]=m.useState(null),f=Ut(t,(e=>d(e))),p=m.useRef(!1),h=!c||!!c.closest("form");return m.createElement(CH,{scope:n,checked:o,disabled:a},m.createElement(ft.button,Te({type:"button",role:"radio","aria-checked":o,"data-state":YM(o),"data-disabled":a?"":void 0,disabled:a,value:u},l,{ref:f,onClick:et(e.onClick,(e=>{o||null==s||s(),h&&(p.current=e.isPropagationStopped(),p.current||e.stopPropagation())}))})),h&&m.createElement(TH,{control:c,bubbles:!p.current,name:r,value:u,checked:o,required:i,disabled:a,style:{transform:"translateX(-100%)"}}))})),RH="RadioIndicator",PH=m.forwardRef(((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,i=$H(RH,n);return m.createElement(ea,{present:r||i.checked},m.createElement(ft.span,Te({"data-state":YM(i.checked),"data-disabled":i.disabled?"":void 0},o,{ref:t})))})),TH=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=m.useRef(null),a=By(n),u=jy(t);return m.useEffect((()=>{const e=i.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(a!==n&&o){const t=new Event("click",{bubbles:r});o.call(e,n),e.dispatchEvent(t)}}),[a,n,r]),m.createElement("input",Te({type:"radio","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:i,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function YM(e){return e?"checked":"unchecked"}const OH=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],XM="RadioGroup",[AH,YZ]=ni(XM,[Gh,QM]),JM=Gh(),ZM=QM(),[kH,DH]=AH(XM),NH=m.forwardRef(((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:i,required:a=!1,disabled:u=!1,orientation:s,dir:l,loop:c=!0,onValueChange:d,...f}=e,p=JM(n),h=vC(l),[v,g]=pd({prop:i,defaultProp:o,onChange:d});return m.createElement(kH,{scope:n,name:r,required:a,disabled:u,value:v,onValueChange:g},m.createElement($C,Te({asChild:!0},p,{orientation:s,dir:h,loop:c}),m.createElement(ft.div,Te({role:"radiogroup","aria-required":a,"aria-orientation":s,"data-disabled":u?"":void 0,dir:h},f,{ref:t}))))})),MH="RadioGroupItem",LH=m.forwardRef(((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,i=DH(MH,n),a=i.disabled||r,u=JM(n),s=ZM(n),l=m.useRef(null),c=Ut(t,l),d=i.value===o.value,f=m.useRef(!1);return m.useEffect((()=>{const e=e=>{OH.includes(e.key)&&(f.current=!0)},t=()=>f.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}}),[]),m.createElement(IC,Te({asChild:!0},u,{focusable:!a,active:d}),m.createElement(IH,Te({disabled:a,required:i.required,checked:d},s,o,{name:i.name,ref:c,onCheck:()=>i.onValueChange(o.value),onKeyDown:et((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:et(o.onFocus,(()=>{var e;f.current&&(null===(e=l.current)||void 0===e||e.click())}))})))})),FH=m.forwardRef(((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=ZM(n);return m.createElement(PH,Te({},o,r,{ref:t}))})),e3=NH,t3=LH,BH=FH,jH=m.forwardRef((({className:e,...t},n)=>G.jsx(e3,{className:we("grid gap-2",e),...t,ref:n})));jH.displayName=e3.displayName;const VH=m.forwardRef((({className:e,...t},n)=>G.jsx(t3,{ref:n,className:we("aspect-square size-6 rounded-full border border-gray-300 disabled:cursor-not-allowed disabled:border-gray-100 disabled:bg-gray-100","data-[state=checked]:border-blue_100 data-[state=checked]:bg-blue_100 hover:data-[state=checked]:border-blue_120","disabled:data-[state=checked]:border-gray-100 disabled:data-[state=checked]:bg-gray-100","transition-[border] duration-200 hover:data-[state=checked]:bg-blue_120 md:hover:border-2",e),...t,children:G.jsx(BH,{className:"flex items-center justify-center",children:G.jsx(C5,{className:"stack-animate size-2 border-none",style:{fill:t.disabled?"var(--gray-300)":"white",color:t.disabled?"var(--gray-300)":"white"}})})})));VH.displayName=t3.displayName;const UH=rk,zH=Iy,n3=m.forwardRef((({className:e,...t},n)=>G.jsx(jh,{className:we("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n})));n3.displayName=jh.displayName;const WH=mu("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),r3=m.forwardRef((({side:e="right",className:t,overlayClassName:n,children:r,...o},i)=>G.jsxs(zH,{children:[G.jsx(n3,{className:we("bg-gray-900/70",n)}),G.jsxs(Vh,{ref:i,className:we(WH({side:e}),t),...o,children:[r,G.jsxs(Ry,{className:"absolute right-4 top-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[G.jsx(by,{className:"h-4 w-4"}),G.jsx("span",{className:"sr-only",children:"Close"})]})]})]})));r3.displayName=Vh.displayName;const o3=({className:e,...t})=>G.jsx("div",{className:we("flex flex-col space-y-2 text-center sm:text-left",e),...t});o3.displayName="SheetHeader";const i3=m.forwardRef((({className:e,...t},n)=>G.jsx(Dv,{ref:n,className:we("text-lg font-semibold text-foreground",e),...t})));i3.displayName=Dv.displayName;const a3=m.forwardRef((({className:e,...t},n)=>G.jsx(Nv,{ref:n,className:we("text-sm text-muted-foreground",e),...t})));a3.displayName=Nv.displayName;const[e0,XZ]=ni("Tooltip",[qh]),WC=qh(),qH="TooltipProvider",GH=700,oE="tooltip.open",[HH,qC]=e0(qH),KH=e=>{const{__scopeTooltip:t,delayDuration:n=GH,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,[a,u]=m.useState(!0),s=m.useRef(!1),l=m.useRef(0);return m.useEffect((()=>{const e=l.current;return()=>window.clearTimeout(e)}),[]),m.createElement(HH,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:m.useCallback((()=>{window.clearTimeout(l.current),u(!1)}),[]),onClose:m.useCallback((()=>{window.clearTimeout(l.current),l.current=window.setTimeout((()=>u(!0)),r)}),[r]),isPointerInTransitRef:s,onPointerInTransitChange:m.useCallback((e=>{s.current=e}),[]),disableHoverableContent:o},i)},GC="Tooltip",[QH,qv]=e0(GC),YH=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:a,delayDuration:u}=e,s=qC(GC,e.__scopeTooltip),l=WC(t),[c,d]=m.useState(null),f=sd(),p=m.useRef(0),h=a??s.disableHoverableContent,v=u??s.delayDuration,g=m.useRef(!1),[y=!1,b]=pd({prop:r,defaultProp:o,onChange:e=>{e?(s.onOpen(),document.dispatchEvent(new CustomEvent(oE))):s.onClose(),null==i||i(e)}}),w=m.useMemo((()=>y?g.current?"delayed-open":"instant-open":"closed"),[y]),x=m.useCallback((()=>{window.clearTimeout(p.current),g.current=!1,b(!0)}),[b]),_=m.useCallback((()=>{window.clearTimeout(p.current),b(!1)}),[b]),E=m.useCallback((()=>{window.clearTimeout(p.current),p.current=window.setTimeout((()=>{g.current=!0,b(!0)}),v)}),[v,b]);return m.useEffect((()=>()=>window.clearTimeout(p.current)),[]),m.createElement($N,l,m.createElement(QH,{scope:t,contentId:f,open:y,stateAttribute:w,trigger:c,onTriggerChange:d,onTriggerEnter:m.useCallback((()=>{s.isOpenDelayed?E():x()}),[s.isOpenDelayed,E,x]),onTriggerLeave:m.useCallback((()=>{h?_():window.clearTimeout(p.current)}),[_,h]),onOpen:x,onClose:_,disableHoverableContent:h},n))},SO="TooltipTrigger",XH=m.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=qv(SO,n),i=qC(SO,n),a=WC(n),u=Ut(t,m.useRef(null),o.onTriggerChange),s=m.useRef(!1),l=m.useRef(!1),c=m.useCallback((()=>s.current=!1),[]);return m.useEffect((()=>()=>document.removeEventListener("pointerup",c)),[c]),m.createElement(SC,Te({asChild:!0},a),m.createElement(ft.button,Te({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:u,onPointerMove:et(e.onPointerMove,(e=>{"touch"!==e.pointerType&&!l.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),l.current=!0)})),onPointerLeave:et(e.onPointerLeave,(()=>{o.onTriggerLeave(),l.current=!1})),onPointerDown:et(e.onPointerDown,(()=>{s.current=!0,document.addEventListener("pointerup",c,{once:!0})})),onFocus:et(e.onFocus,(()=>{s.current||o.onOpen()})),onBlur:et(e.onBlur,o.onClose),onClick:et(e.onClick,o.onClose)})))})),s3="TooltipPortal",[JH,ZH]=e0(s3,{forceMount:void 0}),eK=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=qv(s3,t);return m.createElement(JH,{scope:t,forceMount:n},m.createElement(ea,{present:n||i.open},m.createElement(Sy,{asChild:!0,container:o},r)))},$v="TooltipContent",u3=m.forwardRef(((e,t)=>{const n=ZH($v,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=qv($v,e.__scopeTooltip);return m.createElement(ea,{present:r||a.open},a.disableHoverableContent?m.createElement(l3,Te({side:o},i,{ref:t})):m.createElement(tK,Te({side:o},i,{ref:t})))})),tK=m.forwardRef(((e,t)=>{const n=qv($v,e.__scopeTooltip),r=qC($v,e.__scopeTooltip),o=m.useRef(null),i=Ut(t,o),[a,u]=m.useState(null),{trigger:s,onClose:l}=n,c=o.current,{onPointerInTransitChange:d}=r,f=m.useCallback((()=>{u(null),d(!1)}),[d]),p=m.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=sK([...oK(r,rK(r,n.getBoundingClientRect())),...iK(t.getBoundingClientRect())]);u(o),d(!0)}),[d]);return m.useEffect((()=>()=>f()),[f]),m.useEffect((()=>{if(s&&c){const e=e=>p(e,c),t=e=>p(e,s);return s.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{s.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}}),[s,c,p,f]),m.useEffect((()=>{if(a){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==s?void 0:s.contains(t))||(null==c?void 0:c.contains(t)),o=!aK(n,a);r?f():o&&(f(),l())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[s,c,a,l,f]),m.createElement(l3,Te({},e,{ref:i}))})),[nK,JZ]=e0(GC,{isInside:!1}),l3=m.forwardRef(((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...u}=e,s=qv($v,n),l=WC(n),{onClose:c}=s;return m.useEffect((()=>(document.addEventListener(oE,c),()=>document.removeEventListener(oE,c))),[c]),m.useEffect((()=>{if(s.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(s.trigger)&&c()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[s.trigger,c]),m.createElement(xy,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:c},m.createElement(EC,Te({"data-state":s.stateAttribute},l,u,{ref:t,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),m.createElement(TE,null,r),m.createElement(nK,{scope:n,isInside:!0},m.createElement(jW,{id:s.contentId,role:"tooltip"},o||r))))}));function rK(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function oK(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}function iK(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function aK(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,u=t[e].y,s=t[i].x,l=t[i].y;u>r!=l>r&&n<(s-a)*(r-u)/(l-u)+a&&(o=!o)}return o}function sK(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),uK(t)}function uK(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const lK=eK,c3=u3,cK=()=>{const e=window.innerWidth;return e<768?"mobile":e<1024?"tablet":"desktop"},dK=e=>{if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)},fK=e=>dK(e)&&"type"in e&&"string"==typeof e.type,wt=e=>{const t=t=>({type:e,payload:t});return t.toString=()=>`${e}`,t.type=e,t.match=t=>fK(t)&&t.type===e,t};wt("remoteReady"),wt("askLogin"),wt("reselectUser"),wt("requestLogout");const pK=wt("setConfirmLeavePage"),d3=wt("requestChangePath");wt("wsSubscribe"),wt("wsUnSubscribe"),wt("hostStoreConnect"),wt("remoteLogin");const hK=wt("remoteLogout");wt("wsOnMessage");const mK=wt("setRouterPath"),vK=wt("setDeviceType"),gK=wt("setDeviceWidth"),yK=wt("setUserError"),wK=wt("setUserIsError"),_K=wt("setUserPending"),bK=wt("setUserSuccess"),xK=wt("setUserData"),SK=wt("updateAccountData"),EK=wt("updateUser"),CK=wt("addNotification"),$K=wt("markNotification"),IK=wt("setNotificationsError"),RK=wt("setNotificationsList"),PK=wt("setNotificationsPending"),TK=wt("setNotificationsTotalCount"),OK=wt("setNotificationsUnreadCount"),AK=wt("acceptAllFollowRequests"),kK=wt("resetNotificationsState"),DK=wt("undoNotification"),NK=wt("setInstanceInfo"),MK=wt("setInstanceInfoPending"),LK=wt("setInstanceInfoError"),FK=wt("setPlatformSettings"),BK=wt("setProfileSettings");wt("setGroupData"),wt("setGroupLoading"),wt("requestLocalStorageGet"),wt("requestLocalStorageSet"),wt("requestLocalStorageRemove"),wt("requestLocalStorageClear"),wt("requestLocalStorageKeys"),wt("requestLocalStorageHas"),wt("sendLocalStorageResponse"),wt("sendLocalStorageChanged");const jK=e=>{try{const{type:t,payload:n}=e,r={type:t};return void 0!==n&&(r.payload=JSON.parse(JSON.stringify(n))),r}catch(t){return El.warn(`Could not serialize action type: ${e.type}`,t),{type:e.type,payload:`[Non-serializable payload for action: ${e.type}]`}}},f3=({action:e,windowElement:t,whitelist:n})=>{if(t)try{const{type:r}=e;if(!n.some((({type:e})=>e===r||"*"===e)))return;const o=jK(e);t.postMessage(o,"*")}catch(e){El.error("Failed to process or send message:",e)}},p3=({onMessage:e,whitelist:t,sourceWindow:n})=>{const r=r=>{const o=r.origin===window.location.origin,i=!n||r.source===n,a=r.data&&"object"==typeof r.data&&"type"in r.data,u=t.some((({type:e})=>e===r.data.type||"*"===e));!o&&i&&a&&u&&e(r.data)};return window.addEventListener("message",r),()=>{window.removeEventListener("message",r)}},Ih=()=>{try{return window.self!==window.top}catch{return!0}},EO=Un("requestMicroFrontendFetch"),VK=Un("sendMicroFrontendFetchResponse"),UK={deviceType:cK(),deviceWidth:window.innerWidth},h3=So({name:"ui",initialState:UK,reducers:{},extraReducers:e=>{e.addCase(vK,((e,{payload:t})=>{e.deviceType=t})),e.addCase(gK,((e,{payload:t})=>{e.deviceWidth=t}))},selectors:{selectDeviceType:e=>e.deviceType,selectDeviceWidth:e=>e.deviceWidth,selectIsMobile:e=>"mobile"===e.deviceType,selectIsTablet:e=>"tablet"===e.deviceType,selectIsDesktop:e=>"desktop"===e.deviceType}});var $x,CO,Ix,$O,Rx,IO,Px,RO,Tx,PO,Ox,TO,Ax,OO,kx,AO,Dx,kO,Nx,DO,Mx,NO,Lx,MO,Fx,LO,Bx,FO,jx,BO,Vx,jO,Ux,VO,zx,UO,Wx,zO,qx,WO,Gx,qO,Hx,GO,Kx,HO,Qx,KO,Yx,QO,Xx,YO,Jx,XO,Zx,JO,eS,ZO,tS,eA,nS,tA,rS,nA,oS,rA,iS,oA,aS,iA,sS,aA,uS,sA,lS,uA,cS,lA,dS,cA,fS,dA;function m3(){if(CO)return $x;CO=1;var e=qk(),t=e&&new e;return $x=t}function v3(){if($O)return Ix;$O=1;var e=tC(),t=m3();return Ix=t?function(e,n){return t.set(e,n),e}:e}function t0(){if(IO)return Rx;IO=1;var e=Fy(),t=ws();return Rx=function(n){return function(){var r=arguments;switch(r.length){case 0:return new n;case 1:return new n(r[0]);case 2:return new n(r[0],r[1]);case 3:return new n(r[0],r[1],r[2]);case 4:return new n(r[0],r[1],r[2],r[3]);case 5:return new n(r[0],r[1],r[2],r[3],r[4]);case 6:return new n(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new n(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var o=e(n.prototype),i=n.apply(o,r);return t(i)?i:o}},Rx}function zK(){if(RO)return Px;RO=1;var e=t0(),t=ri();return Px=function(n,r,o){var i=1&r,a=e(n);return function e(){return(this&&this!==t&&this instanceof e?a:n).apply(i?o:this,arguments)}},Px}function g3(){if(PO)return Tx;PO=1;var e=Math.max;return Tx=function(t,n,r,o){for(var i=-1,a=t.length,u=r.length,s=-1,l=n.length,c=e(a-u,0),d=Array(l+c),f=!o;++s<l;)d[s]=n[s];for(;++i<u;)(f||i<a)&&(d[r[i]]=t[i]);for(;c--;)d[s++]=t[i++];return d}}function y3(){if(TO)return Ox;TO=1;var e=Math.max;return Ox=function(t,n,r,o){for(var i=-1,a=t.length,u=-1,s=r.length,l=-1,c=n.length,d=e(a-s,0),f=Array(d+c),p=!o;++i<d;)f[i]=t[i];for(var m=i;++l<c;)f[m+l]=n[l];for(;++u<s;)(p||i<a)&&(f[m+r[u]]=t[i++]);return f}}function WK(){if(OO)return Ax;return OO=1,Ax=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}}function HC(){if(AO)return kx;return AO=1,kx=function(){}}function KC(){if(kO)return Dx;kO=1;var e=Fy(),t=HC();function n(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}return n.prototype=e(t.prototype),n.prototype.constructor=n,Dx=n}function w3(){if(DO)return Nx;DO=1;var e=m3(),t=kB();return Nx=e?function(t){return e.get(t)}:t}function qK(){if(NO)return Mx;NO=1;return Mx={}}function GK(){if(MO)return Lx;MO=1;var e=qK(),t=Object.prototype.hasOwnProperty;return Lx=function(n){for(var r=n.name+"",o=e[r],i=t.call(e,r)?o.length:0;i--;){var a=o[i],u=a.func;if(null==u||u==n)return a.name}return r}}function _3(){if(LO)return Fx;LO=1;var e=Fy(),t=HC();function n(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}return n.prototype=e(t.prototype),n.prototype.constructor=n,Fx=n}function HK(){if(FO)return Bx;FO=1;var e=KC(),t=_3(),n=Ly();return Bx=function(r){if(r instanceof e)return r.clone();var o=new t(r.__wrapped__,r.__chain__);return o.__actions__=n(r.__actions__),o.__index__=r.__index__,o.__values__=r.__values__,o}}function KK(){if(BO)return jx;BO=1;var e=KC(),t=_3(),n=HC(),r=Ei(),o=ta(),i=HK(),a=Object.prototype.hasOwnProperty;function u(n){if(o(n)&&!r(n)&&!(n instanceof e)){if(n instanceof t)return n;if(a.call(n,"__wrapped__"))return i(n)}return new t(n)}return u.prototype=n.prototype,u.prototype.constructor=u,jx=u}function QK(){if(jO)return Vx;jO=1;var e=KC(),t=w3(),n=GK(),r=KK();return Vx=function(o){var i=n(o),a=r[i];if("function"!=typeof a||!(i in e.prototype))return!1;if(o===a)return!0;var u=t(a);return!!u&&o===u[0]}}function b3(){if(VO)return Ux;VO=1;var e=v3(),t=Yk()(e);return Ux=t}function YK(){if(UO)return zx;UO=1;var e=/\{\n\/\* \[wrapped with (.+)\] \*/,t=/,? & /;return zx=function(n){var r=n.match(e);return r?r[1].split(t):[]}}function XK(){if(zO)return Wx;zO=1;var e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;return Wx=function(t,n){var r=n.length;if(!r)return t;var o=r-1;return n[o]=(r>1?"& ":"")+n[o],n=n.join(r>2?", ":" "),t.replace(e,"{\n/* [wrapped with "+n+"] */\n")}}function JK(){if(WO)return qx;WO=1;var e=oC(),t=AB(),n=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];return qx=function(r,o){return e(n,(function(e){var n="_."+e[0];o&e[1]&&!t(r,n)&&r.push(n)})),r.sort()}}function x3(){if(qO)return Gx;qO=1;var e=YK(),t=XK(),n=Xk(),r=JK();return Gx=function(o,i,a){var u=i+"";return n(o,t(u,r(e(u),a)))}}function S3(){if(GO)return Hx;GO=1;var e=QK(),t=b3(),n=x3();return Hx=function(r,o,i,a,u,s,l,c,d,f){var p=8&o;o|=p?32:64,4&(o&=~(p?64:32))||(o&=-4);var m=[r,o,u,p?s:void 0,p?l:void 0,p?void 0:s,p?void 0:l,c,d,f],h=i.apply(void 0,m);return e(r)&&t(h,m),h.placeholder=a,n(h,r,o)}}function E3(){if(HO)return Kx;return HO=1,Kx=function(e){return e.placeholder}}function ZK(){if(KO)return Qx;KO=1;var e=Ly(),t=YE(),n=Math.min;return Qx=function(r,o){for(var i=r.length,a=n(o.length,i),u=e(r);a--;){var s=o[a];r[a]=t(s,i)?u[s]:void 0}return r}}function QC(){if(QO)return Yx;QO=1;var e="__lodash_placeholder__";return Yx=function(t,n){for(var r=-1,o=t.length,i=0,a=[];++r<o;){var u=t[r];(u===n||u===e)&&(t[r]=e,a[i++]=r)}return a}}function C3(){if(YO)return Xx;YO=1;var e=g3(),t=y3(),n=WK(),r=t0(),o=S3(),i=E3(),a=ZK(),u=QC(),s=ri();return Xx=function l(c,d,f,p,m,h,v,g,y,b){var w=128&d,x=1&d,_=2&d,E=24&d,S=512&d,k=_?void 0:r(c);return function A(){for(var C=arguments.length,I=Array(C),R=C;R--;)I[R]=arguments[R];if(E)var P=i(A),T=n(I,P);if(p&&(I=e(I,p,m,E)),h&&(I=t(I,h,v,E)),C-=T,E&&C<b){var O=u(I,P);return o(c,d,l,A.placeholder,f,I,O,g,y,b-C)}var N=x?f:this,j=_?N[c]:c;return C=I.length,g?I=a(I,g):S&&C>1&&I.reverse(),w&&y<C&&(I.length=y),this&&this!==s&&this instanceof A&&(j=k||r(j)),j.apply(N,I)}},Xx}function eQ(){if(XO)return Jx;XO=1;var e=nC(),t=t0(),n=C3(),r=S3(),o=E3(),i=QC(),a=ri();return Jx=function(u,s,l){var c=t(u);return function t(){for(var d=arguments.length,f=Array(d),p=d,m=o(t);p--;)f[p]=arguments[p];var h=d<3&&f[0]!==m&&f[d-1]!==m?[]:i(f,m);return(d-=h.length)<l?r(u,s,n,t.placeholder,void 0,f,h,void 0,void 0,l-d):e(this&&this!==a&&this instanceof t?c:u,this,f)}},Jx}function tQ(){if(JO)return Zx;JO=1;var e=nC(),t=t0(),n=ri();return Zx=function(r,o,i,a){var u=1&o,s=t(r);return function t(){for(var o=-1,l=arguments.length,c=-1,d=a.length,f=Array(d+l),p=this&&this!==n&&this instanceof t?s:r;++c<d;)f[c]=a[c];for(;l--;)f[c++]=arguments[++o];return e(p,u?i:this,f)}},Zx}function nQ(){if(ZO)return eS;ZO=1;var e=g3(),t=y3(),n=QC(),r="__lodash_placeholder__",o=128,i=Math.min;return eS=function(a,u){var s=a[1],l=u[1],c=s|l,d=c<131,f=l==o&&8==s||l==o&&256==s&&a[7].length<=u[8]||384==l&&u[7].length<=u[8]&&8==s;if(!d&&!f)return a;1&l&&(a[2]=u[2],c|=1&s?0:4);var p=u[3];if(p){var m=a[3];a[3]=m?e(m,p,u[4]):p,a[4]=m?n(a[3],r):u[4]}return(p=u[5])&&(m=a[5],a[5]=m?t(m,p,u[6]):p,a[6]=m?n(a[5],r):u[6]),(p=u[7])&&(a[7]=p),l&o&&(a[8]=null==a[8]?u[8]:i(a[8],u[8])),null==a[9]&&(a[9]=u[9]),a[0]=u[0],a[1]=c,a}}function YC(){if(eA)return tS;eA=1;var e=v3(),t=zK(),n=eQ(),r=C3(),o=tQ(),i=w3(),a=nQ(),u=b3(),s=x3(),l=tD(),c=Math.max;return tS=function(d,f,p,m,h,v,g,y){var b=2&f;if(!b&&"function"!=typeof d)throw new TypeError("Expected a function");var w=m?m.length:0;if(w||(f&=-97,m=h=void 0),g=void 0===g?g:c(l(g),0),y=void 0===y?y:l(y),w-=h?h.length:0,64&f){var x=m,_=h;m=h=void 0}var E=b?void 0:i(d),S=[d,f,p,m,h,x,_,v,g,y];if(E&&a(S,E),d=S[0],f=S[1],p=S[2],m=S[3],h=S[4],!(y=S[9]=void 0===S[9]?b?0:d.length:c(S[9]-w,0))&&24&f&&(f&=-25),f&&1!=f)k=8==f||16==f?n(d,f,y):32!=f&&33!=f||h.length?r.apply(void 0,S):o(d,f,p,m);else var k=t(d,f,p);return s((E?e:u)(k,S),d,f)}}function rQ(){if(tA)return nS;tA=1;var e=YC();return nS=function(t,n,r){return n=r?void 0:n,n=t&&null==n?t.length:n,e(t,128,void 0,void 0,void 0,void 0,n)}}function oQ(){if(nA)return rS;nA=1;var e=iD();return rS=function(t){return e(t,4)}}function iQ(){if(rA)return oS;rA=1;var e=YC();function t(n,r,o){var i=e(n,8,void 0,void 0,void 0,void 0,void 0,r=o?void 0:r);return i.placeholder=t.placeholder,i}return t.placeholder={},oS=t}function aQ(){if(oA)return iS;oA=1;var e=Il(),t=ta(),n=e9();return iS=function(r){if(!t(r))return!1;var o=e(r);return"[object Error]"==o||"[object DOMException]"==o||"string"==typeof r.message&&"string"==typeof r.name&&!n(r)}}function sQ(){if(iA)return aS;iA=1;var e=Bv(),t=ta();return aS=function(n){return t(n)&&"[object WeakMap]"==e(n)}}function uQ(){if(aA)return sS;aA=1;var e=iD(),t=IB();return sS=function(n){return t("function"==typeof n?n:e(n,1))}}function lQ(){if(sA)return uS;sA=1;var e=YC(),t=b9(),n=t((function(t,n){return e(t,256,void 0,void 0,void 0,n)}));return uS=n}function cQ(){if(uA)return lS;uA=1;var e=Pk(),t=Ly(),n=Ei(),r=Lv(),o=Rk(),i=Fv(),a=Tk();return lS=function(u){return n(u)?e(u,i):r(u)?[u]:t(o(a(u)))}}function dQ(){return lA||(lA=1,cS={ary:rQ(),assign:rD(),clone:oQ(),curry:iQ(),forEach:oC(),isArray:Ei(),isError:aQ(),isFunction:Ty(),isWeakMap:sQ(),iteratee:uQ(),keys:Uk(),rearg:lQ(),toInteger:tD(),toPath:cQ()}),cS}function fQ(){if(cA)return dS;cA=1;var e=y2(),t=dQ();return dS=function(n,r,o){return e(t,n,r,o)}}function pQ(){if(dA)return fS;dA=1;var e=fQ()("debounce",Zk());return e.placeholder=g2(),fS=e}pQ();const hQ=()=>_y(h3.selectors.selectIsMobile);function fA({className:e,...t}){return G.jsx("div",{className:we("animate-pulse rounded-md bg-muted",e),...t})}const mQ="sidebar_state",vQ=604800,gQ="12rem",yQ="18rem",wQ="2rem",_Q="b",$3=m.createContext(null);function n0(){const e=m.useContext($3);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const bQ=m.forwardRef((({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:i,...a},u)=>{const s=hQ(),[l,c]=m.useState(!1),[d,f]=m.useState(e),p=t??d,h=m.useCallback((e=>{const t="function"==typeof e?e(p):e;n?n(t):f(t),document.cookie=`${mQ}=${t}; path=/; max-age=${vQ}`}),[n,p]),v=m.useCallback((()=>s?c((e=>!e)):h((e=>!e))),[s,h,c]);m.useEffect((()=>{const e=e=>{e.key===_Q&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),v())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[v]);const g=p?"expanded":"collapsed",y=m.useMemo((()=>({state:g,open:p,setOpen:h,isMobile:s,openMobile:l,setOpenMobile:c,toggleSidebar:v})),[g,p,h,s,l,c,v]);return G.jsx($3.Provider,{value:y,children:G.jsx(KH,{delayDuration:0,children:G.jsx("div",{style:{"--sidebar-width":gQ,"--sidebar-width-icon":wQ,...o},className:we("group/sidebar-wrapper flex min-h-svh w-full bg-gray-100 has-[[data-variant=inset]]:bg-sidebar",r),ref:u,...a,children:i})})})}));bQ.displayName="SidebarProvider";const xQ=m.forwardRef((({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...i},a)=>{const{isMobile:u,state:s,openMobile:l,setOpenMobile:c}=n0();return"none"===n?G.jsx("div",{className:we("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:a,...i,children:o}):u?G.jsx(UH,{open:l,onOpenChange:c,children:G.jsxs(r3,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":yQ},side:e,children:[G.jsxs(o3,{className:"sr-only",children:[G.jsx(i3,{children:"Sidebar"}),G.jsx(a3,{children:"Displays the mobile sidebar."})]}),G.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):G.jsxs("div",{ref:a,className:"group peer hidden text-sidebar-foreground md:block","data-state":s,"data-collapsible":"collapsed"===s?n:"","data-variant":t,"data-side":e,children:[G.jsx("div",{className:we("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===t||"inset"===t?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),G.jsx("div",{className:we("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex","left"===e?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","floating"===t||"inset"===t?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...i,children:G.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-sm group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:o})})]})}));xQ.displayName="Sidebar";const SQ=m.forwardRef((({className:e,onClick:t,...n},r)=>{const{toggleSidebar:o,open:i}=n0();return G.jsx(kv,{ref:r,"data-sidebar":"trigger",variant:"tertiary",size:"icon_m",className:we("size-6 text-gray-900",e),onClick:e=>{null==t||t(e),o()},...n,children:i?G.jsx(D5,{size:16}):G.jsx(A5,{size:16})})}));SQ.displayName="SidebarTrigger";const EQ=m.forwardRef((({className:e,...t},n)=>{const{toggleSidebar:r}=n0();return G.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:we("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})}));EQ.displayName="SidebarRail";const CQ=m.forwardRef((({className:e,...t},n)=>G.jsx("main",{ref:n,className:we("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-m md:peer-data-[variant=inset]:shadow",e),...t})));CQ.displayName="SidebarInset";const $Q=m.forwardRef((({className:e,...t},n)=>G.jsx(VM,{ref:n,"data-sidebar":"input",className:we("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t})));$Q.displayName="SidebarInput";const IQ=m.forwardRef((({className:e,...t},n)=>G.jsx("div",{ref:n,"data-sidebar":"header",className:we("flex flex-col gap-xxs p-xs",e),...t})));IQ.displayName="SidebarHeader";const RQ=m.forwardRef((({className:e,...t},n)=>G.jsx("div",{ref:n,"data-sidebar":"footer",className:we("flex flex-col gap-2 p-2",e),...t})));RQ.displayName="SidebarFooter";const PQ=m.forwardRef((({className:e,...t},n)=>G.jsx(AC,{ref:n,"data-sidebar":"separator",className:we("mx-2 w-auto bg-sidebar-border",e),...t})));PQ.displayName="SidebarSeparator";const TQ=m.forwardRef((({className:e,...t},n)=>G.jsx("div",{ref:n,"data-sidebar":"content",className:we("flex min-h-0 flex-1 flex-col gap-xxxs overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})));TQ.displayName="SidebarContent";const OQ=m.forwardRef((({className:e,...t},n)=>G.jsx("div",{ref:n,"data-sidebar":"group",className:we("relative flex w-full min-w-0 flex-col pt-xs",e),...t})));OQ.displayName="SidebarGroup";const AQ=m.forwardRef((({className:e,asChild:t=!1,...n},r)=>{const o=t?wd:"div";return G.jsx(o,{ref:r,"data-sidebar":"group-label",className:we("flex h-s shrink-0 items-center rounded-md px-xxs py-xxs text-xs font-semibold text-gray-700 opacity-60 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-xl group-data-[collapsible=icon]:opacity-0",e),...n})}));AQ.displayName="SidebarGroupLabel";const kQ=m.forwardRef((({className:e,asChild:t=!1,...n},r)=>{const o=t?wd:"button";return G.jsx(o,{ref:r,"data-sidebar":"group-action",className:we("absolute right-xs top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...n})}));kQ.displayName="SidebarGroupAction";const DQ=m.forwardRef((({className:e,...t},n)=>G.jsx("div",{ref:n,"data-sidebar":"group-content",className:we("w-full text-sm",e),...t})));DQ.displayName="SidebarGroupContent";const NQ=m.forwardRef((({className:e,...t},n)=>G.jsx("ul",{ref:n,"data-sidebar":"menu",className:we("flex w-full min-w-0 flex-col p-xs font-semibold text-gray-700 [&_svg]:size-4",e),...t})));NQ.displayName="SidebarMenu";const MQ=m.forwardRef((({className:e,...t},n)=>G.jsx("li",{ref:n,"data-sidebar":"menu-item",className:we("group/menu-item relative",e),...t})));MQ.displayName="SidebarMenuItem";const LQ=mu("peer/menu-button flex w-full items-center gap-xxs overflow-hidden rounded-sm p-xxs text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:text-blue_100 hover:bg-white focus-visible:ring-2 active:bg-white active:text-blue_100 disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-white data-[active=true]:font-medium data-[active=true]:text-blue_100 data-[state=open]:hover:bg-white data-[state=open]:hover:text-blue_100 group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:text-blue_100 hover:bg-white",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-white hover:text-blue_100 hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-s text-sm",sm:"h-m text-xs",lg:"h-l text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),FQ=m.forwardRef((({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:i,...a},u)=>{const s=e?wd:"button",{isMobile:l,state:c}=n0(),d=G.jsx(s,{ref:u,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:we(LQ({variant:n,size:r}),i),...a});return o?("string"==typeof o&&(o={children:o}),G.jsxs(YH,{children:[G.jsx(XH,{asChild:!0,children:d}),G.jsx(u3,{side:"right",align:"center",hidden:"collapsed"!==c||l,...o})]})):d}));FQ.displayName="SidebarMenuButton";const BQ=m.forwardRef((({className:e,asChild:t=!1,showOnHover:n=!1,...r},o)=>{const i=t?wd:"button";return G.jsx(i,{ref:o,"data-sidebar":"menu-action",className:we("absolute right-xxxs top-xxs flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-xxxs","peer-data-[size=default]/menu-button:top-xxs","peer-data-[size=lg]/menu-button:top-xs","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r})}));BQ.displayName="SidebarMenuAction";const jQ=m.forwardRef((({className:e,...t},n)=>G.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:we("pointer-events-none absolute right-xxxs flex h-m min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-xxxs","peer-data-[size=default]/menu-button:top-xxs","peer-data-[size=lg]/menu-button:top-xs","group-data-[collapsible=icon]:hidden",e),...t})));jQ.displayName="SidebarMenuBadge";const VQ=m.forwardRef((({className:e,showIcon:t=!1,...n},r)=>{const o=m.useMemo((()=>`${Math.floor(40*Math.random())+50}%`),[]);return G.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:we("flex h-8 items-center gap-xxs rounded-md px-xxs",e),...n,children:[t&&G.jsx(fA,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),G.jsx(fA,{className:"h-xxxs max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})}));VQ.displayName="SidebarMenuSkeleton";const UQ=m.forwardRef((({className:e,...t},n)=>G.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:we("flex min-w-0 translate-x-px flex-col gap-xxxs border-l border-sidebar-border","group-data-[collapsible=icon]:hidden",e),...t})));UQ.displayName="SidebarMenuSub";const zQ=m.forwardRef((({...e},t)=>G.jsx("li",{ref:t,...e})));zQ.displayName="SidebarMenuSubItem";const WQ=m.forwardRef((({asChild:e=!1,size:t="md",isActive:n,className:r,...o},i)=>{const a=e?wd:"a";return G.jsx(a,{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:we("flex h-s min-w-0 -translate-x-px items-center gap-xxs overflow-hidden rounded-sm px-xxs text-sm text-gray-700 outline-none ring-sidebar-ring hover:bg-white hover:text-blue_100 focus-visible:ring-2 active:bg-white active:text-blue_100 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-blue_100","data-[active=true]:bg-white data-[active=true]:text-blue_100","sm"===t&&"text-xs","md"===t&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o})}));WQ.displayName="SidebarMenuSubButton";const I3="Switch",[qQ,ZZ]=ni(I3),[GQ,HQ]=qQ(I3),KQ=m.forwardRef(((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:i,required:a,disabled:u,value:s="on",onCheckedChange:l,...c}=e,[d,f]=m.useState(null),p=Ut(t,(e=>f(e))),h=m.useRef(!1),v=!d||!!d.closest("form"),[g=!1,y]=pd({prop:o,defaultProp:i,onChange:l});return m.createElement(GQ,{scope:n,checked:g,disabled:u},m.createElement(ft.button,Te({type:"button",role:"switch","aria-checked":g,"aria-required":a,"data-state":R3(g),"data-disabled":u?"":void 0,disabled:u,value:s},c,{ref:p,onClick:et(e.onClick,(e=>{y((e=>!e)),v&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())}))})),v&&m.createElement(XQ,{control:d,bubbles:!h.current,name:r,value:s,checked:g,required:a,disabled:u,style:{transform:"translateX(-100%)"}}))})),QQ="SwitchThumb",YQ=m.forwardRef(((e,t)=>{const{__scopeSwitch:n,...r}=e,o=HQ(QQ,n);return m.createElement(ft.span,Te({"data-state":R3(o.checked),"data-disabled":o.disabled?"":void 0},r,{ref:t}))})),XQ=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=m.useRef(null),a=By(n),u=jy(t);return m.useEffect((()=>{const e=i.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(a!==n&&o){const t=new Event("click",{bubbles:r});o.call(e,n),e.dispatchEvent(t)}}),[a,n,r]),m.createElement("input",Te({type:"checkbox","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:i,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function R3(e){return e?"checked":"unchecked"}const P3=KQ,JQ=YQ,ZQ=m.forwardRef((({className:e,...t},n)=>G.jsx(P3,{className:we("group peer inline-flex h-xs w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background data-[state=checked]:bg-blue_100 data-[state=unchecked]:bg-gray-200","disabled:cursor-not-allowed disabled:!bg-gray-100 md:hover:data-[state=checked]:bg-blue_120 md:hover:data-[state=unchecked]:!bg-gray-300",e),...t,ref:n,children:G.jsx(JQ,{className:we("pointer-events-none block size-xxs rounded-full bg-background shadow-lg ring-0 transition-[transform,width] data-[state=checked]:translate-x-[20px] data-[state=unchecked]:translate-x-0",{"md:group-hover:w-[26px] md:group-hover:data-[state=checked]:translate-x-[14px]":!t.disabled,"bg-gray-300":t.disabled})})})));ZQ.displayName=P3.displayName;const eY=(e,t,{skipParams:n=!1}={})=>{const{props:r,params:o}=Object.keys(t).reduce(((n,r)=>(e.includes(`:${r}`)?n.props[r]=t[r]:n.params.set(r,t[r]),n)),{props:{},params:new URLSearchParams}),i=Object.keys(r).reduce(((e,t)=>{const n=new RegExp(`/:${t}\\?`,"g");return(e=e.replace(n,`/${r[t]}`)).replace(new RegExp(`:${t}`,"g"),r[t])}),e).replace(/\/:[^/]+?\?/g,"");return o.toString()&&!n?`${i}?${o.toString()}`:i},tY=e=>e&&jf.values(e).length?"?"+new URLSearchParams(e).toString():"";var nY={USER:"teamcity",npm_config_user_agent:"npm/10.9.3 node/v22.18.0 linux x64 workspaces/true",SENTRY_AUTH_TOKEN:"1d93ff28a44e4c3aaaaff854277cd8583c1de670bd8744bc895670dfd9300840",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.18.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/error-kit/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.18.0",npm_config_npm_version:"10.9.3",npm_config_cache:"/home/teamcity/.npm",USE_NPM_LIBS:"false",npm_config_ignore_scripts:"true",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.18.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/error-kit/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.18.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.18.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.9/bin:/home/teamcity/.rvm/gems/ruby-3.3.9@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.9/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.18.0/bin",TURBO_HASH:"7e1d41255f47f4fa",NODE:"/home/teamcity/.nvm/versions/node/v22.18.0/bin/node",npm_package_name:"@wellesley/error-kit",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"vite build",SHELL:"/bin/bash",npm_package_version:"1.0.703",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",SENTRY_MAPS_UPLOAD:"true",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.18.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/error-kit",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.18.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.18.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",USE_PACKAGES_FROM_NPM:"false",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/error-kit",EDITOR:"vi",NODE_ENV:"production",BUILD_NUMBER:"3779",APP_NAME:"@wellesley/error-kit"},T3=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(T3||{});function rY(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function oY(e){return new RegExp("(^|:)//").test(e)}var iY=e=>e.replace(/\/$/,""),aY=e=>e.replace(/^\//,"");function sY(e,t){if(!e)return t;if(!t)return e;if(oY(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=iY(e)}${n}${t=aY(t)}`}var pA=e=>[].concat(...e);function uY(){return typeof navigator>"u"||void 0===navigator.onLine||navigator.onLine}function lY(){return typeof document>"u"||"hidden"!==document.visibilityState}var hA=cd;function O3(e,t){if(e===t||!(hA(e)&&hA(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let o=n.length===r.length;const i=Array.isArray(t)?[]:{};for(const r of n)i[r]=O3(e[r],t[r]),o&&(o=e[r]===i[r]);return o?e:i}var mA=(...e)=>fetch(...e),cY=e=>e.status>=200&&e.status<=299,dY=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function vA(e){if(!cd(e))return e;const t={...e};for(const[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}function fY({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=mA,paramsSerializer:r,isJsonContentType:o=dY,jsonContentType:i="application/json",jsonReplacer:a,timeout:u,responseHandler:s,validateStatus:l,...c}={}){return typeof fetch>"u"&&n===mA&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(f,p)=>{const{signal:m,getState:h,extra:v,endpoint:g,forced:y,type:b}=p;let w,{url:x,headers:_=new Headers(c.headers),params:E,responseHandler:S=s??"json",validateStatus:k=l??cY,timeout:A=u,...C}="string"==typeof f?{url:f}:f,I={...c,signal:m,...C};_=new Headers(vA(_)),I.headers=await t(_,{getState:h,extra:v,endpoint:g,forced:y,type:b})||_;const R=e=>"object"==typeof e&&(cd(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!I.headers.has("content-type")&&R(I.body)&&I.headers.set("content-type",i),R(I.body)&&o(I.headers)&&(I.body=JSON.stringify(I.body,a)),E){const e=~x.indexOf("?")?"&":"?";x+=e+(r?r(E):new URLSearchParams(vA(E)))}x=sY(e,x);const P=new Request(x,I);w={request:new Request(x,I)};let T,O=!1,N=A&&setTimeout((()=>{O=!0,p.abort()}),A);try{T=await n(P)}catch(e){return{error:{status:O?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:w}}finally{N&&clearTimeout(N)}const j=T.clone();w.response=j;let q,D="";try{let e;if(await Promise.all([d(T,S).then((e=>q=e),(t=>e=t)),j.text().then((e=>D=e),(()=>{}))]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:T.status,data:D,error:String(e)},meta:w}}return k(T,q)?{data:q,meta:w}:{error:{status:T.status,data:q},meta:w}};async function d(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=o(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var gA=class{constructor(e,t=void 0){this.value=e,this.meta=t}},XC=Un("__rtkq/focused"),A3=Un("__rtkq/unfocused"),JC=Un("__rtkq/online"),k3=Un("__rtkq/offline");function D3(e){return"query"===e.type}function pY(e){return"mutation"===e.type}function ZC(e,t,n,r,o,i){return hY(e)?e(t,n,r,o).map(iE).map(i):Array.isArray(e)?e.map(iE).map(i):[]}function hY(e){return"function"==typeof e}function iE(e){return"string"==typeof e?{type:e}:e}function yA(e){return null!=e}function Ah(e){let t=0;for(const n in e)t++;return t}function mY(e,t){return e.catch(t)}var Iv=Symbol("forceQueryFn"),aE=e=>"function"==typeof e[Iv];function vY({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:o}){const i=new Map,a=new Map,{unsubscribeQueryResult:u,removeMutationResult:s,updateSubscriptionOptions:l}=r.internalActions;return{buildInitiateQuery:function(n,o){const a=(s,{subscribe:c=!0,forceRefetch:d,subscriptionOptions:f,[Iv]:p,...m}={})=>(h,v)=>{var g;const y=e({queryArgs:s,endpointDefinition:o,endpointName:n}),b=t({...m,type:"query",subscribe:c,forceRefetch:d,subscriptionOptions:f,endpointName:n,originalArgs:s,queryCacheKey:y,[Iv]:p}),w=r.endpoints[n].select(s),x=h(b),_=w(v()),{requestId:E,abort:S}=x,k=_.requestId!==E,A=null==(g=i.get(h))?void 0:g[y],C=()=>w(v()),I=Object.assign(p?x.then(C):k&&!A?Promise.resolve(_):Promise.all([A,x]).then(C),{arg:s,requestId:E,subscriptionOptions:f,queryCacheKey:y,abort:S,async unwrap(){const e=await I;if(e.isError)throw e.error;return e.data},refetch:()=>h(a(s,{subscribe:!1,forceRefetch:!0})),unsubscribe(){c&&h(u({queryCacheKey:y,requestId:E}))},updateSubscriptionOptions(e){I.subscriptionOptions=e,h(l({endpointName:n,requestId:E,queryCacheKey:y,options:e}))}});if(!A&&!k&&!p){const e=i.get(h)||{};e[y]=I,i.set(h,e),I.then((()=>{delete e[y],Ah(e)||i.delete(h)}))}return I};return a},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:o}={})=>(i,u)=>{const l=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:o}),c=i(l),{requestId:d,abort:f,unwrap:p}=c,m=mY(c.unwrap().then((e=>({data:e}))),(e=>({error:e}))),h=Object.assign(m,{arg:c.arg,requestId:d,abort:f,unwrap:p,reset:()=>{i(s({requestId:d,fixedCacheKey:o}))}}),v=a.get(i)||{};return a.set(i,v),v[d]=h,h.then((()=>{delete v[d],Ah(v)||a.delete(i)})),o&&(v[o]=h,h.then((()=>{v[o]===h&&(delete v[o],Ah(v)||a.delete(i))}))),h}},getRunningQueryThunk:function(t,n){return r=>{var a;const u=o.endpointDefinitions[t],s=e({queryArgs:n,endpointDefinition:u,endpointName:t});return null==(a=i.get(r))?void 0:a[s]}},getRunningMutationThunk:function(e,t){return e=>{var n;return null==(n=a.get(e))?void 0:n[t]}},getRunningQueriesThunk:function(){return e=>Object.values(i.get(e)||{}).filter(yA)},getRunningMutationsThunk:function(){return e=>Object.values(a.get(e)||{}).filter(yA)}}}function wA(e){return e}function gY({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:o,assertTagType:i}){const a=async(e,{signal:r,abort:o,rejectWithValue:i,fulfillWithValue:a,dispatch:s,getState:l,extra:c})=>{const d=n[e.endpointName];try{let n,i=wA;const f={signal:r,abort:o,dispatch:s,getState:l,extra:c,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?u(e,l()):void 0},p="query"===e.type?e[Iv]:void 0;if(p?n=p():d.query?(n=await t(d.query(e.originalArgs),f,d.extraOptions),d.transformResponse&&(i=d.transformResponse)):n=await d.queryFn(e.originalArgs,f,d.extraOptions,(e=>t(e,f,d.extraOptions))),typeof process<"u"&&nY.NODE_ENV,n.error)throw new gA(n.error,n.meta);return a(await i(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[Ym]:!0})}catch(t){let n=t;if(n instanceof gA){let t=wA;d.query&&d.transformErrorResponse&&(t=d.transformErrorResponse);try{return i(await t(n.value,n.meta,e.originalArgs),{baseQueryMeta:n.meta,[Ym]:!0})}catch(e){n=e}}throw console.error(n),n}};function u(t,n){var r,o,i;const a=null==(o=null==(r=n[e])?void 0:r.queries)?void 0:o[t.queryCacheKey],u=null==(i=n[e])?void 0:i.config.refetchOnMountOrArgChange,s=null==a?void 0:a.fulfilledTimeStamp,l=t.forceRefetch??(t.subscribe&&u);return!!l&&(!0===l||(Number(new Date)-Number(s))/1e3>=l)}const s=T$(`${e}/executeQuery`,a,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[Ym]:!0}),condition(t,{getState:r}){var o,i,a;const s=r(),l=null==(i=null==(o=s[e])?void 0:o.queries)?void 0:i[t.queryCacheKey],c=null==l?void 0:l.fulfilledTimeStamp,d=t.originalArgs,f=null==l?void 0:l.originalArgs,p=n[t.endpointName];return!!aE(t)||"pending"!==(null==l?void 0:l.status)&&(!!(u(t,s)||D3(p)&&null!=(a=null==p?void 0:p.forceRefetch)&&a.call(p,{currentArg:d,previousArg:f,endpointState:l,state:s}))||!c)},dispatchConditionRejection:!0}),l=T$(`${e}/executeMutation`,a,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[Ym]:!0})});function c(e){return t=>{var n,r;return(null==(r=null==(n=null==t?void 0:t.meta)?void 0:n.arg)?void 0:r.endpointName)===e}}return{queryThunk:s,mutationThunk:l,prefetch:(e,t,n)=>(r,i)=>{const a=(e=>"force"in e)(n)&&n.force,u=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,s=(n=!0)=>{const r={forceRefetch:n,isPrefetch:!0};return o.endpoints[e].initiate(t,r)},l=o.endpoints[e].select(t)(i());if(a)r(s());else if(u){const e=null==l?void 0:l.fulfilledTimeStamp;if(!e)return void r(s());(Number(new Date)-Number(new Date(e)))/1e3>=u&&r(s())}else r(s(!1))},updateQueryData:(e,t,n,r=!0)=>(i,a)=>{const u=o.endpoints[e].select(t)(a());let s,l={patches:[],inversePatches:[],undo:()=>i(o.util.patchQueryData(e,t,l.inversePatches,r))};if("uninitialized"===u.status)return l;if("data"in u)if(gs(u.data)){const[e,t,r]=r2(u.data,n);l.patches.push(...t),l.inversePatches.push(...r),s=e}else s=n(u.data),l.patches.push({op:"replace",path:[],value:s}),l.inversePatches.push({op:"replace",path:[],value:u.data});return i(o.util.patchQueryData(e,t,l.patches,r)),l},upsertQueryData:(e,t,n)=>r=>r(o.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[Iv]:()=>({data:n})})),patchQueryData:(e,t,a,u)=>(s,l)=>{const c=n[e],d=r({queryArgs:t,endpointDefinition:c,endpointName:e});if(s(o.internalActions.queryResultPatched({queryCacheKey:d,patches:a})),!u)return;const f=o.endpoints[e].select(t)(l()),p=ZC(c.providesTags,f.data,void 0,t,{},i);s(o.internalActions.updateProvidedBy({queryCacheKey:d,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:ov(wE(e),c(t)),matchFulfilled:ov(fd(e),c(t)),matchRejected:ov(Nh(e),c(t))}}}}function N3(e,t,n,r){return ZC(n[e.meta.arg.endpointName][t],fd(e)?e.payload:void 0,wy(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function Bg(e,t,n){const r=e[t];r&&n(r)}function Rv(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function _A(e,t,n){const r=e[Rv(t)];r&&n(r)}var Km={};function yY({reducerPath:e,queryThunk:t,mutationThunk:n,context:{endpointDefinitions:r,apiUid:o,extractRehydrationInfo:i,hasRehydrationInfo:a},assertTagType:u,config:s}){const l=Un(`${e}/resetApiState`),c=So({name:`${e}/queries`,initialState:Km,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:Um()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){Bg(e,t,(e=>{e.data=C$(e.data,n.concat())}))},prepare:Um()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{var r;const o=aE(n);e[r=n.queryCacheKey]??(e[r]={status:"uninitialized",endpointName:n.endpointName}),Bg(e,n.queryCacheKey,(e=>{e.status="pending",e.requestId=o&&e.requestId?e.requestId:t.requestId,void 0!==n.originalArgs&&(e.originalArgs=n.originalArgs),e.startedTimeStamp=t.startedTimeStamp}))})).addCase(t.fulfilled,((e,{meta:t,payload:n})=>{Bg(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!aE(t.arg))return;const{merge:o}=r[t.arg.endpointName];if(e.status="fulfilled",o)if(void 0!==e.data){const{fulfilledTimeStamp:r,arg:i,baseQueryMeta:a,requestId:u}=t;let s=Ov(e.data,(e=>o(e,n,{arg:i.originalArgs,baseQueryMeta:a,fulfilledTimeStamp:r,requestId:u})));e.data=s}else e.data=n;else e.data=r[t.arg.endpointName].structuralSharing??1?O3(vs(e.data)?QL(e.data):e.data,n):n;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp}))})).addCase(t.rejected,((e,{meta:{condition:t,arg:n,requestId:r},error:o,payload:i})=>{Bg(e,n.queryCacheKey,(e=>{if(!t){if(e.requestId!==r)return;e.status="rejected",e.error=i??o}}))})).addMatcher(a,((e,t)=>{const{queries:n}=i(t);for(const[t,r]of Object.entries(n))("fulfilled"===(null==r?void 0:r.status)||"rejected"===(null==r?void 0:r.status))&&(e[t]=r)}))}}),d=So({name:`${e}/mutations`,initialState:Km,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=Rv(t);n in e&&delete e[n]},prepare:Um()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:o}})=>{r.track&&(e[Rv(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:o})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&_A(e,n,(e=>{e.requestId===n.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)}))})).addCase(n.rejected,((e,{payload:t,error:n,meta:r})=>{r.arg.track&&_A(e,r,(e=>{e.requestId===r.requestId&&(e.status="rejected",e.error=t??n)}))})).addMatcher(a,((e,t)=>{const{mutations:n}=i(t);for(const[t,r]of Object.entries(n))("fulfilled"===(null==r?void 0:r.status)||"rejected"===(null==r?void 0:r.status))&&t!==(null==r?void 0:r.requestId)&&(e[t]=r)}))}}),f=So({name:`${e}/invalidation`,initialState:Km,reducers:{updateProvidedBy:{reducer(e,t){var n,r;const{queryCacheKey:o,providedTags:i}=t.payload;for(const t of Object.values(e))for(const e of Object.values(t)){const t=e.indexOf(o);-1!==t&&e.splice(t,1)}for(const{type:t,id:a}of i){const i=(n=e[t]??(e[t]={}))[r=a||"__internal_without_id"]??(n[r]=[]);i.includes(o)||i.push(o)}},prepare:Um()}},extraReducers(e){e.addCase(c.actions.removeQueryResult,((e,{payload:{queryCacheKey:t}})=>{for(const n of Object.values(e))for(const e of Object.values(n)){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}})).addMatcher(a,((e,t)=>{var n,r;const{provided:o}=i(t);for(const[t,i]of Object.entries(o))for(const[o,a]of Object.entries(i)){const i=(n=e[t]??(e[t]={}))[r=o||"__internal_without_id"]??(n[r]=[]);for(const e of a)i.includes(e)||i.push(e)}})).addMatcher(dd(fd(t),wy(t)),((e,t)=>{const n=N3(t,"providesTags",r,u),{queryCacheKey:o}=t.meta.arg;f.caseReducers.updateProvidedBy(e,f.actions.updateProvidedBy({queryCacheKey:o,providedTags:n}))}))}}),p=So({name:`${e}/subscriptions`,initialState:Km,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),m=So({name:`${e}/internalSubscriptions`,initialState:Km,reducers:{subscriptionsUpdated:{reducer:(e,t)=>C$(e,t.payload),prepare:Um()}}}),h=So({name:`${e}/config`,initialState:{online:uY(),focused:lY(),middlewareRegistered:!1,...s},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&o===t||"conflict"}},extraReducers:e=>{e.addCase(JC,(e=>{e.online=!0})).addCase(k3,(e=>{e.online=!1})).addCase(XC,(e=>{e.focused=!0})).addCase(A3,(e=>{e.focused=!1})).addMatcher(a,(e=>({...e})))}}),v=QA({queries:c.reducer,mutations:d.reducer,provided:f.reducer,subscriptions:m.reducer,config:h.reducer});return{reducer:(e,t)=>v(l.match(t)?void 0:e,t),actions:{...h.actions,...c.actions,...p.actions,...m.actions,...d.actions,...f.actions,resetApiState:l}}}var Bf=Symbol.for("RTKQ/skipToken"),M3={status:"uninitialized"},bA=Ov(M3,(()=>{})),xA=Ov(M3,(()=>{}));function wY({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>bA,o=e=>xA;return{buildQuerySelector:function(t,o){return u=>{const s=e({queryArgs:u,endpointDefinition:o,endpointName:t});return n(u===Bf?r:e=>{var t,n;return(null==(n=null==(t=a(e))?void 0:t.queries)?void 0:n[s])??bA},i)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?Rv(e)??Bf:e,n(t===Bf?o:e=>{var n,r;return(null==(r=null==(n=a(e))?void 0:n.mutations)?void 0:r[t])??xA},i)}},selectInvalidatedBy:function(e,n){const r=e[t],o=new Set;for(const e of n.map(iE)){const t=r.provided[e.type];if(!t)continue;let n=(void 0!==e.id?t[e.id]:pA(Object.values(t)))??[];for(const e of n)o.add(e)}return pA(Array.from(o.values()).map((e=>{const t=r.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]})))},selectCachedArgsForQuery:function(e,n){return Object.values(e[t].queries).filter((e=>(null==e?void 0:e.endpointName)===n&&"uninitialized"!==e.status)).map((e=>e.originalArgs))}};function i(e){return{...e,...rY(e.status)}}function a(e){return e[t]}}var Eh=WeakMap?new WeakMap:void 0,SA=({endpointName:e,queryArgs:t})=>{let n="";const r=null==Eh?void 0:Eh.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>cd(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));cd(t)&&(null==Eh||Eh.set(t,e)),n=e}return`${e}(${n})`};function _Y(...e){return function(t){const n=mv((e=>{var n;return null==(n=t.extractRehydrationInfo)?void 0:n.call(t,e,{reducerPath:t.reducerPath??"api"})})),r={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:n,serializeQueryArgs(e){let n=SA;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:SA({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},o={endpointDefinitions:{},batch(e){e()},apiUid:gy(),extractRehydrationInfo:n,hasRehydrationInfo:mv((e=>null!=n(e)))},i={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"})});for(const[n,r]of Object.entries(t))if(!0!==e.overrideExisting&&n in o.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error(Co(39))}else{o.endpointDefinitions[n]=r;for(const e of a)e.injectEndpoint(n,r)}return i},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const t of e)r.tagTypes.includes(t)||r.tagTypes.push(t);if(t)for(const[e,n]of Object.entries(t))"function"==typeof n?n(o.endpointDefinitions[e]):Object.assign(o.endpointDefinitions[e]||{},n);return i}},a=e.map((e=>e.init(i,r,o)));return i.injectEndpoints({endpoints:t.endpoints})}}function bY(e){for(let t in e)return!1;return!0}var xY=2147482.647,SY=({reducerPath:e,api:t,context:n,internalState:r})=>{const{removeQueryResult:o,unsubscribeQueryResult:i}=t.internalActions;function a(e){const t=r.currentSubscriptions[e];return!!t&&!bY(t)}const u={};function s(e,t,r,i){const s=n.endpointDefinitions[t],l=(null==s?void 0:s.keepUnusedDataFor)??i.keepUnusedDataFor;if(l===1/0)return;const c=Math.max(0,Math.min(l,xY));if(!a(e)){const t=u[e];t&&clearTimeout(t),u[e]=setTimeout((()=>{a(e)||r.dispatch(o({queryCacheKey:e})),delete u[e]}),1e3*c)}}return(r,o,a)=>{var l;if(i.match(r)){const t=o.getState()[e],{queryCacheKey:n}=r.payload;s(n,null==(l=t.queries[n])?void 0:l.endpointName,o,t.config)}if(t.util.resetApiState.match(r))for(const[e,t]of Object.entries(u))t&&clearTimeout(t),delete u[e];if(n.hasRehydrationInfo(r)){const t=o.getState()[e],{queries:i}=n.extractRehydrationInfo(r);for(const[e,n]of Object.entries(i))s(e,null==n?void 0:n.endpointName,o,t.config)}}},EY=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:o,api:i,assertTagType:a,refetchQuery:u,internalState:s})=>{const{removeQueryResult:l}=i.internalActions,c=dd(fd(r),wy(r)),d=dd(fd(r,o),Nh(r,o));let f=[];function p(n,r){const o=r.getState(),a=o[e];if(f.push(...n),"delayed"===a.config.invalidationBehavior&&function(e){var t,n;for(const n in e.queries)if("pending"===(null==(t=e.queries[n])?void 0:t.status))return!0;for(const t in e.mutations)if("pending"===(null==(n=e.mutations[t])?void 0:n.status))return!0;return!1}(a))return;const c=f;if(f=[],0===c.length)return;const d=i.util.selectInvalidatedBy(o,c);t.batch((()=>{const e=Array.from(d.values());for(const{queryCacheKey:t}of e){const e=a.queries[t],n=s.currentSubscriptions[t]??{};e&&(0===Ah(n)?r.dispatch(l({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(u(e,t)))}}))}return(e,t)=>{c(e)?p(N3(e,"invalidatesTags",n,a),t):d(e)?p([],t):i.util.invalidateTags.match(e)&&p(ZC(e.payload,void 0,void 0,void 0,void 0,a),t)}},CY=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:o})=>{const i={};function a({queryCacheKey:t},n){const u=n.getState()[e],s=u.queries[t],c=o.currentSubscriptions[t];if(!s||"uninitialized"===s.status)return;const{lowestPollingInterval:d,skipPollingIfUnfocused:f}=l(c);if(!Number.isFinite(d))return;const p=i[t];null!=p&&p.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const m=Date.now()+d;i[t]={nextPollTimestamp:m,pollingInterval:d,timeout:setTimeout((()=>{(u.config.focused||!f)&&n.dispatch(r(s,t)),a({queryCacheKey:t},n)}),d)}}function u({queryCacheKey:t},n){const r=n.getState()[e].queries[t],u=o.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:c}=l(u);if(!Number.isFinite(c))return void s(t);const d=i[t],f=Date.now()+c;(!d||f<d.nextPollTimestamp)&&a({queryCacheKey:t},n)}function s(e){const t=i[e];null!=t&&t.timeout&&clearTimeout(t.timeout),delete i[e]}function l(e={}){let t=!1,n=Number.POSITIVE_INFINITY;for(let r in e)e[r].pollingInterval&&(n=Math.min(e[r].pollingInterval,n),t=e[r].skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,r)=>{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&u(e.payload,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&u(e.meta.arg,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&a(e.meta.arg,r),n.util.resetApiState.match(e)&&function(){for(const e of Object.keys(i))s(e)}()}},$Y=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:o})=>{const{removeQueryResult:i}=n.internalActions;function a(n,a){const u=n.getState()[e],s=u.queries,l=o.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(l)){const t=s[e],o=l[e];o&&t&&((Object.values(o).some((e=>!0===e[a]))||Object.values(o).every((e=>void 0===e[a]))&&u.config[a])&&(0===Ah(o)?n.dispatch(i({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t,e))))}}))}return(e,t)=>{XC.match(e)&&a(t,"refetchOnFocus"),JC.match(e)&&a(t,"refetchOnReconnect")}},EA=new Error("Promise never resolved before cacheEntryRemoved."),IY=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:o,internalState:i})=>{const a=PS(r),u=PS(o),s=fd(r,o),l={};function c(t,r,o,i,a){const u=n.endpointDefinitions[t],s=null==u?void 0:u.onCacheEntryAdded;if(!s)return;let c={};const d=new Promise((e=>{c.cacheEntryRemoved=e})),f=Promise.race([new Promise((e=>{c.valueResolved=e})),d.then((()=>{throw EA}))]);f.catch((()=>{})),l[o]=c;const p=e.endpoints[t].select("query"===u.type?r:o),m=i.dispatch(((e,t,n)=>n)),h={...i,getCacheEntry:()=>p(i.getState()),requestId:a,extra:m,updateCachedData:"query"===u.type?n=>i.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:f,cacheEntryRemoved:d},v=s(r,h);Promise.resolve(v).catch((e=>{if(e!==EA)throw e}))}return(n,i,d)=>{const f=function(t){return a(t)?t.meta.arg.queryCacheKey:u(t)?t.meta.arg.fixedCacheKey??t.meta.requestId:e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?Rv(t.payload):""}(n);if(r.pending.match(n)){const e=d[t].queries[f],r=i.getState()[t].queries[f];!e&&r&&c(n.meta.arg.endpointName,n.meta.arg.originalArgs,f,i,n.meta.requestId)}else if(o.pending.match(n))i.getState()[t].mutations[f]&&c(n.meta.arg.endpointName,n.meta.arg.originalArgs,f,i,n.meta.requestId);else if(s(n)){const e=l[f];null!=e&&e.valueResolved&&(e.valueResolved({data:n.payload,meta:n.meta.baseQueryMeta}),delete e.valueResolved)}else if(e.internalActions.removeQueryResult.match(n)||e.internalActions.removeMutationResult.match(n)){const e=l[f];e&&(delete l[f],e.cacheEntryRemoved())}else if(e.util.resetApiState.match(n))for(const[e,t]of Object.entries(l))delete l[e],t.cacheEntryRemoved()}},RY=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const o=wE(n,r),i=Nh(n,r),a=fd(n,r),u={};return(n,r)=>{var s,l;if(o(n)){const{requestId:o,arg:{endpointName:i,originalArgs:a}}=n.meta,s=t.endpointDefinitions[i],l=null==s?void 0:s.onQueryStarted;if(l){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));n.catch((()=>{})),u[o]=t;const c=e.endpoints[i].select("query"===s.type?a:o),d=r.dispatch(((e,t,n)=>n)),f={...r,getCacheEntry:()=>c(r.getState()),requestId:o,extra:d,updateCachedData:"query"===s.type?t=>r.dispatch(e.util.updateQueryData(i,a,t)):void 0,queryFulfilled:n};l(a,f)}}else if(a(n)){const{requestId:e,baseQueryMeta:t}=n.meta;null==(s=u[e])||s.resolve({data:n.payload,meta:t}),delete u[e]}else if(i(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;null==(l=u[e])||l.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete u[e]}}},PY=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},TY=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let o=null,i=null;const{updateSubscriptionOptions:a,unsubscribeQueryResult:u}=e.internalActions,s=()=>n.currentSubscriptions,l={getSubscriptions:s,getSubscriptionCount:e=>Ah(s()[e]??{}),isRequestSubscribed:(e,t)=>{var n;const r=s();return!(null==(n=null==r?void 0:r[e])||!n[t])}};return(s,c)=>{if(o||(o=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(s))return o=n.currentSubscriptions={},i=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(s))return[!1,l];const d=((n,r)=>{var o,i,s;if(a.match(r)){const{queryCacheKey:e,requestId:t,options:i}=r.payload;return null!=(o=null==n?void 0:n[e])&&o[t]&&(n[e][t]=i),!0}if(u.match(r)){const{queryCacheKey:e,requestId:t}=r.payload;return n[e]&&delete n[e][t],!0}if(e.internalActions.removeQueryResult.match(r))return delete n[r.payload.queryCacheKey],!0;if(t.pending.match(r)){const{meta:{arg:e,requestId:t}}=r,o=n[i=e.queryCacheKey]??(n[i]={});return o[`${t}_running`]={},e.subscribe&&(o[t]=e.subscriptionOptions??o[t]??{}),!0}let l=!1;if(t.fulfilled.match(r)||t.rejected.match(r)){const e=n[r.meta.arg.queryCacheKey]||{},t=`${r.meta.requestId}_running`;l||(l=!!e[t]),delete e[t]}if(t.rejected.match(r)){const{meta:{condition:e,arg:t,requestId:o}}=r;if(e&&t.subscribe){const e=n[s=t.queryCacheKey]??(n[s]={});e[o]=t.subscriptionOptions??e[o]??{},l=!0}}return l})(n.currentSubscriptions,s);let f=!0;if(d){i||(i=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=r2(o,(()=>t));c.next(e.internalActions.subscriptionsUpdated(r)),o=t,i=null}),500));const a="string"==typeof s.type&&!!s.type.startsWith(r),u=t.rejected.match(s)&&s.meta.condition&&!!s.meta.arg.subscribe;f=!a&&!u}return[f,!1]}};function OY(e){const{reducerPath:t,queryThunk:n,api:r,context:o}=e,{apiUid:i}=o,a={invalidateTags:Un(`${t}/invalidateTags`)},u=e=>e.type.startsWith(`${t}/`),s=[PY,SY,EY,CY,IY,RY];return{middleware:n=>{let a=!1;const c={...e,internalState:{currentSubscriptions:{}},refetchQuery:l,isThisApiSliceAction:u},d=s.map((e=>e(c))),f=TY(c),p=$Y(c);return e=>s=>{if(!YA(s))return e(s);a||(a=!0,n.dispatch(r.internalActions.middlewareRegistered(i)));const l={...n,next:e},c=n.getState(),[m,h]=f(s,l,c);let v;if(v=m?e(s):h,n.getState()[t]&&(p(s,l,c),u(s)||o.hasRehydrationInfo(s)))for(let e of d)e(s,l,c);return v}},actions:a};function l(e,t,r={}){return n({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t,...r})}}function od(e,...t){return Object.assign(e,...t)}var CA=Symbol(),AY=({createSelector:e=Zn}={})=>({name:CA,init(t,{baseQuery:n,tagTypes:r,reducerPath:o,serializeQueryArgs:i,keepUnusedDataFor:a,refetchOnMountOrArgChange:u,refetchOnFocus:s,refetchOnReconnect:l,invalidationBehavior:c},d){o6();const f=e=>e;Object.assign(t,{reducerPath:o,endpoints:{},internalActions:{onOnline:JC,onOffline:k3,onFocus:XC,onFocusLost:A3},util:{}});const{queryThunk:p,mutationThunk:m,patchQueryData:h,updateQueryData:v,upsertQueryData:g,prefetch:y,buildMatchThunkActions:b}=gY({baseQuery:n,reducerPath:o,context:d,api:t,serializeQueryArgs:i,assertTagType:f}),{reducer:w,actions:x}=yY({context:d,queryThunk:p,mutationThunk:m,reducerPath:o,assertTagType:f,config:{refetchOnFocus:s,refetchOnReconnect:l,refetchOnMountOrArgChange:u,keepUnusedDataFor:a,reducerPath:o,invalidationBehavior:c}});od(t.util,{patchQueryData:h,updateQueryData:v,upsertQueryData:g,prefetch:y,resetApiState:x.resetApiState}),od(t.internalActions,x);const{middleware:_,actions:E}=OY({reducerPath:o,context:d,queryThunk:p,mutationThunk:m,api:t,assertTagType:f});od(t.util,E),od(t,{reducer:w,middleware:_});const{buildQuerySelector:S,buildMutationSelector:k,selectInvalidatedBy:A,selectCachedArgsForQuery:C}=wY({serializeQueryArgs:i,reducerPath:o,createSelector:e});od(t.util,{selectInvalidatedBy:A,selectCachedArgsForQuery:C});const{buildInitiateQuery:I,buildInitiateMutation:R,getRunningMutationThunk:P,getRunningMutationsThunk:T,getRunningQueriesThunk:O,getRunningQueryThunk:N}=vY({queryThunk:p,mutationThunk:m,api:t,serializeQueryArgs:i,context:d});return od(t.util,{getRunningMutationThunk:P,getRunningMutationsThunk:T,getRunningQueryThunk:N,getRunningQueriesThunk:O}),{name:CA,injectEndpoint(e,n){var r;const o=t;(r=o.endpoints)[e]??(r[e]={}),D3(n)?od(o.endpoints[e],{name:e,select:S(e,n),initiate:I(e,n)},b(p,e)):pY(n)&&od(o.endpoints[e],{name:e,select:k(),initiate:R(e)},b(m,e))}}}});function kY(e){return"query"===e.type}function DY(e){return"mutation"===e.type}function jg(e,...t){return Object.assign(e,...t)}function pS(e){return e.replace(e[0],e[0].toUpperCase())}var Ch=WeakMap?new WeakMap:void 0,NY=({endpointName:e,queryArgs:t})=>{let n="";const r=null==Ch?void 0:Ch.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>cd(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));cd(t)&&(null==Ch||Ch.set(t,e)),n=e}return`${e}(${n})`},hS=Symbol();function $A(e,t,n,r){const o=m.useMemo((()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e})),[e,t,n,r]),i=m.useRef(o);return m.useEffect((()=>{i.current.serialized!==o.serialized&&(i.current=o)}),[o]),i.current.serialized===o.serialized?i.current.queryArgs:e}function mS(e){const t=m.useRef(e);return m.useEffect((()=>{iv(t.current,e)||(t.current=e)}),[e]),iv(t.current,e)?t.current:e}var MY=typeof window<"u"&&window.document&&window.document.createElement?m.useLayoutEffect:m.useEffect,LY=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:T3.pending}:e;function FY({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:o},unstable__sideEffectsInRender:i,createSelector:a},serializeQueryArgs:u,context:s}){const l=i?e=>e():m.useEffect;return{buildQueryHooks:function(i){const d=(t,{refetchOnReconnect:r,refetchOnFocus:o,refetchOnMountOrArgChange:a,skip:u=!1,pollingInterval:c=0,skipPollingIfUnfocused:d=!1}={})=>{const{initiate:f}=e.endpoints[i],p=n(),h=m.useRef();if(!h.current){const t=p(e.internalActions.internal_getRTKQSubscriptions());h.current=t}const v=$A(u?Bf:t,NY,s.endpointDefinitions[i],i),g=mS({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:c,skipPollingIfUnfocused:d}),y=m.useRef(!1),b=m.useRef();let{queryCacheKey:w,requestId:x}=b.current||{},_=!1;w&&x&&(_=h.current.isRequestSubscribed(w,x));const E=!_&&y.current;return l((()=>{y.current=_})),l((()=>{E&&(b.current=void 0)}),[E]),l((()=>{var e;const t=b.current;if(v===Bf)return null==t||t.unsubscribe(),void(b.current=void 0);const n=null==(e=b.current)?void 0:e.subscriptionOptions;if(t&&t.arg===v)g!==n&&t.updateSubscriptionOptions(g);else{null==t||t.unsubscribe();const e=p(f(v,{subscriptionOptions:g,forceRefetch:a}));b.current=e}}),[p,f,a,v,g,E]),m.useEffect((()=>()=>{var e;null==(e=b.current)||e.unsubscribe(),b.current=void 0}),[]),m.useMemo((()=>({refetch:()=>{var e;if(!b.current)throw new Error(Co(38));return null==(e=b.current)?void 0:e.refetch()}})),[])},f=({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:a=0,skipPollingIfUnfocused:u=!1}={})=>{const{initiate:s}=e.endpoints[i],c=n(),[d,f]=m.useState(hS),p=m.useRef(),h=mS({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:a,skipPollingIfUnfocused:u});l((()=>{var e,t;const n=null==(e=p.current)?void 0:e.subscriptionOptions;h!==n&&(null==(t=p.current)||t.updateSubscriptionOptions(h))}),[h]);const v=m.useRef(h);l((()=>{v.current=h}),[h]);const g=m.useCallback((function(e,n=!1){let r;return t((()=>{var t;null==(t=p.current)||t.unsubscribe(),p.current=r=c(s(e,{subscriptionOptions:v.current,forceRefetch:!n})),f(e)})),r}),[c,s]);return m.useEffect((()=>()=>{var e;null==(e=null==p?void 0:p.current)||e.unsubscribe()}),[]),m.useEffect((()=>{d!==hS&&!p.current&&g(d,!0)}),[d,g]),m.useMemo((()=>[g,d]),[g,d])},p=(t,{skip:n=!1,selectFromResult:l}={})=>{const{select:d}=e.endpoints[i],f=$A(n?Bf:t,u,s.endpointDefinitions[i],i),p=m.useRef(),h=m.useMemo((()=>a([d(f),(e,t)=>t,e=>f],c,{memoizeOptions:{resultEqualityCheck:iv}})),[d,f]),v=m.useMemo((()=>l?a([h],l,{devModeChecks:{identityFunctionCheck:"never"}}):h),[h,l]),g=r((e=>v(e,p.current)),iv),y=o(),b=h(y.getState(),p.current);return MY((()=>{p.current=b}),[b]),g};return{useQueryState:p,useQuerySubscription:d,useLazyQuerySubscription:f,useLazyQuery(e){const[t,n]=f(e),r=p(n,{...e,skip:n===hS}),o=m.useMemo((()=>({lastArg:n})),[n]);return m.useMemo((()=>[t,r,o]),[t,r,o])},useQuery(e,t){const n=d(e,t),r=p(e,{selectFromResult:e===Bf||null!=t&&t.skip?void 0:LY,...t}),{data:o,status:i,isLoading:a,isSuccess:u,isError:s,error:l}=r;return m.useDebugValue({data:o,status:i,isLoading:a,isSuccess:u,isError:s,error:l}),m.useMemo((()=>({...r,...n})),[r,n])}}},buildMutationHook:function(o){return({selectFromResult:i,fixedCacheKey:u}={})=>{const{select:s,initiate:l}=e.endpoints[o],c=n(),[d,f]=m.useState();m.useEffect((()=>()=>{null!=d&&d.arg.fixedCacheKey||null==d||d.reset()}),[d]);const p=m.useCallback((function(e){const t=c(l(e,{fixedCacheKey:u}));return f(t),t}),[c,l,u]),{requestId:h}=d||{},v=m.useMemo((()=>s({fixedCacheKey:u,requestId:null==d?void 0:d.requestId})),[u,d,s]),g=m.useMemo((()=>i?a([v],i):v),[i,v]),y=r(g,iv),b=null==u?null==d?void 0:d.arg.originalArgs:void 0,w=m.useCallback((()=>{t((()=>{d&&f(void 0),u&&c(e.internalActions.removeMutationResult({requestId:h,fixedCacheKey:u}))}))}),[c,u,d,h]),{endpointName:x,data:_,status:E,isLoading:S,isSuccess:k,isError:A,error:C}=y;m.useDebugValue({endpointName:x,data:_,status:E,isLoading:S,isSuccess:k,isError:A,error:C});const I=m.useMemo((()=>({...y,originalArgs:b,reset:w})),[y,b,w]);return m.useMemo((()=>[p,I]),[p,I])}},usePrefetch:function(t,r){const o=n(),i=mS(r);return m.useCallback(((n,r)=>o(e.util.prefetch(t,n,{...i,...r}))),[t,o,i])}};function c(e,t,n){if(null!=t&&t.endpointName&&e.isUninitialized){const{endpointName:e}=t,r=s.endpointDefinitions[e];u({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===u({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:null==t?void 0:t.data;void 0===r&&(r=e.data);const o=void 0!==r,i=e.isLoading,a=!o&&i,l=e.isSuccess||i&&o;return{...e,data:r,currentData:e.data,isFetching:i,isLoading:a,isSuccess:l}}}var BY=Symbol(),jY=({batch:e=c5,hooks:t={useDispatch:l5,useSelector:_y,useStore:v2},createSelector:n=Zn,unstable__sideEffectsInRender:r=!1,...o}={})=>({name:BY,init(o,{serializeQueryArgs:i},a){const u=o,{buildQueryHooks:s,buildMutationHook:l,usePrefetch:c}=FY({api:o,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:i,context:a});return jg(u,{usePrefetch:c}),jg(a,{batch:e}),{injectEndpoint(e,t){if(kY(t)){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:i,useQuerySubscription:a}=s(e);jg(u.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:i,useQuerySubscription:a}),o[`use${pS(e)}Query`]=t,o[`useLazy${pS(e)}Query`]=n}else if(DY(t)){const t=l(e);jg(u.endpoints[e],{useMutation:t}),o[`use${pS(e)}Mutation`]=t}}}}}),VY=_Y(AY(),jY());const UY=e=>{EE.removeToken(),e(hK()),mE("user").clear()},zY=e=>async(t,n,r)=>{const o=await e(t,n,r);return o.error&&[401].includes(o.error.status)&&UY(n.dispatch),o},WY=async(e,t=2e3)=>{for(;!e();)await new Promise((e=>setTimeout(e,t)))},qY=5,GY=e=>t=>!!e&&t.includes(e.status),IA=e=>new Promise((t=>setTimeout(t,1e3*e))),HY=e=>async(t,n,r)=>{const o=(null==r?void 0:r.maxRetries)??5;await WY((()=>n.getState().network.isOnline));let i=0;const a=async()=>{var u,s,l,c;const d=await e(t,n,r),f=d.error;if(i>=o)return d;i>0&&await IA(Math.pow(2,i)),i++;const p=GY(f);switch(!0){case"mutation"===n.type:return d;case!navigator.onLine:case p([408,404]):case f&&"FETCH_ERROR"===(null==f?void 0:f.status):case f&&f.status>=500:return await a();case 429===(null==(u=null==d?void 0:d.error)?void 0:u.status):{const e=null==(c=null==(l=null==(s=d.meta)?void 0:s.response)?void 0:l.headers)?void 0:c.get("Retry-After");return await IA(+(e||"0")),await a()}default:return d}};return await a()},RA=Un("requestOpenapiHydrationCacheHas"),PA=Un("requestOpenapiHydrationCacheAdd"),TA=Un("requestOpenapiHydrationCacheRemove"),OA=Un("requestOpenapiHydrationCacheClear"),AA=Un("sendOpenapiHydrationCacheResponse"),KY=()=>Math.random().toString(16).slice(2),QY=()=>{try{return!!Ih()&&window.location.origin!==window.parent.location.origin}catch{return!0}},Vg=()=>{const e=window.parent;return e.__wlsy_openapiHydrationCache||(e.__wlsy_openapiHydrationCache=new Set),e.__wlsy_openapiHydrationCache},Ug=new Set,YY=()=>{const e=QY(),t=new Map,n=(()=>{let n=null;return()=>{!e||n||(n=p3({sourceWindow:window.parent,onMessage:e=>{if(!AA.match(e))return;const{id:n,value:r,success:o,error:i}=e.payload,a=t.get(n);a&&(t.delete(n),window.clearTimeout(a.timeoutId),o?a.resolve(r):a.reject(new Error(i||"Unknown error")))},whitelist:[AA]}))}})(),r=(e,r)=>{const o=KY();return new Promise(((i,a)=>{const u=window.setTimeout((()=>{t.delete(o),a(new Error("OpenAPI hydration cache request timed out"))}),8e3);t.set(o,{resolve:i,reject:a,timeoutId:u}),(e=>{n(),f3({action:e,windowElement:window.parent,whitelist:[RA,PA,TA,OA]})})(e({id:o,...r}))}))};return{has:async t=>e?!!await r(RA,{key:t}):(t=>Ih()&&!e?Vg().has(t):Ug.has(t))(t),add:async t=>{e?await r(PA,{key:t}):(t=>{!Ih()||e?Ug.add(t):Vg().add(t)})(t)},remove:async t=>{e?await r(TA,{key:t}):(t=>{!Ih()||e?Ug.delete(t):Vg().delete(t)})(t)},clear:async()=>{e?await r(OA,{}):!Ih()||e?Ug.clear():Vg().clear()}}},XY=e=>"object"==typeof e&&null!==e,kA=YY(),JY=e=>async(t,n,r)=>{var o,i,a,u;if("mutation"===n.type)return e(t,n,r);const s=n.endpoint;if(!s||!(null!=r&&r.initialDataKey||null!=r&&r.initialDataKeyResolver||null!=r&&r.initialDataResolver))return e(t,n,r);const l=(null==(o=null==r?void 0:r.initialDataKeyResolver)?void 0:o.call(r,{endpoint:s,requestArgs:t}))??(null==r?void 0:r.initialDataKey),c=(null==(i=null==r?void 0:r.hydrationCacheKeyResolver)?void 0:i.call(r,{endpoint:s,requestArgs:t,initialDataKey:l}))??(l?`initialDataKey:${l}`:s);if(await kA.has(c))return e(t,n,r);const d=null==(a=n.getState().initialState)?void 0:a.value,f=(null==(u=null==r?void 0:r.initialDataResolver)?void 0:u.call(r,{endpoint:s,requestArgs:t,initialState:d}))??(()=>{if(l)return XY(d)?d[l]:void 0})();return void 0===f?e(t,n,r):(await kA.add(c),{data:f})};var L3=(e=>(e.SERVER_RULES="serverRules",e.INVITE_PEOPLE="invitePeople",e))(L3||{});const r0="staticState",F3=mE(),Hg={path:"",baseUrl:"",search:""},ZY=e=>{if(!e)return Hg;try{return JSON.parse(decodeURIComponent(e))||Hg}catch(e){return El.error("Error parsing static state",e),Hg}},B3=()=>new URLSearchParams(window.location.search).get(r0),eX=({path:e,baseUrl:t,search:n}={})=>{const{pathname:r,origin:o,search:i}=window.location;return`${r0}=${encodeURIComponent(JSON.stringify({path:e||r,baseUrl:t||o,search:n||i}))}`},tX=()=>{const e=B3();return e&&F3.setItem(r0,e),j3()},j3=()=>{try{const e=F3.getItem(r0)||B3();return ZY(e)}catch(e){return El.error("Error parsing static state",e),Hg}},V3={create:eX,init:tX,get:j3},nX=async e=>{const t={};e.headers.forEach(((e,n)=>{t[n]=e}));return{body:["get","head"].includes(e.method.toLowerCase())?null:await(async()=>{try{return await e.text()}catch(e){return El.error("No body or error reading body:",e),null}})(),headers:t,url:e.url,method:e.method,mode:e.mode,credentials:e.credentials,cache:e.cache,redirect:e.redirect,referrer:e.referrer,integrity:e.integrity}},rX=e=>{const{url:t,status:n,statusText:r,headers:o,body:i}=e,a=new Response(JSON.stringify(i),{status:n,statusText:r,headers:o});return Object.defineProperties(a,{url:{value:t},type:{value:"cors"}}),a},oX=async e=>{const t=crypto.randomUUID();return new Promise(((n,r)=>{const o=p3({onMessage:({payload:{id:e,response:r}})=>{t===e&&(null==o||o(),n(rX(r)))},whitelist:[VK]});(async()=>{try{f3({action:EO({id:t,options:await nX(e)}),windowElement:window.parent,whitelist:[EO]})}catch(e){r(e)}})()}))};new EventTarget;const e$=()=>{var e;try{return(null==(e=window.wellesley)?void 0:e.v1)||window.wellesley}catch(e){El.error("Error getting window.wellesley:",e)}},iX=e=>new Response(JSON.stringify(e),{status:200,statusText:"OK",headers:{"Content-Type":"application/json"}}),aX=e=>{var t,n;if(e.url.includes("accounts/profile")){const e=null==(n=null==(t=e$())?void 0:t.initialState)?void 0:n.currentAccount;return!(null==e||!e.selectedUserId)&&iX(e)}},sX=Object.freeze(Object.defineProperty({__proto__:null,userHandler:aX},Symbol.toStringTag,{value:"Module"})),uX=e=>Object.values(sX).reduce(((t,n)=>t||n(e)),void 0),lX=async e=>uX(e)||await fetch(e),cX=()=>e=>Ih()?oX(e):lX(e),dX=V3.get().baseUrl,fX=dX||"",pX=fY({fetchFn:cX(),baseUrl:fX,responseHandler:e=>{const t=e.headers.get("content-type");if(!(null==t?void 0:t.startsWith("application/json")))return e.text();try{return e.json()}catch{return e.text()}},prepareHeaders:e=>{const t=EE.getToken();return t&&e.set("authorization",`Bearer ${t}`),e}}),hX=zY(JY(HY(pX))),mX=VY({tagTypes:["Secure","Post","Follow","Like","Settings","UserSettings","RBAC","Rbac_Config","Admin_Apps","Admin_Platform_Data","Admin_Ai_Agents_Assignments","Admin_Users","Admin_Groups","Admin_Audit_Logs","Admin_Reports","Admin_Signup_Requests","Admin_Posts","Admin_Uploads","Admin_Roles","Admin_Jobs_Stats","Admin_Federation","Admin_Domain_Block","Admin_Custom_Emojis","Admin_Domain_Allow","Admin_Link_Service_Configure","Groups","Group_Channels","GroupMembers","GroupMembership","GroupRules","Group_Roles","Group_Join_Requests","Group_Apps","Group_Ai_Agents_Assignments","User_Apps","Account","Profile","UserNoHtml","Relationship","Bookmarks","Global_Search","Events","Event","EventAttendees",...Object.values(L3)],reducerPath:"openapi",baseQuery:hX,endpoints:()=>({})}),vX=mX.injectEndpoints({endpoints:e=>({getApiMetaCompat:e.query({query:()=>({url:"/api/meta/compat"})}),postApiV1AccountsAddReason:e.mutation({query:e=>({url:"/api/v1/accounts/add-reason",method:"POST",body:e.signupReasonParams})}),postApiV1AccountsAuthenticateEmail:e.mutation({query:e=>({url:"/api/v1/accounts/authenticate/email",method:"POST",body:e.authRequest})}),postApiV1AccountsAuthenticatePhone:e.mutation({query:e=>({url:"/api/v1/accounts/authenticate/phone",method:"POST",body:e.authPhoneRequest})}),putApiV1AccountsChangeName:e.mutation({query:e=>({url:"/api/v1/accounts/change/name",method:"PUT",params:{id:e.id,name:e.name,username:e.username}})}),postApiV1AccountsCheckCaptcha:e.mutation({query:e=>({url:"/api/v1/accounts/check-captcha",method:"POST",body:e.captchaVerificationParams})}),postApiV1AccountsConfirmEmail:e.mutation({query:e=>({url:"/api/v1/accounts/confirm-email",method:"POST",body:e.codeVerificationParams})}),postApiV1AccountsConfirmPhone:e.mutation({query:e=>({url:"/api/v1/accounts/confirm-phone",method:"POST",body:e.codeVerificationParams})}),deleteApiV1AccountsDelete:e.mutation({query:()=>({url:"/api/v1/accounts/delete",method:"DELETE"})}),postApiV1AccountsEmailChangeConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/email/change/confirm",method:"POST",body:e.body})}),postApiV1AccountsEmailChangeRequest:e.mutation({query:e=>({url:"/api/v1/accounts/email/change/request",method:"POST",body:e.emailChangeRequest})}),putApiV1AccountsEmailChangeResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/email/change/resend-code",method:"PUT"})}),postApiV1AccountsFinishCreating:e.mutation({query:e=>({url:"/api/v1/accounts/finish-creating",method:"POST",body:e.finishCreatingAccountParams,params:{htmlContent:e.htmlContent}})}),putApiV1AccountsGetTokenByHash:e.mutation({query:e=>({url:`/api/v1/accounts/get-token/${e.hash}`,method:"PUT"})}),postApiV1AccountsLoginsAddEmailPassword:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-email-password",method:"POST",body:e.addEmailRequest})}),postApiV1AccountsLoginsAddEmailPasswordConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-email-password/confirm",method:"POST",body:e.body})}),putApiV1AccountsLoginsAddEmailPasswordResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/logins/add-email-password/resend-code",method:"PUT"})}),postApiV1AccountsLoginsAddPhone:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-phone",method:"POST",body:e.addPhoneRequest})}),deleteApiV1AccountsLoginsRemoveEmailPassword:e.mutation({query:()=>({url:"/api/v1/accounts/logins/remove-email-password",method:"DELETE"})}),deleteApiV1AccountsLoginsRemovePhone:e.mutation({query:()=>({url:"/api/v1/accounts/logins/remove-phone",method:"DELETE"})}),postApiV1AccountsPasswordChangeConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/password/change/confirm",method:"POST",body:e.body})}),postApiV1AccountsPasswordChangeRequest:e.mutation({query:e=>({url:"/api/v1/accounts/password/change/request",method:"POST",body:e.passwordChangeRequest})}),putApiV1AccountsPasswordChangeResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/password/change/resend-code",method:"PUT"})}),postApiV1AccountsPasswordRecover:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover",method:"POST",body:e.passwordRecoveryRequest})}),postApiV1AccountsPasswordRecoverChange:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover/change",method:"POST",body:e.passwordRecoveryChange})}),postApiV1AccountsPasswordRecoverCheckCode:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover/check-code",method:"POST",body:e.passwordRecoveryCode})}),postApiV1AccountsPhoneChangeConfirmAuth:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/confirm/auth",method:"POST",body:e.body})}),postApiV1AccountsPhoneChangeConfirmNewPhone:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/confirm/new-phone",method:"POST",body:e.body})}),postApiV1AccountsPhoneChangeNewPhone:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/new-phone",method:"POST",body:e.addPhoneRequest})}),putApiV1AccountsPhoneChangeRequest:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/request",method:"PUT"})}),putApiV1AccountsPhoneChangeResendCodeAuth:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/resend-code/auth",method:"PUT"})}),putApiV1AccountsPhoneChangeResendCodeNewPhone:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/resend-code/new-phone",method:"PUT"})}),getApiV1AccountsProfile:e.query({query:e=>({url:"/api/v1/accounts/profile",params:{htmlContent:e.htmlContent}})}),putApiV1AccountsResendCodeByHash:e.mutation({query:e=>({url:`/api/v1/accounts/resend-code/${e.hash}`,method:"PUT"})}),putApiV1AccountsResendEmailByHash:e.mutation({query:e=>({url:`/api/v1/accounts/resend-email/${e.hash}`,method:"PUT"})}),postApiV1AccountsSignup:e.mutation({query:e=>({url:"/api/v1/accounts/signup",method:"POST",body:e.accountCreate})}),postApiV1AccountsSignupPhone:e.mutation({query:e=>({url:"/api/v1/accounts/signup-phone",method:"POST",body:e.phoneSignup})}),postApiV1AccountsUserReselectUser:e.mutation({query:e=>({url:"/api/v1/accounts/user/reselect-user",method:"POST",params:{userId:e.userId,userName:e.userName}})}),getApiV1AddressesSuggest:e.query({query:e=>({url:"/api/v1/addresses/suggest",params:{lang:e.lang,text:e.text}})}),getApiV1AdminAccountByAccountId:e.query({query:e=>({url:`/api/v1/admin/account/${e.accountId}`,params:{htmlContent:e.htmlContent}})}),getApiV1AdminAuditLog:e.query({query:e=>({url:"/api/v1/admin/audit_log",params:{accountId:e.accountId,action:e.action,appId:e.appId,domainSearch:e.domainSearch,email:e.email,group:e.group,groupId:e.groupId,lastId:e.lastId,limit:e.limit,offset:e.offset,ruleId:e.ruleId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId,username:e.username}})}),putApiV1AdminChangeEmail:e.mutation({query:e=>({url:"/api/v1/admin/change/email",method:"PUT",params:{email:e.email,id:e.id,username:e.username}})}),putApiV1AdminChangePassword:e.mutation({query:e=>({url:"/api/v1/admin/change/password",method:"PUT",params:{id:e.id,password:e.password,username:e.username}})}),putApiV1AdminChangeRoleAssign:e.mutation({query:e=>({url:"/api/v1/admin/change/role/assign",method:"PUT",params:{id:e.id,role:e.role,username:e.username,htmlContent:e.htmlContent}})}),putApiV1AdminChangeRoleRevoke:e.mutation({query:e=>({url:"/api/v1/admin/change/role/revoke",method:"PUT",params:{id:e.id,role:e.role,username:e.username,htmlContent:e.htmlContent}})}),postApiV1AdminClearApErrors:e.mutation({query:e=>({url:"/api/v1/admin/clear-ap-errors",method:"POST",params:{domain:e.domain}})}),postApiV1AdminCreateAccount:e.mutation({query:e=>({url:"/api/v1/admin/create-account",method:"POST",body:e.accountCreate,params:{htmlContent:e.htmlContent}})}),postApiV1AdminCreateUser:e.mutation({query:e=>({url:"/api/v1/admin/create-user",method:"POST",body:e.userCreate,params:{account_id:e.accountId,htmlContent:e.htmlContent}})}),deleteApiV1AdminDelete:e.mutation({query:e=>({url:"/api/v1/admin/delete",method:"DELETE",params:{email:e.email,id:e.id,username:e.username}})}),deleteApiV1AdminDeleteUser:e.mutation({query:e=>({url:"/api/v1/admin/delete-user",method:"DELETE",params:{id:e.id,username:e.username}})}),getApiV1AdminDomainAllow:e.query({query:e=>({url:"/api/v1/admin/domain-allow",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1AdminDomainAllow:e.mutation({query:e=>({url:"/api/v1/admin/domain-allow",method:"POST",body:e.allowedDomainReq})}),deleteApiV1AdminDomainAllowByDomain:e.mutation({query:e=>({url:`/api/v1/admin/domain-allow/${e.domain}`,method:"DELETE"})}),putApiV1AdminDomainBlock:e.mutation({query:e=>({url:"/api/v1/admin/domain-block",method:"PUT",body:e.blockDomainReq})}),getApiV1AdminDomainBlock:e.query({query:e=>({url:"/api/v1/admin/domain-block",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1AdminDomainBlock:e.mutation({query:e=>({url:"/api/v1/admin/domain-block",method:"POST",body:e.blockDomainReq})}),deleteApiV1AdminDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/admin/domain-block/${e.domain}`,method:"DELETE"})}),getApiV1AdminEmailAllow:e.query({query:()=>({url:"/api/v1/admin/email-allow"})}),postApiV1AdminEmailAllow:e.mutation({query:e=>({url:"/api/v1/admin/email-allow",method:"POST",body:e.allowedDomainReq})}),deleteApiV1AdminEmailAllowByDomain:e.mutation({query:e=>({url:`/api/v1/admin/email-allow/${e.domain}`,method:"DELETE"})}),getApiV1AdminEmailBlock:e.query({query:()=>({url:"/api/v1/admin/email-block"})}),postApiV1AdminEmailBlock:e.mutation({query:e=>({url:"/api/v1/admin/email-block",method:"POST",body:e.blockEmailRequest})}),deleteApiV1AdminEmailBlockByPattern:e.mutation({query:e=>({url:`/api/v1/admin/email-block/${e.pattern}`,method:"DELETE"})}),getApiV1AdminFederation:e.query({query:e=>({url:"/api/v1/admin/federation",params:{blockState:e.blockState,lastId:e.lastId,limit:e.limit,offset:e.offset,search:e.search,sortBy:e.sortBy,sortOrder:e.sortOrder,unavailable:e.unavailable,untilId:e.untilId,warning:e.warning}})}),getApiV1AdminFederationMetricsOperations:e.query({query:e=>({url:"/api/v1/admin/federation/metrics/operations",params:{window:e.window}})}),getApiV1AdminFederationMetricsRunningAverageSingle:e.query({query:e=>({url:"/api/v1/admin/federation/metrics/running-average-single",params:{operation:e.operation,window:e.window}})}),getApiV1AdminFederationMetricsRunningAveragesAll:e.query({query:e=>({url:"/api/v1/admin/federation/metrics/running-averages-all",params:{operations:e.operations,window:e.window}})}),getApiV1AdminFederationByDomain:e.query({query:e=>({url:`/api/v1/admin/federation/${e.domain}`})}),postApiV1AdminFeedClearUserFeed:e.mutation({query:e=>({url:"/api/v1/admin/feed/clear-user-feed",method:"POST",params:{userId:e.userId,username:e.username}})}),getApiV1AdminFeedDiagnose:e.query({query:e=>({url:"/api/v1/admin/feed/diagnose",params:{limit:e.limit,skipExactMatch:e.skipExactMatch,skipFull:e.skipFull,skipOrderMismatch:e.skipOrderMismatch,userId:e.userId,username:e.username}})}),getApiV1AdminFeedMetricsGlobalAllOperation:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/global-all-operation",params:{window:e.window}})}),getApiV1AdminFeedMetricsGlobalSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/global-single",params:{operation:e.operation,window:e.window}})}),getApiV1AdminFeedMetricsHistory:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/history",params:{limit:e.limit,operation:e.operation,userId:e.userId}})}),getApiV1AdminFeedMetricsHistoryAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/history/all",params:{limit:e.limit,userId:e.userId}})}),getApiV1AdminFeedMetricsRunningAverageSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/running-average-single",params:{operation:e.operation,userId:e.userId,window:e.window}})}),getApiV1AdminFeedMetricsRunningAveragesAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/running-averages-all",params:{userId:e.userId,window:e.window}})}),getApiV1AdminFeedMetricsSlowestOperations:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-operations",params:{limit:e.limit,window:e.window}})}),getApiV1AdminFeedMetricsSlowestUsers:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-users",params:{limit:e.limit,operation:e.operation,window:e.window}})}),getApiV1AdminFeedMetricsSlowestUsersAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-users-all",params:{limit:e.limit,sortDesc:e.sortDesc,window:e.window}})}),getApiV1AdminFeedMetricsSlowestUsersSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-users-single",params:{limit:e.limit,operation:e.operation,sortDesc:e.sortDesc,window:e.window}})}),getApiV1AdminFeedMetricsSummary:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/summary",params:{includeUserCounts:e.includeUserCounts,window:e.window}})}),getApiV1AdminFeedMetricsUserCountAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/user-count-all",params:{window:e.window}})}),getApiV1AdminFeedMetricsUserCountSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/user-count-single",params:{operation:e.operation,window:e.window}})}),postApiV1AdminFeedRegenerateUserFeed:e.mutation({query:e=>({url:"/api/v1/admin/feed/regenerate-user-feed",method:"POST",params:{clear:e.clear,userId:e.userId,username:e.username}})}),getApiV1AdminGroupsSearch:e.query({query:e=>({url:"/api/v1/admin/groups/search",params:{accountId:e.accountId,displayName:e.displayName,domain:e.domain,email:e.email,joinMode:e.joinMode,lastId:e.lastId,limit:e.limit,offset:e.offset,privacy:e.privacy,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId,username:e.username,visibility:e.visibility}})}),getApiV1AdminGroupsUserByUserId:e.query({query:e=>({url:`/api/v1/admin/groups/user/${e.userId}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,roles:e.roles,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1AdminGroupsByAccountId:e.query({query:e=>({url:`/api/v1/admin/groups/${e.accountId}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1AdminGroupsByGroupIdCategories:e.query({query:e=>({url:`/api/v1/admin/groups/${e.groupId}/categories`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1AdminGroupsByGroupIdChannels:e.query({query:e=>({url:`/api/v1/admin/groups/${e.groupId}/channels`})}),getApiV1AdminGroupsByGroupIdEvents:e.query({query:e=>({url:`/api/v1/admin/groups/${e.groupId}/events`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withTranslation:e.withTranslation}})}),getApiV1AdminImpersonate:e.query({query:e=>({url:"/api/v1/admin/impersonate",params:{username:e.username}})}),getApiV1AdminLinkService:e.query({query:()=>({url:"/api/v1/admin/link-service"})}),postApiV1AdminLinkServiceConfigure:e.mutation({query:e=>({url:"/api/v1/admin/link-service/configure",method:"POST",body:e.configureRequest})}),postApiV1AdminPostsDelete:e.mutation({query:e=>({url:"/api/v1/admin/posts/delete",method:"POST",body:e.postDelete})}),deleteApiV1AdminPurge:e.mutation({query:e=>({url:"/api/v1/admin/purge",method:"DELETE",params:{id:e.id}})}),postApiV1AdminRegenerateKeys:e.mutation({query:e=>({url:"/api/v1/admin/regenerate-keys",method:"POST",params:{userId:e.userId,username:e.username}})}),postApiV1AdminRegenerateKeysAll:e.mutation({query:e=>({url:"/api/v1/admin/regenerate-keys-all",method:"POST",params:{batch:e.batch}})}),postApiV1AdminReleaseUsername:e.mutation({query:e=>({url:"/api/v1/admin/release-username",method:"POST",params:{username:e.username}})}),postApiV1AdminReportsDeletePosts:e.mutation({query:e=>({url:"/api/v1/admin/reports/delete-posts",method:"POST",body:e.body})}),getApiV1AdminReportsList:e.query({query:e=>({url:"/api/v1/admin/reports/list",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,open:e.open,postId:e.postId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId}})}),getApiV1AdminReportsByReportId:e.query({query:e=>({url:`/api/v1/admin/reports/${e.reportId}`})}),postApiV1AdminReportsByReportIdAddNote:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/add-note`,method:"POST",body:e.body})}),postApiV1AdminReportsByReportIdAssignToSelf:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/assign-to-self`,method:"POST"})}),deleteApiV1AdminReportsByReportIdDelete:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/delete`,method:"DELETE"})}),postApiV1AdminReportsByReportIdRemoveNote:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/remove-note`,method:"POST",params:{index:e.index}})}),postApiV1AdminReportsByReportIdReopen:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/reopen`,method:"POST"})}),postApiV1AdminReportsByReportIdResolve:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/resolve`,method:"POST"})}),postApiV1AdminReportsByReportIdUnassign:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/unassign`,method:"POST"})}),postApiV1AdminRestartApDelivery:e.mutation({query:e=>({url:"/api/v1/admin/restart-ap-delivery",method:"POST",params:{domain:e.domain}})}),getApiV1AdminSearch:e.query({query:e=>({url:"/api/v1/admin/search",params:{accountId:e.accountId,actorType:e.actorType,country:e.country,displayName:e.displayName,domain:e.domain,email:e.email,ip:e.ip,kind:e.kind,lastId:e.lastId,limit:e.limit,offset:e.offset,role:e.role,search:e.search,sortBy:e.sortBy,sortOrder:e.sortOrder,state:e.state,untilId:e.untilId,userId:e.userId,username:e.username}})}),putApiV1AdminSignupRequestsApproveByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/approve/${e.hash}`,method:"PUT"})}),deleteApiV1AdminSignupRequestsDeleteByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/delete/${e.hash}`,method:"DELETE"})}),getApiV1AdminSignupRequestsList:e.query({query:e=>({url:"/api/v1/admin/signup_requests/list",params:{email:e.email,hash:e.hash,ip:e.ip,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),putApiV1AdminSignupRequestsRejectByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/reject/${e.hash}`,method:"PUT",params:{reason:e.reason}})}),getApiV1AdminUploadsJobsQueueByQueueName:e.query({query:e=>({url:`/api/v1/admin/uploads/jobs/queue/${e.queueName}`,params:{limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,uploadType:e.uploadType}})}),getApiV1AdminUploadsJobsSummary:e.query({query:()=>({url:"/api/v1/admin/uploads/jobs/summary"})}),getApiV1AdminUploadsSearch:e.query({query:e=>({url:"/api/v1/admin/uploads/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,uploadType:e.uploadType,userId:e.userId}})}),getApiV1AdminUploadsStorageByUserId:e.query({query:e=>({url:`/api/v1/admin/uploads/storage/${e.userId}`})}),postApiV1AdminUserChangeState:e.mutation({query:e=>({url:"/api/v1/admin/user/change-state",method:"POST",body:e.changeUserState})}),postApiV1AdminUserChangeStateBulk:e.mutation({query:e=>({url:"/api/v1/admin/user/change-state-bulk",method:"POST",body:e.changeUserStateBulk})}),getApiV1AdminUserByUserId:e.query({query:e=>({url:`/api/v1/admin/user/${e.userId}`})}),getApiV1AiAgentsAssignments:e.query({query:e=>({url:"/api/v1/ai-agents/assignments",params:{resourceId:e.resourceId,type:e.type}})}),deleteApiV1AiAgentsAssignments:e.mutation({query:e=>({url:"/api/v1/ai-agents/assignments",method:"DELETE",params:{id:e.id}})}),postApiV1AiAgentsAssignments:e.mutation({query:e=>({url:"/api/v1/ai-agents/assignments",method:"POST",body:e.aiAgentAssignmentCreate})}),getApiV1AiAgentsPosts:e.query({query:e=>({url:"/api/v1/ai-agents/posts",params:{limit:e.limit,ownerId:e.ownerId,since:e.since,htmlContent:e.htmlContent}})}),getApiV1AiModels:e.query({query:e=>({url:"/api/v1/ai-models",params:{capabilities:e.capabilities,deprecated:e.deprecated,enabled:e.enabled,maxContextWindow:e.maxContextWindow,maxInputPrice:e.maxInputPrice,maxMaxOutputTokens:e.maxMaxOutputTokens,maxOutputPrice:e.maxOutputPrice,minContextWindow:e.minContextWindow,minMaxOutputTokens:e.minMaxOutputTokens,modalities:e.modalities,openWeights:e.openWeights,page:e.page,pageSize:e.pageSize,providerId:e.providerId,search:e.search}})}),putApiV1AiModelsByModelId:e.mutation({query:e=>({url:`/api/v1/ai-models/${e.modelId}`,method:"PUT",body:e.aiModelUpdate,params:{scope:e.scope}})}),getApiV1AiModelsByModelId:e.query({query:e=>({url:`/api/v1/ai-models/${e.modelId}`})}),deleteApiV1AiModelsByModelId:e.mutation({query:e=>({url:`/api/v1/ai-models/${e.modelId}`,method:"DELETE",params:{scope:e.scope}})}),getApiV1AiModelsByModelIdMigrationPath:e.query({query:e=>({url:`/api/v1/ai-models/${e.modelId}/migration-path`})}),getApiV1AiModelsByModelIdResolve:e.query({query:e=>({url:`/api/v1/ai-models/${e.modelId}/resolve`})}),getApiV1AiProviders:e.query({query:e=>({url:"/api/v1/ai-providers",params:{enabledOnly:e.enabledOnly,scope:e.scope}})}),postApiV1AiProviders:e.mutation({query:e=>({url:"/api/v1/ai-providers",method:"POST",body:e.aiProviderCreate,params:{scope:e.scope}})}),putApiV1AiProvidersByProviderId:e.mutation({query:e=>({url:`/api/v1/ai-providers/${e.providerId}`,method:"PUT",body:e.aiProviderUpdate,params:{scope:e.scope}})}),getApiV1AiProvidersByProviderId:e.query({query:e=>({url:`/api/v1/ai-providers/${e.providerId}`,params:{scope:e.scope}})}),deleteApiV1AiProvidersByProviderId:e.mutation({query:e=>({url:`/api/v1/ai-providers/${e.providerId}`,method:"DELETE",params:{scope:e.scope}})}),getApiV1AiProvidersByProviderIdModels:e.query({query:e=>({url:`/api/v1/ai-providers/${e.providerId}/models`,params:{enabledOnly:e.enabledOnly,includeDeprecated:e.includeDeprecated}})}),postApiV1AiProvidersByProviderIdModels:e.mutation({query:e=>({url:`/api/v1/ai-providers/${e.providerId}/models`,method:"POST",body:e.aiModelCreate,params:{scope:e.scope}})}),postApiV1Apps:e.mutation({query:e=>({url:"/api/v1/apps",method:"POST",body:e.body,params:{enable:e.enable}})}),getApiV1Apps:e.query({query:()=>({url:"/api/v1/apps"})}),getApiV1AppsEnabled:e.query({query:()=>({url:"/api/v1/apps/enabled"})}),getApiV1AppsInstalled:e.query({query:()=>({url:"/api/v1/apps/installed"})}),getApiV1AppsUser:e.query({query:()=>({url:"/api/v1/apps/user"})}),deleteApiV1AppsUserByAppId:e.mutation({query:e=>({url:`/api/v1/apps/user/${e.appId}`,method:"DELETE"})}),putApiV1AppsUserByAppId:e.mutation({query:e=>({url:`/api/v1/apps/user/${e.appId}`,method:"PUT"})}),putApiV1AppsByAppId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}`,method:"PUT",body:e.body,params:{enable:e.enable}})}),getApiV1AppsByAppId:e.query({query:e=>({url:`/api/v1/apps/${e.appId}`})}),deleteApiV1AppsByAppId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}`,method:"DELETE"})}),getApiV1AppsByAppIdData:e.query({query:e=>({url:`/api/v1/apps/${e.appId}/data`,params:{owner:e.owner,tags:e.tags,type:e.type}})}),postApiV1AppsByAppIdData:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data`,method:"POST",body:e.dataCreate})}),putApiV1AppsByAppIdDataAndId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data/${e.id}`,method:"PUT",body:e.dataCreate})}),deleteApiV1AppsByAppIdDataAndId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data/${e.id}`,method:"DELETE"})}),putApiV1AppsByAppIdDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/default`,method:"PUT"})}),putApiV1AppsByAppIdDisable:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/disable`,method:"PUT"})}),putApiV1AppsByAppIdEnable:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/enable`,method:"PUT"})}),getApiV1AppsByAppIdStats:e.query({query:e=>({url:`/api/v1/apps/${e.appId}/stats`})}),putApiV1AppsByAppIdUserDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/user-default`,method:"PUT"})}),deleteApiV1AppsByAppIdUserDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/user-default`,method:"DELETE"})}),getApiV1Block:e.query({query:e=>({url:"/api/v1/block",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1BlockBy:e.query({query:e=>({url:"/api/v1/block/by",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1BlockByUserId:e.mutation({query:e=>({url:`/api/v1/block/${e.userId}`,method:"DELETE"})}),postApiV1BlockByUserId:e.mutation({query:e=>({url:`/api/v1/block/${e.userId}`,method:"POST"})}),getApiV1CustomEmojis:e.query({query:e=>({url:"/api/v1/custom_emojis",params:{category:e.category,lastId:e.lastId,limit:e.limit,offset:e.offset,shortcode:e.shortcode,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1CustomEmojis:e.mutation({query:e=>({url:"/api/v1/custom_emojis",method:"DELETE",params:{category:e.category,shortcode:e.shortcode}})}),postApiV1CustomEmojis:e.mutation({query:e=>({url:"/api/v1/custom_emojis",method:"POST",body:e.emoji,params:{overwrite:e.overwrite}})}),getApiV1CustomEmojisCategories:e.query({query:e=>({url:"/api/v1/custom_emojis/categories",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,q:e.q,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1CustomEmojisExport:e.query({query:e=>({url:"/api/v1/custom_emojis/export",params:{category:e.category}})}),postApiV1CustomEmojisImport:e.mutation({query:e=>({url:"/api/v1/custom_emojis/import",method:"POST",body:e.body,params:{category:e.category,domain:e.domain,overwrite:e.overwrite,visible:e.visible}})}),postApiV1CustomEmojisImportUpload:e.mutation({query:e=>({url:"/api/v1/custom_emojis/import/upload",method:"POST",params:{category:e.category,domain:e.domain,overwrite:e.overwrite,uploadId:e.uploadId,visible:e.visible}})}),getApiV1CustomEmojisSearch:e.query({query:e=>({url:"/api/v1/custom_emojis/search",params:{category:e.category,lastId:e.lastId,limit:e.limit,offset:e.offset,shortcode:e.shortcode,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1CustomEmojisUpload:e.mutation({query:e=>({url:"/api/v1/custom_emojis/upload",method:"POST",params:{category:e.category,domain:e.domain,overwrite:e.overwrite,shortcode:e.shortcode,uploadId:e.uploadId,visible:e.visible}})}),patchApiV1CustomEmojisByShortcode:e.mutation({query:e=>({url:`/api/v1/custom_emojis/${e.shortcode}`,method:"PATCH",body:e.emojiPatchRequest})}),getApiV1Data:e.query({query:e=>({url:"/api/v1/data",params:{owner:e.owner,tags:e.tags,type:e.type}})}),postApiV1Data:e.mutation({query:e=>({url:"/api/v1/data",method:"POST",body:e.dataCreate})}),putApiV1DataById:e.mutation({query:e=>({url:`/api/v1/data/${e.id}`,method:"PUT",body:e.dataCreate})}),deleteApiV1DataById:e.mutation({query:e=>({url:`/api/v1/data/${e.id}`,method:"DELETE"})}),putApiV1Devices:e.mutation({query:e=>({url:"/api/v1/devices",method:"PUT",body:e.deviceRegistrationRequest})}),getApiV1Devices:e.query({query:()=>({url:"/api/v1/devices"})}),deleteApiV1DevicesAll:e.mutation({query:()=>({url:"/api/v1/devices/all",method:"DELETE"})}),getApiV1DevicesVapidPublicKey:e.query({query:()=>({url:"/api/v1/devices/vapid-public-key"})}),deleteApiV1DevicesByDeviceId:e.mutation({query:e=>({url:`/api/v1/devices/${e.deviceId}`,method:"DELETE"})}),getApiV1DomainBlock:e.query({query:e=>({url:"/api/v1/domain-block",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1Drafts:e.query({query:e=>({url:"/api/v1/drafts",params:{ownerId:e.ownerId}})}),postApiV1Drafts:e.mutation({query:e=>({url:"/api/v1/drafts",method:"POST",body:e.createDraftRequest,params:{ownerId:e.ownerId}})}),getApiV1DraftsPostByPostId:e.query({query:e=>({url:`/api/v1/drafts/post/${e.postId}`})}),putApiV1DraftsByDraftId:e.mutation({query:e=>({url:`/api/v1/drafts/${e.draftId}`,method:"PUT",body:e.updateDraftRequest})}),getApiV1DraftsByDraftId:e.query({query:e=>({url:`/api/v1/drafts/${e.draftId}`})}),deleteApiV1DraftsByDraftId:e.mutation({query:e=>({url:`/api/v1/drafts/${e.draftId}`,method:"DELETE"})}),postApiV1DraftsByDraftIdPublish:e.mutation({query:e=>({url:`/api/v1/drafts/${e.draftId}/publish`,method:"POST",params:{htmlContent:e.htmlContent}})}),getApiV1Events:e.query({query:e=>({url:"/api/v1/events",params:{groupId:e.groupId,limit:e.limit,offset:e.offset,organizerId:e.organizerId,username:e.username,withTranslation:e.withTranslation}})}),postApiV1Events:e.mutation({query:e=>({url:"/api/v1/events",method:"POST",body:e.createEvent})}),getApiV1EventsCalendarGByGroupnameIcs:e.query({query:e=>({url:`/api/v1/events/calendar/g/${e.groupname}.ics`})}),getApiV1EventsCalendarPByIdIcs:e.query({query:e=>({url:`/api/v1/events/calendar/p/${e.id}.ics`})}),getApiV1EventsCalendarUByUsernameIcs:e.query({query:e=>({url:`/api/v1/events/calendar/u/${e.username}.ics`})}),getApiV1EventsFollowing:e.query({query:e=>({url:"/api/v1/events/following",params:{limit:e.limit,offset:e.offset,withTranslation:e.withTranslation}})}),getApiV1EventsMy:e.query({query:e=>({url:"/api/v1/events/my",params:{limit:e.limit,notRespondedOnly:e.notRespondedOnly,offset:e.offset,organizedOnly:e.organizedOnly,past:e.past,withTranslation:e.withTranslation}})}),getApiV1EventsSettings:e.query({query:e=>({url:"/api/v1/events/settings",params:{ownerId:e.ownerId}})}),postApiV1EventsSettingsRegeneratePrivateId:e.mutation({query:e=>({url:"/api/v1/events/settings/regeneratePrivateId",method:"POST",params:{ownerId:e.ownerId}})}),postApiV1EventsSettingsUpdate:e.mutation({query:e=>({url:"/api/v1/events/settings/update",method:"POST",body:e.updateEventsSettings,params:{ownerId:e.ownerId}})}),putApiV1EventsByEventId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}`,method:"PUT",body:e.updateEvent})}),getApiV1EventsByEventId:e.query({query:e=>({url:`/api/v1/events/${e.eventId}`,params:{withTranslation:e.withTranslation}})}),deleteApiV1EventsByEventId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}`,method:"DELETE"})}),getApiV1EventsByEventIdIcs:e.query({query:e=>({url:`/api/v1/events/${e.eventId}.ics`})}),postApiV1EventsByEventIdAccept:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/accept`,method:"POST"})}),getApiV1EventsByEventIdAttendees:e.query({query:e=>({url:`/api/v1/events/${e.eventId}/attendees`,params:{limit:e.limit,offset:e.offset}})}),deleteApiV1EventsByEventIdAttendeesAndUserId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/attendees/${e.userId}`,method:"DELETE"})}),postApiV1EventsByEventIdAttendeesAndUserId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/attendees/${e.userId}`,method:"POST"})}),postApiV1EventsByEventIdCancel:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/cancel`,method:"POST"})}),postApiV1EventsByEventIdInterested:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/interested`,method:"POST"})}),postApiV1EventsByEventIdJoin:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/join`,method:"POST"})}),deleteApiV1EventsByEventIdJoinOrInterested:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/joinOrInterested`,method:"DELETE"})}),postApiV1EventsByEventIdMaybe:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/maybe`,method:"POST"})}),getApiV1EventsByEventIdMutual:e.query({query:e=>({url:`/api/v1/events/${e.eventId}/mutual`,params:{limit:e.limit,offset:e.offset}})}),postApiV1EventsByEventIdReject:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/reject`,method:"POST"})}),postApiV1EventsByEventIdTranslate:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/translate`,method:"POST",params:{lang:e.lang}})}),postApiV1FaspClear:e.mutation({query:()=>({url:"/api/v1/fasp/clear",method:"POST"})}),getApiV1FaspDebugV0CallbackCallbacks:e.query({query:()=>({url:"/api/v1/fasp/debug/v0/callback/callbacks"})}),deleteApiV1FaspDebugV0CallbackCallbacksById:e.mutation({query:e=>({url:`/api/v1/fasp/debug/v0/callback/callbacks/${e.id}`,method:"DELETE"})}),postApiV1FaspRegistration:e.mutation({query:e=>({url:"/api/v1/fasp/registration",method:"POST",body:e.registrationRequest})}),postApiV1FaspByProviderIdCapabilities:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/capabilities`,method:"POST",body:e.body})}),postApiV1FaspByProviderIdDebugCall:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/debug-call`,method:"POST",body:e.body})}),getApiV1FaspByProviderIdRegistrationFinish:e.query({query:e=>({url:`/api/v1/fasp/${e.providerId}/registration-finish`})}),postApiV1FaspByProviderIdRegistrationFinish:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/registration-finish`,method:"POST"})}),postApiV1FaspByProviderIdRequestBackfill:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/request_backfill`,method:"POST",params:{category:e.category}})}),postApiV1FederationTokens:e.mutation({query:e=>({url:"/api/v1/federation/tokens",method:"POST",body:e.groupFederationTokenRequest})}),getApiV1Geo:e.query({query:e=>({url:"/api/v1/geo",params:{latitude:e.latitude,longitude:e.longitude}})}),getApiV1Groups:e.query({query:e=>({url:"/api/v1/groups",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1Groups:e.mutation({query:e=>({url:"/api/v1/groups",method:"POST",body:e.groupCreate})}),getApiV1GroupsApps:e.query({query:()=>({url:"/api/v1/groups/apps"})}),getApiV1GroupsInvites:e.query({query:e=>({url:"/api/v1/groups/invites",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1GroupsInvitesByGroupInviteId:e.query({query:e=>({url:`/api/v1/groups/invites/${e.groupInviteId}`})}),getApiV1GroupsMemberByUserId:e.query({query:e=>({url:`/api/v1/groups/member/${e.userId}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsMemberByUserIdGroups:e.query({query:e=>({url:`/api/v1/groups/member/${e.userId}/groups`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsMyGroups:e.query({query:e=>({url:"/api/v1/groups/my-groups",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsNameByGroupname:e.query({query:e=>({url:`/api/v1/groups/name/${e.groupname}`})}),getApiV1GroupsOwned:e.query({query:e=>({url:"/api/v1/groups/owned",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsPinned:e.query({query:e=>({url:"/api/v1/groups/pinned",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsSearch:e.query({query:e=>({url:"/api/v1/groups/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,substring:e.substring,untilId:e.untilId}})}),getApiV1GroupsUsersByUserIdMutual:e.query({query:e=>({url:`/api/v1/groups/users/${e.userId}/mutual`})}),putApiV1GroupsByGroupId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}`,method:"PUT",body:e.groupUpdate})}),getApiV1GroupsByGroupId:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}`})}),deleteApiV1GroupsByGroupId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}`,method:"DELETE"})}),getApiV1GroupsByGroupIdAiAgentsAssignments:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/ai-agents/assignments`,params:{resourceId:e.resourceId,type:e.type}})}),deleteApiV1GroupsByGroupIdAiAgentsAssignments:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/ai-agents/assignments`,method:"DELETE",params:{assignmentId:e.assignmentId}})}),postApiV1GroupsByGroupIdAiAgentsAssignments:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/ai-agents/assignments`,method:"POST",body:e.aiAgentAssignmentCreate})}),getApiV1GroupsByGroupIdApps:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/apps`})}),deleteApiV1GroupsByGroupIdAppsAndAppId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/apps/${e.appId}`,method:"DELETE"})}),putApiV1GroupsByGroupIdAppsAndAppId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/apps/${e.appId}`,method:"PUT"})}),putApiV1GroupsByGroupIdBranding:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/branding`,method:"PUT",body:e.groupBrandingUpdate})}),getApiV1GroupsByGroupIdCategories:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/categories`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1GroupsByGroupIdCategories:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/categories`,method:"POST",body:e.categoryCreate})}),getApiV1GroupsByGroupIdCategoriesNameAndCategoryName:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/categories/name/${e.categoryName}`})}),putApiV1GroupsByGroupIdCategoriesAndCategoryId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/categories/${e.categoryId}`,method:"PUT",body:e.categoryUpdate})}),getApiV1GroupsByGroupIdCategoriesAndCategoryId:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/categories/${e.categoryId}`})}),deleteApiV1GroupsByGroupIdCategoriesAndCategoryId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/categories/${e.categoryId}`,method:"DELETE"})}),getApiV1GroupsByGroupIdChannels:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/channels`})}),postApiV1GroupsByGroupIdChannels:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/channels`,method:"POST",body:e.body,params:{htmlContent:e.htmlContent}})}),getApiV1GroupsByGroupIdChannelsDefault:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/default`})}),getApiV1GroupsByGroupIdChannelsLookup:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/lookup`,params:{full:e.full,username:e.username,htmlContent:e.htmlContent}})}),getApiV1GroupsByGroupIdChannelsMain:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/main`,params:{htmlContent:e.htmlContent}})}),getApiV1GroupsByGroupIdChannelsPublic:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/public`})}),putApiV1GroupsByGroupIdChannelsAndChannelId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/${e.channelId}`,method:"PUT",body:e.body,params:{htmlContent:e.htmlContent}})}),getApiV1GroupsByGroupIdChannelsAndChannelId:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/${e.channelId}`,params:{full:e.full,htmlContent:e.htmlContent}})}),deleteApiV1GroupsByGroupIdChannelsAndChannelId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/${e.channelId}`,method:"DELETE"})}),putApiV1GroupsByGroupIdChannelsAndChannelIdDefault:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/${e.channelId}/default`,method:"PUT",params:{isDefault:e.isDefault,htmlContent:e.htmlContent}})}),putApiV1GroupsByGroupIdChannelsAndChannelIdMain:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/${e.channelId}/main`,method:"PUT",params:{htmlContent:e.htmlContent}})}),putApiV1GroupsByGroupIdChannelsAndChannelIdUsername:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/${e.channelId}/username`,method:"PUT",body:e.body,params:{htmlContent:e.htmlContent}})}),postApiV1GroupsByGroupIdFederationToken:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/federation-token`,method:"POST"})}),putApiV1GroupsByGroupIdForum:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/forum`,method:"PUT",body:e.forumUpdate})}),getApiV1GroupsByGroupIdForum:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/forum`})}),deleteApiV1GroupsByGroupIdForum:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/forum`,method:"DELETE"})}),deleteApiV1GroupsByGroupIdForumHard:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/forum/hard`,method:"DELETE"})}),getApiV1GroupsByGroupIdForumStats:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/forum/stats`})}),getApiV1GroupsByGroupIdForumTags:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/forum/tags`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsByGroupIdForumTagsSearch:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/forum/tags/search`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,q:e.q,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsByGroupIdInvites:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/invites`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),postApiV1GroupsByGroupIdInvites:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/invites`,method:"POST",body:e.groupInviteCreate})}),deleteApiV1GroupsByGroupIdInvitesAndGroupInviteId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/invites/${e.groupInviteId}`,method:"DELETE"})}),postApiV1GroupsByGroupIdInvitesAndGroupInviteIdAccept:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/invites/${e.groupInviteId}/accept`,method:"POST"})}),postApiV1GroupsByGroupIdInvitesAndGroupInviteIdReject:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/invites/${e.groupInviteId}/reject`,method:"POST"})}),postApiV1GroupsByGroupIdJoin:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/join`,method:"POST",params:{answerToken:e.answerToken}})}),deleteApiV1GroupsByGroupIdJoin:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/join`,method:"DELETE"})}),getApiV1GroupsByGroupIdJoinRequests:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/join-requests`,params:{createdFrom:e.createdFrom,createdTo:e.createdTo,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId,username:e.username}})}),deleteApiV1GroupsByGroupIdJoinRequestsAndGroupJoinRequestId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/join-requests/${e.groupJoinRequestId}`,method:"DELETE",params:{purge:e.purge,reason:e.reason}})}),putApiV1GroupsByGroupIdJoinRequestsAndGroupJoinRequestId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/join-requests/${e.groupJoinRequestId}`,method:"PUT",params:{reason:e.reason}})}),putApiV1GroupsByGroupIdMemberSettings:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/member-settings`,method:"PUT",body:e.groupMemberSettings})}),getApiV1GroupsByGroupIdMemberSettings:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/member-settings`,params:{keys:e.keys}})}),deleteApiV1GroupsByGroupIdMemberSettings:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/member-settings`,method:"DELETE",params:{keys:e.keys}})}),getApiV1GroupsByGroupIdMembers:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/members`,params:{actorType:e.actorType,createdAfter:e.createdAfter,displayName:e.displayName,domain:e.domain,limit:e.limit,offset:e.offset,order:e.order,role:e.role,sort:e.sort,username:e.username}})}),postApiV1GroupsByGroupIdMembers:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members`,method:"POST",body:e.groupMemberCreate})}),getApiV1GroupsByGroupIdMembersSearch:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/members/search`,params:{actorType:e.actorType,country:e.country,createdAfter:e.createdAfter,displayName:e.displayName,domain:e.domain,ip:e.ip,lastId:e.lastId,limit:e.limit,offset:e.offset,role:e.role,roles:e.roles,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,username:e.username}})}),putApiV1GroupsByGroupIdMembersAndMemberId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members/${e.memberId}`,method:"PUT",body:e.groupMemberUpdate})}),deleteApiV1GroupsByGroupIdMembersAndMemberId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members/${e.memberId}`,method:"DELETE",params:{reason:e.reason}})}),deleteApiV1GroupsByGroupIdMembership:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/membership`,method:"DELETE"})}),getApiV1GroupsByGroupIdMembership:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/membership`})}),deleteApiV1GroupsByGroupIdPin:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/pin`,method:"DELETE"})}),putApiV1GroupsByGroupIdPin:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/pin`,method:"PUT",params:{pin:e.pin}})}),getApiV1GroupsByGroupIdQuestions:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/questions`})}),postApiV1GroupsByGroupIdQuestions:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/questions`,method:"POST",body:e.questionCreate})}),postApiV1GroupsByGroupIdQuestionsAnswers:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/questions/answers`,method:"POST",body:e.questionAnswerCreate})}),putApiV1GroupsByGroupIdQuestionsAndQuestionId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/questions/${e.questionId}`,method:"PUT",body:e.questionUpdate})}),deleteApiV1GroupsByGroupIdQuestionsAndQuestionId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/questions/${e.questionId}`,method:"DELETE"})}),postApiV1GroupsByGroupIdReportsDeletePosts:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/reports/delete-posts`,method:"POST",body:e.body})}),getApiV1GroupsByGroupIdReportsList:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/reports/list`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,open:e.open,postId:e.postId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId}})}),getApiV1GroupsByGroupIdReportsAndReportId:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/reports/${e.reportId}`})}),postApiV1GroupsByGroupIdReportsAndReportIdAddNote:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/reports/${e.reportId}/add-note`,method:"POST",body:e.body})}),postApiV1GroupsByGroupIdReportsAndReportIdRemoveNote:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/reports/${e.reportId}/remove-note`,method:"POST",params:{index:e.index}})}),postApiV1GroupsByGroupIdReportsAndReportIdReopen:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/reports/${e.reportId}/reopen`,method:"POST"})}),postApiV1GroupsByGroupIdReportsAndReportIdResolve:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/reports/${e.reportId}/resolve`,method:"POST"})}),getApiV1GroupsByGroupIdRules:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/rules`})}),postApiV1GroupsByGroupIdRules:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/rules`,method:"POST",params:{hint:e.hint,ordering:e.ordering,text:e.text}})}),postApiV1GroupsByGroupIdRulesReorder:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/rules/reorder`,method:"POST",body:e.body})}),deleteApiV1GroupsByGroupIdRulesAndId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/rules/${e.id}`,method:"DELETE"})}),putApiV1GroupsByGroupIdRulesAndRuleId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/rules/${e.ruleId}`,method:"PUT",body:e.ruleUpdate})}),putApiV1GroupsByGroupIdSettings:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/settings`,method:"PUT",body:e.groupSettings})}),getApiV1GroupsByGroupIdSettings:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/settings`,params:{keys:e.keys}})}),deleteApiV1GroupsByGroupIdSettings:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/settings`,method:"DELETE",params:{keys:e.keys}})}),getApiV1GroupsByGroupIdUsers:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/users`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,order:e.order,role:e.role,sort:e.sort,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1Import:e.query({query:()=>({url:"/api/v1/import"})}),postApiV1Import:e.mutation({query:e=>({url:"/api/v1/import",method:"POST",body:e.body,params:{overwrite:e.overwrite,type:e.type}})}),postApiV1ImportStartById:e.mutation({query:e=>({url:`/api/v1/import/start/${e.id}`,method:"POST"})}),getApiV1ImportById:e.query({query:e=>({url:`/api/v1/import/${e.id}`})}),getApiV1Instance:e.query({query:()=>({url:"/api/v1/instance"})}),getApiV1InstanceCountries:e.query({query:()=>({url:"/api/v1/instance/countries"})}),getApiV1InstanceDomains:e.query({query:e=>({url:"/api/v1/instance/domains",params:{domain:e.domain,limit:e.limit,software:e.software}})}),getApiV1InstanceExtendedDescription:e.query({query:()=>({url:"/api/v1/instance/extended_description"})}),getApiV1InstanceSupportedLanguages:e.query({query:()=>({url:"/api/v1/instance/supported_languages"})}),getApiV1InstanceTimezones:e.query({query:()=>({url:"/api/v1/instance/timezones"})}),getApiV1JobsListJobs:e.query({query:e=>({url:"/api/v1/jobs/list-jobs",params:{limit:e.limit,offset:e.offset}})}),getApiV1JobsListStats:e.query({query:e=>({url:"/api/v1/jobs/list-stats",params:{queue:e.queue}})}),getApiV1JobsListStatsAll:e.query({query:()=>({url:"/api/v1/jobs/list-stats-all"})}),getApiV1JobsLists:e.query({query:e=>({url:"/api/v1/jobs/lists",params:{limit:e.limit,listKind:e.listKind,offset:e.offset,queue:e.queue}})}),getApiV1JobsStats:e.query({query:()=>({url:"/api/v1/jobs/stats"})}),getApiV1JobsStatsPerDay:e.query({query:e=>({url:"/api/v1/jobs/stats-per-day",params:{lastDays:e.lastDays,queue:e.queue}})}),getApiV1Links:e.query({query:e=>({url:"/api/v1/links",params:{url:e.url}})}),getApiV1Lists:e.query({query:()=>({url:"/api/v1/lists"})}),postApiV1Lists:e.mutation({query:e=>({url:"/api/v1/lists",method:"POST",body:e.userListCreate})}),putApiV1ListsByListId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}`,method:"PUT",body:e.userListCreate})}),getApiV1ListsByListId:e.query({query:e=>({url:`/api/v1/lists/${e.listId}`})}),deleteApiV1ListsByListId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}`,method:"DELETE"})}),getApiV1ListsByListIdUsers:e.query({query:e=>({url:`/api/v1/lists/${e.listId}/users`})}),deleteApiV1ListsByListIdUsersAndUserId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}/users/${e.userId}`,method:"DELETE"})}),postApiV1ListsByListIdUsersAndUserId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}/users/${e.userId}`,method:"POST"})}),putApiV1Markdown:e.mutation({query:e=>({url:"/api/v1/markdown",method:"PUT",body:e.body,params:{skipAutolink:e.skipAutolink}})}),getApiV1Metrics:e.query({query:e=>({url:"/api/v1/metrics",params:{from:e.from,period:e.period,to:e.to}})}),getApiV1MetricsTotals:e.query({query:()=>({url:"/api/v1/metrics/totals"})}),getApiV1Mute:e.query({query:e=>({url:"/api/v1/mute",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1MuteByUserId:e.mutation({query:e=>({url:`/api/v1/mute/${e.userId}`,method:"DELETE"})}),postApiV1MuteByUserId:e.mutation({query:e=>({url:`/api/v1/mute/${e.userId}`,method:"POST",params:{duration:e.duration}})}),getApiV1NamesCheck:e.query({query:e=>({url:"/api/v1/names/check",params:{name:e.name,nameScope:e.nameScope,scope:e.scope}})}),putApiV1Notes:e.mutation({query:e=>({url:"/api/v1/notes",method:"PUT",body:e.noteUpdate})}),getApiV1Notes:e.query({query:e=>({url:"/api/v1/notes",params:{userIds:e.userIds}})}),deleteApiV1NotesByUserId:e.mutation({query:e=>({url:`/api/v1/notes/${e.userId}`,method:"DELETE"})}),getApiV1Notifications:e.query({query:e=>({url:"/api/v1/notifications",params:{excludeTypes:e.excludeTypes,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,types:e.types,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1NotificationsCount:e.query({query:e=>({url:"/api/v1/notifications/count",params:{excludeTypes:e.excludeTypes,status:e.status,types:e.types}})}),postApiV1NotificationsMarkAll:e.mutation({query:e=>({url:"/api/v1/notifications/mark-all",method:"POST",params:{status:e.status}})}),getApiV1NotificationsById:e.query({query:e=>({url:`/api/v1/notifications/${e.id}`,params:{htmlContent:e.htmlContent}})}),postApiV1NotificationsByIdMark:e.mutation({query:e=>({url:`/api/v1/notifications/${e.id}/mark`,method:"POST",params:{status:e.status,htmlContent:e.htmlContent}})}),getApiV1Passkeys:e.query({query:()=>({url:"/api/v1/passkeys"})}),getApiV1PasskeysBeginAuth:e.query({query:e=>({url:"/api/v1/passkeys/begin-auth",params:{username:e.username}})}),getApiV1PasskeysBeginRegister:e.query({query:()=>({url:"/api/v1/passkeys/begin-register"})}),postApiV1PasskeysFinishAuth:e.mutation({query:e=>({url:"/api/v1/passkeys/finish-auth",method:"POST",body:e.jsonObject})}),postApiV1PasskeysFinishRegister:e.mutation({query:e=>({url:"/api/v1/passkeys/finish-register",method:"POST",body:e.jsonObject})}),deleteApiV1PasskeysByCredentialId:e.mutation({query:e=>({url:`/api/v1/passkeys/${e.credentialId}`,method:"DELETE"})}),postApiV1PollsByPollIdRefresh:e.mutation({query:e=>({url:`/api/v1/polls/${e.pollId}/refresh`,method:"POST"})}),postApiV1PollsByPollIdVote:e.mutation({query:e=>({url:`/api/v1/polls/${e.pollId}/vote`,method:"POST",body:e.body})}),getApiV1Posts:e.query({query:e=>({url:"/api/v1/posts",params:{all:e.all,bookmarkedOnly:e.bookmarkedOnly,forumTags:e.forumTags,includeBookmarkStatus:e.includeBookmarkStatus,includeComments:e.includeComments,includeFollowStatus:e.includeFollowStatus,includePinnedStatus:e.includePinnedStatus,includeReply:e.includeReply,lastId:e.lastId,limit:e.limit,limitFirstLevelComments:e.limitFirstLevelComments,limitSecondLevelComments:e.limitSecondLevelComments,listId:e.listId,maxLevel:e.maxLevel,minLevel:e.minLevel,offset:e.offset,ownerId:e.ownerId,pinned:e.pinned,repostKind:e.repostKind,repostOf:e.repostOf,repostsOnly:e.repostsOnly,search:e.search,skipReposts:e.skipReposts,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,userId:e.userId,username:e.username,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),postApiV1Posts:e.mutation({query:e=>({url:"/api/v1/posts",method:"POST",body:e.createPost,params:{ownerId:e.ownerId,htmlContent:e.htmlContent}})}),getApiV1PostsBookmarked:e.query({query:e=>({url:"/api/v1/posts/bookmarked",params:{includeComments:e.includeComments,includeReply:e.includeReply,lastId:e.lastId,limit:e.limit,my:e.my,offset:e.offset,ownerId:e.ownerId,search:e.search,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsFeedsFollowing:e.query({query:e=>({url:"/api/v1/posts/feeds/following",params:{ignoreCache:e.ignoreCache,includeBookmarkStatus:e.includeBookmarkStatus,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,htmlContent:e.htmlContent}})}),getApiV1PostsFeedsPublic:e.query({query:e=>({url:"/api/v1/posts/feeds/public",params:{includeBookmarkStatus:e.includeBookmarkStatus,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,local:e.local,offset:e.offset,skipReposts:e.skipReposts,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),getApiV1PostsLiked:e.query({query:e=>({url:"/api/v1/posts/liked",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,ownerId:e.ownerId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsMentioned:e.query({query:e=>({url:"/api/v1/posts/mentioned",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,ownerId:e.ownerId,private:e.private,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsMy:e.query({query:e=>({url:"/api/v1/posts/my",params:{bookmarkedOnly:e.bookmarkedOnly,includeBookmarkStatus:e.includeBookmarkStatus,includeComments:e.includeComments,lastId:e.lastId,limit:e.limit,offset:e.offset,ownerId:e.ownerId,repostsOnly:e.repostsOnly,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsPins:e.query({query:e=>({url:"/api/v1/posts/pins",params:{ownerId:e.ownerId,postOnly:e.postOnly}})}),deleteApiV1PostsPinsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/pins/${e.postId}`,method:"DELETE"})}),postApiV1PostsPinsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/pins/${e.postId}`,method:"POST"})}),getApiV1PostsReplies:e.query({query:e=>({url:"/api/v1/posts/replies",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,ownerId:e.ownerId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId,username:e.username,htmlContent:e.htmlContent}})}),getApiV1PostsSubscribe:e.query({query:e=>({url:"/api/v1/posts/subscribe",params:{all:e.all,ownerId:e.ownerId,htmlContent:e.htmlContent}})}),putApiV1PostsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}`,method:"PUT",body:e.createPost,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostId:e.query({query:e=>({url:`/api/v1/posts/${e.postId}`,params:{includeBookmarkStatus:e.includeBookmarkStatus,limitFirstLevelComments:e.limitFirstLevelComments,limitSecondLevelComments:e.limitSecondLevelComments,maxLevel:e.maxLevel,minLevel:e.minLevel,withComments:e.withComments,withParents:e.withParents,withRepostedBy:e.withRepostedBy,withRootParent:e.withRootParent,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}`,method:"DELETE"})}),getApiV1PostsByPostIdActiveUsers:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/active-users`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1PostsByPostIdBookmark:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/bookmark`,method:"DELETE"})}),postApiV1PostsByPostIdBookmark:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/bookmark`,method:"POST"})}),getApiV1PostsByPostIdComments:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/comments`,params:{lastId:e.lastId,limit:e.limit,limitFirstLevelComments:e.limitFirstLevelComments,maxLevel:e.maxLevel,minLevel:e.minLevel,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),postApiV1PostsByPostIdComments:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments`,method:"POST",body:e.createPost,params:{htmlContent:e.htmlContent}})}),putApiV1PostsByPostIdCommentsAndCommentId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments/${e.commentId}`,method:"PUT",body:e.createPost,params:{htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostIdCommentsAndCommentId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments/${e.commentId}`,method:"DELETE"})}),postApiV1PostsByPostIdDetach:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/detach`,method:"POST"})}),postApiV1PostsByPostIdDownvote:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/downvote`,method:"POST",params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostIdEdits:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/edits`,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostIdLikes:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,params:{includeFollowedStatus:e.includeFollowedStatus,includeFollowingStatus:e.includeFollowingStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostIdLikes:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,method:"DELETE"})}),postApiV1PostsByPostIdLikes:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,method:"POST"})}),postApiV1PostsByPostIdRefreshCard:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/refresh-card`,method:"POST"})}),deleteApiV1PostsByPostIdRepost:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/repost`,method:"DELETE"})}),postApiV1PostsByPostIdRepost:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/repost`,method:"POST",body:e.createPost,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostIdReposts:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/reposts`,params:{includeFollowedStatus:e.includeFollowedStatus,includeFollowingStatus:e.includeFollowingStatus,kind:e.kind,lastId:e.lastId,limit:e.limit,offset:e.offset,skipDuplicates:e.skipDuplicates,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),postApiV1PostsByPostIdSubscribe:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/subscribe`,method:"POST"})}),deleteApiV1PostsByPostIdSubscribe:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/subscribe`,method:"DELETE"})}),postApiV1PostsByPostIdTrackView:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/track-view`,method:"POST"})}),postApiV1PostsByPostIdTranslate:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/translate`,method:"POST",params:{htmlContent:e.htmlContent,lang:e.lang}})}),postApiV1PostsByPostIdUpvote:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/upvote`,method:"POST",params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostIdVotes:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/votes`,params:{htmlContent:e.htmlContent}})}),getApiV1Rbac:e.query({query:()=>({url:"/api/v1/rbac"})}),getApiV1RbacActorsByActorIdPermissions:e.query({query:e=>({url:`/api/v1/rbac/actors/${e.actorId}/permissions`,params:{targetScope:e.targetScope}})}),getApiV1RbacActorsByActorIdRoles:e.query({query:e=>({url:`/api/v1/rbac/actors/${e.actorId}/roles`,params:{targetScope:e.targetScope}})}),putApiV1RbacRolesByRoleId:e.mutation({query:e=>({url:`/api/v1/rbac/roles/${e.roleId}`,method:"PUT",body:e.rbacRoleTemplate})}),getApiV1RbacScopesByScopeRoles:e.query({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles`})}),postApiV1RbacScopesByScopeRoles:e.mutation({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles`,method:"POST",body:e.rbacRoleTemplate})}),deleteApiV1RbacScopesByScopeRolesAndRoleName:e.mutation({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles/${e.roleName}`,method:"DELETE"})}),getApiV1RbacByResource:e.query({query:e=>({url:`/api/v1/rbac/${e.resource}`})}),postApiV1Reports:e.mutation({query:e=>({url:"/api/v1/reports",method:"POST",body:e.createReport})}),putApiV1Rules:e.mutation({query:e=>({url:"/api/v1/rules",method:"PUT",body:e.rule})}),getApiV1Rules:e.query({query:()=>({url:"/api/v1/rules"})}),postApiV1Rules:e.mutation({query:e=>({url:"/api/v1/rules",method:"POST",body:e.ruleCreate})}),postApiV1RulesReorder:e.mutation({query:e=>({url:"/api/v1/rules/reorder",method:"POST",body:e.body})}),deleteApiV1RulesById:e.mutation({query:e=>({url:`/api/v1/rules/${e.id}`,method:"DELETE"})}),getApiV1Search:e.query({query:e=>({url:"/api/v1/search",params:{actorType:e.actorType,fasp:e.fasp,faspHydrated:e.faspHydrated,filter:e.filter,followStatus:e.followStatus,followers:e.followers,following:e.following,groupId:e.groupId,groupMemberRole:e.groupMemberRole,includeRelations:e.includeRelations,lastId:e.lastId,limit:e.limit,offset:e.offset,ownerId:e.ownerId,q:e.q,resolve:e.resolve,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withComments:e.withComments,withParent:e.withParent,htmlContent:e.htmlContent}})}),deleteApiV1SessionsAll:e.mutation({query:()=>({url:"/api/v1/sessions/all",method:"DELETE"})}),getApiV1SessionsList:e.query({query:()=>({url:"/api/v1/sessions/list"})}),putApiV1SessionsRevokeAll:e.mutation({query:()=>({url:"/api/v1/sessions/revoke/all",method:"PUT"})}),putApiV1SessionsRevokeBySessionKey:e.mutation({query:e=>({url:`/api/v1/sessions/revoke/${e.sessionKey}`,method:"PUT"})}),deleteApiV1SessionsBySessionKey:e.mutation({query:e=>({url:`/api/v1/sessions/${e.sessionKey}`,method:"DELETE"})}),putApiV1Settings:e.mutation({query:e=>({url:"/api/v1/settings",method:"PUT",body:e.platformSettings})}),getApiV1Settings:e.query({query:e=>({url:"/api/v1/settings",params:{keys:e.keys}})}),deleteApiV1Settings:e.mutation({query:e=>({url:"/api/v1/settings",method:"DELETE",params:{keys:e.keys}})}),getApiV1SettingsNames:e.query({query:e=>({url:"/api/v1/settings/names",params:{type:e.type}})}),putApiV1SettingsUser:e.mutation({query:e=>({url:"/api/v1/settings/user",method:"PUT",body:e.userSettings})}),getApiV1SettingsUser:e.query({query:e=>({url:"/api/v1/settings/user",params:{keys:e.keys}})}),deleteApiV1SettingsUser:e.mutation({query:e=>({url:"/api/v1/settings/user",method:"DELETE",params:{keys:e.keys}})}),getApiV1TagsFeatured:e.query({query:e=>({url:"/api/v1/tags/featured",params:{scope:e.scope,userId:e.userId}})}),deleteApiV1TagsFeaturedByName:e.mutation({query:e=>({url:`/api/v1/tags/featured/${e.name}`,method:"DELETE",params:{scope:e.scope}})}),postApiV1TagsFeaturedByName:e.mutation({query:e=>({url:`/api/v1/tags/featured/${e.name}`,method:"POST",params:{scope:e.scope}})}),postApiV1TagsFollowByName:e.mutation({query:e=>({url:`/api/v1/tags/follow/${e.name}`,method:"POST",params:{scope:e.scope}})}),getApiV1TagsFollowed:e.query({query:e=>({url:"/api/v1/tags/followed",params:{scope:e.scope}})}),putApiV1TagsList:e.mutation({query:e=>({url:"/api/v1/tags/list",method:"PUT",body:e.body,params:{scope:e.scope,soft:e.soft,type:e.type}})}),patchApiV1TagsList:e.mutation({query:e=>({url:"/api/v1/tags/list",method:"PATCH",body:e.body,params:{scope:e.scope,soft:e.soft,type:e.type}})}),getApiV1TagsList:e.query({query:e=>({url:"/api/v1/tags/list",params:{scope:e.scope,soft:e.soft,type:e.type}})}),deleteApiV1TagsList:e.mutation({query:e=>({url:"/api/v1/tags/list",method:"DELETE",body:e.body,params:{scope:e.scope,soft:e.soft,type:e.type}})}),putApiV1TagsPolicy:e.mutation({query:e=>({url:"/api/v1/tags/policy",method:"PUT",body:e.setTagPolicyRequest,params:{scope:e.scope}})}),getApiV1TagsPolicy:e.query({query:e=>({url:"/api/v1/tags/policy",params:{scope:e.scope}})}),postApiV1TagsReport:e.mutation({query:e=>({url:"/api/v1/tags/report",method:"POST",body:e.createTagReportRequest,params:{name:e.name,scope:e.scope}})}),getApiV1TagsReports:e.query({query:e=>({url:"/api/v1/tags/reports",params:{scope:e.scope}})}),getApiV1TagsSearch:e.query({query:e=>({url:"/api/v1/tags/search",params:{limit:e.limit,name:e.name,offset:e.offset,scope:e.scope}})}),getApiV1TagsTrending:e.query({query:e=>({url:"/api/v1/tags/trending",params:{limit:e.limit,offset:e.offset,scope:e.scope,sortBy:e.sortBy,sortOrder:e.sortOrder}})}),postApiV1TagsUnfollowByName:e.mutation({query:e=>({url:`/api/v1/tags/unfollow/${e.name}`,method:"POST",params:{scope:e.scope}})}),getApiV1TagsByName:e.query({query:e=>({url:`/api/v1/tags/${e.name}`,params:{historySince:e.historySince,scope:e.scope}})}),postApiV1TranslateText:e.mutation({query:e=>({url:"/api/v1/translate/text",method:"POST",body:e.translationRequest})}),getApiV1TrendsLinks:e.query({query:()=>({url:"/api/v1/trends/links"})}),getApiV1TrendsPosts:e.query({query:e=>({url:"/api/v1/trends/posts",params:{htmlContent:e.htmlContent}})}),getApiV1TrendsTags:e.query({query:e=>({url:"/api/v1/trends/tags",params:{scope:e.scope}})}),postApiV1Uploads:e.mutation({query:e=>({url:"/api/v1/uploads",method:"POST",body:e.createUpload})}),postApiV1UploadsBatch:e.mutation({query:e=>({url:"/api/v1/uploads/batch",method:"POST",body:e.body})}),postApiV1UploadsList:e.mutation({query:e=>({url:"/api/v1/uploads/list",method:"POST",body:e.uploadList})}),getApiV1UploadsSearch:e.query({query:e=>({url:"/api/v1/uploads/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,uploadType:e.uploadType}})}),getApiV1UploadsUsages:e.query({query:e=>({url:"/api/v1/uploads/usages",params:{ids:e.ids}})}),getApiV1UploadsById:e.query({query:e=>({url:`/api/v1/uploads/${e.id}`})}),deleteApiV1UploadsById:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}`,method:"DELETE"})}),postApiV1UploadsByIdMeta:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/meta`,method:"POST",body:e.body})}),putApiV1UploadsByIdMeta:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/meta`,method:"PUT",body:e.body})}),postApiV1UploadsByIdPrivacy:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/privacy`,method:"POST",body:e.updateUploadPrivacy})}),postApiV1UploadsByIdTags:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/tags`,method:"POST",body:e.body})}),putApiV1UploadsByIdTags:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/tags`,method:"PUT",body:e.body})}),postApiV1UploadsByIdThumbnail:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/thumbnail`,method:"POST",body:e.changeVideoThumbnail})}),getApiV1UserAlias:e.query({query:()=>({url:"/api/v1/user-alias"})}),deleteApiV1UserAlias:e.mutation({query:e=>({url:"/api/v1/user-alias",method:"DELETE",params:{uri:e.uri}})}),postApiV1UserAlias:e.mutation({query:e=>({url:"/api/v1/user-alias",method:"POST",params:{acct:e.acct}})}),getApiV1UserDomainBlock:e.query({query:()=>({url:"/api/v1/user-domain-block"})}),deleteApiV1UserDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/user-domain-block/${e.domain}`,method:"DELETE"})}),postApiV1UserDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/user-domain-block/${e.domain}`,method:"POST"})}),deleteApiV1Users:e.mutation({query:e=>({url:"/api/v1/users",method:"DELETE",params:{id:e.id,name:e.name}})}),postApiV1Users:e.mutation({query:e=>({url:"/api/v1/users",method:"POST",body:e.userCreate,params:{htmlContent:e.htmlContent}})}),getApiV1Users:e.query({query:e=>({url:"/api/v1/users",params:{full:e.full,includeBlockedByStatus:e.includeBlockedByStatus,includeBlockedStatus:e.includeBlockedStatus,includeFollowedStatus:e.includeFollowedStatus,includeFollowingStatus:e.includeFollowingStatus,includeMutedStatus:e.includeMutedStatus,relations:e.relations,username:e.username,htmlContent:e.htmlContent}})}),getApiV1UsersConnections:e.query({query:e=>({url:"/api/v1/users/connections",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),postApiV1UsersFollowByUsername:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}`,method:"POST",params:{domain:e.domain,mutual:e.mutual,scheme:e.scheme}})}),postApiV1UsersFollowByUsernameAccept:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/accept`,method:"POST"})}),postApiV1UsersFollowByUsernamePend:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/pend`,method:"POST"})}),postApiV1UsersFollowByUsernameReject:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/reject`,method:"POST"})}),postApiV1UsersFollowByUsernameUndo:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/undo`,method:"POST",params:{domain:e.domain,mutual:e.mutual,scheme:e.scheme}})}),getApiV1UsersFollowees:e.query({query:e=>({url:"/api/v1/users/followees",params:{anyStatus:e.anyStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,q:e.q,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersFollowers:e.query({query:e=>({url:"/api/v1/users/followers",params:{anyStatus:e.anyStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,q:e.q,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteLinks:e.query({query:e=>({url:"/api/v1/users/invite-links",params:{active:e.active,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1UsersInviteLinks:e.mutation({query:e=>({url:"/api/v1/users/invite-links",method:"POST",body:e.signupInviteLinkCreate})}),putApiV1UsersInviteLinksDeactivateByCode:e.mutation({query:e=>({url:`/api/v1/users/invite-links/deactivate/${e.code}`,method:"PUT"})}),getApiV1UsersProfile:e.query({query:e=>({url:"/api/v1/users/profile",params:{htmlContent:e.htmlContent}})}),getApiV1UsersRelationships:e.query({query:e=>({url:"/api/v1/users/relationships",params:{filter:e.filter,targets:e.targets}})}),getApiV1UsersRemoteByUserNameFullFollowers:e.query({query:e=>({url:`/api/v1/users/remote/${e.userNameFull}/followers`,params:{limit:e.limit,offset:e.offset}})}),getApiV1UsersRemoteByUserNameFullFollowing:e.query({query:e=>({url:`/api/v1/users/remote/${e.userNameFull}/following`,params:{limit:e.limit,offset:e.offset}})}),getApiV1UsersRenameHistory:e.query({query:()=>({url:"/api/v1/users/rename-history"})}),putApiV1UsersByUserId:e.mutation({query:e=>({url:`/api/v1/users/${e.userId}`,method:"PUT",body:e.userUpdate,params:{htmlContent:e.htmlContent}})}),getApiV1UsersByUserId:e.query({query:e=>({url:`/api/v1/users/${e.userId}`,params:{full:e.full,includeBlockedByStatus:e.includeBlockedByStatus,includeBlockedStatus:e.includeBlockedStatus,includeFollowedStatus:e.includeFollowedStatus,includeFollowingStatus:e.includeFollowingStatus,includeMutedStatus:e.includeMutedStatus,relations:e.relations,htmlContent:e.htmlContent}})}),getApiV1UsersByUserIdFollowers:e.query({query:e=>({url:`/api/v1/users/${e.userId}/followers`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,q:e.q,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1UsersByUserIdFollowing:e.query({query:e=>({url:`/api/v1/users/${e.userId}/following`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,q:e.q,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),putApiV1UsersByUserIdMedia:e.mutation({query:e=>({url:`/api/v1/users/${e.userId}/media`,method:"PUT",body:e.userUpdateMedia,params:{htmlContent:e.htmlContent}})}),getRoot:e.query({query:e=>({url:"/",params:{format:e.format}})}),getUser:e.query({query:e=>({url:`/@${e.username}`,params:{format:e.format}})}),getUserEvent:e.query({query:e=>({url:`/@${e.username}/events/${e.eventId}`,params:{format:e.format}})}),getUserPost:e.query({query:e=>({url:`/@${e.username}/posts/${e.postId}`,params:{format:e.format}})}),getAbout:e.query({query:e=>({url:"/about",params:{format:e.format}})}),getFeed:e.query({query:e=>({url:"/feed",params:{format:e.format}})}),getFeedDiscover:e.query({query:e=>({url:"/feed/discover",params:{format:e.format}})}),getFeedFollowing:e.query({query:e=>({url:"/feed/following",params:{format:e.format}})}),getGroup:e.query({query:e=>({url:`/g/${e.groupName}`,params:{format:e.format}})}),getGroupChannel:e.query({query:e=>({url:`/g/${e.groupName}/@${e.channelName}`,params:{format:e.format}})}),getGroupChannelPost:e.query({query:e=>({url:`/g/${e.groupName}/@${e.channelName}/posts/${e.postId}`,params:{format:e.format}})}),getGroupEvent:e.query({query:e=>({url:`/g/${e.groupName}/events/${e.eventId}`,params:{format:e.format}})}),getGroupForumCategory:e.query({query:e=>({url:`/g/${e.groupName}/forum/c/${e.categoryName}`,params:{format:e.format}})}),getGroupForumPost:e.query({query:e=>({url:`/g/${e.groupName}/forum/posts/${e.postId}`,params:{format:e.format}})}),getForumTag:e.query({query:e=>({url:`/g/${e.groupName}/forum/tag/${e.tagName}`,params:{format:e.format}})}),getPrivacy:e.query({query:e=>({url:"/privacy",params:{format:e.format}})}),getTerms:e.query({query:e=>({url:"/terms",params:{format:e.format}})})}),overrideExisting:!1}),gX={data:null,isPending:!1,isSuccess:!1},yX=So({name:"userNoHTML",initialState:gX,reducers:{setUser:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectUser:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),DA={data:null,isError:!1,isPending:!1,isSuccess:!1},wX=So({name:"user",initialState:DA,reducers:{reset:e=>{Object.assign(e,DA)}},extraReducers:e=>{e.addCase(xK,((e,{payload:t})=>{e.data=t})).addCase(SK,((e,{payload:t})=>{e.data&&Object.assign(e.data,t||{})})).addCase(bK,((e,{payload:t})=>{e.isSuccess=t})).addCase(_K,((e,{payload:t})=>{e.isPending=t})).addCase(wK,((e,{payload:t})=>{e.isError=t})).addCase(yK,((e,{payload:t})=>{e.error=t})).addCase(EK,((e,{payload:t})=>{var n;null!=(n=e.data)&&n.users&&(e.data.users=e.data.users.map((e=>t.id===e.id?t:e)))}))},selectors:{selectIsError:e=>e.isError,selectError:e=>e.error,selectPending:e=>e.isPending,selectData:e=>e.data,selectAccount:e=>{var t;return null==(t=e.data)?void 0:t.account},selectAccountId:e=>{var t;return null==(t=e.data)?void 0:t.account.id},selectUsers:e=>{var t;return null==(t=e.data)?void 0:t.users},selectUserById:(e,t)=>{var n;return null==(n=e.data)?void 0:n.users.find((({id:e})=>e===t))},selectCurrentUser:e=>{var t;return null==(t=e.data)?void 0:t.users.find((({id:t})=>{var n;return t===(null==(n=e.data)?void 0:n.selectedUserId)}))},selectSelectedUserId:e=>{var t;return null==(t=e.data)?void 0:t.selectedUserId},selectSuccess:e=>e.isSuccess}});var VA;const _X={value:(null==(VA=e$())?void 0:VA.initialState)??null},bX=So({name:"initialState",initialState:_X,reducers:{setInitialState:(e,t)=>{e.value=t.payload},clearInitialState:e=>{e.value=null}},selectors:{selectInitialState:e=>e.value}}),t$=e=>e,o0=Zn(t$,(e=>e.data)),xX=Zn(t$,(e=>e.error)),SX=Zn(t$,(e=>e.isPending)),EX=Zn(o0,(e=>null==e?void 0:e.rules)),CX=Zn(o0,(e=>null==e?void 0:e.contact_account)),$X=Zn(o0,(e=>(null==e?void 0:e.stats)&&Object.fromEntries(Object.entries(e.stats).map((([e,t])=>[e,t??0]))))),IX={data:null,isPending:!1},RX=So({name:"instanceInfo",initialState:IX,reducers:{},extraReducers:e=>{e.addCase(NK,((e,{payload:t})=>{e.data=t})).addCase(MK,((e,{payload:t})=>{e.isPending=t})).addCase(LK,((e,{payload:t})=>{e.error=t}))},selectors:{selectInstanceInfo:o0,selectInstanceInfoError:xX,selectInstanceInfoPending:SX,selectPlatformRules:EX,selectInstanceContacts:CX,selectInstanceStats:$X,selectDescription:e=>{var t;return null==(t=e.data)?void 0:t.description},selectStats:e=>{var t;return null==(t=e.data)?void 0:t.stats},selectRegistrations:e=>{var t;return null==(t=e.data)?void 0:t.configuration.registrations}}}),PX={data:null,isPending:!1,isSuccess:!1},TX=So({name:"profileSettings",initialState:PX,reducers:{setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},extraReducers:e=>{e.addCase(BK,((e,{payload:t})=>{e.data=t}))},selectors:{selectProfileSettings:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),OX={sms:"wellesley.admin.sms",openai:"wellesley.admin.openai",uploads:"wellesley.admin.uploads",captcha:"wellesley.admin.captcha",language:"wellesley.admin.language",mediacache:"wellesley.admin.mediacache",translation:"wellesley.admin.translation",link_service:"wellesley.admin.link_service"},sE={posts:"wellesley.posts",translation:"wellesley.translation",registration:"wellesley.registration",confirmationCode:"wellesley.confirmationCode",uploadsPolicyDoc:"wellesley.uploads.policy.doc",uploadsPolicyAudio:"wellesley.uploads.policy.audio",uploadsPolicyImage:"wellesley.uploads.policy.image",uploadsPolicyVideo:"wellesley.uploads.policy.video",captcha:"wellesley.captcha",access:"wellesley.access",branding:"wellesley.branding",instanceAdmin:"wellesley.instance.admin",legal:"wellesley.instance.legal",domainBlocks:"wellesley.instance.domainBlocks",contacts:"wellesley.instance.contacts"},Rh=e=>(null==e?void 0:e.map((e=>e.value||e)))||[],AX={data:null,isPending:!1},{posts:vS,uploadsPolicyDoc:NA,uploadsPolicyAudio:gS,uploadsPolicyImage:zg,uploadsPolicyVideo:Qm,registration:U3,captcha:kX,instanceAdmin:DX,branding:NX,translation:MX,domainBlocks:LX,access:FX}=sE,{captcha:BX,language:jX,translation:VX,openai:UX,link_service:zX}=OX,up=e=>e.data,WX=Zn(up,(e=>{var t,n,r;return{max_characters:(null==(t=null==e?void 0:e[vS])?void 0:t.max_characters)||0,max_media_attachments:(null==(n=null==e?void 0:e[vS])?void 0:n.max_media_attachments)||0,max_pins:(null==(r=null==e?void 0:e[vS])?void 0:r.max_pins)||0}})),n$=Zn(up,(e=>{var t,n,r;return{...null==e?void 0:e[zg],maxSize:(null==(t=null==e?void 0:e[zg])?void 0:t.maxSize)||0,maxMatrix:(null==(n=null==e?void 0:e[zg])?void 0:n.maxMatrix)||0,maxResolution:(null==(r=null==e?void 0:e[zg])?void 0:r.maxResolution)||0}})),qX=Zn(n$,(e=>Rh(e.extensions))),r$=Zn(up,(e=>{var t,n,r,o;return{...null==e?void 0:e[Qm],maxSize:(null==(t=null==e?void 0:e[Qm])?void 0:t.maxSize)||0,maxMatrix:(null==(n=null==e?void 0:e[Qm])?void 0:n.maxMatrix)||0,maxDuration:(null==(r=null==e?void 0:e[Qm])?void 0:r.maxDuration)||0,maxResolution:(null==(o=null==e?void 0:e[Qm])?void 0:o.maxResolution)||0}})),GX=Zn(r$,(e=>Rh(e.extensions))),z3=Zn(up,(e=>{var t,n;return{...null==e?void 0:e[gS],maxSize:null==(t=null==e?void 0:e[gS])?void 0:t.maxSize,keepOriginal:(null==(n=null==e?void 0:e[gS])?void 0:n.keepOriginal)||0}})),W3=Zn(up,(e=>{var t;return{...null==e?void 0:e[NA],maxSize:(null==(t=null==e?void 0:e[NA])?void 0:t.maxSize)||0}})),q3=Zn([n$,r$,z3,W3],((e,t,n,r)=>({IMAGE:Rh(null==e?void 0:e.extensions),VIDEO:Rh(null==t?void 0:t.extensions),AUDIO:Rh(null==n?void 0:n.extensions),DOCUMENT:Rh(null==r?void 0:r.extensions)}))),HX=Zn(q3,(e=>Object.keys(e).reduce(((t,n)=>[...t,...e[n]||[]]),[]))),KX=Zn(up,(e=>{var t;return null==(t=null==e?void 0:e[U3])?void 0:t.invites})),QX=So({name:"platformSettings",initialState:AX,reducers:{setError:(e,t)=>{e.error=t.payload},setPending:(e,t)=>{e.isPending=t.payload}},extraReducers:e=>{e.addCase(FK,((e,{payload:t})=>{e.data={...e.data,...t}}))},selectors:{selectSettings:up,selectPostConfig:WX,selectDocPolicy:W3,selectImagePolicy:n$,selectVideoPolicy:r$,selectAudioPolicy:z3,selectInvitesEnabled:KX,selectImageExtensions:qX,selectVideoExtensions:GX,selectSupportedExtensions:q3,selectFullExtensionsList:HX,selectRegistration:e=>{var t;return null==(t=e.data)?void 0:t[U3]},selectLanguageDetection:e=>{var t;return null==(t=e.data)?void 0:t[jX]},selectLanguageTranslation:e=>{var t;return null==(t=e.data)?void 0:t[VX]},selectOpenai:e=>{var t;return null==(t=e.data)?void 0:t[UX]},selectCaptcha:e=>{var t;return null==(t=e.data)?void 0:t[kX]},selectAdminCaptcha:e=>{var t;return null==(t=e.data)?void 0:t[BX]},selectPlatformTranslation:e=>{var t;return null==(t=e.data)?void 0:t[MX]},selectAccess:e=>{var t;return null==(t=e.data)?void 0:t[FX]},selectBranding:e=>{var t;return null==(t=e.data)?void 0:t[NX]},selectLinkService:e=>{var t;return null==(t=e.data)?void 0:t[zX]},selectInstanceAdmin:e=>{var t;return null==(t=e.data)?void 0:t[DX]},selectLegal:e=>{var t;return null==(t=e.data)?void 0:t[sE.legal]},selectDomainBlocks:e=>{var t;return null==(t=e.data)?void 0:t[LX]},selectContacts:e=>{var t;return null==(t=e.data)?void 0:t[sE.contacts]}}}),MA={data:{userId:"",list:[]},count:{},isPending:!1},YX=e=>e,XX=e=>e.error,JX=e=>e.isPending,ZX=e=>{var t;return null==(t=e.count)?void 0:t.total},eJ=e=>{var t;return null==(t=e.count)?void 0:t.unread},tJ=e=>e.data.userId,o$=Zn(YX,(e=>e.data.list)),nJ=Zn(o$,(e=>null==e?void 0:e.filter((e=>"UNREAD"===e.status)))),rJ=Zn(o$,(e=>null==e?void 0:e.at(-1))),oJ=So({name:"notifications",initialState:MA,reducers:{updateNotification:(e,t)=>{var n;if(!e.data.list)return;const r=t.payload;e.data.list=null==(n=e.data.list)?void 0:n.map((e=>e.id===r.id?{...e,...r}:e))},readAll:e=>{var t;e.data.list&&(e.data.list=null==(t=e.data.list)?void 0:t.map((e=>({...e,status:"READ"}))))}},extraReducers:e=>{e.addCase(PK,((e,t)=>{e.isPending=t.payload})).addCase(IK,((e,t)=>{e.error=t.payload})).addCase(RK,((e,t)=>{const n=t.payload.userId,r=t.payload.list;e.data={userId:n,list:[...e.data.list||[],...r.filter((t=>{var n;return!(null!=(n=e.data.list)&&n.some((e=>e.id===t.id)))}))]}})).addCase(CK,((e,t)=>{e.count.unread=(e.count.unread||0)+1,e.data.list&&(e.data.list=[t.payload,...e.data.list||[]])})).addCase($K,((e,t)=>{e.data.list&&(e.data.list=e.data.list.map((e=>e.id===t.payload.id?{...e,status:t.payload.status}:e)))})).addCase(TK,((e,t)=>{e.count.total=t.payload})).addCase(OK,((e,t)=>{e.count.unread=t.payload})).addCase(kK,(()=>MA)).addCase(DK,((e,t)=>{var n,r,o;const i=t.payload;"UNREAD"===(null==(r=null==(n=e.data.list)?void 0:n.find((e=>e.id===i)))?void 0:r.status)&&e.count.unread&&(e.count.unread-=1),e.data.list=(null==(o=e.data.list)?void 0:o.filter((e=>e.id!==i)))||[]})).addCase(AK,(e=>{e.data.list&&(e.data.list=e.data.list.map((e=>"FOLLOW_REQUEST"===e.type?{...e,followResponse:"Accepted"}:e)))}))},selectors:{selectError:XX,selectIsPending:JX,selectTotalCount:ZX,selectUnreadCount:eJ,selectNotifications:o$,selectUnreadNotifications:nJ,selectLastNotification:rJ,selectNotificationsOwner:tJ}});function iJ(){return!(typeof navigator<"u"&&"boolean"==typeof navigator.onLine)||navigator.onLine}const aJ={isOnline:iJ()},sJ=So({name:"network",initialState:aJ,reducers:{setOnline:(e,{payload:t})=>{e.isOnline=t}},selectors:{selectOnline:e=>e.isOnline}}),uJ=W6(vX,sJ,h3,f2,wX,yX,bX,RX,oJ,TX,QX);Un("app/hydrate");const lJ=()=>window._wlsy_store,G3=(e,t)=>(null!=t&&t.props&&!jf.isNumber(e)?eY(e,null==t?void 0:t.props):e)+tY(null==t?void 0:t.queryParams),cJ=e=>!(null==e||!e.target);function dJ(e,t){const n=G3(e,t);if(cJ(t)&&"_blank"===t.target){const{origin:e}=new URL(document.referrer||window.location.origin),t=n.includes("://")?n:e+n;window.open(t,"_blank")}else lJ().dispatch(d3(n))}const fJ=()=>dJ,pJ=({to:e,props:t,children:n,target:r,queryParams:o,className:i,disabled:a,onClick:u,...s})=>{const l=fJ(),c=G3(e,{queryParams:o,props:t}),{baseUrl:d}=V3.get(),f=r?c:`${d}${c}`;return G.jsx("a",{href:f,target:r,onClick:n=>{n.preventDefault(),!a&&(null==u||u(n),l(e,{queryParams:o,props:t,target:n.ctrlKey||n.metaKey?"_blank":r}))},className:i,...s,children:n})};
|
|
88
88
|
/**
|
|
89
89
|
* @remix-run/router v1.15.2
|
|
90
90
|
*
|
|
@@ -94,7 +94,7 @@ var fL=Object.defineProperty,pL=(e,t,n)=>t in e?fL(e,t,{enumerable:!0,configurab
|
|
|
94
94
|
* LICENSE.md file in the root directory of this source tree.
|
|
95
95
|
*
|
|
96
96
|
* @license MIT
|
|
97
|
-
*/function
|
|
97
|
+
*/function uE(){return uE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uE.apply(this,arguments)}var LA,FA;function xl(e,t){if(!1===e||null===e||typeof e>"u")throw new Error(t)}function H3(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function hJ(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"==typeof e?H3(e):e;return{pathname:n?n.startsWith("/")?n:mJ(n,t):t,search:_J(r),hash:bJ(o)}}function mJ(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}function yS(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 vJ(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function gJ(e,t){let n=vJ(e);return t?n.map(((t,n)=>n===e.length-1?t.pathname:t.pathnameBase)):n.map((e=>e.pathnameBase))}function yJ(e,t,n,r){let o;void 0===r&&(r=!1),"string"==typeof e?o=H3(e):(o=uE({},e),xl(!o.pathname||!o.pathname.includes("?"),yS("?","pathname","search",o)),xl(!o.pathname||!o.pathname.includes("#"),yS("#","pathname","hash",o)),xl(!o.search||!o.search.includes("#"),yS("#","search","hash",o)));let i,a=""===e||""===o.pathname,u=a?"/":o.pathname;if(null==u)i=n;else{let e=t.length-1;if(!r&&u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let s=hJ(o,i),l=u&&"/"!==u&&u.endsWith("/"),c=(a||"."===u)&&n.endsWith("/");return!s.pathname.endsWith("/")&&(l||c)&&(s.pathname+="/"),s}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(LA||(LA={})),function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(FA||(FA={}));const wJ=e=>e.join("/").replace(/\/\/+/g,"/"),_J=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",bJ=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",K3=["post","put","patch","delete"];new Set(K3);const xJ=["get",...K3];function lE(){return lE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lE.apply(this,arguments)}new Set(xJ);const Q3=m.createContext(null),SJ=m.createContext(null),Y3=m.createContext(null),X3=m.createContext(null),i0=m.createContext({outlet:null,matches:[],isDataRoute:!1}),EJ=m.createContext(null);function J3(){return null!=m.useContext(X3)}function Z3(){return J3()||xl(!1),m.useContext(X3).location}function eL(e){m.useContext(Y3).static||m.useLayoutEffect(e)}function CJ(){let{isDataRoute:e}=m.useContext(i0);return e?kJ():$J()}function $J(){J3()||xl(!1);let e=m.useContext(Q3),{basename:t,future:n,navigator:r}=m.useContext(Y3),{matches:o}=m.useContext(i0),{pathname:i}=Z3(),a=JSON.stringify(gJ(o,n.v7_relativeSplatPath)),u=m.useRef(!1);return eL((()=>{u.current=!0})),m.useCallback((function(n,o){if(void 0===o&&(o={}),!u.current)return;if("number"==typeof n)return void r.go(n);let s=yJ(n,JSON.parse(a),i,"path"===o.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:wJ([t,s.pathname])),(o.replace?r.replace:r.push)(s,o.state,o)}),[t,r,a,i,e])}const IJ=m.createContext(null);function RJ(e){let t=m.useContext(i0).outlet;return t&&m.createElement(IJ.Provider,{value:e},t)}var tL=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(tL||{}),fy=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(fy||{});function PJ(e){let t=m.useContext(Q3);return t||xl(!1),t}function TJ(e){let t=m.useContext(SJ);return t||xl(!1),t}function OJ(e){let t=m.useContext(i0);return t||xl(!1),t}function nL(e){let t=OJ(),n=t.matches[t.matches.length-1];return n.route.id||xl(!1),n.route.id}function AJ(){var e;let t=m.useContext(EJ),n=TJ(fy.UseRouteError),r=nL(fy.UseRouteError);return void 0!==t?t:null==(e=n.errors)?void 0:e[r]}function kJ(){let{router:e}=PJ(tL.UseNavigateStable),t=nL(fy.UseNavigateStable),n=m.useRef(!1);return eL((()=>{n.current=!0})),m.useCallback((function(r,o){void 0===o&&(o={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,lE({fromRouteId:t},o)))}),[e,t])}function DJ(e){return RJ(e.context)}new Promise((()=>{}));var BA,tv={exports:{}},NJ=tv.exports;
|
|
98
98
|
/**
|
|
99
99
|
* @license
|
|
100
100
|
* Lodash <https://lodash.com/>
|
|
@@ -102,4 +102,4 @@ var fL=Object.defineProperty,pL=(e,t,n)=>t in e?fL(e,t,{enumerable:!0,configurab
|
|
|
102
102
|
* Released under MIT license <https://lodash.com/license>
|
|
103
103
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
104
104
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
105
|
-
*/function HJ(){return BA||(BA=1,e=tv,t=tv.exports,function(){var n,r="Expected a function",o="__lodash_hash_undefined__",i="__lodash_placeholder__",a=16,u=32,s=64,l=128,c=256,d=1/0,f=9007199254740991,p=NaN,m=4294967295,h=m-1,v=m>>>1,g=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",u],["partialRight",s],["rearg",c]],y="[object Arguments]",b="[object Array]",w="[object Boolean]",x="[object Date]",_="[object Error]",E="[object Function]",S="[object GeneratorFunction]",A="[object Map]",k="[object Number]",C="[object Object]",I="[object Promise]",P="[object RegExp]",R="[object Set]",O="[object String]",T="[object Symbol]",N="[object WeakMap]",j="[object ArrayBuffer]",q="[object DataView]",D="[object Float32Array]",M="[object Float64Array]",L="[object Int8Array]",$="[object Int16Array]",B="[object Int32Array]",V="[object Uint8Array]",z="[object Uint8ClampedArray]",F="[object Uint16Array]",U="[object Uint32Array]",G=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,Q=/[&<>"']/g,Y=RegExp(K.source),X=RegExp(Q.source),J=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(oe.source),ae=/^\s+/,ue=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,me=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,ve=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,Ee=/['\n\r\u2028\u2029\\]/g,Se="\\ud800-\\udfff",Ae="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",Ce="a-z\\xdf-\\xf6\\xf8-\\xff",Ie="A-Z\\xc0-\\xd6\\xd8-\\xde",Pe="\\ufe0e\\ufe0f",Re="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Oe="['’]",Te="["+Se+"]",Ne="["+Re+"]",je="["+Ae+"]",qe="\\d+",De="["+ke+"]",Me="["+Ce+"]",Le="[^"+Se+Re+qe+ke+Ce+Ie+"]",$e="\\ud83c[\\udffb-\\udfff]",Be="[^"+Se+"]",Ve="(?:\\ud83c[\\udde6-\\uddff]){2}",ze="[\\ud800-\\udbff][\\udc00-\\udfff]",Fe="["+Ie+"]",Ue="\\u200d",Ge="(?:"+Me+"|"+Le+")",We="(?:"+Fe+"|"+Le+")",He="(?:['’](?:d|ll|m|re|s|t|ve))?",Ke="(?:['’](?:D|LL|M|RE|S|T|VE))?",Qe="(?:"+je+"|"+$e+")?",Ye="["+Pe+"]?",Xe=Ye+Qe+"(?:"+Ue+"(?:"+[Be,Ve,ze].join("|")+")"+Ye+Qe+")*",Je="(?:"+[De,Ve,ze].join("|")+")"+Xe,Ze="(?:"+[Be+je+"?",je,Ve,ze,Te].join("|")+")",et=RegExp(Oe,"g"),tt=RegExp(je,"g"),nt=RegExp($e+"(?="+$e+")|"+Ze+Xe,"g"),rt=RegExp([Fe+"?"+Me+"+"+He+"(?="+[Ne,Fe,"$"].join("|")+")",We+"+"+Ke+"(?="+[Ne,Fe+Ge,"$"].join("|")+")",Fe+"?"+Ge+"+"+He,Fe+"+"+Ke,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qe,Je].join("|"),"g"),ot=RegExp("["+Ue+Se+Ae+Pe+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ut=-1,st={};st[D]=st[M]=st[L]=st[$]=st[B]=st[V]=st[z]=st[F]=st[U]=!0,st[y]=st[b]=st[j]=st[w]=st[q]=st[x]=st[_]=st[E]=st[A]=st[k]=st[C]=st[P]=st[R]=st[O]=st[N]=!1;var lt={};lt[y]=lt[b]=lt[j]=lt[q]=lt[w]=lt[x]=lt[D]=lt[M]=lt[L]=lt[$]=lt[B]=lt[A]=lt[k]=lt[C]=lt[P]=lt[R]=lt[O]=lt[T]=lt[V]=lt[z]=lt[F]=lt[U]=!0,lt[_]=lt[E]=lt[N]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ft=parseInt,pt="object"==typeof ka&&ka&&ka.Object===Object&&ka,mt="object"==typeof self&&self&&self.Object===Object&&self,ht=pt||mt||Function("return this")(),vt=t&&!t.nodeType&&t,gt=vt&&e&&!e.nodeType&&e,yt=gt&>.exports===vt,bt=yt&&pt.process,wt=function(){try{return gt&>.require&>.require("util").types||bt&&bt.binding&&bt.binding("util")}catch{}}(),xt=wt&&wt.isArrayBuffer,_t=wt&&wt.isDate,Et=wt&&wt.isMap,St=wt&&wt.isRegExp,At=wt&&wt.isSet,kt=wt&&wt.isTypedArray;function Ct(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function It(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Pt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Rt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Ot(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Tt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Nt(e,t){return!(null==e||!e.length)&&Ft(e,t,0)>-1}function jt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function qt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Dt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Mt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Lt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function $t(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Bt=Ht("length");function Vt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function zt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Ft(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):zt(e,Gt,n)}function Ut(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Gt(e){return e!=e}function Wt(e,t){var n=null==e?0:e.length;return n?Yt(e,t)/n:p}function Ht(e){return function(t){return null==t?n:t[e]}}function Kt(e){return function(t){return null==e?n:e[t]}}function Qt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Yt(e,t){for(var r,o=-1,i=e.length;++o<i;){var a=t(e[o]);a!==n&&(r=r===n?a:r+a)}return r}function Xt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Jt(e){return e&&e.slice(0,hn(e)+1).replace(ae,"")}function Zt(e){return function(t){return e(t)}}function en(e,t){return qt(t,(function(t){return e[t]}))}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&Ft(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Ft(t,e[n],0)>-1;);return n}var on=Kt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),an=Kt({"&":"&","<":"<",">":">",'"':""","'":"'"});function un(e){return"\\"+ct[e]}function sn(e){return ot.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,r=e.length,o=0,a=[];++n<r;){var u=e[n];(u===t||u===i)&&(e[n]=i,a[o++]=n)}return a}function fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function pn(e){return sn(e)?function(e){for(var t=nt.lastIndex=0;nt.test(e);)++t;return t}(e):Bt(e)}function mn(e){return sn(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function hn(e){for(var t=e.length;t--&&ue.test(e.charAt(t)););return t}var vn=Kt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),gn=function e(t){var ue,Se=(t=null==t?ht:gn.defaults(ht.Object(),t,gn.pick(ht,at))).Array,Ae=t.Date,ke=t.Error,Ce=t.Function,Ie=t.Math,Pe=t.Object,Re=t.RegExp,Oe=t.String,Te=t.TypeError,Ne=Se.prototype,je=Ce.prototype,qe=Pe.prototype,De=t["__core-js_shared__"],Me=je.toString,Le=qe.hasOwnProperty,$e=0,Be=(ue=/[^.]+$/.exec(De&&De.keys&&De.keys.IE_PROTO||""))?"Symbol(src)_1."+ue:"",Ve=qe.toString,ze=Me.call(Pe),Fe=ht._,Ue=Re("^"+Me.call(Le).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ge=yt?t.Buffer:n,We=t.Symbol,He=t.Uint8Array,Ke=Ge?Ge.allocUnsafe:n,Qe=cn(Pe.getPrototypeOf,Pe),Ye=Pe.create,Xe=qe.propertyIsEnumerable,Je=Ne.splice,Ze=We?We.isConcatSpreadable:n,nt=We?We.iterator:n,ot=We?We.toStringTag:n,ct=function(){try{var e=mi(Pe,"defineProperty");return e({},"",{}),e}catch{}}(),pt=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,mt=Ae&&Ae.now!==ht.Date.now&&Ae.now,vt=t.setTimeout!==ht.setTimeout&&t.setTimeout,gt=Ie.ceil,bt=Ie.floor,wt=Pe.getOwnPropertySymbols,Bt=Ge?Ge.isBuffer:n,Kt=t.isFinite,yn=Ne.join,bn=cn(Pe.keys,Pe),wn=Ie.max,xn=Ie.min,_n=Ae.now,En=t.parseInt,Sn=Ie.random,An=Ne.reverse,kn=mi(t,"DataView"),Cn=mi(t,"Map"),In=mi(t,"Promise"),Pn=mi(t,"Set"),Rn=mi(t,"WeakMap"),On=mi(Pe,"create"),Tn=Rn&&new Rn,Nn={},jn=Bi(kn),qn=Bi(Cn),Dn=Bi(In),Mn=Bi(Pn),Ln=Bi(Rn),$n=We?We.prototype:n,Bn=$n?$n.valueOf:n,Vn=$n?$n.toString:n;function zn(e){if(ru(e)&&!Wa(e)&&!(e instanceof Wn)){if(e instanceof Gn)return e;if(Le.call(e,"__wrapped__"))return Vi(e)}return new Gn(e)}var Fn=function(){function e(){}return function(t){if(!nu(t))return{};if(Ye)return Ye(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Un(){}function Gn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Qn;++t<n;)this.add(e[t])}function Xn(e){var t=this.__data__=new Kn(e);this.size=t.size}function Jn(e,t){var n=Wa(e),r=!n&&Ga(e),o=!n&&!r&&Ya(e),i=!n&&!r&&!o&&du(e),a=n||r||o||i,u=a?Xt(e.length,Oe):[],s=u.length;for(var l in e)(t||Le.call(e,l))&&(!a||!("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||xi(l,s)))&&u.push(l);return u}function Zn(e){var t=e.length;return t?e[Yr(0,t-1)]:n}function er(e,t){return Mi(To(e),lr(t,0,e.length))}function tr(e){return Mi(To(e))}function nr(e,t,r){(r!==n&&!za(e[t],r)||r===n&&!(t in e))&&ur(e,t,r)}function rr(e,t,r){var o=e[t];(!Le.call(e,t)||!za(o,r)||r===n&&!(t in e))&&ur(e,t,r)}function or(e,t){for(var n=e.length;n--;)if(za(e[n][0],t))return n;return-1}function ir(e,t,n,r){return mr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function ar(e,t){return e&&No(t,Nu(t),e)}function ur(e,t,n){"__proto__"==t&&ct?ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function sr(e,t){for(var r=-1,o=t.length,i=Se(o),a=null==e;++r<o;)i[r]=a?n:Iu(e,t[r]);return i}function lr(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function cr(e,t,r,o,i,a){var u,s=1&t,l=2&t,c=4&t;if(r&&(u=i?r(e,o,i,a):r(e)),u!==n)return u;if(!nu(e))return e;var d=Wa(e);if(d){if(u=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Le.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return To(e,u)}else{var f=gi(e),p=f==E||f==S;if(Ya(e))return ko(e,s);if(f==C||f==y||p&&!i){if(u=l||p?{}:bi(e),!s)return l?function(e,t){return No(e,vi(e),t)}(e,function(e,t){return e&&No(t,ju(t),e)}(u,e)):function(e,t){return No(e,hi(e),t)}(e,ar(u,e))}else{if(!lt[f])return i?e:{};u=function(e,t,n){var r=e.constructor;switch(t){case j:return Co(e);case w:case x:return new r(+e);case q:return function(e,t){var n=t?Co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case D:case M:case L:case $:case B:case V:case z:case F:case U:return Io(e,n);case A:return new r;case k:case O:return new r(e);case P:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case R:return new r;case T:return function(e){return Bn?Pe(Bn.call(e)):{}}(e)}}(e,f,s)}}a||(a=new Xn);var m=a.get(e);if(m)return m;a.set(e,u),su(e)?e.forEach((function(n){u.add(cr(n,t,r,n,e,a))})):ou(e)&&e.forEach((function(n,o){u.set(o,cr(n,t,r,o,e,a))}));var h=d?n:(c?l?ui:ai:l?ju:Nu)(e);return Pt(h||e,(function(n,o){h&&(n=e[o=n]),rr(u,o,cr(n,t,r,o,e,a))})),u}function dr(e,t,r){var o=r.length;if(null==e)return!o;for(e=Pe(e);o--;){var i=r[o],a=t[i],u=e[i];if(u===n&&!(i in e)||!a(u))return!1}return!0}function fr(e,t,o){if("function"!=typeof e)throw new Te(r);return Ni((function(){e.apply(n,o)}),t)}function pr(e,t,n,r){var o=-1,i=Nt,a=!0,u=e.length,s=[],l=t.length;if(!u)return s;n&&(t=qt(t,Zt(n))),r?(i=jt,a=!1):t.length>=200&&(i=tn,a=!1,t=new Yn(t));e:for(;++o<u;){var c=e[o],d=null==n?c:n(c);if(c=r||0!==c?c:0,a&&d==d){for(var f=l;f--;)if(t[f]===d)continue e;s.push(c)}else i(t,d,r)||s.push(c)}return s}zn.templateSettings={escape:J,evaluate:Z,interpolate:ee,variable:"",imports:{_:zn}},zn.prototype=Un.prototype,zn.prototype.constructor=zn,Gn.prototype=Fn(Un.prototype),Gn.prototype.constructor=Gn,Wn.prototype=Fn(Un.prototype),Wn.prototype.constructor=Wn,Hn.prototype.clear=function(){this.__data__=On?On(null):{},this.size=0},Hn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hn.prototype.get=function(e){var t=this.__data__;if(On){var r=t[e];return r===o?n:r}return Le.call(t,e)?t[e]:n},Hn.prototype.has=function(e){var t=this.__data__;return On?t[e]!==n:Le.call(t,e)},Hn.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=On&&t===n?o:t,this},Kn.prototype.clear=function(){this.__data__=[],this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=or(t,e);return!(n<0||(n==t.length-1?t.pop():Je.call(t,n,1),--this.size,0))},Kn.prototype.get=function(e){var t=this.__data__,r=or(t,e);return r<0?n:t[r][1]},Kn.prototype.has=function(e){return or(this.__data__,e)>-1},Kn.prototype.set=function(e,t){var n=this.__data__,r=or(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(Cn||Kn),string:new Hn}},Qn.prototype.delete=function(e){var t=fi(this,e).delete(e);return this.size-=t?1:0,t},Qn.prototype.get=function(e){return fi(this,e).get(e)},Qn.prototype.has=function(e){return fi(this,e).has(e)},Qn.prototype.set=function(e,t){var n=fi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,o),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new Kn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Kn){var r=n.__data__;if(!Cn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Qn(r)}return n.set(e,t),this.size=n.size,this};var mr=Do(_r),hr=Do(Er,!0);function vr(e,t){var n=!0;return mr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function gr(e,t,r){for(var o=-1,i=e.length;++o<i;){var a=e[o],u=t(a);if(null!=u&&(s===n?u==u&&!cu(u):r(u,s)))var s=u,l=a}return l}function yr(e,t){var n=[];return mr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function br(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=wi),o||(o=[]);++i<a;){var u=e[i];t>0&&n(u)?t>1?br(u,t-1,n,r,o):Dt(o,u):r||(o[o.length]=u)}return o}var wr=Mo(),xr=Mo(!0);function _r(e,t){return e&&wr(e,t,Nu)}function Er(e,t){return e&&xr(e,t,Nu)}function Sr(e,t){return Tt(t,(function(t){return Za(e[t])}))}function Ar(e,t){for(var r=0,o=(t=_o(t,e)).length;null!=e&&r<o;)e=e[$i(t[r++])];return r&&r==o?e:n}function kr(e,t,n){var r=t(e);return Wa(e)?r:Dt(r,n(e))}function Cr(e){return null==e?e===n?"[object Undefined]":"[object Null]":ot&&ot in Pe(e)?function(e){var t=Le.call(e,ot),r=e[ot];try{e[ot]=n;var o=!0}catch{}var i=Ve.call(e);return o&&(t?e[ot]=r:delete e[ot]),i}(e):function(e){return Ve.call(e)}(e)}function Ir(e,t){return e>t}function Pr(e,t){return null!=e&&Le.call(e,t)}function Rr(e,t){return null!=e&&t in Pe(e)}function Or(e,t,r){for(var o=r?jt:Nt,i=e[0].length,a=e.length,u=a,s=Se(a),l=1/0,c=[];u--;){var d=e[u];u&&t&&(d=qt(d,Zt(t))),l=xn(d.length,l),s[u]=!r&&(t||i>=120&&d.length>=120)?new Yn(u&&d):n}d=e[0];var f=-1,p=s[0];e:for(;++f<i&&c.length<l;){var m=d[f],h=t?t(m):m;if(m=r||0!==m?m:0,!(p?tn(p,h):o(c,h,r))){for(u=a;--u;){var v=s[u];if(!(v?tn(v,h):o(e[u],h,r)))continue e}p&&p.push(h),c.push(m)}}return c}function Tr(e,t,r){var o=null==(e=Ri(e,t=_o(t,e)))?e:e[$i(Ji(t))];return null==o?n:Ct(o,e,r)}function Nr(e){return ru(e)&&Cr(e)==y}function jr(e,t,r,o,i){return e===t||(null==e||null==t||!ru(e)&&!ru(t)?e!=e&&t!=t:function(e,t,r,o,i,a){var u=Wa(e),s=Wa(t),l=u?b:gi(e),c=s?b:gi(t),d=(l=l==y?C:l)==C,f=(c=c==y?C:c)==C,p=l==c;if(p&&Ya(e)){if(!Ya(t))return!1;u=!0,d=!1}if(p&&!d)return a||(a=new Xn),u||du(e)?oi(e,t,r,o,i,a):function(e,t,n,r,o,i,a){switch(n){case q:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case j:return!(e.byteLength!=t.byteLength||!i(new He(e),new He(t)));case w:case x:case k:return za(+e,+t);case _:return e.name==t.name&&e.message==t.message;case P:case O:return e==t+"";case A:var u=ln;case R:var s=1&r;if(u||(u=fn),e.size!=t.size&&!s)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var c=oi(u(e),u(t),r,o,i,a);return a.delete(e),c;case T:if(Bn)return Bn.call(e)==Bn.call(t)}return!1}(e,t,l,r,o,i,a);if(!(1&r)){var m=d&&Le.call(e,"__wrapped__"),h=f&&Le.call(t,"__wrapped__");if(m||h){var v=m?e.value():e,g=h?t.value():t;return a||(a=new Xn),i(v,g,r,o,a)}}return!!p&&(a||(a=new Xn),function(e,t,r,o,i,a){var u=1&r,s=ai(e),l=s.length,c=ai(t),d=c.length;if(l!=d&&!u)return!1;for(var f=l;f--;){var p=s[f];if(!(u?p in t:Le.call(t,p)))return!1}var m=a.get(e),h=a.get(t);if(m&&h)return m==t&&h==e;var v=!0;a.set(e,t),a.set(t,e);for(var g=u;++f<l;){var y=e[p=s[f]],b=t[p];if(o)var w=u?o(b,y,p,t,e,a):o(y,b,p,e,t,a);if(!(w===n?y===b||i(y,b,r,o,a):w)){v=!1;break}g||(g="constructor"==p)}if(v&&!g){var x=e.constructor,_=t.constructor;x!=_&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof _&&_ instanceof _)&&(v=!1)}return a.delete(e),a.delete(t),v}(e,t,r,o,i,a))}(e,t,r,o,jr,i))}function qr(e,t,r,o){var i=r.length,a=i,u=!o;if(null==e)return!a;for(e=Pe(e);i--;){var s=r[i];if(u&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){var l=(s=r[i])[0],c=e[l],d=s[1];if(u&&s[2]){if(c===n&&!(l in e))return!1}else{var f=new Xn;if(o)var p=o(c,d,l,e,t,f);if(!(p===n?jr(d,c,3,o,f):p))return!1}}return!0}function Dr(e){return!(!nu(e)||function(e){return!!Be&&Be in e}(e))&&(Za(e)?Ue:ye).test(Bi(e))}function Mr(e){return"function"==typeof e?e:null==e?is:"object"==typeof e?Wa(e)?Fr(e[0],e[1]):zr(e):ms(e)}function Lr(e){if(!ki(e))return bn(e);var t=[];for(var n in Pe(e))Le.call(e,n)&&"constructor"!=n&&t.push(n);return t}function $r(e){if(!nu(e))return function(e){var t=[];if(null!=e)for(var n in Pe(e))t.push(n);return t}(e);var t=ki(e),n=[];for(var r in e)"constructor"==r&&(t||!Le.call(e,r))||n.push(r);return n}function Br(e,t){return e<t}function Vr(e,t){var n=-1,r=Ka(e)?Se(e.length):[];return mr(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}function zr(e){var t=pi(e);return 1==t.length&&t[0][2]?Ii(t[0][0],t[0][1]):function(n){return n===e||qr(n,e,t)}}function Fr(e,t){return Ei(e)&&Ci(t)?Ii($i(e),t):function(r){var o=Iu(r,e);return o===n&&o===t?Pu(r,e):jr(t,o,3)}}function Ur(e,t,r,o,i){e!==t&&wr(t,(function(a,u){if(i||(i=new Xn),nu(a))!function(e,t,r,o,i,a,u){var s=Oi(e,r),l=Oi(t,r),c=u.get(l);if(c)nr(e,r,c);else{var d=a?a(s,l,r+"",e,t,u):n,f=d===n;if(f){var p=Wa(l),m=!p&&Ya(l),h=!p&&!m&&du(l);d=l,p||m||h?Wa(s)?d=s:Qa(s)?d=To(s):m?(f=!1,d=ko(l,!0)):h?(f=!1,d=Io(l,!0)):d=[]:au(l)||Ga(l)?(d=s,Ga(s)?d=bu(s):(!nu(s)||Za(s))&&(d=bi(l))):f=!1}f&&(u.set(l,d),i(d,l,o,a,u),u.delete(l)),nr(e,r,d)}}(e,t,u,r,Ur,o,i);else{var s=o?o(Oi(e,u),a,u+"",e,t,i):n;s===n&&(s=a),nr(e,u,s)}}),ju)}function Gr(e,t){var r=e.length;if(r)return xi(t+=t<0?r:0,r)?e[t]:n}function Wr(e,t,n){t=t.length?qt(t,(function(e){return Wa(e)?function(t){return Ar(t,1===e.length?e[0]:e)}:e})):[is];var r=-1;return t=qt(t,Zt(di())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Vr(e,(function(e,n,o){return{criteria:qt(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,u=n.length;++r<a;){var s=Po(o[r],i[r]);if(s)return r>=u?s:s*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Hr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],u=Ar(e,a);n(u,a)&&to(i,_o(a,e),u)}return i}function Kr(e,t,n,r){var o=r?Ut:Ft,i=-1,a=t.length,u=e;for(e===t&&(t=To(t)),n&&(u=qt(e,Zt(n)));++i<a;)for(var s=0,l=t[i],c=n?n(l):l;(s=o(u,c,s,r))>-1;)u!==e&&Je.call(u,s,1),Je.call(e,s,1);return e}function Qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;xi(o)?Je.call(e,o,1):mo(e,o)}}return e}function Yr(e,t){return e+bt(Sn()*(t-e+1))}function Xr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=bt(t/2))&&(e+=e)}while(t);return n}function Jr(e,t){return ji(Pi(e,t,is),e+"")}function Zr(e){return Zn(zu(e))}function eo(e,t){var n=zu(e);return Mi(n,lr(t,0,n.length))}function to(e,t,r,o){if(!nu(e))return e;for(var i=-1,a=(t=_o(t,e)).length,u=a-1,s=e;null!=s&&++i<a;){var l=$i(t[i]),c=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=u){var d=s[l];(c=o?o(d,l,s):n)===n&&(c=nu(d)?d:xi(t[i+1])?[]:{})}rr(s,l,c),s=s[l]}return e}var no=Tn?function(e,t){return Tn.set(e,t),e}:is,ro=ct?function(e,t){return ct(e,"toString",{configurable:!0,enumerable:!1,value:ns(t),writable:!0})}:is;function oo(e){return Mi(zu(e))}function io(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Se(o);++r<o;)i[r]=e[r+t];return i}function ao(e,t){var n;return mr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function uo(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=v){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!cu(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return so(e,t,is,n)}function so(e,t,r,o){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var u=(t=r(t))!=t,s=null===t,l=cu(t),c=t===n;i<a;){var d=bt((i+a)/2),f=r(e[d]),p=f!==n,m=null===f,v=f==f,g=cu(f);if(u)var y=o||v;else y=c?v&&(o||p):s?v&&p&&(o||!m):l?v&&p&&!m&&(o||!g):!m&&!g&&(o?f<=t:f<t);y?i=d+1:a=d}return xn(a,h)}function lo(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],u=t?t(a):a;if(!n||!za(u,s)){var s=u;i[o++]=0===a?0:a}}return i}function co(e){return"number"==typeof e?e:cu(e)?p:+e}function fo(e){if("string"==typeof e)return e;if(Wa(e))return qt(e,fo)+"";if(cu(e))return Vn?Vn.call(e):"";var t=e+"";return"0"==t&&1/e==-d?"-0":t}function po(e,t,n){var r=-1,o=Nt,i=e.length,a=!0,u=[],s=u;if(n)a=!1,o=jt;else if(i>=200){var l=t?null:Jo(e);if(l)return fn(l);a=!1,o=tn,s=new Yn}else s=t?[]:u;e:for(;++r<i;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,a&&d==d){for(var f=s.length;f--;)if(s[f]===d)continue e;t&&s.push(d),u.push(c)}else o(s,d,n)||(s!==u&&s.push(d),u.push(c))}return u}function mo(e,t){return null==(e=Ri(e,t=_o(t,e)))||delete e[$i(Ji(t))]}function ho(e,t,n,r){return to(e,t,n(Ar(e,t)),r)}function vo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?io(e,r?0:i,r?i+1:o):io(e,r?i+1:0,r?o:i)}function go(e,t){var n=e;return n instanceof Wn&&(n=n.value()),Mt(t,(function(e,t){return t.func.apply(t.thisArg,Dt([e],t.args))}),n)}function yo(e,t,n){var r=e.length;if(r<2)return r?po(e[0]):[];for(var o=-1,i=Se(r);++o<r;)for(var a=e[o],u=-1;++u<r;)u!=o&&(i[o]=pr(i[o]||a,e[u],t,n));return po(br(i,1),t,n)}function bo(e,t,r){for(var o=-1,i=e.length,a=t.length,u={};++o<i;){var s=o<a?t[o]:n;r(u,e[o],s)}return u}function wo(e){return Qa(e)?e:[]}function xo(e){return"function"==typeof e?e:is}function _o(e,t){return Wa(e)?e:Ei(e,t)?[e]:Li(wu(e))}var Eo=Jr;function So(e,t,r){var o=e.length;return r=r===n?o:r,!t&&r>=o?e:io(e,t,r)}var Ao=pt||function(e){return ht.clearTimeout(e)};function ko(e,t){if(t)return e.slice();var n=e.length,r=Ke?Ke(n):new e.constructor(n);return e.copy(r),r}function Co(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function Io(e,t){var n=t?Co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Po(e,t){if(e!==t){var r=e!==n,o=null===e,i=e==e,a=cu(e),u=t!==n,s=null===t,l=t==t,c=cu(t);if(!s&&!c&&!a&&e>t||a&&u&&l&&!s&&!c||o&&u&&l||!r&&l||!i)return 1;if(!o&&!a&&!c&&e<t||c&&r&&i&&!o&&!a||s&&r&&i||!u&&i||!l)return-1}return 0}function Ro(e,t,n,r){for(var o=-1,i=e.length,a=n.length,u=-1,s=t.length,l=wn(i-a,0),c=Se(s+l),d=!r;++u<s;)c[u]=t[u];for(;++o<a;)(d||o<i)&&(c[n[o]]=e[o]);for(;l--;)c[u++]=e[o++];return c}function Oo(e,t,n,r){for(var o=-1,i=e.length,a=-1,u=n.length,s=-1,l=t.length,c=wn(i-u,0),d=Se(c+l),f=!r;++o<c;)d[o]=e[o];for(var p=o;++s<l;)d[p+s]=t[s];for(;++a<u;)(f||o<i)&&(d[p+n[a]]=e[o++]);return d}function To(e,t){var n=-1,r=e.length;for(t||(t=Se(r));++n<r;)t[n]=e[n];return t}function No(e,t,r,o){var i=!r;r||(r={});for(var a=-1,u=t.length;++a<u;){var s=t[a],l=o?o(r[s],e[s],s,r,e):n;l===n&&(l=e[s]),i?ur(r,s,l):rr(r,s,l)}return r}function jo(e,t){return function(n,r){var o=Wa(n)?It:ir,i=t?t():{};return o(n,e,di(r,2),i)}}function qo(e){return Jr((function(t,r){var o=-1,i=r.length,a=i>1?r[i-1]:n,u=i>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(i--,a):n,u&&_i(r[0],r[1],u)&&(a=i<3?n:a,i=1),t=Pe(t);++o<i;){var s=r[o];s&&e(t,s,o,a)}return t}))}function Do(e,t){return function(n,r){if(null==n)return n;if(!Ka(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Pe(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Mo(e){return function(t,n,r){for(var o=-1,i=Pe(t),a=r(t),u=a.length;u--;){var s=a[e?u:++o];if(!1===n(i[s],s,i))break}return t}}function Lo(e){return function(t){var r=sn(t=wu(t))?mn(t):n,o=r?r[0]:t.charAt(0),i=r?So(r,1).join(""):t.slice(1);return o[e]()+i}}function $o(e){return function(t){return Mt(Zu(Gu(t).replace(et,"")),e,"")}}function Bo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Fn(e.prototype),r=e.apply(n,t);return nu(r)?r:n}}function Vo(e){return function(t,r,o){var i=Pe(t);if(!Ka(t)){var a=di(r,3);t=Nu(t),r=function(e){return a(i[e],e,i)}}var u=e(t,r,o);return u>-1?i[a?t[u]:u]:n}}function zo(e){return ii((function(t){var o=t.length,i=o,a=Gn.prototype.thru;for(e&&t.reverse();i--;){var u=t[i];if("function"!=typeof u)throw new Te(r);if(a&&!s&&"wrapper"==li(u))var s=new Gn([],!0)}for(i=s?i:o;++i<o;){var l=li(u=t[i]),c="wrapper"==l?si(u):n;s=c&&Si(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?s[li(c[0])].apply(s,c[3]):1==u.length&&Si(u)?s[l]():s.thru(u)}return function(){var e=arguments,n=e[0];if(s&&1==e.length&&Wa(n))return s.plant(n).value();for(var r=0,i=o?t[r].apply(this,e):n;++r<o;)i=t[r].call(this,i);return i}}))}function Fo(e,t,r,o,i,a,u,s,c,d){var f=t&l,p=1&t,m=2&t,h=24&t,v=512&t,g=m?n:Bo(e);return function l(){for(var y=arguments.length,b=Se(y),w=y;w--;)b[w]=arguments[w];if(h)var x=ci(l),_=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(b,x);if(o&&(b=Ro(b,o,i,h)),a&&(b=Oo(b,a,u,h)),y-=_,h&&y<d){var E=dn(b,x);return Yo(e,t,Fo,l.placeholder,r,b,E,s,c,d-y)}var S=p?r:this,A=m?S[e]:e;return y=b.length,s?b=function(e,t){for(var r=e.length,o=xn(t.length,r),i=To(e);o--;){var a=t[o];e[o]=xi(a,r)?i[a]:n}return e}(b,s):v&&y>1&&b.reverse(),f&&c<y&&(b.length=c),this&&this!==ht&&this instanceof l&&(A=g||Bo(A)),A.apply(S,b)}}function Uo(e,t){return function(n,r){return function(e,t,n,r){return _r(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Go(e,t){return function(r,o){var i;if(r===n&&o===n)return t;if(r!==n&&(i=r),o!==n){if(i===n)return o;"string"==typeof r||"string"==typeof o?(r=fo(r),o=fo(o)):(r=co(r),o=co(o)),i=e(r,o)}return i}}function Wo(e){return ii((function(t){return t=qt(t,Zt(di())),Jr((function(n){var r=this;return e(t,(function(e){return Ct(e,r,n)}))}))}))}function Ho(e,t){var r=(t=t===n?" ":fo(t)).length;if(r<2)return r?Xr(t,e):t;var o=Xr(t,gt(e/pn(t)));return sn(t)?So(mn(o),0,e).join(""):o.slice(0,e)}function Ko(e){return function(t,r,o){return o&&"number"!=typeof o&&_i(t,r,o)&&(r=o=n),t=hu(t),r===n?(r=t,t=0):r=hu(r),function(e,t,n,r){for(var o=-1,i=wn(gt((t-e)/(n||1)),0),a=Se(i);i--;)a[r?i:++o]=e,e+=n;return a}(t,r,o=o===n?t<r?1:-1:hu(o),e)}}function Qo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=yu(t),n=yu(n)),e(t,n)}}function Yo(e,t,r,o,i,a,l,c,d,f){var p=8&t;t|=p?u:s,4&(t&=~(p?s:u))||(t&=-4);var m=[e,t,i,p?a:n,p?l:n,p?n:a,p?n:l,c,d,f],h=r.apply(n,m);return Si(e)&&Ti(h,m),h.placeholder=o,qi(h,e,t)}function Xo(e){var t=Ie[e];return function(e,n){if(e=yu(e),(n=null==n?0:xn(vu(n),292))&&Kt(e)){var r=(wu(e)+"e").split("e");return+((r=(wu(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Jo=Pn&&1/fn(new Pn([,-0]))[1]==d?function(e){return new Pn(e)}:cs;function Zo(e){return function(t){var n=gi(t);return n==A?ln(t):n==R?function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}(t):function(e,t){return qt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function ei(e,t,o,d,f,p,m,h){var v=2&t;if(!v&&"function"!=typeof e)throw new Te(r);var g=d?d.length:0;if(g||(t&=-97,d=f=n),m=m===n?m:wn(vu(m),0),h=h===n?h:vu(h),g-=f?f.length:0,t&s){var y=d,b=f;d=f=n}var w=v?n:si(e),x=[e,t,o,d,f,y,b,p,m,h];if(w&&function(e,t){var n=e[1],r=t[1],o=n|r,a=o<131,u=r==l&&8==n||r==l&&n==c&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!u)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var s=t[3];if(s){var d=e[3];e[3]=d?Ro(d,s,t[4]):s,e[4]=d?dn(e[3],i):t[4]}(s=t[5])&&(d=e[5],e[5]=d?Oo(d,s,t[6]):s,e[6]=d?dn(e[5],i):t[6]),(s=t[7])&&(e[7]=s),r&l&&(e[8]=null==e[8]?t[8]:xn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(x,w),e=x[0],t=x[1],o=x[2],d=x[3],f=x[4],!(h=x[9]=x[9]===n?v?0:e.length:wn(x[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||t==a?function(e,t,r){var o=Bo(e);return function i(){for(var a=arguments.length,u=Se(a),s=a,l=ci(i);s--;)u[s]=arguments[s];var c=a<3&&u[0]!==l&&u[a-1]!==l?[]:dn(u,l);return(a-=c.length)<r?Yo(e,t,Fo,i.placeholder,n,u,c,n,n,r-a):Ct(this&&this!==ht&&this instanceof i?o:e,this,u)}}(e,t,h):t!=u&&33!=t||f.length?Fo.apply(n,x):function(e,t,n,r){var o=1&t,i=Bo(e);return function t(){for(var a=-1,u=arguments.length,s=-1,l=r.length,c=Se(l+u),d=this&&this!==ht&&this instanceof t?i:e;++s<l;)c[s]=r[s];for(;u--;)c[s++]=arguments[++a];return Ct(d,o?n:this,c)}}(e,t,o,d);else var _=function(e,t,n){var r=1&t,o=Bo(e);return function t(){return(this&&this!==ht&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,o);return qi((w?no:Ti)(_,x),e,t)}function ti(e,t,r,o){return e===n||za(e,qe[r])&&!Le.call(o,r)?t:e}function ni(e,t,r,o,i,a){return nu(e)&&nu(t)&&(a.set(t,e),Ur(e,t,n,ni,a),a.delete(t)),e}function ri(e){return au(e)?n:e}function oi(e,t,r,o,i,a){var u=1&r,s=e.length,l=t.length;if(s!=l&&!(u&&l>s))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var f=-1,p=!0,m=2&r?new Yn:n;for(a.set(e,t),a.set(t,e);++f<s;){var h=e[f],v=t[f];if(o)var g=u?o(v,h,f,t,e,a):o(h,v,f,e,t,a);if(g!==n){if(g)continue;p=!1;break}if(m){if(!$t(t,(function(e,t){if(!tn(m,t)&&(h===e||i(h,e,r,o,a)))return m.push(t)}))){p=!1;break}}else if(h!==v&&!i(h,v,r,o,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function ii(e){return ji(Pi(e,n,Hi),e+"")}function ai(e){return kr(e,Nu,hi)}function ui(e){return kr(e,ju,vi)}var si=Tn?function(e){return Tn.get(e)}:cs;function li(e){for(var t=e.name+"",n=Nn[t],r=Le.call(Nn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ci(e){return(Le.call(zn,"placeholder")?zn:e).placeholder}function di(){var e=zn.iteratee||as;return e=e===as?Mr:e,arguments.length?e(arguments[0],arguments[1]):e}function fi(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function pi(e){for(var t=Nu(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ci(o)]}return t}function mi(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return Dr(r)?r:n}var hi=wt?function(e){return null==e?[]:(e=Pe(e),Tt(wt(e),(function(t){return Xe.call(e,t)})))}:gs,vi=wt?function(e){for(var t=[];e;)Dt(t,hi(e)),e=Qe(e);return t}:gs,gi=Cr;function yi(e,t,n){for(var r=-1,o=(t=_o(t,e)).length,i=!1;++r<o;){var a=$i(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&tu(o)&&xi(a,o)&&(Wa(e)||Ga(e))}function bi(e){return"function"!=typeof e.constructor||ki(e)?{}:Fn(Qe(e))}function wi(e){return Wa(e)||Ga(e)||!!(Ze&&e&&e[Ze])}function xi(e,t){var n=typeof e;return!!(t=t??f)&&("number"==n||"symbol"!=n&&we.test(e))&&e>-1&&e%1==0&&e<t}function _i(e,t,n){if(!nu(n))return!1;var r=typeof t;return!!("number"==r?Ka(n)&&xi(t,n.length):"string"==r&&t in n)&&za(n[t],e)}function Ei(e,t){if(Wa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cu(e))||ne.test(e)||!te.test(e)||null!=t&&e in Pe(t)}function Si(e){var t=li(e),n=zn[t];if("function"!=typeof n||!(t in Wn.prototype))return!1;if(e===n)return!0;var r=si(n);return!!r&&e===r[0]}(kn&&gi(new kn(new ArrayBuffer(1)))!=q||Cn&&gi(new Cn)!=A||In&&gi(In.resolve())!=I||Pn&&gi(new Pn)!=R||Rn&&gi(new Rn)!=N)&&(gi=function(e){var t=Cr(e),r=t==C?e.constructor:n,o=r?Bi(r):"";if(o)switch(o){case jn:return q;case qn:return A;case Dn:return I;case Mn:return R;case Ln:return N}return t});var Ai=De?Za:ys;function ki(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||qe)}function Ci(e){return e==e&&!nu(e)}function Ii(e,t){return function(r){return null!=r&&r[e]===t&&(t!==n||e in Pe(r))}}function Pi(e,t,r){return t=wn(t===n?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=wn(n.length-t,0),a=Se(i);++o<i;)a[o]=n[t+o];o=-1;for(var u=Se(t+1);++o<t;)u[o]=n[o];return u[t]=r(a),Ct(e,this,u)}}function Ri(e,t){return t.length<2?e:Ar(e,io(t,0,-1))}function Oi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ti=Di(no),Ni=vt||function(e,t){return ht.setTimeout(e,t)},ji=Di(ro);function qi(e,t,n){var r=t+"";return ji(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Pt(g,(function(n){var r="_."+n[0];t&n[1]&&!Nt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(le);return t?t[1].split(ce):[]}(r),n)))}function Di(e){var t=0,r=0;return function(){var o=_n(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Mi(e,t){var r=-1,o=e.length,i=o-1;for(t=t===n?o:t;++r<t;){var a=Yr(r,i),u=e[a];e[a]=e[r],e[r]=u}return e.length=t,e}var Li=function(e){var t=Da(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,o){t.push(r?o.replace(pe,"$1"):n||e)})),t}));function $i(e){if("string"==typeof e||cu(e))return e;var t=e+"";return"0"==t&&1/e==-d?"-0":t}function Bi(e){if(null!=e){try{return Me.call(e)}catch{}try{return e+""}catch{}}return""}function Vi(e){if(e instanceof Wn)return e.clone();var t=new Gn(e.__wrapped__,e.__chain__);return t.__actions__=To(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var zi=Jr((function(e,t){return Qa(e)?pr(e,br(t,1,Qa,!0)):[]})),Fi=Jr((function(e,t){var r=Ji(t);return Qa(r)&&(r=n),Qa(e)?pr(e,br(t,1,Qa,!0),di(r,2)):[]})),Ui=Jr((function(e,t){var r=Ji(t);return Qa(r)&&(r=n),Qa(e)?pr(e,br(t,1,Qa,!0),n,r):[]}));function Gi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:vu(n);return o<0&&(o=wn(r+o,0)),zt(e,di(t,3),o)}function Wi(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o-1;return r!==n&&(i=vu(r),i=r<0?wn(o+i,0):xn(i,o-1)),zt(e,di(t,3),i,!0)}function Hi(e){return null!=e&&e.length?br(e,1):[]}function Ki(e){return e&&e.length?e[0]:n}var Qi=Jr((function(e){var t=qt(e,wo);return t.length&&t[0]===e[0]?Or(t):[]})),Yi=Jr((function(e){var t=Ji(e),r=qt(e,wo);return t===Ji(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Or(r,di(t,2)):[]})),Xi=Jr((function(e){var t=Ji(e),r=qt(e,wo);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?Or(r,n,t):[]}));function Ji(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Zi=Jr(ea);function ea(e,t){return e&&e.length&&t&&t.length?Kr(e,t):e}var ta=ii((function(e,t){var n=null==e?0:e.length,r=sr(e,t);return Qr(e,qt(t,(function(e){return xi(e,n)?+e:e})).sort(Po)),r}));function na(e){return null==e?e:An.call(e)}var ra=Jr((function(e){return po(br(e,1,Qa,!0))})),oa=Jr((function(e){var t=Ji(e);return Qa(t)&&(t=n),po(br(e,1,Qa,!0),di(t,2))})),ia=Jr((function(e){var t=Ji(e);return t="function"==typeof t?t:n,po(br(e,1,Qa,!0),n,t)}));function aa(e){if(!e||!e.length)return[];var t=0;return e=Tt(e,(function(e){if(Qa(e))return t=wn(e.length,t),!0})),Xt(t,(function(t){return qt(e,Ht(t))}))}function ua(e,t){if(!e||!e.length)return[];var r=aa(e);return null==t?r:qt(r,(function(e){return Ct(t,n,e)}))}var sa=Jr((function(e,t){return Qa(e)?pr(e,t):[]})),la=Jr((function(e){return yo(Tt(e,Qa))})),ca=Jr((function(e){var t=Ji(e);return Qa(t)&&(t=n),yo(Tt(e,Qa),di(t,2))})),da=Jr((function(e){var t=Ji(e);return t="function"==typeof t?t:n,yo(Tt(e,Qa),n,t)})),fa=Jr(aa),pa=Jr((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,ua(e,r)}));function ma(e){var t=zn(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var va=ii((function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,i=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&o instanceof Wn&&xi(r)?((o=o.slice(r,+r+(t?1:0))).__actions__.push({func:ha,args:[i],thisArg:n}),new Gn(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(i)})),ga=jo((function(e,t,n){Le.call(e,n)?++e[n]:ur(e,n,1)})),ya=Vo(Gi),ba=Vo(Wi);function wa(e,t){return(Wa(e)?Pt:mr)(e,di(t,3))}function xa(e,t){return(Wa(e)?Rt:hr)(e,di(t,3))}var _a=jo((function(e,t,n){Le.call(e,n)?e[n].push(t):ur(e,n,[t])})),Ea=Jr((function(e,t,n){var r=-1,o="function"==typeof t,i=Ka(e)?Se(e.length):[];return mr(e,(function(e){i[++r]=o?Ct(t,e,n):Tr(e,t,n)})),i})),Sa=jo((function(e,t,n){ur(e,n,t)}));function Aa(e,t){return(Wa(e)?qt:Vr)(e,di(t,3))}var ka=jo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Ca=Jr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&_i(e,t[0],t[1])?t=[]:n>2&&_i(t[0],t[1],t[2])&&(t=[t[0]]),Wr(e,br(t,1),[])})),Ia=mt||function(){return ht.Date.now()};function Pa(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,ei(e,l,n,n,n,n,t)}function Ra(e,t){var o;if("function"!=typeof t)throw new Te(r);return e=vu(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=n),o}}var Oa=Jr((function(e,t,n){var r=1;if(n.length){var o=dn(n,ci(Oa));r|=u}return ei(e,r,t,n,o)})),Ta=Jr((function(e,t,n){var r=3;if(n.length){var o=dn(n,ci(Ta));r|=u}return ei(t,r,e,n,o)}));function Na(e,t,o){var i,a,u,s,l,c,d=0,f=!1,p=!1,m=!0;if("function"!=typeof e)throw new Te(r);function h(t){var r=i,o=a;return i=a=n,d=t,s=e.apply(o,r)}function v(e){var r=e-c;return c===n||r>=t||r<0||p&&e-d>=u}function g(){var e=Ia();if(v(e))return y(e);l=Ni(g,function(e){var n=t-(e-c);return p?xn(n,u-(e-d)):n}(e))}function y(e){return l=n,m&&i?h(e):(i=a=n,s)}function b(){var e=Ia(),r=v(e);if(i=arguments,a=this,c=e,r){if(l===n)return function(e){return d=e,l=Ni(g,t),f?h(e):s}(c);if(p)return Ao(l),l=Ni(g,t),h(c)}return l===n&&(l=Ni(g,t)),s}return t=yu(t)||0,nu(o)&&(f=!!o.leading,u=(p="maxWait"in o)?wn(yu(o.maxWait)||0,t):u,m="trailing"in o?!!o.trailing:m),b.cancel=function(){l!==n&&Ao(l),d=0,i=c=a=l=n},b.flush=function(){return l===n?s:y(Ia())},b}var ja=Jr((function(e,t){return fr(e,1,t)})),qa=Jr((function(e,t,n){return fr(e,yu(t)||0,n)}));function Da(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Te(r);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Da.Cache||Qn),n}function Ma(e){if("function"!=typeof e)throw new Te(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Da.Cache=Qn;var La=Eo((function(e,t){var n=(t=1==t.length&&Wa(t[0])?qt(t[0],Zt(di())):qt(br(t,1),Zt(di()))).length;return Jr((function(r){for(var o=-1,i=xn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return Ct(e,this,r)}))})),$a=Jr((function(e,t){var r=dn(t,ci($a));return ei(e,u,n,t,r)})),Ba=Jr((function(e,t){var r=dn(t,ci(Ba));return ei(e,s,n,t,r)})),Va=ii((function(e,t){return ei(e,c,n,n,n,t)}));function za(e,t){return e===t||e!=e&&t!=t}var Fa=Qo(Ir),Ua=Qo((function(e,t){return e>=t})),Ga=Nr(function(){return arguments}())?Nr:function(e){return ru(e)&&Le.call(e,"callee")&&!Xe.call(e,"callee")},Wa=Se.isArray,Ha=xt?Zt(xt):function(e){return ru(e)&&Cr(e)==j};function Ka(e){return null!=e&&tu(e.length)&&!Za(e)}function Qa(e){return ru(e)&&Ka(e)}var Ya=Bt||ys,Xa=_t?Zt(_t):function(e){return ru(e)&&Cr(e)==x};function Ja(e){if(!ru(e))return!1;var t=Cr(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!au(e)}function Za(e){if(!nu(e))return!1;var t=Cr(e);return t==E||t==S||"[object AsyncFunction]"==t||"[object Proxy]"==t}function eu(e){return"number"==typeof e&&e==vu(e)}function tu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function nu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ru(e){return null!=e&&"object"==typeof e}var ou=Et?Zt(Et):function(e){return ru(e)&&gi(e)==A};function iu(e){return"number"==typeof e||ru(e)&&Cr(e)==k}function au(e){if(!ru(e)||Cr(e)!=C)return!1;var t=Qe(e);if(null===t)return!0;var n=Le.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Me.call(n)==ze}var uu=St?Zt(St):function(e){return ru(e)&&Cr(e)==P},su=At?Zt(At):function(e){return ru(e)&&gi(e)==R};function lu(e){return"string"==typeof e||!Wa(e)&&ru(e)&&Cr(e)==O}function cu(e){return"symbol"==typeof e||ru(e)&&Cr(e)==T}var du=kt?Zt(kt):function(e){return ru(e)&&tu(e.length)&&!!st[Cr(e)]},fu=Qo(Br),pu=Qo((function(e,t){return e<=t}));function mu(e){if(!e)return[];if(Ka(e))return lu(e)?mn(e):To(e);if(nt&&e[nt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[nt]());var t=gi(e);return(t==A?ln:t==R?fn:zu)(e)}function hu(e){return e?(e=yu(e))===d||e===-d?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function vu(e){var t=hu(e),n=t%1;return t==t?n?t-n:t:0}function gu(e){return e?lr(vu(e),0,m):0}function yu(e){if("number"==typeof e)return e;if(cu(e))return p;if(nu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=nu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var n=ge.test(e);return n||be.test(e)?ft(e.slice(2),n?2:8):ve.test(e)?p:+e}function bu(e){return No(e,ju(e))}function wu(e){return null==e?"":fo(e)}var xu=qo((function(e,t){if(ki(t)||Ka(t))No(t,Nu(t),e);else for(var n in t)Le.call(t,n)&&rr(e,n,t[n])})),_u=qo((function(e,t){No(t,ju(t),e)})),Eu=qo((function(e,t,n,r){No(t,ju(t),e,r)})),Su=qo((function(e,t,n,r){No(t,Nu(t),e,r)})),Au=ii(sr),ku=Jr((function(e,t){e=Pe(e);var r=-1,o=t.length,i=o>2?t[2]:n;for(i&&_i(t[0],t[1],i)&&(o=1);++r<o;)for(var a=t[r],u=ju(a),s=-1,l=u.length;++s<l;){var c=u[s],d=e[c];(d===n||za(d,qe[c])&&!Le.call(e,c))&&(e[c]=a[c])}return e})),Cu=Jr((function(e){return e.push(n,ni),Ct(Du,n,e)}));function Iu(e,t,r){var o=null==e?n:Ar(e,t);return o===n?r:o}function Pu(e,t){return null!=e&&yi(e,t,Rr)}var Ru=Uo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ve.call(t)),e[t]=n}),ns(is)),Ou=Uo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ve.call(t)),Le.call(e,t)?e[t].push(n):e[t]=[n]}),di),Tu=Jr(Tr);function Nu(e){return Ka(e)?Jn(e):Lr(e)}function ju(e){return Ka(e)?Jn(e,!0):$r(e)}var qu=qo((function(e,t,n){Ur(e,t,n)})),Du=qo((function(e,t,n,r){Ur(e,t,n,r)})),Mu=ii((function(e,t){var n={};if(null==e)return n;var r=!1;t=qt(t,(function(t){return t=_o(t,e),r||(r=t.length>1),t})),No(e,ui(e),n),r&&(n=cr(n,7,ri));for(var o=t.length;o--;)mo(n,t[o]);return n})),Lu=ii((function(e,t){return null==e?{}:function(e,t){return Hr(e,t,(function(t,n){return Pu(e,n)}))}(e,t)}));function $u(e,t){if(null==e)return{};var n=qt(ui(e),(function(e){return[e]}));return t=di(t),Hr(e,n,(function(e,n){return t(e,n[0])}))}var Bu=Zo(Nu),Vu=Zo(ju);function zu(e){return null==e?[]:en(e,Nu(e))}var Fu=$o((function(e,t,n){return t=t.toLowerCase(),e+(n?Uu(t):t)}));function Uu(e){return Ju(wu(e).toLowerCase())}function Gu(e){return(e=wu(e))&&e.replace(xe,on).replace(tt,"")}var Wu=$o((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Hu=$o((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ku=Lo("toLowerCase"),Qu=$o((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Yu=$o((function(e,t,n){return e+(n?" ":"")+Ju(t)})),Xu=$o((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ju=Lo("toUpperCase");function Zu(e,t,r){return e=wu(e),(t=r?n:t)===n?function(e){return it.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var es=Jr((function(e,t){try{return Ct(e,n,t)}catch(e){return Ja(e)?e:new ke(e)}})),ts=ii((function(e,t){return Pt(t,(function(t){t=$i(t),ur(e,t,Oa(e[t],e))})),e}));function ns(e){return function(){return e}}var rs=zo(),os=zo(!0);function is(e){return e}function as(e){return Mr("function"==typeof e?e:cr(e,1))}var us=Jr((function(e,t){return function(n){return Tr(n,e,t)}})),ss=Jr((function(e,t){return function(n){return Tr(e,n,t)}}));function ls(e,t,n){var r=Nu(t),o=Sr(t,r);null==n&&(!nu(t)||!o.length&&r.length)&&(n=t,t=e,e=this,o=Sr(t,Nu(t)));var i=!(nu(n)&&"chain"in n&&!n.chain),a=Za(e);return Pt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=To(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Dt([this.value()],arguments))})})),e}function cs(){}var ds=Wo(qt),fs=Wo(Ot),ps=Wo($t);function ms(e){return Ei(e)?Ht($i(e)):function(e){return function(t){return Ar(t,e)}}(e)}var hs=Ko(),vs=Ko(!0);function gs(){return[]}function ys(){return!1}var bs=Go((function(e,t){return e+t}),0),ws=Xo("ceil"),xs=Go((function(e,t){return e/t}),1),_s=Xo("floor"),Es=Go((function(e,t){return e*t}),1),Ss=Xo("round"),As=Go((function(e,t){return e-t}),0);return zn.after=function(e,t){if("function"!=typeof t)throw new Te(r);return e=vu(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=Pa,zn.assign=xu,zn.assignIn=_u,zn.assignInWith=Eu,zn.assignWith=Su,zn.at=Au,zn.before=Ra,zn.bind=Oa,zn.bindAll=ts,zn.bindKey=Ta,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Wa(e)?e:[e]},zn.chain=ma,zn.chunk=function(e,t,r){t=(r?_i(e,t,r):t===n)?1:wn(vu(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,a=0,u=Se(gt(o/t));i<o;)u[a++]=io(e,i,i+=t);return u},zn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},zn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=Se(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Dt(Wa(n)?To(n):[n],br(t,1))},zn.cond=function(e){var t=null==e?0:e.length,n=di();return e=t?qt(e,(function(e){if("function"!=typeof e[1])throw new Te(r);return[n(e[0]),e[1]]})):[],Jr((function(n){for(var r=-1;++r<t;){var o=e[r];if(Ct(o[0],this,n))return Ct(o[1],this,n)}}))},zn.conforms=function(e){return function(e){var t=Nu(e);return function(n){return dr(n,e,t)}}(cr(e,1))},zn.constant=ns,zn.countBy=ga,zn.create=function(e,t){var n=Fn(e);return null==t?n:ar(n,t)},zn.curry=function e(t,r,o){var i=ei(t,8,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},zn.curryRight=function e(t,r,o){var i=ei(t,a,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},zn.debounce=Na,zn.defaults=ku,zn.defaultsDeep=Cu,zn.defer=ja,zn.delay=qa,zn.difference=zi,zn.differenceBy=Fi,zn.differenceWith=Ui,zn.drop=function(e,t,r){var o=null==e?0:e.length;return o?io(e,(t=r||t===n?1:vu(t))<0?0:t,o):[]},zn.dropRight=function(e,t,r){var o=null==e?0:e.length;return o?io(e,0,(t=o-(t=r||t===n?1:vu(t)))<0?0:t):[]},zn.dropRightWhile=function(e,t){return e&&e.length?vo(e,di(t,3),!0,!0):[]},zn.dropWhile=function(e,t){return e&&e.length?vo(e,di(t,3),!0):[]},zn.fill=function(e,t,r,o){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&_i(e,t,r)&&(r=0,o=i),function(e,t,r,o){var i=e.length;for((r=vu(r))<0&&(r=-r>i?0:i+r),(o=o===n||o>i?i:vu(o))<0&&(o+=i),o=r>o?0:gu(o);r<o;)e[r++]=t;return e}(e,t,r,o)):[]},zn.filter=function(e,t){return(Wa(e)?Tt:yr)(e,di(t,3))},zn.flatMap=function(e,t){return br(Aa(e,t),1)},zn.flatMapDeep=function(e,t){return br(Aa(e,t),d)},zn.flatMapDepth=function(e,t,r){return r=r===n?1:vu(r),br(Aa(e,t),r)},zn.flatten=Hi,zn.flattenDeep=function(e){return null!=e&&e.length?br(e,d):[]},zn.flattenDepth=function(e,t){return null!=e&&e.length?br(e,t=t===n?1:vu(t)):[]},zn.flip=function(e){return ei(e,512)},zn.flow=rs,zn.flowRight=os,zn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},zn.functions=function(e){return null==e?[]:Sr(e,Nu(e))},zn.functionsIn=function(e){return null==e?[]:Sr(e,ju(e))},zn.groupBy=_a,zn.initial=function(e){return null!=e&&e.length?io(e,0,-1):[]},zn.intersection=Qi,zn.intersectionBy=Yi,zn.intersectionWith=Xi,zn.invert=Ru,zn.invertBy=Ou,zn.invokeMap=Ea,zn.iteratee=as,zn.keyBy=Sa,zn.keys=Nu,zn.keysIn=ju,zn.map=Aa,zn.mapKeys=function(e,t){var n={};return t=di(t,3),_r(e,(function(e,r,o){ur(n,t(e,r,o),e)})),n},zn.mapValues=function(e,t){var n={};return t=di(t,3),_r(e,(function(e,r,o){ur(n,r,t(e,r,o))})),n},zn.matches=function(e){return zr(cr(e,1))},zn.matchesProperty=function(e,t){return Fr(e,cr(t,1))},zn.memoize=Da,zn.merge=qu,zn.mergeWith=Du,zn.method=us,zn.methodOf=ss,zn.mixin=ls,zn.negate=Ma,zn.nthArg=function(e){return e=vu(e),Jr((function(t){return Gr(t,e)}))},zn.omit=Mu,zn.omitBy=function(e,t){return $u(e,Ma(di(t)))},zn.once=function(e){return Ra(2,e)},zn.orderBy=function(e,t,r,o){return null==e?[]:(Wa(t)||(t=null==t?[]:[t]),Wa(r=o?n:r)||(r=null==r?[]:[r]),Wr(e,t,r))},zn.over=ds,zn.overArgs=La,zn.overEvery=fs,zn.overSome=ps,zn.partial=$a,zn.partialRight=Ba,zn.partition=ka,zn.pick=Lu,zn.pickBy=$u,zn.property=ms,zn.propertyOf=function(e){return function(t){return null==e?n:Ar(e,t)}},zn.pull=Zi,zn.pullAll=ea,zn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Kr(e,t,di(n,2)):e},zn.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Kr(e,t,n,r):e},zn.pullAt=ta,zn.range=hs,zn.rangeRight=vs,zn.rearg=Va,zn.reject=function(e,t){return(Wa(e)?Tt:yr)(e,Ma(di(t,3)))},zn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=di(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Qr(e,o),n},zn.rest=function(e,t){if("function"!=typeof e)throw new Te(r);return Jr(e,t=t===n?t:vu(t))},zn.reverse=na,zn.sampleSize=function(e,t,r){return t=(r?_i(e,t,r):t===n)?1:vu(t),(Wa(e)?er:eo)(e,t)},zn.set=function(e,t,n){return null==e?e:to(e,t,n)},zn.setWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:to(e,t,r,o)},zn.shuffle=function(e){return(Wa(e)?tr:oo)(e)},zn.slice=function(e,t,r){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&_i(e,t,r)?(t=0,r=o):(t=null==t?0:vu(t),r=r===n?o:vu(r)),io(e,t,r)):[]},zn.sortBy=Ca,zn.sortedUniq=function(e){return e&&e.length?lo(e):[]},zn.sortedUniqBy=function(e,t){return e&&e.length?lo(e,di(t,2)):[]},zn.split=function(e,t,r){return r&&"number"!=typeof r&&_i(e,t,r)&&(t=r=n),(r=r===n?m:r>>>0)?(e=wu(e))&&("string"==typeof t||null!=t&&!uu(t))&&!(t=fo(t))&&sn(e)?So(mn(e),0,r):e.split(t,r):[]},zn.spread=function(e,t){if("function"!=typeof e)throw new Te(r);return t=null==t?0:wn(vu(t),0),Jr((function(n){var r=n[t],o=So(n,0,t);return r&&Dt(o,r),Ct(e,this,o)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?io(e,1,t):[]},zn.take=function(e,t,r){return e&&e.length?io(e,0,(t=r||t===n?1:vu(t))<0?0:t):[]},zn.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?io(e,(t=o-(t=r||t===n?1:vu(t)))<0?0:t,o):[]},zn.takeRightWhile=function(e,t){return e&&e.length?vo(e,di(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?vo(e,di(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new Te(r);return nu(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),Na(e,t,{leading:o,maxWait:t,trailing:i})},zn.thru=ha,zn.toArray=mu,zn.toPairs=Bu,zn.toPairsIn=Vu,zn.toPath=function(e){return Wa(e)?qt(e,$i):cu(e)?[e]:To(Li(wu(e)))},zn.toPlainObject=bu,zn.transform=function(e,t,n){var r=Wa(e),o=r||Ya(e)||du(e);if(t=di(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:nu(e)&&Za(i)?Fn(Qe(e)):{}}return(o?Pt:_r)(e,(function(e,r,o){return t(n,e,r,o)})),n},zn.unary=function(e){return Pa(e,1)},zn.union=ra,zn.unionBy=oa,zn.unionWith=ia,zn.uniq=function(e){return e&&e.length?po(e):[]},zn.uniqBy=function(e,t){return e&&e.length?po(e,di(t,2)):[]},zn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?po(e,n,t):[]},zn.unset=function(e,t){return null==e||mo(e,t)},zn.unzip=aa,zn.unzipWith=ua,zn.update=function(e,t,n){return null==e?e:ho(e,t,xo(n))},zn.updateWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:ho(e,t,xo(r),o)},zn.values=zu,zn.valuesIn=function(e){return null==e?[]:en(e,ju(e))},zn.without=sa,zn.words=Zu,zn.wrap=function(e,t){return $a(xo(t),e)},zn.xor=la,zn.xorBy=ca,zn.xorWith=da,zn.zip=fa,zn.zipObject=function(e,t){return bo(e||[],t||[],rr)},zn.zipObjectDeep=function(e,t){return bo(e||[],t||[],to)},zn.zipWith=pa,zn.entries=Bu,zn.entriesIn=Vu,zn.extend=_u,zn.extendWith=Eu,ls(zn,zn),zn.add=bs,zn.attempt=es,zn.camelCase=Fu,zn.capitalize=Uu,zn.ceil=ws,zn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=yu(r))==r?r:0),t!==n&&(t=(t=yu(t))==t?t:0),lr(yu(e),t,r)},zn.clone=function(e){return cr(e,4)},zn.cloneDeep=function(e){return cr(e,5)},zn.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:n)},zn.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:n)},zn.conformsTo=function(e,t){return null==t||dr(e,t,Nu(t))},zn.deburr=Gu,zn.defaultTo=function(e,t){return null==e||e!=e?t:e},zn.divide=xs,zn.endsWith=function(e,t,r){e=wu(e),t=fo(t);var o=e.length,i=r=r===n?o:lr(vu(r),0,o);return(r-=t.length)>=0&&e.slice(r,i)==t},zn.eq=za,zn.escape=function(e){return(e=wu(e))&&X.test(e)?e.replace(Q,an):e},zn.escapeRegExp=function(e){return(e=wu(e))&&ie.test(e)?e.replace(oe,"\\$&"):e},zn.every=function(e,t,r){var o=Wa(e)?Ot:vr;return r&&_i(e,t,r)&&(t=n),o(e,di(t,3))},zn.find=ya,zn.findIndex=Gi,zn.findKey=function(e,t){return Vt(e,di(t,3),_r)},zn.findLast=ba,zn.findLastIndex=Wi,zn.findLastKey=function(e,t){return Vt(e,di(t,3),Er)},zn.floor=_s,zn.forEach=wa,zn.forEachRight=xa,zn.forIn=function(e,t){return null==e?e:wr(e,di(t,3),ju)},zn.forInRight=function(e,t){return null==e?e:xr(e,di(t,3),ju)},zn.forOwn=function(e,t){return e&&_r(e,di(t,3))},zn.forOwnRight=function(e,t){return e&&Er(e,di(t,3))},zn.get=Iu,zn.gt=Fa,zn.gte=Ua,zn.has=function(e,t){return null!=e&&yi(e,t,Pr)},zn.hasIn=Pu,zn.head=Ki,zn.identity=is,zn.includes=function(e,t,n,r){e=Ka(e)?e:zu(e),n=n&&!r?vu(n):0;var o=e.length;return n<0&&(n=wn(o+n,0)),lu(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Ft(e,t,n)>-1},zn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:vu(n);return o<0&&(o=wn(r+o,0)),Ft(e,t,o)},zn.inRange=function(e,t,r){return t=hu(t),r===n?(r=t,t=0):r=hu(r),function(e,t,n){return e>=xn(t,n)&&e<wn(t,n)}(e=yu(e),t,r)},zn.invoke=Tu,zn.isArguments=Ga,zn.isArray=Wa,zn.isArrayBuffer=Ha,zn.isArrayLike=Ka,zn.isArrayLikeObject=Qa,zn.isBoolean=function(e){return!0===e||!1===e||ru(e)&&Cr(e)==w},zn.isBuffer=Ya,zn.isDate=Xa,zn.isElement=function(e){return ru(e)&&1===e.nodeType&&!au(e)},zn.isEmpty=function(e){if(null==e)return!0;if(Ka(e)&&(Wa(e)||"string"==typeof e||"function"==typeof e.splice||Ya(e)||du(e)||Ga(e)))return!e.length;var t=gi(e);if(t==A||t==R)return!e.size;if(ki(e))return!Lr(e).length;for(var n in e)if(Le.call(e,n))return!1;return!0},zn.isEqual=function(e,t){return jr(e,t)},zn.isEqualWith=function(e,t,r){var o=(r="function"==typeof r?r:n)?r(e,t):n;return o===n?jr(e,t,n,r):!!o},zn.isError=Ja,zn.isFinite=function(e){return"number"==typeof e&&Kt(e)},zn.isFunction=Za,zn.isInteger=eu,zn.isLength=tu,zn.isMap=ou,zn.isMatch=function(e,t){return e===t||qr(e,t,pi(t))},zn.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,qr(e,t,pi(t),r)},zn.isNaN=function(e){return iu(e)&&e!=+e},zn.isNative=function(e){if(Ai(e))throw new ke("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dr(e)},zn.isNil=function(e){return null==e},zn.isNull=function(e){return null===e},zn.isNumber=iu,zn.isObject=nu,zn.isObjectLike=ru,zn.isPlainObject=au,zn.isRegExp=uu,zn.isSafeInteger=function(e){return eu(e)&&e>=-f&&e<=f},zn.isSet=su,zn.isString=lu,zn.isSymbol=cu,zn.isTypedArray=du,zn.isUndefined=function(e){return e===n},zn.isWeakMap=function(e){return ru(e)&&gi(e)==N},zn.isWeakSet=function(e){return ru(e)&&"[object WeakSet]"==Cr(e)},zn.join=function(e,t){return null==e?"":yn.call(e,t)},zn.kebabCase=Wu,zn.last=Ji,zn.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==n&&(i=(i=vu(r))<0?wn(o+i,0):xn(i,o-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):zt(e,Gt,i,!0)},zn.lowerCase=Hu,zn.lowerFirst=Ku,zn.lt=fu,zn.lte=pu,zn.max=function(e){return e&&e.length?gr(e,is,Ir):n},zn.maxBy=function(e,t){return e&&e.length?gr(e,di(t,2),Ir):n},zn.mean=function(e){return Wt(e,is)},zn.meanBy=function(e,t){return Wt(e,di(t,2))},zn.min=function(e){return e&&e.length?gr(e,is,Br):n},zn.minBy=function(e,t){return e&&e.length?gr(e,di(t,2),Br):n},zn.stubArray=gs,zn.stubFalse=ys,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=Es,zn.nth=function(e,t){return e&&e.length?Gr(e,vu(t)):n},zn.noConflict=function(){return ht._===this&&(ht._=Fe),this},zn.noop=cs,zn.now=Ia,zn.pad=function(e,t,n){e=wu(e);var r=(t=vu(t))?pn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Ho(bt(o),n)+e+Ho(gt(o),n)},zn.padEnd=function(e,t,n){e=wu(e);var r=(t=vu(t))?pn(e):0;return t&&r<t?e+Ho(t-r,n):e},zn.padStart=function(e,t,n){e=wu(e);var r=(t=vu(t))?pn(e):0;return t&&r<t?Ho(t-r,n)+e:e},zn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),En(wu(e).replace(ae,""),t||0)},zn.random=function(e,t,r){if(r&&"boolean"!=typeof r&&_i(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=hu(e),t===n?(t=e,e=0):t=hu(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var i=Sn();return xn(e+i*(t-e+dt("1e-"+((i+"").length-1))),t)}return Yr(e,t)},zn.reduce=function(e,t,n){var r=Wa(e)?Mt:Qt,o=arguments.length<3;return r(e,di(t,4),n,o,mr)},zn.reduceRight=function(e,t,n){var r=Wa(e)?Lt:Qt,o=arguments.length<3;return r(e,di(t,4),n,o,hr)},zn.repeat=function(e,t,r){return t=(r?_i(e,t,r):t===n)?1:vu(t),Xr(wu(e),t)},zn.replace=function(){var e=arguments,t=wu(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,r){var o=-1,i=(t=_o(t,e)).length;for(i||(i=1,e=n);++o<i;){var a=null==e?n:e[$i(t[o])];a===n&&(o=i,a=r),e=Za(a)?a.call(e):a}return e},zn.round=Ss,zn.runInContext=e,zn.sample=function(e){return(Wa(e)?Zn:Zr)(e)},zn.size=function(e){if(null==e)return 0;if(Ka(e))return lu(e)?pn(e):e.length;var t=gi(e);return t==A||t==R?e.size:Lr(e).length},zn.snakeCase=Qu,zn.some=function(e,t,r){var o=Wa(e)?$t:ao;return r&&_i(e,t,r)&&(t=n),o(e,di(t,3))},zn.sortedIndex=function(e,t){return uo(e,t)},zn.sortedIndexBy=function(e,t,n){return so(e,t,di(n,2))},zn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=uo(e,t);if(r<n&&za(e[r],t))return r}return-1},zn.sortedLastIndex=function(e,t){return uo(e,t,!0)},zn.sortedLastIndexBy=function(e,t,n){return so(e,t,di(n,2),!0)},zn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=uo(e,t,!0)-1;if(za(e[n],t))return n}return-1},zn.startCase=Yu,zn.startsWith=function(e,t,n){return e=wu(e),n=null==n?0:lr(vu(n),0,e.length),t=fo(t),e.slice(n,n+t.length)==t},zn.subtract=As,zn.sum=function(e){return e&&e.length?Yt(e,is):0},zn.sumBy=function(e,t){return e&&e.length?Yt(e,di(t,2)):0},zn.template=function(e,t,r){var o=zn.templateSettings;r&&_i(e,t,r)&&(t=n),e=wu(e),t=Eu({},t,o,ti);var i,a,u=Eu({},t.imports,o.imports,ti),s=Nu(u),l=en(u,s),c=0,d=t.interpolate||_e,f="__p += '",p=Re((t.escape||_e).source+"|"+d.source+"|"+(d===ee?me:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),m="//# sourceURL="+(Le.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ut+"]")+"\n";e.replace(p,(function(t,n,r,o,u,s){return r||(r=o),f+=e.slice(c,s).replace(Ee,un),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),u&&(a=!0,f+="';\n"+u+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=s+t.length,t})),f+="';\n";var h=Le.call(t,"variable")&&t.variable;if(h){if(fe.test(h))throw new ke("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(G,""):f).replace(W,"$1").replace(H,"$1;"),f="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=es((function(){return Ce(s,m+"return "+f).apply(n,l)}));if(v.source=f,Ja(v))throw v;return v},zn.times=function(e,t){if((e=vu(e))<1||e>f)return[];var n=m,r=xn(e,m);t=di(t),e-=m;for(var o=Xt(r,t);++n<e;)t(n);return o},zn.toFinite=hu,zn.toInteger=vu,zn.toLength=gu,zn.toLower=function(e){return wu(e).toLowerCase()},zn.toNumber=yu,zn.toSafeInteger=function(e){return e?lr(vu(e),-f,f):0===e?e:0},zn.toString=wu,zn.toUpper=function(e){return wu(e).toUpperCase()},zn.trim=function(e,t,r){if((e=wu(e))&&(r||t===n))return Jt(e);if(!e||!(t=fo(t)))return e;var o=mn(e),i=mn(t);return So(o,nn(o,i),rn(o,i)+1).join("")},zn.trimEnd=function(e,t,r){if((e=wu(e))&&(r||t===n))return e.slice(0,hn(e)+1);if(!e||!(t=fo(t)))return e;var o=mn(e);return So(o,0,rn(o,mn(t))+1).join("")},zn.trimStart=function(e,t,r){if((e=wu(e))&&(r||t===n))return e.replace(ae,"");if(!e||!(t=fo(t)))return e;var o=mn(e);return So(o,nn(o,mn(t))).join("")},zn.truncate=function(e,t){var r=30,o="...";if(nu(t)){var i="separator"in t?t.separator:i;r="length"in t?vu(t.length):r,o="omission"in t?fo(t.omission):o}var a=(e=wu(e)).length;if(sn(e)){var u=mn(e);a=u.length}if(r>=a)return e;var s=r-pn(o);if(s<1)return o;var l=u?So(u,0,s).join(""):e.slice(0,s);if(i===n)return l+o;if(u&&(s+=l.length-s),uu(i)){if(e.slice(s).search(i)){var c,d=l;for(i.global||(i=Re(i.source,wu(he.exec(i))+"g")),i.lastIndex=0;c=i.exec(d);)var f=c.index;l=l.slice(0,f===n?s:f)}}else if(e.indexOf(fo(i),s)!=s){var p=l.lastIndexOf(i);p>-1&&(l=l.slice(0,p))}return l+o},zn.unescape=function(e){return(e=wu(e))&&Y.test(e)?e.replace(K,vn):e},zn.uniqueId=function(e){var t=++$e;return wu(e)+t},zn.upperCase=Xu,zn.upperFirst=Ju,zn.each=wa,zn.eachRight=xa,zn.first=Ki,ls(zn,function(){var e={};return _r(zn,(function(t,n){Le.call(zn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),zn.VERSION="4.17.21",Pt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),Pt(["drop","take"],(function(e,t){Wn.prototype[e]=function(r){r=r===n?1:wn(vu(r),0);var o=this.__filtered__&&!t?new Wn(this):this.clone();return o.__filtered__?o.__takeCount__=xn(r,o.__takeCount__):o.__views__.push({size:xn(r,m),type:e+(o.__dir__<0?"Right":"")}),o},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Pt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:di(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Pt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),Pt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(is)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Jr((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return Tr(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(Ma(di(e)))},Wn.prototype.slice=function(e,t){e=vu(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Wn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=vu(t))<0?r.dropRight(-t):r.take(t-e)),r)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(m)},_r(Wn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=zn[o?"take"+("last"==t?"Right":""):t],a=o||/^find/.test(t);i&&(zn.prototype[t]=function(){var t=this.__wrapped__,u=o?[1]:arguments,s=t instanceof Wn,l=u[0],c=s||Wa(t),d=function(e){var t=i.apply(zn,Dt([e],u));return o&&f?t[0]:t};c&&r&&"function"==typeof l&&1!=l.length&&(s=c=!1);var f=this.__chain__,p=!!this.__actions__.length,m=a&&!f,h=s&&!p;if(!a&&c){t=h?t:new Wn(this);var v=e.apply(t,u);return v.__actions__.push({func:ha,args:[d],thisArg:n}),new Gn(v,f)}return m&&h?e.apply(this,u):(v=this.thru(d),m?o?v.value()[0]:v.value():v)})})),Pt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ne[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Wa(o)?o:[],e)}return this[n]((function(n){return t.apply(Wa(n)?n:[],e)}))}})),_r(Wn.prototype,(function(e,t){var n=zn[t];if(n){var r=n.name+"";Le.call(Nn,r)||(Nn[r]=[]),Nn[r].push({name:t,func:n})}})),Nn[Fo(n,2).name]=[{name:"wrapper",func:n}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=To(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=To(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=To(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Wa(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=xn(t,e+a);break;case"takeRight":e=wn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,u=i.end,s=u-a,l=r?u:a-1,c=this.__iteratees__,d=c.length,f=0,p=xn(s,this.__takeCount__);if(!n||!r&&o==s&&p==s)return go(e,this.__actions__);var m=[];e:for(;s--&&f<p;){for(var h=-1,v=e[l+=t];++h<d;){var g=c[h],y=g.iteratee,b=g.type,w=y(v);if(2==b)v=w;else if(!w){if(1==b)continue e;break e}}m[f++]=v}return m},zn.prototype.at=va,zn.prototype.chain=function(){return ma(this)},zn.prototype.commit=function(){return new Gn(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===n&&(this.__values__=mu(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var t,r=this;r instanceof Un;){var o=Vi(r);o.__index__=0,o.__values__=n,t?i.__wrapped__=o:t=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,t},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:ha,args:[na],thisArg:n}),new Gn(t,this.__chain__)}return this.thru(na)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return go(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,nt&&(zn.prototype[nt]=function(){return this}),zn}();gt?((gt.exports=gn)._=gn,vt._=gn):ht._=gn}.call(GJ)),tv.exports;var e,t}HJ();const KJ={$user:"/:username","$user-post":"/:username/posts/:postId","$user-event":"/:username/events/:eventId","$user-channel":"/:username/channels/:channelId","$user-media":"/:username/media/:mediaId"},QJ={$group:"/g/:groupname","$group-post":"/g/:groupname/posts/:postId","$group-event":"/g/:groupname/events/:eventId","$group-forum-post":"/g/:groupname/forum/:postId","$group-forum-category":"/g/:groupname/forum/:categorySlug","$group-forum-category-post":"/g/:groupname/forum/:categorySlug/:postId","$group-forum-tag":"/g/:groupname/forum/tag/:tag","$group-channel":"/g/:groupname/:channelname","$group-channel-post":"/g/:groupname/:channelname/posts/:postId","$group-media":"/g/:groupname/media/:mediaId"},YJ={$root:"/",$tag:"/tags/:tag"},XJ=()=>{const e=e$();if(!e)return;const{platformData:t}=e;return t.apps.flatMap((e=>e.paths.map((n=>({path:n.path,name:e.name,url:`${t.baseUrl}${e.baseUrl}index.html`,build:e.build,buildDate:e.buildDate})))))},JJ={...KJ,...QJ,...YJ},ZJ=()=>{var e;const t=(null==(e=XJ())?void 0:e.filter((({path:e})=>e.startsWith("$")&&!e.includes("/")&&!JJ[e])))||[];t.length>0&&El.warn("Unrecognized routes found:",t)};ZJ();const eZ={path:"",history:[],transitionPath:"",confirmLeavePage:null},tZ=So({name:"router",initialState:eZ,reducers:{},extraReducers:e=>{e.addCase(EK,((e,{payload:t})=>{e.confirmLeavePage=t})).addCase(d3,((e,{payload:t})=>{t!==e.transitionPath&&(e.transitionPath=t)})).addCase($K,((e,{payload:t})=>{t!==e.path&&(e.path=t,e.history.unshift(t))}))},selectors:{selectPath:e=>e.path,selectPreviousRoute:e=>{const t=e.history.indexOf(e.path);return e.history[t+1]},selectTransitionPath:e=>e.transitionPath,selectConfirmLeavePage:e=>e.confirmLeavePage}}).injectInto(wJ),rL="Tabs",[nZ,lee]=ni(rL,[Gh]),oL=Gh(),[cee,i$]=nZ(rL),rZ="TabsList",oZ=m.forwardRef(((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=i$(rZ,n),a=oL(n);return m.createElement(IC,Pe({asChild:!0},a,{orientation:i.orientation,dir:i.dir,loop:r}),m.createElement(lt.div,Pe({role:"tablist","aria-orientation":i.orientation},o,{ref:t})))})),iZ="TabsTrigger",aZ=m.forwardRef(((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=i$(iZ,n),u=oL(n),s=iL(a.baseId,r),l=aL(a.baseId,r),c=r===a.value;return m.createElement(RC,Pe({asChild:!0},u,{focusable:!o,active:c}),m.createElement(lt.button,Pe({type:"button",role:"tab","aria-selected":c,"aria-controls":l,"data-state":c?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:s},i,{ref:t,onMouseDown:et(e.onMouseDown,(e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(r)})),onKeyDown:et(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&a.onValueChange(r)})),onFocus:et(e.onFocus,(()=>{const e="manual"!==a.activationMode;!c&&!o&&e&&a.onValueChange(r)}))})))})),sZ="TabsContent",uZ=m.forwardRef(((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=e,u=i$(sZ,n),s=iL(u.baseId,r),l=aL(u.baseId,r),c=r===u.value,d=m.useRef(c);return m.useEffect((()=>{const e=requestAnimationFrame((()=>d.current=!1));return()=>cancelAnimationFrame(e)}),[]),m.createElement(ea,{present:o||c},(({present:n})=>m.createElement(lt.div,Pe({"data-state":c?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":s,hidden:!n,id:l,tabIndex:0},a,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),n&&i)))}));function iL(e,t){return`${e}-trigger-${t}`}function aL(e,t){return`${e}-content-${t}`}const sL=oZ,uL=aZ,lL=uZ,lZ=m.forwardRef((({className:e,useDefaults:t=!0,...n},r)=>G.jsx(sL,{ref:r,"data-testid":"tabsList",className:t?be("inline-flex w-full items-center justify-start gap-s p-none text-muted-foreground","relative after:absolute after:bottom-0 after:left-0 after:h-[1px] after:w-full after:bg-gray-200",e):e,...n})));lZ.displayName=sL.displayName;const cZ=m.forwardRef((({className:e,children:t,isFullWidthTab:n,...r},o)=>G.jsx(uL,{ref:o,asChild:!0,className:e??be("inline-flex items-center justify-center whitespace-nowrap text-base","z-2 transition-background h-m cursor-pointer focus-visible:outline-none","font-semibold focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50","group relative text-gray-500 hover:[&_svg]:fill-gray-900","after:absolute after:bottom-0 after:left-0 after:z-[1] after:h-0.5 after:w-full data-[state=active]:after:bg-gray-900",{"flex-1":n}),...r,children:t})));cZ.displayName=uL.displayName;const dZ=m.forwardRef((({className:e,...t},n)=>G.jsx(lL,{ref:n,className:be("ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t})));dZ.displayName=lL.displayName;const fZ=m.forwardRef((({className:e,...t},n)=>G.jsx("table",{ref:n,className:be("w-full caption-bottom text-sm",e),...t})));fZ.displayName="Table";const pZ=m.forwardRef((({className:e,...t},n)=>G.jsx("thead",{ref:n,className:be("[&_tr]:border-b",e),...t})));pZ.displayName="TableHeader";const hZ=m.forwardRef((({className:e,...t},n)=>G.jsx("tbody",{ref:n,className:be("[&_tr:last-child]:border-0",e),...t})));hZ.displayName="TableBody";const mZ=m.forwardRef((({className:e,...t},n)=>G.jsx("tfoot",{ref:n,className:be("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t})));mZ.displayName="TableFooter";const vZ=m.forwardRef((({className:e,...t},n)=>G.jsx("tr",{ref:n,className:be("border-b bg-background transition-colors hover:bg-gray-100 data-[state=selected]:bg-gray-200 dark:hover:bg-muted dark:data-[state=selected]:bg-muted","[&:hover_button[data-disabled]]:!bg-gray-200 [&:hover_button[disabled]]:!bg-gray-200",e),...t})));vZ.displayName="TableRow";const gZ=m.forwardRef((({className:e,...t},n)=>G.jsx("th",{ref:n,className:be("h-14 bg-inherit px-xs py-xxs text-left align-middle font-normal text-muted-foreground","whitespace-nowrap text-sm text-gray-500",e),...t})));gZ.displayName="TableHead";const yZ=m.forwardRef((({className:e,...t},n)=>G.jsx("td",{ref:n,className:be("h-14 bg-inherit p-xs py-xxs align-middle","overflow-hidden truncate text-ellipsis text-base text-gray-700",e),...t})));yZ.displayName="TableCell";const wZ=m.forwardRef((({className:e,...t},n)=>G.jsx("caption",{ref:n,className:be("mt-s text-sm text-muted-foreground",e),...t})));wZ.displayName="TableCaption";const _Z=(e,t)=>be("flex w-full rounded-m px-s py-xs text-base text-gray-900 outline outline-1 outline-input ring-offset-background transition-all duration-200 ease-in-out placeholder:inherit placeholder:text-gray-400 placeholder:text-muted-foreground hover:outline-2 hover:outline-gray-400 focus-visible:bg-gray-50 focus-visible:text-gray-900 focus-visible:outline-2 focus-visible:outline-blue_120 disabled:cursor-not-allowed disabled:select-none disabled:text-gray-300 disabled:outline-gray-200",{"bg-red_30_17 outline-red-dark":!!e},t),bZ=m.forwardRef((({className:e,...t},n)=>{const{error:r}=bd();return G.jsx("textarea",{className:_Z(!!r,e),ref:n,...t})}));bZ.displayName="Textarea";const xZ=m.createContext(void 0),SZ=()=>{const e=m.useContext(xZ);if(!e)throw new Error("useColorPicker must be used within a ColorPickerProvider");return e},EZ=m.memo((({className:e,...t})=>{const n=m.useRef(null),[r,o]=m.useState(!1),[i,a]=m.useState(0),[u,s]=m.useState(0),{hue:l,saturation:c,lightness:d,setSaturation:f,setLightness:p}=SZ(),h=m.useMemo((()=>`linear-gradient(0deg, rgba(0,0,0,1), rgba(0,0,0,0)),\n linear-gradient(90deg, rgba(255,255,255,1), rgba(255,255,255,0)),\n hsl(${l}, 100%, 50%)`),[l]);m.useEffect((()=>{if(!r){const e=c/100,t=e<.01?100:50+50*(1-e),n=t>0?1-d/t:0;a(Math.max(0,Math.min(1,e))),s(Math.max(0,Math.min(1,n)))}}),[c,d,r]);const v=m.useCallback(((e,t)=>{if(!n.current)return;const r=n.current.getBoundingClientRect(),o=Math.max(0,Math.min(1,(e-r.left)/r.width)),i=Math.max(0,Math.min(1,(t-r.top)/r.height));a(o),s(i),f(100*o);p((o<.01?100:50+50*(1-o))*(1-i))}),[f,p]),g=m.useCallback((e=>{r&&v(e.clientX,e.clientY)}),[r,v]);return m.useEffect((()=>{const e=()=>o(!1);return r&&(window.addEventListener("pointermove",g),window.addEventListener("pointerup",e)),()=>{window.removeEventListener("pointermove",g),window.removeEventListener("pointerup",e)}}),[r,g]),G.jsx("div",{className:be("relative size-full cursor-crosshair rounded",e),onPointerDown:e=>{e.preventDefault(),o(!0),v(e.clientX,e.clientY)},ref:n,style:{background:h},...t,children:G.jsx("div",{className:"pointer-events-none absolute h-4 w-4 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white",style:{left:100*i+"%",top:100*u+"%",boxShadow:"0 0 0 1px rgba(0,0,0,0.5)"}})})}));EZ.displayName="ColorPickerSelection";const CZ=mu("z-tooltip animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 relative data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",{variants:{size:{default:"rounded-md text-sm px-3 py-1.5",small:"rounded-sm p-xxs text-sm"},theme:{default:"bg-popover text-popover-foreground",dark:"bg-gray-800 text-gray-50 [&_svg]:fill-gray-700"},defaultVariants:{size:"small",theme:"dark"}}}),$Z=m.forwardRef((({className:e,sideOffset:t=1,size:n,theme:r,children:o,isPortal:i=!0,withArrow:a=!0,...u},s)=>{const l=G.jsx(G.Fragment,{children:G.jsxs(c3,{ref:s,sideOffset:t,className:be(CZ({size:n,theme:r,className:e})),...u,children:[o,a&&G.jsxs(G.Fragment,{children:[G.jsx(_K,{height:4,width:8}),G.jsx("div",{className:"absolute bottom-0 left-0 h-full w-full rounded-sm border border-gray-700"})]})]})});return i?G.jsx(wK,{children:l}):l}));$Z.displayName=c3.displayName;var jA,Kg={exports:{}},IZ=Kg.exports;function RZ(){return jA||(jA=1,Kg.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",u="day",s="week",l="month",c="quarter",d="year",f="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,l),i=n-o<0,a=t.clone().add(r+(i?-1:1),l);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:s,d:u,D:f,h:a,m:i,s:o,ms:r,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",w={};w[b]=v;var x="$isDayjsObject",_=function(e){return e instanceof k||!(!e||!e[x])},E=function e(t,n,r){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();w[i]&&(o=i),n&&(w[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var u=t.name;w[u]=t,o=u}return!r&&o&&(b=o),o||!r&&b},S=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new k(n)},A=y;A.l=E,A.i=_,A.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var k=function(){function v(e){this.$L=E(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var g=v.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(A.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(m);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return A},g.isValid=function(){return this.$d.toString()!==p},g.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return S(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<S(e)},g.$g=function(e,t,n){return A.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,r=!!A.u(t)||t,c=A.p(e),p=function(e,t){var o=A.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(u)},m=function(e,t){return A.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,v=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(c){case d:return r?p(1,0):p(31,11);case l:return r?p(1,v):p(0,v+1);case s:var b=this.$locale().weekStart||0,w=(h<b?h+7:h)-b;return p(r?g-w:g+(6-w),v);case u:case f:return m(y+"Hours",0);case a:return m(y+"Minutes",1);case i:return m(y+"Seconds",2);case o:return m(y+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var n,s=A.p(e),c="set"+(this.$u?"UTC":""),p=(n={},n[u]=c+"Date",n[f]=c+"Date",n[l]=c+"Month",n[d]=c+"FullYear",n[a]=c+"Hours",n[i]=c+"Minutes",n[o]=c+"Seconds",n[r]=c+"Milliseconds",n)[s],m=s===u?this.$D+(t-this.$W):t;if(s===l||s===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[A.p(e)]()},g.add=function(r,c){var f,p=this;r=Number(r);var m=A.p(c),h=function(e){var t=S(p);return A.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===u)return h(1);if(m===s)return h(7);var v=(f={},f[i]=t,f[a]=n,f[o]=e,f)[m]||1,g=this.$d.getTime()+r*v;return A.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=A.z(this),i=this.$H,a=this.$m,u=this.$M,s=n.weekdays,l=n.months,c=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},f=function(e){return A.s(i%12||12,e,"0")},m=c||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return A.s(t.$y,4,"0");case"M":return u+1;case"MM":return A.s(u+1,2,"0");case"MMM":return d(n.monthsShort,u,l,3);case"MMMM":return d(l,u);case"D":return t.$D;case"DD":return A.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,s,2);case"ddd":return d(n.weekdaysShort,t.$W,s,3);case"dddd":return s[t.$W];case"H":return String(i);case"HH":return A.s(i,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return m(i,a,!0);case"A":return m(i,a,!1);case"m":return String(a);case"mm":return A.s(a,2,"0");case"s":return String(t.$s);case"ss":return A.s(t.$s,2,"0");case"SSS":return A.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,f,p){var m,h=this,v=A.p(f),g=S(r),y=(g.utcOffset()-this.utcOffset())*t,b=this-g,w=function(){return A.m(h,g)};switch(v){case d:m=w()/12;break;case l:m=w();break;case c:m=w()/3;break;case s:m=(b-y)/6048e5;break;case u:m=(b-y)/864e5;break;case a:m=b/n;break;case i:m=b/t;break;case o:m=b/e;break;default:m=b}return p?m:A.a(m)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return w[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=E(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return A.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},v}(),C=k.prototype;return S.prototype=C,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",u],["$M",l],["$y",d],["$D",f]].forEach((function(e){C[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,k,S),e.$i=!0),S},S.locale=E,S.isDayjs=_,S.unix=function(e){return S(1e3*e)},S.en=w[b],S.Ls=w,S.p={},S}()),Kg.exports}RZ();const dE="horizontal",PZ=["horizontal","vertical"],a$=m.forwardRef(((e,t)=>{const{decorative:n,orientation:r=dE,...o}=e,i=cL(r)?r:dE,a=n?{role:"none"}:{"aria-orientation":"vertical"===i?i:void 0,role:"separator"};return m.createElement(lt.div,Pe({"data-orientation":i},a,o,{ref:t}))}));function TZ(e,t){return`Invalid prop \`orientation\` of value \`${e}\` supplied to \`${t}\`, expected one of:\n - horizontal\n - vertical\n\nDefaulting to \`${dE}\`.`}function cL(e){return PZ.includes(e)}a$.propTypes={orientation(e,t,n){const r=e[t],o=String(r);return r&&!cL(r)?new Error(TZ(o,n)):null}};const OZ=mu("\n shrink-0 bg-gray-200\n data-[orientation=horizontal]:h-px data-[orientation=horizontal]:my-xxs\n data-[orientation=vertical]:w-px data-[orientation=vertical]:mx-xxs\n ",{variants:{size:{xs:"data-[orientation=horizontal]:w-4 data-[orientation=vertical]:h-4",s:"data-[orientation=horizontal]:w-6 data-[orientation=vertical]:h-6",m:"data-[orientation=horizontal]:w-8 data-[orientation=vertical]:h-8",l:"data-[orientation=horizontal]:w-10 data-[orientation=vertical]:h-10"}},defaultVariants:{size:"s"}}),AZ=m.forwardRef((({className:e,size:t,...n},r)=>G.jsx(a$,{ref:r,className:be(OZ({size:t,className:e})),...n})));AZ.displayName=a$.displayName;const kZ=({linksList:e})=>G.jsx("div",{className:"text-gray-700",children:G.jsx("div",{className:"gap-xs flex flex-col items-center",children:e.map((({text:e,link:t,icon:n},r)=>G.jsx(EJ,{to:t,children:G.jsxs(kv,{className:"min-w-[200px]",variant:r?"tertiary":"primary",children:[n,e]})},t)))})}),DZ=(e,t)=>{switch(!0){case B6(e):return e;case j6(e):return 500===e&&El.error("ErrorPage: ",e),av(e,t);case e&&!!U$(e):return{title:U$(e)};default:return El.error("ErrorPage: ",e),av(500,t)}},s$=({error:e,icon:t})=>{const n=_y(f2.selectors.selectIsAuthenticated),{title:r,description:o,links:i}=DZ(e,n),a=m.isValidElement(o);return G.jsx("div",{className:"flex min-h-[100vh] items-center justify-center",children:G.jsxs("div",{className:"gap-l flex max-w-[490px] translate-y-[-10%] flex-col items-center justify-center",children:[t||G.jsx("img",{src:U6}),G.jsxs("div",{className:"gap-s flex flex-col items-center justify-center",children:[r&&G.jsx("h1",{className:"text-center text-[24px] font-semibold text-gray-900",children:r}),o&&G.jsx("p",{className:"max-w-[343px] text-center text-base font-medium text-gray-900",...!a&&{dangerouslySetInnerHTML:{__html:o}},children:a?o:null})]}),null!=i&&i.length?G.jsx(kZ,{linksList:i}):null]})})},NZ=()=>{const e=Z3();return e.pathname+e.search},MZ=()=>{const e=MJ(),t=m.useRef(""),n=NZ(),r=_y(tZ.selectors.selectPath);m.useEffect((()=>{r&&r!==t.current&&(t.current=r,n!==r&&e(r,{replace:!0}))}),[r,e,n])},dL=m.memo((()=>(MZ(),null)));dL.displayName="RemoteRouteObserver";const dee=()=>{const e=zJ();return G.jsxs(G.Fragment,{children:[G.jsx(dL,{}),G.jsx(s$,{error:e})]})},LZ=m.createContext(null),_S={didCatch:!1,error:null};class FZ extends m.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=_S}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(null!==e){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null===(t=(n=this.props).onReset)||void 0===t||t.call(n,{args:o,reason:"imperative-api"}),this.setState(_S)}}componentDidCatch(e,t){var n,r;null===(n=(r=this.props).onError)||void 0===n||n.call(r,e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;var o,i;n&&null!==t.error&&BZ(e.resetKeys,r)&&(null===(o=(i=this.props).onReset)||void 0===o||o.call(i,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(_S))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:o,error:i}=this.state;let a=e;if(o){const e={error:i,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)a=t(e);else if(n)a=m.createElement(n,e);else{if(null!==r&&!m.isValidElement(r))throw i;a=r}}return m.createElement(LZ.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},a)}}function BZ(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some(((e,n)=>!Object.is(e,t[n])))}const fee=()=>G.jsx(FZ,{FallbackComponent:s$,children:G.jsx(qJ,{})}),pee=e=>{throw e},hee=e=>{var t,n,r;if(!e||jf.isString(e))return null;if("data"in e&&null!=(t=e.data)&&t.errorCode)return null==(n=e.data)?void 0:n.errorCode;if("error"in e&&"object"==typeof e.error&&null!==e.error){const t=e.error;if(null!=(r=t.data)&&r.errorCode)return t.data.errorCode}return null},mee=e=>{if(!e||jf.isString(e))return null;if("status"in e)return null==e?void 0:e.status;if("error"in e&&"object"==typeof e.error&&null!==e.error){const t=e.error;if(t.status)return t.status}return null},vee=({children:e,...t})=>null!=t&&t.error?G.jsx(s$,{...t}):G.jsx(G.Fragment,{children:e});export{fee as ErrorBoundaryLayout,s$ as ErrorPage,vee as ErrorWrapper,dee as RouterErrorPage,av as getErrorByStatusCode,U$ as getErrorMsg,hee as getServerApiErrorCode,mee as getServerStatusCode,pee as throwError};
|
|
105
|
+
*/function MJ(){return BA||(BA=1,e=tv,t=tv.exports,function(){var n,r="Expected a function",o="__lodash_hash_undefined__",i="__lodash_placeholder__",a=16,u=32,s=64,l=128,c=256,d=1/0,f=9007199254740991,p=NaN,m=4294967295,h=m-1,v=m>>>1,g=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",u],["partialRight",s],["rearg",c]],y="[object Arguments]",b="[object Array]",w="[object Boolean]",x="[object Date]",_="[object Error]",E="[object Function]",S="[object GeneratorFunction]",k="[object Map]",A="[object Number]",C="[object Object]",I="[object Promise]",R="[object RegExp]",P="[object Set]",T="[object String]",O="[object Symbol]",N="[object WeakMap]",j="[object ArrayBuffer]",q="[object DataView]",D="[object Float32Array]",M="[object Float64Array]",L="[object Int8Array]",$="[object Int16Array]",B="[object Int32Array]",V="[object Uint8Array]",z="[object Uint8ClampedArray]",F="[object Uint16Array]",U="[object Uint32Array]",G=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,Q=/[&<>"']/g,X=RegExp(K.source),J=RegExp(Q.source),Y=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(oe.source),ae=/^\s+/,ue=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,me=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,ve=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,Ee=/['\n\r\u2028\u2029\\]/g,Se="\\ud800-\\udfff",ke="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ae="\\u2700-\\u27bf",Ce="a-z\\xdf-\\xf6\\xf8-\\xff",Ie="A-Z\\xc0-\\xd6\\xd8-\\xde",Re="\\ufe0e\\ufe0f",Pe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="['’]",Oe="["+Se+"]",Ne="["+Pe+"]",je="["+ke+"]",qe="\\d+",De="["+Ae+"]",Me="["+Ce+"]",Le="[^"+Se+Pe+qe+Ae+Ce+Ie+"]",$e="\\ud83c[\\udffb-\\udfff]",Be="[^"+Se+"]",Ve="(?:\\ud83c[\\udde6-\\uddff]){2}",ze="[\\ud800-\\udbff][\\udc00-\\udfff]",Fe="["+Ie+"]",Ue="\\u200d",Ge="(?:"+Me+"|"+Le+")",We="(?:"+Fe+"|"+Le+")",He="(?:['’](?:d|ll|m|re|s|t|ve))?",Ke="(?:['’](?:D|LL|M|RE|S|T|VE))?",Qe="(?:"+je+"|"+$e+")?",Xe="["+Re+"]?",Je=Xe+Qe+"(?:"+Ue+"(?:"+[Be,Ve,ze].join("|")+")"+Xe+Qe+")*",Ye="(?:"+[De,Ve,ze].join("|")+")"+Je,Ze="(?:"+[Be+je+"?",je,Ve,ze,Oe].join("|")+")",et=RegExp(Te,"g"),tt=RegExp(je,"g"),nt=RegExp($e+"(?="+$e+")|"+Ze+Je,"g"),rt=RegExp([Fe+"?"+Me+"+"+He+"(?="+[Ne,Fe,"$"].join("|")+")",We+"+"+Ke+"(?="+[Ne,Fe+Ge,"$"].join("|")+")",Fe+"?"+Ge+"+"+He,Fe+"+"+Ke,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qe,Ye].join("|"),"g"),ot=RegExp("["+Ue+Se+ke+Re+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ut=-1,st={};st[D]=st[M]=st[L]=st[$]=st[B]=st[V]=st[z]=st[F]=st[U]=!0,st[y]=st[b]=st[j]=st[w]=st[q]=st[x]=st[_]=st[E]=st[k]=st[A]=st[C]=st[R]=st[P]=st[T]=st[N]=!1;var lt={};lt[y]=lt[b]=lt[j]=lt[q]=lt[w]=lt[x]=lt[D]=lt[M]=lt[L]=lt[$]=lt[B]=lt[k]=lt[A]=lt[C]=lt[R]=lt[P]=lt[T]=lt[O]=lt[V]=lt[z]=lt[F]=lt[U]=!0,lt[_]=lt[E]=lt[N]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ft=parseInt,pt="object"==typeof ka&&ka&&ka.Object===Object&&ka,mt="object"==typeof self&&self&&self.Object===Object&&self,ht=pt||mt||Function("return this")(),vt=t&&!t.nodeType&&t,gt=vt&&e&&!e.nodeType&&e,yt=gt&>.exports===vt,bt=yt&&pt.process,wt=function(){try{return gt&>.require&>.require("util").types||bt&&bt.binding&&bt.binding("util")}catch{}}(),xt=wt&&wt.isArrayBuffer,_t=wt&&wt.isDate,Et=wt&&wt.isMap,St=wt&&wt.isRegExp,kt=wt&&wt.isSet,At=wt&&wt.isTypedArray;function Ct(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function It(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Rt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Pt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Tt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Ot(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Nt(e,t){return!(null==e||!e.length)&&Ft(e,t,0)>-1}function jt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function qt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Dt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Mt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Lt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function $t(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Bt=Ht("length");function Vt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function zt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Ft(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):zt(e,Gt,n)}function Ut(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Gt(e){return e!=e}function Wt(e,t){var n=null==e?0:e.length;return n?Xt(e,t)/n:p}function Ht(e){return function(t){return null==t?n:t[e]}}function Kt(e){return function(t){return null==e?n:e[t]}}function Qt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Xt(e,t){for(var r,o=-1,i=e.length;++o<i;){var a=t(e[o]);a!==n&&(r=r===n?a:r+a)}return r}function Jt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Yt(e){return e&&e.slice(0,hn(e)+1).replace(ae,"")}function Zt(e){return function(t){return e(t)}}function en(e,t){return qt(t,(function(t){return e[t]}))}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&Ft(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Ft(t,e[n],0)>-1;);return n}var on=Kt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),an=Kt({"&":"&","<":"<",">":">",'"':""","'":"'"});function un(e){return"\\"+ct[e]}function sn(e){return ot.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,r=e.length,o=0,a=[];++n<r;){var u=e[n];(u===t||u===i)&&(e[n]=i,a[o++]=n)}return a}function fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function pn(e){return sn(e)?function(e){for(var t=nt.lastIndex=0;nt.test(e);)++t;return t}(e):Bt(e)}function mn(e){return sn(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function hn(e){for(var t=e.length;t--&&ue.test(e.charAt(t)););return t}var vn=Kt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),gn=function e(t){var ue,Se=(t=null==t?ht:gn.defaults(ht.Object(),t,gn.pick(ht,at))).Array,ke=t.Date,Ae=t.Error,Ce=t.Function,Ie=t.Math,Re=t.Object,Pe=t.RegExp,Te=t.String,Oe=t.TypeError,Ne=Se.prototype,je=Ce.prototype,qe=Re.prototype,De=t["__core-js_shared__"],Me=je.toString,Le=qe.hasOwnProperty,$e=0,Be=(ue=/[^.]+$/.exec(De&&De.keys&&De.keys.IE_PROTO||""))?"Symbol(src)_1."+ue:"",Ve=qe.toString,ze=Me.call(Re),Fe=ht._,Ue=Pe("^"+Me.call(Le).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ge=yt?t.Buffer:n,We=t.Symbol,He=t.Uint8Array,Ke=Ge?Ge.allocUnsafe:n,Qe=cn(Re.getPrototypeOf,Re),Xe=Re.create,Je=qe.propertyIsEnumerable,Ye=Ne.splice,Ze=We?We.isConcatSpreadable:n,nt=We?We.iterator:n,ot=We?We.toStringTag:n,ct=function(){try{var e=mi(Re,"defineProperty");return e({},"",{}),e}catch{}}(),pt=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,mt=ke&&ke.now!==ht.Date.now&&ke.now,vt=t.setTimeout!==ht.setTimeout&&t.setTimeout,gt=Ie.ceil,bt=Ie.floor,wt=Re.getOwnPropertySymbols,Bt=Ge?Ge.isBuffer:n,Kt=t.isFinite,yn=Ne.join,bn=cn(Re.keys,Re),wn=Ie.max,xn=Ie.min,_n=ke.now,En=t.parseInt,Sn=Ie.random,kn=Ne.reverse,An=mi(t,"DataView"),Cn=mi(t,"Map"),In=mi(t,"Promise"),Rn=mi(t,"Set"),Pn=mi(t,"WeakMap"),Tn=mi(Re,"create"),On=Pn&&new Pn,Nn={},jn=Bi(An),qn=Bi(Cn),Dn=Bi(In),Mn=Bi(Rn),Ln=Bi(Pn),$n=We?We.prototype:n,Bn=$n?$n.valueOf:n,Vn=$n?$n.toString:n;function zn(e){if(ru(e)&&!Wa(e)&&!(e instanceof Wn)){if(e instanceof Gn)return e;if(Le.call(e,"__wrapped__"))return Vi(e)}return new Gn(e)}var Fn=function(){function e(){}return function(t){if(!nu(t))return{};if(Xe)return Xe(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Un(){}function Gn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Xn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Qn;++t<n;)this.add(e[t])}function Jn(e){var t=this.__data__=new Kn(e);this.size=t.size}function Yn(e,t){var n=Wa(e),r=!n&&Ga(e),o=!n&&!r&&Xa(e),i=!n&&!r&&!o&&du(e),a=n||r||o||i,u=a?Jt(e.length,Te):[],s=u.length;for(var l in e)(t||Le.call(e,l))&&(!a||!("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||xi(l,s)))&&u.push(l);return u}function Zn(e){var t=e.length;return t?e[Xr(0,t-1)]:n}function er(e,t){return Mi(Oo(e),lr(t,0,e.length))}function tr(e){return Mi(Oo(e))}function nr(e,t,r){(r!==n&&!za(e[t],r)||r===n&&!(t in e))&&ur(e,t,r)}function rr(e,t,r){var o=e[t];(!Le.call(e,t)||!za(o,r)||r===n&&!(t in e))&&ur(e,t,r)}function or(e,t){for(var n=e.length;n--;)if(za(e[n][0],t))return n;return-1}function ir(e,t,n,r){return mr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function ar(e,t){return e&&No(t,Nu(t),e)}function ur(e,t,n){"__proto__"==t&&ct?ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function sr(e,t){for(var r=-1,o=t.length,i=Se(o),a=null==e;++r<o;)i[r]=a?n:Iu(e,t[r]);return i}function lr(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function cr(e,t,r,o,i,a){var u,s=1&t,l=2&t,c=4&t;if(r&&(u=i?r(e,o,i,a):r(e)),u!==n)return u;if(!nu(e))return e;var d=Wa(e);if(d){if(u=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Le.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return Oo(e,u)}else{var f=gi(e),p=f==E||f==S;if(Xa(e))return Ao(e,s);if(f==C||f==y||p&&!i){if(u=l||p?{}:bi(e),!s)return l?function(e,t){return No(e,vi(e),t)}(e,function(e,t){return e&&No(t,ju(t),e)}(u,e)):function(e,t){return No(e,hi(e),t)}(e,ar(u,e))}else{if(!lt[f])return i?e:{};u=function(e,t,n){var r=e.constructor;switch(t){case j:return Co(e);case w:case x:return new r(+e);case q:return function(e,t){var n=t?Co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case D:case M:case L:case $:case B:case V:case z:case F:case U:return Io(e,n);case k:return new r;case A:case T:return new r(e);case R:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case P:return new r;case O:return function(e){return Bn?Re(Bn.call(e)):{}}(e)}}(e,f,s)}}a||(a=new Jn);var m=a.get(e);if(m)return m;a.set(e,u),su(e)?e.forEach((function(n){u.add(cr(n,t,r,n,e,a))})):ou(e)&&e.forEach((function(n,o){u.set(o,cr(n,t,r,o,e,a))}));var h=d?n:(c?l?ui:ai:l?ju:Nu)(e);return Rt(h||e,(function(n,o){h&&(n=e[o=n]),rr(u,o,cr(n,t,r,o,e,a))})),u}function dr(e,t,r){var o=r.length;if(null==e)return!o;for(e=Re(e);o--;){var i=r[o],a=t[i],u=e[i];if(u===n&&!(i in e)||!a(u))return!1}return!0}function fr(e,t,o){if("function"!=typeof e)throw new Oe(r);return Ni((function(){e.apply(n,o)}),t)}function pr(e,t,n,r){var o=-1,i=Nt,a=!0,u=e.length,s=[],l=t.length;if(!u)return s;n&&(t=qt(t,Zt(n))),r?(i=jt,a=!1):t.length>=200&&(i=tn,a=!1,t=new Xn(t));e:for(;++o<u;){var c=e[o],d=null==n?c:n(c);if(c=r||0!==c?c:0,a&&d==d){for(var f=l;f--;)if(t[f]===d)continue e;s.push(c)}else i(t,d,r)||s.push(c)}return s}zn.templateSettings={escape:Y,evaluate:Z,interpolate:ee,variable:"",imports:{_:zn}},zn.prototype=Un.prototype,zn.prototype.constructor=zn,Gn.prototype=Fn(Un.prototype),Gn.prototype.constructor=Gn,Wn.prototype=Fn(Un.prototype),Wn.prototype.constructor=Wn,Hn.prototype.clear=function(){this.__data__=Tn?Tn(null):{},this.size=0},Hn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hn.prototype.get=function(e){var t=this.__data__;if(Tn){var r=t[e];return r===o?n:r}return Le.call(t,e)?t[e]:n},Hn.prototype.has=function(e){var t=this.__data__;return Tn?t[e]!==n:Le.call(t,e)},Hn.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Tn&&t===n?o:t,this},Kn.prototype.clear=function(){this.__data__=[],this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=or(t,e);return!(n<0||(n==t.length-1?t.pop():Ye.call(t,n,1),--this.size,0))},Kn.prototype.get=function(e){var t=this.__data__,r=or(t,e);return r<0?n:t[r][1]},Kn.prototype.has=function(e){return or(this.__data__,e)>-1},Kn.prototype.set=function(e,t){var n=this.__data__,r=or(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(Cn||Kn),string:new Hn}},Qn.prototype.delete=function(e){var t=fi(this,e).delete(e);return this.size-=t?1:0,t},Qn.prototype.get=function(e){return fi(this,e).get(e)},Qn.prototype.has=function(e){return fi(this,e).has(e)},Qn.prototype.set=function(e,t){var n=fi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Xn.prototype.add=Xn.prototype.push=function(e){return this.__data__.set(e,o),this},Xn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.clear=function(){this.__data__=new Kn,this.size=0},Jn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Jn.prototype.get=function(e){return this.__data__.get(e)},Jn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Kn){var r=n.__data__;if(!Cn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Qn(r)}return n.set(e,t),this.size=n.size,this};var mr=Do(_r),hr=Do(Er,!0);function vr(e,t){var n=!0;return mr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function gr(e,t,r){for(var o=-1,i=e.length;++o<i;){var a=e[o],u=t(a);if(null!=u&&(s===n?u==u&&!cu(u):r(u,s)))var s=u,l=a}return l}function yr(e,t){var n=[];return mr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function br(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=wi),o||(o=[]);++i<a;){var u=e[i];t>0&&n(u)?t>1?br(u,t-1,n,r,o):Dt(o,u):r||(o[o.length]=u)}return o}var wr=Mo(),xr=Mo(!0);function _r(e,t){return e&&wr(e,t,Nu)}function Er(e,t){return e&&xr(e,t,Nu)}function Sr(e,t){return Ot(t,(function(t){return Za(e[t])}))}function kr(e,t){for(var r=0,o=(t=_o(t,e)).length;null!=e&&r<o;)e=e[$i(t[r++])];return r&&r==o?e:n}function Ar(e,t,n){var r=t(e);return Wa(e)?r:Dt(r,n(e))}function Cr(e){return null==e?e===n?"[object Undefined]":"[object Null]":ot&&ot in Re(e)?function(e){var t=Le.call(e,ot),r=e[ot];try{e[ot]=n;var o=!0}catch{}var i=Ve.call(e);return o&&(t?e[ot]=r:delete e[ot]),i}(e):function(e){return Ve.call(e)}(e)}function Ir(e,t){return e>t}function Rr(e,t){return null!=e&&Le.call(e,t)}function Pr(e,t){return null!=e&&t in Re(e)}function Tr(e,t,r){for(var o=r?jt:Nt,i=e[0].length,a=e.length,u=a,s=Se(a),l=1/0,c=[];u--;){var d=e[u];u&&t&&(d=qt(d,Zt(t))),l=xn(d.length,l),s[u]=!r&&(t||i>=120&&d.length>=120)?new Xn(u&&d):n}d=e[0];var f=-1,p=s[0];e:for(;++f<i&&c.length<l;){var m=d[f],h=t?t(m):m;if(m=r||0!==m?m:0,!(p?tn(p,h):o(c,h,r))){for(u=a;--u;){var v=s[u];if(!(v?tn(v,h):o(e[u],h,r)))continue e}p&&p.push(h),c.push(m)}}return c}function Or(e,t,r){var o=null==(e=Pi(e,t=_o(t,e)))?e:e[$i(Yi(t))];return null==o?n:Ct(o,e,r)}function Nr(e){return ru(e)&&Cr(e)==y}function jr(e,t,r,o,i){return e===t||(null==e||null==t||!ru(e)&&!ru(t)?e!=e&&t!=t:function(e,t,r,o,i,a){var u=Wa(e),s=Wa(t),l=u?b:gi(e),c=s?b:gi(t),d=(l=l==y?C:l)==C,f=(c=c==y?C:c)==C,p=l==c;if(p&&Xa(e)){if(!Xa(t))return!1;u=!0,d=!1}if(p&&!d)return a||(a=new Jn),u||du(e)?oi(e,t,r,o,i,a):function(e,t,n,r,o,i,a){switch(n){case q:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case j:return!(e.byteLength!=t.byteLength||!i(new He(e),new He(t)));case w:case x:case A:return za(+e,+t);case _:return e.name==t.name&&e.message==t.message;case R:case T:return e==t+"";case k:var u=ln;case P:var s=1&r;if(u||(u=fn),e.size!=t.size&&!s)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var c=oi(u(e),u(t),r,o,i,a);return a.delete(e),c;case O:if(Bn)return Bn.call(e)==Bn.call(t)}return!1}(e,t,l,r,o,i,a);if(!(1&r)){var m=d&&Le.call(e,"__wrapped__"),h=f&&Le.call(t,"__wrapped__");if(m||h){var v=m?e.value():e,g=h?t.value():t;return a||(a=new Jn),i(v,g,r,o,a)}}return!!p&&(a||(a=new Jn),function(e,t,r,o,i,a){var u=1&r,s=ai(e),l=s.length,c=ai(t),d=c.length;if(l!=d&&!u)return!1;for(var f=l;f--;){var p=s[f];if(!(u?p in t:Le.call(t,p)))return!1}var m=a.get(e),h=a.get(t);if(m&&h)return m==t&&h==e;var v=!0;a.set(e,t),a.set(t,e);for(var g=u;++f<l;){var y=e[p=s[f]],b=t[p];if(o)var w=u?o(b,y,p,t,e,a):o(y,b,p,e,t,a);if(!(w===n?y===b||i(y,b,r,o,a):w)){v=!1;break}g||(g="constructor"==p)}if(v&&!g){var x=e.constructor,_=t.constructor;x!=_&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof _&&_ instanceof _)&&(v=!1)}return a.delete(e),a.delete(t),v}(e,t,r,o,i,a))}(e,t,r,o,jr,i))}function qr(e,t,r,o){var i=r.length,a=i,u=!o;if(null==e)return!a;for(e=Re(e);i--;){var s=r[i];if(u&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){var l=(s=r[i])[0],c=e[l],d=s[1];if(u&&s[2]){if(c===n&&!(l in e))return!1}else{var f=new Jn;if(o)var p=o(c,d,l,e,t,f);if(!(p===n?jr(d,c,3,o,f):p))return!1}}return!0}function Dr(e){return!(!nu(e)||function(e){return!!Be&&Be in e}(e))&&(Za(e)?Ue:ye).test(Bi(e))}function Mr(e){return"function"==typeof e?e:null==e?is:"object"==typeof e?Wa(e)?Fr(e[0],e[1]):zr(e):ms(e)}function Lr(e){if(!Ai(e))return bn(e);var t=[];for(var n in Re(e))Le.call(e,n)&&"constructor"!=n&&t.push(n);return t}function $r(e){if(!nu(e))return function(e){var t=[];if(null!=e)for(var n in Re(e))t.push(n);return t}(e);var t=Ai(e),n=[];for(var r in e)"constructor"==r&&(t||!Le.call(e,r))||n.push(r);return n}function Br(e,t){return e<t}function Vr(e,t){var n=-1,r=Ka(e)?Se(e.length):[];return mr(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}function zr(e){var t=pi(e);return 1==t.length&&t[0][2]?Ii(t[0][0],t[0][1]):function(n){return n===e||qr(n,e,t)}}function Fr(e,t){return Ei(e)&&Ci(t)?Ii($i(e),t):function(r){var o=Iu(r,e);return o===n&&o===t?Ru(r,e):jr(t,o,3)}}function Ur(e,t,r,o,i){e!==t&&wr(t,(function(a,u){if(i||(i=new Jn),nu(a))!function(e,t,r,o,i,a,u){var s=Ti(e,r),l=Ti(t,r),c=u.get(l);if(c)nr(e,r,c);else{var d=a?a(s,l,r+"",e,t,u):n,f=d===n;if(f){var p=Wa(l),m=!p&&Xa(l),h=!p&&!m&&du(l);d=l,p||m||h?Wa(s)?d=s:Qa(s)?d=Oo(s):m?(f=!1,d=Ao(l,!0)):h?(f=!1,d=Io(l,!0)):d=[]:au(l)||Ga(l)?(d=s,Ga(s)?d=bu(s):(!nu(s)||Za(s))&&(d=bi(l))):f=!1}f&&(u.set(l,d),i(d,l,o,a,u),u.delete(l)),nr(e,r,d)}}(e,t,u,r,Ur,o,i);else{var s=o?o(Ti(e,u),a,u+"",e,t,i):n;s===n&&(s=a),nr(e,u,s)}}),ju)}function Gr(e,t){var r=e.length;if(r)return xi(t+=t<0?r:0,r)?e[t]:n}function Wr(e,t,n){t=t.length?qt(t,(function(e){return Wa(e)?function(t){return kr(t,1===e.length?e[0]:e)}:e})):[is];var r=-1;return t=qt(t,Zt(di())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Vr(e,(function(e,n,o){return{criteria:qt(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,u=n.length;++r<a;){var s=Ro(o[r],i[r]);if(s)return r>=u?s:s*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Hr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],u=kr(e,a);n(u,a)&&to(i,_o(a,e),u)}return i}function Kr(e,t,n,r){var o=r?Ut:Ft,i=-1,a=t.length,u=e;for(e===t&&(t=Oo(t)),n&&(u=qt(e,Zt(n)));++i<a;)for(var s=0,l=t[i],c=n?n(l):l;(s=o(u,c,s,r))>-1;)u!==e&&Ye.call(u,s,1),Ye.call(e,s,1);return e}function Qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;xi(o)?Ye.call(e,o,1):mo(e,o)}}return e}function Xr(e,t){return e+bt(Sn()*(t-e+1))}function Jr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=bt(t/2))&&(e+=e)}while(t);return n}function Yr(e,t){return ji(Ri(e,t,is),e+"")}function Zr(e){return Zn(zu(e))}function eo(e,t){var n=zu(e);return Mi(n,lr(t,0,n.length))}function to(e,t,r,o){if(!nu(e))return e;for(var i=-1,a=(t=_o(t,e)).length,u=a-1,s=e;null!=s&&++i<a;){var l=$i(t[i]),c=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=u){var d=s[l];(c=o?o(d,l,s):n)===n&&(c=nu(d)?d:xi(t[i+1])?[]:{})}rr(s,l,c),s=s[l]}return e}var no=On?function(e,t){return On.set(e,t),e}:is,ro=ct?function(e,t){return ct(e,"toString",{configurable:!0,enumerable:!1,value:ns(t),writable:!0})}:is;function oo(e){return Mi(zu(e))}function io(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Se(o);++r<o;)i[r]=e[r+t];return i}function ao(e,t){var n;return mr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function uo(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=v){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!cu(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return so(e,t,is,n)}function so(e,t,r,o){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var u=(t=r(t))!=t,s=null===t,l=cu(t),c=t===n;i<a;){var d=bt((i+a)/2),f=r(e[d]),p=f!==n,m=null===f,v=f==f,g=cu(f);if(u)var y=o||v;else y=c?v&&(o||p):s?v&&p&&(o||!m):l?v&&p&&!m&&(o||!g):!m&&!g&&(o?f<=t:f<t);y?i=d+1:a=d}return xn(a,h)}function lo(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],u=t?t(a):a;if(!n||!za(u,s)){var s=u;i[o++]=0===a?0:a}}return i}function co(e){return"number"==typeof e?e:cu(e)?p:+e}function fo(e){if("string"==typeof e)return e;if(Wa(e))return qt(e,fo)+"";if(cu(e))return Vn?Vn.call(e):"";var t=e+"";return"0"==t&&1/e==-d?"-0":t}function po(e,t,n){var r=-1,o=Nt,i=e.length,a=!0,u=[],s=u;if(n)a=!1,o=jt;else if(i>=200){var l=t?null:Yo(e);if(l)return fn(l);a=!1,o=tn,s=new Xn}else s=t?[]:u;e:for(;++r<i;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,a&&d==d){for(var f=s.length;f--;)if(s[f]===d)continue e;t&&s.push(d),u.push(c)}else o(s,d,n)||(s!==u&&s.push(d),u.push(c))}return u}function mo(e,t){return null==(e=Pi(e,t=_o(t,e)))||delete e[$i(Yi(t))]}function ho(e,t,n,r){return to(e,t,n(kr(e,t)),r)}function vo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?io(e,r?0:i,r?i+1:o):io(e,r?i+1:0,r?o:i)}function go(e,t){var n=e;return n instanceof Wn&&(n=n.value()),Mt(t,(function(e,t){return t.func.apply(t.thisArg,Dt([e],t.args))}),n)}function yo(e,t,n){var r=e.length;if(r<2)return r?po(e[0]):[];for(var o=-1,i=Se(r);++o<r;)for(var a=e[o],u=-1;++u<r;)u!=o&&(i[o]=pr(i[o]||a,e[u],t,n));return po(br(i,1),t,n)}function bo(e,t,r){for(var o=-1,i=e.length,a=t.length,u={};++o<i;){var s=o<a?t[o]:n;r(u,e[o],s)}return u}function wo(e){return Qa(e)?e:[]}function xo(e){return"function"==typeof e?e:is}function _o(e,t){return Wa(e)?e:Ei(e,t)?[e]:Li(wu(e))}var Eo=Yr;function So(e,t,r){var o=e.length;return r=r===n?o:r,!t&&r>=o?e:io(e,t,r)}var ko=pt||function(e){return ht.clearTimeout(e)};function Ao(e,t){if(t)return e.slice();var n=e.length,r=Ke?Ke(n):new e.constructor(n);return e.copy(r),r}function Co(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function Io(e,t){var n=t?Co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ro(e,t){if(e!==t){var r=e!==n,o=null===e,i=e==e,a=cu(e),u=t!==n,s=null===t,l=t==t,c=cu(t);if(!s&&!c&&!a&&e>t||a&&u&&l&&!s&&!c||o&&u&&l||!r&&l||!i)return 1;if(!o&&!a&&!c&&e<t||c&&r&&i&&!o&&!a||s&&r&&i||!u&&i||!l)return-1}return 0}function Po(e,t,n,r){for(var o=-1,i=e.length,a=n.length,u=-1,s=t.length,l=wn(i-a,0),c=Se(s+l),d=!r;++u<s;)c[u]=t[u];for(;++o<a;)(d||o<i)&&(c[n[o]]=e[o]);for(;l--;)c[u++]=e[o++];return c}function To(e,t,n,r){for(var o=-1,i=e.length,a=-1,u=n.length,s=-1,l=t.length,c=wn(i-u,0),d=Se(c+l),f=!r;++o<c;)d[o]=e[o];for(var p=o;++s<l;)d[p+s]=t[s];for(;++a<u;)(f||o<i)&&(d[p+n[a]]=e[o++]);return d}function Oo(e,t){var n=-1,r=e.length;for(t||(t=Se(r));++n<r;)t[n]=e[n];return t}function No(e,t,r,o){var i=!r;r||(r={});for(var a=-1,u=t.length;++a<u;){var s=t[a],l=o?o(r[s],e[s],s,r,e):n;l===n&&(l=e[s]),i?ur(r,s,l):rr(r,s,l)}return r}function jo(e,t){return function(n,r){var o=Wa(n)?It:ir,i=t?t():{};return o(n,e,di(r,2),i)}}function qo(e){return Yr((function(t,r){var o=-1,i=r.length,a=i>1?r[i-1]:n,u=i>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(i--,a):n,u&&_i(r[0],r[1],u)&&(a=i<3?n:a,i=1),t=Re(t);++o<i;){var s=r[o];s&&e(t,s,o,a)}return t}))}function Do(e,t){return function(n,r){if(null==n)return n;if(!Ka(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Re(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Mo(e){return function(t,n,r){for(var o=-1,i=Re(t),a=r(t),u=a.length;u--;){var s=a[e?u:++o];if(!1===n(i[s],s,i))break}return t}}function Lo(e){return function(t){var r=sn(t=wu(t))?mn(t):n,o=r?r[0]:t.charAt(0),i=r?So(r,1).join(""):t.slice(1);return o[e]()+i}}function $o(e){return function(t){return Mt(Zu(Gu(t).replace(et,"")),e,"")}}function Bo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Fn(e.prototype),r=e.apply(n,t);return nu(r)?r:n}}function Vo(e){return function(t,r,o){var i=Re(t);if(!Ka(t)){var a=di(r,3);t=Nu(t),r=function(e){return a(i[e],e,i)}}var u=e(t,r,o);return u>-1?i[a?t[u]:u]:n}}function zo(e){return ii((function(t){var o=t.length,i=o,a=Gn.prototype.thru;for(e&&t.reverse();i--;){var u=t[i];if("function"!=typeof u)throw new Oe(r);if(a&&!s&&"wrapper"==li(u))var s=new Gn([],!0)}for(i=s?i:o;++i<o;){var l=li(u=t[i]),c="wrapper"==l?si(u):n;s=c&&Si(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?s[li(c[0])].apply(s,c[3]):1==u.length&&Si(u)?s[l]():s.thru(u)}return function(){var e=arguments,n=e[0];if(s&&1==e.length&&Wa(n))return s.plant(n).value();for(var r=0,i=o?t[r].apply(this,e):n;++r<o;)i=t[r].call(this,i);return i}}))}function Fo(e,t,r,o,i,a,u,s,c,d){var f=t&l,p=1&t,m=2&t,h=24&t,v=512&t,g=m?n:Bo(e);return function l(){for(var y=arguments.length,b=Se(y),w=y;w--;)b[w]=arguments[w];if(h)var x=ci(l),_=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(b,x);if(o&&(b=Po(b,o,i,h)),a&&(b=To(b,a,u,h)),y-=_,h&&y<d){var E=dn(b,x);return Xo(e,t,Fo,l.placeholder,r,b,E,s,c,d-y)}var S=p?r:this,k=m?S[e]:e;return y=b.length,s?b=function(e,t){for(var r=e.length,o=xn(t.length,r),i=Oo(e);o--;){var a=t[o];e[o]=xi(a,r)?i[a]:n}return e}(b,s):v&&y>1&&b.reverse(),f&&c<y&&(b.length=c),this&&this!==ht&&this instanceof l&&(k=g||Bo(k)),k.apply(S,b)}}function Uo(e,t){return function(n,r){return function(e,t,n,r){return _r(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Go(e,t){return function(r,o){var i;if(r===n&&o===n)return t;if(r!==n&&(i=r),o!==n){if(i===n)return o;"string"==typeof r||"string"==typeof o?(r=fo(r),o=fo(o)):(r=co(r),o=co(o)),i=e(r,o)}return i}}function Wo(e){return ii((function(t){return t=qt(t,Zt(di())),Yr((function(n){var r=this;return e(t,(function(e){return Ct(e,r,n)}))}))}))}function Ho(e,t){var r=(t=t===n?" ":fo(t)).length;if(r<2)return r?Jr(t,e):t;var o=Jr(t,gt(e/pn(t)));return sn(t)?So(mn(o),0,e).join(""):o.slice(0,e)}function Ko(e){return function(t,r,o){return o&&"number"!=typeof o&&_i(t,r,o)&&(r=o=n),t=hu(t),r===n?(r=t,t=0):r=hu(r),function(e,t,n,r){for(var o=-1,i=wn(gt((t-e)/(n||1)),0),a=Se(i);i--;)a[r?i:++o]=e,e+=n;return a}(t,r,o=o===n?t<r?1:-1:hu(o),e)}}function Qo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=yu(t),n=yu(n)),e(t,n)}}function Xo(e,t,r,o,i,a,l,c,d,f){var p=8&t;t|=p?u:s,4&(t&=~(p?s:u))||(t&=-4);var m=[e,t,i,p?a:n,p?l:n,p?n:a,p?n:l,c,d,f],h=r.apply(n,m);return Si(e)&&Oi(h,m),h.placeholder=o,qi(h,e,t)}function Jo(e){var t=Ie[e];return function(e,n){if(e=yu(e),(n=null==n?0:xn(vu(n),292))&&Kt(e)){var r=(wu(e)+"e").split("e");return+((r=(wu(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Yo=Rn&&1/fn(new Rn([,-0]))[1]==d?function(e){return new Rn(e)}:cs;function Zo(e){return function(t){var n=gi(t);return n==k?ln(t):n==P?function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}(t):function(e,t){return qt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function ei(e,t,o,d,f,p,m,h){var v=2&t;if(!v&&"function"!=typeof e)throw new Oe(r);var g=d?d.length:0;if(g||(t&=-97,d=f=n),m=m===n?m:wn(vu(m),0),h=h===n?h:vu(h),g-=f?f.length:0,t&s){var y=d,b=f;d=f=n}var w=v?n:si(e),x=[e,t,o,d,f,y,b,p,m,h];if(w&&function(e,t){var n=e[1],r=t[1],o=n|r,a=o<131,u=r==l&&8==n||r==l&&n==c&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!u)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var s=t[3];if(s){var d=e[3];e[3]=d?Po(d,s,t[4]):s,e[4]=d?dn(e[3],i):t[4]}(s=t[5])&&(d=e[5],e[5]=d?To(d,s,t[6]):s,e[6]=d?dn(e[5],i):t[6]),(s=t[7])&&(e[7]=s),r&l&&(e[8]=null==e[8]?t[8]:xn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(x,w),e=x[0],t=x[1],o=x[2],d=x[3],f=x[4],!(h=x[9]=x[9]===n?v?0:e.length:wn(x[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||t==a?function(e,t,r){var o=Bo(e);return function i(){for(var a=arguments.length,u=Se(a),s=a,l=ci(i);s--;)u[s]=arguments[s];var c=a<3&&u[0]!==l&&u[a-1]!==l?[]:dn(u,l);return(a-=c.length)<r?Xo(e,t,Fo,i.placeholder,n,u,c,n,n,r-a):Ct(this&&this!==ht&&this instanceof i?o:e,this,u)}}(e,t,h):t!=u&&33!=t||f.length?Fo.apply(n,x):function(e,t,n,r){var o=1&t,i=Bo(e);return function t(){for(var a=-1,u=arguments.length,s=-1,l=r.length,c=Se(l+u),d=this&&this!==ht&&this instanceof t?i:e;++s<l;)c[s]=r[s];for(;u--;)c[s++]=arguments[++a];return Ct(d,o?n:this,c)}}(e,t,o,d);else var _=function(e,t,n){var r=1&t,o=Bo(e);return function t(){return(this&&this!==ht&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,o);return qi((w?no:Oi)(_,x),e,t)}function ti(e,t,r,o){return e===n||za(e,qe[r])&&!Le.call(o,r)?t:e}function ni(e,t,r,o,i,a){return nu(e)&&nu(t)&&(a.set(t,e),Ur(e,t,n,ni,a),a.delete(t)),e}function ri(e){return au(e)?n:e}function oi(e,t,r,o,i,a){var u=1&r,s=e.length,l=t.length;if(s!=l&&!(u&&l>s))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var f=-1,p=!0,m=2&r?new Xn:n;for(a.set(e,t),a.set(t,e);++f<s;){var h=e[f],v=t[f];if(o)var g=u?o(v,h,f,t,e,a):o(h,v,f,e,t,a);if(g!==n){if(g)continue;p=!1;break}if(m){if(!$t(t,(function(e,t){if(!tn(m,t)&&(h===e||i(h,e,r,o,a)))return m.push(t)}))){p=!1;break}}else if(h!==v&&!i(h,v,r,o,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function ii(e){return ji(Ri(e,n,Hi),e+"")}function ai(e){return Ar(e,Nu,hi)}function ui(e){return Ar(e,ju,vi)}var si=On?function(e){return On.get(e)}:cs;function li(e){for(var t=e.name+"",n=Nn[t],r=Le.call(Nn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ci(e){return(Le.call(zn,"placeholder")?zn:e).placeholder}function di(){var e=zn.iteratee||as;return e=e===as?Mr:e,arguments.length?e(arguments[0],arguments[1]):e}function fi(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function pi(e){for(var t=Nu(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ci(o)]}return t}function mi(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return Dr(r)?r:n}var hi=wt?function(e){return null==e?[]:(e=Re(e),Ot(wt(e),(function(t){return Je.call(e,t)})))}:gs,vi=wt?function(e){for(var t=[];e;)Dt(t,hi(e)),e=Qe(e);return t}:gs,gi=Cr;function yi(e,t,n){for(var r=-1,o=(t=_o(t,e)).length,i=!1;++r<o;){var a=$i(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&tu(o)&&xi(a,o)&&(Wa(e)||Ga(e))}function bi(e){return"function"!=typeof e.constructor||Ai(e)?{}:Fn(Qe(e))}function wi(e){return Wa(e)||Ga(e)||!!(Ze&&e&&e[Ze])}function xi(e,t){var n=typeof e;return!!(t=t??f)&&("number"==n||"symbol"!=n&&we.test(e))&&e>-1&&e%1==0&&e<t}function _i(e,t,n){if(!nu(n))return!1;var r=typeof t;return!!("number"==r?Ka(n)&&xi(t,n.length):"string"==r&&t in n)&&za(n[t],e)}function Ei(e,t){if(Wa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cu(e))||ne.test(e)||!te.test(e)||null!=t&&e in Re(t)}function Si(e){var t=li(e),n=zn[t];if("function"!=typeof n||!(t in Wn.prototype))return!1;if(e===n)return!0;var r=si(n);return!!r&&e===r[0]}(An&&gi(new An(new ArrayBuffer(1)))!=q||Cn&&gi(new Cn)!=k||In&&gi(In.resolve())!=I||Rn&&gi(new Rn)!=P||Pn&&gi(new Pn)!=N)&&(gi=function(e){var t=Cr(e),r=t==C?e.constructor:n,o=r?Bi(r):"";if(o)switch(o){case jn:return q;case qn:return k;case Dn:return I;case Mn:return P;case Ln:return N}return t});var ki=De?Za:ys;function Ai(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||qe)}function Ci(e){return e==e&&!nu(e)}function Ii(e,t){return function(r){return null!=r&&r[e]===t&&(t!==n||e in Re(r))}}function Ri(e,t,r){return t=wn(t===n?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=wn(n.length-t,0),a=Se(i);++o<i;)a[o]=n[t+o];o=-1;for(var u=Se(t+1);++o<t;)u[o]=n[o];return u[t]=r(a),Ct(e,this,u)}}function Pi(e,t){return t.length<2?e:kr(e,io(t,0,-1))}function Ti(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Oi=Di(no),Ni=vt||function(e,t){return ht.setTimeout(e,t)},ji=Di(ro);function qi(e,t,n){var r=t+"";return ji(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Rt(g,(function(n){var r="_."+n[0];t&n[1]&&!Nt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(le);return t?t[1].split(ce):[]}(r),n)))}function Di(e){var t=0,r=0;return function(){var o=_n(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Mi(e,t){var r=-1,o=e.length,i=o-1;for(t=t===n?o:t;++r<t;){var a=Xr(r,i),u=e[a];e[a]=e[r],e[r]=u}return e.length=t,e}var Li=function(e){var t=Da(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,o){t.push(r?o.replace(pe,"$1"):n||e)})),t}));function $i(e){if("string"==typeof e||cu(e))return e;var t=e+"";return"0"==t&&1/e==-d?"-0":t}function Bi(e){if(null!=e){try{return Me.call(e)}catch{}try{return e+""}catch{}}return""}function Vi(e){if(e instanceof Wn)return e.clone();var t=new Gn(e.__wrapped__,e.__chain__);return t.__actions__=Oo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var zi=Yr((function(e,t){return Qa(e)?pr(e,br(t,1,Qa,!0)):[]})),Fi=Yr((function(e,t){var r=Yi(t);return Qa(r)&&(r=n),Qa(e)?pr(e,br(t,1,Qa,!0),di(r,2)):[]})),Ui=Yr((function(e,t){var r=Yi(t);return Qa(r)&&(r=n),Qa(e)?pr(e,br(t,1,Qa,!0),n,r):[]}));function Gi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:vu(n);return o<0&&(o=wn(r+o,0)),zt(e,di(t,3),o)}function Wi(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o-1;return r!==n&&(i=vu(r),i=r<0?wn(o+i,0):xn(i,o-1)),zt(e,di(t,3),i,!0)}function Hi(e){return null!=e&&e.length?br(e,1):[]}function Ki(e){return e&&e.length?e[0]:n}var Qi=Yr((function(e){var t=qt(e,wo);return t.length&&t[0]===e[0]?Tr(t):[]})),Xi=Yr((function(e){var t=Yi(e),r=qt(e,wo);return t===Yi(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Tr(r,di(t,2)):[]})),Ji=Yr((function(e){var t=Yi(e),r=qt(e,wo);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?Tr(r,n,t):[]}));function Yi(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Zi=Yr(ea);function ea(e,t){return e&&e.length&&t&&t.length?Kr(e,t):e}var ta=ii((function(e,t){var n=null==e?0:e.length,r=sr(e,t);return Qr(e,qt(t,(function(e){return xi(e,n)?+e:e})).sort(Ro)),r}));function na(e){return null==e?e:kn.call(e)}var ra=Yr((function(e){return po(br(e,1,Qa,!0))})),oa=Yr((function(e){var t=Yi(e);return Qa(t)&&(t=n),po(br(e,1,Qa,!0),di(t,2))})),ia=Yr((function(e){var t=Yi(e);return t="function"==typeof t?t:n,po(br(e,1,Qa,!0),n,t)}));function aa(e){if(!e||!e.length)return[];var t=0;return e=Ot(e,(function(e){if(Qa(e))return t=wn(e.length,t),!0})),Jt(t,(function(t){return qt(e,Ht(t))}))}function ua(e,t){if(!e||!e.length)return[];var r=aa(e);return null==t?r:qt(r,(function(e){return Ct(t,n,e)}))}var sa=Yr((function(e,t){return Qa(e)?pr(e,t):[]})),la=Yr((function(e){return yo(Ot(e,Qa))})),ca=Yr((function(e){var t=Yi(e);return Qa(t)&&(t=n),yo(Ot(e,Qa),di(t,2))})),da=Yr((function(e){var t=Yi(e);return t="function"==typeof t?t:n,yo(Ot(e,Qa),n,t)})),fa=Yr(aa),pa=Yr((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,ua(e,r)}));function ma(e){var t=zn(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var va=ii((function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,i=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&o instanceof Wn&&xi(r)?((o=o.slice(r,+r+(t?1:0))).__actions__.push({func:ha,args:[i],thisArg:n}),new Gn(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(i)})),ga=jo((function(e,t,n){Le.call(e,n)?++e[n]:ur(e,n,1)})),ya=Vo(Gi),ba=Vo(Wi);function wa(e,t){return(Wa(e)?Rt:mr)(e,di(t,3))}function xa(e,t){return(Wa(e)?Pt:hr)(e,di(t,3))}var _a=jo((function(e,t,n){Le.call(e,n)?e[n].push(t):ur(e,n,[t])})),Ea=Yr((function(e,t,n){var r=-1,o="function"==typeof t,i=Ka(e)?Se(e.length):[];return mr(e,(function(e){i[++r]=o?Ct(t,e,n):Or(e,t,n)})),i})),Sa=jo((function(e,t,n){ur(e,n,t)}));function ka(e,t){return(Wa(e)?qt:Vr)(e,di(t,3))}var Aa=jo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Ca=Yr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&_i(e,t[0],t[1])?t=[]:n>2&&_i(t[0],t[1],t[2])&&(t=[t[0]]),Wr(e,br(t,1),[])})),Ia=mt||function(){return ht.Date.now()};function Ra(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,ei(e,l,n,n,n,n,t)}function Pa(e,t){var o;if("function"!=typeof t)throw new Oe(r);return e=vu(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=n),o}}var Ta=Yr((function(e,t,n){var r=1;if(n.length){var o=dn(n,ci(Ta));r|=u}return ei(e,r,t,n,o)})),Oa=Yr((function(e,t,n){var r=3;if(n.length){var o=dn(n,ci(Oa));r|=u}return ei(t,r,e,n,o)}));function Na(e,t,o){var i,a,u,s,l,c,d=0,f=!1,p=!1,m=!0;if("function"!=typeof e)throw new Oe(r);function h(t){var r=i,o=a;return i=a=n,d=t,s=e.apply(o,r)}function v(e){var r=e-c;return c===n||r>=t||r<0||p&&e-d>=u}function g(){var e=Ia();if(v(e))return y(e);l=Ni(g,function(e){var n=t-(e-c);return p?xn(n,u-(e-d)):n}(e))}function y(e){return l=n,m&&i?h(e):(i=a=n,s)}function b(){var e=Ia(),r=v(e);if(i=arguments,a=this,c=e,r){if(l===n)return function(e){return d=e,l=Ni(g,t),f?h(e):s}(c);if(p)return ko(l),l=Ni(g,t),h(c)}return l===n&&(l=Ni(g,t)),s}return t=yu(t)||0,nu(o)&&(f=!!o.leading,u=(p="maxWait"in o)?wn(yu(o.maxWait)||0,t):u,m="trailing"in o?!!o.trailing:m),b.cancel=function(){l!==n&&ko(l),d=0,i=c=a=l=n},b.flush=function(){return l===n?s:y(Ia())},b}var ja=Yr((function(e,t){return fr(e,1,t)})),qa=Yr((function(e,t,n){return fr(e,yu(t)||0,n)}));function Da(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Oe(r);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Da.Cache||Qn),n}function Ma(e){if("function"!=typeof e)throw new Oe(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Da.Cache=Qn;var La=Eo((function(e,t){var n=(t=1==t.length&&Wa(t[0])?qt(t[0],Zt(di())):qt(br(t,1),Zt(di()))).length;return Yr((function(r){for(var o=-1,i=xn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return Ct(e,this,r)}))})),$a=Yr((function(e,t){var r=dn(t,ci($a));return ei(e,u,n,t,r)})),Ba=Yr((function(e,t){var r=dn(t,ci(Ba));return ei(e,s,n,t,r)})),Va=ii((function(e,t){return ei(e,c,n,n,n,t)}));function za(e,t){return e===t||e!=e&&t!=t}var Fa=Qo(Ir),Ua=Qo((function(e,t){return e>=t})),Ga=Nr(function(){return arguments}())?Nr:function(e){return ru(e)&&Le.call(e,"callee")&&!Je.call(e,"callee")},Wa=Se.isArray,Ha=xt?Zt(xt):function(e){return ru(e)&&Cr(e)==j};function Ka(e){return null!=e&&tu(e.length)&&!Za(e)}function Qa(e){return ru(e)&&Ka(e)}var Xa=Bt||ys,Ja=_t?Zt(_t):function(e){return ru(e)&&Cr(e)==x};function Ya(e){if(!ru(e))return!1;var t=Cr(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!au(e)}function Za(e){if(!nu(e))return!1;var t=Cr(e);return t==E||t==S||"[object AsyncFunction]"==t||"[object Proxy]"==t}function eu(e){return"number"==typeof e&&e==vu(e)}function tu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function nu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ru(e){return null!=e&&"object"==typeof e}var ou=Et?Zt(Et):function(e){return ru(e)&&gi(e)==k};function iu(e){return"number"==typeof e||ru(e)&&Cr(e)==A}function au(e){if(!ru(e)||Cr(e)!=C)return!1;var t=Qe(e);if(null===t)return!0;var n=Le.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Me.call(n)==ze}var uu=St?Zt(St):function(e){return ru(e)&&Cr(e)==R},su=kt?Zt(kt):function(e){return ru(e)&&gi(e)==P};function lu(e){return"string"==typeof e||!Wa(e)&&ru(e)&&Cr(e)==T}function cu(e){return"symbol"==typeof e||ru(e)&&Cr(e)==O}var du=At?Zt(At):function(e){return ru(e)&&tu(e.length)&&!!st[Cr(e)]},fu=Qo(Br),pu=Qo((function(e,t){return e<=t}));function mu(e){if(!e)return[];if(Ka(e))return lu(e)?mn(e):Oo(e);if(nt&&e[nt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[nt]());var t=gi(e);return(t==k?ln:t==P?fn:zu)(e)}function hu(e){return e?(e=yu(e))===d||e===-d?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function vu(e){var t=hu(e),n=t%1;return t==t?n?t-n:t:0}function gu(e){return e?lr(vu(e),0,m):0}function yu(e){if("number"==typeof e)return e;if(cu(e))return p;if(nu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=nu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Yt(e);var n=ge.test(e);return n||be.test(e)?ft(e.slice(2),n?2:8):ve.test(e)?p:+e}function bu(e){return No(e,ju(e))}function wu(e){return null==e?"":fo(e)}var xu=qo((function(e,t){if(Ai(t)||Ka(t))No(t,Nu(t),e);else for(var n in t)Le.call(t,n)&&rr(e,n,t[n])})),_u=qo((function(e,t){No(t,ju(t),e)})),Eu=qo((function(e,t,n,r){No(t,ju(t),e,r)})),Su=qo((function(e,t,n,r){No(t,Nu(t),e,r)})),ku=ii(sr),Au=Yr((function(e,t){e=Re(e);var r=-1,o=t.length,i=o>2?t[2]:n;for(i&&_i(t[0],t[1],i)&&(o=1);++r<o;)for(var a=t[r],u=ju(a),s=-1,l=u.length;++s<l;){var c=u[s],d=e[c];(d===n||za(d,qe[c])&&!Le.call(e,c))&&(e[c]=a[c])}return e})),Cu=Yr((function(e){return e.push(n,ni),Ct(Du,n,e)}));function Iu(e,t,r){var o=null==e?n:kr(e,t);return o===n?r:o}function Ru(e,t){return null!=e&&yi(e,t,Pr)}var Pu=Uo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ve.call(t)),e[t]=n}),ns(is)),Tu=Uo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ve.call(t)),Le.call(e,t)?e[t].push(n):e[t]=[n]}),di),Ou=Yr(Or);function Nu(e){return Ka(e)?Yn(e):Lr(e)}function ju(e){return Ka(e)?Yn(e,!0):$r(e)}var qu=qo((function(e,t,n){Ur(e,t,n)})),Du=qo((function(e,t,n,r){Ur(e,t,n,r)})),Mu=ii((function(e,t){var n={};if(null==e)return n;var r=!1;t=qt(t,(function(t){return t=_o(t,e),r||(r=t.length>1),t})),No(e,ui(e),n),r&&(n=cr(n,7,ri));for(var o=t.length;o--;)mo(n,t[o]);return n})),Lu=ii((function(e,t){return null==e?{}:function(e,t){return Hr(e,t,(function(t,n){return Ru(e,n)}))}(e,t)}));function $u(e,t){if(null==e)return{};var n=qt(ui(e),(function(e){return[e]}));return t=di(t),Hr(e,n,(function(e,n){return t(e,n[0])}))}var Bu=Zo(Nu),Vu=Zo(ju);function zu(e){return null==e?[]:en(e,Nu(e))}var Fu=$o((function(e,t,n){return t=t.toLowerCase(),e+(n?Uu(t):t)}));function Uu(e){return Yu(wu(e).toLowerCase())}function Gu(e){return(e=wu(e))&&e.replace(xe,on).replace(tt,"")}var Wu=$o((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Hu=$o((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ku=Lo("toLowerCase"),Qu=$o((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Xu=$o((function(e,t,n){return e+(n?" ":"")+Yu(t)})),Ju=$o((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Yu=Lo("toUpperCase");function Zu(e,t,r){return e=wu(e),(t=r?n:t)===n?function(e){return it.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var es=Yr((function(e,t){try{return Ct(e,n,t)}catch(e){return Ya(e)?e:new Ae(e)}})),ts=ii((function(e,t){return Rt(t,(function(t){t=$i(t),ur(e,t,Ta(e[t],e))})),e}));function ns(e){return function(){return e}}var rs=zo(),os=zo(!0);function is(e){return e}function as(e){return Mr("function"==typeof e?e:cr(e,1))}var us=Yr((function(e,t){return function(n){return Or(n,e,t)}})),ss=Yr((function(e,t){return function(n){return Or(e,n,t)}}));function ls(e,t,n){var r=Nu(t),o=Sr(t,r);null==n&&(!nu(t)||!o.length&&r.length)&&(n=t,t=e,e=this,o=Sr(t,Nu(t)));var i=!(nu(n)&&"chain"in n&&!n.chain),a=Za(e);return Rt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Oo(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Dt([this.value()],arguments))})})),e}function cs(){}var ds=Wo(qt),fs=Wo(Tt),ps=Wo($t);function ms(e){return Ei(e)?Ht($i(e)):function(e){return function(t){return kr(t,e)}}(e)}var hs=Ko(),vs=Ko(!0);function gs(){return[]}function ys(){return!1}var bs=Go((function(e,t){return e+t}),0),ws=Jo("ceil"),xs=Go((function(e,t){return e/t}),1),_s=Jo("floor"),Es=Go((function(e,t){return e*t}),1),Ss=Jo("round"),ks=Go((function(e,t){return e-t}),0);return zn.after=function(e,t){if("function"!=typeof t)throw new Oe(r);return e=vu(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=Ra,zn.assign=xu,zn.assignIn=_u,zn.assignInWith=Eu,zn.assignWith=Su,zn.at=ku,zn.before=Pa,zn.bind=Ta,zn.bindAll=ts,zn.bindKey=Oa,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Wa(e)?e:[e]},zn.chain=ma,zn.chunk=function(e,t,r){t=(r?_i(e,t,r):t===n)?1:wn(vu(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,a=0,u=Se(gt(o/t));i<o;)u[a++]=io(e,i,i+=t);return u},zn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},zn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=Se(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Dt(Wa(n)?Oo(n):[n],br(t,1))},zn.cond=function(e){var t=null==e?0:e.length,n=di();return e=t?qt(e,(function(e){if("function"!=typeof e[1])throw new Oe(r);return[n(e[0]),e[1]]})):[],Yr((function(n){for(var r=-1;++r<t;){var o=e[r];if(Ct(o[0],this,n))return Ct(o[1],this,n)}}))},zn.conforms=function(e){return function(e){var t=Nu(e);return function(n){return dr(n,e,t)}}(cr(e,1))},zn.constant=ns,zn.countBy=ga,zn.create=function(e,t){var n=Fn(e);return null==t?n:ar(n,t)},zn.curry=function e(t,r,o){var i=ei(t,8,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},zn.curryRight=function e(t,r,o){var i=ei(t,a,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},zn.debounce=Na,zn.defaults=Au,zn.defaultsDeep=Cu,zn.defer=ja,zn.delay=qa,zn.difference=zi,zn.differenceBy=Fi,zn.differenceWith=Ui,zn.drop=function(e,t,r){var o=null==e?0:e.length;return o?io(e,(t=r||t===n?1:vu(t))<0?0:t,o):[]},zn.dropRight=function(e,t,r){var o=null==e?0:e.length;return o?io(e,0,(t=o-(t=r||t===n?1:vu(t)))<0?0:t):[]},zn.dropRightWhile=function(e,t){return e&&e.length?vo(e,di(t,3),!0,!0):[]},zn.dropWhile=function(e,t){return e&&e.length?vo(e,di(t,3),!0):[]},zn.fill=function(e,t,r,o){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&_i(e,t,r)&&(r=0,o=i),function(e,t,r,o){var i=e.length;for((r=vu(r))<0&&(r=-r>i?0:i+r),(o=o===n||o>i?i:vu(o))<0&&(o+=i),o=r>o?0:gu(o);r<o;)e[r++]=t;return e}(e,t,r,o)):[]},zn.filter=function(e,t){return(Wa(e)?Ot:yr)(e,di(t,3))},zn.flatMap=function(e,t){return br(ka(e,t),1)},zn.flatMapDeep=function(e,t){return br(ka(e,t),d)},zn.flatMapDepth=function(e,t,r){return r=r===n?1:vu(r),br(ka(e,t),r)},zn.flatten=Hi,zn.flattenDeep=function(e){return null!=e&&e.length?br(e,d):[]},zn.flattenDepth=function(e,t){return null!=e&&e.length?br(e,t=t===n?1:vu(t)):[]},zn.flip=function(e){return ei(e,512)},zn.flow=rs,zn.flowRight=os,zn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},zn.functions=function(e){return null==e?[]:Sr(e,Nu(e))},zn.functionsIn=function(e){return null==e?[]:Sr(e,ju(e))},zn.groupBy=_a,zn.initial=function(e){return null!=e&&e.length?io(e,0,-1):[]},zn.intersection=Qi,zn.intersectionBy=Xi,zn.intersectionWith=Ji,zn.invert=Pu,zn.invertBy=Tu,zn.invokeMap=Ea,zn.iteratee=as,zn.keyBy=Sa,zn.keys=Nu,zn.keysIn=ju,zn.map=ka,zn.mapKeys=function(e,t){var n={};return t=di(t,3),_r(e,(function(e,r,o){ur(n,t(e,r,o),e)})),n},zn.mapValues=function(e,t){var n={};return t=di(t,3),_r(e,(function(e,r,o){ur(n,r,t(e,r,o))})),n},zn.matches=function(e){return zr(cr(e,1))},zn.matchesProperty=function(e,t){return Fr(e,cr(t,1))},zn.memoize=Da,zn.merge=qu,zn.mergeWith=Du,zn.method=us,zn.methodOf=ss,zn.mixin=ls,zn.negate=Ma,zn.nthArg=function(e){return e=vu(e),Yr((function(t){return Gr(t,e)}))},zn.omit=Mu,zn.omitBy=function(e,t){return $u(e,Ma(di(t)))},zn.once=function(e){return Pa(2,e)},zn.orderBy=function(e,t,r,o){return null==e?[]:(Wa(t)||(t=null==t?[]:[t]),Wa(r=o?n:r)||(r=null==r?[]:[r]),Wr(e,t,r))},zn.over=ds,zn.overArgs=La,zn.overEvery=fs,zn.overSome=ps,zn.partial=$a,zn.partialRight=Ba,zn.partition=Aa,zn.pick=Lu,zn.pickBy=$u,zn.property=ms,zn.propertyOf=function(e){return function(t){return null==e?n:kr(e,t)}},zn.pull=Zi,zn.pullAll=ea,zn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Kr(e,t,di(n,2)):e},zn.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Kr(e,t,n,r):e},zn.pullAt=ta,zn.range=hs,zn.rangeRight=vs,zn.rearg=Va,zn.reject=function(e,t){return(Wa(e)?Ot:yr)(e,Ma(di(t,3)))},zn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=di(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Qr(e,o),n},zn.rest=function(e,t){if("function"!=typeof e)throw new Oe(r);return Yr(e,t=t===n?t:vu(t))},zn.reverse=na,zn.sampleSize=function(e,t,r){return t=(r?_i(e,t,r):t===n)?1:vu(t),(Wa(e)?er:eo)(e,t)},zn.set=function(e,t,n){return null==e?e:to(e,t,n)},zn.setWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:to(e,t,r,o)},zn.shuffle=function(e){return(Wa(e)?tr:oo)(e)},zn.slice=function(e,t,r){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&_i(e,t,r)?(t=0,r=o):(t=null==t?0:vu(t),r=r===n?o:vu(r)),io(e,t,r)):[]},zn.sortBy=Ca,zn.sortedUniq=function(e){return e&&e.length?lo(e):[]},zn.sortedUniqBy=function(e,t){return e&&e.length?lo(e,di(t,2)):[]},zn.split=function(e,t,r){return r&&"number"!=typeof r&&_i(e,t,r)&&(t=r=n),(r=r===n?m:r>>>0)?(e=wu(e))&&("string"==typeof t||null!=t&&!uu(t))&&!(t=fo(t))&&sn(e)?So(mn(e),0,r):e.split(t,r):[]},zn.spread=function(e,t){if("function"!=typeof e)throw new Oe(r);return t=null==t?0:wn(vu(t),0),Yr((function(n){var r=n[t],o=So(n,0,t);return r&&Dt(o,r),Ct(e,this,o)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?io(e,1,t):[]},zn.take=function(e,t,r){return e&&e.length?io(e,0,(t=r||t===n?1:vu(t))<0?0:t):[]},zn.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?io(e,(t=o-(t=r||t===n?1:vu(t)))<0?0:t,o):[]},zn.takeRightWhile=function(e,t){return e&&e.length?vo(e,di(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?vo(e,di(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new Oe(r);return nu(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),Na(e,t,{leading:o,maxWait:t,trailing:i})},zn.thru=ha,zn.toArray=mu,zn.toPairs=Bu,zn.toPairsIn=Vu,zn.toPath=function(e){return Wa(e)?qt(e,$i):cu(e)?[e]:Oo(Li(wu(e)))},zn.toPlainObject=bu,zn.transform=function(e,t,n){var r=Wa(e),o=r||Xa(e)||du(e);if(t=di(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:nu(e)&&Za(i)?Fn(Qe(e)):{}}return(o?Rt:_r)(e,(function(e,r,o){return t(n,e,r,o)})),n},zn.unary=function(e){return Ra(e,1)},zn.union=ra,zn.unionBy=oa,zn.unionWith=ia,zn.uniq=function(e){return e&&e.length?po(e):[]},zn.uniqBy=function(e,t){return e&&e.length?po(e,di(t,2)):[]},zn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?po(e,n,t):[]},zn.unset=function(e,t){return null==e||mo(e,t)},zn.unzip=aa,zn.unzipWith=ua,zn.update=function(e,t,n){return null==e?e:ho(e,t,xo(n))},zn.updateWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:ho(e,t,xo(r),o)},zn.values=zu,zn.valuesIn=function(e){return null==e?[]:en(e,ju(e))},zn.without=sa,zn.words=Zu,zn.wrap=function(e,t){return $a(xo(t),e)},zn.xor=la,zn.xorBy=ca,zn.xorWith=da,zn.zip=fa,zn.zipObject=function(e,t){return bo(e||[],t||[],rr)},zn.zipObjectDeep=function(e,t){return bo(e||[],t||[],to)},zn.zipWith=pa,zn.entries=Bu,zn.entriesIn=Vu,zn.extend=_u,zn.extendWith=Eu,ls(zn,zn),zn.add=bs,zn.attempt=es,zn.camelCase=Fu,zn.capitalize=Uu,zn.ceil=ws,zn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=yu(r))==r?r:0),t!==n&&(t=(t=yu(t))==t?t:0),lr(yu(e),t,r)},zn.clone=function(e){return cr(e,4)},zn.cloneDeep=function(e){return cr(e,5)},zn.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:n)},zn.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:n)},zn.conformsTo=function(e,t){return null==t||dr(e,t,Nu(t))},zn.deburr=Gu,zn.defaultTo=function(e,t){return null==e||e!=e?t:e},zn.divide=xs,zn.endsWith=function(e,t,r){e=wu(e),t=fo(t);var o=e.length,i=r=r===n?o:lr(vu(r),0,o);return(r-=t.length)>=0&&e.slice(r,i)==t},zn.eq=za,zn.escape=function(e){return(e=wu(e))&&J.test(e)?e.replace(Q,an):e},zn.escapeRegExp=function(e){return(e=wu(e))&&ie.test(e)?e.replace(oe,"\\$&"):e},zn.every=function(e,t,r){var o=Wa(e)?Tt:vr;return r&&_i(e,t,r)&&(t=n),o(e,di(t,3))},zn.find=ya,zn.findIndex=Gi,zn.findKey=function(e,t){return Vt(e,di(t,3),_r)},zn.findLast=ba,zn.findLastIndex=Wi,zn.findLastKey=function(e,t){return Vt(e,di(t,3),Er)},zn.floor=_s,zn.forEach=wa,zn.forEachRight=xa,zn.forIn=function(e,t){return null==e?e:wr(e,di(t,3),ju)},zn.forInRight=function(e,t){return null==e?e:xr(e,di(t,3),ju)},zn.forOwn=function(e,t){return e&&_r(e,di(t,3))},zn.forOwnRight=function(e,t){return e&&Er(e,di(t,3))},zn.get=Iu,zn.gt=Fa,zn.gte=Ua,zn.has=function(e,t){return null!=e&&yi(e,t,Rr)},zn.hasIn=Ru,zn.head=Ki,zn.identity=is,zn.includes=function(e,t,n,r){e=Ka(e)?e:zu(e),n=n&&!r?vu(n):0;var o=e.length;return n<0&&(n=wn(o+n,0)),lu(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Ft(e,t,n)>-1},zn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:vu(n);return o<0&&(o=wn(r+o,0)),Ft(e,t,o)},zn.inRange=function(e,t,r){return t=hu(t),r===n?(r=t,t=0):r=hu(r),function(e,t,n){return e>=xn(t,n)&&e<wn(t,n)}(e=yu(e),t,r)},zn.invoke=Ou,zn.isArguments=Ga,zn.isArray=Wa,zn.isArrayBuffer=Ha,zn.isArrayLike=Ka,zn.isArrayLikeObject=Qa,zn.isBoolean=function(e){return!0===e||!1===e||ru(e)&&Cr(e)==w},zn.isBuffer=Xa,zn.isDate=Ja,zn.isElement=function(e){return ru(e)&&1===e.nodeType&&!au(e)},zn.isEmpty=function(e){if(null==e)return!0;if(Ka(e)&&(Wa(e)||"string"==typeof e||"function"==typeof e.splice||Xa(e)||du(e)||Ga(e)))return!e.length;var t=gi(e);if(t==k||t==P)return!e.size;if(Ai(e))return!Lr(e).length;for(var n in e)if(Le.call(e,n))return!1;return!0},zn.isEqual=function(e,t){return jr(e,t)},zn.isEqualWith=function(e,t,r){var o=(r="function"==typeof r?r:n)?r(e,t):n;return o===n?jr(e,t,n,r):!!o},zn.isError=Ya,zn.isFinite=function(e){return"number"==typeof e&&Kt(e)},zn.isFunction=Za,zn.isInteger=eu,zn.isLength=tu,zn.isMap=ou,zn.isMatch=function(e,t){return e===t||qr(e,t,pi(t))},zn.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,qr(e,t,pi(t),r)},zn.isNaN=function(e){return iu(e)&&e!=+e},zn.isNative=function(e){if(ki(e))throw new Ae("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dr(e)},zn.isNil=function(e){return null==e},zn.isNull=function(e){return null===e},zn.isNumber=iu,zn.isObject=nu,zn.isObjectLike=ru,zn.isPlainObject=au,zn.isRegExp=uu,zn.isSafeInteger=function(e){return eu(e)&&e>=-f&&e<=f},zn.isSet=su,zn.isString=lu,zn.isSymbol=cu,zn.isTypedArray=du,zn.isUndefined=function(e){return e===n},zn.isWeakMap=function(e){return ru(e)&&gi(e)==N},zn.isWeakSet=function(e){return ru(e)&&"[object WeakSet]"==Cr(e)},zn.join=function(e,t){return null==e?"":yn.call(e,t)},zn.kebabCase=Wu,zn.last=Yi,zn.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==n&&(i=(i=vu(r))<0?wn(o+i,0):xn(i,o-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):zt(e,Gt,i,!0)},zn.lowerCase=Hu,zn.lowerFirst=Ku,zn.lt=fu,zn.lte=pu,zn.max=function(e){return e&&e.length?gr(e,is,Ir):n},zn.maxBy=function(e,t){return e&&e.length?gr(e,di(t,2),Ir):n},zn.mean=function(e){return Wt(e,is)},zn.meanBy=function(e,t){return Wt(e,di(t,2))},zn.min=function(e){return e&&e.length?gr(e,is,Br):n},zn.minBy=function(e,t){return e&&e.length?gr(e,di(t,2),Br):n},zn.stubArray=gs,zn.stubFalse=ys,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=Es,zn.nth=function(e,t){return e&&e.length?Gr(e,vu(t)):n},zn.noConflict=function(){return ht._===this&&(ht._=Fe),this},zn.noop=cs,zn.now=Ia,zn.pad=function(e,t,n){e=wu(e);var r=(t=vu(t))?pn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Ho(bt(o),n)+e+Ho(gt(o),n)},zn.padEnd=function(e,t,n){e=wu(e);var r=(t=vu(t))?pn(e):0;return t&&r<t?e+Ho(t-r,n):e},zn.padStart=function(e,t,n){e=wu(e);var r=(t=vu(t))?pn(e):0;return t&&r<t?Ho(t-r,n)+e:e},zn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),En(wu(e).replace(ae,""),t||0)},zn.random=function(e,t,r){if(r&&"boolean"!=typeof r&&_i(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=hu(e),t===n?(t=e,e=0):t=hu(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var i=Sn();return xn(e+i*(t-e+dt("1e-"+((i+"").length-1))),t)}return Xr(e,t)},zn.reduce=function(e,t,n){var r=Wa(e)?Mt:Qt,o=arguments.length<3;return r(e,di(t,4),n,o,mr)},zn.reduceRight=function(e,t,n){var r=Wa(e)?Lt:Qt,o=arguments.length<3;return r(e,di(t,4),n,o,hr)},zn.repeat=function(e,t,r){return t=(r?_i(e,t,r):t===n)?1:vu(t),Jr(wu(e),t)},zn.replace=function(){var e=arguments,t=wu(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,r){var o=-1,i=(t=_o(t,e)).length;for(i||(i=1,e=n);++o<i;){var a=null==e?n:e[$i(t[o])];a===n&&(o=i,a=r),e=Za(a)?a.call(e):a}return e},zn.round=Ss,zn.runInContext=e,zn.sample=function(e){return(Wa(e)?Zn:Zr)(e)},zn.size=function(e){if(null==e)return 0;if(Ka(e))return lu(e)?pn(e):e.length;var t=gi(e);return t==k||t==P?e.size:Lr(e).length},zn.snakeCase=Qu,zn.some=function(e,t,r){var o=Wa(e)?$t:ao;return r&&_i(e,t,r)&&(t=n),o(e,di(t,3))},zn.sortedIndex=function(e,t){return uo(e,t)},zn.sortedIndexBy=function(e,t,n){return so(e,t,di(n,2))},zn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=uo(e,t);if(r<n&&za(e[r],t))return r}return-1},zn.sortedLastIndex=function(e,t){return uo(e,t,!0)},zn.sortedLastIndexBy=function(e,t,n){return so(e,t,di(n,2),!0)},zn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=uo(e,t,!0)-1;if(za(e[n],t))return n}return-1},zn.startCase=Xu,zn.startsWith=function(e,t,n){return e=wu(e),n=null==n?0:lr(vu(n),0,e.length),t=fo(t),e.slice(n,n+t.length)==t},zn.subtract=ks,zn.sum=function(e){return e&&e.length?Xt(e,is):0},zn.sumBy=function(e,t){return e&&e.length?Xt(e,di(t,2)):0},zn.template=function(e,t,r){var o=zn.templateSettings;r&&_i(e,t,r)&&(t=n),e=wu(e),t=Eu({},t,o,ti);var i,a,u=Eu({},t.imports,o.imports,ti),s=Nu(u),l=en(u,s),c=0,d=t.interpolate||_e,f="__p += '",p=Pe((t.escape||_e).source+"|"+d.source+"|"+(d===ee?me:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),m="//# sourceURL="+(Le.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ut+"]")+"\n";e.replace(p,(function(t,n,r,o,u,s){return r||(r=o),f+=e.slice(c,s).replace(Ee,un),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),u&&(a=!0,f+="';\n"+u+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=s+t.length,t})),f+="';\n";var h=Le.call(t,"variable")&&t.variable;if(h){if(fe.test(h))throw new Ae("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(G,""):f).replace(W,"$1").replace(H,"$1;"),f="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=es((function(){return Ce(s,m+"return "+f).apply(n,l)}));if(v.source=f,Ya(v))throw v;return v},zn.times=function(e,t){if((e=vu(e))<1||e>f)return[];var n=m,r=xn(e,m);t=di(t),e-=m;for(var o=Jt(r,t);++n<e;)t(n);return o},zn.toFinite=hu,zn.toInteger=vu,zn.toLength=gu,zn.toLower=function(e){return wu(e).toLowerCase()},zn.toNumber=yu,zn.toSafeInteger=function(e){return e?lr(vu(e),-f,f):0===e?e:0},zn.toString=wu,zn.toUpper=function(e){return wu(e).toUpperCase()},zn.trim=function(e,t,r){if((e=wu(e))&&(r||t===n))return Yt(e);if(!e||!(t=fo(t)))return e;var o=mn(e),i=mn(t);return So(o,nn(o,i),rn(o,i)+1).join("")},zn.trimEnd=function(e,t,r){if((e=wu(e))&&(r||t===n))return e.slice(0,hn(e)+1);if(!e||!(t=fo(t)))return e;var o=mn(e);return So(o,0,rn(o,mn(t))+1).join("")},zn.trimStart=function(e,t,r){if((e=wu(e))&&(r||t===n))return e.replace(ae,"");if(!e||!(t=fo(t)))return e;var o=mn(e);return So(o,nn(o,mn(t))).join("")},zn.truncate=function(e,t){var r=30,o="...";if(nu(t)){var i="separator"in t?t.separator:i;r="length"in t?vu(t.length):r,o="omission"in t?fo(t.omission):o}var a=(e=wu(e)).length;if(sn(e)){var u=mn(e);a=u.length}if(r>=a)return e;var s=r-pn(o);if(s<1)return o;var l=u?So(u,0,s).join(""):e.slice(0,s);if(i===n)return l+o;if(u&&(s+=l.length-s),uu(i)){if(e.slice(s).search(i)){var c,d=l;for(i.global||(i=Pe(i.source,wu(he.exec(i))+"g")),i.lastIndex=0;c=i.exec(d);)var f=c.index;l=l.slice(0,f===n?s:f)}}else if(e.indexOf(fo(i),s)!=s){var p=l.lastIndexOf(i);p>-1&&(l=l.slice(0,p))}return l+o},zn.unescape=function(e){return(e=wu(e))&&X.test(e)?e.replace(K,vn):e},zn.uniqueId=function(e){var t=++$e;return wu(e)+t},zn.upperCase=Ju,zn.upperFirst=Yu,zn.each=wa,zn.eachRight=xa,zn.first=Ki,ls(zn,function(){var e={};return _r(zn,(function(t,n){Le.call(zn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),zn.VERSION="4.17.21",Rt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),Rt(["drop","take"],(function(e,t){Wn.prototype[e]=function(r){r=r===n?1:wn(vu(r),0);var o=this.__filtered__&&!t?new Wn(this):this.clone();return o.__filtered__?o.__takeCount__=xn(r,o.__takeCount__):o.__views__.push({size:xn(r,m),type:e+(o.__dir__<0?"Right":"")}),o},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Rt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:di(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Rt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),Rt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(is)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Yr((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return Or(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(Ma(di(e)))},Wn.prototype.slice=function(e,t){e=vu(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Wn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=vu(t))<0?r.dropRight(-t):r.take(t-e)),r)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(m)},_r(Wn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=zn[o?"take"+("last"==t?"Right":""):t],a=o||/^find/.test(t);i&&(zn.prototype[t]=function(){var t=this.__wrapped__,u=o?[1]:arguments,s=t instanceof Wn,l=u[0],c=s||Wa(t),d=function(e){var t=i.apply(zn,Dt([e],u));return o&&f?t[0]:t};c&&r&&"function"==typeof l&&1!=l.length&&(s=c=!1);var f=this.__chain__,p=!!this.__actions__.length,m=a&&!f,h=s&&!p;if(!a&&c){t=h?t:new Wn(this);var v=e.apply(t,u);return v.__actions__.push({func:ha,args:[d],thisArg:n}),new Gn(v,f)}return m&&h?e.apply(this,u):(v=this.thru(d),m?o?v.value()[0]:v.value():v)})})),Rt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ne[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Wa(o)?o:[],e)}return this[n]((function(n){return t.apply(Wa(n)?n:[],e)}))}})),_r(Wn.prototype,(function(e,t){var n=zn[t];if(n){var r=n.name+"";Le.call(Nn,r)||(Nn[r]=[]),Nn[r].push({name:t,func:n})}})),Nn[Fo(n,2).name]=[{name:"wrapper",func:n}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=Oo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oo(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Wa(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=xn(t,e+a);break;case"takeRight":e=wn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,u=i.end,s=u-a,l=r?u:a-1,c=this.__iteratees__,d=c.length,f=0,p=xn(s,this.__takeCount__);if(!n||!r&&o==s&&p==s)return go(e,this.__actions__);var m=[];e:for(;s--&&f<p;){for(var h=-1,v=e[l+=t];++h<d;){var g=c[h],y=g.iteratee,b=g.type,w=y(v);if(2==b)v=w;else if(!w){if(1==b)continue e;break e}}m[f++]=v}return m},zn.prototype.at=va,zn.prototype.chain=function(){return ma(this)},zn.prototype.commit=function(){return new Gn(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===n&&(this.__values__=mu(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var t,r=this;r instanceof Un;){var o=Vi(r);o.__index__=0,o.__values__=n,t?i.__wrapped__=o:t=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,t},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:ha,args:[na],thisArg:n}),new Gn(t,this.__chain__)}return this.thru(na)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return go(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,nt&&(zn.prototype[nt]=function(){return this}),zn}();gt?((gt.exports=gn)._=gn,vt._=gn):ht._=gn}.call(NJ)),tv.exports;var e,t}MJ();const LJ={$user:"/:username","$user-post":"/:username/posts/:postId","$user-event":"/:username/events/:eventId","$user-channel":"/:username/channels/:channelId","$user-media":"/:username/media/:mediaId"},FJ={$group:"/g/:groupname","$group-post":"/g/:groupname/posts/:postId","$group-event":"/g/:groupname/events/:eventId","$group-forum-post":"/g/:groupname/forum/:postId","$group-forum-category":"/g/:groupname/forum/:categorySlug","$group-forum-category-post":"/g/:groupname/forum/:categorySlug/:postId","$group-forum-tag":"/g/:groupname/forum/tag/:tag","$group-channel":"/g/:groupname/:channelname","$group-channel-post":"/g/:groupname/:channelname/posts/:postId","$group-media":"/g/:groupname/media/:mediaId"},BJ={$root:"/",$tag:"/tags/:tag"},jJ=()=>{const e=e$();if(!e)return;const{platformData:t}=e;return t.apps.flatMap((e=>e.paths.map((n=>({path:n.path,name:e.name,url:`${t.baseUrl}${e.baseUrl}index.html`,build:e.build,buildDate:e.buildDate})))))},VJ={...LJ,...FJ,...BJ},UJ=()=>{var e;const t=(null==(e=jJ())?void 0:e.filter((({path:e})=>e.startsWith("$")&&!e.includes("/")&&!VJ[e])))||[];t.length>0&&El.warn("Unrecognized routes found:",t)};UJ();const zJ={path:"",history:[],transitionPath:"",confirmLeavePage:null},WJ=So({name:"router",initialState:zJ,reducers:{},extraReducers:e=>{e.addCase(pK,((e,{payload:t})=>{e.confirmLeavePage=t})).addCase(d3,((e,{payload:t})=>{t!==e.transitionPath&&(e.transitionPath=t)})).addCase(mK,((e,{payload:t})=>{t!==e.path&&(e.path=t,e.history.unshift(t))}))},selectors:{selectPath:e=>e.path,selectPreviousRoute:e=>{const t=e.history.indexOf(e.path);return e.history[t+1]},selectTransitionPath:e=>e.transitionPath,selectConfirmLeavePage:e=>e.confirmLeavePage}}).injectInto(uJ),rL="Tabs",[qJ,eee]=ni(rL,[Gh]),oL=Gh(),[tee,i$]=qJ(rL),GJ="TabsList",HJ=m.forwardRef(((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=i$(GJ,n),a=oL(n);return m.createElement($C,Te({asChild:!0},a,{orientation:i.orientation,dir:i.dir,loop:r}),m.createElement(ft.div,Te({role:"tablist","aria-orientation":i.orientation},o,{ref:t})))})),KJ="TabsTrigger",QJ=m.forwardRef(((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=i$(KJ,n),u=oL(n),s=iL(a.baseId,r),l=aL(a.baseId,r),c=r===a.value;return m.createElement(IC,Te({asChild:!0},u,{focusable:!o,active:c}),m.createElement(ft.button,Te({type:"button",role:"tab","aria-selected":c,"aria-controls":l,"data-state":c?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:s},i,{ref:t,onMouseDown:et(e.onMouseDown,(e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(r)})),onKeyDown:et(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&a.onValueChange(r)})),onFocus:et(e.onFocus,(()=>{const e="manual"!==a.activationMode;!c&&!o&&e&&a.onValueChange(r)}))})))})),YJ="TabsContent",XJ=m.forwardRef(((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=e,u=i$(YJ,n),s=iL(u.baseId,r),l=aL(u.baseId,r),c=r===u.value,d=m.useRef(c);return m.useEffect((()=>{const e=requestAnimationFrame((()=>d.current=!1));return()=>cancelAnimationFrame(e)}),[]),m.createElement(ea,{present:o||c},(({present:n})=>m.createElement(ft.div,Te({"data-state":c?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":s,hidden:!n,id:l,tabIndex:0},a,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),n&&i)))}));function iL(e,t){return`${e}-trigger-${t}`}function aL(e,t){return`${e}-content-${t}`}const sL=HJ,uL=QJ,lL=XJ,JJ=m.forwardRef((({className:e,useDefaults:t=!0,...n},r)=>G.jsx(sL,{ref:r,"data-testid":"tabsList",className:t?we("inline-flex w-full items-center justify-start gap-s p-none text-muted-foreground","relative after:absolute after:bottom-0 after:left-0 after:h-[1px] after:w-full after:bg-gray-200",e):e,...n})));JJ.displayName=sL.displayName;const ZJ=m.forwardRef((({className:e,children:t,isFullWidthTab:n,...r},o)=>G.jsx(uL,{ref:o,asChild:!0,className:e??we("inline-flex items-center justify-center whitespace-nowrap text-base","z-2 transition-background h-m cursor-pointer focus-visible:outline-none","font-semibold focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50","group relative text-gray-500 hover:[&_svg]:fill-gray-900","after:absolute after:bottom-0 after:left-0 after:z-[1] after:h-0.5 after:w-full data-[state=active]:after:bg-gray-900",{"flex-1":n}),...r,children:t})));ZJ.displayName=uL.displayName;const eZ=m.forwardRef((({className:e,...t},n)=>G.jsx(lL,{ref:n,className:we("ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t})));eZ.displayName=lL.displayName;const tZ=m.forwardRef((({className:e,...t},n)=>G.jsx("table",{ref:n,className:we("w-full caption-bottom text-sm",e),...t})));tZ.displayName="Table";const nZ=m.forwardRef((({className:e,...t},n)=>G.jsx("thead",{ref:n,className:we("[&_tr]:border-b",e),...t})));nZ.displayName="TableHeader";const rZ=m.forwardRef((({className:e,...t},n)=>G.jsx("tbody",{ref:n,className:we("[&_tr:last-child]:border-0",e),...t})));rZ.displayName="TableBody";const oZ=m.forwardRef((({className:e,...t},n)=>G.jsx("tfoot",{ref:n,className:we("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t})));oZ.displayName="TableFooter";const iZ=m.forwardRef((({className:e,...t},n)=>G.jsx("tr",{ref:n,className:we("border-b bg-background transition-colors hover:bg-gray-100 data-[state=selected]:bg-gray-200 dark:hover:bg-muted dark:data-[state=selected]:bg-muted","[&:hover_button[data-disabled]]:!bg-gray-200 [&:hover_button[disabled]]:!bg-gray-200",e),...t})));iZ.displayName="TableRow";const aZ=m.forwardRef((({className:e,...t},n)=>G.jsx("th",{ref:n,className:we("h-14 bg-inherit px-xs py-xxs text-left align-middle font-normal text-muted-foreground","whitespace-nowrap text-sm text-gray-500",e),...t})));aZ.displayName="TableHead";const sZ=m.forwardRef((({className:e,...t},n)=>G.jsx("td",{ref:n,className:we("h-14 bg-inherit px-xs py-xxs align-middle","overflow-hidden truncate text-ellipsis text-base text-gray-700",e),...t})));sZ.displayName="TableCell";const uZ=m.forwardRef((({className:e,...t},n)=>G.jsx("caption",{ref:n,className:we("mt-s text-sm text-muted-foreground",e),...t})));uZ.displayName="TableCaption";const lZ=(e,t)=>we("flex w-full rounded-m px-s py-xs text-base text-gray-900 outline outline-1 outline-input ring-offset-background transition-all duration-200 ease-in-out placeholder:inherit placeholder:text-gray-400 placeholder:text-muted-foreground hover:outline-2 hover:outline-gray-400 focus-visible:bg-gray-50 focus-visible:text-gray-900 focus-visible:outline-2 focus-visible:outline-blue_120 disabled:cursor-not-allowed disabled:select-none disabled:text-gray-300 disabled:outline-gray-200",{"bg-red_30_17 outline-red-dark":!!e},t),cZ=m.forwardRef((({className:e,...t},n)=>{const{error:r}=bd();return G.jsx("textarea",{className:lZ(!!r,e),ref:n,...t})}));cZ.displayName="Textarea";const dZ=m.createContext(void 0),fZ=()=>{const e=m.useContext(dZ);if(!e)throw new Error("useColorPicker must be used within a ColorPickerProvider");return e},pZ=m.memo((({className:e,...t})=>{const n=m.useRef(null),[r,o]=m.useState(!1),[i,a]=m.useState(0),[u,s]=m.useState(0),{hue:l,saturation:c,lightness:d,setSaturation:f,setLightness:p}=fZ(),h=m.useMemo((()=>`linear-gradient(0deg, rgba(0,0,0,1), rgba(0,0,0,0)),\n linear-gradient(90deg, rgba(255,255,255,1), rgba(255,255,255,0)),\n hsl(${l}, 100%, 50%)`),[l]);m.useEffect((()=>{if(!r){const e=c/100,t=e<.01?100:50+50*(1-e),n=t>0?1-d/t:0;a(Math.max(0,Math.min(1,e))),s(Math.max(0,Math.min(1,n)))}}),[c,d,r]);const v=m.useCallback(((e,t)=>{if(!n.current)return;const r=n.current.getBoundingClientRect(),o=Math.max(0,Math.min(1,(e-r.left)/r.width)),i=Math.max(0,Math.min(1,(t-r.top)/r.height));a(o),s(i),f(100*o);p((o<.01?100:50+50*(1-o))*(1-i))}),[f,p]),g=m.useCallback((e=>{r&&v(e.clientX,e.clientY)}),[r,v]);return m.useEffect((()=>{const e=()=>o(!1);return r&&(window.addEventListener("pointermove",g),window.addEventListener("pointerup",e)),()=>{window.removeEventListener("pointermove",g),window.removeEventListener("pointerup",e)}}),[r,g]),G.jsx("div",{className:we("relative size-full cursor-crosshair rounded",e),onPointerDown:e=>{e.preventDefault(),o(!0),v(e.clientX,e.clientY)},ref:n,style:{background:h},...t,children:G.jsx("div",{className:"pointer-events-none absolute h-4 w-4 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white",style:{left:100*i+"%",top:100*u+"%",boxShadow:"0 0 0 1px rgba(0,0,0,0.5)"}})})}));pZ.displayName="ColorPickerSelection";const hZ=mu("z-tooltip animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 relative data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",{variants:{size:{default:"rounded-md text-sm px-3 py-1.5",small:"rounded-sm p-xxs text-sm"},theme:{default:"bg-popover text-popover-foreground",dark:"bg-gray-800 text-gray-50 [&_svg]:fill-gray-700"},defaultVariants:{size:"small",theme:"dark"}}}),mZ=m.forwardRef((({className:e,sideOffset:t=10,size:n,theme:r,children:o,isPortal:i=!0,withArrow:a=!0,...u},s)=>{const l=G.jsx(G.Fragment,{children:G.jsxs(c3,{ref:s,sideOffset:t,className:we(hZ({size:n,theme:r,className:e}),"group/tooltip"),...u,children:[o,a&&G.jsx("div",{className:we("absolute left-1/2 -translate-x-1/2","group-data-[side=bottom]/tooltip:-top-xxxs","group-data-[side=top]/tooltip:-bottom-xxxs","group-data-[side=left]/tooltip:right-0.5 group-data-[side=left]/tooltip:top-1/2 group-data-[side=left]/tooltip:-translate-y-1/2 group-data-[side=left]/tooltip:translate-x-full","group-data-[side=right]/tooltip:left-0.5 group-data-[side=right]/tooltip:top-1/2 group-data-[side=right]/tooltip:-translate-x-full group-data-[side=right]/tooltip:-translate-y-1/2",{"left-xs":"start"===u.align}),children:G.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",className:we("group-data-[side=bottom]/tooltip:rotate-180","group-data-[side=right]/tooltip:rotate-90","group-data-[side=left]/tooltip:rotate-270"),children:G.jsx("path",{d:"M6.79297 0.5L4.35352 2.93945C4.15827 3.13461 3.84173 3.13461 3.64648 2.93945L1.20703 0.5H6.79297Z",fill:"var(--gray-800)",stroke:"var(--gray-800)"})})})]})});return i?G.jsx(lK,{children:l}):l}));mZ.displayName=c3.displayName;var jA,Kg={exports:{}},vZ=Kg.exports;function gZ(){return jA||(jA=1,Kg.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",u="day",s="week",l="month",c="quarter",d="year",f="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,l),i=n-o<0,a=t.clone().add(r+(i?-1:1),l);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:s,d:u,D:f,h:a,m:i,s:o,ms:r,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",w={};w[b]=v;var x="$isDayjsObject",_=function(e){return e instanceof A||!(!e||!e[x])},E=function e(t,n,r){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();w[i]&&(o=i),n&&(w[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var u=t.name;w[u]=t,o=u}return!r&&o&&(b=o),o||!r&&b},S=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new A(n)},k=y;k.l=E,k.i=_,k.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var A=function(){function v(e){this.$L=E(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var g=v.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(m);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return k},g.isValid=function(){return this.$d.toString()!==p},g.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return S(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<S(e)},g.$g=function(e,t,n){return k.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,r=!!k.u(t)||t,c=k.p(e),p=function(e,t){var o=k.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(u)},m=function(e,t){return k.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,v=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(c){case d:return r?p(1,0):p(31,11);case l:return r?p(1,v):p(0,v+1);case s:var b=this.$locale().weekStart||0,w=(h<b?h+7:h)-b;return p(r?g-w:g+(6-w),v);case u:case f:return m(y+"Hours",0);case a:return m(y+"Minutes",1);case i:return m(y+"Seconds",2);case o:return m(y+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var n,s=k.p(e),c="set"+(this.$u?"UTC":""),p=(n={},n[u]=c+"Date",n[f]=c+"Date",n[l]=c+"Month",n[d]=c+"FullYear",n[a]=c+"Hours",n[i]=c+"Minutes",n[o]=c+"Seconds",n[r]=c+"Milliseconds",n)[s],m=s===u?this.$D+(t-this.$W):t;if(s===l||s===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[k.p(e)]()},g.add=function(r,c){var f,p=this;r=Number(r);var m=k.p(c),h=function(e){var t=S(p);return k.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===u)return h(1);if(m===s)return h(7);var v=(f={},f[i]=t,f[a]=n,f[o]=e,f)[m]||1,g=this.$d.getTime()+r*v;return k.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=k.z(this),i=this.$H,a=this.$m,u=this.$M,s=n.weekdays,l=n.months,c=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},f=function(e){return k.s(i%12||12,e,"0")},m=c||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return k.s(t.$y,4,"0");case"M":return u+1;case"MM":return k.s(u+1,2,"0");case"MMM":return d(n.monthsShort,u,l,3);case"MMMM":return d(l,u);case"D":return t.$D;case"DD":return k.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,s,2);case"ddd":return d(n.weekdaysShort,t.$W,s,3);case"dddd":return s[t.$W];case"H":return String(i);case"HH":return k.s(i,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return m(i,a,!0);case"A":return m(i,a,!1);case"m":return String(a);case"mm":return k.s(a,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,f,p){var m,h=this,v=k.p(f),g=S(r),y=(g.utcOffset()-this.utcOffset())*t,b=this-g,w=function(){return k.m(h,g)};switch(v){case d:m=w()/12;break;case l:m=w();break;case c:m=w()/3;break;case s:m=(b-y)/6048e5;break;case u:m=(b-y)/864e5;break;case a:m=b/n;break;case i:m=b/t;break;case o:m=b/e;break;default:m=b}return p?m:k.a(m)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return w[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=E(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return k.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},v}(),C=A.prototype;return S.prototype=C,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",u],["$M",l],["$y",d],["$D",f]].forEach((function(e){C[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,A,S),e.$i=!0),S},S.locale=E,S.isDayjs=_,S.unix=function(e){return S(1e3*e)},S.en=w[b],S.Ls=w,S.p={},S}()),Kg.exports}gZ();const cE="horizontal",yZ=["horizontal","vertical"],a$=m.forwardRef(((e,t)=>{const{decorative:n,orientation:r=cE,...o}=e,i=cL(r)?r:cE,a=n?{role:"none"}:{"aria-orientation":"vertical"===i?i:void 0,role:"separator"};return m.createElement(ft.div,Te({"data-orientation":i},a,o,{ref:t}))}));function wZ(e,t){return`Invalid prop \`orientation\` of value \`${e}\` supplied to \`${t}\`, expected one of:\n - horizontal\n - vertical\n\nDefaulting to \`${cE}\`.`}function cL(e){return yZ.includes(e)}a$.propTypes={orientation(e,t,n){const r=e[t],o=String(r);return r&&!cL(r)?new Error(wZ(o,n)):null}};const _Z=mu("\n shrink-0 bg-gray-200\n data-[orientation=horizontal]:h-px data-[orientation=horizontal]:my-xxs\n data-[orientation=vertical]:w-px data-[orientation=vertical]:mx-xxs\n ",{variants:{size:{xs:"data-[orientation=horizontal]:w-4 data-[orientation=vertical]:h-4",s:"data-[orientation=horizontal]:w-6 data-[orientation=vertical]:h-6",m:"data-[orientation=horizontal]:w-8 data-[orientation=vertical]:h-8",l:"data-[orientation=horizontal]:w-10 data-[orientation=vertical]:h-10"}},defaultVariants:{size:"s"}}),bZ=m.forwardRef((({className:e,size:t,...n},r)=>G.jsx(a$,{ref:r,className:we(_Z({size:t,className:e})),...n})));bZ.displayName=a$.displayName;const xZ=({linksList:e})=>G.jsx("div",{className:"text-gray-700",children:G.jsx("div",{className:"gap-xs flex flex-col items-center",children:e.map((({text:e,link:t,icon:n},r)=>G.jsx(pJ,{to:t,children:G.jsxs(kv,{className:"min-w-[200px]",variant:r?"tertiary":"primary",children:[n,e]})},t)))})}),SZ=(e,t)=>{switch(!0){case B5(e):return e;case j5(e):return 500===e&&El.error("ErrorPage: ",e),av(e,t);case e&&!!U$(e):return{title:U$(e)};default:return El.error("ErrorPage: ",e),av(500,t)}},s$=({error:e,icon:t})=>{const n=_y(f2.selectors.selectIsAuthenticated),{title:r,description:o,links:i}=SZ(e,n),a=m.isValidElement(o);return G.jsx("div",{className:"flex min-h-[100vh] items-center justify-center",children:G.jsxs("div",{className:"gap-l flex max-w-[490px] translate-y-[-10%] flex-col items-center justify-center",children:[t||G.jsx("img",{src:U5}),G.jsxs("div",{className:"gap-s flex flex-col items-center justify-center",children:[r&&G.jsx("h1",{className:"text-center text-[24px] font-semibold text-gray-900",children:r}),o&&G.jsx("p",{className:"max-w-[343px] text-center text-base font-medium text-gray-900",...!a&&{dangerouslySetInnerHTML:{__html:o}},children:a?o:null})]}),null!=i&&i.length?G.jsx(xZ,{linksList:i}):null]})})},EZ=()=>{const e=Z3();return e.pathname+e.search},CZ=()=>{const e=CJ(),t=m.useRef(""),n=EZ(),r=_y(WJ.selectors.selectPath);m.useEffect((()=>{r&&r!==t.current&&(t.current=r,n!==r&&e(r,{replace:!0}))}),[r,e,n])},dL=m.memo((()=>(CZ(),null)));dL.displayName="RemoteRouteObserver";const nee=()=>{const e=AJ();return G.jsxs(G.Fragment,{children:[G.jsx(dL,{}),G.jsx(s$,{error:e})]})},$Z=m.createContext(null),wS={didCatch:!1,error:null};class IZ extends m.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=wS}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(null!==e){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null===(t=(n=this.props).onReset)||void 0===t||t.call(n,{args:o,reason:"imperative-api"}),this.setState(wS)}}componentDidCatch(e,t){var n,r;null===(n=(r=this.props).onError)||void 0===n||n.call(r,e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;var o,i;n&&null!==t.error&&RZ(e.resetKeys,r)&&(null===(o=(i=this.props).onReset)||void 0===o||o.call(i,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(wS))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:o,error:i}=this.state;let a=e;if(o){const e={error:i,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)a=t(e);else if(n)a=m.createElement(n,e);else{if(null!==r&&!m.isValidElement(r))throw i;a=r}}return m.createElement($Z.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},a)}}function RZ(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some(((e,n)=>!Object.is(e,t[n])))}const ree=()=>G.jsx(IZ,{FallbackComponent:s$,children:G.jsx(DJ,{})}),oee=e=>{throw e},iee=e=>{var t,n,r;if(!e||jf.isString(e))return null;if("data"in e&&null!=(t=e.data)&&t.errorCode)return null==(n=e.data)?void 0:n.errorCode;if("error"in e&&"object"==typeof e.error&&null!==e.error){const t=e.error;if(null!=(r=t.data)&&r.errorCode)return t.data.errorCode}return null},aee=e=>{if(!e||jf.isString(e))return null;if("status"in e)return null==e?void 0:e.status;if("error"in e&&"object"==typeof e.error&&null!==e.error){const t=e.error;if(t.status)return t.status}return null},see=({children:e,...t})=>null!=t&&t.error?G.jsx(s$,{...t}):G.jsx(G.Fragment,{children:e});export{ree as ErrorBoundaryLayout,s$ as ErrorPage,see as ErrorWrapper,nee as RouterErrorPage,av as getErrorByStatusCode,U$ as getErrorMsg,iee as getServerApiErrorCode,aee as getServerStatusCode,oee as throwError};
|