@digital-realty/ui-mfe-dcim 1.0.0-alpha.1 → 11.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/app-DiHLHJlU.js +1027 -0
- package/dist/index.html +27 -0
- package/dist/ui-mfe-dcim.js +1 -1
- package/dist/ui-mfe-html-dcim.js +1 -1
- package/dist/ui-mfe-light-dcim.js +1 -1
- package/package.json +7 -8
- package/dist/assets/app-BC3SXvdh.js +0 -1099
|
@@ -0,0 +1,1027 @@
|
|
|
1
|
+
var $z=Object.defineProperty;var Lz=(e,t,n)=>t in e?$z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var rt=(e,t,n)=>Lz(e,typeof t!="symbol"?t+"":t,n);import*as P from"react";import lt,{useSyncExternalStore as yI,useState as Nn,useRef as Rn,useCallback as Mt,useEffect as At,useMemo as Gn,forwardRef as ra,useContext as ia,isValidElement as Ap,cloneElement as md,Children as kz,createElement as Xo,createContext as cf,Component as Nz,Fragment as Fz,useReducer as jz,useLayoutEffect as gw}from"react";import*as bI from"react-dom";import id from"react-dom";import{html as Bz}from"lit";import{ifDefined as Uz}from"lit/directives/if-defined.js";import"@digital-realty/ix-toast/ix-message-toast.js";var zi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Di(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Yi(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var xI={exports:{}},xm={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Wz=lt,Hz=Symbol.for("react.element"),zz=Symbol.for("react.fragment"),Vz=Object.prototype.hasOwnProperty,Gz=Wz.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,qz={key:!0,ref:!0,__self:!0,__source:!0};function wI(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)Vz.call(t,r)&&!qz.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Hz,type:e,key:o,ref:a,props:i,_owner:Gz.current}}xm.Fragment=zz;xm.jsx=wI;xm.jsxs=wI;xI.exports=xm;var _=xI.exports;function og(e,t){return og=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},og(e,t)}function oa(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,og(e,t)}var Uu=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(r){var i=this,o=r||function(){};return this.listeners.push(o),this.onSubscribe(),function(){i.listeners=i.listeners.filter(function(a){return a!==o}),i.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}();function M(){return M=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},M.apply(null,arguments)}const Kz=Object.freeze(Object.defineProperty({__proto__:null,get default(){return M}},Symbol.toStringTag,{value:"Module"}));var ag=typeof window>"u";function ur(){}function Yz(e,t){return typeof e=="function"?e(t):e}function B0(e){return typeof e=="number"&&e>=0&&e!==1/0}function sg(e){return Array.isArray(e)?e:[e]}function _I(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Dp(e,t,n){return df(e)?typeof t=="function"?M({},n,{queryKey:e,queryFn:t}):M({},t,{queryKey:e}):e}function Xz(e,t,n){return df(e)?typeof t=="function"?M({},n,{mutationKey:e,mutationFn:t}):M({},t,{mutationKey:e}):typeof e=="function"?M({},t,{mutationFn:e}):M({},e)}function Ia(e,t,n){return df(e)?[M({},t,{queryKey:e}),n]:[e||{},t]}function Zz(e,t){if(e===!0&&t===!0||e==null&&t==null)return"all";if(e===!1&&t===!1)return"none";var n=e??!t;return n?"active":"inactive"}function EE(e,t){var n=e.active,r=e.exact,i=e.fetching,o=e.inactive,a=e.predicate,s=e.queryKey,l=e.stale;if(df(s)){if(r){if(t.queryHash!==mw(s,t.options))return!1}else if(!lg(t.queryKey,s))return!1}var u=Zz(n,o);if(u==="none")return!1;if(u!=="all"){var d=t.isActive();if(u==="active"&&!d||u==="inactive"&&d)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||typeof i=="boolean"&&t.isFetching()!==i||a&&!a(t))}function OE(e,t){var n=e.exact,r=e.fetching,i=e.predicate,o=e.mutationKey;if(df(o)){if(!t.options.mutationKey)return!1;if(n){if($s(t.options.mutationKey)!==$s(o))return!1}else if(!lg(t.options.mutationKey,o))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function mw(e,t){var n=(t==null?void 0:t.queryKeyHashFn)||$s;return n(e)}function $s(e){var t=sg(e);return Qz(t)}function Qz(e){return JSON.stringify(e,function(t,n){return U0(n)?Object.keys(n).sort().reduce(function(r,i){return r[i]=n[i],r},{}):n})}function lg(e,t){return CI(sg(e),sg(t))}function CI(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(function(n){return!CI(e[n],t[n])}):!1}function ug(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||U0(e)&&U0(t)){for(var r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{},s=0,l=0;l<o;l++){var u=n?l:i[l];a[u]=ug(e[u],t[u]),a[u]===e[u]&&s++}return r===o&&s===r?e:a}return t}function Jz(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function U0(e){if(!PE(e))return!1;var t=e.constructor;if(typeof t>"u")return!0;var n=t.prototype;return!(!PE(n)||!n.hasOwnProperty("isPrototypeOf"))}function PE(e){return Object.prototype.toString.call(e)==="[object Object]"}function df(e){return typeof e=="string"||Array.isArray(e)}function e6(e){return new Promise(function(t){setTimeout(t,e)})}function RE(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function SI(){if(typeof AbortController=="function")return new AbortController}var t6=function(e){oa(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(i){var o;if(!ag&&((o=window)!=null&&o.addEventListener)){var a=function(){return i()};return window.addEventListener("visibilitychange",a,!1),window.addEventListener("focus",a,!1),function(){window.removeEventListener("visibilitychange",a),window.removeEventListener("focus",a)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}},n.setEventListener=function(i){var o,a=this;this.setup=i,(o=this.cleanup)==null||o.call(this),this.cleanup=i(function(s){typeof s=="boolean"?a.setFocused(s):a.onFocus()})},n.setFocused=function(i){this.focused=i,i&&this.onFocus()},n.onFocus=function(){this.listeners.forEach(function(i){i()})},n.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},t}(Uu),vd=new t6,n6=function(e){oa(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(i){var o;if(!ag&&((o=window)!=null&&o.addEventListener)){var a=function(){return i()};return window.addEventListener("online",a,!1),window.addEventListener("offline",a,!1),function(){window.removeEventListener("online",a),window.removeEventListener("offline",a)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}},n.setEventListener=function(i){var o,a=this;this.setup=i,(o=this.cleanup)==null||o.call(this),this.cleanup=i(function(s){typeof s=="boolean"?a.setOnline(s):a.onOnline()})},n.setOnline=function(i){this.online=i,i&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(i){i()})},n.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},t}(Uu),Ip=new n6;function r6(e){return Math.min(1e3*Math.pow(2,e),3e4)}function cg(e){return typeof(e==null?void 0:e.cancel)=="function"}var TI=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function $p(e){return e instanceof TI}var EI=function(t){var n=this,r=!1,i,o,a,s;this.abort=t.abort,this.cancel=function(p){return i==null?void 0:i(p)},this.cancelRetry=function(){r=!0},this.continueRetry=function(){r=!1},this.continue=function(){return o==null?void 0:o()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(p,g){a=p,s=g});var l=function(g){n.isResolved||(n.isResolved=!0,t.onSuccess==null||t.onSuccess(g),o==null||o(),a(g))},u=function(g){n.isResolved||(n.isResolved=!0,t.onError==null||t.onError(g),o==null||o(),s(g))},d=function(){return new Promise(function(g){o=g,n.isPaused=!0,t.onPause==null||t.onPause()}).then(function(){o=void 0,n.isPaused=!1,t.onContinue==null||t.onContinue()})},h=function p(){if(!n.isResolved){var g;try{g=t.fn()}catch(m){g=Promise.reject(m)}i=function(y){if(!n.isResolved&&(u(new TI(y)),n.abort==null||n.abort(),cg(g)))try{g.cancel()}catch{}},n.isTransportCancelable=cg(g),Promise.resolve(g).then(l).catch(function(m){var y,b;if(!n.isResolved){var x=(y=t.retry)!=null?y:3,S=(b=t.retryDelay)!=null?b:r6,w=typeof S=="function"?S(n.failureCount,m):S,C=x===!0||typeof x=="number"&&n.failureCount<x||typeof x=="function"&&x(n.failureCount,m);if(r||!C){u(m);return}n.failureCount++,t.onFail==null||t.onFail(n.failureCount,m),e6(w).then(function(){if(!vd.isFocused()||!Ip.isOnline())return d()}).then(function(){r?u(m):p()})}})}};h()},i6=function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(n){n()},this.batchNotifyFn=function(n){n()}}var t=e.prototype;return t.batch=function(r){var i;this.transactions++;try{i=r()}finally{this.transactions--,this.transactions||this.flush()}return i},t.schedule=function(r){var i=this;this.transactions?this.queue.push(r):RE(function(){i.notifyFn(r)})},t.batchCalls=function(r){var i=this;return function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];i.schedule(function(){r.apply(void 0,a)})}},t.flush=function(){var r=this,i=this.queue;this.queue=[],i.length&&RE(function(){r.batchNotifyFn(function(){i.forEach(function(o){r.notifyFn(o)})})})},t.setNotifyFunction=function(r){this.notifyFn=r},t.setBatchNotifyFunction=function(r){this.batchNotifyFn=r},e}(),cn=new i6,OI=console;function dg(){return OI}function o6(e){OI=e}var a6=function(){function e(n){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.cache=n.cache,this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.initialState=n.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=n.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(r){var i;this.options=M({},this.defaultOptions,r),this.meta=r==null?void 0:r.meta,this.cacheTime=Math.max(this.cacheTime||0,(i=this.options.cacheTime)!=null?i:5*60*1e3)},t.setDefaultOptions=function(r){this.defaultOptions=r},t.scheduleGc=function(){var r=this;this.clearGcTimeout(),B0(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){r.optionalRemove()},this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(r,i){var o,a,s=this.state.data,l=Yz(r,s);return(o=(a=this.options).isDataEqual)!=null&&o.call(a,s,l)?l=s:this.options.structuralSharing!==!1&&(l=ug(s,l)),this.dispatch({data:l,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt}),l},t.setState=function(r,i){this.dispatch({type:"setState",state:r,setStateOptions:i})},t.cancel=function(r){var i,o=this.promise;return(i=this.retryer)==null||i.cancel(r),o?o.then(ur).catch(ur):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some(function(r){return r.options.enabled!==!1})},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(r){return r.getCurrentResult().isStale})},t.isStaleByTime=function(r){return r===void 0&&(r=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!_I(this.state.dataUpdatedAt,r)},t.onFocus=function(){var r,i=this.observers.find(function(o){return o.shouldFetchOnWindowFocus()});i&&i.refetch(),(r=this.retryer)==null||r.continue()},t.onOnline=function(){var r,i=this.observers.find(function(o){return o.shouldFetchOnReconnect()});i&&i.refetch(),(r=this.retryer)==null||r.continue()},t.addObserver=function(r){this.observers.indexOf(r)===-1&&(this.observers.push(r),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:r}))},t.removeObserver=function(r){this.observers.indexOf(r)!==-1&&(this.observers=this.observers.filter(function(i){return i!==r}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:r}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(r,i){var o=this,a,s,l;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var u;return(u=this.retryer)==null||u.continueRetry(),this.promise}}if(r&&this.setOptions(r),!this.options.queryFn){var d=this.observers.find(function(S){return S.options.queryFn});d&&this.setOptions(d.options)}var h=sg(this.queryKey),p=SI(),g={queryKey:h,pageParam:void 0,meta:this.meta};Object.defineProperty(g,"signal",{enumerable:!0,get:function(){if(p)return o.abortSignalConsumed=!0,p.signal}});var m=function(){return o.options.queryFn?(o.abortSignalConsumed=!1,o.options.queryFn(g)):Promise.reject("Missing queryFn")},y={fetchOptions:i,options:this.options,queryKey:h,state:this.state,fetchFn:m,meta:this.meta};if((a=this.options.behavior)!=null&&a.onFetch){var b;(b=this.options.behavior)==null||b.onFetch(y)}if(this.revertState=this.state,!this.state.isFetching||this.state.fetchMeta!==((s=y.fetchOptions)==null?void 0:s.meta)){var x;this.dispatch({type:"fetch",meta:(x=y.fetchOptions)==null?void 0:x.meta})}return this.retryer=new EI({fn:y.fetchFn,abort:p==null||(l=p.abort)==null?void 0:l.bind(p),onSuccess:function(w){o.setData(w),o.cache.config.onSuccess==null||o.cache.config.onSuccess(w,o),o.cacheTime===0&&o.optionalRemove()},onError:function(w){$p(w)&&w.silent||o.dispatch({type:"error",error:w}),$p(w)||(o.cache.config.onError==null||o.cache.config.onError(w,o),dg().error(w)),o.cacheTime===0&&o.optionalRemove()},onFail:function(){o.dispatch({type:"failed"})},onPause:function(){o.dispatch({type:"pause"})},onContinue:function(){o.dispatch({type:"continue"})},retry:y.options.retry,retryDelay:y.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(r){var i=this;this.state=this.reducer(this.state,r),cn.batch(function(){i.observers.forEach(function(o){o.onQueryUpdate(r)}),i.cache.notify({query:i,type:"queryUpdated",action:r})})},t.getDefaultState=function(r){var i=typeof r.initialData=="function"?r.initialData():r.initialData,o=typeof r.initialData<"u",a=o?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0,s=typeof i<"u";return{data:i,dataUpdateCount:0,dataUpdatedAt:s?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:s?"success":"idle"}},t.reducer=function(r,i){var o,a;switch(i.type){case"failed":return M({},r,{fetchFailureCount:r.fetchFailureCount+1});case"pause":return M({},r,{isPaused:!0});case"continue":return M({},r,{isPaused:!1});case"fetch":return M({},r,{fetchFailureCount:0,fetchMeta:(o=i.meta)!=null?o:null,isFetching:!0,isPaused:!1},!r.dataUpdatedAt&&{error:null,status:"loading"});case"success":return M({},r,{data:i.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(a=i.dataUpdatedAt)!=null?a:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var s=i.error;return $p(s)&&s.revert&&this.revertState?M({},this.revertState):M({},r,{error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return M({},r,{isInvalidated:!0});case"setState":return M({},r,i.state);default:return r}},e}(),s6=function(e){oa(t,e);function t(r){var i;return i=e.call(this)||this,i.config=r||{},i.queries=[],i.queriesMap={},i}var n=t.prototype;return n.build=function(i,o,a){var s,l=o.queryKey,u=(s=o.queryHash)!=null?s:mw(l,o),d=this.get(u);return d||(d=new a6({cache:this,queryKey:l,queryHash:u,options:i.defaultQueryOptions(o),state:a,defaultOptions:i.getQueryDefaults(l),meta:o.meta}),this.add(d)),d},n.add=function(i){this.queriesMap[i.queryHash]||(this.queriesMap[i.queryHash]=i,this.queries.push(i),this.notify({type:"queryAdded",query:i}))},n.remove=function(i){var o=this.queriesMap[i.queryHash];o&&(i.destroy(),this.queries=this.queries.filter(function(a){return a!==i}),o===i&&delete this.queriesMap[i.queryHash],this.notify({type:"queryRemoved",query:i}))},n.clear=function(){var i=this;cn.batch(function(){i.queries.forEach(function(o){i.remove(o)})})},n.get=function(i){return this.queriesMap[i]},n.getAll=function(){return this.queries},n.find=function(i,o){var a=Ia(i,o),s=a[0];return typeof s.exact>"u"&&(s.exact=!0),this.queries.find(function(l){return EE(s,l)})},n.findAll=function(i,o){var a=Ia(i,o),s=a[0];return Object.keys(s).length>0?this.queries.filter(function(l){return EE(s,l)}):this.queries},n.notify=function(i){var o=this;cn.batch(function(){o.listeners.forEach(function(a){a(i)})})},n.onFocus=function(){var i=this;cn.batch(function(){i.queries.forEach(function(o){o.onFocus()})})},n.onOnline=function(){var i=this;cn.batch(function(){i.queries.forEach(function(o){o.onOnline()})})},t}(Uu),l6=function(){function e(n){this.options=M({},n.defaultOptions,n.options),this.mutationId=n.mutationId,this.mutationCache=n.mutationCache,this.observers=[],this.state=n.state||PI(),this.meta=n.meta}var t=e.prototype;return t.setState=function(r){this.dispatch({type:"setState",state:r})},t.addObserver=function(r){this.observers.indexOf(r)===-1&&this.observers.push(r)},t.removeObserver=function(r){this.observers=this.observers.filter(function(i){return i!==r})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(ur).catch(ur)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var r=this,i,o=this.state.status==="loading",a=Promise.resolve();return o||(this.dispatch({type:"loading",variables:this.options.variables}),a=a.then(function(){r.mutationCache.config.onMutate==null||r.mutationCache.config.onMutate(r.state.variables,r)}).then(function(){return r.options.onMutate==null?void 0:r.options.onMutate(r.state.variables)}).then(function(s){s!==r.state.context&&r.dispatch({type:"loading",context:s,variables:r.state.variables})})),a.then(function(){return r.executeMutation()}).then(function(s){i=s,r.mutationCache.config.onSuccess==null||r.mutationCache.config.onSuccess(i,r.state.variables,r.state.context,r)}).then(function(){return r.options.onSuccess==null?void 0:r.options.onSuccess(i,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(i,null,r.state.variables,r.state.context)}).then(function(){return r.dispatch({type:"success",data:i}),i}).catch(function(s){return r.mutationCache.config.onError==null||r.mutationCache.config.onError(s,r.state.variables,r.state.context,r),dg().error(s),Promise.resolve().then(function(){return r.options.onError==null?void 0:r.options.onError(s,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(void 0,s,r.state.variables,r.state.context)}).then(function(){throw r.dispatch({type:"error",error:s}),s})})},t.executeMutation=function(){var r=this,i;return this.retryer=new EI({fn:function(){return r.options.mutationFn?r.options.mutationFn(r.state.variables):Promise.reject("No mutationFn found")},onFail:function(){r.dispatch({type:"failed"})},onPause:function(){r.dispatch({type:"pause"})},onContinue:function(){r.dispatch({type:"continue"})},retry:(i=this.options.retry)!=null?i:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(r){var i=this;this.state=u6(this.state,r),cn.batch(function(){i.observers.forEach(function(o){o.onMutationUpdate(r)}),i.mutationCache.notify(i)})},e}();function PI(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function u6(e,t){switch(t.type){case"failed":return M({},e,{failureCount:e.failureCount+1});case"pause":return M({},e,{isPaused:!0});case"continue":return M({},e,{isPaused:!1});case"loading":return M({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return M({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return M({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return M({},e,t.state);default:return e}}var c6=function(e){oa(t,e);function t(r){var i;return i=e.call(this)||this,i.config=r||{},i.mutations=[],i.mutationId=0,i}var n=t.prototype;return n.build=function(i,o,a){var s=new l6({mutationCache:this,mutationId:++this.mutationId,options:i.defaultMutationOptions(o),state:a,defaultOptions:o.mutationKey?i.getMutationDefaults(o.mutationKey):void 0,meta:o.meta});return this.add(s),s},n.add=function(i){this.mutations.push(i),this.notify(i)},n.remove=function(i){this.mutations=this.mutations.filter(function(o){return o!==i}),i.cancel(),this.notify(i)},n.clear=function(){var i=this;cn.batch(function(){i.mutations.forEach(function(o){i.remove(o)})})},n.getAll=function(){return this.mutations},n.find=function(i){return typeof i.exact>"u"&&(i.exact=!0),this.mutations.find(function(o){return OE(i,o)})},n.findAll=function(i){return this.mutations.filter(function(o){return OE(i,o)})},n.notify=function(i){var o=this;cn.batch(function(){o.listeners.forEach(function(a){a(i)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var i=this.mutations.filter(function(o){return o.state.isPaused});return cn.batch(function(){return i.reduce(function(o,a){return o.then(function(){return a.continue().catch(ur)})},Promise.resolve())})},t}(Uu);function d6(){return{onFetch:function(t){t.fetchFn=function(){var n,r,i,o,a,s,l=(n=t.fetchOptions)==null||(r=n.meta)==null?void 0:r.refetchPage,u=(i=t.fetchOptions)==null||(o=i.meta)==null?void 0:o.fetchMore,d=u==null?void 0:u.pageParam,h=(u==null?void 0:u.direction)==="forward",p=(u==null?void 0:u.direction)==="backward",g=((a=t.state.data)==null?void 0:a.pages)||[],m=((s=t.state.data)==null?void 0:s.pageParams)||[],y=SI(),b=y==null?void 0:y.signal,x=m,S=!1,w=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},C=function(z,F,j,K){return x=K?[F].concat(x):[].concat(x,[F]),K?[j].concat(z):[].concat(z,[j])},R=function(z,F,j,K){if(S)return Promise.reject("Cancelled");if(typeof j>"u"&&!F&&z.length)return Promise.resolve(z);var V={queryKey:t.queryKey,signal:b,pageParam:j,meta:t.meta},J=w(V),oe=Promise.resolve(J).then(function(le){return C(z,j,le,K)});if(cg(J)){var ce=oe;ce.cancel=J.cancel}return oe},O;if(!g.length)O=R([]);else if(h){var T=typeof d<"u",A=T?d:ME(t.options,g);O=R(g,T,A)}else if(p){var L=typeof d<"u",I=L?d:f6(t.options,g);O=R(g,L,I,!0)}else(function(){x=[];var U=typeof t.options.getNextPageParam>"u",z=l&&g[0]?l(g[0],0,g):!0;O=z?R([],U,m[0]):Promise.resolve(C([],m[0],g[0]));for(var F=function(V){O=O.then(function(J){var oe=l&&g[V]?l(g[V],V,g):!0;if(oe){var ce=U?m[V]:ME(t.options,J);return R(J,U,ce)}return Promise.resolve(C(J,m[V],g[V]))})},j=1;j<g.length;j++)F(j)})();var N=O.then(function(U){return{pages:U,pageParams:x}}),B=N;return B.cancel=function(){S=!0,y==null||y.abort(),cg(O)&&O.cancel()},N}}}}function ME(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function f6(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}var h6=function(){function e(n){n===void 0&&(n={}),this.queryCache=n.queryCache||new s6,this.mutationCache=n.mutationCache||new c6,this.defaultOptions=n.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var r=this;this.unsubscribeFocus=vd.subscribe(function(){vd.isFocused()&&Ip.isOnline()&&(r.mutationCache.onFocus(),r.queryCache.onFocus())}),this.unsubscribeOnline=Ip.subscribe(function(){vd.isFocused()&&Ip.isOnline()&&(r.mutationCache.onOnline(),r.queryCache.onOnline())})},t.unmount=function(){var r,i;(r=this.unsubscribeFocus)==null||r.call(this),(i=this.unsubscribeOnline)==null||i.call(this)},t.isFetching=function(r,i){var o=Ia(r,i),a=o[0];return a.fetching=!0,this.queryCache.findAll(a).length},t.isMutating=function(r){return this.mutationCache.findAll(M({},r,{fetching:!0})).length},t.getQueryData=function(r,i){var o;return(o=this.queryCache.find(r,i))==null?void 0:o.state.data},t.getQueriesData=function(r){return this.getQueryCache().findAll(r).map(function(i){var o=i.queryKey,a=i.state,s=a.data;return[o,s]})},t.setQueryData=function(r,i,o){var a=Dp(r),s=this.defaultQueryOptions(a);return this.queryCache.build(this,s).setData(i,o)},t.setQueriesData=function(r,i,o){var a=this;return cn.batch(function(){return a.getQueryCache().findAll(r).map(function(s){var l=s.queryKey;return[l,a.setQueryData(l,i,o)]})})},t.getQueryState=function(r,i){var o;return(o=this.queryCache.find(r,i))==null?void 0:o.state},t.removeQueries=function(r,i){var o=Ia(r,i),a=o[0],s=this.queryCache;cn.batch(function(){s.findAll(a).forEach(function(l){s.remove(l)})})},t.resetQueries=function(r,i,o){var a=this,s=Ia(r,i,o),l=s[0],u=s[1],d=this.queryCache,h=M({},l,{active:!0});return cn.batch(function(){return d.findAll(l).forEach(function(p){p.reset()}),a.refetchQueries(h,u)})},t.cancelQueries=function(r,i,o){var a=this,s=Ia(r,i,o),l=s[0],u=s[1],d=u===void 0?{}:u;typeof d.revert>"u"&&(d.revert=!0);var h=cn.batch(function(){return a.queryCache.findAll(l).map(function(p){return p.cancel(d)})});return Promise.all(h).then(ur).catch(ur)},t.invalidateQueries=function(r,i,o){var a,s,l,u=this,d=Ia(r,i,o),h=d[0],p=d[1],g=M({},h,{active:(a=(s=h.refetchActive)!=null?s:h.active)!=null?a:!0,inactive:(l=h.refetchInactive)!=null?l:!1});return cn.batch(function(){return u.queryCache.findAll(h).forEach(function(m){m.invalidate()}),u.refetchQueries(g,p)})},t.refetchQueries=function(r,i,o){var a=this,s=Ia(r,i,o),l=s[0],u=s[1],d=cn.batch(function(){return a.queryCache.findAll(l).map(function(p){return p.fetch(void 0,M({},u,{meta:{refetchPage:l==null?void 0:l.refetchPage}}))})}),h=Promise.all(d).then(ur);return u!=null&&u.throwOnError||(h=h.catch(ur)),h},t.fetchQuery=function(r,i,o){var a=Dp(r,i,o),s=this.defaultQueryOptions(a);typeof s.retry>"u"&&(s.retry=!1);var l=this.queryCache.build(this,s);return l.isStaleByTime(s.staleTime)?l.fetch(s):Promise.resolve(l.state.data)},t.prefetchQuery=function(r,i,o){return this.fetchQuery(r,i,o).then(ur).catch(ur)},t.fetchInfiniteQuery=function(r,i,o){var a=Dp(r,i,o);return a.behavior=d6(),this.fetchQuery(a)},t.prefetchInfiniteQuery=function(r,i,o){return this.fetchInfiniteQuery(r,i,o).then(ur).catch(ur)},t.cancelMutations=function(){var r=this,i=cn.batch(function(){return r.mutationCache.getAll().map(function(o){return o.cancel()})});return Promise.all(i).then(ur).catch(ur)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(r){return this.mutationCache.build(this,r).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(r){this.defaultOptions=r},t.setQueryDefaults=function(r,i){var o=this.queryDefaults.find(function(a){return $s(r)===$s(a.queryKey)});o?o.defaultOptions=i:this.queryDefaults.push({queryKey:r,defaultOptions:i})},t.getQueryDefaults=function(r){var i;return r?(i=this.queryDefaults.find(function(o){return lg(r,o.queryKey)}))==null?void 0:i.defaultOptions:void 0},t.setMutationDefaults=function(r,i){var o=this.mutationDefaults.find(function(a){return $s(r)===$s(a.mutationKey)});o?o.defaultOptions=i:this.mutationDefaults.push({mutationKey:r,defaultOptions:i})},t.getMutationDefaults=function(r){var i;return r?(i=this.mutationDefaults.find(function(o){return lg(r,o.mutationKey)}))==null?void 0:i.defaultOptions:void 0},t.defaultQueryOptions=function(r){if(r!=null&&r._defaulted)return r;var i=M({},this.defaultOptions.queries,this.getQueryDefaults(r==null?void 0:r.queryKey),r,{_defaulted:!0});return!i.queryHash&&i.queryKey&&(i.queryHash=mw(i.queryKey,i)),i},t.defaultQueryObserverOptions=function(r){return this.defaultQueryOptions(r)},t.defaultMutationOptions=function(r){return r!=null&&r._defaulted?r:M({},this.defaultOptions.mutations,this.getMutationDefaults(r==null?void 0:r.mutationKey),r,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),p6=function(e){oa(t,e);function t(r,i){var o;return o=e.call(this)||this,o.client=r,o.options=i,o.trackedProps=[],o.selectError=null,o.bindMethods(),o.setOptions(i),o}var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),AE(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return W0(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return W0(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(i,o){var a=this.options,s=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(i),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=a.queryKey),this.updateQuery();var l=this.hasListeners();l&&DE(this.currentQuery,s,this.options,a)&&this.executeFetch(),this.updateResult(o),l&&(this.currentQuery!==s||this.options.enabled!==a.enabled||this.options.staleTime!==a.staleTime)&&this.updateStaleTimeout();var u=this.computeRefetchInterval();l&&(this.currentQuery!==s||this.options.enabled!==a.enabled||u!==this.currentRefetchInterval)&&this.updateRefetchInterval(u)},n.getOptimisticResult=function(i){var o=this.client.defaultQueryObserverOptions(i),a=this.client.getQueryCache().build(this.client,o);return this.createResult(a,o)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(i,o){var a=this,s={},l=function(d){a.trackedProps.includes(d)||a.trackedProps.push(d)};return Object.keys(i).forEach(function(u){Object.defineProperty(s,u,{configurable:!1,enumerable:!0,get:function(){return l(u),i[u]}})}),(o.useErrorBoundary||o.suspense)&&l("error"),s},n.getNextResult=function(i){var o=this;return new Promise(function(a,s){var l=o.subscribe(function(u){u.isFetching||(l(),u.isError&&(i!=null&&i.throwOnError)?s(u.error):a(u))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(i){return this.fetch(M({},i,{meta:{refetchPage:i==null?void 0:i.refetchPage}}))},n.fetchOptimistic=function(i){var o=this,a=this.client.defaultQueryObserverOptions(i),s=this.client.getQueryCache().build(this.client,a);return s.fetch().then(function(){return o.createResult(s,a)})},n.fetch=function(i){var o=this;return this.executeFetch(i).then(function(){return o.updateResult(),o.currentResult})},n.executeFetch=function(i){this.updateQuery();var o=this.currentQuery.fetch(this.options,i);return i!=null&&i.throwOnError||(o=o.catch(ur)),o},n.updateStaleTimeout=function(){var i=this;if(this.clearStaleTimeout(),!(ag||this.currentResult.isStale||!B0(this.options.staleTime))){var o=_I(this.currentResult.dataUpdatedAt,this.options.staleTime),a=o+1;this.staleTimeoutId=setTimeout(function(){i.currentResult.isStale||i.updateResult()},a)}},n.computeRefetchInterval=function(){var i;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(i=this.options.refetchInterval)!=null?i:!1},n.updateRefetchInterval=function(i){var o=this;this.clearRefetchInterval(),this.currentRefetchInterval=i,!(ag||this.options.enabled===!1||!B0(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(o.options.refetchIntervalInBackground||vd.isFocused())&&o.executeFetch()},this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(i,o){var a=this.currentQuery,s=this.options,l=this.currentResult,u=this.currentResultState,d=this.currentResultOptions,h=i!==a,p=h?i.state:this.currentQueryInitialState,g=h?this.currentResult:this.previousQueryResult,m=i.state,y=m.dataUpdatedAt,b=m.error,x=m.errorUpdatedAt,S=m.isFetching,w=m.status,C=!1,R=!1,O;if(o.optimisticResults){var T=this.hasListeners(),A=!T&&AE(i,o),L=T&&DE(i,a,o,s);(A||L)&&(S=!0,y||(w="loading"))}if(o.keepPreviousData&&!m.dataUpdateCount&&(g!=null&&g.isSuccess)&&w!=="error")O=g.data,y=g.dataUpdatedAt,w=g.status,C=!0;else if(o.select&&typeof m.data<"u")if(l&&m.data===(u==null?void 0:u.data)&&o.select===this.selectFn)O=this.selectResult;else try{this.selectFn=o.select,O=o.select(m.data),o.structuralSharing!==!1&&(O=ug(l==null?void 0:l.data,O)),this.selectResult=O,this.selectError=null}catch(B){dg().error(B),this.selectError=B}else O=m.data;if(typeof o.placeholderData<"u"&&typeof O>"u"&&(w==="loading"||w==="idle")){var I;if(l!=null&&l.isPlaceholderData&&o.placeholderData===(d==null?void 0:d.placeholderData))I=l.data;else if(I=typeof o.placeholderData=="function"?o.placeholderData():o.placeholderData,o.select&&typeof I<"u")try{I=o.select(I),o.structuralSharing!==!1&&(I=ug(l==null?void 0:l.data,I)),this.selectError=null}catch(B){dg().error(B),this.selectError=B}typeof I<"u"&&(w="success",O=I,R=!0)}this.selectError&&(b=this.selectError,O=this.selectResult,x=Date.now(),w="error");var N={status:w,isLoading:w==="loading",isSuccess:w==="success",isError:w==="error",isIdle:w==="idle",data:O,dataUpdatedAt:y,error:b,errorUpdatedAt:x,failureCount:m.fetchFailureCount,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>p.dataUpdateCount||m.errorUpdateCount>p.errorUpdateCount,isFetching:S,isRefetching:S&&w!=="loading",isLoadingError:w==="error"&&m.dataUpdatedAt===0,isPlaceholderData:R,isPreviousData:C,isRefetchError:w==="error"&&m.dataUpdatedAt!==0,isStale:vw(i,o),refetch:this.refetch,remove:this.remove};return N},n.shouldNotifyListeners=function(i,o){if(!o)return!0;var a=this.options,s=a.notifyOnChangeProps,l=a.notifyOnChangePropsExclusions;if(!s&&!l||s==="tracked"&&!this.trackedProps.length)return!0;var u=s==="tracked"?this.trackedProps:s;return Object.keys(i).some(function(d){var h=d,p=i[h]!==o[h],g=u==null?void 0:u.some(function(y){return y===d}),m=l==null?void 0:l.some(function(y){return y===d});return p&&!m&&(!u||g)})},n.updateResult=function(i){var o=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!Jz(this.currentResult,o)){var a={cache:!0};(i==null?void 0:i.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,o)&&(a.listeners=!0),this.notify(M({},a,i))}},n.updateQuery=function(){var i=this.client.getQueryCache().build(this.client,this.options);if(i!==this.currentQuery){var o=this.currentQuery;this.currentQuery=i,this.currentQueryInitialState=i.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(o==null||o.removeObserver(this),i.addObserver(this))}},n.onQueryUpdate=function(i){var o={};i.type==="success"?o.onSuccess=!0:i.type==="error"&&!$p(i.error)&&(o.onError=!0),this.updateResult(o),this.hasListeners()&&this.updateTimers()},n.notify=function(i){var o=this;cn.batch(function(){i.onSuccess?(o.options.onSuccess==null||o.options.onSuccess(o.currentResult.data),o.options.onSettled==null||o.options.onSettled(o.currentResult.data,null)):i.onError&&(o.options.onError==null||o.options.onError(o.currentResult.error),o.options.onSettled==null||o.options.onSettled(void 0,o.currentResult.error)),i.listeners&&o.listeners.forEach(function(a){a(o.currentResult)}),i.cache&&o.client.getQueryCache().notify({query:o.currentQuery,type:"observerResultsUpdated"})})},t}(Uu);function g6(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function AE(e,t){return g6(e,t)||e.state.dataUpdatedAt>0&&W0(e,t,t.refetchOnMount)}function W0(e,t,n){if(t.enabled!==!1){var r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&vw(e,t)}return!1}function DE(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&vw(e,n)}function vw(e,t){return e.isStaleByTime(t.staleTime)}var m6=function(e){oa(t,e);function t(r,i){var o;return o=e.call(this)||this,o.client=r,o.setOptions(i),o.bindMethods(),o.updateResult(),o}var n=t.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(i){this.options=this.client.defaultMutationOptions(i)},n.onUnsubscribe=function(){if(!this.listeners.length){var i;(i=this.currentMutation)==null||i.removeObserver(this)}},n.onMutationUpdate=function(i){this.updateResult();var o={listeners:!0};i.type==="success"?o.onSuccess=!0:i.type==="error"&&(o.onError=!0),this.notify(o)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(i,o){return this.mutateOptions=o,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,M({},this.options,{variables:typeof i<"u"?i:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var i=this.currentMutation?this.currentMutation.state:PI(),o=M({},i,{isLoading:i.status==="loading",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=o},n.notify=function(i){var o=this;cn.batch(function(){o.mutateOptions&&(i.onSuccess?(o.mutateOptions.onSuccess==null||o.mutateOptions.onSuccess(o.currentResult.data,o.currentResult.variables,o.currentResult.context),o.mutateOptions.onSettled==null||o.mutateOptions.onSettled(o.currentResult.data,null,o.currentResult.variables,o.currentResult.context)):i.onError&&(o.mutateOptions.onError==null||o.mutateOptions.onError(o.currentResult.error,o.currentResult.variables,o.currentResult.context),o.mutateOptions.onSettled==null||o.mutateOptions.onSettled(void 0,o.currentResult.error,o.currentResult.variables,o.currentResult.context))),i.listeners&&o.listeners.forEach(function(a){a(o.currentResult)})})},t}(Uu),v6=id.unstable_batchedUpdates;cn.setBatchNotifyFunction(v6);var y6=console;o6(y6);var IE=lt.createContext(void 0),RI=lt.createContext(!1);function MI(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=IE),window.ReactQueryClientContext):IE}var AI=function(){var t=lt.useContext(MI(lt.useContext(RI)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},TNe=function(t){var n=t.client,r=t.contextSharing,i=r===void 0?!1:r,o=t.children;lt.useEffect(function(){return n.mount(),function(){n.unmount()}},[n]);var a=MI(i);return lt.createElement(RI.Provider,{value:i},lt.createElement(a.Provider,{value:n},o))};function b6(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var x6=lt.createContext(b6()),w6=function(){return lt.useContext(x6)};function DI(e,t,n){return typeof t=="function"?t.apply(void 0,n):typeof t=="boolean"?t:!!e}function yw(e,t,n){var r=lt.useRef(!1),i=lt.useState(0),o=i[1],a=Xz(e,t,n),s=AI(),l=lt.useRef();l.current?l.current.setOptions(a):l.current=new m6(s,a);var u=l.current.getCurrentResult();lt.useEffect(function(){r.current=!0;var h=l.current.subscribe(cn.batchCalls(function(){r.current&&o(function(p){return p+1})}));return function(){r.current=!1,h()}},[]);var d=lt.useCallback(function(h,p){l.current.mutate(h,p).catch(ur)},[]);if(u.error&&DI(void 0,l.current.options.useErrorBoundary,[u.error]))throw u.error;return M({},u,{mutate:d,mutateAsync:u.mutate})}function _6(e,t){var n=lt.useRef(!1),r=lt.useState(0),i=r[1],o=AI(),a=w6(),s=o.defaultQueryObserverOptions(e);s.optimisticResults=!0,s.onError&&(s.onError=cn.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=cn.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=cn.batchCalls(s.onSettled)),s.suspense&&(typeof s.staleTime!="number"&&(s.staleTime=1e3),s.cacheTime===0&&(s.cacheTime=1)),(s.suspense||s.useErrorBoundary)&&(a.isReset()||(s.retryOnMount=!1));var l=lt.useState(function(){return new t(o,s)}),u=l[0],d=u.getOptimisticResult(s);if(lt.useEffect(function(){n.current=!0,a.clearReset();var h=u.subscribe(cn.batchCalls(function(){n.current&&i(function(p){return p+1})}));return u.updateResult(),function(){n.current=!1,h()}},[a,u]),lt.useEffect(function(){u.setOptions(s,{listeners:!1})},[s,u]),s.suspense&&d.isLoading)throw u.fetchOptimistic(s).then(function(h){var p=h.data;s.onSuccess==null||s.onSuccess(p),s.onSettled==null||s.onSettled(p,null)}).catch(function(h){a.clearReset(),s.onError==null||s.onError(h),s.onSettled==null||s.onSettled(void 0,h)});if(d.isError&&!a.isReset()&&!d.isFetching&&DI(s.suspense,s.useErrorBoundary,[d.error,u.getCurrentQuery()]))throw d.error;return s.notifyOnChangeProps==="tracked"&&(d=u.trackResult(d,s)),d}function aa(e,t,n){var r=Dp(e,t,n);return _6(r,p6)}/**
|
|
10
|
+
* @remix-run/router v1.23.2
|
|
11
|
+
*
|
|
12
|
+
* Copyright (c) Remix Software Inc.
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the MIT license found in the
|
|
15
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
16
|
+
*
|
|
17
|
+
* @license MIT
|
|
18
|
+
*/function un(){return un=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},un.apply(this,arguments)}var kn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(kn||(kn={}));const $E="popstate";function C6(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:s}=r.location;return jd("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Ys(i)}return T6(t,n,null,e)}function pt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ks(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function S6(){return Math.random().toString(36).substr(2,8)}function LE(e,t){return{usr:e.state,key:e.key,idx:t}}function jd(e,t,n,r){return n===void 0&&(n=null),un({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?qa(t):t,{state:n,key:t&&t.key||r||S6()})}function Ys(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function qa(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 T6(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=kn.Pop,l=null,u=d();u==null&&(u=0,a.replaceState(un({},a.state,{idx:u}),""));function d(){return(a.state||{idx:null}).idx}function h(){s=kn.Pop;let b=d(),x=b==null?null:b-u;u=b,l&&l({action:s,location:y.location,delta:x})}function p(b,x){s=kn.Push;let S=jd(y.location,b,x);u=d()+1;let w=LE(S,u),C=y.createHref(S);try{a.pushState(w,"",C)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;i.location.assign(C)}o&&l&&l({action:s,location:y.location,delta:1})}function g(b,x){s=kn.Replace;let S=jd(y.location,b,x);u=d();let w=LE(S,u),C=y.createHref(S);a.replaceState(w,"",C),o&&l&&l({action:s,location:y.location,delta:0})}function m(b){let x=i.location.origin!=="null"?i.location.origin:i.location.href,S=typeof b=="string"?b:Ys(b);return S=S.replace(/ $/,"%20"),pt(x,"No window.location.(origin|href) available to create URL for href: "+S),new URL(S,x)}let y={get action(){return s},get location(){return e(i,a)},listen(b){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener($E,h),l=b,()=>{i.removeEventListener($E,h),l=null}},createHref(b){return t(i,b)},createURL:m,encodeLocation(b){let x=m(b);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:p,replace:g,go(b){return a.go(b)}};return y}var Ut;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ut||(Ut={}));const E6=new Set(["lazy","caseSensitive","path","id","index","children"]);function O6(e){return e.index===!0}function fg(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,o)=>{let a=[...n,String(o)],s=typeof i.id=="string"?i.id:a.join("-");if(pt(i.index!==!0||!i.children,"Cannot specify children on an index route"),pt(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),O6(i)){let l=un({},i,t(i),{id:s});return r[s]=l,l}else{let l=un({},i,t(i),{id:s,children:void 0});return r[s]=l,i.children&&(l.children=fg(i.children,t,a,r)),l}})}function Rs(e,t,n){return n===void 0&&(n="/"),Lp(e,t,n,!1)}function Lp(e,t,n,r){let i=typeof t=="string"?qa(t):t,o=ea(i.pathname||"/",n);if(o==null)return null;let a=II(e);R6(a);let s=null;for(let l=0;s==null&&l<a.length;++l){let u=B6(o);s=F6(a[l],u,r)}return s}function P6(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function II(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,a,s)=>{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(pt(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Zo([r,l.relativePath]),d=n.concat(l);o.children&&o.children.length>0&&(pt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),II(o.children,t,d,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:k6(u,o.index),routesMeta:d})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of $I(o.path))i(o,a,l)}),t}function $I(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=$I(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function R6(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:N6(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const M6=/^:[\w-]+$/,A6=3,D6=2,I6=1,$6=10,L6=-2,kE=e=>e==="*";function k6(e,t){let n=e.split("/"),r=n.length;return n.some(kE)&&(r+=L6),t&&(r+=D6),n.filter(i=>!kE(i)).reduce((i,o)=>i+(M6.test(o)?A6:o===""?I6:$6),r)}function N6(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function F6(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},o="/",a=[];for(let s=0;s<r.length;++s){let l=r[s],u=s===r.length-1,d=o==="/"?t:t.slice(o.length)||"/",h=hg({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),p=l.route;if(!h&&u&&n&&!r[r.length-1].route.index&&(h=hg({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!h)return null;Object.assign(i,h.params),a.push({params:i,pathname:Zo([o,h.pathname]),pathnameBase:z6(Zo([o,h.pathnameBase])),route:p}),h.pathnameBase!=="/"&&(o=Zo([o,h.pathnameBase]))}return a}function hg(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=j6(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((u,d,h)=>{let{paramName:p,isOptional:g}=d;if(p==="*"){let y=s[h]||"";a=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const m=s[h];return g&&!m?u[p]=void 0:u[p]=(m||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:a,pattern:e}}function j6(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Ks(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function B6(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ks(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ea(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const U6=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,W6=e=>U6.test(e);function H6(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?qa(e):e,o;if(n)if(W6(n))o=n;else{if(n.includes("//")){let a=n;n=n.replace(/\/\/+/g,"/"),Ks(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+n))}n.startsWith("/")?o=NE(n.substring(1),"/"):o=NE(n,t)}else o=t;return{pathname:o,search:V6(r),hash:G6(i)}}function NE(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function wb(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 LI(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function wm(e,t){let n=LI(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function _m(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=qa(e):(i=un({},e),pt(!i.pathname||!i.pathname.includes("?"),wb("?","pathname","search",i)),pt(!i.pathname||!i.pathname.includes("#"),wb("#","pathname","hash",i)),pt(!i.search||!i.search.includes("#"),wb("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=n;else{let h=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),h-=1;i.pathname=p.join("/")}s=h>=0?t[h]:"/"}let l=H6(i,s),u=a&&a!=="/"&&a.endsWith("/"),d=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const Zo=e=>e.join("/").replace(/\/\/+/g,"/"),z6=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),V6=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,G6=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class pg{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Bd(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const kI=["post","put","patch","delete"],q6=new Set(kI),K6=["get",...kI],Y6=new Set(K6),X6=new Set([301,302,303,307,308]),Z6=new Set([307,308]),_b={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Q6={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ac={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},bw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,J6=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),NI="remix-router-transitions";function eV(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;pt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let G=e.detectErrorBoundary;i=Z=>({hasErrorBoundary:G(Z)})}else i=J6;let o={},a=fg(e.routes,i,void 0,o),s,l=e.basename||"/",u=e.dataStrategy||iV,d=e.patchRoutesOnNavigation,h=un({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),p=null,g=new Set,m=null,y=null,b=null,x=e.hydrationData!=null,S=Rs(a,e.history.location,l),w=!1,C=null;if(S==null&&!d){let G=kr(404,{pathname:e.history.location.pathname}),{matches:Z,route:ee}=KE(a);S=Z,C={[ee.id]:G}}S&&!e.hydrationData&&wl(S,a,e.history.location.pathname).active&&(S=null);let R;if(S)if(S.some(G=>G.route.lazy))R=!1;else if(!S.some(G=>G.route.loader))R=!0;else if(h.v7_partialHydration){let G=e.hydrationData?e.hydrationData.loaderData:null,Z=e.hydrationData?e.hydrationData.errors:null;if(Z){let ee=S.findIndex(ae=>Z[ae.route.id]!==void 0);R=S.slice(0,ee+1).every(ae=>!z0(ae.route,G,Z))}else R=S.every(ee=>!z0(ee.route,G,Z))}else R=e.hydrationData!=null;else if(R=!1,S=[],h.v7_partialHydration){let G=wl(null,a,e.history.location.pathname);G.active&&G.matches&&(w=!0,S=G.matches)}let O,T={historyAction:e.history.action,location:e.history.location,matches:S,initialized:R,navigation:_b,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||C,fetchers:new Map,blockers:new Map},A=kn.Pop,L=!1,I,N=!1,B=new Map,U=null,z=!1,F=!1,j=[],K=new Set,V=new Map,J=0,oe=-1,ce=new Map,le=new Set,Me=new Map,ve=new Map,ye=new Set,Ce=new Map,we=new Map,fe;function ue(){if(p=e.history.listen(G=>{let{action:Z,location:ee,delta:ae}=G;if(fe){fe(),fe=void 0;return}Ks(we.size===0||ae!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Se=Zf({currentLocation:T.location,nextLocation:ee,historyAction:Z});if(Se&&ae!=null){let Ke=new Promise(nt=>{fe=nt});e.history.go(ae*-1),bl(Se,{state:"blocked",location:ee,proceed(){bl(Se,{state:"proceeding",proceed:void 0,reset:void 0,location:ee}),Ke.then(()=>e.history.go(ae))},reset(){let nt=new Map(T.blockers);nt.set(Se,Ac),be({blockers:nt})}});return}return tt(Z,ee)}),n){yV(t,B);let G=()=>bV(t,B);t.addEventListener("pagehide",G),U=()=>t.removeEventListener("pagehide",G)}return T.initialized||tt(kn.Pop,T.location,{initialHydration:!0}),O}function Ne(){p&&p(),U&&U(),g.clear(),I&&I.abort(),T.fetchers.forEach((G,Z)=>Kn(Z)),T.blockers.forEach((G,Z)=>yl(Z))}function We(G){return g.add(G),()=>g.delete(G)}function be(G,Z){Z===void 0&&(Z={}),T=un({},T,G);let ee=[],ae=[];h.v7_fetcherPersist&&T.fetchers.forEach((Se,Ke)=>{Se.state==="idle"&&(ye.has(Ke)?ae.push(Ke):ee.push(Ke))}),ye.forEach(Se=>{!T.fetchers.has(Se)&&!V.has(Se)&&ae.push(Se)}),[...g].forEach(Se=>Se(T,{deletedFetchers:ae,viewTransitionOpts:Z.viewTransitionOpts,flushSync:Z.flushSync===!0})),h.v7_fetcherPersist?(ee.forEach(Se=>T.fetchers.delete(Se)),ae.forEach(Se=>Kn(Se))):ae.forEach(Se=>ye.delete(Se))}function pe(G,Z,ee){var ae,Se;let{flushSync:Ke}=ee===void 0?{}:ee,nt=T.actionData!=null&&T.navigation.formMethod!=null&&Hi(T.navigation.formMethod)&&T.navigation.state==="loading"&&((ae=G.state)==null?void 0:ae._isRedirect)!==!0,ke;Z.actionData?Object.keys(Z.actionData).length>0?ke=Z.actionData:ke=null:nt?ke=T.actionData:ke=null;let Fe=Z.loaderData?GE(T.loaderData,Z.loaderData,Z.matches||[],Z.errors):T.loaderData,De=T.blockers;De.size>0&&(De=new Map(De),De.forEach((vt,Wn)=>De.set(Wn,Ac)));let Ge=L===!0||T.navigation.formMethod!=null&&Hi(T.navigation.formMethod)&&((Se=G.state)==null?void 0:Se._isRedirect)!==!0;s&&(a=s,s=void 0),z||A===kn.Pop||(A===kn.Push?e.history.push(G,G.state):A===kn.Replace&&e.history.replace(G,G.state));let at;if(A===kn.Pop){let vt=B.get(T.location.pathname);vt&&vt.has(G.pathname)?at={currentLocation:T.location,nextLocation:G}:B.has(G.pathname)&&(at={currentLocation:G,nextLocation:T.location})}else if(N){let vt=B.get(T.location.pathname);vt?vt.add(G.pathname):(vt=new Set([G.pathname]),B.set(T.location.pathname,vt)),at={currentLocation:T.location,nextLocation:G}}be(un({},Z,{actionData:ke,loaderData:Fe,historyAction:A,location:G,initialized:!0,navigation:_b,revalidation:"idle",restoreScrollPosition:eh(G,Z.matches||T.matches),preventScrollReset:Ge,blockers:De}),{viewTransitionOpts:at,flushSync:Ke===!0}),A=kn.Pop,L=!1,N=!1,z=!1,F=!1,j=[]}async function He(G,Z){if(typeof G=="number"){e.history.go(G);return}let ee=H0(T.location,T.matches,l,h.v7_prependBasename,G,h.v7_relativeSplatPath,Z==null?void 0:Z.fromRouteId,Z==null?void 0:Z.relative),{path:ae,submission:Se,error:Ke}=FE(h.v7_normalizeFormMethod,!1,ee,Z),nt=T.location,ke=jd(T.location,ae,Z&&Z.state);ke=un({},ke,e.history.encodeLocation(ke));let Fe=Z&&Z.replace!=null?Z.replace:void 0,De=kn.Push;Fe===!0?De=kn.Replace:Fe===!1||Se!=null&&Hi(Se.formMethod)&&Se.formAction===T.location.pathname+T.location.search&&(De=kn.Replace);let Ge=Z&&"preventScrollReset"in Z?Z.preventScrollReset===!0:void 0,at=(Z&&Z.flushSync)===!0,vt=Zf({currentLocation:nt,nextLocation:ke,historyAction:De});if(vt){bl(vt,{state:"blocked",location:ke,proceed(){bl(vt,{state:"proceeding",proceed:void 0,reset:void 0,location:ke}),He(G,Z)},reset(){let Wn=new Map(T.blockers);Wn.set(vt,Ac),be({blockers:Wn})}});return}return await tt(De,ke,{submission:Se,pendingError:Ke,preventScrollReset:Ge,replace:Z&&Z.replace,enableViewTransition:Z&&Z.viewTransition,flushSync:at})}function qe(){if(Je(),be({revalidation:"loading"}),T.navigation.state!=="submitting"){if(T.navigation.state==="idle"){tt(T.historyAction,T.location,{startUninterruptedRevalidation:!0});return}tt(A||T.historyAction,T.navigation.location,{overrideNavigation:T.navigation,enableViewTransition:N===!0})}}async function tt(G,Z,ee){I&&I.abort(),I=null,A=G,z=(ee&&ee.startUninterruptedRevalidation)===!0,sy(T.location,T.matches),L=(ee&&ee.preventScrollReset)===!0,N=(ee&&ee.enableViewTransition)===!0;let ae=s||a,Se=ee&&ee.overrideNavigation,Ke=ee!=null&&ee.initialHydration&&T.matches&&T.matches.length>0&&!w?T.matches:Rs(ae,Z,l),nt=(ee&&ee.flushSync)===!0;if(Ke&&T.initialized&&!F&&cV(T.location,Z)&&!(ee&&ee.submission&&Hi(ee.submission.formMethod))){pe(Z,{matches:Ke},{flushSync:nt});return}let ke=wl(Ke,ae,Z.pathname);if(ke.active&&ke.matches&&(Ke=ke.matches),!Ke){let{error:zt,notFoundMatches:Rt,route:on}=pc(Z.pathname);pe(Z,{matches:Rt,loaderData:{},errors:{[on.id]:zt}},{flushSync:nt});return}I=new AbortController;let Fe=Nl(e.history,Z,I.signal,ee&&ee.submission),De;if(ee&&ee.pendingError)De=[Ms(Ke).route.id,{type:Ut.error,error:ee.pendingError}];else if(ee&&ee.submission&&Hi(ee.submission.formMethod)){let zt=await _t(Fe,Z,ee.submission,Ke,ke.active,{replace:ee.replace,flushSync:nt});if(zt.shortCircuited)return;if(zt.pendingActionResult){let[Rt,on]=zt.pendingActionResult;if(ti(on)&&Bd(on.error)&&on.error.status===404){I=null,pe(Z,{matches:zt.matches,loaderData:{},errors:{[Rt]:on.error}});return}}Ke=zt.matches||Ke,De=zt.pendingActionResult,Se=Cb(Z,ee.submission),nt=!1,ke.active=!1,Fe=Nl(e.history,Fe.url,Fe.signal)}let{shortCircuited:Ge,matches:at,loaderData:vt,errors:Wn}=await Ct(Fe,Z,Ke,ke.active,Se,ee&&ee.submission,ee&&ee.fetcherSubmission,ee&&ee.replace,ee&&ee.initialHydration===!0,nt,De);Ge||(I=null,pe(Z,un({matches:at||Ke},qE(De),{loaderData:vt,errors:Wn})))}async function _t(G,Z,ee,ae,Se,Ke){Ke===void 0&&(Ke={}),Je();let nt=mV(Z,ee);if(be({navigation:nt},{flushSync:Ke.flushSync===!0}),Se){let De=await ts(ae,Z.pathname,G.signal);if(De.type==="aborted")return{shortCircuited:!0};if(De.type==="error"){let Ge=Ms(De.partialMatches).route.id;return{matches:De.partialMatches,pendingActionResult:[Ge,{type:Ut.error,error:De.error}]}}else if(De.matches)ae=De.matches;else{let{notFoundMatches:Ge,error:at,route:vt}=pc(Z.pathname);return{matches:Ge,pendingActionResult:[vt.id,{type:Ut.error,error:at}]}}}let ke,Fe=od(ae,Z);if(!Fe.route.action&&!Fe.route.lazy)ke={type:Ut.error,error:kr(405,{method:G.method,pathname:Z.pathname,routeId:Fe.route.id})};else if(ke=(await Oe("action",T,G,[Fe],ae,null))[Fe.route.id],G.signal.aborted)return{shortCircuited:!0};if(Ls(ke)){let De;return Ke&&Ke.replace!=null?De=Ke.replace:De=HE(ke.response.headers.get("Location"),new URL(G.url),l,e.history)===T.location.pathname+T.location.search,await he(G,ke,!0,{submission:ee,replace:De}),{shortCircuited:!0}}if($a(ke))throw kr(400,{type:"defer-action"});if(ti(ke)){let De=Ms(ae,Fe.route.id);return(Ke&&Ke.replace)!==!0&&(A=kn.Push),{matches:ae,pendingActionResult:[De.route.id,ke]}}return{matches:ae,pendingActionResult:[Fe.route.id,ke]}}async function Ct(G,Z,ee,ae,Se,Ke,nt,ke,Fe,De,Ge){let at=Se||Cb(Z,Ke),vt=Ke||nt||XE(at),Wn=!z&&(!h.v7_partialHydration||!Fe);if(ae){if(Wn){let Qt=dn(Ge);be(un({navigation:at},Qt!==void 0?{actionData:Qt}:{}),{flushSync:De})}let St=await ts(ee,Z.pathname,G.signal);if(St.type==="aborted")return{shortCircuited:!0};if(St.type==="error"){let Qt=Ms(St.partialMatches).route.id;return{matches:St.partialMatches,loaderData:{},errors:{[Qt]:St.error}}}else if(St.matches)ee=St.matches;else{let{error:Qt,notFoundMatches:ga,route:os}=pc(Z.pathname);return{matches:ga,loaderData:{},errors:{[os.id]:Qt}}}}let zt=s||a,[Rt,on]=BE(e.history,T,ee,vt,Z,h.v7_partialHydration&&Fe===!0,h.v7_skipActionErrorRevalidation,F,j,K,ye,Me,le,zt,l,Ge);if(xl(St=>!(ee&&ee.some(Qt=>Qt.route.id===St))||Rt&&Rt.some(Qt=>Qt.route.id===St)),oe=++J,Rt.length===0&&on.length===0){let St=rn();return pe(Z,un({matches:ee,loaderData:{},errors:Ge&&ti(Ge[1])?{[Ge[0]]:Ge[1].error}:null},qE(Ge),St?{fetchers:new Map(T.fetchers)}:{}),{flushSync:De}),{shortCircuited:!0}}if(Wn){let St={};if(!ae){St.navigation=at;let Qt=dn(Ge);Qt!==void 0&&(St.actionData=Qt)}on.length>0&&(St.fetchers=Yt(on)),be(St,{flushSync:De})}on.forEach(St=>{$e(St.key),St.controller&&V.set(St.key,St.controller)});let ha=()=>on.forEach(St=>$e(St.key));I&&I.signal.addEventListener("abort",ha);let{loaderResults:ns,fetcherResults:Rr}=await je(T,ee,Rt,on,G);if(G.signal.aborted)return{shortCircuited:!0};I&&I.signal.removeEventListener("abort",ha),on.forEach(St=>V.delete(St.key));let si=Uh(ns);if(si)return await he(G,si.result,!0,{replace:ke}),{shortCircuited:!0};if(si=Uh(Rr),si)return le.add(si.key),await he(G,si.result,!0,{replace:ke}),{shortCircuited:!0};let{loaderData:pa,errors:rs}=VE(T,ee,ns,Ge,on,Rr,Ce);Ce.forEach((St,Qt)=>{St.subscribe(ga=>{(ga||St.done)&&Ce.delete(Qt)})}),h.v7_partialHydration&&Fe&&T.errors&&(rs=un({},T.errors,rs));let Eo=rn(),_l=Gr(oe),is=Eo||_l||on.length>0;return un({matches:ee,loaderData:pa,errors:rs},is?{fetchers:new Map(T.fetchers)}:{})}function dn(G){if(G&&!ti(G[1]))return{[G[0]]:G[1].data};if(T.actionData)return Object.keys(T.actionData).length===0?null:T.actionData}function Yt(G){return G.forEach(Z=>{let ee=T.fetchers.get(Z.key),ae=Dc(void 0,ee?ee.data:void 0);T.fetchers.set(Z.key,ae)}),new Map(T.fetchers)}function mt(G,Z,ee,ae){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");$e(G);let Se=(ae&&ae.flushSync)===!0,Ke=s||a,nt=H0(T.location,T.matches,l,h.v7_prependBasename,ee,h.v7_relativeSplatPath,Z,ae==null?void 0:ae.relative),ke=Rs(Ke,nt,l),Fe=wl(ke,Ke,nt);if(Fe.active&&Fe.matches&&(ke=Fe.matches),!ke){Te(G,Z,kr(404,{pathname:nt}),{flushSync:Se});return}let{path:De,submission:Ge,error:at}=FE(h.v7_normalizeFormMethod,!0,nt,ae);if(at){Te(G,Z,at,{flushSync:Se});return}let vt=od(ke,De),Wn=(ae&&ae.preventScrollReset)===!0;if(Ge&&Hi(Ge.formMethod)){Q(G,Z,De,vt,ke,Fe.active,Se,Wn,Ge);return}Me.set(G,{routeId:Z,path:De}),ge(G,Z,De,vt,ke,Fe.active,Se,Wn,Ge)}async function Q(G,Z,ee,ae,Se,Ke,nt,ke,Fe){Je(),Me.delete(G);function De(bn){if(!bn.route.action&&!bn.route.lazy){let ma=kr(405,{method:Fe.formMethod,pathname:ee,routeId:Z});return Te(G,Z,ma,{flushSync:nt}),!0}return!1}if(!Ke&&De(ae))return;let Ge=T.fetchers.get(G);ze(G,vV(Fe,Ge),{flushSync:nt});let at=new AbortController,vt=Nl(e.history,ee,at.signal,Fe);if(Ke){let bn=await ts(Se,new URL(vt.url).pathname,vt.signal,G);if(bn.type==="aborted")return;if(bn.type==="error"){Te(G,Z,bn.error,{flushSync:nt});return}else if(bn.matches){if(Se=bn.matches,ae=od(Se,ee),De(ae))return}else{Te(G,Z,kr(404,{pathname:ee}),{flushSync:nt});return}}V.set(G,at);let Wn=J,Rt=(await Oe("action",T,vt,[ae],Se,G))[ae.route.id];if(vt.signal.aborted){V.get(G)===at&&V.delete(G);return}if(h.v7_fetcherPersist&&ye.has(G)){if(Ls(Rt)||ti(Rt)){ze(G,Ra(void 0));return}}else{if(Ls(Rt))if(V.delete(G),oe>Wn){ze(G,Ra(void 0));return}else return le.add(G),ze(G,Dc(Fe)),he(vt,Rt,!1,{fetcherSubmission:Fe,preventScrollReset:ke});if(ti(Rt)){Te(G,Z,Rt.error);return}}if($a(Rt))throw kr(400,{type:"defer-action"});let on=T.navigation.location||T.location,ha=Nl(e.history,on,at.signal),ns=s||a,Rr=T.navigation.state!=="idle"?Rs(ns,T.navigation.location,l):T.matches;pt(Rr,"Didn't find any matches after fetcher action");let si=++J;ce.set(G,si);let pa=Dc(Fe,Rt.data);T.fetchers.set(G,pa);let[rs,Eo]=BE(e.history,T,Rr,Fe,on,!1,h.v7_skipActionErrorRevalidation,F,j,K,ye,Me,le,ns,l,[ae.route.id,Rt]);Eo.filter(bn=>bn.key!==G).forEach(bn=>{let ma=bn.key,gc=T.fetchers.get(ma),th=Dc(void 0,gc?gc.data:void 0);T.fetchers.set(ma,th),$e(ma),bn.controller&&V.set(ma,bn.controller)}),be({fetchers:new Map(T.fetchers)});let _l=()=>Eo.forEach(bn=>$e(bn.key));at.signal.addEventListener("abort",_l);let{loaderResults:is,fetcherResults:St}=await je(T,Rr,rs,Eo,ha);if(at.signal.aborted)return;at.signal.removeEventListener("abort",_l),ce.delete(G),V.delete(G),Eo.forEach(bn=>V.delete(bn.key));let Qt=Uh(is);if(Qt)return he(ha,Qt.result,!1,{preventScrollReset:ke});if(Qt=Uh(St),Qt)return le.add(Qt.key),he(ha,Qt.result,!1,{preventScrollReset:ke});let{loaderData:ga,errors:os}=VE(T,Rr,is,void 0,Eo,St,Ce);if(T.fetchers.has(G)){let bn=Ra(Rt.data);T.fetchers.set(G,bn)}Gr(si),T.navigation.state==="loading"&&si>oe?(pt(A,"Expected pending action"),I&&I.abort(),pe(T.navigation.location,{matches:Rr,loaderData:ga,errors:os,fetchers:new Map(T.fetchers)})):(be({errors:os,loaderData:GE(T.loaderData,ga,Rr,os),fetchers:new Map(T.fetchers)}),F=!1)}async function ge(G,Z,ee,ae,Se,Ke,nt,ke,Fe){let De=T.fetchers.get(G);ze(G,Dc(Fe,De?De.data:void 0),{flushSync:nt});let Ge=new AbortController,at=Nl(e.history,ee,Ge.signal);if(Ke){let Rt=await ts(Se,new URL(at.url).pathname,at.signal,G);if(Rt.type==="aborted")return;if(Rt.type==="error"){Te(G,Z,Rt.error,{flushSync:nt});return}else if(Rt.matches)Se=Rt.matches,ae=od(Se,ee);else{Te(G,Z,kr(404,{pathname:ee}),{flushSync:nt});return}}V.set(G,Ge);let vt=J,zt=(await Oe("loader",T,at,[ae],Se,G))[ae.route.id];if($a(zt)&&(zt=await xw(zt,at.signal,!0)||zt),V.get(G)===Ge&&V.delete(G),!at.signal.aborted){if(ye.has(G)){ze(G,Ra(void 0));return}if(Ls(zt))if(oe>vt){ze(G,Ra(void 0));return}else{le.add(G),await he(at,zt,!1,{preventScrollReset:ke});return}if(ti(zt)){Te(G,Z,zt.error);return}pt(!$a(zt),"Unhandled fetcher deferred data"),ze(G,Ra(zt.data))}}async function he(G,Z,ee,ae){let{submission:Se,fetcherSubmission:Ke,preventScrollReset:nt,replace:ke}=ae===void 0?{}:ae;Z.response.headers.has("X-Remix-Revalidate")&&(F=!0);let Fe=Z.response.headers.get("Location");pt(Fe,"Expected a Location header on the redirect Response"),Fe=HE(Fe,new URL(G.url),l,e.history);let De=jd(T.location,Fe,{_isRedirect:!0});if(n){let Rt=!1;if(Z.response.headers.has("X-Remix-Reload-Document"))Rt=!0;else if(bw.test(Fe)){const on=e.history.createURL(Fe);Rt=on.origin!==t.location.origin||ea(on.pathname,l)==null}if(Rt){ke?t.location.replace(Fe):t.location.assign(Fe);return}}I=null;let Ge=ke===!0||Z.response.headers.has("X-Remix-Replace")?kn.Replace:kn.Push,{formMethod:at,formAction:vt,formEncType:Wn}=T.navigation;!Se&&!Ke&&at&&vt&&Wn&&(Se=XE(T.navigation));let zt=Se||Ke;if(Z6.has(Z.response.status)&&zt&&Hi(zt.formMethod))await tt(Ge,De,{submission:un({},zt,{formAction:Fe}),preventScrollReset:nt||L,enableViewTransition:ee?N:void 0});else{let Rt=Cb(De,Se);await tt(Ge,De,{overrideNavigation:Rt,fetcherSubmission:Ke,preventScrollReset:nt||L,enableViewTransition:ee?N:void 0})}}async function Oe(G,Z,ee,ae,Se,Ke){let nt,ke={};try{nt=await oV(u,G,Z,ee,ae,Se,Ke,o,i)}catch(Fe){return ae.forEach(De=>{ke[De.route.id]={type:Ut.error,error:Fe}}),ke}for(let[Fe,De]of Object.entries(nt))if(dV(De)){let Ge=De.result;ke[Fe]={type:Ut.redirect,response:lV(Ge,ee,Fe,Se,l,h.v7_relativeSplatPath)}}else ke[Fe]=await sV(De);return ke}async function je(G,Z,ee,ae,Se){let Ke=G.matches,nt=Oe("loader",G,Se,ee,Z,null),ke=Promise.all(ae.map(async Ge=>{if(Ge.matches&&Ge.match&&Ge.controller){let vt=(await Oe("loader",G,Nl(e.history,Ge.path,Ge.controller.signal),[Ge.match],Ge.matches,Ge.key))[Ge.match.route.id];return{[Ge.key]:vt}}else return Promise.resolve({[Ge.key]:{type:Ut.error,error:kr(404,{pathname:Ge.path})}})})),Fe=await nt,De=(await ke).reduce((Ge,at)=>Object.assign(Ge,at),{});return await Promise.all([pV(Z,Fe,Se.signal,Ke,G.loaderData),gV(Z,De,ae)]),{loaderResults:Fe,fetcherResults:De}}function Je(){F=!0,j.push(...xl()),Me.forEach((G,Z)=>{V.has(Z)&&K.add(Z),$e(Z)})}function ze(G,Z,ee){ee===void 0&&(ee={}),T.fetchers.set(G,Z),be({fetchers:new Map(T.fetchers)},{flushSync:(ee&&ee.flushSync)===!0})}function Te(G,Z,ee,ae){ae===void 0&&(ae={});let Se=Ms(T.matches,Z);Kn(G),be({errors:{[Se.route.id]:ee},fetchers:new Map(T.fetchers)},{flushSync:(ae&&ae.flushSync)===!0})}function Ln(G){return ve.set(G,(ve.get(G)||0)+1),ye.has(G)&&ye.delete(G),T.fetchers.get(G)||Q6}function Kn(G){let Z=T.fetchers.get(G);V.has(G)&&!(Z&&Z.state==="loading"&&ce.has(G))&&$e(G),Me.delete(G),ce.delete(G),le.delete(G),h.v7_fetcherPersist&&ye.delete(G),K.delete(G),T.fetchers.delete(G)}function Vr(G){let Z=(ve.get(G)||0)-1;Z<=0?(ve.delete(G),ye.add(G),h.v7_fetcherPersist||Kn(G)):ve.set(G,Z),be({fetchers:new Map(T.fetchers)})}function $e(G){let Z=V.get(G);Z&&(Z.abort(),V.delete(G))}function Pt(G){for(let Z of G){let ee=Ln(Z),ae=Ra(ee.data);T.fetchers.set(Z,ae)}}function rn(){let G=[],Z=!1;for(let ee of le){let ae=T.fetchers.get(ee);pt(ae,"Expected fetcher: "+ee),ae.state==="loading"&&(le.delete(ee),G.push(ee),Z=!0)}return Pt(G),Z}function Gr(G){let Z=[];for(let[ee,ae]of ce)if(ae<G){let Se=T.fetchers.get(ee);pt(Se,"Expected fetcher: "+ee),Se.state==="loading"&&($e(ee),ce.delete(ee),Z.push(ee))}return Pt(Z),Z.length>0}function fa(G,Z){let ee=T.blockers.get(G)||Ac;return we.get(G)!==Z&&we.set(G,Z),ee}function yl(G){T.blockers.delete(G),we.delete(G)}function bl(G,Z){let ee=T.blockers.get(G)||Ac;pt(ee.state==="unblocked"&&Z.state==="blocked"||ee.state==="blocked"&&Z.state==="blocked"||ee.state==="blocked"&&Z.state==="proceeding"||ee.state==="blocked"&&Z.state==="unblocked"||ee.state==="proceeding"&&Z.state==="unblocked","Invalid blocker state transition: "+ee.state+" -> "+Z.state);let ae=new Map(T.blockers);ae.set(G,Z),be({blockers:ae})}function Zf(G){let{currentLocation:Z,nextLocation:ee,historyAction:ae}=G;if(we.size===0)return;we.size>1&&Ks(!1,"A router only supports one blocker at a time");let Se=Array.from(we.entries()),[Ke,nt]=Se[Se.length-1],ke=T.blockers.get(Ke);if(!(ke&&ke.state==="proceeding")&&nt({currentLocation:Z,nextLocation:ee,historyAction:ae}))return Ke}function pc(G){let Z=kr(404,{pathname:G}),ee=s||a,{matches:ae,route:Se}=KE(ee);return xl(),{notFoundMatches:ae,route:Se,error:Z}}function xl(G){let Z=[];return Ce.forEach((ee,ae)=>{(!G||G(ae))&&(ee.cancel(),Z.push(ae),Ce.delete(ae))}),Z}function Qf(G,Z,ee){if(m=G,b=Z,y=ee||null,!x&&T.navigation===_b){x=!0;let ae=eh(T.location,T.matches);ae!=null&&be({restoreScrollPosition:ae})}return()=>{m=null,b=null,y=null}}function Jf(G,Z){return y&&y(G,Z.map(ae=>P6(ae,T.loaderData)))||G.key}function sy(G,Z){if(m&&b){let ee=Jf(G,Z);m[ee]=b()}}function eh(G,Z){if(m){let ee=Jf(G,Z),ae=m[ee];if(typeof ae=="number")return ae}return null}function wl(G,Z,ee){if(d)if(G){if(Object.keys(G[0].params).length>0)return{active:!0,matches:Lp(Z,ee,l,!0)}}else return{active:!0,matches:Lp(Z,ee,l,!0)||[]};return{active:!1,matches:null}}async function ts(G,Z,ee,ae){if(!d)return{type:"success",matches:G};let Se=G;for(;;){let Ke=s==null,nt=s||a,ke=o;try{await d({signal:ee,path:Z,matches:Se,fetcherKey:ae,patch:(Ge,at)=>{ee.aborted||WE(Ge,at,nt,ke,i)}})}catch(Ge){return{type:"error",error:Ge,partialMatches:Se}}finally{Ke&&!ee.aborted&&(a=[...a])}if(ee.aborted)return{type:"aborted"};let Fe=Rs(nt,Z,l);if(Fe)return{type:"success",matches:Fe};let De=Lp(nt,Z,l,!0);if(!De||Se.length===De.length&&Se.every((Ge,at)=>Ge.route.id===De[at].route.id))return{type:"success",matches:null};Se=De}}function ly(G){o={},s=fg(G,i,void 0,o)}function uy(G,Z){let ee=s==null;WE(G,Z,s||a,o,i),ee&&(a=[...a],be({}))}return O={get basename(){return l},get future(){return h},get state(){return T},get routes(){return a},get window(){return t},initialize:ue,subscribe:We,enableScrollRestoration:Qf,navigate:He,fetch:mt,revalidate:qe,createHref:G=>e.history.createHref(G),encodeLocation:G=>e.history.encodeLocation(G),getFetcher:Ln,deleteFetcher:Vr,dispose:Ne,getBlocker:fa,deleteBlocker:yl,patchRoutes:uy,_internalFetchControllers:V,_internalActiveDeferreds:Ce,_internalSetRoutes:ly},O}function tV(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function H0(e,t,n,r,i,o,a,s){let l,u;if(a){l=[];for(let h of t)if(l.push(h),h.route.id===a){u=h;break}}else l=t,u=t[t.length-1];let d=_m(i||".",wm(l,o),ea(e.pathname,n)||e.pathname,s==="path");if(i==null&&(d.search=e.search,d.hash=e.hash),(i==null||i===""||i===".")&&u){let h=ww(d.search);if(u.route.index&&!h)d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&h){let p=new URLSearchParams(d.search),g=p.getAll("index");p.delete("index"),g.filter(y=>y).forEach(y=>p.append("index",y));let m=p.toString();d.search=m?"?"+m:""}}return r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:Zo([n,d.pathname])),Ys(d)}function FE(e,t,n,r){if(!r||!tV(r))return{path:n};if(r.formMethod&&!hV(r.formMethod))return{path:n,error:kr(405,{method:r.formMethod})};let i=()=>({path:n,error:kr(400,{type:"invalid-body"})}),o=r.formMethod||"get",a=e?o.toUpperCase():o.toLowerCase(),s=BI(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Hi(a))return i();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,m)=>{let[y,b]=m;return""+g+y+"="+b+`
|
|
19
|
+
`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!Hi(a))return i();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return i()}}}pt(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=V0(r.formData),u=r.formData;else if(r.body instanceof FormData)l=V0(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=zE(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=zE(l)}catch{return i()}let d={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Hi(d.formMethod))return{path:n,submission:d};let h=qa(n);return t&&h.search&&ww(h.search)&&l.append("index",""),h.search="?"+l,{path:Ys(h),submission:d}}function jE(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(i=>i.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function BE(e,t,n,r,i,o,a,s,l,u,d,h,p,g,m,y){let b=y?ti(y[1])?y[1].error:y[1].data:void 0,x=e.createURL(t.location),S=e.createURL(i),w=n;o&&t.errors?w=jE(n,Object.keys(t.errors)[0],!0):y&&ti(y[1])&&(w=jE(n,y[0]));let C=y?y[1].statusCode:void 0,R=a&&C&&C>=400,O=w.filter((A,L)=>{let{route:I}=A;if(I.lazy)return!0;if(I.loader==null)return!1;if(o)return z0(I,t.loaderData,t.errors);if(nV(t.loaderData,t.matches[L],A)||l.some(U=>U===A.route.id))return!0;let N=t.matches[L],B=A;return UE(A,un({currentUrl:x,currentParams:N.params,nextUrl:S,nextParams:B.params},r,{actionResult:b,actionStatus:C,defaultShouldRevalidate:R?!1:s||x.pathname+x.search===S.pathname+S.search||x.search!==S.search||FI(N,B)}))}),T=[];return h.forEach((A,L)=>{if(o||!n.some(z=>z.route.id===A.routeId)||d.has(L))return;let I=Rs(g,A.path,m);if(!I){T.push({key:L,routeId:A.routeId,path:A.path,matches:null,match:null,controller:null});return}let N=t.fetchers.get(L),B=od(I,A.path),U=!1;p.has(L)?U=!1:u.has(L)?(u.delete(L),U=!0):N&&N.state!=="idle"&&N.data===void 0?U=s:U=UE(B,un({currentUrl:x,currentParams:t.matches[t.matches.length-1].params,nextUrl:S,nextParams:n[n.length-1].params},r,{actionResult:b,actionStatus:C,defaultShouldRevalidate:R?!1:s})),U&&T.push({key:L,routeId:A.routeId,path:A.path,matches:I,match:B,controller:new AbortController})}),[O,T]}function z0(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,i=n!=null&&n[e.id]!==void 0;return!r&&i?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!i}function nV(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function FI(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function UE(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function WE(e,t,n,r,i){var o;let a;if(e){let u=r[e];pt(u,"No route found to patch children into: routeId = "+e),u.children||(u.children=[]),a=u.children}else a=n;let s=t.filter(u=>!a.some(d=>jI(u,d))),l=fg(s,i,[e||"_","patch",String(((o=a)==null?void 0:o.length)||"0")],r);a.push(...l)}function jI(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>{var i;return(i=t.children)==null?void 0:i.some(o=>jI(n,o))}):!1}async function rV(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];pt(i,"No route found in manifest");let o={};for(let a in r){let l=i[a]!==void 0&&a!=="hasErrorBoundary";Ks(!l,'Route "'+i.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!E6.has(a)&&(o[a]=r[a])}Object.assign(i,o),Object.assign(i,un({},t(i),{lazy:void 0}))}async function iV(e){let{matches:t}=e,n=t.filter(i=>i.shouldLoad);return(await Promise.all(n.map(i=>i.resolve()))).reduce((i,o,a)=>Object.assign(i,{[n[a].route.id]:o}),{})}async function oV(e,t,n,r,i,o,a,s,l,u){let d=o.map(g=>g.route.lazy?rV(g.route,l,s):void 0),h=o.map((g,m)=>{let y=d[m],b=i.some(S=>S.route.id===g.route.id);return un({},g,{shouldLoad:b,resolve:async S=>(S&&r.method==="GET"&&(g.route.lazy||g.route.loader)&&(b=!0),b?aV(t,r,g,y,S,u):Promise.resolve({type:Ut.data,result:void 0}))})}),p=await e({matches:h,request:r,params:o[0].params,fetcherKey:a,context:u});try{await Promise.all(d)}catch{}return p}async function aV(e,t,n,r,i,o){let a,s,l=u=>{let d,h=new Promise((m,y)=>d=y);s=()=>d(),t.signal.addEventListener("abort",s);let p=m=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):u({request:t,params:n.params,context:o},...m!==void 0?[m]:[]),g=(async()=>{try{return{type:"data",result:await(i?i(y=>p(y)):p())}}catch(m){return{type:"error",result:m}}})();return Promise.race([g,h])};try{let u=n.route[e];if(r)if(u){let d,[h]=await Promise.all([l(u).catch(p=>{d=p}),r]);if(d!==void 0)throw d;a=h}else if(await r,u=n.route[e],u)a=await l(u);else if(e==="action"){let d=new URL(t.url),h=d.pathname+d.search;throw kr(405,{method:t.method,pathname:h,routeId:n.route.id})}else return{type:Ut.data,result:void 0};else if(u)a=await l(u);else{let d=new URL(t.url),h=d.pathname+d.search;throw kr(404,{pathname:h})}pt(a.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:Ut.error,result:u}}finally{s&&t.signal.removeEventListener("abort",s)}return a}async function sV(e){let{result:t,type:n}=e;if(UI(t)){let h;try{let p=t.headers.get("Content-Type");p&&/\bapplication\/json\b/.test(p)?t.body==null?h=null:h=await t.json():h=await t.text()}catch(p){return{type:Ut.error,error:p}}return n===Ut.error?{type:Ut.error,error:new pg(t.status,t.statusText,h),statusCode:t.status,headers:t.headers}:{type:Ut.data,data:h,statusCode:t.status,headers:t.headers}}if(n===Ut.error){if(YE(t)){var r,i;if(t.data instanceof Error){var o,a;return{type:Ut.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status,headers:(a=t.init)!=null&&a.headers?new Headers(t.init.headers):void 0}}return{type:Ut.error,error:new pg(((r=t.init)==null?void 0:r.status)||500,void 0,t.data),statusCode:Bd(t)?t.status:void 0,headers:(i=t.init)!=null&&i.headers?new Headers(t.init.headers):void 0}}return{type:Ut.error,error:t,statusCode:Bd(t)?t.status:void 0}}if(fV(t)){var s,l;return{type:Ut.deferred,deferredData:t,statusCode:(s=t.init)==null?void 0:s.status,headers:((l=t.init)==null?void 0:l.headers)&&new Headers(t.init.headers)}}if(YE(t)){var u,d;return{type:Ut.data,data:t.data,statusCode:(u=t.init)==null?void 0:u.status,headers:(d=t.init)!=null&&d.headers?new Headers(t.init.headers):void 0}}return{type:Ut.data,data:t}}function lV(e,t,n,r,i,o){let a=e.headers.get("Location");if(pt(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!bw.test(a)){let s=r.slice(0,r.findIndex(l=>l.route.id===n)+1);a=H0(new URL(t.url),s,i,!0,a,o),e.headers.set("Location",a)}return e}function HE(e,t,n,r){let i=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(bw.test(e)){let o=e,a=o.startsWith("//")?new URL(t.protocol+o):new URL(o);if(i.includes(a.protocol))throw new Error("Invalid redirect location");let s=ea(a.pathname,n)!=null;if(a.origin===t.origin&&s)return a.pathname+a.search+a.hash}try{let o=r.createURL(e);if(i.includes(o.protocol))throw new Error("Invalid redirect location")}catch{}return e}function Nl(e,t,n,r){let i=e.createURL(BI(t)).toString(),o={signal:n};if(r&&Hi(r.formMethod)){let{formMethod:a,formEncType:s}=r;o.method=a.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(r.json)):s==="text/plain"?o.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?o.body=V0(r.formData):o.body=r.formData}return new Request(i,o)}function V0(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function zE(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function uV(e,t,n,r,i){let o={},a=null,s,l=!1,u={},d=n&&ti(n[1])?n[1].error:void 0;return e.forEach(h=>{if(!(h.route.id in t))return;let p=h.route.id,g=t[p];if(pt(!Ls(g),"Cannot handle redirect results in processLoaderData"),ti(g)){let m=g.error;d!==void 0&&(m=d,d=void 0),a=a||{};{let y=Ms(e,p);a[y.route.id]==null&&(a[y.route.id]=m)}o[p]=void 0,l||(l=!0,s=Bd(g.error)?g.error.status:500),g.headers&&(u[p]=g.headers)}else $a(g)?(r.set(p,g.deferredData),o[p]=g.deferredData.data,g.statusCode!=null&&g.statusCode!==200&&!l&&(s=g.statusCode),g.headers&&(u[p]=g.headers)):(o[p]=g.data,g.statusCode&&g.statusCode!==200&&!l&&(s=g.statusCode),g.headers&&(u[p]=g.headers))}),d!==void 0&&n&&(a={[n[0]]:d},o[n[0]]=void 0),{loaderData:o,errors:a,statusCode:s||200,loaderHeaders:u}}function VE(e,t,n,r,i,o,a){let{loaderData:s,errors:l}=uV(t,n,r,a);return i.forEach(u=>{let{key:d,match:h,controller:p}=u,g=o[d];if(pt(g,"Did not find corresponding fetcher result"),!(p&&p.signal.aborted))if(ti(g)){let m=Ms(e.matches,h==null?void 0:h.route.id);l&&l[m.route.id]||(l=un({},l,{[m.route.id]:g.error})),e.fetchers.delete(d)}else if(Ls(g))pt(!1,"Unhandled fetcher revalidation redirect");else if($a(g))pt(!1,"Unhandled fetcher deferred data");else{let m=Ra(g.data);e.fetchers.set(d,m)}}),{loaderData:s,errors:l}}function GE(e,t,n,r){let i=un({},t);for(let o of n){let a=o.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(i[a]=t[a]):e[a]!==void 0&&o.route.loader&&(i[a]=e[a]),r&&r.hasOwnProperty(a))break}return i}function qE(e){return e?ti(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ms(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function KE(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function kr(e,t){let{pathname:n,routeId:r,method:i,type:o,message:a}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",i&&n&&r?l="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?l="defer() is not supported in actions":o==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",l='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",i&&n&&r?l="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new pg(e||500,s,new Error(l),!0)}function Uh(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,i]=t[n];if(Ls(i))return{key:r,result:i}}}function BI(e){let t=typeof e=="string"?qa(e):e;return Ys(un({},t,{hash:""}))}function cV(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function dV(e){return UI(e.result)&&X6.has(e.result.status)}function $a(e){return e.type===Ut.deferred}function ti(e){return e.type===Ut.error}function Ls(e){return(e&&e.type)===Ut.redirect}function YE(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function fV(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function UI(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function hV(e){return Y6.has(e.toLowerCase())}function Hi(e){return q6.has(e.toLowerCase())}async function pV(e,t,n,r,i){let o=Object.entries(t);for(let a=0;a<o.length;a++){let[s,l]=o[a],u=e.find(p=>(p==null?void 0:p.route.id)===s);if(!u)continue;let d=r.find(p=>p.route.id===u.route.id),h=d!=null&&!FI(d,u)&&(i&&i[u.route.id])!==void 0;$a(l)&&h&&await xw(l,n,!1).then(p=>{p&&(t[s]=p)})}}async function gV(e,t,n){for(let r=0;r<n.length;r++){let{key:i,routeId:o,controller:a}=n[r],s=t[i];e.find(u=>(u==null?void 0:u.route.id)===o)&&$a(s)&&(pt(a,"Expected an AbortController for revalidating fetcher deferred result"),await xw(s,a.signal,!0).then(u=>{u&&(t[i]=u)}))}}async function xw(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Ut.data,data:e.deferredData.unwrappedData}}catch(i){return{type:Ut.error,error:i}}return{type:Ut.data,data:e.deferredData.data}}}function ww(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function od(e,t){let n=typeof t=="string"?qa(t).search:t.search;if(e[e.length-1].route.index&&ww(n||""))return e[e.length-1];let r=LI(e);return r[r.length-1]}function XE(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:a}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function Cb(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function mV(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Dc(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function vV(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Ra(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function yV(e,t){try{let n=e.sessionStorage.getItem(NI);if(n){let r=JSON.parse(n);for(let[i,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(i,new Set(o||[]))}}catch{}}function bV(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(NI,JSON.stringify(n))}catch(r){Ks(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/**
|
|
20
|
+
* React Router v6.30.3
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Remix Software Inc.
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
26
|
+
*
|
|
27
|
+
* @license MIT
|
|
28
|
+
*/function gg(){return gg=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},gg.apply(this,arguments)}const ff=P.createContext(null),_w=P.createContext(null),sa=P.createContext(null),Cw=P.createContext(null),Ka=P.createContext({outlet:null,matches:[],isDataRoute:!1}),WI=P.createContext(null);function xV(e,t){let{relative:n}=t===void 0?{}:t;Wu()||pt(!1);let{basename:r,navigator:i}=P.useContext(sa),{hash:o,pathname:a,search:s}=Sm(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:Zo([r,a])),i.createHref({pathname:l,search:s,hash:o})}function Wu(){return P.useContext(Cw)!=null}function sl(){return Wu()||pt(!1),P.useContext(Cw).location}function HI(e){P.useContext(sa).static||P.useLayoutEffect(e)}function Cm(){let{isDataRoute:e}=P.useContext(Ka);return e?DV():wV()}function wV(){Wu()||pt(!1);let e=P.useContext(ff),{basename:t,future:n,navigator:r}=P.useContext(sa),{matches:i}=P.useContext(Ka),{pathname:o}=sl(),a=JSON.stringify(wm(i,n.v7_relativeSplatPath)),s=P.useRef(!1);return HI(()=>{s.current=!0}),P.useCallback(function(u,d){if(d===void 0&&(d={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let h=_m(u,JSON.parse(a),o,d.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Zo([t,h.pathname])),(d.replace?r.replace:r.push)(h,d.state,d)},[t,r,a,o,e])}function Sm(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=P.useContext(sa),{matches:i}=P.useContext(Ka),{pathname:o}=sl(),a=JSON.stringify(wm(i,r.v7_relativeSplatPath));return P.useMemo(()=>_m(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function _V(e,t,n,r){Wu()||pt(!1);let{navigator:i}=P.useContext(sa),{matches:o}=P.useContext(Ka),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let u=sl(),d;d=u;let h=d.pathname||"/",p=h;if(l!=="/"){let y=l.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(y.length).join("/")}let g=Rs(e,{pathname:p});return OV(g&&g.map(y=>Object.assign({},y,{params:Object.assign({},s,y.params),pathname:Zo([l,i.encodeLocation?i.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?l:Zo([l,i.encodeLocation?i.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),o,n,r)}function CV(){let e=AV(),t=Bd(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),n?P.createElement("pre",{style:i},n):null,null)}const SV=P.createElement(CV,null);class TV extends P.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?P.createElement(Ka.Provider,{value:this.props.routeContext},P.createElement(WI.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function EV(e){let{routeContext:t,match:n,children:r}=e,i=P.useContext(ff);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),P.createElement(Ka.Provider,{value:t},r)}function OV(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let d=a.findIndex(h=>h.route.id&&(s==null?void 0:s[h.route.id])!==void 0);d>=0||pt(!1),a=a.slice(0,Math.min(a.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<a.length;d++){let h=a[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(u=d),h.route.id){let{loaderData:p,errors:g}=n,m=h.route.loader&&p[h.route.id]===void 0&&(!g||g[h.route.id]===void 0);if(h.route.lazy||m){l=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((d,h,p)=>{let g,m=!1,y=null,b=null;n&&(g=s&&h.route.id?s[h.route.id]:void 0,y=h.route.errorElement||SV,l&&(u<0&&p===0?(IV("route-fallback"),m=!0,b=null):u===p&&(m=!0,b=h.route.hydrateFallbackElement||null)));let x=t.concat(a.slice(0,p+1)),S=()=>{let w;return g?w=y:m?w=b:h.route.Component?w=P.createElement(h.route.Component,null):h.route.element?w=h.route.element:w=d,P.createElement(EV,{match:h,routeContext:{outlet:d,matches:x,isDataRoute:n!=null},children:w})};return n&&(h.route.ErrorBoundary||h.route.errorElement||p===0)?P.createElement(TV,{location:n.location,revalidation:n.revalidation,component:y,error:g,children:S(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):S()},null)}var zI=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(zI||{}),VI=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}(VI||{});function PV(e){let t=P.useContext(ff);return t||pt(!1),t}function RV(e){let t=P.useContext(_w);return t||pt(!1),t}function MV(e){let t=P.useContext(Ka);return t||pt(!1),t}function GI(e){let t=MV(),n=t.matches[t.matches.length-1];return n.route.id||pt(!1),n.route.id}function AV(){var e;let t=P.useContext(WI),n=RV(VI.UseRouteError),r=GI();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function DV(){let{router:e}=PV(zI.UseNavigateStable),t=GI(),n=P.useRef(!1);return HI(()=>{n.current=!0}),P.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,gg({fromRouteId:t},o)))},[e,t])}const ZE={};function IV(e,t,n){ZE[e]||(ZE[e]=!0)}function $V(e,t){e==null||e.v7_startTransition,(e==null?void 0:e.v7_relativeSplatPath)===void 0&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}function LV(e){let{to:t,replace:n,state:r,relative:i}=e;Wu()||pt(!1);let{future:o,static:a}=P.useContext(sa),{matches:s}=P.useContext(Ka),{pathname:l}=sl(),u=Cm(),d=_m(t,wm(s,o.v7_relativeSplatPath),l,i==="path"),h=JSON.stringify(d);return P.useEffect(()=>u(JSON.parse(h),{replace:n,state:r,relative:i}),[u,h,i,n,r]),null}function kV(e){let{basename:t="/",children:n=null,location:r,navigationType:i=kn.Pop,navigator:o,static:a=!1,future:s}=e;Wu()&&pt(!1);let l=t.replace(/^\/*/,"/"),u=P.useMemo(()=>({basename:l,navigator:o,static:a,future:gg({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof r=="string"&&(r=qa(r));let{pathname:d="/",search:h="",hash:p="",state:g=null,key:m="default"}=r,y=P.useMemo(()=>{let b=ea(d,l);return b==null?null:{location:{pathname:b,search:h,hash:p,state:g,key:m},navigationType:i}},[l,d,h,p,g,m,i]);return y==null?null:P.createElement(sa.Provider,{value:u},P.createElement(Cw.Provider,{children:n,value:y}))}new Promise(()=>{});function NV(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:P.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:P.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:P.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/**
|
|
29
|
+
* React Router DOM v6.30.3
|
|
30
|
+
*
|
|
31
|
+
* Copyright (c) Remix Software Inc.
|
|
32
|
+
*
|
|
33
|
+
* This source code is licensed under the MIT license found in the
|
|
34
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
35
|
+
*
|
|
36
|
+
* @license MIT
|
|
37
|
+
*/function vu(){return vu=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},vu.apply(this,arguments)}function qI(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function FV(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function jV(e,t){return e.button===0&&(!t||t==="_self")&&!FV(e)}const BV=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],UV=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],WV="6";try{window.__reactRouterVersion=WV}catch{}function ENe(e,t){return eV({basename:t==null?void 0:t.basename,future:vu({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:C6({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||HV(),routes:e,mapRouteProperties:NV,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function HV(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=vu({},t,{errors:zV(t.errors)})),t}function zV(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new pg(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let a=new o(i.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let o=new Error(i.message);o.stack="",n[r]=o}}else n[r]=i;return n}const KI=P.createContext({isTransitioning:!1}),VV=P.createContext(new Map),GV="startTransition",QE=P[GV],qV="flushSync",JE=bI[qV];function KV(e){QE?QE(e):e()}function Ic(e){JE?JE(e):e()}class YV{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function ONe(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=P.useState(n.state),[a,s]=P.useState(),[l,u]=P.useState({isTransitioning:!1}),[d,h]=P.useState(),[p,g]=P.useState(),[m,y]=P.useState(),b=P.useRef(new Map),{v7_startTransition:x}=r||{},S=P.useCallback(A=>{x?KV(A):A()},[x]),w=P.useCallback((A,L)=>{let{deletedFetchers:I,flushSync:N,viewTransitionOpts:B}=L;A.fetchers.forEach((z,F)=>{z.data!==void 0&&b.current.set(F,z.data)}),I.forEach(z=>b.current.delete(z));let U=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!B||U){N?Ic(()=>o(A)):S(()=>o(A));return}if(N){Ic(()=>{p&&(d&&d.resolve(),p.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:B.currentLocation,nextLocation:B.nextLocation})});let z=n.window.document.startViewTransition(()=>{Ic(()=>o(A))});z.finished.finally(()=>{Ic(()=>{h(void 0),g(void 0),s(void 0),u({isTransitioning:!1})})}),Ic(()=>g(z));return}p?(d&&d.resolve(),p.skipTransition(),y({state:A,currentLocation:B.currentLocation,nextLocation:B.nextLocation})):(s(A),u({isTransitioning:!0,flushSync:!1,currentLocation:B.currentLocation,nextLocation:B.nextLocation}))},[n.window,p,d,b,S]);P.useLayoutEffect(()=>n.subscribe(w),[n,w]),P.useEffect(()=>{l.isTransitioning&&!l.flushSync&&h(new YV)},[l]),P.useEffect(()=>{if(d&&a&&n.window){let A=a,L=d.promise,I=n.window.document.startViewTransition(async()=>{S(()=>o(A)),await L});I.finished.finally(()=>{h(void 0),g(void 0),s(void 0),u({isTransitioning:!1})}),g(I)}},[S,a,d,n.window]),P.useEffect(()=>{d&&a&&i.location.key===a.location.key&&d.resolve()},[d,p,i.location,a]),P.useEffect(()=>{!l.isTransitioning&&m&&(s(m.state),u({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),y(void 0))},[l.isTransitioning,m]),P.useEffect(()=>{},[]);let C=P.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:A=>n.navigate(A),push:(A,L,I)=>n.navigate(A,{state:L,preventScrollReset:I==null?void 0:I.preventScrollReset}),replace:(A,L,I)=>n.navigate(A,{replace:!0,state:L,preventScrollReset:I==null?void 0:I.preventScrollReset})}),[n]),R=n.basename||"/",O=P.useMemo(()=>({router:n,navigator:C,static:!1,basename:R}),[n,C,R]),T=P.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return P.useEffect(()=>$V(r,n.future),[r,n.future]),P.createElement(P.Fragment,null,P.createElement(ff.Provider,{value:O},P.createElement(_w.Provider,{value:i},P.createElement(VV.Provider,{value:b.current},P.createElement(KI.Provider,{value:l},P.createElement(kV,{basename:R,location:i.location,navigationType:i.historyAction,navigator:C,future:T},i.initialized||n.future.v7_partialHydration?P.createElement(XV,{routes:n.routes,future:n.future,state:i}):t))))),null)}const XV=P.memo(ZV);function ZV(e){let{routes:t,future:n,state:r}=e;return _V(t,void 0,r,n)}const QV=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",JV=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,e8=P.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:d,viewTransition:h}=t,p=qI(t,BV),{basename:g}=P.useContext(sa),m,y=!1;if(typeof u=="string"&&JV.test(u)&&(m=u,QV))try{let w=new URL(window.location.href),C=u.startsWith("//")?new URL(w.protocol+u):new URL(u),R=ea(C.pathname,g);C.origin===w.origin&&R!=null?u=R+C.search+C.hash:y=!0}catch{}let b=xV(u,{relative:i}),x=r8(u,{replace:a,state:s,target:l,preventScrollReset:d,relative:i,viewTransition:h});function S(w){r&&r(w),w.defaultPrevented||x(w)}return P.createElement("a",vu({},p,{href:m||b,onClick:y||o?r:S,ref:n,target:l}))}),t8=P.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:a=!1,style:s,to:l,viewTransition:u,children:d}=t,h=qI(t,UV),p=Sm(l,{relative:h.relative}),g=sl(),m=P.useContext(_w),{navigator:y,basename:b}=P.useContext(sa),x=m!=null&&i8(p)&&u===!0,S=y.encodeLocation?y.encodeLocation(p).pathname:p.pathname,w=g.pathname,C=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;i||(w=w.toLowerCase(),C=C?C.toLowerCase():null,S=S.toLowerCase()),C&&b&&(C=ea(C,b)||C);const R=S!=="/"&&S.endsWith("/")?S.length-1:S.length;let O=w===S||!a&&w.startsWith(S)&&w.charAt(R)==="/",T=C!=null&&(C===S||!a&&C.startsWith(S)&&C.charAt(S.length)==="/"),A={isActive:O,isPending:T,isTransitioning:x},L=O?r:void 0,I;typeof o=="function"?I=o(A):I=[o,O?"active":null,T?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let N=typeof s=="function"?s(A):s;return P.createElement(e8,vu({},h,{"aria-current":L,className:I,ref:n,style:N,to:l,viewTransition:u}),typeof d=="function"?d(A):d)});var G0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(G0||(G0={}));var eO;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(eO||(eO={}));function n8(e){let t=P.useContext(ff);return t||pt(!1),t}function r8(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,viewTransition:s}=t===void 0?{}:t,l=Cm(),u=sl(),d=Sm(e,{relative:a});return P.useCallback(h=>{if(jV(h,n)){h.preventDefault();let p=r!==void 0?r:Ys(u)===Ys(d);l(e,{replace:p,state:i,preventScrollReset:o,relative:a,viewTransition:s})}},[u,l,d,r,i,n,e,o,a,s])}function i8(e,t){t===void 0&&(t={});let n=P.useContext(KI);n==null&&pt(!1);let{basename:r}=n8(G0.useViewTransitionState),i=Sm(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=ea(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=ea(n.nextLocation.pathname,r)||n.nextLocation.pathname;return hg(i.pathname,a)!=null||hg(i.pathname,o)!=null}const gs=new Map;function PNe(e,t){if(yI===void 0)throw new TypeError('You are using React 17 or below. Install with "npm install use-local-storage-state@17".');const[n]=Nn(t==null?void 0:t.defaultValue);if(typeof window>"u")return[n,()=>{},{isPersistent:!0,removeItem:()=>{}}];const r=t==null?void 0:t.serializer;return o8(e,n,t==null?void 0:t.storageSync,r==null?void 0:r.parse,r==null?void 0:r.stringify)}function o8(e,t,n=!0,r=a8,i=JSON.stringify){!gs.has(e)&&t!==void 0&&$c(()=>localStorage.getItem(e))===null&&$c(()=>localStorage.setItem(e,i(t)));const o=Rn({item:null,parsed:t}),a=yI(Mt(l=>{const u=d=>{e===d&&l()};return q0.add(u),()=>{q0.delete(u)}},[e]),()=>{var l;const u=(l=$c(()=>localStorage.getItem(e)))!==null&&l!==void 0?l:null;if(gs.has(e))o.current={item:u,parsed:gs.get(e)};else if(u!==o.current.item){let d;try{d=u===null?t:r(u)}catch{d=t}o.current={item:u,parsed:d}}return o.current.parsed},()=>t),s=Mt(l=>{const u=l instanceof Function?l(o.current.parsed):l;try{localStorage.setItem(e,i(u)),gs.delete(e)}catch{gs.set(e,u)}Sb(e)},[e,i]);return At(()=>{if(!n)return;const l=u=>{u.storageArea===$c(()=>localStorage)&&u.key===e&&Sb(e)};return window.addEventListener("storage",l),()=>window.removeEventListener("storage",l)},[e,n]),Gn(()=>[a,s,{isPersistent:a===t||!gs.has(e),removeItem(){$c(()=>localStorage.removeItem(e)),gs.delete(e),Sb(e)}}],[e,s,a,t])}const q0=new Set;function Sb(e){for(const t of[...q0])t(e)}function a8(e){return e==="undefined"?void 0:JSON.parse(e)}function $c(e){try{return e()}catch{return}}function s8(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function l8(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var u8=function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(l8(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=s8(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e}(),hr="-ms-",mg="-moz-",Lt="-webkit-",YI="comm",Sw="rule",Tw="decl",c8="@import",XI="@keyframes",d8="@layer",f8=Math.abs,Tm=String.fromCharCode,h8=Object.assign;function p8(e,t){return cr(e,0)^45?(((t<<2^cr(e,0))<<2^cr(e,1))<<2^cr(e,2))<<2^cr(e,3):0}function ZI(e){return e.trim()}function g8(e,t){return(e=t.exec(e))?e[0]:e}function kt(e,t,n){return e.replace(t,n)}function K0(e,t){return e.indexOf(t)}function cr(e,t){return e.charCodeAt(t)|0}function Ud(e,t,n){return e.slice(t,n)}function co(e){return e.length}function Ew(e){return e.length}function Wh(e,t){return t.push(e),e}function m8(e,t){return e.map(t).join("")}var Em=1,yu=1,QI=0,Wr=0,jn=0,Hu="";function Om(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Em,column:yu,length:a,return:""}}function Lc(e,t){return h8(Om("",null,null,"",null,null,0),e,{length:-e.length},t)}function v8(){return jn}function y8(){return jn=Wr>0?cr(Hu,--Wr):0,yu--,jn===10&&(yu=1,Em--),jn}function ri(){return jn=Wr<QI?cr(Hu,Wr++):0,yu++,jn===10&&(yu=1,Em++),jn}function vo(){return cr(Hu,Wr)}function kp(){return Wr}function hf(e,t){return Ud(Hu,e,t)}function Wd(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function JI(e){return Em=yu=1,QI=co(Hu=e),Wr=0,[]}function e$(e){return Hu="",e}function Np(e){return ZI(hf(Wr-1,Y0(e===91?e+2:e===40?e+1:e)))}function b8(e){for(;(jn=vo())&&jn<33;)ri();return Wd(e)>2||Wd(jn)>3?"":" "}function x8(e,t){for(;--t&&ri()&&!(jn<48||jn>102||jn>57&&jn<65||jn>70&&jn<97););return hf(e,kp()+(t<6&&vo()==32&&ri()==32))}function Y0(e){for(;ri();)switch(jn){case e:return Wr;case 34:case 39:e!==34&&e!==39&&Y0(jn);break;case 40:e===41&&Y0(e);break;case 92:ri();break}return Wr}function w8(e,t){for(;ri()&&e+jn!==57;)if(e+jn===84&&vo()===47)break;return"/*"+hf(t,Wr-1)+"*"+Tm(e===47?e:ri())}function _8(e){for(;!Wd(vo());)ri();return hf(e,Wr)}function C8(e){return e$(Fp("",null,null,null,[""],e=JI(e),0,[0],e))}function Fp(e,t,n,r,i,o,a,s,l){for(var u=0,d=0,h=a,p=0,g=0,m=0,y=1,b=1,x=1,S=0,w="",C=i,R=o,O=r,T=w;b;)switch(m=S,S=ri()){case 40:if(m!=108&&cr(T,h-1)==58){K0(T+=kt(Np(S),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:T+=Np(S);break;case 9:case 10:case 13:case 32:T+=b8(m);break;case 92:T+=x8(kp()-1,7);continue;case 47:switch(vo()){case 42:case 47:Wh(S8(w8(ri(),kp()),t,n),l);break;default:T+="/"}break;case 123*y:s[u++]=co(T)*x;case 125*y:case 59:case 0:switch(S){case 0:case 125:b=0;case 59+d:x==-1&&(T=kt(T,/\f/g,"")),g>0&&co(T)-h&&Wh(g>32?nO(T+";",r,n,h-1):nO(kt(T," ","")+";",r,n,h-2),l);break;case 59:T+=";";default:if(Wh(O=tO(T,t,n,u,d,i,s,w,C=[],R=[],h),o),S===123)if(d===0)Fp(T,t,O,O,C,o,h,s,R);else switch(p===99&&cr(T,3)===110?100:p){case 100:case 108:case 109:case 115:Fp(e,O,O,r&&Wh(tO(e,O,O,0,0,i,s,w,i,C=[],h),R),i,R,h,s,r?C:R);break;default:Fp(T,O,O,O,[""],R,0,s,R)}}u=d=g=0,y=x=1,w=T="",h=a;break;case 58:h=1+co(T),g=m;default:if(y<1){if(S==123)--y;else if(S==125&&y++==0&&y8()==125)continue}switch(T+=Tm(S),S*y){case 38:x=d>0?1:(T+="\f",-1);break;case 44:s[u++]=(co(T)-1)*x,x=1;break;case 64:vo()===45&&(T+=Np(ri())),p=vo(),d=h=co(w=T+=_8(kp())),S++;break;case 45:m===45&&co(T)==2&&(y=0)}}return o}function tO(e,t,n,r,i,o,a,s,l,u,d){for(var h=i-1,p=i===0?o:[""],g=Ew(p),m=0,y=0,b=0;m<r;++m)for(var x=0,S=Ud(e,h+1,h=f8(y=a[m])),w=e;x<g;++x)(w=ZI(y>0?p[x]+" "+S:kt(S,/&\f/g,p[x])))&&(l[b++]=w);return Om(e,t,n,i===0?Sw:s,l,u,d)}function S8(e,t,n){return Om(e,t,n,YI,Tm(v8()),Ud(e,2,-2),0)}function nO(e,t,n,r){return Om(e,t,n,Tw,Ud(e,0,r),Ud(e,r+1,-1),r)}function lu(e,t){for(var n="",r=Ew(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function T8(e,t,n,r){switch(e.type){case d8:if(e.children.length)break;case c8:case Tw:return e.return=e.return||e.value;case YI:return"";case XI:return e.return=e.value+"{"+lu(e.children,r)+"}";case Sw:e.value=e.props.join(",")}return co(n=lu(e.children,r))?e.return=e.value+"{"+n+"}":""}function E8(e){var t=Ew(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}function O8(e){return function(t){t.root||(t=t.return)&&e(t)}}function t$(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var P8=function(t,n,r){for(var i=0,o=0;i=o,o=vo(),i===38&&o===12&&(n[r]=1),!Wd(o);)ri();return hf(t,Wr)},R8=function(t,n){var r=-1,i=44;do switch(Wd(i)){case 0:i===38&&vo()===12&&(n[r]=1),t[r]+=P8(Wr-1,n,r);break;case 2:t[r]+=Np(i);break;case 4:if(i===44){t[++r]=vo()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Tm(i)}while(i=ri());return t},M8=function(t,n){return e$(R8(JI(t),n))},rO=new WeakMap,A8=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!rO.get(r))&&!i){rO.set(t,!0);for(var o=[],a=M8(n,o),s=r.props,l=0,u=0;l<a.length;l++)for(var d=0;d<s.length;d++,u++)t.props[u]=o[l]?a[l].replace(/&\f/g,s[d]):s[d]+" "+a[l]}}},D8=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function n$(e,t){switch(p8(e,t)){case 5103:return Lt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Lt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Lt+e+mg+e+hr+e+e;case 6828:case 4268:return Lt+e+hr+e+e;case 6165:return Lt+e+hr+"flex-"+e+e;case 5187:return Lt+e+kt(e,/(\w+).+(:[^]+)/,Lt+"box-$1$2"+hr+"flex-$1$2")+e;case 5443:return Lt+e+hr+"flex-item-"+kt(e,/flex-|-self/,"")+e;case 4675:return Lt+e+hr+"flex-line-pack"+kt(e,/align-content|flex-|-self/,"")+e;case 5548:return Lt+e+hr+kt(e,"shrink","negative")+e;case 5292:return Lt+e+hr+kt(e,"basis","preferred-size")+e;case 6060:return Lt+"box-"+kt(e,"-grow","")+Lt+e+hr+kt(e,"grow","positive")+e;case 4554:return Lt+kt(e,/([^-])(transform)/g,"$1"+Lt+"$2")+e;case 6187:return kt(kt(kt(e,/(zoom-|grab)/,Lt+"$1"),/(image-set)/,Lt+"$1"),e,"")+e;case 5495:case 3959:return kt(e,/(image-set\([^]*)/,Lt+"$1$`$1");case 4968:return kt(kt(e,/(.+:)(flex-)?(.*)/,Lt+"box-pack:$3"+hr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Lt+e+e;case 4095:case 3583:case 4068:case 2532:return kt(e,/(.+)-inline(.+)/,Lt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(co(e)-1-t>6)switch(cr(e,t+1)){case 109:if(cr(e,t+4)!==45)break;case 102:return kt(e,/(.+:)(.+)-([^]+)/,"$1"+Lt+"$2-$3$1"+mg+(cr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~K0(e,"stretch")?n$(kt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(cr(e,t+1)!==115)break;case 6444:switch(cr(e,co(e)-3-(~K0(e,"!important")&&10))){case 107:return kt(e,":",":"+Lt)+e;case 101:return kt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Lt+(cr(e,14)===45?"inline-":"")+"box$3$1"+Lt+"$2$3$1"+hr+"$2box$3")+e}break;case 5936:switch(cr(e,t+11)){case 114:return Lt+e+hr+kt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Lt+e+hr+kt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Lt+e+hr+kt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Lt+e+hr+e+e}return e}var I8=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Tw:t.return=n$(t.value,t.length);break;case XI:return lu([Lc(t,{value:kt(t.value,"@","@"+Lt)})],i);case Sw:if(t.length)return m8(t.props,function(o){switch(g8(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return lu([Lc(t,{props:[kt(o,/:(read-\w+)/,":"+mg+"$1")]})],i);case"::placeholder":return lu([Lc(t,{props:[kt(o,/:(plac\w+)/,":"+Lt+"input-$1")]}),Lc(t,{props:[kt(o,/:(plac\w+)/,":"+mg+"$1")]}),Lc(t,{props:[kt(o,/:(plac\w+)/,hr+"input-$1")]})],i)}return""})}},$8=[I8],r$=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var b=y.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=t.stylisPlugins||$8,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var b=y.getAttribute("data-emotion").split(" "),x=1;x<b.length;x++)o[b[x]]=!0;s.push(y)});var l,u=[A8,D8];{var d,h=[T8,O8(function(y){d.insert(y)})],p=E8(u.concat(i,h)),g=function(b){return lu(C8(b),p)};l=function(b,x,S,w){d=S,g(b?b+"{"+x.styles+"}":x.styles),w&&(m.inserted[x.name]=!0)}}var m={key:n,sheet:new u8({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return m.sheet.hydrate(s),m},i$={exports:{}},Ht={};/** @license React v16.13.1
|
|
38
|
+
* react-is.production.min.js
|
|
39
|
+
*
|
|
40
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
41
|
+
*
|
|
42
|
+
* This source code is licensed under the MIT license found in the
|
|
43
|
+
* LICENSE file in the root directory of this source tree.
|
|
44
|
+
*/var ir=typeof Symbol=="function"&&Symbol.for,Ow=ir?Symbol.for("react.element"):60103,Pw=ir?Symbol.for("react.portal"):60106,Pm=ir?Symbol.for("react.fragment"):60107,Rm=ir?Symbol.for("react.strict_mode"):60108,Mm=ir?Symbol.for("react.profiler"):60114,Am=ir?Symbol.for("react.provider"):60109,Dm=ir?Symbol.for("react.context"):60110,Rw=ir?Symbol.for("react.async_mode"):60111,Im=ir?Symbol.for("react.concurrent_mode"):60111,$m=ir?Symbol.for("react.forward_ref"):60112,Lm=ir?Symbol.for("react.suspense"):60113,L8=ir?Symbol.for("react.suspense_list"):60120,km=ir?Symbol.for("react.memo"):60115,Nm=ir?Symbol.for("react.lazy"):60116,k8=ir?Symbol.for("react.block"):60121,N8=ir?Symbol.for("react.fundamental"):60117,F8=ir?Symbol.for("react.responder"):60118,j8=ir?Symbol.for("react.scope"):60119;function ai(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ow:switch(e=e.type,e){case Rw:case Im:case Pm:case Mm:case Rm:case Lm:return e;default:switch(e=e&&e.$$typeof,e){case Dm:case $m:case Nm:case km:case Am:return e;default:return t}}case Pw:return t}}}function o$(e){return ai(e)===Im}Ht.AsyncMode=Rw;Ht.ConcurrentMode=Im;Ht.ContextConsumer=Dm;Ht.ContextProvider=Am;Ht.Element=Ow;Ht.ForwardRef=$m;Ht.Fragment=Pm;Ht.Lazy=Nm;Ht.Memo=km;Ht.Portal=Pw;Ht.Profiler=Mm;Ht.StrictMode=Rm;Ht.Suspense=Lm;Ht.isAsyncMode=function(e){return o$(e)||ai(e)===Rw};Ht.isConcurrentMode=o$;Ht.isContextConsumer=function(e){return ai(e)===Dm};Ht.isContextProvider=function(e){return ai(e)===Am};Ht.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ow};Ht.isForwardRef=function(e){return ai(e)===$m};Ht.isFragment=function(e){return ai(e)===Pm};Ht.isLazy=function(e){return ai(e)===Nm};Ht.isMemo=function(e){return ai(e)===km};Ht.isPortal=function(e){return ai(e)===Pw};Ht.isProfiler=function(e){return ai(e)===Mm};Ht.isStrictMode=function(e){return ai(e)===Rm};Ht.isSuspense=function(e){return ai(e)===Lm};Ht.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Pm||e===Im||e===Mm||e===Rm||e===Lm||e===L8||typeof e=="object"&&e!==null&&(e.$$typeof===Nm||e.$$typeof===km||e.$$typeof===Am||e.$$typeof===Dm||e.$$typeof===$m||e.$$typeof===N8||e.$$typeof===F8||e.$$typeof===j8||e.$$typeof===k8)};Ht.typeOf=ai;i$.exports=Ht;var B8=i$.exports,a$=B8,U8={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},W8={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s$={};s$[a$.ForwardRef]=U8;s$[a$.Memo]=W8;var H8=!0;function l$(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var Mw=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||H8===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},Aw=function(t,n,r){Mw(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function z8(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var V8={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},G8=/[A-Z]|^ms/g,q8=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u$=function(t){return t.charCodeAt(1)===45},iO=function(t){return t!=null&&typeof t!="boolean"},Tb=t$(function(e){return u$(e)?e:e.replace(G8,"-$&").toLowerCase()}),oO=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(q8,function(r,i,o){return fo={name:i,styles:o,next:fo},i})}return V8[t]!==1&&!u$(t)&&typeof n=="number"&&n!==0?n+"px":n};function Hd(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return fo={name:i.name,styles:i.styles,next:fo},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)fo={name:a.name,styles:a.styles,next:fo},a=a.next;var s=o.styles+";";return s}return K8(e,t,n)}case"function":{if(e!==void 0){var l=fo,u=n(e);return fo=l,Hd(e,t,u)}break}}var d=n;if(t==null)return d;var h=t[d];return h!==void 0?h:d}function K8(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Hd(e,t,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?r+=o+"{"+t[s]+"}":iO(s)&&(r+=Tb(o)+":"+oO(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)iO(a[l])&&(r+=Tb(o)+":"+oO(o,a[l])+";");else{var u=Hd(e,t,a);switch(o){case"animation":case"animationName":{r+=Tb(o)+":"+u+";";break}default:r+=o+"{"+u+"}"}}}return r}var aO=/label:\s*([^\s;{]+)\s*(;|$)/g,fo;function pf(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";fo=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,i+=Hd(n,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Hd(n,t,e[s]),r){var l=o;i+=l[s]}aO.lastIndex=0;for(var u="",d;(d=aO.exec(i))!==null;)u+="-"+d[1];var h=z8(i)+u;return{name:h,styles:i,next:fo}}var Y8=function(t){return t()},c$=P.useInsertionEffect?P.useInsertionEffect:!1,d$=c$||Y8,sO=c$||P.useLayoutEffect,f$=P.createContext(typeof HTMLElement<"u"?r$({key:"css"}):null),X8=f$.Provider,Dw=function(t){return ra(function(n,r){var i=ia(f$);return t(n,i,r)})},zu=P.createContext({}),Iw={}.hasOwnProperty,X0="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Z8=function(t,n){var r={};for(var i in n)Iw.call(n,i)&&(r[i]=n[i]);return r[X0]=t,r},Q8=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Mw(n,r,i),d$(function(){return Aw(n,r,i)}),null},J8=Dw(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[X0],o=[r],a="";typeof e.className=="string"?a=l$(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var s=pf(o,void 0,P.useContext(zu));a+=t.key+"-"+s.name;var l={};for(var u in e)Iw.call(e,u)&&u!=="css"&&u!==X0&&(l[u]=e[u]);return l.className=a,n&&(l.ref=n),P.createElement(P.Fragment,null,P.createElement(Q8,{cache:t,serialized:s,isStringTag:typeof i=="string"}),P.createElement(i,l))}),e9=J8,lO=function(t,n){var r=arguments;if(n==null||!Iw.call(n,"css"))return P.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=e9,o[1]=Z8(t,n);for(var a=2;a<i;a++)o[a]=r[a];return P.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(lO||(lO={}));var t9=Dw(function(e,t){var n=e.styles,r=pf([n],void 0,P.useContext(zu)),i=P.useRef();return sO(function(){var o=t.key+"-global",a=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+o+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",o),a.hydrate([l])),i.current=[a,s],function(){a.flush()}},[t]),sO(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(r.next!==void 0&&Aw(t,r.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});function Oi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return pf(t)}function Xi(){var e=Oi.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function bu(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const Xs="$$material";function de(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function vg(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const n9=Object.freeze(Object.defineProperty({__proto__:null,default:vg},Symbol.toStringTag,{value:"Module"}));var r9=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i9=t$(function(e){return r9.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),o9=i9,a9=function(t){return t!=="theme"},uO=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?o9:a9},cO=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},s9=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Mw(n,r,i),d$(function(){return Aw(n,r,i)}),null},l9=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,a;n!==void 0&&(o=n.label,a=n.target);var s=cO(t,n,r),l=s||uO(i),u=!l("as");return function(){var d=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&h.push("label:"+o+";"),d[0]==null||d[0].raw===void 0)h.push.apply(h,d);else{var p=d[0];h.push(p[0]);for(var g=d.length,m=1;m<g;m++)h.push(d[m],p[m])}var y=Dw(function(b,x,S){var w=u&&b.as||i,C="",R=[],O=b;if(b.theme==null){O={};for(var T in b)O[T]=b[T];O.theme=P.useContext(zu)}typeof b.className=="string"?C=l$(x.registered,R,b.className):b.className!=null&&(C=b.className+" ");var A=pf(h.concat(R),x.registered,O);C+=x.key+"-"+A.name,a!==void 0&&(C+=" "+a);var L=u&&s===void 0?uO(w):l,I={};for(var N in b)u&&N==="as"||L(N)&&(I[N]=b[N]);return I.className=C,S&&(I.ref=S),P.createElement(P.Fragment,null,P.createElement(s9,{cache:x,serialized:A,isStringTag:typeof w=="string"}),P.createElement(w,I))});return y.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=i,y.__emotion_styles=h,y.__emotion_forwardProp=s,Object.defineProperty(y,"toString",{value:function(){return"."+a}}),y.withComponent=function(b,x){var S=e(b,M({},n,x,{shouldForwardProp:cO(y,x,!0)}));return S.apply(void 0,h)},y}},u9=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Z0=l9.bind(null);u9.forEach(function(e){Z0[e]=Z0(e)});var h$={exports:{}},c9="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",d9=c9,f9=d9;function p$(){}function g$(){}g$.resetWarningCache=p$;var h9=function(){function e(r,i,o,a,s,l){if(l!==f9){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:g$,resetWarningCache:p$};return n.PropTypes=n,n};h$.exports=h9();var p9=h$.exports;const m$=Di(p9);function g9(e,t){const n=r$({key:"css",prepend:e});if(t){const r=n.insert;n.insert=(...i)=>(i[1].styles.match(/^@layer\s+[^{]*$/)||(i[1].styles=`@layer mui {${i[1].styles}}`),r(...i))}return n}const Eb=new Map;function v$(e){const{injectFirst:t,enableCssLayer:n,children:r}=e,i=P.useMemo(()=>{const o=`${t}-${n}`;if(typeof document=="object"&&Eb.has(o))return Eb.get(o);const a=g9(t,n);return Eb.set(o,a),a},[t,n]);return t||n?_.jsx(X8,{value:i,children:r}):r}function m9(e){return e==null||Object.keys(e).length===0}function y$(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?i=>t(m9(i)?n:i):t;return _.jsx(t9,{styles:r})}function $w(e,t){return Z0(e,t)}const b$=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},dO=[];function yg(e){return dO[0]=e,pf(dO)}const v9=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:y$,StyledEngineProvider:v$,ThemeContext:zu,css:Oi,default:$w,internal_processStyles:b$,internal_serializeStyles:yg,keyframes:Xi},Symbol.toStringTag,{value:"Module"}));function Go(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function x$(e){if(P.isValidElement(e)||!Go(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=x$(e[n])}),t}function Zs(e,t,n={clone:!0}){const r=n.clone?M({},e):e;return Go(e)&&Go(t)&&Object.keys(t).forEach(i=>{P.isValidElement(t[i])?r[i]=t[i]:Go(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Go(e[i])?r[i]=Zs(e[i],t[i],n):n.clone?r[i]=Go(t[i])?x$(t[i]):t[i]:r[i]=t[i]}),r}const y9=Object.freeze(Object.defineProperty({__proto__:null,default:Zs,isPlainObject:Go},Symbol.toStringTag,{value:"Module"})),b9=["values","unit","step"],x9=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>M({},n,{[r.key]:r.val}),{})};function w$(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=de(e,b9),o=x9(t),a=Object.keys(o);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,g){const m=a.indexOf(g);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(m!==-1&&typeof t[a[m]]=="number"?t[a[m]]:g)-r/100}${n})`}function d(p){return a.indexOf(p)+1<a.length?u(p,a[a.indexOf(p)+1]):s(p)}function h(p){const g=a.indexOf(p);return g===0?s(a[1]):g===a.length-1?l(a[g]):u(p,a[a.indexOf(p)+1]).replace("@media","@media not all and")}return M({keys:a,values:o,up:s,down:l,between:u,only:d,not:h,unit:n},i)}const w9={borderRadius:4};function yd(e,t){return t?Zs(e,t,{clone:!1}):e}const Lw={xs:0,sm:600,md:900,lg:1200,xl:1536},fO={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Lw[e]}px)`};function Hr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||fO;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const o=r.breakpoints||fO;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||Lw).indexOf(s)!==-1){const l=o.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function _$(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function Q0(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function _9(e,...t){const n=_$(e),r=[n,...t].reduce((i,o)=>Zs(i,o),{});return Q0(Object.keys(n),r)}function C9(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,o)=>{o<e.length&&(n[i]=!0)}):r.forEach(i=>{e[i]!=null&&(n[i]=!0)}),n}function Bs({values:e,breakpoints:t,base:n}){const r=n||C9(e,t),i=Object.keys(r);if(i.length===0)return e;let o;return i.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[o],o=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[o],o=s):a[s]=e,a),{})}function kw(e){if(typeof e!="string")throw new Error(vg(7));return e.charAt(0).toUpperCase()+e.slice(1)}const S9=Object.freeze(Object.defineProperty({__proto__:null,default:kw},Symbol.toStringTag,{value:"Module"}));function Fm(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function bg(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=Fm(e,n)||r,t&&(i=t(i,r,e)),i}function Dn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,u=Fm(l,r)||{};return Hr(a,s,h=>{let p=bg(u,i,h);return h===p&&typeof h=="string"&&(p=bg(u,i,`${t}${h==="default"?"":kw(h)}`,h)),n===!1?p:{[n]:p}})};return o.propTypes={},o.filterProps=[t],o}function T9(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const E9={m:"margin",p:"padding"},O9={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},hO={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},P9=T9(e=>{if(e.length>2)if(hO[e])e=hO[e];else return[e];const[t,n]=e.split(""),r=E9[t],i=O9[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),Nw=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Fw=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Nw,...Fw];function gf(e,t,n,r){var i;const o=(i=Fm(e,t,!1))!=null?i:n;return typeof o=="number"?a=>typeof a=="string"?a:o*a:Array.isArray(o)?a=>typeof a=="string"?a:o[a]:typeof o=="function"?o:()=>{}}function jw(e){return gf(e,"spacing",8)}function Qs(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function R9(e,t){return n=>e.reduce((r,i)=>(r[i]=Qs(t,n),r),{})}function M9(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=P9(n),o=R9(i,r),a=e[n];return Hr(e,a,o)}function C$(e,t){const n=jw(e.theme);return Object.keys(e).map(r=>M9(e,t,r,n)).reduce(yd,{})}function wn(e){return C$(e,Nw)}wn.propTypes={};wn.filterProps=Nw;function _n(e){return C$(e,Fw)}_n.propTypes={};_n.filterProps=Fw;function A9(e=8){if(e.mui)return e;const t=jw({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function jm(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?yd(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function _i(e){return typeof e!="number"?e:`${e}px solid`}function Ii(e,t){return Dn({prop:e,themeKey:"borders",transform:t})}const D9=Ii("border",_i),I9=Ii("borderTop",_i),$9=Ii("borderRight",_i),L9=Ii("borderBottom",_i),k9=Ii("borderLeft",_i),N9=Ii("borderColor"),F9=Ii("borderTopColor"),j9=Ii("borderRightColor"),B9=Ii("borderBottomColor"),U9=Ii("borderLeftColor"),W9=Ii("outline",_i),H9=Ii("outlineColor"),Bm=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=gf(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Qs(t,r)});return Hr(e,e.borderRadius,n)}return null};Bm.propTypes={};Bm.filterProps=["borderRadius"];jm(D9,I9,$9,L9,k9,N9,F9,j9,B9,U9,Bm,W9,H9);const Um=e=>{if(e.gap!==void 0&&e.gap!==null){const t=gf(e.theme,"spacing",8),n=r=>({gap:Qs(t,r)});return Hr(e,e.gap,n)}return null};Um.propTypes={};Um.filterProps=["gap"];const Wm=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=gf(e.theme,"spacing",8),n=r=>({columnGap:Qs(t,r)});return Hr(e,e.columnGap,n)}return null};Wm.propTypes={};Wm.filterProps=["columnGap"];const Hm=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=gf(e.theme,"spacing",8),n=r=>({rowGap:Qs(t,r)});return Hr(e,e.rowGap,n)}return null};Hm.propTypes={};Hm.filterProps=["rowGap"];const z9=Dn({prop:"gridColumn"}),V9=Dn({prop:"gridRow"}),G9=Dn({prop:"gridAutoFlow"}),q9=Dn({prop:"gridAutoColumns"}),K9=Dn({prop:"gridAutoRows"}),Y9=Dn({prop:"gridTemplateColumns"}),X9=Dn({prop:"gridTemplateRows"}),Z9=Dn({prop:"gridTemplateAreas"}),Q9=Dn({prop:"gridArea"});jm(Um,Wm,Hm,z9,V9,G9,q9,K9,Y9,X9,Z9,Q9);function uu(e,t){return t==="grey"?t:e}const J9=Dn({prop:"color",themeKey:"palette",transform:uu}),e7=Dn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:uu}),t7=Dn({prop:"backgroundColor",themeKey:"palette",transform:uu});jm(J9,e7,t7);function ni(e){return e<=1&&e!==0?`${e*100}%`:e}const n7=Dn({prop:"width",transform:ni}),Bw=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const o=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Lw[n];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:ni(n)}};return Hr(e,e.maxWidth,t)}return null};Bw.filterProps=["maxWidth"];const r7=Dn({prop:"minWidth",transform:ni}),i7=Dn({prop:"height",transform:ni}),o7=Dn({prop:"maxHeight",transform:ni}),a7=Dn({prop:"minHeight",transform:ni});Dn({prop:"size",cssProperty:"width",transform:ni});Dn({prop:"size",cssProperty:"height",transform:ni});const s7=Dn({prop:"boxSizing"});jm(n7,Bw,r7,i7,o7,a7,s7);const mf={border:{themeKey:"borders",transform:_i},borderTop:{themeKey:"borders",transform:_i},borderRight:{themeKey:"borders",transform:_i},borderBottom:{themeKey:"borders",transform:_i},borderLeft:{themeKey:"borders",transform:_i},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:_i},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Bm},color:{themeKey:"palette",transform:uu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:uu},backgroundColor:{themeKey:"palette",transform:uu},p:{style:_n},pt:{style:_n},pr:{style:_n},pb:{style:_n},pl:{style:_n},px:{style:_n},py:{style:_n},padding:{style:_n},paddingTop:{style:_n},paddingRight:{style:_n},paddingBottom:{style:_n},paddingLeft:{style:_n},paddingX:{style:_n},paddingY:{style:_n},paddingInline:{style:_n},paddingInlineStart:{style:_n},paddingInlineEnd:{style:_n},paddingBlock:{style:_n},paddingBlockStart:{style:_n},paddingBlockEnd:{style:_n},m:{style:wn},mt:{style:wn},mr:{style:wn},mb:{style:wn},ml:{style:wn},mx:{style:wn},my:{style:wn},margin:{style:wn},marginTop:{style:wn},marginRight:{style:wn},marginBottom:{style:wn},marginLeft:{style:wn},marginX:{style:wn},marginY:{style:wn},marginInline:{style:wn},marginInlineStart:{style:wn},marginInlineEnd:{style:wn},marginBlock:{style:wn},marginBlockStart:{style:wn},marginBlockEnd:{style:wn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Um},rowGap:{style:Hm},columnGap:{style:Wm},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ni},maxWidth:{style:Bw},minWidth:{transform:ni},height:{transform:ni},maxHeight:{transform:ni},minHeight:{transform:ni},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function l7(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function u7(e,t){return typeof e=="function"?e(t):e}function S$(){function e(n,r,i,o){const a={[n]:r,theme:i},s=o[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:d,style:h}=s;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=Fm(i,u)||{};return h?h(a):Hr(a,r,m=>{let y=bg(p,d,m);return m===y&&typeof m=="string"&&(y=bg(p,d,`${n}${m==="default"?"":kw(m)}`,m)),l===!1?y:{[l]:y}})}function t(n){var r;const{sx:i,theme:o={},nested:a}=n||{};if(!i)return null;const s=(r=o.unstable_sxConfig)!=null?r:mf;function l(u){let d=u;if(typeof u=="function")d=u(o);else if(typeof u!="object")return u;if(!d)return null;const h=_$(o.breakpoints),p=Object.keys(h);let g=h;return Object.keys(d).forEach(m=>{const y=u7(d[m],o);if(y!=null)if(typeof y=="object")if(s[m])g=yd(g,e(m,y,o,s));else{const b=Hr({theme:o},y,x=>({[m]:x}));l7(b,y)?g[m]=t({sx:y,theme:o,nested:!0}):g=yd(g,b)}else g=yd(g,e(m,y,o,s))}),!a&&o.modularCssLayers?{"@layer sx":Q0(p,g)}:Q0(p,g)}return Array.isArray(i)?i.map(l):l(i)}return t}const Vu=S$();Vu.filterProps=["sx"];function T$(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const c7=["breakpoints","palette","spacing","shape"];function vf(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=de(e,c7),s=w$(n),l=A9(i);let u=Zs({breakpoints:s,direction:"ltr",components:{},palette:M({mode:"light"},r),spacing:l,shape:M({},w9,o)},a);return u.applyStyles=T$,u=t.reduce((d,h)=>Zs(d,h),u),u.unstable_sxConfig=M({},mf,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(h){return Vu({sx:h,theme:this})},u}const d7=Object.freeze(Object.defineProperty({__proto__:null,default:vf,private_createBreakpoints:w$,unstable_applyStyles:T$},Symbol.toStringTag,{value:"Module"}));function f7(e){return Object.keys(e).length===0}function zm(e=null){const t=P.useContext(zu);return!t||f7(t)?e:t}const h7=vf();function Vm(e=h7){return zm(e)}function Ob(e){const t=yg(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function E$({styles:e,themeId:t,defaultTheme:n={}}){const r=Vm(n),i=t&&r[t]||r;let o=typeof e=="function"?e(i):e;return i.modularCssLayers&&(Array.isArray(o)?o=o.map(a=>Ob(typeof a=="function"?a(i):a)):o=Ob(o)),_.jsx(y$,{styles:o})}const p7=["sx"],g7=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:mf;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function yf(e){const{sx:t}=e,n=de(e,p7),{systemProps:r,otherProps:i}=g7(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...a)=>{const s=t(...a);return Go(s)?M({},r,s):r}:o=M({},r,t),M({},i,{sx:o})}const m7=Object.freeze(Object.defineProperty({__proto__:null,default:Vu,extendSxProp:yf,unstable_createStyleFunctionSx:S$,unstable_defaultSxConfig:mf},Symbol.toStringTag,{value:"Module"})),pO=e=>e,v7=()=>{let e=pO;return{configure(t){e=t},generate(t){return e(t)},reset(){e=pO}}},y7=v7();function O$(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=O$(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Pe(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=O$(e))&&(r&&(r+=" "),r+=t);return r}const b7=["className","component"];function x7(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,o=$w("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(Vu);return P.forwardRef(function(l,u){const d=Vm(n),h=yf(l),{className:p,component:g="div"}=h,m=de(h,b7);return _.jsx(o,M({as:g,ref:u,className:Pe(p,i?i(r):r),theme:t&&d[t]||d},m))})}const w7={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function _7(e,t,n="Mui"){const r=w7[t];return r?`${n}-${r}`:`${y7.generate(e)}-${t}`}var P$={exports:{}},Kt={};/**
|
|
45
|
+
* @license React
|
|
46
|
+
* react-is.production.js
|
|
47
|
+
*
|
|
48
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
49
|
+
*
|
|
50
|
+
* This source code is licensed under the MIT license found in the
|
|
51
|
+
* LICENSE file in the root directory of this source tree.
|
|
52
|
+
*/var Uw=Symbol.for("react.transitional.element"),Ww=Symbol.for("react.portal"),Gm=Symbol.for("react.fragment"),qm=Symbol.for("react.strict_mode"),Km=Symbol.for("react.profiler"),Ym=Symbol.for("react.consumer"),Xm=Symbol.for("react.context"),Zm=Symbol.for("react.forward_ref"),Qm=Symbol.for("react.suspense"),Jm=Symbol.for("react.suspense_list"),ev=Symbol.for("react.memo"),tv=Symbol.for("react.lazy"),C7=Symbol.for("react.view_transition"),S7=Symbol.for("react.client.reference");function $i(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Uw:switch(e=e.type,e){case Gm:case Km:case qm:case Qm:case Jm:case C7:return e;default:switch(e=e&&e.$$typeof,e){case Xm:case Zm:case tv:case ev:return e;case Ym:return e;default:return t}}case Ww:return t}}}Kt.ContextConsumer=Ym;Kt.ContextProvider=Xm;Kt.Element=Uw;Kt.ForwardRef=Zm;Kt.Fragment=Gm;Kt.Lazy=tv;Kt.Memo=ev;Kt.Portal=Ww;Kt.Profiler=Km;Kt.StrictMode=qm;Kt.Suspense=Qm;Kt.SuspenseList=Jm;Kt.isContextConsumer=function(e){return $i(e)===Ym};Kt.isContextProvider=function(e){return $i(e)===Xm};Kt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Uw};Kt.isForwardRef=function(e){return $i(e)===Zm};Kt.isFragment=function(e){return $i(e)===Gm};Kt.isLazy=function(e){return $i(e)===tv};Kt.isMemo=function(e){return $i(e)===ev};Kt.isPortal=function(e){return $i(e)===Ww};Kt.isProfiler=function(e){return $i(e)===Km};Kt.isStrictMode=function(e){return $i(e)===qm};Kt.isSuspense=function(e){return $i(e)===Qm};Kt.isSuspenseList=function(e){return $i(e)===Jm};Kt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Gm||e===Km||e===qm||e===Qm||e===Jm||typeof e=="object"&&e!==null&&(e.$$typeof===tv||e.$$typeof===ev||e.$$typeof===Xm||e.$$typeof===Ym||e.$$typeof===Zm||e.$$typeof===S7||e.getModuleId!==void 0)};Kt.typeOf=$i;P$.exports=Kt;var gO=P$.exports;const T7=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function R$(e){const t=`${e}`.match(T7);return t&&t[1]||""}function M$(e,t=""){return e.displayName||e.name||R$(e)||t}function mO(e,t,n){const r=M$(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function E7(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return M$(e,"Component");if(typeof e=="object")switch(e.$$typeof){case gO.ForwardRef:return mO(e,e.render,"ForwardRef");case gO.Memo:return mO(e,e.type,"memo");default:return}}}const O7=Object.freeze(Object.defineProperty({__proto__:null,default:E7,getFunctionName:R$},Symbol.toStringTag,{value:"Module"})),P7=["ownerState"],R7=["variants"],M7=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function A7(e){return Object.keys(e).length===0}function D7(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Pb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function vO(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const I7=vf(),$7=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Hh({defaultTheme:e,theme:t,themeId:n}){return A7(t)?e:t[n]||t}function L7(e){return e?(t,n)=>n[e]:null}function jp(e,t,n){let{ownerState:r}=t,i=de(t,P7);const o=typeof e=="function"?e(M({ownerState:r},i)):e;if(Array.isArray(o))return o.flatMap(a=>jp(a,M({ownerState:r},i),n));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=de(o,R7);return a.forEach(u=>{let d=!0;if(typeof u.props=="function"?d=u.props(M({ownerState:r},i,r)):Object.keys(u.props).forEach(h=>{(r==null?void 0:r[h])!==u.props[h]&&i[h]!==u.props[h]&&(d=!1)}),d){Array.isArray(l)||(l=[l]);const h=typeof u.style=="function"?u.style(M({ownerState:r},i,r)):u.style;l.push(n?vO(yg(h),n):h)}}),l}return n?vO(yg(o),n):o}function k7(e={}){const{themeId:t,defaultTheme:n=I7,rootShouldForwardProp:r=Pb,slotShouldForwardProp:i=Pb}=e,o=a=>Vu(M({},a,{theme:Hh(M({},a,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(a,s={})=>{b$(a,O=>O.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:d,skipSx:h,overridesResolver:p=L7($7(u))}=s,g=de(s,M7),m=l&&l.startsWith("Mui")||u?"components":"custom",y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,b=h||!1;let x,S=Pb;u==="Root"||u==="root"?S=r:u?S=i:D7(a)&&(S=void 0);const w=$w(a,M({shouldForwardProp:S,label:x},g)),C=O=>typeof O=="function"&&O.__emotion_real!==O||Go(O)?T=>{const A=Hh({theme:T.theme,defaultTheme:n,themeId:t});return jp(O,M({},T,{theme:A}),A.modularCssLayers?m:void 0)}:O,R=(O,...T)=>{let A=C(O);const L=T?T.map(C):[];l&&p&&L.push(B=>{const U=Hh(M({},B,{defaultTheme:n,themeId:t}));if(!U.components||!U.components[l]||!U.components[l].styleOverrides)return null;const z=U.components[l].styleOverrides,F={};return Object.entries(z).forEach(([j,K])=>{F[j]=jp(K,M({},B,{theme:U}),U.modularCssLayers?"theme":void 0)}),p(B,F)}),l&&!y&&L.push(B=>{var U;const z=Hh(M({},B,{defaultTheme:n,themeId:t})),F=z==null||(U=z.components)==null||(U=U[l])==null?void 0:U.variants;return jp({variants:F},M({},B,{theme:z}),z.modularCssLayers?"theme":void 0)}),b||L.push(o);const I=L.length-T.length;if(Array.isArray(O)&&I>0){const B=new Array(I).fill("");A=[...O,...B],A.raw=[...O.raw,...B]}const N=w(A,...L);return a.muiName&&(N.muiName=a.muiName),N};return w.withConfig&&(R.withConfig=w.withConfig),R}}const N7=k7();function xg(e,t){const n=M({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=M({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=M({},o),Object.keys(i).forEach(a=>{n[r][a]=xg(i[a],o[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function A$(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:xg(t.components[n].defaultProps,r)}function D$({props:e,name:t,defaultTheme:n,themeId:r}){let i=Vm(n);return r&&(i=i[r]||i),A$({theme:i,name:t,props:e})}const I$=typeof window<"u"?P.useLayoutEffect:P.useEffect;function F7(e,t,n,r,i){const[o,a]=P.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return I$(()=>{let s=!0;if(!n)return;const l=n(e),u=()=>{s&&a(l.matches)};return u(),l.addListener(u),()=>{s=!1,l.removeListener(u)}},[e,n]),o}const $$=P.useSyncExternalStore;function j7(e,t,n,r,i){const o=P.useCallback(()=>t,[t]),a=P.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:d}=r(e);return()=>d}return o},[o,e,r,i,n]),[s,l]=P.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const d=n(e);return[()=>d.matches,h=>(d.addListener(h),()=>{d.removeListener(h)})]},[o,n,e]);return $$(l,s,a)}function Ha(e,t={}){const n=zm(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=r?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:s=!1}=A$({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),($$!==void 0?j7:F7)(l,i,o,a,s)}function L$(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const B7=Object.freeze(Object.defineProperty({__proto__:null,default:L$},Symbol.toStringTag,{value:"Module"}));function U7(e,t=0,n=1){return L$(e,t,n)}function W7(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function k$(e){if(e.type)return e;if(e.charAt(0)==="#")return k$(W7(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(vg(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(vg(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function H7(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function zd(e,t){return e=k$(e),t=U7(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,H7(e)}const N$=P.createContext(null);function F$(){return P.useContext(N$)}const z7=typeof Symbol=="function"&&Symbol.for,V7=z7?Symbol.for("mui.nested"):"__THEME_NESTED__";function G7(e,t){return typeof t=="function"?t(e):M({},e,t)}function q7(e){const{children:t,theme:n}=e,r=F$(),i=P.useMemo(()=>{const o=r===null?n:G7(r,n);return o!=null&&(o[V7]=r!==null),o},[n,r]);return _.jsx(N$.Provider,{value:i,children:t})}const K7=["value"],j$=P.createContext();function Y7(e){let{value:t}=e,n=de(e,K7);return _.jsx(j$.Provider,M({value:t??!0},n))}const nv=()=>{const e=P.useContext(j$);return e??!1},B$=P.createContext(void 0);function X7({value:e,children:t}){return _.jsx(B$.Provider,{value:e,children:t})}function Z7(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?xg(i.defaultProps,r):!i.styleOverrides&&!i.variants?xg(i,r):r}function Q7({props:e,name:t}){const n=P.useContext(B$);return Z7({props:e,name:t,theme:{components:n}})}let yO=0;function J7(e){const[t,n]=P.useState(e),r=e||t;return P.useEffect(()=>{t==null&&(yO+=1,n(`mui-${yO}`))},[t]),r}const bO=P.useId;function eG(e){return bO!==void 0?bO():J7(e)}function tG(e){const t=zm(),n=eG()||"",{modularCssLayers:r}=e;let i="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!r||t!==null?i="":typeof r=="string"?i=r.replace(/mui(?!\.)/g,i):i=`@layer ${i};`,I$(()=>{const o=document.querySelector("head");if(!o)return;const a=o.firstChild;if(i){var s;if(a&&(s=a.hasAttribute)!=null&&s.call(a,"data-mui-layer-order")&&a.getAttribute("data-mui-layer-order")===n)return;const u=document.createElement("style");u.setAttribute("data-mui-layer-order",n),u.textContent=i,o.prepend(u)}else{var l;(l=o.querySelector(`style[data-mui-layer-order="${n}"]`))==null||l.remove()}},[i,n]),i?_.jsx(E$,{styles:i}):null}const xO={};function wO(e,t,n,r=!1){return P.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const o=n(i),a=e?M({},t,{[e]:o}):o;return r?()=>a:a}return e?M({},t,{[e]:n}):M({},t,n)},[e,t,n,r])}function nG(e){const{children:t,theme:n,themeId:r}=e,i=zm(xO),o=F$()||xO,a=wO(r,i,n),s=wO(r,o,n,!0),l=a.direction==="rtl",u=tG(a);return _.jsx(q7,{theme:s,children:_.jsx(zu.Provider,{value:a,children:_.jsx(Y7,{value:l,children:_.jsxs(X7,{value:a==null?void 0:a.components,children:[u,t]})})})})}function xo(e){"@babel/helpers - typeof";return xo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xo(e)}function rG(e,t){if(xo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function U$(e){var t=rG(e,"string");return xo(t)=="symbol"?t:t+""}function iG(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,a)=>{if(a){const s=t(a);s!==""&&o.push(s),n&&n[a]&&o.push(n[a])}return o},[]).join(" ")}),r}const oG=["component","direction","spacing","divider","children","className","useFlexGap"],aG=vf(),sG=N7("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function lG(e){return D$({props:e,name:"MuiStack",defaultTheme:aG})}function uG(e,t){const n=P.Children.toArray(e).filter(Boolean);return n.reduce((r,i,o)=>(r.push(i),o<n.length-1&&r.push(P.cloneElement(t,{key:`separator-${o}`})),r),[])}const cG=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],dG=({ownerState:e,theme:t})=>{let n=M({display:"flex",flexDirection:"column"},Hr({theme:t},Bs({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=jw(t),i=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),o=Bs({values:e.direction,base:i}),a=Bs({values:e.spacing,base:i});typeof o=="object"&&Object.keys(o).forEach((l,u,d)=>{if(!o[l]){const p=u>0?o[d[u-1]]:"column";o[l]=p}}),n=Zs(n,Hr({theme:t},a,(l,u)=>e.useFlexGap?{gap:Qs(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${cG(u?o[u]:e.direction)}`]:Qs(r,l)}}))}return n=_9(t.breakpoints,n),n};function fG(e={}){const{createStyledComponent:t=sG,useThemeProps:n=lG,componentName:r="MuiStack"}=e,i=()=>iG({root:["root"]},l=>_7(r,l),{}),o=t(dG);return P.forwardRef(function(l,u){const d=n(l),h=yf(d),{component:p="div",direction:g="column",spacing:m=0,divider:y,children:b,className:x,useFlexGap:S=!1}=h,w=de(h,oG),C={direction:g,spacing:m,useFlexGap:S},R=i();return _.jsx(o,M({as:p,ownerState:C,ref:u,className:Pe(R.root,x)},w,{children:y?uG(b,y):b}))})}function eu(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function W$(e){if(P.isValidElement(e)||!eu(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=W$(e[n])}),t}function Qo(e,t,n={clone:!0}){const r=n.clone?M({},e):e;return eu(e)&&eu(t)&&Object.keys(t).forEach(i=>{P.isValidElement(t[i])?r[i]=t[i]:eu(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&eu(e[i])?r[i]=Qo(e[i],t[i],n):n.clone?r[i]=eu(t[i])?W$(t[i]):t[i]:r[i]=t[i]}),r}const _O=e=>e,hG=()=>{let e=_O;return{configure(t){e=t},generate(t){return e(t)},reset(){e=_O}}},Hw=hG(),pG={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Be(e,t,n="Mui"){const r=pG[t];return r?`${n}-${r}`:`${Hw.generate(e)}-${t}`}function gG(e,t){return M({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var In={},H$={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(H$);var Bt=H$.exports;const mG=Yi(n9),vG=Yi(B7);var z$=Bt;Object.defineProperty(In,"__esModule",{value:!0});var er=In.alpha=K$;In.blend=PG;In.colorChannel=void 0;var rv=In.darken=Vw;In.decomposeColor=Pi;In.emphasize=Y$;var yG=In.getContrastRatio=CG;In.getLuminance=wg;In.hexToRgb=V$;In.hslToRgb=q$;var iv=In.lighten=Gw;In.private_safeAlpha=SG;In.private_safeColorChannel=void 0;In.private_safeDarken=TG;In.private_safeEmphasize=OG;In.private_safeLighten=EG;In.recomposeColor=Gu;In.rgbToHex=_G;var CO=z$(mG),bG=z$(vG);function zw(e,t=0,n=1){return(0,bG.default)(e,t,n)}function V$(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function xG(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Pi(e){if(e.type)return e;if(e.charAt(0)==="#")return Pi(V$(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,CO.default)(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error((0,CO.default)(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}const G$=e=>{const t=Pi(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};In.colorChannel=G$;const wG=(e,t)=>{try{return G$(e)}catch{return e}};In.private_safeColorChannel=wG;function Gu(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function _G(e){if(e.indexOf("#")===0)return e;const{values:t}=Pi(e);return`#${t.map((n,r)=>xG(r===3?Math.round(255*n):n)).join("")}`}function q$(e){e=Pi(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(u,d=(u+n/30)%12)=>i-o*Math.max(Math.min(d-3,9-d,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),Gu({type:s,values:l})}function wg(e){e=Pi(e);let t=e.type==="hsl"||e.type==="hsla"?Pi(q$(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function CG(e,t){const n=wg(e),r=wg(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function K$(e,t){return e=Pi(e),t=zw(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Gu(e)}function SG(e,t,n){try{return K$(e,t)}catch{return e}}function Vw(e,t){if(e=Pi(e),t=zw(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Gu(e)}function TG(e,t,n){try{return Vw(e,t)}catch{return e}}function Gw(e,t){if(e=Pi(e),t=zw(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Gu(e)}function EG(e,t,n){try{return Gw(e,t)}catch{return e}}function Y$(e,t=.15){return wg(e)>.5?Vw(e,t):Gw(e,t)}function OG(e,t,n){try{return Y$(e,t)}catch{return e}}function PG(e,t,n,r=1){const i=(l,u)=>Math.round((l**(1/r)*(1-n)+u**(1/r)*n)**r),o=Pi(e),a=Pi(t),s=[i(o.values[0],a.values[0]),i(o.values[1],a.values[1]),i(o.values[2],a.values[2])];return Gu({type:"rgb",values:s})}const Vd={black:"#000",white:"#fff"},RG={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Fl={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},jl={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},kc={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Bl={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Ul={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Wl={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},MG=["mode","contrastThreshold","tonalOffset"],SO={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Vd.white,default:Vd.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Rb={text:{primary:Vd.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Vd.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function TO(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=iv(e.main,i):t==="dark"&&(e.dark=rv(e.main,o)))}function AG(e="light"){return e==="dark"?{main:Bl[200],light:Bl[50],dark:Bl[400]}:{main:Bl[700],light:Bl[400],dark:Bl[800]}}function DG(e="light"){return e==="dark"?{main:Fl[200],light:Fl[50],dark:Fl[400]}:{main:Fl[500],light:Fl[300],dark:Fl[700]}}function IG(e="light"){return e==="dark"?{main:jl[500],light:jl[300],dark:jl[700]}:{main:jl[700],light:jl[400],dark:jl[800]}}function $G(e="light"){return e==="dark"?{main:Ul[400],light:Ul[300],dark:Ul[700]}:{main:Ul[700],light:Ul[500],dark:Ul[900]}}function LG(e="light"){return e==="dark"?{main:Wl[400],light:Wl[300],dark:Wl[700]}:{main:Wl[800],light:Wl[500],dark:Wl[900]}}function kG(e="light"){return e==="dark"?{main:kc[400],light:kc[300],dark:kc[700]}:{main:"#ed6c02",light:kc[500],dark:kc[900]}}function NG(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=de(e,MG),o=e.primary||AG(t),a=e.secondary||DG(t),s=e.error||IG(t),l=e.info||$G(t),u=e.success||LG(t),d=e.warning||kG(t);function h(y){return yG(y,Rb.text.primary)>=n?Rb.text.primary:SO.text.primary}const p=({color:y,name:b,mainShade:x=500,lightShade:S=300,darkShade:w=700})=>{if(y=M({},y),!y.main&&y[x]&&(y.main=y[x]),!y.hasOwnProperty("main"))throw new Error(bu(11,b?` (${b})`:"",x));if(typeof y.main!="string")throw new Error(bu(12,b?` (${b})`:"",JSON.stringify(y.main)));return TO(y,"light",S,r),TO(y,"dark",w,r),y.contrastText||(y.contrastText=h(y.main)),y},g={dark:Rb,light:SO};return Qo(M({common:M({},Vd),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:RG,contrastThreshold:n,getContrastText:h,augmentColor:p,tonalOffset:r},g[t]),i)}const FG=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function jG(e){return Math.round(e*1e5)/1e5}const EO={textTransform:"uppercase"},OO='"Roboto", "Helvetica", "Arial", sans-serif';function BG(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=OO,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:d,pxToRem:h}=n,p=de(n,FG),g=i/14,m=h||(x=>`${x/u*g}rem`),y=(x,S,w,C,R)=>M({fontFamily:r,fontWeight:x,fontSize:m(S),lineHeight:w},r===OO?{letterSpacing:`${jG(C/S)}em`}:{},R,d),b={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(a,48,1.167,0),h4:y(a,34,1.235,.25),h5:y(a,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(a,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(a,16,1.5,.15),body2:y(a,14,1.43,.15),button:y(s,14,1.75,.4,EO),caption:y(a,12,1.66,.4),overline:y(a,12,2.66,1,EO),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Qo(M({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},b),p,{clone:!1})}const UG=.2,WG=.14,HG=.12;function sn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${UG})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${WG})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${HG})`].join(",")}const zG=["none",sn(0,2,1,-1,0,1,1,0,0,1,3,0),sn(0,3,1,-2,0,2,2,0,0,1,5,0),sn(0,3,3,-2,0,3,4,0,0,1,8,0),sn(0,2,4,-1,0,4,5,0,0,1,10,0),sn(0,3,5,-1,0,5,8,0,0,1,14,0),sn(0,3,5,-1,0,6,10,0,0,1,18,0),sn(0,4,5,-2,0,7,10,1,0,2,16,1),sn(0,5,5,-3,0,8,10,1,0,3,14,2),sn(0,5,6,-3,0,9,12,1,0,3,16,2),sn(0,6,6,-3,0,10,14,1,0,4,18,3),sn(0,6,7,-4,0,11,15,1,0,4,20,3),sn(0,7,8,-4,0,12,17,2,0,5,22,4),sn(0,7,8,-4,0,13,19,2,0,5,24,4),sn(0,7,9,-4,0,14,21,2,0,5,26,4),sn(0,8,9,-5,0,15,22,2,0,6,28,5),sn(0,8,10,-5,0,16,24,2,0,6,30,5),sn(0,8,11,-5,0,17,26,2,0,6,32,5),sn(0,9,11,-5,0,18,28,2,0,7,34,6),sn(0,9,12,-6,0,19,29,2,0,7,36,6),sn(0,10,13,-6,0,20,31,3,0,8,38,7),sn(0,10,13,-6,0,21,33,3,0,8,40,7),sn(0,10,14,-6,0,22,35,3,0,8,42,7),sn(0,11,14,-7,0,23,36,3,0,9,44,8),sn(0,11,15,-7,0,24,38,3,0,9,46,8)],VG=["duration","easing","delay"],GG={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},qG={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function PO(e){return`${Math.round(e)}ms`}function KG(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function YG(e){const t=M({},GG,e.easing),n=M({},qG,e.duration);return M({getAutoHeightDuration:KG,create:(i=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=o;return de(o,VG),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof a=="string"?a:PO(a)} ${s} ${typeof l=="string"?l:PO(l)}`).join(",")}},e,{easing:t,duration:n})}const XG={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},ZG=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function qw(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=de(e,ZG);if(e.vars&&e.generateCssVars===void 0)throw new Error(bu(18));const s=NG(r),l=vf(e);let u=Qo(l,{mixins:gG(l.breakpoints,n),palette:s,shadows:zG.slice(),typography:BG(s,o),transitions:YG(i),zIndex:M({},XG)});return u=Qo(u,a),u=t.reduce((d,h)=>Qo(d,h),u),u.unstable_sxConfig=M({},mf,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(h){return Vu({sx:h,theme:this})},u}function QG(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function JG(e){return parseFloat(e)}const ov=qw();function or(){const e=Vm(ov);return e[Xs]||e}function Or({props:e,name:t}){return D$({props:e,name:t,defaultTheme:ov,themeId:Xs})}var bf={};const eq=Yi(Kz);var Mb={exports:{}},RO;function tq(){return RO||(RO=1,function(e){function t(n,r){if(n==null)return{};var i={};for(var o in n)if({}.hasOwnProperty.call(n,o)){if(r.indexOf(o)!==-1)continue;i[o]=n[o]}return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Mb)),Mb.exports}const X$=Yi(v9),nq=Yi(y9),rq=Yi(S9),iq=Yi(O7),oq=Yi(d7),aq=Yi(m7);var qu=Bt;Object.defineProperty(bf,"__esModule",{value:!0});var sq=bf.default=xq;bf.shouldForwardProp=Bp;bf.systemDefaultTheme=void 0;var bi=qu(eq),J0=qu(tq()),_g=pq(X$),lq=nq;qu(rq);qu(iq);var uq=qu(oq),cq=qu(aq);const dq=["ownerState"],fq=["variants"],hq=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Z$(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Z$=function(r){return r?n:t})(e)}function pq(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Z$(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function gq(e){return Object.keys(e).length===0}function mq(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Bp(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function MO(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const vq=bf.systemDefaultTheme=(0,uq.default)(),yq=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function zh({defaultTheme:e,theme:t,themeId:n}){return gq(t)?e:t[n]||t}function bq(e){return e?(t,n)=>n[e]:null}function Up(e,t,n){let{ownerState:r}=t,i=(0,J0.default)(t,dq);const o=typeof e=="function"?e((0,bi.default)({ownerState:r},i)):e;if(Array.isArray(o))return o.flatMap(a=>Up(a,(0,bi.default)({ownerState:r},i),n));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=(0,J0.default)(o,fq);return a.forEach(u=>{let d=!0;if(typeof u.props=="function"?d=u.props((0,bi.default)({ownerState:r},i,r)):Object.keys(u.props).forEach(h=>{(r==null?void 0:r[h])!==u.props[h]&&i[h]!==u.props[h]&&(d=!1)}),d){Array.isArray(l)||(l=[l]);const h=typeof u.style=="function"?u.style((0,bi.default)({ownerState:r},i,r)):u.style;l.push(n?MO((0,_g.internal_serializeStyles)(h),n):h)}}),l}return n?MO((0,_g.internal_serializeStyles)(o),n):o}function xq(e={}){const{themeId:t,defaultTheme:n=vq,rootShouldForwardProp:r=Bp,slotShouldForwardProp:i=Bp}=e,o=a=>(0,cq.default)((0,bi.default)({},a,{theme:zh((0,bi.default)({},a,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(a,s={})=>{(0,_g.internal_processStyles)(a,O=>O.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:d,skipSx:h,overridesResolver:p=bq(yq(u))}=s,g=(0,J0.default)(s,hq),m=l&&l.startsWith("Mui")||u?"components":"custom",y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,b=h||!1;let x,S=Bp;u==="Root"||u==="root"?S=r:u?S=i:mq(a)&&(S=void 0);const w=(0,_g.default)(a,(0,bi.default)({shouldForwardProp:S,label:x},g)),C=O=>typeof O=="function"&&O.__emotion_real!==O||(0,lq.isPlainObject)(O)?T=>{const A=zh({theme:T.theme,defaultTheme:n,themeId:t});return Up(O,(0,bi.default)({},T,{theme:A}),A.modularCssLayers?m:void 0)}:O,R=(O,...T)=>{let A=C(O);const L=T?T.map(C):[];l&&p&&L.push(B=>{const U=zh((0,bi.default)({},B,{defaultTheme:n,themeId:t}));if(!U.components||!U.components[l]||!U.components[l].styleOverrides)return null;const z=U.components[l].styleOverrides,F={};return Object.entries(z).forEach(([j,K])=>{F[j]=Up(K,(0,bi.default)({},B,{theme:U}),U.modularCssLayers?"theme":void 0)}),p(B,F)}),l&&!y&&L.push(B=>{var U;const z=zh((0,bi.default)({},B,{defaultTheme:n,themeId:t})),F=z==null||(U=z.components)==null||(U=U[l])==null?void 0:U.variants;return Up({variants:F},(0,bi.default)({},B,{theme:z}),z.modularCssLayers?"theme":void 0)}),b||L.push(o);const I=L.length-T.length;if(Array.isArray(O)&&I>0){const B=new Array(I).fill("");A=[...O,...B],A.raw=[...O.raw,...B]}const N=w(A,...L);return a.muiName&&(N.muiName=a.muiName),N};return w.withConfig&&(R.withConfig=w.withConfig),R}}function Q$(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const vr=e=>Q$(e)&&e!=="classes",H=sq({themeId:Xs,defaultTheme:ov,rootShouldForwardProp:vr}),wq=["theme"];function _q(e){let{theme:t}=e,n=de(e,wq);const r=t[Xs];let i=r||t;return typeof t!="function"&&(r&&!r.vars?i=M({},r,{vars:null}):t&&!t.vars&&(i=M({},t,{vars:null}))),_.jsx(nG,M({},n,{themeId:r?Xs:void 0,theme:i}))}const AO=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function me(e){if(typeof e!="string")throw new Error(bu(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ex(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function av(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function Cq(e,t){return()=>null}function Wp(e,t){var n,r;return P.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function qn(e){return e&&e.ownerDocument||document}function wo(e){return qn(e).defaultView||window}function Sq(e,t){return()=>null}function Cg(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Ki=typeof window<"u"?P.useLayoutEffect:P.useEffect;let DO=0;function Tq(e){const[t,n]=P.useState(e),r=e||t;return P.useEffect(()=>{t==null&&(DO+=1,n(`mui-${DO}`))},[t]),r}const IO=P.useId;function Js(e){if(IO!==void 0){const t=IO();return e??t}return Tq(e)}function Eq(e,t,n,r,i){return null}function Sg({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=P.useRef(e!==void 0),[o,a]=P.useState(t),s=i?e:o,l=P.useCallback(u=>{i||a(u)},[]);return[s,l]}function qo(e){const t=P.useRef(e);return Ki(()=>{t.current=e}),P.useRef((...n)=>(0,t.current)(...n)).current}function vn(...e){return P.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Cg(n,t)})},e)}const $O={};function Oq(e,t){const n=P.useRef($O);return n.current===$O&&(n.current=e(t)),n}const Pq=[];function Rq(e){P.useEffect(e,Pq)}let J$=class eL{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new eL}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}};function tL(){const e=Oq(J$.create).current;return Rq(e.disposeEffect),e}let sv=!0,tx=!1;const Mq=new J$,Aq={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Dq(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Aq[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Iq(e){e.metaKey||e.altKey||e.ctrlKey||(sv=!0)}function Ab(){sv=!1}function $q(){this.visibilityState==="hidden"&&tx&&(sv=!0)}function Lq(e){e.addEventListener("keydown",Iq,!0),e.addEventListener("mousedown",Ab,!0),e.addEventListener("pointerdown",Ab,!0),e.addEventListener("touchstart",Ab,!0),e.addEventListener("visibilitychange",$q,!0)}function kq(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return sv||Dq(t)}function nL(){const e=P.useCallback(i=>{i!=null&&Lq(i.ownerDocument)},[]),t=P.useRef(!1);function n(){return t.current?(tx=!0,Mq.start(100,()=>{tx=!1}),t.current=!1,!0):!1}function r(i){return kq(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function rL(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Nq(e){return P.Children.toArray(e).filter(t=>P.isValidElement(t))}function iL(e,t){const n=M({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=M({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=M({},o),Object.keys(i).forEach(a=>{n[r][a]=iL(i[a],o[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Ue(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,a)=>{if(a){const s=t(a);s!==""&&o.push(s),n&&n[a]&&o.push(n[a])}return o},[]).join(" ")}),r}function Le(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Be(e,i,n)}),r}function Gd(e){return typeof e=="string"}function Fq(e,t,n){return e===void 0||Gd(e)?t:M({},t,{ownerState:M({},t.ownerState,n)})}function oL(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function LO(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function jq(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const g=Pe(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),m=M({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),y=M({},n,i,r);return g.length>0&&(y.className=g),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:void 0}}const a=oL(M({},i,r)),s=LO(r),l=LO(i),u=t(a),d=Pe(u==null?void 0:u.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),h=M({},u==null?void 0:u.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),p=M({},u,n,l,s);return d.length>0&&(p.className=d),Object.keys(h).length>0&&(p.style=h),{props:p,internalRef:u.ref}}function Bq(e,t,n){return typeof e=="function"?e(t,n):e}const Uq=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function el(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,a=de(e,Uq),s=o?{}:Bq(r,i),{props:l,internalRef:u}=jq(M({},a,{externalSlotProps:s})),d=vn(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Fq(n,M({},l,{ref:d}),i)}function Ku(e){if(parseInt(P.version,10)>=19){var t;return(e==null||(t=e.props)==null?void 0:t.ref)||null}return(e==null?void 0:e.ref)||null}function et(e){return Q7(e)}function Wq(e){return Be("MuiSvgIcon",e)}Le("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Hq=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],zq=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${me(t)}`,`fontSize${me(n)}`]};return Ue(i,Wq,r)},Vq=H("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${me(n.color)}`],t[`fontSize${me(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,a,s,l,u,d,h,p,g,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(a=o.pxToRem)==null?void 0:a.call(o,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((u=e.typography)==null||(d=u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:(h=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?h:{action:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.active,disabled:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.disabled,inherit:void 0}[t.color]}}),qd=P.forwardRef(function(t,n){const r=et({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:h,viewBox:p="0 0 24 24"}=r,g=de(r,Hq),m=P.isValidElement(i)&&i.type==="svg",y=M({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:m}),b={};d||(b.viewBox=p);const x=zq(y);return _.jsxs(Vq,M({as:s,className:Pe(x.root,o),focusable:"false",color:u,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n},b,g,m&&i.props,{ownerState:y,children:[m?i.props.children:i,h?_.jsx("title",{children:h}):null]}))});qd.muiName="SvgIcon";function $n(e,t){function n(r,i){return _.jsx(qd,M({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=qd.muiName,P.memo(P.forwardRef(n))}const Gq={configure:e=>{Hw.configure(e)}},qq=Object.freeze(Object.defineProperty({__proto__:null,capitalize:me,createChainedFunction:ex,createSvgIcon:$n,debounce:av,deprecatedPropType:Cq,isMuiElement:Wp,ownerDocument:qn,ownerWindow:wo,requirePropFactory:Sq,setRef:Cg,unstable_ClassNameGenerator:Gq,unstable_useEnhancedEffect:Ki,unstable_useId:Js,unsupportedProp:Eq,useControlled:Sg,useEventCallback:qo,useForkRef:vn,useIsFocusVisible:nL},Symbol.toStringTag,{value:"Module"}));function Kq(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Yq(e,t){e.classList?e.classList.add(t):Kq(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function kO(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Xq(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=kO(e.className,t):e.setAttribute("class",kO(e.className&&e.className.baseVal||"",t))}const NO={disabled:!1},Tg=lt.createContext(null);var aL=function(t){return t.scrollTop},ad="unmounted",xs="exited",ws="entering",tu="entered",nx="exiting",Li=function(e){oa(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?s?(l=xs,o.appearStatus=ws):l=tu:r.unmountOnExit||r.mountOnEnter?l=ad:l=xs,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===ad?{status:xs}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==ws&&a!==tu&&(o=ws):(a===ws||a===tu)&&(o=nx)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===ws){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:id.findDOMNode(this);a&&aL(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xs&&this.setState({status:ad})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[id.findDOMNode(this),s],u=l[0],d=l[1],h=this.getTimeouts(),p=s?h.appear:h.enter;if(!i&&!a||NO.disabled){this.safeSetState({status:tu},function(){o.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:ws},function(){o.props.onEntering(u,d),o.onTransitionEnd(p,function(){o.safeSetState({status:tu},function(){o.props.onEntered(u,d)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:id.findDOMNode(this);if(!o||NO.disabled){this.safeSetState({status:xs},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:nx},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:xs},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:id.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],d=l[1];this.props.addEndListener(u,d)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===ad)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=de(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return lt.createElement(Tg.Provider,{value:null},typeof a=="function"?a(i,s):lt.cloneElement(lt.Children.only(a),s))},t}(lt.Component);Li.contextType=Tg;Li.propTypes={};function Hl(){}Li.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Hl,onEntering:Hl,onEntered:Hl,onExit:Hl,onExiting:Hl,onExited:Hl};Li.UNMOUNTED=ad;Li.EXITED=xs;Li.ENTERING=ws;Li.ENTERED=tu;Li.EXITING=nx;var Zq=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Yq(t,r)})},Db=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Xq(t,r)})},Kw=function(e){oa(t,e);function t(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(s,l){var u=r.resolveArguments(s,l),d=u[0],h=u[1];r.removeClasses(d,"exit"),r.addClass(d,h?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(s,l)},r.onEntering=function(s,l){var u=r.resolveArguments(s,l),d=u[0],h=u[1],p=h?"appear":"enter";r.addClass(d,p,"active"),r.props.onEntering&&r.props.onEntering(s,l)},r.onEntered=function(s,l){var u=r.resolveArguments(s,l),d=u[0],h=u[1],p=h?"appear":"enter";r.removeClasses(d,p),r.addClass(d,p,"done"),r.props.onEntered&&r.props.onEntered(s,l)},r.onExit=function(s){var l=r.resolveArguments(s),u=l[0];r.removeClasses(u,"appear"),r.removeClasses(u,"enter"),r.addClass(u,"exit","base"),r.props.onExit&&r.props.onExit(s)},r.onExiting=function(s){var l=r.resolveArguments(s),u=l[0];r.addClass(u,"exit","active"),r.props.onExiting&&r.props.onExiting(s)},r.onExited=function(s){var l=r.resolveArguments(s),u=l[0];r.removeClasses(u,"exit"),r.addClass(u,"exit","done"),r.props.onExited&&r.props.onExited(s)},r.resolveArguments=function(s,l){return r.props.nodeRef?[r.props.nodeRef.current,s]:[s,l]},r.getClassNames=function(s){var l=r.props.classNames,u=typeof l=="string",d=u&&l?l+"-":"",h=u?""+d+s:l[s],p=u?h+"-active":l[s+"Active"],g=u?h+"-done":l[s+"Done"];return{baseClassName:h,activeClassName:p,doneClassName:g}},r}var n=t.prototype;return n.addClass=function(i,o,a){var s=this.getClassNames(o)[a+"ClassName"],l=this.getClassNames("enter"),u=l.doneClassName;o==="appear"&&a==="done"&&u&&(s+=" "+u),a==="active"&&i&&aL(i),s&&(this.appliedClasses[o][a]=s,Zq(i,s))},n.removeClasses=function(i,o){var a=this.appliedClasses[o],s=a.base,l=a.active,u=a.done;this.appliedClasses[o]={},s&&Db(i,s),l&&Db(i,l),u&&Db(i,u)},n.render=function(){var i=this.props;i.classNames;var o=de(i,["classNames"]);return lt.createElement(Li,M({},o,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(lt.Component);Kw.defaultProps={classNames:""};Kw.propTypes={};function Ae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yw(e,t){var n=function(o){return t&&Ap(o)?t(o):o},r=Object.create(null);return e&&kz.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function Qq(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var a,s={};for(var l in t){if(r[l])for(a=0;a<r[l].length;a++){var u=r[l][a];s[r[l][a]]=n(u)}s[l]=n(l)}for(a=0;a<i.length;a++)s[i[a]]=n(i[a]);return s}function ks(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Jq(e,t){return Yw(e.children,function(n){return md(n,{onExited:t.bind(null,n),in:!0,appear:ks(n,"appear",e),enter:ks(n,"enter",e),exit:ks(n,"exit",e)})})}function eK(e,t,n){var r=Yw(e.children),i=Qq(t,r);return Object.keys(i).forEach(function(o){var a=i[o];if(Ap(a)){var s=o in t,l=o in r,u=t[o],d=Ap(u)&&!u.props.in;l&&(!s||d)?i[o]=md(a,{onExited:n.bind(null,a),in:!0,exit:ks(a,"exit",e),enter:ks(a,"enter",e)}):!l&&s&&!d?i[o]=md(a,{in:!1}):l&&s&&Ap(u)&&(i[o]=md(a,{onExited:n.bind(null,a),in:u.props.in,exit:ks(a,"exit",e),enter:ks(a,"enter",e)}))}}),i}var tK=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},nK={component:"div",childFactory:function(t){return t}},xf=function(e){oa(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=o.handleExited.bind(Ae(o));return o.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},o}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,o){var a=o.children,s=o.handleExited,l=o.firstRender;return{children:l?Jq(i,s):eK(i,a,s),firstRender:!1}},n.handleExited=function(i,o){var a=Yw(this.props.children);i.key in a||(i.props.onExited&&i.props.onExited(o),this.mounted&&this.setState(function(s){var l=M({},s.children);return delete l[i.key],{children:l}}))},n.render=function(){var i=this.props,o=i.component,a=i.childFactory,s=de(i,["component","childFactory"]),l=this.state.contextValue,u=tK(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,o===null?lt.createElement(Tg.Provider,{value:l},u):lt.createElement(Tg.Provider,{value:l},lt.createElement(o,s,u))},t}(lt.Component);xf.propTypes={};xf.defaultProps=nK;const Xw=e=>e.scrollTop;function xu(e,t){var n,r;const{timeout:i,easing:o,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:a.transitionDelay}}function rK(e){return Be("MuiPaper",e)}Le("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const iK=["className","component","elevation","square","variant"],oK=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ue(o,rK,i)},aK=H("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return M({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&M({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${er("#fff",AO(t.elevation))}, ${er("#fff",AO(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Ya=P.forwardRef(function(t,n){const r=et({props:t,name:"MuiPaper"}),{className:i,component:o="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,u=de(r,iK),d=M({},r,{component:o,elevation:a,square:s,variant:l}),h=oK(d);return _.jsx(aK,M({as:o,ownerState:d,className:Pe(h.root,i),ref:n},u))});function sK(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:u}=e,[d,h]=P.useState(!1),p=Pe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},m=Pe(n.child,d&&n.childLeaving,r&&n.childPulsate);return!s&&!d&&h(!0),P.useEffect(()=>{if(!s&&l!=null){const y=setTimeout(l,u);return()=>{clearTimeout(y)}}},[l,s,u]),_.jsx("span",{className:p,style:g,children:_.jsx("span",{className:m})})}const xi=Le("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),lK=["center","classes","className"];let lv=e=>e,FO,jO,BO,UO;const rx=550,uK=80,cK=Xi(FO||(FO=lv`
|
|
53
|
+
0% {
|
|
54
|
+
transform: scale(0);
|
|
55
|
+
opacity: 0.1;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
100% {
|
|
59
|
+
transform: scale(1);
|
|
60
|
+
opacity: 0.3;
|
|
61
|
+
}
|
|
62
|
+
`)),dK=Xi(jO||(jO=lv`
|
|
63
|
+
0% {
|
|
64
|
+
opacity: 1;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
100% {
|
|
68
|
+
opacity: 0;
|
|
69
|
+
}
|
|
70
|
+
`)),fK=Xi(BO||(BO=lv`
|
|
71
|
+
0% {
|
|
72
|
+
transform: scale(1);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
50% {
|
|
76
|
+
transform: scale(0.92);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
100% {
|
|
80
|
+
transform: scale(1);
|
|
81
|
+
}
|
|
82
|
+
`)),hK=H("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),pK=H(sK,{name:"MuiTouchRipple",slot:"Ripple"})(UO||(UO=lv`
|
|
83
|
+
opacity: 0;
|
|
84
|
+
position: absolute;
|
|
85
|
+
|
|
86
|
+
&.${0} {
|
|
87
|
+
opacity: 0.3;
|
|
88
|
+
transform: scale(1);
|
|
89
|
+
animation-name: ${0};
|
|
90
|
+
animation-duration: ${0}ms;
|
|
91
|
+
animation-timing-function: ${0};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&.${0} {
|
|
95
|
+
animation-duration: ${0}ms;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
& .${0} {
|
|
99
|
+
opacity: 1;
|
|
100
|
+
display: block;
|
|
101
|
+
width: 100%;
|
|
102
|
+
height: 100%;
|
|
103
|
+
border-radius: 50%;
|
|
104
|
+
background-color: currentColor;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
& .${0} {
|
|
108
|
+
opacity: 0;
|
|
109
|
+
animation-name: ${0};
|
|
110
|
+
animation-duration: ${0}ms;
|
|
111
|
+
animation-timing-function: ${0};
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
& .${0} {
|
|
115
|
+
position: absolute;
|
|
116
|
+
/* @noflip */
|
|
117
|
+
left: 0px;
|
|
118
|
+
top: 0;
|
|
119
|
+
animation-name: ${0};
|
|
120
|
+
animation-duration: 2500ms;
|
|
121
|
+
animation-timing-function: ${0};
|
|
122
|
+
animation-iteration-count: infinite;
|
|
123
|
+
animation-delay: 200ms;
|
|
124
|
+
}
|
|
125
|
+
`),xi.rippleVisible,cK,rx,({theme:e})=>e.transitions.easing.easeInOut,xi.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,xi.child,xi.childLeaving,dK,rx,({theme:e})=>e.transitions.easing.easeInOut,xi.childPulsate,fK,({theme:e})=>e.transitions.easing.easeInOut),gK=P.forwardRef(function(t,n){const r=et({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a}=r,s=de(r,lK),[l,u]=P.useState([]),d=P.useRef(0),h=P.useRef(null);P.useEffect(()=>{h.current&&(h.current(),h.current=null)},[l]);const p=P.useRef(!1),g=tL(),m=P.useRef(null),y=P.useRef(null),b=P.useCallback(C=>{const{pulsate:R,rippleX:O,rippleY:T,rippleSize:A,cb:L}=C;u(I=>[...I,_.jsx(pK,{classes:{ripple:Pe(o.ripple,xi.ripple),rippleVisible:Pe(o.rippleVisible,xi.rippleVisible),ripplePulsate:Pe(o.ripplePulsate,xi.ripplePulsate),child:Pe(o.child,xi.child),childLeaving:Pe(o.childLeaving,xi.childLeaving),childPulsate:Pe(o.childPulsate,xi.childPulsate)},timeout:rx,pulsate:R,rippleX:O,rippleY:T,rippleSize:A},d.current)]),d.current+=1,h.current=L},[o]),x=P.useCallback((C={},R={},O=()=>{})=>{const{pulsate:T=!1,center:A=i||R.pulsate,fakeElement:L=!1}=R;if((C==null?void 0:C.type)==="mousedown"&&p.current){p.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(p.current=!0);const I=L?null:y.current,N=I?I.getBoundingClientRect():{width:0,height:0,left:0,top:0};let B,U,z;if(A||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)B=Math.round(N.width/2),U=Math.round(N.height/2);else{const{clientX:F,clientY:j}=C.touches&&C.touches.length>0?C.touches[0]:C;B=Math.round(F-N.left),U=Math.round(j-N.top)}if(A)z=Math.sqrt((2*N.width**2+N.height**2)/3),z%2===0&&(z+=1);else{const F=Math.max(Math.abs((I?I.clientWidth:0)-B),B)*2+2,j=Math.max(Math.abs((I?I.clientHeight:0)-U),U)*2+2;z=Math.sqrt(F**2+j**2)}C!=null&&C.touches?m.current===null&&(m.current=()=>{b({pulsate:T,rippleX:B,rippleY:U,rippleSize:z,cb:O})},g.start(uK,()=>{m.current&&(m.current(),m.current=null)})):b({pulsate:T,rippleX:B,rippleY:U,rippleSize:z,cb:O})},[i,b,g]),S=P.useCallback(()=>{x({},{pulsate:!0})},[x]),w=P.useCallback((C,R)=>{if(g.clear(),(C==null?void 0:C.type)==="touchend"&&m.current){m.current(),m.current=null,g.start(0,()=>{w(C,R)});return}m.current=null,u(O=>O.length>0?O.slice(1):O),h.current=R},[g]);return P.useImperativeHandle(n,()=>({pulsate:S,start:x,stop:w}),[S,x,w]),_.jsx(hK,M({className:Pe(xi.root,o.root,a),ref:y},s,{children:_.jsx(xf,{component:null,exit:!0,children:l})}))});function mK(e){return Be("MuiButtonBase",e)}const vK=Le("MuiButtonBase",["root","disabled","focusVisible"]),yK=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],bK=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=Ue({root:["root",t&&"disabled",n&&"focusVisible"]},mK,i);return n&&r&&(a.root+=` ${r}`),a},xK=H("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${vK.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),la=P.forwardRef(function(t,n){const r=et({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:h=!1,focusRipple:p=!1,LinkComponent:g="a",onBlur:m,onClick:y,onContextMenu:b,onDragLeave:x,onFocus:S,onFocusVisible:w,onKeyDown:C,onKeyUp:R,onMouseDown:O,onMouseLeave:T,onMouseUp:A,onTouchEnd:L,onTouchMove:I,onTouchStart:N,tabIndex:B=0,TouchRippleProps:U,touchRippleRef:z,type:F}=r,j=de(r,yK),K=P.useRef(null),V=P.useRef(null),J=vn(V,z),{isFocusVisibleRef:oe,onFocus:ce,onBlur:le,ref:Me}=nL(),[ve,ye]=P.useState(!1);u&&ve&&ye(!1),P.useImperativeHandle(i,()=>({focusVisible:()=>{ye(!0),K.current.focus()}}),[]);const[Ce,we]=P.useState(!1);P.useEffect(()=>{we(!0)},[]);const fe=Ce&&!d&&!u;P.useEffect(()=>{ve&&p&&!d&&Ce&&V.current.pulsate()},[d,p,ve,Ce]);function ue(Te,Ln,Kn=h){return qo(Vr=>(Ln&&Ln(Vr),!Kn&&V.current&&V.current[Te](Vr),!0))}const Ne=ue("start",O),We=ue("stop",b),be=ue("stop",x),pe=ue("stop",A),He=ue("stop",Te=>{ve&&Te.preventDefault(),T&&T(Te)}),qe=ue("start",N),tt=ue("stop",L),_t=ue("stop",I),Ct=ue("stop",Te=>{le(Te),oe.current===!1&&ye(!1),m&&m(Te)},!1),dn=qo(Te=>{K.current||(K.current=Te.currentTarget),ce(Te),oe.current===!0&&(ye(!0),w&&w(Te)),S&&S(Te)}),Yt=()=>{const Te=K.current;return l&&l!=="button"&&!(Te.tagName==="A"&&Te.href)},mt=P.useRef(!1),Q=qo(Te=>{p&&!mt.current&&ve&&V.current&&Te.key===" "&&(mt.current=!0,V.current.stop(Te,()=>{V.current.start(Te)})),Te.target===Te.currentTarget&&Yt()&&Te.key===" "&&Te.preventDefault(),C&&C(Te),Te.target===Te.currentTarget&&Yt()&&Te.key==="Enter"&&!u&&(Te.preventDefault(),y&&y(Te))}),ge=qo(Te=>{p&&Te.key===" "&&V.current&&ve&&!Te.defaultPrevented&&(mt.current=!1,V.current.stop(Te,()=>{V.current.pulsate(Te)})),R&&R(Te),y&&Te.target===Te.currentTarget&&Yt()&&Te.key===" "&&!Te.defaultPrevented&&y(Te)});let he=l;he==="button"&&(j.href||j.to)&&(he=g);const Oe={};he==="button"?(Oe.type=F===void 0?"button":F,Oe.disabled=u):(!j.href&&!j.to&&(Oe.role="button"),u&&(Oe["aria-disabled"]=u));const je=vn(n,Me,K),Je=M({},r,{centerRipple:o,component:l,disabled:u,disableRipple:d,disableTouchRipple:h,focusRipple:p,tabIndex:B,focusVisible:ve}),ze=bK(Je);return _.jsxs(xK,M({as:he,className:Pe(ze.root,s),ownerState:Je,onBlur:Ct,onClick:y,onContextMenu:We,onFocus:dn,onKeyDown:Q,onKeyUp:ge,onMouseDown:Ne,onMouseLeave:He,onMouseUp:pe,onDragLeave:be,onTouchEnd:tt,onTouchMove:_t,onTouchStart:qe,ref:je,tabIndex:u?-1:B,type:F},Oe,j,{children:[a,fe?_.jsx(gK,M({ref:J,center:o},U)):null]}))});function wK(e){return Be("MuiIconButton",e)}const _K=Le("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),CK=["edge","children","className","color","disabled","disableFocusRipple","size"],SK=e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${me(r)}`,i&&`edge${me(i)}`,`size${me(o)}`]};return Ue(a,wK,t)},TK=H(la,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${me(n.color)}`],n.edge&&t[`edge${me(n.edge)}`],t[`size${me(n.size)}`]]}})(({theme:e,ownerState:t})=>M({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:er(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return M({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&M({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":M({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:er(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${_K.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),La=P.forwardRef(function(t,n){const r=et({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:a,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:d="medium"}=r,h=de(r,CK),p=M({},r,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:d}),g=SK(p);return _.jsx(TK,M({className:Pe(g.root,a),centerRipple:!0,focusRipple:!u,disabled:l,ref:n},h,{ownerState:p,children:o}))});function EK(e){return Be("MuiTypography",e)}Le("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const OK=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],PK=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,e.align!=="inherit"&&`align${me(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return Ue(s,EK,a)},RK=H("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${me(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>M({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),WO={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},MK={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},AK=e=>MK[e]||e,Ye=P.forwardRef(function(t,n){const r=et({props:t,name:"MuiTypography"}),i=AK(r.color),o=yf(M({},r,{color:i})),{align:a="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:d=!1,paragraph:h=!1,variant:p="body1",variantMapping:g=WO}=o,m=de(o,OK),y=M({},o,{align:a,color:i,className:s,component:l,gutterBottom:u,noWrap:d,paragraph:h,variant:p,variantMapping:g}),b=l||(h?"p":g[p]||WO[p])||"span",x=PK(y);return _.jsx(RK,M({as:b,ref:n,ownerState:y,className:Pe(x.root,s)},m))});function DK(e){return Be("MuiAppBar",e)}Le("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const IK=["className","color","enableColorOnDark","position"],$K=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${me(t)}`,`position${me(n)}`]};return Ue(i,DK,r)},Vh=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,LK=H(Ya,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${me(n.position)}`],t[`color${me(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return M({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&M({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&M({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&M({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Vh(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Vh(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Vh(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Vh(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),kK=P.forwardRef(function(t,n){const r=et({props:t,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:a=!1,position:s="fixed"}=r,l=de(r,IK),u=M({},r,{color:o,position:s,enableColorOnDark:a}),d=$K(u);return _.jsx(LK,M({square:!0,component:"header",ownerState:u,elevation:4,className:Pe(d.root,i,s==="fixed"&&"mui-fixed"),ref:n},l))});var Zw={};Object.defineProperty(Zw,"__esModule",{value:!0});var sL=Zw.default=void 0,NK=jK(lt),FK=X$;function lL(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(lL=function(r){return r?n:t})(e)}function jK(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=lL(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function BK(e){return Object.keys(e).length===0}function UK(e=null){const t=NK.useContext(FK.ThemeContext);return!t||BK(t)?e:t}sL=Zw.default=UK;var jr="top",Ri="bottom",Mi="right",Br="left",Qw="auto",wf=[jr,Ri,Mi,Br],wu="start",Kd="end",WK="clippingParents",uL="viewport",Nc="popper",HK="reference",HO=wf.reduce(function(e,t){return e.concat([t+"-"+wu,t+"-"+Kd])},[]),cL=[].concat(wf,[Qw]).reduce(function(e,t){return e.concat([t,t+"-"+wu,t+"-"+Kd])},[]),zK="beforeRead",VK="read",GK="afterRead",qK="beforeMain",KK="main",YK="afterMain",XK="beforeWrite",ZK="write",QK="afterWrite",JK=[zK,VK,GK,qK,KK,YK,XK,ZK,QK];function _o(e){return e?(e.nodeName||"").toLowerCase():null}function ii(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function tl(e){var t=ii(e).Element;return e instanceof t||e instanceof Element}function Si(e){var t=ii(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Jw(e){if(typeof ShadowRoot>"u")return!1;var t=ii(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function eY(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Si(o)||!_o(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function tY(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!Si(i)||!_o(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const nY={name:"applyStyles",enabled:!0,phase:"write",fn:eY,effect:tY,requires:["computeStyles"]};function yo(e){return e.split("-")[0]}var Us=Math.max,Eg=Math.min,_u=Math.round;function ix(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function dL(){return!/^((?!chrome|android).)*safari/i.test(ix())}function Cu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Si(e)&&(i=e.offsetWidth>0&&_u(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&_u(r.height)/e.offsetHeight||1);var a=tl(e)?ii(e):window,s=a.visualViewport,l=!dL()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/i,d=(r.top+(l&&s?s.offsetTop:0))/o,h=r.width/i,p=r.height/o;return{width:h,height:p,top:d,right:u+h,bottom:d+p,left:u,x:u,y:d}}function e_(e){var t=Cu(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function fL(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Jw(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ta(e){return ii(e).getComputedStyle(e)}function rY(e){return["table","td","th"].indexOf(_o(e))>=0}function Xa(e){return((tl(e)?e.ownerDocument:e.document)||window.document).documentElement}function uv(e){return _o(e)==="html"?e:e.assignedSlot||e.parentNode||(Jw(e)?e.host:null)||Xa(e)}function zO(e){return!Si(e)||ta(e).position==="fixed"?null:e.offsetParent}function iY(e){var t=/firefox/i.test(ix()),n=/Trident/i.test(ix());if(n&&Si(e)){var r=ta(e);if(r.position==="fixed")return null}var i=uv(e);for(Jw(i)&&(i=i.host);Si(i)&&["html","body"].indexOf(_o(i))<0;){var o=ta(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function _f(e){for(var t=ii(e),n=zO(e);n&&rY(n)&&ta(n).position==="static";)n=zO(n);return n&&(_o(n)==="html"||_o(n)==="body"&&ta(n).position==="static")?t:n||iY(e)||t}function t_(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function bd(e,t,n){return Us(e,Eg(t,n))}function oY(e,t,n){var r=bd(e,t,n);return r>n?n:r}function hL(){return{top:0,right:0,bottom:0,left:0}}function pL(e){return Object.assign({},hL(),e)}function gL(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var aY=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,pL(typeof t!="number"?t:gL(t,wf))};function sY(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=yo(n.placement),l=t_(s),u=[Br,Mi].indexOf(s)>=0,d=u?"height":"width";if(!(!o||!a)){var h=aY(i.padding,n),p=e_(o),g=l==="y"?jr:Br,m=l==="y"?Ri:Mi,y=n.rects.reference[d]+n.rects.reference[l]-a[l]-n.rects.popper[d],b=a[l]-n.rects.reference[l],x=_f(o),S=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,w=y/2-b/2,C=h[g],R=S-p[d]-h[m],O=S/2-p[d]/2+w,T=bd(C,O,R),A=l;n.modifiersData[r]=(t={},t[A]=T,t.centerOffset=T-O,t)}}function lY(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||fL(t.elements.popper,i)&&(t.elements.arrow=i))}const uY={name:"arrow",enabled:!0,phase:"main",fn:sY,effect:lY,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Su(e){return e.split("-")[1]}var cY={top:"auto",right:"auto",bottom:"auto",left:"auto"};function dY(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:_u(n*i)/i||0,y:_u(r*i)/i||0}}function VO(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,h=e.isFixed,p=a.x,g=p===void 0?0:p,m=a.y,y=m===void 0?0:m,b=typeof d=="function"?d({x:g,y}):{x:g,y};g=b.x,y=b.y;var x=a.hasOwnProperty("x"),S=a.hasOwnProperty("y"),w=Br,C=jr,R=window;if(u){var O=_f(n),T="clientHeight",A="clientWidth";if(O===ii(n)&&(O=Xa(n),ta(O).position!=="static"&&s==="absolute"&&(T="scrollHeight",A="scrollWidth")),O=O,i===jr||(i===Br||i===Mi)&&o===Kd){C=Ri;var L=h&&O===R&&R.visualViewport?R.visualViewport.height:O[T];y-=L-r.height,y*=l?1:-1}if(i===Br||(i===jr||i===Ri)&&o===Kd){w=Mi;var I=h&&O===R&&R.visualViewport?R.visualViewport.width:O[A];g-=I-r.width,g*=l?1:-1}}var N=Object.assign({position:s},u&&cY),B=d===!0?dY({x:g,y},ii(n)):{x:g,y};if(g=B.x,y=B.y,l){var U;return Object.assign({},N,(U={},U[C]=S?"0":"",U[w]=x?"0":"",U.transform=(R.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",U))}return Object.assign({},N,(t={},t[C]=S?y+"px":"",t[w]=x?g+"px":"",t.transform="",t))}function fY(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:yo(t.placement),variation:Su(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,VO(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,VO(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const hY={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:fY,data:{}};var Gh={passive:!0};function pY(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=ii(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(d){d.addEventListener("scroll",n.update,Gh)}),s&&l.addEventListener("resize",n.update,Gh),function(){o&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Gh)}),s&&l.removeEventListener("resize",n.update,Gh)}}const gY={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:pY,data:{}};var mY={left:"right",right:"left",bottom:"top",top:"bottom"};function Hp(e){return e.replace(/left|right|bottom|top/g,function(t){return mY[t]})}var vY={start:"end",end:"start"};function GO(e){return e.replace(/start|end/g,function(t){return vY[t]})}function n_(e){var t=ii(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function r_(e){return Cu(Xa(e)).left+n_(e).scrollLeft}function yY(e,t){var n=ii(e),r=Xa(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=dL();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+r_(e),y:l}}function bY(e){var t,n=Xa(e),r=n_(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Us(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Us(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+r_(e),l=-r.scrollTop;return ta(i||n).direction==="rtl"&&(s+=Us(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function i_(e){var t=ta(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function mL(e){return["html","body","#document"].indexOf(_o(e))>=0?e.ownerDocument.body:Si(e)&&i_(e)?e:mL(uv(e))}function xd(e,t){var n;t===void 0&&(t=[]);var r=mL(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=ii(r),a=i?[o].concat(o.visualViewport||[],i_(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(xd(uv(a)))}function ox(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function xY(e,t){var n=Cu(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function qO(e,t,n){return t===uL?ox(yY(e,n)):tl(t)?xY(t,n):ox(bY(Xa(e)))}function wY(e){var t=xd(uv(e)),n=["absolute","fixed"].indexOf(ta(e).position)>=0,r=n&&Si(e)?_f(e):e;return tl(r)?t.filter(function(i){return tl(i)&&fL(i,r)&&_o(i)!=="body"}):[]}function _Y(e,t,n,r){var i=t==="clippingParents"?wY(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var d=qO(e,u,r);return l.top=Us(d.top,l.top),l.right=Eg(d.right,l.right),l.bottom=Eg(d.bottom,l.bottom),l.left=Us(d.left,l.left),l},qO(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function vL(e){var t=e.reference,n=e.element,r=e.placement,i=r?yo(r):null,o=r?Su(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case jr:l={x:a,y:t.y-n.height};break;case Ri:l={x:a,y:t.y+t.height};break;case Mi:l={x:t.x+t.width,y:s};break;case Br:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?t_(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(o){case wu:l[u]=l[u]-(t[d]/2-n[d]/2);break;case Kd:l[u]=l[u]+(t[d]/2-n[d]/2);break}}return l}function Yd(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?WK:s,u=n.rootBoundary,d=u===void 0?uL:u,h=n.elementContext,p=h===void 0?Nc:h,g=n.altBoundary,m=g===void 0?!1:g,y=n.padding,b=y===void 0?0:y,x=pL(typeof b!="number"?b:gL(b,wf)),S=p===Nc?HK:Nc,w=e.rects.popper,C=e.elements[m?S:p],R=_Y(tl(C)?C:C.contextElement||Xa(e.elements.popper),l,d,a),O=Cu(e.elements.reference),T=vL({reference:O,element:w,placement:i}),A=ox(Object.assign({},w,T)),L=p===Nc?A:O,I={top:R.top-L.top+x.top,bottom:L.bottom-R.bottom+x.bottom,left:R.left-L.left+x.left,right:L.right-R.right+x.right},N=e.modifiersData.offset;if(p===Nc&&N){var B=N[i];Object.keys(I).forEach(function(U){var z=[Mi,Ri].indexOf(U)>=0?1:-1,F=[jr,Ri].indexOf(U)>=0?"y":"x";I[U]+=B[F]*z})}return I}function CY(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?cL:l,d=Su(r),h=d?s?HO:HO.filter(function(m){return Su(m)===d}):wf,p=h.filter(function(m){return u.indexOf(m)>=0});p.length===0&&(p=h);var g=p.reduce(function(m,y){return m[y]=Yd(e,{placement:y,boundary:i,rootBoundary:o,padding:a})[yo(y)],m},{});return Object.keys(g).sort(function(m,y){return g[m]-g[y]})}function SY(e){if(yo(e)===Qw)return[];var t=Hp(e);return[GO(e),t,GO(t)]}function TY(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,d=n.boundary,h=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,m=g===void 0?!0:g,y=n.allowedAutoPlacements,b=t.options.placement,x=yo(b),S=x===b,w=l||(S||!m?[Hp(b)]:SY(b)),C=[b].concat(w).reduce(function(ve,ye){return ve.concat(yo(ye)===Qw?CY(t,{placement:ye,boundary:d,rootBoundary:h,padding:u,flipVariations:m,allowedAutoPlacements:y}):ye)},[]),R=t.rects.reference,O=t.rects.popper,T=new Map,A=!0,L=C[0],I=0;I<C.length;I++){var N=C[I],B=yo(N),U=Su(N)===wu,z=[jr,Ri].indexOf(B)>=0,F=z?"width":"height",j=Yd(t,{placement:N,boundary:d,rootBoundary:h,altBoundary:p,padding:u}),K=z?U?Mi:Br:U?Ri:jr;R[F]>O[F]&&(K=Hp(K));var V=Hp(K),J=[];if(o&&J.push(j[B]<=0),s&&J.push(j[K]<=0,j[V]<=0),J.every(function(ve){return ve})){L=N,A=!1;break}T.set(N,J)}if(A)for(var oe=m?3:1,ce=function(ye){var Ce=C.find(function(we){var fe=T.get(we);if(fe)return fe.slice(0,ye).every(function(ue){return ue})});if(Ce)return L=Ce,"break"},le=oe;le>0;le--){var Me=ce(le);if(Me==="break")break}t.placement!==L&&(t.modifiersData[r]._skip=!0,t.placement=L,t.reset=!0)}}const EY={name:"flip",enabled:!0,phase:"main",fn:TY,requiresIfExists:["offset"],data:{_skip:!1}};function KO(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function YO(e){return[jr,Mi,Ri,Br].some(function(t){return e[t]>=0})}function OY(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Yd(t,{elementContext:"reference"}),s=Yd(t,{altBoundary:!0}),l=KO(a,r),u=KO(s,i,o),d=YO(l),h=YO(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}const PY={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:OY};function RY(e,t,n){var r=yo(e),i=[Br,jr].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Br,Mi].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function MY(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=cL.reduce(function(d,h){return d[h]=RY(h,t.rects,o),d},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const AY={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:MY};function DY(e){var t=e.state,n=e.name;t.modifiersData[n]=vL({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const IY={name:"popperOffsets",enabled:!0,phase:"read",fn:DY,data:{}};function $Y(e){return e==="x"?"y":"x"}function LY(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,d=n.altBoundary,h=n.padding,p=n.tether,g=p===void 0?!0:p,m=n.tetherOffset,y=m===void 0?0:m,b=Yd(t,{boundary:l,rootBoundary:u,padding:h,altBoundary:d}),x=yo(t.placement),S=Su(t.placement),w=!S,C=t_(x),R=$Y(C),O=t.modifiersData.popperOffsets,T=t.rects.reference,A=t.rects.popper,L=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,I=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(O){if(o){var U,z=C==="y"?jr:Br,F=C==="y"?Ri:Mi,j=C==="y"?"height":"width",K=O[C],V=K+b[z],J=K-b[F],oe=g?-A[j]/2:0,ce=S===wu?T[j]:A[j],le=S===wu?-A[j]:-T[j],Me=t.elements.arrow,ve=g&&Me?e_(Me):{width:0,height:0},ye=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:hL(),Ce=ye[z],we=ye[F],fe=bd(0,T[j],ve[j]),ue=w?T[j]/2-oe-fe-Ce-I.mainAxis:ce-fe-Ce-I.mainAxis,Ne=w?-T[j]/2+oe+fe+we+I.mainAxis:le+fe+we+I.mainAxis,We=t.elements.arrow&&_f(t.elements.arrow),be=We?C==="y"?We.clientTop||0:We.clientLeft||0:0,pe=(U=N==null?void 0:N[C])!=null?U:0,He=K+ue-pe-be,qe=K+Ne-pe,tt=bd(g?Eg(V,He):V,K,g?Us(J,qe):J);O[C]=tt,B[C]=tt-K}if(s){var _t,Ct=C==="x"?jr:Br,dn=C==="x"?Ri:Mi,Yt=O[R],mt=R==="y"?"height":"width",Q=Yt+b[Ct],ge=Yt-b[dn],he=[jr,Br].indexOf(x)!==-1,Oe=(_t=N==null?void 0:N[R])!=null?_t:0,je=he?Q:Yt-T[mt]-A[mt]-Oe+I.altAxis,Je=he?Yt+T[mt]+A[mt]-Oe-I.altAxis:ge,ze=g&&he?oY(je,Yt,Je):bd(g?je:Q,Yt,g?Je:ge);O[R]=ze,B[R]=ze-Yt}t.modifiersData[r]=B}}const kY={name:"preventOverflow",enabled:!0,phase:"main",fn:LY,requiresIfExists:["offset"]};function NY(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function FY(e){return e===ii(e)||!Si(e)?n_(e):NY(e)}function jY(e){var t=e.getBoundingClientRect(),n=_u(t.width)/e.offsetWidth||1,r=_u(t.height)/e.offsetHeight||1;return n!==1||r!==1}function BY(e,t,n){n===void 0&&(n=!1);var r=Si(t),i=Si(t)&&jY(t),o=Xa(t),a=Cu(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((_o(t)!=="body"||i_(o))&&(s=FY(t)),Si(t)?(l=Cu(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=r_(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function UY(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function WY(e){var t=UY(e);return JK.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function HY(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function zY(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var XO={placement:"bottom",modifiers:[],strategy:"absolute"};function ZO(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function VY(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?XO:i;return function(s,l,u){u===void 0&&(u=o);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},XO,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},h=[],p=!1,g={state:d,setOptions:function(x){var S=typeof x=="function"?x(d.options):x;y(),d.options=Object.assign({},o,d.options,S),d.scrollParents={reference:tl(s)?xd(s):s.contextElement?xd(s.contextElement):[],popper:xd(l)};var w=WY(zY([].concat(r,d.options.modifiers)));return d.orderedModifiers=w.filter(function(C){return C.enabled}),m(),g.update()},forceUpdate:function(){if(!p){var x=d.elements,S=x.reference,w=x.popper;if(ZO(S,w)){d.rects={reference:BY(S,_f(w),d.options.strategy==="fixed"),popper:e_(w)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(I){return d.modifiersData[I.name]=Object.assign({},I.data)});for(var C=0;C<d.orderedModifiers.length;C++){if(d.reset===!0){d.reset=!1,C=-1;continue}var R=d.orderedModifiers[C],O=R.fn,T=R.options,A=T===void 0?{}:T,L=R.name;typeof O=="function"&&(d=O({state:d,options:A,name:L,instance:g})||d)}}}},update:HY(function(){return new Promise(function(b){g.forceUpdate(),b(d)})}),destroy:function(){y(),p=!0}};if(!ZO(s,l))return g;g.setOptions(u).then(function(b){!p&&u.onFirstUpdate&&u.onFirstUpdate(b)});function m(){d.orderedModifiers.forEach(function(b){var x=b.name,S=b.options,w=S===void 0?{}:S,C=b.effect;if(typeof C=="function"){var R=C({state:d,name:x,instance:g,options:w}),O=function(){};h.push(R||O)}})}function y(){h.forEach(function(b){return b()}),h=[]}return g}}var GY=[gY,IY,hY,nY,AY,EY,kY,uY,PY],qY=VY({defaultModifiers:GY});function KY(e){return typeof e=="function"?e():e}const yL=P.forwardRef(function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[a,s]=P.useState(null),l=vn(P.isValidElement(r)?Ku(r):null,n);if(Ki(()=>{o||s(KY(i)||document.body)},[i,o]),Ki(()=>{if(a&&!o)return Cg(n,a),()=>{Cg(n,null)}},[n,a,o]),o){if(P.isValidElement(r)){const u={ref:l};return P.cloneElement(r,u)}return _.jsx(P.Fragment,{children:r})}return _.jsx(P.Fragment,{children:a&&bI.createPortal(r,a)})});function YY(e){return Be("MuiPopper",e)}Le("MuiPopper",["root"]);const XY=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],ZY=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function QY(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function ax(e){return typeof e=="function"?e():e}function JY(e){return e.nodeType!==void 0}const eX=e=>{const{classes:t}=e;return Ue({root:["root"]},YY,t)},tX={},nX=P.forwardRef(function(t,n){var r;const{anchorEl:i,children:o,direction:a,disablePortal:s,modifiers:l,open:u,placement:d,popperOptions:h,popperRef:p,slotProps:g={},slots:m={},TransitionProps:y}=t,b=de(t,XY),x=P.useRef(null),S=vn(x,n),w=P.useRef(null),C=vn(w,p),R=P.useRef(C);Ki(()=>{R.current=C},[C]),P.useImperativeHandle(p,()=>w.current,[]);const O=QY(d,a),[T,A]=P.useState(O),[L,I]=P.useState(ax(i));P.useEffect(()=>{w.current&&w.current.forceUpdate()}),P.useEffect(()=>{i&&I(ax(i))},[i]),Ki(()=>{if(!L||!u)return;const F=V=>{A(V.placement)};let j=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:V})=>{F(V)}}];l!=null&&(j=j.concat(l)),h&&h.modifiers!=null&&(j=j.concat(h.modifiers));const K=qY(L,x.current,M({placement:O},h,{modifiers:j}));return R.current(K),()=>{K.destroy(),R.current(null)}},[L,s,l,u,h,O]);const N={placement:T};y!==null&&(N.TransitionProps=y);const B=eX(t),U=(r=m.root)!=null?r:"div",z=el({elementType:U,externalSlotProps:g.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:S},ownerState:t,className:B.root});return _.jsx(U,M({},z,{children:typeof o=="function"?o(N):o}))}),rX=P.forwardRef(function(t,n){const{anchorEl:r,children:i,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:d,placement:h="bottom",popperOptions:p=tX,popperRef:g,style:m,transition:y=!1,slotProps:b={},slots:x={}}=t,S=de(t,ZY),[w,C]=P.useState(!0),R=()=>{C(!1)},O=()=>{C(!0)};if(!l&&!d&&(!y||w))return null;let T;if(o)T=o;else if(r){const I=ax(r);T=I&&JY(I)?qn(I).body:qn(null).body}const A=!d&&l&&(!y||w)?"none":void 0,L=y?{in:d,onEnter:R,onExited:O}:void 0;return _.jsx(yL,{disablePortal:s,container:T,children:_.jsx(nX,M({anchorEl:r,direction:a,disablePortal:s,modifiers:u,ref:n,open:y?!w:d,placement:h,popperOptions:p,popperRef:g,slotProps:b,slots:x},S,{style:M({position:"fixed",top:0,left:0,display:A},m),TransitionProps:L,children:i}))})}),iX=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],oX=H(rX,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),aX=P.forwardRef(function(t,n){var r;const i=sL(),o=et({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:u,container:d,disablePortal:h,keepMounted:p,modifiers:g,open:m,placement:y,popperOptions:b,popperRef:x,transition:S,slots:w,slotProps:C}=o,R=de(o,iX),O=(r=w==null?void 0:w.root)!=null?r:l==null?void 0:l.Root,T=M({anchorEl:a,container:d,disablePortal:h,keepMounted:p,modifiers:g,open:m,placement:y,popperOptions:b,popperRef:x,transition:S},R);return _.jsx(oX,M({as:s,direction:i==null?void 0:i.direction,slots:{root:O},slotProps:C??u},T,{ref:n}))}),sX=["onChange","maxRows","minRows","style","value"];function qh(e){return parseInt(e,10)||0}const lX={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function uX(e){for(const t in e)return!1;return!0}function QO(e){return uX(e)||e.outerHeightStyle===0&&!e.overflowing}const cX=P.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:o=1,style:a,value:s}=t,l=de(t,sX),{current:u}=P.useRef(s!=null),d=P.useRef(null),h=vn(n,d),p=P.useRef(null),g=P.useRef(null),m=P.useCallback(()=>{const w=d.current,C=g.current;if(!w||!C)return;const O=wo(w).getComputedStyle(w);if(O.width==="0px")return{outerHeightStyle:0,overflowing:!1};C.style.width=O.width,C.value=w.value||t.placeholder||"x",C.value.slice(-1)===`
|
|
126
|
+
`&&(C.value+=" ");const T=O.boxSizing,A=qh(O.paddingBottom)+qh(O.paddingTop),L=qh(O.borderBottomWidth)+qh(O.borderTopWidth),I=C.scrollHeight;C.value="x";const N=C.scrollHeight;let B=I;o&&(B=Math.max(Number(o)*N,B)),i&&(B=Math.min(Number(i)*N,B)),B=Math.max(B,N);const U=B+(T==="border-box"?A+L:0),z=Math.abs(B-I)<=1;return{outerHeightStyle:U,overflowing:z}},[i,o,t.placeholder]),y=qo(()=>{const w=d.current,C=m();if(!w||!C||QO(C))return!1;const R=C.outerHeightStyle;return p.current!=null&&p.current!==R}),b=P.useCallback(()=>{const w=d.current,C=m();if(!w||!C||QO(C))return;const R=C.outerHeightStyle;p.current!==R&&(p.current=R,w.style.height=`${R}px`),w.style.overflow=C.overflowing?"hidden":""},[m]),x=P.useRef(-1);Ki(()=>{const w=av(b),C=d==null?void 0:d.current;if(!C)return;const R=wo(C);R.addEventListener("resize",w);let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(()=>{y()&&(O.unobserve(C),cancelAnimationFrame(x.current),b(),x.current=requestAnimationFrame(()=>{O.observe(C)}))}),O.observe(C)),()=>{w.clear(),cancelAnimationFrame(x.current),R.removeEventListener("resize",w),O&&O.disconnect()}},[m,b,y]),Ki(()=>{b()});const S=w=>{u||b(),r&&r(w)};return _.jsxs(P.Fragment,{children:[_.jsx("textarea",M({value:s,onChange:S,ref:h,rows:o,style:a},l)),_.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:g,tabIndex:-1,style:M({},lX.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function Za({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const cv=P.createContext(void 0);function Co(){return P.useContext(cv)}function bL(e){return _.jsx(E$,M({},e,{defaultTheme:ov,themeId:Xs}))}function JO(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Og(e,t=!1){return e&&(JO(e.value)&&e.value!==""||t&&JO(e.defaultValue)&&e.defaultValue!=="")}function dX(e){return e.startAdornment}function fX(e){return Be("MuiInputBase",e)}const Tu=Le("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),hX=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],dv=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${me(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},fv=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},pX=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:d,readOnly:h,size:p,startAdornment:g,type:m}=e,y={root:["root",`color${me(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&p!=="medium"&&`size${me(p)}`,d&&"multiline",g&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",m==="search"&&"inputTypeSearch",d&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",g&&"inputAdornedStart",o&&"inputAdornedEnd",h&&"readOnly"]};return Ue(y,fX,t)},hv=H("div",{name:"MuiInputBase",slot:"Root",overridesResolver:dv})(({theme:e,ownerState:t})=>M({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Tu.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&M({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),pv=H("input",{name:"MuiInputBase",slot:"Input",overridesResolver:fv})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=M({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return M({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Tu.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Tu.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),gX=_.jsx(bL,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),gv=P.forwardRef(function(t,n){var r;const i=et({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:l,components:u={},componentsProps:d={},defaultValue:h,disabled:p,disableInjectingGlobalStyles:g,endAdornment:m,fullWidth:y=!1,id:b,inputComponent:x="input",inputProps:S={},inputRef:w,maxRows:C,minRows:R,multiline:O=!1,name:T,onBlur:A,onChange:L,onClick:I,onFocus:N,onKeyDown:B,onKeyUp:U,placeholder:z,readOnly:F,renderSuffix:j,rows:K,slotProps:V={},slots:J={},startAdornment:oe,type:ce="text",value:le}=i,Me=de(i,hX),ve=S.value!=null?S.value:le,{current:ye}=P.useRef(ve!=null),Ce=P.useRef(),we=P.useCallback(ze=>{},[]),fe=vn(Ce,w,S.ref,we),[ue,Ne]=P.useState(!1),We=Co(),be=Za({props:i,muiFormControl:We,states:["color","disabled","error","hiddenLabel","size","required","filled"]});be.focused=We?We.focused:ue,P.useEffect(()=>{!We&&p&&ue&&(Ne(!1),A&&A())},[We,p,ue,A]);const pe=We&&We.onFilled,He=We&&We.onEmpty,qe=P.useCallback(ze=>{Og(ze)?pe&&pe():He&&He()},[pe,He]);Ki(()=>{ye&&qe({value:ve})},[ve,qe,ye]);const tt=ze=>{if(be.disabled){ze.stopPropagation();return}N&&N(ze),S.onFocus&&S.onFocus(ze),We&&We.onFocus?We.onFocus(ze):Ne(!0)},_t=ze=>{A&&A(ze),S.onBlur&&S.onBlur(ze),We&&We.onBlur?We.onBlur(ze):Ne(!1)},Ct=(ze,...Te)=>{if(!ye){const Ln=ze.target||Ce.current;if(Ln==null)throw new Error(bu(1));qe({value:Ln.value})}S.onChange&&S.onChange(ze,...Te),L&&L(ze,...Te)};P.useEffect(()=>{qe(Ce.current)},[]);const dn=ze=>{Ce.current&&ze.currentTarget===ze.target&&Ce.current.focus(),I&&I(ze)};let Yt=x,mt=S;O&&Yt==="input"&&(K?mt=M({type:void 0,minRows:K,maxRows:K},mt):mt=M({type:void 0,maxRows:C,minRows:R},mt),Yt=cX);const Q=ze=>{qe(ze.animationName==="mui-auto-fill-cancel"?Ce.current:{value:"x"})};P.useEffect(()=>{We&&We.setAdornedStart(!!oe)},[We,oe]);const ge=M({},i,{color:be.color||"primary",disabled:be.disabled,endAdornment:m,error:be.error,focused:be.focused,formControl:We,fullWidth:y,hiddenLabel:be.hiddenLabel,multiline:O,size:be.size,startAdornment:oe,type:ce}),he=pX(ge),Oe=J.root||u.Root||hv,je=V.root||d.root||{},Je=J.input||u.Input||pv;return mt=M({},mt,(r=V.input)!=null?r:d.input),_.jsxs(P.Fragment,{children:[!g&&gX,_.jsxs(Oe,M({},je,!Gd(Oe)&&{ownerState:M({},ge,je.ownerState)},{ref:n,onClick:dn},Me,{className:Pe(he.root,je.className,l,F&&"MuiInputBase-readOnly"),children:[oe,_.jsx(cv.Provider,{value:null,children:_.jsx(Je,M({ownerState:ge,"aria-invalid":be.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:h,disabled:be.disabled,id:b,onAnimationStart:Q,name:T,placeholder:z,readOnly:F,required:be.required,rows:K,value:ve,onKeyDown:B,onKeyUp:U,type:ce},mt,!Gd(Je)&&{as:Yt,ownerState:M({},ge,mt.ownerState)},{ref:fe,className:Pe(he.input,mt.className,F&&"MuiInputBase-readOnly"),onBlur:_t,onChange:Ct,onFocus:tt}))}),m,j?j(M({},be,{startAdornment:oe})):null]}))]})});function mX(e){return Be("MuiInput",e)}const Fc=M({},Tu,Le("MuiInput",["root","underline","input"]));function vX(e){return Be("MuiOutlinedInput",e)}const Bo=M({},Tu,Le("MuiOutlinedInput",["root","notchedOutline","input"]));function yX(e){return Be("MuiFilledInput",e)}const ms=M({},Tu,Le("MuiFilledInput",["root","underline","input"])),bX=$n(_.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),xX=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],wX={entering:{opacity:1},entered:{opacity:1}},mv=P.forwardRef(function(t,n){const r=or(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:u,onEnter:d,onEntered:h,onEntering:p,onExit:g,onExited:m,onExiting:y,style:b,timeout:x=i,TransitionComponent:S=Li}=t,w=de(t,xX),C=P.useRef(null),R=vn(C,Ku(s),n),O=z=>F=>{if(z){const j=C.current;F===void 0?z(j):z(j,F)}},T=O(p),A=O((z,F)=>{Xw(z);const j=xu({style:b,timeout:x,easing:l},{mode:"enter"});z.style.webkitTransition=r.transitions.create("opacity",j),z.style.transition=r.transitions.create("opacity",j),d&&d(z,F)}),L=O(h),I=O(y),N=O(z=>{const F=xu({style:b,timeout:x,easing:l},{mode:"exit"});z.style.webkitTransition=r.transitions.create("opacity",F),z.style.transition=r.transitions.create("opacity",F),g&&g(z)}),B=O(m),U=z=>{o&&o(C.current,z)};return _.jsx(S,M({appear:a,in:u,nodeRef:C,onEnter:A,onEntered:L,onEntering:T,onExit:N,onExited:B,onExiting:I,addEndListener:U,timeout:x},w,{children:(z,F)=>P.cloneElement(s,M({style:M({opacity:0,visibility:z==="exited"&&!u?"hidden":void 0},wX[z],b,s.props.style),ref:R},F))}))});function _X(e){return Be("MuiBackdrop",e)}Le("MuiBackdrop",["root","invisible"]);const CX=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],SX=e=>{const{classes:t,invisible:n}=e;return Ue({root:["root",n&&"invisible"]},_X,t)},TX=H("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>M({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),xL=P.forwardRef(function(t,n){var r,i,o;const a=et({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:d={},componentsProps:h={},invisible:p=!1,open:g,slotProps:m={},slots:y={},TransitionComponent:b=mv,transitionDuration:x}=a,S=de(a,CX),w=M({},a,{component:u,invisible:p}),C=SX(w),R=(r=m.root)!=null?r:h.root;return _.jsx(b,M({in:g,timeout:x},S,{children:_.jsx(TX,M({"aria-hidden":!0},R,{as:(i=(o=y.root)!=null?o:d.Root)!=null?i:u,className:Pe(C.root,l,R==null?void 0:R.className),ownerState:M({},w,R==null?void 0:R.ownerState),classes:C,ref:n,children:s}))}))}),EX=Le("MuiBox",["root"]),OX=qw(),Tn=x7({themeId:Xs,defaultTheme:OX,defaultClassName:EX.root,generateClassName:Hw.generate});function PX(e){return Be("MuiButton",e)}const Kh=Le("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),wL=P.createContext({}),RX=P.createContext(void 0),MX=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],AX=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e,s={root:["root",o,`${o}${me(t)}`,`size${me(i)}`,`${o}Size${me(i)}`,`color${me(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${me(i)}`],endIcon:["icon","endIcon",`iconSize${me(i)}`]},l=Ue(s,PX,a);return M({},a,l)},_L=e=>M({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),DX=H(la,{shouldForwardProp:e=>vr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${me(n.color)}`],t[`size${me(n.size)}`],t[`${n.variant}Size${me(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return M({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":M({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:er(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:er(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:er(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":M({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Kh.focusVisible}`]:M({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Kh.disabled}`]:M({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${er(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Kh.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Kh.disabled}`]:{boxShadow:"none"}}),IX=H("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${me(n.size)}`]]}})(({ownerState:e})=>M({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},_L(e))),$X=H("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${me(n.size)}`]]}})(({ownerState:e})=>M({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},_L(e))),Ko=P.forwardRef(function(t,n){const r=P.useContext(wL),i=P.useContext(RX),o=iL(r,t),a=et({props:o,name:"MuiButton"}),{children:s,color:l="primary",component:u="button",className:d,disabled:h=!1,disableElevation:p=!1,disableFocusRipple:g=!1,endIcon:m,focusVisibleClassName:y,fullWidth:b=!1,size:x="medium",startIcon:S,type:w,variant:C="text"}=a,R=de(a,MX),O=M({},a,{color:l,component:u,disabled:h,disableElevation:p,disableFocusRipple:g,fullWidth:b,size:x,type:w,variant:C}),T=AX(O),A=S&&_.jsx(IX,{className:T.startIcon,ownerState:O,children:S}),L=m&&_.jsx($X,{className:T.endIcon,ownerState:O,children:m}),I=i||"";return _.jsxs(DX,M({ownerState:O,className:Pe(r.className,T.root,d,I),component:u,disabled:h,focusRipple:!g,focusVisibleClassName:Pe(T.focusVisible,y),ref:n,type:w},R,{classes:T,children:[A,s,L]}))});function LX(e){return Be("MuiCard",e)}Le("MuiCard",["root"]);const kX=["className","raised"],NX=e=>{const{classes:t}=e;return Ue({root:["root"]},LX,t)},FX=H(Ya,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),o_=P.forwardRef(function(t,n){const r=et({props:t,name:"MuiCard"}),{className:i,raised:o=!1}=r,a=de(r,kX),s=M({},r,{raised:o}),l=NX(s);return _.jsx(FX,M({className:Pe(l.root,i),elevation:o?8:void 0,ref:n,ownerState:s},a))});function jX(e){return Be("PrivateSwitchBase",e)}Le("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const BX=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],UX=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${me(i)}`],input:["input"]};return Ue(o,jX,t)},WX=H(la,{name:"MuiSwitchBase"})(({ownerState:e})=>M({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),HX=H("input",{name:"MuiSwitchBase",shouldForwardProp:vr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),CL=P.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:o,className:a,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:d=!1,icon:h,id:p,inputProps:g,inputRef:m,name:y,onBlur:b,onChange:x,onFocus:S,readOnly:w,required:C=!1,tabIndex:R,type:O,value:T}=t,A=de(t,BX),[L,I]=Sg({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),N=Co(),B=J=>{S&&S(J),N&&N.onFocus&&N.onFocus(J)},U=J=>{b&&b(J),N&&N.onBlur&&N.onBlur(J)},z=J=>{if(J.nativeEvent.defaultPrevented)return;const oe=J.target.checked;I(oe),x&&x(J,oe)};let F=l;N&&typeof F>"u"&&(F=N.disabled);const j=O==="checkbox"||O==="radio",K=M({},t,{checked:L,disabled:F,disableFocusRipple:u,edge:d}),V=UX(K);return _.jsxs(WX,M({component:"span",className:Pe(V.root,a),centerRipple:!0,focusRipple:!u,disabled:F,tabIndex:null,role:void 0,onFocus:B,onBlur:U,ownerState:K,ref:n},A,{children:[_.jsx(HX,M({autoFocus:r,checked:i,defaultChecked:s,className:V.input,disabled:F,id:j?p:void 0,name:y,onChange:z,readOnly:w,ref:m,required:C,ownerState:K,tabIndex:R,type:O},O==="checkbox"&&T===void 0?{}:{value:T},g)),L?o:h]}))}),zX=$n(_.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),VX=$n(_.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),GX=$n(_.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function qX(e){return Be("MuiCheckbox",e)}const Ib=Le("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),KX=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],YX=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:["root",n&&"indeterminate",`color${me(r)}`,`size${me(i)}`]},a=Ue(o,qX,t);return M({},t,a)},XX=H(CL,{shouldForwardProp:e=>vr(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${me(n.size)}`],n.color!=="default"&&t[`color${me(n.color)}`]]}})(({theme:e,ownerState:t})=>M({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:er(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Ib.checked}, &.${Ib.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Ib.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),ZX=_.jsx(VX,{}),QX=_.jsx(zX,{}),JX=_.jsx(GX,{}),SL=P.forwardRef(function(t,n){var r,i;const o=et({props:t,name:"MuiCheckbox"}),{checkedIcon:a=ZX,color:s="primary",icon:l=QX,indeterminate:u=!1,indeterminateIcon:d=JX,inputProps:h,size:p="medium",className:g}=o,m=de(o,KX),y=u?d:l,b=u?d:a,x=M({},o,{color:s,indeterminate:u,size:p}),S=YX(x);return _.jsx(XX,M({type:"checkbox",inputProps:M({"data-indeterminate":u},h),icon:P.cloneElement(y,{fontSize:(r=y.props.fontSize)!=null?r:p}),checkedIcon:P.cloneElement(b,{fontSize:(i=b.props.fontSize)!=null?i:p}),ownerState:x,ref:n,className:Pe(S.root,g)},m,{classes:S}))});function eZ(e){return Be("MuiCircularProgress",e)}Le("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const tZ=["className","color","disableShrink","size","style","thickness","value","variant"];let vv=e=>e,eP,tP,nP,rP;const Ea=44,nZ=Xi(eP||(eP=vv`
|
|
127
|
+
0% {
|
|
128
|
+
transform: rotate(0deg);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
100% {
|
|
132
|
+
transform: rotate(360deg);
|
|
133
|
+
}
|
|
134
|
+
`)),rZ=Xi(tP||(tP=vv`
|
|
135
|
+
0% {
|
|
136
|
+
stroke-dasharray: 1px, 200px;
|
|
137
|
+
stroke-dashoffset: 0;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
50% {
|
|
141
|
+
stroke-dasharray: 100px, 200px;
|
|
142
|
+
stroke-dashoffset: -15px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
100% {
|
|
146
|
+
stroke-dasharray: 100px, 200px;
|
|
147
|
+
stroke-dashoffset: -125px;
|
|
148
|
+
}
|
|
149
|
+
`)),iZ=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${me(r)}`],svg:["svg"],circle:["circle",`circle${me(n)}`,i&&"circleDisableShrink"]};return Ue(o,eZ,t)},oZ=H("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${me(n.color)}`]]}})(({ownerState:e,theme:t})=>M({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Oi(nP||(nP=vv`
|
|
150
|
+
animation: ${0} 1.4s linear infinite;
|
|
151
|
+
`),nZ)),aZ=H("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),sZ=H("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${me(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>M({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Oi(rP||(rP=vv`
|
|
152
|
+
animation: ${0} 1.4s ease-in-out infinite;
|
|
153
|
+
`),rZ)),yv=P.forwardRef(function(t,n){const r=et({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:a=!1,size:s=40,style:l,thickness:u=3.6,value:d=0,variant:h="indeterminate"}=r,p=de(r,tZ),g=M({},r,{color:o,disableShrink:a,size:s,thickness:u,value:d,variant:h}),m=iZ(g),y={},b={},x={};if(h==="determinate"){const S=2*Math.PI*((Ea-u)/2);y.strokeDasharray=S.toFixed(3),x["aria-valuenow"]=Math.round(d),y.strokeDashoffset=`${((100-d)/100*S).toFixed(3)}px`,b.transform="rotate(-90deg)"}return _.jsx(oZ,M({className:Pe(m.root,i),style:M({width:s,height:s},b,l),ownerState:g,ref:n,role:"progressbar"},x,p,{children:_.jsx(aZ,{className:m.svg,ownerState:g,viewBox:`${Ea/2} ${Ea/2} ${Ea} ${Ea}`,children:_.jsx(sZ,{className:m.circle,style:y,ownerState:g,cx:Ea,cy:Ea,r:(Ea-u)/2,fill:"none",strokeWidth:u})})}))}),lZ=(e,t)=>M({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),uZ=e=>M({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),cZ=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,s])=>{var l;r[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let i=M({html:lZ(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:M({margin:0},uZ(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const o=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return o&&(i=[i,o]),i};function dZ(e){const t=et({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return _.jsxs(P.Fragment,{children:[_.jsx(bL,{styles:i=>cZ(i,r)}),n]})}function fZ(e){const t=qn(e);return t.body===e?wo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function wd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function iP(e){return parseInt(wo(e).getComputedStyle(e).paddingRight,10)||0}function hZ(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function oP(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,a=>{const s=o.indexOf(a)===-1,l=!hZ(a);s&&l&&wd(a,i)})}function $b(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function pZ(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(fZ(r)){const a=rL(qn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${iP(r)+a}px`;const s=qn(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${iP(l)+a}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=qn(r).body;else{const a=r.parentElement,s=wo(r);o=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:a,property:s})=>{o?a.style.setProperty(s,o):a.style.removeProperty(s)})}}function gZ(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class mZ{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&wd(t.modalRef,!1);const i=gZ(n);oP(n,t.mount,t.modalRef,i,!0);const o=$b(this.containers,a=>a.container===n);return o!==-1?(this.containers[o].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=$b(this.containers,o=>o.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=pZ(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=$b(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&wd(t.modalRef,n),oP(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const a=o.modals[o.modals.length-1];a.modalRef&&wd(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const vZ=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function yZ(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function bZ(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function xZ(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||bZ(e))}function wZ(e){const t=[],n=[];return Array.from(e.querySelectorAll(vZ)).forEach((r,i)=>{const o=yZ(r);o===-1||!xZ(r)||(o===0?t.push(r):n.push({documentOrder:i,tabIndex:o,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function _Z(){return!0}function TL(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=wZ,isEnabled:a=_Z,open:s}=e,l=P.useRef(!1),u=P.useRef(null),d=P.useRef(null),h=P.useRef(null),p=P.useRef(null),g=P.useRef(!1),m=P.useRef(null),y=vn(Ku(t),m),b=P.useRef(null);P.useEffect(()=>{!s||!m.current||(g.current=!n)},[n,s]),P.useEffect(()=>{if(!s||!m.current)return;const w=qn(m.current);return m.current.contains(w.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),g.current&&m.current.focus()),()=>{i||(h.current&&h.current.focus&&(l.current=!0,h.current.focus()),h.current=null)}},[s]),P.useEffect(()=>{if(!s||!m.current)return;const w=qn(m.current),C=T=>{b.current=T,!(r||!a()||T.key!=="Tab")&&w.activeElement===m.current&&T.shiftKey&&(l.current=!0,d.current&&d.current.focus())},R=()=>{const T=m.current;if(T===null)return;if(!w.hasFocus()||!a()||l.current){l.current=!1;return}if(T.contains(w.activeElement)||r&&w.activeElement!==u.current&&w.activeElement!==d.current)return;if(w.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!g.current)return;let A=[];if((w.activeElement===u.current||w.activeElement===d.current)&&(A=o(m.current)),A.length>0){var L,I;const N=!!((L=b.current)!=null&&L.shiftKey&&((I=b.current)==null?void 0:I.key)==="Tab"),B=A[0],U=A[A.length-1];typeof B!="string"&&typeof U!="string"&&(N?U.focus():B.focus())}else T.focus()};w.addEventListener("focusin",R),w.addEventListener("keydown",C,!0);const O=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&R()},50);return()=>{clearInterval(O),w.removeEventListener("focusin",R),w.removeEventListener("keydown",C,!0)}},[n,r,i,a,s,o]);const x=w=>{h.current===null&&(h.current=w.relatedTarget),g.current=!0,p.current=w.target;const C=t.props.onFocus;C&&C(w)},S=w=>{h.current===null&&(h.current=w.relatedTarget),g.current=!0};return _.jsxs(P.Fragment,{children:[_.jsx("div",{tabIndex:s?0:-1,onFocus:S,ref:u,"data-testid":"sentinelStart"}),P.cloneElement(t,{ref:y,onFocus:x}),_.jsx("div",{tabIndex:s?0:-1,onFocus:S,ref:d,"data-testid":"sentinelEnd"})]})}function CZ(e){return typeof e=="function"?e():e}function SZ(e){return e?e.props.hasOwnProperty("in"):!1}const TZ=new mZ;function EZ(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=TZ,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:d,rootRef:h}=e,p=P.useRef({}),g=P.useRef(null),m=P.useRef(null),y=vn(m,h),[b,x]=P.useState(!d),S=SZ(l);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const C=()=>qn(g.current),R=()=>(p.current.modalRef=m.current,p.current.mount=g.current,p.current),O=()=>{i.mount(R(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},T=qo(()=>{const j=CZ(t)||C().body;i.add(R(),j),m.current&&O()}),A=P.useCallback(()=>i.isTopModal(R()),[i]),L=qo(j=>{g.current=j,j&&(d&&A()?O():m.current&&wd(m.current,w))}),I=P.useCallback(()=>{i.remove(R(),w)},[w,i]);P.useEffect(()=>()=>{I()},[I]),P.useEffect(()=>{d?T():(!S||!o)&&I()},[d,I,S,o,T]);const N=j=>K=>{var V;(V=j.onKeyDown)==null||V.call(j,K),!(K.key!=="Escape"||K.which===229||!A())&&(n||(K.stopPropagation(),u&&u(K,"escapeKeyDown")))},B=j=>K=>{var V;(V=j.onClick)==null||V.call(j,K),K.target===K.currentTarget&&u&&u(K,"backdropClick")};return{getRootProps:(j={})=>{const K=oL(e);delete K.onTransitionEnter,delete K.onTransitionExited;const V=M({},K,j);return M({role:"presentation"},V,{onKeyDown:N(V),ref:y})},getBackdropProps:(j={})=>{const K=j;return M({"aria-hidden":!0},K,{onClick:B(K),open:d})},getTransitionProps:()=>{const j=()=>{x(!1),a&&a()},K=()=>{x(!0),s&&s(),o&&I()};return{onEnter:ex(j,l==null?void 0:l.props.onEnter),onExited:ex(K,l==null?void 0:l.props.onExited)}},rootRef:y,portalRef:L,isTopModal:A,exited:b,hasTransition:S}}function OZ(e){return Be("MuiModal",e)}Le("MuiModal",["root","hidden","backdrop"]);const PZ=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],RZ=e=>{const{open:t,exited:n,classes:r}=e;return Ue({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},OZ,r)},MZ=H("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>M({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),AZ=H(xL,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),a_=P.forwardRef(function(t,n){var r,i,o,a,s,l;const u=et({name:"MuiModal",props:t}),{BackdropComponent:d=AZ,BackdropProps:h,className:p,closeAfterTransition:g=!1,children:m,container:y,component:b,components:x={},componentsProps:S={},disableAutoFocus:w=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:R=!1,disablePortal:O=!1,disableRestoreFocus:T=!1,disableScrollLock:A=!1,hideBackdrop:L=!1,keepMounted:I=!1,onBackdropClick:N,open:B,slotProps:U,slots:z}=u,F=de(u,PZ),j=M({},u,{closeAfterTransition:g,disableAutoFocus:w,disableEnforceFocus:C,disableEscapeKeyDown:R,disablePortal:O,disableRestoreFocus:T,disableScrollLock:A,hideBackdrop:L,keepMounted:I}),{getRootProps:K,getBackdropProps:V,getTransitionProps:J,portalRef:oe,isTopModal:ce,exited:le,hasTransition:Me}=EZ(M({},j,{rootRef:n})),ve=M({},j,{exited:le}),ye=RZ(ve),Ce={};if(m.props.tabIndex===void 0&&(Ce.tabIndex="-1"),Me){const{onEnter:pe,onExited:He}=J();Ce.onEnter=pe,Ce.onExited=He}const we=(r=(i=z==null?void 0:z.root)!=null?i:x.Root)!=null?r:MZ,fe=(o=(a=z==null?void 0:z.backdrop)!=null?a:x.Backdrop)!=null?o:d,ue=(s=U==null?void 0:U.root)!=null?s:S.root,Ne=(l=U==null?void 0:U.backdrop)!=null?l:S.backdrop,We=el({elementType:we,externalSlotProps:ue,externalForwardedProps:F,getSlotProps:K,additionalProps:{ref:n,as:b},ownerState:ve,className:Pe(p,ue==null?void 0:ue.className,ye==null?void 0:ye.root,!ve.open&&ve.exited&&(ye==null?void 0:ye.hidden))}),be=el({elementType:fe,externalSlotProps:Ne,additionalProps:h,getSlotProps:pe=>V(M({},pe,{onClick:He=>{N&&N(He),pe!=null&&pe.onClick&&pe.onClick(He)}})),className:Pe(Ne==null?void 0:Ne.className,h==null?void 0:h.className,ye==null?void 0:ye.backdrop),ownerState:ve});return!I&&!B&&(!Me||le)?null:_.jsx(yL,{ref:oe,container:y,disablePortal:O,children:_.jsxs(we,M({},We,{children:[!L&&d?_.jsx(fe,M({},be)):null,_.jsx(TL,{disableEnforceFocus:C,disableAutoFocus:w,disableRestoreFocus:T,isEnabled:ce,open:B,children:P.cloneElement(m,Ce)})]}))})});function DZ(e){return Be("MuiDialog",e)}const _d=Le("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),EL=P.createContext({}),IZ=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],$Z=H(xL,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),LZ=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,a={root:["root"],container:["container",`scroll${me(n)}`],paper:["paper",`paperScroll${me(n)}`,`paperWidth${me(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return Ue(a,DZ,t)},kZ=H(a_,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),NZ=H("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${me(n.scroll)}`]]}})(({ownerState:e})=>M({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),FZ=H(Ya,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${me(n.scroll)}`],t[`paperWidth${me(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>M({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${_d.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${_d.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${_d.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),OL=P.forwardRef(function(t,n){const r=et({props:t,name:"MuiDialog"}),i=or(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:l,BackdropProps:u,children:d,className:h,disableEscapeKeyDown:p=!1,fullScreen:g=!1,fullWidth:m=!1,maxWidth:y="sm",onBackdropClick:b,onClick:x,onClose:S,open:w,PaperComponent:C=Ya,PaperProps:R={},scroll:O="paper",TransitionComponent:T=mv,transitionDuration:A=o,TransitionProps:L}=r,I=de(r,IZ),N=M({},r,{disableEscapeKeyDown:p,fullScreen:g,fullWidth:m,maxWidth:y,scroll:O}),B=LZ(N),U=P.useRef(),z=V=>{U.current=V.target===V.currentTarget},F=V=>{x&&x(V),U.current&&(U.current=null,b&&b(V),S&&S(V,"backdropClick"))},j=Js(s),K=P.useMemo(()=>({titleId:j}),[j]);return _.jsx(kZ,M({className:Pe(B.root,h),closeAfterTransition:!0,components:{Backdrop:$Z},componentsProps:{backdrop:M({transitionDuration:A,as:l},u)},disableEscapeKeyDown:p,onClose:S,open:w,ref:n,onClick:F,ownerState:N},I,{children:_.jsx(T,M({appear:!0,in:w,timeout:A,role:"presentation"},L,{children:_.jsx(NZ,{className:Pe(B.container),onMouseDown:z,ownerState:N,children:_.jsx(FZ,M({as:C,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":j},R,{className:Pe(B.paper,R.className),ownerState:N,children:_.jsx(EL.Provider,{value:K,children:d})}))})}))}))});function jZ(e){return Be("MuiDialogActions",e)}Le("MuiDialogActions",["root","spacing"]);const BZ=["className","disableSpacing"],UZ=e=>{const{classes:t,disableSpacing:n}=e;return Ue({root:["root",!n&&"spacing"]},jZ,t)},WZ=H("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>M({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),PL=P.forwardRef(function(t,n){const r=et({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1}=r,a=de(r,BZ),s=M({},r,{disableSpacing:o}),l=UZ(s);return _.jsx(WZ,M({className:Pe(l.root,i),ownerState:s,ref:n},a))});function HZ(e){return Be("MuiDialogContent",e)}Le("MuiDialogContent",["root","dividers"]);function zZ(e){return Be("MuiDialogTitle",e)}const VZ=Le("MuiDialogTitle",["root"]),GZ=["className","dividers"],qZ=e=>{const{classes:t,dividers:n}=e;return Ue({root:["root",n&&"dividers"]},HZ,t)},KZ=H("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>M({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${VZ.root} + &`]:{paddingTop:0}})),RL=P.forwardRef(function(t,n){const r=et({props:t,name:"MuiDialogContent"}),{className:i,dividers:o=!1}=r,a=de(r,GZ),s=M({},r,{dividers:o}),l=qZ(s);return _.jsx(KZ,M({className:Pe(l.root,i),ownerState:s,ref:n},a))});function YZ(e){return Be("MuiDialogContentText",e)}Le("MuiDialogContentText",["root"]);const XZ=["children","className"],ZZ=e=>{const{classes:t}=e,r=Ue({root:["root"]},YZ,t);return M({},t,r)},QZ=H(Ye,{shouldForwardProp:e=>vr(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),JZ=P.forwardRef(function(t,n){const r=et({props:t,name:"MuiDialogContentText"}),{className:i}=r,o=de(r,XZ),a=ZZ(o);return _.jsx(QZ,M({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:o,className:Pe(a.root,i)},r,{classes:a}))}),eQ=["className","id"],tQ=e=>{const{classes:t}=e;return Ue({root:["root"]},zZ,t)},nQ=H(Ye,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),rQ=P.forwardRef(function(t,n){const r=et({props:t,name:"MuiDialogTitle"}),{className:i,id:o}=r,a=de(r,eQ),s=r,l=tQ(s),{titleId:u=o}=P.useContext(EL);return _.jsx(nQ,M({component:"h2",className:Pe(l.root,i),ownerState:s,ref:n,variant:"h6",id:o??u},a))});function iQ(e){return Be("MuiDivider",e)}const aP=Le("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),oQ=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],aQ=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return Ue({root:["root",t&&"absolute",l,o&&"light",a==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},iQ,r)},sQ=H("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>M({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:er(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>M({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>M({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>M({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>M({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),lQ=H("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>M({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),ML=P.forwardRef(function(t,n){const r=et({props:t,name:"MuiDivider"}),{absolute:i=!1,children:o,className:a,component:s=o?"div":"hr",flexItem:l=!1,light:u=!1,orientation:d="horizontal",role:h=s!=="hr"?"separator":void 0,textAlign:p="center",variant:g="fullWidth"}=r,m=de(r,oQ),y=M({},r,{absolute:i,component:s,flexItem:l,light:u,orientation:d,role:h,textAlign:p,variant:g}),b=aQ(y);return _.jsx(sQ,M({as:s,className:Pe(b.root,a),role:h,ref:n,ownerState:y},m,{children:o?_.jsx(lQ,{className:b.wrapper,ownerState:y,children:o}):null}))});ML.muiSkipListHighlight=!0;const uQ=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function cQ(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),o=wo(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const u=o.getComputedStyle(t);a=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const u=a.split("(")[1].split(")")[0].split(",");s=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?i?`translateX(${i.right+s-r.left}px)`:`translateX(${o.innerWidth+s-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${o.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function dQ(e){return typeof e=="function"?e():e}function Yh(e,t,n){const r=dQ(n),i=cQ(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const fQ=P.forwardRef(function(t,n){const r=or(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:u,direction:d="down",easing:h=i,in:p,onEnter:g,onEntered:m,onEntering:y,onExit:b,onExited:x,onExiting:S,style:w,timeout:C=o,TransitionComponent:R=Li}=t,O=de(t,uQ),T=P.useRef(null),A=vn(Ku(l),T,n),L=V=>J=>{V&&(J===void 0?V(T.current):V(T.current,J))},I=L((V,J)=>{Yh(d,V,u),Xw(V),g&&g(V,J)}),N=L((V,J)=>{const oe=xu({timeout:C,style:w,easing:h},{mode:"enter"});V.style.webkitTransition=r.transitions.create("-webkit-transform",M({},oe)),V.style.transition=r.transitions.create("transform",M({},oe)),V.style.webkitTransform="none",V.style.transform="none",y&&y(V,J)}),B=L(m),U=L(S),z=L(V=>{const J=xu({timeout:C,style:w,easing:h},{mode:"exit"});V.style.webkitTransition=r.transitions.create("-webkit-transform",J),V.style.transition=r.transitions.create("transform",J),Yh(d,V,u),b&&b(V)}),F=L(V=>{V.style.webkitTransition="",V.style.transition="",x&&x(V)}),j=V=>{a&&a(T.current,V)},K=P.useCallback(()=>{T.current&&Yh(d,T.current,u)},[d,u]);return P.useEffect(()=>{if(p||d==="down"||d==="right")return;const V=av(()=>{T.current&&Yh(d,T.current,u)}),J=wo(T.current);return J.addEventListener("resize",V),()=>{V.clear(),J.removeEventListener("resize",V)}},[d,p,u]),P.useEffect(()=>{p||K()},[p,K]),_.jsx(R,M({nodeRef:T,onEnter:I,onEntered:B,onEntering:N,onExit:z,onExited:F,onExiting:U,addEndListener:j,appear:s,in:p,timeout:C},O,{children:(V,J)=>P.cloneElement(l,M({ref:A,style:M({visibility:V==="exited"&&!p?"hidden":void 0},w,l.props.style)},J))}))});function hQ(e){return Be("MuiDrawer",e)}Le("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const pQ=["BackdropProps"],gQ=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],AL=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},mQ=e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${me(n)}`,r!=="temporary"&&`paperAnchorDocked${me(n)}`]};return Ue(i,hQ,t)},vQ=H(a_,{name:"MuiDrawer",slot:"Root",overridesResolver:AL})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),sP=H("div",{shouldForwardProp:vr,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:AL})({flex:"0 0 auto"}),yQ=H(Ya,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${me(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${me(n.anchor)}`]]}})(({theme:e,ownerState:t})=>M({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),DL={left:"right",right:"left",top:"down",bottom:"up"};function bQ(e){return["left","right"].indexOf(e)!==-1}function xQ({direction:e},t){return e==="rtl"&&bQ(t)?DL[t]:t}const wQ=P.forwardRef(function(t,n){const r=et({props:t,name:"MuiDrawer"}),i=or(),o=nv(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:l,children:u,className:d,elevation:h=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:g}={},onClose:m,open:y=!1,PaperProps:b={},SlideProps:x,TransitionComponent:S=fQ,transitionDuration:w=a,variant:C="temporary"}=r,R=de(r.ModalProps,pQ),O=de(r,gQ),T=P.useRef(!1);P.useEffect(()=>{T.current=!0},[]);const A=xQ({direction:o?"rtl":"ltr"},s),I=M({},r,{anchor:s,elevation:h,open:y,variant:C},O),N=mQ(I),B=_.jsx(yQ,M({elevation:C==="temporary"?h:0,square:!0},b,{className:Pe(N.paper,b.className),ownerState:I,children:u}));if(C==="permanent")return _.jsx(sP,M({className:Pe(N.root,N.docked,d),ownerState:I,ref:n},O,{children:B}));const U=_.jsx(S,M({in:y,direction:DL[A],timeout:w,appear:T.current},x,{children:B}));return C==="persistent"?_.jsx(sP,M({className:Pe(N.root,N.docked,d),ownerState:I,ref:n},O,{children:U})):_.jsx(vQ,M({BackdropProps:M({},l,g,{transitionDuration:w}),className:Pe(N.root,N.modal,d),open:y,ownerState:I,onClose:m,hideBackdrop:p,ref:n},O,R,{children:U}))}),_Q=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],CQ=e=>{const{classes:t,disableUnderline:n}=e,i=Ue({root:["root",!n&&"underline"],input:["input"]},yX,t);return M({},t,i)},SQ=H(hv,{shouldForwardProp:e=>vr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...dv(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return M({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${ms.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${ms.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ms.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ms.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ms.disabled}, .${ms.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ms.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&M({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),TQ=H(pv,{name:"MuiFilledInput",slot:"Input",overridesResolver:fv})(({theme:e,ownerState:t})=>M({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),s_=P.forwardRef(function(t,n){var r,i,o,a;const s=et({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:d=!1,inputComponent:h="input",multiline:p=!1,slotProps:g,slots:m={},type:y="text"}=s,b=de(s,_Q),x=M({},s,{fullWidth:d,inputComponent:h,multiline:p,type:y}),S=CQ(s),w={root:{ownerState:x},input:{ownerState:x}},C=g??u?Qo(w,g??u):w,R=(r=(i=m.root)!=null?i:l.Root)!=null?r:SQ,O=(o=(a=m.input)!=null?a:l.Input)!=null?o:TQ;return _.jsx(gv,M({slots:{root:R,input:O},componentsProps:C,fullWidth:d,inputComponent:h,multiline:p,ref:n,type:y},b,{classes:S}))});s_.muiName="Input";function EQ(e){return Be("MuiFormControl",e)}Le("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const OQ=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],PQ=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${me(n)}`,r&&"fullWidth"]};return Ue(i,EQ,t)},RQ=H("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>M({},t.root,t[`margin${me(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>M({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),IL=P.forwardRef(function(t,n){const r=et({props:t,name:"MuiFormControl"}),{children:i,className:o,color:a="primary",component:s="div",disabled:l=!1,error:u=!1,focused:d,fullWidth:h=!1,hiddenLabel:p=!1,margin:g="none",required:m=!1,size:y="medium",variant:b="outlined"}=r,x=de(r,OQ),S=M({},r,{color:a,component:s,disabled:l,error:u,fullWidth:h,hiddenLabel:p,margin:g,required:m,size:y,variant:b}),w=PQ(S),[C,R]=P.useState(()=>{let U=!1;return i&&P.Children.forEach(i,z=>{if(!Wp(z,["Input","Select"]))return;const F=Wp(z,["Select"])?z.props.input:z;F&&dX(F.props)&&(U=!0)}),U}),[O,T]=P.useState(()=>{let U=!1;return i&&P.Children.forEach(i,z=>{Wp(z,["Input","Select"])&&(Og(z.props,!0)||Og(z.props.inputProps,!0))&&(U=!0)}),U}),[A,L]=P.useState(!1);l&&A&&L(!1);const I=d!==void 0&&!l?d:A;let N;const B=P.useMemo(()=>({adornedStart:C,setAdornedStart:R,color:a,disabled:l,error:u,filled:O,focused:I,fullWidth:h,hiddenLabel:p,size:y,onBlur:()=>{L(!1)},onEmpty:()=>{T(!1)},onFilled:()=>{T(!0)},onFocus:()=>{L(!0)},registerEffect:N,required:m,variant:b}),[C,a,l,u,O,I,h,p,N,m,y,b]);return _.jsx(cv.Provider,{value:B,children:_.jsx(RQ,M({as:s,ownerState:S,className:Pe(w.root,o),ref:n},x,{children:i}))})}),Zi=fG({createStyledComponent:H("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>et({props:e,name:"MuiStack"})});function MQ(e){return Be("MuiFormControlLabel",e)}const sd=Le("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),AQ=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],DQ=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e,a={root:["root",n&&"disabled",`labelPlacement${me(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return Ue(a,MQ,t)},IQ=H("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${sd.label}`]:t.label},t.root,t[`labelPlacement${me(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>M({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${sd.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${sd.label}`]:{[`&.${sd.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),$Q=H("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${sd.error}`]:{color:(e.vars||e).palette.error.main}})),Pg=P.forwardRef(function(t,n){var r,i;const o=et({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:l,disabled:u,disableTypography:d,label:h,labelPlacement:p="end",required:g,slotProps:m={}}=o,y=de(o,AQ),b=Co(),x=(r=u??l.props.disabled)!=null?r:b==null?void 0:b.disabled,S=g??l.props.required,w={disabled:x,required:S};["checked","name","onChange","value","inputRef"].forEach(L=>{typeof l.props[L]>"u"&&typeof o[L]<"u"&&(w[L]=o[L])});const C=Za({props:o,muiFormControl:b,states:["error"]}),R=M({},o,{disabled:x,labelPlacement:p,required:S,error:C.error}),O=DQ(R),T=(i=m.typography)!=null?i:s.typography;let A=h;return A!=null&&A.type!==Ye&&!d&&(A=_.jsx(Ye,M({component:"span"},T,{className:Pe(O.label,T==null?void 0:T.className),children:A}))),_.jsxs(IQ,M({className:Pe(O.root,a),ownerState:R,ref:n},y,{children:[P.cloneElement(l,w),S?_.jsxs(Zi,{display:"block",children:[A,_.jsxs($Q,{ownerState:R,"aria-hidden":!0,className:O.asterisk,children:[" ","*"]})]}):A]}))});function LQ(e){return Be("MuiFormGroup",e)}Le("MuiFormGroup",["root","row","error"]);const kQ=["className","row"],NQ=e=>{const{classes:t,row:n,error:r}=e;return Ue({root:["root",n&&"row",r&&"error"]},LQ,t)},FQ=H("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>M({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),$L=P.forwardRef(function(t,n){const r=et({props:t,name:"MuiFormGroup"}),{className:i,row:o=!1}=r,a=de(r,kQ),s=Co(),l=Za({props:r,muiFormControl:s,states:["error"]}),u=M({},r,{row:o,error:l.error}),d=NQ(u);return _.jsx(FQ,M({className:Pe(d.root,i),ownerState:u,ref:n},a))});function jQ(e){return Be("MuiFormHelperText",e)}const lP=Le("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var uP;const BQ=["children","className","component","disabled","error","filled","focused","margin","required","variant"],UQ=e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:a,focused:s,required:l}=e,u={root:["root",i&&"disabled",o&&"error",r&&`size${me(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return Ue(u,jQ,t)},WQ=H("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${me(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>M({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${lP.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${lP.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),HQ=P.forwardRef(function(t,n){const r=et({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:a="p"}=r,s=de(r,BQ),l=Co(),u=Za({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),d=M({},r,{component:a,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),h=UQ(d);return _.jsx(WQ,M({as:a,ownerState:d,className:Pe(h.root,o),ref:n},s,{children:i===" "?uP||(uP=_.jsx("span",{className:"notranslate",children:""})):i}))});function zQ(e){return Be("MuiFormLabel",e)}const Cd=Le("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),VQ=["children","className","color","component","disabled","error","filled","focused","required"],GQ=e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:a,required:s}=e,l={root:["root",`color${me(n)}`,i&&"disabled",o&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return Ue(l,zQ,t)},qQ=H("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>M({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>M({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Cd.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Cd.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Cd.error}`]:{color:(e.vars||e).palette.error.main}})),KQ=H("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Cd.error}`]:{color:(e.vars||e).palette.error.main}})),LL=P.forwardRef(function(t,n){const r=et({props:t,name:"MuiFormLabel"}),{children:i,className:o,component:a="label"}=r,s=de(r,VQ),l=Co(),u=Za({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),d=M({},r,{color:u.color||"primary",component:a,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),h=GQ(d);return _.jsxs(qQ,M({as:a,ownerState:d,className:Pe(h.root,o),ref:n},s,{children:[i,u.required&&_.jsxs(KQ,{ownerState:d,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),cP=P.createContext();function YQ(e){return Be("MuiGrid",e)}const XQ=[0,1,2,3,4,5,6,7,8,9,10],ZQ=["column-reverse","column","row-reverse","row"],QQ=["nowrap","wrap-reverse","wrap"],jc=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Xd=Le("MuiGrid",["root","container","item","zeroMinWidth",...XQ.map(e=>`spacing-xs-${e}`),...ZQ.map(e=>`direction-xs-${e}`),...QQ.map(e=>`wrap-xs-${e}`),...jc.map(e=>`grid-xs-${e}`),...jc.map(e=>`grid-sm-${e}`),...jc.map(e=>`grid-md-${e}`),...jc.map(e=>`grid-lg-${e}`),...jc.map(e=>`grid-xl-${e}`)]),JQ=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function cu(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function eJ({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,i)=>{let o={};if(t[i]&&(n=t[i]),!n)return r;if(n===!0)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=Bs({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof a=="object"?a[i]:a;if(s==null)return r;const l=`${Math.round(n/s*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const d=e.spacing(t.columnSpacing);if(d!=="0px"){const h=`calc(${l} + ${cu(d)})`;u={flexBasis:h,maxWidth:h}}}o=M({flexBasis:l,flexGrow:0,maxWidth:l},u)}return e.breakpoints.values[i]===0?Object.assign(r,o):r[e.breakpoints.up(i)]=o,r},{})}function tJ({theme:e,ownerState:t}){const n=Bs({values:t.direction,breakpoints:e.breakpoints.values});return Hr({theme:e},n,r=>{const i={flexDirection:r};return r.indexOf("column")===0&&(i[`& > .${Xd.item}`]={maxWidth:"none"}),i})}function kL({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(i=>{n===""&&t[i]!==0&&(n=i)});const r=Object.keys(e).sort((i,o)=>e[i]-e[o]);return r.slice(0,r.indexOf(n))}function nJ({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let i={};if(n&&r!==0){const o=Bs({values:r,breakpoints:e.breakpoints.values});let a;typeof o=="object"&&(a=kL({breakpoints:e.breakpoints.values,values:o})),i=Hr({theme:e},o,(s,l)=>{var u;const d=e.spacing(s);return d!=="0px"?{marginTop:`-${cu(d)}`,[`& > .${Xd.item}`]:{paddingTop:cu(d)}}:(u=a)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${Xd.item}`]:{paddingTop:0}}})}return i}function rJ({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let i={};if(n&&r!==0){const o=Bs({values:r,breakpoints:e.breakpoints.values});let a;typeof o=="object"&&(a=kL({breakpoints:e.breakpoints.values,values:o})),i=Hr({theme:e},o,(s,l)=>{var u;const d=e.spacing(s);return d!=="0px"?{width:`calc(100% + ${cu(d)})`,marginLeft:`-${cu(d)}`,[`& > .${Xd.item}`]:{paddingLeft:cu(d)}}:(u=a)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Xd.item}`]:{paddingLeft:0}}})}return i}function iJ(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(i=>{const o=e[i];Number(o)>0&&r.push(n[`spacing-${i}-${String(o)}`])}),r}const oJ=H("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:o,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:u}=n;let d=[];r&&(d=iJ(a,u,t));const h=[];return u.forEach(p=>{const g=n[p];g&&h.push(t[`grid-${p}-${String(g)}`])}),[t.root,r&&t.container,o&&t.item,l&&t.zeroMinWidth,...d,i!=="row"&&t[`direction-xs-${String(i)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...h]}})(({ownerState:e})=>M({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),tJ,nJ,rJ,eJ);function aJ(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const i=e[r];if(Number(i)>0){const o=`spacing-${r}-${String(i)}`;n.push(o)}}),n}const sJ=e=>{const{classes:t,container:n,direction:r,item:i,spacing:o,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let u=[];n&&(u=aJ(o,l));const d=[];l.forEach(p=>{const g=e[p];g&&d.push(`grid-${p}-${String(g)}`)});const h={root:["root",n&&"container",i&&"item",s&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...d]};return Ue(h,YQ,t)},Bn=P.forwardRef(function(t,n){const r=et({props:t,name:"MuiGrid"}),{breakpoints:i}=or(),o=yf(r),{className:a,columns:s,columnSpacing:l,component:u="div",container:d=!1,direction:h="row",item:p=!1,rowSpacing:g,spacing:m=0,wrap:y="wrap",zeroMinWidth:b=!1}=o,x=de(o,JQ),S=g||m,w=l||m,C=P.useContext(cP),R=d?s||12:C,O={},T=M({},x);i.keys.forEach(I=>{x[I]!=null&&(O[I]=x[I],delete T[I])});const A=M({},o,{columns:R,container:d,direction:h,item:p,rowSpacing:S,columnSpacing:w,wrap:y,zeroMinWidth:b,spacing:m},O,{breakpoints:i.keys}),L=sJ(A);return _.jsx(cP.Provider,{value:R,children:_.jsx(oJ,M({ownerState:A,className:Pe(L.root,a),as:u,ref:n},T))})}),lJ=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function sx(e){return`scale(${e}, ${e**2})`}const uJ={entering:{opacity:1,transform:sx(1)},entered:{opacity:1,transform:"none"}},Lb=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),l_=P.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:a,in:s,onEnter:l,onEntered:u,onEntering:d,onExit:h,onExited:p,onExiting:g,style:m,timeout:y="auto",TransitionComponent:b=Li}=t,x=de(t,lJ),S=tL(),w=P.useRef(),C=or(),R=P.useRef(null),O=vn(R,Ku(o),n),T=F=>j=>{if(F){const K=R.current;j===void 0?F(K):F(K,j)}},A=T(d),L=T((F,j)=>{Xw(F);const{duration:K,delay:V,easing:J}=xu({style:m,timeout:y,easing:a},{mode:"enter"});let oe;y==="auto"?(oe=C.transitions.getAutoHeightDuration(F.clientHeight),w.current=oe):oe=K,F.style.transition=[C.transitions.create("opacity",{duration:oe,delay:V}),C.transitions.create("transform",{duration:Lb?oe:oe*.666,delay:V,easing:J})].join(","),l&&l(F,j)}),I=T(u),N=T(g),B=T(F=>{const{duration:j,delay:K,easing:V}=xu({style:m,timeout:y,easing:a},{mode:"exit"});let J;y==="auto"?(J=C.transitions.getAutoHeightDuration(F.clientHeight),w.current=J):J=j,F.style.transition=[C.transitions.create("opacity",{duration:J,delay:K}),C.transitions.create("transform",{duration:Lb?J:J*.666,delay:Lb?K:K||J*.333,easing:V})].join(","),F.style.opacity=0,F.style.transform=sx(.75),h&&h(F)}),U=T(p),z=F=>{y==="auto"&&S.start(w.current||0,F),r&&r(R.current,F)};return _.jsx(b,M({appear:i,in:s,nodeRef:R,onEnter:L,onEntered:I,onEntering:A,onExit:B,onExited:U,onExiting:N,addEndListener:z,timeout:y==="auto"?null:y},x,{children:(F,j)=>P.cloneElement(o,M({style:M({opacity:0,transform:sx(.75),visibility:F==="exited"&&!s?"hidden":void 0},uJ[F],m,o.props.style),ref:O},j))}))});l_.muiSupportAuto=!0;const cJ=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],dJ=e=>{const{classes:t,disableUnderline:n}=e,i=Ue({root:["root",!n&&"underline"],input:["input"]},mX,t);return M({},t,i)},fJ=H(hv,{shouldForwardProp:e=>vr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...dv(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),M({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Fc.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Fc.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Fc.disabled}, .${Fc.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Fc.disabled}:before`]:{borderBottomStyle:"dotted"}})}),hJ=H(pv,{name:"MuiInput",slot:"Input",overridesResolver:fv})({}),u_=P.forwardRef(function(t,n){var r,i,o,a;const s=et({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:d,fullWidth:h=!1,inputComponent:p="input",multiline:g=!1,slotProps:m,slots:y={},type:b="text"}=s,x=de(s,cJ),S=dJ(s),C={root:{ownerState:{disableUnderline:l}}},R=m??d?Qo(m??d,C):C,O=(r=(i=y.root)!=null?i:u.Root)!=null?r:fJ,T=(o=(a=y.input)!=null?a:u.Input)!=null?o:hJ;return _.jsx(gv,M({slots:{root:O,input:T},slotProps:R,fullWidth:h,inputComponent:p,multiline:g,ref:n,type:b},x,{classes:S}))});u_.muiName="Input";function pJ(e){return Be("MuiInputAdornment",e)}const dP=Le("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var fP;const gJ=["children","className","component","disablePointerEvents","disableTypography","position","variant"],mJ=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${me(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},vJ=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:a}=e,s={root:["root",n&&"disablePointerEvents",i&&`position${me(i)}`,a,r&&"hiddenLabel",o&&`size${me(o)}`]};return Ue(s,pJ,t)},yJ=H("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:mJ})(({theme:e,ownerState:t})=>M({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${dP.positionStart}&:not(.${dP.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),hP=P.forwardRef(function(t,n){const r=et({props:t,name:"MuiInputAdornment"}),{children:i,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:d}=r,h=de(r,gJ),p=Co()||{};let g=d;d&&p.variant,p&&!g&&(g=p.variant);const m=M({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:u,variant:g}),y=vJ(m);return _.jsx(cv.Provider,{value:null,children:_.jsx(yJ,M({as:a,ownerState:m,className:Pe(y.root,o),ref:n},h,{children:typeof i=="string"&&!l?_.jsx(Ye,{color:"text.secondary",children:i}):_.jsxs(P.Fragment,{children:[u==="start"?fP||(fP=_.jsx("span",{className:"notranslate",children:""})):null,i]})}))})});function bJ(e){return Be("MuiInputLabel",e)}Le("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const xJ=["disableAnimation","margin","shrink","variant","className"],wJ=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:o,variant:a,required:s}=e,l={root:["root",n&&"formControl",!o&&"animated",i&&"shrink",r&&r!=="normal"&&`size${me(r)}`,a],asterisk:[s&&"asterisk"]},u=Ue(l,bJ,t);return M({},t,u)},_J=H(LL,{shouldForwardProp:e=>vr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Cd.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>M({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&M({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&M({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&M({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),CJ=P.forwardRef(function(t,n){const r=et({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:o,className:a}=r,s=de(r,xJ),l=Co();let u=o;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const d=Za({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),h=M({},r,{disableAnimation:i,formControl:l,shrink:u,size:d.size,variant:d.variant,required:d.required,focused:d.focused}),p=wJ(h);return _.jsx(_J,M({"data-shrink":u,ownerState:h,ref:n,className:Pe(p.root,a)},s,{classes:p}))});function SJ(e){return Be("MuiLinearProgress",e)}Le("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const TJ=["className","color","value","valueBuffer","variant"];let Yu=e=>e,pP,gP,mP,vP,yP,bP;const lx=4,EJ=Xi(pP||(pP=Yu`
|
|
154
|
+
0% {
|
|
155
|
+
left: -35%;
|
|
156
|
+
right: 100%;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
60% {
|
|
160
|
+
left: 100%;
|
|
161
|
+
right: -90%;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
100% {
|
|
165
|
+
left: 100%;
|
|
166
|
+
right: -90%;
|
|
167
|
+
}
|
|
168
|
+
`)),OJ=Xi(gP||(gP=Yu`
|
|
169
|
+
0% {
|
|
170
|
+
left: -200%;
|
|
171
|
+
right: 100%;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
60% {
|
|
175
|
+
left: 107%;
|
|
176
|
+
right: -8%;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
100% {
|
|
180
|
+
left: 107%;
|
|
181
|
+
right: -8%;
|
|
182
|
+
}
|
|
183
|
+
`)),PJ=Xi(mP||(mP=Yu`
|
|
184
|
+
0% {
|
|
185
|
+
opacity: 1;
|
|
186
|
+
background-position: 0 -23px;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
60% {
|
|
190
|
+
opacity: 0;
|
|
191
|
+
background-position: 0 -23px;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
100% {
|
|
195
|
+
opacity: 1;
|
|
196
|
+
background-position: -200px -23px;
|
|
197
|
+
}
|
|
198
|
+
`)),RJ=e=>{const{classes:t,variant:n,color:r}=e,i={root:["root",`color${me(r)}`,n],dashed:["dashed",`dashedColor${me(r)}`],bar1:["bar",`barColor${me(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${me(r)}`,n==="buffer"&&`color${me(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Ue(i,SJ,t)},c_=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?iv(e.palette[t].main,.62):rv(e.palette[t].main,.5),MJ=H("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${me(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>M({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:c_(t,e.color)},e.color==="inherit"&&e.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},e.variant==="buffer"&&{backgroundColor:"transparent"},e.variant==="query"&&{transform:"rotate(180deg)"})),AJ=H("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${me(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=c_(t,e.color);return M({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},Oi(vP||(vP=Yu`
|
|
199
|
+
animation: ${0} 3s infinite linear;
|
|
200
|
+
`),PJ)),DJ=H("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${me(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>M({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${lx}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${lx}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Oi(yP||(yP=Yu`
|
|
201
|
+
width: auto;
|
|
202
|
+
animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
203
|
+
`),EJ)),IJ=H("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${me(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>M({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:c_(t,e.color),transition:`transform .${lx}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Oi(bP||(bP=Yu`
|
|
204
|
+
width: auto;
|
|
205
|
+
animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
206
|
+
`),OJ)),$J=P.forwardRef(function(t,n){const r=et({props:t,name:"MuiLinearProgress"}),{className:i,color:o="primary",value:a,valueBuffer:s,variant:l="indeterminate"}=r,u=de(r,TJ),d=M({},r,{color:o,variant:l}),h=RJ(d),p=nv(),g={},m={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&a!==void 0){g["aria-valuenow"]=Math.round(a),g["aria-valuemin"]=0,g["aria-valuemax"]=100;let y=a-100;p&&(y=-y),m.bar1.transform=`translateX(${y}%)`}if(l==="buffer"&&s!==void 0){let y=(s||0)-100;p&&(y=-y),m.bar2.transform=`translateX(${y}%)`}return _.jsxs(MJ,M({className:Pe(h.root,i),ownerState:d,role:"progressbar"},g,{ref:n},u,{children:[l==="buffer"?_.jsx(AJ,{className:h.dashed,ownerState:d}):null,_.jsx(DJ,{className:h.bar1,ownerState:d,style:m.bar1}),l==="determinate"?null:_.jsx(IJ,{className:h.bar2,ownerState:d,style:m.bar2})]}))}),ux=P.createContext({});function LJ(e){return Be("MuiList",e)}Le("MuiList",["root","padding","dense","subheader"]);const kJ=["children","className","component","dense","disablePadding","subheader"],NJ=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Ue({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},LJ,t)},FJ=H("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>M({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),jJ=P.forwardRef(function(t,n){const r=et({props:t,name:"MuiList"}),{children:i,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,d=de(r,kJ),h=P.useMemo(()=>({dense:s}),[s]),p=M({},r,{component:a,dense:s,disablePadding:l}),g=NJ(p);return _.jsx(ux.Provider,{value:h,children:_.jsxs(FJ,M({as:a,className:Pe(g.root,o),ref:n,ownerState:p},d,{children:[u,i]}))})}),xP=Le("MuiListItemIcon",["root","alignItemsFlexStart"]),wP=Le("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),BJ=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function kb(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function _P(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function NL(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function Bc(e,t,n,r,i,o){let a=!1,s=i(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!NL(s,o)||l)s=i(e,s,n);else return s.focus(),!0}return!1}const UJ=P.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:d,variant:h="selectedMenu"}=t,p=de(t,BJ),g=P.useRef(null),m=P.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ki(()=>{i&&g.current.focus()},[i]),P.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,{direction:C})=>{const R=!g.current.style.width;if(w.clientHeight<g.current.clientHeight&&R){const O=`${rL(qn(w))}px`;g.current.style[C==="rtl"?"paddingLeft":"paddingRight"]=O,g.current.style.width=`calc(100% + ${O})`}return g.current}}),[]);const y=w=>{const C=g.current,R=w.key,O=qn(C).activeElement;if(R==="ArrowDown")w.preventDefault(),Bc(C,O,u,l,kb);else if(R==="ArrowUp")w.preventDefault(),Bc(C,O,u,l,_P);else if(R==="Home")w.preventDefault(),Bc(C,null,u,l,kb);else if(R==="End")w.preventDefault(),Bc(C,null,u,l,_P);else if(R.length===1){const T=m.current,A=R.toLowerCase(),L=performance.now();T.keys.length>0&&(L-T.lastTime>500?(T.keys=[],T.repeating=!0,T.previousKeyMatched=!0):T.repeating&&A!==T.keys[0]&&(T.repeating=!1)),T.lastTime=L,T.keys.push(A);const I=O&&!T.repeating&&NL(O,T);T.previousKeyMatched&&(I||Bc(C,O,!1,l,kb,T))?w.preventDefault():T.previousKeyMatched=!1}d&&d(w)},b=vn(g,n);let x=-1;P.Children.forEach(a,(w,C)=>{if(!P.isValidElement(w)){x===C&&(x+=1,x>=a.length&&(x=-1));return}w.props.disabled||(h==="selectedMenu"&&w.props.selected||x===-1)&&(x=C),x===C&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(x+=1,x>=a.length&&(x=-1))});const S=P.Children.map(a,(w,C)=>{if(C===x){const R={};return o&&(R.autoFocus=!0),w.props.tabIndex===void 0&&h==="selectedMenu"&&(R.tabIndex=0),P.cloneElement(w,R)}return w});return _.jsx(jJ,M({role:"menu",ref:b,className:s,onKeyDown:y,tabIndex:i?0:-1},p,{children:S}))});function WJ(e){return Be("MuiPopover",e)}Le("MuiPopover",["root","paper"]);const HJ=["onEntering"],zJ=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],VJ=["slotProps"];function CP(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function SP(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function TP(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Nb(e){return typeof e=="function"?e():e}const GJ=e=>{const{classes:t}=e;return Ue({root:["root"],paper:["paper"]},WJ,t)},qJ=H(a_,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),FL=H(Ya,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),KJ=P.forwardRef(function(t,n){var r,i,o;const a=et({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:h="anchorEl",children:p,className:g,container:m,elevation:y=8,marginThreshold:b=16,open:x,PaperProps:S={},slots:w,slotProps:C,transformOrigin:R={vertical:"top",horizontal:"left"},TransitionComponent:O=l_,transitionDuration:T="auto",TransitionProps:{onEntering:A}={},disableScrollLock:L=!1}=a,I=de(a.TransitionProps,HJ),N=de(a,zJ),B=(r=C==null?void 0:C.paper)!=null?r:S,U=P.useRef(),z=vn(U,B.ref),F=M({},a,{anchorOrigin:u,anchorReference:h,elevation:y,marginThreshold:b,externalPaperSlotProps:B,transformOrigin:R,TransitionComponent:O,transitionDuration:T,TransitionProps:I}),j=GJ(F),K=P.useCallback(()=>{if(h==="anchorPosition")return d;const pe=Nb(l),qe=(pe&&pe.nodeType===1?pe:qn(U.current).body).getBoundingClientRect();return{top:qe.top+CP(qe,u.vertical),left:qe.left+SP(qe,u.horizontal)}},[l,u.horizontal,u.vertical,d,h]),V=P.useCallback(pe=>({vertical:CP(pe,R.vertical),horizontal:SP(pe,R.horizontal)}),[R.horizontal,R.vertical]),J=P.useCallback(pe=>{const He={width:pe.offsetWidth,height:pe.offsetHeight},qe=V(He);if(h==="none")return{top:null,left:null,transformOrigin:TP(qe)};const tt=K();let _t=tt.top-qe.vertical,Ct=tt.left-qe.horizontal;const dn=_t+He.height,Yt=Ct+He.width,mt=wo(Nb(l)),Q=mt.innerHeight-b,ge=mt.innerWidth-b;if(b!==null&&_t<b){const he=_t-b;_t-=he,qe.vertical+=he}else if(b!==null&&dn>Q){const he=dn-Q;_t-=he,qe.vertical+=he}if(b!==null&&Ct<b){const he=Ct-b;Ct-=he,qe.horizontal+=he}else if(Yt>ge){const he=Yt-ge;Ct-=he,qe.horizontal+=he}return{top:`${Math.round(_t)}px`,left:`${Math.round(Ct)}px`,transformOrigin:TP(qe)}},[l,h,K,V,b]),[oe,ce]=P.useState(x),le=P.useCallback(()=>{const pe=U.current;if(!pe)return;const He=J(pe);He.top!==null&&(pe.style.top=He.top),He.left!==null&&(pe.style.left=He.left),pe.style.transformOrigin=He.transformOrigin,ce(!0)},[J]);P.useEffect(()=>(L&&window.addEventListener("scroll",le),()=>window.removeEventListener("scroll",le)),[l,L,le]);const Me=(pe,He)=>{A&&A(pe,He),le()},ve=()=>{ce(!1)};P.useEffect(()=>{x&&le()}),P.useImperativeHandle(s,()=>x?{updatePosition:()=>{le()}}:null,[x,le]),P.useEffect(()=>{if(!x)return;const pe=av(()=>{le()}),He=wo(l);return He.addEventListener("resize",pe),()=>{pe.clear(),He.removeEventListener("resize",pe)}},[l,x,le]);let ye=T;T==="auto"&&!O.muiSupportAuto&&(ye=void 0);const Ce=m||(l?qn(Nb(l)).body:void 0),we=(i=w==null?void 0:w.root)!=null?i:qJ,fe=(o=w==null?void 0:w.paper)!=null?o:FL,ue=el({elementType:fe,externalSlotProps:M({},B,{style:oe?B.style:M({},B.style,{opacity:0})}),additionalProps:{elevation:y,ref:z},ownerState:F,className:Pe(j.paper,B==null?void 0:B.className)}),Ne=el({elementType:we,externalSlotProps:(C==null?void 0:C.root)||{},externalForwardedProps:N,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:Ce,open:x},ownerState:F,className:Pe(j.root,g)}),{slotProps:We}=Ne,be=de(Ne,VJ);return _.jsx(we,M({},be,!Gd(we)&&{slotProps:We,disableScrollLock:L},{children:_.jsx(O,M({appear:!0,in:x,onEntering:Me,onExited:ve,timeout:ye},I,{children:_.jsx(fe,M({},ue,{children:p}))}))}))});function YJ(e){return Be("MuiMenu",e)}Le("MuiMenu",["root","paper","list"]);const XJ=["onEntering"],ZJ=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],QJ={vertical:"top",horizontal:"right"},JJ={vertical:"top",horizontal:"left"},eee=e=>{const{classes:t}=e;return Ue({root:["root"],paper:["paper"],list:["list"]},YJ,t)},tee=H(KJ,{shouldForwardProp:e=>vr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nee=H(FL,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ree=H(UJ,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),iee=P.forwardRef(function(t,n){var r,i;const o=et({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:d={},onClose:h,open:p,PaperProps:g={},PopoverClasses:m,transitionDuration:y="auto",TransitionProps:{onEntering:b}={},variant:x="selectedMenu",slots:S={},slotProps:w={}}=o,C=de(o.TransitionProps,XJ),R=de(o,ZJ),O=nv(),T=M({},o,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:d,onEntering:b,PaperProps:g,transitionDuration:y,TransitionProps:C,variant:x}),A=eee(T),L=a&&!u&&p,I=P.useRef(null),N=(V,J)=>{I.current&&I.current.adjustStyleForScrollbar(V,{direction:O?"rtl":"ltr"}),b&&b(V,J)},B=V=>{V.key==="Tab"&&(V.preventDefault(),h&&h(V,"tabKeyDown"))};let U=-1;P.Children.map(s,(V,J)=>{P.isValidElement(V)&&(V.props.disabled||(x==="selectedMenu"&&V.props.selected||U===-1)&&(U=J))});const z=(r=S.paper)!=null?r:nee,F=(i=w.paper)!=null?i:g,j=el({elementType:S.root,externalSlotProps:w.root,ownerState:T,className:[A.root,l]}),K=el({elementType:z,externalSlotProps:F,ownerState:T,className:A.paper});return _.jsx(tee,M({onClose:h,anchorOrigin:{vertical:"bottom",horizontal:O?"right":"left"},transformOrigin:O?QJ:JJ,slots:{paper:z,root:S.root},slotProps:{root:j,paper:K},open:p,ref:n,transitionDuration:y,TransitionProps:M({onEntering:N},C),ownerState:T},R,{classes:m,children:_.jsx(ree,M({onKeyDown:B,actions:I,autoFocus:a&&(U===-1||u),autoFocusItem:L,variant:x},d,{className:Pe(A.list,d.className),children:s}))}))});function oee(e){return Be("MuiMenuItem",e)}const Uc=Le("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),aee=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],see=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},lee=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e,l=Ue({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},oee,a);return M({},a,l)},uee=H(la,{shouldForwardProp:e=>vr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:see})(({theme:e,ownerState:t})=>M({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Uc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:er(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Uc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:er(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Uc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:er(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:er(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Uc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Uc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${aP.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${aP.inset}`]:{marginLeft:52},[`& .${wP.root}`]:{marginTop:0,marginBottom:0},[`& .${wP.inset}`]:{paddingLeft:36},[`& .${xP.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&M({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${xP.root} svg`]:{fontSize:"1.25rem"}}))),d_=P.forwardRef(function(t,n){const r=et({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:h,className:p}=r,g=de(r,aee),m=P.useContext(ux),y=P.useMemo(()=>({dense:a||m.dense||!1,disableGutters:l}),[m.dense,a,l]),b=P.useRef(null);Ki(()=>{i&&b.current&&b.current.focus()},[i]);const x=M({},r,{dense:y.dense,divider:s,disableGutters:l}),S=lee(r),w=vn(b,n);let C;return r.disabled||(C=h!==void 0?h:-1),_.jsx(ux.Provider,{value:y,children:_.jsx(uee,M({ref:w,role:d,tabIndex:C,component:o,focusVisibleClassName:Pe(S.focusVisible,u),className:Pe(S.root,p)},g,{ownerState:x,classes:S}))})});function cee(e){return Be("MuiNativeSelect",e)}const f_=Le("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),dee=["className","disabled","error","IconComponent","inputRef","variant"],fee=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${me(n)}`,o&&"iconOpen",r&&"disabled"]};return Ue(s,cee,t)},jL=({ownerState:e,theme:t})=>M({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":M({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${f_.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),hee=H("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:vr,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${f_.multiple}`]:t.multiple}]}})(jL),BL=({ownerState:e,theme:t})=>M({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${f_.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),pee=H("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${me(n.variant)}`],n.open&&t.iconOpen]}})(BL),gee=P.forwardRef(function(t,n){const{className:r,disabled:i,error:o,IconComponent:a,inputRef:s,variant:l="standard"}=t,u=de(t,dee),d=M({},t,{disabled:i,variant:l,error:o}),h=fee(d);return _.jsxs(P.Fragment,{children:[_.jsx(hee,M({ownerState:d,className:Pe(h.select,r),disabled:i,ref:s||n},u)),t.multiple?null:_.jsx(pee,{as:a,ownerState:d,className:h.icon})]})});var EP;const mee=["children","classes","className","label","notched"],vee=H("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:vr})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),yee=H("legend",{name:"MuiNotchedOutlined",shouldForwardProp:vr})(({ownerState:e,theme:t})=>M({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&M({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function bee(e){const{className:t,label:n,notched:r}=e,i=de(e,mee),o=n!=null&&n!=="",a=M({},e,{notched:r,withLabel:o});return _.jsx(vee,M({"aria-hidden":!0,className:t,ownerState:a},i,{children:_.jsx(yee,{ownerState:a,children:o?_.jsx("span",{children:n}):EP||(EP=_.jsx("span",{className:"notranslate",children:""}))})}))}const xee=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],wee=e=>{const{classes:t}=e,r=Ue({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},vX,t);return M({},t,r)},_ee=H(hv,{shouldForwardProp:e=>vr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:dv})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return M({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Bo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Bo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Bo.focused} .${Bo.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Bo.error} .${Bo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Bo.disabled} .${Bo.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&M({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Cee=H(bee,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),See=H(pv,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:fv})(({theme:e,ownerState:t})=>M({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),h_=P.forwardRef(function(t,n){var r,i,o,a,s;const l=et({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:d=!1,inputComponent:h="input",label:p,multiline:g=!1,notched:m,slots:y={},type:b="text"}=l,x=de(l,xee),S=wee(l),w=Co(),C=Za({props:l,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),R=M({},l,{color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:w,fullWidth:d,hiddenLabel:C.hiddenLabel,multiline:g,size:C.size,type:b}),O=(r=(i=y.root)!=null?i:u.Root)!=null?r:_ee,T=(o=(a=y.input)!=null?a:u.Input)!=null?o:See;return _.jsx(gv,M({slots:{root:O,input:T},renderSuffix:A=>_.jsx(Cee,{ownerState:R,className:S.notchedOutline,label:p!=null&&p!==""&&C.required?s||(s=_.jsxs(P.Fragment,{children:[p," ","*"]})):p,notched:typeof m<"u"?m:!!(A.startAdornment||A.filled||A.focused)}),fullWidth:d,inputComponent:h,multiline:g,ref:n,type:b},x,{classes:M({},S,{notchedOutline:null})}))});h_.muiName="Input";const Tee=$n(_.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Eee=$n(_.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function Oee(e){return Be("MuiSelect",e)}const Wc=Le("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var OP;const Pee=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Ree=H("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Wc.select}`]:t.select},{[`&.${Wc.select}`]:t[n.variant]},{[`&.${Wc.error}`]:t.error},{[`&.${Wc.multiple}`]:t.multiple}]}})(jL,{[`&.${Wc.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Mee=H("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${me(n.variant)}`],n.open&&t.iconOpen]}})(BL),Aee=H("input",{shouldForwardProp:e=>Q$(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function PP(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Dee(e){return e==null||typeof e=="string"&&!e.trim()}const Iee=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${me(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ue(s,Oee,t)},$ee=P.forwardRef(function(t,n){var r;const{"aria-describedby":i,"aria-label":o,autoFocus:a,autoWidth:s,children:l,className:u,defaultOpen:d,defaultValue:h,disabled:p,displayEmpty:g,error:m=!1,IconComponent:y,inputRef:b,labelId:x,MenuProps:S={},multiple:w,name:C,onBlur:R,onChange:O,onClose:T,onFocus:A,onOpen:L,open:I,readOnly:N,renderValue:B,SelectDisplayProps:U={},tabIndex:z,value:F,variant:j="standard"}=t,K=de(t,Pee),[V,J]=Sg({controlled:F,default:h,name:"Select"}),[oe,ce]=Sg({controlled:I,default:d,name:"Select"}),le=P.useRef(null),Me=P.useRef(null),[ve,ye]=P.useState(null),{current:Ce}=P.useRef(I!=null),[we,fe]=P.useState(),ue=vn(n,b),Ne=P.useCallback($e=>{Me.current=$e,$e&&ye($e)},[]),We=ve==null?void 0:ve.parentNode;P.useImperativeHandle(ue,()=>({focus:()=>{Me.current.focus()},node:le.current,value:V}),[V]),P.useEffect(()=>{d&&oe&&ve&&!Ce&&(fe(s?null:We.clientWidth),Me.current.focus())},[ve,s]),P.useEffect(()=>{a&&Me.current.focus()},[a]),P.useEffect(()=>{if(!x)return;const $e=qn(Me.current).getElementById(x);if($e){const Pt=()=>{getSelection().isCollapsed&&Me.current.focus()};return $e.addEventListener("click",Pt),()=>{$e.removeEventListener("click",Pt)}}},[x]);const be=($e,Pt)=>{$e?L&&L(Pt):T&&T(Pt),Ce||(fe(s?null:We.clientWidth),ce($e))},pe=$e=>{$e.button===0&&($e.preventDefault(),Me.current.focus(),be(!0,$e))},He=$e=>{be(!1,$e)},qe=P.Children.toArray(l),tt=$e=>{const Pt=qe.find(rn=>rn.props.value===$e.target.value);Pt!==void 0&&(J(Pt.props.value),O&&O($e,Pt))},_t=$e=>Pt=>{let rn;if(Pt.currentTarget.hasAttribute("tabindex")){if(w){rn=Array.isArray(V)?V.slice():[];const Gr=V.indexOf($e.props.value);Gr===-1?rn.push($e.props.value):rn.splice(Gr,1)}else rn=$e.props.value;if($e.props.onClick&&$e.props.onClick(Pt),V!==rn&&(J(rn),O)){const Gr=Pt.nativeEvent||Pt,fa=new Gr.constructor(Gr.type,Gr);Object.defineProperty(fa,"target",{writable:!0,value:{value:rn,name:C}}),O(fa,$e)}w||be(!1,Pt)}},Ct=$e=>{N||[" ","ArrowUp","ArrowDown","Enter"].indexOf($e.key)!==-1&&($e.preventDefault(),be(!0,$e))},dn=ve!==null&&oe,Yt=$e=>{!dn&&R&&(Object.defineProperty($e,"target",{writable:!0,value:{value:V,name:C}}),R($e))};delete K["aria-invalid"];let mt,Q;const ge=[];let he=!1;(Og({value:V})||g)&&(B?mt=B(V):he=!0);const Oe=qe.map($e=>{if(!P.isValidElement($e))return null;let Pt;if(w){if(!Array.isArray(V))throw new Error(bu(2));Pt=V.some(rn=>PP(rn,$e.props.value)),Pt&&he&&ge.push($e.props.children)}else Pt=PP(V,$e.props.value),Pt&&he&&(Q=$e.props.children);return P.cloneElement($e,{"aria-selected":Pt?"true":"false",onClick:_t($e),onKeyUp:rn=>{rn.key===" "&&rn.preventDefault(),$e.props.onKeyUp&&$e.props.onKeyUp(rn)},role:"option",selected:Pt,value:void 0,"data-value":$e.props.value})});he&&(w?ge.length===0?mt=null:mt=ge.reduce(($e,Pt,rn)=>($e.push(Pt),rn<ge.length-1&&$e.push(", "),$e),[]):mt=Q);let je=we;!s&&Ce&&ve&&(je=We.clientWidth);let Je;typeof z<"u"?Je=z:Je=p?null:0;const ze=U.id||(C?`mui-component-select-${C}`:void 0),Te=M({},t,{variant:j,value:V,open:dn,error:m}),Ln=Iee(Te),Kn=M({},S.PaperProps,(r=S.slotProps)==null?void 0:r.paper),Vr=Js();return _.jsxs(P.Fragment,{children:[_.jsx(Ree,M({ref:Ne,tabIndex:Je,role:"combobox","aria-controls":Vr,"aria-disabled":p?"true":void 0,"aria-expanded":dn?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[x,ze].filter(Boolean).join(" ")||void 0,"aria-describedby":i,onKeyDown:Ct,onMouseDown:p||N?null:pe,onBlur:Yt,onFocus:A},U,{ownerState:Te,className:Pe(U.className,Ln.select,u),id:ze,children:Dee(mt)?OP||(OP=_.jsx("span",{className:"notranslate",children:""})):mt})),_.jsx(Aee,M({"aria-invalid":m,value:Array.isArray(V)?V.join(","):V,name:C,ref:le,"aria-hidden":!0,onChange:tt,tabIndex:-1,disabled:p,className:Ln.nativeInput,autoFocus:a,ownerState:Te},K)),_.jsx(Mee,{as:y,className:Ln.icon,ownerState:Te}),_.jsx(iee,M({id:`menu-${C||""}`,anchorEl:We,open:dn,onClose:He,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},S,{MenuListProps:M({"aria-labelledby":x,role:"listbox","aria-multiselectable":w?"true":void 0,disableListWrap:!0,id:Vr},S.MenuListProps),slotProps:M({},S.slotProps,{paper:M({},Kn,{style:M({minWidth:je},Kn!=null?Kn.style:null)})}),children:Oe}))]})}),Lee=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],kee=["root"],Nee=e=>{const{classes:t}=e;return t},p_={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>vr(e)&&e!=="variant",slot:"Root"},Fee=H(u_,p_)(""),jee=H(h_,p_)(""),Bee=H(s_,p_)(""),Cf=P.forwardRef(function(t,n){const r=et({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:d=bX,id:h,input:p,inputProps:g,label:m,labelId:y,MenuProps:b,multiple:x=!1,native:S=!1,onClose:w,onOpen:C,open:R,renderValue:O,SelectDisplayProps:T,variant:A="outlined"}=r,L=de(r,Lee),I=S?gee:$ee,N=Co(),B=Za({props:r,muiFormControl:N,states:["variant","error"]}),U=B.variant||A,z=M({},r,{variant:U,classes:a}),F=Nee(z),j=de(F,kee),K=p||{standard:_.jsx(Fee,{ownerState:z}),outlined:_.jsx(jee,{label:m,ownerState:z}),filled:_.jsx(Bee,{ownerState:z})}[U],V=vn(n,Ku(K));return _.jsx(P.Fragment,{children:P.cloneElement(K,M({inputComponent:I,inputProps:M({children:o,error:B.error,IconComponent:d,variant:U,type:void 0,multiple:x},S?{id:h}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:y,MenuProps:b,onClose:w,onOpen:C,open:R,renderValue:O,SelectDisplayProps:M({id:h},T)},g,{classes:g?Qo(j,g.classes):j},p?p.props.inputProps:{})},(x&&S||u)&&U==="outlined"?{notched:!0}:{},{ref:V,className:Pe(K.props.className,s,F.root)},!p&&{variant:U},L))})});Cf.muiName="Select";function Uee(e){return Be("MuiSkeleton",e)}Le("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Wee=["animation","className","component","height","style","variant","width"];let Rg=e=>e,RP,MP,AP,DP;const Hee=e=>{const{classes:t,variant:n,animation:r,hasChildren:i,width:o,height:a}=e;return Ue({root:["root",n,r,i&&"withChildren",i&&!o&&"fitContent",i&&!a&&"heightAuto"]},Uee,t)},zee=Xi(RP||(RP=Rg`
|
|
207
|
+
0% {
|
|
208
|
+
opacity: 1;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
50% {
|
|
212
|
+
opacity: 0.4;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
100% {
|
|
216
|
+
opacity: 1;
|
|
217
|
+
}
|
|
218
|
+
`)),Vee=Xi(MP||(MP=Rg`
|
|
219
|
+
0% {
|
|
220
|
+
transform: translateX(-100%);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
50% {
|
|
224
|
+
/* +0.5s of delay between each loop */
|
|
225
|
+
transform: translateX(100%);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
100% {
|
|
229
|
+
transform: translateX(100%);
|
|
230
|
+
}
|
|
231
|
+
`)),Gee=H("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const n=QG(e.shape.borderRadius)||"px",r=JG(e.shape.borderRadius);return M({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:zd(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&Oi(AP||(AP=Rg`
|
|
232
|
+
animation: ${0} 2s ease-in-out 0.5s infinite;
|
|
233
|
+
`),zee),({ownerState:e,theme:t})=>e.animation==="wave"&&Oi(DP||(DP=Rg`
|
|
234
|
+
position: relative;
|
|
235
|
+
overflow: hidden;
|
|
236
|
+
|
|
237
|
+
/* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
|
|
238
|
+
-webkit-mask-image: -webkit-radial-gradient(white, black);
|
|
239
|
+
|
|
240
|
+
&::after {
|
|
241
|
+
animation: ${0} 2s linear 0.5s infinite;
|
|
242
|
+
background: linear-gradient(
|
|
243
|
+
90deg,
|
|
244
|
+
transparent,
|
|
245
|
+
${0},
|
|
246
|
+
transparent
|
|
247
|
+
);
|
|
248
|
+
content: '';
|
|
249
|
+
position: absolute;
|
|
250
|
+
transform: translateX(-100%); /* Avoid flash during server-side hydration */
|
|
251
|
+
bottom: 0;
|
|
252
|
+
left: 0;
|
|
253
|
+
right: 0;
|
|
254
|
+
top: 0;
|
|
255
|
+
}
|
|
256
|
+
`),Vee,(t.vars||t).palette.action.hover)),du=P.forwardRef(function(t,n){const r=et({props:t,name:"MuiSkeleton"}),{animation:i="pulse",className:o,component:a="span",height:s,style:l,variant:u="text",width:d}=r,h=de(r,Wee),p=M({},r,{animation:i,component:a,variant:u,hasChildren:!!h.children}),g=Hee(p);return _.jsx(Gee,M({as:a,ref:n,className:Pe(g.root,o),ownerState:p},h,{style:M({width:d,height:s},l)}))});function qee(e){return Be("MuiSwitch",e)}const pn=Le("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Kee=["className","color","edge","size","sx"],Yee=e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:a}=e,s={root:["root",n&&`edge${me(n)}`,`size${me(r)}`],switchBase:["switchBase",`color${me(i)}`,o&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Ue(s,qee,t);return M({},t,l)},Xee=H("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${me(n.edge)}`],t[`size${me(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${pn.thumb}`]:{width:16,height:16},[`& .${pn.switchBase}`]:{padding:4,[`&.${pn.checked}`]:{transform:"translateX(16px)"}}}}]}),Zee=H(CL,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${pn.input}`]:t.input},n.color!=="default"&&t[`color${me(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${pn.checked}`]:{transform:"translateX(20px)"},[`&.${pn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${pn.checked} + .${pn.track}`]:{opacity:.5},[`&.${pn.disabled} + .${pn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${pn.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:er(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${pn.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:er(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${pn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?iv(e.palette[t].main,.62):rv(e.palette[t].main,.55)}`}},[`&.${pn.checked} + .${pn.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),Qee=H("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),Jee=H("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),cx=P.forwardRef(function(t,n){const r=et({props:t,name:"MuiSwitch"}),{className:i,color:o="primary",edge:a=!1,size:s="medium",sx:l}=r,u=de(r,Kee),d=M({},r,{color:o,edge:a,size:s}),h=Yee(d),p=_.jsx(Jee,{className:h.thumb,ownerState:d});return _.jsxs(Xee,{className:Pe(h.root,i),sx:l,ownerState:d,children:[_.jsx(Zee,M({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:d},u,{classes:M({},h,{root:h.switchBase})})),_.jsx(Qee,{className:h.track,ownerState:d})]})}),ete=P.createContext(),tte=P.createContext();function nte(e){return Be("MuiTableCell",e)}const rte=Le("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),ite=["align","className","component","padding","scope","size","sortDirection","variant"],ote=e=>{const{classes:t,variant:n,align:r,padding:i,size:o,stickyHeader:a}=e,s={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${me(r)}`,i!=="normal"&&`padding${me(i)}`,`size${me(o)}`]};return Ue(s,nte,t)},ate=H("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${me(n.size)}`],n.padding!=="normal"&&t[`padding${me(n.padding)}`],n.align!=="inherit"&&t[`align${me(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>M({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
257
|
+
${e.palette.mode==="light"?iv(er(e.palette.divider,1),.88):rv(er(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${rte.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),dx=P.forwardRef(function(t,n){const r=et({props:t,name:"MuiTableCell"}),{align:i="inherit",className:o,component:a,padding:s,scope:l,size:u,sortDirection:d,variant:h}=r,p=de(r,ite),g=P.useContext(ete),m=P.useContext(tte),y=m&&m.variant==="head";let b;a?b=a:b=y?"th":"td";let x=l;b==="td"?x=void 0:!x&&y&&(x="col");const S=h||m&&m.variant,w=M({},r,{align:i,component:b,padding:s||(g&&g.padding?g.padding:"normal"),size:u||(g&&g.size?g.size:"medium"),sortDirection:d,stickyHeader:S==="head"&&g&&g.stickyHeader,variant:S}),C=ote(w);let R=null;return d&&(R=d==="asc"?"ascending":"descending"),_.jsx(ate,M({as:b,ref:n,className:Pe(C.root,o),"aria-sort":R,scope:x,ownerState:w},p))});function ste(e){return Be("MuiToolbar",e)}Le("MuiToolbar",["root","gutters","regular","dense"]);const lte=["className","component","disableGutters","variant"],ute=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Ue({root:["root",!n&&"gutters",r]},ste,t)},cte=H("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>M({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),UL=P.forwardRef(function(t,n){const r=et({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:a=!1,variant:s="regular"}=r,l=de(r,lte),u=M({},r,{component:o,disableGutters:a,variant:s}),d=ute(u);return _.jsx(cte,M({as:o,className:Pe(d.root,i),ref:n,ownerState:u},l))}),dte=$n(_.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),fte=$n(_.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),hte=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],pte=P.forwardRef(function(t,n){var r,i,o,a,s,l,u,d;const{backIconButtonProps:h,count:p,disabled:g=!1,getItemAriaLabel:m,nextIconButtonProps:y,onPageChange:b,page:x,rowsPerPage:S,showFirstButton:w,showLastButton:C,slots:R={},slotProps:O={}}=t,T=de(t,hte),A=nv(),L=ue=>{b(ue,0)},I=ue=>{b(ue,x-1)},N=ue=>{b(ue,x+1)},B=ue=>{b(ue,Math.max(0,Math.ceil(p/S)-1))},U=(r=R.firstButton)!=null?r:La,z=(i=R.lastButton)!=null?i:La,F=(o=R.nextButton)!=null?o:La,j=(a=R.previousButton)!=null?a:La,K=(s=R.firstButtonIcon)!=null?s:Tee,V=(l=R.lastButtonIcon)!=null?l:Eee,J=(u=R.nextButtonIcon)!=null?u:fte,oe=(d=R.previousButtonIcon)!=null?d:dte,ce=A?z:U,le=A?F:j,Me=A?j:F,ve=A?U:z,ye=A?O.lastButton:O.firstButton,Ce=A?O.nextButton:O.previousButton,we=A?O.previousButton:O.nextButton,fe=A?O.firstButton:O.lastButton;return _.jsxs("div",M({ref:n},T,{children:[w&&_.jsx(ce,M({onClick:L,disabled:g||x===0,"aria-label":m("first",x),title:m("first",x)},ye,{children:A?_.jsx(V,M({},O.lastButtonIcon)):_.jsx(K,M({},O.firstButtonIcon))})),_.jsx(le,M({onClick:I,disabled:g||x===0,color:"inherit","aria-label":m("previous",x),title:m("previous",x)},Ce??h,{children:A?_.jsx(J,M({},O.nextButtonIcon)):_.jsx(oe,M({},O.previousButtonIcon))})),_.jsx(Me,M({onClick:N,disabled:g||(p!==-1?x>=Math.ceil(p/S)-1:!1),color:"inherit","aria-label":m("next",x),title:m("next",x)},we??y,{children:A?_.jsx(oe,M({},O.previousButtonIcon)):_.jsx(J,M({},O.nextButtonIcon))})),C&&_.jsx(ve,M({onClick:B,disabled:g||x>=Math.ceil(p/S)-1,"aria-label":m("last",x),title:m("last",x)},fe,{children:A?_.jsx(K,M({},O.firstButtonIcon)):_.jsx(V,M({},O.lastButtonIcon))}))]}))});function gte(e){return Be("MuiTablePagination",e)}const Sd=Le("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var IP;const mte=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],vte=H(dx,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),yte=H(UL,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>M({[`& .${Sd.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Sd.actions}`]:{flexShrink:0,marginLeft:20}})),bte=H("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),xte=H("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>M({},e.typography.body2,{flexShrink:0})),wte=H(Cf,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>M({[`& .${Sd.selectIcon}`]:t.selectIcon,[`& .${Sd.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Sd.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),_te=H(d_,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),Cte=H("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>M({},e.typography.body2,{flexShrink:0}));function Ste({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function Tte(e){return`Go to ${e} page`}const Ete=e=>{const{classes:t}=e;return Ue({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},gte,t)},Ote=P.forwardRef(function(t,n){var r;const i=et({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=pte,backIconButtonProps:a,className:s,colSpan:l,component:u=dx,count:d,disabled:h=!1,getItemAriaLabel:p=Tte,labelDisplayedRows:g=Ste,labelRowsPerPage:m="Rows per page:",nextIconButtonProps:y,onPageChange:b,onRowsPerPageChange:x,page:S,rowsPerPage:w,rowsPerPageOptions:C=[10,25,50,100],SelectProps:R={},showFirstButton:O=!1,showLastButton:T=!1,slotProps:A={},slots:L={}}=i,I=de(i,mte),N=i,B=Ete(N),U=(r=A==null?void 0:A.select)!=null?r:R,z=U.native?"option":_te;let F;(u===dx||u==="td")&&(F=l||1e3);const j=Js(U.id),K=Js(U.labelId),V=()=>d===-1?(S+1)*w:w===-1?d:Math.min(d,(S+1)*w);return _.jsx(vte,M({colSpan:F,ref:n,as:u,ownerState:N,className:Pe(B.root,s)},I,{children:_.jsxs(yte,{className:B.toolbar,children:[_.jsx(bte,{className:B.spacer}),C.length>1&&_.jsx(xte,{className:B.selectLabel,id:K,children:m}),C.length>1&&_.jsx(wte,M({variant:"standard"},!U.variant&&{input:IP||(IP=_.jsx(gv,{}))},{value:w,onChange:x,id:j,labelId:K},U,{classes:M({},U.classes,{root:Pe(B.input,B.selectRoot,(U.classes||{}).root),select:Pe(B.select,(U.classes||{}).select),icon:Pe(B.selectIcon,(U.classes||{}).icon)}),disabled:h,children:C.map(J=>Xo(z,M({},!Gd(z)&&{ownerState:N},{className:B.menuItem,key:J.label?J.label:J,value:J.value?J.value:J}),J.label?J.label:J))})),_.jsx(Cte,{className:B.displayedRows,children:g({from:d===0?0:S*w+1,to:V(),count:d===-1?-1:d,page:S})}),_.jsx(o,{className:B.actions,backIconButtonProps:a,count:d,nextIconButtonProps:y,onPageChange:b,page:S,rowsPerPage:w,showFirstButton:O,showLastButton:T,slotProps:A.actions,slots:L.actions,getItemAriaLabel:p,disabled:h})]})}))});function Pte(e){return Be("MuiTextField",e)}Le("MuiTextField",["root"]);const Rte=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Mte={standard:u_,filled:s_,outlined:h_},Ate=e=>{const{classes:t}=e;return Ue({root:["root"]},Pte,t)},Dte=H(IL,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),g_=P.forwardRef(function(t,n){const r=et({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:a,className:s,color:l="primary",defaultValue:u,disabled:d=!1,error:h=!1,FormHelperTextProps:p,fullWidth:g=!1,helperText:m,id:y,InputLabelProps:b,inputProps:x,InputProps:S,inputRef:w,label:C,maxRows:R,minRows:O,multiline:T=!1,name:A,onBlur:L,onChange:I,onFocus:N,placeholder:B,required:U=!1,rows:z,select:F=!1,SelectProps:j,type:K,value:V,variant:J="outlined"}=r,oe=de(r,Rte),ce=M({},r,{autoFocus:o,color:l,disabled:d,error:h,fullWidth:g,multiline:T,required:U,select:F,variant:J}),le=Ate(ce),Me={};J==="outlined"&&(b&&typeof b.shrink<"u"&&(Me.notched=b.shrink),Me.label=C),F&&((!j||!j.native)&&(Me.id=void 0),Me["aria-describedby"]=void 0);const ve=Js(y),ye=m&&ve?`${ve}-helper-text`:void 0,Ce=C&&ve?`${ve}-label`:void 0,we=Mte[J],fe=_.jsx(we,M({"aria-describedby":ye,autoComplete:i,autoFocus:o,defaultValue:u,fullWidth:g,multiline:T,name:A,rows:z,maxRows:R,minRows:O,type:K,value:V,id:ve,inputRef:w,onBlur:L,onChange:I,onFocus:N,placeholder:B,inputProps:x},Me,S));return _.jsxs(Dte,M({className:Pe(le.root,s),disabled:d,error:h,fullWidth:g,ref:n,required:U,color:l,variant:J,ownerState:ce},oe,{children:[C!=null&&C!==""&&_.jsx(CJ,M({htmlFor:ve,id:Ce},b,{children:C})),F?_.jsx(Cf,M({"aria-describedby":ye,id:ve,labelId:Ce,value:V,input:fe},j,{children:a})):fe,m&&_.jsx(HQ,M({id:ye},p,{children:m}))]}))}),Xh=Le("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),Ite=P.createContext({}),$te=P.createContext(void 0);function Lte(e){return Be("MuiToggleButtonGroup",e)}const ln=Le("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),kte=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],Nte=e=>{const{classes:t,orientation:n,fullWidth:r,disabled:i}=e,o={root:["root",n==="vertical"&&"vertical",r&&"fullWidth"],grouped:["grouped",`grouped${me(n)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Ue(o,Lte,t)},Fte=H("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ln.grouped}`]:t.grouped},{[`& .${ln.grouped}`]:t[`grouped${me(n.orientation)}`]},{[`& .${ln.firstButton}`]:t.firstButton},{[`& .${ln.lastButton}`]:t.lastButton},{[`& .${ln.middleButton}`]:t.middleButton},t.root,n.orientation==="vertical"&&t.vertical,n.fullWidth&&t.fullWidth]}})(({ownerState:e,theme:t})=>M({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},e.orientation==="vertical"&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${ln.grouped}`]:M({},e.orientation==="horizontal"?{[`&.${ln.selected} + .${ln.grouped}.${ln.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${ln.selected} + .${ln.grouped}.${ln.selected}`]:{borderTop:0,marginTop:0}})},e.orientation==="horizontal"?{[`& .${ln.firstButton},& .${ln.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${ln.lastButton},& .${ln.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${ln.firstButton},& .${ln.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${ln.lastButton},& .${ln.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},e.orientation==="horizontal"?{[`& .${ln.lastButton}.${Xh.disabled},& .${ln.middleButton}.${Xh.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${ln.lastButton}.${Xh.disabled},& .${ln.middleButton}.${Xh.disabled}`]:{borderTop:"1px solid transparent"}})),jte=P.forwardRef(function(t,n){const r=et({props:t,name:"MuiToggleButtonGroup"}),{children:i,className:o,color:a="standard",disabled:s=!1,exclusive:l=!1,fullWidth:u=!1,onChange:d,orientation:h="horizontal",size:p="medium",value:g}=r,m=de(r,kte),y=M({},r,{disabled:s,fullWidth:u,orientation:h,size:p}),b=Nte(y),x=P.useCallback((T,A)=>{if(!d)return;const L=g&&g.indexOf(A);let I;g&&L>=0?(I=g.slice(),I.splice(L,1)):I=g?g.concat(A):[A],d(T,I)},[d,g]),S=P.useCallback((T,A)=>{d&&d(T,g===A?null:A)},[d,g]),w=P.useMemo(()=>({className:b.grouped,onChange:l?S:x,value:g,size:p,fullWidth:u,color:a,disabled:s}),[b.grouped,l,S,x,g,p,u,a,s]),C=Nq(i),R=C.length,O=T=>{const A=T===0,L=T===R-1;return A&&L?"":A?b.firstButton:L?b.lastButton:b.middleButton};return _.jsx(Fte,M({role:"group",className:Pe(b.root,o),ref:n,ownerState:y},m,{children:_.jsx(Ite.Provider,{value:w,children:C.map((T,A)=>_.jsx($te.Provider,{value:O(A),children:T},A))})}))});function WL(e,t){const n=M({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=M({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=M({},o),Object.keys(i).forEach(a=>{n[r][a]=WL(i[a],o[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Bte(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,a)=>{if(a){const s=t(a);s!==""&&o.push(s),n&&n[a]&&o.push(n[a])}return o},[]).join(" ")}),r}const $P=e=>e,Ute=()=>{let e=$P;return{configure(t){e=t},generate(t){return e(t)},reset(){e=$P}}},Wte=Ute(),Hte={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function HL(e,t,n="Mui"){const r=Hte[t];return r?`${n}-${r}`:`${Wte.generate(e)}-${t}`}function zte(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=HL(e,i,n)}),r}function Vte(e){return HL("MuiLoadingButton",e)}const Lo=zte("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),Gte=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],qte=e=>{const{loading:t,loadingPosition:n,classes:r}=e,i={root:["root",t&&"loading"],startIcon:[t&&`startIconLoading${me(n)}`],endIcon:[t&&`endIconLoading${me(n)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${me(n)}`]},o=Bte(i,Vte,r);return M({},r,o)},Kte=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",Yte=H(Ko,{shouldForwardProp:e=>Kte(e)||e==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${Lo.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${Lo.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})(({ownerState:e,theme:t})=>M({[`& .${Lo.startIconLoadingStart}, & .${Lo.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},e.loadingPosition==="center"&&{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${Lo.loading}`]:{color:"transparent"}},e.loadingPosition==="start"&&e.fullWidth&&{[`& .${Lo.startIconLoadingStart}, & .${Lo.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}},e.loadingPosition==="end"&&e.fullWidth&&{[`& .${Lo.startIconLoadingStart}, & .${Lo.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}})),Xte=H("span",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.loadingIndicator,t[`loadingIndicator${me(n.loadingPosition)}`]]}})(({theme:e,ownerState:t})=>M({position:"absolute",visibility:"visible",display:"flex"},t.loadingPosition==="start"&&(t.variant==="outlined"||t.variant==="contained")&&{left:t.size==="small"?10:14},t.loadingPosition==="start"&&t.variant==="text"&&{left:6},t.loadingPosition==="center"&&{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled},t.loadingPosition==="end"&&(t.variant==="outlined"||t.variant==="contained")&&{right:t.size==="small"?10:14},t.loadingPosition==="end"&&t.variant==="text"&&{right:6},t.loadingPosition==="start"&&t.fullWidth&&{position:"relative",left:-10},t.loadingPosition==="end"&&t.fullWidth&&{position:"relative",right:-10})),Zte=P.forwardRef(function(t,n){const r=P.useContext(wL),i=WL(r,t),o=et({props:i,name:"MuiLoadingButton"}),{children:a,disabled:s=!1,id:l,loading:u=!1,loadingIndicator:d,loadingPosition:h="center",variant:p="text"}=o,g=de(o,Gte),m=Js(l),y=d??_.jsx(yv,{"aria-labelledby":m,color:"inherit",size:16}),b=M({},o,{disabled:s,loading:u,loadingIndicator:y,loadingPosition:h,variant:p}),x=qte(b),S=u?_.jsx(Xte,{className:x.loadingIndicator,ownerState:b,children:y}):null;return _.jsxs(Yte,M({disabled:s||u,id:m,ref:n},g,{variant:p,classes:x,ownerState:b,children:[b.loadingPosition==="end"?a:S,b.loadingPosition==="end"?S:a]}))}),Qte=H(OL)`
|
|
258
|
+
.MuiDialog-paper {
|
|
259
|
+
min-height: 124px;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
263
|
+
padding-top: 72px;
|
|
264
|
+
}
|
|
265
|
+
`,Jte=H(rQ)`
|
|
266
|
+
padding-top: 24px;
|
|
267
|
+
padding-bottom: 24px;
|
|
268
|
+
`,ene=H(RL)`
|
|
269
|
+
padding-top: 8px !important;
|
|
270
|
+
overflow: hidden;
|
|
271
|
+
|
|
272
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
273
|
+
padding: 16px 16px;
|
|
274
|
+
}
|
|
275
|
+
`,tne=H(PL)`
|
|
276
|
+
padding: 8px 15px 8px 20px;
|
|
277
|
+
flex-wrap: wrap;
|
|
278
|
+
`,LP=H(Zte)`
|
|
279
|
+
margin: 0 !important;
|
|
280
|
+
white-space: nowrap;
|
|
281
|
+
`,nne=H(UL)`
|
|
282
|
+
display: flex;
|
|
283
|
+
flex-direction: row;
|
|
284
|
+
justify-content: space-between;
|
|
285
|
+
height: 72px;
|
|
286
|
+
padding-right: 16px;
|
|
287
|
+
`,m_=({title:e,actions:t,children:n,PaperComponent:r,PaperProps:i,dividers:o,...a})=>{const s=or(),l=Ha(s.breakpoints.down("sm")),{fullScreen:u,fullWidth:d}=a,h=l&&(u||d);return _.jsxs(Qte,{PaperComponent:r,PaperProps:{...i},...a,children:[h&&_.jsx(kK,{color:"inherit",variant:"elevation",elevation:0,children:_.jsx(nne,{disableGutters:!0,children:t==null?void 0:t.map(p=>_.jsx(LP,{onClick:p.trigger,variant:"text",type:p.type,disabled:p.disabled,children:p.mobileLabel},`${p.label}-${p.type}`))})}),_.jsx(Jte,{id:"dialog-title",color:"initial",children:e}),!!n&&_.jsx(ene,{dividers:o,children:n}),!h&&_.jsx(tne,{children:t==null?void 0:t.map(p=>_.jsx(LP,{loading:p.loading,onClick:p.trigger,variant:"text",type:p.type,disabled:p.disabled,children:p.label},`${p.label}-${p.type}`))})]})},rne=H(g_,{shouldForwardProp:e=>e!=="$customBorder"})`
|
|
288
|
+
& .MuiOutlinedInput-root {
|
|
289
|
+
&:hover fieldset {
|
|
290
|
+
border: ${({$customBorder:e})=>!!e&&e};
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
& .${Bo.notchedOutline} {
|
|
295
|
+
border: ${({$customBorder:e})=>!!e&&e};
|
|
296
|
+
}
|
|
297
|
+
`,ine=({options:e=[],label:t,value:n,inputId:r,getOptionLabel:i=l=>l.name,getOptionValue:o=l=>l.id,$customBorder:a,...s})=>_.jsx(rne,{inputProps:{id:r},label:t,value:n??"",select:!0,InputLabelProps:{htmlFor:r},...s,$customBorder:a,children:e.map(l=>{const u=i(l),d=o(l);return _.jsx(d_,{value:d,children:u},`${u}-${d}`)})});function one(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Ws(t[0])&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const kP={};function fx(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Ws(t[0])&&kP[t[0]]||(Ws(t[0])&&(kP[t[0]]=new Date),one(...t))}const zL=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},NP=(e,t,n)=>{e.loadNamespaces(t,zL(e,n))},FP=(e,t,n,r)=>{Ws(n)&&(n=[n]),n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,zL(e,r))},ane=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],i=t.options?t.options.fallbackLng:!1,o=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(s,l)=>{const u=t.services.backendConnector.state[`${s}|${l}`];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||a(r,e)&&(!i||a(o,e)))},sne=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(fx("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(i,o)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!o(i.isLanguageChangingTo,e))return!1}}):ane(e,t,n)},Ws=e=>typeof e=="string",lne=e=>typeof e=="object"&&e!==null,une=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,cne={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},dne=e=>cne[e],fne=e=>e.replace(une,dne);let hx={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:fne};const hne=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};hx={...hx,...e}},pne=()=>hx;let VL;const gne=e=>{VL=e},mne=()=>VL,vne={type:"3rdParty",init(e){hne(e.options.react),gne(e)}},yne=cf();class bne{constructor(){rt(this,"getUsedNamespaces",()=>Object.keys(this.usedNamespaces));this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}}const xne=(e,t)=>{const n=Rn();return At(()=>{n.current=e},[e,t]),n.current},GL=(e,t,n,r)=>e.getFixedT(t,n,r),wne=(e,t,n,r)=>Mt(GL(e,t,n,r),[e,t,n,r]),yn=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:i}=ia(yne)||{},o=n||r||mne();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new bne),!o){fx("You will need to pass in an i18next instance by using initReactI18next");const C=(O,T)=>Ws(T)?T:lne(T)&&Ws(T.defaultValue)?T.defaultValue:Array.isArray(O)?O[O.length-1]:O,R=[C,{},!1];return R.t=C,R.i18n={},R.ready=!1,R}o.options.react&&o.options.react.wait!==void 0&&fx("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...pne(),...o.options.react,...t},{useSuspense:s,keyPrefix:l}=a;let u=e||i||o.options&&o.options.defaultNS;u=Ws(u)?[u]:u||["translation"],o.reportNamespaces.addUsedNamespaces&&o.reportNamespaces.addUsedNamespaces(u);const d=(o.isInitialized||o.initializedStoreOnce)&&u.every(C=>sne(C,o,a)),h=wne(o,t.lng||null,a.nsMode==="fallback"?u:u[0],l),p=()=>h,g=()=>GL(o,t.lng||null,a.nsMode==="fallback"?u:u[0],l),[m,y]=Nn(p);let b=u.join();t.lng&&(b=`${t.lng}${b}`);const x=xne(b),S=Rn(!0);At(()=>{const{bindI18n:C,bindI18nStore:R}=a;S.current=!0,!d&&!s&&(t.lng?FP(o,t.lng,u,()=>{S.current&&y(g)}):NP(o,u,()=>{S.current&&y(g)})),d&&x&&x!==b&&S.current&&y(g);const O=()=>{S.current&&y(g)};return C&&o&&o.on(C,O),R&&o&&o.store.on(R,O),()=>{S.current=!1,C&&o&&C.split(" ").forEach(T=>o.off(T,O)),R&&o&&R.split(" ").forEach(T=>o.store.off(T,O))}},[o,b]),At(()=>{S.current&&d&&y(p)},[o,l,d]);const w=[m,o,d];if(w.t=m,w.i18n=o,w.ready=d,d||!d&&!s)return w;throw new Promise(C=>{t.lng?FP(o,t.lng,u,()=>C()):NP(o,u,()=>C())})};var v_={},Fb={};const _ne=Yi(qq);var jP;function Sf(){return jP||(jP=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=_ne}(Fb)),Fb}var Cne=Bt;Object.defineProperty(v_,"__esModule",{value:!0});var qL=v_.default=void 0,Sne=Cne(Sf()),Tne=_;qL=v_.default=(0,Sne.default)((0,Tne.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error");const KL={shouldForwardProp:e=>e!=="$direction"},y_=H("div")`
|
|
298
|
+
display: flex;
|
|
299
|
+
flex-direction: column;
|
|
300
|
+
align-items: center;
|
|
301
|
+
gap: 8px;
|
|
302
|
+
padding: 24px;
|
|
303
|
+
`,Ene=H("div",KL)`
|
|
304
|
+
display: flex;
|
|
305
|
+
align-items: center;
|
|
306
|
+
gap: 16px;
|
|
307
|
+
|
|
308
|
+
${({$direction:e})=>e==="vertical"?Oi`
|
|
309
|
+
flex-direction: column;
|
|
310
|
+
text-align: center;
|
|
311
|
+
`:Oi`
|
|
312
|
+
flex-direction: row;
|
|
313
|
+
`};
|
|
314
|
+
`,One=H(qL)`
|
|
315
|
+
color: ${({theme:e})=>e.palette.error.main};
|
|
316
|
+
`,Pne=H("div",KL)`
|
|
317
|
+
display: flex;
|
|
318
|
+
flex-direction: column;
|
|
319
|
+
gap: 8px;
|
|
320
|
+
|
|
321
|
+
${({$direction:e})=>{if(e==="vertical")return Oi`
|
|
322
|
+
text-align: center;
|
|
323
|
+
`}};
|
|
324
|
+
`,Rne=({error:e,title:t,message:n,direction:r="horizontal"})=>{const{t:i}=yn("common");return _.jsxs(Ene,{$direction:r,"data-testid":"common-error-msg",children:[_.jsx(One,{}),_.jsxs(Pne,{$direction:r,children:[_.jsx(Ye,{variant:"subtitle1","data-testid":"common-error-msg-title",component:"p",children:t||i("error-title")}),_.jsx(Ye,{variant:"body2","data-testid":"common-error-msg-description",children:(e==null?void 0:e.message)||n||i("error-message")})]})]})},Mne=()=>_.jsx(y_,{children:_.jsx(Rne,{direction:"vertical"})});class RNe extends Nz{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t){console.error("Client side error",{error:t})}render(){return this.state.hasError?_.jsx(Mne,{}):this.props.children}}const Ane=H("div")`
|
|
325
|
+
display: flex;
|
|
326
|
+
flex-direction: column;
|
|
327
|
+
height: 100%;
|
|
328
|
+
justify-content: flex-start;
|
|
329
|
+
overflow-y: overlay;
|
|
330
|
+
width: 100%;
|
|
331
|
+
|
|
332
|
+
@-moz-document url-prefix() {
|
|
333
|
+
overflow: auto;
|
|
334
|
+
}
|
|
335
|
+
`,b_=({children:e,className:t})=>_.jsx(Ane,{className:t,children:e}),Dne=H(wQ)`
|
|
336
|
+
.MuiDrawer-paper {
|
|
337
|
+
width: 100%;
|
|
338
|
+
|
|
339
|
+
${({theme:e})=>e.breakpoints.up("md")} {
|
|
340
|
+
width: 816px;
|
|
341
|
+
border-top-left-radius: 16px;
|
|
342
|
+
border-bottom-left-radius: 16px;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
`,Ine=({children:e,onClose:t,open:n,...r})=>_.jsx(Dne,{anchor:"right",open:n,onClose:t,...r,children:e}),$ne=H("div")`
|
|
346
|
+
display: flex;
|
|
347
|
+
align-items: center;
|
|
348
|
+
justify-content: center;
|
|
349
|
+
`,Lne=({linear:e,...t})=>e?_.jsx($J,{role:"progressbar","aria-label":"Loading...","aria-busy":"true","data-testid":"linear-progress",...t}):_.jsx($ne,{children:_.jsx(yv,{role:"progressbar","aria-label":"Loading...","aria-busy":"true","data-testid":"circular-progress",...t})});var Mg={exports:{}};/**
|
|
350
|
+
* @license
|
|
351
|
+
* Lodash <https://lodash.com/>
|
|
352
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
353
|
+
* Released under MIT license <https://lodash.com/license>
|
|
354
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
355
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
356
|
+
*/Mg.exports;(function(e,t){(function(){var n,r="4.18.1",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="Invalid `imports` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",p=1,g=2,m=4,y=1,b=2,x=1,S=2,w=4,C=8,R=16,O=32,T=64,A=128,L=256,I=512,N=30,B="...",U=800,z=16,F=1,j=2,K=3,V=1/0,J=9007199254740991,oe=17976931348623157e292,ce=NaN,le=4294967295,Me=le-1,ve=le>>>1,ye=[["ary",A],["bind",x],["bindKey",S],["curry",C],["curryRight",R],["flip",I],["partial",O],["partialRight",T],["rearg",L]],Ce="[object Arguments]",we="[object Array]",fe="[object AsyncFunction]",ue="[object Boolean]",Ne="[object Date]",We="[object DOMException]",be="[object Error]",pe="[object Function]",He="[object GeneratorFunction]",qe="[object Map]",tt="[object Number]",_t="[object Null]",Ct="[object Object]",dn="[object Promise]",Yt="[object Proxy]",mt="[object RegExp]",Q="[object Set]",ge="[object String]",he="[object Symbol]",Oe="[object Undefined]",je="[object WeakMap]",Je="[object WeakSet]",ze="[object ArrayBuffer]",Te="[object DataView]",Ln="[object Float32Array]",Kn="[object Float64Array]",Vr="[object Int8Array]",$e="[object Int16Array]",Pt="[object Int32Array]",rn="[object Uint8Array]",Gr="[object Uint8ClampedArray]",fa="[object Uint16Array]",yl="[object Uint32Array]",bl=/\b__p \+= '';/g,Zf=/\b(__p \+=) '' \+/g,pc=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xl=/&(?:amp|lt|gt|quot|#39);/g,Qf=/[&<>"']/g,Jf=RegExp(xl.source),sy=RegExp(Qf.source),eh=/<%-([\s\S]+?)%>/g,wl=/<%([\s\S]+?)%>/g,ts=/<%=([\s\S]+?)%>/g,ly=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,uy=/^\w*$/,G=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z=/[\\^$.*+?()[\]{}|]/g,ee=RegExp(Z.source),ae=/^\s+/,Se=/\s/,Ke=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,nt=/\{\n\/\* \[wrapped with (.+)\] \*/,ke=/,? & /,Fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,De=/[()=,{}\[\]\/\s]/,Ge=/\\(\\)?/g,at=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vt=/\w*$/,Wn=/^[-+]0x[0-9a-f]+$/i,zt=/^0b[01]+$/i,Rt=/^\[object .+?Constructor\]$/,on=/^0o[0-7]+$/i,ha=/^(?:0|[1-9]\d*)$/,ns=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Rr=/($^)/,si=/['\n\r\u2028\u2029\\]/g,pa="\\ud800-\\udfff",rs="\\u0300-\\u036f",Eo="\\ufe20-\\ufe2f",_l="\\u20d0-\\u20ff",is=rs+Eo+_l,St="\\u2700-\\u27bf",Qt="a-z\\xdf-\\xf6\\xf8-\\xff",ga="\\xac\\xb1\\xd7\\xf7",os="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",bn="\\u2000-\\u206f",ma=" \\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",gc="A-Z\\xc0-\\xd6\\xd8-\\xde",th="\\ufe0e\\ufe0f",oS=ga+os+bn+ma,cy="['’]",LB="["+pa+"]",aS="["+oS+"]",nh="["+is+"]",sS="\\d+",kB="["+St+"]",lS="["+Qt+"]",uS="[^"+pa+oS+sS+St+Qt+gc+"]",dy="\\ud83c[\\udffb-\\udfff]",NB="(?:"+nh+"|"+dy+")",cS="[^"+pa+"]",fy="(?:\\ud83c[\\udde6-\\uddff]){2}",hy="[\\ud800-\\udbff][\\udc00-\\udfff]",Cl="["+gc+"]",dS="\\u200d",fS="(?:"+lS+"|"+uS+")",FB="(?:"+Cl+"|"+uS+")",hS="(?:"+cy+"(?:d|ll|m|re|s|t|ve))?",pS="(?:"+cy+"(?:D|LL|M|RE|S|T|VE))?",gS=NB+"?",mS="["+th+"]?",jB="(?:"+dS+"(?:"+[cS,fy,hy].join("|")+")"+mS+gS+")*",BB="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",UB="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",vS=mS+gS+jB,WB="(?:"+[kB,fy,hy].join("|")+")"+vS,HB="(?:"+[cS+nh+"?",nh,fy,hy,LB].join("|")+")",zB=RegExp(cy,"g"),VB=RegExp(nh,"g"),py=RegExp(dy+"(?="+dy+")|"+HB+vS,"g"),GB=RegExp([Cl+"?"+lS+"+"+hS+"(?="+[aS,Cl,"$"].join("|")+")",FB+"+"+pS+"(?="+[aS,Cl+fS,"$"].join("|")+")",Cl+"?"+fS+"+"+hS,Cl+"+"+pS,UB,BB,sS,WB].join("|"),"g"),qB=RegExp("["+dS+pa+is+th+"]"),KB=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,YB=["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"],XB=-1,Jt={};Jt[Ln]=Jt[Kn]=Jt[Vr]=Jt[$e]=Jt[Pt]=Jt[rn]=Jt[Gr]=Jt[fa]=Jt[yl]=!0,Jt[Ce]=Jt[we]=Jt[ze]=Jt[ue]=Jt[Te]=Jt[Ne]=Jt[be]=Jt[pe]=Jt[qe]=Jt[tt]=Jt[Ct]=Jt[mt]=Jt[Q]=Jt[ge]=Jt[je]=!1;var Xt={};Xt[Ce]=Xt[we]=Xt[ze]=Xt[Te]=Xt[ue]=Xt[Ne]=Xt[Ln]=Xt[Kn]=Xt[Vr]=Xt[$e]=Xt[Pt]=Xt[qe]=Xt[tt]=Xt[Ct]=Xt[mt]=Xt[Q]=Xt[ge]=Xt[he]=Xt[rn]=Xt[Gr]=Xt[fa]=Xt[yl]=!0,Xt[be]=Xt[pe]=Xt[je]=!1;var ZB={À:"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"},QB={"&":"&","<":"<",">":">",'"':""","'":"'"},JB={"&":"&","<":"<",">":">",""":'"',"'":"'"},eU={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tU=parseFloat,nU=parseInt,yS=typeof zi=="object"&&zi&&zi.Object===Object&&zi,rU=typeof self=="object"&&self&&self.Object===Object&&self,ar=yS||rU||Function("return this")(),gy=t&&!t.nodeType&&t,as=gy&&!0&&e&&!e.nodeType&&e,bS=as&&as.exports===gy,my=bS&&yS.process,li=function(){try{var Y=as&&as.require&&as.require("util").types;return Y||my&&my.binding&&my.binding("util")}catch{}}(),xS=li&&li.isArrayBuffer,wS=li&&li.isDate,_S=li&&li.isMap,CS=li&&li.isRegExp,SS=li&&li.isSet,TS=li&&li.isTypedArray;function qr(Y,ne,te){switch(te.length){case 0:return Y.call(ne);case 1:return Y.call(ne,te[0]);case 2:return Y.call(ne,te[0],te[1]);case 3:return Y.call(ne,te[0],te[1],te[2])}return Y.apply(ne,te)}function iU(Y,ne,te,Ie){for(var it=-1,$t=Y==null?0:Y.length;++it<$t;){var Hn=Y[it];ne(Ie,Hn,te(Hn),Y)}return Ie}function Kr(Y,ne){for(var te=-1,Ie=Y==null?0:Y.length;++te<Ie&&ne(Y[te],te,Y)!==!1;);return Y}function oU(Y,ne){for(var te=Y==null?0:Y.length;te--&&ne(Y[te],te,Y)!==!1;);return Y}function ES(Y,ne){for(var te=-1,Ie=Y==null?0:Y.length;++te<Ie;)if(!ne(Y[te],te,Y))return!1;return!0}function va(Y,ne){for(var te=-1,Ie=Y==null?0:Y.length,it=0,$t=[];++te<Ie;){var Hn=Y[te];ne(Hn,te,Y)&&($t[it++]=Hn)}return $t}function rh(Y,ne){var te=Y==null?0:Y.length;return!!te&&Sl(Y,ne,0)>-1}function vy(Y,ne,te){for(var Ie=-1,it=Y==null?0:Y.length;++Ie<it;)if(te(ne,Y[Ie]))return!0;return!1}function an(Y,ne){for(var te=-1,Ie=Y==null?0:Y.length,it=Array(Ie);++te<Ie;)it[te]=ne(Y[te],te,Y);return it}function ya(Y,ne){for(var te=-1,Ie=ne.length,it=Y.length;++te<Ie;)Y[it+te]=ne[te];return Y}function yy(Y,ne,te,Ie){var it=-1,$t=Y==null?0:Y.length;for(Ie&&$t&&(te=Y[++it]);++it<$t;)te=ne(te,Y[it],it,Y);return te}function aU(Y,ne,te,Ie){var it=Y==null?0:Y.length;for(Ie&&it&&(te=Y[--it]);it--;)te=ne(te,Y[it],it,Y);return te}function by(Y,ne){for(var te=-1,Ie=Y==null?0:Y.length;++te<Ie;)if(ne(Y[te],te,Y))return!0;return!1}var sU=xy("length");function lU(Y){return Y.split("")}function uU(Y){return Y.match(Fe)||[]}function OS(Y,ne,te){var Ie;return te(Y,function(it,$t,Hn){if(ne(it,$t,Hn))return Ie=$t,!1}),Ie}function ih(Y,ne,te,Ie){for(var it=Y.length,$t=te+(Ie?1:-1);Ie?$t--:++$t<it;)if(ne(Y[$t],$t,Y))return $t;return-1}function Sl(Y,ne,te){return ne===ne?wU(Y,ne,te):ih(Y,PS,te)}function cU(Y,ne,te,Ie){for(var it=te-1,$t=Y.length;++it<$t;)if(Ie(Y[it],ne))return it;return-1}function PS(Y){return Y!==Y}function RS(Y,ne){var te=Y==null?0:Y.length;return te?_y(Y,ne)/te:ce}function xy(Y){return function(ne){return ne==null?n:ne[Y]}}function wy(Y){return function(ne){return Y==null?n:Y[ne]}}function MS(Y,ne,te,Ie,it){return it(Y,function($t,Hn,Gt){te=Ie?(Ie=!1,$t):ne(te,$t,Hn,Gt)}),te}function dU(Y,ne){var te=Y.length;for(Y.sort(ne);te--;)Y[te]=Y[te].value;return Y}function _y(Y,ne){for(var te,Ie=-1,it=Y.length;++Ie<it;){var $t=ne(Y[Ie]);$t!==n&&(te=te===n?$t:te+$t)}return te}function Cy(Y,ne){for(var te=-1,Ie=Array(Y);++te<Y;)Ie[te]=ne(te);return Ie}function fU(Y,ne){return an(ne,function(te){return[te,Y[te]]})}function AS(Y){return Y&&Y.slice(0,LS(Y)+1).replace(ae,"")}function Yr(Y){return function(ne){return Y(ne)}}function Sy(Y,ne){return an(ne,function(te){return Y[te]})}function mc(Y,ne){return Y.has(ne)}function DS(Y,ne){for(var te=-1,Ie=Y.length;++te<Ie&&Sl(ne,Y[te],0)>-1;);return te}function IS(Y,ne){for(var te=Y.length;te--&&Sl(ne,Y[te],0)>-1;);return te}function hU(Y,ne){for(var te=Y.length,Ie=0;te--;)Y[te]===ne&&++Ie;return Ie}var pU=wy(ZB),gU=wy(QB);function mU(Y){return"\\"+eU[Y]}function vU(Y,ne){return Y==null?n:Y[ne]}function Tl(Y){return qB.test(Y)}function yU(Y){return KB.test(Y)}function bU(Y){for(var ne,te=[];!(ne=Y.next()).done;)te.push(ne.value);return te}function Ty(Y){var ne=-1,te=Array(Y.size);return Y.forEach(function(Ie,it){te[++ne]=[it,Ie]}),te}function $S(Y,ne){return function(te){return Y(ne(te))}}function ba(Y,ne){for(var te=-1,Ie=Y.length,it=0,$t=[];++te<Ie;){var Hn=Y[te];(Hn===ne||Hn===h)&&(Y[te]=h,$t[it++]=te)}return $t}function oh(Y){var ne=-1,te=Array(Y.size);return Y.forEach(function(Ie){te[++ne]=Ie}),te}function xU(Y){var ne=-1,te=Array(Y.size);return Y.forEach(function(Ie){te[++ne]=[Ie,Ie]}),te}function wU(Y,ne,te){for(var Ie=te-1,it=Y.length;++Ie<it;)if(Y[Ie]===ne)return Ie;return-1}function _U(Y,ne,te){for(var Ie=te+1;Ie--;)if(Y[Ie]===ne)return Ie;return Ie}function El(Y){return Tl(Y)?SU(Y):sU(Y)}function Ni(Y){return Tl(Y)?TU(Y):lU(Y)}function LS(Y){for(var ne=Y.length;ne--&&Se.test(Y.charAt(ne)););return ne}var CU=wy(JB);function SU(Y){for(var ne=py.lastIndex=0;py.test(Y);)++ne;return ne}function TU(Y){return Y.match(py)||[]}function EU(Y){return Y.match(GB)||[]}var OU=function Y(ne){ne=ne==null?ar:Ol.defaults(ar.Object(),ne,Ol.pick(ar,YB));var te=ne.Array,Ie=ne.Date,it=ne.Error,$t=ne.Function,Hn=ne.Math,Gt=ne.Object,Ey=ne.RegExp,PU=ne.String,ui=ne.TypeError,ah=te.prototype,RU=$t.prototype,Pl=Gt.prototype,sh=ne["__core-js_shared__"],lh=RU.toString,Ft=Pl.hasOwnProperty,MU=0,kS=function(){var c=/[^.]+$/.exec(sh&&sh.keys&&sh.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),uh=Pl.toString,AU=lh.call(Gt),DU=ar._,IU=Ey("^"+lh.call(Ft).replace(Z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ch=bS?ne.Buffer:n,xa=ne.Symbol,dh=ne.Uint8Array,NS=ch?ch.allocUnsafe:n,fh=$S(Gt.getPrototypeOf,Gt),FS=Gt.create,jS=Pl.propertyIsEnumerable,hh=ah.splice,BS=xa?xa.isConcatSpreadable:n,vc=xa?xa.iterator:n,ss=xa?xa.toStringTag:n,ph=function(){try{var c=fs(Gt,"defineProperty");return c({},"",{}),c}catch{}}(),$U=ne.clearTimeout!==ar.clearTimeout&&ne.clearTimeout,LU=Ie&&Ie.now!==ar.Date.now&&Ie.now,kU=ne.setTimeout!==ar.setTimeout&&ne.setTimeout,gh=Hn.ceil,mh=Hn.floor,Oy=Gt.getOwnPropertySymbols,NU=ch?ch.isBuffer:n,US=ne.isFinite,FU=ah.join,jU=$S(Gt.keys,Gt),zn=Hn.max,dr=Hn.min,BU=Ie.now,UU=ne.parseInt,WS=Hn.random,WU=ah.reverse,Py=fs(ne,"DataView"),yc=fs(ne,"Map"),Ry=fs(ne,"Promise"),Rl=fs(ne,"Set"),bc=fs(ne,"WeakMap"),xc=fs(Gt,"create"),vh=bc&&new bc,Ml={},HU=hs(Py),zU=hs(yc),VU=hs(Ry),GU=hs(Rl),qU=hs(bc),yh=xa?xa.prototype:n,wc=yh?yh.valueOf:n,HS=yh?yh.toString:n;function $(c){if(xn(c)&&!st(c)&&!(c instanceof wt)){if(c instanceof ci)return c;if(Ft.call(c,"__wrapped__"))return zT(c)}return new ci(c)}var Al=function(){function c(){}return function(f){if(!fn(f))return{};if(FS)return FS(f);c.prototype=f;var v=new c;return c.prototype=n,v}}();function bh(){}function ci(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=n}$.templateSettings={escape:eh,evaluate:wl,interpolate:ts,variable:"",imports:{_:$}},$.prototype=bh.prototype,$.prototype.constructor=$,ci.prototype=Al(bh.prototype),ci.prototype.constructor=ci;function wt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=le,this.__views__=[]}function KU(){var c=new wt(this.__wrapped__);return c.__actions__=Mr(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=Mr(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=Mr(this.__views__),c}function YU(){if(this.__filtered__){var c=new wt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}function XU(){var c=this.__wrapped__.value(),f=this.__dir__,v=st(c),E=f<0,D=v?c.length:0,k=l3(0,D,this.__views__),W=k.start,q=k.end,X=q-W,re=E?q:W-1,ie=this.__iteratees__,se=ie.length,Ee=0,Ve=dr(X,this.__takeCount__);if(!v||!E&&D==X&&Ve==X)return hT(c,this.__actions__);var Qe=[];e:for(;X--&&Ee<Ve;){re+=f;for(var ct=-1,Xe=c[re];++ct<se;){var yt=ie[ct],Tt=yt.iteratee,Qr=yt.type,_r=Tt(Xe);if(Qr==j)Xe=_r;else if(!_r){if(Qr==F)continue e;break e}}Qe[Ee++]=Xe}return Qe}wt.prototype=Al(bh.prototype),wt.prototype.constructor=wt;function ls(c){var f=-1,v=c==null?0:c.length;for(this.clear();++f<v;){var E=c[f];this.set(E[0],E[1])}}function ZU(){this.__data__=xc?xc(null):{},this.size=0}function QU(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}function JU(c){var f=this.__data__;if(xc){var v=f[c];return v===u?n:v}return Ft.call(f,c)?f[c]:n}function e5(c){var f=this.__data__;return xc?f[c]!==n:Ft.call(f,c)}function t5(c,f){var v=this.__data__;return this.size+=this.has(c)?0:1,v[c]=xc&&f===n?u:f,this}ls.prototype.clear=ZU,ls.prototype.delete=QU,ls.prototype.get=JU,ls.prototype.has=e5,ls.prototype.set=t5;function Oo(c){var f=-1,v=c==null?0:c.length;for(this.clear();++f<v;){var E=c[f];this.set(E[0],E[1])}}function n5(){this.__data__=[],this.size=0}function r5(c){var f=this.__data__,v=xh(f,c);if(v<0)return!1;var E=f.length-1;return v==E?f.pop():hh.call(f,v,1),--this.size,!0}function i5(c){var f=this.__data__,v=xh(f,c);return v<0?n:f[v][1]}function o5(c){return xh(this.__data__,c)>-1}function a5(c,f){var v=this.__data__,E=xh(v,c);return E<0?(++this.size,v.push([c,f])):v[E][1]=f,this}Oo.prototype.clear=n5,Oo.prototype.delete=r5,Oo.prototype.get=i5,Oo.prototype.has=o5,Oo.prototype.set=a5;function Po(c){var f=-1,v=c==null?0:c.length;for(this.clear();++f<v;){var E=c[f];this.set(E[0],E[1])}}function s5(){this.size=0,this.__data__={hash:new ls,map:new(yc||Oo),string:new ls}}function l5(c){var f=Dh(this,c).delete(c);return this.size-=f?1:0,f}function u5(c){return Dh(this,c).get(c)}function c5(c){return Dh(this,c).has(c)}function d5(c,f){var v=Dh(this,c),E=v.size;return v.set(c,f),this.size+=v.size==E?0:1,this}Po.prototype.clear=s5,Po.prototype.delete=l5,Po.prototype.get=u5,Po.prototype.has=c5,Po.prototype.set=d5;function us(c){var f=-1,v=c==null?0:c.length;for(this.__data__=new Po;++f<v;)this.add(c[f])}function f5(c){return this.__data__.set(c,u),this}function h5(c){return this.__data__.has(c)}us.prototype.add=us.prototype.push=f5,us.prototype.has=h5;function Fi(c){var f=this.__data__=new Oo(c);this.size=f.size}function p5(){this.__data__=new Oo,this.size=0}function g5(c){var f=this.__data__,v=f.delete(c);return this.size=f.size,v}function m5(c){return this.__data__.get(c)}function v5(c){return this.__data__.has(c)}function y5(c,f){var v=this.__data__;if(v instanceof Oo){var E=v.__data__;if(!yc||E.length<i-1)return E.push([c,f]),this.size=++v.size,this;v=this.__data__=new Po(E)}return v.set(c,f),this.size=v.size,this}Fi.prototype.clear=p5,Fi.prototype.delete=g5,Fi.prototype.get=m5,Fi.prototype.has=v5,Fi.prototype.set=y5;function zS(c,f){var v=st(c),E=!v&&ps(c),D=!v&&!E&&Ta(c),k=!v&&!E&&!D&&Ll(c),W=v||E||D||k,q=W?Cy(c.length,PU):[],X=q.length;for(var re in c)(f||Ft.call(c,re))&&!(W&&(re=="length"||D&&(re=="offset"||re=="parent")||k&&(re=="buffer"||re=="byteLength"||re=="byteOffset")||Ao(re,X)))&&q.push(re);return q}function VS(c){var f=c.length;return f?c[By(0,f-1)]:n}function b5(c,f){return Ih(Mr(c),cs(f,0,c.length))}function x5(c){return Ih(Mr(c))}function My(c,f,v){(v!==n&&!Bi(c[f],v)||v===n&&!(f in c))&&eo(c,f,v)}function _c(c,f,v){var E=c[f];(!(Ft.call(c,f)&&Bi(E,v))||v===n&&!(f in c))&&eo(c,f,v)}function xh(c,f){for(var v=c.length;v--;)if(Bi(c[v][0],f))return v;return-1}function w5(c,f,v,E){return wa(c,function(D,k,W){f(E,D,v(D),W)}),E}function GS(c,f){return c&&no(f,Yn(f),c)}function _5(c,f){return c&&no(f,Dr(f),c)}function eo(c,f,v){f=="__proto__"&&ph?ph(c,f,{configurable:!0,enumerable:!0,value:v,writable:!0}):c[f]=v}function Ay(c,f){for(var v=-1,E=f.length,D=te(E),k=c==null;++v<E;)D[v]=k?n:fb(c,f[v]);return D}function cs(c,f,v){return c===c&&(v!==n&&(c=c<=v?c:v),f!==n&&(c=c>=f?c:f)),c}function di(c,f,v,E,D,k){var W,q=f&p,X=f&g,re=f&m;if(v&&(W=D?v(c,E,D,k):v(c)),W!==n)return W;if(!fn(c))return c;var ie=st(c);if(ie){if(W=c3(c),!q)return Mr(c,W)}else{var se=fr(c),Ee=se==pe||se==He;if(Ta(c))return mT(c,q);if(se==Ct||se==Ce||Ee&&!D){if(W=X||Ee?{}:LT(c),!q)return X?J5(c,_5(W,c)):Q5(c,GS(W,c))}else{if(!Xt[se])return D?c:{};W=d3(c,se,q)}}k||(k=new Fi);var Ve=k.get(c);if(Ve)return Ve;k.set(c,W),cE(c)?c.forEach(function(Xe){W.add(di(Xe,f,v,Xe,c,k))}):lE(c)&&c.forEach(function(Xe,yt){W.set(yt,di(Xe,f,v,yt,c,k))});var Qe=re?X?Zy:Xy:X?Dr:Yn,ct=ie?n:Qe(c);return Kr(ct||c,function(Xe,yt){ct&&(yt=Xe,Xe=c[yt]),_c(W,yt,di(Xe,f,v,yt,c,k))}),W}function C5(c){var f=Yn(c);return function(v){return qS(v,c,f)}}function qS(c,f,v){var E=v.length;if(c==null)return!E;for(c=Gt(c);E--;){var D=v[E],k=f[D],W=c[D];if(W===n&&!(D in c)||!k(W))return!1}return!0}function KS(c,f,v){if(typeof c!="function")throw new ui(a);return Rc(function(){c.apply(n,v)},f)}function Cc(c,f,v,E){var D=-1,k=rh,W=!0,q=c.length,X=[],re=f.length;if(!q)return X;v&&(f=an(f,Yr(v))),E?(k=vy,W=!1):f.length>=i&&(k=mc,W=!1,f=new us(f));e:for(;++D<q;){var ie=c[D],se=v==null?ie:v(ie);if(ie=E||ie!==0?ie:0,W&&se===se){for(var Ee=re;Ee--;)if(f[Ee]===se)continue e;X.push(ie)}else k(f,se,E)||X.push(ie)}return X}var wa=wT(to),YS=wT(Iy,!0);function S5(c,f){var v=!0;return wa(c,function(E,D,k){return v=!!f(E,D,k),v}),v}function wh(c,f,v){for(var E=-1,D=c.length;++E<D;){var k=c[E],W=f(k);if(W!=null&&(q===n?W===W&&!Zr(W):v(W,q)))var q=W,X=k}return X}function T5(c,f,v,E){var D=c.length;for(v=ut(v),v<0&&(v=-v>D?0:D+v),E=E===n||E>D?D:ut(E),E<0&&(E+=D),E=v>E?0:fE(E);v<E;)c[v++]=f;return c}function XS(c,f){var v=[];return wa(c,function(E,D,k){f(E,D,k)&&v.push(E)}),v}function sr(c,f,v,E,D){var k=-1,W=c.length;for(v||(v=h3),D||(D=[]);++k<W;){var q=c[k];f>0&&v(q)?f>1?sr(q,f-1,v,E,D):ya(D,q):E||(D[D.length]=q)}return D}var Dy=_T(),ZS=_T(!0);function to(c,f){return c&&Dy(c,f,Yn)}function Iy(c,f){return c&&ZS(c,f,Yn)}function _h(c,f){return va(f,function(v){return Do(c[v])})}function ds(c,f){f=Ca(f,c);for(var v=0,E=f.length;c!=null&&v<E;)c=c[ji(f[v++])];return v&&v==E?c:n}function QS(c,f,v){var E=f(c);return st(c)?E:ya(E,v(c))}function xr(c){return c==null?c===n?Oe:_t:ss&&ss in Gt(c)?s3(c):x3(c)}function $y(c,f){return c>f}function E5(c,f){return c!=null&&Ft.call(c,f)}function O5(c,f){return c!=null&&f in Gt(c)}function P5(c,f,v){return c>=dr(f,v)&&c<zn(f,v)}function Ly(c,f,v){for(var E=v?vy:rh,D=c[0].length,k=c.length,W=k,q=te(k),X=1/0,re=[];W--;){var ie=c[W];W&&f&&(ie=an(ie,Yr(f))),X=dr(ie.length,X),q[W]=!v&&(f||D>=120&&ie.length>=120)?new us(W&&ie):n}ie=c[0];var se=-1,Ee=q[0];e:for(;++se<D&&re.length<X;){var Ve=ie[se],Qe=f?f(Ve):Ve;if(Ve=v||Ve!==0?Ve:0,!(Ee?mc(Ee,Qe):E(re,Qe,v))){for(W=k;--W;){var ct=q[W];if(!(ct?mc(ct,Qe):E(c[W],Qe,v)))continue e}Ee&&Ee.push(Qe),re.push(Ve)}}return re}function R5(c,f,v,E){return to(c,function(D,k,W){f(E,v(D),k,W)}),E}function Sc(c,f,v){f=Ca(f,c),c=jT(c,f);var E=c==null?c:c[ji(hi(f))];return E==null?n:qr(E,c,v)}function JS(c){return xn(c)&&xr(c)==Ce}function M5(c){return xn(c)&&xr(c)==ze}function A5(c){return xn(c)&&xr(c)==Ne}function Tc(c,f,v,E,D){return c===f?!0:c==null||f==null||!xn(c)&&!xn(f)?c!==c&&f!==f:D5(c,f,v,E,Tc,D)}function D5(c,f,v,E,D,k){var W=st(c),q=st(f),X=W?we:fr(c),re=q?we:fr(f);X=X==Ce?Ct:X,re=re==Ce?Ct:re;var ie=X==Ct,se=re==Ct,Ee=X==re;if(Ee&&Ta(c)){if(!Ta(f))return!1;W=!0,ie=!1}if(Ee&&!ie)return k||(k=new Fi),W||Ll(c)?DT(c,f,v,E,D,k):o3(c,f,X,v,E,D,k);if(!(v&y)){var Ve=ie&&Ft.call(c,"__wrapped__"),Qe=se&&Ft.call(f,"__wrapped__");if(Ve||Qe){var ct=Ve?c.value():c,Xe=Qe?f.value():f;return k||(k=new Fi),D(ct,Xe,v,E,k)}}return Ee?(k||(k=new Fi),a3(c,f,v,E,D,k)):!1}function I5(c){return xn(c)&&fr(c)==qe}function ky(c,f,v,E){var D=v.length,k=D,W=!E;if(c==null)return!k;for(c=Gt(c);D--;){var q=v[D];if(W&&q[2]?q[1]!==c[q[0]]:!(q[0]in c))return!1}for(;++D<k;){q=v[D];var X=q[0],re=c[X],ie=q[1];if(W&&q[2]){if(re===n&&!(X in c))return!1}else{var se=new Fi;if(E)var Ee=E(re,ie,X,c,f,se);if(!(Ee===n?Tc(ie,re,y|b,E,se):Ee))return!1}}return!0}function eT(c){if(!fn(c)||g3(c))return!1;var f=Do(c)?IU:Rt;return f.test(hs(c))}function $5(c){return xn(c)&&xr(c)==mt}function L5(c){return xn(c)&&fr(c)==Q}function k5(c){return xn(c)&&jh(c.length)&&!!Jt[xr(c)]}function tT(c){return typeof c=="function"?c:c==null?Ir:typeof c=="object"?st(c)?iT(c[0],c[1]):rT(c):SE(c)}function Ny(c){if(!Pc(c))return jU(c);var f=[];for(var v in Gt(c))Ft.call(c,v)&&v!="constructor"&&f.push(v);return f}function N5(c){if(!fn(c))return b3(c);var f=Pc(c),v=[];for(var E in c)E=="constructor"&&(f||!Ft.call(c,E))||v.push(E);return v}function Fy(c,f){return c<f}function nT(c,f){var v=-1,E=Ar(c)?te(c.length):[];return wa(c,function(D,k,W){E[++v]=f(D,k,W)}),E}function rT(c){var f=Jy(c);return f.length==1&&f[0][2]?NT(f[0][0],f[0][1]):function(v){return v===c||ky(v,c,f)}}function iT(c,f){return tb(c)&&kT(f)?NT(ji(c),f):function(v){var E=fb(v,c);return E===n&&E===f?hb(v,c):Tc(f,E,y|b)}}function Ch(c,f,v,E,D){c!==f&&Dy(f,function(k,W){if(D||(D=new Fi),fn(k))F5(c,f,W,v,Ch,E,D);else{var q=E?E(rb(c,W),k,W+"",c,f,D):n;q===n&&(q=k),My(c,W,q)}},Dr)}function F5(c,f,v,E,D,k,W){var q=rb(c,v),X=rb(f,v),re=W.get(X);if(re){My(c,v,re);return}var ie=k?k(q,X,v+"",c,f,W):n,se=ie===n;if(se){var Ee=st(X),Ve=!Ee&&Ta(X),Qe=!Ee&&!Ve&&Ll(X);ie=X,Ee||Ve||Qe?st(q)?ie=q:On(q)?ie=Mr(q):Ve?(se=!1,ie=mT(X,!0)):Qe?(se=!1,ie=vT(X,!0)):ie=[]:Mc(X)||ps(X)?(ie=q,ps(q)?ie=hE(q):(!fn(q)||Do(q))&&(ie=LT(X))):se=!1}se&&(W.set(X,ie),D(ie,X,E,k,W),W.delete(X)),My(c,v,ie)}function oT(c,f){var v=c.length;if(v)return f+=f<0?v:0,Ao(f,v)?c[f]:n}function aT(c,f,v){f.length?f=an(f,function(k){return st(k)?function(W){return ds(W,k.length===1?k[0]:k)}:k}):f=[Ir];var E=-1;f=an(f,Yr(Ze()));var D=nT(c,function(k,W,q){var X=an(f,function(re){return re(k)});return{criteria:X,index:++E,value:k}});return dU(D,function(k,W){return Z5(k,W,v)})}function j5(c,f){return sT(c,f,function(v,E){return hb(c,E)})}function sT(c,f,v){for(var E=-1,D=f.length,k={};++E<D;){var W=f[E],q=ds(c,W);v(q,W)&&Ec(k,Ca(W,c),q)}return k}function B5(c){return function(f){return ds(f,c)}}function jy(c,f,v,E){var D=E?cU:Sl,k=-1,W=f.length,q=c;for(c===f&&(f=Mr(f)),v&&(q=an(c,Yr(v)));++k<W;)for(var X=0,re=f[k],ie=v?v(re):re;(X=D(q,ie,X,E))>-1;)q!==c&&hh.call(q,X,1),hh.call(c,X,1);return c}function lT(c,f){for(var v=c?f.length:0,E=v-1;v--;){var D=f[v];if(v==E||D!==k){var k=D;Ao(D)?hh.call(c,D,1):Hy(c,D)}}return c}function By(c,f){return c+mh(WS()*(f-c+1))}function U5(c,f,v,E){for(var D=-1,k=zn(gh((f-c)/(v||1)),0),W=te(k);k--;)W[E?k:++D]=c,c+=v;return W}function Uy(c,f){var v="";if(!c||f<1||f>J)return v;do f%2&&(v+=c),f=mh(f/2),f&&(c+=c);while(f);return v}function ht(c,f){return ib(FT(c,f,Ir),c+"")}function W5(c){return VS(kl(c))}function H5(c,f){var v=kl(c);return Ih(v,cs(f,0,v.length))}function Ec(c,f,v,E){if(!fn(c))return c;f=Ca(f,c);for(var D=-1,k=f.length,W=k-1,q=c;q!=null&&++D<k;){var X=ji(f[D]),re=v;if(X==="__proto__"||X==="constructor"||X==="prototype")return c;if(D!=W){var ie=q[X];re=E?E(ie,X,q):n,re===n&&(re=fn(ie)?ie:Ao(f[D+1])?[]:{})}_c(q,X,re),q=q[X]}return c}var uT=vh?function(c,f){return vh.set(c,f),c}:Ir,z5=ph?function(c,f){return ph(c,"toString",{configurable:!0,enumerable:!1,value:gb(f),writable:!0})}:Ir;function V5(c){return Ih(kl(c))}function fi(c,f,v){var E=-1,D=c.length;f<0&&(f=-f>D?0:D+f),v=v>D?D:v,v<0&&(v+=D),D=f>v?0:v-f>>>0,f>>>=0;for(var k=te(D);++E<D;)k[E]=c[E+f];return k}function G5(c,f){var v;return wa(c,function(E,D,k){return v=f(E,D,k),!v}),!!v}function Sh(c,f,v){var E=0,D=c==null?E:c.length;if(typeof f=="number"&&f===f&&D<=ve){for(;E<D;){var k=E+D>>>1,W=c[k];W!==null&&!Zr(W)&&(v?W<=f:W<f)?E=k+1:D=k}return D}return Wy(c,f,Ir,v)}function Wy(c,f,v,E){var D=0,k=c==null?0:c.length;if(k===0)return 0;f=v(f);for(var W=f!==f,q=f===null,X=Zr(f),re=f===n;D<k;){var ie=mh((D+k)/2),se=v(c[ie]),Ee=se!==n,Ve=se===null,Qe=se===se,ct=Zr(se);if(W)var Xe=E||Qe;else re?Xe=Qe&&(E||Ee):q?Xe=Qe&&Ee&&(E||!Ve):X?Xe=Qe&&Ee&&!Ve&&(E||!ct):Ve||ct?Xe=!1:Xe=E?se<=f:se<f;Xe?D=ie+1:k=ie}return dr(k,Me)}function cT(c,f){for(var v=-1,E=c.length,D=0,k=[];++v<E;){var W=c[v],q=f?f(W):W;if(!v||!Bi(q,X)){var X=q;k[D++]=W===0?0:W}}return k}function dT(c){return typeof c=="number"?c:Zr(c)?ce:+c}function Xr(c){if(typeof c=="string")return c;if(st(c))return an(c,Xr)+"";if(Zr(c))return HS?HS.call(c):"";var f=c+"";return f=="0"&&1/c==-V?"-0":f}function _a(c,f,v){var E=-1,D=rh,k=c.length,W=!0,q=[],X=q;if(v)W=!1,D=vy;else if(k>=i){var re=f?null:r3(c);if(re)return oh(re);W=!1,D=mc,X=new us}else X=f?[]:q;e:for(;++E<k;){var ie=c[E],se=f?f(ie):ie;if(ie=v||ie!==0?ie:0,W&&se===se){for(var Ee=X.length;Ee--;)if(X[Ee]===se)continue e;f&&X.push(se),q.push(ie)}else D(X,se,v)||(X!==q&&X.push(se),q.push(ie))}return q}function Hy(c,f){f=Ca(f,c);var v=-1,E=f.length;if(!E)return!0;for(;++v<E;){var D=ji(f[v]);if(D==="__proto__"&&!Ft.call(c,"__proto__")||(D==="constructor"||D==="prototype")&&v<E-1)return!1}var k=jT(c,f);return k==null||delete k[ji(hi(f))]}function fT(c,f,v,E){return Ec(c,f,v(ds(c,f)),E)}function Th(c,f,v,E){for(var D=c.length,k=E?D:-1;(E?k--:++k<D)&&f(c[k],k,c););return v?fi(c,E?0:k,E?k+1:D):fi(c,E?k+1:0,E?D:k)}function hT(c,f){var v=c;return v instanceof wt&&(v=v.value()),yy(f,function(E,D){return D.func.apply(D.thisArg,ya([E],D.args))},v)}function zy(c,f,v){var E=c.length;if(E<2)return E?_a(c[0]):[];for(var D=-1,k=te(E);++D<E;)for(var W=c[D],q=-1;++q<E;)q!=D&&(k[D]=Cc(k[D]||W,c[q],f,v));return _a(sr(k,1),f,v)}function pT(c,f,v){for(var E=-1,D=c.length,k=f.length,W={};++E<D;){var q=E<k?f[E]:n;v(W,c[E],q)}return W}function Vy(c){return On(c)?c:[]}function Gy(c){return typeof c=="function"?c:Ir}function Ca(c,f){return st(c)?c:tb(c,f)?[c]:HT(jt(c))}var q5=ht;function Sa(c,f,v){var E=c.length;return v=v===n?E:v,!f&&v>=E?c:fi(c,f,v)}var gT=$U||function(c){return ar.clearTimeout(c)};function mT(c,f){if(f)return c.slice();var v=c.length,E=NS?NS(v):new c.constructor(v);return c.copy(E),E}function qy(c){var f=new c.constructor(c.byteLength);return new dh(f).set(new dh(c)),f}function K5(c,f){var v=f?qy(c.buffer):c.buffer;return new c.constructor(v,c.byteOffset,c.byteLength)}function Y5(c){var f=new c.constructor(c.source,vt.exec(c));return f.lastIndex=c.lastIndex,f}function X5(c){return wc?Gt(wc.call(c)):{}}function vT(c,f){var v=f?qy(c.buffer):c.buffer;return new c.constructor(v,c.byteOffset,c.length)}function yT(c,f){if(c!==f){var v=c!==n,E=c===null,D=c===c,k=Zr(c),W=f!==n,q=f===null,X=f===f,re=Zr(f);if(!q&&!re&&!k&&c>f||k&&W&&X&&!q&&!re||E&&W&&X||!v&&X||!D)return 1;if(!E&&!k&&!re&&c<f||re&&v&&D&&!E&&!k||q&&v&&D||!W&&D||!X)return-1}return 0}function Z5(c,f,v){for(var E=-1,D=c.criteria,k=f.criteria,W=D.length,q=v.length;++E<W;){var X=yT(D[E],k[E]);if(X){if(E>=q)return X;var re=v[E];return X*(re=="desc"?-1:1)}}return c.index-f.index}function bT(c,f,v,E){for(var D=-1,k=c.length,W=v.length,q=-1,X=f.length,re=zn(k-W,0),ie=te(X+re),se=!E;++q<X;)ie[q]=f[q];for(;++D<W;)(se||D<k)&&(ie[v[D]]=c[D]);for(;re--;)ie[q++]=c[D++];return ie}function xT(c,f,v,E){for(var D=-1,k=c.length,W=-1,q=v.length,X=-1,re=f.length,ie=zn(k-q,0),se=te(ie+re),Ee=!E;++D<ie;)se[D]=c[D];for(var Ve=D;++X<re;)se[Ve+X]=f[X];for(;++W<q;)(Ee||D<k)&&(se[Ve+v[W]]=c[D++]);return se}function Mr(c,f){var v=-1,E=c.length;for(f||(f=te(E));++v<E;)f[v]=c[v];return f}function no(c,f,v,E){var D=!v;v||(v={});for(var k=-1,W=f.length;++k<W;){var q=f[k],X=E?E(v[q],c[q],q,v,c):n;X===n&&(X=c[q]),D?eo(v,q,X):_c(v,q,X)}return v}function Q5(c,f){return no(c,eb(c),f)}function J5(c,f){return no(c,IT(c),f)}function Eh(c,f){return function(v,E){var D=st(v)?iU:w5,k=f?f():{};return D(v,c,Ze(E,2),k)}}function Dl(c){return ht(function(f,v){var E=-1,D=v.length,k=D>1?v[D-1]:n,W=D>2?v[2]:n;for(k=c.length>3&&typeof k=="function"?(D--,k):n,W&&wr(v[0],v[1],W)&&(k=D<3?n:k,D=1),f=Gt(f);++E<D;){var q=v[E];q&&c(f,q,E,k)}return f})}function wT(c,f){return function(v,E){if(v==null)return v;if(!Ar(v))return c(v,E);for(var D=v.length,k=f?D:-1,W=Gt(v);(f?k--:++k<D)&&E(W[k],k,W)!==!1;);return v}}function _T(c){return function(f,v,E){for(var D=-1,k=Gt(f),W=E(f),q=W.length;q--;){var X=W[c?q:++D];if(v(k[X],X,k)===!1)break}return f}}function e3(c,f,v){var E=f&x,D=Oc(c);function k(){var W=this&&this!==ar&&this instanceof k?D:c;return W.apply(E?v:this,arguments)}return k}function CT(c){return function(f){f=jt(f);var v=Tl(f)?Ni(f):n,E=v?v[0]:f.charAt(0),D=v?Sa(v,1).join(""):f.slice(1);return E[c]()+D}}function Il(c){return function(f){return yy(_E(wE(f).replace(zB,"")),c,"")}}function Oc(c){return function(){var f=arguments;switch(f.length){case 0:return new c;case 1:return new c(f[0]);case 2:return new c(f[0],f[1]);case 3:return new c(f[0],f[1],f[2]);case 4:return new c(f[0],f[1],f[2],f[3]);case 5:return new c(f[0],f[1],f[2],f[3],f[4]);case 6:return new c(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new c(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var v=Al(c.prototype),E=c.apply(v,f);return fn(E)?E:v}}function t3(c,f,v){var E=Oc(c);function D(){for(var k=arguments.length,W=te(k),q=k,X=$l(D);q--;)W[q]=arguments[q];var re=k<3&&W[0]!==X&&W[k-1]!==X?[]:ba(W,X);if(k-=re.length,k<v)return PT(c,f,Oh,D.placeholder,n,W,re,n,n,v-k);var ie=this&&this!==ar&&this instanceof D?E:c;return qr(ie,this,W)}return D}function ST(c){return function(f,v,E){var D=Gt(f);if(!Ar(f)){var k=Ze(v,3);f=Yn(f),v=function(q){return k(D[q],q,D)}}var W=c(f,v,E);return W>-1?D[k?f[W]:W]:n}}function TT(c){return Mo(function(f){var v=f.length,E=v,D=ci.prototype.thru;for(c&&f.reverse();E--;){var k=f[E];if(typeof k!="function")throw new ui(a);if(D&&!W&&Ah(k)=="wrapper")var W=new ci([],!0)}for(E=W?E:v;++E<v;){k=f[E];var q=Ah(k),X=q=="wrapper"?Qy(k):n;X&&nb(X[0])&&X[1]==(A|C|O|L)&&!X[4].length&&X[9]==1?W=W[Ah(X[0])].apply(W,X[3]):W=k.length==1&&nb(k)?W[q]():W.thru(k)}return function(){var re=arguments,ie=re[0];if(W&&re.length==1&&st(ie))return W.plant(ie).value();for(var se=0,Ee=v?f[se].apply(this,re):ie;++se<v;)Ee=f[se].call(this,Ee);return Ee}})}function Oh(c,f,v,E,D,k,W,q,X,re){var ie=f&A,se=f&x,Ee=f&S,Ve=f&(C|R),Qe=f&I,ct=Ee?n:Oc(c);function Xe(){for(var yt=arguments.length,Tt=te(yt),Qr=yt;Qr--;)Tt[Qr]=arguments[Qr];if(Ve)var _r=$l(Xe),Jr=hU(Tt,_r);if(E&&(Tt=bT(Tt,E,D,Ve)),k&&(Tt=xT(Tt,k,W,Ve)),yt-=Jr,Ve&&yt<re){var Pn=ba(Tt,_r);return PT(c,f,Oh,Xe.placeholder,v,Tt,Pn,q,X,re-yt)}var Ui=se?v:this,$o=Ee?Ui[c]:c;return yt=Tt.length,q?Tt=w3(Tt,q):Qe&&yt>1&&Tt.reverse(),ie&&X<yt&&(Tt.length=X),this&&this!==ar&&this instanceof Xe&&($o=ct||Oc($o)),$o.apply(Ui,Tt)}return Xe}function ET(c,f){return function(v,E){return R5(v,c,f(E),{})}}function Ph(c,f){return function(v,E){var D;if(v===n&&E===n)return f;if(v!==n&&(D=v),E!==n){if(D===n)return E;typeof v=="string"||typeof E=="string"?(v=Xr(v),E=Xr(E)):(v=dT(v),E=dT(E)),D=c(v,E)}return D}}function Ky(c){return Mo(function(f){return f=an(f,Yr(Ze())),ht(function(v){var E=this;return c(f,function(D){return qr(D,E,v)})})})}function Rh(c,f){f=f===n?" ":Xr(f);var v=f.length;if(v<2)return v?Uy(f,c):f;var E=Uy(f,gh(c/El(f)));return Tl(f)?Sa(Ni(E),0,c).join(""):E.slice(0,c)}function n3(c,f,v,E){var D=f&x,k=Oc(c);function W(){for(var q=-1,X=arguments.length,re=-1,ie=E.length,se=te(ie+X),Ee=this&&this!==ar&&this instanceof W?k:c;++re<ie;)se[re]=E[re];for(;X--;)se[re++]=arguments[++q];return qr(Ee,D?v:this,se)}return W}function OT(c){return function(f,v,E){return E&&typeof E!="number"&&wr(f,v,E)&&(v=E=n),f=Io(f),v===n?(v=f,f=0):v=Io(v),E=E===n?f<v?1:-1:Io(E),U5(f,v,E,c)}}function Mh(c){return function(f,v){return typeof f=="string"&&typeof v=="string"||(f=pi(f),v=pi(v)),c(f,v)}}function PT(c,f,v,E,D,k,W,q,X,re){var ie=f&C,se=ie?W:n,Ee=ie?n:W,Ve=ie?k:n,Qe=ie?n:k;f|=ie?O:T,f&=~(ie?T:O),f&w||(f&=-4);var ct=[c,f,D,Ve,se,Qe,Ee,q,X,re],Xe=v.apply(n,ct);return nb(c)&&BT(Xe,ct),Xe.placeholder=E,UT(Xe,c,f)}function Yy(c){var f=Hn[c];return function(v,E){if(v=pi(v),E=E==null?0:dr(ut(E),292),E&&US(v)){var D=(jt(v)+"e").split("e"),k=f(D[0]+"e"+(+D[1]+E));return D=(jt(k)+"e").split("e"),+(D[0]+"e"+(+D[1]-E))}return f(v)}}var r3=Rl&&1/oh(new Rl([,-0]))[1]==V?function(c){return new Rl(c)}:yb;function RT(c){return function(f){var v=fr(f);return v==qe?Ty(f):v==Q?xU(f):fU(f,c(f))}}function Ro(c,f,v,E,D,k,W,q){var X=f&S;if(!X&&typeof c!="function")throw new ui(a);var re=E?E.length:0;if(re||(f&=-97,E=D=n),W=W===n?W:zn(ut(W),0),q=q===n?q:ut(q),re-=D?D.length:0,f&T){var ie=E,se=D;E=D=n}var Ee=X?n:Qy(c),Ve=[c,f,v,E,D,ie,se,k,W,q];if(Ee&&y3(Ve,Ee),c=Ve[0],f=Ve[1],v=Ve[2],E=Ve[3],D=Ve[4],q=Ve[9]=Ve[9]===n?X?0:c.length:zn(Ve[9]-re,0),!q&&f&(C|R)&&(f&=-25),!f||f==x)var Qe=e3(c,f,v);else f==C||f==R?Qe=t3(c,f,q):(f==O||f==(x|O))&&!D.length?Qe=n3(c,f,v,E):Qe=Oh.apply(n,Ve);var ct=Ee?uT:BT;return UT(ct(Qe,Ve),c,f)}function MT(c,f,v,E){return c===n||Bi(c,Pl[v])&&!Ft.call(E,v)?f:c}function AT(c,f,v,E,D,k){return fn(c)&&fn(f)&&(k.set(f,c),Ch(c,f,n,AT,k),k.delete(f)),c}function i3(c){return Mc(c)?n:c}function DT(c,f,v,E,D,k){var W=v&y,q=c.length,X=f.length;if(q!=X&&!(W&&X>q))return!1;var re=k.get(c),ie=k.get(f);if(re&&ie)return re==f&&ie==c;var se=-1,Ee=!0,Ve=v&b?new us:n;for(k.set(c,f),k.set(f,c);++se<q;){var Qe=c[se],ct=f[se];if(E)var Xe=W?E(ct,Qe,se,f,c,k):E(Qe,ct,se,c,f,k);if(Xe!==n){if(Xe)continue;Ee=!1;break}if(Ve){if(!by(f,function(yt,Tt){if(!mc(Ve,Tt)&&(Qe===yt||D(Qe,yt,v,E,k)))return Ve.push(Tt)})){Ee=!1;break}}else if(!(Qe===ct||D(Qe,ct,v,E,k))){Ee=!1;break}}return k.delete(c),k.delete(f),Ee}function o3(c,f,v,E,D,k,W){switch(v){case Te:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case ze:return!(c.byteLength!=f.byteLength||!k(new dh(c),new dh(f)));case ue:case Ne:case tt:return Bi(+c,+f);case be:return c.name==f.name&&c.message==f.message;case mt:case ge:return c==f+"";case qe:var q=Ty;case Q:var X=E&y;if(q||(q=oh),c.size!=f.size&&!X)return!1;var re=W.get(c);if(re)return re==f;E|=b,W.set(c,f);var ie=DT(q(c),q(f),E,D,k,W);return W.delete(c),ie;case he:if(wc)return wc.call(c)==wc.call(f)}return!1}function a3(c,f,v,E,D,k){var W=v&y,q=Xy(c),X=q.length,re=Xy(f),ie=re.length;if(X!=ie&&!W)return!1;for(var se=X;se--;){var Ee=q[se];if(!(W?Ee in f:Ft.call(f,Ee)))return!1}var Ve=k.get(c),Qe=k.get(f);if(Ve&&Qe)return Ve==f&&Qe==c;var ct=!0;k.set(c,f),k.set(f,c);for(var Xe=W;++se<X;){Ee=q[se];var yt=c[Ee],Tt=f[Ee];if(E)var Qr=W?E(Tt,yt,Ee,f,c,k):E(yt,Tt,Ee,c,f,k);if(!(Qr===n?yt===Tt||D(yt,Tt,v,E,k):Qr)){ct=!1;break}Xe||(Xe=Ee=="constructor")}if(ct&&!Xe){var _r=c.constructor,Jr=f.constructor;_r!=Jr&&"constructor"in c&&"constructor"in f&&!(typeof _r=="function"&&_r instanceof _r&&typeof Jr=="function"&&Jr instanceof Jr)&&(ct=!1)}return k.delete(c),k.delete(f),ct}function Mo(c){return ib(FT(c,n,qT),c+"")}function Xy(c){return QS(c,Yn,eb)}function Zy(c){return QS(c,Dr,IT)}var Qy=vh?function(c){return vh.get(c)}:yb;function Ah(c){for(var f=c.name+"",v=Ml[f],E=Ft.call(Ml,f)?v.length:0;E--;){var D=v[E],k=D.func;if(k==null||k==c)return D.name}return f}function $l(c){var f=Ft.call($,"placeholder")?$:c;return f.placeholder}function Ze(){var c=$.iteratee||mb;return c=c===mb?tT:c,arguments.length?c(arguments[0],arguments[1]):c}function Dh(c,f){var v=c.__data__;return p3(f)?v[typeof f=="string"?"string":"hash"]:v.map}function Jy(c){for(var f=Yn(c),v=f.length;v--;){var E=f[v],D=c[E];f[v]=[E,D,kT(D)]}return f}function fs(c,f){var v=vU(c,f);return eT(v)?v:n}function s3(c){var f=Ft.call(c,ss),v=c[ss];try{c[ss]=n;var E=!0}catch{}var D=uh.call(c);return E&&(f?c[ss]=v:delete c[ss]),D}var eb=Oy?function(c){return c==null?[]:(c=Gt(c),va(Oy(c),function(f){return jS.call(c,f)}))}:bb,IT=Oy?function(c){for(var f=[];c;)ya(f,eb(c)),c=fh(c);return f}:bb,fr=xr;(Py&&fr(new Py(new ArrayBuffer(1)))!=Te||yc&&fr(new yc)!=qe||Ry&&fr(Ry.resolve())!=dn||Rl&&fr(new Rl)!=Q||bc&&fr(new bc)!=je)&&(fr=function(c){var f=xr(c),v=f==Ct?c.constructor:n,E=v?hs(v):"";if(E)switch(E){case HU:return Te;case zU:return qe;case VU:return dn;case GU:return Q;case qU:return je}return f});function l3(c,f,v){for(var E=-1,D=v.length;++E<D;){var k=v[E],W=k.size;switch(k.type){case"drop":c+=W;break;case"dropRight":f-=W;break;case"take":f=dr(f,c+W);break;case"takeRight":c=zn(c,f-W);break}}return{start:c,end:f}}function u3(c){var f=c.match(nt);return f?f[1].split(ke):[]}function $T(c,f,v){f=Ca(f,c);for(var E=-1,D=f.length,k=!1;++E<D;){var W=ji(f[E]);if(!(k=c!=null&&v(c,W)))break;c=c[W]}return k||++E!=D?k:(D=c==null?0:c.length,!!D&&jh(D)&&Ao(W,D)&&(st(c)||ps(c)))}function c3(c){var f=c.length,v=new c.constructor(f);return f&&typeof c[0]=="string"&&Ft.call(c,"index")&&(v.index=c.index,v.input=c.input),v}function LT(c){return typeof c.constructor=="function"&&!Pc(c)?Al(fh(c)):{}}function d3(c,f,v){var E=c.constructor;switch(f){case ze:return qy(c);case ue:case Ne:return new E(+c);case Te:return K5(c,v);case Ln:case Kn:case Vr:case $e:case Pt:case rn:case Gr:case fa:case yl:return vT(c,v);case qe:return new E;case tt:case ge:return new E(c);case mt:return Y5(c);case Q:return new E;case he:return X5(c)}}function f3(c,f){var v=f.length;if(!v)return c;var E=v-1;return f[E]=(v>1?"& ":"")+f[E],f=f.join(v>2?", ":" "),c.replace(Ke,`{
|
|
357
|
+
/* [wrapped with `+f+`] */
|
|
358
|
+
`)}function h3(c){return st(c)||ps(c)||!!(BS&&c&&c[BS])}function Ao(c,f){var v=typeof c;return f=f??J,!!f&&(v=="number"||v!="symbol"&&ha.test(c))&&c>-1&&c%1==0&&c<f}function wr(c,f,v){if(!fn(v))return!1;var E=typeof f;return(E=="number"?Ar(v)&&Ao(f,v.length):E=="string"&&f in v)?Bi(v[f],c):!1}function tb(c,f){if(st(c))return!1;var v=typeof c;return v=="number"||v=="symbol"||v=="boolean"||c==null||Zr(c)?!0:uy.test(c)||!ly.test(c)||f!=null&&c in Gt(f)}function p3(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}function nb(c){var f=Ah(c),v=$[f];if(typeof v!="function"||!(f in wt.prototype))return!1;if(c===v)return!0;var E=Qy(v);return!!E&&c===E[0]}function g3(c){return!!kS&&kS in c}var m3=sh?Do:xb;function Pc(c){var f=c&&c.constructor,v=typeof f=="function"&&f.prototype||Pl;return c===v}function kT(c){return c===c&&!fn(c)}function NT(c,f){return function(v){return v==null?!1:v[c]===f&&(f!==n||c in Gt(v))}}function v3(c){var f=Nh(c,function(E){return v.size===d&&v.clear(),E}),v=f.cache;return f}function y3(c,f){var v=c[1],E=f[1],D=v|E,k=D<(x|S|A),W=E==A&&v==C||E==A&&v==L&&c[7].length<=f[8]||E==(A|L)&&f[7].length<=f[8]&&v==C;if(!(k||W))return c;E&x&&(c[2]=f[2],D|=v&x?0:w);var q=f[3];if(q){var X=c[3];c[3]=X?bT(X,q,f[4]):q,c[4]=X?ba(c[3],h):f[4]}return q=f[5],q&&(X=c[5],c[5]=X?xT(X,q,f[6]):q,c[6]=X?ba(c[5],h):f[6]),q=f[7],q&&(c[7]=q),E&A&&(c[8]=c[8]==null?f[8]:dr(c[8],f[8])),c[9]==null&&(c[9]=f[9]),c[0]=f[0],c[1]=D,c}function b3(c){var f=[];if(c!=null)for(var v in Gt(c))f.push(v);return f}function x3(c){return uh.call(c)}function FT(c,f,v){return f=zn(f===n?c.length-1:f,0),function(){for(var E=arguments,D=-1,k=zn(E.length-f,0),W=te(k);++D<k;)W[D]=E[f+D];D=-1;for(var q=te(f+1);++D<f;)q[D]=E[D];return q[f]=v(W),qr(c,this,q)}}function jT(c,f){return f.length<2?c:ds(c,fi(f,0,-1))}function w3(c,f){for(var v=c.length,E=dr(f.length,v),D=Mr(c);E--;){var k=f[E];c[E]=Ao(k,v)?D[k]:n}return c}function rb(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}var BT=WT(uT),Rc=kU||function(c,f){return ar.setTimeout(c,f)},ib=WT(z5);function UT(c,f,v){var E=f+"";return ib(c,f3(E,_3(u3(E),v)))}function WT(c){var f=0,v=0;return function(){var E=BU(),D=z-(E-v);if(v=E,D>0){if(++f>=U)return arguments[0]}else f=0;return c.apply(n,arguments)}}function Ih(c,f){var v=-1,E=c.length,D=E-1;for(f=f===n?E:f;++v<f;){var k=By(v,D),W=c[k];c[k]=c[v],c[v]=W}return c.length=f,c}var HT=v3(function(c){var f=[];return c.charCodeAt(0)===46&&f.push(""),c.replace(G,function(v,E,D,k){f.push(D?k.replace(Ge,"$1"):E||v)}),f});function ji(c){if(typeof c=="string"||Zr(c))return c;var f=c+"";return f=="0"&&1/c==-V?"-0":f}function hs(c){if(c!=null){try{return lh.call(c)}catch{}try{return c+""}catch{}}return""}function _3(c,f){return Kr(ye,function(v){var E="_."+v[0];f&v[1]&&!rh(c,E)&&c.push(E)}),c.sort()}function zT(c){if(c instanceof wt)return c.clone();var f=new ci(c.__wrapped__,c.__chain__);return f.__actions__=Mr(c.__actions__),f.__index__=c.__index__,f.__values__=c.__values__,f}function C3(c,f,v){(v?wr(c,f,v):f===n)?f=1:f=zn(ut(f),0);var E=c==null?0:c.length;if(!E||f<1)return[];for(var D=0,k=0,W=te(gh(E/f));D<E;)W[k++]=fi(c,D,D+=f);return W}function S3(c){for(var f=-1,v=c==null?0:c.length,E=0,D=[];++f<v;){var k=c[f];k&&(D[E++]=k)}return D}function T3(){var c=arguments.length;if(!c)return[];for(var f=te(c-1),v=arguments[0],E=c;E--;)f[E-1]=arguments[E];return ya(st(v)?Mr(v):[v],sr(f,1))}var E3=ht(function(c,f){return On(c)?Cc(c,sr(f,1,On,!0)):[]}),O3=ht(function(c,f){var v=hi(f);return On(v)&&(v=n),On(c)?Cc(c,sr(f,1,On,!0),Ze(v,2)):[]}),P3=ht(function(c,f){var v=hi(f);return On(v)&&(v=n),On(c)?Cc(c,sr(f,1,On,!0),n,v):[]});function R3(c,f,v){var E=c==null?0:c.length;return E?(f=v||f===n?1:ut(f),fi(c,f<0?0:f,E)):[]}function M3(c,f,v){var E=c==null?0:c.length;return E?(f=v||f===n?1:ut(f),f=E-f,fi(c,0,f<0?0:f)):[]}function A3(c,f){return c&&c.length?Th(c,Ze(f,3),!0,!0):[]}function D3(c,f){return c&&c.length?Th(c,Ze(f,3),!0):[]}function I3(c,f,v,E){var D=c==null?0:c.length;return D?(v&&typeof v!="number"&&wr(c,f,v)&&(v=0,E=D),T5(c,f,v,E)):[]}function VT(c,f,v){var E=c==null?0:c.length;if(!E)return-1;var D=v==null?0:ut(v);return D<0&&(D=zn(E+D,0)),ih(c,Ze(f,3),D)}function GT(c,f,v){var E=c==null?0:c.length;if(!E)return-1;var D=E-1;return v!==n&&(D=ut(v),D=v<0?zn(E+D,0):dr(D,E-1)),ih(c,Ze(f,3),D,!0)}function qT(c){var f=c==null?0:c.length;return f?sr(c,1):[]}function $3(c){var f=c==null?0:c.length;return f?sr(c,V):[]}function L3(c,f){var v=c==null?0:c.length;return v?(f=f===n?1:ut(f),sr(c,f)):[]}function k3(c){for(var f=-1,v=c==null?0:c.length,E={};++f<v;){var D=c[f];eo(E,D[0],D[1])}return E}function KT(c){return c&&c.length?c[0]:n}function N3(c,f,v){var E=c==null?0:c.length;if(!E)return-1;var D=v==null?0:ut(v);return D<0&&(D=zn(E+D,0)),Sl(c,f,D)}function F3(c){var f=c==null?0:c.length;return f?fi(c,0,-1):[]}var j3=ht(function(c){var f=an(c,Vy);return f.length&&f[0]===c[0]?Ly(f):[]}),B3=ht(function(c){var f=hi(c),v=an(c,Vy);return f===hi(v)?f=n:v.pop(),v.length&&v[0]===c[0]?Ly(v,Ze(f,2)):[]}),U3=ht(function(c){var f=hi(c),v=an(c,Vy);return f=typeof f=="function"?f:n,f&&v.pop(),v.length&&v[0]===c[0]?Ly(v,n,f):[]});function W3(c,f){return c==null?"":FU.call(c,f)}function hi(c){var f=c==null?0:c.length;return f?c[f-1]:n}function H3(c,f,v){var E=c==null?0:c.length;if(!E)return-1;var D=E;return v!==n&&(D=ut(v),D=D<0?zn(E+D,0):dr(D,E-1)),f===f?_U(c,f,D):ih(c,PS,D,!0)}function z3(c,f){return c&&c.length?oT(c,ut(f)):n}var V3=ht(YT);function YT(c,f){return c&&c.length&&f&&f.length?jy(c,f):c}function G3(c,f,v){return c&&c.length&&f&&f.length?jy(c,f,Ze(v,2)):c}function q3(c,f,v){return c&&c.length&&f&&f.length?jy(c,f,n,v):c}var K3=Mo(function(c,f){var v=c==null?0:c.length,E=Ay(c,f);return lT(c,an(f,function(D){return Ao(D,v)?+D:D}).sort(yT)),E});function Y3(c,f){var v=[];if(!(c&&c.length))return v;var E=-1,D=[],k=c.length;for(f=Ze(f,3);++E<k;){var W=c[E];f(W,E,c)&&(v.push(W),D.push(E))}return lT(c,D),v}function ob(c){return c==null?c:WU.call(c)}function X3(c,f,v){var E=c==null?0:c.length;return E?(v&&typeof v!="number"&&wr(c,f,v)?(f=0,v=E):(f=f==null?0:ut(f),v=v===n?E:ut(v)),fi(c,f,v)):[]}function Z3(c,f){return Sh(c,f)}function Q3(c,f,v){return Wy(c,f,Ze(v,2))}function J3(c,f){var v=c==null?0:c.length;if(v){var E=Sh(c,f);if(E<v&&Bi(c[E],f))return E}return-1}function eW(c,f){return Sh(c,f,!0)}function tW(c,f,v){return Wy(c,f,Ze(v,2),!0)}function nW(c,f){var v=c==null?0:c.length;if(v){var E=Sh(c,f,!0)-1;if(Bi(c[E],f))return E}return-1}function rW(c){return c&&c.length?cT(c):[]}function iW(c,f){return c&&c.length?cT(c,Ze(f,2)):[]}function oW(c){var f=c==null?0:c.length;return f?fi(c,1,f):[]}function aW(c,f,v){return c&&c.length?(f=v||f===n?1:ut(f),fi(c,0,f<0?0:f)):[]}function sW(c,f,v){var E=c==null?0:c.length;return E?(f=v||f===n?1:ut(f),f=E-f,fi(c,f<0?0:f,E)):[]}function lW(c,f){return c&&c.length?Th(c,Ze(f,3),!1,!0):[]}function uW(c,f){return c&&c.length?Th(c,Ze(f,3)):[]}var cW=ht(function(c){return _a(sr(c,1,On,!0))}),dW=ht(function(c){var f=hi(c);return On(f)&&(f=n),_a(sr(c,1,On,!0),Ze(f,2))}),fW=ht(function(c){var f=hi(c);return f=typeof f=="function"?f:n,_a(sr(c,1,On,!0),n,f)});function hW(c){return c&&c.length?_a(c):[]}function pW(c,f){return c&&c.length?_a(c,Ze(f,2)):[]}function gW(c,f){return f=typeof f=="function"?f:n,c&&c.length?_a(c,n,f):[]}function ab(c){if(!(c&&c.length))return[];var f=0;return c=va(c,function(v){if(On(v))return f=zn(v.length,f),!0}),Cy(f,function(v){return an(c,xy(v))})}function XT(c,f){if(!(c&&c.length))return[];var v=ab(c);return f==null?v:an(v,function(E){return qr(f,n,E)})}var mW=ht(function(c,f){return On(c)?Cc(c,f):[]}),vW=ht(function(c){return zy(va(c,On))}),yW=ht(function(c){var f=hi(c);return On(f)&&(f=n),zy(va(c,On),Ze(f,2))}),bW=ht(function(c){var f=hi(c);return f=typeof f=="function"?f:n,zy(va(c,On),n,f)}),xW=ht(ab);function wW(c,f){return pT(c||[],f||[],_c)}function _W(c,f){return pT(c||[],f||[],Ec)}var CW=ht(function(c){var f=c.length,v=f>1?c[f-1]:n;return v=typeof v=="function"?(c.pop(),v):n,XT(c,v)});function ZT(c){var f=$(c);return f.__chain__=!0,f}function SW(c,f){return f(c),c}function $h(c,f){return f(c)}var TW=Mo(function(c){var f=c.length,v=f?c[0]:0,E=this.__wrapped__,D=function(k){return Ay(k,c)};return f>1||this.__actions__.length||!(E instanceof wt)||!Ao(v)?this.thru(D):(E=E.slice(v,+v+(f?1:0)),E.__actions__.push({func:$h,args:[D],thisArg:n}),new ci(E,this.__chain__).thru(function(k){return f&&!k.length&&k.push(n),k}))});function EW(){return ZT(this)}function OW(){return new ci(this.value(),this.__chain__)}function PW(){this.__values__===n&&(this.__values__=dE(this.value()));var c=this.__index__>=this.__values__.length,f=c?n:this.__values__[this.__index__++];return{done:c,value:f}}function RW(){return this}function MW(c){for(var f,v=this;v instanceof bh;){var E=zT(v);E.__index__=0,E.__values__=n,f?D.__wrapped__=E:f=E;var D=E;v=v.__wrapped__}return D.__wrapped__=c,f}function AW(){var c=this.__wrapped__;if(c instanceof wt){var f=c;return this.__actions__.length&&(f=new wt(this)),f=f.reverse(),f.__actions__.push({func:$h,args:[ob],thisArg:n}),new ci(f,this.__chain__)}return this.thru(ob)}function DW(){return hT(this.__wrapped__,this.__actions__)}var IW=Eh(function(c,f,v){Ft.call(c,v)?++c[v]:eo(c,v,1)});function $W(c,f,v){var E=st(c)?ES:S5;return v&&wr(c,f,v)&&(f=n),E(c,Ze(f,3))}function LW(c,f){var v=st(c)?va:XS;return v(c,Ze(f,3))}var kW=ST(VT),NW=ST(GT);function FW(c,f){return sr(Lh(c,f),1)}function jW(c,f){return sr(Lh(c,f),V)}function BW(c,f,v){return v=v===n?1:ut(v),sr(Lh(c,f),v)}function QT(c,f){var v=st(c)?Kr:wa;return v(c,Ze(f,3))}function JT(c,f){var v=st(c)?oU:YS;return v(c,Ze(f,3))}var UW=Eh(function(c,f,v){Ft.call(c,v)?c[v].push(f):eo(c,v,[f])});function WW(c,f,v,E){c=Ar(c)?c:kl(c),v=v&&!E?ut(v):0;var D=c.length;return v<0&&(v=zn(D+v,0)),Bh(c)?v<=D&&c.indexOf(f,v)>-1:!!D&&Sl(c,f,v)>-1}var HW=ht(function(c,f,v){var E=-1,D=typeof f=="function",k=Ar(c)?te(c.length):[];return wa(c,function(W){k[++E]=D?qr(f,W,v):Sc(W,f,v)}),k}),zW=Eh(function(c,f,v){eo(c,v,f)});function Lh(c,f){var v=st(c)?an:nT;return v(c,Ze(f,3))}function VW(c,f,v,E){return c==null?[]:(st(f)||(f=f==null?[]:[f]),v=E?n:v,st(v)||(v=v==null?[]:[v]),aT(c,f,v))}var GW=Eh(function(c,f,v){c[v?0:1].push(f)},function(){return[[],[]]});function qW(c,f,v){var E=st(c)?yy:MS,D=arguments.length<3;return E(c,Ze(f,4),v,D,wa)}function KW(c,f,v){var E=st(c)?aU:MS,D=arguments.length<3;return E(c,Ze(f,4),v,D,YS)}function YW(c,f){var v=st(c)?va:XS;return v(c,Fh(Ze(f,3)))}function XW(c){var f=st(c)?VS:W5;return f(c)}function ZW(c,f,v){(v?wr(c,f,v):f===n)?f=1:f=ut(f);var E=st(c)?b5:H5;return E(c,f)}function QW(c){var f=st(c)?x5:V5;return f(c)}function JW(c){if(c==null)return 0;if(Ar(c))return Bh(c)?El(c):c.length;var f=fr(c);return f==qe||f==Q?c.size:Ny(c).length}function e4(c,f,v){var E=st(c)?by:G5;return v&&wr(c,f,v)&&(f=n),E(c,Ze(f,3))}var t4=ht(function(c,f){if(c==null)return[];var v=f.length;return v>1&&wr(c,f[0],f[1])?f=[]:v>2&&wr(f[0],f[1],f[2])&&(f=[f[0]]),aT(c,sr(f,1),[])}),kh=LU||function(){return ar.Date.now()};function n4(c,f){if(typeof f!="function")throw new ui(a);return c=ut(c),function(){if(--c<1)return f.apply(this,arguments)}}function eE(c,f,v){return f=v?n:f,f=c&&f==null?c.length:f,Ro(c,A,n,n,n,n,f)}function tE(c,f){var v;if(typeof f!="function")throw new ui(a);return c=ut(c),function(){return--c>0&&(v=f.apply(this,arguments)),c<=1&&(f=n),v}}var sb=ht(function(c,f,v){var E=x;if(v.length){var D=ba(v,$l(sb));E|=O}return Ro(c,E,f,v,D)}),nE=ht(function(c,f,v){var E=x|S;if(v.length){var D=ba(v,$l(nE));E|=O}return Ro(f,E,c,v,D)});function rE(c,f,v){f=v?n:f;var E=Ro(c,C,n,n,n,n,n,f);return E.placeholder=rE.placeholder,E}function iE(c,f,v){f=v?n:f;var E=Ro(c,R,n,n,n,n,n,f);return E.placeholder=iE.placeholder,E}function oE(c,f,v){var E,D,k,W,q,X,re=0,ie=!1,se=!1,Ee=!0;if(typeof c!="function")throw new ui(a);f=pi(f)||0,fn(v)&&(ie=!!v.leading,se="maxWait"in v,k=se?zn(pi(v.maxWait)||0,f):k,Ee="trailing"in v?!!v.trailing:Ee);function Ve(Pn){var Ui=E,$o=D;return E=D=n,re=Pn,W=c.apply($o,Ui),W}function Qe(Pn){return re=Pn,q=Rc(yt,f),ie?Ve(Pn):W}function ct(Pn){var Ui=Pn-X,$o=Pn-re,TE=f-Ui;return se?dr(TE,k-$o):TE}function Xe(Pn){var Ui=Pn-X,$o=Pn-re;return X===n||Ui>=f||Ui<0||se&&$o>=k}function yt(){var Pn=kh();if(Xe(Pn))return Tt(Pn);q=Rc(yt,ct(Pn))}function Tt(Pn){return q=n,Ee&&E?Ve(Pn):(E=D=n,W)}function Qr(){q!==n&&gT(q),re=0,E=X=D=q=n}function _r(){return q===n?W:Tt(kh())}function Jr(){var Pn=kh(),Ui=Xe(Pn);if(E=arguments,D=this,X=Pn,Ui){if(q===n)return Qe(X);if(se)return gT(q),q=Rc(yt,f),Ve(X)}return q===n&&(q=Rc(yt,f)),W}return Jr.cancel=Qr,Jr.flush=_r,Jr}var r4=ht(function(c,f){return KS(c,1,f)}),i4=ht(function(c,f,v){return KS(c,pi(f)||0,v)});function o4(c){return Ro(c,I)}function Nh(c,f){if(typeof c!="function"||f!=null&&typeof f!="function")throw new ui(a);var v=function(){var E=arguments,D=f?f.apply(this,E):E[0],k=v.cache;if(k.has(D))return k.get(D);var W=c.apply(this,E);return v.cache=k.set(D,W)||k,W};return v.cache=new(Nh.Cache||Po),v}Nh.Cache=Po;function Fh(c){if(typeof c!="function")throw new ui(a);return function(){var f=arguments;switch(f.length){case 0:return!c.call(this);case 1:return!c.call(this,f[0]);case 2:return!c.call(this,f[0],f[1]);case 3:return!c.call(this,f[0],f[1],f[2])}return!c.apply(this,f)}}function a4(c){return tE(2,c)}var s4=q5(function(c,f){f=f.length==1&&st(f[0])?an(f[0],Yr(Ze())):an(sr(f,1),Yr(Ze()));var v=f.length;return ht(function(E){for(var D=-1,k=dr(E.length,v);++D<k;)E[D]=f[D].call(this,E[D]);return qr(c,this,E)})}),lb=ht(function(c,f){var v=ba(f,$l(lb));return Ro(c,O,n,f,v)}),aE=ht(function(c,f){var v=ba(f,$l(aE));return Ro(c,T,n,f,v)}),l4=Mo(function(c,f){return Ro(c,L,n,n,n,f)});function u4(c,f){if(typeof c!="function")throw new ui(a);return f=f===n?f:ut(f),ht(c,f)}function c4(c,f){if(typeof c!="function")throw new ui(a);return f=f==null?0:zn(ut(f),0),ht(function(v){var E=v[f],D=Sa(v,0,f);return E&&ya(D,E),qr(c,this,D)})}function d4(c,f,v){var E=!0,D=!0;if(typeof c!="function")throw new ui(a);return fn(v)&&(E="leading"in v?!!v.leading:E,D="trailing"in v?!!v.trailing:D),oE(c,f,{leading:E,maxWait:f,trailing:D})}function f4(c){return eE(c,1)}function h4(c,f){return lb(Gy(f),c)}function p4(){if(!arguments.length)return[];var c=arguments[0];return st(c)?c:[c]}function g4(c){return di(c,m)}function m4(c,f){return f=typeof f=="function"?f:n,di(c,m,f)}function v4(c){return di(c,p|m)}function y4(c,f){return f=typeof f=="function"?f:n,di(c,p|m,f)}function b4(c,f){return f==null||qS(c,f,Yn(f))}function Bi(c,f){return c===f||c!==c&&f!==f}var x4=Mh($y),w4=Mh(function(c,f){return c>=f}),ps=JS(function(){return arguments}())?JS:function(c){return xn(c)&&Ft.call(c,"callee")&&!jS.call(c,"callee")},st=te.isArray,_4=xS?Yr(xS):M5;function Ar(c){return c!=null&&jh(c.length)&&!Do(c)}function On(c){return xn(c)&&Ar(c)}function C4(c){return c===!0||c===!1||xn(c)&&xr(c)==ue}var Ta=NU||xb,S4=wS?Yr(wS):A5;function T4(c){return xn(c)&&c.nodeType===1&&!Mc(c)}function E4(c){if(c==null)return!0;if(Ar(c)&&(st(c)||typeof c=="string"||typeof c.splice=="function"||Ta(c)||Ll(c)||ps(c)))return!c.length;var f=fr(c);if(f==qe||f==Q)return!c.size;if(Pc(c))return!Ny(c).length;for(var v in c)if(Ft.call(c,v))return!1;return!0}function O4(c,f){return Tc(c,f)}function P4(c,f,v){v=typeof v=="function"?v:n;var E=v?v(c,f):n;return E===n?Tc(c,f,n,v):!!E}function ub(c){if(!xn(c))return!1;var f=xr(c);return f==be||f==We||typeof c.message=="string"&&typeof c.name=="string"&&!Mc(c)}function R4(c){return typeof c=="number"&&US(c)}function Do(c){if(!fn(c))return!1;var f=xr(c);return f==pe||f==He||f==fe||f==Yt}function sE(c){return typeof c=="number"&&c==ut(c)}function jh(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=J}function fn(c){var f=typeof c;return c!=null&&(f=="object"||f=="function")}function xn(c){return c!=null&&typeof c=="object"}var lE=_S?Yr(_S):I5;function M4(c,f){return c===f||ky(c,f,Jy(f))}function A4(c,f,v){return v=typeof v=="function"?v:n,ky(c,f,Jy(f),v)}function D4(c){return uE(c)&&c!=+c}function I4(c){if(m3(c))throw new it(o);return eT(c)}function $4(c){return c===null}function L4(c){return c==null}function uE(c){return typeof c=="number"||xn(c)&&xr(c)==tt}function Mc(c){if(!xn(c)||xr(c)!=Ct)return!1;var f=fh(c);if(f===null)return!0;var v=Ft.call(f,"constructor")&&f.constructor;return typeof v=="function"&&v instanceof v&&lh.call(v)==AU}var cb=CS?Yr(CS):$5;function k4(c){return sE(c)&&c>=-J&&c<=J}var cE=SS?Yr(SS):L5;function Bh(c){return typeof c=="string"||!st(c)&&xn(c)&&xr(c)==ge}function Zr(c){return typeof c=="symbol"||xn(c)&&xr(c)==he}var Ll=TS?Yr(TS):k5;function N4(c){return c===n}function F4(c){return xn(c)&&fr(c)==je}function j4(c){return xn(c)&&xr(c)==Je}var B4=Mh(Fy),U4=Mh(function(c,f){return c<=f});function dE(c){if(!c)return[];if(Ar(c))return Bh(c)?Ni(c):Mr(c);if(vc&&c[vc])return bU(c[vc]());var f=fr(c),v=f==qe?Ty:f==Q?oh:kl;return v(c)}function Io(c){if(!c)return c===0?c:0;if(c=pi(c),c===V||c===-V){var f=c<0?-1:1;return f*oe}return c===c?c:0}function ut(c){var f=Io(c),v=f%1;return f===f?v?f-v:f:0}function fE(c){return c?cs(ut(c),0,le):0}function pi(c){if(typeof c=="number")return c;if(Zr(c))return ce;if(fn(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=fn(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=AS(c);var v=zt.test(c);return v||on.test(c)?nU(c.slice(2),v?2:8):Wn.test(c)?ce:+c}function hE(c){return no(c,Dr(c))}function W4(c){return c?cs(ut(c),-J,J):c===0?c:0}function jt(c){return c==null?"":Xr(c)}var H4=Dl(function(c,f){if(Pc(f)||Ar(f)){no(f,Yn(f),c);return}for(var v in f)Ft.call(f,v)&&_c(c,v,f[v])}),pE=Dl(function(c,f){no(f,Dr(f),c)}),gE=Dl(function(c,f,v,E){no(f,Dr(f),c,E)}),db=Dl(function(c,f,v,E){no(f,Yn(f),c,E)}),z4=Mo(Ay);function V4(c,f){var v=Al(c);return f==null?v:GS(v,f)}var G4=ht(function(c,f){c=Gt(c);var v=-1,E=f.length,D=E>2?f[2]:n;for(D&&wr(f[0],f[1],D)&&(E=1);++v<E;)for(var k=f[v],W=Dr(k),q=-1,X=W.length;++q<X;){var re=W[q],ie=c[re];(ie===n||Bi(ie,Pl[re])&&!Ft.call(c,re))&&(c[re]=k[re])}return c}),q4=ht(function(c){return c.push(n,AT),qr(mE,n,c)});function K4(c,f){return OS(c,Ze(f,3),to)}function Y4(c,f){return OS(c,Ze(f,3),Iy)}function X4(c,f){return c==null?c:Dy(c,Ze(f,3),Dr)}function Z4(c,f){return c==null?c:ZS(c,Ze(f,3),Dr)}function Q4(c,f){return c&&to(c,Ze(f,3))}function J4(c,f){return c&&Iy(c,Ze(f,3))}function eH(c){return c==null?[]:_h(c,Yn(c))}function tH(c){return c==null?[]:_h(c,Dr(c))}function fb(c,f,v){var E=c==null?n:ds(c,f);return E===n?v:E}function nH(c,f){return c!=null&&$T(c,f,E5)}function hb(c,f){return c!=null&&$T(c,f,O5)}var rH=ET(function(c,f,v){f!=null&&typeof f.toString!="function"&&(f=uh.call(f)),c[f]=v},gb(Ir)),iH=ET(function(c,f,v){f!=null&&typeof f.toString!="function"&&(f=uh.call(f)),Ft.call(c,f)?c[f].push(v):c[f]=[v]},Ze),oH=ht(Sc);function Yn(c){return Ar(c)?zS(c):Ny(c)}function Dr(c){return Ar(c)?zS(c,!0):N5(c)}function aH(c,f){var v={};return f=Ze(f,3),to(c,function(E,D,k){eo(v,f(E,D,k),E)}),v}function sH(c,f){var v={};return f=Ze(f,3),to(c,function(E,D,k){eo(v,D,f(E,D,k))}),v}var lH=Dl(function(c,f,v){Ch(c,f,v)}),mE=Dl(function(c,f,v,E){Ch(c,f,v,E)}),uH=Mo(function(c,f){var v={};if(c==null)return v;var E=!1;f=an(f,function(k){return k=Ca(k,c),E||(E=k.length>1),k}),no(c,Zy(c),v),E&&(v=di(v,p|g|m,i3));for(var D=f.length;D--;)Hy(v,f[D]);return v});function cH(c,f){return vE(c,Fh(Ze(f)))}var dH=Mo(function(c,f){return c==null?{}:j5(c,f)});function vE(c,f){if(c==null)return{};var v=an(Zy(c),function(E){return[E]});return f=Ze(f),sT(c,v,function(E,D){return f(E,D[0])})}function fH(c,f,v){f=Ca(f,c);var E=-1,D=f.length;for(D||(D=1,c=n);++E<D;){var k=c==null?n:c[ji(f[E])];k===n&&(E=D,k=v),c=Do(k)?k.call(c):k}return c}function hH(c,f,v){return c==null?c:Ec(c,f,v)}function pH(c,f,v,E){return E=typeof E=="function"?E:n,c==null?c:Ec(c,f,v,E)}var yE=RT(Yn),bE=RT(Dr);function gH(c,f,v){var E=st(c),D=E||Ta(c)||Ll(c);if(f=Ze(f,4),v==null){var k=c&&c.constructor;D?v=E?new k:[]:fn(c)?v=Do(k)?Al(fh(c)):{}:v={}}return(D?Kr:to)(c,function(W,q,X){return f(v,W,q,X)}),v}function mH(c,f){return c==null?!0:Hy(c,f)}function vH(c,f,v){return c==null?c:fT(c,f,Gy(v))}function yH(c,f,v,E){return E=typeof E=="function"?E:n,c==null?c:fT(c,f,Gy(v),E)}function kl(c){return c==null?[]:Sy(c,Yn(c))}function bH(c){return c==null?[]:Sy(c,Dr(c))}function xH(c,f,v){return v===n&&(v=f,f=n),v!==n&&(v=pi(v),v=v===v?v:0),f!==n&&(f=pi(f),f=f===f?f:0),cs(pi(c),f,v)}function wH(c,f,v){return f=Io(f),v===n?(v=f,f=0):v=Io(v),c=pi(c),P5(c,f,v)}function _H(c,f,v){if(v&&typeof v!="boolean"&&wr(c,f,v)&&(f=v=n),v===n&&(typeof f=="boolean"?(v=f,f=n):typeof c=="boolean"&&(v=c,c=n)),c===n&&f===n?(c=0,f=1):(c=Io(c),f===n?(f=c,c=0):f=Io(f)),c>f){var E=c;c=f,f=E}if(v||c%1||f%1){var D=WS();return dr(c+D*(f-c+tU("1e-"+((D+"").length-1))),f)}return By(c,f)}var CH=Il(function(c,f,v){return f=f.toLowerCase(),c+(v?xE(f):f)});function xE(c){return pb(jt(c).toLowerCase())}function wE(c){return c=jt(c),c&&c.replace(ns,pU).replace(VB,"")}function SH(c,f,v){c=jt(c),f=Xr(f);var E=c.length;v=v===n?E:cs(ut(v),0,E);var D=v;return v-=f.length,v>=0&&c.slice(v,D)==f}function TH(c){return c=jt(c),c&&sy.test(c)?c.replace(Qf,gU):c}function EH(c){return c=jt(c),c&&ee.test(c)?c.replace(Z,"\\$&"):c}var OH=Il(function(c,f,v){return c+(v?"-":"")+f.toLowerCase()}),PH=Il(function(c,f,v){return c+(v?" ":"")+f.toLowerCase()}),RH=CT("toLowerCase");function MH(c,f,v){c=jt(c),f=ut(f);var E=f?El(c):0;if(!f||E>=f)return c;var D=(f-E)/2;return Rh(mh(D),v)+c+Rh(gh(D),v)}function AH(c,f,v){c=jt(c),f=ut(f);var E=f?El(c):0;return f&&E<f?c+Rh(f-E,v):c}function DH(c,f,v){c=jt(c),f=ut(f);var E=f?El(c):0;return f&&E<f?Rh(f-E,v)+c:c}function IH(c,f,v){return v||f==null?f=0:f&&(f=+f),UU(jt(c).replace(ae,""),f||0)}function $H(c,f,v){return(v?wr(c,f,v):f===n)?f=1:f=ut(f),Uy(jt(c),f)}function LH(){var c=arguments,f=jt(c[0]);return c.length<3?f:f.replace(c[1],c[2])}var kH=Il(function(c,f,v){return c+(v?"_":"")+f.toLowerCase()});function NH(c,f,v){return v&&typeof v!="number"&&wr(c,f,v)&&(f=v=n),v=v===n?le:v>>>0,v?(c=jt(c),c&&(typeof f=="string"||f!=null&&!cb(f))&&(f=Xr(f),!f&&Tl(c))?Sa(Ni(c),0,v):c.split(f,v)):[]}var FH=Il(function(c,f,v){return c+(v?" ":"")+pb(f)});function jH(c,f,v){return c=jt(c),v=v==null?0:cs(ut(v),0,c.length),f=Xr(f),c.slice(v,v+f.length)==f}function BH(c,f,v){var E=$.templateSettings;v&&wr(c,f,v)&&(f=n),c=jt(c),f=db({},f,E,MT);var D=db({},f.imports,E.imports,MT),k=Yn(D),W=Sy(D,k);Kr(k,function(Xe){if(De.test(Xe))throw new it(l)});var q,X,re=0,ie=f.interpolate||Rr,se="__p += '",Ee=Ey((f.escape||Rr).source+"|"+ie.source+"|"+(ie===ts?at:Rr).source+"|"+(f.evaluate||Rr).source+"|$","g"),Ve="//# sourceURL="+(Ft.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++XB+"]")+`
|
|
359
|
+
`;c.replace(Ee,function(Xe,yt,Tt,Qr,_r,Jr){return Tt||(Tt=Qr),se+=c.slice(re,Jr).replace(si,mU),yt&&(q=!0,se+=`' +
|
|
360
|
+
__e(`+yt+`) +
|
|
361
|
+
'`),_r&&(X=!0,se+=`';
|
|
362
|
+
`+_r+`;
|
|
363
|
+
__p += '`),Tt&&(se+=`' +
|
|
364
|
+
((__t = (`+Tt+`)) == null ? '' : __t) +
|
|
365
|
+
'`),re=Jr+Xe.length,Xe}),se+=`';
|
|
366
|
+
`;var Qe=Ft.call(f,"variable")&&f.variable;if(!Qe)se=`with (obj) {
|
|
367
|
+
`+se+`
|
|
368
|
+
}
|
|
369
|
+
`;else if(De.test(Qe))throw new it(s);se=(X?se.replace(bl,""):se).replace(Zf,"$1").replace(pc,"$1;"),se="function("+(Qe||"obj")+`) {
|
|
370
|
+
`+(Qe?"":`obj || (obj = {});
|
|
371
|
+
`)+"var __t, __p = ''"+(q?", __e = _.escape":"")+(X?`, __j = Array.prototype.join;
|
|
372
|
+
function print() { __p += __j.call(arguments, '') }
|
|
373
|
+
`:`;
|
|
374
|
+
`)+se+`return __p
|
|
375
|
+
}`;var ct=CE(function(){return $t(k,Ve+"return "+se).apply(n,W)});if(ct.source=se,ub(ct))throw ct;return ct}function UH(c){return jt(c).toLowerCase()}function WH(c){return jt(c).toUpperCase()}function HH(c,f,v){if(c=jt(c),c&&(v||f===n))return AS(c);if(!c||!(f=Xr(f)))return c;var E=Ni(c),D=Ni(f),k=DS(E,D),W=IS(E,D)+1;return Sa(E,k,W).join("")}function zH(c,f,v){if(c=jt(c),c&&(v||f===n))return c.slice(0,LS(c)+1);if(!c||!(f=Xr(f)))return c;var E=Ni(c),D=IS(E,Ni(f))+1;return Sa(E,0,D).join("")}function VH(c,f,v){if(c=jt(c),c&&(v||f===n))return c.replace(ae,"");if(!c||!(f=Xr(f)))return c;var E=Ni(c),D=DS(E,Ni(f));return Sa(E,D).join("")}function GH(c,f){var v=N,E=B;if(fn(f)){var D="separator"in f?f.separator:D;v="length"in f?ut(f.length):v,E="omission"in f?Xr(f.omission):E}c=jt(c);var k=c.length;if(Tl(c)){var W=Ni(c);k=W.length}if(v>=k)return c;var q=v-El(E);if(q<1)return E;var X=W?Sa(W,0,q).join(""):c.slice(0,q);if(D===n)return X+E;if(W&&(q+=X.length-q),cb(D)){if(c.slice(q).search(D)){var re,ie=X;for(D.global||(D=Ey(D.source,jt(vt.exec(D))+"g")),D.lastIndex=0;re=D.exec(ie);)var se=re.index;X=X.slice(0,se===n?q:se)}}else if(c.indexOf(Xr(D),q)!=q){var Ee=X.lastIndexOf(D);Ee>-1&&(X=X.slice(0,Ee))}return X+E}function qH(c){return c=jt(c),c&&Jf.test(c)?c.replace(xl,CU):c}var KH=Il(function(c,f,v){return c+(v?" ":"")+f.toUpperCase()}),pb=CT("toUpperCase");function _E(c,f,v){return c=jt(c),f=v?n:f,f===n?yU(c)?EU(c):uU(c):c.match(f)||[]}var CE=ht(function(c,f){try{return qr(c,n,f)}catch(v){return ub(v)?v:new it(v)}}),YH=Mo(function(c,f){return Kr(f,function(v){v=ji(v),eo(c,v,sb(c[v],c))}),c});function XH(c){var f=c==null?0:c.length,v=Ze();return c=f?an(c,function(E){if(typeof E[1]!="function")throw new ui(a);return[v(E[0]),E[1]]}):[],ht(function(E){for(var D=-1;++D<f;){var k=c[D];if(qr(k[0],this,E))return qr(k[1],this,E)}})}function ZH(c){return C5(di(c,p))}function gb(c){return function(){return c}}function QH(c,f){return c==null||c!==c?f:c}var JH=TT(),ez=TT(!0);function Ir(c){return c}function mb(c){return tT(typeof c=="function"?c:di(c,p))}function tz(c){return rT(di(c,p))}function nz(c,f){return iT(c,di(f,p))}var rz=ht(function(c,f){return function(v){return Sc(v,c,f)}}),iz=ht(function(c,f){return function(v){return Sc(c,v,f)}});function vb(c,f,v){var E=Yn(f),D=_h(f,E);v==null&&!(fn(f)&&(D.length||!E.length))&&(v=f,f=c,c=this,D=_h(f,Yn(f)));var k=!(fn(v)&&"chain"in v)||!!v.chain,W=Do(c);return Kr(D,function(q){var X=f[q];c[q]=X,W&&(c.prototype[q]=function(){var re=this.__chain__;if(k||re){var ie=c(this.__wrapped__),se=ie.__actions__=Mr(this.__actions__);return se.push({func:X,args:arguments,thisArg:c}),ie.__chain__=re,ie}return X.apply(c,ya([this.value()],arguments))})}),c}function oz(){return ar._===this&&(ar._=DU),this}function yb(){}function az(c){return c=ut(c),ht(function(f){return oT(f,c)})}var sz=Ky(an),lz=Ky(ES),uz=Ky(by);function SE(c){return tb(c)?xy(ji(c)):B5(c)}function cz(c){return function(f){return c==null?n:ds(c,f)}}var dz=OT(),fz=OT(!0);function bb(){return[]}function xb(){return!1}function hz(){return{}}function pz(){return""}function gz(){return!0}function mz(c,f){if(c=ut(c),c<1||c>J)return[];var v=le,E=dr(c,le);f=Ze(f),c-=le;for(var D=Cy(E,f);++v<c;)f(v);return D}function vz(c){return st(c)?an(c,ji):Zr(c)?[c]:Mr(HT(jt(c)))}function yz(c){var f=++MU;return jt(c)+f}var bz=Ph(function(c,f){return c+f},0),xz=Yy("ceil"),wz=Ph(function(c,f){return c/f},1),_z=Yy("floor");function Cz(c){return c&&c.length?wh(c,Ir,$y):n}function Sz(c,f){return c&&c.length?wh(c,Ze(f,2),$y):n}function Tz(c){return RS(c,Ir)}function Ez(c,f){return RS(c,Ze(f,2))}function Oz(c){return c&&c.length?wh(c,Ir,Fy):n}function Pz(c,f){return c&&c.length?wh(c,Ze(f,2),Fy):n}var Rz=Ph(function(c,f){return c*f},1),Mz=Yy("round"),Az=Ph(function(c,f){return c-f},0);function Dz(c){return c&&c.length?_y(c,Ir):0}function Iz(c,f){return c&&c.length?_y(c,Ze(f,2)):0}return $.after=n4,$.ary=eE,$.assign=H4,$.assignIn=pE,$.assignInWith=gE,$.assignWith=db,$.at=z4,$.before=tE,$.bind=sb,$.bindAll=YH,$.bindKey=nE,$.castArray=p4,$.chain=ZT,$.chunk=C3,$.compact=S3,$.concat=T3,$.cond=XH,$.conforms=ZH,$.constant=gb,$.countBy=IW,$.create=V4,$.curry=rE,$.curryRight=iE,$.debounce=oE,$.defaults=G4,$.defaultsDeep=q4,$.defer=r4,$.delay=i4,$.difference=E3,$.differenceBy=O3,$.differenceWith=P3,$.drop=R3,$.dropRight=M3,$.dropRightWhile=A3,$.dropWhile=D3,$.fill=I3,$.filter=LW,$.flatMap=FW,$.flatMapDeep=jW,$.flatMapDepth=BW,$.flatten=qT,$.flattenDeep=$3,$.flattenDepth=L3,$.flip=o4,$.flow=JH,$.flowRight=ez,$.fromPairs=k3,$.functions=eH,$.functionsIn=tH,$.groupBy=UW,$.initial=F3,$.intersection=j3,$.intersectionBy=B3,$.intersectionWith=U3,$.invert=rH,$.invertBy=iH,$.invokeMap=HW,$.iteratee=mb,$.keyBy=zW,$.keys=Yn,$.keysIn=Dr,$.map=Lh,$.mapKeys=aH,$.mapValues=sH,$.matches=tz,$.matchesProperty=nz,$.memoize=Nh,$.merge=lH,$.mergeWith=mE,$.method=rz,$.methodOf=iz,$.mixin=vb,$.negate=Fh,$.nthArg=az,$.omit=uH,$.omitBy=cH,$.once=a4,$.orderBy=VW,$.over=sz,$.overArgs=s4,$.overEvery=lz,$.overSome=uz,$.partial=lb,$.partialRight=aE,$.partition=GW,$.pick=dH,$.pickBy=vE,$.property=SE,$.propertyOf=cz,$.pull=V3,$.pullAll=YT,$.pullAllBy=G3,$.pullAllWith=q3,$.pullAt=K3,$.range=dz,$.rangeRight=fz,$.rearg=l4,$.reject=YW,$.remove=Y3,$.rest=u4,$.reverse=ob,$.sampleSize=ZW,$.set=hH,$.setWith=pH,$.shuffle=QW,$.slice=X3,$.sortBy=t4,$.sortedUniq=rW,$.sortedUniqBy=iW,$.split=NH,$.spread=c4,$.tail=oW,$.take=aW,$.takeRight=sW,$.takeRightWhile=lW,$.takeWhile=uW,$.tap=SW,$.throttle=d4,$.thru=$h,$.toArray=dE,$.toPairs=yE,$.toPairsIn=bE,$.toPath=vz,$.toPlainObject=hE,$.transform=gH,$.unary=f4,$.union=cW,$.unionBy=dW,$.unionWith=fW,$.uniq=hW,$.uniqBy=pW,$.uniqWith=gW,$.unset=mH,$.unzip=ab,$.unzipWith=XT,$.update=vH,$.updateWith=yH,$.values=kl,$.valuesIn=bH,$.without=mW,$.words=_E,$.wrap=h4,$.xor=vW,$.xorBy=yW,$.xorWith=bW,$.zip=xW,$.zipObject=wW,$.zipObjectDeep=_W,$.zipWith=CW,$.entries=yE,$.entriesIn=bE,$.extend=pE,$.extendWith=gE,vb($,$),$.add=bz,$.attempt=CE,$.camelCase=CH,$.capitalize=xE,$.ceil=xz,$.clamp=xH,$.clone=g4,$.cloneDeep=v4,$.cloneDeepWith=y4,$.cloneWith=m4,$.conformsTo=b4,$.deburr=wE,$.defaultTo=QH,$.divide=wz,$.endsWith=SH,$.eq=Bi,$.escape=TH,$.escapeRegExp=EH,$.every=$W,$.find=kW,$.findIndex=VT,$.findKey=K4,$.findLast=NW,$.findLastIndex=GT,$.findLastKey=Y4,$.floor=_z,$.forEach=QT,$.forEachRight=JT,$.forIn=X4,$.forInRight=Z4,$.forOwn=Q4,$.forOwnRight=J4,$.get=fb,$.gt=x4,$.gte=w4,$.has=nH,$.hasIn=hb,$.head=KT,$.identity=Ir,$.includes=WW,$.indexOf=N3,$.inRange=wH,$.invoke=oH,$.isArguments=ps,$.isArray=st,$.isArrayBuffer=_4,$.isArrayLike=Ar,$.isArrayLikeObject=On,$.isBoolean=C4,$.isBuffer=Ta,$.isDate=S4,$.isElement=T4,$.isEmpty=E4,$.isEqual=O4,$.isEqualWith=P4,$.isError=ub,$.isFinite=R4,$.isFunction=Do,$.isInteger=sE,$.isLength=jh,$.isMap=lE,$.isMatch=M4,$.isMatchWith=A4,$.isNaN=D4,$.isNative=I4,$.isNil=L4,$.isNull=$4,$.isNumber=uE,$.isObject=fn,$.isObjectLike=xn,$.isPlainObject=Mc,$.isRegExp=cb,$.isSafeInteger=k4,$.isSet=cE,$.isString=Bh,$.isSymbol=Zr,$.isTypedArray=Ll,$.isUndefined=N4,$.isWeakMap=F4,$.isWeakSet=j4,$.join=W3,$.kebabCase=OH,$.last=hi,$.lastIndexOf=H3,$.lowerCase=PH,$.lowerFirst=RH,$.lt=B4,$.lte=U4,$.max=Cz,$.maxBy=Sz,$.mean=Tz,$.meanBy=Ez,$.min=Oz,$.minBy=Pz,$.stubArray=bb,$.stubFalse=xb,$.stubObject=hz,$.stubString=pz,$.stubTrue=gz,$.multiply=Rz,$.nth=z3,$.noConflict=oz,$.noop=yb,$.now=kh,$.pad=MH,$.padEnd=AH,$.padStart=DH,$.parseInt=IH,$.random=_H,$.reduce=qW,$.reduceRight=KW,$.repeat=$H,$.replace=LH,$.result=fH,$.round=Mz,$.runInContext=Y,$.sample=XW,$.size=JW,$.snakeCase=kH,$.some=e4,$.sortedIndex=Z3,$.sortedIndexBy=Q3,$.sortedIndexOf=J3,$.sortedLastIndex=eW,$.sortedLastIndexBy=tW,$.sortedLastIndexOf=nW,$.startCase=FH,$.startsWith=jH,$.subtract=Az,$.sum=Dz,$.sumBy=Iz,$.template=BH,$.times=mz,$.toFinite=Io,$.toInteger=ut,$.toLength=fE,$.toLower=UH,$.toNumber=pi,$.toSafeInteger=W4,$.toString=jt,$.toUpper=WH,$.trim=HH,$.trimEnd=zH,$.trimStart=VH,$.truncate=GH,$.unescape=qH,$.uniqueId=yz,$.upperCase=KH,$.upperFirst=pb,$.each=QT,$.eachRight=JT,$.first=KT,vb($,function(){var c={};return to($,function(f,v){Ft.call($.prototype,v)||(c[v]=f)}),c}(),{chain:!1}),$.VERSION=r,Kr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){$[c].placeholder=$}),Kr(["drop","take"],function(c,f){wt.prototype[c]=function(v){v=v===n?1:zn(ut(v),0);var E=this.__filtered__&&!f?new wt(this):this.clone();return E.__filtered__?E.__takeCount__=dr(v,E.__takeCount__):E.__views__.push({size:dr(v,le),type:c+(E.__dir__<0?"Right":"")}),E},wt.prototype[c+"Right"]=function(v){return this.reverse()[c](v).reverse()}}),Kr(["filter","map","takeWhile"],function(c,f){var v=f+1,E=v==F||v==K;wt.prototype[c]=function(D){var k=this.clone();return k.__iteratees__.push({iteratee:Ze(D,3),type:v}),k.__filtered__=k.__filtered__||E,k}}),Kr(["head","last"],function(c,f){var v="take"+(f?"Right":"");wt.prototype[c]=function(){return this[v](1).value()[0]}}),Kr(["initial","tail"],function(c,f){var v="drop"+(f?"":"Right");wt.prototype[c]=function(){return this.__filtered__?new wt(this):this[v](1)}}),wt.prototype.compact=function(){return this.filter(Ir)},wt.prototype.find=function(c){return this.filter(c).head()},wt.prototype.findLast=function(c){return this.reverse().find(c)},wt.prototype.invokeMap=ht(function(c,f){return typeof c=="function"?new wt(this):this.map(function(v){return Sc(v,c,f)})}),wt.prototype.reject=function(c){return this.filter(Fh(Ze(c)))},wt.prototype.slice=function(c,f){c=ut(c);var v=this;return v.__filtered__&&(c>0||f<0)?new wt(v):(c<0?v=v.takeRight(-c):c&&(v=v.drop(c)),f!==n&&(f=ut(f),v=f<0?v.dropRight(-f):v.take(f-c)),v)},wt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},wt.prototype.toArray=function(){return this.take(le)},to(wt.prototype,function(c,f){var v=/^(?:filter|find|map|reject)|While$/.test(f),E=/^(?:head|last)$/.test(f),D=$[E?"take"+(f=="last"?"Right":""):f],k=E||/^find/.test(f);D&&($.prototype[f]=function(){var W=this.__wrapped__,q=E?[1]:arguments,X=W instanceof wt,re=q[0],ie=X||st(W),se=function(yt){var Tt=D.apply($,ya([yt],q));return E&&Ee?Tt[0]:Tt};ie&&v&&typeof re=="function"&&re.length!=1&&(X=ie=!1);var Ee=this.__chain__,Ve=!!this.__actions__.length,Qe=k&&!Ee,ct=X&&!Ve;if(!k&&ie){W=ct?W:new wt(this);var Xe=c.apply(W,q);return Xe.__actions__.push({func:$h,args:[se],thisArg:n}),new ci(Xe,Ee)}return Qe&&ct?c.apply(this,q):(Xe=this.thru(se),Qe?E?Xe.value()[0]:Xe.value():Xe)})}),Kr(["pop","push","shift","sort","splice","unshift"],function(c){var f=ah[c],v=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",E=/^(?:pop|shift)$/.test(c);$.prototype[c]=function(){var D=arguments;if(E&&!this.__chain__){var k=this.value();return f.apply(st(k)?k:[],D)}return this[v](function(W){return f.apply(st(W)?W:[],D)})}}),to(wt.prototype,function(c,f){var v=$[f];if(v){var E=v.name+"";Ft.call(Ml,E)||(Ml[E]=[]),Ml[E].push({name:f,func:v})}}),Ml[Oh(n,S).name]=[{name:"wrapper",func:n}],wt.prototype.clone=KU,wt.prototype.reverse=YU,wt.prototype.value=XU,$.prototype.at=TW,$.prototype.chain=EW,$.prototype.commit=OW,$.prototype.next=PW,$.prototype.plant=MW,$.prototype.reverse=AW,$.prototype.toJSON=$.prototype.valueOf=$.prototype.value=DW,$.prototype.first=$.prototype.head,vc&&($.prototype[vc]=RW),$},Ol=OU();as?((as.exports=Ol)._=Ol,gy._=Ol):ar._=Ol}).call(zi)})(Mg,Mg.exports);var Un=Mg.exports;const kne=()=>{const[e,t]=Nn([]);return{closeDialog:()=>{t(i=>(i.pop(),[...i]))},createDialog:(i,o)=>{const a={...i,open:!0,key:Un.uniqueId("dialog_")};t(o?()=>[a]:s=>[...s,a])},dialogs:e}},YL=cf([]);function MNe({children:e}){const{closeDialog:t,createDialog:n,dialogs:r}=kne(),i=Rn([n,t]);return _.jsxs(YL.Provider,{value:i.current,children:[e,r.map(o=>_.jsx(Fz,{children:o},o.key))]})}function XL(){const e=ia(YL);if(!e)throw new Error("Dialog context is only available inside its provider");return e}const bv=cf(document.body),ANe=bv.Provider,ot=e=>typeof e=="string",Hc=()=>{let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n},BP=e=>e==null?"":""+e,Nne=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},Fne=/###/g,UP=e=>e&&e.indexOf("###")>-1?e.replace(Fne,"."):e,WP=e=>!e||ot(e),Td=(e,t,n)=>{const r=ot(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(WP(e))return{};const o=UP(r[i]);!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++i}return WP(e)?{}:{obj:e,k:UP(r[i])}},HP=(e,t,n)=>{const{obj:r,k:i}=Td(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let o=t[t.length-1],a=t.slice(0,t.length-1),s=Td(e,a,Object);for(;s.obj===void 0&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=Td(e,a,Object),s&&s.obj&&typeof s.obj[`${s.k}.${o}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},jne=(e,t,n,r)=>{const{obj:i,k:o}=Td(e,t,Object);i[o]=i[o]||[],i[o].push(n)},Ag=(e,t)=>{const{obj:n,k:r}=Td(e,t);if(n)return n[r]},Bne=(e,t,n)=>{const r=Ag(e,n);return r!==void 0?r:Ag(t,n)},ZL=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?ot(e[r])||e[r]instanceof String||ot(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):ZL(e[r],t[r],n):e[r]=t[r]);return e},zl=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Une={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Wne=e=>ot(e)?e.replace(/[&<>"'\/]/g,t=>Une[t]):e;class Hne{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const zne=[" ",",","?","!",";"],Vne=new Hne(20),Gne=(e,t,n)=>{t=t||"",n=n||"";const r=zne.filter(a=>t.indexOf(a)<0&&n.indexOf(a)<0);if(r.length===0)return!0;const i=Vne.getRegExp(`(${r.map(a=>a==="?"?"\\?":a).join("|")})`);let o=!i.test(e);if(!o){const a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o},px=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let o=0;o<r.length;){if(!i||typeof i!="object")return;let a,s="";for(let l=o;l<r.length;++l)if(l!==o&&(s+=n),s+=r[l],a=i[s],a!==void 0){if(["string","number","boolean"].indexOf(typeof a)>-1&&l<r.length-1)continue;o+=l-o+1;break}i=a}return i},Dg=e=>e&&e.replace("_","-"),qne={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Ig{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||qne,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(ot(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Ig(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Ig(this.logger,t)}}var mo=new Ig;class xv{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(a=>{let[s,l]=a;for(let u=0;u<l;u++)s(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(a=>{let[s,l]=a;for(let u=0;u<l;u++)s.apply(s,[t,...r])})}}class zP extends xv{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,a=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,n],r&&(Array.isArray(r)?s.push(...r):ot(r)&&o?s.push(...r.split(o)):s.push(r)));const l=Ag(this.data,s);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=s[0],n=s[1],r=s.slice(2).join(".")),l||!a||!ot(r)?l:px(this.data&&this.data[t]&&this.data[t][n],r,o)}addResource(t,n,r,i){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let s=[t,n];r&&(s=s.concat(a?r.split(a):r)),t.indexOf(".")>-1&&(s=t.split("."),i=n,n=s[1]),this.addNamespaces(n),HP(this.data,s,i),o.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(ot(r[o])||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[t,n];t.indexOf(".")>-1&&(s=t.split("."),i=r,r=n,n=s[1]),this.addNamespaces(n);let l=Ag(this.data,s)||{};a.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?ZL(l,r,o):l={...l,...r},HP(this.data,s,l),a.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var QL={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,r,i))}),t}};const VP={};class $g extends xv{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Nne(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=mo.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const a=r&&t.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Gne(t,r,i);if(a&&!s){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:ot(o)?[o]:o};const u=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),t=u.join(i)}return{key:t,namespaces:ot(o)?[o]:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(t[t.length-1],n),l=s[s.length-1],u=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(d){const C=n.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${C}${a}`,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${C}${a}`}return i?{res:a,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:a}const h=this.resolve(t,n);let p=h&&h.res;const g=h&&h.usedKey||a,m=h&&h.exactUsedKey||a,y=Object.prototype.toString.apply(p),b=["[object Number]","[object Function]","[object RegExp]"],x=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,S=!this.i18nFormat||this.i18nFormat.handleAsObject,w=!ot(p)&&typeof p!="boolean"&&typeof p!="number";if(S&&p&&w&&b.indexOf(y)<0&&!(ot(x)&&Array.isArray(p))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const C=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,p,{...n,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(h.res=C,h.usedParams=this.getUsedParamsDetails(n),h):C}if(o){const C=Array.isArray(p),R=C?[]:{},O=C?m:g;for(const T in p)if(Object.prototype.hasOwnProperty.call(p,T)){const A=`${O}${o}${T}`;R[T]=this.translate(A,{...n,joinArrays:!1,ns:s}),R[T]===A&&(R[T]=p[T])}p=R}}else if(S&&ot(x)&&Array.isArray(p))p=p.join(x),p&&(p=this.extendTranslation(p,t,n,r));else{let C=!1,R=!1;const O=n.count!==void 0&&!ot(n.count),T=$g.hasDefaultValue(n),A=O?this.pluralResolver.getSuffix(u,n.count,n):"",L=n.ordinal&&O?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",I=O&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),N=I&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${A}`]||n[`defaultValue${L}`]||n.defaultValue;!this.isValidLookup(p)&&T&&(C=!0,p=N),this.isValidLookup(p)||(R=!0,p=a);const U=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&R?void 0:p,z=T&&N!==p&&this.options.updateMissing;if(R||C||z){if(this.logger.log(z?"updateKey":"missingKey",u,l,a,z?N:p),o){const V=this.resolve(a,{...n,keySeparator:!1});V&&V.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let F=[];const j=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&j&&j[0])for(let V=0;V<j.length;V++)F.push(j[V]);else this.options.saveMissingTo==="all"?F=this.languageUtils.toResolveHierarchy(n.lng||this.language):F.push(n.lng||this.language);const K=(V,J,oe)=>{const ce=T&&oe!==p?oe:U;this.options.missingKeyHandler?this.options.missingKeyHandler(V,l,J,ce,z,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(V,l,J,ce,z,n),this.emit("missingKey",V,l,J,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?F.forEach(V=>{const J=this.pluralResolver.getSuffixes(V,n);I&&n[`defaultValue${this.options.pluralSeparator}zero`]&&J.indexOf(`${this.options.pluralSeparator}zero`)<0&&J.push(`${this.options.pluralSeparator}zero`),J.forEach(oe=>{K([V],a+oe,n[`defaultValue${oe}`]||N)})}):K(F,a,N))}p=this.extendTranslation(p,t,n,h,r),R&&p===a&&this.options.appendNamespaceToMissingKey&&(p=`${l}:${a}`),(R||C)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${a}`:a,C?p:void 0):p=this.options.parseMissingKeyHandler(p))}return i?(h.res=p,h.usedParams=this.getUsedParamsDetails(n),h):p}extendTranslation(t,n,r,i,o){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=ot(t)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const p=t.match(this.interpolator.nestingRegexp);d=p&&p.length}let h=r.replace&&!ot(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),t=this.interpolator.interpolate(t,h,r.lng||this.language||i.usedLng,r),u){const p=t.match(this.interpolator.nestingRegexp),g=p&&p.length;d<g&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var p=arguments.length,g=new Array(p),m=0;m<p;m++)g[m]=arguments[m];return o&&o[0]===g[0]&&!r.context?(a.logger.warn(`It seems you are nesting recursively key: ${g[0]} in key: ${n[0]}`),null):a.translate(...g,n)},r)),r.interpolation&&this.interpolator.reset()}const s=r.postProcess||this.options.postProcess,l=ot(s)?[s]:s;return t!=null&&l&&l.length&&r.applyPostProcessor!==!1&&(t=QL.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i,o,a,s;return ot(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(l,n),d=u.key;i=d;let h=u.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const p=n.count!==void 0&&!ot(n.count),g=p&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),m=n.context!==void 0&&(ot(n.context)||typeof n.context=="number")&&n.context!=="",y=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);h.forEach(b=>{this.isValidLookup(r)||(s=b,!VP[`${y[0]}-${b}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(VP[`${y[0]}-${b}`]=!0,this.logger.warn(`key "${i}" for languages "${y.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),y.forEach(x=>{if(this.isValidLookup(r))return;a=x;const S=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(S,d,x,b,n);else{let C;p&&(C=this.pluralResolver.getSuffix(x,n.count,n));const R=`${this.options.pluralSeparator}zero`,O=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(S.push(d+C),n.ordinal&&C.indexOf(O)===0&&S.push(d+C.replace(O,this.options.pluralSeparator)),g&&S.push(d+R)),m){const T=`${d}${this.options.contextSeparator}${n.context}`;S.push(T),p&&(S.push(T+C),n.ordinal&&C.indexOf(O)===0&&S.push(T+C.replace(O,this.options.pluralSeparator)),g&&S.push(T+R))}}let w;for(;w=S.pop();)this.isValidLookup(r)||(o=w,r=this.getResource(x,b,w,n))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:a,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!ot(t.replace);let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const o of n)delete i[o]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const jb=e=>e.charAt(0).toUpperCase()+e.slice(1);class GP{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=mo.create("languageUtils")}getScriptPartFromCode(t){if(t=Dg(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Dg(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(ot(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let i=Intl.getCanonicalLocales(t)[0];if(i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i)return i}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=jb(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=jb(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=jb(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&(o.indexOf("-")>0&&i.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===i||o.indexOf(i)===0&&i.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),ot(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],o=a=>{a&&(this.isSupportedCode(a)?i.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return ot(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):ot(t)&&o(this.formatLanguageCode(t)),r.forEach(a=>{i.indexOf(a)<0&&o(this.formatLanguageCode(a))}),i}}let Kne=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Yne={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const Xne=["v1","v2","v3"],Zne=["v4"],qP={zero:0,one:1,two:2,few:3,many:4,other:5},Qne=()=>{const e={};return Kne.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Yne[t.fc]}})}),e};class Jne{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=mo.create("pluralResolver"),(!this.options.compatibilityJSON||Zne.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Qne(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const r=Dg(t==="dev"?"en":t),i=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:i});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let a;try{a=new Intl.PluralRules(r,{type:i})}catch{if(!t.match(/-|_/))return;const l=this.languageUtils.getLanguagePartFromCode(t);a=this.getRule(l,n)}return this.pluralRulesCache[o]=a,a}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,o)=>qP[i]-qP[o]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const o=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!Xne.includes(this.options.compatibilityJSON)}}const KP=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=Bne(e,t,n);return!o&&i&&ot(n)&&(o=px(e,n,r),o===void 0&&(o=px(t,n,r))),o},Bb=e=>e.replace(/\$/g,"$$$$");class ere{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=mo.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:o,prefixEscaped:a,suffix:s,suffixEscaped:l,formatSeparator:u,unescapeSuffix:d,unescapePrefix:h,nestingPrefix:p,nestingPrefixEscaped:g,nestingSuffix:m,nestingSuffixEscaped:y,nestingOptionsSeparator:b,maxReplaces:x,alwaysFormat:S}=t.interpolation;this.escape=n!==void 0?n:Wne,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=o?zl(o):a||"{{",this.suffix=s?zl(s):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=p?zl(p):g||zl("$t("),this.nestingSuffix=m?zl(m):y||zl(")"),this.nestingOptionsSeparator=b||",",this.maxReplaces=x||1e3,this.alwaysFormat=S!==void 0?S:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,i){let o,a,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=g=>{if(g.indexOf(this.formatSeparator)<0){const x=KP(n,l,g,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(x,void 0,r,{...i,...n,interpolationkey:g}):x}const m=g.split(this.formatSeparator),y=m.shift().trim(),b=m.join(this.formatSeparator).trim();return this.format(KP(n,l,y,this.options.keySeparator,this.options.ignoreJSONStructure),b,r,{...i,...n,interpolationkey:y})};this.resetRegExp();const d=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,h=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:g=>Bb(g)},{regex:this.regexp,safeValue:g=>this.escapeValue?Bb(this.escape(g)):Bb(g)}].forEach(g=>{for(s=0;o=g.regex.exec(t);){const m=o[1].trim();if(a=u(m),a===void 0)if(typeof d=="function"){const b=d(t,o,i);a=ot(b)?b:""}else if(i&&Object.prototype.hasOwnProperty.call(i,m))a="";else if(h){a=o[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${t}`),a="";else!ot(a)&&!this.useRawValueToEscape&&(a=BP(a));const y=g.safeValue(a);if(t=t.replace(o[0],y),h?(g.regex.lastIndex+=a.length,g.regex.lastIndex-=o[0].length):g.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,o,a;const s=(l,u)=>{const d=this.nestingOptionsSeparator;if(l.indexOf(d)<0)return l;const h=l.split(new RegExp(`${d}[ ]*{`));let p=`{${h[1]}`;l=h[0],p=this.interpolate(p,a);const g=p.match(/'/g),m=p.match(/"/g);(g&&g.length%2===0&&!m||m.length%2!==0)&&(p=p.replace(/'/g,'"'));try{a=JSON.parse(p),u&&(a={...u,...a})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,y),`${l}${d}${p}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,l};for(;i=this.nestingRegexp.exec(t);){let l=[];a={...r},a=a.replace&&!ot(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let u=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const d=i[1].split(this.formatSeparator).map(h=>h.trim());i[1]=d.shift(),l=d,u=!0}if(o=n(s.call(this,i[1].trim(),a),a),o&&i[0]===t&&!ot(o))return o;ot(o)||(o=BP(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),o=""),u&&(o=l.reduce((d,h)=>this.format(d,h,r.lng,{...r,interpolationkey:i[1].trim()}),o.trim())),t=t.replace(i[0],o),this.regexp.lastIndex=0}return t}}const tre=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(a=>{if(a){const[s,...l]=a.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),d=s.trim();n[d]||(n[d]=u),u==="false"&&(n[d]=!1),u==="true"&&(n[d]=!0),isNaN(u)||(n[d]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},Vl=e=>{const t={};return(n,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const a=r+JSON.stringify(o);let s=t[a];return s||(s=e(Dg(r),i),t[a]=s),s(n)}};class nre{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=mo.create("formatter"),this.options=t,this.formats={number:Vl((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return o=>i.format(o)}),currency:Vl((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>i.format(o)}),datetime:Vl((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return o=>i.format(o)}),relativetime:Vl((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return o=>i.format(o,r.range||"day")}),list:Vl((n,r)=>{const i=new Intl.ListFormat(n,{...r});return o=>i.format(o)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Vl(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(s=>s.indexOf(")")>-1)){const s=o.findIndex(l=>l.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,s)].join(this.formatSeparator)}return o.reduce((s,l)=>{const{formatName:u,formatOptions:d}=tre(l);if(this.formats[u]){let h=s;try{const p=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},g=p.locale||p.lng||i.locale||i.lng||r;h=this.formats[u](s,g,{...d,...i,...p})}catch(p){this.logger.warn(p)}return h}else this.logger.warn(`there was no format function for ${u}`);return s},t)}}const rre=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class ire extends xv{constructor(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=mo.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const o={},a={},s={},l={};return t.forEach(u=>{let d=!0;n.forEach(h=>{const p=`${u}|${h}`;!r.reload&&this.store.hasResourceBundle(u,h)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?a[p]===void 0&&(a[p]=!0):(this.state[p]=1,d=!1,a[p]===void 0&&(a[p]=!0),o[p]===void 0&&(o[p]=!0),l[h]===void 0&&(l[h]=!0)))}),d||(s[u]=!0)}),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const i=t.split("|"),o=i[0],a=i[1];n&&this.emit("failedLoading",o,a,n),!n&&r&&this.store.addResourceBundle(o,a,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const s={};this.queue.forEach(l=>{jne(l.loaded,[o],a),rre(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{s[u]||(s[u]={});const d=l.loaded[u];d.length&&d.forEach(h=>{s[u][h]===void 0&&(s[u][h]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:o,callback:a});return}this.readingCalls++;const s=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(u&&d&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,i+1,o*2,a)},o);return}a(u,d)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const u=l(t,n);u&&typeof u.then=="function"?u.then(d=>s(null,d)).catch(s):s(null,u)}catch(u){s(u)}return}return l(t,n,s)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();ot(t)&&(t=this.languageUtils.toResolveHierarchy(t)),ot(n)&&(n=[n]);const o=this.queueLoad(t,n,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(a=>{this.loadOne(a)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(a,s)=>{a&&this.logger.warn(`${n}loading namespace ${o} for language ${i} failed`,a),!a&&s&&this.logger.log(`${n}loaded namespace ${o} for language ${i}`,s),this.loaded(t,a,s)})}saveMissing(t,n,r,i,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const l={...a,isUpdate:o},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(t,n,r,i,l):d=u(t,n,r,i),d&&typeof d.then=="function"?d.then(h=>s(null,h)).catch(s):s(null,d)}catch(d){s(d)}else u(t,n,r,i,s,l)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}const YP=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),ot(e[1])&&(t.defaultValue=e[1]),ot(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),XP=e=>(ot(e.ns)&&(e.ns=[e.ns]),ot(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),ot(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Zh=()=>{},ore=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class Zd extends xv{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=XP(t),this.services={},this.logger=mo,this.modules={external:[]},ore(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(ot(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=YP();this.options={...i,...this.options,...XP(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?mo.init(o(this.modules.logger),this.options):mo.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=nre);const h=new GP(this.options);this.store=new zP(this.options.resources,this.options);const p=this.services;p.logger=mo,p.resourceStore=this.store,p.languageUtils=h,p.pluralResolver=new Jne(h,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(p.formatter=o(d),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new ere(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new ire(o(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(g){for(var m=arguments.length,y=new Array(m>1?m-1:0),b=1;b<m;b++)y[b-1]=arguments[b];t.emit(g,...y)}),this.modules.languageDetector&&(p.languageDetector=o(this.modules.languageDetector),p.languageDetector.init&&p.languageDetector.init(p,this.options.detection,this.options)),this.modules.i18nFormat&&(p.i18nFormat=o(this.modules.i18nFormat),p.i18nFormat.init&&p.i18nFormat.init(this)),this.translator=new $g(this.services,this.options),this.translator.on("*",function(g){for(var m=arguments.length,y=new Array(m>1?m-1:0),b=1;b<m;b++)y[b-1]=arguments[b];t.emit(g,...y)}),this.modules.external.forEach(g=>{g.init&&g.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Zh),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const l=Hc(),u=()=>{const d=(h,p)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(p),r(h,p)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zh;const i=ot(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],a=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(u=>{u!=="cimode"&&o.indexOf(u)<0&&o.push(u)})};i?a(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>a(l)),this.options.preload&&this.options.preload.forEach(s=>a(s)),this.services.backendConnector.load(o,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(t,n,r){const i=Hc();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=Zh),this.services.backendConnector.reload(t,n,o=>{i.resolve(),r(o)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&QL.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const i=Hc();this.emit("languageChanging",t);const o=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},a=(l,u)=>{u?(o(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},s=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const u=ot(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||o(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{a(d,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),i}getFixedT(t,n,r){var i=this;const o=function(a,s){let l;if(typeof s!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),h=2;h<u;h++)d[h-2]=arguments[h];l=i.options.overloadTranslationOptionHandler([a,s].concat(d))}else l={...s};l.lng=l.lng||o.lng,l.lngs=l.lngs||o.lngs,l.ns=l.ns||o.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||o.keyPrefix);const p=i.options.keySeparator||".";let g;return l.keyPrefix&&Array.isArray(a)?g=a.map(m=>`${l.keyPrefix}${p}${m}`):g=l.keyPrefix?`${l.keyPrefix}${p}${a}`:a,i.t(g,l)};return ot(t)?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(s,l)=>{const u=this.services.backendConnector.state[`${s}|${l}`];return u===-1||u===0||u===2};if(n.precheck){const s=n.precheck(this,a);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,t)&&(!i||a(o,t)))}loadNamespaces(t,n){const r=Hc();return this.options.ns?(ot(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Hc();ot(t)&&(t=[t]);const i=this.options.preload||[],o=t.filter(a=>i.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return o.length?(this.options.preload=i.concat(o),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new GP(YP());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Zd(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zh;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},o=new Zd(i);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(s=>{o[s]=this[s]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new zP(this.store.data,i),o.services.resourceStore=o.store),o.translator=new $g(o.services,i),o.translator.on("*",function(s){for(var l=arguments.length,u=new Array(l>1?l-1:0),d=1;d<l;d++)u[d-1]=arguments[d];o.emit(s,...u)}),o.init(i,n),o.translator.options=i,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const yr=Zd.createInstance();yr.createInstance=Zd.createInstance;yr.createInstance;yr.dir;yr.init;yr.loadResources;yr.reloadResources;yr.use;yr.changeLanguage;yr.getFixedT;yr.t;yr.exists;yr.setDefaultNamespace;yr.hasLoadedNamespace;yr.loadNamespaces;yr.loadLanguages;const are="Approve",sre="Approved",lre="Copy",ure="Deny",cre="Denied",dre="Expand",fre="Retry",hre="Start",pre="Yes",gre="No",mre="and",vre="Hide",yre="Back",bre="Forward",xre="Close",wre="Next",_re="Cancel",Cre="Yes, Submit",Sre="Dismiss",Tre="Save",Ere="Search",Ore="Loading",Pre={completed:"Authentication completed","signing-in":"Signing in...","signing-out":"Signing out...",unauthorized:"You're not authorized to access this page."},Rre={attachments:"Attachments",label:"Click here to browse your PC or drop files to upload","created-by-on-time":"by {{createdBy}} on {{date}}","files-too-large":"The following files exceed the maximum size of {{maxSize}}: {{files}}","max-size-label":"Max file size is 10MB with accepted file formats of: JPG (JPEG), PNG, PDF, GIF, DOC/X, XLS/X, CSV"},Mre={disclaimer:"Draft","create-user-title":"Add New User","create-ticket-title":"Support Ticket"},Are={"assets-counter":"{{assets}} locations","select-assets":"Select Locations","select-all":"Select All","assets-search-placeholder":"Search by Site or Asset Name...","no-assets-description":"This site contains no assets, click NEXT to continue.","asset-item":"Asset item","view-ticket":"View Ticket"},Dre="Active",Ire="Phone",$re="Email",Lre="Account",kre="Accounts",Nre="Role",Fre="Roles",jre="Option",Bre="Options",Ure="From",Wre="To",Hre="More",zre="Logout",Vre="Refresh",Gre={404:{title:"This Page could not be found.",detail:"The page you are after doesn't exist, or no longer exists. Check out the homepage instead.",button:"go to homepage"},approve:are,approved:sre,copy:lre,deny:ure,denied:cre,expand:dre,"approve-all":"Approve All","deny-all":"Deny All",retry:fre,start:hre,yes:pre,no:gre,and:mre,"error-title":"Error:","error-message":"An error occurred, please try again.","enhanced-error-message":"We are unable to display the relevant ticket information. For further assistance, please share the below details with us via <1>GlobalPortal@digitalrealty.com</1>","error-api":"API is not responding",hide:vre,"edit-details":"Edit Details",back:yre,"go-back":"Go Back",forward:bre,close:xre,next:wre,cancel:_re,submit:Cre,dismiss:Sre,"sort-by":"Sort by",save:Tre,"save-changes":"Save Changes","changes-saved":"Changes Saved","changes-not-saved":"Changes Can not Be Saved","try-again":"Try again","request-error-message":"We are unable to process your request. Please, try again or reach out to us for further assistance. We apologize for the inconvenience. Your Digital Realty Team",search:Ere,"close-button":"Close Button","open-button":"Open Button",loading:Ore,"app-loading":"Loading...","redirect-soon":"You will be redirected soon.",auth:Pre,dropzone:Rre,draft:Mre,"cancel-dialog":{title:"Are you sure do you want to cancel?",text:"All the details provided will be lost.",dismiss:"Dismiss",cancel:{"add-user":"Cancel Adding User","create-ticket":"Request Cancellation"},"cancel-ticket-creation":{title:"Are you sure you want to proceed? All details provided will be lost.",yes:"Yes",no:"No"}},tickets:Are,"view-all":"View all","view-attachment-button":"view attachment button","download-attachment-button":"download attachment button","hide-button":"hide button","close-buton":"close buton","previous-button":"previous button","next-button":"next button",active:Dre,"notifications-button":"Notifications Button","expand-navbar-button":"Expand Navbar Button","search-field":"Search Field","search-icon":"Search Icon","search-button":"Search Button",phone:Ire,email:$re,"datagrid-no-rows":"No data to display","no-attachments":"No attachments",account_one:Lre,account_other:kre,role_one:Nre,role_other:Fre,"last-update":"Last Update","no-comments":"No Comments",option_one:jre,option_other:Bre,from:Ure,to:Wre,"email-helper-text":"Enter email addresses separated by a comma, semicolon or the Enter key.","master-account":"Master Account","master-account-label":"Open the Account Selector","unsaved-changes-title":"Attention","unsaved-changes-message":"There are unsaved changes on this page, save or discard them before leaving.",more:Hre,"not-implemented":"Not Implemented",logout:zre,refresh:Vre,"record-version":{"record-has-been-updated":"Record has been updated","refresh-page":"Refresh the page to see the latest record."},"view-list":"View List"},qre="Chart Overview",Kre="DCIM data for the past 7 days shown below. Click a chart to view details and change the range.",Yre={title:"Alerts","configure-alerts-button":"Configure Alerts",types:{title:"Alert Types",all:"All",critical:"Critical",custom:"Custom",history:"History"},categories:{title:"Alert Categories",all:"All",power:"Power",environmental:"Environmental",auxiliary:"Auxiliary"},details:{title:"Alert Instances","alert-number":"Alert Number",site:"Site",location:"Location","total-load":"Total Load","threshold-value":"Threshold Value","affected-ci":"Affected CI",description:"Description","alert-timeline-summary":"Alert Timeline Summary","alert-generated-on":"Alert Generated On",duration:"Duration",error:"Server error fetching alert data"},definitions:{title:"Alert Definitions","warning-message":"Ensure your mobile service provider does not block automated text messaging if you subscribe to that notification method."}},Xre="Cancel",Zre={"no-dcim-data-available":"No DCIM data available for this location","no-dcim-data-available-chart":"No DCIM data available for this chart",title:qre,subtitle:Kre,"dcim-chart":{"load-fail":{title:"Charts could not be loaded.",message:"The charts for this location are currently not available. Check back later, or contact support."},"toggle-device":"Toggle {{id}}","y-axis-metric":"Y-Axis Metric",timezone:{utc:"Time shown in Coordinated Universal Time (UTC)"},"show-alert-data":"Show Alert Data","date-range":{from:"From",to:"to"},utc:"UTC",increments:{label:"Increments",day:"1 Day",hour:"60 Minutes","15-minute":"15 Minutes","5-minute":"5 Minutes",minute:"1 Minute"},view:{trend:"Trend",daily:"Daily"},"point-value":{current:"Value","daily-avg":"Daily Avg","daily-min":"Daily Min","daily-max":"Daily Max",alert:"[{{type}}] {{category}} alert"},"device-selector":{label:"Devices on Chart","deselect-all":"Deselect all","select-all":"Select all"},export:{"file-name":"{{view}} Data for {{location}} - {{site}}",header:{deviceDataId:"Device ID",deviceName:"Device Name",date:"Date",minValue:"Min",maxValue:"Max",pointValue:"Average"}}},alerts:Yre,"customize-alert-dialog":{title:"Customize Alert",message:"You can choose to customize this alert. Digital Realty will not take actions on custom alerts.","it-load-level":"IT Load Level",threshold:"Threshold","total-ITkW":"TotalITkW >","email-alerts":"Email Alerts","sms-alerts":"SMS Alerts","bottom-message":"Ensure your mobile service provider does not block automated text messaging if you subscribe to that notification method.","cancel-button":"Cancel","save-button":"Save","success-updated":"Alert updated","success-custom-created":"Custom alert created","success-custom-updated":"Custom alert updated","success-critical-updated":"Critical alert updated","server-error":"Server Error","threshold-validation-error":"Threshold is outside the allowed range","critical-enrollment-operator-and-threshold-empty":"Cannot update Custom Alert threshold because Parent has empty comparison operator and threshold"},"alert-instance":{alertId:"Alert Id",site:"Site",location:"Location",alertName:"Alert Name",deviceName:"Device Name",functionValue:"{{device}} Current Value",alertTimeStamp:"Opened",alertType:"Alert Type",configurationItem:"Configuration Item"},"alert-definition":{deviceName:"Device Name",threshold:"Threshold",liveValue:"Live Value",timeStamp:"Time Stamp"},"alert-list":{"sort-by":"Sort By","pagination-label":"Instances per page",deviceName:"Device Name",functionValue:"Device Function",threshold:"Threshold"},cancel:Xre},Qre="Notifications",Jre={planned_site_maintenance:"Planned Site Maintenance",emergency_repair:"Emergency Repair",dcim_alert:"DCIM Alert",service_ticket_update:"Service Ticket Update"},eie="Today",tie="Earlier",nie={notifications:Qre,type:Jre,"type-group":{planned_site_maintenance:"$t(type.planned_site_maintenance)",emergency_repair:"$t(type.emergency_repair)s",dcim_alert:"$t(type.dcim_alert)s",service_ticket_update:"$t(type.service_ticket_update)s"},"none-yet":"No notifications yet.","group-by":{type:"Sort by type",date:"Sort by type"},today:eie,earlier:tie,"mark-all-read":"Mark All Read","mark-all-read-confirmation-message":"Are you sure you want to mark all notifications as read?","filter-by-type":"Filter by type","filter-by-date":"Filter by date","filter-list":"Filter List","clear-all":"Clear All",delete:"Are you sure you want to delete this notification?"};yr.use(vne).init({resources:{en:{common:Gre,location:Zre,notifications:nie}},interpolation:{escapeValue:!1},lng:"en"});const lr={black:"rgba(0, 0, 0, 1)",gray:"#6d758c",primaryHover:"rgba(20, 86, 224, 0.1)",secondaryHover:"#378ACA1a",textDark:"rgba(9, 34, 65, 1)",textDark2:"rgba(9, 34, 65, 0.7)",textDarkDisabled:"rgba(9, 34, 65, 0.3)",textLight:"rgba(255, 255, 255, 1)",textLight2:"rgba(255, 255, 255, 0.6)",textLightDisabled:"rgba(255, 255, 255, 0.38)",divider:"rgba(9, 34, 65, 0.12)",divider2:"rgba(9, 34, 65, 0.08)",background:"rgba(245, 247, 255, 1)",backgroundAlternative:"#FFFFFF",surface:"rgba(255, 255, 255)",modalOverlay:"rgba(9, 34, 65, 0.9)",overlayOnPrimary:"rgba(255, 255, 255, 0.24)",pageHeader:{background:"rgba(245, 247, 255, 0.85)"},navbar:{background:"linear-gradient(180deg, #1456E0 20.5%, #0D2497 113.5%)",selected:"rgba(255, 255, 255, 0.16)"},topbar:{background:"linear-gradient(90.27deg, #1456E0 0%, #0D2497 99.23%)"}},rie={primary:{light:"#5585ff",main:"#1456E0",dark:"#071454"},secondary:{light:"#72bafd",main:"#378aca",dark:"#005d99"},error:{light:"#f83b3a",main:"#db0028",dark:"#a80505",contrastText:"#ffffff"},warning:{light:"#ffb74d",main:"rgba(255, 152, 0, 1)",dark:"#f57c00"},info:{light:"#64b5f6",main:"#2196f3",dark:"#1976d2"},success:{light:"#81c784",main:"#4caf50",dark:"#388e3c",contrastText:"#ffffff"},text:{primary:lr.textDark,secondary:lr.textDark2,disabled:lr.textDarkDisabled}},Qh={h1:{fontFamily:"'Red Hat Display', sans-serif",fontStyle:"normal",fontWeight:500,fontSize:"96px",lineHeight:"127px",letterSpacing:"-1.5px"},h2:{fontFamily:"'Red Hat Display', sans-serif",fontStyle:"normal",fontWeight:"normal",fontSize:"60px",lineHeight:"71px",letterSpacing:"-0.5px"},h3:{fontFamily:"'Red Hat Display', sans-serif",fontStyle:"normal",fontWeight:"normal",fontSize:"48px",lineHeight:"57px"},h4:{fontFamily:"'Red Hat Display', sans-serif",fontStyle:"normal",fontWeight:"bold",fontSize:"34px",lineHeight:"40px",letterSpacing:"0.35px"},h5:{fontFamily:"'Red Hat Display', sans-serif",fontStyle:"normal",fontWeight:"normal",fontSize:"24px",lineHeight:"32px"},h6:{fontFamily:"'Red Hat Display', sans-serif",fontStyle:"normal",fontWeight:"bold",fontSize:"20px",lineHeight:"24px",letterSpacing:"0.15px"},subtitle1:{fontFamily:"'Open Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"20px",letterSpacing:"0.15px"},subtitle2:{fontFamily:"'Open Sans', sans-serif",fontStyle:"normal",fontWeight:700,fontSize:"14px",lineHeight:"24px",letterSpacing:"0.1px"},body1:{fontFamily:"'Open Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"28px",letterSpacing:"0.44px"},body2:{fontFamily:"'Open Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"14px",lineHeight:"24px",letterSpacing:"0.25px"},button:{fontFamily:"'Red Hat Display', sans-serif",fontWeight:700,fontStyle:"normal",fontSize:"14px",lineHeight:"18.52px",letterSpacing:"1.25px",textTransform:"uppercase"},caption:{fontFamily:"'Open Sans', sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"12px",lineHeight:"16px",letterSpacing:"0.4px"},overline:{fontFamily:"'Red Hat Display', sans-serif",fontWeight:700,fontStyle:"normal",fontSize:"10px",lineHeight:"16px",letterSpacing:"1.25px",textTransform:"uppercase"},allVariants:{color:lr.textDark}},iie={badge:{fontFamily:"'Open Sans', sans-serif",fontStyle:"normal",fontWeight:700,fontSize:"8px",lineHeight:"11px",letterSpacing:"0.42px"}},oie=e=>{const t={palette:rie,components:{MuiCssBaseline:{styleOverrides:{body:{backgroundColor:lr.background},".customScrollbar *::-webkit-scrollbar":{maxWidth:8,backgroundColor:"#002274"},".customScrollbar *::-webkit-scrollbar-thumb":{backgroundColor:"#5B73D6",borderRadius:100,maxHeight:183,maxWidth:6,border:"1px solid #002274"}}},MuiAlert:{defaultProps:{variant:"outlined"},styleOverrides:{root:{alignItems:"center",padding:"7px 14px"},icon:{padding:0,marginRight:8},message:{...Qh.caption,fontWeight:700,padding:0}}},MuiAutocomplete:{styleOverrides:{inputRoot:{paddingTop:"5px",paddingBottom:"5px"}}},MuiAvatar:{styleOverrides:{colorDefault:{backgroundColor:lr.background,color:lr.textDark2}}},MuiButton:{defaultProps:{variant:"contained",disableElevation:!0},styleOverrides:{root:{minHeight:"36px",borderRadius:"100px",padding:"8.5px 20px"},outlined:{padding:"7.5px 20px"},text:{padding:"8.5px 20px"},outlinedPrimary:({theme:n})=>({borderColor:n.palette.primary.main}),contained:({ownerState:n,theme:r})=>{const i={};return n.color==="success"&&(i.color=r.palette.common.white),i}}},MuiChip:{styleOverrides:{root:({ownerState:n,theme:r})=>{const i={};return n.color==="warning"&&(i.color=r.palette.common.white,i.backgroundColor="#ED6C02"),i["&.Mui-disabled"]={opacity:1,backgroundColor:lr.textDarkDisabled},i},icon:{marginLeft:7,fontSize:"1.375rem"},deleteIcon:{marginRight:7}}},MuiDialog:{styleOverrides:{paperWidthSm:{maxWidth:1200},paper:({theme:n})=>({[n.breakpoints.up("sm")]:{minWidth:500}})}},MuiDialogContent:{styleOverrides:{root:{paddingTop:"8px"}}},MuiDialogContentText:{styleOverrides:{root:{...Qh.body1,color:lr.textDark2}}},MuiDivider:{styleOverrides:{root:{borderColor:lr.textDark,opacity:.12}}},MuiDrawer:{styleOverrides:{paperAnchorDockedLeft:{borderRight:"none"}}},MuiFormControlLabel:{styleOverrides:{root:{"& .MuiCheckbox-root":{marginRight:"5px"}}}},MuiFormHelperText:{styleOverrides:{root:{color:lr.textDark2,marginTop:"2px"}}},MuiFormLabel:{styleOverrides:{root:{color:lr.textDark},filled:{color:lr.textDark}}},MuiIconButton:{styleOverrides:{sizeSmall:{padding:2}}},MuiInputBase:{styleOverrides:{root:{color:lr.textDark},input:{paddingTop:"12.5px",paddingBottom:"12.5px"},multiline:{paddingTop:"12.5px",paddingBottom:"12.5px"}}},MuiInputLabel:{styleOverrides:{outlined:{top:-3,color:lr.textDark}}},MuiOutlinedInput:{styleOverrides:{root:({theme:n})=>({borderRadius:"4px",backgroundColor:n.palette.common.white}),notchedOutline:{borderColor:lr.textDark},input:{paddingTop:"12.5px",paddingBottom:"12.5px"},inputMultiline:{padding:0},multiline:{paddingTop:"12.5px",paddingBottom:"12.5px"}}},MuiTab:{styleOverrides:{root:({theme:n})=>({height:"43px",minHeight:"43px",padding:"12px 16px",minWidth:0,[n.breakpoints.up("sm")]:{minWidth:0}})}},MuiTabs:{styleOverrides:{root:{height:"43px",minHeight:"43px"}}},MuiTextField:{defaultProps:{fullWidth:!0}},MuiTooltip:{styleOverrides:{tooltip:({theme:n})=>({borderRadius:"3px",backgroundColor:n.palette.primary.dark,padding:"5px 8px",...Qh.caption})}},MuiToggleButton:{styleOverrides:{root:{padding:"8px 12px 8px 12px",gap:4,borderRadius:4}}}},typography:Qh,shape:{borderRadius:12},extraColors:lr,extraTypography:iie,layout:{pageHeader:{height:100,heightSmall:60},topbar:{height:72},sidebar:{openWidth:256,openWidthSmall:251,closedWidth:80}},customShadows:["0px 12px 20px -12px rgba(0, 0, 0, 0.12), inset 0px 0px 0px 1px #e1e4e8"]};if(e){const n=document.createElement("div");e.appendChild(n),t.components={...t.components,MuiPopover:{defaultProps:{container:n}},MuiPopper:{defaultProps:{container:n}}}}return qw(t)},Lg=oie(null),DNe=({children:e,customTheme:t})=>{const n=t||Lg;return _.jsx(v$,{injectFirst:!0,children:_.jsxs(_q,{theme:n,children:[_.jsx(dZ,{}),_.jsx("style",{type:"text/css",dangerouslySetInnerHTML:{__html:"*,*::before,*::after{box-sizing:border-box}"}}),e,_.jsx("div",{id:"dialogs"})]})})},aie={defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1}}},INe=new h6(aie);var Xu=TypeError;const sie={},lie=Object.freeze(Object.defineProperty({__proto__:null,default:sie},Symbol.toStringTag,{value:"Module"})),uie=Yi(lie);var x_=typeof Map=="function"&&Map.prototype,Ub=Object.getOwnPropertyDescriptor&&x_?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,kg=x_&&Ub&&typeof Ub.get=="function"?Ub.get:null,ZP=x_&&Map.prototype.forEach,w_=typeof Set=="function"&&Set.prototype,Wb=Object.getOwnPropertyDescriptor&&w_?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ng=w_&&Wb&&typeof Wb.get=="function"?Wb.get:null,QP=w_&&Set.prototype.forEach,cie=typeof WeakMap=="function"&&WeakMap.prototype,Ed=cie?WeakMap.prototype.has:null,die=typeof WeakSet=="function"&&WeakSet.prototype,Od=die?WeakSet.prototype.has:null,fie=typeof WeakRef=="function"&&WeakRef.prototype,JP=fie?WeakRef.prototype.deref:null,hie=Boolean.prototype.valueOf,pie=Object.prototype.toString,gie=Function.prototype.toString,mie=String.prototype.match,__=String.prototype.slice,ka=String.prototype.replace,vie=String.prototype.toUpperCase,eR=String.prototype.toLowerCase,JL=RegExp.prototype.test,tR=Array.prototype.concat,ho=Array.prototype.join,yie=Array.prototype.slice,nR=Math.floor,gx=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Hb=Object.getOwnPropertySymbols,mx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Eu=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Pd=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Eu||!0)?Symbol.toStringTag:null,e2=Object.prototype.propertyIsEnumerable,rR=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function iR(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||JL.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-nR(-e):nR(e);if(r!==e){var i=String(r),o=__.call(t,i.length+1);return ka.call(i,n,"$&_")+"."+ka.call(ka.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ka.call(t,n,"$&_")}var vx=uie,oR=vx.custom,aR=r2(oR)?oR:null,t2={__proto__:null,double:'"',single:"'"},bie={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},wv=function e(t,n,r,i){var o=n||{};if(Ho(o,"quoteStyle")&&!Ho(t2,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ho(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=Ho(o,"customInspect")?o.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ho(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ho(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return o2(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return s?iR(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return s?iR(t,u):u}var d=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=d&&d>0&&typeof t=="object")return yx(t)?"[Array]":"[Object]";var h=Nie(o,r);if(typeof i>"u")i=[];else if(i2(i,t)>=0)return"[Circular]";function p(U,z,F){if(z&&(i=yie.call(i),i.push(z)),F){var j={depth:o.depth};return Ho(o,"quoteStyle")&&(j.quoteStyle=o.quoteStyle),e(U,j,r+1,i)}return e(U,o,r+1,i)}if(typeof t=="function"&&!sR(t)){var g=Pie(t),m=Jh(t,p);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(m.length>0?" { "+ho.call(m,", ")+" }":"")}if(r2(t)){var y=Eu?ka.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):mx.call(t);return typeof t=="object"&&!Eu?zc(y):y}if($ie(t)){for(var b="<"+eR.call(String(t.nodeName)),x=t.attributes||[],S=0;S<x.length;S++)b+=" "+x[S].name+"="+n2(xie(x[S].value),"double",o);return b+=">",t.childNodes&&t.childNodes.length&&(b+="..."),b+="</"+eR.call(String(t.nodeName))+">",b}if(yx(t)){if(t.length===0)return"[]";var w=Jh(t,p);return h&&!kie(w)?"["+bx(w,h)+"]":"[ "+ho.call(w,", ")+" ]"}if(_ie(t)){var C=Jh(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!e2.call(t,"cause")?"{ ["+String(t)+"] "+ho.call(tR.call("[cause]: "+p(t.cause),C),", ")+" }":C.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+ho.call(C,", ")+" }"}if(typeof t=="object"&&a){if(aR&&typeof t[aR]=="function"&&vx)return vx(t,{depth:d-r});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Rie(t)){var R=[];return ZP&&ZP.call(t,function(U,z){R.push(p(z,t,!0)+" => "+p(U,t))}),lR("Map",kg.call(t),R,h)}if(Die(t)){var O=[];return QP&&QP.call(t,function(U){O.push(p(U,t))}),lR("Set",Ng.call(t),O,h)}if(Mie(t))return zb("WeakMap");if(Iie(t))return zb("WeakSet");if(Aie(t))return zb("WeakRef");if(Sie(t))return zc(p(Number(t)));if(Eie(t))return zc(p(gx.call(t)));if(Tie(t))return zc(hie.call(t));if(Cie(t))return zc(p(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof zi<"u"&&t===zi)return"{ [object globalThis] }";if(!wie(t)&&!sR(t)){var T=Jh(t,p),A=rR?rR(t)===Object.prototype:t instanceof Object||t.constructor===Object,L=t instanceof Object?"":"null prototype",I=!A&&Pd&&Object(t)===t&&Pd in t?__.call(Qa(t),8,-1):L?"Object":"",N=A||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",B=N+(I||L?"["+ho.call(tR.call([],I||[],L||[]),": ")+"] ":"");return T.length===0?B+"{}":h?B+"{"+bx(T,h)+"}":B+"{ "+ho.call(T,", ")+" }"}return String(t)};function n2(e,t,n){var r=n.quoteStyle||t,i=t2[r];return i+e+i}function xie(e){return ka.call(String(e),/"/g,""")}function ll(e){return!Pd||!(typeof e=="object"&&(Pd in e||typeof e[Pd]<"u"))}function yx(e){return Qa(e)==="[object Array]"&&ll(e)}function wie(e){return Qa(e)==="[object Date]"&&ll(e)}function sR(e){return Qa(e)==="[object RegExp]"&&ll(e)}function _ie(e){return Qa(e)==="[object Error]"&&ll(e)}function Cie(e){return Qa(e)==="[object String]"&&ll(e)}function Sie(e){return Qa(e)==="[object Number]"&&ll(e)}function Tie(e){return Qa(e)==="[object Boolean]"&&ll(e)}function r2(e){if(Eu)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!mx)return!1;try{return mx.call(e),!0}catch{}return!1}function Eie(e){if(!e||typeof e!="object"||!gx)return!1;try{return gx.call(e),!0}catch{}return!1}var Oie=Object.prototype.hasOwnProperty||function(e){return e in this};function Ho(e,t){return Oie.call(e,t)}function Qa(e){return pie.call(e)}function Pie(e){if(e.name)return e.name;var t=mie.call(gie.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function i2(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Rie(e){if(!kg||!e||typeof e!="object")return!1;try{kg.call(e);try{Ng.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Mie(e){if(!Ed||!e||typeof e!="object")return!1;try{Ed.call(e,Ed);try{Od.call(e,Od)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Aie(e){if(!JP||!e||typeof e!="object")return!1;try{return JP.call(e),!0}catch{}return!1}function Die(e){if(!Ng||!e||typeof e!="object")return!1;try{Ng.call(e);try{kg.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Iie(e){if(!Od||!e||typeof e!="object")return!1;try{Od.call(e,Od);try{Ed.call(e,Ed)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function $ie(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function o2(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return o2(__.call(e,0,t.maxStringLength),t)+r}var i=bie[t.quoteStyle||"single"];i.lastIndex=0;var o=ka.call(ka.call(e,i,"\\$1"),/[\x00-\x1f]/g,Lie);return n2(o,"single",t)}function Lie(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+vie.call(t.toString(16))}function zc(e){return"Object("+e+")"}function zb(e){return e+" { ? }"}function lR(e,t,n,r){var i=r?bx(n,r):ho.call(n,", ");return e+" ("+t+") {"+i+"}"}function kie(e){for(var t=0;t<e.length;t++)if(i2(e[t],`
|
|
376
|
+
`)>=0)return!1;return!0}function Nie(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=ho.call(Array(e.indent+1)," ");else return null;return{base:n,prev:ho.call(Array(t+1),n)}}function bx(e,t){if(e.length===0)return"";var n=`
|
|
377
|
+
`+t.prev+t.base;return n+ho.call(e,","+n)+`
|
|
378
|
+
`+t.prev}function Jh(e,t){var n=yx(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=Ho(e,i)?t(e[i],e):""}var o=typeof Hb=="function"?Hb(e):[],a;if(Eu){a={};for(var s=0;s<o.length;s++)a["$"+o[s]]=o[s]}for(var l in e)Ho(e,l)&&(n&&String(Number(l))===l&&l<e.length||Eu&&a["$"+l]instanceof Symbol||(JL.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if(typeof Hb=="function")for(var u=0;u<o.length;u++)e2.call(e,o[u])&&r.push("["+t(o[u])+"]: "+t(e[o[u]],e));return r}var Fie=wv,jie=Xu,_v=function(e,t,n){for(var r=e,i;(i=r.next)!=null;r=i)if(i.key===t)return r.next=i.next,n||(i.next=e.next,e.next=i),i},Bie=function(e,t){if(e){var n=_v(e,t);return n&&n.value}},Uie=function(e,t,n){var r=_v(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},Wie=function(e,t){return e?!!_v(e,t):!1},Hie=function(e,t){if(e)return _v(e,t,!0)},zie=function(){var t,n={assert:function(r){if(!n.has(r))throw new jie("Side channel does not contain "+Fie(r))},delete:function(r){var i=Hie(t,r);return i&&t&&!t.next&&(t=void 0),!!i},get:function(r){return Bie(t,r)},has:function(r){return Wie(t,r)},set:function(r,i){t||(t={next:void 0}),Uie(t,r,i)}};return n},a2=Object,Vie=Error,Gie=EvalError,qie=RangeError,Kie=ReferenceError,Yie=SyntaxError,Xie=URIError,Zie=Math.abs,Qie=Math.floor,Jie=Math.max,eoe=Math.min,toe=Math.pow,noe=Math.round,roe=Number.isNaN||function(t){return t!==t},ioe=roe,ooe=function(t){return ioe(t)||t===0?t:t<0?-1:1},aoe=Object.getOwnPropertyDescriptor,zp=aoe;if(zp)try{zp([],"length")}catch{zp=null}var s2=zp,Vp=Object.defineProperty||!1;if(Vp)try{Vp({},"a",{value:1})}catch{Vp=!1}var soe=Vp,Vb,uR;function loe(){return uR||(uR=1,Vb=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;t[n]=i;for(var o in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,n);if(s.value!==i||s.enumerable!==!0)return!1}return!0}),Vb}var Gb,cR;function uoe(){if(cR)return Gb;cR=1;var e=typeof Symbol<"u"&&Symbol,t=loe();return Gb=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Gb}var qb,dR;function l2(){return dR||(dR=1,qb=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),qb}var Kb,fR;function u2(){if(fR)return Kb;fR=1;var e=a2;return Kb=e.getPrototypeOf||null,Kb}var coe="Function.prototype.bind called on incompatible ",doe=Object.prototype.toString,foe=Math.max,hoe="[object Function]",hR=function(t,n){for(var r=[],i=0;i<t.length;i+=1)r[i]=t[i];for(var o=0;o<n.length;o+=1)r[o+t.length]=n[o];return r},poe=function(t,n){for(var r=[],i=n,o=0;i<t.length;i+=1,o+=1)r[o]=t[i];return r},goe=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n},moe=function(t){var n=this;if(typeof n!="function"||doe.apply(n)!==hoe)throw new TypeError(coe+n);for(var r=poe(arguments,1),i,o=function(){if(this instanceof i){var d=n.apply(this,hR(r,arguments));return Object(d)===d?d:this}return n.apply(t,hR(r,arguments))},a=foe(0,n.length-r.length),s=[],l=0;l<a;l++)s[l]="$"+l;if(i=Function("binder","return function ("+goe(s,",")+"){ return binder.apply(this,arguments); }")(o),n.prototype){var u=function(){};u.prototype=n.prototype,i.prototype=new u,u.prototype=null}return i},voe=moe,Cv=Function.prototype.bind||voe,C_=Function.prototype.call,Yb,pR;function c2(){return pR||(pR=1,Yb=Function.prototype.apply),Yb}var yoe=typeof Reflect<"u"&&Reflect&&Reflect.apply,boe=Cv,xoe=c2(),woe=C_,_oe=yoe,Coe=_oe||boe.call(woe,xoe),Soe=Cv,Toe=Xu,Eoe=C_,Ooe=Coe,d2=function(t){if(t.length<1||typeof t[0]!="function")throw new Toe("a function is required");return Ooe(Soe,Eoe,t)},Xb,gR;function Poe(){if(gR)return Xb;gR=1;var e=d2,t=s2,n;try{n=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var r=!!n&&t&&t(Object.prototype,"__proto__"),i=Object,o=i.getPrototypeOf;return Xb=r&&typeof r.get=="function"?e([r.get]):typeof o=="function"?function(s){return o(s==null?s:i(s))}:!1,Xb}var Zb,mR;function Roe(){if(mR)return Zb;mR=1;var e=l2(),t=u2(),n=Poe();return Zb=e?function(i){return e(i)}:t?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return t(i)}:n?function(i){return n(i)}:null,Zb}var Qb,vR;function Moe(){if(vR)return Qb;vR=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=Cv;return Qb=n.call(e,t),Qb}var bt,Aoe=a2,Doe=Vie,Ioe=Gie,$oe=qie,Loe=Kie,Ou=Yie,fu=Xu,koe=Xie,Noe=Zie,Foe=Qie,joe=Jie,Boe=eoe,Uoe=toe,Woe=noe,Hoe=ooe,f2=Function,Jb=function(e){try{return f2('"use strict"; return ('+e+").constructor;")()}catch{}},Qd=s2,zoe=soe,e0=function(){throw new fu},Voe=Qd?function(){try{return arguments.callee,e0}catch{try{return Qd(arguments,"callee").get}catch{return e0}}}():e0,Gl=uoe()(),Qn=Roe(),Goe=u2(),qoe=l2(),h2=c2(),Tf=C_,nu={},Koe=typeof Uint8Array>"u"||!Qn?bt:Qn(Uint8Array),Hs={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?bt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?bt:ArrayBuffer,"%ArrayIteratorPrototype%":Gl&&Qn?Qn([][Symbol.iterator]()):bt,"%AsyncFromSyncIteratorPrototype%":bt,"%AsyncFunction%":nu,"%AsyncGenerator%":nu,"%AsyncGeneratorFunction%":nu,"%AsyncIteratorPrototype%":nu,"%Atomics%":typeof Atomics>"u"?bt:Atomics,"%BigInt%":typeof BigInt>"u"?bt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?bt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?bt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?bt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Doe,"%eval%":eval,"%EvalError%":Ioe,"%Float16Array%":typeof Float16Array>"u"?bt:Float16Array,"%Float32Array%":typeof Float32Array>"u"?bt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?bt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?bt:FinalizationRegistry,"%Function%":f2,"%GeneratorFunction%":nu,"%Int8Array%":typeof Int8Array>"u"?bt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?bt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?bt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Gl&&Qn?Qn(Qn([][Symbol.iterator]())):bt,"%JSON%":typeof JSON=="object"?JSON:bt,"%Map%":typeof Map>"u"?bt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Gl||!Qn?bt:Qn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Aoe,"%Object.getOwnPropertyDescriptor%":Qd,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?bt:Promise,"%Proxy%":typeof Proxy>"u"?bt:Proxy,"%RangeError%":$oe,"%ReferenceError%":Loe,"%Reflect%":typeof Reflect>"u"?bt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?bt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Gl||!Qn?bt:Qn(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?bt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Gl&&Qn?Qn(""[Symbol.iterator]()):bt,"%Symbol%":Gl?Symbol:bt,"%SyntaxError%":Ou,"%ThrowTypeError%":Voe,"%TypedArray%":Koe,"%TypeError%":fu,"%Uint8Array%":typeof Uint8Array>"u"?bt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?bt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?bt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?bt:Uint32Array,"%URIError%":koe,"%WeakMap%":typeof WeakMap>"u"?bt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?bt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?bt:WeakSet,"%Function.prototype.call%":Tf,"%Function.prototype.apply%":h2,"%Object.defineProperty%":zoe,"%Object.getPrototypeOf%":Goe,"%Math.abs%":Noe,"%Math.floor%":Foe,"%Math.max%":joe,"%Math.min%":Boe,"%Math.pow%":Uoe,"%Math.round%":Woe,"%Math.sign%":Hoe,"%Reflect.getPrototypeOf%":qoe};if(Qn)try{null.error}catch(e){var Yoe=Qn(Qn(e));Hs["%Error.prototype%"]=Yoe}var Xoe=function e(t){var n;if(t==="%AsyncFunction%")n=Jb("async function () {}");else if(t==="%GeneratorFunction%")n=Jb("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=Jb("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&Qn&&(n=Qn(i.prototype))}return Hs[t]=n,n},yR={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ef=Cv,Fg=Moe(),Zoe=Ef.call(Tf,Array.prototype.concat),Qoe=Ef.call(h2,Array.prototype.splice),bR=Ef.call(Tf,String.prototype.replace),jg=Ef.call(Tf,String.prototype.slice),Joe=Ef.call(Tf,RegExp.prototype.exec),eae=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,tae=/\\(\\)?/g,nae=function(t){var n=jg(t,0,1),r=jg(t,-1);if(n==="%"&&r!=="%")throw new Ou("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new Ou("invalid intrinsic syntax, expected opening `%`");var i=[];return bR(t,eae,function(o,a,s,l){i[i.length]=s?bR(l,tae,"$1"):a||o}),i},rae=function(t,n){var r=t,i;if(Fg(yR,r)&&(i=yR[r],r="%"+i[0]+"%"),Fg(Hs,r)){var o=Hs[r];if(o===nu&&(o=Xoe(r)),typeof o>"u"&&!n)throw new fu("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:o}}throw new Ou("intrinsic "+t+" does not exist!")},S_=function(t,n){if(typeof t!="string"||t.length===0)throw new fu("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new fu('"allowMissing" argument must be a boolean');if(Joe(/^%?[^%]*%?$/,t)===null)throw new Ou("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=nae(t),i=r.length>0?r[0]:"",o=rae("%"+i+"%",n),a=o.name,s=o.value,l=!1,u=o.alias;u&&(i=u[0],Qoe(r,Zoe([0,1],u)));for(var d=1,h=!0;d<r.length;d+=1){var p=r[d],g=jg(p,0,1),m=jg(p,-1);if((g==='"'||g==="'"||g==="`"||m==='"'||m==="'"||m==="`")&&g!==m)throw new Ou("property names with quotes must have matching quotes");if((p==="constructor"||!h)&&(l=!0),i+="."+p,a="%"+i+"%",Fg(Hs,a))s=Hs[a];else if(s!=null){if(!(p in s)){if(!n)throw new fu("base intrinsic for "+t+" exists, but the property is not available.");return}if(Qd&&d+1>=r.length){var y=Qd(s,p);h=!!y,h&&"get"in y&&!("originalValue"in y.get)?s=y.get:s=s[p]}else h=Fg(s,p),s=s[p];h&&!l&&(Hs[a]=s)}}return s},p2=S_,g2=d2,iae=g2([p2("%String.prototype.indexOf%")]),m2=function(t,n){var r=p2(t,!!n);return typeof r=="function"&&iae(t,".prototype.")>-1?g2([r]):r},oae=S_,Of=m2,aae=wv,sae=Xu,xR=oae("%Map%",!0),lae=Of("Map.prototype.get",!0),uae=Of("Map.prototype.set",!0),cae=Of("Map.prototype.has",!0),dae=Of("Map.prototype.delete",!0),fae=Of("Map.prototype.size",!0),v2=!!xR&&function(){var t,n={assert:function(r){if(!n.has(r))throw new sae("Side channel does not contain "+aae(r))},delete:function(r){if(t){var i=dae(t,r);return fae(t)===0&&(t=void 0),i}return!1},get:function(r){if(t)return lae(t,r)},has:function(r){return t?cae(t,r):!1},set:function(r,i){t||(t=new xR),uae(t,r,i)}};return n},hae=S_,Sv=m2,pae=wv,ep=v2,gae=Xu,ql=hae("%WeakMap%",!0),mae=Sv("WeakMap.prototype.get",!0),vae=Sv("WeakMap.prototype.set",!0),yae=Sv("WeakMap.prototype.has",!0),bae=Sv("WeakMap.prototype.delete",!0),xae=ql?function(){var t,n,r={assert:function(i){if(!r.has(i))throw new gae("Side channel does not contain "+pae(i))},delete:function(i){if(ql&&i&&(typeof i=="object"||typeof i=="function")){if(t)return bae(t,i)}else if(ep&&n)return n.delete(i);return!1},get:function(i){return ql&&i&&(typeof i=="object"||typeof i=="function")&&t?mae(t,i):n&&n.get(i)},has:function(i){return ql&&i&&(typeof i=="object"||typeof i=="function")&&t?yae(t,i):!!n&&n.has(i)},set:function(i,o){ql&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new ql),vae(t,i,o)):ep&&(n||(n=ep()),n.set(i,o))}};return r}:ep,wae=Xu,_ae=wv,Cae=zie,Sae=v2,Tae=xae,Eae=Tae||Sae||Cae,y2=function(){var t,n={assert:function(r){if(!n.has(r))throw new wae("Side channel does not contain "+_ae(r))},delete:function(r){return!!t&&t.delete(r)},get:function(r){return t&&t.get(r)},has:function(r){return!!t&&t.has(r)},set:function(r,i){t||(t=Eae()),t.set(r,i)}};return n},Oae=String.prototype.replace,Pae=/%20/g,t0={RFC1738:"RFC1738",RFC3986:"RFC3986"},T_={default:t0.RFC3986,formatters:{RFC1738:function(e){return Oae.call(e,Pae,"+")},RFC3986:function(e){return String(e)}},RFC1738:t0.RFC1738,RFC3986:t0.RFC3986},Rae=T_,Mae=y2,n0=Object.prototype.hasOwnProperty,As=Array.isArray,Tv=Mae(),iu=function(t,n){return Tv.set(t,n),t},Ds=function(t){return Tv.has(t)},ld=function(t){return Tv.get(t)},xx=function(t,n){Tv.set(t,n)},ro=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),Aae=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(As(r)){for(var i=[],o=0;o<r.length;++o)typeof r[o]<"u"&&(i[i.length]=r[o]);n.obj[n.prop]=i}}},Rd=function(t,n){for(var r=n&&n.plainObjects?{__proto__:null}:{},i=0;i<t.length;++i)typeof t[i]<"u"&&(r[i]=t[i]);return r},Dae=function e(t,n,r){if(!n)return t;if(typeof n!="object"&&typeof n!="function"){if(As(t)){var i=t.length;if(r&&typeof r.arrayLimit=="number"&&i>r.arrayLimit)return iu(Rd(t.concat(n),r),i);t[i]=n}else if(t&&typeof t=="object")if(Ds(t)){var o=ld(t)+1;t[o]=n,xx(t,o)}else{if(r&&r.strictMerge)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!n0.call(Object.prototype,n))&&(t[n]=!0)}else return[t,n];return t}if(!t||typeof t!="object"){if(Ds(n)){for(var a=Object.keys(n),s=r&&r.plainObjects?{__proto__:null,0:t}:{0:t},l=0;l<a.length;l++){var u=parseInt(a[l],10);s[u+1]=n[a[l]]}return iu(s,ld(n)+1)}var d=[t].concat(n);return r&&typeof r.arrayLimit=="number"&&d.length>r.arrayLimit?iu(Rd(d,r),d.length-1):d}var h=t;return As(t)&&!As(n)&&(h=Rd(t,r)),As(t)&&As(n)?(n.forEach(function(p,g){if(n0.call(t,g)){var m=t[g];m&&typeof m=="object"&&p&&typeof p=="object"?t[g]=e(m,p,r):t[t.length]=p}else t[g]=p}),t):Object.keys(n).reduce(function(p,g){var m=n[g];if(n0.call(p,g)?p[g]=e(p[g],m,r):p[g]=m,Ds(n)&&!Ds(p)&&iu(p,ld(n)),Ds(p)){var y=parseInt(g,10);String(y)===g&&y>=0&&y>ld(p)&&xx(p,y)}return p},h)},Iae=function(t,n){return Object.keys(n).reduce(function(r,i){return r[i]=n[i],r},t)},$ae=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},r0=1024,Lae=function(t,n,r,i,o){if(t.length===0)return t;var a=t;if(typeof t=="symbol"?a=Symbol.prototype.toString.call(t):typeof t!="string"&&(a=String(t)),r==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(g){return"%26%23"+parseInt(g.slice(2),16)+"%3B"});for(var s="",l=0;l<a.length;l+=r0){for(var u=a.length>=r0?a.slice(l,l+r0):a,d=[],h=0;h<u.length;++h){var p=u.charCodeAt(h);if(p===45||p===46||p===95||p===126||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||o===Rae.RFC1738&&(p===40||p===41)){d[d.length]=u.charAt(h);continue}if(p<128){d[d.length]=ro[p];continue}if(p<2048){d[d.length]=ro[192|p>>6]+ro[128|p&63];continue}if(p<55296||p>=57344){d[d.length]=ro[224|p>>12]+ro[128|p>>6&63]+ro[128|p&63];continue}h+=1,p=65536+((p&1023)<<10|u.charCodeAt(h)&1023),d[d.length]=ro[240|p>>18]+ro[128|p>>12&63]+ro[128|p>>6&63]+ro[128|p&63]}s+=d.join("")}return s},kae=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],i=0;i<n.length;++i)for(var o=n[i],a=o.obj[o.prop],s=Object.keys(a),l=0;l<s.length;++l){var u=s[l],d=a[u];typeof d=="object"&&d!==null&&r.indexOf(d)===-1&&(n[n.length]={obj:a,prop:u},r[r.length]=d)}return Aae(n),t},Nae=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Fae=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},jae=function(t,n,r,i){if(Ds(t)){var o=ld(t)+1;return t[o]=n,xx(t,o),t}var a=[].concat(t,n);return a.length>r?iu(Rd(a,{plainObjects:i}),a.length-1):a},Bae=function(t,n){if(As(t)){for(var r=[],i=0;i<t.length;i+=1)r[r.length]=n(t[i]);return r}return n(t)},b2={arrayToObject:Rd,assign:Iae,combine:jae,compact:kae,decode:$ae,encode:Lae,isBuffer:Fae,isOverflow:Ds,isRegExp:Nae,markOverflow:iu,maybeMap:Bae,merge:Dae},x2=y2,Gp=b2,Md=T_,Uae=Object.prototype.hasOwnProperty,w2={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},lo=Array.isArray,Wae=Array.prototype.push,_2=function(e,t){Wae.apply(e,lo(t)?t:[t])},Hae=Date.prototype.toISOString,wR=Md.default,Vn={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Gp.encode,encodeValuesOnly:!1,filter:void 0,format:wR,formatter:Md.formatters[wR],indices:!1,serializeDate:function(t){return Hae.call(t)},skipNulls:!1,strictNullHandling:!1},zae=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},i0={},Vae=function e(t,n,r,i,o,a,s,l,u,d,h,p,g,m,y,b,x,S){for(var w=t,C=S,R=0,O=!1;(C=C.get(i0))!==void 0&&!O;){var T=C.get(t);if(R+=1,typeof T<"u"){if(T===R)throw new RangeError("Cyclic object value");O=!0}typeof C.get(i0)>"u"&&(R=0)}if(typeof d=="function"?w=d(n,w):w instanceof Date?w=g(w):r==="comma"&&lo(w)&&(w=Gp.maybeMap(w,function(oe){return oe instanceof Date?g(oe):oe})),w===null){if(a)return u&&!b?u(n,Vn.encoder,x,"key",m):n;w=""}if(zae(w)||Gp.isBuffer(w)){if(u){var A=b?n:u(n,Vn.encoder,x,"key",m);return[y(A)+"="+y(u(w,Vn.encoder,x,"value",m))]}return[y(n)+"="+y(String(w))]}var L=[];if(typeof w>"u")return L;var I;if(r==="comma"&&lo(w))b&&u&&(w=Gp.maybeMap(w,u)),I=[{value:w.length>0?w.join(",")||null:void 0}];else if(lo(d))I=d;else{var N=Object.keys(w);I=h?N.sort(h):N}var B=l?String(n).replace(/\./g,"%2E"):String(n),U=i&&lo(w)&&w.length===1?B+"[]":B;if(o&&lo(w)&&w.length===0)return U+"[]";for(var z=0;z<I.length;++z){var F=I[z],j=typeof F=="object"&&F&&typeof F.value<"u"?F.value:w[F];if(!(s&&j===null)){var K=p&&l?String(F).replace(/\./g,"%2E"):String(F),V=lo(w)?typeof r=="function"?r(U,K):U:U+(p?"."+K:"["+K+"]");S.set(t,R);var J=x2();J.set(i0,S),_2(L,e(j,V,r,i,o,a,s,l,r==="comma"&&b&&lo(w)?null:u,d,h,p,g,m,y,b,x,J))}}return L},Gae=function(t){if(!t)return Vn;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys<"u"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=t.charset||Vn.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=Md.default;if(typeof t.format<"u"){if(!Uae.call(Md.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var i=Md.formatters[r],o=Vn.filter;(typeof t.filter=="function"||lo(t.filter))&&(o=t.filter);var a;if(t.arrayFormat in w2?a=t.arrayFormat:"indices"in t?a=t.indices?"indices":"repeat":a=Vn.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=typeof t.allowDots>"u"?t.encodeDotInKeys===!0?!0:Vn.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Vn.addQueryPrefix,allowDots:s,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Vn.allowEmptyArrays,arrayFormat:a,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Vn.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?Vn.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Vn.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:Vn.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:Vn.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Vn.encodeValuesOnly,filter:o,format:r,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Vn.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Vn.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Vn.strictNullHandling}},qae=function(e,t){var n=e,r=Gae(t),i,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):lo(r.filter)&&(o=r.filter,i=o);var a=[];if(typeof n!="object"||n===null)return"";var s=w2[r.arrayFormat],l=s==="comma"&&r.commaRoundTrip;i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);for(var u=x2(),d=0;d<i.length;++d){var h=i[d],p=n[h];r.skipNulls&&p===null||_2(a,Vae(p,h,s,l,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,u))}var g=a.join(r.delimiter),m=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?m+="utf8=%26%2310003%3B&":m+="utf8=%E2%9C%93&"),g.length>0?m+g:""},bo=b2,qp=Object.prototype.hasOwnProperty,o0=Array.isArray,hn={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:bo.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},Kae=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},C2=function(e,t,n){if(e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(t.arrayLimit===1?"":"s")+" allowed in an array.");return e},Yae="utf8=%26%2310003%3B",Xae="utf8=%E2%9C%93",Zae=function(t,n){var r={__proto__:null},i=n.ignoreQueryPrefix?t.replace(/^\?/,""):t;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var o=n.parameterLimit===1/0?void 0:n.parameterLimit,a=i.split(n.delimiter,n.throwOnLimitExceeded&&typeof o<"u"?o+1:o);if(n.throwOnLimitExceeded&&typeof o<"u"&&a.length>o)throw new RangeError("Parameter limit exceeded. Only "+o+" parameter"+(o===1?"":"s")+" allowed.");var s=-1,l,u=n.charset;if(n.charsetSentinel)for(l=0;l<a.length;++l)a[l].indexOf("utf8=")===0&&(a[l]===Xae?u="utf-8":a[l]===Yae&&(u="iso-8859-1"),s=l,l=a.length);for(l=0;l<a.length;++l)if(l!==s){var d=a[l],h=d.indexOf("]="),p=h===-1?d.indexOf("="):h+1,g,m;if(p===-1?(g=n.decoder(d,hn.decoder,u,"key"),m=n.strictNullHandling?null:""):(g=n.decoder(d.slice(0,p),hn.decoder,u,"key"),g!==null&&(m=bo.maybeMap(C2(d.slice(p+1),n,o0(r[g])?r[g].length:0),function(b){return n.decoder(b,hn.decoder,u,"value")}))),m&&n.interpretNumericEntities&&u==="iso-8859-1"&&(m=Kae(String(m))),d.indexOf("[]=")>-1&&(m=o0(m)?[m]:m),n.comma&&o0(m)&&m.length>n.arrayLimit){if(n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(n.arrayLimit===1?"":"s")+" allowed in an array.");m=bo.combine([],m,n.arrayLimit,n.plainObjects)}if(g!==null){var y=qp.call(r,g);y&&(n.duplicates==="combine"||d.indexOf("[]=")>-1)?r[g]=bo.combine(r[g],m,n.arrayLimit,n.plainObjects):(!y||n.duplicates==="last")&&(r[g]=m)}}return r},Qae=function(e,t,n,r){var i=0;if(e.length>0&&e[e.length-1]==="[]"){var o=e.slice(0,-1).join("");i=Array.isArray(t)&&t[o]?t[o].length:0}for(var a=r?t:C2(t,n,i),s=e.length-1;s>=0;--s){var l,u=e[s];if(u==="[]"&&n.parseArrays)bo.isOverflow(a)?l=a:l=n.allowEmptyArrays&&(a===""||n.strictNullHandling&&a===null)?[]:bo.combine([],a,n.arrayLimit,n.plainObjects);else{l=n.plainObjects?{__proto__:null}:{};var d=u.charAt(0)==="["&&u.charAt(u.length-1)==="]"?u.slice(1,-1):u,h=n.decodeDotInKeys?d.replace(/%2E/g,"."):d,p=parseInt(h,10),g=!isNaN(p)&&u!==h&&String(p)===h&&p>=0&&n.parseArrays;if(!n.parseArrays&&h==="")l={0:a};else if(g&&p<n.arrayLimit)l=[],l[p]=a;else{if(g&&n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(n.arrayLimit===1?"":"s")+" allowed in an array.");g?(l[p]=a,bo.markOverflow(l,p)):h!=="__proto__"&&(l[h]=a)}}a=l}return a},Jae=function(t,n){var r=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t;if(n.depth<=0)return!n.plainObjects&&qp.call(Object.prototype,r)&&!n.allowPrototypes?void 0:[r];var i=/(\[[^[\]]*])/,o=/(\[[^[\]]*])/g,a=i.exec(r),s=a?r.slice(0,a.index):r,l=[];if(s){if(!n.plainObjects&&qp.call(Object.prototype,s)&&!n.allowPrototypes)return;l[l.length]=s}for(var u=0;(a=o.exec(r))!==null&&u<n.depth;){u+=1;var d=a[1].slice(1,-1);if(!n.plainObjects&&qp.call(Object.prototype,d)&&!n.allowPrototypes)return;l[l.length]=a[1]}if(a){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");l[l.length]="["+r.slice(a.index)+"]"}return l},ese=function(t,n,r,i){if(t){var o=Jae(t,r);if(o)return Qae(o,n,r,i)}},tse=function(t){if(!t)return hn;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.decodeDotInKeys<"u"&&typeof t.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(t.decoder!==null&&typeof t.decoder<"u"&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof t.throwOnLimitExceeded<"u"&&typeof t.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var n=typeof t.charset>"u"?hn.charset:t.charset,r=typeof t.duplicates>"u"?hn.duplicates:t.duplicates;if(r!=="combine"&&r!=="first"&&r!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:hn.allowDots:!!t.allowDots;return{allowDots:i,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:hn.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:hn.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:hn.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:hn.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:hn.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:hn.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:hn.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:hn.decoder,delimiter:typeof t.delimiter=="string"||bo.isRegExp(t.delimiter)?t.delimiter:hn.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:hn.depth,duplicates:r,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:hn.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:hn.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:hn.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:hn.strictDepth,strictMerge:typeof t.strictMerge=="boolean"?!!t.strictMerge:hn.strictMerge,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:hn.strictNullHandling,throwOnLimitExceeded:typeof t.throwOnLimitExceeded=="boolean"?t.throwOnLimitExceeded:!1}},nse=function(e,t){var n=tse(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?{__proto__:null}:{};for(var r=typeof e=="string"?Zae(e,n):e,i=n.plainObjects?{__proto__:null}:{},o=Object.keys(r),a=0;a<o.length;++a){var s=o[a],l=ese(s,r[s],n,typeof e=="string");i=bo.merge(i,l,n)}return n.allowSparse===!0?i:bo.compact(i)},rse=qae,ise=nse,ose=T_,ase={formats:ose,parse:ise,stringify:rse};const Ev=Di(ase),S2=H("div")`
|
|
379
|
+
${({theme:e})=>e.breakpoints.down("md")} {
|
|
380
|
+
padding: 0px 24px;
|
|
381
|
+
}
|
|
382
|
+
`,sse=H(Ye)`
|
|
383
|
+
${({theme:e})=>e.typography.h4};
|
|
384
|
+
|
|
385
|
+
${({theme:e})=>e.breakpoints.down("md")} {
|
|
386
|
+
${({theme:e})=>e.typography.h6};
|
|
387
|
+
}
|
|
388
|
+
`,lse=H(Zi)`
|
|
389
|
+
flex-direction: row;
|
|
390
|
+
align-items: baseline;
|
|
391
|
+
column-gap: 16px;
|
|
392
|
+
margin-bottom: 32px;
|
|
393
|
+
|
|
394
|
+
${({theme:e})=>e.breakpoints.down("md")} {
|
|
395
|
+
flex-direction: column;
|
|
396
|
+
margin-bottom: 16px;
|
|
397
|
+
}
|
|
398
|
+
`;var E_={},use=Bt;Object.defineProperty(E_,"__esModule",{value:!0});var T2=E_.default=void 0,cse=use(Sf()),dse=_;T2=E_.default=(0,cse.default)((0,dse.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");const fse=H(Ye)`
|
|
399
|
+
${({theme:e})=>e.typography.h4};
|
|
400
|
+
|
|
401
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
402
|
+
${({theme:e})=>e.typography.h6};
|
|
403
|
+
}
|
|
404
|
+
`,O_=H("div")`
|
|
405
|
+
${({theme:e})=>e.breakpoints.down("md")} {
|
|
406
|
+
padding: 0px 24px;
|
|
407
|
+
}
|
|
408
|
+
height: 100%;
|
|
409
|
+
`,E2=H(Zi)`
|
|
410
|
+
align-items: baseline;
|
|
411
|
+
column-gap: 16px;
|
|
412
|
+
flex-direction: row;
|
|
413
|
+
margin-bottom: 32px;
|
|
414
|
+
|
|
415
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
416
|
+
flex-direction: column;
|
|
417
|
+
margin-bottom: 16px;
|
|
418
|
+
}
|
|
419
|
+
`,hse=H("div")`
|
|
420
|
+
display: flex;
|
|
421
|
+
justify-content: space-between;
|
|
422
|
+
`,O2=H(Bn)`
|
|
423
|
+
width: '100%';
|
|
424
|
+
`,P_=H(O2)`
|
|
425
|
+
height: '100%';
|
|
426
|
+
`,R_=({assetName:e,sitecode:t})=>{const{t:n}=yn("location"),r=sl(),i=/\balert\b/.test(r.pathname);return _.jsxs(hse,{children:[_.jsxs(E2,{children:[_.jsx(fse,{children:e}),t&&_.jsx(Ye,{variant:"subtitle1",children:t})]}),i&&_.jsx(t8,{to:{pathname:"/alerts-definitions",search:r.search},children:_.jsx(Ko,{startIcon:_.jsx(T2,{}),children:n("alerts.configure-alerts-button")})})]})};var zr=(e=>(e.ACCOUNT="ACCOUNT",e.ACCOUNT_CONTACTS="ACCOUNT_CONTACTS",e.ACCOUNT_ROLES="ACCOUNT_ROLES",e.ACCOUNT_USERS="ACCOUNT_USERS",e.ACCOUNTS="ACCOUNTS",e.ACTIVE_ACCOUNT="ACTIVE_ACCOUNT",e.ALERTS="alerts",e.ASSETS="ASSETS",e.ASSETS_TREE="ASSETS_TREE",e.ATTACHMENTS="ATTACHMENTS",e.ATTACHMENT_CONTENT="ATTACHMENT_CONTENT",e.CANCEL_CS_TICKET="CANCEL_CS_TICKET",e.CANCEL_FA_TICKET="CANCEL_FA_TICKET",e.CANCEL_RH_TICKET="CANCEL_RH_TICKET",e.CANCEL_SR_TICKET="CANCEL_SR_TICKET",e.CATEGORIES="CATEGORIES",e.COMPANIES="COMPANIES",e.CITIES="CITIES",e.CLIENT_SERVICES_TICKET="CLIENT_SERVICES_TICKET",e.CLIENT_SERVICES_TICKETS="CLIENT_SERVICES_TICKETS",e.COOKIES_PREFERENCE="COOKIES_PREFERENCE",e.COURIER_COMPANIES="COURIER_COMPANIES",e.CREATE_ACCOUNT_ROLE="create_account_role",e.CREATE_CUSTOMER_SUPPORT_TICKET="CREATE_CUSTOMER_SUPPORT_TICKET",e.CREATE_NOTIFICATION="CREATE_NOTIFICATION",e.CREATE_PERMISSION_GROUP="create_permission_group",e.CREATE_RELEASE="CREATE_RELEASE",e.CREATE_REMOTE_HANDS_TICKET="CREATE_REMOTE_HANDS_TICKET",e.CREATE_ROLE="CREATE_ROLE",e.CREATE_ROLE_ASSET_PERMISSION="CREATE_ROLE_ASSET_PERMISSION",e.CREATE_ROLE_PERMISSION="CREATE_ROLE_PERMISSION",e.CREATE_ROLE_PERMISSION_GROUP="CREATE_ROLE_PERMISSION_GROUP",e.CUSTOMER_SUPPORT_CONTACTS="CUSTOMER_SUPPORT_CONTACTS",e.CUSTOMER_SUPPORT_TICKETS="CUSTOMER_SUPPORT_TICKETS",e.DATE_FORMAT="DATE_FORMAT",e.DEFAULT_ACCOUNT="DEFAULT_ACCOUNT",e.DELETE_ROLE="DELETE_ROLE",e.DELETE_GROUP_PERMISSION="DELETE_GROUP_PERMISSION",e.DELETE_PERMISSION="DELETE_PERMISSION",e.DELETE_PERMISSION_GROUP="DELETE_PERMISSION_GROUP",e.DCIM_ALERTS="DCIM_ALERTS",e.DCIM_ALERT_INSTANCES="DCIM_ALERT_INSTANCES",e.DCIM_ALERT_INSTANCE_DETAILS="DCIM_ALERT_INSTANCE_DETAILS",e.DCIM_CHART_DATA="DCIM_CHART_DATA",e.DCIM_CHART_DATA_GROUP="DCIM_CHART_DATA_GROUP",e.DCIM_CHART_METADATA="DCIM_CHART_METADATA",e.DCIM_ENABLED_LOCATIONS="DCIM_ENABLED_LOCATIONS",e.DCIM_HISTORICAL_ALERTS="DCIM_HISTORICAL_ALERTS",e.DCIM_HISTORICAL_ALERT_INSTANCE_DETAILS="DCIM_HISTORICAL_ALERT_INSTANCE_DETAILS",e.DCIM_LOCATIONS="DCIM_LOCATIONS",e.DOWNLOAD_USERS="DOWNLOAD_USERS",e.EDIT_ACCOUNT="EDIT_ACCOUNT",e.EDIT_NOTIFICATION="EDIT_NOTIFICATION",e.EDIT_PERMISSION_GROUP="EDIT_PERMISSION_GROUP",e.EDIT_PRIVILEGE="EDIT_PRIVILEGE",e.EDIT_ROLE="EDIT_ROLE",e.EDIT_ROLE_PERMISSION="EDIT_ROLE_PERMISSION",e.EDIT_USER_PERMISSIONS="EDIT_USER_PERMISSIONS",e.EDIT_USER_PREFERENCES="EDIT_USER_PREFERENCES",e.EDIT_USER_PROFILE="EDIT_USER_PROFILE",e.ELEGIBLE_REPORTS="ELEGIBLE_REPORTS",e.FA_TICKET_APPROVE_OR_DENY="FA_TICKET_APPROVE_OR_DENY",e.FACILITY_ACCESS="FACILITY_ACCESS",e.FACILITY_ACCESS_CONTACT_ACCESS="FACILTY_ACCESS_CONTACT_ACCESS",e.FACILITY_ACCESS_CONTACTS="FACILTY_ACCESS_CONTACTS",e.FACILITY_ACCESS_TICKETS="FACILTY_ACCESS_TICKETS",e.LOCATIONS="LOCATIONS",e.LOCATIONS_PAGED="LOCATIONS_PAGED",e.POP_POES_LOCATIONS="POP_POES_LOCATIONS",e.METRICS_FIRST_TIME_LOGIN="METRICS_FIRST_TIME_LOGIN",e.METRICS_LOGIN="metrics_login",e.METRICS_LOGOUT="metrics_logout",e.METROS="metros",e.MODIFY_BADGE="MODIFY_BADGE",e.NOTIFICATION="NOTIFICATION",e.NOTIFICATIONS="NOTIFICATIONS",e.PERMISSION_GROUP_PERMISSIONS="PERMISSION_GROUP_PERMISSIONS",e.PERMISSION_GROUPS="PERMISSION_GROUPS",e.PERMISSIONS="PERMISSIONS",e.PERMISSIONS_PRIVILEGES="PERMISSIONS_PRIVILEGES",e.PERMISSIONS_AVAILABLE="PERMISSIONS_AVAILABLE",e.PLANNED_SITE_MAINTENANCE="PLANNED_SITE_MAINTENANCE",e.PORTAL_ROLES="PORTAL_ROLES",e.POSITIONS="POSITIONS",e.REGIONS="REGIONS",e.RELEASE="RELEASE",e.RELEASE_INFO="RELEASE_INFO",e.REMOVE_ACCOUNT="REMOVE_ACCOUNT",e.REMOVE_ACCOUNT_ROLE="REMOVE_ACCOUNT_ROLE",e.REMOTE_HANDS_TICKET="REMOTE_HANDS_TICKET",e.REMOTE_HANDS_CATEGORIES="REMOTE_HANDS_CATEGORIES",e.REPORT_FILE_DOWNLOAD="REPORT_FILE_DOWNLOAD",e.REPORTS="REPORTS",e.REQUEST_TYPES="REQUEST_TYPES",e.ROLE="ROLE",e.ROLE_ACCESS_PERMISSIONS="ROLE_ACCESS_PERMISSIONS",e.ROLE_ASSET_PERMISSIONS="ROLE_ASSET_PERMISSIONS",e.ROLE_NAMES="ROLE_NAMES",e.ROLE_PERMISSIONS="ROLE_PERMISSIONS",e.ROLE_PERMISSIONS_PRIVILEGES="ROLE_PERMISSIONS_PRIVILEGES",e.ROLE_PERMISSION_GROUP="ROLE_PERMISSION_GROUP",e.ROLES="ROLES",e.SERVICE_TICKETS="SERVICE_TICKETS",e.SERVICE_TICKETS_CANCELLATATION_REASONS="SERVICE_TICKETS_CANCELLATATION_REASONS",e.SET_ACTIVE_USER_ACCOUNT="SET_ACTIVE_USER_ACCOUNT",e.SHIPMENTS_TICKET="SHIPMENTS_TICKET",e.SHIPMENTS_TICKETS="SHIPMENTS_TICKETS",e.SITES="SITES",e.SITES_PAGED="SITES_PAGED",e.SITES_TREE="SITES_TREE",e.SUPPORT_DOWNLOAD="SUPPORT_DOWNLOAD",e.SUPPORT_TICKETS="SUPPORT_TICKETS",e.SUPPORT_TICKET="SUPPORT_TICKET",e.SUPPORT_TICKET_MESSAGES="SUPPORT_TICKET_MESSAGES",e.UNITS="UNITS",e.UNREAD_NOTIFICATIONS="UNREAD_NOTIFICATIONS",e.UPDATE_CUSTOMER_SUPPORT_TICKET="UPDATE_CUSTOMER_SUPPORT_TICKET",e.UPDATE_FA_TICKET="UPDATE_FA_TICKET",e.UPDATE_RELEASE="UPDATE_RELEASE",e.UPDATE_REMOTE_HANDS_TICKET="UPDATE_REMOTE_HANDS_TICKET",e.UPDATE_SHIPMENTS_TICKET="UPDATE_SHIPMENTS_TICKET",e.USER="USER",e.USER_ACCOUNT_CREATORS="USER_ACCOUNT_CREATORS",e.USER_ACCOUNTS="USER_ACCOUNTS",e.USER_ACCOUNT_APPROVALS="USER_ACCOUNT_APPROVALS",e.USER_ACCOUNT_STATUS="USER_ACCOUNT_STATUS",e.USER_ASSIGNMENTS="USER_ASSIGNMENTS",e.USER_BY_EMAIL="USER_BY_EMAIL",e.USER_CREATE="USER_CREATE",e.USER_DETAILS="USER_DETAILS",e.USER_EDIT="USER_EDIT",e.USER_ID="USER_ID",e.USER_INTERNAL_DOMAINS="USER_INTERNAL_DOMAINS",e.USER_IS_ON_BEHALF_OF="USER_IS_ON_BEHALF_OF",e.USER_LOGOUT="USER_LOGOUT",e.USER_ON_BEHALF_OF="USER_ON_BEHALF_OF",e.USER_PREFERENCES="USER_PREFERENCES",e.USER_PROFILE="USER_PROFILE",e.USER_RELEASE="USER_RELEASE",e.USER_UPDATE="USER_UPDATE",e.USERS_CONTACTS="USERS_CONTACTS",e.USERS_LOCATIONS="USERS_LOCATIONS",e.TECHNICAL_SUPPORT_CONTACTS="TECHNICAL_SUPPORT_CONTACTS",e.TIME_ZONE="TIME_ZONE",e.TIME_ZONE_WINDOWS_IANA="TIME_ZONE_WINDOWS_IANA",e.UPLOAD_ATTACHMENTS="UPLOAD_ATTACHMENTS",e.VALIDATE_ROLE="VALIDATE_ROLE",e.WORK_ORDER_DETAILS="WORK_ORDER_DETAILS",e.WORK_ORDERS="WORK_ORDERS",e.CONTACT_US="CONTACT_US",e))(zr||{});const pse="11.0.0",gse={version:pse},mse="https://asc-uat-gapi-gateway-service.uat-api.digitalrealty.com",vse="21ad812489be02d595c9619843a3f28dTz01OTU0OSxFPTE3MDc1OTE3Nzk4NjIsUz1wcm8sTE09c3Vic2NyaXB0aW9uLEtWPTI=",yse=()=>({appVersion:gse.version,globalApiUrl:mse,muiXProLicense:vse,i18nLoadPath:"/locales/{{lng}}/{{ns}}.json"});class M_ extends Error{constructor(n,r,i,o){super(n);rt(this,"statusCode",0);rt(this,"description");rt(this,"details");this.statusCode=r,this.description=i||"",this.details=o||"",Object.setPrototypeOf(this,M_.prototype)}}const P2=e=>e==null,bse=async e=>{var t,n,r,i,o;if(!e.ok){const a=await e.json(),s=(n=(t=a==null?void 0:a.Errors)==null?void 0:t.Error)==null?void 0:n[0];throw new M_(((i=(r=a==null?void 0:a.Errors)==null?void 0:r.Error)==null?void 0:i[0].ReasonCode)||((o=a==null?void 0:a.error)==null?void 0:o.message),e.status,s==null?void 0:s.Description,s==null?void 0:s.Details)}};function dt(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function xe(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function _e(e){xe(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||xo(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Jd(e,t){xe(2,arguments);var n=_e(e),r=dt(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function zs(e,t){xe(2,arguments);var n=_e(e),r=dt(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var a=o.getDate();return i>=a?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function Pf(e,t){xe(2,arguments);var n=_e(e).getTime(),r=dt(t);return new Date(n+r)}var xse=36e5;function R2(e,t){xe(2,arguments);var n=dt(t);return Pf(e,n*xse)}var wse={};function ua(){return wse}function Ad(e,t){var n,r,i,o,a,s,l,u;xe(1,arguments);var d=ua(),h=dt((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=_e(e),g=p.getDay(),m=(g<h?7:0)+g-h;return p.setDate(p.getDate()-m),p.setHours(0,0,0,0),p}function Pu(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function na(e){xe(1,arguments);var t=_e(e);return t.setHours(0,0,0,0),t}var _se=864e5;function Cse(e,t){xe(2,arguments);var n=na(e),r=na(t),i=n.getTime()-Pu(n),o=r.getTime()-Pu(r);return Math.round((i-o)/_se)}var Sse=6e4;function M2(e,t){xe(2,arguments);var n=dt(t);return Pf(e,n*Sse)}function Tse(e,t){xe(2,arguments);var n=dt(t),r=n*3;return zs(e,r)}function A2(e,t){xe(2,arguments);var n=dt(t);return Pf(e,n*1e3)}function D2(e,t){xe(2,arguments);var n=dt(t),r=n*7;return Jd(e,r)}function wx(e,t){xe(2,arguments);var n=dt(t);return zs(e,n*12)}function hu(e,t){xe(2,arguments);var n=_e(e),r=_e(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}var Ov=6e4,Pv=36e5,Ese=1e3;function I2(e,t){xe(2,arguments);var n=na(e),r=na(t);return n.getTime()===r.getTime()}function $2(e){return xe(1,arguments),e instanceof Date||xo(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Rf(e){if(xe(1,arguments),!$2(e)&&typeof e!="number")return!1;var t=_e(e);return!isNaN(Number(t))}function Ose(e,t){xe(2,arguments);var n=_e(e),r=_e(t),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return i*12+o}function Pse(e,t){xe(2,arguments);var n=_e(e),r=_e(t);return n.getFullYear()-r.getFullYear()}function _R(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function A_(e,t){xe(2,arguments);var n=_e(e),r=_e(t),i=_R(n,r),o=Math.abs(Cse(n,r));n.setDate(n.getDate()-i*o);var a=+(_R(n,r)===-i),s=i*(o-a);return s===0?0:s}function Mf(e,t){return xe(2,arguments),_e(e).getTime()-_e(t).getTime()}var CR={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},Rse="trunc";function Af(e){return e?CR[e]:CR[Rse]}function L2(e,t,n){xe(2,arguments);var r=Mf(e,t)/Pv;return Af(void 0)(r)}function k2(e,t,n){xe(2,arguments);var r=Mf(e,t)/Ov;return Af(void 0)(r)}function Ru(e){xe(1,arguments);var t=_e(e);return t.setHours(23,59,59,999),t}function Bg(e){xe(1,arguments);var t=_e(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Mse(e){xe(1,arguments);var t=_e(e);return Ru(t).getTime()===Bg(t).getTime()}function D_(e,t){xe(2,arguments);var n=_e(e),r=_e(t),i=hu(n,r),o=Math.abs(Ose(n,r)),a;if(o<1)a=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*o);var s=hu(n,r)===-i;Mse(_e(e))&&o===1&&hu(e,r)===1&&(s=!1),a=i*(o-Number(s))}return a===0?0:a}function N2(e,t,n){xe(2,arguments);var r=D_(e,t)/3;return Af(void 0)(r)}function F2(e,t,n){xe(2,arguments);var r=Mf(e,t)/1e3;return Af(void 0)(r)}function j2(e,t,n){xe(2,arguments);var r=A_(e,t)/7;return Af(void 0)(r)}function B2(e,t){xe(2,arguments);var n=_e(e),r=_e(t),i=hu(n,r),o=Math.abs(Pse(n,r));n.setFullYear(1584),r.setFullYear(1584);var a=hu(n,r)===-i,s=i*(o-Number(a));return s===0?0:s}function Ase(e,t){var n;xe(1,arguments);var r=e||{},i=_e(r.start),o=_e(r.end),a=o.getTime();if(!(i.getTime()<=a))throw new RangeError("Invalid interval");var s=[],l=i;l.setHours(0,0,0,0);var u=Number((n=void 0)!==null&&n!==void 0?n:1);if(u<1||isNaN(u))throw new RangeError("`options.step` must be a number greater than 1");for(;l.getTime()<=a;)s.push(_e(l)),l.setDate(l.getDate()+u),l.setHours(0,0,0,0);return s}function Dse(e){xe(1,arguments);var t=_e(e);return t.setSeconds(0,0),t}function Ise(e){xe(1,arguments);var t=_e(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function ud(e){xe(1,arguments);var t=_e(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Kp(e){xe(1,arguments);var t=_e(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}function cd(e){xe(1,arguments);var t=_e(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function $se(e){xe(1,arguments);var t=_e(e);return t.setMinutes(59,59,999),t}function Yp(e,t){var n,r,i,o,a,s,l,u;xe(1,arguments);var d=ua(),h=dt((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=_e(e),g=p.getDay(),m=(g<h?-7:0)+6-(g-h);return p.setDate(p.getDate()+m),p.setHours(23,59,59,999),p}function Lse(e){xe(1,arguments);var t=_e(e);return t.setSeconds(59,999),t}function kse(e){xe(1,arguments);var t=_e(e),n=t.getMonth(),r=n-n%3+3;return t.setMonth(r,0),t.setHours(23,59,59,999),t}function Nse(e){xe(1,arguments);var t=_e(e);return t.setMilliseconds(999),t}function U2(e,t){xe(2,arguments);var n=dt(t);return Pf(e,-n)}var Fse=864e5;function jse(e){xe(1,arguments);var t=_e(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/Fse)+1}function Mu(e){xe(1,arguments);var t=1,n=_e(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function W2(e){xe(1,arguments);var t=_e(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=Mu(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=Mu(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function Bse(e){xe(1,arguments);var t=W2(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Mu(n);return r}var Use=6048e5;function H2(e){xe(1,arguments);var t=_e(e),n=Mu(t).getTime()-Bse(t).getTime();return Math.round(n/Use)+1}function nl(e,t){var n,r,i,o,a,s,l,u;xe(1,arguments);var d=ua(),h=dt((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=_e(e),g=p.getUTCDay(),m=(g<h?7:0)+g-h;return p.setUTCDate(p.getUTCDate()-m),p.setUTCHours(0,0,0,0),p}function I_(e,t){var n,r,i,o,a,s,l,u;xe(1,arguments);var d=_e(e),h=d.getUTCFullYear(),p=ua(),g=dt((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:p.firstWeekContainsDate)!==null&&r!==void 0?r:(l=p.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(g>=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(h+1,0,g),m.setUTCHours(0,0,0,0);var y=nl(m,t),b=new Date(0);b.setUTCFullYear(h,0,g),b.setUTCHours(0,0,0,0);var x=nl(b,t);return d.getTime()>=y.getTime()?h+1:d.getTime()>=x.getTime()?h:h-1}function Wse(e,t){var n,r,i,o,a,s,l,u;xe(1,arguments);var d=ua(),h=dt((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=I_(e,t),g=new Date(0);g.setUTCFullYear(p,0,h),g.setUTCHours(0,0,0,0);var m=nl(g,t);return m}var Hse=6048e5;function z2(e,t){xe(1,arguments);var n=_e(e),r=nl(n,t).getTime()-Wse(n,t).getTime();return Math.round(r/Hse)+1}function xt(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var Oa={y:function(t,n){var r=t.getUTCFullYear(),i=r>0?r:1-r;return xt(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):xt(r+1,2)},d:function(t,n){return xt(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return xt(t.getUTCHours()%12||12,n.length)},H:function(t,n){return xt(t.getUTCHours(),n.length)},m:function(t,n){return xt(t.getUTCMinutes(),n.length)},s:function(t,n){return xt(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return xt(o,n.length)}},Kl={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},zse={G:function(t,n,r){var i=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var i=t.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return Oa.y(t,n)},Y:function(t,n,r,i){var o=I_(t,i),a=o>0?o:1-o;if(n==="YY"){var s=a%100;return xt(s,2)}return n==="Yo"?r.ordinalNumber(a,{unit:"year"}):xt(a,n.length)},R:function(t,n){var r=W2(t);return xt(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return xt(r,n.length)},Q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return xt(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return xt(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,r){var i=t.getUTCMonth();switch(n){case"M":case"MM":return Oa.M(t,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,r){var i=t.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return xt(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,r,i){var o=z2(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):xt(o,n.length)},I:function(t,n,r){var i=H2(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):xt(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Oa.d(t,n)},D:function(t,n,r){var i=jse(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):xt(i,n.length)},E:function(t,n,r){var i=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,r,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return xt(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return xt(a,n.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(t,n,r){var i=t.getUTCDay(),o=i===0?7:i;switch(n){case"i":return String(o);case"ii":return xt(o,n.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,r){var i=t.getUTCHours(),o=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,n,r){var i=t.getUTCHours(),o;switch(i===12?o=Kl.noon:i===0?o=Kl.midnight:o=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,n,r){var i=t.getUTCHours(),o;switch(i>=17?o=Kl.evening:i>=12?o=Kl.afternoon:i>=4?o=Kl.morning:o=Kl.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return Oa.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Oa.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):xt(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):xt(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Oa.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Oa.s(t,n)},S:function(t,n){return Oa.S(t,n)},X:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return TR(a);case"XXXX":case"XX":return _s(a);case"XXXXX":case"XXX":default:return _s(a,":")}},x:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(n){case"x":return TR(a);case"xxxx":case"xx":return _s(a);case"xxxxx":case"xxx":default:return _s(a,":")}},O:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+SR(a,":");case"OOOO":default:return"GMT"+_s(a,":")}},z:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+SR(a,":");case"zzzz":default:return"GMT"+_s(a,":")}},t:function(t,n,r,i){var o=i._originalDate||t,a=Math.floor(o.getTime()/1e3);return xt(a,n.length)},T:function(t,n,r,i){var o=i._originalDate||t,a=o.getTime();return xt(a,n.length)}};function SR(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var a=t;return n+String(i)+a+xt(o,2)}function TR(e,t){if(e%60===0){var n=e>0?"-":"+";return n+xt(Math.abs(e)/60,2)}return _s(e,t)}function _s(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=xt(Math.floor(i/60),2),a=xt(i%60,2);return r+o+n+a}var ER=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},V2=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Vse=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return ER(t,n);var a;switch(i){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",ER(i,n)).replace("{{time}}",V2(o,n))},_x={p:V2,P:Vse},Gse=["D","DD"],qse=["YY","YYYY"];function G2(e){return Gse.indexOf(e)!==-1}function q2(e){return qse.indexOf(e)!==-1}function Ug(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Kse={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Yse=function(t,n,r){var i,o=Kse[t];return typeof o=="string"?i=o:n===1?i=o.one:i=o.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function a0(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var Xse={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Zse={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Qse={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Jse={date:a0({formats:Xse,defaultWidth:"full"}),time:a0({formats:Zse,defaultWidth:"full"}),dateTime:a0({formats:Qse,defaultWidth:"full"})},ele={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},tle=function(t,n,r,i){return ele[t]};function Vc(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[s]}var u=e.argumentCallback?e.argumentCallback(t):t;return i[u]}}var nle={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},rle={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ile={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ole={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ale={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},sle={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},lle=function(t,n){var r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},ule={ordinalNumber:lle,era:Vc({values:nle,defaultWidth:"wide"}),quarter:Vc({values:rle,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Vc({values:ile,defaultWidth:"wide"}),day:Vc({values:ole,defaultWidth:"wide"}),dayPeriod:Vc({values:ale,defaultWidth:"wide",formattingValues:sle,defaultFormattingWidth:"wide"})};function Gc(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?dle(s,function(h){return h.test(a)}):cle(s,function(h){return h.test(a)}),u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;var d=t.slice(a.length);return{value:u,rest:d}}}function cle(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function dle(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function fle(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;var s=t.slice(i.length);return{value:a,rest:s}}}var hle=/^(\d+)(th|st|nd|rd)?/i,ple=/\d+/i,gle={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},mle={any:[/^b/i,/^(a|c)/i]},vle={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},yle={any:[/1/i,/2/i,/3/i,/4/i]},ble={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},xle={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},wle={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},_le={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Cle={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Sle={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Tle={ordinalNumber:fle({matchPattern:hle,parsePattern:ple,valueCallback:function(t){return parseInt(t,10)}}),era:Gc({matchPatterns:gle,defaultMatchWidth:"wide",parsePatterns:mle,defaultParseWidth:"any"}),quarter:Gc({matchPatterns:vle,defaultMatchWidth:"wide",parsePatterns:yle,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Gc({matchPatterns:ble,defaultMatchWidth:"wide",parsePatterns:xle,defaultParseWidth:"any"}),day:Gc({matchPatterns:wle,defaultMatchWidth:"wide",parsePatterns:_le,defaultParseWidth:"any"}),dayPeriod:Gc({matchPatterns:Cle,defaultMatchWidth:"any",parsePatterns:Sle,defaultParseWidth:"any"})},Zu={code:"en-US",formatDistance:Yse,formatLong:Jse,formatRelative:tle,localize:ule,match:Tle,options:{weekStartsOn:0,firstWeekContainsDate:1}},Ele=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ole=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ple=/^'([^]*?)'?$/,Rle=/''/g,Mle=/[a-zA-Z]/;function Df(e,t,n){var r,i,o,a,s,l,u,d,h,p,g,m,y,b,x,S,w,C;xe(2,arguments);var R=String(t),O=ua(),T=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:O.locale)!==null&&r!==void 0?r:Zu,A=dt((o=(a=(s=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(u=n.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&s!==void 0?s:O.firstWeekContainsDate)!==null&&a!==void 0?a:(h=O.locale)===null||h===void 0||(p=h.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(A>=1&&A<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var L=dt((g=(m=(y=(b=n==null?void 0:n.weekStartsOn)!==null&&b!==void 0?b:n==null||(x=n.locale)===null||x===void 0||(S=x.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&y!==void 0?y:O.weekStartsOn)!==null&&m!==void 0?m:(w=O.locale)===null||w===void 0||(C=w.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&g!==void 0?g:0);if(!(L>=0&&L<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var I=_e(e);if(!Rf(I))throw new RangeError("Invalid time value");var N=Pu(I),B=U2(I,N),U={firstWeekContainsDate:A,weekStartsOn:L,locale:T,_originalDate:I},z=R.match(Ole).map(function(F){var j=F[0];if(j==="p"||j==="P"){var K=_x[j];return K(F,T.formatLong)}return F}).join("").match(Ele).map(function(F){if(F==="''")return"'";var j=F[0];if(j==="'")return Ale(F);var K=zse[j];if(K)return!(n!=null&&n.useAdditionalWeekYearTokens)&&q2(F)&&Ug(F,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&G2(F)&&Ug(F,t,String(e)),K(B,F,T.localize,U);if(j.match(Mle))throw new RangeError("Format string contains an unescaped latin alphabet character `"+j+"`");return F}).join("");return z}function Ale(e){var t=e.match(Ple);return t?t[1].replace(Rle,"'"):e}function $_(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Dle(e){return $_({},e)}var OR=1e3*60,Wg=60*24,PR=Wg*30,RR=Wg*365;function Ile(e,t,n){var r,i,o;xe(2,arguments);var a=ua(),s=(r=(i=void 0)!==null&&i!==void 0?i:a.locale)!==null&&r!==void 0?r:Zu;if(!s.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var l=hu(e,t);if(isNaN(l))throw new RangeError("Invalid time value");var u=$_(Dle(n),{addSuffix:!1,comparison:l}),d,h;l>0?(d=_e(t),h=_e(e)):(d=_e(e),h=_e(t));var p=String((o=void 0)!==null&&o!==void 0?o:"round"),g;if(p==="floor")g=Math.floor;else if(p==="ceil")g=Math.ceil;else if(p==="round")g=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var m=h.getTime()-d.getTime(),y=m/OR,b=Pu(h)-Pu(d),x=(m-b)/OR,S=n==null?void 0:n.unit,w;if(S?w=String(S):y<1?w="second":y<60?w="minute":y<Wg?w="hour":x<PR?w="day":x<RR?w="month":w="year",w==="second"){var C=g(m/1e3);return s.formatDistance("xSeconds",C,u)}else if(w==="minute"){var R=g(y);return s.formatDistance("xMinutes",R,u)}else if(w==="hour"){var O=g(y/60);return s.formatDistance("xHours",O,u)}else if(w==="day"){var T=g(x/Wg);return s.formatDistance("xDays",T,u)}else if(w==="month"){var A=g(x/PR);return A===12&&S!=="month"?s.formatDistance("xYears",1,u):s.formatDistance("xMonths",A,u)}else if(w==="year"){var L=g(x/RR);return s.formatDistance("xYears",L,u)}throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}function $le(e,t){var n,r;xe(1,arguments);var i=_e(e);if(isNaN(i.getTime()))throw new RangeError("Invalid time value");var o=String((n=t==null?void 0:t.format)!==null&&n!==void 0?n:"extended"),a=String((r=t==null?void 0:t.representation)!==null&&r!==void 0?r:"complete");if(o!=="extended"&&o!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(a!=="date"&&a!=="time"&&a!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var s="",l="",u=o==="extended"?"-":"",d=o==="extended"?":":"";if(a!=="time"){var h=xt(i.getDate(),2),p=xt(i.getMonth()+1,2),g=xt(i.getFullYear(),4);s="".concat(g).concat(u).concat(p).concat(u).concat(h)}if(a!=="date"){var m=i.getTimezoneOffset();if(m!==0){var y=Math.abs(m),b=xt(Math.floor(y/60),2),x=xt(y%60,2),S=m<0?"+":"-";l="".concat(S).concat(b,":").concat(x)}else l="Z";var w=xt(i.getHours(),2),C=xt(i.getMinutes(),2),R=xt(i.getSeconds(),2),O=s===""?"":"T",T=[w,C,R].join(d);s="".concat(s).concat(O).concat(T).concat(l)}return s}function Lle(e){xe(1,arguments);var t=_e(e),n=t.getDate();return n}function kle(e){xe(1,arguments);var t=_e(e),n=t.getDay();return n}function K2(e){xe(1,arguments);var t=_e(e),n=t.getFullYear(),r=t.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function Nle(e){xe(1,arguments);var t=_e(e),n=t.getHours();return n}function Fle(e){xe(1,arguments);var t=_e(e),n=t.getMinutes();return n}function jle(e){xe(1,arguments);var t=_e(e),n=t.getMonth();return n}function Ble(e){xe(1,arguments);var t=_e(e),n=t.getSeconds();return n}function Ule(e){return xe(1,arguments),_e(e).getFullYear()}function tp(e,t){xe(2,arguments);var n=_e(e),r=_e(t);return n.getTime()>r.getTime()}function Yl(e,t){xe(2,arguments);var n=_e(e),r=_e(t);return n.getTime()<r.getTime()}function Wle(e,t){xe(2,arguments);var n=_e(e),r=_e(t);return n.getTime()===r.getTime()}function MR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Hle(e,t){if(e){if(typeof e=="string")return MR(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?MR(e,t):void 0}}function AR(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Hle(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
427
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return a=u.done,u},e:function(u){s=!0,o=u},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw o}}}}function Dt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&og(e,t)}function Hg(e){return Hg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Hg(e)}function Y2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Y2=function(){return!!e})()}function zle(e,t){if(t&&(xo(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ae(e)}function It(e){var t=Y2();return function(){var n,r=Hg(e);if(t){var i=Hg(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return zle(this,n)}}function Et(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vle(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,U$(r.key),r)}}function Ot(e,t,n){return t&&Vle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Re(e,t,n){return(t=U$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gle=10,X2=function(){function e(){Et(this,e),Re(this,"priority",void 0),Re(this,"subPriority",0)}return Ot(e,[{key:"validate",value:function(n,r){return!0}}]),e}(),qle=function(e){Dt(n,e);var t=It(n);function n(r,i,o,a,s){var l;return Et(this,n),l=t.call(this),l.value=r,l.validateValue=i,l.setValue=o,l.priority=a,s&&(l.subPriority=s),l}return Ot(n,[{key:"validate",value:function(i,o){return this.validateValue(i,this.value,o)}},{key:"set",value:function(i,o,a){return this.setValue(i,o,this.value,a)}}]),n}(X2),Kle=function(e){Dt(n,e);var t=It(n);function n(){var r;Et(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ae(r),"priority",Gle),Re(Ae(r),"subPriority",-1),r}return Ot(n,[{key:"set",value:function(i,o){if(o.timestampIsSet)return i;var a=new Date(0);return a.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),a.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),a}}]),n}(X2),Nt=function(){function e(){Et(this,e),Re(this,"incompatibleTokens",void 0),Re(this,"priority",void 0),Re(this,"subPriority",void 0)}return Ot(e,[{key:"run",value:function(n,r,i,o){var a=this.parse(n,r,i,o);return a?{setter:new qle(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}},{key:"validate",value:function(n,r,i){return!0}}]),e}(),Yle=function(e){Dt(n,e);var t=It(n);function n(){var r;Et(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ae(r),"priority",140),Re(Ae(r),"incompatibleTokens",["R","u","t","T"]),r}return Ot(n,[{key:"parse",value:function(i,o,a){switch(o){case"G":case"GG":case"GGG":return a.era(i,{width:"abbreviated"})||a.era(i,{width:"narrow"});case"GGGGG":return a.era(i,{width:"narrow"});case"GGGG":default:return a.era(i,{width:"wide"})||a.era(i,{width:"abbreviated"})||a.era(i,{width:"narrow"})}}},{key:"set",value:function(i,o,a){return o.era=a,i.setUTCFullYear(a,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(Nt),Mn={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},po={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function An(e,t){return e&&{value:t(e.value),rest:e.rest}}function mn(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function go(e,t){var n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};var r=n[1]==="+"?1:-1,i=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(i*Pv+o*Ov+a*Ese),rest:t.slice(n[0].length)}}function Z2(e){return mn(Mn.anyDigitsSigned,e)}function En(e,t){switch(e){case 1:return mn(Mn.singleDigit,t);case 2:return mn(Mn.twoDigits,t);case 3:return mn(Mn.threeDigits,t);case 4:return mn(Mn.fourDigits,t);default:return mn(new RegExp("^\\d{1,"+e+"}"),t)}}function zg(e,t){switch(e){case 1:return mn(Mn.singleDigitSigned,t);case 2:return mn(Mn.twoDigitsSigned,t);case 3:return mn(Mn.threeDigitsSigned,t);case 4:return mn(Mn.fourDigitsSigned,t);default:return mn(new RegExp("^-?\\d{1,"+e+"}"),t)}}function L_(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Q2(e,t){var n=t>0,r=n?t:1-t,i;if(r<=50)i=e||100;else{var o=r+50,a=Math.floor(o/100)*100,s=e>=o%100;i=e+a-(s?100:0)}return n?i:1-i}function J2(e){return e%400===0||e%4===0&&e%100!==0}var Xle=function(e){Dt(n,e);var t=It(n);function n(){var r;Et(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ae(r),"priority",130),Re(Ae(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return Ot(n,[{key:"parse",value:function(i,o,a){var s=function(u){return{year:u,isTwoDigitYear:o==="yy"}};switch(o){case"y":return An(En(4,i),s);case"yo":return An(a.ordinalNumber(i,{unit:"year"}),s);default:return An(En(o.length,i),s)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,a){var s=i.getUTCFullYear();if(a.isTwoDigitYear){var l=Q2(a.year,s);return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}var u=!("era"in o)||o.era===1?a.year:1-a.year;return i.setUTCFullYear(u,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(Nt),Zle=function(e){Dt(n,e);var t=It(n);function n(){var r;Et(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ae(r),"priority",130),Re(Ae(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return Ot(n,[{key:"parse",value:function(i,o,a){var s=function(u){return{year:u,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return An(En(4,i),s);case"Yo":return An(a.ordinalNumber(i,{unit:"year"}),s);default:return An(En(o.length,i),s)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,a,s){var l=I_(i,s);if(a.isTwoDigitYear){var u=Q2(a.year,l);return i.setUTCFullYear(u,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),nl(i,s)}var d=!("era"in o)||o.era===1?a.year:1-a.year;return i.setUTCFullYear(d,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),nl(i,s)}}]),n}(Nt),Qle=function(e){Dt(n,e);var t=It(n);function n(){var r;Et(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ae(r),"priority",130),Re(Ae(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return Ot(n,[{key:"parse",value:function(i,o){return zg(o==="R"?4:o.length,i)}},{key:"set",value:function(i,o,a){var s=new Date(0);return s.setUTCFullYear(a,0,4),s.setUTCHours(0,0,0,0),Mu(s)}}]),n}(Nt),Jle=function(e){Dt(n,e);var t=It(n);function n(){var r;Et(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ae(r),"priority",130),Re(Ae(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return Ot(n,[{key:"parse",value:function(i,o){return zg(o==="u"?4:o.length,i)}},{key:"set",value:function(i,o,a){return i.setUTCFullYear(a,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(Nt),eue=function(e){Dt(n,e);var t=It(n);function n(){var r;Et(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ae(r),"priority",120),Re(Ae(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return Ot(n,[{key:"parse",value:function(i,o,a){switch(o){case"Q":case"QQ":return En(o.length,i);case"Qo":return a.ordinalNumber(i,{unit:"quarter"});case"QQQ":return a.quarter(i,{width:"abbreviated",context:"formatting"})||a.quarter(i,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(i,{width:"wide",context:"formatting"})||a.quarter(i,{width:"abbreviated",context:"formatting"})||a.quarter(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,a){return i.setUTCMonth((a-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(Nt),tue=function(e){Dt(n,e);var t=It(n);function n(){var r;Et(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ae(r),"priority",120),Re(Ae(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return Ot(n,[{key:"parse",value:function(i,o,a){switch(o){case"q":case"qq":return En(o.length,i);case"qo":return a.ordinalNumber(i,{unit:"quarter"});case"qqq":return a.quarter(i,{width:"abbreviated",context:"standalone"})||a.quarter(i,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(i,{width:"wide",context:"standalone"})||a.quarter(i,{width:"abbreviated",context:"standalone"})||a.quarter(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,a){return i.setUTCMonth((a-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(Nt),nue=function(e){Dt(n,e);var t=It(n);function n(){var r;Et(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ae(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Re(Ae(r),"priority",110),r}return Ot(n,[{key:"parse",value:function(i,o,a){var s=function(u){return u-1};switch(o){case"M":return An(mn(Mn.month,i),s);case"MM":return An(En(2,i),s);case"Mo":return An(a.ordinalNumber(i,{unit:"month"}),s);case"MMM":return a.month(i,{width:"abbreviated",context:"formatting"})||a.month(i,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(i,{width:"wide",context:"formatting"})||a.month(i,{width:"abbreviated",context:"formatting"})||a.month(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){return i.setUTCMonth(a,1),i.setUTCHours(0,0,0,0),i}}]),n}(Nt),rue=function(e){Dt(n,e);var t=It(n);function n(){var r;Et(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ae(r),"priority",110),Re(Ae(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return Ot(n,[{key:"parse",value:function(i,o,a){var s=function(u){return u-1};switch(o){case"L":return An(mn(Mn.month,i),s);case"LL":return An(En(2,i),s);case"Lo":return An(a.ordinalNumber(i,{unit:"month"}),s);case"LLL":return a.month(i,{width:"abbreviated",context:"standalone"})||a.month(i,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(i,{width:"wide",context:"standalone"})||a.month(i,{width:"abbreviated",context:"standalone"})||a.month(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){return i.setUTCMonth(a,1),i.setUTCHours(0,0,0,0),i}}]),n}(Nt);function iue(e,t,n){xe(2,arguments);var r=_e(e),i=dt(t),o=z2(r,n)-i;return r.setUTCDate(r.getUTCDate()-o*7),r}var oue=function(e){Dt(n,e);var t=It(n);function n(){var r;Et(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ae(r),"priority",100),Re(Ae(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return Ot(n,[{key:"parse",value:function(i,o,a){switch(o){case"w":return mn(Mn.week,i);case"wo":return a.ordinalNumber(i,{unit:"week"});default:return En(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,a,s){return nl(iue(i,a,s),s)}}]),n}(Nt);function aue(e,t){xe(2,arguments);var n=_e(e),r=dt(t),i=H2(n)-r;return n.setUTCDate(n.getUTCDate()-i*7),n}var sue=function(e){Dt(n,e);var t=It(n);function n(){var r;Et(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ae(r),"priority",100),Re(Ae(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return Ot(n,[{key:"parse",value:function(i,o,a){switch(o){case"I":return mn(Mn.week,i);case"Io":return a.ordinalNumber(i,{unit:"week"});default:return En(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,a){return Mu(aue(i,a))}}]),n}(Nt),lue=[31,28,31,30,31,30,31,31,30,31,30,31],uue=[31,29,31,30,31,30,31,31,30,31,30,31],cue=function(e){Dt(n,e);var t=It(n);function n(){var r;Et(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ae(r),"priority",90),Re(Ae(r),"subPriority",1),Re(Ae(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return Ot(n,[{key:"parse",value:function(i,o,a){switch(o){case"d":return mn(Mn.date,i);case"do":return a.ordinalNumber(i,{unit:"date"});default:return En(o.length,i)}}},{key:"validate",value:function(i,o){var a=i.getUTCFullYear(),s=J2(a),l=i.getUTCMonth();return s?o>=1&&o<=uue[l]:o>=1&&o<=lue[l]}},{key:"set",value:function(i,o,a){return i.setUTCDate(a),i.setUTCHours(0,0,0,0),i}}]),n}(Nt),due=function(e){Dt(n,e);var t=It(n);function n(){var r;Et(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ae(r),"priority",90),Re(Ae(r),"subpriority",1),Re(Ae(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return Ot(n,[{key:"parse",value:function(i,o,a){switch(o){case"D":case"DD":return mn(Mn.dayOfYear,i);case"Do":return a.ordinalNumber(i,{unit:"date"});default:return En(o.length,i)}}},{key:"validate",value:function(i,o){var a=i.getUTCFullYear(),s=J2(a);return s?o>=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(i,o,a){return i.setUTCMonth(0,a),i.setUTCHours(0,0,0,0),i}}]),n}(Nt);function k_(e,t,n){var r,i,o,a,s,l,u,d;xe(2,arguments);var h=ua(),p=dt((r=(i=(o=(a=n==null?void 0:n.weekStartsOn)!==null&&a!==void 0?a:n==null||(s=n.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:h.weekStartsOn)!==null&&i!==void 0?i:(u=h.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&r!==void 0?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=_e(e),m=dt(t),y=g.getUTCDay(),b=m%7,x=(b+7)%7,S=(x<p?7:0)+m-y;return g.setUTCDate(g.getUTCDate()+S),g}var fue=function(e){Dt(n,e);var t=It(n);function n(){var r;Et(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ae(r),"priority",90),Re(Ae(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return Ot(n,[{key:"parse",value:function(i,o,a){switch(o){case"E":case"EE":case"EEE":return a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=k_(i,a,s),i.setUTCHours(0,0,0,0),i}}]),n}(Nt),hue=function(e){Dt(n,e);var t=It(n);function n(){var r;Et(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ae(r),"priority",90),Re(Ae(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return Ot(n,[{key:"parse",value:function(i,o,a,s){var l=function(d){var h=Math.floor((d-1)/7)*7;return(d+s.weekStartsOn+6)%7+h};switch(o){case"e":case"ee":return An(En(o.length,i),l);case"eo":return An(a.ordinalNumber(i,{unit:"day"}),l);case"eee":return a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"eeeee":return a.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=k_(i,a,s),i.setUTCHours(0,0,0,0),i}}]),n}(Nt),pue=function(e){Dt(n,e);var t=It(n);function n(){var r;Et(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ae(r),"priority",90),Re(Ae(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return Ot(n,[{key:"parse",value:function(i,o,a,s){var l=function(d){var h=Math.floor((d-1)/7)*7;return(d+s.weekStartsOn+6)%7+h};switch(o){case"c":case"cc":return An(En(o.length,i),l);case"co":return An(a.ordinalNumber(i,{unit:"day"}),l);case"ccc":return a.day(i,{width:"abbreviated",context:"standalone"})||a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"});case"ccccc":return a.day(i,{width:"narrow",context:"standalone"});case"cccccc":return a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(i,{width:"wide",context:"standalone"})||a.day(i,{width:"abbreviated",context:"standalone"})||a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=k_(i,a,s),i.setUTCHours(0,0,0,0),i}}]),n}(Nt);function gue(e,t){xe(2,arguments);var n=dt(t);n%7===0&&(n=n-7);var r=1,i=_e(e),o=i.getUTCDay(),a=n%7,s=(a+7)%7,l=(s<r?7:0)+n-o;return i.setUTCDate(i.getUTCDate()+l),i}var mue=function(e){Dt(n,e);var t=It(n);function n(){var r;Et(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ae(r),"priority",90),Re(Ae(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return Ot(n,[{key:"parse",value:function(i,o,a){var s=function(u){return u===0?7:u};switch(o){case"i":case"ii":return En(o.length,i);case"io":return a.ordinalNumber(i,{unit:"day"});case"iii":return An(a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s);case"iiiii":return An(a.day(i,{width:"narrow",context:"formatting"}),s);case"iiiiii":return An(a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s);case"iiii":default:return An(a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(i,o){return o>=1&&o<=7}},{key:"set",value:function(i,o,a){return i=gue(i,a),i.setUTCHours(0,0,0,0),i}}]),n}(Nt),vue=function(e){Dt(n,e);var t=It(n);function n(){var r;Et(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ae(r),"priority",80),Re(Ae(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return Ot(n,[{key:"parse",value:function(i,o,a){switch(o){case"a":case"aa":case"aaa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(L_(a),0,0,0),i}}]),n}(Nt),yue=function(e){Dt(n,e);var t=It(n);function n(){var r;Et(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ae(r),"priority",80),Re(Ae(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return Ot(n,[{key:"parse",value:function(i,o,a){switch(o){case"b":case"bb":case"bbb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(L_(a),0,0,0),i}}]),n}(Nt),bue=function(e){Dt(n,e);var t=It(n);function n(){var r;Et(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ae(r),"priority",80),Re(Ae(r),"incompatibleTokens",["a","b","t","T"]),r}return Ot(n,[{key:"parse",value:function(i,o,a){switch(o){case"B":case"BB":case"BBB":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(L_(a),0,0,0),i}}]),n}(Nt),xue=function(e){Dt(n,e);var t=It(n);function n(){var r;Et(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ae(r),"priority",70),Re(Ae(r),"incompatibleTokens",["H","K","k","t","T"]),r}return Ot(n,[{key:"parse",value:function(i,o,a){switch(o){case"h":return mn(Mn.hour12h,i);case"ho":return a.ordinalNumber(i,{unit:"hour"});default:return En(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=12}},{key:"set",value:function(i,o,a){var s=i.getUTCHours()>=12;return s&&a<12?i.setUTCHours(a+12,0,0,0):!s&&a===12?i.setUTCHours(0,0,0,0):i.setUTCHours(a,0,0,0),i}}]),n}(Nt),wue=function(e){Dt(n,e);var t=It(n);function n(){var r;Et(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ae(r),"priority",70),Re(Ae(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return Ot(n,[{key:"parse",value:function(i,o,a){switch(o){case"H":return mn(Mn.hour23h,i);case"Ho":return a.ordinalNumber(i,{unit:"hour"});default:return En(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=23}},{key:"set",value:function(i,o,a){return i.setUTCHours(a,0,0,0),i}}]),n}(Nt),_ue=function(e){Dt(n,e);var t=It(n);function n(){var r;Et(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ae(r),"priority",70),Re(Ae(r),"incompatibleTokens",["h","H","k","t","T"]),r}return Ot(n,[{key:"parse",value:function(i,o,a){switch(o){case"K":return mn(Mn.hour11h,i);case"Ko":return a.ordinalNumber(i,{unit:"hour"});default:return En(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){var s=i.getUTCHours()>=12;return s&&a<12?i.setUTCHours(a+12,0,0,0):i.setUTCHours(a,0,0,0),i}}]),n}(Nt),Cue=function(e){Dt(n,e);var t=It(n);function n(){var r;Et(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ae(r),"priority",70),Re(Ae(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return Ot(n,[{key:"parse",value:function(i,o,a){switch(o){case"k":return mn(Mn.hour24h,i);case"ko":return a.ordinalNumber(i,{unit:"hour"});default:return En(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=24}},{key:"set",value:function(i,o,a){var s=a<=24?a%24:a;return i.setUTCHours(s,0,0,0),i}}]),n}(Nt),Sue=function(e){Dt(n,e);var t=It(n);function n(){var r;Et(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ae(r),"priority",60),Re(Ae(r),"incompatibleTokens",["t","T"]),r}return Ot(n,[{key:"parse",value:function(i,o,a){switch(o){case"m":return mn(Mn.minute,i);case"mo":return a.ordinalNumber(i,{unit:"minute"});default:return En(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,a){return i.setUTCMinutes(a,0,0),i}}]),n}(Nt),Tue=function(e){Dt(n,e);var t=It(n);function n(){var r;Et(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ae(r),"priority",50),Re(Ae(r),"incompatibleTokens",["t","T"]),r}return Ot(n,[{key:"parse",value:function(i,o,a){switch(o){case"s":return mn(Mn.second,i);case"so":return a.ordinalNumber(i,{unit:"second"});default:return En(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,a){return i.setUTCSeconds(a,0),i}}]),n}(Nt),Eue=function(e){Dt(n,e);var t=It(n);function n(){var r;Et(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ae(r),"priority",30),Re(Ae(r),"incompatibleTokens",["t","T"]),r}return Ot(n,[{key:"parse",value:function(i,o){var a=function(l){return Math.floor(l*Math.pow(10,-o.length+3))};return An(En(o.length,i),a)}},{key:"set",value:function(i,o,a){return i.setUTCMilliseconds(a),i}}]),n}(Nt),Oue=function(e){Dt(n,e);var t=It(n);function n(){var r;Et(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ae(r),"priority",10),Re(Ae(r),"incompatibleTokens",["t","T","x"]),r}return Ot(n,[{key:"parse",value:function(i,o){switch(o){case"X":return go(po.basicOptionalMinutes,i);case"XX":return go(po.basic,i);case"XXXX":return go(po.basicOptionalSeconds,i);case"XXXXX":return go(po.extendedOptionalSeconds,i);case"XXX":default:return go(po.extended,i)}}},{key:"set",value:function(i,o,a){return o.timestampIsSet?i:new Date(i.getTime()-a)}}]),n}(Nt),Pue=function(e){Dt(n,e);var t=It(n);function n(){var r;Et(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ae(r),"priority",10),Re(Ae(r),"incompatibleTokens",["t","T","X"]),r}return Ot(n,[{key:"parse",value:function(i,o){switch(o){case"x":return go(po.basicOptionalMinutes,i);case"xx":return go(po.basic,i);case"xxxx":return go(po.basicOptionalSeconds,i);case"xxxxx":return go(po.extendedOptionalSeconds,i);case"xxx":default:return go(po.extended,i)}}},{key:"set",value:function(i,o,a){return o.timestampIsSet?i:new Date(i.getTime()-a)}}]),n}(Nt),Rue=function(e){Dt(n,e);var t=It(n);function n(){var r;Et(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ae(r),"priority",40),Re(Ae(r),"incompatibleTokens","*"),r}return Ot(n,[{key:"parse",value:function(i){return Z2(i)}},{key:"set",value:function(i,o,a){return[new Date(a*1e3),{timestampIsSet:!0}]}}]),n}(Nt),Mue=function(e){Dt(n,e);var t=It(n);function n(){var r;Et(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ae(r),"priority",20),Re(Ae(r),"incompatibleTokens","*"),r}return Ot(n,[{key:"parse",value:function(i){return Z2(i)}},{key:"set",value:function(i,o,a){return[new Date(a),{timestampIsSet:!0}]}}]),n}(Nt),Aue={G:new Yle,y:new Xle,Y:new Zle,R:new Qle,u:new Jle,Q:new eue,q:new tue,M:new nue,L:new rue,w:new oue,I:new sue,d:new cue,D:new due,E:new fue,e:new hue,c:new pue,i:new mue,a:new vue,b:new yue,B:new bue,h:new xue,H:new wue,K:new _ue,k:new Cue,m:new Sue,s:new Tue,S:new Eue,X:new Oue,x:new Pue,t:new Rue,T:new Mue},Due=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Iue=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$ue=/^'([^]*?)'?$/,Lue=/''/g,kue=/\S/,Nue=/[a-zA-Z]/;function N_(e,t,n,r){var i,o,a,s,l,u,d,h,p,g,m,y,b,x,S,w,C,R;xe(3,arguments);var O=String(e),T=String(t),A=ua(),L=(i=(o=r==null?void 0:r.locale)!==null&&o!==void 0?o:A.locale)!==null&&i!==void 0?i:Zu;if(!L.match)throw new RangeError("locale must contain match property");var I=dt((a=(s=(l=(u=r==null?void 0:r.firstWeekContainsDate)!==null&&u!==void 0?u:r==null||(d=r.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&l!==void 0?l:A.firstWeekContainsDate)!==null&&s!==void 0?s:(p=A.locale)===null||p===void 0||(g=p.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(I>=1&&I<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var N=dt((m=(y=(b=(x=r==null?void 0:r.weekStartsOn)!==null&&x!==void 0?x:r==null||(S=r.locale)===null||S===void 0||(w=S.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&b!==void 0?b:A.weekStartsOn)!==null&&y!==void 0?y:(C=A.locale)===null||C===void 0||(R=C.options)===null||R===void 0?void 0:R.weekStartsOn)!==null&&m!==void 0?m:0);if(!(N>=0&&N<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(T==="")return O===""?_e(n):new Date(NaN);var B={firstWeekContainsDate:I,weekStartsOn:N,locale:L},U=[new Kle],z=T.match(Iue).map(function(fe){var ue=fe[0];if(ue in _x){var Ne=_x[ue];return Ne(fe,L.formatLong)}return fe}).join("").match(Due),F=[],j=AR(z),K;try{var V=function(){var ue=K.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&q2(ue)&&Ug(ue,T,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&G2(ue)&&Ug(ue,T,e);var Ne=ue[0],We=Aue[Ne];if(We){var be=We.incompatibleTokens;if(Array.isArray(be)){var pe=F.find(function(qe){return be.includes(qe.token)||qe.token===Ne});if(pe)throw new RangeError("The format string mustn't contain `".concat(pe.fullToken,"` and `").concat(ue,"` at the same time"))}else if(We.incompatibleTokens==="*"&&F.length>0)throw new RangeError("The format string mustn't contain `".concat(ue,"` and any other token at the same time"));F.push({token:Ne,fullToken:ue});var He=We.run(O,ue,L.match,B);if(!He)return{v:new Date(NaN)};U.push(He.setter),O=He.rest}else{if(Ne.match(Nue))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Ne+"`");if(ue==="''"?ue="'":Ne==="'"&&(ue=Fue(ue)),O.indexOf(ue)===0)O=O.slice(ue.length);else return{v:new Date(NaN)}}};for(j.s();!(K=j.n()).done;){var J=V();if(xo(J)==="object")return J.v}}catch(fe){j.e(fe)}finally{j.f()}if(O.length>0&&kue.test(O))return new Date(NaN);var oe=U.map(function(fe){return fe.priority}).sort(function(fe,ue){return ue-fe}).filter(function(fe,ue,Ne){return Ne.indexOf(fe)===ue}).map(function(fe){return U.filter(function(ue){return ue.priority===fe}).sort(function(ue,Ne){return Ne.subPriority-ue.subPriority})}).map(function(fe){return fe[0]}),ce=_e(n);if(isNaN(ce.getTime()))return new Date(NaN);var le=U2(ce,Pu(ce)),Me={},ve=AR(oe),ye;try{for(ve.s();!(ye=ve.n()).done;){var Ce=ye.value;if(!Ce.validate(le,B))return new Date(NaN);var we=Ce.set(le,Me,B);Array.isArray(we)?(le=we[0],$_(Me,we[1])):le=we}}catch(fe){ve.e(fe)}finally{ve.f()}return le}function Fue(e){return e.match($ue)[1].replace(Lue,"'")}function Cx(e){xe(1,arguments);var t=_e(e);return t.setMinutes(0,0,0),t}function jue(e,t){xe(2,arguments);var n=Cx(e),r=Cx(t);return n.getTime()===r.getTime()}function Bue(e,t){xe(2,arguments);var n=_e(e),r=_e(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function Uue(e){xe(1,arguments);var t=_e(e);return t.setMilliseconds(0),t}function Wue(e,t){xe(2,arguments);var n=_e(e),r=_e(t);return n.getFullYear()===r.getFullYear()}function Hue(e,t){xe(2,arguments);var n=_e(e).getTime(),r=_e(t.start).getTime(),i=_e(t.end).getTime();if(!(r<=i))throw new RangeError("Invalid interval");return n>=r&&n<=i}function zue(e,t){xe(2,arguments);var n=dt(t);return Jd(e,-n)}function Ai(e,t){var n;xe(1,arguments);var r=dt((n=t==null?void 0:t.additionalDigits)!==null&&n!==void 0?n:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var i=Kue(e),o;if(i.date){var a=Yue(i.date,r);o=Xue(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var s=o.getTime(),l=0,u;if(i.time&&(l=Zue(i.time),isNaN(l)))return new Date(NaN);if(i.timezone){if(u=Que(i.timezone),isNaN(u))return new Date(NaN)}else{var d=new Date(s+l),h=new Date(0);return h.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),h.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),h}return new Date(s+l+u)}var np={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Vue=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Gue=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,que=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Kue(e){var t={},n=e.split(np.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],np.timeZoneDelimiter.test(t.date)&&(t.date=e.split(np.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var i=np.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function Yue(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((r[1]||r[2]).length)}}function Xue(e,t){if(t===null)return new Date(NaN);var n=e.match(Vue);if(!n)return new Date(NaN);var r=!!n[4],i=qc(n[1]),o=qc(n[2])-1,a=qc(n[3]),s=qc(n[4]),l=qc(n[5])-1;if(r)return rce(t,s,l)?Jue(t,s,l):new Date(NaN);var u=new Date(0);return!tce(t,o,a)||!nce(t,i)?new Date(NaN):(u.setUTCFullYear(t,o,Math.max(i,a)),u)}function qc(e){return e?parseInt(e):1}function Zue(e){var t=e.match(Gue);if(!t)return NaN;var n=s0(t[1]),r=s0(t[2]),i=s0(t[3]);return ice(n,r,i)?n*Pv+r*Ov+i*1e3:NaN}function s0(e){return e&&parseFloat(e.replace(",","."))||0}function Que(e){if(e==="Z")return 0;var t=e.match(que);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return oce(r,i)?n*(r*Pv+i*Ov):NaN}function Jue(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}var ece=[31,null,31,30,31,30,31,31,30,31,30,31];function ek(e){return e%400===0||e%4===0&&e%100!==0}function tce(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(ece[t]||(ek(e)?29:28))}function nce(e,t){return t>=1&&t<=(ek(e)?366:365)}function rce(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function ice(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function oce(e,t){return t>=0&&t<=59}function ace(e,t){xe(2,arguments);var n=_e(e),r=dt(t),i=n.getFullYear(),o=n.getDate(),a=new Date(0);a.setFullYear(i,r,15),a.setHours(0,0,0,0);var s=K2(a);return n.setMonth(r,Math.min(o,s)),n}function sce(e,t){xe(2,arguments);var n=_e(e),r=dt(t);return n.setDate(r),n}function lce(e,t){xe(2,arguments);var n=_e(e),r=dt(t);return n.setHours(r),n}function uce(e,t){xe(2,arguments);var n=_e(e),r=dt(t);return n.setMinutes(r),n}function cce(e,t){xe(2,arguments);var n=_e(e),r=dt(t);return n.setSeconds(r),n}function dce(e,t){xe(2,arguments);var n=_e(e),r=dt(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function fce(e,t){xe(2,arguments);var n=dt(t);return zs(e,-n)}function hce(e,t){if(xe(2,arguments),!t||xo(t)!=="object")return new Date(NaN);var n=t.years?dt(t.years):0,r=t.months?dt(t.months):0,i=t.weeks?dt(t.weeks):0,o=t.days?dt(t.days):0,a=t.hours?dt(t.hours):0,s=t.minutes?dt(t.minutes):0,l=t.seconds?dt(t.seconds):0,u=fce(e,r+n*12),d=zue(u,o+i*7),h=s+a*60,p=l+h*60,g=p*1e3,m=new Date(d.getTime()-g);return m}const tk=[];let Ns=0;for(;Ns<64;)tk[Ns]=0|Math.sin(++Ns%Math.PI)*4294967296;function pce(e){const t=[];let n,r,i,o=unescape(encodeURI(e))+"",a=o.length;const s=[n=1732584193,r=4023233417,~n,~r];for(e=--a/4+2|15,t[--e]=a*8;~a;)t[a>>2]|=o.charCodeAt(a)<<8*a--;for(Ns=o=0;Ns<e;Ns+=16){for(a=s;o<64;a=[i=a[3],n+((i=a[0]+[n&r|~n&i,i&n|~i&r,n^r^i,r^(n|~i)][a=o>>4]+tk[o]+~~t[Ns|[o,5*o+1,3*o+5,7*o][a]&15])<<(a=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*a+o++%4])|i>>>-a),n,r])n=a[1]|0,r=a[2];for(o=4;o;)s[--o]+=a[o]}for(e="";o<32;)e+=(s[o>>3]>>(1^o++)*4&15).toString(16);return e}const rp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",nk=e=>{let t="",n,r,i,o,a,s,l,u=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");u<e.length;)o=rp.indexOf(e.charAt(u++)),a=rp.indexOf(e.charAt(u++)),s=rp.indexOf(e.charAt(u++)),l=rp.indexOf(e.charAt(u++)),n=o<<2|a>>4,r=(a&15)<<4|s>>2,i=(s&3)<<6|l,t=t+String.fromCharCode(n),s!=64&&(t=t+String.fromCharCode(r)),l!=64&&(t=t+String.fromCharCode(i));return t},gce=["pro","premium"],mce=["perpetual","subscription"];function Rv(e){console.error(["*************************************************************","",...e,"","*************************************************************"].join(`
|
|
428
|
+
`))}function vce(){Rv(["MUI: Invalid license key.","","Your MUI X license key isn't valid. Please check your license key installation https://mui.com/r/x-license-key-installation.","","To purchase a license, please visit https://mui.com/r/x-get-license."])}function yce(){Rv(["MUI: License key plan mismatch.","","Your use of MUI X is not compatible with the plan of your license key.","You are rendering a `DataGridPremium` component that requires a license key for the Premium plan but your license key is for the Pro plan.","","You can solve the issue by upgrading to Premium at https://mui.com/r/x-get-license?scope=premium","Alternatively, you can replace the import of `DataGridPremium` with `DataGridPro`."])}function bce({plan:e,packageName:t}){Rv([`MUI: License key not found for ${t}.`,"",`This is a trial-only version of MUI X ${e}.`,"See the conditons here: https://mui.com/r/x-license-trial.","","To purchase a license, please visit https://mui.com/r/x-get-license."])}function xce(){Rv(["MUI: License key expired.","","Please visit https://mui.com/r/x-get-license to renew your subscription of MUI X."])}const Sx=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();Sx.__MUI_LICENSE_INFO__=Sx.__MUI_LICENSE_INFO__||{key:void 0};class Vg{static getLicenseInfo(){return Sx.__MUI_LICENSE_INFO__}static getLicenseKey(){return Vg.getLicenseInfo().key}static setLicenseKey(t){const n=Vg.getLicenseInfo();n.key=t}}var Fn;(function(e){e.NotFound="NotFound",e.Invalid="Invalid",e.Expired="Expired",e.Valid="Valid",e.OutOfScope="OutOfScope"})(Fn||(Fn={}));const wce=/^.*EXPIRY=([0-9]+),.*$/,_ce=e=>{let t;try{t=parseInt(e.match(wce)[1],10),(!t||Number.isNaN(t))&&(t=null)}catch{t=null}return{scope:"pro",licensingModel:"perpetual",expiryTimestamp:t}},Cce=e=>{const t={scope:null,licensingModel:null,expiryTimestamp:null};return e.split(",").map(n=>n.split("=")).filter(n=>n.length===2).forEach(([n,r])=>{if(n==="S"&&(t.scope=r),n==="LM"&&(t.licensingModel=r),n==="E"){const i=parseInt(r,10);i&&!Number.isNaN(i)&&(t.expiryTimestamp=i)}}),t},Sce=e=>{const t=nk(e);return t.includes("KEYVERSION=1")?_ce(t):t.includes("KV=2")?Cce(t):null};function Tce({releaseInfo:e,licenseKey:t,acceptedScopes:n,isProduction:r}){if(!e)throw new Error("MUI: The release information is missing. Not able to validate license.");if(!t)return Fn.NotFound;const i=t.substr(0,32),o=t.substr(32);if(i!==pce(o))return Fn.Invalid;const a=Sce(o);if(a==null)return console.error("Error checking license. Key version not found!"),Fn.Invalid;if(a.licensingModel==null||!mce.includes(a.licensingModel))return console.error("Error checking license. Sales model not found or invalid!"),Fn.Invalid;if(a.expiryTimestamp==null)return console.error("Error checking license. Expiry timestamp not found or invalid!"),Fn.Invalid;if(a.licensingModel==="perpetual"||r){const s=parseInt(nk(e),10);if(Number.isNaN(s))throw new Error("MUI: The release information is invalid. Not able to validate license.");if(a.expiryTimestamp<s)return Fn.Expired}return a.scope==null||!gce.includes(a.scope)?(console.error("Error checking license. scope not found or invalid!"),Fn.Invalid):n.includes(a.scope)?Fn.Valid:Fn.OutOfScope}const ip={};function If(e,t){return P.useMemo(()=>{const n=Vg.getLicenseKey();if(ip[e]&&ip[e].key===n)return ip[e].status;const r=e.includes("premium")?["premium"]:["pro","premium"],i=e.includes("premium")?"Premium":"Pro",o=Tce({releaseInfo:t,licenseKey:n,acceptedScopes:r,isProduction:!0});return ip[e]={key:n,status:o},o===Fn.Invalid?vce():o===Fn.OutOfScope?yce():o===Fn.NotFound?bce({plan:i,packageName:`@mui/${e}`}):o===Fn.Expired&&xce(),o},[e,t])}function Ece(e){switch(e){case Fn.Expired:return"MUI X: License key expired";case Fn.Invalid:return"MUI X: Invalid license key";case Fn.OutOfScope:return"MUI X: License key plan mismatch";case Fn.NotFound:return"MUI X: Missing license key";default:throw new Error("MUI: Unhandled MUI X license status.")}}function Oce(e){const{packageName:t,releaseInfo:n}=e,r=If(t,n);return r===Fn.Valid?null:_.jsx("div",{style:{position:"absolute",pointerEvents:"none",color:"#8282829e",zIndex:1e5,width:"100%",textAlign:"center",bottom:"50%",right:0,letterSpacing:5,fontSize:24},children:Ece(r)})}function rk(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=rk(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ti(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=rk(e))&&(r&&(r+=" "),r+=t);return r}const DR=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},ik=e=>{setTimeout(e,0)},Gg=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Gg(t.shadowRoot):t:null},Pce=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:M({},e)}}}}),ok={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",inputModeToggleButtonAriaLabel:(e,t)=>e?`text input view is open, go to ${t} view`:`${t} view is open, go to text input view`,start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerDefaultToolbarTitle:"Select date",dateTimePickerDefaultToolbarTitle:"Select date & time",timePickerDefaultToolbarTitle:"Select time",dateRangePickerDefaultToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose date, selected date is ${t.format(t.date(e),"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose time, selected time is ${t.format(t.date(e),"fullTime")}`:"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date"},Rce=ok,Mce=Pce(ok),ak=P.createContext(null);function Ace(e){const t=Or({props:e,name:"MuiLocalizationProvider"}),{children:n,dateAdapter:r,dateFormats:i,dateLibInstance:o,locale:a,adapterLocale:s,localeText:l}=t,u=P.useMemo(()=>new r({locale:s??a,formats:i,instance:o}),[r,a,s,i,o]),d=P.useMemo(()=>({minDate:u.date("1900-01-01T00:00:00.000"),maxDate:u.date("2099-12-31T00:00:00.000")}),[u]),h=P.useMemo(()=>({utils:u,defaultDates:d,localeText:M({},Rce,l??{})}),[d,u,l]);return _.jsx(ak.Provider,{value:h,children:n})}const $f=()=>{const e=P.useContext(ak);if(e===null)throw new Error("MUI: Can not find utils in context. It looks like you forgot to wrap your component in LocalizationProvider, or pass dateAdapter prop directly.");return e},br=()=>$f().utils,F_=()=>$f().defaultDates,Qu=()=>$f().localeText,sk=()=>{const e=br();return P.useRef(e.date()).current},l0=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:i,isDateDisabled:o,utils:a})=>{const s=a.startOfDay(a.date());n&&a.isBefore(i,s)&&(i=s),t&&a.isAfter(r,s)&&(r=s);let l=e,u=e;for(a.isBefore(e,i)&&(l=a.date(i),u=null),a.isAfter(e,r)&&(u&&(u=a.date(r)),l=null);l||u;){if(l&&a.isAfter(l,r)&&(l=null),u&&a.isBefore(u,i)&&(u=null),l){if(!o(l))return l;l=a.addDays(l,1)}if(u){if(!o(u))return u;u=a.addDays(u,-1)}}return null},qg=(e,t,n)=>{if(t==null)return n;const r=e.date(t);return e.isValid(r)?r:n};function Dce(e,t,n){const{value:r,onError:i}=e,o=$f(),a=P.useRef(null),s=t({adapter:o,value:r,props:e});return P.useEffect(()=>{i&&!n(s,a.current)&&i(s,r),a.current=s},[n,i,a,s,r]),s}const Tx=({props:e,value:t,adapter:n})=>{const r=n.utils.date(),i=n.utils.date(t),o=qg(n.utils,e.minDate,n.defaultDates.minDate),a=qg(n.utils,e.maxDate,n.defaultDates.maxDate);if(i===null)return null;switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(e.shouldDisableDate&&e.shouldDisableDate(i)):return"shouldDisableDate";case!!(e.disableFuture&&n.utils.isAfterDay(i,r)):return"disableFuture";case!!(e.disablePast&&n.utils.isBeforeDay(i,r)):return"disablePast";case!!(o&&n.utils.isBeforeDay(i,o)):return"minDate";case!!(a&&n.utils.isAfterDay(i,a)):return"maxDate";default:return null}},lk=({shouldDisableDate:e,minDate:t,maxDate:n,disableFuture:r,disablePast:i})=>{const o=$f();return P.useCallback(a=>Tx({adapter:o,value:a,props:{shouldDisableDate:e,minDate:t,maxDate:n,disableFuture:r,disablePast:i}})!==null,[o,e,t,n,r,i])},Ice=(e,t,n)=>(r,i)=>{switch(i.type){case"changeMonth":return M({},r,{slideDirection:i.direction,currentMonth:i.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return M({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&i.focusedDay!=null&&n.isSameDay(i.focusedDay,r.focusedDay))return r;const o=i.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,i.focusedDay);return M({},r,{focusedDay:i.focusedDay,isMonthSwitchingAnimating:o&&!e&&!i.withoutMonthSwitchingAnimation,currentMonth:o?n.startOfMonth(i.focusedDay):r.currentMonth,slideDirection:i.focusedDay!=null&&n.isAfterDay(i.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},$ce=({date:e,defaultCalendarMonth:t,disableFuture:n,disablePast:r,disableSwitchToMonthOnDayFocus:i=!1,maxDate:o,minDate:a,onMonthChange:s,reduceAnimations:l,shouldDisableDate:u})=>{var d;const h=sk(),p=br(),g=P.useRef(Ice(!!l,i,p)).current,[m,y]=P.useReducer(g,{isMonthSwitchingAnimating:!1,focusedDay:e||h,currentMonth:p.startOfMonth((d=e??t)!=null?d:h),slideDirection:"left"}),b=P.useCallback(R=>{y(M({type:"changeMonth"},R)),s&&s(R.newMonth)},[s]),x=P.useCallback(R=>{const O=R??h;p.isSameMonth(O,m.currentMonth)||b({newMonth:p.startOfMonth(O),direction:p.isAfterDay(O,m.currentMonth)?"left":"right"})},[m.currentMonth,b,h,p]),S=lk({shouldDisableDate:u,minDate:a,maxDate:o,disableFuture:n,disablePast:r}),w=P.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),C=P.useCallback((R,O)=>{S(R)||y({type:"changeFocusedDay",focusedDay:R,withoutMonthSwitchingAnimation:O})},[S]);return{calendarState:m,changeMonth:x,changeFocusedDay:C,isDateDisabled:S,onMonthSwitchingAnimationEnd:w,handleChangeMonth:b}},Lce=e=>Be("MuiPickersFadeTransitionGroup",e);Le("MuiPickersFadeTransitionGroup",["root"]);const kce=e=>{const{classes:t}=e;return Ue({root:["root"]},Lce,t)},IR=500,Nce=H(xf,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function Fce(e){const t=Or({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,a=kce(t);return i?n:_.jsx(Nce,{className:Ti(a.root,r),children:_.jsx(mv,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:IR,enter:IR/2,exit:0},children:n},o)})}const jce=typeof window<"u"?P.useLayoutEffect:P.useEffect,Ex=36,Au=2,Bce=320;function Uce(e){return Be("MuiPickersDay",e)}const op=Le("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),Wce=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today"],Hce=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:i,disabled:o,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e;return Ue({root:["root",t&&"selected",o&&"disabled",!n&&"dayWithMargin",!r&&i&&"today",a&&s&&"dayOutsideMonth",a&&!s&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},Uce,l)},uk=({theme:e,ownerState:t})=>M({},e.typography.caption,{width:Ex,height:Ex,borderRadius:"50%",padding:0,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,"&:hover":{backgroundColor:zd(e.palette.action.active,e.palette.action.hoverOpacity)},"&:focus":{backgroundColor:zd(e.palette.action.active,e.palette.action.hoverOpacity),[`&.${op.selected}`]:{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${op.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),"&:hover":{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${op.disabled}`]:{color:e.palette.text.disabled}},!t.disableMargin&&{margin:`0 ${Au}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:e.palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${op.selected})`]:{border:`1px solid ${e.palette.text.secondary}`}}),ck=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},zce=H(la,{name:"MuiPickersDay",slot:"Root",overridesResolver:ck})(uk),Vce=H("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:ck})(({theme:e,ownerState:t})=>M({},uk({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),u0=()=>{},Gce=P.forwardRef(function(t,n){const r=Or({props:t,name:"MuiPickersDay"}),{autoFocus:i=!1,className:o,day:a,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:u=!1,isAnimating:d,onClick:h,onDaySelect:p,onFocus:g=u0,onBlur:m=u0,onKeyDown:y=u0,onMouseDown:b,outsideCurrentMonth:x,selected:S=!1,showDaysOutsideCurrentMonth:w=!1,children:C,today:R=!1}=r,O=de(r,Wce),T=M({},r,{autoFocus:i,disabled:s,disableHighlightToday:l,disableMargin:u,selected:S,showDaysOutsideCurrentMonth:w,today:R}),A=Hce(T),L=br(),I=P.useRef(null),N=vn(I,n);jce(()=>{i&&!s&&!d&&!x&&I.current.focus()},[i,s,d,x]);const B=z=>{b&&b(z),x&&z.preventDefault()},U=z=>{s||p(a,"finish"),x&&z.currentTarget.focus(),h&&h(z)};return x&&!w?_.jsx(Vce,{className:Ti(A.root,A.hiddenDaySpacingFiller,o),ownerState:T,role:O.role}):_.jsx(zce,M({className:Ti(A.root,o),ownerState:T,ref:N,centerRipple:!0,disabled:s,tabIndex:S?0:-1,onKeyDown:z=>y(z,a),onFocus:z=>g(z,a),onBlur:z=>m(z,a),onClick:U,onMouseDown:B},O,{children:C||L.format(a,"dayOfMonth")}))}),dk=(e,t)=>e.autoFocus===t.autoFocus&&e.isAnimating===t.isAnimating&&e.today===t.today&&e.disabled===t.disabled&&e.selected===t.selected&&e.disableMargin===t.disableMargin&&e.showDaysOutsideCurrentMonth===t.showDaysOutsideCurrentMonth&&e.disableHighlightToday===t.disableHighlightToday&&e.className===t.className&&e.sx===t.sx&&e.outsideCurrentMonth===t.outsideCurrentMonth&&e.onFocus===t.onFocus&&e.onBlur===t.onBlur&&e.onDaySelect===t.onDaySelect,fk=P.memo(Gce,dk),qce=e=>Be("PrivatePickersSlideTransition",e),pr=Le("PrivatePickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Kce=["children","className","reduceAnimations","slideDirection","transKey"],Yce=e=>{const{classes:t}=e;return Ue({root:["root"]},qce,t)},hk=350,Xce=H(xf,{name:"PrivatePickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${pr["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${pr["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${pr.slideEnterActive}`]:t.slideEnterActive},{[`.${pr.slideExit}`]:t.slideExit},{[`.${pr["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${pr["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:hk,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${pr["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${pr["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${pr.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${pr.slideExit}`]:{transform:"translate(0%)"},[`& .${pr["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${pr["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}}),Zce=e=>{const{children:t,className:n,reduceAnimations:r,slideDirection:i,transKey:o}=e,a=de(e,Kce),s=Yce(e);if(r)return _.jsx("div",{className:Ti(s.root,n),children:t});const l={exit:pr.slideExit,enterActive:pr.slideEnterActive,enter:pr[`slideEnter-${i}`],exitActive:pr[`slideExitActiveLeft-${i}`]};return _.jsx(Xce,{className:Ti(s.root,n),childFactory:u=>P.cloneElement(u,{classNames:l}),role:"presentation",children:_.jsx(Kw,M({mountOnEnter:!0,unmountOnExit:!0,timeout:hk,classNames:l},a,{children:t}),o)})},Qce=e=>Be("MuiDayPicker",e);Le("MuiDayPicker",["header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer"]);const Jce=e=>{const{classes:t}=e;return Ue({header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"]},Qce,t)},ede=e=>e.charAt(0).toUpperCase(),pk=(Ex+Au*2)*6,tde=H("div",{name:"MuiDayPicker",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),nde=H(Ye,{name:"MuiDayPicker",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.secondary})),rde=H("div",{name:"MuiDayPicker",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:pk}),ide=H(Zce,{name:"MuiDayPicker",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:pk}),ode=H("div",{name:"MuiDayPicker",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),ade=H("div",{name:"MuiDayPicker",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Au}px 0`,display:"flex",justifyContent:"center"});function gk(e){const t=sk(),n=br(),r=Or({props:e,name:"MuiDayPicker"}),i=Jce(r),{onFocusedDayChange:o,className:a,currentMonth:s,selectedDays:l,disabled:u,disableHighlightToday:d,focusedDay:h,isMonthSwitchingAnimating:p,loading:g,onSelectedDaysChange:m,onMonthSwitchingAnimationEnd:y,readOnly:b,reduceAnimations:x,renderDay:S,renderLoading:w=()=>_.jsx("span",{children:"..."}),showDaysOutsideCurrentMonth:C,slideDirection:R,TransitionProps:O,disablePast:T,disableFuture:A,minDate:L,maxDate:I,shouldDisableDate:N,dayOfWeekFormatter:B=ede,hasFocus:U,onFocusedViewChange:z,gridLabelId:F}=r,j=lk({shouldDisableDate:N,minDate:L,maxDate:I,disablePast:T,disableFuture:A}),[K,V]=P.useState(()=>h||t),J=P.useCallback(be=>{z&&z(be)},[z]),oe=P.useCallback((be,pe="finish")=>{b||m(be,pe)},[m,b]),ce=P.useCallback(be=>{j(be)||(o(be),V(be),J(!0))},[j,o,J]),le=or();function Me(be,pe){switch(be.key){case"ArrowUp":ce(n.addDays(pe,-7)),be.preventDefault();break;case"ArrowDown":ce(n.addDays(pe,7)),be.preventDefault();break;case"ArrowLeft":{const He=n.addDays(pe,le.direction==="ltr"?-1:1),qe=le.direction==="ltr"?n.getPreviousMonth(pe):n.getNextMonth(pe),tt=l0({utils:n,date:He,minDate:le.direction==="ltr"?n.startOfMonth(qe):He,maxDate:le.direction==="ltr"?He:n.endOfMonth(qe),isDateDisabled:j});ce(tt||He),be.preventDefault();break}case"ArrowRight":{const He=n.addDays(pe,le.direction==="ltr"?1:-1),qe=le.direction==="ltr"?n.getNextMonth(pe):n.getPreviousMonth(pe),tt=l0({utils:n,date:He,minDate:le.direction==="ltr"?He:n.startOfMonth(qe),maxDate:le.direction==="ltr"?n.endOfMonth(qe):He,isDateDisabled:j});ce(tt||He),be.preventDefault();break}case"Home":ce(n.startOfWeek(pe)),be.preventDefault();break;case"End":ce(n.endOfWeek(pe)),be.preventDefault();break;case"PageUp":ce(n.getNextMonth(pe)),be.preventDefault();break;case"PageDown":ce(n.getPreviousMonth(pe)),be.preventDefault();break}}function ve(be,pe){ce(pe)}function ye(be,pe){U&&n.isSameDay(K,pe)&&J(!1)}const Ce=n.getMonth(s),we=l.filter(be=>!!be).map(be=>n.startOfDay(be)),fe=Ce,ue=P.useMemo(()=>P.createRef(),[fe]),Ne=n.startOfWeek(t),We=P.useMemo(()=>{const be=n.startOfMonth(s),pe=n.endOfMonth(s);return j(K)||n.isAfterDay(K,pe)||n.isBeforeDay(K,be)?l0({utils:n,date:K,minDate:be,maxDate:pe,disablePast:T,disableFuture:A,isDateDisabled:j}):K},[s,A,T,K,j,n]);return _.jsxs("div",{role:"grid","aria-labelledby":F,children:[_.jsx(tde,{role:"row",className:i.header,children:n.getWeekdays().map((be,pe)=>{var He;return _.jsx(nde,{variant:"caption",role:"columnheader","aria-label":n.format(n.addDays(Ne,pe),"weekday"),className:i.weekDayLabel,children:(He=B==null?void 0:B(be))!=null?He:be},be+pe.toString())})}),g?_.jsx(rde,{className:i.loadingContainer,children:w()}):_.jsx(ide,M({transKey:fe,onExited:y,reduceAnimations:x,slideDirection:R,className:Ti(a,i.slideTransition)},O,{nodeRef:ue,children:_.jsx(ode,{ref:ue,role:"rowgroup",className:i.monthContainer,children:n.getWeekArray(s).map(be=>_.jsx(ade,{role:"row",className:i.weekContainer,children:be.map(pe=>{const He=We!==null&&n.isSameDay(pe,We),qe=we.some(Ct=>n.isSameDay(Ct,pe)),tt=n.isSameDay(pe,t),_t={key:pe==null?void 0:pe.toString(),day:pe,isAnimating:p,disabled:u||j(pe),autoFocus:U&&He,today:tt,outsideCurrentMonth:n.getMonth(pe)!==Ce,selected:qe,disableHighlightToday:d,showDaysOutsideCurrentMonth:C,onKeyDown:Me,onFocus:ve,onBlur:ye,onDaySelect:oe,tabIndex:He?0:-1,role:"gridcell","aria-selected":qe};return tt&&(_t["aria-current"]="date"),S?S(pe,we,_t):Xo(fk,M({},_t,{key:_t.key}))})},`week-${be[0]}`))})}))]})}const sde=$n(_.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),lde=$n(_.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),ude=$n(_.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),cde=$n(_.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),dde=$n(_.jsxs(P.Fragment,{children:[_.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),_.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");$n(_.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");const fde=$n(_.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Pen");$n(_.jsxs(P.Fragment,{children:[_.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),_.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");function hde(e){return Be("MuiPickersArrowSwitcher",e)}Le("MuiPickersArrowSwitcher",["root","spacer","button"]);const pde=["children","className","components","componentsProps","isLeftDisabled","isLeftHidden","isRightDisabled","isRightHidden","leftArrowButtonText","onLeftClick","onRightClick","rightArrowButtonText"],gde=e=>{const{classes:t}=e;return Ue({root:["root"],spacer:["spacer"],button:["button"]},hde,t)},mde=H("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),vde=H("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),$R=H(La,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>M({},e.hidden&&{visibility:"hidden"})),mk=P.forwardRef(function(t,n){const r=Or({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:o,components:a,componentsProps:s,isLeftDisabled:l,isLeftHidden:u,isRightDisabled:d,isRightHidden:h,leftArrowButtonText:p,onLeftClick:g,onRightClick:m,rightArrowButtonText:y}=r,b=de(r,pde),S=or().direction==="rtl",w=(s==null?void 0:s.leftArrowButton)||{},C=(a==null?void 0:a.LeftArrowIcon)||lde,R=(s==null?void 0:s.rightArrowButton)||{},O=(a==null?void 0:a.RightArrowIcon)||ude,T=r,A=gde(T);return _.jsxs(mde,M({ref:n,className:Ti(A.root,o),ownerState:T},b,{children:[_.jsx($R,M({as:a==null?void 0:a.LeftArrowButton,size:"small","aria-label":p,title:p,disabled:l,edge:"end",onClick:g},w,{className:Ti(A.button,w.className),ownerState:M({},T,w,{hidden:u}),children:S?_.jsx(O,{}):_.jsx(C,{})})),i?_.jsx(Ye,{variant:"subtitle1",component:"span",children:i}):_.jsx(vde,{className:A.spacer,ownerState:T}),_.jsx($R,M({as:a==null?void 0:a.RightArrowButton,size:"small","aria-label":y,title:y,edge:"start",disabled:d,onClick:m},R,{className:Ti(A.button,R.className),ownerState:M({},T,R,{hidden:h}),children:S?_.jsx(C,{}):_.jsx(O,{})}))]}))});function vk(e,{disableFuture:t,maxDate:n}){const r=br();return P.useMemo(()=>{const i=r.date(),o=r.startOfMonth(t&&r.isBefore(i,n)?i:n);return!r.isAfter(o,e)},[t,n,e,r])}function yk(e,{disablePast:t,minDate:n}){const r=br();return P.useMemo(()=>{const i=r.date(),o=r.startOfMonth(t&&r.isAfter(i,n)?i:n);return!r.isBefore(o,e)},[t,n,e,r])}const j_=e=>()=>{},yde=e=>Be("MuiPickersCalendarHeader",e);Le("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);const bde=e=>{const{classes:t}=e;return Ue({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},yde,t)},xde=H("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),wde=H("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>M({display:"flex",maxHeight:30,overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),_de=H("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),Cde=H(La,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto"}),Sde=H(sde,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e,ownerState:t})=>M({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"},t.openView==="year"&&{transform:"rotate(180deg)"})),Tde=j_();function Ede(e){const t=Or({props:e,name:"MuiPickersCalendarHeader"}),{components:n={},componentsProps:r={},currentMonth:i,disabled:o,disableFuture:a,disablePast:s,getViewSwitchingButtonText:l,leftArrowButtonText:u,maxDate:d,minDate:h,onMonthChange:p,onViewChange:g,openView:m,reduceAnimations:y,rightArrowButtonText:b,views:x,labelId:S}=t;Tde({leftArrowButtonText:u,rightArrowButtonText:b,getViewSwitchingButtonText:l});const w=Qu(),C=u??w.previousMonth,R=b??w.nextMonth,O=l??w.calendarViewSwitchingButtonAriaLabel,T=br(),A=bde(t),L=r.switchViewButton||{},I=()=>p(T.getNextMonth(i),"left"),N=()=>p(T.getPreviousMonth(i),"right"),B=vk(i,{disableFuture:a,maxDate:d}),U=yk(i,{disablePast:s,minDate:h}),z=()=>{if(!(x.length===1||!g||o))if(x.length===2)g(x.find(j=>j!==m)||x[0]);else{const j=x.indexOf(m)!==0?0:1;g(x[j])}};if(x.length===1&&x[0]==="year")return null;const F=t;return _.jsxs(xde,{ownerState:F,className:A.root,children:[_.jsxs(wde,{role:"presentation",onClick:z,ownerState:F,"aria-live":"polite",className:A.labelContainer,children:[_.jsx(Fce,{reduceAnimations:y,transKey:T.format(i,"monthAndYear"),children:_.jsx(_de,{id:S,ownerState:F,className:A.label,children:T.format(i,"monthAndYear")})}),x.length>1&&!o&&_.jsx(Cde,M({size:"small",as:n.SwitchViewButton,"aria-label":O(m),className:A.switchViewButton},L,{children:_.jsx(Sde,{as:n.SwitchViewIcon,ownerState:F,className:A.switchViewIcon})}))]}),_.jsx(mv,{in:m==="day",children:_.jsx(mk,{leftArrowButtonText:C,rightArrowButtonText:R,components:n,componentsProps:r,onLeftClick:N,onRightClick:I,isLeftDisabled:U,isRightDisabled:B})})]})}const Mv=P.createContext(null),Ode=typeof navigator<"u"&&/(android)/i.test(navigator.userAgent);function bk(e){return Be("MuiPickersToolbar",e)}const xk=Le("MuiPickersToolbar",["root","content","penIconButton","penIconButtonLandscape"]),Pde=e=>{const{classes:t,isLandscape:n}=e;return Ue({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},bk,t)},Rde=H("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>M({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),Mde=H(Bn,{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>M({flex:1},!e.isLandscape&&{alignItems:"center"})),Ade=H(La,{name:"MuiPickersToolbar",slot:"PenIconButton",overridesResolver:(e,t)=>[{[`&.${xk.penIconButtonLandscape}`]:t.penIconButtonLandscape},t.penIconButton]})({}),Dde=e=>e==="clock"?_.jsx(dde,{color:"inherit"}):_.jsx(cde,{color:"inherit"}),Ide=P.forwardRef(function(t,n){const r=Or({props:t,name:"MuiPickersToolbar"}),{children:i,className:o,getMobileKeyboardInputViewButtonText:a,isLandscape:s,isMobileKeyboardViewOpen:l,landscapeDirection:u="column",toggleMobileKeyboardView:d,toolbarTitle:h,viewType:p="calendar"}=r,g=r,m=Qu(),y=Pde(g);return _.jsxs(Rde,{ref:n,className:Ti(y.root,o),ownerState:g,children:[_.jsx(Ye,{color:"text.secondary",variant:"overline",children:h}),_.jsxs(Mde,{container:!0,justifyContent:"space-between",className:y.content,ownerState:g,direction:s?u:"row",alignItems:s?"flex-start":"flex-end",children:[i,_.jsx(Ade,{onClick:d,className:y.penIconButton,ownerState:g,color:"inherit","aria-label":a?a(l,p):m.inputModeToggleButtonAriaLabel(l,p),children:l?Dde(p):_.jsx(fde,{color:"inherit"})})]})]})}),$de=["onAccept","onClear","onCancel","onSetToday","actions"],wk=e=>{const{onAccept:t,onClear:n,onCancel:r,onSetToday:i,actions:o}=e,a=de(e,$de),s=P.useContext(Mv),l=Qu(),u=typeof o=="function"?o(s):o;if(u==null||u.length===0)return null;const d=u==null?void 0:u.map(h=>{switch(h){case"clear":return _.jsx(Ko,{onClick:n,children:l.clearButtonLabel},h);case"cancel":return _.jsx(Ko,{onClick:r,children:l.cancelButtonLabel},h);case"accept":return _.jsx(Ko,{onClick:t,children:l.okButtonLabel},h);case"today":return _.jsx(Ko,{onClick:i,children:l.todayButtonLabel},h);default:return null}});return _.jsx(PL,M({},a,{children:d}))};function Lde(e){return Be("MuiPickersPopper",e)}Le("MuiPickersPopper",["root","paper"]);const kde=["onClick","onTouchStart"],Nde=e=>{const{classes:t}=e;return Ue({root:["root"],paper:["paper"]},Lde,t)},Fde=H(aX,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),jde=H(Ya,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>M({transformOrigin:"top center",outline:0},e.placement==="top"&&{transformOrigin:"bottom center"}));function Bde(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Ude(e,t){const n=P.useRef(!1),r=P.useRef(!1),i=P.useRef(null),o=P.useRef(!1);P.useEffect(()=>{if(!e)return;function l(){o.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),o.current=!1}},[e]);const a=qo(l=>{if(!o.current)return;const u=r.current;r.current=!1;const d=qn(i.current);if(!i.current||"clientX"in l&&Bde(l,d))return;if(n.current){n.current=!1;return}let h;l.composedPath?h=l.composedPath().indexOf(i.current)>-1:h=!d.documentElement.contains(l.target)||i.current.contains(l.target),!h&&!u&&t(l)}),s=()=>{r.current=!0};return P.useEffect(()=>{if(e){const l=qn(i.current),u=()=>{n.current=!0};return l.addEventListener("touchstart",a),l.addEventListener("touchmove",u),()=>{l.removeEventListener("touchstart",a),l.removeEventListener("touchmove",u)}}},[e,a]),P.useEffect(()=>{if(e){const l=qn(i.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),r.current=!1}}},[e,a]),[i,s,s]}function Wde(e){var t;const n=Or({props:e,name:"MuiPickersPopper"}),{anchorEl:r,children:i,containerRef:o=null,onBlur:a,onClose:s,onClear:l,onAccept:u,onCancel:d,onSetToday:h,open:p,PopperProps:g,role:m,TransitionComponent:y=l_,TrapFocusProps:b,PaperProps:x={},components:S,componentsProps:w}=n;P.useEffect(()=>{function J(oe){p&&(oe.key==="Escape"||oe.key==="Esc")&&s()}return document.addEventListener("keydown",J),()=>{document.removeEventListener("keydown",J)}},[s,p]);const C=P.useRef(null);P.useEffect(()=>{m!=="tooltip"&&(p?C.current=Gg(document):C.current&&C.current instanceof HTMLElement&&setTimeout(()=>{C.current instanceof HTMLElement&&C.current.focus()}))},[p,m]);const[R,O,T]=Ude(p,a??s),A=P.useRef(null),L=vn(A,o),I=vn(L,R),N=n,B=Nde(N),{onClick:U,onTouchStart:z}=x,F=de(x,kde),j=J=>{J.key==="Escape"&&(J.stopPropagation(),s())},K=(t=S==null?void 0:S.ActionBar)!=null?t:wk,V=(S==null?void 0:S.PaperContent)||P.Fragment;return _.jsx(Fde,M({transition:!0,role:m,open:p,anchorEl:r,onKeyDown:j,className:B.root},g,{children:({TransitionProps:J,placement:oe})=>_.jsx(TL,M({open:p,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:m==="tooltip",isEnabled:()=>!0},b,{children:_.jsx(y,M({},J,{children:_.jsx(jde,M({tabIndex:-1,elevation:8,ref:I,onClick:ce=>{O(ce),U&&U(ce)},onTouchStart:ce=>{T(ce),z&&z(ce)},ownerState:M({},N,{placement:oe}),className:B.paper},F,{children:_.jsxs(V,M({},w==null?void 0:w.paperContent,{children:[i,_.jsx(K,M({onAccept:u,onClear:l,onCancel:d,onSetToday:h,actions:[]},w==null?void 0:w.actionBar))]}))}))}))}))}))}const Hde=e=>{const[,t]=jz(l=>l+1,0),n=Rn(null),{replace:r,append:i}=e,o=r?r(e.format(e.value)):e.format(e.value),a=Rn(!1),s=l=>{const u=l.target.value;n.current=[u,l.target,u.length>o.length,a.current,o===e.format(u)],t()};return gw(()=>{if(n.current==null)return;let[l,u,d,h,p]=n.current;n.current=null;const g=h&&p,y=l.slice(u.selectionStart).search(e.accept||/\d/g),b=y!==-1?y:0,x=O=>(O.match(e.accept||/\d/g)||[]).join(""),S=x(l.substr(0,u.selectionStart)),w=O=>{let T=0,A=0;for(let L=0;L!==S.length;++L){let I=O.indexOf(S[L],T)+1,N=x(O).indexOf(S[L],A)+1;N-A>1&&(I=T,N=A),A=Math.max(N,A),T=Math.max(T,I)}return T};if(e.mask===!0&&d&&!p){let O=w(l);const T=x(l.substr(O))[0];O=l.indexOf(T,O),l=`${l.substr(0,O)}${l.substr(O+1)}`}let C=e.format(l);i!=null&&u.selectionStart===l.length&&!p&&(d?C=i(C):x(C.slice(-1))===""&&(C=C.slice(0,-1)));const R=r?r(C):C;return o===R?t():e.onChange(R),()=>{let O=w(C);if(e.mask!=null&&(d||h&&!g))for(;C[O]&&x(C[O])==="";)O+=1;u.selectionStart=u.selectionEnd=O+(g?1+b:0)}}),At(()=>{const l=d=>{d.code==="Delete"&&(a.current=!0)},u=d=>{d.code==="Delete"&&(a.current=!1)};return document.addEventListener("keydown",l),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",l),document.removeEventListener("keyup",u)}},[]),{value:n.current!=null?n.current[0]:o,onChange:s}},LR=(e,t,n)=>{const r=e.date(t);return t===null?"":e.isValid(r)?e.formatByString(r,n):""},Kg="_",_k="2019-11-21T22:30:00.000",Ck="2019-01-01T09:00:00.000";function zde(e,t,n,r){if(e)return e;const o=r.formatByString(r.date(Ck),t).replace(n,Kg),a=r.formatByString(r.date(_k),t).replace(n,"_");return o===a?o:""}function Vde(e,t,n,r){if(!e)return!1;const o=r.formatByString(r.date(Ck),t).replace(n,Kg),a=r.formatByString(r.date(_k),t).replace(n,"_"),s=a===o&&e===a;return!s&&r.lib,s}const Gde=(e,t)=>n=>{let r=0;return n.split("").map((i,o)=>{if(t.lastIndex=0,r>e.length-1)return"";const a=e[r],s=e[r+1],l=t.test(i)?i:"",u=a===Kg?l:a+l;return r+=u.length,o===n.length-1&&s&&s!==Kg?u?u+s:"":u}).join("")},kR=({acceptRegex:e=/[\d]/gi,disabled:t,disableMaskedInput:n,ignoreInvalidInputs:r,inputFormat:i,inputProps:o,label:a,mask:s,onChange:l,rawValue:u,readOnly:d,rifmFormatter:h,TextFieldProps:p,validationError:g})=>{const m=br(),y=m.getFormatHelperText(i),{shouldUseMaskedInput:b,maskToUse:x}=P.useMemo(()=>{if(n)return{shouldUseMaskedInput:!1,maskToUse:""};const z=zde(s,i,e,m);return{shouldUseMaskedInput:Vde(z,i,e,m),maskToUse:z}},[e,n,i,s,m]),S=P.useMemo(()=>b&&x?Gde(x,e):z=>z,[e,x,b]),w=u===null?null:m.date(u),[C,R]=P.useState(w),[O,T]=P.useState(LR(m,u,i)),A=P.useRef(),L=P.useRef(m.locale),I=P.useRef(i);P.useEffect(()=>{const z=u!==A.current,F=m.locale!==L.current,j=i!==I.current;if(A.current=u,L.current=m.locale,I.current=i,!z&&!F&&!j)return;const K=u===null?null:m.date(u),V=u===null||m.isValid(K);let J=C===null&&K===null;if(C!==null&&K!==null){const ce=m.isEqual(C,K);if(ce)J=!0;else{const le=Math.abs(m.getDiff(C,K));J=le===0?ce:le<1e3}}if(!F&&!j&&(!V||J))return;const oe=LR(m,u,i);R(K),T(oe)},[m,u,i,C]);const N=z=>{const F=z===""||z===s?"":z;T(F);const j=F===null?null:m.parse(F,i);r&&!m.isValid(j)||(R(j),l(j,F||void 0))},B=Hde({value:O,onChange:N,format:h||S});return M({label:a,disabled:t,error:g,inputProps:M({},b?B:{value:O,onChange:z=>{N(z.currentTarget.value)}},{disabled:t,placeholder:y,readOnly:d,type:b?"tel":"text"},o)},p)},qde=H("div",{name:"MuiCalendarOrClockPicker",slot:"MobileKeyboardInputView",overridesResolver:(e,t)=>t.mobileKeyboardInputView})({padding:"16px 24px"});H("div",{name:"MuiCalendarOrClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>M({display:"flex",flexDirection:"column"},e.isLandscape&&{flexDirection:"row"}));const Kde=({open:e,onOpen:t,onClose:n})=>{const r=P.useRef(typeof e=="boolean").current,[i,o]=P.useState(!1);P.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");o(e)}},[r,e]);const a=P.useCallback(s=>{r||o(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:i,setIsOpen:a}},Sk=(e,t)=>{const{onAccept:n,onChange:r,value:i,closeOnSelect:o}=e,a=br(),{isOpen:s,setIsOpen:l}=Kde(e),u=P.useMemo(()=>t.parseInput(a,i),[t,a,i]),[d,h]=P.useState(u),[p,g]=P.useState(()=>({committed:u,draft:u,resetFallback:u})),m=P.useCallback(O=>{g(T=>{switch(O.action){case"setAll":case"acceptAndClose":return{draft:O.value,committed:O.value,resetFallback:O.value};case"setCommitted":return M({},T,{draft:O.value,committed:O.value});case"setDraft":return M({},T,{draft:O.value});default:return T}}),(O.forceOnChangeCall||!O.skipOnChangeCall&&!t.areValuesEqual(a,p.committed,O.value))&&r(O.value),O.action==="acceptAndClose"&&(l(!1),n&&!t.areValuesEqual(a,p.resetFallback,O.value)&&n(O.value))},[n,r,l,p,a,t]);P.useEffect(()=>{a.isValid(u)&&h(u)},[a,u]),P.useEffect(()=>{s&&m({action:"setAll",value:u,skipOnChangeCall:!0})},[s]),t.areValuesEqual(a,p.committed,u)||m({action:"setCommitted",value:u,skipOnChangeCall:!0});const y=P.useMemo(()=>({open:s,onClear:()=>{m({value:t.emptyValue,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(a,i,t.emptyValue)})},onAccept:()=>{m({value:p.draft,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(a,i,u)})},onDismiss:()=>{m({value:p.committed,action:"acceptAndClose"})},onCancel:()=>{m({value:p.resetFallback,action:"acceptAndClose"})},onSetToday:()=>{m({value:t.getTodayValue(a),action:"acceptAndClose"})}}),[m,s,a,p,t,i,u]),[b,x]=P.useState(!1),S=P.useMemo(()=>({parsedValue:p.draft,isMobileKeyboardViewOpen:b,toggleMobileKeyboardView:()=>x(!b),onDateChange:(O,T,A="partial")=>{switch(A){case"shallow":return m({action:"setDraft",value:O,skipOnChangeCall:!0});case"partial":return m({action:"setDraft",value:O});case"finish":return m(o??T==="desktop"?{value:O,action:"acceptAndClose"}:{value:O,action:"setCommitted"});default:throw new Error("MUI: Invalid selectionState passed to `onDateChange`")}}}),[m,b,p.draft,o]),w=P.useCallback((O,T)=>{const A=t.valueReducer?t.valueReducer(a,d,O):O;r(A,T)},[r,t,d,a]),C=P.useMemo(()=>({onChange:w,open:s,rawValue:i,openPicker:()=>l(!0)}),[w,s,i,l]),R={pickerProps:S,inputProps:C,wrapperProps:y};return P.useDebugValue(R,()=>({MuiPickerState:{dateState:p,other:R}})),R},Yde=H(OL)({[`& .${_d.container}`]:{outline:0},[`& .${_d.paper}`]:{outline:0,minWidth:Bce}}),Xde=H(RL)({"&:first-of-type":{padding:0}}),Zde=e=>{var t;const{children:n,DialogProps:r={},onAccept:i,onClear:o,onDismiss:a,onCancel:s,onSetToday:l,open:u,components:d,componentsProps:h}=e,p=(t=d==null?void 0:d.ActionBar)!=null?t:wk;return _.jsxs(Yde,M({open:u,onClose:a},r,{children:[_.jsx(Xde,{children:n}),_.jsx(p,M({onAccept:i,onClear:o,onCancel:s,onSetToday:l,actions:["cancel","accept"]},h==null?void 0:h.actionBar))]}))},Qde=["children","DateInputProps","DialogProps","onAccept","onClear","onDismiss","onCancel","onSetToday","open","PureDateInputComponent","components","componentsProps"];function Jde(e){const{children:t,DateInputProps:n,DialogProps:r,onAccept:i,onClear:o,onDismiss:a,onCancel:s,onSetToday:l,open:u,PureDateInputComponent:d,components:h,componentsProps:p}=e,g=de(e,Qde);return _.jsxs(Mv.Provider,{value:"mobile",children:[_.jsx(d,M({components:h},g,n)),_.jsx(Zde,{DialogProps:r,onAccept:i,onClear:o,onDismiss:a,onCancel:s,onSetToday:l,open:u,components:h,componentsProps:p,children:t})]})}function efe(e){return Be("PrivatePickersToolbarText",e)}const NR=Le("PrivatePickersToolbarText",["root","selected"]),tfe=["className","selected","value"],nfe=e=>{const{classes:t,selected:n}=e;return Ue({root:["root",n&&"selected"]},efe,t)},rfe=H(Ye,{name:"PrivatePickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${NR.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:e.palette.text.secondary,[`&.${NR.selected}`]:{color:e.palette.text.primary}})),ife=P.forwardRef(function(t,n){const{className:r,value:i}=t,o=de(t,tfe),a=nfe(t);return _.jsx(rfe,M({ref:n,className:Ti(r,a.root),component:"span"},o,{children:i}))}),ofe=["align","className","selected","typographyClassName","value","variant"],afe=e=>{const{classes:t}=e;return Ue({root:["root"]},bk,t)},sfe=H(Ko,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),FR=P.forwardRef(function(t,n){const r=Or({props:t,name:"MuiPickersToolbarButton"}),{align:i,className:o,selected:a,typographyClassName:s,value:l,variant:u}=r,d=de(r,ofe),h=afe(r);return _.jsx(sfe,M({variant:"text",ref:n,className:Ti(o,h.root)},d,{children:_.jsx(ife,{align:i,className:s,variant:u,value:l,selected:a})}))}),Lf=()=>"MTY3NzEwNjgwMDAwMA==";function lfe(e){const{children:t,DateInputProps:n,KeyboardDateInputComponent:r,open:i,PopperProps:o,PaperProps:a,TransitionComponent:s,onClear:l,onDismiss:u,onCancel:d,onAccept:h,onSetToday:p,components:g,componentsProps:m}=e,y=P.useRef(null),b=P.useRef(null),x=()=>{ik(()=>{var w,C;(w=y.current)!=null&&w.contains(Gg(document))||(C=b.current)!=null&&C.contains(Gg(document))||u()})},S=vn(n.ref,y);return _.jsxs(Mv.Provider,{value:"desktop",children:[_.jsx(r,M({},n,{ref:S,onBlur:x})),_.jsx(Wde,{role:"tooltip",open:i,containerRef:b,anchorEl:y.current,TransitionComponent:s,PopperProps:o,PaperProps:a,onBlur:x,onClose:u,onClear:l,onCancel:d,onAccept:h,onSetToday:p,components:g,componentsProps:m,children:t})]})}const Tk=(e,t=[null,null])=>t.map(n=>n===null||!e.isValid(n)?null:e.startOfDay(e.date(n))),kf=(e,t)=>!!(t&&t[0]&&t[1]&&!e.isBefore(t[1],t[0])),Xp=(e,t,n)=>kf(e,n)&&e.isWithinRange(t,n),Ox=(e,t,n)=>kf(e,n)&&e.isSameDay(t,n[0]),Px=(e,t,n)=>kf(e,n)&&e.isSameDay(t,n[1]);function Ek({utils:e,range:t,newDate:n,currentlySelectingRangeEnd:r}){const[i,o]=t;return r==="start"?o&&e.isAfter(n,o)?{nextSelection:"end",newRange:[n,null]}:{nextSelection:"end",newRange:[n,o]}:i&&e.isBefore(n,i)?{nextSelection:"end",newRange:[n,null]}:{nextSelection:"start",newRange:[i,n]}}function ufe(e){if(!e.newDate)return[null,null];const[t,n]=e.range,{newRange:r}=Ek(e);if(!t||!n)return r;const[i,o]=r;return e.currentlySelectingRangeEnd==="end"?[n,o]:[i,t]}function cfe(e){return Be("MuiDateRangePickerToolbar",e)}Le("MuiDateRangePickerToolbar",["root","container"]);const dfe=e=>{const{classes:t}=e;return Ue({root:["root"],container:["container"]},cfe,t)},ffe=H(Ide,{name:"MuiDateRangePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({[`& .${xk.penIconButton}`]:{position:"relative",top:4}}),hfe=H("div",{name:"MuiDateRangePickerToolbar",slot:"Container",overridesResolver:(e,t)=>t.container})({display:"flex"}),pfe=P.forwardRef(function(t,n){const r=br(),i=Or({props:t,name:"MuiDateRangePickerToolbar"}),{currentlySelectingRangeEnd:o,parsedValue:[a,s],endText:l,isMobileKeyboardViewOpen:u,setCurrentlySelectingRangeEnd:d,startText:h,toggleMobileKeyboardView:p,toolbarFormat:g,toolbarTitle:m}=i,y=Qu(),b=m??y.dateRangePickerDefaultToolbarTitle,x=a?r.formatByString(a,g||r.formats.shortDate):h,S=s?r.formatByString(s,g||r.formats.shortDate):l,w=i,C=dfe(w);return _.jsx(ffe,{toolbarTitle:b,isMobileKeyboardViewOpen:u,toggleMobileKeyboardView:p,isLandscape:!1,className:C.root,ownerState:w,ref:n,children:_.jsxs(hfe,{className:C.container,children:[_.jsx(FR,{variant:a!==null?"h5":"h6",value:x,selected:o==="start",onClick:()=>d("start")}),_.jsxs(Ye,{variant:"h5",children:[" ","–"," "]}),_.jsx(FR,{variant:s!==null?"h5":"h6",value:S,selected:o==="end",onClick:()=>d("end")})]})})}),Ok=()=>{};function Pk(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Pk(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function B_(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Pk(e))&&(r&&(r+=" "),r+=t);return r}function gfe(e){return Be("MuiDateRangePickerDay",e)}const Vi=Le("MuiDateRangePickerDay",["root","rangeIntervalDayHighlight","rangeIntervalDayHighlightStart","rangeIntervalDayHighlightEnd","rangeIntervalPreview","rangeIntervalDayPreview","rangeIntervalDayPreviewStart","rangeIntervalDayPreviewEnd","day","dayOutsideRangeInterval","dayInsideRangeInterval","notSelectedDate"]),mfe=["className","day","outsideCurrentMonth","isEndOfHighlighting","isEndOfPreviewing","isHighlighting","isPreviewing","isStartOfHighlighting","isStartOfPreviewing","selected"],vfe=Lf(),yfe=e=>{const{isHighlighting:t,outsideCurrentMonth:n,isStartOfHighlighting:r,isStartOfMonth:i,isEndOfHighlighting:o,isEndOfMonth:a,isPreviewing:s,isStartOfPreviewing:l,isEndOfPreviewing:u,selected:d,classes:h}=e;return Ue({root:["root",t&&!n&&"rangeIntervalDayHighlight",(r||i)&&"rangeIntervalDayHighlightStart",(o||a)&&"rangeIntervalDayHighlightEnd"],rangeIntervalPreview:["rangeIntervalPreview",s&&!n&&"rangeIntervalDayPreview",(l||i)&&"rangeIntervalDayPreviewStart",(u||a)&&"rangeIntervalDayPreviewEnd"],day:["day",!d&&"notSelectedDate",!t&&"dayOutsideRangeInterval",!d&&t&&"dayInsideRangeInterval"]},gfe,h)},Zp={borderTopRightRadius:"50%",borderBottomRightRadius:"50%"},Qp={borderTopLeftRadius:"50%",borderBottomLeftRadius:"50%"},Rk=H("div",{name:"MuiDateRangePickerDay",slot:"Root",overridesResolver:(e,t)=>[{[`&.${Vi.rangeIntervalDayHighlight}`]:t.rangeIntervalDayHighlight},{[`&.${Vi.rangeIntervalDayHighlightStart}`]:t.rangeIntervalDayHighlightStart},{[`&.${Vi.rangeIntervalDayHighlightEnd}`]:t.rangeIntervalDayHighlightEnd},t.root]})(({theme:e,ownerState:t})=>M({[`&:first-of-type .${Vi.rangeIntervalDayPreview}`]:M({},Qp,{borderLeftColor:e.palette.divider}),[`&:last-of-type .${Vi.rangeIntervalDayPreview}`]:M({},Zp,{borderRightColor:e.palette.divider})},t.isHighlighting&&!t.outsideCurrentMonth&&{borderRadius:0,color:e.palette.primary.contrastText,backgroundColor:zd(e.palette.primary.light,.6),"&:first-of-type":Qp,"&:last-of-type":Zp},(t.isStartOfHighlighting||t.isStartOfMonth)&&M({},Qp,{paddingLeft:0,marginLeft:Au/2}),(t.isEndOfHighlighting||t.isEndOfMonth)&&M({},Zp,{paddingRight:0,marginRight:Au/2})));Rk.propTypes={ownerState:m$.object.isRequired};const Mk=H("div",{name:"MuiDateRangePickerDay",slot:"RangeIntervalPreview",overridesResolver:(e,t)=>[{[`&.${Vi.rangeIntervalDayPreview}`]:t.rangeIntervalDayPreview},{[`&.${Vi.rangeIntervalDayPreviewStart}`]:t.rangeIntervalDayPreviewStart},{[`&.${Vi.rangeIntervalDayPreviewEnd}`]:t.rangeIntervalDayPreviewEnd},t.rangeIntervalPreview]})(({theme:e,ownerState:t})=>M({border:"2px solid transparent"},t.isPreviewing&&!t.outsideCurrentMonth&&M({borderRadius:0,border:`2px dashed ${e.palette.divider}`,borderLeftColor:"transparent",borderRightColor:"transparent"},(t.isStartOfPreviewing||t.isStartOfMonth)&&M({borderLeftColor:e.palette.divider},Qp),(t.isEndOfPreviewing||t.isEndOfMonth)&&M({borderRightColor:e.palette.divider},Zp))));Mk.propTypes={ownerState:m$.object.isRequired};const bfe=H(fk,{name:"MuiDateRangePickerDay",slot:"Day",overridesResolver:(e,t)=>[{[`&.${Vi.dayInsideRangeInterval}`]:t.dayInsideRangeInterval},{[`&.${Vi.dayOutsideRangeInterval}`]:t.dayOutsideRangeInterval},{[`&.${Vi.notSelectedDate}`]:t.notSelectedDate},t.day]})(({theme:e,ownerState:t})=>M({transform:"scale(1.1)","& > *":{transform:"scale(0.9)"}},!t.selected&&{backgroundColor:"transparent"},!t.isHighlighting&&{"&:hover":{border:`1px solid ${e.palette.grey[500]}`}},!t.selected&&t.isHighlighting&&{color:e.palette.getContrastText(zd(e.palette.primary.light,.6))})),xfe=P.forwardRef(function(t,n){const r=Or({props:t,name:"MuiDateRangePickerDay"}),{className:i,day:o,outsideCurrentMonth:a,isHighlighting:s,isPreviewing:l,selected:u=!1}=r,d=de(r,mfe);If("x-date-pickers-pro",vfe);const h=br(),p=h.isSameDay(o,h.endOfMonth(o)),g=h.isSameDay(o,h.startOfMonth(o)),m=M({},r,{selected:u,isStartOfMonth:g,isEndOfMonth:p}),y=yfe(m);return _.jsx(Rk,{className:B_(y.root,i),ownerState:m,children:_.jsx(Mk,{className:y.rangeIntervalPreview,ownerState:m,children:_.jsx(bfe,M({},d,{ref:n,disableMargin:!0,day:o,selected:u,outsideCurrentMonth:a,className:y.day,ownerState:m}))})})}),wfe=(e,t)=>e.isHighlighting===t.isHighlighting&&e.isEndOfHighlighting===t.isEndOfHighlighting&&e.isStartOfHighlighting===t.isStartOfHighlighting&&e.isPreviewing===t.isPreviewing&&e.isEndOfPreviewing===t.isEndOfPreviewing&&e.isStartOfPreviewing===t.isStartOfPreviewing&&dk(e,t),Ak=P.memo(xfe,wfe),_fe=["changeMonth","components","componentsProps","parsedValue","leftArrowButtonText","maxDate","minDate","onSelectedDaysChange","renderDay","rightArrowButtonText","disabled","readOnly","classes"],Cfe=["day"];function Sfe(e){const{changeMonth:t,components:n,componentsProps:r,parsedValue:i,leftArrowButtonText:o,maxDate:a,minDate:s,onSelectedDaysChange:l,renderDay:u=(O,T)=>_.jsx(Ak,M({},T)),rightArrowButtonText:d,disabled:h,readOnly:p}=e,g=de(e,_fe),m=br(),y=F_(),b=s??y.minDate,x=a??y.maxDate,[S,w]=i,C=h&&S||b,R=h&&w||x;return _.jsxs(P.Fragment,{children:[_.jsx(Ede,M({components:n,componentsProps:r,leftArrowButtonText:o,maxDate:R,minDate:C,onMonthChange:t,openView:"day",rightArrowButtonText:d,views:Cfe,disabled:h},g)),_.jsx(gk,M({},g,{minDate:b,maxDate:x,disabled:h,readOnly:p,selectedDays:i,onSelectedDaysChange:l,onFocusedDayChange:Ok,renderDay:(O,T,A)=>u(O,M({isPreviewing:!1,isStartOfPreviewing:!1,isEndOfPreviewing:!1,isHighlighting:Xp(m,O,i),isStartOfHighlighting:Ox(m,O,i),isEndOfHighlighting:Px(m,O,i)},A))}))]})}function Tfe(e){return Be("MuiDateRangePickerInput",e)}Le("MuiDateRangePickerInput",["root"]);const Efe=["currentlySelectingRangeEnd","disableOpenPicker","endText","onBlur","onChange","open","openPicker","rawValue","rawValue","readOnly","renderInput","setCurrentlySelectingRangeEnd","startText","TextFieldProps","validationError","className","mobile"],Ofe=e=>{const{classes:t}=e;return Ue({root:["root"]},Tfe,t)},Pfe=H("div",{name:"MuiDateRangePickerInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",alignItems:"baseline",[e.breakpoints.down("xs")]:{flexDirection:"column",alignItems:"center"}})),U_=P.forwardRef(function(t,n){const r=Or({props:t,name:"MuiDateRangePickerInput"}),{currentlySelectingRangeEnd:i,disableOpenPicker:o,endText:a,onBlur:s,onChange:l,open:u,openPicker:d,rawValue:[h,p],readOnly:g,renderInput:m,setCurrentlySelectingRangeEnd:y,startText:b,TextFieldProps:x,validationError:[S,w],className:C,mobile:R}=r,O=de(r,Efe),T=br(),A=P.useRef(null),L=P.useRef(null),I=Ofe(r);P.useEffect(()=>{if(u){if(i==="start"){var oe;(oe=A.current)==null||oe.focus()}else if(i==="end"){var ce;(ce=L.current)==null||ce.focus()}}},[i,u]);const N=P.useCallback((...oe)=>ik(()=>l(...oe)),[l]),B=(oe,ce)=>{N([oe,T.date(p)],ce)},U=(oe,ce)=>{N([T.date(h),oe],ce)},z=oe=>{oe.stopPropagation(),y&&y("start"),!g&&!o&&d()},F=oe=>{oe.stopPropagation(),y&&y("end"),!g&&!o&&d()},j=()=>{u&&y&&y("end")},K=()=>{u&&y&&y("start")},V=kR(M({},O,{readOnly:g,rawValue:h,onChange:B,label:b,validationError:S!==null,TextFieldProps:M({},x,{ref:A,focused:u?i==="start":void 0},!g&&!O.disabled&&{onClick:z}),inputProps:{onClick:z,onKeyDown:DR(z),onFocus:K,readOnly:R}})),J=kR(M({},O,{readOnly:g,label:a,rawValue:p,onChange:U,validationError:w!==null,TextFieldProps:M({},x,{ref:L,focused:u?i==="end":void 0},!g&&!O.disabled&&{onClick:F}),inputProps:{onClick:F,onKeyDown:DR(F),onFocus:j,readOnly:R}}));return _.jsx(Pfe,{onBlur:s,ref:n,className:B_(I.root,C),children:m(V,J)})});function Rfe(e){return Be("MuiDateRangePickerViewDesktop",e)}Le("MuiDateRangePickerViewDesktop",["root","container"]);const Mfe=["calendars","changeMonth","components","componentsProps","currentlySelectingRangeEnd","currentMonth","parsedValue","disableFuture","disablePast","leftArrowButtonText","maxDate","minDate","onSelectedDaysChange","renderDay","rightArrowButtonText","className","classes"],Afe=e=>{const{classes:t}=e;return Ue({root:["root"],container:["container"]},Rfe,t)},Dfe=H("div",{name:"MuiDateRangePickerViewDesktop",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row"}),Ife=H("div",{name:"MuiDateRangePickerViewDesktop",slot:"Container",overridesResolver:(e,t)=>t.container})(({theme:e})=>({"&:not(:last-of-type)":{borderRight:`2px solid ${e.palette.divider}`}})),$fe=40,Lfe=($fe+Au*2)*6,kfe=H(gk)({minWidth:312,minHeight:Lfe}),Nfe=H(mk)({padding:"16px 16px 8px 16px",display:"flex",alignItems:"center",justifyContent:"space-between"});function Ffe(e){switch(e){case 1:return[0];case 2:return[0,0];case 3:return[0,0,0];default:return new Array(e).fill(0)}}const jfe=j_();function Bfe(e){const t=Or({props:e,name:"MuiDateRangePickerViewDesktop"}),{calendars:n,changeMonth:r,components:i,componentsProps:o,currentlySelectingRangeEnd:a,currentMonth:s,parsedValue:l,disableFuture:u,disablePast:d,leftArrowButtonText:h,maxDate:p,minDate:g,onSelectedDaysChange:m,renderDay:y=(ce,le)=>_.jsx(Ak,M({},le)),rightArrowButtonText:b,className:x}=t,S=de(t,Mfe);jfe({leftArrowButtonText:h,rightArrowButtonText:b});const w=Qu(),C=h??w.previousMonth,R=b??w.nextMonth,O=br(),T=Afe(t),A=F_(),L=g??A.minDate,I=p??A.maxDate,[N,B]=P.useState(null),U=vk(s,{disableFuture:u,maxDate:I}),z=yk(s,{disablePast:d,minDate:L}),F=ufe({utils:O,range:l,newDate:N,currentlySelectingRangeEnd:a}),j=P.useCallback(ce=>{B(null),m(ce)},[m]),K=ce=>{Xp(O,ce,l)?B(null):B(ce)},V=P.useMemo(()=>({onMouseLeave:()=>B(null)}),[]),J=P.useCallback(()=>{r(O.getNextMonth(s))},[r,s,O]),oe=P.useCallback(()=>{r(O.getPreviousMonth(s))},[r,s,O]);return _.jsx(Dfe,{className:B_(x,T.root),children:Ffe(n).map((ce,le)=>{const Me=O.setMonth(s,O.getMonth(s)+le);return _.jsxs(Ife,{className:T.container,children:[_.jsx(Nfe,{onLeftClick:oe,onRightClick:J,isLeftHidden:le!==0,isRightHidden:le!==n-1,isLeftDisabled:z,isRightDisabled:U,leftArrowButtonText:C,components:i,componentsProps:o,rightArrowButtonText:R,children:O.format(Me,"monthAndYear")}),Xo(kfe,M({},S,{minDate:L,maxDate:I,disablePast:d,disableFuture:u,key:le,selectedDays:l,onFocusedDayChange:Ok,onSelectedDaysChange:j,currentMonth:Me,TransitionProps:V,renderDay:(ve,ye,Ce)=>y(ve,M({isPreviewing:Xp(O,ve,F),isStartOfPreviewing:Ox(O,ve,F),isEndOfPreviewing:Px(O,ve,F),isHighlighting:Xp(O,ve,l),isStartOfHighlighting:Ox(O,ve,l),isEndOfHighlighting:Px(O,ve,l),onMouseEnter:()=>K(ve)},Ce))}))]},le)})})}const Ufe=["calendars","className","currentlySelectingRangeEnd","parsedValue","DateInputProps","defaultCalendarMonth","disableAutoMonthSwitching","disableFuture","disableHighlightToday","disablePast","endText","isMobileKeyboardViewOpen","maxDate","minDate","onDateChange","onMonthChange","open","reduceAnimations","setCurrentlySelectingRangeEnd","shouldDisableDate","showToolbar","startText","toggleMobileKeyboardView","toolbarFormat","toolbarTitle"],Wfe=Lf();function Hfe(e){const{calendars:t,className:n,currentlySelectingRangeEnd:r,parsedValue:i,DateInputProps:o,defaultCalendarMonth:a,disableAutoMonthSwitching:s=!1,disableFuture:l,disableHighlightToday:u,disablePast:d,endText:h,isMobileKeyboardViewOpen:p,maxDate:g,minDate:m,onDateChange:y,onMonthChange:b,open:x,reduceAnimations:S=Ode,setCurrentlySelectingRangeEnd:w,shouldDisableDate:C,showToolbar:R,startText:O,toggleMobileKeyboardView:T,toolbarFormat:A,toolbarTitle:L}=e,I=de(e,Ufe),N=br(),B=P.useContext(Mv),U=C&&(ye=>C==null?void 0:C(ye,r)),[z,F]=i,{changeMonth:j,calendarState:K,isDateDisabled:V,onMonthSwitchingAnimationEnd:J,changeFocusedDay:oe}=$ce({date:z||F,defaultCalendarMonth:a,disableFuture:l,disablePast:d,disableSwitchToMonthOnDayFocus:!0,maxDate:g,minDate:m,onMonthChange:b,reduceAnimations:S,shouldDisableDate:U}),ce=R??B!=="desktop",le=ye=>{if(!ye||!N.isValid(ye)||V(ye))return;const Ce=r==="start"?z:F;if(Ce===null)return;const we=B==="mobile"?0:t-1,fe=N.getMonth(K.currentMonth),ue=N.getMonth(ye);if(!N.isSameYear(K.currentMonth,ye)||ue<fe||ue>fe+we){const Ne=r==="start"?Ce:N.addMonths(Ce,-we);j(Ne)}};P.useEffect(()=>{s||!x||le(r==="start"?z:F)},[r,i]);const Me=P.useCallback(ye=>{const{nextSelection:Ce,newRange:we}=Ek({newDate:ye,utils:N,range:i,currentlySelectingRangeEnd:r});w(Ce);const fe=r==="end"&&kf(N,we);y(we,B,fe?"finish":"partial")},[r,i,y,w,N,B]),ve=()=>{const ye=M({parsedValue:i,changeFocusedDay:oe,onSelectedDaysChange:Me,reduceAnimations:S,disableHighlightToday:u,onMonthSwitchingAnimationEnd:J,changeMonth:j,currentlySelectingRangeEnd:r,disableFuture:l,disablePast:d,minDate:m,maxDate:g,shouldDisableDate:U},K,I);switch(B){case"desktop":return _.jsx(Bfe,M({calendars:t},ye));default:return _.jsx(Sfe,M({},ye))}};return _.jsxs("div",{className:n,children:[_.jsx(Oce,{packageName:"x-date-pickers-pro",releaseInfo:Wfe}),ce&&_.jsx(pfe,{parsedValue:i,isMobileKeyboardViewOpen:p,toggleMobileKeyboardView:T,currentlySelectingRangeEnd:r,setCurrentlySelectingRangeEnd:w,startText:O,endText:h,toolbarTitle:L,toolbarFormat:A}),p?_.jsx(qde,{children:_.jsx(U_,M({disableOpenPicker:!0,ignoreInvalidInputs:!0},o))}):ve()]})}const Dk=Hfe,zfe=["shouldDisableDate"],Vfe=({props:e,value:t,adapter:n})=>{const[r,i]=t;if(r===null||i===null)return[null,null];const{shouldDisableDate:o}=e,a=de(e,zfe),s=[Tx({adapter:n,value:r,props:M({},a,{shouldDisableDate:l=>!!(o!=null&&o(l,"start"))})}),Tx({adapter:n,value:i,props:M({},a,{shouldDisableDate:l=>!!(o!=null&&o(l,"end"))})})];return s[0]||s[1]?s:kf(n.utils,Tk(n.utils,t))?[null,null]:["invalidRange","invalidRange"]},Gfe=(e,t)=>t!==null&&e[1]===t[1]&&e[0]===t[0],Ik=e=>Dce(e,Vfe,Gfe),qfe=j_();function $k(e,t){var n,r;const i=br(),o=F_(),a=Or({props:e,name:t});qfe({startText:a.startText,endText:a.endText});const s=Qu(),l=(n=a.startText)!=null?n:s.start,u=(r=a.endText)!=null?r:s.end;return M({disableFuture:!1,disablePast:!1,calendars:2,inputFormat:i.formats.keyboardDate},a,{endText:u,startText:l,minDate:qg(i,a.minDate,o.minDate),maxDate:qg(i,a.maxDate,o.maxDate)})}const Lk={emptyValue:[null,null],getTodayValue:e=>[e.date(),e.date()],parseInput:Tk,areValuesEqual:(e,t,n)=>e.isEqual(t[0],n[0])&&e.isEqual(t[1],n[1])},Kfe=["value","onChange","PopperProps","PaperProps","TransitionComponent","components","componentsProps"],Yfe=Lf(),Xfe=U_,Zfe=P.forwardRef(function(t,n){If("x-date-pickers-pro",Yfe);const r=$k(t,"MuiDesktopDateRangePicker"),[i,o]=P.useState("start"),a=Ik(r),{pickerProps:s,inputProps:l,wrapperProps:u}=Sk(r,Lk),{PopperProps:d,PaperProps:h,TransitionComponent:p,components:g,componentsProps:m}=r,y=de(r,Kfe),b=M({},l,y,{components:g,componentsProps:m,currentlySelectingRangeEnd:i,setCurrentlySelectingRangeEnd:o,validationError:a,ref:n});return _.jsx(lfe,M({},u,{DateInputProps:b,KeyboardDateInputComponent:Xfe,PopperProps:d,PaperProps:h,TransitionComponent:p,components:g,componentsProps:m,children:_.jsx(Dk,M({open:u.open,DateInputProps:b,currentlySelectingRangeEnd:i,setCurrentlySelectingRangeEnd:o},s,{components:g,componentsProps:m},y))}))}),Qfe=["value","onChange","components","componentsProps"],Jfe=Lf(),ehe=U_,the=P.forwardRef(function(t,n){If("x-date-pickers-pro",Jfe);const r=$k(t,"MuiMobileDateRangePicker"),{value:i,onChange:o,components:a,componentsProps:s}=r,l=de(r,Qfe),[u,d]=P.useState("start"),h=M({},l,{value:i,onChange:o}),{pickerProps:p,inputProps:g,wrapperProps:m}=Sk(h,Lk),y=Ik(r),b=M({},g,l,{components:a,componentsProps:s,currentlySelectingRangeEnd:u,setCurrentlySelectingRangeEnd:d,validationError:y,ref:n,mobile:!0});return _.jsx(Jde,M({},l,m,{DateInputProps:b,PureDateInputComponent:ehe,components:a,componentsProps:s,children:_.jsx(Dk,M({open:m.open,DateInputProps:b,currentlySelectingRangeEnd:u,setCurrentlySelectingRangeEnd:d},p,{components:a,componentsProps:s},l))}))}),nhe=["desktopModeMediaQuery","DialogProps","PopperProps","PaperProps","TransitionComponent"],rhe=Lf(),ihe=P.forwardRef(function(t,n){const r=Or({props:t,name:"MuiDateRangePicker"});If("x-date-pickers-pro",rhe);const{desktopModeMediaQuery:i="@media (pointer: fine)",DialogProps:o,PopperProps:a,PaperProps:s,TransitionComponent:l}=r,u=de(r,nhe);return Ha(i,{defaultMatches:!0})?_.jsx(Zfe,M({ref:n,PopperProps:a,PaperProps:s,TransitionComponent:l},u)):_.jsx(the,M({ref:n,DialogProps:o},u))}),W_=()=>{const e=Mce,t=Zu;return{localeText:e.components.MuiLocalizationProvider.defaultProps.localeText,adapterLocale:t}},ohe=cf({activeAccount:null,email:"",handleCloseWelcomeVideo:()=>{},internalDomains:[],isError:!1,ready:!1,setActiveAccount:()=>{},setShowReleaseDialog:()=>{},showReleaseDialog:!1,showWelcomeVideo:!1,superUser:!1,userInfo:{},userPreferences:null}),ahe=()=>ia(ohe),Ju=()=>{const e=or(),t=Ha(e.breakpoints.down("md")),n=Ha(e.breakpoints.between("sm","lg"));return{isMobile:t,isTablet:n}};var Jp=(e=>(e.Hour12="12-hour",e.Hour24="24-hour",e))(Jp||{}),Yg=(e=>(e.MMddyyyy="MM/dd/yyyy",e.ddMMyyyy="dd/MM/yyyy",e.yyyyMMdd="yyyy/MM/dd",e))(Yg||{}),dd=(e=>(e.Hour12="h:mm a",e.Hour24="HH:mm",e))(dd||{});const she="MM/dd/yyyy",Xg=(e,t,n="-")=>!e||e===""||e==="-"?n:(typeof e=="number"&&(e=che(e)),uhe(e,t||she));function jR(e,t,n){return e.includes(n)?n:t}const H_=()=>{const{userPreferences:e}=ahe(),t=Yg.MMddyyyy,n=Jp.Hour12,r=Intl.DateTimeFormat().resolvedOptions().timeZone,i=Gn(()=>({dateFormat:jR(Object.values(Yg),t,e==null?void 0:e.dateFormat),timeFormat:jR(Object.values(Jp),n,e==null?void 0:e.timeFormat),timeZone:(e==null?void 0:e.timeZone)||r}),[t,n,r,e==null?void 0:e.dateFormat,e==null?void 0:e.timeFormat,e==null?void 0:e.timeZone]),o=Gn(()=>i.timeFormat===Jp.Hour12,[i.timeFormat]),a=Mt(u=>{let d=o?"hh:mm aa":"HH:mm";return u&&(d=o?"hh:mm:ss aa":"HH:mm:ss"),d},[o]),s=Mt((u,d,h,p)=>{let g=i.dateFormat;return d&&(g=`${g} ${a(h)}`),Xg(u,g,p)},[i.dateFormat,a]),l=Mt((u,d,h)=>{const p=a(d);return Xg(u,p,h)},[a]);return{...i,defaultDateFormat:t,defaultTimeFormat:n,defaultTimeZone:r,isTime12Hour:o,formatDateTime:s,formatTime:l,getTimeFormatString:a}};var Ma=(e=>(e.DEVICE_NAME="deviceName",e.FUNCTION_VALUE="functionValue",e.THRESHOLD="threshold",e))(Ma||{}),kk=(e=>(e.ASC="asc",e.DESC="desc",e))(kk||{});const Av=()=>{const[e,t]=Nn({preferredDateFormat:Yg.MMddyyyy,preferredTimeFormat:dd.Hour24}),n=()=>{const l=localStorage.getItem("date-format");if(l)try{const u=JSON.parse(l);u&&typeof u=="object"&&t(u)}catch(u){console.error("Error parsing date-format from local storage:",u)}};At(()=>{n();const l=()=>{n()};return window.addEventListener("dateFormatChanged",l),()=>{window.removeEventListener("dateFormatChanged",l)}},[]);const r=Gn(()=>e.preferredTimeFormat===dd.Hour12,[e.preferredTimeFormat]),i=Mt(l=>{let u=r?dd.Hour12:dd.Hour24;return l&&(u=r?"hh:mm:ss a":"HH:mm:ss"),u},[r]),o=Gn(()=>`${e.preferredDateFormat} ${e.preferredTimeFormat}`,[e]),a=Mt((l,u,d,h)=>{let p=e.preferredDateFormat;return u&&(p=`${p} ${i(d)}`),Xg(l,p,h)},[e.preferredDateFormat,i]),s=Mt((l,u,d)=>{const h=i(u);return Xg(l,h,d)},[i]);return{dateTimeFormatPreferences:e,dateTimeFormatUserPreferenceString:o,formatDateTime:a,formatTime:s,getTimeFormatString:i}},lhe=e=>{if(e instanceof Date)return e;const t=e.replace(/-/g,"/").replace("T"," "),n=Ai(e);return Rf(n)?n:N_(t,"dd/MMM/yy HH:mm:ss",new Date)},uhe=(e,t)=>Df(lhe(e),t),che=e=>new Date(e*1e3);var Nk=(e=>(e.ACTIVE_ACCOUNT="activeAccount",e.X_AUTH="user-authentication",e))(Nk||{});const BR="application/json",c0={Accept:"Accept",Authorization:"Authorization",ContentType:"Content-Type"},dhe=e=>e.replace(/([^:]\/)\/+/g,"$1"),Qi=({pathname:e,searchParams:t})=>{const{globalApiUrl:n}=yse(),r=new URL(n);return r.pathname+=e,r.href=dhe(r.href),t&&Object.entries(t).forEach(([i,o])=>{!P2(o)&&o!==""&&(Array.isArray(o)?o.forEach(a=>r.searchParams.append(i,String(a))):r.searchParams.append(i,String(o)))}),r},z_=()=>{const e=new Headers,t=ghe();return e.set(c0.Authorization,`Bearer ${t}`),e.set(c0.Accept,BR),e.set(c0.ContentType,BR),e},Fk=async(e,t)=>{const n=e.toString(),r=await fetch(n,{mode:"cors",...t});return await bse(r),r},Dv=async(e,t,n)=>{const r=await Fk(e,t);if(n)return r;try{return await r.json()}catch{return r.ok||console.error("The response is not valid JSON"),""}},fhe=(e,t)=>{const n=z_();return Dv(e,{method:"GET",headers:n},t)},hhe=(e,t,n)=>{const r=z_();return Dv(e,{method:"POST",headers:r,body:n?t:JSON.stringify(t)})},phe=(e,t)=>{const n=z_();return Dv(e,{method:"PUT",headers:n,body:JSON.stringify(t)})};function ghe(){const e=JSON.parse(localStorage.getItem(Nk.X_AUTH)||"{}");if(!e.access_token){const t="cannot read x-auth token from local storage";throw console.error(t),new Error(t)}return e.access_token}const Ji={baseFetch:Fk,get:fhe,handleFetch:Dv,post:hhe,put:phe},mhe=async({alertId:e,...t})=>{const n=Qi({pathname:`/dcim-custom-alerts/${e}/threshold`});return await Ji.put(n,t)},vhe=e=>yw(zr.EDIT_NOTIFICATION,mhe,e),yhe=async e=>{const t=Qi({pathname:"/dcim-custom-alerts"});return await Ji.post(t,e)},bhe=e=>yw(zr.CREATE_NOTIFICATION,yhe,e),xhe=async({alertId:e,...t})=>{const n=Qi({pathname:`/dcim-custom-alerts/${e}/preference`});return await Ji.put(n,t)},whe=e=>yw(zr.EDIT_NOTIFICATION,xhe,e),_he=e=>{const{leasedSpaceName:t,sort:n,order:r}=e,i=Object.assign({},Un.fromPairs(Un.entries(e).filter(([s,l])=>!!l)));delete i.leasedSpaceName,i.sort=n?[n,r==null?void 0:r.toUpperCase()].join(","):void 0;const o=btoa(t),a=Qi({pathname:`dcim-devices/customer-known-name-space/${o}/alerts`,searchParams:i});return Ji.get(a)},Zg=(e,t)=>aa([zr.DCIM_ALERTS,e],()=>_he(e),{...t,refetchOnWindowFocus:!1}),Qg=e=>{let t;if(e instanceof Array)return e.map(n=>(typeof n=="object"&&(n=Qg(n)),n));t={};for(const n in e)if(e.hasOwnProperty(n)){const r=Un.camelCase(n);let i=e[n];(i instanceof Array||i!==null&&i.constructor===Object)&&(i=Qg(i)),t[r]=i}return t},Che=1,jk=1e3*Che,Bk=60*jk,She=(e=new Date)=>{const t=new Date(e);return t.setSeconds(0),t.setMilliseconds(0),t},The=async({leasedSpaceName:e,...t})=>{const n=btoa(e),r=Qi({pathname:`dcim-devices/customer-known-name-space/${n}/chart-data`,searchParams:t}),i=await Ji.get(r);return Qg(i)},Uk=(e,t={})=>{const n=Bk*15,r={cacheTime:n,refetchInterval:0,refetchOnMount:!1,retry:!1,staleTime:n,...t};return aa([zr.DCIM_CHART_DATA,e],()=>The(e),r)},Ehe=async e=>{const t=btoa(e),n=Qi({pathname:`/dcim-devices/customer-known-name-space/${t}/chart-metadata`}),r=await Ji.get(n);return Qg(r)},Wk=(e,t={})=>{const r={cacheTime:Bk*15,refetchInterval:0,...t};return aa([zr.DCIM_CHART_METADATA],()=>Ehe(e),r)},Hk=({leasedSpaceName:e,size:t,page:n,sort:r,order:i,...o})=>{const a=Object.assign({},Un.fromPairs(Un.entries(o).filter(([u,d])=>!!d)));a.size=t,a.page=n,a.sort=r?[r,i].join(","):"";const s=btoa(e),l=Qi({pathname:`dcim-devices/customer-known-name-space/${s}/historical-alerts`,searchParams:a});return Ji.get(l)},zk=(e,t)=>aa([zr.DCIM_HISTORICAL_ALERTS,e],()=>Hk(e),{placeholderData:[],refetchInterval:0,...t}),Vk=e=>{const{sort:t,order:n,leasedSpaceName:r}=e,i=Object.assign({},Un.fromPairs(Un.entries(e).filter(([s,l])=>!!l)));delete i.leasedSpaceName,i.sort=t?[t,n==null?void 0:n.toUpperCase()].join(","):void 0;const o=btoa(r),a=Qi({pathname:`dcim-devices/customer-known-name-space/${o}/alert-instances`,searchParams:i});return Ji.get(a)},Rx=(e,t)=>aa([zr.DCIM_ALERT_INSTANCES,e],()=>Vk(e),{placeholderData:[],refetchInterval:0,...t}),Ohe=e=>{const t=Qi({pathname:`dcim-historical-alert-instances/${e}`});return Ji.get(t)},Phe=(e,t)=>aa([zr.DCIM_HISTORICAL_ALERT_INSTANCE_DETAILS],()=>Ohe(e),{...t,refetchOnWindowFocus:!1}),Rhe=async(e,t,n,r)=>{const i=Qi({pathname:"/dcim-devices/planned-site-maintenance",searchParams:{location:e,site:t,startDate:n,endDate:r}});return await Ji.get(i)},Mhe=(e,t,n,r,i)=>aa([zr.PLANNED_SITE_MAINTENANCE,e,t,n,r],()=>Rhe(e,t,n,r),{...i,refetchOnWindowFocus:!1}),Ahe=e=>{const t=Qi({pathname:`dcim-alert-instances/${e}`});return Ji.get(t)},Dhe=(e,t)=>aa([zr.DCIM_ALERT_INSTANCE_DETAILS],()=>Ahe(e),{...t,refetchOnWindowFocus:!1}),UR=$n(_.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday"),Gk=$n(_.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),V_=$n(_.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Ihe=$n(_.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),$he=H("div",{shouldForwardProp:e=>e!=="$isVisible"})`
|
|
429
|
+
display: flex;
|
|
430
|
+
flex-direction: column;
|
|
431
|
+
visibility: ${({$isVisible:e=!0})=>e?"none":"hidden"};
|
|
432
|
+
`,Lhe=H("div")`
|
|
433
|
+
display: flex;
|
|
434
|
+
`,khe=H(Ye)`
|
|
435
|
+
word-break: break-word;
|
|
436
|
+
`,Nhe=(e,t="-")=>{const{t:n}=yn("common"),{formatDateTime:r}=H_();return P2(e)||e===""?t:typeof e=="boolean"?n(e.toString()):typeof e=="number"?String(e):$2(e)?r(e):e},ko=({title:e,value:t,emptyValue:n="-",whiteSpace:r,isVisible:i,icon:o,...a})=>{const s=a["data-testid"],l=Nhe(t,n);return _.jsxs($he,{$isVisible:i,children:[_.jsxs(Lhe,{children:[_.jsx(Ye,{variant:"subtitle2",component:"h5",whiteSpace:r?"nowrap":"normal",children:e}),o]}),typeof l=="string"?_.jsx(khe,{"data-testid":s,variant:"subtitle1",children:l}):l]})};var gr=(e=>(e.POWER="power",e.ENVIRONMENTAL="environmental",e.AUXILIARY="auxiliary",e))(gr||{}),Nr=(e=>(e.CRITICAL="critical",e.CUSTOM="custom",e))(Nr||{});const Fhe=["critical","custom"];var qi=(e=>(e.HISTORY="history",e.DEFINITIONS="definitions",e.INSTANCES="instances",e))(qi||{});const qk=H("div")`
|
|
437
|
+
height: 32px;
|
|
438
|
+
display: flex;
|
|
439
|
+
flex-direction: row;
|
|
440
|
+
align-items: center;
|
|
441
|
+
background: ${e=>e.background||"#ffffff"};
|
|
442
|
+
border-radius: 68px;
|
|
443
|
+
width: fit-content;
|
|
444
|
+
padding: 4px 16px 4px 4px;
|
|
445
|
+
gap: 8px;
|
|
446
|
+
`;H(qk)`
|
|
447
|
+
background: #4caf50;
|
|
448
|
+
padding: 4px 16px;
|
|
449
|
+
|
|
450
|
+
span {
|
|
451
|
+
color: white;
|
|
452
|
+
}
|
|
453
|
+
`;const jhe=H(qk)`
|
|
454
|
+
// TODO is this needed for DCIM?
|
|
455
|
+
padding: 3px 10px;
|
|
456
|
+
height: fit-content;
|
|
457
|
+
`,Jg=({title:e})=>{var a,s;const{palette:t,extraColors:n}=or(),r={[gr.POWER]:{background:t.warning.main,color:n.textLight},[gr.ENVIRONMENTAL]:{background:t.success.main,color:n.textLight},[gr.AUXILIARY]:{background:t.info.main,color:n.textLight},default:{background:n.divider,color:t.text.primary}},i=((a=r[e])==null?void 0:a.background)||r.default.background,o=((s=r[e])==null?void 0:s.color)||r.default.color;return _.jsx(jhe,{background:i,"data-testid":`alert-badge-${e}`,children:_.jsx(Ye,{sx:{fontSize:13,lineHeight:"18px",color:o},children:Un.startCase(e)})})},d0=H("div")`
|
|
458
|
+
max-width: 828px;
|
|
459
|
+
margin-right: 32px;
|
|
460
|
+
background: #ffffff;
|
|
461
|
+
border-radius: 12px 12px 0 0;
|
|
462
|
+
border: 1px solid rgb(0 0 0 / 12%);
|
|
463
|
+
width: 100%;
|
|
464
|
+
padding: 24px;
|
|
465
|
+
|
|
466
|
+
${({theme:e})=>e.breakpoints.up("lg")} {
|
|
467
|
+
height: calc(100vh - ${({theme:e})=>e.layout.pageHeader.height}px);
|
|
468
|
+
overflow: auto;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
${({theme:e})=>e.breakpoints.down("lg")} {
|
|
472
|
+
border: 0;
|
|
473
|
+
}
|
|
474
|
+
`,WR=H("div")`
|
|
475
|
+
h5 {
|
|
476
|
+
color: ${({theme:e})=>e.extraColors.textDark2};
|
|
477
|
+
}
|
|
478
|
+
`,HR=H("div")`
|
|
479
|
+
display: flex;
|
|
480
|
+
flex-direction: column;
|
|
481
|
+
gap: 16px;
|
|
482
|
+
`,Bhe=H(Ye)`
|
|
483
|
+
${({theme:e})=>e.breakpoints.down("lg")} {
|
|
484
|
+
font-size: 34px;
|
|
485
|
+
line-height: 40px;
|
|
486
|
+
}
|
|
487
|
+
`,Uhe=H(ML)`
|
|
488
|
+
margin: 24px 0;
|
|
489
|
+
|
|
490
|
+
${({theme:e})=>e.breakpoints.down("lg")} {
|
|
491
|
+
margin: 36px 0 24px 0;
|
|
492
|
+
}
|
|
493
|
+
`,Whe=H("div")`
|
|
494
|
+
display: flex;
|
|
495
|
+
flex-direction: column;
|
|
496
|
+
align-items: center;
|
|
497
|
+
justify-content: center;
|
|
498
|
+
height: 100%;
|
|
499
|
+
`;var Mx={exports:{}},Ax={exports:{}},Dx={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,i){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o]);return r}e.exports=t.default})(Dx,Dx.exports);var Hhe=Dx.exports;(function(e,t){var n=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(Hhe);function i(o){return(0,r.default)({},o)}e.exports=t.default})(Ax,Ax.exports);var zhe=Ax.exports,Ix={exports:{}},$x={exports:{}},Lx={exports:{}},kx={exports:{}},Kk={exports:{}};(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Kk);var Yk=Kk.exports,Nx={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,i){if(i.length<r)throw new TypeError(r+" argument"+(r>1?"s":"")+" required, but only "+i.length+" present")}e.exports=t.default})(Nx,Nx.exports);var Pr=Nx.exports;(function(e,t){var n=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(Yk),i=n(Pr);function o(a){return(0,i.default)(1,arguments),a instanceof Date||(0,r.default)(a)==="object"&&Object.prototype.toString.call(a)==="[object Date]"}e.exports=t.default})(kx,kx.exports);var Vhe=kx.exports,Fx={exports:{}};(function(e,t){var n=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(Yk),i=n(Pr);function o(a){(0,i.default)(1,arguments);var s=Object.prototype.toString.call(a);return a instanceof Date||(0,r.default)(a)==="object"&&s==="[object Date]"?new Date(a.getTime()):typeof a=="number"||s==="[object Number]"?new Date(a):((typeof a=="string"||s==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}e.exports=t.default})(Fx,Fx.exports);var So=Fx.exports;(function(e,t){var n=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=n(Vhe),i=n(So),o=n(Pr);function a(s){if((0,o.default)(1,arguments),!(0,r.default)(s)&&typeof s!="number")return!1;var l=(0,i.default)(s);return!isNaN(Number(l))}e.exports=t.default})(Lx,Lx.exports);var Ghe=Lx.exports,jx={exports:{}},Bx={exports:{}},Ux={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){if(r===null||r===!0||r===!1)return NaN;var i=Number(r);return isNaN(i)?i:i<0?Math.ceil(i):Math.floor(i)}e.exports=t.default})(Ux,Ux.exports);var ul=Ux.exports;(function(e,t){var n=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=n(ul),i=n(So),o=n(Pr);function a(s,l){(0,o.default)(2,arguments);var u=(0,i.default)(s).getTime(),d=(0,r.default)(l);return new Date(u+d)}e.exports=t.default})(Bx,Bx.exports);var qhe=Bx.exports;(function(e,t){var n=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=n(qhe),i=n(Pr),o=n(ul);function a(s,l){(0,i.default)(2,arguments);var u=(0,o.default)(l);return(0,r.default)(s,-u)}e.exports=t.default})(jx,jx.exports);var Khe=jx.exports,Wx={exports:{}},Hx={exports:{}};(function(e,t){var n=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=n(So),i=n(Pr),o=864e5;function a(s){(0,i.default)(1,arguments);var l=(0,r.default)(s),u=l.getTime();l.setUTCMonth(0,1),l.setUTCHours(0,0,0,0);var d=l.getTime(),h=u-d;return Math.floor(h/o)+1}e.exports=t.default})(Hx,Hx.exports);var Yhe=Hx.exports,zx={exports:{}},Vx={exports:{}};(function(e,t){var n=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(So),i=n(Pr);function o(a){(0,i.default)(1,arguments);var s=1,l=(0,r.default)(a),u=l.getUTCDay(),d=(u<s?7:0)+u-s;return l.setUTCDate(l.getUTCDate()-d),l.setUTCHours(0,0,0,0),l}e.exports=t.default})(Vx,Vx.exports);var G_=Vx.exports,Gx={exports:{}},qx={exports:{}};(function(e,t){var n=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=n(So),i=n(Pr),o=n(G_);function a(s){(0,i.default)(1,arguments);var l=(0,r.default)(s),u=l.getUTCFullYear(),d=new Date(0);d.setUTCFullYear(u+1,0,4),d.setUTCHours(0,0,0,0);var h=(0,o.default)(d),p=new Date(0);p.setUTCFullYear(u,0,4),p.setUTCHours(0,0,0,0);var g=(0,o.default)(p);return l.getTime()>=h.getTime()?u+1:l.getTime()>=g.getTime()?u:u-1}e.exports=t.default})(qx,qx.exports);var Xk=qx.exports;(function(e,t){var n=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=n(Xk),i=n(G_),o=n(Pr);function a(s){(0,o.default)(1,arguments);var l=(0,r.default)(s),u=new Date(0);u.setUTCFullYear(l,0,4),u.setUTCHours(0,0,0,0);var d=(0,i.default)(u);return d}e.exports=t.default})(Gx,Gx.exports);var Xhe=Gx.exports;(function(e,t){var n=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=n(So),i=n(G_),o=n(Xhe),a=n(Pr),s=6048e5;function l(u){(0,a.default)(1,arguments);var d=(0,r.default)(u),h=(0,i.default)(d).getTime()-(0,o.default)(d).getTime();return Math.round(h/s)+1}e.exports=t.default})(zx,zx.exports);var Zhe=zx.exports,Kx={exports:{}},Yx={exports:{}},cl={};Object.defineProperty(cl,"__esModule",{value:!0});cl.getDefaultOptions=Qhe;cl.setDefaultOptions=Jhe;var Zk={};function Qhe(){return Zk}function Jhe(e){Zk=e}(function(e,t){var n=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=n(So),i=n(Pr),o=n(ul),a=cl;function s(l,u){var d,h,p,g,m,y,b,x;(0,i.default)(1,arguments);var S=(0,a.getDefaultOptions)(),w=(0,o.default)((d=(h=(p=(g=u==null?void 0:u.weekStartsOn)!==null&&g!==void 0?g:u==null||(m=u.locale)===null||m===void 0||(y=m.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&p!==void 0?p:S.weekStartsOn)!==null&&h!==void 0?h:(b=S.locale)===null||b===void 0||(x=b.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&d!==void 0?d:0);if(!(w>=0&&w<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var C=(0,r.default)(l),R=C.getUTCDay(),O=(R<w?7:0)+R-w;return C.setUTCDate(C.getUTCDate()-O),C.setUTCHours(0,0,0,0),C}e.exports=t.default})(Yx,Yx.exports);var q_=Yx.exports,Xx={exports:{}},Zx={exports:{}};(function(e,t){var n=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=n(So),i=n(Pr),o=n(q_),a=n(ul),s=cl;function l(u,d){var h,p,g,m,y,b,x,S;(0,i.default)(1,arguments);var w=(0,r.default)(u),C=w.getUTCFullYear(),R=(0,s.getDefaultOptions)(),O=(0,a.default)((h=(p=(g=(m=d==null?void 0:d.firstWeekContainsDate)!==null&&m!==void 0?m:d==null||(y=d.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&g!==void 0?g:R.firstWeekContainsDate)!==null&&p!==void 0?p:(x=R.locale)===null||x===void 0||(S=x.options)===null||S===void 0?void 0:S.firstWeekContainsDate)!==null&&h!==void 0?h:1);if(!(O>=1&&O<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=new Date(0);T.setUTCFullYear(C+1,0,O),T.setUTCHours(0,0,0,0);var A=(0,o.default)(T,d),L=new Date(0);L.setUTCFullYear(C,0,O),L.setUTCHours(0,0,0,0);var I=(0,o.default)(L,d);return w.getTime()>=A.getTime()?C+1:w.getTime()>=I.getTime()?C:C-1}e.exports=t.default})(Zx,Zx.exports);var Qk=Zx.exports;(function(e,t){var n=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=n(Qk),i=n(Pr),o=n(q_),a=n(ul),s=cl;function l(u,d){var h,p,g,m,y,b,x,S;(0,i.default)(1,arguments);var w=(0,s.getDefaultOptions)(),C=(0,a.default)((h=(p=(g=(m=d==null?void 0:d.firstWeekContainsDate)!==null&&m!==void 0?m:d==null||(y=d.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&g!==void 0?g:w.firstWeekContainsDate)!==null&&p!==void 0?p:(x=w.locale)===null||x===void 0||(S=x.options)===null||S===void 0?void 0:S.firstWeekContainsDate)!==null&&h!==void 0?h:1),R=(0,r.default)(u,d),O=new Date(0);O.setUTCFullYear(R,0,C),O.setUTCHours(0,0,0,0);var T=(0,o.default)(O,d);return T}e.exports=t.default})(Xx,Xx.exports);var epe=Xx.exports;(function(e,t){var n=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=n(So),i=n(q_),o=n(epe),a=n(Pr),s=6048e5;function l(u,d){(0,a.default)(1,arguments);var h=(0,r.default)(u),p=(0,i.default)(h,d).getTime()-(0,o.default)(h,d).getTime();return Math.round(p/s)+1}e.exports=t.default})(Kx,Kx.exports);var tpe=Kx.exports,Qx={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,i){for(var o=r<0?"-":"",a=Math.abs(r).toString();a.length<i;)a="0"+a;return o+a}e.exports=t.default})(Qx,Qx.exports);var Jk=Qx.exports,Jx={exports:{}};(function(e,t){var n=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(Jk),i={y:function(s,l){var u=s.getUTCFullYear(),d=u>0?u:1-u;return(0,r.default)(l==="yy"?d%100:d,l.length)},M:function(s,l){var u=s.getUTCMonth();return l==="M"?String(u+1):(0,r.default)(u+1,2)},d:function(s,l){return(0,r.default)(s.getUTCDate(),l.length)},a:function(s,l){var u=s.getUTCHours()/12>=1?"pm":"am";switch(l){case"a":case"aa":return u.toUpperCase();case"aaa":return u;case"aaaaa":return u[0];case"aaaa":default:return u==="am"?"a.m.":"p.m."}},h:function(s,l){return(0,r.default)(s.getUTCHours()%12||12,l.length)},H:function(s,l){return(0,r.default)(s.getUTCHours(),l.length)},m:function(s,l){return(0,r.default)(s.getUTCMinutes(),l.length)},s:function(s,l){return(0,r.default)(s.getUTCSeconds(),l.length)},S:function(s,l){var u=l.length,d=s.getUTCMilliseconds(),h=Math.floor(d*Math.pow(10,u-3));return(0,r.default)(h,l.length)}},o=i;t.default=o,e.exports=t.default})(Jx,Jx.exports);var npe=Jx.exports;(function(e,t){var n=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(Yhe),i=n(Zhe),o=n(Xk),a=n(tpe),s=n(Qk),l=n(Jk),u=n(npe),d={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},h={G:function(x,S,w){var C=x.getUTCFullYear()>0?1:0;switch(S){case"G":case"GG":case"GGG":return w.era(C,{width:"abbreviated"});case"GGGGG":return w.era(C,{width:"narrow"});case"GGGG":default:return w.era(C,{width:"wide"})}},y:function(x,S,w){if(S==="yo"){var C=x.getUTCFullYear(),R=C>0?C:1-C;return w.ordinalNumber(R,{unit:"year"})}return u.default.y(x,S)},Y:function(x,S,w,C){var R=(0,s.default)(x,C),O=R>0?R:1-R;if(S==="YY"){var T=O%100;return(0,l.default)(T,2)}return S==="Yo"?w.ordinalNumber(O,{unit:"year"}):(0,l.default)(O,S.length)},R:function(x,S){var w=(0,o.default)(x);return(0,l.default)(w,S.length)},u:function(x,S){var w=x.getUTCFullYear();return(0,l.default)(w,S.length)},Q:function(x,S,w){var C=Math.ceil((x.getUTCMonth()+1)/3);switch(S){case"Q":return String(C);case"QQ":return(0,l.default)(C,2);case"Qo":return w.ordinalNumber(C,{unit:"quarter"});case"QQQ":return w.quarter(C,{width:"abbreviated",context:"formatting"});case"QQQQQ":return w.quarter(C,{width:"narrow",context:"formatting"});case"QQQQ":default:return w.quarter(C,{width:"wide",context:"formatting"})}},q:function(x,S,w){var C=Math.ceil((x.getUTCMonth()+1)/3);switch(S){case"q":return String(C);case"qq":return(0,l.default)(C,2);case"qo":return w.ordinalNumber(C,{unit:"quarter"});case"qqq":return w.quarter(C,{width:"abbreviated",context:"standalone"});case"qqqqq":return w.quarter(C,{width:"narrow",context:"standalone"});case"qqqq":default:return w.quarter(C,{width:"wide",context:"standalone"})}},M:function(x,S,w){var C=x.getUTCMonth();switch(S){case"M":case"MM":return u.default.M(x,S);case"Mo":return w.ordinalNumber(C+1,{unit:"month"});case"MMM":return w.month(C,{width:"abbreviated",context:"formatting"});case"MMMMM":return w.month(C,{width:"narrow",context:"formatting"});case"MMMM":default:return w.month(C,{width:"wide",context:"formatting"})}},L:function(x,S,w){var C=x.getUTCMonth();switch(S){case"L":return String(C+1);case"LL":return(0,l.default)(C+1,2);case"Lo":return w.ordinalNumber(C+1,{unit:"month"});case"LLL":return w.month(C,{width:"abbreviated",context:"standalone"});case"LLLLL":return w.month(C,{width:"narrow",context:"standalone"});case"LLLL":default:return w.month(C,{width:"wide",context:"standalone"})}},w:function(x,S,w,C){var R=(0,a.default)(x,C);return S==="wo"?w.ordinalNumber(R,{unit:"week"}):(0,l.default)(R,S.length)},I:function(x,S,w){var C=(0,i.default)(x);return S==="Io"?w.ordinalNumber(C,{unit:"week"}):(0,l.default)(C,S.length)},d:function(x,S,w){return S==="do"?w.ordinalNumber(x.getUTCDate(),{unit:"date"}):u.default.d(x,S)},D:function(x,S,w){var C=(0,r.default)(x);return S==="Do"?w.ordinalNumber(C,{unit:"dayOfYear"}):(0,l.default)(C,S.length)},E:function(x,S,w){var C=x.getUTCDay();switch(S){case"E":case"EE":case"EEE":return w.day(C,{width:"abbreviated",context:"formatting"});case"EEEEE":return w.day(C,{width:"narrow",context:"formatting"});case"EEEEEE":return w.day(C,{width:"short",context:"formatting"});case"EEEE":default:return w.day(C,{width:"wide",context:"formatting"})}},e:function(x,S,w,C){var R=x.getUTCDay(),O=(R-C.weekStartsOn+8)%7||7;switch(S){case"e":return String(O);case"ee":return(0,l.default)(O,2);case"eo":return w.ordinalNumber(O,{unit:"day"});case"eee":return w.day(R,{width:"abbreviated",context:"formatting"});case"eeeee":return w.day(R,{width:"narrow",context:"formatting"});case"eeeeee":return w.day(R,{width:"short",context:"formatting"});case"eeee":default:return w.day(R,{width:"wide",context:"formatting"})}},c:function(x,S,w,C){var R=x.getUTCDay(),O=(R-C.weekStartsOn+8)%7||7;switch(S){case"c":return String(O);case"cc":return(0,l.default)(O,S.length);case"co":return w.ordinalNumber(O,{unit:"day"});case"ccc":return w.day(R,{width:"abbreviated",context:"standalone"});case"ccccc":return w.day(R,{width:"narrow",context:"standalone"});case"cccccc":return w.day(R,{width:"short",context:"standalone"});case"cccc":default:return w.day(R,{width:"wide",context:"standalone"})}},i:function(x,S,w){var C=x.getUTCDay(),R=C===0?7:C;switch(S){case"i":return String(R);case"ii":return(0,l.default)(R,S.length);case"io":return w.ordinalNumber(R,{unit:"day"});case"iii":return w.day(C,{width:"abbreviated",context:"formatting"});case"iiiii":return w.day(C,{width:"narrow",context:"formatting"});case"iiiiii":return w.day(C,{width:"short",context:"formatting"});case"iiii":default:return w.day(C,{width:"wide",context:"formatting"})}},a:function(x,S,w){var C=x.getUTCHours(),R=C/12>=1?"pm":"am";switch(S){case"a":case"aa":return w.dayPeriod(R,{width:"abbreviated",context:"formatting"});case"aaa":return w.dayPeriod(R,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return w.dayPeriod(R,{width:"narrow",context:"formatting"});case"aaaa":default:return w.dayPeriod(R,{width:"wide",context:"formatting"})}},b:function(x,S,w){var C=x.getUTCHours(),R;switch(C===12?R=d.noon:C===0?R=d.midnight:R=C/12>=1?"pm":"am",S){case"b":case"bb":return w.dayPeriod(R,{width:"abbreviated",context:"formatting"});case"bbb":return w.dayPeriod(R,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return w.dayPeriod(R,{width:"narrow",context:"formatting"});case"bbbb":default:return w.dayPeriod(R,{width:"wide",context:"formatting"})}},B:function(x,S,w){var C=x.getUTCHours(),R;switch(C>=17?R=d.evening:C>=12?R=d.afternoon:C>=4?R=d.morning:R=d.night,S){case"B":case"BB":case"BBB":return w.dayPeriod(R,{width:"abbreviated",context:"formatting"});case"BBBBB":return w.dayPeriod(R,{width:"narrow",context:"formatting"});case"BBBB":default:return w.dayPeriod(R,{width:"wide",context:"formatting"})}},h:function(x,S,w){if(S==="ho"){var C=x.getUTCHours()%12;return C===0&&(C=12),w.ordinalNumber(C,{unit:"hour"})}return u.default.h(x,S)},H:function(x,S,w){return S==="Ho"?w.ordinalNumber(x.getUTCHours(),{unit:"hour"}):u.default.H(x,S)},K:function(x,S,w){var C=x.getUTCHours()%12;return S==="Ko"?w.ordinalNumber(C,{unit:"hour"}):(0,l.default)(C,S.length)},k:function(x,S,w){var C=x.getUTCHours();return C===0&&(C=24),S==="ko"?w.ordinalNumber(C,{unit:"hour"}):(0,l.default)(C,S.length)},m:function(x,S,w){return S==="mo"?w.ordinalNumber(x.getUTCMinutes(),{unit:"minute"}):u.default.m(x,S)},s:function(x,S,w){return S==="so"?w.ordinalNumber(x.getUTCSeconds(),{unit:"second"}):u.default.s(x,S)},S:function(x,S){return u.default.S(x,S)},X:function(x,S,w,C){var R=C._originalDate||x,O=R.getTimezoneOffset();if(O===0)return"Z";switch(S){case"X":return g(O);case"XXXX":case"XX":return m(O);case"XXXXX":case"XXX":default:return m(O,":")}},x:function(x,S,w,C){var R=C._originalDate||x,O=R.getTimezoneOffset();switch(S){case"x":return g(O);case"xxxx":case"xx":return m(O);case"xxxxx":case"xxx":default:return m(O,":")}},O:function(x,S,w,C){var R=C._originalDate||x,O=R.getTimezoneOffset();switch(S){case"O":case"OO":case"OOO":return"GMT"+p(O,":");case"OOOO":default:return"GMT"+m(O,":")}},z:function(x,S,w,C){var R=C._originalDate||x,O=R.getTimezoneOffset();switch(S){case"z":case"zz":case"zzz":return"GMT"+p(O,":");case"zzzz":default:return"GMT"+m(O,":")}},t:function(x,S,w,C){var R=C._originalDate||x,O=Math.floor(R.getTime()/1e3);return(0,l.default)(O,S.length)},T:function(x,S,w,C){var R=C._originalDate||x,O=R.getTime();return(0,l.default)(O,S.length)}};function p(b,x){var S=b>0?"-":"+",w=Math.abs(b),C=Math.floor(w/60),R=w%60;if(R===0)return S+String(C);var O=x;return S+String(C)+O+(0,l.default)(R,2)}function g(b,x){if(b%60===0){var S=b>0?"-":"+";return S+(0,l.default)(Math.abs(b)/60,2)}return m(b,x)}function m(b,x){var S=x||"",w=b>0?"-":"+",C=Math.abs(b),R=(0,l.default)(Math.floor(C/60),2),O=(0,l.default)(C%60,2);return w+R+S+O}var y=h;t.default=y,e.exports=t.default})(Wx,Wx.exports);var rpe=Wx.exports,e1={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(l,u){switch(l){case"P":return u.date({width:"short"});case"PP":return u.date({width:"medium"});case"PPP":return u.date({width:"long"});case"PPPP":default:return u.date({width:"full"})}},r=function(l,u){switch(l){case"p":return u.time({width:"short"});case"pp":return u.time({width:"medium"});case"ppp":return u.time({width:"long"});case"pppp":default:return u.time({width:"full"})}},i=function(l,u){var d=l.match(/(P+)(p+)?/)||[],h=d[1],p=d[2];if(!p)return n(l,u);var g;switch(h){case"P":g=u.dateTime({width:"short"});break;case"PP":g=u.dateTime({width:"medium"});break;case"PPP":g=u.dateTime({width:"long"});break;case"PPPP":default:g=u.dateTime({width:"full"});break}return g.replace("{{date}}",n(h,u)).replace("{{time}}",r(p,u))},o={p:r,P:i},a=o;t.default=a,e.exports=t.default})(e1,e1.exports);var eN=e1.exports;const tN=Di(eN);var t1={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){var i=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return i.setUTCFullYear(r.getFullYear()),r.getTime()-i.getTime()}e.exports=t.default})(t1,t1.exports);var nN=t1.exports,Nf={};Object.defineProperty(Nf,"__esModule",{value:!0});Nf.isProtectedDayOfYearToken=ape;Nf.isProtectedWeekYearToken=spe;Nf.throwProtectedError=lpe;var ipe=["D","DD"],ope=["YY","YYYY"];function ape(e){return ipe.indexOf(e)!==-1}function spe(e){return ope.indexOf(e)!==-1}function lpe(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var n1={exports:{}},r1={exports:{}},i1={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(a,s,l){var u,d=n[a];return typeof d=="string"?u=d:s===1?u=d.one:u=d.other.replace("{{count}}",s.toString()),l!=null&&l.addSuffix?l.comparison&&l.comparison>0?"in "+u:u+" ago":u},i=r;t.default=i,e.exports=t.default})(i1,i1.exports);var upe=i1.exports,o1={exports:{}},a1={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=i.width?String(i.width):r.defaultWidth,a=r.formats[o]||r.formats[r.defaultWidth];return a}}e.exports=t.default})(a1,a1.exports);var cpe=a1.exports;(function(e,t){var n=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(cpe),i={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},o={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},a={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},s={date:(0,r.default)({formats:i,defaultWidth:"full"}),time:(0,r.default)({formats:o,defaultWidth:"full"}),dateTime:(0,r.default)({formats:a,defaultWidth:"full"})},l=s;t.default=l,e.exports=t.default})(o1,o1.exports);var dpe=o1.exports,s1={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(a,s,l,u){return n[a]},i=r;t.default=i,e.exports=t.default})(s1,s1.exports);var fpe=s1.exports,l1={exports:{}},u1={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return function(i,o){var a=o!=null&&o.context?String(o.context):"standalone",s;if(a==="formatting"&&r.formattingValues){var l=r.defaultFormattingWidth||r.defaultWidth,u=o!=null&&o.width?String(o.width):l;s=r.formattingValues[u]||r.formattingValues[l]}else{var d=r.defaultWidth,h=o!=null&&o.width?String(o.width):r.defaultWidth;s=r.values[h]||r.values[d]}var p=r.argumentCallback?r.argumentCallback(i):i;return s[p]}}e.exports=t.default})(u1,u1.exports);var hpe=u1.exports;(function(e,t){var n=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(hpe),i={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},o={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},a={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},s={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},u={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},d=function(m,y){var b=Number(m),x=b%100;if(x>20||x<10)switch(x%10){case 1:return b+"st";case 2:return b+"nd";case 3:return b+"rd"}return b+"th"},h={ordinalNumber:d,era:(0,r.default)({values:i,defaultWidth:"wide"}),quarter:(0,r.default)({values:o,defaultWidth:"wide",argumentCallback:function(m){return m-1}}),month:(0,r.default)({values:a,defaultWidth:"wide"}),day:(0,r.default)({values:s,defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:l,defaultWidth:"wide",formattingValues:u,defaultFormattingWidth:"wide"})},p=h;t.default=p,e.exports=t.default})(l1,l1.exports);var ppe=l1.exports,c1={exports:{}},d1={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(o){return function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=s.width,u=l&&o.matchPatterns[l]||o.matchPatterns[o.defaultMatchWidth],d=a.match(u);if(!d)return null;var h=d[0],p=l&&o.parsePatterns[l]||o.parsePatterns[o.defaultParseWidth],g=Array.isArray(p)?i(p,function(b){return b.test(h)}):r(p,function(b){return b.test(h)}),m;m=o.valueCallback?o.valueCallback(g):g,m=s.valueCallback?s.valueCallback(m):m;var y=a.slice(h.length);return{value:m,rest:y}}}function r(o,a){for(var s in o)if(o.hasOwnProperty(s)&&a(o[s]))return s}function i(o,a){for(var s=0;s<o.length;s++)if(a(o[s]))return s}e.exports=t.default})(d1,d1.exports);var gpe=d1.exports,f1={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=i.match(r.matchPattern);if(!a)return null;var s=a[0],l=i.match(r.parsePattern);if(!l)return null;var u=r.valueCallback?r.valueCallback(l[0]):l[0];u=o.valueCallback?o.valueCallback(u):u;var d=i.slice(s.length);return{value:u,rest:d}}}e.exports=t.default})(f1,f1.exports);var mpe=f1.exports;(function(e,t){var n=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(gpe),i=n(mpe),o=/^(\d+)(th|st|nd|rd)?/i,a=/\d+/i,s={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},l={any:[/^b/i,/^(a|c)/i]},u={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},d={any:[/1/i,/2/i,/3/i,/4/i]},h={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},p={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},g={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},m={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},y={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},b={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},x={ordinalNumber:(0,i.default)({matchPattern:o,parsePattern:a,valueCallback:function(C){return parseInt(C,10)}}),era:(0,r.default)({matchPatterns:s,defaultMatchWidth:"wide",parsePatterns:l,defaultParseWidth:"any"}),quarter:(0,r.default)({matchPatterns:u,defaultMatchWidth:"wide",parsePatterns:d,defaultParseWidth:"any",valueCallback:function(C){return C+1}}),month:(0,r.default)({matchPatterns:h,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),day:(0,r.default)({matchPatterns:g,defaultMatchWidth:"wide",parsePatterns:m,defaultParseWidth:"any"}),dayPeriod:(0,r.default)({matchPatterns:y,defaultMatchWidth:"any",parsePatterns:b,defaultParseWidth:"any"})},S=x;t.default=S,e.exports=t.default})(c1,c1.exports);var vpe=c1.exports;(function(e,t){var n=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(upe),i=n(dpe),o=n(fpe),a=n(ppe),s=n(vpe),l={code:"en-US",formatDistance:r.default,formatLong:i.default,formatRelative:o.default,localize:a.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},u=l;t.default=u,e.exports=t.default})(r1,r1.exports);var ype=r1.exports;(function(e,t){var n=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(ype),i=r.default;t.default=i,e.exports=t.default})(n1,n1.exports);var bpe=n1.exports;(function(e,t){var n=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=w;var r=n(Ghe),i=n(Khe),o=n(So),a=n(rpe),s=n(eN),l=n(nN),u=Nf,d=n(ul),h=n(Pr),p=cl,g=n(bpe),m=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,y=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,b=/^'([^]*?)'?$/,x=/''/g,S=/[a-zA-Z]/;function w(R,O,T){var A,L,I,N,B,U,z,F,j,K,V,J,oe,ce,le,Me,ve,ye;(0,h.default)(2,arguments);var Ce=String(O),we=(0,p.getDefaultOptions)(),fe=(A=(L=T==null?void 0:T.locale)!==null&&L!==void 0?L:we.locale)!==null&&A!==void 0?A:g.default,ue=(0,d.default)((I=(N=(B=(U=T==null?void 0:T.firstWeekContainsDate)!==null&&U!==void 0?U:T==null||(z=T.locale)===null||z===void 0||(F=z.options)===null||F===void 0?void 0:F.firstWeekContainsDate)!==null&&B!==void 0?B:we.firstWeekContainsDate)!==null&&N!==void 0?N:(j=we.locale)===null||j===void 0||(K=j.options)===null||K===void 0?void 0:K.firstWeekContainsDate)!==null&&I!==void 0?I:1);if(!(ue>=1&&ue<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Ne=(0,d.default)((V=(J=(oe=(ce=T==null?void 0:T.weekStartsOn)!==null&&ce!==void 0?ce:T==null||(le=T.locale)===null||le===void 0||(Me=le.options)===null||Me===void 0?void 0:Me.weekStartsOn)!==null&&oe!==void 0?oe:we.weekStartsOn)!==null&&J!==void 0?J:(ve=we.locale)===null||ve===void 0||(ye=ve.options)===null||ye===void 0?void 0:ye.weekStartsOn)!==null&&V!==void 0?V:0);if(!(Ne>=0&&Ne<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!fe.localize)throw new RangeError("locale must contain localize property");if(!fe.formatLong)throw new RangeError("locale must contain formatLong property");var We=(0,o.default)(R);if(!(0,r.default)(We))throw new RangeError("Invalid time value");var be=(0,l.default)(We),pe=(0,i.default)(We,be),He={firstWeekContainsDate:ue,weekStartsOn:Ne,locale:fe,_originalDate:We},qe=Ce.match(y).map(function(tt){var _t=tt[0];if(_t==="p"||_t==="P"){var Ct=s.default[_t];return Ct(tt,fe.formatLong)}return tt}).join("").match(m).map(function(tt){if(tt==="''")return"'";var _t=tt[0];if(_t==="'")return C(tt);var Ct=a.default[_t];if(Ct)return!(T!=null&&T.useAdditionalWeekYearTokens)&&(0,u.isProtectedWeekYearToken)(tt)&&(0,u.throwProtectedError)(tt,O,String(R)),!(T!=null&&T.useAdditionalDayOfYearTokens)&&(0,u.isProtectedDayOfYearToken)(tt)&&(0,u.throwProtectedError)(tt,O,String(R)),Ct(pe,tt,fe.localize,He);if(_t.match(S))throw new RangeError("Format string contains an unescaped latin alphabet character `"+_t+"`");return tt}).join("");return qe}function C(R){var O=R.match(b);return O?O[1].replace(x,"'"):R}e.exports=t.default})($x,$x.exports);var xpe=$x.exports,h1={exports:{}},p1={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(a,s,l){var u=o(a,l.timeZone,l.locale);return u.formatToParts?r(u,s):i(u,s)}function r(a,s){for(var l=a.formatToParts(s),u=l.length-1;u>=0;--u)if(l[u].type==="timeZoneName")return l[u].value}function i(a,s){var l=a.format(s).replace(/\u200E/g,""),u=/ [\w-+ ]+$/.exec(l);return u?u[0].substr(1):""}function o(a,s,l){if(l&&!l.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(l?[l.code,"en-US"]:void 0,{timeZone:s,timeZoneName:a})}e.exports=t.default})(p1,p1.exports);var wpe=p1.exports,g1={exports:{}},m1={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(l,u){var d=s(u);return d.formatToParts?i(d,l):o(d,l)}var r={year:0,month:1,day:2,hour:3,minute:4,second:5};function i(l,u){try{for(var d=l.formatToParts(u),h=[],p=0;p<d.length;p++){var g=r[d[p].type];g>=0&&(h[g]=parseInt(d[p].value,10))}return h}catch(m){if(m instanceof RangeError)return[NaN];throw m}}function o(l,u){var d=l.format(u).replace(/\u200E/g,""),h=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(d);return[h[3],h[1],h[2],h[4],h[5],h[6]]}var a={};function s(l){if(!a[l]){var u=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),d=u==="06/25/2014, 00:00:00"||u==="06/25/2014 00:00:00";a[l]=d?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return a[l]}e.exports=t.default})(m1,m1.exports);var _pe=m1.exports,v1={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,i,o,a,s,l,u){var d=new Date(0);return d.setUTCFullYear(r,i,o),d.setUTCHours(a,s,l,u),d}e.exports=t.default})(v1,v1.exports);var Cpe=v1.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=i(_pe),r=i(Cpe);function i(y){return y&&y.__esModule?y:{default:y}}var o=36e5,a=6e4,s={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function l(y,b,x){var S,w;if(!y||(S=s.timezoneZ.exec(y),S))return 0;var C;if(S=s.timezoneHH.exec(y),S)return C=parseInt(S[1],10),p(C)?-(C*o):NaN;if(S=s.timezoneHHMM.exec(y),S){C=parseInt(S[1],10);var R=parseInt(S[2],10);return p(C,R)?(w=Math.abs(C)*o+R*a,C>0?-w:w):NaN}if(m(y)){b=new Date(b||Date.now());var O=x?b:u(b),T=d(O,y),A=x?T:h(b,T,y);return-A}return NaN}function u(y){return(0,r.default)(y.getFullYear(),y.getMonth(),y.getDate(),y.getHours(),y.getMinutes(),y.getSeconds(),y.getMilliseconds())}function d(y,b){var x=(0,n.default)(y,b),S=(0,r.default)(x[0],x[1]-1,x[2],x[3]%24,x[4],x[5],0).getTime(),w=y.getTime(),C=w%1e3;return w-=C>=0?C:1e3+C,S-w}function h(y,b,x){var S=y.getTime(),w=S-b,C=d(new Date(w),x);if(b===C)return b;w-=C-b;var R=d(new Date(w),x);return C===R?C:Math.max(C,R)}function p(y,b){return-23<=y&&y<=23&&(b==null||0<=b&&b<=59)}var g={};function m(y){if(g[y])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:y}),g[y]=!0,!0}catch{return!1}}e.exports=t.default})(g1,g1.exports);var K_=g1.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(wpe),r=i(K_);function i(g){return g&&g.__esModule?g:{default:g}}var o=60*1e3,a={X:function(g,m,y,b){var x=s(b.timeZone,b._originalDate||g);if(x===0)return"Z";switch(m){case"X":return d(x);case"XXXX":case"XX":return u(x);case"XXXXX":case"XXX":default:return u(x,":")}},x:function(g,m,y,b){var x=s(b.timeZone,b._originalDate||g);switch(m){case"x":return d(x);case"xxxx":case"xx":return u(x);case"xxxxx":case"xxx":default:return u(x,":")}},O:function(g,m,y,b){var x=s(b.timeZone,b._originalDate||g);switch(m){case"O":case"OO":case"OOO":return"GMT"+h(x,":");case"OOOO":default:return"GMT"+u(x,":")}},z:function(g,m,y,b){var x=b._originalDate||g;switch(m){case"z":case"zz":case"zzz":return(0,n.default)("short",x,b);case"zzzz":default:return(0,n.default)("long",x,b)}}};function s(g,m){var y=g?(0,r.default)(g,m,!0)/o:m.getTimezoneOffset();if(Number.isNaN(y))throw new RangeError("Invalid time zone specified: "+g);return y}function l(g,m){for(var y=g<0?"-":"",b=Math.abs(g).toString();b.length<m;)b="0"+b;return y+b}function u(g,m){var y=m||"",b=g>0?"-":"+",x=Math.abs(g),S=l(Math.floor(x/60),2),w=l(Math.floor(x%60),2);return b+S+y+w}function d(g,m){if(g%60===0){var y=g>0?"-":"+";return y+l(Math.abs(g)/60,2)}return u(g,m)}function h(g,m){var y=g>0?"-":"+",b=Math.abs(g),x=Math.floor(b/60),S=b%60;if(S===0)return y+String(x);var w=m;return y+String(x)+w+l(S,2)}var p=a;t.default=p,e.exports=t.default})(h1,h1.exports);var Spe=h1.exports,y1={exports:{}},b1={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,r=n;t.default=r,e.exports=t.default})(b1,b1.exports);var Tpe=b1.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=h;var n=a(ul),r=a(nN),i=a(K_),o=a(Tpe);function a(A){return A&&A.__esModule?A:{default:A}}var s=36e5,l=6e4,u=2,d={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:o.default};function h(A,L){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(A===null)return new Date(NaN);var I=L||{},N=I.additionalDigits==null?u:(0,n.default)(I.additionalDigits);if(N!==2&&N!==1&&N!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(A instanceof Date||typeof A=="object"&&Object.prototype.toString.call(A)==="[object Date]")return new Date(A.getTime());if(typeof A=="number"||Object.prototype.toString.call(A)==="[object Number]")return new Date(A);if(!(typeof A=="string"||Object.prototype.toString.call(A)==="[object String]"))return new Date(NaN);var B=p(A),U=g(B.date,N),z=U.year,F=U.restDateString,j=m(F,z);if(isNaN(j))return new Date(NaN);if(j){var K=j.getTime(),V=0,J;if(B.time&&(V=y(B.time),isNaN(V)))return new Date(NaN);if(B.timeZone||I.timeZone){if(J=(0,i.default)(B.timeZone||I.timeZone,new Date(K+V)),isNaN(J))return new Date(NaN)}else J=(0,r.default)(new Date(K+V)),J=(0,r.default)(new Date(K+V+J));return new Date(K+V+J)}else return new Date(NaN)}function p(A){var L={},I=d.dateTimePattern.exec(A),N;if(I?(L.date=I[1],N=I[3]):(I=d.datePattern.exec(A),I?(L.date=I[1],N=I[2]):(L.date=null,N=A)),N){var B=d.timeZone.exec(N);B?(L.time=N.replace(B[1],""),L.timeZone=B[1].trim()):L.time=N}return L}function g(A,L){var I=d.YYY[L],N=d.YYYYY[L],B;if(B=d.YYYY.exec(A)||N.exec(A),B){var U=B[1];return{year:parseInt(U,10),restDateString:A.slice(U.length)}}if(B=d.YY.exec(A)||I.exec(A),B){var z=B[1];return{year:parseInt(z,10)*100,restDateString:A.slice(z.length)}}return{year:null}}function m(A,L){if(L===null)return null;var I,N,B,U;if(A.length===0)return N=new Date(0),N.setUTCFullYear(L),N;if(I=d.MM.exec(A),I)return N=new Date(0),B=parseInt(I[1],10)-1,C(L,B)?(N.setUTCFullYear(L,B),N):new Date(NaN);if(I=d.DDD.exec(A),I){N=new Date(0);var z=parseInt(I[1],10);return R(L,z)?(N.setUTCFullYear(L,0,z),N):new Date(NaN)}if(I=d.MMDD.exec(A),I){N=new Date(0),B=parseInt(I[1],10)-1;var F=parseInt(I[2],10);return C(L,B,F)?(N.setUTCFullYear(L,B,F),N):new Date(NaN)}if(I=d.Www.exec(A),I)return U=parseInt(I[1],10)-1,O(L,U)?b(L,U):new Date(NaN);if(I=d.WwwD.exec(A),I){U=parseInt(I[1],10)-1;var j=parseInt(I[2],10)-1;return O(L,U,j)?b(L,U,j):new Date(NaN)}return null}function y(A){var L,I,N;if(L=d.HH.exec(A),L)return I=parseFloat(L[1].replace(",",".")),T(I)?I%24*s:NaN;if(L=d.HHMM.exec(A),L)return I=parseInt(L[1],10),N=parseFloat(L[2].replace(",",".")),T(I,N)?I%24*s+N*l:NaN;if(L=d.HHMMSS.exec(A),L){I=parseInt(L[1],10),N=parseInt(L[2],10);var B=parseFloat(L[3].replace(",","."));return T(I,N,B)?I%24*s+N*l+B*1e3:NaN}return null}function b(A,L,I){L=L||0,I=I||0;var N=new Date(0);N.setUTCFullYear(A,0,4);var B=N.getUTCDay()||7,U=L*7+I+1-B;return N.setUTCDate(N.getUTCDate()+U),N}var x=[31,28,31,30,31,30,31,31,30,31,30,31],S=[31,29,31,30,31,30,31,31,30,31,30,31];function w(A){return A%400===0||A%4===0&&A%100!==0}function C(A,L,I){if(L<0||L>11)return!1;if(I!=null){if(I<1)return!1;var N=w(A);if(N&&I>S[L]||!N&&I>x[L])return!1}return!0}function R(A,L){if(L<1)return!1;var I=w(A);return!(I&&L>366||!I&&L>365)}function O(A,L,I){return!(L<0||L>52||I!=null&&(I<0||I>6))}function T(A,L,I){return!(A!=null&&(A<0||A>=25)||L!=null&&(L<0||L>=60)||I!=null&&(I<0||I>=60))}e.exports=t.default})(y1,y1.exports);var rN=y1.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=o(xpe),r=o(Spe),i=o(rN);function o(l){return l&&l.__esModule?l:{default:l}}var a=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function s(l,u,d){var h=String(u),p=d||{},g=h.match(a);if(g){var m=(0,i.default)(l,p);h=g.reduce(function(y,b){if(b[0]==="'")return y;var x=y.indexOf(b),S=y[x-1]==="'",w=y.replace(b,"'"+r.default[b[0]](m,b,null,p)+"'");return S?w.substring(0,x-1)+w.substring(x+1):w},h)}return(0,n.default)(l,h,p)}e.exports=t.default})(Ix,Ix.exports);var iN=Ix.exports;const Epe=Di(iN);var x1={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=i(K_),r=i(rN);function i(a){return a&&a.__esModule?a:{default:a}}function o(a,s,l){var u=(0,r.default)(a,l),d=(0,n.default)(s,u,!0),h=new Date(u.getTime()-d),p=new Date(0);return p.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),p.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),p}e.exports=t.default})(x1,x1.exports);var Ope=x1.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=o(zhe),r=o(iN),i=o(Ope);function o(s){return s&&s.__esModule?s:{default:s}}function a(s,l,u,d){var h=(0,n.default)(d);return h.timeZone=l,(0,r.default)((0,i.default)(s,l),u,h)}e.exports=t.default})(Mx,Mx.exports);var Ppe=Mx.exports;const oN=Di(Ppe),aN=({isFetching:e,isError:t,alert:n})=>{const{t:r}=yn("location",{keyPrefix:"alerts.details"}),{dateTimeFormatPreferences:i,getTimeFormatString:o}=Av(),a=o(!0),s=l=>l?oN(l,"UTC",`${i.preferredDateFormat} ${a} (zzz)`):"";return e?_.jsx(d0,{"data-testid":"loader-container",children:_.jsx(Whe,{children:_.jsx(yv,{size:40})})}):t?_.jsx(d0,{children:_.jsxs(y_,{children:[_.jsx(Ihe,{color:"error",sx:{fontSize:45}}),_.jsx(Ye,{variant:"body1",children:r("error")})]})}):_.jsxs(d0,{"data-testid":"alert-details-container",children:[_.jsxs(Tn,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[_.jsx(Bhe,{variant:"h5",fontWeight:700,children:n.alertName}),_.jsxs(Tn,{sx:{display:"flex",gap:"10px"},children:[_.jsx(Jg,{title:n.alertType||""}),!!n.alertCategory&&_.jsx(Jg,{title:n.alertCategory})]})]}),_.jsx(Uhe,{}),_.jsxs(HR,{children:[_.jsx(ko,{title:r("alert-number"),value:n.alertId,"data-testid":"alert-details--alert-number"}),_.jsxs(Bn,{container:!0,children:[_.jsx(Bn,{item:!0,xs:6,children:_.jsx(ko,{title:r("site"),value:n.site,"data-testid":"alert-details--site"})}),_.jsx(Bn,{item:!0,xs:6,children:_.jsx(ko,{title:r("location"),value:n.location,"data-testid":"alert-details--location"})})]}),_.jsxs(Bn,{container:!0,children:[_.jsx(Bn,{item:!0,xs:6,children:_.jsx(ko,{title:r("total-load"),value:n.functionValue,"data-testid":"alert-details--total-load"})}),_.jsx(Bn,{item:!0,xs:6,children:_.jsx(ko,{title:r("threshold-value"),value:n.alertThreshold,"data-testid":"alert-details--threshold-value"})})]}),_.jsx(ko,{title:r("affected-ci"),value:n.deviceMetric,"data-testid":"alert-details--affected-ci"}),_.jsx(ko,{title:r("description"),value:n.deviceName,"data-testid":"alert-details--description"}),_.jsxs("div",{children:[_.jsx(Ye,{variant:"subtitle2",component:"h5",sx:{marginBottom:"4px"},children:r("alert-timeline-summary")}),_.jsxs(HR,{children:[_.jsx(WR,{children:_.jsx(ko,{title:r("alert-generated-on"),value:s(n.alertTimeStamp),"data-testid":"alert-details--alert-generated-on"})}),n.alertDuration&&_.jsx(WR,{children:_.jsx(ko,{title:r("duration"),value:n.alertDuration,"data-testid":"alert-details--duration"})})]})]})]})]})},Rpe=({alertInstanceId:e})=>{const{data:t,isError:n,isFetching:r,refetch:i}=Phe(e,{enabled:!!e,refetchOnWindowFocus:!1});At(()=>{i()},[e,i]);const o=(t==null?void 0:t.at(0))||{};return _.jsx(aN,{alert:o,isFetching:r,isError:n})},Mpe=({alertInstanceId:e})=>{const{data:t,isError:n,isFetching:r,refetch:i}=Dhe(e,{enabled:!!e,refetchOnWindowFocus:!1});At(()=>{i()},[e,i]);const o=(t==null?void 0:t.at(0))||{};return _.jsx(aN,{alert:o,isFetching:r,isError:n})},sN=({alertInstanceId:e,isHistorical:t})=>t?_.jsx(Rpe,{alertInstanceId:e}):_.jsx(Mpe,{alertInstanceId:e}),Ape=H("div")`
|
|
500
|
+
& > div {
|
|
501
|
+
padding: 0;
|
|
502
|
+
}
|
|
503
|
+
`,Dpe=H(Ko)`
|
|
504
|
+
padding: 10px;
|
|
505
|
+
margin-right: -20px;
|
|
506
|
+
`,Ipe=({alertInstanceId:e,isOpen:t,isHistorical:n,handleClose:r})=>_.jsx(Ine,{open:t,onClose:r,children:_.jsxs(Tn,{padding:"32px 40px",children:[_.jsx(Tn,{display:"flex",justifyContent:"flex-end",children:_.jsx(Dpe,{variant:"text",onClick:r,children:_.jsx(V_,{color:"action"})})}),_.jsx(Ape,{children:_.jsx(sN,{alertInstanceId:e,isHistorical:n})})]})}),Du="all",Y_="history",lN=e=>e===qi.INSTANCES?Rx:e===qi.HISTORY?zk:(e===qi.DEFINITIONS,Zg),$pe=H(la)`
|
|
507
|
+
display: flex;
|
|
508
|
+
flex: 1;
|
|
509
|
+
justify-content: space-between;
|
|
510
|
+
padding: 8px 12px;
|
|
511
|
+
border-radius: 12px;
|
|
512
|
+
background: ${({theme:e})=>e.extraColors.divider};
|
|
513
|
+
color: ${({theme:e})=>e.extraColors.textDark};
|
|
514
|
+
`,Lpe=H(Tn)`
|
|
515
|
+
display: flex;
|
|
516
|
+
flex: 1;
|
|
517
|
+
justify-content: space-between;
|
|
518
|
+
align-items: center;
|
|
519
|
+
|
|
520
|
+
padding: 3px 10px;
|
|
521
|
+
border-radius: 16px;
|
|
522
|
+
background: ${({theme:e})=>e.extraColors.textLight};
|
|
523
|
+
|
|
524
|
+
font-family: 'Roboto', sans-serif;
|
|
525
|
+
font-size: 13px;
|
|
526
|
+
line-height: 18px;
|
|
527
|
+
letter-spacing: 0.16px;
|
|
528
|
+
color: ${({theme:e})=>e.extraColors.textDark};
|
|
529
|
+
`,w1=({active:e,count:t,title:n,onClick:r})=>{var u,d;const{palette:i,extraColors:o}=or(),a={[gr.POWER]:{background:i.warning.main,color:o.textLight},[gr.ENVIRONMENTAL]:{background:i.success.main,color:o.textLight},[gr.AUXILIARY]:{background:i.info.main,color:o.textLight}},s=(u=a[n.toLowerCase()])==null?void 0:u.background,l=(d=a[n.toLowerCase()])==null?void 0:d.color;return _.jsxs($pe,{onClick:()=>r(),"data-testid":`alert-filter-button-${n}`,sx:{...e&&{background:o.textDark,color:o.textLight}},children:[_.jsxs(Tn,{display:"flex",columnGap:"34px",overflow:"hidden",children:[_.jsx(Lpe,{sx:{background:s,color:l},"data-testid":`alert-filter-count-${n}`,children:t}),_.jsx(Ye,{sx:{color:"inherit"},children:n})]}),_.jsx(Gk,{})]})},kpe=H(Zi)`
|
|
530
|
+
row-gap: 22px;
|
|
531
|
+
|
|
532
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
533
|
+
row-gap: 10px;
|
|
534
|
+
}
|
|
535
|
+
`,uN=H(Zi)`
|
|
536
|
+
row-gap: 12px;
|
|
537
|
+
flex-direction: column;
|
|
538
|
+
|
|
539
|
+
${({theme:e})=>e.breakpoints.down("xl")} {
|
|
540
|
+
flex-direction: row;
|
|
541
|
+
column-gap: 16px;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
545
|
+
flex-direction: column;
|
|
546
|
+
}
|
|
547
|
+
`,Npe=({title:e,items:t,selected:n,handleClose:r})=>{const{t:i}=yn("location"),o=ia(bv).querySelector("#dialogs"),a=[{label:e,mobileLabel:_.jsx(Ye,{variant:"h6",fontSize:14,children:e}),trigger:()=>r()},{label:i("cancel"),mobileLabel:_.jsx(V_,{color:"action",sx:{marginRight:"-32px"}}),trigger:()=>r()}];return _.jsx(m_,{container:o,actions:a,open:!0,fullWidth:!0,fullScreen:!0,PaperComponent:Ya,children:_.jsx(uN,{"data-testid":"alert-filter-list",children:t.map(s=>_.jsx(w1,{count:s.count,title:s.title,onClick:()=>{r(),s.onClick()},active:s.title.toLowerCase()===n},s.title))})})},cN=({title:e,selected:t,items:n})=>{const r=or(),i=Ha(r.breakpoints.down("sm")),[o,a]=XL(),s=Gn(()=>n.find(u=>u.title.toLowerCase()===t)||n[0],[n,t]),l=()=>{a(),o(_.jsx(Npe,{title:e,items:n,selected:t,handleClose:a}))};return _.jsxs(kpe,{children:[_.jsx(Ye,{variant:"h6",children:e}),i?_.jsx(w1,{count:s.count,title:s.title,onClick:l,active:!0}):_.jsx(uN,{"data-testid":"alert-filter-list",children:n.map(u=>_.jsx(w1,{count:u.count,title:u.title,onClick:u.onClick,active:u.title.toLowerCase()===t},u.title))})]})},dN=({leasedSpaceName:e,filters:t,disableOptionAll:n=!1,title:r,handleFilters:i,isDefinitionsView:o=!1})=>{const{t:a}=yn("location"),s=w=>({leasedSpaceName:e,...w&&{alertCategory:w},...Fhe.includes(t.type)&&{alertType:t.type}}),l=Gn(()=>o?qi.DEFINITIONS:t.type===qi.HISTORY?qi.HISTORY:qi.INSTANCES,[t.type,o]),u=Gn(()=>lN(l),[l]),{data:d}=u(s()),{data:h}=u(s(gr.POWER)),{data:p}=u(s(gr.ENVIRONMENTAL)),{data:g}=u(s(gr.AUXILIARY)),m=(d==null?void 0:d.totalElements)??0,y=(h==null?void 0:h.totalElements)??0,b=(p==null?void 0:p.totalElements)??0,x=(g==null?void 0:g.totalElements)??0,S=Gn(()=>{const w=[{title:a("alerts.categories.power"),count:y,onClick:()=>i("category",gr.POWER)},{title:a("alerts.categories.environmental"),count:b,onClick:()=>i("category",gr.ENVIRONMENTAL)},{title:a("alerts.categories.auxiliary"),count:x,onClick:()=>i("category",gr.AUXILIARY)}];return n||w.unshift({title:a("alerts.categories.all"),count:m,onClick:()=>i("category",Du)}),w},[a,y,b,x,n,m,i]);return _.jsx(cN,{title:r||a("alerts.categories.title"),items:S,selected:t.category})},X_=({leasedSpaceName:e,filters:t,disableOptionAll:n=!1,disableOptionHistory:r=!1,title:i,handleFilters:o,isDefinitionsView:a=!1})=>{const{t:s}=yn("location"),l=w=>({leasedSpaceName:e,alertType:w}),u=w=>{if(!w)return 0;const{totalElements:C}=w;return C||0},{data:d}=Rx(l(Nr.CRITICAL),{enabled:!a}),{data:h}=Rx(l(Nr.CUSTOM),{enabled:!a}),{data:p}=Zg(l(Nr.CRITICAL),{enabled:a}),{data:g}=Zg(l(Nr.CUSTOM),{enabled:a}),{data:m}=zk({leasedSpaceName:e},{enabled:!r}),y=Gn(()=>u(a?p:d),[p,d,a]),b=Gn(()=>u(a?g:h),[g,h,a]),x=Gn(()=>u(m),[m]),S=Gn(()=>{const w=[{title:s("alerts.types.critical"),count:y,onClick:()=>o("type",Nr.CRITICAL)},{title:s("alerts.types.custom"),count:b,onClick:()=>o("type",Nr.CUSTOM)}];return n||w.unshift({title:s("alerts.types.all"),count:y+b,onClick:()=>o("type",Du)}),r||w.push({title:s("alerts.types.history"),count:x,onClick:()=>o("type",Y_)}),w},[y,b,n,r,o,x,s]);return _.jsx(cN,{title:i||s("alerts.types.title"),items:S,selected:t.type})},Fpe=H("div")`
|
|
548
|
+
display: flex;
|
|
549
|
+
flex-direction: column;
|
|
550
|
+
align-items: center;
|
|
551
|
+
height: calc(100vh - 300px);
|
|
552
|
+
overflow-y: auto;
|
|
553
|
+
`,jpe=H(Tn)`
|
|
554
|
+
display: flex;
|
|
555
|
+
align-items: center;
|
|
556
|
+
justify-content: space-between;
|
|
557
|
+
margin-bottom: 20px;
|
|
558
|
+
|
|
559
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
560
|
+
flex-direction: column;
|
|
561
|
+
align-items: flex-start;
|
|
562
|
+
gap: 10px;
|
|
563
|
+
}
|
|
564
|
+
`,Bpe=e=>(e=e==null?void 0:e.toLowerCase(),[gr.AUXILIARY,gr.ENVIRONMENTAL,gr.POWER].find(t=>t.toLowerCase()===e)),Upe=e=>(e=e==null?void 0:e.toLowerCase(),[Nr.CRITICAL,Nr.CUSTOM].find(t=>t.toLowerCase()===e)),Wpe={shouldForwardProp:e=>!["$canBeClicked","$selected"].includes(e)},fN=H("div")`
|
|
565
|
+
margin-bottom: 15px;
|
|
566
|
+
width: 100%;
|
|
567
|
+
display: flex;
|
|
568
|
+
flex-direction: row;
|
|
569
|
+
align-items: center;
|
|
570
|
+
justify-content: space-between;
|
|
571
|
+
`,hN=H(Ye)`
|
|
572
|
+
fontfamily: Red Hat Display;
|
|
573
|
+
fontstyle: normal;
|
|
574
|
+
fontweight: 700;
|
|
575
|
+
fontsize: 20px;
|
|
576
|
+
lineheight: 24px;
|
|
577
|
+
`,pN=H("div",Wpe)`
|
|
578
|
+
display: flex;
|
|
579
|
+
flex-direction: column;
|
|
580
|
+
align-items: flex-start;
|
|
581
|
+
background: #ffffff;
|
|
582
|
+
padding: 16px;
|
|
583
|
+
gap: 10 px;
|
|
584
|
+
border-radius: 8px;
|
|
585
|
+
margin-bottom: 8px;
|
|
586
|
+
width: 100%;
|
|
587
|
+
box-shadow: 0px 12px 20px -12px rgba(0, 0, 0, 0.12), inset 0px 0px 0px 1px #e1e4e8;
|
|
588
|
+
${({$canBeClicked:e})=>e&&"cursor: pointer;"}
|
|
589
|
+
${({$selected:e})=>e&&"border: 1px solid black;"}
|
|
590
|
+
`,gN=H("div")`
|
|
591
|
+
display: flex;
|
|
592
|
+
flex-direction: column;
|
|
593
|
+
gap: 4px;
|
|
594
|
+
align-items: flex-start;
|
|
595
|
+
`,Hpe=H("div")`
|
|
596
|
+
display: flex;
|
|
597
|
+
flex-direction: row;
|
|
598
|
+
gap: 8px;
|
|
599
|
+
align-items: flex-start;
|
|
600
|
+
`,zpe=H(Ye)`
|
|
601
|
+
font-family: Open Sans;
|
|
602
|
+
font-style: normal;
|
|
603
|
+
font-weight: 700;
|
|
604
|
+
font-size: 14px;
|
|
605
|
+
line-height: 24px;
|
|
606
|
+
letter-spacing: 0.1px;
|
|
607
|
+
color: #000000;
|
|
608
|
+
`,Vpe=H(Ye)`
|
|
609
|
+
font-family: Open Sans;
|
|
610
|
+
font-style: normal;
|
|
611
|
+
font-weight: 400;
|
|
612
|
+
font-size: 14px;
|
|
613
|
+
line-height: 24px;
|
|
614
|
+
letter-spacing: 0.25px;
|
|
615
|
+
color: #000000;
|
|
616
|
+
`,Gpe=H("div")`
|
|
617
|
+
display: flex;
|
|
618
|
+
`,qpe=H("div")`
|
|
619
|
+
display: flex;
|
|
620
|
+
justify-content: space-between;
|
|
621
|
+
width: 100%;
|
|
622
|
+
|
|
623
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
624
|
+
flex-direction: column;
|
|
625
|
+
gap: 12px;
|
|
626
|
+
}
|
|
627
|
+
`,Kpe=H($L)`
|
|
628
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
629
|
+
justify-content: space-between;
|
|
630
|
+
}
|
|
631
|
+
`,zR=H(cx)`
|
|
632
|
+
& .${pn.switchBase}.${pn.disabled} {
|
|
633
|
+
pointer-events: none;
|
|
634
|
+
cursor: default;
|
|
635
|
+
}
|
|
636
|
+
& .${pn.switchBase}.${pn.checked}.${pn.disabled} {
|
|
637
|
+
color: ${({theme:e})=>e.palette.primary.main};
|
|
638
|
+
}
|
|
639
|
+
& .${pn.switchBase}.${pn.checked} + .${pn.track} {
|
|
640
|
+
color: ${({theme:e})=>e.palette.primary.main};
|
|
641
|
+
opacity: 0.5;
|
|
642
|
+
}
|
|
643
|
+
`,Ype=H(la)`
|
|
644
|
+
flex: 1;
|
|
645
|
+
display: grid;
|
|
646
|
+
grid-template-columns: minmax(28px, 50px) 1fr 24px;
|
|
647
|
+
column-gap: 20px;
|
|
648
|
+
text-align: left;
|
|
649
|
+
padding: 8px 12px;
|
|
650
|
+
border-radius: 12px;
|
|
651
|
+
line-height: 18px;
|
|
652
|
+
background-color: ${({theme:e})=>e.extraColors.divider};
|
|
653
|
+
color: ${({theme:e})=>e.extraColors.textDark};
|
|
654
|
+
`,Xpe=H(Ko)`
|
|
655
|
+
line-height: 18px;
|
|
656
|
+
`,Zpe=H(Tn)`
|
|
657
|
+
width: min-content;
|
|
658
|
+
padding: 3px 10px;
|
|
659
|
+
background-color: ${({theme:e})=>e.extraColors.textLight};
|
|
660
|
+
border-radius: 16px;
|
|
661
|
+
|
|
662
|
+
font-family: 'Roboto', sans-serif;
|
|
663
|
+
font-size: 13px;
|
|
664
|
+
line-height: 18px;
|
|
665
|
+
letter-spacing: 0.16px;
|
|
666
|
+
text-align: center;
|
|
667
|
+
`,Qpe=({"data-testid":e,...t})=>{const{t:n}=yn("common");return _.jsx(Xpe,{...t,variant:"contained",color:"primary",size:"small","data-testid":e,children:n("customize")})},Jpe=({alert:e,onClickCustomize:t})=>{const{t:n}=yn("location");return _.jsxs(qpe,{children:[_.jsxs(Kpe,{row:!0,children:[_.jsx(Pg,{control:_.jsx(zR,{color:"primary","data-testid":"email-alerts-switch",disabled:!0,checked:e.emailEnabledSubscription}),label:_.jsx(Ye,{variant:"body2",color:"textPrimary",children:n("customize-alert-dialog.email-alerts")})}),_.jsx(Pg,{control:_.jsx(zR,{color:"primary","data-testid":"sms-alerts-switch",disabled:!0,checked:e.smsEnabledSubscription}),label:_.jsx(Ye,{variant:"body2",color:"textPrimary",children:n("customize-alert-dialog.sms-alerts")})})]}),_.jsx(Qpe,{onClick:t,sx:{height:36},"data-testid":"customize-button"})]})},ege=(e,t)=>{switch(t){case Nr.CUSTOM:return e("customize-alert-dialog.success-custom-updated");case Nr.CRITICAL:return e("customize-alert-dialog.success-critical-updated");default:return e("customize-alert-dialog.success-updated")}},tge=(e,t)=>{switch(t){case"THRESHOLD_VALIDATION_ERROR":return e("customize-alert-dialog.threshold-validation-error");case"CRITICAL_ENROLLMENT_OPERATOR_AND_THRESHOLD_EMPTY":return e("customize-alert-dialog.critical-enrollment-operator-and-threshold-empty");default:return e("customize-alert-dialog.server-error")}};var nge=function(t){return rge(t)&&!ige(t)};function rge(e){return!!e&&typeof e=="object"}function ige(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||sge(e)}var oge=typeof Symbol=="function"&&Symbol.for,age=oge?Symbol.for("react.element"):60103;function sge(e){return e.$$typeof===age}function lge(e){return Array.isArray(e)?[]:{}}function em(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ef(lge(e),e,t):e}function uge(e,t,n){return e.concat(t).map(function(r){return em(r,n)})}function cge(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(i){r[i]=em(e[i],n)}),Object.keys(t).forEach(function(i){!n.isMergeableObject(t[i])||!e[i]?r[i]=em(t[i],n):r[i]=ef(e[i],t[i],n)}),r}function ef(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||uge,n.isMergeableObject=n.isMergeableObject||nge;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):cge(e,t,n):em(t,n)}ef.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return ef(r,i,n)},{})};var _1=ef,mN=typeof global=="object"&&global&&global.Object===Object&&global,dge=typeof self=="object"&&self&&self.Object===Object&&self,To=mN||dge||Function("return this")(),za=To.Symbol,vN=Object.prototype,fge=vN.hasOwnProperty,hge=vN.toString,Kc=za?za.toStringTag:void 0;function pge(e){var t=fge.call(e,Kc),n=e[Kc];try{e[Kc]=void 0;var r=!0}catch{}var i=hge.call(e);return r&&(t?e[Kc]=n:delete e[Kc]),i}var gge=Object.prototype,mge=gge.toString;function vge(e){return mge.call(e)}var yge="[object Null]",bge="[object Undefined]",VR=za?za.toStringTag:void 0;function dl(e){return e==null?e===void 0?bge:yge:VR&&VR in Object(e)?pge(e):vge(e)}function yN(e,t){return function(n){return e(t(n))}}var Z_=yN(Object.getPrototypeOf,Object);function fl(e){return e!=null&&typeof e=="object"}var xge="[object Object]",wge=Function.prototype,_ge=Object.prototype,bN=wge.toString,Cge=_ge.hasOwnProperty,Sge=bN.call(Object);function GR(e){if(!fl(e)||dl(e)!=xge)return!1;var t=Z_(e);if(t===null)return!0;var n=Cge.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&bN.call(n)==Sge}function Tge(){this.__data__=[],this.size=0}function xN(e,t){return e===t||e!==e&&t!==t}function Iv(e,t){for(var n=e.length;n--;)if(xN(e[n][0],t))return n;return-1}var Ege=Array.prototype,Oge=Ege.splice;function Pge(e){var t=this.__data__,n=Iv(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Oge.call(t,n,1),--this.size,!0}function Rge(e){var t=this.__data__,n=Iv(t,e);return n<0?void 0:t[n][1]}function Mge(e){return Iv(this.__data__,e)>-1}function Age(e,t){var n=this.__data__,r=Iv(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function ca(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ca.prototype.clear=Tge;ca.prototype.delete=Pge;ca.prototype.get=Rge;ca.prototype.has=Mge;ca.prototype.set=Age;function Dge(){this.__data__=new ca,this.size=0}function Ige(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function $ge(e){return this.__data__.get(e)}function Lge(e){return this.__data__.has(e)}function Ff(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var kge="[object AsyncFunction]",Nge="[object Function]",Fge="[object GeneratorFunction]",jge="[object Proxy]";function wN(e){if(!Ff(e))return!1;var t=dl(e);return t==Nge||t==Fge||t==kge||t==jge}var f0=To["__core-js_shared__"],qR=function(){var e=/[^.]+$/.exec(f0&&f0.keys&&f0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Bge(e){return!!qR&&qR in e}var Uge=Function.prototype,Wge=Uge.toString;function hl(e){if(e!=null){try{return Wge.call(e)}catch{}try{return e+""}catch{}}return""}var Hge=/[\\^$.*+?()[\]{}|]/g,zge=/^\[object .+?Constructor\]$/,Vge=Function.prototype,Gge=Object.prototype,qge=Vge.toString,Kge=Gge.hasOwnProperty,Yge=RegExp("^"+qge.call(Kge).replace(Hge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Xge(e){if(!Ff(e)||Bge(e))return!1;var t=wN(e)?Yge:zge;return t.test(hl(e))}function Zge(e,t){return e==null?void 0:e[t]}function pl(e,t){var n=Zge(e,t);return Xge(n)?n:void 0}var tf=pl(To,"Map"),nf=pl(Object,"create");function Qge(){this.__data__=nf?nf(null):{},this.size=0}function Jge(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var eme="__lodash_hash_undefined__",tme=Object.prototype,nme=tme.hasOwnProperty;function rme(e){var t=this.__data__;if(nf){var n=t[e];return n===eme?void 0:n}return nme.call(t,e)?t[e]:void 0}var ime=Object.prototype,ome=ime.hasOwnProperty;function ame(e){var t=this.__data__;return nf?t[e]!==void 0:ome.call(t,e)}var sme="__lodash_hash_undefined__";function lme(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=nf&&t===void 0?sme:t,this}function rl(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}rl.prototype.clear=Qge;rl.prototype.delete=Jge;rl.prototype.get=rme;rl.prototype.has=ame;rl.prototype.set=lme;function ume(){this.size=0,this.__data__={hash:new rl,map:new(tf||ca),string:new rl}}function cme(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function $v(e,t){var n=e.__data__;return cme(t)?n[typeof t=="string"?"string":"hash"]:n.map}function dme(e){var t=$v(this,e).delete(e);return this.size-=t?1:0,t}function fme(e){return $v(this,e).get(e)}function hme(e){return $v(this,e).has(e)}function pme(e,t){var n=$v(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Ja(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ja.prototype.clear=ume;Ja.prototype.delete=dme;Ja.prototype.get=fme;Ja.prototype.has=hme;Ja.prototype.set=pme;var gme=200;function mme(e,t){var n=this.__data__;if(n instanceof ca){var r=n.__data__;if(!tf||r.length<gme-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ja(r)}return n.set(e,t),this.size=n.size,this}function ec(e){var t=this.__data__=new ca(e);this.size=t.size}ec.prototype.clear=Dge;ec.prototype.delete=Ige;ec.prototype.get=$ge;ec.prototype.has=Lge;ec.prototype.set=mme;function vme(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var KR=function(){try{var e=pl(Object,"defineProperty");return e({},"",{}),e}catch{}}();function _N(e,t,n){t=="__proto__"&&KR?KR(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var yme=Object.prototype,bme=yme.hasOwnProperty;function CN(e,t,n){var r=e[t];(!(bme.call(e,t)&&xN(r,n))||n===void 0&&!(t in e))&&_N(e,t,n)}function Lv(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=void 0;l===void 0&&(l=e[s]),i?_N(n,s,l):CN(n,s,l)}return n}function xme(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var wme="[object Arguments]";function YR(e){return fl(e)&&dl(e)==wme}var SN=Object.prototype,_me=SN.hasOwnProperty,Cme=SN.propertyIsEnumerable,Sme=YR(function(){return arguments}())?YR:function(e){return fl(e)&&_me.call(e,"callee")&&!Cme.call(e,"callee")},jf=Array.isArray;function Tme(){return!1}var TN=typeof exports=="object"&&exports&&!exports.nodeType&&exports,XR=TN&&typeof module=="object"&&module&&!module.nodeType&&module,Eme=XR&&XR.exports===TN,ZR=Eme?To.Buffer:void 0,Ome=ZR?ZR.isBuffer:void 0,EN=Ome||Tme,Pme=9007199254740991,Rme=/^(?:0|[1-9]\d*)$/;function Mme(e,t){var n=typeof e;return t=t??Pme,!!t&&(n=="number"||n!="symbol"&&Rme.test(e))&&e>-1&&e%1==0&&e<t}var Ame=9007199254740991;function ON(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ame}var Dme="[object Arguments]",Ime="[object Array]",$me="[object Boolean]",Lme="[object Date]",kme="[object Error]",Nme="[object Function]",Fme="[object Map]",jme="[object Number]",Bme="[object Object]",Ume="[object RegExp]",Wme="[object Set]",Hme="[object String]",zme="[object WeakMap]",Vme="[object ArrayBuffer]",Gme="[object DataView]",qme="[object Float32Array]",Kme="[object Float64Array]",Yme="[object Int8Array]",Xme="[object Int16Array]",Zme="[object Int32Array]",Qme="[object Uint8Array]",Jme="[object Uint8ClampedArray]",eve="[object Uint16Array]",tve="[object Uint32Array]",en={};en[qme]=en[Kme]=en[Yme]=en[Xme]=en[Zme]=en[Qme]=en[Jme]=en[eve]=en[tve]=!0;en[Dme]=en[Ime]=en[Vme]=en[$me]=en[Gme]=en[Lme]=en[kme]=en[Nme]=en[Fme]=en[jme]=en[Bme]=en[Ume]=en[Wme]=en[Hme]=en[zme]=!1;function nve(e){return fl(e)&&ON(e.length)&&!!en[dl(e)]}function Q_(e){return function(t){return e(t)}}var PN=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Dd=PN&&typeof module=="object"&&module&&!module.nodeType&&module,rve=Dd&&Dd.exports===PN,h0=rve&&mN.process,Iu=function(){try{var e=Dd&&Dd.require&&Dd.require("util").types;return e||h0&&h0.binding&&h0.binding("util")}catch{}}(),QR=Iu&&Iu.isTypedArray,ive=QR?Q_(QR):nve,ove=Object.prototype,ave=ove.hasOwnProperty;function RN(e,t){var n=jf(e),r=!n&&Sme(e),i=!n&&!r&&EN(e),o=!n&&!r&&!i&&ive(e),a=n||r||i||o,s=a?xme(e.length,String):[],l=s.length;for(var u in e)(t||ave.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Mme(u,l)))&&s.push(u);return s}var sve=Object.prototype;function J_(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||sve;return e===n}var lve=yN(Object.keys,Object),uve=Object.prototype,cve=uve.hasOwnProperty;function dve(e){if(!J_(e))return lve(e);var t=[];for(var n in Object(e))cve.call(e,n)&&n!="constructor"&&t.push(n);return t}function MN(e){return e!=null&&ON(e.length)&&!wN(e)}function eC(e){return MN(e)?RN(e):dve(e)}function fve(e,t){return e&&Lv(t,eC(t),e)}function hve(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var pve=Object.prototype,gve=pve.hasOwnProperty;function mve(e){if(!Ff(e))return hve(e);var t=J_(e),n=[];for(var r in e)r=="constructor"&&(t||!gve.call(e,r))||n.push(r);return n}function tC(e){return MN(e)?RN(e,!0):mve(e)}function vve(e,t){return e&&Lv(t,tC(t),e)}var AN=typeof exports=="object"&&exports&&!exports.nodeType&&exports,JR=AN&&typeof module=="object"&&module&&!module.nodeType&&module,yve=JR&&JR.exports===AN,eM=yve?To.Buffer:void 0,tM=eM?eM.allocUnsafe:void 0;function bve(e,t){if(t)return e.slice();var n=e.length,r=tM?tM(n):new e.constructor(n);return e.copy(r),r}function DN(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function xve(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function IN(){return[]}var wve=Object.prototype,_ve=wve.propertyIsEnumerable,nM=Object.getOwnPropertySymbols,nC=nM?function(e){return e==null?[]:(e=Object(e),xve(nM(e),function(t){return _ve.call(e,t)}))}:IN;function Cve(e,t){return Lv(e,nC(e),t)}function $N(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Sve=Object.getOwnPropertySymbols,LN=Sve?function(e){for(var t=[];e;)$N(t,nC(e)),e=Z_(e);return t}:IN;function Tve(e,t){return Lv(e,LN(e),t)}function kN(e,t,n){var r=t(e);return jf(e)?r:$N(r,n(e))}function Eve(e){return kN(e,eC,nC)}function Ove(e){return kN(e,tC,LN)}var C1=pl(To,"DataView"),S1=pl(To,"Promise"),T1=pl(To,"Set"),E1=pl(To,"WeakMap"),rM="[object Map]",Pve="[object Object]",iM="[object Promise]",oM="[object Set]",aM="[object WeakMap]",sM="[object DataView]",Rve=hl(C1),Mve=hl(tf),Ave=hl(S1),Dve=hl(T1),Ive=hl(E1),zo=dl;(C1&&zo(new C1(new ArrayBuffer(1)))!=sM||tf&&zo(new tf)!=rM||S1&&zo(S1.resolve())!=iM||T1&&zo(new T1)!=oM||E1&&zo(new E1)!=aM)&&(zo=function(e){var t=dl(e),n=t==Pve?e.constructor:void 0,r=n?hl(n):"";if(r)switch(r){case Rve:return sM;case Mve:return rM;case Ave:return iM;case Dve:return oM;case Ive:return aM}return t});var $ve=Object.prototype,Lve=$ve.hasOwnProperty;function kve(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Lve.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var lM=To.Uint8Array;function rC(e){var t=new e.constructor(e.byteLength);return new lM(t).set(new lM(e)),t}function Nve(e,t){var n=t?rC(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Fve=/\w*$/;function jve(e){var t=new e.constructor(e.source,Fve.exec(e));return t.lastIndex=e.lastIndex,t}var uM=za?za.prototype:void 0,cM=uM?uM.valueOf:void 0;function Bve(e){return cM?Object(cM.call(e)):{}}function Uve(e,t){var n=t?rC(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Wve="[object Boolean]",Hve="[object Date]",zve="[object Map]",Vve="[object Number]",Gve="[object RegExp]",qve="[object Set]",Kve="[object String]",Yve="[object Symbol]",Xve="[object ArrayBuffer]",Zve="[object DataView]",Qve="[object Float32Array]",Jve="[object Float64Array]",eye="[object Int8Array]",tye="[object Int16Array]",nye="[object Int32Array]",rye="[object Uint8Array]",iye="[object Uint8ClampedArray]",oye="[object Uint16Array]",aye="[object Uint32Array]";function sye(e,t,n){var r=e.constructor;switch(t){case Xve:return rC(e);case Wve:case Hve:return new r(+e);case Zve:return Nve(e,n);case Qve:case Jve:case eye:case tye:case nye:case rye:case iye:case oye:case aye:return Uve(e,n);case zve:return new r;case Vve:case Kve:return new r(e);case Gve:return jve(e);case qve:return new r;case Yve:return Bve(e)}}var dM=Object.create,lye=function(){function e(){}return function(t){if(!Ff(t))return{};if(dM)return dM(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function uye(e){return typeof e.constructor=="function"&&!J_(e)?lye(Z_(e)):{}}var cye="[object Map]";function dye(e){return fl(e)&&zo(e)==cye}var fM=Iu&&Iu.isMap,fye=fM?Q_(fM):dye,hye="[object Set]";function pye(e){return fl(e)&&zo(e)==hye}var hM=Iu&&Iu.isSet,gye=hM?Q_(hM):pye,mye=1,vye=2,yye=4,NN="[object Arguments]",bye="[object Array]",xye="[object Boolean]",wye="[object Date]",_ye="[object Error]",FN="[object Function]",Cye="[object GeneratorFunction]",Sye="[object Map]",Tye="[object Number]",jN="[object Object]",Eye="[object RegExp]",Oye="[object Set]",Pye="[object String]",Rye="[object Symbol]",Mye="[object WeakMap]",Aye="[object ArrayBuffer]",Dye="[object DataView]",Iye="[object Float32Array]",$ye="[object Float64Array]",Lye="[object Int8Array]",kye="[object Int16Array]",Nye="[object Int32Array]",Fye="[object Uint8Array]",jye="[object Uint8ClampedArray]",Bye="[object Uint16Array]",Uye="[object Uint32Array]",Zt={};Zt[NN]=Zt[bye]=Zt[Aye]=Zt[Dye]=Zt[xye]=Zt[wye]=Zt[Iye]=Zt[$ye]=Zt[Lye]=Zt[kye]=Zt[Nye]=Zt[Sye]=Zt[Tye]=Zt[jN]=Zt[Eye]=Zt[Oye]=Zt[Pye]=Zt[Rye]=Zt[Fye]=Zt[jye]=Zt[Bye]=Zt[Uye]=!0;Zt[_ye]=Zt[FN]=Zt[Mye]=!1;function Id(e,t,n,r,i,o){var a,s=t&mye,l=t&vye,u=t&yye;if(a!==void 0)return a;if(!Ff(e))return e;var d=jf(e);if(d){if(a=kve(e),!s)return DN(e,a)}else{var h=zo(e),p=h==FN||h==Cye;if(EN(e))return bve(e,s);if(h==jN||h==NN||p&&!i){if(a=l||p?{}:uye(e),!s)return l?Tve(e,vve(a,e)):Cve(e,fve(a,e))}else{if(!Zt[h])return i?e:{};a=sye(e,h,s)}}o||(o=new ec);var g=o.get(e);if(g)return g;o.set(e,a),gye(e)?e.forEach(function(b){a.add(Id(b,t,n,b,e,o))}):fye(e)&&e.forEach(function(b,x){a.set(x,Id(b,t,n,x,e,o))});var m=u?l?Ove:Eve:l?tC:eC,y=d?void 0:m(e);return vme(y||e,function(b,x){y&&(x=b,b=e[x]),CN(a,x,Id(b,t,n,x,e,o))}),a}var Wye=1,Hye=4;function ap(e){return Id(e,Wye|Hye)}var pM=Array.isArray,gM=Object.keys,zye=Object.prototype.hasOwnProperty,Vye=typeof Element<"u";function O1(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var n=pM(e),r=pM(t),i,o,a;if(n&&r){if(o=e.length,o!=t.length)return!1;for(i=o;i--!==0;)if(!O1(e[i],t[i]))return!1;return!0}if(n!=r)return!1;var s=e instanceof Date,l=t instanceof Date;if(s!=l)return!1;if(s&&l)return e.getTime()==t.getTime();var u=e instanceof RegExp,d=t instanceof RegExp;if(u!=d)return!1;if(u&&d)return e.toString()==t.toString();var h=gM(e);if(o=h.length,o!==gM(t).length)return!1;for(i=o;i--!==0;)if(!zye.call(t,h[i]))return!1;if(Vye&&e instanceof Element&&t instanceof Element)return e===t;for(i=o;i--!==0;)if(a=h[i],!(a==="_owner"&&e.$$typeof)&&!O1(e[a],t[a]))return!1;return!0}return e!==e&&t!==t}var Gye=function(t,n){try{return O1(t,n)}catch(r){if(r.message&&r.message.match(/stack|recursion/i)||r.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",r.name,r.message),!1;throw r}};const Cs=Di(Gye);var qye=4;function mM(e){return Id(e,qye)}function BN(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var Kye="[object Symbol]";function iC(e){return typeof e=="symbol"||fl(e)&&dl(e)==Kye}var Yye="Expected a function";function oC(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Yye);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(oC.Cache||Ja),n}oC.Cache=Ja;var Xye=500;function Zye(e){var t=oC(e,function(r){return n.size===Xye&&n.clear(),r}),n=t.cache;return t}var Qye=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Jye=/\\(\\)?/g,ebe=Zye(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Qye,function(n,r,i,o){t.push(i?o.replace(Jye,"$1"):r||n)}),t});function tbe(e){if(typeof e=="string"||iC(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var vM=za?za.prototype:void 0,yM=vM?vM.toString:void 0;function UN(e){if(typeof e=="string")return e;if(jf(e))return BN(e,UN)+"";if(iC(e))return yM?yM.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function nbe(e){return e==null?"":UN(e)}function WN(e){return jf(e)?BN(e,tbe):iC(e)?[e]:DN(ebe(nbe(e)))}function Zn(){return Zn=Object.assign||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},Zn.apply(this,arguments)}function HN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var kv=cf(void 0);kv.displayName="FormikContext";var rbe=kv.Provider;kv.Consumer;function ibe(){var e=ia(kv);return e}var vi=function(t){return typeof t=="function"},Nv=function(t){return t!==null&&typeof t=="object"},obe=function(t){return String(Math.floor(Number(t)))===t},p0=function(t){return Object.prototype.toString.call(t)==="[object String]"},g0=function(t){return Nv(t)&&vi(t.then)};function Lr(e,t,n,r){r===void 0&&(r=0);for(var i=WN(t);e&&r<i.length;)e=e[i[r++]];return r!==i.length&&!e||e===void 0?n:e}function Vs(e,t,n){for(var r=mM(e),i=r,o=0,a=WN(t);o<a.length-1;o++){var s=a[o],l=Lr(e,a.slice(0,o+1));if(l&&(Nv(l)||Array.isArray(l)))i=i[s]=mM(l);else{var u=a[o+1];i=i[s]=obe(u)&&Number(u)>=0?[]:{}}}return(o===0?e:i)[a[o]]===n?e:(n===void 0?delete i[a[o]]:i[a[o]]=n,o===0&&n===void 0&&delete r[a[o]],r)}function zN(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var i=0,o=Object.keys(e);i<o.length;i++){var a=o[i],s=e[a];Nv(s)?n.get(s)||(n.set(s,!0),r[a]=Array.isArray(s)?[]:{},zN(s,t,n,r[a])):r[a]=t}return r}function abe(e,t){switch(t.type){case"SET_VALUES":return Zn({},e,{values:t.payload});case"SET_TOUCHED":return Zn({},e,{touched:t.payload});case"SET_ERRORS":return Cs(e.errors,t.payload)?e:Zn({},e,{errors:t.payload});case"SET_STATUS":return Zn({},e,{status:t.payload});case"SET_ISSUBMITTING":return Zn({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Zn({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Zn({},e,{values:Vs(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Zn({},e,{touched:Vs(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Zn({},e,{errors:Vs(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Zn({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Zn({},e,{touched:zN(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return Zn({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return Zn({},e,{isSubmitting:!1});default:return e}}var vs={},sp={};function sbe(e){var t=e.validateOnChange,n=t===void 0?!0:t,r=e.validateOnBlur,i=r===void 0?!0:r,o=e.validateOnMount,a=o===void 0?!1:o,s=e.isInitialValid,l=e.enableReinitialize,u=l===void 0?!1:l,d=e.onSubmit,h=HN(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),p=Zn({validateOnChange:n,validateOnBlur:i,validateOnMount:a,onSubmit:d},h),g=Rn(p.initialValues),m=Rn(p.initialErrors||vs),y=Rn(p.initialTouched||sp),b=Rn(p.initialStatus),x=Rn(!1),S=Rn({});At(function(){return x.current=!0,function(){x.current=!1}},[]);var w=Nn(0),C=w[1],R=Rn({values:ap(p.initialValues),errors:ap(p.initialErrors)||vs,touched:ap(p.initialTouched)||sp,status:ap(p.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),O=R.current,T=Mt(function(Q){var ge=R.current;R.current=abe(ge,Q),ge!==R.current&&C(function(he){return he+1})},[]),A=Mt(function(Q,ge){return new Promise(function(he,Oe){var je=p.validate(Q,ge);je==null?he(vs):g0(je)?je.then(function(Je){he(Je||vs)},function(Je){Oe(Je)}):he(je)})},[p.validate]),L=Mt(function(Q,ge){var he=p.validationSchema,Oe=vi(he)?he(ge):he,je=ge&&Oe.validateAt?Oe.validateAt(ge,Q):ube(Q,Oe);return new Promise(function(Je,ze){je.then(function(){Je(vs)},function(Te){Te.name==="ValidationError"?Je(lbe(Te)):ze(Te)})})},[p.validationSchema]),I=Mt(function(Q,ge){return new Promise(function(he){return he(S.current[Q].validate(ge))})},[]),N=Mt(function(Q){var ge=Object.keys(S.current).filter(function(Oe){return vi(S.current[Oe].validate)}),he=ge.length>0?ge.map(function(Oe){return I(Oe,Lr(Q,Oe))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(he).then(function(Oe){return Oe.reduce(function(je,Je,ze){return Je==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Je&&(je=Vs(je,ge[ze],Je)),je},{})})},[I]),B=Mt(function(Q){return Promise.all([N(Q),p.validationSchema?L(Q):{},p.validate?A(Q):{}]).then(function(ge){var he=ge[0],Oe=ge[1],je=ge[2],Je=_1.all([he,Oe,je],{arrayMerge:cbe});return Je})},[p.validate,p.validationSchema,N,A,L]),U=gi(function(Q){return Q===void 0&&(Q=O.values),T({type:"SET_ISVALIDATING",payload:!0}),B(Q).then(function(ge){return x.current&&(T({type:"SET_ISVALIDATING",payload:!1}),T({type:"SET_ERRORS",payload:ge})),ge})});At(function(){a&&x.current===!0&&Cs(g.current,p.initialValues)&&U(g.current)},[a,U]);var z=Mt(function(Q){var ge=Q&&Q.values?Q.values:g.current,he=Q&&Q.errors?Q.errors:m.current?m.current:p.initialErrors||{},Oe=Q&&Q.touched?Q.touched:y.current?y.current:p.initialTouched||{},je=Q&&Q.status?Q.status:b.current?b.current:p.initialStatus;g.current=ge,m.current=he,y.current=Oe,b.current=je;var Je=function(){T({type:"RESET_FORM",payload:{isSubmitting:!!Q&&!!Q.isSubmitting,errors:he,touched:Oe,status:je,values:ge,isValidating:!!Q&&!!Q.isValidating,submitCount:Q&&Q.submitCount&&typeof Q.submitCount=="number"?Q.submitCount:0}})};if(p.onReset){var ze=p.onReset(O.values,pe);g0(ze)?ze.then(Je):Je()}else Je()},[p.initialErrors,p.initialStatus,p.initialTouched,p.onReset]);At(function(){x.current===!0&&!Cs(g.current,p.initialValues)&&u&&(g.current=p.initialValues,z(),a&&U(g.current))},[u,p.initialValues,z,a,U]),At(function(){u&&x.current===!0&&!Cs(m.current,p.initialErrors)&&(m.current=p.initialErrors||vs,T({type:"SET_ERRORS",payload:p.initialErrors||vs}))},[u,p.initialErrors]),At(function(){u&&x.current===!0&&!Cs(y.current,p.initialTouched)&&(y.current=p.initialTouched||sp,T({type:"SET_TOUCHED",payload:p.initialTouched||sp}))},[u,p.initialTouched]),At(function(){u&&x.current===!0&&!Cs(b.current,p.initialStatus)&&(b.current=p.initialStatus,T({type:"SET_STATUS",payload:p.initialStatus}))},[u,p.initialStatus,p.initialTouched]);var F=gi(function(Q){if(S.current[Q]&&vi(S.current[Q].validate)){var ge=Lr(O.values,Q),he=S.current[Q].validate(ge);return g0(he)?(T({type:"SET_ISVALIDATING",payload:!0}),he.then(function(Oe){return Oe}).then(function(Oe){T({type:"SET_FIELD_ERROR",payload:{field:Q,value:Oe}}),T({type:"SET_ISVALIDATING",payload:!1})})):(T({type:"SET_FIELD_ERROR",payload:{field:Q,value:he}}),Promise.resolve(he))}else if(p.validationSchema)return T({type:"SET_ISVALIDATING",payload:!0}),L(O.values,Q).then(function(Oe){return Oe}).then(function(Oe){T({type:"SET_FIELD_ERROR",payload:{field:Q,value:Lr(Oe,Q)}}),T({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),j=Mt(function(Q,ge){var he=ge.validate;S.current[Q]={validate:he}},[]),K=Mt(function(Q){delete S.current[Q]},[]),V=gi(function(Q,ge){T({type:"SET_TOUCHED",payload:Q});var he=ge===void 0?i:ge;return he?U(O.values):Promise.resolve()}),J=Mt(function(Q){T({type:"SET_ERRORS",payload:Q})},[]),oe=gi(function(Q,ge){var he=vi(Q)?Q(O.values):Q;T({type:"SET_VALUES",payload:he});var Oe=ge===void 0?n:ge;return Oe?U(he):Promise.resolve()}),ce=Mt(function(Q,ge){T({type:"SET_FIELD_ERROR",payload:{field:Q,value:ge}})},[]),le=gi(function(Q,ge,he){var Oe=vi(ge)?ge(Lr(O.values,Q)):ge;T({type:"SET_FIELD_VALUE",payload:{field:Q,value:Oe}});var je=he===void 0?n:he;return je?U(Vs(O.values,Q,Oe)):Promise.resolve()}),Me=Mt(function(Q,ge){var he=ge,Oe=Q,je;if(!p0(Q)){Q.persist&&Q.persist();var Je=Q.target?Q.target:Q.currentTarget,ze=Je.type,Te=Je.name,Ln=Je.id,Kn=Je.value,Vr=Je.checked;Je.outerHTML;var $e=Je.options,Pt=Je.multiple;he=ge||Te||Ln,Oe=/number|range/.test(ze)?(je=parseFloat(Kn),isNaN(je)?"":je):/checkbox/.test(ze)?fbe(Lr(O.values,he),Vr,Kn):$e&&Pt?dbe($e):Kn}he&&le(he,Oe)},[le,O.values]),ve=gi(function(Q){if(p0(Q))return function(ge){return Me(ge,Q)};Me(Q)}),ye=gi(function(Q,ge,he){ge===void 0&&(ge=!0),T({type:"SET_FIELD_TOUCHED",payload:{field:Q,value:ge}});var Oe=he===void 0?i:he;return Oe?U(O.values):Promise.resolve()}),Ce=Mt(function(Q,ge){Q.persist&&Q.persist();var he=Q.target,Oe=he.name,je=he.id;he.outerHTML;var Je=ge||Oe||je;ye(Je,!0)},[ye]),we=gi(function(Q){if(p0(Q))return function(ge){return Ce(ge,Q)};Ce(Q)}),fe=Mt(function(Q){vi(Q)?T({type:"SET_FORMIK_STATE",payload:Q}):T({type:"SET_FORMIK_STATE",payload:function(){return Q}})},[]),ue=Mt(function(Q){T({type:"SET_STATUS",payload:Q})},[]),Ne=Mt(function(Q){T({type:"SET_ISSUBMITTING",payload:Q})},[]),We=gi(function(){return T({type:"SUBMIT_ATTEMPT"}),U().then(function(Q){var ge=Q instanceof Error,he=!ge&&Object.keys(Q).length===0;if(he){var Oe;try{if(Oe=He(),Oe===void 0)return}catch(je){throw je}return Promise.resolve(Oe).then(function(je){return x.current&&T({type:"SUBMIT_SUCCESS"}),je}).catch(function(je){if(x.current)throw T({type:"SUBMIT_FAILURE"}),je})}else if(x.current&&(T({type:"SUBMIT_FAILURE"}),ge))throw Q})}),be=gi(function(Q){Q&&Q.preventDefault&&vi(Q.preventDefault)&&Q.preventDefault(),Q&&Q.stopPropagation&&vi(Q.stopPropagation)&&Q.stopPropagation(),We().catch(function(ge){console.warn("Warning: An unhandled error was caught from submitForm()",ge)})}),pe={resetForm:z,validateForm:U,validateField:F,setErrors:J,setFieldError:ce,setFieldTouched:ye,setFieldValue:le,setStatus:ue,setSubmitting:Ne,setTouched:V,setValues:oe,setFormikState:fe,submitForm:We},He=gi(function(){return d(O.values,pe)}),qe=gi(function(Q){Q&&Q.preventDefault&&vi(Q.preventDefault)&&Q.preventDefault(),Q&&Q.stopPropagation&&vi(Q.stopPropagation)&&Q.stopPropagation(),z()}),tt=Mt(function(Q){return{value:Lr(O.values,Q),error:Lr(O.errors,Q),touched:!!Lr(O.touched,Q),initialValue:Lr(g.current,Q),initialTouched:!!Lr(y.current,Q),initialError:Lr(m.current,Q)}},[O.errors,O.touched,O.values]),_t=Mt(function(Q){return{setValue:function(he,Oe){return le(Q,he,Oe)},setTouched:function(he,Oe){return ye(Q,he,Oe)},setError:function(he){return ce(Q,he)}}},[le,ye,ce]),Ct=Mt(function(Q){var ge=Nv(Q),he=ge?Q.name:Q,Oe=Lr(O.values,he),je={name:he,value:Oe,onChange:ve,onBlur:we};if(ge){var Je=Q.type,ze=Q.value,Te=Q.as,Ln=Q.multiple;Je==="checkbox"?ze===void 0?je.checked=!!Oe:(je.checked=!!(Array.isArray(Oe)&&~Oe.indexOf(ze)),je.value=ze):Je==="radio"?(je.checked=Oe===ze,je.value=ze):Te==="select"&&Ln&&(je.value=je.value||[],je.multiple=!0)}return je},[we,ve,O.values]),dn=Gn(function(){return!Cs(g.current,O.values)},[g.current,O.values]),Yt=Gn(function(){return typeof s<"u"?dn?O.errors&&Object.keys(O.errors).length===0:s!==!1&&vi(s)?s(p):s:O.errors&&Object.keys(O.errors).length===0},[s,dn,O.errors,p]),mt=Zn({},O,{initialValues:g.current,initialErrors:m.current,initialTouched:y.current,initialStatus:b.current,handleBlur:we,handleChange:ve,handleReset:qe,handleSubmit:be,resetForm:z,setErrors:J,setFormikState:fe,setFieldTouched:ye,setFieldValue:le,setFieldError:ce,setStatus:ue,setSubmitting:Ne,setTouched:V,setValues:oe,submitForm:We,validateForm:U,validateField:F,isValid:Yt,dirty:dn,unregisterField:K,registerField:j,getFieldProps:Ct,getFieldMeta:tt,getFieldHelpers:_t,validateOnBlur:i,validateOnChange:n,validateOnMount:a});return mt}function lbe(e){var t={};if(e.inner){if(e.inner.length===0)return Vs(t,e.path,e.message);for(var i=e.inner,n=Array.isArray(i),r=0,i=n?i:i[Symbol.iterator]();;){var o;if(n){if(r>=i.length)break;o=i[r++]}else{if(r=i.next(),r.done)break;o=r.value}var a=o;Lr(t,a.path)||(t=Vs(t,a.path,a.message))}}return t}function ube(e,t,n,r){n===void 0&&(n=!1);var i=P1(e);return t[n?"validateSync":"validate"](i,{abortEarly:!1,context:i})}function P1(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(i){return Array.isArray(i)===!0||GR(i)?P1(i):i!==""?i:void 0}):GR(e[r])?t[r]=P1(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function cbe(e,t,n){var r=e.slice();return t.forEach(function(o,a){if(typeof r[a]>"u"){var s=n.clone!==!1,l=s&&n.isMergeableObject(o);r[a]=l?_1(Array.isArray(o)?[]:{},o,n):o}else n.isMergeableObject(o)?r[a]=_1(e[a],o,n):e.indexOf(o)===-1&&r.push(o)}),r}function dbe(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function fbe(e,t,n){if(typeof e=="boolean")return!!t;var r=[],i=!1,o=-1;if(Array.isArray(e))r=e,o=e.indexOf(n),i=o>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!i?r.concat(n):i?r.slice(0,o).concat(r.slice(o+1)):r}var hbe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?gw:At;function gi(e){var t=Rn(e);return hbe(function(){t.current=e}),Mt(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current.apply(void 0,r)},[])}var pbe=ra(function(e,t){var n=e.action,r=HN(e,["action"]),i=n??"#",o=ibe(),a=o.handleReset,s=o.handleSubmit;return Xo("form",Zn({onSubmit:s,ref:t,onReset:a,action:i},r))});pbe.displayName="Form";function VN(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=VN(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Fv(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=VN(e))&&(r&&(r+=" "),r+=t);return r}let gbe={data:""},mbe=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||gbe},vbe=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,ybe=/\/\*[^]*?\*\/| +/g,bM=/\n+/g,Is=(e,t)=>{let n="",r="",i="";for(let o in e){let a=e[o];o[0]=="@"?o[1]=="i"?n=o+" "+a+";":r+=o[1]=="f"?Is(a,o):o+"{"+Is(a,o[1]=="k"?"":t)+"}":typeof a=="object"?r+=Is(a,t?t.replace(/([^,])+/g,s=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):o):a!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Is.p?Is.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},No={},GN=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+GN(e[n]);return t}return e},bbe=(e,t,n,r,i)=>{let o=GN(e),a=No[o]||(No[o]=(l=>{let u=0,d=11;for(;u<l.length;)d=101*d+l.charCodeAt(u++)>>>0;return"go"+d})(o));if(!No[a]){let l=o!==e?e:(u=>{let d,h,p=[{}];for(;d=vbe.exec(u.replace(ybe,""));)d[4]?p.shift():d[3]?(h=d[3].replace(bM," ").trim(),p.unshift(p[0][h]=p[0][h]||{})):p[0][d[1]]=d[2].replace(bM," ").trim();return p[0]})(e);No[a]=Is(i?{["@keyframes "+a]:l}:l,n?"":"."+a)}let s=n&&No.g?No.g:null;return n&&(No.g=No[a]),((l,u,d,h)=>{h?u.data=u.data.replace(h,l):u.data.indexOf(l)===-1&&(u.data=d?l+u.data:u.data+l)})(No[a],t,r,s),a},xbe=(e,t,n)=>e.reduce((r,i,o)=>{let a=t[o];if(a&&a.call){let s=a(n),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;a=l?"."+l:s&&typeof s=="object"?s.props?"":Is(s,""):s===!1?"":s}return r+i+(a??"")},"");function aC(e){let t=this||{},n=e.call?e(t.p):e;return bbe(n.unshift?n.raw?xbe(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,mbe(t.target),t.g,t.o,t.k)}aC.bind({g:1});aC.bind({k:1});function wbe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _be(e,t,n){return t&&wbe(e.prototype,t),e}function Na(){return Na=Object.assign||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},Na.apply(this,arguments)}function Cbe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function sC(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var xM=function(){return""},Sbe=lt.createContext({enqueueSnackbar:xM,closeSnackbar:xM}),Ss={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},lp="unmounted",Xl="exited",Zl="entering",Yc="entered",wM="exiting",lC=function(e){Cbe(t,e);function t(r){var i;i=e.call(this,r)||this;var o=r.appear,a;return i.appearStatus=null,r.in?o?(a=Xl,i.appearStatus=Zl):a=Yc:r.unmountOnExit||r.mountOnEnter?a=lp:a=Xl,i.state={status:a},i.nextCallback=null,i}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===lp?{status:Xl}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==Zl&&a!==Yc&&(o=Zl):(a===Zl||a===Yc)&&(o=wM)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o=i,a=i;return i!=null&&typeof i!="number"&&typeof i!="string"&&(a=i.exit,o=i.enter),{exit:a,enter:o}},n.updateStatus=function(i,o){i===void 0&&(i=!1),o!==null?(this.cancelNextCallback(),o===Zl?this.performEnter(i):this.performExit()):this.props.unmountOnExit&&this.state.status===Xl&&this.setState({status:lp})},n.performEnter=function(i){var o=this,a=this.props.enter,s=i,l=this.getTimeouts();if(!i&&!a){this.safeSetState({status:Yc},function(){o.props.onEntered&&o.props.onEntered(o.node,s)});return}this.props.onEnter&&this.props.onEnter(this.node,s),this.safeSetState({status:Zl},function(){o.props.onEntering&&o.props.onEntering(o.node,s),o.onTransitionEnd(l.enter,function(){o.safeSetState({status:Yc},function(){o.props.onEntered&&o.props.onEntered(o.node,s)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts();if(!o){this.safeSetState({status:Xl},function(){i.props.onExited&&i.props.onExited(i.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:wM},function(){i.props.onExiting&&i.props.onExiting(i.node),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Xl},function(){i.props.onExited&&i.props.onExited(i.node)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(){a&&(a=!1,o.nextCallback=null,i())},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=i==null&&!this.props.addEndListener;if(!this.node||a){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===lp)return null;var o=this.props,a=o.children,s=sC(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return a(i,s)},_be(t,[{key:"node",get:function(){var i,o=(i=this.props.nodeRef)===null||i===void 0?void 0:i.current;if(!o)throw new Error("notistack - Custom snackbar is not refForwarding");return o}}]),t}(lt.Component);function Ql(){}lC.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ql,onEntering:Ql,onEntered:Ql,onExit:Ql,onExiting:Ql,onExited:Ql};function _M(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function R1(e,t){return Gn(function(){return e==null&&t==null?null:function(n){_M(e,n),_M(t,n)}},[e,t])}function tm(e){var t=e.timeout,n=e.style,r=n===void 0?{}:n,i=e.mode;return{duration:typeof t=="object"?t[i]||0:t,easing:r.transitionTimingFunction,delay:r.transitionDelay}}var M1={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},qN=function(t){t.scrollTop=t.scrollTop},CM=function(t){return Math.round(t)+"ms"};function ou(e,t){e===void 0&&(e=["all"]);var n=t||{},r=n.duration,i=r===void 0?300:r,o=n.easing,a=o===void 0?M1.easeInOut:o,s=n.delay,l=s===void 0?0:s,u=Array.isArray(e)?e:[e];return u.map(function(d){var h=typeof i=="string"?i:CM(i),p=typeof l=="string"?l:CM(l);return d+" "+h+" "+a+" "+p}).join(",")}function Tbe(e){return e&&e.ownerDocument||document}function KN(e){var t=Tbe(e);return t.defaultView||window}function Ebe(e,t){t===void 0&&(t=166);var n;function r(){for(var i=this,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];var l=function(){e.apply(i,a)};clearTimeout(n),n=setTimeout(l,t)}return r.clear=function(){clearTimeout(n)},r}function Obe(e,t){var n=t.getBoundingClientRect(),r=KN(t),i;if(t.fakeTransform)i=t.fakeTransform;else{var o=r.getComputedStyle(t);i=o.getPropertyValue("-webkit-transform")||o.getPropertyValue("transform")}var a=0,s=0;if(i&&i!=="none"&&typeof i=="string"){var l=i.split("(")[1].split(")")[0].split(",");a=parseInt(l[4],10),s=parseInt(l[5],10)}switch(e){case"left":return"translateX("+(r.innerWidth+a-n.left)+"px)";case"right":return"translateX(-"+(n.left+n.width-a)+"px)";case"up":return"translateY("+(r.innerHeight+s-n.top)+"px)";default:return"translateY(-"+(n.top+n.height-s)+"px)"}}function up(e,t){if(t){var n=Obe(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var Pbe=ra(function(e,t){var n=e.children,r=e.direction,i=r===void 0?"down":r,o=e.in,a=e.style,s=e.timeout,l=s===void 0?0:s,u=e.onEnter,d=e.onEntered,h=e.onExit,p=e.onExited,g=sC(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),m=Rn(null),y=R1(n.ref,m),b=R1(y,t),x=function(T,A){up(i,T),qN(T),u&&u(T,A)},S=function(T){var A=(a==null?void 0:a.transitionTimingFunction)||M1.easeOut,L=tm({timeout:l,mode:"enter",style:Na({},a,{transitionTimingFunction:A})});T.style.webkitTransition=ou("-webkit-transform",L),T.style.transition=ou("transform",L),T.style.webkitTransform="none",T.style.transform="none"},w=function(T){var A=(a==null?void 0:a.transitionTimingFunction)||M1.sharp,L=tm({timeout:l,mode:"exit",style:Na({},a,{transitionTimingFunction:A})});T.style.webkitTransition=ou("-webkit-transform",L),T.style.transition=ou("transform",L),up(i,T),h&&h(T)},C=function(T){T.style.webkitTransition="",T.style.transition="",p&&p(T)},R=Mt(function(){m.current&&up(i,m.current)},[i]);return At(function(){if(!(o||i==="down"||i==="right")){var O=Ebe(function(){m.current&&up(i,m.current)}),T=KN(m.current);return T.addEventListener("resize",O),function(){O.clear(),T.removeEventListener("resize",O)}}},[i,o]),At(function(){o||R()},[o,R]),Xo(lC,Object.assign({appear:!0,nodeRef:m,onEnter:x,onEntered:d,onEntering:S,onExit:w,onExited:C,in:o,timeout:l},g),function(O,T){return md(n,Na({ref:b,style:Na({visibility:O==="exited"&&!o?"hidden":void 0},a,{},n.props.style)},T))})});Pbe.displayName="Slide";function jv(e){return Object.entries(e).reduce(function(t,n){var r,i=n[0],o=n[1];return Na({},t,(r={},r[i]=aC(o),r))},{})}var rf={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(t){return"notistack-MuiContent-"+t}},SM=jv({root:{height:0},entered:{height:"auto"}}),m0="0px",v0=175,Rbe=ra(function(e,t){var n=e.children,r=e.in,i=e.onExited,o=Rn(null),a=Rn(null),s=R1(t,a),l=function(){return o.current?o.current.clientHeight:0},u=function(y){y.style.height=m0},d=function(y){var b=l(),x=tm({timeout:v0,mode:"enter"}),S=x.duration,w=x.easing;y.style.transitionDuration=typeof S=="string"?S:S+"ms",y.style.height=b+"px",y.style.transitionTimingFunction=w||""},h=function(y){y.style.height="auto"},p=function(y){y.style.height=l()+"px"},g=function(y){qN(y);var b=tm({timeout:v0,mode:"exit"}),x=b.duration,S=b.easing;y.style.transitionDuration=typeof x=="string"?x:x+"ms",y.style.height=m0,y.style.transitionTimingFunction=S||""};return Xo(lC,{in:r,unmountOnExit:!0,onEnter:u,onEntered:h,onEntering:d,onExit:p,onExited:i,onExiting:g,nodeRef:a,timeout:v0},function(m,y){return Xo("div",Object.assign({ref:s,className:Fv(SM.root,m==="entered"&&SM.entered),style:Na({pointerEvents:"all",overflow:"hidden",minHeight:m0,transition:ou("height")},m==="entered"&&{overflow:"visible"},{},m==="exited"&&!r&&{visibility:"hidden"})},y),Xo("div",{ref:o,className:rf.CollapseWrapper,style:{display:"flex",width:"100%"}},n))})});Rbe.displayName="Collapse";var Mbe=typeof window<"u"?gw:At;function TM(e){var t=Rn(e);return Mbe(function(){t.current=e}),Mt(function(){return t.current.apply(void 0,arguments)},[])}var Abe=ra(function(e,t){var n=e.children,r=e.className,i=e.autoHideDuration,o=e.disableWindowBlurListener,a=o===void 0?!1:o,s=e.onClose,l=e.id,u=e.open,d=e.SnackbarProps,h=d===void 0?{}:d,p=Rn(),g=TM(function(){s&&s.apply(void 0,arguments)}),m=TM(function(w){!s||w==null||(p.current&&clearTimeout(p.current),p.current=setTimeout(function(){g(null,"timeout",l)},w))});At(function(){return u&&m(i),function(){p.current&&clearTimeout(p.current)}},[u,i,m]);var y=function(){p.current&&clearTimeout(p.current)},b=Mt(function(){i!=null&&m(i*.5)},[i,m]),x=function(C){h.onMouseEnter&&h.onMouseEnter(C),y()},S=function(C){h.onMouseLeave&&h.onMouseLeave(C),b()};return At(function(){if(!a&&u)return window.addEventListener("focus",b),window.addEventListener("blur",y),function(){window.removeEventListener("focus",b),window.removeEventListener("blur",y)}},[a,b,u]),Xo("div",Object.assign({ref:t},h,{className:Fv(rf.Snackbar,r),onMouseEnter:x,onMouseLeave:S}),n)});Abe.displayName="Snackbar";var y0,Dbe=jv({root:(y0={display:"flex",flexWrap:"wrap",flexGrow:1},y0[Ss.upSm]={flexGrow:"initial",minWidth:"288px"},y0)}),YN=ra(function(e,t){var n=e.className,r=sC(e,["className"]);return lt.createElement("div",Object.assign({ref:t,className:Fv(Dbe.root,n)},r))});YN.displayName="SnackbarContent";var Xc=jv({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:8*2.5+"px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),EM="notistack-snackbar",Ibe=ra(function(e,t){var n=e.id,r=e.message,i=e.action,o=e.iconVariant,a=e.variant,s=e.hideIconVariant,l=e.style,u=e.className,d=o[a],h=i;return typeof h=="function"&&(h=h(n)),lt.createElement(YN,{ref:t,role:"alert","aria-describedby":EM,style:l,className:Fv(rf.MuiContent,rf.MuiContentVariant(a),Xc.root,Xc[a],u,!s&&d&&Xc.lessPadding)},lt.createElement("div",{id:EM,className:Xc.message},s?null:d,r),h&<.createElement("div",{className:Xc.action},h))});Ibe.displayName="MaterialDesignContent";var Zc,b0,cp,dp,x0,Fo={view:{default:20},snackbar:{default:6,dense:2}},OM="."+rf.CollapseWrapper,w0=16;Zc={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:ou(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},Zc[OM]={padding:Fo.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},Zc.maxWidth="calc(100% - "+Fo.view.default*2+"px)",Zc[Ss.downXs]={width:"100%",maxWidth:"calc(100% - "+w0*2+"px)"},b0={},b0[OM]={padding:Fo.snackbar.dense+"px 0px"},Fo.view.default-Fo.snackbar.default+"",Fo.view.default-Fo.snackbar.default+"",cp={left:Fo.view.default+"px"},cp[Ss.upSm]={alignItems:"flex-start"},cp[Ss.downXs]={left:w0+"px"},dp={right:Fo.view.default+"px"},dp[Ss.upSm]={alignItems:"flex-end"},dp[Ss.downXs]={right:w0+"px"},x0={left:"50%",transform:"translateX(-50%)"},x0[Ss.upSm]={alignItems:"center"};var $be=function(){return ia(Sbe)},A1;try{A1=Map}catch{}var D1;try{D1=Set}catch{}function XN(e,t,n){if(!e||typeof e!="object"||typeof e=="function")return e;if(e.nodeType&&"cloneNode"in e)return e.cloneNode(!0);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);if(Array.isArray(e))return e.map(I1);if(A1&&e instanceof A1)return new Map(Array.from(e.entries()));if(D1&&e instanceof D1)return new Set(Array.from(e.values()));if(e instanceof Object){t.push(e);var r=Object.create(e);n.push(r);for(var i in e){var o=t.findIndex(function(a){return a===e[i]});r[i]=o>-1?n[o]:XN(e[i],t,n)}return r}return e}function I1(e){return XN(e,[],[])}const Lbe=Object.prototype.toString,kbe=Error.prototype.toString,Nbe=RegExp.prototype.toString,Fbe=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",jbe=/^Symbol\((.*)\)(.*)$/;function Bbe(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function PM(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return Bbe(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return Fbe.call(e).replace(jbe,"Symbol($1)");const r=Lbe.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+kbe.call(e)+"]":r==="RegExp"?Nbe.call(e):null}function $u(e,t){let n=PM(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let o=PM(this[r],t);return o!==null?o:i},2)}let Ts={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{let i=r!=null&&r!==n,o=`${e} must be a \`${t}\` type, but the final value was: \`${$u(n,!0)}\``+(i?` (cast from the value \`${$u(r,!0)}\`).`:".");return n===null&&(o+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),o},defined:"${path} must be defined"},Wi={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Aa={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},$1={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},L1={isValue:"${path} field must be ${value}"},k1={noUnknown:"${path} field has unspecified keys: ${unknown}"},eg={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};const Ube=Object.assign(Object.create(null),{mixed:Ts,string:Wi,number:Aa,date:$1,object:k1,array:eg,boolean:L1});var Wbe=Object.prototype,Hbe=Wbe.hasOwnProperty;function zbe(e,t){return e!=null&&Hbe.call(e,t)}var Vbe=zbe,Gbe=Array.isArray,es=Gbe,qbe=typeof zi=="object"&&zi&&zi.Object===Object&&zi,ZN=qbe,Kbe=ZN,Ybe=typeof self=="object"&&self&&self.Object===Object&&self,Xbe=Kbe||Ybe||Function("return this")(),da=Xbe,Zbe=da,Qbe=Zbe.Symbol,Bv=Qbe,RM=Bv,QN=Object.prototype,Jbe=QN.hasOwnProperty,e0e=QN.toString,Qc=RM?RM.toStringTag:void 0;function t0e(e){var t=Jbe.call(e,Qc),n=e[Qc];try{e[Qc]=void 0;var r=!0}catch{}var i=e0e.call(e);return r&&(t?e[Qc]=n:delete e[Qc]),i}var n0e=t0e,r0e=Object.prototype,i0e=r0e.toString;function o0e(e){return i0e.call(e)}var a0e=o0e,MM=Bv,s0e=n0e,l0e=a0e,u0e="[object Null]",c0e="[object Undefined]",AM=MM?MM.toStringTag:void 0;function d0e(e){return e==null?e===void 0?c0e:u0e:AM&&AM in Object(e)?s0e(e):l0e(e)}var Bf=d0e;function f0e(e){return e!=null&&typeof e=="object"}var Uf=f0e,h0e=Bf,p0e=Uf,g0e="[object Symbol]";function m0e(e){return typeof e=="symbol"||p0e(e)&&h0e(e)==g0e}var uC=m0e,v0e=es,y0e=uC,b0e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,x0e=/^\w*$/;function w0e(e,t){if(v0e(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||y0e(e)?!0:x0e.test(e)||!b0e.test(e)||t!=null&&e in Object(t)}var cC=w0e;function _0e(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var dC=_0e,C0e=Bf,S0e=dC,T0e="[object AsyncFunction]",E0e="[object Function]",O0e="[object GeneratorFunction]",P0e="[object Proxy]";function R0e(e){if(!S0e(e))return!1;var t=C0e(e);return t==E0e||t==O0e||t==T0e||t==P0e}var JN=R0e,M0e=da,A0e=M0e["__core-js_shared__"],D0e=A0e,_0=D0e,DM=function(){var e=/[^.]+$/.exec(_0&&_0.keys&&_0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function I0e(e){return!!DM&&DM in e}var $0e=I0e,L0e=Function.prototype,k0e=L0e.toString;function N0e(e){if(e!=null){try{return k0e.call(e)}catch{}try{return e+""}catch{}}return""}var eF=N0e,F0e=JN,j0e=$0e,B0e=dC,U0e=eF,W0e=/[\\^$.*+?()[\]{}|]/g,H0e=/^\[object .+?Constructor\]$/,z0e=Function.prototype,V0e=Object.prototype,G0e=z0e.toString,q0e=V0e.hasOwnProperty,K0e=RegExp("^"+G0e.call(q0e).replace(W0e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Y0e(e){if(!B0e(e)||j0e(e))return!1;var t=F0e(e)?K0e:H0e;return t.test(U0e(e))}var X0e=Y0e;function Z0e(e,t){return e==null?void 0:e[t]}var Q0e=Z0e,J0e=X0e,exe=Q0e;function txe(e,t){var n=exe(e,t);return J0e(n)?n:void 0}var gl=txe,nxe=gl,rxe=nxe(Object,"create"),Uv=rxe,IM=Uv;function ixe(){this.__data__=IM?IM(null):{},this.size=0}var oxe=ixe;function axe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var sxe=axe,lxe=Uv,uxe="__lodash_hash_undefined__",cxe=Object.prototype,dxe=cxe.hasOwnProperty;function fxe(e){var t=this.__data__;if(lxe){var n=t[e];return n===uxe?void 0:n}return dxe.call(t,e)?t[e]:void 0}var hxe=fxe,pxe=Uv,gxe=Object.prototype,mxe=gxe.hasOwnProperty;function vxe(e){var t=this.__data__;return pxe?t[e]!==void 0:mxe.call(t,e)}var yxe=vxe,bxe=Uv,xxe="__lodash_hash_undefined__";function wxe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=bxe&&t===void 0?xxe:t,this}var _xe=wxe,Cxe=oxe,Sxe=sxe,Txe=hxe,Exe=yxe,Oxe=_xe;function tc(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}tc.prototype.clear=Cxe;tc.prototype.delete=Sxe;tc.prototype.get=Txe;tc.prototype.has=Exe;tc.prototype.set=Oxe;var Pxe=tc;function Rxe(){this.__data__=[],this.size=0}var Mxe=Rxe;function Axe(e,t){return e===t||e!==e&&t!==t}var tF=Axe,Dxe=tF;function Ixe(e,t){for(var n=e.length;n--;)if(Dxe(e[n][0],t))return n;return-1}var Wv=Ixe,$xe=Wv,Lxe=Array.prototype,kxe=Lxe.splice;function Nxe(e){var t=this.__data__,n=$xe(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():kxe.call(t,n,1),--this.size,!0}var Fxe=Nxe,jxe=Wv;function Bxe(e){var t=this.__data__,n=jxe(t,e);return n<0?void 0:t[n][1]}var Uxe=Bxe,Wxe=Wv;function Hxe(e){return Wxe(this.__data__,e)>-1}var zxe=Hxe,Vxe=Wv;function Gxe(e,t){var n=this.__data__,r=Vxe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var qxe=Gxe,Kxe=Mxe,Yxe=Fxe,Xxe=Uxe,Zxe=zxe,Qxe=qxe;function nc(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}nc.prototype.clear=Kxe;nc.prototype.delete=Yxe;nc.prototype.get=Xxe;nc.prototype.has=Zxe;nc.prototype.set=Qxe;var Hv=nc,Jxe=gl,e1e=da,t1e=Jxe(e1e,"Map"),fC=t1e,$M=Pxe,n1e=Hv,r1e=fC;function i1e(){this.size=0,this.__data__={hash:new $M,map:new(r1e||n1e),string:new $M}}var o1e=i1e;function a1e(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var s1e=a1e,l1e=s1e;function u1e(e,t){var n=e.__data__;return l1e(t)?n[typeof t=="string"?"string":"hash"]:n.map}var zv=u1e,c1e=zv;function d1e(e){var t=c1e(this,e).delete(e);return this.size-=t?1:0,t}var f1e=d1e,h1e=zv;function p1e(e){return h1e(this,e).get(e)}var g1e=p1e,m1e=zv;function v1e(e){return m1e(this,e).has(e)}var y1e=v1e,b1e=zv;function x1e(e,t){var n=b1e(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var w1e=x1e,_1e=o1e,C1e=f1e,S1e=g1e,T1e=y1e,E1e=w1e;function rc(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}rc.prototype.clear=_1e;rc.prototype.delete=C1e;rc.prototype.get=S1e;rc.prototype.has=T1e;rc.prototype.set=E1e;var hC=rc,nF=hC,O1e="Expected a function";function pC(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(O1e);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(pC.Cache||nF),n}pC.Cache=nF;var P1e=pC,R1e=P1e,M1e=500;function A1e(e){var t=R1e(e,function(r){return n.size===M1e&&n.clear(),r}),n=t.cache;return t}var D1e=A1e,I1e=D1e,$1e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,L1e=/\\(\\)?/g,k1e=I1e(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace($1e,function(n,r,i,o){t.push(i?o.replace(L1e,"$1"):r||n)}),t}),N1e=k1e;function F1e(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var j1e=F1e,LM=Bv,B1e=j1e,U1e=es,W1e=uC,kM=LM?LM.prototype:void 0,NM=kM?kM.toString:void 0;function rF(e){if(typeof e=="string")return e;if(U1e(e))return B1e(e,rF)+"";if(W1e(e))return NM?NM.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var H1e=rF,z1e=H1e;function V1e(e){return e==null?"":z1e(e)}var Wf=V1e,G1e=es,q1e=cC,K1e=N1e,Y1e=Wf;function X1e(e,t){return G1e(e)?e:q1e(e,t)?[e]:K1e(Y1e(e))}var iF=X1e,Z1e=Bf,Q1e=Uf,J1e="[object Arguments]";function ewe(e){return Q1e(e)&&Z1e(e)==J1e}var twe=ewe,FM=twe,nwe=Uf,oF=Object.prototype,rwe=oF.hasOwnProperty,iwe=oF.propertyIsEnumerable,owe=FM(function(){return arguments}())?FM:function(e){return nwe(e)&&rwe.call(e,"callee")&&!iwe.call(e,"callee")},aF=owe,awe=9007199254740991,swe=/^(?:0|[1-9]\d*)$/;function lwe(e,t){var n=typeof e;return t=t??awe,!!t&&(n=="number"||n!="symbol"&&swe.test(e))&&e>-1&&e%1==0&&e<t}var sF=lwe,uwe=9007199254740991;function cwe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=uwe}var gC=cwe,dwe=uC;function fwe(e){if(typeof e=="string"||dwe(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Vv=fwe,hwe=iF,pwe=aF,gwe=es,mwe=sF,vwe=gC,ywe=Vv;function bwe(e,t,n){t=hwe(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=ywe(t[r]);if(!(o=e!=null&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&vwe(i)&&mwe(a,i)&&(gwe(e)||pwe(e)))}var lF=bwe,xwe=Vbe,wwe=lF;function _we(e,t){return e!=null&&wwe(e,t,xwe)}var Cwe=_we;const nm=Di(Cwe),ic=e=>e&&e.__isYupSchema__;class Swe{constructor(t,n){if(this.fn=void 0,this.refs=t,this.refs=t,typeof n=="function"){this.fn=n;return}if(!nm(n,"is"))throw new TypeError("`is:` is required for `when()` conditions");if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:o}=n,a=typeof r=="function"?r:(...s)=>s.every(l=>l===r);this.fn=function(...s){let l=s.pop(),u=s.pop(),d=a(...s)?i:o;if(d)return typeof d=="function"?d(u):u.concat(d.resolve(l))}}resolve(t,n){let r=this.refs.map(o=>o.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn.apply(t,r.concat(t,n));if(i===void 0||i===t)return t;if(!ic(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}function uF(e){return e==null?[]:[].concat(e)}function N1(){return N1=Object.assign||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},N1.apply(this,arguments)}let Twe=/\$\{\s*(\w+)\s*\}/g;class Sr extends Error{static formatError(t,n){const r=n.label||n.path||"this";return r!==n.path&&(n=N1({},n,{path:r})),typeof t=="string"?t.replace(Twe,(i,o)=>$u(n[o])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,i){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],uF(t).forEach(o=>{Sr.isError(o)?(this.errors.push(...o.errors),this.inner=this.inner.concat(o.inner.length?o.inner:o)):this.errors.push(o)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,Sr)}}const Ewe=e=>{let t=!1;return(...n)=>{t||(t=!0,e(...n))}};function rm(e,t){let{endEarly:n,tests:r,args:i,value:o,errors:a,sort:s,path:l}=e,u=Ewe(t),d=r.length;const h=[];if(a=a||[],!d)return a.length?u(new Sr(a,o,l)):u(null,o);for(let p=0;p<r.length;p++){const g=r[p];g(i,function(y){if(y){if(!Sr.isError(y))return u(y,o);if(n)return y.value=o,u(y,o);h.push(y)}if(--d<=0){if(h.length&&(s&&h.sort(s),a.length&&h.push(...a),a=h),a.length){u(new Sr(a,o,l),o);return}u(null,o)}})}}var Owe=gl,Pwe=function(){try{var e=Owe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Rwe=Pwe,jM=Rwe;function Mwe(e,t,n){t=="__proto__"&&jM?jM(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var cF=Mwe;function Awe(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(n(o[l],l,o)===!1)break}return t}}var Dwe=Awe,Iwe=Dwe,$we=Iwe(),Lwe=$we;function kwe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Nwe=kwe,im={exports:{}};function Fwe(){return!1}var jwe=Fwe;im.exports;(function(e,t){var n=da,r=jwe,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;e.exports=u})(im,im.exports);var dF=im.exports,Bwe=Bf,Uwe=gC,Wwe=Uf,Hwe="[object Arguments]",zwe="[object Array]",Vwe="[object Boolean]",Gwe="[object Date]",qwe="[object Error]",Kwe="[object Function]",Ywe="[object Map]",Xwe="[object Number]",Zwe="[object Object]",Qwe="[object RegExp]",Jwe="[object Set]",e_e="[object String]",t_e="[object WeakMap]",n_e="[object ArrayBuffer]",r_e="[object DataView]",i_e="[object Float32Array]",o_e="[object Float64Array]",a_e="[object Int8Array]",s_e="[object Int16Array]",l_e="[object Int32Array]",u_e="[object Uint8Array]",c_e="[object Uint8ClampedArray]",d_e="[object Uint16Array]",f_e="[object Uint32Array]",tn={};tn[i_e]=tn[o_e]=tn[a_e]=tn[s_e]=tn[l_e]=tn[u_e]=tn[c_e]=tn[d_e]=tn[f_e]=!0;tn[Hwe]=tn[zwe]=tn[n_e]=tn[Vwe]=tn[r_e]=tn[Gwe]=tn[qwe]=tn[Kwe]=tn[Ywe]=tn[Xwe]=tn[Zwe]=tn[Qwe]=tn[Jwe]=tn[e_e]=tn[t_e]=!1;function h_e(e){return Wwe(e)&&Uwe(e.length)&&!!tn[Bwe(e)]}var p_e=h_e;function g_e(e){return function(t){return e(t)}}var m_e=g_e,om={exports:{}};om.exports;(function(e,t){var n=ZN,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(om,om.exports);var v_e=om.exports,y_e=p_e,b_e=m_e,BM=v_e,UM=BM&&BM.isTypedArray,x_e=UM?b_e(UM):y_e,fF=x_e,w_e=Nwe,__e=aF,C_e=es,S_e=dF,T_e=sF,E_e=fF,O_e=Object.prototype,P_e=O_e.hasOwnProperty;function R_e(e,t){var n=C_e(e),r=!n&&__e(e),i=!n&&!r&&S_e(e),o=!n&&!r&&!i&&E_e(e),a=n||r||i||o,s=a?w_e(e.length,String):[],l=s.length;for(var u in e)(t||P_e.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||T_e(u,l)))&&s.push(u);return s}var M_e=R_e,A_e=Object.prototype;function D_e(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||A_e;return e===n}var I_e=D_e;function $_e(e,t){return function(n){return e(t(n))}}var L_e=$_e,k_e=L_e,N_e=k_e(Object.keys,Object),F_e=N_e,j_e=I_e,B_e=F_e,U_e=Object.prototype,W_e=U_e.hasOwnProperty;function H_e(e){if(!j_e(e))return B_e(e);var t=[];for(var n in Object(e))W_e.call(e,n)&&n!="constructor"&&t.push(n);return t}var z_e=H_e,V_e=JN,G_e=gC;function q_e(e){return e!=null&&G_e(e.length)&&!V_e(e)}var K_e=q_e,Y_e=M_e,X_e=z_e,Z_e=K_e;function Q_e(e){return Z_e(e)?Y_e(e):X_e(e)}var mC=Q_e,J_e=Lwe,eCe=mC;function tCe(e,t){return e&&J_e(e,t,eCe)}var hF=tCe,nCe=Hv;function rCe(){this.__data__=new nCe,this.size=0}var iCe=rCe;function oCe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var aCe=oCe;function sCe(e){return this.__data__.get(e)}var lCe=sCe;function uCe(e){return this.__data__.has(e)}var cCe=uCe,dCe=Hv,fCe=fC,hCe=hC,pCe=200;function gCe(e,t){var n=this.__data__;if(n instanceof dCe){var r=n.__data__;if(!fCe||r.length<pCe-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new hCe(r)}return n.set(e,t),this.size=n.size,this}var mCe=gCe,vCe=Hv,yCe=iCe,bCe=aCe,xCe=lCe,wCe=cCe,_Ce=mCe;function oc(e){var t=this.__data__=new vCe(e);this.size=t.size}oc.prototype.clear=yCe;oc.prototype.delete=bCe;oc.prototype.get=xCe;oc.prototype.has=wCe;oc.prototype.set=_Ce;var pF=oc,CCe="__lodash_hash_undefined__";function SCe(e){return this.__data__.set(e,CCe),this}var TCe=SCe;function ECe(e){return this.__data__.has(e)}var OCe=ECe,PCe=hC,RCe=TCe,MCe=OCe;function am(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new PCe;++t<n;)this.add(e[t])}am.prototype.add=am.prototype.push=RCe;am.prototype.has=MCe;var ACe=am;function DCe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var ICe=DCe;function $Ce(e,t){return e.has(t)}var LCe=$Ce,kCe=ACe,NCe=ICe,FCe=LCe,jCe=1,BCe=2;function UCe(e,t,n,r,i,o){var a=n&jCe,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var h=-1,p=!0,g=n&BCe?new kCe:void 0;for(o.set(e,t),o.set(t,e);++h<s;){var m=e[h],y=t[h];if(r)var b=a?r(y,m,h,t,e,o):r(m,y,h,e,t,o);if(b!==void 0){if(b)continue;p=!1;break}if(g){if(!NCe(t,function(x,S){if(!FCe(g,S)&&(m===x||i(m,x,n,r,o)))return g.push(S)})){p=!1;break}}else if(!(m===y||i(m,y,n,r,o))){p=!1;break}}return o.delete(e),o.delete(t),p}var gF=UCe,WCe=da,HCe=WCe.Uint8Array,zCe=HCe;function VCe(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var GCe=VCe;function qCe(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var KCe=qCe,WM=Bv,HM=zCe,YCe=tF,XCe=gF,ZCe=GCe,QCe=KCe,JCe=1,eSe=2,tSe="[object Boolean]",nSe="[object Date]",rSe="[object Error]",iSe="[object Map]",oSe="[object Number]",aSe="[object RegExp]",sSe="[object Set]",lSe="[object String]",uSe="[object Symbol]",cSe="[object ArrayBuffer]",dSe="[object DataView]",zM=WM?WM.prototype:void 0,C0=zM?zM.valueOf:void 0;function fSe(e,t,n,r,i,o,a){switch(n){case dSe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case cSe:return!(e.byteLength!=t.byteLength||!o(new HM(e),new HM(t)));case tSe:case nSe:case oSe:return YCe(+e,+t);case rSe:return e.name==t.name&&e.message==t.message;case aSe:case lSe:return e==t+"";case iSe:var s=ZCe;case sSe:var l=r&JCe;if(s||(s=QCe),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=eSe,a.set(e,t);var d=XCe(s(e),s(t),r,i,o,a);return a.delete(e),d;case uSe:if(C0)return C0.call(e)==C0.call(t)}return!1}var hSe=fSe;function pSe(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var gSe=pSe,mSe=gSe,vSe=es;function ySe(e,t,n){var r=t(e);return vSe(e)?r:mSe(r,n(e))}var bSe=ySe;function xSe(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}var wSe=xSe;function _Se(){return[]}var CSe=_Se,SSe=wSe,TSe=CSe,ESe=Object.prototype,OSe=ESe.propertyIsEnumerable,VM=Object.getOwnPropertySymbols,PSe=VM?function(e){return e==null?[]:(e=Object(e),SSe(VM(e),function(t){return OSe.call(e,t)}))}:TSe,RSe=PSe,MSe=bSe,ASe=RSe,DSe=mC;function ISe(e){return MSe(e,DSe,ASe)}var $Se=ISe,GM=$Se,LSe=1,kSe=Object.prototype,NSe=kSe.hasOwnProperty;function FSe(e,t,n,r,i,o){var a=n&LSe,s=GM(e),l=s.length,u=GM(t),d=u.length;if(l!=d&&!a)return!1;for(var h=l;h--;){var p=s[h];if(!(a?p in t:NSe.call(t,p)))return!1}var g=o.get(e),m=o.get(t);if(g&&m)return g==t&&m==e;var y=!0;o.set(e,t),o.set(t,e);for(var b=a;++h<l;){p=s[h];var x=e[p],S=t[p];if(r)var w=a?r(S,x,p,t,e,o):r(x,S,p,e,t,o);if(!(w===void 0?x===S||i(x,S,n,r,o):w)){y=!1;break}b||(b=p=="constructor")}if(y&&!b){var C=e.constructor,R=t.constructor;C!=R&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof R=="function"&&R instanceof R)&&(y=!1)}return o.delete(e),o.delete(t),y}var jSe=FSe,BSe=gl,USe=da,WSe=BSe(USe,"DataView"),HSe=WSe,zSe=gl,VSe=da,GSe=zSe(VSe,"Promise"),qSe=GSe,KSe=gl,YSe=da,XSe=KSe(YSe,"Set"),ZSe=XSe,QSe=gl,JSe=da,eTe=QSe(JSe,"WeakMap"),tTe=eTe,F1=HSe,j1=fC,B1=qSe,U1=ZSe,W1=tTe,mF=Bf,ac=eF,qM="[object Map]",nTe="[object Object]",KM="[object Promise]",YM="[object Set]",XM="[object WeakMap]",ZM="[object DataView]",rTe=ac(F1),iTe=ac(j1),oTe=ac(B1),aTe=ac(U1),sTe=ac(W1),Es=mF;(F1&&Es(new F1(new ArrayBuffer(1)))!=ZM||j1&&Es(new j1)!=qM||B1&&Es(B1.resolve())!=KM||U1&&Es(new U1)!=YM||W1&&Es(new W1)!=XM)&&(Es=function(e){var t=mF(e),n=t==nTe?e.constructor:void 0,r=n?ac(n):"";if(r)switch(r){case rTe:return ZM;case iTe:return qM;case oTe:return KM;case aTe:return YM;case sTe:return XM}return t});var lTe=Es,S0=pF,uTe=gF,cTe=hSe,dTe=jSe,QM=lTe,JM=es,eA=dF,fTe=fF,hTe=1,tA="[object Arguments]",nA="[object Array]",fp="[object Object]",pTe=Object.prototype,rA=pTe.hasOwnProperty;function gTe(e,t,n,r,i,o){var a=JM(e),s=JM(t),l=a?nA:QM(e),u=s?nA:QM(t);l=l==tA?fp:l,u=u==tA?fp:u;var d=l==fp,h=u==fp,p=l==u;if(p&&eA(e)){if(!eA(t))return!1;a=!0,d=!1}if(p&&!d)return o||(o=new S0),a||fTe(e)?uTe(e,t,n,r,i,o):cTe(e,t,l,n,r,i,o);if(!(n&hTe)){var g=d&&rA.call(e,"__wrapped__"),m=h&&rA.call(t,"__wrapped__");if(g||m){var y=g?e.value():e,b=m?t.value():t;return o||(o=new S0),i(y,b,n,r,o)}}return p?(o||(o=new S0),dTe(e,t,n,r,i,o)):!1}var mTe=gTe,vTe=mTe,iA=Uf;function vF(e,t,n,r,i){return e===t?!0:e==null||t==null||!iA(e)&&!iA(t)?e!==e&&t!==t:vTe(e,t,n,r,vF,i)}var yF=vF,yTe=pF,bTe=yF,xTe=1,wTe=2;function _Te(e,t,n,r){var i=n.length,o=i,a=!r;if(e==null)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=n[i];var l=s[0],u=e[l],d=s[1];if(a&&s[2]){if(u===void 0&&!(l in e))return!1}else{var h=new yTe;if(r)var p=r(u,d,l,e,t,h);if(!(p===void 0?bTe(d,u,xTe|wTe,r,h):p))return!1}}return!0}var CTe=_Te,STe=dC;function TTe(e){return e===e&&!STe(e)}var bF=TTe,ETe=bF,OTe=mC;function PTe(e){for(var t=OTe(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,ETe(i)]}return t}var RTe=PTe;function MTe(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var xF=MTe,ATe=CTe,DTe=RTe,ITe=xF;function $Te(e){var t=DTe(e);return t.length==1&&t[0][2]?ITe(t[0][0],t[0][1]):function(n){return n===e||ATe(n,e,t)}}var LTe=$Te,kTe=iF,NTe=Vv;function FTe(e,t){t=kTe(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[NTe(t[n++])];return n&&n==r?e:void 0}var wF=FTe,jTe=wF;function BTe(e,t,n){var r=e==null?void 0:jTe(e,t);return r===void 0?n:r}var UTe=BTe;function WTe(e,t){return e!=null&&t in Object(e)}var HTe=WTe,zTe=HTe,VTe=lF;function GTe(e,t){return e!=null&&VTe(e,t,zTe)}var qTe=GTe,KTe=yF,YTe=UTe,XTe=qTe,ZTe=cC,QTe=bF,JTe=xF,eEe=Vv,tEe=1,nEe=2;function rEe(e,t){return ZTe(e)&&QTe(t)?JTe(eEe(e),t):function(n){var r=YTe(n,e);return r===void 0&&r===t?XTe(n,e):KTe(t,r,tEe|nEe)}}var iEe=rEe;function oEe(e){return e}var aEe=oEe;function sEe(e){return function(t){return t==null?void 0:t[e]}}var lEe=sEe,uEe=wF;function cEe(e){return function(t){return uEe(t,e)}}var dEe=cEe,fEe=lEe,hEe=dEe,pEe=cC,gEe=Vv;function mEe(e){return pEe(e)?fEe(gEe(e)):hEe(e)}var vEe=mEe,yEe=LTe,bEe=iEe,xEe=aEe,wEe=es,_Ee=vEe;function CEe(e){return typeof e=="function"?e:e==null?xEe:typeof e=="object"?wEe(e)?bEe(e[0],e[1]):yEe(e):_Ee(e)}var _F=CEe,SEe=cF,TEe=hF,EEe=_F;function OEe(e,t){var n={};return t=EEe(t),TEe(e,function(r,i,o){SEe(n,i,t(r,i,o))}),n}var PEe=OEe;const CF=Di(PEe);function sc(e){this._maxSize=e,this.clear()}sc.prototype.clear=function(){this._size=0,this._values=Object.create(null)};sc.prototype.get=function(e){return this._values[e]};sc.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var REe=/[^.^\]^[]+|(?=\[\]|\.\.)/g,MEe=/^\d+$/,AEe=/^\d/,DEe=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,IEe=/^\s*(['"]?)(.*?)(\1)\s*$/,vC=512,oA=new sc(vC);new sc(vC);var aA=new sc(vC),Gv={split:H1,getter:function(e,t){var n=$Ee(e);return aA.get(e)||aA.set(e,function(i){for(var o=0,a=n.length;o<a;)if(i!=null||!t)i=i[n[o++]];else return;return i})},forEach:function(e,t,n){LEe(Array.isArray(e)?e:H1(e),t,n)}};function $Ee(e){return oA.get(e)||oA.set(e,H1(e).map(function(t){return t.replace(IEe,"$2")}))}function H1(e){return e.match(REe)||[""]}function LEe(e,t,n){var r=e.length,i,o,a,s;for(o=0;o<r;o++)i=e[o],i&&(FEe(i)&&(i='"'+i+'"'),s=SF(i),a=!s&&/^\d+$/.test(i),t.call(n,i,s,a,o,e))}function SF(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function kEe(e){return e.match(AEe)&&!e.match(MEe)}function NEe(e){return DEe.test(e)}function FEe(e){return!SF(e)&&(kEe(e)||NEe(e))}const hp={context:"$",value:"."};function jEe(e,t){return new Jo(e,t)}class Jo{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===hp.context,this.isValue=this.key[0]===hp.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?hp.context:this.isValue?hp.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Gv.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let i=this.isContext?r:this.isValue?t:n;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Jo.prototype.__isYupRef=!0;function sm(){return sm=Object.assign||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},sm.apply(this,arguments)}function BEe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function pp(e){function t(n,r){let{value:i,path:o="",label:a,options:s,originalValue:l,sync:u}=n,d=BEe(n,["value","path","label","options","originalValue","sync"]);const{name:h,test:p,params:g,message:m}=e;let{parent:y,context:b}=s;function x(O){return Jo.isRef(O)?O.getValue(i,y,b):O}function S(O={}){const T=CF(sm({value:i,originalValue:l,label:a,path:O.path||o},g,O.params),x),A=new Sr(Sr.formatError(O.message||m,T),i,T.path,O.type||h);return A.params=T,A}let w=sm({path:o,parent:y,type:h,createError:S,resolve:x,options:s,originalValue:l},d);if(!u){try{Promise.resolve(p.call(w,i,w)).then(O=>{Sr.isError(O)?r(O):O?r(null,O):r(S())}).catch(r)}catch(O){r(O)}return}let C;try{var R;if(C=p.call(w,i,w),typeof((R=C)==null?void 0:R.then)=="function")throw new Error(`Validation test of type: "${w.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(O){r(O);return}Sr.isError(C)?r(C):C?r(null,C):r(S())}return t.OPTIONS=e,t}let UEe=e=>e.substr(0,e.length-1).substr(1);function TF(e,t,n,r=n){let i,o,a;return t?(Gv.forEach(t,(s,l,u)=>{let d=l?UEe(s):s;if(e=e.resolve({context:r,parent:i,value:n}),e.innerType){let h=u?parseInt(d,10):0;if(n&&h>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[h],e=e.innerType}if(!u){if(!e.fields||!e.fields[d])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e._type}")`);i=n,n=n&&n[d],e=e.fields[d]}o=d,a=l?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}const WEe=(e,t,n,r)=>TF(e,t,n,r).schema;class lm{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){const t=[];for(const n of this.list)t.push(n);for(const[,n]of this.refs)t.push(n.describe());return t}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(t){return this.toArray().reduce((n,r)=>n.concat(Jo.isRef(r)?t(r):r),[])}add(t){Jo.isRef(t)?this.refs.set(t.key,t):this.list.add(t)}delete(t){Jo.isRef(t)?this.refs.delete(t.key):this.list.delete(t)}clone(){const t=new lm;return t.list=new Set(this.list),t.refs=new Map(this.refs),t}merge(t,n){const r=this.clone();return t.list.forEach(i=>r.add(i)),t.refs.forEach(i=>r.add(i)),n.list.forEach(i=>r.delete(i)),n.refs.forEach(i=>r.delete(i)),r}}function yi(){return yi=Object.assign||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},yi.apply(this,arguments)}class nr{constructor(t){this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this._typeError=void 0,this._whitelist=new lm,this._blacklist=new lm,this.exclusiveTests=Object.create(null),this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Ts.notType)}),this.type=(t==null?void 0:t.type)||"mixed",this.spec=yi({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},t==null?void 0:t.spec)}get _type(){return this.type}_typeCheck(t){return!0}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeError=this._typeError,n._whitelistError=this._whitelistError,n._blacklistError=this._blacklistError,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.exclusiveTests=yi({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=I1(yi({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const i=yi({},n.spec,r.spec);return r.spec=i,r._typeError||(r._typeError=n._typeError),r._whitelistError||(r._whitelistError=n._whitelistError),r._blacklistError||(r._blacklistError=n._blacklistError),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(o=>{t.tests.forEach(a=>{o.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return this.spec.nullable&&t===null?!0:this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,o)=>o.resolve(i,t),n),n=n.resolve(t)}return n}cast(t,n={}){let r=this.resolve(yi({value:t},n)),i=r._cast(t,n);if(t!==void 0&&n.assert!==!1&&r.isType(i)!==!0){let o=$u(t),a=$u(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r._type}".
|
|
668
|
+
|
|
669
|
+
attempted value: ${o}
|
|
670
|
+
`+(a!==o?`result of cast: ${a}`:""))}return i}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((i,o)=>o.call(this,i,t,this),t);return r===void 0&&(r=this.getDefault()),r}_validate(t,n={},r){let{sync:i,path:o,from:a=[],originalValue:s=t,strict:l=this.spec.strict,abortEarly:u=this.spec.abortEarly}=n,d=t;l||(d=this._cast(d,yi({assert:!1},n)));let h={value:d,path:o,options:n,originalValue:s,schema:this,label:this.spec.label,sync:i,from:a},p=[];this._typeError&&p.push(this._typeError);let g=[];this._whitelistError&&g.push(this._whitelistError),this._blacklistError&&g.push(this._blacklistError),rm({args:h,value:d,path:o,tests:p,endEarly:u},m=>{if(m)return void r(m,d);rm({tests:this.tests.concat(g),args:h,path:o,sync:i,value:d,endEarly:u},r)})}validate(t,n,r){let i=this.resolve(yi({},n,{value:t}));return typeof r=="function"?i._validate(t,n,r):new Promise((o,a)=>i._validate(t,n,(s,l)=>{s?a(s):o(l)}))}validateSync(t,n){let r=this.resolve(yi({},n,{value:t})),i;return r._validate(t,yi({},n,{sync:!0}),(o,a)=>{if(o)throw o;i=a}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(Sr.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(Sr.isError(r))return!1;throw r}}_getDefault(){let t=this.spec.default;return t==null?t:typeof t=="function"?t.call(this):I1(t)}getDefault(t){return this.resolve(t||{})._getDefault()}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){let n=this.clone();return n.spec.strict=t,n}_isPresent(t){return t!=null}defined(t=Ts.defined){return this.test({message:t,name:"defined",exclusive:!0,test(n){return n!==void 0}})}required(t=Ts.required){return this.clone({presence:"required"}).withMutation(n=>n.test({message:t,name:"required",exclusive:!0,test(r){return this.schema._isPresent(r)}}))}notRequired(){let t=this.clone({presence:"optional"});return t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t}nullable(t=!0){return this.clone({nullable:t!==!1})}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=Ts.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=pp(n),o=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(o||a.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),i=uF(t).map(o=>new Jo(o));return i.forEach(o=>{o.isSibling&&r.deps.push(o.key)}),r.conditions.push(new Swe(i,n)),r}typeError(t){let n=this.clone();return n._typeError=pp({message:t,name:"typeError",test(r){return r!==void 0&&!this.schema.isType(r)?this.createError({params:{type:this.schema._type}}):!0}}),n}oneOf(t,n=Ts.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r._whitelistError=pp({message:n,name:"oneOf",test(i){if(i===void 0)return!0;let o=this.schema._whitelist,a=o.resolveAll(this.resolve);return a.includes(i)?!0:this.createError({params:{values:o.toArray().join(", "),resolved:a}})}}),r}notOneOf(t,n=Ts.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r._blacklistError=pp({message:n,name:"notOneOf",test(i){let o=this.schema._blacklist,a=o.resolveAll(this.resolve);return a.includes(i)?this.createError({params:{values:o.toArray().join(", "),resolved:a}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(){const t=this.clone(),{label:n,meta:r}=t.spec;return{meta:r,label:n,type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.map(o=>({name:o.OPTIONS.name,params:o.OPTIONS.params})).filter((o,a,s)=>s.findIndex(l=>l.name===o.name)===a)}}}nr.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])nr.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:o,schema:a}=TF(this,t,n,r.context);return a[e](i&&i[o],yi({},r,{parent:i,path:t}))};for(const e of["equals","is"])nr.prototype[e]=nr.prototype.oneOf;for(const e of["not","nope"])nr.prototype[e]=nr.prototype.notOneOf;nr.prototype.optional=nr.prototype.notRequired;const yC=nr;function EF(){return new yC}EF.prototype=yC.prototype;const gn=e=>e==null;function z1(){return new bC}class bC extends nr{constructor(){super({type:"boolean"}),this.withMutation(()=>{this.transform(function(t){if(!this.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}_typeCheck(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}isTrue(t=L1.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(n){return gn(n)||n===!0}})}isFalse(t=L1.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(n){return gn(n)||n===!1}})}}z1.prototype=bC.prototype;let HEe=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,zEe=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,VEe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,GEe=e=>gn(e)||e===e.trim(),qEe={}.toString();function xC(){return new wC}class wC extends nr{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform(function(t){if(this.isType(t)||Array.isArray(t))return t;const n=t!=null&&t.toString?t.toString():t;return n===qEe?t:n})})}_typeCheck(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}_isPresent(t){return super._isPresent(t)&&!!t.length}length(t,n=Wi.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},test(r){return gn(r)||r.length===this.resolve(t)}})}min(t,n=Wi.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},test(r){return gn(r)||r.length>=this.resolve(t)}})}max(t,n=Wi.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},test(r){return gn(r)||r.length<=this.resolve(t)}})}matches(t,n){let r=!1,i,o;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:i,name:o}=n:i=n),this.test({name:o||"matches",message:i||Wi.matches,params:{regex:t},test:a=>gn(a)||a===""&&r||a.search(t)!==-1})}email(t=Wi.email){return this.matches(HEe,{name:"email",message:t,excludeEmptyString:!0})}url(t=Wi.url){return this.matches(zEe,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Wi.uuid){return this.matches(VEe,{name:"uuid",message:t,excludeEmptyString:!1})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Wi.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:GEe})}lowercase(t=Wi.lowercase){return this.transform(n=>gn(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,test:n=>gn(n)||n===n.toLowerCase()})}uppercase(t=Wi.uppercase){return this.transform(n=>gn(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,test:n=>gn(n)||n===n.toUpperCase()})}}xC.prototype=wC.prototype;let KEe=e=>e!=+e;function OF(){return new _C}class _C extends nr{constructor(){super({type:"number"}),this.withMutation(()=>{this.transform(function(t){let n=t;if(typeof n=="string"){if(n=n.replace(/\s/g,""),n==="")return NaN;n=+n}return this.isType(n)?n:parseFloat(n)})})}_typeCheck(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!KEe(t)}min(t,n=Aa.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},test(r){return gn(r)||r>=this.resolve(t)}})}max(t,n=Aa.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},test(r){return gn(r)||r<=this.resolve(t)}})}lessThan(t,n=Aa.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},test(r){return gn(r)||r<this.resolve(t)}})}moreThan(t,n=Aa.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:t},test(r){return gn(r)||r>this.resolve(t)}})}positive(t=Aa.positive){return this.moreThan(0,t)}negative(t=Aa.negative){return this.lessThan(0,t)}integer(t=Aa.integer){return this.test({name:"integer",message:t,test:n=>gn(n)||Number.isInteger(n)})}truncate(){return this.transform(t=>gn(t)?t:t|0)}round(t){var n;let r=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(r.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(i=>gn(i)?i:Math[t](i))}}OF.prototype=_C.prototype;var YEe=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function XEe(e){var t=[1,4,5,6,7,10,11],n=0,r,i;if(i=YEe.exec(e)){for(var o=0,a;a=t[o];++o)i[a]=+i[a]||0;i[2]=(+i[2]||1)-1,i[3]=+i[3]||1,i[7]=i[7]?String(i[7]).substr(0,3):0,(i[8]===void 0||i[8]==="")&&(i[9]===void 0||i[9]==="")?r=+new Date(i[1],i[2],i[3],i[4],i[5],i[6],i[7]):(i[8]!=="Z"&&i[9]!==void 0&&(n=i[10]*60+i[11],i[9]==="+"&&(n=0-n)),r=Date.UTC(i[1],i[2],i[3],i[4],i[5]+n,i[6],i[7]))}else r=Date.parse?Date.parse(e):NaN;return r}let CC=new Date(""),ZEe=e=>Object.prototype.toString.call(e)==="[object Date]";function SC(){return new qv}class qv extends nr{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(t){return this.isType(t)?t:(t=XEe(t),isNaN(t)?CC:new Date(t))})})}_typeCheck(t){return ZEe(t)&&!isNaN(t.getTime())}prepareParam(t,n){let r;if(Jo.isRef(t))r=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(t,n=$1.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},test(i){return gn(i)||i>=this.resolve(r)}})}max(t,n=$1.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},test(i){return gn(i)||i<=this.resolve(r)}})}}qv.INVALID_DATE=CC;SC.prototype=qv.prototype;SC.INVALID_DATE=CC;function QEe(e,t,n,r){var i=-1,o=e==null?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}var JEe=QEe;function eOe(e){return function(t){return e==null?void 0:e[t]}}var tOe=eOe,nOe=tOe,rOe={À:"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"},iOe=nOe(rOe),oOe=iOe,aOe=oOe,sOe=Wf,lOe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,uOe="\\u0300-\\u036f",cOe="\\ufe20-\\ufe2f",dOe="\\u20d0-\\u20ff",fOe=uOe+cOe+dOe,hOe="["+fOe+"]",pOe=RegExp(hOe,"g");function gOe(e){return e=sOe(e),e&&e.replace(lOe,aOe).replace(pOe,"")}var mOe=gOe,vOe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function yOe(e){return e.match(vOe)||[]}var bOe=yOe,xOe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function wOe(e){return xOe.test(e)}var _Oe=wOe,PF="\\ud800-\\udfff",COe="\\u0300-\\u036f",SOe="\\ufe20-\\ufe2f",TOe="\\u20d0-\\u20ff",EOe=COe+SOe+TOe,RF="\\u2700-\\u27bf",MF="a-z\\xdf-\\xf6\\xf8-\\xff",OOe="\\xac\\xb1\\xd7\\xf7",POe="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ROe="\\u2000-\\u206f",MOe=" \\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",AF="A-Z\\xc0-\\xd6\\xd8-\\xde",AOe="\\ufe0e\\ufe0f",DF=OOe+POe+ROe+MOe,IF="['’]",sA="["+DF+"]",DOe="["+EOe+"]",$F="\\d+",IOe="["+RF+"]",LF="["+MF+"]",kF="[^"+PF+DF+$F+RF+MF+AF+"]",$Oe="\\ud83c[\\udffb-\\udfff]",LOe="(?:"+DOe+"|"+$Oe+")",kOe="[^"+PF+"]",NF="(?:\\ud83c[\\udde6-\\uddff]){2}",FF="[\\ud800-\\udbff][\\udc00-\\udfff]",ru="["+AF+"]",NOe="\\u200d",lA="(?:"+LF+"|"+kF+")",FOe="(?:"+ru+"|"+kF+")",uA="(?:"+IF+"(?:d|ll|m|re|s|t|ve))?",cA="(?:"+IF+"(?:D|LL|M|RE|S|T|VE))?",jF=LOe+"?",BF="["+AOe+"]?",jOe="(?:"+NOe+"(?:"+[kOe,NF,FF].join("|")+")"+BF+jF+")*",BOe="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",UOe="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",WOe=BF+jF+jOe,HOe="(?:"+[IOe,NF,FF].join("|")+")"+WOe,zOe=RegExp([ru+"?"+LF+"+"+uA+"(?="+[sA,ru,"$"].join("|")+")",FOe+"+"+cA+"(?="+[sA,ru+lA,"$"].join("|")+")",ru+"?"+lA+"+"+uA,ru+"+"+cA,UOe,BOe,$F,HOe].join("|"),"g");function VOe(e){return e.match(zOe)||[]}var GOe=VOe,qOe=bOe,KOe=_Oe,YOe=Wf,XOe=GOe;function ZOe(e,t,n){return e=YOe(e),t=n?void 0:t,t===void 0?KOe(e)?XOe(e):qOe(e):e.match(t)||[]}var QOe=ZOe,JOe=JEe,ePe=mOe,tPe=QOe,nPe="['’]",rPe=RegExp(nPe,"g");function iPe(e){return function(t){return JOe(tPe(ePe(t).replace(rPe,"")),e,"")}}var UF=iPe,oPe=UF,aPe=oPe(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),sPe=aPe;const dA=Di(sPe);function lPe(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}var uPe=lPe,cPe=uPe;function dPe(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:cPe(e,t,n)}var fPe=dPe,hPe="\\ud800-\\udfff",pPe="\\u0300-\\u036f",gPe="\\ufe20-\\ufe2f",mPe="\\u20d0-\\u20ff",vPe=pPe+gPe+mPe,yPe="\\ufe0e\\ufe0f",bPe="\\u200d",xPe=RegExp("["+bPe+hPe+vPe+yPe+"]");function wPe(e){return xPe.test(e)}var WF=wPe;function _Pe(e){return e.split("")}var CPe=_Pe,HF="\\ud800-\\udfff",SPe="\\u0300-\\u036f",TPe="\\ufe20-\\ufe2f",EPe="\\u20d0-\\u20ff",OPe=SPe+TPe+EPe,PPe="\\ufe0e\\ufe0f",RPe="["+HF+"]",V1="["+OPe+"]",G1="\\ud83c[\\udffb-\\udfff]",MPe="(?:"+V1+"|"+G1+")",zF="[^"+HF+"]",VF="(?:\\ud83c[\\udde6-\\uddff]){2}",GF="[\\ud800-\\udbff][\\udc00-\\udfff]",APe="\\u200d",qF=MPe+"?",KF="["+PPe+"]?",DPe="(?:"+APe+"(?:"+[zF,VF,GF].join("|")+")"+KF+qF+")*",IPe=KF+qF+DPe,$Pe="(?:"+[zF+V1+"?",V1,VF,GF,RPe].join("|")+")",LPe=RegExp(G1+"(?="+G1+")|"+$Pe+IPe,"g");function kPe(e){return e.match(LPe)||[]}var NPe=kPe,FPe=CPe,jPe=WF,BPe=NPe;function UPe(e){return jPe(e)?BPe(e):FPe(e)}var WPe=UPe,HPe=fPe,zPe=WF,VPe=WPe,GPe=Wf;function qPe(e){return function(t){t=GPe(t);var n=zPe(t)?VPe(t):void 0,r=n?n[0]:t.charAt(0),i=n?HPe(n,1).join(""):t.slice(1);return r[e]()+i}}var KPe=qPe,YPe=KPe,XPe=YPe("toUpperCase"),ZPe=XPe,QPe=Wf,JPe=ZPe;function eRe(e){return JPe(QPe(e).toLowerCase())}var tRe=eRe,nRe=tRe,rRe=UF,iRe=rRe(function(e,t,n){return t=t.toLowerCase(),e+(n?nRe(t):t)}),oRe=iRe;const aRe=Di(oRe);var sRe=cF,lRe=hF,uRe=_F;function cRe(e,t){var n={};return t=uRe(t),lRe(e,function(r,i,o){sRe(n,t(r,i,o),r)}),n}var dRe=cRe;const fRe=Di(dRe);var TC={exports:{}};TC.exports=function(e){return YF(hRe(e),e)};TC.exports.array=YF;function YF(e,t){var n=e.length,r=new Array(n),i={},o=n,a=pRe(t),s=gRe(e);for(t.forEach(function(u){if(!s.has(u[0])||!s.has(u[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});o--;)i[o]||l(e[o],o,new Set);return r;function l(u,d,h){if(h.has(u)){var p;try{p=", node was:"+JSON.stringify(u)}catch{p=""}throw new Error("Cyclic dependency"+p)}if(!s.has(u))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(u));if(!i[d]){i[d]=!0;var g=a.get(u)||new Set;if(g=Array.from(g),d=g.length){h.add(u);do{var m=g[--d];l(m,s.get(m),h)}while(d);h.delete(u)}r[--n]=u}}}function hRe(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var i=e[n];t.add(i[0]),t.add(i[1])}return Array.from(t)}function pRe(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var i=e[n];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}function gRe(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}var mRe=TC.exports;const vRe=Di(mRe);function yRe(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([a,s])=>`${a}-${s}`));function o(a,s){let l=Gv.split(a)[0];r.add(l),i.has(`${s}-${l}`)||n.push([s,l])}for(const a in e)if(nm(e,a)){let s=e[a];r.add(a),Jo.isRef(s)&&s.isSibling?o(s.path,a):ic(s)&&"deps"in s&&s.deps.forEach(l=>o(l,a))}return vRe.array(Array.from(r),n).reverse()}function fA(e,t){let n=1/0;return e.some((r,i)=>{var o;if(((o=t.path)==null?void 0:o.indexOf(r))!==-1)return n=i,!0}),n}function XF(e){return(t,n)=>fA(e,t)-fA(e,n)}function au(){return au=Object.assign||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},au.apply(this,arguments)}let hA=e=>Object.prototype.toString.call(e)==="[object Object]";function bRe(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const xRe=XF([]);class EC extends nr{constructor(t){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=xRe,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform(function(r){if(typeof r=="string")try{r=JSON.parse(r)}catch{r=null}return this.isType(r)?r:null}),t&&this.shape(t)})}_typeCheck(t){return hA(t)||typeof t=="function"}_cast(t,n={}){var r;let i=super._cast(t,n);if(i===void 0)return this.getDefault();if(!this._typeCheck(i))return i;let o=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,s=this._nodes.concat(Object.keys(i).filter(h=>this._nodes.indexOf(h)===-1)),l={},u=au({},n,{parent:l,__validating:n.__validating||!1}),d=!1;for(const h of s){let p=o[h],g=nm(i,h);if(p){let m,y=i[h];u.path=(n.path?`${n.path}.`:"")+h,p=p.resolve({value:y,context:n.context,parent:l});let b="spec"in p?p.spec:void 0,x=b==null?void 0:b.strict;if(b!=null&&b.strip){d=d||h in i;continue}m=!n.__validating||!x?p.cast(i[h],u):i[h],m!==void 0&&(l[h]=m)}else g&&!a&&(l[h]=i[h]);l[h]!==i[h]&&(d=!0)}return d?l:i}_validate(t,n={},r){let i=[],{sync:o,from:a=[],originalValue:s=t,abortEarly:l=this.spec.abortEarly,recursive:u=this.spec.recursive}=n;a=[{schema:this,value:s},...a],n.__validating=!0,n.originalValue=s,n.from=a,super._validate(t,n,(d,h)=>{if(d){if(!Sr.isError(d)||l)return void r(d,h);i.push(d)}if(!u||!hA(h)){r(i[0]||null,h);return}s=s||h;let p=this._nodes.map(g=>(m,y)=>{let b=g.indexOf(".")===-1?(n.path?`${n.path}.`:"")+g:`${n.path||""}["${g}"]`,x=this.fields[g];if(x&&"validate"in x){x.validate(h[g],au({},n,{path:b,from:a,strict:!0,parent:h,originalValue:s[g]}),y);return}y(null)});rm({tests:p,value:h,errors:i,endEarly:l,sort:this._sortErrors,path:n.path},r)})}clone(t){const n=super.clone(t);return n.fields=au({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[i,o]of Object.entries(this.fields)){const a=r[i];a===void 0?r[i]=o:a instanceof nr&&o instanceof nr&&(r[i]=o.concat(a))}return n.withMutation(()=>n.shape(r,this._excludedEdges))}getDefaultFromShape(){let t={};return this._nodes.forEach(n=>{const r=this.fields[n];t[n]="default"in r?r.getDefault():void 0}),t}_getDefault(){if("default"in this.spec)return super._getDefault();if(this._nodes.length)return this.getDefaultFromShape()}shape(t,n=[]){let r=this.clone(),i=Object.assign(r.fields,t);return r.fields=i,r._sortErrors=XF(Object.keys(i)),n.length&&(Array.isArray(n[0])||(n=[n]),r._excludedEdges=[...r._excludedEdges,...n]),r._nodes=yRe(i,r._excludedEdges),r}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.clone().withMutation(r=>(r.fields={},r.shape(n)))}omit(t){const n=this.clone(),r=n.fields;n.fields={};for(const i of t)delete r[i];return n.withMutation(()=>n.shape(r))}from(t,n,r){let i=Gv.getter(t,!0);return this.transform(o=>{if(o==null)return o;let a=o;return nm(o,t)&&(a=au({},o),r||delete a[t],a[n]=i(o)),a})}noUnknown(t=!0,n=k1.noUnknown){typeof t=="string"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(i){if(i==null)return!0;const o=bRe(this.schema,i);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=k1.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>n&&fRe(n,(r,i)=>t(i)))}camelCase(){return this.transformKeys(aRe)}snakeCase(){return this.transformKeys(dA)}constantCase(){return this.transformKeys(t=>dA(t).toUpperCase())}describe(){let t=super.describe();return t.fields=CF(this.fields,n=>n.describe()),t}}function ZF(e){return new EC(e)}ZF.prototype=EC.prototype;function um(){return um=Object.assign||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},um.apply(this,arguments)}function QF(e){return new OC(e)}class OC extends nr{constructor(t){super({type:"array"}),this.innerType=void 0,this.innerType=t,this.withMutation(()=>{this.transform(function(n){if(typeof n=="string")try{n=JSON.parse(n)}catch{n=null}return this.isType(n)?n:null})})}_typeCheck(t){return Array.isArray(t)}get _subType(){return this.innerType}_cast(t,n){const r=super._cast(t,n);if(!this._typeCheck(r)||!this.innerType)return r;let i=!1;const o=r.map((a,s)=>{const l=this.innerType.cast(a,um({},n,{path:`${n.path||""}[${s}]`}));return l!==a&&(i=!0),l});return i?o:r}_validate(t,n={},r){var i,o;let a=[];n.sync;let s=n.path,l=this.innerType,u=(i=n.abortEarly)!=null?i:this.spec.abortEarly,d=(o=n.recursive)!=null?o:this.spec.recursive,h=n.originalValue!=null?n.originalValue:t;super._validate(t,n,(p,g)=>{if(p){if(!Sr.isError(p)||u)return void r(p,g);a.push(p)}if(!d||!l||!this._typeCheck(g)){r(a[0]||null,g);return}h=h||g;let m=new Array(g.length);for(let y=0;y<g.length;y++){let b=g[y],x=`${n.path||""}[${y}]`,S=um({},n,{path:x,strict:!0,parent:g,index:y,originalValue:h[y]});m[y]=(w,C)=>l.validate(b,S,C)}rm({path:s,value:g,errors:a,endEarly:u,tests:m},r)})}clone(t){const n=super.clone(t);return n.innerType=this.innerType,n}concat(t){let n=super.concat(t);return n.innerType=this.innerType,t.innerType&&(n.innerType=n.innerType?n.innerType.concat(t.innerType):t.innerType),n}of(t){let n=this.clone();if(!ic(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+$u(t));return n.innerType=t,n}length(t,n=eg.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},test(r){return gn(r)||r.length===this.resolve(t)}})}min(t,n){return n=n||eg.min,this.test({message:n,name:"min",exclusive:!0,params:{min:t},test(r){return gn(r)||r.length>=this.resolve(t)}})}max(t,n){return n=n||eg.max,this.test({message:n,name:"max",exclusive:!0,params:{max:t},test(r){return gn(r)||r.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,n)=>this._typeCheck(t)?t:n==null?[]:[].concat(n))}compact(t){let n=t?(r,i,o)=>!t(r,i,o):r=>!!r;return this.transform(r=>r!=null?r.filter(n):r)}describe(){let t=super.describe();return this.innerType&&(t.innerType=this.innerType.describe()),t}nullable(t=!0){return super.nullable(t)}defined(){return super.defined()}required(t){return super.required(t)}}QF.prototype=OC.prototype;function wRe(e){return new _Re(e)}class _Re{constructor(t){this.type="lazy",this.__isYupSchema__=!0,this.__inputType=void 0,this.__outputType=void 0,this._resolve=(n,r={})=>{let i=this.builder(n,r);if(!ic(i))throw new TypeError("lazy() functions must return a valid schema");return i.resolve(r)},this.builder=t}resolve(t){return this._resolve(t.value,t)}cast(t,n){return this._resolve(t,n).cast(t,n)}validate(t,n,r){return this._resolve(t,n).validate(t,n,r)}validateSync(t,n){return this._resolve(t,n).validateSync(t,n)}validateAt(t,n,r){return this._resolve(n,r).validateAt(t,n,r)}validateSyncAt(t,n,r){return this._resolve(n,r).validateSyncAt(t,n,r)}describe(){return null}isValid(t,n){return this._resolve(t,n).isValid(t,n)}isValidSync(t,n){return this._resolve(t,n).isValidSync(t,n)}}function JF(e){Object.keys(e).forEach(t=>{Object.keys(e[t]).forEach(n=>{Ube[t][n]=e[t][n]})})}function ej(e,t,n){if(!e||!ic(e.prototype))throw new TypeError("You must provide a yup schema constructor function");if(typeof t!="string")throw new TypeError("A Method name must be provided");if(typeof n!="function")throw new TypeError("Method function must be provided");e.prototype[t]=n}const pA=Object.freeze(Object.defineProperty({__proto__:null,ArraySchema:OC,BaseSchema:nr,BooleanSchema:bC,DateSchema:qv,MixedSchema:yC,NumberSchema:_C,ObjectSchema:EC,StringSchema:wC,ValidationError:Sr,addMethod:ej,array:QF,bool:z1,boolean:z1,date:SC,isSchema:ic,lazy:wRe,mixed:EF,number:OF,object:ZF,reach:WEe,ref:jEe,setLocale:JF,string:xC},Symbol.toStringTag,{value:"Module"})),CRe={mixed:{required:"validation:required"},string:{email:"validation:invalid_email",max:"validation:maximum_of_characters"}};JF(CRe);const SRe=/^[^\s].*[^\s]$/i;ej(xC,"noSurroundingSpaces",function(){return this.test("is-string-trimmed","validation:no_surrounding_spaces",e=>!e||Un.isEmpty(e)?!0:e.length<3?/^[\S]*$/i.test(e):SRe.test(e))});const TRe=pA.object({alertThreshold:pA.number().required()}),ERe=({handleClose:e,onUpdate:t,alert:n,t:r})=>{const{enqueueSnackbar:i}=$be(),o=vhe(),a=whe(),s=bhe(),l=()=>{s.mutate({alertType:Nr.CUSTOM,email:w.emailEnabledSubscription,sms:w.smsEnabledSubscription,enrollment:n==null?void 0:n.number,threshold:+w.alertThreshold},{onSuccess:m,onError:b})},u=()=>{o.mutate({alertId:n==null?void 0:n.number,sms:w.smsEnabledSubscription,email:w.emailEnabledSubscription,threshold:+w.alertThreshold},{onSuccess:d,onError:b})},d=()=>{a.mutate({alertId:n.number,alertType:n.alertType,sms:w.smsEnabledSubscription,email:w.emailEnabledSubscription,threshold:+w.alertThreshold,enrollment:n.number},{onSuccess:y,onError:b})},h=()=>{w.alertThreshold!==n.threshold?l():d()},p=()=>{n.alertType===Nr.CRITICAL?h():u()},g=(R,O=void 0)=>{const T=new CustomEvent("add-toast",{detail:{id:"custom-alerts-toast",content:Bz`
|
|
671
|
+
<style>
|
|
672
|
+
.custom-alerts-toast {
|
|
673
|
+
white-space: nowrap;
|
|
674
|
+
}
|
|
675
|
+
</style>
|
|
676
|
+
<ix-message-toast
|
|
677
|
+
class="custom-alerts-toast"
|
|
678
|
+
toastId="custom-alerts-toast"
|
|
679
|
+
.hasClose=${!1}
|
|
680
|
+
type=${Uz(O)}
|
|
681
|
+
>
|
|
682
|
+
${R}
|
|
683
|
+
</ix-message-toast>
|
|
684
|
+
`,autoClose:5e3,vertical:"bottom",horizontal:"center",animated:!0,durationOut:333,above:!1}});window.dispatchEvent(T)},m=()=>{i(r("customize-alert-dialog.success-custom-created"),{variant:"success"}),g("Custom alert created"),t&&t(),e()},y=()=>{i(ege(r,n.alertType),{variant:"success"}),g("Custom alert updated"),t&&t(),e()},b=R=>{const O=tge(r,R==null?void 0:R.message);i(O,{variant:"error"}),g("An error occurred, please try again","error"),C(!1)},S=sbe({initialValues:{emailEnabledSubscription:n==null?void 0:n.emailEnabledSubscription,smsEnabledSubscription:n==null?void 0:n.smsEnabledSubscription,alertThreshold:(n==null?void 0:n.threshold)||0},onSubmit:p,validationSchema:TRe}),{values:w,setSubmitting:C}=S;return{formik:S,handleSave:p,handleCreateSuccess:m,handleUpdateSuccess:y,handleError:b,createCustomAlert:l,saveCriticalAlert:h}},ORe=({handleClose:e,onUpdate:t,isOpen:n,alert:r})=>{const{t:i}=yn(["location"]),o=ia(bv).querySelector("#dialogs"),{formik:a}=ERe({handleClose:e,onUpdate:t,alert:r,t:i}),{values:s,handleChange:l,handleSubmit:u,setFieldValue:d,isValid:h,isSubmitting:p,errors:g}=a,m=[{label:i("customize-alert-dialog.cancel-button"),mobileLabel:_.jsx(V_,{}),trigger:e},{label:i("customize-alert-dialog.save-button"),mobileLabel:i("create-button"),trigger:u,disabled:!h,loading:p}];return _.jsx(rbe,{value:a,children:_.jsxs(m_,{container:o,title:i("customize-alert-dialog.title"),actions:m,open:n,children:[_.jsx(JZ,{maxWidth:"512px",children:i("customize-alert-dialog.message")}),_.jsx(Ye,{variant:"body1",sx:{margin:"21px 0"},children:i("customize-alert-dialog.it-load-level")}),_.jsx(g_,{id:"alertThreshold",name:"alertThreshold",label:i("customize-alert-dialog.threshold"),value:s.alertThreshold,onChange:l,InputProps:{startAdornment:_.jsx(Ye,{variant:"body1",color:"rgba(9, 34, 65, 0.6)",marginRight:"8px",children:`${r.functionName} ${r.comparisonOperator}`})},inputProps:{sx:{flex:1}},error:!!g.alertThreshold}),_.jsxs(Tn,{sx:{display:"flex",alignItems:"center",marginTop:"20px"},children:[_.jsxs(Tn,{sx:{display:"flex",alignItems:"center"},children:[_.jsx(cx,{id:"emailEnabledSubscription",color:"primary",checked:s.emailEnabledSubscription,onChange:()=>{d("emailEnabledSubscription",!s.emailEnabledSubscription)}}),_.jsx(Ye,{variant:"body1",component:"label",htmlFor:"emailEnabledSubscription",noWrap:!0,children:i("customize-alert-dialog.email-alerts")})]}),_.jsxs(Tn,{sx:{display:"flex",alignItems:"center",marginLeft:"25px"},children:[_.jsx(cx,{id:"smsEnabledSubscription",color:"primary",checked:s.smsEnabledSubscription,onChange:()=>{d("smsEnabledSubscription",!s.smsEnabledSubscription)}}),_.jsx(Ye,{variant:"body1",component:"label",htmlFor:"smsEnabledSubscription",noWrap:!0,children:i("customize-alert-dialog.sms-alerts")})]})]}),_.jsx(Ye,{variant:"body2",maxWidth:"512px",fontSize:"12px",marginTop:"20px",children:i("customize-alert-dialog.bottom-message")})]})})},PRe=(e,t=1)=>{if(t>1&&(t=1),e.startsWith("#")){t=Math.floor(255*t);const n=e.split("#").pop(),r=e.substring(0,1),i=t>0?t.toString(16):"FF";return r+(i+n).toUpperCase()}return e.startsWith("rgb")?`rgba(${e.split(/\D/i).filter(Boolean).join(",")},${t})`:e},q1=(e,t)=>{const n=o=>parseInt(o,16),r=o=>parseInt(o+o,16);e=e.substring(1);const i=(o=255)=>t===void 0?o:t;if(e.length===3){const[o,a,s]=e.match(/\w/g).map(r);return`rgba(${o},${a},${s},${i()})`}if(e.length===4){const[o,a,s,l]=e.match(/\w/g).map(r);return`rgba(${a},${s},${l},${i(o/255)})`}if(e.length===6){const[o,a,s]=e.match(/\w{2}/g).map(n);return`rgba(${o},${a},${s},${i()})`}if(e.length===8){const[o,a,s,l]=e.match(/\w{2}/g).map(n);return`rgba(${a},${s},${l},${i(o/255)})`}return e},gA=(e,t=[])=>Object.entries(e).map(([n,r])=>`${Un.kebabCase(n)}:${r}`).concat(t).join(";"),RRe=(e,t)=>{if(!e)return"transparent";const{ctx:n,chartArea:{height:r}}=e,i=q1(t,.25),o=q1(t,0),a=n==null?void 0:n.createLinearGradient(0,0,0,r);return a==null||a.addColorStop(0,i),a==null||a.addColorStop(1,o),a},MRe=(e,t,{options:n})=>!t||!t.length?[]:t.map(({trendData:r,deviceName:i},o)=>{let a=[];return r.forEach(({pointValue:s,utcPollDateTime:l})=>{const u=Ai(l).getTime();a.push({x:u,y:Number(s)})}),a=a.sort((s,l)=>s.x-l.x),{label:i,data:a,hidden:o>0,pointBorderColor:e.palette.primary.light,pointRadius:3,animation:{duration:500,easing:"easeInOutCubic"},...n}}),ARe=(e,t)=>{const n=/\d{4}-\d{2}-\d{2}/;if(e){if(Rf(Ai(e))&&n.test(String(e)))return e.search(/[a-z]/i)===-1?Epe(new Date(e),t,{timeZone:"UTC"}):oN(new Date(e),"UTC",t)}else return"-";return e},tj=({label:e,value:t})=>{const{dateTimeFormatPreferences:n,getTimeFormatString:r}=Av(),i=r(!0),o=`${n.preferredDateFormat} ${i} (zzz)`;return _.jsxs(Hpe,{children:[_.jsx(zpe,{variant:"body1","data-testid":`datapoint-label-${e}`,children:e}),_.jsx(Gpe,{children:_.jsx(Vpe,{"data-testid":`datapoint-value-${t}`,children:ARe(t,o)})})]})},DRe=({alert:e,t,translationKey:n,onUpdate:r})=>{const[i,o]=XL(),a=e.threshold?`${e.functionName} ${e.comparisonOperator} ${e.threshold}`:"",s={deviceName:e.functionName,threshold:a,liveValue:e.functionValue,timeStamp:e.alertTimestamp},l=Object.entries(s).map(d=>({key:d[0],value:d[1]})),u=()=>{o(),i(_.jsx(ORe,{alert:e,handleClose:o,onUpdate:r,isOpen:!0}))};return _.jsxs(pN,{"data-testid":"alert-definition",children:[_.jsxs(fN,{children:[_.jsx(hN,{variant:"h6","data-testid":`alert-title-${e.number}`,children:t(e.functionName)}),e.alertCategory&&_.jsx(Jg,{title:e.alertCategory})]}),_.jsx(gN,{children:l.map(({key:d,value:h})=>_.jsx(tj,{label:t(`${n}.${d}`),value:h},d))}),_.jsx(Jpe,{alert:e,onClickCustomize:u})]})},IRe=({alert:e,t,translationKey:n,selectedAlert:r,alertInstanceClickHandler:i})=>{const o={deviceName:e.alertName,configurationItem:e.deviceName,functionValue:e.functionValue,alertTimeStamp:e.alertTimeStamp},a=Object.entries(o).map(s=>({key:s[0],value:s[1]}));return _.jsxs(pN,{$canBeClicked:!0,$selected:r===e.alertId,"data-testid":"alert-instance",onClick:()=>i==null?void 0:i(e.alertId),children:[_.jsxs(fN,{children:[_.jsx(hN,{variant:"h6","data-testid":`alert-title-${e.alertId}`,children:t(e.alertName)}),!!e.alertCategory&&_.jsx(Jg,{title:e.alertCategory})]}),_.jsx(gN,{children:a.map(({key:s,value:l})=>_.jsx(tj,{label:s==="functionValue"?t(`${n}.${s}`,{device:e.alertName}):t(`${n}.${s}`),value:l},s))})]})},$Re=(e,t,n,r,i)=>(o,a)=>{if(t){const{ddid:l,alertCategory:u}=o,d=`${l}-${Un.kebabCase(u)}-${a}`;return _.jsx(DRe,{alert:o,t:e,translationKey:"alert-definition",onUpdate:r},d)}const{alertId:s}=o;return _.jsx(IRe,{alert:o,selectedAlert:n,t:e,translationKey:"alert-instance",alertInstanceClickHandler:i},s)},nj=({leasedSpaceName:e,alertType:t,alertCategory:n,title:r,isDefinitionsView:i,selectedAlertInstance:o,alertInstanceClickHandler:a})=>{const{t:s}=yn(["location"]),[l,u]=lt.useState(0),[d,h]=lt.useState(Ma.DEVICE_NAME),[p,g]=lt.useState(10),[m,y]=lt.useState(0),b=kk.ASC,x={leasedSpaceName:e,order:b,sort:d,size:p,page:l,alertType:Upe(t),alertCategory:Bpe(n)};At(()=>{u(0),y(0)},[t,n]);const S=[{id:Ma.DEVICE_NAME,name:s(`alert-list.${Ma.DEVICE_NAME}`)},{id:Ma.FUNCTION_VALUE,name:s(`alert-list.${Ma.FUNCTION_VALUE}`)},...i?[{id:Ma.THRESHOLD,name:s(`alert-list.${Ma.THRESHOLD}`)}]:[]],w=Gn(()=>i?qi.DEFINITIONS:t===Y_?qi.HISTORY:qi.INSTANCES,[t,i]),C=Gn(()=>lN(w),[w]),{data:R,isFetching:O,isError:T,refetch:A}=C(x,{onSuccess(z){y((z==null?void 0:z.totalElements)||0)}}),L=O?!1:(R==null?void 0:R.totalElements)<=0,I=z=>{u(0),h(z.target.value)},N=(z,F)=>{u(F)},B=z=>{u(0),g(parseInt(z.target.value,10))},U=$Re(s,i,o,A,a);return _.jsxs(_.Fragment,{children:[_.jsxs(jpe,{children:[_.jsx(Ye,{variant:"h6",children:r}),_.jsxs(Tn,{display:"flex",alignItems:"center",children:[_.jsx(Ye,{variant:"body1",marginRight:"8px",children:s("alert-list.sort-by")}),_.jsx(ine,{name:"sort",fullWidth:!1,value:d,options:S,onChange:I,inputProps:{sx:{padding:"2px 8px",fontWeight:700}},$customBorder:"1px solid rgba(9, 34, 65, 0.12)"})]})]}),_.jsxs(Fpe,{"data-testid":"alert-list-container",children:[O&&_.jsx(yv,{size:25}),(T||L)&&_.jsx(y_,{children:_.jsx(Ye,{variant:"body1",children:s("no-dcim-data-available")})}),!T&&!O&&(R==null?void 0:R.content.map(U))]}),_.jsx(Ote,{component:"div",count:m,page:l||0,onPageChange:N,rowsPerPage:p,onRowsPerPageChange:B,labelRowsPerPage:s("alert-list.pagination-label")})]})},LRe=H(Tn)`
|
|
685
|
+
display: flex;
|
|
686
|
+
flex-direction: column;
|
|
687
|
+
gap: 42px;
|
|
688
|
+
|
|
689
|
+
${({theme:e})=>e.breakpoints.down("md")} {
|
|
690
|
+
gap: 26px;
|
|
691
|
+
}
|
|
692
|
+
`,kRe=()=>{const{t:e}=yn("location"),t=window.location.search.slice(1),n=Ev.parse(t),{assetName:r,leasedSpaceName:i,sitecode:o,type:a}=n,[s,l]=Nn({category:Du,type:a||Du}),[u,d]=Nn(!1),[h,p]=Nn(""),g=Ha(Lg.breakpoints.down("lg")),m=(x,S)=>{p(""),l(w=>({...w,[x]:S}))},y=x=>{p(x),g&&d(!0)},b=Gn(()=>s.type===Y_,[s]);return _.jsx(O_,{children:_.jsxs(S2,{children:[_.jsx(R_,{assetName:r,sitecode:o}),_.jsxs(P_,{container:!0,spacing:{xs:2.5,md:3},children:[_.jsx(Bn,{item:!0,xs:12,sm:4,md:3,lg:2,children:_.jsxs(LRe,{children:[_.jsx(X_,{leasedSpaceName:i,filters:s,handleFilters:m}),_.jsx(dN,{leasedSpaceName:i,filters:s,handleFilters:m})]})}),_.jsx(Bn,{item:!0,xs:12,sm:8,md:9,lg:5,children:_.jsx(nj,{alertCategory:s.category,alertInstanceClickHandler:y,alertType:s.type,leasedSpaceName:i,title:e("alerts.details.title"),selectedAlertInstance:h})}),_.jsx(Bn,{item:!0,xs:12,lg:5,children:!!h&&_.jsx(_.Fragment,{children:g?_.jsx(Ipe,{alertInstanceId:h,isOpen:u,handleClose:()=>d(!1),isHistorical:b}):_.jsx(sN,{alertInstanceId:h,isHistorical:b})})})]})]})})},Kv="location-changed",NRe=()=>(At(()=>{window.dispatchEvent(new CustomEvent(Kv,{detail:{location:{route:{hideAccountSwitcher:!0}}}}))},[]),_.jsx(kRe,{}));var Gi=(e=>(e.Day="day",e.Hour="hour",e.FifteenMinutes="15 minute",e.FiveMinutes="5 minute",e.Minute="minute",e))(Gi||{});const FRe=H("div")`
|
|
693
|
+
padding-top: 1rem;
|
|
694
|
+
width: 100%;
|
|
695
|
+
`;/*!
|
|
696
|
+
* @kurkle/color v0.3.4
|
|
697
|
+
* https://github.com/kurkle/color#readme
|
|
698
|
+
* (c) 2024 Jukka Kurkela
|
|
699
|
+
* Released under the MIT License
|
|
700
|
+
*/function Hf(e){return e+.5|0}const Fa=(e,t,n)=>Math.max(Math.min(e,n),t);function fd(e){return Fa(Hf(e*2.55),0,255)}function Ua(e){return Fa(Hf(e*255),0,255)}function Vo(e){return Fa(Hf(e/2.55)/100,0,1)}function mA(e){return Fa(Hf(e*100),0,100)}const mi={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},K1=[..."0123456789ABCDEF"],jRe=e=>K1[e&15],BRe=e=>K1[(e&240)>>4]+K1[e&15],gp=e=>(e&240)>>4===(e&15),URe=e=>gp(e.r)&&gp(e.g)&&gp(e.b)&&gp(e.a);function WRe(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&mi[e[1]]*17,g:255&mi[e[2]]*17,b:255&mi[e[3]]*17,a:t===5?mi[e[4]]*17:255}:(t===7||t===9)&&(n={r:mi[e[1]]<<4|mi[e[2]],g:mi[e[3]]<<4|mi[e[4]],b:mi[e[5]]<<4|mi[e[6]],a:t===9?mi[e[7]]<<4|mi[e[8]]:255})),n}const HRe=(e,t)=>e<255?t(e):"";function zRe(e){var t=URe(e)?jRe:BRe;return e?"#"+t(e.r)+t(e.g)+t(e.b)+HRe(e.a,t):void 0}const VRe=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function rj(e,t,n){const r=t*Math.min(n,1-n),i=(o,a=(o+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[i(0),i(8),i(4)]}function GRe(e,t,n){const r=(i,o=(i+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function qRe(e,t,n){const r=rj(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function KRe(e,t,n,r,i){return e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}function PC(e){const n=e.r/255,r=e.g/255,i=e.b/255,o=Math.max(n,r,i),a=Math.min(n,r,i),s=(o+a)/2;let l,u,d;return o!==a&&(d=o-a,u=s>.5?d/(2-o-a):d/(o+a),l=KRe(n,r,i,d,o),l=l*60+.5),[l|0,u||0,s]}function RC(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Ua)}function MC(e,t,n){return RC(rj,e,t,n)}function YRe(e,t,n){return RC(qRe,e,t,n)}function XRe(e,t,n){return RC(GRe,e,t,n)}function ij(e){return(e%360+360)%360}function ZRe(e){const t=VRe.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?fd(+t[5]):Ua(+t[5]));const i=ij(+t[2]),o=+t[3]/100,a=+t[4]/100;return t[1]==="hwb"?r=YRe(i,o,a):t[1]==="hsv"?r=XRe(i,o,a):r=MC(i,o,a),{r:r[0],g:r[1],b:r[2],a:n}}function QRe(e,t){var n=PC(e);n[0]=ij(n[0]+t),n=MC(n),e.r=n[0],e.g=n[1],e.b=n[2]}function JRe(e){if(!e)return;const t=PC(e),n=t[0],r=mA(t[1]),i=mA(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${Vo(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const vA={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},yA={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function eMe(){const e={},t=Object.keys(yA),n=Object.keys(vA);let r,i,o,a,s;for(r=0;r<t.length;r++){for(a=s=t[r],i=0;i<n.length;i++)o=n[i],s=s.replace(o,vA[o]);o=parseInt(yA[a],16),e[s]=[o>>16&255,o>>8&255,o&255]}return e}let mp;function tMe(e){mp||(mp=eMe(),mp.transparent=[0,0,0,0]);const t=mp[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const nMe=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function rMe(e){const t=nMe.exec(e);let n=255,r,i,o;if(t){if(t[7]!==r){const a=+t[7];n=t[8]?fd(a):Fa(a*255,0,255)}return r=+t[1],i=+t[3],o=+t[5],r=255&(t[2]?fd(r):Fa(r,0,255)),i=255&(t[4]?fd(i):Fa(i,0,255)),o=255&(t[6]?fd(o):Fa(o,0,255)),{r,g:i,b:o,a:n}}}function iMe(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Vo(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const T0=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Jl=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function oMe(e,t,n){const r=Jl(Vo(e.r)),i=Jl(Vo(e.g)),o=Jl(Vo(e.b));return{r:Ua(T0(r+n*(Jl(Vo(t.r))-r))),g:Ua(T0(i+n*(Jl(Vo(t.g))-i))),b:Ua(T0(o+n*(Jl(Vo(t.b))-o))),a:e.a+n*(t.a-e.a)}}function vp(e,t,n){if(e){let r=PC(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=MC(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function oj(e,t){return e&&Object.assign(t||{},e)}function bA(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Ua(e[3]))):(t=oj(e,{r:0,g:0,b:0,a:1}),t.a=Ua(t.a)),t}function aMe(e){return e.charAt(0)==="r"?rMe(e):ZRe(e)}class of{constructor(t){if(t instanceof of)return t;const n=typeof t;let r;n==="object"?r=bA(t):n==="string"&&(r=WRe(t)||tMe(t)||aMe(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=oj(this._rgb);return t&&(t.a=Vo(t.a)),t}set rgb(t){this._rgb=bA(t)}rgbString(){return this._valid?iMe(this._rgb):void 0}hexString(){return this._valid?zRe(this._rgb):void 0}hslString(){return this._valid?JRe(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let o;const a=n===o?.5:n,s=2*a-1,l=r.a-i.a,u=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;o=1-u,r.r=255&u*r.r+o*i.r+.5,r.g=255&u*r.g+o*i.g+.5,r.b=255&u*r.b+o*i.b+.5,r.a=a*r.a+(1-a)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=oMe(this._rgb,t._rgb,n)),this}clone(){return new of(this.rgb)}alpha(t){return this._rgb.a=Ua(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Hf(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return vp(this._rgb,2,t),this}darken(t){return vp(this._rgb,2,-t),this}saturate(t){return vp(this._rgb,1,t),this}desaturate(t){return vp(this._rgb,1,-t),this}rotate(t){return QRe(this._rgb,t),this}}/*!
|
|
701
|
+
* Chart.js v4.4.0
|
|
702
|
+
* https://www.chartjs.org
|
|
703
|
+
* (c) 2023 Chart.js Contributors
|
|
704
|
+
* Released under the MIT License
|
|
705
|
+
*/function jo(){}const sMe=(()=>{let e=0;return()=>e++})();function Cn(e){return e===null||typeof e>"u"}function nn(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function gt(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function rr(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function io(e,t){return rr(e)?e:t}function ft(e,t){return typeof e>"u"?t:e}const lMe=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Vt(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function Wt(e,t,n,r){let i,o,a;if(nn(e))for(o=e.length,i=0;i<o;i++)t.call(n,e[i],i);else if(gt(e))for(a=Object.keys(e),o=a.length,i=0;i<o;i++)t.call(n,e[a[i]],a[i])}function cm(e,t){let n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function dm(e){if(nn(e))return e.map(dm);if(gt(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=dm(e[n[i]]);return t}return e}function aj(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function uMe(e,t,n,r){if(!aj(e))return;const i=t[e],o=n[e];gt(i)&>(o)?af(i,o,r):t[e]=dm(o)}function af(e,t,n){const r=nn(t)?t:[t],i=r.length;if(!gt(e))return e;n=n||{};const o=n.merger||uMe;let a;for(let s=0;s<i;++s){if(a=r[s],!gt(a))continue;const l=Object.keys(a);for(let u=0,d=l.length;u<d;++u)o(l[u],e,a,n)}return e}function $d(e,t){return af(e,t,{merger:cMe})}function cMe(e,t,n){if(!aj(e))return;const r=t[e],i=n[e];gt(r)&>(i)?$d(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=dm(i))}const xA={"":e=>e,x:e=>e.x,y:e=>e.y};function dMe(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function fMe(e){const t=dMe(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function fm(e,t){return(xA[t]||(xA[t]=fMe(t)))(e)}function AC(e){return e.charAt(0).toUpperCase()+e.slice(1)}const oi=e=>typeof e<"u",Ur=e=>typeof e=="function",wA=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function hMe(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const qt=Math.PI,Ei=2*qt,pMe=Ei+qt,hm=Number.POSITIVE_INFINITY,DC=qt/180,Tr=qt/2,wi=qt/4,pm=qt*2/3,sj=Math.log10,Lu=Math.sign;function Ld(e,t,n){return Math.abs(e-t)<n}function _A(e){const t=Math.round(e);e=Ld(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(sj(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function gMe(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((i,o)=>i-o).pop(),t}function il(e){return!isNaN(parseFloat(e))&&isFinite(e)}function mMe(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function vMe(e,t,n){let r,i,o;for(r=0,i=e.length;r<i;r++)o=e[r][n],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function mr(e){return e*(qt/180)}function lj(e){return e*(180/qt)}function CA(e){if(!rr(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function yMe(e,t){const n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);let o=Math.atan2(r,n);return o<-.5*qt&&(o+=Ei),{angle:o,distance:i}}function ku(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function bMe(e,t){return(e-t+pMe)%Ei-qt}function uo(e){return(e%Ei+Ei)%Ei}function uj(e,t,n,r){const i=uo(e),o=uo(t),a=uo(n),s=uo(o-i),l=uo(a-i),u=uo(i-o),d=uo(i-a);return i===o||i===a||r&&o===a||s>l&&u<d}function Ci(e,t,n){return Math.max(t,Math.min(n,e))}function xMe(e){return Ci(e,-32768,32767)}function su(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function IC(e,t,n){n=n||(a=>e[a]<t);let r=e.length-1,i=0,o;for(;r-i>1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const Fs=(e,t,n,r)=>IC(e,n,r?i=>{const o=e[i][t];return o<n||o===n&&e[i+1][t]===n}:i=>e[i][t]<n),wMe=(e,t,n)=>IC(e,n,r=>e[r][t]>=n);function _Me(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}const cj=["push","pop","shift","splice","unshift"];function CMe(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),cj.forEach(n=>{const r="_onData"+AC(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const a=i.apply(this,o);return e._chartjs.listeners.forEach(s=>{typeof s[r]=="function"&&s[r](...o)}),a}})})}function SA(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(cj.forEach(o=>{delete e[o]}),delete e._chartjs)}function SMe(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const dj=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function fj(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,dj.call(window,()=>{r=!1,e.apply(t,n)}))}}function TMe(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const hj=e=>e==="start"?"left":e==="end"?"right":"center",ei=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,EMe=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function OMe(e,t,n){const r=t.length;let i=0,o=r;if(e._sorted){const{iScale:a,_parsed:s}=e,l=a.axis,{min:u,max:d,minDefined:h,maxDefined:p}=a.getUserBounds();h&&(i=Ci(Math.min(Fs(s,l,u).lo,n?r:Fs(t,l,a.getPixelForValue(u)).lo),0,r-1)),p?o=Ci(Math.max(Fs(s,a.axis,d,!0).hi+1,n?0:Fs(t,l,a.getPixelForValue(d),!0).hi+1),i,r)-i:o=r-i}return{start:i,count:o}}function PMe(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}const yp=e=>e===0||e===1,TA=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Ei/n)),EA=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Ei/n)+1,kd={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Tr)+1,easeOutSine:e=>Math.sin(e*Tr),easeInOutSine:e=>-.5*(Math.cos(qt*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>yp(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>yp(e)?e:TA(e,.075,.3),easeOutElastic:e=>yp(e)?e:EA(e,.075,.3),easeInOutElastic(e){return yp(e)?e:e<.5?.5*TA(e*2,.1125,.45):.5+.5*EA(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-kd.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?kd.easeInBounce(e*2)*.5:kd.easeOutBounce(e*2-1)*.5+.5};function $C(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function OA(e){return $C(e)?e:new of(e)}function E0(e){return $C(e)?e:new of(e).saturate(.5).darken(.1).hexString()}const RMe=["x","y","borderWidth","radius","tension"],MMe=["color","borderColor","backgroundColor"];function AMe(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:MMe},numbers:{type:"number",properties:RMe}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function DMe(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const PA=new Map;function IMe(e,t){t=t||{};const n=e+JSON.stringify(t);let r=PA.get(n);return r||(r=new Intl.NumberFormat(e,t),PA.set(n,r)),r}function pj(e,t,n){return IMe(t,n).format(e)}const $Me={values(e){return nn(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,o=e;if(n.length>1){const u=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(u<1e-4||u>1e15)&&(i="scientific"),o=LMe(e,n)}const a=sj(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),pj(e,r,l)}};function LMe(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var gj={formatters:$Me};function kMe(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:gj.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const ol=Object.create(null),Y1=Object.create(null);function Nd(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;r<i;++r){const o=n[r];e=e[o]||(e[o]=Object.create(null))}return e}function O0(e,t,n){return typeof t=="string"?af(Nd(e,t),n):af(Nd(e,""),t)}class NMe{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>E0(i.backgroundColor),this.hoverBorderColor=(r,i)=>E0(i.borderColor),this.hoverColor=(r,i)=>E0(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return O0(this,t,n)}get(t){return Nd(this,t)}describe(t,n){return O0(Y1,t,n)}override(t,n){return O0(ol,t,n)}route(t,n,r,i){const o=Nd(this,t),a=Nd(this,r),s="_"+n;Object.defineProperties(o,{[s]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[s],u=a[i];return gt(l)?Object.assign({},u,l):ft(l,u)},set(l){this[s]=l}}})}apply(t){t.forEach(n=>n(this))}}var Sn=new NMe({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[AMe,DMe,kMe]);function FMe(e){return!e||Cn(e.size)||Cn(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function RA(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function ys(e,t,n){const r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function MA(e,t){t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function X1(e,t,n,r){mj(e,t,n,r,null)}function mj(e,t,n,r,i){let o,a,s,l,u,d,h,p;const g=t.pointStyle,m=t.rotation,y=t.radius;let b=(m||0)*DC;if(g&&typeof g=="object"&&(o=g.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(b),e.drawImage(g,-g.width/2,-g.height/2,g.width,g.height),e.restore();return}if(!(isNaN(y)||y<=0)){switch(e.beginPath(),g){default:i?e.ellipse(n,r,i/2,y,0,0,Ei):e.arc(n,r,y,0,Ei),e.closePath();break;case"triangle":d=i?i/2:y,e.moveTo(n+Math.sin(b)*d,r-Math.cos(b)*y),b+=pm,e.lineTo(n+Math.sin(b)*d,r-Math.cos(b)*y),b+=pm,e.lineTo(n+Math.sin(b)*d,r-Math.cos(b)*y),e.closePath();break;case"rectRounded":u=y*.516,l=y-u,a=Math.cos(b+wi)*l,h=Math.cos(b+wi)*(i?i/2-u:l),s=Math.sin(b+wi)*l,p=Math.sin(b+wi)*(i?i/2-u:l),e.arc(n-h,r-s,u,b-qt,b-Tr),e.arc(n+p,r-a,u,b-Tr,b),e.arc(n+h,r+s,u,b,b+Tr),e.arc(n-p,r+a,u,b+Tr,b+qt),e.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*y,d=i?i/2:l,e.rect(n-d,r-l,2*d,2*l);break}b+=wi;case"rectRot":h=Math.cos(b)*(i?i/2:y),a=Math.cos(b)*y,s=Math.sin(b)*y,p=Math.sin(b)*(i?i/2:y),e.moveTo(n-h,r-s),e.lineTo(n+p,r-a),e.lineTo(n+h,r+s),e.lineTo(n-p,r+a),e.closePath();break;case"crossRot":b+=wi;case"cross":h=Math.cos(b)*(i?i/2:y),a=Math.cos(b)*y,s=Math.sin(b)*y,p=Math.sin(b)*(i?i/2:y),e.moveTo(n-h,r-s),e.lineTo(n+h,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a);break;case"star":h=Math.cos(b)*(i?i/2:y),a=Math.cos(b)*y,s=Math.sin(b)*y,p=Math.sin(b)*(i?i/2:y),e.moveTo(n-h,r-s),e.lineTo(n+h,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a),b+=wi,h=Math.cos(b)*(i?i/2:y),a=Math.cos(b)*y,s=Math.sin(b)*y,p=Math.sin(b)*(i?i/2:y),e.moveTo(n-h,r-s),e.lineTo(n+h,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a);break;case"line":a=i?i/2:Math.cos(b)*y,s=Math.sin(b)*y,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(b)*(i?i/2:y),r+Math.sin(b)*y);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function sf(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function zf(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Vf(e){e.restore()}function jMe(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if(i==="middle"){const o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else i==="after"!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function BMe(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function UMe(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),Cn(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function WMe(e,t,n,r,i){if(i.strikethrough||i.underline){const o=e.measureText(r),a=t-o.actualBoundingBoxLeft,s=t+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,u=n+o.actualBoundingBoxDescent,d=i.strikethrough?(l+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(a,d),e.lineTo(s,d),e.stroke()}}function HMe(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function gm(e,t,n,r,i,o={}){const a=nn(t)?t:[t],s=o.strokeWidth>0&&o.strokeColor!=="";let l,u;for(e.save(),e.font=i.string,UMe(e,o),l=0;l<a.length;++l)u=a[l],o.backdrop&&HMe(e,o.backdrop),s&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),Cn(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(u,n,r,o.maxWidth)),e.fillText(u,n,r,o.maxWidth),WMe(e,n,r,u,o),r+=Number(i.lineHeight);e.restore()}function mm(e,t){const{x:n,y:r,w:i,h:o,radius:a}=t;e.arc(n+a.topLeft,r+a.topLeft,a.topLeft,1.5*qt,qt,!0),e.lineTo(n,r+o-a.bottomLeft),e.arc(n+a.bottomLeft,r+o-a.bottomLeft,a.bottomLeft,qt,Tr,!0),e.lineTo(n+i-a.bottomRight,r+o),e.arc(n+i-a.bottomRight,r+o-a.bottomRight,a.bottomRight,Tr,0,!0),e.lineTo(n+i,r+a.topRight),e.arc(n+i-a.topRight,r+a.topRight,a.topRight,0,-Tr,!0),e.lineTo(n+a.topLeft,r)}const zMe=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,VMe=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function GMe(e,t){const n=(""+e).match(zMe);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const qMe=e=>+e||0;function vj(e,t){const n={},r=gt(t),i=r?Object.keys(t):t,o=gt(e)?r?a=>ft(e[a],e[t[a]]):a=>e[a]:()=>e;for(const a of i)n[a]=qMe(o(a));return n}function KMe(e){return vj(e,{top:"y",right:"x",bottom:"y",left:"x"})}function pu(e){return vj(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Er(e){const t=KMe(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function tr(e,t){e=e||{},t=t||Sn.font;let n=ft(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=ft(e.style,t.style);r&&!(""+r).match(VMe)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:ft(e.family,t.family),lineHeight:GMe(ft(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:ft(e.weight,t.weight),string:""};return i.string=FMe(i),i}function bp(e,t,n,r){let i,o,a;for(i=0,o=e.length;i<o;++i)if(a=e[i],a!==void 0&&a!==void 0)return a}function YMe(e,t,n){const{min:r,max:i}=e,o=lMe(t,(i-r)/2),a=(s,l)=>n&&s===0?0:s+l;return{min:a(r,-Math.abs(o)),max:a(i,o)}}function ml(e,t){return Object.assign(Object.create(e),t)}function LC(e,t=[""],n,r,i=()=>e[0]){const o=n||e;typeof r>"u"&&(r=wj("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:r,_getTarget:i,override:s=>LC([s,...e],t,o,r)};return new Proxy(a,{deleteProperty(s,l){return delete s[l],delete s._keys,delete e[0][l],!0},get(s,l){return bj(s,l,()=>rAe(l,t,e,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,l){return DA(s).includes(l)},ownKeys(s){return DA(s)},set(s,l,u){const d=s._storage||(s._storage=i());return s[l]=d[l]=u,delete s._keys,!0}})}function Nu(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:yj(e,r),setContext:o=>Nu(e,o,n,r),override:o=>Nu(e.override(o),t,n,r)};return new Proxy(i,{deleteProperty(o,a){return delete o[a],delete e[a],!0},get(o,a,s){return bj(o,a,()=>ZMe(o,a,s))},getOwnPropertyDescriptor(o,a){return o._descriptors.allKeys?Reflect.has(e,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,a)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,a){return Reflect.has(e,a)},ownKeys(){return Reflect.ownKeys(e)},set(o,a,s){return e[a]=s,delete o[a],!0}})}function yj(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:Ur(n)?n:()=>n,isIndexable:Ur(r)?r:()=>r}}const XMe=(e,t)=>e?e+AC(t):t,kC=(e,t)=>gt(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function bj(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function ZMe(e,t,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:a}=e;let s=r[t];return Ur(s)&&a.isScriptable(t)&&(s=QMe(t,s,e,n)),nn(s)&&s.length&&(s=JMe(t,s,e,a.isIndexable)),kC(t,s)&&(s=Nu(s,i,o&&o[t],a)),s}function QMe(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(o,a||r);return s.delete(e),kC(e,l)&&(l=NC(i._scopes,i,e,l)),l}function JMe(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=n;if(typeof o.index<"u"&&r(e))return t[o.index%t.length];if(gt(t[0])){const l=t,u=i._scopes.filter(d=>d!==l);t=[];for(const d of l){const h=NC(u,i,e,d);t.push(Nu(h,o,a&&a[e],s))}}return t}function xj(e,t,n){return Ur(e)?e(t,n):e}const eAe=(e,t)=>e===!0?t:typeof e=="string"?fm(t,e):void 0;function tAe(e,t,n,r,i){for(const o of t){const a=eAe(n,o);if(a){e.add(a);const s=xj(a._fallback,n,i);if(typeof s<"u"&&s!==n&&s!==r)return s}else if(a===!1&&typeof r<"u"&&n!==r)return null}return!1}function NC(e,t,n,r){const i=t._rootScopes,o=xj(t._fallback,n,r),a=[...e,...i],s=new Set;s.add(r);let l=AA(s,a,n,o||n,r);return l===null||typeof o<"u"&&o!==n&&(l=AA(s,a,o,l,r),l===null)?!1:LC(Array.from(s),[""],i,o,()=>nAe(t,n,r))}function AA(e,t,n,r,i){for(;n;)n=tAe(e,t,n,r,i);return n}function nAe(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return nn(i)&>(n)?n:i||{}}function rAe(e,t,n,r){let i;for(const o of t)if(i=wj(XMe(o,e),n),typeof i<"u")return kC(e,i)?NC(n,r,e,i):i}function wj(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function DA(e){let t=e._keys;return t||(t=e._keys=iAe(e._scopes)),t}function iAe(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}const oAe=Number.EPSILON||1e-14,Fu=(e,t)=>t<e.length&&!e[t].skip&&e[t],_j=e=>e==="x"?"y":"x";function aAe(e,t,n,r){const i=e.skip?t:e,o=t,a=n.skip?t:n,s=ku(o,i),l=ku(a,o);let u=s/(s+l),d=l/(s+l);u=isNaN(u)?0:u,d=isNaN(d)?0:d;const h=r*u,p=r*d;return{previous:{x:o.x-h*(a.x-i.x),y:o.y-h*(a.y-i.y)},next:{x:o.x+p*(a.x-i.x),y:o.y+p*(a.y-i.y)}}}function sAe(e,t,n){const r=e.length;let i,o,a,s,l,u=Fu(e,0);for(let d=0;d<r-1;++d)if(l=u,u=Fu(e,d+1),!(!l||!u)){if(Ld(t[d],0,oAe)){n[d]=n[d+1]=0;continue}i=n[d]/t[d],o=n[d+1]/t[d],s=Math.pow(i,2)+Math.pow(o,2),!(s<=9)&&(a=3/Math.sqrt(s),n[d]=i*a*t[d],n[d+1]=o*a*t[d])}}function lAe(e,t,n="x"){const r=_j(n),i=e.length;let o,a,s,l=Fu(e,0);for(let u=0;u<i;++u){if(a=s,s=l,l=Fu(e,u+1),!s)continue;const d=s[n],h=s[r];a&&(o=(d-a[n])/3,s[`cp1${n}`]=d-o,s[`cp1${r}`]=h-o*t[u]),l&&(o=(l[n]-d)/3,s[`cp2${n}`]=d+o,s[`cp2${r}`]=h+o*t[u])}}function uAe(e,t="x"){const n=_j(t),r=e.length,i=Array(r).fill(0),o=Array(r);let a,s,l,u=Fu(e,0);for(a=0;a<r;++a)if(s=l,l=u,u=Fu(e,a+1),!!l){if(u){const d=u[t]-l[t];i[a]=d!==0?(u[n]-l[n])/d:0}o[a]=s?u?Lu(i[a-1])!==Lu(i[a])?0:(i[a-1]+i[a])/2:i[a-1]:i[a]}sAe(e,i,o),lAe(e,o,t)}function xp(e,t,n){return Math.max(Math.min(e,n),t)}function cAe(e,t){let n,r,i,o,a,s=sf(e[0],t);for(n=0,r=e.length;n<r;++n)a=o,o=s,s=n<r-1&&sf(e[n+1],t),o&&(i=e[n],a&&(i.cp1x=xp(i.cp1x,t.left,t.right),i.cp1y=xp(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=xp(i.cp2x,t.left,t.right),i.cp2y=xp(i.cp2y,t.top,t.bottom)))}function dAe(e,t,n,r,i){let o,a,s,l;if(t.spanGaps&&(e=e.filter(u=>!u.skip)),t.cubicInterpolationMode==="monotone")uAe(e,i);else{let u=r?e[e.length-1]:e[0];for(o=0,a=e.length;o<a;++o)s=e[o],l=aAe(u,s,e[Math.min(o+1,a-(r?0:1))%a],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,u=s}t.capBezierPoints&&cAe(e,n)}function Cj(){return typeof window<"u"&&typeof document<"u"}function FC(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function vm(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const Yv=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function fAe(e,t){return Yv(e).getPropertyValue(t)}const hAe=["top","right","bottom","left"];function Gs(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=hAe[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const pAe=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function gAe(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=r;let a=!1,s,l;if(pAe(i,o,e.target))s=i,l=o;else{const u=t.getBoundingClientRect();s=r.clientX-u.left,l=r.clientY-u.top,a=!0}return{x:s,y:l,box:a}}function Os(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=Yv(n),o=i.boxSizing==="border-box",a=Gs(i,"padding"),s=Gs(i,"border","width"),{x:l,y:u,box:d}=gAe(e,n),h=a.left+(d&&s.left),p=a.top+(d&&s.top);let{width:g,height:m}=t;return o&&(g-=a.width+s.width,m-=a.height+s.height),{x:Math.round((l-h)/g*n.width/r),y:Math.round((u-p)/m*n.height/r)}}function mAe(e,t,n){let r,i;if(t===void 0||n===void 0){const o=FC(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const a=o.getBoundingClientRect(),s=Yv(o),l=Gs(s,"border","width"),u=Gs(s,"padding");t=a.width-u.width-l.width,n=a.height-u.height-l.height,r=vm(s.maxWidth,o,"clientWidth"),i=vm(s.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:r||hm,maxHeight:i||hm}}const wp=e=>Math.round(e*10)/10;function vAe(e,t,n,r){const i=Yv(e),o=Gs(i,"margin"),a=vm(i.maxWidth,e,"clientWidth")||hm,s=vm(i.maxHeight,e,"clientHeight")||hm,l=mAe(e,t,n);let{width:u,height:d}=l;if(i.boxSizing==="content-box"){const p=Gs(i,"border","width"),g=Gs(i,"padding");u-=g.width+p.width,d-=g.height+p.height}return u=Math.max(0,u-o.width),d=Math.max(0,r?u/r:d-o.height),u=wp(Math.min(u,a,l.maxWidth)),d=wp(Math.min(d,s,l.maxHeight)),u&&!d&&(d=wp(u/2)),(t!==void 0||n!==void 0)&&r&&l.height&&d>l.height&&(d=l.height,u=wp(Math.floor(d*r))),{width:u,height:d}}function IA(e,t,n){const r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||a.height!==i||a.width!==o?(e.currentDevicePixelRatio=r,a.height=i,a.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const yAe=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e}();function $A(e,t){const n=fAe(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Ps(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function bAe(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function xAe(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=Ps(e,i,n),s=Ps(i,o,n),l=Ps(o,t,n),u=Ps(a,s,n),d=Ps(s,l,n);return Ps(u,d,n)}const wAe=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},_Ae=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function gu(e,t,n){return e?wAe(t,n):_Ae()}function Sj(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function Tj(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function Ej(e){return e==="angle"?{between:uj,compare:bMe,normalize:uo}:{between:su,compare:(t,n)=>t-n,normalize:t=>t}}function LA({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function CAe(e,t,n){const{property:r,start:i,end:o}=n,{between:a,normalize:s}=Ej(r),l=t.length;let{start:u,end:d,loop:h}=e,p,g;if(h){for(u+=l,d+=l,p=0,g=l;p<g&&a(s(t[u%l][r]),i,o);++p)u--,d--;u%=l,d%=l}return d<u&&(d+=l),{start:u,end:d,loop:h,style:e.style}}function Oj(e,t,n){if(!n)return[e];const{property:r,start:i,end:o}=n,a=t.length,{compare:s,between:l,normalize:u}=Ej(r),{start:d,end:h,loop:p,style:g}=CAe(e,t,n),m=[];let y=!1,b=null,x,S,w;const C=()=>l(i,w,x)&&s(i,w)!==0,R=()=>s(o,x)===0||l(o,w,x),O=()=>y||C(),T=()=>!y||R();for(let A=d,L=d;A<=h;++A)S=t[A%a],!S.skip&&(x=u(S[r]),x!==w&&(y=l(x,i,o),b===null&&O()&&(b=s(x,i)===0?A:L),b!==null&&T()&&(m.push(LA({start:b,end:A,loop:p,count:a,style:g})),b=null),L=A,w=x));return b!==null&&m.push(LA({start:b,end:h,loop:p,count:a,style:g})),m}function Pj(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const o=Oj(r[i],e.points,t);o.length&&n.push(...o)}return n}function SAe(e,t,n,r){let i=0,o=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(o+=i);o>i&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}function TAe(e,t,n,r){const i=e.length,o=[];let a=t,s=e[t],l;for(l=t+1;l<=n;++l){const u=e[l%i];u.skip||u.stop?s.skip||(r=!1,o.push({start:t%i,end:(l-1)%i,loop:r}),t=a=u.stop?l:null):(a=l,s.skip&&(t=l)),s=u}return a!==null&&o.push({start:t%i,end:a%i,loop:r}),o}function EAe(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:a,end:s}=SAe(n,i,o,r);if(r===!0)return kA(e,[{start:a,end:s,loop:o}],n,t);const l=s<a?s+i:s,u=!!e._fullLoop&&a===0&&s===i-1;return kA(e,TAe(n,a,l,u),n,t)}function kA(e,t,n,r){return!r||!r.setContext||!n?t:OAe(e,t,n,r)}function OAe(e,t,n,r){const i=e._chart.getContext(),o=NA(e.options),{_datasetIndex:a,options:{spanGaps:s}}=e,l=n.length,u=[];let d=o,h=t[0].start,p=h;function g(m,y,b,x){const S=s?-1:1;if(m!==y){for(m+=l;n[m%l].skip;)m-=S;for(;n[y%l].skip;)y+=S;m%l!==y%l&&(u.push({start:m%l,end:y%l,loop:b,style:x}),d=x,h=y%l)}}for(const m of t){h=s?h:m.start;let y=n[h%l],b;for(p=h+1;p<=m.end;p++){const x=n[p%l];b=NA(r.setContext(ml(i,{type:"segment",p0:y,p1:x,p0DataIndex:(p-1)%l,p1DataIndex:p%l,datasetIndex:a}))),PAe(b,d)&&g(h,p-1,m.loop,d),y=x,d=b}h<p-1&&g(h,p-1,m.loop,d)}return u}function NA(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function PAe(e,t){if(!t)return!1;const n=[],r=function(i,o){return $C(o)?(n.includes(o)||n.push(o),n.indexOf(o)):o};return JSON.stringify(e,r)!==JSON.stringify(t,r)}/*!
|
|
706
|
+
* Chart.js v4.4.0
|
|
707
|
+
* https://www.chartjs.org
|
|
708
|
+
* (c) 2023 Chart.js Contributors
|
|
709
|
+
* Released under the MIT License
|
|
710
|
+
*/class RAe{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,i){const o=n.listeners[i],a=n.duration;o.forEach(s=>s({chart:t,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=dj.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const o=r.items;let a=o.length-1,s=!1,l;for(;a>=0;--a)l=o[a],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),s=!0):(o[a]=o[o.length-1],o.pop());s&&(i.draw(),this._notify(i,r,t,"progress")),o.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Uo=new RAe;const FA="transparent",MAe={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=OA(e||FA),i=r.valid&&OA(t||FA);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class AAe{constructor(t,n,r,i){const o=n[r];i=bp([t.to,i,o,t.from]);const a=bp([t.from,o,i]);this._active=!0,this._fn=t.fn||MAe[t.type||typeof a],this._easing=kd[t.easing]||kd.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=a,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],o=r-this._start,a=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=bp([t.to,n,i,t.from]),this._from=bp([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,o=this._from,a=this._loop,s=this._to;let l;if(this._active=o!==s&&(a||n<r),!this._active){this._target[i]=s,this._notify(!0);return}if(n<0){this._target[i]=o;return}l=n/r%2,l=a&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,s,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}}class jC{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!gt(t))return;const n=Object.keys(Sn.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const o=t[i];if(!gt(o))return;const a={};for(const s of n)a[s]=o[s];(nn(o.properties)&&o.properties||[i]).forEach(s=>{(s===i||!r.has(s))&&r.set(s,a)})})}_animateOptions(t,n){const r=n.options,i=IAe(t,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&DAe(t.options.$animations,r).then(()=>{t.options=r},()=>{}),o}_createAnimations(t,n){const r=this._properties,i=[],o=t.$animations||(t.$animations={}),a=Object.keys(n),s=Date.now();let l;for(l=a.length-1;l>=0;--l){const u=a[l];if(u.charAt(0)==="$")continue;if(u==="options"){i.push(...this._animateOptions(t,n));continue}const d=n[u];let h=o[u];const p=r.get(u);if(h)if(p&&h.active()){h.update(p,d,s);continue}else h.cancel();if(!p||!p.duration){t[u]=d;continue}o[u]=h=new AAe(p,t,u,d),i.push(h)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return Uo.add(this._chart,r),!0}}function DAe(e,t){const n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const o=e[r[i]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}function IAe(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function jA(e,t){const n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,o=n.max===void 0?t:0;return{start:r?o:i,end:r?i:o}}function $Ae(e,t,n){if(n===!1)return!1;const r=jA(e,n),i=jA(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function LAe(e){let t,n,r,i;return gt(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:e===!1}}function Rj(e,t){const n=[],r=e._getSortedDatasetMetas(t);let i,o;for(i=0,o=r.length;i<o;++i)n.push(r[i].index);return n}function BA(e,t,n,r={}){const i=e.keys,o=r.mode==="single";let a,s,l,u;if(t!==null){for(a=0,s=i.length;a<s;++a){if(l=+i[a],l===n){if(r.all)continue;break}u=e.values[l],rr(u)&&(o||t===0||Lu(t)===Lu(u))&&(t+=u)}return t}}function kAe(e){const t=Object.keys(e),n=new Array(t.length);let r,i,o;for(r=0,i=t.length;r<i;++r)o=t[r],n[r]={x:o,y:e[o]};return n}function UA(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function NAe(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function FAe(e){const{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function jAe(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function WA(e,t,n,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const o=e[i.index];if(n&&o>0||!n&&o<0)return i.index}return null}function HA(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:a,index:s}=r,l=o.axis,u=a.axis,d=NAe(o,a,r),h=t.length;let p;for(let g=0;g<h;++g){const m=t[g],{[l]:y,[u]:b}=m,x=m._stacks||(m._stacks={});p=x[u]=jAe(i,d,y),p[s]=b,p._top=WA(p,a,!0,r.type),p._bottom=WA(p,a,!1,r.type);const S=p._visualValues||(p._visualValues={});S[s]=b}}function P0(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function BAe(e,t){return ml(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function UAe(e,t,n){return ml(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Jc(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const o=i._stacks;if(!o||o[r]===void 0||o[r][n]===void 0)return;delete o[r][n],o[r]._visualValues!==void 0&&o[r]._visualValues[n]!==void 0&&delete o[r]._visualValues[n]}}}const R0=e=>e==="reset"||e==="none",zA=(e,t)=>t?e:Object.assign({},e),WAe=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:Rj(n,!0),values:null};class Fd{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=UA(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Jc(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(h,p,g,m)=>h==="x"?p:h==="r"?m:g,o=n.xAxisID=ft(r.xAxisID,P0(t,"x")),a=n.yAxisID=ft(r.yAxisID,P0(t,"y")),s=n.rAxisID=ft(r.rAxisID,P0(t,"r")),l=n.indexAxis,u=n.iAxisID=i(l,o,a,s),d=n.vAxisID=i(l,a,o,s);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(s),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&SA(this._data,this),t._stacked&&Jc(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(gt(n))this._data=kAe(n);else if(r!==n){if(r){SA(r,this);const i=this._cachedMeta;Jc(i),i._parsed=[]}n&&Object.isExtensible(n)&&CMe(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=UA(n.vScale,n),n.stack!==r.stack&&(i=!0,Jc(n),n.stack=r.stack),this._resyncElements(t),(i||o!==n._stacked)&&HA(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:o,_stacked:a}=r,s=o.axis;let l=t===0&&n===i.length?!0:r._sorted,u=t>0&&r._parsed[t-1],d,h,p;if(this._parsing===!1)r._parsed=i,r._sorted=!0,p=i;else{nn(i[t])?p=this.parseArrayData(r,i,t,n):gt(i[t])?p=this.parseObjectData(r,i,t,n):p=this.parsePrimitiveData(r,i,t,n);const g=()=>h[s]===null||u&&h[s]<u[s];for(d=0;d<n;++d)r._parsed[d+t]=h=p[d],l&&(g()&&(l=!1),u=h);r._sorted=l}a&&HA(this,p)}parsePrimitiveData(t,n,r,i){const{iScale:o,vScale:a}=t,s=o.axis,l=a.axis,u=o.getLabels(),d=o===a,h=new Array(i);let p,g,m;for(p=0,g=i;p<g;++p)m=p+r,h[p]={[s]:d||o.parse(u[m],m),[l]:a.parse(n[m],m)};return h}parseArrayData(t,n,r,i){const{xScale:o,yScale:a}=t,s=new Array(i);let l,u,d,h;for(l=0,u=i;l<u;++l)d=l+r,h=n[d],s[l]={x:o.parse(h[0],d),y:a.parse(h[1],d)};return s}parseObjectData(t,n,r,i){const{xScale:o,yScale:a}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,u=new Array(i);let d,h,p,g;for(d=0,h=i;d<h;++d)p=d+r,g=n[p],u[d]={x:o.parse(fm(g,s),p),y:a.parse(fm(g,l),p)};return u}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const i=this.chart,o=this._cachedMeta,a=n[t.axis],s={keys:Rj(i,!0),values:n._stacks[t.axis]._visualValues};return BA(s,a,o.index,{mode:r})}updateRangeFromParsed(t,n,r,i){const o=r[n.axis];let a=o===null?NaN:o;const s=i&&r._stacks[n.axis];i&&s&&(i.values=s,a=BA(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}getMinMax(t,n){const r=this._cachedMeta,i=r._parsed,o=r._sorted&&t===r.iScale,a=i.length,s=this._getOtherScale(t),l=WAe(n,r,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:h}=FAe(s);let p,g;function m(){g=i[p];const y=g[s.axis];return!rr(g[t.axis])||d>y||h<y}for(p=0;p<a&&!(!m()&&(this.updateRangeFromParsed(u,t,g,l),o));++p);if(o){for(p=a-1;p>=0;--p)if(!m()){this.updateRangeFromParsed(u,t,g,l);break}}return u}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,o,a;for(i=0,o=n.length;i<o;++i)a=n[i][t.axis],rr(a)&&r.push(a);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,i=n.vScale,o=this.getParsed(t);return{label:r?""+r.getLabelForValue(o[r.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=LAe(ft(this.options.clip,$Ae(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],o=n.chartArea,a=[],s=this._drawStart||0,l=this._drawCount||i.length-s,u=this.options.drawActiveElementsOnTop;let d;for(r.dataset&&r.dataset.draw(t,o,s,l),d=s;d<s+l;++d){const h=i[d];h.hidden||(h.active&&u?a.push(h):h.draw(t,o))}for(d=0;d<a.length;++d)a[d].draw(t,o)}getStyle(t,n){const r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){const i=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const a=this._cachedMeta.data[t];o=a.$context||(a.$context=UAe(this.getContext(),t,a)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=BAe(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!n,o.mode=r,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){const i=n==="active",o=this._cachedDataOpts,a=t+"-"+n,s=o[a],l=this.enableOptionSharing&&oi(r);if(s)return zA(s,l);const u=this.chart.config,d=u.datasetElementScopeKeys(this._type,t),h=i?[`${t}Hover`,"hover",t,""]:[t,""],p=u.getOptionScopes(this.getDataset(),d),g=Object.keys(Sn.elements[t]),m=()=>this.getContext(r,i,n),y=u.resolveNamedOptions(p,g,m,h);return y.$shared&&(y.$shared=l,o[a]=Object.freeze(zA(y,l))),y}_resolveAnimations(t,n,r){const i=this.chart,o=this._cachedDataOpts,a=`animation-${n}`,s=o[a];if(s)return s;let l;if(i.options.animation!==!1){const d=this.chart.config,h=d.datasetAnimationScopeKeys(this._type,n),p=d.getOptionScopes(this.getDataset(),h);l=d.createResolver(p,this.getContext(t,r,n))}const u=new jC(i,l&&l.animations);return l&&l._cacheable&&(o[a]=Object.freeze(u)),u}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||R0(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(r),a=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:a}}updateElement(t,n,r,i){R0(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!R0(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[s,l,u]of this._syncList)this[s](l,u);this._syncList=[];const i=r.length,o=n.length,a=Math.min(o,i);a&&this.parse(0,a),o>i?this._insertElements(i,o-i,t):o<i&&this._removeElements(o,i-o)}_insertElements(t,n,r=!0){const i=this._cachedMeta,o=i.data,a=t+n;let s;const l=u=>{for(u.length+=n,s=u.length-1;s>=a;s--)u[s]=u[s-n]};for(l(o),s=t;s<a;++s)o[s]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,n),r&&this.updateElements(o,t,n,"reset")}updateElements(t,n,r,i){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(t,n);r._stacked&&Jc(r,i)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,i]=t;this[n](r,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}rt(Fd,"defaults",{}),rt(Fd,"datasetElementType",null),rt(Fd,"dataElementType",null);class mu extends Fd{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:o}=n,a=this.chart._animationsDisabled;let{start:s,count:l}=OMe(n,i,a);this._drawStart=s,this._drawCount=l,PMe(n)&&(s=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!o._decimated,r.points=i;const u=this.resolveDatasetElementOptions(t);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(r,void 0,{animated:!a,options:u},t),this.updateElements(i,s,l,t)}updateElements(t,n,r,i){const o=i==="reset",{iScale:a,vScale:s,_stacked:l,_dataset:u}=this._cachedMeta,{sharedOptions:d,includeOptions:h}=this._getSharedOptions(n,i),p=a.axis,g=s.axis,{spanGaps:m,segment:y}=this.options,b=il(m)?m:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||o||i==="none",S=n+r,w=t.length;let C=n>0&&this.getParsed(n-1);for(let R=0;R<w;++R){const O=t[R],T=x?O:{};if(R<n||R>=S){T.skip=!0;continue}const A=this.getParsed(R),L=Cn(A[g]),I=T[p]=a.getPixelForValue(A[p],R),N=T[g]=o||L?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,A,l):A[g],R);T.skip=isNaN(I)||isNaN(N)||L,T.stop=R>0&&Math.abs(A[p]-C[p])>b,y&&(T.parsed=A,T.raw=u.data[R]),h&&(T.options=d||this.resolveDataElementOptions(R,O.active?"active":i)),x||this.updateElement(O,R,T,i),C=A}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const o=i[0].size(this.resolveDataElementOptions(0)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,o,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}rt(mu,"id","line"),rt(mu,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),rt(mu,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function bs(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class BC{constructor(t){rt(this,"options");this.options=t||{}}static override(t){Object.assign(BC.prototype,t)}init(){}formats(){return bs()}parse(){return bs()}format(){return bs()}add(){return bs()}diff(){return bs()}startOf(){return bs()}endOf(){return bs()}}var Mj={_date:BC};function HAe(e,t,n,r){const{controller:i,data:o,_sorted:a}=e,s=i._cachedMeta.iScale;if(s&&t===s.axis&&t!=="r"&&a&&o.length){const l=s._reversePixels?wMe:Fs;if(r){if(i._sharedOptions){const u=o[0],d=typeof u.getRange=="function"&&u.getRange(t);if(d){const h=l(o,t,n-d),p=l(o,t,n+d);return{lo:h.lo,hi:p.hi}}}}else return l(o,t,n)}return{lo:0,hi:o.length-1}}function Xv(e,t,n,r,i){const o=e.getSortedVisibleDatasetMetas(),a=n[t];for(let s=0,l=o.length;s<l;++s){const{index:u,data:d}=o[s],{lo:h,hi:p}=HAe(o[s],t,a,i);for(let g=h;g<=p;++g){const m=d[g];m.skip||r(m,u,g)}}}function zAe(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,i){const o=t?Math.abs(r.x-i.x):0,a=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(a,2))}}function M0(e,t,n,r,i){const o=[];return!i&&!e.isPointInArea(t)||Xv(e,n,t,function(s,l,u){!i&&!sf(s,e.chartArea,0)||s.inRange(t.x,t.y,r)&&o.push({element:s,datasetIndex:l,index:u})},!0),o}function VAe(e,t,n,r){let i=[];function o(a,s,l){const{startAngle:u,endAngle:d}=a.getProps(["startAngle","endAngle"],r),{angle:h}=yMe(a,{x:t.x,y:t.y});uj(h,u,d)&&i.push({element:a,datasetIndex:s,index:l})}return Xv(e,n,t,o),i}function GAe(e,t,n,r,i,o){let a=[];const s=zAe(n);let l=Number.POSITIVE_INFINITY;function u(d,h,p){const g=d.inRange(t.x,t.y,i);if(r&&!g)return;const m=d.getCenterPoint(i);if(!(!!o||e.isPointInArea(m))&&!g)return;const b=s(t,m);b<l?(a=[{element:d,datasetIndex:h,index:p}],l=b):b===l&&a.push({element:d,datasetIndex:h,index:p})}return Xv(e,n,t,u),a}function A0(e,t,n,r,i,o){return!o&&!e.isPointInArea(t)?[]:n==="r"&&!r?VAe(e,t,n,i):GAe(e,t,n,r,i,o)}function VA(e,t,n,r,i){const o=[],a=n==="x"?"inXRange":"inYRange";let s=!1;return Xv(e,n,t,(l,u,d)=>{l[a](t[n],i)&&(o.push({element:l,datasetIndex:u,index:d}),s=s||l.inRange(t.x,t.y,i))}),r&&!s?[]:o}var qAe={modes:{index(e,t,n,r){const i=Os(t,e),o=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?M0(e,i,o,r,a):A0(e,i,o,!1,r,a),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(u=>{const d=s[0].index,h=u.data[d];h&&!h.skip&&l.push({element:h,datasetIndex:u.index,index:d})}),l):[]},dataset(e,t,n,r){const i=Os(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?M0(e,i,o,r,a):A0(e,i,o,!1,r,a);if(s.length>0){const l=s[0].datasetIndex,u=e.getDatasetMeta(l).data;s=[];for(let d=0;d<u.length;++d)s.push({element:u[d],datasetIndex:l,index:d})}return s},point(e,t,n,r){const i=Os(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;return M0(e,i,o,r,a)},nearest(e,t,n,r){const i=Os(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;return A0(e,i,o,n.intersect,r,a)},x(e,t,n,r){const i=Os(t,e);return VA(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=Os(t,e);return VA(e,i,"y",n.intersect,r)}}};const Aj=["left","top","right","bottom"];function ed(e,t){return e.filter(n=>n.pos===t)}function GA(e,t){return e.filter(n=>Aj.indexOf(n.pos)===-1&&n.box.axis===t)}function td(e,t){return e.sort((n,r)=>{const i=t?r:n,o=t?n:r;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function KAe(e){const t=[];let n,r,i,o,a,s;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:o,options:{stack:a,stackWeight:s=1}}=i,t.push({index:n,box:i,pos:o,horizontal:i.isHorizontal(),weight:i.weight,stack:a&&o+a,stackWeight:s});return t}function YAe(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:o}=n;if(!r||!Aj.includes(i))continue;const a=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=o}return t}function XAe(e,t){const n=YAe(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let o,a,s;for(o=0,a=e.length;o<a;++o){s=e[o];const{fullSize:l}=s.box,u=n[s.stack],d=u&&s.stackWeight/u.weight;s.horizontal?(s.width=d?d*r:l&&t.availableWidth,s.height=i):(s.width=r,s.height=d?d*i:l&&t.availableHeight)}return n}function ZAe(e){const t=KAe(e),n=td(t.filter(u=>u.box.fullSize),!0),r=td(ed(t,"left"),!0),i=td(ed(t,"right")),o=td(ed(t,"top"),!0),a=td(ed(t,"bottom")),s=GA(t,"x"),l=GA(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(a).concat(s),chartArea:ed(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(a).concat(s)}}function qA(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function Dj(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function QAe(e,t,n,r){const{pos:i,box:o}=n,a=e.maxPadding;if(!gt(i)){n.size&&(e[i]-=n.size);const h=r[n.stack]||{size:0,count:1};h.size=Math.max(h.size,n.horizontal?o.height:o.width),n.size=h.size/h.count,e[i]+=n.size}o.getPadding&&Dj(a,o.getPadding());const s=Math.max(0,t.outerWidth-qA(a,e,"left","right")),l=Math.max(0,t.outerHeight-qA(a,e,"top","bottom")),u=s!==e.w,d=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:u,other:d}:{same:d,other:u}}function JAe(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function eDe(e,t){const n=t.maxPadding;function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(a=>{o[a]=Math.max(t[a],n[a])}),o}return r(e?["left","right"]:["top","bottom"])}function hd(e,t,n,r){const i=[];let o,a,s,l,u,d;for(o=0,a=e.length,u=0;o<a;++o){s=e[o],l=s.box,l.update(s.width||t.w,s.height||t.h,eDe(s.horizontal,t));const{same:h,other:p}=QAe(t,n,s,r);u|=h&&i.length,d=d||p,l.fullSize||i.push(s)}return u&&hd(i,t,n,r)||d}function _p(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function KA(e,t,n,r){const i=n.padding;let{x:o,y:a}=t;for(const s of e){const l=s.box,u=r[s.stack]||{placed:0,weight:1},d=s.stackWeight/u.weight||1;if(s.horizontal){const h=t.w*d,p=u.size||l.height;oi(u.start)&&(a=u.start),l.fullSize?_p(l,i.left,a,n.outerWidth-i.right-i.left,p):_p(l,t.left+u.placed,a,h,p),u.start=a,u.placed+=h,a=l.bottom}else{const h=t.h*d,p=u.size||l.width;oi(u.start)&&(o=u.start),l.fullSize?_p(l,o,i.top,p,n.outerHeight-i.bottom-i.top):_p(l,o,t.top+u.placed,p,h),u.start=o,u.placed+=h,o=l.right}}t.x=o,t.y=a}var ja={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const i=Er(e.options.layout.padding),o=Math.max(t-i.width,0),a=Math.max(n-i.height,0),s=ZAe(e.boxes),l=s.vertical,u=s.horizontal;Wt(e.boxes,y=>{typeof y.beforeLayout=="function"&&y.beforeLayout()});const d=l.reduce((y,b)=>b.box.options&&b.box.options.display===!1?y:y+1,0)||1,h=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/d,hBoxMaxHeight:a/2}),p=Object.assign({},i);Dj(p,Er(r));const g=Object.assign({maxPadding:p,w:o,h:a,x:i.left,y:i.top},i),m=XAe(l.concat(u),h);hd(s.fullSize,g,h,m),hd(l,g,h,m),hd(u,g,h,m)&&hd(l,g,h,m),JAe(g),KA(s.leftAndTop,g,h,m),g.x+=g.w,g.y+=g.h,KA(s.rightAndBottom,g,h,m),e.chartArea={left:g.left,top:g.top,right:g.left+g.w,bottom:g.top+g.h,height:g.h,width:g.w},Wt(s.chartArea,y=>{const b=y.box;Object.assign(b,e.chartArea),b.update(g.w,g.h,{left:0,top:0,right:0,bottom:0})})}};class Ij{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class tDe extends Ij{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const tg="$chartjs",nDe={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},YA=e=>e===null||e==="";function rDe(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[tg]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",YA(i)){const o=$A(e,"width");o!==void 0&&(e.width=o)}if(YA(r))if(e.style.height==="")e.height=e.width/(t||2);else{const o=$A(e,"height");o!==void 0&&(e.height=o)}return e}const $j=yAe?{passive:!0}:!1;function iDe(e,t,n){e.addEventListener(t,n,$j)}function oDe(e,t,n){e.canvas.removeEventListener(t,n,$j)}function aDe(e,t){const n=nDe[e.type]||e.type,{x:r,y:i}=Os(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function ym(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function sDe(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||ym(s.addedNodes,r),a=a&&!ym(s.removedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function lDe(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||ym(s.removedNodes,r),a=a&&!ym(s.addedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const lf=new Map;let XA=0;function Lj(){const e=window.devicePixelRatio;e!==XA&&(XA=e,lf.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function uDe(e,t){lf.size||window.addEventListener("resize",Lj),lf.set(e,t)}function cDe(e){lf.delete(e),lf.size||window.removeEventListener("resize",Lj)}function dDe(e,t,n){const r=e.canvas,i=r&&FC(r);if(!i)return;const o=fj((s,l)=>{const u=i.clientWidth;n(s,l),u<i.clientWidth&&n()},window),a=new ResizeObserver(s=>{const l=s[0],u=l.contentRect.width,d=l.contentRect.height;u===0&&d===0||o(u,d)});return a.observe(i),uDe(e,o),a}function D0(e,t,n){n&&n.disconnect(),t==="resize"&&cDe(e)}function fDe(e,t,n){const r=e.canvas,i=fj(o=>{e.ctx!==null&&n(aDe(o,e))},e);return iDe(r,t,i),i}class hDe extends Ij{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(rDe(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[tg])return!1;const r=n[tg].initial;["height","width"].forEach(o=>{const a=r[o];Cn(a)?n.removeAttribute(o):n.setAttribute(o,a)});const i=r.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[tg],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),a={attach:sDe,detach:lDe,resize:dDe}[n]||fDe;i[n]=a(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:D0,detach:D0,resize:D0}[n]||oDe)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return vAe(t,n,r,i)}isAttached(t){const n=FC(t);return!!(n&&n.isConnected)}}function pDe(e){return!Cj()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?tDe:hDe}var Mp;let ki=(Mp=class{constructor(){rt(this,"x");rt(this,"y");rt(this,"active",!1);rt(this,"options");rt(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return il(this.x)&&il(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(o=>{i[o]=r[o]&&r[o].active()?r[o]._to:this[o]}),i}},rt(Mp,"defaults",{}),rt(Mp,"defaultRoutes"),Mp);function gDe(e,t){const n=e.options.ticks,r=mDe(e),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?yDe(t):[],a=o.length,s=o[0],l=o[a-1],u=[];if(a>i)return bDe(t,u,o,a/i),u;const d=vDe(o,t,i);if(a>0){let h,p;const g=a>1?Math.round((l-s)/(a-1)):null;for(Cp(t,u,d,Cn(g)?0:s-g,s),h=0,p=a-1;h<p;h++)Cp(t,u,d,o[h],o[h+1]);return Cp(t,u,d,l,Cn(g)?t.length:l+g),u}return Cp(t,u,d),u}function mDe(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}function vDe(e,t,n){const r=xDe(e),i=t.length/n;if(!r)return Math.max(i,1);const o=gMe(r);for(let a=0,s=o.length-1;a<s;a++){const l=o[a];if(l>i)return l}return Math.max(i,1)}function yDe(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function bDe(e,t,n,r){let i=0,o=n[0],a;for(r=Math.ceil(r),a=0;a<e.length;a++)a===o&&(t.push(e[a]),i++,o=n[i*r])}function Cp(e,t,n,r,i){const o=ft(r,0),a=Math.min(ft(i,e.length),e.length);let s=0,l,u,d;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),d=o;d<0;)s++,d=Math.round(o+s*n);for(u=Math.max(o,0);u<a;u++)u===d&&(t.push(e[u]),s++,d=Math.round(o+s*n))}function xDe(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}const wDe=e=>e==="left"?"right":e==="right"?"left":e,ZA=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,QA=(e,t)=>Math.min(t||e,e);function JA(e,t){const n=[],r=e.length/t,i=e.length;let o=0;for(;o<i;o+=r)n.push(e[Math.floor(o)]);return n}function _De(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),o=e._startPixel,a=e._endPixel,s=1e-6;let l=e.getPixelForTick(i),u;if(!(n&&(r===1?u=Math.max(l-o,a-l):t===0?u=(e.getPixelForTick(1)-l)/2:u=(l-e.getPixelForTick(i-1))/2,l+=i<t?u:-u,l<o-s||l>a+s)))return l}function CDe(e,t){Wt(e,n=>{const r=n.gc,i=r.length/2;let o;if(i>t){for(o=0;o<i;++o)delete n.data[r[o]];r.splice(0,i)}})}function nd(e){return e.drawTicks?e.tickLength:0}function eD(e,t){if(!e.display)return 0;const n=tr(e.font,t),r=Er(e.padding);return(nn(e.text)?e.text.length:1)*n.lineHeight+r.height}function SDe(e,t){return ml(e,{scale:t,type:"scale"})}function TDe(e,t,n){return ml(e,{tick:n,index:t,type:"tick"})}function EDe(e,t,n){let r=hj(e);return(n&&t!=="right"||!n&&t==="right")&&(r=wDe(r)),r}function ODe(e,t,n,r){const{top:i,left:o,bottom:a,right:s,chart:l}=e,{chartArea:u,scales:d}=l;let h=0,p,g,m;const y=a-i,b=s-o;if(e.isHorizontal()){if(g=ei(r,o,s),gt(n)){const x=Object.keys(n)[0],S=n[x];m=d[x].getPixelForValue(S)+y-t}else n==="center"?m=(u.bottom+u.top)/2+y-t:m=ZA(e,n,t);p=s-o}else{if(gt(n)){const x=Object.keys(n)[0],S=n[x];g=d[x].getPixelForValue(S)-b+t}else n==="center"?g=(u.left+u.right)/2-b+t:g=ZA(e,n,t);m=ei(r,a,i),h=n==="left"?-Tr:Tr}return{titleX:g,titleY:m,maxWidth:p,rotation:h}}class lc extends ki{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return t=io(t,Number.POSITIVE_INFINITY),n=io(n,Number.NEGATIVE_INFINITY),r=io(r,Number.POSITIVE_INFINITY),i=io(i,Number.NEGATIVE_INFINITY),{min:io(t,r),max:io(n,i),minDefined:rr(t),maxDefined:rr(n)}}getMinMax(t){let{min:n,max:r,minDefined:i,maxDefined:o}=this.getUserBounds(),a;if(i&&o)return{min:n,max:r};const s=this.getMatchingVisibleMetas();for(let l=0,u=s.length;l<u;++l)a=s[l].controller.getMinMax(this,t),i||(n=Math.min(n,a.min)),o||(r=Math.max(r,a.max));return n=o&&n>r?r:n,r=i&&n>r?n:r,{min:io(n,io(r,n)),max:io(r,io(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Vt(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:o,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=YMe(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s<this.ticks.length;this._convertTicksToLabels(l?JA(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||a.source==="auto")&&(this.ticks=gDe(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Vt(this.options.afterUpdate,[this])}beforeSetDimensions(){Vt(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Vt(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Vt(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Vt(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,i,o;for(r=0,i=t.length;r<i;r++)o=t[r],o.label=Vt(n.callback,[o.value,r,t],this)}afterTickToLabelConversion(){Vt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Vt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=QA(this.ticks.length,t.ticks.maxTicksLimit),i=n.minRotation||0,o=n.maxRotation;let a=i,s,l,u;if(!this._isVisible()||!n.display||i>=o||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const d=this._getLabelSizes(),h=d.widest.width,p=d.highest.height,g=Ci(this.chart.width-h,0,this.maxWidth);s=t.offset?this.maxWidth/r:g/(r-1),h+6>s&&(s=g/(r-(t.offset?.5:1)),l=this.maxHeight-nd(t.grid)-n.padding-eD(t.title,this.chart.options.font),u=Math.sqrt(h*h+p*p),a=lj(Math.min(Math.asin(Ci((d.highest.height+6)/s,-1,1)),Math.asin(Ci(l/u,-1,1))-Math.asin(Ci(p/u,-1,1)))),a=Math.max(i,Math.min(o,a))),this.labelRotation=a}afterCalculateLabelRotation(){Vt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Vt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){const l=eD(i,n.options.font);if(s?(t.width=this.maxWidth,t.height=nd(o)+l):(t.height=this.maxHeight,t.width=nd(o)+l),r.display&&this.ticks.length){const{first:u,last:d,widest:h,highest:p}=this._getLabelSizes(),g=r.padding*2,m=mr(this.labelRotation),y=Math.cos(m),b=Math.sin(m);if(s){const x=r.mirror?0:b*h.width+y*p.height;t.height=Math.min(this.maxHeight,t.height+x+g)}else{const x=r.mirror?0:y*h.width+b*p.height;t.width=Math.min(this.maxWidth,t.width+x+g)}this._calculatePadding(u,d,b,y)}}this._handleMargins(),s?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:o,padding:a},position:s}=this.options,l=this.labelRotation!==0,u=s!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1);let p=0,g=0;l?u?(p=i*t.width,g=r*n.height):(p=r*t.height,g=i*n.width):o==="start"?g=n.width:o==="end"?p=t.width:o!=="inner"&&(p=t.width/2,g=n.width/2),this.paddingLeft=Math.max((p-d+a)*this.width/(this.width-d),0),this.paddingRight=Math.max((g-h+a)*this.width/(this.width-h),0)}else{let d=n.height/2,h=t.height/2;o==="start"?(d=0,h=t.height):o==="end"&&(d=n.height,h=0),this.paddingTop=d+a,this.paddingBottom=h+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Vt(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)Cn(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=JA(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,r){const{ctx:i,_longestTextCache:o}=this,a=[],s=[],l=Math.floor(n/QA(n,r));let u=0,d=0,h,p,g,m,y,b,x,S,w,C,R;for(h=0;h<n;h+=l){if(m=t[h].label,y=this._resolveTickFontOptions(h),i.font=b=y.string,x=o[b]=o[b]||{data:{},gc:[]},S=y.lineHeight,w=C=0,!Cn(m)&&!nn(m))w=RA(i,x.data,x.gc,w,m),C=S;else if(nn(m))for(p=0,g=m.length;p<g;++p)R=m[p],!Cn(R)&&!nn(R)&&(w=RA(i,x.data,x.gc,w,R),C+=S);a.push(w),s.push(C),u=Math.max(w,u),d=Math.max(C,d)}CDe(o,n);const O=a.indexOf(u),T=s.indexOf(d),A=L=>({width:a[L]||0,height:s[L]||0});return{first:A(0),last:A(n-1),widest:A(O),highest:A(T),widths:a,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return xMe(this._alignToPixels?ys(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const r=n[t];return r.$context||(r.$context=TDe(this.getContext(),t,r))}return this.$context||(this.$context=SDe(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=mr(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),o=this._getLabelSizes(),a=t.autoSkipPadding||0,s=o?o.widest.width+a:0,l=o?o.highest.height+a:0;return this.isHorizontal()?l*r>s*i?s/r:l/i:l*i<s*r?l/r:s/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:o,position:a,border:s}=i,l=o.offset,u=this.isHorizontal(),h=this.ticks.length+(l?1:0),p=nd(o),g=[],m=s.setContext(this.getContext()),y=m.display?m.width:0,b=y/2,x=function(j){return ys(r,j,y)};let S,w,C,R,O,T,A,L,I,N,B,U;if(a==="top")S=x(this.bottom),T=this.bottom-p,L=S-b,N=x(t.top)+b,U=t.bottom;else if(a==="bottom")S=x(this.top),N=t.top,U=x(t.bottom)-b,T=S+b,L=this.top+p;else if(a==="left")S=x(this.right),O=this.right-p,A=S-b,I=x(t.left)+b,B=t.right;else if(a==="right")S=x(this.left),I=t.left,B=x(t.right)-b,O=S+b,A=this.left+p;else if(n==="x"){if(a==="center")S=x((t.top+t.bottom)/2+.5);else if(gt(a)){const j=Object.keys(a)[0],K=a[j];S=x(this.chart.scales[j].getPixelForValue(K))}N=t.top,U=t.bottom,T=S+b,L=T+p}else if(n==="y"){if(a==="center")S=x((t.left+t.right)/2);else if(gt(a)){const j=Object.keys(a)[0],K=a[j];S=x(this.chart.scales[j].getPixelForValue(K))}O=S-b,A=O-p,I=t.left,B=t.right}const z=ft(i.ticks.maxTicksLimit,h),F=Math.max(1,Math.ceil(h/z));for(w=0;w<h;w+=F){const j=this.getContext(w),K=o.setContext(j),V=s.setContext(j),J=K.lineWidth,oe=K.color,ce=V.dash||[],le=V.dashOffset,Me=K.tickWidth,ve=K.tickColor,ye=K.tickBorderDash||[],Ce=K.tickBorderDashOffset;C=_De(this,w,l),C!==void 0&&(R=ys(r,C,J),u?O=A=I=B=R:T=L=N=U=R,g.push({tx1:O,ty1:T,tx2:A,ty2:L,x1:I,y1:N,x2:B,y2:U,width:J,color:oe,borderDash:ce,borderDashOffset:le,tickWidth:Me,tickColor:ve,tickBorderDash:ye,tickBorderDashOffset:Ce}))}return this._ticksLength=h,this._borderValue=S,g}_computeLabelItems(t){const n=this.axis,r=this.options,{position:i,ticks:o}=r,a=this.isHorizontal(),s=this.ticks,{align:l,crossAlign:u,padding:d,mirror:h}=o,p=nd(r.grid),g=p+d,m=h?-d:g,y=-mr(this.labelRotation),b=[];let x,S,w,C,R,O,T,A,L,I,N,B,U="middle";if(i==="top")O=this.bottom-m,T=this._getXAxisLabelAlignment();else if(i==="bottom")O=this.top+m,T=this._getXAxisLabelAlignment();else if(i==="left"){const F=this._getYAxisLabelAlignment(p);T=F.textAlign,R=F.x}else if(i==="right"){const F=this._getYAxisLabelAlignment(p);T=F.textAlign,R=F.x}else if(n==="x"){if(i==="center")O=(t.top+t.bottom)/2+g;else if(gt(i)){const F=Object.keys(i)[0],j=i[F];O=this.chart.scales[F].getPixelForValue(j)+g}T=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")R=(t.left+t.right)/2-g;else if(gt(i)){const F=Object.keys(i)[0],j=i[F];R=this.chart.scales[F].getPixelForValue(j)}T=this._getYAxisLabelAlignment(p).textAlign}n==="y"&&(l==="start"?U="top":l==="end"&&(U="bottom"));const z=this._getLabelSizes();for(x=0,S=s.length;x<S;++x){w=s[x],C=w.label;const F=o.setContext(this.getContext(x));A=this.getPixelForTick(x)+o.labelOffset,L=this._resolveTickFontOptions(x),I=L.lineHeight,N=nn(C)?C.length:1;const j=N/2,K=F.color,V=F.textStrokeColor,J=F.textStrokeWidth;let oe=T;a?(R=A,T==="inner"&&(x===S-1?oe=this.options.reverse?"left":"right":x===0?oe=this.options.reverse?"right":"left":oe="center"),i==="top"?u==="near"||y!==0?B=-N*I+I/2:u==="center"?B=-z.highest.height/2-j*I+I:B=-z.highest.height+I/2:u==="near"||y!==0?B=I/2:u==="center"?B=z.highest.height/2-j*I:B=z.highest.height-N*I,h&&(B*=-1),y!==0&&!F.showLabelBackdrop&&(R+=I/2*Math.sin(y))):(O=A,B=(1-N)*I/2);let ce;if(F.showLabelBackdrop){const le=Er(F.backdropPadding),Me=z.heights[x],ve=z.widths[x];let ye=B-le.top,Ce=0-le.left;switch(U){case"middle":ye-=Me/2;break;case"bottom":ye-=Me;break}switch(T){case"center":Ce-=ve/2;break;case"right":Ce-=ve;break}ce={left:Ce,top:ye,width:ve+le.width,height:Me+le.height,color:F.backdropColor}}b.push({label:C,font:L,textOffset:B,options:{rotation:y,color:K,strokeColor:V,strokeWidth:J,textAlign:oe,textBaseline:U,translation:[R,O],backdrop:ce}})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-mr(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:o}}=this.options,a=this._getLabelSizes(),s=t+o,l=a.widest.width;let u,d;return n==="left"?i?(d=this.right+o,r==="near"?u="left":r==="center"?(u="center",d+=l/2):(u="right",d+=l)):(d=this.right-s,r==="near"?u="right":r==="center"?(u="center",d-=l/2):(u="left",d=this.left)):n==="right"?i?(d=this.left+o,r==="near"?u="right":r==="center"?(u="center",d-=l/2):(u="left",d-=l)):(d=this.left+s,r==="near"?u="left":r==="center"?(u="center",d+=l/2):(u="right",d=this.right)):u="right",{textAlign:u,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:o,height:a}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,o,a),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(o=>o.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,a;const s=(l,u,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(u.x,u.y),r.stroke(),r.restore())};if(n.display)for(o=0,a=i.length;o<a;++o){const l=i[o];n.drawOnChartArea&&s({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&s({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:r,grid:i}}=this,o=r.setContext(this.getContext()),a=r.display?o.width:0;if(!a)return;const s=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let u,d,h,p;this.isHorizontal()?(u=ys(t,this.left,a)-a/2,d=ys(t,this.right,s)+s/2,h=p=l):(h=ys(t,this.top,a)-a/2,p=ys(t,this.bottom,s)+s/2,u=d=l),n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.beginPath(),n.moveTo(u,h),n.lineTo(d,p),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&zf(r,i);const o=this.getLabelItems(t);for(const a of o){const s=a.options,l=a.font,u=a.label,d=a.textOffset;gm(r,u,0,d,l,s)}i&&Vf(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const o=tr(r.font),a=Er(r.padding),s=r.align;let l=o.lineHeight/2;n==="bottom"||n==="center"||gt(n)?(l+=a.bottom,nn(r.text)&&(l+=o.lineHeight*(r.text.length-1))):l+=a.top;const{titleX:u,titleY:d,maxWidth:h,rotation:p}=ODe(this,l,n,s);gm(t,r.text,0,0,o,{color:r.color,maxWidth:h,rotation:p,textAlign:EDe(s,n,i),textBaseline:"middle",translation:[u,d]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,r=ft(t.grid&&t.grid.z,-1),i=ft(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==lc.prototype.draw?[{z:n,draw:o=>{this.draw(o)}}]:[{z:r,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let o,a;for(o=0,a=n.length;o<a;++o){const s=n[o];s[r]===this.id&&(!t||s.type===t)&&i.push(s)}return i}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return tr(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Sp{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let r;MDe(n)&&(r=this.register(n));const i=this.items,o=t.id,a=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,PDe(t,a,r),this.override&&Sn.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,i=this.scope;r in n&&delete n[r],i&&r in Sn[i]&&(delete Sn[i][r],this.override&&delete ol[r])}}function PDe(e,t,n){const r=af(Object.create(null),[n?Sn.get(n):{},Sn.get(t),e.defaults]);Sn.set(t,r),e.defaultRoutes&&RDe(t,e.defaultRoutes),e.descriptors&&Sn.describe(t,e.descriptors)}function RDe(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),i=r.pop(),o=[e].concat(r).join("."),a=t[n].split("."),s=a.pop(),l=a.join(".");Sn.route(o,i,l,s)})}function MDe(e){return"id"in e&&"defaults"in e}class ADe{constructor(){this.controllers=new Sp(Fd,"datasets",!0),this.elements=new Sp(ki,"elements"),this.plugins=new Sp(Object,"plugins"),this.scales=new Sp(lc,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const o=r||this._getRegistryForType(i);r||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):Wt(i,a=>{const s=r||this._getRegistryForType(a);this._exec(t,s,a)})})}_exec(t,n,r){const i=AC(t);Vt(r["before"+i],[],r),n[t](r),Vt(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){const i=n.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return i}}var so=new ADe;class DDe{constructor(){this._init=[]}notify(t,n,r,i){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=i?this._descriptors(t).filter(i):this._descriptors(t),a=this._notify(o,t,n,r);return n==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),a}_notify(t,n,r,i){i=i||{};for(const o of t){const a=o.plugin,s=a[r],l=[n,i,o.options];if(Vt(s,l,a)===!1&&i.cancelable)return!1}return!0}invalidate(){Cn(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,i=ft(r.options&&r.options.plugins,{}),o=IDe(r);return i===!1&&!n?[]:LDe(t,o,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,i=(o,a)=>o.filter(s=>!a.some(l=>s.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function IDe(e){const t={},n=[],r=Object.keys(so.plugins.items);for(let o=0;o<r.length;o++)n.push(so.getPlugin(r[o]));const i=e.plugins||[];for(let o=0;o<i.length;o++){const a=i[o];n.indexOf(a)===-1&&(n.push(a),t[a.id]=!0)}return{plugins:n,localIds:t}}function $De(e,t){return!t&&e===!1?null:e===!0?{}:e}function LDe(e,{plugins:t,localIds:n},r,i){const o=[],a=e.getContext();for(const s of t){const l=s.id,u=$De(r[l],i);u!==null&&o.push({plugin:s,options:kDe(e.config,{plugin:s,local:n[l]},u,a)})}return o}function kDe(e,{plugin:t,local:n},r,i){const o=e.pluginScopeKeys(t),a=e.getOptionScopes(r,o);return n&&t.defaults&&a.push(t.defaults),e.createResolver(a,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Z1(e,t){const n=Sn.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function NDe(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function FDe(e,t){return e===t?"_index_":"_value_"}function tD(e){if(e==="x"||e==="y"||e==="r")return e}function jDe(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Q1(e,...t){if(tD(e))return e;for(const n of t){const r=n.axis||jDe(n.position)||e.length>1&&tD(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function nD(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function BDe(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return nD(e,"x",n[0])||nD(e,"y",n[0])}return{}}function UDe(e,t){const n=ol[e.type]||{scales:{}},r=t.scales||{},i=Z1(e.type,t),o=Object.create(null);return Object.keys(r).forEach(a=>{const s=r[a];if(!gt(s))return console.error(`Invalid scale configuration for scale: ${a}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const l=Q1(a,s,BDe(a,e),Sn.scales[s.type]),u=FDe(l,i),d=n.scales||{};o[a]=$d(Object.create(null),[{axis:l},s,d[l],d[u]])}),e.data.datasets.forEach(a=>{const s=a.type||e.type,l=a.indexAxis||Z1(s,t),d=(ol[s]||{}).scales||{};Object.keys(d).forEach(h=>{const p=NDe(h,l),g=a[p+"AxisID"]||p;o[g]=o[g]||Object.create(null),$d(o[g],[{axis:p},r[g],d[h]])})}),Object.keys(o).forEach(a=>{const s=o[a];$d(s,[Sn.scales[s.type],Sn.scale])}),o}function kj(e){const t=e.options||(e.options={});t.plugins=ft(t.plugins,{}),t.scales=UDe(e,t)}function Nj(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function WDe(e){return e=e||{},e.data=Nj(e.data),kj(e),e}const rD=new Map,Fj=new Set;function Tp(e,t){let n=rD.get(e);return n||(n=t(),rD.set(e,n),Fj.add(n)),n}const rd=(e,t,n)=>{const r=fm(t,n);r!==void 0&&e.add(r)};class HDe{constructor(t){this._config=WDe(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Nj(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),kj(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Tp(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Tp(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Tp(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Tp(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:o}=this,a=this._cachedScopes(t,r),s=a.get(n);if(s)return s;const l=new Set;n.forEach(d=>{t&&(l.add(t),d.forEach(h=>rd(l,t,h))),d.forEach(h=>rd(l,i,h)),d.forEach(h=>rd(l,ol[o]||{},h)),d.forEach(h=>rd(l,Sn,h)),d.forEach(h=>rd(l,Y1,h))});const u=Array.from(l);return u.length===0&&u.push(Object.create(null)),Fj.has(n)&&a.set(n,u),u}chartOptionScopes(){const{options:t,type:n}=this;return[t,ol[n]||{},Sn.datasets[n]||{},{type:n},Sn,Y1]}resolveNamedOptions(t,n,r,i=[""]){const o={$shared:!0},{resolver:a,subPrefixes:s}=iD(this._resolverCache,t,i);let l=a;if(VDe(a,n)){o.$shared=!1,r=Ur(r)?r():r;const u=this.createResolver(t,r,s);l=Nu(a,r,u)}for(const u of n)o[u]=l[u];return o}createResolver(t,n,r=[""],i){const{resolver:o}=iD(this._resolverCache,t,r);return gt(n)?Nu(o,n,void 0,i):o}}function iD(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let o=r.get(i);return o||(o={resolver:LC(t,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(i,o)),o}const zDe=e=>gt(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||Ur(e[n]),!1);function VDe(e,t){const{isScriptable:n,isIndexable:r}=yj(e);for(const i of t){const o=n(i),a=r(i),s=(a||o)&&e[i];if(o&&(Ur(s)||zDe(s))||a&&nn(s))return!0}return!1}var GDe="4.4.0";const qDe=["top","bottom","left","right","chartArea"];function oD(e,t){return e==="top"||e==="bottom"||qDe.indexOf(e)===-1&&t==="x"}function aD(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function sD(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Vt(n&&n.onComplete,[e],t)}function KDe(e){const t=e.chart,n=t.options.animation;Vt(n&&n.onProgress,[e],t)}function jj(e){return Cj()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const ng={},lD=e=>{const t=jj(e);return Object.values(ng).filter(n=>n.canvas===t).pop()};function YDe(e,t,n){const r=Object.keys(e);for(const i of r){const o=+i;if(o>=t){const a=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=a)}}}function XDe(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function Ep(e,t,n){return e.options.clip?e[n]:t[n]}function ZDe(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:Ep(n,t,"left"),right:Ep(n,t,"right"),top:Ep(r,t,"top"),bottom:Ep(r,t,"bottom")}:t}var Pa;let qs=(Pa=class{static register(...t){so.add(...t),uD()}static unregister(...t){so.remove(...t),uD()}constructor(t,n){const r=this.config=new HDe(n),i=jj(t),o=lD(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||pDe(i)),this.platform.updateConfig(r);const s=this.platform.acquireContext(i,a.aspectRatio),l=s&&s.canvas,u=l&&l.height,d=l&&l.width;if(this.id=sMe(),this.ctx=s,this.canvas=l,this.width=d,this.height=u,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new DDe,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=TMe(h=>this.update(h),a.resizeDelay||0),this._dataChanges=[],ng[this.id]=this,!s||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Uo.listen(this,"complete",sD),Uo.listen(this,"progress",KDe),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:o}=this;return Cn(t)?n&&o?o:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return so}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():IA(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return MA(this.canvas,this.ctx),this}stop(){return Uo.stop(this),this}resize(t,n){Uo.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(i,t,n,o),s=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,IA(this,s,!0)&&(this.notifyPlugins("resize",{size:a}),Vt(r.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Wt(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((a,s)=>(a[s]=!1,a),{});let o=[];n&&(o=o.concat(Object.keys(n).map(a=>{const s=n[a],l=Q1(a,s),u=l==="r",d=l==="x";return{options:s,dposition:u?"chartArea":d?"bottom":"left",dtype:u?"radialLinear":d?"category":"linear"}}))),Wt(o,a=>{const s=a.options,l=s.id,u=Q1(l,s),d=ft(s.type,a.dtype);(s.position===void 0||oD(s.position,u)!==oD(a.dposition))&&(s.position=a.dposition),i[l]=!0;let h=null;if(l in r&&r[l].type===d)h=r[l];else{const p=so.getScale(d);h=new p({id:l,type:d,ctx:this.ctx,chart:this}),r[h.id]=h}h.init(s,t)}),Wt(i,(a,s)=>{a||delete r[s]}),Wt(r,a=>{ja.configure(this,a,a.options),ja.addBox(this,a)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,o)=>i.index-o.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(aD("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(o=>o===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){const o=n[r];let a=this.getDatasetMeta(r);const s=o.type||this.config.type;if(a.type&&a.type!==s&&(this._destroyDatasetMeta(r),a=this.getDatasetMeta(r)),a.type=s,a.indexAxis=o.indexAxis||Z1(s,this.options),a.order=o.order||0,a.index=r,a.label=""+o.label,a.visible=this.isDatasetVisible(r),a.controller)a.controller.updateIndex(r),a.controller.linkScales();else{const l=so.getController(s),{datasetElementType:u,dataElementType:d}=Sn.datasets[s];Object.assign(l,{dataElementType:so.getElement(d),datasetElementType:u&&so.getElement(u)}),a.controller=new l(this,r),t.push(a.controller)}}return this._updateMetasets(),t}_resetElements(){Wt(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let u=0,d=this.data.datasets.length;u<d;u++){const{controller:h}=this.getDatasetMeta(u),p=!i&&o.indexOf(h)===-1;h.buildOrUpdateElements(p),a=Math.max(+h.getMaxOverflow(),a)}a=this._minPadding=r.layout.autoPadding?a:0,this._updateLayout(a),i||Wt(o,u=>{u.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(aD("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){Wt(this.scales,t=>{ja.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!wA(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:o}of n){const a=r==="_removeElements"?-o:o;YDe(t,i,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=o=>new Set(t.filter(a=>a[0]===o).map((a,s)=>s+","+a.splice(1).join(","))),i=r(0);for(let o=1;o<n;o++)if(!wA(i,r(o)))return;return Array.from(i).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;ja.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Wt(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,Ur(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),i={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Uo.has(this)?this.attached&&!Uo.running(this)&&Uo.start(this):(this.draw(),sD({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resize(r,i),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,r=[];let i,o;for(i=0,o=n.length;i<o;++i){const a=n[i];(!t||a.visible)&&r.push(a)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,i=!r.disabled,o=ZDe(t,this.chartArea),a={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(i&&zf(n,{left:r.left===!1?0:o.left-r.left,right:r.right===!1?this.width:o.right+r.right,top:r.top===!1?0:o.top-r.top,bottom:r.bottom===!1?this.height:o.bottom+r.bottom}),t.controller.draw(),i&&Vf(n),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return sf(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const o=qAe.modes[n];return typeof o=="function"?o(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=ml(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",o=this.getDatasetMeta(t),a=o.controller._resolveAnimations(void 0,i);oi(n)?(o.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),a.update(o,{visible:r}),this.update(s=>s.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),Uo.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),MA(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete ng[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,r=(o,a)=>{n.addEventListener(this,o,a),t[o]=a},i=(o,a,s)=>{o.offsetX=a,o.offsetY=s,this._eventHandler(o)};Wt(this.options.events,o=>r(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,u)=>{n.addEventListener(this,l,u),t[l]=u},i=(l,u)=>{t[l]&&(n.removeEventListener(this,l,u),delete t[l])},o=(l,u)=>{this.canvas&&this.resize(l,u)};let a;const s=()=>{i("attach",s),this.attached=!0,this.resize(),r("resize",o),r("detach",a)};a=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),r("attach",s)},n.isAttached(this.canvas)?s():a()}unbindEvents(){Wt(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Wt(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let o,a,s,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),s=0,l=t.length;s<l;++s){a=t[s];const u=a&&this.getDatasetMeta(a.datasetIndex).controller;u&&u[i+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:o,index:a})=>{const s=this.getDatasetMeta(o);if(!s)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:s.data[a],index:a}});!cm(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,o=(l,u)=>l.filter(d=>!u.some(h=>d.datasetIndex===h.datasetIndex&&d.index===h.index)),a=o(n,t),s=r?t:o(t,n);a.length&&this.updateHoverStyle(a,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const o=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(o||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:o}=this,a=n,s=this._getActiveElements(t,i,r,a),l=hMe(t),u=XDe(t,this._lastEvent,r,l);r&&(this._lastEvent=null,Vt(o.onHover,[t,s,this],this),l&&Vt(o.onClick,[t,s,this],this));const d=!cm(s,i);return(d||n)&&(this._active=s,this._updateHoverStyles(s,i,n)),this._lastEvent=u,d}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}},rt(Pa,"defaults",Sn),rt(Pa,"instances",ng),rt(Pa,"overrides",ol),rt(Pa,"registry",so),rt(Pa,"version",GDe),rt(Pa,"getChart",lD),Pa);function uD(){return Wt(qs.instances,e=>e._plugins.invalidate())}function Bj(e,t,n=t){e.lineCap=ft(n.borderCapStyle,t.borderCapStyle),e.setLineDash(ft(n.borderDash,t.borderDash)),e.lineDashOffset=ft(n.borderDashOffset,t.borderDashOffset),e.lineJoin=ft(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=ft(n.borderWidth,t.borderWidth),e.strokeStyle=ft(n.borderColor,t.borderColor)}function QDe(e,t,n){e.lineTo(n.x,n.y)}function JDe(e){return e.stepped?jMe:e.tension||e.cubicInterpolationMode==="monotone"?BMe:QDe}function Uj(e,t,n={}){const r=e.length,{start:i=0,end:o=r-1}=n,{start:a,end:s}=t,l=Math.max(i,a),u=Math.min(o,s),d=i<a&&o<a||i>s&&o>s;return{count:r,start:l,loop:t.loop,ilen:u<l&&!d?r+u-l:u-l}}function eIe(e,t,n,r){const{points:i,options:o}=t,{count:a,start:s,loop:l,ilen:u}=Uj(i,n,r),d=JDe(o);let{move:h=!0,reverse:p}=r||{},g,m,y;for(g=0;g<=u;++g)m=i[(s+(p?u-g:g))%a],!m.skip&&(h?(e.moveTo(m.x,m.y),h=!1):d(e,y,m,p,o.stepped),y=m);return l&&(m=i[(s+(p?u:0))%a],d(e,y,m,p,o.stepped)),!!l}function tIe(e,t,n,r){const i=t.points,{count:o,start:a,ilen:s}=Uj(i,n,r),{move:l=!0,reverse:u}=r||{};let d=0,h=0,p,g,m,y,b,x;const S=C=>(a+(u?s-C:C))%o,w=()=>{y!==b&&(e.lineTo(d,b),e.lineTo(d,y),e.lineTo(d,x))};for(l&&(g=i[S(0)],e.moveTo(g.x,g.y)),p=0;p<=s;++p){if(g=i[S(p)],g.skip)continue;const C=g.x,R=g.y,O=C|0;O===m?(R<y?y=R:R>b&&(b=R),d=(h*d+C)/++h):(w(),e.lineTo(C,R),m=O,h=0,y=b=R),x=R}w()}function J1(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?tIe:eIe}function nIe(e){return e.stepped?bAe:e.tension||e.cubicInterpolationMode==="monotone"?xAe:Ps}function rIe(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),Bj(e,t.options),e.stroke(i)}function iIe(e,t,n,r){const{segments:i,options:o}=t,a=J1(t);for(const s of i)Bj(e,o,s.style),e.beginPath(),a(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const oIe=typeof Path2D=="function";function aIe(e,t,n,r){oIe&&!t.options.segment?rIe(e,t,n,r):iIe(e,t,n,r)}class Ba extends ki{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;dAe(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=EAe(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],o=this.points,a=Pj(this,{property:n,start:i,end:i});if(!a.length)return;const s=[],l=nIe(r);let u,d;for(u=0,d=a.length;u<d;++u){const{start:h,end:p}=a[u],g=o[h],m=o[p];if(g===m){s.push(g);continue}const y=Math.abs((i-g[n])/(m[n]-g[n])),b=l(g,m,y,r.stepped);b[n]=t[n],s.push(b)}return s.length===1?s[0]:s}pathSegment(t,n,r){return J1(this)(t,this,n,r)}path(t,n,r){const i=this.segments,o=J1(this);let a=this._loop;n=n||0,r=r||this.points.length-n;for(const s of i)a&=o(t,this,s,{start:n,end:n+r-1});return!!a}draw(t,n,r,i){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),aIe(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}rt(Ba,"id","line"),rt(Ba,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),rt(Ba,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),rt(Ba,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function cD(e,t,n,r){const i=e.options,{[n]:o}=e.getProps([n],r);return Math.abs(t-o)<i.radius+i.hitRadius}class rg extends ki{constructor(n){super();rt(this,"parsed");rt(this,"skip");rt(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,r,i){const o=this.options,{x:a,y:s}=this.getProps(["x","y"],i);return Math.pow(n-a,2)+Math.pow(r-s,2)<Math.pow(o.hitRadius+o.radius,2)}inXRange(n,r){return cD(this,n,"x",r)}inYRange(n,r){return cD(this,n,"y",r)}getCenterPoint(n){const{x:r,y:i}=this.getProps(["x","y"],n);return{x:r,y:i}}size(n){n=n||this.options||{};let r=n.radius||0;r=Math.max(r,r&&n.hoverRadius||0);const i=r&&n.borderWidth||0;return(r+i)*2}draw(n,r){const i=this.options;this.skip||i.radius<.1||!sf(this,r,this.size(i)/2)||(n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.fillStyle=i.backgroundColor,X1(n,i,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}rt(rg,"id","point"),rt(rg,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),rt(rg,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function sIe(e,t,n){const r=e.segments,i=e.points,o=t.points,a=[];for(const s of r){let{start:l,end:u}=s;u=UC(l,u,i);const d=ew(n,i[l],i[u],s.loop);if(!t.segments){a.push({source:s,target:d,start:i[l],end:i[u]});continue}const h=Pj(t,d);for(const p of h){const g=ew(n,o[p.start],o[p.end],p.loop),m=Oj(s,i,g);for(const y of m)a.push({source:y,target:p,start:{[n]:dD(d,g,"start",Math.max)},end:{[n]:dD(d,g,"end",Math.min)}})}}return a}function ew(e,t,n,r){if(r)return;let i=t[e],o=n[e];return e==="angle"&&(i=uo(i),o=uo(o)),{property:e,start:i,end:o}}function lIe(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,o=[];return t.segments.forEach(({start:a,end:s})=>{s=UC(a,s,i);const l=i[a],u=i[s];r!==null?(o.push({x:l.x,y:r}),o.push({x:u.x,y:r})):n!==null&&(o.push({x:n,y:l.y}),o.push({x:n,y:u.y}))}),o}function UC(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function dD(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function Wj(e,t){let n=[],r=!1;return nn(e)?(r=!0,n=e):n=lIe(e,t),n.length?new Ba({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function fD(e){return e&&e.fill!==!1}function uIe(e,t,n){let i=e[t].fill;const o=[t];let a;if(!n)return i;for(;i!==!1&&o.indexOf(i)===-1;){if(!rr(i))return i;if(a=e[i],!a)return!1;if(a.visible)return i;o.push(i),i=a.fill}return!1}function cIe(e,t,n){const r=pIe(e);if(gt(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return rr(i)&&Math.floor(i)===i?dIe(r[0],t,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function dIe(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function fIe(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:gt(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function hIe(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:gt(e)?r=e.value:r=t.getBaseValue(),r}function pIe(e){const t=e.options,n=t.fill;let r=ft(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function gIe(e){const{scale:t,index:n,line:r}=e,i=[],o=r.segments,a=r.points,s=mIe(t,n);s.push(Wj({x:null,y:t.bottom},r));for(let l=0;l<o.length;l++){const u=o[l];for(let d=u.start;d<=u.end;d++)vIe(i,a[d],s)}return new Ba({points:i,options:{}})}function mIe(e,t){const n=[],r=e.getMatchingVisibleMetas("line");for(let i=0;i<r.length;i++){const o=r[i];if(o.index===t)break;o.hidden||n.unshift(o.dataset)}return n}function vIe(e,t,n){const r=[];for(let i=0;i<n.length;i++){const o=n[i],{first:a,last:s,point:l}=yIe(o,t,"x");if(!(!l||a&&s)){if(a)r.unshift(l);else if(e.push(l),!s)break}}e.push(...r)}function yIe(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const i=r[n],o=e.segments,a=e.points;let s=!1,l=!1;for(let u=0;u<o.length;u++){const d=o[u],h=a[d.start][n],p=a[d.end][n];if(su(i,h,p)){s=i===h,l=i===p;break}}return{first:s,last:l,point:r}}class Hj{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,r){const{x:i,y:o,radius:a}=this;return n=n||{start:0,end:Ei},t.arc(i,o,a,n.end,n.start,!0),!r.bounds}interpolate(t){const{x:n,y:r,radius:i}=this,o=t.angle;return{x:n+Math.cos(o)*i,y:r+Math.sin(o)*i,angle:o}}}function bIe(e){const{chart:t,fill:n,line:r}=e;if(rr(n))return xIe(t,n);if(n==="stack")return gIe(e);if(n==="shape")return!0;const i=wIe(e);return i instanceof Hj?i:Wj(i,r)}function xIe(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function wIe(e){return(e.scale||{}).getPointPositionForValue?CIe(e):_Ie(e)}function _Ie(e){const{scale:t={},fill:n}=e,r=fIe(n,t);if(rr(r)){const i=t.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}function CIe(e){const{scale:t,fill:n}=e,r=t.options,i=t.getLabels().length,o=r.reverse?t.max:t.min,a=hIe(n,t,o),s=[];if(r.grid.circular){const l=t.getPointPositionForValue(0,o);return new Hj({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(a)})}for(let l=0;l<i;++l)s.push(t.getPointPositionForValue(l,a));return s}function I0(e,t,n){const r=bIe(t),{line:i,scale:o,axis:a}=t,s=i.options,l=s.fill,u=s.backgroundColor,{above:d=u,below:h=u}=l||{};r&&i.points.length&&(zf(e,n),SIe(e,{line:i,target:r,above:d,below:h,area:n,scale:o,axis:a}),Vf(e))}function SIe(e,t){const{line:n,target:r,above:i,below:o,area:a,scale:s}=t,l=n._loop?"angle":t.axis;e.save(),l==="x"&&o!==i&&(hD(e,r,a.top),pD(e,{line:n,target:r,color:i,scale:s,property:l}),e.restore(),e.save(),hD(e,r,a.bottom)),pD(e,{line:n,target:r,color:o,scale:s,property:l}),e.restore()}function hD(e,t,n){const{segments:r,points:i}=t;let o=!0,a=!1;e.beginPath();for(const s of r){const{start:l,end:u}=s,d=i[l],h=i[UC(l,u,i)];o?(e.moveTo(d.x,d.y),o=!1):(e.lineTo(d.x,n),e.lineTo(d.x,d.y)),a=!!t.pathSegment(e,s,{move:a}),a?e.closePath():e.lineTo(h.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function pD(e,t){const{line:n,target:r,property:i,color:o,scale:a}=t,s=sIe(n,r,i);for(const{source:l,target:u,start:d,end:h}of s){const{style:{backgroundColor:p=o}={}}=l,g=r!==!0;e.save(),e.fillStyle=p,TIe(e,a,g&&ew(i,d,h)),e.beginPath();const m=!!n.pathSegment(e,l);let y;if(g){m?e.closePath():gD(e,r,h,i);const b=!!r.pathSegment(e,u,{move:m,reverse:!0});y=m&&b,y||gD(e,r,d,i)}e.closePath(),e.fill(y?"evenodd":"nonzero"),e.restore()}}function TIe(e,t,n){const{top:r,bottom:i}=t.chart.chartArea,{property:o,start:a,end:s}=n||{};o==="x"&&(e.beginPath(),e.rect(a,r,s-a,i-r),e.clip())}function gD(e,t,n,r){const i=t.interpolate(n,r);i&&e.lineTo(i.x,i.y)}var EIe={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,i=[];let o,a,s,l;for(a=0;a<r;++a)o=e.getDatasetMeta(a),s=o.dataset,l=null,s&&s.options&&s instanceof Ba&&(l={visible:e.isDatasetVisible(a),index:a,fill:cIe(s,a,r),chart:e,axis:o.controller.options.indexAxis,scale:o.vScale,line:s}),o.$filler=l,i.push(l);for(a=0;a<r;++a)l=i[a],!(!l||l.fill===!1)&&(l.fill=uIe(i,a,n.propagate))},beforeDraw(e,t,n){const r=n.drawTime==="beforeDraw",i=e.getSortedVisibleDatasetMetas(),o=e.chartArea;for(let a=i.length-1;a>=0;--a){const s=i[a].$filler;s&&(s.line.updateControlPoints(o,s.axis),r&&s.fill&&I0(e.ctx,s,o))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=e.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const o=r[i].$filler;fD(o)&&I0(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!fD(r)||n.drawTime!=="beforeDatasetDraw"||I0(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const mD=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},OIe=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class vD extends ki{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Vt(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=tr(r.font),o=i.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=mD(r,o);let u,d;n.font=i.string,this.isHorizontal()?(u=this.maxWidth,d=this._fitRows(a,o,s,l)+10):(d=this.maxHeight,u=this._fitCols(a,i,s,l)+10),this.width=Math.min(u,t.maxWidth||this.maxWidth),this.height=Math.min(d,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:o,maxWidth:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],u=this.lineWidths=[0],d=i+s;let h=t;o.textAlign="left",o.textBaseline="middle";let p=-1,g=-d;return this.legendItems.forEach((m,y)=>{const b=r+n/2+o.measureText(m.text).width;(y===0||u[u.length-1]+b+2*s>a)&&(h+=d,u[u.length-(y>0?0:1)]=0,g+=d,p++),l[y]={left:0,top:g,row:p,width:b,height:i},u[u.length-1]+=b+s}),h}_fitCols(t,n,r,i){const{ctx:o,maxHeight:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],u=this.columnSizes=[],d=a-t;let h=s,p=0,g=0,m=0,y=0;return this.legendItems.forEach((b,x)=>{const{itemWidth:S,itemHeight:w}=PIe(r,n,o,b,i);x>0&&g+w+2*s>d&&(h+=p+s,u.push({width:p,height:g}),m+=p+s,y++,p=g=0),l[x]={left:m,top:g,col:y,width:S,height:w},p=Math.max(p,S),g+=w+s}),h+=p,u.push({width:p,height:g}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,a=gu(o,this.left,this.width);if(this.isHorizontal()){let s=0,l=ei(r,this.left+i,this.right-this.lineWidths[s]);for(const u of n)s!==u.row&&(s=u.row,l=ei(r,this.left+i,this.right-this.lineWidths[s])),u.top+=this.top+t+i,u.left=a.leftForLtr(a.x(l),u.width),l+=u.width+i}else{let s=0,l=ei(r,this.top+t+i,this.bottom-this.columnSizes[s].height);for(const u of n)u.col!==s&&(s=u.col,l=ei(r,this.top+t+i,this.bottom-this.columnSizes[s].height)),u.top=l,u.left+=this.left+i,u.left=a.leftForLtr(a.x(u.left),u.width),l+=u.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;zf(t,this),this._draw(),Vf(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:a}=t,s=Sn.color,l=gu(t.rtl,this.left,this.width),u=tr(a.font),{padding:d}=a,h=u.size,p=h/2;let g;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=u.string;const{boxWidth:m,boxHeight:y,itemHeight:b}=mD(a,h),x=function(O,T,A){if(isNaN(m)||m<=0||isNaN(y)||y<0)return;i.save();const L=ft(A.lineWidth,1);if(i.fillStyle=ft(A.fillStyle,s),i.lineCap=ft(A.lineCap,"butt"),i.lineDashOffset=ft(A.lineDashOffset,0),i.lineJoin=ft(A.lineJoin,"miter"),i.lineWidth=L,i.strokeStyle=ft(A.strokeStyle,s),i.setLineDash(ft(A.lineDash,[])),a.usePointStyle){const I={radius:y*Math.SQRT2/2,pointStyle:A.pointStyle,rotation:A.rotation,borderWidth:L},N=l.xPlus(O,m/2),B=T+p;mj(i,I,N,B,a.pointStyleWidth&&m)}else{const I=T+Math.max((h-y)/2,0),N=l.leftForLtr(O,m),B=pu(A.borderRadius);i.beginPath(),Object.values(B).some(U=>U!==0)?mm(i,{x:N,y:I,w:m,h:y,radius:B}):i.rect(N,I,m,y),i.fill(),L!==0&&i.stroke()}i.restore()},S=function(O,T,A){gm(i,A.text,O,T+b/2,u,{strikethrough:A.hidden,textAlign:l.textAlign(A.textAlign)})},w=this.isHorizontal(),C=this._computeTitleHeight();w?g={x:ei(o,this.left+d,this.right-r[0]),y:this.top+d+C,line:0}:g={x:this.left+d,y:ei(o,this.top+C+d,this.bottom-n[0].height),line:0},Sj(this.ctx,t.textDirection);const R=b+d;this.legendItems.forEach((O,T)=>{i.strokeStyle=O.fontColor,i.fillStyle=O.fontColor;const A=i.measureText(O.text).width,L=l.textAlign(O.textAlign||(O.textAlign=a.textAlign)),I=m+p+A;let N=g.x,B=g.y;l.setWidth(this.width),w?T>0&&N+I+d>this.right&&(B=g.y+=R,g.line++,N=g.x=ei(o,this.left+d,this.right-r[g.line])):T>0&&B+R>this.bottom&&(N=g.x=N+n[g.line].width+d,g.line++,B=g.y=ei(o,this.top+C+d,this.bottom-n[g.line].height));const U=l.x(N);if(x(U,B,O),N=EMe(L,N+m+p,w?N+I:this.right,t.rtl),S(l.x(N),B,O),w)g.x+=I+d;else if(typeof O.text!="string"){const z=u.lineHeight;g.y+=zj(O,z)+d}else g.y+=R}),Tj(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=tr(n.font),i=Er(n.padding);if(!n.display)return;const o=gu(t.rtl,this.left,this.width),a=this.ctx,s=n.position,l=r.size/2,u=i.top+l;let d,h=this.left,p=this.width;if(this.isHorizontal())p=Math.max(...this.lineWidths),d=this.top+u,h=ei(t.align,h,this.right-p);else{const m=this.columnSizes.reduce((y,b)=>Math.max(y,b.height),0);d=u+ei(t.align,this.top,this.bottom-m-t.labels.padding-this._computeTitleHeight())}const g=ei(s,h,h+p);a.textAlign=o.textAlign(hj(s)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,gm(a,n.text,g,d,r)}_computeTitleHeight(){const t=this.options.title,n=tr(t.font),r=Er(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,o;if(su(t,this.left,this.right)&&su(n,this.top,this.bottom)){for(o=this.legendHitBoxes,r=0;r<o.length;++r)if(i=o[r],su(t,i.left,i.left+i.width)&&su(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!AIe(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,o=OIe(i,r);i&&!o&&Vt(n.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!o&&Vt(n.onHover,[t,r,this],this)}else r&&Vt(n.onClick,[t,r,this],this)}}function PIe(e,t,n,r,i){const o=RIe(r,e,t,n),a=MIe(i,r,t.lineHeight);return{itemWidth:o,itemHeight:a}}function RIe(e,t,n,r){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((o,a)=>o.length>a.length?o:a)),t+n.size/2+r.measureText(i).width}function MIe(e,t,n){let r=e;return typeof t.text!="string"&&(r=zj(t,n)),r}function zj(e,t){const n=e.text?e.text.length:0;return t*n}function AIe(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var DIe={id:"legend",_element:vD,start(e,t,n){const r=e.legend=new vD({ctx:e.ctx,options:n,chart:e});ja.configure(e,r,n),ja.addBox(e,r)},stop(e){ja.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;ja.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:o,useBorderRadius:a,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const u=l.controller.getStyle(n?0:void 0),d=Er(u.borderWidth);return{text:t[l.index].label,fillStyle:u.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:u.borderColor,pointStyle:r||u.pointStyle,rotation:u.rotation,textAlign:i||u.textAlign,borderRadius:a&&(s||u.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};const pd={average(e){if(!e.length)return!1;let t,n,r=0,i=0,o=0;for(t=0,n=e.length;t<n;++t){const a=e[t].element;if(a&&a.hasValue()){const s=a.tooltipPosition();r+=s.x,i+=s.y,++o}}return{x:r/o,y:i/o}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,o,a,s;for(o=0,a=e.length;o<a;++o){const l=e[o].element;if(l&&l.hasValue()){const u=l.getCenterPoint(),d=ku(t,u);d<i&&(i=d,s=l)}}if(s){const l=s.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function ao(e,t){return t&&(nn(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Wo(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
|
|
711
|
+
`)>-1?e.split(`
|
|
712
|
+
`):e}function IIe(e,t){const{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,{label:a,value:s}=o.getLabelAndValue(i);return{chart:e,label:a,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function yD(e,t){const n=e.chart.ctx,{body:r,footer:i,title:o}=e,{boxWidth:a,boxHeight:s}=t,l=tr(t.bodyFont),u=tr(t.titleFont),d=tr(t.footerFont),h=o.length,p=i.length,g=r.length,m=Er(t.padding);let y=m.height,b=0,x=r.reduce((C,R)=>C+R.before.length+R.lines.length+R.after.length,0);if(x+=e.beforeBody.length+e.afterBody.length,h&&(y+=h*u.lineHeight+(h-1)*t.titleSpacing+t.titleMarginBottom),x){const C=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;y+=g*C+(x-g)*l.lineHeight+(x-1)*t.bodySpacing}p&&(y+=t.footerMarginTop+p*d.lineHeight+(p-1)*t.footerSpacing);let S=0;const w=function(C){b=Math.max(b,n.measureText(C).width+S)};return n.save(),n.font=u.string,Wt(e.title,w),n.font=l.string,Wt(e.beforeBody.concat(e.afterBody),w),S=t.displayColors?a+2+t.boxPadding:0,Wt(r,C=>{Wt(C.before,w),Wt(C.lines,w),Wt(C.after,w)}),S=0,n.font=d.string,Wt(e.footer,w),n.restore(),b+=m.width,{width:b,height:y}}function $Ie(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function LIe(e,t,n,r){const{x:i,width:o}=r,a=n.caretSize+n.caretPadding;if(e==="left"&&i+o+a>t.width||e==="right"&&i-o-a<0)return!0}function kIe(e,t,n,r){const{x:i,width:o}=n,{width:a,chartArea:{left:s,right:l}}=e;let u="center";return r==="center"?u=i<=(s+l)/2?"left":"right":i<=o/2?u="left":i>=a-o/2&&(u="right"),LIe(u,e,t,n)&&(u="center"),u}function bD(e,t,n){const r=n.yAlign||t.yAlign||$Ie(e,n);return{xAlign:n.xAlign||t.xAlign||kIe(e,t,n,r),yAlign:r}}function NIe(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function FIe(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function xD(e,t,n,r){const{caretSize:i,caretPadding:o,cornerRadius:a}=e,{xAlign:s,yAlign:l}=n,u=i+o,{topLeft:d,topRight:h,bottomLeft:p,bottomRight:g}=pu(a);let m=NIe(t,s);const y=FIe(t,l,u);return l==="center"?s==="left"?m+=u:s==="right"&&(m-=u):s==="left"?m-=Math.max(d,p)+i:s==="right"&&(m+=Math.max(h,g)+i),{x:Ci(m,0,r.width-t.width),y:Ci(y,0,r.height-t.height)}}function Op(e,t,n){const r=Er(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function wD(e){return ao([],Wo(e))}function jIe(e,t,n){return ml(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function _D(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const Vj={beforeTitle:jo,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:jo,beforeBody:jo,beforeLabel:jo,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return Cn(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:jo,afterBody:jo,beforeFooter:jo,footer:jo,afterFooter:jo};function $r(e,t,n,r){const i=e[t].call(n,r);return typeof i>"u"?Vj[t].call(n,r):i}class tw extends ki{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,o=new jC(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=jIe(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=$r(r,"beforeTitle",this,t),o=$r(r,"title",this,t),a=$r(r,"afterTitle",this,t);let s=[];return s=ao(s,Wo(i)),s=ao(s,Wo(o)),s=ao(s,Wo(a)),s}getBeforeBody(t,n){return wD($r(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return Wt(t,o=>{const a={before:[],lines:[],after:[]},s=_D(r,o);ao(a.before,Wo($r(s,"beforeLabel",this,o))),ao(a.lines,$r(s,"label",this,o)),ao(a.after,Wo($r(s,"afterLabel",this,o))),i.push(a)}),i}getAfterBody(t,n){return wD($r(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=$r(r,"beforeFooter",this,t),o=$r(r,"footer",this,t),a=$r(r,"afterFooter",this,t);let s=[];return s=ao(s,Wo(i)),s=ao(s,Wo(o)),s=ao(s,Wo(a)),s}_createItems(t){const n=this._active,r=this.chart.data,i=[],o=[],a=[];let s=[],l,u;for(l=0,u=n.length;l<u;++l)s.push(IIe(this.chart,n[l]));return t.filter&&(s=s.filter((d,h,p)=>t.filter(d,h,p,r))),t.itemSort&&(s=s.sort((d,h)=>t.itemSort(d,h,r))),Wt(s,d=>{const h=_D(t.callbacks,d);i.push($r(h,"labelColor",this,d)),o.push($r(h,"labelPointStyle",this,d)),a.push($r(h,"labelTextColor",this,d))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=s,s}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let o,a=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const s=pd[r.position].call(this,i,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const l=this._size=yD(this,r),u=Object.assign({},s,l),d=bD(this.chart,r,u),h=xD(r,u,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,o={opacity:1,x:h.x,y:h.y,width:l.width,height:l.height,caretX:s.x,caretY:s.y}}this._tooltipItems=a,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const o=this.getCaretPosition(t,r,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:o}=this,{caretSize:a,cornerRadius:s}=r,{topLeft:l,topRight:u,bottomLeft:d,bottomRight:h}=pu(s),{x:p,y:g}=t,{width:m,height:y}=n;let b,x,S,w,C,R;return o==="center"?(C=g+y/2,i==="left"?(b=p,x=b-a,w=C+a,R=C-a):(b=p+m,x=b+a,w=C-a,R=C+a),S=b):(i==="left"?x=p+Math.max(l,d)+a:i==="right"?x=p+m-Math.max(u,h)-a:x=this.caretX,o==="top"?(w=g,C=w-a,b=x-a,S=x+a):(w=g+y,C=w+a,b=x+a,S=x-a),R=w),{x1:b,x2:x,x3:S,y1:w,y2:C,y3:R}}drawTitle(t,n,r){const i=this.title,o=i.length;let a,s,l;if(o){const u=gu(r.rtl,this.x,this.width);for(t.x=Op(this,r.titleAlign,r),n.textAlign=u.textAlign(r.titleAlign),n.textBaseline="middle",a=tr(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,l=0;l<o;++l)n.fillText(i[l],u.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+s,l+1===o&&(t.y+=r.titleMarginBottom-s)}}_drawColorBox(t,n,r,i,o){const a=this.labelColors[r],s=this.labelPointStyles[r],{boxHeight:l,boxWidth:u}=o,d=tr(o.bodyFont),h=Op(this,"left",o),p=i.x(h),g=l<d.lineHeight?(d.lineHeight-l)/2:0,m=n.y+g;if(o.usePointStyle){const y={radius:Math.min(u,l)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},b=i.leftForLtr(p,u)+u/2,x=m+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,X1(t,y,b,x),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,X1(t,y,b,x)}else{t.lineWidth=gt(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const y=i.leftForLtr(p,u),b=i.leftForLtr(i.xPlus(p,1),u-2),x=pu(a.borderRadius);Object.values(x).some(S=>S!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,mm(t,{x:y,y:m,w:u,h:l,radius:x}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),mm(t,{x:b,y:m+1,w:u-2,h:l-2,radius:x}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(y,m,u,l),t.strokeRect(y,m,u,l),t.fillStyle=a.backgroundColor,t.fillRect(b,m+1,u-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:o,bodyAlign:a,displayColors:s,boxHeight:l,boxWidth:u,boxPadding:d}=r,h=tr(r.bodyFont);let p=h.lineHeight,g=0;const m=gu(r.rtl,this.x,this.width),y=function(A){n.fillText(A,m.x(t.x+g),t.y+p/2),t.y+=p+o},b=m.textAlign(a);let x,S,w,C,R,O,T;for(n.textAlign=a,n.textBaseline="middle",n.font=h.string,t.x=Op(this,b,r),n.fillStyle=r.bodyColor,Wt(this.beforeBody,y),g=s&&b!=="right"?a==="center"?u/2+d:u+2+d:0,C=0,O=i.length;C<O;++C){for(x=i[C],S=this.labelTextColors[C],n.fillStyle=S,Wt(x.before,y),w=x.lines,s&&w.length&&(this._drawColorBox(n,t,C,m,r),p=Math.max(h.lineHeight,l)),R=0,T=w.length;R<T;++R)y(w[R]),p=h.lineHeight;Wt(x.after,y)}g=0,p=h.lineHeight,Wt(this.afterBody,y),t.y-=o}drawFooter(t,n,r){const i=this.footer,o=i.length;let a,s;if(o){const l=gu(r.rtl,this.x,this.width);for(t.x=Op(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",a=tr(r.footerFont),n.fillStyle=r.footerColor,n.font=a.string,s=0;s<o;++s)n.fillText(i[s],l.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){const{xAlign:o,yAlign:a}=this,{x:s,y:l}=t,{width:u,height:d}=r,{topLeft:h,topRight:p,bottomLeft:g,bottomRight:m}=pu(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(s+h,l),a==="top"&&this.drawCaret(t,n,r,i),n.lineTo(s+u-p,l),n.quadraticCurveTo(s+u,l,s+u,l+p),a==="center"&&o==="right"&&this.drawCaret(t,n,r,i),n.lineTo(s+u,l+d-m),n.quadraticCurveTo(s+u,l+d,s+u-m,l+d),a==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(s+g,l+d),n.quadraticCurveTo(s,l+d,s,l+d-g),a==="center"&&o==="left"&&this.drawCaret(t,n,r,i),n.lineTo(s,l+h),n.quadraticCurveTo(s,l,s+h,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,o=r&&r.y;if(i||o){const a=pd[t.position].call(this,this._active,this._eventPosition);if(!a)return;const s=this._size=yD(this,t),l=Object.assign({},a,this._size),u=bD(n,t,l),d=xD(t,l,u,n);(i._to!==d.x||o._to!==d.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=s.width,this.height=s.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=Er(n.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&s&&(t.save(),t.globalAlpha=r,this.drawBackground(o,t,i,n),Sj(t,n.textDirection),o.y+=a.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),Tj(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:s,index:l})=>{const u=this.chart.getDatasetMeta(s);if(!u)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:u.data[l],index:l}}),o=!cm(r,i),a=this._positionChanged(i,n);(o||a)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],a=this._getActiveElements(t,o,n,r),s=this._positionChanged(a,t),l=n||!cm(a,o)||s;return l&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const o=this.options;if(t.type==="mouseout")return[];if(!i)return n;const a=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&a.reverse(),a}_positionChanged(t,n){const{caretX:r,caretY:i,options:o}=this,a=pd[o.position].call(this,t,n);return a!==!1&&(r!==a.x||i!==a.y)}}rt(tw,"positioners",pd);var BIe={id:"tooltip",_element:tw,positioners:pd,afterInit(e,t,n){n&&(e.tooltip=new tw({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Vj},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const UIe=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function WIe(e,t,n,r){const i=e.indexOf(t);if(i===-1)return UIe(e,t,n,r);const o=e.lastIndexOf(t);return i!==o?n:i}const HIe=(e,t)=>e===null?null:Ci(Math.round(e),0,t);function CD(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class nw extends lc{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:o}of n)r[i]===o&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(Cn(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:WIe(r,t,ft(n,t),this._addedLabels),HIe(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,i=[];let o=this.getLabels();o=t===0&&n===o.length-1?o:o.slice(t,n+1),this._valueRange=Math.max(o.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let a=t;a<=n;a++)i.push({value:a});return i}getLabelForValue(t){return CD.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}rt(nw,"id","category"),rt(nw,"defaults",{ticks:{callback:CD}});function zIe(e,t){const n=[],{bounds:i,step:o,min:a,max:s,precision:l,count:u,maxTicks:d,maxDigits:h,includeBounds:p}=e,g=o||1,m=d-1,{min:y,max:b}=t,x=!Cn(a),S=!Cn(s),w=!Cn(u),C=(b-y)/(h+1);let R=_A((b-y)/m/g)*g,O,T,A,L;if(R<1e-14&&!x&&!S)return[{value:y},{value:b}];L=Math.ceil(b/R)-Math.floor(y/R),L>m&&(R=_A(L*R/m/g)*g),Cn(l)||(O=Math.pow(10,l),R=Math.ceil(R*O)/O),i==="ticks"?(T=Math.floor(y/R)*R,A=Math.ceil(b/R)*R):(T=y,A=b),x&&S&&o&&mMe((s-a)/o,R/1e3)?(L=Math.round(Math.min((s-a)/R,d)),R=(s-a)/L,T=a,A=s):w?(T=x?a:T,A=S?s:A,L=u-1,R=(A-T)/L):(L=(A-T)/R,Ld(L,Math.round(L),R/1e3)?L=Math.round(L):L=Math.ceil(L));const I=Math.max(CA(R),CA(T));O=Math.pow(10,Cn(l)?I:l),T=Math.round(T*O)/O,A=Math.round(A*O)/O;let N=0;for(x&&(p&&T!==a?(n.push({value:a}),T<a&&N++,Ld(Math.round((T+N*R)*O)/O,a,SD(a,C,e))&&N++):T<a&&N++);N<L;++N){const B=Math.round((T+N*R)*O)/O;if(S&&B>s)break;n.push({value:B})}return S&&p&&A!==s?n.length&&Ld(n[n.length-1].value,s,SD(s,C,e))?n[n.length-1].value=s:n.push({value:s}):(!S||A===s)&&n.push({value:A}),n}function SD(e,t,{horizontal:n,minRotation:r}){const i=mr(r),o=(n?Math.sin(i):Math.cos(i))||.001,a=.75*t*(""+e).length;return Math.min(t/o,a)}class VIe extends lc{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return Cn(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:o}=this;const a=l=>i=n?i:l,s=l=>o=r?o:l;if(t){const l=Lu(i),u=Lu(o);l<0&&u<0?s(0):l>0&&u>0&&a(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);s(o+l),t||a(i-l)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,a=zIe(i,o);return t.bounds==="ticks"&&vMe(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return pj(t,this.chart.options.locale,this.options.ticks.format)}}class rw extends VIe{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=rr(t)?t:0,this.max=rr(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=mr(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}rt(rw,"id","linear"),rt(rw,"defaults",{ticks:{callback:gj.formatters.numeric}});const Zv={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Fr=Object.keys(Zv);function TD(e,t){return e-t}function ED(e,t){if(Cn(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:o}=e._parseOpts;let a=t;return typeof r=="function"&&(a=r(a)),rr(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(i&&(a=i==="week"&&(il(o)||o===!0)?n.startOf(a,"isoWeek",o):n.startOf(a,i)),+a)}function OD(e,t,n,r){const i=Fr.length;for(let o=Fr.indexOf(e);o<i-1;++o){const a=Zv[Fr[o]],s=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((n-t)/(s*a.size))<=r)return Fr[o]}return Fr[i-1]}function GIe(e,t,n,r,i){for(let o=Fr.length-1;o>=Fr.indexOf(n);o--){const a=Fr[o];if(Zv[a].common&&e._adapter.diff(i,r,a)>=t-1)return a}return Fr[n?Fr.indexOf(n):0]}function qIe(e){for(let t=Fr.indexOf(e)+1,n=Fr.length;t<n;++t)if(Zv[Fr[t]].common)return Fr[t]}function PD(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=IC(n,t),o=n[r]>=t?n[r]:n[i];e[o]=!0}}function KIe(e,t,n,r){const i=e._adapter,o=+i.startOf(t[0].value,r),a=t[t.length-1].value;let s,l;for(s=o;s<=a;s=+i.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}function RD(e,t,n){const r=[],i={},o=t.length;let a,s;for(a=0;a<o;++a)s=t[a],i[s]=a,r.push({value:s,major:!1});return o===0||!n?r:KIe(e,r,i,n)}class uf extends lc{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const r=t.time||(t.time={}),i=this._adapter=new Mj._date(t.adapters.date);i.init(n),$d(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:ED(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:i,max:o,minDefined:a,maxDefined:s}=this.getUserBounds();function l(u){!a&&!isNaN(u.min)&&(i=Math.min(i,u.min)),!s&&!isNaN(u.max)&&(o=Math.max(o,u.max))}(!a||!s)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=rr(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),o=rr(o)&&!isNaN(o)?o:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,a=this.max,s=_Me(i,o,a);return this._unit=n.unit||(r.autoSkip?OD(n.minUnit,this.min,this.max,this._getLabelCapacity(o)):GIe(this,s.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:qIe(this._unit),this.initOffsets(i),t.reverse&&s.reverse(),RD(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?r=o:r=(o-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;n=Ci(n,0,a),r=Ci(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,o=i.time,a=o.unit||OD(o.minUnit,n,r,this._getLabelCapacity(n)),s=ft(i.ticks.stepSize,1),l=a==="week"?o.isoWeekday:!1,u=il(l)||l===!0,d={};let h=n,p,g;if(u&&(h=+t.startOf(h,"isoWeek",l)),h=+t.startOf(h,u?"day":a),t.diff(r,n,a)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+a);const m=i.ticks.source==="data"&&this.getDataTimestamps();for(p=h,g=0;p<r;p=+t.add(p,s,a),g++)PD(d,p,m);return(p===r||i.bounds==="ticks"||g===1)&&PD(d,p,m),Object.keys(d).sort(TD).map(y=>+y)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,o=this._unit,a=n||i[o];return this._adapter.format(t,a)}_tickFormatFunction(t,n,r,i){const o=this.options,a=o.ticks.callback;if(a)return Vt(a,[t,n,r],this);const s=o.time.displayFormats,l=this._unit,u=this._majorUnit,d=l&&s[l],h=u&&s[u],p=r[n],g=u&&h&&p&&p.major;return this._adapter.format(t,i||(g?h:d))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n<r;++n)i=t[n],i.label=this._tickFormatFunction(i.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,i=mr(this.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(i),a=Math.sin(i),s=this._resolveTickFontOptions(0).size;return{w:r*o+s*a,h:r*a+s*o}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,o=this._tickFormatFunction(t,0,RD(this,[t],this._majorUnit),i),a=this._getLabelSize(o),s=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return s>0?s:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)t=t.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)t.push(ED(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return SMe(t.sort(TD))}}rt(uf,"id","time"),rt(uf,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function Pp(e,t,n){let r=0,i=e.length-1,o,a,s,l;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=Fs(e,"pos",t)),{pos:o,time:s}=e[r],{pos:a,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=Fs(e,"time",t)),{time:o,pos:s}=e[r],{time:a,pos:l}=e[i]);const u=a-o;return u?s+(l-s)*(t-o)/u:s}class MD extends uf{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Pp(n,this.min),this._tableRange=Pp(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],o=[];let a,s,l,u,d;for(a=0,s=t.length;a<s;++a)u=t[a],u>=n&&u<=r&&i.push(u);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,s=i.length;a<s;++a)d=i[a+1],l=i[a-1],u=i[a],Math.round((d+l)/2)!==u&&o.push({time:u,pos:a/(s-1)});return o}_generate(){const t=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(t)||!r.length)&&r.splice(0,0,t),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((i,o)=>i-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(Pp(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return Pp(this._table,r*this._tableRange+this._minPos,!0)}}rt(MD,"id","timeseries"),rt(MD,"defaults",uf.defaults);const Gj="label";function AD(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function YIe(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function qj(e,t){e.labels=t}function Kj(e,t,n=Gj){const r=[];e.datasets=t.map(i=>{const o=e.datasets.find(a=>a[n]===i[n]);return!o||!i.data||r.includes(o)?{...i}:(r.push(o),Object.assign(o,i),o)})}function XIe(e,t=Gj){const n={labels:[],datasets:[]};return qj(n,e.labels),Kj(n,e.datasets,t),n}function ZIe(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:o,type:a,data:s,options:l,plugins:u=[],fallbackContent:d,updateMode:h,...p}=e,g=Rn(null),m=Rn(null),y=()=>{g.current&&(m.current=new qs(g.current,{type:a,data:XIe(s,o),options:l&&{...l},plugins:u}),AD(t,m.current))},b=()=>{AD(t,null),m.current&&(m.current.destroy(),m.current=null)};return At(()=>{!i&&m.current&&l&&YIe(m.current,l)},[i,l]),At(()=>{!i&&m.current&&qj(m.current.config.data,s.labels)},[i,s.labels]),At(()=>{!i&&m.current&&s.datasets&&Kj(m.current.config.data,s.datasets,o)},[i,s.datasets]),At(()=>{m.current&&(i?(b(),setTimeout(y)):m.current.update(h))},[i,l,s.labels,s.datasets,h]),At(()=>{m.current&&(b(),setTimeout(y))},[a]),At(()=>(y(),()=>b()),[]),_.jsx("canvas",{ref:g,role:"img",height:n,width:r,...p,children:d})}const Yj=ra(ZIe);function QIe(e,t){return qs.register(t),ra((n,r)=>_.jsx(Yj,{...n,ref:r,type:e}))}const Xj=QIe("line",mu),JIe=(e,t,n)=>({maintainAspectRatio:!1,scales:{x:{ticks:{display:!1},grid:{display:!1},type:"time",time:{unit:Gi.Hour},border:{display:!1}},y:{ticks:{display:!1},grid:{display:!1},border:{display:!1}},y1:{position:"right",title:{display:!0,text:n,font:t.typography.caption},ticks:{display:!1},grid:{display:!1},border:{display:!1}}},font:{family:t.typography.caption.fontFamily,size:12},borderColor:t.palette.primary.main,elements:{line:{borderWidth:1}},backgroundColor:RRe(e,t.palette.primary.main),plugins:{legend:{display:!1},tooltip:{enabled:!1}}});var WC={},e$e=Bt;Object.defineProperty(WC,"__esModule",{value:!0});var Zj=WC.default=void 0,t$e=e$e(Sf()),n$e=_;Zj=WC.default=(0,t$e.default)((0,n$e.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");const $0=H(o_)`
|
|
713
|
+
border-radius: 8px;
|
|
714
|
+
box-shadow: ${({theme:e})=>e.customShadows[0]};
|
|
715
|
+
cursor: pointer;
|
|
716
|
+
height: 216px;
|
|
717
|
+
padding: 16px;
|
|
718
|
+
width: 100%;
|
|
719
|
+
`,r$e=H(du)`
|
|
720
|
+
height: 144px;
|
|
721
|
+
padding: 16px;
|
|
722
|
+
width: 100%;
|
|
723
|
+
`,i$e=H(Zi)`
|
|
724
|
+
align-items: center;
|
|
725
|
+
flex-direction: row;
|
|
726
|
+
gap: 8px;
|
|
727
|
+
justify-content: space-between;
|
|
728
|
+
`,L0=H(Ye)`
|
|
729
|
+
${({theme:e})=>e.typography.subtitle2};
|
|
730
|
+
margin-bottom: 12px;
|
|
731
|
+
`,o$e=H("div")`
|
|
732
|
+
align-items: center;
|
|
733
|
+
cursor: not-allowed;
|
|
734
|
+
display: flex;
|
|
735
|
+
height: 118px;
|
|
736
|
+
flex-direction: column;
|
|
737
|
+
justify-content: center;
|
|
738
|
+
`,a$e=H(Zj)`
|
|
739
|
+
color: ${({theme:e})=>e.palette.warning.main};
|
|
740
|
+
display: block;
|
|
741
|
+
font-size: 3rem;
|
|
742
|
+
`,s$e=H(Ye)`
|
|
743
|
+
${({theme:e})=>e.typography.body2};
|
|
744
|
+
margin-top: 8px;
|
|
745
|
+
`,l$e=({endDate:e,functionName:t,interval:n,leasedSpaceName:r,onClick:i,startDate:o,subCategory:a})=>{var y;const{t:s}=yn("location"),l=or(),[u,d]=Nn(),h=JIe(u,l,t),p=Uk({endDate:e,functionName:t,interval:n,leasedSpaceName:r,startDate:o,subCategory:a}),m={datasets:MRe(l,(y=p.data)==null?void 0:y.portalTrendData,{options:{fill:!0,pointStyle:!1}})};return p.isLoading?_.jsxs($0,{children:[_.jsx(L0,{children:a}),_.jsx(r$e,{variant:"rectangular"})]}):p.isError?_.jsxs($0,{children:[_.jsx(L0,{children:a}),_.jsxs(o$e,{children:[_.jsx(a$e,{}),_.jsx(s$e,{children:s("dcim-chart.load-fail.title")})]})]}):_.jsxs($0,{onClick:i,children:[_.jsx(L0,{children:a}),_.jsx(i$e,{children:m&&_.jsx(Xj,{ref:d,options:h,data:m,width:"100%"})})]})},u$e=e=>{const{assetName:t,endDate:n,functionName:r,interval:i,leasedSpaceName:o,sitecode:a,startDate:s,subCategory:l,tdcid:u}=e;return`/chart/?${[`assetName=${t}`,`endDate=${n.toISOString()}`,`functionName=${encodeURIComponent(r)}`,`interval=${i}`,`leasedSpaceName=${o}`,`sitecode=${a}`,`startDate=${s.toISOString()}`,`subCategory=${l}`,`tdcid=${u}`].join("&")}`},c$e=({assetName:e,endDate:t,interval:n,leasedSpaceName:r,metadata:i,metadataIsLoading:o,metadataIsFetching:a,sitecode:s,startDate:l})=>{const u=Cm();if(o||a)return _.jsx(FRe,{children:_.jsx(Lne,{})});const d=(i||[]).sort((h,p)=>h.displayOrder-p.displayOrder);return _.jsx(_.Fragment,{children:d.map(h=>{const p=`${h.tdcid}-${h.subCategory}-${h.defaultFunctionAliasName}`,g={assetName:e,endDate:t,functionName:h.defaultFunctionAliasName,interval:n,leasedSpaceName:r,sitecode:s,startDate:l,subCategory:h.subCategory,tdcid:h.tdcid};return _.jsx(Bn,{item:!0,xs:12,sm:6,lg:4,xl:3,children:_.jsx(l$e,{endDate:t.toISOString(),functionName:h.defaultFunctionAliasName,interval:n,leasedSpaceName:r,onClick:()=>{const m=u$e(g);u(`${m}`)},startDate:l.toISOString(),subCategory:h.subCategory,tdcid:h.tdcid})},p)})})},d$e=({assetName:e,leasedSpaceName:t,date:n,sitecode:r})=>{const i=Cm(),{t:o}=yn("location"),a=She(n),s=hce(a,{days:7}),l=a,u=Wk(t,{enabled:!!r&&!!e});return _.jsxs(O_,{children:[_.jsx(R_,{assetName:e,sitecode:r}),_.jsxs(P_,{container:!0,spacing:{xs:2.5,md:3},children:[_.jsx(Bn,{item:!0,xs:12,md:12,lg:12,xl:3,children:_.jsx(X_,{disableOptionAll:!0,filters:{type:Du},handleFilters:(d,h)=>{const p=`/alert?assetName=${e}&sitecode=${r}&leasedSpaceName=${t}&type=${h}`;i(p)},leasedSpaceName:t,title:o("alerts.title")})}),_.jsx(Bn,{item:!0,xs:12,md:12,lg:12,xl:9,children:_.jsxs(Tn,{children:[_.jsxs(E2,{children:[_.jsx(Ye,{variant:"h6",children:o("title")}),_.jsx(Ye,{variant:"body2",children:o("subtitle")})]}),_.jsx(O2,{container:!0,spacing:{xs:2,md:3},children:_.jsx(c$e,{assetName:e,endDate:l,interval:Gi.Hour,leasedSpaceName:t,metadata:u.data,metadataIsLoading:u.isLoading,metadataIsFetching:u.isFetching,sitecode:r,startDate:s})})]})})]})]})};function f$e(e){return typeof e=="string"}function h$e(e,t,n){return e===void 0||f$e(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function DD(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const p$e={disableDefaultClasses:!1},g$e=P.createContext(p$e);function Qv(e){const{disableDefaultClasses:t}=P.useContext(g$e);return n=>t?"":e(n)}function ju(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function m$e(e,t,n){return typeof e=="function"?e(t,n):e}function v$e(e){const{rootElementName:t=""}=e,[n,r]=P.useState(t.toUpperCase()),i=P.useCallback(o=>{r((o==null?void 0:o.tagName)??"")},[]);return[n,i]}const y$e=typeof window<"u"?P.useLayoutEffect:P.useEffect;let ID=0;function b$e(e){const[t,n]=P.useState(e),r=e||t;return P.useEffect(()=>{t==null&&(ID+=1,n(`mui-${ID}`))},[t]),r}const x$e={...P},$D=x$e.useId;function Qj(e){if($D!==void 0){const t=$D();return e??t}return b$e(e)}function w$e({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=P.useRef(e!==void 0),[o,a]=P.useState(t),s=i?e:o,l=P.useCallback(u=>{i||a(u)},[]);return[s,l]}function uc(...e){const t=P.useRef(void 0),n=P.useCallback(r=>{const i=e.map(o=>{if(o==null)return null;if(typeof o=="function"){const a=o,s=a(r);return typeof s=="function"?s:()=>{a(null)}}return o.current=r,()=>{o.current=null}});return()=>{i.forEach(o=>o==null?void 0:o())}},e);return P.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}class HC{constructor(){rt(this,"currentId",null);rt(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});rt(this,"disposeEffect",()=>this.clear)}static create(){return new HC}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}let Jv=!0,iw=!1;const _$e=new HC,C$e={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function S$e(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&C$e[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function T$e(e){e.metaKey||e.altKey||e.ctrlKey||(Jv=!0)}function k0(){Jv=!1}function E$e(){this.visibilityState==="hidden"&&iw&&(Jv=!0)}function O$e(e){e.addEventListener("keydown",T$e,!0),e.addEventListener("mousedown",k0,!0),e.addEventListener("pointerdown",k0,!0),e.addEventListener("touchstart",k0,!0),e.addEventListener("visibilitychange",E$e,!0)}function P$e(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Jv||S$e(t)}function R$e(){const e=P.useCallback(i=>{i!=null&&O$e(i.ownerDocument)},[]),t=P.useRef(!1);function n(){return t.current?(iw=!0,_$e.start(100,()=>{iw=!1}),t.current=!1,!0):!1}function r(i){return P$e(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function ey(e,t,n=void 0){const r={};for(const i in e){const o=e[i];let a="",s=!0;for(let l=0;l<o.length;l+=1){const u=o[l];u&&(a+=(s===!0?"":" ")+t(u),s=!1,n&&n[u]&&(a+=" "+n[u]))}r[i]=a}return r}const M$e={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function LD(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function A$e(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const g=Pe(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),m={...n==null?void 0:n.style,...i==null?void 0:i.style,...r==null?void 0:r.style},y={...n,...i,...r};return g.length>0&&(y.className=g),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:void 0}}const a=ju({...i,...r}),s=LD(r),l=LD(i),u=t(a),d=Pe(u==null?void 0:u.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),h={...u==null?void 0:u.style,...n==null?void 0:n.style,...i==null?void 0:i.style,...r==null?void 0:r.style},p={...u,...n,...l,...s};return d.length>0&&(p.className=d),Object.keys(h).length>0&&(p.style=h),{props:p,internalRef:u.ref}}function ty(e){var h;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...o}=e,a=i?{}:m$e(n,r),{props:s,internalRef:l}=A$e({...o,externalSlotProps:a}),u=uc(l,a==null?void 0:a.ref,(h=e.additionalProps)==null?void 0:h.ref);return h$e(t,{...s,ref:u},r)}const Jj="base";function D$e(e){return`${Jj}--${e}`}function I$e(e,t){return`${Jj}-${e}-${t}`}function Gf(e,t){const n=M$e[t];return n?D$e(n):I$e(e,t)}function ny(e,t){const n={};return t.forEach(r=>{n[r]=Gf(e,r)}),n}function $$e(e={}){const{disabled:t=!1,focusableWhenDisabled:n,href:r,rootRef:i,tabIndex:o,to:a,type:s,rootElementName:l}=e,u=P.useRef(),[d,h]=P.useState(!1),{isFocusVisibleRef:p,onFocus:g,onBlur:m,ref:y}=R$e(),[b,x]=P.useState(!1);t&&!n&&b&&x(!1),P.useEffect(()=>{p.current=b},[b,p]);const[S,w]=v$e({rootElementName:l??(r||a?"a":void 0)}),C=F=>j=>{var K;b&&j.preventDefault(),(K=F.onMouseLeave)==null||K.call(F,j)},R=F=>j=>{var K;m(j),p.current===!1&&x(!1),(K=F.onBlur)==null||K.call(F,j)},O=F=>j=>{var K,V;u.current||(u.current=j.currentTarget),g(j),p.current===!0&&(x(!0),(K=F.onFocusVisible)==null||K.call(F,j)),(V=F.onFocus)==null||V.call(F,j)},T=()=>{const F=u.current;return S==="BUTTON"||S==="INPUT"&&["button","submit","reset"].includes(F==null?void 0:F.type)||S==="A"&&(F==null?void 0:F.href)},A=F=>j=>{var K;t||(K=F.onClick)==null||K.call(F,j)},L=F=>j=>{var K;t||(h(!0),document.addEventListener("mouseup",()=>{h(!1)},{once:!0})),(K=F.onMouseDown)==null||K.call(F,j)},I=F=>j=>{var K,V;(K=F.onKeyDown)==null||K.call(F,j),!j.defaultMuiPrevented&&(j.target===j.currentTarget&&!T()&&j.key===" "&&j.preventDefault(),j.target===j.currentTarget&&j.key===" "&&!t&&h(!0),j.target===j.currentTarget&&!T()&&j.key==="Enter"&&!t&&((V=F.onClick)==null||V.call(F,j),j.preventDefault()))},N=F=>j=>{var K,V;j.target===j.currentTarget&&h(!1),(K=F.onKeyUp)==null||K.call(F,j),j.target===j.currentTarget&&!T()&&!t&&j.key===" "&&!j.defaultMuiPrevented&&((V=F.onClick)==null||V.call(F,j))},B=uc(w,i,y,u),U={};return o!==void 0&&(U.tabIndex=o),S==="BUTTON"?(U.type=s??"button",n?U["aria-disabled"]=t:U.disabled=t):S==="INPUT"?s&&["button","submit","reset"].includes(s)&&(n?U["aria-disabled"]=t:U.disabled=t):S!==""&&(!r&&!a&&(U.role="button",U.tabIndex=o??0),t&&(U["aria-disabled"]=t,U.tabIndex=n?o??0:-1)),{getRootProps:(F={})=>{const j={...ju(e),...ju(F)},K={type:s,...j,...U,...F,onBlur:R(j),onClick:A(j),onFocus:O(j),onKeyDown:I(j),onKeyUp:N(j),onMouseDown:L(j),onMouseLeave:C(j),ref:B};return delete K.onFocusVisible,K},focusVisible:b,setFocusVisible:x,active:d,rootRef:B}}function L$e(e,t){return e===t}const N0={},kD=()=>{};function ow(e,t){const n={...e};return Object.keys(t).forEach(r=>{t[r]!==void 0&&(n[r]=t[r])}),n}function k$e(e){const{nextState:t,initialState:n,stateComparers:r,onStateChange:i,controlledProps:o,lastActionRef:a}=e,s=P.useRef(n);P.useEffect(()=>{if(a.current===null)return;const l=ow(s.current,o);Object.keys(t).forEach(u=>{const d=r[u]??L$e,h=t[u],p=l[u];(p==null&&h!=null||p!=null&&h==null||p!=null&&h!=null&&!d(h,p))&&(i==null||i(a.current.event??null,u,h,a.current.type??"",t))}),s.current=t,a.current=null},[s,t,a,i,r,o])}function N$e(e){const t=P.useRef(null),{reducer:n,initialState:r,controlledProps:i=N0,stateComparers:o=N0,onStateChange:a=kD,actionContext:s}=e;P.useRef(i);const l=P.useCallback((p,g)=>{t.current=g;const m=ow(p,i);return n(m,g)},[i,n]),[u,d]=P.useReducer(l,r),h=P.useCallback(p=>{d({...p,context:s})},[s]);return k$e({nextState:u,initialState:r,stateComparers:o??N0,onStateChange:a??kD,controlledProps:i,lastActionRef:t}),[ow(u,i),h]}const Jn={blur:"list:blur",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",highlightLast:"list:highlightLast",textNavigation:"list:textNavigation",clearSelection:"list:clearSelection"};function F$e(e,t,n,r,i,o){if(n.length===0||!r&&n.every((s,l)=>i(s,l)))return-1;let a=e;for(;;){if(!o&&t==="next"&&a===n.length||!o&&t==="previous"&&a===-1)return-1;if(r?!1:i(n[a],a))a+=t==="next"?1:-1,o&&(a=(a+n.length)%n.length);else return a}}function Cr(e,t,n){const{items:r,isItemDisabled:i,disableListWrap:o,disabledItemsFocusable:a,itemComparer:s,focusManagement:l}=n,u=l==="DOM"?0:-1,d=r.length-1,h=e==null?-1:r.findIndex(b=>s(b,e));let p,g,m=!o;switch(t){case"reset":if(u===-1)return null;p=0,g="next",m=!1;break;case"start":p=0,g="next",m=!1;break;case"end":p=d,g="previous",m=!1;break;default:{const b=h+t;b<0?!m&&h!==-1||Math.abs(t)>1?(p=0,g="next"):(p=d,g="previous"):b>d?!m||Math.abs(t)>1?(p=d,g="previous"):(p=0,g="next"):(p=b,g=t>=0?"next":"previous")}}const y=F$e(p,g,r,a,i,m);return y===-1&&e!==null&&!i(e,h)?e:r[y]??null}function j$e(e,t,n,r){return n==="none"?[]:n==="single"?r(t[0],e)?t:[e]:t.some(i=>r(i,e))?t.filter(i=>!r(i,e)):[...t,e]}function eB(e,t,n){const{itemComparer:r,isItemDisabled:i,selectionMode:o,items:a}=n,{selectedValues:s}=t,l=a.findIndex(d=>r(e,d));if(i(e,l))return t;const u=j$e(e,s,o,r);return{...t,selectedValues:u,highlightedValue:e}}function B$e(e,t,n){const r=t.highlightedValue,{orientation:i,pageSize:o}=n;switch(e){case"Home":return{...t,highlightedValue:Cr(r,"start",n)};case"End":return{...t,highlightedValue:Cr(r,"end",n)};case"PageUp":return{...t,highlightedValue:Cr(r,-o,n)};case"PageDown":return{...t,highlightedValue:Cr(r,o,n)};case"ArrowUp":if(i!=="vertical")break;return{...t,highlightedValue:Cr(r,-1,n)};case"ArrowDown":if(i!=="vertical")break;return{...t,highlightedValue:Cr(r,1,n)};case"ArrowLeft":{if(i==="vertical")break;return{...t,highlightedValue:Cr(r,i==="horizontal-ltr"?-1:1,n)}}case"ArrowRight":{if(i==="vertical")break;return{...t,highlightedValue:Cr(r,i==="horizontal-ltr"?1:-1,n)}}case"Enter":case" ":return t.highlightedValue===null?t:eB(t.highlightedValue,t,n)}return t}function U$e(e,t){return t.focusManagement==="DOM"?e:{...e,highlightedValue:null}}function W$e(e,t,n){var i;const r=(i=n(e))==null?void 0:i.trim().toLowerCase();return!r||r.length===0?!1:r.indexOf(t)===0}function H$e(e,t,n){const{items:r,isItemDisabled:i,disabledItemsFocusable:o,getItemAsString:a}=n,s=t.length>1;let l=s?e.highlightedValue:Cr(e.highlightedValue,1,n);for(let u=0;u<r.length;u+=1){if(!l||!s&&e.highlightedValue===l)return e;if(W$e(l,t,a)&&(!i(l,r.indexOf(l))||o))return{...e,highlightedValue:l};l=Cr(l,1,n)}return e}function z$e(e,t,n,r){const{itemComparer:i,focusManagement:o}=r;let a=null;n.highlightedValue!=null?a=e.find(u=>i(u,n.highlightedValue))??null:o==="DOM"&&t.length===0&&(a=Cr(null,"reset",r));const l=(n.selectedValues??[]).filter(u=>e.some(d=>i(d,u)));return{...n,highlightedValue:a,selectedValues:l}}function V$e(e,t){return{...e,highlightedValue:Cr(null,"reset",t)}}function G$e(e,t){return{...e,highlightedValue:Cr(null,"end",t)}}function q$e(e,t){return{...e,selectedValues:[],highlightedValue:Cr(null,"reset",t)}}function tB(e,t){const{type:n,context:r}=t;switch(n){case Jn.keyDown:return B$e(t.key,e,r);case Jn.itemClick:return eB(t.item,e,r);case Jn.blur:return U$e(e,r);case Jn.textNavigation:return H$e(e,t.searchString,r);case Jn.itemsChange:return z$e(t.items,t.previousItems,e,r);case Jn.resetHighlight:return V$e(e,r);case Jn.highlightLast:return G$e(e,r);case Jn.clearSelection:return q$e(e,r);default:return e}}const K$e=500;function Y$e(e){const t=P.useRef({searchString:"",lastTime:null});return P.useCallback(n=>{if(n.key.length===1&&n.key!==" "){const r=t.current,i=n.key.toLowerCase(),o=performance.now();r.searchString.length>0&&r.lastTime&&o-r.lastTime>K$e?r.searchString=i:(r.searchString.length!==1||i!==r.searchString)&&(r.searchString+=i),r.lastTime=o,e(r.searchString,n)}},[e])}const ND={},X$e=()=>{},Z$e=(e,t)=>e===t,Q$e=()=>!1,J$e=e=>typeof e=="string"?e:String(e),eLe=()=>({highlightedValue:null,selectedValues:[]});function tLe(e){const{controlledProps:t=ND,disabledItemsFocusable:n=!1,disableListWrap:r=!1,focusManagement:i="activeDescendant",getInitialState:o=eLe,getItemDomElement:a,getItemId:s,isItemDisabled:l=Q$e,rootRef:u,onStateChange:d=X$e,items:h,itemComparer:p=Z$e,getItemAsString:g=J$e,onChange:m,onHighlightChange:y,onItemsChange:b,orientation:x="vertical",pageSize:S=5,reducerActionContext:w=ND,selectionMode:C="single",stateReducer:R,componentName:O="useList"}=e,T=P.useRef(null),A=uc(u,T),L=P.useCallback((we,fe,ue)=>{var Ne;y==null||y(we,fe,ue),i==="DOM"&&fe!=null&&(ue===Jn.itemClick||ue===Jn.keyDown||ue===Jn.textNavigation)&&((Ne=a==null?void 0:a(fe))==null||Ne.focus())},[a,y,i]),I=P.useMemo(()=>({highlightedValue:p,selectedValues:(we,fe)=>DD(we,fe,p)}),[p]),N=P.useCallback((we,fe,ue,Ne,We)=>{switch(d==null||d(we,fe,ue,Ne,We),fe){case"highlightedValue":L(we,ue,Ne);break;case"selectedValues":m==null||m(we,ue,Ne);break}},[L,m,d]),B=P.useMemo(()=>({disabledItemsFocusable:n,disableListWrap:r,focusManagement:i,isItemDisabled:l,itemComparer:p,items:h,getItemAsString:g,onHighlightChange:L,orientation:x,pageSize:S,selectionMode:C,stateComparers:I}),[n,r,i,l,p,h,g,L,x,S,C,I]),U=o(),z=R??tB,F=P.useMemo(()=>({...w,...B}),[w,B]),[j,K]=N$e({reducer:z,actionContext:F,initialState:U,controlledProps:t,stateComparers:I,onStateChange:N}),{highlightedValue:V,selectedValues:J}=j,oe=Y$e((we,fe)=>K({type:Jn.textNavigation,event:fe,searchString:we})),ce=P.useRef([]);P.useEffect(()=>{DD(ce.current,h,p)||(K({type:Jn.itemsChange,event:null,items:h,previousItems:ce.current}),ce.current=h,b==null||b(h))},[h,p,K,b]);const le=we=>fe=>{var Ne;if((Ne=we.onKeyDown)==null||Ne.call(we,fe),fe.defaultMuiPrevented)return;const ue=["Home","End","PageUp","PageDown"];x==="vertical"?ue.push("ArrowUp","ArrowDown"):ue.push("ArrowLeft","ArrowRight"),i==="activeDescendant"&&ue.push(" ","Enter"),ue.includes(fe.key)&&fe.preventDefault(),K({type:Jn.keyDown,key:fe.key,event:fe}),oe(fe)},Me=we=>fe=>{var ue,Ne;(ue=we.onBlur)==null||ue.call(we,fe),!fe.defaultMuiPrevented&&((Ne=T.current)!=null&&Ne.contains(fe.relatedTarget)||K({type:Jn.blur,event:fe}))},ve=(we={})=>{const fe=ju(we);return{...we,"aria-activedescendant":i==="activeDescendant"&&V!=null?s(V):void 0,tabIndex:i==="DOM"?-1:0,ref:A,...fe,onBlur:Me(fe),onKeyDown:le(fe)}},ye=P.useCallback(we=>{const fe=(J??[]).some(We=>We!=null&&p(we,We)),ue=V!=null&&p(we,V);return{focusable:i==="DOM",highlighted:ue,selected:fe}},[p,J,V,i]),Ce=P.useMemo(()=>({dispatch:K,getItemState:ye}),[K,ye]);return P.useDebugValue({state:j}),{contextValue:Ce,dispatch:K,getRootProps:ve,rootRef:A,state:j}}const nB=P.createContext(null);function nLe(e){const{handlePointerOverEvents:t=!1,item:n}=e,r=P.useContext(nB);if(!r)throw new Error("useListItem must be used within a ListProvider");const{dispatch:i,getItemState:o}=r,{highlighted:a,selected:s,focusable:l}=o(n),u=P.useCallback(g=>m=>{var y;(y=g.onClick)==null||y.call(g,m),!m.defaultPrevented&&i({type:Jn.itemClick,item:n,event:m})},[i,n]),d=P.useCallback(g=>m=>{var y;(y=g.onMouseOver)==null||y.call(g,m),!m.defaultPrevented&&i({type:Jn.itemHover,item:n,event:m})},[i,n]);let h;return l&&(h=a?0:-1),{getRootProps:(g={})=>{const m=ju(g);return{...g,onClick:u(m),onPointerOver:t?d(m):void 0,tabIndex:h}},highlighted:a,selected:s}}const zC=P.createContext(null);function rLe(e){const t=Array.from(e.keys()).map(n=>{const r=e.get(n);return{key:n,subitem:r}});return t.sort((n,r)=>{const i=n.subitem.ref.current,o=r.subitem.ref.current;return i===null||o===null||i===o?0:i.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(t.map(n=>[n.key,n.subitem]))}function rB(){const[e,t]=P.useState(new Map),n=P.useRef(new Set),r=P.useCallback(function(u){n.current.delete(u),t(d=>{const h=new Map(d);return h.delete(u),h})},[]),i=P.useCallback(function(u,d){let h;return typeof u=="function"?h=u(n.current):h=u,n.current.add(h),t(p=>{const g=new Map(p);return g.set(h,d),g}),{id:h,deregister:()=>r(h)}},[r]),o=P.useMemo(()=>rLe(e),[e]),a=P.useCallback(function(u){return Array.from(o.keys()).indexOf(u)},[o]);return{contextValue:P.useMemo(()=>({getItemIndex:a,registerItem:i,totalSubitemCount:e.size}),[a,i,e.size]),subitems:o}}function iB(e,t){const n=P.useContext(zC);if(n===null)throw new Error("useCompoundItem must be used within a useCompoundParent");const{registerItem:r}=n,[i,o]=P.useState(typeof e=="function"?void 0:e);return y$e(()=>{const{id:a,deregister:s}=r(e,t);return o(a),s},[r,t,e]),{id:i,index:i!==void 0?n.getItemIndex(i):-1,totalItemCount:n.totalSubitemCount}}function iLe(e,t){return function(r={}){const i={...r,...e(r)};return{...i,...t(i)}}}const oB="TabPanel";function oLe(e){return Gf(oB,e)}ny(oB,["root","hidden"]);const aB="Tabs";function aLe(e){return Gf(aB,e)}ny(aB,["root","horizontal","vertical"]);function sLe(e){const{value:t,defaultValue:n,onChange:r,orientation:i="horizontal",direction:o="ltr",selectionFollowsFocus:a=!1}=e,[s,l]=w$e({controlled:t,default:n,name:"Tabs",state:"value"}),u=P.useCallback((b,x)=>{l(x),r==null||r(b,x)},[r,l]),{subitems:d,contextValue:h}=rB(),p=P.useRef(()=>{}),g=P.useCallback(b=>{var x;return(x=d.get(b))==null?void 0:x.id},[d]),m=P.useCallback(b=>p.current(b),[]),y=P.useCallback(b=>{p.current=b},[]);return{contextValue:{direction:o,getTabId:m,getTabPanelId:g,onSelected:u,orientation:i,registerTabIdLookup:y,selectionFollowsFocus:a,value:s,...h}}}const sB=P.createContext(null);function VC(){const e=P.useContext(sB);if(e==null)throw new Error("No TabsContext provided");return e}function lLe(e){const{value:t,children:n}=e,{direction:r,getItemIndex:i,onSelected:o,orientation:a,registerItem:s,registerTabIdLookup:l,selectionFollowsFocus:u,totalSubitemCount:d,value:h,getTabId:p,getTabPanelId:g}=t,m=P.useMemo(()=>({getItemIndex:i,registerItem:s,totalSubitemCount:d}),[s,i,d]),y=P.useMemo(()=>({direction:r,getTabId:p,getTabPanelId:g,onSelected:o,orientation:a,registerTabIdLookup:l,selectionFollowsFocus:u,value:h}),[r,p,g,o,a,l,u,h]);return _.jsx(zC.Provider,{value:m,children:_.jsx(sB.Provider,{value:y,children:n})})}const uLe=e=>{const{orientation:t}=e;return ey({root:["root",t]},Qv(aLe))},cLe=P.forwardRef(function(t,n){const{children:r,value:i,defaultValue:o,orientation:a="horizontal",direction:s="ltr",onChange:l,selectionFollowsFocus:u,slotProps:d={},slots:h={},...p}=t,g={...t,orientation:a,direction:s},{contextValue:m}=sLe(g),y=uLe(g),b=h.root??"div",x=ty({elementType:b,externalSlotProps:d.root,externalForwardedProps:p,additionalProps:{ref:n},ownerState:g,className:y.root});return _.jsx(b,{...x,children:_.jsx(lLe,{value:m,children:r})})});function dLe(e){return e.size}function fLe(e){const{value:t,id:n,rootRef:r}=e,i=VC();if(i===null)throw new Error("No TabContext provided");const{value:o,getTabId:a}=i,s=Qj(n),l=P.useRef(null),u=uc(l,r),d=P.useMemo(()=>({id:s,ref:l}),[s]),{id:h}=iB(t??dLe,d),p=h!==o,g=h!==void 0?a(h):void 0;return{hidden:p,getRootProps:(y={})=>({"aria-labelledby":g??void 0,hidden:p,id:s??void 0,...y,ref:u}),rootRef:u}}const hLe=e=>{const{hidden:t}=e;return ey({root:["root",t&&"hidden"]},Qv(oLe))},FD=P.forwardRef(function(t,n){const{children:r,value:i,slotProps:o={},slots:a={},...s}=t,{hidden:l,getRootProps:u}=fLe(t),d={...t,hidden:l},h=hLe(d),p=a.root??"div",g=ty({elementType:p,getSlotProps:u,externalSlotProps:o.root,externalForwardedProps:s,additionalProps:{role:"tabpanel",ref:n},ownerState:d,className:h.root});return _.jsx(p,{...g,children:!l&&r})}),lB="TabsList";function pLe(e){return Gf(lB,e)}ny(lB,["root","horizontal","vertical"]);const uB={valueChange:"valueChange"};function gLe(e,t){if(t.type===uB.valueChange)return{...e,highlightedValue:t.value};const n=tB(e,t),{context:{selectionFollowsFocus:r}}=t;if(t.type===Jn.itemsChange){if(n.selectedValues.length>0)return{...n,highlightedValue:n.selectedValues[0]};Cr(null,"reset",t.context)}return r&&n.highlightedValue!=null?{...n,selectedValues:[n.highlightedValue]}:n}function mLe(e){const{rootRef:t}=e,{direction:n="ltr",onSelected:r,orientation:i="horizontal",value:o,registerTabIdLookup:a,selectionFollowsFocus:s}=VC(),{subitems:l,contextValue:u}=rB(),d=P.useCallback(I=>{var N;return(N=l.get(I))==null?void 0:N.id},[l]);a(d);const h=P.useMemo(()=>Array.from(l.keys()),[l]),p=P.useCallback(I=>{var N;return I==null?null:((N=l.get(I))==null?void 0:N.ref.current)??null},[l]),g=n==="rtl";let m;i==="vertical"?m="vertical":m=g?"horizontal-rtl":"horizontal-ltr";const y=P.useCallback((I,N)=>{r(I,N[0]??null)},[r]),b=P.useMemo(()=>o===void 0?{}:o!=null?{selectedValues:[o]}:{selectedValues:[]},[o]),x=P.useCallback(I=>{var N;return((N=l.get(I))==null?void 0:N.disabled)??!1},[l]),{contextValue:S,dispatch:w,getRootProps:C,state:{highlightedValue:R,selectedValues:O},rootRef:T}=tLe({controlledProps:b,disabledItemsFocusable:!s,focusManagement:"DOM",getItemDomElement:p,isItemDisabled:x,items:h,rootRef:t,onChange:y,orientation:m,reducerActionContext:P.useMemo(()=>({selectionFollowsFocus:s||!1}),[s]),selectionMode:"single",stateReducer:gLe});P.useEffect(()=>{o!==void 0&&o!=null&&w({type:uB.valueChange,value:o})},[w,o]);const A=(I={})=>({...I,...C(I),"aria-orientation":i==="vertical"?"vertical":void 0,role:"tablist"});return{contextValue:P.useMemo(()=>({...u,...S}),[u,S]),dispatch:w,getRootProps:A,highlightedValue:R,isRtl:g,orientation:i,rootRef:T,selectedValue:O[0]??null}}function vLe(e){const{value:t,children:n}=e,{dispatch:r,getItemIndex:i,getItemState:o,registerItem:a,totalSubitemCount:s}=t,l=P.useMemo(()=>({dispatch:r,getItemState:o,getItemIndex:i}),[r,i,o]),u=P.useMemo(()=>({getItemIndex:i,registerItem:a,totalSubitemCount:s}),[a,i,s]);return _.jsx(zC.Provider,{value:u,children:_.jsx(nB.Provider,{value:l,children:n})})}const yLe=e=>{const{orientation:t}=e;return ey({root:["root",t]},Qv(pLe))},bLe=P.forwardRef(function(t,n){const{children:r,slotProps:i={},slots:o={},...a}=t,{isRtl:s,orientation:l,getRootProps:u,contextValue:d}=mLe({rootRef:n}),h={...t,isRtl:s,orientation:l},p=yLe(h),g=o.root??"div",m=ty({elementType:g,getSlotProps:u,externalSlotProps:i.root,externalForwardedProps:a,ownerState:h,className:p.root});return _.jsx(vLe,{value:d,children:_.jsx(g,{...m,children:r})})}),cB="Tab";function xLe(e){return Gf(cB,e)}ny(cB,["root","selected","disabled"]);function wLe(e){return e.size}function _Le(e){const{value:t,rootRef:n,disabled:r=!1,id:i}=e,o=P.useRef(null),a=Qj(i),{value:s,selectionFollowsFocus:l,getTabPanelId:u}=VC(),d=P.useMemo(()=>({disabled:r,ref:o,id:a}),[r,o,a]),{id:h,index:p,totalItemCount:g}=iB(t??wLe,d),{getRootProps:m,highlighted:y,selected:b}=nLe({item:h}),{getRootProps:x,rootRef:S,active:w,focusVisible:C,setFocusVisible:R}=$$e({disabled:r,focusableWhenDisabled:!l,type:"button"}),O=uc(o,n,S),T=h!==void 0?u(h):void 0;return{getRootProps:(L={})=>{const I=ju(L),N=iLe(m,x);return{...L,...N(I),role:"tab","aria-controls":T,"aria-selected":b,id:a,ref:O}},active:w,focusVisible:C,highlighted:y,index:p,rootRef:O,selected:b||h===s,setFocusVisible:R,totalTabsCount:g}}const CLe=e=>{const{selected:t,disabled:n}=e;return ey({root:["root",t&&"selected",n&&"disabled"]},Qv(xLe))},SLe=P.forwardRef(function(t,n){const{action:r,children:i,disabled:o=!1,onChange:a,onClick:s,onFocus:l,slotProps:u={},slots:d={},value:h,...p}=t,g=P.useRef(),m=uc(g,n),{active:y,highlighted:b,selected:x,getRootProps:S}=_Le({...t,rootRef:m,value:h}),w={...t,active:y,disabled:o,highlighted:b,selected:x},C=CLe(w),R=d.root??"button",O=ty({elementType:R,getSlotProps:S,externalSlotProps:u.root,externalForwardedProps:p,additionalProps:{ref:n},ownerState:w,className:C.root});return _.jsx(R,{...O,children:i})}),TLe={dayOfMonth:"d",fullDate:"PP",fullDateWithWeekday:"PPPP",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aaa",fullDateTime24h:"PP HH:mm",fullTime:"p",fullTime12h:"hh:mm aaa",fullTime24h:"HH:mm",hours12h:"hh",hours24h:"HH",keyboardDate:"P",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aaa",keyboardDateTime24h:"P HH:mm",minutes:"mm",month:"LLLL",monthAndDate:"MMMM d",monthAndYear:"LLLL yyyy",monthShort:"MMM",weekday:"EEEE",weekdayShort:"EEE",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",seconds:"ss",shortDate:"MMM d",year:"yyyy"};class ELe{constructor({locale:t,formats:n}={}){this.lib="date-fns",this.is12HourCycleInCurrentLocale=()=>{var r;return this.locale?/a/.test((r=this.locale.formatLong)===null||r===void 0?void 0:r.time()):!0},this.getFormatHelperText=r=>{var i,o;const a=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,s=this.locale||Zu;return(o=(i=r.match(a))===null||i===void 0?void 0:i.map(l=>{const u=l[0];if(u==="p"||u==="P"){const d=tN[u];return d(l,s.formatLong,{})}return l}).join("").replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase())!==null&&o!==void 0?o:r},this.parseISO=r=>Ai(r),this.toISO=r=>$le(r,{format:"extended"}),this.getCurrentLocaleCode=()=>{var r;return((r=this.locale)===null||r===void 0?void 0:r.code)||"en-US"},this.addSeconds=(r,i)=>A2(r,i),this.addMinutes=(r,i)=>M2(r,i),this.addHours=(r,i)=>R2(r,i),this.addDays=(r,i)=>Jd(r,i),this.addWeeks=(r,i)=>D2(r,i),this.addMonths=(r,i)=>zs(r,i),this.addYears=(r,i)=>wx(r,i),this.isValid=r=>Rf(this.date(r)),this.getDiff=(r,i,o)=>{var a;const s=(a=this.date(i))!==null&&a!==void 0?a:r;if(!this.isValid(s))return 0;switch(o){case"years":return B2(r,s);case"quarters":return N2(r,s);case"months":return D_(r,s);case"weeks":return j2(r,s);case"days":return A_(r,s);case"hours":return L2(r,s);case"minutes":return k2(r,s);case"seconds":return F2(r,s);default:return Mf(r,s)}},this.isAfter=(r,i)=>tp(r,i),this.isBefore=(r,i)=>Yl(r,i),this.startOfDay=r=>na(r),this.endOfDay=r=>Ru(r),this.getHours=r=>Nle(r),this.setHours=(r,i)=>lce(r,i),this.setMinutes=(r,i)=>uce(r,i),this.getSeconds=r=>Ble(r),this.setSeconds=(r,i)=>cce(r,i),this.isSameDay=(r,i)=>I2(r,i),this.isSameMonth=(r,i)=>Bue(r,i),this.isSameYear=(r,i)=>Wue(r,i),this.isSameHour=(r,i)=>jue(r,i),this.startOfYear=r=>cd(r),this.endOfYear=r=>Kp(r),this.startOfMonth=r=>ud(r),this.endOfMonth=r=>Bg(r),this.startOfWeek=r=>Ad(r,{locale:this.locale}),this.endOfWeek=r=>Yp(r,{locale:this.locale}),this.getYear=r=>Ule(r),this.setYear=(r,i)=>dce(r,i),this.date=r=>typeof r>"u"?new Date:r===null?null:new Date(r),this.toJsDate=r=>r,this.parse=(r,i)=>r===""?null:N_(r,i,new Date,{locale:this.locale}),this.format=(r,i)=>this.formatByString(r,this.formats[i]),this.formatByString=(r,i)=>Df(r,i,{locale:this.locale}),this.isEqual=(r,i)=>r===null&&i===null?!0:Wle(r,i),this.isNull=r=>r===null,this.isAfterDay=(r,i)=>tp(r,Ru(i)),this.isBeforeDay=(r,i)=>Yl(r,na(i)),this.isBeforeYear=(r,i)=>Yl(r,cd(i)),this.isAfterYear=(r,i)=>tp(r,Kp(i)),this.isWithinRange=(r,[i,o])=>Hue(r,{start:i,end:o}),this.formatNumber=r=>r,this.getMinutes=r=>Fle(r),this.getDate=r=>Lle(r),this.setDate=(r,i)=>sce(r,i),this.getMonth=r=>jle(r),this.getDaysInMonth=r=>K2(r),this.setMonth=(r,i)=>ace(r,i),this.getMeridiemText=r=>r==="am"?"AM":"PM",this.getNextMonth=r=>zs(r,1),this.getPreviousMonth=r=>zs(r,-1),this.getMonthArray=r=>{const o=[cd(r)];for(;o.length<12;){const a=o[o.length-1];o.push(this.getNextMonth(a))}return o},this.mergeDateAndTime=(r,i)=>this.setSeconds(this.setMinutes(this.setHours(r,this.getHours(i)),this.getMinutes(i)),this.getSeconds(i)),this.getWeekdays=()=>{const r=new Date;return Ase({start:Ad(r,{locale:this.locale}),end:Yp(r,{locale:this.locale})}).map(i=>this.formatByString(i,"EEEEEE"))},this.getWeekArray=r=>{const i=Ad(ud(r),{locale:this.locale}),o=Yp(Bg(r),{locale:this.locale});let a=0,s=i;const l=[];let u=null;for(;Yl(s,o);){const d=Math.floor(a/7);l[d]=l[d]||[];const h=kle(s);u!==h&&(u=h,l[d].push(s),a+=1),s=Jd(s,1)}return l},this.getYearRange=(r,i)=>{const o=cd(r),a=Kp(i),s=[];let l=o;for(;Yl(l,a);)s.push(l),l=wx(l,1);return s},this.locale=t,this.formats=Object.assign({},TLe,n)}isBeforeMonth(t,n){return Yl(t,ud(n))}isAfterMonth(t,n){return tp(t,ud(n))}}const OLe={y:"year",yy:"year",yyy:"year",yyyy:"year",MMMM:"month",MM:"month",DD:"day",d:"day",dd:"day",H:"hour",HH:"hour",h:"hour",hh:"hour",mm:"minute",ss:"second",a:"am-pm",aa:"am-pm",aaa:"am-pm"};class PLe extends ELe{constructor(...t){super(...t),this.formatTokenMap=OLe,this.expandFormat=n=>{const r=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return n.match(r).map(i=>{const o=i[0];if(o==="p"||o==="P"){const a=tN[o],s=this.locale||Zu;return a(i,s.formatLong,{})}return i}).join("")},this.getFormatHelperText=n=>this.expandFormat(n).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase()}}var GC={},RLe=Bt;Object.defineProperty(GC,"__esModule",{value:!0});var dB=GC.default=void 0,MLe=RLe(Sf()),ALe=_;dB=GC.default=(0,MLe.default)((0,ALe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");const DLe=({count:e,title:t,onClick:n})=>_.jsxs(Ype,{onClick:n,children:[_.jsx(Zpe,{children:e}),_.jsx(Ye,{children:t}),_.jsx(Gk,{})]}),ILe=H(Tn)`
|
|
746
|
+
display: inline-block;
|
|
747
|
+
width: 16px;
|
|
748
|
+
height: 16px;
|
|
749
|
+
background-color: ${({theme:e})=>e.extraColors.textDark};
|
|
750
|
+
border: 2px solid ${({theme:e})=>e.palette.primary.light};
|
|
751
|
+
border-radius: 16px;
|
|
752
|
+
`,cc=H(Tn)`
|
|
753
|
+
align-items: center;
|
|
754
|
+
column-gap: ${({columnGap:e})=>e||"8px"};
|
|
755
|
+
display: flex;
|
|
756
|
+
flex-direction: row;
|
|
757
|
+
`,$Le=H(cc)`
|
|
758
|
+
flex: 1;
|
|
759
|
+
flex-wrap: wrap;
|
|
760
|
+
justify-content: space-between;
|
|
761
|
+
margin-bottom: 20px;
|
|
762
|
+
row-gap: 16px;
|
|
763
|
+
column-gap: 32px;
|
|
764
|
+
|
|
765
|
+
${({theme:e})=>e.breakpoints.down("lg")} {
|
|
766
|
+
justify-content: space-between;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
${({theme:e})=>e.breakpoints.down("md")} {
|
|
770
|
+
flex-direction: column;
|
|
771
|
+
align-items: flex-start;
|
|
772
|
+
}
|
|
773
|
+
`,LLe=H(Zi)`
|
|
774
|
+
flex-direction: row;
|
|
775
|
+
align-self: stretch;
|
|
776
|
+
justify-content: space-between;
|
|
777
|
+
column-gap: 32px;
|
|
778
|
+
`,kLe=H(o_)`
|
|
779
|
+
padding: 18px 16px 24px;
|
|
780
|
+
border-radius: 0px;
|
|
781
|
+
`,fB=H(Tn)`
|
|
782
|
+
min-height: 60vh;
|
|
783
|
+
position: relative;
|
|
784
|
+
width: 99%;
|
|
785
|
+
|
|
786
|
+
${({theme:e})=>e.breakpoints.down("md")} {
|
|
787
|
+
min-height: 40vh;
|
|
788
|
+
}
|
|
789
|
+
`,NLe=H(Zi)`
|
|
790
|
+
flex-direction: row;
|
|
791
|
+
flex-wrap: wrap;
|
|
792
|
+
align-items: center;
|
|
793
|
+
justify-content: space-between;
|
|
794
|
+
margin-bottom: 12px;
|
|
795
|
+
row-gap: 16px;
|
|
796
|
+
|
|
797
|
+
${({theme:e})=>e.breakpoints.down(1400)} {
|
|
798
|
+
column-gap: 32px;
|
|
799
|
+
> div:nth-of-type(1) {
|
|
800
|
+
order: 1;
|
|
801
|
+
}
|
|
802
|
+
> div:nth-of-type(2) {
|
|
803
|
+
margin: 0 auto;
|
|
804
|
+
order: 3;
|
|
805
|
+
}
|
|
806
|
+
> label:nth-of-type(1) {
|
|
807
|
+
order: 2;
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
812
|
+
align-items: flex-start;
|
|
813
|
+
flex-direction: column;
|
|
814
|
+
}
|
|
815
|
+
`,FLe=H(cc)`
|
|
816
|
+
gap: 24px;
|
|
817
|
+
justify-content: flex-start;
|
|
818
|
+
flex-wrap: wrap;
|
|
819
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
820
|
+
gap: 16px;
|
|
821
|
+
}
|
|
822
|
+
`,jLe=H(la)`
|
|
823
|
+
background-color: ${({theme:e})=>PRe(e.palette.primary.main,.05)};
|
|
824
|
+
border: 1px solid ${({theme:e})=>e.palette.text.primary};
|
|
825
|
+
padding: 2px 4px 3px;
|
|
826
|
+
${({theme:e})=>e.typography.caption};
|
|
827
|
+
`,BLe=H(Tn)`
|
|
828
|
+
background-color: ${({color:e})=>e||"unset"};
|
|
829
|
+
height: 4px;
|
|
830
|
+
width: 16px;
|
|
831
|
+
`,ULe=H(cc)`
|
|
832
|
+
flex: 1;
|
|
833
|
+
justify-content: space-between;
|
|
834
|
+
min-width: 0;
|
|
835
|
+
`,WLe=H(Ye)`
|
|
836
|
+
min-width: 0;
|
|
837
|
+
word-wrap: break-word;
|
|
838
|
+
`,HLe=H(Pg)`
|
|
839
|
+
width: 100%;
|
|
840
|
+
`,jD=H(LL)`
|
|
841
|
+
${({theme:e})=>e.breakpoints.up("md")} {
|
|
842
|
+
margin-bottom: 20px;
|
|
843
|
+
}
|
|
844
|
+
`,zLe=H(Zi)`
|
|
845
|
+
gap: 10px;
|
|
846
|
+
margin: 0;
|
|
847
|
+
`,BD=H(la)`
|
|
848
|
+
align-self: flex-start;
|
|
849
|
+
${({theme:e})=>e.typography.body2};
|
|
850
|
+
color: ${({theme:e})=>e.palette.primary.main};
|
|
851
|
+
text-decoration: underline;
|
|
852
|
+
`,VLe=(e,t)=>({onDeselectAllDevices:()=>{const o=e.map(a=>({...a,selected:!1}));t(o)},onSelectAllDevices:()=>{const o=e.map(a=>({...a,selected:!0}));t(o)},onSelectDevice:o=>{const a=e.map(s=>{const l={...s};return l.id===o&&(l.selected=!l.selected),l});t(a)}}),GLe=({devices:e=[],isLoading:t,setDevices:n=()=>{},title:r})=>{const{t:i}=yn("location"),o=ia(bv).querySelector("#dialogs"),{isMobile:a}=Ju(),s=VLe(e,n),[l,u]=Nn(!1),h=`${e.filter(m=>m.selected).length}/${e.length}`,p=e.every(m=>m.selected),g=t&&_.jsx(_.Fragment,{children:[1,2,3].map(m=>_.jsx(du,{},m))})||_.jsxs($L,{children:[p?_.jsx(BD,{onClick:s.onDeselectAllDevices,children:i("dcim-chart.device-selector.deselect-all")}):_.jsx(BD,{onClick:s.onSelectAllDevices,children:i("dcim-chart.device-selector.select-all")}),e.map(({color:m,id:y,name:b,selected:x})=>_.jsx(HLe,{control:_.jsx(SL,{checked:x,name:b,onChange:()=>s.onSelectDevice(y)}),disableTypography:!0,label:_.jsxs(ULe,{children:[_.jsx(WLe,{children:b}),_.jsx(BLe,{color:m})]})},b))]});if(a){const m=[{label:i("common:close"),mobileLabel:_.jsx(dB,{}),trigger:()=>u(!1)}];return _.jsxs(_.Fragment,{children:[_.jsx(m_,{container:o,actions:m,fullScreen:!0,open:l,title:i("dcim-chart.device-selector.label"),children:g}),_.jsxs(zLe,{children:[_.jsx(jD,{children:_.jsx(Ye,{variant:"h6",children:r})}),_.jsx(DLe,{count:h,onClick:()=>u(!0),title:i("dcim-chart.device-selector.label")})]})]})}return _.jsxs(IL,{variant:"standard",component:"fieldset",fullWidth:!0,children:[_.jsx(jD,{children:_.jsx(Ye,{variant:"h6",children:r})}),g]})};var qC={},qLe=Bt;Object.defineProperty(qC,"__esModule",{value:!0});var hB=qC.default=void 0,KLe=qLe(Sf()),YLe=_;hB=qC.default=(0,KLe.default)((0,YLe.jsx)("path",{d:"M11 17c0 .55.45 1 1 1s1-.45 1-1-.45-1-1-1-1 .45-1 1m0-14v4h2V5.08c3.39.49 6 3.39 6 6.92 0 3.87-3.13 7-7 7s-7-3.13-7-7c0-1.68.59-3.22 1.58-4.42L12 13l1.41-1.41-6.8-6.8v.02C4.42 6.45 3 9.05 3 12c0 4.97 4.02 9 9 9 4.97 0 9-4.03 9-9s-4.03-9-9-9zm7 9c0-.55-.45-1-1-1s-1 .45-1 1 .45 1 1 1 1-.45 1-1M6 12c0 .55.45 1 1 1s1-.45 1-1-.45-1-1-1-1 .45-1 1"}),"AvTimer");const XLe=H(Tn)`
|
|
853
|
+
position: relative;
|
|
854
|
+
min-height: 60vh;
|
|
855
|
+
width: 99%;
|
|
856
|
+
|
|
857
|
+
${({theme:e})=>e.breakpoints.down("md")} {
|
|
858
|
+
min-height: 40vh;
|
|
859
|
+
}
|
|
860
|
+
`,ZLe=H(o_)`
|
|
861
|
+
padding: 18px 16px 24px;
|
|
862
|
+
border-radius: 0px;
|
|
863
|
+
`,QLe=H(Cf)`
|
|
864
|
+
color: ${({theme:e})=>e.extraColors.textDark};
|
|
865
|
+
.MuiInputBase-input {
|
|
866
|
+
padding: 2px;
|
|
867
|
+
padding-left: 8px;
|
|
868
|
+
${({theme:e})=>e.typography.subtitle2};
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
.MuiSelect-icon {
|
|
872
|
+
margin-left: 8px;
|
|
873
|
+
transform: none !important;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
fieldset {
|
|
877
|
+
border-color: ${({theme:e})=>e.extraColors.divider};
|
|
878
|
+
}
|
|
879
|
+
`,aw=H(Tn)`
|
|
880
|
+
display: flex;
|
|
881
|
+
flex-direction: row;
|
|
882
|
+
align-items: center;
|
|
883
|
+
column-gap: ${({columnGap:e})=>e||"8px"};
|
|
884
|
+
`,JLe=H(aw)`
|
|
885
|
+
${({theme:e})=>e.breakpoints.up("md")} {
|
|
886
|
+
flex: 1;
|
|
887
|
+
}
|
|
888
|
+
${({theme:e})=>e.breakpoints.down("md")} {
|
|
889
|
+
align-items: flex-start;
|
|
890
|
+
flex-direction: column;
|
|
891
|
+
}
|
|
892
|
+
`,e2e=H(QLe)`
|
|
893
|
+
.MuiInputBase-input {
|
|
894
|
+
line-height: 14px;
|
|
895
|
+
}
|
|
896
|
+
`,oo={Day:1350,Hour:15e3,FifteenMinutes:5e4,FiveMinutes:60480,Minute:60480},t2e=(e,t,n)=>{const a=(t.valueOf()-e.valueOf())/jk/60;let l=a/1440*n;const u={datapointsForDuration:l,intervalType:Gi.Day,limit:oo.Day,numberOfDevices:n,isValid:l<=oo.Day};l=a/60*n;const h={datapointsForDuration:l,intervalType:Gi.Hour,limit:oo.Hour,numberOfDevices:n,isValid:l<=oo.Hour};l=a/15*n;const g={datapointsForDuration:l,intervalType:Gi.FifteenMinutes,limit:oo.FifteenMinutes,numberOfDevices:n,isValid:l<=oo.FifteenMinutes};l=a/5*n;const y={datapointsForDuration:l,intervalType:Gi.FiveMinutes,limit:oo.FiveMinutes,numberOfDevices:n,isValid:l<=oo.FiveMinutes};l=a/1*n;const x={datapointsForDuration:l,intervalType:Gi.Minute,limit:oo.Minute,numberOfDevices:n,isValid:l<=oo.Minute};return{Day:u,Hour:h,FifteenMinutes:g,FiveMinutes:y,Minute:x}},n2e=(e,t,n)=>{const r=t2e(e,t,n);return[{disabled:!r.Day.isValid,value:r.Day.intervalType},{disabled:!r.Hour.isValid,value:r.Hour.intervalType},{disabled:!r.FifteenMinutes.isValid,value:r.FifteenMinutes.intervalType},{disabled:!r.FiveMinutes.isValid,value:r.FiveMinutes.intervalType},{disabled:!r.Minute.isValid,value:r.Minute.intervalType}]},r2e=({interval:e,startDate:t,endDate:n,numberOfDevices:r,setInterval:i})=>{const{t:o}=yn("location"),{isMobile:a}=Ju(),s=d=>{const h=d.target.value;i(h)},u=n2e(t,n,r).map(d=>_.jsx("option",{disabled:d.disabled,value:d.value,children:o(`dcim-chart.increments.${Un.kebabCase(d.value)}`)},d.value));return _.jsxs(JLe,{children:[_.jsx(Ye,{variant:"body2",children:o("dcim-chart.increments.label")}),_.jsx(e2e,{autoWidth:!a,fullWidth:a,IconComponent:hB,native:!0,onChange:s,value:e,variant:"outlined",children:u})]})};var Yo=(e=>(e.Daily="daily",e.Trend="trend",e))(Yo||{});const UD=H(SLe,{shouldForwardProp:e=>e!=="fullWidth"})`
|
|
897
|
+
padding-top: 4px;
|
|
898
|
+
padding-bottom: 4px;
|
|
899
|
+
min-width: 90px;
|
|
900
|
+
${({theme:e})=>e.typography.overline};
|
|
901
|
+
color: ${({theme:e})=>e.extraColors.textDark2};
|
|
902
|
+
background-color: transparent;
|
|
903
|
+
border: 1px solid ${({theme:e})=>e.extraColors.divider2};
|
|
904
|
+
cursor: pointer;
|
|
905
|
+
|
|
906
|
+
:first-of-type {
|
|
907
|
+
border-top-left-radius: 3px;
|
|
908
|
+
border-bottom-left-radius: 3px;
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
:last-of-type {
|
|
912
|
+
border-top-right-radius: 3px;
|
|
913
|
+
border-bottom-right-radius: 3px;
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
&[aria-selected='true'] {
|
|
917
|
+
background-color: ${({theme:e})=>e.palette.primary.main} !important;
|
|
918
|
+
color: ${({theme:e})=>e.palette.background.paper};
|
|
919
|
+
border-color: ${({theme:e})=>e.palette.primary.main};
|
|
920
|
+
}
|
|
921
|
+
`,i2e=({viewType:e})=>{const{t}=yn("location");return _.jsx(bLe,{children:_.jsxs(jte,{value:e,children:[_.jsx(UD,{value:Yo.Trend,children:t("dcim-chart.view.trend")}),_.jsx(UD,{value:Yo.Daily,children:t("dcim-chart.view.daily")})]})})},o2e=e=>_.jsx(qd,{...e,children:_.jsx("path",{d:"M10 0H0V20H16V6L10 0ZM3 16L5.5 12.667L7 14.667L9.5 11.334L13 16H3ZM9 7V1.5L14.5 7H9Z"})}),a2e=e=>_.jsx(qd,{...e,children:_.jsx("path",{d:"M10 0L0 2V16L10 18V0ZM12 2V4H14V6H12V8H14V10H12V12H14V14H12V16H20V2H12ZM16 4H18V6H16V4ZM2.17578 5.29688H3.95312L4.87695 7.51172C4.95195 7.69272 5.00841 7.90262 5.06641 8.14062H5.0918C5.1248 7.99762 5.19197 7.77914 5.29297 7.49414L6.32227 5.29688H7.94336L6.00781 8.9668L8 12.7031H6.27148L5.1582 10.2891C5.1162 10.2041 5.06639 10.0329 5.02539 9.79492H5.00977C4.98477 9.90892 4.93438 10.0796 4.85938 10.3086L3.73633 12.7031H2L4.06055 8.99609L2.17578 5.29688ZM16 8H18V10H16V8ZM16 12H18V14H16V12Z"})}),WD=H(La)`
|
|
922
|
+
.MuiSvgIcon-root {
|
|
923
|
+
width: 20px;
|
|
924
|
+
height: 20px;
|
|
925
|
+
}
|
|
926
|
+
`;function F0(e){return e==null?"":`${e}`}function s2e(e={}){const{separator:t,decimals:n}=e;return t?n?r=>r.toFixed(n).replace(".",t):r=>`${r}`.replace(".",t):n?r=>r.toFixed(n):r=>`${r}`}function KC(e={}){const t=typeof e.quote=="string"?e.quote:'"',n=typeof e.escapedQuote=="string"?e.escapedQuote:`${t}${t}`;if(!t||t===n)return i=>i;const r=new RegExp(t,"g");return i=>(i.includes(t)&&(i=i.replace(r,n)),`${t}${i}${t}`)}function l2e(e={stringFormatter:KC()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function u2e(e={stringFormatter:KC()}){return t=>{if(t===null)return"";let n=JSON.stringify(t);return n===void 0?"":(n[0]==='"'&&(n=n.replace(/^"(.+)"$/,"$1")),e.stringFormatter(n))}}const c2e=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g");function d2e(e){var t,n,r;const i=[];let o;for(;o=c2e.exec(e);)i.push((r=(t=o[3])!==null&&t!==void 0?t:(n=o[1])===null||n===void 0?void 0:n.trim())!==null&&r!==void 0?r:o[0]);return i}function HD(e,t,n){if(t in e){const o=e[t];return o===void 0?n:o}const r=Array.isArray(t)?t:d2e(t);let i=e;for(const o of r)if(i=i==null?void 0:i[o],i===void 0)return n;return i}function pB(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function sw(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}var zD;(function(e){e.header="header",e.undefined="undefined",e.boolean="boolean",e.number="number",e.bigint="bigint",e.string="string",e.symbol="symbol",e.function="function",e.object="object"})(zD||(zD={}));class f2e{constructor(t){this.opts=this.preprocessOpts(t)}preprocessOpts(t){const n=Object.assign({},t);n.fields&&(n.fields=this.preprocessFieldsInfo(n.fields,n.defaultValue)),n.transforms=n.transforms||[];const r=n.formatters&&n.formatters.string||KC(),i=u2e({stringFormatter:r}),o={header:r,undefined:F0,boolean:F0,number:s2e(),bigint:F0,string:r,symbol:l2e({stringFormatter:r}),function:i,object:i};return n.formatters=Object.assign(Object.assign({},o),n.formatters),n.delimiter=n.delimiter||",",n.eol=n.eol||`
|
|
927
|
+
`,n.header=n.header!==!1,n.includeEmptyRows=n.includeEmptyRows||!1,n.withBOM=n.withBOM||!1,n}preprocessFieldsInfo(t,n){return t.map(r=>{if(typeof r=="string")return{label:r,value:i=>HD(i,r,n)};if(typeof r=="object"){const i="default"in r?r.default:n;if(typeof r.value=="string"){const o=r.value;return{label:r.label||r.value,value:a=>HD(a,o,i)}}if(typeof r.value=="function"){const o=r.label||r.value.name||"",a={label:o,default:i},s=r.value;return{label:o,value(l){const u=s(l,a);return u===void 0?i:u}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return sw(this.opts.fields.map(t=>this.opts.formatters.header(t.label)),this.opts.delimiter)}preprocessRow(t){return this.opts.transforms.reduce((n,r)=>n.map(i=>r(i)).reduce(pB,[]),[t])}processRow(t){if(!t)return;const n=this.opts.fields.map(r=>this.processCell(t,r));if(!(!this.opts.includeEmptyRows&&n.every(r=>r==="")))return sw(n,this.opts.delimiter)}processCell(t,n){return this.processValue(n.value(t))}processValue(t){const n=this.opts.formatters[typeof t];return n(t)}}class h2e extends f2e{constructor(t){super(t)}parse(t){const n=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((a,s)=>(Object.keys(s).forEach(l=>{a.includes(l)||a.push(l)}),a),[]),this.opts.defaultValue);const r=this.opts.header?this.getHeader():"",i=this.processData(n);return(this.opts.withBOM?"\uFEFF":"")+r+(r&&i?this.opts.eol:"")+i}preprocessData(t){const n=Array.isArray(t)?t:[t];if(!this.opts.fields){if(t==null||n.length===0)throw new Error('Data should not be empty or the "fields" option should be included');if(typeof n[0]!="object")throw new Error('Data items should be objects or the "fields" option should be included')}return this.opts.transforms.length===0?n:n.map(r=>this.preprocessRow(r)).reduce(pB,[])}processData(t){return sw(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var Xn;(function(e){e[e.BACKSPACE=8]="BACKSPACE",e[e.FORM_FEED=12]="FORM_FEED",e[e.NEWLINE=10]="NEWLINE",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.TAB=9]="TAB",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.DOLLAR_SIGN=36]="DOLLAR_SIGN",e[e.PERCENT_SIGN=37]="PERCENT_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",e[e.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",e[e.ASTERISK=42]="ASTERISK",e[e.PLUS_SIGN=43]="PLUS_SIGN",e[e.COMMA=44]="COMMA",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.FULL_STOP=46]="FULL_STOP",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_ZERO=48]="DIGIT_ZERO",e[e.DIGIT_ONE=49]="DIGIT_ONE",e[e.DIGIT_TWO=50]="DIGIT_TWO",e[e.DIGIT_THREE=51]="DIGIT_THREE",e[e.DIGIT_FOUR=52]="DIGIT_FOUR",e[e.DIGIT_FIVE=53]="DIGIT_FIVE",e[e.DIGIT_SIX=54]="DIGIT_SIX",e[e.DIGIT_SEVEN=55]="DIGIT_SEVEN",e[e.DIGIT_EIGHT=56]="DIGIT_EIGHT",e[e.DIGIT_NINE=57]="DIGIT_NINE",e[e.COLON=58]="COLON",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.COMMERCIAL_AT=64]="COMMERCIAL_AT",e[e.LATIN_CAPITAL_LETTER_A=65]="LATIN_CAPITAL_LETTER_A",e[e.LATIN_CAPITAL_LETTER_B=66]="LATIN_CAPITAL_LETTER_B",e[e.LATIN_CAPITAL_LETTER_C=67]="LATIN_CAPITAL_LETTER_C",e[e.LATIN_CAPITAL_LETTER_D=68]="LATIN_CAPITAL_LETTER_D",e[e.LATIN_CAPITAL_LETTER_E=69]="LATIN_CAPITAL_LETTER_E",e[e.LATIN_CAPITAL_LETTER_F=70]="LATIN_CAPITAL_LETTER_F",e[e.LATIN_CAPITAL_LETTER_G=71]="LATIN_CAPITAL_LETTER_G",e[e.LATIN_CAPITAL_LETTER_H=72]="LATIN_CAPITAL_LETTER_H",e[e.LATIN_CAPITAL_LETTER_I=73]="LATIN_CAPITAL_LETTER_I",e[e.LATIN_CAPITAL_LETTER_J=74]="LATIN_CAPITAL_LETTER_J",e[e.LATIN_CAPITAL_LETTER_K=75]="LATIN_CAPITAL_LETTER_K",e[e.LATIN_CAPITAL_LETTER_L=76]="LATIN_CAPITAL_LETTER_L",e[e.LATIN_CAPITAL_LETTER_M=77]="LATIN_CAPITAL_LETTER_M",e[e.LATIN_CAPITAL_LETTER_N=78]="LATIN_CAPITAL_LETTER_N",e[e.LATIN_CAPITAL_LETTER_O=79]="LATIN_CAPITAL_LETTER_O",e[e.LATIN_CAPITAL_LETTER_P=80]="LATIN_CAPITAL_LETTER_P",e[e.LATIN_CAPITAL_LETTER_Q=81]="LATIN_CAPITAL_LETTER_Q",e[e.LATIN_CAPITAL_LETTER_R=82]="LATIN_CAPITAL_LETTER_R",e[e.LATIN_CAPITAL_LETTER_S=83]="LATIN_CAPITAL_LETTER_S",e[e.LATIN_CAPITAL_LETTER_T=84]="LATIN_CAPITAL_LETTER_T",e[e.LATIN_CAPITAL_LETTER_U=85]="LATIN_CAPITAL_LETTER_U",e[e.LATIN_CAPITAL_LETTER_V=86]="LATIN_CAPITAL_LETTER_V",e[e.LATIN_CAPITAL_LETTER_W=87]="LATIN_CAPITAL_LETTER_W",e[e.LATIN_CAPITAL_LETTER_X=88]="LATIN_CAPITAL_LETTER_X",e[e.LATIN_CAPITAL_LETTER_Y=89]="LATIN_CAPITAL_LETTER_Y",e[e.LATIN_CAPITAL_LETTER_Z=90]="LATIN_CAPITAL_LETTER_Z",e[e.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",e[e.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.CIRCUMFLEX_ACCENT=94]="CIRCUMFLEX_ACCENT",e[e.LOW_LINE=95]="LOW_LINE",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_LETTER_A=97]="LATIN_SMALL_LETTER_A",e[e.LATIN_SMALL_LETTER_B=98]="LATIN_SMALL_LETTER_B",e[e.LATIN_SMALL_LETTER_C=99]="LATIN_SMALL_LETTER_C",e[e.LATIN_SMALL_LETTER_D=100]="LATIN_SMALL_LETTER_D",e[e.LATIN_SMALL_LETTER_E=101]="LATIN_SMALL_LETTER_E",e[e.LATIN_SMALL_LETTER_F=102]="LATIN_SMALL_LETTER_F",e[e.LATIN_SMALL_LETTER_G=103]="LATIN_SMALL_LETTER_G",e[e.LATIN_SMALL_LETTER_H=104]="LATIN_SMALL_LETTER_H",e[e.LATIN_SMALL_LETTER_I=105]="LATIN_SMALL_LETTER_I",e[e.LATIN_SMALL_LETTER_J=106]="LATIN_SMALL_LETTER_J",e[e.LATIN_SMALL_LETTER_K=107]="LATIN_SMALL_LETTER_K",e[e.LATIN_SMALL_LETTER_L=108]="LATIN_SMALL_LETTER_L",e[e.LATIN_SMALL_LETTER_M=109]="LATIN_SMALL_LETTER_M",e[e.LATIN_SMALL_LETTER_N=110]="LATIN_SMALL_LETTER_N",e[e.LATIN_SMALL_LETTER_O=111]="LATIN_SMALL_LETTER_O",e[e.LATIN_SMALL_LETTER_P=112]="LATIN_SMALL_LETTER_P",e[e.LATIN_SMALL_LETTER_Q=113]="LATIN_SMALL_LETTER_Q",e[e.LATIN_SMALL_LETTER_R=114]="LATIN_SMALL_LETTER_R",e[e.LATIN_SMALL_LETTER_S=115]="LATIN_SMALL_LETTER_S",e[e.LATIN_SMALL_LETTER_T=116]="LATIN_SMALL_LETTER_T",e[e.LATIN_SMALL_LETTER_U=117]="LATIN_SMALL_LETTER_U",e[e.LATIN_SMALL_LETTER_V=118]="LATIN_SMALL_LETTER_V",e[e.LATIN_SMALL_LETTER_W=119]="LATIN_SMALL_LETTER_W",e[e.LATIN_SMALL_LETTER_X=120]="LATIN_SMALL_LETTER_X",e[e.LATIN_SMALL_LETTER_Y=121]="LATIN_SMALL_LETTER_Y",e[e.LATIN_SMALL_LETTER_Z=122]="LATIN_SMALL_LETTER_Z",e[e.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",e[e.VERTICAL_LINE=124]="VERTICAL_LINE",e[e.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",e[e.TILDE=126]="TILDE"})(Xn||(Xn={}));Xn.QUOTATION_MARK+"",Xn.QUOTATION_MARK,Xn.REVERSE_SOLIDUS+"",Xn.REVERSE_SOLIDUS,Xn.SOLIDUS+"",Xn.SOLIDUS,Xn.LATIN_SMALL_LETTER_B+"",Xn.BACKSPACE,Xn.LATIN_SMALL_LETTER_F+"",Xn.FORM_FEED,Xn.LATIN_SMALL_LETTER_N+"",Xn.NEWLINE,Xn.LATIN_SMALL_LETTER_R+"",Xn.CARRIAGE_RETURN,Xn.LATIN_SMALL_LETTER_T+"",Xn.TAB;var VD;(function(e){e[e.LEFT_BRACE=0]="LEFT_BRACE",e[e.RIGHT_BRACE=1]="RIGHT_BRACE",e[e.LEFT_BRACKET=2]="LEFT_BRACKET",e[e.RIGHT_BRACKET=3]="RIGHT_BRACKET",e[e.COLON=4]="COLON",e[e.COMMA=5]="COMMA",e[e.TRUE=6]="TRUE",e[e.FALSE=7]="FALSE",e[e.NULL=8]="NULL",e[e.STRING=9]="STRING",e[e.NUMBER=10]="NUMBER",e[e.SEPARATOR=11]="SEPARATOR"})(VD||(VD={}));var GD;(function(e){e[e.START=0]="START",e[e.ENDED=1]="ENDED",e[e.ERROR=2]="ERROR",e[e.TRUE1=3]="TRUE1",e[e.TRUE2=4]="TRUE2",e[e.TRUE3=5]="TRUE3",e[e.FALSE1=6]="FALSE1",e[e.FALSE2=7]="FALSE2",e[e.FALSE3=8]="FALSE3",e[e.FALSE4=9]="FALSE4",e[e.NULL1=10]="NULL1",e[e.NULL2=11]="NULL2",e[e.NULL3=12]="NULL3",e[e.STRING_DEFAULT=13]="STRING_DEFAULT",e[e.STRING_AFTER_BACKSLASH=14]="STRING_AFTER_BACKSLASH",e[e.STRING_UNICODE_DIGIT_1=15]="STRING_UNICODE_DIGIT_1",e[e.STRING_UNICODE_DIGIT_2=16]="STRING_UNICODE_DIGIT_2",e[e.STRING_UNICODE_DIGIT_3=17]="STRING_UNICODE_DIGIT_3",e[e.STRING_UNICODE_DIGIT_4=18]="STRING_UNICODE_DIGIT_4",e[e.STRING_INCOMPLETE_CHAR=19]="STRING_INCOMPLETE_CHAR",e[e.NUMBER_AFTER_INITIAL_MINUS=20]="NUMBER_AFTER_INITIAL_MINUS",e[e.NUMBER_AFTER_INITIAL_ZERO=21]="NUMBER_AFTER_INITIAL_ZERO",e[e.NUMBER_AFTER_INITIAL_NON_ZERO=22]="NUMBER_AFTER_INITIAL_NON_ZERO",e[e.NUMBER_AFTER_FULL_STOP=23]="NUMBER_AFTER_FULL_STOP",e[e.NUMBER_AFTER_DECIMAL=24]="NUMBER_AFTER_DECIMAL",e[e.NUMBER_AFTER_E=25]="NUMBER_AFTER_E",e[e.NUMBER_AFTER_E_AND_SIGN=26]="NUMBER_AFTER_E_AND_SIGN",e[e.NUMBER_AFTER_E_AND_DIGIT=27]="NUMBER_AFTER_E_AND_DIGIT",e[e.SEPARATOR=28]="SEPARATOR",e[e.BOM_OR_START=29]="BOM_OR_START",e[e.BOM=30]="BOM"})(GD||(GD={}));var qD;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(qD||(qD={}));var KD;(function(e){e[e.VALUE=0]="VALUE",e[e.KEY=1]="KEY",e[e.COLON=2]="COLON",e[e.COMMA=3]="COMMA",e[e.ENDED=4]="ENDED",e[e.ERROR=5]="ERROR",e[e.SEPARATOR=6]="SEPARATOR"})(KD||(KD={}));const p2e=e=>[{value:"deviceDataId",label:e("dcim-chart.export.header.deviceDataId")},{value:"deviceName",label:e("dcim-chart.export.header.deviceName")},{value:"date",label:e("dcim-chart.export.header.date")},{value:"minValue",label:e("dcim-chart.export.header.minValue")},{value:"maxValue",label:e("dcim-chart.export.header.maxValue")},{value:"pointValue",label:e("dcim-chart.export.header.pointValue")}],gB=(e,t)=>{let n=document.getElementById("chartjs-tooltip");n||(n=document.createElement("div"),n.id="chartjs-tooltip",document.body.appendChild(n));const r=e.tooltip;if(r.opacity===0){n.style.opacity="0";return}if(n.classList.remove("above","below","no-transform"),r.yAlign?n.classList.add(r.yAlign):n.classList.add("no-transform"),r.body){const l=r.title,[u]=r.body.map(({lines:g})=>g);let d="";const h=gA(t.typography.subtitle2,["margin-block:0px"]);l.forEach(g=>{d+=`<h3 style="${h}"><strong>${g}</strong></h3>`});const p=gA(t.typography.body2,["margin-block:0px"]);u.forEach(g=>{d+=`<p style="${p}">${g}</p>`}),n.innerHTML=d}const i=e.chart.canvas.getBoundingClientRect();let o=!1;r.caretX>r.chart.width*.9&&(o=!0);const a=o?"unset":i.left+window.scrollX+r.caretX+"px",s=o?i.width+window.scrollX-r.caretX+110+"px":"unset";n.style.opacity="1",n.style.position="absolute",n.style.left=a,n.style.right=s,n.style.top=i.top+window.scrollY+r.caretY+"px",n.style.padding="8px 12px",n.style.pointerEvents="none",n.style.backgroundColor=t.palette.background.paper,n.style.boxShadow="0px 0px 0px 1px "+t.extraColors.textDark2.toString(),n.style.borderRadius=t.shape.borderRadius+"px"},g2e=(e,t,n,r)=>{if(!e)return[];const i=[];return e.forEach(o=>{const a=t.find(s=>s.id===o.deviceDataId);a!=null&&a.selected&&i.push(o)}),i.map(o=>{const{deviceDataId:a,deviceName:s,trendData:l}=o;return l.map(u=>{const{maxValue:d,minValue:h,pointValue:p}=u;let{pollDateTime:g}=u;n&&(g=g.replace(" ","T"));const m=r(g,n);return{deviceDataId:a,deviceName:s,date:m,minValue:h,maxValue:d,pointValue:p}})}).flat()};async function m2e(e,t){const n=new Blob([e]),r=URL.createObjectURL(n),i=document.createElement("a");i.download=`${t}.csv`,i.href=r,i.target="_blank",document.body.appendChild(i),i.click(),document.body.removeChild(i)}function v2e(e,t,n=!1){const r=document.createElement("a");r.download=t,n?r.href=e:r.href="data:application/octet-stream;base64,"+e,r.target="_blank",r.click()}const y2e=e=>{const{assetName:t,chartType:n,dailyRef:r,data:i,devices:o,sitecode:a,trendRef:s}=e,{t:l}=yn("location"),{formatDateTime:u}=H_(),d=()=>`${l("dcim-chart.export.file-name",{location:t,site:a,view:Un.startCase(n)})}`;return{createFileName:d,exportCsv:()=>{const g=new h2e({fields:p2e(l)}),m=n===Yo.Trend,y=g2e(i,o,m,u),b=g.parse(y),x=d();m2e(b,x)},exportImage:()=>{const m=(n===Yo.Trend?s:r).toBase64Image()||"",y=d();v2e(m,`${y}.png`,!0)}}},b2e=e=>{const{disabled:t}=e,n=y2e(e);return _.jsxs(cc,{children:[_.jsx(WD,{color:"primary",disabled:t,onClick:n.exportImage,size:"small",children:_.jsx(o2e,{inheritViewBox:!0})}),_.jsx(WD,{color:"success",disabled:t,onClick:n.exportCsv,size:"small",children:_.jsx(a2e,{inheritViewBox:!0})})]})},x2e="ohlc",w2e=(e,t,n,r)=>{const i=or();return n.length?{datasets:n.map(a=>{const{deviceDataId:s,trendData:l,deviceName:u}=a;let d=[];const h=r.find(g=>g.id===s);return l.forEach(({maxValue:g,minValue:m,pointValue:y,utcPollDateTime:b})=>{const x=[],S=Ai(b).getTime(),w=Un.chain(e).filter(C=>C.ddid===s).findLast(({alertTimeStamp:C})=>I2(S,Ai(C))).value();w&&x.push({x:S,y:Number(w.functionValue),alert:w}),x.push({x:S,y:Number(y)},{x:S,y:Number(m)},{x:S,y:Number(g)}),d=d.concat(x.map((C,R)=>({...C,index:R,hasAlert:w!==void 0})))}),d=d.sort((g,m)=>g.x-m.x),{animation:{duration:500,easing:"easeInOutCubic"},data:d,hidden:!(h!=null&&h.selected),label:u,pointBackgroundColor:g=>{const m=g.raw;return m.alert?i.palette.error.main:m.index===0||m.hasAlert&&m.index===1?i.extraColors.textDark:i.palette.background.paper},pointBorderColor:g=>{const m=g.raw,{borderColor:y}=g.dataset;return m.alert?i.palette.error.main:m.index===0?y==null?void 0:y.toString():i.extraColors.textDark},...t}})}:{datasets:[]}},mB=(e=!1,t,n,r,i,o)=>({maintainAspectRatio:!1,animation:!1,scales:{x:{type:"time",time:{unit:"hour",tooltipFormat:`EEE, MMM dd, yyyy ${i}`},ticks:{minRotation:e?90:45,maxTicksLimit:e?12:24,callback:a=>Df(Number(a),`${i} dd MMM`,{locale:t})}},y:{type:"linear"},y1:{axis:"y",type:"linear",position:"right",border:{display:!1},grid:{display:!1},ticks:{display:!1},title:{display:!0,text:n,padding:{bottom:32},font:r.typography.caption}}},font:{family:r.typography.caption.fontFamily,size:12},plugins:{legend:{display:!1},colors:{enabled:!1},annotation:o?{annotations:[{backgroundColor:r.extraColors.divider2,borderColor:q1("#000",.5),type:"box",xMin:Ai(o.startDate).getTime(),xMax:Ai(o.endDate).getTime()}]}:{}}}),_2e=(e,t,n)=>{const{t:r}=yn("location"),i=or(),{adapterLocale:o}=W_(),{getTimeFormatString:a}=H_(),{isMobile:s}=Ju(),l=mB(s,o,n,i,a(!1),e),u=C2e(r,i,t,a(!1));return Un.merge(l,u)},C2e=(e,t,n,r)=>{const i=e("dcim-chart.point-value.daily-avg"),o=e("dcim-chart.point-value.daily-min"),a=e("dcim-chart.point-value.daily-max"),s=e("dcim-chart.point-value.current");return{scales:{x:{ticks:{source:"data"}}},plugins:{tooltip:{callbacks:{title:()=>[n],label:u=>{const d=u.raw,h=[i,o,a];d.hasAlert&&h.unshift("");let p=u.label,g=" ";if(d.alert){const{alertType:y,alertCategory:b,alertTimeStamp:x}=d.alert;g=e("dcim-chart.point-value.alert",{type:Un.upperFirst(y),category:Un.upperFirst(b)}),h.unshift(g),p=Df(Ai(x),`EEE, MMM dd, yyyy ${r}`)}const m=h[d.index];return[p,m,`${s}: ${u.formattedValue}`]}},enabled:!1,external:u=>gB(u,t)}}}},S2e=({alerts:e=[],data:t=[],deviceList:n=[],plannedMaintenance:r,setChartRef:i,title:o="",yAxisLabel:a})=>{const s=_2e(r,o,a),l=w2e(e,s,t,n);return _.jsx(fB,{children:_.jsx(Yj,{data:l,options:s,ref:i,type:x2e,width:"100%"})})},T2e=(e,t,n=[],r)=>{const i=or();return n.length?{datasets:n.map(a=>{const{deviceDataId:s,trendData:l,deviceName:u}=a,d=[],h=r.find(p=>p.id===s);return l.forEach(({pointValue:p,utcPollDateTime:g})=>{const m=Ai(g).getTime();d.push({x:m,y:Number(p)})}),e==null||e.filter(p=>p.ddid===s).forEach(p=>{d.push({x:Ai(p.alertTimeStamp).getTime(),y:Number(p.functionValue),alert:p})}),d.sort((p,g)=>p.x-g.x),{animation:{duration:500,easing:"easeInOutCubic"},borderColor:h==null?void 0:h.color,borderJoinStyle:"bevel",data:d,hidden:!(h!=null&&h.selected),label:u,pointBackgroundColor:p=>YD(p.raw,i),pointBorderColor:p=>YD(p.raw,i),pointBorderWidth:p=>p.raw.alert?2:0,pointRadius:2,...t}})}:{datasets:[]}};function YD(e,t){return e.alert?t.palette.error.main:t.extraColors.textDark}const E2e=(e,t,n,r)=>{const{t:i}=yn("location"),o=or(),{adapterLocale:a}=W_(),{getTimeFormatString:s}=Av(),{isMobile:l}=Ju(),u=mB(l,a,r,o,s(!1),e),d=O2e(o,t,n,i("dcim-chart.point-value.current"));return Un.merge(u,d)},O2e=(e,t,n,r)=>({elements:{line:{borderWidth:2}},plugins:{tooltip:{callbacks:{title:()=>[t],label:o=>[o.label,n,`${r}: ${o.formattedValue}`]},enabled:!1,external:o=>gB(o,e)}},scales:{x:{ticks:{source:"data"}}}}),P2e=({alerts:e=[],data:t=[],deviceList:n=[],plannedMaintenance:r,setChartRef:i,title:o="",unitInfo:a="",yAxisLabel:s})=>{const l=E2e(r,o,a,s),u=T2e(e,l,t,n);return _.jsx(fB,{children:_.jsx(Xj,{data:u,options:l,ref:i,width:"100%"})})},R2e=H(Zi)`
|
|
928
|
+
flex-direction: row;
|
|
929
|
+
align-items: inherit;
|
|
930
|
+
gap: 8px;
|
|
931
|
+
|
|
932
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
933
|
+
flex-direction: column;
|
|
934
|
+
}
|
|
935
|
+
`,M2e=H(Cf)`
|
|
936
|
+
color: ${({theme:e})=>e.extraColors.textDark};
|
|
937
|
+
.MuiInputBase-input {
|
|
938
|
+
padding: 2px;
|
|
939
|
+
padding-left: 8px;
|
|
940
|
+
${({theme:e})=>e.typography.subtitle2};
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
.MuiSelect-icon {
|
|
944
|
+
margin-left: 8px;
|
|
945
|
+
transform: none !important;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
fieldset {
|
|
949
|
+
border-color: ${({theme:e})=>e.extraColors.divider};
|
|
950
|
+
}
|
|
951
|
+
`,A2e=({isMobile:e,metric:t,options:n,setMetric:r,title:i})=>_.jsxs(R2e,{children:[_.jsx(Ye,{whiteSpace:"nowrap",variant:"body2",children:i}),_.jsx(M2e,{autoWidth:!e,fullWidth:e,onChange:o=>r(o.target.value),value:t,variant:"outlined",children:n.map(o=>_.jsx(d_,{value:o,children:o},o))})]}),D2e=H(XLe)`
|
|
952
|
+
padding-top: 40%;
|
|
953
|
+
`,I2e=H(du)`
|
|
954
|
+
position: absolute;
|
|
955
|
+
top: 0;
|
|
956
|
+
left: 0;
|
|
957
|
+
width: 100%;
|
|
958
|
+
height: 100%;
|
|
959
|
+
`,$2e=()=>_.jsxs(ZLe,{children:[_.jsxs(Zi,{direction:"row",alignItems:"center",justifyContent:"space-between",marginBottom:3,children:[_.jsx(aw,{children:_.jsx(du,{width:125,variant:"rectangular"})}),_.jsx(aw,{children:_.jsx(du,{width:"30vw",variant:"rectangular"})}),_.jsx(du,{width:125,variant:"rectangular"})]}),_.jsx(D2e,{children:_.jsx(I2e,{variant:"rectangular",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"}})})]}),L2e=e=>{const{label:t,setShowAlerts:n,showAlerts:r}=e,i=(o,a)=>n(a);return _.jsx(Pg,{control:_.jsx(SL,{style:{padding:"0 9px"},checked:r,onChange:i}),label:_.jsx(Ye,{variant:"body2",children:t})})},k2e=e=>XD[e%XD.length],XD=["#1f77b4","#aec7e8","#ff7f0e","#ffbb78","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5","#8c564b","#c49c94","#e377c2","#f7b6d2","#7f7f7f","#c7c7c7","#bcbd22","#dbdb8d","#17becf","#9edae5","#393b79","#5254a3","#6b6ecf","#9c9ede","#637939","#8ca252","#b5cf6b","#cedb9c","#8c6d31","#bd9e39","#e7ba52","#e7cb94","#843c39","#ad494a","#d6616b","#e7969c","#7b4173","#a55194","#ce6dbd","#de9ed6","#3182bd","#6baed6","#9ecae1","#c6dbef","#e6550d","#fd8d3c","#fdae6b","#fdd0a2","#31a354","#74c476"],N2e=H(cc)`
|
|
960
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
961
|
+
align-items: center;
|
|
962
|
+
|
|
963
|
+
flex-wrap: wrap;
|
|
964
|
+
|
|
965
|
+
div {
|
|
966
|
+
width: auto;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
p {
|
|
970
|
+
width: 100%;
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
p:nth-of-type(2) {
|
|
974
|
+
margin-top: 4px;
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
`,ZD=H(g_)`
|
|
978
|
+
min-width: 225px;
|
|
979
|
+
|
|
980
|
+
.MuiInputBase-root {
|
|
981
|
+
padding-right: 8px;
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
.MuiInputBase-input {
|
|
985
|
+
padding: 4px 8px;
|
|
986
|
+
${({theme:e})=>e.typography.subtitle2};
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
svg {
|
|
990
|
+
width: 16px;
|
|
991
|
+
height: 16px;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
fieldset {
|
|
995
|
+
border: 1px solid ${({theme:e})=>e.extraColors.divider};
|
|
996
|
+
border-radius: 3px;
|
|
997
|
+
}
|
|
998
|
+
`,F2e=(e,t)=>({onAccept:r=>{const[i,o]=r,a={...e};i&&(a.startDate=na(i)),o&&(a.endDate=Ru(o)),t(a)}}),j2e=({dateInterval:e,setDateInterval:t})=>{const{t:n}=yn("location"),{dateTimeFormatUserPreferenceString:r}=Av(),{isMobile:i}=Ju(),{onAccept:o}=F2e(e,t);return _.jsx(ihe,{disableFuture:!0,disableMaskedInput:!0,inputFormat:r,onAccept:o,onChange:()=>null,reduceAnimations:!0,disableAutoMonthSwitching:!0,renderInput:(a,s)=>_.jsxs(N2e,{children:[_.jsx(Ye,{variant:"body2",children:n("dcim-chart.date-range.from")}),_.jsx(ZD,{...a,inputProps:{...a.inputProps,readOnly:!0,style:{cursor:"pointer"}},InputProps:{...a.InputProps,endAdornment:_.jsx(hP,{position:"end",children:_.jsx(UR,{})})}}),i&&_.jsx(Ye,{variant:"caption",children:n("dcim-chart.utc")}),_.jsx(Ye,{variant:"body2",children:n("dcim-chart.date-range.to")}),_.jsx(ZD,{...s,inputProps:{...s.inputProps,readOnly:!0,style:{cursor:"pointer"}},InputProps:{...s.InputProps,endAdornment:_.jsx(hP,{position:"end",children:_.jsx(UR,{})})}}),_.jsx(Ye,{variant:"caption",children:n("dcim-chart.utc")})]}),value:[e.startDate,e.endDate]})},B2e=async e=>{let t=[];try{const n=await Vk({...e,leasedSpaceName:e.leasedSpaceName}),r=await Hk(e);t=(n==null?void 0:n.content)||[],t=t.concat(r==null?void 0:r.content)}catch{return t}return t},U2e=(e,t)=>{const n=`${zr.DCIM_ALERTS}-${zr.DCIM_HISTORICAL_ALERTS}`;return aa([n,e],()=>B2e(e),{refetchOnWindowFocus:!1,...t})},W2e=(e,t,n)=>{const r=[];return e&&t&&r.push(Ile(new Date(e),new Date(t))),n&&r.push(n),r.join(" ")},H2e=e=>{const{t}=yn(["location","notifications"]),{adapterLocale:n,localeText:r}=W_(),{isMobile:i}=Ju(),{assetName:o,endDate:a,functionName:s,interval:l,leasedSpaceName:u,sitecode:d,startDate:h,subCategory:p=""}=e,[g,m]=Nn({startDate:na(Date.parse(h)),endDate:Ru(Date.parse(a))}),[y,b]=Nn(Yo.Trend),[x,S]=Nn(!0),[w,C]=Nn(s),[R,O]=Nn([]),[T,A]=Nn(l||Gi.Hour),[L,I]=Nn([]);At(()=>{T===Gi.Day&&b(Yo.Daily)},[T,A]);const[N,B]=Nn(null),[U,z]=Nn(null),F=Wk(u,{enabled:!!d&&!!o}),j=Uk({endDate:g.endDate.toISOString(),functionName:s,interval:T,leasedSpaceName:u,startDate:g.startDate.toISOString(),subCategory:p},{enabled:F.isSuccess}),K=U2e({endDate:g.endDate.toISOString(),leasedSpaceName:u,startDate:g.startDate.toISOString()}),V=Mhe(d,o,g.startDate.toISOString(),g.endDate.toISOString());At(()=>{var ye;const Me=((ye=j.data)==null?void 0:ye.portalTrendData)||[],ve=Me.map((Ce,we)=>({color:k2e(we),id:Ce.deviceDataId,name:Ce.deviceName,selected:we===0}));O(ve),I(Me)},[j.data]);const J=Mt((Me,ve)=>{b(ve),ve===Yo.Trend&&A(Gi.Hour)},[]),oe=W2e(h,a,s),ce=j.isLoading||F.isLoading||K.isLoading,le=R.filter(Me=>Me.selected).length;return _.jsxs(O_,{children:[_.jsx(R_,{assetName:o,sitecode:d}),_.jsxs(P_,{container:!0,spacing:{xs:2.5,md:0},children:[_.jsx(Bn,{item:!0,xs:12,sm:3,md:2,lg:2,children:_.jsx(GLe,{devices:R,isLoading:ce,setDevices:O,title:p})}),_.jsx(Bn,{item:!0,xs:12,sm:9,md:10,lg:10,children:_.jsx(Tn,{children:_.jsxs(cLe,{onChange:J,value:y,children:[_.jsxs($Le,{children:[_.jsx(Ace,{adapterLocale:n,dateAdapter:PLe,localeText:{...r,end:"",start:""},children:_.jsx(j2e,{dateInterval:g,setDateInterval:m})}),y===Yo.Trend&&_.jsx(r2e,{endDate:g.endDate,interval:T,numberOfDevices:R.length,setInterval:A,startDate:g.startDate}),_.jsxs(LLe,{children:[_.jsx(i2e,{viewType:y}),_.jsx(b2e,{assetName:o,chartType:y,dailyRef:U,data:L,devices:R,disabled:j.isLoading||le===0,sitecode:d||"",trendRef:N})]})]}),ce?_.jsx($2e,{}):_.jsxs(kLe,{elevation:i?0:1,children:[_.jsxs(NLe,{children:[_.jsx(A2e,{isMobile:i,metric:w,options:[s],setMetric:C,title:t("dcim-chart.y-axis-metric")}),_.jsxs(FLe,{children:[_.jsxs(cc,{children:[_.jsx(ILe,{}),_.jsx(Ye,{variant:"caption",children:oe})]}),_.jsx(jLe,{children:t("notifications:type.planned_site_maintenance")}),_.jsx(Ye,{variant:"caption",children:t("dcim-chart.timezone.utc")})]}),_.jsx(L2e,{label:t("dcim-chart.show-alert-data"),setShowAlerts:S,showAlerts:x})]}),_.jsx(FD,{value:"trend",children:_.jsx(P2e,{alerts:x?K.data:[],data:L,deviceList:R,plannedMaintenance:V.data,setChartRef:B,title:`${p} | UTC`,unitInfo:oe,yAxisLabel:s})}),_.jsx(FD,{value:"daily",children:_.jsx(S2e,{alerts:x?K.data:[],data:L,deviceList:R,plannedMaintenance:V.data,setChartRef:z,title:`${p} | UTC`,yAxisLabel:s})})]})]})})})]})]})},z2e=()=>{const e=window.location.search.slice(1),t=Ev.parse(e),{assetName:n,endDate:r,functionName:i,interval:o,sitecode:a,startDate:s,subCategory:l}=t,u=`${a}-${n}`;return At(()=>{window.dispatchEvent(new CustomEvent(Kv,{detail:{location:{route:{hideAccountSwitcher:!0}}}}))},[]),_.jsx(b_,{children:_.jsx(H2e,{assetName:n,endDate:r,functionName:i,interval:o,leasedSpaceName:u,sitecode:a,startDate:s,subCategory:l})})},V2e=()=>{const e=window.location.search.slice(1),t=Ev.parse(e),{assetName:n,sitecode:r}=t,i=`${r}-${n}`;return At(()=>{window.dispatchEvent(new CustomEvent(Kv,{detail:{location:{route:{hideAccountSwitcher:!0}}}}))},[]),_.jsx(b_,{children:_.jsx(d$e,{assetName:n,date:new Date,leasedSpaceName:i,sitecode:r})})},G2e=H(Tn)`
|
|
999
|
+
display: flex;
|
|
1000
|
+
flex-direction: column;
|
|
1001
|
+
gap: 42px;
|
|
1002
|
+
|
|
1003
|
+
${({theme:e})=>e.breakpoints.down("md")} {
|
|
1004
|
+
gap: 26px;
|
|
1005
|
+
}
|
|
1006
|
+
`,QD=H(Ye)`
|
|
1007
|
+
font-size: 12px;
|
|
1008
|
+
max-width: 240px;
|
|
1009
|
+
line-height: 16px;
|
|
1010
|
+
${({theme:e})=>e.breakpoints.down("lg")} {
|
|
1011
|
+
gap: 26px;
|
|
1012
|
+
max-width: 100%;
|
|
1013
|
+
}
|
|
1014
|
+
${({theme:e})=>e.breakpoints.up("lg")} {
|
|
1015
|
+
padding-top: 47px;
|
|
1016
|
+
}
|
|
1017
|
+
`,q2e=({assetName:e,leasedSpaceName:t,sitecode:n,type:r})=>{const{t:i}=yn("location"),o=Ha(Lg.breakpoints.down("sm")),a=Ha(Lg.breakpoints.down("lg")),[s,l]=Nn({category:Du,type:r||Nr.CUSTOM}),u=(d,h)=>{l(p=>({...p,[d]:h}))};return _.jsx("div",{children:_.jsxs(S2,{children:[_.jsxs(lse,{children:[_.jsx(sse,{children:e}),_.jsx(Ye,{variant:"subtitle1",children:n})]}),_.jsxs(Bn,{container:!0,spacing:{xs:2.5,md:3},children:[_.jsx(Bn,{item:!0,xs:12,sm:4,md:4,lg:3,xl:2,children:_.jsxs(G2e,{children:[_.jsx(X_,{leasedSpaceName:t,filters:s,handleFilters:u,disableOptionHistory:!0,disableOptionAll:!0,isDefinitionsView:!0}),_.jsx(dN,{leasedSpaceName:t,filters:s,handleFilters:u,isDefinitionsView:!0}),a&&!o&&_.jsx(QD,{variant:"body2",children:i("alerts.definitions.warning-message")})]})}),_.jsx(Bn,{item:!0,xs:12,sm:8,md:8,lg:7,xl:7,children:_.jsx(nj,{leasedSpaceName:t,alertType:s.type,alertCategory:s.category,title:i("alerts.definitions.title"),isDefinitionsView:!0})}),!a&&_.jsx(Bn,{item:!0,xs:12,lg:2,xl:3,children:_.jsx(QD,{variant:"body2",children:i("alerts.definitions.warning-message")})})]})]})})},K2e=()=>{const e=window.location.search.slice(1),t=Ev.parse(e),{assetName:n,sitecode:r,type:i}=t,o=`${r}-${n}`;return At(()=>{window.dispatchEvent(new CustomEvent(Kv,{detail:{location:{route:{hideAccountSwitcher:!0}}}}))},[]),_.jsx(b_,{children:_.jsx(q2e,{assetName:n,date:new Date,leasedSpaceName:o,sitecode:r,type:i})})},kNe=[{path:"/details",element:_.jsx(V2e,{})},{path:"/chart",element:_.jsx(z2e,{})},{path:"/alert",element:_.jsx(NRe,{})},{path:"/alerts-definitions",element:_.jsx(K2e,{})},{path:"/*",element:_.jsx(LV,{to:"/details",replace:!0})}];class YC extends mu{draw(){const{data:t}=this.getMeta(),n=Object.values(Un.groupBy(t,"x")),{radius:r,borderColor:i}=t[0].options,o=this.chart.ctx;o.strokeStyle=i,o.lineWidth=1,o.beginPath(),n.forEach(a=>{const[s,l]=a.slice(-2);o.moveTo(s.x,s.y-r),o.lineTo(l.x,l.y+r),o.stroke()}),super.draw()}}YC.id="ohlc";YC.defaults=mu.defaults;/*!
|
|
1018
|
+
* chartjs-plugin-annotation v2.2.1
|
|
1019
|
+
* https://www.chartjs.org/chartjs-plugin-annotation/index
|
|
1020
|
+
* (c) 2023 chartjs-plugin-annotation Contributors
|
|
1021
|
+
* Released under the MIT License
|
|
1022
|
+
*/const JD={modes:{point(e,t){return ig(e,t,{intersect:!0})},nearest(e,t,n){return Z2e(e,t,n)},x(e,t,n){return ig(e,t,{intersect:n.intersect,axis:"x"})},y(e,t,n){return ig(e,t,{intersect:n.intersect,axis:"y"})}}};function XC(e,t,n){return(JD.modes[n.mode]||JD.modes.nearest)(e,t,n)}function Y2e(e,t,n){return n!=="x"&&n!=="y"?e.inRange(t.x,t.y,"x",!0)||e.inRange(t.x,t.y,"y",!0):e.inRange(t.x,t.y,n,!0)}function X2e(e,t,n){return n==="x"?{x:e.x,y:t.y}:n==="y"?{x:t.x,y:e.y}:t}function ig(e,t,n){return e.visibleElements.filter(r=>n.intersect?r.inRange(t.x,t.y):Y2e(r,t,n.axis))}function Z2e(e,t,n){let r=Number.POSITIVE_INFINITY;return ig(e,t,n).reduce((i,o)=>{const a=o.getCenterPoint(),s=X2e(t,a,n.axis),l=ku(t,s);return l<r?(i=[o],r=l):l===r&&i.push(o),i},[]).sort((i,o)=>i._index-o._index).slice(0,1)}const Q2e=(e,t)=>t>e||e.length>t.length&&e.slice(0,t.length)===t,js=.001,ry=(e,t,n)=>Math.min(n,Math.max(t,e));function J2e(e,t,n){for(const r of Object.keys(e))e[r]=ry(e[r],t,n);return e}function eke(e,t,n,r){if(!e||!t||n<=0)return!1;const i=r/2;return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)<=Math.pow(n+i,2)}function vB(e,{x:t,y:n,x2:r,y2:i},o,a){const s=a/2,l=e.x>=t-s-js&&e.x<=r+s+js,u=e.y>=n-s-js&&e.y<=i+s+js;return o==="x"?l:(o==="y"||l)&&u}function dc(e,t){const{centerX:n,centerY:r}=e.getProps(["centerX","centerY"],t);return{x:n,y:r}}function tke(e,t,n,r=!0){const i=n.split(".");let o=0;for(const a of t.split(".")){const s=i[o++];if(parseInt(a,10)<parseInt(s,10))break;if(Q2e(s,a)){if(r)throw new Error(`${e} v${n} is not supported. v${t} or newer is required.`);return!1}}return!0}const yB=e=>typeof e=="string"&&e.endsWith("%"),bB=e=>parseFloat(e)/100,xB=e=>ry(bB(e),0,1);function ZC(e,t){return t==="start"?0:t==="end"?e:yB(t)?xB(t)*e:e/2}function Va(e,t,n=!0){return typeof t=="number"?t:yB(t)?(n?xB(t):bB(t))*e:e}function nke(e,t){const{x:n,width:r}=e,i=t.textAlign;return i==="center"?n+r/2:i==="end"||i==="right"?n+r:n}function QC(e,t="center"){return gt(e)?{x:ft(e.x,t),y:ft(e.y,t)}:(e=ft(e,t),{x:e,y:e})}function wB(e){return e&&(oi(e.xValue)||oi(e.yValue))}function qf(e,t,n,r=!1){const i=n.init;if(i){if(i===!0)return CB(t,r)}else return;return rke(t,r,Vt(i,[{chart:e,properties:t,options:n}]))}function _B(e,t,n){let r=!1;return t.forEach(i=>{Ur(e[i])?(r=!0,n[i]=e[i]):oi(n[i])&&delete n[i]}),r}function CB({centerX:e,centerY:t},n){return n?{centerX:e,centerY:t,radius:0,width:0,height:0}:{x:e,y:t,x2:e,y2:t,width:0,height:0}}function rke(e,t,n){if(n===!0)return CB(e,t);if(gt(n))return n}const j0=new Map,ike=e=>isNaN(e)||e<=0,oke=e=>e.reduce(function(t,n){return t+=n.string,t},"");function iy(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object HTMLImageElement]"||t==="[object HTMLCanvasElement]"}}function JC(e,{x:t,y:n},r){r&&(e.translate(t,n),e.rotate(mr(r)),e.translate(-t,-n))}function Ga(e,t){if(t&&t.borderWidth)return e.lineCap=t.borderCapStyle,e.setLineDash(t.borderDash),e.lineDashOffset=t.borderDashOffset,e.lineJoin=t.borderJoinStyle,e.lineWidth=t.borderWidth,e.strokeStyle=t.borderColor,!0}function fc(e,t){e.shadowColor=t.backgroundShadowColor,e.shadowBlur=t.shadowBlur,e.shadowOffsetX=t.shadowOffsetX,e.shadowOffsetY=t.shadowOffsetY}function eS(e,t){const n=t.content;if(iy(n))return{width:Va(n.width,t.width),height:Va(n.height,t.height)};const r=t.font,i=nn(r)?r.map(l=>tr(l)):[tr(r)],o=t.textStrokeWidth,a=nn(n)?n:[n],s=a.join()+oke(i)+o+(e._measureText?"-spriting":"");return j0.has(s)||j0.set(s,cke(e,a,i,o)),j0.get(s)}function SB(e,t,n){const{x:r,y:i,width:o,height:a}=t;e.save(),fc(e,n);const s=Ga(e,n);e.fillStyle=n.backgroundColor,e.beginPath(),mm(e,{x:r,y:i,w:o,h:a,radius:J2e(pu(n.borderRadius),0,Math.min(o,a)/2)}),e.closePath(),e.fill(),s&&(e.shadowColor=n.borderShadowColor,e.stroke()),e.restore()}function ake(e,t,n){const r=n.content;if(iy(r)){e.save(),e.globalAlpha=hke(n.opacity,r.style.opacity),e.drawImage(r,t.x,t.y,t.width,t.height),e.restore();return}const i=nn(r)?r:[r],o=n.font,a=nn(o)?o.map(h=>tr(h)):[tr(o)],s=n.color,l=nn(s)?s:[s],u=nke(t,n),d=t.y+n.textStrokeWidth/2;e.save(),e.textBaseline="middle",e.textAlign=n.textAlign,ske(e,n)&&dke(e,{x:u,y:d},i,a),fke(e,{x:u,y:d},i,{fonts:a,colors:l}),e.restore()}function ske(e,t){if(t.textStrokeWidth>0)return e.lineJoin="round",e.miterLimit=2,e.lineWidth=t.textStrokeWidth,e.strokeStyle=t.textStrokeColor,!0}function lke(e,t,n,r){const{radius:i,options:o}=t,a=o.pointStyle,s=o.rotation;let l=(s||0)*DC;if(iy(a)){e.save(),e.translate(n,r),e.rotate(l),e.drawImage(a,-a.width/2,-a.height/2,a.width,a.height),e.restore();return}ike(i)||uke(e,{x:n,y:r,radius:i,rotation:s,style:a,rad:l})}function uke(e,{x:t,y:n,radius:r,rotation:i,style:o,rad:a}){let s,l,u,d;switch(e.beginPath(),o){default:e.arc(t,n,r,0,Ei),e.closePath();break;case"triangle":e.moveTo(t+Math.sin(a)*r,n-Math.cos(a)*r),a+=pm,e.lineTo(t+Math.sin(a)*r,n-Math.cos(a)*r),a+=pm,e.lineTo(t+Math.sin(a)*r,n-Math.cos(a)*r),e.closePath();break;case"rectRounded":d=r*.516,u=r-d,s=Math.cos(a+wi)*u,l=Math.sin(a+wi)*u,e.arc(t-s,n-l,d,a-qt,a-Tr),e.arc(t+l,n-s,d,a-Tr,a),e.arc(t+s,n+l,d,a,a+Tr),e.arc(t-l,n+s,d,a+Tr,a+qt),e.closePath();break;case"rect":if(!i){u=Math.SQRT1_2*r,e.rect(t-u,n-u,2*u,2*u);break}a+=wi;case"rectRot":s=Math.cos(a)*r,l=Math.sin(a)*r,e.moveTo(t-s,n-l),e.lineTo(t+l,n-s),e.lineTo(t+s,n+l),e.lineTo(t-l,n+s),e.closePath();break;case"crossRot":a+=wi;case"cross":s=Math.cos(a)*r,l=Math.sin(a)*r,e.moveTo(t-s,n-l),e.lineTo(t+s,n+l),e.moveTo(t+l,n-s),e.lineTo(t-l,n+s);break;case"star":s=Math.cos(a)*r,l=Math.sin(a)*r,e.moveTo(t-s,n-l),e.lineTo(t+s,n+l),e.moveTo(t+l,n-s),e.lineTo(t-l,n+s),a+=wi,s=Math.cos(a)*r,l=Math.sin(a)*r,e.moveTo(t-s,n-l),e.lineTo(t+s,n+l),e.moveTo(t+l,n-s),e.lineTo(t-l,n+s);break;case"line":s=Math.cos(a)*r,l=Math.sin(a)*r,e.moveTo(t-s,n-l),e.lineTo(t+s,n+l);break;case"dash":e.moveTo(t,n),e.lineTo(t+Math.cos(a)*r,n+Math.sin(a)*r);break}e.fill()}function cke(e,t,n,r){e.save();const i=t.length;let o=0,a=r;for(let s=0;s<i;s++){const l=n[Math.min(s,n.length-1)];e.font=l.string;const u=t[s];o=Math.max(o,e.measureText(u).width+r),a+=l.lineHeight}return e.restore(),{width:o,height:a}}function dke(e,{x:t,y:n},r,i){e.beginPath();let o=0;r.forEach(function(a,s){const l=i[Math.min(s,i.length-1)],u=l.lineHeight;e.font=l.string,e.strokeText(a,t,n+u/2+o),o+=u}),e.stroke()}function fke(e,{x:t,y:n},r,{fonts:i,colors:o}){let a=0;r.forEach(function(s,l){const u=o[Math.min(l,o.length-1)],d=i[Math.min(l,i.length-1)],h=d.lineHeight;e.beginPath(),e.font=d.string,e.fillStyle=u,e.fillText(s,t,n+h/2+a),a+=h,e.fill()})}function hke(e,t){const n=il(e)?e:t;return il(n)?ry(n,0,1):1}const eI={xScaleID:{min:"xMin",max:"xMax",start:"left",end:"right",startProp:"x",endProp:"x2"},yScaleID:{min:"yMin",max:"yMax",start:"bottom",end:"top",startProp:"y",endProp:"y2"}};function Bu(e,t,n){return t=typeof t=="number"?t:e.parse(t),rr(t)?e.getPixelForValue(t):n}function al(e,t,n){const r=t[n];if(r||n==="scaleID")return r;const i=n.charAt(0),o=Object.values(e).filter(a=>a.axis&&a.axis===i);return o.length?o[0].id:i}function TB(e,t){if(e){const n=e.options.reverse,r=Bu(e,t.min,n?t.end:t.start),i=Bu(e,t.max,n?t.start:t.end);return{start:r,end:i}}}function EB(e,t){const{chartArea:n,scales:r}=e,i=r[al(r,t,"xScaleID")],o=r[al(r,t,"yScaleID")];let a=n.width/2,s=n.height/2;return i&&(a=Bu(i,t.xValue,i.left+i.width/2)),o&&(s=Bu(o,t.yValue,o.top+o.height/2)),{x:a,y:s}}function tS(e,t){const n=e.scales,r=n[al(n,t,"xScaleID")],i=n[al(n,t,"yScaleID")];if(!r&&!i)return{};let{left:o,right:a}=r||e.chartArea,{top:s,bottom:l}=i||e.chartArea;const u=tI(r,{min:t.xMin,max:t.xMax,start:o,end:a});o=u.start,a=u.end;const d=tI(i,{min:t.yMin,max:t.yMax,start:l,end:s});return s=d.start,l=d.end,{x:o,y:s,x2:a,y2:l,width:a-o,height:l-s,centerX:o+(a-o)/2,centerY:s+(l-s)/2}}function OB(e,t){if(!wB(t)){const n=tS(e,t);let r=t.radius;(!r||isNaN(r))&&(r=Math.min(n.width,n.height)/2,t.radius=r);const i=r*2,o=n.centerX+t.xAdjust,a=n.centerY+t.yAdjust;return{x:o-r,y:a-r,x2:o+r,y2:a+r,centerX:o,centerY:a,width:i,height:i,radius:r}}return gke(e,t)}function pke(e,t){const{scales:n,chartArea:r}=e,i=n[t.scaleID],o={x:r.left,y:r.top,x2:r.right,y2:r.bottom};return i?mke(i,o,t):vke(n,o,t),o}function PB(e,t,n){const r=tS(e,t);return r.initProperties=qf(e,r,t,n),r.elements=[{type:"label",optionScope:"label",properties:xke(e,r,t),initProperties:r.initProperties}],r}function gke(e,t){const n=EB(e,t),r=t.radius*2;return{x:n.x-t.radius+t.xAdjust,y:n.y-t.radius+t.yAdjust,x2:n.x+t.radius+t.xAdjust,y2:n.y+t.radius+t.yAdjust,centerX:n.x+t.xAdjust,centerY:n.y+t.yAdjust,radius:t.radius,width:r,height:r}}function tI(e,t){const n=TB(e,t)||t;return{start:Math.min(n.start,n.end),end:Math.max(n.start,n.end)}}function mke(e,t,n){const r=Bu(e,n.value,NaN),i=Bu(e,n.endValue,r);e.isHorizontal()?(t.x=r,t.x2=i):(t.y=r,t.y2=i)}function vke(e,t,n){for(const r of Object.keys(eI)){const i=e[al(e,n,r)];if(i){const{min:o,max:a,start:s,end:l,startProp:u,endProp:d}=eI[r],h=TB(i,{min:n[o],max:n[a],start:i[s],end:i[l]});t[u]=h.start,t[d]=h.end}}}function yke({properties:e,options:t},n,r,i){const{x:o,x2:a,width:s}=e;return RB({start:o,end:a,borderWidth:t.borderWidth},{position:r.x,padding:{start:i.left,end:i.right},adjust:t.label.xAdjust,size:n.width})}function bke({properties:e,options:t},n,r,i){const{y:o,y2:a,height:s}=e;return RB({start:o,end:a,borderWidth:t.borderWidth},{position:r.y,padding:{start:i.top,end:i.bottom},adjust:t.label.yAdjust,size:n.height})}function RB(e,t){const{start:n,end:r,borderWidth:i}=e,{position:o,padding:{start:a,end:s},adjust:l}=t,u=r-i-n-a-s-t.size;return n+i/2+l+ZC(u,o)}function xke(e,t,n){const r=n.label;r.backgroundColor="transparent",r.callout.display=!1;const i=QC(r.position),o=Er(r.padding),a=eS(e.ctx,r),s=yke({properties:t,options:n},a,i,o),l=bke({properties:t,options:n},a,i,o),u=a.width+o.width,d=a.height+o.height;return{x:s,y:l,x2:s+u,y2:l+d,width:u,height:d,centerX:s+u/2,centerY:l+d/2,rotation:r.rotation}}function vl(e,t,n){const r=Math.cos(n),i=Math.sin(n),o=t.x,a=t.y;return{x:o+r*(e.x-o)-i*(e.y-a),y:a+i*(e.x-o)+r*(e.y-a)}}const lw=["enter","leave"],nS=lw.concat("click");function wke(e,t,n){t.listened=_B(n,nS,t.listeners),t.moveListened=!1,t._getElements=XC,lw.forEach(r=>{Ur(n[r])&&(t.moveListened=!0)}),(!t.listened||!t.moveListened)&&t.annotations.forEach(r=>{!t.listened&&Ur(r.click)&&(t.listened=!0),t.moveListened||lw.forEach(i=>{Ur(r[i])&&(t.listened=!0,t.moveListened=!0)})})}function _ke(e,t,n){if(e.listened)switch(t.type){case"mousemove":case"mouseout":return Cke(e,t,n);case"click":return Ske(e,t,n)}}function Cke(e,t,n){if(!e.moveListened)return;let r;t.type==="mousemove"?r=XC(e,t,n.interaction):r=[];const i=e.hovered;e.hovered=r;const o={state:e,event:t};let a=nI(o,"leave",i,r);return nI(o,"enter",r,i)||a}function nI({state:e,event:t},n,r,i){let o;for(const a of r)i.indexOf(a)<0&&(o=MB(a.options[n]||e.listeners[n],a,t)||o);return o}function Ske(e,t,n){const r=e.listeners,i=XC(e,t,n.interaction);let o;for(const a of i)o=MB(a.options.click||r.click,a,t)||o;return o}function MB(e,t,n){return Vt(e,[t.$context,n])===!0}const bm=["afterDraw","beforeDraw"];function Tke(e,t,n){const r=t.visibleElements;t.hooked=_B(n,bm,t.hooks),t.hooked||r.forEach(i=>{t.hooked||bm.forEach(o=>{Ur(i.options[o])&&(t.hooked=!0)})})}function rI(e,t,n){if(e.hooked){const r=t.options[n]||e.hooks[n];return Vt(r,[t.$context])}}function Eke(e,t,n){const r=Ake(e.scales,t,n);let i=iI(t,r,"min","suggestedMin");i=iI(t,r,"max","suggestedMax")||i,i&&Ur(t.handleTickRangeOptions)&&t.handleTickRangeOptions()}function Oke(e,t){for(const n of e)Rke(n,t)}function iI(e,t,n,r){if(rr(t[n])&&!Pke(e.options,n,r)){const i=e[n]!==t[n];return e[n]=t[n],i}}function Pke(e,t,n){return oi(e[t])||oi(e[n])}function Rke(e,t){for(const n of["scaleID","xScaleID","yScaleID"]){const r=al(t,e,n);r&&!t[r]&&Mke(e,n)&&console.warn(`No scale found with id '${r}' for annotation '${e.id}'`)}}function Mke(e,t){if(t==="scaleID")return!0;const n=t.charAt(0);for(const r of["Min","Max","Value"])if(oi(e[n+r]))return!0;return!1}function Ake(e,t,n){const r=t.axis,i=t.id,o=r+"ScaleID",a={min:ft(t.min,Number.NEGATIVE_INFINITY),max:ft(t.max,Number.POSITIVE_INFINITY)};for(const s of n)s.scaleID===i?oI(s,t,["value","endValue"],a):al(e,s,o)===i&&oI(s,t,[r+"Min",r+"Max",r+"Value"],a);return a}function oI(e,t,n,r){for(const i of n){const o=e[i];if(oi(o)){const a=t.parse(o);r.min=Math.min(r.min,a),r.max=Math.max(r.max,a)}}}class hc extends ki{inRange(t,n,r,i){const{x:o,y:a}=vl({x:t,y:n},this.getCenterPoint(i),mr(-this.options.rotation));return vB({x:o,y:a},this.getProps(["x","y","x2","y2"],i),r,this.options.borderWidth)}getCenterPoint(t){return dc(this,t)}draw(t){t.save(),JC(t,this.getCenterPoint(),this.options.rotation),SB(t,this,this.options),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){return PB(t,n)}}hc.id="boxAnnotation";hc.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,label:{backgroundColor:"transparent",borderWidth:0,callout:{display:!1},color:"black",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,opacity:void 0,padding:6,position:"center",rotation:void 0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};hc.defaultRoutes={borderColor:"color",backgroundColor:"color"};hc.descriptors={label:{_fallback:!0}};const AB=["left","bottom","top","right"];class Kf extends ki{inRange(t,n,r,i){const{x:o,y:a}=vl({x:t,y:n},this.getCenterPoint(i),mr(-this.rotation));return vB({x:o,y:a},this.getProps(["x","y","x2","y2"],i),r,this.options.borderWidth)}getCenterPoint(t){return dc(this,t)}draw(t){const n=this.options,r=!oi(this._visible)||this._visible;!n.display||!n.content||!r||(t.save(),JC(t,this.getCenterPoint(),this.rotation),Ike(t,this),SB(t,this,n),ake(t,Bke(this),n),t.restore())}resolveElementProperties(t,n){let r;if(wB(n))r=EB(t,n);else{const{centerX:s,centerY:l}=tS(t,n);r={x:s,y:l}}const i=Er(n.padding),o=eS(t.ctx,n),a=Dke(r,o,n,i);return{initProperties:qf(t,a,n),pointX:r.x,pointY:r.y,...a,rotation:n.rotation}}}Kf.id="labelAnnotation";Kf.defaults={adjustScaleRange:!0,backgroundColor:"transparent",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:0,callout:{borderCapStyle:"butt",borderColor:void 0,borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:1,display:!1,margin:5,position:"auto",side:5,start:"50%"},color:"black",content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,init:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};Kf.defaultRoutes={borderColor:"color"};function Dke(e,t,n,r){const i=t.width+r.width+n.borderWidth,o=t.height+r.height+n.borderWidth,a=QC(n.position,"center"),s=aI(e.x,i,n.xAdjust,a.x),l=aI(e.y,o,n.yAdjust,a.y);return{x:s,y:l,x2:s+i,y2:l+o,width:i,height:o,centerX:s+i/2,centerY:l+o/2}}function aI(e,t,n=0,r){return e-ZC(t,r)+n}function Ike(e,t){const{pointX:n,pointY:r,options:i}=t,o=i.callout,a=o&&o.display&&Fke(t,o);if(!a||Uke(t,o,a))return;if(e.save(),e.beginPath(),!Ga(e,o))return e.restore();const{separatorStart:l,separatorEnd:u}=$ke(t,a),{sideStart:d,sideEnd:h}=kke(t,a,l);(o.margin>0||i.borderWidth===0)&&(e.moveTo(l.x,l.y),e.lineTo(u.x,u.y)),e.moveTo(d.x,d.y),e.lineTo(h.x,h.y);const p=vl({x:n,y:r},t.getCenterPoint(),mr(-t.rotation));e.lineTo(p.x,p.y),e.stroke(),e.restore()}function $ke(e,t){const{x:n,y:r,x2:i,y2:o}=e,a=Lke(e,t);let s,l;return t==="left"||t==="right"?(s={x:n+a,y:r},l={x:s.x,y:o}):(s={x:n,y:r+a},l={x:i,y:s.y}),{separatorStart:s,separatorEnd:l}}function Lke(e,t){const{width:n,height:r,options:i}=e,o=i.callout.margin+i.borderWidth/2;return t==="right"?n+o:t==="bottom"?r+o:-o}function kke(e,t,n){const{y:r,width:i,height:o,options:a}=e,s=a.callout.start,l=Nke(t,a.callout);let u,d;return t==="left"||t==="right"?(u={x:n.x,y:r+Va(o,s)},d={x:u.x+l,y:u.y}):(u={x:n.x+Va(i,s),y:n.y},d={x:u.x,y:u.y+l}),{sideStart:u,sideEnd:d}}function Nke(e,t){const n=t.side;return e==="left"||e==="top"?-n:n}function Fke(e,t){const n=t.position;return AB.includes(n)?n:jke(e,t)}function jke(e,t){const{x:n,y:r,x2:i,y2:o,width:a,height:s,pointX:l,pointY:u,centerX:d,centerY:h,rotation:p}=e,g={x:d,y:h},m=t.start,y=Va(a,m),b=Va(s,m),x=[n,n+y,n+y,i],S=[r+b,o,r,o],w=[];for(let C=0;C<4;C++){const R=vl({x:x[C],y:S[C]},g,mr(p));w.push({position:AB[C],distance:ku(R,{x:l,y:u})})}return w.sort((C,R)=>C.distance-R.distance)[0].position}function Bke({x:e,y:t,width:n,height:r,options:i}){const o=i.borderWidth/2,a=Er(i.padding);return{x:e+a.left+o,y:t+a.top+o,width:n-a.left-a.right-i.borderWidth,height:r-a.top-a.bottom-i.borderWidth}}function Uke(e,t,n){const{pointX:r,pointY:i}=e,o=t.margin;let a=r,s=i;return n==="left"?a+=o:n==="right"?a-=o:n==="top"?s+=o:n==="bottom"&&(s-=o),e.inRange(a,s)}const rS=(e,t,n)=>({x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}),uw=(e,t,n)=>rS(t,n,Math.abs((e-t.y)/(n.y-t.y))).x,sI=(e,t,n)=>rS(t,n,Math.abs((e-t.x)/(n.x-t.x))).y,gd=e=>e*e,Wke=(e,t,{x:n,y:r,x2:i,y2:o},a)=>a==="y"?{start:Math.min(r,o),end:Math.max(r,o),value:t}:{start:Math.min(n,i),end:Math.max(n,i),value:e},lI=(e,t,n,r)=>(1-r)*(1-r)*e+2*(1-r)*r*t+r*r*n,cw=(e,t,n,r)=>({x:lI(e.x,t.x,n.x,r),y:lI(e.y,t.y,n.y,r)}),uI=(e,t,n,r)=>2*(1-r)*(t-e)+2*r*(n-t),cI=(e,t,n,r)=>-Math.atan2(uI(e.x,t.x,n.x,r),uI(e.y,t.y,n.y,r))+.5*qt;class Yf extends ki{inRange(t,n,r,i){const o=this.options.borderWidth/2;if(r!=="x"&&r!=="y"){const a={mouseX:t,mouseY:n},{path:s,ctx:l}=this;if(s){Ga(l,this.options);const{chart:d}=this.$context,h=t*d.currentDevicePixelRatio,p=n*d.currentDevicePixelRatio,g=l.isPointInStroke(s,h,p)||dw(this,a,i);return l.restore(),g}const u=gd(o);return Gke(this,a,u,i)||dw(this,a,i)}return Hke(this,{mouseX:t,mouseY:n},r,{hBorderWidth:o,useFinalPosition:i})}getCenterPoint(t){return dc(this,t)}draw(t){const{x:n,y:r,x2:i,y2:o,cp:a,options:s}=this;if(t.save(),!Ga(t,s))return t.restore();fc(t,s);const l=Math.sqrt(Math.pow(i-n,2)+Math.pow(o-r,2));if(s.curve&&a)return eNe(t,this,a,l),t.restore();const{startOpts:u,endOpts:d,startAdjust:h,endAdjust:p}=DB(this),g=Math.atan2(o-r,i-n);t.translate(n,r),t.rotate(g),t.beginPath(),t.moveTo(0+h,0),t.lineTo(l-p,0),t.shadowColor=s.borderShadowColor,t.stroke(),fw(t,0,h,u),fw(t,l,-p,d),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){const r=pke(t,n),{x:i,y:o,x2:a,y2:s}=r,l=zke(r,t.chartArea),u=l?Vke({x:i,y:o},{x:a,y:s},t.chartArea):{x:i,y:o,x2:a,y2:s,width:Math.abs(a-i),height:Math.abs(s-o)};if(u.centerX=(a+i)/2,u.centerY=(s+o)/2,u.initProperties=qf(t,u,n),n.curve){const h={x:u.x,y:u.y},p={x:u.x2,y:u.y2};u.cp=Jke(u,n,ku(h,p))}const d=qke(t,u,n.label);return d._visible=l,u.elements=[{type:"label",optionScope:"label",properties:d,initProperties:u.initProperties}],u}}Yf.id="lineAnnotation";const dI={backgroundColor:void 0,backgroundShadowColor:void 0,borderColor:void 0,borderDash:void 0,borderDashOffset:void 0,borderShadowColor:void 0,borderWidth:void 0,display:void 0,fill:void 0,length:void 0,shadowBlur:void 0,shadowOffsetX:void 0,shadowOffsetY:void 0,width:void 0};Yf.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},dI),fill:!1,length:12,start:Object.assign({},dI),width:6},borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:2,curve:!1,controlPoint:{y:"-50%"},display:!0,endValue:void 0,init:void 0,label:{backgroundColor:"rgba(0,0,0,0.8)",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderColor:"black",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:6,borderShadowColor:"transparent",borderWidth:0,callout:Object.assign({},Kf.defaults.callout),color:"#fff",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},scaleID:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,value:void 0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};Yf.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}};Yf.defaultRoutes={borderColor:"color"};function Hke(e,{mouseX:t,mouseY:n},r,{hBorderWidth:i,useFinalPosition:o}){const a=Wke(t,n,e.getProps(["x","y","x2","y2"],o),r);return a.value>=a.start-i&&a.value<=a.end+i||dw(e,{mouseX:t,mouseY:n},o,r)}function zke({x:e,y:t,x2:n,y2:r},{top:i,right:o,bottom:a,left:s}){return!(e<s&&n<s||e>o&&n>o||t<i&&r<i||t>a&&r>a)}function fI({x:e,y:t},n,{top:r,right:i,bottom:o,left:a}){return e<a&&(t=sI(a,{x:e,y:t},n),e=a),e>i&&(t=sI(i,{x:e,y:t},n),e=i),t<r&&(e=uw(r,{x:e,y:t},n),t=r),t>o&&(e=uw(o,{x:e,y:t},n),t=o),{x:e,y:t}}function Vke(e,t,n){const{x:r,y:i}=fI(e,t,n),{x:o,y:a}=fI(t,e,n);return{x:r,y:i,x2:o,y2:a,width:Math.abs(o-r),height:Math.abs(a-i)}}function Gke(e,{mouseX:t,mouseY:n},r=js,i){const{x:o,y:a,x2:s,y2:l}=e.getProps(["x","y","x2","y2"],i),u=s-o,d=l-a,h=gd(u)+gd(d),p=h===0?-1:((t-o)*u+(n-a)*d)/h;let g,m;return p<0?(g=o,m=a):p>1?(g=s,m=l):(g=o+p*u,m=a+p*d),gd(t-g)+gd(n-m)<=r}function dw(e,{mouseX:t,mouseY:n},r,i){const o=e.label;return o.options.display&&o.inRange(t,n,i,r)}function qke(e,t,n){const r=n.borderWidth,i=Er(n.padding),o=eS(e.ctx,n),a=o.width+i.width+r,s=o.height+i.height+r;return Yke(t,n,{width:a,height:s,padding:i},e.chartArea)}function Kke(e){const{x:t,y:n,x2:r,y2:i}=e,o=Math.atan2(i-n,r-t);return o>qt/2?o-qt:o<qt/-2?o+qt:o}function Yke(e,t,n,r){const{width:i,height:o,padding:a}=n,{xAdjust:s,yAdjust:l}=t,u={x:e.x,y:e.y},d={x:e.x2,y:e.y2},h=t.rotation==="auto"?Kke(e):mr(t.rotation),p=Xke(i,o,h),g=Zke(e,t,{labelSize:p,padding:a},r),m=e.cp?cw(u,e.cp,d,g):rS(u,d,g),y={size:p.w,min:r.left,max:r.right,padding:a.left},b={size:p.h,min:r.top,max:r.bottom,padding:a.top},x=pI(m.x,y)+s,S=pI(m.y,b)+l;return{x:x-i/2,y:S-o/2,x2:x+i/2,y2:S+o/2,centerX:x,centerY:S,pointX:m.x,pointY:m.y,width:i,height:o,rotation:lj(h)}}function Xke(e,t,n){const r=Math.cos(n),i=Math.sin(n);return{w:Math.abs(e*r)+Math.abs(t*i),h:Math.abs(e*i)+Math.abs(t*r)}}function Zke(e,t,n,r){let i;const o=Qke(e,r);return t.position==="start"?i=hI({w:e.x2-e.x,h:e.y2-e.y},n,t,o):t.position==="end"?i=1-hI({w:e.x-e.x2,h:e.y-e.y2},n,t,o):i=ZC(1,t.position),i}function hI(e,t,n,r){const{labelSize:i,padding:o}=t,a=e.w*r.dx,s=e.h*r.dy,l=a>0&&(i.w/2+o.left-r.x)/a,u=s>0&&(i.h/2+o.top-r.y)/s;return ry(Math.max(l,u),0,.25)}function Qke(e,t){const{x:n,x2:r,y:i,y2:o}=e,a=Math.min(i,o)-t.top,s=Math.min(n,r)-t.left,l=t.bottom-Math.max(i,o),u=t.right-Math.max(n,r);return{x:Math.min(s,u),y:Math.min(a,l),dx:s<=u?1:-1,dy:a<=l?1:-1}}function pI(e,t){const{size:n,min:r,max:i,padding:o}=t,a=n/2;return n>i-r?(i+r)/2:(r>=e-o-a&&(e=r+o+a),i<=e+o+a&&(e=i-o-a),e)}function DB(e){const t=e.options,n=t.arrowHeads&&t.arrowHeads.start,r=t.arrowHeads&&t.arrowHeads.end;return{startOpts:n,endOpts:r,startAdjust:gI(e,n),endAdjust:gI(e,r)}}function gI(e,t){if(!t||!t.display)return 0;const{length:n,width:r}=t,i=e.options.borderWidth/2,o={x:n,y:r+i};return Math.abs(uw(0,o,{x:0,y:i}))}function fw(e,t,n,r){if(!r||!r.display)return;const{length:i,width:o,fill:a,backgroundColor:s,borderColor:l}=r,u=Math.abs(t-i)+n;e.beginPath(),fc(e,r),Ga(e,r),e.moveTo(u,-o),e.lineTo(t+n,0),e.lineTo(u,o),a===!0?(e.fillStyle=s||l,e.closePath(),e.fill(),e.shadowColor="transparent"):e.shadowColor=r.borderShadowColor,e.stroke()}function Jke(e,t,n){const{x:r,y:i,x2:o,y2:a,centerX:s,centerY:l}=e,u=Math.atan2(a-i,o-r),d=QC(t.controlPoint,0),h={x:s+Va(n,d.x,!1),y:l+Va(n,d.y,!1)};return vl(h,{x:s,y:l},u)}function mI(e,{x:t,y:n},{angle:r,adjust:i},o){!o||!o.display||(e.save(),e.translate(t,n),e.rotate(r),fw(e,0,-i,o),e.restore())}function eNe(e,t,n,r){const{x:i,y:o,x2:a,y2:s,options:l}=t,{startOpts:u,endOpts:d,startAdjust:h,endAdjust:p}=DB(t),g={x:i,y:o},m={x:a,y:s},y=cI(g,n,m,0),b=cI(g,n,m,1)-qt,x=cw(g,n,m,h/r),S=cw(g,n,m,1-p/r),w=new Path2D;e.beginPath(),w.moveTo(x.x,x.y),w.quadraticCurveTo(n.x,n.y,S.x,S.y),e.shadowColor=l.borderShadowColor,e.stroke(w),t.path=w,t.ctx=e,mI(e,x,{angle:y,adjust:h},u),mI(e,S,{angle:b,adjust:p},d)}class Xf extends ki{inRange(t,n,r,i){const o=this.options.rotation,a=this.options.borderWidth;if(r!=="x"&&r!=="y")return tNe({x:t,y:n},this.getProps(["width","height","centerX","centerY"],i),o,a);const{x:s,y:l,x2:u,y2:d}=this.getProps(["x","y","x2","y2"],i),h=a/2,p=r==="y"?{start:l,end:d}:{start:s,end:u},g=vl({x:t,y:n},this.getCenterPoint(i),mr(-o));return g[r]>=p.start-h-js&&g[r]<=p.end+h+js}getCenterPoint(t){return dc(this,t)}draw(t){const{width:n,height:r,centerX:i,centerY:o,options:a}=this;t.save(),JC(t,this.getCenterPoint(),a.rotation),fc(t,this.options),t.beginPath(),t.fillStyle=a.backgroundColor;const s=Ga(t,a);t.ellipse(i,o,r/2,n/2,qt/2,0,2*qt),t.fill(),s&&(t.shadowColor=a.borderShadowColor,t.stroke()),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){return PB(t,n,!0)}}Xf.id="ellipseAnnotation";Xf.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,label:Object.assign({},hc.defaults.label),rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};Xf.defaultRoutes={borderColor:"color",backgroundColor:"color"};Xf.descriptors={label:{_fallback:!0}};function tNe(e,t,n,r){const{width:i,height:o,centerX:a,centerY:s}=t,l=i/2,u=o/2;if(l<=0||u<=0)return!1;const d=mr(n||0),h=r/2||0,p=Math.cos(d),g=Math.sin(d),m=Math.pow(p*(e.x-a)+g*(e.y-s),2),y=Math.pow(g*(e.x-a)-p*(e.y-s),2);return m/Math.pow(l+h,2)+y/Math.pow(u+h,2)<=1.0001}class oy extends ki{inRange(t,n,r,i){const{x:o,y:a,x2:s,y2:l,width:u}=this.getProps(["x","y","x2","y2","width"],i),d=this.options.borderWidth;if(r!=="x"&&r!=="y")return eke({x:t,y:n},this.getCenterPoint(i),u/2,d);const h=d/2,p=r==="y"?{start:a,end:l,value:n}:{start:o,end:s,value:t};return p.value>=p.start-h&&p.value<=p.end+h}getCenterPoint(t){return dc(this,t)}draw(t){const n=this.options,r=n.borderWidth;if(n.radius<.1)return;t.save(),t.fillStyle=n.backgroundColor,fc(t,n);const i=Ga(t,n);lke(t,this,this.centerX,this.centerY),i&&!iy(n.pointStyle)&&(t.shadowColor=n.borderShadowColor,t.stroke()),t.restore(),n.borderWidth=r}resolveElementProperties(t,n){const r=OB(t,n);return r.initProperties=qf(t,r,n,!0),r}}oy.id="pointAnnotation";oy.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,pointStyle:"circle",radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};oy.defaultRoutes={borderColor:"color",backgroundColor:"color"};class ay extends ki{inRange(t,n,r,i){if(r!=="x"&&r!=="y")return this.options.radius>=.1&&this.elements.length>1&&rNe(this.elements,t,n,i);const o=vl({x:t,y:n},this.getCenterPoint(i),mr(-this.options.rotation)),a=this.elements.map(u=>r==="y"?u.bY:u.bX),s=Math.min(...a),l=Math.max(...a);return o[r]>=s&&o[r]<=l}getCenterPoint(t){return dc(this,t)}draw(t){const{elements:n,options:r}=this;t.save(),t.beginPath(),t.fillStyle=r.backgroundColor,fc(t,r);const i=Ga(t,r);let o=!0;for(const a of n)o?(t.moveTo(a.x,a.y),o=!1):t.lineTo(a.x,a.y);t.closePath(),t.fill(),i&&(t.shadowColor=r.borderShadowColor,t.stroke()),t.restore()}resolveElementProperties(t,n){const r=OB(t,n),{sides:i,rotation:o}=n,a=[],s=2*qt/i;let l=o*DC;for(let u=0;u<i;u++,l+=s){const d=nNe(r,n,l);d.initProperties=qf(t,r,n),a.push(d)}return r.elements=a,r}}ay.id="polygonAnnotation";ay.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,point:{radius:0},radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,sides:3,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};ay.defaultRoutes={borderColor:"color",backgroundColor:"color"};function nNe({centerX:e,centerY:t},{radius:n,borderWidth:r},i){const o=r/2,a=Math.sin(i),s=Math.cos(i),l={x:e+a*n,y:t-s*n};return{type:"point",optionScope:"point",properties:{x:l.x,y:l.y,centerX:l.x,centerY:l.y,bX:e+a*(n+o),bY:t-s*(n+o)}}}function rNe(e,t,n,r){let i=!1,o=e[e.length-1].getProps(["bX","bY"],r);for(const a of e){const s=a.getProps(["bX","bY"],r);s.bY>n!=o.bY>n&&t<(o.bX-s.bX)*(n-s.bY)/(o.bY-s.bY)+s.bX&&(i=!i),o=s}return i}const Wa={box:hc,ellipse:Xf,label:Kf,line:Yf,point:oy,polygon:ay};Object.keys(Wa).forEach(e=>{Sn.describe(`elements.${Wa[e].id}`,{_fallback:"plugins.annotation.common"})});const iNe={update:Object.assign},oNe=nS.concat(bm),vI=(e,t)=>gt(t)?pw(e,t):e,hw=e=>e==="color"||e==="font";function iS(e="line"){return Wa[e]?e:(console.warn(`Unknown annotation type: '${e}', defaulting to 'line'`),"line")}function aNe(e,t,n,r){const i=lNe(e,n.animations,r),o=t.annotations,a=dNe(t.elements,o);for(let s=0;s<o.length;s++){const l=o[s],u=IB(a,s,l.type),d=l.setContext(cNe(e,u,l)),h=u.resolveElementProperties(e,d);h.skip=sNe(h),"elements"in h&&(uNe(u,h.elements,d,i),delete h.elements),oi(u.x)||Object.assign(u,h),Object.assign(u,h.initProperties),h.options=$B(d),i.update(u,h)}}function sNe(e){return isNaN(e.x)||isNaN(e.y)}function lNe(e,t,n){return n==="reset"||n==="none"||n==="resize"?iNe:new jC(e,t)}function uNe(e,t,n,r){const i=e.elements||(e.elements=[]);i.length=t.length;for(let o=0;o<t.length;o++){const a=t[o],s=a.properties,l=IB(i,o,a.type,a.initProperties),u=n[a.optionScope].override(a);s.options=$B(u),r.update(l,s)}}function IB(e,t,n,r){const i=Wa[iS(n)];let o=e[t];return(!o||!(o instanceof i))&&(o=e[t]=new i,Object.assign(o,r)),o}function $B(e){const t=Wa[iS(e.type)],n={};n.id=e.id,n.type=e.type,n.drawTime=e.drawTime,Object.assign(n,pw(e,t.defaults),pw(e,t.defaultRoutes));for(const r of oNe)n[r]=e[r];return n}function pw(e,t){const n={};for(const r of Object.keys(t)){const i=t[r],o=e[r];hw(r)&&nn(o)?n[r]=o.map(a=>vI(a,i)):n[r]=vI(o,i)}return n}function cNe(e,t,n){return t.$context||(t.$context=Object.assign(Object.create(e.getContext()),{element:t,id:n.id,type:"annotation"}))}function dNe(e,t){const n=t.length,r=e.length;if(r<n){const i=n-r;e.splice(r,0,...new Array(i))}else r>n&&e.splice(n,r-n);return e}var fNe="2.2.1";const Da=new Map,hNe=nS.concat(bm);var pNe={id:"annotation",version:fNe,beforeRegister(){tke("chart.js","3.7",qs.version)},afterRegister(){qs.register(Wa)},afterUnregister(){qs.unregister(Wa)},beforeInit(e){Da.set(e,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hooks:{},hooked:!1,hovered:[]})},beforeUpdate(e,t,n){const r=Da.get(e),i=r.annotations=[];let o=n.annotations;gt(o)?Object.keys(o).forEach(a=>{const s=o[a];gt(s)&&(s.id=a,i.push(s))}):nn(o)&&i.push(...o),Oke(i,e.scales)},afterDataLimits(e,t){const n=Da.get(e);Eke(e,t.scale,n.annotations.filter(r=>r.display&&r.adjustScaleRange))},afterUpdate(e,t,n){const r=Da.get(e);wke(e,r,n),aNe(e,r,n,t.mode),r.visibleElements=r.elements.filter(i=>!i.skip&&i.options.display),Tke(e,r,n)},beforeDatasetsDraw(e,t,n){Rp(e,"beforeDatasetsDraw",n.clip)},afterDatasetsDraw(e,t,n){Rp(e,"afterDatasetsDraw",n.clip)},beforeDraw(e,t,n){Rp(e,"beforeDraw",n.clip)},afterDraw(e,t,n){Rp(e,"afterDraw",n.clip)},beforeEvent(e,t,n){const r=Da.get(e);_ke(r,t.event,n)&&(t.changed=!0)},afterDestroy(e){Da.delete(e)},_getState(e){return Da.get(e)},defaults:{animations:{numbers:{properties:["x","y","x2","y2","width","height","centerX","centerY","pointX","pointY","radius"],type:"number"}},clip:!0,interaction:{mode:void 0,axis:void 0,intersect:void 0},common:{drawTime:"afterDatasetsDraw",init:!1,label:{}}},descriptors:{_indexable:!1,_scriptable:e=>!hNe.includes(e)&&e!=="init",annotations:{_allKeys:!1,_fallback:(e,t)=>`elements.${Wa[iS(t.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:hw,_fallback:!0},_indexable:hw}},additionalOptionScopes:[""]};function Rp(e,t,n){const{ctx:r,chartArea:i}=e,o=Da.get(e);n&&zf(r,i);const a=gNe(o.visibleElements,t).sort((s,l)=>s.element.options.z-l.element.options.z);for(const s of a)mNe(r,i,o,s);n&&Vf(r)}function gNe(e,t){const n=[];for(const r of e)if(r.options.drawTime===t&&n.push({element:r,main:!0}),r.elements&&r.elements.length)for(const i of r.elements)i.options.display&&i.options.drawTime===t&&n.push({element:i});return n}function mNe(e,t,n,r){const i=r.element;r.main?(rI(n,i,"beforeDraw"),i.draw(e,t),rI(n,i,"afterDraw")):i.draw(e,t)}const vNe={id:"chartBackground",beforeDraw:(e,t,n)=>{const{ctx:r,height:i,width:o}=e;r.save(),r.globalCompositeOperation="destination-over",r.fillStyle=n.color||"#FFFFFF",r.fillRect(0,0,o,i),r.restore()}};/*!
|
|
1023
|
+
* chartjs-adapter-date-fns v3.0.0
|
|
1024
|
+
* https://www.chartjs.org
|
|
1025
|
+
* (c) 2022 chartjs-adapter-date-fns Contributors
|
|
1026
|
+
* Released under the MIT license
|
|
1027
|
+
*/const yNe={datetime:"MMM d, yyyy, h:mm:ss aaaa",millisecond:"h:mm:ss.SSS aaaa",second:"h:mm:ss aaaa",minute:"h:mm aaaa",hour:"ha",day:"MMM d",week:"PP",month:"MMM yyyy",quarter:"qqq - yyyy",year:"yyyy"};Mj._date.override({_id:"date-fns",formats:function(){return yNe},parse:function(e,t){if(e===null||typeof e>"u")return null;const n=typeof e;return n==="number"||e instanceof Date?e=_e(e):n==="string"&&(typeof t=="string"?e=N_(e,t,new Date,this.options):e=Ai(e,this.options)),Rf(e)?e.getTime():null},format:function(e,t){return Df(e,t,this.options)},add:function(e,t,n){switch(n){case"millisecond":return Pf(e,t);case"second":return A2(e,t);case"minute":return M2(e,t);case"hour":return R2(e,t);case"day":return Jd(e,t);case"week":return D2(e,t);case"month":return zs(e,t);case"quarter":return Tse(e,t);case"year":return wx(e,t);default:return e}},diff:function(e,t,n){switch(n){case"millisecond":return Mf(e,t);case"second":return F2(e,t);case"minute":return k2(e,t);case"hour":return L2(e,t);case"day":return A_(e,t);case"week":return j2(e,t);case"month":return D_(e,t);case"quarter":return N2(e,t);case"year":return B2(e,t);default:return 0}},startOf:function(e,t,n){switch(t){case"second":return Uue(e);case"minute":return Dse(e);case"hour":return Cx(e);case"day":return na(e);case"week":return Ad(e);case"isoWeek":return Ad(e,{weekStartsOn:+n});case"month":return ud(e);case"quarter":return Ise(e);case"year":return cd(e);default:return e}},endOf:function(e,t){switch(t){case"second":return Nse(e);case"minute":return Lse(e);case"hour":return $se(e);case"day":return Ru(e);case"week":return Yp(e);case"month":return Bg(e);case"quarter":return kse(e);case"year":return Kp(e);default:return e}}});qs.register(nw,rw,Ba,YC,rg,uf,pNe,vNe,EIe,DIe,BIe);export{X8 as C,MNe as D,RNe as E,Lne as L,ANe as P,TNe as Q,ONe as R,Nk as S,DNe as T,ENe as a,oie as b,r$ as c,_ as j,INe as q,kNe as r,PNe as u};
|