@steedos-widgets/fullcalendar 1.0.19 → 1.0.21
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/fullcalendar.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};function t(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};function r(e,t,n,r){return new(n||(n=Promise))((function(a,o){function i(e){try{s(r.next(e))}catch(e){o(e)}}function l(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((r=r.apply(e,t||[])).next())}))}function a(e,t){var n,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,r=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(6===o[0]&&i.label<a[1]){i.label=a[1],a=o;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(o);break}a[2]&&i.ops.pop(),i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e],r=0}finally{n=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}function o(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a<o;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var s,u={exports:{}},c={};function d(){if(s)return c;s=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var w=b.prototype=new y;w.constructor=b,v(w,g.prototype),w.isPureReactComponent=!0;var k=Array.isArray,S=Object.prototype.hasOwnProperty,x={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function T(t,n,r){var a,o={},i=null,l=null;if(null!=n)for(a in void 0!==n.ref&&(l=n.ref),void 0!==n.key&&(i=""+n.key),n)S.call(n,a)&&!E.hasOwnProperty(a)&&(o[a]=n[a]);var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];o.children=u}if(t&&t.defaultProps)for(a in s=t.defaultProps)void 0===o[a]&&(o[a]=s[a]);return{$$typeof:e,type:t,key:i,ref:l,props:o,_owner:x.current}}function _(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var C=/\/+/g;function D(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function R(n,r,a,o,i){var l=typeof n;"undefined"!==l&&"boolean"!==l||(n=null);var s=!1;if(null===n)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(n.$$typeof){case e:case t:s=!0}}if(s)return i=i(s=n),n=""===o?"."+D(s,0):o,k(i)?(a="",null!=n&&(a=n.replace(C,"$&/")+"/"),R(i,r,a,"",(function(e){return e}))):null!=i&&(_(i)&&(i=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(i,a+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(C,"$&/")+"/")+n)),r.push(i)),1;if(s=0,o=""===o?".":o+":",k(n))for(var u=0;u<n.length;u++){var c=o+D(l=n[u],u);s+=R(l,r,a,c,i)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),u=0;!(l=n.next()).done;)s+=R(l=l.value,r,a,c=o+D(l,u++),i);else if("object"===l)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return s}function P(e,t,n){if(null==e)return e;var r=[],a=0;return R(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function N(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},M={transition:null},O={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:M,ReactCurrentOwner:x};return c.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},c.Component=g,c.Fragment=n,c.Profiler=a,c.PureComponent=b,c.StrictMode=r,c.Suspense=u,c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,c.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var a=v({},t.props),o=t.key,i=t.ref,l=t._owner;if(null!=n){if(void 0!==n.ref&&(i=n.ref,l=x.current),void 0!==n.key&&(o=""+n.key),t.type&&t.type.defaultProps)var s=t.type.defaultProps;for(u in n)S.call(n,u)&&!E.hasOwnProperty(u)&&(a[u]=void 0===n[u]&&void 0!==s?s[u]:n[u])}var u=arguments.length-2;if(1===u)a.children=r;else if(1<u){s=Array(u);for(var c=0;c<u;c++)s[c]=arguments[c+2];a.children=s}return{$$typeof:e,type:t.type,key:o,ref:i,props:a,_owner:l}},c.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},c.createElement=T,c.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},c.createRef=function(){return{current:null}},c.forwardRef=function(e){return{$$typeof:l,render:e}},c.isValidElement=_,c.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:N}},c.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},c.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},c.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},c.useCallback=function(e,t){return I.current.useCallback(e,t)},c.useContext=function(e){return I.current.useContext(e)},c.useDebugValue=function(){},c.useDeferredValue=function(e){return I.current.useDeferredValue(e)},c.useEffect=function(e,t){return I.current.useEffect(e,t)},c.useId=function(){return I.current.useId()},c.useImperativeHandle=function(e,t,n){return I.current.useImperativeHandle(e,t,n)},c.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},c.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},c.useMemo=function(e,t){return I.current.useMemo(e,t)},c.useReducer=function(e,t,n){return I.current.useReducer(e,t,n)},c.useRef=function(e){return I.current.useRef(e)},c.useState=function(e){return I.current.useState(e)},c.useSyncExternalStore=function(e,t,n){return I.current.useSyncExternalStore(e,t,n)},c.useTransition=function(){return I.current.useTransition()},c.version="18.2.0",c}var f,p,h={exports:{}};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},extendStatics(e,t)};function __extends(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var __assign$1=function(){return __assign$1=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},__assign$1.apply(this,arguments)};function __rest(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function __awaiter(e,t,n,r){return new(n||(n=Promise))((function(a,o){function i(e){try{s(r.next(e))}catch(e){o(e)}}function l(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((r=r.apply(e,t||[])).next())}))}function __generator(e,t){var n,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,r=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(6===o[0]&&i.label<a[1]){i.label=a[1],a=o;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(o);break}a[2]&&i.ops.pop(),i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e],r=0}finally{n=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}function __spreadArray(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a<o;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var react={exports:{}},react_production_min={},hasRequiredReact_production_min;function requireReact_production_min(){if(hasRequiredReact_production_min)return react_production_min;hasRequiredReact_production_min=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,h={};function m(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||f}function v(){}function g(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||f}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=m.prototype;var y=g.prototype=new v;y.constructor=g,p(y,m.prototype),y.isPureReactComponent=!0;var b=Array.isArray,w=Object.prototype.hasOwnProperty,S={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function _(t,n,r){var a,o={},i=null,l=null;if(null!=n)for(a in void 0!==n.ref&&(l=n.ref),void 0!==n.key&&(i=""+n.key),n)w.call(n,a)&&!E.hasOwnProperty(a)&&(o[a]=n[a]);var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];o.children=u}if(t&&t.defaultProps)for(a in s=t.defaultProps)void 0===o[a]&&(o[a]=s[a]);return{$$typeof:e,type:t,key:i,ref:l,props:o,_owner:S.current}}function k(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var T=/\/+/g;function x(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(n,r,a,o,i){var l=typeof n;"undefined"!==l&&"boolean"!==l||(n=null);var s=!1;if(null===n)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(n.$$typeof){case e:case t:s=!0}}if(s)return i=i(s=n),n=""===o?"."+x(s,0):o,b(i)?(a="",null!=n&&(a=n.replace(T,"$&/")+"/"),C(i,r,a,"",(function(e){return e}))):null!=i&&(k(i)&&(i=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(i,a+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(T,"$&/")+"/")+n)),r.push(i)),1;if(s=0,o=""===o?".":o+":",b(n))for(var u=0;u<n.length;u++){var c=o+x(l=n[u],u);s+=C(l,r,a,c,i)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),u=0;!(l=n.next()).done;)s+=C(l=l.value,r,a,c=o+x(l,u++),i);else if("object"===l)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return s}function D(e,t,n){if(null==e)return e;var r=[],a=0;return C(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function R(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var N={current:null},P={transition:null},I={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:P,ReactCurrentOwner:S};return react_production_min.Children={map:D,forEach:function(e,t,n){D(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return D(e,(function(){t++})),t},toArray:function(e){return D(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},react_production_min.Component=m,react_production_min.Fragment=n,react_production_min.Profiler=a,react_production_min.PureComponent=g,react_production_min.StrictMode=r,react_production_min.Suspense=s,react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,react_production_min.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var a=p({},t.props),o=t.key,i=t.ref,l=t._owner;if(null!=n){if(void 0!==n.ref&&(i=n.ref,l=S.current),void 0!==n.key&&(o=""+n.key),t.type&&t.type.defaultProps)var s=t.type.defaultProps;for(u in n)w.call(n,u)&&!E.hasOwnProperty(u)&&(a[u]=void 0===n[u]&&void 0!==s?s[u]:n[u])}var u=arguments.length-2;if(1===u)a.children=r;else if(1<u){s=Array(u);for(var c=0;c<u;c++)s[c]=arguments[c+2];a.children=s}return{$$typeof:e,type:t.type,key:o,ref:i,props:a,_owner:l}},react_production_min.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},react_production_min.createElement=_,react_production_min.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},react_production_min.createRef=function(){return{current:null}},react_production_min.forwardRef=function(e){return{$$typeof:l,render:e}},react_production_min.isValidElement=k,react_production_min.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:R}},react_production_min.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},react_production_min.startTransition=function(e){var t=P.transition;P.transition={};try{e()}finally{P.transition=t}},react_production_min.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},react_production_min.useCallback=function(e,t){return N.current.useCallback(e,t)},react_production_min.useContext=function(e){return N.current.useContext(e)},react_production_min.useDebugValue=function(){},react_production_min.useDeferredValue=function(e){return N.current.useDeferredValue(e)},react_production_min.useEffect=function(e,t){return N.current.useEffect(e,t)},react_production_min.useId=function(){return N.current.useId()},react_production_min.useImperativeHandle=function(e,t,n){return N.current.useImperativeHandle(e,t,n)},react_production_min.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},react_production_min.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},react_production_min.useMemo=function(e,t){return N.current.useMemo(e,t)},react_production_min.useReducer=function(e,t,n){return N.current.useReducer(e,t,n)},react_production_min.useRef=function(e){return N.current.useRef(e)},react_production_min.useState=function(e){return N.current.useState(e)},react_production_min.useSyncExternalStore=function(e,t,n){return N.current.useSyncExternalStore(e,t,n)},react_production_min.useTransition=function(){return N.current.useTransition()},react_production_min.version="18.2.0",react_production_min}var react_development={exports:{}},hasRequiredReact_development,module;
|
|
2
2
|
/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react.development.js
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/function v(){return f||(f=1,function(e,t){"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),v=Symbol.iterator;function m(e){if(null===e||"object"!=typeof e)return null;var t=v&&e[v]||e["@@iterator"];return"function"==typeof t?t:null}var g={current:null},y={transition:null},b={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},w={current:null},k={},S=null;function x(e){S=e}k.setExtraStackFrame=function(e){S=e},k.getCurrentStack=null,k.getStackAddendum=function(){var e="";S&&(e+=S);var t=k.getCurrentStack;return t&&(e+=t()||""),e};var E={ReactCurrentDispatcher:g,ReactCurrentBatchConfig:y,ReactCurrentOwner:w};function T(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];C("warn",e,n)}function _(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];C("error",e,n)}function C(e,t,n){var r=E.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var a=n.map((function(e){return String(e)}));a.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,a)}E.ReactDebugCurrentFrame=k,E.ReactCurrentActQueue=b;var D={};function R(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",a=r+"."+t;D[a]||(_("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,r),D[a]=!0)}var P={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){R(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){R(e,"replaceState")},enqueueSetState:function(e,t,n,r){R(e,"setState")}},N=Object.assign,I={};function M(e,t,n){this.props=e,this.context=t,this.refs=I,this.updater=n||P}Object.freeze(I),M.prototype.isReactComponent={},M.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},M.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var O={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},L=function(e,t){Object.defineProperty(M.prototype,e,{get:function(){T("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var z in O)O.hasOwnProperty(z)&&L(z,O[z]);function A(){}function F(e,t,n){this.props=e,this.context=t,this.refs=I,this.updater=n||P}A.prototype=M.prototype;var H=F.prototype=new A;H.constructor=F,N(H,M.prototype),H.isPureReactComponent=!0;var j=Array.isArray;function U(e){return j(e)}function V(e){return""+e}function W(e){if(function(e){try{return V(e),!1}catch(e){return!0}}(e))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),V(e)}function B(e){return e.displayName||"Context"}function $(e){if(null==e)return null;if("number"==typeof e.tag&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case a:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case s:return B(e)+".Consumer";case l:return B(e._context)+".Provider";case u:return function(e,t,n){var r=e.displayName;if(r)return r;var a=t.displayName||t.name||"";return""!==a?n+"("+a+")":n}(e,e.render,"ForwardRef");case f:var t=e.displayName||null;return null!==t?t:$(e.type)||"Memo";case p:var n=e,h=n._payload,v=n._init;try{return $(v(h))}catch(e){return null}}return null}var q,Y,G,K=Object.prototype.hasOwnProperty,Q={key:!0,ref:!0,__self:!0,__source:!0};function X(e){if(K.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function Z(e){if(K.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function J(e,t){var n=function(){q||(q=!0,_("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function ee(e,t){var n=function(){Y||(Y=!0,_("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}function te(e){if("string"==typeof e.ref&&w.current&&e.__self&&w.current.stateNode!==e.__self){var t=$(w.current.type);G[t]||(_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',t,e.ref),G[t]=!0)}}G={};var ne=function(e,t,r,a,o,i,l){var s={$$typeof:n,type:e,key:t,ref:r,props:l,_owner:i,_store:{}};return Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function re(e,t,n){var r,a={},o=null,i=null,l=null,s=null;if(null!=t)for(r in X(t)&&(i=t.ref,te(t)),Z(t)&&(W(t.key),o=""+t.key),l=void 0===t.__self?null:t.__self,s=void 0===t.__source?null:t.__source,t)K.call(t,r)&&!Q.hasOwnProperty(r)&&(a[r]=t[r]);var u=arguments.length-2;if(1===u)a.children=n;else if(u>1){for(var c=Array(u),d=0;d<u;d++)c[d]=arguments[d+2];Object.freeze&&Object.freeze(c),a.children=c}if(e&&e.defaultProps){var f=e.defaultProps;for(r in f)void 0===a[r]&&(a[r]=f[r])}if(o||i){var p="function"==typeof e?e.displayName||e.name||"Unknown":e;o&&J(a,p),i&&ee(a,p)}return ne(e,o,i,l,s,w.current,a)}function ae(e,t,n){if(null==e)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r,a,o=N({},e.props),i=e.key,l=e.ref,s=e._self,u=e._source,c=e._owner;if(null!=t)for(r in X(t)&&(l=t.ref,c=w.current),Z(t)&&(W(t.key),i=""+t.key),e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)K.call(t,r)&&!Q.hasOwnProperty(r)&&(void 0===t[r]&&void 0!==a?o[r]=a[r]:o[r]=t[r]);var d=arguments.length-2;if(1===d)o.children=n;else if(d>1){for(var f=Array(d),p=0;p<d;p++)f[p]=arguments[p+2];o.children=f}return ne(e.type,i,l,s,u,c,o)}function oe(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var ie=!1,le=/\/+/g;function se(e){return e.replace(le,"$&/")}function ue(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(W(e.key),n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function ce(e,t,a,o,i){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s,u,c,d=!1;if(null===e)d=!0;else switch(l){case"string":case"number":d=!0;break;case"object":switch(e.$$typeof){case n:case r:d=!0}}if(d){var f=e,p=i(f),h=""===o?"."+ue(f,0):o;if(U(p)){var v="";null!=h&&(v=se(h)+"/"),ce(p,t,v,"",(function(e){return e}))}else null!=p&&(oe(p)&&(!p.key||f&&f.key===p.key||W(p.key),s=p,u=a+(!p.key||f&&f.key===p.key?"":se(""+p.key)+"/")+h,p=ne(s.type,u,s.ref,s._self,s._source,s._owner,s.props)),t.push(p));return 1}var g=0,y=""===o?".":o+":";if(U(e))for(var b=0;b<e.length;b++)g+=ce(c=e[b],t,a,y+ue(c,b),i);else{var w=m(e);if("function"==typeof w){var k=e;w===k.entries&&(ie||T("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ie=!0);for(var S,x=w.call(k),E=0;!(S=x.next()).done;)g+=ce(c=S.value,t,a,y+ue(c,E++),i)}else if("object"===l){var _=String(e);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===_?"object with keys {"+Object.keys(e).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.")}}return g}function de(e,t,n){if(null==e)return e;var r=[],a=0;return ce(e,r,"","",(function(e){return t.call(n,e,a++)})),r}var fe;function pe(e){if(-1===e._status){var t=(0,e._result)();if(t.then((function(t){if(0===e._status||-1===e._status){var n=e;n._status=1,n._result=t}}),(function(t){if(0===e._status||-1===e._status){var n=e;n._status=2,n._result=t}})),-1===e._status){var n=e;n._status=0,n._result=t}}if(1===e._status){var r=e._result;return void 0===r&&_("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",r),"default"in r||_("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",r),r.default}throw e._result}function he(e){return"string"==typeof e||"function"==typeof e||(e===a||e===i||e===o||e===c||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===l||e.$$typeof===s||e.$$typeof===u||e.$$typeof===fe||void 0!==e.getModuleId))}function ve(){var e=g.current;return null===e&&_("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),e}fe=Symbol.for("react.module.reference");var me,ge,ye,be,we,ke,Se,xe=0;function Ee(){}Ee.__reactDisabledLog=!0;var Te,_e=E.ReactCurrentDispatcher;function Ce(e,t,n){if(void 0===Te)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);Te=r&&r[1]||""}return"\n"+Te+e}var De,Re=!1,Pe="function"==typeof WeakMap?WeakMap:Map;function Ne(e,t){if(!e||Re)return"";var n,r=De.get(e);if(void 0!==r)return r;Re=!0;var a,o=Error.prepareStackTrace;Error.prepareStackTrace=void 0,a=_e.current,_e.current=null,function(){if(0===xe){me=console.log,ge=console.info,ye=console.warn,be=console.error,we=console.group,ke=console.groupCollapsed,Se=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ee,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}xe++}();try{if(t){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(i,[])}catch(e){n=e}Reflect.construct(e,[],i)}else{try{i.call()}catch(e){n=e}e.call(i.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var l=t.stack.split("\n"),s=n.stack.split("\n"),u=l.length-1,c=s.length-1;u>=1&&c>=0&&l[u]!==s[c];)c--;for(;u>=1&&c>=0;u--,c--)if(l[u]!==s[c]){if(1!==u||1!==c)do{if(u--,--c<0||l[u]!==s[c]){var d="\n"+l[u].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&De.set(e,d),d}}while(u>=1&&c>=0);break}}}finally{Re=!1,_e.current=a,function(){if(0==--xe){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:me}),info:N({},e,{value:ge}),warn:N({},e,{value:ye}),error:N({},e,{value:be}),group:N({},e,{value:we}),groupCollapsed:N({},e,{value:ke}),groupEnd:N({},e,{value:Se})})}xe<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=o}var f=e?e.displayName||e.name:"",p=f?Ce(f):"";return"function"==typeof e&&De.set(e,p),p}function Ie(e,t,n){if(null==e)return"";if("function"==typeof e)return Ne(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return Ce(e);switch(e){case c:return Ce("Suspense");case d:return Ce("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case u:return Ne(e.render,!1);case f:return Ie(e.type,t,n);case p:var r=e,a=r._payload,o=r._init;try{return Ie(o(a),t,n)}catch(e){}}return""}De=new Pe;var Me,Oe={},Le=E.ReactDebugCurrentFrame;function ze(e){if(e){var t=e._owner,n=Ie(e.type,e._source,t?t.type:null);Le.setExtraStackFrame(n)}else Le.setExtraStackFrame(null)}function Ae(e){if(e){var t=e._owner;x(Ie(e.type,e._source,t?t.type:null))}else x(null)}function Fe(){if(w.current){var e=$(w.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function He(e){return null!=e&&void 0!==(t=e.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":"";var t}Me=!1;var je={};function Ue(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=Fe();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!je[n]){je[n]=!0;var r="";e&&e._owner&&e._owner!==w.current&&(r=" It was passed a child from "+$(e._owner.type)+"."),Ae(e),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),Ae(null)}}}function Ve(e,t){if("object"==typeof e)if(U(e))for(var n=0;n<e.length;n++){var r=e[n];oe(r)&&Ue(r,t)}else if(oe(e))e._store&&(e._store.validated=!0);else if(e){var a=m(e);if("function"==typeof a&&a!==e.entries)for(var o,i=a.call(e);!(o=i.next()).done;)oe(o.value)&&Ue(o.value,t)}}function We(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==u&&n.$$typeof!==f)return;t=n.propTypes}if(t){var r=$(n);!function(e,t,n,r,a){var o=Function.call.bind(K);for(var i in e)if(o(e,i)){var l=void 0;try{if("function"!=typeof e[i]){var s=Error((r||"React class")+": "+n+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}l=e[i](t,i,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){l=e}!l||l instanceof Error||(ze(a),_("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,i,typeof l),ze(null)),l instanceof Error&&!(l.message in Oe)&&(Oe[l.message]=!0,ze(a),_("Failed %s type: %s",n,l.message),ze(null))}}(t,e.props,"prop",r,e)}else if(void 0!==n.PropTypes&&!Me){Me=!0,_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",$(n)||"Unknown")}"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Be(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){Ae(e),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),Ae(null);break}}null!==e.ref&&(Ae(e),_("Invalid attribute `ref` supplied to `React.Fragment`."),Ae(null))}function $e(e,t,r){var o=he(e);if(!o){var i="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(i+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var l,s=He(t);i+=s||Fe(),null===e?l="null":U(e)?l="array":void 0!==e&&e.$$typeof===n?(l="<"+($(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,_("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",l,i)}var u=re.apply(this,arguments);if(null==u)return u;if(o)for(var c=2;c<arguments.length;c++)Ve(arguments[c],e);return e===a?Be(u):We(u),u}var qe=!1;var Ye=!1,Ge=null;var Ke=0,Qe=!1;function Xe(e){e!==Ke-1&&_("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Ke=e}function Ze(t,n,r){var a=b.current;if(null!==a)try{et(a),function(t){if(null===Ge)try{var n=("require"+Math.random()).slice(0,7);Ge=(e&&e[n]).call(e,"timers").setImmediate}catch(e){Ge=function(e){!1===Ye&&(Ye=!0,"undefined"==typeof MessageChannel&&_("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}Ge(t)}((function(){0===a.length?(b.current=null,n(t)):Ze(t,n,r)}))}catch(e){r(e)}else n(t)}var Je=!1;function et(e){if(!Je){Je=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}e.length=0}catch(n){throw e=e.slice(t+1),n}finally{Je=!1}}}var tt=$e,nt=function(e,t,n){for(var r=ae.apply(this,arguments),a=2;a<arguments.length;a++)Ve(arguments[a],r.type);return We(r),r},rt=function(e){var t=$e.bind(null,e);return t.type=e,qe||(qe=!0,T("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return T("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},at={map:de,forEach:function(e,t,n){de(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return de(e,(function(){t++})),t},toArray:function(e){return de(e,(function(e){return e}))||[]},only:function(e){if(!oe(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}};t.Children=at,t.Component=M,t.Fragment=a,t.Profiler=i,t.PureComponent=F,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=E,t.cloneElement=nt,t.createContext=function(e){var t={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:l,_context:t};var n=!1,r=!1,a=!1,o={$$typeof:s,_context:t};return Object.defineProperties(o,{Provider:{get:function(){return r||(r=!0,_("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return n||(n=!0,_("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){a||(T("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),a=!0)}}}),t.Consumer=o,t._currentRenderer=null,t._currentRenderer2=null,t},t.createElement=tt,t.createFactory=rt,t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){null!=e&&e.$$typeof===f?_("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?_("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&_("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||_("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,n={$$typeof:u,render:e};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(n){t=n,e.name||e.displayName||(e.displayName=n)}}),n},t.isValidElement=oe,t.lazy=function(e){var t,n,r={$$typeof:p,_payload:{_status:-1,_result:e},_init:pe};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){_("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(e){_("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=e,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},t.memo=function(e,t){he(e)||_("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var n,r={$$typeof:f,type:e,compare:void 0===t?null:t};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(e.displayName=t)}}),r},t.startTransition=function(e,t){var n=y.transition;y.transition={};var r=y.transition;y.transition._updatedFibers=new Set;try{e()}finally{if(y.transition=n,null===n&&r._updatedFibers)r._updatedFibers.size>10&&T("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),r._updatedFibers.clear()}},t.unstable_act=function(e){var t=Ke;Ke++,null===b.current&&(b.current=[]);var n,r=b.isBatchingLegacy;try{if(b.isBatchingLegacy=!0,n=e(),!r&&b.didScheduleLegacyUpdate){var a=b.current;null!==a&&(b.didScheduleLegacyUpdate=!1,et(a))}}catch(e){throw Xe(t),e}finally{b.isBatchingLegacy=r}if(null!==n&&"object"==typeof n&&"function"==typeof n.then){var o=n,i=!1,l={then:function(e,n){i=!0,o.then((function(r){Xe(t),0===Ke?Ze(r,e,n):e(r)}),(function(e){Xe(t),n(e)}))}};return Qe||"undefined"==typeof Promise||Promise.resolve().then((function(){})).then((function(){i||(Qe=!0,_("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))})),l}var s=n;if(Xe(t),0===Ke){var u=b.current;return null!==u&&(et(u),b.current=null),{then:function(e,t){null===b.current?(b.current=[],Ze(s,e,t)):e(s)}}}return{then:function(e,t){e(s)}}},t.useCallback=function(e,t){return ve().useCallback(e,t)},t.useContext=function(e){var t=ve();if(void 0!==e._context){var n=e._context;n.Consumer===e?_("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&_("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)},t.useDebugValue=function(e,t){return ve().useDebugValue(e,t)},t.useDeferredValue=function(e){return ve().useDeferredValue(e)},t.useEffect=function(e,t){return ve().useEffect(e,t)},t.useId=function(){return ve().useId()},t.useImperativeHandle=function(e,t,n){return ve().useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return ve().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return ve().useLayoutEffect(e,t)},t.useMemo=function(e,t){return ve().useMemo(e,t)},t.useReducer=function(e,t,n){return ve().useReducer(e,t,n)},t.useRef=function(e){return ve().useRef(e)},t.useState=function(e){return ve().useState(e)},t.useSyncExternalStore=function(e,t,n){return ve().useSyncExternalStore(e,t,n)},t.useTransition=function(){return ve().useTransition()},t.version="18.2.0","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(h,h.exports)),h.exports}p=u,"production"===process.env.NODE_ENV?p.exports=d():p.exports=v();var m,g=l(u.exports),y={exports:{}},b={},w={exports:{}},k={};var S,x,E,T={};
|
|
10
|
+
*/function requireReact_development(){return hasRequiredReact_development||(hasRequiredReact_development=1,function(e,t){"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.iterator;function v(e){if(null===e||"object"!=typeof e)return null;var t=m&&e[m]||e["@@iterator"];return"function"==typeof t?t:null}var g={current:null},y={transition:null},b={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},w={current:null},S={},E=null;function _(e){E=e}S.setExtraStackFrame=function(e){E=e},S.getCurrentStack=null,S.getStackAddendum=function(){var e="";E&&(e+=E);var t=S.getCurrentStack;return t&&(e+=t()||""),e};var k={ReactCurrentDispatcher:g,ReactCurrentBatchConfig:y,ReactCurrentOwner:w};function T(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];C("warn",e,n)}function x(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];C("error",e,n)}function C(e,t,n){var r=k.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var a=n.map((function(e){return String(e)}));a.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,a)}k.ReactDebugCurrentFrame=S,k.ReactCurrentActQueue=b;var D={};function R(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",a=r+"."+t;D[a]||(x("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,r),D[a]=!0)}var N={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){R(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){R(e,"replaceState")},enqueueSetState:function(e,t,n,r){R(e,"setState")}},P=Object.assign,I={};function M(e,t,n){this.props=e,this.context=t,this.refs=I,this.updater=n||N}Object.freeze(I),M.prototype.isReactComponent={},M.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},M.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var O={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},A=function(e,t){Object.defineProperty(M.prototype,e,{get:function(){T("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var L in O)O.hasOwnProperty(L)&&A(L,O[L]);function F(){}function z(e,t,n){this.props=e,this.context=t,this.refs=I,this.updater=n||N}F.prototype=M.prototype;var H=z.prototype=new F;H.constructor=z,P(H,M.prototype),H.isPureReactComponent=!0;var U=Array.isArray;function j(e){return U(e)}function V(e){return""+e}function $(e){if(function(e){try{return V(e),!1}catch(e){return!0}}(e))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),V(e)}function W(e){return e.displayName||"Context"}function B(e){if(null==e)return null;if("number"==typeof e.tag&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case a:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case s:return W(e)+".Consumer";case l:return W(e._context)+".Provider";case u:return function(e,t,n){var r=e.displayName;if(r)return r;var a=t.displayName||t.name||"";return""!==a?n+"("+a+")":n}(e,e.render,"ForwardRef");case f:var t=e.displayName||null;return null!==t?t:B(e.type)||"Memo";case p:var n=e,h=n._payload,m=n._init;try{return B(m(h))}catch(e){return null}}return null}var q,Y,G,K=Object.prototype.hasOwnProperty,Q={key:!0,ref:!0,__self:!0,__source:!0};function X(e){if(K.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function Z(e){if(K.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function J(e,t){var n=function(){q||(q=!0,x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function ee(e,t){var n=function(){Y||(Y=!0,x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}function te(e){if("string"==typeof e.ref&&w.current&&e.__self&&w.current.stateNode!==e.__self){var t=B(w.current.type);G[t]||(x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',t,e.ref),G[t]=!0)}}G={};var ne=function(e,t,r,a,o,i,l){var s={$$typeof:n,type:e,key:t,ref:r,props:l,_owner:i,_store:{}};return Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function re(e,t,n){var r,a={},o=null,i=null,l=null,s=null;if(null!=t)for(r in X(t)&&(i=t.ref,te(t)),Z(t)&&($(t.key),o=""+t.key),l=void 0===t.__self?null:t.__self,s=void 0===t.__source?null:t.__source,t)K.call(t,r)&&!Q.hasOwnProperty(r)&&(a[r]=t[r]);var u=arguments.length-2;if(1===u)a.children=n;else if(u>1){for(var c=Array(u),d=0;d<u;d++)c[d]=arguments[d+2];Object.freeze&&Object.freeze(c),a.children=c}if(e&&e.defaultProps){var f=e.defaultProps;for(r in f)void 0===a[r]&&(a[r]=f[r])}if(o||i){var p="function"==typeof e?e.displayName||e.name||"Unknown":e;o&&J(a,p),i&&ee(a,p)}return ne(e,o,i,l,s,w.current,a)}function ae(e,t,n){if(null==e)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r,a,o=P({},e.props),i=e.key,l=e.ref,s=e._self,u=e._source,c=e._owner;if(null!=t)for(r in X(t)&&(l=t.ref,c=w.current),Z(t)&&($(t.key),i=""+t.key),e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)K.call(t,r)&&!Q.hasOwnProperty(r)&&(void 0===t[r]&&void 0!==a?o[r]=a[r]:o[r]=t[r]);var d=arguments.length-2;if(1===d)o.children=n;else if(d>1){for(var f=Array(d),p=0;p<d;p++)f[p]=arguments[p+2];o.children=f}return ne(e.type,i,l,s,u,c,o)}function oe(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var ie=!1,le=/\/+/g;function se(e){return e.replace(le,"$&/")}function ue(e,t){return"object"==typeof e&&null!==e&&null!=e.key?($(e.key),n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function ce(e,t,a,o,i){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s,u,c,d=!1;if(null===e)d=!0;else switch(l){case"string":case"number":d=!0;break;case"object":switch(e.$$typeof){case n:case r:d=!0}}if(d){var f=e,p=i(f),h=""===o?"."+ue(f,0):o;if(j(p)){var m="";null!=h&&(m=se(h)+"/"),ce(p,t,m,"",(function(e){return e}))}else null!=p&&(oe(p)&&(!p.key||f&&f.key===p.key||$(p.key),s=p,u=a+(!p.key||f&&f.key===p.key?"":se(""+p.key)+"/")+h,p=ne(s.type,u,s.ref,s._self,s._source,s._owner,s.props)),t.push(p));return 1}var g=0,y=""===o?".":o+":";if(j(e))for(var b=0;b<e.length;b++)g+=ce(c=e[b],t,a,y+ue(c,b),i);else{var w=v(e);if("function"==typeof w){var S=e;w===S.entries&&(ie||T("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ie=!0);for(var E,_=w.call(S),k=0;!(E=_.next()).done;)g+=ce(c=E.value,t,a,y+ue(c,k++),i)}else if("object"===l){var x=String(e);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===x?"object with keys {"+Object.keys(e).join(", ")+"}":x)+"). If you meant to render a collection of children, use an array instead.")}}return g}function de(e,t,n){if(null==e)return e;var r=[],a=0;return ce(e,r,"","",(function(e){return t.call(n,e,a++)})),r}var fe;function pe(e){if(-1===e._status){var t=(0,e._result)();if(t.then((function(t){if(0===e._status||-1===e._status){var n=e;n._status=1,n._result=t}}),(function(t){if(0===e._status||-1===e._status){var n=e;n._status=2,n._result=t}})),-1===e._status){var n=e;n._status=0,n._result=t}}if(1===e._status){var r=e._result;return void 0===r&&x("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",r),"default"in r||x("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",r),r.default}throw e._result}function he(e){return"string"==typeof e||"function"==typeof e||(e===a||e===i||e===o||e===c||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===l||e.$$typeof===s||e.$$typeof===u||e.$$typeof===fe||void 0!==e.getModuleId))}function me(){var e=g.current;return null===e&&x("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),e}fe=Symbol.for("react.module.reference");var ve,ge,ye,be,we,Se,Ee,_e=0;function ke(){}ke.__reactDisabledLog=!0;var Te,xe=k.ReactCurrentDispatcher;function Ce(e,t,n){if(void 0===Te)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);Te=r&&r[1]||""}return"\n"+Te+e}var De,Re=!1,Ne="function"==typeof WeakMap?WeakMap:Map;function Pe(e,t){if(!e||Re)return"";var n,r=De.get(e);if(void 0!==r)return r;Re=!0;var a,o=Error.prepareStackTrace;Error.prepareStackTrace=void 0,a=xe.current,xe.current=null,function(){if(0===_e){ve=console.log,ge=console.info,ye=console.warn,be=console.error,we=console.group,Se=console.groupCollapsed,Ee=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ke,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}_e++}();try{if(t){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(i,[])}catch(e){n=e}Reflect.construct(e,[],i)}else{try{i.call()}catch(e){n=e}e.call(i.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var l=t.stack.split("\n"),s=n.stack.split("\n"),u=l.length-1,c=s.length-1;u>=1&&c>=0&&l[u]!==s[c];)c--;for(;u>=1&&c>=0;u--,c--)if(l[u]!==s[c]){if(1!==u||1!==c)do{if(u--,--c<0||l[u]!==s[c]){var d="\n"+l[u].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&De.set(e,d),d}}while(u>=1&&c>=0);break}}}finally{Re=!1,xe.current=a,function(){if(0==--_e){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:P({},e,{value:ve}),info:P({},e,{value:ge}),warn:P({},e,{value:ye}),error:P({},e,{value:be}),group:P({},e,{value:we}),groupCollapsed:P({},e,{value:Se}),groupEnd:P({},e,{value:Ee})})}_e<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=o}var f=e?e.displayName||e.name:"",p=f?Ce(f):"";return"function"==typeof e&&De.set(e,p),p}function Ie(e,t,n){if(null==e)return"";if("function"==typeof e)return Pe(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return Ce(e);switch(e){case c:return Ce("Suspense");case d:return Ce("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case u:return Pe(e.render,!1);case f:return Ie(e.type,t,n);case p:var r=e,a=r._payload,o=r._init;try{return Ie(o(a),t,n)}catch(e){}}return""}De=new Ne;var Me,Oe={},Ae=k.ReactDebugCurrentFrame;function Le(e){if(e){var t=e._owner,n=Ie(e.type,e._source,t?t.type:null);Ae.setExtraStackFrame(n)}else Ae.setExtraStackFrame(null)}function Fe(e){if(e){var t=e._owner;_(Ie(e.type,e._source,t?t.type:null))}else _(null)}function ze(){if(w.current){var e=B(w.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function He(e){return null!=e&&void 0!==(t=e.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":"";var t}Me=!1;var Ue={};function je(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=ze();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!Ue[n]){Ue[n]=!0;var r="";e&&e._owner&&e._owner!==w.current&&(r=" It was passed a child from "+B(e._owner.type)+"."),Fe(e),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),Fe(null)}}}function Ve(e,t){if("object"==typeof e)if(j(e))for(var n=0;n<e.length;n++){var r=e[n];oe(r)&&je(r,t)}else if(oe(e))e._store&&(e._store.validated=!0);else if(e){var a=v(e);if("function"==typeof a&&a!==e.entries)for(var o,i=a.call(e);!(o=i.next()).done;)oe(o.value)&&je(o.value,t)}}function $e(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==u&&n.$$typeof!==f)return;t=n.propTypes}if(t){var r=B(n);!function(e,t,n,r,a){var o=Function.call.bind(K);for(var i in e)if(o(e,i)){var l=void 0;try{if("function"!=typeof e[i]){var s=Error((r||"React class")+": "+n+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}l=e[i](t,i,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){l=e}!l||l instanceof Error||(Le(a),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,i,typeof l),Le(null)),l instanceof Error&&!(l.message in Oe)&&(Oe[l.message]=!0,Le(a),x("Failed %s type: %s",n,l.message),Le(null))}}(t,e.props,"prop",r,e)}else if(void 0!==n.PropTypes&&!Me){Me=!0,x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",B(n)||"Unknown")}"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function We(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){Fe(e),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),Fe(null);break}}null!==e.ref&&(Fe(e),x("Invalid attribute `ref` supplied to `React.Fragment`."),Fe(null))}function Be(e,t,r){var o=he(e);if(!o){var i="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(i+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var l,s=He(t);i+=s||ze(),null===e?l="null":j(e)?l="array":void 0!==e&&e.$$typeof===n?(l="<"+(B(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,x("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",l,i)}var u=re.apply(this,arguments);if(null==u)return u;if(o)for(var c=2;c<arguments.length;c++)Ve(arguments[c],e);return e===a?We(u):$e(u),u}var qe=!1;var Ye=!1,Ge=null;var Ke=0,Qe=!1;function Xe(e){e!==Ke-1&&x("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Ke=e}function Ze(t,n,r){var a=b.current;if(null!==a)try{et(a),function(t){if(null===Ge)try{var n=("require"+Math.random()).slice(0,7),r=e&&e[n];Ge=r.call(e,"timers").setImmediate}catch(e){Ge=function(e){!1===Ye&&(Ye=!0,"undefined"==typeof MessageChannel&&x("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}Ge(t)}((function(){0===a.length?(b.current=null,n(t)):Ze(t,n,r)}))}catch(e){r(e)}else n(t)}var Je=!1;function et(e){if(!Je){Je=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}e.length=0}catch(n){throw e=e.slice(t+1),n}finally{Je=!1}}}var tt=Be,nt=function(e,t,n){for(var r=ae.apply(this,arguments),a=2;a<arguments.length;a++)Ve(arguments[a],r.type);return $e(r),r},rt=function(e){var t=Be.bind(null,e);return t.type=e,qe||(qe=!0,T("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return T("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},at={map:de,forEach:function(e,t,n){de(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return de(e,(function(){t++})),t},toArray:function(e){return de(e,(function(e){return e}))||[]},only:function(e){if(!oe(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}};t.Children=at,t.Component=M,t.Fragment=a,t.Profiler=i,t.PureComponent=z,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=k,t.cloneElement=nt,t.createContext=function(e){var t={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:l,_context:t};var n=!1,r=!1,a=!1,o={$$typeof:s,_context:t};return Object.defineProperties(o,{Provider:{get:function(){return r||(r=!0,x("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return n||(n=!0,x("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){a||(T("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),a=!0)}}}),t.Consumer=o,t._currentRenderer=null,t._currentRenderer2=null,t},t.createElement=tt,t.createFactory=rt,t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){null!=e&&e.$$typeof===f?x("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?x("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&x("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||x("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,n={$$typeof:u,render:e};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(n){t=n,e.name||e.displayName||(e.displayName=n)}}),n},t.isValidElement=oe,t.lazy=function(e){var t,n,r={$$typeof:p,_payload:{_status:-1,_result:e},_init:pe};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){x("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(e){x("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=e,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},t.memo=function(e,t){he(e)||x("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var n,r={$$typeof:f,type:e,compare:void 0===t?null:t};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(e.displayName=t)}}),r},t.startTransition=function(e,t){var n=y.transition;y.transition={};var r=y.transition;y.transition._updatedFibers=new Set;try{e()}finally{if(y.transition=n,null===n&&r._updatedFibers)r._updatedFibers.size>10&&T("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),r._updatedFibers.clear()}},t.unstable_act=function(e){var t=Ke;Ke++,null===b.current&&(b.current=[]);var n,r=b.isBatchingLegacy;try{if(b.isBatchingLegacy=!0,n=e(),!r&&b.didScheduleLegacyUpdate){var a=b.current;null!==a&&(b.didScheduleLegacyUpdate=!1,et(a))}}catch(e){throw Xe(t),e}finally{b.isBatchingLegacy=r}if(null!==n&&"object"==typeof n&&"function"==typeof n.then){var o=n,i=!1,l={then:function(e,n){i=!0,o.then((function(r){Xe(t),0===Ke?Ze(r,e,n):e(r)}),(function(e){Xe(t),n(e)}))}};return Qe||"undefined"==typeof Promise||Promise.resolve().then((function(){})).then((function(){i||(Qe=!0,x("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))})),l}var s=n;if(Xe(t),0===Ke){var u=b.current;return null!==u&&(et(u),b.current=null),{then:function(e,t){null===b.current?(b.current=[],Ze(s,e,t)):e(s)}}}return{then:function(e,t){e(s)}}},t.useCallback=function(e,t){return me().useCallback(e,t)},t.useContext=function(e){var t=me();if(void 0!==e._context){var n=e._context;n.Consumer===e?x("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&x("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)},t.useDebugValue=function(e,t){return me().useDebugValue(e,t)},t.useDeferredValue=function(e){return me().useDeferredValue(e)},t.useEffect=function(e,t){return me().useEffect(e,t)},t.useId=function(){return me().useId()},t.useImperativeHandle=function(e,t,n){return me().useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return me().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return me().useLayoutEffect(e,t)},t.useMemo=function(e,t){return me().useMemo(e,t)},t.useReducer=function(e,t,n){return me().useReducer(e,t,n)},t.useRef=function(e){return me().useRef(e)},t.useState=function(e){return me().useState(e)},t.useSyncExternalStore=function(e,t,n){return me().useSyncExternalStore(e,t,n)},t.useTransition=function(){return me().useTransition()},t.version="18.2.0","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(react_development,react_development.exports)),react_development.exports}module=react,"production"===process.env.NODE_ENV?module.exports=requireReact_production_min():module.exports=requireReact_development();var React=getDefaultExportFromCjs(react.exports),reactDom={exports:{}},reactDom_production_min={},scheduler={exports:{}},scheduler_production_min={},hasRequiredScheduler_production_min;function requireScheduler_production_min(){return hasRequiredScheduler_production_min||(hasRequiredScheduler_production_min=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<a(o,t)))break e;e[r]=t,e[n]=o,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>a(s,n))u<o&&0>a(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<o&&0>a(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var s=[],u=[],c=1,d=null,f=3,p=!1,h=!1,m=!1,v="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var a=n(u);null!==a;){if(null===a.callback)r(u);else{if(!(a.startTime<=e))break;r(u),a.sortIndex=a.expirationTime,t(s,a)}a=n(u)}}function w(e){if(m=!1,b(e),!h)if(null!==n(s))h=!0,I(S);else{var t=n(u);null!==t&&M(w,t.startTime-e)}}function S(t,a){h=!1,m&&(m=!1,g(T),T=-1),p=!0;var o=f;try{for(b(a),d=n(s);null!==d&&(!(d.expirationTime>a)||t&&!D());){var i=d.callback;if("function"==typeof i){d.callback=null,f=d.priorityLevel;var l=i(d.expirationTime<=a);a=e.unstable_now(),"function"==typeof l?d.callback=l:d===n(s)&&r(s),b(a)}else r(s);d=n(s)}if(null!==d)var c=!0;else{var v=n(u);null!==v&&M(w,v.startTime-a),c=!1}return c}finally{d=null,f=o,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,_=!1,k=null,T=-1,x=5,C=-1;function D(){return!(e.unstable_now()-C<x)}function R(){if(null!==k){var t=e.unstable_now();C=t;var n=!0;try{n=k(!0,t)}finally{n?E():(_=!1,k=null)}}else _=!1}if("function"==typeof y)E=function(){y(R)};else if("undefined"!=typeof MessageChannel){var N=new MessageChannel,P=N.port2;N.port1.onmessage=R,E=function(){P.postMessage(null)}}else E=function(){v(R,0)};function I(e){k=e,_||(_=!0,E())}function M(t,n){T=v((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,I(S))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):x=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,a,o){var i=e.unstable_now();switch("object"==typeof o&&null!==o?o="number"==typeof(o=o.delay)&&0<o?i+o:i:o=i,r){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:c++,callback:a,priorityLevel:r,startTime:o,expirationTime:l=o+l,sortIndex:-1},o>i?(r.sortIndex=o,t(u,r),null===n(s)&&r===n(u)&&(m?(g(T),T=-1):m=!0,M(w,o-i))):(r.sortIndex=l,t(s,r),h||p||(h=!0,I(S))),r},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(scheduler_production_min)),scheduler_production_min}var scheduler_development={},hasRequiredScheduler_development,hasRequiredScheduler,hasRequiredReactDom_production_min;
|
|
11
11
|
/**
|
|
12
12
|
* @license React
|
|
13
13
|
* scheduler.development.js
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the MIT license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/function
|
|
19
|
+
*/function requireScheduler_development(){return hasRequiredScheduler_development||(hasRequiredScheduler_development=1,function(e){"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);function t(e,t){var n=e.length;e.push(t),function(e,t,n){var r=n;for(;r>0;){var o=r-1>>>1,i=e[o];if(!(a(i,t)>0))return;e[o]=t,e[r]=i,r=o}}(e,t,n)}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();return n!==t&&(e[0]=n,function(e,t,n){var r=n,o=e.length,i=o>>>1;for(;r<i;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(a(s,t)<0)u<o&&a(c,s)<0?(e[r]=c,e[u]=t,r=u):(e[r]=s,e[l]=t,r=l);else{if(!(u<o&&a(c,t)<0))return;e[r]=c,e[u]=t,r=u}}}(e,n,0)),t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var s=[],u=[],c=1,d=null,f=3,p=!1,h=!1,m=!1,v="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var a=n(u);null!==a;){if(null===a.callback)r(u);else{if(!(a.startTime<=e))return;r(u),a.sortIndex=a.expirationTime,t(s,a)}a=n(u)}}function w(e){if(m=!1,b(e),!h)if(null!==n(s))h=!0,I(S);else{var t=n(u);null!==t&&M(w,t.startTime-e)}}function S(t,a){h=!1,m&&(m=!1,O()),p=!0;var o=f;try{return function(t,a){var o=a;b(o),d=n(s);for(;null!==d&&(!(d.expirationTime>o)||t&&!C());){var i=d.callback;if("function"==typeof i){d.callback=null,f=d.priorityLevel;var l=i(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?d.callback=l:d===n(s)&&r(s),b(o)}else r(s);d=n(s)}if(null!==d)return!0;var c=n(u);return null!==c&&M(w,c.startTime-o),!1}(t,a)}finally{d=null,f=o,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E=!1,_=null,k=-1,T=5,x=-1;function C(){return!(e.unstable_now()-x<T)}var D,R=function(){if(null!==_){var t=e.unstable_now();x=t;var n=!0;try{n=_(!0,t)}finally{n?D():(E=!1,_=null)}}else E=!1};if("function"==typeof y)D=function(){y(R)};else if("undefined"!=typeof MessageChannel){var N=new MessageChannel,P=N.port2;N.port1.onmessage=R,D=function(){P.postMessage(null)}}else D=function(){v(R,0)};function I(e){_=e,E||(E=!0,D())}function M(t,n){k=v((function(){t(e.unstable_now())}),n)}function O(){g(k),k=-1}var A=function(){};e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,I(S))},e.unstable_forceFrameRate=function(e){e<0||e>125?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=e>0?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(e){var t;switch(f){case 1:case 2:case 3:t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=A,e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,a,o){var i,l,d=e.unstable_now();if("object"==typeof o&&null!==o){var f=o.delay;i="number"==typeof f&&f>0?d+f:d}else i=d;switch(r){case 1:l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}var v=i+l,g={id:c++,callback:a,priorityLevel:r,startTime:i,expirationTime:v,sortIndex:-1};return i>d?(g.sortIndex=i,t(u,g),null===n(s)&&g===n(u)&&(m?O():m=!0,M(w,i-d))):(g.sortIndex=v,t(s,g),h||p||(h=!0,I(S))),g},e.unstable_shouldYield=C,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(scheduler_development)),scheduler_development}function requireScheduler(){return hasRequiredScheduler||(hasRequiredScheduler=1,function(e){"production"===process.env.NODE_ENV?e.exports=requireScheduler_production_min():e.exports=requireScheduler_development()}(scheduler)),scheduler.exports}
|
|
20
20
|
/**
|
|
21
21
|
* @license React
|
|
22
22
|
* react-dom.production.min.js
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
*
|
|
26
26
|
* This source code is licensed under the MIT license found in the
|
|
27
27
|
* LICENSE file in the root directory of this source tree.
|
|
28
|
-
*/function R(){if(E)return b;E=1;var e=u.exports,t=D();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,a={};function o(e,t){i(e,t),i(e+"Capture",t)}function i(e,t){for(a[e]=t,e=0;e<t.length;e++)r.add(t[e])}var l=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),s=Object.prototype.hasOwnProperty,c=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d={},f={};function p(e,t,n,r,a,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var h={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){h[e]=new p(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];h[t]=new p(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){h[e]=new p(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){h[e]=new p(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){h[e]=new p(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){h[e]=new p(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){h[e]=new p(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){h[e]=new p(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){h[e]=new p(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function m(e){return e[1].toUpperCase()}function g(e,t,n,r){var a=h.hasOwnProperty(t)?h[t]:null;(null!==a?0!==a.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!s.call(f,e)||!s.call(d,e)&&(c.test(e)?f[e]=!0:(d[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,m);h[t]=new p(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,m);h[t]=new p(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,m);h[t]=new p(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){h[e]=new p(e,1,!1,e.toLowerCase(),null,!1,!1)})),h.xlinkHref=new p("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){h[e]=new p(e,1,!1,e.toLowerCase(),null,!0,!0)}));var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),k=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),C=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),L=Symbol.iterator;function z(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=L&&e[L]||e["@@iterator"])?e:null}var A,F=Object.assign;function H(e){if(void 0===A)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);A=t&&t[1]||""}return"\n"+A+e}var j=!1;function U(e,t){if(!e||j)return"";j=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var a=t.stack.split("\n"),o=r.stack.split("\n"),i=a.length-1,l=o.length-1;1<=i&&0<=l&&a[i]!==o[l];)l--;for(;1<=i&&0<=l;i--,l--)if(a[i]!==o[l]){if(1!==i||1!==l)do{if(i--,0>--l||a[i]!==o[l]){var s="\n"+a[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=i&&0<=l);break}}}finally{j=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?H(e):""}function V(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return e=U(e.type,!1);case 11:return e=U(e.type.render,!1);case 1:return e=U(e.type,!0);default:return""}}function W(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case k:return"Portal";case T:return"Profiler";case x:return"StrictMode";case P:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case _:return(e._context.displayName||"Context")+".Provider";case R:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case M:t=e._payload,e=e._init;try{return W(e(t))}catch(e){}}return null}function B(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(t);case 8:return t===x?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function $(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function K(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=$(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Z(e,t){null!=(t=t.checked)&&g(e,"checked",t,!1)}function J(e,t){Z(e,t);var n=$(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?te(e,t.type,n):t.hasOwnProperty("defaultValue")&&te(e,t.type,$(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ee(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function te(e,t,n){"number"===t&&K(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ne=Array.isArray;function re(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+$(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function ae(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return F({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(ne(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:$(r)}}function ie(e,t){var n=$(t.value),r=$(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function le(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,de,fe=(de=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return de(e,t)}))}:de);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ve=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(he).forEach((function(e){ve.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ye=F({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function we(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ke=null;function Se(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Ee=null,Te=null;function _e(e){if(e=wa(e)){if("function"!=typeof xe)throw Error(n(280));var t=e.stateNode;t&&(t=Sa(t),xe(e.stateNode,e.type,t))}}function Ce(e){Ee?Te?Te.push(e):Te=[e]:Ee=e}function De(){if(Ee){var e=Ee,t=Te;if(Te=Ee=null,_e(e),t)for(e=0;e<t.length;e++)_e(t[e])}}function Re(e,t){return e(t)}function Pe(){}var Ne=!1;function Ie(e,t,n){if(Ne)return e(t,n);Ne=!0;try{return Re(e,t,n)}finally{Ne=!1,(null!==Ee||null!==Te)&&(Pe(),De())}}function Me(e,t){var r=e.stateNode;if(null===r)return null;var a=Sa(r);if(null===a)return null;r=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(a=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!a;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Oe=!1;if(l)try{var Le={};Object.defineProperty(Le,"passive",{get:function(){Oe=!0}}),window.addEventListener("test",Le,Le),window.removeEventListener("test",Le,Le)}catch(de){Oe=!1}function ze(e,t,n,r,a,o,i,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Ae=!1,Fe=null,He=!1,je=null,Ue={onError:function(e){Ae=!0,Fe=e}};function Ve(e,t,n,r,a,o,i,l,s){Ae=!1,Fe=null,ze.apply(Ue,arguments)}function We(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Be(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function $e(e){if(We(e)!==e)throw Error(n(188))}function qe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=We(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,a=t;;){var o=r.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(a=o.return)){r=a;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===r)return $e(o),e;if(i===a)return $e(o),t;i=i.sibling}throw Error(n(188))}if(r.return!==a.return)r=o,a=i;else{for(var l=!1,s=o.child;s;){if(s===r){l=!0,r=o,a=i;break}if(s===a){l=!0,a=o,r=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===r){l=!0,r=i,a=o;break}if(s===a){l=!0,a=i,r=o;break}s=s.sibling}if(!l)throw Error(n(189))}}if(r.alternate!==a)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e))?Ye(e):null}function Ye(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ye(e);if(null!==t)return t;e=e.sibling}return null}var Ge=t.unstable_scheduleCallback,Ke=t.unstable_cancelCallback,Qe=t.unstable_shouldYield,Xe=t.unstable_requestPaint,Ze=t.unstable_now,Je=t.unstable_getCurrentPriorityLevel,et=t.unstable_ImmediatePriority,tt=t.unstable_UserBlockingPriority,nt=t.unstable_NormalPriority,rt=t.unstable_LowPriority,at=t.unstable_IdlePriority,ot=null,it=null;var lt=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(st(e)/ut|0)|0},st=Math.log,ut=Math.LN2;var ct=64,dt=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,o=e.pingedLanes,i=268435455&n;if(0!==i){var l=i&~a;0!==l?r=ft(l):0!==(o&=i)&&(r=ft(o))}else 0!==(i=n&~a)?r=ft(i):0!==o&&(r=ft(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&a)&&((a=r&-r)>=(o=t&-t)||16===a&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-lt(t)),r|=e[n],t&=~a;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function vt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0==(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-lt(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-lt(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var wt=0;function kt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var St,xt,Et,Tt,_t,Ct=!1,Dt=[],Rt=null,Pt=null,Nt=null,It=new Map,Mt=new Map,Ot=[],Lt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function zt(e,t){switch(e){case"focusin":case"focusout":Rt=null;break;case"dragenter":case"dragleave":Pt=null;break;case"mouseover":case"mouseout":Nt=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mt.delete(t.pointerId)}}function At(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},null!==t&&(null!==(t=wa(t))&&xt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Ft(e){var t=ba(e.target);if(null!==t){var n=We(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Be(n)))return e.blockedOn=t,void _t(e.priority,(function(){Et(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ht(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wa(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ke=r,n.target.dispatchEvent(r),ke=null,t.shift()}return!0}function jt(e,t,n){Ht(e)&&n.delete(t)}function Ut(){Ct=!1,null!==Rt&&Ht(Rt)&&(Rt=null),null!==Pt&&Ht(Pt)&&(Pt=null),null!==Nt&&Ht(Nt)&&(Nt=null),It.forEach(jt),Mt.forEach(jt)}function Vt(e,n){e.blockedOn===n&&(e.blockedOn=null,Ct||(Ct=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ut)))}function Wt(e){function t(t){return Vt(t,e)}if(0<Dt.length){Vt(Dt[0],e);for(var n=1;n<Dt.length;n++){var r=Dt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Rt&&Vt(Rt,e),null!==Pt&&Vt(Pt,e),null!==Nt&&Vt(Nt,e),It.forEach(t),Mt.forEach(t),n=0;n<Ot.length;n++)(r=Ot[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Ot.length&&null===(n=Ot[0]).blockedOn;)Ft(n),null===n.blockedOn&&Ot.shift()}var Bt=y.ReactCurrentBatchConfig,$t=!0;function qt(e,t,n,r){var a=wt,o=Bt.transition;Bt.transition=null;try{wt=1,Gt(e,t,n,r)}finally{wt=a,Bt.transition=o}}function Yt(e,t,n,r){var a=wt,o=Bt.transition;Bt.transition=null;try{wt=4,Gt(e,t,n,r)}finally{wt=a,Bt.transition=o}}function Gt(e,t,n,r){if($t){var a=Qt(e,t,n,r);if(null===a)$r(e,t,r,Kt,n),zt(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Rt=At(Rt,e,t,n,r,a),!0;case"dragenter":return Pt=At(Pt,e,t,n,r,a),!0;case"mouseover":return Nt=At(Nt,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return It.set(o,At(It.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,Mt.set(o,At(Mt.get(o)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(zt(e,r),4&t&&-1<Lt.indexOf(e)){for(;null!==a;){var o=wa(a);if(null!==o&&St(o),null===(o=Qt(e,t,n,r))&&$r(e,t,r,Kt,n),o===a)break;a=o}null!==a&&r.stopPropagation()}else $r(e,t,r,null,n)}}var Kt=null;function Qt(e,t,n,r){if(Kt=null,null!==(e=ba(e=Se(r))))if(null===(t=We(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Be(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Kt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case et:return 1;case tt:return 4;case nt:case rt:return 16;case at:return 536870912;default:return 16}default:return 16}}var Zt=null,Jt=null,en=null;function tn(){if(en)return en;var e,t,n=Jt,r=n.length,a="value"in Zt?Zt.value:Zt.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return en=a.slice(e,1<t?1-t:void 0)}function nn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function rn(){return!0}function an(){return!1}function on(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?rn:an,this.isPropagationStopped=an,this}return F(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=rn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rn)},persist:function(){},isPersistent:rn}),t}var ln,sn,un,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=on(cn),fn=F({},cn,{view:0,detail:0}),pn=on(fn),hn=F({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_n,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(ln=e.screenX-un.screenX,sn=e.screenY-un.screenY):sn=ln=0,un=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),vn=on(hn),mn=on(F({},hn,{dataTransfer:0})),gn=on(F({},fn,{relatedTarget:0})),yn=on(F({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=F({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wn=on(bn),kn=on(F({},cn,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function _n(){return Tn}var Cn=F({},fn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=nn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_n,charCode:function(e){return"keypress"===e.type?nn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?nn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Dn=on(Cn),Rn=on(F({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=on(F({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_n})),Nn=on(F({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=F({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Mn=on(In),On=[9,13,27,32],Ln=l&&"CompositionEvent"in window,zn=null;l&&"documentMode"in document&&(zn=document.documentMode);var An=l&&"TextEvent"in window&&!zn,Fn=l&&(!Ln||zn&&8<zn&&11>=zn),Hn=String.fromCharCode(32),jn=!1;function Un(e,t){switch(e){case"keyup":return-1!==On.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1;var Bn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function $n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Bn[e.type]:"textarea"===t}function qn(e,t,n,r){Ce(r),0<(t=Yr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Yn=null,Gn=null;function Kn(e){Hr(e,0)}function Qn(e){if(G(ka(e)))return e}function Xn(e,t){if("change"===e)return t}var Zn=!1;if(l){var Jn;if(l){var er="oninput"in document;if(!er){var tr=document.createElement("div");tr.setAttribute("oninput","return;"),er="function"==typeof tr.oninput}Jn=er}else Jn=!1;Zn=Jn&&(!document.documentMode||9<document.documentMode)}function nr(){Yn&&(Yn.detachEvent("onpropertychange",rr),Gn=Yn=null)}function rr(e){if("value"===e.propertyName&&Qn(Gn)){var t=[];qn(t,Gn,e,Se(e)),Ie(Kn,t)}}function ar(e,t,n){"focusin"===e?(nr(),Gn=n,(Yn=t).attachEvent("onpropertychange",rr)):"focusout"===e&&nr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(Gn)}function ir(e,t){if("click"===e)return Qn(t)}function lr(e,t){if("input"===e||"change"===e)return Qn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ur(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!s.call(t,a)||!sr(e[a],t[a]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dr(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function vr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,o=Math.min(r.start,a);r=void 0===r.end?o:Math.min(r.end,a),!e.extend&&o>r&&(a=r,r=o,o=a),a=dr(n,o);var i=dr(n,r);a&&i&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=l&&"documentMode"in document&&11>=document.documentMode,gr=null,yr=null,br=null,wr=!1;function kr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;wr||null==gr||gr!==K(r)||("selectionStart"in(r=gr)&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&ur(br,r)||(br=r,0<(r=Yr(yr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function Sr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:Sr("Animation","AnimationEnd"),animationiteration:Sr("Animation","AnimationIteration"),animationstart:Sr("Animation","AnimationStart"),transitionend:Sr("Transition","TransitionEnd")},Er={},Tr={};function _r(e){if(Er[e])return Er[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Tr)return Er[e]=n[t];return e}l&&(Tr=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Cr=_r("animationend"),Dr=_r("animationiteration"),Rr=_r("animationstart"),Pr=_r("transitionend"),Nr=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Mr(e,t){Nr.set(e,t),o(t,[e])}for(var Or=0;Or<Ir.length;Or++){var Lr=Ir[Or];Mr(Lr.toLowerCase(),"on"+(Lr[0].toUpperCase()+Lr.slice(1)))}Mr(Cr,"onAnimationEnd"),Mr(Dr,"onAnimationIteration"),Mr(Rr,"onAnimationStart"),Mr("dblclick","onDoubleClick"),Mr("focusin","onFocus"),Mr("focusout","onBlur"),Mr(Pr,"onTransitionEnd"),i("onMouseEnter",["mouseout","mouseover"]),i("onMouseLeave",["mouseout","mouseover"]),i("onPointerEnter",["pointerout","pointerover"]),i("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ar=new Set("cancel close invalid load scroll toggle".split(" ").concat(zr));function Fr(e,t,r){var a=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,a,o,i,l,s,u){if(Ve.apply(this,arguments),Ae){if(!Ae)throw Error(n(198));var c=Fe;Ae=!1,Fe=null,He||(He=!0,je=c)}}(a,t,void 0,e),e.currentTarget=null}function Hr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==o&&a.isPropagationStopped())break e;Fr(a,l,u),o=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,u=l.currentTarget,l=l.listener,s!==o&&a.isPropagationStopped())break e;Fr(a,l,u),o=s}}}if(He)throw e=je,He=!1,je=null,e}function jr(e,t){var n=t[ma];void 0===n&&(n=t[ma]=new Set);var r=e+"__bubble";n.has(r)||(Br(t,e,2,!1),n.add(r))}function Ur(e,t,n){var r=0;t&&(r|=4),Br(n,e,r,t)}var Vr="_reactListening"+Math.random().toString(36).slice(2);function Wr(e){if(!e[Vr]){e[Vr]=!0,r.forEach((function(t){"selectionchange"!==t&&(Ar.has(t)||Ur(t,!1,e),Ur(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Vr]||(t[Vr]=!0,Ur("selectionchange",!1,t))}}function Br(e,t,n,r){switch(Xt(t)){case 1:var a=qt;break;case 4:a=Yt;break;default:a=Gt}n=a.bind(null,t,n,e),a=void 0,!Oe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function $r(e,t,n,r,a){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===a||8===l.nodeType&&l.parentNode===a)break;if(4===i)for(i=r.return;null!==i;){var s=i.tag;if((3===s||4===s)&&((s=i.stateNode.containerInfo)===a||8===s.nodeType&&s.parentNode===a))return;i=i.return}for(;null!==l;){if(null===(i=ba(l)))return;if(5===(s=i.tag)||6===s){r=o=i;continue e}l=l.parentNode}}r=r.return}Ie((function(){var r=o,a=Se(n),i=[];e:{var l=Nr.get(e);if(void 0!==l){var s=dn,u=e;switch(e){case"keypress":if(0===nn(n))break e;case"keydown":case"keyup":s=Dn;break;case"focusin":u="focus",s=gn;break;case"focusout":u="blur",s=gn;break;case"beforeblur":case"afterblur":s=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=vn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Pn;break;case Cr:case Dr:case Rr:s=yn;break;case Pr:s=Nn;break;case"scroll":s=pn;break;case"wheel":s=Mn;break;case"copy":case"cut":case"paste":s=wn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Rn}var c=0!=(4&t),d=!c&&"scroll"===e,f=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var v=(p=h).stateNode;if(5===p.tag&&null!==v&&(p=v,null!==f&&(null!=(v=Me(h,f))&&c.push(qr(h,v,p)))),d)break;h=h.return}0<c.length&&(l=new s(l,u,null,n,a),i.push({event:l,listeners:c}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===ke||!(u=n.relatedTarget||n.fromElement)||!ba(u)&&!u[va])&&(s||l)&&(l=a.window===a?a:(l=a.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?ba(u):null)&&(u!==(d=We(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=vn,v="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Rn,v="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==s?l:ka(s),p=null==u?l:ka(u),(l=new c(v,h+"leave",s,n,a)).target=d,l.relatedTarget=p,v=null,ba(a)===r&&((c=new c(f,h+"enter",u,n,a)).target=p,c.relatedTarget=d,v=c),d=v,s&&u)e:{for(f=u,h=0,p=c=s;p;p=Gr(p))h++;for(p=0,v=f;v;v=Gr(v))p++;for(;0<h-p;)c=Gr(c),h--;for(;0<p-h;)f=Gr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Gr(c),f=Gr(f)}c=null}else c=null;null!==s&&Kr(i,l,s,c,!1),null!==u&&null!==d&&Kr(i,d,u,c,!0)}if("select"===(s=(l=r?ka(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var m=Xn;else if($n(l))if(Zn)m=lr;else{m=or;var g=ar}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(m=ir);switch(m&&(m=m(e,r))?qn(i,m,n,a):(g&&g(e,l,r),"focusout"===e&&(g=l._wrapperState)&&g.controlled&&"number"===l.type&&te(l,"number",l.value)),g=r?ka(r):window,e){case"focusin":($n(g)||"true"===g.contentEditable)&&(gr=g,yr=r,br=null);break;case"focusout":br=yr=gr=null;break;case"mousedown":wr=!0;break;case"contextmenu":case"mouseup":case"dragend":wr=!1,kr(i,n,a);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":kr(i,n,a)}var y;if(Ln)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Wn?Un(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Fn&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Wn&&(y=tn()):(Jt="value"in(Zt=a)?Zt.value:Zt.textContent,Wn=!0)),0<(g=Yr(r,b)).length&&(b=new kn(b,e,null,n,a),i.push({event:b,listeners:g}),y?b.data=y:null!==(y=Vn(n))&&(b.data=y))),(y=An?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(jn=!0,Hn);case"textInput":return(e=t.data)===Hn&&jn?null:e;default:return null}}(e,n):function(e,t){if(Wn)return"compositionend"===e||!Ln&&Un(e,t)?(e=tn(),en=Jt=Zt=null,Wn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Yr(r,"onBeforeInput")).length&&(a=new kn("onBeforeInput","beforeinput",null,n,a),i.push({event:a,listeners:r}),a.data=y))}Hr(i,t)}))}function qr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yr(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;5===a.tag&&null!==o&&(a=o,null!=(o=Me(e,n))&&r.unshift(qr(e,o,a)),null!=(o=Me(e,t))&&r.push(qr(e,o,a))),e=e.return}return r}function Gr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kr(e,t,n,r,a){for(var o=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,a?null!=(s=Me(n,o))&&i.unshift(qr(n,s,l)):a||null!=(s=Me(n,o))&&i.push(qr(n,s,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Qr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Zr(e){return("string"==typeof e?e:""+e).replace(Qr,"\n").replace(Xr,"")}function Jr(e,t,r){if(t=Zr(t),Zr(e)!==t&&r)throw Error(n(425))}function ea(){}var ta=null,na=null;function ra(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var aa="function"==typeof setTimeout?setTimeout:void 0,oa="function"==typeof clearTimeout?clearTimeout:void 0,ia="function"==typeof Promise?Promise:void 0,la="function"==typeof queueMicrotask?queueMicrotask:void 0!==ia?function(e){return ia.resolve(null).then(e).catch(sa)}:aa;function sa(e){setTimeout((function(){throw e}))}function ua(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===r)return e.removeChild(a),void Wt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=a}while(n);Wt(t)}function ca(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function da(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fa=Math.random().toString(36).slice(2),pa="__reactFiber$"+fa,ha="__reactProps$"+fa,va="__reactContainer$"+fa,ma="__reactEvents$"+fa,ga="__reactListeners$"+fa,ya="__reactHandles$"+fa;function ba(e){var t=e[pa];if(t)return t;for(var n=e.parentNode;n;){if(t=n[va]||n[pa]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=da(e);null!==e;){if(n=e[pa])return n;e=da(e)}return t}n=(e=n).parentNode}return null}function wa(e){return!(e=e[pa]||e[va])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ka(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function Sa(e){return e[ha]||null}var xa=[],Ea=-1;function Ta(e){return{current:e}}function _a(e){0>Ea||(e.current=xa[Ea],xa[Ea]=null,Ea--)}function Ca(e,t){Ea++,xa[Ea]=e.current,e.current=t}var Da={},Ra=Ta(Da),Pa=Ta(!1),Na=Da;function Ia(e,t){var n=e.type.contextTypes;if(!n)return Da;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in n)o[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ma(e){return null!=(e=e.childContextTypes)}function Oa(){_a(Pa),_a(Ra)}function La(e,t,r){if(Ra.current!==Da)throw Error(n(168));Ca(Ra,t),Ca(Pa,r)}function za(e,t,r){var a=e.stateNode;if(t=t.childContextTypes,"function"!=typeof a.getChildContext)return r;for(var o in a=a.getChildContext())if(!(o in t))throw Error(n(108,B(e)||"Unknown",o));return F({},r,a)}function Aa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Da,Na=Ra.current,Ca(Ra,e),Ca(Pa,Pa.current),!0}function Fa(e,t,r){var a=e.stateNode;if(!a)throw Error(n(169));r?(e=za(e,t,Na),a.__reactInternalMemoizedMergedChildContext=e,_a(Pa),_a(Ra),Ca(Ra,e)):_a(Pa),Ca(Pa,r)}var Ha=null,ja=!1,Ua=!1;function Va(e){null===Ha?Ha=[e]:Ha.push(e)}function Wa(){if(!Ua&&null!==Ha){Ua=!0;var e=0,t=wt;try{var n=Ha;for(wt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ha=null,ja=!1}catch(t){throw null!==Ha&&(Ha=Ha.slice(e+1)),Ge(et,Wa),t}finally{wt=t,Ua=!1}}return null}var Ba=[],$a=0,qa=null,Ya=0,Ga=[],Ka=0,Qa=null,Xa=1,Za="";function Ja(e,t){Ba[$a++]=Ya,Ba[$a++]=qa,qa=e,Ya=t}function eo(e,t,n){Ga[Ka++]=Xa,Ga[Ka++]=Za,Ga[Ka++]=Qa,Qa=e;var r=Xa;e=Za;var a=32-lt(r)-1;r&=~(1<<a),n+=1;var o=32-lt(t)+a;if(30<o){var i=a-a%5;o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,Xa=1<<32-lt(t)+a|n<<a|r,Za=o+e}else Xa=1<<o|n<<a|r,Za=e}function to(e){null!==e.return&&(Ja(e,1),eo(e,1,0))}function no(e){for(;e===qa;)qa=Ba[--$a],Ba[$a]=null,Ya=Ba[--$a],Ba[$a]=null;for(;e===Qa;)Qa=Ga[--Ka],Ga[Ka]=null,Za=Ga[--Ka],Ga[Ka]=null,Xa=Ga[--Ka],Ga[Ka]=null}var ro=null,ao=null,oo=!1,io=null;function lo(e,t){var n=Iu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ro=e,ao=ca(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ro=e,ao=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Qa?{id:Xa,overflow:Za}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Iu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ro=e,ao=null,!0);default:return!1}}function uo(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function co(e){if(oo){var t=ao;if(t){var r=t;if(!so(e,t)){if(uo(e))throw Error(n(418));t=ca(r.nextSibling);var a=ro;t&&so(e,t)?lo(a,r):(e.flags=-4097&e.flags|2,oo=!1,ro=e)}}else{if(uo(e))throw Error(n(418));e.flags=-4097&e.flags|2,oo=!1,ro=e}}}function fo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ro=e}function po(e){if(e!==ro)return!1;if(!oo)return fo(e),oo=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ra(e.type,e.memoizedProps)),t&&(t=ao)){if(uo(e))throw ho(),Error(n(418));for(;t;)lo(e,t),t=ca(t.nextSibling)}if(fo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){ao=ca(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}ao=null}}else ao=ro?ca(e.stateNode.nextSibling):null;return!0}function ho(){for(var e=ao;e;)e=ca(e.nextSibling)}function vo(){ao=ro=null,oo=!1}function mo(e){null===io?io=[e]:io.push(e)}var go=y.ReactCurrentBatchConfig;function yo(e,t){if(e&&e.defaultProps){for(var n in t=F({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var bo=Ta(null),wo=null,ko=null,So=null;function xo(){So=ko=wo=null}function Eo(e){var t=bo.current;_a(bo),e._currentValue=t}function To(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function _o(e,t){wo=e,So=ko=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(kl=!0),e.firstContext=null)}function Co(e){var t=e._currentValue;if(So!==e)if(e={context:e,memoizedValue:t,next:null},null===ko){if(null===wo)throw Error(n(308));ko=e,wo.dependencies={lanes:0,firstContext:e}}else ko=ko.next=e;return t}var Do=null;function Ro(e){null===Do?Do=[e]:Do.push(e)}function Po(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,Ro(t)):(n.next=a.next,a.next=n),t.interleaved=n,No(e,r)}function No(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Io=!1;function Mo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Oo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Lo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Rs)){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,No(e,n)}return null===(a=r.interleaved)?(t.next=t,Ro(r)):(t.next=a.next,a.next=t),r.interleaved=t,No(e,n)}function Ao(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Fo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?a=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ho(e,t,n,r){var a=e.updateQueue;Io=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,l=a.shared.pending;if(null!==l){a.shared.pending=null;var s=l,u=s.next;s.next=null,null===i?o=u:i.next=u,i=s;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(null!==o){var d=a.baseState;for(i=0,c=u=s=null,l=o;;){var f=l.lane,p=l.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,v=l;switch(f=t,p=n,v.tag){case 1:if("function"==typeof(h=v.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=v.payload)?h.call(p,d,f):h))break e;d=F({},d,f);break e;case 2:Io=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=a.effects)?a.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=p,s=d):c=c.next=p,i|=f;if(null===(l=l.next)){if(null===(l=a.shared.pending))break;l=(f=l).next,f.next=null,a.lastBaseUpdate=f,a.shared.pending=null}}if(null===c&&(s=d),a.baseState=s,a.firstBaseUpdate=u,a.lastBaseUpdate=c,null!==(t=a.shared.interleaved)){a=t;do{i|=a.lane,a=a.next}while(a!==t)}else null===o&&(a.shared.lanes=0);As|=i,e.lanes=i,e.memoizedState=d}}function jo(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var a=e[t],o=a.callback;if(null!==o){if(a.callback=null,a=r,"function"!=typeof o)throw Error(n(191,o));o.call(a)}}}var Uo=(new e.Component).refs;function Vo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:F({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Wo={isMounted:function(e){return!!(e=e._reactInternals)&&We(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tu(),a=nu(e),o=Lo(r,a);o.payload=t,null!=n&&(o.callback=n),null!==(t=zo(e,o,a))&&(ru(t,e,a,r),Ao(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tu(),a=nu(e),o=Lo(r,a);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=zo(e,o,a))&&(ru(t,e,a,r),Ao(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tu(),r=nu(e),a=Lo(n,r);a.tag=2,null!=t&&(a.callback=t),null!==(t=zo(e,a,r))&&(ru(t,e,r,n),Ao(t,e,r))}};function Bo(e,t,n,r,a,o,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,i):!t.prototype||!t.prototype.isPureReactComponent||(!ur(n,r)||!ur(a,o))}function $o(e,t,n){var r=!1,a=Da,o=t.contextType;return"object"==typeof o&&null!==o?o=Co(o):(a=Ma(t)?Na:Ra.current,o=(r=null!=(r=t.contextTypes))?Ia(e,a):Da),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Wo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function qo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Wo.enqueueReplaceState(t,t.state,null)}function Yo(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=Uo,Mo(e);var o=t.contextType;"object"==typeof o&&null!==o?a.context=Co(o):(o=Ma(t)?Na:Ra.current,a.context=Ia(e,o)),a.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(Vo(e,t,o,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&Wo.enqueueReplaceState(a,a.state,null),Ho(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4194308)}function Go(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var a=r.stateNode}if(!a)throw Error(n(147,e));var o=a,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;t===Uo&&(t=o.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function Ko(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qo(e){return(0,e._init)(e._payload)}function Xo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function a(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ou(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Fu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var a=n.type;return a===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===M&&Qo(a)===t.type)?((r=o(t,n.props)).ref=Go(e,t,n),r.return=e,r):((r=Lu(n.type,n.key,n.props,null,e.mode,r)).ref=Go(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Hu(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=zu(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Fu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Lu(t.type,t.key,t.props,null,e.mode,n)).ref=Go(e,null,t),n.return=e,n;case k:return(t=Hu(t,e.mode,n)).return=e,t;case M:return f(e,(0,t._init)(t._payload),n)}if(ne(t)||z(t))return(t=zu(t,e.mode,n,null)).return=e,t;Ko(e,t)}return null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==a?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===a?u(e,t,n,r):null;case k:return n.key===a?c(e,t,n,r):null;case M:return p(e,t,(a=n._init)(n._payload),r)}if(ne(n)||z(n))return null!==a?null:d(e,t,n,r,null);Ko(e,n)}return null}function h(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case M:return h(e,t,n,(0,r._init)(r._payload),a)}if(ne(r)||z(r))return d(t,e=e.get(n)||null,r,a,null);Ko(t,r)}return null}function v(n,o,l,s){for(var u=null,c=null,d=o,v=o=0,m=null;null!==d&&v<l.length;v++){d.index>v?(m=d,d=null):m=d.sibling;var g=p(n,d,l[v],s);if(null===g){null===d&&(d=m);break}e&&d&&null===g.alternate&&t(n,d),o=i(g,o,v),null===c?u=g:c.sibling=g,c=g,d=m}if(v===l.length)return r(n,d),oo&&Ja(n,v),u;if(null===d){for(;v<l.length;v++)null!==(d=f(n,l[v],s))&&(o=i(d,o,v),null===c?u=d:c.sibling=d,c=d);return oo&&Ja(n,v),u}for(d=a(n,d);v<l.length;v++)null!==(m=h(d,n,v,l[v],s))&&(e&&null!==m.alternate&&d.delete(null===m.key?v:m.key),o=i(m,o,v),null===c?u=m:c.sibling=m,c=m);return e&&d.forEach((function(e){return t(n,e)})),oo&&Ja(n,v),u}function m(o,l,s,u){var c=z(s);if("function"!=typeof c)throw Error(n(150));if(null==(s=c.call(s)))throw Error(n(151));for(var d=c=null,v=l,m=l=0,g=null,y=s.next();null!==v&&!y.done;m++,y=s.next()){v.index>m?(g=v,v=null):g=v.sibling;var b=p(o,v,y.value,u);if(null===b){null===v&&(v=g);break}e&&v&&null===b.alternate&&t(o,v),l=i(b,l,m),null===d?c=b:d.sibling=b,d=b,v=g}if(y.done)return r(o,v),oo&&Ja(o,m),c;if(null===v){for(;!y.done;m++,y=s.next())null!==(y=f(o,y.value,u))&&(l=i(y,l,m),null===d?c=y:d.sibling=y,d=y);return oo&&Ja(o,m),c}for(v=a(o,v);!y.done;m++,y=s.next())null!==(y=h(v,o,m,y.value,u))&&(e&&null!==y.alternate&&v.delete(null===y.key?m:y.key),l=i(y,l,m),null===d?c=y:d.sibling=y,d=y);return e&&v.forEach((function(e){return t(o,e)})),oo&&Ja(o,m),c}return function e(n,a,i,s){if("object"==typeof i&&null!==i&&i.type===S&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case w:e:{for(var u=i.key,c=a;null!==c;){if(c.key===u){if((u=i.type)===S){if(7===c.tag){r(n,c.sibling),(a=o(c,i.props.children)).return=n,n=a;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===M&&Qo(u)===c.type){r(n,c.sibling),(a=o(c,i.props)).ref=Go(n,c,i),a.return=n,n=a;break e}r(n,c);break}t(n,c),c=c.sibling}i.type===S?((a=zu(i.props.children,n.mode,s,i.key)).return=n,n=a):((s=Lu(i.type,i.key,i.props,null,n.mode,s)).ref=Go(n,a,i),s.return=n,n=s)}return l(n);case k:e:{for(c=i.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){r(n,a.sibling),(a=o(a,i.children||[])).return=n,n=a;break e}r(n,a);break}t(n,a),a=a.sibling}(a=Hu(i,n.mode,s)).return=n,n=a}return l(n);case M:return e(n,a,(c=i._init)(i._payload),s)}if(ne(i))return v(n,a,i,s);if(z(i))return m(n,a,i,s);Ko(n,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==a&&6===a.tag?(r(n,a.sibling),(a=o(a,i)).return=n,n=a):(r(n,a),(a=Fu(i,n.mode,s)).return=n,n=a),l(n)):r(n,a)}}var Zo=Xo(!0),Jo=Xo(!1),ei={},ti=Ta(ei),ni=Ta(ei),ri=Ta(ei);function ai(e){if(e===ei)throw Error(n(174));return e}function oi(e,t){switch(Ca(ri,t),Ca(ni,e),Ca(ti,ei),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}_a(ti),Ca(ti,t)}function ii(){_a(ti),_a(ni),_a(ri)}function li(e){ai(ri.current);var t=ai(ti.current),n=ue(t,e.type);t!==n&&(Ca(ni,e),Ca(ti,n))}function si(e){ni.current===e&&(_a(ti),_a(ni))}var ui=Ta(0);function ci(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var di=[];function fi(){for(var e=0;e<di.length;e++)di[e]._workInProgressVersionPrimary=null;di.length=0}var pi=y.ReactCurrentDispatcher,hi=y.ReactCurrentBatchConfig,vi=0,mi=null,gi=null,yi=null,bi=!1,wi=!1,ki=0,Si=0;function xi(){throw Error(n(321))}function Ei(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function Ti(e,t,r,a,o,i){if(vi=i,mi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pi.current=null===e||null===e.memoizedState?sl:ul,e=r(a,o),wi){i=0;do{if(wi=!1,ki=0,25<=i)throw Error(n(301));i+=1,yi=gi=null,t.updateQueue=null,pi.current=cl,e=r(a,o)}while(wi)}if(pi.current=ll,t=null!==gi&&null!==gi.next,vi=0,yi=gi=mi=null,bi=!1,t)throw Error(n(300));return e}function _i(){var e=0!==ki;return ki=0,e}function Ci(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===yi?mi.memoizedState=yi=e:yi=yi.next=e,yi}function Di(){if(null===gi){var e=mi.alternate;e=null!==e?e.memoizedState:null}else e=gi.next;var t=null===yi?mi.memoizedState:yi.next;if(null!==t)yi=t,gi=e;else{if(null===e)throw Error(n(310));e={memoizedState:(gi=e).memoizedState,baseState:gi.baseState,baseQueue:gi.baseQueue,queue:gi.queue,next:null},null===yi?mi.memoizedState=yi=e:yi=yi.next=e}return yi}function Ri(e,t){return"function"==typeof t?t(e):t}function Pi(e){var t=Di(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var a=gi,o=a.baseQueue,i=r.pending;if(null!==i){if(null!==o){var l=o.next;o.next=i.next,i.next=l}a.baseQueue=o=i,r.pending=null}if(null!==o){i=o.next,a=a.baseState;var s=l=null,u=null,c=i;do{var d=c.lane;if((vi&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),a=c.hasEagerState?c.eagerState:e(a,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(s=u=f,l=a):u=u.next=f,mi.lanes|=d,As|=d}c=c.next}while(null!==c&&c!==i);null===u?l=a:u.next=s,sr(a,t.memoizedState)||(kl=!0),t.memoizedState=a,t.baseState=l,t.baseQueue=u,r.lastRenderedState=a}if(null!==(e=r.interleaved)){o=e;do{i=o.lane,mi.lanes|=i,As|=i,o=o.next}while(o!==e)}else null===o&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Ni(e){var t=Di(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var a=r.dispatch,o=r.pending,i=t.memoizedState;if(null!==o){r.pending=null;var l=o=o.next;do{i=e(i,l.action),l=l.next}while(l!==o);sr(i,t.memoizedState)||(kl=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),r.lastRenderedState=i}return[i,a]}function Ii(){}function Mi(e,t){var r=mi,a=Di(),o=t(),i=!sr(a.memoizedState,o);if(i&&(a.memoizedState=o,kl=!0),a=a.queue,$i(zi.bind(null,r,a,e),[e]),a.getSnapshot!==t||i||null!==yi&&1&yi.memoizedState.tag){if(r.flags|=2048,ji(9,Li.bind(null,r,a,o,t),void 0,null),null===Ps)throw Error(n(349));0!=(30&vi)||Oi(r,t,o)}return o}function Oi(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=mi.updateQueue)?(t={lastEffect:null,stores:null},mi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Li(e,t,n,r){t.value=n,t.getSnapshot=r,Ai(t)&&Fi(e)}function zi(e,t,n){return n((function(){Ai(t)&&Fi(e)}))}function Ai(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function Fi(e){var t=No(e,1);null!==t&&ru(t,e,1,-1)}function Hi(e){var t=Ci();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ri,lastRenderedState:e},t.queue=e,e=e.dispatch=rl.bind(null,mi,e),[t.memoizedState,e]}function ji(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=mi.updateQueue)?(t={lastEffect:null,stores:null},mi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ui(){return Di().memoizedState}function Vi(e,t,n,r){var a=Ci();mi.flags|=e,a.memoizedState=ji(1|t,n,void 0,void 0===r?null:r)}function Wi(e,t,n,r){var a=Di();r=void 0===r?null:r;var o=void 0;if(null!==gi){var i=gi.memoizedState;if(o=i.destroy,null!==r&&Ei(r,i.deps))return void(a.memoizedState=ji(t,n,o,r))}mi.flags|=e,a.memoizedState=ji(1|t,n,o,r)}function Bi(e,t){return Vi(8390656,8,e,t)}function $i(e,t){return Wi(2048,8,e,t)}function qi(e,t){return Wi(4,2,e,t)}function Yi(e,t){return Wi(4,4,e,t)}function Gi(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ki(e,t,n){return n=null!=n?n.concat([e]):null,Wi(4,4,Gi.bind(null,t,e),n)}function Qi(){}function Xi(e,t){var n=Di();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ei(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Zi(e,t){var n=Di();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ei(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ji(e,t,n){return 0==(21&vi)?(e.baseState&&(e.baseState=!1,kl=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),mi.lanes|=n,As|=n,e.baseState=!0),t)}function el(e,t){var n=wt;wt=0!==n&&4>n?n:4,e(!0);var r=hi.transition;hi.transition={};try{e(!1),t()}finally{wt=n,hi.transition=r}}function tl(){return Di().memoizedState}function nl(e,t,n){var r=nu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},al(e))ol(t,n);else if(null!==(n=Po(e,t,n,r))){ru(n,e,r,tu()),il(n,t,r)}}function rl(e,t,n){var r=nu(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(al(e))ol(t,a);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=o(i,n);if(a.hasEagerState=!0,a.eagerState=l,sr(l,i)){var s=t.interleaved;return null===s?(a.next=a,Ro(t)):(a.next=s.next,s.next=a),void(t.interleaved=a)}}catch(e){}null!==(n=Po(e,t,a,r))&&(ru(n,e,r,a=tu()),il(n,t,r))}}function al(e){var t=e.alternate;return e===mi||null!==t&&t===mi}function ol(e,t){wi=bi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function il(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var ll={readContext:Co,useCallback:xi,useContext:xi,useEffect:xi,useImperativeHandle:xi,useInsertionEffect:xi,useLayoutEffect:xi,useMemo:xi,useReducer:xi,useRef:xi,useState:xi,useDebugValue:xi,useDeferredValue:xi,useTransition:xi,useMutableSource:xi,useSyncExternalStore:xi,useId:xi,unstable_isNewReconciler:!1},sl={readContext:Co,useCallback:function(e,t){return Ci().memoizedState=[e,void 0===t?null:t],e},useContext:Co,useEffect:Bi,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Vi(4194308,4,Gi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vi(4,2,e,t)},useMemo:function(e,t){var n=Ci();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ci();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=nl.bind(null,mi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ci().memoizedState=e},useState:Hi,useDebugValue:Qi,useDeferredValue:function(e){return Ci().memoizedState=e},useTransition:function(){var e=Hi(!1),t=e[0];return e=el.bind(null,e[1]),Ci().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var a=mi,o=Ci();if(oo){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Ps)throw Error(n(349));0!=(30&vi)||Oi(a,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,Bi(zi.bind(null,a,i,e),[e]),a.flags|=2048,ji(9,Li.bind(null,a,i,r,t),void 0,null),r},useId:function(){var e=Ci(),t=Ps.identifierPrefix;if(oo){var n=Za;t=":"+t+"R"+(n=(Xa&~(1<<32-lt(Xa)-1)).toString(32)+n),0<(n=ki++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Si++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ul={readContext:Co,useCallback:Xi,useContext:Co,useEffect:$i,useImperativeHandle:Ki,useInsertionEffect:qi,useLayoutEffect:Yi,useMemo:Zi,useReducer:Pi,useRef:Ui,useState:function(){return Pi(Ri)},useDebugValue:Qi,useDeferredValue:function(e){return Ji(Di(),gi.memoizedState,e)},useTransition:function(){return[Pi(Ri)[0],Di().memoizedState]},useMutableSource:Ii,useSyncExternalStore:Mi,useId:tl,unstable_isNewReconciler:!1},cl={readContext:Co,useCallback:Xi,useContext:Co,useEffect:$i,useImperativeHandle:Ki,useInsertionEffect:qi,useLayoutEffect:Yi,useMemo:Zi,useReducer:Ni,useRef:Ui,useState:function(){return Ni(Ri)},useDebugValue:Qi,useDeferredValue:function(e){var t=Di();return null===gi?t.memoizedState=e:Ji(t,gi.memoizedState,e)},useTransition:function(){return[Ni(Ri)[0],Di().memoizedState]},useMutableSource:Ii,useSyncExternalStore:Mi,useId:tl,unstable_isNewReconciler:!1};function dl(e,t){try{var n="",r=t;do{n+=V(r),r=r.return}while(r);var a=n}catch(e){a="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:a,digest:null}}function fl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function pl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var hl="function"==typeof WeakMap?WeakMap:Map;function vl(e,t,n){(n=Lo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){$s||($s=!0,qs=r),pl(0,t)},n}function ml(e,t,n){(n=Lo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){pl(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){pl(0,t),"function"!=typeof r&&(null===Ys?Ys=new Set([this]):Ys.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hl;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=_u.bind(null,e,t,n),t.then(e,e))}function yl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function bl(e,t,n,r,a){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Lo(-1,1)).tag=2,zo(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var wl=y.ReactCurrentOwner,kl=!1;function Sl(e,t,n,r){t.child=null===e?Jo(t,null,n,r):Zo(t,e.child,n,r)}function xl(e,t,n,r,a){n=n.render;var o=t.ref;return _o(t,a),r=Ti(e,t,n,r,o,a),n=_i(),null===e||kl?(oo&&n&&to(t),t.flags|=1,Sl(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,$l(e,t,a))}function El(e,t,n,r,a){if(null===e){var o=n.type;return"function"!=typeof o||Mu(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Lu(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Tl(e,t,o,r,a))}if(o=e.child,0==(e.lanes&a)){var i=o.memoizedProps;if((n=null!==(n=n.compare)?n:ur)(i,r)&&e.ref===t.ref)return $l(e,t,a)}return t.flags|=1,(e=Ou(o,r)).ref=t.ref,e.return=t,t.child=e}function Tl(e,t,n,r,a){if(null!==e){var o=e.memoizedProps;if(ur(o,r)&&e.ref===t.ref){if(kl=!1,t.pendingProps=r=o,0==(e.lanes&a))return t.lanes=e.lanes,$l(e,t,a);0!=(131072&e.flags)&&(kl=!0)}}return Dl(e,t,n,r,a)}function _l(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ca(Os,Ms),Ms|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ca(Os,Ms),Ms|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Ca(Os,Ms),Ms|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ca(Os,Ms),Ms|=r;return Sl(e,t,a,n),t.child}function Cl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Dl(e,t,n,r,a){var o=Ma(n)?Na:Ra.current;return o=Ia(t,o),_o(t,a),n=Ti(e,t,n,r,o,a),r=_i(),null===e||kl?(oo&&r&&to(t),t.flags|=1,Sl(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,$l(e,t,a))}function Rl(e,t,n,r,a){if(Ma(n)){var o=!0;Aa(t)}else o=!1;if(_o(t,a),null===t.stateNode)Bl(e,t),$o(t,n,r),Yo(t,n,r,a),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,u=n.contextType;"object"==typeof u&&null!==u?u=Co(u):u=Ia(t,u=Ma(n)?Na:Ra.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||s!==u)&&qo(t,i,r,u),Io=!1;var f=t.memoizedState;i.state=f,Ho(t,r,i,a),s=t.memoizedState,l!==r||f!==s||Pa.current||Io?("function"==typeof c&&(Vo(t,n,c,r),s=t.memoizedState),(l=Io||Bo(t,n,l,r,f,s,u))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=u,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Oo(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:yo(t.type,l),i.props=u,d=t.pendingProps,f=i.context,"object"==typeof(s=n.contextType)&&null!==s?s=Co(s):s=Ia(t,s=Ma(n)?Na:Ra.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==d||f!==s)&&qo(t,i,r,s),Io=!1,f=t.memoizedState,i.state=f,Ho(t,r,i,a);var h=t.memoizedState;l!==d||f!==h||Pa.current||Io?("function"==typeof p&&(Vo(t,n,p,r),h=t.memoizedState),(u=Io||Bo(t,n,u,r,f,h,s)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,s),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=s,r=u):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Pl(e,t,n,r,o,a)}function Pl(e,t,n,r,a,o){Cl(e,t);var i=0!=(128&t.flags);if(!r&&!i)return a&&Fa(t,n,!1),$l(e,t,o);r=t.stateNode,wl.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Zo(t,e.child,null,o),t.child=Zo(t,null,l,o)):Sl(e,t,l,o),t.memoizedState=r.state,a&&Fa(t,n,!0),t.child}function Nl(e){var t=e.stateNode;t.pendingContext?La(0,t.pendingContext,t.pendingContext!==t.context):t.context&&La(0,t.context,!1),oi(e,t.containerInfo)}function Il(e,t,n,r,a){return vo(),mo(a),t.flags|=256,Sl(e,t,n,r),t.child}var Ml,Ol,Ll,zl={dehydrated:null,treeContext:null,retryLane:0};function Al(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fl(e,t,r){var a,o=t.pendingProps,i=ui.current,l=!1,s=0!=(128&t.flags);if((a=s)||(a=(null===e||null!==e.memoizedState)&&0!=(2&i)),a?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Ca(ui,1&i),null===e)return co(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=o.children,e=o.fallback,l?(o=t.mode,l=t.child,s={mode:"hidden",children:s},0==(1&o)&&null!==l?(l.childLanes=0,l.pendingProps=s):l=Au(s,o,0,null),e=zu(e,o,r,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Al(r),t.memoizedState=zl,e):Hl(t,s));if(null!==(i=e.memoizedState)&&null!==(a=i.dehydrated))return function(e,t,r,a,o,i,l){if(r)return 256&t.flags?(t.flags&=-257,jl(e,t,l,a=fl(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=a.fallback,o=t.mode,a=Au({mode:"visible",children:a.children},o,0,null),(i=zu(i,o,l,null)).flags|=2,a.return=t,i.return=t,a.sibling=i,t.child=a,0!=(1&t.mode)&&Zo(t,e.child,null,l),t.child.memoizedState=Al(l),t.memoizedState=zl,i);if(0==(1&t.mode))return jl(e,t,l,null);if("$!"===o.data){if(a=o.nextSibling&&o.nextSibling.dataset)var s=a.dgst;return a=s,jl(e,t,l,a=fl(i=Error(n(419)),a,void 0))}if(s=0!=(l&e.childLanes),kl||s){if(null!==(a=Ps)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(a.suspendedLanes|l))?0:o)&&o!==i.retryLane&&(i.retryLane=o,No(e,o),ru(a,e,o,-1))}return mu(),jl(e,t,l,a=fl(Error(n(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Du.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,ao=ca(o.nextSibling),ro=t,oo=!0,io=null,null!==e&&(Ga[Ka++]=Xa,Ga[Ka++]=Za,Ga[Ka++]=Qa,Xa=e.id,Za=e.overflow,Qa=t),(t=Hl(t,a.children)).flags|=4096,t)}(e,t,s,o,a,i,r);if(l){l=o.fallback,s=t.mode,a=(i=e.child).sibling;var u={mode:"hidden",children:o.children};return 0==(1&s)&&t.child!==i?((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null):(o=Ou(i,u)).subtreeFlags=14680064&i.subtreeFlags,null!==a?l=Ou(a,l):(l=zu(l,s,r,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,s=null===(s=e.child.memoizedState)?Al(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~r,t.memoizedState=zl,o}return e=(l=e.child).sibling,o=Ou(l,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=r),o.return=t,o.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Hl(e,t){return(t=Au({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function jl(e,t,n,r){return null!==r&&mo(r),Zo(t,e.child,null,n),(e=Hl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ul(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),To(e.return,t,n)}function Vl(e,t,n,r,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function Wl(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(Sl(e,t,r.children,n),0!=(2&(r=ui.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ul(e,n,t);else if(19===e.tag)Ul(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ca(ui,r),0==(1&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===ci(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Vl(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===ci(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Vl(t,!0,n,null,o);break;case"together":Vl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Bl(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $l(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),As|=t.lanes,0==(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Ou(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Ou(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function ql(e,t){if(!oo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Yl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Gl(e,t,r){var o=t.pendingProps;switch(no(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yl(t),null;case 1:case 17:return Ma(t.type)&&Oa(),Yl(t),null;case 3:return o=t.stateNode,ii(),_a(Pa),_a(Ra),fi(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null!==e&&null!==e.child||(po(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==io&&(lu(io),io=null))),Yl(t),null;case 5:si(t);var i=ai(ri.current);if(r=t.type,null!==e&&null!=t.stateNode)Ol(e,t,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(null===t.stateNode)throw Error(n(166));return Yl(t),null}if(e=ai(ti.current),po(t)){o=t.stateNode,r=t.type;var l=t.memoizedProps;switch(o[pa]=t,o[ha]=l,e=0!=(1&t.mode),r){case"dialog":jr("cancel",o),jr("close",o);break;case"iframe":case"object":case"embed":jr("load",o);break;case"video":case"audio":for(i=0;i<zr.length;i++)jr(zr[i],o);break;case"source":jr("error",o);break;case"img":case"image":case"link":jr("error",o),jr("load",o);break;case"details":jr("toggle",o);break;case"input":X(o,l),jr("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!l.multiple},jr("invalid",o);break;case"textarea":oe(o,l),jr("invalid",o)}for(var s in be(r,l),i=null,l)if(l.hasOwnProperty(s)){var u=l[s];"children"===s?"string"==typeof u?o.textContent!==u&&(!0!==l.suppressHydrationWarning&&Jr(o.textContent,u,e),i=["children",u]):"number"==typeof u&&o.textContent!==""+u&&(!0!==l.suppressHydrationWarning&&Jr(o.textContent,u,e),i=["children",""+u]):a.hasOwnProperty(s)&&null!=u&&"onScroll"===s&&jr("scroll",o)}switch(r){case"input":Y(o),ee(o,l,!0);break;case"textarea":Y(o),le(o);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(o.onclick=ea)}o=i,t.updateQueue=o,null!==o&&(t.flags|=4)}else{s=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof o.is?e=s.createElement(r,{is:o.is}):(e=s.createElement(r),"select"===r&&(s=e,o.multiple?s.multiple=!0:o.size&&(s.size=o.size))):e=s.createElementNS(e,r),e[pa]=t,e[ha]=o,Ml(e,t),t.stateNode=e;e:{switch(s=we(r,o),r){case"dialog":jr("cancel",e),jr("close",e),i=o;break;case"iframe":case"object":case"embed":jr("load",e),i=o;break;case"video":case"audio":for(i=0;i<zr.length;i++)jr(zr[i],e);i=o;break;case"source":jr("error",e),i=o;break;case"img":case"image":case"link":jr("error",e),jr("load",e),i=o;break;case"details":jr("toggle",e),i=o;break;case"input":X(e,o),i=Q(e,o),jr("invalid",e);break;case"option":default:i=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},i=F({},o,{value:void 0}),jr("invalid",e);break;case"textarea":oe(e,o),i=ae(e,o),jr("invalid",e)}for(l in be(r,i),u=i)if(u.hasOwnProperty(l)){var c=u[l];"style"===l?ge(e,c):"dangerouslySetInnerHTML"===l?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===l?"string"==typeof c?("textarea"!==r||""!==c)&&pe(e,c):"number"==typeof c&&pe(e,""+c):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(a.hasOwnProperty(l)?null!=c&&"onScroll"===l&&jr("scroll",e):null!=c&&g(e,l,c,s))}switch(r){case"input":Y(e),ee(e,o,!1);break;case"textarea":Y(e),le(e);break;case"option":null!=o.value&&e.setAttribute("value",""+$(o.value));break;case"select":e.multiple=!!o.multiple,null!=(l=o.value)?re(e,!!o.multiple,l,!1):null!=o.defaultValue&&re(e,!!o.multiple,o.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=ea)}switch(r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Yl(t),null;case 6:if(e&&null!=t.stateNode)Ll(0,t,e.memoizedProps,o);else{if("string"!=typeof o&&null===t.stateNode)throw Error(n(166));if(r=ai(ri.current),ai(ti.current),po(t)){if(o=t.stateNode,r=t.memoizedProps,o[pa]=t,(l=o.nodeValue!==r)&&null!==(e=ro))switch(e.tag){case 3:Jr(o.nodeValue,r,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(o.nodeValue,r,0!=(1&e.mode))}l&&(t.flags|=4)}else(o=(9===r.nodeType?r:r.ownerDocument).createTextNode(o))[pa]=t,t.stateNode=o}return Yl(t),null;case 13:if(_a(ui),o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(oo&&null!==ao&&0!=(1&t.mode)&&0==(128&t.flags))ho(),vo(),t.flags|=98560,l=!1;else if(l=po(t),null!==o&&null!==o.dehydrated){if(null===e){if(!l)throw Error(n(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(n(317));l[pa]=t}else vo(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Yl(t),l=!1}else null!==io&&(lu(io),io=null),l=!0;if(!l)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=r,t):((o=null!==o)!==(null!==e&&null!==e.memoizedState)&&o&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ui.current)?0===Ls&&(Ls=3):mu())),null!==t.updateQueue&&(t.flags|=4),Yl(t),null);case 4:return ii(),null===e&&Wr(t.stateNode.containerInfo),Yl(t),null;case 10:return Eo(t.type._context),Yl(t),null;case 19:if(_a(ui),null===(l=t.memoizedState))return Yl(t),null;if(o=0!=(128&t.flags),null===(s=l.rendering))if(o)ql(l,!1);else{if(0!==Ls||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(s=ci(e))){for(t.flags|=128,ql(l,!1),null!==(o=s.updateQueue)&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=r,r=t.child;null!==r;)e=o,(l=r).flags&=14680066,null===(s=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=s.childLanes,l.lanes=s.lanes,l.child=s.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=s.memoizedProps,l.memoizedState=s.memoizedState,l.updateQueue=s.updateQueue,l.type=s.type,e=s.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Ca(ui,1&ui.current|2),t.child}e=e.sibling}null!==l.tail&&Ze()>Ws&&(t.flags|=128,o=!0,ql(l,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=ci(s))){if(t.flags|=128,o=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),ql(l,!0),null===l.tail&&"hidden"===l.tailMode&&!s.alternate&&!oo)return Yl(t),null}else 2*Ze()-l.renderingStartTime>Ws&&1073741824!==r&&(t.flags|=128,o=!0,ql(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(null!==(r=l.last)?r.sibling=s:t.child=s,l.last=s)}return null!==l.tail?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Ze(),t.sibling=null,r=ui.current,Ca(ui,o?1&r|2:1&r),t):(Yl(t),null);case 22:case 23:return fu(),o=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==o&&(t.flags|=8192),o&&0!=(1&t.mode)?0!=(1073741824&Ms)&&(Yl(t),6&t.subtreeFlags&&(t.flags|=8192)):Yl(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Kl(e,t){switch(no(t),t.tag){case 1:return Ma(t.type)&&Oa(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ii(),_a(Pa),_a(Ra),fi(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return si(t),null;case 13:if(_a(ui),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));vo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return _a(ui),null;case 4:return ii(),null;case 10:return Eo(t.type._context),null;case 22:case 23:return fu(),null;default:return null}}Ml=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ol=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ai(ti.current);var i,l=null;switch(n){case"input":o=Q(e,o),r=Q(e,r),l=[];break;case"select":o=F({},o,{value:void 0}),r=F({},r,{value:void 0}),l=[];break;case"textarea":o=ae(e,o),r=ae(e,r),l=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=ea)}for(c in be(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var s=o[c];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(a.hasOwnProperty(c)?l||(l=[]):(l=l||[]).push(c,null));for(c in r){var u=r[c];if(s=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==s&&(null!=u||null!=s))if("style"===c)if(s){for(i in s)!s.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&s[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(l||(l=[]),l.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,s=s?s.__html:void 0,null!=u&&s!==u&&(l=l||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(l=l||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(a.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&jr("scroll",e),l||s===u||(l=[])):(l=l||[]).push(c,u))}n&&(l=l||[]).push("style",n);var c=l;(t.updateQueue=c)&&(t.flags|=4)}},Ll=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ql=!1,Xl=!1,Zl="function"==typeof WeakSet?WeakSet:Set,Jl=null;function es(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Tu(e,t,n)}else n.current=null}function ts(e,t,n){try{n()}catch(n){Tu(e,t,n)}}var ns=!1;function rs(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,void 0!==o&&ts(t,n,o)}a=a.next}while(a!==r)}}function as(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function os(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function is(e){var t=e.alternate;null!==t&&(e.alternate=null,is(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[pa],delete t[ha],delete t[ma],delete t[ga],delete t[ya])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ls(e){return 5===e.tag||3===e.tag||4===e.tag}function ss(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ls(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function us(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=ea));else if(4!==r&&null!==(e=e.child))for(us(e,t,n),e=e.sibling;null!==e;)us(e,t,n),e=e.sibling}function cs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cs(e,t,n),e=e.sibling;null!==e;)cs(e,t,n),e=e.sibling}var ds=null,fs=!1;function ps(e,t,n){for(n=n.child;null!==n;)hs(e,t,n),n=n.sibling}function hs(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Xl||es(n,t);case 6:var r=ds,a=fs;ds=null,ps(e,t,n),fs=a,null!==(ds=r)&&(fs?(e=ds,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ds.removeChild(n.stateNode));break;case 18:null!==ds&&(fs?(e=ds,n=n.stateNode,8===e.nodeType?ua(e.parentNode,n):1===e.nodeType&&ua(e,n),Wt(e)):ua(ds,n.stateNode));break;case 4:r=ds,a=fs,ds=n.stateNode.containerInfo,fs=!0,ps(e,t,n),ds=r,fs=a;break;case 0:case 11:case 14:case 15:if(!Xl&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){a=r=r.next;do{var o=a,i=o.destroy;o=o.tag,void 0!==i&&(0!=(2&o)||0!=(4&o))&&ts(n,t,i),a=a.next}while(a!==r)}ps(e,t,n);break;case 1:if(!Xl&&(es(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Tu(n,t,e)}ps(e,t,n);break;case 21:ps(e,t,n);break;case 22:1&n.mode?(Xl=(r=Xl)||null!==n.memoizedState,ps(e,t,n),Xl=r):ps(e,t,n);break;default:ps(e,t,n)}}function vs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Zl),t.forEach((function(t){var r=Ru.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ms(e,t){var r=t.deletions;if(null!==r)for(var a=0;a<r.length;a++){var o=r[a];try{var i=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:ds=s.stateNode,fs=!1;break e;case 3:case 4:ds=s.stateNode.containerInfo,fs=!0;break e}s=s.return}if(null===ds)throw Error(n(160));hs(i,l,o),ds=null,fs=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(e){Tu(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gs(t,e),t=t.sibling}function gs(e,t){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ms(t,e),ys(e),4&a){try{rs(3,e,e.return),as(3,e)}catch(t){Tu(e,e.return,t)}try{rs(5,e,e.return)}catch(t){Tu(e,e.return,t)}}break;case 1:ms(t,e),ys(e),512&a&&null!==r&&es(r,r.return);break;case 5:if(ms(t,e),ys(e),512&a&&null!==r&&es(r,r.return),32&e.flags){var o=e.stateNode;try{pe(o,"")}catch(t){Tu(e,e.return,t)}}if(4&a&&null!=(o=e.stateNode)){var i=e.memoizedProps,l=null!==r?r.memoizedProps:i,s=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===s&&"radio"===i.type&&null!=i.name&&Z(o,i),we(s,l);var c=we(s,i);for(l=0;l<u.length;l+=2){var d=u[l],f=u[l+1];"style"===d?ge(o,f):"dangerouslySetInnerHTML"===d?fe(o,f):"children"===d?pe(o,f):g(o,d,f,c)}switch(s){case"input":J(o,i);break;case"textarea":ie(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var h=i.value;null!=h?re(o,!!i.multiple,h,!1):p!==!!i.multiple&&(null!=i.defaultValue?re(o,!!i.multiple,i.defaultValue,!0):re(o,!!i.multiple,i.multiple?[]:"",!1))}o[ha]=i}catch(t){Tu(e,e.return,t)}}break;case 6:if(ms(t,e),ys(e),4&a){if(null===e.stateNode)throw Error(n(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){Tu(e,e.return,t)}}break;case 3:if(ms(t,e),ys(e),4&a&&null!==r&&r.memoizedState.isDehydrated)try{Wt(t.containerInfo)}catch(t){Tu(e,e.return,t)}break;case 4:default:ms(t,e),ys(e);break;case 13:ms(t,e),ys(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Vs=Ze())),4&a&&vs(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Xl=(c=Xl)||d,ms(t,e),Xl=c):ms(t,e),ys(e),8192&a){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&0!=(1&e.mode))for(Jl=e,d=e.child;null!==d;){for(f=Jl=d;null!==Jl;){switch(h=(p=Jl).child,p.tag){case 0:case 11:case 14:case 15:rs(4,p,p.return);break;case 1:es(p,p.return);var v=p.stateNode;if("function"==typeof v.componentWillUnmount){a=p,r=p.return;try{t=a,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(e){Tu(a,r,e)}}break;case 5:es(p,p.return);break;case 22:if(null!==p.memoizedState){Ss(f);continue}}null!==h?(h.return=p,Jl=h):Ss(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,c?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(s=f.stateNode,l=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,s.style.display=me("display",l))}catch(t){Tu(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){Tu(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ms(t,e),ys(e),4&a&&vs(e);case 21:}}function ys(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(ls(r)){var a=r;break e}r=r.return}throw Error(n(160))}switch(a.tag){case 5:var o=a.stateNode;32&a.flags&&(pe(o,""),a.flags&=-33),cs(e,ss(e),o);break;case 3:case 4:var i=a.stateNode.containerInfo;us(e,ss(e),i);break;default:throw Error(n(161))}}catch(t){Tu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bs(e,t,n){Jl=e,ws(e)}function ws(e,t,n){for(var r=0!=(1&e.mode);null!==Jl;){var a=Jl,o=a.child;if(22===a.tag&&r){var i=null!==a.memoizedState||Ql;if(!i){var l=a.alternate,s=null!==l&&null!==l.memoizedState||Xl;l=Ql;var u=Xl;if(Ql=i,(Xl=s)&&!u)for(Jl=a;null!==Jl;)s=(i=Jl).child,22===i.tag&&null!==i.memoizedState?xs(a):null!==s?(s.return=i,Jl=s):xs(a);for(;null!==o;)Jl=o,ws(o),o=o.sibling;Jl=a,Ql=l,Xl=u}ks(e)}else 0!=(8772&a.subtreeFlags)&&null!==o?(o.return=a,Jl=o):ks(e)}}function ks(e){for(;null!==Jl;){var t=Jl;if(0!=(8772&t.flags)){var r=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Xl||as(5,t);break;case 1:var a=t.stateNode;if(4&t.flags&&!Xl)if(null===r)a.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:yo(t.type,r.memoizedProps);a.componentDidUpdate(o,r.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&jo(t,i,a);break;case 3:var l=t.updateQueue;if(null!==l){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}jo(t,l,r)}break;case 5:var s=t.stateNode;if(null===r&&4&t.flags){r=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Wt(f)}}}break;default:throw Error(n(163))}Xl||512&t.flags&&os(t)}catch(e){Tu(t,t.return,e)}}if(t===e){Jl=null;break}if(null!==(r=t.sibling)){r.return=t.return,Jl=r;break}Jl=t.return}}function Ss(e){for(;null!==Jl;){var t=Jl;if(t===e){Jl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Jl=n;break}Jl=t.return}}function xs(e){for(;null!==Jl;){var t=Jl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{as(4,t)}catch(e){Tu(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var a=t.return;try{r.componentDidMount()}catch(e){Tu(t,a,e)}}var o=t.return;try{os(t)}catch(e){Tu(t,o,e)}break;case 5:var i=t.return;try{os(t)}catch(e){Tu(t,i,e)}}}catch(e){Tu(t,t.return,e)}if(t===e){Jl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Jl=l;break}Jl=t.return}}var Es,Ts=Math.ceil,_s=y.ReactCurrentDispatcher,Cs=y.ReactCurrentOwner,Ds=y.ReactCurrentBatchConfig,Rs=0,Ps=null,Ns=null,Is=0,Ms=0,Os=Ta(0),Ls=0,zs=null,As=0,Fs=0,Hs=0,js=null,Us=null,Vs=0,Ws=1/0,Bs=null,$s=!1,qs=null,Ys=null,Gs=!1,Ks=null,Qs=0,Xs=0,Zs=null,Js=-1,eu=0;function tu(){return 0!=(6&Rs)?Ze():-1!==Js?Js:Js=Ze()}function nu(e){return 0==(1&e.mode)?1:0!=(2&Rs)&&0!==Is?Is&-Is:null!==go.transition?(0===eu&&(eu=mt()),eu):0!==(e=wt)?e:e=void 0===(e=window.event)?16:Xt(e.type)}function ru(e,t,r,a){if(50<Xs)throw Xs=0,Zs=null,Error(n(185));yt(e,r,a),0!=(2&Rs)&&e===Ps||(e===Ps&&(0==(2&Rs)&&(Fs|=r),4===Ls&&su(e,Is)),au(e,a),1===r&&0===Rs&&0==(1&t.mode)&&(Ws=Ze()+500,ja&&Wa()))}function au(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-lt(o),l=1<<i,s=a[i];-1===s?0!=(l&n)&&0==(l&r)||(a[i]=ht(l,t)):s<=t&&(e.expiredLanes|=l),o&=~l}}(e,t);var r=pt(e,e===Ps?Is:0);if(0===r)null!==n&&Ke(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ke(n),1===t)0===e.tag?function(e){ja=!0,Va(e)}(uu.bind(null,e)):Va(uu.bind(null,e)),la((function(){0==(6&Rs)&&Wa()})),n=null;else{switch(kt(r)){case 1:n=et;break;case 4:n=tt;break;case 16:default:n=nt;break;case 536870912:n=at}n=Pu(n,ou.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ou(e,t){if(Js=-1,eu=0,0!=(6&Rs))throw Error(n(327));var r=e.callbackNode;if(xu()&&e.callbackNode!==r)return null;var a=pt(e,e===Ps?Is:0);if(0===a)return null;if(0!=(30&a)||0!=(a&e.expiredLanes)||t)t=gu(e,a);else{t=a;var o=Rs;Rs|=2;var i=vu();for(Ps===e&&Is===t||(Bs=null,Ws=Ze()+500,pu(e,t));;)try{bu();break}catch(t){hu(e,t)}xo(),_s.current=i,Rs=o,null!==Ns?t=0:(Ps=null,Is=0,t=Ls)}if(0!==t){if(2===t&&(0!==(o=vt(e))&&(a=o,t=iu(e,o))),1===t)throw r=zs,pu(e,0),su(e,a),au(e,Ze()),r;if(6===t)su(e,a);else{if(o=e.current.alternate,0==(30&a)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!sr(o(),a))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=gu(e,a))&&(0!==(i=vt(e))&&(a=i,t=iu(e,i))),1===t))throw r=zs,pu(e,0),su(e,a),au(e,Ze()),r;switch(e.finishedWork=o,e.finishedLanes=a,t){case 0:case 1:throw Error(n(345));case 2:case 5:Su(e,Us,Bs);break;case 3:if(su(e,a),(130023424&a)===a&&10<(t=Vs+500-Ze())){if(0!==pt(e,0))break;if(((o=e.suspendedLanes)&a)!==a){tu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=aa(Su.bind(null,e,Us,Bs),t);break}Su(e,Us,Bs);break;case 4:if(su(e,a),(4194240&a)===a)break;for(t=e.eventTimes,o=-1;0<a;){var l=31-lt(a);i=1<<l,(l=t[l])>o&&(o=l),a&=~i}if(a=o,10<(a=(120>(a=Ze()-a)?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*Ts(a/1960))-a)){e.timeoutHandle=aa(Su.bind(null,e,Us,Bs),a);break}Su(e,Us,Bs);break;default:throw Error(n(329))}}}return au(e,Ze()),e.callbackNode===r?ou.bind(null,e):null}function iu(e,t){var n=js;return e.current.memoizedState.isDehydrated&&(pu(e,t).flags|=256),2!==(e=gu(e,t))&&(t=Us,Us=n,null!==t&&lu(t)),e}function lu(e){null===Us?Us=e:Us.push.apply(Us,e)}function su(e,t){for(t&=~Hs,t&=~Fs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-lt(t),r=1<<n;e[n]=-1,t&=~r}}function uu(e){if(0!=(6&Rs))throw Error(n(327));xu();var t=pt(e,0);if(0==(1&t))return au(e,Ze()),null;var r=gu(e,t);if(0!==e.tag&&2===r){var a=vt(e);0!==a&&(t=a,r=iu(e,a))}if(1===r)throw r=zs,pu(e,0),su(e,t),au(e,Ze()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Su(e,Us,Bs),au(e,Ze()),null}function cu(e,t){var n=Rs;Rs|=1;try{return e(t)}finally{0===(Rs=n)&&(Ws=Ze()+500,ja&&Wa())}}function du(e){null!==Ks&&0===Ks.tag&&0==(6&Rs)&&xu();var t=Rs;Rs|=1;var n=Ds.transition,r=wt;try{if(Ds.transition=null,wt=1,e)return e()}finally{wt=r,Ds.transition=n,0==(6&(Rs=t))&&Wa()}}function fu(){Ms=Os.current,_a(Os)}function pu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oa(n)),null!==Ns)for(n=Ns.return;null!==n;){var r=n;switch(no(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Oa();break;case 3:ii(),_a(Pa),_a(Ra),fi();break;case 5:si(r);break;case 4:ii();break;case 13:case 19:_a(ui);break;case 10:Eo(r.type._context);break;case 22:case 23:fu()}n=n.return}if(Ps=e,Ns=e=Ou(e.current,null),Is=Ms=t,Ls=0,zs=null,Hs=Fs=As=0,Us=js=null,null!==Do){for(t=0;t<Do.length;t++)if(null!==(r=(n=Do[t]).interleaved)){n.interleaved=null;var a=r.next,o=n.pending;if(null!==o){var i=o.next;o.next=a,r.next=i}n.pending=r}Do=null}return e}function hu(e,t){for(;;){var r=Ns;try{if(xo(),pi.current=ll,bi){for(var a=mi.memoizedState;null!==a;){var o=a.queue;null!==o&&(o.pending=null),a=a.next}bi=!1}if(vi=0,yi=gi=mi=null,wi=!1,ki=0,Cs.current=null,null===r||null===r.return){Ls=1,zs=t,Ns=null;break}e:{var i=e,l=r.return,s=r,u=t;if(t=Is,s.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=s,f=d.tag;if(0==(1&d.mode)&&(0===f||11===f||15===f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=yl(l);if(null!==h){h.flags&=-257,bl(h,l,s,0,t),1&h.mode&&gl(i,c,t),u=c;var v=(t=h).updateQueue;if(null===v){var m=new Set;m.add(u),t.updateQueue=m}else v.add(u);break e}if(0==(1&t)){gl(i,c,t),mu();break e}u=Error(n(426))}else if(oo&&1&s.mode){var g=yl(l);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),bl(g,l,s,0,t),mo(dl(u,s));break e}}i=u=dl(u,s),4!==Ls&&(Ls=2),null===js?js=[i]:js.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Fo(i,vl(0,u,t));break e;case 1:s=u;var y=i.type,b=i.stateNode;if(0==(128&i.flags)&&("function"==typeof y.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Ys||!Ys.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Fo(i,ml(i,s,t));break e}}i=i.return}while(null!==i)}ku(r)}catch(e){t=e,Ns===r&&null!==r&&(Ns=r=r.return);continue}break}}function vu(){var e=_s.current;return _s.current=ll,null===e?ll:e}function mu(){0!==Ls&&3!==Ls&&2!==Ls||(Ls=4),null===Ps||0==(268435455&As)&&0==(268435455&Fs)||su(Ps,Is)}function gu(e,t){var r=Rs;Rs|=2;var a=vu();for(Ps===e&&Is===t||(Bs=null,pu(e,t));;)try{yu();break}catch(t){hu(e,t)}if(xo(),Rs=r,_s.current=a,null!==Ns)throw Error(n(261));return Ps=null,Is=0,Ls}function yu(){for(;null!==Ns;)wu(Ns)}function bu(){for(;null!==Ns&&!Qe();)wu(Ns)}function wu(e){var t=Es(e.alternate,e,Ms);e.memoizedProps=e.pendingProps,null===t?ku(e):Ns=t,Cs.current=null}function ku(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Gl(n,t,Ms)))return void(Ns=n)}else{if(null!==(n=Kl(n,t)))return n.flags&=32767,void(Ns=n);if(null===e)return Ls=6,void(Ns=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Ns=t);Ns=t=e}while(null!==t);0===Ls&&(Ls=5)}function Su(e,t,r){var a=wt,o=Ds.transition;try{Ds.transition=null,wt=1,function(e,t,r,a){do{xu()}while(null!==Ks);if(0!=(6&Rs))throw Error(n(327));r=e.finishedWork;var o=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-lt(n),o=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~o}}(e,i),e===Ps&&(Ns=Ps=null,Is=0),0==(2064&r.subtreeFlags)&&0==(2064&r.flags)||Gs||(Gs=!0,Pu(nt,(function(){return xu(),null}))),i=0!=(15990&r.flags),0!=(15990&r.subtreeFlags)||i){i=Ds.transition,Ds.transition=null;var l=wt;wt=1;var s=Rs;Rs|=4,Cs.current=null,function(e,t){if(ta=$t,hr(e=pr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var a=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(a&&0!==a.rangeCount){r=a.anchorNode;var o=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{r.nodeType,i.nodeType}catch(e){r=null;break e}var l=0,s=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==r||0!==o&&3!==f.nodeType||(s=l+o),f!==i||0!==a&&3!==f.nodeType||(u=l+a),3===f.nodeType&&(l+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===r&&++c===o&&(s=l),p===i&&++d===a&&(u=l),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}r=-1===s||-1===u?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(na={focusedElem:e,selectionRange:r},$t=!1,Jl=t;null!==Jl;)if(e=(t=Jl).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Jl=e;else for(;null!==Jl;){t=Jl;try{var v=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==v){var m=v.memoizedProps,g=v.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:yo(t.type,m),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(n(163))}}catch(e){Tu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Jl=e;break}Jl=t.return}v=ns,ns=!1}(e,r),gs(r,e),vr(na),$t=!!ta,na=ta=null,e.current=r,bs(r),Xe(),Rs=s,wt=l,Ds.transition=i}else e.current=r;if(Gs&&(Gs=!1,Ks=e,Qs=o),0===(i=e.pendingLanes)&&(Ys=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128==(128&e.current.flags))}catch(e){}}(r.stateNode),au(e,Ze()),null!==t)for(a=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],a(o.value,{componentStack:o.stack,digest:o.digest});if($s)throw $s=!1,e=qs,qs=null,e;0!=(1&Qs)&&0!==e.tag&&xu(),0!=(1&(i=e.pendingLanes))?e===Zs?Xs++:(Xs=0,Zs=e):Xs=0,Wa()}(e,t,r,a)}finally{Ds.transition=o,wt=a}return null}function xu(){if(null!==Ks){var e=kt(Qs),t=Ds.transition,r=wt;try{if(Ds.transition=null,wt=16>e?16:e,null===Ks)var a=!1;else{if(e=Ks,Ks=null,Qs=0,0!=(6&Rs))throw Error(n(331));var o=Rs;for(Rs|=4,Jl=e.current;null!==Jl;){var i=Jl,l=i.child;if(0!=(16&Jl.flags)){var s=i.deletions;if(null!==s){for(var u=0;u<s.length;u++){var c=s[u];for(Jl=c;null!==Jl;){var d=Jl;switch(d.tag){case 0:case 11:case 15:rs(8,d,i)}var f=d.child;if(null!==f)f.return=d,Jl=f;else for(;null!==Jl;){var p=(d=Jl).sibling,h=d.return;if(is(d),d===c){Jl=null;break}if(null!==p){p.return=h,Jl=p;break}Jl=h}}}var v=i.alternate;if(null!==v){var m=v.child;if(null!==m){v.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}Jl=i}}if(0!=(2064&i.subtreeFlags)&&null!==l)l.return=i,Jl=l;else e:for(;null!==Jl;){if(0!=(2048&(i=Jl).flags))switch(i.tag){case 0:case 11:case 15:rs(9,i,i.return)}var y=i.sibling;if(null!==y){y.return=i.return,Jl=y;break e}Jl=i.return}}var b=e.current;for(Jl=b;null!==Jl;){var w=(l=Jl).child;if(0!=(2064&l.subtreeFlags)&&null!==w)w.return=l,Jl=w;else e:for(l=b;null!==Jl;){if(0!=(2048&(s=Jl).flags))try{switch(s.tag){case 0:case 11:case 15:as(9,s)}}catch(e){Tu(s,s.return,e)}if(s===l){Jl=null;break e}var k=s.sibling;if(null!==k){k.return=s.return,Jl=k;break e}Jl=s.return}}if(Rs=o,Wa(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}a=!0}return a}finally{wt=r,Ds.transition=t}}return!1}function Eu(e,t,n){e=zo(e,t=vl(0,t=dl(n,t),1),1),t=tu(),null!==e&&(yt(e,1,t),au(e,t))}function Tu(e,t,n){if(3===e.tag)Eu(e,e,n);else for(;null!==t;){if(3===t.tag){Eu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ys||!Ys.has(r))){t=zo(t,e=ml(t,e=dl(n,e),1),1),e=tu(),null!==t&&(yt(t,1,e),au(t,e));break}}t=t.return}}function _u(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&n,Ps===e&&(Is&n)===n&&(4===Ls||3===Ls&&(130023424&Is)===Is&&500>Ze()-Vs?pu(e,0):Hs|=n),au(e,t)}function Cu(e,t){0===t&&(0==(1&e.mode)?t=1:(t=dt,0==(130023424&(dt<<=1))&&(dt=4194304)));var n=tu();null!==(e=No(e,t))&&(yt(e,t,n),au(e,n))}function Du(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Cu(e,n)}function Ru(e,t){var r=0;switch(e.tag){case 13:var a=e.stateNode,o=e.memoizedState;null!==o&&(r=o.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(n(314))}null!==a&&a.delete(t),Cu(e,r)}function Pu(e,t){return Ge(e,t)}function Nu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Iu(e,t,n,r){return new Nu(e,t,n,r)}function Mu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ou(e,t){var n=e.alternate;return null===n?((n=Iu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Lu(e,t,r,a,o,i){var l=2;if(a=e,"function"==typeof e)Mu(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case S:return zu(r.children,o,i,t);case x:l=8,o|=8;break;case T:return(e=Iu(12,r,t,2|o)).elementType=T,e.lanes=i,e;case P:return(e=Iu(13,r,t,o)).elementType=P,e.lanes=i,e;case N:return(e=Iu(19,r,t,o)).elementType=N,e.lanes=i,e;case O:return Au(r,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case _:l=10;break e;case C:l=9;break e;case R:l=11;break e;case I:l=14;break e;case M:l=16,a=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Iu(l,r,t,o)).elementType=e,t.type=a,t.lanes=i,t}function zu(e,t,n,r){return(e=Iu(7,e,r,t)).lanes=n,e}function Au(e,t,n,r){return(e=Iu(22,e,r,t)).elementType=O,e.lanes=n,e.stateNode={isHidden:!1},e}function Fu(e,t,n){return(e=Iu(6,e,null,t)).lanes=n,e}function Hu(e,t,n){return(t=Iu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ju(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Uu(e,t,n,r,a,o,i,l,s){return e=new ju(e,t,n,l,s),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Iu(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mo(o),e}function Vu(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Wu(e){if(!e)return Da;e:{if(We(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ma(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Ma(r))return za(e,r,t)}return t}function Bu(e,t,n,r,a,o,i,l,s){return(e=Uu(n,r,!0,e,0,o,0,l,s)).context=Wu(null),n=e.current,(o=Lo(r=tu(),a=nu(n))).callback=null!=t?t:null,zo(n,o,a),e.current.lanes=a,yt(e,a,r),au(e,r),e}function $u(e,t,n,r){var a=t.current,o=tu(),i=nu(a);return n=Wu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Lo(o,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=zo(a,t,i))&&(ru(e,a,i,o),Ao(e,a,i)),i}function qu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Yu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Gu(e,t){Yu(e,t),(e=e.alternate)&&Yu(e,t)}Es=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Pa.current)kl=!0;else{if(0==(e.lanes&r)&&0==(128&t.flags))return kl=!1,function(e,t,n){switch(t.tag){case 3:Nl(t),vo();break;case 5:li(t);break;case 1:Ma(t.type)&&Aa(t);break;case 4:oi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;Ca(bo,r._currentValue),r._currentValue=a;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ca(ui,1&ui.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Fl(e,t,n):(Ca(ui,1&ui.current),null!==(e=$l(e,t,n))?e.sibling:null);Ca(ui,1&ui.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Wl(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ca(ui,ui.current),r)break;return null;case 22:case 23:return t.lanes=0,_l(e,t,n)}return $l(e,t,n)}(e,t,r);kl=0!=(131072&e.flags)}else kl=!1,oo&&0!=(1048576&t.flags)&&eo(t,Ya,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;Bl(e,t),e=t.pendingProps;var o=Ia(t,Ra.current);_o(t,r),o=Ti(null,t,a,e,o,r);var i=_i();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ma(a)?(i=!0,Aa(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Mo(t),o.updater=Wo,t.stateNode=o,o._reactInternals=t,Yo(t,a,e,r),t=Pl(null,t,a,!0,i,r)):(t.tag=0,oo&&i&&to(t),Sl(null,t,o,r),t=t.child),t;case 16:a=t.elementType;e:{switch(Bl(e,t),e=t.pendingProps,a=(o=a._init)(a._payload),t.type=a,o=t.tag=function(e){if("function"==typeof e)return Mu(e)?1:0;if(null!=e){if((e=e.$$typeof)===R)return 11;if(e===I)return 14}return 2}(a),e=yo(a,e),o){case 0:t=Dl(null,t,a,e,r);break e;case 1:t=Rl(null,t,a,e,r);break e;case 11:t=xl(null,t,a,e,r);break e;case 14:t=El(null,t,a,yo(a.type,e),r);break e}throw Error(n(306,a,""))}return t;case 0:return a=t.type,o=t.pendingProps,Dl(e,t,a,o=t.elementType===a?o:yo(a,o),r);case 1:return a=t.type,o=t.pendingProps,Rl(e,t,a,o=t.elementType===a?o:yo(a,o),r);case 3:e:{if(Nl(t),null===e)throw Error(n(387));a=t.pendingProps,o=(i=t.memoizedState).element,Oo(e,t),Ho(t,a,null,r);var l=t.memoizedState;if(a=l.element,i.isDehydrated){if(i={element:a,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Il(e,t,a,r,o=dl(Error(n(423)),t));break e}if(a!==o){t=Il(e,t,a,r,o=dl(Error(n(424)),t));break e}for(ao=ca(t.stateNode.containerInfo.firstChild),ro=t,oo=!0,io=null,r=Jo(t,null,a,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(vo(),a===o){t=$l(e,t,r);break e}Sl(e,t,a,r)}t=t.child}return t;case 5:return li(t),null===e&&co(t),a=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,ra(a,o)?l=null:null!==i&&ra(a,i)&&(t.flags|=32),Cl(e,t),Sl(e,t,l,r),t.child;case 6:return null===e&&co(t),null;case 13:return Fl(e,t,r);case 4:return oi(t,t.stateNode.containerInfo),a=t.pendingProps,null===e?t.child=Zo(t,null,a,r):Sl(e,t,a,r),t.child;case 11:return a=t.type,o=t.pendingProps,xl(e,t,a,o=t.elementType===a?o:yo(a,o),r);case 7:return Sl(e,t,t.pendingProps,r),t.child;case 8:case 12:return Sl(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(a=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,Ca(bo,a._currentValue),a._currentValue=l,null!==i)if(sr(i.value,l)){if(i.children===o.children&&!Pa.current){t=$l(e,t,r);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var s=i.dependencies;if(null!==s){l=i.child;for(var u=s.firstContext;null!==u;){if(u.context===a){if(1===i.tag){(u=Lo(-1,r&-r)).tag=2;var c=i.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}i.lanes|=r,null!==(u=i.alternate)&&(u.lanes|=r),To(i.return,r,t),s.lanes|=r;break}u=u.next}}else if(10===i.tag)l=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(l=i.return))throw Error(n(341));l.lanes|=r,null!==(s=l.alternate)&&(s.lanes|=r),To(l,r,t),l=i.sibling}else l=i.child;if(null!==l)l.return=i;else for(l=i;null!==l;){if(l===t){l=null;break}if(null!==(i=l.sibling)){i.return=l.return,l=i;break}l=l.return}i=l}Sl(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,a=t.pendingProps.children,_o(t,r),a=a(o=Co(o)),t.flags|=1,Sl(e,t,a,r),t.child;case 14:return o=yo(a=t.type,t.pendingProps),El(e,t,a,o=yo(a.type,o),r);case 15:return Tl(e,t,t.type,t.pendingProps,r);case 17:return a=t.type,o=t.pendingProps,o=t.elementType===a?o:yo(a,o),Bl(e,t),t.tag=1,Ma(a)?(e=!0,Aa(t)):e=!1,_o(t,r),$o(t,a,o),Yo(t,a,o,r),Pl(null,t,a,!0,e,r);case 19:return Wl(e,t,r);case 22:return _l(e,t,r)}throw Error(n(156,t.tag))};var Ku="function"==typeof reportError?reportError:function(e){console.error(e)};function Qu(e){this._internalRoot=e}function Xu(e){this._internalRoot=e}function Zu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ec(){}function tc(e,t,n,r,a){var o=n._reactRootContainer;if(o){var i=o;if("function"==typeof a){var l=a;a=function(){var e=qu(i);l.call(e)}}$u(t,i,e,a)}else i=function(e,t,n,r,a){if(a){if("function"==typeof r){var o=r;r=function(){var e=qu(i);o.call(e)}}var i=Bu(t,r,e,0,null,!1,0,"",ec);return e._reactRootContainer=i,e[va]=i.current,Wr(8===e.nodeType?e.parentNode:e),du(),i}for(;a=e.lastChild;)e.removeChild(a);if("function"==typeof r){var l=r;r=function(){var e=qu(s);l.call(e)}}var s=Uu(e,0,!1,null,0,!1,0,"",ec);return e._reactRootContainer=s,e[va]=s.current,Wr(8===e.nodeType?e.parentNode:e),du((function(){$u(t,s,n,r)})),s}(n,t,e,a,r);return qu(i)}Xu.prototype.render=Qu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));$u(e,t,null,null)},Xu.prototype.unmount=Qu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;du((function(){$u(null,e,null,null)})),t[va]=null}},Xu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Tt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ot.length&&0!==t&&t<Ot[n].priority;n++);Ot.splice(n,0,e),0===n&&Ft(e)}},St=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(bt(t,1|n),au(t,Ze()),0==(6&Rs)&&(Ws=Ze()+500,Wa()))}break;case 13:du((function(){var t=No(e,1);if(null!==t){var n=tu();ru(t,e,1,n)}})),Gu(e,1)}},xt=function(e){if(13===e.tag){var t=No(e,134217728);if(null!==t)ru(t,e,134217728,tu());Gu(e,134217728)}},Et=function(e){if(13===e.tag){var t=nu(e),n=No(e,t);if(null!==n)ru(n,e,t,tu());Gu(e,t)}},Tt=function(){return wt},_t=function(e,t){var n=wt;try{return wt=e,t()}finally{wt=n}},xe=function(e,t,r){switch(t){case"input":if(J(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var a=r[t];if(a!==e&&a.form===e.form){var o=Sa(a);if(!o)throw Error(n(90));G(a),J(a,o)}}}break;case"textarea":ie(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},Re=cu,Pe=du;var nc={usingClientEntryPoint:!1,Events:[wa,ka,Sa,Ce,De,cu]},rc={findFiberByHostInstance:ba,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ac={bundleType:rc.bundleType,version:rc.version,rendererPackageName:rc.rendererPackageName,rendererConfig:rc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:y.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=qe(e))?null:e.stateNode},findFiberByHostInstance:rc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oc.isDisabled&&oc.supportsFiber)try{ot=oc.inject(ac),it=oc}catch(de){}}return b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nc,b.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Zu(t))throw Error(n(200));return Vu(e,t,null,r)},b.createRoot=function(e,t){if(!Zu(e))throw Error(n(299));var r=!1,a="",o=Ku;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(a=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Uu(e,1,!1,null,0,r,0,a,o),e[va]=t.current,Wr(8===e.nodeType?e.parentNode:e),new Qu(t)},b.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return e=null===(e=qe(t))?null:e.stateNode},b.flushSync=function(e){return du(e)},b.hydrate=function(e,t,r){if(!Ju(t))throw Error(n(200));return tc(null,e,t,!0,r)},b.hydrateRoot=function(e,t,r){if(!Zu(e))throw Error(n(405));var a=null!=r&&r.hydratedSources||null,o=!1,i="",l=Ku;if(null!=r&&(!0===r.unstable_strictMode&&(o=!0),void 0!==r.identifierPrefix&&(i=r.identifierPrefix),void 0!==r.onRecoverableError&&(l=r.onRecoverableError)),t=Bu(t,null,e,1,null!=r?r:null,o,0,i,l),e[va]=t.current,Wr(e),a)for(e=0;e<a.length;e++)o=(o=(r=a[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Xu(t)},b.render=function(e,t,r){if(!Ju(t))throw Error(n(200));return tc(null,e,t,!1,r)},b.unmountComponentAtNode=function(e){if(!Ju(e))throw Error(n(40));return!!e._reactRootContainer&&(du((function(){tc(null,null,e,!1,(function(){e._reactRootContainer=null,e[va]=null}))})),!0)},b.unstable_batchedUpdates=cu,b.unstable_renderSubtreeIntoContainer=function(e,t,r,a){if(!Ju(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return tc(e,t,r,!1,a)},b.version="18.2.0-next-9e3b772b8-20220608",b}var P,N={};
|
|
28
|
+
*/function requireReactDom_production_min(){if(hasRequiredReactDom_production_min)return reactDom_production_min;hasRequiredReactDom_production_min=1;var e=react.exports,t=requireScheduler();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,a={};function o(e,t){i(e,t),i(e+"Capture",t)}function i(e,t){for(a[e]=t,e=0;e<t.length;e++)r.add(t[e])}var l=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),s=Object.prototype.hasOwnProperty,u=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,c={},d={};function f(e,t,n,r,a,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){p[e]=new f(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];p[t]=new f(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){p[e]=new f(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){p[e]=new f(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){p[e]=new f(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){p[e]=new f(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){p[e]=new f(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){p[e]=new f(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){p[e]=new f(e,5,!1,e.toLowerCase(),null,!1,!1)}));var h=/[\-:]([a-z])/g;function m(e){return e[1].toUpperCase()}function v(e,t,n,r){var a=p.hasOwnProperty(t)?p[t]:null;(null!==a?0!==a.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!s.call(d,e)||!s.call(c,e)&&(u.test(e)?d[e]=!0:(c[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(h,m);p[t]=new f(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(h,m);p[t]=new f(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(h,m);p[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)})),p.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)}));var g=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,y=Symbol.for("react.element"),b=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),k=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),N=Symbol.for("react.offscreen"),P=Symbol.iterator;function I(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=P&&e[P]||e["@@iterator"])?e:null}var M,O=Object.assign;function A(e){if(void 0===M)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var L=!1;function F(e,t){if(!e||L)return"";L=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var a=t.stack.split("\n"),o=r.stack.split("\n"),i=a.length-1,l=o.length-1;1<=i&&0<=l&&a[i]!==o[l];)l--;for(;1<=i&&0<=l;i--,l--)if(a[i]!==o[l]){if(1!==i||1!==l)do{if(i--,0>--l||a[i]!==o[l]){var s="\n"+a[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=i&&0<=l);break}}}finally{L=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?A(e):""}function z(e){switch(e.tag){case 5:return A(e.type);case 16:return A("Lazy");case 13:return A("Suspense");case 19:return A("SuspenseList");case 0:case 2:case 15:return e=F(e.type,!1);case 11:return e=F(e.type.render,!1);case 1:return e=F(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case w:return"Fragment";case b:return"Portal";case E:return"Profiler";case S:return"StrictMode";case x:return"Suspense";case C:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case k:return(e.displayName||"Context")+".Consumer";case _:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case D:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return H(e(t))}catch(e){}}return null}function U(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function j(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function V(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function $(e){e._valueTracker||(e._valueTracker=function(e){var t=V(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function W(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function B(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function q(e,t){var n=t.checked;return O({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=j(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function G(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function K(e,t){G(e,t);var n=j(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?X(e,t.type,n):t.hasOwnProperty("defaultValue")&&X(e,t.type,j(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Q(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function X(e,t,n){"number"===t&&B(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Z=Array.isArray;function J(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+j(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function ee(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return O({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function te(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(Z(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:j(r)}}function ne(e,t){var n=j(t.value),r=j(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function re(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ae(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function oe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ae(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ie,le,se=(le=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ie=ie||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ie.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return le(e,t)}))}:le);function ue(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ce={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},de=["Webkit","ms","Moz","O"];function fe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ce.hasOwnProperty(e)&&ce[e]?(""+t).trim():t+"px"}function pe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=fe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(ce).forEach((function(e){de.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ce[t]=ce[e]}))}));var he=O({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function me(e,t){if(t){if(he[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ge=null;function ye(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var be=null,we=null,Se=null;function Ee(e){if(e=va(e)){if("function"!=typeof be)throw Error(n(280));var t=e.stateNode;t&&(t=ya(t),be(e.stateNode,e.type,t))}}function _e(e){we?Se?Se.push(e):Se=[e]:we=e}function ke(){if(we){var e=we,t=Se;if(Se=we=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Te(e,t){return e(t)}function xe(){}var Ce=!1;function De(e,t,n){if(Ce)return e(t,n);Ce=!0;try{return Te(e,t,n)}finally{Ce=!1,(null!==we||null!==Se)&&(xe(),ke())}}function Re(e,t){var r=e.stateNode;if(null===r)return null;var a=ya(r);if(null===a)return null;r=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(a=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!a;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Ne=!1;if(l)try{var Pe={};Object.defineProperty(Pe,"passive",{get:function(){Ne=!0}}),window.addEventListener("test",Pe,Pe),window.removeEventListener("test",Pe,Pe)}catch(le){Ne=!1}function Ie(e,t,n,r,a,o,i,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Me=!1,Oe=null,Ae=!1,Le=null,Fe={onError:function(e){Me=!0,Oe=e}};function ze(e,t,n,r,a,o,i,l,s){Me=!1,Oe=null,Ie.apply(Fe,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ue(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function je(e){if(He(e)!==e)throw Error(n(188))}function Ve(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,a=t;;){var o=r.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(a=o.return)){r=a;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===r)return je(o),e;if(i===a)return je(o),t;i=i.sibling}throw Error(n(188))}if(r.return!==a.return)r=o,a=i;else{for(var l=!1,s=o.child;s;){if(s===r){l=!0,r=o,a=i;break}if(s===a){l=!0,a=o,r=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===r){l=!0,r=i,a=o;break}if(s===a){l=!0,a=i,r=o;break}s=s.sibling}if(!l)throw Error(n(189))}}if(r.alternate!==a)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e))?$e(e):null}function $e(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=$e(e);if(null!==t)return t;e=e.sibling}return null}var We=t.unstable_scheduleCallback,Be=t.unstable_cancelCallback,qe=t.unstable_shouldYield,Ye=t.unstable_requestPaint,Ge=t.unstable_now,Ke=t.unstable_getCurrentPriorityLevel,Qe=t.unstable_ImmediatePriority,Xe=t.unstable_UserBlockingPriority,Ze=t.unstable_NormalPriority,Je=t.unstable_LowPriority,et=t.unstable_IdlePriority,tt=null,nt=null;var rt=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(at(e)/ot|0)|0},at=Math.log,ot=Math.LN2;var it=64,lt=4194304;function st(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ut(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,o=e.pingedLanes,i=268435455&n;if(0!==i){var l=i&~a;0!==l?r=st(l):0!==(o&=i)&&(r=st(o))}else 0!==(i=n&~a)?r=st(i):0!==o&&(r=st(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&a)&&((a=r&-r)>=(o=t&-t)||16===a&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-rt(t)),r|=e[n],t&=~a;return r}function ct(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function dt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ft(){var e=it;return 0==(4194240&(it<<=1))&&(it=64),e}function pt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ht(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-rt(t)]=n}function mt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-rt(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var vt=0;function gt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var yt,bt,wt,St,Et,_t=!1,kt=[],Tt=null,xt=null,Ct=null,Dt=new Map,Rt=new Map,Nt=[],Pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function It(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":xt=null;break;case"mouseover":case"mouseout":Ct=null;break;case"pointerover":case"pointerout":Dt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function Mt(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},null!==t&&(null!==(t=va(t))&&bt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Ot(e){var t=ma(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ue(n)))return e.blockedOn=t,void Et(e.priority,(function(){wt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function At(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=va(n))&&bt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ge=r,n.target.dispatchEvent(r),ge=null,t.shift()}return!0}function Lt(e,t,n){At(e)&&n.delete(t)}function Ft(){_t=!1,null!==Tt&&At(Tt)&&(Tt=null),null!==xt&&At(xt)&&(xt=null),null!==Ct&&At(Ct)&&(Ct=null),Dt.forEach(Lt),Rt.forEach(Lt)}function zt(e,n){e.blockedOn===n&&(e.blockedOn=null,_t||(_t=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ft)))}function Ht(e){function t(t){return zt(t,e)}if(0<kt.length){zt(kt[0],e);for(var n=1;n<kt.length;n++){var r=kt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&zt(Tt,e),null!==xt&&zt(xt,e),null!==Ct&&zt(Ct,e),Dt.forEach(t),Rt.forEach(t),n=0;n<Nt.length;n++)(r=Nt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Nt.length&&null===(n=Nt[0]).blockedOn;)Ot(n),null===n.blockedOn&&Nt.shift()}var Ut=g.ReactCurrentBatchConfig,jt=!0;function Vt(e,t,n,r){var a=vt,o=Ut.transition;Ut.transition=null;try{vt=1,Wt(e,t,n,r)}finally{vt=a,Ut.transition=o}}function $t(e,t,n,r){var a=vt,o=Ut.transition;Ut.transition=null;try{vt=4,Wt(e,t,n,r)}finally{vt=a,Ut.transition=o}}function Wt(e,t,n,r){if(jt){var a=qt(e,t,n,r);if(null===a)jr(e,t,r,Bt,n),It(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Tt=Mt(Tt,e,t,n,r,a),!0;case"dragenter":return xt=Mt(xt,e,t,n,r,a),!0;case"mouseover":return Ct=Mt(Ct,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return Dt.set(o,Mt(Dt.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,Rt.set(o,Mt(Rt.get(o)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(It(e,r),4&t&&-1<Pt.indexOf(e)){for(;null!==a;){var o=va(a);if(null!==o&&yt(o),null===(o=qt(e,t,n,r))&&jr(e,t,r,Bt,n),o===a)break;a=o}null!==a&&r.stopPropagation()}else jr(e,t,r,null,n)}}var Bt=null;function qt(e,t,n,r){if(Bt=null,null!==(e=ma(e=ye(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ue(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Bt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ke()){case Qe:return 1;case Xe:return 4;case Ze:case Je:return 16;case et:return 536870912;default:return 16}default:return 16}}var Gt=null,Kt=null,Qt=null;function Xt(){if(Qt)return Qt;var e,t,n=Kt,r=n.length,a="value"in Gt?Gt.value:Gt.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return Qt=a.slice(e,1<t?1-t:void 0)}function Zt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Jt(){return!0}function en(){return!1}function tn(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?Jt:en,this.isPropagationStopped=en,this}return O(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Jt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Jt)},persist:function(){},isPersistent:Jt}),t}var nn,rn,an,on={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ln=tn(on),sn=O({},on,{view:0,detail:0}),un=tn(sn),cn=O({},sn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==an&&(an&&"mousemove"===e.type?(nn=e.screenX-an.screenX,rn=e.screenY-an.screenY):rn=nn=0,an=e),nn)},movementY:function(e){return"movementY"in e?e.movementY:rn}}),dn=tn(cn),fn=tn(O({},cn,{dataTransfer:0})),pn=tn(O({},sn,{relatedTarget:0})),hn=tn(O({},on,{animationName:0,elapsedTime:0,pseudoElement:0})),mn=O({},on,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vn=tn(mn),gn=tn(O({},on,{data:0})),yn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},wn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=wn[e])&&!!t[e]}function En(){return Sn}var _n=O({},sn,{key:function(e){if(e.key){var t=yn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Zt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?bn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?Zt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Zt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),kn=tn(_n),Tn=tn(O({},cn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),xn=tn(O({},sn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),Cn=tn(O({},on,{propertyName:0,elapsedTime:0,pseudoElement:0})),Dn=O({},cn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Rn=tn(Dn),Nn=[9,13,27,32],Pn=l&&"CompositionEvent"in window,In=null;l&&"documentMode"in document&&(In=document.documentMode);var Mn=l&&"TextEvent"in window&&!In,On=l&&(!Pn||In&&8<In&&11>=In),An=String.fromCharCode(32),Ln=!1;function Fn(e,t){switch(e){case"keyup":return-1!==Nn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1;var Un={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function jn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Un[e.type]:"textarea"===t}function Vn(e,t,n,r){_e(r),0<(t=$r(t,"onChange")).length&&(n=new ln("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $n=null,Wn=null;function Bn(e){Ar(e,0)}function qn(e){if(W(ga(e)))return e}function Yn(e,t){if("change"===e)return t}var Gn=!1;if(l){var Kn;if(l){var Qn="oninput"in document;if(!Qn){var Xn=document.createElement("div");Xn.setAttribute("oninput","return;"),Qn="function"==typeof Xn.oninput}Kn=Qn}else Kn=!1;Gn=Kn&&(!document.documentMode||9<document.documentMode)}function Zn(){$n&&($n.detachEvent("onpropertychange",Jn),Wn=$n=null)}function Jn(e){if("value"===e.propertyName&&qn(Wn)){var t=[];Vn(t,Wn,e,ye(e)),De(Bn,t)}}function er(e,t,n){"focusin"===e?(Zn(),Wn=n,($n=t).attachEvent("onpropertychange",Jn)):"focusout"===e&&Zn()}function tr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return qn(Wn)}function nr(e,t){if("click"===e)return qn(t)}function rr(e,t){if("input"===e||"change"===e)return qn(t)}var ar="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function or(e,t){if(ar(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!s.call(t,a)||!ar(e[a],t[a]))return!1}return!0}function ir(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lr(e,t){var n,r=ir(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ir(r)}}function sr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?sr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function ur(){for(var e=window,t=B();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=B((e=t.contentWindow).document)}return t}function cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function dr(e){var t=ur(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&sr(n.ownerDocument.documentElement,n)){if(null!==r&&cr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,o=Math.min(r.start,a);r=void 0===r.end?o:Math.min(r.end,a),!e.extend&&o>r&&(a=r,r=o,o=a),a=lr(n,o);var i=lr(n,r);a&&i&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var fr=l&&"documentMode"in document&&11>=document.documentMode,pr=null,hr=null,mr=null,vr=!1;function gr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==pr||pr!==B(r)||("selectionStart"in(r=pr)&&cr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},mr&&or(mr,r)||(mr=r,0<(r=$r(hr,"onSelect")).length&&(t=new ln("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=pr)))}function yr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var br={animationend:yr("Animation","AnimationEnd"),animationiteration:yr("Animation","AnimationIteration"),animationstart:yr("Animation","AnimationStart"),transitionend:yr("Transition","TransitionEnd")},wr={},Sr={};function Er(e){if(wr[e])return wr[e];if(!br[e])return e;var t,n=br[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return wr[e]=n[t];return e}l&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete br.animationend.animation,delete br.animationiteration.animation,delete br.animationstart.animation),"TransitionEvent"in window||delete br.transitionend.transition);var _r=Er("animationend"),kr=Er("animationiteration"),Tr=Er("animationstart"),xr=Er("transitionend"),Cr=new Map,Dr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rr(e,t){Cr.set(e,t),o(t,[e])}for(var Nr=0;Nr<Dr.length;Nr++){var Pr=Dr[Nr];Rr(Pr.toLowerCase(),"on"+(Pr[0].toUpperCase()+Pr.slice(1)))}Rr(_r,"onAnimationEnd"),Rr(kr,"onAnimationIteration"),Rr(Tr,"onAnimationStart"),Rr("dblclick","onDoubleClick"),Rr("focusin","onFocus"),Rr("focusout","onBlur"),Rr(xr,"onTransitionEnd"),i("onMouseEnter",["mouseout","mouseover"]),i("onMouseLeave",["mouseout","mouseover"]),i("onPointerEnter",["pointerout","pointerover"]),i("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ir="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ir));function Or(e,t,r){var a=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,a,o,i,l,s,u){if(ze.apply(this,arguments),Me){if(!Me)throw Error(n(198));var c=Oe;Me=!1,Oe=null,Ae||(Ae=!0,Le=c)}}(a,t,void 0,e),e.currentTarget=null}function Ar(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==o&&a.isPropagationStopped())break e;Or(a,l,u),o=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,u=l.currentTarget,l=l.listener,s!==o&&a.isPropagationStopped())break e;Or(a,l,u),o=s}}}if(Ae)throw e=Le,Ae=!1,Le=null,e}function Lr(e,t){var n=t[fa];void 0===n&&(n=t[fa]=new Set);var r=e+"__bubble";n.has(r)||(Ur(t,e,2,!1),n.add(r))}function Fr(e,t,n){var r=0;t&&(r|=4),Ur(n,e,r,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[zr]){e[zr]=!0,r.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||Fr(t,!1,e),Fr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zr]||(t[zr]=!0,Fr("selectionchange",!1,t))}}function Ur(e,t,n,r){switch(Yt(t)){case 1:var a=Vt;break;case 4:a=$t;break;default:a=Wt}n=a.bind(null,t,n,e),a=void 0,!Ne||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function jr(e,t,n,r,a){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===a||8===l.nodeType&&l.parentNode===a)break;if(4===i)for(i=r.return;null!==i;){var s=i.tag;if((3===s||4===s)&&((s=i.stateNode.containerInfo)===a||8===s.nodeType&&s.parentNode===a))return;i=i.return}for(;null!==l;){if(null===(i=ma(l)))return;if(5===(s=i.tag)||6===s){r=o=i;continue e}l=l.parentNode}}r=r.return}De((function(){var r=o,a=ye(n),i=[];e:{var l=Cr.get(e);if(void 0!==l){var s=ln,u=e;switch(e){case"keypress":if(0===Zt(n))break e;case"keydown":case"keyup":s=kn;break;case"focusin":u="focus",s=pn;break;case"focusout":u="blur",s=pn;break;case"beforeblur":case"afterblur":s=pn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=dn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=fn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=xn;break;case _r:case kr:case Tr:s=hn;break;case xr:s=Cn;break;case"scroll":s=un;break;case"wheel":s=Rn;break;case"copy":case"cut":case"paste":s=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Tn}var c=0!=(4&t),d=!c&&"scroll"===e,f=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Re(h,f))&&c.push(Vr(h,m,p)))),d)break;h=h.return}0<c.length&&(l=new s(l,u,null,n,a),i.push({event:l,listeners:c}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===ge||!(u=n.relatedTarget||n.fromElement)||!ma(u)&&!u[da])&&(s||l)&&(l=a.window===a?a:(l=a.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?ma(u):null)&&(u!==(d=He(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=dn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==s?l:ga(s),p=null==u?l:ga(u),(l=new c(m,h+"leave",s,n,a)).target=d,l.relatedTarget=p,m=null,ma(a)===r&&((c=new c(f,h+"enter",u,n,a)).target=p,c.relatedTarget=d,m=c),d=m,s&&u)e:{for(f=u,h=0,p=c=s;p;p=Wr(p))h++;for(p=0,m=f;m;m=Wr(m))p++;for(;0<h-p;)c=Wr(c),h--;for(;0<p-h;)f=Wr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Wr(c),f=Wr(f)}c=null}else c=null;null!==s&&Br(i,l,s,c,!1),null!==u&&null!==d&&Br(i,d,u,c,!0)}if("select"===(s=(l=r?ga(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var v=Yn;else if(jn(l))if(Gn)v=rr;else{v=tr;var g=er}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(v=nr);switch(v&&(v=v(e,r))?Vn(i,v,n,a):(g&&g(e,l,r),"focusout"===e&&(g=l._wrapperState)&&g.controlled&&"number"===l.type&&X(l,"number",l.value)),g=r?ga(r):window,e){case"focusin":(jn(g)||"true"===g.contentEditable)&&(pr=g,hr=r,mr=null);break;case"focusout":mr=hr=pr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,gr(i,n,a);break;case"selectionchange":if(fr)break;case"keydown":case"keyup":gr(i,n,a)}var y;if(Pn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Hn?Fn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(On&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(y=Xt()):(Kt="value"in(Gt=a)?Gt.value:Gt.textContent,Hn=!0)),0<(g=$r(r,b)).length&&(b=new gn(b,e,null,n,a),i.push({event:b,listeners:g}),y?b.data=y:null!==(y=zn(n))&&(b.data=y))),(y=Mn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Ln=!0,An);case"textInput":return(e=t.data)===An&&Ln?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Pn&&Fn(e,t)?(e=Xt(),Qt=Kt=Gt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return On&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=$r(r,"onBeforeInput")).length&&(a=new gn("onBeforeInput","beforeinput",null,n,a),i.push({event:a,listeners:r}),a.data=y))}Ar(i,t)}))}function Vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $r(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;5===a.tag&&null!==o&&(a=o,null!=(o=Re(e,n))&&r.unshift(Vr(e,o,a)),null!=(o=Re(e,t))&&r.push(Vr(e,o,a))),e=e.return}return r}function Wr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Br(e,t,n,r,a){for(var o=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,a?null!=(s=Re(n,o))&&i.unshift(Vr(n,s,l)):a||null!=(s=Re(n,o))&&i.push(Vr(n,s,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var qr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Gr(e){return("string"==typeof e?e:""+e).replace(qr,"\n").replace(Yr,"")}function Kr(e,t,r){if(t=Gr(t),Gr(e)!==t&&r)throw Error(n(425))}function Qr(){}var Xr=null,Zr=null;function Jr(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ea="function"==typeof setTimeout?setTimeout:void 0,ta="function"==typeof clearTimeout?clearTimeout:void 0,na="function"==typeof Promise?Promise:void 0,ra="function"==typeof queueMicrotask?queueMicrotask:void 0!==na?function(e){return na.resolve(null).then(e).catch(aa)}:ea;function aa(e){setTimeout((function(){throw e}))}function oa(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===r)return e.removeChild(a),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=a}while(n);Ht(t)}function ia(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function la(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var sa=Math.random().toString(36).slice(2),ua="__reactFiber$"+sa,ca="__reactProps$"+sa,da="__reactContainer$"+sa,fa="__reactEvents$"+sa,pa="__reactListeners$"+sa,ha="__reactHandles$"+sa;function ma(e){var t=e[ua];if(t)return t;for(var n=e.parentNode;n;){if(t=n[da]||n[ua]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=la(e);null!==e;){if(n=e[ua])return n;e=la(e)}return t}n=(e=n).parentNode}return null}function va(e){return!(e=e[ua]||e[da])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ga(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function ya(e){return e[ca]||null}var ba=[],wa=-1;function Sa(e){return{current:e}}function Ea(e){0>wa||(e.current=ba[wa],ba[wa]=null,wa--)}function _a(e,t){wa++,ba[wa]=e.current,e.current=t}var ka={},Ta=Sa(ka),xa=Sa(!1),Ca=ka;function Da(e,t){var n=e.type.contextTypes;if(!n)return ka;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in n)o[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ra(e){return null!=(e=e.childContextTypes)}function Na(){Ea(xa),Ea(Ta)}function Pa(e,t,r){if(Ta.current!==ka)throw Error(n(168));_a(Ta,t),_a(xa,r)}function Ia(e,t,r){var a=e.stateNode;if(t=t.childContextTypes,"function"!=typeof a.getChildContext)return r;for(var o in a=a.getChildContext())if(!(o in t))throw Error(n(108,U(e)||"Unknown",o));return O({},r,a)}function Ma(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ka,Ca=Ta.current,_a(Ta,e),_a(xa,xa.current),!0}function Oa(e,t,r){var a=e.stateNode;if(!a)throw Error(n(169));r?(e=Ia(e,t,Ca),a.__reactInternalMemoizedMergedChildContext=e,Ea(xa),Ea(Ta),_a(Ta,e)):Ea(xa),_a(xa,r)}var Aa=null,La=!1,Fa=!1;function za(e){null===Aa?Aa=[e]:Aa.push(e)}function Ha(){if(!Fa&&null!==Aa){Fa=!0;var e=0,t=vt;try{var n=Aa;for(vt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Aa=null,La=!1}catch(t){throw null!==Aa&&(Aa=Aa.slice(e+1)),We(Qe,Ha),t}finally{vt=t,Fa=!1}}return null}var Ua=[],ja=0,Va=null,$a=0,Wa=[],Ba=0,qa=null,Ya=1,Ga="";function Ka(e,t){Ua[ja++]=$a,Ua[ja++]=Va,Va=e,$a=t}function Qa(e,t,n){Wa[Ba++]=Ya,Wa[Ba++]=Ga,Wa[Ba++]=qa,qa=e;var r=Ya;e=Ga;var a=32-rt(r)-1;r&=~(1<<a),n+=1;var o=32-rt(t)+a;if(30<o){var i=a-a%5;o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,Ya=1<<32-rt(t)+a|n<<a|r,Ga=o+e}else Ya=1<<o|n<<a|r,Ga=e}function Xa(e){null!==e.return&&(Ka(e,1),Qa(e,1,0))}function Za(e){for(;e===Va;)Va=Ua[--ja],Ua[ja]=null,$a=Ua[--ja],Ua[ja]=null;for(;e===qa;)qa=Wa[--Ba],Wa[Ba]=null,Ga=Wa[--Ba],Wa[Ba]=null,Ya=Wa[--Ba],Wa[Ba]=null}var Ja=null,eo=null,to=!1,no=null;function ro(e,t){var n=Du(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ao(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,Ja=e,eo=ia(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Ja=e,eo=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==qa?{id:Ya,overflow:Ga}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Du(18,null,null,0)).stateNode=t,n.return=e,e.child=n,Ja=e,eo=null,!0);default:return!1}}function oo(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function io(e){if(to){var t=eo;if(t){var r=t;if(!ao(e,t)){if(oo(e))throw Error(n(418));t=ia(r.nextSibling);var a=Ja;t&&ao(e,t)?ro(a,r):(e.flags=-4097&e.flags|2,to=!1,Ja=e)}}else{if(oo(e))throw Error(n(418));e.flags=-4097&e.flags|2,to=!1,Ja=e}}}function lo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ja=e}function so(e){if(e!==Ja)return!1;if(!to)return lo(e),to=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Jr(e.type,e.memoizedProps)),t&&(t=eo)){if(oo(e))throw uo(),Error(n(418));for(;t;)ro(e,t),t=ia(t.nextSibling)}if(lo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){eo=ia(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}eo=null}}else eo=Ja?ia(e.stateNode.nextSibling):null;return!0}function uo(){for(var e=eo;e;)e=ia(e.nextSibling)}function co(){eo=Ja=null,to=!1}function fo(e){null===no?no=[e]:no.push(e)}var po=g.ReactCurrentBatchConfig;function ho(e,t){if(e&&e.defaultProps){for(var n in t=O({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var mo=Sa(null),vo=null,go=null,yo=null;function bo(){yo=go=vo=null}function wo(e){var t=mo.current;Ea(mo),e._currentValue=t}function So(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Eo(e,t){vo=e,yo=go=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(gl=!0),e.firstContext=null)}function _o(e){var t=e._currentValue;if(yo!==e)if(e={context:e,memoizedValue:t,next:null},null===go){if(null===vo)throw Error(n(308));go=e,vo.dependencies={lanes:0,firstContext:e}}else go=go.next=e;return t}var ko=null;function To(e){null===ko?ko=[e]:ko.push(e)}function xo(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,To(t)):(n.next=a.next,a.next=n),t.interleaved=n,Co(e,r)}function Co(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Do=!1;function Ro(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function No(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Po(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Io(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Ts)){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,Co(e,n)}return null===(a=r.interleaved)?(t.next=t,To(r)):(t.next=a.next,a.next=t),r.interleaved=t,Co(e,n)}function Mo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,mt(e,n)}}function Oo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?a=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ao(e,t,n,r){var a=e.updateQueue;Do=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,l=a.shared.pending;if(null!==l){a.shared.pending=null;var s=l,u=s.next;s.next=null,null===i?o=u:i.next=u,i=s;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(null!==o){var d=a.baseState;for(i=0,c=u=s=null,l=o;;){var f=l.lane,p=l.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=O({},d,f);break e;case 2:Do=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=a.effects)?a.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=p,s=d):c=c.next=p,i|=f;if(null===(l=l.next)){if(null===(l=a.shared.pending))break;l=(f=l).next,f.next=null,a.lastBaseUpdate=f,a.shared.pending=null}}if(null===c&&(s=d),a.baseState=s,a.firstBaseUpdate=u,a.lastBaseUpdate=c,null!==(t=a.shared.interleaved)){a=t;do{i|=a.lane,a=a.next}while(a!==t)}else null===o&&(a.shared.lanes=0);Ms|=i,e.lanes=i,e.memoizedState=d}}function Lo(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var a=e[t],o=a.callback;if(null!==o){if(a.callback=null,a=r,"function"!=typeof o)throw Error(n(191,o));o.call(a)}}}var Fo=(new e.Component).refs;function zo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:O({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Ho={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Xs(),a=Zs(e),o=Po(r,a);o.payload=t,null!=n&&(o.callback=n),null!==(t=Io(e,o,a))&&(Js(t,e,a,r),Mo(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Xs(),a=Zs(e),o=Po(r,a);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Io(e,o,a))&&(Js(t,e,a,r),Mo(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Xs(),r=Zs(e),a=Po(n,r);a.tag=2,null!=t&&(a.callback=t),null!==(t=Io(e,a,r))&&(Js(t,e,r,n),Mo(t,e,r))}};function Uo(e,t,n,r,a,o,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,i):!t.prototype||!t.prototype.isPureReactComponent||(!or(n,r)||!or(a,o))}function jo(e,t,n){var r=!1,a=ka,o=t.contextType;return"object"==typeof o&&null!==o?o=_o(o):(a=Ra(t)?Ca:Ta.current,o=(r=null!=(r=t.contextTypes))?Da(e,a):ka),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ho,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function Vo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ho.enqueueReplaceState(t,t.state,null)}function $o(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=Fo,Ro(e);var o=t.contextType;"object"==typeof o&&null!==o?a.context=_o(o):(o=Ra(t)?Ca:Ta.current,a.context=Da(e,o)),a.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(zo(e,t,o,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&Ho.enqueueReplaceState(a,a.state,null),Ao(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4194308)}function Wo(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var a=r.stateNode}if(!a)throw Error(n(147,e));var o=a,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;t===Fo&&(t=o.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function Bo(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function qo(e){return(0,e._init)(e._payload)}function Yo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function a(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Nu(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Ou(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var a=n.type;return a===w?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===R&&qo(a)===t.type)?((r=o(t,n.props)).ref=Wo(e,t,n),r.return=e,r):((r=Pu(n.type,n.key,n.props,null,e.mode,r)).ref=Wo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Au(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=Iu(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Ou(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case y:return(n=Pu(t.type,t.key,t.props,null,e.mode,n)).ref=Wo(e,null,t),n.return=e,n;case b:return(t=Au(t,e.mode,n)).return=e,t;case R:return f(e,(0,t._init)(t._payload),n)}if(Z(t)||I(t))return(t=Iu(t,e.mode,n,null)).return=e,t;Bo(e,t)}return null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==a?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case y:return n.key===a?u(e,t,n,r):null;case b:return n.key===a?c(e,t,n,r):null;case R:return p(e,t,(a=n._init)(n._payload),r)}if(Z(n)||I(n))return null!==a?null:d(e,t,n,r,null);Bo(e,n)}return null}function h(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case y:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case b:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case R:return h(e,t,n,(0,r._init)(r._payload),a)}if(Z(r)||I(r))return d(t,e=e.get(n)||null,r,a,null);Bo(t,r)}return null}function m(n,o,l,s){for(var u=null,c=null,d=o,m=o=0,v=null;null!==d&&m<l.length;m++){d.index>m?(v=d,d=null):v=d.sibling;var g=p(n,d,l[m],s);if(null===g){null===d&&(d=v);break}e&&d&&null===g.alternate&&t(n,d),o=i(g,o,m),null===c?u=g:c.sibling=g,c=g,d=v}if(m===l.length)return r(n,d),to&&Ka(n,m),u;if(null===d){for(;m<l.length;m++)null!==(d=f(n,l[m],s))&&(o=i(d,o,m),null===c?u=d:c.sibling=d,c=d);return to&&Ka(n,m),u}for(d=a(n,d);m<l.length;m++)null!==(v=h(d,n,m,l[m],s))&&(e&&null!==v.alternate&&d.delete(null===v.key?m:v.key),o=i(v,o,m),null===c?u=v:c.sibling=v,c=v);return e&&d.forEach((function(e){return t(n,e)})),to&&Ka(n,m),u}function v(o,l,s,u){var c=I(s);if("function"!=typeof c)throw Error(n(150));if(null==(s=c.call(s)))throw Error(n(151));for(var d=c=null,m=l,v=l=0,g=null,y=s.next();null!==m&&!y.done;v++,y=s.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=p(o,m,y.value,u);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(o,m),l=i(b,l,v),null===d?c=b:d.sibling=b,d=b,m=g}if(y.done)return r(o,m),to&&Ka(o,v),c;if(null===m){for(;!y.done;v++,y=s.next())null!==(y=f(o,y.value,u))&&(l=i(y,l,v),null===d?c=y:d.sibling=y,d=y);return to&&Ka(o,v),c}for(m=a(o,m);!y.done;v++,y=s.next())null!==(y=h(m,o,v,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),l=i(y,l,v),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(o,e)})),to&&Ka(o,v),c}return function e(n,a,i,s){if("object"==typeof i&&null!==i&&i.type===w&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case y:e:{for(var u=i.key,c=a;null!==c;){if(c.key===u){if((u=i.type)===w){if(7===c.tag){r(n,c.sibling),(a=o(c,i.props.children)).return=n,n=a;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===R&&qo(u)===c.type){r(n,c.sibling),(a=o(c,i.props)).ref=Wo(n,c,i),a.return=n,n=a;break e}r(n,c);break}t(n,c),c=c.sibling}i.type===w?((a=Iu(i.props.children,n.mode,s,i.key)).return=n,n=a):((s=Pu(i.type,i.key,i.props,null,n.mode,s)).ref=Wo(n,a,i),s.return=n,n=s)}return l(n);case b:e:{for(c=i.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){r(n,a.sibling),(a=o(a,i.children||[])).return=n,n=a;break e}r(n,a);break}t(n,a),a=a.sibling}(a=Au(i,n.mode,s)).return=n,n=a}return l(n);case R:return e(n,a,(c=i._init)(i._payload),s)}if(Z(i))return m(n,a,i,s);if(I(i))return v(n,a,i,s);Bo(n,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==a&&6===a.tag?(r(n,a.sibling),(a=o(a,i)).return=n,n=a):(r(n,a),(a=Ou(i,n.mode,s)).return=n,n=a),l(n)):r(n,a)}}var Go=Yo(!0),Ko=Yo(!1),Qo={},Xo=Sa(Qo),Zo=Sa(Qo),Jo=Sa(Qo);function ei(e){if(e===Qo)throw Error(n(174));return e}function ti(e,t){switch(_a(Jo,t),_a(Zo,e),_a(Xo,Qo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:oe(null,"");break;default:t=oe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ea(Xo),_a(Xo,t)}function ni(){Ea(Xo),Ea(Zo),Ea(Jo)}function ri(e){ei(Jo.current);var t=ei(Xo.current),n=oe(t,e.type);t!==n&&(_a(Zo,e),_a(Xo,n))}function ai(e){Zo.current===e&&(Ea(Xo),Ea(Zo))}var oi=Sa(0);function ii(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var li=[];function si(){for(var e=0;e<li.length;e++)li[e]._workInProgressVersionPrimary=null;li.length=0}var ui=g.ReactCurrentDispatcher,ci=g.ReactCurrentBatchConfig,di=0,fi=null,pi=null,hi=null,mi=!1,vi=!1,gi=0,yi=0;function bi(){throw Error(n(321))}function wi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function Si(e,t,r,a,o,i){if(di=i,fi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ui.current=null===e||null===e.memoizedState?al:ol,e=r(a,o),vi){i=0;do{if(vi=!1,gi=0,25<=i)throw Error(n(301));i+=1,hi=pi=null,t.updateQueue=null,ui.current=il,e=r(a,o)}while(vi)}if(ui.current=rl,t=null!==pi&&null!==pi.next,di=0,hi=pi=fi=null,mi=!1,t)throw Error(n(300));return e}function Ei(){var e=0!==gi;return gi=0,e}function _i(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===hi?fi.memoizedState=hi=e:hi=hi.next=e,hi}function ki(){if(null===pi){var e=fi.alternate;e=null!==e?e.memoizedState:null}else e=pi.next;var t=null===hi?fi.memoizedState:hi.next;if(null!==t)hi=t,pi=e;else{if(null===e)throw Error(n(310));e={memoizedState:(pi=e).memoizedState,baseState:pi.baseState,baseQueue:pi.baseQueue,queue:pi.queue,next:null},null===hi?fi.memoizedState=hi=e:hi=hi.next=e}return hi}function Ti(e,t){return"function"==typeof t?t(e):t}function xi(e){var t=ki(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var a=pi,o=a.baseQueue,i=r.pending;if(null!==i){if(null!==o){var l=o.next;o.next=i.next,i.next=l}a.baseQueue=o=i,r.pending=null}if(null!==o){i=o.next,a=a.baseState;var s=l=null,u=null,c=i;do{var d=c.lane;if((di&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),a=c.hasEagerState?c.eagerState:e(a,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(s=u=f,l=a):u=u.next=f,fi.lanes|=d,Ms|=d}c=c.next}while(null!==c&&c!==i);null===u?l=a:u.next=s,ar(a,t.memoizedState)||(gl=!0),t.memoizedState=a,t.baseState=l,t.baseQueue=u,r.lastRenderedState=a}if(null!==(e=r.interleaved)){o=e;do{i=o.lane,fi.lanes|=i,Ms|=i,o=o.next}while(o!==e)}else null===o&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Ci(e){var t=ki(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var a=r.dispatch,o=r.pending,i=t.memoizedState;if(null!==o){r.pending=null;var l=o=o.next;do{i=e(i,l.action),l=l.next}while(l!==o);ar(i,t.memoizedState)||(gl=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),r.lastRenderedState=i}return[i,a]}function Di(){}function Ri(e,t){var r=fi,a=ki(),o=t(),i=!ar(a.memoizedState,o);if(i&&(a.memoizedState=o,gl=!0),a=a.queue,ji(Ii.bind(null,r,a,e),[e]),a.getSnapshot!==t||i||null!==hi&&1&hi.memoizedState.tag){if(r.flags|=2048,Li(9,Pi.bind(null,r,a,o,t),void 0,null),null===xs)throw Error(n(349));0!=(30&di)||Ni(r,t,o)}return o}function Ni(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=fi.updateQueue)?(t={lastEffect:null,stores:null},fi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Pi(e,t,n,r){t.value=n,t.getSnapshot=r,Mi(t)&&Oi(e)}function Ii(e,t,n){return n((function(){Mi(t)&&Oi(e)}))}function Mi(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ar(e,n)}catch(e){return!0}}function Oi(e){var t=Co(e,1);null!==t&&Js(t,e,1,-1)}function Ai(e){var t=_i();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ti,lastRenderedState:e},t.queue=e,e=e.dispatch=Ji.bind(null,fi,e),[t.memoizedState,e]}function Li(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=fi.updateQueue)?(t={lastEffect:null,stores:null},fi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Fi(){return ki().memoizedState}function zi(e,t,n,r){var a=_i();fi.flags|=e,a.memoizedState=Li(1|t,n,void 0,void 0===r?null:r)}function Hi(e,t,n,r){var a=ki();r=void 0===r?null:r;var o=void 0;if(null!==pi){var i=pi.memoizedState;if(o=i.destroy,null!==r&&wi(r,i.deps))return void(a.memoizedState=Li(t,n,o,r))}fi.flags|=e,a.memoizedState=Li(1|t,n,o,r)}function Ui(e,t){return zi(8390656,8,e,t)}function ji(e,t){return Hi(2048,8,e,t)}function Vi(e,t){return Hi(4,2,e,t)}function $i(e,t){return Hi(4,4,e,t)}function Wi(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Bi(e,t,n){return n=null!=n?n.concat([e]):null,Hi(4,4,Wi.bind(null,t,e),n)}function qi(){}function Yi(e,t){var n=ki();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&wi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Gi(e,t){var n=ki();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&wi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ki(e,t,n){return 0==(21&di)?(e.baseState&&(e.baseState=!1,gl=!0),e.memoizedState=n):(ar(n,t)||(n=ft(),fi.lanes|=n,Ms|=n,e.baseState=!0),t)}function Qi(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=ci.transition;ci.transition={};try{e(!1),t()}finally{vt=n,ci.transition=r}}function Xi(){return ki().memoizedState}function Zi(e,t,n){var r=Zs(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},el(e))tl(t,n);else if(null!==(n=xo(e,t,n,r))){Js(n,e,r,Xs()),nl(n,t,r)}}function Ji(e,t,n){var r=Zs(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(el(e))tl(t,a);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=o(i,n);if(a.hasEagerState=!0,a.eagerState=l,ar(l,i)){var s=t.interleaved;return null===s?(a.next=a,To(t)):(a.next=s.next,s.next=a),void(t.interleaved=a)}}catch(e){}null!==(n=xo(e,t,a,r))&&(Js(n,e,r,a=Xs()),nl(n,t,r))}}function el(e){var t=e.alternate;return e===fi||null!==t&&t===fi}function tl(e,t){vi=mi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function nl(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,mt(e,n)}}var rl={readContext:_o,useCallback:bi,useContext:bi,useEffect:bi,useImperativeHandle:bi,useInsertionEffect:bi,useLayoutEffect:bi,useMemo:bi,useReducer:bi,useRef:bi,useState:bi,useDebugValue:bi,useDeferredValue:bi,useTransition:bi,useMutableSource:bi,useSyncExternalStore:bi,useId:bi,unstable_isNewReconciler:!1},al={readContext:_o,useCallback:function(e,t){return _i().memoizedState=[e,void 0===t?null:t],e},useContext:_o,useEffect:Ui,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,zi(4194308,4,Wi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zi(4194308,4,e,t)},useInsertionEffect:function(e,t){return zi(4,2,e,t)},useMemo:function(e,t){var n=_i();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_i();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Zi.bind(null,fi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},_i().memoizedState=e},useState:Ai,useDebugValue:qi,useDeferredValue:function(e){return _i().memoizedState=e},useTransition:function(){var e=Ai(!1),t=e[0];return e=Qi.bind(null,e[1]),_i().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var a=fi,o=_i();if(to){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===xs)throw Error(n(349));0!=(30&di)||Ni(a,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,Ui(Ii.bind(null,a,i,e),[e]),a.flags|=2048,Li(9,Pi.bind(null,a,i,r,t),void 0,null),r},useId:function(){var e=_i(),t=xs.identifierPrefix;if(to){var n=Ga;t=":"+t+"R"+(n=(Ya&~(1<<32-rt(Ya)-1)).toString(32)+n),0<(n=gi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=yi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ol={readContext:_o,useCallback:Yi,useContext:_o,useEffect:ji,useImperativeHandle:Bi,useInsertionEffect:Vi,useLayoutEffect:$i,useMemo:Gi,useReducer:xi,useRef:Fi,useState:function(){return xi(Ti)},useDebugValue:qi,useDeferredValue:function(e){return Ki(ki(),pi.memoizedState,e)},useTransition:function(){return[xi(Ti)[0],ki().memoizedState]},useMutableSource:Di,useSyncExternalStore:Ri,useId:Xi,unstable_isNewReconciler:!1},il={readContext:_o,useCallback:Yi,useContext:_o,useEffect:ji,useImperativeHandle:Bi,useInsertionEffect:Vi,useLayoutEffect:$i,useMemo:Gi,useReducer:Ci,useRef:Fi,useState:function(){return Ci(Ti)},useDebugValue:qi,useDeferredValue:function(e){var t=ki();return null===pi?t.memoizedState=e:Ki(t,pi.memoizedState,e)},useTransition:function(){return[Ci(Ti)[0],ki().memoizedState]},useMutableSource:Di,useSyncExternalStore:Ri,useId:Xi,unstable_isNewReconciler:!1};function ll(e,t){try{var n="",r=t;do{n+=z(r),r=r.return}while(r);var a=n}catch(e){a="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:a,digest:null}}function sl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ul(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var cl="function"==typeof WeakMap?WeakMap:Map;function dl(e,t,n){(n=Po(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){js||(js=!0,Vs=r),ul(0,t)},n}function fl(e,t,n){(n=Po(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){ul(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){ul(0,t),"function"!=typeof r&&(null===$s?$s=new Set([this]):$s.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function pl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new cl;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=Eu.bind(null,e,t,n),t.then(e,e))}function hl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ml(e,t,n,r,a){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Po(-1,1)).tag=2,Io(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var vl=g.ReactCurrentOwner,gl=!1;function yl(e,t,n,r){t.child=null===e?Ko(t,null,n,r):Go(t,e.child,n,r)}function bl(e,t,n,r,a){n=n.render;var o=t.ref;return Eo(t,a),r=Si(e,t,n,r,o,a),n=Ei(),null===e||gl?(to&&n&&Xa(t),t.flags|=1,yl(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,jl(e,t,a))}function wl(e,t,n,r,a){if(null===e){var o=n.type;return"function"!=typeof o||Ru(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Pu(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Sl(e,t,o,r,a))}if(o=e.child,0==(e.lanes&a)){var i=o.memoizedProps;if((n=null!==(n=n.compare)?n:or)(i,r)&&e.ref===t.ref)return jl(e,t,a)}return t.flags|=1,(e=Nu(o,r)).ref=t.ref,e.return=t,t.child=e}function Sl(e,t,n,r,a){if(null!==e){var o=e.memoizedProps;if(or(o,r)&&e.ref===t.ref){if(gl=!1,t.pendingProps=r=o,0==(e.lanes&a))return t.lanes=e.lanes,jl(e,t,a);0!=(131072&e.flags)&&(gl=!0)}}return kl(e,t,n,r,a)}function El(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_a(Ns,Rs),Rs|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_a(Ns,Rs),Rs|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,_a(Ns,Rs),Rs|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,_a(Ns,Rs),Rs|=r;return yl(e,t,a,n),t.child}function _l(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function kl(e,t,n,r,a){var o=Ra(n)?Ca:Ta.current;return o=Da(t,o),Eo(t,a),n=Si(e,t,n,r,o,a),r=Ei(),null===e||gl?(to&&r&&Xa(t),t.flags|=1,yl(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,jl(e,t,a))}function Tl(e,t,n,r,a){if(Ra(n)){var o=!0;Ma(t)}else o=!1;if(Eo(t,a),null===t.stateNode)Ul(e,t),jo(t,n,r),$o(t,n,r,a),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,u=n.contextType;"object"==typeof u&&null!==u?u=_o(u):u=Da(t,u=Ra(n)?Ca:Ta.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||s!==u)&&Vo(t,i,r,u),Do=!1;var f=t.memoizedState;i.state=f,Ao(t,r,i,a),s=t.memoizedState,l!==r||f!==s||xa.current||Do?("function"==typeof c&&(zo(t,n,c,r),s=t.memoizedState),(l=Do||Uo(t,n,l,r,f,s,u))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=u,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,No(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:ho(t.type,l),i.props=u,d=t.pendingProps,f=i.context,"object"==typeof(s=n.contextType)&&null!==s?s=_o(s):s=Da(t,s=Ra(n)?Ca:Ta.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==d||f!==s)&&Vo(t,i,r,s),Do=!1,f=t.memoizedState,i.state=f,Ao(t,r,i,a);var h=t.memoizedState;l!==d||f!==h||xa.current||Do?("function"==typeof p&&(zo(t,n,p,r),h=t.memoizedState),(u=Do||Uo(t,n,u,r,f,h,s)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,s),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=s,r=u):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return xl(e,t,n,r,o,a)}function xl(e,t,n,r,a,o){_l(e,t);var i=0!=(128&t.flags);if(!r&&!i)return a&&Oa(t,n,!1),jl(e,t,o);r=t.stateNode,vl.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Go(t,e.child,null,o),t.child=Go(t,null,l,o)):yl(e,t,l,o),t.memoizedState=r.state,a&&Oa(t,n,!0),t.child}function Cl(e){var t=e.stateNode;t.pendingContext?Pa(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Pa(0,t.context,!1),ti(e,t.containerInfo)}function Dl(e,t,n,r,a){return co(),fo(a),t.flags|=256,yl(e,t,n,r),t.child}var Rl,Nl,Pl,Il={dehydrated:null,treeContext:null,retryLane:0};function Ml(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ol(e,t,r){var a,o=t.pendingProps,i=oi.current,l=!1,s=0!=(128&t.flags);if((a=s)||(a=(null===e||null!==e.memoizedState)&&0!=(2&i)),a?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),_a(oi,1&i),null===e)return io(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=o.children,e=o.fallback,l?(o=t.mode,l=t.child,s={mode:"hidden",children:s},0==(1&o)&&null!==l?(l.childLanes=0,l.pendingProps=s):l=Mu(s,o,0,null),e=Iu(e,o,r,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Ml(r),t.memoizedState=Il,e):Al(t,s));if(null!==(i=e.memoizedState)&&null!==(a=i.dehydrated))return function(e,t,r,a,o,i,l){if(r)return 256&t.flags?(t.flags&=-257,Ll(e,t,l,a=sl(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=a.fallback,o=t.mode,a=Mu({mode:"visible",children:a.children},o,0,null),(i=Iu(i,o,l,null)).flags|=2,a.return=t,i.return=t,a.sibling=i,t.child=a,0!=(1&t.mode)&&Go(t,e.child,null,l),t.child.memoizedState=Ml(l),t.memoizedState=Il,i);if(0==(1&t.mode))return Ll(e,t,l,null);if("$!"===o.data){if(a=o.nextSibling&&o.nextSibling.dataset)var s=a.dgst;return a=s,Ll(e,t,l,a=sl(i=Error(n(419)),a,void 0))}if(s=0!=(l&e.childLanes),gl||s){if(null!==(a=xs)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(a.suspendedLanes|l))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Co(e,o),Js(a,e,o,-1))}return fu(),Ll(e,t,l,a=sl(Error(n(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=ku.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,eo=ia(o.nextSibling),Ja=t,to=!0,no=null,null!==e&&(Wa[Ba++]=Ya,Wa[Ba++]=Ga,Wa[Ba++]=qa,Ya=e.id,Ga=e.overflow,qa=t),(t=Al(t,a.children)).flags|=4096,t)}(e,t,s,o,a,i,r);if(l){l=o.fallback,s=t.mode,a=(i=e.child).sibling;var u={mode:"hidden",children:o.children};return 0==(1&s)&&t.child!==i?((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null):(o=Nu(i,u)).subtreeFlags=14680064&i.subtreeFlags,null!==a?l=Nu(a,l):(l=Iu(l,s,r,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,s=null===(s=e.child.memoizedState)?Ml(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~r,t.memoizedState=Il,o}return e=(l=e.child).sibling,o=Nu(l,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=r),o.return=t,o.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Al(e,t){return(t=Mu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ll(e,t,n,r){return null!==r&&fo(r),Go(t,e.child,null,n),(e=Al(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),So(e.return,t,n)}function zl(e,t,n,r,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function Hl(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(yl(e,t,r.children,n),0!=(2&(r=oi.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Fl(e,n,t);else if(19===e.tag)Fl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(_a(oi,r),0==(1&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===ii(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),zl(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===ii(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}zl(t,!0,n,null,o);break;case"together":zl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ul(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function jl(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Ms|=t.lanes,0==(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Nu(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Nu(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Vl(e,t){if(!to)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function $l(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Wl(e,t,r){var o=t.pendingProps;switch(Za(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $l(t),null;case 1:case 17:return Ra(t.type)&&Na(),$l(t),null;case 3:return o=t.stateNode,ni(),Ea(xa),Ea(Ta),si(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null!==e&&null!==e.child||(so(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==no&&(ru(no),no=null))),$l(t),null;case 5:ai(t);var i=ei(Jo.current);if(r=t.type,null!==e&&null!=t.stateNode)Nl(e,t,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(null===t.stateNode)throw Error(n(166));return $l(t),null}if(e=ei(Xo.current),so(t)){o=t.stateNode,r=t.type;var l=t.memoizedProps;switch(o[ua]=t,o[ca]=l,e=0!=(1&t.mode),r){case"dialog":Lr("cancel",o),Lr("close",o);break;case"iframe":case"object":case"embed":Lr("load",o);break;case"video":case"audio":for(i=0;i<Ir.length;i++)Lr(Ir[i],o);break;case"source":Lr("error",o);break;case"img":case"image":case"link":Lr("error",o),Lr("load",o);break;case"details":Lr("toggle",o);break;case"input":Y(o,l),Lr("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!l.multiple},Lr("invalid",o);break;case"textarea":te(o,l),Lr("invalid",o)}for(var s in me(r,l),i=null,l)if(l.hasOwnProperty(s)){var u=l[s];"children"===s?"string"==typeof u?o.textContent!==u&&(!0!==l.suppressHydrationWarning&&Kr(o.textContent,u,e),i=["children",u]):"number"==typeof u&&o.textContent!==""+u&&(!0!==l.suppressHydrationWarning&&Kr(o.textContent,u,e),i=["children",""+u]):a.hasOwnProperty(s)&&null!=u&&"onScroll"===s&&Lr("scroll",o)}switch(r){case"input":$(o),Q(o,l,!0);break;case"textarea":$(o),re(o);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(o.onclick=Qr)}o=i,t.updateQueue=o,null!==o&&(t.flags|=4)}else{s=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ae(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof o.is?e=s.createElement(r,{is:o.is}):(e=s.createElement(r),"select"===r&&(s=e,o.multiple?s.multiple=!0:o.size&&(s.size=o.size))):e=s.createElementNS(e,r),e[ua]=t,e[ca]=o,Rl(e,t),t.stateNode=e;e:{switch(s=ve(r,o),r){case"dialog":Lr("cancel",e),Lr("close",e),i=o;break;case"iframe":case"object":case"embed":Lr("load",e),i=o;break;case"video":case"audio":for(i=0;i<Ir.length;i++)Lr(Ir[i],e);i=o;break;case"source":Lr("error",e),i=o;break;case"img":case"image":case"link":Lr("error",e),Lr("load",e),i=o;break;case"details":Lr("toggle",e),i=o;break;case"input":Y(e,o),i=q(e,o),Lr("invalid",e);break;case"option":default:i=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},i=O({},o,{value:void 0}),Lr("invalid",e);break;case"textarea":te(e,o),i=ee(e,o),Lr("invalid",e)}for(l in me(r,i),u=i)if(u.hasOwnProperty(l)){var c=u[l];"style"===l?pe(e,c):"dangerouslySetInnerHTML"===l?null!=(c=c?c.__html:void 0)&&se(e,c):"children"===l?"string"==typeof c?("textarea"!==r||""!==c)&&ue(e,c):"number"==typeof c&&ue(e,""+c):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(a.hasOwnProperty(l)?null!=c&&"onScroll"===l&&Lr("scroll",e):null!=c&&v(e,l,c,s))}switch(r){case"input":$(e),Q(e,o,!1);break;case"textarea":$(e),re(e);break;case"option":null!=o.value&&e.setAttribute("value",""+j(o.value));break;case"select":e.multiple=!!o.multiple,null!=(l=o.value)?J(e,!!o.multiple,l,!1):null!=o.defaultValue&&J(e,!!o.multiple,o.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Qr)}switch(r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return $l(t),null;case 6:if(e&&null!=t.stateNode)Pl(0,t,e.memoizedProps,o);else{if("string"!=typeof o&&null===t.stateNode)throw Error(n(166));if(r=ei(Jo.current),ei(Xo.current),so(t)){if(o=t.stateNode,r=t.memoizedProps,o[ua]=t,(l=o.nodeValue!==r)&&null!==(e=Ja))switch(e.tag){case 3:Kr(o.nodeValue,r,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Kr(o.nodeValue,r,0!=(1&e.mode))}l&&(t.flags|=4)}else(o=(9===r.nodeType?r:r.ownerDocument).createTextNode(o))[ua]=t,t.stateNode=o}return $l(t),null;case 13:if(Ea(oi),o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(to&&null!==eo&&0!=(1&t.mode)&&0==(128&t.flags))uo(),co(),t.flags|=98560,l=!1;else if(l=so(t),null!==o&&null!==o.dehydrated){if(null===e){if(!l)throw Error(n(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(n(317));l[ua]=t}else co(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;$l(t),l=!1}else null!==no&&(ru(no),no=null),l=!0;if(!l)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=r,t):((o=null!==o)!==(null!==e&&null!==e.memoizedState)&&o&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&oi.current)?0===Ps&&(Ps=3):fu())),null!==t.updateQueue&&(t.flags|=4),$l(t),null);case 4:return ni(),null===e&&Hr(t.stateNode.containerInfo),$l(t),null;case 10:return wo(t.type._context),$l(t),null;case 19:if(Ea(oi),null===(l=t.memoizedState))return $l(t),null;if(o=0!=(128&t.flags),null===(s=l.rendering))if(o)Vl(l,!1);else{if(0!==Ps||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(s=ii(e))){for(t.flags|=128,Vl(l,!1),null!==(o=s.updateQueue)&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=r,r=t.child;null!==r;)e=o,(l=r).flags&=14680066,null===(s=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=s.childLanes,l.lanes=s.lanes,l.child=s.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=s.memoizedProps,l.memoizedState=s.memoizedState,l.updateQueue=s.updateQueue,l.type=s.type,e=s.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return _a(oi,1&oi.current|2),t.child}e=e.sibling}null!==l.tail&&Ge()>Hs&&(t.flags|=128,o=!0,Vl(l,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=ii(s))){if(t.flags|=128,o=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Vl(l,!0),null===l.tail&&"hidden"===l.tailMode&&!s.alternate&&!to)return $l(t),null}else 2*Ge()-l.renderingStartTime>Hs&&1073741824!==r&&(t.flags|=128,o=!0,Vl(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(null!==(r=l.last)?r.sibling=s:t.child=s,l.last=s)}return null!==l.tail?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Ge(),t.sibling=null,r=oi.current,_a(oi,o?1&r|2:1&r),t):($l(t),null);case 22:case 23:return su(),o=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==o&&(t.flags|=8192),o&&0!=(1&t.mode)?0!=(1073741824&Rs)&&($l(t),6&t.subtreeFlags&&(t.flags|=8192)):$l(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Bl(e,t){switch(Za(t),t.tag){case 1:return Ra(t.type)&&Na(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ni(),Ea(xa),Ea(Ta),si(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ai(t),null;case 13:if(Ea(oi),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));co()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ea(oi),null;case 4:return ni(),null;case 10:return wo(t.type._context),null;case 22:case 23:return su(),null;default:return null}}Rl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Nl=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ei(Xo.current);var i,l=null;switch(n){case"input":o=q(e,o),r=q(e,r),l=[];break;case"select":o=O({},o,{value:void 0}),r=O({},r,{value:void 0}),l=[];break;case"textarea":o=ee(e,o),r=ee(e,r),l=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Qr)}for(c in me(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var s=o[c];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(a.hasOwnProperty(c)?l||(l=[]):(l=l||[]).push(c,null));for(c in r){var u=r[c];if(s=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==s&&(null!=u||null!=s))if("style"===c)if(s){for(i in s)!s.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&s[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(l||(l=[]),l.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,s=s?s.__html:void 0,null!=u&&s!==u&&(l=l||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(l=l||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(a.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Lr("scroll",e),l||s===u||(l=[])):(l=l||[]).push(c,u))}n&&(l=l||[]).push("style",n);var c=l;(t.updateQueue=c)&&(t.flags|=4)}},Pl=function(e,t,n,r){n!==r&&(t.flags|=4)};var ql=!1,Yl=!1,Gl="function"==typeof WeakSet?WeakSet:Set,Kl=null;function Ql(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Su(e,t,n)}else n.current=null}function Xl(e,t,n){try{n()}catch(n){Su(e,t,n)}}var Zl=!1;function Jl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,void 0!==o&&Xl(t,n,o)}a=a.next}while(a!==r)}}function es(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ts(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function ns(e){var t=e.alternate;null!==t&&(e.alternate=null,ns(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[ua],delete t[ca],delete t[fa],delete t[pa],delete t[ha])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function rs(e){return 5===e.tag||3===e.tag||4===e.tag}function as(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||rs(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function os(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Qr));else if(4!==r&&null!==(e=e.child))for(os(e,t,n),e=e.sibling;null!==e;)os(e,t,n),e=e.sibling}function is(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(is(e,t,n),e=e.sibling;null!==e;)is(e,t,n),e=e.sibling}var ls=null,ss=!1;function us(e,t,n){for(n=n.child;null!==n;)cs(e,t,n),n=n.sibling}function cs(e,t,n){if(nt&&"function"==typeof nt.onCommitFiberUnmount)try{nt.onCommitFiberUnmount(tt,n)}catch(e){}switch(n.tag){case 5:Yl||Ql(n,t);case 6:var r=ls,a=ss;ls=null,us(e,t,n),ss=a,null!==(ls=r)&&(ss?(e=ls,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ls.removeChild(n.stateNode));break;case 18:null!==ls&&(ss?(e=ls,n=n.stateNode,8===e.nodeType?oa(e.parentNode,n):1===e.nodeType&&oa(e,n),Ht(e)):oa(ls,n.stateNode));break;case 4:r=ls,a=ss,ls=n.stateNode.containerInfo,ss=!0,us(e,t,n),ls=r,ss=a;break;case 0:case 11:case 14:case 15:if(!Yl&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){a=r=r.next;do{var o=a,i=o.destroy;o=o.tag,void 0!==i&&(0!=(2&o)||0!=(4&o))&&Xl(n,t,i),a=a.next}while(a!==r)}us(e,t,n);break;case 1:if(!Yl&&(Ql(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Su(n,t,e)}us(e,t,n);break;case 21:us(e,t,n);break;case 22:1&n.mode?(Yl=(r=Yl)||null!==n.memoizedState,us(e,t,n),Yl=r):us(e,t,n);break;default:us(e,t,n)}}function ds(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Gl),t.forEach((function(t){var r=Tu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function fs(e,t){var r=t.deletions;if(null!==r)for(var a=0;a<r.length;a++){var o=r[a];try{var i=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:ls=s.stateNode,ss=!1;break e;case 3:case 4:ls=s.stateNode.containerInfo,ss=!0;break e}s=s.return}if(null===ls)throw Error(n(160));cs(i,l,o),ls=null,ss=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(e){Su(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ps(t,e),t=t.sibling}function ps(e,t){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(fs(t,e),hs(e),4&a){try{Jl(3,e,e.return),es(3,e)}catch(t){Su(e,e.return,t)}try{Jl(5,e,e.return)}catch(t){Su(e,e.return,t)}}break;case 1:fs(t,e),hs(e),512&a&&null!==r&&Ql(r,r.return);break;case 5:if(fs(t,e),hs(e),512&a&&null!==r&&Ql(r,r.return),32&e.flags){var o=e.stateNode;try{ue(o,"")}catch(t){Su(e,e.return,t)}}if(4&a&&null!=(o=e.stateNode)){var i=e.memoizedProps,l=null!==r?r.memoizedProps:i,s=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===s&&"radio"===i.type&&null!=i.name&&G(o,i),ve(s,l);var c=ve(s,i);for(l=0;l<u.length;l+=2){var d=u[l],f=u[l+1];"style"===d?pe(o,f):"dangerouslySetInnerHTML"===d?se(o,f):"children"===d?ue(o,f):v(o,d,f,c)}switch(s){case"input":K(o,i);break;case"textarea":ne(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var h=i.value;null!=h?J(o,!!i.multiple,h,!1):p!==!!i.multiple&&(null!=i.defaultValue?J(o,!!i.multiple,i.defaultValue,!0):J(o,!!i.multiple,i.multiple?[]:"",!1))}o[ca]=i}catch(t){Su(e,e.return,t)}}break;case 6:if(fs(t,e),hs(e),4&a){if(null===e.stateNode)throw Error(n(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){Su(e,e.return,t)}}break;case 3:if(fs(t,e),hs(e),4&a&&null!==r&&r.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(t){Su(e,e.return,t)}break;case 4:default:fs(t,e),hs(e);break;case 13:fs(t,e),hs(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(zs=Ge())),4&a&&ds(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Yl=(c=Yl)||d,fs(t,e),Yl=c):fs(t,e),hs(e),8192&a){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&0!=(1&e.mode))for(Kl=e,d=e.child;null!==d;){for(f=Kl=d;null!==Kl;){switch(h=(p=Kl).child,p.tag){case 0:case 11:case 14:case 15:Jl(4,p,p.return);break;case 1:Ql(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){a=p,r=p.return;try{t=a,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Su(a,r,e)}}break;case 5:Ql(p,p.return);break;case 22:if(null!==p.memoizedState){ys(f);continue}}null!==h?(h.return=p,Kl=h):ys(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,c?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(s=f.stateNode,l=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,s.style.display=fe("display",l))}catch(t){Su(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){Su(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:fs(t,e),hs(e),4&a&&ds(e);case 21:}}function hs(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(rs(r)){var a=r;break e}r=r.return}throw Error(n(160))}switch(a.tag){case 5:var o=a.stateNode;32&a.flags&&(ue(o,""),a.flags&=-33),is(e,as(e),o);break;case 3:case 4:var i=a.stateNode.containerInfo;os(e,as(e),i);break;default:throw Error(n(161))}}catch(t){Su(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function ms(e,t,n){Kl=e,vs(e)}function vs(e,t,n){for(var r=0!=(1&e.mode);null!==Kl;){var a=Kl,o=a.child;if(22===a.tag&&r){var i=null!==a.memoizedState||ql;if(!i){var l=a.alternate,s=null!==l&&null!==l.memoizedState||Yl;l=ql;var u=Yl;if(ql=i,(Yl=s)&&!u)for(Kl=a;null!==Kl;)s=(i=Kl).child,22===i.tag&&null!==i.memoizedState?bs(a):null!==s?(s.return=i,Kl=s):bs(a);for(;null!==o;)Kl=o,vs(o),o=o.sibling;Kl=a,ql=l,Yl=u}gs(e)}else 0!=(8772&a.subtreeFlags)&&null!==o?(o.return=a,Kl=o):gs(e)}}function gs(e){for(;null!==Kl;){var t=Kl;if(0!=(8772&t.flags)){var r=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Yl||es(5,t);break;case 1:var a=t.stateNode;if(4&t.flags&&!Yl)if(null===r)a.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:ho(t.type,r.memoizedProps);a.componentDidUpdate(o,r.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Lo(t,i,a);break;case 3:var l=t.updateQueue;if(null!==l){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Lo(t,l,r)}break;case 5:var s=t.stateNode;if(null===r&&4&t.flags){r=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Ht(f)}}}break;default:throw Error(n(163))}Yl||512&t.flags&&ts(t)}catch(e){Su(t,t.return,e)}}if(t===e){Kl=null;break}if(null!==(r=t.sibling)){r.return=t.return,Kl=r;break}Kl=t.return}}function ys(e){for(;null!==Kl;){var t=Kl;if(t===e){Kl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Kl=n;break}Kl=t.return}}function bs(e){for(;null!==Kl;){var t=Kl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{es(4,t)}catch(e){Su(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var a=t.return;try{r.componentDidMount()}catch(e){Su(t,a,e)}}var o=t.return;try{ts(t)}catch(e){Su(t,o,e)}break;case 5:var i=t.return;try{ts(t)}catch(e){Su(t,i,e)}}}catch(e){Su(t,t.return,e)}if(t===e){Kl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Kl=l;break}Kl=t.return}}var ws,Ss=Math.ceil,Es=g.ReactCurrentDispatcher,_s=g.ReactCurrentOwner,ks=g.ReactCurrentBatchConfig,Ts=0,xs=null,Cs=null,Ds=0,Rs=0,Ns=Sa(0),Ps=0,Is=null,Ms=0,Os=0,As=0,Ls=null,Fs=null,zs=0,Hs=1/0,Us=null,js=!1,Vs=null,$s=null,Ws=!1,Bs=null,qs=0,Ys=0,Gs=null,Ks=-1,Qs=0;function Xs(){return 0!=(6&Ts)?Ge():-1!==Ks?Ks:Ks=Ge()}function Zs(e){return 0==(1&e.mode)?1:0!=(2&Ts)&&0!==Ds?Ds&-Ds:null!==po.transition?(0===Qs&&(Qs=ft()),Qs):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Yt(e.type)}function Js(e,t,r,a){if(50<Ys)throw Ys=0,Gs=null,Error(n(185));ht(e,r,a),0!=(2&Ts)&&e===xs||(e===xs&&(0==(2&Ts)&&(Os|=r),4===Ps&&au(e,Ds)),eu(e,a),1===r&&0===Ts&&0==(1&t.mode)&&(Hs=Ge()+500,La&&Ha()))}function eu(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-rt(o),l=1<<i,s=a[i];-1===s?0!=(l&n)&&0==(l&r)||(a[i]=ct(l,t)):s<=t&&(e.expiredLanes|=l),o&=~l}}(e,t);var r=ut(e,e===xs?Ds:0);if(0===r)null!==n&&Be(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Be(n),1===t)0===e.tag?function(e){La=!0,za(e)}(ou.bind(null,e)):za(ou.bind(null,e)),ra((function(){0==(6&Ts)&&Ha()})),n=null;else{switch(gt(r)){case 1:n=Qe;break;case 4:n=Xe;break;case 16:default:n=Ze;break;case 536870912:n=et}n=xu(n,tu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function tu(e,t){if(Ks=-1,Qs=0,0!=(6&Ts))throw Error(n(327));var r=e.callbackNode;if(bu()&&e.callbackNode!==r)return null;var a=ut(e,e===xs?Ds:0);if(0===a)return null;if(0!=(30&a)||0!=(a&e.expiredLanes)||t)t=pu(e,a);else{t=a;var o=Ts;Ts|=2;var i=du();for(xs===e&&Ds===t||(Us=null,Hs=Ge()+500,uu(e,t));;)try{mu();break}catch(t){cu(e,t)}bo(),Es.current=i,Ts=o,null!==Cs?t=0:(xs=null,Ds=0,t=Ps)}if(0!==t){if(2===t&&(0!==(o=dt(e))&&(a=o,t=nu(e,o))),1===t)throw r=Is,uu(e,0),au(e,a),eu(e,Ge()),r;if(6===t)au(e,a);else{if(o=e.current.alternate,0==(30&a)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!ar(o(),a))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=pu(e,a))&&(0!==(i=dt(e))&&(a=i,t=nu(e,i))),1===t))throw r=Is,uu(e,0),au(e,a),eu(e,Ge()),r;switch(e.finishedWork=o,e.finishedLanes=a,t){case 0:case 1:throw Error(n(345));case 2:case 5:yu(e,Fs,Us);break;case 3:if(au(e,a),(130023424&a)===a&&10<(t=zs+500-Ge())){if(0!==ut(e,0))break;if(((o=e.suspendedLanes)&a)!==a){Xs(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ea(yu.bind(null,e,Fs,Us),t);break}yu(e,Fs,Us);break;case 4:if(au(e,a),(4194240&a)===a)break;for(t=e.eventTimes,o=-1;0<a;){var l=31-rt(a);i=1<<l,(l=t[l])>o&&(o=l),a&=~i}if(a=o,10<(a=(120>(a=Ge()-a)?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*Ss(a/1960))-a)){e.timeoutHandle=ea(yu.bind(null,e,Fs,Us),a);break}yu(e,Fs,Us);break;default:throw Error(n(329))}}}return eu(e,Ge()),e.callbackNode===r?tu.bind(null,e):null}function nu(e,t){var n=Ls;return e.current.memoizedState.isDehydrated&&(uu(e,t).flags|=256),2!==(e=pu(e,t))&&(t=Fs,Fs=n,null!==t&&ru(t)),e}function ru(e){null===Fs?Fs=e:Fs.push.apply(Fs,e)}function au(e,t){for(t&=~As,t&=~Os,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-rt(t),r=1<<n;e[n]=-1,t&=~r}}function ou(e){if(0!=(6&Ts))throw Error(n(327));bu();var t=ut(e,0);if(0==(1&t))return eu(e,Ge()),null;var r=pu(e,t);if(0!==e.tag&&2===r){var a=dt(e);0!==a&&(t=a,r=nu(e,a))}if(1===r)throw r=Is,uu(e,0),au(e,t),eu(e,Ge()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,yu(e,Fs,Us),eu(e,Ge()),null}function iu(e,t){var n=Ts;Ts|=1;try{return e(t)}finally{0===(Ts=n)&&(Hs=Ge()+500,La&&Ha())}}function lu(e){null!==Bs&&0===Bs.tag&&0==(6&Ts)&&bu();var t=Ts;Ts|=1;var n=ks.transition,r=vt;try{if(ks.transition=null,vt=1,e)return e()}finally{vt=r,ks.transition=n,0==(6&(Ts=t))&&Ha()}}function su(){Rs=Ns.current,Ea(Ns)}function uu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ta(n)),null!==Cs)for(n=Cs.return;null!==n;){var r=n;switch(Za(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Na();break;case 3:ni(),Ea(xa),Ea(Ta),si();break;case 5:ai(r);break;case 4:ni();break;case 13:case 19:Ea(oi);break;case 10:wo(r.type._context);break;case 22:case 23:su()}n=n.return}if(xs=e,Cs=e=Nu(e.current,null),Ds=Rs=t,Ps=0,Is=null,As=Os=Ms=0,Fs=Ls=null,null!==ko){for(t=0;t<ko.length;t++)if(null!==(r=(n=ko[t]).interleaved)){n.interleaved=null;var a=r.next,o=n.pending;if(null!==o){var i=o.next;o.next=a,r.next=i}n.pending=r}ko=null}return e}function cu(e,t){for(;;){var r=Cs;try{if(bo(),ui.current=rl,mi){for(var a=fi.memoizedState;null!==a;){var o=a.queue;null!==o&&(o.pending=null),a=a.next}mi=!1}if(di=0,hi=pi=fi=null,vi=!1,gi=0,_s.current=null,null===r||null===r.return){Ps=1,Is=t,Cs=null;break}e:{var i=e,l=r.return,s=r,u=t;if(t=Ds,s.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=s,f=d.tag;if(0==(1&d.mode)&&(0===f||11===f||15===f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=hl(l);if(null!==h){h.flags&=-257,ml(h,l,s,0,t),1&h.mode&&pl(i,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var v=new Set;v.add(u),t.updateQueue=v}else m.add(u);break e}if(0==(1&t)){pl(i,c,t),fu();break e}u=Error(n(426))}else if(to&&1&s.mode){var g=hl(l);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),ml(g,l,s,0,t),fo(ll(u,s));break e}}i=u=ll(u,s),4!==Ps&&(Ps=2),null===Ls?Ls=[i]:Ls.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Oo(i,dl(0,u,t));break e;case 1:s=u;var y=i.type,b=i.stateNode;if(0==(128&i.flags)&&("function"==typeof y.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===$s||!$s.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Oo(i,fl(i,s,t));break e}}i=i.return}while(null!==i)}gu(r)}catch(e){t=e,Cs===r&&null!==r&&(Cs=r=r.return);continue}break}}function du(){var e=Es.current;return Es.current=rl,null===e?rl:e}function fu(){0!==Ps&&3!==Ps&&2!==Ps||(Ps=4),null===xs||0==(268435455&Ms)&&0==(268435455&Os)||au(xs,Ds)}function pu(e,t){var r=Ts;Ts|=2;var a=du();for(xs===e&&Ds===t||(Us=null,uu(e,t));;)try{hu();break}catch(t){cu(e,t)}if(bo(),Ts=r,Es.current=a,null!==Cs)throw Error(n(261));return xs=null,Ds=0,Ps}function hu(){for(;null!==Cs;)vu(Cs)}function mu(){for(;null!==Cs&&!qe();)vu(Cs)}function vu(e){var t=ws(e.alternate,e,Rs);e.memoizedProps=e.pendingProps,null===t?gu(e):Cs=t,_s.current=null}function gu(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Wl(n,t,Rs)))return void(Cs=n)}else{if(null!==(n=Bl(n,t)))return n.flags&=32767,void(Cs=n);if(null===e)return Ps=6,void(Cs=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Cs=t);Cs=t=e}while(null!==t);0===Ps&&(Ps=5)}function yu(e,t,r){var a=vt,o=ks.transition;try{ks.transition=null,vt=1,function(e,t,r,a){do{bu()}while(null!==Bs);if(0!=(6&Ts))throw Error(n(327));r=e.finishedWork;var o=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-rt(n),o=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~o}}(e,i),e===xs&&(Cs=xs=null,Ds=0),0==(2064&r.subtreeFlags)&&0==(2064&r.flags)||Ws||(Ws=!0,xu(Ze,(function(){return bu(),null}))),i=0!=(15990&r.flags),0!=(15990&r.subtreeFlags)||i){i=ks.transition,ks.transition=null;var l=vt;vt=1;var s=Ts;Ts|=4,_s.current=null,function(e,t){if(Xr=jt,cr(e=ur())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var a=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(a&&0!==a.rangeCount){r=a.anchorNode;var o=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{r.nodeType,i.nodeType}catch(e){r=null;break e}var l=0,s=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==r||0!==o&&3!==f.nodeType||(s=l+o),f!==i||0!==a&&3!==f.nodeType||(u=l+a),3===f.nodeType&&(l+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===r&&++c===o&&(s=l),p===i&&++d===a&&(u=l),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}r=-1===s||-1===u?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(Zr={focusedElem:e,selectionRange:r},jt=!1,Kl=t;null!==Kl;)if(e=(t=Kl).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Kl=e;else for(;null!==Kl;){t=Kl;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var v=m.memoizedProps,g=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:ho(t.type,v),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(n(163))}}catch(e){Su(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Kl=e;break}Kl=t.return}m=Zl,Zl=!1}(e,r),ps(r,e),dr(Zr),jt=!!Xr,Zr=Xr=null,e.current=r,ms(r),Ye(),Ts=s,vt=l,ks.transition=i}else e.current=r;if(Ws&&(Ws=!1,Bs=e,qs=o),0===(i=e.pendingLanes)&&($s=null),function(e){if(nt&&"function"==typeof nt.onCommitFiberRoot)try{nt.onCommitFiberRoot(tt,e,void 0,128==(128&e.current.flags))}catch(e){}}(r.stateNode),eu(e,Ge()),null!==t)for(a=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],a(o.value,{componentStack:o.stack,digest:o.digest});if(js)throw js=!1,e=Vs,Vs=null,e;0!=(1&qs)&&0!==e.tag&&bu(),0!=(1&(i=e.pendingLanes))?e===Gs?Ys++:(Ys=0,Gs=e):Ys=0,Ha()}(e,t,r,a)}finally{ks.transition=o,vt=a}return null}function bu(){if(null!==Bs){var e=gt(qs),t=ks.transition,r=vt;try{if(ks.transition=null,vt=16>e?16:e,null===Bs)var a=!1;else{if(e=Bs,Bs=null,qs=0,0!=(6&Ts))throw Error(n(331));var o=Ts;for(Ts|=4,Kl=e.current;null!==Kl;){var i=Kl,l=i.child;if(0!=(16&Kl.flags)){var s=i.deletions;if(null!==s){for(var u=0;u<s.length;u++){var c=s[u];for(Kl=c;null!==Kl;){var d=Kl;switch(d.tag){case 0:case 11:case 15:Jl(8,d,i)}var f=d.child;if(null!==f)f.return=d,Kl=f;else for(;null!==Kl;){var p=(d=Kl).sibling,h=d.return;if(ns(d),d===c){Kl=null;break}if(null!==p){p.return=h,Kl=p;break}Kl=h}}}var m=i.alternate;if(null!==m){var v=m.child;if(null!==v){m.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(null!==v)}}Kl=i}}if(0!=(2064&i.subtreeFlags)&&null!==l)l.return=i,Kl=l;else e:for(;null!==Kl;){if(0!=(2048&(i=Kl).flags))switch(i.tag){case 0:case 11:case 15:Jl(9,i,i.return)}var y=i.sibling;if(null!==y){y.return=i.return,Kl=y;break e}Kl=i.return}}var b=e.current;for(Kl=b;null!==Kl;){var w=(l=Kl).child;if(0!=(2064&l.subtreeFlags)&&null!==w)w.return=l,Kl=w;else e:for(l=b;null!==Kl;){if(0!=(2048&(s=Kl).flags))try{switch(s.tag){case 0:case 11:case 15:es(9,s)}}catch(e){Su(s,s.return,e)}if(s===l){Kl=null;break e}var S=s.sibling;if(null!==S){S.return=s.return,Kl=S;break e}Kl=s.return}}if(Ts=o,Ha(),nt&&"function"==typeof nt.onPostCommitFiberRoot)try{nt.onPostCommitFiberRoot(tt,e)}catch(e){}a=!0}return a}finally{vt=r,ks.transition=t}}return!1}function wu(e,t,n){e=Io(e,t=dl(0,t=ll(n,t),1),1),t=Xs(),null!==e&&(ht(e,1,t),eu(e,t))}function Su(e,t,n){if(3===e.tag)wu(e,e,n);else for(;null!==t;){if(3===t.tag){wu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===$s||!$s.has(r))){t=Io(t,e=fl(t,e=ll(n,e),1),1),e=Xs(),null!==t&&(ht(t,1,e),eu(t,e));break}}t=t.return}}function Eu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Xs(),e.pingedLanes|=e.suspendedLanes&n,xs===e&&(Ds&n)===n&&(4===Ps||3===Ps&&(130023424&Ds)===Ds&&500>Ge()-zs?uu(e,0):As|=n),eu(e,t)}function _u(e,t){0===t&&(0==(1&e.mode)?t=1:(t=lt,0==(130023424&(lt<<=1))&&(lt=4194304)));var n=Xs();null!==(e=Co(e,t))&&(ht(e,t,n),eu(e,n))}function ku(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),_u(e,n)}function Tu(e,t){var r=0;switch(e.tag){case 13:var a=e.stateNode,o=e.memoizedState;null!==o&&(r=o.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(n(314))}null!==a&&a.delete(t),_u(e,r)}function xu(e,t){return We(e,t)}function Cu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Du(e,t,n,r){return new Cu(e,t,n,r)}function Ru(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Nu(e,t){var n=e.alternate;return null===n?((n=Du(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Pu(e,t,r,a,o,i){var l=2;if(a=e,"function"==typeof e)Ru(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case w:return Iu(r.children,o,i,t);case S:l=8,o|=8;break;case E:return(e=Du(12,r,t,2|o)).elementType=E,e.lanes=i,e;case x:return(e=Du(13,r,t,o)).elementType=x,e.lanes=i,e;case C:return(e=Du(19,r,t,o)).elementType=C,e.lanes=i,e;case N:return Mu(r,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case _:l=10;break e;case k:l=9;break e;case T:l=11;break e;case D:l=14;break e;case R:l=16,a=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Du(l,r,t,o)).elementType=e,t.type=a,t.lanes=i,t}function Iu(e,t,n,r){return(e=Du(7,e,r,t)).lanes=n,e}function Mu(e,t,n,r){return(e=Du(22,e,r,t)).elementType=N,e.lanes=n,e.stateNode={isHidden:!1},e}function Ou(e,t,n){return(e=Du(6,e,null,t)).lanes=n,e}function Au(e,t,n){return(t=Du(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Lu(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pt(0),this.expirationTimes=pt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pt(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Fu(e,t,n,r,a,o,i,l,s){return e=new Lu(e,t,n,l,s),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Du(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ro(o),e}function zu(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:b,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Hu(e){if(!e)return ka;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ra(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Ra(r))return Ia(e,r,t)}return t}function Uu(e,t,n,r,a,o,i,l,s){return(e=Fu(n,r,!0,e,0,o,0,l,s)).context=Hu(null),n=e.current,(o=Po(r=Xs(),a=Zs(n))).callback=null!=t?t:null,Io(n,o,a),e.current.lanes=a,ht(e,a,r),eu(e,r),e}function ju(e,t,n,r){var a=t.current,o=Xs(),i=Zs(a);return n=Hu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Po(o,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Io(a,t,i))&&(Js(e,a,i,o),Mo(e,a,i)),i}function Vu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function $u(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Wu(e,t){$u(e,t),(e=e.alternate)&&$u(e,t)}ws=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||xa.current)gl=!0;else{if(0==(e.lanes&r)&&0==(128&t.flags))return gl=!1,function(e,t,n){switch(t.tag){case 3:Cl(t),co();break;case 5:ri(t);break;case 1:Ra(t.type)&&Ma(t);break;case 4:ti(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;_a(mo,r._currentValue),r._currentValue=a;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(_a(oi,1&oi.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Ol(e,t,n):(_a(oi,1&oi.current),null!==(e=jl(e,t,n))?e.sibling:null);_a(oi,1&oi.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Hl(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),_a(oi,oi.current),r)break;return null;case 22:case 23:return t.lanes=0,El(e,t,n)}return jl(e,t,n)}(e,t,r);gl=0!=(131072&e.flags)}else gl=!1,to&&0!=(1048576&t.flags)&&Qa(t,$a,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;Ul(e,t),e=t.pendingProps;var o=Da(t,Ta.current);Eo(t,r),o=Si(null,t,a,e,o,r);var i=Ei();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ra(a)?(i=!0,Ma(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ro(t),o.updater=Ho,t.stateNode=o,o._reactInternals=t,$o(t,a,e,r),t=xl(null,t,a,!0,i,r)):(t.tag=0,to&&i&&Xa(t),yl(null,t,o,r),t=t.child),t;case 16:a=t.elementType;e:{switch(Ul(e,t),e=t.pendingProps,a=(o=a._init)(a._payload),t.type=a,o=t.tag=function(e){if("function"==typeof e)return Ru(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===D)return 14}return 2}(a),e=ho(a,e),o){case 0:t=kl(null,t,a,e,r);break e;case 1:t=Tl(null,t,a,e,r);break e;case 11:t=bl(null,t,a,e,r);break e;case 14:t=wl(null,t,a,ho(a.type,e),r);break e}throw Error(n(306,a,""))}return t;case 0:return a=t.type,o=t.pendingProps,kl(e,t,a,o=t.elementType===a?o:ho(a,o),r);case 1:return a=t.type,o=t.pendingProps,Tl(e,t,a,o=t.elementType===a?o:ho(a,o),r);case 3:e:{if(Cl(t),null===e)throw Error(n(387));a=t.pendingProps,o=(i=t.memoizedState).element,No(e,t),Ao(t,a,null,r);var l=t.memoizedState;if(a=l.element,i.isDehydrated){if(i={element:a,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Dl(e,t,a,r,o=ll(Error(n(423)),t));break e}if(a!==o){t=Dl(e,t,a,r,o=ll(Error(n(424)),t));break e}for(eo=ia(t.stateNode.containerInfo.firstChild),Ja=t,to=!0,no=null,r=Ko(t,null,a,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(co(),a===o){t=jl(e,t,r);break e}yl(e,t,a,r)}t=t.child}return t;case 5:return ri(t),null===e&&io(t),a=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,Jr(a,o)?l=null:null!==i&&Jr(a,i)&&(t.flags|=32),_l(e,t),yl(e,t,l,r),t.child;case 6:return null===e&&io(t),null;case 13:return Ol(e,t,r);case 4:return ti(t,t.stateNode.containerInfo),a=t.pendingProps,null===e?t.child=Go(t,null,a,r):yl(e,t,a,r),t.child;case 11:return a=t.type,o=t.pendingProps,bl(e,t,a,o=t.elementType===a?o:ho(a,o),r);case 7:return yl(e,t,t.pendingProps,r),t.child;case 8:case 12:return yl(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(a=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,_a(mo,a._currentValue),a._currentValue=l,null!==i)if(ar(i.value,l)){if(i.children===o.children&&!xa.current){t=jl(e,t,r);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var s=i.dependencies;if(null!==s){l=i.child;for(var u=s.firstContext;null!==u;){if(u.context===a){if(1===i.tag){(u=Po(-1,r&-r)).tag=2;var c=i.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}i.lanes|=r,null!==(u=i.alternate)&&(u.lanes|=r),So(i.return,r,t),s.lanes|=r;break}u=u.next}}else if(10===i.tag)l=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(l=i.return))throw Error(n(341));l.lanes|=r,null!==(s=l.alternate)&&(s.lanes|=r),So(l,r,t),l=i.sibling}else l=i.child;if(null!==l)l.return=i;else for(l=i;null!==l;){if(l===t){l=null;break}if(null!==(i=l.sibling)){i.return=l.return,l=i;break}l=l.return}i=l}yl(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,a=t.pendingProps.children,Eo(t,r),a=a(o=_o(o)),t.flags|=1,yl(e,t,a,r),t.child;case 14:return o=ho(a=t.type,t.pendingProps),wl(e,t,a,o=ho(a.type,o),r);case 15:return Sl(e,t,t.type,t.pendingProps,r);case 17:return a=t.type,o=t.pendingProps,o=t.elementType===a?o:ho(a,o),Ul(e,t),t.tag=1,Ra(a)?(e=!0,Ma(t)):e=!1,Eo(t,r),jo(t,a,o),$o(t,a,o,r),xl(null,t,a,!0,e,r);case 19:return Hl(e,t,r);case 22:return El(e,t,r)}throw Error(n(156,t.tag))};var Bu="function"==typeof reportError?reportError:function(e){console.error(e)};function qu(e){this._internalRoot=e}function Yu(e){this._internalRoot=e}function Gu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ku(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Qu(){}function Xu(e,t,n,r,a){var o=n._reactRootContainer;if(o){var i=o;if("function"==typeof a){var l=a;a=function(){var e=Vu(i);l.call(e)}}ju(t,i,e,a)}else i=function(e,t,n,r,a){if(a){if("function"==typeof r){var o=r;r=function(){var e=Vu(i);o.call(e)}}var i=Uu(t,r,e,0,null,!1,0,"",Qu);return e._reactRootContainer=i,e[da]=i.current,Hr(8===e.nodeType?e.parentNode:e),lu(),i}for(;a=e.lastChild;)e.removeChild(a);if("function"==typeof r){var l=r;r=function(){var e=Vu(s);l.call(e)}}var s=Fu(e,0,!1,null,0,!1,0,"",Qu);return e._reactRootContainer=s,e[da]=s.current,Hr(8===e.nodeType?e.parentNode:e),lu((function(){ju(t,s,n,r)})),s}(n,t,e,a,r);return Vu(i)}Yu.prototype.render=qu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));ju(e,t,null,null)},Yu.prototype.unmount=qu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;lu((function(){ju(null,e,null,null)})),t[da]=null}},Yu.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nt.length&&0!==t&&t<Nt[n].priority;n++);Nt.splice(n,0,e),0===n&&Ot(e)}},yt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=st(t.pendingLanes);0!==n&&(mt(t,1|n),eu(t,Ge()),0==(6&Ts)&&(Hs=Ge()+500,Ha()))}break;case 13:lu((function(){var t=Co(e,1);if(null!==t){var n=Xs();Js(t,e,1,n)}})),Wu(e,1)}},bt=function(e){if(13===e.tag){var t=Co(e,134217728);if(null!==t)Js(t,e,134217728,Xs());Wu(e,134217728)}},wt=function(e){if(13===e.tag){var t=Zs(e),n=Co(e,t);if(null!==n)Js(n,e,t,Xs());Wu(e,t)}},St=function(){return vt},Et=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},be=function(e,t,r){switch(t){case"input":if(K(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var a=r[t];if(a!==e&&a.form===e.form){var o=ya(a);if(!o)throw Error(n(90));W(a),K(a,o)}}}break;case"textarea":ne(e,r);break;case"select":null!=(t=r.value)&&J(e,!!r.multiple,t,!1)}},Te=iu,xe=lu;var Zu={usingClientEntryPoint:!1,Events:[va,ga,ya,_e,ke,iu]},Ju={findFiberByHostInstance:ma,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ec={bundleType:Ju.bundleType,version:Ju.version,rendererPackageName:Ju.rendererPackageName,rendererConfig:Ju.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:g.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ve(e))?null:e.stateNode},findFiberByHostInstance:Ju.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var tc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tc.isDisabled&&tc.supportsFiber)try{tt=tc.inject(ec),nt=tc}catch(le){}}return reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zu,reactDom_production_min.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Gu(t))throw Error(n(200));return zu(e,t,null,r)},reactDom_production_min.createRoot=function(e,t){if(!Gu(e))throw Error(n(299));var r=!1,a="",o=Bu;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(a=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Fu(e,1,!1,null,0,r,0,a,o),e[da]=t.current,Hr(8===e.nodeType?e.parentNode:e),new qu(t)},reactDom_production_min.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return e=null===(e=Ve(t))?null:e.stateNode},reactDom_production_min.flushSync=function(e){return lu(e)},reactDom_production_min.hydrate=function(e,t,r){if(!Ku(t))throw Error(n(200));return Xu(null,e,t,!0,r)},reactDom_production_min.hydrateRoot=function(e,t,r){if(!Gu(e))throw Error(n(405));var a=null!=r&&r.hydratedSources||null,o=!1,i="",l=Bu;if(null!=r&&(!0===r.unstable_strictMode&&(o=!0),void 0!==r.identifierPrefix&&(i=r.identifierPrefix),void 0!==r.onRecoverableError&&(l=r.onRecoverableError)),t=Uu(t,null,e,1,null!=r?r:null,o,0,i,l),e[da]=t.current,Hr(e),a)for(e=0;e<a.length;e++)o=(o=(r=a[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Yu(t)},reactDom_production_min.render=function(e,t,r){if(!Ku(t))throw Error(n(200));return Xu(null,e,t,!1,r)},reactDom_production_min.unmountComponentAtNode=function(e){if(!Ku(e))throw Error(n(40));return!!e._reactRootContainer&&(lu((function(){Xu(null,null,e,!1,(function(){e._reactRootContainer=null,e[da]=null}))})),!0)},reactDom_production_min.unstable_batchedUpdates=iu,reactDom_production_min.unstable_renderSubtreeIntoContainer=function(e,t,r,a){if(!Ku(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Xu(e,t,r,!1,a)},reactDom_production_min.version="18.2.0-next-9e3b772b8-20220608",reactDom_production_min}var reactDom_development={},hasRequiredReactDom_development;
|
|
29
29
|
/**
|
|
30
30
|
* @license React
|
|
31
31
|
* react-dom.development.js
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
*
|
|
35
35
|
* This source code is licensed under the MIT license found in the
|
|
36
36
|
* LICENSE file in the root directory of this source tree.
|
|
37
|
-
*/function I(){return P||(P=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=u.exports,t=D(),n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,r=!1;function a(e){if(!r){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];i("warn",e,n)}}function o(e){if(!r){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];i("error",e,n)}}function i(e,t,r){var a=n.ReactDebugCurrentFrame.getStackAddendum();""!==a&&(t+="%s",r=r.concat([a]));var o=r.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}var l=10,s=11,c=12,d=13,f=14,p=15,h=17,v=18,m=19,g=21,y=22,b=23,w=!1,k=new Set,S={},x={};function E(e,t){T(e,t),T(e+"Capture",t)}function T(e,t){S[e]&&o("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),S[e]=t;var n=e.toLowerCase();x[n]=e,"onDoubleClick"===e&&(x.ondblclick=e);for(var r=0;r<t.length;r++)k.add(t[r])}var _=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),C=Object.prototype.hasOwnProperty;function R(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function P(e){try{return I(e),!1}catch(e){return!0}}function I(e){return""+e}function M(e,t){if(P(e))return o("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,R(e)),I(e)}function O(e){if(P(e))return o("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",R(e)),I(e)}function L(e){if(P(e))return o("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",R(e)),I(e)}var z=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",A=z+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",F=new RegExp("^["+z+"]["+A+"]*$"),H={},j={};function U(e){return!!C.call(j,e)||!C.call(H,e)&&(F.test(e)?(j[e]=!0,!0):(H[e]=!0,o("Invalid attribute name: `%s`",e),!1))}function V(e,t,n){return null!==t?0===t.type:!n&&(e.length>2&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1]))}function W(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":if(r)return!1;if(null!==n)return!n.acceptsBooleans;var a=e.toLowerCase().slice(0,5);return"data-"!==a&&"aria-"!==a;default:return!1}}function B(e,t,n,r){if(null==t)return!0;if(W(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||t<1}return!1}function $(e){return Y.hasOwnProperty(e)?Y[e]:null}function q(e,t,n,r,a,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var Y={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){Y[e]=new q(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0],n=e[1];Y[t]=new q(t,1,!1,n,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Y[e]=new q(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Y[e]=new q(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((function(e){Y[e]=new q(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Y[e]=new q(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){Y[e]=new q(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){Y[e]=new q(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){Y[e]=new q(e,5,!1,e.toLowerCase(),null,!1,!1)}));var G=/[\-\:]([a-z])/g,K=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((function(e){var t=e.replace(G,K);Y[t]=new q(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(G,K);Y[t]=new q(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(G,K);Y[t]=new q(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){Y[e]=new q(e,1,!1,e.toLowerCase(),null,!1,!1)}));Y.xlinkHref=new q("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){Y[e]=new q(e,1,!1,e.toLowerCase(),null,!0,!0)}));var Q=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,X=!1;function Z(e){!X&&Q.test(e)&&(X=!0,o("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}function J(e,t,n,r){if(r.mustUseProperty)return e[r.propertyName];M(n,t),r.sanitizeURL&&Z(""+n);var a=r.attributeName,o=null;if(4===r.type){if(e.hasAttribute(a)){var i=e.getAttribute(a);return""===i||(B(t,n,r,!1)?i:i===""+n?n:i)}}else if(e.hasAttribute(a)){if(B(t,n,r,!1))return e.getAttribute(a);if(3===r.type)return n;o=e.getAttribute(a)}return B(t,n,r,!1)?null===o?n:o:o===""+n?n:o}function ee(e,t,n,r){if(U(t)){if(!e.hasAttribute(t))return void 0===n?void 0:null;var a=e.getAttribute(t);return M(n,t),a===""+n?n:a}}function te(e,t,n,r){var a=$(t);if(!V(t,a,r))if(B(t,n,a,r)&&(n=null),r||null===a){if(U(t)){var o=t;null===n?e.removeAttribute(o):(M(n,t),e.setAttribute(o,""+n))}}else if(a.mustUseProperty){var i=a.propertyName;if(null===n){var l=a.type;e[i]=3!==l&&""}else e[i]=n}else{var s=a.attributeName,u=a.attributeNamespace;if(null===n)e.removeAttribute(s);else{var c,d=a.type;3===d||4===d&&!0===n?c="":(M(n,s),c=""+n,a.sanitizeURL&&Z(c.toString())),u?e.setAttributeNS(u,s,c):e.setAttribute(s,c)}}}var ne=Symbol.for("react.element"),re=Symbol.for("react.portal"),ae=Symbol.for("react.fragment"),oe=Symbol.for("react.strict_mode"),ie=Symbol.for("react.profiler"),le=Symbol.for("react.provider"),se=Symbol.for("react.context"),ue=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),de=Symbol.for("react.suspense_list"),fe=Symbol.for("react.memo"),pe=Symbol.for("react.lazy"),he=(Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode"),Symbol.for("react.offscreen")),ve=(Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker"),Symbol.iterator);function me(e){if(null===e||"object"!=typeof e)return null;var t=ve&&e[ve]||e["@@iterator"];return"function"==typeof t?t:null}var ge,ye,be,we,ke,Se,xe,Ee=Object.assign,Te=0;function _e(){}_e.__reactDisabledLog=!0;var Ce,De=n.ReactCurrentDispatcher;function Re(e,t,n){if(void 0===Ce)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);Ce=r&&r[1]||""}return"\n"+Ce+e}var Pe,Ne=!1,Ie="function"==typeof WeakMap?WeakMap:Map;function Me(e,t){if(!e||Ne)return"";var n,r=Pe.get(e);if(void 0!==r)return r;Ne=!0;var a,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,a=De.current,De.current=null,function(){if(0===Te){ge=console.log,ye=console.info,be=console.warn,we=console.error,ke=console.group,Se=console.groupCollapsed,xe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:_e,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Te++}();try{if(t){var l=function(){throw Error()};if(Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(l,[])}catch(e){n=e}Reflect.construct(e,[],l)}else{try{l.call()}catch(e){n=e}e.call(l.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),u=n.stack.split("\n"),c=s.length-1,d=u.length-1;c>=1&&d>=0&&s[c]!==u[d];)d--;for(;c>=1&&d>=0;c--,d--)if(s[c]!==u[d]){if(1!==c||1!==d)do{if(c--,--d<0||s[c]!==u[d]){var f="\n"+s[c].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),"function"==typeof e&&Pe.set(e,f),f}}while(c>=1&&d>=0);break}}}finally{Ne=!1,De.current=a,function(){if(0==--Te){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ee({},e,{value:ge}),info:Ee({},e,{value:ye}),warn:Ee({},e,{value:be}),error:Ee({},e,{value:we}),group:Ee({},e,{value:ke}),groupCollapsed:Ee({},e,{value:Se}),groupEnd:Ee({},e,{value:xe})})}Te<0&&o("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=e?e.displayName||e.name:"",h=p?Re(p):"";return"function"==typeof e&&Pe.set(e,h),h}function Oe(e,t,n){return Me(e,!1)}function Le(e,t,n){if(null==e)return"";if("function"==typeof e)return Me(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return Re(e);switch(e){case ce:return Re("Suspense");case de:return Re("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case ue:return Oe(e.render);case fe:return Le(e.type,t,n);case pe:var r=e,a=r._payload,o=r._init;try{return Le(o(a),t,n)}catch(e){}}return""}function ze(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case 5:return Re(e.type);case 16:return Re("Lazy");case d:return Re("Suspense");case m:return Re("SuspenseList");case 0:case 2:case p:return Oe(e.type);case s:return Oe(e.type.render);case 1:return Me(e.type,!0);default:return""}}function Ae(e){try{var t="",n=e;do{t+=ze(n),n=n.return}while(n);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function Fe(e){return e.displayName||"Context"}function He(e){if(null==e)return null;if("number"==typeof e.tag&&o("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ae:return"Fragment";case re:return"Portal";case ie:return"Profiler";case oe:return"StrictMode";case ce:return"Suspense";case de:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case se:return Fe(e)+".Consumer";case le:return Fe(e._context)+".Provider";case ue:return function(e,t,n){var r=e.displayName;if(r)return r;var a=t.displayName||t.name||"";return""!==a?n+"("+a+")":n}(e,e.render,"ForwardRef");case fe:var t=e.displayName||null;return null!==t?t:He(e.type)||"Memo";case pe:var n=e,r=n._payload,a=n._init;try{return He(a(r))}catch(e){return null}}return null}function je(e){return e.displayName||"Context"}function Ue(e){var t,n,r,a,o=e.tag,i=e.type;switch(o){case 24:return"Cache";case 9:return je(i)+".Consumer";case l:return je(i._context)+".Provider";case 18:return"DehydratedFragment";case s:return t=i,n=i.render,r="ForwardRef",a=n.displayName||n.name||"",t.displayName||(""!==a?r+"("+a+")":r);case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return He(i);case 8:return i===oe?"StrictMode":"Mode";case y:return"Offscreen";case c:return"Profiler";case g:return"Scope";case d:return"Suspense";case m:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case h:case 2:case f:case p:if("function"==typeof i)return i.displayName||i.name||null;if("string"==typeof i)return i}return null}Pe=new Ie;var Ve=n.ReactDebugCurrentFrame,We=null,Be=!1;function $e(){if(null===We)return null;var e=We._debugOwner;return null!=e?Ue(e):null}function qe(){return null===We?"":Ae(We)}function Ye(){Ve.getCurrentStack=null,We=null,Be=!1}function Ge(e){Ve.getCurrentStack=null===e?null:qe,We=e,Be=!1}function Ke(e){Be=e}function Qe(e){return""+e}function Xe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return L(e),e;default:return""}}var Ze={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Je(e,t){Ze[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||null==t.value||o("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||null==t.checked||o("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function et(e){var t=e.type,n=e.nodeName;return n&&"input"===n.toLowerCase()&&("checkbox"===t||"radio"===t)}function tt(e){return e._valueTracker}function nt(e){tt(e)||(e._valueTracker=function(e){var t=et(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);L(e[t]);var r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,o=n.set;Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){L(e),r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable});var i={getValue:function(){return r},setValue:function(e){L(e),r=""+e},stopTracking:function(){!function(e){e._valueTracker=null}(e),delete e[t]}};return i}}(e))}function rt(e){if(!e)return!1;var t=tt(e);if(!t)return!0;var n=t.getValue(),r=function(e){var t="";return e?t=et(e)?e.checked?"true":"false":e.value:t}(e);return r!==n&&(t.setValue(r),!0)}function at(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var ot=!1,it=!1,lt=!1,st=!1;function ut(e){return"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}function ct(e,t){var n=e,r=t.checked;return Ee({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:n._wrapperState.initialChecked})}function dt(e,t){Je(0,t),void 0===t.checked||void 0===t.defaultChecked||it||(o("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",$e()||"A component",t.type),it=!0),void 0===t.value||void 0===t.defaultValue||ot||(o("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",$e()||"A component",t.type),ot=!0);var n=e,r=null==t.defaultValue?"":t.defaultValue;n._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:Xe(null!=t.value?t.value:r),controlled:ut(t)}}function ft(e,t){var n=e,r=t.checked;null!=r&&te(n,"checked",r,!1)}function pt(e,t){var n=e,r=ut(t);n._wrapperState.controlled||!r||st||(o("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),st=!0),!n._wrapperState.controlled||r||lt||(o("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),lt=!0),ft(e,t);var a=Xe(t.value),i=t.type;if(null!=a)"number"===i?(0===a&&""===n.value||n.value!=a)&&(n.value=Qe(a)):n.value!==Qe(a)&&(n.value=Qe(a));else if("submit"===i||"reset"===i)return void n.removeAttribute("value");t.hasOwnProperty("value")?mt(n,t.type,a):t.hasOwnProperty("defaultValue")&&mt(n,t.type,Xe(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(n.defaultChecked=!!t.defaultChecked)}function ht(e,t,n){var r=e;if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var a=t.type;if(("submit"===a||"reset"===a)&&(void 0===t.value||null===t.value))return;var o=Qe(r._wrapperState.initialValue);n||o!==r.value&&(r.value=o),r.defaultValue=o}var i=r.name;""!==i&&(r.name=""),r.defaultChecked=!r.defaultChecked,r.defaultChecked=!!r._wrapperState.initialChecked,""!==i&&(r.name=i)}function vt(e,t){var n=e;pt(n,t),function(e,t){var n=t.name;if("radio"===t.type&&null!=n){for(var r=e;r.parentNode;)r=r.parentNode;M(n,"name");for(var a=r.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),o=0;o<a.length;o++){var i=a[o];if(i!==e&&i.form===e.form){var l=Mu(i);if(!l)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");rt(i),pt(i,l)}}}}(n,t)}function mt(e,t,n){"number"===t&&at(e.ownerDocument)===e||(null==n?e.defaultValue=Qe(e._wrapperState.initialValue):e.defaultValue!==Qe(n)&&(e.defaultValue=Qe(n)))}var gt=!1,yt=!1,bt=!1;function wt(t,n){null==n.value&&("object"==typeof n.children&&null!==n.children?e.Children.forEach(n.children,(function(e){null!=e&&"string"!=typeof e&&"number"!=typeof e&&(yt||(yt=!0,o("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))})):null!=n.dangerouslySetInnerHTML&&(bt||(bt=!0,o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),null==n.selected||gt||(o("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),gt=!0)}var kt,St=Array.isArray;function xt(e){return St(e)}function Et(){var e=$e();return e?"\n\nCheck the render method of `"+e+"`.":""}kt=!1;var Tt=["value","defaultValue"];function _t(e,t,n,r){var a=e.options;if(t){for(var o=n,i={},l=0;l<o.length;l++)i["$"+o[l]]=!0;for(var s=0;s<a.length;s++){var u=i.hasOwnProperty("$"+a[s].value);a[s].selected!==u&&(a[s].selected=u),u&&r&&(a[s].defaultSelected=!0)}}else{for(var c=Qe(Xe(n)),d=null,f=0;f<a.length;f++){if(a[f].value===c)return a[f].selected=!0,void(r&&(a[f].defaultSelected=!0));null!==d||a[f].disabled||(d=a[f])}null!==d&&(d.selected=!0)}}function Ct(e,t){return Ee({},t,{value:void 0})}function Dt(e,t){var n=e;!function(e){Je(0,e);for(var t=0;t<Tt.length;t++){var n=Tt[t];if(null!=e[n]){var r=xt(e[n]);e.multiple&&!r?o("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,Et()):!e.multiple&&r&&o("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,Et())}}}(t),n._wrapperState={wasMultiple:!!t.multiple},void 0===t.value||void 0===t.defaultValue||kt||(o("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),kt=!0)}var Rt=!1;function Pt(e,t){var n=e;if(null!=t.dangerouslySetInnerHTML)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");return Ee({},t,{value:void 0,defaultValue:void 0,children:Qe(n._wrapperState.initialValue)})}function Nt(e,t){var n=e;Je(0,t),void 0===t.value||void 0===t.defaultValue||Rt||(o("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",$e()||"A component"),Rt=!0);var r=t.value;if(null==r){var a=t.children,i=t.defaultValue;if(null!=a){if(o("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),null!=i)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(xt(a)){if(a.length>1)throw new Error("<textarea> can only have at most one child.");a=a[0]}i=a}null==i&&(i=""),r=i}n._wrapperState={initialValue:Xe(r)}}function It(e,t){var n=e,r=Xe(t.value),a=Xe(t.defaultValue);if(null!=r){var o=Qe(r);o!==n.value&&(n.value=o),null==t.defaultValue&&n.defaultValue!==o&&(n.defaultValue=o)}null!=a&&(n.defaultValue=Qe(a))}function Mt(e,t){var n=e,r=n.textContent;r===n._wrapperState.initialValue&&""!==r&&null!==r&&(n.value=r)}var Ot="http://www.w3.org/1999/xhtml",Lt="http://www.w3.org/2000/svg";function zt(e){switch(e){case"svg":return Lt;case"math":return"http://www.w3.org/1998/Math/MathML";default:return Ot}}function At(e,t){return null==e||e===Ot?zt(t):e===Lt&&"foreignObject"===t?Ot:e}var Ft,Ht,jt=(Ht=function(e,t){if(e.namespaceURI!==Lt||"innerHTML"in e)e.innerHTML=t;else{(Ft=Ft||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(var n=Ft.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return Ht(e,t,n,r)}))}:Ht),Ut=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t},Vt={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},Wt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};var Bt=["Webkit","ms","Moz","O"];function $t(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Wt.hasOwnProperty(e)&&Wt[e]?(function(e,t){if(P(e))o("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,R(e)),I(e)}(t,e),(""+t).trim()):t+"px"}Object.keys(Wt).forEach((function(e){Bt.forEach((function(t){Wt[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(t,e)]=Wt[e]}))}));var qt=/([A-Z])/g,Yt=/^ms-/;var Gt=/^(?:webkit|moz|o)[A-Z]/,Kt=/^-ms-/,Qt=/-(.)/g,Xt=/;\s*$/,Zt={},Jt={},en=!1,tn=!1,nn=function(e){Zt.hasOwnProperty(e)&&Zt[e]||(Zt[e]=!0,o("Unsupported style property %s. Did you mean %s?",e,e.replace(Kt,"ms-").replace(Qt,(function(e,t){return t.toUpperCase()}))))},rn=function(e,t){e.indexOf("-")>-1?nn(e):Gt.test(e)?function(e){Zt.hasOwnProperty(e)&&Zt[e]||(Zt[e]=!0,o("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))}(e):Xt.test(t)&&function(e,t){Jt.hasOwnProperty(t)&&Jt[t]||(Jt[t]=!0,o('Style property values shouldn\'t contain a semicolon. Try "%s: %s" instead.',e,t.replace(Xt,"")))}(e,t),"number"==typeof t&&(isNaN(t)?function(e,t){en||(en=!0,o("`NaN` is an invalid value for the `%s` css style property.",e))}(e):isFinite(t)||function(e,t){tn||(tn=!0,o("`Infinity` is an invalid value for the `%s` css style property.",e))}(e))};function an(e){var t="",n="";for(var r in e)if(e.hasOwnProperty(r)){var a=e[r];if(null!=a){var o=0===r.indexOf("--");t+=n+(o?r:r.replace(qt,"-$1").toLowerCase().replace(Yt,"-ms-"))+":",t+=$t(r,a,o),n=";"}}return t||null}function on(e,t){var n=e.style;for(var r in t)if(t.hasOwnProperty(r)){var a=0===r.indexOf("--");a||rn(r,t[r]);var o=$t(r,t[r],a);"float"===r&&(r="cssFloat"),a?n.setProperty(r,o):n[r]=o}}function ln(e){var t={};for(var n in e)for(var r=Vt[n]||[n],a=0;a<r.length;a++)t[r[a]]=n;return t}var sn=Ee({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function un(e,t){if(t){if(sn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw new Error(e+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!t.suppressContentEditableWarning&&t.contentEditable&&null!=t.children&&o("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),null!=t.style&&"object"!=typeof t.style)throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function cn(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var dn={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},fn={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},pn={},hn=new RegExp("^(aria)-["+A+"]*$"),vn=new RegExp("^(aria)[A-Z]["+A+"]*$");function mn(e,t){if(C.call(pn,t)&&pn[t])return!0;if(vn.test(t)){var n="aria-"+t.slice(4).toLowerCase(),r=fn.hasOwnProperty(n)?n:null;if(null==r)return o("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),pn[t]=!0,!0;if(t!==r)return o("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,r),pn[t]=!0,!0}if(hn.test(t)){var a=t.toLowerCase(),i=fn.hasOwnProperty(a)?a:null;if(null==i)return pn[t]=!0,!1;if(t!==i)return o("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,i),pn[t]=!0,!0}return!0}function gn(e,t){cn(e,t)||function(e,t){var n=[];for(var r in t)mn(0,r)||n.push(r);var a=n.map((function(e){return"`"+e+"`"})).join(", ");1===n.length?o("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",a,e):n.length>1&&o("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",a,e)}(e,t)}var yn=!1;var bn,wn={},kn=/^on./,Sn=/^on[^A-Z]/,xn=new RegExp("^(aria)-["+A+"]*$"),En=new RegExp("^(aria)[A-Z]["+A+"]*$");bn=function(e,t,n,r){if(C.call(wn,t)&&wn[t])return!0;var a=t.toLowerCase();if("onfocusin"===a||"onfocusout"===a)return o("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),wn[t]=!0,!0;if(null!=r){var i=r.registrationNameDependencies,l=r.possibleRegistrationNames;if(i.hasOwnProperty(t))return!0;var s=l.hasOwnProperty(a)?l[a]:null;if(null!=s)return o("Invalid event handler property `%s`. Did you mean `%s`?",t,s),wn[t]=!0,!0;if(kn.test(t))return o("Unknown event handler property `%s`. It will be ignored.",t),wn[t]=!0,!0}else if(kn.test(t))return Sn.test(t)&&o("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),wn[t]=!0,!0;if(xn.test(t)||En.test(t))return!0;if("innerhtml"===a)return o("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),wn[t]=!0,!0;if("aria"===a)return o("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),wn[t]=!0,!0;if("is"===a&&null!=n&&"string"!=typeof n)return o("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),wn[t]=!0,!0;if("number"==typeof n&&isNaN(n))return o("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),wn[t]=!0,!0;var u=$(t),c=null!==u&&0===u.type;if(dn.hasOwnProperty(a)){var d=dn[a];if(d!==t)return o("Invalid DOM property `%s`. Did you mean `%s`?",t,d),wn[t]=!0,!0}else if(!c&&t!==a)return o("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,a),wn[t]=!0,!0;return"boolean"==typeof n&&W(t,n,u,!1)?(n?o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',n,t,t,n,t,t,t),wn[t]=!0,!0):!!c||(W(t,n,u,!1)?(wn[t]=!0,!1):("false"!==n&&"true"!==n||null===u||3!==u.type||(o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,"false"===n?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,n),wn[t]=!0),!0))};function Tn(e,t,n){cn(e,t)||function(e,t,n){var r=[];for(var a in t)bn(0,a,t[a],n)||r.push(a);var i=r.map((function(e){return"`"+e+"`"})).join(", ");1===r.length?o("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",i,e):r.length>1&&o("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",i,e)}(e,t,n)}var _n=null;function Cn(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}var Dn=null,Rn=null,Pn=null;function Nn(e){var t=Nu(e);if(t){if("function"!=typeof Dn)throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var n=t.stateNode;if(n){var r=Mu(n);Dn(t.stateNode,t.type,r)}}}function In(e){Rn?Pn?Pn.push(e):Pn=[e]:Rn=e}function Mn(){if(Rn){var e=Rn,t=Pn;if(Rn=null,Pn=null,Nn(e),t)for(var n=0;n<t.length;n++)Nn(t[n])}}var On=function(e,t){return e(t)},Ln=function(){},zn=!1;function An(){(null!==Rn||null!==Pn)&&(Ln(),Mn())}function Fn(e,t,n){if(zn)return e(t,n);zn=!0;try{return On(e,t,n)}finally{zn=!1,An()}}function Hn(e,t){var n=e.stateNode;if(null===n)return null;var r=Mu(n);if(null===r)return null;var a=r[t];if(function(e,t,n){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!(!n.disabled||(r=t,"button"!==r&&"input"!==r&&"select"!==r&&"textarea"!==r));default:return!1}var r}(t,e.type,r))return null;if(a&&"function"!=typeof a)throw new Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof a+"` type.");return a}var jn=!1;if(_)try{var Un={};Object.defineProperty(Un,"passive",{get:function(){jn=!0}}),window.addEventListener("test",Un,Un),window.removeEventListener("test",Un,Un)}catch(e){jn=!1}function Vn(e,t,n,r,a,o,i,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Wn=Vn;if("undefined"!=typeof window&&"function"==typeof window.dispatchEvent&&"undefined"!=typeof document&&"function"==typeof document.createEvent){var Bn=document.createElement("react");Wn=function(e,t,n,r,a,o,i,l,s){if("undefined"==typeof document||null===document)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var u=document.createEvent("Event"),c=!1,d=!0,f=window.event,p=Object.getOwnPropertyDescriptor(window,"event");function h(){Bn.removeEventListener(k,g,!1),void 0!==window.event&&window.hasOwnProperty("event")&&(window.event=f)}var v,m=Array.prototype.slice.call(arguments,3);function g(){c=!0,h(),t.apply(n,m),d=!1}var y=!1,b=!1;function w(e){if(v=e.error,y=!0,null===v&&0===e.colno&&0===e.lineno&&(b=!0),e.defaultPrevented&&null!=v&&"object"==typeof v)try{v._suppressLogging=!0}catch(e){}}var k="react-"+(e||"invokeguardedcallback");if(window.addEventListener("error",w),Bn.addEventListener(k,g,!1),u.initEvent(k,!1,!1),Bn.dispatchEvent(u),p&&Object.defineProperty(window,"event",p),c&&d&&(y?b&&(v=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):v=new Error("An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the \"Pause on exceptions\" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue."),this.onError(v)),window.removeEventListener("error",w),!c)return h(),Vn.apply(this,arguments)}}var $n=Wn,qn=!1,Yn=null,Gn=!1,Kn=null,Qn={onError:function(e){qn=!0,Yn=e}};function Xn(e,t,n,r,a,o,i,l,s){qn=!1,Yn=null,$n.apply(Qn,arguments)}function Zn(){if(qn){var e=Yn;return qn=!1,Yn=null,e}throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function Jn(e){return e._reactInternals}var er=16,tr=128,nr=256,rr=512,ar=1024,or=2048,ir=4096,lr=8192,sr=16384,ur=32768,cr=65536,dr=131072,fr=1048576,pr=2097152,hr=4194304,vr=16777216,mr=33554432,gr=1028,yr=12854,br=8772,wr=2064,kr=14680064,Sr=n.ReactCurrentOwner;function xr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{var r=t;do{0!=(4098&(t=r).flags)&&(n=t.return),r=t.return}while(r)}return 3===t.tag?n:null}function Er(e){if(e.tag===d){var t=e.memoizedState;if(null===t){var n=e.alternate;null!==n&&(t=n.memoizedState)}if(null!==t)return t.dehydrated}return null}function Tr(e){return 3===e.tag?e.stateNode.containerInfo:null}function _r(e){if(xr(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function Cr(e){var t=e.alternate;if(!t){var n=xr(e);if(null===n)throw new Error("Unable to find node on an unmounted component.");return n!==e?null:e}for(var r=e,a=t;;){var o=r.return;if(null===o)break;var i=o.alternate;if(null===i){var l=o.return;if(null!==l){r=a=l;continue}break}if(o.child===i.child){for(var s=o.child;s;){if(s===r)return _r(o),e;if(s===a)return _r(o),t;s=s.sibling}throw new Error("Unable to find node on an unmounted component.")}if(r.return!==a.return)r=o,a=i;else{for(var u=!1,c=o.child;c;){if(c===r){u=!0,r=o,a=i;break}if(c===a){u=!0,a=o,r=i;break}c=c.sibling}if(!u){for(c=i.child;c;){if(c===r){u=!0,r=i,a=o;break}if(c===a){u=!0,a=i,r=o;break}c=c.sibling}if(!u)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(r.alternate!==a)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(3!==r.tag)throw new Error("Unable to find node on an unmounted component.");return r.stateNode.current===r?e:t}function Dr(e){var t=Cr(e);return null!==t?Rr(t):null}function Rr(e){if(5===e.tag||6===e.tag)return e;for(var t=e.child;null!==t;){var n=Rr(t);if(null!==n)return n;t=t.sibling}return null}function Pr(e){var t=Cr(e);return null!==t?Nr(t):null}function Nr(e){if(5===e.tag||6===e.tag)return e;for(var t=e.child;null!==t;){if(4!==t.tag){var n=Nr(t);if(null!==n)return n}t=t.sibling}return null}var Ir=t.unstable_scheduleCallback,Mr=t.unstable_cancelCallback,Or=t.unstable_shouldYield,Lr=t.unstable_requestPaint,zr=t.unstable_now,Ar=t.unstable_getCurrentPriorityLevel,Fr=t.unstable_ImmediatePriority,Hr=t.unstable_UserBlockingPriority,jr=t.unstable_NormalPriority,Ur=t.unstable_LowPriority,Vr=t.unstable_IdlePriority,Wr=t.unstable_yieldValue,Br=t.unstable_setDisableYieldValue,$r=null,qr=null,Yr=null,Gr=!1,Kr="undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__;function Qr(e){if("function"==typeof Wr&&(Br(e),r=e),qr&&"function"==typeof qr.setStrictMode)try{qr.setStrictMode($r,e)}catch(e){Gr||(Gr=!0,o("React instrumentation encountered an error: %s",e))}}function Xr(e){Yr=e}function Zr(){for(var e=new Map,t=1,n=0;n<ha;n++){var r=Ua(t);e.set(t,r),t*=2}return e}function Jr(){null!==Yr&&"function"==typeof Yr.markCommitStopped&&Yr.markCommitStopped()}function ea(e){null!==Yr&&"function"==typeof Yr.markComponentRenderStarted&&Yr.markComponentRenderStarted(e)}function ta(){null!==Yr&&"function"==typeof Yr.markComponentRenderStopped&&Yr.markComponentRenderStopped()}function na(e){null!==Yr&&"function"==typeof Yr.markComponentLayoutEffectMountStarted&&Yr.markComponentLayoutEffectMountStarted(e)}function ra(e){null!==Yr&&"function"==typeof Yr.markComponentLayoutEffectUnmountStarted&&Yr.markComponentLayoutEffectUnmountStarted(e)}function aa(){null!==Yr&&"function"==typeof Yr.markComponentLayoutEffectUnmountStopped&&Yr.markComponentLayoutEffectUnmountStopped()}function oa(e,t,n){null!==Yr&&"function"==typeof Yr.markComponentErrored&&Yr.markComponentErrored(e,t,n)}function ia(e,t,n){null!==Yr&&"function"==typeof Yr.markComponentSuspended&&Yr.markComponentSuspended(e,t,n)}function la(e){null!==Yr&&"function"==typeof Yr.markRenderStarted&&Yr.markRenderStarted(e)}function sa(){null!==Yr&&"function"==typeof Yr.markRenderStopped&&Yr.markRenderStopped()}function ua(e,t){null!==Yr&&"function"==typeof Yr.markStateUpdateScheduled&&Yr.markStateUpdateScheduled(e,t)}var ca=16,da=Math.clz32?Math.clz32:function(e){var t=e>>>0;if(0===t)return 32;return 31-(fa(t)/pa|0)|0},fa=Math.log,pa=Math.LN2;var ha=31,va=16,ma=4194240,ga=1024,ya=2048,ba=4096,wa=8192,ka=16384,Sa=32768,xa=65536,Ea=131072,Ta=262144,_a=524288,Ca=1048576,Da=2097152,Ra=130023424,Pa=4194304,Na=8388608,Ia=16777216,Ma=33554432,Oa=67108864,La=Pa,za=134217728,Aa=268435455,Fa=268435456,Ha=536870912,ja=1073741824;function Ua(e){return 1&e?"Sync":2&e?"InputContinuousHydration":4&e?"InputContinuous":8&e?"DefaultHydration":e&va?"Default":32&e?"TransitionHydration":e&ma?"Transition":e&Ra?"Retry":e&za?"SelectiveHydration":e&Fa?"IdleHydration":e&Ha?"Idle":e&ja?"Offscreen":void 0}var Va=-1,Wa=64,Ba=Pa;function $a(e){switch(eo(e)){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case va:return va;case 32:return 32;case 64:case 128:case 256:case 512:case ga:case ya:case ba:case wa:case ka:case Sa:case xa:case Ea:case Ta:case _a:case Ca:case Da:return e&ma;case Pa:case Na:case Ia:case Ma:case Oa:return e&Ra;case za:return za;case Fa:return Fa;case Ha:return Ha;case ja:return ja;default:return o("Should have found matching lanes. This is a bug in React."),e}}function qa(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,o=e.pingedLanes,i=n&Aa;if(0!==i){var l=i&~a;if(0!==l)r=$a(l);else{var s=i&o;0!==s&&(r=$a(s))}}else{var u=n&~a;0!==u?r=$a(u):0!==o&&(r=$a(o))}if(0===r)return 0;if(0!==t&&t!==r&&0==(t&a)){var c=eo(r),d=eo(t);if(c>=d||c===va&&0!=(d&ma))return t}0!=(4&r)&&(r|=n&va);var f=e.entangledLanes;if(0!==f)for(var p=e.entanglements,h=r&f;h>0;){var v=no(h),m=1<<v;r|=p[v],h&=~m}return r}function Ya(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case va:case 32:case 64:case 128:case 256:case 512:case ga:case ya:case ba:case wa:case ka:case Sa:case xa:case Ea:case Ta:case _a:case Ca:case Da:return t+5e3;case Pa:case Na:case Ia:case Ma:case Oa:case za:case Fa:case Ha:case ja:return Va;default:return o("Should have found matching lanes. This is a bug in React."),Va}}function Ga(e){var t=-1073741825&e.pendingLanes;return 0!==t?t:t&ja?ja:0}function Ka(e){return 0!=(e&Aa)}function Qa(e){return(e&Ra)===e}function Xa(e,t){return 0!=(30&t)}function Za(e){return 0!=(e&ma)}function Ja(){var e=Wa;return 0==((Wa<<=1)&ma)&&(Wa=64),e}function eo(e){return e&-e}function to(e){return eo(e)}function no(e){return 31-da(e)}function ro(e){return no(e)}function ao(e,t){return 0!=(e&t)}function oo(e,t){return(e&t)===t}function io(e,t){return e|t}function lo(e,t){return e&~t}function so(e,t){return e&t}function uo(e){for(var t=[],n=0;n<ha;n++)t.push(e);return t}function co(e,t,n){e.pendingLanes|=t,t!==Ha&&(e.suspendedLanes=0,e.pingedLanes=0),e.eventTimes[ro(t)]=n}function fo(e,t,n){e.pingedLanes|=e.suspendedLanes&t}function po(e,t){for(var n=e.entangledLanes|=t,r=e.entanglements,a=n;a;){var o=no(a),i=1<<o;i&t|r[o]&t&&(r[o]|=t),a&=~i}}function ho(e,t,n){if(Kr)for(var r=e.pendingUpdatersLaneMap;n>0;){var a=ro(n),o=1<<a;r[a].add(t),n&=~o}}function vo(e,t){if(Kr)for(var n=e.pendingUpdatersLaneMap,r=e.memoizedUpdaters;t>0;){var a=ro(t),o=1<<a,i=n[a];i.size>0&&(i.forEach((function(e){var t=e.alternate;null!==t&&r.has(t)||r.add(e)})),i.clear()),t&=~o}}var mo,go,yo,bo,wo,ko=1,So=4,xo=va,Eo=Ha,To=0;function _o(){return To}function Co(e){To=e}function Do(e,t){return 0!==e&&e<t}function Ro(e){var t=eo(e);return Do(ko,t)?Do(So,t)?Ka(t)?xo:Eo:So:ko}function Po(e){return e.current.memoizedState.isDehydrated}function No(e){mo(e)}var Io=!1,Mo=[],Oo=null,Lo=null,zo=null,Ao=new Map,Fo=new Map,Ho=[],jo=["mousedown","mouseup","touchcancel","touchend","touchstart","auxclick","dblclick","pointercancel","pointerdown","pointerup","dragend","dragstart","drop","compositionend","compositionstart","keydown","keypress","keyup","input","textInput","copy","cut","paste","click","change","contextmenu","reset","submit"];function Uo(e,t){switch(e){case"focusin":case"focusout":Oo=null;break;case"dragenter":case"dragleave":Lo=null;break;case"mouseover":case"mouseout":zo=null;break;case"pointerover":case"pointerout":var n=t.pointerId;Ao.delete(n);break;case"gotpointercapture":case"lostpointercapture":var r=t.pointerId;Fo.delete(r)}}function Vo(e,t,n,r,a,o){if(null===e||e.nativeEvent!==o){var i=function(e,t,n,r,a){return{blockedOn:e,domEventName:t,eventSystemFlags:n,nativeEvent:a,targetContainers:[r]}}(t,n,r,a,o);if(null!==t){var l=Nu(t);null!==l&&go(l)}return i}e.eventSystemFlags|=r;var s=e.targetContainers;return null!==a&&-1===s.indexOf(a)&&s.push(a),e}function Wo(e){var t=Pu(e.target);if(null!==t){var n=xr(t);if(null!==n){var r=n.tag;if(r===d){var a=Er(n);if(null!==a)return e.blockedOn=a,void wo(e.priority,(function(){yo(n)}))}else if(3===r){if(Po(n.stateNode))return void(e.blockedOn=Tr(n))}}}e.blockedOn=null}function Bo(e){if(null!==e.blockedOn)return!1;for(var t,n=e.targetContainers;n.length>0;){var r=n[0],a=ni(e.domEventName,e.eventSystemFlags,r,e.nativeEvent);if(null!==a){var i=Nu(a);return null!==i&&go(i),e.blockedOn=a,!1}var l=e.nativeEvent,s=new l.constructor(l.type,l);t=s,null!==_n&&o("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),_n=t,l.target.dispatchEvent(s),null===_n&&o("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),_n=null,n.shift()}return!0}function $o(e,t,n){Bo(e)&&n.delete(t)}function qo(){Io=!1,null!==Oo&&Bo(Oo)&&(Oo=null),null!==Lo&&Bo(Lo)&&(Lo=null),null!==zo&&Bo(zo)&&(zo=null),Ao.forEach($o),Fo.forEach($o)}function Yo(e,n){e.blockedOn===n&&(e.blockedOn=null,Io||(Io=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,qo)))}function Go(e){if(Mo.length>0){Yo(Mo[0],e);for(var t=1;t<Mo.length;t++){var n=Mo[t];n.blockedOn===e&&(n.blockedOn=null)}}null!==Oo&&Yo(Oo,e),null!==Lo&&Yo(Lo,e),null!==zo&&Yo(zo,e);var r=function(t){return Yo(t,e)};Ao.forEach(r),Fo.forEach(r);for(var a=0;a<Ho.length;a++){var o=Ho[a];o.blockedOn===e&&(o.blockedOn=null)}for(;Ho.length>0;){var i=Ho[0];if(null!==i.blockedOn)break;Wo(i),null===i.blockedOn&&Ho.shift()}}var Ko=n.ReactCurrentBatchConfig,Qo=!0;function Xo(e){Qo=!!e}function Zo(e,t,n,r){var a=_o(),o=Ko.transition;Ko.transition=null;try{Co(ko),ei(e,t,n,r)}finally{Co(a),Ko.transition=o}}function Jo(e,t,n,r){var a=_o(),o=Ko.transition;Ko.transition=null;try{Co(So),ei(e,t,n,r)}finally{Co(a),Ko.transition=o}}function ei(e,t,n,r){Qo&&function(e,t,n,r){var a=ni(e,t,n,r);if(null===a)return is(e,t,r,ti,n),void Uo(e,r);if(function(e,t,n,r,a){switch(t){case"focusin":return Oo=Vo(Oo,e,t,n,r,a),!0;case"dragenter":return Lo=Vo(Lo,e,t,n,r,a),!0;case"mouseover":return zo=Vo(zo,e,t,n,r,a),!0;case"pointerover":var o=a,i=o.pointerId;return Ao.set(i,Vo(Ao.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":var l=a,s=l.pointerId;return Fo.set(s,Vo(Fo.get(s)||null,e,t,n,r,l)),!0}return!1}(a,e,t,n,r))return void r.stopPropagation();if(Uo(e,r),4&t&&function(e){return jo.indexOf(e)>-1}(e)){for(;null!==a;){var o=Nu(a);null!==o&&No(o);var i=ni(e,t,n,r);if(null===i&&is(e,t,r,ti,n),i===a)break;a=i}return void(null!==a&&r.stopPropagation())}is(e,t,r,null,n)}(e,t,n,r)}var ti=null;function ni(e,t,n,r){ti=null;var a=Pu(Cn(r));if(null!==a){var o=xr(a);if(null===o)a=null;else{var i=o.tag;if(i===d){var l=Er(o);if(null!==l)return l;a=null}else if(3===i){if(Po(o.stateNode))return Tr(o);a=null}else o!==a&&(a=null)}}return ti=a,null}function ri(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return ko;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return So;case"message":switch(Ar()){case Fr:return ko;case Hr:return So;case jr:case Ur:return xo;case Vr:return Eo;default:return xo}default:return xo}}var ai=null,oi=null,ii=null;function li(){if(ii)return ii;var e,t,n=oi,r=n.length,a=si(),o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);var l=t>1?1-t:void 0;return ii=a.slice(e,l)}function si(){return"value"in ai?ai.value:ai.textContent}function ui(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,10===t&&(t=13),t>=32||13===t?t:0}function ci(){return!0}function di(){return!1}function fi(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)if(e.hasOwnProperty(i)){var l=e[i];this[i]=l?l(a):a[i]}var s=null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue;return this.isDefaultPrevented=s?ci:di,this.isPropagationStopped=di,this}return Ee(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ci)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ci)},persist:function(){},isPersistent:ci}),t}var pi,hi,vi,mi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gi=fi(mi),yi=Ee({},mi,{view:0,detail:0}),bi=fi(yi);var wi=Ee({},yi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ii,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(function(e){e!==vi&&(vi&&"mousemove"===e.type?(pi=e.screenX-vi.screenX,hi=e.screenY-vi.screenY):(pi=0,hi=0),vi=e)}(e),pi)},movementY:function(e){return"movementY"in e?e.movementY:hi}}),ki=fi(wi),Si=fi(Ee({},wi,{dataTransfer:0})),xi=fi(Ee({},yi,{relatedTarget:0})),Ei=fi(Ee({},mi,{animationName:0,elapsedTime:0,pseudoElement:0})),Ti=fi(Ee({},mi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),_i=fi(Ee({},mi,{data:0})),Ci=_i,Di={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ri={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};var Pi={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ni(e){var t=this.nativeEvent;if(t.getModifierState)return t.getModifierState(e);var n=Pi[e];return!!n&&!!t[n]}function Ii(e){return Ni}var Mi=fi(Ee({},yi,{key:function(e){if(e.key){var t=Di[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=ui(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?Ri[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ii,charCode:function(e){return"keypress"===e.type?ui(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ui(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Oi=fi(Ee({},wi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Li=fi(Ee({},yi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ii})),zi=fi(Ee({},mi,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ai=fi(Ee({},wi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Fi=[9,13,27,32],Hi=_&&"CompositionEvent"in window,ji=null;_&&"documentMode"in document&&(ji=document.documentMode);var Ui=_&&"TextEvent"in window&&!ji,Vi=_&&(!Hi||ji&&ji>8&&ji<=11),Wi=String.fromCharCode(32);var Bi=!1;function $i(e,t){switch(e){case"keyup":return-1!==Fi.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qi(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function Yi(e){return"ko"===e.locale}var Gi=!1;function Ki(e,t,n,r,a){var o,i;if(Hi?o=function(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}(t):Gi?$i(t,r)&&(o="onCompositionEnd"):function(e,t){return"keydown"===e&&229===t.keyCode}(t,r)&&(o="onCompositionStart"),!o)return null;Vi&&!Yi(r)&&(Gi||"onCompositionStart"!==o?"onCompositionEnd"===o&&Gi&&(i=li()):Gi=function(e){return ai=e,oi=si(),!0}(a));var l=ss(n,o);if(l.length>0){var s=new _i(o,t,null,r,a);if(e.push({event:s,listeners:l}),i)s.data=i;else{var u=qi(r);null!==u&&(s.data=u)}}}function Qi(e,t){if(Gi){if("compositionend"===e||!Hi&&$i(e,t)){var n=li();return ai=null,oi=null,ii=null,Gi=!1,n}return null}switch(e){case"paste":default:return null;case"keypress":if(!function(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}(t)){if(t.char&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Vi&&!Yi(t)?null:t.data}}function Xi(e,t,n,r,a){var o;if(!(o=Ui?function(e,t){switch(e){case"compositionend":return qi(t);case"keypress":return 32!==t.which?null:(Bi=!0,Wi);case"textInput":var n=t.data;return n===Wi&&Bi?null:n;default:return null}}(t,r):Qi(t,r)))return null;var i=ss(n,"onBeforeInput");if(i.length>0){var l=new Ci("onBeforeInput","beforeinput",null,r,a);e.push({event:l,listeners:i}),l.data=o}}var Zi={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ji(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Zi[e.type]:"textarea"===t}
|
|
37
|
+
*/function requireReactDom_development(){return hasRequiredReactDom_development||(hasRequiredReactDom_development=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=react.exports,t=requireScheduler(),n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,r=!1;function a(e){if(!r){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];i("warn",e,n)}}function o(e){if(!r){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];i("error",e,n)}}function i(e,t,r){var a=n.ReactDebugCurrentFrame.getStackAddendum();""!==a&&(t+="%s",r=r.concat([a]));var o=r.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}var l=10,s=11,u=12,c=13,d=14,f=15,p=17,h=18,m=19,v=21,g=22,y=23,b=!1,w=new Set,S={},E={};function _(e,t){k(e,t),k(e+"Capture",t)}function k(e,t){S[e]&&o("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),S[e]=t;var n=e.toLowerCase();E[n]=e,"onDoubleClick"===e&&(E.ondblclick=e);for(var r=0;r<t.length;r++)w.add(t[r])}var T=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),x=Object.prototype.hasOwnProperty;function C(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function D(e){try{return R(e),!1}catch(e){return!0}}function R(e){return""+e}function N(e,t){if(D(e))return o("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,C(e)),R(e)}function P(e){if(D(e))return o("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",C(e)),R(e)}function I(e){if(D(e))return o("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",C(e)),R(e)}var M=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",O=M+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",A=new RegExp("^["+M+"]["+O+"]*$"),L={},F={};function z(e){return!!x.call(F,e)||!x.call(L,e)&&(A.test(e)?(F[e]=!0,!0):(L[e]=!0,o("Invalid attribute name: `%s`",e),!1))}function H(e,t,n){return null!==t?0===t.type:!n&&(e.length>2&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1]))}function U(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":if(r)return!1;if(null!==n)return!n.acceptsBooleans;var a=e.toLowerCase().slice(0,5);return"data-"!==a&&"aria-"!==a;default:return!1}}function j(e,t,n,r){if(null==t)return!0;if(U(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||t<1}return!1}function V(e){return W.hasOwnProperty(e)?W[e]:null}function $(e,t,n,r,a,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var W={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){W[e]=new $(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0],n=e[1];W[t]=new $(t,1,!1,n,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){W[e]=new $(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){W[e]=new $(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((function(e){W[e]=new $(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){W[e]=new $(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){W[e]=new $(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){W[e]=new $(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){W[e]=new $(e,5,!1,e.toLowerCase(),null,!1,!1)}));var B=/[\-\:]([a-z])/g,q=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((function(e){var t=e.replace(B,q);W[t]=new $(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(B,q);W[t]=new $(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(B,q);W[t]=new $(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){W[e]=new $(e,1,!1,e.toLowerCase(),null,!1,!1)}));W.xlinkHref=new $("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){W[e]=new $(e,1,!1,e.toLowerCase(),null,!0,!0)}));var Y=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,G=!1;function K(e){!G&&Y.test(e)&&(G=!0,o("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}function Q(e,t,n,r){if(r.mustUseProperty)return e[r.propertyName];N(n,t),r.sanitizeURL&&K(""+n);var a=r.attributeName,o=null;if(4===r.type){if(e.hasAttribute(a)){var i=e.getAttribute(a);return""===i||(j(t,n,r,!1)?i:i===""+n?n:i)}}else if(e.hasAttribute(a)){if(j(t,n,r,!1))return e.getAttribute(a);if(3===r.type)return n;o=e.getAttribute(a)}return j(t,n,r,!1)?null===o?n:o:o===""+n?n:o}function X(e,t,n,r){if(z(t)){if(!e.hasAttribute(t))return void 0===n?void 0:null;var a=e.getAttribute(t);return N(n,t),a===""+n?n:a}}function Z(e,t,n,r){var a=V(t);if(!H(t,a,r))if(j(t,n,a,r)&&(n=null),r||null===a){if(z(t)){var o=t;null===n?e.removeAttribute(o):(N(n,t),e.setAttribute(o,""+n))}}else if(a.mustUseProperty){var i=a.propertyName;if(null===n){var l=a.type;e[i]=3!==l&&""}else e[i]=n}else{var s=a.attributeName,u=a.attributeNamespace;if(null===n)e.removeAttribute(s);else{var c,d=a.type;3===d||4===d&&!0===n?c="":(N(n,s),c=""+n,a.sanitizeURL&&K(c.toString())),u?e.setAttributeNS(u,s,c):e.setAttribute(s,c)}}}var J=Symbol.for("react.element"),ee=Symbol.for("react.portal"),te=Symbol.for("react.fragment"),ne=Symbol.for("react.strict_mode"),re=Symbol.for("react.profiler"),ae=Symbol.for("react.provider"),oe=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),le=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),ue=Symbol.for("react.memo"),ce=Symbol.for("react.lazy"),de=(Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode"),Symbol.for("react.offscreen")),fe=(Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker"),Symbol.iterator);function pe(e){if(null===e||"object"!=typeof e)return null;var t=fe&&e[fe]||e["@@iterator"];return"function"==typeof t?t:null}var he,me,ve,ge,ye,be,we,Se=Object.assign,Ee=0;function _e(){}_e.__reactDisabledLog=!0;var ke,Te=n.ReactCurrentDispatcher;function xe(e,t,n){if(void 0===ke)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);ke=r&&r[1]||""}return"\n"+ke+e}var Ce,De=!1,Re="function"==typeof WeakMap?WeakMap:Map;function Ne(e,t){if(!e||De)return"";var n,r=Ce.get(e);if(void 0!==r)return r;De=!0;var a,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,a=Te.current,Te.current=null,function(){if(0===Ee){he=console.log,me=console.info,ve=console.warn,ge=console.error,ye=console.group,be=console.groupCollapsed,we=console.groupEnd;var e={configurable:!0,enumerable:!0,value:_e,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Ee++}();try{if(t){var l=function(){throw Error()};if(Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(l,[])}catch(e){n=e}Reflect.construct(e,[],l)}else{try{l.call()}catch(e){n=e}e.call(l.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),u=n.stack.split("\n"),c=s.length-1,d=u.length-1;c>=1&&d>=0&&s[c]!==u[d];)d--;for(;c>=1&&d>=0;c--,d--)if(s[c]!==u[d]){if(1!==c||1!==d)do{if(c--,--d<0||s[c]!==u[d]){var f="\n"+s[c].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),"function"==typeof e&&Ce.set(e,f),f}}while(c>=1&&d>=0);break}}}finally{De=!1,Te.current=a,function(){if(0==--Ee){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Se({},e,{value:he}),info:Se({},e,{value:me}),warn:Se({},e,{value:ve}),error:Se({},e,{value:ge}),group:Se({},e,{value:ye}),groupCollapsed:Se({},e,{value:be}),groupEnd:Se({},e,{value:we})})}Ee<0&&o("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=e?e.displayName||e.name:"",h=p?xe(p):"";return"function"==typeof e&&Ce.set(e,h),h}function Pe(e,t,n){return Ne(e,!1)}function Ie(e,t,n){if(null==e)return"";if("function"==typeof e)return Ne(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return xe(e);switch(e){case le:return xe("Suspense");case se:return xe("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case ie:return Pe(e.render);case ue:return Ie(e.type,t,n);case ce:var r=e,a=r._payload,o=r._init;try{return Ie(o(a),t,n)}catch(e){}}return""}function Me(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case 5:return xe(e.type);case 16:return xe("Lazy");case c:return xe("Suspense");case m:return xe("SuspenseList");case 0:case 2:case f:return Pe(e.type);case s:return Pe(e.type.render);case 1:return Ne(e.type,!0);default:return""}}function Oe(e){try{var t="",n=e;do{t+=Me(n),n=n.return}while(n);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function Ae(e){return e.displayName||"Context"}function Le(e){if(null==e)return null;if("number"==typeof e.tag&&o("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case te:return"Fragment";case ee:return"Portal";case re:return"Profiler";case ne:return"StrictMode";case le:return"Suspense";case se:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case oe:return Ae(e)+".Consumer";case ae:return Ae(e._context)+".Provider";case ie:return function(e,t,n){var r=e.displayName;if(r)return r;var a=t.displayName||t.name||"";return""!==a?n+"("+a+")":n}(e,e.render,"ForwardRef");case ue:var t=e.displayName||null;return null!==t?t:Le(e.type)||"Memo";case ce:var n=e,r=n._payload,a=n._init;try{return Le(a(r))}catch(e){return null}}return null}function Fe(e){return e.displayName||"Context"}function ze(e){var t,n,r,a,o=e.tag,i=e.type;switch(o){case 24:return"Cache";case 9:return Fe(i)+".Consumer";case l:return Fe(i._context)+".Provider";case 18:return"DehydratedFragment";case s:return t=i,n=i.render,r="ForwardRef",a=n.displayName||n.name||"",t.displayName||(""!==a?r+"("+a+")":r);case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Le(i);case 8:return i===ne?"StrictMode":"Mode";case g:return"Offscreen";case u:return"Profiler";case v:return"Scope";case c:return"Suspense";case m:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case p:case 2:case d:case f:if("function"==typeof i)return i.displayName||i.name||null;if("string"==typeof i)return i}return null}Ce=new Re;var He=n.ReactDebugCurrentFrame,Ue=null,je=!1;function Ve(){if(null===Ue)return null;var e=Ue._debugOwner;return null!=e?ze(e):null}function $e(){return null===Ue?"":Oe(Ue)}function We(){He.getCurrentStack=null,Ue=null,je=!1}function Be(e){He.getCurrentStack=null===e?null:$e,Ue=e,je=!1}function qe(e){je=e}function Ye(e){return""+e}function Ge(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return I(e),e;default:return""}}var Ke={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Qe(e,t){Ke[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||null==t.value||o("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||null==t.checked||o("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Xe(e){var t=e.type,n=e.nodeName;return n&&"input"===n.toLowerCase()&&("checkbox"===t||"radio"===t)}function Ze(e){return e._valueTracker}function Je(e){Ze(e)||(e._valueTracker=function(e){var t=Xe(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);I(e[t]);var r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,o=n.set;Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){I(e),r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable});var i={getValue:function(){return r},setValue:function(e){I(e),r=""+e},stopTracking:function(){!function(e){e._valueTracker=null}(e),delete e[t]}};return i}}(e))}function et(e){if(!e)return!1;var t=Ze(e);if(!t)return!0;var n=t.getValue(),r=function(e){var t="";return e?t=Xe(e)?e.checked?"true":"false":e.value:t}(e);return r!==n&&(t.setValue(r),!0)}function tt(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var nt=!1,rt=!1,at=!1,ot=!1;function it(e){return"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}function lt(e,t){var n=e,r=t.checked;return Se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:n._wrapperState.initialChecked})}function st(e,t){Qe(0,t),void 0===t.checked||void 0===t.defaultChecked||rt||(o("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",Ve()||"A component",t.type),rt=!0),void 0===t.value||void 0===t.defaultValue||nt||(o("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",Ve()||"A component",t.type),nt=!0);var n=e,r=null==t.defaultValue?"":t.defaultValue;n._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:Ge(null!=t.value?t.value:r),controlled:it(t)}}function ut(e,t){var n=e,r=t.checked;null!=r&&Z(n,"checked",r,!1)}function ct(e,t){var n=e,r=it(t);n._wrapperState.controlled||!r||ot||(o("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),ot=!0),!n._wrapperState.controlled||r||at||(o("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),at=!0),ut(e,t);var a=Ge(t.value),i=t.type;if(null!=a)"number"===i?(0===a&&""===n.value||n.value!=a)&&(n.value=Ye(a)):n.value!==Ye(a)&&(n.value=Ye(a));else if("submit"===i||"reset"===i)return void n.removeAttribute("value");t.hasOwnProperty("value")?pt(n,t.type,a):t.hasOwnProperty("defaultValue")&&pt(n,t.type,Ge(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(n.defaultChecked=!!t.defaultChecked)}function dt(e,t,n){var r=e;if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var a=t.type;if(("submit"===a||"reset"===a)&&(void 0===t.value||null===t.value))return;var o=Ye(r._wrapperState.initialValue);n||o!==r.value&&(r.value=o),r.defaultValue=o}var i=r.name;""!==i&&(r.name=""),r.defaultChecked=!r.defaultChecked,r.defaultChecked=!!r._wrapperState.initialChecked,""!==i&&(r.name=i)}function ft(e,t){var n=e;ct(n,t),function(e,t){var n=t.name;if("radio"===t.type&&null!=n){for(var r=e;r.parentNode;)r=r.parentNode;N(n,"name");for(var a=r.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),o=0;o<a.length;o++){var i=a[o];if(i!==e&&i.form===e.form){var l=Nu(i);if(!l)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");et(i),ct(i,l)}}}}(n,t)}function pt(e,t,n){"number"===t&&tt(e.ownerDocument)===e||(null==n?e.defaultValue=Ye(e._wrapperState.initialValue):e.defaultValue!==Ye(n)&&(e.defaultValue=Ye(n)))}var ht=!1,mt=!1,vt=!1;function gt(t,n){null==n.value&&("object"==typeof n.children&&null!==n.children?e.Children.forEach(n.children,(function(e){null!=e&&"string"!=typeof e&&"number"!=typeof e&&(mt||(mt=!0,o("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))})):null!=n.dangerouslySetInnerHTML&&(vt||(vt=!0,o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),null==n.selected||ht||(o("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),ht=!0)}var yt,bt=Array.isArray;function wt(e){return bt(e)}function St(){var e=Ve();return e?"\n\nCheck the render method of `"+e+"`.":""}yt=!1;var Et=["value","defaultValue"];function _t(e,t,n,r){var a=e.options;if(t){for(var o=n,i={},l=0;l<o.length;l++)i["$"+o[l]]=!0;for(var s=0;s<a.length;s++){var u=i.hasOwnProperty("$"+a[s].value);a[s].selected!==u&&(a[s].selected=u),u&&r&&(a[s].defaultSelected=!0)}}else{for(var c=Ye(Ge(n)),d=null,f=0;f<a.length;f++){if(a[f].value===c)return a[f].selected=!0,void(r&&(a[f].defaultSelected=!0));null!==d||a[f].disabled||(d=a[f])}null!==d&&(d.selected=!0)}}function kt(e,t){return Se({},t,{value:void 0})}function Tt(e,t){var n=e;!function(e){Qe(0,e);for(var t=0;t<Et.length;t++){var n=Et[t];if(null!=e[n]){var r=wt(e[n]);e.multiple&&!r?o("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,St()):!e.multiple&&r&&o("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,St())}}}(t),n._wrapperState={wasMultiple:!!t.multiple},void 0===t.value||void 0===t.defaultValue||yt||(o("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),yt=!0)}var xt=!1;function Ct(e,t){var n=e;if(null!=t.dangerouslySetInnerHTML)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");return Se({},t,{value:void 0,defaultValue:void 0,children:Ye(n._wrapperState.initialValue)})}function Dt(e,t){var n=e;Qe(0,t),void 0===t.value||void 0===t.defaultValue||xt||(o("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",Ve()||"A component"),xt=!0);var r=t.value;if(null==r){var a=t.children,i=t.defaultValue;if(null!=a){if(o("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),null!=i)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(wt(a)){if(a.length>1)throw new Error("<textarea> can only have at most one child.");a=a[0]}i=a}null==i&&(i=""),r=i}n._wrapperState={initialValue:Ge(r)}}function Rt(e,t){var n=e,r=Ge(t.value),a=Ge(t.defaultValue);if(null!=r){var o=Ye(r);o!==n.value&&(n.value=o),null==t.defaultValue&&n.defaultValue!==o&&(n.defaultValue=o)}null!=a&&(n.defaultValue=Ye(a))}function Nt(e,t){var n=e,r=n.textContent;r===n._wrapperState.initialValue&&""!==r&&null!==r&&(n.value=r)}var Pt="http://www.w3.org/1999/xhtml",It="http://www.w3.org/2000/svg";function Mt(e){switch(e){case"svg":return It;case"math":return"http://www.w3.org/1998/Math/MathML";default:return Pt}}function Ot(e,t){return null==e||e===Pt?Mt(t):e===It&&"foreignObject"===t?Pt:e}var At,Lt,Ft=(Lt=function(e,t){if(e.namespaceURI!==It||"innerHTML"in e)e.innerHTML=t;else{(At=At||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(var n=At.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return Lt(e,t,n,r)}))}:Lt),zt=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t},Ht={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},Ut={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};var jt=["Webkit","ms","Moz","O"];function Vt(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Ut.hasOwnProperty(e)&&Ut[e]?(function(e,t){if(D(e))o("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,C(e)),R(e)}(t,e),(""+t).trim()):t+"px"}Object.keys(Ut).forEach((function(e){jt.forEach((function(t){Ut[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(t,e)]=Ut[e]}))}));var $t=/([A-Z])/g,Wt=/^ms-/;var Bt=/^(?:webkit|moz|o)[A-Z]/,qt=/^-ms-/,Yt=/-(.)/g,Gt=/;\s*$/,Kt={},Qt={},Xt=!1,Zt=!1,Jt=function(e){Kt.hasOwnProperty(e)&&Kt[e]||(Kt[e]=!0,o("Unsupported style property %s. Did you mean %s?",e,e.replace(qt,"ms-").replace(Yt,(function(e,t){return t.toUpperCase()}))))},en=function(e,t){e.indexOf("-")>-1?Jt(e):Bt.test(e)?function(e){Kt.hasOwnProperty(e)&&Kt[e]||(Kt[e]=!0,o("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))}(e):Gt.test(t)&&function(e,t){Qt.hasOwnProperty(t)&&Qt[t]||(Qt[t]=!0,o('Style property values shouldn\'t contain a semicolon. Try "%s: %s" instead.',e,t.replace(Gt,"")))}(e,t),"number"==typeof t&&(isNaN(t)?function(e,t){Xt||(Xt=!0,o("`NaN` is an invalid value for the `%s` css style property.",e))}(e):isFinite(t)||function(e,t){Zt||(Zt=!0,o("`Infinity` is an invalid value for the `%s` css style property.",e))}(e))};function tn(e){var t="",n="";for(var r in e)if(e.hasOwnProperty(r)){var a=e[r];if(null!=a){var o=0===r.indexOf("--");t+=n+(o?r:r.replace($t,"-$1").toLowerCase().replace(Wt,"-ms-"))+":",t+=Vt(r,a,o),n=";"}}return t||null}function nn(e,t){var n=e.style;for(var r in t)if(t.hasOwnProperty(r)){var a=0===r.indexOf("--");a||en(r,t[r]);var o=Vt(r,t[r],a);"float"===r&&(r="cssFloat"),a?n.setProperty(r,o):n[r]=o}}function rn(e){var t={};for(var n in e)for(var r=Ht[n]||[n],a=0;a<r.length;a++)t[r[a]]=n;return t}var an=Se({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function on(e,t){if(t){if(an[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw new Error(e+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!t.suppressContentEditableWarning&&t.contentEditable&&null!=t.children&&o("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),null!=t.style&&"object"!=typeof t.style)throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function ln(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sn={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},un={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},cn={},dn=new RegExp("^(aria)-["+O+"]*$"),fn=new RegExp("^(aria)[A-Z]["+O+"]*$");function pn(e,t){if(x.call(cn,t)&&cn[t])return!0;if(fn.test(t)){var n="aria-"+t.slice(4).toLowerCase(),r=un.hasOwnProperty(n)?n:null;if(null==r)return o("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),cn[t]=!0,!0;if(t!==r)return o("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,r),cn[t]=!0,!0}if(dn.test(t)){var a=t.toLowerCase(),i=un.hasOwnProperty(a)?a:null;if(null==i)return cn[t]=!0,!1;if(t!==i)return o("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,i),cn[t]=!0,!0}return!0}function hn(e,t){ln(e,t)||function(e,t){var n=[];for(var r in t)pn(0,r)||n.push(r);var a=n.map((function(e){return"`"+e+"`"})).join(", ");1===n.length?o("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",a,e):n.length>1&&o("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",a,e)}(e,t)}var mn=!1;var vn,gn={},yn=/^on./,bn=/^on[^A-Z]/,wn=new RegExp("^(aria)-["+O+"]*$"),Sn=new RegExp("^(aria)[A-Z]["+O+"]*$");vn=function(e,t,n,r){if(x.call(gn,t)&&gn[t])return!0;var a=t.toLowerCase();if("onfocusin"===a||"onfocusout"===a)return o("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),gn[t]=!0,!0;if(null!=r){var i=r.registrationNameDependencies,l=r.possibleRegistrationNames;if(i.hasOwnProperty(t))return!0;var s=l.hasOwnProperty(a)?l[a]:null;if(null!=s)return o("Invalid event handler property `%s`. Did you mean `%s`?",t,s),gn[t]=!0,!0;if(yn.test(t))return o("Unknown event handler property `%s`. It will be ignored.",t),gn[t]=!0,!0}else if(yn.test(t))return bn.test(t)&&o("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),gn[t]=!0,!0;if(wn.test(t)||Sn.test(t))return!0;if("innerhtml"===a)return o("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),gn[t]=!0,!0;if("aria"===a)return o("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),gn[t]=!0,!0;if("is"===a&&null!=n&&"string"!=typeof n)return o("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),gn[t]=!0,!0;if("number"==typeof n&&isNaN(n))return o("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),gn[t]=!0,!0;var u=V(t),c=null!==u&&0===u.type;if(sn.hasOwnProperty(a)){var d=sn[a];if(d!==t)return o("Invalid DOM property `%s`. Did you mean `%s`?",t,d),gn[t]=!0,!0}else if(!c&&t!==a)return o("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,a),gn[t]=!0,!0;return"boolean"==typeof n&&U(t,n,u,!1)?(n?o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',n,t,t,n,t,t,t),gn[t]=!0,!0):!!c||(U(t,n,u,!1)?(gn[t]=!0,!1):("false"!==n&&"true"!==n||null===u||3!==u.type||(o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,"false"===n?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,n),gn[t]=!0),!0))};function En(e,t,n){ln(e,t)||function(e,t,n){var r=[];for(var a in t)vn(0,a,t[a],n)||r.push(a);var i=r.map((function(e){return"`"+e+"`"})).join(", ");1===r.length?o("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",i,e):r.length>1&&o("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",i,e)}(e,t,n)}var _n=null;function kn(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}var Tn=null,xn=null,Cn=null;function Dn(e){var t=Du(e);if(t){if("function"!=typeof Tn)throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var n=t.stateNode;if(n){var r=Nu(n);Tn(t.stateNode,t.type,r)}}}function Rn(e){xn?Cn?Cn.push(e):Cn=[e]:xn=e}function Nn(){if(xn){var e=xn,t=Cn;if(xn=null,Cn=null,Dn(e),t)for(var n=0;n<t.length;n++)Dn(t[n])}}var Pn=function(e,t){return e(t)},In=function(){},Mn=!1;function On(){(null!==xn||null!==Cn)&&(In(),Nn())}function An(e,t,n){if(Mn)return e(t,n);Mn=!0;try{return Pn(e,t,n)}finally{Mn=!1,On()}}function Ln(e,t){var n=e.stateNode;if(null===n)return null;var r=Nu(n);if(null===r)return null;var a=r[t];if(function(e,t,n){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!(!n.disabled||(r=t,"button"!==r&&"input"!==r&&"select"!==r&&"textarea"!==r));default:return!1}var r}(t,e.type,r))return null;if(a&&"function"!=typeof a)throw new Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof a+"` type.");return a}var Fn=!1;if(T)try{var zn={};Object.defineProperty(zn,"passive",{get:function(){Fn=!0}}),window.addEventListener("test",zn,zn),window.removeEventListener("test",zn,zn)}catch(e){Fn=!1}function Hn(e,t,n,r,a,o,i,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Un=Hn;if("undefined"!=typeof window&&"function"==typeof window.dispatchEvent&&"undefined"!=typeof document&&"function"==typeof document.createEvent){var jn=document.createElement("react");Un=function(e,t,n,r,a,o,i,l,s){if("undefined"==typeof document||null===document)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var u=document.createEvent("Event"),c=!1,d=!0,f=window.event,p=Object.getOwnPropertyDescriptor(window,"event");function h(){jn.removeEventListener(S,g,!1),void 0!==window.event&&window.hasOwnProperty("event")&&(window.event=f)}var m,v=Array.prototype.slice.call(arguments,3);function g(){c=!0,h(),t.apply(n,v),d=!1}var y=!1,b=!1;function w(e){if(m=e.error,y=!0,null===m&&0===e.colno&&0===e.lineno&&(b=!0),e.defaultPrevented&&null!=m&&"object"==typeof m)try{m._suppressLogging=!0}catch(e){}}var S="react-"+(e||"invokeguardedcallback");if(window.addEventListener("error",w),jn.addEventListener(S,g,!1),u.initEvent(S,!1,!1),jn.dispatchEvent(u),p&&Object.defineProperty(window,"event",p),c&&d&&(y?b&&(m=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):m=new Error("An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the \"Pause on exceptions\" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue."),this.onError(m)),window.removeEventListener("error",w),!c)return h(),Hn.apply(this,arguments)}}var Vn=Un,$n=!1,Wn=null,Bn=!1,qn=null,Yn={onError:function(e){$n=!0,Wn=e}};function Gn(e,t,n,r,a,o,i,l,s){$n=!1,Wn=null,Vn.apply(Yn,arguments)}function Kn(){if($n){var e=Wn;return $n=!1,Wn=null,e}throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function Qn(e){return e._reactInternals}var Xn=16,Zn=128,Jn=256,er=512,tr=1024,nr=2048,rr=4096,ar=8192,or=16384,ir=32768,lr=65536,sr=131072,ur=1048576,cr=2097152,dr=4194304,fr=16777216,pr=33554432,hr=1028,mr=12854,vr=8772,gr=2064,yr=14680064,br=n.ReactCurrentOwner;function wr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{var r=t;do{0!=(4098&(t=r).flags)&&(n=t.return),r=t.return}while(r)}return 3===t.tag?n:null}function Sr(e){if(e.tag===c){var t=e.memoizedState;if(null===t){var n=e.alternate;null!==n&&(t=n.memoizedState)}if(null!==t)return t.dehydrated}return null}function Er(e){return 3===e.tag?e.stateNode.containerInfo:null}function _r(e){if(wr(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function kr(e){var t=e.alternate;if(!t){var n=wr(e);if(null===n)throw new Error("Unable to find node on an unmounted component.");return n!==e?null:e}for(var r=e,a=t;;){var o=r.return;if(null===o)break;var i=o.alternate;if(null===i){var l=o.return;if(null!==l){r=a=l;continue}break}if(o.child===i.child){for(var s=o.child;s;){if(s===r)return _r(o),e;if(s===a)return _r(o),t;s=s.sibling}throw new Error("Unable to find node on an unmounted component.")}if(r.return!==a.return)r=o,a=i;else{for(var u=!1,c=o.child;c;){if(c===r){u=!0,r=o,a=i;break}if(c===a){u=!0,a=o,r=i;break}c=c.sibling}if(!u){for(c=i.child;c;){if(c===r){u=!0,r=i,a=o;break}if(c===a){u=!0,a=i,r=o;break}c=c.sibling}if(!u)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(r.alternate!==a)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(3!==r.tag)throw new Error("Unable to find node on an unmounted component.");return r.stateNode.current===r?e:t}function Tr(e){var t=kr(e);return null!==t?xr(t):null}function xr(e){if(5===e.tag||6===e.tag)return e;for(var t=e.child;null!==t;){var n=xr(t);if(null!==n)return n;t=t.sibling}return null}function Cr(e){var t=kr(e);return null!==t?Dr(t):null}function Dr(e){if(5===e.tag||6===e.tag)return e;for(var t=e.child;null!==t;){if(4!==t.tag){var n=Dr(t);if(null!==n)return n}t=t.sibling}return null}var Rr=t.unstable_scheduleCallback,Nr=t.unstable_cancelCallback,Pr=t.unstable_shouldYield,Ir=t.unstable_requestPaint,Mr=t.unstable_now,Or=t.unstable_getCurrentPriorityLevel,Ar=t.unstable_ImmediatePriority,Lr=t.unstable_UserBlockingPriority,Fr=t.unstable_NormalPriority,zr=t.unstable_LowPriority,Hr=t.unstable_IdlePriority,Ur=t.unstable_yieldValue,jr=t.unstable_setDisableYieldValue,Vr=null,$r=null,Wr=null,Br=!1,qr="undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__;function Yr(e){if("function"==typeof Ur&&(jr(e),r=e),$r&&"function"==typeof $r.setStrictMode)try{$r.setStrictMode(Vr,e)}catch(e){Br||(Br=!0,o("React instrumentation encountered an error: %s",e))}}function Gr(e){Wr=e}function Kr(){for(var e=new Map,t=1,n=0;n<da;n++){var r=za(t);e.set(t,r),t*=2}return e}function Qr(){null!==Wr&&"function"==typeof Wr.markCommitStopped&&Wr.markCommitStopped()}function Xr(e){null!==Wr&&"function"==typeof Wr.markComponentRenderStarted&&Wr.markComponentRenderStarted(e)}function Zr(){null!==Wr&&"function"==typeof Wr.markComponentRenderStopped&&Wr.markComponentRenderStopped()}function Jr(e){null!==Wr&&"function"==typeof Wr.markComponentLayoutEffectMountStarted&&Wr.markComponentLayoutEffectMountStarted(e)}function ea(e){null!==Wr&&"function"==typeof Wr.markComponentLayoutEffectUnmountStarted&&Wr.markComponentLayoutEffectUnmountStarted(e)}function ta(){null!==Wr&&"function"==typeof Wr.markComponentLayoutEffectUnmountStopped&&Wr.markComponentLayoutEffectUnmountStopped()}function na(e,t,n){null!==Wr&&"function"==typeof Wr.markComponentErrored&&Wr.markComponentErrored(e,t,n)}function ra(e,t,n){null!==Wr&&"function"==typeof Wr.markComponentSuspended&&Wr.markComponentSuspended(e,t,n)}function aa(e){null!==Wr&&"function"==typeof Wr.markRenderStarted&&Wr.markRenderStarted(e)}function oa(){null!==Wr&&"function"==typeof Wr.markRenderStopped&&Wr.markRenderStopped()}function ia(e,t){null!==Wr&&"function"==typeof Wr.markStateUpdateScheduled&&Wr.markStateUpdateScheduled(e,t)}var la=16,sa=Math.clz32?Math.clz32:function(e){var t=e>>>0;if(0===t)return 32;return 31-(ua(t)/ca|0)|0},ua=Math.log,ca=Math.LN2;var da=31,fa=16,pa=4194240,ha=1024,ma=2048,va=4096,ga=8192,ya=16384,ba=32768,wa=65536,Sa=131072,Ea=262144,_a=524288,ka=1048576,Ta=2097152,xa=130023424,Ca=4194304,Da=8388608,Ra=16777216,Na=33554432,Pa=67108864,Ia=Ca,Ma=134217728,Oa=268435455,Aa=268435456,La=536870912,Fa=1073741824;function za(e){return 1&e?"Sync":2&e?"InputContinuousHydration":4&e?"InputContinuous":8&e?"DefaultHydration":e&fa?"Default":32&e?"TransitionHydration":e&pa?"Transition":e&xa?"Retry":e&Ma?"SelectiveHydration":e&Aa?"IdleHydration":e&La?"Idle":e&Fa?"Offscreen":void 0}var Ha=-1,Ua=64,ja=Ca;function Va(e){switch(Xa(e)){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case fa:return fa;case 32:return 32;case 64:case 128:case 256:case 512:case ha:case ma:case va:case ga:case ya:case ba:case wa:case Sa:case Ea:case _a:case ka:case Ta:return e&pa;case Ca:case Da:case Ra:case Na:case Pa:return e&xa;case Ma:return Ma;case Aa:return Aa;case La:return La;case Fa:return Fa;default:return o("Should have found matching lanes. This is a bug in React."),e}}function $a(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,o=e.pingedLanes,i=n&Oa;if(0!==i){var l=i&~a;if(0!==l)r=Va(l);else{var s=i&o;0!==s&&(r=Va(s))}}else{var u=n&~a;0!==u?r=Va(u):0!==o&&(r=Va(o))}if(0===r)return 0;if(0!==t&&t!==r&&0==(t&a)){var c=Xa(r),d=Xa(t);if(c>=d||c===fa&&0!=(d&pa))return t}0!=(4&r)&&(r|=n&fa);var f=e.entangledLanes;if(0!==f)for(var p=e.entanglements,h=r&f;h>0;){var m=Ja(h),v=1<<m;r|=p[m],h&=~v}return r}function Wa(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case fa:case 32:case 64:case 128:case 256:case 512:case ha:case ma:case va:case ga:case ya:case ba:case wa:case Sa:case Ea:case _a:case ka:case Ta:return t+5e3;case Ca:case Da:case Ra:case Na:case Pa:case Ma:case Aa:case La:case Fa:return Ha;default:return o("Should have found matching lanes. This is a bug in React."),Ha}}function Ba(e){var t=-1073741825&e.pendingLanes;return 0!==t?t:t&Fa?Fa:0}function qa(e){return 0!=(e&Oa)}function Ya(e){return(e&xa)===e}function Ga(e,t){return 0!=(30&t)}function Ka(e){return 0!=(e&pa)}function Qa(){var e=Ua;return 0==((Ua<<=1)&pa)&&(Ua=64),e}function Xa(e){return e&-e}function Za(e){return Xa(e)}function Ja(e){return 31-sa(e)}function eo(e){return Ja(e)}function to(e,t){return 0!=(e&t)}function no(e,t){return(e&t)===t}function ro(e,t){return e|t}function ao(e,t){return e&~t}function oo(e,t){return e&t}function io(e){for(var t=[],n=0;n<da;n++)t.push(e);return t}function lo(e,t,n){e.pendingLanes|=t,t!==La&&(e.suspendedLanes=0,e.pingedLanes=0),e.eventTimes[eo(t)]=n}function so(e,t,n){e.pingedLanes|=e.suspendedLanes&t}function uo(e,t){for(var n=e.entangledLanes|=t,r=e.entanglements,a=n;a;){var o=Ja(a),i=1<<o;i&t|r[o]&t&&(r[o]|=t),a&=~i}}function co(e,t,n){if(qr)for(var r=e.pendingUpdatersLaneMap;n>0;){var a=eo(n),o=1<<a;r[a].add(t),n&=~o}}function fo(e,t){if(qr)for(var n=e.pendingUpdatersLaneMap,r=e.memoizedUpdaters;t>0;){var a=eo(t),o=1<<a,i=n[a];i.size>0&&(i.forEach((function(e){var t=e.alternate;null!==t&&r.has(t)||r.add(e)})),i.clear()),t&=~o}}var po,ho,mo,vo,go,yo=1,bo=4,wo=fa,So=La,Eo=0;function _o(){return Eo}function ko(e){Eo=e}function To(e,t){return 0!==e&&e<t}function xo(e){var t=Xa(e);return To(yo,t)?To(bo,t)?qa(t)?wo:So:bo:yo}function Co(e){return e.current.memoizedState.isDehydrated}function Do(e){po(e)}var Ro=!1,No=[],Po=null,Io=null,Mo=null,Oo=new Map,Ao=new Map,Lo=[],Fo=["mousedown","mouseup","touchcancel","touchend","touchstart","auxclick","dblclick","pointercancel","pointerdown","pointerup","dragend","dragstart","drop","compositionend","compositionstart","keydown","keypress","keyup","input","textInput","copy","cut","paste","click","change","contextmenu","reset","submit"];function zo(e,t){switch(e){case"focusin":case"focusout":Po=null;break;case"dragenter":case"dragleave":Io=null;break;case"mouseover":case"mouseout":Mo=null;break;case"pointerover":case"pointerout":var n=t.pointerId;Oo.delete(n);break;case"gotpointercapture":case"lostpointercapture":var r=t.pointerId;Ao.delete(r)}}function Ho(e,t,n,r,a,o){if(null===e||e.nativeEvent!==o){var i=function(e,t,n,r,a){return{blockedOn:e,domEventName:t,eventSystemFlags:n,nativeEvent:a,targetContainers:[r]}}(t,n,r,a,o);if(null!==t){var l=Du(t);null!==l&&ho(l)}return i}e.eventSystemFlags|=r;var s=e.targetContainers;return null!==a&&-1===s.indexOf(a)&&s.push(a),e}function Uo(e){var t=Cu(e.target);if(null!==t){var n=wr(t);if(null!==n){var r=n.tag;if(r===c){var a=Sr(n);if(null!==a)return e.blockedOn=a,void go(e.priority,(function(){mo(n)}))}else if(3===r){if(Co(n.stateNode))return void(e.blockedOn=Er(n))}}}e.blockedOn=null}function jo(e){if(null!==e.blockedOn)return!1;for(var t,n=e.targetContainers;n.length>0;){var r=n[0],a=Jo(e.domEventName,e.eventSystemFlags,r,e.nativeEvent);if(null!==a){var i=Du(a);return null!==i&&ho(i),e.blockedOn=a,!1}var l=e.nativeEvent,s=new l.constructor(l.type,l);t=s,null!==_n&&o("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),_n=t,l.target.dispatchEvent(s),null===_n&&o("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),_n=null,n.shift()}return!0}function Vo(e,t,n){jo(e)&&n.delete(t)}function $o(){Ro=!1,null!==Po&&jo(Po)&&(Po=null),null!==Io&&jo(Io)&&(Io=null),null!==Mo&&jo(Mo)&&(Mo=null),Oo.forEach(Vo),Ao.forEach(Vo)}function Wo(e,n){e.blockedOn===n&&(e.blockedOn=null,Ro||(Ro=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,$o)))}function Bo(e){if(No.length>0){Wo(No[0],e);for(var t=1;t<No.length;t++){var n=No[t];n.blockedOn===e&&(n.blockedOn=null)}}null!==Po&&Wo(Po,e),null!==Io&&Wo(Io,e),null!==Mo&&Wo(Mo,e);var r=function(t){return Wo(t,e)};Oo.forEach(r),Ao.forEach(r);for(var a=0;a<Lo.length;a++){var o=Lo[a];o.blockedOn===e&&(o.blockedOn=null)}for(;Lo.length>0;){var i=Lo[0];if(null!==i.blockedOn)break;Uo(i),null===i.blockedOn&&Lo.shift()}}var qo=n.ReactCurrentBatchConfig,Yo=!0;function Go(e){Yo=!!e}function Ko(e,t,n,r){var a=_o(),o=qo.transition;qo.transition=null;try{ko(yo),Xo(e,t,n,r)}finally{ko(a),qo.transition=o}}function Qo(e,t,n,r){var a=_o(),o=qo.transition;qo.transition=null;try{ko(bo),Xo(e,t,n,r)}finally{ko(a),qo.transition=o}}function Xo(e,t,n,r){Yo&&function(e,t,n,r){var a=Jo(e,t,n,r);if(null===a)return rs(e,t,r,Zo,n),void zo(e,r);if(function(e,t,n,r,a){switch(t){case"focusin":return Po=Ho(Po,e,t,n,r,a),!0;case"dragenter":return Io=Ho(Io,e,t,n,r,a),!0;case"mouseover":return Mo=Ho(Mo,e,t,n,r,a),!0;case"pointerover":var o=a,i=o.pointerId;return Oo.set(i,Ho(Oo.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":var l=a,s=l.pointerId;return Ao.set(s,Ho(Ao.get(s)||null,e,t,n,r,l)),!0}return!1}(a,e,t,n,r))return void r.stopPropagation();if(zo(e,r),4&t&&function(e){return Fo.indexOf(e)>-1}(e)){for(;null!==a;){var o=Du(a);null!==o&&Do(o);var i=Jo(e,t,n,r);if(null===i&&rs(e,t,r,Zo,n),i===a)break;a=i}return void(null!==a&&r.stopPropagation())}rs(e,t,r,null,n)}(e,t,n,r)}var Zo=null;function Jo(e,t,n,r){Zo=null;var a=Cu(kn(r));if(null!==a){var o=wr(a);if(null===o)a=null;else{var i=o.tag;if(i===c){var l=Sr(o);if(null!==l)return l;a=null}else if(3===i){if(Co(o.stateNode))return Er(o);a=null}else o!==a&&(a=null)}}return Zo=a,null}function ei(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return yo;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return bo;case"message":switch(Or()){case Ar:return yo;case Lr:return bo;case Fr:case zr:return wo;case Hr:return So;default:return wo}default:return wo}}var ti=null,ni=null,ri=null;function ai(){if(ri)return ri;var e,t,n=ni,r=n.length,a=oi(),o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);var l=t>1?1-t:void 0;return ri=a.slice(e,l)}function oi(){return"value"in ti?ti.value:ti.textContent}function ii(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,10===t&&(t=13),t>=32||13===t?t:0}function li(){return!0}function si(){return!1}function ui(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)if(e.hasOwnProperty(i)){var l=e[i];this[i]=l?l(a):a[i]}var s=null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue;return this.isDefaultPrevented=s?li:si,this.isPropagationStopped=si,this}return Se(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=li)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=li)},persist:function(){},isPersistent:li}),t}var ci,di,fi,pi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hi=ui(pi),mi=Se({},pi,{view:0,detail:0}),vi=ui(mi);var gi=Se({},mi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ri,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(function(e){e!==fi&&(fi&&"mousemove"===e.type?(ci=e.screenX-fi.screenX,di=e.screenY-fi.screenY):(ci=0,di=0),fi=e)}(e),ci)},movementY:function(e){return"movementY"in e?e.movementY:di}}),yi=ui(gi),bi=ui(Se({},gi,{dataTransfer:0})),wi=ui(Se({},mi,{relatedTarget:0})),Si=ui(Se({},pi,{animationName:0,elapsedTime:0,pseudoElement:0})),Ei=ui(Se({},pi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),_i=ui(Se({},pi,{data:0})),ki=_i,Ti={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xi={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};var Ci={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Di(e){var t=this.nativeEvent;if(t.getModifierState)return t.getModifierState(e);var n=Ci[e];return!!n&&!!t[n]}function Ri(e){return Di}var Ni=ui(Se({},mi,{key:function(e){if(e.key){var t=Ti[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=ii(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?xi[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ri,charCode:function(e){return"keypress"===e.type?ii(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ii(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Pi=ui(Se({},gi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ii=ui(Se({},mi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ri})),Mi=ui(Se({},pi,{propertyName:0,elapsedTime:0,pseudoElement:0})),Oi=ui(Se({},gi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Ai=[9,13,27,32],Li=T&&"CompositionEvent"in window,Fi=null;T&&"documentMode"in document&&(Fi=document.documentMode);var zi=T&&"TextEvent"in window&&!Fi,Hi=T&&(!Li||Fi&&Fi>8&&Fi<=11),Ui=String.fromCharCode(32);var ji=!1;function Vi(e,t){switch(e){case"keyup":return-1!==Ai.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $i(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function Wi(e){return"ko"===e.locale}var Bi=!1;function qi(e,t,n,r,a){var o,i;if(Li?o=function(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}(t):Bi?Vi(t,r)&&(o="onCompositionEnd"):function(e,t){return"keydown"===e&&229===t.keyCode}(t,r)&&(o="onCompositionStart"),!o)return null;Hi&&!Wi(r)&&(Bi||"onCompositionStart"!==o?"onCompositionEnd"===o&&Bi&&(i=ai()):Bi=function(e){return ti=e,ni=oi(),!0}(a));var l=os(n,o);if(l.length>0){var s=new _i(o,t,null,r,a);if(e.push({event:s,listeners:l}),i)s.data=i;else{var u=$i(r);null!==u&&(s.data=u)}}}function Yi(e,t){if(Bi){if("compositionend"===e||!Li&&Vi(e,t)){var n=ai();return ti=null,ni=null,ri=null,Bi=!1,n}return null}switch(e){case"paste":default:return null;case"keypress":if(!function(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}(t)){if(t.char&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Hi&&!Wi(t)?null:t.data}}function Gi(e,t,n,r,a){var o;if(!(o=zi?function(e,t){switch(e){case"compositionend":return $i(t);case"keypress":return 32!==t.which?null:(ji=!0,Ui);case"textInput":var n=t.data;return n===Ui&&ji?null:n;default:return null}}(t,r):Yi(t,r)))return null;var i=os(n,"onBeforeInput");if(i.length>0){var l=new ki("onBeforeInput","beforeinput",null,r,a);e.push({event:l,listeners:i}),l.data=o}}var Ki={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Qi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Ki[e.type]:"textarea"===t}
|
|
38
38
|
/**
|
|
39
39
|
* Checks if an event is supported in the current execution environment.
|
|
40
40
|
*
|
|
@@ -47,29 +47,29 @@
|
|
|
47
47
|
* @return {boolean} True if the event is supported.
|
|
48
48
|
* @internal
|
|
49
49
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
50
|
-
*/function el(e,t,n,r){In(r);var a=ss(t,"onChange");if(a.length>0){var o=new gi("onChange","change",null,n,r);e.push({event:o,listeners:a})}}var tl=null,nl=null;function rl(e){Jl(e,0)}function al(e){if(rt(Iu(e)))return e}function ol(e,t){if("change"===e)return t}var il=!1;function ll(){tl&&(tl.detachEvent("onpropertychange",sl),tl=null,nl=null)}function sl(e){"value"===e.propertyName&&al(nl)&&function(e){var t=[];el(t,nl,e,Cn(e)),Fn(rl,t)}(e)}function ul(e,t,n){"focusin"===e?(ll(),function(e,t){nl=t,(tl=e).attachEvent("onpropertychange",sl)}(t,n)):"focusout"===e&&ll()}function cl(e,t){if("selectionchange"===e||"keyup"===e||"keydown"===e)return al(nl)}function dl(e,t){if("click"===e)return al(t)}function fl(e,t){if("input"===e||"change"===e)return al(t)}function pl(e,t,n,r,a,o,i){var l,s,u,c,d,f,p=n?Iu(n):window;if("select"===(c=(u=p).nodeName&&u.nodeName.toLowerCase())||"input"===c&&"file"===u.type?l=ol:Ji(p)?il?l=fl:(l=cl,s=ul):function(e){var t=e.nodeName;return t&&"input"===t.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}(p)&&(l=dl),l){var h=l(t,n);if(h)return void el(e,h,r,a)}s&&s(t,p,n),"focusout"===t&&(f=(d=p)._wrapperState)&&f.controlled&&"number"===d.type&&mt(d,"number",d.value)}function hl(e,t,n,r,a,o,i){var l="mouseover"===t||"pointerover"===t,s="mouseout"===t||"pointerout"===t;if(l&&r!==_n){var u=r.relatedTarget||r.fromElement;if(u&&(Pu(u)||Ru(u)))return}if(s||l){var c,d,f;if(a.window===a)c=a;else{var p=a.ownerDocument;c=p?p.defaultView||p.parentWindow:window}if(s){var h=r.relatedTarget||r.toElement;if(d=n,null!==(f=h?Pu(h):null))(f!==xr(f)||5!==f.tag&&6!==f.tag)&&(f=null)}else d=null,f=n;if(d!==f){var v=ki,m="onMouseLeave",g="onMouseEnter",y="mouse";"pointerout"!==t&&"pointerover"!==t||(v=Oi,m="onPointerLeave",g="onPointerEnter",y="pointer");var b=null==d?c:Iu(d),w=null==f?c:Iu(f),k=new v(m,y+"leave",d,r,a);k.target=b,k.relatedTarget=w;var S=null;if(Pu(a)===n){var x=new v(g,y+"enter",f,r,a);x.target=w,x.relatedTarget=b,S=x}!function(e,t,n,r,a){var o=r&&a?function(e,t){for(var n=e,r=t,a=0,o=n;o;o=us(o))a++;for(var i=0,l=r;l;l=us(l))i++;for(;a-i>0;)n=us(n),a--;for(;i-a>0;)r=us(r),i--;var s=a;for(;s--;){if(n===r||null!==r&&n===r.alternate)return n;n=us(n),r=us(r)}return null}(r,a):null;null!==r&&cs(e,t,r,o,!1);null!==a&&null!==n&&cs(e,n,a,o,!0)}(e,k,S,d,f)}}}_&&(il=function(e){if(!_)return!1;var t="on"+e,n=t in document;if(!n){var r=document.createElement("div");r.setAttribute(t,"return;"),n="function"==typeof r[t]}return n}("input")&&(!document.documentMode||document.documentMode>9));var vl="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ml(e,t){if(vl(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a<n.length;a++){var o=n[a];if(!C.call(t,o)||!vl(e[o],t[o]))return!1}return!0}function gl(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yl(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function bl(e,t){for(var n=gl(e),r=0,a=0;n;){if(3===n.nodeType){if(a=r+n.textContent.length,r<=t&&a>=t)return{node:n,offset:t-r};r=a}n=gl(yl(n))}}function wl(e){var t=e.ownerDocument,n=t&&t.defaultView||window,r=n.getSelection&&n.getSelection();if(!r||0===r.rangeCount)return null;var a=r.anchorNode,o=r.anchorOffset,i=r.focusNode,l=r.focusOffset;try{a.nodeType,i.nodeType}catch(e){return null}return function(e,t,n,r,a){var o=0,i=-1,l=-1,s=0,u=0,c=e,d=null;e:for(;;){for(var f=null;c!==t||0!==n&&3!==c.nodeType||(i=o+n),c!==r||0!==a&&3!==c.nodeType||(l=o+a),3===c.nodeType&&(o+=c.nodeValue.length),null!==(f=c.firstChild);)d=c,c=f;for(;;){if(c===e)break e;if(d===t&&++s===n&&(i=o),d===r&&++u===a&&(l=o),null!==(f=c.nextSibling))break;d=(c=d).parentNode}c=f}if(-1===i||-1===l)return null;return{start:i,end:l}}(e,a,o,i,l)}function kl(e){return e&&3===e.nodeType}function Sl(e,t){return!(!e||!t)&&(e===t||!kl(e)&&(kl(t)?Sl(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function xl(e){return e&&e.ownerDocument&&Sl(e.ownerDocument.documentElement,e)}function El(e){try{return"string"==typeof e.contentWindow.location.href}catch(e){return!1}}function Tl(){for(var e=window,t=at();t instanceof e.HTMLIFrameElement;){if(!El(t))return t;t=at((e=t.contentWindow).document)}return t}function _l(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function Cl(e){var t=Tl(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&xl(n)){null!==r&&_l(n)&&function(e,t){var n=t.start,r=t.end;void 0===r&&(r=n);"selectionStart"in e?(e.selectionStart=n,e.selectionEnd=Math.min(r,e.value.length)):function(e,t){var n=e.ownerDocument||document,r=n&&n.defaultView||window;if(r.getSelection){var a=r.getSelection(),o=e.textContent.length,i=Math.min(t.start,o),l=void 0===t.end?i:Math.min(t.end,o);if(!a.extend&&i>l){var s=l;l=i,i=s}var u=bl(e,i),c=bl(e,l);if(u&&c){if(1===a.rangeCount&&a.anchorNode===u.node&&a.anchorOffset===u.offset&&a.focusNode===c.node&&a.focusOffset===c.offset)return;var d=n.createRange();d.setStart(u.node,u.offset),a.removeAllRanges(),i>l?(a.addRange(d),a.extend(c.node,c.offset)):(d.setEnd(c.node,c.offset),a.addRange(d))}}}(e,t)}(n,r);for(var a=[],o=n;o=o.parentNode;)1===o.nodeType&&a.push({element:o,left:o.scrollLeft,top:o.scrollTop});"function"==typeof n.focus&&n.focus();for(var i=0;i<a.length;i++){var l=a[i];l.element.scrollLeft=l.left,l.element.scrollTop=l.top}}}function Dl(e){return("selectionStart"in e?{start:e.selectionStart,end:e.selectionEnd}:wl(e))||{start:0,end:0}}var Rl=_&&"documentMode"in document&&document.documentMode<=11;var Pl=null,Nl=null,Il=null,Ml=!1;function Ol(e,t,n){var r,a=(r=n).window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!Ml&&null!=Pl&&Pl===at(a)){var o=function(e){if("selectionStart"in e&&_l(e))return{start:e.selectionStart,end:e.selectionEnd};var t=(e.ownerDocument&&e.ownerDocument.defaultView||window).getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}(Pl);if(!Il||!ml(Il,o)){Il=o;var i=ss(Nl,"onSelect");if(i.length>0){var l=new gi("onSelect","select",null,t,n);e.push({event:l,listeners:i}),l.target=Pl}}}}function Ll(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var zl={animationend:Ll("Animation","AnimationEnd"),animationiteration:Ll("Animation","AnimationIteration"),animationstart:Ll("Animation","AnimationStart"),transitionend:Ll("Transition","TransitionEnd")},Al={},Fl={};function Hl(e){if(Al[e])return Al[e];if(!zl[e])return e;var t=zl[e];for(var n in t)if(t.hasOwnProperty(n)&&n in Fl)return Al[e]=t[n];return e}_&&(Fl=document.createElement("div").style,"AnimationEvent"in window||(delete zl.animationend.animation,delete zl.animationiteration.animation,delete zl.animationstart.animation),"TransitionEvent"in window||delete zl.transitionend.transition);var jl=Hl("animationend"),Ul=Hl("animationiteration"),Vl=Hl("animationstart"),Wl=Hl("transitionend"),Bl=new Map,$l=["abort","auxClick","cancel","canPlay","canPlayThrough","click","close","contextMenu","copy","cut","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","gotPointerCapture","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","pointerCancel","pointerDown","pointerMove","pointerOut","pointerOver","pointerUp","progress","rateChange","reset","resize","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchStart","volumeChange","scroll","toggle","touchMove","waiting","wheel"];function ql(e,t){Bl.set(e,t),E(t,[e])}function Yl(e,t,n,r,a,o,i){var l=Bl.get(t);if(void 0!==l){var s=gi,u=t;switch(t){case"keypress":if(0===ui(r))return;case"keydown":case"keyup":s=Mi;break;case"focusin":u="focus",s=xi;break;case"focusout":u="blur",s=xi;break;case"beforeblur":case"afterblur":s=xi;break;case"click":if(2===r.button)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=ki;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=Si;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Li;break;case jl:case Ul:case Vl:s=Ei;break;case Wl:s=zi;break;case"scroll":s=bi;break;case"wheel":s=Ai;break;case"copy":case"cut":case"paste":s=Ti;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Oi}var c=0!=(4&o),d=!c&&"scroll"===t,f=function(e,t,n,r,a,o){var i=null!==t?t+"Capture":null,l=r?i:t,s=[],u=e,c=null;for(;null!==u;){var d=u,f=d.stateNode;if(5===d.tag&&null!==f&&(c=f,null!==l)){var p=Hn(u,l);null!=p&&s.push(ls(u,p,c))}if(a)break;u=u.return}return s}(n,l,r.type,c,d);if(f.length>0){var p=new s(l,u,null,r,a);e.push({event:p,listeners:f})}}}function Gl(e,t,n,r,a,o,i){Yl(e,t,n,r,a,o),0==(7&o)&&(hl(e,t,n,r,a),pl(e,t,n,r,a),function(e,t,n,r,a,o,i){var l=n?Iu(n):window;switch(t){case"focusin":(Ji(l)||"true"===l.contentEditable)&&(Pl=l,Nl=n,Il=null);break;case"focusout":Pl=null,Nl=null,Il=null;break;case"mousedown":Ml=!0;break;case"contextmenu":case"mouseup":case"dragend":Ml=!1,Ol(e,r,a);break;case"selectionchange":if(Rl)break;case"keydown":case"keyup":Ol(e,r,a)}}(e,t,n,r,a),function(e,t,n,r,a,o,i){Ki(e,t,n,r,a),Xi(e,t,n,r,a)}(e,t,n,r,a))}!function(){for(var e=0;e<$l.length;e++){var t=$l[e];ql(t.toLowerCase(),"on"+(t[0].toUpperCase()+t.slice(1)))}ql(jl,"onAnimationEnd"),ql(Ul,"onAnimationIteration"),ql(Vl,"onAnimationStart"),ql("dblclick","onDoubleClick"),ql("focusin","onFocus"),ql("focusout","onBlur"),ql(Wl,"onTransitionEnd")}(),T("onMouseEnter",["mouseout","mouseover"]),T("onMouseLeave",["mouseout","mouseover"]),T("onPointerEnter",["pointerout","pointerover"]),T("onPointerLeave",["pointerout","pointerover"]),E("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"]),E("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"]),E("onBeforeInput",["compositionend","keypress","textInput","paste"]),E("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),E("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),E("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"]);var Kl=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],Ql=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Kl));function Xl(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,o,i,l,s){if(Xn.apply(this,arguments),qn){var u=Zn();Gn||(Gn=!0,Kn=u)}}(r,t,void 0,e),e.currentTarget=null}function Zl(e,t,n){var r;if(n)for(var a=t.length-1;a>=0;a--){var o=t[a],i=o.instance,l=o.currentTarget,s=o.listener;if(i!==r&&e.isPropagationStopped())return;Xl(e,s,l),r=i}else for(var u=0;u<t.length;u++){var c=t[u],d=c.instance,f=c.currentTarget,p=c.listener;if(d!==r&&e.isPropagationStopped())return;Xl(e,p,f),r=d}}function Jl(e,t){for(var n=0!=(4&t),r=0;r<e.length;r++){var a=e[r];Zl(a.event,a.listeners,n)}!function(){if(Gn){var e=Kn;throw Gn=!1,Kn=null,e}}()}function es(e,t){Ql.has(e)||o('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var n=function(e){var t=e[xu];void 0===t&&(t=e[xu]=new Set);return t}(t),r=function(e,t){return e+"__"+(t?"capture":"bubble")}(e,false);n.has(r)||(as(t,e,2,false),n.add(r))}function ts(e,t,n){Ql.has(e)&&!t&&o('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var r=0;t&&(r|=4),as(n,e,r,t)}var ns="_reactListening"+Math.random().toString(36).slice(2);function rs(e){if(!e[ns]){e[ns]=!0,k.forEach((function(t){"selectionchange"!==t&&(Ql.has(t)||ts(t,!1,e),ts(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null!==t&&(t[ns]||(t[ns]=!0,ts("selectionchange",!1,t)))}}function as(e,t,n,r,a){var o=function(e,t,n){var r;switch(ri(t)){case ko:r=Zo;break;case So:r=Jo;break;default:r=ei}return r.bind(null,t,n,e)}(e,t,n),i=void 0;jn&&("touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0)),r?void 0!==i?function(e,t,n,r){e.addEventListener(t,n,{capture:!0,passive:r})}(e,t,o,i):function(e,t,n){e.addEventListener(t,n,!0)}(e,t,o):void 0!==i?function(e,t,n,r){e.addEventListener(t,n,{passive:r})}(e,t,o,i):function(e,t,n){e.addEventListener(t,n,!1)}(e,t,o)}function os(e,t){return e===t||8===e.nodeType&&e.parentNode===t}function is(e,t,n,r,a){var o=r;if(0==(1&t)&&0==(2&t)){var i=a;if(null!==r){var l=r;e:for(;;){if(null===l)return;var s=l.tag;if(3===s||4===s){var u=l.stateNode.containerInfo;if(os(u,i))break;if(4===s)for(var c=l.return;null!==c;){var d=c.tag;if(3===d||4===d)if(os(c.stateNode.containerInfo,i))return;c=c.return}for(;null!==u;){var f=Pu(u);if(null===f)return;var p=f.tag;if(5===p||6===p){l=o=f;continue e}u=u.parentNode}}l=l.return}}}Fn((function(){return function(e,t,n,r,a){var o=[];Gl(o,e,r,n,Cn(n),t),Jl(o,t)}(e,t,n,o)}))}function ls(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ss(e,t){for(var n=t+"Capture",r=[],a=e;null!==a;){var o=a,i=o.stateNode;if(5===o.tag&&null!==i){var l=i,s=Hn(a,n);null!=s&&r.unshift(ls(a,s,l));var u=Hn(a,t);null!=u&&r.push(ls(a,u,l))}a=a.return}return r}function us(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function cs(e,t,n,r,a){for(var o=t._reactName,i=[],l=n;null!==l&&l!==r;){var s=l,u=s.alternate,c=s.stateNode,d=s.tag;if(null!==u&&u===r)break;if(5===d&&null!==c){var f=c;if(a){var p=Hn(l,o);null!=p&&i.unshift(ls(l,p,f))}else if(!a){var h=Hn(l,o);null!=h&&i.push(ls(l,h,f))}}l=l.return}0!==i.length&&e.push({event:t,listeners:i})}var ds,fs,ps,hs,vs,ms,gs,ys=!1,bs="dangerouslySetInnerHTML",ws="suppressContentEditableWarning",ks="suppressHydrationWarning",Ss="autoFocus",xs="children",Es="style";ds={dialog:!0,webview:!0},fs=function(e,t){gn(e,t),function(e,t){"input"!==e&&"textarea"!==e&&"select"!==e||null==t||null!==t.value||yn||(yn=!0,"select"===e&&t.multiple?o("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):o("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}(e,t),Tn(e,t,{registrationNameDependencies:S,possibleRegistrationNames:x})},ms=_&&!document.documentMode,ps=function(e,t,n){if(!ys){var r=Cs(n),a=Cs(t);a!==r&&(ys=!0,o("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(a),JSON.stringify(r)))}},hs=function(e){if(!ys){ys=!0;var t=[];e.forEach((function(e){t.push(e)})),o("Extra attributes from the server: %s",t)}},vs=function(e,t){!1===t?o("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):o("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},gs=function(e,t){var n=e.namespaceURI===Ot?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return n.innerHTML=t,n.innerHTML};var Ts=/\r\n?/g,_s=/\u0000|\uFFFD/g;function Cs(e){return function(e){if(P(e))o("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",R(e)),I(e)}(e),("string"==typeof e?e:""+e).replace(Ts,"\n").replace(_s,"")}function Ds(e,t,n,r){var a=Cs(t),i=Cs(e);if(i!==a&&(r&&(ys||(ys=!0,o('Text content did not match. Server: "%s" Client: "%s"',i,a))),n))throw new Error("Text content does not match server-rendered HTML.")}function Rs(e){return 9===e.nodeType?e:e.ownerDocument}function Ps(){}function Ns(e){e.onclick=Ps}function Is(e,t,n,r){var a,o=cn(t,n);switch(fs(t,n),t){case"dialog":es("cancel",e),es("close",e),a=n;break;case"iframe":case"object":case"embed":es("load",e),a=n;break;case"video":case"audio":for(var i=0;i<Kl.length;i++)es(Kl[i],e);a=n;break;case"source":es("error",e),a=n;break;case"img":case"image":case"link":es("error",e),es("load",e),a=n;break;case"details":es("toggle",e),a=n;break;case"input":dt(e,n),a=ct(e,n),es("invalid",e);break;case"option":wt(0,n),a=n;break;case"select":Dt(e,n),a=Ct(0,n),es("invalid",e);break;case"textarea":Nt(e,n),a=Pt(e,n),es("invalid",e);break;default:a=n}switch(un(t,a),function(e,t,n,r,a){for(var o in r)if(r.hasOwnProperty(o)){var i=r[o];if(o===Es)i&&Object.freeze(i),on(t,i);else if(o===bs){var l=i?i.__html:void 0;null!=l&&jt(t,l)}else o===xs?"string"==typeof i?("textarea"!==e||""!==i)&&Ut(t,i):"number"==typeof i&&Ut(t,""+i):o===ws||o===ks||o===Ss||(S.hasOwnProperty(o)?null!=i&&("function"!=typeof i&&vs(o,i),"onScroll"===o&&es("scroll",t)):null!=i&&te(t,o,i,a))}}(t,e,0,a,o),t){case"input":nt(e),ht(e,n,!1);break;case"textarea":nt(e),Mt(e);break;case"option":!function(e,t){null!=t.value&&e.setAttribute("value",Qe(Xe(t.value)))}(e,n);break;case"select":!function(e,t){var n=e;n.multiple=!!t.multiple;var r=t.value;null!=r?_t(n,!!t.multiple,r,!1):null!=t.defaultValue&&_t(n,!!t.multiple,t.defaultValue,!0)}(e,n);break;default:"function"==typeof a.onClick&&Ns(e)}}function Ms(e,t,n,r,a){fs(t,r);var i,l,s,u,c=null;switch(t){case"input":i=ct(e,n),l=ct(e,r),c=[];break;case"select":i=Ct(0,n),l=Ct(0,r),c=[];break;case"textarea":i=Pt(e,n),l=Pt(e,r),c=[];break;default:l=r,"function"!=typeof(i=n).onClick&&"function"==typeof l.onClick&&Ns(e)}un(t,l);var d=null;for(s in i)if(!l.hasOwnProperty(s)&&i.hasOwnProperty(s)&&null!=i[s])if(s===Es){var f=i[s];for(u in f)f.hasOwnProperty(u)&&(d||(d={}),d[u]="")}else s===bs||s===xs||s===ws||s===ks||s===Ss||(S.hasOwnProperty(s)?c||(c=[]):(c=c||[]).push(s,null));for(s in l){var p=l[s],h=null!=i?i[s]:void 0;if(l.hasOwnProperty(s)&&p!==h&&(null!=p||null!=h))if(s===Es)if(p&&Object.freeze(p),h){for(u in h)!h.hasOwnProperty(u)||p&&p.hasOwnProperty(u)||(d||(d={}),d[u]="");for(u in p)p.hasOwnProperty(u)&&h[u]!==p[u]&&(d||(d={}),d[u]=p[u])}else d||(c||(c=[]),c.push(s,d)),d=p;else if(s===bs){var v=p?p.__html:void 0,m=h?h.__html:void 0;null!=v&&m!==v&&(c=c||[]).push(s,v)}else s===xs?"string"!=typeof p&&"number"!=typeof p||(c=c||[]).push(s,""+p):s===ws||s===ks||(S.hasOwnProperty(s)?(null!=p&&("function"!=typeof p&&vs(s,p),"onScroll"===s&&es("scroll",e)),c||h===p||(c=[])):(c=c||[]).push(s,p))}return d&&(!function(e,t){if(t){var n,r=ln(e),a=ln(t),i={};for(var l in r){var s=r[l],u=a[l];if(u&&s!==u){var c=s+","+u;if(i[c])continue;i[c]=!0,o("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",null==(n=e[s])||"boolean"==typeof n||""===n?"Removing":"Updating",s,u)}}}}(d,l.style),(c=c||[]).push(Es,d)),c}function Os(e,t,n,r,a){"input"===n&&"radio"===a.type&&null!=a.name&&ft(e,a);cn(n,r);switch(function(e,t,n,r){for(var a=0;a<t.length;a+=2){var o=t[a],i=t[a+1];o===Es?on(e,i):o===bs?jt(e,i):o===xs?Ut(e,i):te(e,o,i,r)}}(e,t,0,cn(n,a)),n){case"input":pt(e,a);break;case"textarea":It(e,a);break;case"select":!function(e,t){var n=e,r=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!t.multiple;var a=t.value;null!=a?_t(n,!!t.multiple,a,!1):r!==!!t.multiple&&(null!=t.defaultValue?_t(n,!!t.multiple,t.defaultValue,!0):_t(n,!!t.multiple,t.multiple?[]:"",!1))}(e,a)}}function Ls(e,t){ys||(ys=!0,o("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase()))}function zs(e,t){ys||(ys=!0,o('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase()))}function As(e,t,n){ys||(ys=!0,o("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase()))}function Fs(e,t){""!==t&&(ys||(ys=!0,o('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())))}var Hs,js,Us=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],Vs=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],Ws=Vs.concat(["button"]),Bs=["dd","dt","li","option","optgroup","p","rp","rt"],$s={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};js=function(e,t){var n=Ee({},e||$s),r={tag:t};return-1!==Vs.indexOf(t)&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),-1!==Ws.indexOf(t)&&(n.pTagInButtonScope=null),-1!==Us.indexOf(t)&&"address"!==t&&"div"!==t&&"p"!==t&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=r,"form"===t&&(n.formTag=r),"a"===t&&(n.aTagInScope=r),"button"===t&&(n.buttonTagInScope=r),"nobr"===t&&(n.nobrTagInScope=r),"p"===t&&(n.pTagInButtonScope=r),"li"===t&&(n.listItemTagAutoclosing=r),"dd"!==t&&"dt"!==t||(n.dlItemTagAutoclosing=r),n};var qs={};Hs=function(e,t,n){var r=(n=n||$s).current,a=r&&r.tag;null!=t&&(null!=e&&o("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var i=function(e,t){switch(t){case"select":return"option"===e||"optgroup"===e||"#text"===e;case"optgroup":return"option"===e||"#text"===e;case"option":return"#text"===e;case"tr":return"th"===e||"td"===e||"style"===e||"script"===e||"template"===e;case"tbody":case"thead":case"tfoot":return"tr"===e||"style"===e||"script"===e||"template"===e;case"colgroup":return"col"===e||"template"===e;case"table":return"caption"===e||"colgroup"===e||"tbody"===e||"tfoot"===e||"thead"===e||"style"===e||"script"===e||"template"===e;case"head":return"base"===e||"basefont"===e||"bgsound"===e||"link"===e||"meta"===e||"title"===e||"noscript"===e||"noframes"===e||"style"===e||"script"===e||"template"===e;case"html":return"head"===e||"body"===e||"frameset"===e;case"frameset":return"frame"===e;case"#document":return"html"===e}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t;case"rp":case"rt":return-1===Bs.indexOf(t);case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return null==t}return!0}(e,a)?null:r,l=i?null:function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}(e,n),s=i||l;if(s){var u=s.tag,c=!!i+"|"+e+"|"+u;if(!qs[c]){qs[c]=!0;var d=e,f="";if("#text"===e?/\S/.test(t)?d="Text nodes":(d="Whitespace text nodes",f=" Make sure you don't have any extra whitespace between tags on each line of your source code."):d="<"+e+">",i){var p="";"table"===u&&"tr"===e&&(p+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),o("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",d,u,f,p)}else o("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",d,u)}}};var Ys="$",Gs="/$",Ks="$?",Qs="$!",Xs=null,Zs=null;function Js(e){var t;Xs=Qo,t=Tl(),Zs={focusedElem:t,selectionRange:_l(t)?Dl(t):null};return Xo(!1),null}function eu(e,t,n,r,a){var i=r;if(Hs(e,null,i.ancestorInfo),"string"==typeof t.children||"number"==typeof t.children){var l=""+t.children,s=js(i.ancestorInfo,e);Hs(null,l,s)}var u=function(e,t,n,r){var a,i,l=Rs(n),s=r;if(s===Ot&&(s=zt(e)),s===Ot){if((a=cn(e,t))||e===e.toLowerCase()||o("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),"script"===e){var u=l.createElement("div");u.innerHTML="<script><\/script>";var c=u.firstChild;i=u.removeChild(c)}else if("string"==typeof t.is)i=l.createElement(e,{is:t.is});else if(i=l.createElement(e),"select"===e){var d=i;t.multiple?d.multiple=!0:t.size&&(d.size=t.size)}}else i=l.createElementNS(s,e);return s===Ot&&(a||"[object HTMLUnknownElement]"!==Object.prototype.toString.call(i)||C.call(ds,e)||(ds[e]=!0,o("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e))),i}(e,t,n,i.namespace);return _u(a,u),Ou(u,t),u}function tu(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}function nu(e,t,n,r){Hs(null,e,n.ancestorInfo);var a=function(e,t){return Rs(t).createTextNode(e)}(e,t);return _u(r,a),a}var ru="function"==typeof setTimeout?setTimeout:void 0,au="function"==typeof clearTimeout?clearTimeout:void 0,ou="function"==typeof Promise?Promise:void 0,iu="function"==typeof queueMicrotask?queueMicrotask:void 0!==ou?function(e){return ou.resolve(null).then(e).catch(lu)}:ru;function lu(e){setTimeout((function(){throw e}))}function su(e){Ut(e,"")}function uu(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType){var o=a.data;if(o===Gs){if(0===r)return e.removeChild(a),void Go(t);r--}else o!==Ys&&o!==Ks&&o!==Qs||r++}n=a}while(n);Go(t)}function cu(e){var t=e.style;"function"==typeof t.setProperty?t.setProperty("display","none","important"):t.display="none"}function du(e,t){var n=t.style,r=null!=n&&n.hasOwnProperty("display")?n.display:null;e.style.display=$t("display",r)}function fu(e,t){e.nodeValue=t}function pu(e){return e.data===Ks}function hu(e){return e.data===Qs}function vu(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){var n=e.data;if(n===Ys||n===Qs||n===Ks)break;if(n===Gs)return null}}return e}function mu(e){return vu(e.nextSibling)}function gu(e,t,n,r,a,o,i){return _u(o,e),Ou(e,n),function(e,t,n,r,a,o,i){var l,s;switch(l=cn(t,n),fs(t,n),t){case"dialog":es("cancel",e),es("close",e);break;case"iframe":case"object":case"embed":es("load",e);break;case"video":case"audio":for(var u=0;u<Kl.length;u++)es(Kl[u],e);break;case"source":es("error",e);break;case"img":case"image":case"link":es("error",e),es("load",e);break;case"details":es("toggle",e);break;case"input":dt(e,n),es("invalid",e);break;case"option":wt(0,n);break;case"select":Dt(e,n),es("invalid",e);break;case"textarea":Nt(e,n),es("invalid",e)}un(t,n),s=new Set;for(var c=e.attributes,d=0;d<c.length;d++)switch(c[d].name.toLowerCase()){case"value":case"checked":case"selected":break;default:s.add(c[d].name)}var f,p=null;for(var h in n)if(n.hasOwnProperty(h)){var v=n[h];if(h===xs)"string"==typeof v?e.textContent!==v&&(!0!==n.suppressHydrationWarning&&Ds(e.textContent,v,o,i),p=[xs,v]):"number"==typeof v&&e.textContent!==""+v&&(!0!==n.suppressHydrationWarning&&Ds(e.textContent,v,o,i),p=[xs,""+v]);else if(S.hasOwnProperty(h))null!=v&&("function"!=typeof v&&vs(h,v),"onScroll"===h&&es("scroll",e));else if(i&&"boolean"==typeof l){var m=void 0,g=$(h);if(!0===n.suppressHydrationWarning);else if(h===ws||h===ks||"value"===h||"checked"===h||"selected"===h);else if(h===bs){var y=e.innerHTML,b=v?v.__html:void 0;if(null!=b){var w=gs(e,b);w!==y&&ps(h,y,w)}}else if(h===Es){if(s.delete(h),ms){var k=an(v);k!==(m=e.getAttribute("style"))&&ps(h,m,k)}}else if(l)s.delete(h.toLowerCase()),v!==(m=ee(e,h,v))&&ps(h,m,v);else if(!V(h,g,l)&&!B(h,v,g,l)){var x=!1;if(null!==g)s.delete(g.attributeName),m=J(e,h,v,g);else{var E=r;if(E===Ot&&(E=zt(t)),E===Ot)s.delete(h.toLowerCase());else{var T=(f=void 0,f=h.toLowerCase(),dn.hasOwnProperty(f)&&dn[f]||null);null!==T&&T!==h&&(x=!0,s.delete(T)),s.delete(h)}m=ee(e,h,v)}v===m||x||ps(h,m,v)}}}switch(i&&s.size>0&&!0!==n.suppressHydrationWarning&&hs(s),t){case"input":nt(e),ht(e,n,!0);break;case"textarea":nt(e),Mt(e);break;case"select":case"option":break;default:"function"==typeof n.onClick&&Ns(e)}return p}(e,t,n,a.namespace,0,0!=(1&o.mode),i)}function yu(e){for(var t=e.previousSibling,n=0;t;){if(8===t.nodeType){var r=t.data;if(r===Ys||r===Qs||r===Ks){if(0===n)return t;n--}else r===Gs&&n++}t=t.previousSibling}return null}var bu=Math.random().toString(36).slice(2),wu="__reactFiber$"+bu,ku="__reactProps$"+bu,Su="__reactContainer$"+bu,xu="__reactEvents$"+bu,Eu="__reactListeners$"+bu,Tu="__reactHandles$"+bu;function _u(e,t){t[wu]=e}function Cu(e,t){t[Su]=e}function Du(e){e[Su]=null}function Ru(e){return!!e[Su]}function Pu(e){var t=e[wu];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Su]||n[wu]){var r=t.alternate;if(null!==t.child||null!==r&&null!==r.child)for(var a=yu(e);null!==a;){var o=a[wu];if(o)return o;a=yu(a)}return t}n=(e=n).parentNode}return null}function Nu(e){var t=e[wu]||e[Su];return t&&(5===t.tag||6===t.tag||t.tag===d||3===t.tag)?t:null}function Iu(e){if(5===e.tag||6===e.tag)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function Mu(e){return e[ku]||null}function Ou(e,t){e[ku]=t}var Lu={},zu=n.ReactDebugCurrentFrame;function Au(e){if(e){var t=e._owner,n=Le(e.type,e._source,t?t.type:null);zu.setExtraStackFrame(n)}else zu.setExtraStackFrame(null)}function Fu(e,t,n,r,a){var i=Function.call.bind(C);for(var l in e)if(i(e,l)){var s=void 0;try{if("function"!=typeof e[l]){var u=Error((r||"React class")+": "+n+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}s=e[l](t,l,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(Au(a),o("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,l,typeof s),Au(null)),s instanceof Error&&!(s.message in Lu)&&(Lu[s.message]=!0,Au(a),o("Failed %s type: %s",n,s.message),Au(null))}}var Hu,ju=[];Hu=[];var Uu,Vu=-1;function Wu(e){return{current:e}}function Bu(e,t){Vu<0?o("Unexpected pop."):(t!==Hu[Vu]&&o("Unexpected Fiber popped."),e.current=ju[Vu],ju[Vu]=null,Hu[Vu]=null,Vu--)}function $u(e,t,n){Vu++,ju[Vu]=e.current,Hu[Vu]=n,e.current=t}Uu={};var qu={};Object.freeze(qu);var Yu=Wu(qu),Gu=Wu(!1),Ku=qu;function Qu(e,t,n){return n&&ec(t)?Ku:Yu.current}function Xu(e,t,n){var r=e.stateNode;r.__reactInternalMemoizedUnmaskedChildContext=t,r.__reactInternalMemoizedMaskedChildContext=n}function Zu(e,t){var n=e.type.contextTypes;if(!n)return qu;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a={};for(var o in n)a[o]=t[o];return Fu(n,a,"context",Ue(e)||"Unknown"),r&&Xu(e,t,a),a}function Ju(){return Gu.current}function ec(e){var t=e.childContextTypes;return null!=t}function tc(e){Bu(Gu,e),Bu(Yu,e)}function nc(e){Bu(Gu,e),Bu(Yu,e)}function rc(e,t,n){if(Yu.current!==qu)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");$u(Yu,t,e),$u(Gu,n,e)}function ac(e,t,n){var r=e.stateNode,a=t.childContextTypes;if("function"!=typeof r.getChildContext){var i=Ue(e)||"Unknown";return Uu[i]||(Uu[i]=!0,o("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",i,i)),n}var l=r.getChildContext();for(var s in l)if(!(s in a))throw new Error((Ue(e)||"Unknown")+'.getChildContext(): key "'+s+'" is not defined in childContextTypes.');return Fu(a,l,"child context",Ue(e)||"Unknown"),Ee({},n,l)}function oc(e){var t=e.stateNode,n=t&&t.__reactInternalMemoizedMergedChildContext||qu;return Ku=Yu.current,$u(Yu,n,e),$u(Gu,Gu.current,e),!0}function ic(e,t,n){var r=e.stateNode;if(!r)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(n){var a=ac(e,t,Ku);r.__reactInternalMemoizedMergedChildContext=a,Bu(Gu,e),Bu(Yu,e),$u(Yu,a,e),$u(Gu,n,e)}else Bu(Gu,e),$u(Gu,n,e)}function lc(e){if(!function(e){return xr(e)===e}(e)||1!==e.tag)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var t=e;do{switch(t.tag){case 3:return t.stateNode.context;case 1:if(ec(t.type))return t.stateNode.__reactInternalMemoizedMergedChildContext}t=t.return}while(null!==t);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}var sc=null,uc=!1,cc=!1;function dc(e){null===sc?sc=[e]:sc.push(e)}function fc(){uc&&pc()}function pc(){if(!cc&&null!==sc){cc=!0;var e=0,t=_o();try{var n=sc;for(Co(ko);e<n.length;e++){var r=n[e];do{r=r(true)}while(null!==r)}sc=null,uc=!1}catch(t){throw null!==sc&&(sc=sc.slice(e+1)),Ir(Fr,pc),t}finally{Co(t),cc=!1}}return null}var hc=[],vc=0,mc=null,gc=0,yc=[],bc=0,wc=null,kc=1,Sc="";function xc(){var e=Sc;return(kc&~function(e){return 1<<Cc(e)-1}(kc)).toString(32)+e}function Ec(e,t){Rc(),hc[vc++]=gc,hc[vc++]=mc,mc=e,gc=t}function Tc(e,t,n){Rc(),yc[bc++]=kc,yc[bc++]=Sc,yc[bc++]=wc,wc=e;var r=kc,a=Sc,o=Cc(r)-1,i=r&~(1<<o),l=n+1,s=Cc(t)+o;if(s>30){var u=o-o%5,c=(i&(1<<u)-1).toString(32),d=i>>u,f=o-u,p=Cc(t)+f;kc=1<<p|(l<<f|d),Sc=c+a}else{kc=1<<s|(l<<o|i),Sc=a}}function _c(e){if(Rc(),null!==e.return){Ec(e,1),Tc(e,1,0)}}function Cc(e){return 32-da(e)}function Dc(e){for(;e===mc;)mc=hc[--vc],hc[vc]=null,gc=hc[--vc],hc[vc]=null;for(;e===wc;)wc=yc[--bc],yc[bc]=null,Sc=yc[--bc],yc[bc]=null,kc=yc[--bc],yc[bc]=null}function Rc(){td()||o("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Pc=null,Nc=null,Ic=!1,Mc=!1,Oc=null;function Lc(){Ic&&o("We should not be hydrating here. This is a bug in React. Please file a bug.")}function zc(){Mc=!0}function Ac(e){var t=e.stateNode.containerInfo;return Nc=vu(t.firstChild),Pc=e,Ic=!0,Oc=null,Mc=!1,!0}function Fc(e,t,n){return Nc=vu(t.nextSibling),Pc=e,Ic=!0,Oc=null,Mc=!1,null!==n&&function(e,t){Rc(),yc[bc++]=kc,yc[bc++]=Sc,yc[bc++]=wc,kc=t.id,Sc=t.overflow,wc=e}(e,n),!0}function Hc(e,t){switch(e.tag){case 3:!function(e,t){1===t.nodeType?Ls(e,t):8===t.nodeType||zs(e,t)}(e.stateNode.containerInfo,t);break;case 5:var n=0!=(1&e.mode);!function(e,t,n,r,a){(a||!0!==t.suppressHydrationWarning)&&(1===r.nodeType?Ls(n,r):8===r.nodeType||zs(n,r))}(e.type,e.memoizedProps,e.stateNode,t,n);break;case d:var r=e.memoizedState;null!==r.dehydrated&&function(e,t){var n=e.parentNode;null!==n&&(1===t.nodeType?Ls(n,t):8===t.nodeType||zs(n,t))}(r.dehydrated,t)}}function jc(e,t){Hc(e,t);var n,r=((n=hb(5,null,null,0)).elementType="DELETED",n);r.stateNode=t,r.return=e;var a=e.deletions;null===a?(e.deletions=[r],e.flags|=er):a.push(r)}function Uc(e,t){if(!Mc)switch(e.tag){case 3:var n=e.stateNode.containerInfo;switch(t.tag){case 5:var r=t.type;t.pendingProps,function(e,t,n){As(e,t)}(n,r);break;case 6:!function(e,t){Fs(e,t)}(n,t.pendingProps)}break;case 5:e.type;var a=e.memoizedProps,o=e.stateNode;switch(t.tag){case 5:var i=t.type;t.pendingProps;!function(e,t,n,r,a,o){(o||!0!==t.suppressHydrationWarning)&&As(n,r)}(0,a,o,i,0,0!=(1&e.mode));break;case 6:!function(e,t,n,r,a){(a||!0!==t.suppressHydrationWarning)&&Fs(n,r)}(0,a,o,t.pendingProps,0!=(1&e.mode))}break;case d:var l=e.memoizedState.dehydrated;if(null!==l)switch(t.tag){case 5:var s=t.type;t.pendingProps,function(e,t,n){var r=e.parentNode;null!==r&&As(r,t)}(l,s);break;case 6:!function(e,t){var n=e.parentNode;null!==n&&Fs(n,t)}(l,t.pendingProps)}break;default:return}}function Vc(e,t){t.flags=-4097&t.flags|2,Uc(e,t)}function Wc(e,t){switch(e.tag){case 5:var n=e.type;e.pendingProps;var r=function(e,t,n){return 1!==e.nodeType||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}(t,n);return null!==r&&(e.stateNode=r,Pc=e,Nc=vu(r.firstChild),!0);case 6:var a=function(e,t){return""===t||3!==e.nodeType?null:e}(t,e.pendingProps);return null!==a&&(e.stateNode=a,Pc=e,Nc=null,!0);case d:var o=function(e){return 8!==e.nodeType?null:e}(t);if(null!==o){var i={dehydrated:o,treeContext:(Rc(),null!==wc?{id:kc,overflow:Sc}:null),retryLane:ja};e.memoizedState=i;var l=function(e){var t=hb(v,null,null,0);return t.stateNode=e,t}(o);return l.return=e,e.child=l,Pc=e,Nc=null,!0}return!1;default:return!1}}function Bc(e){return 0!=(1&e.mode)&&0==(e.flags&tr)}function $c(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function qc(e){if(Ic){var t=Nc;if(!t)return Bc(e)&&(Uc(Pc,e),$c()),Vc(Pc,e),Ic=!1,void(Pc=e);var n=t;if(!Wc(e,t)){Bc(e)&&(Uc(Pc,e),$c()),t=mu(n);var r=Pc;if(!t||!Wc(e,t))return Vc(Pc,e),Ic=!1,void(Pc=e);jc(r,n)}}}function Yc(e){var t=e.stateNode,n=e.memoizedProps,r=function(e,t,n,r){return _u(n,e),n.mode,function(e,t,n){return e.nodeValue!==t}(e,t)}(t,n,e);if(r){var a=Pc;if(null!==a)switch(a.tag){case 3:a.stateNode.containerInfo;!function(e,t,n,r){Ds(t.nodeValue,n,r,!0)}(0,t,n,0!=(1&a.mode));break;case 5:a.type;var o=a.memoizedProps;a.stateNode;!function(e,t,n,r,a,o){!0!==t.suppressHydrationWarning&&Ds(r.nodeValue,a,o,!0)}(0,o,0,t,n,0!=(1&a.mode))}}return r}function Gc(e){var t=e.memoizedState,n=null!==t?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");!function(e,t){_u(t,e)}(n,e)}function Kc(e){var t=e.memoizedState,n=null!==t?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return function(e){for(var t=e.nextSibling,n=0;t;){if(8===t.nodeType){var r=t.data;if(r===Gs){if(0===n)return mu(t);n--}else r!==Ys&&r!==Qs&&r!==Ks||n++}t=t.nextSibling}return null}(n)}function Qc(e){for(var t=e.return;null!==t&&5!==t.tag&&3!==t.tag&&t.tag!==d;)t=t.return;Pc=t}function Xc(e){if(e!==Pc)return!1;if(!Ic)return Qc(e),Ic=!0,!1;if(3!==e.tag&&(5!==e.tag||"head"!==(n=e.type)&&"body"!==n&&!tu(e.type,e.memoizedProps))){var t=Nc;if(t)if(Bc(e))Zc(e),$c();else for(;t;)jc(e,t),t=mu(t)}var n;return Qc(e),Nc=e.tag===d?Kc(e):Pc?mu(e.stateNode):null,!0}function Zc(e){for(var t=Nc;t;)Hc(e,t),t=mu(t)}function Jc(){Pc=null,Nc=null,Ic=!1,Mc=!1}function ed(){null!==Oc&&(cy(Oc),Oc=null)}function td(){return Ic}function nd(e){null===Oc?Oc=[e]:Oc.push(e)}var rd=n.ReactCurrentBatchConfig;var ad={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},od=function(e){var t=[];return e.forEach((function(e){t.push(e)})),t.sort().join(", ")},id=[],ld=[],sd=[],ud=[],cd=[],dd=[],fd=new Set;ad.recordUnsafeLifecycleWarnings=function(e,t){fd.has(e.type)||("function"==typeof t.componentWillMount&&!0!==t.componentWillMount.__suppressDeprecationWarning&&id.push(e),8&e.mode&&"function"==typeof t.UNSAFE_componentWillMount&&ld.push(e),"function"==typeof t.componentWillReceiveProps&&!0!==t.componentWillReceiveProps.__suppressDeprecationWarning&&sd.push(e),8&e.mode&&"function"==typeof t.UNSAFE_componentWillReceiveProps&&ud.push(e),"function"==typeof t.componentWillUpdate&&!0!==t.componentWillUpdate.__suppressDeprecationWarning&&cd.push(e),8&e.mode&&"function"==typeof t.UNSAFE_componentWillUpdate&&dd.push(e))},ad.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;id.length>0&&(id.forEach((function(t){e.add(Ue(t)||"Component"),fd.add(t.type)})),id=[]);var t=new Set;ld.length>0&&(ld.forEach((function(e){t.add(Ue(e)||"Component"),fd.add(e.type)})),ld=[]);var n=new Set;sd.length>0&&(sd.forEach((function(e){n.add(Ue(e)||"Component"),fd.add(e.type)})),sd=[]);var r=new Set;ud.length>0&&(ud.forEach((function(e){r.add(Ue(e)||"Component"),fd.add(e.type)})),ud=[]);var i=new Set;cd.length>0&&(cd.forEach((function(e){i.add(Ue(e)||"Component"),fd.add(e.type)})),cd=[]);var l=new Set;(dd.length>0&&(dd.forEach((function(e){l.add(Ue(e)||"Component"),fd.add(e.type)})),dd=[]),t.size>0)&&o("Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n\nPlease update the following components: %s",od(t));r.size>0&&o("Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n\nPlease update the following components: %s",od(r));l.size>0&&o("Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n\nPlease update the following components: %s",od(l));e.size>0&&a("componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",od(e));n.size>0&&a("componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",od(n));i.size>0&&a("componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",od(i))};var pd=new Map,hd=new Set;function vd(e,t){if(e&&e.defaultProps){var n=Ee({},t),r=e.defaultProps;for(var a in r)void 0===n[a]&&(n[a]=r[a]);return n}return t}ad.recordLegacyContextWarning=function(e,t){var n=function(e){for(var t=null,n=e;null!==n;)8&n.mode&&(t=n),n=n.return;return t}(e);if(null!==n){if(!hd.has(e.type)){var r=pd.get(n);(null!=e.type.contextTypes||null!=e.type.childContextTypes||null!==t&&"function"==typeof t.getChildContext)&&(void 0===r&&(r=[],pd.set(n,r)),r.push(e))}}else o("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.")},ad.flushLegacyContextWarning=function(){pd.forEach((function(e,t){if(0!==e.length){var n=e[0],r=new Set;e.forEach((function(e){r.add(Ue(e)||"Component"),hd.add(e.type)}));var a=od(r);try{Ge(n),o("Legacy context API has been detected within a strict-mode tree.\n\nThe old API will be supported in all 16.x releases, but applications using it should migrate to the new version.\n\nPlease update the following components: %s\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context",a)}finally{Ye()}}}))},ad.discardPendingWarnings=function(){id=[],ld=[],sd=[],ud=[],cd=[],dd=[],pd=new Map};var md,gd=Wu(null);md={};var yd=null,bd=null,wd=null,kd=!1;function Sd(){yd=null,bd=null,wd=null,kd=!1}function xd(){kd=!0}function Ed(){kd=!1}function Td(e,t,n){$u(gd,t._currentValue,e),t._currentValue=n,void 0!==t._currentRenderer&&null!==t._currentRenderer&&t._currentRenderer!==md&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=md}function _d(e,t){var n=gd.current;Bu(gd,t),e._currentValue=n}function Cd(e,t,n){for(var r=e;null!==r;){var a=r.alternate;if(oo(r.childLanes,t)?null===a||oo(a.childLanes,t)||(a.childLanes=io(a.childLanes,t)):(r.childLanes=io(r.childLanes,t),null!==a&&(a.childLanes=io(a.childLanes,t))),r===n)break;r=r.return}r!==n&&o("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Dd(e,t,n){!function(e,t,n){var r=e.child;null!==r&&(r.return=e);for(;null!==r;){var a=void 0,o=r.dependencies;if(null!==o){a=r.child;for(var i=o.firstContext;null!==i;){if(i.context===t){if(1===r.tag){var s=to(n),u=Bd(Va,s);u.tag=jd;var c=r.updateQueue;if(null===c);else{var d=c.shared,f=d.pending;null===f?u.next=u:(u.next=f.next,f.next=u),d.pending=u}}r.lanes=io(r.lanes,n);var p=r.alternate;null!==p&&(p.lanes=io(p.lanes,n)),Cd(r.return,n,e),o.lanes=io(o.lanes,n);break}i=i.next}}else if(r.tag===l)a=r.type===e.type?null:r.child;else if(r.tag===v){var h=r.return;if(null===h)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");h.lanes=io(h.lanes,n);var m=h.alternate;null!==m&&(m.lanes=io(m.lanes,n)),Cd(h,n,e),a=r.sibling}else a=r.child;if(null!==a)a.return=r;else for(a=r;null!==a;){if(a===e){a=null;break}var g=a.sibling;if(null!==g){g.return=a.return,a=g;break}a=a.return}r=a}}(e,t,n)}function Rd(e,t){yd=e,bd=null,wd=null;var n=e.dependencies;null!==n&&(null!==n.firstContext&&(ao(n.lanes,t)&&Qv(),n.firstContext=null))}function Pd(e){kd&&o("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var t=e._currentValue;if(wd===e);else{var n={context:e,memoizedValue:t,next:null};if(null===bd){if(null===yd)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");bd=n,yd.dependencies={lanes:0,firstContext:n}}else bd=bd.next=n}return t}var Nd=null;function Id(e){null===Nd?Nd=[e]:Nd.push(e)}function Md(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,Id(t)):(n.next=a.next,a.next=n),t.interleaved=n,Ad(e,r)}function Od(e,t,n,r){var a=t.interleaved;null===a?(n.next=n,Id(t)):(n.next=a.next,a.next=n),t.interleaved=n}function Ld(e,t){return Ad(e,t)}var zd=Ad;function Ad(e,t){e.lanes=io(e.lanes,t);var n=e.alternate;null!==n&&(n.lanes=io(n.lanes,t)),null===n&&0!=(4098&e.flags)&&Wy(e);for(var r=e,a=e.return;null!==a;)a.childLanes=io(a.childLanes,t),null!==(n=a.alternate)?n.childLanes=io(n.childLanes,t):0!=(4098&a.flags)&&Wy(e),r=a,a=a.return;return 3===r.tag?r.stateNode:null}var Fd,Hd,jd=2,Ud=!1;function Vd(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null};e.updateQueue=t}function Wd(e,t){var n=t.updateQueue,r=e.updateQueue;if(n===r){var a={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects};t.updateQueue=a}}function Bd(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $d(e,t,n){var r=e.updateQueue;if(null===r)return null;var a=r.shared;if(Hd!==a||Fd||(o("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),Fd=!0),0!=(2&kg)){var i=a.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),a.pending=t,zd(e,n)}return function(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,Id(t)):(n.next=a.next,a.next=n),t.interleaved=n,Ad(e,r)}(e,a,t,n)}function qd(e,t,n){var r=t.updateQueue;if(null!==r){var a=r.shared;if(Za(n)){var o=a.lanes,i=io(o=so(o,e.pendingLanes),n);a.lanes=i,po(e,i)}}}function Yd(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r){var a=r.updateQueue;if(n===a){var o=null,i=null,l=n.firstBaseUpdate;if(null!==l){var s=l;do{var u={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};null===i?o=i=u:(i.next=u,i=u),s=s.next}while(null!==s);null===i?o=i=t:(i.next=t,i=t)}else o=i=t;return n={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:a.shared,effects:a.effects},void(e.updateQueue=n)}}var c=n.lastBaseUpdate;null===c?n.firstBaseUpdate=t:c.next=t,n.lastBaseUpdate=t}function Gd(e,t,n,r,a,o){switch(n.tag){case 1:var i=n.payload;if("function"==typeof i){xd();var l=i.call(o,r,a);if(8&e.mode){Qr(!0);try{i.call(o,r,a)}finally{Qr(!1)}}return Ed(),l}return i;case 3:e.flags=-65537&e.flags|tr;case 0:var s,u=n.payload;if("function"==typeof u){if(xd(),s=u.call(o,r,a),8&e.mode){Qr(!0);try{u.call(o,r,a)}finally{Qr(!1)}}Ed()}else s=u;return null==s?r:Ee({},r,s);case jd:return Ud=!0,r}return r}function Kd(e,t,n,r){var a=e.updateQueue;Ud=!1,Hd=a.shared;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,l=a.shared.pending;if(null!==l){a.shared.pending=null;var s=l,u=s.next;s.next=null,null===i?o=u:i.next=u,i=s;var c=e.alternate;if(null!==c){var d=c.updateQueue,f=d.lastBaseUpdate;f!==i&&(null===f?d.firstBaseUpdate=u:f.next=u,d.lastBaseUpdate=s)}}if(null!==o){for(var p=a.baseState,h=0,v=null,m=null,g=null,y=o;;){var b=y.lane,w=y.eventTime;if(oo(r,b)){if(null!==g){var k={eventTime:w,lane:0,tag:y.tag,payload:y.payload,callback:y.callback,next:null};g=g.next=k}if(p=Gd(e,0,y,p,t,n),null!==y.callback&&0!==y.lane){e.flags|=64;var S=a.effects;null===S?a.effects=[y]:S.push(y)}}else{var x={eventTime:w,lane:b,tag:y.tag,payload:y.payload,callback:y.callback,next:null};null===g?(m=g=x,v=p):g=g.next=x,h=io(h,b)}if(null===(y=y.next)){if(null===(l=a.shared.pending))break;var E=l,T=E.next;E.next=null,y=T,a.lastBaseUpdate=E,a.shared.pending=null}}null===g&&(v=p),a.baseState=v,a.firstBaseUpdate=m,a.lastBaseUpdate=g;var _=a.shared.interleaved;if(null!==_){var C=_;do{h=io(h,C.lane),C=C.next}while(C!==_)}else null===o&&(a.shared.lanes=0);Sy(h),e.lanes=h,e.memoizedState=p}Hd=null}function Qd(e,t){if("function"!=typeof e)throw new Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function Xd(){Ud=!1}function Zd(){return Ud}function Jd(e,t,n){var r=t.effects;if(t.effects=null,null!==r)for(var a=0;a<r.length;a++){var o=r[a],i=o.callback;null!==i&&(o.callback=null,Qd(i,n))}}Fd=!1,Hd=null;var ef,tf,nf,rf,af,of,lf,sf,uf,cf,df={},ff=(new e.Component).refs;ef=new Set,tf=new Set,nf=new Set,rf=new Set,sf=new Set,af=new Set,uf=new Set,cf=new Set;var pf=new Set;function hf(e,t,n,r){var a=e.memoizedState,o=n(r,a);if(8&e.mode){Qr(!0);try{o=n(r,a)}finally{Qr(!1)}}of(t,o);var i=null==o?a:Ee({},a,o);(e.memoizedState=i,0===e.lanes)&&(e.updateQueue.baseState=i)}lf=function(e,t){if(null!==e&&"function"!=typeof e){var n=t+"_"+e;pf.has(n)||(pf.add(n),o("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},of=function(e,t){if(void 0===t){var n=He(e)||"Component";af.has(n)||(af.add(n),o("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))}},Object.defineProperty(df,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(df);var vf,mf,gf,yf,bf,wf={isMounted:function(e){var t=Sr.current;if(null!==t&&1===t.tag){var n=t,r=n.stateNode;r._warnedAboutRefsInRender||o("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Ue(n)||"A component"),r._warnedAboutRefsInRender=!0}var a=Jn(e);return!!a&&xr(a)===a},enqueueSetState:function(e,t,n){var r=Jn(e),a=ry(),o=ay(r),i=Bd(a,o);i.payload=t,null!=n&&(lf(n,"setState"),i.callback=n);var l=$d(r,i,o);null!==l&&(iy(l,r,o,a),qd(l,r,o)),ua(r,o)},enqueueReplaceState:function(e,t,n){var r=Jn(e),a=ry(),o=ay(r),i=Bd(a,o);i.tag=1,i.payload=t,null!=n&&(lf(n,"replaceState"),i.callback=n);var l=$d(r,i,o);null!==l&&(iy(l,r,o,a),qd(l,r,o)),ua(r,o)},enqueueForceUpdate:function(e,t){var n=Jn(e),r=ry(),a=ay(n),o=Bd(r,a);o.tag=jd,null!=t&&(lf(t,"forceUpdate"),o.callback=t);var i=$d(n,o,a);null!==i&&(iy(i,n,a,r),qd(i,n,a)),function(e,t){null!==Yr&&"function"==typeof Yr.markForceUpdateScheduled&&Yr.markForceUpdateScheduled(e,t)}(n,a)}};function kf(e,t,n,r,a,i,l){var s=e.stateNode;if("function"==typeof s.shouldComponentUpdate){var u=s.shouldComponentUpdate(r,i,l);if(8&e.mode){Qr(!0);try{u=s.shouldComponentUpdate(r,i,l)}finally{Qr(!1)}}return void 0===u&&o("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",He(t)||"Component"),u}return!t.prototype||!t.prototype.isPureReactComponent||(!ml(n,r)||!ml(a,i))}function Sf(e,t){var n;t.updater=wf,e.stateNode=t,n=e,t._reactInternals=n,t._reactInternalInstance=df}function xf(e,t,n){var r=!1,a=qu,i=qu,l=t.contextType;if("contextType"in t&&(!(null===l||void 0!==l&&l.$$typeof===se&&void 0===l._context)&&!cf.has(t))){cf.add(t);var s="";s=void 0===l?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":"object"!=typeof l?" However, it is set to a "+typeof l+".":l.$$typeof===le?" Did you accidentally pass the Context.Provider instead?":void 0!==l._context?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(l).join(", ")+"}.",o("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",He(t)||"Component",s)}if("object"==typeof l&&null!==l)i=Pd(l);else{a=Qu(0,t,!0);var u=t.contextTypes;i=(r=null!=u)?Zu(e,a):qu}var c=new t(n,i);if(8&e.mode){Qr(!0);try{c=new t(n,i)}finally{Qr(!1)}}var d=e.memoizedState=null!==c.state&&void 0!==c.state?c.state:null;if(Sf(e,c),"function"==typeof t.getDerivedStateFromProps&&null===d){var f=He(t)||"Component";tf.has(f)||(tf.add(f),o("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",f,null===c.state?"null":"undefined",f))}if("function"==typeof t.getDerivedStateFromProps||"function"==typeof c.getSnapshotBeforeUpdate){var p=null,h=null,v=null;if("function"==typeof c.componentWillMount&&!0!==c.componentWillMount.__suppressDeprecationWarning?p="componentWillMount":"function"==typeof c.UNSAFE_componentWillMount&&(p="UNSAFE_componentWillMount"),"function"==typeof c.componentWillReceiveProps&&!0!==c.componentWillReceiveProps.__suppressDeprecationWarning?h="componentWillReceiveProps":"function"==typeof c.UNSAFE_componentWillReceiveProps&&(h="UNSAFE_componentWillReceiveProps"),"function"==typeof c.componentWillUpdate&&!0!==c.componentWillUpdate.__suppressDeprecationWarning?v="componentWillUpdate":"function"==typeof c.UNSAFE_componentWillUpdate&&(v="UNSAFE_componentWillUpdate"),null!==p||null!==h||null!==v){var m=He(t)||"Component",g="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";rf.has(m)||(rf.add(m),o("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://reactjs.org/link/unsafe-component-lifecycles",m,g,null!==p?"\n "+p:"",null!==h?"\n "+h:"",null!==v?"\n "+v:""))}}return r&&Xu(e,a,i),c}function Ef(e,t,n,r){var a=t.state;if("function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==a){var i=Ue(e)||"Component";ef.has(i)||(ef.add(i),o("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",i)),wf.enqueueReplaceState(t,t.state,null)}}function Tf(e,t,n,r){!function(e,t,n){var r=e.stateNode,a=He(t)||"Component";r.render||(t.prototype&&"function"==typeof t.prototype.render?o("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",a):o("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",a)),!r.getInitialState||r.getInitialState.isReactClassApproved||r.state||o("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",a),r.getDefaultProps&&!r.getDefaultProps.isReactClassApproved&&o("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",a),r.propTypes&&o("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",a),r.contextType&&o("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",a),r.contextTypes&&o("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",a),t.contextType&&t.contextTypes&&!uf.has(t)&&(uf.add(t),o("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",a)),"function"==typeof r.componentShouldUpdate&&o("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",a),t.prototype&&t.prototype.isPureReactComponent&&void 0!==r.shouldComponentUpdate&&o("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",He(t)||"A pure component"),"function"==typeof r.componentDidUnmount&&o("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",a),"function"==typeof r.componentDidReceiveProps&&o("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",a),"function"==typeof r.componentWillRecieveProps&&o("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",a),"function"==typeof r.UNSAFE_componentWillRecieveProps&&o("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",a);var i=r.props!==n;void 0!==r.props&&i&&o("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",a,a),r.defaultProps&&o("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",a,a),"function"!=typeof r.getSnapshotBeforeUpdate||"function"==typeof r.componentDidUpdate||nf.has(t)||(nf.add(t),o("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",He(t))),"function"==typeof r.getDerivedStateFromProps&&o("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",a),"function"==typeof r.getDerivedStateFromError&&o("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",a),"function"==typeof t.getSnapshotBeforeUpdate&&o("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",a);var l=r.state;l&&("object"!=typeof l||xt(l))&&o("%s.state: must be set to an object or null",a),"function"==typeof r.getChildContext&&"object"!=typeof t.childContextTypes&&o("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",a)}(e,t,n);var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=ff,Vd(e);var i=t.contextType;if("object"==typeof i&&null!==i)a.context=Pd(i);else{var l=Qu(0,t,!0);a.context=Zu(e,l)}if(a.state===n){var s=He(t)||"Component";sf.has(s)||(sf.add(s),o("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",s))}8&e.mode&&ad.recordLegacyContextWarning(e,a),ad.recordUnsafeLifecycleWarnings(e,a),a.state=e.memoizedState;var u=t.getDerivedStateFromProps;if("function"==typeof u&&(hf(e,t,u,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(!function(e,t){var n=t.state;"function"==typeof t.componentWillMount&&t.componentWillMount(),"function"==typeof t.UNSAFE_componentWillMount&&t.UNSAFE_componentWillMount(),n!==t.state&&(o("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Ue(e)||"Component"),wf.enqueueReplaceState(t,t.state,null))}(e,a),Kd(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount){var c=4;c|=hr,0!=(e.mode&ca)&&(c|=vr),e.flags|=c}}var _f;function Cf(e,t,n){var r=n.ref;if(null!==r&&"function"!=typeof r&&"object"!=typeof r){if(8&e.mode&&(!n._owner||!n._self||n._owner.stateNode===n._self)){var a=Ue(e)||"Component";gf[a]||(o('A string ref, "%s", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',r),gf[a]=!0)}if(n._owner){var i,l=n._owner;if(l){var s=l;if(1!==s.tag)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");i=s.stateNode}if(!i)throw new Error("Missing owner for string ref "+r+". This error is likely caused by a bug in React. Please file an issue.");var u=i;!function(e,t){if(P(e))o("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,R(e)),I(e)}(r,"ref");var c=""+r;if(null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===c)return t.ref;var d=function(e){var t=u.refs;t===ff&&(t=u.refs={}),null===e?delete t[c]:t[c]=e};return d._stringRef=c,d}if("string"!=typeof r)throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!n._owner)throw new Error("Element ref was specified as a string ("+r+") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://reactjs.org/link/refs-must-have-owner for more information.")}return r}function Df(e,t){var n=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}function Rf(e){var t=Ue(e)||"Component";bf[t]||(bf[t]=!0,o("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it."))}function Pf(e){var t=e._payload;return(0,e._init)(t)}function Nf(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=er):r.push(n)}}function n(n,r){if(!e)return null;for(var a=r;null!==a;)t(n,a),a=a.sibling;return null}function r(e,t){for(var n=new Map,r=t;null!==r;)null!==r.key?n.set(r.key,r):n.set(r.index,r),r=r.sibling;return n}function a(e,t){var n=mb(e,t);return n.index=0,n.sibling=null,n}function i(t,n,r){if(t.index=r,!e)return t.flags|=fr,n;var a=t.alternate;if(null!==a){var o=a.index;return o<n?(t.flags|=2,n):o}return t.flags|=2,n}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){if(null===t||6!==t.tag){var o=Sb(n,e.mode,r);return o.return=e,o}var i=a(t,n);return i.return=e,i}function u(e,t,n,r){var o=n.type;if(o===ae)return d(e,t,n.props.children,r,n.key);if(null!==t&&(t.elementType===o||ab(t,n)||"object"==typeof o&&null!==o&&o.$$typeof===pe&&Pf(o)===t.type)){var i=a(t,n.props);return i.ref=Cf(e,t,n),i.return=e,i._debugSource=n._source,i._debugOwner=n._owner,i}var l=bb(n,e.mode,r);return l.ref=Cf(e,t,n),l.return=e,l}function c(e,t,n,r){if(null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation){var o=xb(n,e.mode,r);return o.return=e,o}var i=a(t,n.children||[]);return i.return=e,i}function d(e,t,n,r,o){if(null===t||7!==t.tag){var i=wb(n,e.mode,r,o);return i.return=e,i}var l=a(t,n);return l.return=e,l}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t){var r=Sb(""+t,e.mode,n);return r.return=e,r}if("object"==typeof t&&null!==t){switch(t.$$typeof){case ne:var a=bb(t,e.mode,n);return a.ref=Cf(e,null,t),a.return=e,a;case re:var o=xb(t,e.mode,n);return o.return=e,o;case pe:var i=t._payload;return f(e,(0,t._init)(i),n)}if(xt(t)||me(t)){var l=wb(t,e.mode,n,null);return l.return=e,l}Df(0,t)}return"function"==typeof t&&Rf(e),null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==a?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ne:return n.key===a?u(e,t,n,r):null;case re:return n.key===a?c(e,t,n,r):null;case pe:var o=n._payload;return p(e,t,(0,n._init)(o),r)}if(xt(n)||me(n))return null!==a?null:d(e,t,n,r,null);Df(0,n)}return"function"==typeof n&&Rf(e),null}function h(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ne:return u(t,e.get(null===r.key?n:r.key)||null,r,a);case re:return c(t,e.get(null===r.key?n:r.key)||null,r,a);case pe:var o=r._payload;return h(e,t,n,(0,r._init)(o),a)}if(xt(r)||me(r))return d(t,e.get(n)||null,r,a,null);Df(0,r)}return"function"==typeof r&&Rf(t),null}function v(e,t,n){if("object"!=typeof e||null===e)return t;switch(e.$$typeof){case ne:case re:_f(e,n);var r=e.key;if("string"!=typeof r)break;if(null===t){(t=new Set).add(r);break}if(!t.has(r)){t.add(r);break}o("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",r);break;case pe:var a=e._payload;v((0,e._init)(a),t,n)}return t}return function s(u,c,d,m){if("object"==typeof d&&null!==d&&d.type===ae&&null===d.key&&(d=d.props.children),"object"==typeof d&&null!==d){switch(d.$$typeof){case ne:return l(function(e,r,o,i){for(var l=o.key,s=r;null!==s;){if(s.key===l){var u=o.type;if(u===ae){if(7===s.tag){n(e,s.sibling);var c=a(s,o.props.children);return c.return=e,c._debugSource=o._source,c._debugOwner=o._owner,c}}else if(s.elementType===u||ab(s,o)||"object"==typeof u&&null!==u&&u.$$typeof===pe&&Pf(u)===s.type){n(e,s.sibling);var d=a(s,o.props);return d.ref=Cf(e,s,o),d.return=e,d._debugSource=o._source,d._debugOwner=o._owner,d}n(e,s);break}t(e,s),s=s.sibling}if(o.type===ae){var f=wb(o.props.children,e.mode,i,o.key);return f.return=e,f}var p=bb(o,e.mode,i);return p.ref=Cf(e,r,o),p.return=e,p}(u,c,d,m));case re:return l(function(e,r,o,i){for(var l=o.key,s=r;null!==s;){if(s.key===l){if(4===s.tag&&s.stateNode.containerInfo===o.containerInfo&&s.stateNode.implementation===o.implementation){n(e,s.sibling);var u=a(s,o.children||[]);return u.return=e,u}n(e,s);break}t(e,s),s=s.sibling}var c=xb(o,e.mode,i);return c.return=e,c}(u,c,d,m));case pe:var g=d._payload;return s(u,c,(0,d._init)(g),m)}if(xt(d))return function(a,o,l,s){for(var u=null,c=0;c<l.length;c++)u=v(l[c],u,a);for(var d=null,m=null,g=o,y=0,b=0,w=null;null!==g&&b<l.length;b++){g.index>b?(w=g,g=null):w=g.sibling;var k=p(a,g,l[b],s);if(null===k){null===g&&(g=w);break}e&&g&&null===k.alternate&&t(a,g),y=i(k,y,b),null===m?d=k:m.sibling=k,m=k,g=w}if(b===l.length)return n(a,g),td()&&Ec(a,b),d;if(null===g){for(;b<l.length;b++){var S=f(a,l[b],s);null!==S&&(y=i(S,y,b),null===m?d=S:m.sibling=S,m=S)}return td()&&Ec(a,b),d}for(var x=r(0,g);b<l.length;b++){var E=h(x,a,b,l[b],s);null!==E&&(e&&null!==E.alternate&&x.delete(null===E.key?b:E.key),y=i(E,y,b),null===m?d=E:m.sibling=E,m=E)}return e&&x.forEach((function(e){return t(a,e)})),td()&&Ec(a,b),d}(u,c,d,m);if(me(d))return function(a,l,s,u){var c=me(s);if("function"!=typeof c)throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");"function"==typeof Symbol&&"Generator"===s[Symbol.toStringTag]&&(mf||o("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),mf=!0),s.entries===c&&(vf||o("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),vf=!0);var d=c.call(s);if(d)for(var m=null,g=d.next();!g.done;g=d.next())m=v(g.value,m,a);var y=c.call(s);if(null==y)throw new Error("An iterable object provided no iterator.");for(var b=null,w=null,k=l,S=0,x=0,E=null,T=y.next();null!==k&&!T.done;x++,T=y.next()){k.index>x?(E=k,k=null):E=k.sibling;var _=p(a,k,T.value,u);if(null===_){null===k&&(k=E);break}e&&k&&null===_.alternate&&t(a,k),S=i(_,S,x),null===w?b=_:w.sibling=_,w=_,k=E}if(T.done)return n(a,k),td()&&Ec(a,x),b;if(null===k){for(;!T.done;x++,T=y.next()){var C=f(a,T.value,u);null!==C&&(S=i(C,S,x),null===w?b=C:w.sibling=C,w=C)}return td()&&Ec(a,x),b}for(var D=r(0,k);!T.done;x++,T=y.next()){var R=h(D,a,x,T.value,u);null!==R&&(e&&null!==R.alternate&&D.delete(null===R.key?x:R.key),S=i(R,S,x),null===w?b=R:w.sibling=R,w=R)}return e&&D.forEach((function(e){return t(a,e)})),td()&&Ec(a,x),b}(u,c,d,m);Df(0,d)}return"string"==typeof d&&""!==d||"number"==typeof d?l(function(e,t,r,o){if(null!==t&&6===t.tag){n(e,t.sibling);var i=a(t,r);return i.return=e,i}n(e,t);var l=Sb(r,e.mode,o);return l.return=e,l}(u,c,""+d,m)):("function"==typeof d&&Rf(u),n(u,c))}}vf=!1,mf=!1,gf={},yf={},bf={},_f=function(e,t){if(null!==e&&"object"==typeof e&&e._store&&!e._store.validated&&null==e.key){if("object"!=typeof e._store)throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");e._store.validated=!0;var n=Ue(t)||"Component";yf[n]||(yf[n]=!0,o('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};var If=Nf(!0),Mf=Nf(!1);function Of(e,t){for(var n=e.child;null!==n;)gb(n,t),n=n.sibling}var Lf={},zf=Wu(Lf),Af=Wu(Lf),Ff=Wu(Lf);function Hf(e){if(e===Lf)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function jf(){return Hf(Ff.current)}function Uf(e,t){$u(Ff,t,e),$u(Af,e,e),$u(zf,Lf,e);var n=function(e){var t,n,r=e.nodeType;switch(r){case 9:case 11:t=9===r?"#document":"#fragment";var a=e.documentElement;n=a?a.namespaceURI:At(null,"");break;default:var o=8===r?e.parentNode:e;n=At(o.namespaceURI||null,t=o.tagName)}var i=t.toLowerCase();return{namespace:n,ancestorInfo:js(null,i)}}(t);Bu(zf,e),$u(zf,n,e)}function Vf(e){Bu(zf,e),Bu(Af,e),Bu(Ff,e)}function Wf(){return Hf(zf.current)}function Bf(e){Hf(Ff.current);var t,n,r,a=Hf(zf.current),o=(t=a,n=e.type,{namespace:At((r=t).namespace,n),ancestorInfo:js(r.ancestorInfo,n)});a!==o&&($u(Af,e,e),$u(zf,o,e))}function $f(e){Af.current===e&&(Bu(zf,e),Bu(Af,e))}var qf=Wu(0);function Yf(e,t){return 0!=(e&t)}function Gf(e){return 1&e}function Kf(e,t){return 1&e|t}function Qf(e,t){$u(qf,t,e)}function Xf(e){Bu(qf,e)}function Zf(e,t){var n=e.memoizedState;return null!==n?null!==n.dehydrated:(e.memoizedProps,!0)}function Jf(e){for(var t=e;null!==t;){if(t.tag===d){var n=t.memoizedState;if(null!==n){var r=n.dehydrated;if(null===r||pu(r)||hu(r))return t}}else if(t.tag===m&&void 0!==t.memoizedProps.revealOrder){if(0!=(t.flags&tr))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)return null;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ep=[];function tp(){for(var e=0;e<ep.length;e++){ep[e]._workInProgressVersionPrimary=null}ep.length=0}function np(e,t){var n=(0,t._getVersion)(t._source);null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)}var rp,ap,op=n.ReactCurrentDispatcher,ip=n.ReactCurrentBatchConfig;rp=new Set;var lp=0,sp=null,up=null,cp=null,dp=!1,fp=!1,pp=0,hp=0,vp=null,mp=null,gp=-1,yp=!1;function bp(){var e=vp;null===mp?mp=[e]:mp.push(e)}function wp(){var e=vp;null!==mp&&(gp++,mp[gp]!==e&&function(e){var t=Ue(sp);if(!rp.has(t)&&(rp.add(t),null!==mp)){for(var n="",r=30,a=0;a<=gp;a++){for(var i=mp[a],l=a===gp?e:i,s=a+1+". "+i;s.length<r;)s+=" ";n+=s+=l+"\n"}o("React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n Previous render Next render\n ------------------------------------------------------\n%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",t,n)}}(e))}function kp(e){null==e||xt(e)||o("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",vp,typeof e)}function Sp(){throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.")}function xp(e,t){if(yp)return!1;if(null===t)return o("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",vp),!1;e.length!==t.length&&o("The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s",vp,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!vl(e[n],t[n]))return!1;return!0}function Ep(e,t,n,r,a,i){lp=i,sp=t,mp=null!==e?e._debugHookTypes:null,gp=-1,yp=null!==e&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=0,null!==e&&null!==e.memoizedState?op.current=Ph:op.current=null!==mp?Rh:Dh;var l=n(r,a);if(fp){var s=0;do{if(fp=!1,pp=0,s>=25)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");s+=1,yp=!1,up=null,cp=null,t.updateQueue=null,gp=-1,op.current=Nh,l=n(r,a)}while(fp)}op.current=Ch,t._debugHookTypes=mp;var u=null!==up&&null!==up.next;if(lp=0,sp=null,up=null,cp=null,vp=null,mp=null,gp=-1,null!==e&&(e.flags&kr)!=(t.flags&kr)&&0!=(1&e.mode)&&o("Internal React error: Expected static flag was missing. Please notify the React team."),dp=!1,u)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return l}function Tp(){var e=0!==pp;return pp=0,e}function _p(e,t,n){t.updateQueue=e.updateQueue,0!=(t.mode&ca)?t.flags&=-50333701:t.flags&=-2053,e.lanes=lo(e.lanes,n)}function Cp(){if(op.current=Ch,dp){for(var e=sp.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}dp=!1}lp=0,sp=null,up=null,cp=null,mp=null,gp=-1,vp=null,yh=!1,fp=!1,pp=0}function Dp(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===cp?sp.memoizedState=cp=e:cp=cp.next=e,cp}function Rp(){var e,t;if(null===up){var n=sp.alternate;e=null!==n?n.memoizedState:null}else e=up.next;if(null!==(t=null===cp?sp.memoizedState:cp.next))t=(cp=t).next,up=e;else{if(null===e)throw new Error("Rendered more hooks than during the previous render.");var r={memoizedState:(up=e).memoizedState,baseState:up.baseState,baseQueue:up.baseQueue,queue:up.queue,next:null};null===cp?sp.memoizedState=cp=r:cp=cp.next=r}return cp}function Pp(e,t){return"function"==typeof t?t(e):t}function Np(e,t,n){var r,a=Dp();r=void 0!==n?n(t):t,a.memoizedState=a.baseState=r;var o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r};a.queue=o;var i=o.dispatch=kh.bind(null,sp,o);return[a.memoizedState,i]}function Ip(e,t,n){var r=Rp(),a=r.queue;if(null===a)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");a.lastRenderedReducer=e;var i=up,l=i.baseQueue,s=a.pending;if(null!==s){if(null!==l){var u=l.next,c=s.next;l.next=c,s.next=u}i.baseQueue!==l&&o("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),i.baseQueue=l=s,a.pending=null}if(null!==l){var d=l.next,f=i.baseState,p=null,h=null,v=null,m=d;do{var g=m.lane;if(oo(lp,g)){if(null!==v){var y={lane:0,action:m.action,hasEagerState:m.hasEagerState,eagerState:m.eagerState,next:null};v=v.next=y}if(m.hasEagerState)f=m.eagerState;else f=e(f,m.action)}else{var b={lane:g,action:m.action,hasEagerState:m.hasEagerState,eagerState:m.eagerState,next:null};null===v?(h=v=b,p=f):v=v.next=b,sp.lanes=io(sp.lanes,g),Sy(g)}m=m.next}while(null!==m&&m!==d);null===v?p=f:v.next=h,vl(f,r.memoizedState)||Qv(),r.memoizedState=f,r.baseState=p,r.baseQueue=v,a.lastRenderedState=f}var w=a.interleaved;if(null!==w){var k=w;do{var S=k.lane;sp.lanes=io(sp.lanes,S),Sy(S),k=k.next}while(k!==w)}else null===l&&(a.lanes=0);var x=a.dispatch;return[r.memoizedState,x]}function Mp(e,t,n){var r=Rp(),a=r.queue;if(null===a)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");a.lastRenderedReducer=e;var o=a.dispatch,i=a.pending,l=r.memoizedState;if(null!==i){a.pending=null;var s=i.next,u=s;do{l=e(l,u.action),u=u.next}while(u!==s);vl(l,r.memoizedState)||Qv(),r.memoizedState=l,null===r.baseQueue&&(r.baseState=l),a.lastRenderedState=l}return[l,o]}function Op(e,t,n){var r,a=sp,i=Dp();if(td()){if(void 0===n)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");r=n(),ap||r!==n()&&(o("The result of getServerSnapshot should be cached to avoid an infinite loop"),ap=!0)}else{if(r=t(),!ap){var l=t();vl(r,l)||(o("The result of getSnapshot should be cached to avoid an infinite loop"),ap=!0)}var s=ny();if(null===s)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Xa(0,lp)||zp(a,t,r)}i.memoizedState=r;var u={value:r,getSnapshot:t};return i.queue=u,Kp(Fp.bind(null,a,u,e),[e]),a.flags|=or,Bp(9,Ap.bind(null,a,u,r,t),void 0,null),r}function Lp(e,t,n){var r=sp,a=Rp(),i=t();if(!ap){var l=t();vl(i,l)||(o("The result of getSnapshot should be cached to avoid an infinite loop"),ap=!0)}var s=a.memoizedState,u=!vl(s,i);u&&(a.memoizedState=i,Qv());var c=a.queue;if(Qp(Fp.bind(null,r,c,e),[e]),c.getSnapshot!==t||u||null!==cp&&1&cp.memoizedState.tag){r.flags|=or,Bp(9,Ap.bind(null,r,c,i,t),void 0,null);var d=ny();if(null===d)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Xa(0,lp)||zp(r,t,i)}return i}function zp(e,t,n){e.flags|=sr;var r={getSnapshot:t,value:n},a=sp.updateQueue;if(null===a)a={lastEffect:null,stores:null},sp.updateQueue=a,a.stores=[r];else{var o=a.stores;null===o?a.stores=[r]:o.push(r)}}function Ap(e,t,n,r){t.value=n,t.getSnapshot=r,Hp(t)&&jp(e)}function Fp(e,t,n){return n((function(){Hp(t)&&jp(e)}))}function Hp(e){var t=e.getSnapshot,n=e.value;try{var r=t();return!vl(n,r)}catch(e){return!0}}function jp(e){var t=Ld(e,1);null!==t&&iy(t,e,1,Va)}function Up(e){var t=Dp();"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e;var n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Pp,lastRenderedState:e};t.queue=n;var r=n.dispatch=Sh.bind(null,sp,n);return[t.memoizedState,r]}function Vp(e){return Ip(Pp)}function Wp(e){return Mp(Pp)}function Bp(e,t,n,r){var a={tag:e,create:t,destroy:n,deps:r,next:null},o=sp.updateQueue;if(null===o)o={lastEffect:null,stores:null},sp.updateQueue=o,o.lastEffect=a.next=a;else{var i=o.lastEffect;if(null===i)o.lastEffect=a.next=a;else{var l=i.next;i.next=a,a.next=l,o.lastEffect=a}}return a}function $p(e){var t={current:e};return Dp().memoizedState=t,t}function qp(e){return Rp().memoizedState}function Yp(e,t,n,r){var a=Dp(),o=void 0===r?null:r;sp.flags|=e,a.memoizedState=Bp(1|t,n,void 0,o)}function Gp(e,t,n,r){var a=Rp(),o=void 0===r?null:r,i=void 0;if(null!==up){var l=up.memoizedState;if(i=l.destroy,null!==o)if(xp(o,l.deps))return void(a.memoizedState=Bp(t,n,i,o))}sp.flags|=e,a.memoizedState=Bp(1|t,n,i,o)}function Kp(e,t){return 0!=(sp.mode&ca)?Yp(41945088,8,e,t):Yp(8390656,8,e,t)}function Qp(e,t){return Gp(or,8,e,t)}function Xp(e,t){return Yp(4,2,e,t)}function Zp(e,t){return Gp(4,2,e,t)}function Jp(e,t){var n=4;return n|=hr,0!=(sp.mode&ca)&&(n|=vr),Yp(n,4,e,t)}function eh(e,t){return Gp(4,4,e,t)}function th(e,t){if("function"==typeof t){var n=t,r=e();return n(r),function(){n(null)}}if(null!=t){var a=t;a.hasOwnProperty("current")||o("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(a).join(", ")+"}");var i=e();return a.current=i,function(){a.current=null}}}function nh(e,t,n){"function"!=typeof t&&o("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null");var r=null!=n?n.concat([e]):null,a=4;return a|=hr,0!=(sp.mode&ca)&&(a|=vr),Yp(a,4,th.bind(null,t,e),r)}function rh(e,t,n){"function"!=typeof t&&o("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null");var r=null!=n?n.concat([e]):null;return Gp(4,4,th.bind(null,t,e),r)}function ah(e,t){}var oh=ah;function ih(e,t){var n=void 0===t?null:t;return Dp().memoizedState=[e,n],e}function lh(e,t){var n=Rp(),r=void 0===t?null:t,a=n.memoizedState;if(null!==a&&(null!==r&&xp(r,a[1])))return a[0];return n.memoizedState=[e,r],e}function sh(e,t){var n=Dp(),r=void 0===t?null:t,a=e();return n.memoizedState=[a,r],a}function uh(e,t){var n=Rp(),r=void 0===t?null:t,a=n.memoizedState;if(null!==a&&(null!==r&&xp(r,a[1])))return a[0];var o=e();return n.memoizedState=[o,r],o}function ch(e){return Dp().memoizedState=e,e}function dh(e){return ph(Rp(),up.memoizedState,e)}function fh(e){var t=Rp();return null===up?(t.memoizedState=e,e):ph(t,up.memoizedState,e)}function ph(e,t,n){if(!(0==(21&lp))){if(!vl(n,t)){var r=Ja();sp.lanes=io(sp.lanes,r),Sy(r),e.baseState=!0}return t}return e.baseState&&(e.baseState=!1,Qv()),e.memoizedState=n,n}function hh(e,t,n){var r,o,i=_o();Co((o=So,0!==(r=i)&&r<o?r:o)),e(!0);var l=ip.transition;ip.transition={};var s=ip.transition;ip.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(Co(i),ip.transition=l,null===l&&s._updatedFibers)s._updatedFibers.size>10&&a("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),s._updatedFibers.clear()}}function vh(){var e=Up(!1),t=e[0],n=e[1],r=hh.bind(null,n);return Dp().memoizedState=r,[t,r]}function mh(){return[Vp()[0],Rp().memoizedState]}function gh(){return[Wp()[0],Rp().memoizedState]}var yh=!1;function bh(){var e,t=Dp(),n=ny().identifierPrefix;if(td()){e=":"+n+"R"+xc();var r=pp++;r>0&&(e+="H"+r.toString(32)),e+=":"}else{e=":"+n+"r"+(hp++).toString(32)+":"}return t.memoizedState=e,e}function wh(){return Rp().memoizedState}function kh(e,t,n){"function"==typeof arguments[3]&&o("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var r=ay(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(xh(e))Eh(t,a);else{var i=Md(e,t,a,r);if(null!==i){var l=ry();iy(i,e,r,l),Th(i,t,r)}}_h(e,r)}function Sh(e,t,n){"function"==typeof arguments[3]&&o("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var r=ay(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(xh(e))Eh(t,a);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)){var l=t.lastRenderedReducer;if(null!==l){var s;s=op.current,op.current=Mh;try{var u=t.lastRenderedState,c=l(u,n);if(a.hasEagerState=!0,a.eagerState=c,vl(c,u))return void Od(0,t,a)}catch(e){}finally{op.current=s}}}var d=Md(e,t,a,r);if(null!==d){var f=ry();iy(d,e,r,f),Th(d,t,r)}}_h(e,r)}function xh(e){var t=e.alternate;return e===sp||null!==t&&t===sp}function Eh(e,t){fp=dp=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Th(e,t,n){if(Za(n)){var r=t.lanes,a=io(r=so(r,e.pendingLanes),n);t.lanes=a,po(e,a)}}function _h(e,t,n){ua(e,t)}var Ch={readContext:Pd,useCallback:Sp,useContext:Sp,useEffect:Sp,useImperativeHandle:Sp,useInsertionEffect:Sp,useLayoutEffect:Sp,useMemo:Sp,useReducer:Sp,useRef:Sp,useState:Sp,useDebugValue:Sp,useDeferredValue:Sp,useTransition:Sp,useMutableSource:Sp,useSyncExternalStore:Sp,useId:Sp,unstable_isNewReconciler:w},Dh=null,Rh=null,Ph=null,Nh=null,Ih=null,Mh=null,Oh=null,Lh=function(){o("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},zh=function(){o("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};Dh={readContext:function(e){return Pd(e)},useCallback:function(e,t){return vp="useCallback",bp(),kp(t),ih(e,t)},useContext:function(e){return vp="useContext",bp(),Pd(e)},useEffect:function(e,t){return vp="useEffect",bp(),kp(t),Kp(e,t)},useImperativeHandle:function(e,t,n){return vp="useImperativeHandle",bp(),kp(n),nh(e,t,n)},useInsertionEffect:function(e,t){return vp="useInsertionEffect",bp(),kp(t),Xp(e,t)},useLayoutEffect:function(e,t){return vp="useLayoutEffect",bp(),kp(t),Jp(e,t)},useMemo:function(e,t){vp="useMemo",bp(),kp(t);var n=op.current;op.current=Ih;try{return sh(e,t)}finally{op.current=n}},useReducer:function(e,t,n){vp="useReducer",bp();var r=op.current;op.current=Ih;try{return Np(e,t,n)}finally{op.current=r}},useRef:function(e){return vp="useRef",bp(),$p(e)},useState:function(e){vp="useState",bp();var t=op.current;op.current=Ih;try{return Up(e)}finally{op.current=t}},useDebugValue:function(e,t){vp="useDebugValue",bp()},useDeferredValue:function(e){return vp="useDeferredValue",bp(),ch(e)},useTransition:function(){return vp="useTransition",bp(),vh()},useMutableSource:function(e,t,n){vp="useMutableSource",bp()},useSyncExternalStore:function(e,t,n){return vp="useSyncExternalStore",bp(),Op(e,t,n)},useId:function(){return vp="useId",bp(),bh()},unstable_isNewReconciler:w},Rh={readContext:function(e){return Pd(e)},useCallback:function(e,t){return vp="useCallback",wp(),ih(e,t)},useContext:function(e){return vp="useContext",wp(),Pd(e)},useEffect:function(e,t){return vp="useEffect",wp(),Kp(e,t)},useImperativeHandle:function(e,t,n){return vp="useImperativeHandle",wp(),nh(e,t,n)},useInsertionEffect:function(e,t){return vp="useInsertionEffect",wp(),Xp(e,t)},useLayoutEffect:function(e,t){return vp="useLayoutEffect",wp(),Jp(e,t)},useMemo:function(e,t){vp="useMemo",wp();var n=op.current;op.current=Ih;try{return sh(e,t)}finally{op.current=n}},useReducer:function(e,t,n){vp="useReducer",wp();var r=op.current;op.current=Ih;try{return Np(e,t,n)}finally{op.current=r}},useRef:function(e){return vp="useRef",wp(),$p(e)},useState:function(e){vp="useState",wp();var t=op.current;op.current=Ih;try{return Up(e)}finally{op.current=t}},useDebugValue:function(e,t){vp="useDebugValue",wp()},useDeferredValue:function(e){return vp="useDeferredValue",wp(),ch(e)},useTransition:function(){return vp="useTransition",wp(),vh()},useMutableSource:function(e,t,n){vp="useMutableSource",wp()},useSyncExternalStore:function(e,t,n){return vp="useSyncExternalStore",wp(),Op(e,t,n)},useId:function(){return vp="useId",wp(),bh()},unstable_isNewReconciler:w},Ph={readContext:function(e){return Pd(e)},useCallback:function(e,t){return vp="useCallback",wp(),lh(e,t)},useContext:function(e){return vp="useContext",wp(),Pd(e)},useEffect:function(e,t){return vp="useEffect",wp(),Qp(e,t)},useImperativeHandle:function(e,t,n){return vp="useImperativeHandle",wp(),rh(e,t,n)},useInsertionEffect:function(e,t){return vp="useInsertionEffect",wp(),Zp(e,t)},useLayoutEffect:function(e,t){return vp="useLayoutEffect",wp(),eh(e,t)},useMemo:function(e,t){vp="useMemo",wp();var n=op.current;op.current=Mh;try{return uh(e,t)}finally{op.current=n}},useReducer:function(e,t,n){vp="useReducer",wp();var r=op.current;op.current=Mh;try{return Ip(e)}finally{op.current=r}},useRef:function(e){return vp="useRef",wp(),qp()},useState:function(e){vp="useState",wp();var t=op.current;op.current=Mh;try{return Vp()}finally{op.current=t}},useDebugValue:function(e,t){return vp="useDebugValue",wp(),oh()},useDeferredValue:function(e){return vp="useDeferredValue",wp(),dh(e)},useTransition:function(){return vp="useTransition",wp(),mh()},useMutableSource:function(e,t,n){vp="useMutableSource",wp()},useSyncExternalStore:function(e,t,n){return vp="useSyncExternalStore",wp(),Lp(e,t)},useId:function(){return vp="useId",wp(),wh()},unstable_isNewReconciler:w},Nh={readContext:function(e){return Pd(e)},useCallback:function(e,t){return vp="useCallback",wp(),lh(e,t)},useContext:function(e){return vp="useContext",wp(),Pd(e)},useEffect:function(e,t){return vp="useEffect",wp(),Qp(e,t)},useImperativeHandle:function(e,t,n){return vp="useImperativeHandle",wp(),rh(e,t,n)},useInsertionEffect:function(e,t){return vp="useInsertionEffect",wp(),Zp(e,t)},useLayoutEffect:function(e,t){return vp="useLayoutEffect",wp(),eh(e,t)},useMemo:function(e,t){vp="useMemo",wp();var n=op.current;op.current=Oh;try{return uh(e,t)}finally{op.current=n}},useReducer:function(e,t,n){vp="useReducer",wp();var r=op.current;op.current=Oh;try{return Mp(e)}finally{op.current=r}},useRef:function(e){return vp="useRef",wp(),qp()},useState:function(e){vp="useState",wp();var t=op.current;op.current=Oh;try{return Wp()}finally{op.current=t}},useDebugValue:function(e,t){return vp="useDebugValue",wp(),oh()},useDeferredValue:function(e){return vp="useDeferredValue",wp(),fh(e)},useTransition:function(){return vp="useTransition",wp(),gh()},useMutableSource:function(e,t,n){vp="useMutableSource",wp()},useSyncExternalStore:function(e,t,n){return vp="useSyncExternalStore",wp(),Lp(e,t)},useId:function(){return vp="useId",wp(),wh()},unstable_isNewReconciler:w},Ih={readContext:function(e){return Lh(),Pd(e)},useCallback:function(e,t){return vp="useCallback",zh(),bp(),ih(e,t)},useContext:function(e){return vp="useContext",zh(),bp(),Pd(e)},useEffect:function(e,t){return vp="useEffect",zh(),bp(),Kp(e,t)},useImperativeHandle:function(e,t,n){return vp="useImperativeHandle",zh(),bp(),nh(e,t,n)},useInsertionEffect:function(e,t){return vp="useInsertionEffect",zh(),bp(),Xp(e,t)},useLayoutEffect:function(e,t){return vp="useLayoutEffect",zh(),bp(),Jp(e,t)},useMemo:function(e,t){vp="useMemo",zh(),bp();var n=op.current;op.current=Ih;try{return sh(e,t)}finally{op.current=n}},useReducer:function(e,t,n){vp="useReducer",zh(),bp();var r=op.current;op.current=Ih;try{return Np(e,t,n)}finally{op.current=r}},useRef:function(e){return vp="useRef",zh(),bp(),$p(e)},useState:function(e){vp="useState",zh(),bp();var t=op.current;op.current=Ih;try{return Up(e)}finally{op.current=t}},useDebugValue:function(e,t){vp="useDebugValue",zh(),bp()},useDeferredValue:function(e){return vp="useDeferredValue",zh(),bp(),ch(e)},useTransition:function(){return vp="useTransition",zh(),bp(),vh()},useMutableSource:function(e,t,n){vp="useMutableSource",zh(),bp()},useSyncExternalStore:function(e,t,n){return vp="useSyncExternalStore",zh(),bp(),Op(e,t,n)},useId:function(){return vp="useId",zh(),bp(),bh()},unstable_isNewReconciler:w},Mh={readContext:function(e){return Lh(),Pd(e)},useCallback:function(e,t){return vp="useCallback",zh(),wp(),lh(e,t)},useContext:function(e){return vp="useContext",zh(),wp(),Pd(e)},useEffect:function(e,t){return vp="useEffect",zh(),wp(),Qp(e,t)},useImperativeHandle:function(e,t,n){return vp="useImperativeHandle",zh(),wp(),rh(e,t,n)},useInsertionEffect:function(e,t){return vp="useInsertionEffect",zh(),wp(),Zp(e,t)},useLayoutEffect:function(e,t){return vp="useLayoutEffect",zh(),wp(),eh(e,t)},useMemo:function(e,t){vp="useMemo",zh(),wp();var n=op.current;op.current=Mh;try{return uh(e,t)}finally{op.current=n}},useReducer:function(e,t,n){vp="useReducer",zh(),wp();var r=op.current;op.current=Mh;try{return Ip(e)}finally{op.current=r}},useRef:function(e){return vp="useRef",zh(),wp(),qp()},useState:function(e){vp="useState",zh(),wp();var t=op.current;op.current=Mh;try{return Vp()}finally{op.current=t}},useDebugValue:function(e,t){return vp="useDebugValue",zh(),wp(),oh()},useDeferredValue:function(e){return vp="useDeferredValue",zh(),wp(),dh(e)},useTransition:function(){return vp="useTransition",zh(),wp(),mh()},useMutableSource:function(e,t,n){vp="useMutableSource",zh(),wp()},useSyncExternalStore:function(e,t,n){return vp="useSyncExternalStore",zh(),wp(),Lp(e,t)},useId:function(){return vp="useId",zh(),wp(),wh()},unstable_isNewReconciler:w},Oh={readContext:function(e){return Lh(),Pd(e)},useCallback:function(e,t){return vp="useCallback",zh(),wp(),lh(e,t)},useContext:function(e){return vp="useContext",zh(),wp(),Pd(e)},useEffect:function(e,t){return vp="useEffect",zh(),wp(),Qp(e,t)},useImperativeHandle:function(e,t,n){return vp="useImperativeHandle",zh(),wp(),rh(e,t,n)},useInsertionEffect:function(e,t){return vp="useInsertionEffect",zh(),wp(),Zp(e,t)},useLayoutEffect:function(e,t){return vp="useLayoutEffect",zh(),wp(),eh(e,t)},useMemo:function(e,t){vp="useMemo",zh(),wp();var n=op.current;op.current=Mh;try{return uh(e,t)}finally{op.current=n}},useReducer:function(e,t,n){vp="useReducer",zh(),wp();var r=op.current;op.current=Mh;try{return Mp(e)}finally{op.current=r}},useRef:function(e){return vp="useRef",zh(),wp(),qp()},useState:function(e){vp="useState",zh(),wp();var t=op.current;op.current=Mh;try{return Wp()}finally{op.current=t}},useDebugValue:function(e,t){return vp="useDebugValue",zh(),wp(),oh()},useDeferredValue:function(e){return vp="useDeferredValue",zh(),wp(),fh(e)},useTransition:function(){return vp="useTransition",zh(),wp(),gh()},useMutableSource:function(e,t,n){vp="useMutableSource",zh(),wp()},useSyncExternalStore:function(e,t,n){return vp="useSyncExternalStore",zh(),wp(),Lp(e,t)},useId:function(){return vp="useId",zh(),wp(),wh()},unstable_isNewReconciler:w};var Ah=t.unstable_now,Fh=0,Hh=-1,jh=-1,Uh=-1,Vh=!1,Wh=!1;function Bh(){return Vh}function $h(){return Fh}function qh(){Fh=Ah()}function Yh(e){jh=Ah(),e.actualStartTime<0&&(e.actualStartTime=Ah())}function Gh(e){jh=-1}function Kh(e,t){if(jh>=0){var n=Ah()-jh;e.actualDuration+=n,t&&(e.selfBaseDuration=n),jh=-1}}function Qh(e){if(Hh>=0){var t=Ah()-Hh;Hh=-1;for(var n=e.return;null!==n;){switch(n.tag){case 3:return void(n.stateNode.effectDuration+=t);case c:return void(n.stateNode.effectDuration+=t)}n=n.return}}}function Xh(e){if(Uh>=0){var t=Ah()-Uh;Uh=-1;for(var n=e.return;null!==n;){switch(n.tag){case 3:var r=n.stateNode;return void(null!==r&&(r.passiveEffectDuration+=t));case c:var a=n.stateNode;return void(null!==a&&(a.passiveEffectDuration+=t))}n=n.return}}}function Zh(){Hh=Ah()}function Jh(){Uh=Ah()}function ev(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function tv(e,t){return{value:e,source:t,stack:Ae(t),digest:null}}function nv(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function rv(e,t){try{0;var n=t.value,r=t.source,a=t.stack,o=null!==a?a:"";if(null!=n&&n._suppressLogging){if(1===e.tag)return;console.error(n)}var i=r?Ue(r):null,l=(i?"The above error occurred in the <"+i+"> component:":"The above error occurred in one of your React components:")+"\n"+o+"\n\n"+(3===e.tag?"Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://reactjs.org/link/error-boundaries to learn more about error boundaries.":"React will try to recreate this component tree from scratch using the error boundary you provided, "+(Ue(e)||"Anonymous")+".");console.error(l)}catch(e){setTimeout((function(){throw e}))}}var av="function"==typeof WeakMap?WeakMap:Map;function ov(e,t,n){var r=Bd(Va,n);r.tag=3,r.payload={element:null};var a=t.value;return r.callback=function(){Iy(a),rv(e,t)},r}function iv(e,t,n){var r=Bd(Va,n);r.tag=3;var a=e.type.getDerivedStateFromError;if("function"==typeof a){var i=t.value;r.payload=function(){return a(i)},r.callback=function(){ob(e),rv(e,t)}}var l=e.stateNode;return null!==l&&"function"==typeof l.componentDidCatch&&(r.callback=function(){var n;ob(e),rv(e,t),"function"!=typeof a&&(n=this,null===Ug?Ug=new Set([n]):Ug.add(n));var r=t.value,i=t.stack;this.componentDidCatch(r,{componentStack:null!==i?i:""}),"function"!=typeof a&&(ao(e.lanes,1)||o("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Ue(e)||"Unknown"))}),r}function lv(e,t,n){var r,a=e.pingCache;if(null===a?(a=e.pingCache=new av,r=new Set,a.set(t,r)):void 0===(r=a.get(t))&&(r=new Set,a.set(t,r)),!r.has(n)){r.add(n);var o=Ly.bind(null,e,t,n);Kr&&qy(e,n),t.then(o,o)}}function sv(e){var t=e;do{if(t.tag===d&&Zf(t))return t;t=t.return}while(null!==t);return null}function uv(e,t,n,r,a){if(0==(1&e.mode)){if(e===t)e.flags|=cr;else{if(e.flags|=tr,n.flags|=dr,n.flags&=-52805,1===n.tag)if(null===n.alternate)n.tag=h;else{var o=Bd(Va,1);o.tag=jd,$d(n,o,1)}n.lanes=io(n.lanes,1)}return e}return e.flags|=cr,e.lanes=a,e}function cv(e,t,n,r,a){if(n.flags|=ur,Kr&&qy(e,a),null!==r&&"object"==typeof r&&"function"==typeof r.then){var o=r;!function(e,t){var n=e.tag;if(0==(1&e.mode)&&(0===n||n===s||n===p)){var r=e.alternate;r?(e.updateQueue=r.updateQueue,e.memoizedState=r.memoizedState,e.lanes=r.lanes):(e.updateQueue=null,e.memoizedState=null)}}(n),td()&&1&n.mode&&zc();var i=sv(t);if(null!==i)return i.flags&=-257,uv(i,t,n,0,a),1&i.mode&&lv(e,o,a),void function(e,t,n,r){var a=e.updateQueue;if(null===a){var o=new Set;o.add(n),e.updateQueue=o}else a.add(n)}(i,0,o);if(0==(1&a))return lv(e,o,a),void xy();r=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.")}else if(td()&&1&n.mode){zc();var l=sv(t);if(null!==l)return 0==(l.flags&cr)&&(l.flags|=nr),uv(l,t,n,0,a),void nd(tv(r,n))}!function(e){4!==Cg&&(Cg=2);null===Ig?Ig=[e]:Ig.push(e)}(r=tv(r,n));var u=t;do{switch(u.tag){case 3:var c=r;u.flags|=cr;var d=to(a);return u.lanes=io(u.lanes,d),void Yd(u,ov(u,c,d));case 1:var f=r,h=u.type,v=u.stateNode;if(0==(u.flags&tr)&&("function"==typeof h.getDerivedStateFromError||null!==v&&"function"==typeof v.componentDidCatch&&!Ny(v))){u.flags|=cr;var m=to(a);return u.lanes=io(u.lanes,m),void Yd(u,iv(u,f,m))}}u=u.return}while(null!==u)}var dv,fv,pv,hv,vv,mv,gv,yv,bv=n.ReactCurrentOwner,wv=!1;function kv(e,t,n,r){t.child=null===e?Mf(t,null,n,r):If(t,e.child,n,r)}function Sv(e,t,n,r,a){if(t.type!==t.elementType){var o=n.propTypes;o&&Fu(o,r,"prop",He(n))}var i,l,s=n.render,u=t.ref;if(Rd(t,a),ea(t),bv.current=t,Ke(!0),i=Ep(e,t,s,r,u,a),l=Tp(),8&t.mode){Qr(!0);try{i=Ep(e,t,s,r,u,a),l=Tp()}finally{Qr(!1)}}return Ke(!1),ta(),null===e||wv?(td()&&l&&_c(t),t.flags|=1,kv(e,t,i,a),t.child):(_p(e,t,a),Zv(e,t,a))}function xv(e,t,n,r,a){if(null===e){var o=n.type;if(function(e){return"function"==typeof e&&!vb(e)&&void 0===e.defaultProps}(o)&&null===n.compare&&void 0===n.defaultProps){var i;return i=tb(o),t.tag=p,t.type=i,Mv(t,o),Ev(e,t,i,r,a)}var l=o.propTypes;l&&Fu(l,r,"prop",He(o));var s=yb(n.type,null,r,t,t.mode,a);return s.ref=t.ref,s.return=t,t.child=s,s}var u=n.type,c=u.propTypes;c&&Fu(c,r,"prop",He(u));var d=e.child;if(!Jv(e,a)){var f=d.memoizedProps,h=n.compare;if((h=null!==h?h:ml)(f,r)&&e.ref===t.ref)return Zv(e,t,a)}t.flags|=1;var v=mb(d,r);return v.ref=t.ref,v.return=t,t.child=v,v}function Ev(e,t,n,r,a){if(t.type!==t.elementType){var o=t.elementType;if(o.$$typeof===pe){var i=o,l=i._payload,s=i._init;try{o=s(l)}catch(e){o=null}var u=o&&o.propTypes;u&&Fu(u,r,"prop",He(o))}}if(null!==e){var c=e.memoizedProps;if(ml(c,r)&&e.ref===t.ref&&t.type===e.type){if(wv=!1,t.pendingProps=r=c,!Jv(e,a))return t.lanes=e.lanes,Zv(e,t,a);0!=(e.flags&dr)&&(wv=!0)}}return Cv(e,t,n,r,a)}function Tv(e,t,n){var r,a=t.pendingProps,o=a.children,i=null!==e?e.memoizedState:null;if("hidden"===a.mode)if(0==(1&t.mode)){var l={baseLanes:0,cachePool:null,transitions:null};t.memoizedState=l,my(t,n)}else{if(!ao(n,ja)){var s;if(null!==i)s=io(i.baseLanes,n);else s=n;t.lanes=t.childLanes=ja;var u={baseLanes:s,cachePool:null,transitions:null};return t.memoizedState=u,t.updateQueue=null,my(t,s),null}var c={baseLanes:0,cachePool:null,transitions:null};t.memoizedState=c,my(t,null!==i?i.baseLanes:n)}else null!==i?(r=io(i.baseLanes,n),t.memoizedState=null):r=n,my(t,r);return kv(e,t,o,n),t.child}function _v(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=rr,t.flags|=pr)}function Cv(e,t,n,r,a){if(t.type!==t.elementType){var o=n.propTypes;o&&Fu(o,r,"prop",He(n))}var i,l,s;if(i=Zu(t,Qu(0,n,!0)),Rd(t,a),ea(t),bv.current=t,Ke(!0),l=Ep(e,t,n,r,i,a),s=Tp(),8&t.mode){Qr(!0);try{l=Ep(e,t,n,r,i,a),s=Tp()}finally{Qr(!1)}}return Ke(!1),ta(),null===e||wv?(td()&&s&&_c(t),t.flags|=1,kv(e,t,l,a),t.child):(_p(e,t,a),Zv(e,t,a))}function Dv(e,t,n,r,a){switch(Hb(t)){case!1:var i=t.stateNode,l=new(0,t.type)(t.memoizedProps,i.context).state;i.updater.enqueueSetState(i,l,null);break;case!0:t.flags|=tr,t.flags|=cr;var s=new Error("Simulated error coming from DevTools"),u=to(a);t.lanes=io(t.lanes,u),Yd(t,iv(t,tv(s,t),u))}if(t.type!==t.elementType){var c=n.propTypes;c&&Fu(c,r,"prop",He(n))}var d,f;ec(n)?(d=!0,oc(t)):d=!1,Rd(t,a),null===t.stateNode?(Xv(e,t),xf(t,n,r),Tf(t,n,r,a),f=!0):f=null===e?function(e,t,n,r){var a=e.stateNode,o=e.memoizedProps;a.props=o;var i=a.context,l=t.contextType,s=qu;s="object"==typeof l&&null!==l?Pd(l):Zu(e,Qu(0,t,!0));var u=t.getDerivedStateFromProps,c="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;c||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||o===n&&i===s||Ef(e,a,n,s),Xd();var d=e.memoizedState,f=a.state=d;if(Kd(e,n,a,r),f=e.memoizedState,o===n&&d===f&&!Ju()&&!Zd()){if("function"==typeof a.componentDidMount){var p=4;p|=hr,0!=(e.mode&ca)&&(p|=vr),e.flags|=p}return!1}"function"==typeof u&&(hf(e,t,u,n),f=e.memoizedState);var h=Zd()||kf(e,t,o,n,d,f,s);if(h){if(c||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount){var v=4;v|=hr,0!=(e.mode&ca)&&(v|=vr),e.flags|=v}}else{if("function"==typeof a.componentDidMount){var m=4;m|=hr,0!=(e.mode&ca)&&(m|=vr),e.flags|=m}e.memoizedProps=n,e.memoizedState=f}return a.props=n,a.state=f,a.context=s,h}(t,n,r,a):function(e,t,n,r,a){var o=t.stateNode;Wd(e,t);var i=t.memoizedProps,l=t.type===t.elementType?i:vd(t.type,i);o.props=l;var s=t.pendingProps,u=o.context,c=n.contextType,d=qu;d="object"==typeof c&&null!==c?Pd(c):Zu(t,Qu(0,n,!0));var f=n.getDerivedStateFromProps,p="function"==typeof f||"function"==typeof o.getSnapshotBeforeUpdate;p||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||i===s&&u===d||Ef(t,o,r,d),Xd();var h=t.memoizedState,v=o.state=h;if(Kd(t,r,o,a),v=t.memoizedState,i===s&&h===v&&!Ju()&&!Zd())return"function"==typeof o.componentDidUpdate&&(i===e.memoizedProps&&h===e.memoizedState||(t.flags|=4)),"function"==typeof o.getSnapshotBeforeUpdate&&(i===e.memoizedProps&&h===e.memoizedState||(t.flags|=ar)),!1;"function"==typeof f&&(hf(t,n,f,r),v=t.memoizedState);var m=Zd()||kf(t,n,l,r,h,v,d)||!1;return m?(p||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,v,d),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,v,d)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=ar)):("function"==typeof o.componentDidUpdate&&(i===e.memoizedProps&&h===e.memoizedState||(t.flags|=4)),"function"==typeof o.getSnapshotBeforeUpdate&&(i===e.memoizedProps&&h===e.memoizedState||(t.flags|=ar)),t.memoizedProps=r,t.memoizedState=v),o.props=r,o.state=v,o.context=d,m}(e,t,n,r,a);var p=Rv(e,t,n,f,d,a),h=t.stateNode;return f&&h.props!==r&&(mv||o("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Ue(t)||"a component"),mv=!0),p}function Rv(e,t,n,r,a,o){_v(e,t);var i=0!=(t.flags&tr);if(!r&&!i)return a&&ic(t,n,!1),Zv(e,t,o);var l,s=t.stateNode;if(bv.current=t,i&&"function"!=typeof n.getDerivedStateFromError)l=null,Gh();else{if(ea(t),Ke(!0),l=s.render(),8&t.mode){Qr(!0);try{s.render()}finally{Qr(!1)}}Ke(!1),ta()}return t.flags|=1,null!==e&&i?function(e,t,n,r){t.child=If(t,e.child,null,r),t.child=If(t,null,n,r)}(e,t,l,o):kv(e,t,l,o),t.memoizedState=s.state,a&&ic(t,n,!0),t.child}function Pv(e){var t=e.stateNode;t.pendingContext?rc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&rc(e,t.context,!1),Uf(e,t.containerInfo)}function Nv(e,t,n,r,a){return Jc(),nd(a),t.flags|=nr,kv(e,t,n,r),t.child}function Iv(e,t,n,r){Xv(e,t);var a=t.pendingProps,o=n,i=o._payload,l=(0,o._init)(i);t.type=l;var u=t.tag=function(e){if("function"==typeof e)return vb(e)?1:0;if(null!=e){var t=e.$$typeof;if(t===ue)return s;if(t===fe)return f}return 2}(l),c=vd(l,a);switch(u){case 0:return Mv(t,l),t.type=l=tb(l),Cv(null,t,l,c,r);case 1:return t.type=l=nb(l),Dv(null,t,l,c,r);case s:return t.type=l=rb(l),Sv(null,t,l,c,r);case f:if(t.type!==t.elementType){var d=l.propTypes;d&&Fu(d,c,"prop",He(l))}return xv(null,t,l,vd(l.type,c),r)}var p="";throw null!==l&&"object"==typeof l&&l.$$typeof===pe&&(p=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+l+". Lazy element type must resolve to a class or function."+p)}function Mv(e,t){if(t&&t.childContextTypes&&o("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),null!==e.ref){var n="",r=$e();r&&(n+="\n\nCheck the render method of `"+r+"`.");var a=r||"",i=e._debugSource;i&&(a=i.fileName+":"+i.lineNumber),vv[a]||(vv[a]=!0,o("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",n))}if("function"==typeof t.getDerivedStateFromProps){var l=He(t)||"Unknown";hv[l]||(o("%s: Function components do not support getDerivedStateFromProps.",l),hv[l]=!0)}if("object"==typeof t.contextType&&null!==t.contextType){var s=He(t)||"Unknown";pv[s]||(o("%s: Function components do not support contextType.",s),pv[s]=!0)}}dv={},fv={},pv={},hv={},vv={},mv=!1,gv={},yv={};var Ov={dehydrated:null,treeContext:null,retryLane:0};function Lv(e){return{baseLanes:e,cachePool:null,transitions:null}}function zv(e,t,n){var r=t.pendingProps;jb(t)&&(t.flags|=tr);var a=qf.current,i=!1,l=0!=(t.flags&tr);if(l||function(e,t,n,r){return(null===t||null!==t.memoizedState)&&Yf(e,2)}(a,e)?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a=a|1),Qf(t,a=Gf(a)),null===e){qc(t);var s=t.memoizedState;if(null!==s){var u=s.dehydrated;if(null!==u)return function(e,t,n){0==(1&e.mode)?(o("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=1):hu(t)?e.lanes=8:e.lanes=ja;return null}(t,u)}var c=r.children,d=r.fallback;if(i){var f=function(e,t,n,r){var a,o,i=e.mode,l=e.child,s={mode:"hidden",children:t};0==(1&i)&&null!==l?((a=l).childLanes=0,a.pendingProps=s,2&e.mode&&(a.actualDuration=0,a.actualStartTime=-1,a.selfBaseDuration=0,a.treeBaseDuration=0),o=wb(n,i,r,null)):(a=Fv(s,i),o=wb(n,i,r,null));return a.return=e,o.return=e,a.sibling=o,e.child=a,o}(t,c,d,n);return t.child.memoizedState=Lv(n),t.memoizedState=Ov,f}return Av(t,c)}var p=e.memoizedState;if(null!==p){var h=p.dehydrated;if(null!==h)return function(e,t,n,r,a,o,i){if(n){if(t.flags&nr)return t.flags&=-257,jv(e,t,i,nv(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering.")));if(null!==t.memoizedState)return t.child=e.child,t.flags|=tr,null;var l=function(e,t,n,r,a){var o=t.mode,i=Fv({mode:"visible",children:n},o),l=wb(r,o,a,null);l.flags|=2,i.return=t,l.return=t,i.sibling=l,t.child=i,0!=(1&t.mode)&&If(t,e.child,null,a);return l}(e,t,r.children,r.fallback,i);return t.child.memoizedState=Lv(i),t.memoizedState=Ov,l}if(Lc(),0==(1&t.mode))return jv(e,t,i,null);if(hu(a)){var s,u,c,d=function(e){var t,n,r,a=e.nextSibling&&e.nextSibling.dataset;return a&&(t=a.dgst,n=a.msg,r=a.stck),{message:n,digest:t,stack:r}}(a);return s=d.digest,u=d.message,c=d.stack,jv(e,t,i,nv(u?new Error(u):new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),s,c))}var f=ao(i,e.childLanes);if(wv||f){var p=ny();if(null!==p){var h=function(e,t){var n;switch(eo(t)){case 4:n=2;break;case va:n=8;break;case 64:case 128:case 256:case 512:case ga:case ya:case ba:case wa:case ka:case Sa:case xa:case Ea:case Ta:case _a:case Ca:case Da:case Pa:case Na:case Ia:case Ma:case Oa:n=32;break;case Ha:n=Fa;break;default:n=0}return 0!=(n&(e.suspendedLanes|t))?0:n}(p,i);if(0!==h&&h!==o.retryLane){o.retryLane=h;var v=Va;Ld(e,h),iy(p,e,h,v)}}return xy(),jv(e,t,i,nv(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition.")))}if(pu(a)){t.flags|=tr,t.child=e.child;var m=Ay.bind(null,e);return y=m,a._reactRetry=y,null}Fc(t,a,o.treeContext);var g=Av(t,r.children);return g.flags|=ir,g;var y}(e,t,l,r,h,p,n)}if(i){var v=r.fallback,m=function(e,t,n,r,a){var o,i,l=t.mode,s=e.child,u=s.sibling,c={mode:"hidden",children:n};if(0==(1&l)&&t.child!==s){(o=t.child).childLanes=0,o.pendingProps=c,2&t.mode&&(o.actualDuration=0,o.actualStartTime=-1,o.selfBaseDuration=s.selfBaseDuration,o.treeBaseDuration=s.treeBaseDuration),t.deletions=null}else(o=Hv(s,c)).subtreeFlags=s.subtreeFlags&kr;null!==u?i=mb(u,r):(i=wb(r,l,a,null)).flags|=2;return i.return=t,o.return=t,o.sibling=i,t.child=o,i}(e,t,r.children,v,n),g=t.child,y=e.child.memoizedState;return g.memoizedState=null===y?Lv(n):function(e,t){return{baseLanes:io(e.baseLanes,t),cachePool:null,transitions:e.transitions}}(y,n),g.childLanes=function(e,t){return lo(e.childLanes,t)}(e,n),t.memoizedState=Ov,m}var b=function(e,t,n,r){var a=e.child,o=a.sibling,i=Hv(a,{mode:"visible",children:n});0==(1&t.mode)&&(i.lanes=r);if(i.return=t,i.sibling=null,null!==o){var l=t.deletions;null===l?(t.deletions=[o],t.flags|=er):l.push(o)}return t.child=i,i}(e,t,r.children,n);return t.memoizedState=null,b}function Av(e,t,n){var r=Fv({mode:"visible",children:t},e.mode);return r.return=e,e.child=r,r}function Fv(e,t,n){return kb(e,t,0,null)}function Hv(e,t){return mb(e,t)}function jv(e,t,n,r){null!==r&&nd(r),If(t,e.child,null,n);var a=Av(t,t.pendingProps.children);return a.flags|=2,t.memoizedState=null,a}function Uv(e,t,n){e.lanes=io(e.lanes,t);var r=e.alternate;null!==r&&(r.lanes=io(r.lanes,t)),Cd(e.return,t,n)}function Vv(e,t){var n=xt(e),r=!n&&"function"==typeof me(e);if(n||r){var a=n?"array":"iterable";return o("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",a,t,a),!1}return!0}function Wv(e,t,n,r,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function Bv(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail,l=r.children;!function(e){if(void 0!==e&&"forwards"!==e&&"backwards"!==e&&"together"!==e&&!gv[e])if(gv[e]=!0,"string"==typeof e)switch(e.toLowerCase()){case"together":case"forwards":case"backwards":o('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break;case"forward":case"backward":o('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break;default:o('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}else o('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}(a),function(e,t){void 0===e||yv[e]||("collapsed"!==e&&"hidden"!==e?(yv[e]=!0,o('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):"forwards"!==t&&"backwards"!==t&&(yv[e]=!0,o('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}(i,a),function(e,t){if(("forwards"===t||"backwards"===t)&&null!=e&&!1!==e)if(xt(e)){for(var n=0;n<e.length;n++)if(!Vv(e[n],n))return}else{var r=me(e);if("function"==typeof r){var a=r.call(e);if(a)for(var i=a.next(),l=0;!i.done;i=a.next()){if(!Vv(i.value,l))return;l++}}else o('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',t)}}(l,a),kv(e,t,l,n);var s=qf.current;Yf(s,2)?(s=Kf(s,2),t.flags|=tr):(null!==e&&0!=(e.flags&tr)&&function(e,t,n){for(var r=t;null!==r;){if(r.tag===d)null!==r.memoizedState&&Uv(r,n,e);else if(r.tag===m)Uv(r,n,e);else if(null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)return;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}(t,t.child,n),s=Gf(s));if(Qf(t,s),0==(1&t.mode))t.memoizedState=null;else switch(a){case"forwards":var u,c=function(e){for(var t=e,n=null;null!==t;){var r=t.alternate;null!==r&&null===Jf(r)&&(n=t),t=t.sibling}return n}(t.child);null===c?(u=t.child,t.child=null):(u=c.sibling,c.sibling=null),Wv(t,!1,u,c,i);break;case"backwards":var f=null,p=t.child;for(t.child=null;null!==p;){var h=p.alternate;if(null!==h&&null===Jf(h)){t.child=p;break}var v=p.sibling;p.sibling=f,f=p,p=v}Wv(t,!0,f,null,i);break;case"together":Wv(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}var $v=!1;var qv,Yv,Gv,Kv=!1;function Qv(){wv=!0}function Xv(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Zv(e,t,n){return null!==e&&(t.dependencies=e.dependencies),Gh(),Sy(t.lanes),ao(n,t.childLanes)?(function(e,t){if(null!==e&&t.child!==e.child)throw new Error("Resuming work not yet implemented.");if(null!==t.child){var n=t.child,r=mb(n,n.pendingProps);for(t.child=r,r.return=t;null!==n.sibling;)n=n.sibling,(r=r.sibling=mb(n,n.pendingProps)).return=t;r.sibling=null}}(e,t),t.child):null}function Jv(e,t){return!!ao(e.lanes,t)}function em(e,t,n){if(t._debugNeedsRemount&&null!==e)return function(e,t,n){var r=t.return;if(null===r)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,t===r.child)r.child=n;else{var a=r.child;if(null===a)throw new Error("Expected parent to have a child.");for(;a.sibling!==t;)if(null===(a=a.sibling))throw new Error("Expected to find the previous sibling.");a.sibling=n}var o=r.deletions;return null===o?(r.deletions=[e],r.flags|=er):o.push(e),n.flags|=2,n}(e,t,yb(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(null!==e)if(e.memoizedProps!==t.pendingProps||Ju()||t.type!==e.type)wv=!0;else{if(!Jv(e,n)&&0==(t.flags&tr))return wv=!1,function(e,t,n){switch(t.tag){case 3:Pv(t),t.stateNode,Jc();break;case 5:Bf(t);break;case 1:ec(t.type)&&oc(t);break;case 4:Uf(t,t.stateNode.containerInfo);break;case l:var r=t.memoizedProps.value;Td(t,t.type._context,r);break;case c:ao(n,t.childLanes)&&(t.flags|=4);var a=t.stateNode;a.effectDuration=0,a.passiveEffectDuration=0;break;case d:var o=t.memoizedState;if(null!==o){if(null!==o.dehydrated)return Qf(t,Gf(qf.current)),t.flags|=tr,null;if(ao(n,t.child.childLanes))return zv(e,t,n);Qf(t,Gf(qf.current));var i=Zv(e,t,n);return null!==i?i.sibling:null}Qf(t,Gf(qf.current));break;case m:var s=0!=(e.flags&tr),u=ao(n,t.childLanes);if(s){if(u)return Bv(e,t,n);t.flags|=tr}var f=t.memoizedState;if(null!==f&&(f.rendering=null,f.tail=null,f.lastEffect=null),Qf(t,qf.current),u)break;return null;case y:case b:return t.lanes=0,Tv(e,t,n)}return Zv(e,t,n)}(e,t,n);wv=0!=(e.flags&dr)}else if(wv=!1,td()&&function(e){return Rc(),0!=(e.flags&fr)}(t)){var r=t.index;Tc(t,(Rc(),gc),r)}switch(t.lanes=0,t.tag){case 2:return function(e,t,n,r){Xv(e,t);var a,i,l,s=t.pendingProps;if(a=Zu(t,Qu(0,n,!1)),Rd(t,r),ea(t),n.prototype&&"function"==typeof n.prototype.render){var u=He(n)||"Unknown";dv[u]||(o("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",u,u),dv[u]=!0)}if(8&t.mode&&ad.recordLegacyContextWarning(t,null),Ke(!0),bv.current=t,i=Ep(null,t,n,s,a,r),l=Tp(),Ke(!1),ta(),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){var c=He(n)||"Unknown";fv[c]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",c,c,c),fv[c]=!0)}if("object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){var d=He(n)||"Unknown";fv[d]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",d,d,d),fv[d]=!0),t.tag=1,t.memoizedState=null,t.updateQueue=null;var f=!1;return ec(n)?(f=!0,oc(t)):f=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Vd(t),Sf(t,i),Tf(t,n,s,r),Rv(null,t,n,!0,f,r)}if(t.tag=0,8&t.mode){Qr(!0);try{i=Ep(null,t,n,s,a,r),l=Tp()}finally{Qr(!1)}}return td()&&l&&_c(t),kv(null,t,i,r),Mv(t,n),t.child}(e,t,t.type,n);case 16:return Iv(e,t,t.elementType,n);case 0:var a=t.type,i=t.pendingProps;return Cv(e,t,a,t.elementType===a?i:vd(a,i),n);case 1:var u=t.type,v=t.pendingProps;return Dv(e,t,u,t.elementType===u?v:vd(u,v),n);case 3:return function(e,t,n){if(Pv(t),null===e)throw new Error("Should have a current fiber. This is a bug in React.");var r=t.pendingProps,a=t.memoizedState,o=a.element;Wd(e,t),Kd(t,r,null,n);var i=t.memoizedState;t.stateNode;var l=i.element;if(a.isDehydrated){var s={element:l,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions};if(t.updateQueue.baseState=s,t.memoizedState=s,t.flags&nr)return Nv(e,t,l,n,tv(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),t));if(l!==o)return Nv(e,t,l,n,tv(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t));Ac(t);var u=Mf(t,null,l,n);t.child=u;for(var c=u;c;)c.flags=-3&c.flags|ir,c=c.sibling}else{if(Jc(),l===o)return Zv(e,t,n);kv(e,t,l,n)}return t.child}(e,t,n);case 5:return function(e,t,n){Bf(t),null===e&&qc(t);var r=t.type,a=t.pendingProps,o=null!==e?e.memoizedProps:null,i=a.children;return tu(r,a)?i=null:null!==o&&tu(r,o)&&(t.flags|=32),_v(e,t),kv(e,t,i,n),t.child}(e,t,n);case 6:return function(e,t){return null===e&&qc(t),null}(e,t);case d:return zv(e,t,n);case 4:return function(e,t,n){Uf(t,t.stateNode.containerInfo);var r=t.pendingProps;return null===e?t.child=If(t,null,r,n):kv(e,t,r,n),t.child}(e,t,n);case s:var w=t.type,k=t.pendingProps;return Sv(e,t,w,t.elementType===w?k:vd(w,k),n);case 7:return function(e,t,n){return kv(e,t,t.pendingProps,n),t.child}(e,t,n);case 8:return function(e,t,n){return kv(e,t,t.pendingProps.children,n),t.child}(e,t,n);case c:return function(e,t,n){t.flags|=4;var r=t.stateNode;return r.effectDuration=0,r.passiveEffectDuration=0,kv(e,t,t.pendingProps.children,n),t.child}(e,t,n);case l:return function(e,t,n){var r=t.type._context,a=t.pendingProps,i=t.memoizedProps,l=a.value;"value"in a||$v||($v=!0,o("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var s=t.type.propTypes;if(s&&Fu(s,a,"prop","Context.Provider"),Td(t,r,l),null!==i){var u=i.value;if(vl(u,l)){if(i.children===a.children&&!Ju())return Zv(e,t,n)}else Dd(t,r,n)}return kv(e,t,a.children,n),t.child}(e,t,n);case 9:return function(e,t,n){var r=t.type;void 0===r._context?r!==r.Consumer&&(Kv||(Kv=!0,o("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):r=r._context;var a=t.pendingProps.children;"function"!=typeof a&&o("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Rd(t,n);var i,l=Pd(r);return ea(t),bv.current=t,Ke(!0),i=a(l),Ke(!1),ta(),t.flags|=1,kv(e,t,i,n),t.child}(e,t,n);case f:var S=t.type,x=vd(S,t.pendingProps);if(t.type!==t.elementType){var E=S.propTypes;E&&Fu(E,x,"prop",He(S))}return xv(e,t,S,x=vd(S.type,x),n);case p:return Ev(e,t,t.type,t.pendingProps,n);case h:var T=t.type,_=t.pendingProps;return function(e,t,n,r,a){var o;return Xv(e,t),t.tag=1,ec(n)?(o=!0,oc(t)):o=!1,Rd(t,a),xf(t,n,r),Tf(t,n,r,a),Rv(null,t,n,!0,o,a)}(e,t,T,t.elementType===T?_:vd(T,_),n);case m:return Bv(e,t,n);case g:break;case y:return Tv(e,t,n)}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function tm(e){e.flags|=4}function nm(e){e.flags|=rr,e.flags|=pr}function rm(e,t){if(!td())switch(e.tailMode){case"hidden":for(var n=e.tail,r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":for(var a=e.tail,o=null;null!==a;)null!==a.alternate&&(o=a),a=a.sibling;null===o?t||null===e.tail?e.tail=null:e.tail.sibling=null:o.sibling=null}}function am(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t){if(0!=(2&e.mode)){for(var a=e.selfBaseDuration,o=e.child;null!==o;)n=io(n,io(o.lanes,o.childLanes)),r|=o.subtreeFlags&kr,r|=o.flags&kr,a+=o.treeBaseDuration,o=o.sibling;e.treeBaseDuration=a}else for(var i=e.child;null!==i;)n=io(n,io(i.lanes,i.childLanes)),r|=i.subtreeFlags&kr,r|=i.flags&kr,i.return=e,i=i.sibling;e.subtreeFlags|=r}else{if(0!=(2&e.mode)){for(var l=e.actualDuration,s=e.selfBaseDuration,u=e.child;null!==u;)n=io(n,io(u.lanes,u.childLanes)),r|=u.subtreeFlags,r|=u.flags,l+=u.actualDuration,s+=u.treeBaseDuration,u=u.sibling;e.actualDuration=l,e.treeBaseDuration=s}else for(var c=e.child;null!==c;)n=io(n,io(c.lanes,c.childLanes)),r|=c.subtreeFlags,r|=c.flags,c.return=e,c=c.sibling;e.subtreeFlags|=r}return e.childLanes=n,t}function om(e,t,n){if(Ic&&null!==Nc&&0!=(1&t.mode)&&0==(t.flags&tr))return Zc(t),Jc(),t.flags|=98560,!1;var r=Xc(t);if(null!==n&&null!==n.dehydrated){if(null===e){if(!r)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(Gc(t),am(t),0!=(2&t.mode))if(null!==n){var a=t.child;null!==a&&(t.treeBaseDuration-=a.treeBaseDuration)}return!1}if(Jc(),0==(t.flags&tr)&&(t.memoizedState=null),t.flags|=4,am(t),0!=(2&t.mode)&&null!==n){var o=t.child;null!==o&&(t.treeBaseDuration-=o.treeBaseDuration)}return!1}return ed(),!0}function im(e,t,n){var r=t.pendingProps;switch(Dc(t),t.tag){case 2:case 16:case p:case 0:case s:case 7:case 8:case c:case 9:case f:return am(t),null;case 1:return ec(t.type)&&tc(t),am(t),null;case 3:var a=t.stateNode;if(Vf(t),nc(t),tp(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),null===e||null===e.child)if(Xc(t))tm(t);else if(null!==e)e.memoizedState.isDehydrated&&0==(t.flags&nr)||(t.flags|=ar,ed());return am(t),null;case 5:$f(t);var o=jf(),i=t.type;if(null!==e&&null!=t.stateNode)Yv(e,t,i,r),e.ref!==t.ref&&nm(t);else{if(!r){if(null===t.stateNode)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return am(t),null}var u=Wf();if(Xc(t))(function(e,t,n){var r=e.stateNode,a=!Mc,o=gu(r,e.type,e.memoizedProps,0,n,e,a);return e.updateQueue=o,null!==o})(t,0,u)&&tm(t);else{var v=eu(i,r,o,u,t);qv(v,t),t.stateNode=v,function(e,t,n,r,a){switch(Is(e,t,n),t){case"button":case"input":case"select":case"textarea":return!!n.autoFocus;case"img":return!0;default:return!1}}(v,i,r)&&tm(t)}null!==t.ref&&nm(t)}return am(t),null;case 6:var w=r;if(e&&null!=t.stateNode){var k=e.memoizedProps;Gv(0,t,k,w)}else{if("string"!=typeof w&&null===t.stateNode)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var S=jf(),x=Wf();Xc(t)?Yc(t)&&tm(t):t.stateNode=nu(w,S,x,t)}return am(t),null;case d:Xf(t);var E=t.memoizedState;if(null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated)if(!om(e,t,E))return t.flags&cr?t:null;if(0!=(t.flags&tr))return t.lanes=n,0!=(2&t.mode)&&ev(t),t;var T=null!==E;if(T!==(null!==e&&null!==e.memoizedState))if(T)if(t.child.flags|=lr,0!=(1&t.mode))null===e&&(!0!==t.memoizedProps.unstable_avoidThisFallback||!0)||Yf(qf.current,1)?0===Cg&&(Cg=3):xy();if(null!==t.updateQueue&&(t.flags|=4),am(t),0!=(2&t.mode)&&T){var _=t.child;null!==_&&(t.treeBaseDuration-=_.treeBaseDuration)}return null;case 4:return Vf(t),null===e&&rs(t.stateNode.containerInfo),am(t),null;case l:return _d(t.type._context,t),am(t),null;case h:return ec(t.type)&&tc(t),am(t),null;case m:Xf(t);var C=t.memoizedState;if(null===C)return am(t),null;var D=0!=(t.flags&tr),R=C.rendering;if(null===R)if(D)rm(C,!1);else{if(!(0===Cg&&(null===e||0==(e.flags&tr))))for(var P=t.child;null!==P;){var N=Jf(P);if(null!==N){D=!0,t.flags|=tr,rm(C,!1);var I=N.updateQueue;return null!==I&&(t.updateQueue=I,t.flags|=4),t.subtreeFlags=0,Of(t,n),Qf(t,Kf(qf.current,2)),t.child}P=P.sibling}null!==C.tail&&zr()>Fg()&&(t.flags|=tr,D=!0,rm(C,!1),t.lanes=La)}else{if(!D){var M=Jf(R);if(null!==M){t.flags|=tr,D=!0;var O=M.updateQueue;if(null!==O&&(t.updateQueue=O,t.flags|=4),rm(C,!0),null===C.tail&&"hidden"===C.tailMode&&!R.alternate&&!td())return am(t),null}else 2*zr()-C.renderingStartTime>Fg()&&n!==ja&&(t.flags|=tr,D=!0,rm(C,!1),t.lanes=La)}if(C.isBackwards)R.sibling=t.child,t.child=R;else{var L=C.last;null!==L?L.sibling=R:t.child=R,C.last=R}}if(null!==C.tail){var z=C.tail;C.rendering=z,C.tail=z.sibling,C.renderingStartTime=zr(),z.sibling=null;var A=qf.current;return Qf(t,A=D?Kf(A,2):Gf(A)),z}return am(t),null;case g:break;case y:case b:gy(t);var F=null!==t.memoizedState;if(null!==e)null!==e.memoizedState!==F&&(t.flags|=lr);return F&&0!=(1&t.mode)?ao(Tg,ja)&&(am(t),6&t.subtreeFlags&&(t.flags|=lr)):am(t),null;case 24:case 25:return null}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function lm(e,t,n){switch(Dc(t),t.tag){case 1:ec(t.type)&&tc(t);var r=t.flags;return r&cr?(t.flags=-65537&r|tr,0!=(2&t.mode)&&ev(t),t):null;case 3:t.stateNode,Vf(t),nc(t),tp();var a=t.flags;return 0!=(a&cr)&&0==(a&tr)?(t.flags=-65537&a|tr,t):null;case 5:return $f(t),null;case d:Xf(t);var o=t.memoizedState;if(null!==o&&null!==o.dehydrated){if(null===t.alternate)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Jc()}var i=t.flags;return i&cr?(t.flags=-65537&i|tr,0!=(2&t.mode)&&ev(t),t):null;case m:return Xf(t),null;case 4:return Vf(t),null;case l:return _d(t.type._context,t),null;case y:case b:return gy(t),null;default:return null}}function sm(e,t,n){switch(Dc(t),t.tag){case 1:var r=t.type.childContextTypes;null!=r&&tc(t);break;case 3:t.stateNode,Vf(t),nc(t),tp();break;case 5:$f(t);break;case 4:Vf(t);break;case d:case m:Xf(t);break;case l:_d(t.type._context,t);break;case y:case b:gy(t)}}qv=function(e,t,n,r){for(var a,o,i=t.child;null!==i;){if(5===i.tag||6===i.tag)a=e,o=i.stateNode,a.appendChild(o);else if(4===i.tag);else if(null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)return;for(;null===i.sibling;){if(null===i.return||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},Yv=function(e,t,n,r,a){var o=e.memoizedProps;if(o!==r){var i=function(e,t,n,r,a,o){var i=o;if(typeof r.children!=typeof n.children&&("string"==typeof r.children||"number"==typeof r.children)){var l=""+r.children,s=js(i.ancestorInfo,t);Hs(null,l,s)}return Ms(e,t,n,r)}(t.stateNode,n,o,r,0,Wf());t.updateQueue=i,i&&tm(t)}},Gv=function(e,t,n,r){n!==r&&tm(t)};var um;um=new Set;var cm=!1,dm=!1,fm="function"==typeof WeakSet?WeakSet:Set,pm=null,hm=null,vm=null;function mm(e,t){try{_m(4,e)}catch(n){Oy(e,t,n)}}function gm(e,t,n){try{!function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,2&e.mode)try{Zh(),t.componentWillUnmount()}finally{Qh(e)}else t.componentWillUnmount()}(e,n)}catch(n){Oy(e,t,n)}}function ym(e,t){try{Pm(e)}catch(n){Oy(e,t,n)}}function bm(e,t){var n=e.ref;if(null!==n)if("function"==typeof n){var r;try{if(2&e.mode)try{Zh(),r=n(null)}finally{Qh(e)}else r=n(null)}catch(n){Oy(e,t,n)}"function"==typeof r&&o("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ue(e))}else n.current=null}function wm(e,t,n){try{n()}catch(n){Oy(e,t,n)}}var km=!1;function Sm(e,t){Js(e.containerInfo),pm=t,function(){for(;null!==pm;){var e=pm,t=e.child;0!=(e.subtreeFlags&gr)&&null!==t?(t.return=e,pm=t):xm()}}();var n=km;return km=!1,n}function xm(){for(;null!==pm;){var e=pm;Ge(e);try{Em(e)}catch(t){Oy(e,e.return,t)}Ye();var t=e.sibling;if(null!==t)return t.return=e.return,void(pm=t);pm=e.return}}function Em(e){var t,n=e.alternate;if(0!=(e.flags&ar)){switch(Ge(e),e.tag){case 0:case s:case p:break;case 1:if(null!==n){var r=n.memoizedProps,a=n.memoizedState,i=e.stateNode;e.type!==e.elementType||mv||(i.props!==e.memoizedProps&&o("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ue(e)||"instance"),i.state!==e.memoizedState&&o("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ue(e)||"instance"));var l=i.getSnapshotBeforeUpdate(e.elementType===e.type?r:vd(e.type,r),a),u=um;void 0!==l||u.has(e.type)||(u.add(e.type),o("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Ue(e))),i.__reactInternalSnapshotBeforeUpdate=l}break;case 3:var c=e.stateNode;1===(t=c.containerInfo).nodeType?t.textContent="":9===t.nodeType&&t.documentElement&&t.removeChild(t.documentElement);break;case 5:case 6:case 4:case h:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Ye()}}function Tm(e,t,n){var r,a=t.updateQueue,o=null!==a?a.lastEffect:null;if(null!==o){var i=o.next,l=i;do{if((l.tag&e)===e){var s=l.destroy;l.destroy=void 0,void 0!==s&&(0!=(8&e)?(r=t,null!==Yr&&"function"==typeof Yr.markComponentPassiveEffectUnmountStarted&&Yr.markComponentPassiveEffectUnmountStarted(r)):0!=(4&e)&&ra(t),0!=(2&e)&&Xy(!0),wm(t,n,s),0!=(2&e)&&Xy(!1),0!=(8&e)?null!==Yr&&"function"==typeof Yr.markComponentPassiveEffectUnmountStopped&&Yr.markComponentPassiveEffectUnmountStopped():0!=(4&e)&&aa())}l=l.next}while(l!==i)}}function _m(e,t){var n,r=t.updateQueue,a=null!==r?r.lastEffect:null;if(null!==a){var i=a.next,l=i;do{if((l.tag&e)===e){0!=(8&e)?(n=t,null!==Yr&&"function"==typeof Yr.markComponentPassiveEffectMountStarted&&Yr.markComponentPassiveEffectMountStarted(n)):0!=(4&e)&&na(t);var s=l.create;0!=(2&e)&&Xy(!0),l.destroy=s(),0!=(2&e)&&Xy(!1),0!=(8&e)?null!==Yr&&"function"==typeof Yr.markComponentPassiveEffectMountStopped&&Yr.markComponentPassiveEffectMountStopped():0!=(4&e)&&null!==Yr&&"function"==typeof Yr.markComponentLayoutEffectMountStopped&&Yr.markComponentLayoutEffectMountStopped();var u=l.destroy;if(void 0!==u&&"function"!=typeof u){var c=void 0;o("%s must not return anything besides a function, which is used for clean-up.%s",c=0!=(4&l.tag)?"useLayoutEffect":0!=(2&l.tag)?"useInsertionEffect":"useEffect",null===u?" You returned null. If your effect does not require clean up, return undefined (or nothing).":"function"==typeof u.then?"\n\nIt looks like you wrote "+c+"(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:\n\n"+c+"(() => {\n async function fetchData() {\n // You can await here\n const response = await MyAPI.getData(someId);\n // ...\n }\n fetchData();\n}, [someId]); // Or [] if effect doesn't need props or state\n\nLearn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching":" You returned: "+u)}}l=l.next}while(l!==i)}}function Cm(e,t){if(0!=(4&t.flags)&&t.tag===c){var n=t.stateNode.passiveEffectDuration,r=t.memoizedProps,a=r.id,o=r.onPostCommit,i=$h(),l=null===t.alternate?"mount":"update";Bh()&&(l="nested-update"),"function"==typeof o&&o(a,l,n,i);var s=t.return;e:for(;null!==s;){switch(s.tag){case 3:s.stateNode.passiveEffectDuration+=n;break e;case c:s.stateNode.passiveEffectDuration+=n;break e}s=s.return}}}function Dm(e,t,n,r){if(0!=(n.flags&br))switch(n.tag){case 0:case s:case p:if(!dm)if(2&n.mode)try{Zh(),_m(5,n)}finally{Qh(n)}else _m(5,n);break;case 1:var a=n.stateNode;if(4&n.flags&&!dm)if(null===t)if(n.type!==n.elementType||mv||(a.props!==n.memoizedProps&&o("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ue(n)||"instance"),a.state!==n.memoizedState&&o("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ue(n)||"instance")),2&n.mode)try{Zh(),a.componentDidMount()}finally{Qh(n)}else a.componentDidMount();else{var i=n.elementType===n.type?t.memoizedProps:vd(n.type,t.memoizedProps),l=t.memoizedState;if(n.type!==n.elementType||mv||(a.props!==n.memoizedProps&&o("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ue(n)||"instance"),a.state!==n.memoizedState&&o("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ue(n)||"instance")),2&n.mode)try{Zh(),a.componentDidUpdate(i,l,a.__reactInternalSnapshotBeforeUpdate)}finally{Qh(n)}else a.componentDidUpdate(i,l,a.__reactInternalSnapshotBeforeUpdate)}var u=n.updateQueue;null!==u&&(n.type!==n.elementType||mv||(a.props!==n.memoizedProps&&o("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ue(n)||"instance"),a.state!==n.memoizedState&&o("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ue(n)||"instance")),Jd(0,u,a));break;case 3:var f=n.updateQueue;if(null!==f){var v=null;if(null!==n.child)switch(n.child.tag){case 5:case 1:v=n.child.stateNode}Jd(0,f,v)}break;case 5:var w=n.stateNode;if(null===t&&4&n.flags)!function(e,t,n,r){switch(t){case"button":case"input":case"select":case"textarea":return void(n.autoFocus&&e.focus());case"img":n.src&&(e.src=n.src)}}(w,n.type,n.memoizedProps);break;case 6:case 4:break;case c:var k=n.memoizedProps,S=k.onCommit,x=k.onRender,E=n.stateNode.effectDuration,T=$h(),_=null===t?"mount":"update";Bh()&&(_="nested-update"),"function"==typeof x&&x(n.memoizedProps.id,_,n.actualDuration,n.treeBaseDuration,n.actualStartTime,T),"function"==typeof S&&S(n.memoizedProps.id,_,E,T),D=n,$g.push(D),Vg||(Vg=!0,Gy(jr,(function(){return Py(),null})));var C=n.return;e:for(;null!==C;){switch(C.tag){case 3:C.stateNode.effectDuration+=E;break e;case c:C.stateNode.effectDuration+=E;break e}C=C.return}break;case d:!function(e,t){if(null===t.memoizedState){var n=t.alternate;if(null!==n){var r=n.memoizedState;if(null!==r){var a=r.dehydrated;null!==a&&function(e){Go(e)}(a)}}}}(0,n);break;case m:case h:case g:case y:case b:case 25:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}var D;dm||n.flags&rr&&Pm(n)}function Rm(e){switch(e.tag){case 0:case s:case p:if(2&e.mode)try{Zh(),mm(e,e.return)}finally{Qh(e)}else mm(e,e.return);break;case 1:var t=e.stateNode;"function"==typeof t.componentDidMount&&function(e,t,n){try{n.componentDidMount()}catch(n){Oy(e,t,n)}}(e,e.return,t),ym(e,e.return);break;case 5:ym(e,e.return)}}function Pm(e){var t=e.ref;if(null!==t){var n,r=e.stateNode;if(e.tag,n=r,"function"==typeof t){var a;if(2&e.mode)try{Zh(),a=t(n)}finally{Qh(e)}else a=t(n);"function"==typeof a&&o("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ue(e))}else t.hasOwnProperty("current")||o("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Ue(e)),t.current=n}}function Nm(e){var t,n=e.alternate;if(null!==n&&(e.alternate=null,Nm(n)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag){var r=e.stateNode;null!==r&&(delete(t=r)[wu],delete t[ku],delete t[xu],delete t[Eu],delete t[Tu])}e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Im(e){return 5===e.tag||3===e.tag||4===e.tag}function Mm(e){var t=e;e:for(;;){for(;null===t.sibling;){if(null===t.return||Im(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;5!==t.tag&&6!==t.tag&&t.tag!==v;){if(2&t.flags)continue e;if(null===t.child||4===t.tag)continue e;t.child.return=t,t=t.child}if(!(2&t.flags))return t.stateNode}}function Om(e){var t=function(e){for(var t=e.return;null!==t;){if(Im(t))return t;t=t.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}(e);switch(t.tag){case 5:var n=t.stateNode;32&t.flags&&(su(n),t.flags&=-33),zm(e,Mm(e),n);break;case 3:case 4:var r=t.stateNode.containerInfo;Lm(e,Mm(e),r);break;default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Lm(e,t,n){var r=e.tag;if(5===r||6===r){var a=e.stateNode;t?function(e,t,n){8===e.nodeType?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)}(n,a,t):function(e,t){var n;8===e.nodeType?(n=e.parentNode).insertBefore(t,e):(n=e).appendChild(t),null==e._reactRootContainer&&null===n.onclick&&Ns(n)}(n,a)}else if(4===r);else{var o=e.child;if(null!==o){Lm(o,t,n);for(var i=o.sibling;null!==i;)Lm(i,t,n),i=i.sibling}}}function zm(e,t,n){var r=e.tag;if(5===r||6===r){var a=e.stateNode;t?function(e,t,n){e.insertBefore(t,n)}(n,a,t):function(e,t){e.appendChild(t)}(n,a)}else if(4===r);else{var o=e.child;if(null!==o){zm(o,t,n);for(var i=o.sibling;null!==i;)zm(i,t,n),i=i.sibling}}}var Am=null,Fm=!1;function Hm(e,t,n){var r,a,o=t;e:for(;null!==o;){switch(o.tag){case 5:Am=o.stateNode,Fm=!1;break e;case 3:case 4:Am=o.stateNode.containerInfo,Fm=!0;break e}o=o.return}if(null===Am)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Um(e,t,n),Am=null,Fm=!1,null!==(a=(r=n).alternate)&&(a.return=null),r.return=null}function jm(e,t,n){for(var r=n.child;null!==r;)Um(e,t,r),r=r.sibling}function Um(e,t,n){switch(function(e){if(qr&&"function"==typeof qr.onCommitFiberUnmount)try{qr.onCommitFiberUnmount($r,e)}catch(e){Gr||(Gr=!0,o("React instrumentation encountered an error: %s",e))}}(n),n.tag){case 5:dm||bm(n,t);case 6:var r=Am,a=Fm;return Am=null,jm(e,t,n),Fm=a,void(null!==(Am=r)&&(Fm?(x=Am,E=n.stateNode,8===x.nodeType?x.parentNode.removeChild(E):x.removeChild(E)):function(e,t){e.removeChild(t)}(Am,n.stateNode)));case v:return void(null!==Am&&(Fm?function(e,t){8===e.nodeType?uu(e.parentNode,t):1===e.nodeType&&uu(e,t),Go(e)}(Am,n.stateNode):uu(Am,n.stateNode)));case 4:var i=Am,l=Fm;return Am=n.stateNode.containerInfo,Fm=!0,jm(e,t,n),Am=i,void(Fm=l);case 0:case s:case f:case p:if(!dm){var u=n.updateQueue;if(null!==u){var c=u.lastEffect;if(null!==c){var d=c.next,h=d;do{var m=h,b=m.destroy,w=m.tag;void 0!==b&&(0!=(2&w)?wm(n,t,b):0!=(4&w)&&(ra(n),2&n.mode?(Zh(),wm(n,t,b),Qh(n)):wm(n,t,b),aa())),h=h.next}while(h!==d)}}}return void jm(e,t,n);case 1:if(!dm){bm(n,t);var k=n.stateNode;"function"==typeof k.componentWillUnmount&&gm(n,t,k)}return void jm(e,t,n);case g:return void jm(e,t,n);case y:if(1&n.mode){var S=dm;dm=S||null!==n.memoizedState,jm(e,t,n),dm=S}else jm(e,t,n);break;default:return void jm(e,t,n)}var x,E}function Vm(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new fm),t.forEach((function(t){var r=Fy.bind(null,e,t);if(!n.has(t)){if(n.add(t),Kr){if(null===hm||null===vm)throw Error("Expected finished root and lanes to be set. This is a bug in React.");qy(vm,hm)}t.then(r,r)}}))}}function Wm(e,t,n){var r=t.deletions;if(null!==r)for(var a=0;a<r.length;a++){var o=r[a];try{Hm(e,t,o)}catch(e){Oy(o,t,e)}}var i=We;if(t.subtreeFlags&yr)for(var l=t.child;null!==l;)Ge(l),Bm(l,e),l=l.sibling;Ge(i)}function Bm(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case s:case f:case p:if(Wm(t,e),$m(e),4&a){try{Tm(3,e,e.return),_m(3,e)}catch(t){Oy(e,e.return,t)}if(2&e.mode){try{Zh(),Tm(5,e,e.return)}catch(t){Oy(e,e.return,t)}Qh(e)}else try{Tm(5,e,e.return)}catch(t){Oy(e,e.return,t)}}return;case 1:return Wm(t,e),$m(e),void(a&rr&&null!==r&&bm(r,r.return));case 5:if(Wm(t,e),$m(e),a&rr&&null!==r&&bm(r,r.return),32&e.flags){var o=e.stateNode;try{su(o)}catch(t){Oy(e,e.return,t)}}if(4&a){var i=e.stateNode;if(null!=i){var l=e.memoizedProps,u=null!==r?r.memoizedProps:l,c=e.type,h=e.updateQueue;if(e.updateQueue=null,null!==h)try{!function(e,t,n,r,a,o){Os(e,t,n,r,a),Ou(e,a)}(i,h,c,u,l)}catch(t){Oy(e,e.return,t)}}}return;case 6:if(Wm(t,e),$m(e),4&a){if(null===e.stateNode)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var v=e.stateNode,w=e.memoizedProps;null!==r&&r.memoizedProps;try{!function(e,t,n){e.nodeValue=n}(v,0,w)}catch(t){Oy(e,e.return,t)}}return;case 3:if(Wm(t,e),$m(e),4&a)if(null!==r)if(r.memoizedState.isDehydrated)try{Go(t.containerInfo)}catch(t){Oy(e,e.return,t)}return;case 4:return Wm(t,e),void $m(e);case d:Wm(t,e),$m(e);var k=e.child;if(k.flags&lr){var S=k.stateNode,x=null!==k.memoizedState;if(S.isHidden=x,x)null!==k.alternate&&null!==k.alternate.memoizedState||(Og=zr())}if(4&a){try{!function(e){e.memoizedState}(e)}catch(t){Oy(e,e.return,t)}Vm(e)}return;case y:var E=null!==r&&null!==r.memoizedState;if(1&e.mode){var T=dm;dm=T||E,Wm(t,e),dm=T}else Wm(t,e);if($m(e),a&lr){var _=e.stateNode,C=null!==e.memoizedState,D=e;if(_.isHidden=C,C&&!E&&0!=(1&D.mode)){pm=D;for(var R=D.child;null!==R;)pm=R,Km(R),R=R.sibling}!function(e,t){for(var n=null,r=e;;){if(5===r.tag){if(null===n){n=r;try{var a=r.stateNode;t?cu(a):du(r.stateNode,r.memoizedProps)}catch(t){Oy(e,e.return,t)}}}else if(6===r.tag){if(null===n)try{var o=r.stateNode;t?o.nodeValue="":fu(o,r.memoizedProps)}catch(t){Oy(e,e.return,t)}}else if((r.tag!==y&&r.tag!==b||null===r.memoizedState||r===e)&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)return;for(;null===r.sibling;){if(null===r.return||r.return===e)return;n===r&&(n=null),r=r.return}n===r&&(n=null),r.sibling.return=r.return,r=r.sibling}}(D,C)}return;case m:return Wm(t,e),$m(e),void(4&a&&Vm(e));case g:return;default:return Wm(t,e),void $m(e)}}function $m(e){var t=e.flags;if(2&t){try{Om(e)}catch(t){Oy(e,e.return,t)}e.flags&=-3}t&ir&&(e.flags&=-4097)}function qm(e,t,n){hm=n,vm=t,pm=e,Ym(e,t,n),hm=null,vm=null}function Ym(e,t,n){for(var r=0!=(1&e.mode);null!==pm;){var a=pm,o=a.child;if(a.tag===y&&r){var i=null!==a.memoizedState||cm;if(i){Gm(e,t,n);continue}var l=a.alternate,s=null!==l&&null!==l.memoizedState,u=cm,c=dm;cm=i,(dm=s||dm)&&!c&&(pm=a,Xm(a));for(var d=o;null!==d;)pm=d,Ym(d,t,n),d=d.sibling;pm=a,cm=u,dm=c,Gm(e,t,n)}else 0!=(a.subtreeFlags&br)&&null!==o?(o.return=a,pm=o):Gm(e,t,n)}}function Gm(e,t,n){for(;null!==pm;){var r=pm;if(0!=(r.flags&br)){var a=r.alternate;Ge(r);try{Dm(0,a,r)}catch(e){Oy(r,r.return,e)}Ye()}if(r===e)return void(pm=null);var o=r.sibling;if(null!==o)return o.return=r.return,void(pm=o);pm=r.return}}function Km(e){for(;null!==pm;){var t=pm,n=t.child;switch(t.tag){case 0:case s:case f:case p:if(2&t.mode)try{Zh(),Tm(4,t,t.return)}finally{Qh(t)}else Tm(4,t,t.return);break;case 1:bm(t,t.return);var r=t.stateNode;"function"==typeof r.componentWillUnmount&&gm(t,t.return,r);break;case 5:bm(t,t.return);break;case y:if(null!==t.memoizedState){Qm(e);continue}}null!==n?(n.return=t,pm=n):Qm(e)}}function Qm(e){for(;null!==pm;){var t=pm;if(t===e)return void(pm=null);var n=t.sibling;if(null!==n)return n.return=t.return,void(pm=n);pm=t.return}}function Xm(e){for(;null!==pm;){var t=pm,n=t.child;if(t.tag===y)if(null!==t.memoizedState){Zm(e);continue}null!==n?(n.return=t,pm=n):Zm(e)}}function Zm(e){for(;null!==pm;){var t=pm;Ge(t);try{Rm(t)}catch(e){Oy(t,t.return,e)}if(Ye(),t===e)return void(pm=null);var n=t.sibling;if(null!==n)return n.return=t.return,void(pm=n);pm=t.return}}function Jm(e,t,n,r){pm=t,function(e,t,n,r){for(;null!==pm;){var a=pm,o=a.child;0!=(a.subtreeFlags&wr)&&null!==o?(o.return=a,pm=o):eg(e,t,n,r)}}(t,e,n,r)}function eg(e,t,n,r){for(;null!==pm;){var a=pm;if(0!=(a.flags&or)){Ge(a);try{tg(t,a,n,r)}catch(e){Oy(a,a.return,e)}Ye()}if(a===e)return void(pm=null);var o=a.sibling;if(null!==o)return o.return=a.return,void(pm=o);pm=a.return}}function tg(e,t,n,r){switch(t.tag){case 0:case s:case p:if(2&t.mode){Jh();try{_m(9,t)}finally{Xh(t)}}else _m(9,t)}}function ng(e){pm=e,function(){for(;null!==pm;){var e=pm,t=e.child;if(0!=(pm.flags&er)){var n=e.deletions;if(null!==n){for(var r=0;r<n.length;r++){var a=n[r];pm=a,og(a,e)}var o=e.alternate;if(null!==o){var i=o.child;if(null!==i){o.child=null;do{var l=i.sibling;i.sibling=null,i=l}while(null!==i)}}pm=e}}0!=(e.subtreeFlags&wr)&&null!==t?(t.return=e,pm=t):rg()}}()}function rg(){for(;null!==pm;){var e=pm;0!=(e.flags&or)&&(Ge(e),ag(e),Ye());var t=e.sibling;if(null!==t)return t.return=e.return,void(pm=t);pm=e.return}}function ag(e){switch(e.tag){case 0:case s:case p:2&e.mode?(Jh(),Tm(9,e,e.return),Xh(e)):Tm(9,e,e.return)}}function og(e,t){for(;null!==pm;){var n=pm;Ge(n),lg(n,t),Ye();var r=n.child;null!==r?(r.return=n,pm=r):ig(e)}}function ig(e){for(;null!==pm;){var t=pm,n=t.sibling,r=t.return;if(Nm(t),t===e)return void(pm=null);if(null!==n)return n.return=r,void(pm=n);pm=r}}function lg(e,t){switch(e.tag){case 0:case s:case p:2&e.mode?(Jh(),Tm(8,e,t),Xh(e)):Tm(8,e,t)}}function sg(e){switch(e.tag){case 0:case s:case p:try{_m(5,e)}catch(t){Oy(e,e.return,t)}break;case 1:var t=e.stateNode;try{t.componentDidMount()}catch(t){Oy(e,e.return,t)}}}function ug(e){switch(e.tag){case 0:case s:case p:try{_m(9,e)}catch(t){Oy(e,e.return,t)}}}function cg(e){switch(e.tag){case 0:case s:case p:try{Tm(5,e,e.return)}catch(t){Oy(e,e.return,t)}break;case 1:var t=e.stateNode;"function"==typeof t.componentWillUnmount&&gm(e,e.return,t)}}function dg(e){switch(e.tag){case 0:case s:case p:try{Tm(9,e,e.return)}catch(t){Oy(e,e.return,t)}}}if("function"==typeof Symbol&&Symbol.for){var fg=Symbol.for;fg("selector.component"),fg("selector.has_pseudo_class"),fg("selector.role"),fg("selector.test_id"),fg("selector.text")}var pg=[];var hg=n.ReactCurrentActQueue;function vg(){var e="undefined"!=typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:void 0;return e||null===hg.current||o("The current testing environment is not configured to support act(...)"),e}var mg=Math.ceil,gg=n.ReactCurrentDispatcher,yg=n.ReactCurrentOwner,bg=n.ReactCurrentBatchConfig,wg=n.ReactCurrentActQueue,kg=0,Sg=null,xg=null,Eg=0,Tg=0,_g=Wu(0),Cg=0,Dg=null,Rg=0,Pg=0,Ng=0,Ig=null,Mg=null,Og=0,Lg=1/0,zg=null;function Ag(){Lg=zr()+500}function Fg(){return Lg}var Hg=!1,jg=null,Ug=null,Vg=!1,Wg=null,Bg=0,$g=[],qg=null,Yg=0,Gg=null,Kg=!1,Qg=!1,Xg=0,Zg=null,Jg=Va,ey=0,ty=!1;function ny(){return Sg}function ry(){return 0!=(6&kg)?zr():Jg!==Va?Jg:Jg=zr()}function ay(e){if(0==(1&e.mode))return 1;if(0!=(2&kg)&&0!==Eg)return to(Eg);if(null!==rd.transition){if(null!==bg.transition){var t=bg.transition;t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e)}return 0===ey&&(ey=Ja()),ey}var n,r=_o();return 0!==r?r:void 0===(n=window.event)?xo:ri(n.type)}function oy(e){var t;return 0==(1&e.mode)?1:(t=Ba,0==((Ba<<=1)&Ra)&&(Ba=Pa),t)}function iy(e,t,n,r){!function(){if(Yg>50)throw Yg=0,Gg=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Xg>50&&(Xg=0,Zg=null,o("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}(),ty&&o("useInsertionEffect must not schedule updates."),Kg&&(Qg=!0),co(e,n,r),0!=(2&kg)&&e===Sg?function(e){if(Be&&!yh)switch(e.tag){case 0:case s:case p:var t=xg&&Ue(xg)||"Unknown",n=t;if(!By.has(n))By.add(n),o("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",Ue(e)||"Unknown",t,t);break;case 1:$y||(o("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),$y=!0)}}(t):(Kr&&ho(e,t,n),function(e){if(1&e.mode){if(!vg())return}else{if(t="undefined"!=typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:void 0,"undefined"==typeof jest||!1===t)return;if(0!==kg)return;if(0!==e.tag&&e.tag!==s&&e.tag!==p)return}var t;if(null===wg.current){var n=We;try{Ge(e),o("An update to %s inside a test was not wrapped in act(...).\n\nWhen testing, code that causes React state updates should be wrapped into act(...):\n\nact(() => {\n /* fire events that update state */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act",Ue(e))}finally{n?Ge(e):Ye()}}}(t),e===Sg&&(0==(2&kg)&&(Pg=io(Pg,n)),4===Cg&&dy(e,Eg)),ly(e,r),1!==n||0!==kg||0!=(1&t.mode)||wg.isBatchingLegacy||(Ag(),fc()))}function ly(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.pendingLanes,r=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,i=n;i>0;){var l=no(i),s=1<<l,u=o[l];u===Va?0!=(s&r)&&0==(s&a)||(o[l]=Ya(s,t)):u<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=qa(e,e===Sg?Eg:0);if(0===r)return null!==n&&Ky(n),e.callbackNode=null,void(e.callbackPriority=0);var a=eo(r),i=e.callbackPriority;if(i!==a||null!==wg.current&&n!==Yy){var l,s;if(null!=n&&Ky(n),1===a)0===e.tag?(null!==wg.isBatchingLegacy&&(wg.didScheduleLegacyUpdate=!0),s=fy.bind(null,e),uc=!0,dc(s)):dc(fy.bind(null,e)),null!==wg.current?wg.current.push(pc):iu((function(){0==(6&kg)&&pc()})),l=null;else{var u;switch(Ro(r)){case ko:u=Fr;break;case So:u=Hr;break;case xo:u=jr;break;case Eo:u=Vr;break;default:u=jr}l=Gy(u,sy.bind(null,e))}e.callbackPriority=a,e.callbackNode=l}else null==n&&1!==i&&o("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.")}function sy(e,t){if(Vh=!1,Wh=!1,Jg=Va,ey=0,0!=(6&kg))throw new Error("Should not already be working.");var n=e.callbackNode;if(Py()&&e.callbackNode!==n)return null;var r=qa(e,e===Sg?Eg:0);if(0===r)return null;var a=!Xa(0,r)&&!function(e,t){return 0!=(t&e.expiredLanes)}(e,r)&&!t,o=a?function(e,t){var n=kg;kg|=2;var r=wy();if(Sg!==e||Eg!==t){if(Kr){var a=e.memoizedUpdaters;a.size>0&&(qy(e,Eg),a.clear()),vo(e,t)}zg=null,Ag(),yy(e,t)}la(t);for(;;)try{_y();break}catch(t){by(e,t)}return Sd(),ky(r),kg=n,null!==xg?(null!==Yr&&"function"==typeof Yr.markRenderYielded&&Yr.markRenderYielded(),0):(sa(),Sg=null,Eg=0,Cg)}(e,r):Ey(e,r);if(0!==o){if(2===o){var i=Ga(e);0!==i&&(r=i,o=uy(e,i))}if(1===o){var l=Dg;throw yy(e,0),dy(e,r),ly(e,zr()),l}if(6===o)dy(e,r);else{var s=!Xa(0,r),u=e.current.alternate;if(s&&!function(e){var t=e;for(;;){if(t.flags&sr){var n=t.updateQueue;if(null!==n){var r=n.stores;if(null!==r)for(var a=0;a<r.length;a++){var o=r[a],i=o.getSnapshot,l=o.value;try{if(!vl(i(),l))return!1}catch(e){return!1}}}}var s=t.child;if(t.subtreeFlags&sr&&null!==s)s.return=t,t=s;else{if(t===e)return!0;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(u)){if(2===(o=Ey(e,r))){var c=Ga(e);0!==c&&(r=c,o=uy(e,c))}if(1===o){var d=Dg;throw yy(e,0),dy(e,r),ly(e,zr()),d}}e.finishedWork=u,e.finishedLanes=r,function(e,t,n){switch(t){case 0:case 1:throw new Error("Root did not complete. This is a bug in React.");case 2:case 5:Ry(e,Mg,zg);break;case 3:if(dy(e,n),Qa(n)&&!Qy()){var r=Og+500-zr();if(r>10){if(0!==qa(e,0))break;var a=e.suspendedLanes;if(!oo(a,n)){ry(),fo(e,a);break}e.timeoutHandle=ru(Ry.bind(null,e,Mg,zg),r);break}}Ry(e,Mg,zg);break;case 4:if(dy(e,n),function(e){return(e&ma)===e}(n))break;if(!Qy()){var o=function(e,t){for(var n=e.eventTimes,r=Va;t>0;){var a=no(t),o=1<<a,i=n[a];i>r&&(r=i),t&=~o}return r}(e,n),i=o,l=zr()-i,s=((u=l)<120?120:u<480?480:u<1080?1080:u<1920?1920:u<3e3?3e3:u<4320?4320:1960*mg(u/1960))-l;if(s>10){e.timeoutHandle=ru(Ry.bind(null,e,Mg,zg),s);break}}Ry(e,Mg,zg);break;default:throw new Error("Unknown root exit status.")}var u}(e,o,r)}}return ly(e,zr()),e.callbackNode===n?sy.bind(null,e):null}function uy(e,t){var n=Ig;Po(e)&&(yy(e,t).flags|=nr,o("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.containerInfo.nodeName.toLowerCase()));var r=Ey(e,t);if(2!==r){var a=Mg;Mg=n,null!==a&&cy(a)}return r}function cy(e){null===Mg?Mg=e:Mg.push.apply(Mg,e)}function dy(e,t){t=lo(t,Ng),function(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var n=e.expirationTimes,r=t;r>0;){var a=no(r),o=1<<a;n[a]=Va,r&=~o}}(e,t=lo(t,Pg))}function fy(e){if(Vh=Wh,Wh=!1,0!=(6&kg))throw new Error("Should not already be working.");Py();var t=qa(e,0);if(!ao(t,1))return ly(e,zr()),null;var n=Ey(e,t);if(0!==e.tag&&2===n){var r=Ga(e);0!==r&&(t=r,n=uy(e,r))}if(1===n){var a=Dg;throw yy(e,0),dy(e,t),ly(e,zr()),a}if(6===n)throw new Error("Root did not complete. This is a bug in React.");var o=e.current.alternate;return e.finishedWork=o,e.finishedLanes=t,Ry(e,Mg,zg),ly(e,zr()),null}function py(e,t){var n=kg;kg|=1;try{return e(t)}finally{0!==(kg=n)||wg.isBatchingLegacy||(Ag(),fc())}}function hy(e){null!==Wg&&0===Wg.tag&&0==(6&kg)&&Py();var t=kg;kg|=1;var n=bg.transition,r=_o();try{return bg.transition=null,Co(ko),e?e():void 0}finally{Co(r),bg.transition=n,0==(6&(kg=t))&&pc()}}function vy(){return 0!=(6&kg)}function my(e,t){$u(_g,Tg,e),Tg=io(Tg,t)}function gy(e){Tg=_g.current,Bu(_g,e)}function yy(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,au(n)),null!==xg)for(var r=xg.return;null!==r;){r.alternate;sm(0,r),r=r.return}Sg=e;var a=mb(e.current,null);return xg=a,Eg=Tg=t,Cg=0,Dg=null,Rg=0,Pg=0,Ng=0,Ig=null,Mg=null,function(){if(null!==Nd){for(var e=0;e<Nd.length;e++){var t=Nd[e],n=t.interleaved;if(null!==n){t.interleaved=null;var r=n.next,a=t.pending;if(null!==a){var o=a.next;a.next=r,n.next=o}t.pending=n}}Nd=null}}(),ad.discardPendingWarnings(),a}function by(e,t){for(;;){var n=xg;try{if(Sd(),Cp(),Ye(),yg.current=null,null===n||null===n.return)return Cg=1,Dg=t,void(xg=null);2&n.mode&&Kh(n,!0),ta(),null!==t&&"object"==typeof t&&"function"==typeof t.then?ia(n,t,Eg):oa(n,t,Eg),cv(e,n.return,n,t,Eg),Dy(n)}catch(e){t=e,xg===n&&null!==n?(n=n.return,xg=n):n=xg;continue}return}}function wy(){var e=gg.current;return gg.current=Ch,null===e?Ch:e}function ky(e){gg.current=e}function Sy(e){Rg=io(e,Rg)}function xy(){0!==Cg&&3!==Cg&&2!==Cg||(Cg=4),null!==Sg&&(Ka(Rg)||Ka(Pg))&&dy(Sg,Eg)}function Ey(e,t){var n=kg;kg|=2;var r=wy();if(Sg!==e||Eg!==t){if(Kr){var a=e.memoizedUpdaters;a.size>0&&(qy(e,Eg),a.clear()),vo(e,t)}zg=null,yy(e,t)}for(la(t);;)try{Ty();break}catch(t){by(e,t)}if(Sd(),kg=n,ky(r),null!==xg)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return sa(),Sg=null,Eg=0,Cg}function Ty(){for(;null!==xg;)Cy(xg)}function _y(){for(;null!==xg&&!Or();)Cy(xg)}function Cy(e){var t,n=e.alternate;Ge(e),0!=(2&e.mode)?(Yh(e),t=Uy(n,e,Tg),Kh(e,!0)):t=Uy(n,e,Tg),Ye(),e.memoizedProps=e.pendingProps,null===t?Dy(e):xg=t,yg.current=null}function Dy(e){var t=e;do{var n=t.alternate,r=t.return;if(0==(t.flags&ur)){Ge(t);var a=void 0;if(0==(2&t.mode)?a=im(n,t,Tg):(Yh(t),a=im(n,t,Tg),Kh(t,!1)),Ye(),null!==a)return void(xg=a)}else{var o=lm(0,t);if(null!==o)return o.flags&=32767,void(xg=o);if(0!=(2&t.mode)){Kh(t,!1);for(var i=t.actualDuration,l=t.child;null!==l;)i+=l.actualDuration,l=l.sibling;t.actualDuration=i}if(null===r)return Cg=6,void(xg=null);r.flags|=ur,r.subtreeFlags=0,r.deletions=null}var s=t.sibling;if(null!==s)return void(xg=s);xg=t=r}while(null!==t);0===Cg&&(Cg=5)}function Ry(e,t,n){var r=_o(),a=bg.transition;try{bg.transition=null,Co(ko),function(e,t,n,r){do{Py()}while(null!==Wg);if(function(){ad.flushLegacyContextWarning(),ad.flushPendingUnsafeLifecycleWarnings()}(),0!=(6&kg))throw new Error("Should not already be working.");var a=e.finishedWork,i=e.finishedLanes;if(function(e){null!==Yr&&"function"==typeof Yr.markCommitStarted&&Yr.markCommitStarted(e)}(i),null===a)return Jr(),null;0===i&&o("root.finishedLanes should not be empty during a commit. This is a bug in React.");if(e.finishedWork=null,e.finishedLanes=0,a===e.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=0;var l=io(a.lanes,a.childLanes);(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t;for(var r=e.entanglements,a=e.eventTimes,o=e.expirationTimes,i=n;i>0;){var l=no(i),s=1<<l;r[l]=0,a[l]=Va,o[l]=Va,i&=~s}})(e,l),e===Sg&&(Sg=null,xg=null,Eg=0);0==(a.subtreeFlags&wr)&&0==(a.flags&wr)||Vg||(Vg=!0,qg=n,Gy(jr,(function(){return Py(),null})));var s=0!=(15990&a.subtreeFlags),u=0!=(15990&a.flags);if(s||u){var c=bg.transition;bg.transition=null;var d=_o();Co(ko);var f=kg;kg|=4,yg.current=null,Sm(e,a),qh(),function(e,t,n){hm=n,vm=e,Ge(t),Bm(t,e),Ge(t),hm=null,vm=null}(e,a,i),e.containerInfo,Cl(Zs),Xo(Xs),Xs=null,Zs=null,e.current=a,function(e){null!==Yr&&"function"==typeof Yr.markLayoutEffectsStarted&&Yr.markLayoutEffectsStarted(e)}(i),qm(a,e,i),null!==Yr&&"function"==typeof Yr.markLayoutEffectsStopped&&Yr.markLayoutEffectsStopped(),Lr(),kg=f,Co(d),bg.transition=c}else e.current=a,qh();var p=Vg;Vg?(Vg=!1,Wg=e,Bg=i):(Xg=0,Zg=null);0===(l=e.pendingLanes)&&(Ug=null);p||Hy(e.current,!1);(function(e,t){if(qr&&"function"==typeof qr.onCommitFiberRoot)try{var n,r=(e.current.flags&tr)===tr;switch(t){case ko:n=Fr;break;case So:n=Hr;break;case xo:n=jr;break;case Eo:n=Vr;break;default:n=jr}qr.onCommitFiberRoot($r,e,n,r)}catch(e){Gr||(Gr=!0,o("React instrumentation encountered an error: %s",e))}})(a.stateNode,r),Kr&&e.memoizedUpdaters.clear();if(function(){pg.forEach((function(e){return e()}))}(),ly(e,zr()),null!==t)for(var h=e.onRecoverableError,v=0;v<t.length;v++){var m=t[v],g=m.stack,y=m.digest;h(m.value,{componentStack:g,digest:y})}if(Hg){Hg=!1;var b=jg;throw jg=null,b}ao(Bg,1)&&0!==e.tag&&Py();ao(l=e.pendingLanes,1)?(Wh=!0,e===Gg?Yg++:(Yg=0,Gg=e)):Yg=0;pc(),Jr()}(e,t,n,r)}finally{bg.transition=a,Co(r)}return null}function Py(){if(null!==Wg){var e=Ro(Bg),t=(i=e,0===(a=xo)||a>i?a:i),n=bg.transition,r=_o();try{return bg.transition=null,Co(t),function(){if(null===Wg)return!1;var e=qg;qg=null;var t=Wg,n=Bg;if(Wg=null,Bg=0,0!=(6&kg))throw new Error("Cannot flush passive effects while already rendering.");Kg=!0,Qg=!1,function(e){null!==Yr&&"function"==typeof Yr.markPassiveEffectsStarted&&Yr.markPassiveEffectsStarted(e)}(n);var r=kg;kg|=4,ng(t.current),Jm(t,t.current,n,e);var a=$g;$g=[];for(var i=0;i<a.length;i++){Cm(0,a[i])}void(null!==Yr&&"function"==typeof Yr.markPassiveEffectsStopped&&Yr.markPassiveEffectsStopped()),Hy(t.current,!0),kg=r,pc(),Qg?t===Zg?Xg++:(Xg=0,Zg=t):Xg=0;Kg=!1,Qg=!1,function(e){if(qr&&"function"==typeof qr.onPostCommitFiberRoot)try{qr.onPostCommitFiberRoot($r,e)}catch(e){Gr||(Gr=!0,o("React instrumentation encountered an error: %s",e))}}(t);var l=t.current.stateNode;return l.effectDuration=0,l.passiveEffectDuration=0,!0}()}finally{Co(r),bg.transition=n}}var a,i;return!1}function Ny(e){return null!==Ug&&Ug.has(e)}var Iy=function(e){Hg||(Hg=!0,jg=e)};function My(e,t,n){var r=$d(e,ov(e,tv(n,t),1),1),a=ry();null!==r&&(co(r,1,a),ly(r,a))}function Oy(e,t,n){if(function(e){Xn(null,(function(){throw e})),Zn()}(n),Xy(!1),3!==e.tag){var r=null;for(r=t;null!==r;){if(3===r.tag)return void My(r,e,n);if(1===r.tag){var a=r.type,i=r.stateNode;if("function"==typeof a.getDerivedStateFromError||"function"==typeof i.componentDidCatch&&!Ny(i)){var l=$d(r,iv(r,tv(n,e),1),1),s=ry();return void(null!==l&&(co(l,1,s),ly(l,s)))}}r=r.return}o("Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.\n\nError message:\n\n%s",n)}else My(e,e,n)}function Ly(e,t,n){var r=e.pingCache;null!==r&&r.delete(t);var a=ry();fo(e,n),function(e){0!==e.tag&&vg()&&null===wg.current&&o("A suspended resource finished loading inside a test, but the event was not wrapped in act(...).\n\nWhen testing, code that resolves suspended data should be wrapped into act(...):\n\nact(() => {\n /* finish loading suspended data */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act")}(e),Sg===e&&oo(Eg,n)&&(4===Cg||3===Cg&&Qa(Eg)&&zr()-Og<500?yy(e,0):Ng=io(Ng,n)),ly(e,a)}function zy(e,t){0===t&&(t=oy(e));var n=ry(),r=Ld(e,t);null!==r&&(co(r,t,n),ly(r,n))}function Ay(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),zy(e,n)}function Fy(e,t){var n,r=0;switch(e.tag){case d:n=e.stateNode;var a=e.memoizedState;null!==a&&(r=a.retryLane);break;case m:n=e.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}null!==n&&n.delete(t),zy(e,r)}function Hy(e,t){Ge(e),jy(e,vr,cg),t&&jy(e,mr,dg),jy(e,vr,sg),t&&jy(e,mr,ug),Ye()}function jy(e,t,n){for(var r=e,a=null;null!==r;){var o=r.subtreeFlags&t;r!==a&&null!==r.child&&0!==o?r=r.child:(0!=(r.flags&t)&&n(r),r=null!==r.sibling?r.sibling:a=r.return)}}var Uy,Vy=null;function Wy(e){if(0==(2&kg)&&1&e.mode){var t=e.tag;if(2===t||3===t||1===t||0===t||t===s||t===f||t===p){var n=Ue(e)||"ReactComponent";if(null!==Vy){if(Vy.has(n))return;Vy.add(n)}else Vy=new Set([n]);var r=We;try{Ge(e),o("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{r?Ge(e):Ye()}}}}Uy=function(e,t,n){var r=Eb(null,t);try{return em(e,t,n)}catch(o){if(Mc||null!==o&&"object"==typeof o&&"function"==typeof o.then)throw o;if(Sd(),Cp(),sm(0,t),Eb(t,r),2&t.mode&&Yh(t),Xn(null,em,null,e,t,n),qn){var a=Zn();"object"==typeof a&&null!==a&&a._suppressLogging&&"object"==typeof o&&null!==o&&!o._suppressLogging&&(o._suppressLogging=!0)}throw o}};var By,$y=!1;function qy(e,t){Kr&&e.memoizedUpdaters.forEach((function(n){ho(e,n,t)}))}By=new Set;var Yy={};function Gy(e,t){var n=wg.current;return null!==n?(n.push(t),Yy):Ir(e,t)}function Ky(e){if(e!==Yy)return Mr(e)}function Qy(){return null!==wg.current}function Xy(e){ty=e}var Zy=null,Jy=null,eb=function(e){Zy=e};function tb(e){if(null===Zy)return e;var t=Zy(e);return void 0===t?e:t.current}function nb(e){return tb(e)}function rb(e){if(null===Zy)return e;var t=Zy(e);if(void 0===t){if(null!=e&&"function"==typeof e.render){var n=tb(e.render);if(e.render!==n){var r={$$typeof:ue,render:n};return void 0!==e.displayName&&(r.displayName=e.displayName),r}}return e}return t.current}function ab(e,t){if(null===Zy)return!1;var n=e.elementType,r=t.type,a=!1,o="object"==typeof r&&null!==r?r.$$typeof:null;switch(e.tag){case 1:"function"==typeof r&&(a=!0);break;case 0:("function"==typeof r||o===pe)&&(a=!0);break;case s:(o===ue||o===pe)&&(a=!0);break;case f:case p:(o===fe||o===pe)&&(a=!0);break;default:return!1}if(a){var i=Zy(n);if(void 0!==i&&i===Zy(r))return!0}return!1}function ob(e){null!==Zy&&"function"==typeof WeakSet&&(null===Jy&&(Jy=new WeakSet),Jy.add(e))}var ib=function(e,t){if(null!==Zy){var n=t.staleFamilies,r=t.updatedFamilies;Py(),hy((function(){sb(e.current,r,n)}))}},lb=function(e,t){e.context===qu&&(Py(),hy((function(){Ob(t,e,null,null)})))};function sb(e,t,n){var r=e.alternate,a=e.child,o=e.sibling,i=e.tag,l=e.type,u=null;switch(i){case 0:case p:case 1:u=l;break;case s:u=l.render}if(null===Zy)throw new Error("Expected resolveFamily to be set during hot reload.");var c=!1,d=!1;if(null!==u){var f=Zy(u);void 0!==f&&(n.has(f)?d=!0:t.has(f)&&(1===i?d=!0:c=!0))}if(null!==Jy&&(Jy.has(e)||null!==r&&Jy.has(r))&&(d=!0),d&&(e._debugNeedsRemount=!0),d||c){var h=Ld(e,1);null!==h&&iy(h,e,1,Va)}null===a||d||sb(a,t,n),null!==o&&sb(o,t,n)}var ub,cb=function(e,t){var n=new Set,r=new Set(t.map((function(e){return e.current})));return db(e.current,r,n),n};function db(e,t,n){var r=e.child,a=e.sibling,o=e.tag,i=e.type,l=null;switch(o){case 0:case p:case 1:l=i;break;case s:l=i.render}var u=!1;null!==l&&t.has(l)&&(u=!0),u?function(e,t){if(function(e,t){var n=e,r=!1;for(;;){if(5===n.tag)r=!0,t.add(n.stateNode);else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)return r;for(;null===n.sibling;){if(null===n.return||n.return===e)return r;n=n.return}n.sibling.return=n.return,n=n.sibling}return!1}(e,t))return;var n=e;for(;;){switch(n.tag){case 5:return void t.add(n.stateNode);case 4:case 3:return void t.add(n.stateNode.containerInfo)}if(null===n.return)throw new Error("Expected to reach root first.");n=n.return}}(e,n):null!==r&&db(r,t,n),null!==a&&db(a,t,n)}ub=!1;try{var fb=Object.preventExtensions({});new Map([[fb,null]]),new Set([fb])}catch(e){ub=!0}function pb(e,t,n,r){this.tag=e,this.key=n,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=r,this.flags=0,this.subtreeFlags=0,this.deletions=null,this.lanes=0,this.childLanes=0,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,ub||"function"!=typeof Object.preventExtensions||Object.preventExtensions(this)}var hb=function(e,t,n,r){return new pb(e,t,n,r)};function vb(e){var t=e.prototype;return!(!t||!t.isReactComponent)}function mb(e,t){var n=e.alternate;null===n?((n=hb(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugSource=e._debugSource,n._debugOwner=e._debugOwner,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=0,n.actualStartTime=-1),n.flags=e.flags&kr,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue;var r=e.dependencies;switch(n.dependencies=null===r?null:{lanes:r.lanes,firstContext:r.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 2:case 0:case p:n.type=tb(e.type);break;case 1:n.type=nb(e.type);break;case s:n.type=rb(e.type)}return n}function gb(e,t){e.flags&=14680066;var n=e.alternate;if(null===n)e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0;else{e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type;var r=n.dependencies;e.dependencies=null===r?null:{lanes:r.lanes,firstContext:r.firstContext},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration}return e}function yb(e,t,n,r,a,i){var u=2,p=e;if("function"==typeof e)vb(e)?(u=1,p=nb(p)):p=tb(p);else if("string"==typeof e)u=5;else e:switch(e){case ae:return wb(n.children,a,i,t);case oe:u=8,0!=(1&(a|=8))&&(a|=ca);break;case ie:return function(e,t,n,r){"string"!=typeof e.id&&o('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var a=hb(c,e,r,2|t);return a.elementType=ie,a.lanes=n,a.stateNode={effectDuration:0,passiveEffectDuration:0},a}(n,a,i,t);case ce:return function(e,t,n,r){var a=hb(d,e,r,t);return a.elementType=ce,a.lanes=n,a}(n,a,i,t);case de:return function(e,t,n,r){var a=hb(m,e,r,t);return a.elementType=de,a.lanes=n,a}(n,a,i,t);case he:return kb(n,a,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case le:u=l;break e;case se:u=9;break e;case ue:u=s,p=rb(p);break e;case fe:u=f;break e;case pe:u=16,p=null;break e}var h="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(h+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var v=r?Ue(r):null;throw v&&(h+="\n\nCheck the render method of `"+v+"`."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(null==e?e:typeof e)+"."+h)}var g=hb(u,n,t,a);return g.elementType=e,g.type=p,g.lanes=i,g._debugOwner=r,g}function bb(e,t,n){var r;r=e._owner;var a=yb(e.type,e.key,e.props,r,t,n);return a._debugSource=e._source,a._debugOwner=e._owner,a}function wb(e,t,n,r){var a=hb(7,e,r,t);return a.lanes=n,a}function kb(e,t,n,r){var a=hb(y,e,r,t);a.elementType=he,a.lanes=n;return a.stateNode={isHidden:!1},a}function Sb(e,t,n){var r=hb(6,e,null,t);return r.lanes=n,r}function xb(e,t,n){var r=null!==e.children?e.children:[],a=hb(4,r,e.key,t);return a.lanes=n,a.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},a}function Eb(e,t){return null===e&&(e=hb(2,null,null,0)),e.tag=t.tag,e.key=t.key,e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.dependencies=t.dependencies,e.mode=t.mode,e.flags=t.flags,e.subtreeFlags=t.subtreeFlags,e.deletions=t.deletions,e.lanes=t.lanes,e.childLanes=t.childLanes,e.alternate=t.alternate,e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function Tb(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=-1,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=uo(0),this.expirationTimes=uo(Va),this.pendingLanes=0,this.suspendedLanes=0,this.pingedLanes=0,this.expiredLanes=0,this.mutableReadLanes=0,this.finishedLanes=0,this.entangledLanes=0,this.entanglements=uo(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0,this.memoizedUpdaters=new Set;for(var o=this.pendingUpdatersLaneMap=[],i=0;i<ha;i++)o.push(new Set);switch(t){case 1:this._debugRootType=n?"hydrateRoot()":"createRoot()";break;case 0:this._debugRootType=n?"hydrate()":"render()"}}function _b(e,t,n,r,a,o,i,l,s,u){var c=new Tb(e,t,n,l,s),d=function(e,t,n){var r;return 1===e?(r=1,!0===t&&(r|=8,r|=ca)):r=0,Kr&&(r|=2),hb(3,null,null,r)}(t,o);c.current=d,d.stateNode=c;var f={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null};return d.memoizedState=f,Vd(d),c}var Cb,Db,Rb="18.2.0";function Pb(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return O(r),{$$typeof:re,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Nb(e){if(!e)return qu;var t=Jn(e),n=lc(t);if(1===t.tag){var r=t.type;if(ec(r))return ac(t,r,n)}return n}function Ib(e,t,n,r,a,o,i,l){return _b(e,t,!1,null,0,r,0,o,i)}function Mb(e,t,n,r,a,o,i,l,s,u){var c=_b(n,r,!0,e,0,o,0,l,s);c.context=Nb(null);var d=c.current,f=ry(),p=ay(d),h=Bd(f,p);return h.callback=null!=t?t:null,$d(d,h,p),function(e,t,n){e.current.lanes=t,co(e,t,n),ly(e,n)}(c,p,f),c}function Ob(e,t,n,r){!function(e,t){if(qr&&"function"==typeof qr.onScheduleFiberRoot)try{qr.onScheduleFiberRoot($r,e,t)}catch(e){Gr||(Gr=!0,o("React instrumentation encountered an error: %s",e))}}(t,e);var a=t.current,i=ry(),l=ay(a);!function(e){null!==Yr&&"function"==typeof Yr.markRenderScheduled&&Yr.markRenderScheduled(e)}(l);var s=Nb(n);null===t.context?t.context=s:t.pendingContext=s,Be&&null!==We&&!Cb&&(Cb=!0,o("Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.\n\nCheck the render method of %s.",Ue(We)||"Unknown"));var u=Bd(i,l);u.payload={element:e},null!==(r=void 0===r?null:r)&&("function"!=typeof r&&o("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",r),u.callback=r);var c=$d(a,u,l);return null!==c&&(iy(c,a,l,i),qd(c,a,l)),l}function Lb(e){var t=e.current;return t.child?(t.child.tag,t.child.stateNode):null}function zb(e,t){var n,r,a=e.memoizedState;null!==a&&null!==a.dehydrated&&(a.retryLane=(n=a.retryLane,r=t,0!==n&&n<r?n:r))}function Ab(e,t){zb(e,t);var n=e.alternate;n&&zb(n,t)}function Fb(e){var t=Pr(e);return null===t?null:t.stateNode}Cb=!1,Db={};var Hb=function(e){return null};var jb=function(e){return!1};var Ub,Vb,Wb,Bb,$b,qb,Yb,Gb,Kb,Qb=function(e,t,n){var r=t[n],a=xt(e)?e.slice():Ee({},e);return n+1===t.length?(xt(a)?a.splice(r,1):delete a[r],a):(a[r]=Qb(e[r],t,n+1),a)},Xb=function(e,t){return Qb(e,t,0)},Zb=function(e,t,n,r){var a=t[r],o=xt(e)?e.slice():Ee({},e);r+1===t.length?(o[n[r]]=o[a],xt(o)?o.splice(a,1):delete o[a]):o[a]=Zb(e[a],t,n,r+1);return o},Jb=function(e,t,n){if(t.length===n.length){for(var r=0;r<n.length-1;r++)if(t[r]!==n[r])return void a("copyWithRename() expects paths to be the same except for the deepest key");return Zb(e,t,n,0)}a("copyWithRename() expects paths of the same length")},ew=function(e,t,n,r){if(n>=t.length)return r;var a=t[n],o=xt(e)?e.slice():Ee({},e);return o[a]=ew(e[a],t,n+1,r),o},tw=function(e,t,n){return ew(e,t,0,n)},nw=function(e,t){for(var n=e.memoizedState;null!==n&&t>0;)n=n.next,t--;return n};function rw(e){var t=Dr(e);return null===t?null:t.stateNode}function aw(e){return null}function ow(){return We}Ub=function(e,t,n,r){var a=nw(e,t);if(null!==a){var o=tw(a.memoizedState,n,r);a.memoizedState=o,a.baseState=o,e.memoizedProps=Ee({},e.memoizedProps);var i=Ld(e,1);null!==i&&iy(i,e,1,Va)}},Vb=function(e,t,n){var r=nw(e,t);if(null!==r){var a=Xb(r.memoizedState,n);r.memoizedState=a,r.baseState=a,e.memoizedProps=Ee({},e.memoizedProps);var o=Ld(e,1);null!==o&&iy(o,e,1,Va)}},Wb=function(e,t,n,r){var a=nw(e,t);if(null!==a){var o=Jb(a.memoizedState,n,r);a.memoizedState=o,a.baseState=o,e.memoizedProps=Ee({},e.memoizedProps);var i=Ld(e,1);null!==i&&iy(i,e,1,Va)}},Bb=function(e,t,n){e.pendingProps=tw(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var r=Ld(e,1);null!==r&&iy(r,e,1,Va)},$b=function(e,t){e.pendingProps=Xb(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var n=Ld(e,1);null!==n&&iy(n,e,1,Va)},qb=function(e,t,n){e.pendingProps=Jb(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var r=Ld(e,1);null!==r&&iy(r,e,1,Va)},Yb=function(e){var t=Ld(e,1);null!==t&&iy(t,e,1,Va)},Gb=function(e){Hb=e},Kb=function(e){jb=e};var iw="function"==typeof reportError?reportError:function(e){console.error(e)};function lw(e){this._internalRoot=e}function sw(e){this._internalRoot=e}function uw(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function cw(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function dw(e){1===e.nodeType&&e.tagName&&"BODY"===e.tagName.toUpperCase()&&o("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),Ru(e)&&(e._reactRootContainer?o("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):o("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}sw.prototype.render=lw.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw new Error("Cannot update an unmounted root.");"function"==typeof arguments[1]?o("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):uw(arguments[1])?o("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):void 0!==arguments[1]&&o("You passed a second argument to root.render(...) but it only accepts one argument.");var n=t.containerInfo;if(8!==n.nodeType){var r=Fb(t.current);r&&r.parentNode!==n&&o("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}Ob(e,t,null,null)},sw.prototype.unmount=lw.prototype.unmount=function(){"function"==typeof arguments[0]&&o("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;vy()&&o("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),hy((function(){Ob(null,e,null,null)})),Du(t)}},sw.prototype.unstable_scheduleHydration=function(e){e&&function(e){for(var t=bo(),n={blockedOn:null,target:e,priority:t},r=0;r<Ho.length&&Do(t,Ho[r].priority);r++);Ho.splice(r,0,n),0===r&&Wo(n)}(e)};var fw,pw,hw=n.ReactCurrentOwner;function vw(e){return e?9===e.nodeType?e.documentElement:e.firstChild:null}function mw(){}function gw(e,t,n,r,a){fw(n),function(e,t){null!==e&&"function"!=typeof e&&o("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}(void 0===a?null:a,"render");var i,l=n._reactRootContainer;if(l){if("function"==typeof a){var s=a;a=function(){var e=Lb(i);s.call(e)}}Ob(t,i=l,e,a)}else i=function(e,t,n,r,a){if(a){if("function"==typeof r){var o=r;r=function(){var e=Lb(i);o.call(e)}}var i=Mb(t,r,e,0,0,!1,0,"",mw);return e._reactRootContainer=i,Cu(i.current,e),rs(8===e.nodeType?e.parentNode:e),hy(),i}for(var l;l=e.lastChild;)e.removeChild(l);if("function"==typeof r){var s=r;r=function(){var e=Lb(u);s.call(e)}}var u=Ib(e,0,0,!1,0,"",mw);return e._reactRootContainer=u,Cu(u.current,e),rs(8===e.nodeType?e.parentNode:e),hy((function(){Ob(t,u,n,r)})),u}(n,t,e,a,r);return Lb(i)}fw=function(e){if(e._reactRootContainer&&8!==e.nodeType){var t=Fb(e._reactRootContainer.current);t&&t.parentNode!==e&&o("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var n=!!e._reactRootContainer,r=vw(e);!(!r||!Nu(r))&&!n&&o("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),1===e.nodeType&&e.tagName&&"BODY"===e.tagName.toUpperCase()&&o("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")},pw=function(e){switch(e.tag){case 3:var t=e.stateNode;if(Po(t)){var n=function(e){return $a(e.pendingLanes)}(t);!function(e,t){0!==t&&(po(e,io(t,1)),ly(e,zr()),0==(6&kg)&&(Ag(),pc()))}(t,n)}break;case d:hy((function(){var t=Ld(e,1);if(null!==t){var n=ry();iy(t,e,1,n)}})),Ab(e,1)}},mo=pw,function(e){go=e}((function(e){if(e.tag===d){var t=za,n=Ld(e,t);if(null!==n)iy(n,e,t,ry());Ab(e,t)}})),function(e){yo=e}((function(e){if(e.tag===d){var t=ay(e),n=Ld(e,t);if(null!==n)iy(n,e,t,ry());Ab(e,t)}})),function(e){bo=e}(_o),function(e){wo=e}((function(e,t){var n=To;try{return To=e,t()}finally{To=n}})),"function"==typeof Map&&null!=Map.prototype&&"function"==typeof Map.prototype.forEach&&"function"==typeof Set&&null!=Set.prototype&&"function"==typeof Set.prototype.clear&&"function"==typeof Set.prototype.forEach||o("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),Dn=function(e,t,n){switch(t){case"input":return void vt(e,n);case"textarea":return void function(e,t){It(e,t)}(e,n);case"select":return void function(e,t){var n=e,r=t.value;null!=r&&_t(n,!!t.multiple,r,!1)}(e,n)}},On=py,Ln=hy;var yw={usingClientEntryPoint:!1,Events:[Nu,Iu,Mu,In,Mn,py]};var bw=function(e){var t=e.findFiberByHostInstance,r=n.ReactCurrentDispatcher;return function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return o("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{e=Ee({},e,{getLaneLabelMap:Zr,injectProfilingHooks:Xr}),$r=t.inject(e),qr=t}catch(e){o("React instrumentation encountered an error: %s.",e)}return!!t.checkDCE}({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:Ub,overrideHookStateDeletePath:Vb,overrideHookStateRenamePath:Wb,overrideProps:Bb,overridePropsDeletePath:$b,overridePropsRenamePath:qb,setErrorHandler:Gb,setSuspenseHandler:Kb,scheduleUpdate:Yb,currentDispatcherRef:r,findHostInstanceByFiber:rw,findFiberByHostInstance:t||aw,findHostInstancesForRefresh:cb,scheduleRefresh:ib,scheduleRoot:lb,setRefreshHandler:eb,getCurrentFiber:ow,reconcilerVersion:Rb})}({findFiberByHostInstance:Pu,bundleType:1,version:Rb,rendererPackageName:"react-dom"});if(!bw&&_&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&-1===navigator.userAgent.indexOf("Edge")||navigator.userAgent.indexOf("Firefox")>-1)){var ww=window.location.protocol;/^(https?|file):$/.test(ww)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+("file:"===ww?"\nYou might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq":""),"font-weight:bold")}N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yw,N.createPortal=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!uw(t))throw new Error("Target container is not a DOM element.");return Pb(e,t,null,n)},N.createRoot=function(e,t){return yw.usingClientEntryPoint||o('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),function(e,t){if(!uw(e))throw new Error("createRoot(...): Target container is not a DOM element.");dw(e);var n=!1,r="",i=iw;null!=t&&(t.hydrate?a("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):"object"==typeof t&&null!==t&&t.$$typeof===ne&&o("You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:\n\n let root = createRoot(domContainer);\n root.render(<App />);"),!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError),void 0!==t.transitionCallbacks&&t.transitionCallbacks);var l=Ib(e,1,0,n,0,r,i);return Cu(l.current,e),rs(8===e.nodeType?e.parentNode:e),new lw(l)}(e,t)},N.findDOMNode=function(e){var t=hw.current;return null!==t&&null!==t.stateNode&&(t.stateNode._warnedAboutRefsInRender||o("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",He(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0),null==e?null:1===e.nodeType?e:function(e,t){var n=Jn(e);if(void 0===n){if("function"==typeof e.render)throw new Error("Unable to find node on an unmounted component.");var r=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+r)}var a=Dr(n);if(null===a)return null;if(8&a.mode){var i=Ue(n)||"Component";if(!Db[i]){Db[i]=!0;var l=We;try{Ge(a),8&n.mode?o("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,i):o("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,i)}finally{l?Ge(l):Ye()}}}return a.stateNode}(e,"findDOMNode")},N.flushSync=function(e){return vy()&&o("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),hy(e)},N.hydrate=function(e,t,n){if(o("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!cw(t))throw new Error("Target container is not a DOM element.");return Ru(t)&&void 0===t._reactRootContainer&&o("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?"),gw(null,e,t,!0,n)},N.hydrateRoot=function(e,t,n){return yw.usingClientEntryPoint||o('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),function(e,t,n){if(!uw(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");dw(e),void 0===t&&o("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var r=null!=n&&n.hydratedSources||null,a=!1,i="",l=iw;null!=n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError));var s=Mb(t,null,e,1,0,a,0,i,l);if(Cu(s.current,e),rs(e),r)for(var u=0;u<r.length;u++)np(s,r[u]);return new sw(s)}(e,t,n)},N.render=function(e,t,n){if(o("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!cw(t))throw new Error("Target container is not a DOM element.");return Ru(t)&&void 0===t._reactRootContainer&&o("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?"),gw(null,e,t,!1,n)},N.unmountComponentAtNode=function(e){if(!cw(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");if(Ru(e)&&void 0===e._reactRootContainer&&o("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?"),e._reactRootContainer){var t=vw(e);return t&&!Nu(t)&&o("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React."),hy((function(){gw(null,null,e,!1,(function(){e._reactRootContainer=null,Du(e)}))})),!0}var n=vw(e),r=!(!n||!Nu(n)),a=1===e.nodeType&&cw(e.parentNode)&&!!e.parentNode._reactRootContainer;return r&&o("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",a?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component."),!1},N.unstable_batchedUpdates=py,N.unstable_renderSubtreeIntoContainer=function(e,t,n,r){return function(e,t,n,r){if(o("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!cw(n))throw new Error("Target container is not a DOM element.");if(null==e||void 0===e._reactInternals)throw new Error("parentComponent must be a valid React Component");return gw(e,t,n,!1,r)}(e,t,n,r)},N.version=Rb,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),N}if(function(e){"production"===process.env.NODE_ENV?(!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){if("production"!==process.env.NODE_ENV)throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=R()):e.exports=I()}(y),("undefined"!=typeof globalThis?globalThis:window).FullCalendarVDom={Component:u.exports.Component,createElement:u.exports.createElement,render:y.exports.render,createRef:u.exports.createRef,Fragment:u.exports.Fragment,createContext:u.exports.createContext,createPortal:y.exports.createPortal,flushSync:function(e){e()},unmountComponentAtNode:y.exports.unmountComponentAtNode},"undefined"==typeof FullCalendarVDom)throw new Error("Please import the top-level fullcalendar lib before attempting to import a plugin.");var M=FullCalendarVDom.Component,O=FullCalendarVDom.createElement;FullCalendarVDom.render;var L=FullCalendarVDom.createRef,z=FullCalendarVDom.Fragment,A=FullCalendarVDom.createContext,F=FullCalendarVDom.createPortal;FullCalendarVDom.flushSync,FullCalendarVDom.unmountComponentAtNode;
|
|
50
|
+
*/function Xi(e,t,n,r){Rn(r);var a=os(t,"onChange");if(a.length>0){var o=new hi("onChange","change",null,n,r);e.push({event:o,listeners:a})}}var Zi=null,Ji=null;function el(e){Ql(e,0)}function tl(e){if(et(Ru(e)))return e}function nl(e,t){if("change"===e)return t}var rl=!1;function al(){Zi&&(Zi.detachEvent("onpropertychange",ol),Zi=null,Ji=null)}function ol(e){"value"===e.propertyName&&tl(Ji)&&function(e){var t=[];Xi(t,Ji,e,kn(e)),An(el,t)}(e)}function il(e,t,n){"focusin"===e?(al(),function(e,t){Ji=t,(Zi=e).attachEvent("onpropertychange",ol)}(t,n)):"focusout"===e&&al()}function ll(e,t){if("selectionchange"===e||"keyup"===e||"keydown"===e)return tl(Ji)}function sl(e,t){if("click"===e)return tl(t)}function ul(e,t){if("input"===e||"change"===e)return tl(t)}function cl(e,t,n,r,a,o,i){var l,s,u,c,d,f,p=n?Ru(n):window;if("select"===(c=(u=p).nodeName&&u.nodeName.toLowerCase())||"input"===c&&"file"===u.type?l=nl:Qi(p)?rl?l=ul:(l=ll,s=il):function(e){var t=e.nodeName;return t&&"input"===t.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}(p)&&(l=sl),l){var h=l(t,n);if(h)return void Xi(e,h,r,a)}s&&s(t,p,n),"focusout"===t&&(f=(d=p)._wrapperState)&&f.controlled&&"number"===d.type&&pt(d,"number",d.value)}function dl(e,t,n,r,a,o,i){var l="mouseover"===t||"pointerover"===t,s="mouseout"===t||"pointerout"===t;if(l&&r!==_n){var u=r.relatedTarget||r.fromElement;if(u&&(Cu(u)||xu(u)))return}if(s||l){var c,d,f;if(a.window===a)c=a;else{var p=a.ownerDocument;c=p?p.defaultView||p.parentWindow:window}if(s){var h=r.relatedTarget||r.toElement;if(d=n,null!==(f=h?Cu(h):null))(f!==wr(f)||5!==f.tag&&6!==f.tag)&&(f=null)}else d=null,f=n;if(d!==f){var m=yi,v="onMouseLeave",g="onMouseEnter",y="mouse";"pointerout"!==t&&"pointerover"!==t||(m=Pi,v="onPointerLeave",g="onPointerEnter",y="pointer");var b=null==d?c:Ru(d),w=null==f?c:Ru(f),S=new m(v,y+"leave",d,r,a);S.target=b,S.relatedTarget=w;var E=null;if(Cu(a)===n){var _=new m(g,y+"enter",f,r,a);_.target=w,_.relatedTarget=b,E=_}!function(e,t,n,r,a){var o=r&&a?function(e,t){for(var n=e,r=t,a=0,o=n;o;o=is(o))a++;for(var i=0,l=r;l;l=is(l))i++;for(;a-i>0;)n=is(n),a--;for(;i-a>0;)r=is(r),i--;var s=a;for(;s--;){if(n===r||null!==r&&n===r.alternate)return n;n=is(n),r=is(r)}return null}(r,a):null;null!==r&&ls(e,t,r,o,!1);null!==a&&null!==n&&ls(e,n,a,o,!0)}(e,S,E,d,f)}}}T&&(rl=function(e){if(!T)return!1;var t="on"+e,n=t in document;if(!n){var r=document.createElement("div");r.setAttribute(t,"return;"),n="function"==typeof r[t]}return n}("input")&&(!document.documentMode||document.documentMode>9));var fl="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function pl(e,t){if(fl(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a<n.length;a++){var o=n[a];if(!x.call(t,o)||!fl(e[o],t[o]))return!1}return!0}function hl(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ml(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function vl(e,t){for(var n=hl(e),r=0,a=0;n;){if(3===n.nodeType){if(a=r+n.textContent.length,r<=t&&a>=t)return{node:n,offset:t-r};r=a}n=hl(ml(n))}}function gl(e){var t=e.ownerDocument,n=t&&t.defaultView||window,r=n.getSelection&&n.getSelection();if(!r||0===r.rangeCount)return null;var a=r.anchorNode,o=r.anchorOffset,i=r.focusNode,l=r.focusOffset;try{a.nodeType,i.nodeType}catch(e){return null}return function(e,t,n,r,a){var o=0,i=-1,l=-1,s=0,u=0,c=e,d=null;e:for(;;){for(var f=null;c!==t||0!==n&&3!==c.nodeType||(i=o+n),c!==r||0!==a&&3!==c.nodeType||(l=o+a),3===c.nodeType&&(o+=c.nodeValue.length),null!==(f=c.firstChild);)d=c,c=f;for(;;){if(c===e)break e;if(d===t&&++s===n&&(i=o),d===r&&++u===a&&(l=o),null!==(f=c.nextSibling))break;d=(c=d).parentNode}c=f}if(-1===i||-1===l)return null;return{start:i,end:l}}(e,a,o,i,l)}function yl(e){return e&&3===e.nodeType}function bl(e,t){return!(!e||!t)&&(e===t||!yl(e)&&(yl(t)?bl(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function wl(e){return e&&e.ownerDocument&&bl(e.ownerDocument.documentElement,e)}function Sl(e){try{return"string"==typeof e.contentWindow.location.href}catch(e){return!1}}function El(){for(var e=window,t=tt();t instanceof e.HTMLIFrameElement;){if(!Sl(t))return t;t=tt((e=t.contentWindow).document)}return t}function _l(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function kl(e){var t=El(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&wl(n)){null!==r&&_l(n)&&function(e,t){var n=t.start,r=t.end;void 0===r&&(r=n);"selectionStart"in e?(e.selectionStart=n,e.selectionEnd=Math.min(r,e.value.length)):function(e,t){var n=e.ownerDocument||document,r=n&&n.defaultView||window;if(r.getSelection){var a=r.getSelection(),o=e.textContent.length,i=Math.min(t.start,o),l=void 0===t.end?i:Math.min(t.end,o);if(!a.extend&&i>l){var s=l;l=i,i=s}var u=vl(e,i),c=vl(e,l);if(u&&c){if(1===a.rangeCount&&a.anchorNode===u.node&&a.anchorOffset===u.offset&&a.focusNode===c.node&&a.focusOffset===c.offset)return;var d=n.createRange();d.setStart(u.node,u.offset),a.removeAllRanges(),i>l?(a.addRange(d),a.extend(c.node,c.offset)):(d.setEnd(c.node,c.offset),a.addRange(d))}}}(e,t)}(n,r);for(var a=[],o=n;o=o.parentNode;)1===o.nodeType&&a.push({element:o,left:o.scrollLeft,top:o.scrollTop});"function"==typeof n.focus&&n.focus();for(var i=0;i<a.length;i++){var l=a[i];l.element.scrollLeft=l.left,l.element.scrollTop=l.top}}}function Tl(e){return("selectionStart"in e?{start:e.selectionStart,end:e.selectionEnd}:gl(e))||{start:0,end:0}}var xl=T&&"documentMode"in document&&document.documentMode<=11;var Cl=null,Dl=null,Rl=null,Nl=!1;function Pl(e,t,n){var r,a=(r=n).window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!Nl&&null!=Cl&&Cl===tt(a)){var o=function(e){if("selectionStart"in e&&_l(e))return{start:e.selectionStart,end:e.selectionEnd};var t=(e.ownerDocument&&e.ownerDocument.defaultView||window).getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}(Cl);if(!Rl||!pl(Rl,o)){Rl=o;var i=os(Dl,"onSelect");if(i.length>0){var l=new hi("onSelect","select",null,t,n);e.push({event:l,listeners:i}),l.target=Cl}}}}function Il(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ml={animationend:Il("Animation","AnimationEnd"),animationiteration:Il("Animation","AnimationIteration"),animationstart:Il("Animation","AnimationStart"),transitionend:Il("Transition","TransitionEnd")},Ol={},Al={};function Ll(e){if(Ol[e])return Ol[e];if(!Ml[e])return e;var t=Ml[e];for(var n in t)if(t.hasOwnProperty(n)&&n in Al)return Ol[e]=t[n];return e}T&&(Al=document.createElement("div").style,"AnimationEvent"in window||(delete Ml.animationend.animation,delete Ml.animationiteration.animation,delete Ml.animationstart.animation),"TransitionEvent"in window||delete Ml.transitionend.transition);var Fl=Ll("animationend"),zl=Ll("animationiteration"),Hl=Ll("animationstart"),Ul=Ll("transitionend"),jl=new Map,Vl=["abort","auxClick","cancel","canPlay","canPlayThrough","click","close","contextMenu","copy","cut","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","gotPointerCapture","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","pointerCancel","pointerDown","pointerMove","pointerOut","pointerOver","pointerUp","progress","rateChange","reset","resize","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchStart","volumeChange","scroll","toggle","touchMove","waiting","wheel"];function $l(e,t){jl.set(e,t),_(t,[e])}function Wl(e,t,n,r,a,o,i){var l=jl.get(t);if(void 0!==l){var s=hi,u=t;switch(t){case"keypress":if(0===ii(r))return;case"keydown":case"keyup":s=Ni;break;case"focusin":u="focus",s=wi;break;case"focusout":u="blur",s=wi;break;case"beforeblur":case"afterblur":s=wi;break;case"click":if(2===r.button)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=yi;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=bi;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Ii;break;case Fl:case zl:case Hl:s=Si;break;case Ul:s=Mi;break;case"scroll":s=vi;break;case"wheel":s=Oi;break;case"copy":case"cut":case"paste":s=Ei;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Pi}var c=0!=(4&o),d=!c&&"scroll"===t,f=function(e,t,n,r,a,o){var i=null!==t?t+"Capture":null,l=r?i:t,s=[],u=e,c=null;for(;null!==u;){var d=u,f=d.stateNode;if(5===d.tag&&null!==f&&(c=f,null!==l)){var p=Ln(u,l);null!=p&&s.push(as(u,p,c))}if(a)break;u=u.return}return s}(n,l,r.type,c,d);if(f.length>0){var p=new s(l,u,null,r,a);e.push({event:p,listeners:f})}}}function Bl(e,t,n,r,a,o,i){Wl(e,t,n,r,a,o),0==(7&o)&&(dl(e,t,n,r,a),cl(e,t,n,r,a),function(e,t,n,r,a,o,i){var l=n?Ru(n):window;switch(t){case"focusin":(Qi(l)||"true"===l.contentEditable)&&(Cl=l,Dl=n,Rl=null);break;case"focusout":Cl=null,Dl=null,Rl=null;break;case"mousedown":Nl=!0;break;case"contextmenu":case"mouseup":case"dragend":Nl=!1,Pl(e,r,a);break;case"selectionchange":if(xl)break;case"keydown":case"keyup":Pl(e,r,a)}}(e,t,n,r,a),function(e,t,n,r,a,o,i){qi(e,t,n,r,a),Gi(e,t,n,r,a)}(e,t,n,r,a))}!function(){for(var e=0;e<Vl.length;e++){var t=Vl[e];$l(t.toLowerCase(),"on"+(t[0].toUpperCase()+t.slice(1)))}$l(Fl,"onAnimationEnd"),$l(zl,"onAnimationIteration"),$l(Hl,"onAnimationStart"),$l("dblclick","onDoubleClick"),$l("focusin","onFocus"),$l("focusout","onBlur"),$l(Ul,"onTransitionEnd")}(),k("onMouseEnter",["mouseout","mouseover"]),k("onMouseLeave",["mouseout","mouseover"]),k("onPointerEnter",["pointerout","pointerover"]),k("onPointerLeave",["pointerout","pointerover"]),_("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"]),_("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"]),_("onBeforeInput",["compositionend","keypress","textInput","paste"]),_("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),_("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),_("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"]);var ql=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],Yl=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(ql));function Gl(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,o,i,l,s){if(Gn.apply(this,arguments),$n){var u=Kn();Bn||(Bn=!0,qn=u)}}(r,t,void 0,e),e.currentTarget=null}function Kl(e,t,n){var r;if(n)for(var a=t.length-1;a>=0;a--){var o=t[a],i=o.instance,l=o.currentTarget,s=o.listener;if(i!==r&&e.isPropagationStopped())return;Gl(e,s,l),r=i}else for(var u=0;u<t.length;u++){var c=t[u],d=c.instance,f=c.currentTarget,p=c.listener;if(d!==r&&e.isPropagationStopped())return;Gl(e,p,f),r=d}}function Ql(e,t){for(var n=0!=(4&t),r=0;r<e.length;r++){var a=e[r];Kl(a.event,a.listeners,n)}!function(){if(Bn){var e=qn;throw Bn=!1,qn=null,e}}()}function Xl(e,t){Yl.has(e)||o('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var n=function(e){var t=e[wu];void 0===t&&(t=e[wu]=new Set);return t}(t),r=function(e,t){return e+"__"+(t?"capture":"bubble")}(e,false);n.has(r)||(ts(t,e,2,false),n.add(r))}function Zl(e,t,n){Yl.has(e)&&!t&&o('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var r=0;t&&(r|=4),ts(n,e,r,t)}var Jl="_reactListening"+Math.random().toString(36).slice(2);function es(e){if(!e[Jl]){e[Jl]=!0,w.forEach((function(t){"selectionchange"!==t&&(Yl.has(t)||Zl(t,!1,e),Zl(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null!==t&&(t[Jl]||(t[Jl]=!0,Zl("selectionchange",!1,t)))}}function ts(e,t,n,r,a){var o=function(e,t,n){var r;switch(ei(t)){case yo:r=Ko;break;case bo:r=Qo;break;default:r=Xo}return r.bind(null,t,n,e)}(e,t,n),i=void 0;Fn&&("touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0)),r?void 0!==i?function(e,t,n,r){e.addEventListener(t,n,{capture:!0,passive:r})}(e,t,o,i):function(e,t,n){e.addEventListener(t,n,!0)}(e,t,o):void 0!==i?function(e,t,n,r){e.addEventListener(t,n,{passive:r})}(e,t,o,i):function(e,t,n){e.addEventListener(t,n,!1)}(e,t,o)}function ns(e,t){return e===t||8===e.nodeType&&e.parentNode===t}function rs(e,t,n,r,a){var o=r;if(0==(1&t)&&0==(2&t)){var i=a;if(null!==r){var l=r;e:for(;;){if(null===l)return;var s=l.tag;if(3===s||4===s){var u=l.stateNode.containerInfo;if(ns(u,i))break;if(4===s)for(var c=l.return;null!==c;){var d=c.tag;if(3===d||4===d)if(ns(c.stateNode.containerInfo,i))return;c=c.return}for(;null!==u;){var f=Cu(u);if(null===f)return;var p=f.tag;if(5===p||6===p){l=o=f;continue e}u=u.parentNode}}l=l.return}}}An((function(){return function(e,t,n,r,a){var o=[];Bl(o,e,r,n,kn(n),t),Ql(o,t)}(e,t,n,o)}))}function as(e,t,n){return{instance:e,listener:t,currentTarget:n}}function os(e,t){for(var n=t+"Capture",r=[],a=e;null!==a;){var o=a,i=o.stateNode;if(5===o.tag&&null!==i){var l=i,s=Ln(a,n);null!=s&&r.unshift(as(a,s,l));var u=Ln(a,t);null!=u&&r.push(as(a,u,l))}a=a.return}return r}function is(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function ls(e,t,n,r,a){for(var o=t._reactName,i=[],l=n;null!==l&&l!==r;){var s=l,u=s.alternate,c=s.stateNode,d=s.tag;if(null!==u&&u===r)break;if(5===d&&null!==c){var f=c;if(a){var p=Ln(l,o);null!=p&&i.unshift(as(l,p,f))}else if(!a){var h=Ln(l,o);null!=h&&i.push(as(l,h,f))}}l=l.return}0!==i.length&&e.push({event:t,listeners:i})}var ss,us,cs,ds,fs,ps,hs,ms=!1,vs="dangerouslySetInnerHTML",gs="suppressContentEditableWarning",ys="suppressHydrationWarning",bs="autoFocus",ws="children",Ss="style";ss={dialog:!0,webview:!0},us=function(e,t){hn(e,t),function(e,t){"input"!==e&&"textarea"!==e&&"select"!==e||null==t||null!==t.value||mn||(mn=!0,"select"===e&&t.multiple?o("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):o("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}(e,t),En(e,t,{registrationNameDependencies:S,possibleRegistrationNames:E})},ps=T&&!document.documentMode,cs=function(e,t,n){if(!ms){var r=ks(n),a=ks(t);a!==r&&(ms=!0,o("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(a),JSON.stringify(r)))}},ds=function(e){if(!ms){ms=!0;var t=[];e.forEach((function(e){t.push(e)})),o("Extra attributes from the server: %s",t)}},fs=function(e,t){!1===t?o("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):o("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},hs=function(e,t){var n=e.namespaceURI===Pt?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return n.innerHTML=t,n.innerHTML};var Es=/\r\n?/g,_s=/\u0000|\uFFFD/g;function ks(e){return function(e){if(D(e))o("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",C(e)),R(e)}(e),("string"==typeof e?e:""+e).replace(Es,"\n").replace(_s,"")}function Ts(e,t,n,r){var a=ks(t),i=ks(e);if(i!==a&&(r&&(ms||(ms=!0,o('Text content did not match. Server: "%s" Client: "%s"',i,a))),n))throw new Error("Text content does not match server-rendered HTML.")}function xs(e){return 9===e.nodeType?e:e.ownerDocument}function Cs(){}function Ds(e){e.onclick=Cs}function Rs(e,t,n,r){var a,o=ln(t,n);switch(us(t,n),t){case"dialog":Xl("cancel",e),Xl("close",e),a=n;break;case"iframe":case"object":case"embed":Xl("load",e),a=n;break;case"video":case"audio":for(var i=0;i<ql.length;i++)Xl(ql[i],e);a=n;break;case"source":Xl("error",e),a=n;break;case"img":case"image":case"link":Xl("error",e),Xl("load",e),a=n;break;case"details":Xl("toggle",e),a=n;break;case"input":st(e,n),a=lt(e,n),Xl("invalid",e);break;case"option":gt(0,n),a=n;break;case"select":Tt(e,n),a=kt(0,n),Xl("invalid",e);break;case"textarea":Dt(e,n),a=Ct(e,n),Xl("invalid",e);break;default:a=n}switch(on(t,a),function(e,t,n,r,a){for(var o in r)if(r.hasOwnProperty(o)){var i=r[o];if(o===Ss)i&&Object.freeze(i),nn(t,i);else if(o===vs){var l=i?i.__html:void 0;null!=l&&Ft(t,l)}else o===ws?"string"==typeof i?("textarea"!==e||""!==i)&&zt(t,i):"number"==typeof i&&zt(t,""+i):o===gs||o===ys||o===bs||(S.hasOwnProperty(o)?null!=i&&("function"!=typeof i&&fs(o,i),"onScroll"===o&&Xl("scroll",t)):null!=i&&Z(t,o,i,a))}}(t,e,0,a,o),t){case"input":Je(e),dt(e,n,!1);break;case"textarea":Je(e),Nt(e);break;case"option":!function(e,t){null!=t.value&&e.setAttribute("value",Ye(Ge(t.value)))}(e,n);break;case"select":!function(e,t){var n=e;n.multiple=!!t.multiple;var r=t.value;null!=r?_t(n,!!t.multiple,r,!1):null!=t.defaultValue&&_t(n,!!t.multiple,t.defaultValue,!0)}(e,n);break;default:"function"==typeof a.onClick&&Ds(e)}}function Ns(e,t,n,r,a){us(t,r);var i,l,s,u,c=null;switch(t){case"input":i=lt(e,n),l=lt(e,r),c=[];break;case"select":i=kt(0,n),l=kt(0,r),c=[];break;case"textarea":i=Ct(e,n),l=Ct(e,r),c=[];break;default:l=r,"function"!=typeof(i=n).onClick&&"function"==typeof l.onClick&&Ds(e)}on(t,l);var d=null;for(s in i)if(!l.hasOwnProperty(s)&&i.hasOwnProperty(s)&&null!=i[s])if(s===Ss){var f=i[s];for(u in f)f.hasOwnProperty(u)&&(d||(d={}),d[u]="")}else s===vs||s===ws||s===gs||s===ys||s===bs||(S.hasOwnProperty(s)?c||(c=[]):(c=c||[]).push(s,null));for(s in l){var p=l[s],h=null!=i?i[s]:void 0;if(l.hasOwnProperty(s)&&p!==h&&(null!=p||null!=h))if(s===Ss)if(p&&Object.freeze(p),h){for(u in h)!h.hasOwnProperty(u)||p&&p.hasOwnProperty(u)||(d||(d={}),d[u]="");for(u in p)p.hasOwnProperty(u)&&h[u]!==p[u]&&(d||(d={}),d[u]=p[u])}else d||(c||(c=[]),c.push(s,d)),d=p;else if(s===vs){var m=p?p.__html:void 0,v=h?h.__html:void 0;null!=m&&v!==m&&(c=c||[]).push(s,m)}else s===ws?"string"!=typeof p&&"number"!=typeof p||(c=c||[]).push(s,""+p):s===gs||s===ys||(S.hasOwnProperty(s)?(null!=p&&("function"!=typeof p&&fs(s,p),"onScroll"===s&&Xl("scroll",e)),c||h===p||(c=[])):(c=c||[]).push(s,p))}return d&&(!function(e,t){if(t){var n,r=rn(e),a=rn(t),i={};for(var l in r){var s=r[l],u=a[l];if(u&&s!==u){var c=s+","+u;if(i[c])continue;i[c]=!0,o("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",null==(n=e[s])||"boolean"==typeof n||""===n?"Removing":"Updating",s,u)}}}}(d,l.style),(c=c||[]).push(Ss,d)),c}function Ps(e,t,n,r,a){"input"===n&&"radio"===a.type&&null!=a.name&&ut(e,a);ln(n,r);switch(function(e,t,n,r){for(var a=0;a<t.length;a+=2){var o=t[a],i=t[a+1];o===Ss?nn(e,i):o===vs?Ft(e,i):o===ws?zt(e,i):Z(e,o,i,r)}}(e,t,0,ln(n,a)),n){case"input":ct(e,a);break;case"textarea":Rt(e,a);break;case"select":!function(e,t){var n=e,r=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!t.multiple;var a=t.value;null!=a?_t(n,!!t.multiple,a,!1):r!==!!t.multiple&&(null!=t.defaultValue?_t(n,!!t.multiple,t.defaultValue,!0):_t(n,!!t.multiple,t.multiple?[]:"",!1))}(e,a)}}function Is(e,t){ms||(ms=!0,o("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase()))}function Ms(e,t){ms||(ms=!0,o('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase()))}function Os(e,t,n){ms||(ms=!0,o("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase()))}function As(e,t){""!==t&&(ms||(ms=!0,o('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())))}var Ls,Fs,zs=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],Hs=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],Us=Hs.concat(["button"]),js=["dd","dt","li","option","optgroup","p","rp","rt"],Vs={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Fs=function(e,t){var n=Se({},e||Vs),r={tag:t};return-1!==Hs.indexOf(t)&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),-1!==Us.indexOf(t)&&(n.pTagInButtonScope=null),-1!==zs.indexOf(t)&&"address"!==t&&"div"!==t&&"p"!==t&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=r,"form"===t&&(n.formTag=r),"a"===t&&(n.aTagInScope=r),"button"===t&&(n.buttonTagInScope=r),"nobr"===t&&(n.nobrTagInScope=r),"p"===t&&(n.pTagInButtonScope=r),"li"===t&&(n.listItemTagAutoclosing=r),"dd"!==t&&"dt"!==t||(n.dlItemTagAutoclosing=r),n};var $s={};Ls=function(e,t,n){var r=(n=n||Vs).current,a=r&&r.tag;null!=t&&(null!=e&&o("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var i=function(e,t){switch(t){case"select":return"option"===e||"optgroup"===e||"#text"===e;case"optgroup":return"option"===e||"#text"===e;case"option":return"#text"===e;case"tr":return"th"===e||"td"===e||"style"===e||"script"===e||"template"===e;case"tbody":case"thead":case"tfoot":return"tr"===e||"style"===e||"script"===e||"template"===e;case"colgroup":return"col"===e||"template"===e;case"table":return"caption"===e||"colgroup"===e||"tbody"===e||"tfoot"===e||"thead"===e||"style"===e||"script"===e||"template"===e;case"head":return"base"===e||"basefont"===e||"bgsound"===e||"link"===e||"meta"===e||"title"===e||"noscript"===e||"noframes"===e||"style"===e||"script"===e||"template"===e;case"html":return"head"===e||"body"===e||"frameset"===e;case"frameset":return"frame"===e;case"#document":return"html"===e}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t;case"rp":case"rt":return-1===js.indexOf(t);case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return null==t}return!0}(e,a)?null:r,l=i?null:function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}(e,n),s=i||l;if(s){var u=s.tag,c=!!i+"|"+e+"|"+u;if(!$s[c]){$s[c]=!0;var d=e,f="";if("#text"===e?/\S/.test(t)?d="Text nodes":(d="Whitespace text nodes",f=" Make sure you don't have any extra whitespace between tags on each line of your source code."):d="<"+e+">",i){var p="";"table"===u&&"tr"===e&&(p+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),o("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",d,u,f,p)}else o("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",d,u)}}};var Ws="$",Bs="/$",qs="$?",Ys="$!",Gs=null,Ks=null;function Qs(e){var t;Gs=Yo,t=El(),Ks={focusedElem:t,selectionRange:_l(t)?Tl(t):null};return Go(!1),null}function Xs(e,t,n,r,a){var i=r;if(Ls(e,null,i.ancestorInfo),"string"==typeof t.children||"number"==typeof t.children){var l=""+t.children,s=Fs(i.ancestorInfo,e);Ls(null,l,s)}var u=function(e,t,n,r){var a,i,l=xs(n),s=r;if(s===Pt&&(s=Mt(e)),s===Pt){if((a=ln(e,t))||e===e.toLowerCase()||o("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),"script"===e){var u=l.createElement("div");u.innerHTML="<script><\/script>";var c=u.firstChild;i=u.removeChild(c)}else if("string"==typeof t.is)i=l.createElement(e,{is:t.is});else if(i=l.createElement(e),"select"===e){var d=i;t.multiple?d.multiple=!0:t.size&&(d.size=t.size)}}else i=l.createElementNS(s,e);return s===Pt&&(a||"[object HTMLUnknownElement]"!==Object.prototype.toString.call(i)||x.call(ss,e)||(ss[e]=!0,o("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e))),i}(e,t,n,i.namespace);return _u(a,u),Pu(u,t),u}function Zs(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}function Js(e,t,n,r){Ls(null,e,n.ancestorInfo);var a=function(e,t){return xs(t).createTextNode(e)}(e,t);return _u(r,a),a}var eu="function"==typeof setTimeout?setTimeout:void 0,tu="function"==typeof clearTimeout?clearTimeout:void 0,nu="function"==typeof Promise?Promise:void 0,ru="function"==typeof queueMicrotask?queueMicrotask:void 0!==nu?function(e){return nu.resolve(null).then(e).catch(au)}:eu;function au(e){setTimeout((function(){throw e}))}function ou(e){zt(e,"")}function iu(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType){var o=a.data;if(o===Bs){if(0===r)return e.removeChild(a),void Bo(t);r--}else o!==Ws&&o!==qs&&o!==Ys||r++}n=a}while(n);Bo(t)}function lu(e){var t=e.style;"function"==typeof t.setProperty?t.setProperty("display","none","important"):t.display="none"}function su(e,t){var n=t.style,r=null!=n&&n.hasOwnProperty("display")?n.display:null;e.style.display=Vt("display",r)}function uu(e,t){e.nodeValue=t}function cu(e){return e.data===qs}function du(e){return e.data===Ys}function fu(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){var n=e.data;if(n===Ws||n===Ys||n===qs)break;if(n===Bs)return null}}return e}function pu(e){return fu(e.nextSibling)}function hu(e,t,n,r,a,o,i){return _u(o,e),Pu(e,n),function(e,t,n,r,a,o,i){var l,s;switch(l=ln(t,n),us(t,n),t){case"dialog":Xl("cancel",e),Xl("close",e);break;case"iframe":case"object":case"embed":Xl("load",e);break;case"video":case"audio":for(var u=0;u<ql.length;u++)Xl(ql[u],e);break;case"source":Xl("error",e);break;case"img":case"image":case"link":Xl("error",e),Xl("load",e);break;case"details":Xl("toggle",e);break;case"input":st(e,n),Xl("invalid",e);break;case"option":gt(0,n);break;case"select":Tt(e,n),Xl("invalid",e);break;case"textarea":Dt(e,n),Xl("invalid",e)}on(t,n),s=new Set;for(var c=e.attributes,d=0;d<c.length;d++)switch(c[d].name.toLowerCase()){case"value":case"checked":case"selected":break;default:s.add(c[d].name)}var f,p=null;for(var h in n)if(n.hasOwnProperty(h)){var m=n[h];if(h===ws)"string"==typeof m?e.textContent!==m&&(!0!==n.suppressHydrationWarning&&Ts(e.textContent,m,o,i),p=[ws,m]):"number"==typeof m&&e.textContent!==""+m&&(!0!==n.suppressHydrationWarning&&Ts(e.textContent,m,o,i),p=[ws,""+m]);else if(S.hasOwnProperty(h))null!=m&&("function"!=typeof m&&fs(h,m),"onScroll"===h&&Xl("scroll",e));else if(i&&"boolean"==typeof l){var v=void 0,g=V(h);if(!0===n.suppressHydrationWarning);else if(h===gs||h===ys||"value"===h||"checked"===h||"selected"===h);else if(h===vs){var y=e.innerHTML,b=m?m.__html:void 0;if(null!=b){var w=hs(e,b);w!==y&&cs(h,y,w)}}else if(h===Ss){if(s.delete(h),ps){var E=tn(m);E!==(v=e.getAttribute("style"))&&cs(h,v,E)}}else if(l)s.delete(h.toLowerCase()),m!==(v=X(e,h,m))&&cs(h,v,m);else if(!H(h,g,l)&&!j(h,m,g,l)){var _=!1;if(null!==g)s.delete(g.attributeName),v=Q(e,h,m,g);else{var k=r;if(k===Pt&&(k=Mt(t)),k===Pt)s.delete(h.toLowerCase());else{var T=(f=void 0,f=h.toLowerCase(),sn.hasOwnProperty(f)&&sn[f]||null);null!==T&&T!==h&&(_=!0,s.delete(T)),s.delete(h)}v=X(e,h,m)}m===v||_||cs(h,v,m)}}}switch(i&&s.size>0&&!0!==n.suppressHydrationWarning&&ds(s),t){case"input":Je(e),dt(e,n,!0);break;case"textarea":Je(e),Nt(e);break;case"select":case"option":break;default:"function"==typeof n.onClick&&Ds(e)}return p}(e,t,n,a.namespace,0,0!=(1&o.mode),i)}function mu(e){for(var t=e.previousSibling,n=0;t;){if(8===t.nodeType){var r=t.data;if(r===Ws||r===Ys||r===qs){if(0===n)return t;n--}else r===Bs&&n++}t=t.previousSibling}return null}var vu=Math.random().toString(36).slice(2),gu="__reactFiber$"+vu,yu="__reactProps$"+vu,bu="__reactContainer$"+vu,wu="__reactEvents$"+vu,Su="__reactListeners$"+vu,Eu="__reactHandles$"+vu;function _u(e,t){t[gu]=e}function ku(e,t){t[bu]=e}function Tu(e){e[bu]=null}function xu(e){return!!e[bu]}function Cu(e){var t=e[gu];if(t)return t;for(var n=e.parentNode;n;){if(t=n[bu]||n[gu]){var r=t.alternate;if(null!==t.child||null!==r&&null!==r.child)for(var a=mu(e);null!==a;){var o=a[gu];if(o)return o;a=mu(a)}return t}n=(e=n).parentNode}return null}function Du(e){var t=e[gu]||e[bu];return t&&(5===t.tag||6===t.tag||t.tag===c||3===t.tag)?t:null}function Ru(e){if(5===e.tag||6===e.tag)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function Nu(e){return e[yu]||null}function Pu(e,t){e[yu]=t}var Iu={},Mu=n.ReactDebugCurrentFrame;function Ou(e){if(e){var t=e._owner,n=Ie(e.type,e._source,t?t.type:null);Mu.setExtraStackFrame(n)}else Mu.setExtraStackFrame(null)}function Au(e,t,n,r,a){var i=Function.call.bind(x);for(var l in e)if(i(e,l)){var s=void 0;try{if("function"!=typeof e[l]){var u=Error((r||"React class")+": "+n+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}s=e[l](t,l,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(Ou(a),o("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,l,typeof s),Ou(null)),s instanceof Error&&!(s.message in Iu)&&(Iu[s.message]=!0,Ou(a),o("Failed %s type: %s",n,s.message),Ou(null))}}var Lu,Fu=[];Lu=[];var zu,Hu=-1;function Uu(e){return{current:e}}function ju(e,t){Hu<0?o("Unexpected pop."):(t!==Lu[Hu]&&o("Unexpected Fiber popped."),e.current=Fu[Hu],Fu[Hu]=null,Lu[Hu]=null,Hu--)}function Vu(e,t,n){Hu++,Fu[Hu]=e.current,Lu[Hu]=n,e.current=t}zu={};var $u={};Object.freeze($u);var Wu=Uu($u),Bu=Uu(!1),qu=$u;function Yu(e,t,n){return n&&Xu(t)?qu:Wu.current}function Gu(e,t,n){var r=e.stateNode;r.__reactInternalMemoizedUnmaskedChildContext=t,r.__reactInternalMemoizedMaskedChildContext=n}function Ku(e,t){var n=e.type.contextTypes;if(!n)return $u;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a={};for(var o in n)a[o]=t[o];return Au(n,a,"context",ze(e)||"Unknown"),r&&Gu(e,t,a),a}function Qu(){return Bu.current}function Xu(e){var t=e.childContextTypes;return null!=t}function Zu(e){ju(Bu,e),ju(Wu,e)}function Ju(e){ju(Bu,e),ju(Wu,e)}function ec(e,t,n){if(Wu.current!==$u)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Vu(Wu,t,e),Vu(Bu,n,e)}function tc(e,t,n){var r=e.stateNode,a=t.childContextTypes;if("function"!=typeof r.getChildContext){var i=ze(e)||"Unknown";return zu[i]||(zu[i]=!0,o("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",i,i)),n}var l=r.getChildContext();for(var s in l)if(!(s in a))throw new Error((ze(e)||"Unknown")+'.getChildContext(): key "'+s+'" is not defined in childContextTypes.');return Au(a,l,"child context",ze(e)||"Unknown"),Se({},n,l)}function nc(e){var t=e.stateNode,n=t&&t.__reactInternalMemoizedMergedChildContext||$u;return qu=Wu.current,Vu(Wu,n,e),Vu(Bu,Bu.current,e),!0}function rc(e,t,n){var r=e.stateNode;if(!r)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(n){var a=tc(e,t,qu);r.__reactInternalMemoizedMergedChildContext=a,ju(Bu,e),ju(Wu,e),Vu(Wu,a,e),Vu(Bu,n,e)}else ju(Bu,e),Vu(Bu,n,e)}function ac(e){if(!function(e){return wr(e)===e}(e)||1!==e.tag)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var t=e;do{switch(t.tag){case 3:return t.stateNode.context;case 1:if(Xu(t.type))return t.stateNode.__reactInternalMemoizedMergedChildContext}t=t.return}while(null!==t);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}var oc=null,ic=!1,lc=!1;function sc(e){null===oc?oc=[e]:oc.push(e)}function uc(){ic&&cc()}function cc(){if(!lc&&null!==oc){lc=!0;var e=0,t=_o();try{var n=oc;for(ko(yo);e<n.length;e++){var r=n[e];do{r=r(true)}while(null!==r)}oc=null,ic=!1}catch(t){throw null!==oc&&(oc=oc.slice(e+1)),Rr(Ar,cc),t}finally{ko(t),lc=!1}}return null}var dc=[],fc=0,pc=null,hc=0,mc=[],vc=0,gc=null,yc=1,bc="";function wc(){var e=bc;return(yc&~function(e){return 1<<kc(e)-1}(yc)).toString(32)+e}function Sc(e,t){xc(),dc[fc++]=hc,dc[fc++]=pc,pc=e,hc=t}function Ec(e,t,n){xc(),mc[vc++]=yc,mc[vc++]=bc,mc[vc++]=gc,gc=e;var r=yc,a=bc,o=kc(r)-1,i=r&~(1<<o),l=n+1,s=kc(t)+o;if(s>30){var u=o-o%5,c=(i&(1<<u)-1).toString(32),d=i>>u,f=o-u,p=kc(t)+f;yc=1<<p|(l<<f|d),bc=c+a}else{yc=1<<s|(l<<o|i),bc=a}}function _c(e){if(xc(),null!==e.return){Sc(e,1),Ec(e,1,0)}}function kc(e){return 32-sa(e)}function Tc(e){for(;e===pc;)pc=dc[--fc],dc[fc]=null,hc=dc[--fc],dc[fc]=null;for(;e===gc;)gc=mc[--vc],mc[vc]=null,bc=mc[--vc],mc[vc]=null,yc=mc[--vc],mc[vc]=null}function xc(){Zc()||o("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Cc=null,Dc=null,Rc=!1,Nc=!1,Pc=null;function Ic(){Rc&&o("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Mc(){Nc=!0}function Oc(e){var t=e.stateNode.containerInfo;return Dc=fu(t.firstChild),Cc=e,Rc=!0,Pc=null,Nc=!1,!0}function Ac(e,t,n){return Dc=fu(t.nextSibling),Cc=e,Rc=!0,Pc=null,Nc=!1,null!==n&&function(e,t){xc(),mc[vc++]=yc,mc[vc++]=bc,mc[vc++]=gc,yc=t.id,bc=t.overflow,gc=e}(e,n),!0}function Lc(e,t){switch(e.tag){case 3:!function(e,t){1===t.nodeType?Is(e,t):8===t.nodeType||Ms(e,t)}(e.stateNode.containerInfo,t);break;case 5:var n=0!=(1&e.mode);!function(e,t,n,r,a){(a||!0!==t.suppressHydrationWarning)&&(1===r.nodeType?Is(n,r):8===r.nodeType||Ms(n,r))}(e.type,e.memoizedProps,e.stateNode,t,n);break;case c:var r=e.memoizedState;null!==r.dehydrated&&function(e,t){var n=e.parentNode;null!==n&&(1===t.nodeType?Is(n,t):8===t.nodeType||Ms(n,t))}(r.dehydrated,t)}}function Fc(e,t){Lc(e,t);var n,r=((n=db(5,null,null,0)).elementType="DELETED",n);r.stateNode=t,r.return=e;var a=e.deletions;null===a?(e.deletions=[r],e.flags|=Xn):a.push(r)}function zc(e,t){if(!Nc)switch(e.tag){case 3:var n=e.stateNode.containerInfo;switch(t.tag){case 5:var r=t.type;t.pendingProps,function(e,t,n){Os(e,t)}(n,r);break;case 6:!function(e,t){As(e,t)}(n,t.pendingProps)}break;case 5:e.type;var a=e.memoizedProps,o=e.stateNode;switch(t.tag){case 5:var i=t.type;t.pendingProps;!function(e,t,n,r,a,o){(o||!0!==t.suppressHydrationWarning)&&Os(n,r)}(0,a,o,i,0,0!=(1&e.mode));break;case 6:!function(e,t,n,r,a){(a||!0!==t.suppressHydrationWarning)&&As(n,r)}(0,a,o,t.pendingProps,0!=(1&e.mode))}break;case c:var l=e.memoizedState.dehydrated;if(null!==l)switch(t.tag){case 5:var s=t.type;t.pendingProps,function(e,t,n){var r=e.parentNode;null!==r&&Os(r,t)}(l,s);break;case 6:!function(e,t){var n=e.parentNode;null!==n&&As(n,t)}(l,t.pendingProps)}break;default:return}}function Hc(e,t){t.flags=-4097&t.flags|2,zc(e,t)}function Uc(e,t){switch(e.tag){case 5:var n=e.type;e.pendingProps;var r=function(e,t,n){return 1!==e.nodeType||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}(t,n);return null!==r&&(e.stateNode=r,Cc=e,Dc=fu(r.firstChild),!0);case 6:var a=function(e,t){return""===t||3!==e.nodeType?null:e}(t,e.pendingProps);return null!==a&&(e.stateNode=a,Cc=e,Dc=null,!0);case c:var o=function(e){return 8!==e.nodeType?null:e}(t);if(null!==o){var i={dehydrated:o,treeContext:(xc(),null!==gc?{id:yc,overflow:bc}:null),retryLane:Fa};e.memoizedState=i;var l=function(e){var t=db(h,null,null,0);return t.stateNode=e,t}(o);return l.return=e,e.child=l,Cc=e,Dc=null,!0}return!1;default:return!1}}function jc(e){return 0!=(1&e.mode)&&0==(e.flags&Zn)}function Vc(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function $c(e){if(Rc){var t=Dc;if(!t)return jc(e)&&(zc(Cc,e),Vc()),Hc(Cc,e),Rc=!1,void(Cc=e);var n=t;if(!Uc(e,t)){jc(e)&&(zc(Cc,e),Vc()),t=pu(n);var r=Cc;if(!t||!Uc(e,t))return Hc(Cc,e),Rc=!1,void(Cc=e);Fc(r,n)}}}function Wc(e){var t=e.stateNode,n=e.memoizedProps,r=function(e,t,n,r){return _u(n,e),n.mode,function(e,t,n){return e.nodeValue!==t}(e,t)}(t,n,e);if(r){var a=Cc;if(null!==a)switch(a.tag){case 3:a.stateNode.containerInfo;!function(e,t,n,r){Ts(t.nodeValue,n,r,!0)}(0,t,n,0!=(1&a.mode));break;case 5:a.type;var o=a.memoizedProps;a.stateNode;!function(e,t,n,r,a,o){!0!==t.suppressHydrationWarning&&Ts(r.nodeValue,a,o,!0)}(0,o,0,t,n,0!=(1&a.mode))}}return r}function Bc(e){var t=e.memoizedState,n=null!==t?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");!function(e,t){_u(t,e)}(n,e)}function qc(e){var t=e.memoizedState,n=null!==t?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return function(e){for(var t=e.nextSibling,n=0;t;){if(8===t.nodeType){var r=t.data;if(r===Bs){if(0===n)return pu(t);n--}else r!==Ws&&r!==Ys&&r!==qs||n++}t=t.nextSibling}return null}(n)}function Yc(e){for(var t=e.return;null!==t&&5!==t.tag&&3!==t.tag&&t.tag!==c;)t=t.return;Cc=t}function Gc(e){if(e!==Cc)return!1;if(!Rc)return Yc(e),Rc=!0,!1;if(3!==e.tag&&(5!==e.tag||"head"!==(n=e.type)&&"body"!==n&&!Zs(e.type,e.memoizedProps))){var t=Dc;if(t)if(jc(e))Kc(e),Vc();else for(;t;)Fc(e,t),t=pu(t)}var n;return Yc(e),Dc=e.tag===c?qc(e):Cc?pu(e.stateNode):null,!0}function Kc(e){for(var t=Dc;t;)Lc(e,t),t=pu(t)}function Qc(){Cc=null,Dc=null,Rc=!1,Nc=!1}function Xc(){null!==Pc&&(ly(Pc),Pc=null)}function Zc(){return Rc}function Jc(e){null===Pc?Pc=[e]:Pc.push(e)}var ed=n.ReactCurrentBatchConfig;var td={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},nd=function(e){var t=[];return e.forEach((function(e){t.push(e)})),t.sort().join(", ")},rd=[],ad=[],od=[],id=[],ld=[],sd=[],ud=new Set;td.recordUnsafeLifecycleWarnings=function(e,t){ud.has(e.type)||("function"==typeof t.componentWillMount&&!0!==t.componentWillMount.__suppressDeprecationWarning&&rd.push(e),8&e.mode&&"function"==typeof t.UNSAFE_componentWillMount&&ad.push(e),"function"==typeof t.componentWillReceiveProps&&!0!==t.componentWillReceiveProps.__suppressDeprecationWarning&&od.push(e),8&e.mode&&"function"==typeof t.UNSAFE_componentWillReceiveProps&&id.push(e),"function"==typeof t.componentWillUpdate&&!0!==t.componentWillUpdate.__suppressDeprecationWarning&&ld.push(e),8&e.mode&&"function"==typeof t.UNSAFE_componentWillUpdate&&sd.push(e))},td.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;rd.length>0&&(rd.forEach((function(t){e.add(ze(t)||"Component"),ud.add(t.type)})),rd=[]);var t=new Set;ad.length>0&&(ad.forEach((function(e){t.add(ze(e)||"Component"),ud.add(e.type)})),ad=[]);var n=new Set;od.length>0&&(od.forEach((function(e){n.add(ze(e)||"Component"),ud.add(e.type)})),od=[]);var r=new Set;id.length>0&&(id.forEach((function(e){r.add(ze(e)||"Component"),ud.add(e.type)})),id=[]);var i=new Set;ld.length>0&&(ld.forEach((function(e){i.add(ze(e)||"Component"),ud.add(e.type)})),ld=[]);var l=new Set;(sd.length>0&&(sd.forEach((function(e){l.add(ze(e)||"Component"),ud.add(e.type)})),sd=[]),t.size>0)&&o("Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n\nPlease update the following components: %s",nd(t));r.size>0&&o("Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n\nPlease update the following components: %s",nd(r));l.size>0&&o("Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n\nPlease update the following components: %s",nd(l));e.size>0&&a("componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",nd(e));n.size>0&&a("componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",nd(n));i.size>0&&a("componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",nd(i))};var cd=new Map,dd=new Set;function fd(e,t){if(e&&e.defaultProps){var n=Se({},t),r=e.defaultProps;for(var a in r)void 0===n[a]&&(n[a]=r[a]);return n}return t}td.recordLegacyContextWarning=function(e,t){var n=function(e){for(var t=null,n=e;null!==n;)8&n.mode&&(t=n),n=n.return;return t}(e);if(null!==n){if(!dd.has(e.type)){var r=cd.get(n);(null!=e.type.contextTypes||null!=e.type.childContextTypes||null!==t&&"function"==typeof t.getChildContext)&&(void 0===r&&(r=[],cd.set(n,r)),r.push(e))}}else o("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.")},td.flushLegacyContextWarning=function(){cd.forEach((function(e,t){if(0!==e.length){var n=e[0],r=new Set;e.forEach((function(e){r.add(ze(e)||"Component"),dd.add(e.type)}));var a=nd(r);try{Be(n),o("Legacy context API has been detected within a strict-mode tree.\n\nThe old API will be supported in all 16.x releases, but applications using it should migrate to the new version.\n\nPlease update the following components: %s\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context",a)}finally{We()}}}))},td.discardPendingWarnings=function(){rd=[],ad=[],od=[],id=[],ld=[],sd=[],cd=new Map};var pd,hd=Uu(null);pd={};var md=null,vd=null,gd=null,yd=!1;function bd(){md=null,vd=null,gd=null,yd=!1}function wd(){yd=!0}function Sd(){yd=!1}function Ed(e,t,n){Vu(hd,t._currentValue,e),t._currentValue=n,void 0!==t._currentRenderer&&null!==t._currentRenderer&&t._currentRenderer!==pd&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=pd}function _d(e,t){var n=hd.current;ju(hd,t),e._currentValue=n}function kd(e,t,n){for(var r=e;null!==r;){var a=r.alternate;if(no(r.childLanes,t)?null===a||no(a.childLanes,t)||(a.childLanes=ro(a.childLanes,t)):(r.childLanes=ro(r.childLanes,t),null!==a&&(a.childLanes=ro(a.childLanes,t))),r===n)break;r=r.return}r!==n&&o("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Td(e,t,n){!function(e,t,n){var r=e.child;null!==r&&(r.return=e);for(;null!==r;){var a=void 0,o=r.dependencies;if(null!==o){a=r.child;for(var i=o.firstContext;null!==i;){if(i.context===t){if(1===r.tag){var s=Za(n),u=jd(Ha,s);u.tag=Fd;var c=r.updateQueue;if(null===c);else{var d=c.shared,f=d.pending;null===f?u.next=u:(u.next=f.next,f.next=u),d.pending=u}}r.lanes=ro(r.lanes,n);var p=r.alternate;null!==p&&(p.lanes=ro(p.lanes,n)),kd(r.return,n,e),o.lanes=ro(o.lanes,n);break}i=i.next}}else if(r.tag===l)a=r.type===e.type?null:r.child;else if(r.tag===h){var m=r.return;if(null===m)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");m.lanes=ro(m.lanes,n);var v=m.alternate;null!==v&&(v.lanes=ro(v.lanes,n)),kd(m,n,e),a=r.sibling}else a=r.child;if(null!==a)a.return=r;else for(a=r;null!==a;){if(a===e){a=null;break}var g=a.sibling;if(null!==g){g.return=a.return,a=g;break}a=a.return}r=a}}(e,t,n)}function xd(e,t){md=e,vd=null,gd=null;var n=e.dependencies;null!==n&&(null!==n.firstContext&&(to(n.lanes,t)&&Ym(),n.firstContext=null))}function Cd(e){yd&&o("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var t=e._currentValue;if(gd===e);else{var n={context:e,memoizedValue:t,next:null};if(null===vd){if(null===md)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");vd=n,md.dependencies={lanes:0,firstContext:n}}else vd=vd.next=n}return t}var Dd=null;function Rd(e){null===Dd?Dd=[e]:Dd.push(e)}function Nd(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,Rd(t)):(n.next=a.next,a.next=n),t.interleaved=n,Od(e,r)}function Pd(e,t,n,r){var a=t.interleaved;null===a?(n.next=n,Rd(t)):(n.next=a.next,a.next=n),t.interleaved=n}function Id(e,t){return Od(e,t)}var Md=Od;function Od(e,t){e.lanes=ro(e.lanes,t);var n=e.alternate;null!==n&&(n.lanes=ro(n.lanes,t)),null===n&&0!=(4098&e.flags)&&Uy(e);for(var r=e,a=e.return;null!==a;)a.childLanes=ro(a.childLanes,t),null!==(n=a.alternate)?n.childLanes=ro(n.childLanes,t):0!=(4098&a.flags)&&Uy(e),r=a,a=a.return;return 3===r.tag?r.stateNode:null}var Ad,Ld,Fd=2,zd=!1;function Hd(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null};e.updateQueue=t}function Ud(e,t){var n=t.updateQueue,r=e.updateQueue;if(n===r){var a={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects};t.updateQueue=a}}function jd(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Vd(e,t,n){var r=e.updateQueue;if(null===r)return null;var a=r.shared;if(Ld!==a||Ad||(o("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),Ad=!0),0!=(2&yg)){var i=a.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),a.pending=t,Md(e,n)}return function(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,Rd(t)):(n.next=a.next,a.next=n),t.interleaved=n,Od(e,r)}(e,a,t,n)}function $d(e,t,n){var r=t.updateQueue;if(null!==r){var a=r.shared;if(Ka(n)){var o=a.lanes,i=ro(o=oo(o,e.pendingLanes),n);a.lanes=i,uo(e,i)}}}function Wd(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r){var a=r.updateQueue;if(n===a){var o=null,i=null,l=n.firstBaseUpdate;if(null!==l){var s=l;do{var u={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};null===i?o=i=u:(i.next=u,i=u),s=s.next}while(null!==s);null===i?o=i=t:(i.next=t,i=t)}else o=i=t;return n={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:a.shared,effects:a.effects},void(e.updateQueue=n)}}var c=n.lastBaseUpdate;null===c?n.firstBaseUpdate=t:c.next=t,n.lastBaseUpdate=t}function Bd(e,t,n,r,a,o){switch(n.tag){case 1:var i=n.payload;if("function"==typeof i){wd();var l=i.call(o,r,a);if(8&e.mode){Yr(!0);try{i.call(o,r,a)}finally{Yr(!1)}}return Sd(),l}return i;case 3:e.flags=-65537&e.flags|Zn;case 0:var s,u=n.payload;if("function"==typeof u){if(wd(),s=u.call(o,r,a),8&e.mode){Yr(!0);try{u.call(o,r,a)}finally{Yr(!1)}}Sd()}else s=u;return null==s?r:Se({},r,s);case Fd:return zd=!0,r}return r}function qd(e,t,n,r){var a=e.updateQueue;zd=!1,Ld=a.shared;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,l=a.shared.pending;if(null!==l){a.shared.pending=null;var s=l,u=s.next;s.next=null,null===i?o=u:i.next=u,i=s;var c=e.alternate;if(null!==c){var d=c.updateQueue,f=d.lastBaseUpdate;f!==i&&(null===f?d.firstBaseUpdate=u:f.next=u,d.lastBaseUpdate=s)}}if(null!==o){for(var p=a.baseState,h=0,m=null,v=null,g=null,y=o;;){var b=y.lane,w=y.eventTime;if(no(r,b)){if(null!==g){var S={eventTime:w,lane:0,tag:y.tag,payload:y.payload,callback:y.callback,next:null};g=g.next=S}if(p=Bd(e,0,y,p,t,n),null!==y.callback&&0!==y.lane){e.flags|=64;var E=a.effects;null===E?a.effects=[y]:E.push(y)}}else{var _={eventTime:w,lane:b,tag:y.tag,payload:y.payload,callback:y.callback,next:null};null===g?(v=g=_,m=p):g=g.next=_,h=ro(h,b)}if(null===(y=y.next)){if(null===(l=a.shared.pending))break;var k=l,T=k.next;k.next=null,y=T,a.lastBaseUpdate=k,a.shared.pending=null}}null===g&&(m=p),a.baseState=m,a.firstBaseUpdate=v,a.lastBaseUpdate=g;var x=a.shared.interleaved;if(null!==x){var C=x;do{h=ro(h,C.lane),C=C.next}while(C!==x)}else null===o&&(a.shared.lanes=0);by(h),e.lanes=h,e.memoizedState=p}Ld=null}function Yd(e,t){if("function"!=typeof e)throw new Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function Gd(){zd=!1}function Kd(){return zd}function Qd(e,t,n){var r=t.effects;if(t.effects=null,null!==r)for(var a=0;a<r.length;a++){var o=r[a],i=o.callback;null!==i&&(o.callback=null,Yd(i,n))}}Ad=!1,Ld=null;var Xd,Zd,Jd,ef,tf,nf,rf,af,of,lf,sf={},uf=(new e.Component).refs;Xd=new Set,Zd=new Set,Jd=new Set,ef=new Set,af=new Set,tf=new Set,of=new Set,lf=new Set;var cf=new Set;function df(e,t,n,r){var a=e.memoizedState,o=n(r,a);if(8&e.mode){Yr(!0);try{o=n(r,a)}finally{Yr(!1)}}nf(t,o);var i=null==o?a:Se({},a,o);(e.memoizedState=i,0===e.lanes)&&(e.updateQueue.baseState=i)}rf=function(e,t){if(null!==e&&"function"!=typeof e){var n=t+"_"+e;cf.has(n)||(cf.add(n),o("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},nf=function(e,t){if(void 0===t){var n=Le(e)||"Component";tf.has(n)||(tf.add(n),o("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))}},Object.defineProperty(sf,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(sf);var ff,pf,hf,mf,vf,gf={isMounted:function(e){var t=br.current;if(null!==t&&1===t.tag){var n=t,r=n.stateNode;r._warnedAboutRefsInRender||o("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",ze(n)||"A component"),r._warnedAboutRefsInRender=!0}var a=Qn(e);return!!a&&wr(a)===a},enqueueSetState:function(e,t,n){var r=Qn(e),a=ey(),o=ty(r),i=jd(a,o);i.payload=t,null!=n&&(rf(n,"setState"),i.callback=n);var l=Vd(r,i,o);null!==l&&(ry(l,r,o,a),$d(l,r,o)),ia(r,o)},enqueueReplaceState:function(e,t,n){var r=Qn(e),a=ey(),o=ty(r),i=jd(a,o);i.tag=1,i.payload=t,null!=n&&(rf(n,"replaceState"),i.callback=n);var l=Vd(r,i,o);null!==l&&(ry(l,r,o,a),$d(l,r,o)),ia(r,o)},enqueueForceUpdate:function(e,t){var n=Qn(e),r=ey(),a=ty(n),o=jd(r,a);o.tag=Fd,null!=t&&(rf(t,"forceUpdate"),o.callback=t);var i=Vd(n,o,a);null!==i&&(ry(i,n,a,r),$d(i,n,a)),function(e,t){null!==Wr&&"function"==typeof Wr.markForceUpdateScheduled&&Wr.markForceUpdateScheduled(e,t)}(n,a)}};function yf(e,t,n,r,a,i,l){var s=e.stateNode;if("function"==typeof s.shouldComponentUpdate){var u=s.shouldComponentUpdate(r,i,l);if(8&e.mode){Yr(!0);try{u=s.shouldComponentUpdate(r,i,l)}finally{Yr(!1)}}return void 0===u&&o("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Le(t)||"Component"),u}return!t.prototype||!t.prototype.isPureReactComponent||(!pl(n,r)||!pl(a,i))}function bf(e,t){var n;t.updater=gf,e.stateNode=t,n=e,t._reactInternals=n,t._reactInternalInstance=sf}function wf(e,t,n){var r=!1,a=$u,i=$u,l=t.contextType;if("contextType"in t&&(!(null===l||void 0!==l&&l.$$typeof===oe&&void 0===l._context)&&!lf.has(t))){lf.add(t);var s="";s=void 0===l?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":"object"!=typeof l?" However, it is set to a "+typeof l+".":l.$$typeof===ae?" Did you accidentally pass the Context.Provider instead?":void 0!==l._context?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(l).join(", ")+"}.",o("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Le(t)||"Component",s)}if("object"==typeof l&&null!==l)i=Cd(l);else{a=Yu(0,t,!0);var u=t.contextTypes;i=(r=null!=u)?Ku(e,a):$u}var c=new t(n,i);if(8&e.mode){Yr(!0);try{c=new t(n,i)}finally{Yr(!1)}}var d=e.memoizedState=null!==c.state&&void 0!==c.state?c.state:null;if(bf(e,c),"function"==typeof t.getDerivedStateFromProps&&null===d){var f=Le(t)||"Component";Zd.has(f)||(Zd.add(f),o("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",f,null===c.state?"null":"undefined",f))}if("function"==typeof t.getDerivedStateFromProps||"function"==typeof c.getSnapshotBeforeUpdate){var p=null,h=null,m=null;if("function"==typeof c.componentWillMount&&!0!==c.componentWillMount.__suppressDeprecationWarning?p="componentWillMount":"function"==typeof c.UNSAFE_componentWillMount&&(p="UNSAFE_componentWillMount"),"function"==typeof c.componentWillReceiveProps&&!0!==c.componentWillReceiveProps.__suppressDeprecationWarning?h="componentWillReceiveProps":"function"==typeof c.UNSAFE_componentWillReceiveProps&&(h="UNSAFE_componentWillReceiveProps"),"function"==typeof c.componentWillUpdate&&!0!==c.componentWillUpdate.__suppressDeprecationWarning?m="componentWillUpdate":"function"==typeof c.UNSAFE_componentWillUpdate&&(m="UNSAFE_componentWillUpdate"),null!==p||null!==h||null!==m){var v=Le(t)||"Component",g="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";ef.has(v)||(ef.add(v),o("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://reactjs.org/link/unsafe-component-lifecycles",v,g,null!==p?"\n "+p:"",null!==h?"\n "+h:"",null!==m?"\n "+m:""))}}return r&&Gu(e,a,i),c}function Sf(e,t,n,r){var a=t.state;if("function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==a){var i=ze(e)||"Component";Xd.has(i)||(Xd.add(i),o("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",i)),gf.enqueueReplaceState(t,t.state,null)}}function Ef(e,t,n,r){!function(e,t,n){var r=e.stateNode,a=Le(t)||"Component";r.render||(t.prototype&&"function"==typeof t.prototype.render?o("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",a):o("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",a)),!r.getInitialState||r.getInitialState.isReactClassApproved||r.state||o("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",a),r.getDefaultProps&&!r.getDefaultProps.isReactClassApproved&&o("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",a),r.propTypes&&o("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",a),r.contextType&&o("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",a),r.contextTypes&&o("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",a),t.contextType&&t.contextTypes&&!of.has(t)&&(of.add(t),o("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",a)),"function"==typeof r.componentShouldUpdate&&o("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",a),t.prototype&&t.prototype.isPureReactComponent&&void 0!==r.shouldComponentUpdate&&o("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Le(t)||"A pure component"),"function"==typeof r.componentDidUnmount&&o("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",a),"function"==typeof r.componentDidReceiveProps&&o("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",a),"function"==typeof r.componentWillRecieveProps&&o("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",a),"function"==typeof r.UNSAFE_componentWillRecieveProps&&o("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",a);var i=r.props!==n;void 0!==r.props&&i&&o("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",a,a),r.defaultProps&&o("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",a,a),"function"!=typeof r.getSnapshotBeforeUpdate||"function"==typeof r.componentDidUpdate||Jd.has(t)||(Jd.add(t),o("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Le(t))),"function"==typeof r.getDerivedStateFromProps&&o("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",a),"function"==typeof r.getDerivedStateFromError&&o("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",a),"function"==typeof t.getSnapshotBeforeUpdate&&o("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",a);var l=r.state;l&&("object"!=typeof l||wt(l))&&o("%s.state: must be set to an object or null",a),"function"==typeof r.getChildContext&&"object"!=typeof t.childContextTypes&&o("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",a)}(e,t,n);var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=uf,Hd(e);var i=t.contextType;if("object"==typeof i&&null!==i)a.context=Cd(i);else{var l=Yu(0,t,!0);a.context=Ku(e,l)}if(a.state===n){var s=Le(t)||"Component";af.has(s)||(af.add(s),o("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",s))}8&e.mode&&td.recordLegacyContextWarning(e,a),td.recordUnsafeLifecycleWarnings(e,a),a.state=e.memoizedState;var u=t.getDerivedStateFromProps;if("function"==typeof u&&(df(e,t,u,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(!function(e,t){var n=t.state;"function"==typeof t.componentWillMount&&t.componentWillMount(),"function"==typeof t.UNSAFE_componentWillMount&&t.UNSAFE_componentWillMount(),n!==t.state&&(o("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",ze(e)||"Component"),gf.enqueueReplaceState(t,t.state,null))}(e,a),qd(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount){var c=4;c|=dr,0!=(e.mode&la)&&(c|=fr),e.flags|=c}}var _f;function kf(e,t,n){var r=n.ref;if(null!==r&&"function"!=typeof r&&"object"!=typeof r){if(8&e.mode&&(!n._owner||!n._self||n._owner.stateNode===n._self)){var a=ze(e)||"Component";hf[a]||(o('A string ref, "%s", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',r),hf[a]=!0)}if(n._owner){var i,l=n._owner;if(l){var s=l;if(1!==s.tag)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");i=s.stateNode}if(!i)throw new Error("Missing owner for string ref "+r+". This error is likely caused by a bug in React. Please file an issue.");var u=i;!function(e,t){if(D(e))o("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,C(e)),R(e)}(r,"ref");var c=""+r;if(null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===c)return t.ref;var d=function(e){var t=u.refs;t===uf&&(t=u.refs={}),null===e?delete t[c]:t[c]=e};return d._stringRef=c,d}if("string"!=typeof r)throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!n._owner)throw new Error("Element ref was specified as a string ("+r+") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://reactjs.org/link/refs-must-have-owner for more information.")}return r}function Tf(e,t){var n=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}function xf(e){var t=ze(e)||"Component";vf[t]||(vf[t]=!0,o("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it."))}function Cf(e){var t=e._payload;return(0,e._init)(t)}function Df(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=Xn):r.push(n)}}function n(n,r){if(!e)return null;for(var a=r;null!==a;)t(n,a),a=a.sibling;return null}function r(e,t){for(var n=new Map,r=t;null!==r;)null!==r.key?n.set(r.key,r):n.set(r.index,r),r=r.sibling;return n}function a(e,t){var n=pb(e,t);return n.index=0,n.sibling=null,n}function i(t,n,r){if(t.index=r,!e)return t.flags|=ur,n;var a=t.alternate;if(null!==a){var o=a.index;return o<n?(t.flags|=2,n):o}return t.flags|=2,n}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){if(null===t||6!==t.tag){var o=bb(n,e.mode,r);return o.return=e,o}var i=a(t,n);return i.return=e,i}function u(e,t,n,r){var o=n.type;if(o===te)return d(e,t,n.props.children,r,n.key);if(null!==t&&(t.elementType===o||tb(t,n)||"object"==typeof o&&null!==o&&o.$$typeof===ce&&Cf(o)===t.type)){var i=a(t,n.props);return i.ref=kf(e,t,n),i.return=e,i._debugSource=n._source,i._debugOwner=n._owner,i}var l=vb(n,e.mode,r);return l.ref=kf(e,t,n),l.return=e,l}function c(e,t,n,r){if(null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation){var o=wb(n,e.mode,r);return o.return=e,o}var i=a(t,n.children||[]);return i.return=e,i}function d(e,t,n,r,o){if(null===t||7!==t.tag){var i=gb(n,e.mode,r,o);return i.return=e,i}var l=a(t,n);return l.return=e,l}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t){var r=bb(""+t,e.mode,n);return r.return=e,r}if("object"==typeof t&&null!==t){switch(t.$$typeof){case J:var a=vb(t,e.mode,n);return a.ref=kf(e,null,t),a.return=e,a;case ee:var o=wb(t,e.mode,n);return o.return=e,o;case ce:var i=t._payload;return f(e,(0,t._init)(i),n)}if(wt(t)||pe(t)){var l=gb(t,e.mode,n,null);return l.return=e,l}Tf(0,t)}return"function"==typeof t&&xf(e),null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==a?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case J:return n.key===a?u(e,t,n,r):null;case ee:return n.key===a?c(e,t,n,r):null;case ce:var o=n._payload;return p(e,t,(0,n._init)(o),r)}if(wt(n)||pe(n))return null!==a?null:d(e,t,n,r,null);Tf(0,n)}return"function"==typeof n&&xf(e),null}function h(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case J:return u(t,e.get(null===r.key?n:r.key)||null,r,a);case ee:return c(t,e.get(null===r.key?n:r.key)||null,r,a);case ce:var o=r._payload;return h(e,t,n,(0,r._init)(o),a)}if(wt(r)||pe(r))return d(t,e.get(n)||null,r,a,null);Tf(0,r)}return"function"==typeof r&&xf(t),null}function m(e,t,n){if("object"!=typeof e||null===e)return t;switch(e.$$typeof){case J:case ee:_f(e,n);var r=e.key;if("string"!=typeof r)break;if(null===t){(t=new Set).add(r);break}if(!t.has(r)){t.add(r);break}o("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",r);break;case ce:var a=e._payload;m((0,e._init)(a),t,n)}return t}return function s(u,c,d,v){if("object"==typeof d&&null!==d&&d.type===te&&null===d.key&&(d=d.props.children),"object"==typeof d&&null!==d){switch(d.$$typeof){case J:return l(function(e,r,o,i){for(var l=o.key,s=r;null!==s;){if(s.key===l){var u=o.type;if(u===te){if(7===s.tag){n(e,s.sibling);var c=a(s,o.props.children);return c.return=e,c._debugSource=o._source,c._debugOwner=o._owner,c}}else if(s.elementType===u||tb(s,o)||"object"==typeof u&&null!==u&&u.$$typeof===ce&&Cf(u)===s.type){n(e,s.sibling);var d=a(s,o.props);return d.ref=kf(e,s,o),d.return=e,d._debugSource=o._source,d._debugOwner=o._owner,d}n(e,s);break}t(e,s),s=s.sibling}if(o.type===te){var f=gb(o.props.children,e.mode,i,o.key);return f.return=e,f}var p=vb(o,e.mode,i);return p.ref=kf(e,r,o),p.return=e,p}(u,c,d,v));case ee:return l(function(e,r,o,i){for(var l=o.key,s=r;null!==s;){if(s.key===l){if(4===s.tag&&s.stateNode.containerInfo===o.containerInfo&&s.stateNode.implementation===o.implementation){n(e,s.sibling);var u=a(s,o.children||[]);return u.return=e,u}n(e,s);break}t(e,s),s=s.sibling}var c=wb(o,e.mode,i);return c.return=e,c}(u,c,d,v));case ce:var g=d._payload;return s(u,c,(0,d._init)(g),v)}if(wt(d))return function(a,o,l,s){for(var u=null,c=0;c<l.length;c++)u=m(l[c],u,a);for(var d=null,v=null,g=o,y=0,b=0,w=null;null!==g&&b<l.length;b++){g.index>b?(w=g,g=null):w=g.sibling;var S=p(a,g,l[b],s);if(null===S){null===g&&(g=w);break}e&&g&&null===S.alternate&&t(a,g),y=i(S,y,b),null===v?d=S:v.sibling=S,v=S,g=w}if(b===l.length)return n(a,g),Zc()&&Sc(a,b),d;if(null===g){for(;b<l.length;b++){var E=f(a,l[b],s);null!==E&&(y=i(E,y,b),null===v?d=E:v.sibling=E,v=E)}return Zc()&&Sc(a,b),d}for(var _=r(0,g);b<l.length;b++){var k=h(_,a,b,l[b],s);null!==k&&(e&&null!==k.alternate&&_.delete(null===k.key?b:k.key),y=i(k,y,b),null===v?d=k:v.sibling=k,v=k)}return e&&_.forEach((function(e){return t(a,e)})),Zc()&&Sc(a,b),d}(u,c,d,v);if(pe(d))return function(a,l,s,u){var c=pe(s);if("function"!=typeof c)throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");"function"==typeof Symbol&&"Generator"===s[Symbol.toStringTag]&&(pf||o("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),pf=!0),s.entries===c&&(ff||o("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ff=!0);var d=c.call(s);if(d)for(var v=null,g=d.next();!g.done;g=d.next())v=m(g.value,v,a);var y=c.call(s);if(null==y)throw new Error("An iterable object provided no iterator.");for(var b=null,w=null,S=l,E=0,_=0,k=null,T=y.next();null!==S&&!T.done;_++,T=y.next()){S.index>_?(k=S,S=null):k=S.sibling;var x=p(a,S,T.value,u);if(null===x){null===S&&(S=k);break}e&&S&&null===x.alternate&&t(a,S),E=i(x,E,_),null===w?b=x:w.sibling=x,w=x,S=k}if(T.done)return n(a,S),Zc()&&Sc(a,_),b;if(null===S){for(;!T.done;_++,T=y.next()){var C=f(a,T.value,u);null!==C&&(E=i(C,E,_),null===w?b=C:w.sibling=C,w=C)}return Zc()&&Sc(a,_),b}for(var D=r(0,S);!T.done;_++,T=y.next()){var R=h(D,a,_,T.value,u);null!==R&&(e&&null!==R.alternate&&D.delete(null===R.key?_:R.key),E=i(R,E,_),null===w?b=R:w.sibling=R,w=R)}return e&&D.forEach((function(e){return t(a,e)})),Zc()&&Sc(a,_),b}(u,c,d,v);Tf(0,d)}return"string"==typeof d&&""!==d||"number"==typeof d?l(function(e,t,r,o){if(null!==t&&6===t.tag){n(e,t.sibling);var i=a(t,r);return i.return=e,i}n(e,t);var l=bb(r,e.mode,o);return l.return=e,l}(u,c,""+d,v)):("function"==typeof d&&xf(u),n(u,c))}}ff=!1,pf=!1,hf={},mf={},vf={},_f=function(e,t){if(null!==e&&"object"==typeof e&&e._store&&!e._store.validated&&null==e.key){if("object"!=typeof e._store)throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");e._store.validated=!0;var n=ze(t)||"Component";mf[n]||(mf[n]=!0,o('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};var Rf=Df(!0),Nf=Df(!1);function Pf(e,t){for(var n=e.child;null!==n;)hb(n,t),n=n.sibling}var If={},Mf=Uu(If),Of=Uu(If),Af=Uu(If);function Lf(e){if(e===If)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function Ff(){return Lf(Af.current)}function zf(e,t){Vu(Af,t,e),Vu(Of,e,e),Vu(Mf,If,e);var n=function(e){var t,n,r=e.nodeType;switch(r){case 9:case 11:t=9===r?"#document":"#fragment";var a=e.documentElement;n=a?a.namespaceURI:Ot(null,"");break;default:var o=8===r?e.parentNode:e;n=Ot(o.namespaceURI||null,t=o.tagName)}var i=t.toLowerCase();return{namespace:n,ancestorInfo:Fs(null,i)}}(t);ju(Mf,e),Vu(Mf,n,e)}function Hf(e){ju(Mf,e),ju(Of,e),ju(Af,e)}function Uf(){return Lf(Mf.current)}function jf(e){Lf(Af.current);var t,n,r,a=Lf(Mf.current),o=(t=a,n=e.type,{namespace:Ot((r=t).namespace,n),ancestorInfo:Fs(r.ancestorInfo,n)});a!==o&&(Vu(Of,e,e),Vu(Mf,o,e))}function Vf(e){Of.current===e&&(ju(Mf,e),ju(Of,e))}var $f=Uu(0);function Wf(e,t){return 0!=(e&t)}function Bf(e){return 1&e}function qf(e,t){return 1&e|t}function Yf(e,t){Vu($f,t,e)}function Gf(e){ju($f,e)}function Kf(e,t){var n=e.memoizedState;return null!==n?null!==n.dehydrated:(e.memoizedProps,!0)}function Qf(e){for(var t=e;null!==t;){if(t.tag===c){var n=t.memoizedState;if(null!==n){var r=n.dehydrated;if(null===r||cu(r)||du(r))return t}}else if(t.tag===m&&void 0!==t.memoizedProps.revealOrder){if(0!=(t.flags&Zn))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)return null;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Xf=[];function Zf(){for(var e=0;e<Xf.length;e++){Xf[e]._workInProgressVersionPrimary=null}Xf.length=0}function Jf(e,t){var n=(0,t._getVersion)(t._source);null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)}var ep,tp,np=n.ReactCurrentDispatcher,rp=n.ReactCurrentBatchConfig;ep=new Set;var ap=0,op=null,ip=null,lp=null,sp=!1,up=!1,cp=0,dp=0,fp=null,pp=null,hp=-1,mp=!1;function vp(){var e=fp;null===pp?pp=[e]:pp.push(e)}function gp(){var e=fp;null!==pp&&(hp++,pp[hp]!==e&&function(e){var t=ze(op);if(!ep.has(t)&&(ep.add(t),null!==pp)){for(var n="",r=30,a=0;a<=hp;a++){for(var i=pp[a],l=a===hp?e:i,s=a+1+". "+i;s.length<r;)s+=" ";n+=s+=l+"\n"}o("React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n Previous render Next render\n ------------------------------------------------------\n%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",t,n)}}(e))}function yp(e){null==e||wt(e)||o("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",fp,typeof e)}function bp(){throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.")}function wp(e,t){if(mp)return!1;if(null===t)return o("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",fp),!1;e.length!==t.length&&o("The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s",fp,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!fl(e[n],t[n]))return!1;return!0}function Sp(e,t,n,r,a,i){ap=i,op=t,pp=null!==e?e._debugHookTypes:null,hp=-1,mp=null!==e&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=0,null!==e&&null!==e.memoizedState?np.current=Ch:np.current=null!==pp?xh:Th;var l=n(r,a);if(up){var s=0;do{if(up=!1,cp=0,s>=25)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");s+=1,mp=!1,ip=null,lp=null,t.updateQueue=null,hp=-1,np.current=Dh,l=n(r,a)}while(up)}np.current=kh,t._debugHookTypes=pp;var u=null!==ip&&null!==ip.next;if(ap=0,op=null,ip=null,lp=null,fp=null,pp=null,hp=-1,null!==e&&(e.flags&yr)!=(t.flags&yr)&&0!=(1&e.mode)&&o("Internal React error: Expected static flag was missing. Please notify the React team."),sp=!1,u)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return l}function Ep(){var e=0!==cp;return cp=0,e}function _p(e,t,n){t.updateQueue=e.updateQueue,0!=(t.mode&la)?t.flags&=-50333701:t.flags&=-2053,e.lanes=ao(e.lanes,n)}function kp(){if(np.current=kh,sp){for(var e=op.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}sp=!1}ap=0,op=null,ip=null,lp=null,pp=null,hp=-1,fp=null,mh=!1,up=!1,cp=0}function Tp(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===lp?op.memoizedState=lp=e:lp=lp.next=e,lp}function xp(){var e,t;if(null===ip){var n=op.alternate;e=null!==n?n.memoizedState:null}else e=ip.next;if(null!==(t=null===lp?op.memoizedState:lp.next))t=(lp=t).next,ip=e;else{if(null===e)throw new Error("Rendered more hooks than during the previous render.");var r={memoizedState:(ip=e).memoizedState,baseState:ip.baseState,baseQueue:ip.baseQueue,queue:ip.queue,next:null};null===lp?op.memoizedState=lp=r:lp=lp.next=r}return lp}function Cp(e,t){return"function"==typeof t?t(e):t}function Dp(e,t,n){var r,a=Tp();r=void 0!==n?n(t):t,a.memoizedState=a.baseState=r;var o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r};a.queue=o;var i=o.dispatch=yh.bind(null,op,o);return[a.memoizedState,i]}function Rp(e,t,n){var r=xp(),a=r.queue;if(null===a)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");a.lastRenderedReducer=e;var i=ip,l=i.baseQueue,s=a.pending;if(null!==s){if(null!==l){var u=l.next,c=s.next;l.next=c,s.next=u}i.baseQueue!==l&&o("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),i.baseQueue=l=s,a.pending=null}if(null!==l){var d=l.next,f=i.baseState,p=null,h=null,m=null,v=d;do{var g=v.lane;if(no(ap,g)){if(null!==m){var y={lane:0,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null};m=m.next=y}if(v.hasEagerState)f=v.eagerState;else f=e(f,v.action)}else{var b={lane:g,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null};null===m?(h=m=b,p=f):m=m.next=b,op.lanes=ro(op.lanes,g),by(g)}v=v.next}while(null!==v&&v!==d);null===m?p=f:m.next=h,fl(f,r.memoizedState)||Ym(),r.memoizedState=f,r.baseState=p,r.baseQueue=m,a.lastRenderedState=f}var w=a.interleaved;if(null!==w){var S=w;do{var E=S.lane;op.lanes=ro(op.lanes,E),by(E),S=S.next}while(S!==w)}else null===l&&(a.lanes=0);var _=a.dispatch;return[r.memoizedState,_]}function Np(e,t,n){var r=xp(),a=r.queue;if(null===a)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");a.lastRenderedReducer=e;var o=a.dispatch,i=a.pending,l=r.memoizedState;if(null!==i){a.pending=null;var s=i.next,u=s;do{l=e(l,u.action),u=u.next}while(u!==s);fl(l,r.memoizedState)||Ym(),r.memoizedState=l,null===r.baseQueue&&(r.baseState=l),a.lastRenderedState=l}return[l,o]}function Pp(e,t,n){var r,a=op,i=Tp();if(Zc()){if(void 0===n)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");r=n(),tp||r!==n()&&(o("The result of getServerSnapshot should be cached to avoid an infinite loop"),tp=!0)}else{if(r=t(),!tp){var l=t();fl(r,l)||(o("The result of getSnapshot should be cached to avoid an infinite loop"),tp=!0)}var s=Jg();if(null===s)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Ga(0,ap)||Mp(a,t,r)}i.memoizedState=r;var u={value:r,getSnapshot:t};return i.queue=u,qp(Ap.bind(null,a,u,e),[e]),a.flags|=nr,jp(9,Op.bind(null,a,u,r,t),void 0,null),r}function Ip(e,t,n){var r=op,a=xp(),i=t();if(!tp){var l=t();fl(i,l)||(o("The result of getSnapshot should be cached to avoid an infinite loop"),tp=!0)}var s=a.memoizedState,u=!fl(s,i);u&&(a.memoizedState=i,Ym());var c=a.queue;if(Yp(Ap.bind(null,r,c,e),[e]),c.getSnapshot!==t||u||null!==lp&&1&lp.memoizedState.tag){r.flags|=nr,jp(9,Op.bind(null,r,c,i,t),void 0,null);var d=Jg();if(null===d)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Ga(0,ap)||Mp(r,t,i)}return i}function Mp(e,t,n){e.flags|=or;var r={getSnapshot:t,value:n},a=op.updateQueue;if(null===a)a={lastEffect:null,stores:null},op.updateQueue=a,a.stores=[r];else{var o=a.stores;null===o?a.stores=[r]:o.push(r)}}function Op(e,t,n,r){t.value=n,t.getSnapshot=r,Lp(t)&&Fp(e)}function Ap(e,t,n){return n((function(){Lp(t)&&Fp(e)}))}function Lp(e){var t=e.getSnapshot,n=e.value;try{var r=t();return!fl(n,r)}catch(e){return!0}}function Fp(e){var t=Id(e,1);null!==t&&ry(t,e,1,Ha)}function zp(e){var t=Tp();"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e;var n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Cp,lastRenderedState:e};t.queue=n;var r=n.dispatch=bh.bind(null,op,n);return[t.memoizedState,r]}function Hp(e){return Rp(Cp)}function Up(e){return Np(Cp)}function jp(e,t,n,r){var a={tag:e,create:t,destroy:n,deps:r,next:null},o=op.updateQueue;if(null===o)o={lastEffect:null,stores:null},op.updateQueue=o,o.lastEffect=a.next=a;else{var i=o.lastEffect;if(null===i)o.lastEffect=a.next=a;else{var l=i.next;i.next=a,a.next=l,o.lastEffect=a}}return a}function Vp(e){var t={current:e};return Tp().memoizedState=t,t}function $p(e){return xp().memoizedState}function Wp(e,t,n,r){var a=Tp(),o=void 0===r?null:r;op.flags|=e,a.memoizedState=jp(1|t,n,void 0,o)}function Bp(e,t,n,r){var a=xp(),o=void 0===r?null:r,i=void 0;if(null!==ip){var l=ip.memoizedState;if(i=l.destroy,null!==o)if(wp(o,l.deps))return void(a.memoizedState=jp(t,n,i,o))}op.flags|=e,a.memoizedState=jp(1|t,n,i,o)}function qp(e,t){return 0!=(op.mode&la)?Wp(41945088,8,e,t):Wp(8390656,8,e,t)}function Yp(e,t){return Bp(nr,8,e,t)}function Gp(e,t){return Wp(4,2,e,t)}function Kp(e,t){return Bp(4,2,e,t)}function Qp(e,t){var n=4;return n|=dr,0!=(op.mode&la)&&(n|=fr),Wp(n,4,e,t)}function Xp(e,t){return Bp(4,4,e,t)}function Zp(e,t){if("function"==typeof t){var n=t,r=e();return n(r),function(){n(null)}}if(null!=t){var a=t;a.hasOwnProperty("current")||o("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(a).join(", ")+"}");var i=e();return a.current=i,function(){a.current=null}}}function Jp(e,t,n){"function"!=typeof t&&o("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null");var r=null!=n?n.concat([e]):null,a=4;return a|=dr,0!=(op.mode&la)&&(a|=fr),Wp(a,4,Zp.bind(null,t,e),r)}function eh(e,t,n){"function"!=typeof t&&o("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null");var r=null!=n?n.concat([e]):null;return Bp(4,4,Zp.bind(null,t,e),r)}function th(e,t){}var nh=th;function rh(e,t){var n=void 0===t?null:t;return Tp().memoizedState=[e,n],e}function ah(e,t){var n=xp(),r=void 0===t?null:t,a=n.memoizedState;if(null!==a&&(null!==r&&wp(r,a[1])))return a[0];return n.memoizedState=[e,r],e}function oh(e,t){var n=Tp(),r=void 0===t?null:t,a=e();return n.memoizedState=[a,r],a}function ih(e,t){var n=xp(),r=void 0===t?null:t,a=n.memoizedState;if(null!==a&&(null!==r&&wp(r,a[1])))return a[0];var o=e();return n.memoizedState=[o,r],o}function lh(e){return Tp().memoizedState=e,e}function sh(e){return ch(xp(),ip.memoizedState,e)}function uh(e){var t=xp();return null===ip?(t.memoizedState=e,e):ch(t,ip.memoizedState,e)}function ch(e,t,n){if(!(0==(21&ap))){if(!fl(n,t)){var r=Qa();op.lanes=ro(op.lanes,r),by(r),e.baseState=!0}return t}return e.baseState&&(e.baseState=!1,Ym()),e.memoizedState=n,n}function dh(e,t,n){var r,o,i=_o();ko((o=bo,0!==(r=i)&&r<o?r:o)),e(!0);var l=rp.transition;rp.transition={};var s=rp.transition;rp.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(ko(i),rp.transition=l,null===l&&s._updatedFibers)s._updatedFibers.size>10&&a("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),s._updatedFibers.clear()}}function fh(){var e=zp(!1),t=e[0],n=e[1],r=dh.bind(null,n);return Tp().memoizedState=r,[t,r]}function ph(){return[Hp()[0],xp().memoizedState]}function hh(){return[Up()[0],xp().memoizedState]}var mh=!1;function vh(){var e,t=Tp(),n=Jg().identifierPrefix;if(Zc()){e=":"+n+"R"+wc();var r=cp++;r>0&&(e+="H"+r.toString(32)),e+=":"}else{e=":"+n+"r"+(dp++).toString(32)+":"}return t.memoizedState=e,e}function gh(){return xp().memoizedState}function yh(e,t,n){"function"==typeof arguments[3]&&o("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var r=ty(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(wh(e))Sh(t,a);else{var i=Nd(e,t,a,r);if(null!==i){var l=ey();ry(i,e,r,l),Eh(i,t,r)}}_h(e,r)}function bh(e,t,n){"function"==typeof arguments[3]&&o("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var r=ty(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(wh(e))Sh(t,a);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)){var l=t.lastRenderedReducer;if(null!==l){var s;s=np.current,np.current=Nh;try{var u=t.lastRenderedState,c=l(u,n);if(a.hasEagerState=!0,a.eagerState=c,fl(c,u))return void Pd(0,t,a)}catch(e){}finally{np.current=s}}}var d=Nd(e,t,a,r);if(null!==d){var f=ey();ry(d,e,r,f),Eh(d,t,r)}}_h(e,r)}function wh(e){var t=e.alternate;return e===op||null!==t&&t===op}function Sh(e,t){up=sp=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Eh(e,t,n){if(Ka(n)){var r=t.lanes,a=ro(r=oo(r,e.pendingLanes),n);t.lanes=a,uo(e,a)}}function _h(e,t,n){ia(e,t)}var kh={readContext:Cd,useCallback:bp,useContext:bp,useEffect:bp,useImperativeHandle:bp,useInsertionEffect:bp,useLayoutEffect:bp,useMemo:bp,useReducer:bp,useRef:bp,useState:bp,useDebugValue:bp,useDeferredValue:bp,useTransition:bp,useMutableSource:bp,useSyncExternalStore:bp,useId:bp,unstable_isNewReconciler:b},Th=null,xh=null,Ch=null,Dh=null,Rh=null,Nh=null,Ph=null,Ih=function(){o("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},Mh=function(){o("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};Th={readContext:function(e){return Cd(e)},useCallback:function(e,t){return fp="useCallback",vp(),yp(t),rh(e,t)},useContext:function(e){return fp="useContext",vp(),Cd(e)},useEffect:function(e,t){return fp="useEffect",vp(),yp(t),qp(e,t)},useImperativeHandle:function(e,t,n){return fp="useImperativeHandle",vp(),yp(n),Jp(e,t,n)},useInsertionEffect:function(e,t){return fp="useInsertionEffect",vp(),yp(t),Gp(e,t)},useLayoutEffect:function(e,t){return fp="useLayoutEffect",vp(),yp(t),Qp(e,t)},useMemo:function(e,t){fp="useMemo",vp(),yp(t);var n=np.current;np.current=Rh;try{return oh(e,t)}finally{np.current=n}},useReducer:function(e,t,n){fp="useReducer",vp();var r=np.current;np.current=Rh;try{return Dp(e,t,n)}finally{np.current=r}},useRef:function(e){return fp="useRef",vp(),Vp(e)},useState:function(e){fp="useState",vp();var t=np.current;np.current=Rh;try{return zp(e)}finally{np.current=t}},useDebugValue:function(e,t){fp="useDebugValue",vp()},useDeferredValue:function(e){return fp="useDeferredValue",vp(),lh(e)},useTransition:function(){return fp="useTransition",vp(),fh()},useMutableSource:function(e,t,n){fp="useMutableSource",vp()},useSyncExternalStore:function(e,t,n){return fp="useSyncExternalStore",vp(),Pp(e,t,n)},useId:function(){return fp="useId",vp(),vh()},unstable_isNewReconciler:b},xh={readContext:function(e){return Cd(e)},useCallback:function(e,t){return fp="useCallback",gp(),rh(e,t)},useContext:function(e){return fp="useContext",gp(),Cd(e)},useEffect:function(e,t){return fp="useEffect",gp(),qp(e,t)},useImperativeHandle:function(e,t,n){return fp="useImperativeHandle",gp(),Jp(e,t,n)},useInsertionEffect:function(e,t){return fp="useInsertionEffect",gp(),Gp(e,t)},useLayoutEffect:function(e,t){return fp="useLayoutEffect",gp(),Qp(e,t)},useMemo:function(e,t){fp="useMemo",gp();var n=np.current;np.current=Rh;try{return oh(e,t)}finally{np.current=n}},useReducer:function(e,t,n){fp="useReducer",gp();var r=np.current;np.current=Rh;try{return Dp(e,t,n)}finally{np.current=r}},useRef:function(e){return fp="useRef",gp(),Vp(e)},useState:function(e){fp="useState",gp();var t=np.current;np.current=Rh;try{return zp(e)}finally{np.current=t}},useDebugValue:function(e,t){fp="useDebugValue",gp()},useDeferredValue:function(e){return fp="useDeferredValue",gp(),lh(e)},useTransition:function(){return fp="useTransition",gp(),fh()},useMutableSource:function(e,t,n){fp="useMutableSource",gp()},useSyncExternalStore:function(e,t,n){return fp="useSyncExternalStore",gp(),Pp(e,t,n)},useId:function(){return fp="useId",gp(),vh()},unstable_isNewReconciler:b},Ch={readContext:function(e){return Cd(e)},useCallback:function(e,t){return fp="useCallback",gp(),ah(e,t)},useContext:function(e){return fp="useContext",gp(),Cd(e)},useEffect:function(e,t){return fp="useEffect",gp(),Yp(e,t)},useImperativeHandle:function(e,t,n){return fp="useImperativeHandle",gp(),eh(e,t,n)},useInsertionEffect:function(e,t){return fp="useInsertionEffect",gp(),Kp(e,t)},useLayoutEffect:function(e,t){return fp="useLayoutEffect",gp(),Xp(e,t)},useMemo:function(e,t){fp="useMemo",gp();var n=np.current;np.current=Nh;try{return ih(e,t)}finally{np.current=n}},useReducer:function(e,t,n){fp="useReducer",gp();var r=np.current;np.current=Nh;try{return Rp(e)}finally{np.current=r}},useRef:function(e){return fp="useRef",gp(),$p()},useState:function(e){fp="useState",gp();var t=np.current;np.current=Nh;try{return Hp()}finally{np.current=t}},useDebugValue:function(e,t){return fp="useDebugValue",gp(),nh()},useDeferredValue:function(e){return fp="useDeferredValue",gp(),sh(e)},useTransition:function(){return fp="useTransition",gp(),ph()},useMutableSource:function(e,t,n){fp="useMutableSource",gp()},useSyncExternalStore:function(e,t,n){return fp="useSyncExternalStore",gp(),Ip(e,t)},useId:function(){return fp="useId",gp(),gh()},unstable_isNewReconciler:b},Dh={readContext:function(e){return Cd(e)},useCallback:function(e,t){return fp="useCallback",gp(),ah(e,t)},useContext:function(e){return fp="useContext",gp(),Cd(e)},useEffect:function(e,t){return fp="useEffect",gp(),Yp(e,t)},useImperativeHandle:function(e,t,n){return fp="useImperativeHandle",gp(),eh(e,t,n)},useInsertionEffect:function(e,t){return fp="useInsertionEffect",gp(),Kp(e,t)},useLayoutEffect:function(e,t){return fp="useLayoutEffect",gp(),Xp(e,t)},useMemo:function(e,t){fp="useMemo",gp();var n=np.current;np.current=Ph;try{return ih(e,t)}finally{np.current=n}},useReducer:function(e,t,n){fp="useReducer",gp();var r=np.current;np.current=Ph;try{return Np(e)}finally{np.current=r}},useRef:function(e){return fp="useRef",gp(),$p()},useState:function(e){fp="useState",gp();var t=np.current;np.current=Ph;try{return Up()}finally{np.current=t}},useDebugValue:function(e,t){return fp="useDebugValue",gp(),nh()},useDeferredValue:function(e){return fp="useDeferredValue",gp(),uh(e)},useTransition:function(){return fp="useTransition",gp(),hh()},useMutableSource:function(e,t,n){fp="useMutableSource",gp()},useSyncExternalStore:function(e,t,n){return fp="useSyncExternalStore",gp(),Ip(e,t)},useId:function(){return fp="useId",gp(),gh()},unstable_isNewReconciler:b},Rh={readContext:function(e){return Ih(),Cd(e)},useCallback:function(e,t){return fp="useCallback",Mh(),vp(),rh(e,t)},useContext:function(e){return fp="useContext",Mh(),vp(),Cd(e)},useEffect:function(e,t){return fp="useEffect",Mh(),vp(),qp(e,t)},useImperativeHandle:function(e,t,n){return fp="useImperativeHandle",Mh(),vp(),Jp(e,t,n)},useInsertionEffect:function(e,t){return fp="useInsertionEffect",Mh(),vp(),Gp(e,t)},useLayoutEffect:function(e,t){return fp="useLayoutEffect",Mh(),vp(),Qp(e,t)},useMemo:function(e,t){fp="useMemo",Mh(),vp();var n=np.current;np.current=Rh;try{return oh(e,t)}finally{np.current=n}},useReducer:function(e,t,n){fp="useReducer",Mh(),vp();var r=np.current;np.current=Rh;try{return Dp(e,t,n)}finally{np.current=r}},useRef:function(e){return fp="useRef",Mh(),vp(),Vp(e)},useState:function(e){fp="useState",Mh(),vp();var t=np.current;np.current=Rh;try{return zp(e)}finally{np.current=t}},useDebugValue:function(e,t){fp="useDebugValue",Mh(),vp()},useDeferredValue:function(e){return fp="useDeferredValue",Mh(),vp(),lh(e)},useTransition:function(){return fp="useTransition",Mh(),vp(),fh()},useMutableSource:function(e,t,n){fp="useMutableSource",Mh(),vp()},useSyncExternalStore:function(e,t,n){return fp="useSyncExternalStore",Mh(),vp(),Pp(e,t,n)},useId:function(){return fp="useId",Mh(),vp(),vh()},unstable_isNewReconciler:b},Nh={readContext:function(e){return Ih(),Cd(e)},useCallback:function(e,t){return fp="useCallback",Mh(),gp(),ah(e,t)},useContext:function(e){return fp="useContext",Mh(),gp(),Cd(e)},useEffect:function(e,t){return fp="useEffect",Mh(),gp(),Yp(e,t)},useImperativeHandle:function(e,t,n){return fp="useImperativeHandle",Mh(),gp(),eh(e,t,n)},useInsertionEffect:function(e,t){return fp="useInsertionEffect",Mh(),gp(),Kp(e,t)},useLayoutEffect:function(e,t){return fp="useLayoutEffect",Mh(),gp(),Xp(e,t)},useMemo:function(e,t){fp="useMemo",Mh(),gp();var n=np.current;np.current=Nh;try{return ih(e,t)}finally{np.current=n}},useReducer:function(e,t,n){fp="useReducer",Mh(),gp();var r=np.current;np.current=Nh;try{return Rp(e)}finally{np.current=r}},useRef:function(e){return fp="useRef",Mh(),gp(),$p()},useState:function(e){fp="useState",Mh(),gp();var t=np.current;np.current=Nh;try{return Hp()}finally{np.current=t}},useDebugValue:function(e,t){return fp="useDebugValue",Mh(),gp(),nh()},useDeferredValue:function(e){return fp="useDeferredValue",Mh(),gp(),sh(e)},useTransition:function(){return fp="useTransition",Mh(),gp(),ph()},useMutableSource:function(e,t,n){fp="useMutableSource",Mh(),gp()},useSyncExternalStore:function(e,t,n){return fp="useSyncExternalStore",Mh(),gp(),Ip(e,t)},useId:function(){return fp="useId",Mh(),gp(),gh()},unstable_isNewReconciler:b},Ph={readContext:function(e){return Ih(),Cd(e)},useCallback:function(e,t){return fp="useCallback",Mh(),gp(),ah(e,t)},useContext:function(e){return fp="useContext",Mh(),gp(),Cd(e)},useEffect:function(e,t){return fp="useEffect",Mh(),gp(),Yp(e,t)},useImperativeHandle:function(e,t,n){return fp="useImperativeHandle",Mh(),gp(),eh(e,t,n)},useInsertionEffect:function(e,t){return fp="useInsertionEffect",Mh(),gp(),Kp(e,t)},useLayoutEffect:function(e,t){return fp="useLayoutEffect",Mh(),gp(),Xp(e,t)},useMemo:function(e,t){fp="useMemo",Mh(),gp();var n=np.current;np.current=Nh;try{return ih(e,t)}finally{np.current=n}},useReducer:function(e,t,n){fp="useReducer",Mh(),gp();var r=np.current;np.current=Nh;try{return Np(e)}finally{np.current=r}},useRef:function(e){return fp="useRef",Mh(),gp(),$p()},useState:function(e){fp="useState",Mh(),gp();var t=np.current;np.current=Nh;try{return Up()}finally{np.current=t}},useDebugValue:function(e,t){return fp="useDebugValue",Mh(),gp(),nh()},useDeferredValue:function(e){return fp="useDeferredValue",Mh(),gp(),uh(e)},useTransition:function(){return fp="useTransition",Mh(),gp(),hh()},useMutableSource:function(e,t,n){fp="useMutableSource",Mh(),gp()},useSyncExternalStore:function(e,t,n){return fp="useSyncExternalStore",Mh(),gp(),Ip(e,t)},useId:function(){return fp="useId",Mh(),gp(),gh()},unstable_isNewReconciler:b};var Oh=t.unstable_now,Ah=0,Lh=-1,Fh=-1,zh=-1,Hh=!1,Uh=!1;function jh(){return Hh}function Vh(){return Ah}function $h(){Ah=Oh()}function Wh(e){Fh=Oh(),e.actualStartTime<0&&(e.actualStartTime=Oh())}function Bh(e){Fh=-1}function qh(e,t){if(Fh>=0){var n=Oh()-Fh;e.actualDuration+=n,t&&(e.selfBaseDuration=n),Fh=-1}}function Yh(e){if(Lh>=0){var t=Oh()-Lh;Lh=-1;for(var n=e.return;null!==n;){switch(n.tag){case 3:return void(n.stateNode.effectDuration+=t);case u:return void(n.stateNode.effectDuration+=t)}n=n.return}}}function Gh(e){if(zh>=0){var t=Oh()-zh;zh=-1;for(var n=e.return;null!==n;){switch(n.tag){case 3:var r=n.stateNode;return void(null!==r&&(r.passiveEffectDuration+=t));case u:var a=n.stateNode;return void(null!==a&&(a.passiveEffectDuration+=t))}n=n.return}}}function Kh(){Lh=Oh()}function Qh(){zh=Oh()}function Xh(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Zh(e,t){return{value:e,source:t,stack:Oe(t),digest:null}}function Jh(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function em(e,t){try{0;var n=t.value,r=t.source,a=t.stack,o=null!==a?a:"";if(null!=n&&n._suppressLogging){if(1===e.tag)return;console.error(n)}var i=r?ze(r):null,l=(i?"The above error occurred in the <"+i+"> component:":"The above error occurred in one of your React components:")+"\n"+o+"\n\n"+(3===e.tag?"Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://reactjs.org/link/error-boundaries to learn more about error boundaries.":"React will try to recreate this component tree from scratch using the error boundary you provided, "+(ze(e)||"Anonymous")+".");console.error(l)}catch(e){setTimeout((function(){throw e}))}}var tm="function"==typeof WeakMap?WeakMap:Map;function nm(e,t,n){var r=jd(Ha,n);r.tag=3,r.payload={element:null};var a=t.value;return r.callback=function(){Ry(a),em(e,t)},r}function rm(e,t,n){var r=jd(Ha,n);r.tag=3;var a=e.type.getDerivedStateFromError;if("function"==typeof a){var i=t.value;r.payload=function(){return a(i)},r.callback=function(){nb(e),em(e,t)}}var l=e.stateNode;return null!==l&&"function"==typeof l.componentDidCatch&&(r.callback=function(){var n;nb(e),em(e,t),"function"!=typeof a&&(n=this,null===zg?zg=new Set([n]):zg.add(n));var r=t.value,i=t.stack;this.componentDidCatch(r,{componentStack:null!==i?i:""}),"function"!=typeof a&&(to(e.lanes,1)||o("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",ze(e)||"Unknown"))}),r}function am(e,t,n){var r,a=e.pingCache;if(null===a?(a=e.pingCache=new tm,r=new Set,a.set(t,r)):void 0===(r=a.get(t))&&(r=new Set,a.set(t,r)),!r.has(n)){r.add(n);var o=Iy.bind(null,e,t,n);qr&&$y(e,n),t.then(o,o)}}function om(e){var t=e;do{if(t.tag===c&&Kf(t))return t;t=t.return}while(null!==t);return null}function im(e,t,n,r,a){if(0==(1&e.mode)){if(e===t)e.flags|=lr;else{if(e.flags|=Zn,n.flags|=sr,n.flags&=-52805,1===n.tag)if(null===n.alternate)n.tag=p;else{var o=jd(Ha,1);o.tag=Fd,Vd(n,o,1)}n.lanes=ro(n.lanes,1)}return e}return e.flags|=lr,e.lanes=a,e}function lm(e,t,n,r,a){if(n.flags|=ir,qr&&$y(e,a),null!==r&&"object"==typeof r&&"function"==typeof r.then){var o=r;!function(e,t){var n=e.tag;if(0==(1&e.mode)&&(0===n||n===s||n===f)){var r=e.alternate;r?(e.updateQueue=r.updateQueue,e.memoizedState=r.memoizedState,e.lanes=r.lanes):(e.updateQueue=null,e.memoizedState=null)}}(n),Zc()&&1&n.mode&&Mc();var i=om(t);if(null!==i)return i.flags&=-257,im(i,t,n,0,a),1&i.mode&&am(e,o,a),void function(e,t,n,r){var a=e.updateQueue;if(null===a){var o=new Set;o.add(n),e.updateQueue=o}else a.add(n)}(i,0,o);if(0==(1&a))return am(e,o,a),void wy();r=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.")}else if(Zc()&&1&n.mode){Mc();var l=om(t);if(null!==l)return 0==(l.flags&lr)&&(l.flags|=Jn),im(l,t,n,0,a),void Jc(Zh(r,n))}!function(e){4!==kg&&(kg=2);null===Rg?Rg=[e]:Rg.push(e)}(r=Zh(r,n));var u=t;do{switch(u.tag){case 3:var c=r;u.flags|=lr;var d=Za(a);return u.lanes=ro(u.lanes,d),void Wd(u,nm(u,c,d));case 1:var p=r,h=u.type,m=u.stateNode;if(0==(u.flags&Zn)&&("function"==typeof h.getDerivedStateFromError||null!==m&&"function"==typeof m.componentDidCatch&&!Dy(m))){u.flags|=lr;var v=Za(a);return u.lanes=ro(u.lanes,v),void Wd(u,rm(u,p,v))}}u=u.return}while(null!==u)}var sm,um,cm,dm,fm,pm,hm,mm,vm=n.ReactCurrentOwner,gm=!1;function ym(e,t,n,r){t.child=null===e?Nf(t,null,n,r):Rf(t,e.child,n,r)}function bm(e,t,n,r,a){if(t.type!==t.elementType){var o=n.propTypes;o&&Au(o,r,"prop",Le(n))}var i,l,s=n.render,u=t.ref;if(xd(t,a),Xr(t),vm.current=t,qe(!0),i=Sp(e,t,s,r,u,a),l=Ep(),8&t.mode){Yr(!0);try{i=Sp(e,t,s,r,u,a),l=Ep()}finally{Yr(!1)}}return qe(!1),Zr(),null===e||gm?(Zc()&&l&&_c(t),t.flags|=1,ym(e,t,i,a),t.child):(_p(e,t,a),Km(e,t,a))}function wm(e,t,n,r,a){if(null===e){var o=n.type;if(function(e){return"function"==typeof e&&!fb(e)&&void 0===e.defaultProps}(o)&&null===n.compare&&void 0===n.defaultProps){var i;return i=Zy(o),t.tag=f,t.type=i,Nm(t,o),Sm(e,t,i,r,a)}var l=o.propTypes;l&&Au(l,r,"prop",Le(o));var s=mb(n.type,null,r,t,t.mode,a);return s.ref=t.ref,s.return=t,t.child=s,s}var u=n.type,c=u.propTypes;c&&Au(c,r,"prop",Le(u));var d=e.child;if(!Qm(e,a)){var p=d.memoizedProps,h=n.compare;if((h=null!==h?h:pl)(p,r)&&e.ref===t.ref)return Km(e,t,a)}t.flags|=1;var m=pb(d,r);return m.ref=t.ref,m.return=t,t.child=m,m}function Sm(e,t,n,r,a){if(t.type!==t.elementType){var o=t.elementType;if(o.$$typeof===ce){var i=o,l=i._payload,s=i._init;try{o=s(l)}catch(e){o=null}var u=o&&o.propTypes;u&&Au(u,r,"prop",Le(o))}}if(null!==e){var c=e.memoizedProps;if(pl(c,r)&&e.ref===t.ref&&t.type===e.type){if(gm=!1,t.pendingProps=r=c,!Qm(e,a))return t.lanes=e.lanes,Km(e,t,a);0!=(e.flags&sr)&&(gm=!0)}}return km(e,t,n,r,a)}function Em(e,t,n){var r,a=t.pendingProps,o=a.children,i=null!==e?e.memoizedState:null;if("hidden"===a.mode)if(0==(1&t.mode)){var l={baseLanes:0,cachePool:null,transitions:null};t.memoizedState=l,py(t,n)}else{if(!to(n,Fa)){var s;if(null!==i)s=ro(i.baseLanes,n);else s=n;t.lanes=t.childLanes=Fa;var u={baseLanes:s,cachePool:null,transitions:null};return t.memoizedState=u,t.updateQueue=null,py(t,s),null}var c={baseLanes:0,cachePool:null,transitions:null};t.memoizedState=c,py(t,null!==i?i.baseLanes:n)}else null!==i?(r=ro(i.baseLanes,n),t.memoizedState=null):r=n,py(t,r);return ym(e,t,o,n),t.child}function _m(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=er,t.flags|=cr)}function km(e,t,n,r,a){if(t.type!==t.elementType){var o=n.propTypes;o&&Au(o,r,"prop",Le(n))}var i,l,s;if(i=Ku(t,Yu(0,n,!0)),xd(t,a),Xr(t),vm.current=t,qe(!0),l=Sp(e,t,n,r,i,a),s=Ep(),8&t.mode){Yr(!0);try{l=Sp(e,t,n,r,i,a),s=Ep()}finally{Yr(!1)}}return qe(!1),Zr(),null===e||gm?(Zc()&&s&&_c(t),t.flags|=1,ym(e,t,l,a),t.child):(_p(e,t,a),Km(e,t,a))}function Tm(e,t,n,r,a){switch(Lb(t)){case!1:var i=t.stateNode,l=new(0,t.type)(t.memoizedProps,i.context).state;i.updater.enqueueSetState(i,l,null);break;case!0:t.flags|=Zn,t.flags|=lr;var s=new Error("Simulated error coming from DevTools"),u=Za(a);t.lanes=ro(t.lanes,u),Wd(t,rm(t,Zh(s,t),u))}if(t.type!==t.elementType){var c=n.propTypes;c&&Au(c,r,"prop",Le(n))}var d,f;Xu(n)?(d=!0,nc(t)):d=!1,xd(t,a),null===t.stateNode?(Gm(e,t),wf(t,n,r),Ef(t,n,r,a),f=!0):f=null===e?function(e,t,n,r){var a=e.stateNode,o=e.memoizedProps;a.props=o;var i=a.context,l=t.contextType,s=$u;s="object"==typeof l&&null!==l?Cd(l):Ku(e,Yu(0,t,!0));var u=t.getDerivedStateFromProps,c="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;c||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||o===n&&i===s||Sf(e,a,n,s),Gd();var d=e.memoizedState,f=a.state=d;if(qd(e,n,a,r),f=e.memoizedState,o===n&&d===f&&!Qu()&&!Kd()){if("function"==typeof a.componentDidMount){var p=4;p|=dr,0!=(e.mode&la)&&(p|=fr),e.flags|=p}return!1}"function"==typeof u&&(df(e,t,u,n),f=e.memoizedState);var h=Kd()||yf(e,t,o,n,d,f,s);if(h){if(c||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount){var m=4;m|=dr,0!=(e.mode&la)&&(m|=fr),e.flags|=m}}else{if("function"==typeof a.componentDidMount){var v=4;v|=dr,0!=(e.mode&la)&&(v|=fr),e.flags|=v}e.memoizedProps=n,e.memoizedState=f}return a.props=n,a.state=f,a.context=s,h}(t,n,r,a):function(e,t,n,r,a){var o=t.stateNode;Ud(e,t);var i=t.memoizedProps,l=t.type===t.elementType?i:fd(t.type,i);o.props=l;var s=t.pendingProps,u=o.context,c=n.contextType,d=$u;d="object"==typeof c&&null!==c?Cd(c):Ku(t,Yu(0,n,!0));var f=n.getDerivedStateFromProps,p="function"==typeof f||"function"==typeof o.getSnapshotBeforeUpdate;p||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||i===s&&u===d||Sf(t,o,r,d),Gd();var h=t.memoizedState,m=o.state=h;if(qd(t,r,o,a),m=t.memoizedState,i===s&&h===m&&!Qu()&&!Kd())return"function"==typeof o.componentDidUpdate&&(i===e.memoizedProps&&h===e.memoizedState||(t.flags|=4)),"function"==typeof o.getSnapshotBeforeUpdate&&(i===e.memoizedProps&&h===e.memoizedState||(t.flags|=tr)),!1;"function"==typeof f&&(df(t,n,f,r),m=t.memoizedState);var v=Kd()||yf(t,n,l,r,h,m,d)||!1;return v?(p||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,m,d),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,m,d)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=tr)):("function"==typeof o.componentDidUpdate&&(i===e.memoizedProps&&h===e.memoizedState||(t.flags|=4)),"function"==typeof o.getSnapshotBeforeUpdate&&(i===e.memoizedProps&&h===e.memoizedState||(t.flags|=tr)),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=d,v}(e,t,n,r,a);var p=xm(e,t,n,f,d,a),h=t.stateNode;return f&&h.props!==r&&(pm||o("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",ze(t)||"a component"),pm=!0),p}function xm(e,t,n,r,a,o){_m(e,t);var i=0!=(t.flags&Zn);if(!r&&!i)return a&&rc(t,n,!1),Km(e,t,o);var l,s=t.stateNode;if(vm.current=t,i&&"function"!=typeof n.getDerivedStateFromError)l=null,Bh();else{if(Xr(t),qe(!0),l=s.render(),8&t.mode){Yr(!0);try{s.render()}finally{Yr(!1)}}qe(!1),Zr()}return t.flags|=1,null!==e&&i?function(e,t,n,r){t.child=Rf(t,e.child,null,r),t.child=Rf(t,null,n,r)}(e,t,l,o):ym(e,t,l,o),t.memoizedState=s.state,a&&rc(t,n,!0),t.child}function Cm(e){var t=e.stateNode;t.pendingContext?ec(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ec(e,t.context,!1),zf(e,t.containerInfo)}function Dm(e,t,n,r,a){return Qc(),Jc(a),t.flags|=Jn,ym(e,t,n,r),t.child}function Rm(e,t,n,r){Gm(e,t);var a=t.pendingProps,o=n,i=o._payload,l=(0,o._init)(i);t.type=l;var u=t.tag=function(e){if("function"==typeof e)return fb(e)?1:0;if(null!=e){var t=e.$$typeof;if(t===ie)return s;if(t===ue)return d}return 2}(l),c=fd(l,a);switch(u){case 0:return Nm(t,l),t.type=l=Zy(l),km(null,t,l,c,r);case 1:return t.type=l=Jy(l),Tm(null,t,l,c,r);case s:return t.type=l=eb(l),bm(null,t,l,c,r);case d:if(t.type!==t.elementType){var f=l.propTypes;f&&Au(f,c,"prop",Le(l))}return wm(null,t,l,fd(l.type,c),r)}var p="";throw null!==l&&"object"==typeof l&&l.$$typeof===ce&&(p=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+l+". Lazy element type must resolve to a class or function."+p)}function Nm(e,t){if(t&&t.childContextTypes&&o("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),null!==e.ref){var n="",r=Ve();r&&(n+="\n\nCheck the render method of `"+r+"`.");var a=r||"",i=e._debugSource;i&&(a=i.fileName+":"+i.lineNumber),fm[a]||(fm[a]=!0,o("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",n))}if("function"==typeof t.getDerivedStateFromProps){var l=Le(t)||"Unknown";dm[l]||(o("%s: Function components do not support getDerivedStateFromProps.",l),dm[l]=!0)}if("object"==typeof t.contextType&&null!==t.contextType){var s=Le(t)||"Unknown";cm[s]||(o("%s: Function components do not support contextType.",s),cm[s]=!0)}}sm={},um={},cm={},dm={},fm={},pm=!1,hm={},mm={};var Pm={dehydrated:null,treeContext:null,retryLane:0};function Im(e){return{baseLanes:e,cachePool:null,transitions:null}}function Mm(e,t,n){var r=t.pendingProps;Fb(t)&&(t.flags|=Zn);var a=$f.current,i=!1,l=0!=(t.flags&Zn);if(l||function(e,t,n,r){return(null===t||null!==t.memoizedState)&&Wf(e,2)}(a,e)?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a=a|1),Yf(t,a=Bf(a)),null===e){$c(t);var s=t.memoizedState;if(null!==s){var u=s.dehydrated;if(null!==u)return function(e,t,n){0==(1&e.mode)?(o("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=1):du(t)?e.lanes=8:e.lanes=Fa;return null}(t,u)}var c=r.children,d=r.fallback;if(i){var f=function(e,t,n,r){var a,o,i=e.mode,l=e.child,s={mode:"hidden",children:t};0==(1&i)&&null!==l?((a=l).childLanes=0,a.pendingProps=s,2&e.mode&&(a.actualDuration=0,a.actualStartTime=-1,a.selfBaseDuration=0,a.treeBaseDuration=0),o=gb(n,i,r,null)):(a=Am(s,i),o=gb(n,i,r,null));return a.return=e,o.return=e,a.sibling=o,e.child=a,o}(t,c,d,n);return t.child.memoizedState=Im(n),t.memoizedState=Pm,f}return Om(t,c)}var p=e.memoizedState;if(null!==p){var h=p.dehydrated;if(null!==h)return function(e,t,n,r,a,o,i){if(n){if(t.flags&Jn)return t.flags&=-257,Fm(e,t,i,Jh(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering.")));if(null!==t.memoizedState)return t.child=e.child,t.flags|=Zn,null;var l=function(e,t,n,r,a){var o=t.mode,i=Am({mode:"visible",children:n},o),l=gb(r,o,a,null);l.flags|=2,i.return=t,l.return=t,i.sibling=l,t.child=i,0!=(1&t.mode)&&Rf(t,e.child,null,a);return l}(e,t,r.children,r.fallback,i);return t.child.memoizedState=Im(i),t.memoizedState=Pm,l}if(Ic(),0==(1&t.mode))return Fm(e,t,i,null);if(du(a)){var s,u,c,d=function(e){var t,n,r,a=e.nextSibling&&e.nextSibling.dataset;return a&&(t=a.dgst,n=a.msg,r=a.stck),{message:n,digest:t,stack:r}}(a);return s=d.digest,u=d.message,c=d.stack,Fm(e,t,i,Jh(u?new Error(u):new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),s,c))}var f=to(i,e.childLanes);if(gm||f){var p=Jg();if(null!==p){var h=function(e,t){var n;switch(Xa(t)){case 4:n=2;break;case fa:n=8;break;case 64:case 128:case 256:case 512:case ha:case ma:case va:case ga:case ya:case ba:case wa:case Sa:case Ea:case _a:case ka:case Ta:case Ca:case Da:case Ra:case Na:case Pa:n=32;break;case La:n=Aa;break;default:n=0}return 0!=(n&(e.suspendedLanes|t))?0:n}(p,i);if(0!==h&&h!==o.retryLane){o.retryLane=h;var m=Ha;Id(e,h),ry(p,e,h,m)}}return wy(),Fm(e,t,i,Jh(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition.")))}if(cu(a)){t.flags|=Zn,t.child=e.child;var v=Oy.bind(null,e);return y=v,a._reactRetry=y,null}Ac(t,a,o.treeContext);var g=Om(t,r.children);return g.flags|=rr,g;var y}(e,t,l,r,h,p,n)}if(i){var m=r.fallback,v=function(e,t,n,r,a){var o,i,l=t.mode,s=e.child,u=s.sibling,c={mode:"hidden",children:n};if(0==(1&l)&&t.child!==s){(o=t.child).childLanes=0,o.pendingProps=c,2&t.mode&&(o.actualDuration=0,o.actualStartTime=-1,o.selfBaseDuration=s.selfBaseDuration,o.treeBaseDuration=s.treeBaseDuration),t.deletions=null}else(o=Lm(s,c)).subtreeFlags=s.subtreeFlags&yr;null!==u?i=pb(u,r):(i=gb(r,l,a,null)).flags|=2;return i.return=t,o.return=t,o.sibling=i,t.child=o,i}(e,t,r.children,m,n),g=t.child,y=e.child.memoizedState;return g.memoizedState=null===y?Im(n):function(e,t){return{baseLanes:ro(e.baseLanes,t),cachePool:null,transitions:e.transitions}}(y,n),g.childLanes=function(e,t){return ao(e.childLanes,t)}(e,n),t.memoizedState=Pm,v}var b=function(e,t,n,r){var a=e.child,o=a.sibling,i=Lm(a,{mode:"visible",children:n});0==(1&t.mode)&&(i.lanes=r);if(i.return=t,i.sibling=null,null!==o){var l=t.deletions;null===l?(t.deletions=[o],t.flags|=Xn):l.push(o)}return t.child=i,i}(e,t,r.children,n);return t.memoizedState=null,b}function Om(e,t,n){var r=Am({mode:"visible",children:t},e.mode);return r.return=e,e.child=r,r}function Am(e,t,n){return yb(e,t,0,null)}function Lm(e,t){return pb(e,t)}function Fm(e,t,n,r){null!==r&&Jc(r),Rf(t,e.child,null,n);var a=Om(t,t.pendingProps.children);return a.flags|=2,t.memoizedState=null,a}function zm(e,t,n){e.lanes=ro(e.lanes,t);var r=e.alternate;null!==r&&(r.lanes=ro(r.lanes,t)),kd(e.return,t,n)}function Hm(e,t){var n=wt(e),r=!n&&"function"==typeof pe(e);if(n||r){var a=n?"array":"iterable";return o("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",a,t,a),!1}return!0}function Um(e,t,n,r,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function jm(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail,l=r.children;!function(e){if(void 0!==e&&"forwards"!==e&&"backwards"!==e&&"together"!==e&&!hm[e])if(hm[e]=!0,"string"==typeof e)switch(e.toLowerCase()){case"together":case"forwards":case"backwards":o('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break;case"forward":case"backward":o('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break;default:o('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}else o('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}(a),function(e,t){void 0===e||mm[e]||("collapsed"!==e&&"hidden"!==e?(mm[e]=!0,o('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):"forwards"!==t&&"backwards"!==t&&(mm[e]=!0,o('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}(i,a),function(e,t){if(("forwards"===t||"backwards"===t)&&null!=e&&!1!==e)if(wt(e)){for(var n=0;n<e.length;n++)if(!Hm(e[n],n))return}else{var r=pe(e);if("function"==typeof r){var a=r.call(e);if(a)for(var i=a.next(),l=0;!i.done;i=a.next()){if(!Hm(i.value,l))return;l++}}else o('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',t)}}(l,a),ym(e,t,l,n);var s=$f.current;Wf(s,2)?(s=qf(s,2),t.flags|=Zn):(null!==e&&0!=(e.flags&Zn)&&function(e,t,n){for(var r=t;null!==r;){if(r.tag===c)null!==r.memoizedState&&zm(r,n,e);else if(r.tag===m)zm(r,n,e);else if(null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)return;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}(t,t.child,n),s=Bf(s));if(Yf(t,s),0==(1&t.mode))t.memoizedState=null;else switch(a){case"forwards":var u,d=function(e){for(var t=e,n=null;null!==t;){var r=t.alternate;null!==r&&null===Qf(r)&&(n=t),t=t.sibling}return n}(t.child);null===d?(u=t.child,t.child=null):(u=d.sibling,d.sibling=null),Um(t,!1,u,d,i);break;case"backwards":var f=null,p=t.child;for(t.child=null;null!==p;){var h=p.alternate;if(null!==h&&null===Qf(h)){t.child=p;break}var v=p.sibling;p.sibling=f,f=p,p=v}Um(t,!0,f,null,i);break;case"together":Um(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}var Vm=!1;var $m,Wm,Bm,qm=!1;function Ym(){gm=!0}function Gm(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Km(e,t,n){return null!==e&&(t.dependencies=e.dependencies),Bh(),by(t.lanes),to(n,t.childLanes)?(function(e,t){if(null!==e&&t.child!==e.child)throw new Error("Resuming work not yet implemented.");if(null!==t.child){var n=t.child,r=pb(n,n.pendingProps);for(t.child=r,r.return=t;null!==n.sibling;)n=n.sibling,(r=r.sibling=pb(n,n.pendingProps)).return=t;r.sibling=null}}(e,t),t.child):null}function Qm(e,t){return!!to(e.lanes,t)}function Xm(e,t,n){if(t._debugNeedsRemount&&null!==e)return function(e,t,n){var r=t.return;if(null===r)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,t===r.child)r.child=n;else{var a=r.child;if(null===a)throw new Error("Expected parent to have a child.");for(;a.sibling!==t;)if(null===(a=a.sibling))throw new Error("Expected to find the previous sibling.");a.sibling=n}var o=r.deletions;return null===o?(r.deletions=[e],r.flags|=Xn):o.push(e),n.flags|=2,n}(e,t,mb(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(null!==e)if(e.memoizedProps!==t.pendingProps||Qu()||t.type!==e.type)gm=!0;else{if(!Qm(e,n)&&0==(t.flags&Zn))return gm=!1,function(e,t,n){switch(t.tag){case 3:Cm(t),t.stateNode,Qc();break;case 5:jf(t);break;case 1:Xu(t.type)&&nc(t);break;case 4:zf(t,t.stateNode.containerInfo);break;case l:var r=t.memoizedProps.value;Ed(t,t.type._context,r);break;case u:to(n,t.childLanes)&&(t.flags|=4);var a=t.stateNode;a.effectDuration=0,a.passiveEffectDuration=0;break;case c:var o=t.memoizedState;if(null!==o){if(null!==o.dehydrated)return Yf(t,Bf($f.current)),t.flags|=Zn,null;if(to(n,t.child.childLanes))return Mm(e,t,n);Yf(t,Bf($f.current));var i=Km(e,t,n);return null!==i?i.sibling:null}Yf(t,Bf($f.current));break;case m:var s=0!=(e.flags&Zn),d=to(n,t.childLanes);if(s){if(d)return jm(e,t,n);t.flags|=Zn}var f=t.memoizedState;if(null!==f&&(f.rendering=null,f.tail=null,f.lastEffect=null),Yf(t,$f.current),d)break;return null;case g:case y:return t.lanes=0,Em(e,t,n)}return Km(e,t,n)}(e,t,n);gm=0!=(e.flags&sr)}else if(gm=!1,Zc()&&function(e){return xc(),0!=(e.flags&ur)}(t)){var r=t.index;Ec(t,(xc(),hc),r)}switch(t.lanes=0,t.tag){case 2:return function(e,t,n,r){Gm(e,t);var a,i,l,s=t.pendingProps;if(a=Ku(t,Yu(0,n,!1)),xd(t,r),Xr(t),n.prototype&&"function"==typeof n.prototype.render){var u=Le(n)||"Unknown";sm[u]||(o("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",u,u),sm[u]=!0)}if(8&t.mode&&td.recordLegacyContextWarning(t,null),qe(!0),vm.current=t,i=Sp(null,t,n,s,a,r),l=Ep(),qe(!1),Zr(),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){var c=Le(n)||"Unknown";um[c]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",c,c,c),um[c]=!0)}if("object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){var d=Le(n)||"Unknown";um[d]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",d,d,d),um[d]=!0),t.tag=1,t.memoizedState=null,t.updateQueue=null;var f=!1;return Xu(n)?(f=!0,nc(t)):f=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Hd(t),bf(t,i),Ef(t,n,s,r),xm(null,t,n,!0,f,r)}if(t.tag=0,8&t.mode){Yr(!0);try{i=Sp(null,t,n,s,a,r),l=Ep()}finally{Yr(!1)}}return Zc()&&l&&_c(t),ym(null,t,i,r),Nm(t,n),t.child}(e,t,t.type,n);case 16:return Rm(e,t,t.elementType,n);case 0:var a=t.type,i=t.pendingProps;return km(e,t,a,t.elementType===a?i:fd(a,i),n);case 1:var h=t.type,b=t.pendingProps;return Tm(e,t,h,t.elementType===h?b:fd(h,b),n);case 3:return function(e,t,n){if(Cm(t),null===e)throw new Error("Should have a current fiber. This is a bug in React.");var r=t.pendingProps,a=t.memoizedState,o=a.element;Ud(e,t),qd(t,r,null,n);var i=t.memoizedState;t.stateNode;var l=i.element;if(a.isDehydrated){var s={element:l,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions};if(t.updateQueue.baseState=s,t.memoizedState=s,t.flags&Jn)return Dm(e,t,l,n,Zh(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),t));if(l!==o)return Dm(e,t,l,n,Zh(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t));Oc(t);var u=Nf(t,null,l,n);t.child=u;for(var c=u;c;)c.flags=-3&c.flags|rr,c=c.sibling}else{if(Qc(),l===o)return Km(e,t,n);ym(e,t,l,n)}return t.child}(e,t,n);case 5:return function(e,t,n){jf(t),null===e&&$c(t);var r=t.type,a=t.pendingProps,o=null!==e?e.memoizedProps:null,i=a.children;return Zs(r,a)?i=null:null!==o&&Zs(r,o)&&(t.flags|=32),_m(e,t),ym(e,t,i,n),t.child}(e,t,n);case 6:return function(e,t){return null===e&&$c(t),null}(e,t);case c:return Mm(e,t,n);case 4:return function(e,t,n){zf(t,t.stateNode.containerInfo);var r=t.pendingProps;return null===e?t.child=Rf(t,null,r,n):ym(e,t,r,n),t.child}(e,t,n);case s:var w=t.type,S=t.pendingProps;return bm(e,t,w,t.elementType===w?S:fd(w,S),n);case 7:return function(e,t,n){return ym(e,t,t.pendingProps,n),t.child}(e,t,n);case 8:return function(e,t,n){return ym(e,t,t.pendingProps.children,n),t.child}(e,t,n);case u:return function(e,t,n){t.flags|=4;var r=t.stateNode;return r.effectDuration=0,r.passiveEffectDuration=0,ym(e,t,t.pendingProps.children,n),t.child}(e,t,n);case l:return function(e,t,n){var r=t.type._context,a=t.pendingProps,i=t.memoizedProps,l=a.value;"value"in a||Vm||(Vm=!0,o("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var s=t.type.propTypes;if(s&&Au(s,a,"prop","Context.Provider"),Ed(t,r,l),null!==i){var u=i.value;if(fl(u,l)){if(i.children===a.children&&!Qu())return Km(e,t,n)}else Td(t,r,n)}return ym(e,t,a.children,n),t.child}(e,t,n);case 9:return function(e,t,n){var r=t.type;void 0===r._context?r!==r.Consumer&&(qm||(qm=!0,o("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):r=r._context;var a=t.pendingProps.children;"function"!=typeof a&&o("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),xd(t,n);var i,l=Cd(r);return Xr(t),vm.current=t,qe(!0),i=a(l),qe(!1),Zr(),t.flags|=1,ym(e,t,i,n),t.child}(e,t,n);case d:var E=t.type,_=fd(E,t.pendingProps);if(t.type!==t.elementType){var k=E.propTypes;k&&Au(k,_,"prop",Le(E))}return wm(e,t,E,_=fd(E.type,_),n);case f:return Sm(e,t,t.type,t.pendingProps,n);case p:var T=t.type,x=t.pendingProps;return function(e,t,n,r,a){var o;return Gm(e,t),t.tag=1,Xu(n)?(o=!0,nc(t)):o=!1,xd(t,a),wf(t,n,r),Ef(t,n,r,a),xm(null,t,n,!0,o,a)}(e,t,T,t.elementType===T?x:fd(T,x),n);case m:return jm(e,t,n);case v:break;case g:return Em(e,t,n)}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Zm(e){e.flags|=4}function Jm(e){e.flags|=er,e.flags|=cr}function ev(e,t){if(!Zc())switch(e.tailMode){case"hidden":for(var n=e.tail,r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":for(var a=e.tail,o=null;null!==a;)null!==a.alternate&&(o=a),a=a.sibling;null===o?t||null===e.tail?e.tail=null:e.tail.sibling=null:o.sibling=null}}function tv(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t){if(0!=(2&e.mode)){for(var a=e.selfBaseDuration,o=e.child;null!==o;)n=ro(n,ro(o.lanes,o.childLanes)),r|=o.subtreeFlags&yr,r|=o.flags&yr,a+=o.treeBaseDuration,o=o.sibling;e.treeBaseDuration=a}else for(var i=e.child;null!==i;)n=ro(n,ro(i.lanes,i.childLanes)),r|=i.subtreeFlags&yr,r|=i.flags&yr,i.return=e,i=i.sibling;e.subtreeFlags|=r}else{if(0!=(2&e.mode)){for(var l=e.actualDuration,s=e.selfBaseDuration,u=e.child;null!==u;)n=ro(n,ro(u.lanes,u.childLanes)),r|=u.subtreeFlags,r|=u.flags,l+=u.actualDuration,s+=u.treeBaseDuration,u=u.sibling;e.actualDuration=l,e.treeBaseDuration=s}else for(var c=e.child;null!==c;)n=ro(n,ro(c.lanes,c.childLanes)),r|=c.subtreeFlags,r|=c.flags,c.return=e,c=c.sibling;e.subtreeFlags|=r}return e.childLanes=n,t}function nv(e,t,n){if(Rc&&null!==Dc&&0!=(1&t.mode)&&0==(t.flags&Zn))return Kc(t),Qc(),t.flags|=98560,!1;var r=Gc(t);if(null!==n&&null!==n.dehydrated){if(null===e){if(!r)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(Bc(t),tv(t),0!=(2&t.mode))if(null!==n){var a=t.child;null!==a&&(t.treeBaseDuration-=a.treeBaseDuration)}return!1}if(Qc(),0==(t.flags&Zn)&&(t.memoizedState=null),t.flags|=4,tv(t),0!=(2&t.mode)&&null!==n){var o=t.child;null!==o&&(t.treeBaseDuration-=o.treeBaseDuration)}return!1}return Xc(),!0}function rv(e,t,n){var r=t.pendingProps;switch(Tc(t),t.tag){case 2:case 16:case f:case 0:case s:case 7:case 8:case u:case 9:case d:return tv(t),null;case 1:return Xu(t.type)&&Zu(t),tv(t),null;case 3:var a=t.stateNode;if(Hf(t),Ju(t),Zf(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),null===e||null===e.child)if(Gc(t))Zm(t);else if(null!==e)e.memoizedState.isDehydrated&&0==(t.flags&Jn)||(t.flags|=tr,Xc());return tv(t),null;case 5:Vf(t);var o=Ff(),i=t.type;if(null!==e&&null!=t.stateNode)Wm(e,t,i,r),e.ref!==t.ref&&Jm(t);else{if(!r){if(null===t.stateNode)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return tv(t),null}var h=Uf();if(Gc(t))(function(e,t,n){var r=e.stateNode,a=!Nc,o=hu(r,e.type,e.memoizedProps,0,n,e,a);return e.updateQueue=o,null!==o})(t,0,h)&&Zm(t);else{var b=Xs(i,r,o,h,t);$m(b,t),t.stateNode=b,function(e,t,n,r,a){switch(Rs(e,t,n),t){case"button":case"input":case"select":case"textarea":return!!n.autoFocus;case"img":return!0;default:return!1}}(b,i,r)&&Zm(t)}null!==t.ref&&Jm(t)}return tv(t),null;case 6:var w=r;if(e&&null!=t.stateNode){var S=e.memoizedProps;Bm(0,t,S,w)}else{if("string"!=typeof w&&null===t.stateNode)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var E=Ff(),_=Uf();Gc(t)?Wc(t)&&Zm(t):t.stateNode=Js(w,E,_,t)}return tv(t),null;case c:Gf(t);var k=t.memoizedState;if(null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated)if(!nv(e,t,k))return t.flags&lr?t:null;if(0!=(t.flags&Zn))return t.lanes=n,0!=(2&t.mode)&&Xh(t),t;var T=null!==k;if(T!==(null!==e&&null!==e.memoizedState))if(T)if(t.child.flags|=ar,0!=(1&t.mode))null===e&&(!0!==t.memoizedProps.unstable_avoidThisFallback||!0)||Wf($f.current,1)?0===kg&&(kg=3):wy();if(null!==t.updateQueue&&(t.flags|=4),tv(t),0!=(2&t.mode)&&T){var x=t.child;null!==x&&(t.treeBaseDuration-=x.treeBaseDuration)}return null;case 4:return Hf(t),null===e&&es(t.stateNode.containerInfo),tv(t),null;case l:return _d(t.type._context,t),tv(t),null;case p:return Xu(t.type)&&Zu(t),tv(t),null;case m:Gf(t);var C=t.memoizedState;if(null===C)return tv(t),null;var D=0!=(t.flags&Zn),R=C.rendering;if(null===R)if(D)ev(C,!1);else{if(!(0===kg&&(null===e||0==(e.flags&Zn))))for(var N=t.child;null!==N;){var P=Qf(N);if(null!==P){D=!0,t.flags|=Zn,ev(C,!1);var I=P.updateQueue;return null!==I&&(t.updateQueue=I,t.flags|=4),t.subtreeFlags=0,Pf(t,n),Yf(t,qf($f.current,2)),t.child}N=N.sibling}null!==C.tail&&Mr()>Ag()&&(t.flags|=Zn,D=!0,ev(C,!1),t.lanes=Ia)}else{if(!D){var M=Qf(R);if(null!==M){t.flags|=Zn,D=!0;var O=M.updateQueue;if(null!==O&&(t.updateQueue=O,t.flags|=4),ev(C,!0),null===C.tail&&"hidden"===C.tailMode&&!R.alternate&&!Zc())return tv(t),null}else 2*Mr()-C.renderingStartTime>Ag()&&n!==Fa&&(t.flags|=Zn,D=!0,ev(C,!1),t.lanes=Ia)}if(C.isBackwards)R.sibling=t.child,t.child=R;else{var A=C.last;null!==A?A.sibling=R:t.child=R,C.last=R}}if(null!==C.tail){var L=C.tail;C.rendering=L,C.tail=L.sibling,C.renderingStartTime=Mr(),L.sibling=null;var F=$f.current;return Yf(t,F=D?qf(F,2):Bf(F)),L}return tv(t),null;case v:break;case g:case y:hy(t);var z=null!==t.memoizedState;if(null!==e)null!==e.memoizedState!==z&&(t.flags|=ar);return z&&0!=(1&t.mode)?to(Eg,Fa)&&(tv(t),6&t.subtreeFlags&&(t.flags|=ar)):tv(t),null;case 24:case 25:return null}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function av(e,t,n){switch(Tc(t),t.tag){case 1:Xu(t.type)&&Zu(t);var r=t.flags;return r&lr?(t.flags=-65537&r|Zn,0!=(2&t.mode)&&Xh(t),t):null;case 3:t.stateNode,Hf(t),Ju(t),Zf();var a=t.flags;return 0!=(a&lr)&&0==(a&Zn)?(t.flags=-65537&a|Zn,t):null;case 5:return Vf(t),null;case c:Gf(t);var o=t.memoizedState;if(null!==o&&null!==o.dehydrated){if(null===t.alternate)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Qc()}var i=t.flags;return i&lr?(t.flags=-65537&i|Zn,0!=(2&t.mode)&&Xh(t),t):null;case m:return Gf(t),null;case 4:return Hf(t),null;case l:return _d(t.type._context,t),null;case g:case y:return hy(t),null;default:return null}}function ov(e,t,n){switch(Tc(t),t.tag){case 1:var r=t.type.childContextTypes;null!=r&&Zu(t);break;case 3:t.stateNode,Hf(t),Ju(t),Zf();break;case 5:Vf(t);break;case 4:Hf(t);break;case c:case m:Gf(t);break;case l:_d(t.type._context,t);break;case g:case y:hy(t)}}$m=function(e,t,n,r){for(var a,o,i=t.child;null!==i;){if(5===i.tag||6===i.tag)a=e,o=i.stateNode,a.appendChild(o);else if(4===i.tag);else if(null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)return;for(;null===i.sibling;){if(null===i.return||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},Wm=function(e,t,n,r,a){var o=e.memoizedProps;if(o!==r){var i=function(e,t,n,r,a,o){var i=o;if(typeof r.children!=typeof n.children&&("string"==typeof r.children||"number"==typeof r.children)){var l=""+r.children,s=Fs(i.ancestorInfo,t);Ls(null,l,s)}return Ns(e,t,n,r)}(t.stateNode,n,o,r,0,Uf());t.updateQueue=i,i&&Zm(t)}},Bm=function(e,t,n,r){n!==r&&Zm(t)};var iv;iv=new Set;var lv=!1,sv=!1,uv="function"==typeof WeakSet?WeakSet:Set,cv=null,dv=null,fv=null;function pv(e,t){try{_v(4,e)}catch(n){Py(e,t,n)}}function hv(e,t,n){try{!function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,2&e.mode)try{Kh(),t.componentWillUnmount()}finally{Yh(e)}else t.componentWillUnmount()}(e,n)}catch(n){Py(e,t,n)}}function mv(e,t){try{Cv(e)}catch(n){Py(e,t,n)}}function vv(e,t){var n=e.ref;if(null!==n)if("function"==typeof n){var r;try{if(2&e.mode)try{Kh(),r=n(null)}finally{Yh(e)}else r=n(null)}catch(n){Py(e,t,n)}"function"==typeof r&&o("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",ze(e))}else n.current=null}function gv(e,t,n){try{n()}catch(n){Py(e,t,n)}}var yv=!1;function bv(e,t){Qs(e.containerInfo),cv=t,function(){for(;null!==cv;){var e=cv,t=e.child;0!=(e.subtreeFlags&hr)&&null!==t?(t.return=e,cv=t):wv()}}();var n=yv;return yv=!1,n}function wv(){for(;null!==cv;){var e=cv;Be(e);try{Sv(e)}catch(t){Py(e,e.return,t)}We();var t=e.sibling;if(null!==t)return t.return=e.return,void(cv=t);cv=e.return}}function Sv(e){var t,n=e.alternate;if(0!=(e.flags&tr)){switch(Be(e),e.tag){case 0:case s:case f:break;case 1:if(null!==n){var r=n.memoizedProps,a=n.memoizedState,i=e.stateNode;e.type!==e.elementType||pm||(i.props!==e.memoizedProps&&o("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ze(e)||"instance"),i.state!==e.memoizedState&&o("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ze(e)||"instance"));var l=i.getSnapshotBeforeUpdate(e.elementType===e.type?r:fd(e.type,r),a),u=iv;void 0!==l||u.has(e.type)||(u.add(e.type),o("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",ze(e))),i.__reactInternalSnapshotBeforeUpdate=l}break;case 3:var c=e.stateNode;1===(t=c.containerInfo).nodeType?t.textContent="":9===t.nodeType&&t.documentElement&&t.removeChild(t.documentElement);break;case 5:case 6:case 4:case p:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}We()}}function Ev(e,t,n){var r,a=t.updateQueue,o=null!==a?a.lastEffect:null;if(null!==o){var i=o.next,l=i;do{if((l.tag&e)===e){var s=l.destroy;l.destroy=void 0,void 0!==s&&(0!=(8&e)?(r=t,null!==Wr&&"function"==typeof Wr.markComponentPassiveEffectUnmountStarted&&Wr.markComponentPassiveEffectUnmountStarted(r)):0!=(4&e)&&ea(t),0!=(2&e)&&Gy(!0),gv(t,n,s),0!=(2&e)&&Gy(!1),0!=(8&e)?null!==Wr&&"function"==typeof Wr.markComponentPassiveEffectUnmountStopped&&Wr.markComponentPassiveEffectUnmountStopped():0!=(4&e)&&ta())}l=l.next}while(l!==i)}}function _v(e,t){var n,r=t.updateQueue,a=null!==r?r.lastEffect:null;if(null!==a){var i=a.next,l=i;do{if((l.tag&e)===e){0!=(8&e)?(n=t,null!==Wr&&"function"==typeof Wr.markComponentPassiveEffectMountStarted&&Wr.markComponentPassiveEffectMountStarted(n)):0!=(4&e)&&Jr(t);var s=l.create;0!=(2&e)&&Gy(!0),l.destroy=s(),0!=(2&e)&&Gy(!1),0!=(8&e)?null!==Wr&&"function"==typeof Wr.markComponentPassiveEffectMountStopped&&Wr.markComponentPassiveEffectMountStopped():0!=(4&e)&&null!==Wr&&"function"==typeof Wr.markComponentLayoutEffectMountStopped&&Wr.markComponentLayoutEffectMountStopped();var u=l.destroy;if(void 0!==u&&"function"!=typeof u){var c=void 0;o("%s must not return anything besides a function, which is used for clean-up.%s",c=0!=(4&l.tag)?"useLayoutEffect":0!=(2&l.tag)?"useInsertionEffect":"useEffect",null===u?" You returned null. If your effect does not require clean up, return undefined (or nothing).":"function"==typeof u.then?"\n\nIt looks like you wrote "+c+"(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:\n\n"+c+"(() => {\n async function fetchData() {\n // You can await here\n const response = await MyAPI.getData(someId);\n // ...\n }\n fetchData();\n}, [someId]); // Or [] if effect doesn't need props or state\n\nLearn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching":" You returned: "+u)}}l=l.next}while(l!==i)}}function kv(e,t){if(0!=(4&t.flags)&&t.tag===u){var n=t.stateNode.passiveEffectDuration,r=t.memoizedProps,a=r.id,o=r.onPostCommit,i=Vh(),l=null===t.alternate?"mount":"update";jh()&&(l="nested-update"),"function"==typeof o&&o(a,l,n,i);var s=t.return;e:for(;null!==s;){switch(s.tag){case 3:s.stateNode.passiveEffectDuration+=n;break e;case u:s.stateNode.passiveEffectDuration+=n;break e}s=s.return}}}function Tv(e,t,n,r){if(0!=(n.flags&vr))switch(n.tag){case 0:case s:case f:if(!sv)if(2&n.mode)try{Kh(),_v(5,n)}finally{Yh(n)}else _v(5,n);break;case 1:var a=n.stateNode;if(4&n.flags&&!sv)if(null===t)if(n.type!==n.elementType||pm||(a.props!==n.memoizedProps&&o("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ze(n)||"instance"),a.state!==n.memoizedState&&o("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ze(n)||"instance")),2&n.mode)try{Kh(),a.componentDidMount()}finally{Yh(n)}else a.componentDidMount();else{var i=n.elementType===n.type?t.memoizedProps:fd(n.type,t.memoizedProps),l=t.memoizedState;if(n.type!==n.elementType||pm||(a.props!==n.memoizedProps&&o("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ze(n)||"instance"),a.state!==n.memoizedState&&o("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ze(n)||"instance")),2&n.mode)try{Kh(),a.componentDidUpdate(i,l,a.__reactInternalSnapshotBeforeUpdate)}finally{Yh(n)}else a.componentDidUpdate(i,l,a.__reactInternalSnapshotBeforeUpdate)}var d=n.updateQueue;null!==d&&(n.type!==n.elementType||pm||(a.props!==n.memoizedProps&&o("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ze(n)||"instance"),a.state!==n.memoizedState&&o("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ze(n)||"instance")),Qd(0,d,a));break;case 3:var h=n.updateQueue;if(null!==h){var b=null;if(null!==n.child)switch(n.child.tag){case 5:case 1:b=n.child.stateNode}Qd(0,h,b)}break;case 5:var w=n.stateNode;if(null===t&&4&n.flags)!function(e,t,n,r){switch(t){case"button":case"input":case"select":case"textarea":return void(n.autoFocus&&e.focus());case"img":n.src&&(e.src=n.src)}}(w,n.type,n.memoizedProps);break;case 6:case 4:break;case u:var S=n.memoizedProps,E=S.onCommit,_=S.onRender,k=n.stateNode.effectDuration,T=Vh(),x=null===t?"mount":"update";jh()&&(x="nested-update"),"function"==typeof _&&_(n.memoizedProps.id,x,n.actualDuration,n.treeBaseDuration,n.actualStartTime,T),"function"==typeof E&&E(n.memoizedProps.id,x,k,T),D=n,Vg.push(D),Hg||(Hg=!0,By(Fr,(function(){return Cy(),null})));var C=n.return;e:for(;null!==C;){switch(C.tag){case 3:C.stateNode.effectDuration+=k;break e;case u:C.stateNode.effectDuration+=k;break e}C=C.return}break;case c:!function(e,t){if(null===t.memoizedState){var n=t.alternate;if(null!==n){var r=n.memoizedState;if(null!==r){var a=r.dehydrated;null!==a&&function(e){Bo(e)}(a)}}}}(0,n);break;case m:case p:case v:case g:case y:case 25:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}var D;sv||n.flags&er&&Cv(n)}function xv(e){switch(e.tag){case 0:case s:case f:if(2&e.mode)try{Kh(),pv(e,e.return)}finally{Yh(e)}else pv(e,e.return);break;case 1:var t=e.stateNode;"function"==typeof t.componentDidMount&&function(e,t,n){try{n.componentDidMount()}catch(n){Py(e,t,n)}}(e,e.return,t),mv(e,e.return);break;case 5:mv(e,e.return)}}function Cv(e){var t=e.ref;if(null!==t){var n,r=e.stateNode;if(e.tag,n=r,"function"==typeof t){var a;if(2&e.mode)try{Kh(),a=t(n)}finally{Yh(e)}else a=t(n);"function"==typeof a&&o("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",ze(e))}else t.hasOwnProperty("current")||o("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",ze(e)),t.current=n}}function Dv(e){var t,n=e.alternate;if(null!==n&&(e.alternate=null,Dv(n)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag){var r=e.stateNode;null!==r&&(delete(t=r)[gu],delete t[yu],delete t[wu],delete t[Su],delete t[Eu])}e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Rv(e){return 5===e.tag||3===e.tag||4===e.tag}function Nv(e){var t=e;e:for(;;){for(;null===t.sibling;){if(null===t.return||Rv(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;5!==t.tag&&6!==t.tag&&t.tag!==h;){if(2&t.flags)continue e;if(null===t.child||4===t.tag)continue e;t.child.return=t,t=t.child}if(!(2&t.flags))return t.stateNode}}function Pv(e){var t=function(e){for(var t=e.return;null!==t;){if(Rv(t))return t;t=t.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}(e);switch(t.tag){case 5:var n=t.stateNode;32&t.flags&&(ou(n),t.flags&=-33),Mv(e,Nv(e),n);break;case 3:case 4:var r=t.stateNode.containerInfo;Iv(e,Nv(e),r);break;default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Iv(e,t,n){var r=e.tag;if(5===r||6===r){var a=e.stateNode;t?function(e,t,n){8===e.nodeType?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)}(n,a,t):function(e,t){var n;8===e.nodeType?(n=e.parentNode).insertBefore(t,e):(n=e).appendChild(t),null==e._reactRootContainer&&null===n.onclick&&Ds(n)}(n,a)}else if(4===r);else{var o=e.child;if(null!==o){Iv(o,t,n);for(var i=o.sibling;null!==i;)Iv(i,t,n),i=i.sibling}}}function Mv(e,t,n){var r=e.tag;if(5===r||6===r){var a=e.stateNode;t?function(e,t,n){e.insertBefore(t,n)}(n,a,t):function(e,t){e.appendChild(t)}(n,a)}else if(4===r);else{var o=e.child;if(null!==o){Mv(o,t,n);for(var i=o.sibling;null!==i;)Mv(i,t,n),i=i.sibling}}}var Ov=null,Av=!1;function Lv(e,t,n){var r,a,o=t;e:for(;null!==o;){switch(o.tag){case 5:Ov=o.stateNode,Av=!1;break e;case 3:case 4:Ov=o.stateNode.containerInfo,Av=!0;break e}o=o.return}if(null===Ov)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");zv(e,t,n),Ov=null,Av=!1,null!==(a=(r=n).alternate)&&(a.return=null),r.return=null}function Fv(e,t,n){for(var r=n.child;null!==r;)zv(e,t,r),r=r.sibling}function zv(e,t,n){switch(function(e){if($r&&"function"==typeof $r.onCommitFiberUnmount)try{$r.onCommitFiberUnmount(Vr,e)}catch(e){Br||(Br=!0,o("React instrumentation encountered an error: %s",e))}}(n),n.tag){case 5:sv||vv(n,t);case 6:var r=Ov,a=Av;return Ov=null,Fv(e,t,n),Av=a,void(null!==(Ov=r)&&(Av?(_=Ov,k=n.stateNode,8===_.nodeType?_.parentNode.removeChild(k):_.removeChild(k)):function(e,t){e.removeChild(t)}(Ov,n.stateNode)));case h:return void(null!==Ov&&(Av?function(e,t){8===e.nodeType?iu(e.parentNode,t):1===e.nodeType&&iu(e,t),Bo(e)}(Ov,n.stateNode):iu(Ov,n.stateNode)));case 4:var i=Ov,l=Av;return Ov=n.stateNode.containerInfo,Av=!0,Fv(e,t,n),Ov=i,void(Av=l);case 0:case s:case d:case f:if(!sv){var u=n.updateQueue;if(null!==u){var c=u.lastEffect;if(null!==c){var p=c.next,m=p;do{var y=m,b=y.destroy,w=y.tag;void 0!==b&&(0!=(2&w)?gv(n,t,b):0!=(4&w)&&(ea(n),2&n.mode?(Kh(),gv(n,t,b),Yh(n)):gv(n,t,b),ta())),m=m.next}while(m!==p)}}}return void Fv(e,t,n);case 1:if(!sv){vv(n,t);var S=n.stateNode;"function"==typeof S.componentWillUnmount&&hv(n,t,S)}return void Fv(e,t,n);case v:return void Fv(e,t,n);case g:if(1&n.mode){var E=sv;sv=E||null!==n.memoizedState,Fv(e,t,n),sv=E}else Fv(e,t,n);break;default:return void Fv(e,t,n)}var _,k}function Hv(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new uv),t.forEach((function(t){var r=Ay.bind(null,e,t);if(!n.has(t)){if(n.add(t),qr){if(null===dv||null===fv)throw Error("Expected finished root and lanes to be set. This is a bug in React.");$y(fv,dv)}t.then(r,r)}}))}}function Uv(e,t,n){var r=t.deletions;if(null!==r)for(var a=0;a<r.length;a++){var o=r[a];try{Lv(e,t,o)}catch(e){Py(o,t,e)}}var i=Ue;if(t.subtreeFlags&mr)for(var l=t.child;null!==l;)Be(l),jv(l,e),l=l.sibling;Be(i)}function jv(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case s:case d:case f:if(Uv(t,e),Vv(e),4&a){try{Ev(3,e,e.return),_v(3,e)}catch(t){Py(e,e.return,t)}if(2&e.mode){try{Kh(),Ev(5,e,e.return)}catch(t){Py(e,e.return,t)}Yh(e)}else try{Ev(5,e,e.return)}catch(t){Py(e,e.return,t)}}return;case 1:return Uv(t,e),Vv(e),void(a&er&&null!==r&&vv(r,r.return));case 5:if(Uv(t,e),Vv(e),a&er&&null!==r&&vv(r,r.return),32&e.flags){var o=e.stateNode;try{ou(o)}catch(t){Py(e,e.return,t)}}if(4&a){var i=e.stateNode;if(null!=i){var l=e.memoizedProps,u=null!==r?r.memoizedProps:l,p=e.type,h=e.updateQueue;if(e.updateQueue=null,null!==h)try{!function(e,t,n,r,a,o){Ps(e,t,n,r,a),Pu(e,a)}(i,h,p,u,l)}catch(t){Py(e,e.return,t)}}}return;case 6:if(Uv(t,e),Vv(e),4&a){if(null===e.stateNode)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var b=e.stateNode,w=e.memoizedProps;null!==r&&r.memoizedProps;try{!function(e,t,n){e.nodeValue=n}(b,0,w)}catch(t){Py(e,e.return,t)}}return;case 3:if(Uv(t,e),Vv(e),4&a)if(null!==r)if(r.memoizedState.isDehydrated)try{Bo(t.containerInfo)}catch(t){Py(e,e.return,t)}return;case 4:return Uv(t,e),void Vv(e);case c:Uv(t,e),Vv(e);var S=e.child;if(S.flags&ar){var E=S.stateNode,_=null!==S.memoizedState;if(E.isHidden=_,_)null!==S.alternate&&null!==S.alternate.memoizedState||(Pg=Mr())}if(4&a){try{!function(e){e.memoizedState}(e)}catch(t){Py(e,e.return,t)}Hv(e)}return;case g:var k=null!==r&&null!==r.memoizedState;if(1&e.mode){var T=sv;sv=T||k,Uv(t,e),sv=T}else Uv(t,e);if(Vv(e),a&ar){var x=e.stateNode,C=null!==e.memoizedState,D=e;if(x.isHidden=C,C&&!k&&0!=(1&D.mode)){cv=D;for(var R=D.child;null!==R;)cv=R,qv(R),R=R.sibling}!function(e,t){for(var n=null,r=e;;){if(5===r.tag){if(null===n){n=r;try{var a=r.stateNode;t?lu(a):su(r.stateNode,r.memoizedProps)}catch(t){Py(e,e.return,t)}}}else if(6===r.tag){if(null===n)try{var o=r.stateNode;t?o.nodeValue="":uu(o,r.memoizedProps)}catch(t){Py(e,e.return,t)}}else if((r.tag!==g&&r.tag!==y||null===r.memoizedState||r===e)&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)return;for(;null===r.sibling;){if(null===r.return||r.return===e)return;n===r&&(n=null),r=r.return}n===r&&(n=null),r.sibling.return=r.return,r=r.sibling}}(D,C)}return;case m:return Uv(t,e),Vv(e),void(4&a&&Hv(e));case v:return;default:return Uv(t,e),void Vv(e)}}function Vv(e){var t=e.flags;if(2&t){try{Pv(e)}catch(t){Py(e,e.return,t)}e.flags&=-3}t&rr&&(e.flags&=-4097)}function $v(e,t,n){dv=n,fv=t,cv=e,Wv(e,t,n),dv=null,fv=null}function Wv(e,t,n){for(var r=0!=(1&e.mode);null!==cv;){var a=cv,o=a.child;if(a.tag===g&&r){var i=null!==a.memoizedState||lv;if(i){Bv(e,t,n);continue}var l=a.alternate,s=null!==l&&null!==l.memoizedState,u=lv,c=sv;lv=i,(sv=s||sv)&&!c&&(cv=a,Gv(a));for(var d=o;null!==d;)cv=d,Wv(d,t,n),d=d.sibling;cv=a,lv=u,sv=c,Bv(e,t,n)}else 0!=(a.subtreeFlags&vr)&&null!==o?(o.return=a,cv=o):Bv(e,t,n)}}function Bv(e,t,n){for(;null!==cv;){var r=cv;if(0!=(r.flags&vr)){var a=r.alternate;Be(r);try{Tv(0,a,r)}catch(e){Py(r,r.return,e)}We()}if(r===e)return void(cv=null);var o=r.sibling;if(null!==o)return o.return=r.return,void(cv=o);cv=r.return}}function qv(e){for(;null!==cv;){var t=cv,n=t.child;switch(t.tag){case 0:case s:case d:case f:if(2&t.mode)try{Kh(),Ev(4,t,t.return)}finally{Yh(t)}else Ev(4,t,t.return);break;case 1:vv(t,t.return);var r=t.stateNode;"function"==typeof r.componentWillUnmount&&hv(t,t.return,r);break;case 5:vv(t,t.return);break;case g:if(null!==t.memoizedState){Yv(e);continue}}null!==n?(n.return=t,cv=n):Yv(e)}}function Yv(e){for(;null!==cv;){var t=cv;if(t===e)return void(cv=null);var n=t.sibling;if(null!==n)return n.return=t.return,void(cv=n);cv=t.return}}function Gv(e){for(;null!==cv;){var t=cv,n=t.child;if(t.tag===g)if(null!==t.memoizedState){Kv(e);continue}null!==n?(n.return=t,cv=n):Kv(e)}}function Kv(e){for(;null!==cv;){var t=cv;Be(t);try{xv(t)}catch(e){Py(t,t.return,e)}if(We(),t===e)return void(cv=null);var n=t.sibling;if(null!==n)return n.return=t.return,void(cv=n);cv=t.return}}function Qv(e,t,n,r){cv=t,function(e,t,n,r){for(;null!==cv;){var a=cv,o=a.child;0!=(a.subtreeFlags&gr)&&null!==o?(o.return=a,cv=o):Xv(e,t,n,r)}}(t,e,n,r)}function Xv(e,t,n,r){for(;null!==cv;){var a=cv;if(0!=(a.flags&nr)){Be(a);try{Zv(t,a,n,r)}catch(e){Py(a,a.return,e)}We()}if(a===e)return void(cv=null);var o=a.sibling;if(null!==o)return o.return=a.return,void(cv=o);cv=a.return}}function Zv(e,t,n,r){switch(t.tag){case 0:case s:case f:if(2&t.mode){Qh();try{_v(9,t)}finally{Gh(t)}}else _v(9,t)}}function Jv(e){cv=e,function(){for(;null!==cv;){var e=cv,t=e.child;if(0!=(cv.flags&Xn)){var n=e.deletions;if(null!==n){for(var r=0;r<n.length;r++){var a=n[r];cv=a,ng(a,e)}var o=e.alternate;if(null!==o){var i=o.child;if(null!==i){o.child=null;do{var l=i.sibling;i.sibling=null,i=l}while(null!==i)}}cv=e}}0!=(e.subtreeFlags&gr)&&null!==t?(t.return=e,cv=t):eg()}}()}function eg(){for(;null!==cv;){var e=cv;0!=(e.flags&nr)&&(Be(e),tg(e),We());var t=e.sibling;if(null!==t)return t.return=e.return,void(cv=t);cv=e.return}}function tg(e){switch(e.tag){case 0:case s:case f:2&e.mode?(Qh(),Ev(9,e,e.return),Gh(e)):Ev(9,e,e.return)}}function ng(e,t){for(;null!==cv;){var n=cv;Be(n),ag(n,t),We();var r=n.child;null!==r?(r.return=n,cv=r):rg(e)}}function rg(e){for(;null!==cv;){var t=cv,n=t.sibling,r=t.return;if(Dv(t),t===e)return void(cv=null);if(null!==n)return n.return=r,void(cv=n);cv=r}}function ag(e,t){switch(e.tag){case 0:case s:case f:2&e.mode?(Qh(),Ev(8,e,t),Gh(e)):Ev(8,e,t)}}function og(e){switch(e.tag){case 0:case s:case f:try{_v(5,e)}catch(t){Py(e,e.return,t)}break;case 1:var t=e.stateNode;try{t.componentDidMount()}catch(t){Py(e,e.return,t)}}}function ig(e){switch(e.tag){case 0:case s:case f:try{_v(9,e)}catch(t){Py(e,e.return,t)}}}function lg(e){switch(e.tag){case 0:case s:case f:try{Ev(5,e,e.return)}catch(t){Py(e,e.return,t)}break;case 1:var t=e.stateNode;"function"==typeof t.componentWillUnmount&&hv(e,e.return,t)}}function sg(e){switch(e.tag){case 0:case s:case f:try{Ev(9,e,e.return)}catch(t){Py(e,e.return,t)}}}if("function"==typeof Symbol&&Symbol.for){var ug=Symbol.for;ug("selector.component"),ug("selector.has_pseudo_class"),ug("selector.role"),ug("selector.test_id"),ug("selector.text")}var cg=[];var dg=n.ReactCurrentActQueue;function fg(){var e="undefined"!=typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:void 0;return e||null===dg.current||o("The current testing environment is not configured to support act(...)"),e}var pg=Math.ceil,hg=n.ReactCurrentDispatcher,mg=n.ReactCurrentOwner,vg=n.ReactCurrentBatchConfig,gg=n.ReactCurrentActQueue,yg=0,bg=null,wg=null,Sg=0,Eg=0,_g=Uu(0),kg=0,Tg=null,xg=0,Cg=0,Dg=0,Rg=null,Ng=null,Pg=0,Ig=1/0,Mg=null;function Og(){Ig=Mr()+500}function Ag(){return Ig}var Lg=!1,Fg=null,zg=null,Hg=!1,Ug=null,jg=0,Vg=[],$g=null,Wg=0,Bg=null,qg=!1,Yg=!1,Gg=0,Kg=null,Qg=Ha,Xg=0,Zg=!1;function Jg(){return bg}function ey(){return 0!=(6&yg)?Mr():Qg!==Ha?Qg:Qg=Mr()}function ty(e){if(0==(1&e.mode))return 1;if(0!=(2&yg)&&0!==Sg)return Za(Sg);if(null!==ed.transition){if(null!==vg.transition){var t=vg.transition;t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e)}return 0===Xg&&(Xg=Qa()),Xg}var n,r=_o();return 0!==r?r:void 0===(n=window.event)?wo:ei(n.type)}function ny(e){var t;return 0==(1&e.mode)?1:(t=ja,0==((ja<<=1)&xa)&&(ja=Ca),t)}function ry(e,t,n,r){!function(){if(Wg>50)throw Wg=0,Bg=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Gg>50&&(Gg=0,Kg=null,o("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}(),Zg&&o("useInsertionEffect must not schedule updates."),qg&&(Yg=!0),lo(e,n,r),0!=(2&yg)&&e===bg?function(e){if(je&&!mh)switch(e.tag){case 0:case s:case f:var t=wg&&ze(wg)||"Unknown",n=t;if(!jy.has(n))jy.add(n),o("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",ze(e)||"Unknown",t,t);break;case 1:Vy||(o("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Vy=!0)}}(t):(qr&&co(e,t,n),function(e){if(1&e.mode){if(!fg())return}else{if(t="undefined"!=typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:void 0,"undefined"==typeof jest||!1===t)return;if(0!==yg)return;if(0!==e.tag&&e.tag!==s&&e.tag!==f)return}var t;if(null===gg.current){var n=Ue;try{Be(e),o("An update to %s inside a test was not wrapped in act(...).\n\nWhen testing, code that causes React state updates should be wrapped into act(...):\n\nact(() => {\n /* fire events that update state */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act",ze(e))}finally{n?Be(e):We()}}}(t),e===bg&&(0==(2&yg)&&(Cg=ro(Cg,n)),4===kg&&sy(e,Sg)),ay(e,r),1!==n||0!==yg||0!=(1&t.mode)||gg.isBatchingLegacy||(Og(),uc()))}function ay(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.pendingLanes,r=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,i=n;i>0;){var l=Ja(i),s=1<<l,u=o[l];u===Ha?0!=(s&r)&&0==(s&a)||(o[l]=Wa(s,t)):u<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=$a(e,e===bg?Sg:0);if(0===r)return null!==n&&qy(n),e.callbackNode=null,void(e.callbackPriority=0);var a=Xa(r),i=e.callbackPriority;if(i!==a||null!==gg.current&&n!==Wy){var l,s;if(null!=n&&qy(n),1===a)0===e.tag?(null!==gg.isBatchingLegacy&&(gg.didScheduleLegacyUpdate=!0),s=uy.bind(null,e),ic=!0,sc(s)):sc(uy.bind(null,e)),null!==gg.current?gg.current.push(cc):ru((function(){0==(6&yg)&&cc()})),l=null;else{var u;switch(xo(r)){case yo:u=Ar;break;case bo:u=Lr;break;case wo:u=Fr;break;case So:u=Hr;break;default:u=Fr}l=By(u,oy.bind(null,e))}e.callbackPriority=a,e.callbackNode=l}else null==n&&1!==i&&o("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.")}function oy(e,t){if(Hh=!1,Uh=!1,Qg=Ha,Xg=0,0!=(6&yg))throw new Error("Should not already be working.");var n=e.callbackNode;if(Cy()&&e.callbackNode!==n)return null;var r=$a(e,e===bg?Sg:0);if(0===r)return null;var a=!Ga(0,r)&&!function(e,t){return 0!=(t&e.expiredLanes)}(e,r)&&!t,o=a?function(e,t){var n=yg;yg|=2;var r=gy();if(bg!==e||Sg!==t){if(qr){var a=e.memoizedUpdaters;a.size>0&&($y(e,Sg),a.clear()),fo(e,t)}Mg=null,Og(),my(e,t)}aa(t);for(;;)try{_y();break}catch(t){vy(e,t)}return bd(),yy(r),yg=n,null!==wg?(null!==Wr&&"function"==typeof Wr.markRenderYielded&&Wr.markRenderYielded(),0):(oa(),bg=null,Sg=0,kg)}(e,r):Sy(e,r);if(0!==o){if(2===o){var i=Ba(e);0!==i&&(r=i,o=iy(e,i))}if(1===o){var l=Tg;throw my(e,0),sy(e,r),ay(e,Mr()),l}if(6===o)sy(e,r);else{var s=!Ga(0,r),u=e.current.alternate;if(s&&!function(e){var t=e;for(;;){if(t.flags&or){var n=t.updateQueue;if(null!==n){var r=n.stores;if(null!==r)for(var a=0;a<r.length;a++){var o=r[a],i=o.getSnapshot,l=o.value;try{if(!fl(i(),l))return!1}catch(e){return!1}}}}var s=t.child;if(t.subtreeFlags&or&&null!==s)s.return=t,t=s;else{if(t===e)return!0;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(u)){if(2===(o=Sy(e,r))){var c=Ba(e);0!==c&&(r=c,o=iy(e,c))}if(1===o){var d=Tg;throw my(e,0),sy(e,r),ay(e,Mr()),d}}e.finishedWork=u,e.finishedLanes=r,function(e,t,n){switch(t){case 0:case 1:throw new Error("Root did not complete. This is a bug in React.");case 2:case 5:xy(e,Ng,Mg);break;case 3:if(sy(e,n),Ya(n)&&!Yy()){var r=Pg+500-Mr();if(r>10){if(0!==$a(e,0))break;var a=e.suspendedLanes;if(!no(a,n)){ey(),so(e,a);break}e.timeoutHandle=eu(xy.bind(null,e,Ng,Mg),r);break}}xy(e,Ng,Mg);break;case 4:if(sy(e,n),function(e){return(e&pa)===e}(n))break;if(!Yy()){var o=function(e,t){for(var n=e.eventTimes,r=Ha;t>0;){var a=Ja(t),o=1<<a,i=n[a];i>r&&(r=i),t&=~o}return r}(e,n),i=o,l=Mr()-i,s=((u=l)<120?120:u<480?480:u<1080?1080:u<1920?1920:u<3e3?3e3:u<4320?4320:1960*pg(u/1960))-l;if(s>10){e.timeoutHandle=eu(xy.bind(null,e,Ng,Mg),s);break}}xy(e,Ng,Mg);break;default:throw new Error("Unknown root exit status.")}var u}(e,o,r)}}return ay(e,Mr()),e.callbackNode===n?oy.bind(null,e):null}function iy(e,t){var n=Rg;Co(e)&&(my(e,t).flags|=Jn,o("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.containerInfo.nodeName.toLowerCase()));var r=Sy(e,t);if(2!==r){var a=Ng;Ng=n,null!==a&&ly(a)}return r}function ly(e){null===Ng?Ng=e:Ng.push.apply(Ng,e)}function sy(e,t){t=ao(t,Dg),function(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var n=e.expirationTimes,r=t;r>0;){var a=Ja(r),o=1<<a;n[a]=Ha,r&=~o}}(e,t=ao(t,Cg))}function uy(e){if(Hh=Uh,Uh=!1,0!=(6&yg))throw new Error("Should not already be working.");Cy();var t=$a(e,0);if(!to(t,1))return ay(e,Mr()),null;var n=Sy(e,t);if(0!==e.tag&&2===n){var r=Ba(e);0!==r&&(t=r,n=iy(e,r))}if(1===n){var a=Tg;throw my(e,0),sy(e,t),ay(e,Mr()),a}if(6===n)throw new Error("Root did not complete. This is a bug in React.");var o=e.current.alternate;return e.finishedWork=o,e.finishedLanes=t,xy(e,Ng,Mg),ay(e,Mr()),null}function cy(e,t){var n=yg;yg|=1;try{return e(t)}finally{0!==(yg=n)||gg.isBatchingLegacy||(Og(),uc())}}function dy(e){null!==Ug&&0===Ug.tag&&0==(6&yg)&&Cy();var t=yg;yg|=1;var n=vg.transition,r=_o();try{return vg.transition=null,ko(yo),e?e():void 0}finally{ko(r),vg.transition=n,0==(6&(yg=t))&&cc()}}function fy(){return 0!=(6&yg)}function py(e,t){Vu(_g,Eg,e),Eg=ro(Eg,t)}function hy(e){Eg=_g.current,ju(_g,e)}function my(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,tu(n)),null!==wg)for(var r=wg.return;null!==r;){r.alternate;ov(0,r),r=r.return}bg=e;var a=pb(e.current,null);return wg=a,Sg=Eg=t,kg=0,Tg=null,xg=0,Cg=0,Dg=0,Rg=null,Ng=null,function(){if(null!==Dd){for(var e=0;e<Dd.length;e++){var t=Dd[e],n=t.interleaved;if(null!==n){t.interleaved=null;var r=n.next,a=t.pending;if(null!==a){var o=a.next;a.next=r,n.next=o}t.pending=n}}Dd=null}}(),td.discardPendingWarnings(),a}function vy(e,t){for(;;){var n=wg;try{if(bd(),kp(),We(),mg.current=null,null===n||null===n.return)return kg=1,Tg=t,void(wg=null);2&n.mode&&qh(n,!0),Zr(),null!==t&&"object"==typeof t&&"function"==typeof t.then?ra(n,t,Sg):na(n,t,Sg),lm(e,n.return,n,t,Sg),Ty(n)}catch(e){t=e,wg===n&&null!==n?(n=n.return,wg=n):n=wg;continue}return}}function gy(){var e=hg.current;return hg.current=kh,null===e?kh:e}function yy(e){hg.current=e}function by(e){xg=ro(e,xg)}function wy(){0!==kg&&3!==kg&&2!==kg||(kg=4),null!==bg&&(qa(xg)||qa(Cg))&&sy(bg,Sg)}function Sy(e,t){var n=yg;yg|=2;var r=gy();if(bg!==e||Sg!==t){if(qr){var a=e.memoizedUpdaters;a.size>0&&($y(e,Sg),a.clear()),fo(e,t)}Mg=null,my(e,t)}for(aa(t);;)try{Ey();break}catch(t){vy(e,t)}if(bd(),yg=n,yy(r),null!==wg)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return oa(),bg=null,Sg=0,kg}function Ey(){for(;null!==wg;)ky(wg)}function _y(){for(;null!==wg&&!Pr();)ky(wg)}function ky(e){var t,n=e.alternate;Be(e),0!=(2&e.mode)?(Wh(e),t=zy(n,e,Eg),qh(e,!0)):t=zy(n,e,Eg),We(),e.memoizedProps=e.pendingProps,null===t?Ty(e):wg=t,mg.current=null}function Ty(e){var t=e;do{var n=t.alternate,r=t.return;if(0==(t.flags&ir)){Be(t);var a=void 0;if(0==(2&t.mode)?a=rv(n,t,Eg):(Wh(t),a=rv(n,t,Eg),qh(t,!1)),We(),null!==a)return void(wg=a)}else{var o=av(0,t);if(null!==o)return o.flags&=32767,void(wg=o);if(0!=(2&t.mode)){qh(t,!1);for(var i=t.actualDuration,l=t.child;null!==l;)i+=l.actualDuration,l=l.sibling;t.actualDuration=i}if(null===r)return kg=6,void(wg=null);r.flags|=ir,r.subtreeFlags=0,r.deletions=null}var s=t.sibling;if(null!==s)return void(wg=s);wg=t=r}while(null!==t);0===kg&&(kg=5)}function xy(e,t,n){var r=_o(),a=vg.transition;try{vg.transition=null,ko(yo),function(e,t,n,r){do{Cy()}while(null!==Ug);if(function(){td.flushLegacyContextWarning(),td.flushPendingUnsafeLifecycleWarnings()}(),0!=(6&yg))throw new Error("Should not already be working.");var a=e.finishedWork,i=e.finishedLanes;if(function(e){null!==Wr&&"function"==typeof Wr.markCommitStarted&&Wr.markCommitStarted(e)}(i),null===a)return Qr(),null;0===i&&o("root.finishedLanes should not be empty during a commit. This is a bug in React.");if(e.finishedWork=null,e.finishedLanes=0,a===e.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=0;var l=ro(a.lanes,a.childLanes);(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t;for(var r=e.entanglements,a=e.eventTimes,o=e.expirationTimes,i=n;i>0;){var l=Ja(i),s=1<<l;r[l]=0,a[l]=Ha,o[l]=Ha,i&=~s}})(e,l),e===bg&&(bg=null,wg=null,Sg=0);0==(a.subtreeFlags&gr)&&0==(a.flags&gr)||Hg||(Hg=!0,$g=n,By(Fr,(function(){return Cy(),null})));var s=0!=(15990&a.subtreeFlags),u=0!=(15990&a.flags);if(s||u){var c=vg.transition;vg.transition=null;var d=_o();ko(yo);var f=yg;yg|=4,mg.current=null,bv(e,a),$h(),function(e,t,n){dv=n,fv=e,Be(t),jv(t,e),Be(t),dv=null,fv=null}(e,a,i),e.containerInfo,kl(Ks),Go(Gs),Gs=null,Ks=null,e.current=a,function(e){null!==Wr&&"function"==typeof Wr.markLayoutEffectsStarted&&Wr.markLayoutEffectsStarted(e)}(i),$v(a,e,i),null!==Wr&&"function"==typeof Wr.markLayoutEffectsStopped&&Wr.markLayoutEffectsStopped(),Ir(),yg=f,ko(d),vg.transition=c}else e.current=a,$h();var p=Hg;Hg?(Hg=!1,Ug=e,jg=i):(Gg=0,Kg=null);0===(l=e.pendingLanes)&&(zg=null);p||Ly(e.current,!1);(function(e,t){if($r&&"function"==typeof $r.onCommitFiberRoot)try{var n,r=(e.current.flags&Zn)===Zn;switch(t){case yo:n=Ar;break;case bo:n=Lr;break;case wo:n=Fr;break;case So:n=Hr;break;default:n=Fr}$r.onCommitFiberRoot(Vr,e,n,r)}catch(e){Br||(Br=!0,o("React instrumentation encountered an error: %s",e))}})(a.stateNode,r),qr&&e.memoizedUpdaters.clear();if(function(){cg.forEach((function(e){return e()}))}(),ay(e,Mr()),null!==t)for(var h=e.onRecoverableError,m=0;m<t.length;m++){var v=t[m],g=v.stack,y=v.digest;h(v.value,{componentStack:g,digest:y})}if(Lg){Lg=!1;var b=Fg;throw Fg=null,b}to(jg,1)&&0!==e.tag&&Cy();to(l=e.pendingLanes,1)?(Uh=!0,e===Bg?Wg++:(Wg=0,Bg=e)):Wg=0;cc(),Qr()}(e,t,n,r)}finally{vg.transition=a,ko(r)}return null}function Cy(){if(null!==Ug){var e=xo(jg),t=(i=e,0===(a=wo)||a>i?a:i),n=vg.transition,r=_o();try{return vg.transition=null,ko(t),function(){if(null===Ug)return!1;var e=$g;$g=null;var t=Ug,n=jg;if(Ug=null,jg=0,0!=(6&yg))throw new Error("Cannot flush passive effects while already rendering.");qg=!0,Yg=!1,function(e){null!==Wr&&"function"==typeof Wr.markPassiveEffectsStarted&&Wr.markPassiveEffectsStarted(e)}(n);var r=yg;yg|=4,Jv(t.current),Qv(t,t.current,n,e);var a=Vg;Vg=[];for(var i=0;i<a.length;i++){kv(0,a[i])}void(null!==Wr&&"function"==typeof Wr.markPassiveEffectsStopped&&Wr.markPassiveEffectsStopped()),Ly(t.current,!0),yg=r,cc(),Yg?t===Kg?Gg++:(Gg=0,Kg=t):Gg=0;qg=!1,Yg=!1,function(e){if($r&&"function"==typeof $r.onPostCommitFiberRoot)try{$r.onPostCommitFiberRoot(Vr,e)}catch(e){Br||(Br=!0,o("React instrumentation encountered an error: %s",e))}}(t);var l=t.current.stateNode;return l.effectDuration=0,l.passiveEffectDuration=0,!0}()}finally{ko(r),vg.transition=n}}var a,i;return!1}function Dy(e){return null!==zg&&zg.has(e)}var Ry=function(e){Lg||(Lg=!0,Fg=e)};function Ny(e,t,n){var r=Vd(e,nm(e,Zh(n,t),1),1),a=ey();null!==r&&(lo(r,1,a),ay(r,a))}function Py(e,t,n){if(function(e){Gn(null,(function(){throw e})),Kn()}(n),Gy(!1),3!==e.tag){var r=null;for(r=t;null!==r;){if(3===r.tag)return void Ny(r,e,n);if(1===r.tag){var a=r.type,i=r.stateNode;if("function"==typeof a.getDerivedStateFromError||"function"==typeof i.componentDidCatch&&!Dy(i)){var l=Vd(r,rm(r,Zh(n,e),1),1),s=ey();return void(null!==l&&(lo(l,1,s),ay(l,s)))}}r=r.return}o("Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.\n\nError message:\n\n%s",n)}else Ny(e,e,n)}function Iy(e,t,n){var r=e.pingCache;null!==r&&r.delete(t);var a=ey();so(e,n),function(e){0!==e.tag&&fg()&&null===gg.current&&o("A suspended resource finished loading inside a test, but the event was not wrapped in act(...).\n\nWhen testing, code that resolves suspended data should be wrapped into act(...):\n\nact(() => {\n /* finish loading suspended data */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act")}(e),bg===e&&no(Sg,n)&&(4===kg||3===kg&&Ya(Sg)&&Mr()-Pg<500?my(e,0):Dg=ro(Dg,n)),ay(e,a)}function My(e,t){0===t&&(t=ny(e));var n=ey(),r=Id(e,t);null!==r&&(lo(r,t,n),ay(r,n))}function Oy(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),My(e,n)}function Ay(e,t){var n,r=0;switch(e.tag){case c:n=e.stateNode;var a=e.memoizedState;null!==a&&(r=a.retryLane);break;case m:n=e.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}null!==n&&n.delete(t),My(e,r)}function Ly(e,t){Be(e),Fy(e,fr,lg),t&&Fy(e,pr,sg),Fy(e,fr,og),t&&Fy(e,pr,ig),We()}function Fy(e,t,n){for(var r=e,a=null;null!==r;){var o=r.subtreeFlags&t;r!==a&&null!==r.child&&0!==o?r=r.child:(0!=(r.flags&t)&&n(r),r=null!==r.sibling?r.sibling:a=r.return)}}var zy,Hy=null;function Uy(e){if(0==(2&yg)&&1&e.mode){var t=e.tag;if(2===t||3===t||1===t||0===t||t===s||t===d||t===f){var n=ze(e)||"ReactComponent";if(null!==Hy){if(Hy.has(n))return;Hy.add(n)}else Hy=new Set([n]);var r=Ue;try{Be(e),o("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{r?Be(e):We()}}}}zy=function(e,t,n){var r=Sb(null,t);try{return Xm(e,t,n)}catch(o){if(Nc||null!==o&&"object"==typeof o&&"function"==typeof o.then)throw o;if(bd(),kp(),ov(0,t),Sb(t,r),2&t.mode&&Wh(t),Gn(null,Xm,null,e,t,n),$n){var a=Kn();"object"==typeof a&&null!==a&&a._suppressLogging&&"object"==typeof o&&null!==o&&!o._suppressLogging&&(o._suppressLogging=!0)}throw o}};var jy,Vy=!1;function $y(e,t){qr&&e.memoizedUpdaters.forEach((function(n){co(e,n,t)}))}jy=new Set;var Wy={};function By(e,t){var n=gg.current;return null!==n?(n.push(t),Wy):Rr(e,t)}function qy(e){if(e!==Wy)return Nr(e)}function Yy(){return null!==gg.current}function Gy(e){Zg=e}var Ky=null,Qy=null,Xy=function(e){Ky=e};function Zy(e){if(null===Ky)return e;var t=Ky(e);return void 0===t?e:t.current}function Jy(e){return Zy(e)}function eb(e){if(null===Ky)return e;var t=Ky(e);if(void 0===t){if(null!=e&&"function"==typeof e.render){var n=Zy(e.render);if(e.render!==n){var r={$$typeof:ie,render:n};return void 0!==e.displayName&&(r.displayName=e.displayName),r}}return e}return t.current}function tb(e,t){if(null===Ky)return!1;var n=e.elementType,r=t.type,a=!1,o="object"==typeof r&&null!==r?r.$$typeof:null;switch(e.tag){case 1:"function"==typeof r&&(a=!0);break;case 0:("function"==typeof r||o===ce)&&(a=!0);break;case s:(o===ie||o===ce)&&(a=!0);break;case d:case f:(o===ue||o===ce)&&(a=!0);break;default:return!1}if(a){var i=Ky(n);if(void 0!==i&&i===Ky(r))return!0}return!1}function nb(e){null!==Ky&&"function"==typeof WeakSet&&(null===Qy&&(Qy=new WeakSet),Qy.add(e))}var rb=function(e,t){if(null!==Ky){var n=t.staleFamilies,r=t.updatedFamilies;Cy(),dy((function(){ob(e.current,r,n)}))}},ab=function(e,t){e.context===$u&&(Cy(),dy((function(){Pb(t,e,null,null)})))};function ob(e,t,n){var r=e.alternate,a=e.child,o=e.sibling,i=e.tag,l=e.type,u=null;switch(i){case 0:case f:case 1:u=l;break;case s:u=l.render}if(null===Ky)throw new Error("Expected resolveFamily to be set during hot reload.");var c=!1,d=!1;if(null!==u){var p=Ky(u);void 0!==p&&(n.has(p)?d=!0:t.has(p)&&(1===i?d=!0:c=!0))}if(null!==Qy&&(Qy.has(e)||null!==r&&Qy.has(r))&&(d=!0),d&&(e._debugNeedsRemount=!0),d||c){var h=Id(e,1);null!==h&&ry(h,e,1,Ha)}null===a||d||ob(a,t,n),null!==o&&ob(o,t,n)}var ib,lb=function(e,t){var n=new Set,r=new Set(t.map((function(e){return e.current})));return sb(e.current,r,n),n};function sb(e,t,n){var r=e.child,a=e.sibling,o=e.tag,i=e.type,l=null;switch(o){case 0:case f:case 1:l=i;break;case s:l=i.render}var u=!1;null!==l&&t.has(l)&&(u=!0),u?function(e,t){if(function(e,t){var n=e,r=!1;for(;;){if(5===n.tag)r=!0,t.add(n.stateNode);else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)return r;for(;null===n.sibling;){if(null===n.return||n.return===e)return r;n=n.return}n.sibling.return=n.return,n=n.sibling}return!1}(e,t))return;var n=e;for(;;){switch(n.tag){case 5:return void t.add(n.stateNode);case 4:case 3:return void t.add(n.stateNode.containerInfo)}if(null===n.return)throw new Error("Expected to reach root first.");n=n.return}}(e,n):null!==r&&sb(r,t,n),null!==a&&sb(a,t,n)}ib=!1;try{var ub=Object.preventExtensions({});new Map([[ub,null]]),new Set([ub])}catch(e){ib=!0}function cb(e,t,n,r){this.tag=e,this.key=n,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=r,this.flags=0,this.subtreeFlags=0,this.deletions=null,this.lanes=0,this.childLanes=0,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,ib||"function"!=typeof Object.preventExtensions||Object.preventExtensions(this)}var db=function(e,t,n,r){return new cb(e,t,n,r)};function fb(e){var t=e.prototype;return!(!t||!t.isReactComponent)}function pb(e,t){var n=e.alternate;null===n?((n=db(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugSource=e._debugSource,n._debugOwner=e._debugOwner,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=0,n.actualStartTime=-1),n.flags=e.flags&yr,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue;var r=e.dependencies;switch(n.dependencies=null===r?null:{lanes:r.lanes,firstContext:r.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 2:case 0:case f:n.type=Zy(e.type);break;case 1:n.type=Jy(e.type);break;case s:n.type=eb(e.type)}return n}function hb(e,t){e.flags&=14680066;var n=e.alternate;if(null===n)e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0;else{e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type;var r=n.dependencies;e.dependencies=null===r?null:{lanes:r.lanes,firstContext:r.firstContext},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration}return e}function mb(e,t,n,r,a,i){var f=2,p=e;if("function"==typeof e)fb(e)?(f=1,p=Jy(p)):p=Zy(p);else if("string"==typeof e)f=5;else e:switch(e){case te:return gb(n.children,a,i,t);case ne:f=8,0!=(1&(a|=8))&&(a|=la);break;case re:return function(e,t,n,r){"string"!=typeof e.id&&o('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var a=db(u,e,r,2|t);return a.elementType=re,a.lanes=n,a.stateNode={effectDuration:0,passiveEffectDuration:0},a}(n,a,i,t);case le:return function(e,t,n,r){var a=db(c,e,r,t);return a.elementType=le,a.lanes=n,a}(n,a,i,t);case se:return function(e,t,n,r){var a=db(m,e,r,t);return a.elementType=se,a.lanes=n,a}(n,a,i,t);case de:return yb(n,a,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ae:f=l;break e;case oe:f=9;break e;case ie:f=s,p=eb(p);break e;case ue:f=d;break e;case ce:f=16,p=null;break e}var h="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(h+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var v=r?ze(r):null;throw v&&(h+="\n\nCheck the render method of `"+v+"`."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(null==e?e:typeof e)+"."+h)}var g=db(f,n,t,a);return g.elementType=e,g.type=p,g.lanes=i,g._debugOwner=r,g}function vb(e,t,n){var r;r=e._owner;var a=mb(e.type,e.key,e.props,r,t,n);return a._debugSource=e._source,a._debugOwner=e._owner,a}function gb(e,t,n,r){var a=db(7,e,r,t);return a.lanes=n,a}function yb(e,t,n,r){var a=db(g,e,r,t);a.elementType=de,a.lanes=n;return a.stateNode={isHidden:!1},a}function bb(e,t,n){var r=db(6,e,null,t);return r.lanes=n,r}function wb(e,t,n){var r=null!==e.children?e.children:[],a=db(4,r,e.key,t);return a.lanes=n,a.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},a}function Sb(e,t){return null===e&&(e=db(2,null,null,0)),e.tag=t.tag,e.key=t.key,e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.dependencies=t.dependencies,e.mode=t.mode,e.flags=t.flags,e.subtreeFlags=t.subtreeFlags,e.deletions=t.deletions,e.lanes=t.lanes,e.childLanes=t.childLanes,e.alternate=t.alternate,e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function Eb(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=-1,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=io(0),this.expirationTimes=io(Ha),this.pendingLanes=0,this.suspendedLanes=0,this.pingedLanes=0,this.expiredLanes=0,this.mutableReadLanes=0,this.finishedLanes=0,this.entangledLanes=0,this.entanglements=io(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0,this.memoizedUpdaters=new Set;for(var o=this.pendingUpdatersLaneMap=[],i=0;i<da;i++)o.push(new Set);switch(t){case 1:this._debugRootType=n?"hydrateRoot()":"createRoot()";break;case 0:this._debugRootType=n?"hydrate()":"render()"}}function _b(e,t,n,r,a,o,i,l,s,u){var c=new Eb(e,t,n,l,s),d=function(e,t,n){var r;return 1===e?(r=1,!0===t&&(r|=8,r|=la)):r=0,qr&&(r|=2),db(3,null,null,r)}(t,o);c.current=d,d.stateNode=c;var f={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null};return d.memoizedState=f,Hd(d),c}var kb,Tb,xb="18.2.0";function Cb(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return P(r),{$$typeof:ee,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Db(e){if(!e)return $u;var t=Qn(e),n=ac(t);if(1===t.tag){var r=t.type;if(Xu(r))return tc(t,r,n)}return n}function Rb(e,t,n,r,a,o,i,l){return _b(e,t,!1,null,0,r,0,o,i)}function Nb(e,t,n,r,a,o,i,l,s,u){var c=_b(n,r,!0,e,0,o,0,l,s);c.context=Db(null);var d=c.current,f=ey(),p=ty(d),h=jd(f,p);return h.callback=null!=t?t:null,Vd(d,h,p),function(e,t,n){e.current.lanes=t,lo(e,t,n),ay(e,n)}(c,p,f),c}function Pb(e,t,n,r){!function(e,t){if($r&&"function"==typeof $r.onScheduleFiberRoot)try{$r.onScheduleFiberRoot(Vr,e,t)}catch(e){Br||(Br=!0,o("React instrumentation encountered an error: %s",e))}}(t,e);var a=t.current,i=ey(),l=ty(a);!function(e){null!==Wr&&"function"==typeof Wr.markRenderScheduled&&Wr.markRenderScheduled(e)}(l);var s=Db(n);null===t.context?t.context=s:t.pendingContext=s,je&&null!==Ue&&!kb&&(kb=!0,o("Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.\n\nCheck the render method of %s.",ze(Ue)||"Unknown"));var u=jd(i,l);u.payload={element:e},null!==(r=void 0===r?null:r)&&("function"!=typeof r&&o("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",r),u.callback=r);var c=Vd(a,u,l);return null!==c&&(ry(c,a,l,i),$d(c,a,l)),l}function Ib(e){var t=e.current;return t.child?(t.child.tag,t.child.stateNode):null}function Mb(e,t){var n,r,a=e.memoizedState;null!==a&&null!==a.dehydrated&&(a.retryLane=(n=a.retryLane,r=t,0!==n&&n<r?n:r))}function Ob(e,t){Mb(e,t);var n=e.alternate;n&&Mb(n,t)}function Ab(e){var t=Cr(e);return null===t?null:t.stateNode}kb=!1,Tb={};var Lb=function(e){return null};var Fb=function(e){return!1};var zb,Hb,Ub,jb,Vb,$b,Wb,Bb,qb,Yb=function(e,t,n){var r=t[n],a=wt(e)?e.slice():Se({},e);return n+1===t.length?(wt(a)?a.splice(r,1):delete a[r],a):(a[r]=Yb(e[r],t,n+1),a)},Gb=function(e,t){return Yb(e,t,0)},Kb=function(e,t,n,r){var a=t[r],o=wt(e)?e.slice():Se({},e);r+1===t.length?(o[n[r]]=o[a],wt(o)?o.splice(a,1):delete o[a]):o[a]=Kb(e[a],t,n,r+1);return o},Qb=function(e,t,n){if(t.length===n.length){for(var r=0;r<n.length-1;r++)if(t[r]!==n[r])return void a("copyWithRename() expects paths to be the same except for the deepest key");return Kb(e,t,n,0)}a("copyWithRename() expects paths of the same length")},Xb=function(e,t,n,r){if(n>=t.length)return r;var a=t[n],o=wt(e)?e.slice():Se({},e);return o[a]=Xb(e[a],t,n+1,r),o},Zb=function(e,t,n){return Xb(e,t,0,n)},Jb=function(e,t){for(var n=e.memoizedState;null!==n&&t>0;)n=n.next,t--;return n};function ew(e){var t=Tr(e);return null===t?null:t.stateNode}function tw(e){return null}function nw(){return Ue}zb=function(e,t,n,r){var a=Jb(e,t);if(null!==a){var o=Zb(a.memoizedState,n,r);a.memoizedState=o,a.baseState=o,e.memoizedProps=Se({},e.memoizedProps);var i=Id(e,1);null!==i&&ry(i,e,1,Ha)}},Hb=function(e,t,n){var r=Jb(e,t);if(null!==r){var a=Gb(r.memoizedState,n);r.memoizedState=a,r.baseState=a,e.memoizedProps=Se({},e.memoizedProps);var o=Id(e,1);null!==o&&ry(o,e,1,Ha)}},Ub=function(e,t,n,r){var a=Jb(e,t);if(null!==a){var o=Qb(a.memoizedState,n,r);a.memoizedState=o,a.baseState=o,e.memoizedProps=Se({},e.memoizedProps);var i=Id(e,1);null!==i&&ry(i,e,1,Ha)}},jb=function(e,t,n){e.pendingProps=Zb(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var r=Id(e,1);null!==r&&ry(r,e,1,Ha)},Vb=function(e,t){e.pendingProps=Gb(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var n=Id(e,1);null!==n&&ry(n,e,1,Ha)},$b=function(e,t,n){e.pendingProps=Qb(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var r=Id(e,1);null!==r&&ry(r,e,1,Ha)},Wb=function(e){var t=Id(e,1);null!==t&&ry(t,e,1,Ha)},Bb=function(e){Lb=e},qb=function(e){Fb=e};var rw="function"==typeof reportError?reportError:function(e){console.error(e)};function aw(e){this._internalRoot=e}function ow(e){this._internalRoot=e}function iw(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function lw(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function sw(e){1===e.nodeType&&e.tagName&&"BODY"===e.tagName.toUpperCase()&&o("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),xu(e)&&(e._reactRootContainer?o("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):o("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}ow.prototype.render=aw.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw new Error("Cannot update an unmounted root.");"function"==typeof arguments[1]?o("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):iw(arguments[1])?o("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):void 0!==arguments[1]&&o("You passed a second argument to root.render(...) but it only accepts one argument.");var n=t.containerInfo;if(8!==n.nodeType){var r=Ab(t.current);r&&r.parentNode!==n&&o("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}Pb(e,t,null,null)},ow.prototype.unmount=aw.prototype.unmount=function(){"function"==typeof arguments[0]&&o("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;fy()&&o("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),dy((function(){Pb(null,e,null,null)})),Tu(t)}},ow.prototype.unstable_scheduleHydration=function(e){e&&function(e){for(var t=vo(),n={blockedOn:null,target:e,priority:t},r=0;r<Lo.length&&To(t,Lo[r].priority);r++);Lo.splice(r,0,n),0===r&&Uo(n)}(e)};var uw,cw,dw=n.ReactCurrentOwner;function fw(e){return e?9===e.nodeType?e.documentElement:e.firstChild:null}function pw(){}function hw(e,t,n,r,a){uw(n),function(e,t){null!==e&&"function"!=typeof e&&o("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}(void 0===a?null:a,"render");var i,l=n._reactRootContainer;if(l){if("function"==typeof a){var s=a;a=function(){var e=Ib(i);s.call(e)}}Pb(t,i=l,e,a)}else i=function(e,t,n,r,a){if(a){if("function"==typeof r){var o=r;r=function(){var e=Ib(i);o.call(e)}}var i=Nb(t,r,e,0,0,!1,0,"",pw);return e._reactRootContainer=i,ku(i.current,e),es(8===e.nodeType?e.parentNode:e),dy(),i}for(var l;l=e.lastChild;)e.removeChild(l);if("function"==typeof r){var s=r;r=function(){var e=Ib(u);s.call(e)}}var u=Rb(e,0,0,!1,0,"",pw);return e._reactRootContainer=u,ku(u.current,e),es(8===e.nodeType?e.parentNode:e),dy((function(){Pb(t,u,n,r)})),u}(n,t,e,a,r);return Ib(i)}uw=function(e){if(e._reactRootContainer&&8!==e.nodeType){var t=Ab(e._reactRootContainer.current);t&&t.parentNode!==e&&o("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var n=!!e._reactRootContainer,r=fw(e);!(!r||!Du(r))&&!n&&o("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),1===e.nodeType&&e.tagName&&"BODY"===e.tagName.toUpperCase()&&o("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")},cw=function(e){switch(e.tag){case 3:var t=e.stateNode;if(Co(t)){var n=function(e){return Va(e.pendingLanes)}(t);!function(e,t){0!==t&&(uo(e,ro(t,1)),ay(e,Mr()),0==(6&yg)&&(Og(),cc()))}(t,n)}break;case c:dy((function(){var t=Id(e,1);if(null!==t){var n=ey();ry(t,e,1,n)}})),Ob(e,1)}},po=cw,function(e){ho=e}((function(e){if(e.tag===c){var t=Ma,n=Id(e,t);if(null!==n)ry(n,e,t,ey());Ob(e,t)}})),function(e){mo=e}((function(e){if(e.tag===c){var t=ty(e),n=Id(e,t);if(null!==n)ry(n,e,t,ey());Ob(e,t)}})),function(e){vo=e}(_o),function(e){go=e}((function(e,t){var n=Eo;try{return Eo=e,t()}finally{Eo=n}})),"function"==typeof Map&&null!=Map.prototype&&"function"==typeof Map.prototype.forEach&&"function"==typeof Set&&null!=Set.prototype&&"function"==typeof Set.prototype.clear&&"function"==typeof Set.prototype.forEach||o("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),Tn=function(e,t,n){switch(t){case"input":return void ft(e,n);case"textarea":return void function(e,t){Rt(e,t)}(e,n);case"select":return void function(e,t){var n=e,r=t.value;null!=r&&_t(n,!!t.multiple,r,!1)}(e,n)}},Pn=cy,In=dy;var mw={usingClientEntryPoint:!1,Events:[Du,Ru,Nu,Rn,Nn,cy]};var vw=function(e){var t=e.findFiberByHostInstance,r=n.ReactCurrentDispatcher;return function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return o("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{e=Se({},e,{getLaneLabelMap:Kr,injectProfilingHooks:Gr}),Vr=t.inject(e),$r=t}catch(e){o("React instrumentation encountered an error: %s.",e)}return!!t.checkDCE}({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:zb,overrideHookStateDeletePath:Hb,overrideHookStateRenamePath:Ub,overrideProps:jb,overridePropsDeletePath:Vb,overridePropsRenamePath:$b,setErrorHandler:Bb,setSuspenseHandler:qb,scheduleUpdate:Wb,currentDispatcherRef:r,findHostInstanceByFiber:ew,findFiberByHostInstance:t||tw,findHostInstancesForRefresh:lb,scheduleRefresh:rb,scheduleRoot:ab,setRefreshHandler:Xy,getCurrentFiber:nw,reconcilerVersion:xb})}({findFiberByHostInstance:Cu,bundleType:1,version:xb,rendererPackageName:"react-dom"});if(!vw&&T&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&-1===navigator.userAgent.indexOf("Edge")||navigator.userAgent.indexOf("Firefox")>-1)){var gw=window.location.protocol;/^(https?|file):$/.test(gw)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+("file:"===gw?"\nYou might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq":""),"font-weight:bold")}reactDom_development.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=mw,reactDom_development.createPortal=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!iw(t))throw new Error("Target container is not a DOM element.");return Cb(e,t,null,n)},reactDom_development.createRoot=function(e,t){return mw.usingClientEntryPoint||o('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),function(e,t){if(!iw(e))throw new Error("createRoot(...): Target container is not a DOM element.");sw(e);var n=!1,r="",i=rw;null!=t&&(t.hydrate?a("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):"object"==typeof t&&null!==t&&t.$$typeof===J&&o("You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:\n\n let root = createRoot(domContainer);\n root.render(<App />);"),!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError),void 0!==t.transitionCallbacks&&t.transitionCallbacks);var l=Rb(e,1,0,n,0,r,i);return ku(l.current,e),es(8===e.nodeType?e.parentNode:e),new aw(l)}(e,t)},reactDom_development.findDOMNode=function(e){var t=dw.current;return null!==t&&null!==t.stateNode&&(t.stateNode._warnedAboutRefsInRender||o("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Le(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0),null==e?null:1===e.nodeType?e:function(e,t){var n=Qn(e);if(void 0===n){if("function"==typeof e.render)throw new Error("Unable to find node on an unmounted component.");var r=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+r)}var a=Tr(n);if(null===a)return null;if(8&a.mode){var i=ze(n)||"Component";if(!Tb[i]){Tb[i]=!0;var l=Ue;try{Be(a),8&n.mode?o("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,i):o("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,i)}finally{l?Be(l):We()}}}return a.stateNode}(e,"findDOMNode")},reactDom_development.flushSync=function(e){return fy()&&o("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),dy(e)},reactDom_development.hydrate=function(e,t,n){if(o("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!lw(t))throw new Error("Target container is not a DOM element.");return xu(t)&&void 0===t._reactRootContainer&&o("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?"),hw(null,e,t,!0,n)},reactDom_development.hydrateRoot=function(e,t,n){return mw.usingClientEntryPoint||o('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),function(e,t,n){if(!iw(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");sw(e),void 0===t&&o("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var r=null!=n&&n.hydratedSources||null,a=!1,i="",l=rw;null!=n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError));var s=Nb(t,null,e,1,0,a,0,i,l);if(ku(s.current,e),es(e),r)for(var u=0;u<r.length;u++)Jf(s,r[u]);return new ow(s)}(e,t,n)},reactDom_development.render=function(e,t,n){if(o("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!lw(t))throw new Error("Target container is not a DOM element.");return xu(t)&&void 0===t._reactRootContainer&&o("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?"),hw(null,e,t,!1,n)},reactDom_development.unmountComponentAtNode=function(e){if(!lw(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");if(xu(e)&&void 0===e._reactRootContainer&&o("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?"),e._reactRootContainer){var t=fw(e);return t&&!Du(t)&&o("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React."),dy((function(){hw(null,null,e,!1,(function(){e._reactRootContainer=null,Tu(e)}))})),!0}var n=fw(e),r=!(!n||!Du(n)),a=1===e.nodeType&&lw(e.parentNode)&&!!e.parentNode._reactRootContainer;return r&&o("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",a?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component."),!1},reactDom_development.unstable_batchedUpdates=cy,reactDom_development.unstable_renderSubtreeIntoContainer=function(e,t,n,r){return function(e,t,n,r){if(o("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!lw(n))throw new Error("Target container is not a DOM element.");if(null==e||void 0===e._reactInternals)throw new Error("parentComponent must be a valid React Component");return hw(e,t,n,!1,r)}(e,t,n,r)},reactDom_development.version=xb,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),reactDom_development}function flushSync(e){e()}if(function(e){"production"===process.env.NODE_ENV?(!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){if("production"!==process.env.NODE_ENV)throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=requireReactDom_production_min()):e.exports=requireReactDom_development()}(reactDom),("undefined"!=typeof globalThis?globalThis:window).FullCalendarVDom={Component:react.exports.Component,createElement:react.exports.createElement,render:reactDom.exports.render,createRef:react.exports.createRef,Fragment:react.exports.Fragment,createContext:react.exports.createContext,createPortal:reactDom.exports.createPortal,flushSync:flushSync,unmountComponentAtNode:reactDom.exports.unmountComponentAtNode},"undefined"==typeof FullCalendarVDom)throw new Error("Please import the top-level fullcalendar lib before attempting to import a plugin.");var Component=FullCalendarVDom.Component,createElement=FullCalendarVDom.createElement;FullCalendarVDom.render;var createRef=FullCalendarVDom.createRef,Fragment=FullCalendarVDom.Fragment,createContext=FullCalendarVDom.createContext,createPortal=FullCalendarVDom.createPortal;FullCalendarVDom.flushSync,FullCalendarVDom.unmountComponentAtNode;
|
|
51
51
|
/*!
|
|
52
52
|
FullCalendar v5.11.3
|
|
53
53
|
Docs & License: https://fullcalendar.io/
|
|
54
54
|
(c) 2022 Adam Shaw
|
|
55
55
|
*/
|
|
56
|
-
var H=function(){function e(e,t){this.context=e,this.internalEventSource=t}return e.prototype.remove=function(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})},e.prototype.refetch=function(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})},Object.defineProperty(e.prototype,"id",{get:function(){return this.internalEventSource.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this.internalEventSource.meta.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"format",{get:function(){return this.internalEventSource.meta.format},enumerable:!1,configurable:!0}),e}();function j(e){e.parentNode&&e.parentNode.removeChild(e)}function U(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(V(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function V(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}var W=/(top|left|right|bottom|width|height)$/i;function B(e,t){for(var n in t)$(e,n,t[n])}function $(e,t,n){null==n?e.style[t]="":"number"==typeof n&&W.test(t)?e.style[t]=n+"px":e.style[t]=n}function q(e){var t,n;return null!==(n=null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])&&void 0!==n?n:e.target}function Y(e){return e.getRootNode?e.getRootNode():document}var G=0;function K(){return"fc-dom-"+(G+=1)}function Q(e){e.preventDefault()}function X(e,t,n,r){var a=function(e,t){return function(n){var r=U(n.target,e);r&&t.call(r,n,r)}}(n,r);return e.addEventListener(t,a),function(){e.removeEventListener(t,a)}}var Z=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function J(e){return n({onClick:e},ee(e))}function ee(e){return{tabIndex:0,onKeyDown:function(t){"Enter"!==t.key&&" "!==t.key||(e(t),t.preventDefault())}}}var te=0;function ne(){return String(te+=1)}function re(){document.body.classList.add("fc-not-allowed")}function ae(){document.body.classList.remove("fc-not-allowed")}function oe(e,t,n){return n.func?n.func(e,t):function(e,t){if(!e&&!t)return 0;if(null==t)return-1;if(null==e)return 1;if("string"==typeof e||"string"==typeof t)return String(e).localeCompare(String(t));return e-t}(e[n.field],t[n.field])*(n.order||1)}function ie(e,t){var n=String(e);return"000".substr(0,t-n.length)+n}function le(e,t,n){return"function"==typeof e?e.apply(void 0,t):"string"==typeof e?t.reduce((function(e,t,n){return e.replace("$"+n,t||"")}),e):n}function se(e,t){return e-t}function ue(e){return e%1==0}function ce(e){var t=e.querySelector(".fc-scrollgrid-shrink-frame"),n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}var de=["sun","mon","tue","wed","thu","fri","sat"];function fe(e,t){var n=Se(e);return n[2]+=7*t,xe(n)}function pe(e,t){var n=Se(e);return n[2]+=t,xe(n)}function he(e,t){var n=Se(e);return n[6]+=t,xe(n)}function ve(e,t){return(t.valueOf()-e.valueOf())/864e5}function me(e,t){return Te(e)===Te(t)?Math.round(ve(e,t)):null}function ge(e){return xe([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function ye(e,t,n,r){var a=xe([t,0,1+be(t,n,r)]),o=ge(e),i=Math.round(ve(a,o));return Math.floor(i/7)+1}function be(e,t,n){var r=7+t-n;return-((7+xe([e,0,r]).getUTCDay()-t)%7)+r-1}function we(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function ke(e){return new Date(e[0],e[1]||0,null==e[2]?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function Se(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function xe(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC.apply(Date,e))}function Ee(e){return!isNaN(e.valueOf())}function Te(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function _e(e,t,n,r){return{instanceId:ne(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}var Ce=Object.prototype.hasOwnProperty;function De(e,t){var n={};if(t)for(var r in t){for(var a=[],o=e.length-1;o>=0;o-=1){var i=e[o][r];if("object"==typeof i&&i)a.unshift(i);else if(void 0!==i){n[r]=i;break}}a.length&&(n[r]=De(a))}for(o=e.length-1;o>=0;o-=1){var l=e[o];for(var s in l)s in n||(n[s]=l[s])}return n}function Re(e,t){var n={};for(var r in e)t(e[r],r)&&(n[r]=e[r]);return n}function Pe(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}function Ne(e){for(var t={},n=0,r=e;n<r.length;n++){t[r[n]]=!0}return t}function Ie(e){var t=[];for(var n in e)t.push(e[n]);return t}function Me(e,t){if(e===t)return!0;for(var n in e)if(Ce.call(e,n)&&!(n in t))return!1;for(var n in t)if(Ce.call(t,n)&&e[n]!==t[n])return!1;return!0}function Oe(e,t){var n=[];for(var r in e)Ce.call(e,r)&&(r in t||n.push(r));for(var r in t)Ce.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function Le(e,t,n){if(void 0===n&&(n={}),e===t)return!0;for(var r in t)if(!(r in e)||!ze(e[r],t[r],n[r]))return!1;for(var r in e)if(!(r in t))return!1;return!0}function ze(e,t,n){return e===t||!0===n||!!n&&n(e,t)}function Ae(e,t,n){var r=n.dateEnv,a=n.pluginHooks,o=n.options,i=e.defs,l=e.instances;for(var s in l=Re(l,(function(e){return!i[e.defId].recurringDef})),i){var u=i[s];if(u.recurringDef){var c=u.recurringDef.duration;c||(c=u.allDay?o.defaultAllDayEventDuration:o.defaultTimedEventDuration);for(var d=0,f=Fe(u,c,t,r,a.recurringTypes);d<f.length;d++){var p=f[d],h=_e(s,{start:p,end:r.add(p,c)});l[h.instanceId]=h}}}return{defs:i,instances:l}}function Fe(e,t,n,r,a){var o=a[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(o=o.map(ge)),o}var He=["years","months","days","milliseconds"],je=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Ue(e,t){var n;return"string"==typeof e?function(e){var t=je.exec(e);if(t){var n=t[1]?-1:1;return{years:0,months:0,days:n*(t[2]?parseInt(t[2],10):0),milliseconds:n*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}(e):"object"==typeof e&&e?Ve(e):"number"==typeof e?Ve(((n={})[t||"milliseconds"]=e,n)):null}function Ve(e){var t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)},n=e.weeks||e.week;return n&&(t.days+=7*n,t.specifiedWeeks=!0),t}function We(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function Be(e){return $e(e)/864e5}function $e(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function qe(e,t){for(var n=null,r=0;r<He.length;r+=1){var a=He[r];if(t[a]){var o=e[a]/t[a];if(!ue(o)||null!==n&&n!==o)return null;n=o}else if(e[a])return null}return n}function Ye(e){var t=e.milliseconds;if(t){if(t%1e3!=0)return{unit:"millisecond",value:t};if(t%6e4!=0)return{unit:"second",value:t/1e3};if(t%36e5!=0)return{unit:"minute",value:t/6e4};if(t)return{unit:"hour",value:t/36e5}}return e.days?e.specifiedWeeks&&e.days%7==0?{unit:"week",value:e.days/7}:{unit:"day",value:e.days}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function Ge(e,t,n){void 0===n&&(n=!1);var r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",Qe(t,!0)))),r}function Ke(e){return e.toISOString().replace(/T.*$/,"")}function Qe(e,t){void 0===t&&(t=!1);var n=e<0?"-":"+",r=Math.abs(e),a=Math.floor(r/60),o=Math.round(r%60);return t?n+ie(a,2)+":"+ie(o,2):"GMT"+n+a+(o?":"+ie(o,2):"")}function Xe(e,t,n){if(e===t)return!0;var r,a=e.length;if(a!==t.length)return!1;for(r=0;r<a;r+=1)if(!(n?n(e[r],t[r]):e[r]===t[r]))return!1;return!0}function Ze(e,t,n){var r,a;return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(r){if(!Xe(r,o)){n&&n(a);var l=e.apply(this,o);t&&t(l,a)||(a=l)}}else a=e.apply(this,o);return r=o,a}}function Je(e,t,n){var r,a,o=this;return function(i){if(r){if(!Me(r,i)){n&&n(a);var l=e.call(o,i);t&&t(l,a)||(a=l)}}else a=e.call(o,i);return r=i,a}}var et={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},tt={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},nt=/\s*([ap])\.?m\.?/i,rt=/,/g,at=/\s+/g,ot=/\u200e/g,it=/UTC|GMT/,lt=function(){function e(e){var t={},n={},r=0;for(var a in e)a in et?(n[a]=e[a],r=Math.max(et[a],r)):(t[a]=e[a],a in tt&&(r=Math.max(tt[a],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=Ze(st)}return e.prototype.format=function(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)},e.prototype.formatRange=function(e,t,n,r){var a=this.standardDateProps,o=this.extendedSettings,i=function(e,t,n){if(n.getMarkerYear(e)!==n.getMarkerYear(t))return 5;if(n.getMarkerMonth(e)!==n.getMarkerMonth(t))return 4;if(n.getMarkerDay(e)!==n.getMarkerDay(t))return 2;if(Te(e)!==Te(t))return 1;return 0}(e.marker,t.marker,n.calendarSystem);if(!i)return this.format(e,n);var l=i;!(l>1)||"numeric"!==a.year&&"2-digit"!==a.year||"numeric"!==a.month&&"2-digit"!==a.month||"numeric"!==a.day&&"2-digit"!==a.day||(l=1);var s=this.format(e,n),u=this.format(t,n);if(s===u)return s;var c=st(function(e,t){var n={};for(var r in e)(!(r in tt)||tt[r]<=t)&&(n[r]=e[r]);return n}(a,l),o,n),d=c(e),f=c(t),p=function(e,t,n,r){var a=0;for(;a<e.length;){var o=e.indexOf(t,a);if(-1===o)break;var i=e.substr(0,o);a=o+t.length;for(var l=e.substr(a),s=0;s<n.length;){var u=n.indexOf(r,s);if(-1===u)break;var c=n.substr(0,u);s=u+r.length;var d=n.substr(s);if(i===c&&l===d)return{before:i,after:l}}}return null}(s,d,u,f),h=o.separator||r||n.defaultSeparator||"";return p?p.before+d+h+f+p.after:s+h+u},e.prototype.getLargestUnit=function(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}},e}();function st(e,t,r){var a=Object.keys(e).length;return 1===a&&"short"===e.timeZoneName?function(e){return Qe(e.timeZoneOffset)}:0===a&&t.week?function(e){return function(e,t,n,r,a){var o=[];"long"===a?o.push(n):"short"!==a&&"narrow"!==a||o.push(t);"long"!==a&&"short"!==a||o.push(" ");o.push(r.simpleNumberFormat.format(e)),"rtl"===r.options.direction&&o.reverse();return o.join("")}(r.computeWeekNumber(e.marker),r.weekText,r.weekTextLong,r.locale,t.week)}:function(e,t,r){e=n({},e),t=n({},t),function(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit"));"long"===e.timeZoneName&&(e.timeZoneName="short");t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}(e,t),e.timeZone="UTC";var a,o=new Intl.DateTimeFormat(r.locale.codes,e);if(t.omitZeroMinute){var i=n({},e);delete i.minute,a=new Intl.DateTimeFormat(r.locale.codes,i)}return function(n){var i=n.marker;return function(e,t,n,r,a){e=e.replace(ot,""),"short"===n.timeZoneName&&(e=function(e,t){var n=!1;e=e.replace(it,(function(){return n=!0,t})),n||(e+=" "+t);return e}(e,"UTC"===a.timeZone||null==t.timeZoneOffset?"UTC":Qe(t.timeZoneOffset)));r.omitCommas&&(e=e.replace(rt,"").trim());r.omitZeroMinute&&(e=e.replace(":00",""));!1===r.meridiem?e=e.replace(nt,"").trim():"narrow"===r.meridiem?e=e.replace(nt,(function(e,t){return t.toLocaleLowerCase()})):"short"===r.meridiem?e=e.replace(nt,(function(e,t){return t.toLocaleLowerCase()+"m"})):"lowercase"===r.meridiem&&(e=e.replace(nt,(function(e){return e.toLocaleLowerCase()})));return e=(e=e.replace(at," ")).trim()}((a&&!i.getUTCMinutes()?a:o).format(i),n,e,t,r)}}(e,t,r)}function ut(e,t){var n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function ct(e,t,n,r){var a=ut(e,n.calendarSystem);return{date:a,start:a,end:t?ut(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}var dt=function(){function e(e){this.cmdStr=e}return e.prototype.format=function(e,t,n){return t.cmdFormatter(this.cmdStr,ct(e,null,t,n))},e.prototype.formatRange=function(e,t,n,r){return n.cmdFormatter(this.cmdStr,ct(e,t,n,r))},e}(),ft=function(){function e(e){this.func=e}return e.prototype.format=function(e,t,n){return this.func(ct(e,null,t,n))},e.prototype.formatRange=function(e,t,n,r){return this.func(ct(e,t,n,r))},e}();function pt(e){return"object"==typeof e&&e?new lt(e):"string"==typeof e?new dt(e):"function"==typeof e?new ft(e):null}var ht={navLinkDayClick:xt,navLinkWeekClick:xt,duration:Ue,bootstrapFontAwesome:xt,buttonIcons:xt,customButtons:xt,defaultAllDayEventDuration:Ue,defaultTimedEventDuration:Ue,nextDayThreshold:Ue,scrollTime:Ue,scrollTimeReset:Boolean,slotMinTime:Ue,slotMaxTime:Ue,dayPopoverFormat:pt,slotDuration:Ue,snapDuration:Ue,headerToolbar:xt,footerToolbar:xt,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:pt,dayHeaderClassNames:xt,dayHeaderContent:xt,dayHeaderDidMount:xt,dayHeaderWillUnmount:xt,dayCellClassNames:xt,dayCellContent:xt,dayCellDidMount:xt,dayCellWillUnmount:xt,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:xt,weekNumbers:Boolean,weekNumberClassNames:xt,weekNumberContent:xt,weekNumberDidMount:xt,weekNumberWillUnmount:xt,editable:Boolean,viewClassNames:xt,viewDidMount:xt,viewWillUnmount:xt,nowIndicator:Boolean,nowIndicatorClassNames:xt,nowIndicatorContent:xt,nowIndicatorDidMount:xt,nowIndicatorWillUnmount:xt,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:xt,locale:xt,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:xt,eventOrder:function(e){var t,n,r=[],a=[];for("string"==typeof e?a=e.split(/\s*,\s*/):"function"==typeof e?a=[e]:Array.isArray(e)&&(a=e),t=0;t<a.length;t+=1)"string"==typeof(n=a[t])?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&r.push({func:n});return r},eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:xt,contentHeight:xt,direction:String,weekNumberFormat:pt,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:xt,initialDate:xt,now:xt,eventDataTransform:xt,stickyHeaderDates:xt,stickyFooterScrollbar:xt,viewHeight:xt,defaultAllDay:Boolean,eventSourceFailure:xt,eventSourceSuccess:xt,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:xt,eventConstraint:xt,eventAllow:xt,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:xt,eventContent:xt,eventDidMount:xt,eventWillUnmount:xt,selectConstraint:xt,selectOverlap:xt,selectAllow:xt,droppable:Boolean,unselectCancel:String,slotLabelFormat:xt,slotLaneClassNames:xt,slotLaneContent:xt,slotLaneDidMount:xt,slotLaneWillUnmount:xt,slotLabelClassNames:xt,slotLabelContent:xt,slotLabelDidMount:xt,slotLabelWillUnmount:xt,dayMaxEvents:xt,dayMaxEventRows:xt,dayMinWidth:Number,slotLabelInterval:Ue,allDayText:String,allDayClassNames:xt,allDayContent:xt,allDayDidMount:xt,allDayWillUnmount:xt,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:pt,rerenderDelay:Number,moreLinkText:xt,moreLinkHint:xt,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:xt,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:Ue,hiddenDays:xt,monthMode:Boolean,fixedWeekCount:Boolean,validRange:xt,visibleRange:xt,titleFormat:xt,eventInteractive:Boolean,noEventsText:String,viewHint:xt,navLinkHint:xt,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:xt,moreLinkClassNames:xt,moreLinkContent:xt,moreLinkDidMount:xt,moreLinkWillUnmount:xt},vt={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30},mt={datesSet:xt,eventsSet:xt,eventAdd:xt,eventChange:xt,eventRemove:xt,windowResize:xt,eventClick:xt,eventMouseEnter:xt,eventMouseLeave:xt,select:xt,unselect:xt,loading:xt,_unmount:xt,_beforeprint:xt,_afterprint:xt,_noEventDrop:xt,_noEventResize:xt,_resize:xt,_scrollRequest:xt},gt={buttonText:xt,buttonHints:xt,views:xt,plugins:xt,initialEvents:xt,events:xt,eventSources:xt},yt={headerToolbar:bt,footerToolbar:bt,buttonText:bt,buttonHints:bt,buttonIcons:bt,dateIncrement:bt};function bt(e,t){return"object"==typeof e&&"object"==typeof t&&e&&t?Me(e,t):e===t}var wt={type:String,component:xt,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:xt,usesMinMaxTime:Boolean,classNames:xt,content:xt,didMount:xt,willUnmount:xt};function kt(e){return De(e,yt)}function St(e,t){var n={},r={};for(var a in t)a in e&&(n[a]=t[a](e[a]));for(var a in e)a in t||(r[a]=e[a]);return{refined:n,extra:r}}function xt(e){return e}function Et(e,t,n,r){for(var a={defs:{},instances:{}},o=jt(n),i=0,l=e;i<l.length;i++){var s=Ft(l[i],t,n,r,o);s&&Tt(s,a)}return a}function Tt(e,t){return void 0===t&&(t={defs:{},instances:{}}),t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function _t(e,t){var n=e.instances[t];if(n){var r=e.defs[n.defId],a=Dt(e,(function(e){return t=r,n=e,Boolean(t.groupId&&t.groupId===n.groupId);var t,n}));return a.defs[r.defId]=r,a.instances[n.instanceId]=n,a}return{defs:{},instances:{}}}function Ct(e,t){return{defs:n(n({},e.defs),t.defs),instances:n(n({},e.instances),t.instances)}}function Dt(e,t){var n=Re(e.defs,t),r=Re(e.instances,(function(e){return n[e.defId]}));return{defs:n,instances:r}}function Rt(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}var Pt={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:xt,overlap:xt,allow:xt,className:Rt,classNames:Rt,color:String,backgroundColor:String,borderColor:String,textColor:String},Nt={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function It(e,t){var n=function(e,t){return Array.isArray(e)?Et(e,null,t,!0):"object"==typeof e&&e?Et([e],null,t,!0):null!=e?String(e):null}(e.constraint,t);return{display:e.display||null,startEditable:null!=e.startEditable?e.startEditable:e.editable,durationEditable:null!=e.durationEditable?e.durationEditable:e.editable,constraints:null!=n?[n]:[],overlap:null!=e.overlap?e.overlap:null,allows:null!=e.allow?[e.allow]:[],backgroundColor:e.backgroundColor||e.color||"",borderColor:e.borderColor||e.color||"",textColor:e.textColor||"",classNames:(e.className||[]).concat(e.classNames||[])}}function Mt(e){return e.reduce(Ot,Nt)}function Ot(e,t){return{display:null!=t.display?t.display:e.display,startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"==typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}var Lt={id:String,groupId:String,title:String,url:String,interactive:Boolean},zt={start:xt,end:xt,date:xt,allDay:Boolean},At=n(n(n({},Lt),zt),{extendedProps:xt});function Ft(e,t,n,r,a){void 0===a&&(a=jt(n));var o=Ht(e,n,a),i=o.refined,l=o.extra,s=function(e,t){var n=null;e&&(n=e.defaultAllDay);null==n&&(n=t.options.defaultAllDay);return n}(t,n),u=function(e,t,n,r){for(var a=0;a<r.length;a+=1){var o=r[a].parse(e,n);if(o){var i=e.allDay;return null==i&&null==(i=t)&&null==(i=o.allDayGuess)&&(i=!1),{allDay:i,duration:o.duration,typeData:o.typeData,typeId:a}}}return null}(i,s,n.dateEnv,n.pluginHooks.recurringTypes);if(u)return(c=Ut(i,l,t?t.sourceId:"",u.allDay,Boolean(u.duration),n)).recurringDef={typeId:u.typeId,typeData:u.typeData,duration:u.duration},{def:c,instance:null};var c,d=function(e,t,n,r){var a,o,i=e.allDay,l=null,s=!1,u=null,c=null!=e.start?e.start:e.date;if(a=n.dateEnv.createMarkerMeta(c))l=a.marker;else if(!r)return null;null!=e.end&&(o=n.dateEnv.createMarkerMeta(e.end));null==i&&(i=null!=t?t:(!a||a.isTimeUnspecified)&&(!o||o.isTimeUnspecified));i&&l&&(l=ge(l));o&&(u=o.marker,i&&(u=ge(u)),l&&u<=l&&(u=null));u?s=!0:r||(s=n.options.forceEventDuration||!1,u=n.dateEnv.add(l,i?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration));return{allDay:i,hasEnd:s,range:{start:l,end:u},forcedStartTzo:a?a.forcedTzo:null,forcedEndTzo:o?o.forcedTzo:null}}(i,s,n,r);return d?{def:c=Ut(i,l,t?t.sourceId:"",d.allDay,d.hasEnd,n),instance:_e(c.defId,d.range,d.forcedStartTzo,d.forcedEndTzo)}:null}function Ht(e,t,n){return void 0===n&&(n=jt(t)),St(e,n)}function jt(e){return n(n(n({},Pt),At),e.pluginHooks.eventRefiners)}function Ut(e,t,r,a,o,i){for(var l={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:ne(),sourceId:r,allDay:a,hasEnd:o,interactive:e.interactive,ui:It(e,i),extendedProps:n(n({},e.extendedProps||{}),t)},s=0,u=i.pluginHooks.eventDefMemberAdders;s<u.length;s++){var c=u[s];n(l,c(e))}return Object.freeze(l.ui.classNames),Object.freeze(l.extendedProps),l}function Vt(e){var t=Math.floor(ve(e.start,e.end))||1,n=ge(e.start);return{start:n,end:pe(n,t)}}function Wt(e,t){void 0===t&&(t=Ue(0));var n=null,r=null;if(e.end){r=ge(e.end);var a=e.end.valueOf()-r.valueOf();a&&a>=$e(t)&&(r=pe(r,1))}return e.start&&(n=ge(e.start),r&&r<=n&&(r=pe(n,1))),{start:n,end:r}}function Bt(e,t,n,r){return"year"===r?Ue(n.diffWholeYears(e,t),"year"):"month"===r?Ue(n.diffWholeMonths(e,t),"month"):(o=t,i=ge(a=e),l=ge(o),{years:0,months:0,days:Math.round(ve(i,l)),milliseconds:o.valueOf()-l.valueOf()-(a.valueOf()-i.valueOf())});var a,o,i,l}function $t(e,t){var n,r,a=[],o=t.start;for(e.sort(qt),n=0;n<e.length;n+=1)(r=e[n]).start>o&&a.push({start:o,end:r.start}),r.end>o&&(o=r.end);return o<t.end&&a.push({start:o,end:t.end}),a}function qt(e,t){return e.start.valueOf()-t.start.valueOf()}function Yt(e,t){var n=e.start,r=e.end,a=null;return null!==t.start&&(n=null===n?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(null===n||null===r||n<r)&&(a={start:n,end:r}),a}function Gt(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function Kt(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function Qt(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function Xt(e,t,n,r){var a={},o={},i={},l=[],s=[],u=en(e.defs,t);for(var c in e.defs){"inverse-background"===(p=u[(w=e.defs[c]).defId]).display&&(w.groupId?(a[w.groupId]=[],i[w.groupId]||(i[w.groupId]=w)):o[c]=[])}for(var d in e.instances){var f=e.instances[d],p=u[(w=e.defs[f.defId]).defId],h=f.range,v=!w.allDay&&r?Wt(h,r):h,m=Yt(v,n);m&&("inverse-background"===p.display?w.groupId?a[w.groupId].push(m):o[f.defId].push(m):"none"!==p.display&&("background"===p.display?l:s).push({def:w,ui:p,instance:f,range:m,isStart:v.start&&v.start.valueOf()===m.start.valueOf(),isEnd:v.end&&v.end.valueOf()===m.end.valueOf()}))}for(var g in a)for(var y=0,b=$t(a[g],n);y<b.length;y++){var w,k=b[y];p=u[(w=i[g]).defId];l.push({def:w,ui:p,instance:null,range:k,isStart:!1,isEnd:!1})}for(var c in o)for(var S=0,x=$t(o[c],n);S<x.length;S++){k=x[S];l.push({def:e.defs[c],ui:u[c],instance:null,range:k,isStart:!1,isEnd:!1})}return{bg:l,fg:s}}function Zt(e,t){e.fcSeg=t}function Jt(e){return e.fcSeg||e.parentNode.fcSeg||null}function en(e,t){return Pe(e,(function(e){return tn(e,t)}))}function tn(e,t){var n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),Mt(n)}function nn(e,t){var n=e.map(rn);return n.sort((function(e,n){return function(e,t,n){var r,a;for(r=0;r<n.length;r+=1)if(a=oe(e,t,n[r]))return a;return 0}(e,n,t)})),n.map((function(e){return e._seg}))}function rn(e){var t=e.eventRange,r=t.def,a=t.instance?t.instance.range:t.range,o=a.start?a.start.valueOf():0,i=a.end?a.end.valueOf():0;return n(n(n({},r.extendedProps),r),{id:r.publicId,start:o,end:i,duration:i-o,allDay:Number(r.allDay),_seg:e})}function an(e,t){for(var n=t.pluginHooks.isDraggableTransformers,r=e.eventRange,a=r.def,o=r.ui,i=o.startEditable,l=0,s=n;l<s.length;l++){i=(0,s[l])(i,a,o,t)}return i}function on(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function ln(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function sn(e,t,n,r,a,o,i){var l=n.dateEnv,s=n.options,u=s.displayEventTime,c=s.displayEventEnd,d=e.eventRange.def,f=e.eventRange.instance;null==u&&(u=!1!==r),null==c&&(c=!1!==a);var p=f.range.start,h=f.range.end,v=o||e.start||e.eventRange.range.start,m=i||e.end||e.eventRange.range.end,g=ge(p).valueOf()===ge(v).valueOf(),y=ge(he(h,-1)).valueOf()===ge(he(m,-1)).valueOf();return u&&!d.allDay&&(g||y)?(v=g?p:v,m=y?h:m,c&&d.hasEnd?l.formatRange(v,m,t,{forcedStartTzo:o?null:f.forcedStartTzo,forcedEndTzo:i?null:f.forcedEndTzo}):l.format(v,t,{forcedTzo:o?null:f.forcedStartTzo})):""}function un(e,t,n){var r=e.eventRange.range;return{isPast:r.end<(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&Qt(t,r.start)}}function cn(e){return e.instance?e.instance.instanceId:e.def.defId+":"+e.range.start.toISOString()}function dn(e,t){var n=e.eventRange,r=n.def,a=n.instance,o=r.url;if(o)return{href:o};var i=t.emitter,l=t.options.eventInteractive;return null==l&&null==(l=r.interactive)&&(l=Boolean(i.hasHandlers("eventClick"))),l?ee((function(e){i.trigger("eventClick",{el:e.target,event:new Rn(t,r,a),jsEvent:e,view:t.viewApi})})):{}}var fn={start:xt,end:xt,allDay:Boolean};function pn(e,t,r){var a=function(e,t){var r=St(e,fn),a=r.refined,o=r.extra,i=a.start?t.createMarkerMeta(a.start):null,l=a.end?t.createMarkerMeta(a.end):null,s=a.allDay;null==s&&(s=i&&i.isTimeUnspecified&&(!l||l.isTimeUnspecified));return n({range:{start:i?i.marker:null,end:l?l.marker:null},allDay:s},o)}(e,t),o=a.range;if(!o.start)return null;if(!o.end){if(null==r)return null;o.end=t.add(o.start,r)}return a}function hn(e,t,r){return n(n({},vn(e,t,r)),{timeZone:t.timeZone})}function vn(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}function mn(e,t,n){var r=Ht({editable:!1},n),a=Ut(r.refined,r.extra,"",e.allDay,!0,n);return{def:a,ui:tn(a,t),instance:_e(a.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}function gn(e,t,r){r.emitter.trigger("select",n(n({},yn(e,r)),{jsEvent:t?t.origEvent:null,view:r.viewApi||r.calendarApi.view}))}function yn(e,t){for(var r,a,o={},i=0,l=t.pluginHooks.dateSpanTransforms;i<l.length;i++){var s=l[i];n(o,s(e,t))}return n(o,(r=e,a=t.dateEnv,n(n({},vn(r.range,a,r.allDay)),{allDay:r.allDay}))),o}function bn(e,t,n){var r=n.dateEnv,a=n.options,o=t;return e?(o=ge(o),o=r.add(o,a.defaultAllDayEventDuration)):o=r.add(o,a.defaultTimedEventDuration),o}function wn(e,t,n,r){var a=en(e.defs,t),o={defs:{},instances:{}};for(var i in e.defs){var l=e.defs[i];o.defs[i]=kn(l,a[i],n,r)}for(var s in e.instances){var u=e.instances[s];l=o.defs[u.defId];o.instances[s]=Sn(u,l,a[u.defId],n,r)}return o}function kn(e,t,r,a){var o=r.standardProps||{};null==o.hasEnd&&t.durationEditable&&(r.startDelta||r.endDelta)&&(o.hasEnd=!0);var i=n(n(n({},e),o),{ui:n(n({},e.ui),o.ui)});r.extendedProps&&(i.extendedProps=n(n({},i.extendedProps),r.extendedProps));for(var l=0,s=a.pluginHooks.eventDefMutationAppliers;l<s.length;l++){(0,s[l])(i,r,a)}return!i.hasEnd&&a.options.forceEventDuration&&(i.hasEnd=!0),i}function Sn(e,t,r,a,o){var i=o.dateEnv,l=a.standardProps&&!0===a.standardProps.allDay,s=a.standardProps&&!1===a.standardProps.hasEnd,u=n({},e);return l&&(u.range=Vt(u.range)),a.datesDelta&&r.startEditable&&(u.range={start:i.add(u.range.start,a.datesDelta),end:i.add(u.range.end,a.datesDelta)}),a.startDelta&&r.durationEditable&&(u.range={start:i.add(u.range.start,a.startDelta),end:u.range.end}),a.endDelta&&r.durationEditable&&(u.range={start:u.range.start,end:i.add(u.range.end,a.endDelta)}),s&&(u.range={start:u.range.start,end:bn(t.allDay,u.range.start,o)}),t.allDay&&(u.range={start:ge(u.range.start),end:ge(u.range.end)}),u.range.end<u.range.start&&(u.range.end=bn(t.allDay,u.range.start,o)),u}var xn=function(){function e(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}return Object.defineProperty(e.prototype,"calendar",{get:function(){return this.getCurrentData().calendarApi},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.getCurrentData().viewTitle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)},enumerable:!1,configurable:!0}),e.prototype.getOption=function(e){return this.getCurrentData().options[e]},e}(),En={id:String,defaultAllDay:Boolean,url:String,format:String,events:xt,eventDataTransform:xt,success:xt,failure:xt};function Tn(e,t,n){var r;if(void 0===n&&(n=_n(t)),"string"==typeof e?r={url:e}:"function"==typeof e||Array.isArray(e)?r={events:e}:"object"==typeof e&&e&&(r=e),r){var a=St(r,n),o=a.refined,i=a.extra,l=function(e,t){for(var n=t.pluginHooks.eventSourceDefs,r=n.length-1;r>=0;r-=1){var a=n[r].parseMeta(e);if(a)return{sourceDefId:r,meta:a}}return null}(o,t);if(l)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:o.defaultAllDay,eventDataTransform:o.eventDataTransform,success:o.success,failure:o.failure,publicId:o.id||"",sourceId:ne(),sourceDefId:l.sourceDefId,meta:l.meta,ui:It(o,t),extendedProps:i}}return null}function _n(e){return n(n(n({},Pt),En),e.pluginHooks.eventSourceRefiners)}function Cn(e,t){return"function"==typeof e&&(e=e()),null==e?t.createNowMarker():t.createMarker(e)}var Dn=function(){function e(){}return e.prototype.getCurrentData=function(){return this.currentDataManager.getCurrentData()},e.prototype.dispatch=function(e){return this.currentDataManager.dispatch(e)},Object.defineProperty(e.prototype,"view",{get:function(){return this.getCurrentData().viewApi},enumerable:!1,configurable:!0}),e.prototype.batchRendering=function(e){e()},e.prototype.updateSize=function(){this.trigger("_resize",!0)},e.prototype.setOption=function(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})},e.prototype.getOption=function(e){return this.currentDataManager.currentCalendarOptionsInput[e]},e.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.getCurrentData().availableRawLocales)},e.prototype.on=function(e,t){var n=this.currentDataManager;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):console.warn("Unknown listener name '"+e+"'")},e.prototype.off=function(e,t){this.currentDataManager.emitter.off(e,t)},e.prototype.trigger=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];(t=this.currentDataManager.emitter).trigger.apply(t,o([e],n))},e.prototype.changeView=function(e,t){var n=this;this.batchRendering((function(){if(n.unselect(),t)if(t.start&&t.end)n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),n.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{var r=n.getCurrentData().dateEnv;n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:r.createMarker(t)})}else n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})}))},e.prototype.zoomTo=function(e,t){var n;t=t||"day",n=this.getCurrentData().viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),n?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:n.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})},e.prototype.getUnitViewSpec=function(e){var t,n,r=this.getCurrentData(),a=r.viewSpecs,o=r.toolbarConfig,i=[].concat(o.header?o.header.viewsWithButtons:[],o.footer?o.footer.viewsWithButtons:[]);for(var l in a)i.push(l);for(t=0;t<i.length;t+=1)if((n=a[i[t]])&&n.singleUnit===e)return n;return null},e.prototype.prev=function(){this.unselect(),this.dispatch({type:"PREV"})},e.prototype.next=function(){this.unselect(),this.dispatch({type:"NEXT"})},e.prototype.prevYear=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})},e.prototype.nextYear=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})},e.prototype.today=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:Cn(e.calendarOptions.now,e.dateEnv)})},e.prototype.gotoDate=function(e){var t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})},e.prototype.incrementDate=function(e){var t=this.getCurrentData(),n=Ue(e);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,n)}))},e.prototype.getDate=function(){var e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)},e.prototype.formatDate=function(e,t){var n=this.getCurrentData().dateEnv;return n.format(n.createMarker(e),pt(t))},e.prototype.formatRange=function(e,t,n){var r=this.getCurrentData().dateEnv;return r.formatRange(r.createMarker(e),r.createMarker(t),pt(n),n)},e.prototype.formatIso=function(e,t){var n=this.getCurrentData().dateEnv;return n.formatIso(n.createMarker(e),{omitTime:t})},e.prototype.select=function(e,t){var n;n=null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t};var r=this.getCurrentData(),a=pn(n,r.dateEnv,Ue({days:1}));a&&(this.dispatch({type:"SELECT_DATES",selection:a}),gn(a,null,r))},e.prototype.unselect=function(e){var t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),function(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}(e,t))},e.prototype.addEvent=function(e,t){if(e instanceof Rn){var n=e._def,r=e._instance;return this.getCurrentData().eventStore.defs[n.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Tt({def:n,instance:r})}),this.triggerEventAdd(e)),e}var a,o=this.getCurrentData();if(t instanceof H)a=t.internalEventSource;else if("boolean"==typeof t)t&&(a=Ie(o.eventSources)[0]);else if(null!=t){var i=this.getEventSourceById(t);if(!i)return console.warn('Could not find an event source with ID "'+t+'"'),null;a=i.internalEventSource}var l=Ft(e,a,o,!1);if(l){var s=new Rn(o,l.def,l.def.recurringDef?null:l.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Tt(l)}),this.triggerEventAdd(s),s}return null},e.prototype.triggerEventAdd=function(e){var t=this;this.getCurrentData().emitter.trigger("eventAdd",{event:e,relatedEvents:[],revert:function(){t.dispatch({type:"REMOVE_EVENTS",eventStore:Pn(e)})}})},e.prototype.getEventById=function(e){var t=this.getCurrentData(),n=t.eventStore,r=n.defs,a=n.instances;for(var o in e=String(e),r){var i=r[o];if(i.publicId===e){if(i.recurringDef)return new Rn(t,i,null);for(var l in a){var s=a[l];if(s.defId===i.defId)return new Rn(t,i,s)}}}return null},e.prototype.getEvents=function(){var e=this.getCurrentData();return Nn(e.eventStore,e)},e.prototype.removeAllEvents=function(){this.dispatch({type:"REMOVE_ALL_EVENTS"})},e.prototype.getEventSources=function(){var e=this.getCurrentData(),t=e.eventSources,n=[];for(var r in t)n.push(new H(e,t[r]));return n},e.prototype.getEventSourceById=function(e){var t=this.getCurrentData(),n=t.eventSources;for(var r in e=String(e),n)if(n[r].publicId===e)return new H(t,n[r]);return null},e.prototype.addEventSource=function(e){var t=this.getCurrentData();if(e instanceof H)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;var n=Tn(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new H(t,n)):null},e.prototype.removeAllEventSources=function(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})},e.prototype.refetchEvents=function(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})},e.prototype.scrollToTime=function(e){var t=Ue(e);t&&this.trigger("_scrollRequest",{time:t})},e}(),Rn=function(){function e(e,t,n){this._context=e,this._def=t,this._instance=n||null}return e.prototype.setProp=function(e,t){var n,r;if(e in zt)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===e)t=Lt[e](t),this.mutate({standardProps:{publicId:t}});else if(e in Lt)t=Lt[e](t),this.mutate({standardProps:(n={},n[e]=t,n)});else if(e in Pt){var a=Pt[e](t);"color"===e?a={backgroundColor:t,borderColor:t}:"editable"===e?a={startEditable:t,durationEditable:t}:((r={})[e]=t,a=r),this.mutate({standardProps:{ui:a}})}else console.warn("Could not set prop '"+e+"'. Use setExtendedProp instead.")},e.prototype.setExtendedProp=function(e,t){var n;this.mutate({extendedProps:(n={},n[e]=t,n)})},e.prototype.setStart=function(e,t){void 0===t&&(t={});var n=this._context.dateEnv,r=n.createMarker(e);if(r&&this._instance){var a=Bt(this._instance.range.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:a}):this.mutate({startDelta:a})}},e.prototype.setEnd=function(e,t){void 0===t&&(t={});var n,r=this._context.dateEnv;if((null==e||(n=r.createMarker(e)))&&this._instance)if(n){var a=Bt(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:a})}else this.mutate({standardProps:{hasEnd:!1}})},e.prototype.setDates=function(e,t,n){void 0===n&&(n={});var r,a,o,i=this._context.dateEnv,l={allDay:n.allDay},s=i.createMarker(e);if(s&&((null==t||(r=i.createMarker(t)))&&this._instance)){var u=this._instance.range;!0===n.allDay&&(u=Vt(u));var c=Bt(u.start,s,i,n.granularity);if(r){var d=Bt(u.end,r,i,n.granularity);o=d,(a=c).years===o.years&&a.months===o.months&&a.days===o.days&&a.milliseconds===o.milliseconds?this.mutate({datesDelta:c,standardProps:l}):this.mutate({startDelta:c,endDelta:d,standardProps:l})}else l.hasEnd=!1,this.mutate({datesDelta:c,standardProps:l})}},e.prototype.moveStart=function(e){var t=Ue(e);t&&this.mutate({startDelta:t})},e.prototype.moveEnd=function(e){var t=Ue(e);t&&this.mutate({endDelta:t})},e.prototype.moveDates=function(e){var t=Ue(e);t&&this.mutate({datesDelta:t})},e.prototype.setAllDay=function(e,t){void 0===t&&(t={});var n={allDay:e},r=t.maintainDuration;null==r&&(r=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})},e.prototype.formatRange=function(e){var t=this._context.dateEnv,n=this._instance,r=pt(e);return this._def.hasEnd?t.formatRange(n.range.start,n.range.end,r,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):t.format(n.range.start,r,{forcedTzo:n.forcedStartTzo})},e.prototype.mutate=function(t){var n=this._instance;if(n){var r=this._def,a=this._context,o=a.getCurrentData().eventStore,i=_t(o,n.instanceId);i=wn(i,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},t,a);var l=new e(a,r,n);this._def=i.defs[r.defId],this._instance=i.instances[n.instanceId],a.dispatch({type:"MERGE_EVENTS",eventStore:i}),a.emitter.trigger("eventChange",{oldEvent:l,event:this,relatedEvents:Nn(i,a,n),revert:function(){a.dispatch({type:"RESET_EVENTS",eventStore:o})}})}},e.prototype.remove=function(){var e=this._context,t=Pn(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert:function(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})},Object.defineProperty(e.prototype,"source",{get:function(){var e=this._def.sourceId;return e?new H(this._context,this._context.getCurrentData().eventSources[e]):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startStr",{get:function(){var e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endStr",{get:function(){var e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._def.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"groupId",{get:function(){return this._def.groupId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allDay",{get:function(){return this._def.allDay},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._def.title},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._def.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"display",{get:function(){return this._def.ui.display||"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startEditable",{get:function(){return this._def.ui.startEditable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"durationEditable",{get:function(){return this._def.ui.durationEditable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"constraint",{get:function(){return this._def.ui.constraints[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overlap",{get:function(){return this._def.ui.overlap},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allow",{get:function(){return this._def.ui.allows[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._def.ui.backgroundColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"borderColor",{get:function(){return this._def.ui.borderColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textColor",{get:function(){return this._def.ui.textColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classNames",{get:function(){return this._def.ui.classNames},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extendedProps",{get:function(){return this._def.extendedProps},enumerable:!1,configurable:!0}),e.prototype.toPlainObject=function(e){void 0===e&&(e={});var t=this._def,r=t.ui,a=this.startStr,o=this.endStr,i={};return t.title&&(i.title=t.title),a&&(i.start=a),o&&(i.end=o),t.publicId&&(i.id=t.publicId),t.groupId&&(i.groupId=t.groupId),t.url&&(i.url=t.url),r.display&&"auto"!==r.display&&(i.display=r.display),e.collapseColor&&r.backgroundColor&&r.backgroundColor===r.borderColor?i.color=r.backgroundColor:(r.backgroundColor&&(i.backgroundColor=r.backgroundColor),r.borderColor&&(i.borderColor=r.borderColor)),r.textColor&&(i.textColor=r.textColor),r.classNames.length&&(i.classNames=r.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?n(i,t.extendedProps):i.extendedProps=t.extendedProps),i},e.prototype.toJSON=function(){return this.toPlainObject()},e}();function Pn(e){var t,n,r=e._def,a=e._instance;return{defs:(t={},t[r.defId]=r,t),instances:a?(n={},n[a.instanceId]=a,n):{}}}function Nn(e,t,n){var r=e.defs,a=e.instances,o=[],i=n?n.instanceId:"";for(var l in a){var s=a[l],u=r[s.defId];s.instanceId!==i&&o.push(new Rn(t,u,s))}return o}var In={};var Mn,On=function(){function e(){}return e.prototype.getMarkerYear=function(e){return e.getUTCFullYear()},e.prototype.getMarkerMonth=function(e){return e.getUTCMonth()},e.prototype.getMarkerDay=function(e){return e.getUTCDate()},e.prototype.arrayToMarker=function(e){return xe(e)},e.prototype.markerToArray=function(e){return Se(e)},e}();Mn=On,In["gregory"]=Mn;var Ln=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;var zn=function(){function e(e){var t=this.timeZone=e.timeZone,n="local"!==t&&"UTC"!==t;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=function(e){return new In[e]}(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,"ISO"===e.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof e.firstDay&&(this.weekDow=e.firstDay),"function"==typeof e.weekNumberCalculation&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=null!=e.weekText?e.weekText:e.locale.options.weekText,this.weekTextLong=(null!=e.weekTextLong?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}return e.prototype.createMarker=function(e){var t=this.createMarkerMeta(e);return null===t?null:t.marker},e.prototype.createNowMarker=function(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):xe(we(new Date))},e.prototype.createMarkerMeta=function(e){if("string"==typeof e)return this.parse(e);var t=null;return"number"==typeof e?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=xe(e)),null!==t&&Ee(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null},e.prototype.parse=function(e){var t=function(e){var t=Ln.exec(e);if(t){var n=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?1e3*Number("0."+t[12]):0));if(Ee(n)){var r=null;return t[13]&&(r=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:n,isTimeUnspecified:!t[6],timeZoneOffset:r}}}return null}(e);if(null===t)return null;var n=t.marker,r=null;return null!==t.timeZoneOffset&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-60*t.timeZoneOffset*1e3):r=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r}},e.prototype.getYear=function(e){return this.calendarSystem.getMarkerYear(e)},e.prototype.getMonth=function(e){return this.calendarSystem.getMarkerMonth(e)},e.prototype.add=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)},e.prototype.subtract=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)},e.prototype.addYears=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)},e.prototype.addMonths=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)},e.prototype.diffWholeYears=function(e,t){var n=this.calendarSystem;return Te(e)===Te(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null},e.prototype.diffWholeMonths=function(e,t){var n=this.calendarSystem;return Te(e)===Te(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null},e.prototype.greatestWholeUnit=function(e,t){var n=this.diffWholeYears(e,t);return null!==n?{unit:"year",value:n}:null!==(n=this.diffWholeMonths(e,t))?{unit:"month",value:n}:(n=function(e,t){var n=me(e,t);return null!==n&&n%7==0?n/7:null}(e,t),null!==n?{unit:"week",value:n}:null!==(n=me(e,t))?{unit:"day",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/36e5}(e,t),ue(n)?{unit:"hour",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/6e4}(e,t),ue(n)?{unit:"minute",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/1e3}(e,t),ue(n)?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}))))},e.prototype.countDurationsBetween=function(e,t,n){var r;return n.years&&null!==(r=this.diffWholeYears(e,t))?r/(Be(n)/365):n.months&&null!==(r=this.diffWholeMonths(e,t))?r/function(e){return Be(e)/30}(n):n.days&&null!==(r=me(e,t))?r/Be(n):(t.valueOf()-e.valueOf())/$e(n)},e.prototype.startOf=function(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?ge(e):"hour"===t?function(e){return xe([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}(e):"minute"===t?function(e){return xe([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}(e):"second"===t?function(e){return xe([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}(e):null},e.prototype.startOfYear=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])},e.prototype.startOfMonth=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])},e.prototype.startOfWeek=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])},e.prototype.computeWeekNumber=function(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):function(e,t,n){var r=e.getUTCFullYear(),a=ye(e,r,t,n);if(a<1)return ye(e,r-1,t,n);var o=ye(e,r+1,t,n);return o>=1?Math.min(a,o):a}(e,this.weekDow,this.weekDoy)},e.prototype.format=function(e,t,n){return void 0===n&&(n={}),t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)},e.prototype.formatRange=function(e,t,n,r){return void 0===r&&(r={}),r.isEndExclusive&&(t=he(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(t)},this,r.defaultSeparator)},e.prototype.formatIso=function(e,t){void 0===t&&(t={});var n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),Ge(e,n,t.omitTime)},e.prototype.timestampToMarker=function(e){return"local"===this.timeZone?xe(we(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?xe(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)},e.prototype.offsetForMarker=function(e){return"local"===this.timeZone?-ke(Se(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Se(e)):null},e.prototype.toDate=function(e,t){return"local"===this.timeZone?ke(Se(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(Se(e))*60):new Date(e.valueOf()-(t||0))},e}(),An=[],Fn={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},Hn=n(n({},Fn),{buttonHints:{prev:"Previous $0",next:"Next $0",today:function(e,t){return"day"===t?"Today":"This "+e}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:function(e){return"Show "+e+" more event"+(1===e?"":"s")}});function jn(e){for(var t=e.length>0?e[0].code:"en",n=An.concat(e),r={en:Hn},a=0,o=n;a<o.length;a++){var i=o[a];r[i.code]=i}return{map:r,defaultCode:t}}function Un(e,t){return"object"!=typeof e||Array.isArray(e)?function(e,t){var n=[].concat(e||[]),r=function(e,t){for(var n=0;n<e.length;n+=1)for(var r=e[n].toLocaleLowerCase().split("-"),a=r.length;a>0;a-=1){var o=r.slice(0,a).join("-");if(t[o])return t[o]}return null}(n,t)||Hn;return Vn(e,n,r)}(e,t):Vn(e.code,[e.code],e)}function Vn(e,t,n){var r=De([Fn,n],["buttonText"]);delete r.code;var a=r.week;return delete r.week,{codeArg:e,codes:t,week:a,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}var Wn,Bn={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function $n(e,t){return Et(function(e){var t;t=!0===e?[{}]:Array.isArray(e)?e.filter((function(e){return e.daysOfWeek})):"object"==typeof e&&e?[e]:[];return t=t.map((function(e){return n(n({},Bn),e)}))}(e),null,t)}function qn(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function Yn(e,t){var n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom&&n}function Gn(){return null==Wn&&(Wn=function(){if("undefined"==typeof document)return!0;var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.innerHTML="<table><tr><td><div></div></td></tr></table>",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);var t=e.querySelector("div").offsetHeight>0;return document.body.removeChild(e),t}()),Wn}var Kn={defs:{},instances:{}},Qn=function(){function e(){this.getKeysForEventDefs=Ze(this._getKeysForEventDefs),this.splitDateSelection=Ze(this._splitDateSpan),this.splitEventStore=Ze(this._splitEventStore),this.splitIndividualUi=Ze(this._splitIndividualUi),this.splitEventDrag=Ze(this._splitInteraction),this.splitEventResize=Ze(this._splitInteraction),this.eventUiBuilders={}}return e.prototype.splitProps=function(e){var t=this,n=this.getKeyInfo(e),r=this.getKeysForEventDefs(e.eventStore),a=this.splitDateSelection(e.dateSelection),o=this.splitIndividualUi(e.eventUiBases,r),i=this.splitEventStore(e.eventStore,r),l=this.splitEventDrag(e.eventDrag),s=this.splitEventResize(e.eventResize),u={};for(var c in this.eventUiBuilders=Pe(n,(function(e,n){return t.eventUiBuilders[n]||Ze(Xn)})),n){var d=n[c],f=i[c]||Kn,p=this.eventUiBuilders[c];u[c]={businessHours:d.businessHours||e.businessHours,dateSelection:a[c]||null,eventStore:f,eventUiBases:p(e.eventUiBases[""],d.ui,o[c]),eventSelection:f.instances[e.eventSelection]?e.eventSelection:"",eventDrag:l[c]||null,eventResize:s[c]||null}}return u},e.prototype._splitDateSpan=function(e){var t={};if(e)for(var n=0,r=this.getKeysForDateSpan(e);n<r.length;n++){t[r[n]]=e}return t},e.prototype._getKeysForEventDefs=function(e){var t=this;return Pe(e.defs,(function(e){return t.getKeysForEventDef(e)}))},e.prototype._splitEventStore=function(e,t){var n=e.defs,r=e.instances,a={};for(var o in n)for(var i=0,l=t[o];i<l.length;i++){a[f=l[i]]||(a[f]={defs:{},instances:{}}),a[f].defs[o]=n[o]}for(var s in r)for(var u=r[s],c=0,d=t[u.defId];c<d.length;c++){var f;a[f=d[c]]&&(a[f].instances[s]=u)}return a},e.prototype._splitIndividualUi=function(e,t){var n={};for(var r in e)if(r)for(var a=0,o=t[r];a<o.length;a++){var i=o[a];n[i]||(n[i]={}),n[i][r]=e[r]}return n},e.prototype._splitInteraction=function(e){var t={};if(e){var n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),a=this._splitEventStore(e.mutatedEvents,r),o=function(r){t[r]||(t[r]={affectedEvents:n[r]||Kn,mutatedEvents:a[r]||Kn,isEvent:e.isEvent})};for(var i in n)o(i);for(var i in a)o(i)}return t},e}();function Xn(e,t,r){var a=[];e&&a.push(e),t&&a.push(t);var o={"":Mt(a)};return r&&n(o,r),o}function Zn(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:Boolean(r&&!Qt(r.activeRange,e)),isOther:Boolean(r&&!Qt(r.currentRange,e)),isToday:Boolean(t&&Qt(t,e)),isPast:Boolean(n?e<n:!!t&&e<t.start),isFuture:Boolean(n?e>n:!!t&&e>=t.end)}}function Jn(e,t){var n=["fc-day","fc-day-"+de[e.dow]];return e.isDisabled?n.push("fc-day-disabled"):(e.isToday&&(n.push("fc-day-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-day-past"),e.isFuture&&n.push("fc-day-future"),e.isOther&&n.push("fc-day-other")),n}var er=pt({year:"numeric",month:"long",day:"numeric"}),tr=pt({week:"long"});function nr(e,t,r,a){void 0===r&&(r="day"),void 0===a&&(a=!0);var o=e.dateEnv,i=e.options,l=e.calendarApi,s=o.format(t,"week"===r?tr:er);if(i.navLinks){var u=o.toDate(t),c=function(e){var n="day"===r?i.navLinkDayClick:"week"===r?i.navLinkWeekClick:null;"function"==typeof n?n.call(l,o.toDate(t),e):("string"==typeof n&&(r=n),l.zoomTo(t,r))};return n({title:le(i.navLinkHint,[s,u],s),"data-navlink":""},a?J(c):{onClick:c})}return{"aria-label":s}}var rr,ar=null;function or(){return null===ar&&(ar=function(){var e=document.createElement("div");B(e,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),e.innerHTML="<div></div>",document.body.appendChild(e);var t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return j(e),t}()),ar}function ir(){return rr||(rr=function(){var e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);var t=lr(e);return document.body.removeChild(e),t}()),rr}function lr(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function sr(e,t,n){void 0===t&&(t=!1);var r=n?e.getBoundingClientRect():ur(e),a=function(e,t){void 0===t&&(t=!1);var n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,a=parseInt(n.borderRightWidth,10)||0,o=parseInt(n.borderTopWidth,10)||0,i=parseInt(n.borderBottomWidth,10)||0,l=lr(e),s=l.y-r-a,u={borderLeft:r,borderRight:a,borderTop:o,borderBottom:i,scrollbarBottom:l.x-o-i,scrollbarLeft:0,scrollbarRight:0};return or()&&"rtl"===n.direction?u.scrollbarLeft=s:u.scrollbarRight=s,t&&(u.paddingLeft=parseInt(n.paddingLeft,10)||0,u.paddingRight=parseInt(n.paddingRight,10)||0,u.paddingTop=parseInt(n.paddingTop,10)||0,u.paddingBottom=parseInt(n.paddingBottom,10)||0),u}(e,t),o={left:r.left+a.borderLeft+a.scrollbarLeft,right:r.right-a.borderRight-a.scrollbarRight,top:r.top+a.borderTop,bottom:r.bottom-a.borderBottom-a.scrollbarBottom};return t&&(o.left+=a.paddingLeft,o.right-=a.paddingRight,o.top+=a.paddingTop,o.bottom-=a.paddingBottom),o}function ur(e){var t=e.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function cr(e){for(var t=[];e instanceof HTMLElement;){var n=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}var dr=function(){function e(){this.handlers={},this.thisContext=null}return e.prototype.setThisContext=function(e){this.thisContext=e},e.prototype.setOptions=function(e){this.options=e},e.prototype.on=function(e,t){!function(e,t,n){(e[t]||(e[t]=[])).push(n)}(this.handlers,e,t)},e.prototype.off=function(e,t){!function(e,t,n){n?e[t]&&(e[t]=e[t].filter((function(e){return e!==n}))):delete e[t]}(this.handlers,e,t)},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=this.handlers[e]||[],a=this.options&&this.options[e],o=[].concat(a||[],r),i=0,l=o;i<l.length;i++){var s=l[i];s.apply(this.thisContext,t)}},e.prototype.hasHandlers=function(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])},e}();var fr=function(){function e(e,t,n,r){this.els=t;var a=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(a.left),r&&this.buildElVerticals(a.top)}return e.prototype.buildElHorizontals=function(e){for(var t=[],n=[],r=0,a=this.els;r<a.length;r++){var o=a[r].getBoundingClientRect();t.push(o.left-e),n.push(o.right-e)}this.lefts=t,this.rights=n},e.prototype.buildElVerticals=function(e){for(var t=[],n=[],r=0,a=this.els;r<a.length;r++){var o=a[r].getBoundingClientRect();t.push(o.top-e),n.push(o.bottom-e)}this.tops=t,this.bottoms=n},e.prototype.leftToIndex=function(e){var t,n=this.lefts,r=this.rights,a=n.length;for(t=0;t<a;t+=1)if(e>=n[t]&&e<r[t])return t},e.prototype.topToIndex=function(e){var t,n=this.tops,r=this.bottoms,a=n.length;for(t=0;t<a;t+=1)if(e>=n[t]&&e<r[t])return t},e.prototype.getWidth=function(e){return this.rights[e]-this.lefts[e]},e.prototype.getHeight=function(e){return this.bottoms[e]-this.tops[e]},e}(),pr=function(){function e(){}return e.prototype.getMaxScrollTop=function(){return this.getScrollHeight()-this.getClientHeight()},e.prototype.getMaxScrollLeft=function(){return this.getScrollWidth()-this.getClientWidth()},e.prototype.canScrollVertically=function(){return this.getMaxScrollTop()>0},e.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},e.prototype.canScrollUp=function(){return this.getScrollTop()>0},e.prototype.canScrollDown=function(){return this.getScrollTop()<this.getMaxScrollTop()},e.prototype.canScrollLeft=function(){return this.getScrollLeft()>0},e.prototype.canScrollRight=function(){return this.getScrollLeft()<this.getMaxScrollLeft()},e}(),hr=function(e){function n(t){var n=e.call(this)||this;return n.el=t,n}return t(n,e),n.prototype.getScrollTop=function(){return this.el.scrollTop},n.prototype.getScrollLeft=function(){return this.el.scrollLeft},n.prototype.setScrollTop=function(e){this.el.scrollTop=e},n.prototype.setScrollLeft=function(e){this.el.scrollLeft=e},n.prototype.getScrollWidth=function(){return this.el.scrollWidth},n.prototype.getScrollHeight=function(){return this.el.scrollHeight},n.prototype.getClientHeight=function(){return this.el.clientHeight},n.prototype.getClientWidth=function(){return this.el.clientWidth},n}(pr),vr=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n.prototype.getScrollTop=function(){return window.pageYOffset},n.prototype.getScrollLeft=function(){return window.pageXOffset},n.prototype.setScrollTop=function(e){window.scroll(window.pageXOffset,e)},n.prototype.setScrollLeft=function(e){window.scroll(e,window.pageYOffset)},n.prototype.getScrollWidth=function(){return document.documentElement.scrollWidth},n.prototype.getScrollHeight=function(){return document.documentElement.scrollHeight},n.prototype.getClientHeight=function(){return document.documentElement.clientHeight},n.prototype.getClientWidth=function(){return document.documentElement.clientWidth},n}(pr),mr=function(){function e(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}return e.prototype.setIconOverride=function(e){var t,r;if("object"==typeof e&&e){for(r in t=n({},this.iconClasses),e)t[r]=this.applyIconOverridePrefix(e[r]);this.iconClasses=t}else!1===e&&(this.iconClasses={})},e.prototype.applyIconOverridePrefix=function(e){var t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e},e.prototype.getClass=function(e){return this.classes[e]||""},e.prototype.getIconClass=function(e,t){var n;return(n=t&&this.rtlIconClasses&&this.rtlIconClasses[e]||this.iconClasses[e])?this.baseIconClass+" "+n:""},e.prototype.getCustomButtonIconClass=function(e){var t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption])?this.baseIconClass+" "+this.applyIconOverridePrefix(t):""},e}();mr.prototype.classes={},mr.prototype.iconClasses={},mr.prototype.baseIconClass="",mr.prototype.iconOverridePrefix="";var gr=function(){function e(e,t,r,a){var o=this;this.execFunc=e,this.emitter=t,this.scrollTime=r,this.scrollTimeReset=a,this.handleScrollRequest=function(e){o.queuedRequest=n({},o.queuedRequest||{},e),o.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}return e.prototype.detach=function(){this.emitter.off("_scrollRequest",this.handleScrollRequest)},e.prototype.update=function(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()},e.prototype.fireInitialScroll=function(){this.handleScrollRequest({time:this.scrollTime})},e.prototype.drain=function(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)},e}(),yr=A({});function br(e,t,n,r,a,o,i,l,s,u,c,d,f){return{dateEnv:a,options:n,pluginHooks:i,emitter:u,dispatch:l,getCurrentData:s,calendarApi:c,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:o,isRtl:"rtl"===n.direction,addResizeHandler:function(e){u.on("_resize",e)},removeResizeHandler:function(e){u.off("_resize",e)},createScrollResponder:function(e){return new gr(e,u,Ue(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:d,unregisterInteractiveComponent:f}}var wr=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t(r,e),r.prototype.shouldComponentUpdate=function(e,t){return this.debug&&console.log(Oe(e,this.props),Oe(t,this.state)),!Le(this.props,e,this.propEquality)||!Le(this.state,t,this.stateEquality)},r.prototype.safeSetState=function(e){Le(this.state,n(n({},this.state),e),this.stateEquality)||this.setState(e)},r.addPropsEquality=Sr,r.addStateEquality=xr,r.contextType=yr,r}(M);wr.prototype.propEquality={},wr.prototype.stateEquality={};var kr=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n.contextType=yr,n}(wr);function Sr(e){var t=Object.create(this.prototype.propEquality);n(t,e),this.prototype.propEquality=t}function xr(e){var t=Object.create(this.prototype.stateEquality);n(t,e),this.prototype.stateEquality=t}function Er(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Tr=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.uid=ne(),t}return t(n,e),n.prototype.prepareHits=function(){},n.prototype.queryHit=function(e,t,n,r){return null},n.prototype.isValidSegDownEl=function(e){return!this.props.eventDrag&&!this.props.eventResize&&!U(e,".fc-event-mirror")},n.prototype.isValidDateDownEl=function(e){return!(U(e,".fc-event:not(.fc-bg-event)")||U(e,".fc-more-link")||U(e,"a[data-navlink]")||U(e,".fc-popover"))},n}(kr);function _r(e){return{id:ne(),deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,contentTypeHandlers:e.contentTypeHandlers||{},listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function Cr(){var e,t=[],r=[];return function(a,o){return e&&Xe(a,t)&&Xe(o,r)||(e=function(e,t){var r={},a={reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,contentTypeHandlers:{},listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function o(e){for(var t=0,i=e;t<i.length;t++){var l=i[t];r[l.id]||(r[l.id]=!0,o(l.deps),u=l,a={reducers:(s=a).reducers.concat(u.reducers),isLoadingFuncs:s.isLoadingFuncs.concat(u.isLoadingFuncs),contextInit:s.contextInit.concat(u.contextInit),eventRefiners:n(n({},s.eventRefiners),u.eventRefiners),eventDefMemberAdders:s.eventDefMemberAdders.concat(u.eventDefMemberAdders),eventSourceRefiners:n(n({},s.eventSourceRefiners),u.eventSourceRefiners),isDraggableTransformers:s.isDraggableTransformers.concat(u.isDraggableTransformers),eventDragMutationMassagers:s.eventDragMutationMassagers.concat(u.eventDragMutationMassagers),eventDefMutationAppliers:s.eventDefMutationAppliers.concat(u.eventDefMutationAppliers),dateSelectionTransformers:s.dateSelectionTransformers.concat(u.dateSelectionTransformers),datePointTransforms:s.datePointTransforms.concat(u.datePointTransforms),dateSpanTransforms:s.dateSpanTransforms.concat(u.dateSpanTransforms),views:n(n({},s.views),u.views),viewPropsTransformers:s.viewPropsTransformers.concat(u.viewPropsTransformers),isPropsValid:u.isPropsValid||s.isPropsValid,externalDefTransforms:s.externalDefTransforms.concat(u.externalDefTransforms),viewContainerAppends:s.viewContainerAppends.concat(u.viewContainerAppends),eventDropTransformers:s.eventDropTransformers.concat(u.eventDropTransformers),calendarInteractions:s.calendarInteractions.concat(u.calendarInteractions),componentInteractions:s.componentInteractions.concat(u.componentInteractions),themeClasses:n(n({},s.themeClasses),u.themeClasses),eventSourceDefs:s.eventSourceDefs.concat(u.eventSourceDefs),cmdFormatter:u.cmdFormatter||s.cmdFormatter,recurringTypes:s.recurringTypes.concat(u.recurringTypes),namedTimeZonedImpl:u.namedTimeZonedImpl||s.namedTimeZonedImpl,initialView:s.initialView||u.initialView,elementDraggingImpl:s.elementDraggingImpl||u.elementDraggingImpl,optionChangeHandlers:n(n({},s.optionChangeHandlers),u.optionChangeHandlers),scrollGridImpl:u.scrollGridImpl||s.scrollGridImpl,contentTypeHandlers:n(n({},s.contentTypeHandlers),u.contentTypeHandlers),listenerRefiners:n(n({},s.listenerRefiners),u.listenerRefiners),optionRefiners:n(n({},s.optionRefiners),u.optionRefiners),propSetHandlers:n(n({},s.propSetHandlers),u.propSetHandlers)})}var s,u}return e&&o(e),o(t),a}(a,o)),t=a,r=o,e}}var Dr=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n}(mr);function Rr(e,t,r,a){if(t[e])return t[e];var o=function(e,t,r,a){var o=r[e],i=a[e],l=function(e){return o&&null!==o[e]?o[e]:i&&null!==i[e]?i[e]:null},s=l("component"),u=l("superType"),c=null;if(u){if(u===e)throw new Error("Can't have a custom view type that references itself");c=Rr(u,t,r,a)}!s&&c&&(s=c.component);if(!s)return null;return{type:e,component:s,defaults:n(n({},c?c.defaults:{}),o?o.rawOptions:{}),overrides:n(n({},c?c.overrides:{}),i?i.rawOptions:{})}}(e,t,r,a);return o&&(t[e]=o),o}Dr.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},Dr.prototype.baseIconClass="fc-icon",Dr.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},Dr.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},Dr.prototype.iconOverrideOption="buttonIcons",Dr.prototype.iconOverrideCustomButtonOption="icon",Dr.prototype.iconOverridePrefix="fc-icon-";var Pr=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=L(),t.handleRootEl=function(e){Er(t.rootElRef,e),t.props.elRef&&Er(t.props.elRef,e)},t}return t(n,e),n.prototype.render=function(){var e=this,t=this.props,n=t.hookProps;return O(Or,{hookProps:n,didMount:t.didMount,willUnmount:t.willUnmount,elRef:this.handleRootEl},(function(r){return O(Ir,{hookProps:n,content:t.content,defaultContent:t.defaultContent,backupElRef:e.rootElRef},(function(e,a){return t.children(r,zr(t.classNames,n),e,a)}))}))},n}(kr),Nr=A(0);function Ir(e){return O(Nr.Consumer,null,(function(t){return O(Mr,n({renderId:t},e))}))}var Mr=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.innerElRef=L(),t}return t(r,e),r.prototype.render=function(){return this.props.children(this.innerElRef,this.renderInnerContent())},r.prototype.componentDidMount=function(){this.updateCustomContent()},r.prototype.componentDidUpdate=function(){this.updateCustomContent()},r.prototype.componentWillUnmount=function(){this.customContentInfo&&this.customContentInfo.destroy&&this.customContentInfo.destroy()},r.prototype.renderInnerContent=function(){var e=this.customContentInfo,t=this.getInnerContent(),r=this.getContentMeta(t);return e&&e.contentKey===r.contentKey?e&&(e.contentVal=t[r.contentKey]):(e&&(e.destroy&&e.destroy(),e=this.customContentInfo=null),r.contentKey&&(e=this.customContentInfo=n({contentKey:r.contentKey,contentVal:t[r.contentKey]},r.buildLifecycleFuncs()))),e?[]:t},r.prototype.getInnerContent=function(){var e=this.props,t=Ar(e.content,e.hookProps);return void 0===t&&(t=Ar(e.defaultContent,e.hookProps)),null==t?null:t},r.prototype.getContentMeta=function(e){var t=this.context.pluginHooks.contentTypeHandlers,n="",r=null;if(e)for(var a in t)if(void 0!==e[a]){n=a,r=t[a];break}return{contentKey:n,buildLifecycleFuncs:r}},r.prototype.updateCustomContent=function(){this.customContentInfo&&this.customContentInfo.render(this.innerElRef.current||this.props.backupElRef.current,this.customContentInfo.contentVal)},r}(kr),Or=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleRootEl=function(e){t.rootEl=e,t.props.elRef&&Er(t.props.elRef,e)},t}return t(r,e),r.prototype.render=function(){return this.props.children(this.handleRootEl)},r.prototype.componentDidMount=function(){var e=this.props.didMount;e&&e(n(n({},this.props.hookProps),{el:this.rootEl}))},r.prototype.componentWillUnmount=function(){var e=this.props.willUnmount;e&&e(n(n({},this.props.hookProps),{el:this.rootEl}))},r}(kr);function Lr(){var e,t,n=[];return function(r,a){return t&&Me(t,a)&&r===e||(e=r,t=a,n=zr(r,a)),n}}function zr(e,t){return"function"==typeof e&&(e=e(t)),Rt(e)}function Ar(e,t){return"function"==typeof e?e(t,O):e}var Fr=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.normalizeClassNames=Lr(),t}return t(n,e),n.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r={view:t.viewApi},a=this.normalizeClassNames(n.viewClassNames,r);return O(Or,{hookProps:r,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount,elRef:e.elRef},(function(t){return e.children(t,["fc-"+e.viewSpec.type+"-view","fc-view"].concat(a))}))},n}(kr);function Hr(e){return Pe(e,jr)}function jr(e){var t,r="function"==typeof e?{component:e}:e,a=r.component;return r.content&&(t=r,a=function(e){return O(yr.Consumer,null,(function(r){return O(Fr,{viewSpec:r.viewSpec},(function(a,o){var i=n(n({},e),{nextDayThreshold:r.options.nextDayThreshold});return O(Pr,{hookProps:i,classNames:t.classNames,content:t.content,didMount:t.didMount,willUnmount:t.willUnmount,elRef:a},(function(e,t,n,r){return O("div",{className:o.concat(t).join(" "),ref:e},r)}))}))}))}),{superType:r.type,component:a,rawOptions:r}}function Ur(e,t,r,a){var o=Hr(e),i=Hr(t.views),l=function(e,t){var n,r={};for(n in e)Rr(n,r,e,t);for(n in t)Rr(n,r,e,t);return r}(o,i);return Pe(l,(function(e){return function(e,t,r,a,o){var i=e.overrides.duration||e.defaults.duration||a.duration||r.duration,l=null,s="",u="",c={};if(i&&(l=function(e){var t=JSON.stringify(e),n=Vr[t];void 0===n&&(n=Ue(e),Vr[t]=n);return n}(i),l)){var d=Ye(l);s=d.unit,1===d.value&&(u=s,c=t[s]?t[s].rawOptions:{})}var f=function(t){var n=t.buttonText||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[u]?n[u]:null},p=function(t){var n=t.buttonHints||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[u]?n[u]:null};return{type:e.type,component:e.component,duration:l,durationUnit:s,singleUnit:u,optionDefaults:e.defaults,optionOverrides:n(n({},c),e.overrides),buttonTextOverride:f(a)||f(r)||e.overrides.buttonText,buttonTextDefault:f(o)||e.defaults.buttonText||f(vt)||e.type,buttonTitleOverride:p(a)||p(r)||e.overrides.buttonHint,buttonTitleDefault:p(o)||e.defaults.buttonHint||p(vt)}}(e,i,t,r,a)}))}var Vr={};var Wr=function(){function e(e){this.props=e,this.nowDate=Cn(e.nowInput,e.dateEnv),this.initHiddenDays()}return e.prototype.buildPrev=function(e,t,n){var r=this.props.dateEnv,a=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(a,-1,n)},e.prototype.buildNext=function(e,t,n){var r=this.props.dateEnv,a=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(a,1,n)},e.prototype.build=function(e,t,n){void 0===n&&(n=!0);var r,a,o,i,l,s,u,c,d=this.props;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(u=e,e=null!=(c=r).start&&u<c.start?c.start:null!=c.end&&u>=c.end?new Date(c.end.valueOf()-1):u),a=this.buildCurrentRangeInfo(e,t),o=/^(year|month|week|day)$/.test(a.unit),i=this.buildRenderRange(this.trimHiddenDays(a.range),a.unit,o),l=i=this.trimHiddenDays(i),d.showNonCurrentDates||(l=Yt(l,a.range)),l=Yt(l=this.adjustActiveRange(l),r),s=Gt(a.range,r),{validRange:r,currentRange:a.range,currentRangeUnit:a.unit,isRangeAllDay:o,activeRange:l,renderRange:i,slotMinTime:d.slotMinTime,slotMaxTime:d.slotMaxTime,isValid:s,dateIncrement:this.buildDateIncrement(a.duration)}},e.prototype.buildValidRange=function(){var e=this.props.validRangeInput,t="function"==typeof e?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(t)||{start:null,end:null}},e.prototype.buildCurrentRangeInfo=function(e,t){var n,r=this.props,a=null,o=null,i=null;return r.duration?(a=r.duration,o=r.durationUnit,i=this.buildRangeFromDuration(e,t,a,o)):(n=this.props.dayCount)?(o="day",i=this.buildRangeFromDayCount(e,t,n)):(i=this.buildCustomVisibleRange(e))?o=r.dateEnv.greatestWholeUnit(i.start,i.end).unit:(o=Ye(a=this.getFallbackDuration()).unit,i=this.buildRangeFromDuration(e,t,a,o)),{duration:a,unit:o,range:i}},e.prototype.getFallbackDuration=function(){return Ue({day:1})},e.prototype.adjustActiveRange=function(e){var t=this.props,n=t.dateEnv,r=t.usesMinMaxTime,a=t.slotMinTime,o=t.slotMaxTime,i=e.start,l=e.end;return r&&(Be(a)<0&&(i=ge(i),i=n.add(i,a)),Be(o)>1&&(l=pe(l=ge(l),-1),l=n.add(l,o))),{start:i,end:l}},e.prototype.buildRangeFromDuration=function(e,t,n,r){var a,o,i,l=this.props,s=l.dateEnv,u=l.dateAlignment;if(!u){var c=this.props.dateIncrement;u=c&&$e(c)<$e(n)?Ye(c).unit:r}function d(){a=s.startOf(e,u),o=s.add(a,n),i={start:a,end:o}}return Be(n)<=1&&this.isHiddenDay(a)&&(a=ge(a=this.skipHiddenDays(a,t))),d(),this.trimHiddenDays(i)||(e=this.skipHiddenDays(e,t),d()),i},e.prototype.buildRangeFromDayCount=function(e,t,n){var r,a=this.props,o=a.dateEnv,i=a.dateAlignment,l=0,s=e;i&&(s=o.startOf(s,i)),s=ge(s),r=s=this.skipHiddenDays(s,t);do{r=pe(r,1),this.isHiddenDay(r)||(l+=1)}while(l<n);return{start:s,end:r}},e.prototype.buildCustomVisibleRange=function(e){var t=this.props,n=t.visibleRangeInput,r="function"==typeof n?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,a=this.refineRange(r);return!a||null!=a.start&&null!=a.end?a:null},e.prototype.buildRenderRange=function(e,t,n){return e},e.prototype.buildDateIncrement=function(e){var t,n=this.props.dateIncrement;return n||((t=this.props.dateAlignment)?Ue(1,t):e||Ue({days:1}))},e.prototype.refineRange=function(e){if(e){var t=(n=e,r=this.props.dateEnv,a=null,o=null,n.start&&(a=r.createMarker(n.start)),n.end&&(o=r.createMarker(n.end)),a||o?a&&o&&o<a?null:{start:a,end:o}:null);return t&&(t=Wt(t)),t}var n,r,a,o;return null},e.prototype.initHiddenDays=function(){var e,t=this.props.hiddenDays||[],n=[],r=0;for(!1===this.props.weekends&&t.push(0,6),e=0;e<7;e+=1)(n[e]=-1!==t.indexOf(e))||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n},e.prototype.trimHiddenDays=function(e){var t=e.start,n=e.end;return t&&(t=this.skipHiddenDays(t)),n&&(n=this.skipHiddenDays(n,-1,!0)),null==t||null==n||t<n?{start:t,end:n}:null},e.prototype.isHiddenDay=function(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]},e.prototype.skipHiddenDays=function(e,t,n){for(void 0===t&&(t=1),void 0===n&&(n=!1);this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=pe(e,t);return e},e}();function Br(e,t,n){var r=t?t.activeRange:null;return Yr({},function(e,t){var n=_n(t),r=[].concat(e.eventSources||[]),a=[];e.initialEvents&&r.unshift(e.initialEvents);e.events&&r.unshift(e.events);for(var o=0,i=r;o<i.length;o++){var l=Tn(i[o],t,n);l&&a.push(l)}return a}(e,n),r,n)}function $r(e,t,r,a){var o,i,l=r?r.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return Yr(e,t.sources,l,a);case"REMOVE_EVENT_SOURCE":return o=e,i=t.sourceId,Re(o,(function(e){return e.sourceId!==i}));case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Gr(e,l,a):e;case"FETCH_EVENT_SOURCES":return Kr(e,t.sourceIds?Ne(t.sourceIds):Xr(e,a),l,t.isRefetch||!1,a);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(e,t,r,a){var o,i=e[t];if(i&&r===i.latestFetchId)return n(n({},e),((o={})[t]=n(n({},i),{isFetching:!1,fetchRange:a}),o));return e}(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}function qr(e){for(var t in e)if(e[t].isFetching)return!0;return!1}function Yr(e,t,r,a){for(var o={},i=0,l=t;i<l.length;i++){var s=l[i];o[s.sourceId]=s}return r&&(o=Gr(o,r,a)),n(n({},e),o)}function Gr(e,t,n){return Kr(e,Re(e,(function(e){return function(e,t,n){if(!Zr(e,n))return!e.latestFetchId;return!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end}(e,t,n)})),t,!1,n)}function Kr(e,t,n,r,a){var o={};for(var i in e){var l=e[i];t[i]?o[i]=Qr(l,n,r,a):o[i]=l}return o}function Qr(e,t,r,a){var o=a.options,i=a.calendarApi,l=a.pluginHooks.eventSourceDefs[e.sourceDefId],s=ne();return l.fetch({eventSource:e,range:t,isRefetch:r,context:a},(function(n){var r=n.rawEvents;o.eventSourceSuccess&&(r=o.eventSourceSuccess.call(i,r,n.xhr)||r),e.success&&(r=e.success.call(i,r,n.xhr)||r),a.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:s,fetchRange:t,rawEvents:r})}),(function(n){console.warn(n.message,n),o.eventSourceFailure&&o.eventSourceFailure.call(i,n),e.failure&&e.failure(n),a.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:s,fetchRange:t,error:n})})),n(n({},e),{isFetching:!0,latestFetchId:s})}function Xr(e,t){return Re(e,(function(e){return Zr(e,t)}))}function Zr(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function Jr(e,t,n,r,a){switch(t.type){case"RECEIVE_EVENTS":return function(e,t,n,r,a,o){if(t&&n===t.latestFetchId){var i=Et(function(e,t,n){var r=n.options.eventDataTransform,a=t?t.eventDataTransform:null;a&&(e=ea(e,a));r&&(e=ea(e,r));return e}(a,t,o),t,o);return r&&(i=Ae(i,r,o)),Ct(ta(e,t.sourceId),i)}return e}(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,a);case"ADD_EVENTS":return function(e,t,n,r){n&&(t=Ae(t,n,r));return Ct(e,t)}(e,t.eventStore,r?r.activeRange:null,a);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return Ct(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Ae(e,r.activeRange,a):e;case"REMOVE_EVENTS":return function(e,t){var n=e.defs,r=e.instances,a={},o={};for(var i in n)t.defs[i]||(a[i]=n[i]);for(var l in r)!t.instances[l]&&a[r[l].defId]&&(o[l]=r[l]);return{defs:a,instances:o}}(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return ta(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Dt(e,(function(e){return!e.sourceId}));case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return e}}function ea(e,t){var n;if(t){n=[];for(var r=0,a=e;r<a.length;r++){var o=a[r],i=t(o);i?n.push(i):null==i&&n.push(o)}}else n=e;return n}function ta(e,t){return Dt(e,(function(e){return e.sourceId!==t}))}function na(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function ra(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function aa(e,t){var n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return{affectedEvents:(n=t.state).affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function oa(e,t){var n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return{affectedEvents:(n=t.state).affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function ia(e,t,n,r,a){return{header:e.headerToolbar?la(e.headerToolbar,e,t,n,r,a):null,footer:e.footerToolbar?la(e.footerToolbar,e,t,n,r,a):null}}function la(e,t,n,r,a,o){var i={},l=[],s=!1;for(var u in e){var c=sa(e[u],t,n,r,a,o);i[u]=c.widgets,l.push.apply(l,c.viewsWithButtons),s=s||c.hasTitle}return{sectionWidgets:i,viewsWithButtons:l,hasTitle:s}}function sa(e,t,n,r,a,o){var i="rtl"===t.direction,l=t.customButtons||{},s=n.buttonText||{},u=t.buttonText||{},c=n.buttonHints||{},d=t.buttonHints||{},f=e?e.split(" "):[],p=[],h=!1;return{widgets:f.map((function(e){return e.split(",").map((function(e){if("title"===e)return h=!0,{buttonName:e};var n,f,v,m,g,y;if(n=l[e])v=function(e){n.click&&n.click.call(e.target,e,e.target)},(m=r.getCustomButtonIconClass(n))||(m=r.getIconClass(e,i))||(g=n.text),y=n.hint||n.text;else if(f=a[e]){p.push(e),v=function(){o.changeView(e)},(g=f.buttonTextOverride)||(m=r.getIconClass(e,i))||(g=f.buttonTextDefault);var b=f.buttonTextOverride||f.buttonTextDefault;y=le(f.buttonTitleOverride||f.buttonTitleDefault||t.viewHint,[b,e],b)}else if(o[e])if(v=function(){o[e]()},(g=s[e])||(m=r.getIconClass(e,i))||(g=u[e]),"prevYear"===e||"nextYear"===e){var w="prevYear"===e?"prev":"next";y=le(c[w]||d[w],[u.year||"year","year"],u[e])}else y=function(t){return le(c[e]||d[e],[u[t]||t,t],u[e])};return{buttonName:e,buttonClick:v,buttonIcon:m,buttonText:g,buttonHint:y}}))})),viewsWithButtons:p,hasTitle:h}}function ua(e,t,n,r,a){var o=null;"GET"===(e=e.toUpperCase())?t=function(e,t){return e+(-1===e.indexOf("?")?"?":"&")+ca(t)}(t,n):o=ca(n);var i=new XMLHttpRequest;i.open(e,t,!0),"GET"!==e&&i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.onload=function(){if(i.status>=200&&i.status<400){var e=!1,t=void 0;try{t=JSON.parse(i.responseText),e=!0}catch(e){}e?r(t,i):a("Failure parsing JSON",i)}else a("Request failed",i)},i.onerror=function(){a("Request failed",i)},i.send(o)}function ca(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}function da(e,t){for(var n=Ie(t.getCurrentData().eventSources),r=[],a=0,o=e;a<o.length;a++){for(var i=o[a],l=!1,s=0;s<n.length;s+=1)if(n[s]._raw===i){n.splice(s,1),l=!0;break}l||r.push(i)}for(var u=0,c=n;u<c.length;u++){var d=c[u];t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:d.sourceId})}for(var f=0,p=r;f<p.length;f++){var h=p[f];t.calendarApi.addEventSource(h)}}var fa=[_r({eventSourceDefs:[{ignoreRange:!0,parseMeta:function(e){return Array.isArray(e.events)?e.events:null},fetch:function(e,t){t({rawEvents:e.eventSource.meta})}}]}),_r({eventSourceDefs:[{parseMeta:function(e){return"function"==typeof e.events?e.events:null},fetch:function(e,t,n){var r=e.context.dateEnv;!function(e,t,n){var r=!1,a=function(){r||(r=!0,t.apply(this,arguments))},o=function(){r||(r=!0,n&&n.apply(this,arguments))},i=e(a,o);i&&"function"==typeof i.then&&i.then(a,o)}(e.eventSource.meta.bind(null,hn(e.range,r)),(function(e){t({rawEvents:e})}),n)}}]}),_r({eventSourceRefiners:{method:String,extraParams:xt,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta:function(e){return!e.url||"json"!==e.format&&e.format?null:{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}},fetch:function(e,t,r){var a=e.eventSource.meta,o=function(e,t,r){var a,o,i,l,s=r.dateEnv,u=r.options,c={};null==(a=e.startParam)&&(a=u.startParam);null==(o=e.endParam)&&(o=u.endParam);null==(i=e.timeZoneParam)&&(i=u.timeZoneParam);l="function"==typeof e.extraParams?e.extraParams():e.extraParams||{};n(c,l),c[a]=s.formatIso(t.start),c[o]=s.formatIso(t.end),"local"!==s.timeZone&&(c[i]=s.timeZone);return c}(a,e.range,e.context);ua(a.method,a.url,o,(function(e,n){t({rawEvents:e,xhr:n})}),(function(e,t){r({message:e,xhr:t})}))}}]}),_r({recurringTypes:[{parse:function(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){var n={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null},r=void 0;return e.duration&&(r=e.duration),!r&&e.startTime&&e.endTime&&(a=e.endTime,o=e.startTime,r={years:a.years-o.years,months:a.months-o.months,days:a.days-o.days,milliseconds:a.milliseconds-o.milliseconds}),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:r,typeData:n}}var a,o;return null},expand:function(e,t,n){var r=Yt(t,{start:e.startRecur,end:e.endRecur});return r?function(e,t,n,r){var a=e?Ne(e):null,o=ge(n.start),i=n.end,l=[];for(;o<i;){var s=void 0;a&&!a[o.getUTCDay()]||(s=t?r.add(o,t):o,l.push(s)),o=pe(o,1)}return l}(e.daysOfWeek,e.startTime,r,n):[]}}],eventRefiners:{daysOfWeek:xt,startTime:Ue,endTime:Ue,duration:Ue,startRecur:xt,endRecur:xt}}),_r({optionChangeHandlers:{events:function(e,t){da([e],t)},eventSources:da}}),_r({isLoadingFuncs:[function(e){return qr(e.eventSources)}],contentTypeHandlers:{html:function(){var e=null,t="";return{render:function(n,r){n===e&&r===t||(n.innerHTML=r),e=n,t=r},destroy:function(){e.innerHTML="",e=null,t=""}}},domNodes:function(){var e=null,t=[];function n(){t.forEach(j),t=[],e=null}return{render:function(r,a){var o=Array.prototype.slice.call(a);if(r!==e||!Xe(t,o)){for(var i=0,l=o;i<l.length;i++){var s=l[i];r.appendChild(s)}n()}e=r,t=o},destroy:n}}},propSetHandlers:{dateProfile:function(e,t){t.emitter.trigger("datesSet",n(n({},hn(e.activeRange,t.dateEnv)),{view:t.viewApi}))},eventStore:function(e,t){var n=t.emitter;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",Nn(e,t))}}})];var pa=function(){function e(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}return e.prototype.request=function(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==e?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))},e.prototype.pause=function(e){void 0===e&&(e="");var t=this.pauseDepths;t[e]=(t[e]||0)+1,this.clearTimeout()},e.prototype.resume=function(e,t){void 0===e&&(e="");var n=this.pauseDepths;if(e in n){if(t)delete n[e];else n[e]-=1,n[e]<=0&&delete n[e];this.tryDrain()}},e.prototype.isPaused=function(){return Object.keys(this.pauseDepths).length},e.prototype.tryDrain=function(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}},e.prototype.clear=function(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}},e.prototype.clearTimeout=function(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)},e.prototype.drained=function(){this.drainedOption&&this.drainedOption()},e}(),ha=function(){function e(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new pa(this.drain.bind(this))}return e.prototype.request=function(e,t){this.queue.push(e),this.delayedRunner.request(t)},e.prototype.pause=function(e){this.delayedRunner.pause(e)},e.prototype.resume=function(e,t){this.delayedRunner.resume(e,t)},e.prototype.drain=function(){for(var e=this.queue;e.length;){for(var t=[],n=void 0;n=e.shift();)this.runTask(n),t.push(n);this.drained(t)}},e.prototype.runTask=function(e){this.runTaskOption&&this.runTaskOption(e)},e.prototype.drained=function(e){this.drainedOption&&this.drainedOption(e)},e}();function va(e,t,n){var r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,pt(t.titleFormat||function(e){var t=e.currentRangeUnit;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};var n=me(e.currentRange.start,e.currentRange.end);if(null!==n&&n>1)return{year:"numeric",month:"short",day:"numeric"};return{year:"numeric",month:"long",day:"numeric"}}(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}var ma=function(){function e(e){var t=this;this.computeOptionsData=Ze(this._computeOptionsData),this.computeCurrentViewData=Ze(this._computeCurrentViewData),this.organizeRawLocales=Ze(jn),this.buildLocale=Ze(Un),this.buildPluginHooks=Cr(),this.buildDateEnv=Ze(ga),this.buildTheme=Ze(ya),this.parseToolbars=Ze(ia),this.buildViewSpecs=Ze(Ur),this.buildDateProfileGenerator=Je(ba),this.buildViewApi=Ze(wa),this.buildViewUiProps=Je(xa),this.buildEventUiBySource=Ze(ka,Me),this.buildEventUiBases=Ze(Sa),this.parseContextBusinessHours=Je(Ta),this.buildTitle=Ze(va),this.emitter=new dr,this.actionRunner=new ha(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.getCurrentData=function(){return t.data},this.dispatch=function(e){t.actionRunner.request(e)},this.props=e,this.actionRunner.pause();var r={},a=this.computeOptionsData(e.optionOverrides,r,e.calendarApi),o=a.calendarOptions.initialView||a.pluginHooks.initialView,i=this.computeCurrentViewData(o,a,e.optionOverrides,r);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(i.options);var l,s,u,c=(l=a.calendarOptions,s=a.dateEnv,null!=(u=l.initialDate)?s.createMarker(u):Cn(l.now,s)),d=i.dateProfileGenerator.build(c);Qt(d.activeRange,c)||(c=d.currentRange.start);for(var f={dateEnv:a.dateEnv,options:a.calendarOptions,pluginHooks:a.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},p=0,h=a.pluginHooks.contextInit;p<h.length;p++){(0,h[p])(f)}for(var v=Br(a.calendarOptions,d,f),m={dynamicOptionOverrides:r,currentViewType:o,currentDate:c,dateProfile:d,businessHours:this.parseContextBusinessHours(f),eventSources:v,eventUiBases:{},eventStore:{defs:{},instances:{}},renderableEventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(f).selectionConfig},g=n(n({},f),m),y=0,b=a.pluginHooks.reducers;y<b.length;y++){var w=b[y];n(m,w(null,null,g))}Ea(m,f)&&this.emitter.trigger("loading",!0),this.state=m,this.updateData(),this.actionRunner.resume()}return e.prototype.resetOptions=function(e,t){var r=this.props;r.optionOverrides=t?n(n({},r.optionOverrides),e):e,this.actionRunner.request({type:"NOTHING"})},e.prototype._handleAction=function(e){var t=this,r=t.props,a=t.state,o=t.emitter,i=function(e,t){var r;return"SET_OPTION"===t.type?n(n({},e),((r={})[t.optionName]=t.rawOptionValue,r)):e}(a.dynamicOptionOverrides,e),l=this.computeOptionsData(r.optionOverrides,i,r.calendarApi),s=function(e,t){"CHANGE_VIEW_TYPE"===t.type&&(e=t.viewType);return e}(a.currentViewType,e),u=this.computeCurrentViewData(s,l,r.optionOverrides,i);r.calendarApi.currentDataManager=this,o.setThisContext(r.calendarApi),o.setOptions(u.options);var c={dateEnv:l.dateEnv,options:l.calendarOptions,pluginHooks:l.pluginHooks,calendarApi:r.calendarApi,dispatch:this.dispatch,emitter:o,getCurrentData:this.getCurrentData},d=a.currentDate,f=a.dateProfile;this.data&&this.data.dateProfileGenerator!==u.dateProfileGenerator&&(f=u.dateProfileGenerator.build(d)),d=function(e,t){return"CHANGE_DATE"===t.type?t.dateMarker:e}(d,e),f=function(e,t,n,r){var a;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if((a=r.buildPrev(e,n)).isValid)return a;break;case"NEXT":if((a=r.buildNext(e,n)).isValid)return a}return e}(f,e,d,u.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&Qt(f.currentRange,d)||(d=f.currentRange.start);for(var p=$r(a.eventSources,e,f,c),h=Jr(a.eventStore,e,p,f,c),v=qr(p)&&!u.options.progressiveEventRendering&&a.renderableEventStore||h,m=this.buildViewUiProps(c),g=m.eventUiSingleBase,y=m.selectionConfig,b=this.buildEventUiBySource(p),w={dynamicOptionOverrides:i,currentViewType:s,currentDate:d,dateProfile:f,eventSources:p,eventStore:h,renderableEventStore:v,selectionConfig:y,eventUiBases:this.buildEventUiBases(v.defs,g,b),businessHours:this.parseContextBusinessHours(c),dateSelection:na(a.dateSelection,e),eventSelection:ra(a.eventSelection,e),eventDrag:aa(a.eventDrag,e),eventResize:oa(a.eventResize,e)},k=n(n({},c),w),S=0,x=l.pluginHooks.reducers;S<x.length;S++){var E=x[S];n(w,E(a,e,k))}var T=Ea(a,c),_=Ea(w,c);!T&&_?o.trigger("loading",!0):T&&!_&&o.trigger("loading",!1),this.state=w,r.onAction&&r.onAction(e)},e.prototype.updateData=function(){var e,t,r,a,o,i,l,s,u,c=this.props,d=this.state,f=this.data,p=this.computeOptionsData(c.optionOverrides,d.dynamicOptionOverrides,c.calendarApi),h=this.computeCurrentViewData(d.currentViewType,p,c.optionOverrides,d.dynamicOptionOverrides),v=this.data=n(n(n({viewTitle:this.buildTitle(d.dateProfile,h.options,p.dateEnv),calendarApi:c.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},p),h),d),m=p.pluginHooks.optionChangeHandlers,g=f&&f.calendarOptions,y=p.calendarOptions;if(g&&g!==y)for(var b in g.timeZone!==y.timeZone&&(d.eventSources=v.eventSources=(i=v.eventSources,l=d.dateProfile,s=v,u=l?l.activeRange:null,Kr(i,Xr(i,s),u,!0,s)),d.eventStore=v.eventStore=(e=v.eventStore,t=f.dateEnv,r=v.dateEnv,a=e.defs,o=Pe(e.instances,(function(e){var o=a[e.defId];return o.allDay||o.recurringDef?e:n(n({},e),{range:{start:r.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:r.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:r.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:r.canComputeOffset?null:e.forcedEndTzo})})),{defs:a,instances:o})),m)g[b]!==y[b]&&m[b](y[b],v);c.onData&&c.onData(v)},e.prototype._computeOptionsData=function(e,t,n){var r=this.processRawCalendarOptions(e,t),a=r.refinedOptions,o=r.pluginHooks,i=r.localeDefaults,l=r.availableLocaleData;_a(r.extra);var s=this.buildDateEnv(a.timeZone,a.locale,a.weekNumberCalculation,a.firstDay,a.weekText,o,l,a.defaultRangeSeparator),u=this.buildViewSpecs(o.views,e,t,i),c=this.buildTheme(a,o);return{calendarOptions:a,pluginHooks:o,dateEnv:s,viewSpecs:u,theme:c,toolbarConfig:this.parseToolbars(a,e,c,u,n),localeDefaults:i,availableRawLocales:l.map}},e.prototype.processRawCalendarOptions=function(e,t){var r=kt([vt,e,t]),a=r.locales,o=r.locale,i=this.organizeRawLocales(a),l=i.map,s=this.buildLocale(o||i.defaultCode,l).options,u=this.buildPluginHooks(e.plugins||[],fa),c=this.currentCalendarOptionsRefiners=n(n(n(n(n({},ht),mt),gt),u.listenerRefiners),u.optionRefiners),d={},f=kt([vt,s,e,t]),p={},h=this.currentCalendarOptionsInput,v=this.currentCalendarOptionsRefined,m=!1;for(var g in f)"plugins"!==g&&(f[g]===h[g]||yt[g]&&g in h&&yt[g](h[g],f[g])?p[g]=v[g]:c[g]?(p[g]=c[g](f[g]),m=!0):d[g]=h[g]);return m&&(this.currentCalendarOptionsInput=f,this.currentCalendarOptionsRefined=p),{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:u,availableLocaleData:i,localeDefaults:s,extra:d}},e.prototype._computeCurrentViewData=function(e,t,n,r){var a=t.viewSpecs[e];if(!a)throw new Error('viewType "'+e+"\" is not available. Please make sure you've loaded all neccessary plugins");var o=this.processRawViewOptions(a,t.pluginHooks,t.localeDefaults,n,r),i=o.refinedOptions;return _a(o.extra),{viewSpec:a,options:i,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:a.optionDefaults.dateProfileGeneratorClass,duration:a.duration,durationUnit:a.durationUnit,usesMinMaxTime:a.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,showNonCurrentDates:i.showNonCurrentDates,dayCount:i.dayCount,dateAlignment:i.dateAlignment,dateIncrement:i.dateIncrement,hiddenDays:i.hiddenDays,weekends:i.weekends,nowInput:i.now,validRangeInput:i.validRange,visibleRangeInput:i.visibleRange,monthMode:i.monthMode,fixedWeekCount:i.fixedWeekCount}),viewApi:this.buildViewApi(e,this.getCurrentData,t.dateEnv)}},e.prototype.processRawViewOptions=function(e,t,r,a,o){var i=kt([vt,e.optionDefaults,r,a,e.optionOverrides,o]),l=n(n(n(n(n(n({},ht),mt),gt),wt),t.listenerRefiners),t.optionRefiners),s={},u=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,d=!1,f={};for(var p in i)i[p]===u[p]||yt[p]&&yt[p](i[p],u[p])?s[p]=c[p]:(i[p]===this.currentCalendarOptionsInput[p]||yt[p]&&yt[p](i[p],this.currentCalendarOptionsInput[p])?p in this.currentCalendarOptionsRefined&&(s[p]=this.currentCalendarOptionsRefined[p]):l[p]?s[p]=l[p](i[p]):f[p]=i[p],d=!0);return d&&(this.currentViewOptionsInput=i,this.currentViewOptionsRefined=s),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:f}},e}();function ga(e,t,n,r,a,o,i,l){var s=Un(t||i.defaultCode,i.map);return new zn({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:o.namedTimeZonedImpl,locale:s,weekNumberCalculation:n,firstDay:r,weekText:a,cmdFormatter:o.cmdFormatter,defaultSeparator:l})}function ya(e,t){return new(t.themeClasses[e.themeSystem]||Dr)(e)}function ba(e){return new(e.dateProfileGeneratorClass||Wr)(e)}function wa(e,t,n){return new xn(e,t,n)}function ka(e){return Pe(e,(function(e){return e.ui}))}function Sa(e,t,n){var r={"":t};for(var a in e){var o=e[a];o.sourceId&&n[o.sourceId]&&(r[a]=n[o.sourceId])}return r}function xa(e){var t=e.options;return{eventUiSingleBase:It({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:"boolean"==typeof t.eventOverlap?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:It({constraint:t.selectConstraint,overlap:"boolean"==typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function Ea(e,t){for(var n=0,r=t.pluginHooks.isLoadingFuncs;n<r.length;n++){if((0,r[n])(e))return!0}return!1}function Ta(e){return $n(e.options.businessHours,e)}function _a(e,t){for(var n in e)console.warn("Unknown option '"+n+"'"+(t?" for view '"+t+"'":""))}var Ca=function(e){function n(t){var n=e.call(this,t)||this;return n.handleData=function(e){n.dataManager?n.setState(e):n.state=e},n.dataManager=new ma({optionOverrides:t.optionOverrides,calendarApi:t.calendarApi,onData:n.handleData}),n}return t(n,e),n.prototype.render=function(){return this.props.children(this.state)},n.prototype.componentDidUpdate=function(e){var t=this.props.optionOverrides;t!==e.optionOverrides&&this.dataManager.resetOptions(t)},n}(M),Da=function(){function e(){this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}return e.prototype.addSegs=function(e){for(var t=[],n=0,r=e;n<r.length;n++){var a=r[n];this.insertEntry(a,t)}return t},e.prototype.insertEntry=function(e,t){var n=this.findInsertion(e);return this.isInsertionValid(n,e)?(this.insertEntryAt(e,n),1):this.handleInvalidInsertion(n,e,t)},e.prototype.isInsertionValid=function(e,t){return(-1===this.maxCoord||e.levelCoord+t.thickness<=this.maxCoord)&&(-1===this.maxStackCnt||e.stackCnt<this.maxStackCnt)},e.prototype.handleInvalidInsertion=function(e,t,n){return this.allowReslicing&&e.touchingEntry?this.splitEntry(t,e.touchingEntry,n):(n.push(t),0)},e.prototype.splitEntry=function(e,t,n){var r=0,a=[],i=e.span,l=t.span;return i.start<l.start&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:i.start,end:l.start}},a)),i.end>l.end&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:l.end,end:i.end}},a)),r?(n.push.apply(n,o([{index:e.index,thickness:e.thickness,span:Na(l,i)}],a)),r):(n.push(e),0)},e.prototype.insertEntryAt=function(e,t){var n=this.entriesByLevel,r=this.levelCoords;-1===t.lateral?(Ia(r,t.level,t.levelCoord),Ia(n,t.level,[e])):Ia(n[t.level],t.lateral,e),this.stackCnts[Pa(e)]=t.stackCnt},e.prototype.findInsertion=function(e){for(var t=this,n=t.levelCoords,r=t.entriesByLevel,a=t.strictOrder,o=t.stackCnts,i=n.length,l=0,s=-1,u=-1,c=null,d=0,f=0;f<i;f+=1){var p=n[f];if(!a&&p>=l+e.thickness)break;for(var h=r[f],v=void 0,m=Ma(h,e.span.start,Ra),g=m[0]+m[1];(v=h[g])&&v.span.start<e.span.end;){var y=p+v.thickness;y>l&&(l=y,c=v,s=f,u=g),y===l&&(d=Math.max(d,o[Pa(v)]+1)),g+=1}}var b=0;if(c)for(b=s+1;b<i&&n[b]<l;)b+=1;var w=-1;return b<i&&n[b]===l&&(w=Ma(r[b],e.span.end,Ra)[0]),{touchingLevel:s,touchingLateral:u,touchingEntry:c,stackCnt:d,levelCoord:l,level:b,lateral:w}},e.prototype.toRects=function(){for(var e=this.entriesByLevel,t=this.levelCoords,r=e.length,a=[],o=0;o<r;o+=1)for(var i=e[o],l=t[o],s=0,u=i;s<u.length;s++){var c=u[s];a.push(n(n({},c),{levelCoord:l}))}return a},e}();function Ra(e){return e.span.end}function Pa(e){return e.index+":"+e.span.start}function Na(e,t){var n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return n<r?{start:n,end:r}:null}function Ia(e,t,n){e.splice(t,0,n)}function Ma(e,t,n){var r=0,a=e.length;if(!a||t<n(e[r]))return[0,0];if(t>n(e[a-1]))return[a,0];for(;r<a;){var o=Math.floor(r+(a-r)/2),i=n(e[o]);if(t<i)a=o;else{if(!(t>i))return[o,1];r=o+1}}return[r,0]}var Oa=function(){function e(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}return e.prototype.destroy=function(){},e}();function La(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}function za(e){var t;return(t={})[e.component.uid]=e,t}var Aa={},Fa=function(){function e(e,t){this.emitter=new dr}return e.prototype.destroy=function(){},e.prototype.setMirrorIsVisible=function(e){},e.prototype.setMirrorNeedsRevert=function(e){},e.prototype.setAutoScrollEnabled=function(e){},e}(),Ha={},ja=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n.prototype.render=function(){var e=this,t=this.props.widgetGroups.map((function(t){return e.renderWidgetGroup(t)}));return O.apply(void 0,o(["div",{className:"fc-toolbar-chunk"}],t))},n.prototype.renderWidgetGroup=function(e){for(var t=this.props,n=this.context.theme,r=[],a=!0,i=0,l=e;i<l.length;i++){var s=l[i],u=s.buttonName,c=s.buttonClick,d=s.buttonText,f=s.buttonIcon,p=s.buttonHint;if("title"===u)a=!1,r.push(O("h2",{className:"fc-toolbar-title",id:t.titleId},t.title));else{var h=u===t.activeButton,v=!t.isTodayEnabled&&"today"===u||!t.isPrevEnabled&&"prev"===u||!t.isNextEnabled&&"next"===u,m=["fc-"+u+"-button",n.getClass("button")];h&&m.push(n.getClass("buttonActive")),r.push(O("button",{type:"button",title:"function"==typeof p?p(t.navUnit):p,disabled:v,"aria-pressed":h,className:m.join(" "),onClick:c},d||(f?O("span",{className:f}):"")))}}if(r.length>1){var g=a&&n.getClass("buttonGroup")||"";return O.apply(void 0,o(["div",{className:g}],r))}return r[0]},n}(kr),Ua=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n.prototype.render=function(){var e,t,n=this.props,r=n.model,a=n.extraClassName,o=!1,i=r.sectionWidgets,l=i.center;return i.left?(o=!0,e=i.left):e=i.start,i.right?(o=!0,t=i.right):t=i.end,O("div",{className:[a||"","fc-toolbar",o?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",e||[]),this.renderSection("center",l||[]),this.renderSection("end",t||[]))},n.prototype.renderSection=function(e,t){var n=this.props;return O(ja,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})},n}(kr),Va=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={availableWidth:null},t.handleEl=function(e){t.el=e,Er(t.props.elRef,e),t.updateAvailableWidth()},t.handleResize=function(){t.updateAvailableWidth()},t}return t(n,e),n.prototype.render=function(){var e=this.props,t=this.state,n=e.aspectRatio,r=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],a="",o="";return n?null!==t.availableWidth?a=t.availableWidth/n:o=1/n*100+"%":a=e.height||"",O("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(" "),style:{height:a,paddingBottom:o}},e.children)},n.prototype.componentDidMount=function(){this.context.addResizeHandler(this.handleResize)},n.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleResize)},n.prototype.updateAvailableWidth=function(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})},n}(kr),Wa=function(e){function n(t){var n=e.call(this,t)||this;return n.handleSegClick=function(e,t){var r=n.component,a=r.context,o=Jt(t);if(o&&r.isValidSegDownEl(e.target)){var i=U(e.target,".fc-event-forced-url"),l=i?i.querySelector("a[href]").href:"";a.emitter.trigger("eventClick",{el:t,event:new Rn(r.context,o.eventRange.def,o.eventRange.instance),jsEvent:e,view:a.viewApi}),l&&!e.defaultPrevented&&(window.location.href=l)}},n.destroy=X(t.el,"click",".fc-event",n.handleSegClick),n}return t(n,e),n}(Oa),Ba=function(e){function n(t){var n,r,a,o,i,l=e.call(this,t)||this;return l.handleEventElRemove=function(e){e===l.currentSegEl&&l.handleSegLeave(null,l.currentSegEl)},l.handleSegEnter=function(e,t){Jt(t)&&(l.currentSegEl=t,l.triggerEvent("eventMouseEnter",e,t))},l.handleSegLeave=function(e,t){l.currentSegEl&&(l.currentSegEl=null,l.triggerEvent("eventMouseLeave",e,t))},l.removeHoverListeners=(n=t.el,r=".fc-event",a=l.handleSegEnter,o=l.handleSegLeave,X(n,"mouseover",r,(function(e,t){if(t!==i){i=t,a(e,t);var n=function(e){i=null,o(e,t),t.removeEventListener("mouseleave",n)};t.addEventListener("mouseleave",n)}}))),l}return t(n,e),n.prototype.destroy=function(){this.removeHoverListeners()},n.prototype.triggerEvent=function(e,t,n){var r=this.component,a=r.context,o=Jt(n);t&&!r.isValidSegDownEl(t.target)||a.emitter.trigger(e,{el:n,event:new Rn(a,o.eventRange.def,o.eventRange.instance),jsEvent:t,view:a.viewApi})},n}(Oa),$a=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildViewContext=Ze(br),t.buildViewPropTransformers=Ze(Ya),t.buildToolbarProps=Ze(qa),t.headerRef=L(),t.footerRef=L(),t.interactionsStore={},t.state={viewLabelId:K()},t.registerInteractiveComponent=function(e,n){var r=La(e,n),a=[Wa,Ba].concat(t.props.pluginHooks.componentInteractions).map((function(e){return new e(r)}));t.interactionsStore[e.uid]=a,Aa[e.uid]=r},t.unregisterInteractiveComponent=function(e){var n=t.interactionsStore[e.uid];if(n){for(var r=0,a=n;r<a.length;r++){a[r].destroy()}delete t.interactionsStore[e.uid]}delete Aa[e.uid]},t.resizeRunner=new pa((function(){t.props.emitter.trigger("_resize",!0),t.props.emitter.trigger("windowResize",{view:t.props.viewApi})})),t.handleWindowResize=function(e){var n=t.props.options;n.handleWindowResize&&e.target===window&&t.resizeRunner.request(n.windowResizeDelay)},t}return t(r,e),r.prototype.render=function(){var e,t=this.props,r=t.toolbarConfig,a=t.options,o=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,Cn(t.options.now,t.dateEnv),t.viewTitle),i=!1,l="";t.isHeightAuto||t.forPrint?l="":null!=a.height?i=!0:null!=a.contentHeight?l=a.contentHeight:e=Math.max(a.aspectRatio,.5);var s=this.buildViewContext(t.viewSpec,t.viewApi,t.options,t.dateProfileGenerator,t.dateEnv,t.theme,t.pluginHooks,t.dispatch,t.getCurrentData,t.emitter,t.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),u=r.header&&r.header.hasTitle?this.state.viewLabelId:"";return O(yr.Provider,{value:s},r.header&&O(Ua,n({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:r.header,titleId:u},o)),O(Va,{liquid:i,height:l,aspectRatio:e,labeledById:u},this.renderView(t),this.buildAppendContent()),r.footer&&O(Ua,n({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:r.footer,titleId:""},o)))},r.prototype.componentDidMount=function(){var e=this.props;this.calendarInteractions=e.pluginHooks.calendarInteractions.map((function(t){return new t(e)})),window.addEventListener("resize",this.handleWindowResize);var t=e.pluginHooks.propSetHandlers;for(var n in t)t[n](e[n],e)},r.prototype.componentDidUpdate=function(e){var t=this.props,n=t.pluginHooks.propSetHandlers;for(var r in n)t[r]!==e[r]&&n[r](t[r],t)},r.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(var e=0,t=this.calendarInteractions;e<t.length;e++){t[e].destroy()}this.props.emitter.trigger("_unmount")},r.prototype.buildAppendContent=function(){var e=this.props,t=e.pluginHooks.viewContainerAppends.map((function(t){return t(e)}));return O.apply(void 0,o([z,{}],t))},r.prototype.renderView=function(e){for(var t=e.pluginHooks,r=e.viewSpec,a={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},o=0,i=this.buildViewPropTransformers(t.viewPropsTransformers);o<i.length;o++){var l=i[o];n(a,l.transform(a,e))}var s=r.component;return O(s,n({},a))},r}(wr);function qa(e,t,n,r,a,o){var i=n.build(a,void 0,!1),l=n.buildPrev(t,r,!1),s=n.buildNext(t,r,!1);return{title:o,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:i.isValid&&!Qt(t.currentRange,a),isPrevEnabled:l.isValid,isNextEnabled:s.isValid}}function Ya(e){return e.map((function(e){return new e}))}var Ga=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={forPrint:!1},t.handleBeforePrint=function(){t.setState({forPrint:!0})},t.handleAfterPrint=function(){t.setState({forPrint:!1})},t}return t(n,e),n.prototype.render=function(){var e=this.props,t=e.options,n=this.state.forPrint,r=n||"auto"===t.height||"auto"===t.contentHeight,a=r||null==t.height?"":t.height,o=["fc",n?"fc-media-print":"fc-media-screen","fc-direction-"+t.direction,e.theme.getClass("root")];return Gn()||o.push("fc-liquid-hack"),e.children(o,a,r,n)},n.prototype.componentDidMount=function(){var e=this.props.emitter;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)},n.prototype.componentWillUnmount=function(){var e=this.props.emitter;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)},n}(kr);var Ka="fc-col-header-cell";function Qa(e){return e.text}var Xa=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t(r,e),r.prototype.render=function(){var e=this.context,t=e.dateEnv,r=e.options,a=e.theme,o=e.viewApi,i=this.props,l=i.date,s=i.dateProfile,u=Zn(l,i.todayRange,null,s),c=[Ka].concat(Jn(u,a)),d=t.format(l,i.dayHeaderFormat),f=!u.isDisabled&&i.colCnt>1?nr(this.context,l):{},p=n(n(n({date:t.toDate(l),view:o},i.extraHookProps),{text:d}),u);return O(Pr,{hookProps:p,classNames:r.dayHeaderClassNames,content:r.dayHeaderContent,defaultContent:Qa,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},(function(e,t,r,a){return O("th",n({ref:e,role:"columnheader",className:c.concat(t).join(" "),"data-date":u.isDisabled?void 0:Ke(l),colSpan:i.colSpan},i.extraDataAttrs),O("div",{className:"fc-scrollgrid-sync-inner"},!u.isDisabled&&O("a",n({ref:r,className:["fc-col-header-cell-cushion",i.isSticky?"fc-sticky":""].join(" ")},f),a)))}))},r}(kr),Za=pt({weekday:"long"}),Ja=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t(r,e),r.prototype.render=function(){var e=this.props,t=this.context,r=t.dateEnv,a=t.theme,o=t.viewApi,i=t.options,l=pe(new Date(2592e5),e.dow),s={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},u=[Ka].concat(Jn(s,a),e.extraClassNames||[]),c=r.format(l,e.dayHeaderFormat),d=n(n(n(n({date:l},s),{view:o}),e.extraHookProps),{text:c});return O(Pr,{hookProps:d,classNames:i.dayHeaderClassNames,content:i.dayHeaderContent,defaultContent:Qa,didMount:i.dayHeaderDidMount,willUnmount:i.dayHeaderWillUnmount},(function(t,a,o,i){return O("th",n({ref:t,role:"columnheader",className:u.concat(a).join(" "),colSpan:e.colSpan},e.extraDataAttrs),O("div",{className:"fc-scrollgrid-sync-inner"},O("a",{"aria-label":r.format(l,Za),className:["fc-col-header-cell-cushion",e.isSticky?"fc-sticky":""].join(" "),ref:o},i)))}))},r}(kr),eo=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.initialNowDate=Cn(n.options.now,n.dateEnv),r.initialNowQueriedMs=(new Date).valueOf(),r.state=r.computeTiming().currentState,r}return t(n,e),n.prototype.render=function(){var e=this.props,t=this.state;return e.children(t.nowDate,t.todayRange)},n.prototype.componentDidMount=function(){this.setTimeout()},n.prototype.componentDidUpdate=function(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())},n.prototype.componentWillUnmount=function(){this.clearTimeout()},n.prototype.computeTiming=function(){var e=this.props,t=this.context,n=he(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),r=t.dateEnv.startOf(n,e.unit),a=t.dateEnv.add(r,Ue(1,e.unit)),o=a.valueOf()-n.valueOf();return o=Math.min(864e5,o),{currentState:{nowDate:r,todayRange:to(r)},nextState:{nowDate:a,todayRange:to(a)},waitMs:o}},n.prototype.setTimeout=function(){var e=this,t=this.computeTiming(),n=t.nextState,r=t.waitMs;this.timeoutId=setTimeout((function(){e.setState(n,(function(){e.setTimeout()}))}),r)},n.prototype.clearTimeout=function(){this.timeoutId&&clearTimeout(this.timeoutId)},n.contextType=yr,n}(M);function to(e){var t=ge(e);return{start:t,end:pe(t,1)}}var no=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.createDayHeaderFormatter=Ze(ro),t}return t(n,e),n.prototype.render=function(){var e=this.context,t=this.props,n=t.dates,r=t.dateProfile,a=t.datesRepDistinctDays,o=t.renderIntro,i=this.createDayHeaderFormatter(e.options.dayHeaderFormat,a,n.length);return O(eo,{unit:"day"},(function(e,t){return O("tr",{role:"row"},o&&o("day"),n.map((function(e){return a?O(Xa,{key:e.toISOString(),date:e,dateProfile:r,todayRange:t,colCnt:n.length,dayHeaderFormat:i}):O(Ja,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:i})})))}))},n}(kr);function ro(e,t,n){return e||function(e,t){return pt(!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}(t,n)}var ao=function(){function e(e,t){for(var n=e.start,r=e.end,a=[],o=[],i=-1;n<r;)t.isHiddenDay(n)?a.push(i+.5):(i+=1,a.push(i),o.push(n)),n=pe(n,1);this.dates=o,this.indices=a,this.cnt=o.length}return e.prototype.sliceRange=function(e){var t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(pe(e.end,-1)),r=Math.max(0,t),a=Math.min(this.cnt-1,n);return(r=Math.ceil(r))<=(a=Math.floor(a))?{firstIndex:r,lastIndex:a,isStart:t===r,isEnd:n===a}:null},e.prototype.getDateDayIndex=function(e){var t=this.indices,n=Math.floor(ve(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]},e}(),oo=function(){function e(e,t){var n,r,a,o=e.dates;if(t){for(r=o[0].getUTCDay(),n=1;n<o.length&&o[n].getUTCDay()!==r;n+=1);a=Math.ceil(o.length/n)}else a=1,n=o.length;this.rowCnt=a,this.colCnt=n,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}return e.prototype.buildCells=function(){for(var e=[],t=0;t<this.rowCnt;t+=1){for(var n=[],r=0;r<this.colCnt;r+=1)n.push(this.buildCell(t,r));e.push(n)}return e},e.prototype.buildCell=function(e,t){var n=this.daySeries.dates[e*this.colCnt+t];return{key:n.toISOString(),date:n}},e.prototype.buildHeaderDates=function(){for(var e=[],t=0;t<this.colCnt;t+=1)e.push(this.cells[0][t].date);return e},e.prototype.sliceRange=function(e){var t=this.colCnt,n=this.daySeries.sliceRange(e),r=[];if(n)for(var a=n.firstIndex,o=n.lastIndex,i=a;i<=o;){var l=Math.floor(i/t),s=Math.min((l+1)*t,o+1);r.push({row:l,firstCol:i%t,lastCol:(s-1)%t,isStart:n.isStart&&i===a,isEnd:n.isEnd&&s-1===o}),i=s}return r},e}(),io=function(){function e(){this.sliceBusinessHours=Ze(this._sliceBusinessHours),this.sliceDateSelection=Ze(this._sliceDateSpan),this.sliceEventStore=Ze(this._sliceEventStore),this.sliceEventDrag=Ze(this._sliceInteraction),this.sliceEventResize=Ze(this._sliceInteraction),this.forceDayIfListItem=!1}return e.prototype.sliceProps=function(e,t,n,r){for(var a=[],i=4;i<arguments.length;i++)a[i-4]=arguments[i];var l=e.eventUiBases,s=this.sliceEventStore.apply(this,o([e.eventStore,l,t,n],a));return{dateSelectionSegs:this.sliceDateSelection.apply(this,o([e.dateSelection,l,r],a)),businessHourSegs:this.sliceBusinessHours.apply(this,o([e.businessHours,t,n,r],a)),fgEventSegs:s.fg,bgEventSegs:s.bg,eventDrag:this.sliceEventDrag.apply(this,o([e.eventDrag,l,t,n],a)),eventResize:this.sliceEventResize.apply(this,o([e.eventResize,l,t,n],a)),eventSelection:e.eventSelection}},e.prototype.sliceNowDate=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this._sliceDateSpan.apply(this,o([{range:{start:e,end:he(e,1)},allDay:!1},{},t],n))},e.prototype._sliceBusinessHours=function(e,t,n,r){for(var a=[],i=4;i<arguments.length;i++)a[i-4]=arguments[i];return e?this._sliceEventStore.apply(this,o([Ae(e,lo(t,Boolean(n)),r),{},t,n],a)).bg:[]},e.prototype._sliceEventStore=function(e,t,n,r){for(var a=[],o=4;o<arguments.length;o++)a[o-4]=arguments[o];if(e){var i=Xt(e,t,lo(n,Boolean(r)),r);return{bg:this.sliceEventRanges(i.bg,a),fg:this.sliceEventRanges(i.fg,a)}}return{bg:[],fg:[]}},e.prototype._sliceInteraction=function(e,t,n,r){for(var a=[],o=4;o<arguments.length;o++)a[o-4]=arguments[o];if(!e)return null;var i=Xt(e.mutatedEvents,t,lo(n,Boolean(r)),r);return{segs:this.sliceEventRanges(i.fg,a),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}},e.prototype._sliceDateSpan=function(e,t,n){for(var r=[],a=3;a<arguments.length;a++)r[a-3]=arguments[a];if(!e)return[];for(var i=mn(e,t,n),l=this.sliceRange.apply(this,o([e.range],r)),s=0,u=l;s<u.length;s++){var c=u[s];c.eventRange=i}return l},e.prototype.sliceEventRanges=function(e,t){for(var n=[],r=0,a=e;r<a.length;r++){var o=a[r];n.push.apply(n,this.sliceEventRange(o,t))}return n},e.prototype.sliceEventRange=function(e,t){var n=e.range;this.forceDayIfListItem&&"list-item"===e.ui.display&&(n={start:n.start,end:pe(n.start,1)});for(var r=this.sliceRange.apply(this,o([n],t)),a=0,i=r;a<i.length;a++){var l=i[a];l.eventRange=e,l.isStart=e.isStart&&l.isStart,l.isEnd=e.isEnd&&l.isEnd}return r},e}();function lo(e,t){var n=e.activeRange;return t?n:{start:he(n.start,e.slotMinTime.milliseconds),end:he(n.end,e.slotMaxTime.milliseconds-864e5)}}function so(e,t,n){var r=e.mutatedEvents.instances;for(var a in r)if(!Kt(t.validRange,r[a].range))return!1;return uo({eventDrag:e},n)}function uo(e,t){var r=t.getCurrentData(),a=n({businessHours:r.businessHours,dateSelection:"",eventStore:r.eventStore,eventUiBases:r.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginHooks.isPropsValid||co)(a,t)}function co(e,t,r,a){return void 0===r&&(r={}),!(e.eventDrag&&!function(e,t,r,a){var o=t.getCurrentData(),i=e.eventDrag,l=i.mutatedEvents,s=l.defs,u=l.instances,c=en(s,i.isEvent?e.eventUiBases:{"":o.selectionConfig});a&&(c=Pe(c,a));var d=(v=e.eventStore,m=i.affectedEvents.instances,{defs:v.defs,instances:Re(v.instances,(function(e){return!m[e.instanceId]}))}),f=d.defs,p=d.instances,h=en(f,e.eventUiBases);var v,m;for(var g in u){var y=u[g],b=y.range,w=c[y.defId],k=s[y.defId];if(!fo(w.constraints,b,d,e.businessHours,t))return!1;var S=t.options.eventOverlap,x="function"==typeof S?S:null;for(var E in p){var T=p[E];if(Gt(b,T.range)){if(!1===h[T.defId].overlap&&i.isEvent)return!1;if(!1===w.overlap)return!1;if(x&&!x(new Rn(t,f[T.defId],T),new Rn(t,k,y)))return!1}}for(var _=o.eventStore,C=0,D=w.allows;C<D.length;C++){var R=D[C],P=n(n({},r),{range:y.range,allDay:k.allDay}),N=_.defs[k.defId],I=_.instances[g],M=void 0;if(M=N?new Rn(t,N,I):new Rn(t,k),!R(yn(P,t),M))return!1}}return!0}(e,t,r,a))&&!(e.dateSelection&&!function(e,t,r,a){var o=e.eventStore,i=o.defs,l=o.instances,s=e.dateSelection,u=s.range,c=t.getCurrentData().selectionConfig;a&&(c=a(c));if(!fo(c.constraints,u,o,e.businessHours,t))return!1;var d=t.options.selectOverlap,f="function"==typeof d?d:null;for(var p in l){var h=l[p];if(Gt(u,h.range)){if(!1===c.overlap)return!1;if(f&&!f(new Rn(t,i[h.defId],h),null))return!1}}for(var v=0,m=c.allows;v<m.length;v++){if(!(0,m[v])(yn(n(n({},r),s),t),null))return!1}return!0}(e,t,r,a))}function fo(e,t,n,r,a){for(var o=0,i=e;o<i.length;o++){if(!vo(po(i[o],t,n,r,a),t))return!1}return!0}function po(e,t,n,r,a){return"businessHours"===e?ho(Ae(r,t,a)):"string"==typeof e?ho(Dt(n,(function(t){return t.groupId===e}))):"object"==typeof e&&e?ho(Ae(e,t,a)):[]}function ho(e){var t=e.instances,n=[];for(var r in t)n.push(t[r].range);return n}function vo(e,t){for(var n=0,r=e;n<r.length;n++){if(Kt(r[n],t))return!0}return!1}var mo=/^(visible|hidden)$/,go=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleEl=function(e){t.el=e,Er(t.props.elRef,e)},t}return t(n,e),n.prototype.render=function(){var e=this.props,t=e.liquid,n=e.liquidIsAbsolute,r=t&&n,a=["fc-scroller"];return t&&(n?a.push("fc-scroller-liquid-absolute"):a.push("fc-scroller-liquid")),O("div",{ref:this.handleEl,className:a.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||"",right:r&&-(e.overcomeRight||0)||"",bottom:r&&-(e.overcomeBottom||0)||"",marginLeft:!r&&-(e.overcomeLeft||0)||"",marginRight:!r&&-(e.overcomeRight||0)||"",marginBottom:!r&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)},n.prototype.needsXScrolling=function(){if(mo.test(this.props.overflowX))return!1;for(var e=this.el,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),n=e.children,r=0;r<n.length;r+=1){if(n[r].getBoundingClientRect().width>t)return!0}return!1},n.prototype.needsYScrolling=function(){if(mo.test(this.props.overflowY))return!1;for(var e=this.el,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),n=e.children,r=0;r<n.length;r+=1){if(n[r].getBoundingClientRect().height>t)return!0}return!1},n.prototype.getXScrollbarWidth=function(){return mo.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight},n.prototype.getYScrollbarWidth=function(){return mo.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth},n}(kr),yo=function(){function e(e){var t=this;this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=function(e,n){var r=t,a=r.depths,o=r.currentMap,i=!1,l=!1;null!==e?(i=n in o,o[n]=e,a[n]=(a[n]||0)+1,l=!0):(a[n]-=1,a[n]||(delete o[n],delete t.callbackMap[n],i=!0)),t.masterCallback&&(i&&t.masterCallback(null,String(n)),l&&t.masterCallback(e,String(n)))}}return e.prototype.createRef=function(e){var t=this,n=this.callbackMap[e];return n||(n=this.callbackMap[e]=function(n){t.handleValue(n,String(e))}),n},e.prototype.collect=function(e,t,n){return function(e,t,n,r){void 0===t&&(t=0),void 0===r&&(r=1);var a=[];null==n&&(n=Object.keys(e).length);for(var o=t;o<n;o+=r){var i=e[o];void 0!==i&&a.push(i)}return a}(this.currentMap,e,t,n)},e.prototype.getAll=function(){return Ie(this.currentMap)},e}();function bo(e){for(var t=0,n=0,r=function(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],a=0;a<n.length;a+=1)for(var o=n[a].querySelectorAll(t),i=0;i<o.length;i+=1)r.push(o[i]);return r}(e,".fc-scrollgrid-shrink");n<r.length;n++){var a=r[n];t=Math.max(t,ce(a))}return Math.ceil(t)}function wo(e,t){return e.liquid&&t.liquid}function ko(e,t){return Xe(e,t,Me)}function So(e,t){for(var n=[],r=0,a=e;r<a.length;r++)for(var i=a[r],l=i.span||1,s=0;s<l;s+=1)n.push(O("col",{style:{width:"shrink"===i.width?xo(t):i.width||"",minWidth:i.minWidth||""}}));return O.apply(void 0,o(["colgroup",{}],n))}function xo(e){return null==e?4:e}function Eo(e,t){var n=["fc-scrollgrid-section","fc-scrollgrid-section-"+e.type,e.className];return t&&e.liquid&&null==e.maxHeight&&n.push("fc-scrollgrid-section-liquid"),e.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function To(e){return O("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function _o(e){var t=e.stickyHeaderDates;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}function Co(e){var t=e.stickyFooterScrollbar;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}var Do=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.processCols=Ze((function(e){return e}),ko),t.renderMicroColGroup=Ze(So),t.scrollerRefs=new yo,t.scrollerElRefs=new yo(t._handleScrollerEl.bind(t)),t.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},t.handleSizing=function(){t.safeSetState(n({shrinkWidth:t.computeShrinkWidth()},t.computeScrollerDims()))},t}return t(r,e),r.prototype.render=function(){var e=this,t=e.props,n=e.state,r=e.context,a=t.sections||[],i=this.processCols(t.cols),l=this.renderMicroColGroup(i,n.shrinkWidth),s=function(e,t){var n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}(t.liquid,r);t.collapsibleWidth&&s.push("fc-scrollgrid-collapsible");for(var u,c=a.length,d=0,f=[],p=[],h=[];d<c&&"header"===(u=a[d]).type;)f.push(this.renderSection(u,l,!0)),d+=1;for(;d<c&&"body"===(u=a[d]).type;)p.push(this.renderSection(u,l,!1)),d+=1;for(;d<c&&"footer"===(u=a[d]).type;)h.push(this.renderSection(u,l,!0)),d+=1;var v=!Gn(),m={role:"rowgroup"};return O("table",{role:"grid",className:s.join(" "),style:{height:t.height}},Boolean(!v&&f.length)&&O.apply(void 0,o(["thead",m],f)),Boolean(!v&&p.length)&&O.apply(void 0,o(["tbody",m],p)),Boolean(!v&&h.length)&&O.apply(void 0,o(["tfoot",m],h)),v&&O.apply(void 0,o(o(o(["tbody",m],f),p),h)))},r.prototype.renderSection=function(e,t,n){return"outerContent"in e?O(z,{key:e.key},e.outerContent):O("tr",{key:e.key,role:"presentation",className:Eo(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk,n))},r.prototype.renderChunkTd=function(e,t,n,r){if("outerContent"in n)return n.outerContent;var a=this.props,o=this.state,i=o.forceYScrollbars,l=o.scrollerClientWidths,s=o.scrollerClientHeights,u=function(e,t){return null!=t.maxHeight||wo(e,t)}(a,e),c=wo(a,e),d=a.liquid?i?"scroll":u?"auto":"hidden":"visible",f=e.key,p=function(e,t,n,r){var a=n.expandRows;return"function"==typeof t.content?t.content(n):O("table",{role:"presentation",className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:a?n.clientHeight:""}},n.tableColGroupNode,O(r?"thead":"tbody",{role:"presentation"},"function"==typeof t.rowContent?t.rowContent(n):t.rowContent))}(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:a.collapsibleWidth||void 0===l[f]?null:l[f],clientHeight:void 0!==s[f]?s[f]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:function(){}},r);return O(r?"th":"td",{ref:n.elRef,role:"presentation"},O("div",{className:"fc-scroller-harness"+(c?" fc-scroller-harness-liquid":"")},O(go,{ref:this.scrollerRefs.createRef(f),elRef:this.scrollerElRefs.createRef(f),overflowY:d,overflowX:a.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:c,liquidIsAbsolute:!0},p)))},r.prototype._handleScrollerEl=function(e,t){var n=function(e,t){for(var n=0,r=e;n<r.length;n++){var a=r[n];if(a.key===t)return a}return null}(this.props.sections,t);n&&Er(n.chunk.scrollerElRef,e)},r.prototype.componentDidMount=function(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)},r.prototype.componentDidUpdate=function(){this.handleSizing()},r.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleSizing)},r.prototype.computeShrinkWidth=function(){return function(e){for(var t=0,n=e;t<n.length;t++)if("shrink"===n[t].width)return!0;return!1}(this.props.cols)?bo(this.scrollerElRefs.getAll()):0},r.prototype.computeScrollerDims=function(){var e=ir(),t=this.scrollerRefs,n=this.scrollerElRefs,r=!1,a={},o={};for(var i in t.currentMap){var l=t.currentMap[i];if(l&&l.needsYScrolling()){r=!0;break}}for(var s=0,u=this.props.sections;s<u.length;s++){i=u[s].key;var c=n.currentMap[i];if(c){var d=c.parentNode;a[i]=Math.floor(d.getBoundingClientRect().width-(r?e.y:0)),o[i]=Math.floor(d.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:a,scrollerClientHeights:o}},r}(kr);Do.addStateEquality({scrollerClientWidths:Me,scrollerClientHeights:Me});var Ro=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.elRef=L(),t}return t(n,e),n.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r=e.seg,a=r.eventRange,o=a.ui,i={event:new Rn(t,a.def,a.instance),view:t.viewApi,timeText:e.timeText,textColor:o.textColor,backgroundColor:o.backgroundColor,borderColor:o.borderColor,isDraggable:!e.disableDragging&&an(r,t),isStartResizable:!e.disableResizing&&on(r,t),isEndResizable:!e.disableResizing&&ln(r),isMirror:Boolean(e.isDragging||e.isResizing||e.isDateSelecting),isStart:Boolean(r.isStart),isEnd:Boolean(r.isEnd),isPast:Boolean(e.isPast),isFuture:Boolean(e.isFuture),isToday:Boolean(e.isToday),isSelected:Boolean(e.isSelected),isDragging:Boolean(e.isDragging),isResizing:Boolean(e.isResizing)},l=function(e){var t=["fc-event"];return e.isMirror&&t.push("fc-event-mirror"),e.isDraggable&&t.push("fc-event-draggable"),(e.isStartResizable||e.isEndResizable)&&t.push("fc-event-resizable"),e.isDragging&&t.push("fc-event-dragging"),e.isResizing&&t.push("fc-event-resizing"),e.isSelected&&t.push("fc-event-selected"),e.isStart&&t.push("fc-event-start"),e.isEnd&&t.push("fc-event-end"),e.isPast&&t.push("fc-event-past"),e.isToday&&t.push("fc-event-today"),e.isFuture&&t.push("fc-event-future"),t}(i).concat(o.classNames);return O(Pr,{hookProps:i,classNames:n.eventClassNames,content:n.eventContent,defaultContent:e.defaultContent,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount,elRef:this.elRef},(function(t,n,r,a){return e.children(t,l.concat(n),r,a,i)}))},n.prototype.componentDidMount=function(){Zt(this.elRef.current,this.props.seg)},n.prototype.componentDidUpdate=function(e){var t=this.props.seg;t!==e.seg&&Zt(this.elRef.current,t)},n}(kr),Po=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t(r,e),r.prototype.render=function(){var e=this.props,t=this.context,r=e.seg,a=t.options.eventTimeFormat||e.defaultTimeFormat,o=sn(r,a,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return O(Ro,{seg:r,timeText:o,disableDragging:e.disableDragging,disableResizing:e.disableResizing,defaultContent:e.defaultContent||No,isDragging:e.isDragging,isResizing:e.isResizing,isDateSelecting:e.isDateSelecting,isSelected:e.isSelected,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},(function(a,o,i,l,s){return O("a",n({className:e.extraClassNames.concat(o).join(" "),style:{borderColor:s.borderColor,backgroundColor:s.backgroundColor},ref:a},dn(r,t)),O("div",{className:"fc-event-main",ref:i,style:{color:s.textColor}},l),s.isStartResizable&&O("div",{className:"fc-event-resizer fc-event-resizer-start"}),s.isEndResizable&&O("div",{className:"fc-event-resizer fc-event-resizer-end"}))}))},r}(kr);function No(e){return O("div",{className:"fc-event-main-frame"},e.timeText&&O("div",{className:"fc-event-time"},e.timeText),O("div",{className:"fc-event-title-container"},O("div",{className:"fc-event-title fc-sticky"},e.event.title||O(z,null," "))))}var Io=function(e){return O(yr.Consumer,null,(function(t){var n=t.options,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return O(Pr,{hookProps:r,classNames:n.nowIndicatorClassNames,content:n.nowIndicatorContent,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount},e.children)}))},Mo=pt({day:"numeric"}),Oo=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r=Lo({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraProps:e.extraHookProps,viewApi:t.viewApi,dateEnv:t.dateEnv});return O(Ir,{hookProps:r,content:n.dayCellContent,defaultContent:e.defaultContent},e.children)},n}(kr);function Lo(e){var t=e.date,r=e.dateEnv,a=Zn(t,e.todayRange,null,e.dateProfile);return n(n(n({date:r.toDate(t),view:e.viewApi},a),{dayNumberText:e.showDayNumber?r.format(t,Mo):""}),e.extraProps)}var zo=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.refineHookProps=Je(Lo),t.normalizeClassNames=Lr(),t}return t(n,e),n.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r=this.refineHookProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraProps:e.extraHookProps,viewApi:t.viewApi,dateEnv:t.dateEnv}),a=Jn(r,t.theme).concat(r.isDisabled?[]:this.normalizeClassNames(n.dayCellClassNames,r)),o=r.isDisabled?{}:{"data-date":Ke(e.date)};return O(Or,{hookProps:r,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount,elRef:e.elRef},(function(t){return e.children(t,a,o,r.isDisabled)}))},n}(kr);function Ao(e){return O("div",{className:"fc-"+e})}var Fo=function(e){return O(Ro,{defaultContent:Ho,seg:e.seg,timeText:"",disableDragging:!0,disableResizing:!0,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},(function(e,t,n,r,a){return O("div",{ref:e,className:["fc-bg-event"].concat(t).join(" "),style:{backgroundColor:a.backgroundColor}},r)}))};function Ho(e){return e.event.title&&O("div",{className:"fc-event-title"},e.event.title)}var jo=function(e){return O(yr.Consumer,null,(function(t){var n=t.dateEnv,r=t.options,a=e.date,o=r.weekNumberFormat||e.defaultFormat,i=n.computeWeekNumber(a),l=n.format(a,o);return O(Pr,{hookProps:{num:i,text:l,date:a},classNames:r.weekNumberClassNames,content:r.weekNumberContent,defaultContent:Uo,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},e.children)}))};function Uo(e){return e.text}var Vo=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={titleId:K()},t.handleRootEl=function(e){t.rootEl=e,t.props.elRef&&Er(t.props.elRef,e)},t.handleDocumentMouseDown=function(e){var n=q(e);t.rootEl.contains(n)||t.handleCloseClick()},t.handleDocumentKeyDown=function(e){"Escape"===e.key&&t.handleCloseClick()},t.handleCloseClick=function(){var e=t.props.onClose;e&&e()},t}return t(r,e),r.prototype.render=function(){var e=this.context,t=e.theme,r=e.options,a=this.props,o=this.state,i=["fc-popover",t.getClass("popover")].concat(a.extraClassNames||[]);return F(O("div",n({id:a.id,className:i.join(" "),"aria-labelledby":o.titleId},a.extraAttrs,{ref:this.handleRootEl}),O("div",{className:"fc-popover-header "+t.getClass("popoverHeader")},O("span",{className:"fc-popover-title",id:o.titleId},a.title),O("span",{className:"fc-popover-close "+t.getIconClass("close"),title:r.closeHint,onClick:this.handleCloseClick})),O("div",{className:"fc-popover-body "+t.getClass("popoverContent")},a.children)),a.parentEl)},r.prototype.componentDidMount=function(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()},r.prototype.componentWillUnmount=function(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)},r.prototype.updateSize=function(){var e=this.context.isRtl,t=this.props,n=t.alignmentEl,r=t.alignGridTop,a=this.rootEl,o=function(e){for(var t=cr(e),n=e.getBoundingClientRect(),r=0,a=t;r<a.length;r++){var o=Yn(n,a[r].getBoundingClientRect());if(!o)return null;n=o}return n}(n);if(o){var i=a.getBoundingClientRect(),l=r?U(n,".fc-scrollgrid").getBoundingClientRect().top:o.top,s=e?o.right-i.width:o.left;l=Math.max(l,10),s=Math.min(s,document.documentElement.clientWidth-10-i.width),s=Math.max(s,10);var u=a.offsetParent.getBoundingClientRect();B(a,{top:l-u.top,left:s-u.left})}},r}(kr),Wo=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleRootEl=function(e){t.rootEl=e,e?t.context.registerInteractiveComponent(t,{el:e,useEventCenter:!1}):t.context.unregisterInteractiveComponent(t)},t}return t(r,e),r.prototype.render=function(){var e=this.context,t=e.options,n=e.dateEnv,r=this.props,a=r.startDate,o=r.todayRange,i=r.dateProfile,l=n.format(a,t.dayPopoverFormat);return O(zo,{date:a,dateProfile:i,todayRange:o,elRef:this.handleRootEl},(function(e,t,n){return O(Vo,{elRef:e,id:r.id,title:l,extraClassNames:["fc-more-popover"].concat(t),extraAttrs:n,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},O(Oo,{date:a,dateProfile:i,todayRange:o},(function(e,t){return t&&O("div",{className:"fc-more-popover-misc",ref:e},t)})),r.children)}))},r.prototype.queryHit=function(e,t,r,a){var o=this.rootEl,i=this.props;return e>=0&&e<r&&t>=0&&t<a?{dateProfile:i.dateProfile,dateSpan:n({allDay:!0,range:{start:i.startDate,end:i.endDate}},i.extraDateSpan),dayEl:o,rect:{left:0,top:0,right:r,bottom:a},layer:1}:null},r}(Tr),Bo=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.linkElRef=L(),t.state={isPopoverOpen:!1,popoverId:K()},t.handleClick=function(e){var n=t,r=n.props,a=n.context,o=a.options.moreLinkClick,i=qo(r).start;function l(e){var t=e.eventRange,n=t.def,r=t.instance,o=t.range;return{event:new Rn(a,n,r),start:a.dateEnv.toDate(o.start),end:a.dateEnv.toDate(o.end),isStart:e.isStart,isEnd:e.isEnd}}"function"==typeof o&&(o=o({date:i,allDay:Boolean(r.allDayDate),allSegs:r.allSegs.map(l),hiddenSegs:r.hiddenSegs.map(l),jsEvent:e,view:a.viewApi})),o&&"popover"!==o?"string"==typeof o&&a.calendarApi.zoomTo(i,o):t.setState({isPopoverOpen:!0})},t.handlePopoverClose=function(){t.setState({isPopoverOpen:!1})},t}return t(n,e),n.prototype.render=function(){var e=this,t=this.props,n=this.state;return O(yr.Consumer,null,(function(r){var a=r.viewApi,o=r.options,i=r.calendarApi,l=o.moreLinkText,s=t.moreCnt,u=qo(t),c="function"==typeof l?l.call(i,s):"+"+s+" "+l,d=le(o.moreLinkHint,[s],c),f={num:s,shortText:"+"+s,text:c,view:a};return O(z,null,Boolean(t.moreCnt)&&O(Pr,{elRef:e.linkElRef,hookProps:f,classNames:o.moreLinkClassNames,content:o.moreLinkContent,defaultContent:t.defaultContent||$o,didMount:o.moreLinkDidMount,willUnmount:o.moreLinkWillUnmount},(function(r,a,o,i){return t.children(r,["fc-more-link"].concat(a),o,i,e.handleClick,d,n.isPopoverOpen,n.isPopoverOpen?n.popoverId:"")})),n.isPopoverOpen&&O(Wo,{id:n.popoverId,startDate:u.start,endDate:u.end,dateProfile:t.dateProfile,todayRange:t.todayRange,extraDateSpan:t.extraDateSpan,parentEl:e.parentEl,alignmentEl:t.alignmentElRef.current,alignGridTop:t.alignGridTop,onClose:e.handlePopoverClose},t.popoverContent()))}))},n.prototype.componentDidMount=function(){this.updateParentEl()},n.prototype.componentDidUpdate=function(){this.updateParentEl()},n.prototype.updateParentEl=function(){this.linkElRef.current&&(this.parentEl=U(this.linkElRef.current,".fc-view-harness"))},n}(kr);function $o(e){return e.text}function qo(e){if(e.allDayDate)return{start:e.allDayDate,end:pe(e.allDayDate,1)};var t,n=e.hiddenSegs;return{start:Yo(n),end:(t=n,t.reduce(Ko).eventRange.range.end)}}function Yo(e){return e.reduce(Go).eventRange.range.start}function Go(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function Ko(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}var Qo=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t._calendarApi=new Dn,t}return t(r,e),r.prototype.render=function(){return u.exports.createElement(Ca,{optionOverrides:this.props,calendarApi:this._calendarApi},(function(e){return u.exports.createElement(Ga,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},(function(t,r,a,o){return u.exports.createElement("div",{className:t.join(" "),style:{height:r}},u.exports.createElement($a,n({isHeightAuto:a,forPrint:o},e)))}))}))},r.prototype.getApi=function(){return this._calendarApi},r}(u.exports.Component),Xo=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.headerElRef=L(),t}return t(n,e),n.prototype.renderSimpleLayout=function(e,t){var n=this.props,r=this.context,a=[],o=_o(r.options);return e&&a.push({type:"header",key:"header",isSticky:o,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),a.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}),O(Fr,{viewSpec:r.viewSpec},(function(e,t){return O("div",{ref:e,className:["fc-daygrid"].concat(t).join(" ")},O(Do,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:a}))}))},n.prototype.renderHScrollLayout=function(e,t,n,r){var a=this.context.pluginHooks.scrollGridImpl;if(!a)throw new Error("No ScrollGrid implementation");var o=this.props,i=this.context,l=!o.forPrint&&_o(i.options),s=!o.forPrint&&Co(i.options),u=[];return e&&u.push({type:"header",key:"header",isSticky:l,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),u.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:t}]}),s&&u.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:To}]}),O(Fr,{viewSpec:i.viewSpec},(function(e,t){return O("div",{ref:e,className:["fc-daygrid"].concat(t).join(" ")},O(a,{liquid:!o.isHeightAuto&&!o.forPrint,collapsibleWidth:o.forPrint,colGroups:[{cols:[{span:n,minWidth:r}]}],sections:u}))}))},n}(Tr);
|
|
56
|
+
var EventSourceApi=function(){function e(e,t){this.context=e,this.internalEventSource=t}return e.prototype.remove=function(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})},e.prototype.refetch=function(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})},Object.defineProperty(e.prototype,"id",{get:function(){return this.internalEventSource.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this.internalEventSource.meta.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"format",{get:function(){return this.internalEventSource.meta.format},enumerable:!1,configurable:!0}),e}();function removeElement(e){e.parentNode&&e.parentNode.removeChild(e)}function elementClosest(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(elementMatches(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function elementMatches(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}function findElements(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],a=0;a<n.length;a+=1)for(var o=n[a].querySelectorAll(t),i=0;i<o.length;i+=1)r.push(o[i]);return r}var PIXEL_PROP_RE=/(top|left|right|bottom|width|height)$/i;function applyStyle(e,t){for(var n in t)applyStyleProp(e,n,t[n])}function applyStyleProp(e,t,n){null==n?e.style[t]="":"number"==typeof n&&PIXEL_PROP_RE.test(t)?e.style[t]=n+"px":e.style[t]=n}function getEventTargetViaRoot(e){var t,n;return null!==(n=null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])&&void 0!==n?n:e.target}function getElRoot(e){return e.getRootNode?e.getRootNode():document}var guid$1=0;function getUniqueDomId(){return"fc-dom-"+(guid$1+=1)}function preventDefault(e){e.preventDefault()}function buildDelegationHandler(e,t){return function(n){var r=elementClosest(n.target,e);r&&t.call(r,n,r)}}function listenBySelector(e,t,n,r){var a=buildDelegationHandler(n,r);return e.addEventListener(t,a),function(){e.removeEventListener(t,a)}}function listenToHoverBySelector(e,t,n,r){var a;return listenBySelector(e,"mouseover",t,(function(e,t){if(t!==a){a=t,n(e,t);var o=function(e){a=null,r(e,t),t.removeEventListener("mouseleave",o)};t.addEventListener("mouseleave",o)}}))}var transitionEventNames=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function whenTransitionDone(e,t){var n=function(r){t(r),transitionEventNames.forEach((function(t){e.removeEventListener(t,n)}))};transitionEventNames.forEach((function(t){e.addEventListener(t,n)}))}function createAriaClickAttrs(e){return __assign$1({onClick:e},createAriaKeyboardAttrs(e))}function createAriaKeyboardAttrs(e){return{tabIndex:0,onKeyDown:function(t){"Enter"!==t.key&&" "!==t.key||(e(t),t.preventDefault())}}}var guidNumber=0;function guid(){return String(guidNumber+=1)}function disableCursor(){document.body.classList.add("fc-not-allowed")}function enableCursor(){document.body.classList.remove("fc-not-allowed")}function preventSelection(e){e.classList.add("fc-unselectable"),e.addEventListener("selectstart",preventDefault)}function allowSelection(e){e.classList.remove("fc-unselectable"),e.removeEventListener("selectstart",preventDefault)}function preventContextMenu(e){e.addEventListener("contextmenu",preventDefault)}function allowContextMenu(e){e.removeEventListener("contextmenu",preventDefault)}function parseFieldSpecs(e){var t,n,r=[],a=[];for("string"==typeof e?a=e.split(/\s*,\s*/):"function"==typeof e?a=[e]:Array.isArray(e)&&(a=e),t=0;t<a.length;t+=1)"string"==typeof(n=a[t])?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&r.push({func:n});return r}function compareByFieldSpecs(e,t,n){var r,a;for(r=0;r<n.length;r+=1)if(a=compareByFieldSpec(e,t,n[r]))return a;return 0}function compareByFieldSpec(e,t,n){return n.func?n.func(e,t):flexibleCompare(e[n.field],t[n.field])*(n.order||1)}function flexibleCompare(e,t){return e||t?null==t?-1:null==e?1:"string"==typeof e||"string"==typeof t?String(e).localeCompare(String(t)):e-t:0}function padStart(e,t){var n=String(e);return"000".substr(0,t-n.length)+n}function formatWithOrdinals(e,t,n){return"function"==typeof e?e.apply(void 0,t):"string"==typeof e?t.reduce((function(e,t,n){return e.replace("$"+n,t||"")}),e):n}function compareNumbers(e,t){return e-t}function isInt(e){return e%1==0}function computeSmallestCellWidth(e){var t=e.querySelector(".fc-scrollgrid-shrink-frame"),n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}var DAY_IDS=["sun","mon","tue","wed","thu","fri","sat"];function addWeeks(e,t){var n=dateToUtcArray(e);return n[2]+=7*t,arrayToUtcDate(n)}function addDays(e,t){var n=dateToUtcArray(e);return n[2]+=t,arrayToUtcDate(n)}function addMs(e,t){var n=dateToUtcArray(e);return n[6]+=t,arrayToUtcDate(n)}function diffWeeks(e,t){return diffDays(e,t)/7}function diffDays(e,t){return(t.valueOf()-e.valueOf())/864e5}function diffHours(e,t){return(t.valueOf()-e.valueOf())/36e5}function diffMinutes(e,t){return(t.valueOf()-e.valueOf())/6e4}function diffSeconds(e,t){return(t.valueOf()-e.valueOf())/1e3}function diffDayAndTime(e,t){var n=startOfDay(e),r=startOfDay(t);return{years:0,months:0,days:Math.round(diffDays(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function diffWholeWeeks(e,t){var n=diffWholeDays(e,t);return null!==n&&n%7==0?n/7:null}function diffWholeDays(e,t){return timeAsMs(e)===timeAsMs(t)?Math.round(diffDays(e,t)):null}function startOfDay(e){return arrayToUtcDate([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function startOfHour(e){return arrayToUtcDate([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}function startOfMinute(e){return arrayToUtcDate([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}function startOfSecond(e){return arrayToUtcDate([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}function weekOfYear(e,t,n){var r=e.getUTCFullYear(),a=weekOfGivenYear(e,r,t,n);if(a<1)return weekOfGivenYear(e,r-1,t,n);var o=weekOfGivenYear(e,r+1,t,n);return o>=1?Math.min(a,o):a}function weekOfGivenYear(e,t,n,r){var a=arrayToUtcDate([t,0,1+firstWeekOffset(t,n,r)]),o=startOfDay(e),i=Math.round(diffDays(a,o));return Math.floor(i/7)+1}function firstWeekOffset(e,t,n){var r=7+t-n;return-((7+arrayToUtcDate([e,0,r]).getUTCDay()-t)%7)+r-1}function dateToLocalArray(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function arrayToLocalDate(e){return new Date(e[0],e[1]||0,null==e[2]?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function dateToUtcArray(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function arrayToUtcDate(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC.apply(Date,e))}function isValidDate(e){return!isNaN(e.valueOf())}function timeAsMs(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function createEventInstance(e,t,n,r){return{instanceId:guid(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}var hasOwnProperty=Object.prototype.hasOwnProperty;function mergeProps(e,t){var n={};if(t)for(var r in t){for(var a=[],o=e.length-1;o>=0;o-=1){var i=e[o][r];if("object"==typeof i&&i)a.unshift(i);else if(void 0!==i){n[r]=i;break}}a.length&&(n[r]=mergeProps(a))}for(o=e.length-1;o>=0;o-=1){var l=e[o];for(var s in l)s in n||(n[s]=l[s])}return n}function filterHash(e,t){var n={};for(var r in e)t(e[r],r)&&(n[r]=e[r]);return n}function mapHash(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}function arrayToHash(e){for(var t={},n=0,r=e;n<r.length;n++){t[r[n]]=!0}return t}function hashValuesToArray(e){var t=[];for(var n in e)t.push(e[n]);return t}function isPropsEqual(e,t){if(e===t)return!0;for(var n in e)if(hasOwnProperty.call(e,n)&&!(n in t))return!1;for(var n in t)if(hasOwnProperty.call(t,n)&&e[n]!==t[n])return!1;return!0}function getUnequalProps(e,t){var n=[];for(var r in e)hasOwnProperty.call(e,r)&&(r in t||n.push(r));for(var r in t)hasOwnProperty.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function compareObjs(e,t,n){if(void 0===n&&(n={}),e===t)return!0;for(var r in t)if(!(r in e)||!isObjValsEqual(e[r],t[r],n[r]))return!1;for(var r in e)if(!(r in t))return!1;return!0}function isObjValsEqual(e,t,n){return e===t||!0===n||!!n&&n(e,t)}function collectFromHash(e,t,n,r){void 0===t&&(t=0),void 0===r&&(r=1);var a=[];null==n&&(n=Object.keys(e).length);for(var o=t;o<n;o+=r){var i=e[o];void 0!==i&&a.push(i)}return a}function parseRecurring(e,t,n,r){for(var a=0;a<r.length;a+=1){var o=r[a].parse(e,n);if(o){var i=e.allDay;return null==i&&null==(i=t)&&null==(i=o.allDayGuess)&&(i=!1),{allDay:i,duration:o.duration,typeData:o.typeData,typeId:a}}}return null}function expandRecurring(e,t,n){var r=n.dateEnv,a=n.pluginHooks,o=n.options,i=e.defs,l=e.instances;for(var s in l=filterHash(l,(function(e){return!i[e.defId].recurringDef})),i){var u=i[s];if(u.recurringDef){var c=u.recurringDef.duration;c||(c=u.allDay?o.defaultAllDayEventDuration:o.defaultTimedEventDuration);for(var d=0,f=expandRecurringRanges(u,c,t,r,a.recurringTypes);d<f.length;d++){var p=f[d],h=createEventInstance(s,{start:p,end:r.add(p,c)});l[h.instanceId]=h}}}return{defs:i,instances:l}}function expandRecurringRanges(e,t,n,r,a){var o=a[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(o=o.map(startOfDay)),o}var INTERNAL_UNITS=["years","months","days","milliseconds"],PARSE_RE=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function createDuration(e,t){var n;return"string"==typeof e?parseString(e):"object"==typeof e&&e?parseObject(e):"number"==typeof e?parseObject(((n={})[t||"milliseconds"]=e,n)):null}function parseString(e){var t=PARSE_RE.exec(e);if(t){var n=t[1]?-1:1;return{years:0,months:0,days:n*(t[2]?parseInt(t[2],10):0),milliseconds:n*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}function parseObject(e){var t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)},n=e.weeks||e.week;return n&&(t.days+=7*n,t.specifiedWeeks=!0),t}function durationsEqual(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function addDurations(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function subtractDurations(e,t){return{years:e.years-t.years,months:e.months-t.months,days:e.days-t.days,milliseconds:e.milliseconds-t.milliseconds}}function multiplyDuration(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function asRoughYears(e){return asRoughDays(e)/365}function asRoughMonths(e){return asRoughDays(e)/30}function asRoughDays(e){return asRoughMs(e)/864e5}function asRoughMs(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function wholeDivideDurations(e,t){for(var n=null,r=0;r<INTERNAL_UNITS.length;r+=1){var a=INTERNAL_UNITS[r];if(t[a]){var o=e[a]/t[a];if(!isInt(o)||null!==n&&n!==o)return null;n=o}else if(e[a])return null}return n}function greatestDurationDenominator(e){var t=e.milliseconds;if(t){if(t%1e3!=0)return{unit:"millisecond",value:t};if(t%6e4!=0)return{unit:"second",value:t/1e3};if(t%36e5!=0)return{unit:"minute",value:t/6e4};if(t)return{unit:"hour",value:t/36e5}}return e.days?e.specifiedWeeks&&e.days%7==0?{unit:"week",value:e.days/7}:{unit:"day",value:e.days}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function buildIsoString(e,t,n){void 0===n&&(n=!1);var r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",formatTimeZoneOffset(t,!0)))),r}function formatDayString(e){return e.toISOString().replace(/T.*$/,"")}function formatIsoTimeString(e){return padStart(e.getUTCHours(),2)+":"+padStart(e.getUTCMinutes(),2)+":"+padStart(e.getUTCSeconds(),2)}function formatTimeZoneOffset(e,t){void 0===t&&(t=!1);var n=e<0?"-":"+",r=Math.abs(e),a=Math.floor(r/60),o=Math.round(r%60);return t?n+padStart(a,2)+":"+padStart(o,2):"GMT"+n+a+(o?":"+padStart(o,2):"")}function isArraysEqual(e,t,n){if(e===t)return!0;var r,a=e.length;if(a!==t.length)return!1;for(r=0;r<a;r+=1)if(!(n?n(e[r],t[r]):e[r]===t[r]))return!1;return!0}function memoize(e,t,n){var r,a;return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(r){if(!isArraysEqual(r,o)){n&&n(a);var l=e.apply(this,o);t&&t(l,a)||(a=l)}}else a=e.apply(this,o);return r=o,a}}function memoizeObjArg(e,t,n){var r,a,o=this;return function(i){if(r){if(!isPropsEqual(r,i)){n&&n(a);var l=e.call(o,i);t&&t(l,a)||(a=l)}}else a=e.call(o,i);return r=i,a}}var EXTENDED_SETTINGS_AND_SEVERITIES={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},STANDARD_DATE_PROP_SEVERITIES={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},MERIDIEM_RE=/\s*([ap])\.?m\.?/i,COMMA_RE=/,/g,MULTI_SPACE_RE=/\s+/g,LTR_RE=/\u200e/g,UTC_RE=/UTC|GMT/,NativeFormatter=function(){function e(e){var t={},n={},r=0;for(var a in e)a in EXTENDED_SETTINGS_AND_SEVERITIES?(n[a]=e[a],r=Math.max(EXTENDED_SETTINGS_AND_SEVERITIES[a],r)):(t[a]=e[a],a in STANDARD_DATE_PROP_SEVERITIES&&(r=Math.max(STANDARD_DATE_PROP_SEVERITIES[a],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=memoize(buildFormattingFunc)}return e.prototype.format=function(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)},e.prototype.formatRange=function(e,t,n,r){var a=this.standardDateProps,o=this.extendedSettings,i=computeMarkerDiffSeverity(e.marker,t.marker,n.calendarSystem);if(!i)return this.format(e,n);var l=i;!(l>1)||"numeric"!==a.year&&"2-digit"!==a.year||"numeric"!==a.month&&"2-digit"!==a.month||"numeric"!==a.day&&"2-digit"!==a.day||(l=1);var s=this.format(e,n),u=this.format(t,n);if(s===u)return s;var c=buildFormattingFunc(computePartialFormattingOptions(a,l),o,n),d=c(e),f=c(t),p=findCommonInsertion(s,d,u,f),h=o.separator||r||n.defaultSeparator||"";return p?p.before+d+h+f+p.after:s+h+u},e.prototype.getLargestUnit=function(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}},e}();function buildFormattingFunc(e,t,n){var r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?function(e){return formatTimeZoneOffset(e.timeZoneOffset)}:0===r&&t.week?function(e){return formatWeekNumber(n.computeWeekNumber(e.marker),n.weekText,n.weekTextLong,n.locale,t.week)}:buildNativeFormattingFunc(e,t,n)}function buildNativeFormattingFunc(e,t,n){e=__assign$1({},e),t=__assign$1({},t),sanitizeSettings(e,t),e.timeZone="UTC";var r,a=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){var o=__assign$1({},e);delete o.minute,r=new Intl.DateTimeFormat(n.locale.codes,o)}return function(o){var i=o.marker;return postProcess((r&&!i.getUTCMinutes()?r:a).format(i),o,e,t,n)}}function sanitizeSettings(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit")),"long"===e.timeZoneName&&(e.timeZoneName="short"),t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}function postProcess(e,t,n,r,a){return e=e.replace(LTR_RE,""),"short"===n.timeZoneName&&(e=injectTzoStr(e,"UTC"===a.timeZone||null==t.timeZoneOffset?"UTC":formatTimeZoneOffset(t.timeZoneOffset))),r.omitCommas&&(e=e.replace(COMMA_RE,"").trim()),r.omitZeroMinute&&(e=e.replace(":00","")),!1===r.meridiem?e=e.replace(MERIDIEM_RE,"").trim():"narrow"===r.meridiem?e=e.replace(MERIDIEM_RE,(function(e,t){return t.toLocaleLowerCase()})):"short"===r.meridiem?e=e.replace(MERIDIEM_RE,(function(e,t){return t.toLocaleLowerCase()+"m"})):"lowercase"===r.meridiem&&(e=e.replace(MERIDIEM_RE,(function(e){return e.toLocaleLowerCase()}))),e=(e=e.replace(MULTI_SPACE_RE," ")).trim()}function injectTzoStr(e,t){var n=!1;return e=e.replace(UTC_RE,(function(){return n=!0,t})),n||(e+=" "+t),e}function formatWeekNumber(e,t,n,r,a){var o=[];return"long"===a?o.push(n):"short"!==a&&"narrow"!==a||o.push(t),"long"!==a&&"short"!==a||o.push(" "),o.push(r.simpleNumberFormat.format(e)),"rtl"===r.options.direction&&o.reverse(),o.join("")}function computeMarkerDiffSeverity(e,t,n){return n.getMarkerYear(e)!==n.getMarkerYear(t)?5:n.getMarkerMonth(e)!==n.getMarkerMonth(t)?4:n.getMarkerDay(e)!==n.getMarkerDay(t)?2:timeAsMs(e)!==timeAsMs(t)?1:0}function computePartialFormattingOptions(e,t){var n={};for(var r in e)(!(r in STANDARD_DATE_PROP_SEVERITIES)||STANDARD_DATE_PROP_SEVERITIES[r]<=t)&&(n[r]=e[r]);return n}function findCommonInsertion(e,t,n,r){for(var a=0;a<e.length;){var o=e.indexOf(t,a);if(-1===o)break;var i=e.substr(0,o);a=o+t.length;for(var l=e.substr(a),s=0;s<n.length;){var u=n.indexOf(r,s);if(-1===u)break;var c=n.substr(0,u);s=u+r.length;var d=n.substr(s);if(i===c&&l===d)return{before:i,after:l}}}return null}function expandZonedMarker(e,t){var n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function createVerboseFormattingArg(e,t,n,r){var a=expandZonedMarker(e,n.calendarSystem);return{date:a,start:a,end:t?expandZonedMarker(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}var CmdFormatter=function(){function e(e){this.cmdStr=e}return e.prototype.format=function(e,t,n){return t.cmdFormatter(this.cmdStr,createVerboseFormattingArg(e,null,t,n))},e.prototype.formatRange=function(e,t,n,r){return n.cmdFormatter(this.cmdStr,createVerboseFormattingArg(e,t,n,r))},e}(),FuncFormatter=function(){function e(e){this.func=e}return e.prototype.format=function(e,t,n){return this.func(createVerboseFormattingArg(e,null,t,n))},e.prototype.formatRange=function(e,t,n,r){return this.func(createVerboseFormattingArg(e,t,n,r))},e}();function createFormatter(e){return"object"==typeof e&&e?new NativeFormatter(e):"string"==typeof e?new CmdFormatter(e):"function"==typeof e?new FuncFormatter(e):null}var BASE_OPTION_REFINERS={navLinkDayClick:identity,navLinkWeekClick:identity,duration:createDuration,bootstrapFontAwesome:identity,buttonIcons:identity,customButtons:identity,defaultAllDayEventDuration:createDuration,defaultTimedEventDuration:createDuration,nextDayThreshold:createDuration,scrollTime:createDuration,scrollTimeReset:Boolean,slotMinTime:createDuration,slotMaxTime:createDuration,dayPopoverFormat:createFormatter,slotDuration:createDuration,snapDuration:createDuration,headerToolbar:identity,footerToolbar:identity,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:createFormatter,dayHeaderClassNames:identity,dayHeaderContent:identity,dayHeaderDidMount:identity,dayHeaderWillUnmount:identity,dayCellClassNames:identity,dayCellContent:identity,dayCellDidMount:identity,dayCellWillUnmount:identity,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:identity,weekNumbers:Boolean,weekNumberClassNames:identity,weekNumberContent:identity,weekNumberDidMount:identity,weekNumberWillUnmount:identity,editable:Boolean,viewClassNames:identity,viewDidMount:identity,viewWillUnmount:identity,nowIndicator:Boolean,nowIndicatorClassNames:identity,nowIndicatorContent:identity,nowIndicatorDidMount:identity,nowIndicatorWillUnmount:identity,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:identity,locale:identity,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:identity,eventOrder:parseFieldSpecs,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:identity,contentHeight:identity,direction:String,weekNumberFormat:createFormatter,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:identity,initialDate:identity,now:identity,eventDataTransform:identity,stickyHeaderDates:identity,stickyFooterScrollbar:identity,viewHeight:identity,defaultAllDay:Boolean,eventSourceFailure:identity,eventSourceSuccess:identity,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:identity,eventConstraint:identity,eventAllow:identity,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:identity,eventContent:identity,eventDidMount:identity,eventWillUnmount:identity,selectConstraint:identity,selectOverlap:identity,selectAllow:identity,droppable:Boolean,unselectCancel:String,slotLabelFormat:identity,slotLaneClassNames:identity,slotLaneContent:identity,slotLaneDidMount:identity,slotLaneWillUnmount:identity,slotLabelClassNames:identity,slotLabelContent:identity,slotLabelDidMount:identity,slotLabelWillUnmount:identity,dayMaxEvents:identity,dayMaxEventRows:identity,dayMinWidth:Number,slotLabelInterval:createDuration,allDayText:String,allDayClassNames:identity,allDayContent:identity,allDayDidMount:identity,allDayWillUnmount:identity,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:createFormatter,rerenderDelay:Number,moreLinkText:identity,moreLinkHint:identity,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:identity,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:createDuration,hiddenDays:identity,monthMode:Boolean,fixedWeekCount:Boolean,validRange:identity,visibleRange:identity,titleFormat:identity,eventInteractive:Boolean,noEventsText:String,viewHint:identity,navLinkHint:identity,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:identity,moreLinkClassNames:identity,moreLinkContent:identity,moreLinkDidMount:identity,moreLinkWillUnmount:identity},BASE_OPTION_DEFAULTS={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30},CALENDAR_LISTENER_REFINERS={datesSet:identity,eventsSet:identity,eventAdd:identity,eventChange:identity,eventRemove:identity,windowResize:identity,eventClick:identity,eventMouseEnter:identity,eventMouseLeave:identity,select:identity,unselect:identity,loading:identity,_unmount:identity,_beforeprint:identity,_afterprint:identity,_noEventDrop:identity,_noEventResize:identity,_resize:identity,_scrollRequest:identity},CALENDAR_OPTION_REFINERS={buttonText:identity,buttonHints:identity,views:identity,plugins:identity,initialEvents:identity,events:identity,eventSources:identity},COMPLEX_OPTION_COMPARATORS={headerToolbar:isMaybeObjectsEqual,footerToolbar:isMaybeObjectsEqual,buttonText:isMaybeObjectsEqual,buttonHints:isMaybeObjectsEqual,buttonIcons:isMaybeObjectsEqual,dateIncrement:isMaybeObjectsEqual};function isMaybeObjectsEqual(e,t){return"object"==typeof e&&"object"==typeof t&&e&&t?isPropsEqual(e,t):e===t}var VIEW_OPTION_REFINERS={type:String,component:identity,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:identity,usesMinMaxTime:Boolean,classNames:identity,content:identity,didMount:identity,willUnmount:identity};function mergeRawOptions(e){return mergeProps(e,COMPLEX_OPTION_COMPARATORS)}function refineProps(e,t){var n={},r={};for(var a in t)a in e&&(n[a]=t[a](e[a]));for(var a in e)a in t||(r[a]=e[a]);return{refined:n,extra:r}}function identity(e){return e}function parseEvents(e,t,n,r){for(var a=createEmptyEventStore(),o=buildEventRefiners(n),i=0,l=e;i<l.length;i++){var s=parseEvent(l[i],t,n,r,o);s&&eventTupleToStore(s,a)}return a}function eventTupleToStore(e,t){return void 0===t&&(t=createEmptyEventStore()),t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function getRelevantEvents(e,t){var n=e.instances[t];if(n){var r=e.defs[n.defId],a=filterEventStoreDefs(e,(function(e){return isEventDefsGrouped(r,e)}));return a.defs[r.defId]=r,a.instances[n.instanceId]=n,a}return createEmptyEventStore()}function isEventDefsGrouped(e,t){return Boolean(e.groupId&&e.groupId===t.groupId)}function createEmptyEventStore(){return{defs:{},instances:{}}}function mergeEventStores(e,t){return{defs:__assign$1(__assign$1({},e.defs),t.defs),instances:__assign$1(__assign$1({},e.instances),t.instances)}}function filterEventStoreDefs(e,t){var n=filterHash(e.defs,t),r=filterHash(e.instances,(function(e){return n[e.defId]}));return{defs:n,instances:r}}function excludeSubEventStore(e,t){var n=e.defs,r=e.instances,a={},o={};for(var i in n)t.defs[i]||(a[i]=n[i]);for(var l in r)!t.instances[l]&&a[r[l].defId]&&(o[l]=r[l]);return{defs:a,instances:o}}function normalizeConstraint(e,t){return Array.isArray(e)?parseEvents(e,null,t,!0):"object"==typeof e&&e?parseEvents([e],null,t,!0):null!=e?String(e):null}function parseClassNames(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}var EVENT_UI_REFINERS={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:identity,overlap:identity,allow:identity,className:parseClassNames,classNames:parseClassNames,color:String,backgroundColor:String,borderColor:String,textColor:String},EMPTY_EVENT_UI={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function createEventUi(e,t){var n=normalizeConstraint(e.constraint,t);return{display:e.display||null,startEditable:null!=e.startEditable?e.startEditable:e.editable,durationEditable:null!=e.durationEditable?e.durationEditable:e.editable,constraints:null!=n?[n]:[],overlap:null!=e.overlap?e.overlap:null,allows:null!=e.allow?[e.allow]:[],backgroundColor:e.backgroundColor||e.color||"",borderColor:e.borderColor||e.color||"",textColor:e.textColor||"",classNames:(e.className||[]).concat(e.classNames||[])}}function combineEventUis(e){return e.reduce(combineTwoEventUis,EMPTY_EVENT_UI)}function combineTwoEventUis(e,t){return{display:null!=t.display?t.display:e.display,startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"==typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}var EVENT_NON_DATE_REFINERS={id:String,groupId:String,title:String,url:String,interactive:Boolean},EVENT_DATE_REFINERS={start:identity,end:identity,date:identity,allDay:Boolean},EVENT_REFINERS=__assign$1(__assign$1(__assign$1({},EVENT_NON_DATE_REFINERS),EVENT_DATE_REFINERS),{extendedProps:identity});function parseEvent(e,t,n,r,a){void 0===a&&(a=buildEventRefiners(n));var o=refineEventDef(e,n,a),i=o.refined,l=o.extra,s=computeIsDefaultAllDay(t,n),u=parseRecurring(i,s,n.dateEnv,n.pluginHooks.recurringTypes);if(u)return(c=parseEventDef(i,l,t?t.sourceId:"",u.allDay,Boolean(u.duration),n)).recurringDef={typeId:u.typeId,typeData:u.typeData,duration:u.duration},{def:c,instance:null};var c,d=parseSingle(i,s,n,r);return d?{def:c=parseEventDef(i,l,t?t.sourceId:"",d.allDay,d.hasEnd,n),instance:createEventInstance(c.defId,d.range,d.forcedStartTzo,d.forcedEndTzo)}:null}function refineEventDef(e,t,n){return void 0===n&&(n=buildEventRefiners(t)),refineProps(e,n)}function buildEventRefiners(e){return __assign$1(__assign$1(__assign$1({},EVENT_UI_REFINERS),EVENT_REFINERS),e.pluginHooks.eventRefiners)}function parseEventDef(e,t,n,r,a,o){for(var i={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:guid(),sourceId:n,allDay:r,hasEnd:a,interactive:e.interactive,ui:createEventUi(e,o),extendedProps:__assign$1(__assign$1({},e.extendedProps||{}),t)},l=0,s=o.pluginHooks.eventDefMemberAdders;l<s.length;l++){var u=s[l];__assign$1(i,u(e))}return Object.freeze(i.ui.classNames),Object.freeze(i.extendedProps),i}function parseSingle(e,t,n,r){var a,o,i=e.allDay,l=null,s=!1,u=null,c=null!=e.start?e.start:e.date;if(a=n.dateEnv.createMarkerMeta(c))l=a.marker;else if(!r)return null;return null!=e.end&&(o=n.dateEnv.createMarkerMeta(e.end)),null==i&&(i=null!=t?t:(!a||a.isTimeUnspecified)&&(!o||o.isTimeUnspecified)),i&&l&&(l=startOfDay(l)),o&&(u=o.marker,i&&(u=startOfDay(u)),l&&u<=l&&(u=null)),u?s=!0:r||(s=n.options.forceEventDuration||!1,u=n.dateEnv.add(l,i?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:i,hasEnd:s,range:{start:l,end:u},forcedStartTzo:a?a.forcedTzo:null,forcedEndTzo:o?o.forcedTzo:null}}function computeIsDefaultAllDay(e,t){var n=null;return e&&(n=e.defaultAllDay),null==n&&(n=t.options.defaultAllDay),n}function computeAlignedDayRange(e){var t=Math.floor(diffDays(e.start,e.end))||1,n=startOfDay(e.start);return{start:n,end:addDays(n,t)}}function computeVisibleDayRange(e,t){void 0===t&&(t=createDuration(0));var n=null,r=null;if(e.end){r=startOfDay(e.end);var a=e.end.valueOf()-r.valueOf();a&&a>=asRoughMs(t)&&(r=addDays(r,1))}return e.start&&(n=startOfDay(e.start),r&&r<=n&&(r=addDays(n,1))),{start:n,end:r}}function isMultiDayRange(e){var t=computeVisibleDayRange(e);return diffDays(t.start,t.end)>1}function diffDates(e,t,n,r){return"year"===r?createDuration(n.diffWholeYears(e,t),"year"):"month"===r?createDuration(n.diffWholeMonths(e,t),"month"):diffDayAndTime(e,t)}function parseRange(e,t){var n=null,r=null;return e.start&&(n=t.createMarker(e.start)),e.end&&(r=t.createMarker(e.end)),n||r?n&&r&&r<n?null:{start:n,end:r}:null}function invertRanges(e,t){var n,r,a=[],o=t.start;for(e.sort(compareRanges),n=0;n<e.length;n+=1)(r=e[n]).start>o&&a.push({start:o,end:r.start}),r.end>o&&(o=r.end);return o<t.end&&a.push({start:o,end:t.end}),a}function compareRanges(e,t){return e.start.valueOf()-t.start.valueOf()}function intersectRanges(e,t){var n=e.start,r=e.end,a=null;return null!==t.start&&(n=null===n?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(null===n||null===r||n<r)&&(a={start:n,end:r}),a}function rangesEqual(e,t){return(null===e.start?null:e.start.valueOf())===(null===t.start?null:t.start.valueOf())&&(null===e.end?null:e.end.valueOf())===(null===t.end?null:t.end.valueOf())}function rangesIntersect(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function rangeContainsRange(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function rangeContainsMarker(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function constrainMarkerToRange(e,t){return null!=t.start&&e<t.start?t.start:null!=t.end&&e>=t.end?new Date(t.end.valueOf()-1):e}function sliceEventStore(e,t,n,r){var a={},o={},i={},l=[],s=[],u=compileEventUis(e.defs,t);for(var c in e.defs){"inverse-background"===(p=u[(w=e.defs[c]).defId]).display&&(w.groupId?(a[w.groupId]=[],i[w.groupId]||(i[w.groupId]=w)):o[c]=[])}for(var d in e.instances){var f=e.instances[d],p=u[(w=e.defs[f.defId]).defId],h=f.range,m=!w.allDay&&r?computeVisibleDayRange(h,r):h,v=intersectRanges(m,n);v&&("inverse-background"===p.display?w.groupId?a[w.groupId].push(v):o[f.defId].push(v):"none"!==p.display&&("background"===p.display?l:s).push({def:w,ui:p,instance:f,range:v,isStart:m.start&&m.start.valueOf()===v.start.valueOf(),isEnd:m.end&&m.end.valueOf()===v.end.valueOf()}))}for(var g in a)for(var y=0,b=invertRanges(a[g],n);y<b.length;y++){var w,S=b[y];p=u[(w=i[g]).defId];l.push({def:w,ui:p,instance:null,range:S,isStart:!1,isEnd:!1})}for(var c in o)for(var E=0,_=invertRanges(o[c],n);E<_.length;E++){S=_[E];l.push({def:e.defs[c],ui:u[c],instance:null,range:S,isStart:!1,isEnd:!1})}return{bg:l,fg:s}}function hasBgRendering(e){return"background"===e.ui.display||"inverse-background"===e.ui.display}function setElSeg(e,t){e.fcSeg=t}function getElSeg(e){return e.fcSeg||e.parentNode.fcSeg||null}function compileEventUis(e,t){return mapHash(e,(function(e){return compileEventUi(e,t)}))}function compileEventUi(e,t){var n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),combineEventUis(n)}function sortEventSegs(e,t){var n=e.map(buildSegCompareObj);return n.sort((function(e,n){return compareByFieldSpecs(e,n,t)})),n.map((function(e){return e._seg}))}function buildSegCompareObj(e){var t=e.eventRange,n=t.def,r=t.instance?t.instance.range:t.range,a=r.start?r.start.valueOf():0,o=r.end?r.end.valueOf():0;return __assign$1(__assign$1(__assign$1({},n.extendedProps),n),{id:n.publicId,start:a,end:o,duration:o-a,allDay:Number(n.allDay),_seg:e})}function computeSegDraggable(e,t){for(var n=t.pluginHooks.isDraggableTransformers,r=e.eventRange,a=r.def,o=r.ui,i=o.startEditable,l=0,s=n;l<s.length;l++){i=(0,s[l])(i,a,o,t)}return i}function computeSegStartResizable(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function computeSegEndResizable(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function buildSegTimeText(e,t,n,r,a,o,i){var l=n.dateEnv,s=n.options,u=s.displayEventTime,c=s.displayEventEnd,d=e.eventRange.def,f=e.eventRange.instance;null==u&&(u=!1!==r),null==c&&(c=!1!==a);var p=f.range.start,h=f.range.end,m=o||e.start||e.eventRange.range.start,v=i||e.end||e.eventRange.range.end,g=startOfDay(p).valueOf()===startOfDay(m).valueOf(),y=startOfDay(addMs(h,-1)).valueOf()===startOfDay(addMs(v,-1)).valueOf();return u&&!d.allDay&&(g||y)?(m=g?p:m,v=y?h:v,c&&d.hasEnd?l.formatRange(m,v,t,{forcedStartTzo:o?null:f.forcedStartTzo,forcedEndTzo:i?null:f.forcedEndTzo}):l.format(m,t,{forcedTzo:o?null:f.forcedStartTzo})):""}function getSegMeta(e,t,n){var r=e.eventRange.range;return{isPast:r.end<(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&rangeContainsMarker(t,r.start)}}function getEventClassNames(e){var t=["fc-event"];return e.isMirror&&t.push("fc-event-mirror"),e.isDraggable&&t.push("fc-event-draggable"),(e.isStartResizable||e.isEndResizable)&&t.push("fc-event-resizable"),e.isDragging&&t.push("fc-event-dragging"),e.isResizing&&t.push("fc-event-resizing"),e.isSelected&&t.push("fc-event-selected"),e.isStart&&t.push("fc-event-start"),e.isEnd&&t.push("fc-event-end"),e.isPast&&t.push("fc-event-past"),e.isToday&&t.push("fc-event-today"),e.isFuture&&t.push("fc-event-future"),t}function buildEventRangeKey(e){return e.instance?e.instance.instanceId:e.def.defId+":"+e.range.start.toISOString()}function getSegAnchorAttrs(e,t){var n=e.eventRange,r=n.def,a=n.instance,o=r.url;if(o)return{href:o};var i=t.emitter,l=t.options.eventInteractive;return null==l&&null==(l=r.interactive)&&(l=Boolean(i.hasHandlers("eventClick"))),l?createAriaKeyboardAttrs((function(e){i.trigger("eventClick",{el:e.target,event:new EventApi(t,r,a),jsEvent:e,view:t.viewApi})})):{}}var STANDARD_PROPS={start:identity,end:identity,allDay:Boolean};function parseDateSpan(e,t,n){var r=parseOpenDateSpan(e,t),a=r.range;if(!a.start)return null;if(!a.end){if(null==n)return null;a.end=t.add(a.start,n)}return r}function parseOpenDateSpan(e,t){var n=refineProps(e,STANDARD_PROPS),r=n.refined,a=n.extra,o=r.start?t.createMarkerMeta(r.start):null,i=r.end?t.createMarkerMeta(r.end):null,l=r.allDay;return null==l&&(l=o&&o.isTimeUnspecified&&(!i||i.isTimeUnspecified)),__assign$1({range:{start:o?o.marker:null,end:i?i.marker:null},allDay:l},a)}function isDateSpansEqual(e,t){return rangesEqual(e.range,t.range)&&e.allDay===t.allDay&&isSpanPropsEqual(e,t)}function isSpanPropsEqual(e,t){for(var n in t)if("range"!==n&&"allDay"!==n&&e[n]!==t[n])return!1;for(var n in e)if(!(n in t))return!1;return!0}function buildDateSpanApi(e,t){return __assign$1(__assign$1({},buildRangeApi(e.range,t,e.allDay)),{allDay:e.allDay})}function buildRangeApiWithTimeZone(e,t,n){return __assign$1(__assign$1({},buildRangeApi(e,t,n)),{timeZone:t.timeZone})}function buildRangeApi(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}function fabricateEventRange(e,t,n){var r=refineEventDef({editable:!1},n),a=parseEventDef(r.refined,r.extra,"",e.allDay,!0,n);return{def:a,ui:compileEventUi(a,t),instance:createEventInstance(a.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}function triggerDateSelect(e,t,n){n.emitter.trigger("select",__assign$1(__assign$1({},buildDateSpanApiWithContext(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function triggerDateUnselect(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}function buildDateSpanApiWithContext(e,t){for(var n={},r=0,a=t.pluginHooks.dateSpanTransforms;r<a.length;r++){var o=a[r];__assign$1(n,o(e,t))}return __assign$1(n,buildDateSpanApi(e,t.dateEnv)),n}function getDefaultEventEnd(e,t,n){var r=n.dateEnv,a=n.options,o=t;return e?(o=startOfDay(o),o=r.add(o,a.defaultAllDayEventDuration)):o=r.add(o,a.defaultTimedEventDuration),o}function applyMutationToEventStore(e,t,n,r){var a=compileEventUis(e.defs,t),o=createEmptyEventStore();for(var i in e.defs){var l=e.defs[i];o.defs[i]=applyMutationToEventDef(l,a[i],n,r)}for(var s in e.instances){var u=e.instances[s];l=o.defs[u.defId];o.instances[s]=applyMutationToEventInstance(u,l,a[u.defId],n,r)}return o}function applyMutationToEventDef(e,t,n,r){var a=n.standardProps||{};null==a.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(a.hasEnd=!0);var o=__assign$1(__assign$1(__assign$1({},e),a),{ui:__assign$1(__assign$1({},e.ui),a.ui)});n.extendedProps&&(o.extendedProps=__assign$1(__assign$1({},o.extendedProps),n.extendedProps));for(var i=0,l=r.pluginHooks.eventDefMutationAppliers;i<l.length;i++){(0,l[i])(o,n,r)}return!o.hasEnd&&r.options.forceEventDuration&&(o.hasEnd=!0),o}function applyMutationToEventInstance(e,t,n,r,a){var o=a.dateEnv,i=r.standardProps&&!0===r.standardProps.allDay,l=r.standardProps&&!1===r.standardProps.hasEnd,s=__assign$1({},e);return i&&(s.range=computeAlignedDayRange(s.range)),r.datesDelta&&n.startEditable&&(s.range={start:o.add(s.range.start,r.datesDelta),end:o.add(s.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(s.range={start:o.add(s.range.start,r.startDelta),end:s.range.end}),r.endDelta&&n.durationEditable&&(s.range={start:s.range.start,end:o.add(s.range.end,r.endDelta)}),l&&(s.range={start:s.range.start,end:getDefaultEventEnd(t.allDay,s.range.start,a)}),t.allDay&&(s.range={start:startOfDay(s.range.start),end:startOfDay(s.range.end)}),s.range.end<s.range.start&&(s.range.end=getDefaultEventEnd(t.allDay,s.range.start,a)),s}var ViewApi=function(){function e(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}return Object.defineProperty(e.prototype,"calendar",{get:function(){return this.getCurrentData().calendarApi},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.getCurrentData().viewTitle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)},enumerable:!1,configurable:!0}),e.prototype.getOption=function(e){return this.getCurrentData().options[e]},e}(),EVENT_SOURCE_REFINERS={id:String,defaultAllDay:Boolean,url:String,format:String,events:identity,eventDataTransform:identity,success:identity,failure:identity};function parseEventSource(e,t,n){var r;if(void 0===n&&(n=buildEventSourceRefiners(t)),"string"==typeof e?r={url:e}:"function"==typeof e||Array.isArray(e)?r={events:e}:"object"==typeof e&&e&&(r=e),r){var a=refineProps(r,n),o=a.refined,i=a.extra,l=buildEventSourceMeta(o,t);if(l)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:o.defaultAllDay,eventDataTransform:o.eventDataTransform,success:o.success,failure:o.failure,publicId:o.id||"",sourceId:guid(),sourceDefId:l.sourceDefId,meta:l.meta,ui:createEventUi(o,t),extendedProps:i}}return null}function buildEventSourceRefiners(e){return __assign$1(__assign$1(__assign$1({},EVENT_UI_REFINERS),EVENT_SOURCE_REFINERS),e.pluginHooks.eventSourceRefiners)}function buildEventSourceMeta(e,t){for(var n=t.pluginHooks.eventSourceDefs,r=n.length-1;r>=0;r-=1){var a=n[r].parseMeta(e);if(a)return{sourceDefId:r,meta:a}}return null}function reduceCurrentDate(e,t){return"CHANGE_DATE"===t.type?t.dateMarker:e}function getInitialDate(e,t){var n=e.initialDate;return null!=n?t.createMarker(n):getNow(e.now,t)}function getNow(e,t){return"function"==typeof e&&(e=e()),null==e?t.createNowMarker():t.createMarker(e)}var CalendarApi=function(){function e(){}return e.prototype.getCurrentData=function(){return this.currentDataManager.getCurrentData()},e.prototype.dispatch=function(e){return this.currentDataManager.dispatch(e)},Object.defineProperty(e.prototype,"view",{get:function(){return this.getCurrentData().viewApi},enumerable:!1,configurable:!0}),e.prototype.batchRendering=function(e){e()},e.prototype.updateSize=function(){this.trigger("_resize",!0)},e.prototype.setOption=function(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})},e.prototype.getOption=function(e){return this.currentDataManager.currentCalendarOptionsInput[e]},e.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.getCurrentData().availableRawLocales)},e.prototype.on=function(e,t){var n=this.currentDataManager;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):console.warn("Unknown listener name '"+e+"'")},e.prototype.off=function(e,t){this.currentDataManager.emitter.off(e,t)},e.prototype.trigger=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];(t=this.currentDataManager.emitter).trigger.apply(t,__spreadArray([e],n))},e.prototype.changeView=function(e,t){var n=this;this.batchRendering((function(){if(n.unselect(),t)if(t.start&&t.end)n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),n.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{var r=n.getCurrentData().dateEnv;n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:r.createMarker(t)})}else n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})}))},e.prototype.zoomTo=function(e,t){var n;t=t||"day",n=this.getCurrentData().viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),n?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:n.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})},e.prototype.getUnitViewSpec=function(e){var t,n,r=this.getCurrentData(),a=r.viewSpecs,o=r.toolbarConfig,i=[].concat(o.header?o.header.viewsWithButtons:[],o.footer?o.footer.viewsWithButtons:[]);for(var l in a)i.push(l);for(t=0;t<i.length;t+=1)if((n=a[i[t]])&&n.singleUnit===e)return n;return null},e.prototype.prev=function(){this.unselect(),this.dispatch({type:"PREV"})},e.prototype.next=function(){this.unselect(),this.dispatch({type:"NEXT"})},e.prototype.prevYear=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})},e.prototype.nextYear=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})},e.prototype.today=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:getNow(e.calendarOptions.now,e.dateEnv)})},e.prototype.gotoDate=function(e){var t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})},e.prototype.incrementDate=function(e){var t=this.getCurrentData(),n=createDuration(e);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,n)}))},e.prototype.getDate=function(){var e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)},e.prototype.formatDate=function(e,t){var n=this.getCurrentData().dateEnv;return n.format(n.createMarker(e),createFormatter(t))},e.prototype.formatRange=function(e,t,n){var r=this.getCurrentData().dateEnv;return r.formatRange(r.createMarker(e),r.createMarker(t),createFormatter(n),n)},e.prototype.formatIso=function(e,t){var n=this.getCurrentData().dateEnv;return n.formatIso(n.createMarker(e),{omitTime:t})},e.prototype.select=function(e,t){var n;n=null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t};var r=this.getCurrentData(),a=parseDateSpan(n,r.dateEnv,createDuration({days:1}));a&&(this.dispatch({type:"SELECT_DATES",selection:a}),triggerDateSelect(a,null,r))},e.prototype.unselect=function(e){var t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),triggerDateUnselect(e,t))},e.prototype.addEvent=function(e,t){if(e instanceof EventApi){var n=e._def,r=e._instance;return this.getCurrentData().eventStore.defs[n.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:eventTupleToStore({def:n,instance:r})}),this.triggerEventAdd(e)),e}var a,o=this.getCurrentData();if(t instanceof EventSourceApi)a=t.internalEventSource;else if("boolean"==typeof t)t&&(a=hashValuesToArray(o.eventSources)[0]);else if(null!=t){var i=this.getEventSourceById(t);if(!i)return console.warn('Could not find an event source with ID "'+t+'"'),null;a=i.internalEventSource}var l=parseEvent(e,a,o,!1);if(l){var s=new EventApi(o,l.def,l.def.recurringDef?null:l.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:eventTupleToStore(l)}),this.triggerEventAdd(s),s}return null},e.prototype.triggerEventAdd=function(e){var t=this;this.getCurrentData().emitter.trigger("eventAdd",{event:e,relatedEvents:[],revert:function(){t.dispatch({type:"REMOVE_EVENTS",eventStore:eventApiToStore(e)})}})},e.prototype.getEventById=function(e){var t=this.getCurrentData(),n=t.eventStore,r=n.defs,a=n.instances;for(var o in e=String(e),r){var i=r[o];if(i.publicId===e){if(i.recurringDef)return new EventApi(t,i,null);for(var l in a){var s=a[l];if(s.defId===i.defId)return new EventApi(t,i,s)}}}return null},e.prototype.getEvents=function(){var e=this.getCurrentData();return buildEventApis(e.eventStore,e)},e.prototype.removeAllEvents=function(){this.dispatch({type:"REMOVE_ALL_EVENTS"})},e.prototype.getEventSources=function(){var e=this.getCurrentData(),t=e.eventSources,n=[];for(var r in t)n.push(new EventSourceApi(e,t[r]));return n},e.prototype.getEventSourceById=function(e){var t=this.getCurrentData(),n=t.eventSources;for(var r in e=String(e),n)if(n[r].publicId===e)return new EventSourceApi(t,n[r]);return null},e.prototype.addEventSource=function(e){var t=this.getCurrentData();if(e instanceof EventSourceApi)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;var n=parseEventSource(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new EventSourceApi(t,n)):null},e.prototype.removeAllEventSources=function(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})},e.prototype.refetchEvents=function(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})},e.prototype.scrollToTime=function(e){var t=createDuration(e);t&&this.trigger("_scrollRequest",{time:t})},e}(),EventApi=function(){function e(e,t,n){this._context=e,this._def=t,this._instance=n||null}return e.prototype.setProp=function(e,t){var n,r;if(e in EVENT_DATE_REFINERS)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===e)t=EVENT_NON_DATE_REFINERS[e](t),this.mutate({standardProps:{publicId:t}});else if(e in EVENT_NON_DATE_REFINERS)t=EVENT_NON_DATE_REFINERS[e](t),this.mutate({standardProps:(n={},n[e]=t,n)});else if(e in EVENT_UI_REFINERS){var a=EVENT_UI_REFINERS[e](t);"color"===e?a={backgroundColor:t,borderColor:t}:"editable"===e?a={startEditable:t,durationEditable:t}:((r={})[e]=t,a=r),this.mutate({standardProps:{ui:a}})}else console.warn("Could not set prop '"+e+"'. Use setExtendedProp instead.")},e.prototype.setExtendedProp=function(e,t){var n;this.mutate({extendedProps:(n={},n[e]=t,n)})},e.prototype.setStart=function(e,t){void 0===t&&(t={});var n=this._context.dateEnv,r=n.createMarker(e);if(r&&this._instance){var a=diffDates(this._instance.range.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:a}):this.mutate({startDelta:a})}},e.prototype.setEnd=function(e,t){void 0===t&&(t={});var n,r=this._context.dateEnv;if((null==e||(n=r.createMarker(e)))&&this._instance)if(n){var a=diffDates(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:a})}else this.mutate({standardProps:{hasEnd:!1}})},e.prototype.setDates=function(e,t,n){void 0===n&&(n={});var r,a=this._context.dateEnv,o={allDay:n.allDay},i=a.createMarker(e);if(i&&(null==t||(r=a.createMarker(t)))&&this._instance){var l=this._instance.range;!0===n.allDay&&(l=computeAlignedDayRange(l));var s=diffDates(l.start,i,a,n.granularity);if(r){var u=diffDates(l.end,r,a,n.granularity);durationsEqual(s,u)?this.mutate({datesDelta:s,standardProps:o}):this.mutate({startDelta:s,endDelta:u,standardProps:o})}else o.hasEnd=!1,this.mutate({datesDelta:s,standardProps:o})}},e.prototype.moveStart=function(e){var t=createDuration(e);t&&this.mutate({startDelta:t})},e.prototype.moveEnd=function(e){var t=createDuration(e);t&&this.mutate({endDelta:t})},e.prototype.moveDates=function(e){var t=createDuration(e);t&&this.mutate({datesDelta:t})},e.prototype.setAllDay=function(e,t){void 0===t&&(t={});var n={allDay:e},r=t.maintainDuration;null==r&&(r=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})},e.prototype.formatRange=function(e){var t=this._context.dateEnv,n=this._instance,r=createFormatter(e);return this._def.hasEnd?t.formatRange(n.range.start,n.range.end,r,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):t.format(n.range.start,r,{forcedTzo:n.forcedStartTzo})},e.prototype.mutate=function(t){var n=this._instance;if(n){var r=this._def,a=this._context,o=a.getCurrentData().eventStore,i=getRelevantEvents(o,n.instanceId);i=applyMutationToEventStore(i,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},t,a);var l=new e(a,r,n);this._def=i.defs[r.defId],this._instance=i.instances[n.instanceId],a.dispatch({type:"MERGE_EVENTS",eventStore:i}),a.emitter.trigger("eventChange",{oldEvent:l,event:this,relatedEvents:buildEventApis(i,a,n),revert:function(){a.dispatch({type:"RESET_EVENTS",eventStore:o})}})}},e.prototype.remove=function(){var e=this._context,t=eventApiToStore(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert:function(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})},Object.defineProperty(e.prototype,"source",{get:function(){var e=this._def.sourceId;return e?new EventSourceApi(this._context,this._context.getCurrentData().eventSources[e]):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startStr",{get:function(){var e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endStr",{get:function(){var e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._def.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"groupId",{get:function(){return this._def.groupId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allDay",{get:function(){return this._def.allDay},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._def.title},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._def.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"display",{get:function(){return this._def.ui.display||"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startEditable",{get:function(){return this._def.ui.startEditable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"durationEditable",{get:function(){return this._def.ui.durationEditable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"constraint",{get:function(){return this._def.ui.constraints[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overlap",{get:function(){return this._def.ui.overlap},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allow",{get:function(){return this._def.ui.allows[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._def.ui.backgroundColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"borderColor",{get:function(){return this._def.ui.borderColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textColor",{get:function(){return this._def.ui.textColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classNames",{get:function(){return this._def.ui.classNames},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extendedProps",{get:function(){return this._def.extendedProps},enumerable:!1,configurable:!0}),e.prototype.toPlainObject=function(e){void 0===e&&(e={});var t=this._def,n=t.ui,r=this.startStr,a=this.endStr,o={};return t.title&&(o.title=t.title),r&&(o.start=r),a&&(o.end=a),t.publicId&&(o.id=t.publicId),t.groupId&&(o.groupId=t.groupId),t.url&&(o.url=t.url),n.display&&"auto"!==n.display&&(o.display=n.display),e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?o.color=n.backgroundColor:(n.backgroundColor&&(o.backgroundColor=n.backgroundColor),n.borderColor&&(o.borderColor=n.borderColor)),n.textColor&&(o.textColor=n.textColor),n.classNames.length&&(o.classNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?__assign$1(o,t.extendedProps):o.extendedProps=t.extendedProps),o},e.prototype.toJSON=function(){return this.toPlainObject()},e}();function eventApiToStore(e){var t,n,r=e._def,a=e._instance;return{defs:(t={},t[r.defId]=r,t),instances:a?(n={},n[a.instanceId]=a,n):{}}}function buildEventApis(e,t,n){var r=e.defs,a=e.instances,o=[],i=n?n.instanceId:"";for(var l in a){var s=a[l],u=r[s.defId];s.instanceId!==i&&o.push(new EventApi(t,u,s))}return o}var calendarSystemClassMap={};function registerCalendarSystem(e,t){calendarSystemClassMap[e]=t}function createCalendarSystem(e){return new calendarSystemClassMap[e]}var GregorianCalendarSystem=function(){function e(){}return e.prototype.getMarkerYear=function(e){return e.getUTCFullYear()},e.prototype.getMarkerMonth=function(e){return e.getUTCMonth()},e.prototype.getMarkerDay=function(e){return e.getUTCDate()},e.prototype.arrayToMarker=function(e){return arrayToUtcDate(e)},e.prototype.markerToArray=function(e){return dateToUtcArray(e)},e}();registerCalendarSystem("gregory",GregorianCalendarSystem);var ISO_RE=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function parse(e){var t=ISO_RE.exec(e);if(t){var n=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?1e3*Number("0."+t[12]):0));if(isValidDate(n)){var r=null;return t[13]&&(r=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:n,isTimeUnspecified:!t[6],timeZoneOffset:r}}}return null}var DateEnv=function(){function e(e){var t=this.timeZone=e.timeZone,n="local"!==t&&"UTC"!==t;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=createCalendarSystem(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,"ISO"===e.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof e.firstDay&&(this.weekDow=e.firstDay),"function"==typeof e.weekNumberCalculation&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=null!=e.weekText?e.weekText:e.locale.options.weekText,this.weekTextLong=(null!=e.weekTextLong?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}return e.prototype.createMarker=function(e){var t=this.createMarkerMeta(e);return null===t?null:t.marker},e.prototype.createNowMarker=function(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):arrayToUtcDate(dateToLocalArray(new Date))},e.prototype.createMarkerMeta=function(e){if("string"==typeof e)return this.parse(e);var t=null;return"number"==typeof e?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=arrayToUtcDate(e)),null!==t&&isValidDate(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null},e.prototype.parse=function(e){var t=parse(e);if(null===t)return null;var n=t.marker,r=null;return null!==t.timeZoneOffset&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-60*t.timeZoneOffset*1e3):r=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r}},e.prototype.getYear=function(e){return this.calendarSystem.getMarkerYear(e)},e.prototype.getMonth=function(e){return this.calendarSystem.getMarkerMonth(e)},e.prototype.add=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)},e.prototype.subtract=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)},e.prototype.addYears=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)},e.prototype.addMonths=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)},e.prototype.diffWholeYears=function(e,t){var n=this.calendarSystem;return timeAsMs(e)===timeAsMs(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null},e.prototype.diffWholeMonths=function(e,t){var n=this.calendarSystem;return timeAsMs(e)===timeAsMs(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null},e.prototype.greatestWholeUnit=function(e,t){var n=this.diffWholeYears(e,t);return null!==n?{unit:"year",value:n}:null!==(n=this.diffWholeMonths(e,t))?{unit:"month",value:n}:null!==(n=diffWholeWeeks(e,t))?{unit:"week",value:n}:null!==(n=diffWholeDays(e,t))?{unit:"day",value:n}:isInt(n=diffHours(e,t))?{unit:"hour",value:n}:isInt(n=diffMinutes(e,t))?{unit:"minute",value:n}:isInt(n=diffSeconds(e,t))?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}},e.prototype.countDurationsBetween=function(e,t,n){var r;return n.years&&null!==(r=this.diffWholeYears(e,t))?r/asRoughYears(n):n.months&&null!==(r=this.diffWholeMonths(e,t))?r/asRoughMonths(n):n.days&&null!==(r=diffWholeDays(e,t))?r/asRoughDays(n):(t.valueOf()-e.valueOf())/asRoughMs(n)},e.prototype.startOf=function(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?startOfDay(e):"hour"===t?startOfHour(e):"minute"===t?startOfMinute(e):"second"===t?startOfSecond(e):null},e.prototype.startOfYear=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])},e.prototype.startOfMonth=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])},e.prototype.startOfWeek=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])},e.prototype.computeWeekNumber=function(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):weekOfYear(e,this.weekDow,this.weekDoy)},e.prototype.format=function(e,t,n){return void 0===n&&(n={}),t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)},e.prototype.formatRange=function(e,t,n,r){return void 0===r&&(r={}),r.isEndExclusive&&(t=addMs(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(t)},this,r.defaultSeparator)},e.prototype.formatIso=function(e,t){void 0===t&&(t={});var n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),buildIsoString(e,n,t.omitTime)},e.prototype.timestampToMarker=function(e){return"local"===this.timeZone?arrayToUtcDate(dateToLocalArray(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?arrayToUtcDate(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)},e.prototype.offsetForMarker=function(e){return"local"===this.timeZone?-arrayToLocalDate(dateToUtcArray(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(dateToUtcArray(e)):null},e.prototype.toDate=function(e,t){return"local"===this.timeZone?arrayToLocalDate(dateToUtcArray(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(dateToUtcArray(e))*60):new Date(e.valueOf()-(t||0))},e}(),globalLocales=[],MINIMAL_RAW_EN_LOCALE={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},RAW_EN_LOCALE=__assign$1(__assign$1({},MINIMAL_RAW_EN_LOCALE),{buttonHints:{prev:"Previous $0",next:"Next $0",today:function(e,t){return"day"===t?"Today":"This "+e}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:function(e){return"Show "+e+" more event"+(1===e?"":"s")}});function organizeRawLocales(e){for(var t=e.length>0?e[0].code:"en",n=globalLocales.concat(e),r={en:RAW_EN_LOCALE},a=0,o=n;a<o.length;a++){var i=o[a];r[i.code]=i}return{map:r,defaultCode:t}}function buildLocale(e,t){return"object"!=typeof e||Array.isArray(e)?queryLocale(e,t):parseLocale(e.code,[e.code],e)}function queryLocale(e,t){var n=[].concat(e||[]);return parseLocale(e,n,queryRawLocale(n,t)||RAW_EN_LOCALE)}function queryRawLocale(e,t){for(var n=0;n<e.length;n+=1)for(var r=e[n].toLocaleLowerCase().split("-"),a=r.length;a>0;a-=1){var o=r.slice(0,a).join("-");if(t[o])return t[o]}return null}function parseLocale(e,t,n){var r=mergeProps([MINIMAL_RAW_EN_LOCALE,n],["buttonText"]);delete r.code;var a=r.week;return delete r.week,{codeArg:e,codes:t,week:a,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}var DEF_DEFAULTS={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"},canVGrowWithinCell;function parseBusinessHours(e,t){return parseEvents(refineInputs(e),null,t)}function refineInputs(e){return(!0===e?[{}]:Array.isArray(e)?e.filter((function(e){return e.daysOfWeek})):"object"==typeof e&&e?[e]:[]).map((function(e){return __assign$1(__assign$1({},DEF_DEFAULTS),e)}))}function pointInsideRect(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function intersectRects(e,t){var n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom&&n}function constrainPoint(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}}function getRectCenter(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}function diffPoints(e,t){return{left:e.left-t.left,top:e.top-t.top}}function getCanVGrowWithinCell(){return null==canVGrowWithinCell&&(canVGrowWithinCell=computeCanVGrowWithinCell()),canVGrowWithinCell}function computeCanVGrowWithinCell(){if("undefined"==typeof document)return!0;var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.innerHTML="<table><tr><td><div></div></td></tr></table>",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);var t=e.querySelector("div").offsetHeight>0;return document.body.removeChild(e),t}var EMPTY_EVENT_STORE=createEmptyEventStore(),Splitter=function(){function e(){this.getKeysForEventDefs=memoize(this._getKeysForEventDefs),this.splitDateSelection=memoize(this._splitDateSpan),this.splitEventStore=memoize(this._splitEventStore),this.splitIndividualUi=memoize(this._splitIndividualUi),this.splitEventDrag=memoize(this._splitInteraction),this.splitEventResize=memoize(this._splitInteraction),this.eventUiBuilders={}}return e.prototype.splitProps=function(e){var t=this,n=this.getKeyInfo(e),r=this.getKeysForEventDefs(e.eventStore),a=this.splitDateSelection(e.dateSelection),o=this.splitIndividualUi(e.eventUiBases,r),i=this.splitEventStore(e.eventStore,r),l=this.splitEventDrag(e.eventDrag),s=this.splitEventResize(e.eventResize),u={};for(var c in this.eventUiBuilders=mapHash(n,(function(e,n){return t.eventUiBuilders[n]||memoize(buildEventUiForKey)})),n){var d=n[c],f=i[c]||EMPTY_EVENT_STORE,p=this.eventUiBuilders[c];u[c]={businessHours:d.businessHours||e.businessHours,dateSelection:a[c]||null,eventStore:f,eventUiBases:p(e.eventUiBases[""],d.ui,o[c]),eventSelection:f.instances[e.eventSelection]?e.eventSelection:"",eventDrag:l[c]||null,eventResize:s[c]||null}}return u},e.prototype._splitDateSpan=function(e){var t={};if(e)for(var n=0,r=this.getKeysForDateSpan(e);n<r.length;n++){t[r[n]]=e}return t},e.prototype._getKeysForEventDefs=function(e){var t=this;return mapHash(e.defs,(function(e){return t.getKeysForEventDef(e)}))},e.prototype._splitEventStore=function(e,t){var n=e.defs,r=e.instances,a={};for(var o in n)for(var i=0,l=t[o];i<l.length;i++){a[f=l[i]]||(a[f]=createEmptyEventStore()),a[f].defs[o]=n[o]}for(var s in r)for(var u=r[s],c=0,d=t[u.defId];c<d.length;c++){var f;a[f=d[c]]&&(a[f].instances[s]=u)}return a},e.prototype._splitIndividualUi=function(e,t){var n={};for(var r in e)if(r)for(var a=0,o=t[r];a<o.length;a++){var i=o[a];n[i]||(n[i]={}),n[i][r]=e[r]}return n},e.prototype._splitInteraction=function(e){var t={};if(e){var n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),a=this._splitEventStore(e.mutatedEvents,r),o=function(r){t[r]||(t[r]={affectedEvents:n[r]||EMPTY_EVENT_STORE,mutatedEvents:a[r]||EMPTY_EVENT_STORE,isEvent:e.isEvent})};for(var i in n)o(i);for(var i in a)o(i)}return t},e}();function buildEventUiForKey(e,t,n){var r=[];e&&r.push(e),t&&r.push(t);var a={"":combineEventUis(r)};return n&&__assign$1(a,n),a}function getDateMeta(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:Boolean(r&&!rangeContainsMarker(r.activeRange,e)),isOther:Boolean(r&&!rangeContainsMarker(r.currentRange,e)),isToday:Boolean(t&&rangeContainsMarker(t,e)),isPast:Boolean(n?e<n:!!t&&e<t.start),isFuture:Boolean(n?e>n:!!t&&e>=t.end)}}function getDayClassNames(e,t){var n=["fc-day","fc-day-"+DAY_IDS[e.dow]];return e.isDisabled?n.push("fc-day-disabled"):(e.isToday&&(n.push("fc-day-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-day-past"),e.isFuture&&n.push("fc-day-future"),e.isOther&&n.push("fc-day-other")),n}var DAY_FORMAT=createFormatter({year:"numeric",month:"long",day:"numeric"}),WEEK_FORMAT=createFormatter({week:"long"});function buildNavLinkAttrs(e,t,n,r){void 0===n&&(n="day"),void 0===r&&(r=!0);var a=e.dateEnv,o=e.options,i=e.calendarApi,l=a.format(t,"week"===n?WEEK_FORMAT:DAY_FORMAT);if(o.navLinks){var s=a.toDate(t),u=function(e){var r="day"===n?o.navLinkDayClick:"week"===n?o.navLinkWeekClick:null;"function"==typeof r?r.call(i,a.toDate(t),e):("string"==typeof r&&(n=r),i.zoomTo(t,n))};return __assign$1({title:formatWithOrdinals(o.navLinkHint,[l,s],l),"data-navlink":""},r?createAriaClickAttrs(u):{onClick:u})}return{"aria-label":l}}var _isRtlScrollbarOnLeft=null,_scrollbarWidths;function getIsRtlScrollbarOnLeft(){return null===_isRtlScrollbarOnLeft&&(_isRtlScrollbarOnLeft=computeIsRtlScrollbarOnLeft()),_isRtlScrollbarOnLeft}function computeIsRtlScrollbarOnLeft(){var e=document.createElement("div");applyStyle(e,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),e.innerHTML="<div></div>",document.body.appendChild(e);var t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return removeElement(e),t}function getScrollbarWidths(){return _scrollbarWidths||(_scrollbarWidths=computeScrollbarWidths()),_scrollbarWidths}function computeScrollbarWidths(){var e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);var t=computeScrollbarWidthsForEl(e);return document.body.removeChild(e),t}function computeScrollbarWidthsForEl(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function computeEdges(e,t){void 0===t&&(t=!1);var n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,a=parseInt(n.borderRightWidth,10)||0,o=parseInt(n.borderTopWidth,10)||0,i=parseInt(n.borderBottomWidth,10)||0,l=computeScrollbarWidthsForEl(e),s=l.y-r-a,u={borderLeft:r,borderRight:a,borderTop:o,borderBottom:i,scrollbarBottom:l.x-o-i,scrollbarLeft:0,scrollbarRight:0};return getIsRtlScrollbarOnLeft()&&"rtl"===n.direction?u.scrollbarLeft=s:u.scrollbarRight=s,t&&(u.paddingLeft=parseInt(n.paddingLeft,10)||0,u.paddingRight=parseInt(n.paddingRight,10)||0,u.paddingTop=parseInt(n.paddingTop,10)||0,u.paddingBottom=parseInt(n.paddingBottom,10)||0),u}function computeInnerRect(e,t,n){void 0===t&&(t=!1);var r=n?e.getBoundingClientRect():computeRect(e),a=computeEdges(e,t),o={left:r.left+a.borderLeft+a.scrollbarLeft,right:r.right-a.borderRight-a.scrollbarRight,top:r.top+a.borderTop,bottom:r.bottom-a.borderBottom-a.scrollbarBottom};return t&&(o.left+=a.paddingLeft,o.right-=a.paddingRight,o.top+=a.paddingTop,o.bottom-=a.paddingBottom),o}function computeRect(e){var t=e.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function computeClippedClientRect(e){for(var t=getClippingParents(e),n=e.getBoundingClientRect(),r=0,a=t;r<a.length;r++){var o=intersectRects(n,a[r].getBoundingClientRect());if(!o)return null;n=o}return n}function getClippingParents(e){for(var t=[];e instanceof HTMLElement;){var n=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}function unpromisify(e,t,n){var r=!1,a=function(){r||(r=!0,t.apply(this,arguments))},o=function(){r||(r=!0,n&&n.apply(this,arguments))},i=e(a,o);i&&"function"==typeof i.then&&i.then(a,o)}var Emitter=function(){function e(){this.handlers={},this.thisContext=null}return e.prototype.setThisContext=function(e){this.thisContext=e},e.prototype.setOptions=function(e){this.options=e},e.prototype.on=function(e,t){addToHash(this.handlers,e,t)},e.prototype.off=function(e,t){removeFromHash(this.handlers,e,t)},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=this.handlers[e]||[],a=this.options&&this.options[e],o=[].concat(a||[],r),i=0,l=o;i<l.length;i++){var s=l[i];s.apply(this.thisContext,t)}},e.prototype.hasHandlers=function(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])},e}();function addToHash(e,t,n){(e[t]||(e[t]=[])).push(n)}function removeFromHash(e,t,n){n?e[t]&&(e[t]=e[t].filter((function(e){return e!==n}))):delete e[t]}var PositionCache=function(){function e(e,t,n,r){this.els=t;var a=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(a.left),r&&this.buildElVerticals(a.top)}return e.prototype.buildElHorizontals=function(e){for(var t=[],n=[],r=0,a=this.els;r<a.length;r++){var o=a[r].getBoundingClientRect();t.push(o.left-e),n.push(o.right-e)}this.lefts=t,this.rights=n},e.prototype.buildElVerticals=function(e){for(var t=[],n=[],r=0,a=this.els;r<a.length;r++){var o=a[r].getBoundingClientRect();t.push(o.top-e),n.push(o.bottom-e)}this.tops=t,this.bottoms=n},e.prototype.leftToIndex=function(e){var t,n=this.lefts,r=this.rights,a=n.length;for(t=0;t<a;t+=1)if(e>=n[t]&&e<r[t])return t},e.prototype.topToIndex=function(e){var t,n=this.tops,r=this.bottoms,a=n.length;for(t=0;t<a;t+=1)if(e>=n[t]&&e<r[t])return t},e.prototype.getWidth=function(e){return this.rights[e]-this.lefts[e]},e.prototype.getHeight=function(e){return this.bottoms[e]-this.tops[e]},e}(),ScrollController=function(){function e(){}return e.prototype.getMaxScrollTop=function(){return this.getScrollHeight()-this.getClientHeight()},e.prototype.getMaxScrollLeft=function(){return this.getScrollWidth()-this.getClientWidth()},e.prototype.canScrollVertically=function(){return this.getMaxScrollTop()>0},e.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},e.prototype.canScrollUp=function(){return this.getScrollTop()>0},e.prototype.canScrollDown=function(){return this.getScrollTop()<this.getMaxScrollTop()},e.prototype.canScrollLeft=function(){return this.getScrollLeft()>0},e.prototype.canScrollRight=function(){return this.getScrollLeft()<this.getMaxScrollLeft()},e}(),ElementScrollController=function(e){function t(t){var n=e.call(this)||this;return n.el=t,n}return __extends(t,e),t.prototype.getScrollTop=function(){return this.el.scrollTop},t.prototype.getScrollLeft=function(){return this.el.scrollLeft},t.prototype.setScrollTop=function(e){this.el.scrollTop=e},t.prototype.setScrollLeft=function(e){this.el.scrollLeft=e},t.prototype.getScrollWidth=function(){return this.el.scrollWidth},t.prototype.getScrollHeight=function(){return this.el.scrollHeight},t.prototype.getClientHeight=function(){return this.el.clientHeight},t.prototype.getClientWidth=function(){return this.el.clientWidth},t}(ScrollController),WindowScrollController=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.getScrollTop=function(){return window.pageYOffset},t.prototype.getScrollLeft=function(){return window.pageXOffset},t.prototype.setScrollTop=function(e){window.scroll(window.pageXOffset,e)},t.prototype.setScrollLeft=function(e){window.scroll(e,window.pageYOffset)},t.prototype.getScrollWidth=function(){return document.documentElement.scrollWidth},t.prototype.getScrollHeight=function(){return document.documentElement.scrollHeight},t.prototype.getClientHeight=function(){return document.documentElement.clientHeight},t.prototype.getClientWidth=function(){return document.documentElement.clientWidth},t}(ScrollController),Theme=function(){function e(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}return e.prototype.setIconOverride=function(e){var t,n;if("object"==typeof e&&e){for(n in t=__assign$1({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})},e.prototype.applyIconOverridePrefix=function(e){var t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e},e.prototype.getClass=function(e){return this.classes[e]||""},e.prototype.getIconClass=function(e,t){var n;return(n=t&&this.rtlIconClasses&&this.rtlIconClasses[e]||this.iconClasses[e])?this.baseIconClass+" "+n:""},e.prototype.getCustomButtonIconClass=function(e){var t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption])?this.baseIconClass+" "+this.applyIconOverridePrefix(t):""},e}();Theme.prototype.classes={},Theme.prototype.iconClasses={},Theme.prototype.baseIconClass="",Theme.prototype.iconOverridePrefix="";var ScrollResponder=function(){function e(e,t,n,r){var a=this;this.execFunc=e,this.emitter=t,this.scrollTime=n,this.scrollTimeReset=r,this.handleScrollRequest=function(e){a.queuedRequest=__assign$1({},a.queuedRequest||{},e),a.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}return e.prototype.detach=function(){this.emitter.off("_scrollRequest",this.handleScrollRequest)},e.prototype.update=function(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()},e.prototype.fireInitialScroll=function(){this.handleScrollRequest({time:this.scrollTime})},e.prototype.drain=function(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)},e}(),ViewContextType=createContext({});function buildViewContext(e,t,n,r,a,o,i,l,s,u,c,d,f){return{dateEnv:a,options:n,pluginHooks:i,emitter:u,dispatch:l,getCurrentData:s,calendarApi:c,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:o,isRtl:"rtl"===n.direction,addResizeHandler:function(e){u.on("_resize",e)},removeResizeHandler:function(e){u.off("_resize",e)},createScrollResponder:function(e){return new ScrollResponder(e,u,createDuration(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:d,unregisterInteractiveComponent:f}}var PureComponent=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.shouldComponentUpdate=function(e,t){return this.debug&&console.log(getUnequalProps(e,this.props),getUnequalProps(t,this.state)),!compareObjs(this.props,e,this.propEquality)||!compareObjs(this.state,t,this.stateEquality)},t.prototype.safeSetState=function(e){compareObjs(this.state,__assign$1(__assign$1({},this.state),e),this.stateEquality)||this.setState(e)},t.addPropsEquality=addPropsEquality,t.addStateEquality=addStateEquality,t.contextType=ViewContextType,t}(Component);PureComponent.prototype.propEquality={},PureComponent.prototype.stateEquality={};var BaseComponent=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.contextType=ViewContextType,t}(PureComponent);function addPropsEquality(e){var t=Object.create(this.prototype.propEquality);__assign$1(t,e),this.prototype.propEquality=t}function addStateEquality(e){var t=Object.create(this.prototype.stateEquality);__assign$1(t,e),this.prototype.stateEquality=t}function setRef(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var DateComponent=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.uid=guid(),t}return __extends(t,e),t.prototype.prepareHits=function(){},t.prototype.queryHit=function(e,t,n,r){return null},t.prototype.isValidSegDownEl=function(e){return!this.props.eventDrag&&!this.props.eventResize&&!elementClosest(e,".fc-event-mirror")},t.prototype.isValidDateDownEl=function(e){return!(elementClosest(e,".fc-event:not(.fc-bg-event)")||elementClosest(e,".fc-more-link")||elementClosest(e,"a[data-navlink]")||elementClosest(e,".fc-popover"))},t}(BaseComponent);function createPlugin(e){return{id:guid(),deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,contentTypeHandlers:e.contentTypeHandlers||{},listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function buildPluginHooks(e,t){var n={},r={reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,contentTypeHandlers:{},listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function a(e){for(var t=0,o=e;t<o.length;t++){var i=o[t];n[i.id]||(n[i.id]=!0,a(i.deps),r=combineHooks(r,i))}}return e&&a(e),a(t),r}function buildBuildPluginHooks(){var e,t=[],n=[];return function(r,a){return e&&isArraysEqual(r,t)&&isArraysEqual(a,n)||(e=buildPluginHooks(r,a)),t=r,n=a,e}}function combineHooks(e,t){return{reducers:e.reducers.concat(t.reducers),isLoadingFuncs:e.isLoadingFuncs.concat(t.isLoadingFuncs),contextInit:e.contextInit.concat(t.contextInit),eventRefiners:__assign$1(__assign$1({},e.eventRefiners),t.eventRefiners),eventDefMemberAdders:e.eventDefMemberAdders.concat(t.eventDefMemberAdders),eventSourceRefiners:__assign$1(__assign$1({},e.eventSourceRefiners),t.eventSourceRefiners),isDraggableTransformers:e.isDraggableTransformers.concat(t.isDraggableTransformers),eventDragMutationMassagers:e.eventDragMutationMassagers.concat(t.eventDragMutationMassagers),eventDefMutationAppliers:e.eventDefMutationAppliers.concat(t.eventDefMutationAppliers),dateSelectionTransformers:e.dateSelectionTransformers.concat(t.dateSelectionTransformers),datePointTransforms:e.datePointTransforms.concat(t.datePointTransforms),dateSpanTransforms:e.dateSpanTransforms.concat(t.dateSpanTransforms),views:__assign$1(__assign$1({},e.views),t.views),viewPropsTransformers:e.viewPropsTransformers.concat(t.viewPropsTransformers),isPropsValid:t.isPropsValid||e.isPropsValid,externalDefTransforms:e.externalDefTransforms.concat(t.externalDefTransforms),viewContainerAppends:e.viewContainerAppends.concat(t.viewContainerAppends),eventDropTransformers:e.eventDropTransformers.concat(t.eventDropTransformers),calendarInteractions:e.calendarInteractions.concat(t.calendarInteractions),componentInteractions:e.componentInteractions.concat(t.componentInteractions),themeClasses:__assign$1(__assign$1({},e.themeClasses),t.themeClasses),eventSourceDefs:e.eventSourceDefs.concat(t.eventSourceDefs),cmdFormatter:t.cmdFormatter||e.cmdFormatter,recurringTypes:e.recurringTypes.concat(t.recurringTypes),namedTimeZonedImpl:t.namedTimeZonedImpl||e.namedTimeZonedImpl,initialView:e.initialView||t.initialView,elementDraggingImpl:e.elementDraggingImpl||t.elementDraggingImpl,optionChangeHandlers:__assign$1(__assign$1({},e.optionChangeHandlers),t.optionChangeHandlers),scrollGridImpl:t.scrollGridImpl||e.scrollGridImpl,contentTypeHandlers:__assign$1(__assign$1({},e.contentTypeHandlers),t.contentTypeHandlers),listenerRefiners:__assign$1(__assign$1({},e.listenerRefiners),t.listenerRefiners),optionRefiners:__assign$1(__assign$1({},e.optionRefiners),t.optionRefiners),propSetHandlers:__assign$1(__assign$1({},e.propSetHandlers),t.propSetHandlers)}}var StandardTheme=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(Theme);function compileViewDefs(e,t){var n,r={};for(n in e)ensureViewDef(n,r,e,t);for(n in t)ensureViewDef(n,r,e,t);return r}function ensureViewDef(e,t,n,r){if(t[e])return t[e];var a=buildViewDef(e,t,n,r);return a&&(t[e]=a),a}function buildViewDef(e,t,n,r){var a=n[e],o=r[e],i=function(e){return a&&null!==a[e]?a[e]:o&&null!==o[e]?o[e]:null},l=i("component"),s=i("superType"),u=null;if(s){if(s===e)throw new Error("Can't have a custom view type that references itself");u=ensureViewDef(s,t,n,r)}return!l&&u&&(l=u.component),l?{type:e,component:l,defaults:__assign$1(__assign$1({},u?u.defaults:{}),a?a.rawOptions:{}),overrides:__assign$1(__assign$1({},u?u.overrides:{}),o?o.rawOptions:{})}:null}StandardTheme.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},StandardTheme.prototype.baseIconClass="fc-icon",StandardTheme.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},StandardTheme.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},StandardTheme.prototype.iconOverrideOption="buttonIcons",StandardTheme.prototype.iconOverrideCustomButtonOption="icon",StandardTheme.prototype.iconOverridePrefix="fc-icon-";var RenderHook=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=createRef(),t.handleRootEl=function(e){setRef(t.rootElRef,e),t.props.elRef&&setRef(t.props.elRef,e)},t}return __extends(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.hookProps;return createElement(MountHook,{hookProps:n,didMount:t.didMount,willUnmount:t.willUnmount,elRef:this.handleRootEl},(function(r){return createElement(ContentHook,{hookProps:n,content:t.content,defaultContent:t.defaultContent,backupElRef:e.rootElRef},(function(e,a){return t.children(r,normalizeClassNames(t.classNames,n),e,a)}))}))},t}(BaseComponent),CustomContentRenderContext=createContext(0);function ContentHook(e){return createElement(CustomContentRenderContext.Consumer,null,(function(t){return createElement(ContentHookInner,__assign$1({renderId:t},e))}))}var ContentHookInner=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.innerElRef=createRef(),t}return __extends(t,e),t.prototype.render=function(){return this.props.children(this.innerElRef,this.renderInnerContent())},t.prototype.componentDidMount=function(){this.updateCustomContent()},t.prototype.componentDidUpdate=function(){this.updateCustomContent()},t.prototype.componentWillUnmount=function(){this.customContentInfo&&this.customContentInfo.destroy&&this.customContentInfo.destroy()},t.prototype.renderInnerContent=function(){var e=this.customContentInfo,t=this.getInnerContent(),n=this.getContentMeta(t);return e&&e.contentKey===n.contentKey?e&&(e.contentVal=t[n.contentKey]):(e&&(e.destroy&&e.destroy(),e=this.customContentInfo=null),n.contentKey&&(e=this.customContentInfo=__assign$1({contentKey:n.contentKey,contentVal:t[n.contentKey]},n.buildLifecycleFuncs()))),e?[]:t},t.prototype.getInnerContent=function(){var e=this.props,t=normalizeContent(e.content,e.hookProps);return void 0===t&&(t=normalizeContent(e.defaultContent,e.hookProps)),null==t?null:t},t.prototype.getContentMeta=function(e){var t=this.context.pluginHooks.contentTypeHandlers,n="",r=null;if(e)for(var a in t)if(void 0!==e[a]){n=a,r=t[a];break}return{contentKey:n,buildLifecycleFuncs:r}},t.prototype.updateCustomContent=function(){this.customContentInfo&&this.customContentInfo.render(this.innerElRef.current||this.props.backupElRef.current,this.customContentInfo.contentVal)},t}(BaseComponent),MountHook=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleRootEl=function(e){t.rootEl=e,t.props.elRef&&setRef(t.props.elRef,e)},t}return __extends(t,e),t.prototype.render=function(){return this.props.children(this.handleRootEl)},t.prototype.componentDidMount=function(){var e=this.props.didMount;e&&e(__assign$1(__assign$1({},this.props.hookProps),{el:this.rootEl}))},t.prototype.componentWillUnmount=function(){var e=this.props.willUnmount;e&&e(__assign$1(__assign$1({},this.props.hookProps),{el:this.rootEl}))},t}(BaseComponent);function buildClassNameNormalizer(){var e,t,n=[];return function(r,a){return t&&isPropsEqual(t,a)&&r===e||(e=r,t=a,n=normalizeClassNames(r,a)),n}}function normalizeClassNames(e,t){return"function"==typeof e&&(e=e(t)),parseClassNames(e)}function normalizeContent(e,t){return"function"==typeof e?e(t,createElement):e}var ViewRoot=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.normalizeClassNames=buildClassNameNormalizer(),t}return __extends(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r={view:t.viewApi},a=this.normalizeClassNames(n.viewClassNames,r);return createElement(MountHook,{hookProps:r,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount,elRef:e.elRef},(function(t){return e.children(t,["fc-"+e.viewSpec.type+"-view","fc-view"].concat(a))}))},t}(BaseComponent);function parseViewConfigs(e){return mapHash(e,parseViewConfig)}function parseViewConfig(e){var t="function"==typeof e?{component:e}:e,n=t.component;return t.content&&(n=createViewHookComponent(t)),{superType:t.type,component:n,rawOptions:t}}function createViewHookComponent(e){return function(t){return createElement(ViewContextType.Consumer,null,(function(n){return createElement(ViewRoot,{viewSpec:n.viewSpec},(function(r,a){var o=__assign$1(__assign$1({},t),{nextDayThreshold:n.options.nextDayThreshold});return createElement(RenderHook,{hookProps:o,classNames:e.classNames,content:e.content,didMount:e.didMount,willUnmount:e.willUnmount,elRef:r},(function(e,t,n,r){return createElement("div",{className:a.concat(t).join(" "),ref:e},r)}))}))}))}}function buildViewSpecs(e,t,n,r){var a=parseViewConfigs(e),o=parseViewConfigs(t.views);return mapHash(compileViewDefs(a,o),(function(e){return buildViewSpec(e,o,t,n,r)}))}function buildViewSpec(e,t,n,r,a){var o=e.overrides.duration||e.defaults.duration||r.duration||n.duration,i=null,l="",s="",u={};if(o&&(i=createDurationCached(o))){var c=greatestDurationDenominator(i);l=c.unit,1===c.value&&(s=l,u=t[l]?t[l].rawOptions:{})}var d=function(t){var n=t.buttonText||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[s]?n[s]:null},f=function(t){var n=t.buttonHints||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[s]?n[s]:null};return{type:e.type,component:e.component,duration:i,durationUnit:l,singleUnit:s,optionDefaults:e.defaults,optionOverrides:__assign$1(__assign$1({},u),e.overrides),buttonTextOverride:d(r)||d(n)||e.overrides.buttonText,buttonTextDefault:d(a)||e.defaults.buttonText||d(BASE_OPTION_DEFAULTS)||e.type,buttonTitleOverride:f(r)||f(n)||e.overrides.buttonHint,buttonTitleDefault:f(a)||e.defaults.buttonHint||f(BASE_OPTION_DEFAULTS)}}var durationInputMap={};function createDurationCached(e){var t=JSON.stringify(e),n=durationInputMap[t];return void 0===n&&(n=createDuration(e),durationInputMap[t]=n),n}var DateProfileGenerator=function(){function e(e){this.props=e,this.nowDate=getNow(e.nowInput,e.dateEnv),this.initHiddenDays()}return e.prototype.buildPrev=function(e,t,n){var r=this.props.dateEnv,a=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(a,-1,n)},e.prototype.buildNext=function(e,t,n){var r=this.props.dateEnv,a=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(a,1,n)},e.prototype.build=function(e,t,n){void 0===n&&(n=!0);var r,a,o,i,l,s,u=this.props;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(e=constrainMarkerToRange(e,r)),a=this.buildCurrentRangeInfo(e,t),o=/^(year|month|week|day)$/.test(a.unit),i=this.buildRenderRange(this.trimHiddenDays(a.range),a.unit,o),l=i=this.trimHiddenDays(i),u.showNonCurrentDates||(l=intersectRanges(l,a.range)),l=intersectRanges(l=this.adjustActiveRange(l),r),s=rangesIntersect(a.range,r),{validRange:r,currentRange:a.range,currentRangeUnit:a.unit,isRangeAllDay:o,activeRange:l,renderRange:i,slotMinTime:u.slotMinTime,slotMaxTime:u.slotMaxTime,isValid:s,dateIncrement:this.buildDateIncrement(a.duration)}},e.prototype.buildValidRange=function(){var e=this.props.validRangeInput,t="function"==typeof e?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(t)||{start:null,end:null}},e.prototype.buildCurrentRangeInfo=function(e,t){var n,r=this.props,a=null,o=null,i=null;return r.duration?(a=r.duration,o=r.durationUnit,i=this.buildRangeFromDuration(e,t,a,o)):(n=this.props.dayCount)?(o="day",i=this.buildRangeFromDayCount(e,t,n)):(i=this.buildCustomVisibleRange(e))?o=r.dateEnv.greatestWholeUnit(i.start,i.end).unit:(o=greatestDurationDenominator(a=this.getFallbackDuration()).unit,i=this.buildRangeFromDuration(e,t,a,o)),{duration:a,unit:o,range:i}},e.prototype.getFallbackDuration=function(){return createDuration({day:1})},e.prototype.adjustActiveRange=function(e){var t=this.props,n=t.dateEnv,r=t.usesMinMaxTime,a=t.slotMinTime,o=t.slotMaxTime,i=e.start,l=e.end;return r&&(asRoughDays(a)<0&&(i=startOfDay(i),i=n.add(i,a)),asRoughDays(o)>1&&(l=addDays(l=startOfDay(l),-1),l=n.add(l,o))),{start:i,end:l}},e.prototype.buildRangeFromDuration=function(e,t,n,r){var a,o,i,l=this.props,s=l.dateEnv,u=l.dateAlignment;if(!u){var c=this.props.dateIncrement;u=c&&asRoughMs(c)<asRoughMs(n)?greatestDurationDenominator(c).unit:r}function d(){a=s.startOf(e,u),o=s.add(a,n),i={start:a,end:o}}return asRoughDays(n)<=1&&this.isHiddenDay(a)&&(a=startOfDay(a=this.skipHiddenDays(a,t))),d(),this.trimHiddenDays(i)||(e=this.skipHiddenDays(e,t),d()),i},e.prototype.buildRangeFromDayCount=function(e,t,n){var r,a=this.props,o=a.dateEnv,i=a.dateAlignment,l=0,s=e;i&&(s=o.startOf(s,i)),s=startOfDay(s),r=s=this.skipHiddenDays(s,t);do{r=addDays(r,1),this.isHiddenDay(r)||(l+=1)}while(l<n);return{start:s,end:r}},e.prototype.buildCustomVisibleRange=function(e){var t=this.props,n=t.visibleRangeInput,r="function"==typeof n?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,a=this.refineRange(r);return!a||null!=a.start&&null!=a.end?a:null},e.prototype.buildRenderRange=function(e,t,n){return e},e.prototype.buildDateIncrement=function(e){var t,n=this.props.dateIncrement;return n||((t=this.props.dateAlignment)?createDuration(1,t):e||createDuration({days:1}))},e.prototype.refineRange=function(e){if(e){var t=parseRange(e,this.props.dateEnv);return t&&(t=computeVisibleDayRange(t)),t}return null},e.prototype.initHiddenDays=function(){var e,t=this.props.hiddenDays||[],n=[],r=0;for(!1===this.props.weekends&&t.push(0,6),e=0;e<7;e+=1)(n[e]=-1!==t.indexOf(e))||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n},e.prototype.trimHiddenDays=function(e){var t=e.start,n=e.end;return t&&(t=this.skipHiddenDays(t)),n&&(n=this.skipHiddenDays(n,-1,!0)),null==t||null==n||t<n?{start:t,end:n}:null},e.prototype.isHiddenDay=function(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]},e.prototype.skipHiddenDays=function(e,t,n){for(void 0===t&&(t=1),void 0===n&&(n=!1);this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=addDays(e,t);return e},e}();function reduceViewType(e,t){if("CHANGE_VIEW_TYPE"===t.type)e=t.viewType;return e}function reduceDynamicOptionOverrides(e,t){var n;return"SET_OPTION"===t.type?__assign$1(__assign$1({},e),((n={})[t.optionName]=t.rawOptionValue,n)):e}function reduceDateProfile(e,t,n,r){var a;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if((a=r.buildPrev(e,n)).isValid)return a;break;case"NEXT":if((a=r.buildNext(e,n)).isValid)return a}return e}function initEventSources(e,t,n){var r=t?t.activeRange:null;return addSources({},parseInitialSources(e,n),r,n)}function reduceEventSources(e,t,n,r){var a=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return addSources(e,t.sources,a,r);case"REMOVE_EVENT_SOURCE":return removeSource(e,t.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?fetchDirtySources(e,a,r):e;case"FETCH_EVENT_SOURCES":return fetchSourcesByIds(e,t.sourceIds?arrayToHash(t.sourceIds):excludeStaticSources(e,r),a,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return receiveResponse(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}function reduceEventSourcesNewTimeZone(e,t,n){var r=t?t.activeRange:null;return fetchSourcesByIds(e,excludeStaticSources(e,n),r,!0,n)}function computeEventSourcesLoading(e){for(var t in e)if(e[t].isFetching)return!0;return!1}function addSources(e,t,n,r){for(var a={},o=0,i=t;o<i.length;o++){var l=i[o];a[l.sourceId]=l}return n&&(a=fetchDirtySources(a,n,r)),__assign$1(__assign$1({},e),a)}function removeSource(e,t){return filterHash(e,(function(e){return e.sourceId!==t}))}function fetchDirtySources(e,t,n){return fetchSourcesByIds(e,filterHash(e,(function(e){return isSourceDirty(e,t,n)})),t,!1,n)}function isSourceDirty(e,t,n){return doesSourceNeedRange(e,n)?!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end:!e.latestFetchId}function fetchSourcesByIds(e,t,n,r,a){var o={};for(var i in e){var l=e[i];t[i]?o[i]=fetchSource(l,n,r,a):o[i]=l}return o}function fetchSource(e,t,n,r){var a=r.options,o=r.calendarApi,i=r.pluginHooks.eventSourceDefs[e.sourceDefId],l=guid();return i.fetch({eventSource:e,range:t,isRefetch:n,context:r},(function(n){var i=n.rawEvents;a.eventSourceSuccess&&(i=a.eventSourceSuccess.call(o,i,n.xhr)||i),e.success&&(i=e.success.call(o,i,n.xhr)||i),r.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:l,fetchRange:t,rawEvents:i})}),(function(n){console.warn(n.message,n),a.eventSourceFailure&&a.eventSourceFailure.call(o,n),e.failure&&e.failure(n),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:l,fetchRange:t,error:n})})),__assign$1(__assign$1({},e),{isFetching:!0,latestFetchId:l})}function receiveResponse(e,t,n,r){var a,o=e[t];return o&&n===o.latestFetchId?__assign$1(__assign$1({},e),((a={})[t]=__assign$1(__assign$1({},o),{isFetching:!1,fetchRange:r}),a)):e}function excludeStaticSources(e,t){return filterHash(e,(function(e){return doesSourceNeedRange(e,t)}))}function parseInitialSources(e,t){var n=buildEventSourceRefiners(t),r=[].concat(e.eventSources||[]),a=[];e.initialEvents&&r.unshift(e.initialEvents),e.events&&r.unshift(e.events);for(var o=0,i=r;o<i.length;o++){var l=parseEventSource(i[o],t,n);l&&a.push(l)}return a}function doesSourceNeedRange(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function reduceEventStore(e,t,n,r,a){switch(t.type){case"RECEIVE_EVENTS":return receiveRawEvents(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,a);case"ADD_EVENTS":return addEvent(e,t.eventStore,r?r.activeRange:null,a);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return mergeEventStores(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?expandRecurring(e,r.activeRange,a):e;case"REMOVE_EVENTS":return excludeSubEventStore(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return excludeEventsBySourceId(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return filterEventStoreDefs(e,(function(e){return!e.sourceId}));case"REMOVE_ALL_EVENTS":return createEmptyEventStore();default:return e}}function receiveRawEvents(e,t,n,r,a,o){if(t&&n===t.latestFetchId){var i=parseEvents(transformRawEvents(a,t,o),t,o);return r&&(i=expandRecurring(i,r,o)),mergeEventStores(excludeEventsBySourceId(e,t.sourceId),i)}return e}function transformRawEvents(e,t,n){var r=n.options.eventDataTransform,a=t?t.eventDataTransform:null;return a&&(e=transformEachRawEvent(e,a)),r&&(e=transformEachRawEvent(e,r)),e}function transformEachRawEvent(e,t){var n;if(t){n=[];for(var r=0,a=e;r<a.length;r++){var o=a[r],i=t(o);i?n.push(i):null==i&&n.push(o)}}else n=e;return n}function addEvent(e,t,n,r){return n&&(t=expandRecurring(t,n,r)),mergeEventStores(e,t)}function rezoneEventStoreDates(e,t,n){var r=e.defs,a=mapHash(e.instances,(function(e){var a=r[e.defId];return a.allDay||a.recurringDef?e:__assign$1(__assign$1({},e),{range:{start:n.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:n.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:e.forcedEndTzo})}));return{defs:r,instances:a}}function excludeEventsBySourceId(e,t){return filterEventStoreDefs(e,(function(e){return e.sourceId!==t}))}function excludeInstances(e,t){return{defs:e.defs,instances:filterHash(e.instances,(function(e){return!t[e.instanceId]}))}}function reduceDateSelection(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function reduceSelectedEvent(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function reduceEventDrag(e,t){var n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return{affectedEvents:(n=t.state).affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function reduceEventResize(e,t){var n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return{affectedEvents:(n=t.state).affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function parseToolbars(e,t,n,r,a){return{header:e.headerToolbar?parseToolbar(e.headerToolbar,e,t,n,r,a):null,footer:e.footerToolbar?parseToolbar(e.footerToolbar,e,t,n,r,a):null}}function parseToolbar(e,t,n,r,a,o){var i={},l=[],s=!1;for(var u in e){var c=parseSection(e[u],t,n,r,a,o);i[u]=c.widgets,l.push.apply(l,c.viewsWithButtons),s=s||c.hasTitle}return{sectionWidgets:i,viewsWithButtons:l,hasTitle:s}}function parseSection(e,t,n,r,a,o){var i="rtl"===t.direction,l=t.customButtons||{},s=n.buttonText||{},u=t.buttonText||{},c=n.buttonHints||{},d=t.buttonHints||{},f=e?e.split(" "):[],p=[],h=!1;return{widgets:f.map((function(e){return e.split(",").map((function(e){if("title"===e)return h=!0,{buttonName:e};var n,f,m,v,g,y;if(n=l[e])m=function(e){n.click&&n.click.call(e.target,e,e.target)},(v=r.getCustomButtonIconClass(n))||(v=r.getIconClass(e,i))||(g=n.text),y=n.hint||n.text;else if(f=a[e]){p.push(e),m=function(){o.changeView(e)},(g=f.buttonTextOverride)||(v=r.getIconClass(e,i))||(g=f.buttonTextDefault);var b=f.buttonTextOverride||f.buttonTextDefault;y=formatWithOrdinals(f.buttonTitleOverride||f.buttonTitleDefault||t.viewHint,[b,e],b)}else if(o[e])if(m=function(){o[e]()},(g=s[e])||(v=r.getIconClass(e,i))||(g=u[e]),"prevYear"===e||"nextYear"===e){var w="prevYear"===e?"prev":"next";y=formatWithOrdinals(c[w]||d[w],[u.year||"year","year"],u[e])}else y=function(t){return formatWithOrdinals(c[e]||d[e],[u[t]||t,t],u[e])};return{buttonName:e,buttonClick:m,buttonIcon:v,buttonText:g,buttonHint:y}}))})),viewsWithButtons:p,hasTitle:h}}var eventSourceDef$2={ignoreRange:!0,parseMeta:function(e){return Array.isArray(e.events)?e.events:null},fetch:function(e,t){t({rawEvents:e.eventSource.meta})}},arrayEventSourcePlugin=createPlugin({eventSourceDefs:[eventSourceDef$2]}),eventSourceDef$1={parseMeta:function(e){return"function"==typeof e.events?e.events:null},fetch:function(e,t,n){var r=e.context.dateEnv;unpromisify(e.eventSource.meta.bind(null,buildRangeApiWithTimeZone(e.range,r)),(function(e){t({rawEvents:e})}),n)}},funcEventSourcePlugin=createPlugin({eventSourceDefs:[eventSourceDef$1]});function requestJson(e,t,n,r,a){var o=null;"GET"===(e=e.toUpperCase())?t=injectQueryStringParams(t,n):o=encodeParams(n);var i=new XMLHttpRequest;i.open(e,t,!0),"GET"!==e&&i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.onload=function(){if(i.status>=200&&i.status<400){var e=!1,t=void 0;try{t=JSON.parse(i.responseText),e=!0}catch(e){}e?r(t,i):a("Failure parsing JSON",i)}else a("Request failed",i)},i.onerror=function(){a("Request failed",i)},i.send(o)}function injectQueryStringParams(e,t){return e+(-1===e.indexOf("?")?"?":"&")+encodeParams(t)}function encodeParams(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}var JSON_FEED_EVENT_SOURCE_REFINERS={method:String,extraParams:identity,startParam:String,endParam:String,timeZoneParam:String},eventSourceDef={parseMeta:function(e){return!e.url||"json"!==e.format&&e.format?null:{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}},fetch:function(e,t,n){var r=e.eventSource.meta,a=buildRequestParams(r,e.range,e.context);requestJson(r.method,r.url,a,(function(e,n){t({rawEvents:e,xhr:n})}),(function(e,t){n({message:e,xhr:t})}))}},jsonFeedEventSourcePlugin=createPlugin({eventSourceRefiners:JSON_FEED_EVENT_SOURCE_REFINERS,eventSourceDefs:[eventSourceDef]});function buildRequestParams(e,t,n){var r,a,o,i,l=n.dateEnv,s=n.options,u={};return null==(r=e.startParam)&&(r=s.startParam),null==(a=e.endParam)&&(a=s.endParam),null==(o=e.timeZoneParam)&&(o=s.timeZoneParam),i="function"==typeof e.extraParams?e.extraParams():e.extraParams||{},__assign$1(u,i),u[r]=l.formatIso(t.start),u[a]=l.formatIso(t.end),"local"!==l.timeZone&&(u[o]=l.timeZone),u}var SIMPLE_RECURRING_REFINERS={daysOfWeek:identity,startTime:createDuration,endTime:createDuration,duration:createDuration,startRecur:identity,endRecur:identity},recurring={parse:function(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){var n={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null},r=void 0;return e.duration&&(r=e.duration),!r&&e.startTime&&e.endTime&&(r=subtractDurations(e.endTime,e.startTime)),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:r,typeData:n}}return null},expand:function(e,t,n){var r=intersectRanges(t,{start:e.startRecur,end:e.endRecur});return r?expandRanges(e.daysOfWeek,e.startTime,r,n):[]}},simpleRecurringEventsPlugin=createPlugin({recurringTypes:[recurring],eventRefiners:SIMPLE_RECURRING_REFINERS});function expandRanges(e,t,n,r){for(var a=e?arrayToHash(e):null,o=startOfDay(n.start),i=n.end,l=[];o<i;){var s=void 0;a&&!a[o.getUTCDay()]||(s=t?r.add(o,t):o,l.push(s)),o=addDays(o,1)}return l}var changeHandlerPlugin=createPlugin({optionChangeHandlers:{events:function(e,t){handleEventSources([e],t)},eventSources:handleEventSources}});function handleEventSources(e,t){for(var n=hashValuesToArray(t.getCurrentData().eventSources),r=[],a=0,o=e;a<o.length;a++){for(var i=o[a],l=!1,s=0;s<n.length;s+=1)if(n[s]._raw===i){n.splice(s,1),l=!0;break}l||r.push(i)}for(var u=0,c=n;u<c.length;u++){var d=c[u];t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:d.sourceId})}for(var f=0,p=r;f<p.length;f++){var h=p[f];t.calendarApi.addEventSource(h)}}function handleDateProfile(e,t){t.emitter.trigger("datesSet",__assign$1(__assign$1({},buildRangeApiWithTimeZone(e.activeRange,t.dateEnv)),{view:t.viewApi}))}function handleEventStore(e,t){var n=t.emitter;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",buildEventApis(e,t))}var globalPlugins=[arrayEventSourcePlugin,funcEventSourcePlugin,jsonFeedEventSourcePlugin,simpleRecurringEventsPlugin,changeHandlerPlugin,createPlugin({isLoadingFuncs:[function(e){return computeEventSourcesLoading(e.eventSources)}],contentTypeHandlers:{html:buildHtmlRenderer,domNodes:buildDomNodeRenderer},propSetHandlers:{dateProfile:handleDateProfile,eventStore:handleEventStore}})];function buildHtmlRenderer(){var e=null,t="";return{render:function(n,r){n===e&&r===t||(n.innerHTML=r),e=n,t=r},destroy:function(){e.innerHTML="",e=null,t=""}}}function buildDomNodeRenderer(){var e=null,t=[];function n(){t.forEach(removeElement),t=[],e=null}return{render:function(r,a){var o=Array.prototype.slice.call(a);if(r!==e||!isArraysEqual(t,o)){for(var i=0,l=o;i<l.length;i++){var s=l[i];r.appendChild(s)}n()}e=r,t=o},destroy:n}}var DelayedRunner=function(){function e(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}return e.prototype.request=function(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==e?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))},e.prototype.pause=function(e){void 0===e&&(e="");var t=this.pauseDepths;t[e]=(t[e]||0)+1,this.clearTimeout()},e.prototype.resume=function(e,t){void 0===e&&(e="");var n=this.pauseDepths;if(e in n){if(t)delete n[e];else n[e]-=1,n[e]<=0&&delete n[e];this.tryDrain()}},e.prototype.isPaused=function(){return Object.keys(this.pauseDepths).length},e.prototype.tryDrain=function(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}},e.prototype.clear=function(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}},e.prototype.clearTimeout=function(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)},e.prototype.drained=function(){this.drainedOption&&this.drainedOption()},e}(),TaskRunner=function(){function e(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new DelayedRunner(this.drain.bind(this))}return e.prototype.request=function(e,t){this.queue.push(e),this.delayedRunner.request(t)},e.prototype.pause=function(e){this.delayedRunner.pause(e)},e.prototype.resume=function(e,t){this.delayedRunner.resume(e,t)},e.prototype.drain=function(){for(var e=this.queue;e.length;){for(var t=[],n=void 0;n=e.shift();)this.runTask(n),t.push(n);this.drained(t)}},e.prototype.runTask=function(e){this.runTaskOption&&this.runTaskOption(e)},e.prototype.drained=function(e){this.drainedOption&&this.drainedOption(e)},e}();function buildTitle(e,t,n){var r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,createFormatter(t.titleFormat||buildTitleFormat(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}function buildTitleFormat(e){var t=e.currentRangeUnit;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};var n=diffWholeDays(e.currentRange.start,e.currentRange.end);return null!==n&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}var CalendarDataManager=function(){function e(e){var t=this;this.computeOptionsData=memoize(this._computeOptionsData),this.computeCurrentViewData=memoize(this._computeCurrentViewData),this.organizeRawLocales=memoize(organizeRawLocales),this.buildLocale=memoize(buildLocale),this.buildPluginHooks=buildBuildPluginHooks(),this.buildDateEnv=memoize(buildDateEnv),this.buildTheme=memoize(buildTheme),this.parseToolbars=memoize(parseToolbars),this.buildViewSpecs=memoize(buildViewSpecs),this.buildDateProfileGenerator=memoizeObjArg(buildDateProfileGenerator),this.buildViewApi=memoize(buildViewApi),this.buildViewUiProps=memoizeObjArg(buildViewUiProps),this.buildEventUiBySource=memoize(buildEventUiBySource,isPropsEqual),this.buildEventUiBases=memoize(buildEventUiBases),this.parseContextBusinessHours=memoizeObjArg(parseContextBusinessHours),this.buildTitle=memoize(buildTitle),this.emitter=new Emitter,this.actionRunner=new TaskRunner(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.getCurrentData=function(){return t.data},this.dispatch=function(e){t.actionRunner.request(e)},this.props=e,this.actionRunner.pause();var n={},r=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),a=r.calendarOptions.initialView||r.pluginHooks.initialView,o=this.computeCurrentViewData(a,r,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(o.options);var i=getInitialDate(r.calendarOptions,r.dateEnv),l=o.dateProfileGenerator.build(i);rangeContainsMarker(l.activeRange,i)||(i=l.currentRange.start);for(var s={dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},u=0,c=r.pluginHooks.contextInit;u<c.length;u++){(0,c[u])(s)}for(var d=initEventSources(r.calendarOptions,l,s),f={dynamicOptionOverrides:n,currentViewType:a,currentDate:i,dateProfile:l,businessHours:this.parseContextBusinessHours(s),eventSources:d,eventUiBases:{},eventStore:createEmptyEventStore(),renderableEventStore:createEmptyEventStore(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(s).selectionConfig},p=__assign$1(__assign$1({},s),f),h=0,m=r.pluginHooks.reducers;h<m.length;h++){var v=m[h];__assign$1(f,v(null,null,p))}computeIsLoading(f,s)&&this.emitter.trigger("loading",!0),this.state=f,this.updateData(),this.actionRunner.resume()}return e.prototype.resetOptions=function(e,t){var n=this.props;n.optionOverrides=t?__assign$1(__assign$1({},n.optionOverrides),e):e,this.actionRunner.request({type:"NOTHING"})},e.prototype._handleAction=function(e){var t=this,n=t.props,r=t.state,a=t.emitter,o=reduceDynamicOptionOverrides(r.dynamicOptionOverrides,e),i=this.computeOptionsData(n.optionOverrides,o,n.calendarApi),l=reduceViewType(r.currentViewType,e),s=this.computeCurrentViewData(l,i,n.optionOverrides,o);n.calendarApi.currentDataManager=this,a.setThisContext(n.calendarApi),a.setOptions(s.options);var u={dateEnv:i.dateEnv,options:i.calendarOptions,pluginHooks:i.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:a,getCurrentData:this.getCurrentData},c=r.currentDate,d=r.dateProfile;this.data&&this.data.dateProfileGenerator!==s.dateProfileGenerator&&(d=s.dateProfileGenerator.build(c)),d=reduceDateProfile(d,e,c=reduceCurrentDate(c,e),s.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&rangeContainsMarker(d.currentRange,c)||(c=d.currentRange.start);for(var f=reduceEventSources(r.eventSources,e,d,u),p=reduceEventStore(r.eventStore,e,f,d,u),h=computeEventSourcesLoading(f)&&!s.options.progressiveEventRendering&&r.renderableEventStore||p,m=this.buildViewUiProps(u),v=m.eventUiSingleBase,g=m.selectionConfig,y=this.buildEventUiBySource(f),b={dynamicOptionOverrides:o,currentViewType:l,currentDate:c,dateProfile:d,eventSources:f,eventStore:p,renderableEventStore:h,selectionConfig:g,eventUiBases:this.buildEventUiBases(h.defs,v,y),businessHours:this.parseContextBusinessHours(u),dateSelection:reduceDateSelection(r.dateSelection,e),eventSelection:reduceSelectedEvent(r.eventSelection,e),eventDrag:reduceEventDrag(r.eventDrag,e),eventResize:reduceEventResize(r.eventResize,e)},w=__assign$1(__assign$1({},u),b),S=0,E=i.pluginHooks.reducers;S<E.length;S++){var _=E[S];__assign$1(b,_(r,e,w))}var k=computeIsLoading(r,u),T=computeIsLoading(b,u);!k&&T?a.trigger("loading",!0):k&&!T&&a.trigger("loading",!1),this.state=b,n.onAction&&n.onAction(e)},e.prototype.updateData=function(){var e=this.props,t=this.state,n=this.data,r=this.computeOptionsData(e.optionOverrides,t.dynamicOptionOverrides,e.calendarApi),a=this.computeCurrentViewData(t.currentViewType,r,e.optionOverrides,t.dynamicOptionOverrides),o=this.data=__assign$1(__assign$1(__assign$1({viewTitle:this.buildTitle(t.dateProfile,a.options,r.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},r),a),t),i=r.pluginHooks.optionChangeHandlers,l=n&&n.calendarOptions,s=r.calendarOptions;if(l&&l!==s)for(var u in l.timeZone!==s.timeZone&&(t.eventSources=o.eventSources=reduceEventSourcesNewTimeZone(o.eventSources,t.dateProfile,o),t.eventStore=o.eventStore=rezoneEventStoreDates(o.eventStore,n.dateEnv,o.dateEnv)),i)l[u]!==s[u]&&i[u](s[u],o);e.onData&&e.onData(o)},e.prototype._computeOptionsData=function(e,t,n){var r=this.processRawCalendarOptions(e,t),a=r.refinedOptions,o=r.pluginHooks,i=r.localeDefaults,l=r.availableLocaleData;warnUnknownOptions(r.extra);var s=this.buildDateEnv(a.timeZone,a.locale,a.weekNumberCalculation,a.firstDay,a.weekText,o,l,a.defaultRangeSeparator),u=this.buildViewSpecs(o.views,e,t,i),c=this.buildTheme(a,o);return{calendarOptions:a,pluginHooks:o,dateEnv:s,viewSpecs:u,theme:c,toolbarConfig:this.parseToolbars(a,e,c,u,n),localeDefaults:i,availableRawLocales:l.map}},e.prototype.processRawCalendarOptions=function(e,t){var n=mergeRawOptions([BASE_OPTION_DEFAULTS,e,t]),r=n.locales,a=n.locale,o=this.organizeRawLocales(r),i=o.map,l=this.buildLocale(a||o.defaultCode,i).options,s=this.buildPluginHooks(e.plugins||[],globalPlugins),u=this.currentCalendarOptionsRefiners=__assign$1(__assign$1(__assign$1(__assign$1(__assign$1({},BASE_OPTION_REFINERS),CALENDAR_LISTENER_REFINERS),CALENDAR_OPTION_REFINERS),s.listenerRefiners),s.optionRefiners),c={},d=mergeRawOptions([BASE_OPTION_DEFAULTS,l,e,t]),f={},p=this.currentCalendarOptionsInput,h=this.currentCalendarOptionsRefined,m=!1;for(var v in d)"plugins"!==v&&(d[v]===p[v]||COMPLEX_OPTION_COMPARATORS[v]&&v in p&&COMPLEX_OPTION_COMPARATORS[v](p[v],d[v])?f[v]=h[v]:u[v]?(f[v]=u[v](d[v]),m=!0):c[v]=p[v]);return m&&(this.currentCalendarOptionsInput=d,this.currentCalendarOptionsRefined=f),{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:s,availableLocaleData:o,localeDefaults:l,extra:c}},e.prototype._computeCurrentViewData=function(e,t,n,r){var a=t.viewSpecs[e];if(!a)throw new Error('viewType "'+e+"\" is not available. Please make sure you've loaded all neccessary plugins");var o=this.processRawViewOptions(a,t.pluginHooks,t.localeDefaults,n,r),i=o.refinedOptions;return warnUnknownOptions(o.extra),{viewSpec:a,options:i,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:a.optionDefaults.dateProfileGeneratorClass,duration:a.duration,durationUnit:a.durationUnit,usesMinMaxTime:a.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,showNonCurrentDates:i.showNonCurrentDates,dayCount:i.dayCount,dateAlignment:i.dateAlignment,dateIncrement:i.dateIncrement,hiddenDays:i.hiddenDays,weekends:i.weekends,nowInput:i.now,validRangeInput:i.validRange,visibleRangeInput:i.visibleRange,monthMode:i.monthMode,fixedWeekCount:i.fixedWeekCount}),viewApi:this.buildViewApi(e,this.getCurrentData,t.dateEnv)}},e.prototype.processRawViewOptions=function(e,t,n,r,a){var o=mergeRawOptions([BASE_OPTION_DEFAULTS,e.optionDefaults,n,r,e.optionOverrides,a]),i=__assign$1(__assign$1(__assign$1(__assign$1(__assign$1(__assign$1({},BASE_OPTION_REFINERS),CALENDAR_LISTENER_REFINERS),CALENDAR_OPTION_REFINERS),VIEW_OPTION_REFINERS),t.listenerRefiners),t.optionRefiners),l={},s=this.currentViewOptionsInput,u=this.currentViewOptionsRefined,c=!1,d={};for(var f in o)o[f]===s[f]||COMPLEX_OPTION_COMPARATORS[f]&&COMPLEX_OPTION_COMPARATORS[f](o[f],s[f])?l[f]=u[f]:(o[f]===this.currentCalendarOptionsInput[f]||COMPLEX_OPTION_COMPARATORS[f]&&COMPLEX_OPTION_COMPARATORS[f](o[f],this.currentCalendarOptionsInput[f])?f in this.currentCalendarOptionsRefined&&(l[f]=this.currentCalendarOptionsRefined[f]):i[f]?l[f]=i[f](o[f]):d[f]=o[f],c=!0);return c&&(this.currentViewOptionsInput=o,this.currentViewOptionsRefined=l),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:d}},e}();function buildDateEnv(e,t,n,r,a,o,i,l){var s=buildLocale(t||i.defaultCode,i.map);return new DateEnv({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:o.namedTimeZonedImpl,locale:s,weekNumberCalculation:n,firstDay:r,weekText:a,cmdFormatter:o.cmdFormatter,defaultSeparator:l})}function buildTheme(e,t){return new(t.themeClasses[e.themeSystem]||StandardTheme)(e)}function buildDateProfileGenerator(e){return new(e.dateProfileGeneratorClass||DateProfileGenerator)(e)}function buildViewApi(e,t,n){return new ViewApi(e,t,n)}function buildEventUiBySource(e){return mapHash(e,(function(e){return e.ui}))}function buildEventUiBases(e,t,n){var r={"":t};for(var a in e){var o=e[a];o.sourceId&&n[o.sourceId]&&(r[a]=n[o.sourceId])}return r}function buildViewUiProps(e){var t=e.options;return{eventUiSingleBase:createEventUi({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:"boolean"==typeof t.eventOverlap?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:createEventUi({constraint:t.selectConstraint,overlap:"boolean"==typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function computeIsLoading(e,t){for(var n=0,r=t.pluginHooks.isLoadingFuncs;n<r.length;n++){if((0,r[n])(e))return!0}return!1}function parseContextBusinessHours(e){return parseBusinessHours(e.options.businessHours,e)}function warnUnknownOptions(e,t){for(var n in e)console.warn("Unknown option '"+n+"'"+(t?" for view '"+t+"'":""))}var CalendarDataProvider=function(e){function t(t){var n=e.call(this,t)||this;return n.handleData=function(e){n.dataManager?n.setState(e):n.state=e},n.dataManager=new CalendarDataManager({optionOverrides:t.optionOverrides,calendarApi:t.calendarApi,onData:n.handleData}),n}return __extends(t,e),t.prototype.render=function(){return this.props.children(this.state)},t.prototype.componentDidUpdate=function(e){var t=this.props.optionOverrides;t!==e.optionOverrides&&this.dataManager.resetOptions(t)},t}(Component),SegHierarchy=function(){function e(){this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}return e.prototype.addSegs=function(e){for(var t=[],n=0,r=e;n<r.length;n++){var a=r[n];this.insertEntry(a,t)}return t},e.prototype.insertEntry=function(e,t){var n=this.findInsertion(e);return this.isInsertionValid(n,e)?(this.insertEntryAt(e,n),1):this.handleInvalidInsertion(n,e,t)},e.prototype.isInsertionValid=function(e,t){return(-1===this.maxCoord||e.levelCoord+t.thickness<=this.maxCoord)&&(-1===this.maxStackCnt||e.stackCnt<this.maxStackCnt)},e.prototype.handleInvalidInsertion=function(e,t,n){return this.allowReslicing&&e.touchingEntry?this.splitEntry(t,e.touchingEntry,n):(n.push(t),0)},e.prototype.splitEntry=function(e,t,n){var r=0,a=[],o=e.span,i=t.span;return o.start<i.start&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:o.start,end:i.start}},a)),o.end>i.end&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:i.end,end:o.end}},a)),r?(n.push.apply(n,__spreadArray([{index:e.index,thickness:e.thickness,span:intersectSpans(i,o)}],a)),r):(n.push(e),0)},e.prototype.insertEntryAt=function(e,t){var n=this.entriesByLevel,r=this.levelCoords;-1===t.lateral?(insertAt(r,t.level,t.levelCoord),insertAt(n,t.level,[e])):insertAt(n[t.level],t.lateral,e),this.stackCnts[buildEntryKey(e)]=t.stackCnt},e.prototype.findInsertion=function(e){for(var t=this,n=t.levelCoords,r=t.entriesByLevel,a=t.strictOrder,o=t.stackCnts,i=n.length,l=0,s=-1,u=-1,c=null,d=0,f=0;f<i;f+=1){var p=n[f];if(!a&&p>=l+e.thickness)break;for(var h=r[f],m=void 0,v=binarySearch(h,e.span.start,getEntrySpanEnd),g=v[0]+v[1];(m=h[g])&&m.span.start<e.span.end;){var y=p+m.thickness;y>l&&(l=y,c=m,s=f,u=g),y===l&&(d=Math.max(d,o[buildEntryKey(m)]+1)),g+=1}}var b=0;if(c)for(b=s+1;b<i&&n[b]<l;)b+=1;var w=-1;return b<i&&n[b]===l&&(w=binarySearch(r[b],e.span.end,getEntrySpanEnd)[0]),{touchingLevel:s,touchingLateral:u,touchingEntry:c,stackCnt:d,levelCoord:l,level:b,lateral:w}},e.prototype.toRects=function(){for(var e=this.entriesByLevel,t=this.levelCoords,n=e.length,r=[],a=0;a<n;a+=1)for(var o=e[a],i=t[a],l=0,s=o;l<s.length;l++){var u=s[l];r.push(__assign$1(__assign$1({},u),{levelCoord:i}))}return r},e}();function getEntrySpanEnd(e){return e.span.end}function buildEntryKey(e){return e.index+":"+e.span.start}function groupIntersectingEntries(e){for(var t=[],n=0,r=e;n<r.length;n++){for(var a=r[n],o=[],i={span:a.span,entries:[a]},l=0,s=t;l<s.length;l++){var u=s[l];intersectSpans(u.span,i.span)?i={entries:u.entries.concat(i.entries),span:joinSpans(u.span,i.span)}:o.push(u)}o.push(i),t=o}return t}function joinSpans(e,t){return{start:Math.min(e.start,t.start),end:Math.max(e.end,t.end)}}function intersectSpans(e,t){var n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return n<r?{start:n,end:r}:null}function insertAt(e,t,n){e.splice(t,0,n)}function binarySearch(e,t,n){var r=0,a=e.length;if(!a||t<n(e[r]))return[0,0];if(t>n(e[a-1]))return[a,0];for(;r<a;){var o=Math.floor(r+(a-r)/2),i=n(e[o]);if(t<i)a=o;else{if(!(t>i))return[o,1];r=o+1}}return[r,0]}var Interaction=function(){function e(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}return e.prototype.destroy=function(){},e}();function parseInteractionSettings(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}function interactionSettingsToStore(e){var t;return(t={})[e.component.uid]=e,t}var interactionSettingsStore={},ElementDragging=function(){function e(e,t){this.emitter=new Emitter}return e.prototype.destroy=function(){},e.prototype.setMirrorIsVisible=function(e){},e.prototype.setMirrorNeedsRevert=function(e){},e.prototype.setAutoScrollEnabled=function(e){},e}(),config$1={},ToolbarSection=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.render=function(){var e=this,t=this.props.widgetGroups.map((function(t){return e.renderWidgetGroup(t)}));return createElement.apply(void 0,__spreadArray(["div",{className:"fc-toolbar-chunk"}],t))},t.prototype.renderWidgetGroup=function(e){for(var t=this.props,n=this.context.theme,r=[],a=!0,o=0,i=e;o<i.length;o++){var l=i[o],s=l.buttonName,u=l.buttonClick,c=l.buttonText,d=l.buttonIcon,f=l.buttonHint;if("title"===s)a=!1,r.push(createElement("h2",{className:"fc-toolbar-title",id:t.titleId},t.title));else{var p=s===t.activeButton,h=!t.isTodayEnabled&&"today"===s||!t.isPrevEnabled&&"prev"===s||!t.isNextEnabled&&"next"===s,m=["fc-"+s+"-button",n.getClass("button")];p&&m.push(n.getClass("buttonActive")),r.push(createElement("button",{type:"button",title:"function"==typeof f?f(t.navUnit):f,disabled:h,"aria-pressed":p,className:m.join(" "),onClick:u},c||(d?createElement("span",{className:d}):"")))}}if(r.length>1){var v=a&&n.getClass("buttonGroup")||"";return createElement.apply(void 0,__spreadArray(["div",{className:v}],r))}return r[0]},t}(BaseComponent),Toolbar=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.model,a=n.extraClassName,o=!1,i=r.sectionWidgets,l=i.center;return i.left?(o=!0,e=i.left):e=i.start,i.right?(o=!0,t=i.right):t=i.end,createElement("div",{className:[a||"","fc-toolbar",o?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",e||[]),this.renderSection("center",l||[]),this.renderSection("end",t||[]))},t.prototype.renderSection=function(e,t){var n=this.props;return createElement(ToolbarSection,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})},t}(BaseComponent),ViewContainer=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={availableWidth:null},t.handleEl=function(e){t.el=e,setRef(t.props.elRef,e),t.updateAvailableWidth()},t.handleResize=function(){t.updateAvailableWidth()},t}return __extends(t,e),t.prototype.render=function(){var e=this.props,t=this.state,n=e.aspectRatio,r=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],a="",o="";return n?null!==t.availableWidth?a=t.availableWidth/n:o=1/n*100+"%":a=e.height||"",createElement("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(" "),style:{height:a,paddingBottom:o}},e.children)},t.prototype.componentDidMount=function(){this.context.addResizeHandler(this.handleResize)},t.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleResize)},t.prototype.updateAvailableWidth=function(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})},t}(BaseComponent),EventClicking=function(e){function t(t){var n=e.call(this,t)||this;return n.handleSegClick=function(e,t){var r=n.component,a=r.context,o=getElSeg(t);if(o&&r.isValidSegDownEl(e.target)){var i=elementClosest(e.target,".fc-event-forced-url"),l=i?i.querySelector("a[href]").href:"";a.emitter.trigger("eventClick",{el:t,event:new EventApi(r.context,o.eventRange.def,o.eventRange.instance),jsEvent:e,view:a.viewApi}),l&&!e.defaultPrevented&&(window.location.href=l)}},n.destroy=listenBySelector(t.el,"click",".fc-event",n.handleSegClick),n}return __extends(t,e),t}(Interaction),EventHovering=function(e){function t(t){var n=e.call(this,t)||this;return n.handleEventElRemove=function(e){e===n.currentSegEl&&n.handleSegLeave(null,n.currentSegEl)},n.handleSegEnter=function(e,t){getElSeg(t)&&(n.currentSegEl=t,n.triggerEvent("eventMouseEnter",e,t))},n.handleSegLeave=function(e,t){n.currentSegEl&&(n.currentSegEl=null,n.triggerEvent("eventMouseLeave",e,t))},n.removeHoverListeners=listenToHoverBySelector(t.el,".fc-event",n.handleSegEnter,n.handleSegLeave),n}return __extends(t,e),t.prototype.destroy=function(){this.removeHoverListeners()},t.prototype.triggerEvent=function(e,t,n){var r=this.component,a=r.context,o=getElSeg(n);t&&!r.isValidSegDownEl(t.target)||a.emitter.trigger(e,{el:n,event:new EventApi(a,o.eventRange.def,o.eventRange.instance),jsEvent:t,view:a.viewApi})},t}(Interaction),CalendarContent=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildViewContext=memoize(buildViewContext),t.buildViewPropTransformers=memoize(buildViewPropTransformers),t.buildToolbarProps=memoize(buildToolbarProps),t.headerRef=createRef(),t.footerRef=createRef(),t.interactionsStore={},t.state={viewLabelId:getUniqueDomId()},t.registerInteractiveComponent=function(e,n){var r=parseInteractionSettings(e,n),a=[EventClicking,EventHovering].concat(t.props.pluginHooks.componentInteractions).map((function(e){return new e(r)}));t.interactionsStore[e.uid]=a,interactionSettingsStore[e.uid]=r},t.unregisterInteractiveComponent=function(e){var n=t.interactionsStore[e.uid];if(n){for(var r=0,a=n;r<a.length;r++){a[r].destroy()}delete t.interactionsStore[e.uid]}delete interactionSettingsStore[e.uid]},t.resizeRunner=new DelayedRunner((function(){t.props.emitter.trigger("_resize",!0),t.props.emitter.trigger("windowResize",{view:t.props.viewApi})})),t.handleWindowResize=function(e){var n=t.props.options;n.handleWindowResize&&e.target===window&&t.resizeRunner.request(n.windowResizeDelay)},t}return __extends(t,e),t.prototype.render=function(){var e,t=this.props,n=t.toolbarConfig,r=t.options,a=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,getNow(t.options.now,t.dateEnv),t.viewTitle),o=!1,i="";t.isHeightAuto||t.forPrint?i="":null!=r.height?o=!0:null!=r.contentHeight?i=r.contentHeight:e=Math.max(r.aspectRatio,.5);var l=this.buildViewContext(t.viewSpec,t.viewApi,t.options,t.dateProfileGenerator,t.dateEnv,t.theme,t.pluginHooks,t.dispatch,t.getCurrentData,t.emitter,t.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),s=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return createElement(ViewContextType.Provider,{value:l},n.header&&createElement(Toolbar,__assign$1({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:s},a)),createElement(ViewContainer,{liquid:o,height:i,aspectRatio:e,labeledById:s},this.renderView(t),this.buildAppendContent()),n.footer&&createElement(Toolbar,__assign$1({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},a)))},t.prototype.componentDidMount=function(){var e=this.props;this.calendarInteractions=e.pluginHooks.calendarInteractions.map((function(t){return new t(e)})),window.addEventListener("resize",this.handleWindowResize);var t=e.pluginHooks.propSetHandlers;for(var n in t)t[n](e[n],e)},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.pluginHooks.propSetHandlers;for(var r in n)t[r]!==e[r]&&n[r](t[r],t)},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(var e=0,t=this.calendarInteractions;e<t.length;e++){t[e].destroy()}this.props.emitter.trigger("_unmount")},t.prototype.buildAppendContent=function(){var e=this.props,t=e.pluginHooks.viewContainerAppends.map((function(t){return t(e)}));return createElement.apply(void 0,__spreadArray([Fragment,{}],t))},t.prototype.renderView=function(e){for(var t=e.pluginHooks,n=e.viewSpec,r={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},a=0,o=this.buildViewPropTransformers(t.viewPropsTransformers);a<o.length;a++){var i=o[a];__assign$1(r,i.transform(r,e))}var l=n.component;return createElement(l,__assign$1({},r))},t}(PureComponent);function buildToolbarProps(e,t,n,r,a,o){var i=n.build(a,void 0,!1),l=n.buildPrev(t,r,!1),s=n.buildNext(t,r,!1);return{title:o,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:i.isValid&&!rangeContainsMarker(t.currentRange,a),isPrevEnabled:l.isValid,isNextEnabled:s.isValid}}function buildViewPropTransformers(e){return e.map((function(e){return new e}))}var CalendarRoot=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={forPrint:!1},t.handleBeforePrint=function(){t.setState({forPrint:!0})},t.handleAfterPrint=function(){t.setState({forPrint:!1})},t}return __extends(t,e),t.prototype.render=function(){var e=this.props,t=e.options,n=this.state.forPrint,r=n||"auto"===t.height||"auto"===t.contentHeight,a=r||null==t.height?"":t.height,o=["fc",n?"fc-media-print":"fc-media-screen","fc-direction-"+t.direction,e.theme.getClass("root")];return getCanVGrowWithinCell()||o.push("fc-liquid-hack"),e.children(o,a,r,n)},t.prototype.componentDidMount=function(){var e=this.props.emitter;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)},t.prototype.componentWillUnmount=function(){var e=this.props.emitter;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)},t}(BaseComponent);function computeFallbackHeaderFormat(e,t){return createFormatter(!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}var CLASS_NAME="fc-col-header-cell";function renderInner$1(e){return e.text}var TableDateCell=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.render=function(){var e=this.context,t=e.dateEnv,n=e.options,r=e.theme,a=e.viewApi,o=this.props,i=o.date,l=o.dateProfile,s=getDateMeta(i,o.todayRange,null,l),u=[CLASS_NAME].concat(getDayClassNames(s,r)),c=t.format(i,o.dayHeaderFormat),d=!s.isDisabled&&o.colCnt>1?buildNavLinkAttrs(this.context,i):{},f=__assign$1(__assign$1(__assign$1({date:t.toDate(i),view:a},o.extraHookProps),{text:c}),s);return createElement(RenderHook,{hookProps:f,classNames:n.dayHeaderClassNames,content:n.dayHeaderContent,defaultContent:renderInner$1,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},(function(e,t,n,r){return createElement("th",__assign$1({ref:e,role:"columnheader",className:u.concat(t).join(" "),"data-date":s.isDisabled?void 0:formatDayString(i),colSpan:o.colSpan},o.extraDataAttrs),createElement("div",{className:"fc-scrollgrid-sync-inner"},!s.isDisabled&&createElement("a",__assign$1({ref:n,className:["fc-col-header-cell-cushion",o.isSticky?"fc-sticky":""].join(" ")},d),r)))}))},t}(BaseComponent),WEEKDAY_FORMAT=createFormatter({weekday:"long"}),TableDowCell=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.dateEnv,r=t.theme,a=t.viewApi,o=t.options,i=addDays(new Date(2592e5),e.dow),l={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},s=[CLASS_NAME].concat(getDayClassNames(l,r),e.extraClassNames||[]),u=n.format(i,e.dayHeaderFormat),c=__assign$1(__assign$1(__assign$1(__assign$1({date:i},l),{view:a}),e.extraHookProps),{text:u});return createElement(RenderHook,{hookProps:c,classNames:o.dayHeaderClassNames,content:o.dayHeaderContent,defaultContent:renderInner$1,didMount:o.dayHeaderDidMount,willUnmount:o.dayHeaderWillUnmount},(function(t,r,a,o){return createElement("th",__assign$1({ref:t,role:"columnheader",className:s.concat(r).join(" "),colSpan:e.colSpan},e.extraDataAttrs),createElement("div",{className:"fc-scrollgrid-sync-inner"},createElement("a",{"aria-label":n.format(i,WEEKDAY_FORMAT),className:["fc-col-header-cell-cushion",e.isSticky?"fc-sticky":""].join(" "),ref:a},o)))}))},t}(BaseComponent),NowTimer=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.initialNowDate=getNow(n.options.now,n.dateEnv),r.initialNowQueriedMs=(new Date).valueOf(),r.state=r.computeTiming().currentState,r}return __extends(t,e),t.prototype.render=function(){var e=this.props,t=this.state;return e.children(t.nowDate,t.todayRange)},t.prototype.componentDidMount=function(){this.setTimeout()},t.prototype.componentDidUpdate=function(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())},t.prototype.componentWillUnmount=function(){this.clearTimeout()},t.prototype.computeTiming=function(){var e=this.props,t=this.context,n=addMs(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),r=t.dateEnv.startOf(n,e.unit),a=t.dateEnv.add(r,createDuration(1,e.unit)),o=a.valueOf()-n.valueOf();return o=Math.min(864e5,o),{currentState:{nowDate:r,todayRange:buildDayRange(r)},nextState:{nowDate:a,todayRange:buildDayRange(a)},waitMs:o}},t.prototype.setTimeout=function(){var e=this,t=this.computeTiming(),n=t.nextState,r=t.waitMs;this.timeoutId=setTimeout((function(){e.setState(n,(function(){e.setTimeout()}))}),r)},t.prototype.clearTimeout=function(){this.timeoutId&&clearTimeout(this.timeoutId)},t.contextType=ViewContextType,t}(Component);function buildDayRange(e){var t=startOfDay(e);return{start:t,end:addDays(t,1)}}var DayHeader=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.createDayHeaderFormatter=memoize(createDayHeaderFormatter),t}return __extends(t,e),t.prototype.render=function(){var e=this.context,t=this.props,n=t.dates,r=t.dateProfile,a=t.datesRepDistinctDays,o=t.renderIntro,i=this.createDayHeaderFormatter(e.options.dayHeaderFormat,a,n.length);return createElement(NowTimer,{unit:"day"},(function(e,t){return createElement("tr",{role:"row"},o&&o("day"),n.map((function(e){return a?createElement(TableDateCell,{key:e.toISOString(),date:e,dateProfile:r,todayRange:t,colCnt:n.length,dayHeaderFormat:i}):createElement(TableDowCell,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:i})})))}))},t}(BaseComponent);function createDayHeaderFormatter(e,t,n){return e||computeFallbackHeaderFormat(t,n)}var DaySeriesModel=function(){function e(e,t){for(var n=e.start,r=e.end,a=[],o=[],i=-1;n<r;)t.isHiddenDay(n)?a.push(i+.5):(i+=1,a.push(i),o.push(n)),n=addDays(n,1);this.dates=o,this.indices=a,this.cnt=o.length}return e.prototype.sliceRange=function(e){var t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(addDays(e.end,-1)),r=Math.max(0,t),a=Math.min(this.cnt-1,n);return(r=Math.ceil(r))<=(a=Math.floor(a))?{firstIndex:r,lastIndex:a,isStart:t===r,isEnd:n===a}:null},e.prototype.getDateDayIndex=function(e){var t=this.indices,n=Math.floor(diffDays(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]},e}(),DayTableModel=function(){function e(e,t){var n,r,a,o=e.dates;if(t){for(r=o[0].getUTCDay(),n=1;n<o.length&&o[n].getUTCDay()!==r;n+=1);a=Math.ceil(o.length/n)}else a=1,n=o.length;this.rowCnt=a,this.colCnt=n,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}return e.prototype.buildCells=function(){for(var e=[],t=0;t<this.rowCnt;t+=1){for(var n=[],r=0;r<this.colCnt;r+=1)n.push(this.buildCell(t,r));e.push(n)}return e},e.prototype.buildCell=function(e,t){var n=this.daySeries.dates[e*this.colCnt+t];return{key:n.toISOString(),date:n}},e.prototype.buildHeaderDates=function(){for(var e=[],t=0;t<this.colCnt;t+=1)e.push(this.cells[0][t].date);return e},e.prototype.sliceRange=function(e){var t=this.colCnt,n=this.daySeries.sliceRange(e),r=[];if(n)for(var a=n.firstIndex,o=n.lastIndex,i=a;i<=o;){var l=Math.floor(i/t),s=Math.min((l+1)*t,o+1);r.push({row:l,firstCol:i%t,lastCol:(s-1)%t,isStart:n.isStart&&i===a,isEnd:n.isEnd&&s-1===o}),i=s}return r},e}(),Slicer=function(){function e(){this.sliceBusinessHours=memoize(this._sliceBusinessHours),this.sliceDateSelection=memoize(this._sliceDateSpan),this.sliceEventStore=memoize(this._sliceEventStore),this.sliceEventDrag=memoize(this._sliceInteraction),this.sliceEventResize=memoize(this._sliceInteraction),this.forceDayIfListItem=!1}return e.prototype.sliceProps=function(e,t,n,r){for(var a=[],o=4;o<arguments.length;o++)a[o-4]=arguments[o];var i=e.eventUiBases,l=this.sliceEventStore.apply(this,__spreadArray([e.eventStore,i,t,n],a));return{dateSelectionSegs:this.sliceDateSelection.apply(this,__spreadArray([e.dateSelection,i,r],a)),businessHourSegs:this.sliceBusinessHours.apply(this,__spreadArray([e.businessHours,t,n,r],a)),fgEventSegs:l.fg,bgEventSegs:l.bg,eventDrag:this.sliceEventDrag.apply(this,__spreadArray([e.eventDrag,i,t,n],a)),eventResize:this.sliceEventResize.apply(this,__spreadArray([e.eventResize,i,t,n],a)),eventSelection:e.eventSelection}},e.prototype.sliceNowDate=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this._sliceDateSpan.apply(this,__spreadArray([{range:{start:e,end:addMs(e,1)},allDay:!1},{},t],n))},e.prototype._sliceBusinessHours=function(e,t,n,r){for(var a=[],o=4;o<arguments.length;o++)a[o-4]=arguments[o];return e?this._sliceEventStore.apply(this,__spreadArray([expandRecurring(e,computeActiveRange(t,Boolean(n)),r),{},t,n],a)).bg:[]},e.prototype._sliceEventStore=function(e,t,n,r){for(var a=[],o=4;o<arguments.length;o++)a[o-4]=arguments[o];if(e){var i=sliceEventStore(e,t,computeActiveRange(n,Boolean(r)),r);return{bg:this.sliceEventRanges(i.bg,a),fg:this.sliceEventRanges(i.fg,a)}}return{bg:[],fg:[]}},e.prototype._sliceInteraction=function(e,t,n,r){for(var a=[],o=4;o<arguments.length;o++)a[o-4]=arguments[o];if(!e)return null;var i=sliceEventStore(e.mutatedEvents,t,computeActiveRange(n,Boolean(r)),r);return{segs:this.sliceEventRanges(i.fg,a),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}},e.prototype._sliceDateSpan=function(e,t,n){for(var r=[],a=3;a<arguments.length;a++)r[a-3]=arguments[a];if(!e)return[];for(var o=fabricateEventRange(e,t,n),i=this.sliceRange.apply(this,__spreadArray([e.range],r)),l=0,s=i;l<s.length;l++){var u=s[l];u.eventRange=o}return i},e.prototype.sliceEventRanges=function(e,t){for(var n=[],r=0,a=e;r<a.length;r++){var o=a[r];n.push.apply(n,this.sliceEventRange(o,t))}return n},e.prototype.sliceEventRange=function(e,t){var n=e.range;this.forceDayIfListItem&&"list-item"===e.ui.display&&(n={start:n.start,end:addDays(n.start,1)});for(var r=this.sliceRange.apply(this,__spreadArray([n],t)),a=0,o=r;a<o.length;a++){var i=o[a];i.eventRange=e,i.isStart=e.isStart&&i.isStart,i.isEnd=e.isEnd&&i.isEnd}return r},e}();function computeActiveRange(e,t){var n=e.activeRange;return t?n:{start:addMs(n.start,e.slotMinTime.milliseconds),end:addMs(n.end,e.slotMaxTime.milliseconds-864e5)}}function isInteractionValid(e,t,n){var r=e.mutatedEvents.instances;for(var a in r)if(!rangeContainsRange(t.validRange,r[a].range))return!1;return isNewPropsValid({eventDrag:e},n)}function isDateSelectionValid(e,t,n){return!!rangeContainsRange(t.validRange,e.range)&&isNewPropsValid({dateSelection:e},n)}function isNewPropsValid(e,t){var n=t.getCurrentData(),r=__assign$1({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginHooks.isPropsValid||isPropsValid)(r,t)}function isPropsValid(e,t,n,r){return void 0===n&&(n={}),!(e.eventDrag&&!isInteractionPropsValid(e,t,n,r))&&!(e.dateSelection&&!isDateSelectionPropsValid(e,t,n,r))}function isInteractionPropsValid(e,t,n,r){var a=t.getCurrentData(),o=e.eventDrag,i=o.mutatedEvents,l=i.defs,s=i.instances,u=compileEventUis(l,o.isEvent?e.eventUiBases:{"":a.selectionConfig});r&&(u=mapHash(u,r));var c=excludeInstances(e.eventStore,o.affectedEvents.instances),d=c.defs,f=c.instances,p=compileEventUis(d,e.eventUiBases);for(var h in s){var m=s[h],v=m.range,g=u[m.defId],y=l[m.defId];if(!allConstraintsPass(g.constraints,v,c,e.businessHours,t))return!1;var b=t.options.eventOverlap,w="function"==typeof b?b:null;for(var S in f){var E=f[S];if(rangesIntersect(v,E.range)){if(!1===p[E.defId].overlap&&o.isEvent)return!1;if(!1===g.overlap)return!1;if(w&&!w(new EventApi(t,d[E.defId],E),new EventApi(t,y,m)))return!1}}for(var _=a.eventStore,k=0,T=g.allows;k<T.length;k++){var x=T[k],C=__assign$1(__assign$1({},n),{range:m.range,allDay:y.allDay}),D=_.defs[y.defId],R=_.instances[h],N=void 0;if(N=D?new EventApi(t,D,R):new EventApi(t,y),!x(buildDateSpanApiWithContext(C,t),N))return!1}}return!0}function isDateSelectionPropsValid(e,t,n,r){var a=e.eventStore,o=a.defs,i=a.instances,l=e.dateSelection,s=l.range,u=t.getCurrentData().selectionConfig;if(r&&(u=r(u)),!allConstraintsPass(u.constraints,s,a,e.businessHours,t))return!1;var c=t.options.selectOverlap,d="function"==typeof c?c:null;for(var f in i){var p=i[f];if(rangesIntersect(s,p.range)){if(!1===u.overlap)return!1;if(d&&!d(new EventApi(t,o[p.defId],p),null))return!1}}for(var h=0,m=u.allows;h<m.length;h++){if(!(0,m[h])(buildDateSpanApiWithContext(__assign$1(__assign$1({},n),l),t),null))return!1}return!0}function allConstraintsPass(e,t,n,r,a){for(var o=0,i=e;o<i.length;o++){if(!anyRangesContainRange(constraintToRanges(i[o],t,n,r,a),t))return!1}return!0}function constraintToRanges(e,t,n,r,a){return"businessHours"===e?eventStoreToRanges(expandRecurring(r,t,a)):"string"==typeof e?eventStoreToRanges(filterEventStoreDefs(n,(function(t){return t.groupId===e}))):"object"==typeof e&&e?eventStoreToRanges(expandRecurring(e,t,a)):[]}function eventStoreToRanges(e){var t=e.instances,n=[];for(var r in t)n.push(t[r].range);return n}function anyRangesContainRange(e,t){for(var n=0,r=e;n<r.length;n++){if(rangeContainsRange(r[n],t))return!0}return!1}var VISIBLE_HIDDEN_RE=/^(visible|hidden)$/,Scroller=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleEl=function(e){t.el=e,setRef(t.props.elRef,e)},t}return __extends(t,e),t.prototype.render=function(){var e=this.props,t=e.liquid,n=e.liquidIsAbsolute,r=t&&n,a=["fc-scroller"];return t&&(n?a.push("fc-scroller-liquid-absolute"):a.push("fc-scroller-liquid")),createElement("div",{ref:this.handleEl,className:a.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||"",right:r&&-(e.overcomeRight||0)||"",bottom:r&&-(e.overcomeBottom||0)||"",marginLeft:!r&&-(e.overcomeLeft||0)||"",marginRight:!r&&-(e.overcomeRight||0)||"",marginBottom:!r&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)},t.prototype.needsXScrolling=function(){if(VISIBLE_HIDDEN_RE.test(this.props.overflowX))return!1;for(var e=this.el,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),n=e.children,r=0;r<n.length;r+=1){if(n[r].getBoundingClientRect().width>t)return!0}return!1},t.prototype.needsYScrolling=function(){if(VISIBLE_HIDDEN_RE.test(this.props.overflowY))return!1;for(var e=this.el,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),n=e.children,r=0;r<n.length;r+=1){if(n[r].getBoundingClientRect().height>t)return!0}return!1},t.prototype.getXScrollbarWidth=function(){return VISIBLE_HIDDEN_RE.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight},t.prototype.getYScrollbarWidth=function(){return VISIBLE_HIDDEN_RE.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth},t}(BaseComponent),RefMap=function(){function e(e){var t=this;this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=function(e,n){var r=t,a=r.depths,o=r.currentMap,i=!1,l=!1;null!==e?(i=n in o,o[n]=e,a[n]=(a[n]||0)+1,l=!0):(a[n]-=1,a[n]||(delete o[n],delete t.callbackMap[n],i=!0)),t.masterCallback&&(i&&t.masterCallback(null,String(n)),l&&t.masterCallback(e,String(n)))}}return e.prototype.createRef=function(e){var t=this,n=this.callbackMap[e];return n||(n=this.callbackMap[e]=function(n){t.handleValue(n,String(e))}),n},e.prototype.collect=function(e,t,n){return collectFromHash(this.currentMap,e,t,n)},e.prototype.getAll=function(){return hashValuesToArray(this.currentMap)},e}();function computeShrinkWidth(e){for(var t=0,n=0,r=findElements(e,".fc-scrollgrid-shrink");n<r.length;n++){var a=r[n];t=Math.max(t,computeSmallestCellWidth(a))}return Math.ceil(t)}function getSectionHasLiquidHeight(e,t){return e.liquid&&t.liquid}function getAllowYScrolling(e,t){return null!=t.maxHeight||getSectionHasLiquidHeight(e,t)}function renderChunkContent(e,t,n,r){var a=n.expandRows;return"function"==typeof t.content?t.content(n):createElement("table",{role:"presentation",className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:a?n.clientHeight:""}},n.tableColGroupNode,createElement(r?"thead":"tbody",{role:"presentation"},"function"==typeof t.rowContent?t.rowContent(n):t.rowContent))}function isColPropsEqual(e,t){return isArraysEqual(e,t,isPropsEqual)}function renderMicroColGroup(e,t){for(var n=[],r=0,a=e;r<a.length;r++)for(var o=a[r],i=o.span||1,l=0;l<i;l+=1)n.push(createElement("col",{style:{width:"shrink"===o.width?sanitizeShrinkWidth(t):o.width||"",minWidth:o.minWidth||""}}));return createElement.apply(void 0,__spreadArray(["colgroup",{}],n))}function sanitizeShrinkWidth(e){return null==e?4:e}function hasShrinkWidth(e){for(var t=0,n=e;t<n.length;t++){if("shrink"===n[t].width)return!0}return!1}function getScrollGridClassNames(e,t){var n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}function getSectionClassNames(e,t){var n=["fc-scrollgrid-section","fc-scrollgrid-section-"+e.type,e.className];return t&&e.liquid&&null==e.maxHeight&&n.push("fc-scrollgrid-section-liquid"),e.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function renderScrollShim(e){return createElement("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function getStickyHeaderDates(e){var t=e.stickyHeaderDates;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}function getStickyFooterScrollbar(e){var t=e.stickyFooterScrollbar;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}var SimpleScrollGrid=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.processCols=memoize((function(e){return e}),isColPropsEqual),t.renderMicroColGroup=memoize(renderMicroColGroup),t.scrollerRefs=new RefMap,t.scrollerElRefs=new RefMap(t._handleScrollerEl.bind(t)),t.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},t.handleSizing=function(){t.safeSetState(__assign$1({shrinkWidth:t.computeShrinkWidth()},t.computeScrollerDims()))},t}return __extends(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.state,r=e.context,a=t.sections||[],o=this.processCols(t.cols),i=this.renderMicroColGroup(o,n.shrinkWidth),l=getScrollGridClassNames(t.liquid,r);t.collapsibleWidth&&l.push("fc-scrollgrid-collapsible");for(var s,u=a.length,c=0,d=[],f=[],p=[];c<u&&"header"===(s=a[c]).type;)d.push(this.renderSection(s,i,!0)),c+=1;for(;c<u&&"body"===(s=a[c]).type;)f.push(this.renderSection(s,i,!1)),c+=1;for(;c<u&&"footer"===(s=a[c]).type;)p.push(this.renderSection(s,i,!0)),c+=1;var h=!getCanVGrowWithinCell(),m={role:"rowgroup"};return createElement("table",{role:"grid",className:l.join(" "),style:{height:t.height}},Boolean(!h&&d.length)&&createElement.apply(void 0,__spreadArray(["thead",m],d)),Boolean(!h&&f.length)&&createElement.apply(void 0,__spreadArray(["tbody",m],f)),Boolean(!h&&p.length)&&createElement.apply(void 0,__spreadArray(["tfoot",m],p)),h&&createElement.apply(void 0,__spreadArray(__spreadArray(__spreadArray(["tbody",m],d),f),p)))},t.prototype.renderSection=function(e,t,n){return"outerContent"in e?createElement(Fragment,{key:e.key},e.outerContent):createElement("tr",{key:e.key,role:"presentation",className:getSectionClassNames(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk,n))},t.prototype.renderChunkTd=function(e,t,n,r){if("outerContent"in n)return n.outerContent;var a=this.props,o=this.state,i=o.forceYScrollbars,l=o.scrollerClientWidths,s=o.scrollerClientHeights,u=getAllowYScrolling(a,e),c=getSectionHasLiquidHeight(a,e),d=a.liquid?i?"scroll":u?"auto":"hidden":"visible",f=e.key,p=renderChunkContent(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:a.collapsibleWidth||void 0===l[f]?null:l[f],clientHeight:void 0!==s[f]?s[f]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:function(){}},r);return createElement(r?"th":"td",{ref:n.elRef,role:"presentation"},createElement("div",{className:"fc-scroller-harness"+(c?" fc-scroller-harness-liquid":"")},createElement(Scroller,{ref:this.scrollerRefs.createRef(f),elRef:this.scrollerElRefs.createRef(f),overflowY:d,overflowX:a.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:c,liquidIsAbsolute:!0},p)))},t.prototype._handleScrollerEl=function(e,t){var n=getSectionByKey(this.props.sections,t);n&&setRef(n.chunk.scrollerElRef,e)},t.prototype.componentDidMount=function(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)},t.prototype.componentDidUpdate=function(){this.handleSizing()},t.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleSizing)},t.prototype.computeShrinkWidth=function(){return hasShrinkWidth(this.props.cols)?computeShrinkWidth(this.scrollerElRefs.getAll()):0},t.prototype.computeScrollerDims=function(){var e=getScrollbarWidths(),t=this.scrollerRefs,n=this.scrollerElRefs,r=!1,a={},o={};for(var i in t.currentMap){var l=t.currentMap[i];if(l&&l.needsYScrolling()){r=!0;break}}for(var s=0,u=this.props.sections;s<u.length;s++){i=u[s].key;var c=n.currentMap[i];if(c){var d=c.parentNode;a[i]=Math.floor(d.getBoundingClientRect().width-(r?e.y:0)),o[i]=Math.floor(d.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:a,scrollerClientHeights:o}},t}(BaseComponent);function getSectionByKey(e,t){for(var n=0,r=e;n<r.length;n++){var a=r[n];if(a.key===t)return a}return null}SimpleScrollGrid.addStateEquality({scrollerClientWidths:isPropsEqual,scrollerClientHeights:isPropsEqual});var EventRoot=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.elRef=createRef(),t}return __extends(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r=e.seg,a=r.eventRange,o=a.ui,i={event:new EventApi(t,a.def,a.instance),view:t.viewApi,timeText:e.timeText,textColor:o.textColor,backgroundColor:o.backgroundColor,borderColor:o.borderColor,isDraggable:!e.disableDragging&&computeSegDraggable(r,t),isStartResizable:!e.disableResizing&&computeSegStartResizable(r,t),isEndResizable:!e.disableResizing&&computeSegEndResizable(r),isMirror:Boolean(e.isDragging||e.isResizing||e.isDateSelecting),isStart:Boolean(r.isStart),isEnd:Boolean(r.isEnd),isPast:Boolean(e.isPast),isFuture:Boolean(e.isFuture),isToday:Boolean(e.isToday),isSelected:Boolean(e.isSelected),isDragging:Boolean(e.isDragging),isResizing:Boolean(e.isResizing)},l=getEventClassNames(i).concat(o.classNames);return createElement(RenderHook,{hookProps:i,classNames:n.eventClassNames,content:n.eventContent,defaultContent:e.defaultContent,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount,elRef:this.elRef},(function(t,n,r,a){return e.children(t,l.concat(n),r,a,i)}))},t.prototype.componentDidMount=function(){setElSeg(this.elRef.current,this.props.seg)},t.prototype.componentDidUpdate=function(e){var t=this.props.seg;t!==e.seg&&setElSeg(this.elRef.current,t)},t}(BaseComponent),StandardEvent=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=e.seg,r=t.options.eventTimeFormat||e.defaultTimeFormat,a=buildSegTimeText(n,r,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return createElement(EventRoot,{seg:n,timeText:a,disableDragging:e.disableDragging,disableResizing:e.disableResizing,defaultContent:e.defaultContent||renderInnerContent$1$1,isDragging:e.isDragging,isResizing:e.isResizing,isDateSelecting:e.isDateSelecting,isSelected:e.isSelected,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},(function(r,a,o,i,l){return createElement("a",__assign$1({className:e.extraClassNames.concat(a).join(" "),style:{borderColor:l.borderColor,backgroundColor:l.backgroundColor},ref:r},getSegAnchorAttrs(n,t)),createElement("div",{className:"fc-event-main",ref:o,style:{color:l.textColor}},i),l.isStartResizable&&createElement("div",{className:"fc-event-resizer fc-event-resizer-start"}),l.isEndResizable&&createElement("div",{className:"fc-event-resizer fc-event-resizer-end"}))}))},t}(BaseComponent);function renderInnerContent$1$1(e){return createElement("div",{className:"fc-event-main-frame"},e.timeText&&createElement("div",{className:"fc-event-time"},e.timeText),createElement("div",{className:"fc-event-title-container"},createElement("div",{className:"fc-event-title fc-sticky"},e.event.title||createElement(Fragment,null," "))))}var NowIndicatorRoot=function(e){return createElement(ViewContextType.Consumer,null,(function(t){var n=t.options,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return createElement(RenderHook,{hookProps:r,classNames:n.nowIndicatorClassNames,content:n.nowIndicatorContent,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount},e.children)}))},DAY_NUM_FORMAT=createFormatter({day:"numeric"}),DayCellContent=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r=refineDayCellHookProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraProps:e.extraHookProps,viewApi:t.viewApi,dateEnv:t.dateEnv});return createElement(ContentHook,{hookProps:r,content:n.dayCellContent,defaultContent:e.defaultContent},e.children)},t}(BaseComponent);function refineDayCellHookProps(e){var t=e.date,n=e.dateEnv,r=getDateMeta(t,e.todayRange,null,e.dateProfile);return __assign$1(__assign$1(__assign$1({date:n.toDate(t),view:e.viewApi},r),{dayNumberText:e.showDayNumber?n.format(t,DAY_NUM_FORMAT):""}),e.extraProps)}var DayCellRoot=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.refineHookProps=memoizeObjArg(refineDayCellHookProps),t.normalizeClassNames=buildClassNameNormalizer(),t}return __extends(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r=this.refineHookProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraProps:e.extraHookProps,viewApi:t.viewApi,dateEnv:t.dateEnv}),a=getDayClassNames(r,t.theme).concat(r.isDisabled?[]:this.normalizeClassNames(n.dayCellClassNames,r)),o=r.isDisabled?{}:{"data-date":formatDayString(e.date)};return createElement(MountHook,{hookProps:r,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount,elRef:e.elRef},(function(t){return e.children(t,a,o,r.isDisabled)}))},t}(BaseComponent);function renderFill(e){return createElement("div",{className:"fc-"+e})}var BgEvent=function(e){return createElement(EventRoot,{defaultContent:renderInnerContent$3,seg:e.seg,timeText:"",disableDragging:!0,disableResizing:!0,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},(function(e,t,n,r,a){return createElement("div",{ref:e,className:["fc-bg-event"].concat(t).join(" "),style:{backgroundColor:a.backgroundColor}},r)}))};function renderInnerContent$3(e){return e.event.title&&createElement("div",{className:"fc-event-title"},e.event.title)}var WeekNumberRoot=function(e){return createElement(ViewContextType.Consumer,null,(function(t){var n=t.dateEnv,r=t.options,a=e.date,o=r.weekNumberFormat||e.defaultFormat,i=n.computeWeekNumber(a),l=n.format(a,o);return createElement(RenderHook,{hookProps:{num:i,text:l,date:a},classNames:r.weekNumberClassNames,content:r.weekNumberContent,defaultContent:renderInner,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},e.children)}))};function renderInner(e){return e.text}var PADDING_FROM_VIEWPORT=10,Popover=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={titleId:getUniqueDomId()},t.handleRootEl=function(e){t.rootEl=e,t.props.elRef&&setRef(t.props.elRef,e)},t.handleDocumentMouseDown=function(e){var n=getEventTargetViaRoot(e);t.rootEl.contains(n)||t.handleCloseClick()},t.handleDocumentKeyDown=function(e){"Escape"===e.key&&t.handleCloseClick()},t.handleCloseClick=function(){var e=t.props.onClose;e&&e()},t}return __extends(t,e),t.prototype.render=function(){var e=this.context,t=e.theme,n=e.options,r=this.props,a=this.state,o=["fc-popover",t.getClass("popover")].concat(r.extraClassNames||[]);return createPortal(createElement("div",__assign$1({id:r.id,className:o.join(" "),"aria-labelledby":a.titleId},r.extraAttrs,{ref:this.handleRootEl}),createElement("div",{className:"fc-popover-header "+t.getClass("popoverHeader")},createElement("span",{className:"fc-popover-title",id:a.titleId},r.title),createElement("span",{className:"fc-popover-close "+t.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),createElement("div",{className:"fc-popover-body "+t.getClass("popoverContent")},r.children)),r.parentEl)},t.prototype.componentDidMount=function(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()},t.prototype.componentWillUnmount=function(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)},t.prototype.updateSize=function(){var e=this.context.isRtl,t=this.props,n=t.alignmentEl,r=t.alignGridTop,a=this.rootEl,o=computeClippedClientRect(n);if(o){var i=a.getBoundingClientRect(),l=r?elementClosest(n,".fc-scrollgrid").getBoundingClientRect().top:o.top,s=e?o.right-i.width:o.left;l=Math.max(l,PADDING_FROM_VIEWPORT),s=Math.min(s,document.documentElement.clientWidth-PADDING_FROM_VIEWPORT-i.width),s=Math.max(s,PADDING_FROM_VIEWPORT);var u=a.offsetParent.getBoundingClientRect();applyStyle(a,{top:l-u.top,left:s-u.left})}},t}(BaseComponent),MorePopover=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleRootEl=function(e){t.rootEl=e,e?t.context.registerInteractiveComponent(t,{el:e,useEventCenter:!1}):t.context.unregisterInteractiveComponent(t)},t}return __extends(t,e),t.prototype.render=function(){var e=this.context,t=e.options,n=e.dateEnv,r=this.props,a=r.startDate,o=r.todayRange,i=r.dateProfile,l=n.format(a,t.dayPopoverFormat);return createElement(DayCellRoot,{date:a,dateProfile:i,todayRange:o,elRef:this.handleRootEl},(function(e,t,n){return createElement(Popover,{elRef:e,id:r.id,title:l,extraClassNames:["fc-more-popover"].concat(t),extraAttrs:n,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},createElement(DayCellContent,{date:a,dateProfile:i,todayRange:o},(function(e,t){return t&&createElement("div",{className:"fc-more-popover-misc",ref:e},t)})),r.children)}))},t.prototype.queryHit=function(e,t,n,r){var a=this.rootEl,o=this.props;return e>=0&&e<n&&t>=0&&t<r?{dateProfile:o.dateProfile,dateSpan:__assign$1({allDay:!0,range:{start:o.startDate,end:o.endDate}},o.extraDateSpan),dayEl:a,rect:{left:0,top:0,right:n,bottom:r},layer:1}:null},t}(DateComponent),MoreLinkRoot=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.linkElRef=createRef(),t.state={isPopoverOpen:!1,popoverId:getUniqueDomId()},t.handleClick=function(e){var n=t,r=n.props,a=n.context,o=a.options.moreLinkClick,i=computeRange(r).start;function l(e){var t=e.eventRange,n=t.def,r=t.instance,o=t.range;return{event:new EventApi(a,n,r),start:a.dateEnv.toDate(o.start),end:a.dateEnv.toDate(o.end),isStart:e.isStart,isEnd:e.isEnd}}"function"==typeof o&&(o=o({date:i,allDay:Boolean(r.allDayDate),allSegs:r.allSegs.map(l),hiddenSegs:r.hiddenSegs.map(l),jsEvent:e,view:a.viewApi})),o&&"popover"!==o?"string"==typeof o&&a.calendarApi.zoomTo(i,o):t.setState({isPopoverOpen:!0})},t.handlePopoverClose=function(){t.setState({isPopoverOpen:!1})},t}return __extends(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.state;return createElement(ViewContextType.Consumer,null,(function(r){var a=r.viewApi,o=r.options,i=r.calendarApi,l=o.moreLinkText,s=t.moreCnt,u=computeRange(t),c="function"==typeof l?l.call(i,s):"+"+s+" "+l,d=formatWithOrdinals(o.moreLinkHint,[s],c),f={num:s,shortText:"+"+s,text:c,view:a};return createElement(Fragment,null,Boolean(t.moreCnt)&&createElement(RenderHook,{elRef:e.linkElRef,hookProps:f,classNames:o.moreLinkClassNames,content:o.moreLinkContent,defaultContent:t.defaultContent||renderMoreLinkInner$1,didMount:o.moreLinkDidMount,willUnmount:o.moreLinkWillUnmount},(function(r,a,o,i){return t.children(r,["fc-more-link"].concat(a),o,i,e.handleClick,d,n.isPopoverOpen,n.isPopoverOpen?n.popoverId:"")})),n.isPopoverOpen&&createElement(MorePopover,{id:n.popoverId,startDate:u.start,endDate:u.end,dateProfile:t.dateProfile,todayRange:t.todayRange,extraDateSpan:t.extraDateSpan,parentEl:e.parentEl,alignmentEl:t.alignmentElRef.current,alignGridTop:t.alignGridTop,onClose:e.handlePopoverClose},t.popoverContent()))}))},t.prototype.componentDidMount=function(){this.updateParentEl()},t.prototype.componentDidUpdate=function(){this.updateParentEl()},t.prototype.updateParentEl=function(){this.linkElRef.current&&(this.parentEl=elementClosest(this.linkElRef.current,".fc-view-harness"))},t}(BaseComponent);function renderMoreLinkInner$1(e){return e.text}function computeRange(e){if(e.allDayDate)return{start:e.allDayDate,end:addDays(e.allDayDate,1)};var t=e.hiddenSegs;return{start:computeEarliestSegStart(t),end:computeLatestSegEnd(t)}}function computeEarliestSegStart(e){return e.reduce(pickEarliestStart).eventRange.range.start}function pickEarliestStart(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function computeLatestSegEnd(e){return e.reduce(pickLatestEnd).eventRange.range.end}function pickLatestEnd(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}var FullCalendar$1=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._calendarApi=new CalendarApi,t}return __extends(t,e),t.prototype.render=function(){return react.exports.createElement(CalendarDataProvider,{optionOverrides:this.props,calendarApi:this._calendarApi},(function(e){return react.exports.createElement(CalendarRoot,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},(function(t,n,r,a){return react.exports.createElement("div",{className:t.join(" "),style:{height:n}},react.exports.createElement(CalendarContent,__assign$1({isHeightAuto:r,forPrint:a},e)))}))}))},t.prototype.getApi=function(){return this._calendarApi},t}(react.exports.Component),TableView=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.headerElRef=createRef(),t}return __extends(t,e),t.prototype.renderSimpleLayout=function(e,t){var n=this.props,r=this.context,a=[],o=getStickyHeaderDates(r.options);return e&&a.push({type:"header",key:"header",isSticky:o,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),a.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}),createElement(ViewRoot,{viewSpec:r.viewSpec},(function(e,t){return createElement("div",{ref:e,className:["fc-daygrid"].concat(t).join(" ")},createElement(SimpleScrollGrid,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:a}))}))},t.prototype.renderHScrollLayout=function(e,t,n,r){var a=this.context.pluginHooks.scrollGridImpl;if(!a)throw new Error("No ScrollGrid implementation");var o=this.props,i=this.context,l=!o.forPrint&&getStickyHeaderDates(i.options),s=!o.forPrint&&getStickyFooterScrollbar(i.options),u=[];return e&&u.push({type:"header",key:"header",isSticky:l,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),u.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:t}]}),s&&u.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:renderScrollShim}]}),createElement(ViewRoot,{viewSpec:i.viewSpec},(function(e,t){return createElement("div",{ref:e,className:["fc-daygrid"].concat(t).join(" ")},createElement(a,{liquid:!o.isHeightAuto&&!o.forPrint,collapsibleWidth:o.forPrint,colGroups:[{cols:[{span:n,minWidth:r}]}],sections:u}))}))},t}(DateComponent);
|
|
57
57
|
/*!
|
|
58
58
|
FullCalendar v5.11.3
|
|
59
59
|
Docs & License: https://fullcalendar.io/
|
|
60
60
|
(c) 2022 Adam Shaw
|
|
61
|
-
*/function Zo(e,t){for(var n=[],r=0;r<t;r+=1)n[r]=[];for(var a=0,o=e;a<o.length;a++){var i=o[a];n[i.row].push(i)}return n}function Jo(e,t){for(var n=[],r=0;r<t;r+=1)n[r]=[];for(var a=0,o=e;a<o.length;a++){var i=o[a];n[i.firstCol].push(i)}return n}function ei(e,t){var n=[];if(e){for(i=0;i<t;i+=1)n[i]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(var r=0,a=e.segs;r<a.length;r++){var o=a[r];n[o.row].segs.push(o)}}else for(var i=0;i<t;i+=1)n[i]=null;return n}var ti=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t(r,e),r.prototype.render=function(){var e=this.props,t=nr(this.context,e.date);return O(Oo,{date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraHookProps:e.extraHookProps,defaultContent:ni},(function(r,a){return(a||e.forceDayTop)&&O("div",{className:"fc-daygrid-day-top",ref:r},O("a",n({id:e.dayNumberId,className:"fc-daygrid-day-number"},t),a||O(z,null," ")))}))},r}(kr);function ni(e){return e.dayNumberText}var ri=pt({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function ai(e){var t=e.eventRange.ui.display;return"list-item"===t||"auto"===t&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}var oi=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t(r,e),r.prototype.render=function(){var e=this.props;return O(Po,n({},e,{extraClassNames:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:ri,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))},r}(kr),ii=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t(r,e),r.prototype.render=function(){var e=this.props,t=this.context,r=t.options.eventTimeFormat||ri,a=sn(e.seg,r,t,!0,e.defaultDisplayEventEnd);return O(Ro,{seg:e.seg,timeText:a,defaultContent:li,isDragging:e.isDragging,isResizing:!1,isDateSelecting:!1,isSelected:e.isSelected,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},(function(r,a,o,i){return O("a",n({className:["fc-daygrid-event","fc-daygrid-dot-event"].concat(a).join(" "),ref:r},dn(e.seg,t)),i)}))},r}(kr);function li(e){return O(z,null,O("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&O("div",{className:"fc-event-time"},e.timeText),O("div",{className:"fc-event-title"},e.event.title||O(z,null," ")))}var si=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.compileSegs=Ze(ui),t}return t(r,e),r.prototype.render=function(){var e=this.props,t=this.compileSegs(e.singlePlacements),r=t.allSegs,a=t.invisibleSegs;return O(Bo,{dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:r,hiddenSegs:a,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:function(){var t=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return O(z,null,r.map((function(r){var a=r.eventRange.instance.instanceId;return O("div",{className:"fc-daygrid-event-harness",key:a,style:{visibility:t[a]?"hidden":""}},ai(r)?O(ii,n({seg:r,isDragging:!1,isSelected:a===e.eventSelection,defaultDisplayEventEnd:!1},un(r,e.todayRange))):O(oi,n({seg:r,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:a===e.eventSelection,defaultDisplayEventEnd:!1},un(r,e.todayRange))))})))}},(function(e,t,r,a,o,i,l,s){return O("a",n({ref:e,className:["fc-daygrid-more-link"].concat(t).join(" "),title:i,"aria-expanded":l,"aria-controls":s},J(o)),a)}))},r}(kr);function ui(e){for(var t=[],n=[],r=0,a=e;r<a.length;r++){var o=a[r];t.push(o.seg),o.isVisible||n.push(o.seg)}return{allSegs:t,invisibleSegs:n}}var ci=pt({week:"narrow"}),di=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=L(),t.state={dayNumberId:K()},t.handleRootEl=function(e){Er(t.rootElRef,e),Er(t.props.elRef,e)},t}return t(r,e),r.prototype.render=function(){var e=this,t=e.context,r=e.props,a=e.state,o=e.rootElRef,i=r.date,l=r.dateProfile,s=nr(t,i,"week");return O(zo,{date:i,dateProfile:l,todayRange:r.todayRange,showDayNumber:r.showDayNumber,extraHookProps:r.extraHookProps,elRef:this.handleRootEl},(function(e,t,u,c){return O("td",n({ref:e,role:"gridcell",className:["fc-daygrid-day"].concat(t,r.extraClassNames||[]).join(" ")},u,r.extraDataAttrs,r.showDayNumber?{"aria-labelledby":a.dayNumberId}:{}),O("div",{className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",ref:r.innerElRef},r.showWeekNumber&&O(jo,{date:i,defaultFormat:ci},(function(e,t,r,a){return O("a",n({ref:e,className:["fc-daygrid-week-number"].concat(t).join(" ")},s),a)})),!c&&O(ti,{date:i,dateProfile:l,showDayNumber:r.showDayNumber,dayNumberId:a.dayNumberId,forceDayTop:r.forceDayTop,todayRange:r.todayRange,extraHookProps:r.extraHookProps}),O("div",{className:"fc-daygrid-day-events",ref:r.fgContentElRef},r.fgContent,O("div",{className:"fc-daygrid-day-bottom",style:{marginTop:r.moreMarginTop}},O(si,{allDayDate:i,singlePlacements:r.singlePlacements,moreCnt:r.moreCnt,alignmentElRef:o,alignGridTop:!r.showDayNumber,extraDateSpan:r.extraDateSpan,dateProfile:r.dateProfile,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,todayRange:r.todayRange}))),O("div",{className:"fc-daygrid-day-bg"},r.bgContent)))}))},r}(Tr);function fi(e,t,n,r,a,o,i){var l=new hi;l.allowReslicing=!0,l.strictOrder=r,!0===t||!0===n?(l.maxCoord=o,l.hiddenConsumes=!0):"number"==typeof t?l.maxStackCnt=t:"number"==typeof n&&(l.maxStackCnt=n,l.hiddenConsumes=!0);for(var s=[],u=[],c=0;c<e.length;c+=1){var d=a[(T=e[c]).eventRange.instance.instanceId];null!=d?s.push({index:c,thickness:d,span:{start:T.firstCol,end:T.lastCol+1}}):u.push(T)}for(var f=l.addSegs(s),p=function(e,t,n){for(var r=function(e,t){for(var n=[],r=0;r<t;r+=1)n.push([]);for(var a=0,o=e;a<o.length;a++){var i=o[a];for(r=i.span.start;r<i.span.end;r+=1)n[r].push(i)}return n}(e,n.length),a=[],o=[],i=[],l=0;l<n.length;l+=1){for(var s=r[l],u=[],c=0,d=0,f=0,p=s;f<p.length;f++){var h=t[(y=p[f]).index];u.push({seg:pi(h,l,l+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:y.levelCoord,marginTop:y.levelCoord-c}),c=y.levelCoord+y.thickness}var v=[];c=0,d=0;for(var m=0,g=s;m<g.length;m++){h=t[(y=g[m]).index];var y,b=y.span.end-y.span.start>1,w=y.span.start===l;d+=y.levelCoord-c,c=y.levelCoord+y.thickness,b?(d+=y.thickness,w&&v.push({seg:pi(h,y.span.start,y.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:y.levelCoord,marginTop:0})):w&&(v.push({seg:pi(h,y.span.start,y.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:y.levelCoord,marginTop:d}),d=0)}a.push(u),o.push(v),i.push(d)}return{singleColPlacements:a,multiColPlacements:o,leftoverMargins:i}}(l.toRects(),e,i),h=p.singleColPlacements,v=p.multiColPlacements,m=p.leftoverMargins,g=[],y=[],b=0,w=u;b<w.length;b++){v[(T=w[b]).firstCol].push({seg:T,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(var k=T.firstCol;k<=T.lastCol;k+=1)h[k].push({seg:pi(T,k,k+1,i),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(k=0;k<i.length;k+=1)g.push(0);for(var S=0,x=f;S<x.length;S++){var E=x[S],T=e[E.index],_=E.span;v[_.start].push({seg:pi(T,_.start,_.end,i),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(k=_.start;k<_.end;k+=1)g[k]+=1,h[k].push({seg:pi(T,k,k+1,i),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(k=0;k<i.length;k+=1)y.push(m[k]);return{singleColPlacements:h,multiColPlacements:v,moreCnts:g,moreMarginTops:y}}function pi(e,t,r,a){if(e.firstCol===t&&e.lastCol===r-1)return e;var o=e.eventRange,i=o.range,l=Yt(i,{start:a[t].date,end:pe(a[r-1].date,1)});return n(n({},e),{firstCol:t,lastCol:r-1,eventRange:{def:o.def,ui:n(n({},o.ui),{durationEditable:!1}),instance:o.instance,range:l},isStart:e.isStart&&l.start.valueOf()===i.start.valueOf(),isEnd:e.isEnd&&l.end.valueOf()===i.end.valueOf()})}var hi=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.hiddenConsumes=!1,t.forceHidden={},t}return t(r,e),r.prototype.addSegs=function(t){for(var n=this,r=e.prototype.addSegs.call(this,t),a=this.entriesByLevel,o=function(e){return!n.forceHidden[Pa(e)]},i=0;i<a.length;i+=1)a[i]=a[i].filter(o);return r},r.prototype.handleInvalidInsertion=function(t,r,a){var o=this.entriesByLevel,i=this.forceHidden,l=t.touchingEntry,s=t.touchingLevel,u=t.touchingLateral;if(this.hiddenConsumes&&l){var c=Pa(l);if(!i[c])if(this.allowReslicing){var d=n(n({},l),{span:Na(l.span,r.span)});i[Pa(d)]=!0,o[s][u]=d,this.splitEntry(l,r,a)}else i[c]=!0,a.push(l)}return e.prototype.handleInvalidInsertion.call(this,t,r,a)},r}(Da),vi=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.cellElRefs=new yo,t.frameElRefs=new yo,t.fgElRefs=new yo,t.segHarnessRefs=new yo,t.rootElRef=L(),t.state={framePositions:null,maxContentHeight:null,eventInstanceHeights:{}},t}return t(r,e),r.prototype.render=function(){var e=this,t=this,n=t.props,r=t.state,a=t.context.options,o=n.cells.length,i=Jo(n.businessHourSegs,o),l=Jo(n.bgEventSegs,o),s=Jo(this.getHighlightSegs(),o),u=Jo(this.getMirrorSegs(),o),c=fi(nn(n.fgEventSegs,a.eventOrder),n.dayMaxEvents,n.dayMaxEventRows,a.eventOrderStrict,r.eventInstanceHeights,r.maxContentHeight,n.cells),d=c.singleColPlacements,f=c.multiColPlacements,p=c.moreCnts,h=c.moreMarginTops,v=n.eventDrag&&n.eventDrag.affectedInstances||n.eventResize&&n.eventResize.affectedInstances||{};return O("tr",{ref:this.rootElRef,role:"row"},n.renderIntro&&n.renderIntro(),n.cells.map((function(t,r){var a=e.renderFgSegs(r,n.forPrint?d[r]:f[r],n.todayRange,v),o=e.renderFgSegs(r,function(e,t){if(!e.length)return[];var n=function(e){for(var t={},n=0,r=e;n<r.length;n++)for(var a=0,o=r[n];a<o.length;a++){var i=o[a];t[i.seg.eventRange.instance.instanceId]=i.absoluteTop}return t}(t);return e.map((function(e){return{seg:e,isVisible:!0,isAbsolute:!0,absoluteTop:n[e.eventRange.instance.instanceId],marginTop:0}}))}(u[r],f),n.todayRange,{},Boolean(n.eventDrag),Boolean(n.eventResize),!1);return O(di,{key:t.key,elRef:e.cellElRefs.createRef(t.key),innerElRef:e.frameElRefs.createRef(t.key),dateProfile:n.dateProfile,date:t.date,showDayNumber:n.showDayNumbers,showWeekNumber:n.showWeekNumbers&&0===r,forceDayTop:n.showWeekNumbers,todayRange:n.todayRange,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,extraHookProps:t.extraHookProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,moreCnt:p[r],moreMarginTop:h[r],singlePlacements:d[r],fgContentElRef:e.fgElRefs.createRef(t.key),fgContent:O(z,null,O(z,null,a),O(z,null,o)),bgContent:O(z,null,e.renderFillSegs(s[r],"highlight"),e.renderFillSegs(i[r],"non-business"),e.renderFillSegs(l[r],"bg-event"))})})))},r.prototype.componentDidMount=function(){this.updateSizing(!0)},r.prototype.componentDidUpdate=function(e,t){var n=this.props;this.updateSizing(!Me(e,n))},r.prototype.getHighlightSegs=function(){var e=this.props;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs},r.prototype.getMirrorSegs=function(){var e=this.props;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]},r.prototype.renderFgSegs=function(e,t,r,a,o,i,l){var s=this.context,u=this.props.eventSelection,c=this.state.framePositions,d=1===this.props.cells.length,f=o||i||l,p=[];if(c)for(var h=0,v=t;h<v.length;h++){var m=v[h],g=m.seg,y=g.eventRange.instance.instanceId,b=y+":"+e,w=m.isVisible&&!a[y],k=m.isAbsolute,S="",x="";k&&(s.isRtl?(x=0,S=c.lefts[g.lastCol]-c.lefts[g.firstCol]):(S=0,x=c.rights[g.firstCol]-c.rights[g.lastCol])),p.push(O("div",{className:"fc-daygrid-event-harness"+(k?" fc-daygrid-event-harness-abs":""),key:b,ref:f?null:this.segHarnessRefs.createRef(b),style:{visibility:w?"":"hidden",marginTop:k?"":m.marginTop,top:k?m.absoluteTop:"",left:S,right:x}},ai(g)?O(ii,n({seg:g,isDragging:o,isSelected:y===u,defaultDisplayEventEnd:d},un(g,r))):O(oi,n({seg:g,isDragging:o,isResizing:i,isDateSelecting:l,isSelected:y===u,defaultDisplayEventEnd:d},un(g,r)))))}return p},r.prototype.renderFillSegs=function(e,t){var r=this.context.isRtl,a=this.props.todayRange,i=this.state.framePositions,l=[];if(i)for(var s=0,u=e;s<u.length;s++){var c=u[s],d=r?{right:0,left:i.lefts[c.lastCol]-i.lefts[c.firstCol]}:{left:0,right:i.rights[c.firstCol]-i.rights[c.lastCol]};l.push(O("div",{key:cn(c.eventRange),className:"fc-daygrid-bg-harness",style:d},"bg-event"===t?O(Fo,n({seg:c},un(c,a))):Ao(t)))}return O.apply(void 0,o([z,{}],l))},r.prototype.updateSizing=function(e){var t=this.props,r=this.frameElRefs;if(!t.forPrint&&null!==t.clientWidth){if(e){var a=t.cells.map((function(e){return r.currentMap[e.key]}));if(a.length){var o=this.rootElRef.current;this.setState({framePositions:new fr(o,a,!0,!1)})}}var i=this.state.eventInstanceHeights,l=this.queryEventInstanceHeights(),s=!0===t.dayMaxEvents||!0===t.dayMaxEventRows;this.safeSetState({eventInstanceHeights:n(n({},i),l),maxContentHeight:s?this.computeMaxContentHeight():null})}},r.prototype.queryEventInstanceHeights=function(){var e=this.segHarnessRefs.currentMap,t={};for(var n in e){var r=Math.round(e[n].getBoundingClientRect().height),a=n.split(":")[0];t[a]=Math.max(t[a]||0,r)}return t},r.prototype.computeMaxContentHeight=function(){var e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],n=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-n.getBoundingClientRect().top},r.prototype.getCellEls=function(){var e=this.cellElRefs.currentMap;return this.props.cells.map((function(t){return e[t.key]}))},r}(Tr);vi.addStateEquality({eventInstanceHeights:Me});var mi=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.splitBusinessHourSegs=Ze(Zo),t.splitBgEventSegs=Ze(Zo),t.splitFgEventSegs=Ze(Zo),t.splitDateSelectionSegs=Ze(Zo),t.splitEventDrag=Ze(ei),t.splitEventResize=Ze(ei),t.rowRefs=new yo,t.handleRootEl=function(e){t.rootEl=e,e?t.context.registerInteractiveComponent(t,{el:e,isHitComboAllowed:t.props.isHitComboAllowed}):t.context.unregisterInteractiveComponent(t)},t}return t(r,e),r.prototype.render=function(){var e=this,t=this.props,n=t.dateProfile,r=t.dayMaxEventRows,a=t.dayMaxEvents,o=t.expandRows,i=t.cells.length,l=this.splitBusinessHourSegs(t.businessHourSegs,i),s=this.splitBgEventSegs(t.bgEventSegs,i),u=this.splitFgEventSegs(t.fgEventSegs,i),c=this.splitDateSelectionSegs(t.dateSelectionSegs,i),d=this.splitEventDrag(t.eventDrag,i),f=this.splitEventResize(t.eventResize,i),p=!0===a||!0===r;return p&&!o&&(p=!1,r=null,a=null),O("div",{className:["fc-daygrid-body",p?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",o?"":"fc-daygrid-body-natural"].join(" "),ref:this.handleRootEl,style:{width:t.clientWidth,minWidth:t.tableMinWidth}},O(eo,{unit:"day"},(function(p,h){return O(z,null,O("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:t.clientWidth,minWidth:t.tableMinWidth,height:o?t.clientHeight:""}},t.colGroupNode,O("tbody",{role:"presentation"},t.cells.map((function(o,p){return O(vi,{ref:e.rowRefs.createRef(p),key:o.length?o[0].date.toISOString():p,showDayNumbers:i>1,showWeekNumbers:t.showWeekNumbers,todayRange:h,dateProfile:n,cells:o,renderIntro:t.renderRowIntro,businessHourSegs:l[p],eventSelection:t.eventSelection,bgEventSegs:s[p].filter(gi),fgEventSegs:u[p],dateSelectionSegs:c[p],eventDrag:d[p],eventResize:f[p],dayMaxEvents:a,dayMaxEventRows:r,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:t.forPrint})})))))})))},r.prototype.prepareHits=function(){this.rowPositions=new fr(this.rootEl,this.rowRefs.collect().map((function(e){return e.getCellEls()[0]})),!1,!0),this.colPositions=new fr(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)},r.prototype.queryHit=function(e,t){var r=this.colPositions,a=this.rowPositions,o=r.leftToIndex(e),i=a.topToIndex(t);if(null!=i&&null!=o){var l=this.props.cells[i][o];return{dateProfile:this.props.dateProfile,dateSpan:n({range:this.getCellRange(i,o),allDay:!0},l.extraDateSpan),dayEl:this.getCellEl(i,o),rect:{left:r.lefts[o],right:r.rights[o],top:a.tops[i],bottom:a.bottoms[i]},layer:0}}return null},r.prototype.getCellEl=function(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]},r.prototype.getCellRange=function(e,t){var n=this.props.cells[e][t].date;return{start:n,end:pe(n,1)}},r}(Tr);function gi(e){return e.eventRange.def.allDay}var yi=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.forceDayIfListItem=!0,t}return t(n,e),n.prototype.sliceRange=function(e,t){return t.sliceRange(e)},n}(io),bi=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.slicer=new yi,t.tableRef=L(),t}return t(r,e),r.prototype.render=function(){var e=this.props,t=this.context;return O(mi,n({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))},r}(Tr);function wi(e,t){var n=new ao(e.renderRange,t);return new oo(n,/year|month|week/.test(e.currentRangeUnit))}var ki=_r({initialView:"dayGridMonth",views:{dayGrid:{component:function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDayTableModel=Ze(wi),t.headerRef=L(),t.tableRef=L(),t}return t(n,e),n.prototype.render=function(){var e=this,t=this.context,n=t.options,r=t.dateProfileGenerator,a=this.props,o=this.buildDayTableModel(a.dateProfile,r),i=n.dayHeaders&&O(no,{ref:this.headerRef,dateProfile:a.dateProfile,dates:o.headerDates,datesRepDistinctDays:1===o.rowCnt}),l=function(t){return O(bi,{ref:e.tableRef,dateProfile:a.dateProfile,dayTableModel:o,businessHours:a.businessHours,dateSelection:a.dateSelection,eventStore:a.eventStore,eventUiBases:a.eventUiBases,eventSelection:a.eventSelection,eventDrag:a.eventDrag,eventResize:a.eventResize,nextDayThreshold:n.nextDayThreshold,colGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,dayMaxEvents:n.dayMaxEvents,dayMaxEventRows:n.dayMaxEventRows,showWeekNumbers:n.weekNumbers,expandRows:!a.isHeightAuto,headerAlignElRef:e.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:a.forPrint})};return n.dayMinWidth?this.renderHScrollLayout(i,l,o.colCnt,n.dayMinWidth):this.renderSimpleLayout(i,l)},n}(Xo),dateProfileGeneratorClass:function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n.prototype.buildRenderRange=function(t,n,r){var a,o=this.props.dateEnv,i=e.prototype.buildRenderRange.call(this,t,n,r),l=i.start,s=i.end;(/^(year|month)$/.test(n)&&(l=o.startOfWeek(l),(a=o.startOfWeek(s)).valueOf()!==s.valueOf()&&(s=fe(a,1))),this.props.monthMode&&this.props.fixedWeekCount)&&(s=fe(s,6-Math.ceil(ve(l,s)/7)));return{start:l,end:s}},n}(Wr)},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}}),Si=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n.prototype.getKeyInfo=function(){return{allDay:{},timed:{}}},n.prototype.getKeysForDateSpan=function(e){return e.allDay?["allDay"]:["timed"]},n.prototype.getKeysForEventDef=function(e){return e.allDay?"background"===(t=e).ui.display||"inverse-background"===t.ui.display?["timed","allDay"]:["allDay"]:["timed"];var t},n}(Qn),xi=pt({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function Ei(e){var t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return O(yr.Consumer,null,(function(n){if(!e.isLabeled)return O("td",{className:t.join(" "),"data-time":e.isoTimeStr});var r=n.dateEnv,a=n.options,o=n.viewApi,i=null==a.slotLabelFormat?xi:Array.isArray(a.slotLabelFormat)?pt(a.slotLabelFormat[0]):pt(a.slotLabelFormat),l={level:0,time:e.time,date:r.toDate(e.date),view:o,text:r.format(e.date,i)};return O(Pr,{hookProps:l,classNames:a.slotLabelClassNames,content:a.slotLabelContent,defaultContent:Ti,didMount:a.slotLabelDidMount,willUnmount:a.slotLabelWillUnmount},(function(n,r,a,o){return O("td",{ref:n,className:t.concat(r).join(" "),"data-time":e.isoTimeStr},O("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},O("div",{className:"fc-timegrid-slot-label-cushion fc-scrollgrid-shrink-cushion",ref:a},o)))}))}))}function Ti(e){return e.text}var _i=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t(r,e),r.prototype.render=function(){return this.props.slatMetas.map((function(e){return O("tr",{key:e.key},O(Ei,n({},e)))}))},r}(kr),Ci=pt({week:"short"}),Di=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.allDaySplitter=new Si,t.headerElRef=L(),t.rootElRef=L(),t.scrollerElRef=L(),t.state={slatCoords:null},t.handleScrollTopRequest=function(e){var n=t.scrollerElRef.current;n&&(n.scrollTop=e)},t.renderHeadAxis=function(e,r){void 0===r&&(r="");var a=t.context.options,o=t.props.dateProfile.renderRange,i=1===ve(o.start,o.end)?nr(t.context,o.start,"week"):{};return a.weekNumbers&&"day"===e?O(jo,{date:o.start,defaultFormat:Ci},(function(e,t,a,o){return O("th",{ref:e,"aria-hidden":!0,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(t).join(" ")},O("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame fc-timegrid-axis-frame-liquid",style:{height:r}},O("a",n({ref:a,className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner"},i),o)))})):O("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},O("div",{className:"fc-timegrid-axis-frame",style:{height:r}}))},t.renderTableRowAxis=function(e){var n=t.context,r=n.options,a=n.viewApi,o={text:r.allDayText,view:a};return O(Pr,{hookProps:o,classNames:r.allDayClassNames,content:r.allDayContent,defaultContent:Ri,didMount:r.allDayDidMount,willUnmount:r.allDayWillUnmount},(function(t,n,r,a){return O("td",{ref:t,"aria-hidden":!0,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(n).join(" ")},O("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame"+(null==e?" fc-timegrid-axis-frame-liquid":""),style:{height:e}},O("span",{className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner",ref:r},a)))}))},t.handleSlatCoords=function(e){t.setState({slatCoords:e})},t}return t(r,e),r.prototype.renderSimpleLayout=function(e,t,n){var r=this.context,a=this.props,o=[],i=_o(r.options);return e&&o.push({type:"header",key:"header",isSticky:i,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),t&&(o.push({type:"body",key:"all-day",chunk:{content:t}}),o.push({type:"body",key:"all-day-divider",outerContent:O("tr",{role:"presentation",className:"fc-scrollgrid-section"},O("td",{className:"fc-timegrid-divider "+r.theme.getClass("tableCellShaded")}))})),o.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(r.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:n}}),O(Fr,{viewSpec:r.viewSpec,elRef:this.rootElRef},(function(e,t){return O("div",{className:["fc-timegrid"].concat(t).join(" "),ref:e},O(Do,{liquid:!a.isHeightAuto&&!a.forPrint,collapsibleWidth:a.forPrint,cols:[{width:"shrink"}],sections:o}))}))},r.prototype.renderHScrollLayout=function(e,t,n,r,a,o,i){var l=this,s=this.context.pluginHooks.scrollGridImpl;if(!s)throw new Error("No ScrollGrid implementation");var u=this.context,c=this.props,d=!c.forPrint&&_o(u.options),f=!c.forPrint&&Co(u.options),p=[];e&&p.push({type:"header",key:"header",isSticky:d,syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(e){return O("tr",{role:"presentation"},l.renderHeadAxis("day",e.rowSyncHeights[0]))}},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),t&&(p.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(e){return O("tr",{role:"presentation"},l.renderTableRowAxis(e.rowSyncHeights[0]))}},{key:"cols",content:t}]}),p.push({key:"all-day-divider",type:"body",outerContent:O("tr",{role:"presentation",className:"fc-scrollgrid-section"},O("td",{colSpan:2,className:"fc-timegrid-divider "+u.theme.getClass("tableCellShaded")}))}));var h=u.options.nowIndicator;return p.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(u.options.expandRows),chunks:[{key:"axis",content:function(e){return O("div",{className:"fc-timegrid-axis-chunk"},O("table",{"aria-hidden":!0,style:{height:e.expandRows?e.clientHeight:""}},e.tableColGroupNode,O("tbody",null,O(_i,{slatMetas:o}))),O("div",{className:"fc-timegrid-now-indicator-container"},O(eo,{unit:h?"minute":"day"},(function(e){var t=h&&i&&i.safeComputeTop(e);return"number"==typeof t?O(Io,{isAxis:!0,date:e},(function(e,n,r,a){return O("div",{ref:e,className:["fc-timegrid-now-indicator-arrow"].concat(n).join(" "),style:{top:t}},a)})):null}))))}},{key:"cols",scrollerElRef:this.scrollerElRef,content:n}]}),f&&p.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:To},{key:"cols",content:To}]}),O(Fr,{viewSpec:u.viewSpec,elRef:this.rootElRef},(function(e,t){return O("div",{className:["fc-timegrid"].concat(t).join(" "),ref:e},O(s,{liquid:!c.isHeightAuto&&!c.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:r,minWidth:a}]}],sections:p}))}))},r.prototype.getAllDayMaxEventProps=function(){var e=this.context.options,t=e.dayMaxEvents,n=e.dayMaxEventRows;return!0!==t&&!0!==n||(t=void 0,n=5),{dayMaxEvents:t,dayMaxEventRows:n}},r}(Tr);function Ri(e){return e.text}var Pi=function(){function e(e,t,n){this.positions=e,this.dateProfile=t,this.slotDuration=n}return e.prototype.safeComputeTop=function(e){var t=this.dateProfile;if(Qt(t.currentRange,e)){var n=ge(e),r=e.valueOf()-n.valueOf();if(r>=$e(t.slotMinTime)&&r<$e(t.slotMaxTime))return this.computeTimeTop(Ue(r))}return null},e.prototype.computeDateTop=function(e,t){return t||(t=ge(e)),this.computeTimeTop(Ue(e.valueOf()-t.valueOf()))},e.prototype.computeTimeTop=function(e){var t,n,r=this.positions,a=this.dateProfile,o=r.els.length,i=(e.milliseconds-$e(a.slotMinTime))/$e(this.slotDuration);return i=Math.max(0,i),i=Math.min(o,i),t=Math.floor(i),n=i-(t=Math.min(t,o-1)),r.tops[t]+r.getHeight(t)*n},e}(),Ni=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t(r,e),r.prototype.render=function(){var e=this.props,t=this.context,r=t.options,a=e.slatElRefs;return O("tbody",null,e.slatMetas.map((function(o,i){var l={time:o.time,date:t.dateEnv.toDate(o.date),view:t.viewApi},s=["fc-timegrid-slot","fc-timegrid-slot-lane",o.isLabeled?"":"fc-timegrid-slot-minor"];return O("tr",{key:o.key,ref:a.createRef(o.key)},e.axis&&O(Ei,n({},o)),O(Pr,{hookProps:l,classNames:r.slotLaneClassNames,content:r.slotLaneContent,didMount:r.slotLaneDidMount,willUnmount:r.slotLaneWillUnmount},(function(e,t,n,r){return O("td",{ref:e,className:s.concat(t).join(" "),"data-time":o.isoTimeStr},r)})))})))},r}(kr),Ii=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=L(),t.slatElRefs=new yo,t}return t(n,e),n.prototype.render=function(){var e=this.props,t=this.context;return O("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},O("table",{"aria-hidden":!0,className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,O(Ni,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))},n.prototype.componentDidMount=function(){this.updateSizing()},n.prototype.componentDidUpdate=function(){this.updateSizing()},n.prototype.componentWillUnmount=function(){this.props.onCoords&&this.props.onCoords(null)},n.prototype.updateSizing=function(){var e,t=this.context,n=this.props;n.onCoords&&null!==n.clientWidth&&(this.rootElRef.current.offsetHeight&&n.onCoords(new Pi(new fr(this.rootElRef.current,(e=this.slatElRefs.currentMap,n.slatMetas.map((function(t){return e[t.key]}))),!1,!0),this.props.dateProfile,t.options.slotDuration)))},n}(kr);function Mi(e,t){var n,r=[];for(n=0;n<t;n+=1)r.push([]);if(e)for(n=0;n<e.length;n+=1)r[e[n].col].push(e[n]);return r}function Oi(e,t){var n=[];if(e){for(i=0;i<t;i+=1)n[i]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(var r=0,a=e.segs;r<a.length;r++){var o=a[r];n[o.col].segs.push(o)}}else for(var i=0;i<t;i+=1)n[i]=null;return n}var Li=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=L(),t}return t(n,e),n.prototype.render=function(){var e=this,t=this.props;return O(Bo,{allDayDate:null,moreCnt:t.hiddenSegs.length,allSegs:t.hiddenSegs,hiddenSegs:t.hiddenSegs,alignmentElRef:this.rootElRef,defaultContent:zi,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,todayRange:t.todayRange,popoverContent:function(){return Yi(t.hiddenSegs,t)}},(function(n,r,a,o,i,l,s,u){return O("a",{ref:function(t){Er(n,t),Er(e.rootElRef,t)},className:["fc-timegrid-more-link"].concat(r).join(" "),style:{top:t.top,bottom:t.bottom},onClick:i,title:l,"aria-expanded":s,"aria-controls":u},O("div",{ref:a,className:"fc-timegrid-more-link-inner fc-sticky"},o))}))},n}(kr);function zi(e){return e.shortText}function Ai(e,t,r){var a=new Da;null!=t&&(a.strictOrder=t),null!=r&&(a.maxStackCnt=r);var o,i,l,s=function(e){for(var t,n,r=[],a=0,o=e;a<o.length;a++){for(var i=o[a],l=[],s={span:i.span,entries:[i]},u=0,c=r;u<c.length;u++){var d=c[u];Na(d.span,s.span)?s={entries:d.entries.concat(s.entries),span:(t=d.span,n=s.span,{start:Math.min(t.start,n.start),end:Math.max(t.end,n.end)})}:l.push(d)}l.push(s),r=l}return r}(a.addSegs(e)),u=function(e){var t=e.entriesByLevel,r=Ui((function(e,t){return e+":"+t}),(function(a,o){var i=function(e,t,n){for(var r=e.levelCoords,a=e.entriesByLevel,o=a[t][n],i=r[t]+o.thickness,l=r.length,s=t;s<l&&r[s]<i;s+=1);for(;s<l;s+=1){for(var u=a[s],c=void 0,d=Ma(u,o.span.start,Ra),f=d[0]+d[1],p=f;(c=u[p])&&c.span.start<o.span.end;)p+=1;if(f<p)return{level:s,lateralStart:f,lateralEnd:p}}return null}(e,a,o),l=Fi(i,r),s=t[a][o];return[n(n({},s),{nextLevelNodes:l[0]}),s.thickness+l[1]]}));return Fi(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,r)[0]}(a);return o=u,i=1,l=Ui((function(e,t,n){return Pa(e)}),(function(e,t,r){var a,o=e.nextLevelNodes,s=e.thickness,u=s+r,c=s/u,d=[];if(o.length)for(var f=0,p=o;f<p.length;f++){var h=p[f];if(void 0===a)a=(v=l(h,t,u))[0],d.push(v[1]);else{var v=l(h,a,0);d.push(v[1])}}else a=i;var m=(a-t)*c;return[a-m,n(n({},e),{thickness:m,nextLevelNodes:d})]})),{segRects:function(e){var t=[],r=Ui((function(e,t,n){return Pa(e)}),(function(e,r,o){var i=n(n({},e),{levelCoord:r,stackDepth:o,stackForward:0});return t.push(i),i.stackForward=a(e.nextLevelNodes,r+e.thickness,o+1)+1}));function a(e,t,n){for(var a=0,o=0,i=e;o<i.length;o++){var l=i[o];a=Math.max(r(l,t,n),a)}return a}return a(e,0,0),t}(u=o.map((function(e){return l(e,0,0)[1]}))),hiddenGroups:s}}function Fi(e,t){if(!e)return[[],0];for(var n=e.level,r=e.lateralStart,a=e.lateralEnd,o=r,i=[];o<a;)i.push(t(n,o)),o+=1;return i.sort(Hi),[i.map(ji),i[0][1]]}function Hi(e,t){return t[1]-e[1]}function ji(e){return e[0]}function Ui(e,t){var n={};return function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];var o=e.apply(void 0,r);return o in n?n[o]:n[o]=t.apply(void 0,r)}}function Vi(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=0);var a=[];if(n)for(var o=0;o<e.length;o+=1){var i=e[o],l=n.computeDateTop(i.start,t),s=Math.max(l+(r||0),n.computeDateTop(i.end,t));a.push({start:Math.round(l),end:Math.round(s)})}return a}var Wi=pt({hour:"numeric",minute:"2-digit",meridiem:!1}),Bi=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t(r,e),r.prototype.render=function(){var e=["fc-timegrid-event","fc-v-event"];return this.props.isShort&&e.push("fc-timegrid-event-short"),O(Po,n({},this.props,{defaultTimeFormat:Wi,extraClassNames:e}))},r}(kr),$i=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n.prototype.render=function(){var e=this.props;return O(Oo,{date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraHookProps:e.extraHookProps},(function(e,t){return t&&O("div",{className:"fc-timegrid-col-misc",ref:e},t)}))},n}(kr),qi=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.sortEventSegs=Ze(nn),t}return t(r,e),r.prototype.render=function(){var e=this,t=this.props,r=this.context,a=r.options.selectMirror,o=t.eventDrag&&t.eventDrag.segs||t.eventResize&&t.eventResize.segs||a&&t.dateSelectionSegs||[],i=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{},l=this.sortEventSegs(t.fgEventSegs,r.options.eventOrder);return O(zo,{elRef:t.elRef,date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,extraHookProps:t.extraHookProps},(function(r,s,u){return O("td",n({ref:r,role:"gridcell",className:["fc-timegrid-col"].concat(s,t.extraClassNames||[]).join(" ")},u,t.extraDataAttrs),O("div",{className:"fc-timegrid-col-frame"},O("div",{className:"fc-timegrid-col-bg"},e.renderFillSegs(t.businessHourSegs,"non-business"),e.renderFillSegs(t.bgEventSegs,"bg-event"),e.renderFillSegs(t.dateSelectionSegs,"highlight")),O("div",{className:"fc-timegrid-col-events"},e.renderFgSegs(l,i,!1,!1,!1)),O("div",{className:"fc-timegrid-col-events"},e.renderFgSegs(o,{},Boolean(t.eventDrag),Boolean(t.eventResize),Boolean(a))),O("div",{className:"fc-timegrid-now-indicator-container"},e.renderNowIndicator(t.nowIndicatorSegs)),O($i,{date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,extraHookProps:t.extraHookProps})))}))},r.prototype.renderFgSegs=function(e,t,n,r,a){var o=this.props;return o.forPrint?Yi(e,o):this.renderPositionedFgSegs(e,t,n,r,a)},r.prototype.renderPositionedFgSegs=function(e,t,r,a,o){var i=this,l=this.context.options,s=l.eventMaxStack,u=l.eventShortHeight,c=l.eventOrderStrict,d=l.eventMinHeight,f=this.props,p=f.date,h=f.slatCoords,v=f.eventSelection,m=f.todayRange,g=f.nowDate,y=r||a||o,b=function(e,t,n,r){for(var a=[],o=[],i=0;i<e.length;i+=1){var l=t[i];l?a.push({index:i,thickness:1,span:l}):o.push(e[i])}for(var s=Ai(a,n,r),u=s.segRects,c=s.hiddenGroups,d=[],f=0,p=u;f<p.length;f++){var h=p[f];d.push({seg:e[h.index],rect:h})}for(var v=0,m=o;v<m.length;v++){var g=m[v];d.push({seg:g,rect:null})}return{segPlacements:d,hiddenGroups:c}}(e,Vi(e,p,h,d),c,s),w=b.segPlacements,k=b.hiddenGroups;return O(z,null,this.renderHiddenGroups(k,e),w.map((function(e){var l=e.seg,s=e.rect,c=l.eventRange.instance.instanceId,d=y||Boolean(!t[c]&&s),f=Gi(s&&s.span),p=!y&&s?i.computeSegHStyle(s):{left:0,right:0},h=Boolean(s)&&s.stackForward>0,b=Boolean(s)&&s.span.end-s.span.start<u;return O("div",{className:"fc-timegrid-event-harness"+(h?" fc-timegrid-event-harness-inset":""),key:c,style:n(n({visibility:d?"":"hidden"},f),p)},O(Bi,n({seg:l,isDragging:r,isResizing:a,isDateSelecting:o,isSelected:c===v,isShort:b},un(l,m,g))))})))},r.prototype.renderHiddenGroups=function(e,t){var n=this.props,r=n.extraDateSpan,a=n.dateProfile,o=n.todayRange,i=n.nowDate,l=n.eventSelection,s=n.eventDrag,u=n.eventResize;return O(z,null,e.map((function(e){var n,c,d=Gi(e.span),f=(n=e.entries,c=t,n.map((function(e){return c[e.index]})));return O(Li,{key:Ge(Yo(f)),hiddenSegs:f,top:d.top,bottom:d.bottom,extraDateSpan:r,dateProfile:a,todayRange:o,nowDate:i,eventSelection:l,eventDrag:s,eventResize:u})})))},r.prototype.renderFillSegs=function(e,t){var r=this.props,a=this.context,o=Vi(e,r.date,r.slatCoords,a.options.eventMinHeight).map((function(a,o){var i=e[o];return O("div",{key:cn(i.eventRange),className:"fc-timegrid-bg-harness",style:Gi(a)},"bg-event"===t?O(Fo,n({seg:i},un(i,r.todayRange,r.nowDate))):Ao(t))}));return O(z,null,o)},r.prototype.renderNowIndicator=function(e){var t=this.props,n=t.slatCoords,r=t.date;return n?e.map((function(e,t){return O(Io,{isAxis:!1,date:r,key:t},(function(t,a,o,i){return O("div",{ref:t,className:["fc-timegrid-now-indicator-line"].concat(a).join(" "),style:{top:n.computeDateTop(e.start,r)}},i)}))})):null},r.prototype.computeSegHStyle=function(e){var t,n,r=this.context,a=r.isRtl,o=r.options.slotEventOverlap,i=e.levelCoord,l=e.levelCoord+e.thickness;o&&(l=Math.min(1,i+2*(l-i))),a?(t=1-l,n=i):(t=i,n=1-l);var s={zIndex:e.stackDepth+1,left:100*t+"%",right:100*n+"%"};return o&&!e.stackForward&&(s[a?"marginLeft":"marginRight"]=20),s},r}(kr);function Yi(e,t){var r=t.todayRange,a=t.nowDate,o=t.eventSelection,i=t.eventDrag,l=t.eventResize,s=(i?i.affectedInstances:null)||(l?l.affectedInstances:null)||{};return O(z,null,e.map((function(e){var t=e.eventRange.instance.instanceId;return O("div",{key:t,style:{visibility:s[t]?"hidden":""}},O(Bi,n({seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:t===o,isShort:!1},un(e,r,a))))})))}function Gi(e){return e?{top:e.start,bottom:-e.end}:{top:"",bottom:""}}var Ki=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.splitFgEventSegs=Ze(Mi),t.splitBgEventSegs=Ze(Mi),t.splitBusinessHourSegs=Ze(Mi),t.splitNowIndicatorSegs=Ze(Mi),t.splitDateSelectionSegs=Ze(Mi),t.splitEventDrag=Ze(Oi),t.splitEventResize=Ze(Oi),t.rootElRef=L(),t.cellElRefs=new yo,t}return t(n,e),n.prototype.render=function(){var e=this,t=this.props,n=this.context.options.nowIndicator&&t.slatCoords&&t.slatCoords.safeComputeTop(t.nowDate),r=t.cells.length,a=this.splitFgEventSegs(t.fgEventSegs,r),o=this.splitBgEventSegs(t.bgEventSegs,r),i=this.splitBusinessHourSegs(t.businessHourSegs,r),l=this.splitNowIndicatorSegs(t.nowIndicatorSegs,r),s=this.splitDateSelectionSegs(t.dateSelectionSegs,r),u=this.splitEventDrag(t.eventDrag,r),c=this.splitEventResize(t.eventResize,r);return O("div",{className:"fc-timegrid-cols",ref:this.rootElRef},O("table",{role:"presentation",style:{minWidth:t.tableMinWidth,width:t.clientWidth}},t.tableColGroupNode,O("tbody",{role:"presentation"},O("tr",{role:"row"},t.axis&&O("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},O("div",{className:"fc-timegrid-col-frame"},O("div",{className:"fc-timegrid-now-indicator-container"},"number"==typeof n&&O(Io,{isAxis:!0,date:t.nowDate},(function(e,t,r,a){return O("div",{ref:e,className:["fc-timegrid-now-indicator-arrow"].concat(t).join(" "),style:{top:n}},a)}))))),t.cells.map((function(n,r){return O(qi,{key:n.key,elRef:e.cellElRefs.createRef(n.key),dateProfile:t.dateProfile,date:n.date,nowDate:t.nowDate,todayRange:t.todayRange,extraHookProps:n.extraHookProps,extraDataAttrs:n.extraDataAttrs,extraClassNames:n.extraClassNames,extraDateSpan:n.extraDateSpan,fgEventSegs:a[r],bgEventSegs:o[r],businessHourSegs:i[r],nowIndicatorSegs:l[r],dateSelectionSegs:s[r],eventDrag:u[r],eventResize:c[r],slatCoords:t.slatCoords,eventSelection:t.eventSelection,forPrint:t.forPrint})}))))))},n.prototype.componentDidMount=function(){this.updateCoords()},n.prototype.componentDidUpdate=function(){this.updateCoords()},n.prototype.updateCoords=function(){var e,t=this.props;t.onColCoords&&null!==t.clientWidth&&t.onColCoords(new fr(this.rootElRef.current,(e=this.cellElRefs.currentMap,t.cells.map((function(t){return e[t.key]}))),!0,!1))},n}(kr);var Qi=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.processSlotOptions=Ze(Xi),t.state={slatCoords:null},t.handleRootEl=function(e){e?t.context.registerInteractiveComponent(t,{el:e,isHitComboAllowed:t.props.isHitComboAllowed}):t.context.unregisterInteractiveComponent(t)},t.handleScrollRequest=function(e){var n=t.props.onScrollTopRequest,r=t.state.slatCoords;if(n&&r){if(e.time){var a=r.computeTimeTop(e.time);(a=Math.ceil(a))&&(a+=1),n(a)}return!0}return!1},t.handleColCoords=function(e){t.colCoords=e},t.handleSlatCoords=function(e){t.setState({slatCoords:e}),t.props.onSlatCoords&&t.props.onSlatCoords(e)},t}return t(r,e),r.prototype.render=function(){var e=this.props,t=this.state;return O("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},O(Ii,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),O(Ki,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:t.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))},r.prototype.componentDidMount=function(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)},r.prototype.componentDidUpdate=function(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)},r.prototype.componentWillUnmount=function(){this.scrollResponder.detach()},r.prototype.queryHit=function(e,t){var r,a,o=this.context,i=o.dateEnv,l=o.options,s=this.colCoords,u=this.props.dateProfile,c=this.state.slatCoords,d=this.processSlotOptions(this.props.slotDuration,l.snapDuration),f=d.snapDuration,p=d.snapsPerSlot,h=s.leftToIndex(e),v=c.positions.topToIndex(t);if(null!=h&&null!=v){var m=this.props.cells[h],g=c.positions.tops[v],y=c.positions.getHeight(v),b=(t-g)/y,w=v*p+Math.floor(b*p),k=this.props.cells[h].date,S=We(u.slotMinTime,(a=w,{years:(r=f).years*a,months:r.months*a,days:r.days*a,milliseconds:r.milliseconds*a})),x=i.add(k,S),E=i.add(x,f);return{dateProfile:u,dateSpan:n({range:{start:x,end:E},allDay:!1},m.extraDateSpan),dayEl:s.els[h],rect:{left:s.lefts[h],right:s.rights[h],top:g,bottom:g+y},layer:0}}return null},r}(Tr);function Xi(e,t){var n=t||e,r=qe(e,n);return null===r&&(n=e,r=1),{snapDuration:n,snapsPerSlot:r}}var Zi=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n.prototype.sliceRange=function(e,t){for(var n=[],r=0;r<t.length;r+=1){var a=Yt(e,t[r]);a&&n.push({start:a.start,end:a.end,isStart:a.start.valueOf()===e.start.valueOf(),isEnd:a.end.valueOf()===e.end.valueOf(),col:r})}return n},n}(io),Ji=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDayRanges=Ze(el),t.slicer=new Zi,t.timeColsRef=L(),t}return t(r,e),r.prototype.render=function(){var e=this,t=this.props,r=this.context,a=t.dateProfile,o=t.dayTableModel,i=r.options.nowIndicator,l=this.buildDayRanges(o,a,r.dateEnv);return O(eo,{unit:i?"minute":"day"},(function(s,u){return O(Qi,n({ref:e.timeColsRef},e.slicer.sliceProps(t,a,null,r,l),{forPrint:t.forPrint,axis:t.axis,dateProfile:a,slatMetas:t.slatMetas,slotDuration:t.slotDuration,cells:o.cells[0],tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,expandRows:t.expandRows,nowDate:s,nowIndicatorSegs:i&&e.slicer.sliceNowDate(s,r,l),todayRange:u,onScrollTopRequest:t.onScrollTopRequest,onSlatCoords:t.onSlatCoords}))}))},r}(Tr);function el(e,t,n){for(var r=[],a=0,o=e.headerDates;a<o.length;a++){var i=o[a];r.push({start:n.add(i,t.slotMinTime),end:n.add(i,t.slotMaxTime)})}return r}var tl=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function nl(e,t,n,r,a){for(var o,i=new Date(0),l=e,s=Ue(0),u=n||function(e){var t,n,r;for(t=tl.length-1;t>=0;t-=1)if(null!==(r=qe(n=Ue(tl[t]),e))&&r>1)return n;return e}(r),c=[];$e(l)<$e(t);){var d=a.add(i,l),f=null!==qe(s,u);c.push({date:d,time:l,key:d.toISOString(),isoTimeStr:(o=d,ie(o.getUTCHours(),2)+":"+ie(o.getUTCMinutes(),2)+":"+ie(o.getUTCSeconds(),2)),isLabeled:f}),l=We(l,r),s=We(s,r)}return c}var rl=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildTimeColsModel=Ze(al),t.buildSlatMetas=Ze(nl),t}return t(r,e),r.prototype.render=function(){var e=this,t=this.context,r=t.options,a=t.dateEnv,o=t.dateProfileGenerator,i=this.props,l=i.dateProfile,s=this.buildTimeColsModel(l,o),u=this.allDaySplitter.splitProps(i),c=this.buildSlatMetas(l.slotMinTime,l.slotMaxTime,r.slotLabelInterval,r.slotDuration,a),d=r.dayMinWidth,f=!d,p=d,h=r.dayHeaders&&O(no,{dates:s.headerDates,dateProfile:l,datesRepDistinctDays:!0,renderIntro:f?this.renderHeadAxis:null}),v=!1!==r.allDaySlot&&function(t){return O(bi,n({},u.allDay,{dateProfile:l,dayTableModel:s,nextDayThreshold:r.nextDayThreshold,tableMinWidth:t.tableMinWidth,colGroupNode:t.tableColGroupNode,renderRowIntro:f?e.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:e.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:i.forPrint},e.getAllDayMaxEventProps()))},m=function(t){return O(Ji,n({},u.timed,{dayTableModel:s,dateProfile:l,axis:f,slotDuration:r.slotDuration,slatMetas:c,forPrint:i.forPrint,tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,onSlatCoords:e.handleSlatCoords,expandRows:t.expandRows,onScrollTopRequest:e.handleScrollTopRequest}))};return p?this.renderHScrollLayout(h,v,m,s.colCnt,d,c,this.state.slatCoords):this.renderSimpleLayout(h,v,m)},r}(Di);function al(e,t){var n=new ao(e.renderRange,t);return new oo(n,!1)}var ol=_r({initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:rl,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});
|
|
61
|
+
*/function splitSegsByRow(e,t){for(var n=[],r=0;r<t;r+=1)n[r]=[];for(var a=0,o=e;a<o.length;a++){var i=o[a];n[i.row].push(i)}return n}function splitSegsByFirstCol(e,t){for(var n=[],r=0;r<t;r+=1)n[r]=[];for(var a=0,o=e;a<o.length;a++){var i=o[a];n[i.firstCol].push(i)}return n}function splitInteractionByRow(e,t){var n=[];if(e){for(i=0;i<t;i+=1)n[i]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(var r=0,a=e.segs;r<a.length;r++){var o=a[r];n[o.row].segs.push(o)}}else for(var i=0;i<t;i+=1)n[i]=null;return n}var TableCellTop=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.render=function(){var e=this.props,t=buildNavLinkAttrs(this.context,e.date);return createElement(DayCellContent,{date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraHookProps:e.extraHookProps,defaultContent:renderTopInner},(function(n,r){return(r||e.forceDayTop)&&createElement("div",{className:"fc-daygrid-day-top",ref:n},createElement("a",__assign$1({id:e.dayNumberId,className:"fc-daygrid-day-number"},t),r||createElement(Fragment,null," ")))}))},t}(BaseComponent);function renderTopInner(e){return e.dayNumberText}var DEFAULT_TABLE_EVENT_TIME_FORMAT=createFormatter({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function hasListItemDisplay(e){var t=e.eventRange.ui.display;return"list-item"===t||"auto"===t&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}var TableBlockEvent=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.render=function(){var e=this.props;return createElement(StandardEvent,__assign$1({},e,{extraClassNames:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:DEFAULT_TABLE_EVENT_TIME_FORMAT,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))},t}(BaseComponent),TableListItemEvent=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options.eventTimeFormat||DEFAULT_TABLE_EVENT_TIME_FORMAT,r=buildSegTimeText(e.seg,n,t,!0,e.defaultDisplayEventEnd);return createElement(EventRoot,{seg:e.seg,timeText:r,defaultContent:renderInnerContent$2,isDragging:e.isDragging,isResizing:!1,isDateSelecting:!1,isSelected:e.isSelected,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},(function(n,r,a,o){return createElement("a",__assign$1({className:["fc-daygrid-event","fc-daygrid-dot-event"].concat(r).join(" "),ref:n},getSegAnchorAttrs(e.seg,t)),o)}))},t}(BaseComponent);function renderInnerContent$2(e){return createElement(Fragment,null,createElement("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&createElement("div",{className:"fc-event-time"},e.timeText),createElement("div",{className:"fc-event-title"},e.event.title||createElement(Fragment,null," ")))}var TableCellMoreLink=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.compileSegs=memoize(compileSegs),t}return __extends(t,e),t.prototype.render=function(){var e=this.props,t=this.compileSegs(e.singlePlacements),n=t.allSegs,r=t.invisibleSegs;return createElement(MoreLinkRoot,{dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:n,hiddenSegs:r,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:function(){var t=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return createElement(Fragment,null,n.map((function(n){var r=n.eventRange.instance.instanceId;return createElement("div",{className:"fc-daygrid-event-harness",key:r,style:{visibility:t[r]?"hidden":""}},hasListItemDisplay(n)?createElement(TableListItemEvent,__assign$1({seg:n,isDragging:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},getSegMeta(n,e.todayRange))):createElement(TableBlockEvent,__assign$1({seg:n,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},getSegMeta(n,e.todayRange))))})))}},(function(e,t,n,r,a,o,i,l){return createElement("a",__assign$1({ref:e,className:["fc-daygrid-more-link"].concat(t).join(" "),title:o,"aria-expanded":i,"aria-controls":l},createAriaClickAttrs(a)),r)}))},t}(BaseComponent);function compileSegs(e){for(var t=[],n=[],r=0,a=e;r<a.length;r++){var o=a[r];t.push(o.seg),o.isVisible||n.push(o.seg)}return{allSegs:t,invisibleSegs:n}}var DEFAULT_WEEK_NUM_FORMAT$1=createFormatter({week:"narrow"}),TableCell=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=createRef(),t.state={dayNumberId:getUniqueDomId()},t.handleRootEl=function(e){setRef(t.rootElRef,e),setRef(t.props.elRef,e)},t}return __extends(t,e),t.prototype.render=function(){var e=this,t=e.context,n=e.props,r=e.state,a=e.rootElRef,o=n.date,i=n.dateProfile,l=buildNavLinkAttrs(t,o,"week");return createElement(DayCellRoot,{date:o,dateProfile:i,todayRange:n.todayRange,showDayNumber:n.showDayNumber,extraHookProps:n.extraHookProps,elRef:this.handleRootEl},(function(e,t,s,u){return createElement("td",__assign$1({ref:e,role:"gridcell",className:["fc-daygrid-day"].concat(t,n.extraClassNames||[]).join(" ")},s,n.extraDataAttrs,n.showDayNumber?{"aria-labelledby":r.dayNumberId}:{}),createElement("div",{className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",ref:n.innerElRef},n.showWeekNumber&&createElement(WeekNumberRoot,{date:o,defaultFormat:DEFAULT_WEEK_NUM_FORMAT$1},(function(e,t,n,r){return createElement("a",__assign$1({ref:e,className:["fc-daygrid-week-number"].concat(t).join(" ")},l),r)})),!u&&createElement(TableCellTop,{date:o,dateProfile:i,showDayNumber:n.showDayNumber,dayNumberId:r.dayNumberId,forceDayTop:n.forceDayTop,todayRange:n.todayRange,extraHookProps:n.extraHookProps}),createElement("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,createElement("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},createElement(TableCellMoreLink,{allDayDate:o,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:a,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),createElement("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}))},t}(DateComponent);function computeFgSegPlacement(e,t,n,r,a,o,i){var l=new DayGridSegHierarchy;l.allowReslicing=!0,l.strictOrder=r,!0===t||!0===n?(l.maxCoord=o,l.hiddenConsumes=!0):"number"==typeof t?l.maxStackCnt=t:"number"==typeof n&&(l.maxStackCnt=n,l.hiddenConsumes=!0);for(var s=[],u=[],c=0;c<e.length;c+=1){var d=a[(T=e[c]).eventRange.instance.instanceId];null!=d?s.push({index:c,thickness:d,span:{start:T.firstCol,end:T.lastCol+1}}):u.push(T)}for(var f=l.addSegs(s),p=placeRects(l.toRects(),e,i),h=p.singleColPlacements,m=p.multiColPlacements,v=p.leftoverMargins,g=[],y=[],b=0,w=u;b<w.length;b++){m[(T=w[b]).firstCol].push({seg:T,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(var S=T.firstCol;S<=T.lastCol;S+=1)h[S].push({seg:resliceSeg(T,S,S+1,i),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(S=0;S<i.length;S+=1)g.push(0);for(var E=0,_=f;E<_.length;E++){var k=_[E],T=e[k.index],x=k.span;m[x.start].push({seg:resliceSeg(T,x.start,x.end,i),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(S=x.start;S<x.end;S+=1)g[S]+=1,h[S].push({seg:resliceSeg(T,S,S+1,i),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(S=0;S<i.length;S+=1)y.push(v[S]);return{singleColPlacements:h,multiColPlacements:m,moreCnts:g,moreMarginTops:y}}function placeRects(e,t,n){for(var r=groupRectsByEachCol(e,n.length),a=[],o=[],i=[],l=0;l<n.length;l+=1){for(var s=r[l],u=[],c=0,d=0,f=0,p=s;f<p.length;f++){var h=t[(y=p[f]).index];u.push({seg:resliceSeg(h,l,l+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:y.levelCoord,marginTop:y.levelCoord-c}),c=y.levelCoord+y.thickness}var m=[];c=0,d=0;for(var v=0,g=s;v<g.length;v++){h=t[(y=g[v]).index];var y,b=y.span.end-y.span.start>1,w=y.span.start===l;d+=y.levelCoord-c,c=y.levelCoord+y.thickness,b?(d+=y.thickness,w&&m.push({seg:resliceSeg(h,y.span.start,y.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:y.levelCoord,marginTop:0})):w&&(m.push({seg:resliceSeg(h,y.span.start,y.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:y.levelCoord,marginTop:d}),d=0)}a.push(u),o.push(m),i.push(d)}return{singleColPlacements:a,multiColPlacements:o,leftoverMargins:i}}function groupRectsByEachCol(e,t){for(var n=[],r=0;r<t;r+=1)n.push([]);for(var a=0,o=e;a<o.length;a++){var i=o[a];for(r=i.span.start;r<i.span.end;r+=1)n[r].push(i)}return n}function resliceSeg(e,t,n,r){if(e.firstCol===t&&e.lastCol===n-1)return e;var a=e.eventRange,o=a.range,i=intersectRanges(o,{start:r[t].date,end:addDays(r[n-1].date,1)});return __assign$1(__assign$1({},e),{firstCol:t,lastCol:n-1,eventRange:{def:a.def,ui:__assign$1(__assign$1({},a.ui),{durationEditable:!1}),instance:a.instance,range:i},isStart:e.isStart&&i.start.valueOf()===o.start.valueOf(),isEnd:e.isEnd&&i.end.valueOf()===o.end.valueOf()})}var DayGridSegHierarchy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hiddenConsumes=!1,t.forceHidden={},t}return __extends(t,e),t.prototype.addSegs=function(t){for(var n=this,r=e.prototype.addSegs.call(this,t),a=this.entriesByLevel,o=function(e){return!n.forceHidden[buildEntryKey(e)]},i=0;i<a.length;i+=1)a[i]=a[i].filter(o);return r},t.prototype.handleInvalidInsertion=function(t,n,r){var a=this.entriesByLevel,o=this.forceHidden,i=t.touchingEntry,l=t.touchingLevel,s=t.touchingLateral;if(this.hiddenConsumes&&i){var u=buildEntryKey(i);if(!o[u])if(this.allowReslicing){var c=__assign$1(__assign$1({},i),{span:intersectSpans(i.span,n.span)});o[buildEntryKey(c)]=!0,a[l][s]=c,this.splitEntry(i,n,r)}else o[u]=!0,r.push(i)}return e.prototype.handleInvalidInsertion.call(this,t,n,r)},t}(SegHierarchy),TableRow=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cellElRefs=new RefMap,t.frameElRefs=new RefMap,t.fgElRefs=new RefMap,t.segHarnessRefs=new RefMap,t.rootElRef=createRef(),t.state={framePositions:null,maxContentHeight:null,eventInstanceHeights:{}},t}return __extends(t,e),t.prototype.render=function(){var e=this,t=this,n=t.props,r=t.state,a=t.context.options,o=n.cells.length,i=splitSegsByFirstCol(n.businessHourSegs,o),l=splitSegsByFirstCol(n.bgEventSegs,o),s=splitSegsByFirstCol(this.getHighlightSegs(),o),u=splitSegsByFirstCol(this.getMirrorSegs(),o),c=computeFgSegPlacement(sortEventSegs(n.fgEventSegs,a.eventOrder),n.dayMaxEvents,n.dayMaxEventRows,a.eventOrderStrict,r.eventInstanceHeights,r.maxContentHeight,n.cells),d=c.singleColPlacements,f=c.multiColPlacements,p=c.moreCnts,h=c.moreMarginTops,m=n.eventDrag&&n.eventDrag.affectedInstances||n.eventResize&&n.eventResize.affectedInstances||{};return createElement("tr",{ref:this.rootElRef,role:"row"},n.renderIntro&&n.renderIntro(),n.cells.map((function(t,r){var a=e.renderFgSegs(r,n.forPrint?d[r]:f[r],n.todayRange,m),o=e.renderFgSegs(r,buildMirrorPlacements(u[r],f),n.todayRange,{},Boolean(n.eventDrag),Boolean(n.eventResize),!1);return createElement(TableCell,{key:t.key,elRef:e.cellElRefs.createRef(t.key),innerElRef:e.frameElRefs.createRef(t.key),dateProfile:n.dateProfile,date:t.date,showDayNumber:n.showDayNumbers,showWeekNumber:n.showWeekNumbers&&0===r,forceDayTop:n.showWeekNumbers,todayRange:n.todayRange,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,extraHookProps:t.extraHookProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,moreCnt:p[r],moreMarginTop:h[r],singlePlacements:d[r],fgContentElRef:e.fgElRefs.createRef(t.key),fgContent:createElement(Fragment,null,createElement(Fragment,null,a),createElement(Fragment,null,o)),bgContent:createElement(Fragment,null,e.renderFillSegs(s[r],"highlight"),e.renderFillSegs(i[r],"non-business"),e.renderFillSegs(l[r],"bg-event"))})})))},t.prototype.componentDidMount=function(){this.updateSizing(!0)},t.prototype.componentDidUpdate=function(e,t){var n=this.props;this.updateSizing(!isPropsEqual(e,n))},t.prototype.getHighlightSegs=function(){var e=this.props;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs},t.prototype.getMirrorSegs=function(){var e=this.props;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]},t.prototype.renderFgSegs=function(e,t,n,r,a,o,i){var l=this.context,s=this.props.eventSelection,u=this.state.framePositions,c=1===this.props.cells.length,d=a||o||i,f=[];if(u)for(var p=0,h=t;p<h.length;p++){var m=h[p],v=m.seg,g=v.eventRange.instance.instanceId,y=g+":"+e,b=m.isVisible&&!r[g],w=m.isAbsolute,S="",E="";w&&(l.isRtl?(E=0,S=u.lefts[v.lastCol]-u.lefts[v.firstCol]):(S=0,E=u.rights[v.firstCol]-u.rights[v.lastCol])),f.push(createElement("div",{className:"fc-daygrid-event-harness"+(w?" fc-daygrid-event-harness-abs":""),key:y,ref:d?null:this.segHarnessRefs.createRef(y),style:{visibility:b?"":"hidden",marginTop:w?"":m.marginTop,top:w?m.absoluteTop:"",left:S,right:E}},hasListItemDisplay(v)?createElement(TableListItemEvent,__assign$1({seg:v,isDragging:a,isSelected:g===s,defaultDisplayEventEnd:c},getSegMeta(v,n))):createElement(TableBlockEvent,__assign$1({seg:v,isDragging:a,isResizing:o,isDateSelecting:i,isSelected:g===s,defaultDisplayEventEnd:c},getSegMeta(v,n)))))}return f},t.prototype.renderFillSegs=function(e,t){var n=this.context.isRtl,r=this.props.todayRange,a=this.state.framePositions,o=[];if(a)for(var i=0,l=e;i<l.length;i++){var s=l[i],u=n?{right:0,left:a.lefts[s.lastCol]-a.lefts[s.firstCol]}:{left:0,right:a.rights[s.firstCol]-a.rights[s.lastCol]};o.push(createElement("div",{key:buildEventRangeKey(s.eventRange),className:"fc-daygrid-bg-harness",style:u},"bg-event"===t?createElement(BgEvent,__assign$1({seg:s},getSegMeta(s,r))):renderFill(t)))}return createElement.apply(void 0,__spreadArray([Fragment,{}],o))},t.prototype.updateSizing=function(e){var t=this.props,n=this.frameElRefs;if(!t.forPrint&&null!==t.clientWidth){if(e){var r=t.cells.map((function(e){return n.currentMap[e.key]}));if(r.length){var a=this.rootElRef.current;this.setState({framePositions:new PositionCache(a,r,!0,!1)})}}var o=this.state.eventInstanceHeights,i=this.queryEventInstanceHeights(),l=!0===t.dayMaxEvents||!0===t.dayMaxEventRows;this.safeSetState({eventInstanceHeights:__assign$1(__assign$1({},o),i),maxContentHeight:l?this.computeMaxContentHeight():null})}},t.prototype.queryEventInstanceHeights=function(){var e=this.segHarnessRefs.currentMap,t={};for(var n in e){var r=Math.round(e[n].getBoundingClientRect().height),a=n.split(":")[0];t[a]=Math.max(t[a]||0,r)}return t},t.prototype.computeMaxContentHeight=function(){var e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],n=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-n.getBoundingClientRect().top},t.prototype.getCellEls=function(){var e=this.cellElRefs.currentMap;return this.props.cells.map((function(t){return e[t.key]}))},t}(DateComponent);function buildMirrorPlacements(e,t){if(!e.length)return[];var n=buildAbsoluteTopHash(t);return e.map((function(e){return{seg:e,isVisible:!0,isAbsolute:!0,absoluteTop:n[e.eventRange.instance.instanceId],marginTop:0}}))}function buildAbsoluteTopHash(e){for(var t={},n=0,r=e;n<r.length;n++)for(var a=0,o=r[n];a<o.length;a++){var i=o[a];t[i.seg.eventRange.instance.instanceId]=i.absoluteTop}return t}TableRow.addStateEquality({eventInstanceHeights:isPropsEqual});var Table=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.splitBusinessHourSegs=memoize(splitSegsByRow),t.splitBgEventSegs=memoize(splitSegsByRow),t.splitFgEventSegs=memoize(splitSegsByRow),t.splitDateSelectionSegs=memoize(splitSegsByRow),t.splitEventDrag=memoize(splitInteractionByRow),t.splitEventResize=memoize(splitInteractionByRow),t.rowRefs=new RefMap,t.handleRootEl=function(e){t.rootEl=e,e?t.context.registerInteractiveComponent(t,{el:e,isHitComboAllowed:t.props.isHitComboAllowed}):t.context.unregisterInteractiveComponent(t)},t}return __extends(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.dateProfile,r=t.dayMaxEventRows,a=t.dayMaxEvents,o=t.expandRows,i=t.cells.length,l=this.splitBusinessHourSegs(t.businessHourSegs,i),s=this.splitBgEventSegs(t.bgEventSegs,i),u=this.splitFgEventSegs(t.fgEventSegs,i),c=this.splitDateSelectionSegs(t.dateSelectionSegs,i),d=this.splitEventDrag(t.eventDrag,i),f=this.splitEventResize(t.eventResize,i),p=!0===a||!0===r;return p&&!o&&(p=!1,r=null,a=null),createElement("div",{className:["fc-daygrid-body",p?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",o?"":"fc-daygrid-body-natural"].join(" "),ref:this.handleRootEl,style:{width:t.clientWidth,minWidth:t.tableMinWidth}},createElement(NowTimer,{unit:"day"},(function(p,h){return createElement(Fragment,null,createElement("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:t.clientWidth,minWidth:t.tableMinWidth,height:o?t.clientHeight:""}},t.colGroupNode,createElement("tbody",{role:"presentation"},t.cells.map((function(o,p){return createElement(TableRow,{ref:e.rowRefs.createRef(p),key:o.length?o[0].date.toISOString():p,showDayNumbers:i>1,showWeekNumbers:t.showWeekNumbers,todayRange:h,dateProfile:n,cells:o,renderIntro:t.renderRowIntro,businessHourSegs:l[p],eventSelection:t.eventSelection,bgEventSegs:s[p].filter(isSegAllDay),fgEventSegs:u[p],dateSelectionSegs:c[p],eventDrag:d[p],eventResize:f[p],dayMaxEvents:a,dayMaxEventRows:r,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:t.forPrint})})))))})))},t.prototype.prepareHits=function(){this.rowPositions=new PositionCache(this.rootEl,this.rowRefs.collect().map((function(e){return e.getCellEls()[0]})),!1,!0),this.colPositions=new PositionCache(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)},t.prototype.queryHit=function(e,t){var n=this.colPositions,r=this.rowPositions,a=n.leftToIndex(e),o=r.topToIndex(t);if(null!=o&&null!=a){var i=this.props.cells[o][a];return{dateProfile:this.props.dateProfile,dateSpan:__assign$1({range:this.getCellRange(o,a),allDay:!0},i.extraDateSpan),dayEl:this.getCellEl(o,a),rect:{left:n.lefts[a],right:n.rights[a],top:r.tops[o],bottom:r.bottoms[o]},layer:0}}return null},t.prototype.getCellEl=function(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]},t.prototype.getCellRange=function(e,t){var n=this.props.cells[e][t].date;return{start:n,end:addDays(n,1)}},t}(DateComponent);function isSegAllDay(e){return e.eventRange.def.allDay}var DayTableSlicer=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.forceDayIfListItem=!0,t}return __extends(t,e),t.prototype.sliceRange=function(e,t){return t.sliceRange(e)},t}(Slicer),DayTable=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.slicer=new DayTableSlicer,t.tableRef=createRef(),t}return __extends(t,e),t.prototype.render=function(){var e=this.props,t=this.context;return createElement(Table,__assign$1({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))},t}(DateComponent),DayTableView=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDayTableModel=memoize(buildDayTableModel),t.headerRef=createRef(),t.tableRef=createRef(),t}return __extends(t,e),t.prototype.render=function(){var e=this,t=this.context,n=t.options,r=t.dateProfileGenerator,a=this.props,o=this.buildDayTableModel(a.dateProfile,r),i=n.dayHeaders&&createElement(DayHeader,{ref:this.headerRef,dateProfile:a.dateProfile,dates:o.headerDates,datesRepDistinctDays:1===o.rowCnt}),l=function(t){return createElement(DayTable,{ref:e.tableRef,dateProfile:a.dateProfile,dayTableModel:o,businessHours:a.businessHours,dateSelection:a.dateSelection,eventStore:a.eventStore,eventUiBases:a.eventUiBases,eventSelection:a.eventSelection,eventDrag:a.eventDrag,eventResize:a.eventResize,nextDayThreshold:n.nextDayThreshold,colGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,dayMaxEvents:n.dayMaxEvents,dayMaxEventRows:n.dayMaxEventRows,showWeekNumbers:n.weekNumbers,expandRows:!a.isHeightAuto,headerAlignElRef:e.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:a.forPrint})};return n.dayMinWidth?this.renderHScrollLayout(i,l,o.colCnt,n.dayMinWidth):this.renderSimpleLayout(i,l)},t}(TableView);function buildDayTableModel(e,t){var n=new DaySeriesModel(e.renderRange,t);return new DayTableModel(n,/year|month|week/.test(e.currentRangeUnit))}var TableDateProfileGenerator=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.buildRenderRange=function(t,n,r){var a,o=this.props.dateEnv,i=e.prototype.buildRenderRange.call(this,t,n,r),l=i.start,s=i.end;(/^(year|month)$/.test(n)&&(l=o.startOfWeek(l),(a=o.startOfWeek(s)).valueOf()!==s.valueOf()&&(s=addWeeks(a,1))),this.props.monthMode&&this.props.fixedWeekCount)&&(s=addWeeks(s,6-Math.ceil(diffWeeks(l,s))));return{start:l,end:s}},t}(DateProfileGenerator),main$3=createPlugin({initialView:"dayGridMonth",views:{dayGrid:{component:DayTableView,dateProfileGeneratorClass:TableDateProfileGenerator},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}}),AllDaySplitter=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.getKeyInfo=function(){return{allDay:{},timed:{}}},t.prototype.getKeysForDateSpan=function(e){return e.allDay?["allDay"]:["timed"]},t.prototype.getKeysForEventDef=function(e){return e.allDay?hasBgRendering(e)?["timed","allDay"]:["allDay"]:["timed"]},t}(Splitter),DEFAULT_SLAT_LABEL_FORMAT=createFormatter({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function TimeColsAxisCell(e){var t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return createElement(ViewContextType.Consumer,null,(function(n){if(!e.isLabeled)return createElement("td",{className:t.join(" "),"data-time":e.isoTimeStr});var r=n.dateEnv,a=n.options,o=n.viewApi,i=null==a.slotLabelFormat?DEFAULT_SLAT_LABEL_FORMAT:Array.isArray(a.slotLabelFormat)?createFormatter(a.slotLabelFormat[0]):createFormatter(a.slotLabelFormat),l={level:0,time:e.time,date:r.toDate(e.date),view:o,text:r.format(e.date,i)};return createElement(RenderHook,{hookProps:l,classNames:a.slotLabelClassNames,content:a.slotLabelContent,defaultContent:renderInnerContent$1,didMount:a.slotLabelDidMount,willUnmount:a.slotLabelWillUnmount},(function(n,r,a,o){return createElement("td",{ref:n,className:t.concat(r).join(" "),"data-time":e.isoTimeStr},createElement("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},createElement("div",{className:"fc-timegrid-slot-label-cushion fc-scrollgrid-shrink-cushion",ref:a},o)))}))}))}function renderInnerContent$1(e){return e.text}var TimeBodyAxis=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.render=function(){return this.props.slatMetas.map((function(e){return createElement("tr",{key:e.key},createElement(TimeColsAxisCell,__assign$1({},e)))}))},t}(BaseComponent),DEFAULT_WEEK_NUM_FORMAT=createFormatter({week:"short"}),AUTO_ALL_DAY_MAX_EVENT_ROWS=5,TimeColsView=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allDaySplitter=new AllDaySplitter,t.headerElRef=createRef(),t.rootElRef=createRef(),t.scrollerElRef=createRef(),t.state={slatCoords:null},t.handleScrollTopRequest=function(e){var n=t.scrollerElRef.current;n&&(n.scrollTop=e)},t.renderHeadAxis=function(e,n){void 0===n&&(n="");var r=t.context.options,a=t.props.dateProfile.renderRange,o=1===diffDays(a.start,a.end)?buildNavLinkAttrs(t.context,a.start,"week"):{};return r.weekNumbers&&"day"===e?createElement(WeekNumberRoot,{date:a.start,defaultFormat:DEFAULT_WEEK_NUM_FORMAT},(function(e,t,r,a){return createElement("th",{ref:e,"aria-hidden":!0,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(t).join(" ")},createElement("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame fc-timegrid-axis-frame-liquid",style:{height:n}},createElement("a",__assign$1({ref:r,className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner"},o),a)))})):createElement("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},createElement("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},t.renderTableRowAxis=function(e){var n=t.context,r=n.options,a=n.viewApi,o={text:r.allDayText,view:a};return createElement(RenderHook,{hookProps:o,classNames:r.allDayClassNames,content:r.allDayContent,defaultContent:renderAllDayInner$1,didMount:r.allDayDidMount,willUnmount:r.allDayWillUnmount},(function(t,n,r,a){return createElement("td",{ref:t,"aria-hidden":!0,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(n).join(" ")},createElement("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame"+(null==e?" fc-timegrid-axis-frame-liquid":""),style:{height:e}},createElement("span",{className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner",ref:r},a)))}))},t.handleSlatCoords=function(e){t.setState({slatCoords:e})},t}return __extends(t,e),t.prototype.renderSimpleLayout=function(e,t,n){var r=this.context,a=this.props,o=[],i=getStickyHeaderDates(r.options);return e&&o.push({type:"header",key:"header",isSticky:i,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),t&&(o.push({type:"body",key:"all-day",chunk:{content:t}}),o.push({type:"body",key:"all-day-divider",outerContent:createElement("tr",{role:"presentation",className:"fc-scrollgrid-section"},createElement("td",{className:"fc-timegrid-divider "+r.theme.getClass("tableCellShaded")}))})),o.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(r.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:n}}),createElement(ViewRoot,{viewSpec:r.viewSpec,elRef:this.rootElRef},(function(e,t){return createElement("div",{className:["fc-timegrid"].concat(t).join(" "),ref:e},createElement(SimpleScrollGrid,{liquid:!a.isHeightAuto&&!a.forPrint,collapsibleWidth:a.forPrint,cols:[{width:"shrink"}],sections:o}))}))},t.prototype.renderHScrollLayout=function(e,t,n,r,a,o,i){var l=this,s=this.context.pluginHooks.scrollGridImpl;if(!s)throw new Error("No ScrollGrid implementation");var u=this.context,c=this.props,d=!c.forPrint&&getStickyHeaderDates(u.options),f=!c.forPrint&&getStickyFooterScrollbar(u.options),p=[];e&&p.push({type:"header",key:"header",isSticky:d,syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(e){return createElement("tr",{role:"presentation"},l.renderHeadAxis("day",e.rowSyncHeights[0]))}},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),t&&(p.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(e){return createElement("tr",{role:"presentation"},l.renderTableRowAxis(e.rowSyncHeights[0]))}},{key:"cols",content:t}]}),p.push({key:"all-day-divider",type:"body",outerContent:createElement("tr",{role:"presentation",className:"fc-scrollgrid-section"},createElement("td",{colSpan:2,className:"fc-timegrid-divider "+u.theme.getClass("tableCellShaded")}))}));var h=u.options.nowIndicator;return p.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(u.options.expandRows),chunks:[{key:"axis",content:function(e){return createElement("div",{className:"fc-timegrid-axis-chunk"},createElement("table",{"aria-hidden":!0,style:{height:e.expandRows?e.clientHeight:""}},e.tableColGroupNode,createElement("tbody",null,createElement(TimeBodyAxis,{slatMetas:o}))),createElement("div",{className:"fc-timegrid-now-indicator-container"},createElement(NowTimer,{unit:h?"minute":"day"},(function(e){var t=h&&i&&i.safeComputeTop(e);return"number"==typeof t?createElement(NowIndicatorRoot,{isAxis:!0,date:e},(function(e,n,r,a){return createElement("div",{ref:e,className:["fc-timegrid-now-indicator-arrow"].concat(n).join(" "),style:{top:t}},a)})):null}))))}},{key:"cols",scrollerElRef:this.scrollerElRef,content:n}]}),f&&p.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:renderScrollShim},{key:"cols",content:renderScrollShim}]}),createElement(ViewRoot,{viewSpec:u.viewSpec,elRef:this.rootElRef},(function(e,t){return createElement("div",{className:["fc-timegrid"].concat(t).join(" "),ref:e},createElement(s,{liquid:!c.isHeightAuto&&!c.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:r,minWidth:a}]}],sections:p}))}))},t.prototype.getAllDayMaxEventProps=function(){var e=this.context.options,t=e.dayMaxEvents,n=e.dayMaxEventRows;return!0!==t&&!0!==n||(t=void 0,n=AUTO_ALL_DAY_MAX_EVENT_ROWS),{dayMaxEvents:t,dayMaxEventRows:n}},t}(DateComponent);function renderAllDayInner$1(e){return e.text}var TimeColsSlatsCoords=function(){function e(e,t,n){this.positions=e,this.dateProfile=t,this.slotDuration=n}return e.prototype.safeComputeTop=function(e){var t=this.dateProfile;if(rangeContainsMarker(t.currentRange,e)){var n=startOfDay(e),r=e.valueOf()-n.valueOf();if(r>=asRoughMs(t.slotMinTime)&&r<asRoughMs(t.slotMaxTime))return this.computeTimeTop(createDuration(r))}return null},e.prototype.computeDateTop=function(e,t){return t||(t=startOfDay(e)),this.computeTimeTop(createDuration(e.valueOf()-t.valueOf()))},e.prototype.computeTimeTop=function(e){var t,n,r=this.positions,a=this.dateProfile,o=r.els.length,i=(e.milliseconds-asRoughMs(a.slotMinTime))/asRoughMs(this.slotDuration);return i=Math.max(0,i),i=Math.min(o,i),t=Math.floor(i),n=i-(t=Math.min(t,o-1)),r.tops[t]+r.getHeight(t)*n},e}(),TimeColsSlatsBody=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r=e.slatElRefs;return createElement("tbody",null,e.slatMetas.map((function(a,o){var i={time:a.time,date:t.dateEnv.toDate(a.date),view:t.viewApi},l=["fc-timegrid-slot","fc-timegrid-slot-lane",a.isLabeled?"":"fc-timegrid-slot-minor"];return createElement("tr",{key:a.key,ref:r.createRef(a.key)},e.axis&&createElement(TimeColsAxisCell,__assign$1({},a)),createElement(RenderHook,{hookProps:i,classNames:n.slotLaneClassNames,content:n.slotLaneContent,didMount:n.slotLaneDidMount,willUnmount:n.slotLaneWillUnmount},(function(e,t,n,r){return createElement("td",{ref:e,className:l.concat(t).join(" "),"data-time":a.isoTimeStr},r)})))})))},t}(BaseComponent),TimeColsSlats=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=createRef(),t.slatElRefs=new RefMap,t}return __extends(t,e),t.prototype.render=function(){var e=this.props,t=this.context;return createElement("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},createElement("table",{"aria-hidden":!0,className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,createElement(TimeColsSlatsBody,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))},t.prototype.componentDidMount=function(){this.updateSizing()},t.prototype.componentDidUpdate=function(){this.updateSizing()},t.prototype.componentWillUnmount=function(){this.props.onCoords&&this.props.onCoords(null)},t.prototype.updateSizing=function(){var e=this.context,t=this.props;t.onCoords&&null!==t.clientWidth&&(this.rootElRef.current.offsetHeight&&t.onCoords(new TimeColsSlatsCoords(new PositionCache(this.rootElRef.current,collectSlatEls(this.slatElRefs.currentMap,t.slatMetas),!1,!0),this.props.dateProfile,e.options.slotDuration)))},t}(BaseComponent);function collectSlatEls(e,t){return t.map((function(t){return e[t.key]}))}function splitSegsByCol(e,t){var n,r=[];for(n=0;n<t;n+=1)r.push([]);if(e)for(n=0;n<e.length;n+=1)r[e[n].col].push(e[n]);return r}function splitInteractionByCol(e,t){var n=[];if(e){for(i=0;i<t;i+=1)n[i]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(var r=0,a=e.segs;r<a.length;r++){var o=a[r];n[o.col].segs.push(o)}}else for(var i=0;i<t;i+=1)n[i]=null;return n}var TimeColMoreLink=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=createRef(),t}return __extends(t,e),t.prototype.render=function(){var e=this,t=this.props;return createElement(MoreLinkRoot,{allDayDate:null,moreCnt:t.hiddenSegs.length,allSegs:t.hiddenSegs,hiddenSegs:t.hiddenSegs,alignmentElRef:this.rootElRef,defaultContent:renderMoreLinkInner,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,todayRange:t.todayRange,popoverContent:function(){return renderPlainFgSegs(t.hiddenSegs,t)}},(function(n,r,a,o,i,l,s,u){return createElement("a",{ref:function(t){setRef(n,t),setRef(e.rootElRef,t)},className:["fc-timegrid-more-link"].concat(r).join(" "),style:{top:t.top,bottom:t.bottom},onClick:i,title:l,"aria-expanded":s,"aria-controls":u},createElement("div",{ref:a,className:"fc-timegrid-more-link-inner fc-sticky"},o))}))},t}(BaseComponent);function renderMoreLinkInner(e){return e.shortText}function buildPositioning(e,t,n){var r=new SegHierarchy;null!=t&&(r.strictOrder=t),null!=n&&(r.maxStackCnt=n);var a=groupIntersectingEntries(r.addSegs(e)),o=buildWeb(r);return{segRects:webToRects(o=stretchWeb(o,1)),hiddenGroups:a}}function buildWeb(e){var t=e.entriesByLevel,n=cacheable((function(e,t){return e+":"+t}),(function(r,a){var o=buildNodes(findNextLevelSegs(e,r,a),n),i=t[r][a];return[__assign$1(__assign$1({},i),{nextLevelNodes:o[0]}),i.thickness+o[1]]}));return buildNodes(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n)[0]}function buildNodes(e,t){if(!e)return[[],0];for(var n=e.level,r=e.lateralStart,a=e.lateralEnd,o=r,i=[];o<a;)i.push(t(n,o)),o+=1;return i.sort(cmpDescPressures),[i.map(extractNode),i[0][1]]}function cmpDescPressures(e,t){return t[1]-e[1]}function extractNode(e){return e[0]}function findNextLevelSegs(e,t,n){for(var r=e.levelCoords,a=e.entriesByLevel,o=a[t][n],i=r[t]+o.thickness,l=r.length,s=t;s<l&&r[s]<i;s+=1);for(;s<l;s+=1){for(var u=a[s],c=void 0,d=binarySearch(u,o.span.start,getEntrySpanEnd),f=d[0]+d[1],p=f;(c=u[p])&&c.span.start<o.span.end;)p+=1;if(f<p)return{level:s,lateralStart:f,lateralEnd:p}}return null}function stretchWeb(e,t){var n=cacheable((function(e,t,n){return buildEntryKey(e)}),(function(e,r,a){var o,i=e.nextLevelNodes,l=e.thickness,s=l+a,u=l/s,c=[];if(i.length)for(var d=0,f=i;d<f.length;d++){var p=f[d];if(void 0===o){o=(h=n(p,r,s))[0],c.push(h[1])}else{var h=n(p,o,0);c.push(h[1])}}else o=t;var m=(o-r)*u;return[o-m,__assign$1(__assign$1({},e),{thickness:m,nextLevelNodes:c})]}));return e.map((function(e){return n(e,0,0)[1]}))}function webToRects(e){var t=[],n=cacheable((function(e,t,n){return buildEntryKey(e)}),(function(e,n,a){var o=__assign$1(__assign$1({},e),{levelCoord:n,stackDepth:a,stackForward:0});return t.push(o),o.stackForward=r(e.nextLevelNodes,n+e.thickness,a+1)+1}));function r(e,t,r){for(var a=0,o=0,i=e;o<i.length;o++){var l=i[o];a=Math.max(n(l,t,r),a)}return a}return r(e,0,0),t}function cacheable(e,t){var n={};return function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];var o=e.apply(void 0,r);return o in n?n[o]:n[o]=t.apply(void 0,r)}}function computeSegVCoords(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=0);var a=[];if(n)for(var o=0;o<e.length;o+=1){var i=e[o],l=n.computeDateTop(i.start,t),s=Math.max(l+(r||0),n.computeDateTop(i.end,t));a.push({start:Math.round(l),end:Math.round(s)})}return a}function computeFgSegPlacements(e,t,n,r){for(var a=[],o=[],i=0;i<e.length;i+=1){var l=t[i];l?a.push({index:i,thickness:1,span:l}):o.push(e[i])}for(var s=buildPositioning(a,n,r),u=s.segRects,c=s.hiddenGroups,d=[],f=0,p=u;f<p.length;f++){var h=p[f];d.push({seg:e[h.index],rect:h})}for(var m=0,v=o;m<v.length;m++){var g=v[m];d.push({seg:g,rect:null})}return{segPlacements:d,hiddenGroups:c}}var DEFAULT_TIME_FORMAT$1=createFormatter({hour:"numeric",minute:"2-digit",meridiem:!1}),TimeColEvent=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.render=function(){var e=["fc-timegrid-event","fc-v-event"];return this.props.isShort&&e.push("fc-timegrid-event-short"),createElement(StandardEvent,__assign$1({},this.props,{defaultTimeFormat:DEFAULT_TIME_FORMAT$1,extraClassNames:e}))},t}(BaseComponent),TimeColMisc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.render=function(){var e=this.props;return createElement(DayCellContent,{date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraHookProps:e.extraHookProps},(function(e,t){return t&&createElement("div",{className:"fc-timegrid-col-misc",ref:e},t)}))},t}(BaseComponent),TimeCol=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sortEventSegs=memoize(sortEventSegs),t}return __extends(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.context,r=n.options.selectMirror,a=t.eventDrag&&t.eventDrag.segs||t.eventResize&&t.eventResize.segs||r&&t.dateSelectionSegs||[],o=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{},i=this.sortEventSegs(t.fgEventSegs,n.options.eventOrder);return createElement(DayCellRoot,{elRef:t.elRef,date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,extraHookProps:t.extraHookProps},(function(n,l,s){return createElement("td",__assign$1({ref:n,role:"gridcell",className:["fc-timegrid-col"].concat(l,t.extraClassNames||[]).join(" ")},s,t.extraDataAttrs),createElement("div",{className:"fc-timegrid-col-frame"},createElement("div",{className:"fc-timegrid-col-bg"},e.renderFillSegs(t.businessHourSegs,"non-business"),e.renderFillSegs(t.bgEventSegs,"bg-event"),e.renderFillSegs(t.dateSelectionSegs,"highlight")),createElement("div",{className:"fc-timegrid-col-events"},e.renderFgSegs(i,o,!1,!1,!1)),createElement("div",{className:"fc-timegrid-col-events"},e.renderFgSegs(a,{},Boolean(t.eventDrag),Boolean(t.eventResize),Boolean(r))),createElement("div",{className:"fc-timegrid-now-indicator-container"},e.renderNowIndicator(t.nowIndicatorSegs)),createElement(TimeColMisc,{date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,extraHookProps:t.extraHookProps})))}))},t.prototype.renderFgSegs=function(e,t,n,r,a){var o=this.props;return o.forPrint?renderPlainFgSegs(e,o):this.renderPositionedFgSegs(e,t,n,r,a)},t.prototype.renderPositionedFgSegs=function(e,t,n,r,a){var o=this,i=this.context.options,l=i.eventMaxStack,s=i.eventShortHeight,u=i.eventOrderStrict,c=i.eventMinHeight,d=this.props,f=d.date,p=d.slatCoords,h=d.eventSelection,m=d.todayRange,v=d.nowDate,g=n||r||a,y=computeFgSegPlacements(e,computeSegVCoords(e,f,p,c),u,l),b=y.segPlacements,w=y.hiddenGroups;return createElement(Fragment,null,this.renderHiddenGroups(w,e),b.map((function(e){var i=e.seg,l=e.rect,u=i.eventRange.instance.instanceId,c=g||Boolean(!t[u]&&l),d=computeSegVStyle(l&&l.span),f=!g&&l?o.computeSegHStyle(l):{left:0,right:0},p=Boolean(l)&&l.stackForward>0,y=Boolean(l)&&l.span.end-l.span.start<s;return createElement("div",{className:"fc-timegrid-event-harness"+(p?" fc-timegrid-event-harness-inset":""),key:u,style:__assign$1(__assign$1({visibility:c?"":"hidden"},d),f)},createElement(TimeColEvent,__assign$1({seg:i,isDragging:n,isResizing:r,isDateSelecting:a,isSelected:u===h,isShort:y},getSegMeta(i,m,v))))})))},t.prototype.renderHiddenGroups=function(e,t){var n=this.props,r=n.extraDateSpan,a=n.dateProfile,o=n.todayRange,i=n.nowDate,l=n.eventSelection,s=n.eventDrag,u=n.eventResize;return createElement(Fragment,null,e.map((function(e){var n=computeSegVStyle(e.span),c=compileSegsFromEntries(e.entries,t);return createElement(TimeColMoreLink,{key:buildIsoString(computeEarliestSegStart(c)),hiddenSegs:c,top:n.top,bottom:n.bottom,extraDateSpan:r,dateProfile:a,todayRange:o,nowDate:i,eventSelection:l,eventDrag:s,eventResize:u})})))},t.prototype.renderFillSegs=function(e,t){var n=this.props,r=this.context,a=computeSegVCoords(e,n.date,n.slatCoords,r.options.eventMinHeight).map((function(r,a){var o=e[a];return createElement("div",{key:buildEventRangeKey(o.eventRange),className:"fc-timegrid-bg-harness",style:computeSegVStyle(r)},"bg-event"===t?createElement(BgEvent,__assign$1({seg:o},getSegMeta(o,n.todayRange,n.nowDate))):renderFill(t))}));return createElement(Fragment,null,a)},t.prototype.renderNowIndicator=function(e){var t=this.props,n=t.slatCoords,r=t.date;return n?e.map((function(e,t){return createElement(NowIndicatorRoot,{isAxis:!1,date:r,key:t},(function(t,a,o,i){return createElement("div",{ref:t,className:["fc-timegrid-now-indicator-line"].concat(a).join(" "),style:{top:n.computeDateTop(e.start,r)}},i)}))})):null},t.prototype.computeSegHStyle=function(e){var t,n,r=this.context,a=r.isRtl,o=r.options.slotEventOverlap,i=e.levelCoord,l=e.levelCoord+e.thickness;o&&(l=Math.min(1,i+2*(l-i))),a?(t=1-l,n=i):(t=i,n=1-l);var s={zIndex:e.stackDepth+1,left:100*t+"%",right:100*n+"%"};return o&&!e.stackForward&&(s[a?"marginLeft":"marginRight"]=20),s},t}(BaseComponent);function renderPlainFgSegs(e,t){var n=t.todayRange,r=t.nowDate,a=t.eventSelection,o=t.eventDrag,i=t.eventResize,l=(o?o.affectedInstances:null)||(i?i.affectedInstances:null)||{};return createElement(Fragment,null,e.map((function(e){var t=e.eventRange.instance.instanceId;return createElement("div",{key:t,style:{visibility:l[t]?"hidden":""}},createElement(TimeColEvent,__assign$1({seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:t===a,isShort:!1},getSegMeta(e,n,r))))})))}function computeSegVStyle(e){return e?{top:e.start,bottom:-e.end}:{top:"",bottom:""}}function compileSegsFromEntries(e,t){return e.map((function(e){return t[e.index]}))}var TimeColsContent=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.splitFgEventSegs=memoize(splitSegsByCol),t.splitBgEventSegs=memoize(splitSegsByCol),t.splitBusinessHourSegs=memoize(splitSegsByCol),t.splitNowIndicatorSegs=memoize(splitSegsByCol),t.splitDateSelectionSegs=memoize(splitSegsByCol),t.splitEventDrag=memoize(splitInteractionByCol),t.splitEventResize=memoize(splitInteractionByCol),t.rootElRef=createRef(),t.cellElRefs=new RefMap,t}return __extends(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.context.options.nowIndicator&&t.slatCoords&&t.slatCoords.safeComputeTop(t.nowDate),r=t.cells.length,a=this.splitFgEventSegs(t.fgEventSegs,r),o=this.splitBgEventSegs(t.bgEventSegs,r),i=this.splitBusinessHourSegs(t.businessHourSegs,r),l=this.splitNowIndicatorSegs(t.nowIndicatorSegs,r),s=this.splitDateSelectionSegs(t.dateSelectionSegs,r),u=this.splitEventDrag(t.eventDrag,r),c=this.splitEventResize(t.eventResize,r);return createElement("div",{className:"fc-timegrid-cols",ref:this.rootElRef},createElement("table",{role:"presentation",style:{minWidth:t.tableMinWidth,width:t.clientWidth}},t.tableColGroupNode,createElement("tbody",{role:"presentation"},createElement("tr",{role:"row"},t.axis&&createElement("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},createElement("div",{className:"fc-timegrid-col-frame"},createElement("div",{className:"fc-timegrid-now-indicator-container"},"number"==typeof n&&createElement(NowIndicatorRoot,{isAxis:!0,date:t.nowDate},(function(e,t,r,a){return createElement("div",{ref:e,className:["fc-timegrid-now-indicator-arrow"].concat(t).join(" "),style:{top:n}},a)}))))),t.cells.map((function(n,r){return createElement(TimeCol,{key:n.key,elRef:e.cellElRefs.createRef(n.key),dateProfile:t.dateProfile,date:n.date,nowDate:t.nowDate,todayRange:t.todayRange,extraHookProps:n.extraHookProps,extraDataAttrs:n.extraDataAttrs,extraClassNames:n.extraClassNames,extraDateSpan:n.extraDateSpan,fgEventSegs:a[r],bgEventSegs:o[r],businessHourSegs:i[r],nowIndicatorSegs:l[r],dateSelectionSegs:s[r],eventDrag:u[r],eventResize:c[r],slatCoords:t.slatCoords,eventSelection:t.eventSelection,forPrint:t.forPrint})}))))))},t.prototype.componentDidMount=function(){this.updateCoords()},t.prototype.componentDidUpdate=function(){this.updateCoords()},t.prototype.updateCoords=function(){var e=this.props;e.onColCoords&&null!==e.clientWidth&&e.onColCoords(new PositionCache(this.rootElRef.current,collectCellEls(this.cellElRefs.currentMap,e.cells),!0,!1))},t}(BaseComponent);function collectCellEls(e,t){return t.map((function(t){return e[t.key]}))}var TimeCols=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.processSlotOptions=memoize(processSlotOptions),t.state={slatCoords:null},t.handleRootEl=function(e){e?t.context.registerInteractiveComponent(t,{el:e,isHitComboAllowed:t.props.isHitComboAllowed}):t.context.unregisterInteractiveComponent(t)},t.handleScrollRequest=function(e){var n=t.props.onScrollTopRequest,r=t.state.slatCoords;if(n&&r){if(e.time){var a=r.computeTimeTop(e.time);(a=Math.ceil(a))&&(a+=1),n(a)}return!0}return!1},t.handleColCoords=function(e){t.colCoords=e},t.handleSlatCoords=function(e){t.setState({slatCoords:e}),t.props.onSlatCoords&&t.props.onSlatCoords(e)},t}return __extends(t,e),t.prototype.render=function(){var e=this.props,t=this.state;return createElement("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},createElement(TimeColsSlats,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),createElement(TimeColsContent,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:t.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))},t.prototype.componentDidMount=function(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)},t.prototype.componentDidUpdate=function(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)},t.prototype.componentWillUnmount=function(){this.scrollResponder.detach()},t.prototype.queryHit=function(e,t){var n=this.context,r=n.dateEnv,a=n.options,o=this.colCoords,i=this.props.dateProfile,l=this.state.slatCoords,s=this.processSlotOptions(this.props.slotDuration,a.snapDuration),u=s.snapDuration,c=s.snapsPerSlot,d=o.leftToIndex(e),f=l.positions.topToIndex(t);if(null!=d&&null!=f){var p=this.props.cells[d],h=l.positions.tops[f],m=l.positions.getHeight(f),v=(t-h)/m,g=f*c+Math.floor(v*c),y=this.props.cells[d].date,b=addDurations(i.slotMinTime,multiplyDuration(u,g)),w=r.add(y,b),S=r.add(w,u);return{dateProfile:i,dateSpan:__assign$1({range:{start:w,end:S},allDay:!1},p.extraDateSpan),dayEl:o.els[d],rect:{left:o.lefts[d],right:o.rights[d],top:h,bottom:h+m},layer:0}}return null},t}(DateComponent);function processSlotOptions(e,t){var n=t||e,r=wholeDivideDurations(e,n);return null===r&&(n=e,r=1),{snapDuration:n,snapsPerSlot:r}}var DayTimeColsSlicer=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.sliceRange=function(e,t){for(var n=[],r=0;r<t.length;r+=1){var a=intersectRanges(e,t[r]);a&&n.push({start:a.start,end:a.end,isStart:a.start.valueOf()===e.start.valueOf(),isEnd:a.end.valueOf()===e.end.valueOf(),col:r})}return n},t}(Slicer),DayTimeCols=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDayRanges=memoize(buildDayRanges),t.slicer=new DayTimeColsSlicer,t.timeColsRef=createRef(),t}return __extends(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.context,r=t.dateProfile,a=t.dayTableModel,o=n.options.nowIndicator,i=this.buildDayRanges(a,r,n.dateEnv);return createElement(NowTimer,{unit:o?"minute":"day"},(function(l,s){return createElement(TimeCols,__assign$1({ref:e.timeColsRef},e.slicer.sliceProps(t,r,null,n,i),{forPrint:t.forPrint,axis:t.axis,dateProfile:r,slatMetas:t.slatMetas,slotDuration:t.slotDuration,cells:a.cells[0],tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,expandRows:t.expandRows,nowDate:l,nowIndicatorSegs:o&&e.slicer.sliceNowDate(l,n,i),todayRange:s,onScrollTopRequest:t.onScrollTopRequest,onSlatCoords:t.onSlatCoords}))}))},t}(DateComponent);function buildDayRanges(e,t,n){for(var r=[],a=0,o=e.headerDates;a<o.length;a++){var i=o[a];r.push({start:n.add(i,t.slotMinTime),end:n.add(i,t.slotMaxTime)})}return r}var STOCK_SUB_DURATIONS=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function buildSlatMetas(e,t,n,r,a){for(var o=new Date(0),i=e,l=createDuration(0),s=n||computeLabelInterval(r),u=[];asRoughMs(i)<asRoughMs(t);){var c=a.add(o,i),d=null!==wholeDivideDurations(l,s);u.push({date:c,time:i,key:c.toISOString(),isoTimeStr:formatIsoTimeString(c),isLabeled:d}),i=addDurations(i,r),l=addDurations(l,r)}return u}function computeLabelInterval(e){var t,n,r;for(t=STOCK_SUB_DURATIONS.length-1;t>=0;t-=1)if(null!==(r=wholeDivideDurations(n=createDuration(STOCK_SUB_DURATIONS[t]),e))&&r>1)return n;return e}var DayTimeColsView=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildTimeColsModel=memoize(buildTimeColsModel),t.buildSlatMetas=memoize(buildSlatMetas),t}return __extends(t,e),t.prototype.render=function(){var e=this,t=this.context,n=t.options,r=t.dateEnv,a=t.dateProfileGenerator,o=this.props,i=o.dateProfile,l=this.buildTimeColsModel(i,a),s=this.allDaySplitter.splitProps(o),u=this.buildSlatMetas(i.slotMinTime,i.slotMaxTime,n.slotLabelInterval,n.slotDuration,r),c=n.dayMinWidth,d=!c,f=c,p=n.dayHeaders&&createElement(DayHeader,{dates:l.headerDates,dateProfile:i,datesRepDistinctDays:!0,renderIntro:d?this.renderHeadAxis:null}),h=!1!==n.allDaySlot&&function(t){return createElement(DayTable,__assign$1({},s.allDay,{dateProfile:i,dayTableModel:l,nextDayThreshold:n.nextDayThreshold,tableMinWidth:t.tableMinWidth,colGroupNode:t.tableColGroupNode,renderRowIntro:d?e.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:e.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:o.forPrint},e.getAllDayMaxEventProps()))},m=function(t){return createElement(DayTimeCols,__assign$1({},s.timed,{dayTableModel:l,dateProfile:i,axis:d,slotDuration:n.slotDuration,slatMetas:u,forPrint:o.forPrint,tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,onSlatCoords:e.handleSlatCoords,expandRows:t.expandRows,onScrollTopRequest:e.handleScrollTopRequest}))};return f?this.renderHScrollLayout(p,h,m,l.colCnt,c,u,this.state.slatCoords):this.renderSimpleLayout(p,h,m)},t}(TimeColsView);function buildTimeColsModel(e,t){var n=new DaySeriesModel(e.renderRange,t);return new DayTableModel(n,!1)}var OPTION_REFINERS$2={allDaySlot:Boolean},main$2=createPlugin({initialView:"timeGridWeek",optionRefiners:OPTION_REFINERS$2,views:{timeGrid:{component:DayTimeColsView,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});
|
|
62
62
|
/*!
|
|
63
63
|
FullCalendar v5.11.3
|
|
64
64
|
Docs & License: https://fullcalendar.io/
|
|
65
65
|
(c) 2022 Adam Shaw
|
|
66
66
|
*/
|
|
67
|
-
Ha.touchMouseIgnoreWait=500;var il=0,ll=0,sl=!1,ul=function(){function e(e){var t=this;this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=function(e){if(!t.shouldIgnoreMouse()&&function(e){return 0===e.button&&!e.ctrlKey}(e)&&t.tryStart(e)){var n=t.createEventFromMouse(e,!0);t.emitter.trigger("pointerdown",n),t.initScrollWatch(n),t.shouldIgnoreMove||document.addEventListener("mousemove",t.handleMouseMove),document.addEventListener("mouseup",t.handleMouseUp)}},this.handleMouseMove=function(e){var n=t.createEventFromMouse(e);t.recordCoords(n),t.emitter.trigger("pointermove",n)},this.handleMouseUp=function(e){document.removeEventListener("mousemove",t.handleMouseMove),document.removeEventListener("mouseup",t.handleMouseUp),t.emitter.trigger("pointerup",t.createEventFromMouse(e)),t.cleanup()},this.handleTouchStart=function(e){if(t.tryStart(e)){t.isTouchDragging=!0;var n=t.createEventFromTouch(e,!0);t.emitter.trigger("pointerdown",n),t.initScrollWatch(n);var r=e.target;t.shouldIgnoreMove||r.addEventListener("touchmove",t.handleTouchMove),r.addEventListener("touchend",t.handleTouchEnd),r.addEventListener("touchcancel",t.handleTouchEnd),window.addEventListener("scroll",t.handleTouchScroll,!0)}},this.handleTouchMove=function(e){var n=t.createEventFromTouch(e);t.recordCoords(n),t.emitter.trigger("pointermove",n)},this.handleTouchEnd=function(e){if(t.isDragging){var n=e.target;n.removeEventListener("touchmove",t.handleTouchMove),n.removeEventListener("touchend",t.handleTouchEnd),n.removeEventListener("touchcancel",t.handleTouchEnd),window.removeEventListener("scroll",t.handleTouchScroll,!0),t.emitter.trigger("pointerup",t.createEventFromTouch(e)),t.cleanup(),t.isTouchDragging=!1,il+=1,setTimeout((function(){il-=1}),Ha.touchMouseIgnoreWait)}},this.handleTouchScroll=function(){t.wasTouchScroll=!0},this.handleScroll=function(e){if(!t.shouldIgnoreMove){var n=window.pageXOffset-t.prevScrollX+t.prevPageX,r=window.pageYOffset-t.prevScrollY+t.prevPageY;t.emitter.trigger("pointermove",{origEvent:e,isTouch:t.isTouchDragging,subjectEl:t.subjectEl,pageX:n,pageY:r,deltaX:n-t.origPageX,deltaY:r-t.origPageY})}},this.containerEl=e,this.emitter=new dr,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),1===(ll+=1)&&window.addEventListener("touchmove",cl,{passive:!1})}return e.prototype.destroy=function(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),(ll-=1)||window.removeEventListener("touchmove",cl,{passive:!1})},e.prototype.tryStart=function(e){var t=this.querySubjectEl(e),n=e.target;return!(!t||this.handleSelector&&!U(n,this.handleSelector))&&(this.subjectEl=t,this.isDragging=!0,this.wasTouchScroll=!1,!0)},e.prototype.cleanup=function(){sl=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()},e.prototype.querySubjectEl=function(e){return this.selector?U(e.target,this.selector):this.containerEl},e.prototype.shouldIgnoreMouse=function(){return il||this.isTouchDragging},e.prototype.cancelTouchScroll=function(){this.isDragging&&(sl=!0)},e.prototype.initScrollWatch=function(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))},e.prototype.recordCoords=function(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)},e.prototype.destroyScrollWatch=function(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)},e.prototype.createEventFromMouse=function(e,t){var n=0,r=0;return t?(this.origPageX=e.pageX,this.origPageY=e.pageY):(n=e.pageX-this.origPageX,r=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:n,deltaY:r}},e.prototype.createEventFromTouch=function(e,t){var n,r,a=e.touches,o=0,i=0;return a&&a.length?(n=a[0].pageX,r=a[0].pageY):(n=e.pageX,r=e.pageY),t?(this.origPageX=n,this.origPageY=r):(o=n-this.origPageX,i=r-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:n,pageY:r,deltaX:o,deltaY:i}},e}();function cl(e){sl&&e.preventDefault()}var dl=function(){function e(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}return e.prototype.start=function(e,t,n){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.pageXOffset,this.origScreenY=n-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()},e.prototype.handleMove=function(e,t){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=t-window.pageYOffset-this.origScreenY,this.updateElPosition()},e.prototype.setIsVisible=function(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)},e.prototype.stop=function(e,t){var n=this,r=function(){n.cleanup(),t()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(r,this.revertDuration):setTimeout(r,0)},e.prototype.doRevertAnimation=function(e,t){var n=this.mirrorEl,r=this.sourceEl.getBoundingClientRect();n.style.transition="top "+t+"ms,left "+t+"ms",B(n,{left:r.left,top:r.top}),function(e,t){var n=function(r){t(r),Z.forEach((function(t){e.removeEventListener(t,n)}))};Z.forEach((function(t){e.addEventListener(t,n)}))}(n,(function(){n.style.transition="",e()}))},e.prototype.cleanup=function(){this.mirrorEl&&(j(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null},e.prototype.updateElPosition=function(){this.sourceEl&&this.isVisible&&B(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})},e.prototype.getMirrorEl=function(){var e=this.sourceElRect,t=this.mirrorEl;return t||((t=this.mirrorEl=this.sourceEl.cloneNode(!0)).classList.add("fc-unselectable"),t.classList.add("fc-event-dragging"),B(t,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(t)),t},e}(),fl=function(e){function n(t,n){var r=e.call(this)||this;return r.handleScroll=function(){r.scrollTop=r.scrollController.getScrollTop(),r.scrollLeft=r.scrollController.getScrollLeft(),r.handleScrollChange()},r.scrollController=t,r.doesListening=n,r.scrollTop=r.origScrollTop=t.getScrollTop(),r.scrollLeft=r.origScrollLeft=t.getScrollLeft(),r.scrollWidth=t.getScrollWidth(),r.scrollHeight=t.getScrollHeight(),r.clientWidth=t.getClientWidth(),r.clientHeight=t.getClientHeight(),r.clientRect=r.computeClientRect(),r.doesListening&&r.getEventTarget().addEventListener("scroll",r.handleScroll),r}return t(n,e),n.prototype.destroy=function(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)},n.prototype.getScrollTop=function(){return this.scrollTop},n.prototype.getScrollLeft=function(){return this.scrollLeft},n.prototype.setScrollTop=function(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())},n.prototype.setScrollLeft=function(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())},n.prototype.getClientWidth=function(){return this.clientWidth},n.prototype.getClientHeight=function(){return this.clientHeight},n.prototype.getScrollWidth=function(){return this.scrollWidth},n.prototype.getScrollHeight=function(){return this.scrollHeight},n.prototype.handleScrollChange=function(){},n}(pr),pl=function(e){function n(t,n){return e.call(this,new hr(t),n)||this}return t(n,e),n.prototype.getEventTarget=function(){return this.scrollController.el},n.prototype.computeClientRect=function(){return sr(this.scrollController.el)},n}(fl),hl=function(e){function n(t){return e.call(this,new vr,t)||this}return t(n,e),n.prototype.getEventTarget=function(){return window},n.prototype.computeClientRect=function(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}},n.prototype.handleScrollChange=function(){this.clientRect=this.computeClientRect()},n}(fl),vl="function"==typeof performance?performance.now:Date.now,ml=function(){function e(){var e=this;this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=function(){if(e.isAnimating){var t=e.computeBestEdge(e.pointerScreenX+window.pageXOffset,e.pointerScreenY+window.pageYOffset);if(t){var n=vl();e.handleSide(t,(n-e.msSinceRequest)/1e3),e.requestAnimation(n)}else e.isAnimating=!1}}}return e.prototype.start=function(e,t,n){this.isEnabled&&(this.scrollCaches=this.buildCaches(n),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,t))},e.prototype.handleMove=function(e,t){if(this.isEnabled){var n=e-window.pageXOffset,r=t-window.pageYOffset,a=null===this.pointerScreenY?0:r-this.pointerScreenY,o=null===this.pointerScreenX?0:n-this.pointerScreenX;a<0?this.everMovedUp=!0:a>0&&(this.everMovedDown=!0),o<0?this.everMovedLeft=!0:o>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=r,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(vl()))}},e.prototype.stop=function(){if(this.isEnabled){this.isAnimating=!1;for(var e=0,t=this.scrollCaches;e<t.length;e++){t[e].destroy()}this.scrollCaches=null}},e.prototype.requestAnimation=function(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)},e.prototype.handleSide=function(e,t){var n=e.scrollCache,r=this.edgeThreshold,a=r-e.distance,o=a*a/(r*r)*this.maxVelocity*t,i=1;switch(e.name){case"left":i=-1;case"right":n.setScrollLeft(n.getScrollLeft()+o*i);break;case"top":i=-1;case"bottom":n.setScrollTop(n.getScrollTop()+o*i)}},e.prototype.computeBestEdge=function(e,t){for(var n=this.edgeThreshold,r=null,a=0,o=this.scrollCaches||[];a<o.length;a++){var i=o[a],l=i.clientRect,s=e-l.left,u=l.right-e,c=t-l.top,d=l.bottom-t;s>=0&&u>=0&&c>=0&&d>=0&&(c<=n&&this.everMovedUp&&i.canScrollUp()&&(!r||r.distance>c)&&(r={scrollCache:i,name:"top",distance:c}),d<=n&&this.everMovedDown&&i.canScrollDown()&&(!r||r.distance>d)&&(r={scrollCache:i,name:"bottom",distance:d}),s<=n&&this.everMovedLeft&&i.canScrollLeft()&&(!r||r.distance>s)&&(r={scrollCache:i,name:"left",distance:s}),u<=n&&this.everMovedRight&&i.canScrollRight()&&(!r||r.distance>u)&&(r={scrollCache:i,name:"right",distance:u}))}return r},e.prototype.buildCaches=function(e){return this.queryScrollEls(e).map((function(e){return e===window?new hl(!1):new pl(e,!1)}))},e.prototype.queryScrollEls=function(e){for(var t=[],n=0,r=this.scrollQuery;n<r.length;n++){var a=r[n];"object"==typeof a?t.push(a):t.push.apply(t,Array.prototype.slice.call(Y(e).querySelectorAll(a)))}return t},e}(),gl=function(e){function n(t,n){var r=e.call(this,t)||this;r.containerEl=t,r.delay=null,r.minDistance=0,r.touchScrollAllowed=!0,r.mirrorNeedsRevert=!1,r.isInteracting=!1,r.isDragging=!1,r.isDelayEnded=!1,r.isDistanceSurpassed=!1,r.delayTimeoutId=null,r.onPointerDown=function(e){var t;r.isDragging||(r.isInteracting=!0,r.isDelayEnded=!1,r.isDistanceSurpassed=!1,(t=document.body).classList.add("fc-unselectable"),t.addEventListener("selectstart",Q),function(e){e.addEventListener("contextmenu",Q)}(document.body),e.isTouch||e.origEvent.preventDefault(),r.emitter.trigger("pointerdown",e),r.isInteracting&&!r.pointer.shouldIgnoreMove&&(r.mirror.setIsVisible(!1),r.mirror.start(e.subjectEl,e.pageX,e.pageY),r.startDelay(e),r.minDistance||r.handleDistanceSurpassed(e)))},r.onPointerMove=function(e){if(r.isInteracting){if(r.emitter.trigger("pointermove",e),!r.isDistanceSurpassed){var t=r.minDistance,n=e.deltaX,a=e.deltaY;n*n+a*a>=t*t&&r.handleDistanceSurpassed(e)}r.isDragging&&("scroll"!==e.origEvent.type&&(r.mirror.handleMove(e.pageX,e.pageY),r.autoScroller.handleMove(e.pageX,e.pageY)),r.emitter.trigger("dragmove",e))}},r.onPointerUp=function(e){var t;r.isInteracting&&(r.isInteracting=!1,(t=document.body).classList.remove("fc-unselectable"),t.removeEventListener("selectstart",Q),function(e){e.removeEventListener("contextmenu",Q)}(document.body),r.emitter.trigger("pointerup",e),r.isDragging&&(r.autoScroller.stop(),r.tryStopDrag(e)),r.delayTimeoutId&&(clearTimeout(r.delayTimeoutId),r.delayTimeoutId=null))};var a=r.pointer=new ul(t);return a.emitter.on("pointerdown",r.onPointerDown),a.emitter.on("pointermove",r.onPointerMove),a.emitter.on("pointerup",r.onPointerUp),n&&(a.selector=n),r.mirror=new dl,r.autoScroller=new ml,r}return t(n,e),n.prototype.destroy=function(){this.pointer.destroy(),this.onPointerUp({})},n.prototype.startDelay=function(e){var t=this;"number"==typeof this.delay?this.delayTimeoutId=setTimeout((function(){t.delayTimeoutId=null,t.handleDelayEnd(e)}),this.delay):this.handleDelayEnd(e)},n.prototype.handleDelayEnd=function(e){this.isDelayEnded=!0,this.tryStartDrag(e)},n.prototype.handleDistanceSurpassed=function(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)},n.prototype.tryStartDrag=function(e){this.isDelayEnded&&this.isDistanceSurpassed&&(this.pointer.wasTouchScroll&&!this.touchScrollAllowed||(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),!1===this.touchScrollAllowed&&this.pointer.cancelTouchScroll()))},n.prototype.tryStopDrag=function(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))},n.prototype.stopDrag=function(e){this.isDragging=!1,this.emitter.trigger("dragend",e)},n.prototype.setIgnoreMove=function(e){this.pointer.shouldIgnoreMove=e},n.prototype.setMirrorIsVisible=function(e){this.mirror.setIsVisible(e)},n.prototype.setMirrorNeedsRevert=function(e){this.mirrorNeedsRevert=e},n.prototype.setAutoScrollEnabled=function(e){this.autoScroller.isEnabled=e},n}(Fa),yl=function(){function e(e){this.origRect=ur(e),this.scrollCaches=cr(e).map((function(e){return new pl(e,!0)}))}return e.prototype.destroy=function(){for(var e=0,t=this.scrollCaches;e<t.length;e++){t[e].destroy()}},e.prototype.computeLeft=function(){for(var e=this.origRect.left,t=0,n=this.scrollCaches;t<n.length;t++){var r=n[t];e+=r.origScrollLeft-r.getScrollLeft()}return e},e.prototype.computeTop=function(){for(var e=this.origRect.top,t=0,n=this.scrollCaches;t<n.length;t++){var r=n[t];e+=r.origScrollTop-r.getScrollTop()}return e},e.prototype.isWithinClipping=function(e,t){for(var n,r,a={left:e,top:t},o=0,i=this.scrollCaches;o<i.length;o++){var l=i[o];if(n=l.getEventTarget(),r=void 0,"HTML"!==(r=n.tagName)&&"BODY"!==r&&!qn(a,l.clientRect))return!1}return!0},e}();var bl=function(){function e(e,t){var n=this;this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=function(e){var t=n.dragging;n.initialHit=null,n.movingHit=null,n.finalHit=null,n.prepareHits(),n.processFirstCoord(e),n.initialHit||!n.requireInitial?(t.setIgnoreMove(!1),n.emitter.trigger("pointerdown",e)):t.setIgnoreMove(!0)},this.handleDragStart=function(e){n.emitter.trigger("dragstart",e),n.handleMove(e,!0)},this.handleDragMove=function(e){n.emitter.trigger("dragmove",e),n.handleMove(e)},this.handlePointerUp=function(e){n.releaseHits(),n.emitter.trigger("pointerup",e)},this.handleDragEnd=function(e){n.movingHit&&n.emitter.trigger("hitupdate",null,!0,e),n.finalHit=n.movingHit,n.movingHit=null,n.emitter.trigger("dragend",e)},this.droppableStore=t,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new dr}return e.prototype.processFirstCoord=function(e){var t,n,r,a={left:e.pageX,top:e.pageY},o=a,i=e.subjectEl;i instanceof HTMLElement&&(t=ur(i),n=o,r=t,o={left:Math.min(Math.max(n.left,r.left),r.right),top:Math.min(Math.max(n.top,r.top),r.bottom)});var l,s,u=this.initialHit=this.queryHitForOffset(o.left,o.top);if(u){if(this.useSubjectCenter&&t){var c=Yn(t,u.rect);c&&(o=function(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}(c))}this.coordAdjust=(s=a,{left:(l=o).left-s.left,top:l.top-s.top})}else this.coordAdjust={left:0,top:0}},e.prototype.handleMove=function(e,t){var n=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);!t&&wl(this.movingHit,n)||(this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,e))},e.prototype.prepareHits=function(){this.offsetTrackers=Pe(this.droppableStore,(function(e){return e.component.prepareHits(),new yl(e.el)}))},e.prototype.releaseHits=function(){var e=this.offsetTrackers;for(var t in e)e[t].destroy();this.offsetTrackers={}},e.prototype.queryHitForOffset=function(e,t){var n=this.droppableStore,r=this.offsetTrackers,a=null;for(var o in n){var i=n[o].component,l=r[o];if(l&&l.isWithinClipping(e,t)){var s=l.computeLeft(),u=l.computeTop(),c=e-s,d=t-u,f=l.origRect,p=f.right-f.left,h=f.bottom-f.top;if(c>=0&&c<p&&d>=0&&d<h){var v=i.queryHit(c,d,p,h);v&&Kt(v.dateProfile.activeRange,v.dateSpan.range)&&(!a||v.layer>a.layer)&&(v.componentId=o,v.context=i.context,v.rect.left+=s,v.rect.right+=s,v.rect.top+=u,v.rect.bottom+=u,a=v)}}}return a},e}();function wl(e,t){return!e&&!t||Boolean(e)===Boolean(t)&&(n=e.dateSpan,r=t.dateSpan,a=n.range,o=r.range,(null===a.start?null:a.start.valueOf())===(null===o.start?null:o.start.valueOf())&&(null===a.end?null:a.end.valueOf())===(null===o.end?null:o.end.valueOf())&&n.allDay===r.allDay&&function(e,t){for(var n in t)if("range"!==n&&"allDay"!==n&&e[n]!==t[n])return!1;for(var n in e)if(!(n in t))return!1;return!0}(n,r));var n,r,a,o}function kl(e,t){for(var r,a,o={},i=0,l=t.pluginHooks.datePointTransforms;i<l.length;i++){var s=l[i];n(o,s(e,t))}return n(o,(r=e,{date:(a=t.dateEnv).toDate(r.range.start),dateStr:a.formatIso(r.range.start,{omitTime:r.allDay}),allDay:r.allDay})),o}var Sl=function(e){function r(t){var r=e.call(this,t)||this;r.handlePointerDown=function(e){var t=r.dragging,n=e.origEvent.target;t.setIgnoreMove(!r.component.isValidDateDownEl(n))},r.handleDragEnd=function(e){var t=r.component;if(!r.dragging.pointer.wasTouchScroll){var a=r.hitDragging,o=a.initialHit,i=a.finalHit;if(o&&i&&wl(o,i)){var l=t.context,s=n(n({},kl(o.dateSpan,l)),{dayEl:o.dayEl,jsEvent:e.origEvent,view:l.viewApi||l.calendarApi.view});l.emitter.trigger("dateClick",s)}}},r.dragging=new gl(t.el),r.dragging.autoScroller.isEnabled=!1;var a=r.hitDragging=new bl(r.dragging,za(t));return a.emitter.on("pointerdown",r.handlePointerDown),a.emitter.on("dragend",r.handleDragEnd),r}return t(r,e),r.prototype.destroy=function(){this.dragging.destroy()},r}(Oa),xl=function(e){function r(t){var r=e.call(this,t)||this;r.dragSelection=null,r.handlePointerDown=function(e){var t=r,n=t.component,a=t.dragging,o=n.context.options.selectable&&n.isValidDateDownEl(e.origEvent.target);a.setIgnoreMove(!o),a.delay=e.isTouch?function(e){var t=e.context.options,n=t.selectLongPressDelay;null==n&&(n=t.longPressDelay);return n}(n):null},r.handleDragStart=function(e){r.component.context.calendarApi.unselect(e)},r.handleHitUpdate=function(e,t){var a=r.component.context,o=null,i=!1;if(e){var l=r.hitDragging.initialHit;e.componentId===l.componentId&&r.isHitComboAllowed&&!r.isHitComboAllowed(l,e)||(o=function(e,t,r){var a=e.dateSpan,o=t.dateSpan,i=[a.range.start,a.range.end,o.range.start,o.range.end];i.sort(se);for(var l={},s=0,u=r;s<u.length;s++){var c=(0,u[s])(e,t);if(!1===c)return null;c&&n(l,c)}return l.range={start:i[0],end:i[3]},l.allDay=a.allDay,l}(l,e,a.pluginHooks.dateSelectionTransformers)),o&&function(e,t,n){return!!Kt(t.validRange,e.range)&&uo({dateSelection:e},n)}(o,e.dateProfile,a)||(i=!0,o=null)}o?a.dispatch({type:"SELECT_DATES",selection:o}):t||a.dispatch({type:"UNSELECT_DATES"}),i?re():ae(),t||(r.dragSelection=o)},r.handlePointerUp=function(e){r.dragSelection&&(gn(r.dragSelection,e,r.component.context),r.dragSelection=null)};var a=t.component.context.options,o=r.dragging=new gl(t.el);o.touchScrollAllowed=!1,o.minDistance=a.selectMinDistance||0,o.autoScroller.isEnabled=a.dragScroll;var i=r.hitDragging=new bl(r.dragging,za(t));return i.emitter.on("pointerdown",r.handlePointerDown),i.emitter.on("dragstart",r.handleDragStart),i.emitter.on("hitupdate",r.handleHitUpdate),i.emitter.on("pointerup",r.handlePointerUp),r}return t(r,e),r.prototype.destroy=function(){this.dragging.destroy()},r}(Oa);var El=function(e){function r(t){var a=e.call(this,t)||this;a.subjectEl=null,a.subjectSeg=null,a.isDragging=!1,a.eventRange=null,a.relevantEvents=null,a.receivingContext=null,a.validMutation=null,a.mutatedRelevantEvents=null,a.handlePointerDown=function(e){var t=e.origEvent.target,n=a,r=n.component,o=n.dragging,i=o.mirror,l=r.context.options,s=r.context;a.subjectEl=e.subjectEl;var u=a.subjectSeg=Jt(e.subjectEl),c=(a.eventRange=u.eventRange).instance.instanceId;a.relevantEvents=_t(s.getCurrentData().eventStore,c),o.minDistance=e.isTouch?0:l.eventDragMinDistance,o.delay=e.isTouch&&c!==r.props.eventSelection?function(e){var t=e.context.options,n=t.eventLongPressDelay;null==n&&(n=t.longPressDelay);return n}(r):null,l.fixedMirrorParent?i.parentNode=l.fixedMirrorParent:i.parentNode=U(t,".fc"),i.revertDuration=l.dragRevertDuration;var d=r.isValidSegDownEl(t)&&!U(t,".fc-event-resizer");o.setIgnoreMove(!d),a.isDragging=d&&e.subjectEl.classList.contains("fc-event-draggable")},a.handleDragStart=function(e){var t=a.component.context,n=a.eventRange,r=n.instance.instanceId;e.isTouch?r!==a.component.props.eventSelection&&t.dispatch({type:"SELECT_EVENT",eventInstanceId:r}):t.dispatch({type:"UNSELECT_EVENT"}),a.isDragging&&(t.calendarApi.unselect(e),t.emitter.trigger("eventDragStart",{el:a.subjectEl,event:new Rn(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi}))},a.handleHitUpdate=function(e,t){if(a.isDragging){var n=a.relevantEvents,r=a.hitDragging.initialHit,o=a.component.context,i=null,l=null,s=null,u=!1,c={affectedEvents:n,mutatedEvents:{defs:{},instances:{}},isEvent:!0};if(e){var d=(i=e.context).options;o===i||d.editable&&d.droppable?(l=function(e,t,n){var r=e.dateSpan,a=t.dateSpan,o=r.range.start,i=a.range.start,l={};r.allDay!==a.allDay&&(l.allDay=a.allDay,l.hasEnd=t.context.options.allDayMaintainDuration,a.allDay&&(o=ge(o)));var s=Bt(o,i,e.context.dateEnv,e.componentId===t.componentId?e.largeUnit:null);s.milliseconds&&(l.allDay=!1);for(var u={datesDelta:s,standardProps:l},c=0,d=n;c<d.length;c++){(0,d[c])(u,e,t)}return u}(r,e,i.getCurrentData().pluginHooks.eventDragMutationMassagers))&&(s=wn(n,i.getCurrentData().eventUiBases,l,i),c.mutatedEvents=s,so(c,e.dateProfile,i)||(u=!0,l=null,s=null,c.mutatedEvents={defs:{},instances:{}})):i=null}a.displayDrag(i,c),u?re():ae(),t||(o===i&&wl(r,e)&&(l=null),a.dragging.setMirrorNeedsRevert(!l),a.dragging.setMirrorIsVisible(!e||!Y(a.subjectEl).querySelector(".fc-event-mirror")),a.receivingContext=i,a.validMutation=l,a.mutatedRelevantEvents=s)}},a.handlePointerUp=function(){a.isDragging||a.cleanup()},a.handleDragEnd=function(e){if(a.isDragging){var t=a.component.context,r=t.viewApi,o=a,i=o.receivingContext,l=o.validMutation,s=a.eventRange.def,u=a.eventRange.instance,c=new Rn(t,s,u),d=a.relevantEvents,f=a.mutatedRelevantEvents,p=a.hitDragging.finalHit;if(a.clearDrag(),t.emitter.trigger("eventDragStop",{el:a.subjectEl,event:c,jsEvent:e.origEvent,view:r}),l){if(i===t){var h=new Rn(t,f.defs[s.defId],u?f.instances[u.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:f});for(var v={oldEvent:c,event:h,relatedEvents:Nn(f,t,u),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:d})}},m={},g=0,y=t.getCurrentData().pluginHooks.eventDropTransformers;g<y.length;g++){var b=y[g];n(m,b(l,t))}t.emitter.trigger("eventDrop",n(n(n({},v),m),{el:e.subjectEl,delta:l.datesDelta,jsEvent:e.origEvent,view:r})),t.emitter.trigger("eventChange",v)}else if(i){var w={event:c,relatedEvents:Nn(d,t,u),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:d})}};t.emitter.trigger("eventLeave",n(n({},w),{draggedEl:e.subjectEl,view:r})),t.dispatch({type:"REMOVE_EVENTS",eventStore:d}),t.emitter.trigger("eventRemove",w);var k=f.defs[s.defId],S=f.instances[u.instanceId],x=new Rn(i,k,S);i.dispatch({type:"MERGE_EVENTS",eventStore:f});var E={event:x,relatedEvents:Nn(f,i,S),revert:function(){i.dispatch({type:"REMOVE_EVENTS",eventStore:f})}};i.emitter.trigger("eventAdd",E),e.isTouch&&i.dispatch({type:"SELECT_EVENT",eventInstanceId:u.instanceId}),i.emitter.trigger("drop",n(n({},kl(p.dateSpan,i)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:p.context.viewApi})),i.emitter.trigger("eventReceive",n(n({},E),{draggedEl:e.subjectEl,view:p.context.viewApi}))}}else t.emitter.trigger("_noEventDrop")}a.cleanup()};var o=a.component.context.options,i=a.dragging=new gl(t.el);i.pointer.selector=r.SELECTOR,i.touchScrollAllowed=!1,i.autoScroller.isEnabled=o.dragScroll;var l=a.hitDragging=new bl(a.dragging,Aa);return l.useSubjectCenter=t.useEventCenter,l.emitter.on("pointerdown",a.handlePointerDown),l.emitter.on("dragstart",a.handleDragStart),l.emitter.on("hitupdate",a.handleHitUpdate),l.emitter.on("pointerup",a.handlePointerUp),l.emitter.on("dragend",a.handleDragEnd),a}return t(r,e),r.prototype.destroy=function(){this.dragging.destroy()},r.prototype.displayDrag=function(e,t){var n=this.component.context,r=this.receivingContext;r&&r!==e&&(r===n?r.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:t.affectedEvents,mutatedEvents:{defs:{},instances:{}},isEvent:!0}}):r.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})},r.prototype.clearDrag=function(){var e=this.component.context,t=this.receivingContext;t&&t.dispatch({type:"UNSET_EVENT_DRAG"}),e!==t&&e.dispatch({type:"UNSET_EVENT_DRAG"})},r.prototype.cleanup=function(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null},r.SELECTOR=".fc-event-draggable, .fc-event-resizable",r}(Oa);var Tl=function(e){function r(t){var r=e.call(this,t)||this;r.draggingSegEl=null,r.draggingSeg=null,r.eventRange=null,r.relevantEvents=null,r.validMutation=null,r.mutatedRelevantEvents=null,r.handlePointerDown=function(e){var t=r.component,n=Jt(r.querySegEl(e)),a=r.eventRange=n.eventRange;r.dragging.minDistance=t.context.options.eventDragMinDistance,r.dragging.setIgnoreMove(!r.component.isValidSegDownEl(e.origEvent.target)||e.isTouch&&r.component.props.eventSelection!==a.instance.instanceId)},r.handleDragStart=function(e){var t=r.component.context,n=r.eventRange;r.relevantEvents=_t(t.getCurrentData().eventStore,r.eventRange.instance.instanceId);var a=r.querySegEl(e);r.draggingSegEl=a,r.draggingSeg=Jt(a),t.calendarApi.unselect(),t.emitter.trigger("eventResizeStart",{el:a,event:new Rn(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi})},r.handleHitUpdate=function(e,t,n){var a=r.component.context,o=r.relevantEvents,i=r.hitDragging.initialHit,l=r.eventRange.instance,s=null,u=null,c=!1,d={affectedEvents:o,mutatedEvents:{defs:{},instances:{}},isEvent:!0};e&&(e.componentId===i.componentId&&r.isHitComboAllowed&&!r.isHitComboAllowed(i,e)||(s=function(e,t,n,r){var a=e.context.dateEnv,o=e.dateSpan.range.start,i=t.dateSpan.range.start,l=Bt(o,i,a,e.largeUnit);if(n){if(a.add(r.start,l)<r.end)return{startDelta:l}}else if(a.add(r.end,l)>r.start)return{endDelta:l};return null}(i,e,n.subjectEl.classList.contains("fc-event-resizer-start"),l.range)));s&&(u=wn(o,a.getCurrentData().eventUiBases,s,a),d.mutatedEvents=u,so(d,e.dateProfile,a)||(c=!0,s=null,u=null,d.mutatedEvents=null)),u?a.dispatch({type:"SET_EVENT_RESIZE",state:d}):a.dispatch({type:"UNSET_EVENT_RESIZE"}),c?re():ae(),t||(s&&wl(i,e)&&(s=null),r.validMutation=s,r.mutatedRelevantEvents=u)},r.handleDragEnd=function(e){var t=r.component.context,a=r.eventRange.def,o=r.eventRange.instance,i=new Rn(t,a,o),l=r.relevantEvents,s=r.mutatedRelevantEvents;if(t.emitter.trigger("eventResizeStop",{el:r.draggingSegEl,event:i,jsEvent:e.origEvent,view:t.viewApi}),r.validMutation){var u=new Rn(t,s.defs[a.defId],o?s.instances[o.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:s});var c={oldEvent:i,event:u,relatedEvents:Nn(s,t,o),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:l})}};t.emitter.trigger("eventResize",n(n({},c),{el:r.draggingSegEl,startDelta:r.validMutation.startDelta||Ue(0),endDelta:r.validMutation.endDelta||Ue(0),jsEvent:e.origEvent,view:t.viewApi})),t.emitter.trigger("eventChange",c)}else t.emitter.trigger("_noEventResize");r.draggingSeg=null,r.relevantEvents=null,r.validMutation=null};var a=t.component,o=r.dragging=new gl(t.el);o.pointer.selector=".fc-event-resizer",o.touchScrollAllowed=!1,o.autoScroller.isEnabled=a.context.options.dragScroll;var i=r.hitDragging=new bl(r.dragging,za(t));return i.emitter.on("pointerdown",r.handlePointerDown),i.emitter.on("dragstart",r.handleDragStart),i.emitter.on("hitupdate",r.handleHitUpdate),i.emitter.on("dragend",r.handleDragEnd),r}return t(r,e),r.prototype.destroy=function(){this.dragging.destroy()},r.prototype.querySegEl=function(e){return U(e.subjectEl,".fc-event")},r}(Oa);var _l=function(){function e(e){var t=this;this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=function(e){e.jsEvent&&(t.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=function(e){var n=t.context.options.unselectCancel,r=q(e.origEvent);t.matchesCancel=!!U(r,n),t.matchesEvent=!!U(r,El.SELECTOR)},this.onDocumentPointerUp=function(e){var n=t.context,r=t.documentPointer,a=n.getCurrentData();if(!r.wasTouchScroll){if(a.dateSelection&&!t.isRecentPointerDateSelect){var o=n.options.unselectAuto;!o||o&&t.matchesCancel||n.calendarApi.unselect(e)}a.eventSelection&&!t.matchesEvent&&n.dispatch({type:"UNSELECT_EVENT"})}t.isRecentPointerDateSelect=!1};var n=this.documentPointer=new ul(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on("pointerdown",this.onDocumentPointerDown),n.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}return e.prototype.destroy=function(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()},e}(),Cl={fixedMirrorParent:xt},Dl={dateClick:xt,eventDragStart:xt,eventDragStop:xt,eventDrop:xt,eventResizeStart:xt,eventResizeStop:xt,eventResize:xt,drop:xt,eventReceive:xt,eventLeave:xt};Ha.dataAttrPrefix="",function(e){function n(t){var n=e.call(this,t)||this;n.shouldIgnoreMove=!1,n.mirrorSelector="",n.currentMirrorEl=null,n.handlePointerDown=function(e){n.emitter.trigger("pointerdown",e),n.shouldIgnoreMove||n.emitter.trigger("dragstart",e)},n.handlePointerMove=function(e){n.shouldIgnoreMove||n.emitter.trigger("dragmove",e)},n.handlePointerUp=function(e){n.emitter.trigger("pointerup",e),n.shouldIgnoreMove||n.emitter.trigger("dragend",e)};var r=n.pointer=new ul(t);return r.emitter.on("pointerdown",n.handlePointerDown),r.emitter.on("pointermove",n.handlePointerMove),r.emitter.on("pointerup",n.handlePointerUp),n}t(n,e),n.prototype.destroy=function(){this.pointer.destroy()},n.prototype.setIgnoreMove=function(e){this.shouldIgnoreMove=e},n.prototype.setMirrorIsVisible=function(e){if(e)this.currentMirrorEl&&(this.currentMirrorEl.style.visibility="",this.currentMirrorEl=null);else{var t=this.mirrorSelector?document.querySelector(this.mirrorSelector):null;t&&(this.currentMirrorEl=t,t.style.visibility="hidden")}}}(Fa);var Rl=_r({componentInteractions:[Sl,xl,El,Tl],calendarInteractions:[_l],elementDraggingImpl:gl,optionRefiners:Cl,listenerRefiners:Dl}),Pl=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={textId:K()},t}return t(r,e),r.prototype.render=function(){var e=this.context,t=e.theme,r=e.dateEnv,a=e.options,o=e.viewApi,i=this.props,l=i.cellId,s=i.dayDate,u=i.todayRange,c=this.state.textId,d=Zn(s,u),f=a.listDayFormat?r.format(s,a.listDayFormat):"",p=a.listDaySideFormat?r.format(s,a.listDaySideFormat):"",h=n({date:r.toDate(s),view:o,textId:c,text:f,sideText:p,navLinkAttrs:nr(this.context,s),sideNavLinkAttrs:nr(this.context,s,"day",!1)},d),v=["fc-list-day"].concat(Jn(d,t));return O(Pr,{hookProps:h,classNames:a.dayHeaderClassNames,content:a.dayHeaderContent,defaultContent:Nl,didMount:a.dayHeaderDidMount,willUnmount:a.dayHeaderWillUnmount},(function(e,n,r,a){return O("tr",{ref:e,className:v.concat(n).join(" "),"data-date":Ke(s)},O("th",{scope:"colgroup",colSpan:3,id:l,"aria-labelledby":c},O("div",{className:"fc-list-day-cushion "+t.getClass("tableCellShaded"),ref:r},a)))}))},r}(kr);
|
|
67
|
+
config$1.touchMouseIgnoreWait=500;var ignoreMouseDepth=0,listenerCnt=0,isWindowTouchMoveCancelled=!1,PointerDragging=function(){function e(e){var t=this;this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=function(e){if(!t.shouldIgnoreMouse()&&isPrimaryMouseButton(e)&&t.tryStart(e)){var n=t.createEventFromMouse(e,!0);t.emitter.trigger("pointerdown",n),t.initScrollWatch(n),t.shouldIgnoreMove||document.addEventListener("mousemove",t.handleMouseMove),document.addEventListener("mouseup",t.handleMouseUp)}},this.handleMouseMove=function(e){var n=t.createEventFromMouse(e);t.recordCoords(n),t.emitter.trigger("pointermove",n)},this.handleMouseUp=function(e){document.removeEventListener("mousemove",t.handleMouseMove),document.removeEventListener("mouseup",t.handleMouseUp),t.emitter.trigger("pointerup",t.createEventFromMouse(e)),t.cleanup()},this.handleTouchStart=function(e){if(t.tryStart(e)){t.isTouchDragging=!0;var n=t.createEventFromTouch(e,!0);t.emitter.trigger("pointerdown",n),t.initScrollWatch(n);var r=e.target;t.shouldIgnoreMove||r.addEventListener("touchmove",t.handleTouchMove),r.addEventListener("touchend",t.handleTouchEnd),r.addEventListener("touchcancel",t.handleTouchEnd),window.addEventListener("scroll",t.handleTouchScroll,!0)}},this.handleTouchMove=function(e){var n=t.createEventFromTouch(e);t.recordCoords(n),t.emitter.trigger("pointermove",n)},this.handleTouchEnd=function(e){if(t.isDragging){var n=e.target;n.removeEventListener("touchmove",t.handleTouchMove),n.removeEventListener("touchend",t.handleTouchEnd),n.removeEventListener("touchcancel",t.handleTouchEnd),window.removeEventListener("scroll",t.handleTouchScroll,!0),t.emitter.trigger("pointerup",t.createEventFromTouch(e)),t.cleanup(),t.isTouchDragging=!1,startIgnoringMouse()}},this.handleTouchScroll=function(){t.wasTouchScroll=!0},this.handleScroll=function(e){if(!t.shouldIgnoreMove){var n=window.pageXOffset-t.prevScrollX+t.prevPageX,r=window.pageYOffset-t.prevScrollY+t.prevPageY;t.emitter.trigger("pointermove",{origEvent:e,isTouch:t.isTouchDragging,subjectEl:t.subjectEl,pageX:n,pageY:r,deltaX:n-t.origPageX,deltaY:r-t.origPageY})}},this.containerEl=e,this.emitter=new Emitter,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),listenerCreated()}return e.prototype.destroy=function(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),listenerDestroyed()},e.prototype.tryStart=function(e){var t=this.querySubjectEl(e),n=e.target;return!(!t||this.handleSelector&&!elementClosest(n,this.handleSelector))&&(this.subjectEl=t,this.isDragging=!0,this.wasTouchScroll=!1,!0)},e.prototype.cleanup=function(){isWindowTouchMoveCancelled=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()},e.prototype.querySubjectEl=function(e){return this.selector?elementClosest(e.target,this.selector):this.containerEl},e.prototype.shouldIgnoreMouse=function(){return ignoreMouseDepth||this.isTouchDragging},e.prototype.cancelTouchScroll=function(){this.isDragging&&(isWindowTouchMoveCancelled=!0)},e.prototype.initScrollWatch=function(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))},e.prototype.recordCoords=function(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)},e.prototype.destroyScrollWatch=function(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)},e.prototype.createEventFromMouse=function(e,t){var n=0,r=0;return t?(this.origPageX=e.pageX,this.origPageY=e.pageY):(n=e.pageX-this.origPageX,r=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:n,deltaY:r}},e.prototype.createEventFromTouch=function(e,t){var n,r,a=e.touches,o=0,i=0;return a&&a.length?(n=a[0].pageX,r=a[0].pageY):(n=e.pageX,r=e.pageY),t?(this.origPageX=n,this.origPageY=r):(o=n-this.origPageX,i=r-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:n,pageY:r,deltaX:o,deltaY:i}},e}();function isPrimaryMouseButton(e){return 0===e.button&&!e.ctrlKey}function startIgnoringMouse(){ignoreMouseDepth+=1,setTimeout((function(){ignoreMouseDepth-=1}),config$1.touchMouseIgnoreWait)}function listenerCreated(){1===(listenerCnt+=1)&&window.addEventListener("touchmove",onWindowTouchMove,{passive:!1})}function listenerDestroyed(){(listenerCnt-=1)||window.removeEventListener("touchmove",onWindowTouchMove,{passive:!1})}function onWindowTouchMove(e){isWindowTouchMoveCancelled&&e.preventDefault()}var ElementMirror=function(){function e(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}return e.prototype.start=function(e,t,n){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.pageXOffset,this.origScreenY=n-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()},e.prototype.handleMove=function(e,t){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=t-window.pageYOffset-this.origScreenY,this.updateElPosition()},e.prototype.setIsVisible=function(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)},e.prototype.stop=function(e,t){var n=this,r=function(){n.cleanup(),t()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(r,this.revertDuration):setTimeout(r,0)},e.prototype.doRevertAnimation=function(e,t){var n=this.mirrorEl,r=this.sourceEl.getBoundingClientRect();n.style.transition="top "+t+"ms,left "+t+"ms",applyStyle(n,{left:r.left,top:r.top}),whenTransitionDone(n,(function(){n.style.transition="",e()}))},e.prototype.cleanup=function(){this.mirrorEl&&(removeElement(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null},e.prototype.updateElPosition=function(){this.sourceEl&&this.isVisible&&applyStyle(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})},e.prototype.getMirrorEl=function(){var e=this.sourceElRect,t=this.mirrorEl;return t||((t=this.mirrorEl=this.sourceEl.cloneNode(!0)).classList.add("fc-unselectable"),t.classList.add("fc-event-dragging"),applyStyle(t,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(t)),t},e}(),ScrollGeomCache=function(e){function t(t,n){var r=e.call(this)||this;return r.handleScroll=function(){r.scrollTop=r.scrollController.getScrollTop(),r.scrollLeft=r.scrollController.getScrollLeft(),r.handleScrollChange()},r.scrollController=t,r.doesListening=n,r.scrollTop=r.origScrollTop=t.getScrollTop(),r.scrollLeft=r.origScrollLeft=t.getScrollLeft(),r.scrollWidth=t.getScrollWidth(),r.scrollHeight=t.getScrollHeight(),r.clientWidth=t.getClientWidth(),r.clientHeight=t.getClientHeight(),r.clientRect=r.computeClientRect(),r.doesListening&&r.getEventTarget().addEventListener("scroll",r.handleScroll),r}return __extends(t,e),t.prototype.destroy=function(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)},t.prototype.getScrollTop=function(){return this.scrollTop},t.prototype.getScrollLeft=function(){return this.scrollLeft},t.prototype.setScrollTop=function(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())},t.prototype.setScrollLeft=function(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())},t.prototype.getClientWidth=function(){return this.clientWidth},t.prototype.getClientHeight=function(){return this.clientHeight},t.prototype.getScrollWidth=function(){return this.scrollWidth},t.prototype.getScrollHeight=function(){return this.scrollHeight},t.prototype.handleScrollChange=function(){},t}(ScrollController),ElementScrollGeomCache=function(e){function t(t,n){return e.call(this,new ElementScrollController(t),n)||this}return __extends(t,e),t.prototype.getEventTarget=function(){return this.scrollController.el},t.prototype.computeClientRect=function(){return computeInnerRect(this.scrollController.el)},t}(ScrollGeomCache),WindowScrollGeomCache=function(e){function t(t){return e.call(this,new WindowScrollController,t)||this}return __extends(t,e),t.prototype.getEventTarget=function(){return window},t.prototype.computeClientRect=function(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}},t.prototype.handleScrollChange=function(){this.clientRect=this.computeClientRect()},t}(ScrollGeomCache),getTime="function"==typeof performance?performance.now:Date.now,AutoScroller=function(){function e(){var e=this;this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=function(){if(e.isAnimating){var t=e.computeBestEdge(e.pointerScreenX+window.pageXOffset,e.pointerScreenY+window.pageYOffset);if(t){var n=getTime();e.handleSide(t,(n-e.msSinceRequest)/1e3),e.requestAnimation(n)}else e.isAnimating=!1}}}return e.prototype.start=function(e,t,n){this.isEnabled&&(this.scrollCaches=this.buildCaches(n),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,t))},e.prototype.handleMove=function(e,t){if(this.isEnabled){var n=e-window.pageXOffset,r=t-window.pageYOffset,a=null===this.pointerScreenY?0:r-this.pointerScreenY,o=null===this.pointerScreenX?0:n-this.pointerScreenX;a<0?this.everMovedUp=!0:a>0&&(this.everMovedDown=!0),o<0?this.everMovedLeft=!0:o>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=r,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(getTime()))}},e.prototype.stop=function(){if(this.isEnabled){this.isAnimating=!1;for(var e=0,t=this.scrollCaches;e<t.length;e++){t[e].destroy()}this.scrollCaches=null}},e.prototype.requestAnimation=function(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)},e.prototype.handleSide=function(e,t){var n=e.scrollCache,r=this.edgeThreshold,a=r-e.distance,o=a*a/(r*r)*this.maxVelocity*t,i=1;switch(e.name){case"left":i=-1;case"right":n.setScrollLeft(n.getScrollLeft()+o*i);break;case"top":i=-1;case"bottom":n.setScrollTop(n.getScrollTop()+o*i)}},e.prototype.computeBestEdge=function(e,t){for(var n=this.edgeThreshold,r=null,a=0,o=this.scrollCaches||[];a<o.length;a++){var i=o[a],l=i.clientRect,s=e-l.left,u=l.right-e,c=t-l.top,d=l.bottom-t;s>=0&&u>=0&&c>=0&&d>=0&&(c<=n&&this.everMovedUp&&i.canScrollUp()&&(!r||r.distance>c)&&(r={scrollCache:i,name:"top",distance:c}),d<=n&&this.everMovedDown&&i.canScrollDown()&&(!r||r.distance>d)&&(r={scrollCache:i,name:"bottom",distance:d}),s<=n&&this.everMovedLeft&&i.canScrollLeft()&&(!r||r.distance>s)&&(r={scrollCache:i,name:"left",distance:s}),u<=n&&this.everMovedRight&&i.canScrollRight()&&(!r||r.distance>u)&&(r={scrollCache:i,name:"right",distance:u}))}return r},e.prototype.buildCaches=function(e){return this.queryScrollEls(e).map((function(e){return e===window?new WindowScrollGeomCache(!1):new ElementScrollGeomCache(e,!1)}))},e.prototype.queryScrollEls=function(e){for(var t=[],n=0,r=this.scrollQuery;n<r.length;n++){var a=r[n];"object"==typeof a?t.push(a):t.push.apply(t,Array.prototype.slice.call(getElRoot(e).querySelectorAll(a)))}return t},e}(),FeaturefulElementDragging=function(e){function t(t,n){var r=e.call(this,t)||this;r.containerEl=t,r.delay=null,r.minDistance=0,r.touchScrollAllowed=!0,r.mirrorNeedsRevert=!1,r.isInteracting=!1,r.isDragging=!1,r.isDelayEnded=!1,r.isDistanceSurpassed=!1,r.delayTimeoutId=null,r.onPointerDown=function(e){r.isDragging||(r.isInteracting=!0,r.isDelayEnded=!1,r.isDistanceSurpassed=!1,preventSelection(document.body),preventContextMenu(document.body),e.isTouch||e.origEvent.preventDefault(),r.emitter.trigger("pointerdown",e),r.isInteracting&&!r.pointer.shouldIgnoreMove&&(r.mirror.setIsVisible(!1),r.mirror.start(e.subjectEl,e.pageX,e.pageY),r.startDelay(e),r.minDistance||r.handleDistanceSurpassed(e)))},r.onPointerMove=function(e){if(r.isInteracting){if(r.emitter.trigger("pointermove",e),!r.isDistanceSurpassed){var t=r.minDistance,n=e.deltaX,a=e.deltaY;n*n+a*a>=t*t&&r.handleDistanceSurpassed(e)}r.isDragging&&("scroll"!==e.origEvent.type&&(r.mirror.handleMove(e.pageX,e.pageY),r.autoScroller.handleMove(e.pageX,e.pageY)),r.emitter.trigger("dragmove",e))}},r.onPointerUp=function(e){r.isInteracting&&(r.isInteracting=!1,allowSelection(document.body),allowContextMenu(document.body),r.emitter.trigger("pointerup",e),r.isDragging&&(r.autoScroller.stop(),r.tryStopDrag(e)),r.delayTimeoutId&&(clearTimeout(r.delayTimeoutId),r.delayTimeoutId=null))};var a=r.pointer=new PointerDragging(t);return a.emitter.on("pointerdown",r.onPointerDown),a.emitter.on("pointermove",r.onPointerMove),a.emitter.on("pointerup",r.onPointerUp),n&&(a.selector=n),r.mirror=new ElementMirror,r.autoScroller=new AutoScroller,r}return __extends(t,e),t.prototype.destroy=function(){this.pointer.destroy(),this.onPointerUp({})},t.prototype.startDelay=function(e){var t=this;"number"==typeof this.delay?this.delayTimeoutId=setTimeout((function(){t.delayTimeoutId=null,t.handleDelayEnd(e)}),this.delay):this.handleDelayEnd(e)},t.prototype.handleDelayEnd=function(e){this.isDelayEnded=!0,this.tryStartDrag(e)},t.prototype.handleDistanceSurpassed=function(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)},t.prototype.tryStartDrag=function(e){this.isDelayEnded&&this.isDistanceSurpassed&&(this.pointer.wasTouchScroll&&!this.touchScrollAllowed||(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),!1===this.touchScrollAllowed&&this.pointer.cancelTouchScroll()))},t.prototype.tryStopDrag=function(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))},t.prototype.stopDrag=function(e){this.isDragging=!1,this.emitter.trigger("dragend",e)},t.prototype.setIgnoreMove=function(e){this.pointer.shouldIgnoreMove=e},t.prototype.setMirrorIsVisible=function(e){this.mirror.setIsVisible(e)},t.prototype.setMirrorNeedsRevert=function(e){this.mirrorNeedsRevert=e},t.prototype.setAutoScrollEnabled=function(e){this.autoScroller.isEnabled=e},t}(ElementDragging),OffsetTracker=function(){function e(e){this.origRect=computeRect(e),this.scrollCaches=getClippingParents(e).map((function(e){return new ElementScrollGeomCache(e,!0)}))}return e.prototype.destroy=function(){for(var e=0,t=this.scrollCaches;e<t.length;e++){t[e].destroy()}},e.prototype.computeLeft=function(){for(var e=this.origRect.left,t=0,n=this.scrollCaches;t<n.length;t++){var r=n[t];e+=r.origScrollLeft-r.getScrollLeft()}return e},e.prototype.computeTop=function(){for(var e=this.origRect.top,t=0,n=this.scrollCaches;t<n.length;t++){var r=n[t];e+=r.origScrollTop-r.getScrollTop()}return e},e.prototype.isWithinClipping=function(e,t){for(var n={left:e,top:t},r=0,a=this.scrollCaches;r<a.length;r++){var o=a[r];if(!isIgnoredClipping(o.getEventTarget())&&!pointInsideRect(n,o.clientRect))return!1}return!0},e}();function isIgnoredClipping(e){var t=e.tagName;return"HTML"===t||"BODY"===t}var HitDragging=function(){function e(e,t){var n=this;this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=function(e){var t=n.dragging;n.initialHit=null,n.movingHit=null,n.finalHit=null,n.prepareHits(),n.processFirstCoord(e),n.initialHit||!n.requireInitial?(t.setIgnoreMove(!1),n.emitter.trigger("pointerdown",e)):t.setIgnoreMove(!0)},this.handleDragStart=function(e){n.emitter.trigger("dragstart",e),n.handleMove(e,!0)},this.handleDragMove=function(e){n.emitter.trigger("dragmove",e),n.handleMove(e)},this.handlePointerUp=function(e){n.releaseHits(),n.emitter.trigger("pointerup",e)},this.handleDragEnd=function(e){n.movingHit&&n.emitter.trigger("hitupdate",null,!0,e),n.finalHit=n.movingHit,n.movingHit=null,n.emitter.trigger("dragend",e)},this.droppableStore=t,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new Emitter}return e.prototype.processFirstCoord=function(e){var t,n={left:e.pageX,top:e.pageY},r=n,a=e.subjectEl;a instanceof HTMLElement&&(r=constrainPoint(r,t=computeRect(a)));var o=this.initialHit=this.queryHitForOffset(r.left,r.top);if(o){if(this.useSubjectCenter&&t){var i=intersectRects(t,o.rect);i&&(r=getRectCenter(i))}this.coordAdjust=diffPoints(r,n)}else this.coordAdjust={left:0,top:0}},e.prototype.handleMove=function(e,t){var n=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);!t&&isHitsEqual(this.movingHit,n)||(this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,e))},e.prototype.prepareHits=function(){this.offsetTrackers=mapHash(this.droppableStore,(function(e){return e.component.prepareHits(),new OffsetTracker(e.el)}))},e.prototype.releaseHits=function(){var e=this.offsetTrackers;for(var t in e)e[t].destroy();this.offsetTrackers={}},e.prototype.queryHitForOffset=function(e,t){var n=this.droppableStore,r=this.offsetTrackers,a=null;for(var o in n){var i=n[o].component,l=r[o];if(l&&l.isWithinClipping(e,t)){var s=l.computeLeft(),u=l.computeTop(),c=e-s,d=t-u,f=l.origRect,p=f.right-f.left,h=f.bottom-f.top;if(c>=0&&c<p&&d>=0&&d<h){var m=i.queryHit(c,d,p,h);m&&rangeContainsRange(m.dateProfile.activeRange,m.dateSpan.range)&&(!a||m.layer>a.layer)&&(m.componentId=o,m.context=i.context,m.rect.left+=s,m.rect.right+=s,m.rect.top+=u,m.rect.bottom+=u,a=m)}}}return a},e}();function isHitsEqual(e,t){return!e&&!t||Boolean(e)===Boolean(t)&&isDateSpansEqual(e.dateSpan,t.dateSpan)}function buildDatePointApiWithContext(e,t){for(var n={},r=0,a=t.pluginHooks.datePointTransforms;r<a.length;r++){var o=a[r];__assign$1(n,o(e,t))}return __assign$1(n,buildDatePointApi(e,t.dateEnv)),n}function buildDatePointApi(e,t){return{date:t.toDate(e.range.start),dateStr:t.formatIso(e.range.start,{omitTime:e.allDay}),allDay:e.allDay}}var DateClicking=function(e){function t(t){var n=e.call(this,t)||this;n.handlePointerDown=function(e){var t=n.dragging,r=e.origEvent.target;t.setIgnoreMove(!n.component.isValidDateDownEl(r))},n.handleDragEnd=function(e){var t=n.component;if(!n.dragging.pointer.wasTouchScroll){var r=n.hitDragging,a=r.initialHit,o=r.finalHit;if(a&&o&&isHitsEqual(a,o)){var i=t.context,l=__assign$1(__assign$1({},buildDatePointApiWithContext(a.dateSpan,i)),{dayEl:a.dayEl,jsEvent:e.origEvent,view:i.viewApi||i.calendarApi.view});i.emitter.trigger("dateClick",l)}}},n.dragging=new FeaturefulElementDragging(t.el),n.dragging.autoScroller.isEnabled=!1;var r=n.hitDragging=new HitDragging(n.dragging,interactionSettingsToStore(t));return r.emitter.on("pointerdown",n.handlePointerDown),r.emitter.on("dragend",n.handleDragEnd),n}return __extends(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t}(Interaction),DateSelecting=function(e){function t(t){var n=e.call(this,t)||this;n.dragSelection=null,n.handlePointerDown=function(e){var t=n,r=t.component,a=t.dragging,o=r.context.options.selectable&&r.isValidDateDownEl(e.origEvent.target);a.setIgnoreMove(!o),a.delay=e.isTouch?getComponentTouchDelay$1(r):null},n.handleDragStart=function(e){n.component.context.calendarApi.unselect(e)},n.handleHitUpdate=function(e,t){var r=n.component.context,a=null,o=!1;if(e){var i=n.hitDragging.initialHit;e.componentId===i.componentId&&n.isHitComboAllowed&&!n.isHitComboAllowed(i,e)||(a=joinHitsIntoSelection(i,e,r.pluginHooks.dateSelectionTransformers)),a&&isDateSelectionValid(a,e.dateProfile,r)||(o=!0,a=null)}a?r.dispatch({type:"SELECT_DATES",selection:a}):t||r.dispatch({type:"UNSELECT_DATES"}),o?disableCursor():enableCursor(),t||(n.dragSelection=a)},n.handlePointerUp=function(e){n.dragSelection&&(triggerDateSelect(n.dragSelection,e,n.component.context),n.dragSelection=null)};var r=t.component.context.options,a=n.dragging=new FeaturefulElementDragging(t.el);a.touchScrollAllowed=!1,a.minDistance=r.selectMinDistance||0,a.autoScroller.isEnabled=r.dragScroll;var o=n.hitDragging=new HitDragging(n.dragging,interactionSettingsToStore(t));return o.emitter.on("pointerdown",n.handlePointerDown),o.emitter.on("dragstart",n.handleDragStart),o.emitter.on("hitupdate",n.handleHitUpdate),o.emitter.on("pointerup",n.handlePointerUp),n}return __extends(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t}(Interaction);function getComponentTouchDelay$1(e){var t=e.context.options,n=t.selectLongPressDelay;return null==n&&(n=t.longPressDelay),n}function joinHitsIntoSelection(e,t,n){var r=e.dateSpan,a=t.dateSpan,o=[r.range.start,r.range.end,a.range.start,a.range.end];o.sort(compareNumbers);for(var i={},l=0,s=n;l<s.length;l++){var u=(0,s[l])(e,t);if(!1===u)return null;u&&__assign$1(i,u)}return i.range={start:o[0],end:o[3]},i.allDay=r.allDay,i}var EventDragging=function(e){function t(n){var r=e.call(this,n)||this;r.subjectEl=null,r.subjectSeg=null,r.isDragging=!1,r.eventRange=null,r.relevantEvents=null,r.receivingContext=null,r.validMutation=null,r.mutatedRelevantEvents=null,r.handlePointerDown=function(e){var t=e.origEvent.target,n=r,a=n.component,o=n.dragging,i=o.mirror,l=a.context.options,s=a.context;r.subjectEl=e.subjectEl;var u=r.subjectSeg=getElSeg(e.subjectEl),c=(r.eventRange=u.eventRange).instance.instanceId;r.relevantEvents=getRelevantEvents(s.getCurrentData().eventStore,c),o.minDistance=e.isTouch?0:l.eventDragMinDistance,o.delay=e.isTouch&&c!==a.props.eventSelection?getComponentTouchDelay(a):null,l.fixedMirrorParent?i.parentNode=l.fixedMirrorParent:i.parentNode=elementClosest(t,".fc"),i.revertDuration=l.dragRevertDuration;var d=a.isValidSegDownEl(t)&&!elementClosest(t,".fc-event-resizer");o.setIgnoreMove(!d),r.isDragging=d&&e.subjectEl.classList.contains("fc-event-draggable")},r.handleDragStart=function(e){var t=r.component.context,n=r.eventRange,a=n.instance.instanceId;e.isTouch?a!==r.component.props.eventSelection&&t.dispatch({type:"SELECT_EVENT",eventInstanceId:a}):t.dispatch({type:"UNSELECT_EVENT"}),r.isDragging&&(t.calendarApi.unselect(e),t.emitter.trigger("eventDragStart",{el:r.subjectEl,event:new EventApi(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi}))},r.handleHitUpdate=function(e,t){if(r.isDragging){var n=r.relevantEvents,a=r.hitDragging.initialHit,o=r.component.context,i=null,l=null,s=null,u=!1,c={affectedEvents:n,mutatedEvents:createEmptyEventStore(),isEvent:!0};if(e){var d=(i=e.context).options;o===i||d.editable&&d.droppable?(l=computeEventMutation(a,e,i.getCurrentData().pluginHooks.eventDragMutationMassagers))&&(s=applyMutationToEventStore(n,i.getCurrentData().eventUiBases,l,i),c.mutatedEvents=s,isInteractionValid(c,e.dateProfile,i)||(u=!0,l=null,s=null,c.mutatedEvents=createEmptyEventStore())):i=null}r.displayDrag(i,c),u?disableCursor():enableCursor(),t||(o===i&&isHitsEqual(a,e)&&(l=null),r.dragging.setMirrorNeedsRevert(!l),r.dragging.setMirrorIsVisible(!e||!getElRoot(r.subjectEl).querySelector(".fc-event-mirror")),r.receivingContext=i,r.validMutation=l,r.mutatedRelevantEvents=s)}},r.handlePointerUp=function(){r.isDragging||r.cleanup()},r.handleDragEnd=function(e){if(r.isDragging){var t=r.component.context,n=t.viewApi,a=r,o=a.receivingContext,i=a.validMutation,l=r.eventRange.def,s=r.eventRange.instance,u=new EventApi(t,l,s),c=r.relevantEvents,d=r.mutatedRelevantEvents,f=r.hitDragging.finalHit;if(r.clearDrag(),t.emitter.trigger("eventDragStop",{el:r.subjectEl,event:u,jsEvent:e.origEvent,view:n}),i){if(o===t){var p=new EventApi(t,d.defs[l.defId],s?d.instances[s.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:d});for(var h={oldEvent:u,event:p,relatedEvents:buildEventApis(d,t,s),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:c})}},m={},v=0,g=t.getCurrentData().pluginHooks.eventDropTransformers;v<g.length;v++){var y=g[v];__assign$1(m,y(i,t))}t.emitter.trigger("eventDrop",__assign$1(__assign$1(__assign$1({},h),m),{el:e.subjectEl,delta:i.datesDelta,jsEvent:e.origEvent,view:n})),t.emitter.trigger("eventChange",h)}else if(o){var b={event:u,relatedEvents:buildEventApis(c,t,s),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:c})}};t.emitter.trigger("eventLeave",__assign$1(__assign$1({},b),{draggedEl:e.subjectEl,view:n})),t.dispatch({type:"REMOVE_EVENTS",eventStore:c}),t.emitter.trigger("eventRemove",b);var w=d.defs[l.defId],S=d.instances[s.instanceId],E=new EventApi(o,w,S);o.dispatch({type:"MERGE_EVENTS",eventStore:d});var _={event:E,relatedEvents:buildEventApis(d,o,S),revert:function(){o.dispatch({type:"REMOVE_EVENTS",eventStore:d})}};o.emitter.trigger("eventAdd",_),e.isTouch&&o.dispatch({type:"SELECT_EVENT",eventInstanceId:s.instanceId}),o.emitter.trigger("drop",__assign$1(__assign$1({},buildDatePointApiWithContext(f.dateSpan,o)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:f.context.viewApi})),o.emitter.trigger("eventReceive",__assign$1(__assign$1({},_),{draggedEl:e.subjectEl,view:f.context.viewApi}))}}else t.emitter.trigger("_noEventDrop")}r.cleanup()};var a=r.component.context.options,o=r.dragging=new FeaturefulElementDragging(n.el);o.pointer.selector=t.SELECTOR,o.touchScrollAllowed=!1,o.autoScroller.isEnabled=a.dragScroll;var i=r.hitDragging=new HitDragging(r.dragging,interactionSettingsStore);return i.useSubjectCenter=n.useEventCenter,i.emitter.on("pointerdown",r.handlePointerDown),i.emitter.on("dragstart",r.handleDragStart),i.emitter.on("hitupdate",r.handleHitUpdate),i.emitter.on("pointerup",r.handlePointerUp),i.emitter.on("dragend",r.handleDragEnd),r}return __extends(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t.prototype.displayDrag=function(e,t){var n=this.component.context,r=this.receivingContext;r&&r!==e&&(r===n?r.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:t.affectedEvents,mutatedEvents:createEmptyEventStore(),isEvent:!0}}):r.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})},t.prototype.clearDrag=function(){var e=this.component.context,t=this.receivingContext;t&&t.dispatch({type:"UNSET_EVENT_DRAG"}),e!==t&&e.dispatch({type:"UNSET_EVENT_DRAG"})},t.prototype.cleanup=function(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null},t.SELECTOR=".fc-event-draggable, .fc-event-resizable",t}(Interaction);function computeEventMutation(e,t,n){var r=e.dateSpan,a=t.dateSpan,o=r.range.start,i=a.range.start,l={};r.allDay!==a.allDay&&(l.allDay=a.allDay,l.hasEnd=t.context.options.allDayMaintainDuration,a.allDay&&(o=startOfDay(o)));var s=diffDates(o,i,e.context.dateEnv,e.componentId===t.componentId?e.largeUnit:null);s.milliseconds&&(l.allDay=!1);for(var u={datesDelta:s,standardProps:l},c=0,d=n;c<d.length;c++){(0,d[c])(u,e,t)}return u}function getComponentTouchDelay(e){var t=e.context.options,n=t.eventLongPressDelay;return null==n&&(n=t.longPressDelay),n}var EventResizing=function(e){function t(t){var n=e.call(this,t)||this;n.draggingSegEl=null,n.draggingSeg=null,n.eventRange=null,n.relevantEvents=null,n.validMutation=null,n.mutatedRelevantEvents=null,n.handlePointerDown=function(e){var t=n.component,r=getElSeg(n.querySegEl(e)),a=n.eventRange=r.eventRange;n.dragging.minDistance=t.context.options.eventDragMinDistance,n.dragging.setIgnoreMove(!n.component.isValidSegDownEl(e.origEvent.target)||e.isTouch&&n.component.props.eventSelection!==a.instance.instanceId)},n.handleDragStart=function(e){var t=n.component.context,r=n.eventRange;n.relevantEvents=getRelevantEvents(t.getCurrentData().eventStore,n.eventRange.instance.instanceId);var a=n.querySegEl(e);n.draggingSegEl=a,n.draggingSeg=getElSeg(a),t.calendarApi.unselect(),t.emitter.trigger("eventResizeStart",{el:a,event:new EventApi(t,r.def,r.instance),jsEvent:e.origEvent,view:t.viewApi})},n.handleHitUpdate=function(e,t,r){var a=n.component.context,o=n.relevantEvents,i=n.hitDragging.initialHit,l=n.eventRange.instance,s=null,u=null,c=!1,d={affectedEvents:o,mutatedEvents:createEmptyEventStore(),isEvent:!0};e&&(e.componentId===i.componentId&&n.isHitComboAllowed&&!n.isHitComboAllowed(i,e)||(s=computeMutation(i,e,r.subjectEl.classList.contains("fc-event-resizer-start"),l.range)));s&&(u=applyMutationToEventStore(o,a.getCurrentData().eventUiBases,s,a),d.mutatedEvents=u,isInteractionValid(d,e.dateProfile,a)||(c=!0,s=null,u=null,d.mutatedEvents=null)),u?a.dispatch({type:"SET_EVENT_RESIZE",state:d}):a.dispatch({type:"UNSET_EVENT_RESIZE"}),c?disableCursor():enableCursor(),t||(s&&isHitsEqual(i,e)&&(s=null),n.validMutation=s,n.mutatedRelevantEvents=u)},n.handleDragEnd=function(e){var t=n.component.context,r=n.eventRange.def,a=n.eventRange.instance,o=new EventApi(t,r,a),i=n.relevantEvents,l=n.mutatedRelevantEvents;if(t.emitter.trigger("eventResizeStop",{el:n.draggingSegEl,event:o,jsEvent:e.origEvent,view:t.viewApi}),n.validMutation){var s=new EventApi(t,l.defs[r.defId],a?l.instances[a.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:l});var u={oldEvent:o,event:s,relatedEvents:buildEventApis(l,t,a),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:i})}};t.emitter.trigger("eventResize",__assign$1(__assign$1({},u),{el:n.draggingSegEl,startDelta:n.validMutation.startDelta||createDuration(0),endDelta:n.validMutation.endDelta||createDuration(0),jsEvent:e.origEvent,view:t.viewApi})),t.emitter.trigger("eventChange",u)}else t.emitter.trigger("_noEventResize");n.draggingSeg=null,n.relevantEvents=null,n.validMutation=null};var r=t.component,a=n.dragging=new FeaturefulElementDragging(t.el);a.pointer.selector=".fc-event-resizer",a.touchScrollAllowed=!1,a.autoScroller.isEnabled=r.context.options.dragScroll;var o=n.hitDragging=new HitDragging(n.dragging,interactionSettingsToStore(t));return o.emitter.on("pointerdown",n.handlePointerDown),o.emitter.on("dragstart",n.handleDragStart),o.emitter.on("hitupdate",n.handleHitUpdate),o.emitter.on("dragend",n.handleDragEnd),n}return __extends(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t.prototype.querySegEl=function(e){return elementClosest(e.subjectEl,".fc-event")},t}(Interaction);function computeMutation(e,t,n,r){var a=e.context.dateEnv,o=diffDates(e.dateSpan.range.start,t.dateSpan.range.start,a,e.largeUnit);if(n){if(a.add(r.start,o)<r.end)return{startDelta:o}}else if(a.add(r.end,o)>r.start)return{endDelta:o};return null}var UnselectAuto=function(){function e(e){var t=this;this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=function(e){e.jsEvent&&(t.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=function(e){var n=t.context.options.unselectCancel,r=getEventTargetViaRoot(e.origEvent);t.matchesCancel=!!elementClosest(r,n),t.matchesEvent=!!elementClosest(r,EventDragging.SELECTOR)},this.onDocumentPointerUp=function(e){var n=t.context,r=t.documentPointer,a=n.getCurrentData();if(!r.wasTouchScroll){if(a.dateSelection&&!t.isRecentPointerDateSelect){var o=n.options.unselectAuto;!o||o&&t.matchesCancel||n.calendarApi.unselect(e)}a.eventSelection&&!t.matchesEvent&&n.dispatch({type:"UNSELECT_EVENT"})}t.isRecentPointerDateSelect=!1};var n=this.documentPointer=new PointerDragging(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on("pointerdown",this.onDocumentPointerDown),n.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}return e.prototype.destroy=function(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()},e}(),OPTION_REFINERS$1={fixedMirrorParent:identity},LISTENER_REFINERS={dateClick:identity,eventDragStart:identity,eventDragStop:identity,eventDrop:identity,eventResizeStart:identity,eventResizeStop:identity,eventResize:identity,drop:identity,eventReceive:identity,eventLeave:identity};config$1.dataAttrPrefix="",function(e){function t(t){var n=e.call(this,t)||this;n.shouldIgnoreMove=!1,n.mirrorSelector="",n.currentMirrorEl=null,n.handlePointerDown=function(e){n.emitter.trigger("pointerdown",e),n.shouldIgnoreMove||n.emitter.trigger("dragstart",e)},n.handlePointerMove=function(e){n.shouldIgnoreMove||n.emitter.trigger("dragmove",e)},n.handlePointerUp=function(e){n.emitter.trigger("pointerup",e),n.shouldIgnoreMove||n.emitter.trigger("dragend",e)};var r=n.pointer=new PointerDragging(t);return r.emitter.on("pointerdown",n.handlePointerDown),r.emitter.on("pointermove",n.handlePointerMove),r.emitter.on("pointerup",n.handlePointerUp),n}__extends(t,e),t.prototype.destroy=function(){this.pointer.destroy()},t.prototype.setIgnoreMove=function(e){this.shouldIgnoreMove=e},t.prototype.setMirrorIsVisible=function(e){if(e)this.currentMirrorEl&&(this.currentMirrorEl.style.visibility="",this.currentMirrorEl=null);else{var t=this.mirrorSelector?document.querySelector(this.mirrorSelector):null;t&&(this.currentMirrorEl=t,t.style.visibility="hidden")}}}(ElementDragging);var main$1=createPlugin({componentInteractions:[DateClicking,DateSelecting,EventDragging,EventResizing],calendarInteractions:[UnselectAuto],elementDraggingImpl:FeaturefulElementDragging,optionRefiners:OPTION_REFINERS$1,listenerRefiners:LISTENER_REFINERS}),ListViewHeaderRow=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={textId:getUniqueDomId()},t}return __extends(t,e),t.prototype.render=function(){var e=this.context,t=e.theme,n=e.dateEnv,r=e.options,a=e.viewApi,o=this.props,i=o.cellId,l=o.dayDate,s=o.todayRange,u=this.state.textId,c=getDateMeta(l,s),d=r.listDayFormat?n.format(l,r.listDayFormat):"",f=r.listDaySideFormat?n.format(l,r.listDaySideFormat):"",p=__assign$1({date:n.toDate(l),view:a,textId:u,text:d,sideText:f,navLinkAttrs:buildNavLinkAttrs(this.context,l),sideNavLinkAttrs:buildNavLinkAttrs(this.context,l,"day",!1)},c),h=["fc-list-day"].concat(getDayClassNames(c,t));return createElement(RenderHook,{hookProps:p,classNames:r.dayHeaderClassNames,content:r.dayHeaderContent,defaultContent:renderInnerContent,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},(function(e,n,r,a){return createElement("tr",{ref:e,className:h.concat(n).join(" "),"data-date":formatDayString(l)},createElement("th",{scope:"colgroup",colSpan:3,id:i,"aria-labelledby":u},createElement("div",{className:"fc-list-day-cushion "+t.getClass("tableCellShaded"),ref:r},a)))}))},t}(BaseComponent);
|
|
68
68
|
/*!
|
|
69
69
|
FullCalendar v5.11.3
|
|
70
70
|
Docs & License: https://fullcalendar.io/
|
|
71
71
|
(c) 2022 Adam Shaw
|
|
72
|
-
*/function Nl(e){return O(z,null,e.text&&O("a",n({id:e.textId,className:"fc-list-day-text"},e.navLinkAttrs),e.text),e.sideText&&O("a",n({"aria-hidden":!0,className:"fc-list-day-side-text"},e.sideNavLinkAttrs),e.sideText))}var Il=pt({hour:"numeric",minute:"2-digit",meridiem:"short"}),Ml=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t(r,e),r.prototype.render=function(){var e=this.props,t=this.context,r=e.seg,a=e.timeHeaderId,o=e.eventHeaderId,i=e.dateHeaderId,l=t.options.eventTimeFormat||Il;return O(Ro,{seg:r,timeText:"",disableDragging:!0,disableResizing:!0,defaultContent:function(){return function(e,t){var r=dn(e,t);return O("a",n({},r),e.eventRange.def.title)}(r,t)},isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,isSelected:e.isSelected,isDragging:e.isDragging,isResizing:e.isResizing,isDateSelecting:e.isDateSelecting},(function(e,n,s,u,c){return O("tr",{className:["fc-list-event",c.event.url?"fc-event-forced-url":""].concat(n).join(" "),ref:e},function(e,t,n,r,a){var o=n.options;if(!1!==o.displayEventTime){var i=e.eventRange.def,l=e.eventRange.instance,s=!1,u=void 0;if(i.allDay?s=!0:(d=e.eventRange.range,ve((f=Wt(d)).start,f.end)>1?e.isStart?u=sn(e,t,n,null,null,l.range.start,e.end):e.isEnd?u=sn(e,t,n,null,null,e.start,l.range.end):s=!0:u=sn(e,t,n)),s){var c={text:n.options.allDayText,view:n.viewApi};return O(Pr,{hookProps:c,classNames:o.allDayClassNames,content:o.allDayContent,defaultContent:Ol,didMount:o.allDayDidMount,willUnmount:o.allDayWillUnmount},(function(e,t,n,o){return O("td",{ref:e,headers:r+" "+a,className:["fc-list-event-time"].concat(t).join(" ")},o)}))}return O("td",{className:"fc-list-event-time"},u)}var d,f;return null}(r,l,t,a,i),O("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},O("span",{className:"fc-list-event-dot",style:{borderColor:c.borderColor||c.backgroundColor}})),O("td",{ref:s,headers:o+" "+i,className:"fc-list-event-title"},u))}))},r}(kr);function Ol(e){return e.text}function Ll(e){return e.text}function zl(e){for(var t=ge(e.renderRange.start),n=e.renderRange.end,r=[],a=[];t<n;)r.push(t),a.push({start:t,end:pe(t,1)}),t=pe(t,1);return{dayDates:r,dayRanges:a}}function Al(e){return!1===e?null:pt(e)}var Fl=_r({optionRefiners:{listDayFormat:Al,listDaySideFormat:Al,noEventsClassNames:xt,noEventsContent:xt,noEventsDidMount:xt,noEventsWillUnmount:xt},views:{list:{component:function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.computeDateVars=Ze(zl),t.eventStoreToSegs=Ze(t._eventStoreToSegs),t.state={timeHeaderId:K(),eventHeaderId:K(),dateHeaderIdRoot:K()},t.setRootEl=function(e){e?t.context.registerInteractiveComponent(t,{el:e}):t.context.unregisterInteractiveComponent(t)},t}return t(r,e),r.prototype.render=function(){var e=this,t=this.props,n=this.context,r=["fc-list",n.theme.getClass("table"),!1!==n.options.stickyHeaderDates?"fc-list-sticky":""],a=this.computeDateVars(t.dateProfile),o=a.dayDates,i=a.dayRanges,l=this.eventStoreToSegs(t.eventStore,t.eventUiBases,i);return O(Fr,{viewSpec:n.viewSpec,elRef:this.setRootEl},(function(n,a){return O("div",{ref:n,className:r.concat(a).join(" ")},O(go,{liquid:!t.isHeightAuto,overflowX:t.isHeightAuto?"visible":"hidden",overflowY:t.isHeightAuto?"visible":"auto"},l.length>0?e.renderSegList(l,o):e.renderEmptyMessage()))}))},r.prototype.renderEmptyMessage=function(){var e=this.context,t=e.options,n=e.viewApi,r={text:t.noEventsText,view:n};return O(Pr,{hookProps:r,classNames:t.noEventsClassNames,content:t.noEventsContent,defaultContent:Ll,didMount:t.noEventsDidMount,willUnmount:t.noEventsWillUnmount},(function(e,t,n,r){return O("div",{className:["fc-list-empty"].concat(t).join(" "),ref:e},O("div",{className:"fc-list-empty-cushion",ref:n},r))}))},r.prototype.renderSegList=function(e,t){var r=this.context,a=r.theme,o=r.options,i=this.state,l=i.timeHeaderId,s=i.eventHeaderId,u=i.dateHeaderIdRoot,c=function(e){var t,n,r=[];for(t=0;t<e.length;t+=1)(r[(n=e[t]).dayIndex]||(r[n.dayIndex]=[])).push(n);return r}(e);return O(eo,{unit:"day"},(function(e,r){for(var i=[],d=0;d<c.length;d+=1){var f=c[d];if(f){var p=Ke(t[d]),h=u+"-"+p;i.push(O(Pl,{key:p,cellId:h,dayDate:t[d],todayRange:r}));for(var v=0,m=f=nn(f,o.eventOrder);v<m.length;v++){var g=m[v];i.push(O(Ml,n({key:p+":"+g.eventRange.instance.instanceId,seg:g,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:l,eventHeaderId:s,dateHeaderId:h},un(g,r,e))))}}}return O("table",{className:"fc-list-table "+a.getClass("table")},O("thead",null,O("tr",null,O("th",{scope:"col",id:l},o.timeHint),O("th",{scope:"col","aria-hidden":!0}),O("th",{scope:"col",id:s},o.eventHint))),O("tbody",null,i))}))},r.prototype._eventStoreToSegs=function(e,t,n){return this.eventRangesToSegs(Xt(e,t,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,n)},r.prototype.eventRangesToSegs=function(e,t){for(var n=[],r=0,a=e;r<a.length;r++){var o=a[r];n.push.apply(n,this.eventRangeToSegs(o,t))}return n},r.prototype.eventRangeToSegs=function(e,t){var n,r,a,o=this.context.dateEnv,i=this.context.options.nextDayThreshold,l=e.range,s=e.def.allDay,u=[];for(n=0;n<t.length;n+=1)if((r=Yt(l,t[n]))&&(a={component:this,eventRange:e,start:r.start,end:r.end,isStart:e.isStart&&r.start.valueOf()===l.start.valueOf(),isEnd:e.isEnd&&r.end.valueOf()===l.end.valueOf(),dayIndex:n},u.push(a),!a.isEnd&&!s&&n+1<t.length&&l.end<o.add(t[n+1].start,i))){a.end=l.end,a.isEnd=!0;break}return u},r}(Tr),buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}}),Hl={};Object.defineProperty(Hl,"__esModule",{value:!0});function jl(e){return"Tag"===e||"Monat"===e?"r":"Jahr"===e?"s":""}function Ul(e){return"Tag"===e||"Monat"===e?"r":"Jahr"===e?"s":""}var Vl=[{code:"af",week:{dow:1,doy:4},buttonText:{prev:"Vorige",next:"Volgende",today:"Vandag",year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayText:"Heeldag",moreLinkText:"Addisionele",noEventsText:"Daar is geen gebeurtenisse nie"},{code:"ar-dz",week:{dow:0,doy:4},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar-kw",week:{dow:0,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar-ly",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar-ma",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar-sa",week:{dow:0,doy:6},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar-tn",week:{dow:1,doy:4},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"az",week:{dow:1,doy:4},buttonText:{prev:"Əvvəl",next:"Sonra",today:"Bu Gün",month:"Ay",week:"Həftə",day:"Gün",list:"Gündəm"},weekText:"Həftə",allDayText:"Bütün Gün",moreLinkText:function(e){return"+ daha çox "+e},noEventsText:"Göstərmək üçün hadisə yoxdur"},{code:"bg",week:{dow:1,doy:7},buttonText:{prev:"назад",next:"напред",today:"днес",month:"Месец",week:"Седмица",day:"Ден",list:"График"},allDayText:"Цял ден",moreLinkText:function(e){return"+още "+e},noEventsText:"Няма събития за показване"},{code:"bn",week:{dow:0,doy:6},buttonText:{prev:"পেছনে",next:"সামনে",today:"আজ",month:"মাস",week:"সপ্তাহ",day:"দিন",list:"তালিকা"},weekText:"সপ্তাহ",allDayText:"সারাদিন",moreLinkText:function(e){return"+অন্যান্য "+e},noEventsText:"কোনো ইভেন্ট নেই"},{code:"bs",week:{dow:1,doy:7},buttonText:{prev:"Prošli",next:"Sljedeći",today:"Danas",month:"Mjesec",week:"Sedmica",day:"Dan",list:"Raspored"},weekText:"Sed",allDayText:"Cijeli dan",moreLinkText:function(e){return"+ još "+e},noEventsText:"Nema događaja za prikazivanje"},{code:"ca",week:{dow:1,doy:4},buttonText:{prev:"Anterior",next:"Següent",today:"Avui",month:"Mes",week:"Setmana",day:"Dia",list:"Agenda"},weekText:"Set",allDayText:"Tot el dia",moreLinkText:"més",noEventsText:"No hi ha esdeveniments per mostrar"},{code:"cs",week:{dow:1,doy:4},buttonText:{prev:"Dříve",next:"Později",today:"Nyní",month:"Měsíc",week:"Týden",day:"Den",list:"Agenda"},weekText:"Týd",allDayText:"Celý den",moreLinkText:function(e){return"+další: "+e},noEventsText:"Žádné akce k zobrazení"},{code:"cy",week:{dow:1,doy:4},buttonText:{prev:"Blaenorol",next:"Nesaf",today:"Heddiw",year:"Blwyddyn",month:"Mis",week:"Wythnos",day:"Dydd",list:"Rhestr"},weekText:"Wythnos",allDayText:"Trwy'r dydd",moreLinkText:"Mwy",noEventsText:"Dim digwyddiadau"},{code:"da",week:{dow:1,doy:4},buttonText:{prev:"Forrige",next:"Næste",today:"I dag",month:"Måned",week:"Uge",day:"Dag",list:"Agenda"},weekText:"Uge",allDayText:"Hele dagen",moreLinkText:"flere",noEventsText:"Ingen arrangementer at vise"},{code:"de-at",week:{dow:1,doy:4},buttonText:{prev:"Zurück",next:"Vor",today:"Heute",year:"Jahr",month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},weekText:"KW",weekTextLong:"Woche",allDayText:"Ganztägig",moreLinkText:function(e){return"+ weitere "+e},noEventsText:"Keine Ereignisse anzuzeigen",buttonHints:{prev:function(e){return"Vorherige".concat(jl(e)," ").concat(e)},next:function(e){return"Nächste".concat(jl(e)," ").concat(e)},today:function(e){return"Tag"===e?"Heute":"Diese".concat(jl(e)," ").concat(e)}},viewHint:function(e){return e+("Woche"===e?"n":"Monat"===e?"s":"es")+"ansicht"},navLinkHint:"Gehe zu $0",moreLinkHint:function(e){return"Zeige "+(1===e?"ein weiteres Ereignis":e+" weitere Ereignisse")},closeHint:"Schließen",timeHint:"Uhrzeit",eventHint:"Ereignis"},{code:"de",week:{dow:1,doy:4},buttonText:{prev:"Zurück",next:"Vor",today:"Heute",year:"Jahr",month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},weekText:"KW",weekTextLong:"Woche",allDayText:"Ganztägig",moreLinkText:function(e){return"+ weitere "+e},noEventsText:"Keine Ereignisse anzuzeigen",buttonHints:{prev:function(e){return"Vorherige".concat(Ul(e)," ").concat(e)},next:function(e){return"Nächste".concat(Ul(e)," ").concat(e)},today:function(e){return"Tag"===e?"Heute":"Diese".concat(Ul(e)," ").concat(e)}},viewHint:function(e){return e+("Woche"===e?"n":"Monat"===e?"s":"es")+"ansicht"},navLinkHint:"Gehe zu $0",moreLinkHint:function(e){return"Zeige "+(1===e?"ein weiteres Ereignis":e+" weitere Ereignisse")},closeHint:"Schließen",timeHint:"Uhrzeit",eventHint:"Ereignis"},{code:"el",week:{dow:1,doy:4},buttonText:{prev:"Προηγούμενος",next:"Επόμενος",today:"Σήμερα",month:"Μήνας",week:"Εβδομάδα",day:"Ημέρα",list:"Ατζέντα"},weekText:"Εβδ",allDayText:"Ολοήμερο",moreLinkText:"περισσότερα",noEventsText:"Δεν υπάρχουν γεγονότα προς εμφάνιση"},{code:"en-au",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:function(e){return"Show ".concat(e," more event").concat(1===e?"":"s")}},{code:"en-gb",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:function(e){return"Show ".concat(e," more event").concat(1===e?"":"s")}},{code:"en-nz",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:function(e){return"Show ".concat(e," more event").concat(1===e?"":"s")}},{code:"eo",week:{dow:1,doy:4},buttonText:{prev:"Antaŭa",next:"Sekva",today:"Hodiaŭ",month:"Monato",week:"Semajno",day:"Tago",list:"Tagordo"},weekText:"Sm",allDayText:"Tuta tago",moreLinkText:"pli",noEventsText:"Neniuj eventoj por montri"},{code:"es",week:{dow:0,doy:6},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},weekText:"Sm",allDayText:"Todo el día",moreLinkText:"más",noEventsText:"No hay eventos para mostrar"},{code:"es",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},buttonHints:{prev:"$0 antes",next:"$0 siguiente",today:function(e){return"Día"===e?"Hoy":("Semana"===e?"Esta":"Este")+" "+e.toLocaleLowerCase()}},viewHint:function(e){return"Vista "+("Semana"===e?"de la":"del")+" "+e.toLocaleLowerCase()},weekText:"Sm",weekTextLong:"Semana",allDayText:"Todo el día",moreLinkText:"más",moreLinkHint:function(e){return"Mostrar ".concat(e," eventos más")},noEventsText:"No hay eventos para mostrar",navLinkHint:"Ir al $0",closeHint:"Cerrar",timeHint:"La hora",eventHint:"Evento"},{code:"et",week:{dow:1,doy:4},buttonText:{prev:"Eelnev",next:"Järgnev",today:"Täna",month:"Kuu",week:"Nädal",day:"Päev",list:"Päevakord"},weekText:"näd",allDayText:"Kogu päev",moreLinkText:function(e){return"+ veel "+e},noEventsText:"Kuvamiseks puuduvad sündmused"},{code:"eu",week:{dow:1,doy:7},buttonText:{prev:"Aur",next:"Hur",today:"Gaur",month:"Hilabetea",week:"Astea",day:"Eguna",list:"Agenda"},weekText:"As",allDayText:"Egun osoa",moreLinkText:"gehiago",noEventsText:"Ez dago ekitaldirik erakusteko"},{code:"fa",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"قبلی",next:"بعدی",today:"امروز",month:"ماه",week:"هفته",day:"روز",list:"برنامه"},weekText:"هف",allDayText:"تمام روز",moreLinkText:function(e){return"بیش از "+e},noEventsText:"هیچ رویدادی به نمایش"},{code:"fi",week:{dow:1,doy:4},buttonText:{prev:"Edellinen",next:"Seuraava",today:"Tänään",month:"Kuukausi",week:"Viikko",day:"Päivä",list:"Tapahtumat"},weekText:"Vk",allDayText:"Koko päivä",moreLinkText:"lisää",noEventsText:"Ei näytettäviä tapahtumia"},{code:"fr",buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},weekText:"Sem.",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun événement à afficher"},{code:"fr-ch",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Courant",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},weekText:"Sm",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun événement à afficher"},{code:"fr",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Planning"},weekText:"Sem.",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun événement à afficher"},{code:"gl",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Seg",today:"Hoxe",month:"Mes",week:"Semana",day:"Día",list:"Axenda"},weekText:"Sm",allDayText:"Todo o día",moreLinkText:"máis",noEventsText:"Non hai eventos para amosar"},{code:"he",direction:"rtl",buttonText:{prev:"הקודם",next:"הבא",today:"היום",month:"חודש",week:"שבוע",day:"יום",list:"סדר יום"},allDayText:"כל היום",moreLinkText:"אחר",noEventsText:"אין אירועים להצגה",weekText:"שבוע"},{code:"hi",week:{dow:0,doy:6},buttonText:{prev:"पिछला",next:"अगला",today:"आज",month:"महीना",week:"सप्ताह",day:"दिन",list:"कार्यसूची"},weekText:"हफ्ता",allDayText:"सभी दिन",moreLinkText:function(e){return"+अधिक "+e},noEventsText:"कोई घटनाओं को प्रदर्शित करने के लिए"},{code:"hr",week:{dow:1,doy:7},buttonText:{prev:"Prijašnji",next:"Sljedeći",today:"Danas",month:"Mjesec",week:"Tjedan",day:"Dan",list:"Raspored"},weekText:"Tje",allDayText:"Cijeli dan",moreLinkText:function(e){return"+ još "+e},noEventsText:"Nema događaja za prikaz"},{code:"hu",week:{dow:1,doy:4},buttonText:{prev:"vissza",next:"előre",today:"ma",month:"Hónap",week:"Hét",day:"Nap",list:"Lista"},weekText:"Hét",allDayText:"Egész nap",moreLinkText:"további",noEventsText:"Nincs megjeleníthető esemény"},{code:"hy-am",week:{dow:1,doy:4},buttonText:{prev:"Նախորդ",next:"Հաջորդ",today:"Այսօր",month:"Ամիս",week:"Շաբաթ",day:"Օր",list:"Օրվա ցուցակ"},weekText:"Շաբ",allDayText:"Ամբողջ օր",moreLinkText:function(e){return"+ ևս "+e},noEventsText:"Բացակայում է իրադարձությունը ցուցադրելու"},{code:"id",week:{dow:1,doy:7},buttonText:{prev:"mundur",next:"maju",today:"hari ini",month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},weekText:"Mg",allDayText:"Sehari penuh",moreLinkText:"lebih",noEventsText:"Tidak ada acara untuk ditampilkan"},{code:"is",week:{dow:1,doy:4},buttonText:{prev:"Fyrri",next:"Næsti",today:"Í dag",month:"Mánuður",week:"Vika",day:"Dagur",list:"Dagskrá"},weekText:"Vika",allDayText:"Allan daginn",moreLinkText:"meira",noEventsText:"Engir viðburðir til að sýna"},{code:"it",week:{dow:1,doy:4},buttonText:{prev:"Prec",next:"Succ",today:"Oggi",month:"Mese",week:"Settimana",day:"Giorno",list:"Agenda"},weekText:"Sm",allDayText:"Tutto il giorno",moreLinkText:function(e){return"+altri "+e},noEventsText:"Non ci sono eventi da visualizzare"},{code:"ja",buttonText:{prev:"前",next:"次",today:"今日",month:"月",week:"週",day:"日",list:"予定リスト"},weekText:"週",allDayText:"終日",moreLinkText:function(e){return"他 "+e+" 件"},noEventsText:"表示する予定はありません"},{code:"ka",week:{dow:1,doy:7},buttonText:{prev:"წინა",next:"შემდეგი",today:"დღეს",month:"თვე",week:"კვირა",day:"დღე",list:"დღის წესრიგი"},weekText:"კვ",allDayText:"მთელი დღე",moreLinkText:function(e){return"+ კიდევ "+e},noEventsText:"ღონისძიებები არ არის"},{code:"kk",week:{dow:1,doy:7},buttonText:{prev:"Алдыңғы",next:"Келесі",today:"Бүгін",month:"Ай",week:"Апта",day:"Күн",list:"Күн тәртібі"},weekText:"Не",allDayText:"Күні бойы",moreLinkText:function(e){return"+ тағы "+e},noEventsText:"Көрсету үшін оқиғалар жоқ"},{code:"km",week:{dow:1,doy:4},buttonText:{prev:"មុន",next:"បន្ទាប់",today:"ថ្ងៃនេះ",year:"ឆ្នាំ",month:"ខែ",week:"សប្តាហ៍",day:"ថ្ងៃ",list:"បញ្ជី"},weekText:"សប្តាហ៍",allDayText:"ពេញមួយថ្ងៃ",moreLinkText:"ច្រើនទៀត",noEventsText:"គ្មានព្រឹត្តិការណ៍ត្រូវបង្ហាញ"},{code:"ko",buttonText:{prev:"이전달",next:"다음달",today:"오늘",month:"월",week:"주",day:"일",list:"일정목록"},weekText:"주",allDayText:"종일",moreLinkText:"개",noEventsText:"일정이 없습니다"},{code:"ku",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"پێشتر",next:"دواتر",today:"ئەمڕو",month:"مانگ",week:"هەفتە",day:"ڕۆژ",list:"بەرنامە"},weekText:"هەفتە",allDayText:"هەموو ڕۆژەکە",moreLinkText:"زیاتر",noEventsText:"هیچ ڕووداوێك نیە"},{code:"lb",week:{dow:1,doy:4},buttonText:{prev:"Zréck",next:"Weider",today:"Haut",month:"Mount",week:"Woch",day:"Dag",list:"Terminiwwersiicht"},weekText:"W",allDayText:"Ganzen Dag",moreLinkText:"méi",noEventsText:"Nee Evenementer ze affichéieren"},{code:"lt",week:{dow:1,doy:4},buttonText:{prev:"Atgal",next:"Pirmyn",today:"Šiandien",month:"Mėnuo",week:"Savaitė",day:"Diena",list:"Darbotvarkė"},weekText:"SAV",allDayText:"Visą dieną",moreLinkText:"daugiau",noEventsText:"Nėra įvykių rodyti"},{code:"lv",week:{dow:1,doy:4},buttonText:{prev:"Iepr.",next:"Nāk.",today:"Šodien",month:"Mēnesis",week:"Nedēļa",day:"Diena",list:"Dienas kārtība"},weekText:"Ned.",allDayText:"Visu dienu",moreLinkText:function(e){return"+vēl "+e},noEventsText:"Nav notikumu"},{code:"mk",buttonText:{prev:"претходно",next:"следно",today:"Денес",month:"Месец",week:"Недела",day:"Ден",list:"График"},weekText:"Сед",allDayText:"Цел ден",moreLinkText:function(e){return"+повеќе "+e},noEventsText:"Нема настани за прикажување"},{code:"ms",week:{dow:1,doy:7},buttonText:{prev:"Sebelum",next:"Selepas",today:"hari ini",month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},weekText:"Mg",allDayText:"Sepanjang hari",moreLinkText:function(e){return"masih ada "+e+" acara"},noEventsText:"Tiada peristiwa untuk dipaparkan"},{code:"nb",week:{dow:1,doy:4},buttonText:{prev:"Forrige",next:"Neste",today:"I dag",month:"Måned",week:"Uke",day:"Dag",list:"Agenda"},weekText:"Uke",weekTextLong:"Uke",allDayText:"Hele dagen",moreLinkText:"til",noEventsText:"Ingen hendelser å vise",buttonHints:{prev:"Forrige $0",next:"Neste $0",today:"Nåværende $0"},viewHint:"$0 visning",navLinkHint:"Gå til $0",moreLinkHint:function(e){return"Vis ".concat(e," flere hendelse").concat(1===e?"":"r")}},{code:"ne",week:{dow:7,doy:1},buttonText:{prev:"अघिल्लो",next:"अर्को",today:"आज",month:"महिना",week:"हप्ता",day:"दिन",list:"सूची"},weekText:"हप्ता",allDayText:"दिनभरि",moreLinkText:"थप लिंक",noEventsText:"देखाउनको लागि कुनै घटनाहरू छैनन्"},{code:"nl",week:{dow:1,doy:4},buttonText:{prev:"Vorige",next:"Volgende",today:"Vandaag",year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayText:"Hele dag",moreLinkText:"extra",noEventsText:"Geen evenementen om te laten zien"},{code:"nn",week:{dow:1,doy:4},buttonText:{prev:"Førre",next:"Neste",today:"I dag",month:"Månad",week:"Veke",day:"Dag",list:"Agenda"},weekText:"Veke",allDayText:"Heile dagen",moreLinkText:"til",noEventsText:"Ingen hendelser å vise"},{code:"pl",week:{dow:1,doy:4},buttonText:{prev:"Poprzedni",next:"Następny",today:"Dziś",month:"Miesiąc",week:"Tydzień",day:"Dzień",list:"Plan dnia"},weekText:"Tydz",allDayText:"Cały dzień",moreLinkText:"więcej",noEventsText:"Brak wydarzeń do wyświetlenia"},{code:"pt-br",buttonText:{prev:"Anterior",next:"Próximo",today:"Hoje",month:"Mês",week:"Semana",day:"Dia",list:"Lista"},weekText:"Sm",allDayText:"dia inteiro",moreLinkText:function(e){return"mais +"+e},noEventsText:"Não há eventos para mostrar"},{code:"pt",week:{dow:1,doy:4},buttonText:{prev:"Anterior",next:"Seguinte",today:"Hoje",month:"Mês",week:"Semana",day:"Dia",list:"Agenda"},weekText:"Sem",allDayText:"Todo o dia",moreLinkText:"mais",noEventsText:"Não há eventos para mostrar"},{code:"ro",week:{dow:1,doy:7},buttonText:{prev:"precedentă",next:"următoare",today:"Azi",month:"Lună",week:"Săptămână",day:"Zi",list:"Agendă"},weekText:"Săpt",allDayText:"Toată ziua",moreLinkText:function(e){return"+alte "+e},noEventsText:"Nu există evenimente de afișat"},{code:"ru",week:{dow:1,doy:4},buttonText:{prev:"Пред",next:"След",today:"Сегодня",month:"Месяц",week:"Неделя",day:"День",list:"Повестка дня"},weekText:"Нед",allDayText:"Весь день",moreLinkText:function(e){return"+ ещё "+e},noEventsText:"Нет событий для отображения"},{code:"si-lk",week:{dow:1,doy:4},buttonText:{prev:"පෙර",next:"පසු",today:"අද",month:"මාසය",week:"සතිය",day:"දවස",list:"ලැයිස්තුව"},weekText:"සති",allDayText:"සියලු",moreLinkText:"තවත්",noEventsText:"මුකුත් නැත"},{code:"sk",week:{dow:1,doy:4},buttonText:{prev:"Predchádzajúci",next:"Nasledujúci",today:"Dnes",month:"Mesiac",week:"Týždeň",day:"Deň",list:"Rozvrh"},weekText:"Ty",allDayText:"Celý deň",moreLinkText:function(e){return"+ďalšie: "+e},noEventsText:"Žiadne akcie na zobrazenie"},{code:"sl",week:{dow:1,doy:7},buttonText:{prev:"Prejšnji",next:"Naslednji",today:"Trenutni",month:"Mesec",week:"Teden",day:"Dan",list:"Dnevni red"},weekText:"Teden",allDayText:"Ves dan",moreLinkText:"več",noEventsText:"Ni dogodkov za prikaz"},{code:"sm",buttonText:{prev:"Talu ai",next:"Mulimuli atu",today:"Aso nei",month:"Masina",week:"Vaiaso",day:"Aso",list:"Faasologa"},weekText:"Vaiaso",allDayText:"Aso atoa",moreLinkText:"sili atu",noEventsText:"Leai ni mea na tutupu"},{code:"sq",week:{dow:1,doy:4},buttonText:{prev:"mbrapa",next:"Përpara",today:"sot",month:"Muaj",week:"Javë",day:"Ditë",list:"Listë"},weekText:"Ja",allDayText:"Gjithë ditën",moreLinkText:function(e){return"+më tepër "+e},noEventsText:"Nuk ka evente për të shfaqur"},{code:"sr-cyrl",week:{dow:1,doy:7},buttonText:{prev:"Претходна",next:"следећи",today:"Данас",month:"Месец",week:"Недеља",day:"Дан",list:"Планер"},weekText:"Сед",allDayText:"Цео дан",moreLinkText:function(e){return"+ још "+e},noEventsText:"Нема догађаја за приказ"},{code:"sr",week:{dow:1,doy:7},buttonText:{prev:"Prethodna",next:"Sledeći",today:"Danas",month:"Mеsеc",week:"Nеdеlja",day:"Dan",list:"Planеr"},weekText:"Sed",allDayText:"Cеo dan",moreLinkText:function(e){return"+ još "+e},noEventsText:"Nеma događaja za prikaz"},{code:"sv",week:{dow:1,doy:4},buttonText:{prev:"Förra",next:"Nästa",today:"Idag",month:"Månad",week:"Vecka",day:"Dag",list:"Program"},buttonHints:{prev:function(e){return"Föregående ".concat(e.toLocaleLowerCase())},next:function(e){return"Nästa ".concat(e.toLocaleLowerCase())},today:function(e){return("Program"===e?"Detta":"Denna")+" "+e.toLocaleLowerCase()}},viewHint:"$0 vy",navLinkHint:"Gå till $0",moreLinkHint:function(e){return"Visa ytterligare ".concat(e," händelse").concat(1===e?"":"r")},weekText:"v.",weekTextLong:"Vecka",allDayText:"Heldag",moreLinkText:"till",noEventsText:"Inga händelser att visa",closeHint:"Stäng",timeHint:"Klockan",eventHint:"Händelse"},{code:"ta-in",week:{dow:1,doy:4},buttonText:{prev:"முந்தைய",next:"அடுத்தது",today:"இன்று",month:"மாதம்",week:"வாரம்",day:"நாள்",list:"தினசரி அட்டவணை"},weekText:"வாரம்",allDayText:"நாள் முழுவதும்",moreLinkText:function(e){return"+ மேலும் "+e},noEventsText:"காண்பிக்க நிகழ்வுகள் இல்லை"},{code:"th",week:{dow:1,doy:4},buttonText:{prev:"ก่อนหน้า",next:"ถัดไป",prevYear:"ปีก่อนหน้า",nextYear:"ปีถัดไป",year:"ปี",today:"วันนี้",month:"เดือน",week:"สัปดาห์",day:"วัน",list:"กำหนดการ"},weekText:"สัปดาห์",allDayText:"ตลอดวัน",moreLinkText:"เพิ่มเติม",noEventsText:"ไม่มีกิจกรรมที่จะแสดง"},{code:"tr",week:{dow:1,doy:7},buttonText:{prev:"geri",next:"ileri",today:"bugün",month:"Ay",week:"Hafta",day:"Gün",list:"Ajanda"},weekText:"Hf",allDayText:"Tüm gün",moreLinkText:"daha fazla",noEventsText:"Gösterilecek etkinlik yok"},{code:"ug",buttonText:{month:"ئاي",week:"ھەپتە",day:"كۈن",list:"كۈنتەرتىپ"},allDayText:"پۈتۈن كۈن"},{code:"uk",week:{dow:1,doy:7},buttonText:{prev:"Попередній",next:"далі",today:"Сьогодні",month:"Місяць",week:"Тиждень",day:"День",list:"Порядок денний"},weekText:"Тиж",allDayText:"Увесь день",moreLinkText:function(e){return"+ще "+e+"..."},noEventsText:"Немає подій для відображення"},{code:"uz",buttonText:{month:"Oy",week:"Xafta",day:"Kun",list:"Kun tartibi"},allDayText:"Kun bo'yi",moreLinkText:function(e){return"+ yana "+e},noEventsText:"Ko'rsatish uchun voqealar yo'q"},{code:"vi",week:{dow:1,doy:4},buttonText:{prev:"Trước",next:"Tiếp",today:"Hôm nay",month:"Tháng",week:"Tuần",day:"Ngày",list:"Lịch biểu"},weekText:"Tu",allDayText:"Cả ngày",moreLinkText:function(e){return"+ thêm "+e},noEventsText:"Không có sự kiện để hiển thị"},{code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText:function(e){return"另外 "+e+" 个"},noEventsText:"没有事件显示"},{code:"zh-tw",buttonText:{prev:"上月",next:"下月",today:"今天",month:"月",week:"週",day:"天",list:"活動列表"},weekText:"周",allDayText:"整天",moreLinkText:"顯示更多",noEventsText:"没有任何活動"}],Wl=Hl.default=Vl,Bl={exports:{}};
|
|
72
|
+
*/function renderInnerContent(e){return createElement(Fragment,null,e.text&&createElement("a",__assign$1({id:e.textId,className:"fc-list-day-text"},e.navLinkAttrs),e.text),e.sideText&&createElement("a",__assign$1({"aria-hidden":!0,className:"fc-list-day-side-text"},e.sideNavLinkAttrs),e.sideText))}var DEFAULT_TIME_FORMAT=createFormatter({hour:"numeric",minute:"2-digit",meridiem:"short"}),ListViewEventRow=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=e.seg,r=e.timeHeaderId,a=e.eventHeaderId,o=e.dateHeaderId,i=t.options.eventTimeFormat||DEFAULT_TIME_FORMAT;return createElement(EventRoot,{seg:n,timeText:"",disableDragging:!0,disableResizing:!0,defaultContent:function(){return renderEventInnerContent(n,t)},isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,isSelected:e.isSelected,isDragging:e.isDragging,isResizing:e.isResizing,isDateSelecting:e.isDateSelecting},(function(e,l,s,u,c){return createElement("tr",{className:["fc-list-event",c.event.url?"fc-event-forced-url":""].concat(l).join(" "),ref:e},buildTimeContent(n,i,t,r,o),createElement("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},createElement("span",{className:"fc-list-event-dot",style:{borderColor:c.borderColor||c.backgroundColor}})),createElement("td",{ref:s,headers:a+" "+o,className:"fc-list-event-title"},u))}))},t}(BaseComponent);function renderEventInnerContent(e,t){var n=getSegAnchorAttrs(e,t);return createElement("a",__assign$1({},n),e.eventRange.def.title)}function buildTimeContent(e,t,n,r,a){var o=n.options;if(!1!==o.displayEventTime){var i=e.eventRange.def,l=e.eventRange.instance,s=!1,u=void 0;if(i.allDay?s=!0:isMultiDayRange(e.eventRange.range)?e.isStart?u=buildSegTimeText(e,t,n,null,null,l.range.start,e.end):e.isEnd?u=buildSegTimeText(e,t,n,null,null,e.start,l.range.end):s=!0:u=buildSegTimeText(e,t,n),s){var c={text:n.options.allDayText,view:n.viewApi};return createElement(RenderHook,{hookProps:c,classNames:o.allDayClassNames,content:o.allDayContent,defaultContent:renderAllDayInner,didMount:o.allDayDidMount,willUnmount:o.allDayWillUnmount},(function(e,t,n,o){return createElement("td",{ref:e,headers:r+" "+a,className:["fc-list-event-time"].concat(t).join(" ")},o)}))}return createElement("td",{className:"fc-list-event-time"},u)}return null}function renderAllDayInner(e){return e.text}var ListView=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.computeDateVars=memoize(computeDateVars),t.eventStoreToSegs=memoize(t._eventStoreToSegs),t.state={timeHeaderId:getUniqueDomId(),eventHeaderId:getUniqueDomId(),dateHeaderIdRoot:getUniqueDomId()},t.setRootEl=function(e){e?t.context.registerInteractiveComponent(t,{el:e}):t.context.unregisterInteractiveComponent(t)},t}return __extends(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.context,r=["fc-list",n.theme.getClass("table"),!1!==n.options.stickyHeaderDates?"fc-list-sticky":""],a=this.computeDateVars(t.dateProfile),o=a.dayDates,i=a.dayRanges,l=this.eventStoreToSegs(t.eventStore,t.eventUiBases,i);return createElement(ViewRoot,{viewSpec:n.viewSpec,elRef:this.setRootEl},(function(n,a){return createElement("div",{ref:n,className:r.concat(a).join(" ")},createElement(Scroller,{liquid:!t.isHeightAuto,overflowX:t.isHeightAuto?"visible":"hidden",overflowY:t.isHeightAuto?"visible":"auto"},l.length>0?e.renderSegList(l,o):e.renderEmptyMessage()))}))},t.prototype.renderEmptyMessage=function(){var e=this.context,t=e.options,n=e.viewApi,r={text:t.noEventsText,view:n};return createElement(RenderHook,{hookProps:r,classNames:t.noEventsClassNames,content:t.noEventsContent,defaultContent:renderNoEventsInner,didMount:t.noEventsDidMount,willUnmount:t.noEventsWillUnmount},(function(e,t,n,r){return createElement("div",{className:["fc-list-empty"].concat(t).join(" "),ref:e},createElement("div",{className:"fc-list-empty-cushion",ref:n},r))}))},t.prototype.renderSegList=function(e,t){var n=this.context,r=n.theme,a=n.options,o=this.state,i=o.timeHeaderId,l=o.eventHeaderId,s=o.dateHeaderIdRoot,u=groupSegsByDay(e);return createElement(NowTimer,{unit:"day"},(function(e,n){for(var o=[],c=0;c<u.length;c+=1){var d=u[c];if(d){var f=formatDayString(t[c]),p=s+"-"+f;o.push(createElement(ListViewHeaderRow,{key:f,cellId:p,dayDate:t[c],todayRange:n}));for(var h=0,m=d=sortEventSegs(d,a.eventOrder);h<m.length;h++){var v=m[h];o.push(createElement(ListViewEventRow,__assign$1({key:f+":"+v.eventRange.instance.instanceId,seg:v,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:i,eventHeaderId:l,dateHeaderId:p},getSegMeta(v,n,e))))}}}return createElement("table",{className:"fc-list-table "+r.getClass("table")},createElement("thead",null,createElement("tr",null,createElement("th",{scope:"col",id:i},a.timeHint),createElement("th",{scope:"col","aria-hidden":!0}),createElement("th",{scope:"col",id:l},a.eventHint))),createElement("tbody",null,o))}))},t.prototype._eventStoreToSegs=function(e,t,n){return this.eventRangesToSegs(sliceEventStore(e,t,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,n)},t.prototype.eventRangesToSegs=function(e,t){for(var n=[],r=0,a=e;r<a.length;r++){var o=a[r];n.push.apply(n,this.eventRangeToSegs(o,t))}return n},t.prototype.eventRangeToSegs=function(e,t){var n,r,a,o=this.context.dateEnv,i=this.context.options.nextDayThreshold,l=e.range,s=e.def.allDay,u=[];for(n=0;n<t.length;n+=1)if((r=intersectRanges(l,t[n]))&&(a={component:this,eventRange:e,start:r.start,end:r.end,isStart:e.isStart&&r.start.valueOf()===l.start.valueOf(),isEnd:e.isEnd&&r.end.valueOf()===l.end.valueOf(),dayIndex:n},u.push(a),!a.isEnd&&!s&&n+1<t.length&&l.end<o.add(t[n+1].start,i))){a.end=l.end,a.isEnd=!0;break}return u},t}(DateComponent);function renderNoEventsInner(e){return e.text}function computeDateVars(e){for(var t=startOfDay(e.renderRange.start),n=e.renderRange.end,r=[],a=[];t<n;)r.push(t),a.push({start:t,end:addDays(t,1)}),t=addDays(t,1);return{dayDates:r,dayRanges:a}}function groupSegsByDay(e){var t,n,r=[];for(t=0;t<e.length;t+=1)(r[(n=e[t]).dayIndex]||(r[n.dayIndex]=[])).push(n);return r}var OPTION_REFINERS={listDayFormat:createFalsableFormatter,listDaySideFormat:createFalsableFormatter,noEventsClassNames:identity,noEventsContent:identity,noEventsDidMount:identity,noEventsWillUnmount:identity};function createFalsableFormatter(e){return!1===e?null:createFormatter(e)}var main=createPlugin({optionRefiners:OPTION_REFINERS,views:{list:{component:ListView,buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}}),localesAll$1={};Object.defineProperty(localesAll$1,"__esModule",{value:!0});var l0={code:"af",week:{dow:1,doy:4},buttonText:{prev:"Vorige",next:"Volgende",today:"Vandag",year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayText:"Heeldag",moreLinkText:"Addisionele",noEventsText:"Daar is geen gebeurtenisse nie"},l1={code:"ar-dz",week:{dow:0,doy:4},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},l2={code:"ar-kw",week:{dow:0,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},l3={code:"ar-ly",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},l4={code:"ar-ma",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},l5={code:"ar-sa",week:{dow:0,doy:6},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},l6={code:"ar-tn",week:{dow:1,doy:4},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},l7={code:"ar",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},l8={code:"az",week:{dow:1,doy:4},buttonText:{prev:"Əvvəl",next:"Sonra",today:"Bu Gün",month:"Ay",week:"Həftə",day:"Gün",list:"Gündəm"},weekText:"Həftə",allDayText:"Bütün Gün",moreLinkText:function(e){return"+ daha çox "+e},noEventsText:"Göstərmək üçün hadisə yoxdur"},l9={code:"bg",week:{dow:1,doy:7},buttonText:{prev:"назад",next:"напред",today:"днес",month:"Месец",week:"Седмица",day:"Ден",list:"График"},allDayText:"Цял ден",moreLinkText:function(e){return"+още "+e},noEventsText:"Няма събития за показване"},l10={code:"bn",week:{dow:0,doy:6},buttonText:{prev:"পেছনে",next:"সামনে",today:"আজ",month:"মাস",week:"সপ্তাহ",day:"দিন",list:"তালিকা"},weekText:"সপ্তাহ",allDayText:"সারাদিন",moreLinkText:function(e){return"+অন্যান্য "+e},noEventsText:"কোনো ইভেন্ট নেই"},l11={code:"bs",week:{dow:1,doy:7},buttonText:{prev:"Prošli",next:"Sljedeći",today:"Danas",month:"Mjesec",week:"Sedmica",day:"Dan",list:"Raspored"},weekText:"Sed",allDayText:"Cijeli dan",moreLinkText:function(e){return"+ još "+e},noEventsText:"Nema događaja za prikazivanje"},l12={code:"ca",week:{dow:1,doy:4},buttonText:{prev:"Anterior",next:"Següent",today:"Avui",month:"Mes",week:"Setmana",day:"Dia",list:"Agenda"},weekText:"Set",allDayText:"Tot el dia",moreLinkText:"més",noEventsText:"No hi ha esdeveniments per mostrar"},l13={code:"cs",week:{dow:1,doy:4},buttonText:{prev:"Dříve",next:"Později",today:"Nyní",month:"Měsíc",week:"Týden",day:"Den",list:"Agenda"},weekText:"Týd",allDayText:"Celý den",moreLinkText:function(e){return"+další: "+e},noEventsText:"Žádné akce k zobrazení"},l14={code:"cy",week:{dow:1,doy:4},buttonText:{prev:"Blaenorol",next:"Nesaf",today:"Heddiw",year:"Blwyddyn",month:"Mis",week:"Wythnos",day:"Dydd",list:"Rhestr"},weekText:"Wythnos",allDayText:"Trwy'r dydd",moreLinkText:"Mwy",noEventsText:"Dim digwyddiadau"},l15={code:"da",week:{dow:1,doy:4},buttonText:{prev:"Forrige",next:"Næste",today:"I dag",month:"Måned",week:"Uge",day:"Dag",list:"Agenda"},weekText:"Uge",allDayText:"Hele dagen",moreLinkText:"flere",noEventsText:"Ingen arrangementer at vise"};function affix$1(e){return"Tag"===e||"Monat"===e?"r":"Jahr"===e?"s":""}var l16={code:"de-at",week:{dow:1,doy:4},buttonText:{prev:"Zurück",next:"Vor",today:"Heute",year:"Jahr",month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},weekText:"KW",weekTextLong:"Woche",allDayText:"Ganztägig",moreLinkText:function(e){return"+ weitere "+e},noEventsText:"Keine Ereignisse anzuzeigen",buttonHints:{prev:function(e){return"Vorherige".concat(affix$1(e)," ").concat(e)},next:function(e){return"Nächste".concat(affix$1(e)," ").concat(e)},today:function(e){return"Tag"===e?"Heute":"Diese".concat(affix$1(e)," ").concat(e)}},viewHint:function(e){return e+("Woche"===e?"n":"Monat"===e?"s":"es")+"ansicht"},navLinkHint:"Gehe zu $0",moreLinkHint:function(e){return"Zeige "+(1===e?"ein weiteres Ereignis":e+" weitere Ereignisse")},closeHint:"Schließen",timeHint:"Uhrzeit",eventHint:"Ereignis"};function affix(e){return"Tag"===e||"Monat"===e?"r":"Jahr"===e?"s":""}var l17={code:"de",week:{dow:1,doy:4},buttonText:{prev:"Zurück",next:"Vor",today:"Heute",year:"Jahr",month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},weekText:"KW",weekTextLong:"Woche",allDayText:"Ganztägig",moreLinkText:function(e){return"+ weitere "+e},noEventsText:"Keine Ereignisse anzuzeigen",buttonHints:{prev:function(e){return"Vorherige".concat(affix(e)," ").concat(e)},next:function(e){return"Nächste".concat(affix(e)," ").concat(e)},today:function(e){return"Tag"===e?"Heute":"Diese".concat(affix(e)," ").concat(e)}},viewHint:function(e){return e+("Woche"===e?"n":"Monat"===e?"s":"es")+"ansicht"},navLinkHint:"Gehe zu $0",moreLinkHint:function(e){return"Zeige "+(1===e?"ein weiteres Ereignis":e+" weitere Ereignisse")},closeHint:"Schließen",timeHint:"Uhrzeit",eventHint:"Ereignis"},l18={code:"el",week:{dow:1,doy:4},buttonText:{prev:"Προηγούμενος",next:"Επόμενος",today:"Σήμερα",month:"Μήνας",week:"Εβδομάδα",day:"Ημέρα",list:"Ατζέντα"},weekText:"Εβδ",allDayText:"Ολοήμερο",moreLinkText:"περισσότερα",noEventsText:"Δεν υπάρχουν γεγονότα προς εμφάνιση"},l19={code:"en-au",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:function(e){return"Show ".concat(e," more event").concat(1===e?"":"s")}},l20={code:"en-gb",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:function(e){return"Show ".concat(e," more event").concat(1===e?"":"s")}},l21={code:"en-nz",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:function(e){return"Show ".concat(e," more event").concat(1===e?"":"s")}},l22={code:"eo",week:{dow:1,doy:4},buttonText:{prev:"Antaŭa",next:"Sekva",today:"Hodiaŭ",month:"Monato",week:"Semajno",day:"Tago",list:"Tagordo"},weekText:"Sm",allDayText:"Tuta tago",moreLinkText:"pli",noEventsText:"Neniuj eventoj por montri"},l23={code:"es",week:{dow:0,doy:6},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},weekText:"Sm",allDayText:"Todo el día",moreLinkText:"más",noEventsText:"No hay eventos para mostrar"},l24={code:"es",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},buttonHints:{prev:"$0 antes",next:"$0 siguiente",today:function(e){return"Día"===e?"Hoy":("Semana"===e?"Esta":"Este")+" "+e.toLocaleLowerCase()}},viewHint:function(e){return"Vista "+("Semana"===e?"de la":"del")+" "+e.toLocaleLowerCase()},weekText:"Sm",weekTextLong:"Semana",allDayText:"Todo el día",moreLinkText:"más",moreLinkHint:function(e){return"Mostrar ".concat(e," eventos más")},noEventsText:"No hay eventos para mostrar",navLinkHint:"Ir al $0",closeHint:"Cerrar",timeHint:"La hora",eventHint:"Evento"},l25={code:"et",week:{dow:1,doy:4},buttonText:{prev:"Eelnev",next:"Järgnev",today:"Täna",month:"Kuu",week:"Nädal",day:"Päev",list:"Päevakord"},weekText:"näd",allDayText:"Kogu päev",moreLinkText:function(e){return"+ veel "+e},noEventsText:"Kuvamiseks puuduvad sündmused"},l26={code:"eu",week:{dow:1,doy:7},buttonText:{prev:"Aur",next:"Hur",today:"Gaur",month:"Hilabetea",week:"Astea",day:"Eguna",list:"Agenda"},weekText:"As",allDayText:"Egun osoa",moreLinkText:"gehiago",noEventsText:"Ez dago ekitaldirik erakusteko"},l27={code:"fa",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"قبلی",next:"بعدی",today:"امروز",month:"ماه",week:"هفته",day:"روز",list:"برنامه"},weekText:"هف",allDayText:"تمام روز",moreLinkText:function(e){return"بیش از "+e},noEventsText:"هیچ رویدادی به نمایش"},l28={code:"fi",week:{dow:1,doy:4},buttonText:{prev:"Edellinen",next:"Seuraava",today:"Tänään",month:"Kuukausi",week:"Viikko",day:"Päivä",list:"Tapahtumat"},weekText:"Vk",allDayText:"Koko päivä",moreLinkText:"lisää",noEventsText:"Ei näytettäviä tapahtumia"},l29={code:"fr",buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},weekText:"Sem.",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun événement à afficher"},l30={code:"fr-ch",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Courant",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},weekText:"Sm",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun événement à afficher"},l31={code:"fr",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Planning"},weekText:"Sem.",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun événement à afficher"},l32={code:"gl",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Seg",today:"Hoxe",month:"Mes",week:"Semana",day:"Día",list:"Axenda"},weekText:"Sm",allDayText:"Todo o día",moreLinkText:"máis",noEventsText:"Non hai eventos para amosar"},l33={code:"he",direction:"rtl",buttonText:{prev:"הקודם",next:"הבא",today:"היום",month:"חודש",week:"שבוע",day:"יום",list:"סדר יום"},allDayText:"כל היום",moreLinkText:"אחר",noEventsText:"אין אירועים להצגה",weekText:"שבוע"},l34={code:"hi",week:{dow:0,doy:6},buttonText:{prev:"पिछला",next:"अगला",today:"आज",month:"महीना",week:"सप्ताह",day:"दिन",list:"कार्यसूची"},weekText:"हफ्ता",allDayText:"सभी दिन",moreLinkText:function(e){return"+अधिक "+e},noEventsText:"कोई घटनाओं को प्रदर्शित करने के लिए"},l35={code:"hr",week:{dow:1,doy:7},buttonText:{prev:"Prijašnji",next:"Sljedeći",today:"Danas",month:"Mjesec",week:"Tjedan",day:"Dan",list:"Raspored"},weekText:"Tje",allDayText:"Cijeli dan",moreLinkText:function(e){return"+ još "+e},noEventsText:"Nema događaja za prikaz"},l36={code:"hu",week:{dow:1,doy:4},buttonText:{prev:"vissza",next:"előre",today:"ma",month:"Hónap",week:"Hét",day:"Nap",list:"Lista"},weekText:"Hét",allDayText:"Egész nap",moreLinkText:"további",noEventsText:"Nincs megjeleníthető esemény"},l37={code:"hy-am",week:{dow:1,doy:4},buttonText:{prev:"Նախորդ",next:"Հաջորդ",today:"Այսօր",month:"Ամիս",week:"Շաբաթ",day:"Օր",list:"Օրվա ցուցակ"},weekText:"Շաբ",allDayText:"Ամբողջ օր",moreLinkText:function(e){return"+ ևս "+e},noEventsText:"Բացակայում է իրադարձությունը ցուցադրելու"},l38={code:"id",week:{dow:1,doy:7},buttonText:{prev:"mundur",next:"maju",today:"hari ini",month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},weekText:"Mg",allDayText:"Sehari penuh",moreLinkText:"lebih",noEventsText:"Tidak ada acara untuk ditampilkan"},l39={code:"is",week:{dow:1,doy:4},buttonText:{prev:"Fyrri",next:"Næsti",today:"Í dag",month:"Mánuður",week:"Vika",day:"Dagur",list:"Dagskrá"},weekText:"Vika",allDayText:"Allan daginn",moreLinkText:"meira",noEventsText:"Engir viðburðir til að sýna"},l40={code:"it",week:{dow:1,doy:4},buttonText:{prev:"Prec",next:"Succ",today:"Oggi",month:"Mese",week:"Settimana",day:"Giorno",list:"Agenda"},weekText:"Sm",allDayText:"Tutto il giorno",moreLinkText:function(e){return"+altri "+e},noEventsText:"Non ci sono eventi da visualizzare"},l41={code:"ja",buttonText:{prev:"前",next:"次",today:"今日",month:"月",week:"週",day:"日",list:"予定リスト"},weekText:"週",allDayText:"終日",moreLinkText:function(e){return"他 "+e+" 件"},noEventsText:"表示する予定はありません"},l42={code:"ka",week:{dow:1,doy:7},buttonText:{prev:"წინა",next:"შემდეგი",today:"დღეს",month:"თვე",week:"კვირა",day:"დღე",list:"დღის წესრიგი"},weekText:"კვ",allDayText:"მთელი დღე",moreLinkText:function(e){return"+ კიდევ "+e},noEventsText:"ღონისძიებები არ არის"},l43={code:"kk",week:{dow:1,doy:7},buttonText:{prev:"Алдыңғы",next:"Келесі",today:"Бүгін",month:"Ай",week:"Апта",day:"Күн",list:"Күн тәртібі"},weekText:"Не",allDayText:"Күні бойы",moreLinkText:function(e){return"+ тағы "+e},noEventsText:"Көрсету үшін оқиғалар жоқ"},l44={code:"km",week:{dow:1,doy:4},buttonText:{prev:"មុន",next:"បន្ទាប់",today:"ថ្ងៃនេះ",year:"ឆ្នាំ",month:"ខែ",week:"សប្តាហ៍",day:"ថ្ងៃ",list:"បញ្ជី"},weekText:"សប្តាហ៍",allDayText:"ពេញមួយថ្ងៃ",moreLinkText:"ច្រើនទៀត",noEventsText:"គ្មានព្រឹត្តិការណ៍ត្រូវបង្ហាញ"},l45={code:"ko",buttonText:{prev:"이전달",next:"다음달",today:"오늘",month:"월",week:"주",day:"일",list:"일정목록"},weekText:"주",allDayText:"종일",moreLinkText:"개",noEventsText:"일정이 없습니다"},l46={code:"ku",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"پێشتر",next:"دواتر",today:"ئەمڕو",month:"مانگ",week:"هەفتە",day:"ڕۆژ",list:"بەرنامە"},weekText:"هەفتە",allDayText:"هەموو ڕۆژەکە",moreLinkText:"زیاتر",noEventsText:"هیچ ڕووداوێك نیە"},l47={code:"lb",week:{dow:1,doy:4},buttonText:{prev:"Zréck",next:"Weider",today:"Haut",month:"Mount",week:"Woch",day:"Dag",list:"Terminiwwersiicht"},weekText:"W",allDayText:"Ganzen Dag",moreLinkText:"méi",noEventsText:"Nee Evenementer ze affichéieren"},l48={code:"lt",week:{dow:1,doy:4},buttonText:{prev:"Atgal",next:"Pirmyn",today:"Šiandien",month:"Mėnuo",week:"Savaitė",day:"Diena",list:"Darbotvarkė"},weekText:"SAV",allDayText:"Visą dieną",moreLinkText:"daugiau",noEventsText:"Nėra įvykių rodyti"},l49={code:"lv",week:{dow:1,doy:4},buttonText:{prev:"Iepr.",next:"Nāk.",today:"Šodien",month:"Mēnesis",week:"Nedēļa",day:"Diena",list:"Dienas kārtība"},weekText:"Ned.",allDayText:"Visu dienu",moreLinkText:function(e){return"+vēl "+e},noEventsText:"Nav notikumu"},l50={code:"mk",buttonText:{prev:"претходно",next:"следно",today:"Денес",month:"Месец",week:"Недела",day:"Ден",list:"График"},weekText:"Сед",allDayText:"Цел ден",moreLinkText:function(e){return"+повеќе "+e},noEventsText:"Нема настани за прикажување"},l51={code:"ms",week:{dow:1,doy:7},buttonText:{prev:"Sebelum",next:"Selepas",today:"hari ini",month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},weekText:"Mg",allDayText:"Sepanjang hari",moreLinkText:function(e){return"masih ada "+e+" acara"},noEventsText:"Tiada peristiwa untuk dipaparkan"},l52={code:"nb",week:{dow:1,doy:4},buttonText:{prev:"Forrige",next:"Neste",today:"I dag",month:"Måned",week:"Uke",day:"Dag",list:"Agenda"},weekText:"Uke",weekTextLong:"Uke",allDayText:"Hele dagen",moreLinkText:"til",noEventsText:"Ingen hendelser å vise",buttonHints:{prev:"Forrige $0",next:"Neste $0",today:"Nåværende $0"},viewHint:"$0 visning",navLinkHint:"Gå til $0",moreLinkHint:function(e){return"Vis ".concat(e," flere hendelse").concat(1===e?"":"r")}},l53={code:"ne",week:{dow:7,doy:1},buttonText:{prev:"अघिल्लो",next:"अर्को",today:"आज",month:"महिना",week:"हप्ता",day:"दिन",list:"सूची"},weekText:"हप्ता",allDayText:"दिनभरि",moreLinkText:"थप लिंक",noEventsText:"देखाउनको लागि कुनै घटनाहरू छैनन्"},l54={code:"nl",week:{dow:1,doy:4},buttonText:{prev:"Vorige",next:"Volgende",today:"Vandaag",year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayText:"Hele dag",moreLinkText:"extra",noEventsText:"Geen evenementen om te laten zien"},l55={code:"nn",week:{dow:1,doy:4},buttonText:{prev:"Førre",next:"Neste",today:"I dag",month:"Månad",week:"Veke",day:"Dag",list:"Agenda"},weekText:"Veke",allDayText:"Heile dagen",moreLinkText:"til",noEventsText:"Ingen hendelser å vise"},l56={code:"pl",week:{dow:1,doy:4},buttonText:{prev:"Poprzedni",next:"Następny",today:"Dziś",month:"Miesiąc",week:"Tydzień",day:"Dzień",list:"Plan dnia"},weekText:"Tydz",allDayText:"Cały dzień",moreLinkText:"więcej",noEventsText:"Brak wydarzeń do wyświetlenia"},l57={code:"pt-br",buttonText:{prev:"Anterior",next:"Próximo",today:"Hoje",month:"Mês",week:"Semana",day:"Dia",list:"Lista"},weekText:"Sm",allDayText:"dia inteiro",moreLinkText:function(e){return"mais +"+e},noEventsText:"Não há eventos para mostrar"},l58={code:"pt",week:{dow:1,doy:4},buttonText:{prev:"Anterior",next:"Seguinte",today:"Hoje",month:"Mês",week:"Semana",day:"Dia",list:"Agenda"},weekText:"Sem",allDayText:"Todo o dia",moreLinkText:"mais",noEventsText:"Não há eventos para mostrar"},l59={code:"ro",week:{dow:1,doy:7},buttonText:{prev:"precedentă",next:"următoare",today:"Azi",month:"Lună",week:"Săptămână",day:"Zi",list:"Agendă"},weekText:"Săpt",allDayText:"Toată ziua",moreLinkText:function(e){return"+alte "+e},noEventsText:"Nu există evenimente de afișat"},l60={code:"ru",week:{dow:1,doy:4},buttonText:{prev:"Пред",next:"След",today:"Сегодня",month:"Месяц",week:"Неделя",day:"День",list:"Повестка дня"},weekText:"Нед",allDayText:"Весь день",moreLinkText:function(e){return"+ ещё "+e},noEventsText:"Нет событий для отображения"},l61={code:"si-lk",week:{dow:1,doy:4},buttonText:{prev:"පෙර",next:"පසු",today:"අද",month:"මාසය",week:"සතිය",day:"දවස",list:"ලැයිස්තුව"},weekText:"සති",allDayText:"සියලු",moreLinkText:"තවත්",noEventsText:"මුකුත් නැත"},l62={code:"sk",week:{dow:1,doy:4},buttonText:{prev:"Predchádzajúci",next:"Nasledujúci",today:"Dnes",month:"Mesiac",week:"Týždeň",day:"Deň",list:"Rozvrh"},weekText:"Ty",allDayText:"Celý deň",moreLinkText:function(e){return"+ďalšie: "+e},noEventsText:"Žiadne akcie na zobrazenie"},l63={code:"sl",week:{dow:1,doy:7},buttonText:{prev:"Prejšnji",next:"Naslednji",today:"Trenutni",month:"Mesec",week:"Teden",day:"Dan",list:"Dnevni red"},weekText:"Teden",allDayText:"Ves dan",moreLinkText:"več",noEventsText:"Ni dogodkov za prikaz"},l64={code:"sm",buttonText:{prev:"Talu ai",next:"Mulimuli atu",today:"Aso nei",month:"Masina",week:"Vaiaso",day:"Aso",list:"Faasologa"},weekText:"Vaiaso",allDayText:"Aso atoa",moreLinkText:"sili atu",noEventsText:"Leai ni mea na tutupu"},l65={code:"sq",week:{dow:1,doy:4},buttonText:{prev:"mbrapa",next:"Përpara",today:"sot",month:"Muaj",week:"Javë",day:"Ditë",list:"Listë"},weekText:"Ja",allDayText:"Gjithë ditën",moreLinkText:function(e){return"+më tepër "+e},noEventsText:"Nuk ka evente për të shfaqur"},l66={code:"sr-cyrl",week:{dow:1,doy:7},buttonText:{prev:"Претходна",next:"следећи",today:"Данас",month:"Месец",week:"Недеља",day:"Дан",list:"Планер"},weekText:"Сед",allDayText:"Цео дан",moreLinkText:function(e){return"+ још "+e},noEventsText:"Нема догађаја за приказ"},l67={code:"sr",week:{dow:1,doy:7},buttonText:{prev:"Prethodna",next:"Sledeći",today:"Danas",month:"Mеsеc",week:"Nеdеlja",day:"Dan",list:"Planеr"},weekText:"Sed",allDayText:"Cеo dan",moreLinkText:function(e){return"+ još "+e},noEventsText:"Nеma događaja za prikaz"},l68={code:"sv",week:{dow:1,doy:4},buttonText:{prev:"Förra",next:"Nästa",today:"Idag",month:"Månad",week:"Vecka",day:"Dag",list:"Program"},buttonHints:{prev:function(e){return"Föregående ".concat(e.toLocaleLowerCase())},next:function(e){return"Nästa ".concat(e.toLocaleLowerCase())},today:function(e){return("Program"===e?"Detta":"Denna")+" "+e.toLocaleLowerCase()}},viewHint:"$0 vy",navLinkHint:"Gå till $0",moreLinkHint:function(e){return"Visa ytterligare ".concat(e," händelse").concat(1===e?"":"r")},weekText:"v.",weekTextLong:"Vecka",allDayText:"Heldag",moreLinkText:"till",noEventsText:"Inga händelser att visa",closeHint:"Stäng",timeHint:"Klockan",eventHint:"Händelse"},l69={code:"ta-in",week:{dow:1,doy:4},buttonText:{prev:"முந்தைய",next:"அடுத்தது",today:"இன்று",month:"மாதம்",week:"வாரம்",day:"நாள்",list:"தினசரி அட்டவணை"},weekText:"வாரம்",allDayText:"நாள் முழுவதும்",moreLinkText:function(e){return"+ மேலும் "+e},noEventsText:"காண்பிக்க நிகழ்வுகள் இல்லை"},l70={code:"th",week:{dow:1,doy:4},buttonText:{prev:"ก่อนหน้า",next:"ถัดไป",prevYear:"ปีก่อนหน้า",nextYear:"ปีถัดไป",year:"ปี",today:"วันนี้",month:"เดือน",week:"สัปดาห์",day:"วัน",list:"กำหนดการ"},weekText:"สัปดาห์",allDayText:"ตลอดวัน",moreLinkText:"เพิ่มเติม",noEventsText:"ไม่มีกิจกรรมที่จะแสดง"},l71={code:"tr",week:{dow:1,doy:7},buttonText:{prev:"geri",next:"ileri",today:"bugün",month:"Ay",week:"Hafta",day:"Gün",list:"Ajanda"},weekText:"Hf",allDayText:"Tüm gün",moreLinkText:"daha fazla",noEventsText:"Gösterilecek etkinlik yok"},l72={code:"ug",buttonText:{month:"ئاي",week:"ھەپتە",day:"كۈن",list:"كۈنتەرتىپ"},allDayText:"پۈتۈن كۈن"},l73={code:"uk",week:{dow:1,doy:7},buttonText:{prev:"Попередній",next:"далі",today:"Сьогодні",month:"Місяць",week:"Тиждень",day:"День",list:"Порядок денний"},weekText:"Тиж",allDayText:"Увесь день",moreLinkText:function(e){return"+ще "+e+"..."},noEventsText:"Немає подій для відображення"},l74={code:"uz",buttonText:{month:"Oy",week:"Xafta",day:"Kun",list:"Kun tartibi"},allDayText:"Kun bo'yi",moreLinkText:function(e){return"+ yana "+e},noEventsText:"Ko'rsatish uchun voqealar yo'q"},l75={code:"vi",week:{dow:1,doy:4},buttonText:{prev:"Trước",next:"Tiếp",today:"Hôm nay",month:"Tháng",week:"Tuần",day:"Ngày",list:"Lịch biểu"},weekText:"Tu",allDayText:"Cả ngày",moreLinkText:function(e){return"+ thêm "+e},noEventsText:"Không có sự kiện để hiển thị"},l76={code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText:function(e){return"另外 "+e+" 个"},noEventsText:"没有事件显示"},l77={code:"zh-tw",buttonText:{prev:"上月",next:"下月",today:"今天",month:"月",week:"週",day:"天",list:"活動列表"},weekText:"周",allDayText:"整天",moreLinkText:"顯示更多",noEventsText:"没有任何活動"},localesAll=[l0,l1,l2,l3,l4,l5,l6,l7,l8,l9,l10,l11,l12,l13,l14,l15,l16,l17,l18,l19,l20,l21,l22,l23,l24,l25,l26,l27,l28,l29,l30,l31,l32,l33,l34,l35,l36,l37,l38,l39,l40,l41,l42,l43,l44,l45,l46,l47,l48,l49,l50,l51,l52,l53,l54,l55,l56,l57,l58,l59,l60,l61,l62,l63,l64,l65,l66,l67,l68,l69,l70,l71,l72,l73,l74,l75,l76,l77],_default=localesAll$1.default=localesAll,lodash={exports:{}};
|
|
73
73
|
/**
|
|
74
74
|
* @license
|
|
75
75
|
* Lodash <https://lodash.com/>
|
|
@@ -78,5 +78,5 @@ Docs & License: https://fullcalendar.io/
|
|
|
78
78
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
79
79
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
80
80
|
*/
|
|
81
|
-
!function(e,t){(function(){var n,r="Expected a function",a="__lodash_hash_undefined__",o="__lodash_placeholder__",l=16,s=32,u=64,c=128,d=256,f=1/0,p=9007199254740991,h=NaN,v=4294967295,m=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",s],["partialRight",u],["rearg",d]],g="[object Arguments]",y="[object Array]",b="[object Boolean]",w="[object Date]",k="[object Error]",S="[object Function]",x="[object GeneratorFunction]",E="[object Map]",T="[object Number]",_="[object Object]",C="[object Promise]",D="[object RegExp]",R="[object Set]",P="[object String]",N="[object Symbol]",I="[object WeakMap]",M="[object ArrayBuffer]",O="[object DataView]",L="[object Float32Array]",z="[object Float64Array]",A="[object Int8Array]",F="[object Int16Array]",H="[object Int32Array]",j="[object Uint8Array]",U="[object Uint8ClampedArray]",V="[object Uint16Array]",W="[object Uint32Array]",B=/\b__p \+= '';/g,$=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,K=RegExp(Y.source),Q=RegExp(G.source),X=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/[\\^$.*+?()[\]{}|]/g,ae=RegExp(re.source),oe=/^\s+/,ie=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,de=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,ve=/^[-+]0x[0-9a-f]+$/i,me=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,be=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ke=/($^)/,Se=/['\n\r\u2028\u2029\\]/g,xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ee="\\u2700-\\u27bf",Te="a-z\\xdf-\\xf6\\xf8-\\xff",_e="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",De="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Re="['’]",Pe="[\\ud800-\\udfff]",Ne="["+De+"]",Ie="["+xe+"]",Me="\\d+",Oe="[\\u2700-\\u27bf]",Le="["+Te+"]",ze="[^\\ud800-\\udfff"+De+Me+Ee+Te+_e+"]",Ae="\\ud83c[\\udffb-\\udfff]",Fe="[^\\ud800-\\udfff]",He="(?:\\ud83c[\\udde6-\\uddff]){2}",je="[\\ud800-\\udbff][\\udc00-\\udfff]",Ue="["+_e+"]",Ve="(?:"+Le+"|"+ze+")",We="(?:"+Ue+"|"+ze+")",Be="(?:['’](?:d|ll|m|re|s|t|ve))?",$e="(?:['’](?:D|LL|M|RE|S|T|VE))?",qe="(?:"+Ie+"|"+Ae+")"+"?",Ye="[\\ufe0e\\ufe0f]?",Ge=Ye+qe+("(?:\\u200d(?:"+[Fe,He,je].join("|")+")"+Ye+qe+")*"),Ke="(?:"+[Oe,He,je].join("|")+")"+Ge,Qe="(?:"+[Fe+Ie+"?",Ie,He,je,Pe].join("|")+")",Xe=RegExp(Re,"g"),Ze=RegExp(Ie,"g"),Je=RegExp(Ae+"(?="+Ae+")|"+Qe+Ge,"g"),et=RegExp([Ue+"?"+Le+"+"+Be+"(?="+[Ne,Ue,"$"].join("|")+")",We+"+"+$e+"(?="+[Ne,Ue+Ve,"$"].join("|")+")",Ue+"?"+Ve+"+"+Be,Ue+"+"+$e,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Me,Ke].join("|"),"g"),tt=RegExp("[\\u200d\\ud800-\\udfff"+xe+Ce+"]"),nt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rt=["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"],at=-1,ot={};ot[L]=ot[z]=ot[A]=ot[F]=ot[H]=ot[j]=ot[U]=ot[V]=ot[W]=!0,ot[g]=ot[y]=ot[M]=ot[b]=ot[O]=ot[w]=ot[k]=ot[S]=ot[E]=ot[T]=ot[_]=ot[D]=ot[R]=ot[P]=ot[I]=!1;var it={};it[g]=it[y]=it[M]=it[O]=it[b]=it[w]=it[L]=it[z]=it[A]=it[F]=it[H]=it[E]=it[T]=it[_]=it[D]=it[R]=it[P]=it[N]=it[j]=it[U]=it[V]=it[W]=!0,it[k]=it[S]=it[I]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,ut=parseInt,ct="object"==typeof i&&i&&i.Object===Object&&i,dt="object"==typeof self&&self&&self.Object===Object&&self,ft=ct||dt||Function("return this")(),pt=t&&!t.nodeType&&t,ht=pt&&e&&!e.nodeType&&e,vt=ht&&ht.exports===pt,mt=vt&&ct.process,gt=function(){try{var e=ht&&ht.require&&ht.require("util").types;return e||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),yt=gt&>.isArrayBuffer,bt=gt&>.isDate,wt=gt&>.isMap,kt=gt&>.isRegExp,St=gt&>.isSet,xt=gt&>.isTypedArray;function Et(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Tt(e,t,n,r){for(var a=-1,o=null==e?0:e.length;++a<o;){var i=e[a];t(r,i,n(i),e)}return r}function _t(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Ct(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Dt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Rt(e,t){for(var n=-1,r=null==e?0:e.length,a=0,o=[];++n<r;){var i=e[n];t(i,n,e)&&(o[a++]=i)}return o}function Pt(e,t){return!!(null==e?0:e.length)&&jt(e,t,0)>-1}function Nt(e,t,n){for(var r=-1,a=null==e?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}function It(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}function Mt(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}function Ot(e,t,n,r){var a=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++a]);++a<o;)n=t(n,e[a],a,e);return n}function Lt(e,t,n,r){var a=null==e?0:e.length;for(r&&a&&(n=e[--a]);a--;)n=t(n,e[a],a,e);return n}function zt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var At=Bt("length");function Ft(e,t,n){var r;return n(e,(function(e,n,a){if(t(e,n,a))return r=n,!1})),r}function Ht(e,t,n,r){for(var a=e.length,o=n+(r?1:-1);r?o--:++o<a;)if(t(e[o],o,e))return o;return-1}function jt(e,t,n){return t==t?function(e,t,n){var r=n-1,a=e.length;for(;++r<a;)if(e[r]===t)return r;return-1}(e,t,n):Ht(e,Vt,n)}function Ut(e,t,n,r){for(var a=n-1,o=e.length;++a<o;)if(r(e[a],t))return a;return-1}function Vt(e){return e!=e}function Wt(e,t){var n=null==e?0:e.length;return n?Yt(e,t)/n:h}function Bt(e){return function(t){return null==t?n:t[e]}}function $t(e){return function(t){return null==e?n:e[t]}}function qt(e,t,n,r,a){return a(e,(function(e,a,o){n=r?(r=!1,e):t(n,e,a,o)})),n}function Yt(e,t){for(var r,a=-1,o=e.length;++a<o;){var i=t(e[a]);i!==n&&(r=r===n?i:r+i)}return r}function Gt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Kt(e){return e?e.slice(0,hn(e)+1).replace(oe,""):e}function Qt(e){return function(t){return e(t)}}function Xt(e,t){return It(t,(function(t){return e[t]}))}function Zt(e,t){return e.has(t)}function Jt(e,t){for(var n=-1,r=e.length;++n<r&&jt(t,e[n],0)>-1;);return n}function en(e,t){for(var n=e.length;n--&&jt(t,e[n],0)>-1;);return n}function tn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var nn=$t({"À":"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"}),rn=$t({"&":"&","<":"<",">":">",'"':""","'":"'"});function an(e){return"\\"+lt[e]}function on(e){return tt.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function sn(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,r=e.length,a=0,i=[];++n<r;){var l=e[n];l!==t&&l!==o||(e[n]=o,i[a++]=n)}return i}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function fn(e){return on(e)?function(e){var t=Je.lastIndex=0;for(;Je.test(e);)++t;return t}(e):At(e)}function pn(e){return on(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.split("")}(e)}function hn(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var vn=$t({"&":"&","<":"<",">":">",""":'"',"'":"'"});var mn=function e(t){var i,ie=(t=null==t?ft:mn.defaults(ft.Object(),t,mn.pick(ft,rt))).Array,xe=t.Date,Ee=t.Error,Te=t.Function,_e=t.Math,Ce=t.Object,De=t.RegExp,Re=t.String,Pe=t.TypeError,Ne=ie.prototype,Ie=Te.prototype,Me=Ce.prototype,Oe=t["__core-js_shared__"],Le=Ie.toString,ze=Me.hasOwnProperty,Ae=0,Fe=(i=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"",He=Me.toString,je=Le.call(Ce),Ue=ft._,Ve=De("^"+Le.call(ze).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),We=vt?t.Buffer:n,Be=t.Symbol,$e=t.Uint8Array,qe=We?We.allocUnsafe:n,Ye=sn(Ce.getPrototypeOf,Ce),Ge=Ce.create,Ke=Me.propertyIsEnumerable,Qe=Ne.splice,Je=Be?Be.isConcatSpreadable:n,tt=Be?Be.iterator:n,lt=Be?Be.toStringTag:n,ct=function(){try{var e=ho(Ce,"defineProperty");return e({},"",{}),e}catch(e){}}(),dt=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,pt=xe&&xe.now!==ft.Date.now&&xe.now,ht=t.setTimeout!==ft.setTimeout&&t.setTimeout,mt=_e.ceil,gt=_e.floor,At=Ce.getOwnPropertySymbols,$t=We?We.isBuffer:n,gn=t.isFinite,yn=Ne.join,bn=sn(Ce.keys,Ce),wn=_e.max,kn=_e.min,Sn=xe.now,xn=t.parseInt,En=_e.random,Tn=Ne.reverse,_n=ho(t,"DataView"),Cn=ho(t,"Map"),Dn=ho(t,"Promise"),Rn=ho(t,"Set"),Pn=ho(t,"WeakMap"),Nn=ho(Ce,"create"),In=Pn&&new Pn,Mn={},On=Uo(_n),Ln=Uo(Cn),zn=Uo(Dn),An=Uo(Rn),Fn=Uo(Pn),Hn=Be?Be.prototype:n,jn=Hn?Hn.valueOf:n,Un=Hn?Hn.toString:n;function Vn(e){if(al(e)&&!Yi(e)&&!(e instanceof qn)){if(e instanceof $n)return e;if(ze.call(e,"__wrapped__"))return Vo(e)}return new $n(e)}var Wn=function(){function e(){}return function(t){if(!rl(t))return{};if(Ge)return Ge(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Bn(){}function $n(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function qn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=v,this.__views__=[]}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Qn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Kn;++t<n;)this.add(e[t])}function Xn(e){var t=this.__data__=new Gn(e);this.size=t.size}function Zn(e,t){var n=Yi(e),r=!n&&qi(e),a=!n&&!r&&Xi(e),o=!n&&!r&&!a&&fl(e),i=n||r||a||o,l=i?Gt(e.length,Re):[],s=l.length;for(var u in e)!t&&!ze.call(e,u)||i&&("length"==u||a&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ko(u,s))||l.push(u);return l}function Jn(e){var t=e.length;return t?e[Qr(0,t-1)]:n}function er(e,t){return Fo(Na(e),ur(t,0,e.length))}function tr(e){return Fo(Na(e))}function nr(e,t,r){(r!==n&&!Wi(e[t],r)||r===n&&!(t in e))&&lr(e,t,r)}function rr(e,t,r){var a=e[t];ze.call(e,t)&&Wi(a,r)&&(r!==n||t in e)||lr(e,t,r)}function ar(e,t){for(var n=e.length;n--;)if(Wi(e[n][0],t))return n;return-1}function or(e,t,n,r){return hr(e,(function(e,a,o){t(r,e,n(e),o)})),r}function ir(e,t){return e&&Ia(t,Ol(t),e)}function lr(e,t,n){"__proto__"==t&&ct?ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function sr(e,t){for(var r=-1,a=t.length,o=ie(a),i=null==e;++r<a;)o[r]=i?n:Rl(e,t[r]);return o}function ur(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function cr(e,t,r,a,o,i){var l,s=1&t,u=2&t,c=4&t;if(r&&(l=o?r(e,a,o,i):r(e)),l!==n)return l;if(!rl(e))return e;var d=Yi(e);if(d){if(l=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&ze.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return Na(e,l)}else{var f=go(e),p=f==S||f==x;if(Xi(e))return Ta(e,s);if(f==_||f==g||p&&!o){if(l=u||p?{}:bo(e),!s)return u?function(e,t){return Ia(e,mo(e),t)}(e,function(e,t){return e&&Ia(t,Ll(t),e)}(l,e)):function(e,t){return Ia(e,vo(e),t)}(e,ir(l,e))}else{if(!it[f])return o?e:{};l=function(e,t,n){var r=e.constructor;switch(t){case M:return _a(e);case b:case w:return new r(+e);case O:return function(e,t){var n=t?_a(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case L:case z:case A:case F:case H:case j:case U:case V:case W:return Ca(e,n);case E:return new r;case T:case P:return new r(e);case D:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case R:return new r;case N:return a=e,jn?Ce(jn.call(a)):{}}var a}(e,f,s)}}i||(i=new Xn);var h=i.get(e);if(h)return h;i.set(e,l),ul(e)?e.forEach((function(n){l.add(cr(n,t,r,n,e,i))})):ol(e)&&e.forEach((function(n,a){l.set(a,cr(n,t,r,a,e,i))}));var v=d?n:(c?u?io:oo:u?Ll:Ol)(e);return _t(v||e,(function(n,a){v&&(n=e[a=n]),rr(l,a,cr(n,t,r,a,e,i))})),l}function dr(e,t,r){var a=r.length;if(null==e)return!a;for(e=Ce(e);a--;){var o=r[a],i=t[o],l=e[o];if(l===n&&!(o in e)||!i(l))return!1}return!0}function fr(e,t,a){if("function"!=typeof e)throw new Pe(r);return Oo((function(){e.apply(n,a)}),t)}function pr(e,t,n,r){var a=-1,o=Pt,i=!0,l=e.length,s=[],u=t.length;if(!l)return s;n&&(t=It(t,Qt(n))),r?(o=Nt,i=!1):t.length>=200&&(o=Zt,i=!1,t=new Qn(t));e:for(;++a<l;){var c=e[a],d=null==n?c:n(c);if(c=r||0!==c?c:0,i&&d==d){for(var f=u;f--;)if(t[f]===d)continue e;s.push(c)}else o(t,d,r)||s.push(c)}return s}Vn.templateSettings={escape:X,evaluate:Z,interpolate:J,variable:"",imports:{_:Vn}},Vn.prototype=Bn.prototype,Vn.prototype.constructor=Vn,$n.prototype=Wn(Bn.prototype),$n.prototype.constructor=$n,qn.prototype=Wn(Bn.prototype),qn.prototype.constructor=qn,Yn.prototype.clear=function(){this.__data__=Nn?Nn(null):{},this.size=0},Yn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Yn.prototype.get=function(e){var t=this.__data__;if(Nn){var r=t[e];return r===a?n:r}return ze.call(t,e)?t[e]:n},Yn.prototype.has=function(e){var t=this.__data__;return Nn?t[e]!==n:ze.call(t,e)},Yn.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Nn&&t===n?a:t,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=ar(t,e);return!(n<0)&&(n==t.length-1?t.pop():Qe.call(t,n,1),--this.size,!0)},Gn.prototype.get=function(e){var t=this.__data__,r=ar(t,e);return r<0?n:t[r][1]},Gn.prototype.has=function(e){return ar(this.__data__,e)>-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=ar(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Kn.prototype.clear=function(){this.size=0,this.__data__={hash:new Yn,map:new(Cn||Gn),string:new Yn}},Kn.prototype.delete=function(e){var t=fo(this,e).delete(e);return this.size-=t?1:0,t},Kn.prototype.get=function(e){return fo(this,e).get(e)},Kn.prototype.has=function(e){return fo(this,e).has(e)},Kn.prototype.set=function(e,t){var n=fo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Qn.prototype.add=Qn.prototype.push=function(e){return this.__data__.set(e,a),this},Qn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!Cn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kn(r)}return n.set(e,t),this.size=n.size,this};var hr=La(Sr),vr=La(xr,!0);function mr(e,t){var n=!0;return hr(e,(function(e,r,a){return n=!!t(e,r,a)})),n}function gr(e,t,r){for(var a=-1,o=e.length;++a<o;){var i=e[a],l=t(i);if(null!=l&&(s===n?l==l&&!dl(l):r(l,s)))var s=l,u=i}return u}function yr(e,t){var n=[];return hr(e,(function(e,r,a){t(e,r,a)&&n.push(e)})),n}function br(e,t,n,r,a){var o=-1,i=e.length;for(n||(n=wo),a||(a=[]);++o<i;){var l=e[o];t>0&&n(l)?t>1?br(l,t-1,n,r,a):Mt(a,l):r||(a[a.length]=l)}return a}var wr=za(),kr=za(!0);function Sr(e,t){return e&&wr(e,t,Ol)}function xr(e,t){return e&&kr(e,t,Ol)}function Er(e,t){return Rt(t,(function(t){return el(e[t])}))}function Tr(e,t){for(var r=0,a=(t=ka(t,e)).length;null!=e&&r<a;)e=e[jo(t[r++])];return r&&r==a?e:n}function _r(e,t,n){var r=t(e);return Yi(e)?r:Mt(r,n(e))}function Cr(e){return null==e?e===n?"[object Undefined]":"[object Null]":lt&< in Ce(e)?function(e){var t=ze.call(e,lt),r=e[lt];try{e[lt]=n;var a=!0}catch(e){}var o=He.call(e);a&&(t?e[lt]=r:delete e[lt]);return o}(e):function(e){return He.call(e)}(e)}function Dr(e,t){return e>t}function Rr(e,t){return null!=e&&ze.call(e,t)}function Pr(e,t){return null!=e&&t in Ce(e)}function Nr(e,t,r){for(var a=r?Nt:Pt,o=e[0].length,i=e.length,l=i,s=ie(i),u=1/0,c=[];l--;){var d=e[l];l&&t&&(d=It(d,Qt(t))),u=kn(d.length,u),s[l]=!r&&(t||o>=120&&d.length>=120)?new Qn(l&&d):n}d=e[0];var f=-1,p=s[0];e:for(;++f<o&&c.length<u;){var h=d[f],v=t?t(h):h;if(h=r||0!==h?h:0,!(p?Zt(p,v):a(c,v,r))){for(l=i;--l;){var m=s[l];if(!(m?Zt(m,v):a(e[l],v,r)))continue e}p&&p.push(v),c.push(h)}}return c}function Ir(e,t,r){var a=null==(e=Po(e,t=ka(t,e)))?e:e[jo(Jo(t))];return null==a?n:Et(a,e,r)}function Mr(e){return al(e)&&Cr(e)==g}function Or(e,t,r,a,o){return e===t||(null==e||null==t||!al(e)&&!al(t)?e!=e&&t!=t:function(e,t,r,a,o,i){var l=Yi(e),s=Yi(t),u=l?y:go(e),c=s?y:go(t),d=(u=u==g?_:u)==_,f=(c=c==g?_:c)==_,p=u==c;if(p&&Xi(e)){if(!Xi(t))return!1;l=!0,d=!1}if(p&&!d)return i||(i=new Xn),l||fl(e)?ro(e,t,r,a,o,i):function(e,t,n,r,a,o,i){switch(n){case O:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case M:return!(e.byteLength!=t.byteLength||!o(new $e(e),new $e(t)));case b:case w:case T:return Wi(+e,+t);case k:return e.name==t.name&&e.message==t.message;case D:case P:return e==t+"";case E:var l=ln;case R:var s=1&r;if(l||(l=cn),e.size!=t.size&&!s)return!1;var u=i.get(e);if(u)return u==t;r|=2,i.set(e,t);var c=ro(l(e),l(t),r,a,o,i);return i.delete(e),c;case N:if(jn)return jn.call(e)==jn.call(t)}return!1}(e,t,u,r,a,o,i);if(!(1&r)){var h=d&&ze.call(e,"__wrapped__"),v=f&&ze.call(t,"__wrapped__");if(h||v){var m=h?e.value():e,S=v?t.value():t;return i||(i=new Xn),o(m,S,r,a,i)}}if(!p)return!1;return i||(i=new Xn),function(e,t,r,a,o,i){var l=1&r,s=oo(e),u=s.length,c=oo(t).length;if(u!=c&&!l)return!1;var d=u;for(;d--;){var f=s[d];if(!(l?f in t:ze.call(t,f)))return!1}var p=i.get(e),h=i.get(t);if(p&&h)return p==t&&h==e;var v=!0;i.set(e,t),i.set(t,e);var m=l;for(;++d<u;){var g=e[f=s[d]],y=t[f];if(a)var b=l?a(y,g,f,t,e,i):a(g,y,f,e,t,i);if(!(b===n?g===y||o(g,y,r,a,i):b)){v=!1;break}m||(m="constructor"==f)}if(v&&!m){var w=e.constructor,k=t.constructor;w==k||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof k&&k instanceof k||(v=!1)}return i.delete(e),i.delete(t),v}(e,t,r,a,o,i)}(e,t,r,a,Or,o))}function Lr(e,t,r,a){var o=r.length,i=o,l=!a;if(null==e)return!i;for(e=Ce(e);o--;){var s=r[o];if(l&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){var u=(s=r[o])[0],c=e[u],d=s[1];if(l&&s[2]){if(c===n&&!(u in e))return!1}else{var f=new Xn;if(a)var p=a(c,d,u,e,t,f);if(!(p===n?Or(d,c,3,a,f):p))return!1}}return!0}function zr(e){return!(!rl(e)||(t=e,Fe&&Fe in t))&&(el(e)?Ve:ge).test(Uo(e));var t}function Ar(e){return"function"==typeof e?e:null==e?is:"object"==typeof e?Yi(e)?Wr(e[0],e[1]):Vr(e):vs(e)}function Fr(e){if(!_o(e))return bn(e);var t=[];for(var n in Ce(e))ze.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Hr(e){if(!rl(e))return function(e){var t=[];if(null!=e)for(var n in Ce(e))t.push(n);return t}(e);var t=_o(e),n=[];for(var r in e)("constructor"!=r||!t&&ze.call(e,r))&&n.push(r);return n}function jr(e,t){return e<t}function Ur(e,t){var n=-1,r=Ki(e)?ie(e.length):[];return hr(e,(function(e,a,o){r[++n]=t(e,a,o)})),r}function Vr(e){var t=po(e);return 1==t.length&&t[0][2]?Do(t[0][0],t[0][1]):function(n){return n===e||Lr(n,e,t)}}function Wr(e,t){return xo(e)&&Co(t)?Do(jo(e),t):function(r){var a=Rl(r,e);return a===n&&a===t?Pl(r,e):Or(t,a,3)}}function Br(e,t,r,a,o){e!==t&&wr(t,(function(i,l){if(o||(o=new Xn),rl(i))!function(e,t,r,a,o,i,l){var s=Io(e,r),u=Io(t,r),c=l.get(u);if(c)return void nr(e,r,c);var d=i?i(s,u,r+"",e,t,l):n,f=d===n;if(f){var p=Yi(u),h=!p&&Xi(u),v=!p&&!h&&fl(u);d=u,p||h||v?Yi(s)?d=s:Qi(s)?d=Na(s):h?(f=!1,d=Ta(u,!0)):v?(f=!1,d=Ca(u,!0)):d=[]:ll(u)||qi(u)?(d=s,qi(s)?d=wl(s):rl(s)&&!el(s)||(d=bo(u))):f=!1}f&&(l.set(u,d),o(d,u,a,i,l),l.delete(u));nr(e,r,d)}(e,t,l,r,Br,a,o);else{var s=a?a(Io(e,l),i,l+"",e,t,o):n;s===n&&(s=i),nr(e,l,s)}}),Ll)}function $r(e,t){var r=e.length;if(r)return ko(t+=t<0?r:0,r)?e[t]:n}function qr(e,t,n){t=t.length?It(t,(function(e){return Yi(e)?function(t){return Tr(t,1===e.length?e[0]:e)}:e})):[is];var r=-1;t=It(t,Qt(co()));var a=Ur(e,(function(e,n,a){var o=It(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(a,(function(e,t){return function(e,t,n){var r=-1,a=e.criteria,o=t.criteria,i=a.length,l=n.length;for(;++r<i;){var s=Da(a[r],o[r]);if(s)return r>=l?s:s*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Yr(e,t,n){for(var r=-1,a=t.length,o={};++r<a;){var i=t[r],l=Tr(e,i);n(l,i)&&ta(o,ka(i,e),l)}return o}function Gr(e,t,n,r){var a=r?Ut:jt,o=-1,i=t.length,l=e;for(e===t&&(t=Na(t)),n&&(l=It(e,Qt(n)));++o<i;)for(var s=0,u=t[o],c=n?n(u):u;(s=a(l,c,s,r))>-1;)l!==e&&Qe.call(l,s,1),Qe.call(e,s,1);return e}function Kr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var a=t[n];if(n==r||a!==o){var o=a;ko(a)?Qe.call(e,a,1):pa(e,a)}}return e}function Qr(e,t){return e+gt(En()*(t-e+1))}function Xr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Zr(e,t){return Lo(Ro(e,t,is),e+"")}function Jr(e){return Jn(Wl(e))}function ea(e,t){var n=Wl(e);return Fo(n,ur(t,0,n.length))}function ta(e,t,r,a){if(!rl(e))return e;for(var o=-1,i=(t=ka(t,e)).length,l=i-1,s=e;null!=s&&++o<i;){var u=jo(t[o]),c=r;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(o!=l){var d=s[u];(c=a?a(d,u,s):n)===n&&(c=rl(d)?d:ko(t[o+1])?[]:{})}rr(s,u,c),s=s[u]}return e}var na=In?function(e,t){return In.set(e,t),e}:is,ra=ct?function(e,t){return ct(e,"toString",{configurable:!0,enumerable:!1,value:rs(t),writable:!0})}:is;function aa(e){return Fo(Wl(e))}function oa(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var o=ie(a);++r<a;)o[r]=e[r+t];return o}function ia(e,t){var n;return hr(e,(function(e,r,a){return!(n=t(e,r,a))})),!!n}function la(e,t,n){var r=0,a=null==e?r:e.length;if("number"==typeof t&&t==t&&a<=2147483647){for(;r<a;){var o=r+a>>>1,i=e[o];null!==i&&!dl(i)&&(n?i<=t:i<t)?r=o+1:a=o}return a}return sa(e,t,is,n)}function sa(e,t,r,a){var o=0,i=null==e?0:e.length;if(0===i)return 0;for(var l=(t=r(t))!=t,s=null===t,u=dl(t),c=t===n;o<i;){var d=gt((o+i)/2),f=r(e[d]),p=f!==n,h=null===f,v=f==f,m=dl(f);if(l)var g=a||v;else g=c?v&&(a||p):s?v&&p&&(a||!h):u?v&&p&&!h&&(a||!m):!h&&!m&&(a?f<=t:f<t);g?o=d+1:i=d}return kn(i,4294967294)}function ua(e,t){for(var n=-1,r=e.length,a=0,o=[];++n<r;){var i=e[n],l=t?t(i):i;if(!n||!Wi(l,s)){var s=l;o[a++]=0===i?0:i}}return o}function ca(e){return"number"==typeof e?e:dl(e)?h:+e}function da(e){if("string"==typeof e)return e;if(Yi(e))return It(e,da)+"";if(dl(e))return Un?Un.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function fa(e,t,n){var r=-1,a=Pt,o=e.length,i=!0,l=[],s=l;if(n)i=!1,a=Nt;else if(o>=200){var u=t?null:Xa(e);if(u)return cn(u);i=!1,a=Zt,s=new Qn}else s=t?[]:l;e:for(;++r<o;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,i&&d==d){for(var f=s.length;f--;)if(s[f]===d)continue e;t&&s.push(d),l.push(c)}else a(s,d,n)||(s!==l&&s.push(d),l.push(c))}return l}function pa(e,t){return null==(e=Po(e,t=ka(t,e)))||delete e[jo(Jo(t))]}function ha(e,t,n,r){return ta(e,t,n(Tr(e,t)),r)}function va(e,t,n,r){for(var a=e.length,o=r?a:-1;(r?o--:++o<a)&&t(e[o],o,e););return n?oa(e,r?0:o,r?o+1:a):oa(e,r?o+1:0,r?a:o)}function ma(e,t){var n=e;return n instanceof qn&&(n=n.value()),Ot(t,(function(e,t){return t.func.apply(t.thisArg,Mt([e],t.args))}),n)}function ga(e,t,n){var r=e.length;if(r<2)return r?fa(e[0]):[];for(var a=-1,o=ie(r);++a<r;)for(var i=e[a],l=-1;++l<r;)l!=a&&(o[a]=pr(o[a]||i,e[l],t,n));return fa(br(o,1),t,n)}function ya(e,t,r){for(var a=-1,o=e.length,i=t.length,l={};++a<o;){var s=a<i?t[a]:n;r(l,e[a],s)}return l}function ba(e){return Qi(e)?e:[]}function wa(e){return"function"==typeof e?e:is}function ka(e,t){return Yi(e)?e:xo(e,t)?[e]:Ho(kl(e))}var Sa=Zr;function xa(e,t,r){var a=e.length;return r=r===n?a:r,!t&&r>=a?e:oa(e,t,r)}var Ea=dt||function(e){return ft.clearTimeout(e)};function Ta(e,t){if(t)return e.slice();var n=e.length,r=qe?qe(n):new e.constructor(n);return e.copy(r),r}function _a(e){var t=new e.constructor(e.byteLength);return new $e(t).set(new $e(e)),t}function Ca(e,t){var n=t?_a(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Da(e,t){if(e!==t){var r=e!==n,a=null===e,o=e==e,i=dl(e),l=t!==n,s=null===t,u=t==t,c=dl(t);if(!s&&!c&&!i&&e>t||i&&l&&u&&!s&&!c||a&&l&&u||!r&&u||!o)return 1;if(!a&&!i&&!c&&e<t||c&&r&&o&&!a&&!i||s&&r&&o||!l&&o||!u)return-1}return 0}function Ra(e,t,n,r){for(var a=-1,o=e.length,i=n.length,l=-1,s=t.length,u=wn(o-i,0),c=ie(s+u),d=!r;++l<s;)c[l]=t[l];for(;++a<i;)(d||a<o)&&(c[n[a]]=e[a]);for(;u--;)c[l++]=e[a++];return c}function Pa(e,t,n,r){for(var a=-1,o=e.length,i=-1,l=n.length,s=-1,u=t.length,c=wn(o-l,0),d=ie(c+u),f=!r;++a<c;)d[a]=e[a];for(var p=a;++s<u;)d[p+s]=t[s];for(;++i<l;)(f||a<o)&&(d[p+n[i]]=e[a++]);return d}function Na(e,t){var n=-1,r=e.length;for(t||(t=ie(r));++n<r;)t[n]=e[n];return t}function Ia(e,t,r,a){var o=!r;r||(r={});for(var i=-1,l=t.length;++i<l;){var s=t[i],u=a?a(r[s],e[s],s,r,e):n;u===n&&(u=e[s]),o?lr(r,s,u):rr(r,s,u)}return r}function Ma(e,t){return function(n,r){var a=Yi(n)?Tt:or,o=t?t():{};return a(n,e,co(r,2),o)}}function Oa(e){return Zr((function(t,r){var a=-1,o=r.length,i=o>1?r[o-1]:n,l=o>2?r[2]:n;for(i=e.length>3&&"function"==typeof i?(o--,i):n,l&&So(r[0],r[1],l)&&(i=o<3?n:i,o=1),t=Ce(t);++a<o;){var s=r[a];s&&e(t,s,a,i)}return t}))}function La(e,t){return function(n,r){if(null==n)return n;if(!Ki(n))return e(n,r);for(var a=n.length,o=t?a:-1,i=Ce(n);(t?o--:++o<a)&&!1!==r(i[o],o,i););return n}}function za(e){return function(t,n,r){for(var a=-1,o=Ce(t),i=r(t),l=i.length;l--;){var s=i[e?l:++a];if(!1===n(o[s],s,o))break}return t}}function Aa(e){return function(t){var r=on(t=kl(t))?pn(t):n,a=r?r[0]:t.charAt(0),o=r?xa(r,1).join(""):t.slice(1);return a[e]()+o}}function Fa(e){return function(t){return Ot(es(ql(t).replace(Xe,"")),e,"")}}function Ha(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Wn(e.prototype),r=e.apply(n,t);return rl(r)?r:n}}function ja(e){return function(t,r,a){var o=Ce(t);if(!Ki(t)){var i=co(r,3);t=Ol(t),r=function(e){return i(o[e],e,o)}}var l=e(t,r,a);return l>-1?o[i?t[l]:l]:n}}function Ua(e){return ao((function(t){var a=t.length,o=a,i=$n.prototype.thru;for(e&&t.reverse();o--;){var l=t[o];if("function"!=typeof l)throw new Pe(r);if(i&&!s&&"wrapper"==so(l))var s=new $n([],!0)}for(o=s?o:a;++o<a;){var u=so(l=t[o]),c="wrapper"==u?lo(l):n;s=c&&Eo(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?s[so(c[0])].apply(s,c[3]):1==l.length&&Eo(l)?s[u]():s.thru(l)}return function(){var e=arguments,n=e[0];if(s&&1==e.length&&Yi(n))return s.plant(n).value();for(var r=0,o=a?t[r].apply(this,e):n;++r<a;)o=t[r].call(this,o);return o}}))}function Va(e,t,r,a,o,i,l,s,u,d){var f=t&c,p=1&t,h=2&t,v=24&t,m=512&t,g=h?n:Ha(e);return function n(){for(var c=arguments.length,y=ie(c),b=c;b--;)y[b]=arguments[b];if(v)var w=uo(n),k=tn(y,w);if(a&&(y=Ra(y,a,o,v)),i&&(y=Pa(y,i,l,v)),c-=k,v&&c<d){var S=un(y,w);return Ka(e,t,Va,n.placeholder,r,y,S,s,u,d-c)}var x=p?r:this,E=h?x[e]:e;return c=y.length,s?y=No(y,s):m&&c>1&&y.reverse(),f&&u<c&&(y.length=u),this&&this!==ft&&this instanceof n&&(E=g||Ha(E)),E.apply(x,y)}}function Wa(e,t){return function(n,r){return function(e,t,n,r){return Sr(e,(function(e,a,o){t(r,n(e),a,o)})),r}(n,e,t(r),{})}}function Ba(e,t){return function(r,a){var o;if(r===n&&a===n)return t;if(r!==n&&(o=r),a!==n){if(o===n)return a;"string"==typeof r||"string"==typeof a?(r=da(r),a=da(a)):(r=ca(r),a=ca(a)),o=e(r,a)}return o}}function $a(e){return ao((function(t){return t=It(t,Qt(co())),Zr((function(n){var r=this;return e(t,(function(e){return Et(e,r,n)}))}))}))}function qa(e,t){var r=(t=t===n?" ":da(t)).length;if(r<2)return r?Xr(t,e):t;var a=Xr(t,mt(e/fn(t)));return on(t)?xa(pn(a),0,e).join(""):a.slice(0,e)}function Ya(e){return function(t,r,a){return a&&"number"!=typeof a&&So(t,r,a)&&(r=a=n),t=ml(t),r===n?(r=t,t=0):r=ml(r),function(e,t,n,r){for(var a=-1,o=wn(mt((t-e)/(n||1)),0),i=ie(o);o--;)i[r?o:++a]=e,e+=n;return i}(t,r,a=a===n?t<r?1:-1:ml(a),e)}}function Ga(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=bl(t),n=bl(n)),e(t,n)}}function Ka(e,t,r,a,o,i,l,c,d,f){var p=8&t;t|=p?s:u,4&(t&=~(p?u:s))||(t&=-4);var h=[e,t,o,p?i:n,p?l:n,p?n:i,p?n:l,c,d,f],v=r.apply(n,h);return Eo(e)&&Mo(v,h),v.placeholder=a,zo(v,e,t)}function Qa(e){var t=_e[e];return function(e,n){if(e=bl(e),(n=null==n?0:kn(gl(n),292))&&gn(e)){var r=(kl(e)+"e").split("e");return+((r=(kl(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Xa=Rn&&1/cn(new Rn([,-0]))[1]==f?function(e){return new Rn(e)}:ds;function Za(e){return function(t){var n=go(t);return n==E?ln(t):n==R?dn(t):function(e,t){return It(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ja(e,t,a,i,f,p,h,v){var m=2&t;if(!m&&"function"!=typeof e)throw new Pe(r);var g=i?i.length:0;if(g||(t&=-97,i=f=n),h=h===n?h:wn(gl(h),0),v=v===n?v:gl(v),g-=f?f.length:0,t&u){var y=i,b=f;i=f=n}var w=m?n:lo(e),k=[e,t,a,i,f,y,b,p,h,v];if(w&&function(e,t){var n=e[1],r=t[1],a=n|r,i=a<131,l=r==c&&8==n||r==c&&n==d&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!l)return e;1&r&&(e[2]=t[2],a|=1&n?0:4);var s=t[3];if(s){var u=e[3];e[3]=u?Ra(u,s,t[4]):s,e[4]=u?un(e[3],o):t[4]}(s=t[5])&&(u=e[5],e[5]=u?Pa(u,s,t[6]):s,e[6]=u?un(e[5],o):t[6]);(s=t[7])&&(e[7]=s);r&c&&(e[8]=null==e[8]?t[8]:kn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=a}(k,w),e=k[0],t=k[1],a=k[2],i=k[3],f=k[4],!(v=k[9]=k[9]===n?m?0:e.length:wn(k[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)S=8==t||t==l?function(e,t,r){var a=Ha(e);return function o(){for(var i=arguments.length,l=ie(i),s=i,u=uo(o);s--;)l[s]=arguments[s];var c=i<3&&l[0]!==u&&l[i-1]!==u?[]:un(l,u);return(i-=c.length)<r?Ka(e,t,Va,o.placeholder,n,l,c,n,n,r-i):Et(this&&this!==ft&&this instanceof o?a:e,this,l)}}(e,t,v):t!=s&&33!=t||f.length?Va.apply(n,k):function(e,t,n,r){var a=1&t,o=Ha(e);return function t(){for(var i=-1,l=arguments.length,s=-1,u=r.length,c=ie(u+l),d=this&&this!==ft&&this instanceof t?o:e;++s<u;)c[s]=r[s];for(;l--;)c[s++]=arguments[++i];return Et(d,a?n:this,c)}}(e,t,a,i);else var S=function(e,t,n){var r=1&t,a=Ha(e);return function t(){return(this&&this!==ft&&this instanceof t?a:e).apply(r?n:this,arguments)}}(e,t,a);return zo((w?na:Mo)(S,k),e,t)}function eo(e,t,r,a){return e===n||Wi(e,Me[r])&&!ze.call(a,r)?t:e}function to(e,t,r,a,o,i){return rl(e)&&rl(t)&&(i.set(t,e),Br(e,t,n,to,i),i.delete(t)),e}function no(e){return ll(e)?n:e}function ro(e,t,r,a,o,i){var l=1&r,s=e.length,u=t.length;if(s!=u&&!(l&&u>s))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var f=-1,p=!0,h=2&r?new Qn:n;for(i.set(e,t),i.set(t,e);++f<s;){var v=e[f],m=t[f];if(a)var g=l?a(m,v,f,t,e,i):a(v,m,f,e,t,i);if(g!==n){if(g)continue;p=!1;break}if(h){if(!zt(t,(function(e,t){if(!Zt(h,t)&&(v===e||o(v,e,r,a,i)))return h.push(t)}))){p=!1;break}}else if(v!==m&&!o(v,m,r,a,i)){p=!1;break}}return i.delete(e),i.delete(t),p}function ao(e){return Lo(Ro(e,n,Go),e+"")}function oo(e){return _r(e,Ol,vo)}function io(e){return _r(e,Ll,mo)}var lo=In?function(e){return In.get(e)}:ds;function so(e){for(var t=e.name+"",n=Mn[t],r=ze.call(Mn,t)?n.length:0;r--;){var a=n[r],o=a.func;if(null==o||o==e)return a.name}return t}function uo(e){return(ze.call(Vn,"placeholder")?Vn:e).placeholder}function co(){var e=Vn.iteratee||ls;return e=e===ls?Ar:e,arguments.length?e(arguments[0],arguments[1]):e}function fo(e,t){var n,r,a=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?a["string"==typeof t?"string":"hash"]:a.map}function po(e){for(var t=Ol(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,Co(a)]}return t}function ho(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return zr(r)?r:n}var vo=At?function(e){return null==e?[]:(e=Ce(e),Rt(At(e),(function(t){return Ke.call(e,t)})))}:ys,mo=At?function(e){for(var t=[];e;)Mt(t,vo(e)),e=Ye(e);return t}:ys,go=Cr;function yo(e,t,n){for(var r=-1,a=(t=ka(t,e)).length,o=!1;++r<a;){var i=jo(t[r]);if(!(o=null!=e&&n(e,i)))break;e=e[i]}return o||++r!=a?o:!!(a=null==e?0:e.length)&&nl(a)&&ko(i,a)&&(Yi(e)||qi(e))}function bo(e){return"function"!=typeof e.constructor||_o(e)?{}:Wn(Ye(e))}function wo(e){return Yi(e)||qi(e)||!!(Je&&e&&e[Je])}function ko(e,t){var n=typeof e;return!!(t=null==t?p:t)&&("number"==n||"symbol"!=n&&be.test(e))&&e>-1&&e%1==0&&e<t}function So(e,t,n){if(!rl(n))return!1;var r=typeof t;return!!("number"==r?Ki(n)&&ko(t,n.length):"string"==r&&t in n)&&Wi(n[t],e)}function xo(e,t){if(Yi(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!dl(e))||(te.test(e)||!ee.test(e)||null!=t&&e in Ce(t))}function Eo(e){var t=so(e),n=Vn[t];if("function"!=typeof n||!(t in qn.prototype))return!1;if(e===n)return!0;var r=lo(n);return!!r&&e===r[0]}(_n&&go(new _n(new ArrayBuffer(1)))!=O||Cn&&go(new Cn)!=E||Dn&&go(Dn.resolve())!=C||Rn&&go(new Rn)!=R||Pn&&go(new Pn)!=I)&&(go=function(e){var t=Cr(e),r=t==_?e.constructor:n,a=r?Uo(r):"";if(a)switch(a){case On:return O;case Ln:return E;case zn:return C;case An:return R;case Fn:return I}return t});var To=Oe?el:bs;function _o(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Me)}function Co(e){return e==e&&!rl(e)}function Do(e,t){return function(r){return null!=r&&(r[e]===t&&(t!==n||e in Ce(r)))}}function Ro(e,t,r){return t=wn(t===n?e.length-1:t,0),function(){for(var n=arguments,a=-1,o=wn(n.length-t,0),i=ie(o);++a<o;)i[a]=n[t+a];a=-1;for(var l=ie(t+1);++a<t;)l[a]=n[a];return l[t]=r(i),Et(e,this,l)}}function Po(e,t){return t.length<2?e:Tr(e,oa(t,0,-1))}function No(e,t){for(var r=e.length,a=kn(t.length,r),o=Na(e);a--;){var i=t[a];e[a]=ko(i,r)?o[i]:n}return e}function Io(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Mo=Ao(na),Oo=ht||function(e,t){return ft.setTimeout(e,t)},Lo=Ao(ra);function zo(e,t,n){var r=t+"";return Lo(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return _t(m,(function(n){var r="_."+n[0];t&n[1]&&!Pt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ue):[]}(r),n)))}function Ao(e){var t=0,r=0;return function(){var a=Sn(),o=16-(a-r);if(r=a,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Fo(e,t){var r=-1,a=e.length,o=a-1;for(t=t===n?a:t;++r<t;){var i=Qr(r,o),l=e[i];e[i]=e[r],e[r]=l}return e.length=t,e}var Ho=function(e){var t=Ai(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ne,(function(e,n,r,a){t.push(r?a.replace(fe,"$1"):n||e)})),t}));function jo(e){if("string"==typeof e||dl(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Uo(e){if(null!=e){try{return Le.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Vo(e){if(e instanceof qn)return e.clone();var t=new $n(e.__wrapped__,e.__chain__);return t.__actions__=Na(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Wo=Zr((function(e,t){return Qi(e)?pr(e,br(t,1,Qi,!0)):[]})),Bo=Zr((function(e,t){var r=Jo(t);return Qi(r)&&(r=n),Qi(e)?pr(e,br(t,1,Qi,!0),co(r,2)):[]})),$o=Zr((function(e,t){var r=Jo(t);return Qi(r)&&(r=n),Qi(e)?pr(e,br(t,1,Qi,!0),n,r):[]}));function qo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:gl(n);return a<0&&(a=wn(r+a,0)),Ht(e,co(t,3),a)}function Yo(e,t,r){var a=null==e?0:e.length;if(!a)return-1;var o=a-1;return r!==n&&(o=gl(r),o=r<0?wn(a+o,0):kn(o,a-1)),Ht(e,co(t,3),o,!0)}function Go(e){return(null==e?0:e.length)?br(e,1):[]}function Ko(e){return e&&e.length?e[0]:n}var Qo=Zr((function(e){var t=It(e,ba);return t.length&&t[0]===e[0]?Nr(t):[]})),Xo=Zr((function(e){var t=Jo(e),r=It(e,ba);return t===Jo(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Nr(r,co(t,2)):[]})),Zo=Zr((function(e){var t=Jo(e),r=It(e,ba);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?Nr(r,n,t):[]}));function Jo(e){var t=null==e?0:e.length;return t?e[t-1]:n}var ei=Zr(ti);function ti(e,t){return e&&e.length&&t&&t.length?Gr(e,t):e}var ni=ao((function(e,t){var n=null==e?0:e.length,r=sr(e,t);return Kr(e,It(t,(function(e){return ko(e,n)?+e:e})).sort(Da)),r}));function ri(e){return null==e?e:Tn.call(e)}var ai=Zr((function(e){return fa(br(e,1,Qi,!0))})),oi=Zr((function(e){var t=Jo(e);return Qi(t)&&(t=n),fa(br(e,1,Qi,!0),co(t,2))})),ii=Zr((function(e){var t=Jo(e);return t="function"==typeof t?t:n,fa(br(e,1,Qi,!0),n,t)}));function li(e){if(!e||!e.length)return[];var t=0;return e=Rt(e,(function(e){if(Qi(e))return t=wn(e.length,t),!0})),Gt(t,(function(t){return It(e,Bt(t))}))}function si(e,t){if(!e||!e.length)return[];var r=li(e);return null==t?r:It(r,(function(e){return Et(t,n,e)}))}var ui=Zr((function(e,t){return Qi(e)?pr(e,t):[]})),ci=Zr((function(e){return ga(Rt(e,Qi))})),di=Zr((function(e){var t=Jo(e);return Qi(t)&&(t=n),ga(Rt(e,Qi),co(t,2))})),fi=Zr((function(e){var t=Jo(e);return t="function"==typeof t?t:n,ga(Rt(e,Qi),n,t)})),pi=Zr(li);var hi=Zr((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,si(e,r)}));function vi(e){var t=Vn(e);return t.__chain__=!0,t}function mi(e,t){return t(e)}var gi=ao((function(e){var t=e.length,r=t?e[0]:0,a=this.__wrapped__,o=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&a instanceof qn&&ko(r)?((a=a.slice(r,+r+(t?1:0))).__actions__.push({func:mi,args:[o],thisArg:n}),new $n(a,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(o)}));var yi=Ma((function(e,t,n){ze.call(e,n)?++e[n]:lr(e,n,1)}));var bi=ja(qo),wi=ja(Yo);function ki(e,t){return(Yi(e)?_t:hr)(e,co(t,3))}function Si(e,t){return(Yi(e)?Ct:vr)(e,co(t,3))}var xi=Ma((function(e,t,n){ze.call(e,n)?e[n].push(t):lr(e,n,[t])}));var Ei=Zr((function(e,t,n){var r=-1,a="function"==typeof t,o=Ki(e)?ie(e.length):[];return hr(e,(function(e){o[++r]=a?Et(t,e,n):Ir(e,t,n)})),o})),Ti=Ma((function(e,t,n){lr(e,n,t)}));function _i(e,t){return(Yi(e)?It:Ur)(e,co(t,3))}var Ci=Ma((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Di=Zr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&So(e,t[0],t[1])?t=[]:n>2&&So(t[0],t[1],t[2])&&(t=[t[0]]),qr(e,br(t,1),[])})),Ri=pt||function(){return ft.Date.now()};function Pi(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Ja(e,c,n,n,n,n,t)}function Ni(e,t){var a;if("function"!=typeof t)throw new Pe(r);return e=gl(e),function(){return--e>0&&(a=t.apply(this,arguments)),e<=1&&(t=n),a}}var Ii=Zr((function(e,t,n){var r=1;if(n.length){var a=un(n,uo(Ii));r|=s}return Ja(e,r,t,n,a)})),Mi=Zr((function(e,t,n){var r=3;if(n.length){var a=un(n,uo(Mi));r|=s}return Ja(t,r,e,n,a)}));function Oi(e,t,a){var o,i,l,s,u,c,d=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new Pe(r);function v(t){var r=o,a=i;return o=i=n,d=t,s=e.apply(a,r)}function m(e){return d=e,u=Oo(y,t),f?v(e):s}function g(e){var r=e-c;return c===n||r>=t||r<0||p&&e-d>=l}function y(){var e=Ri();if(g(e))return b(e);u=Oo(y,function(e){var n=t-(e-c);return p?kn(n,l-(e-d)):n}(e))}function b(e){return u=n,h&&o?v(e):(o=i=n,s)}function w(){var e=Ri(),r=g(e);if(o=arguments,i=this,c=e,r){if(u===n)return m(c);if(p)return Ea(u),u=Oo(y,t),v(c)}return u===n&&(u=Oo(y,t)),s}return t=bl(t)||0,rl(a)&&(f=!!a.leading,l=(p="maxWait"in a)?wn(bl(a.maxWait)||0,t):l,h="trailing"in a?!!a.trailing:h),w.cancel=function(){u!==n&&Ea(u),d=0,o=c=i=u=n},w.flush=function(){return u===n?s:b(Ri())},w}var Li=Zr((function(e,t){return fr(e,1,t)})),zi=Zr((function(e,t,n){return fr(e,bl(t)||0,n)}));function Ai(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Pe(r);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var i=e.apply(this,r);return n.cache=o.set(a,i)||o,i};return n.cache=new(Ai.Cache||Kn),n}function Fi(e){if("function"!=typeof e)throw new Pe(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ai.Cache=Kn;var Hi=Sa((function(e,t){var n=(t=1==t.length&&Yi(t[0])?It(t[0],Qt(co())):It(br(t,1),Qt(co()))).length;return Zr((function(r){for(var a=-1,o=kn(r.length,n);++a<o;)r[a]=t[a].call(this,r[a]);return Et(e,this,r)}))})),ji=Zr((function(e,t){var r=un(t,uo(ji));return Ja(e,s,n,t,r)})),Ui=Zr((function(e,t){var r=un(t,uo(Ui));return Ja(e,u,n,t,r)})),Vi=ao((function(e,t){return Ja(e,d,n,n,n,t)}));function Wi(e,t){return e===t||e!=e&&t!=t}var Bi=Ga(Dr),$i=Ga((function(e,t){return e>=t})),qi=Mr(function(){return arguments}())?Mr:function(e){return al(e)&&ze.call(e,"callee")&&!Ke.call(e,"callee")},Yi=ie.isArray,Gi=yt?Qt(yt):function(e){return al(e)&&Cr(e)==M};function Ki(e){return null!=e&&nl(e.length)&&!el(e)}function Qi(e){return al(e)&&Ki(e)}var Xi=$t||bs,Zi=bt?Qt(bt):function(e){return al(e)&&Cr(e)==w};function Ji(e){if(!al(e))return!1;var t=Cr(e);return t==k||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ll(e)}function el(e){if(!rl(e))return!1;var t=Cr(e);return t==S||t==x||"[object AsyncFunction]"==t||"[object Proxy]"==t}function tl(e){return"number"==typeof e&&e==gl(e)}function nl(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function rl(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function al(e){return null!=e&&"object"==typeof e}var ol=wt?Qt(wt):function(e){return al(e)&&go(e)==E};function il(e){return"number"==typeof e||al(e)&&Cr(e)==T}function ll(e){if(!al(e)||Cr(e)!=_)return!1;var t=Ye(e);if(null===t)return!0;var n=ze.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Le.call(n)==je}var sl=kt?Qt(kt):function(e){return al(e)&&Cr(e)==D};var ul=St?Qt(St):function(e){return al(e)&&go(e)==R};function cl(e){return"string"==typeof e||!Yi(e)&&al(e)&&Cr(e)==P}function dl(e){return"symbol"==typeof e||al(e)&&Cr(e)==N}var fl=xt?Qt(xt):function(e){return al(e)&&nl(e.length)&&!!ot[Cr(e)]};var pl=Ga(jr),hl=Ga((function(e,t){return e<=t}));function vl(e){if(!e)return[];if(Ki(e))return cl(e)?pn(e):Na(e);if(tt&&e[tt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[tt]());var t=go(e);return(t==E?ln:t==R?cn:Wl)(e)}function ml(e){return e?(e=bl(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function gl(e){var t=ml(e),n=t%1;return t==t?n?t-n:t:0}function yl(e){return e?ur(gl(e),0,v):0}function bl(e){if("number"==typeof e)return e;if(dl(e))return h;if(rl(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=rl(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Kt(e);var n=me.test(e);return n||ye.test(e)?ut(e.slice(2),n?2:8):ve.test(e)?h:+e}function wl(e){return Ia(e,Ll(e))}function kl(e){return null==e?"":da(e)}var Sl=Oa((function(e,t){if(_o(t)||Ki(t))Ia(t,Ol(t),e);else for(var n in t)ze.call(t,n)&&rr(e,n,t[n])})),xl=Oa((function(e,t){Ia(t,Ll(t),e)})),El=Oa((function(e,t,n,r){Ia(t,Ll(t),e,r)})),Tl=Oa((function(e,t,n,r){Ia(t,Ol(t),e,r)})),_l=ao(sr);var Cl=Zr((function(e,t){e=Ce(e);var r=-1,a=t.length,o=a>2?t[2]:n;for(o&&So(t[0],t[1],o)&&(a=1);++r<a;)for(var i=t[r],l=Ll(i),s=-1,u=l.length;++s<u;){var c=l[s],d=e[c];(d===n||Wi(d,Me[c])&&!ze.call(e,c))&&(e[c]=i[c])}return e})),Dl=Zr((function(e){return e.push(n,to),Et(Al,n,e)}));function Rl(e,t,r){var a=null==e?n:Tr(e,t);return a===n?r:a}function Pl(e,t){return null!=e&&yo(e,t,Pr)}var Nl=Wa((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=He.call(t)),e[t]=n}),rs(is)),Il=Wa((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=He.call(t)),ze.call(e,t)?e[t].push(n):e[t]=[n]}),co),Ml=Zr(Ir);function Ol(e){return Ki(e)?Zn(e):Fr(e)}function Ll(e){return Ki(e)?Zn(e,!0):Hr(e)}var zl=Oa((function(e,t,n){Br(e,t,n)})),Al=Oa((function(e,t,n,r){Br(e,t,n,r)})),Fl=ao((function(e,t){var n={};if(null==e)return n;var r=!1;t=It(t,(function(t){return t=ka(t,e),r||(r=t.length>1),t})),Ia(e,io(e),n),r&&(n=cr(n,7,no));for(var a=t.length;a--;)pa(n,t[a]);return n}));var Hl=ao((function(e,t){return null==e?{}:function(e,t){return Yr(e,t,(function(t,n){return Pl(e,n)}))}(e,t)}));function jl(e,t){if(null==e)return{};var n=It(io(e),(function(e){return[e]}));return t=co(t),Yr(e,n,(function(e,n){return t(e,n[0])}))}var Ul=Za(Ol),Vl=Za(Ll);function Wl(e){return null==e?[]:Xt(e,Ol(e))}var Bl=Fa((function(e,t,n){return t=t.toLowerCase(),e+(n?$l(t):t)}));function $l(e){return Jl(kl(e).toLowerCase())}function ql(e){return(e=kl(e))&&e.replace(we,nn).replace(Ze,"")}var Yl=Fa((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Gl=Fa((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Kl=Aa("toLowerCase");var Ql=Fa((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Xl=Fa((function(e,t,n){return e+(n?" ":"")+Jl(t)}));var Zl=Fa((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Jl=Aa("toUpperCase");function es(e,t,r){return e=kl(e),(t=r?n:t)===n?function(e){return nt.test(e)}(e)?function(e){return e.match(et)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var ts=Zr((function(e,t){try{return Et(e,n,t)}catch(e){return Ji(e)?e:new Ee(e)}})),ns=ao((function(e,t){return _t(t,(function(t){t=jo(t),lr(e,t,Ii(e[t],e))})),e}));function rs(e){return function(){return e}}var as=Ua(),os=Ua(!0);function is(e){return e}function ls(e){return Ar("function"==typeof e?e:cr(e,1))}var ss=Zr((function(e,t){return function(n){return Ir(n,e,t)}})),us=Zr((function(e,t){return function(n){return Ir(e,n,t)}}));function cs(e,t,n){var r=Ol(t),a=Er(t,r);null!=n||rl(t)&&(a.length||!r.length)||(n=t,t=e,e=this,a=Er(t,Ol(t)));var o=!(rl(n)&&"chain"in n&&!n.chain),i=el(e);return _t(a,(function(n){var r=t[n];e[n]=r,i&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),a=n.__actions__=Na(this.__actions__);return a.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Mt([this.value()],arguments))})})),e}function ds(){}var fs=$a(It),ps=$a(Dt),hs=$a(zt);function vs(e){return xo(e)?Bt(jo(e)):function(e){return function(t){return Tr(t,e)}}(e)}var ms=Ya(),gs=Ya(!0);function ys(){return[]}function bs(){return!1}var ws=Ba((function(e,t){return e+t}),0),ks=Qa("ceil"),Ss=Ba((function(e,t){return e/t}),1),xs=Qa("floor");var Es,Ts=Ba((function(e,t){return e*t}),1),_s=Qa("round"),Cs=Ba((function(e,t){return e-t}),0);return Vn.after=function(e,t){if("function"!=typeof t)throw new Pe(r);return e=gl(e),function(){if(--e<1)return t.apply(this,arguments)}},Vn.ary=Pi,Vn.assign=Sl,Vn.assignIn=xl,Vn.assignInWith=El,Vn.assignWith=Tl,Vn.at=_l,Vn.before=Ni,Vn.bind=Ii,Vn.bindAll=ns,Vn.bindKey=Mi,Vn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Yi(e)?e:[e]},Vn.chain=vi,Vn.chunk=function(e,t,r){t=(r?So(e,t,r):t===n)?1:wn(gl(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var o=0,i=0,l=ie(mt(a/t));o<a;)l[i++]=oa(e,o,o+=t);return l},Vn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,a=[];++t<n;){var o=e[t];o&&(a[r++]=o)}return a},Vn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=ie(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Mt(Yi(n)?Na(n):[n],br(t,1))},Vn.cond=function(e){var t=null==e?0:e.length,n=co();return e=t?It(e,(function(e){if("function"!=typeof e[1])throw new Pe(r);return[n(e[0]),e[1]]})):[],Zr((function(n){for(var r=-1;++r<t;){var a=e[r];if(Et(a[0],this,n))return Et(a[1],this,n)}}))},Vn.conforms=function(e){return function(e){var t=Ol(e);return function(n){return dr(n,e,t)}}(cr(e,1))},Vn.constant=rs,Vn.countBy=yi,Vn.create=function(e,t){var n=Wn(e);return null==t?n:ir(n,t)},Vn.curry=function e(t,r,a){var o=Ja(t,8,n,n,n,n,n,r=a?n:r);return o.placeholder=e.placeholder,o},Vn.curryRight=function e(t,r,a){var o=Ja(t,l,n,n,n,n,n,r=a?n:r);return o.placeholder=e.placeholder,o},Vn.debounce=Oi,Vn.defaults=Cl,Vn.defaultsDeep=Dl,Vn.defer=Li,Vn.delay=zi,Vn.difference=Wo,Vn.differenceBy=Bo,Vn.differenceWith=$o,Vn.drop=function(e,t,r){var a=null==e?0:e.length;return a?oa(e,(t=r||t===n?1:gl(t))<0?0:t,a):[]},Vn.dropRight=function(e,t,r){var a=null==e?0:e.length;return a?oa(e,0,(t=a-(t=r||t===n?1:gl(t)))<0?0:t):[]},Vn.dropRightWhile=function(e,t){return e&&e.length?va(e,co(t,3),!0,!0):[]},Vn.dropWhile=function(e,t){return e&&e.length?va(e,co(t,3),!0):[]},Vn.fill=function(e,t,r,a){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&So(e,t,r)&&(r=0,a=o),function(e,t,r,a){var o=e.length;for((r=gl(r))<0&&(r=-r>o?0:o+r),(a=a===n||a>o?o:gl(a))<0&&(a+=o),a=r>a?0:yl(a);r<a;)e[r++]=t;return e}(e,t,r,a)):[]},Vn.filter=function(e,t){return(Yi(e)?Rt:yr)(e,co(t,3))},Vn.flatMap=function(e,t){return br(_i(e,t),1)},Vn.flatMapDeep=function(e,t){return br(_i(e,t),f)},Vn.flatMapDepth=function(e,t,r){return r=r===n?1:gl(r),br(_i(e,t),r)},Vn.flatten=Go,Vn.flattenDeep=function(e){return(null==e?0:e.length)?br(e,f):[]},Vn.flattenDepth=function(e,t){return(null==e?0:e.length)?br(e,t=t===n?1:gl(t)):[]},Vn.flip=function(e){return Ja(e,512)},Vn.flow=as,Vn.flowRight=os,Vn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var a=e[t];r[a[0]]=a[1]}return r},Vn.functions=function(e){return null==e?[]:Er(e,Ol(e))},Vn.functionsIn=function(e){return null==e?[]:Er(e,Ll(e))},Vn.groupBy=xi,Vn.initial=function(e){return(null==e?0:e.length)?oa(e,0,-1):[]},Vn.intersection=Qo,Vn.intersectionBy=Xo,Vn.intersectionWith=Zo,Vn.invert=Nl,Vn.invertBy=Il,Vn.invokeMap=Ei,Vn.iteratee=ls,Vn.keyBy=Ti,Vn.keys=Ol,Vn.keysIn=Ll,Vn.map=_i,Vn.mapKeys=function(e,t){var n={};return t=co(t,3),Sr(e,(function(e,r,a){lr(n,t(e,r,a),e)})),n},Vn.mapValues=function(e,t){var n={};return t=co(t,3),Sr(e,(function(e,r,a){lr(n,r,t(e,r,a))})),n},Vn.matches=function(e){return Vr(cr(e,1))},Vn.matchesProperty=function(e,t){return Wr(e,cr(t,1))},Vn.memoize=Ai,Vn.merge=zl,Vn.mergeWith=Al,Vn.method=ss,Vn.methodOf=us,Vn.mixin=cs,Vn.negate=Fi,Vn.nthArg=function(e){return e=gl(e),Zr((function(t){return $r(t,e)}))},Vn.omit=Fl,Vn.omitBy=function(e,t){return jl(e,Fi(co(t)))},Vn.once=function(e){return Ni(2,e)},Vn.orderBy=function(e,t,r,a){return null==e?[]:(Yi(t)||(t=null==t?[]:[t]),Yi(r=a?n:r)||(r=null==r?[]:[r]),qr(e,t,r))},Vn.over=fs,Vn.overArgs=Hi,Vn.overEvery=ps,Vn.overSome=hs,Vn.partial=ji,Vn.partialRight=Ui,Vn.partition=Ci,Vn.pick=Hl,Vn.pickBy=jl,Vn.property=vs,Vn.propertyOf=function(e){return function(t){return null==e?n:Tr(e,t)}},Vn.pull=ei,Vn.pullAll=ti,Vn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,co(n,2)):e},Vn.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Gr(e,t,n,r):e},Vn.pullAt=ni,Vn.range=ms,Vn.rangeRight=gs,Vn.rearg=Vi,Vn.reject=function(e,t){return(Yi(e)?Rt:yr)(e,Fi(co(t,3)))},Vn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,a=[],o=e.length;for(t=co(t,3);++r<o;){var i=e[r];t(i,r,e)&&(n.push(i),a.push(r))}return Kr(e,a),n},Vn.rest=function(e,t){if("function"!=typeof e)throw new Pe(r);return Zr(e,t=t===n?t:gl(t))},Vn.reverse=ri,Vn.sampleSize=function(e,t,r){return t=(r?So(e,t,r):t===n)?1:gl(t),(Yi(e)?er:ea)(e,t)},Vn.set=function(e,t,n){return null==e?e:ta(e,t,n)},Vn.setWith=function(e,t,r,a){return a="function"==typeof a?a:n,null==e?e:ta(e,t,r,a)},Vn.shuffle=function(e){return(Yi(e)?tr:aa)(e)},Vn.slice=function(e,t,r){var a=null==e?0:e.length;return a?(r&&"number"!=typeof r&&So(e,t,r)?(t=0,r=a):(t=null==t?0:gl(t),r=r===n?a:gl(r)),oa(e,t,r)):[]},Vn.sortBy=Di,Vn.sortedUniq=function(e){return e&&e.length?ua(e):[]},Vn.sortedUniqBy=function(e,t){return e&&e.length?ua(e,co(t,2)):[]},Vn.split=function(e,t,r){return r&&"number"!=typeof r&&So(e,t,r)&&(t=r=n),(r=r===n?v:r>>>0)?(e=kl(e))&&("string"==typeof t||null!=t&&!sl(t))&&!(t=da(t))&&on(e)?xa(pn(e),0,r):e.split(t,r):[]},Vn.spread=function(e,t){if("function"!=typeof e)throw new Pe(r);return t=null==t?0:wn(gl(t),0),Zr((function(n){var r=n[t],a=xa(n,0,t);return r&&Mt(a,r),Et(e,this,a)}))},Vn.tail=function(e){var t=null==e?0:e.length;return t?oa(e,1,t):[]},Vn.take=function(e,t,r){return e&&e.length?oa(e,0,(t=r||t===n?1:gl(t))<0?0:t):[]},Vn.takeRight=function(e,t,r){var a=null==e?0:e.length;return a?oa(e,(t=a-(t=r||t===n?1:gl(t)))<0?0:t,a):[]},Vn.takeRightWhile=function(e,t){return e&&e.length?va(e,co(t,3),!1,!0):[]},Vn.takeWhile=function(e,t){return e&&e.length?va(e,co(t,3)):[]},Vn.tap=function(e,t){return t(e),e},Vn.throttle=function(e,t,n){var a=!0,o=!0;if("function"!=typeof e)throw new Pe(r);return rl(n)&&(a="leading"in n?!!n.leading:a,o="trailing"in n?!!n.trailing:o),Oi(e,t,{leading:a,maxWait:t,trailing:o})},Vn.thru=mi,Vn.toArray=vl,Vn.toPairs=Ul,Vn.toPairsIn=Vl,Vn.toPath=function(e){return Yi(e)?It(e,jo):dl(e)?[e]:Na(Ho(kl(e)))},Vn.toPlainObject=wl,Vn.transform=function(e,t,n){var r=Yi(e),a=r||Xi(e)||fl(e);if(t=co(t,4),null==n){var o=e&&e.constructor;n=a?r?new o:[]:rl(e)&&el(o)?Wn(Ye(e)):{}}return(a?_t:Sr)(e,(function(e,r,a){return t(n,e,r,a)})),n},Vn.unary=function(e){return Pi(e,1)},Vn.union=ai,Vn.unionBy=oi,Vn.unionWith=ii,Vn.uniq=function(e){return e&&e.length?fa(e):[]},Vn.uniqBy=function(e,t){return e&&e.length?fa(e,co(t,2)):[]},Vn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?fa(e,n,t):[]},Vn.unset=function(e,t){return null==e||pa(e,t)},Vn.unzip=li,Vn.unzipWith=si,Vn.update=function(e,t,n){return null==e?e:ha(e,t,wa(n))},Vn.updateWith=function(e,t,r,a){return a="function"==typeof a?a:n,null==e?e:ha(e,t,wa(r),a)},Vn.values=Wl,Vn.valuesIn=function(e){return null==e?[]:Xt(e,Ll(e))},Vn.without=ui,Vn.words=es,Vn.wrap=function(e,t){return ji(wa(t),e)},Vn.xor=ci,Vn.xorBy=di,Vn.xorWith=fi,Vn.zip=pi,Vn.zipObject=function(e,t){return ya(e||[],t||[],rr)},Vn.zipObjectDeep=function(e,t){return ya(e||[],t||[],ta)},Vn.zipWith=hi,Vn.entries=Ul,Vn.entriesIn=Vl,Vn.extend=xl,Vn.extendWith=El,cs(Vn,Vn),Vn.add=ws,Vn.attempt=ts,Vn.camelCase=Bl,Vn.capitalize=$l,Vn.ceil=ks,Vn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=bl(r))==r?r:0),t!==n&&(t=(t=bl(t))==t?t:0),ur(bl(e),t,r)},Vn.clone=function(e){return cr(e,4)},Vn.cloneDeep=function(e){return cr(e,5)},Vn.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:n)},Vn.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:n)},Vn.conformsTo=function(e,t){return null==t||dr(e,t,Ol(t))},Vn.deburr=ql,Vn.defaultTo=function(e,t){return null==e||e!=e?t:e},Vn.divide=Ss,Vn.endsWith=function(e,t,r){e=kl(e),t=da(t);var a=e.length,o=r=r===n?a:ur(gl(r),0,a);return(r-=t.length)>=0&&e.slice(r,o)==t},Vn.eq=Wi,Vn.escape=function(e){return(e=kl(e))&&Q.test(e)?e.replace(G,rn):e},Vn.escapeRegExp=function(e){return(e=kl(e))&&ae.test(e)?e.replace(re,"\\$&"):e},Vn.every=function(e,t,r){var a=Yi(e)?Dt:mr;return r&&So(e,t,r)&&(t=n),a(e,co(t,3))},Vn.find=bi,Vn.findIndex=qo,Vn.findKey=function(e,t){return Ft(e,co(t,3),Sr)},Vn.findLast=wi,Vn.findLastIndex=Yo,Vn.findLastKey=function(e,t){return Ft(e,co(t,3),xr)},Vn.floor=xs,Vn.forEach=ki,Vn.forEachRight=Si,Vn.forIn=function(e,t){return null==e?e:wr(e,co(t,3),Ll)},Vn.forInRight=function(e,t){return null==e?e:kr(e,co(t,3),Ll)},Vn.forOwn=function(e,t){return e&&Sr(e,co(t,3))},Vn.forOwnRight=function(e,t){return e&&xr(e,co(t,3))},Vn.get=Rl,Vn.gt=Bi,Vn.gte=$i,Vn.has=function(e,t){return null!=e&&yo(e,t,Rr)},Vn.hasIn=Pl,Vn.head=Ko,Vn.identity=is,Vn.includes=function(e,t,n,r){e=Ki(e)?e:Wl(e),n=n&&!r?gl(n):0;var a=e.length;return n<0&&(n=wn(a+n,0)),cl(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&jt(e,t,n)>-1},Vn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:gl(n);return a<0&&(a=wn(r+a,0)),jt(e,t,a)},Vn.inRange=function(e,t,r){return t=ml(t),r===n?(r=t,t=0):r=ml(r),function(e,t,n){return e>=kn(t,n)&&e<wn(t,n)}(e=bl(e),t,r)},Vn.invoke=Ml,Vn.isArguments=qi,Vn.isArray=Yi,Vn.isArrayBuffer=Gi,Vn.isArrayLike=Ki,Vn.isArrayLikeObject=Qi,Vn.isBoolean=function(e){return!0===e||!1===e||al(e)&&Cr(e)==b},Vn.isBuffer=Xi,Vn.isDate=Zi,Vn.isElement=function(e){return al(e)&&1===e.nodeType&&!ll(e)},Vn.isEmpty=function(e){if(null==e)return!0;if(Ki(e)&&(Yi(e)||"string"==typeof e||"function"==typeof e.splice||Xi(e)||fl(e)||qi(e)))return!e.length;var t=go(e);if(t==E||t==R)return!e.size;if(_o(e))return!Fr(e).length;for(var n in e)if(ze.call(e,n))return!1;return!0},Vn.isEqual=function(e,t){return Or(e,t)},Vn.isEqualWith=function(e,t,r){var a=(r="function"==typeof r?r:n)?r(e,t):n;return a===n?Or(e,t,n,r):!!a},Vn.isError=Ji,Vn.isFinite=function(e){return"number"==typeof e&&gn(e)},Vn.isFunction=el,Vn.isInteger=tl,Vn.isLength=nl,Vn.isMap=ol,Vn.isMatch=function(e,t){return e===t||Lr(e,t,po(t))},Vn.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,Lr(e,t,po(t),r)},Vn.isNaN=function(e){return il(e)&&e!=+e},Vn.isNative=function(e){if(To(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return zr(e)},Vn.isNil=function(e){return null==e},Vn.isNull=function(e){return null===e},Vn.isNumber=il,Vn.isObject=rl,Vn.isObjectLike=al,Vn.isPlainObject=ll,Vn.isRegExp=sl,Vn.isSafeInteger=function(e){return tl(e)&&e>=-9007199254740991&&e<=p},Vn.isSet=ul,Vn.isString=cl,Vn.isSymbol=dl,Vn.isTypedArray=fl,Vn.isUndefined=function(e){return e===n},Vn.isWeakMap=function(e){return al(e)&&go(e)==I},Vn.isWeakSet=function(e){return al(e)&&"[object WeakSet]"==Cr(e)},Vn.join=function(e,t){return null==e?"":yn.call(e,t)},Vn.kebabCase=Yl,Vn.last=Jo,Vn.lastIndexOf=function(e,t,r){var a=null==e?0:e.length;if(!a)return-1;var o=a;return r!==n&&(o=(o=gl(r))<0?wn(a+o,0):kn(o,a-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Ht(e,Vt,o,!0)},Vn.lowerCase=Gl,Vn.lowerFirst=Kl,Vn.lt=pl,Vn.lte=hl,Vn.max=function(e){return e&&e.length?gr(e,is,Dr):n},Vn.maxBy=function(e,t){return e&&e.length?gr(e,co(t,2),Dr):n},Vn.mean=function(e){return Wt(e,is)},Vn.meanBy=function(e,t){return Wt(e,co(t,2))},Vn.min=function(e){return e&&e.length?gr(e,is,jr):n},Vn.minBy=function(e,t){return e&&e.length?gr(e,co(t,2),jr):n},Vn.stubArray=ys,Vn.stubFalse=bs,Vn.stubObject=function(){return{}},Vn.stubString=function(){return""},Vn.stubTrue=function(){return!0},Vn.multiply=Ts,Vn.nth=function(e,t){return e&&e.length?$r(e,gl(t)):n},Vn.noConflict=function(){return ft._===this&&(ft._=Ue),this},Vn.noop=ds,Vn.now=Ri,Vn.pad=function(e,t,n){e=kl(e);var r=(t=gl(t))?fn(e):0;if(!t||r>=t)return e;var a=(t-r)/2;return qa(gt(a),n)+e+qa(mt(a),n)},Vn.padEnd=function(e,t,n){e=kl(e);var r=(t=gl(t))?fn(e):0;return t&&r<t?e+qa(t-r,n):e},Vn.padStart=function(e,t,n){e=kl(e);var r=(t=gl(t))?fn(e):0;return t&&r<t?qa(t-r,n)+e:e},Vn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),xn(kl(e).replace(oe,""),t||0)},Vn.random=function(e,t,r){if(r&&"boolean"!=typeof r&&So(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=ml(e),t===n?(t=e,e=0):t=ml(t)),e>t){var a=e;e=t,t=a}if(r||e%1||t%1){var o=En();return kn(e+o*(t-e+st("1e-"+((o+"").length-1))),t)}return Qr(e,t)},Vn.reduce=function(e,t,n){var r=Yi(e)?Ot:qt,a=arguments.length<3;return r(e,co(t,4),n,a,hr)},Vn.reduceRight=function(e,t,n){var r=Yi(e)?Lt:qt,a=arguments.length<3;return r(e,co(t,4),n,a,vr)},Vn.repeat=function(e,t,r){return t=(r?So(e,t,r):t===n)?1:gl(t),Xr(kl(e),t)},Vn.replace=function(){var e=arguments,t=kl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Vn.result=function(e,t,r){var a=-1,o=(t=ka(t,e)).length;for(o||(o=1,e=n);++a<o;){var i=null==e?n:e[jo(t[a])];i===n&&(a=o,i=r),e=el(i)?i.call(e):i}return e},Vn.round=_s,Vn.runInContext=e,Vn.sample=function(e){return(Yi(e)?Jn:Jr)(e)},Vn.size=function(e){if(null==e)return 0;if(Ki(e))return cl(e)?fn(e):e.length;var t=go(e);return t==E||t==R?e.size:Fr(e).length},Vn.snakeCase=Ql,Vn.some=function(e,t,r){var a=Yi(e)?zt:ia;return r&&So(e,t,r)&&(t=n),a(e,co(t,3))},Vn.sortedIndex=function(e,t){return la(e,t)},Vn.sortedIndexBy=function(e,t,n){return sa(e,t,co(n,2))},Vn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=la(e,t);if(r<n&&Wi(e[r],t))return r}return-1},Vn.sortedLastIndex=function(e,t){return la(e,t,!0)},Vn.sortedLastIndexBy=function(e,t,n){return sa(e,t,co(n,2),!0)},Vn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=la(e,t,!0)-1;if(Wi(e[n],t))return n}return-1},Vn.startCase=Xl,Vn.startsWith=function(e,t,n){return e=kl(e),n=null==n?0:ur(gl(n),0,e.length),t=da(t),e.slice(n,n+t.length)==t},Vn.subtract=Cs,Vn.sum=function(e){return e&&e.length?Yt(e,is):0},Vn.sumBy=function(e,t){return e&&e.length?Yt(e,co(t,2)):0},Vn.template=function(e,t,r){var a=Vn.templateSettings;r&&So(e,t,r)&&(t=n),e=kl(e),t=El({},t,a,eo);var o,i,l=El({},t.imports,a.imports,eo),s=Ol(l),u=Xt(l,s),c=0,d=t.interpolate||ke,f="__p += '",p=De((t.escape||ke).source+"|"+d.source+"|"+(d===J?pe:ke).source+"|"+(t.evaluate||ke).source+"|$","g"),h="//# sourceURL="+(ze.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++at+"]")+"\n";e.replace(p,(function(t,n,r,a,l,s){return r||(r=a),f+=e.slice(c,s).replace(Se,an),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),l&&(i=!0,f+="';\n"+l+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=s+t.length,t})),f+="';\n";var v=ze.call(t,"variable")&&t.variable;if(v){if(de.test(v))throw new Ee("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(i?f.replace(B,""):f).replace($,"$1").replace(q,"$1;"),f="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=ts((function(){return Te(s,h+"return "+f).apply(n,u)}));if(m.source=f,Ji(m))throw m;return m},Vn.times=function(e,t){if((e=gl(e))<1||e>p)return[];var n=v,r=kn(e,v);t=co(t),e-=v;for(var a=Gt(r,t);++n<e;)t(n);return a},Vn.toFinite=ml,Vn.toInteger=gl,Vn.toLength=yl,Vn.toLower=function(e){return kl(e).toLowerCase()},Vn.toNumber=bl,Vn.toSafeInteger=function(e){return e?ur(gl(e),-9007199254740991,p):0===e?e:0},Vn.toString=kl,Vn.toUpper=function(e){return kl(e).toUpperCase()},Vn.trim=function(e,t,r){if((e=kl(e))&&(r||t===n))return Kt(e);if(!e||!(t=da(t)))return e;var a=pn(e),o=pn(t);return xa(a,Jt(a,o),en(a,o)+1).join("")},Vn.trimEnd=function(e,t,r){if((e=kl(e))&&(r||t===n))return e.slice(0,hn(e)+1);if(!e||!(t=da(t)))return e;var a=pn(e);return xa(a,0,en(a,pn(t))+1).join("")},Vn.trimStart=function(e,t,r){if((e=kl(e))&&(r||t===n))return e.replace(oe,"");if(!e||!(t=da(t)))return e;var a=pn(e);return xa(a,Jt(a,pn(t))).join("")},Vn.truncate=function(e,t){var r=30,a="...";if(rl(t)){var o="separator"in t?t.separator:o;r="length"in t?gl(t.length):r,a="omission"in t?da(t.omission):a}var i=(e=kl(e)).length;if(on(e)){var l=pn(e);i=l.length}if(r>=i)return e;var s=r-fn(a);if(s<1)return a;var u=l?xa(l,0,s).join(""):e.slice(0,s);if(o===n)return u+a;if(l&&(s+=u.length-s),sl(o)){if(e.slice(s).search(o)){var c,d=u;for(o.global||(o=De(o.source,kl(he.exec(o))+"g")),o.lastIndex=0;c=o.exec(d);)var f=c.index;u=u.slice(0,f===n?s:f)}}else if(e.indexOf(da(o),s)!=s){var p=u.lastIndexOf(o);p>-1&&(u=u.slice(0,p))}return u+a},Vn.unescape=function(e){return(e=kl(e))&&K.test(e)?e.replace(Y,vn):e},Vn.uniqueId=function(e){var t=++Ae;return kl(e)+t},Vn.upperCase=Zl,Vn.upperFirst=Jl,Vn.each=ki,Vn.eachRight=Si,Vn.first=Ko,cs(Vn,(Es={},Sr(Vn,(function(e,t){ze.call(Vn.prototype,t)||(Es[t]=e)})),Es),{chain:!1}),Vn.VERSION="4.17.21",_t(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Vn[e].placeholder=Vn})),_t(["drop","take"],(function(e,t){qn.prototype[e]=function(r){r=r===n?1:wn(gl(r),0);var a=this.__filtered__&&!t?new qn(this):this.clone();return a.__filtered__?a.__takeCount__=kn(r,a.__takeCount__):a.__views__.push({size:kn(r,v),type:e+(a.__dir__<0?"Right":"")}),a},qn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),_t(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;qn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:co(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),_t(["head","last"],(function(e,t){var n="take"+(t?"Right":"");qn.prototype[e]=function(){return this[n](1).value()[0]}})),_t(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");qn.prototype[e]=function(){return this.__filtered__?new qn(this):this[n](1)}})),qn.prototype.compact=function(){return this.filter(is)},qn.prototype.find=function(e){return this.filter(e).head()},qn.prototype.findLast=function(e){return this.reverse().find(e)},qn.prototype.invokeMap=Zr((function(e,t){return"function"==typeof e?new qn(this):this.map((function(n){return Ir(n,e,t)}))})),qn.prototype.reject=function(e){return this.filter(Fi(co(e)))},qn.prototype.slice=function(e,t){e=gl(e);var r=this;return r.__filtered__&&(e>0||t<0)?new qn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=gl(t))<0?r.dropRight(-t):r.take(t-e)),r)},qn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},qn.prototype.toArray=function(){return this.take(v)},Sr(qn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),o=Vn[a?"take"+("last"==t?"Right":""):t],i=a||/^find/.test(t);o&&(Vn.prototype[t]=function(){var t=this.__wrapped__,l=a?[1]:arguments,s=t instanceof qn,u=l[0],c=s||Yi(t),d=function(e){var t=o.apply(Vn,Mt([e],l));return a&&f?t[0]:t};c&&r&&"function"==typeof u&&1!=u.length&&(s=c=!1);var f=this.__chain__,p=!!this.__actions__.length,h=i&&!f,v=s&&!p;if(!i&&c){t=v?t:new qn(this);var m=e.apply(t,l);return m.__actions__.push({func:mi,args:[d],thisArg:n}),new $n(m,f)}return h&&v?e.apply(this,l):(m=this.thru(d),h?a?m.value()[0]:m.value():m)})})),_t(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ne[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Vn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var a=this.value();return t.apply(Yi(a)?a:[],e)}return this[n]((function(n){return t.apply(Yi(n)?n:[],e)}))}})),Sr(qn.prototype,(function(e,t){var n=Vn[t];if(n){var r=n.name+"";ze.call(Mn,r)||(Mn[r]=[]),Mn[r].push({name:t,func:n})}})),Mn[Va(n,2).name]=[{name:"wrapper",func:n}],qn.prototype.clone=function(){var e=new qn(this.__wrapped__);return e.__actions__=Na(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Na(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Na(this.__views__),e},qn.prototype.reverse=function(){if(this.__filtered__){var e=new qn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},qn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Yi(e),r=t<0,a=n?e.length:0,o=function(e,t,n){var r=-1,a=n.length;for(;++r<a;){var o=n[r],i=o.size;switch(o.type){case"drop":e+=i;break;case"dropRight":t-=i;break;case"take":t=kn(t,e+i);break;case"takeRight":e=wn(e,t-i)}}return{start:e,end:t}}(0,a,this.__views__),i=o.start,l=o.end,s=l-i,u=r?l:i-1,c=this.__iteratees__,d=c.length,f=0,p=kn(s,this.__takeCount__);if(!n||!r&&a==s&&p==s)return ma(e,this.__actions__);var h=[];e:for(;s--&&f<p;){for(var v=-1,m=e[u+=t];++v<d;){var g=c[v],y=g.iteratee,b=g.type,w=y(m);if(2==b)m=w;else if(!w){if(1==b)continue e;break e}}h[f++]=m}return h},Vn.prototype.at=gi,Vn.prototype.chain=function(){return vi(this)},Vn.prototype.commit=function(){return new $n(this.value(),this.__chain__)},Vn.prototype.next=function(){this.__values__===n&&(this.__values__=vl(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Vn.prototype.plant=function(e){for(var t,r=this;r instanceof Bn;){var a=Vo(r);a.__index__=0,a.__values__=n,t?o.__wrapped__=a:t=a;var o=a;r=r.__wrapped__}return o.__wrapped__=e,t},Vn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof qn){var t=e;return this.__actions__.length&&(t=new qn(this)),(t=t.reverse()).__actions__.push({func:mi,args:[ri],thisArg:n}),new $n(t,this.__chain__)}return this.thru(ri)},Vn.prototype.toJSON=Vn.prototype.valueOf=Vn.prototype.value=function(){return ma(this.__wrapped__,this.__actions__)},Vn.prototype.first=Vn.prototype.head,tt&&(Vn.prototype[tt]=function(){return this}),Vn}();ht?((ht.exports=mn)._=mn,pt._=mn):ft._=mn}).call(i)}(Bl,Bl.exports);var $l="object"==typeof i&&i&&i.Object===Object&&i,ql="object"==typeof self&&self&&self.Object===Object&&self,Yl=($l||ql||Function("return this")()).Symbol;Yl&&Yl.toStringTag;Yl&&Yl.toStringTag,Function.prototype.toString.call(Object);const Gl=()=>"undefined"==typeof window?{}:Builder.settings.context||Builder.settings;async function Kl(e,t={credentials:"include"}){var n={"Content-Type":"application/json"},r=function(){try{var e=Gl(),t=e.tenantId,n=e.authToken;return t&&n?`Bearer ${t},`+n:null}catch(e){console.error(e)}}();if(401===(r=(r&&(n.Authorization=r),t.headers=Object.assign({},n,t.headers),t.credentials="include",await fetch(""+function(e){return Gl().rootUrl||("undefined"!=typeof window?window.localStorage.getItem("steedos:rootUrl"):"")||e}()+e,t))).status)throw new Error(401);if((n=await r.json()).errors)throw console.error(n.errors),new Error("Failed to fetch API");return n}async function Ql(e,t){0!=t&&(t=!0);let n=["_id"],r=[];for(const a of Bl.exports.isArray(e)?e:Bl.exports.values(e))a.name.indexOf(".")<0&&(!t||"lookup"!=a.type&&"master_detail"!=a.type?n.push(a.alias?a.alias+":"+a.name:a.name):(n.push(""+a.name),r.push(""+a.name)),Bl.exports.includes(["time","date","datetime","boolean","number","currency"],a.type)&&n.push(""+a.name),Bl.exports.includes(["time","filesize","date","datetime","boolean","number","currency","select","file","image","avatar","formula","summary"],a.type)&&r.push(""+a.name));return r=Bl.exports.uniq(r),n=Bl.exports.uniq(n),0<r.length?`${n.join(",")},_display:_ui{${r.join(",")}}`:""+n.join(" ")}async function Xl(e,t,n,r){var a=r.limit||10;let o=`(top: ${a})`,i=(t&&(o=`(filters:["_id", "=", "${t}"], top: ${a})`),"data");return r&&(r.alias&&(i=r.alias),r.filters&&(o=`(filters:${r.filters})`),r.queryOptions&&(o=`(${r.queryOptions})`)),t="",e.enable_tree&&Bl.exports.includes(Bl.exports.keys(e.fields),"parent")&&Bl.exports.includes(Bl.exports.keys(e.fields),"children")&&(t=",parent,children"),a="","cms_files"===e.name&&(a=",versions"),{orderBy:"${orderBy}",orderDir:"${orderDir}",pageNo:"${page}",pageSize:"${perPage}",query:`{${i}:${e.name}${o}{${await Ql(n,r.expand)}${t}${a}},count:${e.name}__count(filters:{__filters})}`}}function Zl(e){if(!e)return"${context.rootUrl}/graphql"}const Jl={getAppPath:({appId:e})=>"/app/"+e,getPagePath(){},getObjectListViewPath:({appId:e,objectName:t,listViewName:n})=>`/app/${e}/${t}/grid/`+n,getObjectDetailPath(e){var{appId:e,objectName:t,recordId:n}=e;return"instances"===t?"/workflow/space/${context.tenantId}/${listName}/"+n:`/app/${e}/${t}/view/`+n},getObjectRelatedViewPath:({appId:e,masterObjectName:t,masterRecordId:n,objectName:r,foreignKey:a})=>`/app/${e}/${t}/${n}/${r}/grid?related_field_name=`+a};function es(e){return`<div><a href='${Jl.getObjectDetailPath({formFactor:e,appId:"admin",objectName:"users",recordId:"${created_by._id}"})}'>\${_display.created_by.label}</a>\${_display.created}</div>`}function ts(e){return`<div><a href='${Jl.getObjectDetailPath({formFactor:e,appId:"admin",objectName:"users",recordId:"${modified_by._id}"})}'>\${_display.modified_by.label}</a>\${_display.modified}</div>`}function ns(e){return`<div>\${_display.${e.name}}</div>`}function rs(e){return`<div>\${_display.${e.name}}</div>`}function as(e){return`<div>\${_display.${e.name}}</div>`}function os(e){return`<div>\${_display.${e.name}}</div>`}function is(e,t){return"cms_files"===t.objectName?"${context.rootUrl}/api/files/files/${versions[0]}?download=true":Jl.getObjectDetailPath({...t,formFactor:t.formFactor,appId:"${appId}",objectName:t.objectName||"${objectName}",recordId:`\${${t.idFieldName}}`})}function ls(e,t){let n="";if(!e.reference_to&&(e.optionsFunction||e._optionsFunction))return`\${${e.name}__label}`;var r=t.onlyDisplayLabel;if(_.isString(e.reference_to)||!e.reference_to)if(e.multiple){let a="<%=item.label%>";r||(a=`<a href="${Jl.getObjectDetailPath({formFactor:t.formFactor,appId:t.appId,objectName:"<%=item.objectName%>",recordId:"<%=item.value%>"})}"><%=item.label%></a>`),n=`\n <% if (data._display.${e.name} && data._display.${e.name}.length) { %><% data._display.${e.name}.forEach(function(item) { %> ${a} <% }); %><% } %>\n `}else{let a=`\${_display.${e.name}.label}`;r||(a=`<a href="${Jl.getObjectDetailPath({formFactor:t.formFactor,appId:t.appId,objectName:`\${_display.${e.name}.objectName}`,recordId:`\${_display.${e.name}.value}`})}">\${_display.${e.name}.label}</a>`),n=a}else{let a="<%=item.label%>";r||(a=`<a href="${Jl.getObjectDetailPath({formFactor:t.formFactor,appId:t.appId,objectName:"<%=item.objectName%>",recordId:"<%=item.value%>"})}"><%=item.label%></a>`),n=`\n <% if (data._display.${e.name} && data._display.${e.name}.length) { %><% data._display.${e.name}.forEach(function(item) { %> ${a} <% }); %><% } %>\n `}return n}async function ss(e,t){var n,r;return e.reference_to?(n=await async function(e){return(await Bs(e.reference_to)).NAME_FIELD_KEY||"name"}(e),e.multiple?(r=Jl.getObjectDetailPath({formFactor:t.formFactor,appId:t.appId,objectName:e.reference_to,recordId:"<%=item._id%>"}),`\n <% if (data.${e.name} && data.${e.name}.length) { %><% data.${e.name}.forEach(function(item) { %> <a href="${r}"><%=item.${n}%></a> <% }); %><% } %>\n `):`<a href="${Jl.getObjectDetailPath({formFactor:t.formFactor,appId:t.appId,objectName:e.reference_to,recordId:`\${${e.name}._id}`})}">\${${e.name}.${n}}</a>`):os(e)}function us(e){return`<% if (data.${e.name}) { %>\n <span class="slds-icon_container slds-icon-utility-check slds-current-color" title="<%=data._display.${e.name}%>">\n <span ><%= data._display.${e.name} === "√" ? "<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor' class='w-4 h-4'><path stroke-linecap='round' stroke-linejoin='round' d='M4.5 12.75l6 6 9-13.5' /></svg>" : data._display.${e.name} %></span>\n </span>\n <% } %>`}function cs(e){return`<% if (data.${e.name}) { %>\n <span>······</span>\n <% } %>`}async function ds(e,t){if((e.is_name||e.name===t.labelFieldName)&&!t.onlyDisplayLabel)return function(e,t){return`<a href="${is(0,t)}">\${${e.name}}</a>`}(e,t);switch(e.type){case"password":return cs(e);case"boolean":case"toggle":return us(e);case"select":return os(e);case"time":case"formula":case"summary":case"filesize":return function(e){return`<div>\${_display.${e.name}}</div>`}(e);case"date":return rs(e);case"datetime":return as(e);case"lookup":case"master_detail":return ls(e,t);case"number":case"currency":return ns(e)}}function fs(e){return{perPage:e.top||e.perPage||10}}async function ps(e,t){return e=(await async function(e,t){var n=[];for(const a of e){var r=await ds(a,t);let e=r?"tpl":"text";a.hidden||a.extra||n.push({name:a.name,label:a.label,sortable:a.sortable,width:a.width,type:e,tpl:r,toggled:a.toggled})}return{type:"hbox",columns:n}}(e,t)).columns,{mode:"list",name:"thelist",draggable:!1,headerToolbar:["reload"],defaultParams:fs(t),syncLocation:!1,keepItemSelectionOnPageChange:!0,checkOnItemClick:!1,labelTpl:"${name}",listItem:{body:[...e],actions:!1===t.actions?null:[{icon:"fa fa-eye",label:"查看",type:"button",actionType:"link",link:Jl.getObjectDetailPath({formFactor:t.formFactor,appId:t.appId,objectName:t.tabId,listView:t.listView,recordId:"${_id}"})}]}}}var hs={newRecordMode:"modal",editRecordMode:"modal",perPage:20};async function vs(e,t,n){var r=Bl.exports.keys(e.fields);r=Bl.exports.sortBy(Bl.exports.compact(Bl.exports.map(r,(t=>e.fields[t]))),"sort_no");return await async function(e,t,n){return n=n||{},t=await async function(e,t,n){n=n||{};var r,a,o=[];for(r of t)Bl.exports.includes(["grid","avatar","image","object","[object]","[Object]","[grid]","[text]","audio","file"],r.type)||(delete r.defaultValue,delete r.required,delete r.is_wide,delete r.readonly,delete r.hidden,delete r.omit,(a=await js(r,t,n))&&o.push(a));return Bl.exports.map(o,"name"),n.enableSearchableFieldsVisibleOn&&o.forEach((function(e){e.visibleOn=`this.filterFormSearchableFields && this.filterFormSearchableFields.indexOf("${e.fieldName}") > -1`})),{title:"",type:"form",name:"listview-filter-form",id:"listview_filter_form_"+e.name,mode:"normal",wrapWithPanel:!1,className:"sm:grid sm:gap-2 sm:grid-cols-4 mb-2",data:{"&":"${filterFormValues || {}}",...n.initData},body:o}}(e,t,Object.assign({},{enableSearchableFieldsVisibleOn:!0},n)),{type:"service",name:"service_listview_filter_form",data:{},id:"service_listview_filter_form_"+e.name,dataProvider:{inited:'\n const objectName = data.objectName;\n const isLookup = data.isLookup;\n const listViewId = data.listViewId;\n let searchableFieldsStoreKey = location.pathname + "/searchable_fields/";\n if(isLookup){\n searchableFieldsStoreKey += "lookup/" + objectName;\n }\n else{\n searchableFieldsStoreKey += listViewId;\n }\n let defaultSearchableFields = localStorage.getItem(searchableFieldsStoreKey);\n if(!defaultSearchableFields && data.uiSchema){\n let listView = data.uiSchema.list_views[data.listName];\n defaultSearchableFields = listView && listView.searchable_fields;\n if(defaultSearchableFields && defaultSearchableFields.length){\n defaultSearchableFields = _.map(defaultSearchableFields, \'field\');\n }\n }\n if(_.isEmpty(defaultSearchableFields) && data.uiSchema){\n defaultSearchableFields = _.map(\n _.filter(_.values(data.uiSchema.fields), (field) => {\n return field.searchable;\n }),\n "name"\n );\n }\n setData({ filterFormSearchableFields: defaultSearchableFields });\n if(isLookup){\n // looup字段过滤器不在本地缓存记住过滤条件,所以初始始终隐藏过滤器\n setData({ showFieldsFilter: false });\n }\n else{\n const listViewPropsStoreKey = location.pathname + "/crud/" + data.listViewId ;\n let localListViewProps = localStorage.getItem(listViewPropsStoreKey);\n if(localListViewProps){\n localListViewProps = JSON.parse(localListViewProps);\n let filterFormValues = _.pickBy(localListViewProps, function(n,k){\n return /^__searchable__/g.test(k);\n });\n if(!_.isEmpty(filterFormValues)){\n setData({ filterFormValues });\n const omitedEmptyFormValue = _.omitBy(filterFormValues, function(n){\n return _.isNil(n) \n || (_.isObject(n) && _.isEmpty(n)) \n || (_.isArray(n) && _.isEmpty(n.filter(function(item){return !_.isNil(item)})))\n || (_.isString(n) && n.length === 0);\n });\n // 有过滤条件时自动展开搜索栏\n if(!_.isEmpty(omitedEmptyFormValue)){\n setData({ showFieldsFilter: true });\n }\n }\n }\n }\n '},body:{type:"wrapper",body:{type:"wrapper",body:[{type:"wrapper",body:[t],size:"xs",visibleOn:"this.filterFormSearchableFields && this.filterFormSearchableFields.length",className:"slds-filters__body p-0"},{type:"wrapper",body:{type:"wrapper",body:[{type:"button",label:"搜索",icon:"fa fa-search",visibleOn:"this.filterFormSearchableFields && this.filterFormSearchableFields.length",onEvent:{click:{actions:[{actionType:"custom",script:'\n const scope = event.context.scoped;\n var filterForm = scope.getComponents().find(function(n){\n return n.props.type === "form";\n });\n var filterFormValues = filterForm.getValues();\n var listView = scope.parent.parent.parent.getComponents().find(function(n){\n return n.props.type === "crud";\n });\n const removedValues = {};\n // 设置搜索项中移除搜索项后,filterFormValues未把其字段的空值保存为own property,即hasOwnProperty属性中\n // 这会造成handleFilterSubmit时把移除掉的搜索项字段之前的值加到过滤条件中\n for(var k in filterFormValues){\n if(filterFormValues[k] === "" && !filterFormValues.hasOwnProperty(k)){\n removedValues[k] = "";\n }\n }\n listView.handleFilterSubmit(Object.assign({}, removedValues, filterFormValues));\n '}]}}},{type:"button",label:"设置搜索项",onEvent:{click:{actions:[{actionType:"dialog",dialog:{type:"dialog",size:"md",title:"设置搜索项",body:[{type:"form",title:"",body:[{label:"",type:"transfer",name:"fields",id:"u:92c0b3cccca0",source:{method:"get",url:"${context.rootUrl}/service/api/amis-metadata-objects/objects/${objectName}/fields/options",dataType:"json",headers:{Authorization:"Bearer ${context.tenantId},${context.authToken}"},data:null,requestAdaptor:"",adaptor:""},options:[],required:!0,placeholder:"-",className:"col-span-2 m-0",checkAll:!1,searchable:!0,sortable:!0,joinValues:!1,extractValue:!0,multiple:!0}],id:"u:e5ac506d5683",mode:"normal",persistData:!1,promptPageLeave:!0,name:"form",debug:!1,actions:[],panelClassName:"m-0",bodyClassName:"p-4",className:"steedos-amis-form"}],id:"u:ca99fa9fe1b1",actions:[{type:"button",label:"取消",onEvent:{click:{actions:[{componentId:"",args:{},actionType:"closeDialog"}]}},id:"u:4e447b5ca72a"},{type:"button",label:"确认",onEvent:{click:{actions:[{actionType:"custom",script:'\n const data = context.props.data;\n const listName = data.listName;\n const objectName = data.objectName;\n const isLookup = data.isLookup;\n const listViewId = data.listViewId;\n const value = data.fields;\n const scope = event.context.scoped;\n // 这里的filterForm不是name为"listview-filter-form"的内部form,而是crud自带的filter form\n const filterForm = scope.parent.parent.getComponents().find(function(n){\n return n.props.type === "form";\n });\n const filterService = filterForm.context.getComponents().find(function(n){\n return n.props.type === "service";\n });\n filterService.setData({ filterFormSearchableFields: value });\n let searchableFieldsStoreKey = location.pathname + "/searchable_fields/";\n if(isLookup){\n searchableFieldsStoreKey += "lookup/" + objectName;\n }\n else{\n searchableFieldsStoreKey += listViewId;\n }\n localStorage.setItem(searchableFieldsStoreKey, value);\n\n // ===START===:当变更可搜索字段时,如果被移除的可搜索字段在本地存储中已经存入过滤条件中则应该清除本地存储中相关字段的过滤条件。\n const searchableFields = data.fields;\n let preSearchableFields = data.__super.fields;\n if(typeof preSearchableFields === "string"){\n preSearchableFields = preSearchableFields.split(",");\n }\n const removedFields = _.difference(preSearchableFields, searchableFields);\n\n // const getClosestAmisComponentByType = function (scope, type, name) {\n // // 递归children找到listview-filter-form\n // let re = scope.getComponents().find(function (n) {\n // return n.props.type === type && n.props.name === name;\n // });\n // if (re) {\n // return re;\n // }\n // else {\n // if (scope.children && scope.children.length) {\n // for (let i = 0; i < scope.children.length; i++) {\n // re = getClosestAmisComponentByType(scope.children[i], type, name);\n // if (re) {\n // break;\n // }\n // }\n // return re;\n // }\n \n // }\n // }\n // // 这里第二层form才是真正要提交到crud过滤条件的form\n // filterInnerForm = getClosestAmisComponentByType(filterForm.context, "form", "listview-filter-form");\n\n const filterFormValues = filterForm.getValues();\n let removedKeys = [];\n _.each(filterFormValues, function(n,k){\n // __searchable__开头的不在searchableFields范围则清除其值\n let isRemoved = !!removedFields.find(function(fieldName){\n return new RegExp("__searchable__.*" + fieldName + "$").test(k);\n });\n if(isRemoved){\n removedKeys.push(k);\n }\n });\n const removedValues = {};\n removedKeys.forEach(function(key){\n removedValues[key] = "";\n });\n filterForm.setValues(removedValues);//这里使用filterInnerForm也可以\n\n if(isLookup){\n return;\n }\n \n // 列表视图crud支持本地缓存,所以需要进一步清除浏览器本地缓存里面用户在可搜索项中移除的字段值\n const listViewPropsStoreKey = location.pathname + "/crud/" + listViewId ;\n let localListViewProps = localStorage.getItem(listViewPropsStoreKey);\n if(localListViewProps){\n localListViewProps = JSON.parse(localListViewProps);\n // const removedValues = {};\n removedKeys.forEach(function(key){\n delete localListViewProps[key];\n // removedValues[key] = "";\n });\n localStorage.setItem(listViewPropsStoreKey, JSON.stringify(localListViewProps));\n }\n // ===END===\n '},{componentId:"",args:{},actionType:"closeDrawer"}]}},id:"u:14e7388fecd3",level:"primary"}],closeOnEsc:!1,closeOnOutside:!1,showCloseButton:!0,data:{"&":"$$",objectName:"${objectName}",listName:"${listName}",listViewId:"${listViewId}",uiSchema:"${uiSchema}",isLookup:"${isLookup}",context:"${context}",fields:"${filterFormSearchableFields}"}}}]}},id:"u:b96d84868a5a",level:"link"}],size:"xs",className:"space-x-4"},size:"xs",className:"slds-filters__footer slds-grid slds-shrink-none flex justify-between p-0"}],size:"xs",className:"slds-filters"},size:"xs",className:"border-gray-300 border-y slds-grid slds-grid_vertical slds-nowrap "+(!n.isLookup&&"mt-2"),visibleOn:"this.showFieldsFilter"},className:"bg-white"}}(e,r,n)}const ms=["text","date","file","avatar","image","datetime","time","number","currency","percent","password","url","email"];function gs(e,t,n){return t?Bl.exports.includes(["text","image"],e)?"image"===e&&n&&n.multiple?"static-images":"static-"+e:"static":Bl.exports.includes(ms,e)?"input-"+e:e}const ys=(e,t)=>gs("avatar"===e.type?"image":e.type,t,{multiple:e.multiple}),bs=e=>{var t=e.type,n=ys(e,!0);return _.includes(["avatar","image"],t)?{type:n,defaultImage:"",enlargeAble:!0,showToolbar:!0}:"file"===t?{type:n,tpl:`\n <% let fileData = data.${e.name}; if (fileData) { %>\n <% if(!Array.isArray(fileData)){ fileData = [fileData]} %>\n <% fileData.forEach(function(item) { %> \n <a href='<%= item.url %>' target='_self' class='block'><%= item.name %></a> \n <% });} %>`}:void 0},ws=e=>{var t=(e=>{switch(e.type){case"avatar":return"avatars";case"image":return"images";case"file":return"files"}})(e);t={type:ys(e,!1),useChunk:!1,receiver:{method:"post",url:"${context.rootUrl}/s3/"+t,data:{$:"$$",context:"${context}"},adaptor:`\n const { context } = api.body; \n var rootUrl = context.rootUrl + "/api/files/${t}/";\n payload = {\n status: response.status == 200 ? 0 : response.status,\n msg: response.statusText,\n data: {\n value: payload._id,\n name: payload.original.name,\n url: rootUrl + payload._id,\n }\n }\n return payload;\n `,headers:{Authorization:"Bearer ${context.tenantId},${context.authToken}"}}};return e.multiple&&(t.multiple=!0,t.joinValues=!1,t.extractValue=!0),t},ks=(e,t)=>(t?bs:ws)(e);function Ss(e){return{perPage:e.top||e.perPage||hs.perPage}}function xs(e){let t=e.visible;return e._visible&&(t=e._visible),(t=Bl.exports.isBoolean(t)?t.toString():t)?t.trim().startsWith("function")?t+"(objectName, _id, recordPermissions, data)":t:"amis_button"===e.type&&(e=e.amis_schema)&&e.body&&0<e.body.length?e.body[0].visibleOn:void 0}async function Es(e,t){let n=[];return"SMALL"===(t=t||{}).formFactor?n=await async function(e,t){var n=[];let r={};var a=[];for(const n of e){let e="";e=(e=n.is_name||n.name===t.labelFieldName?(r=n,t.onlyDisplayLabel=!0,await ds(n,t)):"avatar"===n.type||"image"===n.type||"file"===n.type?`\${_display.${n.name}.name}`:("lookup"!==n.type&&"master_detail"!==n.type||(t.onlyDisplayLabel=!0),await ds(n,t)))||`\${${n.name}}`,n.hidden||n.extra||a.push({field:n,tpl:e})}e=is(0,t);var o=function(e){let t=[],n=[],r=!1,a=!0,o="",i="flex items-center justify-between";return e.forEach((function(e){r&&t.length<2&&(t.push({type:"wrapper",body:n,size:"none",className:i}),n=[]),a?(o="steedos-listview-item-left truncate",e.field.is_wide&&(o="steedos-listview-item-wide truncate")):o="steedos-listview-item-right truncate ml-2 flex flex-shrink-0",n.push({type:"tpl",tpl:e.tpl,className:o}),r=a=!!e.field.is_wide||!a})),n.length&&t.length<2&&t.push({type:"wrapper",body:n,size:"none",className:i}),t}(a);return n.push({name:r.name,label:r.label,sortable:r.sortable,type:"button",level:"link",actionType:"link",link:e,innerClassName:"steedos-listview-item block hover:bg-gray-50 text-gray-500",body:{type:"wrapper",body:o,size:"none",className:"p-2"}}),n}(e,t):(n=await async function(e,t){var n=[{name:"_index",type:"text",width:32,placeholder:""}];for(const a of e)if(!a.is_name&&a.name!==t.labelFieldName||"cms_files"!==t.objectName)if("toggle"===a.type)n.push({type:"switch",name:a.name,label:a.label,width:a.width,toggled:a.toggled,disabled:!0,className:"whitespace-nowrap"});else if("avatar"===a.type||"image"===a.type||"file"===a.type)n.push({type:"switch",name:a.name,label:a.label,width:a.width,toggled:a.toggled,disabled:!0,className:"whitespace-nowrap",...bs(a)});else{var r=await ds(a,t);let e="text";r?e="tpl":"html"===a.type&&(e="markdown"),a.hidden||a.extra||n.push({name:a.name,label:a.label,sortable:a.sortable,width:a.width,type:e,tpl:r,toggled:a.toggled,className:"textarea"===a.type?"min-w-56 whitespace-pre-wrap textarea":"whitespace-nowrap",html:"html"===a.type||null})}else r=`\n var data = event.data;\n var file_name = data.versions ? data.name : "${a.label}";\n var file_id = data._id;\n SteedosUI.previewFile && SteedosUI.previewFile({file_name, file_id});\n `,n.push({type:"button",label:`<%=data.versions ? data.name : "${a.label}"%>`,className:"whitespace-nowrap",level:"link",onEvent:{click:{actions:[{args:{api:{url:"${context.rootUrl}/api/files/files/${versions[0]}?download=true",method:"get",headers:{Authorization:"Bearer ${context.tenantId},${context.authToken}"}}},actionType:"download",expression:"!!!window?.nw?.require"},{args:{},actionType:"custom",script:r,expression:"!!window?.nw?.require"}]}}});return n}(e,t)).push(await async function(e){e=e.buttons;const t=[];if(Bl.exports.each(e,(e=>{Bl.exports.isBoolean(e.visible)&&(e.visible=e.visible.toString()),t.push({type:"steedos-object-button",name:e.name,objectName:e.objectName,visibleOn:xs(e),className:"antd-Button--default"})})),!(t.length<1))return{type:"operation",label:"操作",fixed:"right",labelClassName:"text-center",className:"text-center steedos-listview-operation w-20",buttons:[{type:"steedos-dropdown-button",label:"xxx",buttons:t,placement:"bottomRight",overlayClassName:"shadow !min-w-[160px]",trigger:["click"],id:"u:c2140a365019",onOpenApi:{url:"${context.rootUrl}/service/api/@${objectName}/recordPermissions/${_id}",method:"get",data:{$:"$$",objectName:"${objectName}",listViewId:"${listViewId}",appId:"${appId}",formFactor:"${formFactor}",context:"${context}"},responseData:{recordPermissions:"$$"},headers:{Authorization:"Bearer ${context.tenantId},${context.authToken}"},adaptor:"\n payload.recordPermissions = payload;\n return payload;\n "}}]}}(t)),{mode:"table",name:"thelist",headerToolbarClassName:"py-2 px-2 border-gray-300 bg-gray-100 border-solid border-b",className:"",draggable:!1,defaultParams:Ss(t),columns:n,syncLocation:!1,keepItemSelectionOnPageChange:!0,checkOnItemClick:!1,labelTpl:`\${${t.labelFieldName}}`,autoFillHeight:!1,columnsTogglable:!1}}async function Ts(e,t){var n,r=await Xl({name:"organizations"},null,[{name:"_id",alias:"value"},{name:"name",alias:"label"},{name:"children"}],{alias:"leftOptions",filters:"{__filters}"});(n=((n=(r.query=r.query.replace(/,count\:.+/,"}"),await Xl({name:"organizations"},null,[{name:"_id",alias:"ref"}],{alias:"children",filters:"{__filters}"}))).query=n.query.replace(/,count\:.+/,"}"),r.query=r.query.replace(/}$/,","+n.query.replace(/{(.+)}/,"$1}")),await Xl({name:"space_users"},null,[{name:"user"},{name:"name"}],{alias:"defaultValueOptions",filters:"{__options_filters}"}))).query=n.query.replace(/,count\:.+/,"}"),r.query=r.query.replace(/}$/,","+n.query.replace(/{(.+)}/,"$1}"));let a=""+e.name;return t.fieldNamePrefix&&(a=""+t.fieldNamePrefix+e.name),r.$value="$"+a,r.__selectUserLoaded__="${__selectUserLoaded__}",n=`\n console.log("select user field '${e.name}' requestAdaptor api:", api);\n var filters = [['parent', '=', null]];\n api.data.query = api.data.query.replace(/{__filters}/g, JSON.stringify(filters));\n var defaultValue = api.data.$value;\n var optionsFiltersOp = "${e.multiple?"in":"="}";\n var optionsFilters = [["user", optionsFiltersOp, []]];\n if (defaultValue) { \n optionsFilters = [["user", optionsFiltersOp, defaultValue]];\n }\n api.data.query = api.data.query.replace(/{__options_filters}/g, JSON.stringify(optionsFilters));\n return api;\n `,{method:"post",url:Zl()+`?value=\${${e.multiple?a+"|join":a}}`,requestAdaptor:n,adaptor:"\n const data = payload.data;\n data.children = data.children.map(function (child) { \n // child.defer = !!(child.children && child.children.length);\n child.defer = true;\n delete child.children;\n return child;\n });\n data.leftOptions = data.leftOptions.map(function (leftOption) {\n leftOption.defer = !!(leftOption.children && leftOption.children.length);\n delete leftOption.children;\n return leftOption;\n });\n var defaultValueOptions = data.defaultValueOptions;\n data.children = _.union(data.children, defaultValueOptions);\n delete data.defaultValueOptions;\n payload.data = { options: [data] };\n return payload;\n ",data:r,sendOn:"!this.__selectUserLoaded__",headers:{Authorization:"Bearer ${context.tenantId},${context.authToken}"}}}async function _s(e,t){var n=await Xl({name:"{__object_name}"},null,[],{alias:"options",queryOptions:'filters: {__filters}, sort: "{__sort}"'});let r=e.filters;return"function"==typeof(r="string"==typeof r?(r=new Function("return "+r))():r)&&(r=r(e)),n.query=n.query.replace(/,count\:.+/,"}"),n.query=n.query.replace("{_id}","{{__fields}}"),e=`\n var dep = api.query.dep;\n var ref = api.query.ref;\n var term = api.query.term;\n var filters;\n var objectName;\n var fields;\n var sort = "";\n if (dep) {\n objectName = "organizations";\n fields = "value:_id,label:name,children";\n filters = [['parent', '=', dep]];\n sort = "${t.orgsSort}";\n }\n else if (ref) { \n objectName = "space_users";\n // 这里要额外把字段转为value和label是因为valueField和labelField在deferApi/searchApi中不生效,所以字段要取两次\n fields = "user,name,value:user,label:name";\n filters = [['user_accepted', '=', true]];\n var defaultFilters = ${r&&JSON.stringify(r)};\n if(defaultFilters){\n filters.push(defaultFilters);\n }\n filters.push(['organizations_parents', '=', ref]);\n sort = "${t.usersSort}";\n }\n api.data.query = api.data.query.replace(/{__object_name}/g, objectName).replace(/{__fields}/g, fields).replace(/{__filters}/g, JSON.stringify(filters)).replace('{__sort}', sort.trim());\n return api;\n `,{method:"post",url:Zl()+"?ref=${ref}&dep=${value}",requestAdaptor:e,adaptor:"\n if (api.query.dep) {\n // 展开组织时才需要根据children值设置defer属性\n const data = payload.data;\n data.options = data.options.map(function (option) {\n option.defer = !!(option.children && option.children.length);\n delete option.children;\n return option;\n });\n payload.data = data;\n }\n return payload;\n ",data:n,headers:{Authorization:"Bearer ${context.tenantId},${context.authToken}"}}}async function Cs(e,t){var n=await Xl({name:"space_users"},null,[{name:"user"},{name:"name"},{name:"user",alias:"value"},{name:"name",alias:"label"}],{alias:"options",queryOptions:'filters: {__filters}, sort: "{__sort}"'});e=`\n var term = api.query.term;\n var filters;\n var sort = "";\n if (term) { \n filters = [['user_accepted', '=', true]];\n var defaultFilters = ${(e=(n.query=n.query.replace(/,count\:.+/,"}"),e.filters))&&JSON.stringify(e)};\n if(defaultFilters){\n filters.push(defaultFilters);\n }\n var fieldsForSearch = ["name", "username", "email", "mobile"];\n var termFilters = [];\n fieldsForSearch.forEach(function (field) {\n termFilters.push([field, 'contains', term]);\n termFilters.push("or");\n });\n termFilters.pop();\n filters.push(termFilters);\n sort = "${t.usersSort}";\n }\n api.data.query = api.data.query.replace(/{__filters}/g, JSON.stringify(filters)).replace('{__sort}', sort.trim());\n return api;\n `;return{method:"post",url:Zl()+"?term=${term}",requestAdaptor:e,data:n,headers:{Authorization:"Bearer ${context.tenantId},${context.authToken}"}}}function Ds(e){e=Bl.exports.find(e.list_views,((e,t)=>"all"===t));let t="";return e?Ws(e):t}const Rs=async e=>{let t=e.reference_to;if(t){"users"===t&&(t="space_users",e.reference_to_field="user");var n=await Bs(t);let r=null,a=e.reference_to_field;return a=a||n.idFieldName||"_id",r="_id"===a?{name:"_id",label:"ID",type:"text",toggled:!1}:n.fields[a]||{name:a},{objectName:t,valueField:r,labelField:n.fields[n.NAME_FIELD_KEY||"name"],NAME_FIELD_KEY:n.NAME_FIELD_KEY||"name"}}};async function Ps(e,t,n){var r=await Rs(e);if(r){const i=await Bs(r.objectName),l=[];let s=0;const u=[],c=[];var a=Bl.exports.find(i.list_views,((e,t)=>"all"===t));a&&a.columns?Bl.exports.each(a.columns,(function(e){Bl.exports.isString(e)&&i.fields[e]?c.push(i.fields[e]):Bl.exports.isObject(e)&&i.fields[e.field]&&c.push(Object.assign({},i.fields[e.field],{width:e.width,wrap:e.wrap}))})):Bl.exports.each(i.fields,((e,t)=>{"_id"==t||e.hidden||(Bl.exports.has(e,"name")||(e.name=t),c.push(e))})),Bl.exports.each(Bl.exports.sortBy(c,"sort_no"),(function(e){s<5&&(Bl.exports.find(l,(function(t){return t.name===e.name}))||(s++,l.push(e),e.searchable&&u.push(e.name)))}));const d={[r.labelField.name]:r.labelField,[r.valueField.name]:r.valueField};Bl.exports.each(l,(e=>{e.hidden||(d[e.name]=e)}));let f="";if(a&&(f=Ws(a)),(a=await Is(i,null,d,{expand:!0,alias:"rows",queryOptions:'filters: {__filters}, top: {__top}, skip: {__skip}, sort: "{__sort}"'})).url){const t=[],n=[];Bl.exports.each(e.depend_on,(e=>{t.push(`depend_on_${e}=\${${e}}`),n.push("this."+e)})),0<t.length&&(a.url=a.url+"?"+t.join("&"),a.sendOn=""+n.join(" && "))}a.data.$term="$term",a.data.$self="$$",a.requestAdaptor=`\n const selfData = JSON.parse(JSON.stringify(api.data.$self));\n var filters = [];\n var pageSize = api.data.pageSize || 10;\n var pageNo = api.data.pageNo || 1;\n var skip = (pageNo - 1) * pageSize;\n var orderBy = api.data.orderBy || '';\n var orderDir = api.data.orderDir || '';\n var sort = orderBy + ' ' + orderDir;\n sort = orderBy ? sort : "${f}";\n var allowSearchFields = ${JSON.stringify(u)};\n if(api.data.$term){\n filters = [["name", "contains", "'+ api.data.$term +'"]];\n }else if(selfData.op === 'loadOptions' && selfData.value){\n if(selfData.value?.indexOf(',') > 0){\n filters = [["${r.valueField.name}", "=", selfData.value.split(',')]];\n }else{\n filters = [["${r.valueField.name}", "=", selfData.value]];\n }\n }\n\n var searchableFilter = [];\n _.each(selfData, (value, key)=>{\n if(!_.isEmpty(value) || _.isBoolean(value)){\n if(_.startsWith(key, '__searchable__between__')){\n searchableFilter.push([\`\${key.replace("__searchable__between__", "")}\`, "between", value])\n }else if(_.startsWith(key, '__searchable__')){\n if(_.isString(value)){\n searchableFilter.push([\`\${key.replace("__searchable__", "")}\`, "contains", value])\n }else{\n searchableFilter.push([\`\${key.replace("__searchable__", "")}\`, "=", value])\n }\n }\n }\n });\n\n if(searchableFilter.length > 0){\n if(filters.length > 0 ){\n filters = [filters, 'and', searchableFilter];\n }else{\n filters = searchableFilter;\n }\n }\n\n if(allowSearchFields){\n allowSearchFields.forEach(function(key){\n const keyValue = selfData[key];\n if(keyValue){\n filters.push([key, "contains", keyValue]);\n }\n })\n }\n\n const filtersFunction = ${e._filtersFunction};\n\n if(filtersFunction){\n const _filters = filtersFunction(filters, api.data.$self.__super.__super);\n if(_filters && _filters.length > 0){\n filters.push(_filters);\n }\n }\n\n api.data.query = api.data.query.replace(/{__filters}/g, JSON.stringify(filters)).replace('{__top}', pageSize).replace('{__skip}', skip).replace('{__sort}', sort.trim());\n return api;\n `,a.adaptor=`\n const enable_tree = ${i.enable_tree};\n if(enable_tree){\n const records = payload.data.rows;\n const treeRecords = [];\n const getChildren = (records, childrenIds)=>{\n if(!childrenIds){\n return;\n }\n const children = _.filter(records, (record)=>{\n return _.includes(childrenIds, record._id)\n });\n _.each(children, (item)=>{\n if(item.children){\n item.children = getChildren(records, item.children)\n }\n })\n return children;\n }\n\n _.each(records, (record)=>{\n if(!record.parent){\n treeRecords.push(Object.assign({}, record, {children: getChildren(records, record.children)}));\n }\n });\n payload.data.rows = treeRecords;\n }\n return payload;\n `;let p=20,h=(i.paging&&!1===i.paging.enabled&&(p=1e3),null);"SMALL"===n.formFactor?h=await ps(l,{top:p,...n,actions:!1}):((h=await Es(l,{labelFieldName:i.NAME_FIELD_KEY,top:p,...n})).headerToolbar=function(e,t){return"SMALL"===t?[{type:"tpl",tpl:"${count} 个项目"},{type:"button",align:"right",className:"bg-white p-2 rounded border-gray-300 text-gray-500",label:"",icon:"fa fa-sync",onEvent:{click:{actions:[{actionType:"custom",script:'\n const scope = event.context.scoped;\n var listView = scope.parent.getComponents().find(function(n){\n return n.props.type === "crud";\n });\n listView.handleChangePage(1);\n '}]}}}]:["bulkActions",{type:"columns-toggler",className:"hidden"},{type:"tpl",tpl:"${count} 个项目"},{type:"reload",align:"right",className:"bg-white p-2 rounded border-gray-300 text-gray-500"},{label:"",icon:"fa fa-search",type:"button",align:"right",className:"bg-white p-2 rounded border-gray-300 text-gray-500",onEvent:{click:{actions:[{actionType:"custom",script:'\n const scope = event.context.scoped;\n const filterForm = scope.getComponents().find(function(n){\n return n.props.type === "form";\n });\n const filterService = filterForm.context.getComponents().find(function(n){\n return n.props.type === "service";\n });\n filterService.setData({showFieldsFilter: !!!filterService.props.data.showFieldsFilter});\n '}]}}}]}(0,n.formFactor),h.footerToolbar=function(e,t){return"SMALL"===t?["load-more"]:["statistics","pagination"]}(),!1!==n.filterVisible&&(o=n.filterLoopCount||0,o++,h.filter=await async function(e,t,n){return{title:"",submitText:"",className:"",mode:"normal",wrapWithPanel:!1,body:[await vs(e,0,n)]}}(i,0,{isLookup:!0,...n,filterLoopCount:o})),h.data=Object.assign({},h.data,{"&":"$$",objectName:i.name,uiSchema:i,listName:"all",isLookup:!0}));var o={type:gs("picker",t),labelField:r.labelField.name,valueField:r.valueField.name,modalMode:"dialog",source:a,size:"lg",pickerSchema:h,joinValues:!1,extractValue:!0};return e.multiple&&(o.multiple=!0,o.extractValue=!0),t&&(o.tpl=await ss(e,n)),o}}async function Ns(e,t,n){var r=await Rs(e);let a;a=r?await Is({name:r.objectName},null,{[r.labelField.name]:Object.assign({},r.labelField,{alias:"label"}),[r.valueField.name]:Object.assign({},r.valueField,{alias:"value"})},{expand:!1,alias:"options",queryOptions:'filters: {__filters}, top: {__top}, sort: "{__sort}"'}):{method:"post",url:Zl(),data:{query:'{objects(filters: ["_id", "=", "-1"]){_id}}',$:"$$"}};var o=(o=r&&await Bs(r.objectName))&&Bl.exports.find(o.list_views,((e,t)=>"all"===t));let i="";if(o&&(i=Ws(o)),a.url){const t=[],n=[];Bl.exports.each(e.depend_on,(e=>{t.push(`depend_on_${e}=\${${e}}`),n.push("this."+e)})),0<t.length&&(a.url=a.url+"?"+t.join("&"),a.sendOn=""+n.join(" && "))}a.data.$term="$term",a.data.$value=`$${e.name}.`+(r?r.valueField.name:"_id"),Bl.exports.each(e.depend_on,(function(e){a.data[e]="$"+e})),a.data.$="$$",a.data.rfield="${object_name}",a.requestAdaptor=`\n var filters = [];\n var top = 10;\n if(api.data.$term){\n filters = [["${r?.NAME_FIELD_KEY||"name"}", "contains", api.data.$term]];\n }else if(api.data.$value){\n filters = [["_id", "=", api.data.$value]];\n }\n\n const filtersFunction = ${e._filtersFunction};\n\n if(filtersFunction){\n const _filters = filtersFunction(filters, api.data.$);\n if(_filters && _filters.length > 0){\n filters.push(_filters);\n }\n }\n var sort = "${i}";\n api.data.query = api.data.query.replace(/{__filters}/g, JSON.stringify(filters)).replace('{__top}', top).replace('{__sort}', sort.trim());\n return api;\n `,r&&r.labelField.name,r&&r.valueField.name,e._optionsFunction&&(a.adaptor=`\n payload.data.options = eval(${e._optionsFunction})(api.data);\n return payload;\n `),o={type:gs("select",t),joinValues:!1,extractValue:!0,source:a,autoComplete:a,searchable:!0};let l=e.defaultValue;return!Bl.exports.has(e,"defaultValue")||Bl.exports.isString(e.defaultValue)&&e.defaultValue.startsWith("{")||(Bl.exports.isString(l)&&l.startsWith("{{")&&(l="$"+l.substring(1,l.length-1)),o.value=l),e.multiple&&(o.multiple=!0,o.extractValue=!0),t&&(o.tpl=await ss(e,n)),o}async function Is(e,t,n,r){return e=await Xl(e,t,n,r),{method:"post",url:Zl(),data:e,headers:{Authorization:"Bearer ${context.tenantId},${context.authToken}"}}}async function Ms(e,t,n){var r,a;return t?{type:gs("picker",t),tpl:ls(e,n)}:!e.reference_to||Bl.exports.isString(e.reference_to)||t?((r=await Rs(e))?(a=await Bs(r.objectName),"space_users"===r.objectName&&"user"===e.reference_to_field?Os:1==a.enable_enhanced_lookup&&Bl.exports.isEmpty(e.depend_on)?Ps:Ns):Ns)(e,t,n):{type:"steedos-field-lookup",field:e,readonly:t,ctx:{}}}async function Os(e,t,n){return async function(e,t,n){if(!e)return{};n=n||{};var r={type:gs("select",t)};if(t)r.tpl=await ss(e,n);else{t=await Bs("space_users"),n.usersSort=Ds(t),t=await Bs("organizations"),n.orgsSort=Ds(t),Object.assign(r,{labelField:"name",valueField:"user",multiple:e.multiple,searchable:e.searchable,selectMode:"associated",leftMode:"tree",extractValue:!0,clearable:!0,source:await Ts(e,n),deferApi:await _s(e,n),searchApi:await Cs(e,n)}),e.multiple&&Object.assign(r,{joinValues:!1});let a=e.defaultValue;!Bl.exports.has(e,"defaultValue")||Bl.exports.isString(a)&&a.startsWith("{")||(Bl.exports.isString(a)&&a.startsWith("{{")&&(a="$"+a.substring(1,a.length-1)),r.value=a),"boolean"!=typeof r.searchable&&(r.searchable=!0),(t=e.onEvent)&&(r.onEvent=t),n={actionType:"custom",script:'\n // 往上找到form,设置__selectUserLoaded__标记已经加载过选人字段不能再调用source接口初始化选人组件了\n const getClosestAmisComponentByType = function(scope, type){\n const re = scope.getComponents().find(function(n){\n return n.props.type === type;\n });\n if(re){\n return re;\n }\n else{\n return getClosestAmisComponentByType(scope.parent, type);\n }\n }\n const form = getClosestAmisComponentByType(event.context.scoped, "form");\n form.setData({"__selectUserLoaded__":true});\n '},r.onEvent?r.onEvent.change?.actions?.length?r.onEvent.change.actions.unshift(n):r.onEvent.change={weight:0,actions:[n]}:Object.assign(r,{onEvent:{change:{weight:0,actions:[n]}}})}return r}(e,t,n)}const Ls=["created","created_by","modified","modified_by"];function zs(e,t){var n=Object.assign({subFields:[]},e);t=Bl.exports.filter(t,(function(t){var n=t.name.startsWith(e.name+".")&&Bl.exports.split(t.name,".").length<3;return n&&(t._prefix=e.name+"."),n}));return n.subFields=t,n}function As(e,t){var n=Object.assign({subFields:[]},e);t=Bl.exports.filter(t,(function(t){var n=t.name.startsWith(e.name+".");return n&&(t._prefix=e.name+"."),n}));return n.subFields=t,n}function Fs(e){const t=e.data_type||"text",n=[];return Bl.exports.each(e.options,(e=>{switch(t){case"number":n.push({label:e.label,value:Number(e.value)});break;case"text":n.push({label:e.label,value:String(e.value)});break;case"boolean":n.push({label:e.label,value:"false"!==e.value})}})),n}async function Hs(e,t,n){if(!Bl.exports.includes(Ls,e.name)||1==n.showSystemFields){var r,a={name:n.fieldNamePrefix?""+n.fieldNamePrefix+e.name:e.name,label:e.label,labelRemark:e.inlineHelpText,required:(Bl.exports.has(n,"required")?n:e).required};let c={};switch(e.type){case"text":c.type=gs("text",t);break;case"textarea":c.type=gs("textarea",t),c.tpl=`<%=(data.${e.name} || "").split("\\n").join('<br>')%>`;break;case"html":c=((e,t,n)=>t?{type:"html",name:e.name}:{type:"input-rich-text",name:e.name})(e,t);break;case"markdown":c=((e,t,n)=>t?{type:"markdown",name:e.name,options:{linkify:!0,html:!0,breaks:!0}}:{type:"group",body:[{type:"editor",name:e.name,language:"markdown"},{type:"markdown",name:e.name,options:{linkify:!0,html:!0,breaks:!0}}]})(e,t);break;case"select":c={type:gs("select",t),joinValues:!1,options:Fs(e),extractValue:!0,clearable:!0,labelField:"label",valueField:"value",tpl:t?os(e):null};let d=e.defaultValue;!Bl.exports.has(e,"defaultValue")||Bl.exports.isString(e.defaultValue)&&e.defaultValue.startsWith("{")||(Bl.exports.isString(d)&&d.startsWith("{{")&&(d="$"+d.substring(1,d.length-1)),r=e.data_type||"text",null!=d&&("text"===r?c.value=String(d):"number"===r?c.value=Number(d):"boolean"===r&&(c.value="false"!==d))),e.multiple&&(c.multiple=!0,c.extractValue=!0);break;case"boolean":c={type:gs("checkbox",t),tpl:t?us(e):null};break;case"input-date-range":c={type:"input-date-range",inputFormat:"YYYY-MM-DD",format:"YYYY-MM-DDT00:00:00.000[Z]",tpl:t?rs(e):null,joinValues:!1};break;case"date":c={type:gs("date",t),inputFormat:"YYYY-MM-DD",format:"YYYY-MM-DDT00:00:00.000[Z]",tpl:t?rs(e):null};break;case"input-datetime-range":c={type:"input-datetime-range",inputFormat:"YYYY-MM-DD HH:mm",format:"YYYY-MM-DDTHH:mm:ss.SSSZ",tpl:t?as(e):null,utc:!0,joinValues:!1};break;case"datetime":c={type:gs("datetime",t),inputFormat:"YYYY-MM-DD HH:mm",format:"YYYY-MM-DDTHH:mm:ss.SSSZ",tpl:t?as(e):null,utc:!0};break;case"input-time-range":c={type:"input-time-range",inputFormat:"HH:mm",timeFormat:"HH:mm",format:"1970-01-01THH:mm:00.000[Z]",tpl:t?as(e):null,joinValues:!1};break;case"time":c={type:gs("time",t),inputFormat:"HH:mm",timeFormat:"HH:mm",format:"1970-01-01THH:mm:00.000[Z]",tpl:t?as(e):null};break;case"currency":case"number":c=t?{type:"static-tpl",tpl:ns(e)}:{type:gs("number",t),min:e.min,max:e.max,precision:e.scale};break;case"input-array":c=Object.assign({},e,a);break;case"input-range":c={type:"input-range",min:e.min,max:e.max,value:[0,0],multiple:!0,showInput:!0};break;case"percent":c={type:gs("number",t),min:e.min,max:e.max,precision:e.scale};break;case"password":c={type:gs("password",t),tpl:t?cs(e):null};break;case"lookup":case"master_detail":c=await Ms(e,t,n);break;case"autonumber":t&&(c={type:"static-text"});break;case"url":c={type:gs("url",t)};break;case"email":c={type:gs("email",t)};break;case"avatar":case"image":case"file":c=ks(e,t);break;case"formula":case"summary":t&&(c.type=gs(e.data_type,t));break;case"code":c={type:"editor",language:e.language,value:e.defaultValue||""};break;case"toggle":c={type:"switch",name:e.name,label:e.label,width:e.width,toggled:e.toggled,disabled:t};break;case"grid":if(e.subFields){c={type:"input-table",showIndex:!0,columnsTogglable:!1,strictMode:!1,affixHeader:!1,editable:!t,addable:!t,removable:!t,draggable:!t,columns:[]};for(const r of e.subFields){var o=r.name.replace(`${e._prefix||""}${e.name}.$.`,"").replace(e.name+".",""),i=await Hs(Object.assign({},r,{name:o}),t,n);i&&(delete i.name,delete i.label,c.columns.push({name:o,label:r.label,quickEdit:!t&&i}))}}break;case"object":if(e.subFields)for(var l of(c={type:"combo",items:[]},e.subFields)){var s=l.name.replace(e.name+".$.","").replace(e.name+".",""),u=("grid"===l.type&&(l=await As(l,n.__permissionFields)),await Hs(Object.assign({},l,{name:s}),t,n));u&&(delete u.name,delete u.label,c.items.push(Object.assign({},u,{name:s,label:l.label})))}}return Bl.exports.isEmpty(c)?void 0:(e.is_wide||"group"===c.type?c.className="col-span-2 m-1":c.className="m-1",t&&(c.className=c.className+" md:border-b"),t&&(c.quickEdit=!1),e.visible_on&&(e.visible_on.startsWith("{{")?c.visibleOn=""+e.visible_on.substring(2,e.visible_on.length-2).replace(/formData./g,"data."):c.visibleOn=""+e.visible_on.replace(/formData./g,"data.")),"group"===c.type?(c.body[0]=Object.assign({},a,c.body[0],{labelClassName:"text-left",clearValueOnHidden:!0,fieldName:e.name}),c):Object.assign({},a,c,{labelClassName:"text-left",clearValueOnHidden:!0,fieldName:e.name}))}}async function js(e,t,n){var r=n.filterLoopCount||0;let a=e,o=("grid"===a.type?a=await As(e,t):"object"===e.type&&(a=await zs(e,t)),"__searchable__");if(a.name.indexOf(".")<0&&(e=Bl.exports.cloneDeep(a),Bl.exports.includes(["textarea","html","code","autonumber"],a.type)&&(e.type="text"),"number"!==a.type&&"currency"!==a.type||(e.type="input-array",e.inline=!0,e.addable=!1,e.removable=!1,e.value=[null,null],e.items={type:"input-number"},e.is_wide=!0,o+="between__"),"date"===a.type&&(e.type="input-date-range",e.is_wide=!0,o+="between__"),"datetime"===a.type&&(e.type="input-datetime-range",e.is_wide=!0,o+="between__"),"time"===a.type&&(e.type="input-time-range",e.is_wide=!0,o+="between__"),"users"===a.reference_to&&(e.reference_to="space_users",e.reference_to_field="user"),e.readonly=!1,e.disabled=!1,e.multiple=!0,e.is_wide=!1,e.defaultValue=void 0,t=await Hs(e,!1,Object.assign({},n,{fieldNamePrefix:o,required:!1,showSystemFields:!0,filterVisible:r<5}))))return t}Object.freeze({__proto__:null,OMIT_FIELDS:Ls,getBaseFields:function(e){let t="m-1";return[{name:"createdInfo",label:"创建人",type:"static",labelClassName:"text-left",className:t=e?""+t:t,tpl:es()},{name:"modifiedInfo",label:"修改人",type:"static",labelClassName:"text-left",className:t,tpl:ts()}]},getAmisFieldType:function(e){switch(e.type){case"text":case"autonumber":return"text";case"textarea":return"textarea";case"html":return"html";case"markdown":return"markdown";case"select":case"lookup":return"select";case"boolean":return"checkbox";case"date":return"date";case"datetime":return"datetime";case"number":case"currency":case"percent":return"number";case"password":return"password";case"master_detail":return"picker";case"url":return"url";case"email":return"email";case"image":return"image";case"formula":case"summary":break;case"grid":return"table";default:console.log("convertData default",e.type)}},getObjectFieldSubFields:zs,getGridFieldSubFields:As,getPermissionFields:function(e,t){const n=[],r=[];return Bl.exports.each(e.fields,((e,t)=>{Bl.exports.has(e,"name")||(e.name=t),r.push(e)})),Bl.exports.each(Bl.exports.sortBy(r,"sort_no"),(function(e){e.hidden||n.push(Object.assign({},e,{permission:{allowEdit:!0}}))})),n},getSelectFieldOptions:Fs,convertSFieldToAmisField:Hs,getFieldSearchable:js,getAmisStaticFieldType:gs});let Us={};const Vs=("undefined"!=typeof window&&(window.UI_SCHEMA_CACHE||(window.UI_SCHEMA_CACHE=Us),Us=window.UI_SCHEMA_CACHE),(e,t)=>{Us[e]=t});function Ws(e){let t="";return e&&e.sort&&e.sort.length&&Bl.exports.each(e.sort,(function(e,n){var r;Bl.exports.isArray(e)?(r=e[0]+" "+(e[1]||""),t+=r=0<n?","+r:r):(r=e.field_name+" "+e.order,t+=r=0<n?","+r:r)})),t}async function Bs(e,t){if(e){if(!(e=>Bl.exports.has(Us,e))(e)||t){let n=null;try{if(!(n=await Kl(`/service/api/@${e.replace(/\./g,"_")}/uiSchema`,{method:"get"})))return;Vs(e,n),Bl.exports.each(n.list_views,((e,t)=>{e.name=t,Bl.exports.has(e,"columns")||(e.columns=n.list_views.all.columns)}))}catch(t){console.error("getUISchema",e,t),Vs(e,null)}}return(e=>Bl.exports.cloneDeep(Us[e]))(e)}}var $s=function(){return($s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function qs(e,t,n){var r=(e=e&&Object.isFrozen(e)?function(e,t){void 0===t&&(t=!0);var n=e&&e.__super?Object.create(e.__super,{__super:{value:e.__super,writable:!1,enumerable:!1}}):Object.create(Object.prototype);return t&&e&&Object.keys(e).forEach((function(t){return n[t]=e[t]})),n}(e):e)?Object.create(e,$s($s({},n),{__super:{value:e,writable:!1,enumerable:!1}})):Object.create(Object.prototype,n);return t&&function(e){var t=typeof e;return e&&"string"!=t&&"number"!=t&&"boolean"!=t&&"function"!=t&&!Array.isArray(e)}(t)&&Object.keys(t).forEach((function(e){return r[e]=t[e]})),r}exports.FullCalendar=function(e){var t=e.dispatchEvent,o=e.data,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}(e,["dispatchEvent","data"]),l=function(e,n){return r(void 0,void 0,void 0,(function(){var r,i;return a(this,(function(a){switch(a.label){case 0:return t?[4,t(e,n?qs(o,n):o)]:[2];case 1:return r=a.sent(),[2,null!==(i=null==r?void 0:r.prevented)&&void 0!==i&&i]}}))}))};return g.createElement(Qo,n({plugins:[ki,ol,Rl,Fl],headerToolbar:{left:"title",center:"",right:"prev,next today dayGridMonth,timeGridWeek,timeGridDay"},locales:Wl,locale:"zh-cn",editable:!0,selectable:!0,selectMirror:!0,dayMaxEvents:!0,initialView:"timeGridWeek",events:function(e,t,n){setTimeout((function(){l("getEvents",{fetchInfo:e,successCallback:t,failureCallback:n})}),100)},select:function(e){l("select",e)},eventClick:function(e){l("eventClick",e)},eventsSet:function(e){l("eventsSet",e)},eventAdd:function(e){l("eventAdd",e)},eventChange:function(e){l("eventChange",e)},eventRemove:function(e){l("eventRemove",e)},forceEventDuration:!0},i))};
|
|
81
|
+
!function(e,t){(function(){var n,r="Expected a function",a="__lodash_hash_undefined__",o="__lodash_placeholder__",i=16,l=32,s=64,u=128,c=256,d=1/0,f=9007199254740991,p=NaN,h=4294967295,m=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",i],["flip",512],["partial",l],["partialRight",s],["rearg",c]],v="[object Arguments]",g="[object Array]",y="[object Boolean]",b="[object Date]",w="[object Error]",S="[object Function]",E="[object GeneratorFunction]",_="[object Map]",k="[object Number]",T="[object Object]",x="[object Promise]",C="[object RegExp]",D="[object Set]",R="[object String]",N="[object Symbol]",P="[object WeakMap]",I="[object ArrayBuffer]",M="[object DataView]",O="[object Float32Array]",A="[object Float64Array]",L="[object Int8Array]",F="[object Int16Array]",z="[object Int32Array]",H="[object Uint8Array]",U="[object Uint8ClampedArray]",j="[object Uint16Array]",V="[object Uint32Array]",$=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,B=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,G=RegExp(q.source),K=RegExp(Y.source),Q=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/,te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,re=RegExp(ne.source),ae=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,me=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,Se=/['\n\r\u2028\u2029\\]/g,Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",_e="\\u2700-\\u27bf",ke="a-z\\xdf-\\xf6\\xf8-\\xff",Te="A-Z\\xc0-\\xd6\\xd8-\\xde",xe="\\ufe0e\\ufe0f",Ce="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",De="['’]",Re="[\\ud800-\\udfff]",Ne="["+Ce+"]",Pe="["+Ee+"]",Ie="\\d+",Me="[\\u2700-\\u27bf]",Oe="["+ke+"]",Ae="[^\\ud800-\\udfff"+Ce+Ie+_e+ke+Te+"]",Le="\\ud83c[\\udffb-\\udfff]",Fe="[^\\ud800-\\udfff]",ze="(?:\\ud83c[\\udde6-\\uddff]){2}",He="[\\ud800-\\udbff][\\udc00-\\udfff]",Ue="["+Te+"]",je="(?:"+Oe+"|"+Ae+")",Ve="(?:"+Ue+"|"+Ae+")",$e="(?:['’](?:d|ll|m|re|s|t|ve))?",We="(?:['’](?:D|LL|M|RE|S|T|VE))?",Be="(?:"+Pe+"|"+Le+")"+"?",qe="[\\ufe0e\\ufe0f]?",Ye=qe+Be+("(?:\\u200d(?:"+[Fe,ze,He].join("|")+")"+qe+Be+")*"),Ge="(?:"+[Me,ze,He].join("|")+")"+Ye,Ke="(?:"+[Fe+Pe+"?",Pe,ze,He,Re].join("|")+")",Qe=RegExp(De,"g"),Xe=RegExp(Pe,"g"),Ze=RegExp(Le+"(?="+Le+")|"+Ke+Ye,"g"),Je=RegExp([Ue+"?"+Oe+"+"+$e+"(?="+[Ne,Ue,"$"].join("|")+")",Ve+"+"+We+"(?="+[Ne,Ue+je,"$"].join("|")+")",Ue+"?"+je+"+"+$e,Ue+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ie,Ge].join("|"),"g"),et=RegExp("[\\u200d\\ud800-\\udfff"+Ee+xe+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["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"],rt=-1,at={};at[O]=at[A]=at[L]=at[F]=at[z]=at[H]=at[U]=at[j]=at[V]=!0,at[v]=at[g]=at[I]=at[y]=at[M]=at[b]=at[w]=at[S]=at[_]=at[k]=at[T]=at[C]=at[D]=at[R]=at[P]=!1;var ot={};ot[v]=ot[g]=ot[I]=ot[M]=ot[y]=ot[b]=ot[O]=ot[A]=ot[L]=ot[F]=ot[z]=ot[_]=ot[k]=ot[T]=ot[C]=ot[D]=ot[R]=ot[N]=ot[H]=ot[U]=ot[j]=ot[V]=!0,ot[w]=ot[S]=ot[P]=!1;var it={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lt=parseFloat,st=parseInt,ut="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ct="object"==typeof self&&self&&self.Object===Object&&self,dt=ut||ct||Function("return this")(),ft=t&&!t.nodeType&&t,pt=ft&&e&&!e.nodeType&&e,ht=pt&&pt.exports===ft,mt=ht&&ut.process,vt=function(){try{var e=pt&&pt.require&&pt.require("util").types;return e||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),gt=vt&&vt.isArrayBuffer,yt=vt&&vt.isDate,bt=vt&&vt.isMap,wt=vt&&vt.isRegExp,St=vt&&vt.isSet,Et=vt&&vt.isTypedArray;function _t(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function kt(e,t,n,r){for(var a=-1,o=null==e?0:e.length;++a<o;){var i=e[a];t(r,i,n(i),e)}return r}function Tt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function xt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Dt(e,t){for(var n=-1,r=null==e?0:e.length,a=0,o=[];++n<r;){var i=e[n];t(i,n,e)&&(o[a++]=i)}return o}function Rt(e,t){return!!(null==e?0:e.length)&&Ht(e,t,0)>-1}function Nt(e,t,n){for(var r=-1,a=null==e?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}function Pt(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}function It(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}function Mt(e,t,n,r){var a=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++a]);++a<o;)n=t(n,e[a],a,e);return n}function Ot(e,t,n,r){var a=null==e?0:e.length;for(r&&a&&(n=e[--a]);a--;)n=t(n,e[a],a,e);return n}function At(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Lt=$t("length");function Ft(e,t,n){var r;return n(e,(function(e,n,a){if(t(e,n,a))return r=n,!1})),r}function zt(e,t,n,r){for(var a=e.length,o=n+(r?1:-1);r?o--:++o<a;)if(t(e[o],o,e))return o;return-1}function Ht(e,t,n){return t==t?function(e,t,n){var r=n-1,a=e.length;for(;++r<a;)if(e[r]===t)return r;return-1}(e,t,n):zt(e,jt,n)}function Ut(e,t,n,r){for(var a=n-1,o=e.length;++a<o;)if(r(e[a],t))return a;return-1}function jt(e){return e!=e}function Vt(e,t){var n=null==e?0:e.length;return n?qt(e,t)/n:p}function $t(e){return function(t){return null==t?n:t[e]}}function Wt(e){return function(t){return null==e?n:e[t]}}function Bt(e,t,n,r,a){return a(e,(function(e,a,o){n=r?(r=!1,e):t(n,e,a,o)})),n}function qt(e,t){for(var r,a=-1,o=e.length;++a<o;){var i=t(e[a]);i!==n&&(r=r===n?i:r+i)}return r}function Yt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Gt(e){return e?e.slice(0,pn(e)+1).replace(ae,""):e}function Kt(e){return function(t){return e(t)}}function Qt(e,t){return Pt(t,(function(t){return e[t]}))}function Xt(e,t){return e.has(t)}function Zt(e,t){for(var n=-1,r=e.length;++n<r&&Ht(t,e[n],0)>-1;);return n}function Jt(e,t){for(var n=e.length;n--&&Ht(t,e[n],0)>-1;);return n}function en(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var tn=Wt({"À":"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"}),nn=Wt({"&":"&","<":"<",">":">",'"':""","'":"'"});function rn(e){return"\\"+it[e]}function an(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function sn(e,t){for(var n=-1,r=e.length,a=0,i=[];++n<r;){var l=e[n];l!==t&&l!==o||(e[n]=o,i[a++]=n)}return i}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function dn(e){return an(e)?function(e){var t=Ze.lastIndex=0;for(;Ze.test(e);)++t;return t}(e):Lt(e)}function fn(e){return an(e)?function(e){return e.match(Ze)||[]}(e):function(e){return e.split("")}(e)}function pn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var hn=Wt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var mn=function e(t){var oe,Ee=(t=null==t?dt:mn.defaults(dt.Object(),t,mn.pick(dt,nt))).Array,_e=t.Date,ke=t.Error,Te=t.Function,xe=t.Math,Ce=t.Object,De=t.RegExp,Re=t.String,Ne=t.TypeError,Pe=Ee.prototype,Ie=Te.prototype,Me=Ce.prototype,Oe=t["__core-js_shared__"],Ae=Ie.toString,Le=Me.hasOwnProperty,Fe=0,ze=(oe=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||""))?"Symbol(src)_1."+oe:"",He=Me.toString,Ue=Ae.call(Ce),je=dt._,Ve=De("^"+Ae.call(Le).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$e=ht?t.Buffer:n,We=t.Symbol,Be=t.Uint8Array,qe=$e?$e.allocUnsafe:n,Ye=ln(Ce.getPrototypeOf,Ce),Ge=Ce.create,Ke=Me.propertyIsEnumerable,Ze=Pe.splice,et=We?We.isConcatSpreadable:n,it=We?We.iterator:n,ut=We?We.toStringTag:n,ct=function(){try{var e=ho(Ce,"defineProperty");return e({},"",{}),e}catch(e){}}(),ft=t.clearTimeout!==dt.clearTimeout&&t.clearTimeout,pt=_e&&_e.now!==dt.Date.now&&_e.now,mt=t.setTimeout!==dt.setTimeout&&t.setTimeout,vt=xe.ceil,Lt=xe.floor,Wt=Ce.getOwnPropertySymbols,vn=$e?$e.isBuffer:n,gn=t.isFinite,yn=Pe.join,bn=ln(Ce.keys,Ce),wn=xe.max,Sn=xe.min,En=_e.now,_n=t.parseInt,kn=xe.random,Tn=Pe.reverse,xn=ho(t,"DataView"),Cn=ho(t,"Map"),Dn=ho(t,"Promise"),Rn=ho(t,"Set"),Nn=ho(t,"WeakMap"),Pn=ho(Ce,"create"),In=Nn&&new Nn,Mn={},On=jo(xn),An=jo(Cn),Ln=jo(Dn),Fn=jo(Rn),zn=jo(Nn),Hn=We?We.prototype:n,Un=Hn?Hn.valueOf:n,jn=Hn?Hn.toString:n;function Vn(e){if(al(e)&&!Yi(e)&&!(e instanceof qn)){if(e instanceof Bn)return e;if(Le.call(e,"__wrapped__"))return Vo(e)}return new Bn(e)}var $n=function(){function e(){}return function(t){if(!rl(t))return{};if(Ge)return Ge(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Wn(){}function Bn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function qn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Qn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Kn;++t<n;)this.add(e[t])}function Xn(e){var t=this.__data__=new Gn(e);this.size=t.size}function Zn(e,t){var n=Yi(e),r=!n&&qi(e),a=!n&&!r&&Xi(e),o=!n&&!r&&!a&&fl(e),i=n||r||a||o,l=i?Yt(e.length,Re):[],s=l.length;for(var u in e)!t&&!Le.call(e,u)||i&&("length"==u||a&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||So(u,s))||l.push(u);return l}function Jn(e){var t=e.length;return t?e[Qr(0,t-1)]:n}function er(e,t){return zo(Pa(e),ur(t,0,e.length))}function tr(e){return zo(Pa(e))}function nr(e,t,r){(r!==n&&!$i(e[t],r)||r===n&&!(t in e))&&lr(e,t,r)}function rr(e,t,r){var a=e[t];Le.call(e,t)&&$i(a,r)&&(r!==n||t in e)||lr(e,t,r)}function ar(e,t){for(var n=e.length;n--;)if($i(e[n][0],t))return n;return-1}function or(e,t,n,r){return hr(e,(function(e,a,o){t(r,e,n(e),o)})),r}function ir(e,t){return e&&Ia(t,Ol(t),e)}function lr(e,t,n){"__proto__"==t&&ct?ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function sr(e,t){for(var r=-1,a=t.length,o=Ee(a),i=null==e;++r<a;)o[r]=i?n:Rl(e,t[r]);return o}function ur(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function cr(e,t,r,a,o,i){var l,s=1&t,u=2&t,c=4&t;if(r&&(l=o?r(e,a,o,i):r(e)),l!==n)return l;if(!rl(e))return e;var d=Yi(e);if(d){if(l=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Le.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return Pa(e,l)}else{var f=go(e),p=f==S||f==E;if(Xi(e))return Ta(e,s);if(f==T||f==v||p&&!o){if(l=u||p?{}:bo(e),!s)return u?function(e,t){return Ia(e,vo(e),t)}(e,function(e,t){return e&&Ia(t,Al(t),e)}(l,e)):function(e,t){return Ia(e,mo(e),t)}(e,ir(l,e))}else{if(!ot[f])return o?e:{};l=function(e,t,n){var r=e.constructor;switch(t){case I:return xa(e);case y:case b:return new r(+e);case M:return function(e,t){var n=t?xa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case O:case A:case L:case F:case z:case H:case U:case j:case V:return Ca(e,n);case _:return new r;case k:case R:return new r(e);case C:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case D:return new r;case N:return a=e,Un?Ce(Un.call(a)):{}}var a}(e,f,s)}}i||(i=new Xn);var h=i.get(e);if(h)return h;i.set(e,l),ul(e)?e.forEach((function(n){l.add(cr(n,t,r,n,e,i))})):ol(e)&&e.forEach((function(n,a){l.set(a,cr(n,t,r,a,e,i))}));var m=d?n:(c?u?io:oo:u?Al:Ol)(e);return Tt(m||e,(function(n,a){m&&(n=e[a=n]),rr(l,a,cr(n,t,r,a,e,i))})),l}function dr(e,t,r){var a=r.length;if(null==e)return!a;for(e=Ce(e);a--;){var o=r[a],i=t[o],l=e[o];if(l===n&&!(o in e)||!i(l))return!1}return!0}function fr(e,t,a){if("function"!=typeof e)throw new Ne(r);return Oo((function(){e.apply(n,a)}),t)}function pr(e,t,n,r){var a=-1,o=Rt,i=!0,l=e.length,s=[],u=t.length;if(!l)return s;n&&(t=Pt(t,Kt(n))),r?(o=Nt,i=!1):t.length>=200&&(o=Xt,i=!1,t=new Qn(t));e:for(;++a<l;){var c=e[a],d=null==n?c:n(c);if(c=r||0!==c?c:0,i&&d==d){for(var f=u;f--;)if(t[f]===d)continue e;s.push(c)}else o(t,d,r)||s.push(c)}return s}Vn.templateSettings={escape:Q,evaluate:X,interpolate:Z,variable:"",imports:{_:Vn}},Vn.prototype=Wn.prototype,Vn.prototype.constructor=Vn,Bn.prototype=$n(Wn.prototype),Bn.prototype.constructor=Bn,qn.prototype=$n(Wn.prototype),qn.prototype.constructor=qn,Yn.prototype.clear=function(){this.__data__=Pn?Pn(null):{},this.size=0},Yn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Yn.prototype.get=function(e){var t=this.__data__;if(Pn){var r=t[e];return r===a?n:r}return Le.call(t,e)?t[e]:n},Yn.prototype.has=function(e){var t=this.__data__;return Pn?t[e]!==n:Le.call(t,e)},Yn.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Pn&&t===n?a:t,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=ar(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ze.call(t,n,1),--this.size,!0)},Gn.prototype.get=function(e){var t=this.__data__,r=ar(t,e);return r<0?n:t[r][1]},Gn.prototype.has=function(e){return ar(this.__data__,e)>-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=ar(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Kn.prototype.clear=function(){this.size=0,this.__data__={hash:new Yn,map:new(Cn||Gn),string:new Yn}},Kn.prototype.delete=function(e){var t=fo(this,e).delete(e);return this.size-=t?1:0,t},Kn.prototype.get=function(e){return fo(this,e).get(e)},Kn.prototype.has=function(e){return fo(this,e).has(e)},Kn.prototype.set=function(e,t){var n=fo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Qn.prototype.add=Qn.prototype.push=function(e){return this.__data__.set(e,a),this},Qn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!Cn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kn(r)}return n.set(e,t),this.size=n.size,this};var hr=Aa(Er),mr=Aa(_r,!0);function vr(e,t){var n=!0;return hr(e,(function(e,r,a){return n=!!t(e,r,a)})),n}function gr(e,t,r){for(var a=-1,o=e.length;++a<o;){var i=e[a],l=t(i);if(null!=l&&(s===n?l==l&&!dl(l):r(l,s)))var s=l,u=i}return u}function yr(e,t){var n=[];return hr(e,(function(e,r,a){t(e,r,a)&&n.push(e)})),n}function br(e,t,n,r,a){var o=-1,i=e.length;for(n||(n=wo),a||(a=[]);++o<i;){var l=e[o];t>0&&n(l)?t>1?br(l,t-1,n,r,a):It(a,l):r||(a[a.length]=l)}return a}var wr=La(),Sr=La(!0);function Er(e,t){return e&&wr(e,t,Ol)}function _r(e,t){return e&&Sr(e,t,Ol)}function kr(e,t){return Dt(t,(function(t){return el(e[t])}))}function Tr(e,t){for(var r=0,a=(t=Sa(t,e)).length;null!=e&&r<a;)e=e[Uo(t[r++])];return r&&r==a?e:n}function xr(e,t,n){var r=t(e);return Yi(e)?r:It(r,n(e))}function Cr(e){return null==e?e===n?"[object Undefined]":"[object Null]":ut&&ut in Ce(e)?function(e){var t=Le.call(e,ut),r=e[ut];try{e[ut]=n;var a=!0}catch(e){}var o=He.call(e);a&&(t?e[ut]=r:delete e[ut]);return o}(e):function(e){return He.call(e)}(e)}function Dr(e,t){return e>t}function Rr(e,t){return null!=e&&Le.call(e,t)}function Nr(e,t){return null!=e&&t in Ce(e)}function Pr(e,t,r){for(var a=r?Nt:Rt,o=e[0].length,i=e.length,l=i,s=Ee(i),u=1/0,c=[];l--;){var d=e[l];l&&t&&(d=Pt(d,Kt(t))),u=Sn(d.length,u),s[l]=!r&&(t||o>=120&&d.length>=120)?new Qn(l&&d):n}d=e[0];var f=-1,p=s[0];e:for(;++f<o&&c.length<u;){var h=d[f],m=t?t(h):h;if(h=r||0!==h?h:0,!(p?Xt(p,m):a(c,m,r))){for(l=i;--l;){var v=s[l];if(!(v?Xt(v,m):a(e[l],m,r)))continue e}p&&p.push(m),c.push(h)}}return c}function Ir(e,t,r){var a=null==(e=No(e,t=Sa(t,e)))?e:e[Uo(Jo(t))];return null==a?n:_t(a,e,r)}function Mr(e){return al(e)&&Cr(e)==v}function Or(e,t,r,a,o){return e===t||(null==e||null==t||!al(e)&&!al(t)?e!=e&&t!=t:function(e,t,r,a,o,i){var l=Yi(e),s=Yi(t),u=l?g:go(e),c=s?g:go(t),d=(u=u==v?T:u)==T,f=(c=c==v?T:c)==T,p=u==c;if(p&&Xi(e)){if(!Xi(t))return!1;l=!0,d=!1}if(p&&!d)return i||(i=new Xn),l||fl(e)?ro(e,t,r,a,o,i):function(e,t,n,r,a,o,i){switch(n){case M:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case I:return!(e.byteLength!=t.byteLength||!o(new Be(e),new Be(t)));case y:case b:case k:return $i(+e,+t);case w:return e.name==t.name&&e.message==t.message;case C:case R:return e==t+"";case _:var l=on;case D:var s=1&r;if(l||(l=un),e.size!=t.size&&!s)return!1;var u=i.get(e);if(u)return u==t;r|=2,i.set(e,t);var c=ro(l(e),l(t),r,a,o,i);return i.delete(e),c;case N:if(Un)return Un.call(e)==Un.call(t)}return!1}(e,t,u,r,a,o,i);if(!(1&r)){var h=d&&Le.call(e,"__wrapped__"),m=f&&Le.call(t,"__wrapped__");if(h||m){var S=h?e.value():e,E=m?t.value():t;return i||(i=new Xn),o(S,E,r,a,i)}}if(!p)return!1;return i||(i=new Xn),function(e,t,r,a,o,i){var l=1&r,s=oo(e),u=s.length,c=oo(t).length;if(u!=c&&!l)return!1;var d=u;for(;d--;){var f=s[d];if(!(l?f in t:Le.call(t,f)))return!1}var p=i.get(e),h=i.get(t);if(p&&h)return p==t&&h==e;var m=!0;i.set(e,t),i.set(t,e);var v=l;for(;++d<u;){var g=e[f=s[d]],y=t[f];if(a)var b=l?a(y,g,f,t,e,i):a(g,y,f,e,t,i);if(!(b===n?g===y||o(g,y,r,a,i):b)){m=!1;break}v||(v="constructor"==f)}if(m&&!v){var w=e.constructor,S=t.constructor;w==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof S&&S instanceof S||(m=!1)}return i.delete(e),i.delete(t),m}(e,t,r,a,o,i)}(e,t,r,a,Or,o))}function Ar(e,t,r,a){var o=r.length,i=o,l=!a;if(null==e)return!i;for(e=Ce(e);o--;){var s=r[o];if(l&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){var u=(s=r[o])[0],c=e[u],d=s[1];if(l&&s[2]){if(c===n&&!(u in e))return!1}else{var f=new Xn;if(a)var p=a(c,d,u,e,t,f);if(!(p===n?Or(d,c,3,a,f):p))return!1}}return!0}function Lr(e){return!(!rl(e)||(t=e,ze&&ze in t))&&(el(e)?Ve:ve).test(jo(e));var t}function Fr(e){return"function"==typeof e?e:null==e?is:"object"==typeof e?Yi(e)?$r(e[0],e[1]):Vr(e):ms(e)}function zr(e){if(!xo(e))return bn(e);var t=[];for(var n in Ce(e))Le.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Hr(e){if(!rl(e))return function(e){var t=[];if(null!=e)for(var n in Ce(e))t.push(n);return t}(e);var t=xo(e),n=[];for(var r in e)("constructor"!=r||!t&&Le.call(e,r))&&n.push(r);return n}function Ur(e,t){return e<t}function jr(e,t){var n=-1,r=Ki(e)?Ee(e.length):[];return hr(e,(function(e,a,o){r[++n]=t(e,a,o)})),r}function Vr(e){var t=po(e);return 1==t.length&&t[0][2]?Do(t[0][0],t[0][1]):function(n){return n===e||Ar(n,e,t)}}function $r(e,t){return _o(e)&&Co(t)?Do(Uo(e),t):function(r){var a=Rl(r,e);return a===n&&a===t?Nl(r,e):Or(t,a,3)}}function Wr(e,t,r,a,o){e!==t&&wr(t,(function(i,l){if(o||(o=new Xn),rl(i))!function(e,t,r,a,o,i,l){var s=Io(e,r),u=Io(t,r),c=l.get(u);if(c)return void nr(e,r,c);var d=i?i(s,u,r+"",e,t,l):n,f=d===n;if(f){var p=Yi(u),h=!p&&Xi(u),m=!p&&!h&&fl(u);d=u,p||h||m?Yi(s)?d=s:Qi(s)?d=Pa(s):h?(f=!1,d=Ta(u,!0)):m?(f=!1,d=Ca(u,!0)):d=[]:ll(u)||qi(u)?(d=s,qi(s)?d=wl(s):rl(s)&&!el(s)||(d=bo(u))):f=!1}f&&(l.set(u,d),o(d,u,a,i,l),l.delete(u));nr(e,r,d)}(e,t,l,r,Wr,a,o);else{var s=a?a(Io(e,l),i,l+"",e,t,o):n;s===n&&(s=i),nr(e,l,s)}}),Al)}function Br(e,t){var r=e.length;if(r)return So(t+=t<0?r:0,r)?e[t]:n}function qr(e,t,n){t=t.length?Pt(t,(function(e){return Yi(e)?function(t){return Tr(t,1===e.length?e[0]:e)}:e})):[is];var r=-1;t=Pt(t,Kt(co()));var a=jr(e,(function(e,n,a){var o=Pt(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(a,(function(e,t){return function(e,t,n){var r=-1,a=e.criteria,o=t.criteria,i=a.length,l=n.length;for(;++r<i;){var s=Da(a[r],o[r]);if(s)return r>=l?s:s*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Yr(e,t,n){for(var r=-1,a=t.length,o={};++r<a;){var i=t[r],l=Tr(e,i);n(l,i)&&ta(o,Sa(i,e),l)}return o}function Gr(e,t,n,r){var a=r?Ut:Ht,o=-1,i=t.length,l=e;for(e===t&&(t=Pa(t)),n&&(l=Pt(e,Kt(n)));++o<i;)for(var s=0,u=t[o],c=n?n(u):u;(s=a(l,c,s,r))>-1;)l!==e&&Ze.call(l,s,1),Ze.call(e,s,1);return e}function Kr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var a=t[n];if(n==r||a!==o){var o=a;So(a)?Ze.call(e,a,1):pa(e,a)}}return e}function Qr(e,t){return e+Lt(kn()*(t-e+1))}function Xr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=Lt(t/2))&&(e+=e)}while(t);return n}function Zr(e,t){return Ao(Ro(e,t,is),e+"")}function Jr(e){return Jn($l(e))}function ea(e,t){var n=$l(e);return zo(n,ur(t,0,n.length))}function ta(e,t,r,a){if(!rl(e))return e;for(var o=-1,i=(t=Sa(t,e)).length,l=i-1,s=e;null!=s&&++o<i;){var u=Uo(t[o]),c=r;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(o!=l){var d=s[u];(c=a?a(d,u,s):n)===n&&(c=rl(d)?d:So(t[o+1])?[]:{})}rr(s,u,c),s=s[u]}return e}var na=In?function(e,t){return In.set(e,t),e}:is,ra=ct?function(e,t){return ct(e,"toString",{configurable:!0,enumerable:!1,value:rs(t),writable:!0})}:is;function aa(e){return zo($l(e))}function oa(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var o=Ee(a);++r<a;)o[r]=e[r+t];return o}function ia(e,t){var n;return hr(e,(function(e,r,a){return!(n=t(e,r,a))})),!!n}function la(e,t,n){var r=0,a=null==e?r:e.length;if("number"==typeof t&&t==t&&a<=2147483647){for(;r<a;){var o=r+a>>>1,i=e[o];null!==i&&!dl(i)&&(n?i<=t:i<t)?r=o+1:a=o}return a}return sa(e,t,is,n)}function sa(e,t,r,a){var o=0,i=null==e?0:e.length;if(0===i)return 0;for(var l=(t=r(t))!=t,s=null===t,u=dl(t),c=t===n;o<i;){var d=Lt((o+i)/2),f=r(e[d]),p=f!==n,h=null===f,m=f==f,v=dl(f);if(l)var g=a||m;else g=c?m&&(a||p):s?m&&p&&(a||!h):u?m&&p&&!h&&(a||!v):!h&&!v&&(a?f<=t:f<t);g?o=d+1:i=d}return Sn(i,4294967294)}function ua(e,t){for(var n=-1,r=e.length,a=0,o=[];++n<r;){var i=e[n],l=t?t(i):i;if(!n||!$i(l,s)){var s=l;o[a++]=0===i?0:i}}return o}function ca(e){return"number"==typeof e?e:dl(e)?p:+e}function da(e){if("string"==typeof e)return e;if(Yi(e))return Pt(e,da)+"";if(dl(e))return jn?jn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function fa(e,t,n){var r=-1,a=Rt,o=e.length,i=!0,l=[],s=l;if(n)i=!1,a=Nt;else if(o>=200){var u=t?null:Xa(e);if(u)return un(u);i=!1,a=Xt,s=new Qn}else s=t?[]:l;e:for(;++r<o;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,i&&d==d){for(var f=s.length;f--;)if(s[f]===d)continue e;t&&s.push(d),l.push(c)}else a(s,d,n)||(s!==l&&s.push(d),l.push(c))}return l}function pa(e,t){return null==(e=No(e,t=Sa(t,e)))||delete e[Uo(Jo(t))]}function ha(e,t,n,r){return ta(e,t,n(Tr(e,t)),r)}function ma(e,t,n,r){for(var a=e.length,o=r?a:-1;(r?o--:++o<a)&&t(e[o],o,e););return n?oa(e,r?0:o,r?o+1:a):oa(e,r?o+1:0,r?a:o)}function va(e,t){var n=e;return n instanceof qn&&(n=n.value()),Mt(t,(function(e,t){return t.func.apply(t.thisArg,It([e],t.args))}),n)}function ga(e,t,n){var r=e.length;if(r<2)return r?fa(e[0]):[];for(var a=-1,o=Ee(r);++a<r;)for(var i=e[a],l=-1;++l<r;)l!=a&&(o[a]=pr(o[a]||i,e[l],t,n));return fa(br(o,1),t,n)}function ya(e,t,r){for(var a=-1,o=e.length,i=t.length,l={};++a<o;){var s=a<i?t[a]:n;r(l,e[a],s)}return l}function ba(e){return Qi(e)?e:[]}function wa(e){return"function"==typeof e?e:is}function Sa(e,t){return Yi(e)?e:_o(e,t)?[e]:Ho(Sl(e))}var Ea=Zr;function _a(e,t,r){var a=e.length;return r=r===n?a:r,!t&&r>=a?e:oa(e,t,r)}var ka=ft||function(e){return dt.clearTimeout(e)};function Ta(e,t){if(t)return e.slice();var n=e.length,r=qe?qe(n):new e.constructor(n);return e.copy(r),r}function xa(e){var t=new e.constructor(e.byteLength);return new Be(t).set(new Be(e)),t}function Ca(e,t){var n=t?xa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Da(e,t){if(e!==t){var r=e!==n,a=null===e,o=e==e,i=dl(e),l=t!==n,s=null===t,u=t==t,c=dl(t);if(!s&&!c&&!i&&e>t||i&&l&&u&&!s&&!c||a&&l&&u||!r&&u||!o)return 1;if(!a&&!i&&!c&&e<t||c&&r&&o&&!a&&!i||s&&r&&o||!l&&o||!u)return-1}return 0}function Ra(e,t,n,r){for(var a=-1,o=e.length,i=n.length,l=-1,s=t.length,u=wn(o-i,0),c=Ee(s+u),d=!r;++l<s;)c[l]=t[l];for(;++a<i;)(d||a<o)&&(c[n[a]]=e[a]);for(;u--;)c[l++]=e[a++];return c}function Na(e,t,n,r){for(var a=-1,o=e.length,i=-1,l=n.length,s=-1,u=t.length,c=wn(o-l,0),d=Ee(c+u),f=!r;++a<c;)d[a]=e[a];for(var p=a;++s<u;)d[p+s]=t[s];for(;++i<l;)(f||a<o)&&(d[p+n[i]]=e[a++]);return d}function Pa(e,t){var n=-1,r=e.length;for(t||(t=Ee(r));++n<r;)t[n]=e[n];return t}function Ia(e,t,r,a){var o=!r;r||(r={});for(var i=-1,l=t.length;++i<l;){var s=t[i],u=a?a(r[s],e[s],s,r,e):n;u===n&&(u=e[s]),o?lr(r,s,u):rr(r,s,u)}return r}function Ma(e,t){return function(n,r){var a=Yi(n)?kt:or,o=t?t():{};return a(n,e,co(r,2),o)}}function Oa(e){return Zr((function(t,r){var a=-1,o=r.length,i=o>1?r[o-1]:n,l=o>2?r[2]:n;for(i=e.length>3&&"function"==typeof i?(o--,i):n,l&&Eo(r[0],r[1],l)&&(i=o<3?n:i,o=1),t=Ce(t);++a<o;){var s=r[a];s&&e(t,s,a,i)}return t}))}function Aa(e,t){return function(n,r){if(null==n)return n;if(!Ki(n))return e(n,r);for(var a=n.length,o=t?a:-1,i=Ce(n);(t?o--:++o<a)&&!1!==r(i[o],o,i););return n}}function La(e){return function(t,n,r){for(var a=-1,o=Ce(t),i=r(t),l=i.length;l--;){var s=i[e?l:++a];if(!1===n(o[s],s,o))break}return t}}function Fa(e){return function(t){var r=an(t=Sl(t))?fn(t):n,a=r?r[0]:t.charAt(0),o=r?_a(r,1).join(""):t.slice(1);return a[e]()+o}}function za(e){return function(t){return Mt(es(ql(t).replace(Qe,"")),e,"")}}function Ha(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=$n(e.prototype),r=e.apply(n,t);return rl(r)?r:n}}function Ua(e){return function(t,r,a){var o=Ce(t);if(!Ki(t)){var i=co(r,3);t=Ol(t),r=function(e){return i(o[e],e,o)}}var l=e(t,r,a);return l>-1?o[i?t[l]:l]:n}}function ja(e){return ao((function(t){var a=t.length,o=a,i=Bn.prototype.thru;for(e&&t.reverse();o--;){var l=t[o];if("function"!=typeof l)throw new Ne(r);if(i&&!s&&"wrapper"==so(l))var s=new Bn([],!0)}for(o=s?o:a;++o<a;){var u=so(l=t[o]),c="wrapper"==u?lo(l):n;s=c&&ko(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?s[so(c[0])].apply(s,c[3]):1==l.length&&ko(l)?s[u]():s.thru(l)}return function(){var e=arguments,n=e[0];if(s&&1==e.length&&Yi(n))return s.plant(n).value();for(var r=0,o=a?t[r].apply(this,e):n;++r<a;)o=t[r].call(this,o);return o}}))}function Va(e,t,r,a,o,i,l,s,c,d){var f=t&u,p=1&t,h=2&t,m=24&t,v=512&t,g=h?n:Ha(e);return function n(){for(var u=arguments.length,y=Ee(u),b=u;b--;)y[b]=arguments[b];if(m)var w=uo(n),S=en(y,w);if(a&&(y=Ra(y,a,o,m)),i&&(y=Na(y,i,l,m)),u-=S,m&&u<d){var E=sn(y,w);return Ka(e,t,Va,n.placeholder,r,y,E,s,c,d-u)}var _=p?r:this,k=h?_[e]:e;return u=y.length,s?y=Po(y,s):v&&u>1&&y.reverse(),f&&c<u&&(y.length=c),this&&this!==dt&&this instanceof n&&(k=g||Ha(k)),k.apply(_,y)}}function $a(e,t){return function(n,r){return function(e,t,n,r){return Er(e,(function(e,a,o){t(r,n(e),a,o)})),r}(n,e,t(r),{})}}function Wa(e,t){return function(r,a){var o;if(r===n&&a===n)return t;if(r!==n&&(o=r),a!==n){if(o===n)return a;"string"==typeof r||"string"==typeof a?(r=da(r),a=da(a)):(r=ca(r),a=ca(a)),o=e(r,a)}return o}}function Ba(e){return ao((function(t){return t=Pt(t,Kt(co())),Zr((function(n){var r=this;return e(t,(function(e){return _t(e,r,n)}))}))}))}function qa(e,t){var r=(t=t===n?" ":da(t)).length;if(r<2)return r?Xr(t,e):t;var a=Xr(t,vt(e/dn(t)));return an(t)?_a(fn(a),0,e).join(""):a.slice(0,e)}function Ya(e){return function(t,r,a){return a&&"number"!=typeof a&&Eo(t,r,a)&&(r=a=n),t=vl(t),r===n?(r=t,t=0):r=vl(r),function(e,t,n,r){for(var a=-1,o=wn(vt((t-e)/(n||1)),0),i=Ee(o);o--;)i[r?o:++a]=e,e+=n;return i}(t,r,a=a===n?t<r?1:-1:vl(a),e)}}function Ga(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=bl(t),n=bl(n)),e(t,n)}}function Ka(e,t,r,a,o,i,u,c,d,f){var p=8&t;t|=p?l:s,4&(t&=~(p?s:l))||(t&=-4);var h=[e,t,o,p?i:n,p?u:n,p?n:i,p?n:u,c,d,f],m=r.apply(n,h);return ko(e)&&Mo(m,h),m.placeholder=a,Lo(m,e,t)}function Qa(e){var t=xe[e];return function(e,n){if(e=bl(e),(n=null==n?0:Sn(gl(n),292))&&gn(e)){var r=(Sl(e)+"e").split("e");return+((r=(Sl(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Xa=Rn&&1/un(new Rn([,-0]))[1]==d?function(e){return new Rn(e)}:ds;function Za(e){return function(t){var n=go(t);return n==_?on(t):n==D?cn(t):function(e,t){return Pt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ja(e,t,a,d,f,p,h,m){var v=2&t;if(!v&&"function"!=typeof e)throw new Ne(r);var g=d?d.length:0;if(g||(t&=-97,d=f=n),h=h===n?h:wn(gl(h),0),m=m===n?m:gl(m),g-=f?f.length:0,t&s){var y=d,b=f;d=f=n}var w=v?n:lo(e),S=[e,t,a,d,f,y,b,p,h,m];if(w&&function(e,t){var n=e[1],r=t[1],a=n|r,i=a<131,l=r==u&&8==n||r==u&&n==c&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!l)return e;1&r&&(e[2]=t[2],a|=1&n?0:4);var s=t[3];if(s){var d=e[3];e[3]=d?Ra(d,s,t[4]):s,e[4]=d?sn(e[3],o):t[4]}(s=t[5])&&(d=e[5],e[5]=d?Na(d,s,t[6]):s,e[6]=d?sn(e[5],o):t[6]);(s=t[7])&&(e[7]=s);r&u&&(e[8]=null==e[8]?t[8]:Sn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=a}(S,w),e=S[0],t=S[1],a=S[2],d=S[3],f=S[4],!(m=S[9]=S[9]===n?v?0:e.length:wn(S[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)E=8==t||t==i?function(e,t,r){var a=Ha(e);return function o(){for(var i=arguments.length,l=Ee(i),s=i,u=uo(o);s--;)l[s]=arguments[s];var c=i<3&&l[0]!==u&&l[i-1]!==u?[]:sn(l,u);return(i-=c.length)<r?Ka(e,t,Va,o.placeholder,n,l,c,n,n,r-i):_t(this&&this!==dt&&this instanceof o?a:e,this,l)}}(e,t,m):t!=l&&33!=t||f.length?Va.apply(n,S):function(e,t,n,r){var a=1&t,o=Ha(e);return function t(){for(var i=-1,l=arguments.length,s=-1,u=r.length,c=Ee(u+l),d=this&&this!==dt&&this instanceof t?o:e;++s<u;)c[s]=r[s];for(;l--;)c[s++]=arguments[++i];return _t(d,a?n:this,c)}}(e,t,a,d);else var E=function(e,t,n){var r=1&t,a=Ha(e);return function t(){return(this&&this!==dt&&this instanceof t?a:e).apply(r?n:this,arguments)}}(e,t,a);return Lo((w?na:Mo)(E,S),e,t)}function eo(e,t,r,a){return e===n||$i(e,Me[r])&&!Le.call(a,r)?t:e}function to(e,t,r,a,o,i){return rl(e)&&rl(t)&&(i.set(t,e),Wr(e,t,n,to,i),i.delete(t)),e}function no(e){return ll(e)?n:e}function ro(e,t,r,a,o,i){var l=1&r,s=e.length,u=t.length;if(s!=u&&!(l&&u>s))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var f=-1,p=!0,h=2&r?new Qn:n;for(i.set(e,t),i.set(t,e);++f<s;){var m=e[f],v=t[f];if(a)var g=l?a(v,m,f,t,e,i):a(m,v,f,e,t,i);if(g!==n){if(g)continue;p=!1;break}if(h){if(!At(t,(function(e,t){if(!Xt(h,t)&&(m===e||o(m,e,r,a,i)))return h.push(t)}))){p=!1;break}}else if(m!==v&&!o(m,v,r,a,i)){p=!1;break}}return i.delete(e),i.delete(t),p}function ao(e){return Ao(Ro(e,n,Go),e+"")}function oo(e){return xr(e,Ol,mo)}function io(e){return xr(e,Al,vo)}var lo=In?function(e){return In.get(e)}:ds;function so(e){for(var t=e.name+"",n=Mn[t],r=Le.call(Mn,t)?n.length:0;r--;){var a=n[r],o=a.func;if(null==o||o==e)return a.name}return t}function uo(e){return(Le.call(Vn,"placeholder")?Vn:e).placeholder}function co(){var e=Vn.iteratee||ls;return e=e===ls?Fr:e,arguments.length?e(arguments[0],arguments[1]):e}function fo(e,t){var n,r,a=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?a["string"==typeof t?"string":"hash"]:a.map}function po(e){for(var t=Ol(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,Co(a)]}return t}function ho(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return Lr(r)?r:n}var mo=Wt?function(e){return null==e?[]:(e=Ce(e),Dt(Wt(e),(function(t){return Ke.call(e,t)})))}:ys,vo=Wt?function(e){for(var t=[];e;)It(t,mo(e)),e=Ye(e);return t}:ys,go=Cr;function yo(e,t,n){for(var r=-1,a=(t=Sa(t,e)).length,o=!1;++r<a;){var i=Uo(t[r]);if(!(o=null!=e&&n(e,i)))break;e=e[i]}return o||++r!=a?o:!!(a=null==e?0:e.length)&&nl(a)&&So(i,a)&&(Yi(e)||qi(e))}function bo(e){return"function"!=typeof e.constructor||xo(e)?{}:$n(Ye(e))}function wo(e){return Yi(e)||qi(e)||!!(et&&e&&e[et])}function So(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&ye.test(e))&&e>-1&&e%1==0&&e<t}function Eo(e,t,n){if(!rl(n))return!1;var r=typeof t;return!!("number"==r?Ki(n)&&So(t,n.length):"string"==r&&t in n)&&$i(n[t],e)}function _o(e,t){if(Yi(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!dl(e))||(ee.test(e)||!J.test(e)||null!=t&&e in Ce(t))}function ko(e){var t=so(e),n=Vn[t];if("function"!=typeof n||!(t in qn.prototype))return!1;if(e===n)return!0;var r=lo(n);return!!r&&e===r[0]}(xn&&go(new xn(new ArrayBuffer(1)))!=M||Cn&&go(new Cn)!=_||Dn&&go(Dn.resolve())!=x||Rn&&go(new Rn)!=D||Nn&&go(new Nn)!=P)&&(go=function(e){var t=Cr(e),r=t==T?e.constructor:n,a=r?jo(r):"";if(a)switch(a){case On:return M;case An:return _;case Ln:return x;case Fn:return D;case zn:return P}return t});var To=Oe?el:bs;function xo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Me)}function Co(e){return e==e&&!rl(e)}function Do(e,t){return function(r){return null!=r&&(r[e]===t&&(t!==n||e in Ce(r)))}}function Ro(e,t,r){return t=wn(t===n?e.length-1:t,0),function(){for(var n=arguments,a=-1,o=wn(n.length-t,0),i=Ee(o);++a<o;)i[a]=n[t+a];a=-1;for(var l=Ee(t+1);++a<t;)l[a]=n[a];return l[t]=r(i),_t(e,this,l)}}function No(e,t){return t.length<2?e:Tr(e,oa(t,0,-1))}function Po(e,t){for(var r=e.length,a=Sn(t.length,r),o=Pa(e);a--;){var i=t[a];e[a]=So(i,r)?o[i]:n}return e}function Io(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Mo=Fo(na),Oo=mt||function(e,t){return dt.setTimeout(e,t)},Ao=Fo(ra);function Lo(e,t,n){var r=t+"";return Ao(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Tt(m,(function(n){var r="_."+n[0];t&n[1]&&!Rt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(le);return t?t[1].split(se):[]}(r),n)))}function Fo(e){var t=0,r=0;return function(){var a=En(),o=16-(a-r);if(r=a,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function zo(e,t){var r=-1,a=e.length,o=a-1;for(t=t===n?a:t;++r<t;){var i=Qr(r,o),l=e[i];e[i]=e[r],e[r]=l}return e.length=t,e}var Ho=function(e){var t=Fi(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(te,(function(e,n,r,a){t.push(r?a.replace(de,"$1"):n||e)})),t}));function Uo(e){if("string"==typeof e||dl(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function jo(e){if(null!=e){try{return Ae.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Vo(e){if(e instanceof qn)return e.clone();var t=new Bn(e.__wrapped__,e.__chain__);return t.__actions__=Pa(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var $o=Zr((function(e,t){return Qi(e)?pr(e,br(t,1,Qi,!0)):[]})),Wo=Zr((function(e,t){var r=Jo(t);return Qi(r)&&(r=n),Qi(e)?pr(e,br(t,1,Qi,!0),co(r,2)):[]})),Bo=Zr((function(e,t){var r=Jo(t);return Qi(r)&&(r=n),Qi(e)?pr(e,br(t,1,Qi,!0),n,r):[]}));function qo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:gl(n);return a<0&&(a=wn(r+a,0)),zt(e,co(t,3),a)}function Yo(e,t,r){var a=null==e?0:e.length;if(!a)return-1;var o=a-1;return r!==n&&(o=gl(r),o=r<0?wn(a+o,0):Sn(o,a-1)),zt(e,co(t,3),o,!0)}function Go(e){return(null==e?0:e.length)?br(e,1):[]}function Ko(e){return e&&e.length?e[0]:n}var Qo=Zr((function(e){var t=Pt(e,ba);return t.length&&t[0]===e[0]?Pr(t):[]})),Xo=Zr((function(e){var t=Jo(e),r=Pt(e,ba);return t===Jo(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Pr(r,co(t,2)):[]})),Zo=Zr((function(e){var t=Jo(e),r=Pt(e,ba);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?Pr(r,n,t):[]}));function Jo(e){var t=null==e?0:e.length;return t?e[t-1]:n}var ei=Zr(ti);function ti(e,t){return e&&e.length&&t&&t.length?Gr(e,t):e}var ni=ao((function(e,t){var n=null==e?0:e.length,r=sr(e,t);return Kr(e,Pt(t,(function(e){return So(e,n)?+e:e})).sort(Da)),r}));function ri(e){return null==e?e:Tn.call(e)}var ai=Zr((function(e){return fa(br(e,1,Qi,!0))})),oi=Zr((function(e){var t=Jo(e);return Qi(t)&&(t=n),fa(br(e,1,Qi,!0),co(t,2))})),ii=Zr((function(e){var t=Jo(e);return t="function"==typeof t?t:n,fa(br(e,1,Qi,!0),n,t)}));function li(e){if(!e||!e.length)return[];var t=0;return e=Dt(e,(function(e){if(Qi(e))return t=wn(e.length,t),!0})),Yt(t,(function(t){return Pt(e,$t(t))}))}function si(e,t){if(!e||!e.length)return[];var r=li(e);return null==t?r:Pt(r,(function(e){return _t(t,n,e)}))}var ui=Zr((function(e,t){return Qi(e)?pr(e,t):[]})),ci=Zr((function(e){return ga(Dt(e,Qi))})),di=Zr((function(e){var t=Jo(e);return Qi(t)&&(t=n),ga(Dt(e,Qi),co(t,2))})),fi=Zr((function(e){var t=Jo(e);return t="function"==typeof t?t:n,ga(Dt(e,Qi),n,t)})),pi=Zr(li);var hi=Zr((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,si(e,r)}));function mi(e){var t=Vn(e);return t.__chain__=!0,t}function vi(e,t){return t(e)}var gi=ao((function(e){var t=e.length,r=t?e[0]:0,a=this.__wrapped__,o=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&a instanceof qn&&So(r)?((a=a.slice(r,+r+(t?1:0))).__actions__.push({func:vi,args:[o],thisArg:n}),new Bn(a,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(o)}));var yi=Ma((function(e,t,n){Le.call(e,n)?++e[n]:lr(e,n,1)}));var bi=Ua(qo),wi=Ua(Yo);function Si(e,t){return(Yi(e)?Tt:hr)(e,co(t,3))}function Ei(e,t){return(Yi(e)?xt:mr)(e,co(t,3))}var _i=Ma((function(e,t,n){Le.call(e,n)?e[n].push(t):lr(e,n,[t])}));var ki=Zr((function(e,t,n){var r=-1,a="function"==typeof t,o=Ki(e)?Ee(e.length):[];return hr(e,(function(e){o[++r]=a?_t(t,e,n):Ir(e,t,n)})),o})),Ti=Ma((function(e,t,n){lr(e,n,t)}));function xi(e,t){return(Yi(e)?Pt:jr)(e,co(t,3))}var Ci=Ma((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Di=Zr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Eo(e,t[0],t[1])?t=[]:n>2&&Eo(t[0],t[1],t[2])&&(t=[t[0]]),qr(e,br(t,1),[])})),Ri=pt||function(){return dt.Date.now()};function Ni(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Ja(e,u,n,n,n,n,t)}function Pi(e,t){var a;if("function"!=typeof t)throw new Ne(r);return e=gl(e),function(){return--e>0&&(a=t.apply(this,arguments)),e<=1&&(t=n),a}}var Ii=Zr((function(e,t,n){var r=1;if(n.length){var a=sn(n,uo(Ii));r|=l}return Ja(e,r,t,n,a)})),Mi=Zr((function(e,t,n){var r=3;if(n.length){var a=sn(n,uo(Mi));r|=l}return Ja(t,r,e,n,a)}));function Oi(e,t,a){var o,i,l,s,u,c,d=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new Ne(r);function m(t){var r=o,a=i;return o=i=n,d=t,s=e.apply(a,r)}function v(e){return d=e,u=Oo(y,t),f?m(e):s}function g(e){var r=e-c;return c===n||r>=t||r<0||p&&e-d>=l}function y(){var e=Ri();if(g(e))return b(e);u=Oo(y,function(e){var n=t-(e-c);return p?Sn(n,l-(e-d)):n}(e))}function b(e){return u=n,h&&o?m(e):(o=i=n,s)}function w(){var e=Ri(),r=g(e);if(o=arguments,i=this,c=e,r){if(u===n)return v(c);if(p)return ka(u),u=Oo(y,t),m(c)}return u===n&&(u=Oo(y,t)),s}return t=bl(t)||0,rl(a)&&(f=!!a.leading,l=(p="maxWait"in a)?wn(bl(a.maxWait)||0,t):l,h="trailing"in a?!!a.trailing:h),w.cancel=function(){u!==n&&ka(u),d=0,o=c=i=u=n},w.flush=function(){return u===n?s:b(Ri())},w}var Ai=Zr((function(e,t){return fr(e,1,t)})),Li=Zr((function(e,t,n){return fr(e,bl(t)||0,n)}));function Fi(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ne(r);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var i=e.apply(this,r);return n.cache=o.set(a,i)||o,i};return n.cache=new(Fi.Cache||Kn),n}function zi(e){if("function"!=typeof e)throw new Ne(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Fi.Cache=Kn;var Hi=Ea((function(e,t){var n=(t=1==t.length&&Yi(t[0])?Pt(t[0],Kt(co())):Pt(br(t,1),Kt(co()))).length;return Zr((function(r){for(var a=-1,o=Sn(r.length,n);++a<o;)r[a]=t[a].call(this,r[a]);return _t(e,this,r)}))})),Ui=Zr((function(e,t){var r=sn(t,uo(Ui));return Ja(e,l,n,t,r)})),ji=Zr((function(e,t){var r=sn(t,uo(ji));return Ja(e,s,n,t,r)})),Vi=ao((function(e,t){return Ja(e,c,n,n,n,t)}));function $i(e,t){return e===t||e!=e&&t!=t}var Wi=Ga(Dr),Bi=Ga((function(e,t){return e>=t})),qi=Mr(function(){return arguments}())?Mr:function(e){return al(e)&&Le.call(e,"callee")&&!Ke.call(e,"callee")},Yi=Ee.isArray,Gi=gt?Kt(gt):function(e){return al(e)&&Cr(e)==I};function Ki(e){return null!=e&&nl(e.length)&&!el(e)}function Qi(e){return al(e)&&Ki(e)}var Xi=vn||bs,Zi=yt?Kt(yt):function(e){return al(e)&&Cr(e)==b};function Ji(e){if(!al(e))return!1;var t=Cr(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ll(e)}function el(e){if(!rl(e))return!1;var t=Cr(e);return t==S||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function tl(e){return"number"==typeof e&&e==gl(e)}function nl(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function rl(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function al(e){return null!=e&&"object"==typeof e}var ol=bt?Kt(bt):function(e){return al(e)&&go(e)==_};function il(e){return"number"==typeof e||al(e)&&Cr(e)==k}function ll(e){if(!al(e)||Cr(e)!=T)return!1;var t=Ye(e);if(null===t)return!0;var n=Le.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ae.call(n)==Ue}var sl=wt?Kt(wt):function(e){return al(e)&&Cr(e)==C};var ul=St?Kt(St):function(e){return al(e)&&go(e)==D};function cl(e){return"string"==typeof e||!Yi(e)&&al(e)&&Cr(e)==R}function dl(e){return"symbol"==typeof e||al(e)&&Cr(e)==N}var fl=Et?Kt(Et):function(e){return al(e)&&nl(e.length)&&!!at[Cr(e)]};var pl=Ga(Ur),hl=Ga((function(e,t){return e<=t}));function ml(e){if(!e)return[];if(Ki(e))return cl(e)?fn(e):Pa(e);if(it&&e[it])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[it]());var t=go(e);return(t==_?on:t==D?un:$l)(e)}function vl(e){return e?(e=bl(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function gl(e){var t=vl(e),n=t%1;return t==t?n?t-n:t:0}function yl(e){return e?ur(gl(e),0,h):0}function bl(e){if("number"==typeof e)return e;if(dl(e))return p;if(rl(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=rl(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Gt(e);var n=me.test(e);return n||ge.test(e)?st(e.slice(2),n?2:8):he.test(e)?p:+e}function wl(e){return Ia(e,Al(e))}function Sl(e){return null==e?"":da(e)}var El=Oa((function(e,t){if(xo(t)||Ki(t))Ia(t,Ol(t),e);else for(var n in t)Le.call(t,n)&&rr(e,n,t[n])})),_l=Oa((function(e,t){Ia(t,Al(t),e)})),kl=Oa((function(e,t,n,r){Ia(t,Al(t),e,r)})),Tl=Oa((function(e,t,n,r){Ia(t,Ol(t),e,r)})),xl=ao(sr);var Cl=Zr((function(e,t){e=Ce(e);var r=-1,a=t.length,o=a>2?t[2]:n;for(o&&Eo(t[0],t[1],o)&&(a=1);++r<a;)for(var i=t[r],l=Al(i),s=-1,u=l.length;++s<u;){var c=l[s],d=e[c];(d===n||$i(d,Me[c])&&!Le.call(e,c))&&(e[c]=i[c])}return e})),Dl=Zr((function(e){return e.push(n,to),_t(Fl,n,e)}));function Rl(e,t,r){var a=null==e?n:Tr(e,t);return a===n?r:a}function Nl(e,t){return null!=e&&yo(e,t,Nr)}var Pl=$a((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=He.call(t)),e[t]=n}),rs(is)),Il=$a((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=He.call(t)),Le.call(e,t)?e[t].push(n):e[t]=[n]}),co),Ml=Zr(Ir);function Ol(e){return Ki(e)?Zn(e):zr(e)}function Al(e){return Ki(e)?Zn(e,!0):Hr(e)}var Ll=Oa((function(e,t,n){Wr(e,t,n)})),Fl=Oa((function(e,t,n,r){Wr(e,t,n,r)})),zl=ao((function(e,t){var n={};if(null==e)return n;var r=!1;t=Pt(t,(function(t){return t=Sa(t,e),r||(r=t.length>1),t})),Ia(e,io(e),n),r&&(n=cr(n,7,no));for(var a=t.length;a--;)pa(n,t[a]);return n}));var Hl=ao((function(e,t){return null==e?{}:function(e,t){return Yr(e,t,(function(t,n){return Nl(e,n)}))}(e,t)}));function Ul(e,t){if(null==e)return{};var n=Pt(io(e),(function(e){return[e]}));return t=co(t),Yr(e,n,(function(e,n){return t(e,n[0])}))}var jl=Za(Ol),Vl=Za(Al);function $l(e){return null==e?[]:Qt(e,Ol(e))}var Wl=za((function(e,t,n){return t=t.toLowerCase(),e+(n?Bl(t):t)}));function Bl(e){return Jl(Sl(e).toLowerCase())}function ql(e){return(e=Sl(e))&&e.replace(be,tn).replace(Xe,"")}var Yl=za((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Gl=za((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Kl=Fa("toLowerCase");var Ql=za((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Xl=za((function(e,t,n){return e+(n?" ":"")+Jl(t)}));var Zl=za((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Jl=Fa("toUpperCase");function es(e,t,r){return e=Sl(e),(t=r?n:t)===n?function(e){return tt.test(e)}(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var ts=Zr((function(e,t){try{return _t(e,n,t)}catch(e){return Ji(e)?e:new ke(e)}})),ns=ao((function(e,t){return Tt(t,(function(t){t=Uo(t),lr(e,t,Ii(e[t],e))})),e}));function rs(e){return function(){return e}}var as=ja(),os=ja(!0);function is(e){return e}function ls(e){return Fr("function"==typeof e?e:cr(e,1))}var ss=Zr((function(e,t){return function(n){return Ir(n,e,t)}})),us=Zr((function(e,t){return function(n){return Ir(e,n,t)}}));function cs(e,t,n){var r=Ol(t),a=kr(t,r);null!=n||rl(t)&&(a.length||!r.length)||(n=t,t=e,e=this,a=kr(t,Ol(t)));var o=!(rl(n)&&"chain"in n&&!n.chain),i=el(e);return Tt(a,(function(n){var r=t[n];e[n]=r,i&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),a=n.__actions__=Pa(this.__actions__);return a.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,It([this.value()],arguments))})})),e}function ds(){}var fs=Ba(Pt),ps=Ba(Ct),hs=Ba(At);function ms(e){return _o(e)?$t(Uo(e)):function(e){return function(t){return Tr(t,e)}}(e)}var vs=Ya(),gs=Ya(!0);function ys(){return[]}function bs(){return!1}var ws=Wa((function(e,t){return e+t}),0),Ss=Qa("ceil"),Es=Wa((function(e,t){return e/t}),1),_s=Qa("floor");var ks,Ts=Wa((function(e,t){return e*t}),1),xs=Qa("round"),Cs=Wa((function(e,t){return e-t}),0);return Vn.after=function(e,t){if("function"!=typeof t)throw new Ne(r);return e=gl(e),function(){if(--e<1)return t.apply(this,arguments)}},Vn.ary=Ni,Vn.assign=El,Vn.assignIn=_l,Vn.assignInWith=kl,Vn.assignWith=Tl,Vn.at=xl,Vn.before=Pi,Vn.bind=Ii,Vn.bindAll=ns,Vn.bindKey=Mi,Vn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Yi(e)?e:[e]},Vn.chain=mi,Vn.chunk=function(e,t,r){t=(r?Eo(e,t,r):t===n)?1:wn(gl(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var o=0,i=0,l=Ee(vt(a/t));o<a;)l[i++]=oa(e,o,o+=t);return l},Vn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,a=[];++t<n;){var o=e[t];o&&(a[r++]=o)}return a},Vn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=Ee(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return It(Yi(n)?Pa(n):[n],br(t,1))},Vn.cond=function(e){var t=null==e?0:e.length,n=co();return e=t?Pt(e,(function(e){if("function"!=typeof e[1])throw new Ne(r);return[n(e[0]),e[1]]})):[],Zr((function(n){for(var r=-1;++r<t;){var a=e[r];if(_t(a[0],this,n))return _t(a[1],this,n)}}))},Vn.conforms=function(e){return function(e){var t=Ol(e);return function(n){return dr(n,e,t)}}(cr(e,1))},Vn.constant=rs,Vn.countBy=yi,Vn.create=function(e,t){var n=$n(e);return null==t?n:ir(n,t)},Vn.curry=function e(t,r,a){var o=Ja(t,8,n,n,n,n,n,r=a?n:r);return o.placeholder=e.placeholder,o},Vn.curryRight=function e(t,r,a){var o=Ja(t,i,n,n,n,n,n,r=a?n:r);return o.placeholder=e.placeholder,o},Vn.debounce=Oi,Vn.defaults=Cl,Vn.defaultsDeep=Dl,Vn.defer=Ai,Vn.delay=Li,Vn.difference=$o,Vn.differenceBy=Wo,Vn.differenceWith=Bo,Vn.drop=function(e,t,r){var a=null==e?0:e.length;return a?oa(e,(t=r||t===n?1:gl(t))<0?0:t,a):[]},Vn.dropRight=function(e,t,r){var a=null==e?0:e.length;return a?oa(e,0,(t=a-(t=r||t===n?1:gl(t)))<0?0:t):[]},Vn.dropRightWhile=function(e,t){return e&&e.length?ma(e,co(t,3),!0,!0):[]},Vn.dropWhile=function(e,t){return e&&e.length?ma(e,co(t,3),!0):[]},Vn.fill=function(e,t,r,a){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&Eo(e,t,r)&&(r=0,a=o),function(e,t,r,a){var o=e.length;for((r=gl(r))<0&&(r=-r>o?0:o+r),(a=a===n||a>o?o:gl(a))<0&&(a+=o),a=r>a?0:yl(a);r<a;)e[r++]=t;return e}(e,t,r,a)):[]},Vn.filter=function(e,t){return(Yi(e)?Dt:yr)(e,co(t,3))},Vn.flatMap=function(e,t){return br(xi(e,t),1)},Vn.flatMapDeep=function(e,t){return br(xi(e,t),d)},Vn.flatMapDepth=function(e,t,r){return r=r===n?1:gl(r),br(xi(e,t),r)},Vn.flatten=Go,Vn.flattenDeep=function(e){return(null==e?0:e.length)?br(e,d):[]},Vn.flattenDepth=function(e,t){return(null==e?0:e.length)?br(e,t=t===n?1:gl(t)):[]},Vn.flip=function(e){return Ja(e,512)},Vn.flow=as,Vn.flowRight=os,Vn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var a=e[t];r[a[0]]=a[1]}return r},Vn.functions=function(e){return null==e?[]:kr(e,Ol(e))},Vn.functionsIn=function(e){return null==e?[]:kr(e,Al(e))},Vn.groupBy=_i,Vn.initial=function(e){return(null==e?0:e.length)?oa(e,0,-1):[]},Vn.intersection=Qo,Vn.intersectionBy=Xo,Vn.intersectionWith=Zo,Vn.invert=Pl,Vn.invertBy=Il,Vn.invokeMap=ki,Vn.iteratee=ls,Vn.keyBy=Ti,Vn.keys=Ol,Vn.keysIn=Al,Vn.map=xi,Vn.mapKeys=function(e,t){var n={};return t=co(t,3),Er(e,(function(e,r,a){lr(n,t(e,r,a),e)})),n},Vn.mapValues=function(e,t){var n={};return t=co(t,3),Er(e,(function(e,r,a){lr(n,r,t(e,r,a))})),n},Vn.matches=function(e){return Vr(cr(e,1))},Vn.matchesProperty=function(e,t){return $r(e,cr(t,1))},Vn.memoize=Fi,Vn.merge=Ll,Vn.mergeWith=Fl,Vn.method=ss,Vn.methodOf=us,Vn.mixin=cs,Vn.negate=zi,Vn.nthArg=function(e){return e=gl(e),Zr((function(t){return Br(t,e)}))},Vn.omit=zl,Vn.omitBy=function(e,t){return Ul(e,zi(co(t)))},Vn.once=function(e){return Pi(2,e)},Vn.orderBy=function(e,t,r,a){return null==e?[]:(Yi(t)||(t=null==t?[]:[t]),Yi(r=a?n:r)||(r=null==r?[]:[r]),qr(e,t,r))},Vn.over=fs,Vn.overArgs=Hi,Vn.overEvery=ps,Vn.overSome=hs,Vn.partial=Ui,Vn.partialRight=ji,Vn.partition=Ci,Vn.pick=Hl,Vn.pickBy=Ul,Vn.property=ms,Vn.propertyOf=function(e){return function(t){return null==e?n:Tr(e,t)}},Vn.pull=ei,Vn.pullAll=ti,Vn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,co(n,2)):e},Vn.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Gr(e,t,n,r):e},Vn.pullAt=ni,Vn.range=vs,Vn.rangeRight=gs,Vn.rearg=Vi,Vn.reject=function(e,t){return(Yi(e)?Dt:yr)(e,zi(co(t,3)))},Vn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,a=[],o=e.length;for(t=co(t,3);++r<o;){var i=e[r];t(i,r,e)&&(n.push(i),a.push(r))}return Kr(e,a),n},Vn.rest=function(e,t){if("function"!=typeof e)throw new Ne(r);return Zr(e,t=t===n?t:gl(t))},Vn.reverse=ri,Vn.sampleSize=function(e,t,r){return t=(r?Eo(e,t,r):t===n)?1:gl(t),(Yi(e)?er:ea)(e,t)},Vn.set=function(e,t,n){return null==e?e:ta(e,t,n)},Vn.setWith=function(e,t,r,a){return a="function"==typeof a?a:n,null==e?e:ta(e,t,r,a)},Vn.shuffle=function(e){return(Yi(e)?tr:aa)(e)},Vn.slice=function(e,t,r){var a=null==e?0:e.length;return a?(r&&"number"!=typeof r&&Eo(e,t,r)?(t=0,r=a):(t=null==t?0:gl(t),r=r===n?a:gl(r)),oa(e,t,r)):[]},Vn.sortBy=Di,Vn.sortedUniq=function(e){return e&&e.length?ua(e):[]},Vn.sortedUniqBy=function(e,t){return e&&e.length?ua(e,co(t,2)):[]},Vn.split=function(e,t,r){return r&&"number"!=typeof r&&Eo(e,t,r)&&(t=r=n),(r=r===n?h:r>>>0)?(e=Sl(e))&&("string"==typeof t||null!=t&&!sl(t))&&!(t=da(t))&&an(e)?_a(fn(e),0,r):e.split(t,r):[]},Vn.spread=function(e,t){if("function"!=typeof e)throw new Ne(r);return t=null==t?0:wn(gl(t),0),Zr((function(n){var r=n[t],a=_a(n,0,t);return r&&It(a,r),_t(e,this,a)}))},Vn.tail=function(e){var t=null==e?0:e.length;return t?oa(e,1,t):[]},Vn.take=function(e,t,r){return e&&e.length?oa(e,0,(t=r||t===n?1:gl(t))<0?0:t):[]},Vn.takeRight=function(e,t,r){var a=null==e?0:e.length;return a?oa(e,(t=a-(t=r||t===n?1:gl(t)))<0?0:t,a):[]},Vn.takeRightWhile=function(e,t){return e&&e.length?ma(e,co(t,3),!1,!0):[]},Vn.takeWhile=function(e,t){return e&&e.length?ma(e,co(t,3)):[]},Vn.tap=function(e,t){return t(e),e},Vn.throttle=function(e,t,n){var a=!0,o=!0;if("function"!=typeof e)throw new Ne(r);return rl(n)&&(a="leading"in n?!!n.leading:a,o="trailing"in n?!!n.trailing:o),Oi(e,t,{leading:a,maxWait:t,trailing:o})},Vn.thru=vi,Vn.toArray=ml,Vn.toPairs=jl,Vn.toPairsIn=Vl,Vn.toPath=function(e){return Yi(e)?Pt(e,Uo):dl(e)?[e]:Pa(Ho(Sl(e)))},Vn.toPlainObject=wl,Vn.transform=function(e,t,n){var r=Yi(e),a=r||Xi(e)||fl(e);if(t=co(t,4),null==n){var o=e&&e.constructor;n=a?r?new o:[]:rl(e)&&el(o)?$n(Ye(e)):{}}return(a?Tt:Er)(e,(function(e,r,a){return t(n,e,r,a)})),n},Vn.unary=function(e){return Ni(e,1)},Vn.union=ai,Vn.unionBy=oi,Vn.unionWith=ii,Vn.uniq=function(e){return e&&e.length?fa(e):[]},Vn.uniqBy=function(e,t){return e&&e.length?fa(e,co(t,2)):[]},Vn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?fa(e,n,t):[]},Vn.unset=function(e,t){return null==e||pa(e,t)},Vn.unzip=li,Vn.unzipWith=si,Vn.update=function(e,t,n){return null==e?e:ha(e,t,wa(n))},Vn.updateWith=function(e,t,r,a){return a="function"==typeof a?a:n,null==e?e:ha(e,t,wa(r),a)},Vn.values=$l,Vn.valuesIn=function(e){return null==e?[]:Qt(e,Al(e))},Vn.without=ui,Vn.words=es,Vn.wrap=function(e,t){return Ui(wa(t),e)},Vn.xor=ci,Vn.xorBy=di,Vn.xorWith=fi,Vn.zip=pi,Vn.zipObject=function(e,t){return ya(e||[],t||[],rr)},Vn.zipObjectDeep=function(e,t){return ya(e||[],t||[],ta)},Vn.zipWith=hi,Vn.entries=jl,Vn.entriesIn=Vl,Vn.extend=_l,Vn.extendWith=kl,cs(Vn,Vn),Vn.add=ws,Vn.attempt=ts,Vn.camelCase=Wl,Vn.capitalize=Bl,Vn.ceil=Ss,Vn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=bl(r))==r?r:0),t!==n&&(t=(t=bl(t))==t?t:0),ur(bl(e),t,r)},Vn.clone=function(e){return cr(e,4)},Vn.cloneDeep=function(e){return cr(e,5)},Vn.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:n)},Vn.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:n)},Vn.conformsTo=function(e,t){return null==t||dr(e,t,Ol(t))},Vn.deburr=ql,Vn.defaultTo=function(e,t){return null==e||e!=e?t:e},Vn.divide=Es,Vn.endsWith=function(e,t,r){e=Sl(e),t=da(t);var a=e.length,o=r=r===n?a:ur(gl(r),0,a);return(r-=t.length)>=0&&e.slice(r,o)==t},Vn.eq=$i,Vn.escape=function(e){return(e=Sl(e))&&K.test(e)?e.replace(Y,nn):e},Vn.escapeRegExp=function(e){return(e=Sl(e))&&re.test(e)?e.replace(ne,"\\$&"):e},Vn.every=function(e,t,r){var a=Yi(e)?Ct:vr;return r&&Eo(e,t,r)&&(t=n),a(e,co(t,3))},Vn.find=bi,Vn.findIndex=qo,Vn.findKey=function(e,t){return Ft(e,co(t,3),Er)},Vn.findLast=wi,Vn.findLastIndex=Yo,Vn.findLastKey=function(e,t){return Ft(e,co(t,3),_r)},Vn.floor=_s,Vn.forEach=Si,Vn.forEachRight=Ei,Vn.forIn=function(e,t){return null==e?e:wr(e,co(t,3),Al)},Vn.forInRight=function(e,t){return null==e?e:Sr(e,co(t,3),Al)},Vn.forOwn=function(e,t){return e&&Er(e,co(t,3))},Vn.forOwnRight=function(e,t){return e&&_r(e,co(t,3))},Vn.get=Rl,Vn.gt=Wi,Vn.gte=Bi,Vn.has=function(e,t){return null!=e&&yo(e,t,Rr)},Vn.hasIn=Nl,Vn.head=Ko,Vn.identity=is,Vn.includes=function(e,t,n,r){e=Ki(e)?e:$l(e),n=n&&!r?gl(n):0;var a=e.length;return n<0&&(n=wn(a+n,0)),cl(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&Ht(e,t,n)>-1},Vn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:gl(n);return a<0&&(a=wn(r+a,0)),Ht(e,t,a)},Vn.inRange=function(e,t,r){return t=vl(t),r===n?(r=t,t=0):r=vl(r),function(e,t,n){return e>=Sn(t,n)&&e<wn(t,n)}(e=bl(e),t,r)},Vn.invoke=Ml,Vn.isArguments=qi,Vn.isArray=Yi,Vn.isArrayBuffer=Gi,Vn.isArrayLike=Ki,Vn.isArrayLikeObject=Qi,Vn.isBoolean=function(e){return!0===e||!1===e||al(e)&&Cr(e)==y},Vn.isBuffer=Xi,Vn.isDate=Zi,Vn.isElement=function(e){return al(e)&&1===e.nodeType&&!ll(e)},Vn.isEmpty=function(e){if(null==e)return!0;if(Ki(e)&&(Yi(e)||"string"==typeof e||"function"==typeof e.splice||Xi(e)||fl(e)||qi(e)))return!e.length;var t=go(e);if(t==_||t==D)return!e.size;if(xo(e))return!zr(e).length;for(var n in e)if(Le.call(e,n))return!1;return!0},Vn.isEqual=function(e,t){return Or(e,t)},Vn.isEqualWith=function(e,t,r){var a=(r="function"==typeof r?r:n)?r(e,t):n;return a===n?Or(e,t,n,r):!!a},Vn.isError=Ji,Vn.isFinite=function(e){return"number"==typeof e&&gn(e)},Vn.isFunction=el,Vn.isInteger=tl,Vn.isLength=nl,Vn.isMap=ol,Vn.isMatch=function(e,t){return e===t||Ar(e,t,po(t))},Vn.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,Ar(e,t,po(t),r)},Vn.isNaN=function(e){return il(e)&&e!=+e},Vn.isNative=function(e){if(To(e))throw new ke("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Lr(e)},Vn.isNil=function(e){return null==e},Vn.isNull=function(e){return null===e},Vn.isNumber=il,Vn.isObject=rl,Vn.isObjectLike=al,Vn.isPlainObject=ll,Vn.isRegExp=sl,Vn.isSafeInteger=function(e){return tl(e)&&e>=-9007199254740991&&e<=f},Vn.isSet=ul,Vn.isString=cl,Vn.isSymbol=dl,Vn.isTypedArray=fl,Vn.isUndefined=function(e){return e===n},Vn.isWeakMap=function(e){return al(e)&&go(e)==P},Vn.isWeakSet=function(e){return al(e)&&"[object WeakSet]"==Cr(e)},Vn.join=function(e,t){return null==e?"":yn.call(e,t)},Vn.kebabCase=Yl,Vn.last=Jo,Vn.lastIndexOf=function(e,t,r){var a=null==e?0:e.length;if(!a)return-1;var o=a;return r!==n&&(o=(o=gl(r))<0?wn(a+o,0):Sn(o,a-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):zt(e,jt,o,!0)},Vn.lowerCase=Gl,Vn.lowerFirst=Kl,Vn.lt=pl,Vn.lte=hl,Vn.max=function(e){return e&&e.length?gr(e,is,Dr):n},Vn.maxBy=function(e,t){return e&&e.length?gr(e,co(t,2),Dr):n},Vn.mean=function(e){return Vt(e,is)},Vn.meanBy=function(e,t){return Vt(e,co(t,2))},Vn.min=function(e){return e&&e.length?gr(e,is,Ur):n},Vn.minBy=function(e,t){return e&&e.length?gr(e,co(t,2),Ur):n},Vn.stubArray=ys,Vn.stubFalse=bs,Vn.stubObject=function(){return{}},Vn.stubString=function(){return""},Vn.stubTrue=function(){return!0},Vn.multiply=Ts,Vn.nth=function(e,t){return e&&e.length?Br(e,gl(t)):n},Vn.noConflict=function(){return dt._===this&&(dt._=je),this},Vn.noop=ds,Vn.now=Ri,Vn.pad=function(e,t,n){e=Sl(e);var r=(t=gl(t))?dn(e):0;if(!t||r>=t)return e;var a=(t-r)/2;return qa(Lt(a),n)+e+qa(vt(a),n)},Vn.padEnd=function(e,t,n){e=Sl(e);var r=(t=gl(t))?dn(e):0;return t&&r<t?e+qa(t-r,n):e},Vn.padStart=function(e,t,n){e=Sl(e);var r=(t=gl(t))?dn(e):0;return t&&r<t?qa(t-r,n)+e:e},Vn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),_n(Sl(e).replace(ae,""),t||0)},Vn.random=function(e,t,r){if(r&&"boolean"!=typeof r&&Eo(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=vl(e),t===n?(t=e,e=0):t=vl(t)),e>t){var a=e;e=t,t=a}if(r||e%1||t%1){var o=kn();return Sn(e+o*(t-e+lt("1e-"+((o+"").length-1))),t)}return Qr(e,t)},Vn.reduce=function(e,t,n){var r=Yi(e)?Mt:Bt,a=arguments.length<3;return r(e,co(t,4),n,a,hr)},Vn.reduceRight=function(e,t,n){var r=Yi(e)?Ot:Bt,a=arguments.length<3;return r(e,co(t,4),n,a,mr)},Vn.repeat=function(e,t,r){return t=(r?Eo(e,t,r):t===n)?1:gl(t),Xr(Sl(e),t)},Vn.replace=function(){var e=arguments,t=Sl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Vn.result=function(e,t,r){var a=-1,o=(t=Sa(t,e)).length;for(o||(o=1,e=n);++a<o;){var i=null==e?n:e[Uo(t[a])];i===n&&(a=o,i=r),e=el(i)?i.call(e):i}return e},Vn.round=xs,Vn.runInContext=e,Vn.sample=function(e){return(Yi(e)?Jn:Jr)(e)},Vn.size=function(e){if(null==e)return 0;if(Ki(e))return cl(e)?dn(e):e.length;var t=go(e);return t==_||t==D?e.size:zr(e).length},Vn.snakeCase=Ql,Vn.some=function(e,t,r){var a=Yi(e)?At:ia;return r&&Eo(e,t,r)&&(t=n),a(e,co(t,3))},Vn.sortedIndex=function(e,t){return la(e,t)},Vn.sortedIndexBy=function(e,t,n){return sa(e,t,co(n,2))},Vn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=la(e,t);if(r<n&&$i(e[r],t))return r}return-1},Vn.sortedLastIndex=function(e,t){return la(e,t,!0)},Vn.sortedLastIndexBy=function(e,t,n){return sa(e,t,co(n,2),!0)},Vn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=la(e,t,!0)-1;if($i(e[n],t))return n}return-1},Vn.startCase=Xl,Vn.startsWith=function(e,t,n){return e=Sl(e),n=null==n?0:ur(gl(n),0,e.length),t=da(t),e.slice(n,n+t.length)==t},Vn.subtract=Cs,Vn.sum=function(e){return e&&e.length?qt(e,is):0},Vn.sumBy=function(e,t){return e&&e.length?qt(e,co(t,2)):0},Vn.template=function(e,t,r){var a=Vn.templateSettings;r&&Eo(e,t,r)&&(t=n),e=Sl(e),t=kl({},t,a,eo);var o,i,l=kl({},t.imports,a.imports,eo),s=Ol(l),u=Qt(l,s),c=0,d=t.interpolate||we,f="__p += '",p=De((t.escape||we).source+"|"+d.source+"|"+(d===Z?fe:we).source+"|"+(t.evaluate||we).source+"|$","g"),h="//# sourceURL="+(Le.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(p,(function(t,n,r,a,l,s){return r||(r=a),f+=e.slice(c,s).replace(Se,rn),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),l&&(i=!0,f+="';\n"+l+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=s+t.length,t})),f+="';\n";var m=Le.call(t,"variable")&&t.variable;if(m){if(ce.test(m))throw new ke("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(i?f.replace($,""):f).replace(W,"$1").replace(B,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=ts((function(){return Te(s,h+"return "+f).apply(n,u)}));if(v.source=f,Ji(v))throw v;return v},Vn.times=function(e,t){if((e=gl(e))<1||e>f)return[];var n=h,r=Sn(e,h);t=co(t),e-=h;for(var a=Yt(r,t);++n<e;)t(n);return a},Vn.toFinite=vl,Vn.toInteger=gl,Vn.toLength=yl,Vn.toLower=function(e){return Sl(e).toLowerCase()},Vn.toNumber=bl,Vn.toSafeInteger=function(e){return e?ur(gl(e),-9007199254740991,f):0===e?e:0},Vn.toString=Sl,Vn.toUpper=function(e){return Sl(e).toUpperCase()},Vn.trim=function(e,t,r){if((e=Sl(e))&&(r||t===n))return Gt(e);if(!e||!(t=da(t)))return e;var a=fn(e),o=fn(t);return _a(a,Zt(a,o),Jt(a,o)+1).join("")},Vn.trimEnd=function(e,t,r){if((e=Sl(e))&&(r||t===n))return e.slice(0,pn(e)+1);if(!e||!(t=da(t)))return e;var a=fn(e);return _a(a,0,Jt(a,fn(t))+1).join("")},Vn.trimStart=function(e,t,r){if((e=Sl(e))&&(r||t===n))return e.replace(ae,"");if(!e||!(t=da(t)))return e;var a=fn(e);return _a(a,Zt(a,fn(t))).join("")},Vn.truncate=function(e,t){var r=30,a="...";if(rl(t)){var o="separator"in t?t.separator:o;r="length"in t?gl(t.length):r,a="omission"in t?da(t.omission):a}var i=(e=Sl(e)).length;if(an(e)){var l=fn(e);i=l.length}if(r>=i)return e;var s=r-dn(a);if(s<1)return a;var u=l?_a(l,0,s).join(""):e.slice(0,s);if(o===n)return u+a;if(l&&(s+=u.length-s),sl(o)){if(e.slice(s).search(o)){var c,d=u;for(o.global||(o=De(o.source,Sl(pe.exec(o))+"g")),o.lastIndex=0;c=o.exec(d);)var f=c.index;u=u.slice(0,f===n?s:f)}}else if(e.indexOf(da(o),s)!=s){var p=u.lastIndexOf(o);p>-1&&(u=u.slice(0,p))}return u+a},Vn.unescape=function(e){return(e=Sl(e))&&G.test(e)?e.replace(q,hn):e},Vn.uniqueId=function(e){var t=++Fe;return Sl(e)+t},Vn.upperCase=Zl,Vn.upperFirst=Jl,Vn.each=Si,Vn.eachRight=Ei,Vn.first=Ko,cs(Vn,(ks={},Er(Vn,(function(e,t){Le.call(Vn.prototype,t)||(ks[t]=e)})),ks),{chain:!1}),Vn.VERSION="4.17.21",Tt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Vn[e].placeholder=Vn})),Tt(["drop","take"],(function(e,t){qn.prototype[e]=function(r){r=r===n?1:wn(gl(r),0);var a=this.__filtered__&&!t?new qn(this):this.clone();return a.__filtered__?a.__takeCount__=Sn(r,a.__takeCount__):a.__views__.push({size:Sn(r,h),type:e+(a.__dir__<0?"Right":"")}),a},qn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Tt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;qn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:co(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Tt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");qn.prototype[e]=function(){return this[n](1).value()[0]}})),Tt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");qn.prototype[e]=function(){return this.__filtered__?new qn(this):this[n](1)}})),qn.prototype.compact=function(){return this.filter(is)},qn.prototype.find=function(e){return this.filter(e).head()},qn.prototype.findLast=function(e){return this.reverse().find(e)},qn.prototype.invokeMap=Zr((function(e,t){return"function"==typeof e?new qn(this):this.map((function(n){return Ir(n,e,t)}))})),qn.prototype.reject=function(e){return this.filter(zi(co(e)))},qn.prototype.slice=function(e,t){e=gl(e);var r=this;return r.__filtered__&&(e>0||t<0)?new qn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=gl(t))<0?r.dropRight(-t):r.take(t-e)),r)},qn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},qn.prototype.toArray=function(){return this.take(h)},Er(qn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),o=Vn[a?"take"+("last"==t?"Right":""):t],i=a||/^find/.test(t);o&&(Vn.prototype[t]=function(){var t=this.__wrapped__,l=a?[1]:arguments,s=t instanceof qn,u=l[0],c=s||Yi(t),d=function(e){var t=o.apply(Vn,It([e],l));return a&&f?t[0]:t};c&&r&&"function"==typeof u&&1!=u.length&&(s=c=!1);var f=this.__chain__,p=!!this.__actions__.length,h=i&&!f,m=s&&!p;if(!i&&c){t=m?t:new qn(this);var v=e.apply(t,l);return v.__actions__.push({func:vi,args:[d],thisArg:n}),new Bn(v,f)}return h&&m?e.apply(this,l):(v=this.thru(d),h?a?v.value()[0]:v.value():v)})})),Tt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Pe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Vn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var a=this.value();return t.apply(Yi(a)?a:[],e)}return this[n]((function(n){return t.apply(Yi(n)?n:[],e)}))}})),Er(qn.prototype,(function(e,t){var n=Vn[t];if(n){var r=n.name+"";Le.call(Mn,r)||(Mn[r]=[]),Mn[r].push({name:t,func:n})}})),Mn[Va(n,2).name]=[{name:"wrapper",func:n}],qn.prototype.clone=function(){var e=new qn(this.__wrapped__);return e.__actions__=Pa(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Pa(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Pa(this.__views__),e},qn.prototype.reverse=function(){if(this.__filtered__){var e=new qn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},qn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Yi(e),r=t<0,a=n?e.length:0,o=function(e,t,n){var r=-1,a=n.length;for(;++r<a;){var o=n[r],i=o.size;switch(o.type){case"drop":e+=i;break;case"dropRight":t-=i;break;case"take":t=Sn(t,e+i);break;case"takeRight":e=wn(e,t-i)}}return{start:e,end:t}}(0,a,this.__views__),i=o.start,l=o.end,s=l-i,u=r?l:i-1,c=this.__iteratees__,d=c.length,f=0,p=Sn(s,this.__takeCount__);if(!n||!r&&a==s&&p==s)return va(e,this.__actions__);var h=[];e:for(;s--&&f<p;){for(var m=-1,v=e[u+=t];++m<d;){var g=c[m],y=g.iteratee,b=g.type,w=y(v);if(2==b)v=w;else if(!w){if(1==b)continue e;break e}}h[f++]=v}return h},Vn.prototype.at=gi,Vn.prototype.chain=function(){return mi(this)},Vn.prototype.commit=function(){return new Bn(this.value(),this.__chain__)},Vn.prototype.next=function(){this.__values__===n&&(this.__values__=ml(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Vn.prototype.plant=function(e){for(var t,r=this;r instanceof Wn;){var a=Vo(r);a.__index__=0,a.__values__=n,t?o.__wrapped__=a:t=a;var o=a;r=r.__wrapped__}return o.__wrapped__=e,t},Vn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof qn){var t=e;return this.__actions__.length&&(t=new qn(this)),(t=t.reverse()).__actions__.push({func:vi,args:[ri],thisArg:n}),new Bn(t,this.__chain__)}return this.thru(ri)},Vn.prototype.toJSON=Vn.prototype.valueOf=Vn.prototype.value=function(){return va(this.__wrapped__,this.__actions__)},Vn.prototype.first=Vn.prototype.head,it&&(Vn.prototype[it]=function(){return this}),Vn}();pt?((pt.exports=mn)._=mn,ft._=mn):dt._=mn}).call(commonjsGlobal)}(lodash,lodash.exports);var ___default=lodash.exports,freeGlobal$1="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root$1=freeGlobal||freeSelf||Function("return this")(),_root=root$1,root=_root,Symbol$3=root.Symbol,_Symbol=Symbol$3,Symbol$2=_Symbol;Symbol$2&&Symbol$2.toStringTag;var Symbol$1=_Symbol;Symbol$1&&Symbol$1.toStringTag;var funcProto=Function.prototype,funcToString=funcProto.toString;funcToString.call(Object);const getBuilderContext=()=>"undefined"==typeof window?{}:Builder.settings.context||Builder.settings;async function fetchAPI(e,t={credentials:"include"}){var n,r={"Content-Type":"application/json"};if(401===(n=((n=getAuthorization())&&(r.Authorization=n),t.headers=Object.assign({},r,t.headers),t.credentials="include",await fetch(""+getRootUrl()+e,t))).status)throw new Error(401);if((r=await n.json()).errors)throw console.error(r.errors),new Error("Failed to fetch API");return r}function getAuthorization(){try{var e=getBuilderContext(),t=e.tenantId,n=e.authToken;return t&&n?`Bearer ${t},`+n:null}catch(e){console.error(e)}}function getRootUrl(e){return getBuilderContext().rootUrl||("undefined"!=typeof window?window.localStorage.getItem("steedos:rootUrl"):"")||e}async function getFieldsTemplate(e,t){0!=t&&(t=!0);let n=["_id"],r=[];for(const a of lodash.exports.isArray(e)?e:lodash.exports.values(e))a.name.indexOf(".")<0&&(!t||"lookup"!=a.type&&"master_detail"!=a.type?n.push(a.alias?a.alias+":"+a.name:a.name):(n.push(""+a.name),r.push(""+a.name)),lodash.exports.includes(["time","date","datetime","boolean","number","currency"],a.type)&&n.push(""+a.name),lodash.exports.includes(["time","filesize","date","datetime","boolean","number","currency","select","file","image","avatar","formula","summary","object","grid"],a.type)&&r.push(""+a.name));return r=lodash.exports.uniq(r),n=lodash.exports.uniq(n),0<r.length?`${n.join(",")},_display:_ui{${r.join(",")}}`:""+n.join(" ")}async function getFindQuery(e,t,n,r){let a=`(top: ${i=r.limit||10})`,o=(t&&(a=`(filters:["_id", "=", "${t}"], top: ${i})`),"data");r&&(r.alias&&(o=r.alias),r.filters&&(a=`(filters:${r.filters})`),r.queryOptions&&(a=`(${r.queryOptions})`));t="";var i=(e.enable_tree&&lodash.exports.includes(lodash.exports.keys(e.fields),"parent")&&lodash.exports.includes(lodash.exports.keys(e.fields),"children")&&(t=",parent,children"),""),l=("cms_files"===e.name&&(i=",versions"),!1===r.count?"":`,count:${e.name}__count(filters:{__filters})`),s=r.moreQueries?.length?","+r.moreQueries.map((function(e){return e.replace(/^{/,"").replace(/}$/,"")})).join(","):"";return{orderBy:"${orderBy}",orderDir:"${orderDir}",pageNo:"${page}",pageSize:"${perPage}",query:`{${o}:${e.name}${a}{${await getFieldsTemplate(n,r.expand)}${t}${i}}${l}${s}}`}}function getApi$2(e){if(!e)return"${context.rootUrl}/graphql"}const Router={getAppPath:({appId:e})=>"/app/"+e,getPagePath(){},getObjectListViewPath:({appId:e,objectName:t,listViewName:n})=>`/app/${e}/${t}/grid/`+n,getObjectDetailPath(e){var{appId:e,objectName:t,recordId:n,_templateType:r}=e;return"JavaScript"===r?`/app/${e}/${t}/view/${n}?main_object=<%=item.objectName%>&main_listview_id=<%=item.listName%>`:`/app/${e}/${t}/view/${n}?main_object=\${objectName}&main_listview_id=\${listName}`},getObjectRelatedViewPath:({appId:e,masterObjectName:t,masterRecordId:n,objectName:r,foreignKey:a})=>`/app/${e}/${t}/${n}/${r}/grid?related_field_name=`+a};function getCreatedInfoTpl(e){return`<div><a href='${Router.getObjectDetailPath({formFactor:e,appId:"admin",objectName:"users",recordId:"${created_by._id}"})}'>\${_display.created_by.label}</a>\${_display.created}</div>`}function getModifiedInfoTpl(e){return`<div><a href='${Router.getObjectDetailPath({formFactor:e,appId:"admin",objectName:"users",recordId:"${modified_by._id}"})}'>\${_display.modified_by.label}</a>\${_display.modified}</div>`}function getNumberTpl(e){return`<div>\${_display.${e.name}}</div>`}function getTimeTpl(e){return`<div>\${_display.${e.name}}</div>`}function getDateTpl(e){return`<div>\${_display.${e.name}}</div>`}function getDateTimeTpl(e){return`<div>\${_display.${e.name}}</div>`}function getUiFieldTpl(e){return`<div>\${_display.${e.name}}</div>`}function getUiFileSizeTpl(e){return`<div>\${_display.${e.name}}</div>`}async function getRefObjectNameFieldName(e){return(await getUISchema(e.reference_to)).NAME_FIELD_KEY||"name"}function getSelectTpl(e){return`<div>\${_display.${e.name}}</div>`}function getNameTplUrl(e,t){return"cms_files"===t.objectName?"${context.rootUrl}/api/files/files/${versions[0]}?download=true":Router.getObjectDetailPath({...t,formFactor:t.formFactor,appId:"${appId}",objectName:t.objectName||"${objectName}",recordId:`\${${t.idFieldName}}`})}function getNameTpl(e,t){return`<a href="${getNameTplUrl(e,t)}">\${${e.name}}</a>`}function getRelatedFieldTpl(e,t){let n="";if(!e.reference_to&&(e.optionsFunction||e._optionsFunction))return`\${${e.name}__label}`;var r=t.onlyDisplayLabel;if(_.isString(e.reference_to)||!e.reference_to)if(e.multiple){let a="<%=item.label%>";r||(a=`<a href="${Router.getObjectDetailPath({formFactor:t.formFactor,appId:"<%=item.appId%>",objectName:"<%=item.objectName%>",recordId:"<%=item.value%>",_templateType:"JavaScript"})}"><%=item.label%></a>`),n=`\n <% if (data._display.${e.name} && data._display.${e.name}.length) { %><% data._display.${e.name}.forEach(function(item) { %> ${a} <% }); %><% } %>\n `}else{let a=`\${_display.${e.name}.label}`;r||(a=`<a href="${Router.getObjectDetailPath({formFactor:t.formFactor,appId:"${appId}",objectName:`\${_display.${e.name}.objectName}`,recordId:`\${_display.${e.name}.value}`})}">\${_display.${e.name}.label}</a>`),n=a}else{let a="<%=item.label%>";r||(a=`<a href="${Router.getObjectDetailPath({formFactor:t.formFactor,appId:"<%=appId%>",objectName:"<%=item.objectName%>",recordId:"<%=item.value%>",_templateType:"JavaScript"})}"><%=item.label%></a>`),n=`\n <% if (data._display.${e.name} && data._display.${e.name}.length) { %><% data._display.${e.name}.forEach(function(item) { %> ${a} <% }); %><% } %>\n `}return n}async function getLookupTpl(e,t){var n,r;return e.reference_to?(n=await getRefObjectNameFieldName(e),e.multiple?(r=Router.getObjectDetailPath({formFactor:t.formFactor,appId:t.appId,objectName:e.reference_to,recordId:"<%=item._id%>",_templateType:"JavaScript"}),`\n <% if (data.${e.name} && data.${e.name}.length) { %><% data.${e.name}.forEach(function(item) { %> <a href="${r}"><%=item.${n}%></a> <% }); %><% } %>\n `):`<a href="${Router.getObjectDetailPath({formFactor:t.formFactor,appId:t.appId,objectName:e.reference_to,recordId:`\${${e.name}._id}`})}">\${${e.name}.${n}}</a>`):getSelectTpl(e)}function getSwitchTpl(e){return`<% if (data.${e.name}) { %>\n <span class="slds-icon_container slds-icon-utility-check slds-current-color" title="<%=data._display.${e.name}%>">\n <span ><%= data._display.${e.name} === "√" ? "<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor' class='w-4 h-4'><path stroke-linecap='round' stroke-linejoin='round' d='M4.5 12.75l6 6 9-13.5' /></svg>" : data._display.${e.name} %></span>\n </span>\n <% } %>`}function getPasswordTpl(e){return`<% if (data.${e.name}) { %>\n <span>······</span>\n <% } %>`}async function getFieldTpl(e,t){if((e.is_name||e.name===t.labelFieldName)&&!t.onlyDisplayLabel)return getNameTpl(e,t);switch(e.type){case"password":return getPasswordTpl(e);case"boolean":case"toggle":return getSwitchTpl(e);case"select":return getSelectTpl(e);case"time":return getTimeTpl(e);case"date":return getDateTpl(e);case"datetime":return getDateTimeTpl(e);case"lookup":case"master_detail":return getRelatedFieldTpl(e,t);case"number":case"currency":return getNumberTpl(e);case"formula":case"summary":return getUiFieldTpl(e);case"filesize":return getUiFileSizeTpl(e)}}async function getListBody(e,t){var n=[];for(const a of e){var r=await getFieldTpl(a,t);let e=r?"tpl":"text";a.hidden||a.extra||n.push({name:a.name,label:a.label,sortable:a.sortable,width:a.width,type:e,tpl:r,toggled:a.toggled})}return{type:"hbox",columns:n}}function getDefaultParams$1(e){return{perPage:e.top||e.perPage||10}}async function getListSchema$1(e,t){return e=(await getListBody(e,t)).columns,{mode:"list",name:"thelist",draggable:!1,headerToolbar:["reload"],defaultParams:getDefaultParams$1(t),syncLocation:!1,keepItemSelectionOnPageChange:!0,checkOnItemClick:!1,labelTpl:"${name}",listItem:{body:[...e],actions:!1===t.actions?null:[{icon:"fa fa-eye",label:"查看",type:"button",actionType:"link",link:Router.getObjectDetailPath({formFactor:t.formFactor,appId:t.appId,objectName:t.tabId,listView:t.listView,recordId:"${_id}"})}]}}}var config={listView:{newRecordMode:"modal",editRecordMode:"modal",perPage:20}};async function getObjectListHeaderFieldsFilterBar(e,t,n){var r=lodash.exports.keys(e.fields);r=lodash.exports.sortBy(lodash.exports.compact(lodash.exports.map(r,(t=>e.fields[t]))),"sort_no");return await getObjectFieldsFilterBarSchema(e,r,n)}const displayAsButton={type:"dropdown-button",icon:"fa fa-table-columns",btnClassName:"antd-Button--iconOnly bg-white p-2 rounded border-gray-300 text-gray-500",align:"right",buttons:[{label:"显示为",children:[{type:"button",label:"表格",onClick:"const url = document.location.pathname + '?display=grid'; props.env.jumpTo(url);"},{type:"button",label:"分栏视图",onClick:"const url = document.location.pathname + '?display=split'; props.env.jumpTo(url);"}]}]};function getObjectHeaderToolbar(e,t,{showDisplayAs:n=!1}={}){return"SMALL"===t?[{type:"tpl",tpl:"${count} 个项目"},{type:"button",align:"right",className:"bg-white p-2 rounded border-gray-300 text-gray-500",label:"",icon:"fa fa-sync",onEvent:{click:{actions:[{actionType:"custom",script:'\n const scope = event.context.scoped;\n var listView = scope.parent.getComponents().find(function(n){\n return n.props.type === "crud";\n });\n listView.handleChangePage(1);\n '}]}}},n?displayAsButton:{}]:["bulkActions",{type:"columns-toggler",className:"hidden"},{type:"tpl",tpl:"${count} 个项目"},{type:"reload",align:"right",className:"bg-white p-2 rounded border-gray-300 text-gray-500"},{label:"",icon:"fa fa-search",type:"button",align:"right",className:"bg-white p-2 rounded border-gray-300 text-gray-500",onEvent:{click:{actions:[{actionType:"custom",script:'\n const scope = event.context.scoped;\n const filterForm = scope.getComponents().find(function(n){\n return n.props.type === "form";\n });\n const filterService = filterForm.context.getComponents().find(function(n){\n return n.props.type === "service";\n });\n filterService.setData({showFieldsFilter: !!!filterService.props.data.showFieldsFilter});\n '}]}}},n?displayAsButton:{}]}function getObjectFooterToolbar(e,t){return"SMALL"===t?["load-more"]:["statistics","pagination"]}async function getObjectFilter(e,t,n){return{title:"",submitText:"",className:"",mode:"normal",wrapWithPanel:!1,body:[await getObjectListHeaderFieldsFilterBar(e,null,n)]}}const AmisFormInputs=["text","date","file","avatar","image","datetime","time","number","currency","percent","password","url","email"];function getAmisStaticFieldType(e,t,n){return t?lodash.exports.includes(["text","image"],e)?"image"===e&&n&&n.multiple?"static-images":"static-"+e:"static":lodash.exports.includes(AmisFormInputs,e)?"input-"+e:e}const getFileTableName=e=>{switch(e.type){case"avatar":return"avatars";case"image":return"images";case"file":return"files"}},getAmisFieldType$1=(e,t)=>getAmisStaticFieldType("avatar"===e.type?"image":e.type,t,{multiple:e.multiple}),getAmisFileReadonlySchema=e=>{var t=e.type,n=getAmisFieldType$1(e,!0);return _.includes(["avatar","image"],t)?{type:n,defaultImage:"",enlargeAble:!0,showToolbar:!0}:"file"===t?{type:n,tpl:`\n <% let fileData = data.${e.name}; if (fileData) { %>\n <% if(!Array.isArray(fileData)){ fileData = [fileData]} %>\n <% fileData.forEach(function(item) { %> \n <a href='<%= item.url %>' target='_self' class='block'><%= item.name %></a> \n <% });} %>`}:void 0},getAmisFileEditSchema=e=>{var t=getFileTableName(e);t={type:getAmisFieldType$1(e,!1),useChunk:!1,receiver:{method:"post",url:"${context.rootUrl}/s3/"+t,data:{$:"$$",context:"${context}"},adaptor:`\n const { context } = api.body; \n var rootUrl = context.rootUrl + "/api/files/${t}/";\n payload = {\n status: response.status == 200 ? 0 : response.status,\n msg: response.statusText,\n data: {\n value: payload._id,\n name: payload.original.name,\n url: rootUrl + payload._id,\n }\n }\n return payload;\n `,headers:{Authorization:"Bearer ${context.tenantId},${context.authToken}"}}};return e.multiple&&(t.multiple=!0,t.joinValues=!1,t.extractValue=!0),t},getAmisFileSchema=(e,t)=>(t?getAmisFileReadonlySchema:getAmisFileEditSchema)(e);async function getTableColumns(e,t){var n=[{name:"_index",type:"text",width:32,placeholder:""}];for(const a of e)if(!a.is_name&&a.name!==t.labelFieldName||"cms_files"!==t.objectName)if("toggle"===a.type)n.push({type:"switch",name:a.name,label:a.label,width:a.width,toggled:a.toggled,disabled:!0,className:"whitespace-nowrap"});else if("avatar"===a.type||"image"===a.type||"file"===a.type)n.push({type:"switch",name:a.name,label:a.label,width:a.width,toggled:a.toggled,disabled:!0,className:"whitespace-nowrap",...getAmisFileReadonlySchema(a)});else{var r=await getFieldTpl(a,t);let e="text";r?e="tpl":"html"===a.type&&(e="markdown"),a.hidden||a.extra||n.push({name:a.name,label:a.label,sortable:a.sortable,width:a.width,type:e,tpl:r,toggled:a.toggled,className:"textarea"===a.type?"min-w-56 whitespace-pre-wrap textarea":"whitespace-nowrap",html:"html"===a.type||null})}else r=`\n var data = event.data;\n var file_name = data.versions ? data.name : "${a.label}";\n var file_id = data._id;\n SteedosUI.previewFile && SteedosUI.previewFile({file_name, file_id});\n `,n.push({type:"button",label:`<%=data.versions ? data.name : "${a.label}"%>`,className:"whitespace-nowrap",level:"link",onEvent:{click:{actions:[{args:{api:{url:"${context.rootUrl}/api/files/files/${versions[0]}?download=true",method:"get",headers:{Authorization:"Bearer ${context.tenantId},${context.authToken}"}}},actionType:"download",expression:"!!!window?.nw?.require"},{args:{},actionType:"custom",script:r,expression:"!!window?.nw?.require"}]}}});return n}function getMobileLines(e){let t=[],n=[],r=!1,a=!0,o="",i="flex items-center justify-between h-[20px]";return e.forEach((function(e){r&&t.length<2&&(t.push({type:"wrapper",body:n,size:"none",className:i}),n=[]),a?(o="steedos-listview-item-left truncate",e.field.is_wide&&(o="steedos-listview-item-wide truncate"),0===t.length&&(o+=" font-bold text-gray-800")):o="steedos-listview-item-right truncate ml-2 flex flex-shrink-0",n.push({type:"tpl",tpl:e.tpl,className:o}),r=a=!!e.field.is_wide||!a})),n.length&&t.length<2&&t.push({type:"wrapper",body:n,size:"none",className:i}),t}async function getMobileTableColumns(e,t){var n=[];let r={};var a=[];for(const n of e){let e="";e=(e=n.is_name||n.name===t.labelFieldName?(r=n,t.onlyDisplayLabel=!0,await getFieldTpl(n,t)):"avatar"===n.type||"image"===n.type||"file"===n.type?`\${_display.${n.name}.name}`:("lookup"!==n.type&&"master_detail"!==n.type||(t.onlyDisplayLabel=!0),await getFieldTpl(n,t)))||`\${${n.name}}`,n.hidden||n.extra||a.push({field:n,tpl:e})}e=getNameTplUrl(r,t);var o=getMobileLines(a);return n.push({name:r.name,label:r.label,sortable:r.sortable,type:"button",level:"link",actionType:"link",link:e,innerClassName:"steedos-listview-item block text-gray-500",body:{type:"wrapper",body:o,size:"none",className:"p-1"}}),n}function getDefaultParams(e){return{perPage:e.top||e.perPage||config.listView.perPage}}function getButtonVisibleOn(e){let t=e.visible;return e._visible&&(t=e._visible),(t=lodash.exports.isBoolean(t)?t.toString():t)?t.trim().startsWith("function")?t+"(objectName, _id, recordPermissions, data)":t:"amis_button"===e.type&&(e=e.amis_schema)&&e.body&&0<e.body.length?e.body[0].visibleOn:void 0}async function getTableOperation(e){e=e.buttons;const t=[];if(lodash.exports.each(e,(e=>{lodash.exports.isBoolean(e.visible)&&(e.visible=e.visible.toString()),t.push({type:"steedos-object-button",name:e.name,objectName:e.objectName,visibleOn:getButtonVisibleOn(e),className:"antd-Button--default"})})),!(t.length<1))return{type:"operation",label:"操作",fixed:"right",labelClassName:"text-center",className:"text-center steedos-listview-operation w-20",buttons:[{type:"steedos-dropdown-button",label:"xxx",buttons:t,placement:"bottomRight",overlayClassName:"shadow !min-w-[160px]",trigger:["click"],id:"u:c2140a365019",onOpenApi:{url:"${context.rootUrl}/service/api/@${objectName}/recordPermissions/${_id}",method:"get",data:{$:"$$",objectName:"${objectName}",listViewId:"${listViewId}",appId:"${appId}",formFactor:"${formFactor}",context:"${context}"},responseData:{recordPermissions:"$$"},headers:{Authorization:"Bearer ${context.tenantId},${context.authToken}"},adaptor:"\n payload.recordPermissions = payload;\n return payload;\n "}}]}}async function getTableSchema$1(e,t){let n=[];return"SMALL"===(t=t||{}).formFactor?n=await getMobileTableColumns(e,t):(n=await getTableColumns(e,t)).push(await getTableOperation(t)),{mode:"table",name:"thelist",headerToolbarClassName:"py-2 px-2 border-gray-300 bg-gray-100 border-solid border-b",className:"",draggable:!1,defaultParams:getDefaultParams(t),columns:n,syncLocation:!1,keepItemSelectionOnPageChange:!0,checkOnItemClick:!1,labelTpl:`\${${t.labelFieldName}}`,autoFillHeight:!1,columnsTogglable:!1}}const refUsersObjectName="space_users",refOrgsObjectName="organizations";async function getSource(e,t){var n,r=await getFindQuery({name:refOrgsObjectName},null,[{name:"_id",alias:"value"},{name:"name",alias:"label"},{name:"children"}],{alias:"leftOptions",filters:"{__filters}"});(n=((n=(r.query=r.query.replace(/,count\:.+/,"}"),await getFindQuery({name:refOrgsObjectName},null,[{name:"_id",alias:"ref"}],{alias:"children",filters:"{__filters}"}))).query=n.query.replace(/,count\:.+/,"}"),r.query=r.query.replace(/}$/,","+n.query.replace(/{(.+)}/,"$1}")),await getFindQuery({name:refUsersObjectName},null,[{name:"user"},{name:"name"}],{alias:"defaultValueOptions",filters:"{__options_filters}"}))).query=n.query.replace(/,count\:.+/,"}"),r.query=r.query.replace(/}$/,","+n.query.replace(/{(.+)}/,"$1}"));let a=""+e.name;return e._prefix&&(a=""+e._prefix+e.name),t.fieldNamePrefix&&(a=""+t.fieldNamePrefix+a),r.$value="$"+a,n=`\n console.log("select user field '${e.name}' requestAdaptor api:", api);\n var filters = [['parent', '=', null]];\n api.data.query = api.data.query.replace(/{__filters}/g, JSON.stringify(filters));\n var defaultValue = api.data.$value;\n var optionsFiltersOp = "${e.multiple?"in":"="}";\n var optionsFilters = [["user", optionsFiltersOp, []]];\n if (defaultValue) { \n optionsFilters = [["user", optionsFiltersOp, defaultValue]];\n }\n api.data.query = api.data.query.replace(/{__options_filters}/g, JSON.stringify(optionsFilters));\n return api;\n `,{method:"post",url:getApi$2(),requestAdaptor:n,adaptor:"\n const data = payload.data;\n data.children = data.children.map(function (child) { \n // child.defer = !!(child.children && child.children.length);\n child.defer = true;\n delete child.children;\n return child;\n });\n data.leftOptions = data.leftOptions.map(function (leftOption) {\n leftOption.defer = !!(leftOption.children && leftOption.children.length);\n delete leftOption.children;\n return leftOption;\n });\n var defaultValueOptions = data.defaultValueOptions;\n data.children = _.union(data.children, defaultValueOptions);\n delete data.defaultValueOptions;\n payload.data = { options: [data] };\n return payload;\n ",data:r,headers:{Authorization:"Bearer ${context.tenantId},${context.authToken}"}}}async function getDeferApi(e,t){var n=await getFindQuery({name:"{__object_name}"},null,[],{alias:"options",queryOptions:'filters: {__filters}, sort: "{__sort}"'});let r=e.filters;return"function"==typeof(r="string"==typeof r?(r=new Function("return "+r))():r)&&(r=r(e)),n.query=n.query.replace(/,count\:.+/,"}"),n.query=n.query.replace("{_id}","{{__fields}}"),e=`\n var dep = api.query.dep;\n var ref = api.query.ref;\n var term = api.query.term;\n var filters;\n var objectName;\n var fields;\n var sort = "";\n if (dep) {\n objectName = "${refOrgsObjectName}";\n fields = "value:_id,label:name,children";\n filters = [['parent', '=', dep]];\n sort = "${t.orgsSort}";\n }\n else if (ref) { \n objectName = "${refUsersObjectName}";\n // 这里要额外把字段转为value和label是因为valueField和labelField在deferApi/searchApi中不生效,所以字段要取两次\n fields = "user,name,value:user,label:name";\n filters = [['user_accepted', '=', true]];\n var defaultFilters = ${r&&JSON.stringify(r)};\n if(defaultFilters){\n filters.push(defaultFilters);\n }\n filters.push(['organizations_parents', '=', ref]);\n sort = "${t.usersSort}";\n }\n api.data.query = api.data.query.replace(/{__object_name}/g, objectName).replace(/{__fields}/g, fields).replace(/{__filters}/g, JSON.stringify(filters)).replace('{__sort}', sort.trim());\n return api;\n `,{method:"post",url:getApi$2()+"?ref=${ref}&dep=${value}",requestAdaptor:e,adaptor:"\n if (api.query.dep) {\n // 展开组织时才需要根据children值设置defer属性\n const data = payload.data;\n data.options = data.options.map(function (option) {\n option.defer = !!(option.children && option.children.length);\n delete option.children;\n return option;\n });\n payload.data = data;\n }\n return payload;\n ",data:n,headers:{Authorization:"Bearer ${context.tenantId},${context.authToken}"}}}async function getSearchApi(e,t){var n=await getFindQuery({name:refUsersObjectName},null,[{name:"user"},{name:"name"},{name:"user",alias:"value"},{name:"name",alias:"label"}],{alias:"options",queryOptions:'filters: {__filters}, sort: "{__sort}"'});e=`\n var term = api.query.term;\n var filters;\n var sort = "";\n if (term) { \n filters = [['user_accepted', '=', true]];\n var defaultFilters = ${(e=(n.query=n.query.replace(/,count\:.+/,"}"),e.filters))&&JSON.stringify(e)};\n if(defaultFilters){\n filters.push(defaultFilters);\n }\n var fieldsForSearch = ["name", "username", "email", "mobile"];\n var termFilters = [];\n fieldsForSearch.forEach(function (field) {\n termFilters.push([field, 'contains', term]);\n termFilters.push("or");\n });\n termFilters.pop();\n filters.push(termFilters);\n sort = "${t.usersSort}";\n }\n api.data.query = api.data.query.replace(/{__filters}/g, JSON.stringify(filters)).replace('{__sort}', sort.trim());\n return api;\n `;return{method:"post",url:getApi$2()+"?term=${term}",requestAdaptor:e,data:n,headers:{Authorization:"Bearer ${context.tenantId},${context.authToken}"}}}function getRefListViewSort(e){e=lodash.exports.find(e.list_views,((e,t)=>"all"===t));let t="";return e?getListViewSort(e):t}async function getSelectUserSchema(e,t,n){if(!e)return{};n=n||{};var r={type:getAmisStaticFieldType("select",t)};if(t)r.tpl=await getLookupTpl(e,n);else{t=await getUISchema(refUsersObjectName),n.usersSort=getRefListViewSort(t),t=await getUISchema(refOrgsObjectName),n.orgsSort=getRefListViewSort(t),Object.assign(r,{labelField:"name",valueField:"user",multiple:e.multiple,searchable:e.searchable,selectMode:"associated",leftMode:"tree",extractValue:!0,clearable:!0,source:await getSource(e,n),deferApi:await getDeferApi(e,n),searchApi:await getSearchApi(e,n)}),e.multiple&&Object.assign(r,{joinValues:!1});let a=e.defaultValue;!lodash.exports.has(e,"defaultValue")||lodash.exports.isString(a)&&a.startsWith("{")||(lodash.exports.isString(a)&&a.startsWith("{{")&&(a="$"+a.substring(1,a.length-1)),r.value=a),"boolean"!=typeof r.searchable&&(r.searchable=!0),(t=e.onEvent)&&(r.onEvent=t)}return r}const getReferenceTo=async e=>{let t=e.reference_to;if(t){"users"===t&&(t="space_users",e.reference_to_field="user");var n=await getUISchema(t);if(!n)return null;let r=null,a=e.reference_to_field;return a=a||n.idFieldName||"_id",r="_id"===a?{name:"_id",label:"ID",type:"text",toggled:!1}:n.fields[a]||{name:a},{objectName:t,valueField:r,labelField:n.fields[n.NAME_FIELD_KEY||"name"],NAME_FIELD_KEY:n.NAME_FIELD_KEY||"name"}}};async function lookupToAmisPicker(e,t,n){var r=await getReferenceTo(e);if(r){const i=await getUISchema(r.objectName),l=[];let s=0;const u=[],c=[];var a=lodash.exports.find(i.list_views,((e,t)=>"all"===t));a&&a.columns?lodash.exports.each(a.columns,(function(e){lodash.exports.isString(e)&&i.fields[e]?c.push(i.fields[e]):lodash.exports.isObject(e)&&i.fields[e.field]&&c.push(Object.assign({},i.fields[e.field],{width:e.width,wrap:e.wrap}))})):lodash.exports.each(i.fields,((e,t)=>{"_id"==t||e.hidden||(lodash.exports.has(e,"name")||(e.name=t),c.push(e))})),lodash.exports.each(lodash.exports.sortBy(c,"sort_no"),(function(e){s<5&&(lodash.exports.find(l,(function(t){return t.name===e.name}))||(s++,l.push(e),e.searchable&&u.push(e.name)))}));const d={[r.labelField.name]:r.labelField,[r.valueField.name]:r.valueField};lodash.exports.each(l,(e=>{e.hidden||(d[e.name]=e)}));let f="";if(a&&(f=getListViewSort(a)),(a=await getApi(i,null,d,{expand:!0,alias:"rows",queryOptions:'filters: {__filters}, top: {__top}, skip: {__skip}, sort: "{__sort}"'})).url){const t=[],n=[];lodash.exports.each(e.depend_on,(e=>{t.push(`depend_on_${e}=\${${e}}`),n.push("this."+e)})),0<t.length&&(a.url=a.url+"?"+t.join("&"),a.sendOn=""+n.join(" && "))}a.data.$term="$term",a.data.$self="$$",a.requestAdaptor=`\n const selfData = JSON.parse(JSON.stringify(api.data.$self));\n var filters = [];\n var pageSize = api.data.pageSize || 10;\n var pageNo = api.data.pageNo || 1;\n var skip = (pageNo - 1) * pageSize;\n var orderBy = api.data.orderBy || '';\n var orderDir = api.data.orderDir || '';\n var sort = orderBy + ' ' + orderDir;\n sort = orderBy ? sort : "${f}";\n var allowSearchFields = ${JSON.stringify(u)};\n if(api.data.$term){\n filters = [["name", "contains", "'+ api.data.$term +'"]];\n }else if(selfData.op === 'loadOptions' && selfData.value){\n if(selfData.value?.indexOf(',') > 0){\n filters = [["${r.valueField.name}", "=", selfData.value.split(',')]];\n }else{\n filters = [["${r.valueField.name}", "=", selfData.value]];\n }\n }\n\n var searchableFilter = [];\n _.each(selfData, (value, key)=>{\n if(!_.isEmpty(value) || _.isBoolean(value)){\n if(_.startsWith(key, '__searchable__between__')){\n searchableFilter.push([\`\${key.replace("__searchable__between__", "")}\`, "between", value])\n }else if(_.startsWith(key, '__searchable__')){\n if(_.isString(value)){\n searchableFilter.push([\`\${key.replace("__searchable__", "")}\`, "contains", value])\n }else{\n searchableFilter.push([\`\${key.replace("__searchable__", "")}\`, "=", value])\n }\n }\n }\n });\n\n if(searchableFilter.length > 0){\n if(filters.length > 0 ){\n filters = [filters, 'and', searchableFilter];\n }else{\n filters = searchableFilter;\n }\n }\n\n if(allowSearchFields){\n allowSearchFields.forEach(function(key){\n const keyValue = selfData[key];\n if(keyValue){\n filters.push([key, "contains", keyValue]);\n }\n })\n }\n\n const filtersFunction = ${e._filtersFunction};\n\n if(filtersFunction){\n const _filters = filtersFunction(filters, api.data.$self.__super.__super);\n if(_filters && _filters.length > 0){\n filters.push(_filters);\n }\n }\n\n api.data.query = api.data.query.replace(/{__filters}/g, JSON.stringify(filters)).replace('{__top}', pageSize).replace('{__skip}', skip).replace('{__sort}', sort.trim());\n return api;\n `,a.adaptor=`\n const enable_tree = ${i.enable_tree};\n if(enable_tree){\n const records = payload.data.rows;\n const treeRecords = [];\n const getChildren = (records, childrenIds)=>{\n if(!childrenIds){\n return;\n }\n const children = _.filter(records, (record)=>{\n return _.includes(childrenIds, record._id)\n });\n _.each(children, (item)=>{\n if(item.children){\n item.children = getChildren(records, item.children)\n }\n })\n return children;\n }\n\n _.each(records, (record)=>{\n if(!record.parent){\n treeRecords.push(Object.assign({}, record, {children: getChildren(records, record.children)}));\n }\n });\n payload.data.rows = treeRecords;\n }\n return payload;\n `;let p=20,h=(i.paging&&!1===i.paging.enabled&&(p=1e3),null);"SMALL"===n.formFactor?h=await getListSchema$1(l,{top:p,...n,actions:!1}):((h=await getTableSchema$1(l,{labelFieldName:i.NAME_FIELD_KEY,top:p,...n})).headerToolbar=getObjectHeaderToolbar(i,n.formFactor),h.footerToolbar=getObjectFooterToolbar(),!1!==n.filterVisible&&(o=n.filterLoopCount||0,o++,h.filter=await getObjectFilter(i,d,{isLookup:!0,...n,filterLoopCount:o})),h.data=Object.assign({},h.data,{"&":"$$",objectName:i.name,uiSchema:i,listName:"all",isLookup:!0}));var o={type:getAmisStaticFieldType("picker",t),labelField:r.labelField.name,valueField:r.valueField.name,modalMode:"dialog",source:a,size:"lg",pickerSchema:h,joinValues:!1,extractValue:!0};return e.multiple&&(o.multiple=!0,o.extractValue=!0),t&&(o.tpl=await getLookupTpl(e,n)),o}}async function lookupToAmisSelect(e,t,n){var r=await getReferenceTo(e),a=r&&r.valueField?.name||"_id";let o;r?(i=await getFindQuery({name:r.objectName},null,{[r.labelField.name]:Object.assign({},r.labelField,{alias:"label"}),[r.valueField.name]:Object.assign({},r.valueField,{alias:"value"})},{alias:"defaultValueOptions",filters:"{__options_filters}",count:!1}),(o=await getApi({name:r.objectName},null,{[r.labelField.name]:Object.assign({},r.labelField,{alias:"label"}),[r.valueField.name]:Object.assign({},r.valueField,{alias:"value"})},{expand:!1,alias:"options",queryOptions:'filters: {__filters}, top: {__top}, sort: "{__sort}"',moreQueries:[i.query]})).adaptor='\n const data = payload.data;\n var defaultValueOptions = data.defaultValueOptions;\n // 字段值下拉选项合并到options中\n data.options = _.unionWith(defaultValueOptions, data.options, function(a,b){\n return a["value"]=== b["value"];\n });\n delete data.defaultValueOptions;\n payload.data.options = data.options;\n return payload;\n '):o={method:"post",url:getApi$2(),data:{query:'{objects(filters: ["_id", "=", "-1"]){_id}}',$:"$$"}};var i=(i=r&&await getUISchema(r.objectName))&&lodash.exports.find(i.list_views,((e,t)=>"all"===t));let l="";if(i&&(l=getListViewSort(i)),o.url){const t=[],n=[];lodash.exports.each(e.depend_on,(e=>{t.push(`depend_on_${e}=\${${e}}`),n.push("this."+e)})),0<t.length&&(o.url=o.url+"?"+t.join("&"),o.sendOn=""+n.join(" && "))}o.data.$term="$term",o.data.$value=n.isRefToMutiple?`$${e.name}.ids`:"$"+e.name,lodash.exports.each(e.depend_on,(function(e){o.data[e]="$"+e})),o.data.$="$$",o.data.rfield="${object_name}",o.requestAdaptor=`\n var filters = [];\n var top = 10;\n if(api.data.$term){\n filters = [["${r?.NAME_FIELD_KEY||"name"}", "contains", api.data.$term]];\n }\n // else if(api.data.$value){\n // filters = [["_id", "=", api.data.$value]];\n // }\n\n const filtersFunction = ${e._filtersFunction};\n\n if(filtersFunction){\n const _filters = filtersFunction(filters, api.data.$);\n if(_filters && _filters.length > 0){\n filters.push(_filters);\n }\n }\n var sort = "${l}";\n api.data.query = api.data.query.replace(/{__filters}/g, JSON.stringify(filters)).replace('{__top}', top).replace('{__sort}', sort.trim());\n\n var defaultValue = api.data.$value;\n var optionsFiltersOp = "${e.multiple?"in":"="}";\n var optionsFilters = [["${a}", optionsFiltersOp, []]];\n if (defaultValue && !api.data.$term) { \n // 字段值单独请求,没值的时候在请求中返回空\n optionsFilters = [["${a}", optionsFiltersOp, defaultValue]];\n }\n api.data.query = api.data.query.replace(/{__options_filters}/g, JSON.stringify(optionsFilters));\n return api;\n `,r&&r.labelField.name,r&&r.valueField.name,e._optionsFunction&&(o.adaptor=`\n payload.data.options = eval(${e._optionsFunction})(api.data.$);\n return payload;\n `),i={type:getAmisStaticFieldType("select",t),joinValues:!1,extractValue:!0,source:o,autoComplete:o,searchable:!0};let s=e.defaultValue;return!lodash.exports.has(e,"defaultValue")||lodash.exports.isString(e.defaultValue)&&e.defaultValue.startsWith("{")||(lodash.exports.isString(s)&&s.startsWith("{{")&&(s="$"+s.substring(1,s.length-1)),i.value=s),e.multiple&&(i.multiple=!0,i.extractValue=!0),t&&(i.tpl=await getLookupTpl(e,n)),i}async function getApi(e,t,n,r){return e=await getFindQuery(e,t,n,r),{method:"post",url:getApi$2(),data:e,headers:{Authorization:"Bearer ${context.tenantId},${context.authToken}"}}}async function lookupToAmis(e,t,n){var r,a;return t?{type:getAmisStaticFieldType("picker",t),tpl:getRelatedFieldTpl(e,n)}:!e.reference_to||lodash.exports.isString(e.reference_to)||t?((r=await getReferenceTo(e))?(a=await getUISchema(r.objectName),"space_users"===r.objectName&&"user"===e.reference_to_field?lookupToAmisSelectUser:1==a.enable_enhanced_lookup&&lodash.exports.isEmpty(e.depend_on)?lookupToAmisPicker:lookupToAmisSelect):lookupToAmisSelect)(e,t,n):{type:"steedos-field-lookup",field:e,readonly:t,ctx:{}}}async function lookupToAmisSelectUser(e,t,n){return getSelectUserSchema(e,t,n)}const getMarkdownFieldSchema=(e,t,n)=>t?{type:"markdown",name:e.name,options:{linkify:!0,html:!0,breaks:!0}}:{type:"group",body:[{type:"editor",name:e.name,language:"markdown"},{type:"markdown",name:e.name,options:{linkify:!0,html:!0,breaks:!0}}]},getHtmlFieldSchema=(e,t,n)=>t?{type:"html",name:e.name}:{type:"input-rich-text",name:e.name},OMIT_FIELDS=["created","created_by","modified","modified_by"];function getBaseFields(e){let t="m-1";return[{name:"createdInfo",label:"创建人",type:"static",labelClassName:"text-left",className:t=e?""+t:t,tpl:getCreatedInfoTpl()},{name:"modifiedInfo",label:"修改人",type:"static",labelClassName:"text-left",className:t,tpl:getModifiedInfoTpl()}]}function getAmisFieldType(e){switch(e.type){case"text":case"autonumber":return"text";case"textarea":return"textarea";case"html":return"html";case"markdown":return"markdown";case"select":case"lookup":return"select";case"boolean":return"checkbox";case"date":return"date";case"datetime":return"datetime";case"number":case"currency":case"percent":return"number";case"password":return"password";case"master_detail":return"picker";case"url":return"url";case"email":return"email";case"image":return"image";case"formula":case"summary":break;case"grid":return"table";default:console.log("convertData default",e.type)}}function getObjectFieldSubFields(e,t){var n=Object.assign({subFields:[]},e);t=lodash.exports.filter(t,(function(t){var n=t.name.startsWith(e.name+".")&&lodash.exports.split(t.name,".").length<3;return n&&(t._prefix=e.name+"."),n}));return n.subFields=t,n}function getGridFieldSubFields(e,t){var n=Object.assign({subFields:[]},e);t=lodash.exports.filter(t,(function(t){var n=t.name.startsWith(e.name+".");return n&&(t._prefix=e.name+"."),n}));return n.subFields=t,n}function getPermissionFields(e,t){const n=[],r=[];return lodash.exports.each(e.fields,((e,t)=>{lodash.exports.has(e,"name")||(e.name=t),r.push(e)})),lodash.exports.each(lodash.exports.sortBy(r,"sort_no"),(function(e){e.hidden||n.push(Object.assign({},e,{permission:{allowEdit:!0}}))})),n}function getSelectFieldOptions(e){const t=e.data_type||"text",n=[];return lodash.exports.each(e.options,(e=>{switch(t){case"number":n.push({label:e.label,value:Number(e.value)});break;case"text":n.push({label:e.label,value:String(e.value)});break;case"boolean":n.push({label:e.label,value:"false"!==e.value})}})),n}async function convertSFieldToAmisField(e,t,n){if(!lodash.exports.includes(OMIT_FIELDS,e.name)||1==n.showSystemFields){var r,a={name:n.fieldNamePrefix?""+n.fieldNamePrefix+e.name:e.name,label:e.label,labelRemark:e.inlineHelpText,required:(lodash.exports.has(n,"required")?n:e).required};let u={};switch(e.type){case"text":u.type=getAmisStaticFieldType("text",t);break;case"textarea":u.type=getAmisStaticFieldType("textarea",t),u.tpl=`<%=(data.${e.name} || "").split("\\n").join('<br>')%>`;break;case"html":u=getHtmlFieldSchema(e,t);break;case"markdown":u=getMarkdownFieldSchema(e,t);break;case"select":u={type:getAmisStaticFieldType("select",t),joinValues:!1,options:getSelectFieldOptions(e),extractValue:!0,clearable:!0,labelField:"label",valueField:"value",tpl:t?getSelectTpl(e):null};let c=e.defaultValue;!lodash.exports.has(e,"defaultValue")||lodash.exports.isString(e.defaultValue)&&e.defaultValue.startsWith("{")||(lodash.exports.isString(c)&&c.startsWith("{{")&&(c="$"+c.substring(1,c.length-1)),r=e.data_type||"text",null!=c&&("text"===r?u.value=String(c):"number"===r?u.value=Number(c):"boolean"===r&&(u.value="false"!==c))),e.multiple&&(u.multiple=!0,u.extractValue=!0);break;case"boolean":u={type:getAmisStaticFieldType("checkbox",t),tpl:t?getSwitchTpl(e):null};break;case"input-date-range":u={type:"input-date-range",inputFormat:"YYYY-MM-DD",format:"YYYY-MM-DDT00:00:00.000[Z]",tpl:t?getDateTpl(e):null,joinValues:!1};break;case"date":u={type:getAmisStaticFieldType("date",t),inputFormat:"YYYY-MM-DD",format:"YYYY-MM-DDT00:00:00.000[Z]",tpl:t?getDateTpl(e):null};break;case"input-datetime-range":u={type:"input-datetime-range",inputFormat:"YYYY-MM-DD HH:mm",format:"YYYY-MM-DDTHH:mm:ss.SSSZ",tpl:t?getDateTimeTpl(e):null,utc:!0,joinValues:!1};break;case"datetime":u={type:getAmisStaticFieldType("datetime",t),inputFormat:"YYYY-MM-DD HH:mm",format:"YYYY-MM-DDTHH:mm:ss.SSSZ",tpl:t?getDateTimeTpl(e):null,utc:!0};break;case"input-time-range":u={type:"input-time-range",inputFormat:"HH:mm",timeFormat:"HH:mm",format:"1970-01-01THH:mm:00.000[Z]",tpl:t?getDateTimeTpl(e):null,joinValues:!1};break;case"time":u={type:getAmisStaticFieldType("time",t),inputFormat:"HH:mm",timeFormat:"HH:mm",format:"1970-01-01THH:mm:00.000[Z]",tpl:t?getDateTimeTpl(e):null};break;case"currency":case"number":u=t?{type:"static-tpl",tpl:getNumberTpl(e)}:{type:getAmisStaticFieldType("number",t),min:e.min,max:e.max,precision:e.scale};break;case"input-array":u=Object.assign({},e,a);break;case"input-range":u={type:"input-range",min:e.min,max:e.max,value:[0,0],multiple:!0,showInput:!0};break;case"percent":u={type:getAmisStaticFieldType("number",t),min:e.min,max:e.max,precision:e.scale};break;case"password":u={type:getAmisStaticFieldType("password",t),tpl:t?getPasswordTpl(e):null};break;case"lookup":case"master_detail":u=await lookupToAmis(e,t,n);break;case"autonumber":t&&(u={type:"static-text"});break;case"url":u={type:getAmisStaticFieldType("url",t)};break;case"email":u={type:getAmisStaticFieldType("email",t)};break;case"avatar":case"image":case"file":u=getAmisFileSchema(e,t);break;case"formula":case"summary":t&&(u.type=getAmisStaticFieldType(e.data_type,t));break;case"code":u={type:"editor",language:e.language,value:e.defaultValue||""};break;case"toggle":u={type:"switch",name:e.name,label:e.label,width:e.width,toggled:e.toggled,disabled:t};break;case"grid":if(e.subFields){u={type:"input-table",showIndex:!0,columnsTogglable:!1,strictMode:!1,affixHeader:!1,editable:!t,addable:!t,removable:!t,draggable:!t,columns:[]};for(const r of e.subFields){var o=r.name.replace(`${e._prefix||""}${e.name}.$.`,"").replace(e.name+".",""),i=await convertSFieldToAmisField(Object.assign({},r,{name:o}),t,n);i&&(delete i.name,delete i.label,u.columns.push({name:o,label:r.label,quickEdit:!t&&i}))}}break;case"object":if(e.subFields)for(var l of(u={type:"combo",items:[]},e.subFields)){let r=l.name.replace(e.name+".$.","").replace(e.name+".","");"grid"===l.type?l=await getGridFieldSubFields(l,n.__permissionFields):t&&(r=e.name+"."+r);var s=await convertSFieldToAmisField(Object.assign({},l,{name:r}),t,n);s&&(delete s.name,delete s.label,u.items.push(Object.assign({},s,{name:r,label:l.label})))}}return lodash.exports.isEmpty(u)?void 0:(e.is_wide||"group"===u.type?u.className="col-span-2 m-1":u.className="m-1",t&&(u.className=u.className+" md:border-b"),t&&(u.quickEdit=!1),e.visible_on&&(e.visible_on.startsWith("{{")?u.visibleOn=""+e.visible_on.substring(2,e.visible_on.length-2).replace(/formData./g,"data."):u.visibleOn=""+e.visible_on.replace(/formData./g,"data.")),"group"===u.type?(u.body[0]=Object.assign({},a,u.body[0],{labelClassName:"text-left",clearValueOnHidden:!0,fieldName:e.name}),u):Object.assign({},a,u,{labelClassName:"text-left",clearValueOnHidden:!0,fieldName:e.name}))}}async function getFieldSearchable(e,t,n){var r=n.filterLoopCount||0;let a=e,o=("grid"===a.type?a=await getGridFieldSubFields(e,t):"object"===e.type&&(a=await getObjectFieldSubFields(e,t)),"__searchable__");if(a.name.indexOf(".")<0&&(e=lodash.exports.cloneDeep(a),lodash.exports.includes(["textarea","html","code","autonumber"],a.type)&&(e.type="text"),"number"!==a.type&&"currency"!==a.type||(e.type="input-array",e.inline=!0,e.addable=!1,e.removable=!1,e.value=[null,null],e.items={type:"input-number"},e.is_wide=!0,o+="between__"),"date"===a.type&&(e.type="input-date-range",e.is_wide=!0,o+="between__"),"datetime"===a.type&&(e.type="input-datetime-range",e.is_wide=!0,o+="between__"),"time"===a.type&&(e.type="input-time-range",e.is_wide=!0,o+="between__"),"users"===a.reference_to&&(e.reference_to="space_users",e.reference_to_field="user"),e.readonly=!1,e.disabled=!1,e.multiple=!0,e.is_wide=!1,e.defaultValue=void 0,t=await convertSFieldToAmisField(e,!1,Object.assign({},n,{fieldNamePrefix:o,required:!1,showSystemFields:!0,filterVisible:r<5}))))return t}async function getObjectFieldsFilterFormSchema(e,t,n){n=n||{};var r,a,o=[];for(r of t)lodash.exports.includes(["grid","avatar","image","object","[object]","[Object]","[grid]","[text]","audio","file"],r.type)||(delete r.defaultValue,delete r.required,delete r.is_wide,delete r.readonly,delete r.hidden,delete r.omit,(a=await getFieldSearchable(r,t,n))&&o.push(a));return lodash.exports.map(o,"name"),n.enableSearchableFieldsVisibleOn&&o.forEach((function(e){e.visibleOn=`this.filterFormSearchableFields && this.filterFormSearchableFields.indexOf("${e.fieldName}") > -1`})),{title:"",type:"form",name:"listview-filter-form",id:"listview_filter_form_"+e.name,mode:"normal",wrapWithPanel:!1,className:"sm:grid sm:gap-2 sm:grid-cols-4 mb-2",data:{"&":"${filterFormValues || {}}",...n.initData},body:o}}async function getObjectFieldsFilterBarSchema(e,t,n){return n=n||{},t=await getObjectFieldsFilterFormSchema(e,t,Object.assign({},{enableSearchableFieldsVisibleOn:!0},n)),{type:"service",name:"service_listview_filter_form",data:{},id:"service_listview_filter_form_"+e.name,dataProvider:{inited:'\n const objectName = data.objectName;\n const isLookup = data.isLookup;\n const listViewId = data.listViewId;\n let searchableFieldsStoreKey = location.pathname + "/searchable_fields/";\n if(isLookup){\n searchableFieldsStoreKey += "lookup/" + objectName;\n }\n else{\n searchableFieldsStoreKey += listViewId;\n }\n let defaultSearchableFields = localStorage.getItem(searchableFieldsStoreKey);\n if(!defaultSearchableFields && data.uiSchema){\n let listView = data.uiSchema.list_views[data.listName];\n defaultSearchableFields = listView && listView.searchable_fields;\n if(defaultSearchableFields && defaultSearchableFields.length){\n defaultSearchableFields = _.map(defaultSearchableFields, \'field\');\n }\n }\n if(_.isEmpty(defaultSearchableFields) && data.uiSchema){\n defaultSearchableFields = _.map(\n _.filter(_.values(data.uiSchema.fields), (field) => {\n return field.searchable;\n }),\n "name"\n );\n }\n setData({ filterFormSearchableFields: defaultSearchableFields });\n if(isLookup){\n // looup字段过滤器不在本地缓存记住过滤条件,所以初始始终隐藏过滤器\n setData({ showFieldsFilter: false });\n }\n else{\n const listViewPropsStoreKey = location.pathname + "/crud/" + data.listViewId ;\n let localListViewProps = localStorage.getItem(listViewPropsStoreKey);\n if(localListViewProps){\n localListViewProps = JSON.parse(localListViewProps);\n let filterFormValues = _.pickBy(localListViewProps, function(n,k){\n return /^__searchable__/g.test(k);\n });\n if(!_.isEmpty(filterFormValues)){\n setData({ filterFormValues });\n const omitedEmptyFormValue = _.omitBy(filterFormValues, function(n){\n return _.isNil(n) \n || (_.isObject(n) && _.isEmpty(n)) \n || (_.isArray(n) && _.isEmpty(n.filter(function(item){return !_.isNil(item)})))\n || (_.isString(n) && n.length === 0);\n });\n // 有过滤条件时自动展开搜索栏\n if(!_.isEmpty(omitedEmptyFormValue)){\n setData({ showFieldsFilter: true });\n }\n }\n }\n }\n '},body:{type:"wrapper",body:{type:"wrapper",body:[{type:"wrapper",body:[t],size:"xs",visibleOn:"this.filterFormSearchableFields && this.filterFormSearchableFields.length",className:"slds-filters__body p-0"},{type:"wrapper",body:{type:"wrapper",body:[{type:"button",label:"搜索",icon:"fa fa-search",visibleOn:"this.filterFormSearchableFields && this.filterFormSearchableFields.length",onEvent:{click:{actions:[{actionType:"custom",script:'\n const scope = event.context.scoped;\n var filterForm = scope.getComponents().find(function(n){\n return n.props.type === "form";\n });\n var filterFormValues = filterForm.getValues();\n var listView = scope.parent.parent.parent.getComponents().find(function(n){\n return n.props.type === "crud";\n });\n const removedValues = {};\n // 设置搜索项中移除搜索项后,filterFormValues未把其字段的空值保存为own property,即hasOwnProperty属性中\n // 这会造成handleFilterSubmit时把移除掉的搜索项字段之前的值加到过滤条件中\n for(var k in filterFormValues){\n if(filterFormValues[k] === "" && !filterFormValues.hasOwnProperty(k)){\n removedValues[k] = "";\n }\n }\n listView.handleFilterSubmit(Object.assign({}, removedValues, filterFormValues));\n '}]}}},{type:"button",label:"设置搜索项",onEvent:{click:{actions:[{actionType:"dialog",dialog:{type:"dialog",size:"md",title:"设置搜索项",body:[{type:"form",title:"",body:[{label:"",type:"transfer",name:"fields",id:"u:92c0b3cccca0",source:{method:"get",url:"${context.rootUrl}/service/api/amis-metadata-objects/objects/${objectName}/fields/options",dataType:"json",headers:{Authorization:"Bearer ${context.tenantId},${context.authToken}"},data:null,requestAdaptor:"",adaptor:""},options:[],required:!0,placeholder:"-",className:"col-span-2 m-0",checkAll:!1,searchable:!0,sortable:!0,joinValues:!1,extractValue:!0,multiple:!0}],id:"u:e5ac506d5683",mode:"normal",persistData:!1,promptPageLeave:!0,name:"form",debug:!1,actions:[],panelClassName:"m-0",bodyClassName:"p-4",className:"steedos-amis-form"}],id:"u:ca99fa9fe1b1",actions:[{type:"button",label:"取消",onEvent:{click:{actions:[{componentId:"",args:{},actionType:"closeDialog"}]}},id:"u:4e447b5ca72a"},{type:"button",label:"确认",onEvent:{click:{actions:[{actionType:"custom",script:'\n const data = context.props.data;\n const listName = data.listName;\n const objectName = data.objectName;\n const isLookup = data.isLookup;\n const listViewId = data.listViewId;\n const value = data.fields;\n const scope = event.context.scoped;\n // 这里的filterForm不是name为"listview-filter-form"的内部form,而是crud自带的filter form\n const filterForm = scope.parent.parent.getComponents().find(function(n){\n return n.props.type === "form";\n });\n const filterService = filterForm.context.getComponents().find(function(n){\n return n.props.type === "service";\n });\n filterService.setData({ filterFormSearchableFields: value });\n let searchableFieldsStoreKey = location.pathname + "/searchable_fields/";\n if(isLookup){\n searchableFieldsStoreKey += "lookup/" + objectName;\n }\n else{\n searchableFieldsStoreKey += listViewId;\n }\n localStorage.setItem(searchableFieldsStoreKey, value);\n\n // ===START===:当变更可搜索字段时,如果被移除的可搜索字段在本地存储中已经存入过滤条件中则应该清除本地存储中相关字段的过滤条件。\n const searchableFields = data.fields;\n let preSearchableFields = data.__super.fields;\n if(typeof preSearchableFields === "string"){\n preSearchableFields = preSearchableFields.split(",");\n }\n const removedFields = _.difference(preSearchableFields, searchableFields);\n\n // const getClosestAmisComponentByType = function (scope, type, name) {\n // // 递归children找到listview-filter-form\n // let re = scope.getComponents().find(function (n) {\n // return n.props.type === type && n.props.name === name;\n // });\n // if (re) {\n // return re;\n // }\n // else {\n // if (scope.children && scope.children.length) {\n // for (let i = 0; i < scope.children.length; i++) {\n // re = getClosestAmisComponentByType(scope.children[i], type, name);\n // if (re) {\n // break;\n // }\n // }\n // return re;\n // }\n \n // }\n // }\n // // 这里第二层form才是真正要提交到crud过滤条件的form\n // filterInnerForm = getClosestAmisComponentByType(filterForm.context, "form", "listview-filter-form");\n\n const filterFormValues = filterForm.getValues();\n let removedKeys = [];\n _.each(filterFormValues, function(n,k){\n // __searchable__开头的不在searchableFields范围则清除其值\n let isRemoved = !!removedFields.find(function(fieldName){\n return new RegExp("__searchable__.*" + fieldName + "$").test(k);\n });\n if(isRemoved){\n removedKeys.push(k);\n }\n });\n const removedValues = {};\n removedKeys.forEach(function(key){\n removedValues[key] = "";\n });\n filterForm.setValues(removedValues);//这里使用filterInnerForm也可以\n\n if(isLookup){\n return;\n }\n \n // 列表视图crud支持本地缓存,所以需要进一步清除浏览器本地缓存里面用户在可搜索项中移除的字段值\n const listViewPropsStoreKey = location.pathname + "/crud/" + listViewId ;\n let localListViewProps = localStorage.getItem(listViewPropsStoreKey);\n if(localListViewProps){\n localListViewProps = JSON.parse(localListViewProps);\n // const removedValues = {};\n removedKeys.forEach(function(key){\n delete localListViewProps[key];\n // removedValues[key] = "";\n });\n localStorage.setItem(listViewPropsStoreKey, JSON.stringify(localListViewProps));\n }\n // ===END===\n '},{componentId:"",args:{},actionType:"closeDrawer"}]}},id:"u:14e7388fecd3",level:"primary"}],closeOnEsc:!1,closeOnOutside:!1,showCloseButton:!0,data:{"&":"$$",objectName:"${objectName}",listName:"${listName}",listViewId:"${listViewId}",uiSchema:"${uiSchema}",isLookup:"${isLookup}",context:"${context}",fields:"${filterFormSearchableFields}"}}}]}},id:"u:b96d84868a5a",level:"link"}],size:"xs",className:"space-x-4"},size:"xs",className:"slds-filters__footer slds-grid slds-shrink-none flex justify-between p-0"}],size:"xs",className:"slds-filters"},size:"xs",className:"border-gray-300 border-y slds-grid slds-grid_vertical slds-nowrap "+(!n.isLookup&&"mt-2"),visibleOn:"this.showFieldsFilter"},className:"bg-white"}}Object.freeze({__proto__:null,OMIT_FIELDS:OMIT_FIELDS,getBaseFields:getBaseFields,getAmisFieldType:getAmisFieldType,getObjectFieldSubFields:getObjectFieldSubFields,getGridFieldSubFields:getGridFieldSubFields,getPermissionFields:getPermissionFields,getSelectFieldOptions:getSelectFieldOptions,convertSFieldToAmisField:convertSFieldToAmisField,getFieldSearchable:getFieldSearchable,getAmisStaticFieldType:getAmisStaticFieldType});let UI_SCHEMA_CACHE={},UISchemaFunction;const setUISchemaCache=("undefined"!=typeof window&&(window.UI_SCHEMA_CACHE||(window.UI_SCHEMA_CACHE=UI_SCHEMA_CACHE),UI_SCHEMA_CACHE=window.UI_SCHEMA_CACHE),(e,t)=>{UI_SCHEMA_CACHE[e]=t}),getUISchemaCache=e=>lodash.exports.cloneDeep(UI_SCHEMA_CACHE[e]),hasUISchemaCache=e=>lodash.exports.has(UI_SCHEMA_CACHE,e);function getListViewSort(e){let t="";return e&&e.sort&&e.sort.length&&lodash.exports.each(e.sort,(function(e,n){var r;lodash.exports.isArray(e)?(r=e[0]+" "+(e[1]||""),t+=r=0<n?","+r:r):(r=e.field_name+" "+e.order,t+=r=0<n?","+r:r)})),t}async function getUISchema(objectName,force){if(objectName){if(!hasUISchemaCache(objectName)||force){let uiSchema=null;try{if(UISchemaFunction);else{const e=`/service/api/@${objectName.replace(/\./g,"_")}/uiSchema`;uiSchema=await fetchAPI(e,{method:"get"})}if(!uiSchema)return;setUISchemaCache(objectName,uiSchema),lodash.exports.each(uiSchema.fields,(field=>{try{"lookup"===field.type&&field._reference_to&&___default.isString(field._reference_to)&&(field.reference_to=eval(`(${field._reference_to})`)())}catch(e){field.reference_to=void 0,console.error(e)}})),lodash.exports.each(uiSchema.list_views,((e,t)=>{e.name=t,lodash.exports.has(e,"columns")||(e.columns=uiSchema.list_views.all.columns)}))}catch(e){console.error("getUISchema",objectName,e),setUISchemaCache(objectName,null)}}return getUISchemaCache(objectName)}}var __assign=function(){return(__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function createObject(e,t,n){var r=(e=e&&Object.isFrozen(e)?cloneObject(e):e)?Object.create(e,__assign(__assign({},n),{__super:{value:e,writable:!1,enumerable:!1}})):Object.create(Object.prototype,n);return t&&isObject(t)&&Object.keys(t).forEach((function(e){return r[e]=t[e]})),r}function cloneObject(e,t){void 0===t&&(t=!0);var n=e&&e.__super?Object.create(e.__super,{__super:{value:e.__super,writable:!1,enumerable:!1}}):Object.create(Object.prototype);return t&&e&&Object.keys(e).forEach((function(t){return n[t]=e[t]})),n}function isObject(e){var t=typeof e;return e&&"string"!=t&&"number"!=t&&"boolean"!=t&&"function"!=t&&!Array.isArray(e)}var FullCalendar=function(e){var t=e.dispatchEvent,n=e.data,r=__rest(e,["dispatchEvent","data"]),a=function(e,r){return __awaiter(void 0,void 0,void 0,(function(){var a,o;return __generator(this,(function(i){switch(i.label){case 0:return t?[4,t(e,r?createObject(n,r):n)]:[2];case 1:return a=i.sent(),[2,null!==(o=null==a?void 0:a.prevented)&&void 0!==o&&o]}}))}))};return React.createElement(FullCalendar$1,__assign$1({plugins:[main$3,main$2,main$1,main],headerToolbar:{left:"title",center:"",right:"prev,next today dayGridMonth,timeGridWeek,timeGridDay"},locales:_default,locale:"zh-cn",editable:!0,selectable:!0,selectMirror:!0,dayMaxEvents:!0,initialView:"timeGridWeek",events:function(e,t,n){setTimeout((function(){a("getEvents",{fetchInfo:e,successCallback:t,failureCallback:n})}),100)},select:function(e){a("select",e)},eventClick:function(e){a("eventClick",e)},eventsSet:function(e){a("eventsSet",e)},eventAdd:function(e){a("eventAdd",e)},eventChange:function(e){a("eventChange",e)},eventRemove:function(e){a("eventRemove",e)},forceEventDuration:!0},r))};exports.FullCalendar=FullCalendar;
|
|
82
82
|
//# sourceMappingURL=fullcalendar.cjs.js.map
|