@crowdin/app-project-module 0.76.1 → 0.77.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- !function(){"use strict";function e(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(r){if("default"!==r&&!(r in e)){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}}))})),Object.freeze(e)}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){if(this instanceof e){var r=[null];return r.push.apply(r,arguments),new(Function.bind.apply(t,r))}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var o={exports:{}},a={},i=Symbol.for("react.element"),s=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.iterator;var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,w={};function S(e,t,r){this.props=e,this.context=t,this.refs=w,this.updater=r||g}function x(){}function $(e,t,r){this.props=e,this.context=t,this.refs=w,this.updater=r||g}S.prototype.isReactComponent={},S.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")},S.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},x.prototype=S.prototype;var k=$.prototype=new x;k.constructor=$,b(k,S.prototype),k.isPureReactComponent=!0;var _=Array.isArray,E=Object.prototype.hasOwnProperty,C={current:null},P={key:!0,ref:!0,__self:!0,__source:!0};function j(e,t,r){var n,o={},a=null,s=null;if(null!=t)for(n in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,n)&&!P.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(n in l=e.defaultProps)void 0===o[n]&&(o[n]=l[n]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_owner:C.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var N=/\/+/g;function R(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 A(e,t,r,n,o){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case i:case s:l=!0}}if(l)return o=o(l=e),e=""===n?"."+R(l,0):n,_(o)?(r="",null!=e&&(r=e.replace(N,"$&/")+"/"),A(o,t,r,"",(function(e){return e}))):null!=o&&(O(o)&&(o=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,r+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(N,"$&/")+"/")+e)),t.push(o)),1;if(l=0,n=""===n?".":n+":",_(e))for(var c=0;c<e.length;c++){var u=n+R(a=e[c],c);l+=A(a,t,r,u,o)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=y&&e[y]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(a=e.next()).done;)l+=A(a=a.value,t,r,u=n+R(a,c++),o);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function T(e,t,r){if(null==e)return e;var n=[],o=0;return A(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function I(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 M={current:null},F={transition:null},D={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:F,ReactCurrentOwner:C};function z(){throw Error("act(...) is not supported in production builds of React.")}a.Children={map:T,forEach:function(e,t,r){T(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},a.Component=S,a.Fragment=l,a.Profiler=u,a.PureComponent=$,a.StrictMode=c,a.Suspense=m,a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,a.act=z,a.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=b({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=C.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)E.call(t,c)&&!P.hasOwnProperty(c)&&(n[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)n.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];n.children=l}return{$$typeof:i,type:e.type,key:o,ref:a,props:n,_owner:s}},a.createContext=function(e){return(e={$$typeof:f,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:d,_context:e},e.Consumer=e},a.createElement=j,a.createFactory=function(e){var t=j.bind(null,e);return t.type=e,t},a.createRef=function(){return{current:null}},a.forwardRef=function(e){return{$$typeof:p,render:e}},a.isValidElement=O,a.lazy=function(e){return{$$typeof:v,_payload:{_status:-1,_result:e},_init:I}},a.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},a.startTransition=function(e){var t=F.transition;F.transition={};try{e()}finally{F.transition=t}},a.unstable_act=z,a.useCallback=function(e,t){return M.current.useCallback(e,t)},a.useContext=function(e){return M.current.useContext(e)},a.useDebugValue=function(){},a.useDeferredValue=function(e){return M.current.useDeferredValue(e)},a.useEffect=function(e,t){return M.current.useEffect(e,t)},a.useId=function(){return M.current.useId()},a.useImperativeHandle=function(e,t,r){return M.current.useImperativeHandle(e,t,r)},a.useInsertionEffect=function(e,t){return M.current.useInsertionEffect(e,t)},a.useLayoutEffect=function(e,t){return M.current.useLayoutEffect(e,t)},a.useMemo=function(e,t){return M.current.useMemo(e,t)},a.useReducer=function(e,t,r){return M.current.useReducer(e,t,r)},a.useRef=function(e){return M.current.useRef(e)},a.useState=function(e){return M.current.useState(e)},a.useSyncExternalStore=function(e,t,r){return M.current.useSyncExternalStore(e,t,r)},a.useTransition=function(){return M.current.useTransition()},a.version="18.3.1",o.exports=a;var L=o.exports,V=r(L),B=e({__proto__:null,default:V},[L]);const U=e=>{const{id:t,label:r,value:n,onChange:o,required:a}=e,i=e?.schema?.data||[],s=L.useRef(null);return L.useEffect((()=>{const e=s.current;e&&(e.setAttribute("is-loading",!0),e.setFilesData(i),e.setAttribute("is-loading",!1))}),[i]),L.useEffect((()=>{const e=(e=>{if(Array.isArray(e))return e;if("string"==typeof e)try{return JSON.parse(e)}catch(e){return[]}return[]})(n),t=s.current;t&&e?.length>0&&t.setSelected(e)}),[n]),L.useEffect((()=>{const e=s.current,r=e=>{if(e.detail.componentId===t){const t=e.detail.selectedFiles.map((e=>e.id))||[];if(a&&t?.length<=0)return void o(void 0);o(JSON.stringify(t))}};return e&&e.addEventListener("crowdinFilesSelectedChanged",r),()=>{e&&e.removeEventListener("crowdinFilesSelectedChanged",r)}}),[o]),V.createElement("div",null,r&&V.createElement("crowdin-h5",{htmlFor:t},r||"Select a file"),V.createElement("crowdin-files-component",{id:t,ref:s,onfilechange:e=>o(e.detail.files)}))};function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},W.apply(this,arguments)}var q={},K={exports:{}},H={},G={exports:{}},Q={};
1
+ !function(){"use strict";function e(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(r){if("default"!==r&&!(r in e)){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}}))})),Object.freeze(e)}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){if(this instanceof e){var r=[null];return r.push.apply(r,arguments),new(Function.bind.apply(t,r))}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var o={exports:{}},a={},i=Symbol.for("react.element"),s=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.iterator;var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,w={};function S(e,t,r){this.props=e,this.context=t,this.refs=w,this.updater=r||g}function x(){}function $(e,t,r){this.props=e,this.context=t,this.refs=w,this.updater=r||g}S.prototype.isReactComponent={},S.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")},S.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},x.prototype=S.prototype;var k=$.prototype=new x;k.constructor=$,b(k,S.prototype),k.isPureReactComponent=!0;var _=Array.isArray,E=Object.prototype.hasOwnProperty,C={current:null},P={key:!0,ref:!0,__self:!0,__source:!0};function j(e,t,r){var n,o={},a=null,s=null;if(null!=t)for(n in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,n)&&!P.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(n in l=e.defaultProps)void 0===o[n]&&(o[n]=l[n]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_owner:C.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var N=/\/+/g;function R(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 T(e,t,r,n,o){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case i:case s:l=!0}}if(l)return o=o(l=e),e=""===n?"."+R(l,0):n,_(o)?(r="",null!=e&&(r=e.replace(N,"$&/")+"/"),T(o,t,r,"",(function(e){return e}))):null!=o&&(O(o)&&(o=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,r+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(N,"$&/")+"/")+e)),t.push(o)),1;if(l=0,n=""===n?".":n+":",_(e))for(var c=0;c<e.length;c++){var u=n+R(a=e[c],c);l+=T(a,t,r,u,o)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=y&&e[y]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(a=e.next()).done;)l+=T(a=a.value,t,r,u=n+R(a,c++),o);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function A(e,t,r){if(null==e)return e;var n=[],o=0;return T(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function I(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 M={current:null},F={transition:null},D={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:F,ReactCurrentOwner:C};function z(){throw Error("act(...) is not supported in production builds of React.")}a.Children={map:A,forEach:function(e,t,r){A(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return A(e,(function(){t++})),t},toArray:function(e){return A(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},a.Component=S,a.Fragment=l,a.Profiler=u,a.PureComponent=$,a.StrictMode=c,a.Suspense=m,a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,a.act=z,a.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=b({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=C.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)E.call(t,c)&&!P.hasOwnProperty(c)&&(n[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)n.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];n.children=l}return{$$typeof:i,type:e.type,key:o,ref:a,props:n,_owner:s}},a.createContext=function(e){return(e={$$typeof:f,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:d,_context:e},e.Consumer=e},a.createElement=j,a.createFactory=function(e){var t=j.bind(null,e);return t.type=e,t},a.createRef=function(){return{current:null}},a.forwardRef=function(e){return{$$typeof:p,render:e}},a.isValidElement=O,a.lazy=function(e){return{$$typeof:v,_payload:{_status:-1,_result:e},_init:I}},a.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},a.startTransition=function(e){var t=F.transition;F.transition={};try{e()}finally{F.transition=t}},a.unstable_act=z,a.useCallback=function(e,t){return M.current.useCallback(e,t)},a.useContext=function(e){return M.current.useContext(e)},a.useDebugValue=function(){},a.useDeferredValue=function(e){return M.current.useDeferredValue(e)},a.useEffect=function(e,t){return M.current.useEffect(e,t)},a.useId=function(){return M.current.useId()},a.useImperativeHandle=function(e,t,r){return M.current.useImperativeHandle(e,t,r)},a.useInsertionEffect=function(e,t){return M.current.useInsertionEffect(e,t)},a.useLayoutEffect=function(e,t){return M.current.useLayoutEffect(e,t)},a.useMemo=function(e,t){return M.current.useMemo(e,t)},a.useReducer=function(e,t,r){return M.current.useReducer(e,t,r)},a.useRef=function(e){return M.current.useRef(e)},a.useState=function(e){return M.current.useState(e)},a.useSyncExternalStore=function(e,t,r){return M.current.useSyncExternalStore(e,t,r)},a.useTransition=function(){return M.current.useTransition()},a.version="18.3.1",o.exports=a;var L=o.exports,V=r(L),B=e({__proto__:null,default:V},[L]);const U=e=>{const{id:t,label:r,value:n,onChange:o,required:a}=e,i=e?.schema?.data||[],s=L.useRef(null);return L.useEffect((()=>{const e=s.current;e&&(e.setAttribute("is-loading",!0),e.setFilesData(i),e.setAttribute("is-loading",!1))}),[i]),L.useEffect((()=>{const e=(e=>{if(Array.isArray(e))return e;if("string"==typeof e)try{return JSON.parse(e)}catch(e){return[]}return[]})(n),t=s.current;t&&e?.length>0&&t.setSelected(e)}),[n]),L.useEffect((()=>{const e=s.current,r=e=>{if(e.detail.componentId===t){const t=e.detail.selectedFiles.map((e=>e.id))||[];if(a&&t?.length<=0)return void o(void 0);o(JSON.stringify(t))}};return e&&e.addEventListener("crowdinFilesSelectedChanged",r),()=>{e&&e.removeEventListener("crowdinFilesSelectedChanged",r)}}),[o]),V.createElement("div",null,r&&V.createElement("crowdin-h5",{htmlFor:t},r||"Select a file"),V.createElement("crowdin-files-component",{id:t,ref:s,onfilechange:e=>o(e.detail.files)}))};function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},W.apply(this,arguments)}var q={},K={exports:{}},H={},G={exports:{}},Q={};
2
2
  /**
3
3
  * @license React
4
4
  * scheduler.production.min.js
@@ -8,7 +8,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
10
  */
11
- !function(e){function t(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,a=e[n];if(!(0<o(a,t)))break e;e[n]=t,e[r]=a,r=n}}function r(e){return 0===e.length?null:e[0]}function n(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,a=e.length,i=a>>>1;n<i;){var s=2*(n+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,r))c<a&&0>o(u,l)?(e[n]=u,e[c]=r,n=c):(e[n]=l,e[s]=r,n=s);else{if(!(c<a&&0>o(u,r)))break e;e[n]=u,e[c]=r,n=c}}}return t}function o(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var l=[],c=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,g="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var o=r(c);null!==o;){if(null===o.callback)n(c);else{if(!(o.startTime<=e))break;n(c),o.sortIndex=o.expirationTime,t(l,o)}o=r(c)}}function w(e){if(h=!1,b(e),!m)if(null!==r(l))m=!0,R(S);else{var t=r(c);null!==t&&A(w,t.startTime-e)}}function S(t,o){m=!1,h&&(h=!1,y(_),_=-1),p=!0;var a=f;try{for(b(o),d=r(l);null!==d&&(!(d.expirationTime>o)||t&&!P());){var i=d.callback;if("function"==typeof i){d.callback=null,f=d.priorityLevel;var s=i(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof s?d.callback=s:d===r(l)&&n(l),b(o)}else n(l);d=r(l)}if(null!==d)var u=!0;else{var v=r(c);null!==v&&A(w,v.startTime-o),u=!1}return u}finally{d=null,f=a,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,$=!1,k=null,_=-1,E=5,C=-1;function P(){return!(e.unstable_now()-C<E)}function j(){if(null!==k){var t=e.unstable_now();C=t;var r=!0;try{r=k(!0,t)}finally{r?x():($=!1,k=null)}}else $=!1}if("function"==typeof g)x=function(){g(j)};else if("undefined"!=typeof MessageChannel){var O=new MessageChannel,N=O.port2;O.port1.onmessage=j,x=function(){N.postMessage(null)}}else x=function(){v(j,0)};function R(e){k=e,$||($=!0,x())}function A(t,r){_=v((function(){t(e.unstable_now())}),r)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,R(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"):E=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var r=f;f=t;try{return e()}finally{f=r}},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 r=f;f=e;try{return t()}finally{f=r}},e.unstable_scheduleCallback=function(n,o,a){var i=e.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?i+a:i:a=i,n){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return n={id:u++,callback:o,priorityLevel:n,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>i?(n.sortIndex=a,t(c,n),null===r(l)&&n===r(c)&&(h?(y(_),_=-1):h=!0,A(w,a-i))):(n.sortIndex=s,t(l,n),m||p||(m=!0,R(S))),n},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(e){var t=f;return function(){var r=f;f=t;try{return e.apply(this,arguments)}finally{f=r}}}}(Q),G.exports=Q;var Y=G.exports,J=L,X=Y;
11
+ !function(e){function t(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,a=e[n];if(!(0<o(a,t)))break e;e[n]=t,e[r]=a,r=n}}function r(e){return 0===e.length?null:e[0]}function n(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,a=e.length,i=a>>>1;n<i;){var s=2*(n+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,r))c<a&&0>o(u,l)?(e[n]=u,e[c]=r,n=c):(e[n]=l,e[s]=r,n=s);else{if(!(c<a&&0>o(u,r)))break e;e[n]=u,e[c]=r,n=c}}}return t}function o(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var l=[],c=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,g="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var o=r(c);null!==o;){if(null===o.callback)n(c);else{if(!(o.startTime<=e))break;n(c),o.sortIndex=o.expirationTime,t(l,o)}o=r(c)}}function w(e){if(h=!1,b(e),!m)if(null!==r(l))m=!0,R(S);else{var t=r(c);null!==t&&T(w,t.startTime-e)}}function S(t,o){m=!1,h&&(h=!1,y(_),_=-1),p=!0;var a=f;try{for(b(o),d=r(l);null!==d&&(!(d.expirationTime>o)||t&&!P());){var i=d.callback;if("function"==typeof i){d.callback=null,f=d.priorityLevel;var s=i(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof s?d.callback=s:d===r(l)&&n(l),b(o)}else n(l);d=r(l)}if(null!==d)var u=!0;else{var v=r(c);null!==v&&T(w,v.startTime-o),u=!1}return u}finally{d=null,f=a,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,$=!1,k=null,_=-1,E=5,C=-1;function P(){return!(e.unstable_now()-C<E)}function j(){if(null!==k){var t=e.unstable_now();C=t;var r=!0;try{r=k(!0,t)}finally{r?x():($=!1,k=null)}}else $=!1}if("function"==typeof g)x=function(){g(j)};else if("undefined"!=typeof MessageChannel){var O=new MessageChannel,N=O.port2;O.port1.onmessage=j,x=function(){N.postMessage(null)}}else x=function(){v(j,0)};function R(e){k=e,$||($=!0,x())}function T(t,r){_=v((function(){t(e.unstable_now())}),r)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,R(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"):E=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var r=f;f=t;try{return e()}finally{f=r}},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 r=f;f=e;try{return t()}finally{f=r}},e.unstable_scheduleCallback=function(n,o,a){var i=e.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?i+a:i:a=i,n){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return n={id:u++,callback:o,priorityLevel:n,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>i?(n.sortIndex=a,t(c,n),null===r(l)&&n===r(c)&&(h?(y(_),_=-1):h=!0,T(w,a-i))):(n.sortIndex=s,t(l,n),m||p||(m=!0,R(S))),n},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(e){var t=f;return function(){var r=f;f=t;try{return e.apply(this,arguments)}finally{f=r}}}}(Q),G.exports=Q;var Y=G.exports,J=L,X=Y;
12
12
  /**
13
13
  * @license React
14
14
  * react-dom.production.min.js
@@ -17,26 +17,26 @@
17
17
  *
18
18
  * This source code is licensed under the MIT license found in the
19
19
  * LICENSE file in the root directory of this source tree.
20
- */function Z(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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 ee=new Set,te={};function re(e,t){ne(e,t),ne(e+"Capture",t)}function ne(e,t){for(te[e]=t,e=0;e<t.length;e++)ee.add(t[e])}var oe=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),ae=Object.prototype.hasOwnProperty,ie=/^[: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]*$/,se={},le={};function ce(e,t,r,n,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){ue[e]=new ce(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];ue[t]=new ce(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){ue[e]=new ce(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){ue[e]=new ce(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){ue[e]=new ce(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){ue[e]=new ce(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){ue[e]=new ce(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){ue[e]=new ce(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){ue[e]=new ce(e,5,!1,e.toLowerCase(),null,!1,!1)}));var de=/[\-:]([a-z])/g;function fe(e){return e[1].toUpperCase()}function pe(e,t,r,n){var o=ue.hasOwnProperty(t)?ue[t]:null;(null!==o?0!==o.type:n||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.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,r,o,n)&&(r=null),n||null===o?function(e){return!!ae.call(le,e)||!ae.call(se,e)&&(ie.test(e)?le[e]=!0:(se[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=null===r?3!==o.type&&"":r:(t=o.attributeName,n=o.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(o=o.type)||4===o&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"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(de,fe);ue[t]=new ce(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(de,fe);ue[t]=new ce(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(de,fe);ue[t]=new ce(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){ue[e]=new ce(e,1,!1,e.toLowerCase(),null,!1,!1)})),ue.xlinkHref=new ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){ue[e]=new ce(e,1,!1,e.toLowerCase(),null,!0,!0)}));var me=J.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,he=Symbol.for("react.element"),ve=Symbol.for("react.portal"),ye=Symbol.for("react.fragment"),ge=Symbol.for("react.strict_mode"),be=Symbol.for("react.profiler"),we=Symbol.for("react.provider"),Se=Symbol.for("react.context"),xe=Symbol.for("react.forward_ref"),$e=Symbol.for("react.suspense"),ke=Symbol.for("react.suspense_list"),_e=Symbol.for("react.memo"),Ee=Symbol.for("react.lazy"),Ce=Symbol.for("react.offscreen"),Pe=Symbol.iterator;function je(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Pe&&e[Pe]||e["@@iterator"])?e:null}var Oe,Ne=Object.assign;function Re(e){if(void 0===Oe)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Oe=t&&t[1]||""}return"\n"+Oe+e}var Ae=!1;function Te(e,t){if(!e||Ae)return"";Ae=!0;var r=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 n=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){n=e}e.call(t.prototype)}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=n.stack.split("\n"),i=o.length-1,s=a.length-1;1<=i&&0<=s&&o[i]!==a[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==a[s]){if(1!==i||1!==s)do{if(i--,0>--s||o[i]!==a[s]){var l="\n"+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=i&&0<=s);break}}}finally{Ae=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Re(e):""}function Ie(e){switch(e.tag){case 5:return Re(e.type);case 16:return Re("Lazy");case 13:return Re("Suspense");case 19:return Re("SuspenseList");case 0:case 2:case 15:return e=Te(e.type,!1);case 11:return e=Te(e.type.render,!1);case 1:return e=Te(e.type,!0);default:return""}}function Me(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 ye:return"Fragment";case ve:return"Portal";case be:return"Profiler";case ge:return"StrictMode";case $e:return"Suspense";case ke:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Se:return(e.displayName||"Context")+".Consumer";case we:return(e._context.displayName||"Context")+".Provider";case xe:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case _e:return null!==(t=e.displayName||null)?t:Me(e.type)||"Memo";case Ee:t=e._payload,e=e._init;try{return Me(e(t))}catch(e){}}return null}function Fe(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 Me(t);case 8:return t===ge?"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 De(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ze(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Le(e){e._valueTracker||(e._valueTracker=function(e){var t=ze(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Ve(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=ze(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function Be(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 Ue(e,t){var r=t.checked;return Ne({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function We(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=De(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function qe(e,t){null!=(t=t.checked)&&pe(e,"checked",t,!1)}function Ke(e,t){qe(e,t);var r=De(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?Ge(e,t.type,r):t.hasOwnProperty("defaultValue")&&Ge(e,t.type,De(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function He(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function Ge(e,t,r){"number"===t&&Be(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Qe=Array.isArray;function Ye(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+De(r),t=null,o=0;o<e.length;o++){if(e[o].value===r)return e[o].selected=!0,void(n&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Je(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(Z(91));return Ne({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Xe(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(Z(92));if(Qe(r)){if(1<r.length)throw Error(Z(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:De(r)}}function Ze(e,t){var r=De(t.value),n=De(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function et(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function tt(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 rt(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?tt(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var nt,ot=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,r,n,o){MSApp.execUnsafeLocalFunction((function(){return e(t,r)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((nt=nt||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=nt.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function at(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var it={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},st=["Webkit","ms","Moz","O"];function lt(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||it.hasOwnProperty(e)&&it[e]?(""+t).trim():t+"px"}function ct(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),o=lt(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}Object.keys(it).forEach((function(e){st.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),it[t]=it[e]}))}));var ut=Ne({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 dt(e,t){if(t){if(ut[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(Z(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(Z(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(Z(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(Z(62))}}function ft(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 pt=null;function mt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ht=null,vt=null,yt=null;function gt(e){if(e=pa(e)){if("function"!=typeof ht)throw Error(Z(280));var t=e.stateNode;t&&(t=ha(t),ht(e.stateNode,e.type,t))}}function bt(e){vt?yt?yt.push(e):yt=[e]:vt=e}function wt(){if(vt){var e=vt,t=yt;if(yt=vt=null,gt(e),t)for(e=0;e<t.length;e++)gt(t[e])}}function St(e,t){return e(t)}function xt(){}var $t=!1;function kt(e,t,r){if($t)return e(t,r);$t=!0;try{return St(e,t,r)}finally{$t=!1,(null!==vt||null!==yt)&&(xt(),wt())}}function _t(e,t){var r=e.stateNode;if(null===r)return null;var n=ha(r);if(null===n)return null;r=n[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":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(Z(231,t,typeof r));return r}var Et=!1;if(oe)try{var Ct={};Object.defineProperty(Ct,"passive",{get:function(){Et=!0}}),window.addEventListener("test",Ct,Ct),window.removeEventListener("test",Ct,Ct)}catch(HL){Et=!1}function Pt(e,t,r,n,o,a,i,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(e){this.onError(e)}}var jt=!1,Ot=null,Nt=!1,Rt=null,At={onError:function(e){jt=!0,Ot=e}};function Tt(e,t,r,n,o,a,i,s,l){jt=!1,Ot=null,Pt.apply(At,arguments)}function It(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function Mt(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 Ft(e){if(It(e)!==e)throw Error(Z(188))}function Dt(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=It(e)))throw Error(Z(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(n=o.return)){r=n;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===r)return Ft(o),e;if(a===n)return Ft(o),t;a=a.sibling}throw Error(Z(188))}if(r.return!==n.return)r=o,n=a;else{for(var i=!1,s=o.child;s;){if(s===r){i=!0,r=o,n=a;break}if(s===n){i=!0,n=o,r=a;break}s=s.sibling}if(!i){for(s=a.child;s;){if(s===r){i=!0,r=a,n=o;break}if(s===n){i=!0,n=a,r=o;break}s=s.sibling}if(!i)throw Error(Z(189))}}if(r.alternate!==n)throw Error(Z(190))}if(3!==r.tag)throw Error(Z(188));return r.stateNode.current===r?e:t}(e),null!==e?zt(e):null}function zt(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=zt(e);if(null!==t)return t;e=e.sibling}return null}var Lt=X.unstable_scheduleCallback,Vt=X.unstable_cancelCallback,Bt=X.unstable_shouldYield,Ut=X.unstable_requestPaint,Wt=X.unstable_now,qt=X.unstable_getCurrentPriorityLevel,Kt=X.unstable_ImmediatePriority,Ht=X.unstable_UserBlockingPriority,Gt=X.unstable_NormalPriority,Qt=X.unstable_LowPriority,Yt=X.unstable_IdlePriority,Jt=null,Xt=null;var Zt=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(er(e)/tr|0)|0},er=Math.log,tr=Math.LN2;var rr=64,nr=4194304;function or(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 ar(e,t){var r=e.pendingLanes;if(0===r)return 0;var n=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&r;if(0!==i){var s=i&~o;0!==s?n=or(s):0!==(a&=i)&&(n=or(a))}else 0!==(i=r&~o)?n=or(i):0!==a&&(n=or(a));if(0===n)return 0;if(0!==t&&t!==n&&0==(t&o)&&((o=n&-n)>=(a=t&-t)||16===o&&0!=(4194240&a)))return t;if(0!=(4&n)&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)o=1<<(r=31-Zt(t)),n|=e[r],t&=~o;return n}function ir(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 sr(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function lr(){var e=rr;return 0==(4194240&(rr<<=1))&&(rr=64),e}function cr(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function ur(e,t,r){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-Zt(t)]=r}function dr(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Zt(r),o=1<<n;o&t|e[n]&t&&(e[n]|=t),r&=~o}}var fr=0;function pr(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var mr,hr,vr,yr,gr,br=!1,wr=[],Sr=null,xr=null,$r=null,kr=new Map,_r=new Map,Er=[],Cr="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 Pr(e,t){switch(e){case"focusin":case"focusout":Sr=null;break;case"dragenter":case"dragleave":xr=null;break;case"mouseover":case"mouseout":$r=null;break;case"pointerover":case"pointerout":kr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_r.delete(t.pointerId)}}function jr(e,t,r,n,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=pa(t))&&hr(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Or(e){var t=fa(e.target);if(null!==t){var r=It(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=Mt(r)))return e.blockedOn=t,void gr(e.priority,(function(){vr(r)}))}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function Nr(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Br(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=pa(r))&&hr(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);pt=n,r.target.dispatchEvent(n),pt=null,t.shift()}return!0}function Rr(e,t,r){Nr(e)&&r.delete(t)}function Ar(){br=!1,null!==Sr&&Nr(Sr)&&(Sr=null),null!==xr&&Nr(xr)&&(xr=null),null!==$r&&Nr($r)&&($r=null),kr.forEach(Rr),_r.forEach(Rr)}function Tr(e,t){e.blockedOn===t&&(e.blockedOn=null,br||(br=!0,X.unstable_scheduleCallback(X.unstable_NormalPriority,Ar)))}function Ir(e){function t(t){return Tr(t,e)}if(0<wr.length){Tr(wr[0],e);for(var r=1;r<wr.length;r++){var n=wr[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==Sr&&Tr(Sr,e),null!==xr&&Tr(xr,e),null!==$r&&Tr($r,e),kr.forEach(t),_r.forEach(t),r=0;r<Er.length;r++)(n=Er[r]).blockedOn===e&&(n.blockedOn=null);for(;0<Er.length&&null===(r=Er[0]).blockedOn;)Or(r),null===r.blockedOn&&Er.shift()}var Mr=me.ReactCurrentBatchConfig,Fr=!0;function Dr(e,t,r,n){var o=fr,a=Mr.transition;Mr.transition=null;try{fr=1,Lr(e,t,r,n)}finally{fr=o,Mr.transition=a}}function zr(e,t,r,n){var o=fr,a=Mr.transition;Mr.transition=null;try{fr=4,Lr(e,t,r,n)}finally{fr=o,Mr.transition=a}}function Lr(e,t,r,n){if(Fr){var o=Br(e,t,r,n);if(null===o)Do(e,t,n,Vr,r),Pr(e,n);else if(function(e,t,r,n,o){switch(t){case"focusin":return Sr=jr(Sr,e,t,r,n,o),!0;case"dragenter":return xr=jr(xr,e,t,r,n,o),!0;case"mouseover":return $r=jr($r,e,t,r,n,o),!0;case"pointerover":var a=o.pointerId;return kr.set(a,jr(kr.get(a)||null,e,t,r,n,o)),!0;case"gotpointercapture":return a=o.pointerId,_r.set(a,jr(_r.get(a)||null,e,t,r,n,o)),!0}return!1}(o,e,t,r,n))n.stopPropagation();else if(Pr(e,n),4&t&&-1<Cr.indexOf(e)){for(;null!==o;){var a=pa(o);if(null!==a&&mr(a),null===(a=Br(e,t,r,n))&&Do(e,t,n,Vr,r),a===o)break;o=a}null!==o&&n.stopPropagation()}else Do(e,t,n,null,r)}}var Vr=null;function Br(e,t,r,n){if(Vr=null,null!==(e=fa(e=mt(n))))if(null===(t=It(e)))e=null;else if(13===(r=t.tag)){if(null!==(e=Mt(t)))return e;e=null}else if(3===r){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Vr=e,null}function Ur(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(qt()){case Kt:return 1;case Ht:return 4;case Gt:case Qt:return 16;case Yt:return 536870912;default:return 16}default:return 16}}var Wr=null,qr=null,Kr=null;function Hr(){if(Kr)return Kr;var e,t,r=qr,n=r.length,o="value"in Wr?Wr.value:Wr.textContent,a=o.length;for(e=0;e<n&&r[e]===o[e];e++);var i=n-e;for(t=1;t<=i&&r[n-t]===o[a-t];t++);return Kr=o.slice(e,1<t?1-t:void 0)}function Gr(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 Qr(){return!0}function Yr(){return!1}function Jr(e){function t(t,r,n,o,a){for(var i in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Qr:Yr,this.isPropagationStopped=Yr,this}return Ne(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=Qr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Qr)},persist:function(){},isPersistent:Qr}),t}var Xr,Zr,en,tn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rn=Jr(tn),nn=Ne({},tn,{view:0,detail:0}),on=Jr(nn),an=Ne({},nn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gn,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!==en&&(en&&"mousemove"===e.type?(Xr=e.screenX-en.screenX,Zr=e.screenY-en.screenY):Zr=Xr=0,en=e),Xr)},movementY:function(e){return"movementY"in e?e.movementY:Zr}}),sn=Jr(an),ln=Jr(Ne({},an,{dataTransfer:0})),cn=Jr(Ne({},nn,{relatedTarget:0})),un=Jr(Ne({},tn,{animationName:0,elapsedTime:0,pseudoElement:0})),dn=Ne({},tn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),fn=Jr(dn),pn=Jr(Ne({},tn,{data:0})),mn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hn={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"},vn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=vn[e])&&!!t[e]}function gn(){return yn}var bn=Ne({},nn,{key:function(e){if(e.key){var t=mn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Gr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?hn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gn,charCode:function(e){return"keypress"===e.type?Gr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Gr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),wn=Jr(bn),Sn=Jr(Ne({},an,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),xn=Jr(Ne({},nn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gn})),$n=Jr(Ne({},tn,{propertyName:0,elapsedTime:0,pseudoElement:0})),kn=Ne({},an,{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}),_n=Jr(kn),En=[9,13,27,32],Cn=oe&&"CompositionEvent"in window,Pn=null;oe&&"documentMode"in document&&(Pn=document.documentMode);var jn=oe&&"TextEvent"in window&&!Pn,On=oe&&(!Cn||Pn&&8<Pn&&11>=Pn),Nn=String.fromCharCode(32),Rn=!1;function An(e,t){switch(e){case"keyup":return-1!==En.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var In=!1;var Mn={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 Fn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Mn[e.type]:"textarea"===t}function Dn(e,t,r,n){bt(n),0<(t=Lo(t,"onChange")).length&&(r=new rn("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var zn=null,Ln=null;function Vn(e){Ro(e,0)}function Bn(e){if(Ve(ma(e)))return e}function Un(e,t){if("change"===e)return t}var Wn=!1;if(oe){var qn;if(oe){var Kn="oninput"in document;if(!Kn){var Hn=document.createElement("div");Hn.setAttribute("oninput","return;"),Kn="function"==typeof Hn.oninput}qn=Kn}else qn=!1;Wn=qn&&(!document.documentMode||9<document.documentMode)}function Gn(){zn&&(zn.detachEvent("onpropertychange",Qn),Ln=zn=null)}function Qn(e){if("value"===e.propertyName&&Bn(Ln)){var t=[];Dn(t,Ln,e,mt(e)),kt(Vn,t)}}function Yn(e,t,r){"focusin"===e?(Gn(),Ln=r,(zn=t).attachEvent("onpropertychange",Qn)):"focusout"===e&&Gn()}function Jn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Bn(Ln)}function Xn(e,t){if("click"===e)return Bn(t)}function Zn(e,t){if("input"===e||"change"===e)return Bn(t)}var eo="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function to(e,t){if(eo(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!ae.call(t,o)||!eo(e[o],t[o]))return!1}return!0}function ro(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function no(e,t){var r,n=ro(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ro(n)}}function oo(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?oo(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function ao(){for(var e=window,t=Be();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=Be((e=t.contentWindow).document)}return t}function io(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 so(e){var t=ao(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&oo(r.ownerDocument.documentElement,r)){if(null!==n&&io(r))if(t=n.start,void 0===(e=n.end)&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if((e=(t=r.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=r.textContent.length,a=Math.min(n.start,o);n=void 0===n.end?a:Math.min(n.end,o),!e.extend&&a>n&&(o=n,n=a,a=o),o=no(r,a);var i=no(r,n);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=r;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof r.focus&&r.focus(),r=0;r<t.length;r++)(e=t[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var lo=oe&&"documentMode"in document&&11>=document.documentMode,co=null,uo=null,fo=null,po=!1;function mo(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;po||null==co||co!==Be(n)||("selectionStart"in(n=co)&&io(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},fo&&to(fo,n)||(fo=n,0<(n=Lo(uo,"onSelect")).length&&(t=new rn("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=co)))}function ho(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var vo={animationend:ho("Animation","AnimationEnd"),animationiteration:ho("Animation","AnimationIteration"),animationstart:ho("Animation","AnimationStart"),transitionend:ho("Transition","TransitionEnd")},yo={},go={};function bo(e){if(yo[e])return yo[e];if(!vo[e])return e;var t,r=vo[e];for(t in r)if(r.hasOwnProperty(t)&&t in go)return yo[e]=r[t];return e}oe&&(go=document.createElement("div").style,"AnimationEvent"in window||(delete vo.animationend.animation,delete vo.animationiteration.animation,delete vo.animationstart.animation),"TransitionEvent"in window||delete vo.transitionend.transition);var wo=bo("animationend"),So=bo("animationiteration"),xo=bo("animationstart"),$o=bo("transitionend"),ko=new Map,_o="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 Eo(e,t){ko.set(e,t),re(t,[e])}for(var Co=0;Co<_o.length;Co++){var Po=_o[Co];Eo(Po.toLowerCase(),"on"+(Po[0].toUpperCase()+Po.slice(1)))}Eo(wo,"onAnimationEnd"),Eo(So,"onAnimationIteration"),Eo(xo,"onAnimationStart"),Eo("dblclick","onDoubleClick"),Eo("focusin","onFocus"),Eo("focusout","onBlur"),Eo($o,"onTransitionEnd"),ne("onMouseEnter",["mouseout","mouseover"]),ne("onMouseLeave",["mouseout","mouseover"]),ne("onPointerEnter",["pointerout","pointerover"]),ne("onPointerLeave",["pointerout","pointerover"]),re("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),re("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),re("onBeforeInput",["compositionend","keypress","textInput","paste"]),re("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),re("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),re("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jo="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(" "),Oo=new Set("cancel close invalid load scroll toggle".split(" ").concat(jo));function No(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,o,a,i,s,l){if(Tt.apply(this,arguments),jt){if(!jt)throw Error(Z(198));var c=Ot;jt=!1,Ot=null,Nt||(Nt=!0,Rt=c)}}(n,t,void 0,e),e.currentTarget=null}function Ro(e,t){t=0!=(4&t);for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var i=n.length-1;0<=i;i--){var s=n[i],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==a&&o.isPropagationStopped())break e;No(o,s,c),a=l}else for(i=0;i<n.length;i++){if(l=(s=n[i]).instance,c=s.currentTarget,s=s.listener,l!==a&&o.isPropagationStopped())break e;No(o,s,c),a=l}}}if(Nt)throw e=Rt,Nt=!1,Rt=null,e}function Ao(e,t){var r=t[ca];void 0===r&&(r=t[ca]=new Set);var n=e+"__bubble";r.has(n)||(Fo(t,e,2,!1),r.add(n))}function To(e,t,r){var n=0;t&&(n|=4),Fo(r,e,n,t)}var Io="_reactListening"+Math.random().toString(36).slice(2);function Mo(e){if(!e[Io]){e[Io]=!0,ee.forEach((function(t){"selectionchange"!==t&&(Oo.has(t)||To(t,!1,e),To(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Io]||(t[Io]=!0,To("selectionchange",!1,t))}}function Fo(e,t,r,n){switch(Ur(t)){case 1:var o=Dr;break;case 4:o=zr;break;default:o=Lr}r=o.bind(null,t,r,e),o=void 0,!Et||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),n?void 0!==o?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):void 0!==o?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function Do(e,t,r,n,o){var a=n;if(0==(1&t)&&0==(2&t)&&null!==n)e:for(;;){if(null===n)return;var i=n.tag;if(3===i||4===i){var s=n.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===i)for(i=n.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;i=i.return}for(;null!==s;){if(null===(i=fa(s)))return;if(5===(l=i.tag)||6===l){n=a=i;continue e}s=s.parentNode}}n=n.return}kt((function(){var n=a,o=mt(r),i=[];e:{var s=ko.get(e);if(void 0!==s){var l=rn,c=e;switch(e){case"keypress":if(0===Gr(r))break e;case"keydown":case"keyup":l=wn;break;case"focusin":c="focus",l=cn;break;case"focusout":c="blur",l=cn;break;case"beforeblur":case"afterblur":l=cn;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=sn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=ln;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=xn;break;case wo:case So:case xo:l=un;break;case $o:l=$n;break;case"scroll":l=on;break;case"wheel":l=_n;break;case"copy":case"cut":case"paste":l=fn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Sn}var u=0!=(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var p,m=n;null!==m;){var h=(p=m).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==f&&(null!=(h=_t(m,f))&&u.push(zo(m,h,p)))),d)break;m=m.return}0<u.length&&(s=new l(s,c,null,r,o),i.push({event:s,listeners:u}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||r===pt||!(c=r.relatedTarget||r.fromElement)||!fa(c)&&!c[la])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=n,null!==(c=(c=r.relatedTarget||r.toElement)?fa(c):null)&&(c!==(d=It(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=n),l!==c)){if(u=sn,h="onMouseLeave",f="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(u=Sn,h="onPointerLeave",f="onPointerEnter",m="pointer"),d=null==l?s:ma(l),p=null==c?s:ma(c),(s=new u(h,m+"leave",l,r,o)).target=d,s.relatedTarget=p,h=null,fa(o)===n&&((u=new u(f,m+"enter",c,r,o)).target=p,u.relatedTarget=d,h=u),d=h,l&&c)e:{for(f=c,m=0,p=u=l;p;p=Vo(p))m++;for(p=0,h=f;h;h=Vo(h))p++;for(;0<m-p;)u=Vo(u),m--;for(;0<p-m;)f=Vo(f),p--;for(;m--;){if(u===f||null!==f&&u===f.alternate)break e;u=Vo(u),f=Vo(f)}u=null}else u=null;null!==l&&Bo(i,s,l,u,!1),null!==c&&null!==d&&Bo(i,d,c,u,!0)}if("select"===(l=(s=n?ma(n):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=Un;else if(Fn(s))if(Wn)v=Zn;else{v=Jn;var y=Yn}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=Xn);switch(v&&(v=v(e,n))?Dn(i,v,r,o):(y&&y(e,s,n),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&Ge(s,"number",s.value)),y=n?ma(n):window,e){case"focusin":(Fn(y)||"true"===y.contentEditable)&&(co=y,uo=n,fo=null);break;case"focusout":fo=uo=co=null;break;case"mousedown":po=!0;break;case"contextmenu":case"mouseup":case"dragend":po=!1,mo(i,r,o);break;case"selectionchange":if(lo)break;case"keydown":case"keyup":mo(i,r,o)}var g;if(Cn)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 In?An(e,r)&&(b="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(b="onCompositionStart");b&&(On&&"ko"!==r.locale&&(In||"onCompositionStart"!==b?"onCompositionEnd"===b&&In&&(g=Hr()):(qr="value"in(Wr=o)?Wr.value:Wr.textContent,In=!0)),0<(y=Lo(n,b)).length&&(b=new pn(b,e,null,r,o),i.push({event:b,listeners:y}),g?b.data=g:null!==(g=Tn(r))&&(b.data=g))),(g=jn?function(e,t){switch(e){case"compositionend":return Tn(t);case"keypress":return 32!==t.which?null:(Rn=!0,Nn);case"textInput":return(e=t.data)===Nn&&Rn?null:e;default:return null}}(e,r):function(e,t){if(In)return"compositionend"===e||!Cn&&An(e,t)?(e=Hr(),Kr=qr=Wr=null,In=!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,r))&&(0<(n=Lo(n,"onBeforeInput")).length&&(o=new pn("onBeforeInput","beforeinput",null,r,o),i.push({event:o,listeners:n}),o.data=g))}Ro(i,t)}))}function zo(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Lo(e,t){for(var r=t+"Capture",n=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=_t(e,r))&&n.unshift(zo(e,a,o)),null!=(a=_t(e,t))&&n.push(zo(e,a,o))),e=e.return}return n}function Vo(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Bo(e,t,r,n,o){for(var a=t._reactName,i=[];null!==r&&r!==n;){var s=r,l=s.alternate,c=s.stateNode;if(null!==l&&l===n)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=_t(r,a))&&i.unshift(zo(r,l,s)):o||null!=(l=_t(r,a))&&i.push(zo(r,l,s))),r=r.return}0!==i.length&&e.push({event:t,listeners:i})}var Uo=/\r\n?/g,Wo=/\u0000|\uFFFD/g;function qo(e){return("string"==typeof e?e:""+e).replace(Uo,"\n").replace(Wo,"")}function Ko(e,t,r){if(t=qo(t),qo(e)!==t&&r)throw Error(Z(425))}function Ho(){}var Go=null,Qo=null;function Yo(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 Jo="function"==typeof setTimeout?setTimeout:void 0,Xo="function"==typeof clearTimeout?clearTimeout:void 0,Zo="function"==typeof Promise?Promise:void 0,ea="function"==typeof queueMicrotask?queueMicrotask:void 0!==Zo?function(e){return Zo.resolve(null).then(e).catch(ta)}:Jo;function ta(e){setTimeout((function(){throw e}))}function ra(e,t){var r=t,n=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&8===o.nodeType)if("/$"===(r=o.data)){if(0===n)return e.removeChild(o),void Ir(t);n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++;r=o}while(r);Ir(t)}function na(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 oa(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var aa=Math.random().toString(36).slice(2),ia="__reactFiber$"+aa,sa="__reactProps$"+aa,la="__reactContainer$"+aa,ca="__reactEvents$"+aa,ua="__reactListeners$"+aa,da="__reactHandles$"+aa;function fa(e){var t=e[ia];if(t)return t;for(var r=e.parentNode;r;){if(t=r[la]||r[ia]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=oa(e);null!==e;){if(r=e[ia])return r;e=oa(e)}return t}r=(e=r).parentNode}return null}function pa(e){return!(e=e[ia]||e[la])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ma(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(Z(33))}function ha(e){return e[sa]||null}var va=[],ya=-1;function ga(e){return{current:e}}function ba(e){0>ya||(e.current=va[ya],va[ya]=null,ya--)}function wa(e,t){ya++,va[ya]=e.current,e.current=t}var Sa={},xa=ga(Sa),$a=ga(!1),ka=Sa;function _a(e,t){var r=e.type.contextTypes;if(!r)return Sa;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in r)a[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ea(e){return null!=(e=e.childContextTypes)}function Ca(){ba($a),ba(xa)}function Pa(e,t,r){if(xa.current!==Sa)throw Error(Z(168));wa(xa,t),wa($a,r)}function ja(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var o in n=n.getChildContext())if(!(o in t))throw Error(Z(108,Fe(e)||"Unknown",o));return Ne({},r,n)}function Oa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Sa,ka=xa.current,wa(xa,e),wa($a,$a.current),!0}function Na(e,t,r){var n=e.stateNode;if(!n)throw Error(Z(169));r?(e=ja(e,t,ka),n.__reactInternalMemoizedMergedChildContext=e,ba($a),ba(xa),wa(xa,e)):ba($a),wa($a,r)}var Ra=null,Aa=!1,Ta=!1;function Ia(e){null===Ra?Ra=[e]:Ra.push(e)}function Ma(){if(!Ta&&null!==Ra){Ta=!0;var e=0,t=fr;try{var r=Ra;for(fr=1;e<r.length;e++){var n=r[e];do{n=n(!0)}while(null!==n)}Ra=null,Aa=!1}catch(t){throw null!==Ra&&(Ra=Ra.slice(e+1)),Lt(Kt,Ma),t}finally{fr=t,Ta=!1}}return null}var Fa=[],Da=0,za=null,La=0,Va=[],Ba=0,Ua=null,Wa=1,qa="";function Ka(e,t){Fa[Da++]=La,Fa[Da++]=za,za=e,La=t}function Ha(e,t,r){Va[Ba++]=Wa,Va[Ba++]=qa,Va[Ba++]=Ua,Ua=e;var n=Wa;e=qa;var o=32-Zt(n)-1;n&=~(1<<o),r+=1;var a=32-Zt(t)+o;if(30<a){var i=o-o%5;a=(n&(1<<i)-1).toString(32),n>>=i,o-=i,Wa=1<<32-Zt(t)+o|r<<o|n,qa=a+e}else Wa=1<<a|r<<o|n,qa=e}function Ga(e){null!==e.return&&(Ka(e,1),Ha(e,1,0))}function Qa(e){for(;e===za;)za=Fa[--Da],Fa[Da]=null,La=Fa[--Da],Fa[Da]=null;for(;e===Ua;)Ua=Va[--Ba],Va[Ba]=null,qa=Va[--Ba],Va[Ba]=null,Wa=Va[--Ba],Va[Ba]=null}var Ya=null,Ja=null,Xa=!1,Za=null;function ei(e,t){var r=ku(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,null===(t=e.deletions)?(e.deletions=[r],e.flags|=16):t.push(r)}function ti(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,Ya=e,Ja=na(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Ya=e,Ja=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(r=null!==Ua?{id:Wa,overflow:qa}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},(r=ku(18,null,null,0)).stateNode=t,r.return=e,e.child=r,Ya=e,Ja=null,!0);default:return!1}}function ri(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ni(e){if(Xa){var t=Ja;if(t){var r=t;if(!ti(e,t)){if(ri(e))throw Error(Z(418));t=na(r.nextSibling);var n=Ya;t&&ti(e,t)?ei(n,r):(e.flags=-4097&e.flags|2,Xa=!1,Ya=e)}}else{if(ri(e))throw Error(Z(418));e.flags=-4097&e.flags|2,Xa=!1,Ya=e}}}function oi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ya=e}function ai(e){if(e!==Ya)return!1;if(!Xa)return oi(e),Xa=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Yo(e.type,e.memoizedProps)),t&&(t=Ja)){if(ri(e))throw ii(),Error(Z(418));for(;t;)ei(e,t),t=na(t.nextSibling)}if(oi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(Z(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){Ja=na(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}Ja=null}}else Ja=Ya?na(e.stateNode.nextSibling):null;return!0}function ii(){for(var e=Ja;e;)e=na(e.nextSibling)}function si(){Ja=Ya=null,Xa=!1}function li(e){null===Za?Za=[e]:Za.push(e)}var ci=me.ReactCurrentBatchConfig;function ui(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(Z(309));var n=r.stateNode}if(!n)throw Error(Z(147,e));var o=n,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(Z(284));if(!r._owner)throw Error(Z(290,e))}return e}function di(e,t){throw e=Object.prototype.toString.call(t),Error(Z(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function fi(e){return(0,e._init)(e._payload)}function pi(e){function t(t,r){if(e){var n=t.deletions;null===n?(t.deletions=[r],t.flags|=16):n.push(r)}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(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=Eu(e,t)).index=0,e.sibling=null,e}function a(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags|=2,r):n:(t.flags|=2,r):(t.flags|=1048576,r)}function i(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,r,n){return null===t||6!==t.tag?((t=Ou(r,e.mode,n)).return=e,t):((t=o(t,r)).return=e,t)}function l(e,t,r,n){var a=r.type;return a===ye?u(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===Ee&&fi(a)===t.type)?((n=o(t,r.props)).ref=ui(e,t,r),n.return=e,n):((n=Cu(r.type,r.key,r.props,null,e.mode,n)).ref=ui(e,t,r),n.return=e,n)}function c(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Nu(r,e.mode,n)).return=e,t):((t=o(t,r.children||[])).return=e,t)}function u(e,t,r,n,a){return null===t||7!==t.tag?((t=Pu(r,e.mode,n,a)).return=e,t):((t=o(t,r)).return=e,t)}function d(e,t,r){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Ou(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case he:return(r=Cu(t.type,t.key,t.props,null,e.mode,r)).ref=ui(e,null,t),r.return=e,r;case ve:return(t=Nu(t,e.mode,r)).return=e,t;case Ee:return d(e,(0,t._init)(t._payload),r)}if(Qe(t)||je(t))return(t=Pu(t,e.mode,r,null)).return=e,t;di(e,t)}return null}function f(e,t,r,n){var o=null!==t?t.key:null;if("string"==typeof r&&""!==r||"number"==typeof r)return null!==o?null:s(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case he:return r.key===o?l(e,t,r,n):null;case ve:return r.key===o?c(e,t,r,n):null;case Ee:return f(e,t,(o=r._init)(r._payload),n)}if(Qe(r)||je(r))return null!==o?null:u(e,t,r,n,null);di(e,r)}return null}function p(e,t,r,n,o){if("string"==typeof n&&""!==n||"number"==typeof n)return s(t,e=e.get(r)||null,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case he:return l(t,e=e.get(null===n.key?r:n.key)||null,n,o);case ve:return c(t,e=e.get(null===n.key?r:n.key)||null,n,o);case Ee:return p(e,t,r,(0,n._init)(n._payload),o)}if(Qe(n)||je(n))return u(t,e=e.get(r)||null,n,o,null);di(t,n)}return null}function m(o,i,s,l){for(var c=null,u=null,m=i,h=i=0,v=null;null!==m&&h<s.length;h++){m.index>h?(v=m,m=null):v=m.sibling;var y=f(o,m,s[h],l);if(null===y){null===m&&(m=v);break}e&&m&&null===y.alternate&&t(o,m),i=a(y,i,h),null===u?c=y:u.sibling=y,u=y,m=v}if(h===s.length)return r(o,m),Xa&&Ka(o,h),c;if(null===m){for(;h<s.length;h++)null!==(m=d(o,s[h],l))&&(i=a(m,i,h),null===u?c=m:u.sibling=m,u=m);return Xa&&Ka(o,h),c}for(m=n(o,m);h<s.length;h++)null!==(v=p(m,o,h,s[h],l))&&(e&&null!==v.alternate&&m.delete(null===v.key?h:v.key),i=a(v,i,h),null===u?c=v:u.sibling=v,u=v);return e&&m.forEach((function(e){return t(o,e)})),Xa&&Ka(o,h),c}function h(o,i,s,l){var c=je(s);if("function"!=typeof c)throw Error(Z(150));if(null==(s=c.call(s)))throw Error(Z(151));for(var u=c=null,m=i,h=i=0,v=null,y=s.next();null!==m&&!y.done;h++,y=s.next()){m.index>h?(v=m,m=null):v=m.sibling;var g=f(o,m,y.value,l);if(null===g){null===m&&(m=v);break}e&&m&&null===g.alternate&&t(o,m),i=a(g,i,h),null===u?c=g:u.sibling=g,u=g,m=v}if(y.done)return r(o,m),Xa&&Ka(o,h),c;if(null===m){for(;!y.done;h++,y=s.next())null!==(y=d(o,y.value,l))&&(i=a(y,i,h),null===u?c=y:u.sibling=y,u=y);return Xa&&Ka(o,h),c}for(m=n(o,m);!y.done;h++,y=s.next())null!==(y=p(m,o,h,y.value,l))&&(e&&null!==y.alternate&&m.delete(null===y.key?h:y.key),i=a(y,i,h),null===u?c=y:u.sibling=y,u=y);return e&&m.forEach((function(e){return t(o,e)})),Xa&&Ka(o,h),c}return function e(n,a,s,l){if("object"==typeof s&&null!==s&&s.type===ye&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case he:e:{for(var c=s.key,u=a;null!==u;){if(u.key===c){if((c=s.type)===ye){if(7===u.tag){r(n,u.sibling),(a=o(u,s.props.children)).return=n,n=a;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===Ee&&fi(c)===u.type){r(n,u.sibling),(a=o(u,s.props)).ref=ui(n,u,s),a.return=n,n=a;break e}r(n,u);break}t(n,u),u=u.sibling}s.type===ye?((a=Pu(s.props.children,n.mode,l,s.key)).return=n,n=a):((l=Cu(s.type,s.key,s.props,null,n.mode,l)).ref=ui(n,a,s),l.return=n,n=l)}return i(n);case ve:e:{for(u=s.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===s.containerInfo&&a.stateNode.implementation===s.implementation){r(n,a.sibling),(a=o(a,s.children||[])).return=n,n=a;break e}r(n,a);break}t(n,a),a=a.sibling}(a=Nu(s,n.mode,l)).return=n,n=a}return i(n);case Ee:return e(n,a,(u=s._init)(s._payload),l)}if(Qe(s))return m(n,a,s,l);if(je(s))return h(n,a,s,l);di(n,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==a&&6===a.tag?(r(n,a.sibling),(a=o(a,s)).return=n,n=a):(r(n,a),(a=Ou(s,n.mode,l)).return=n,n=a),i(n)):r(n,a)}}var mi=pi(!0),hi=pi(!1),vi=ga(null),yi=null,gi=null,bi=null;function wi(){bi=gi=yi=null}function Si(e){var t=vi.current;ba(vi),e._currentValue=t}function xi(e,t,r){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==n&&(n.childLanes|=t)):null!==n&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function $i(e,t){yi=e,bi=gi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(fl=!0),e.firstContext=null)}function ki(e){var t=e._currentValue;if(bi!==e)if(e={context:e,memoizedValue:t,next:null},null===gi){if(null===yi)throw Error(Z(308));gi=e,yi.dependencies={lanes:0,firstContext:e}}else gi=gi.next=e;return t}var _i=null;function Ei(e){null===_i?_i=[e]:_i.push(e)}function Ci(e,t,r,n){var o=t.interleaved;return null===o?(r.next=r,Ei(t)):(r.next=o.next,o.next=r),t.interleaved=r,Pi(e,n)}function Pi(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}var ji=!1;function Oi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ni(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 Ri(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ai(e,t,r){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,0!=(2&Sc)){var o=n.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),n.pending=t,Pi(e,r)}return null===(o=n.interleaved)?(t.next=t,Ei(n)):(t.next=o.next,o.next=t),n.interleaved=t,Pi(e,r)}function Ti(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&r))){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,dr(e,r)}}function Ii(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var o=null,a=null;if(null!==(r=r.firstBaseUpdate)){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===a?o=a=i:a=a.next=i,r=r.next}while(null!==r);null===a?o=a=t:a=a.next=t}else o=a=t;return r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Mi(e,t,r,n){var o=e.updateQueue;ji=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===i?a=c:i.next=c,i=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==a){var d=o.baseState;for(i=0,u=c=l=null,s=a;;){var f=s.lane,p=s.eventTime;if((n&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,h=s;switch(f=t,p=r,h.tag){case 1:if("function"==typeof(m=h.payload)){d=m.call(p,d,f);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(f="function"==typeof(m=h.payload)?m.call(p,d,f):m))break e;d=Ne({},d,f);break e;case 2:ji=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=p,l=d):u=u.next=p,i|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);jc|=i,e.lanes=i,e.memoizedState=d}}function Fi(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(null!==o){if(n.callback=null,n=r,"function"!=typeof o)throw Error(Z(191,o));o.call(n)}}}var Di={},zi=ga(Di),Li=ga(Di),Vi=ga(Di);function Bi(e){if(e===Di)throw Error(Z(174));return e}function Ui(e,t){switch(wa(Vi,t),wa(Li,e),wa(zi,Di),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:rt(null,"");break;default:t=rt(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ba(zi),wa(zi,t)}function Wi(){ba(zi),ba(Li),ba(Vi)}function qi(e){Bi(Vi.current);var t=Bi(zi.current),r=rt(t,e.type);t!==r&&(wa(Li,e),wa(zi,r))}function Ki(e){Li.current===e&&(ba(zi),ba(Li))}var Hi=ga(0);function Gi(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.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 Qi=[];function Yi(){for(var e=0;e<Qi.length;e++)Qi[e]._workInProgressVersionPrimary=null;Qi.length=0}var Ji=me.ReactCurrentDispatcher,Xi=me.ReactCurrentBatchConfig,Zi=0,es=null,ts=null,rs=null,ns=!1,os=!1,as=0,is=0;function ss(){throw Error(Z(321))}function ls(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!eo(e[r],t[r]))return!1;return!0}function cs(e,t,r,n,o,a){if(Zi=a,es=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ji.current=null===e||null===e.memoizedState?Ks:Hs,e=r(n,o),os){a=0;do{if(os=!1,as=0,25<=a)throw Error(Z(301));a+=1,rs=ts=null,t.updateQueue=null,Ji.current=Gs,e=r(n,o)}while(os)}if(Ji.current=qs,t=null!==ts&&null!==ts.next,Zi=0,rs=ts=es=null,ns=!1,t)throw Error(Z(300));return e}function us(){var e=0!==as;return as=0,e}function ds(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===rs?es.memoizedState=rs=e:rs=rs.next=e,rs}function fs(){if(null===ts){var e=es.alternate;e=null!==e?e.memoizedState:null}else e=ts.next;var t=null===rs?es.memoizedState:rs.next;if(null!==t)rs=t,ts=e;else{if(null===e)throw Error(Z(310));e={memoizedState:(ts=e).memoizedState,baseState:ts.baseState,baseQueue:ts.baseQueue,queue:ts.queue,next:null},null===rs?es.memoizedState=rs=e:rs=rs.next=e}return rs}function ps(e,t){return"function"==typeof t?t(e):t}function ms(e){var t=fs(),r=t.queue;if(null===r)throw Error(Z(311));r.lastRenderedReducer=e;var n=ts,o=n.baseQueue,a=r.pending;if(null!==a){if(null!==o){var i=o.next;o.next=a.next,a.next=i}n.baseQueue=o=a,r.pending=null}if(null!==o){a=o.next,n=n.baseState;var s=i=null,l=null,c=a;do{var u=c.lane;if((Zi&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:e(n,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(s=l=d,i=n):l=l.next=d,es.lanes|=u,jc|=u}c=c.next}while(null!==c&&c!==a);null===l?i=n:l.next=s,eo(n,t.memoizedState)||(fl=!0),t.memoizedState=n,t.baseState=i,t.baseQueue=l,r.lastRenderedState=n}if(null!==(e=r.interleaved)){o=e;do{a=o.lane,es.lanes|=a,jc|=a,o=o.next}while(o!==e)}else null===o&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function hs(e){var t=fs(),r=t.queue;if(null===r)throw Error(Z(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,a=t.memoizedState;if(null!==o){r.pending=null;var i=o=o.next;do{a=e(a,i.action),i=i.next}while(i!==o);eo(a,t.memoizedState)||(fl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function vs(){}function ys(e,t){var r=es,n=fs(),o=t(),a=!eo(n.memoizedState,o);if(a&&(n.memoizedState=o,fl=!0),n=n.queue,js(ws.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||null!==rs&&1&rs.memoizedState.tag){if(r.flags|=2048,ks(9,bs.bind(null,r,n,o,t),void 0,null),null===xc)throw Error(Z(349));0!=(30&Zi)||gs(r,t,o)}return o}function gs(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=es.updateQueue)?(t={lastEffect:null,stores:null},es.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function bs(e,t,r,n){t.value=r,t.getSnapshot=n,Ss(t)&&xs(e)}function ws(e,t,r){return r((function(){Ss(t)&&xs(e)}))}function Ss(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!eo(e,r)}catch(e){return!0}}function xs(e){var t=Pi(e,1);null!==t&&Qc(t,e,1,-1)}function $s(e){var t=ds();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ps,lastRenderedState:e},t.queue=e,e=e.dispatch=Vs.bind(null,es,e),[t.memoizedState,e]}function ks(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=es.updateQueue)?(t={lastEffect:null,stores:null},es.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function _s(){return fs().memoizedState}function Es(e,t,r,n){var o=ds();es.flags|=e,o.memoizedState=ks(1|t,r,void 0,void 0===n?null:n)}function Cs(e,t,r,n){var o=fs();n=void 0===n?null:n;var a=void 0;if(null!==ts){var i=ts.memoizedState;if(a=i.destroy,null!==n&&ls(n,i.deps))return void(o.memoizedState=ks(t,r,a,n))}es.flags|=e,o.memoizedState=ks(1|t,r,a,n)}function Ps(e,t){return Es(8390656,8,e,t)}function js(e,t){return Cs(2048,8,e,t)}function Os(e,t){return Cs(4,2,e,t)}function Ns(e,t){return Cs(4,4,e,t)}function Rs(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 As(e,t,r){return r=null!=r?r.concat([e]):null,Cs(4,4,Rs.bind(null,t,e),r)}function Ts(){}function Is(e,t){var r=fs();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ls(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Ms(e,t){var r=fs();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ls(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Fs(e,t,r){return 0==(21&Zi)?(e.baseState&&(e.baseState=!1,fl=!0),e.memoizedState=r):(eo(r,t)||(r=lr(),es.lanes|=r,jc|=r,e.baseState=!0),t)}function Ds(e,t){var r=fr;fr=0!==r&&4>r?r:4,e(!0);var n=Xi.transition;Xi.transition={};try{e(!1),t()}finally{fr=r,Xi.transition=n}}function zs(){return fs().memoizedState}function Ls(e,t,r){var n=Gc(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Bs(e))Us(t,r);else if(null!==(r=Ci(e,t,r,n))){Qc(r,e,n,Hc()),Ws(r,t,n)}}function Vs(e,t,r){var n=Gc(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Bs(e))Us(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=a(i,r);if(o.hasEagerState=!0,o.eagerState=s,eo(s,i)){var l=t.interleaved;return null===l?(o.next=o,Ei(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(r=Ci(e,t,o,n))&&(Qc(r,e,n,o=Hc()),Ws(r,t,n))}}function Bs(e){var t=e.alternate;return e===es||null!==t&&t===es}function Us(e,t){os=ns=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Ws(e,t,r){if(0!=(4194240&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,dr(e,r)}}var qs={readContext:ki,useCallback:ss,useContext:ss,useEffect:ss,useImperativeHandle:ss,useInsertionEffect:ss,useLayoutEffect:ss,useMemo:ss,useReducer:ss,useRef:ss,useState:ss,useDebugValue:ss,useDeferredValue:ss,useTransition:ss,useMutableSource:ss,useSyncExternalStore:ss,useId:ss,unstable_isNewReconciler:!1},Ks={readContext:ki,useCallback:function(e,t){return ds().memoizedState=[e,void 0===t?null:t],e},useContext:ki,useEffect:Ps,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,Es(4194308,4,Rs.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Es(4194308,4,e,t)},useInsertionEffect:function(e,t){return Es(4,2,e,t)},useMemo:function(e,t){var r=ds();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ds();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Ls.bind(null,es,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},ds().memoizedState=e},useState:$s,useDebugValue:Ts,useDeferredValue:function(e){return ds().memoizedState=e},useTransition:function(){var e=$s(!1),t=e[0];return e=Ds.bind(null,e[1]),ds().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=es,o=ds();if(Xa){if(void 0===r)throw Error(Z(407));r=r()}else{if(r=t(),null===xc)throw Error(Z(349));0!=(30&Zi)||gs(n,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,Ps(ws.bind(null,n,a,e),[e]),n.flags|=2048,ks(9,bs.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=ds(),t=xc.identifierPrefix;if(Xa){var r=qa;t=":"+t+"R"+(r=(Wa&~(1<<32-Zt(Wa)-1)).toString(32)+r),0<(r=as++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=is++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Hs={readContext:ki,useCallback:Is,useContext:ki,useEffect:js,useImperativeHandle:As,useInsertionEffect:Os,useLayoutEffect:Ns,useMemo:Ms,useReducer:ms,useRef:_s,useState:function(){return ms(ps)},useDebugValue:Ts,useDeferredValue:function(e){return Fs(fs(),ts.memoizedState,e)},useTransition:function(){return[ms(ps)[0],fs().memoizedState]},useMutableSource:vs,useSyncExternalStore:ys,useId:zs,unstable_isNewReconciler:!1},Gs={readContext:ki,useCallback:Is,useContext:ki,useEffect:js,useImperativeHandle:As,useInsertionEffect:Os,useLayoutEffect:Ns,useMemo:Ms,useReducer:hs,useRef:_s,useState:function(){return hs(ps)},useDebugValue:Ts,useDeferredValue:function(e){var t=fs();return null===ts?t.memoizedState=e:Fs(t,ts.memoizedState,e)},useTransition:function(){return[hs(ps)[0],fs().memoizedState]},useMutableSource:vs,useSyncExternalStore:ys,useId:zs,unstable_isNewReconciler:!1};function Qs(e,t){if(e&&e.defaultProps){for(var r in t=Ne({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}function Ys(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:Ne({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var Js={isMounted:function(e){return!!(e=e._reactInternals)&&It(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Hc(),o=Gc(e),a=Ri(n,o);a.payload=t,null!=r&&(a.callback=r),null!==(t=Ai(e,a,o))&&(Qc(t,e,o,n),Ti(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Hc(),o=Gc(e),a=Ri(n,o);a.tag=1,a.payload=t,null!=r&&(a.callback=r),null!==(t=Ai(e,a,o))&&(Qc(t,e,o,n),Ti(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Hc(),n=Gc(e),o=Ri(r,n);o.tag=2,null!=t&&(o.callback=t),null!==(t=Ai(e,o,n))&&(Qc(t,e,n,r),Ti(t,e,n))}};function Xs(e,t,r,n,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!to(r,n)||!to(o,a))}function Zs(e,t,r){var n=!1,o=Sa,a=t.contextType;return"object"==typeof a&&null!==a?a=ki(a):(o=Ea(t)?ka:xa.current,a=(n=null!=(n=t.contextTypes))?_a(e,o):Sa),t=new t(r,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Js,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function el(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Js.enqueueReplaceState(t,t.state,null)}function tl(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs={},Oi(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=ki(a):(a=Ea(t)?ka:xa.current,o.context=_a(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(Ys(e,t,a,r),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Js.enqueueReplaceState(o,o.state,null),Mi(e,r,o,n),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function rl(e,t){try{var r="",n=t;do{r+=Ie(n),n=n.return}while(n);var o=r}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function nl(e,t,r){return{value:e,source:null,stack:null!=r?r:null,digest:null!=t?t:null}}function ol(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var al="function"==typeof WeakMap?WeakMap:Map;function il(e,t,r){(r=Ri(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Fc||(Fc=!0,Dc=n),ol(0,t)},r}function sl(e,t,r){(r=Ri(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){ol(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(r.callback=function(){ol(0,t),"function"!=typeof n&&(null===zc?zc=new Set([this]):zc.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}function ll(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new al;var o=new Set;n.set(t,o)}else void 0===(o=n.get(t))&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=gu.bind(null,e,t,r),t.then(e,e))}function cl(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 ul(e,t,r,n,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((t=Ri(-1,1)).tag=2,Ai(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var dl=me.ReactCurrentOwner,fl=!1;function pl(e,t,r,n){t.child=null===e?hi(t,null,r,n):mi(t,e.child,r,n)}function ml(e,t,r,n,o){r=r.render;var a=t.ref;return $i(t,o),n=cs(e,t,r,n,a,o),r=us(),null===e||fl?(Xa&&r&&Ga(t),t.flags|=1,pl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Fl(e,t,o))}function hl(e,t,r,n,o){if(null===e){var a=r.type;return"function"!=typeof a||_u(a)||void 0!==a.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Cu(r.type,null,n,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,vl(e,t,a,n,o))}if(a=e.child,0==(e.lanes&o)){var i=a.memoizedProps;if((r=null!==(r=r.compare)?r:to)(i,n)&&e.ref===t.ref)return Fl(e,t,o)}return t.flags|=1,(e=Eu(a,n)).ref=t.ref,e.return=t,t.child=e}function vl(e,t,r,n,o){if(null!==e){var a=e.memoizedProps;if(to(a,n)&&e.ref===t.ref){if(fl=!1,t.pendingProps=n=a,0==(e.lanes&o))return t.lanes=e.lanes,Fl(e,t,o);0!=(131072&e.flags)&&(fl=!0)}}return bl(e,t,r,n,o)}function yl(e,t,r){var n=t.pendingProps,o=n.children,a=null!==e?e.memoizedState:null;if("hidden"===n.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},wa(Ec,_c),_c|=r;else{if(0==(1073741824&r))return e=null!==a?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,wa(Ec,_c),_c|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==a?a.baseLanes:r,wa(Ec,_c),_c|=n}else null!==a?(n=a.baseLanes|r,t.memoizedState=null):n=r,wa(Ec,_c),_c|=n;return pl(e,t,o,r),t.child}function gl(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function bl(e,t,r,n,o){var a=Ea(r)?ka:xa.current;return a=_a(t,a),$i(t,o),r=cs(e,t,r,n,a,o),n=us(),null===e||fl?(Xa&&n&&Ga(t),t.flags|=1,pl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Fl(e,t,o))}function wl(e,t,r,n,o){if(Ea(r)){var a=!0;Oa(t)}else a=!1;if($i(t,o),null===t.stateNode)Ml(e,t),Zs(t,r,n),tl(t,r,n,o),n=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,c=r.contextType;"object"==typeof c&&null!==c?c=ki(c):c=_a(t,c=Ea(r)?ka:xa.current);var u=r.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==n||l!==c)&&el(t,i,n,c),ji=!1;var f=t.memoizedState;i.state=f,Mi(t,n,i,o),l=t.memoizedState,s!==n||f!==l||$a.current||ji?("function"==typeof u&&(Ys(t,r,u,n),l=t.memoizedState),(s=ji||Xs(t,r,s,n,f,l,c))?(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=n,t.memoizedState=l),i.props=n,i.state=l,i.context=c,n=s):("function"==typeof i.componentDidMount&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,Ni(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Qs(t.type,s),i.props=c,d=t.pendingProps,f=i.context,"object"==typeof(l=r.contextType)&&null!==l?l=ki(l):l=_a(t,l=Ea(r)?ka:xa.current);var p=r.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==d||f!==l)&&el(t,i,n,l),ji=!1,f=t.memoizedState,i.state=f,Mi(t,n,i,o);var m=t.memoizedState;s!==d||f!==m||$a.current||ji?("function"==typeof p&&(Ys(t,r,p,n),m=t.memoizedState),(c=ji||Xs(t,r,c,n,f,m,l)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(n,m,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(n,m,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=m),i.props=n,i.state=m,i.context=l,n=c):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),n=!1)}return Sl(e,t,r,n,a,o)}function Sl(e,t,r,n,o,a){gl(e,t);var i=0!=(128&t.flags);if(!n&&!i)return o&&Na(t,r,!1),Fl(e,t,a);n=t.stateNode,dl.current=t;var s=i&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&i?(t.child=mi(t,e.child,null,a),t.child=mi(t,null,s,a)):pl(e,t,s,a),t.memoizedState=n.state,o&&Na(t,r,!0),t.child}function xl(e){var t=e.stateNode;t.pendingContext?Pa(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Pa(0,t.context,!1),Ui(e,t.containerInfo)}function $l(e,t,r,n,o){return si(),li(o),t.flags|=256,pl(e,t,r,n),t.child}var kl,_l,El,Cl,Pl={dehydrated:null,treeContext:null,retryLane:0};function jl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ol(e,t,r){var n,o=t.pendingProps,a=Hi.current,i=!1,s=0!=(128&t.flags);if((n=s)||(n=(null===e||null!==e.memoizedState)&&0!=(2&a)),n?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),wa(Hi,1&a),null===e)return ni(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,i?(o=t.mode,i=t.child,s={mode:"hidden",children:s},0==(1&o)&&null!==i?(i.childLanes=0,i.pendingProps=s):i=ju(s,o,0,null),e=Pu(e,o,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=jl(r),t.memoizedState=Pl,e):Nl(t,s));if(null!==(a=e.memoizedState)&&null!==(n=a.dehydrated))return function(e,t,r,n,o,a,i){if(r)return 256&t.flags?(t.flags&=-257,Rl(e,t,i,n=nl(Error(Z(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=n.fallback,o=t.mode,n=ju({mode:"visible",children:n.children},o,0,null),(a=Pu(a,o,i,null)).flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,0!=(1&t.mode)&&mi(t,e.child,null,i),t.child.memoizedState=jl(i),t.memoizedState=Pl,a);if(0==(1&t.mode))return Rl(e,t,i,null);if("$!"===o.data){if(n=o.nextSibling&&o.nextSibling.dataset)var s=n.dgst;return n=s,Rl(e,t,i,n=nl(a=Error(Z(419)),n,void 0))}if(s=0!=(i&e.childLanes),fl||s){if(null!==(n=xc)){switch(i&-i){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&(n.suspendedLanes|i))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Pi(e,o),Qc(n,e,o,-1))}return lu(),Rl(e,t,i,n=nl(Error(Z(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=wu.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,Ja=na(o.nextSibling),Ya=t,Xa=!0,Za=null,null!==e&&(Va[Ba++]=Wa,Va[Ba++]=qa,Va[Ba++]=Ua,Wa=e.id,qa=e.overflow,Ua=t),t=Nl(t,n.children),t.flags|=4096,t)}(e,t,s,o,n,a,r);if(i){i=o.fallback,s=t.mode,n=(a=e.child).sibling;var l={mode:"hidden",children:o.children};return 0==(1&s)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=l,t.deletions=null):(o=Eu(a,l)).subtreeFlags=14680064&a.subtreeFlags,null!==n?i=Eu(n,i):(i=Pu(i,s,r,null)).flags|=2,i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,s=null===(s=e.child.memoizedState)?jl(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~r,t.memoizedState=Pl,o}return e=(i=e.child).sibling,o=Eu(i,{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 Nl(e,t){return(t=ju({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Rl(e,t,r,n){return null!==n&&li(n),mi(t,e.child,null,r),(e=Nl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Al(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),xi(e.return,t,r)}function Tl(e,t,r,n,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=o)}function Il(e,t,r){var n=t.pendingProps,o=n.revealOrder,a=n.tail;if(pl(e,t,n.children,r),0!=(2&(n=Hi.current)))n=1&n|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&&Al(e,r,t);else if(19===e.tag)Al(e,r,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}n&=1}if(wa(Hi,n),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;null!==r;)null!==(e=r.alternate)&&null===Gi(e)&&(o=r),r=r.sibling;null===(r=o)?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),Tl(t,!1,o,r,a);break;case"backwards":for(r=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Gi(e)){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}Tl(t,!0,r,null,a);break;case"together":Tl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ml(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Fl(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),jc|=t.lanes,0==(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(Z(153));if(null!==t.child){for(r=Eu(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Eu(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Dl(e,t){if(!Xa)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function zl(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=14680064&o.subtreeFlags,n|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Ll(e,t,r){var n=t.pendingProps;switch(Qa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zl(t),null;case 1:case 17:return Ea(t.type)&&Ca(),zl(t),null;case 3:return n=t.stateNode,Wi(),ba($a),ba(xa),Yi(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(ai(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==Za&&(Zc(Za),Za=null))),_l(e,t),zl(t),null;case 5:Ki(t);var o=Bi(Vi.current);if(r=t.type,null!==e&&null!=t.stateNode)El(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(null===t.stateNode)throw Error(Z(166));return zl(t),null}if(e=Bi(zi.current),ai(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[ia]=t,n[sa]=a,e=0!=(1&t.mode),r){case"dialog":Ao("cancel",n),Ao("close",n);break;case"iframe":case"object":case"embed":Ao("load",n);break;case"video":case"audio":for(o=0;o<jo.length;o++)Ao(jo[o],n);break;case"source":Ao("error",n);break;case"img":case"image":case"link":Ao("error",n),Ao("load",n);break;case"details":Ao("toggle",n);break;case"input":We(n,a),Ao("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Ao("invalid",n);break;case"textarea":Xe(n,a),Ao("invalid",n)}for(var i in dt(r,a),o=null,a)if(a.hasOwnProperty(i)){var s=a[i];"children"===i?"string"==typeof s?n.textContent!==s&&(!0!==a.suppressHydrationWarning&&Ko(n.textContent,s,e),o=["children",s]):"number"==typeof s&&n.textContent!==""+s&&(!0!==a.suppressHydrationWarning&&Ko(n.textContent,s,e),o=["children",""+s]):te.hasOwnProperty(i)&&null!=s&&"onScroll"===i&&Ao("scroll",n)}switch(r){case"input":Le(n),He(n,a,!0);break;case"textarea":Le(n),et(n);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(n.onclick=Ho)}n=o,t.updateQueue=n,null!==n&&(t.flags|=4)}else{i=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=tt(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),"select"===r&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[ia]=t,e[sa]=n,kl(e,t,!1,!1),t.stateNode=e;e:{switch(i=ft(r,n),r){case"dialog":Ao("cancel",e),Ao("close",e),o=n;break;case"iframe":case"object":case"embed":Ao("load",e),o=n;break;case"video":case"audio":for(o=0;o<jo.length;o++)Ao(jo[o],e);o=n;break;case"source":Ao("error",e),o=n;break;case"img":case"image":case"link":Ao("error",e),Ao("load",e),o=n;break;case"details":Ao("toggle",e),o=n;break;case"input":We(e,n),o=Ue(e,n),Ao("invalid",e);break;case"option":default:o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=Ne({},n,{value:void 0}),Ao("invalid",e);break;case"textarea":Xe(e,n),o=Je(e,n),Ao("invalid",e)}for(a in dt(r,o),s=o)if(s.hasOwnProperty(a)){var l=s[a];"style"===a?ct(e,l):"dangerouslySetInnerHTML"===a?null!=(l=l?l.__html:void 0)&&ot(e,l):"children"===a?"string"==typeof l?("textarea"!==r||""!==l)&&at(e,l):"number"==typeof l&&at(e,""+l):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(te.hasOwnProperty(a)?null!=l&&"onScroll"===a&&Ao("scroll",e):null!=l&&pe(e,a,l,i))}switch(r){case"input":Le(e),He(e,n,!1);break;case"textarea":Le(e),et(e);break;case"option":null!=n.value&&e.setAttribute("value",""+De(n.value));break;case"select":e.multiple=!!n.multiple,null!=(a=n.value)?Ye(e,!!n.multiple,a,!1):null!=n.defaultValue&&Ye(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Ho)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return zl(t),null;case 6:if(e&&null!=t.stateNode)Cl(e,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(Z(166));if(r=Bi(Vi.current),Bi(zi.current),ai(t)){if(n=t.stateNode,r=t.memoizedProps,n[ia]=t,(a=n.nodeValue!==r)&&null!==(e=Ya))switch(e.tag){case 3:Ko(n.nodeValue,r,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Ko(n.nodeValue,r,0!=(1&e.mode))}a&&(t.flags|=4)}else(n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[ia]=t,t.stateNode=n}return zl(t),null;case 13:if(ba(Hi),n=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(Xa&&null!==Ja&&0!=(1&t.mode)&&0==(128&t.flags))ii(),si(),t.flags|=98560,a=!1;else if(a=ai(t),null!==n&&null!==n.dehydrated){if(null===e){if(!a)throw Error(Z(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(Z(317));a[ia]=t}else si(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;zl(t),a=!1}else null!==Za&&(Zc(Za),Za=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=r,t):((n=null!==n)!==(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&Hi.current)?0===Cc&&(Cc=3):lu())),null!==t.updateQueue&&(t.flags|=4),zl(t),null);case 4:return Wi(),_l(e,t),null===e&&Mo(t.stateNode.containerInfo),zl(t),null;case 10:return Si(t.type._context),zl(t),null;case 19:if(ba(Hi),null===(a=t.memoizedState))return zl(t),null;if(n=0!=(128&t.flags),null===(i=a.rendering))if(n)Dl(a,!1);else{if(0!==Cc||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(i=Gi(e))){for(t.flags|=128,Dl(a,!1),null!==(n=i.updateQueue)&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;null!==r;)e=n,(a=r).flags&=14680066,null===(i=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,e=i.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return wa(Hi,1&Hi.current|2),t.child}e=e.sibling}null!==a.tail&&Wt()>Ic&&(t.flags|=128,n=!0,Dl(a,!1),t.lanes=4194304)}else{if(!n)if(null!==(e=Gi(i))){if(t.flags|=128,n=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Dl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!i.alternate&&!Xa)return zl(t),null}else 2*Wt()-a.renderingStartTime>Ic&&1073741824!==r&&(t.flags|=128,n=!0,Dl(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(null!==(r=a.last)?r.sibling=i:t.child=i,a.last=i)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Wt(),t.sibling=null,r=Hi.current,wa(Hi,n?1&r|2:1&r),t):(zl(t),null);case 22:case 23:return ou(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&0!=(1&t.mode)?0!=(1073741824&_c)&&(zl(t),6&t.subtreeFlags&&(t.flags|=8192)):zl(t),null;case 24:case 25:return null}throw Error(Z(156,t.tag))}function Vl(e,t){switch(Qa(t),t.tag){case 1:return Ea(t.type)&&Ca(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Wi(),ba($a),ba(xa),Yi(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ki(t),null;case 13:if(ba(Hi),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(Z(340));si()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ba(Hi),null;case 4:return Wi(),null;case 10:return Si(t.type._context),null;case 22:case 23:return ou(),null;default:return null}}kl=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},_l=function(){},El=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,Bi(zi.current);var a,i=null;switch(r){case"input":o=Ue(e,o),n=Ue(e,n),i=[];break;case"select":o=Ne({},o,{value:void 0}),n=Ne({},n,{value:void 0}),i=[];break;case"textarea":o=Je(e,o),n=Je(e,n),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof n.onClick&&(e.onclick=Ho)}for(c in dt(r,n),r=null,o)if(!n.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var s=o[c];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(te.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in n){var l=n[c];if(s=null!=o?o[c]:void 0,n.hasOwnProperty(c)&&l!==s&&(null!=l||null!=s))if("style"===c)if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(r||(r={}),r[a]=l[a])}else r||(i||(i=[]),i.push(c,r)),r=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(i=i||[]).push(c,l)):"children"===c?"string"!=typeof l&&"number"!=typeof l||(i=i||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(te.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&Ao("scroll",e),i||s===l||(i=[])):(i=i||[]).push(c,l))}r&&(i=i||[]).push("style",r);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},Cl=function(e,t,r,n){r!==n&&(t.flags|=4)};var Bl=!1,Ul=!1,Wl="function"==typeof WeakSet?WeakSet:Set,ql=null;function Kl(e,t){var r=e.ref;if(null!==r)if("function"==typeof r)try{r(null)}catch(r){yu(e,t,r)}else r.current=null}function Hl(e,t,r){try{r()}catch(r){yu(e,t,r)}}var Gl=!1;function Ql(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var o=n=n.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&Hl(t,r,a)}o=o.next}while(o!==n)}}function Yl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Jl(e){var t=e.ref;if(null!==t){var r=e.stateNode;e.tag,e=r,"function"==typeof t?t(e):t.current=e}}function Xl(e){var t=e.alternate;null!==t&&(e.alternate=null,Xl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[ia],delete t[sa],delete t[ca],delete t[ua],delete t[da])),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 Zl(e){return 5===e.tag||3===e.tag||4===e.tag}function ec(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Zl(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 tc(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=Ho));else if(4!==n&&null!==(e=e.child))for(tc(e,t,r),e=e.sibling;null!==e;)tc(e,t,r),e=e.sibling}function rc(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(rc(e,t,r),e=e.sibling;null!==e;)rc(e,t,r),e=e.sibling}var nc=null,oc=!1;function ac(e,t,r){for(r=r.child;null!==r;)ic(e,t,r),r=r.sibling}function ic(e,t,r){if(Xt&&"function"==typeof Xt.onCommitFiberUnmount)try{Xt.onCommitFiberUnmount(Jt,r)}catch(e){}switch(r.tag){case 5:Ul||Kl(r,t);case 6:var n=nc,o=oc;nc=null,ac(e,t,r),oc=o,null!==(nc=n)&&(oc?(e=nc,r=r.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)):nc.removeChild(r.stateNode));break;case 18:null!==nc&&(oc?(e=nc,r=r.stateNode,8===e.nodeType?ra(e.parentNode,r):1===e.nodeType&&ra(e,r),Ir(e)):ra(nc,r.stateNode));break;case 4:n=nc,o=oc,nc=r.stateNode.containerInfo,oc=!0,ac(e,t,r),nc=n,oc=o;break;case 0:case 11:case 14:case 15:if(!Ul&&(null!==(n=r.updateQueue)&&null!==(n=n.lastEffect))){o=n=n.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&Hl(r,t,i),o=o.next}while(o!==n)}ac(e,t,r);break;case 1:if(!Ul&&(Kl(r,t),"function"==typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(e){yu(r,t,e)}ac(e,t,r);break;case 21:ac(e,t,r);break;case 22:1&r.mode?(Ul=(n=Ul)||null!==r.memoizedState,ac(e,t,r),Ul=n):ac(e,t,r);break;default:ac(e,t,r)}}function sc(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Wl),t.forEach((function(t){var n=Su.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}function lc(e,t){var r=t.deletions;if(null!==r)for(var n=0;n<r.length;n++){var o=r[n];try{var a=e,i=t,s=i;e:for(;null!==s;){switch(s.tag){case 5:nc=s.stateNode,oc=!1;break e;case 3:case 4:nc=s.stateNode.containerInfo,oc=!0;break e}s=s.return}if(null===nc)throw Error(Z(160));ic(a,i,o),nc=null,oc=!1;var l=o.alternate;null!==l&&(l.return=null),o.return=null}catch(e){yu(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)cc(t,e),t=t.sibling}function cc(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(lc(t,e),uc(e),4&n){try{Ql(3,e,e.return),Yl(3,e)}catch(t){yu(e,e.return,t)}try{Ql(5,e,e.return)}catch(t){yu(e,e.return,t)}}break;case 1:lc(t,e),uc(e),512&n&&null!==r&&Kl(r,r.return);break;case 5:if(lc(t,e),uc(e),512&n&&null!==r&&Kl(r,r.return),32&e.flags){var o=e.stateNode;try{at(o,"")}catch(t){yu(e,e.return,t)}}if(4&n&&null!=(o=e.stateNode)){var a=e.memoizedProps,i=null!==r?r.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===a.type&&null!=a.name&&qe(o,a),ft(s,i);var c=ft(s,a);for(i=0;i<l.length;i+=2){var u=l[i],d=l[i+1];"style"===u?ct(o,d):"dangerouslySetInnerHTML"===u?ot(o,d):"children"===u?at(o,d):pe(o,u,d,c)}switch(s){case"input":Ke(o,a);break;case"textarea":Ze(o,a);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?Ye(o,!!a.multiple,p,!1):f!==!!a.multiple&&(null!=a.defaultValue?Ye(o,!!a.multiple,a.defaultValue,!0):Ye(o,!!a.multiple,a.multiple?[]:"",!1))}o[sa]=a}catch(t){yu(e,e.return,t)}}break;case 6:if(lc(t,e),uc(e),4&n){if(null===e.stateNode)throw Error(Z(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){yu(e,e.return,t)}}break;case 3:if(lc(t,e),uc(e),4&n&&null!==r&&r.memoizedState.isDehydrated)try{Ir(t.containerInfo)}catch(t){yu(e,e.return,t)}break;case 4:default:lc(t,e),uc(e);break;case 13:lc(t,e),uc(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Tc=Wt())),4&n&&sc(e);break;case 22:if(u=null!==r&&null!==r.memoizedState,1&e.mode?(Ul=(c=Ul)||u,lc(t,e),Ul=c):lc(t,e),uc(e),8192&n){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&0!=(1&e.mode))for(ql=e,u=e.child;null!==u;){for(d=ql=u;null!==ql;){switch(p=(f=ql).child,f.tag){case 0:case 11:case 14:case 15:Ql(4,f,f.return);break;case 1:Kl(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){n=f,r=f.return;try{t=n,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){yu(n,r,e)}}break;case 5:Kl(f,f.return);break;case 22:if(null!==f.memoizedState){mc(d);continue}}null!==p?(p.return=f,ql=p):mc(d)}u=u.sibling}e:for(u=null,d=e;;){if(5===d.tag){if(null===u){u=d;try{o=d.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(s=d.stateNode,i=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=lt("display",i))}catch(t){yu(e,e.return,t)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){yu(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:lc(t,e),uc(e),4&n&&sc(e);case 21:}}function uc(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(Zl(r)){var n=r;break e}r=r.return}throw Error(Z(160))}switch(n.tag){case 5:var o=n.stateNode;32&n.flags&&(at(o,""),n.flags&=-33),rc(e,ec(e),o);break;case 3:case 4:var a=n.stateNode.containerInfo;tc(e,ec(e),a);break;default:throw Error(Z(161))}}catch(t){yu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function dc(e,t,r){ql=e,fc(e)}function fc(e,t,r){for(var n=0!=(1&e.mode);null!==ql;){var o=ql,a=o.child;if(22===o.tag&&n){var i=null!==o.memoizedState||Bl;if(!i){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Ul;s=Bl;var c=Ul;if(Bl=i,(Ul=l)&&!c)for(ql=o;null!==ql;)l=(i=ql).child,22===i.tag&&null!==i.memoizedState?hc(o):null!==l?(l.return=i,ql=l):hc(o);for(;null!==a;)ql=a,fc(a),a=a.sibling;ql=o,Bl=s,Ul=c}pc(e)}else 0!=(8772&o.subtreeFlags)&&null!==a?(a.return=o,ql=a):pc(e)}}function pc(e){for(;null!==ql;){var t=ql;if(0!=(8772&t.flags)){var r=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ul||Yl(5,t);break;case 1:var n=t.stateNode;if(4&t.flags&&!Ul)if(null===r)n.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:Qs(t.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Fi(t,a,n);break;case 3:var i=t.updateQueue;if(null!==i){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Fi(t,i,r)}break;case 5:var s=t.stateNode;if(null===r&&4&t.flags){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&Ir(d)}}}break;default:throw Error(Z(163))}Ul||512&t.flags&&Jl(t)}catch(e){yu(t,t.return,e)}}if(t===e){ql=null;break}if(null!==(r=t.sibling)){r.return=t.return,ql=r;break}ql=t.return}}function mc(e){for(;null!==ql;){var t=ql;if(t===e){ql=null;break}var r=t.sibling;if(null!==r){r.return=t.return,ql=r;break}ql=t.return}}function hc(e){for(;null!==ql;){var t=ql;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Yl(4,t)}catch(e){yu(t,r,e)}break;case 1:var n=t.stateNode;if("function"==typeof n.componentDidMount){var o=t.return;try{n.componentDidMount()}catch(e){yu(t,o,e)}}var a=t.return;try{Jl(t)}catch(e){yu(t,a,e)}break;case 5:var i=t.return;try{Jl(t)}catch(e){yu(t,i,e)}}}catch(e){yu(t,t.return,e)}if(t===e){ql=null;break}var s=t.sibling;if(null!==s){s.return=t.return,ql=s;break}ql=t.return}}var vc,yc=Math.ceil,gc=me.ReactCurrentDispatcher,bc=me.ReactCurrentOwner,wc=me.ReactCurrentBatchConfig,Sc=0,xc=null,$c=null,kc=0,_c=0,Ec=ga(0),Cc=0,Pc=null,jc=0,Oc=0,Nc=0,Rc=null,Ac=null,Tc=0,Ic=1/0,Mc=null,Fc=!1,Dc=null,zc=null,Lc=!1,Vc=null,Bc=0,Uc=0,Wc=null,qc=-1,Kc=0;function Hc(){return 0!=(6&Sc)?Wt():-1!==qc?qc:qc=Wt()}function Gc(e){return 0==(1&e.mode)?1:0!=(2&Sc)&&0!==kc?kc&-kc:null!==ci.transition?(0===Kc&&(Kc=lr()),Kc):0!==(e=fr)?e:e=void 0===(e=window.event)?16:Ur(e.type)}function Qc(e,t,r,n){if(50<Uc)throw Uc=0,Wc=null,Error(Z(185));ur(e,r,n),0!=(2&Sc)&&e===xc||(e===xc&&(0==(2&Sc)&&(Oc|=r),4===Cc&&eu(e,kc)),Yc(e,n),1===r&&0===Sc&&0==(1&t.mode)&&(Ic=Wt()+500,Aa&&Ma()))}function Yc(e,t){var r=e.callbackNode;!function(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-Zt(a),s=1<<i,l=o[i];-1===l?0!=(s&r)&&0==(s&n)||(o[i]=ir(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var n=ar(e,e===xc?kc:0);if(0===n)null!==r&&Vt(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(null!=r&&Vt(r),1===t)0===e.tag?function(e){Aa=!0,Ia(e)}(tu.bind(null,e)):Ia(tu.bind(null,e)),ea((function(){0==(6&Sc)&&Ma()})),r=null;else{switch(pr(n)){case 1:r=Kt;break;case 4:r=Ht;break;case 16:default:r=Gt;break;case 536870912:r=Yt}r=xu(r,Jc.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Jc(e,t){if(qc=-1,Kc=0,0!=(6&Sc))throw Error(Z(327));var r=e.callbackNode;if(hu()&&e.callbackNode!==r)return null;var n=ar(e,e===xc?kc:0);if(0===n)return null;if(0!=(30&n)||0!=(n&e.expiredLanes)||t)t=cu(e,n);else{t=n;var o=Sc;Sc|=2;var a=su();for(xc===e&&kc===t||(Mc=null,Ic=Wt()+500,au(e,t));;)try{du();break}catch(t){iu(e,t)}wi(),gc.current=a,Sc=o,null!==$c?t=0:(xc=null,kc=0,t=Cc)}if(0!==t){if(2===t&&(0!==(o=sr(e))&&(n=o,t=Xc(e,o))),1===t)throw r=Pc,au(e,0),eu(e,n),Yc(e,Wt()),r;if(6===t)eu(e,n);else{if(o=e.current.alternate,0==(30&n)&&!function(e){for(var t=e;;){if(16384&t.flags){var r=t.updateQueue;if(null!==r&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var o=r[n],a=o.getSnapshot;o=o.value;try{if(!eo(a(),o))return!1}catch(e){return!1}}}if(r=t.child,16384&t.subtreeFlags&&null!==r)r.return=t,t=r;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=cu(e,n))&&(0!==(a=sr(e))&&(n=a,t=Xc(e,a))),1===t))throw r=Pc,au(e,0),eu(e,n),Yc(e,Wt()),r;switch(e.finishedWork=o,e.finishedLanes=n,t){case 0:case 1:throw Error(Z(345));case 2:case 5:mu(e,Ac,Mc);break;case 3:if(eu(e,n),(130023424&n)===n&&10<(t=Tc+500-Wt())){if(0!==ar(e,0))break;if(((o=e.suspendedLanes)&n)!==n){Hc(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Jo(mu.bind(null,e,Ac,Mc),t);break}mu(e,Ac,Mc);break;case 4:if(eu(e,n),(4194240&n)===n)break;for(t=e.eventTimes,o=-1;0<n;){var i=31-Zt(n);a=1<<i,(i=t[i])>o&&(o=i),n&=~a}if(n=o,10<(n=(120>(n=Wt()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*yc(n/1960))-n)){e.timeoutHandle=Jo(mu.bind(null,e,Ac,Mc),n);break}mu(e,Ac,Mc);break;default:throw Error(Z(329))}}}return Yc(e,Wt()),e.callbackNode===r?Jc.bind(null,e):null}function Xc(e,t){var r=Rc;return e.current.memoizedState.isDehydrated&&(au(e,t).flags|=256),2!==(e=cu(e,t))&&(t=Ac,Ac=r,null!==t&&Zc(t)),e}function Zc(e){null===Ac?Ac=e:Ac.push.apply(Ac,e)}function eu(e,t){for(t&=~Nc,t&=~Oc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Zt(t),n=1<<r;e[r]=-1,t&=~n}}function tu(e){if(0!=(6&Sc))throw Error(Z(327));hu();var t=ar(e,0);if(0==(1&t))return Yc(e,Wt()),null;var r=cu(e,t);if(0!==e.tag&&2===r){var n=sr(e);0!==n&&(t=n,r=Xc(e,n))}if(1===r)throw r=Pc,au(e,0),eu(e,t),Yc(e,Wt()),r;if(6===r)throw Error(Z(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,mu(e,Ac,Mc),Yc(e,Wt()),null}function ru(e,t){var r=Sc;Sc|=1;try{return e(t)}finally{0===(Sc=r)&&(Ic=Wt()+500,Aa&&Ma())}}function nu(e){null!==Vc&&0===Vc.tag&&0==(6&Sc)&&hu();var t=Sc;Sc|=1;var r=wc.transition,n=fr;try{if(wc.transition=null,fr=1,e)return e()}finally{fr=n,wc.transition=r,0==(6&(Sc=t))&&Ma()}}function ou(){_c=Ec.current,ba(Ec)}function au(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,Xo(r)),null!==$c)for(r=$c.return;null!==r;){var n=r;switch(Qa(n),n.tag){case 1:null!=(n=n.type.childContextTypes)&&Ca();break;case 3:Wi(),ba($a),ba(xa),Yi();break;case 5:Ki(n);break;case 4:Wi();break;case 13:case 19:ba(Hi);break;case 10:Si(n.type._context);break;case 22:case 23:ou()}r=r.return}if(xc=e,$c=e=Eu(e.current,null),kc=_c=t,Cc=0,Pc=null,Nc=Oc=jc=0,Ac=Rc=null,null!==_i){for(t=0;t<_i.length;t++)if(null!==(n=(r=_i[t]).interleaved)){r.interleaved=null;var o=n.next,a=r.pending;if(null!==a){var i=a.next;a.next=o,n.next=i}r.pending=n}_i=null}return e}function iu(e,t){for(;;){var r=$c;try{if(wi(),Ji.current=qs,ns){for(var n=es.memoizedState;null!==n;){var o=n.queue;null!==o&&(o.pending=null),n=n.next}ns=!1}if(Zi=0,rs=ts=es=null,os=!1,as=0,bc.current=null,null===r||null===r.return){Cc=1,Pc=t,$c=null;break}e:{var a=e,i=r.return,s=r,l=t;if(t=kc,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l,u=s,d=u.tag;if(0==(1&u.mode)&&(0===d||11===d||15===d)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var p=cl(i);if(null!==p){p.flags&=-257,ul(p,i,s,0,t),1&p.mode&&ll(a,c,t),l=c;var m=(t=p).updateQueue;if(null===m){var h=new Set;h.add(l),t.updateQueue=h}else m.add(l);break e}if(0==(1&t)){ll(a,c,t),lu();break e}l=Error(Z(426))}else if(Xa&&1&s.mode){var v=cl(i);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),ul(v,i,s,0,t),li(rl(l,s));break e}}a=l=rl(l,s),4!==Cc&&(Cc=2),null===Rc?Rc=[a]:Rc.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Ii(a,il(0,l,t));break e;case 1:s=l;var y=a.type,g=a.stateNode;if(0==(128&a.flags)&&("function"==typeof y.getDerivedStateFromError||null!==g&&"function"==typeof g.componentDidCatch&&(null===zc||!zc.has(g)))){a.flags|=65536,t&=-t,a.lanes|=t,Ii(a,sl(a,s,t));break e}}a=a.return}while(null!==a)}pu(r)}catch(e){t=e,$c===r&&null!==r&&($c=r=r.return);continue}break}}function su(){var e=gc.current;return gc.current=qs,null===e?qs:e}function lu(){0!==Cc&&3!==Cc&&2!==Cc||(Cc=4),null===xc||0==(268435455&jc)&&0==(268435455&Oc)||eu(xc,kc)}function cu(e,t){var r=Sc;Sc|=2;var n=su();for(xc===e&&kc===t||(Mc=null,au(e,t));;)try{uu();break}catch(t){iu(e,t)}if(wi(),Sc=r,gc.current=n,null!==$c)throw Error(Z(261));return xc=null,kc=0,Cc}function uu(){for(;null!==$c;)fu($c)}function du(){for(;null!==$c&&!Bt();)fu($c)}function fu(e){var t=vc(e.alternate,e,_c);e.memoizedProps=e.pendingProps,null===t?pu(e):$c=t,bc.current=null}function pu(e){var t=e;do{var r=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(r=Ll(r,t,_c)))return void($c=r)}else{if(null!==(r=Vl(r,t)))return r.flags&=32767,void($c=r);if(null===e)return Cc=6,void($c=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void($c=t);$c=t=e}while(null!==t);0===Cc&&(Cc=5)}function mu(e,t,r){var n=fr,o=wc.transition;try{wc.transition=null,fr=1,function(e,t,r,n){do{hu()}while(null!==Vc);if(0!=(6&Sc))throw Error(Z(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(Z(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-Zt(r),a=1<<o;t[o]=0,n[o]=-1,e[o]=-1,r&=~a}}(e,a),e===xc&&($c=xc=null,kc=0),0==(2064&r.subtreeFlags)&&0==(2064&r.flags)||Lc||(Lc=!0,xu(Gt,(function(){return hu(),null}))),a=0!=(15990&r.flags),0!=(15990&r.subtreeFlags)||a){a=wc.transition,wc.transition=null;var i=fr;fr=1;var s=Sc;Sc|=4,bc.current=null,function(e,t){if(Go=Fr,io(e=ao())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(n&&0!==n.rangeCount){r=n.anchorNode;var o=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch(e){r=null;break e}var i=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var p;d!==r||0!==o&&3!==d.nodeType||(s=i+o),d!==a||0!==n&&3!==d.nodeType||(l=i+n),3===d.nodeType&&(i+=d.nodeValue.length),null!==(p=d.firstChild);)f=d,d=p;for(;;){if(d===e)break t;if(f===r&&++c===o&&(s=i),f===a&&++u===n&&(l=i),null!==(p=d.nextSibling))break;f=(d=f).parentNode}d=p}r=-1===s||-1===l?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Qo={focusedElem:e,selectionRange:r},Fr=!1,ql=t;null!==ql;)if(e=(t=ql).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,ql=e;else for(;null!==ql;){t=ql;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 h=m.memoizedProps,v=m.memoizedState,y=t.stateNode,g=y.getSnapshotBeforeUpdate(t.elementType===t.type?h:Qs(t.type,h),v);y.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(Z(163))}}catch(e){yu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,ql=e;break}ql=t.return}m=Gl,Gl=!1}(e,r),cc(r,e),so(Qo),Fr=!!Go,Qo=Go=null,e.current=r,dc(r),Ut(),Sc=s,fr=i,wc.transition=a}else e.current=r;if(Lc&&(Lc=!1,Vc=e,Bc=o),a=e.pendingLanes,0===a&&(zc=null),function(e){if(Xt&&"function"==typeof Xt.onCommitFiberRoot)try{Xt.onCommitFiberRoot(Jt,e,void 0,128==(128&e.current.flags))}catch(e){}}(r.stateNode),Yc(e,Wt()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],n(o.value,{componentStack:o.stack,digest:o.digest});if(Fc)throw Fc=!1,e=Dc,Dc=null,e;0!=(1&Bc)&&0!==e.tag&&hu(),a=e.pendingLanes,0!=(1&a)?e===Wc?Uc++:(Uc=0,Wc=e):Uc=0,Ma()}(e,t,r,n)}finally{wc.transition=o,fr=n}return null}function hu(){if(null!==Vc){var e=pr(Bc),t=wc.transition,r=fr;try{if(wc.transition=null,fr=16>e?16:e,null===Vc)var n=!1;else{if(e=Vc,Vc=null,Bc=0,0!=(6&Sc))throw Error(Z(331));var o=Sc;for(Sc|=4,ql=e.current;null!==ql;){var a=ql,i=a.child;if(0!=(16&ql.flags)){var s=a.deletions;if(null!==s){for(var l=0;l<s.length;l++){var c=s[l];for(ql=c;null!==ql;){var u=ql;switch(u.tag){case 0:case 11:case 15:Ql(8,u,a)}var d=u.child;if(null!==d)d.return=u,ql=d;else for(;null!==ql;){var f=(u=ql).sibling,p=u.return;if(Xl(u),u===c){ql=null;break}if(null!==f){f.return=p,ql=f;break}ql=p}}}var m=a.alternate;if(null!==m){var h=m.child;if(null!==h){m.child=null;do{var v=h.sibling;h.sibling=null,h=v}while(null!==h)}}ql=a}}if(0!=(2064&a.subtreeFlags)&&null!==i)i.return=a,ql=i;else e:for(;null!==ql;){if(0!=(2048&(a=ql).flags))switch(a.tag){case 0:case 11:case 15:Ql(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,ql=y;break e}ql=a.return}}var g=e.current;for(ql=g;null!==ql;){var b=(i=ql).child;if(0!=(2064&i.subtreeFlags)&&null!==b)b.return=i,ql=b;else e:for(i=g;null!==ql;){if(0!=(2048&(s=ql).flags))try{switch(s.tag){case 0:case 11:case 15:Yl(9,s)}}catch(e){yu(s,s.return,e)}if(s===i){ql=null;break e}var w=s.sibling;if(null!==w){w.return=s.return,ql=w;break e}ql=s.return}}if(Sc=o,Ma(),Xt&&"function"==typeof Xt.onPostCommitFiberRoot)try{Xt.onPostCommitFiberRoot(Jt,e)}catch(e){}n=!0}return n}finally{fr=r,wc.transition=t}}return!1}function vu(e,t,r){e=Ai(e,t=il(0,t=rl(r,t),1),1),t=Hc(),null!==e&&(ur(e,1,t),Yc(e,t))}function yu(e,t,r){if(3===e.tag)vu(e,e,r);else for(;null!==t;){if(3===t.tag){vu(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===zc||!zc.has(n))){t=Ai(t,e=sl(t,e=rl(r,e),1),1),e=Hc(),null!==t&&(ur(t,1,e),Yc(t,e));break}}t=t.return}}function gu(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=Hc(),e.pingedLanes|=e.suspendedLanes&r,xc===e&&(kc&r)===r&&(4===Cc||3===Cc&&(130023424&kc)===kc&&500>Wt()-Tc?au(e,0):Nc|=r),Yc(e,t)}function bu(e,t){0===t&&(0==(1&e.mode)?t=1:(t=nr,0==(130023424&(nr<<=1))&&(nr=4194304)));var r=Hc();null!==(e=Pi(e,t))&&(ur(e,t,r),Yc(e,r))}function wu(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),bu(e,r)}function Su(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;null!==o&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Z(314))}null!==n&&n.delete(t),bu(e,r)}function xu(e,t){return Lt(e,t)}function $u(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ku(e,t,r,n){return new $u(e,t,r,n)}function _u(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Eu(e,t){var r=e.alternate;return null===r?((r=ku(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=14680064&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Cu(e,t,r,n,o,a){var i=2;if(n=e,"function"==typeof e)_u(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case ye:return Pu(r.children,o,a,t);case ge:i=8,o|=8;break;case be:return(e=ku(12,r,t,2|o)).elementType=be,e.lanes=a,e;case $e:return(e=ku(13,r,t,o)).elementType=$e,e.lanes=a,e;case ke:return(e=ku(19,r,t,o)).elementType=ke,e.lanes=a,e;case Ce:return ju(r,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case we:i=10;break e;case Se:i=9;break e;case xe:i=11;break e;case _e:i=14;break e;case Ee:i=16,n=null;break e}throw Error(Z(130,null==e?e:typeof e,""))}return(t=ku(i,r,t,o)).elementType=e,t.type=n,t.lanes=a,t}function Pu(e,t,r,n){return(e=ku(7,e,n,t)).lanes=r,e}function ju(e,t,r,n){return(e=ku(22,e,n,t)).elementType=Ce,e.lanes=r,e.stateNode={isHidden:!1},e}function Ou(e,t,r){return(e=ku(6,e,null,t)).lanes=r,e}function Nu(e,t,r){return(t=ku(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ru(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=cr(0),this.expirationTimes=cr(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cr(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Au(e,t,r,n,o,a,i,s,l){return e=new Ru(e,t,r,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=ku(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oi(a),e}function Tu(e){if(!e)return Sa;e:{if(It(e=e._reactInternals)!==e||1!==e.tag)throw Error(Z(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ea(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(Z(171))}if(1===e.tag){var r=e.type;if(Ea(r))return ja(e,r,t)}return t}function Iu(e,t,r,n,o,a,i,s,l){return(e=Au(r,n,!0,e,0,a,0,s,l)).context=Tu(null),r=e.current,(a=Ri(n=Hc(),o=Gc(r))).callback=null!=t?t:null,Ai(r,a,o),e.current.lanes=o,ur(e,o,n),Yc(e,n),e}function Mu(e,t,r,n){var o=t.current,a=Hc(),i=Gc(o);return r=Tu(r),null===t.context?t.context=r:t.pendingContext=r,(t=Ri(a,i)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=Ai(o,t,i))&&(Qc(e,o,i,a),Ti(e,o,i)),i}function Fu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Du(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function zu(e,t){Du(e,t),(e=e.alternate)&&Du(e,t)}vc=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||$a.current)fl=!0;else{if(0==(e.lanes&r)&&0==(128&t.flags))return fl=!1,function(e,t,r){switch(t.tag){case 3:xl(t),si();break;case 5:qi(t);break;case 1:Ea(t.type)&&Oa(t);break;case 4:Ui(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;wa(vi,n._currentValue),n._currentValue=o;break;case 13:if(null!==(n=t.memoizedState))return null!==n.dehydrated?(wa(Hi,1&Hi.current),t.flags|=128,null):0!=(r&t.child.childLanes)?Ol(e,t,r):(wa(Hi,1&Hi.current),null!==(e=Fl(e,t,r))?e.sibling:null);wa(Hi,1&Hi.current);break;case 19:if(n=0!=(r&t.childLanes),0!=(128&e.flags)){if(n)return Il(e,t,r);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),wa(Hi,Hi.current),n)break;return null;case 22:case 23:return t.lanes=0,yl(e,t,r)}return Fl(e,t,r)}(e,t,r);fl=0!=(131072&e.flags)}else fl=!1,Xa&&0!=(1048576&t.flags)&&Ha(t,La,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ml(e,t),e=t.pendingProps;var o=_a(t,xa.current);$i(t,r),o=cs(null,t,n,e,o,r);var a=us();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,Ea(n)?(a=!0,Oa(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Oi(t),o.updater=Js,t.stateNode=o,o._reactInternals=t,tl(t,n,e,r),t=Sl(null,t,n,!0,a,r)):(t.tag=0,Xa&&a&&Ga(t),pl(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ml(e,t),e=t.pendingProps,n=(o=n._init)(n._payload),t.type=n,o=t.tag=function(e){if("function"==typeof e)return _u(e)?1:0;if(null!=e){if((e=e.$$typeof)===xe)return 11;if(e===_e)return 14}return 2}(n),e=Qs(n,e),o){case 0:t=bl(null,t,n,e,r);break e;case 1:t=wl(null,t,n,e,r);break e;case 11:t=ml(null,t,n,e,r);break e;case 14:t=hl(null,t,n,Qs(n.type,e),r);break e}throw Error(Z(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,bl(e,t,n,o=t.elementType===n?o:Qs(n,o),r);case 1:return n=t.type,o=t.pendingProps,wl(e,t,n,o=t.elementType===n?o:Qs(n,o),r);case 3:e:{if(xl(t),null===e)throw Error(Z(387));n=t.pendingProps,o=(a=t.memoizedState).element,Ni(e,t),Mi(t,n,null,r);var i=t.memoizedState;if(n=i.element,a.isDehydrated){if(a={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=$l(e,t,n,r,o=rl(Error(Z(423)),t));break e}if(n!==o){t=$l(e,t,n,r,o=rl(Error(Z(424)),t));break e}for(Ja=na(t.stateNode.containerInfo.firstChild),Ya=t,Xa=!0,Za=null,r=hi(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(si(),n===o){t=Fl(e,t,r);break e}pl(e,t,n,r)}t=t.child}return t;case 5:return qi(t),null===e&&ni(t),n=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,i=o.children,Yo(n,o)?i=null:null!==a&&Yo(n,a)&&(t.flags|=32),gl(e,t),pl(e,t,i,r),t.child;case 6:return null===e&&ni(t),null;case 13:return Ol(e,t,r);case 4:return Ui(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=mi(t,null,n,r):pl(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,ml(e,t,n,o=t.elementType===n?o:Qs(n,o),r);case 7:return pl(e,t,t.pendingProps,r),t.child;case 8:case 12:return pl(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,wa(vi,n._currentValue),n._currentValue=i,null!==a)if(eo(a.value,i)){if(a.children===o.children&&!$a.current){t=Fl(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){i=a.child;for(var l=s.firstContext;null!==l;){if(l.context===n){if(1===a.tag){(l=Ri(-1,r&-r)).tag=2;var c=a.updateQueue;if(null!==c){var u=(c=c.shared).pending;null===u?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=r,null!==(l=a.alternate)&&(l.lanes|=r),xi(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(10===a.tag)i=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(i=a.return))throw Error(Z(341));i.lanes|=r,null!==(s=i.alternate)&&(s.lanes|=r),xi(i,r,t),i=a.sibling}else i=a.child;if(null!==i)i.return=a;else for(i=a;null!==i;){if(i===t){i=null;break}if(null!==(a=i.sibling)){a.return=i.return,i=a;break}i=i.return}a=i}pl(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,$i(t,r),n=n(o=ki(o)),t.flags|=1,pl(e,t,n,r),t.child;case 14:return o=Qs(n=t.type,t.pendingProps),hl(e,t,n,o=Qs(n.type,o),r);case 15:return vl(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Qs(n,o),Ml(e,t),t.tag=1,Ea(n)?(e=!0,Oa(t)):e=!1,$i(t,r),Zs(t,n,o),tl(t,n,o,r),Sl(null,t,n,!0,e,r);case 19:return Il(e,t,r);case 22:return yl(e,t,r)}throw Error(Z(156,t.tag))};var Lu="function"==typeof reportError?reportError:function(e){console.error(e)};function Vu(e){this._internalRoot=e}function Bu(e){this._internalRoot=e}function Uu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Wu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function qu(){}function Ku(e,t,r,n,o){var a=r._reactRootContainer;if(a){var i=a;if("function"==typeof o){var s=o;o=function(){var e=Fu(i);s.call(e)}}Mu(t,i,e,o)}else i=function(e,t,r,n,o){if(o){if("function"==typeof n){var a=n;n=function(){var e=Fu(i);a.call(e)}}var i=Iu(t,n,e,0,null,!1,0,"",qu);return e._reactRootContainer=i,e[la]=i.current,Mo(8===e.nodeType?e.parentNode:e),nu(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof n){var s=n;n=function(){var e=Fu(l);s.call(e)}}var l=Au(e,0,!1,null,0,!1,0,"",qu);return e._reactRootContainer=l,e[la]=l.current,Mo(8===e.nodeType?e.parentNode:e),nu((function(){Mu(t,l,r,n)})),l}(r,t,e,o,n);return Fu(i)}Bu.prototype.render=Vu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(Z(409));Mu(e,t,null,null)},Bu.prototype.unmount=Vu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;nu((function(){Mu(null,e,null,null)})),t[la]=null}},Bu.prototype.unstable_scheduleHydration=function(e){if(e){var t=yr();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Er.length&&0!==t&&t<Er[r].priority;r++);Er.splice(r,0,e),0===r&&Or(e)}},mr=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=or(t.pendingLanes);0!==r&&(dr(t,1|r),Yc(t,Wt()),0==(6&Sc)&&(Ic=Wt()+500,Ma()))}break;case 13:nu((function(){var t=Pi(e,1);if(null!==t){var r=Hc();Qc(t,e,1,r)}})),zu(e,1)}},hr=function(e){if(13===e.tag){var t=Pi(e,134217728);if(null!==t)Qc(t,e,134217728,Hc());zu(e,134217728)}},vr=function(e){if(13===e.tag){var t=Gc(e),r=Pi(e,t);if(null!==r)Qc(r,e,t,Hc());zu(e,t)}},yr=function(){return fr},gr=function(e,t){var r=fr;try{return fr=e,t()}finally{fr=r}},ht=function(e,t,r){switch(t){case"input":if(Ke(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 n=r[t];if(n!==e&&n.form===e.form){var o=ha(n);if(!o)throw Error(Z(90));Ve(n),Ke(n,o)}}}break;case"textarea":Ze(e,r);break;case"select":null!=(t=r.value)&&Ye(e,!!r.multiple,t,!1)}},St=ru,xt=nu;var Hu={usingClientEntryPoint:!1,Events:[pa,ma,ha,bt,wt,ru]},Gu={findFiberByHostInstance:fa,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Qu={bundleType:Gu.bundleType,version:Gu.version,rendererPackageName:Gu.rendererPackageName,rendererConfig:Gu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:me.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Dt(e))?null:e.stateNode},findFiberByHostInstance:Gu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Yu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yu.isDisabled&&Yu.supportsFiber)try{Jt=Yu.inject(Qu),Xt=Yu}catch(HL){}}H.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Hu,H.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Uu(t))throw Error(Z(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:ve,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},H.createRoot=function(e,t){if(!Uu(e))throw Error(Z(299));var r=!1,n="",o=Lu;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(n=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Au(e,1,!1,null,0,r,0,n,o),e[la]=t.current,Mo(8===e.nodeType?e.parentNode:e),new Vu(t)},H.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(Z(188));throw e=Object.keys(e).join(","),Error(Z(268,e))}return e=null===(e=Dt(t))?null:e.stateNode},H.flushSync=function(e){return nu(e)},H.hydrate=function(e,t,r){if(!Wu(t))throw Error(Z(200));return Ku(null,e,t,!0,r)},H.hydrateRoot=function(e,t,r){if(!Uu(e))throw Error(Z(405));var n=null!=r&&r.hydratedSources||null,o=!1,a="",i=Lu;if(null!=r&&(!0===r.unstable_strictMode&&(o=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(i=r.onRecoverableError)),t=Iu(t,null,e,1,null!=r?r:null,o,0,a,i),e[la]=t.current,Mo(e),n)for(e=0;e<n.length;e++)o=(o=(r=n[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Bu(t)},H.render=function(e,t,r){if(!Wu(t))throw Error(Z(200));return Ku(null,e,t,!1,r)},H.unmountComponentAtNode=function(e){if(!Wu(e))throw Error(Z(40));return!!e._reactRootContainer&&(nu((function(){Ku(null,null,e,!1,(function(){e._reactRootContainer=null,e[la]=null}))})),!0)},H.unstable_batchedUpdates=ru,H.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Wu(r))throw Error(Z(200));if(null==e||void 0===e._reactInternals)throw Error(Z(38));return Ku(e,t,r,!1,n)},H.version="18.3.1-next-f1338f8080-20240426",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),K.exports=H;var Ju=K.exports,Xu=r(Ju),Zu=Ju;function ed(e){return"object"==typeof e&&null!==e&&(!("number"==typeof e.lastModified&&"undefined"!=typeof File&&e instanceof File)&&(!("function"==typeof e.getMonth&&"undefined"!=typeof Date&&e instanceof Date)&&!Array.isArray(e)))}function td(e){if(""===e)return;if(null===e)return null;if(/\.$/.test(e))return e;if(/\.0$/.test(e))return e;if(/\.\d*0$/.test(e))return e;const t=Number(e);return"number"==typeof t&&!Number.isNaN(t)?t:e}q.createRoot=Zu.createRoot,q.hydrateRoot=Zu.hydrateRoot;const rd="__additional_property",nd="additionalProperties",od="allOf",ad="anyOf",id="const",sd="default",ld="dependencies",cd="enum",ud="__errors",dd="$id",fd="if",pd="items",md="$name",hd="oneOf",vd="properties",yd="required",gd="submitButtonOptions",bd="$ref",wd="__rjsf_additionalProperties",Sd="__rjsf_rootSchema",xd="ui:widget",$d="ui:options";function kd(e={},t={}){return Object.keys(e).filter((e=>0===e.indexOf("ui:"))).reduce(((t,r)=>{const n=e[r];return r===xd&&ed(n)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),t):r===$d&&ed(n)?{...t,...n}:{...t,[r.substring(3)]:n}}),{...t})}function _d(e,t={},r){if(!e.additionalProperties)return!1;const{expandable:n=!0}=kd(t);return!1===n?n:void 0===e.maxProperties||!r||Object.keys(r).length<e.maxProperties}var Ed="object"==typeof t&&t&&t.Object===Object&&t,Cd=Ed,Pd="object"==typeof self&&self&&self.Object===Object&&self,jd=Cd||Pd||Function("return this")(),Od=jd.Symbol,Nd=Od,Rd=Object.prototype,Ad=Rd.hasOwnProperty,Td=Rd.toString,Id=Nd?Nd.toStringTag:void 0;var Md=function(e){var t=Ad.call(e,Id),r=e[Id];try{e[Id]=void 0;var n=!0}catch(e){}var o=Td.call(e);return n&&(t?e[Id]=r:delete e[Id]),o},Fd=Object.prototype.toString;var Dd=Md,zd=function(e){return Fd.call(e)},Ld=Od?Od.toStringTag:void 0;var Vd=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ld&&Ld in Object(e)?Dd(e):zd(e)};var Bd=function(e,t){return function(r){return e(t(r))}},Ud=Bd(Object.getPrototypeOf,Object);var Wd=function(e){return null!=e&&"object"==typeof e},qd=Vd,Kd=Ud,Hd=Wd,Gd=Function.prototype,Qd=Object.prototype,Yd=Gd.toString,Jd=Qd.hasOwnProperty,Xd=Yd.call(Object);var Zd=function(e){if(!Hd(e)||"[object Object]"!=qd(e))return!1;var t=Kd(e);if(null===t)return!0;var r=Jd.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Yd.call(r)==Xd},ef=r(Zd);function tf(e){const t={[ud]:[],addError(e){this[ud].push(e)}};if(Array.isArray(e))return e.reduce(((e,t,r)=>({...e,[r]:tf(t)})),t);if(ef(e)){const r=e;return Object.keys(r).reduce(((e,t)=>({...e,[t]:tf(r[t])})),t)}return t}var rf=Object.getOwnPropertyNames,nf=Object.getOwnPropertySymbols,of=Object.prototype.hasOwnProperty;function af(e,t){return function(r,n,o){return e(r,n,o)&&t(r,n,o)}}function sf(e){return function(t,r,n){if(!t||!r||"object"!=typeof t||"object"!=typeof r)return e(t,r,n);var o=n.cache,a=o.get(t),i=o.get(r);if(a&&i)return a===r&&i===t;o.set(t,r),o.set(r,t);var s=e(t,r,n);return o.delete(t),o.delete(r),s}}function lf(e){return rf(e).concat(nf(e))}var cf=Object.hasOwn||function(e,t){return of.call(e,t)};function uf(e,t){return e===t||!e&&!t&&e!=e&&t!=t}var df="__v",ff="__o",pf="_owner",mf=Object.getOwnPropertyDescriptor,hf=Object.keys;function vf(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function yf(e,t){return uf(e.getTime(),t.getTime())}function gf(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function bf(e,t){return e===t}function wf(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var o,a,i=new Array(n),s=e.entries(),l=0;(o=s.next())&&!o.done;){for(var c=t.entries(),u=!1,d=0;(a=c.next())&&!a.done;)if(i[d])d++;else{var f=o.value,p=a.value;if(r.equals(f[0],p[0],l,d,e,t,r)&&r.equals(f[1],p[1],f[0],p[0],e,t,r)){u=i[d]=!0;break}d++}if(!u)return!1;l++}return!0}var Sf=uf;function xf(e,t,r){var n=hf(e),o=n.length;if(hf(t).length!==o)return!1;for(;o-- >0;)if(!jf(e,t,r,n[o]))return!1;return!0}function $f(e,t,r){var n,o,a,i=lf(e),s=i.length;if(lf(t).length!==s)return!1;for(;s-- >0;){if(!jf(e,t,r,n=i[s]))return!1;if(o=mf(e,n),a=mf(t,n),(o||a)&&(!o||!a||o.configurable!==a.configurable||o.enumerable!==a.enumerable||o.writable!==a.writable))return!1}return!0}function kf(e,t){return uf(e.valueOf(),t.valueOf())}function _f(e,t){return e.source===t.source&&e.flags===t.flags}function Ef(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var o,a,i=new Array(n),s=e.values();(o=s.next())&&!o.done;){for(var l=t.values(),c=!1,u=0;(a=l.next())&&!a.done;){if(!i[u]&&r.equals(o.value,a.value,o.value,a.value,e,t,r)){c=i[u]=!0;break}u++}if(!c)return!1}return!0}function Cf(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function Pf(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function jf(e,t,r,n){return!(n!==pf&&n!==ff&&n!==df||!e.$$typeof&&!t.$$typeof)||cf(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var Of="[object Arguments]",Nf="[object Boolean]",Rf="[object Date]",Af="[object Error]",Tf="[object Map]",If="[object Number]",Mf="[object Object]",Ff="[object RegExp]",Df="[object Set]",zf="[object String]",Lf="[object URL]",Vf=Array.isArray,Bf="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,Uf=Object.assign,Wf=Object.prototype.toString.call.bind(Object.prototype.toString);function qf(e){void 0===e&&(e={});var t=e.circular,r=void 0!==t&&t,n=e.createInternalComparator,o=e.createState,a=e.strict,i=void 0!==a&&a,s=function(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,o={areArraysEqual:n?$f:vf,areDatesEqual:yf,areErrorsEqual:gf,areFunctionsEqual:bf,areMapsEqual:n?af(wf,$f):wf,areNumbersEqual:Sf,areObjectsEqual:n?$f:xf,arePrimitiveWrappersEqual:kf,areRegExpsEqual:_f,areSetsEqual:n?af(Ef,$f):Ef,areTypedArraysEqual:n?$f:Cf,areUrlsEqual:Pf};if(r&&(o=Uf({},o,r(o))),t){var a=sf(o.areArraysEqual),i=sf(o.areMapsEqual),s=sf(o.areObjectsEqual),l=sf(o.areSetsEqual);o=Uf({},o,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:s,areSetsEqual:l})}return o}(e),l=function(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,o=e.areFunctionsEqual,a=e.areMapsEqual,i=e.areNumbersEqual,s=e.areObjectsEqual,l=e.arePrimitiveWrappersEqual,c=e.areRegExpsEqual,u=e.areSetsEqual,d=e.areTypedArraysEqual,f=e.areUrlsEqual;return function(e,p,m){if(e===p)return!0;if(null==e||null==p)return!1;var h=typeof e;if(h!==typeof p)return!1;if("object"!==h)return"number"===h?i(e,p,m):"function"===h&&o(e,p,m);var v=e.constructor;if(v!==p.constructor)return!1;if(v===Object)return s(e,p,m);if(Vf(e))return t(e,p,m);if(null!=Bf&&Bf(e))return d(e,p,m);if(v===Date)return r(e,p,m);if(v===RegExp)return c(e,p,m);if(v===Map)return a(e,p,m);if(v===Set)return u(e,p,m);var y=Wf(e);return y===Rf?r(e,p,m):y===Ff?c(e,p,m):y===Tf?a(e,p,m):y===Df?u(e,p,m):y===Mf?"function"!=typeof e.then&&"function"!=typeof p.then&&s(e,p,m):y===Lf?f(e,p,m):y===Af?n(e,p,m):y===Of?s(e,p,m):(y===Nf||y===If||y===zf)&&l(e,p,m)}}(s),c=n?n(l):function(e){return function(t,r,n,o,a,i,s){return e(t,r,s)}}(l);return function(e){var t=e.circular,r=e.comparator,n=e.createState,o=e.equals,a=e.strict;if(n)return function(e,i){var s=n(),l=s.cache,c=void 0===l?t?new WeakMap:void 0:l,u=s.meta;return r(e,i,{cache:c,equals:o,meta:u,strict:a})};if(t)return function(e,t){return r(e,t,{cache:new WeakMap,equals:o,meta:void 0,strict:a})};var i={cache:void 0,equals:o,meta:void 0,strict:a};return function(e,t){return r(e,t,i)}}({circular:r,comparator:l,createState:o,equals:c,strict:i})}qf(),qf({strict:!0}),qf({circular:!0}),qf({circular:!0,strict:!0}),qf({createInternalComparator:function(){return uf}}),qf({strict:!0,createInternalComparator:function(){return uf}}),qf({circular:!0,createInternalComparator:function(){return uf}}),qf({circular:!0,createInternalComparator:function(){return uf},strict:!0});const Kf=qf({createCustomConfig:()=>({areFunctionsEqual:(e,t)=>"function"==typeof t})});var Hf=Array.isArray,Gf=Vd,Qf=Wd;var Yf=function(e){return"symbol"==typeof e||Qf(e)&&"[object Symbol]"==Gf(e)},Jf=Hf,Xf=Yf,Zf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ep=/^\w*$/;var tp=function(e,t){if(Jf(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!Xf(e))||(ep.test(e)||!Zf.test(e)||null!=t&&e in Object(t))};var rp=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},np=r(rp),op=Vd,ap=rp;var ip,sp=function(e){if(!ap(e))return!1;var t=op(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},lp=jd["__core-js_shared__"],cp=(ip=/[^.]+$/.exec(lp&&lp.keys&&lp.keys.IE_PROTO||""))?"Symbol(src)_1."+ip:"";var up=function(e){return!!cp&&cp in e},dp=Function.prototype.toString;var fp=function(e){if(null!=e){try{return dp.call(e)}catch(e){}try{return e+""}catch(e){}}return""},pp=sp,mp=up,hp=rp,vp=fp,yp=/^\[object .+?Constructor\]$/,gp=Function.prototype,bp=Object.prototype,wp=gp.toString,Sp=bp.hasOwnProperty,xp=RegExp("^"+wp.call(Sp).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var $p=function(e){return!(!hp(e)||mp(e))&&(pp(e)?xp:yp).test(vp(e))},kp=function(e,t){return null==e?void 0:e[t]};var _p=function(e,t){var r=kp(e,t);return $p(r)?r:void 0},Ep=_p(Object,"create"),Cp=Ep;var Pp=function(){this.__data__=Cp?Cp(null):{},this.size=0};var jp=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Op=Ep,Np=Object.prototype.hasOwnProperty;var Rp=function(e){var t=this.__data__;if(Op){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return Np.call(t,e)?t[e]:void 0},Ap=Ep,Tp=Object.prototype.hasOwnProperty;var Ip=Ep;var Mp=Pp,Fp=jp,Dp=Rp,zp=function(e){var t=this.__data__;return Ap?void 0!==t[e]:Tp.call(t,e)},Lp=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ip&&void 0===t?"__lodash_hash_undefined__":t,this};function Vp(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Vp.prototype.clear=Mp,Vp.prototype.delete=Fp,Vp.prototype.get=Dp,Vp.prototype.has=zp,Vp.prototype.set=Lp;var Bp=Vp;var Up=function(){this.__data__=[],this.size=0};var Wp=function(e,t){return e===t||e!=e&&t!=t},qp=Wp;var Kp=function(e,t){for(var r=e.length;r--;)if(qp(e[r][0],t))return r;return-1},Hp=Kp,Gp=Array.prototype.splice;var Qp=function(e){var t=this.__data__,r=Hp(t,e);return!(r<0)&&(r==t.length-1?t.pop():Gp.call(t,r,1),--this.size,!0)},Yp=Kp;var Jp=function(e){var t=this.__data__,r=Yp(t,e);return r<0?void 0:t[r][1]},Xp=Kp;var Zp=Kp;var em=function(e,t){var r=this.__data__,n=Zp(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},tm=Up,rm=Qp,nm=Jp,om=function(e){return Xp(this.__data__,e)>-1},am=em;function im(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}im.prototype.clear=tm,im.prototype.delete=rm,im.prototype.get=nm,im.prototype.has=om,im.prototype.set=am;var sm=im,lm=_p(jd,"Map"),cm=Bp,um=sm,dm=lm;var fm=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},pm=fm;var mm=function(e,t){var r=e.__data__;return pm(t)?r["string"==typeof t?"string":"hash"]:r.map},hm=mm;var vm=mm;var ym=mm;var gm=mm;var bm=function(){this.size=0,this.__data__={hash:new cm,map:new(dm||um),string:new cm}},wm=function(e){var t=hm(this,e).delete(e);return this.size-=t?1:0,t},Sm=function(e){return vm(this,e).get(e)},xm=function(e){return ym(this,e).has(e)},$m=function(e,t){var r=gm(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function km(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}km.prototype.clear=bm,km.prototype.delete=wm,km.prototype.get=Sm,km.prototype.has=xm,km.prototype.set=$m;var _m=km,Em=_m;function Cm(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(Cm.Cache||Em),r}Cm.Cache=Em;var Pm=Cm;var jm=function(e){var t=Pm(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t},Om=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nm=/\\(\\)?/g,Rm=jm((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Om,(function(e,r,n,o){t.push(n?o.replace(Nm,"$1"):r||e)})),t})),Am=Rm;var Tm=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},Im=Tm,Mm=Hf,Fm=Yf,Dm=Od?Od.prototype:void 0,zm=Dm?Dm.toString:void 0;var Lm=function e(t){if("string"==typeof t)return t;if(Mm(t))return Im(t,e)+"";if(Fm(t))return zm?zm.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r},Vm=Lm;var Bm=function(e){return null==e?"":Vm(e)},Um=Hf,Wm=tp,qm=Am,Km=Bm;var Hm=function(e,t){return Um(e)?e:Wm(e,t)?[e]:qm(Km(e))},Gm=Yf;var Qm=function(e){if("string"==typeof e||Gm(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},Ym=Hm,Jm=Qm;var Xm=function(e,t){for(var r=0,n=(t=Ym(t,e)).length;null!=e&&r<n;)e=e[Jm(t[r++])];return r&&r==n?e:void 0},Zm=Xm;var eh=function(e,t,r){var n=null==e?void 0:Zm(e,t);return void 0===n?r:n},th=r(eh),rh=Object.prototype;var nh=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||rh)},oh=Bd(Object.keys,Object),ah=nh,ih=oh,sh=Object.prototype.hasOwnProperty;var lh=function(e){if(!ah(e))return ih(e);var t=[];for(var r in Object(e))sh.call(e,r)&&"constructor"!=r&&t.push(r);return t},ch=_p(jd,"DataView"),uh=_p(jd,"Promise"),dh=_p(jd,"Set"),fh=ch,ph=lm,mh=uh,hh=dh,vh=_p(jd,"WeakMap"),yh=Vd,gh=fp,bh="[object Map]",wh="[object Promise]",Sh="[object Set]",xh="[object WeakMap]",$h="[object DataView]",kh=gh(fh),_h=gh(ph),Eh=gh(mh),Ch=gh(hh),Ph=gh(vh),jh=yh;(fh&&jh(new fh(new ArrayBuffer(1)))!=$h||ph&&jh(new ph)!=bh||mh&&jh(mh.resolve())!=wh||hh&&jh(new hh)!=Sh||vh&&jh(new vh)!=xh)&&(jh=function(e){var t=yh(e),r="[object Object]"==t?e.constructor:void 0,n=r?gh(r):"";if(n)switch(n){case kh:return $h;case _h:return bh;case Eh:return wh;case Ch:return Sh;case Ph:return xh}return t});var Oh=jh,Nh=Vd,Rh=Wd;var Ah=function(e){return Rh(e)&&"[object Arguments]"==Nh(e)},Th=Wd,Ih=Object.prototype,Mh=Ih.hasOwnProperty,Fh=Ih.propertyIsEnumerable,Dh=Ah(function(){return arguments}())?Ah:function(e){return Th(e)&&Mh.call(e,"callee")&&!Fh.call(e,"callee")},zh=Dh;var Lh=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Vh=sp,Bh=Lh;var Uh=function(e){return null!=e&&Bh(e.length)&&!Vh(e)},Wh={exports:{}};var qh=function(){return!1};!function(e,t){var r=jd,n=qh,o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o?r.Buffer:void 0,s=(i?i.isBuffer:void 0)||n;e.exports=s}(Wh,Wh.exports);var Kh=Wh.exports,Hh=Vd,Gh=Lh,Qh=Wd,Yh={};Yh["[object Float32Array]"]=Yh["[object Float64Array]"]=Yh["[object Int8Array]"]=Yh["[object Int16Array]"]=Yh["[object Int32Array]"]=Yh["[object Uint8Array]"]=Yh["[object Uint8ClampedArray]"]=Yh["[object Uint16Array]"]=Yh["[object Uint32Array]"]=!0,Yh["[object Arguments]"]=Yh["[object Array]"]=Yh["[object ArrayBuffer]"]=Yh["[object Boolean]"]=Yh["[object DataView]"]=Yh["[object Date]"]=Yh["[object Error]"]=Yh["[object Function]"]=Yh["[object Map]"]=Yh["[object Number]"]=Yh["[object Object]"]=Yh["[object RegExp]"]=Yh["[object Set]"]=Yh["[object String]"]=Yh["[object WeakMap]"]=!1;var Jh=function(e){return Qh(e)&&Gh(e.length)&&!!Yh[Hh(e)]};var Xh=function(e){return function(t){return e(t)}},Zh={exports:{}};!function(e,t){var r=Ed,n=t&&!t.nodeType&&t,o=n&&e&&!e.nodeType&&e,a=o&&o.exports===n&&r.process,i=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=i}(Zh,Zh.exports);var ev=Zh.exports,tv=Jh,rv=Xh,nv=ev&&ev.isTypedArray,ov=nv?rv(nv):tv,av=lh,iv=Oh,sv=zh,lv=Hf,cv=Uh,uv=Kh,dv=nh,fv=ov,pv=Object.prototype.hasOwnProperty;var mv=r((function(e){if(null==e)return!0;if(cv(e)&&(lv(e)||"string"==typeof e||"function"==typeof e.splice||uv(e)||fv(e)||sv(e)))return!e.length;var t=iv(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(dv(e))return!av(e).length;for(var r in e)if(pv.call(e,r))return!1;return!0})),hv={},vv=/~/,yv=/~[01]/g;function gv(e){switch(e){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+e)}function bv(e){return vv.test(e)?e.replace(yv,gv):e}function wv(e){if("string"==typeof e){if(""===(e=e.split("/"))[0])return e;throw new Error("Invalid JSON pointer.")}if(Array.isArray(e)){for(const t of e)if("string"!=typeof t&&"number"!=typeof t)throw new Error("Invalid JSON pointer. Must be of type string or number.");return e}throw new Error("Invalid JSON pointer.")}function Sv(e,t){if("object"!=typeof e)throw new Error("Invalid input object.");var r=(t=wv(t)).length;if(1===r)return e;for(var n=1;n<r;){if(e=e[bv(t[n++])],r===n)return e;if("object"!=typeof e||null===e)return}}function xv(e,t,r){if("object"!=typeof e)throw new Error("Invalid input object.");if(0===(t=wv(t)).length)throw new Error("Invalid JSON pointer for set.");return function(e,t,r){for(var n,o,a=1,i=t.length;a<i;){if("constructor"===t[a]||"prototype"===t[a]||"__proto__"===t[a])return e;if(n=bv(t[a++]),o=i>a,void 0===e[n]&&(Array.isArray(e)&&"-"===n&&(n=e.length),o&&(""!==t[a]&&t[a]<1/0||"-"===t[a]?e[n]=[]:e[n]={})),!o)break;e=e[n]}var s=e[n];return void 0===r?delete e[n]:e[n]=r,s}(e,t,r)}hv.get=Sv,hv.set=xv,hv.compile=function(e){var t=wv(e);return{get:function(e){return Sv(e,t)},set:function(e,r){return xv(e,t,r)}}};var $v=sm;var kv=sm,_v=lm,Ev=_m;var Cv=sm,Pv=function(){this.__data__=new $v,this.size=0},jv=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Ov=function(e){return this.__data__.get(e)},Nv=function(e){return this.__data__.has(e)},Rv=function(e,t){var r=this.__data__;if(r instanceof kv){var n=r.__data__;if(!_v||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ev(n)}return r.set(e,t),this.size=r.size,this};function Av(e){var t=this.__data__=new Cv(e);this.size=t.size}Av.prototype.clear=Pv,Av.prototype.delete=jv,Av.prototype.get=Ov,Av.prototype.has=Nv,Av.prototype.set=Rv;var Tv=Av;var Iv=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e},Mv=_p,Fv=function(){try{var e=Mv(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Dv=Fv;var zv=function(e,t,r){"__proto__"==t&&Dv?Dv(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},Lv=zv,Vv=Wp,Bv=Object.prototype.hasOwnProperty;var Uv=function(e,t,r){var n=e[t];Bv.call(e,t)&&Vv(n,r)&&(void 0!==r||t in e)||Lv(e,t,r)},Wv=Uv,qv=zv;var Kv=function(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var s=t[a],l=n?n(r[s],e[s],s,r,e):void 0;void 0===l&&(l=e[s]),o?qv(r,s,l):Wv(r,s,l)}return r};var Hv=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},Gv=/^(?:0|[1-9]\d*)$/;var Qv=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Gv.test(e))&&e>-1&&e%1==0&&e<t},Yv=Hv,Jv=zh,Xv=Hf,Zv=Kh,ey=Qv,ty=ov,ry=Object.prototype.hasOwnProperty;var ny=function(e,t){var r=Xv(e),n=!r&&Jv(e),o=!r&&!n&&Zv(e),a=!r&&!n&&!o&&ty(e),i=r||n||o||a,s=i?Yv(e.length,String):[],l=s.length;for(var c in e)!t&&!ry.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ey(c,l))||s.push(c);return s},oy=ny,ay=lh,iy=Uh;var sy=function(e){return iy(e)?oy(e):ay(e)},ly=r(sy),cy=Kv,uy=sy;var dy=function(e,t){return e&&cy(t,uy(t),e)};var fy=rp,py=nh,my=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},hy=Object.prototype.hasOwnProperty;var vy=ny,yy=function(e){if(!fy(e))return my(e);var t=py(e),r=[];for(var n in e)("constructor"!=n||!t&&hy.call(e,n))&&r.push(n);return r},gy=Uh;var by=function(e){return gy(e)?vy(e,!0):yy(e)},wy=Kv,Sy=by;var xy=function(e,t){return e&&wy(t,Sy(t),e)},$y={exports:{}};!function(e,t){var r=jd,n=t&&!t.nodeType&&t,o=n&&e&&!e.nodeType&&e,a=o&&o.exports===n?r.Buffer:void 0,i=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=i?i(r):new e.constructor(r);return e.copy(n),n}}($y,$y.exports);var ky=$y.exports;var _y=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t};var Ey=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a};var Cy=function(){return[]},Py=Ey,jy=Cy,Oy=Object.prototype.propertyIsEnumerable,Ny=Object.getOwnPropertySymbols,Ry=Ny?function(e){return null==e?[]:(e=Object(e),Py(Ny(e),(function(t){return Oy.call(e,t)})))}:jy,Ay=Kv,Ty=Ry;var Iy=function(e,t){return Ay(e,Ty(e),t)};var My=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e},Fy=My,Dy=Ud,zy=Ry,Ly=Cy,Vy=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Fy(t,zy(e)),e=Dy(e);return t}:Ly,By=Kv,Uy=Vy;var Wy=function(e,t){return By(e,Uy(e),t)},qy=My,Ky=Hf;var Hy=function(e,t,r){var n=t(e);return Ky(e)?n:qy(n,r(e))},Gy=Hy,Qy=Ry,Yy=sy;var Jy=function(e){return Gy(e,Yy,Qy)},Xy=Hy,Zy=Vy,eg=by;var tg=function(e){return Xy(e,eg,Zy)},rg=Object.prototype.hasOwnProperty;var ng=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&rg.call(e,"index")&&(r.index=e.index,r.input=e.input),r},og=jd.Uint8Array,ag=og;var ig=function(e){var t=new e.constructor(e.byteLength);return new ag(t).set(new ag(e)),t},sg=ig;var lg=function(e,t){var r=t?sg(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)},cg=/\w*$/;var ug=function(e){var t=new e.constructor(e.source,cg.exec(e));return t.lastIndex=e.lastIndex,t},dg=Od?Od.prototype:void 0,fg=dg?dg.valueOf:void 0;var pg=ig;var mg=function(e,t){var r=t?pg(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},hg=ig,vg=lg,yg=ug,gg=function(e){return fg?Object(fg.call(e)):{}},bg=mg;var wg=function(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return hg(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return vg(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return bg(e,r);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return yg(e);case"[object Symbol]":return gg(e)}},Sg=rp,xg=Object.create,$g=function(){function e(){}return function(t){if(!Sg(t))return{};if(xg)return xg(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),kg=$g,_g=Ud,Eg=nh;var Cg=function(e){return"function"!=typeof e.constructor||Eg(e)?{}:kg(_g(e))},Pg=Oh,jg=Wd;var Og=function(e){return jg(e)&&"[object Map]"==Pg(e)},Ng=Xh,Rg=ev&&ev.isMap,Ag=Rg?Ng(Rg):Og,Tg=Oh,Ig=Wd;var Mg=function(e){return Ig(e)&&"[object Set]"==Tg(e)},Fg=Xh,Dg=ev&&ev.isSet,zg=Dg?Fg(Dg):Mg,Lg=Tv,Vg=Iv,Bg=Uv,Ug=dy,Wg=xy,qg=ky,Kg=_y,Hg=Iy,Gg=Wy,Qg=Jy,Yg=tg,Jg=Oh,Xg=ng,Zg=wg,eb=Cg,tb=Hf,rb=Kh,nb=Ag,ob=rp,ab=zg,ib=sy,sb=by,lb="[object Arguments]",cb="[object Function]",ub="[object Object]",db={};db[lb]=db["[object Array]"]=db["[object ArrayBuffer]"]=db["[object DataView]"]=db["[object Boolean]"]=db["[object Date]"]=db["[object Float32Array]"]=db["[object Float64Array]"]=db["[object Int8Array]"]=db["[object Int16Array]"]=db["[object Int32Array]"]=db["[object Map]"]=db["[object Number]"]=db[ub]=db["[object RegExp]"]=db["[object Set]"]=db["[object String]"]=db["[object Symbol]"]=db["[object Uint8Array]"]=db["[object Uint8ClampedArray]"]=db["[object Uint16Array]"]=db["[object Uint32Array]"]=!0,db["[object Error]"]=db[cb]=db["[object WeakMap]"]=!1;var fb=function e(t,r,n,o,a,i){var s,l=1&r,c=2&r,u=4&r;if(n&&(s=a?n(t,o,a,i):n(t)),void 0!==s)return s;if(!ob(t))return t;var d=tb(t);if(d){if(s=Xg(t),!l)return Kg(t,s)}else{var f=Jg(t),p=f==cb||"[object GeneratorFunction]"==f;if(rb(t))return qg(t,l);if(f==ub||f==lb||p&&!a){if(s=c||p?{}:eb(t),!l)return c?Gg(t,Wg(s,t)):Hg(t,Ug(s,t))}else{if(!db[f])return a?t:{};s=Zg(t,f,l)}}i||(i=new Lg);var m=i.get(t);if(m)return m;i.set(t,s),ab(t)?t.forEach((function(o){s.add(e(o,r,n,o,t,i))})):nb(t)&&t.forEach((function(o,a){s.set(a,e(o,r,n,a,t,i))}));var h=d?void 0:(u?c?Yg:Qg:c?sb:ib)(t);return Vg(h||t,(function(o,a){h&&(o=t[a=o]),Bg(s,a,e(o,r,n,a,t,i))})),s};var pb=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};var mb=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++n<o;)a[n]=e[n+t];return a},hb=Xm,vb=mb;var yb=Hm,gb=pb,bb=function(e,t){return t.length<2?e:hb(e,vb(t,0,-1))},wb=Qm;var Sb=function(e,t){return t=yb(t,e),null==(e=bb(e,t))||delete e[wb(gb(t))]},xb=Zd;var $b=function(e){return xb(e)?void 0:e},kb=zh,_b=Hf,Eb=Od?Od.isConcatSpreadable:void 0;var Cb=My,Pb=function(e){return _b(e)||kb(e)||!!(Eb&&e&&e[Eb])};var jb=function e(t,r,n,o,a){var i=-1,s=t.length;for(n||(n=Pb),a||(a=[]);++i<s;){var l=t[i];r>0&&n(l)?r>1?e(l,r-1,n,o,a):Cb(a,l):o||(a[a.length]=l)}return a},Ob=jb;var Nb=function(e){return(null==e?0:e.length)?Ob(e,1):[]};var Rb=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},Ab=Rb,Tb=Math.max;var Ib=function(e,t,r){return t=Tb(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=Tb(n.length-t,0),i=Array(a);++o<a;)i[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(i),Ab(e,this,s)}};var Mb=function(e){return e},Fb=function(e){return function(){return e}},Db=Fv,zb=Db?function(e,t){return Db(e,"toString",{configurable:!0,enumerable:!1,value:Fb(t),writable:!0})}:Mb,Lb=Date.now;var Vb=function(e){var t=0,r=0;return function(){var n=Lb(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},Bb=Vb(zb),Ub=Nb,Wb=Ib,qb=Bb;var Kb=function(e){return qb(Wb(e,void 0,Ub),e+"")},Hb=Tm,Gb=fb,Qb=Sb,Yb=Hm,Jb=Kv,Xb=$b,Zb=tg,ew=Kb((function(e,t){var r={};if(null==e)return r;var n=!1;t=Hb(t,(function(t){return t=Yb(t,e),n||(n=t.length>1),t})),Jb(e,Zb(e),r),n&&(r=Gb(r,7,Xb));for(var o=t.length;o--;)Qb(r,t[o]);return r})),tw=r(ew);function rw(e,t){const r=t[e];return[tw(t,[e]),r]}function nw(e,t={},r=[]){const n=e||"";let o;if(!n.startsWith("#"))throw new Error(`Could not find a definition for ${e}.`);o=decodeURIComponent(n.substring(1));const a=hv.get(t,o);if(void 0===a)throw new Error(`Could not find a definition for ${e}.`);const i=a[bd];if(i){if(r.includes(i)){if(1===r.length)throw new Error(`Definition for ${e} is a circular reference`);const[t,...o]=r,a=[...o,n,t].join(" -> ");throw new Error(`Definition for ${t} contains a circular reference through ${a}`)}const[o,s]=rw(bd,a),l=nw(s,t,[...r,n]);return Object.keys(o).length>0?{...o,...l}:l}return a}function ow(e,t={}){return nw(e,t,[])}var aw=Object.prototype.hasOwnProperty;var iw=Hm,sw=zh,lw=Hf,cw=Qv,uw=Lh,dw=Qm;var fw=function(e,t,r){for(var n=-1,o=(t=iw(t,e)).length,a=!1;++n<o;){var i=dw(t[n]);if(!(a=null!=e&&r(e,i)))break;e=e[i]}return a||++n!=o?a:!!(o=null==e?0:e.length)&&uw(o)&&cw(i,o)&&(lw(e)||sw(e))},pw=function(e,t){return null!=e&&aw.call(e,t)},mw=fw;var hw=r((function(e,t){return null!=e&&mw(e,t,pw)})),vw=Vd,yw=Wd;var gw=r((function(e){return"number"==typeof e||yw(e)&&"[object Number]"==vw(e)})),bw=Vd,ww=Hf,Sw=Wd;var xw=r((function(e){return"string"==typeof e||!ww(e)&&Sw(e)&&"[object String]"==bw(e)}));var $w=function(e,t,r,n){var o=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++o]);++o<a;)r=t(r,e[o],o,e);return r};var kw=function(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),s=i.length;s--;){var l=i[e?s:++o];if(!1===r(a[l],l,a))break}return t}},_w=kw(),Ew=_w,Cw=sy;var Pw=function(e,t){return e&&Ew(e,t,Cw)},jw=Uh;var Ow=function(e,t){return function(r,n){if(null==r)return r;if(!jw(r))return e(r,n);for(var o=r.length,a=t?o:-1,i=Object(r);(t?a--:++a<o)&&!1!==n(i[a],a,i););return r}},Nw=Ow(Pw);var Rw=_m,Aw=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Tw=function(e){return this.__data__.has(e)};function Iw(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Rw;++t<r;)this.add(e[t])}Iw.prototype.add=Iw.prototype.push=Aw,Iw.prototype.has=Tw;var Mw=Iw;var Fw=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1};var Dw=function(e,t){return e.has(t)},zw=Mw,Lw=Fw,Vw=Dw;var Bw=function(e,t,r,n,o,a){var i=1&r,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,p=2&r?new zw:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(n)var v=i?n(h,m,d,t,e,a):n(m,h,d,e,t,a);if(void 0!==v){if(v)continue;f=!1;break}if(p){if(!Lw(t,(function(e,t){if(!Vw(p,t)&&(m===e||o(m,e,r,n,a)))return p.push(t)}))){f=!1;break}}else if(m!==h&&!o(m,h,r,n,a)){f=!1;break}}return a.delete(e),a.delete(t),f};var Uw=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r};var Ww=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r},qw=og,Kw=Wp,Hw=Bw,Gw=Uw,Qw=Ww,Yw=Od?Od.prototype:void 0,Jw=Yw?Yw.valueOf:void 0;var Xw=function(e,t,r,n,o,a,i){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new qw(e),new qw(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Kw(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Gw;case"[object Set]":var l=1&n;if(s||(s=Qw),e.size!=t.size&&!l)return!1;var c=i.get(e);if(c)return c==t;n|=2,i.set(e,t);var u=Hw(s(e),s(t),n,o,a,i);return i.delete(e),u;case"[object Symbol]":if(Jw)return Jw.call(e)==Jw.call(t)}return!1},Zw=Jy,eS=Object.prototype.hasOwnProperty;var tS=function(e,t,r,n,o,a){var i=1&r,s=Zw(e),l=s.length;if(l!=Zw(t).length&&!i)return!1;for(var c=l;c--;){var u=s[c];if(!(i?u in t:eS.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=i;++c<l;){var h=e[u=s[c]],v=t[u];if(n)var y=i?n(v,h,u,t,e,a):n(h,v,u,e,t,a);if(!(void 0===y?h===v||o(h,v,r,n,a):y)){p=!1;break}m||(m="constructor"==u)}if(p&&!m){var g=e.constructor,b=t.constructor;g==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b||(p=!1)}return a.delete(e),a.delete(t),p},rS=Tv,nS=Bw,oS=Xw,aS=tS,iS=Oh,sS=Hf,lS=Kh,cS=ov,uS="[object Arguments]",dS="[object Array]",fS="[object Object]",pS=Object.prototype.hasOwnProperty;var mS=function(e,t,r,n,o,a){var i=sS(e),s=sS(t),l=i?dS:iS(e),c=s?dS:iS(t),u=(l=l==uS?fS:l)==fS,d=(c=c==uS?fS:c)==fS,f=l==c;if(f&&lS(e)){if(!lS(t))return!1;i=!0,u=!1}if(f&&!u)return a||(a=new rS),i||cS(e)?nS(e,t,r,n,o,a):oS(e,t,l,r,n,o,a);if(!(1&r)){var p=u&&pS.call(e,"__wrapped__"),m=d&&pS.call(t,"__wrapped__");if(p||m){var h=p?e.value():e,v=m?t.value():t;return a||(a=new rS),o(h,v,r,n,a)}}return!!f&&(a||(a=new rS),aS(e,t,r,n,o,a))},hS=Wd;var vS=function e(t,r,n,o,a){return t===r||(null==t||null==r||!hS(t)&&!hS(r)?t!=t&&r!=r:mS(t,r,n,o,e,a))},yS=Tv,gS=vS;var bS=function(e,t,r,n){var o=r.length,a=o,i=!n;if(null==e)return!a;for(e=Object(e);o--;){var s=r[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<a;){var l=(s=r[o])[0],c=e[l],u=s[1];if(i&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new yS;if(n)var f=n(c,u,l,e,t,d);if(!(void 0===f?gS(u,c,3,n,d):f))return!1}}return!0},wS=rp;var SS=function(e){return e==e&&!wS(e)},xS=SS,$S=sy;var kS=function(e){for(var t=$S(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,xS(o)]}return t};var _S=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}},ES=bS,CS=kS,PS=_S;var jS=function(e,t){return null!=e&&t in Object(e)},OS=fw;var NS=function(e,t){return null!=e&&OS(e,t,jS)},RS=vS,AS=eh,TS=NS,IS=tp,MS=SS,FS=_S,DS=Qm;var zS=Xm;var LS=function(e){return function(t){return null==t?void 0:t[e]}},VS=function(e){return function(t){return zS(t,e)}},BS=tp,US=Qm;var WS=function(e){var t=CS(e);return 1==t.length&&t[0][2]?PS(t[0][0],t[0][1]):function(r){return r===e||ES(r,e,t)}},qS=function(e,t){return IS(e)&&MS(t)?FS(DS(e),t):function(r){var n=AS(r,e);return void 0===n&&n===t?TS(r,e):RS(t,n,3)}},KS=Mb,HS=Hf,GS=function(e){return BS(e)?LS(US(e)):VS(e)};var QS=function(e){return"function"==typeof e?e:null==e?KS:"object"==typeof e?HS(e)?qS(e[0],e[1]):WS(e):GS(e)};var YS=function(e,t,r,n,o){return o(e,(function(e,o,a){r=n?(n=!1,e):t(r,e,o,a)})),r},JS=$w,XS=Nw,ZS=QS,ex=YS,tx=Hf;var rx=function(e,t,r){var n=tx(e)?JS:ex,o=arguments.length<3;return n(e,ZS(t),r,o,XS)},nx=r(rx),ox=Mb;var ax=function(e){return"function"==typeof e?e:ox},ix=/\s/;var sx=function(e){for(var t=e.length;t--&&ix.test(e.charAt(t)););return t},lx=sx,cx=/^\s+/;var ux=function(e){return e?e.slice(0,lx(e)+1).replace(cx,""):e},dx=rp,fx=Yf,px=/^[-+]0x[0-9a-f]+$/i,mx=/^0b[01]+$/i,hx=/^0o[0-7]+$/i,vx=parseInt;var yx=function(e){if("number"==typeof e)return e;if(fx(e))return NaN;if(dx(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=dx(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=ux(e);var r=mx.test(e);return r||hx.test(e)?vx(e.slice(2),r?2:8):px.test(e)?NaN:+e},gx=1/0;var bx=function(e){return e?(e=yx(e))===gx||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};var wx=Hv,Sx=ax,xx=function(e){var t=bx(e),r=t%1;return t==t?r?t-r:t:0},$x=4294967295,kx=Math.min;var _x=function(e,t){if((e=xx(e))<1||e>9007199254740991)return[];var r=$x,n=kx(e,$x);t=Sx(t),e-=$x;for(var o=wx(n,t);++r<e;)t(r);return o},Ex=r(_x);function Cx(e,t,r){var n;if(e&&r){const o=th(e,r);if(void 0===o)return;for(let e=0;e<t.length;e++){const a=t[e],i=th(a,[vd,r],{});if("object"!==i.type&&"array"!==i.type){if(i.const===o)return e;if(null===(n=i.enum)||void 0===n?void 0:n.includes(o))return e}}}}function Px(e,t,r,n,o){if(void 0===t)return 0;const a=Cx(t,r,o);if(gw(a))return a;for(let a=0;a<r.length;a++){const i=r[a];if(o&&hw(i,[vd,o])){const r=th(t,o),s=th(i,[vd,o],{});if(e.isValid(s,r,n))return a}else if(i[vd]){const r={anyOf:Object.keys(i[vd]).map((e=>({required:[e]})))};let o;if(i.anyOf){const{...e}=i;e.allOf?e.allOf=e.allOf.slice():e.allOf=[],e.allOf.push(r),o=e}else o=Object.assign({},i,r);if(delete o.required,e.isValid(o,t,n))return a}else if(e.isValid(i,t,n))return a}return 0}function jx(e,t,r,n,o){return Px(e,t,r,n,o)}var Ox=Uv,Nx=Hm,Rx=Qv,Ax=rp,Tx=Qm;var Ix=function(e,t,r,n){if(!Ax(e))return e;for(var o=-1,a=(t=Nx(t,e)).length,i=a-1,s=e;null!=s&&++o<a;){var l=Tx(t[o]),c=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=i){var u=s[l];void 0===(c=n?n(u,l,s):void 0)&&(c=Ax(u)?u:Rx(t[o+1])?[]:{})}Ox(s,l,c),s=s[l]}return e},Mx=Ix;var Fx=r((function(e,t,r){return null==e?e:Mx(e,t,r)})),Dx=Iv,zx=$g,Lx=Pw,Vx=QS,Bx=Ud,Ux=Hf,Wx=Kh,qx=sp,Kx=rp,Hx=ov;var Gx=function(e,t,r){var n=Ux(e),o=n||Wx(e)||Hx(e);if(t=Vx(t),null==r){var a=e&&e.constructor;r=o?n?new a:[]:Kx(e)&&qx(a)?zx(Bx(e)):{}}return(o?Dx:Lx)(e,(function(e,n,o){return t(r,e,n,o)})),r},Qx=r(Gx),Yx=zv,Jx=Wp;var Xx=function(e,t,r){(void 0!==r&&!Jx(e[t],r)||void 0===r&&!(t in e))&&Yx(e,t,r)},Zx=Uh,e$=Wd;var t$=function(e){return e$(e)&&Zx(e)};var r$=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},n$=Kv,o$=by;var a$=Xx,i$=ky,s$=mg,l$=_y,c$=Cg,u$=zh,d$=Hf,f$=t$,p$=Kh,m$=sp,h$=rp,v$=Zd,y$=ov,g$=r$,b$=function(e){return n$(e,o$(e))};var w$=Tv,S$=Xx,x$=_w,$$=function(e,t,r,n,o,a,i){var s=g$(e,r),l=g$(t,r),c=i.get(l);if(c)a$(e,r,c);else{var u=a?a(s,l,r+"",e,t,i):void 0,d=void 0===u;if(d){var f=d$(l),p=!f&&p$(l),m=!f&&!p&&y$(l);u=l,f||p||m?d$(s)?u=s:f$(s)?u=l$(s):p?(d=!1,u=i$(l,!0)):m?(d=!1,u=s$(l,!0)):u=[]:v$(l)||u$(l)?(u=s,u$(s)?u=b$(s):h$(s)&&!m$(s)||(u=c$(l))):d=!1}d&&(i.set(l,u),o(u,l,n,a,i),i.delete(l)),a$(e,r,u)}},k$=rp,_$=by,E$=r$;var C$=function e(t,r,n,o,a){t!==r&&x$(r,(function(i,s){if(a||(a=new w$),k$(i))$$(t,r,s,n,e,o,a);else{var l=o?o(E$(t,s),i,s+"",t,r,a):void 0;void 0===l&&(l=i),S$(t,s,l)}}),_$)},P$=Mb,j$=Ib,O$=Bb;var N$=function(e,t){return O$(j$(e,t,P$),e+"")},R$=Wp,A$=Uh,T$=Qv,I$=rp;var M$=function(e,t,r){if(!I$(r))return!1;var n=typeof t;return!!("number"==n?A$(r)&&T$(t,r.length):"string"==n&&t in r)&&R$(r[t],e)},F$=N$,D$=M$;var z$=function(e){return F$((function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,i&&D$(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++n<o;){var s=r[n];s&&e(t,s,n,a)}return t}))},L$=C$,V$=r(z$((function(e,t,r){L$(e,t,r)}))),B$=jb;var U$=function(e){return(null==e?0:e.length)?B$(e,Infinity):[]},W$=r(U$);var q$=function(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a<o;)if(t(e[a],a,e))return a;return-1};var K$=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1},H$=q$,G$=function(e){return e!=e},Q$=K$;var Y$=function(e,t,r){return t==t?Q$(e,t,r):H$(e,G$,r)},J$=Y$;var X$=function(e,t){return!!(null==e?0:e.length)&&J$(e,t,0)>-1};var Z$=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1};var ek=dh,tk=function(){},rk=ek&&1/Ww(new ek([,-0]))[1]==1/0?function(e){return new ek(e)}:tk,nk=Mw,ok=X$,ak=Z$,ik=Dw,sk=rk,lk=Ww;var ck=function(e,t,r){var n=-1,o=ok,a=e.length,i=!0,s=[],l=s;if(r)i=!1,o=ak;else if(a>=200){var c=t?null:sk(e);if(c)return lk(c);i=!1,o=ik,l=new nk}else l=t?[]:s;e:for(;++n<a;){var u=e[n],d=t?t(u):u;if(u=r||0!==u?u:0,i&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(u)}else o(l,d,r)||(l!==s&&l.push(d),s.push(u))}return s},uk=ck;var dk=function(e){return e&&e.length?uk(e):[]},fk=r(dk),pk=fb;var mk=function(e){return pk(e,5)},hk=r(mk),vk=vS;var yk=function(e,t){return vk(e,t)},gk=Nw,bk=Uh;var wk=function(e,t){var r=-1,n=bk(e)?Array(e.length):[];return gk(e,(function(e,o,a){n[++r]=t(e,o,a)})),n};var Sk=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e},xk=Yf;var $k=function(e,t){if(e!==t){var r=void 0!==e,n=null===e,o=e==e,a=xk(e),i=void 0!==t,s=null===t,l=t==t,c=xk(t);if(!s&&!c&&!a&&e>t||a&&i&&l&&!s&&!c||n&&i&&l||!r&&l||!o)return 1;if(!n&&!a&&!c&&e<t||c&&r&&o&&!n&&!a||s&&r&&o||!i&&o||!l)return-1}return 0};var kk=function(e,t,r){for(var n=-1,o=e.criteria,a=t.criteria,i=o.length,s=r.length;++n<i;){var l=$k(o[n],a[n]);if(l)return n>=s?l:l*("desc"==r[n]?-1:1)}return e.index-t.index},_k=Tm,Ek=Xm,Ck=QS,Pk=wk,jk=Sk,Ok=Xh,Nk=kk,Rk=Mb,Ak=Hf;var Tk=function(e,t,r){t=t.length?_k(t,(function(e){return Ak(e)?function(t){return Ek(t,1===e.length?e[0]:e)}:e})):[Rk];var n=-1;t=_k(t,Ok(Ck));var o=Pk(e,(function(e,r,o){return{criteria:_k(t,(function(t){return t(e)})),index:++n,value:e}}));return jk(o,(function(e,t){return Nk(e,t,r)}))},Ik=jb,Mk=Tk,Fk=M$,Dk=N$((function(e,t){if(null==e)return[];var r=t.length;return r>1&&Fk(e,t[0],t[1])?t=[]:r>2&&Fk(t[0],t[1],t[2])&&(t=[t[0]]),Mk(e,Ik(t,1),[])})),zk=Dk,Lk=ck;var Vk=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Lk(e,void 0,t):[]},Bk=N$,Uk=Wp,Wk=M$,qk=by,Kk=Object.prototype,Hk=Kk.hasOwnProperty,Gk=Bk((function(e,t){e=Object(e);var r=-1,n=t.length,o=n>2?t[2]:void 0;for(o&&Wk(t[0],t[1],o)&&(n=1);++r<n;)for(var a=t[r],i=qk(a),s=-1,l=i.length;++s<l;){var c=i[s],u=e[c];(void 0===u||Uk(u,Kk[c])&&!Hk.call(e,c))&&(e[c]=a[c])}return e})),Qk=Gk,Yk=Mw,Jk=X$,Xk=Z$,Zk=Tm,e_=Xh,t_=Dw,r_=Math.min;var n_=function(e,t,r){for(var n=r?Xk:Jk,o=e[0].length,a=e.length,i=a,s=Array(a),l=1/0,c=[];i--;){var u=e[i];i&&t&&(u=Zk(u,e_(t))),l=r_(u.length,l),s[i]=!r&&(t||o>=120&&u.length>=120)?new Yk(i&&u):void 0}u=e[0];var d=-1,f=s[0];e:for(;++d<o&&c.length<l;){var p=u[d],m=t?t(p):p;if(p=r||0!==p?p:0,!(f?t_(f,m):n(c,m,r))){for(i=a;--i;){var h=s[i];if(!(h?t_(h,m):n(e[i],m,r)))continue e}f&&f.push(m),c.push(p)}}return c},o_=t$;var a_=function(e){return o_(e)?e:[]},i_=Tm,s_=n_,l_=a_,c_=pb,u_=N$((function(e){var t=c_(e),r=i_(e,l_);return(t="function"==typeof t?t:void 0)&&r.pop(),r.length&&r[0]===e[0]?s_(r,void 0,t):[]})),d_=Vd,f_=Wd;var p_=yk,m_=zk,h_=dk,v_=Vk,y_=Qk,g_=u_,b_=Zd,w_=function(e){return!0===e||!1===e||f_(e)&&"[object Boolean]"==d_(e)},S_=e=>Array.isArray(e)?e:[e],x_=e=>void 0===e,$_=e=>b_(e)||Array.isArray(e)?Object.keys(e):[],k_=(e,t)=>e.hasOwnProperty(t),__=e=>m_(h_(e)),E_=e=>x_(e)||Array.isArray(e)&&0===e.length,C_=(e,t,r,n)=>t&&k_(t,r)&&e&&k_(e,r)&&n(e[r],t[r]),P_=(e,t)=>x_(e)&&0===t||x_(t)&&0===e||p_(e,t),j_=e=>x_(e)||p_(e,{})||!0===e,O_=e=>x_(e)||p_(e,{}),N_=e=>x_(e)||b_(e)||!0===e||!1===e;function R_(e,t){return!(!E_(e)||!E_(t))||p_(__(e),__(t))}function A_(e,t,r,n){var o=h_($_(e).concat($_(t)));return!(!O_(e)||!O_(t))||(!O_(e)||!$_(t).length)&&((!O_(t)||!$_(e).length)&&o.every((function(r){var o=e[r],a=t[r];return Array.isArray(o)&&Array.isArray(a)?p_(__(e),__(t)):!(Array.isArray(o)&&!Array.isArray(a))&&(!(Array.isArray(a)&&!Array.isArray(o))&&C_(e,t,r,n))})))}function T_(e,t,r,n){var o=v_(e,n),a=v_(t,n);return g_(o,a,n).length===Math.max(o.length,a.length)}var I_={title:p_,uniqueItems:(e,t)=>x_(e)&&!1===t||x_(t)&&!1===e||p_(e,t),minLength:P_,minItems:P_,minProperties:P_,required:R_,enum:R_,type:function(e,t){return e=S_(e),t=S_(t),p_(__(e),__(t))},items:function(e,t,r,n){return b_(e)&&b_(t)?n(e,t):Array.isArray(e)&&Array.isArray(t)?A_(e,t,0,n):p_(e,t)},anyOf:T_,allOf:T_,oneOf:T_,properties:A_,patternProperties:A_,dependencies:A_},M_=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],F_=["additionalProperties","additionalItems","contains","propertyNames","not"];var D_=function e(t,r,n){if(n=y_(n,{ignore:[]}),j_(t)&&j_(r))return!0;if(!N_(t)||!N_(r))throw new Error("Either of the values are not a JSON schema.");if(t===r)return!0;if(w_(t)&&w_(r))return t===r;if(void 0===t&&!1===r||void 0===r&&!1===t)return!1;if(x_(t)&&!x_(r)||!x_(t)&&x_(r))return!1;var o=h_(Object.keys(t).concat(Object.keys(r)));if(n.ignore.length&&(o=o.filter((e=>-1===n.ignore.indexOf(e)))),!o.length)return!0;function a(t,r){return e(t,r,n)}return o.every((function(o){var i=t[o],s=r[o];if(-1!==F_.indexOf(o))return e(i,s,n);var l=I_[o];if(l||(l=p_),p_(i,s))return!0;if(-1===M_.indexOf(o)&&(!k_(t,o)&&k_(r,o)||k_(t,o)&&!k_(r,o)))return i===s;var c=l(i,s,o,a);if(!w_(c))throw new Error("Comparer must return true or false");return c}))};var z_=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};var L_=function(e){return("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))&&e.valueOf()==e.valueOf()};var V_=z_,B_=function(e){return L_(e)&&e%1==0};var U_=function(e){var t;if(!V_(e))return!1;if(!(t=e.length))return!1;for(var r=0;r<t;r++)if(!B_(e[r]))return!1;return!0};var W_=function(e){return"function"==typeof e},q_=z_,K_=U_,H_=W_,G_=Math.pow(2,31)-1;function Q_(e,t){var r,n=1;if(0===e)return t;if(0===t)return e;for(;e%2==0&&t%2==0;)e/=2,t/=2,n*=2;for(;e%2==0;)e/=2;for(;t;){for(;t%2==0;)t/=2;e>t&&(r=t,t=e,e=r),t-=e}return n*e}function Y_(e,t){var r,n=0;if(0===e)return t;if(0===t)return e;for(;0==(1&e)&&0==(1&t);)e>>>=1,t>>>=1,n++;for(;0==(1&e);)e>>>=1;for(;t;){for(;0==(1&t);)t>>>=1;e>t&&(r=t,t=e,e=r),t-=e}return e<<n}var J_=function(){var e,t,r,n,o,a,i,s=arguments.length;for(e=new Array(s),i=0;i<s;i++)e[i]=arguments[i];if(K_(e)){if(2===s)return(o=e[0])<0&&(o=-o),(a=e[1])<0&&(a=-a),o<=G_&&a<=G_?Y_(o,a):Q_(o,a);r=e}else{if(!q_(e[0]))throw new TypeError("gcd()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if(s>1){if(r=e[0],t=e[1],!H_(t))throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+t+"`.")}else r=e[0]}if((n=r.length)<2)return null;if(t){for(o=new Array(n),i=0;i<n;i++)o[i]=t(r[i],i);r=o}if(s<3&&!K_(r))throw new TypeError("gcd()::invalid input argument. Accessed array values must be integers. Value: `"+r+"`.");for(i=0;i<n;i++)(o=r[i])<0&&(r[i]=-o);for(o=r[0],i=1;i<n;i++)o=(a=r[i])<=G_&&o<=G_?Y_(o,a):Q_(o,a);return o},X_=J_,Z_=z_,eE=U_,tE=W_;var rE=function(){var e,t,r,n,o,a,i,s=arguments.length;for(e=new Array(s),i=0;i<s;i++)e[i]=arguments[i];if(eE(e)){if(2===s)return(o=e[0])<0&&(o=-o),(a=e[1])<0&&(a=-a),0===o||0===a?0:o/X_(o,a)*a;r=e}else{if(!Z_(e[0]))throw new TypeError("lcm()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if(s>1){if(r=e[0],t=e[1],!tE(t))throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+t+"`.")}else r=e[0]}if((n=r.length)<2)return null;if(t){for(o=new Array(n),i=0;i<n;i++)o[i]=t(r[i],i);r=o}if(s<3&&!eE(r))throw new TypeError("lcm()::invalid input argument. Accessed array values must be integers. Value: `"+r+"`.");for(i=0;i<n;i++)(o=r[i])<0&&(r[i]=-o);for(o=r[0],i=1;i<n;i++){if(a=r[i],0===o||0===a)return 0;o=o/X_(o,a)*a}return o},nE=C$,oE=rp;var aE=function e(t,r,n,o,a,i){return oE(t)&&oE(r)&&(i.set(r,t),nE(t,r,void 0,e,i),i.delete(r)),t},iE=C$,sE=z$((function(e,t,r,n){iE(e,t,r,n)})),lE=Rb,cE=aE,uE=sE,dE=N$((function(e){return e.push(void 0,cE),lE(uE,void 0,e)})),fE=Tm,pE=n_,mE=a_,hE=N$((function(e){var t=fE(e,mE);return t.length&&t[0]===e[0]?pE(t):[]}));var vE=function(e,t,r,n){for(var o=r-1,a=e.length;++o<a;)if(n(e[o],t))return o;return-1},yE=Tm,gE=Y$,bE=vE,wE=Xh,SE=_y,xE=Array.prototype.splice;var $E=function(e,t,r,n){var o=n?bE:gE,a=-1,i=t.length,s=e;for(e===t&&(t=SE(t)),r&&(s=yE(e,wE(r)));++a<i;)for(var l=0,c=t[a],u=r?r(c):c;(l=o(s,u,l,n))>-1;)s!==e&&xE.call(s,l,1),xE.call(e,l,1);return e},kE=$E;var _E=function(e,t){return e&&e.length&&t&&t.length?kE(e,t):e},EE=Iv,CE=Nw,PE=ax,jE=Hf;var OE=function(e,t){return(jE(e)?EE:CE)(e,PE(t))},NE=r(OE),RE=Mw,AE=X$,TE=Z$,IE=Tm,ME=Xh,FE=Dw;var DE=function(e,t,r,n){var o=-1,a=AE,i=!0,s=e.length,l=[],c=t.length;if(!s)return l;r&&(t=IE(t,ME(r))),n?(a=TE,i=!1):t.length>=200&&(a=FE,i=!1,t=new RE(t));e:for(;++o<s;){var u=e[o],d=null==r?u:r(u);if(u=n||0!==u?u:0,i&&d==d){for(var f=c;f--;)if(t[f]===d)continue e;l.push(u)}else a(t,d,n)||l.push(u)}return l},zE=DE,LE=t$,VE=N$((function(e,t){return LE(e)?zE(e,t):[]}));const BE=Nb,UE=U$,WE=Zd,qE=dk,KE=VE;const HE=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),GE=e=>WE(e)||Array.isArray(e)?Object.keys(e):[],QE=e=>!GE(e).length&&!1!==e&&!0!==e;var YE={allUniqueKeys:e=>qE(UE(e.map(GE))),deleteUndefinedProps:function(e){for(const t in e)HE(e,t)&&QE(e[t])&&delete e[t];return e},getValues:(e,t)=>e.map((e=>e&&e[t])),has:HE,isEmptySchema:QE,isSchema:e=>WE(e)||!0===e||!1===e,keys:GE,notUndefined:e=>void 0!==e,uniqWith:Vk,withoutArr:(e,...t)=>KE.apply(null,[e].concat(BE(t)))};const JE=D_,XE=OE,{allUniqueKeys:ZE,deleteUndefinedProps:eC,getValues:tC,keys:rC,notUndefined:nC,uniqWith:oC,withoutArr:aC}=YE;function iC(e,t){return ZE(e).reduce((function(r,n){const o=tC(e,n),a=oC(o.filter(nC),JE);return r[n]=t(a,n),r}),{})}var sC={keywords:["properties","patternProperties","additionalProperties"],resolver(e,t,r,n){n.ignoreAdditionalProperties||(e.forEach((function(t){const n=e.filter((e=>e!==t)),o=rC(t.properties),a=rC(t.patternProperties).map((e=>new RegExp(e)));n.forEach((function(e){const n=rC(e.properties),i=n.filter((e=>a.some((t=>t.test(e)))));aC(n,o,i).forEach((function(n){e.properties[n]=r.properties([e.properties[n],t.additionalProperties],n)}))}))})),e.forEach((function(t){const r=e.filter((e=>e!==t)),n=rC(t.patternProperties);!1===t.additionalProperties&&r.forEach((function(e){const t=rC(e.patternProperties);aC(t,n).forEach((t=>delete e.patternProperties[t]))}))})));const o={additionalProperties:r.additionalProperties(e.map((e=>e.additionalProperties))),patternProperties:iC(e.map((e=>e.patternProperties)),r.patternProperties),properties:iC(e.map((e=>e.properties)),r.properties)};var a;return!1===o.additionalProperties&&XE(a=o.properties,(function(e,t){!1===e&&delete a[t]})),eC(o)}};const lC=D_,cC=OE,{allUniqueKeys:uC,deleteUndefinedProps:dC,has:fC,isSchema:pC,notUndefined:mC,uniqWith:hC}=YE;function vC(e,t,r){return uC(r).reduce((function(r,n){const o=function(e,t){return e.map((function(e){if(e){if(!Array.isArray(e.items))return e.items;{const r=e.items[t];if(pC(r))return r;if(fC(e,"additionalItems"))return e.additionalItems}}}))}(e,n),a=hC(o.filter(mC),lC);return r[n]=t(a,n),r}),[])}var yC={keywords:["items","additionalItems"],resolver(e,t,r){const n=e.map((e=>e.items)),o=n.filter(mC),a={};let i;var s;return o.every(pC)?a.items=r.items(n):a.items=vC(e,r.items,n),o.every(Array.isArray)?i=e.map((e=>e.additionalItems)):o.some(Array.isArray)&&(i=e.map((function(e){if(e)return Array.isArray(e.items)?e.additionalItems:e.items}))),i&&(a.additionalItems=r.additionalItems(i)),!1===a.additionalItems&&Array.isArray(a.items)&&(s=a.items,cC(s,(function(e,t){!1===e&&s.splice(t,1)}))),dC(a)}};const gC=mk,bC=D_,wC=rE,SC=dE,xC=Nb,$C=U$,kC=hE,_C=u_,EC=yk,CC=Zd,PC=_E,jC=zk,OC=dk,NC=Vk,RC=sC,AC=yC,TC=(e,t)=>-1!==e.indexOf(t),IC=e=>CC(e)||!0===e||!1===e,MC=e=>!1===e,FC=e=>!0===e,DC=(e,t,r)=>r(e),zC=e=>jC(OC($C(e))),LC=e=>void 0!==e,VC=e=>OC($C(e.map(HC))),BC=e=>e[0],UC=e=>Math.max.apply(Math,e),WC=e=>Math.min.apply(Math,e);function qC(e){let{allOf:t=[],...r}=e;return r=CC(e)?r:e,[r,...t.map(qC)]}function KC(e,t){return e.map((e=>e&&e[t]))}function HC(e){return CC(e)||Array.isArray(e)?Object.keys(e):[]}function GC(e,t){if(t=t||[],!e.length)return t;const r=e.slice(0).shift(),n=e.slice(1);return t.length?GC(n,xC(t.map((e=>r.map((t=>[t].concat(e))))))):GC(n,r.map((e=>e)))}function QC(e,t){let r;try{r=e.map((function(e){return JSON.stringify(e,null,2)})).join("\n")}catch(t){r=e.join(", ")}throw new Error('Could not resolve values for path:"'+t.join(".")+'". They are probably incompatible. Values: \n'+r)}function YC(e,t,r,n,o,a){if(e.length){const i=o.complexResolvers[t];if(!i||!i.resolver)throw new Error("No resolver found for "+t);const s=r.map((t=>e.reduce(((e,r)=>(void 0!==t[r]&&(e[r]=t[r]),e)),{}))),l=NC(s,bC),c=i.keywords.reduce(((e,t)=>({...e,[t]:(e,r=[])=>n(e,null,a.concat(t,r))})),{}),u=i.resolver(l,a.concat(t),c,o);return CC(u)||QC(l,a.concat(t)),u}}function JC(e){return{required:e}}const XC=["properties","patternProperties","definitions","dependencies"],ZC=["anyOf","oneOf"],eP=["additionalProperties","additionalItems","contains","propertyNames","not","items"],tP={type(e){if(e.some(Array.isArray)){const t=e.map((function(e){return Array.isArray(e)?e:[e]})),r=kC.apply(null,t);if(1===r.length)return r[0];if(r.length>1)return OC(r)}},dependencies:(e,t,r)=>VC(e).reduce((function(t,n){const o=KC(e,n);let a=NC(o.filter(LC),EC);const i=a.filter(Array.isArray);if(i.length){if(i.length===a.length)t[n]=zC(a);else{const e=a.filter(IC),o=i.map(JC);t[n]=r(e.concat(o),n)}return t}return a=NC(a,bC),t[n]=r(a,n),t}),{}),oneOf(e,t,r){const n=function(e,t){return e.map((function(e,r){try{return t(e,r)}catch(e){return}})).filter(LC)}(GC(gC(e)),r),o=NC(n,bC);if(o.length)return o},not:e=>({anyOf:e}),pattern:e=>e.map((e=>"(?="+e+")")).join(""),multipleOf(e){let t=e.slice(0),r=1;for(;t.some((e=>!Number.isInteger(e)));)t=t.map((e=>10*e)),r*=10;return wC(t)/r},enum(e){const t=_C.apply(null,e.concat(EC));if(t.length)return jC(t)}};tP.$id=BC,tP.$ref=BC,tP.$schema=BC,tP.additionalItems=DC,tP.additionalProperties=DC,tP.anyOf=tP.oneOf,tP.contains=DC,tP.default=BC,tP.definitions=tP.dependencies,tP.description=BC,tP.examples=e=>NC(xC(e),EC),tP.exclusiveMaximum=WC,tP.exclusiveMinimum=UC,tP.items=AC,tP.maximum=WC,tP.maxItems=WC,tP.maxLength=WC,tP.maxProperties=WC,tP.minimum=UC,tP.minItems=UC,tP.minLength=UC,tP.minProperties=UC,tP.properties=RC,tP.propertyNames=DC,tP.required=e=>zC(e),tP.title=BC,tP.uniqueItems=e=>e.some(FC);const rP={properties:RC,items:AC};function nP(e,t,r){t=SC(t,{ignoreAdditionalProperties:!1,resolvers:tP,complexResolvers:rP,deep:!0});const n=Object.entries(t.complexResolvers);const o=function e(r,o,a){r=gC(r.filter(LC)),a=a||[];const i=CC(o)?o:{};if(!r.length)return;if(r.some(MC))return!1;if(r.every(FC))return!0;r=r.filter(CC);const s=VC(r);if(t.deep&&TC(s,"allOf"))return nP({allOf:r},t);const l=n.map((([e,t])=>s.filter((e=>t.keywords.includes(e)))));return l.forEach((e=>PC(s,e))),s.forEach((function(n){const o=KC(r,n),s=NC(o.filter(LC),function(e){return function(t,r){return bC({[e]:t},{[e]:r})}}(n));if(1===s.length&&TC(ZC,n))i[n]=s[0].map((t=>e([t],t)));else if(1!==s.length||TC(XC,n)||TC(eP,n)){const r=t.resolvers[n]||t.resolvers.defaultResolver;if(!r)throw new Error("No resolver found for key "+n+". You can provide a resolver for this keyword in the options, or provide a default resolver.");const o=(t,r=[])=>e(t,null,a.concat(n,r));i[n]=r(s,a.concat(n),o,t),void 0===i[n]?QC(s,a.concat(n)):void 0===i[n]&&delete i[n]}else i[n]=s[0]})),n.reduce(((n,[o,i],s)=>({...n,...YC(l[s],o,r,e,t,a)})),i)}($C(qC(e)));return o}nP.options={resolvers:tP};var oP=r(nP);function aP(e){let t;const r=th(e,"discriminator.propertyName",void 0);return xw(r)?t=r:void 0!==r&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),t}function iP(e){return Array.isArray(e)?"array":"string"==typeof e?"string":null==e?"null":"boolean"==typeof e?"boolean":isNaN(e)?"object"==typeof e?"object":"string":"number"}var sP=jb,lP=ck,cP=t$,uP=r(N$((function(e){return lP(sP(e,1,cP,!0))})));function dP(e){let{type:t}=e;return!t&&e.const?iP(e.const):!t&&e.enum?"string":t||!e.properties&&!e.additionalProperties?(Array.isArray(t)&&(t=2===t.length&&t.includes("null")?t.find((e=>"null"!==e)):t[0]),t):"object"}function fP(e,t){const r=Object.assign({},e);return Object.keys(t).reduce(((r,n)=>{const o=e?e[n]:{},a=t[n];return e&&n in e&&ed(a)?r[n]=fP(o,a):e&&t&&("object"===dP(e)||"object"===dP(t))&&n===yd&&Array.isArray(o)&&Array.isArray(a)?r[n]=uP(o,a):r[n]=a,r}),r)}function pP(e,t,r={},n,o){return yP(e,t,r,n,void 0,void 0,o)[0]}function mP(e){const t=e.reduce(((e,t)=>t.length>1?t.flatMap((t=>Ex(e.length,(r=>[...e[r]].concat(t))))):(e.forEach((e=>e.push(t[0]))),e)),[[]]);return t}function hP(e,t,r,n,o,a,i){const s=vP(t,r,o);return s!==t?yP(e,s,r,a,n,o,i):[t]}function vP(e,t,r){if(!ed(e))return e;let n=e;if(bd in n){const{$ref:e,...o}=n;if(r.includes(e))return n;r.push(e);n={...ow(e,t),...o}}if(vd in n){const e=[],o=Qx(n[vd],((n,o,a)=>{const i=[...r];n[a]=vP(o,t,i),e.push(i)}),{});V$(r,fk(W$(e))),n={...n,[vd]:o}}return pd in n&&!Array.isArray(n.items)&&"boolean"!=typeof n.items&&(n={...n,items:vP(n.items,t,r)}),Kf(e,n)?e:n}function yP(e,t,r,n,o=!1,a=[],i){if(!ed(t))return[{}];const s=function(e,t,r,n,o,a,i){const s=hP(e,t,r,n,o,a);if(s.length>1||s[0]!==t)return s;if(ld in t)return gP(e,t,r,n,o,a).flatMap((t=>yP(e,t,r,a,n,o,i)));if(od in t&&Array.isArray(t.allOf))return mP(t.allOf.map((t=>yP(e,t,r,a,n,o,i)))).map((e=>({...t,allOf:e})));return[t]}(e,t,r,o,a,n,i);return s.flatMap((t=>{var s;let l=t;if(fd in l)return function(e,t,r,n,o,a,i){const{if:s,then:l,else:c,...u}=t,d=e.isValid(s,a||{},r);let f=[u],p=[];if(n)l&&"boolean"!=typeof l&&(p=p.concat(yP(e,l,r,a,n,o,i))),c&&"boolean"!=typeof c&&(p=p.concat(yP(e,c,r,a,n,o,i)));else{const t=d?l:c;t&&"boolean"!=typeof t&&(p=p.concat(yP(e,t,r,a,n,o,i)))}return p.length&&(f=p.map((e=>fP(u,e)))),f.flatMap((t=>yP(e,t,r,a,n,o,i)))}(e,l,r,o,a,n,i);if(od in l){if(o){const{allOf:e,...t}=l;return[...e,t]}try{const e=[],t=[];null===(s=l.allOf)||void 0===s||s.forEach((r=>{"object"==typeof r&&r.contains?e.push(r):t.push(r)})),e.length&&(l={...l,allOf:t}),l=i?i(l):oP(l,{deep:!1}),e.length&&(l.allOf=e)}catch(e){console.warn("could not merge subschemas in allOf:\n",e);const{allOf:t,...r}=l;return r}}return nd in l&&!1!==l.additionalProperties?function(e,t,r,n,o){const a={...t,properties:{...t.properties}},i=n&&ed(n)?n:{};return Object.keys(i).forEach((t=>{if(t in a.properties)return;let n={};n="boolean"!=typeof a.additionalProperties?bd in a.additionalProperties?pP(e,{$ref:th(a.additionalProperties,[bd])},r,i,o):"type"in a.additionalProperties?{...a.additionalProperties}:ad in a.additionalProperties||hd in a.additionalProperties?{type:"object",...a.additionalProperties}:{type:iP(th(i,[t]))}:{type:iP(th(i,[t]))},a.properties[t]=n,Fx(a.properties,[t,rd],!0)})),a}(e,l,r,n,i):l}))}function gP(e,t,r,n,o,a,i){const{dependencies:s,...l}=t,c=function(e,t,r,n,o){let a;const{oneOf:i,anyOf:s,...l}=t;if(Array.isArray(i)?a=i:Array.isArray(s)&&(a=s),a){const i=void 0===o&&n?{}:o,s=aP(t);a=a.map((e=>vP(e,r,[])));const c=jx(e,i,a,r,s);if(n)return a.map((e=>fP(l,e)));t=fP(l,a[c])}return[t]}(e,l,r,n,a);return c.flatMap((t=>bP(e,s,t,r,n,o,a,i)))}function bP(e,t,r,n,o,a,i,s){let l=[r];for(const c in t){if(!o&&void 0===th(i,[c]))continue;if(r.properties&&!(c in r.properties))continue;const[u,d]=rw(c,t);return Array.isArray(d)?l[0]=wP(r,d):ed(d)&&(l=SP(e,r,n,c,d,o,a,i,s)),l.flatMap((t=>bP(e,u,t,n,o,a,i,s)))}return l}function wP(e,t){if(!t)return e;const r=Array.isArray(e.required)?Array.from(new Set([...e.required,...t])):t;return{...e,required:r}}function SP(e,t,r,n,o,a,i,s,l){return yP(e,o,r,s,a,i,l).flatMap((o=>{const{oneOf:c,...u}=o;if(t=fP(t,u),void 0===c)return t;const d=c.map((t=>"boolean"!=typeof t&&bd in t?hP(e,t,r,a,i,s):[t]));return mP(d).flatMap((o=>function(e,t,r,n,o,a,i,s,l){const c=o.filter((t=>{if("boolean"==typeof t||!t||!t.properties)return!1;const{[n]:o}=t.properties;if(o){const t={type:"object",properties:{[n]:o}};return e.isValid(t,s,r)||a}return!1}));if(!a&&1!==c.length)return console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[t];return c.flatMap((o=>{const c=o,[u]=rw(n,c.properties),d={...c,properties:u};return yP(e,d,r,s,a,i,l).map((e=>fP(t,e)))}))}(e,t,r,n,o,a,i,s,l)))}))}const xP={type:"object",$id:"_$junk_option_schema_id$_",properties:{__not_really_there__:{type:"number"}}};function $P(e,t,r,n,o){let a=0;return r&&(np(r.properties)?a+=nx(r.properties,((r,a,i)=>{const s=th(n,i);if("boolean"==typeof a)return r;if(hw(a,bd)){const n=pP(e,a,t,s,o);return r+$P(e,t,n,s||{},o)}if((hw(a,hd)||hw(a,ad))&&s){const n=hw(a,hd)?hd:ad,i=aP(a);return r+kP(e,t,s,th(a,n),-1,i,o)}if("object"===a.type)return np(s)&&(r+=1),r+$P(e,t,a,s,o);if(a.type===iP(s)){let e=r+1;return a.default?e+=s===a.default?1:-1:a.const&&(e+=s===a.const?1:-1),e}return r}),0):xw(r.type)&&r.type===iP(n)&&(a+=1)),a}function kP(e,t,r,n,o=-1,a,i){const s=n.map((e=>vP(e,t,[]))),l=Cx(r,n,a);if(gw(l))return l;const c=s.reduce(((n,o,i)=>(1===jx(e,r,[xP,o],t,a)&&n.push(i),n)),[]);if(1===c.length)return c[0];c.length||Ex(s.length,(e=>c.push(e)));const u=new Set,{bestIndex:d}=c.reduce(((n,o)=>{const{bestScore:a}=n,l=s[o],c=$P(e,t,l,r,i);return u.add(c),c>a?{bestIndex:o,bestScore:c}:n}),{bestIndex:o,bestScore:0});return 1===u.size&&o>=0?o:d}function _P(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every((e=>ed(e)))}var EP=r((function(e){return null==e}));function CP(e,t,r=!1,n=!1,o=!1){if(Array.isArray(t)){const a=Array.isArray(e)?e:[],i=o?t:a,s=(o?a:t).map(((e,s)=>void 0!==i[s]?CP(a[s],t[s],r,n,o):e));return(r||o)&&s.length<i.length&&s.push(...i.slice(s.length)),s}if(ed(t)){const a=Object.assign({},e);return Object.keys(t).reduce(((a,i)=>{const s=th(t,i),l=ed(e)&&i in e,c=i in t;return a[i]=CP(e?th(e,i):{},s,r,n,o&&(l||!c)),a}),a)}return n&&(!EP(e)&&EP(t)||"number"==typeof t&&isNaN(t))||o&&!EP(t)?e:t}function PP(e,t,r=!1){return Object.keys(t).reduce(((n,o)=>{const a=e?e[o]:{},i=t[o];if(e&&o in e&&ed(i))n[o]=PP(a,i,r);else if(r&&Array.isArray(a)&&Array.isArray(i)){let e=i;"preventDuplicates"===r&&(e=i.reduce(((e,t)=>(a.includes(t)||e.push(t),e)),[])),n[o]=a.concat(e)}else n[o]=i;return n}),Object.assign({},e))}function jP(e){return Array.isArray(e.enum)&&1===e.enum.length||id in e}function OP(e,t,r={},n){const o=pP(e,t,r,void 0,n),a=o.oneOf||o.anyOf;return!!Array.isArray(o.enum)||!!Array.isArray(a)&&a.every((e=>"boolean"!=typeof e&&jP(e)))}function NP(e,t,r,n){return!(!t.uniqueItems||!t.items||"boolean"==typeof t.items)&&OP(e,t.items,r,n)}function RP(e){const t=e[id],r=dP(e);return ed(t)&&xw(null==t?void 0:t.$data)&&"object"!==r&&"array"!==r}function TP(e,t){const r=e;if(e.enum){let n;if(t){const{enumNames:e}=kd(t);n=e}return!n&&r.enumNames&&(n=r.enumNames),e.enum.map(((e,t)=>({label:(null==n?void 0:n[t])||String(e),value:e})))}let n,o;return e.anyOf?(n=e.anyOf,o=null==t?void 0:t.anyOf):e.oneOf&&(n=e.oneOf,o=null==t?void 0:t.oneOf),n&&n.map(((e,t)=>{const{title:r}=kd(null==o?void 0:o[t]),n=e,a=function(e){if(cd in e&&Array.isArray(e.enum)&&1===e.enum.length)return e.enum[0];if(id in e)return e.const;throw new Error("schema cannot be inferred as a constant")}(n);return{schema:n,label:r||n.title||String(a),value:a}}))}const IP=["string","number","integer","boolean","null"];var MP;function FP(e,t=MP.Ignore,r=-1){if(r>=0){if(Array.isArray(e.items)&&r<e.items.length){const t=e.items[r];if("boolean"!=typeof t)return t}}else if(e.items&&!Array.isArray(e.items)&&"boolean"!=typeof e.items)return e.items;return t!==MP.Ignore&&ed(e.additionalItems)?e.additionalItems:{}}function DP(e,t,r,n,o,a=[],i={},s=!1){const{emptyObjectFields:l="populateAllDefaults"}=i;if(n||s)e[t]=r;else if("skipDefaults"!==l){const n=void 0===o?a.includes(t):o;ed(r)?"skipEmptyDefaults"===l?mv(r)||(e[t]=r):mv(r)&&!a.includes(t)||!n&&"populateRequiredDefaults"===l||(e[t]=r):void 0!==r&&("populateAllDefaults"===l||"skipEmptyDefaults"===l||n&&a.includes(t))&&(e[t]=r)}}function zP(e,t,r={}){const{parentDefaults:n,rawFormData:o,rootSchema:a={},includeUndefinedValues:i=!1,_recurseList:s=[],experimental_defaultFormStateBehavior:l,experimental_customMergeAllOf:c,required:u,shouldMergeDefaultsIntoFormData:d=!1}=r,f=ed(o)?o:{},p=ed(t)?t:{};let m=n,h=null,v=l,y=s;if(p[id]&&"never"!==(null==l?void 0:l.constAsDefaults)&&!RP(p))m=p[id];else if(ed(m)&&ed(p.default))m=PP(m,p.default);else if(sd in p)m=p.default;else if(bd in p){const e=p[bd];s.includes(e)||(y=s.concat(e),h=ow(e,a))}else if(ld in p){const t={...LP(e,p,r,m),...f};h=gP(e,p,a,!1,[],t,c)[0]}else if(_P(p))m=p.items.map(((t,r)=>zP(e,t,{rootSchema:a,includeUndefinedValues:i,_recurseList:s,experimental_defaultFormStateBehavior:l,experimental_customMergeAllOf:c,parentDefaults:Array.isArray(n)?n[r]:void 0,rawFormData:f,required:u,shouldMergeDefaultsIntoFormData:d})));else if(hd in p){const{oneOf:t,...r}=p;if(0===t.length)return;const n=aP(p),{type:i="null"}=r;!Array.isArray(i)&&IP.includes(i)&&"skipOneOf"===(null==v?void 0:v.constAsDefaults)&&(v={...v,constAsDefaults:"never"}),h=t[kP(e,a,o,t,0,n,c)],h=fP(r,h)}else if(ad in p){const{anyOf:t,...r}=p;if(0===t.length)return;const n=aP(p);h=t[kP(e,a,o,t,0,n,c)],h=fP(r,h)}if(h)return zP(e,h,{rootSchema:a,includeUndefinedValues:i,_recurseList:y,experimental_defaultFormStateBehavior:v,experimental_customMergeAllOf:c,parentDefaults:m,rawFormData:f,required:u,shouldMergeDefaultsIntoFormData:d});void 0===m&&(m=p.default);const g=LP(e,p,r,m);let b=null!=g?g:m;if(d){const{arrayMinItems:t={}}=l||{},{mergeExtraDefaults:r}=t,n=function(e,t,r,n,o){const a=!jP(t)&&OP(e,t,r);let i=n;if(a){const e=TP(t);i=(null==e?void 0:e.some((e=>Kf(e.value,n))))?n:void 0}const s=t[id]&&"always"===(null==o?void 0:o.constAsDefaults);s&&(i=t.const);return i}(e,p,a,o,l);ed(o)||(b=CP(b,n,r,!0))}return b}function LP(e,t,r={},n){switch(dP(t)){case"object":return function(e,t,{rawFormData:r,rootSchema:n={},includeUndefinedValues:o=!1,_recurseList:a=[],experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:s,required:l,shouldMergeDefaultsIntoFormData:c}={},u){{const d=ed(r)?r:{},f=t,p="populateDefaults"===(null==i?void 0:i.allOf)&&od in f?pP(e,f,n,d,s):f,m=p[id],h=Object.keys(p.properties||{}).reduce(((t,r)=>{var f;const h=th(p,[vd,r]),v=ed(m)&&void 0!==m[r],y=(ed(h)&&id in h||v)&&"never"!==(null==i?void 0:i.constAsDefaults)&&!RP(h);return DP(t,r,zP(e,h,{rootSchema:n,_recurseList:a,experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:s,includeUndefinedValues:!0===o,parentDefaults:th(u,[r]),rawFormData:th(d,[r]),required:null===(f=p.required)||void 0===f?void 0:f.includes(r),shouldMergeDefaultsIntoFormData:c}),o,l,p.required,i,y),t}),{});if(p.additionalProperties){const t=ed(p.additionalProperties)?p.additionalProperties:{},r=new Set;ed(u)&&Object.keys(u).filter((e=>!p.properties||!p.properties[e])).forEach((e=>r.add(e)));const f=[];Object.keys(d).filter((e=>!p.properties||!p.properties[e])).forEach((e=>{r.add(e),f.push(e)})),r.forEach((r=>{var m;const v=zP(e,t,{rootSchema:n,_recurseList:a,experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:s,includeUndefinedValues:!0===o,parentDefaults:th(u,[r]),rawFormData:th(d,[r]),required:null===(m=p.required)||void 0===m?void 0:m.includes(r),shouldMergeDefaultsIntoFormData:c});DP(h,r,v,o,l,f)}))}return h}}(e,t,r,n);case"array":return function(e,t,{rawFormData:r,rootSchema:n={},_recurseList:o=[],experimental_defaultFormStateBehavior:a,experimental_customMergeAllOf:i,required:s,shouldMergeDefaultsIntoFormData:l}={},c){var u,d;const f=t,p=null!==(u=null==a?void 0:a.arrayMinItems)&&void 0!==u?u:{},{populate:m,mergeExtraDefaults:h}=p,v="never"===m,y="requiredOnly"===m,g="all"===m||!v&&!y,b=null!==(d=null==p?void 0:p.computeSkipPopulate)&&void 0!==d?d:()=>!1,w="skipEmptyDefaults"===(null==a?void 0:a.emptyObjectFields)?void 0:[];if(Array.isArray(c)&&(c=c.map(((t,r)=>{const c=FP(f,MP.Fallback,r);return zP(e,c,{rootSchema:n,_recurseList:o,experimental_defaultFormStateBehavior:a,experimental_customMergeAllOf:i,parentDefaults:t,required:s,shouldMergeDefaultsIntoFormData:l})}))),Array.isArray(r)){const t=FP(f);if(v)c=r;else{const u=r.map(((r,u)=>zP(e,t,{rootSchema:n,_recurseList:o,experimental_defaultFormStateBehavior:a,experimental_customMergeAllOf:i,rawFormData:r,parentDefaults:th(c,[u]),required:s,shouldMergeDefaultsIntoFormData:l})));c=CP(c,u,(y&&s||g)&&h)}}if(!1===(ed(f)&&id in f&&"never"!==(null==a?void 0:a.constAsDefaults))){if(v)return null!=c?c:w;if(y&&!s)return c||void 0}const S=Array.isArray(c)?c.length:0;if(!f.minItems||NP(e,f,n,i)||b(e,f,n)||f.minItems<=S)return c||w;const x=c||[],$=FP(f,MP.Invert),k=$.default,_=new Array(f.minItems-S).fill(zP(e,$,{parentDefaults:k,rootSchema:n,_recurseList:o,experimental_defaultFormStateBehavior:a,experimental_customMergeAllOf:i,required:s,shouldMergeDefaultsIntoFormData:l}));return x.concat(_)}(e,t,r,n)}}function VP(e,t,r,n,o=!1,a,i){if(!ed(t))throw new Error("Invalid schema: "+t);const s=zP(e,pP(e,t,n,r,i),{rootSchema:n,includeUndefinedValues:o,experimental_defaultFormStateBehavior:a,experimental_customMergeAllOf:i,rawFormData:r,shouldMergeDefaultsIntoFormData:!0});if(ed(r)||Array.isArray(r)){const{mergeDefaultsIntoFormData:e}=a||{};return CP(s,r,!0,"useDefaultIfFormDataUndefined"===e,!0)}return s}function BP(e={}){return"widget"in kd(e)&&"hidden"!==kd(e).widget}function UP(e,t,r={},n,o){if("files"===r[xd])return!0;if(t.items){const r=pP(e,t.items,n,void 0,o);return"string"===r.type&&"data-url"===r.format}return!1}!function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"}(MP||(MP={}));const WP=Symbol("no Value");function qP(e,t,r,n,o={},a){let i;if(hw(r,vd)){const s={};if(hw(n,vd)){const e=th(n,vd,{});Object.keys(e).forEach((e=>{hw(o,e)&&(s[e]=void 0)}))}const l=Object.keys(th(r,vd,{})),c={};l.forEach((i=>{const l=th(o,i);let u=th(n,[vd,i],{}),d=th(r,[vd,i],{});hw(u,bd)&&(u=pP(e,u,t,l,a)),hw(d,bd)&&(d=pP(e,d,t,l,a));const f=th(u,"type"),p=th(d,"type");if(!f||f===p)if(hw(s,i)&&delete s[i],"object"===p||"array"===p&&Array.isArray(l)){const r=qP(e,t,d,u,l,a);void 0===r&&"array"!==p||(c[i]=r)}else{const e=th(d,"default",WP),t=th(u,"default",WP);e!==WP&&e!==l&&(t===l?s[i]=e:!0===th(d,"readOnly")&&(s[i]=void 0));const r=th(d,"const",WP),n=th(u,"const",WP);r!==WP&&r!==l&&(s[i]=n===l?r:void 0)}})),i={..."string"==typeof o||Array.isArray(o)?void 0:o,...s,...c}}else if("array"===th(n,"type")&&"array"===th(r,"type")&&Array.isArray(o)){let s=th(n,"items"),l=th(r,"items");if("object"!=typeof s||"object"!=typeof l||Array.isArray(s)||Array.isArray(l))"boolean"==typeof s&&"boolean"==typeof l&&s===l&&(i=o);else{hw(s,bd)&&(s=pP(e,s,t,o,a)),hw(l,bd)&&(l=pP(e,l,t,o,a));const n=th(s,"type"),c=th(l,"type");if(!n||n===c){const n=th(r,"maxItems",-1);i="object"===c?o.reduce(((r,o)=>{const i=qP(e,t,l,s,o,a);return void 0!==i&&(n<0||r.length<n)&&r.push(i),r}),[]):n>0&&o.length>n?o.slice(0,n):o}}}return i}function KP(e,t,r,n,o,a,i,s=[],l){if(bd in t||ld in t||od in t){const c=pP(e,t,a,i,l);if(-1===s.findIndex((e=>Kf(e,c))))return KP(e,c,r,n,o,a,i,s.concat(c),l)}if(pd in t&&!th(t,[pd,bd]))return KP(e,th(t,pd),r,n,o,a,i,s,l);const c={$id:o||r};if("object"===dP(t)&&vd in t)for(const o in t.properties){const u=th(t,[vd,o]),d=c[dd]+n+o;c[o]=KP(e,ed(u)?u:{},r,n,d,a,th(i,[o]),s,l)}return c}function HP(e,t,r,n,o,a="root",i="_",s){return KP(e,t,a,i,r,n,o,void 0,s)}function GP(e,t,r,n,o,a=[],i){if(bd in t||ld in t||od in t){const s=pP(e,t,n,o,i);if(-1===a.findIndex((e=>Kf(e,s))))return GP(e,s,r,n,o,a.concat(s),i)}let s={[md]:r.replace(/^\./,"")};if(hd in t||ad in t){const l=hd in t?t.oneOf:t.anyOf,c=aP(t),u=l[kP(e,n,o,l,0,c,i)];s={...s,...GP(e,u,r,n,o,a,i)}}if(nd in t&&!1!==t[nd]&&Fx(s,wd,!0),pd in t&&Array.isArray(o)){const{items:l,additionalItems:c}=t;Array.isArray(l)?o.forEach(((t,o)=>{l[o]?s[o]=GP(e,l[o],`${r}.${o}`,n,t,a,i):c?s[o]=GP(e,c,`${r}.${o}`,n,t,a,i):console.warn(`Unable to generate path schema for "${r}.${o}". No schema defined for it`)})):o.forEach(((t,o)=>{s[o]=GP(e,l,`${r}.${o}`,n,t,a,i)}))}else if(vd in t)for(const l in t.properties){const c=th(t,[vd,l]);s[l]=GP(e,c,`${r}.${l}`,n,th(o,[l]),a,i)}return s}function QP(e,t,r="",n,o,a){return GP(e,t,r,n,o,void 0,a)}class YP{constructor(e,t,r,n){this.rootSchema=t,this.validator=e,this.experimental_defaultFormStateBehavior=r,this.experimental_customMergeAllOf=n}getValidator(){return this.validator}doesSchemaUtilsDiffer(e,t,r={},n){return!(!e||!t)&&(this.validator!==e||!Kf(this.rootSchema,t)||!Kf(this.experimental_defaultFormStateBehavior,r)||this.experimental_customMergeAllOf!==n)}getDefaultFormState(e,t,r=!1){return VP(this.validator,e,t,this.rootSchema,r,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf)}getDisplayLabel(e,t,r){return function(e,t,r={},n,o,a){const i=kd(r,o),{label:s=!0}=i;let l=!!s;const c=dP(t);return"array"===c&&(l=NP(e,t,n,a)||UP(e,t,r,n,a)||BP(r)),"object"===c&&(l=!1),"boolean"!==c||r[xd]||(l=!1),r["ui:field"]&&(l=!1),l}(this.validator,e,t,this.rootSchema,r,this.experimental_customMergeAllOf)}getClosestMatchingOption(e,t,r,n){return kP(this.validator,this.rootSchema,e,t,r,n,this.experimental_customMergeAllOf)}getFirstMatchingOption(e,t,r){return jx(this.validator,e,t,this.rootSchema,r)}getMatchingOption(e,t,r){return Px(this.validator,e,t,this.rootSchema,r)}isFilesArray(e,t){return UP(this.validator,e,t,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(e){return NP(this.validator,e,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(e){return OP(this.validator,e,this.rootSchema,this.experimental_customMergeAllOf)}mergeValidationData(e,t){return function(e,t,r){if(!r)return t;const{errors:n,errorSchema:o}=t;let a=e.toErrorList(r),i=r;return mv(o)||(i=PP(o,r,!0),a=[...n].concat(a)),{errorSchema:i,errors:a}}(this.validator,e,t)}retrieveSchema(e,t){return pP(this.validator,e,this.rootSchema,t,this.experimental_customMergeAllOf)}sanitizeDataForNewSchema(e,t,r){return qP(this.validator,this.rootSchema,e,t,r,this.experimental_customMergeAllOf)}toIdSchema(e,t,r,n="root",o="_"){return HP(this.validator,e,t,this.rootSchema,r,n,o,this.experimental_customMergeAllOf)}toPathSchema(e,t,r){return QP(this.validator,e,t,this.rootSchema,r,this.experimental_customMergeAllOf)}}function JP(e,t){let r=String(e);for(;r.length<t;)r="0"+r;return r}function XP(e,t){if(e<=0&&t<=0)e=(new Date).getFullYear()+e,t=(new Date).getFullYear()+t;else if(e<0||t<0)throw new Error(`Both start (${e}) and stop (${t}) must both be <= 0 or > 0, got one of each`);if(e>t)return XP(t,e).reverse();const r=[];for(let n=e;n<=t;n++)r.push({value:n,label:JP(n,2)});return r}function ZP(e,t){return function(e,t){let r=e;if(Array.isArray(t)){const e=r.split(/(%\d)/);t.forEach(((t,r)=>{const n=e.findIndex((e=>e===`%${r+1}`));n>=0&&(e[n]=t)})),r=e.join("")}return r}(e,t)}function ej(e,t=[],r){if(Array.isArray(e))return e.map((e=>ej(e,t))).filter((e=>e!==r));const n=""===e||null===e?-1:Number(e),o=t[n];return o?o.value:r}function tj(e,t,r=[]){const n=ej(e,r);return Array.isArray(t)?t.filter((e=>!Kf(e,n))):Kf(n,t)?void 0:t}function rj(e,t){return Array.isArray(t)?t.some((t=>Kf(t,e))):Kf(t,e)}function nj(e,t=[],r=!1){const n=t.map(((t,r)=>rj(t.value,e)?String(r):void 0)).filter((e=>void 0!==e));return r?n:n[0]}function oj(e,t,r=[]){const n=ej(e,r);if(!EP(n)){const e=r.findIndex((e=>n===e.value)),o=r.map((({value:e})=>e));return t.slice(0,e).concat(n,t.slice(e)).sort(((e,t)=>Number(o.indexOf(e)>o.indexOf(t))))}return t}var aj=Ix;var ij=r((function(e,t,r,n){return n="function"==typeof n?n:void 0,null==e?e:aj(e,t,r,n)}));class sj{constructor(e){this.errorSchema={},this.resetAllErrors(e)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(e){let t=Array.isArray(e)&&e.length>0||"string"==typeof e?th(this.errorSchema,e):this.errorSchema;return!t&&e&&(t={},ij(this.errorSchema,e,t,Object)),t}resetAllErrors(e){return this.errorSchema=e?hk(e):{},this}addErrors(e,t){const r=this.getOrCreateErrorBlock(t);let n=th(r,ud);return Array.isArray(n)||(n=[],r[ud]=n),Array.isArray(e)?Fx(r,ud,[...new Set([...n,...e])]):Fx(r,ud,[...new Set([...n,e])]),this}setErrors(e,t){const r=this.getOrCreateErrorBlock(t),n=Array.isArray(e)?[...new Set([...e])]:[e];return Fx(r,ud,n),this}clearErrors(e){const t=this.getOrCreateErrorBlock(e);return Fx(t,ud,[]),this}}function lj(e,t,r=[1900,(new Date).getFullYear()+2],n="YMD"){const{day:o,month:a,year:i,hour:s,minute:l,second:c}=e,u={type:"day",range:[1,31],value:o},d={type:"month",range:[1,12],value:a},f={type:"year",range:r,value:i},p=[];switch(n){case"MDY":p.push(d,u,f);break;case"DMY":p.push(u,d,f);break;default:p.push(f,d,u)}return t&&p.push({type:"hour",range:[0,23],value:s},{type:"minute",range:[0,59],value:l},{type:"second",range:[0,59],value:c}),p}function cj(e){const t={};return e.multipleOf&&(t.step=e.multipleOf),(e.minimum||0===e.minimum)&&(t.min=e.minimum),(e.maximum||0===e.maximum)&&(t.max=e.maximum),t}function uj(e,t,r={},n=!0){const o={type:t||"text",...cj(e)};return r.inputType?o.type=r.inputType:t||("number"===e.type?(o.type="number",n&&void 0===o.step&&(o.step="any")):"integer"===e.type&&(o.type="number",void 0===o.step&&(o.step=1))),r.autocomplete&&(o.autoComplete=r.autocomplete),r.accept&&(o.accept=r.accept),o}const dj={props:{disabled:!1},submitText:"Submit",norender:!1};function fj(e={}){const t=kd(e);if(t&&t[gd]){const e=t[gd];return{...dj,...e}}return dj}function pj(e,t,r={}){const{templates:n}=t;return"ButtonTemplates"===e?n[e]:r[e]||n[e]}var mj={exports:{}},hj={},vj=L,yj=Symbol.for("react.element"),gj=Symbol.for("react.fragment"),bj=Object.prototype.hasOwnProperty,wj=vj.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Sj={key:!0,ref:!0,__self:!0,__source:!0};function xj(e,t,r){var n,o={},a=null,i=null;for(n in void 0!==r&&(a=""+r),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(i=t.ref),t)bj.call(t,n)&&!Sj.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:yj,type:e,key:a,ref:i,props:o,_owner:wj.current}}hj.Fragment=gj,hj.jsx=xj,hj.jsxs=xj,mj.exports=hj;var $j,kj=mj.exports,_j={exports:{}},Ej={},Cj=Symbol.for("react.element"),Pj=Symbol.for("react.portal"),jj=Symbol.for("react.fragment"),Oj=Symbol.for("react.strict_mode"),Nj=Symbol.for("react.profiler"),Rj=Symbol.for("react.provider"),Aj=Symbol.for("react.context"),Tj=Symbol.for("react.server_context"),Ij=Symbol.for("react.forward_ref"),Mj=Symbol.for("react.suspense"),Fj=Symbol.for("react.suspense_list"),Dj=Symbol.for("react.memo"),zj=Symbol.for("react.lazy"),Lj=Symbol.for("react.offscreen");function Vj(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Cj:switch(e=e.type){case jj:case Nj:case Oj:case Mj:case Fj:return e;default:switch(e=e&&e.$$typeof){case Tj:case Aj:case Ij:case zj:case Dj:case Rj:return e;default:return t}}case Pj:return t}}}$j=Symbol.for("react.module.reference"),Ej.ContextConsumer=Aj,Ej.ContextProvider=Rj,Ej.Element=Cj,Ej.ForwardRef=Ij,Ej.Fragment=jj,Ej.Lazy=zj,Ej.Memo=Dj,Ej.Portal=Pj,Ej.Profiler=Nj,Ej.StrictMode=Oj,Ej.Suspense=Mj,Ej.SuspenseList=Fj,Ej.isAsyncMode=function(){return!1},Ej.isConcurrentMode=function(){return!1},Ej.isContextConsumer=function(e){return Vj(e)===Aj},Ej.isContextProvider=function(e){return Vj(e)===Rj},Ej.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Cj},Ej.isForwardRef=function(e){return Vj(e)===Ij},Ej.isFragment=function(e){return Vj(e)===jj},Ej.isLazy=function(e){return Vj(e)===zj},Ej.isMemo=function(e){return Vj(e)===Dj},Ej.isPortal=function(e){return Vj(e)===Pj},Ej.isProfiler=function(e){return Vj(e)===Nj},Ej.isStrictMode=function(e){return Vj(e)===Oj},Ej.isSuspense=function(e){return Vj(e)===Mj},Ej.isSuspenseList=function(e){return Vj(e)===Fj},Ej.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===jj||e===Nj||e===Oj||e===Mj||e===Fj||e===Lj||"object"==typeof e&&null!==e&&(e.$$typeof===zj||e.$$typeof===Dj||e.$$typeof===Rj||e.$$typeof===Aj||e.$$typeof===Ij||e.$$typeof===$j||void 0!==e.getModuleId)},Ej.typeOf=Vj,_j.exports=Ej;var Bj=r(_j.exports);const Uj={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",time:"TimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function Wj(e,t,r={}){const n=dP(e);if("function"==typeof t||t&&Bj.isForwardRef(L.createElement(t))||Bj.isMemo(t))return function(e){let t=th(e,"MergedWidget");if(!t){const r=e.defaultProps&&e.defaultProps.options||{};t=({options:t,...n})=>kj.jsx(e,{options:{...r,...t},...n}),Fx(e,"MergedWidget",t)}return t}(t);if("string"!=typeof t)throw new Error("Unsupported widget definition: "+typeof t);if(t in r){return Wj(e,r[t],r)}if("string"==typeof n){if(!(n in Uj))throw new Error(`No widget for type '${n}'`);if(t in Uj[n]){return Wj(e,r[Uj[n][t]],r)}}throw new Error(`No widget '${t}' for type '${n}'`)}function qj(e,t){return`${xw(e)?e:e[dd]}__${t}`}function Kj(e){return qj(e,"description")}function Hj(e){return qj(e,"error")}function Gj(e){return qj(e,"examples")}function Qj(e){return qj(e,"help")}function Yj(e){return qj(e,"title")}function Jj(e,t=!1){const r=t?` ${Gj(e)}`:"";return`${Hj(e)} ${Kj(e)} ${Qj(e)}${r}`}function Xj(e,t){return`${e}-${t}`}function Zj(e,t,r){return t?r:e}function eO(e,t=!0){if(!e)return{year:-1,month:-1,day:-1,hour:t?-1:0,minute:t?-1:0,second:t?-1:0};const r=new Date(e);if(Number.isNaN(r.getTime()))throw new Error("Unable to parse date "+e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:t?r.getUTCHours():0,minute:t?r.getUTCMinutes():0,second:t?r.getUTCSeconds():0}}function tO(e){if(e.const)return!0;if(e.enum&&1===e.enum.length&&!0===e.enum[0])return!0;if(e.anyOf&&1===e.anyOf.length)return tO(e.anyOf[0]);if(e.oneOf&&1===e.oneOf.length)return tO(e.oneOf[0]);if(e.allOf){const t=e=>tO(e);return e.allOf.some(t)}return!1}function rO(e,t=!0){const{year:r,month:n,day:o,hour:a=0,minute:i=0,second:s=0}=e,l=Date.UTC(r,n-1,o,a,i,s),c=new Date(l).toJSON();return t?c:c.slice(0,10)}function nO(e,t=[]){if(!e)return[];let r=[];return ud in e&&(r=r.concat(e[ud].map((e=>{const r=`.${t.join(".")}`;return{property:r,message:e,stack:`${r} ${e}`}})))),Object.keys(e).reduce(((r,n)=>{if(n!==ud){const o=e[n];ef(o)&&(r=r.concat(nO(o,[...t,n])))}return r}),r)}var oO=Tm,aO=_y,iO=Hf,sO=Yf,lO=Am,cO=Qm,uO=Bm;var dO=r((function(e){return iO(e)?oO(e,cO):sO(e)?[e]:aO(lO(uO(e)))}));function fO(e){return Object.keys(e).reduce(((t,r)=>{if("addError"===r)return t;{const n=e[r];return ef(n)?{...t,[r]:fO(n)}:{...t,[r]:n}}}),{})}function pO(e){if(!e)return"";const t=new Date(e);return`${JP(t.getFullYear(),4)}-${JP(t.getMonth()+1,2)}-${JP(t.getDate(),2)}T${JP(t.getHours(),2)}:${JP(t.getMinutes(),2)}:${JP(t.getSeconds(),2)}.${JP(t.getMilliseconds(),3)}`}function mO(e,t){if(!t)return e;const{errors:r,errorSchema:n}=e;let o=nO(t),a=t;return mv(n)||(a=PP(n,t,!0),o=[...r].concat(o)),{errorSchema:a,errors:o}}function hO(e){return Array.isArray(e)?function(e){for(let t=0;t<e.length;t++)e[t]=hO(e[t]);return e}([...e]):np(e)?function(e){for(const t in e){const r=e,n=r[t];t===bd&&"string"==typeof n&&n.startsWith("#")?r[t]=Sd+n:r[t]=hO(n)}return e}({...e}):e}var vO=Xm,yO=Ix,gO=Hm;var bO=function(e,t,r){for(var n=-1,o=t.length,a={};++n<o;){var i=t[n],s=vO(e,i);r(s,i)&&yO(a,gO(i,e),s)}return a},wO=Tm,SO=QS,xO=bO,$O=tg;var kO,_O=r((function(e,t){if(null==e)return{};var r=wO($O(e),(function(e){return[e]}));return t=SO(t),xO(e,r,(function(e,r){return t(e,r[0])}))})),EO=DE,CO=jb,PO=t$,jO=N$((function(e,t){return PO(e)?EO(e,CO(t,1,PO,!0)):[]})),OO=r(jO);!function(e){e.ArrayItemTitle="Item",e.MissingItems="Missing items definition",e.YesLabel="Yes",e.NoLabel="No",e.CloseLabel="Close",e.ErrorsLabel="Errors",e.NewStringDefault="New Value",e.AddButton="Add",e.AddItemButton="Add Item",e.CopyButton="Copy",e.MoveDownButton="Move down",e.MoveUpButton="Move up",e.RemoveButton="Remove",e.NowLabel="Now",e.ClearLabel="Clear",e.AriaDateLabel="Select a date",e.PreviewLabel="Preview",e.DecrementAriaLabel="Decrease value by 1",e.IncrementAriaLabel="Increase value by 1",e.UnknownFieldType="Unknown field type %1",e.OptionPrefix="Option %1",e.TitleOptionPrefix="%1 option %2",e.KeyLabel="%1 Key",e.InvalidObjectField='Invalid "%1" object field configuration: _%2_.',e.UnsupportedField="Unsupported field schema.",e.UnsupportedFieldWithId="Unsupported field schema for field `%1`.",e.UnsupportedFieldWithReason="Unsupported field schema: _%1_.",e.UnsupportedFieldWithIdAndReason="Unsupported field schema for field `%1`: _%2_.",e.FilesInfo="**%1** (%2, %3 bytes)"}(kO||(kO={}));var NO,RO={exports:{}},AO={},TO={},IO={},MO={},FO={},DO={};function zO(){return NO||(NO=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(t){if(super(),!e.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function o(e,...t){const r=[e[0]];let o=0;for(;o<t.length;)s(r,t[o]),r.push(e[++o]);return new n(r)}e._Code=n,e.nil=new n(""),e._=o;const a=new n("+");function i(e,...t){const r=[c(e[0])];let o=0;for(;o<t.length;)r.push(a),s(r,t[o]),r.push(a,c(e[++o]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===a){const r=l(e[t-1],e[t+1]);if(void 0!==r){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}(r),new n(r)}function s(e,t){t instanceof n?e.push(...t._items):t instanceof r?e.push(t):e.push(function(e){return"number"==typeof e||"boolean"==typeof e||null===e?e:c(Array.isArray(e)?e.join(","):e)}(t))}function l(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof r||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof r?void 0:`"${e}${t.slice(1)}`}function c(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.str=i,e.addCodeArg=s,e.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:i`${e}${t}`},e.stringify=function(e){return new n(c(e))},e.safeStringify=c,e.getProperty=function(t){return"string"==typeof t&&e.IDENTIFIER.test(t)?new n(`.${t}`):o`[${t}]`},e.getEsmExportName=function(t){if("string"==typeof t&&e.IDENTIFIER.test(t))return new n(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)},e.regexpCode=function(e){return new n(e.toString())}}(DO)),DO}var LO,VO,BO={};function UO(){return LO||(LO=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=zO();class r extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var n;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(n=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class o{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,r;if((null===(r=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===r?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}e.Scope=o;class a extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e,this.scopePath=t._`.${new t.Name(r)}[${n}]`}}e.ValueScopeName=a;const i=t._`\n`;e.ValueScope=class extends o{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?i:t.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const n=this.toName(e),{prefix:o}=n,a=null!==(r=t.key)&&void 0!==r?r:t.ref;let i=this._values[o];if(i){const e=i.get(a);if(e)return e}else i=this._values[o]=new Map;i.set(a,n);const s=this._scope[o]||(this._scope[o]=[]),l=s.length;return s[l]=t.ref,n.setValue(t,{property:o,itemIndex:l}),n}getValue(e,t){const r=this._values[e];if(r)return r.get(t)}scopeRefs(e,r=this._values){return this._reduceValues(r,(r=>{if(void 0===r.scopePath)throw new Error(`CodeGen: name "${r}" has no value`);return t._`${e}${r.scopePath}`}))}scopeCode(e=this._values,t,r){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,r)}_reduceValues(o,a,i={},s){let l=t.nil;for(const c in o){const u=o[c];if(!u)continue;const d=i[c]=i[c]||new Map;u.forEach((o=>{if(d.has(o))return;d.set(o,n.Started);let i=a(o);if(i){const r=this.opts.es5?e.varKinds.var:e.varKinds.const;l=t._`${l}${r} ${o} = ${i};${this.opts._n}`}else{if(!(i=null==s?void 0:s(o)))throw new r(o);l=t._`${l}${i}${this.opts._n}`}d.set(o,n.Completed)}))}return l}}}(BO)),BO}function WO(){return VO||(VO=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=zO(),r=UO();var n=zO();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var o=UO();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(e,t){return this}}class i extends a{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){const n=e?r.varKinds.var:this.varKind,o=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=j(this.rhs,e,t)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof t.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=j(this.rhs,e,r),this}get names(){return P(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}}class l extends s{constructor(e,t,r,n){super(e,r,n),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class c extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class u extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class d extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class f extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=j(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class p extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,r)=>t+r.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:r}=this;let n=r.length;for(;n--;){const o=r[n];o.optimizeNames(e,t)||(O(e,o.names),r.splice(n,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>C(e,t.names)),{})}}class m extends p{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class h extends p{}class v extends m{}v.kind="else";class y extends m{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof y?t:t.nodes:this.nodes.length?this:new y(N(e),t instanceof y?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=j(this.condition,e,t),this}get names(){const e=super.names;return P(e,this.condition),this.else&&C(e,this.else.names),e}}y.kind="if";class g extends m{}g.kind="for";class b extends g{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=j(this.iteration,e,t),this}get names(){return C(super.names,this.iteration.names)}}class w extends g{constructor(e,t,r,n){super(),this.varKind=e,this.name=t,this.from=r,this.to=n}render(e){const t=e.es5?r.varKinds.var:this.varKind,{name:n,from:o,to:a}=this;return`for(${t} ${n}=${o}; ${n}<${a}; ${n}++)`+super.render(e)}get names(){const e=P(super.names,this.from);return P(e,this.to)}}class S extends g{constructor(e,t,r,n){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=j(this.iterable,e,t),this}get names(){return C(super.names,this.iterable.names)}}class x extends m{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}x.kind="func";class $ extends p{render(e){return"return "+super.render(e)}}$.kind="return";class k extends m{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,n;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(n=this.finally)||void 0===n||n.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&C(e,this.catch.names),this.finally&&C(e,this.finally.names),e}}class _ extends m{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}_.kind="catch";class E extends m{render(e){return"finally"+super.render(e)}}E.kind="finally";function C(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function P(e,r){return r instanceof t._CodeOrName?C(e,r.names):e}function j(e,r,n){return e instanceof t.Name?o(e):function(e){return e instanceof t._Code&&e._items.some((e=>e instanceof t.Name&&1===r[e.str]&&void 0!==n[e.str]))}(e)?new t._Code(e._items.reduce(((e,r)=>(r instanceof t.Name&&(r=o(r)),r instanceof t._Code?e.push(...r._items):e.push(r),e)),[])):e;function o(e){const t=n[e.str];return void 0===t||1!==r[e.str]?e:(delete r[e.str],t)}}function O(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function N(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:t._`!${I(e)}`}e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new r.Scope({parent:e}),this._nodes=[new h]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){const o=this._scope.toName(t);return void 0!==r&&n&&(this._constants[o.str]=r),this._leafNode(new i(e,o,r)),o}const(e,t,n){return this._def(r.varKinds.const,e,t,n)}let(e,t,n){return this._def(r.varKinds.let,e,t,n)}var(e,t,n){return this._def(r.varKinds.var,e,t,n)}assign(e,t,r){return this._leafNode(new s(e,t,r))}add(t,r){return this._leafNode(new l(t,e.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==t.nil&&this._leafNode(new f(e)),this}object(...e){const r=["{"];for(const[n,o]of e)r.length>1&&r.push(","),r.push(n),(n!==o||this.opts.es5)&&(r.push(":"),(0,t.addCodeArg)(r,o));return r.push("}"),new t._Code(r)}if(e,t,r){if(this._blockNode(new y(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new y(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(y,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new b(e),t)}forRange(e,t,n,o,a=(this.opts.es5?r.varKinds.var:r.varKinds.let)){const i=this._scope.toName(e);return this._for(new w(a,i,t,n),(()=>o(i)))}forOf(e,n,o,a=r.varKinds.const){const i=this._scope.toName(e);if(this.opts.es5){const e=n instanceof t.Name?n:this.var("_arr",n);return this.forRange("_i",0,t._`${e}.length`,(r=>{this.var(i,t._`${e}[${r}]`),o(i)}))}return this._for(new S("of",a,i,n),(()=>o(i)))}forIn(e,n,o,a=(this.opts.es5?r.varKinds.var:r.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,t._`Object.keys(${n})`,o);const i=this._scope.toName(e);return this._for(new S("in",a,i,n),(()=>o(i)))}endFor(){return this._endBlockNode(g)}label(e){return this._leafNode(new c(e))}break(e){return this._leafNode(new u(e))}return(e){const t=new $;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode($)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new k;if(this._blockNode(n),this.code(e),t){const e=this.name("e");this._currNode=n.catch=new _(e),t(e)}return r&&(this._currNode=n.finally=new E,this.code(r)),this._endBlockNode(_,E)}throw(e){return this._leafNode(new d(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,r=t.nil,n,o){return this._blockNode(new x(e,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(x)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof y))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},e.not=N;const R=T(e.operators.AND);e.and=function(...e){return e.reduce(R)};const A=T(e.operators.OR);function T(e){return(r,n)=>r===t.nil?n:n===t.nil?r:t._`${I(r)} ${e} ${I(n)}`}function I(e){return e instanceof t.Name?e:t._`(${e})`}e.or=function(...e){return e.reduce(A)}}(FO)),FO}var qO={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=WO(),r=zO();function n(e,t=e.schema){const{opts:r,self:n}=e;if(!r.strictSchema)return;if("boolean"==typeof t)return;const o=n.RULES.keywords;for(const r in t)o[r]||f(e,`unknown keyword: "${r}"`)}function o(e,t){if("boolean"==typeof e)return!e;for(const r in e)if(t[r])return!0;return!1}function a(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function i(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function s({mergeNames:e,mergeToName:r,mergeValues:n,resultToName:o}){return(a,i,s,l)=>{const c=void 0===s?i:s instanceof t.Name?(i instanceof t.Name?e(a,i,s):r(a,i,s),s):i instanceof t.Name?(r(a,s,i),i):n(i,s);return l!==t.Name||c instanceof t.Name?c:o(a,c)}}function l(e,r){if(!0===r)return e.var("props",!0);const n=e.var("props",t._`{}`);return void 0!==r&&c(e,n,r),n}function c(e,r,n){Object.keys(n).forEach((n=>e.assign(t._`${r}${(0,t.getProperty)(n)}`,!0)))}e.toHash=function(e){const t={};for(const r of e)t[r]=!0;return t},e.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(n(e,t),!o(t,e.self.RULES.all))},e.checkUnknownRules=n,e.schemaHasRules=o,e.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const r in e)if("$ref"!==r&&t.all[r])return!0;return!1},e.schemaRefOrVal=function({topSchemaRef:e,schemaPath:r},n,o,a){if(!a){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return t._`${n}`}return t._`${e}${r}${(0,t.getProperty)(o)}`},e.unescapeFragment=function(e){return i(decodeURIComponent(e))},e.escapeFragment=function(e){return encodeURIComponent(a(e))},e.escapeJsonPointer=a,e.unescapeJsonPointer=i,e.eachItem=function(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)},e.mergeEvaluated={props:s({mergeNames:(e,r,n)=>e.if(t._`${n} !== true && ${r} !== undefined`,(()=>{e.if(t._`${r} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,t._`${n} || {}`).code(t._`Object.assign(${n}, ${r})`)))})),mergeToName:(e,r,n)=>e.if(t._`${n} !== true`,(()=>{!0===r?e.assign(n,!0):(e.assign(n,t._`${n} || {}`),c(e,n,r))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:l}),items:s({mergeNames:(e,r,n)=>e.if(t._`${n} !== true && ${r} !== undefined`,(()=>e.assign(n,t._`${r} === true ? true : ${n} > ${r} ? ${n} : ${r}`))),mergeToName:(e,r,n)=>e.if(t._`${n} !== true`,(()=>e.assign(n,!0===r||t._`${n} > ${r} ? ${n} : ${r}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},e.evaluatedPropsToName=l,e.setEvaluated=c;const u={};var d;function f(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw new Error(t);e.self.logger.warn(t)}}e.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:u[t.code]||(u[t.code]=new r._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(d=e.Type||(e.Type={})),e.getErrorPath=function(e,r,n){if(e instanceof t.Name){const o=r===d.Num;return n?o?t._`"[" + ${e} + "]"`:t._`"['" + ${e} + "']"`:o?t._`"/" + ${e}`:t._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,t.getProperty)(e).toString():"/"+a(e)},e.checkStrictMode=f}(qO);var KO,HO,GO,QO={};function YO(){if(KO)return QO;KO=1,Object.defineProperty(QO,"__esModule",{value:!0});const e=WO(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return QO.default=t,QO}function JO(){return HO||(HO=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=WO(),r=qO,n=YO();function o(e,r){const o=e.const("err",r);e.if(t._`${n.default.vErrors} === null`,(()=>e.assign(n.default.vErrors,t._`[${o}]`)),t._`${n.default.vErrors}.push(${o})`),e.code(t._`${n.default.errors}++`)}function a(e,r){const{gen:n,validateName:o,schemaEnv:a}=e;a.$async?n.throw(t._`new ${e.ValidationError}(${r})`):(n.assign(t._`${o}.errors`,r),n.return(!1))}e.keywordError={message:({keyword:e})=>t.str`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:r})=>r?t.str`"${e}" keyword must be ${r} ($data)`:t.str`"${e}" keyword is invalid ($data)`},e.reportError=function(r,n=e.keywordError,i,l){const{it:c}=r,{gen:u,compositeRule:d,allErrors:f}=c,p=s(r,n,i);(null!=l?l:d||f)?o(u,p):a(c,t._`[${p}]`)},e.reportExtraError=function(t,r=e.keywordError,i){const{it:l}=t,{gen:c,compositeRule:u,allErrors:d}=l;o(c,s(t,r,i)),u||d||a(l,n.default.vErrors)},e.resetErrorsCount=function(e,r){e.assign(n.default.errors,r),e.if(t._`${n.default.vErrors} !== null`,(()=>e.if(r,(()=>e.assign(t._`${n.default.vErrors}.length`,r)),(()=>e.assign(n.default.vErrors,null)))))},e.extendErrors=function({gen:e,keyword:r,schemaValue:o,data:a,errsCount:i,it:s}){if(void 0===i)throw new Error("ajv implementation error");const l=e.name("err");e.forRange("i",i,n.default.errors,(i=>{e.const(l,t._`${n.default.vErrors}[${i}]`),e.if(t._`${l}.instancePath === undefined`,(()=>e.assign(t._`${l}.instancePath`,(0,t.strConcat)(n.default.instancePath,s.errorPath)))),e.assign(t._`${l}.schemaPath`,t.str`${s.errSchemaPath}/${r}`),s.opts.verbose&&(e.assign(t._`${l}.schema`,o),e.assign(t._`${l}.data`,a))}))};const i={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function s(e,r,o){const{createErrors:a}=e.it;return!1===a?t._`{}`:function(e,r,o={}){const{gen:a,it:s}=e,u=[l(s,o),c(e,o)];return function(e,{params:r,message:o},a){const{keyword:s,data:l,schemaValue:c,it:u}=e,{opts:d,propertyName:f,topSchemaRef:p,schemaPath:m}=u;a.push([i.keyword,s],[i.params,"function"==typeof r?r(e):r||t._`{}`]),d.messages&&a.push([i.message,"function"==typeof o?o(e):o]);d.verbose&&a.push([i.schema,c],[i.parentSchema,t._`${p}${m}`],[n.default.data,l]);f&&a.push([i.propertyName,f])}(e,r,u),a.object(...u)}(e,r,o)}function l({errorPath:e},{instancePath:o}){const a=o?t.str`${e}${(0,r.getErrorPath)(o,r.Type.Str)}`:e;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,a)]}function c({keyword:e,it:{errSchemaPath:n}},{schemaPath:o,parentSchema:a}){let s=a?n:t.str`${n}/${e}`;return o&&(s=t.str`${s}${(0,r.getErrorPath)(o,r.Type.Str)}`),[i.schemaPath,s]}}(MO)),MO}var XO={},ZO={};Object.defineProperty(ZO,"__esModule",{value:!0}),ZO.getRules=ZO.isJSONType=void 0;const eN=new Set(["string","number","integer","boolean","null","object","array"]);ZO.isJSONType=function(e){return"string"==typeof e&&eN.has(e)},ZO.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}};var tN,rN={};function nN(){if(tN)return rN;function e(e,r){return r.rules.some((r=>t(e,r)))}function t(e,t){var r;return void 0!==e[t.keyword]||(null===(r=t.definition.implements)||void 0===r?void 0:r.some((t=>void 0!==e[t])))}return tN=1,Object.defineProperty(rN,"__esModule",{value:!0}),rN.shouldUseRule=rN.shouldUseGroup=rN.schemaHasRulesForType=void 0,rN.schemaHasRulesForType=function({schema:t,self:r},n){const o=r.RULES.types[n];return o&&!0!==o&&e(t,o)},rN.shouldUseGroup=e,rN.shouldUseRule=t,rN}!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=ZO,r=nN(),n=JO(),o=WO(),a=qO;var i;function s(e){const r=Array.isArray(e)?e:e?[e]:[];if(r.every(t.isJSONType))return r;throw new Error("type must be JSONType or JSONType[]: "+r.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(i=e.DataType||(e.DataType={})),e.getSchemaTypes=function(e){const t=s(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},e.getJSONTypes=s,e.coerceAndCheckDataType=function(e,t){const{gen:n,data:a,opts:s}=e,c=function(e,t){return t?e.filter((e=>l.has(e)||"array"===t&&"array"===e)):[]}(t,s.coerceTypes),d=t.length>0&&!(0===c.length&&1===t.length&&(0,r.schemaHasRulesForType)(e,t[0]));if(d){const r=u(t,a,s.strictNumbers,i.Wrong);n.if(r,(()=>{c.length?function(e,t,r){const{gen:n,data:a,opts:i}=e,s=n.let("dataType",o._`typeof ${a}`),c=n.let("coerced",o._`undefined`);"array"===i.coerceTypes&&n.if(o._`${s} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,(()=>n.assign(a,o._`${a}[0]`).assign(s,o._`typeof ${a}`).if(u(t,a,i.strictNumbers),(()=>n.assign(c,a)))));n.if(o._`${c} !== undefined`);for(const e of r)(l.has(e)||"array"===e&&"array"===i.coerceTypes)&&d(e);function d(e){switch(e){case"string":return void n.elseIf(o._`${s} == "number" || ${s} == "boolean"`).assign(c,o._`"" + ${a}`).elseIf(o._`${a} === null`).assign(c,o._`""`);case"number":return void n.elseIf(o._`${s} == "boolean" || ${a} === null
20
+ */function Z(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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 ee=new Set,te={};function re(e,t){ne(e,t),ne(e+"Capture",t)}function ne(e,t){for(te[e]=t,e=0;e<t.length;e++)ee.add(t[e])}var oe=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),ae=Object.prototype.hasOwnProperty,ie=/^[: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]*$/,se={},le={};function ce(e,t,r,n,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){ue[e]=new ce(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];ue[t]=new ce(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){ue[e]=new ce(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){ue[e]=new ce(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){ue[e]=new ce(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){ue[e]=new ce(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){ue[e]=new ce(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){ue[e]=new ce(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){ue[e]=new ce(e,5,!1,e.toLowerCase(),null,!1,!1)}));var de=/[\-:]([a-z])/g;function fe(e){return e[1].toUpperCase()}function pe(e,t,r,n){var o=ue.hasOwnProperty(t)?ue[t]:null;(null!==o?0!==o.type:n||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.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,r,o,n)&&(r=null),n||null===o?function(e){return!!ae.call(le,e)||!ae.call(se,e)&&(ie.test(e)?le[e]=!0:(se[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=null===r?3!==o.type&&"":r:(t=o.attributeName,n=o.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(o=o.type)||4===o&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"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(de,fe);ue[t]=new ce(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(de,fe);ue[t]=new ce(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(de,fe);ue[t]=new ce(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){ue[e]=new ce(e,1,!1,e.toLowerCase(),null,!1,!1)})),ue.xlinkHref=new ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){ue[e]=new ce(e,1,!1,e.toLowerCase(),null,!0,!0)}));var me=J.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,he=Symbol.for("react.element"),ve=Symbol.for("react.portal"),ye=Symbol.for("react.fragment"),ge=Symbol.for("react.strict_mode"),be=Symbol.for("react.profiler"),we=Symbol.for("react.provider"),Se=Symbol.for("react.context"),xe=Symbol.for("react.forward_ref"),$e=Symbol.for("react.suspense"),ke=Symbol.for("react.suspense_list"),_e=Symbol.for("react.memo"),Ee=Symbol.for("react.lazy"),Ce=Symbol.for("react.offscreen"),Pe=Symbol.iterator;function je(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Pe&&e[Pe]||e["@@iterator"])?e:null}var Oe,Ne=Object.assign;function Re(e){if(void 0===Oe)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Oe=t&&t[1]||""}return"\n"+Oe+e}var Te=!1;function Ae(e,t){if(!e||Te)return"";Te=!0;var r=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 n=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){n=e}e.call(t.prototype)}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=n.stack.split("\n"),i=o.length-1,s=a.length-1;1<=i&&0<=s&&o[i]!==a[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==a[s]){if(1!==i||1!==s)do{if(i--,0>--s||o[i]!==a[s]){var l="\n"+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=i&&0<=s);break}}}finally{Te=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Re(e):""}function Ie(e){switch(e.tag){case 5:return Re(e.type);case 16:return Re("Lazy");case 13:return Re("Suspense");case 19:return Re("SuspenseList");case 0:case 2:case 15:return e=Ae(e.type,!1);case 11:return e=Ae(e.type.render,!1);case 1:return e=Ae(e.type,!0);default:return""}}function Me(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 ye:return"Fragment";case ve:return"Portal";case be:return"Profiler";case ge:return"StrictMode";case $e:return"Suspense";case ke:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Se:return(e.displayName||"Context")+".Consumer";case we:return(e._context.displayName||"Context")+".Provider";case xe:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case _e:return null!==(t=e.displayName||null)?t:Me(e.type)||"Memo";case Ee:t=e._payload,e=e._init;try{return Me(e(t))}catch(e){}}return null}function Fe(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 Me(t);case 8:return t===ge?"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 De(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ze(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Le(e){e._valueTracker||(e._valueTracker=function(e){var t=ze(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Ve(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=ze(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function Be(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 Ue(e,t){var r=t.checked;return Ne({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function We(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=De(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function qe(e,t){null!=(t=t.checked)&&pe(e,"checked",t,!1)}function Ke(e,t){qe(e,t);var r=De(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?Ge(e,t.type,r):t.hasOwnProperty("defaultValue")&&Ge(e,t.type,De(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function He(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function Ge(e,t,r){"number"===t&&Be(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Qe=Array.isArray;function Ye(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+De(r),t=null,o=0;o<e.length;o++){if(e[o].value===r)return e[o].selected=!0,void(n&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Je(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(Z(91));return Ne({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Xe(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(Z(92));if(Qe(r)){if(1<r.length)throw Error(Z(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:De(r)}}function Ze(e,t){var r=De(t.value),n=De(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function et(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function tt(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 rt(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?tt(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var nt,ot=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,r,n,o){MSApp.execUnsafeLocalFunction((function(){return e(t,r)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((nt=nt||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=nt.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function at(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var it={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},st=["Webkit","ms","Moz","O"];function lt(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||it.hasOwnProperty(e)&&it[e]?(""+t).trim():t+"px"}function ct(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),o=lt(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}Object.keys(it).forEach((function(e){st.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),it[t]=it[e]}))}));var ut=Ne({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 dt(e,t){if(t){if(ut[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(Z(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(Z(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(Z(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(Z(62))}}function ft(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 pt=null;function mt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ht=null,vt=null,yt=null;function gt(e){if(e=pa(e)){if("function"!=typeof ht)throw Error(Z(280));var t=e.stateNode;t&&(t=ha(t),ht(e.stateNode,e.type,t))}}function bt(e){vt?yt?yt.push(e):yt=[e]:vt=e}function wt(){if(vt){var e=vt,t=yt;if(yt=vt=null,gt(e),t)for(e=0;e<t.length;e++)gt(t[e])}}function St(e,t){return e(t)}function xt(){}var $t=!1;function kt(e,t,r){if($t)return e(t,r);$t=!0;try{return St(e,t,r)}finally{$t=!1,(null!==vt||null!==yt)&&(xt(),wt())}}function _t(e,t){var r=e.stateNode;if(null===r)return null;var n=ha(r);if(null===n)return null;r=n[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":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(Z(231,t,typeof r));return r}var Et=!1;if(oe)try{var Ct={};Object.defineProperty(Ct,"passive",{get:function(){Et=!0}}),window.addEventListener("test",Ct,Ct),window.removeEventListener("test",Ct,Ct)}catch(cL){Et=!1}function Pt(e,t,r,n,o,a,i,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(e){this.onError(e)}}var jt=!1,Ot=null,Nt=!1,Rt=null,Tt={onError:function(e){jt=!0,Ot=e}};function At(e,t,r,n,o,a,i,s,l){jt=!1,Ot=null,Pt.apply(Tt,arguments)}function It(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function Mt(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 Ft(e){if(It(e)!==e)throw Error(Z(188))}function Dt(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=It(e)))throw Error(Z(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(n=o.return)){r=n;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===r)return Ft(o),e;if(a===n)return Ft(o),t;a=a.sibling}throw Error(Z(188))}if(r.return!==n.return)r=o,n=a;else{for(var i=!1,s=o.child;s;){if(s===r){i=!0,r=o,n=a;break}if(s===n){i=!0,n=o,r=a;break}s=s.sibling}if(!i){for(s=a.child;s;){if(s===r){i=!0,r=a,n=o;break}if(s===n){i=!0,n=a,r=o;break}s=s.sibling}if(!i)throw Error(Z(189))}}if(r.alternate!==n)throw Error(Z(190))}if(3!==r.tag)throw Error(Z(188));return r.stateNode.current===r?e:t}(e),null!==e?zt(e):null}function zt(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=zt(e);if(null!==t)return t;e=e.sibling}return null}var Lt=X.unstable_scheduleCallback,Vt=X.unstable_cancelCallback,Bt=X.unstable_shouldYield,Ut=X.unstable_requestPaint,Wt=X.unstable_now,qt=X.unstable_getCurrentPriorityLevel,Kt=X.unstable_ImmediatePriority,Ht=X.unstable_UserBlockingPriority,Gt=X.unstable_NormalPriority,Qt=X.unstable_LowPriority,Yt=X.unstable_IdlePriority,Jt=null,Xt=null;var Zt=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(er(e)/tr|0)|0},er=Math.log,tr=Math.LN2;var rr=64,nr=4194304;function or(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 ar(e,t){var r=e.pendingLanes;if(0===r)return 0;var n=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&r;if(0!==i){var s=i&~o;0!==s?n=or(s):0!==(a&=i)&&(n=or(a))}else 0!==(i=r&~o)?n=or(i):0!==a&&(n=or(a));if(0===n)return 0;if(0!==t&&t!==n&&0==(t&o)&&((o=n&-n)>=(a=t&-t)||16===o&&0!=(4194240&a)))return t;if(0!=(4&n)&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)o=1<<(r=31-Zt(t)),n|=e[r],t&=~o;return n}function ir(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 sr(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function lr(){var e=rr;return 0==(4194240&(rr<<=1))&&(rr=64),e}function cr(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function ur(e,t,r){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-Zt(t)]=r}function dr(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Zt(r),o=1<<n;o&t|e[n]&t&&(e[n]|=t),r&=~o}}var fr=0;function pr(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var mr,hr,vr,yr,gr,br=!1,wr=[],Sr=null,xr=null,$r=null,kr=new Map,_r=new Map,Er=[],Cr="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 Pr(e,t){switch(e){case"focusin":case"focusout":Sr=null;break;case"dragenter":case"dragleave":xr=null;break;case"mouseover":case"mouseout":$r=null;break;case"pointerover":case"pointerout":kr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_r.delete(t.pointerId)}}function jr(e,t,r,n,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=pa(t))&&hr(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Or(e){var t=fa(e.target);if(null!==t){var r=It(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=Mt(r)))return e.blockedOn=t,void gr(e.priority,(function(){vr(r)}))}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function Nr(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Br(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=pa(r))&&hr(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);pt=n,r.target.dispatchEvent(n),pt=null,t.shift()}return!0}function Rr(e,t,r){Nr(e)&&r.delete(t)}function Tr(){br=!1,null!==Sr&&Nr(Sr)&&(Sr=null),null!==xr&&Nr(xr)&&(xr=null),null!==$r&&Nr($r)&&($r=null),kr.forEach(Rr),_r.forEach(Rr)}function Ar(e,t){e.blockedOn===t&&(e.blockedOn=null,br||(br=!0,X.unstable_scheduleCallback(X.unstable_NormalPriority,Tr)))}function Ir(e){function t(t){return Ar(t,e)}if(0<wr.length){Ar(wr[0],e);for(var r=1;r<wr.length;r++){var n=wr[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==Sr&&Ar(Sr,e),null!==xr&&Ar(xr,e),null!==$r&&Ar($r,e),kr.forEach(t),_r.forEach(t),r=0;r<Er.length;r++)(n=Er[r]).blockedOn===e&&(n.blockedOn=null);for(;0<Er.length&&null===(r=Er[0]).blockedOn;)Or(r),null===r.blockedOn&&Er.shift()}var Mr=me.ReactCurrentBatchConfig,Fr=!0;function Dr(e,t,r,n){var o=fr,a=Mr.transition;Mr.transition=null;try{fr=1,Lr(e,t,r,n)}finally{fr=o,Mr.transition=a}}function zr(e,t,r,n){var o=fr,a=Mr.transition;Mr.transition=null;try{fr=4,Lr(e,t,r,n)}finally{fr=o,Mr.transition=a}}function Lr(e,t,r,n){if(Fr){var o=Br(e,t,r,n);if(null===o)Do(e,t,n,Vr,r),Pr(e,n);else if(function(e,t,r,n,o){switch(t){case"focusin":return Sr=jr(Sr,e,t,r,n,o),!0;case"dragenter":return xr=jr(xr,e,t,r,n,o),!0;case"mouseover":return $r=jr($r,e,t,r,n,o),!0;case"pointerover":var a=o.pointerId;return kr.set(a,jr(kr.get(a)||null,e,t,r,n,o)),!0;case"gotpointercapture":return a=o.pointerId,_r.set(a,jr(_r.get(a)||null,e,t,r,n,o)),!0}return!1}(o,e,t,r,n))n.stopPropagation();else if(Pr(e,n),4&t&&-1<Cr.indexOf(e)){for(;null!==o;){var a=pa(o);if(null!==a&&mr(a),null===(a=Br(e,t,r,n))&&Do(e,t,n,Vr,r),a===o)break;o=a}null!==o&&n.stopPropagation()}else Do(e,t,n,null,r)}}var Vr=null;function Br(e,t,r,n){if(Vr=null,null!==(e=fa(e=mt(n))))if(null===(t=It(e)))e=null;else if(13===(r=t.tag)){if(null!==(e=Mt(t)))return e;e=null}else if(3===r){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Vr=e,null}function Ur(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(qt()){case Kt:return 1;case Ht:return 4;case Gt:case Qt:return 16;case Yt:return 536870912;default:return 16}default:return 16}}var Wr=null,qr=null,Kr=null;function Hr(){if(Kr)return Kr;var e,t,r=qr,n=r.length,o="value"in Wr?Wr.value:Wr.textContent,a=o.length;for(e=0;e<n&&r[e]===o[e];e++);var i=n-e;for(t=1;t<=i&&r[n-t]===o[a-t];t++);return Kr=o.slice(e,1<t?1-t:void 0)}function Gr(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 Qr(){return!0}function Yr(){return!1}function Jr(e){function t(t,r,n,o,a){for(var i in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Qr:Yr,this.isPropagationStopped=Yr,this}return Ne(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=Qr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Qr)},persist:function(){},isPersistent:Qr}),t}var Xr,Zr,en,tn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rn=Jr(tn),nn=Ne({},tn,{view:0,detail:0}),on=Jr(nn),an=Ne({},nn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gn,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!==en&&(en&&"mousemove"===e.type?(Xr=e.screenX-en.screenX,Zr=e.screenY-en.screenY):Zr=Xr=0,en=e),Xr)},movementY:function(e){return"movementY"in e?e.movementY:Zr}}),sn=Jr(an),ln=Jr(Ne({},an,{dataTransfer:0})),cn=Jr(Ne({},nn,{relatedTarget:0})),un=Jr(Ne({},tn,{animationName:0,elapsedTime:0,pseudoElement:0})),dn=Ne({},tn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),fn=Jr(dn),pn=Jr(Ne({},tn,{data:0})),mn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hn={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"},vn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=vn[e])&&!!t[e]}function gn(){return yn}var bn=Ne({},nn,{key:function(e){if(e.key){var t=mn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Gr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?hn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gn,charCode:function(e){return"keypress"===e.type?Gr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Gr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),wn=Jr(bn),Sn=Jr(Ne({},an,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),xn=Jr(Ne({},nn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gn})),$n=Jr(Ne({},tn,{propertyName:0,elapsedTime:0,pseudoElement:0})),kn=Ne({},an,{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}),_n=Jr(kn),En=[9,13,27,32],Cn=oe&&"CompositionEvent"in window,Pn=null;oe&&"documentMode"in document&&(Pn=document.documentMode);var jn=oe&&"TextEvent"in window&&!Pn,On=oe&&(!Cn||Pn&&8<Pn&&11>=Pn),Nn=String.fromCharCode(32),Rn=!1;function Tn(e,t){switch(e){case"keyup":return-1!==En.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function An(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var In=!1;var Mn={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 Fn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Mn[e.type]:"textarea"===t}function Dn(e,t,r,n){bt(n),0<(t=Lo(t,"onChange")).length&&(r=new rn("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var zn=null,Ln=null;function Vn(e){Ro(e,0)}function Bn(e){if(Ve(ma(e)))return e}function Un(e,t){if("change"===e)return t}var Wn=!1;if(oe){var qn;if(oe){var Kn="oninput"in document;if(!Kn){var Hn=document.createElement("div");Hn.setAttribute("oninput","return;"),Kn="function"==typeof Hn.oninput}qn=Kn}else qn=!1;Wn=qn&&(!document.documentMode||9<document.documentMode)}function Gn(){zn&&(zn.detachEvent("onpropertychange",Qn),Ln=zn=null)}function Qn(e){if("value"===e.propertyName&&Bn(Ln)){var t=[];Dn(t,Ln,e,mt(e)),kt(Vn,t)}}function Yn(e,t,r){"focusin"===e?(Gn(),Ln=r,(zn=t).attachEvent("onpropertychange",Qn)):"focusout"===e&&Gn()}function Jn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Bn(Ln)}function Xn(e,t){if("click"===e)return Bn(t)}function Zn(e,t){if("input"===e||"change"===e)return Bn(t)}var eo="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function to(e,t){if(eo(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!ae.call(t,o)||!eo(e[o],t[o]))return!1}return!0}function ro(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function no(e,t){var r,n=ro(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ro(n)}}function oo(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?oo(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function ao(){for(var e=window,t=Be();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=Be((e=t.contentWindow).document)}return t}function io(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 so(e){var t=ao(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&oo(r.ownerDocument.documentElement,r)){if(null!==n&&io(r))if(t=n.start,void 0===(e=n.end)&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if((e=(t=r.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=r.textContent.length,a=Math.min(n.start,o);n=void 0===n.end?a:Math.min(n.end,o),!e.extend&&a>n&&(o=n,n=a,a=o),o=no(r,a);var i=no(r,n);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=r;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof r.focus&&r.focus(),r=0;r<t.length;r++)(e=t[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var lo=oe&&"documentMode"in document&&11>=document.documentMode,co=null,uo=null,fo=null,po=!1;function mo(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;po||null==co||co!==Be(n)||("selectionStart"in(n=co)&&io(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},fo&&to(fo,n)||(fo=n,0<(n=Lo(uo,"onSelect")).length&&(t=new rn("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=co)))}function ho(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var vo={animationend:ho("Animation","AnimationEnd"),animationiteration:ho("Animation","AnimationIteration"),animationstart:ho("Animation","AnimationStart"),transitionend:ho("Transition","TransitionEnd")},yo={},go={};function bo(e){if(yo[e])return yo[e];if(!vo[e])return e;var t,r=vo[e];for(t in r)if(r.hasOwnProperty(t)&&t in go)return yo[e]=r[t];return e}oe&&(go=document.createElement("div").style,"AnimationEvent"in window||(delete vo.animationend.animation,delete vo.animationiteration.animation,delete vo.animationstart.animation),"TransitionEvent"in window||delete vo.transitionend.transition);var wo=bo("animationend"),So=bo("animationiteration"),xo=bo("animationstart"),$o=bo("transitionend"),ko=new Map,_o="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 Eo(e,t){ko.set(e,t),re(t,[e])}for(var Co=0;Co<_o.length;Co++){var Po=_o[Co];Eo(Po.toLowerCase(),"on"+(Po[0].toUpperCase()+Po.slice(1)))}Eo(wo,"onAnimationEnd"),Eo(So,"onAnimationIteration"),Eo(xo,"onAnimationStart"),Eo("dblclick","onDoubleClick"),Eo("focusin","onFocus"),Eo("focusout","onBlur"),Eo($o,"onTransitionEnd"),ne("onMouseEnter",["mouseout","mouseover"]),ne("onMouseLeave",["mouseout","mouseover"]),ne("onPointerEnter",["pointerout","pointerover"]),ne("onPointerLeave",["pointerout","pointerover"]),re("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),re("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),re("onBeforeInput",["compositionend","keypress","textInput","paste"]),re("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),re("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),re("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jo="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(" "),Oo=new Set("cancel close invalid load scroll toggle".split(" ").concat(jo));function No(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,o,a,i,s,l){if(At.apply(this,arguments),jt){if(!jt)throw Error(Z(198));var c=Ot;jt=!1,Ot=null,Nt||(Nt=!0,Rt=c)}}(n,t,void 0,e),e.currentTarget=null}function Ro(e,t){t=0!=(4&t);for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var i=n.length-1;0<=i;i--){var s=n[i],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==a&&o.isPropagationStopped())break e;No(o,s,c),a=l}else for(i=0;i<n.length;i++){if(l=(s=n[i]).instance,c=s.currentTarget,s=s.listener,l!==a&&o.isPropagationStopped())break e;No(o,s,c),a=l}}}if(Nt)throw e=Rt,Nt=!1,Rt=null,e}function To(e,t){var r=t[ca];void 0===r&&(r=t[ca]=new Set);var n=e+"__bubble";r.has(n)||(Fo(t,e,2,!1),r.add(n))}function Ao(e,t,r){var n=0;t&&(n|=4),Fo(r,e,n,t)}var Io="_reactListening"+Math.random().toString(36).slice(2);function Mo(e){if(!e[Io]){e[Io]=!0,ee.forEach((function(t){"selectionchange"!==t&&(Oo.has(t)||Ao(t,!1,e),Ao(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Io]||(t[Io]=!0,Ao("selectionchange",!1,t))}}function Fo(e,t,r,n){switch(Ur(t)){case 1:var o=Dr;break;case 4:o=zr;break;default:o=Lr}r=o.bind(null,t,r,e),o=void 0,!Et||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),n?void 0!==o?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):void 0!==o?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function Do(e,t,r,n,o){var a=n;if(0==(1&t)&&0==(2&t)&&null!==n)e:for(;;){if(null===n)return;var i=n.tag;if(3===i||4===i){var s=n.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===i)for(i=n.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;i=i.return}for(;null!==s;){if(null===(i=fa(s)))return;if(5===(l=i.tag)||6===l){n=a=i;continue e}s=s.parentNode}}n=n.return}kt((function(){var n=a,o=mt(r),i=[];e:{var s=ko.get(e);if(void 0!==s){var l=rn,c=e;switch(e){case"keypress":if(0===Gr(r))break e;case"keydown":case"keyup":l=wn;break;case"focusin":c="focus",l=cn;break;case"focusout":c="blur",l=cn;break;case"beforeblur":case"afterblur":l=cn;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=sn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=ln;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=xn;break;case wo:case So:case xo:l=un;break;case $o:l=$n;break;case"scroll":l=on;break;case"wheel":l=_n;break;case"copy":case"cut":case"paste":l=fn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Sn}var u=0!=(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var p,m=n;null!==m;){var h=(p=m).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==f&&(null!=(h=_t(m,f))&&u.push(zo(m,h,p)))),d)break;m=m.return}0<u.length&&(s=new l(s,c,null,r,o),i.push({event:s,listeners:u}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||r===pt||!(c=r.relatedTarget||r.fromElement)||!fa(c)&&!c[la])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=n,null!==(c=(c=r.relatedTarget||r.toElement)?fa(c):null)&&(c!==(d=It(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=n),l!==c)){if(u=sn,h="onMouseLeave",f="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(u=Sn,h="onPointerLeave",f="onPointerEnter",m="pointer"),d=null==l?s:ma(l),p=null==c?s:ma(c),(s=new u(h,m+"leave",l,r,o)).target=d,s.relatedTarget=p,h=null,fa(o)===n&&((u=new u(f,m+"enter",c,r,o)).target=p,u.relatedTarget=d,h=u),d=h,l&&c)e:{for(f=c,m=0,p=u=l;p;p=Vo(p))m++;for(p=0,h=f;h;h=Vo(h))p++;for(;0<m-p;)u=Vo(u),m--;for(;0<p-m;)f=Vo(f),p--;for(;m--;){if(u===f||null!==f&&u===f.alternate)break e;u=Vo(u),f=Vo(f)}u=null}else u=null;null!==l&&Bo(i,s,l,u,!1),null!==c&&null!==d&&Bo(i,d,c,u,!0)}if("select"===(l=(s=n?ma(n):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=Un;else if(Fn(s))if(Wn)v=Zn;else{v=Jn;var y=Yn}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=Xn);switch(v&&(v=v(e,n))?Dn(i,v,r,o):(y&&y(e,s,n),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&Ge(s,"number",s.value)),y=n?ma(n):window,e){case"focusin":(Fn(y)||"true"===y.contentEditable)&&(co=y,uo=n,fo=null);break;case"focusout":fo=uo=co=null;break;case"mousedown":po=!0;break;case"contextmenu":case"mouseup":case"dragend":po=!1,mo(i,r,o);break;case"selectionchange":if(lo)break;case"keydown":case"keyup":mo(i,r,o)}var g;if(Cn)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 In?Tn(e,r)&&(b="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(b="onCompositionStart");b&&(On&&"ko"!==r.locale&&(In||"onCompositionStart"!==b?"onCompositionEnd"===b&&In&&(g=Hr()):(qr="value"in(Wr=o)?Wr.value:Wr.textContent,In=!0)),0<(y=Lo(n,b)).length&&(b=new pn(b,e,null,r,o),i.push({event:b,listeners:y}),g?b.data=g:null!==(g=An(r))&&(b.data=g))),(g=jn?function(e,t){switch(e){case"compositionend":return An(t);case"keypress":return 32!==t.which?null:(Rn=!0,Nn);case"textInput":return(e=t.data)===Nn&&Rn?null:e;default:return null}}(e,r):function(e,t){if(In)return"compositionend"===e||!Cn&&Tn(e,t)?(e=Hr(),Kr=qr=Wr=null,In=!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,r))&&(0<(n=Lo(n,"onBeforeInput")).length&&(o=new pn("onBeforeInput","beforeinput",null,r,o),i.push({event:o,listeners:n}),o.data=g))}Ro(i,t)}))}function zo(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Lo(e,t){for(var r=t+"Capture",n=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=_t(e,r))&&n.unshift(zo(e,a,o)),null!=(a=_t(e,t))&&n.push(zo(e,a,o))),e=e.return}return n}function Vo(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Bo(e,t,r,n,o){for(var a=t._reactName,i=[];null!==r&&r!==n;){var s=r,l=s.alternate,c=s.stateNode;if(null!==l&&l===n)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=_t(r,a))&&i.unshift(zo(r,l,s)):o||null!=(l=_t(r,a))&&i.push(zo(r,l,s))),r=r.return}0!==i.length&&e.push({event:t,listeners:i})}var Uo=/\r\n?/g,Wo=/\u0000|\uFFFD/g;function qo(e){return("string"==typeof e?e:""+e).replace(Uo,"\n").replace(Wo,"")}function Ko(e,t,r){if(t=qo(t),qo(e)!==t&&r)throw Error(Z(425))}function Ho(){}var Go=null,Qo=null;function Yo(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 Jo="function"==typeof setTimeout?setTimeout:void 0,Xo="function"==typeof clearTimeout?clearTimeout:void 0,Zo="function"==typeof Promise?Promise:void 0,ea="function"==typeof queueMicrotask?queueMicrotask:void 0!==Zo?function(e){return Zo.resolve(null).then(e).catch(ta)}:Jo;function ta(e){setTimeout((function(){throw e}))}function ra(e,t){var r=t,n=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&8===o.nodeType)if("/$"===(r=o.data)){if(0===n)return e.removeChild(o),void Ir(t);n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++;r=o}while(r);Ir(t)}function na(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 oa(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var aa=Math.random().toString(36).slice(2),ia="__reactFiber$"+aa,sa="__reactProps$"+aa,la="__reactContainer$"+aa,ca="__reactEvents$"+aa,ua="__reactListeners$"+aa,da="__reactHandles$"+aa;function fa(e){var t=e[ia];if(t)return t;for(var r=e.parentNode;r;){if(t=r[la]||r[ia]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=oa(e);null!==e;){if(r=e[ia])return r;e=oa(e)}return t}r=(e=r).parentNode}return null}function pa(e){return!(e=e[ia]||e[la])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ma(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(Z(33))}function ha(e){return e[sa]||null}var va=[],ya=-1;function ga(e){return{current:e}}function ba(e){0>ya||(e.current=va[ya],va[ya]=null,ya--)}function wa(e,t){ya++,va[ya]=e.current,e.current=t}var Sa={},xa=ga(Sa),$a=ga(!1),ka=Sa;function _a(e,t){var r=e.type.contextTypes;if(!r)return Sa;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in r)a[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ea(e){return null!=(e=e.childContextTypes)}function Ca(){ba($a),ba(xa)}function Pa(e,t,r){if(xa.current!==Sa)throw Error(Z(168));wa(xa,t),wa($a,r)}function ja(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var o in n=n.getChildContext())if(!(o in t))throw Error(Z(108,Fe(e)||"Unknown",o));return Ne({},r,n)}function Oa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Sa,ka=xa.current,wa(xa,e),wa($a,$a.current),!0}function Na(e,t,r){var n=e.stateNode;if(!n)throw Error(Z(169));r?(e=ja(e,t,ka),n.__reactInternalMemoizedMergedChildContext=e,ba($a),ba(xa),wa(xa,e)):ba($a),wa($a,r)}var Ra=null,Ta=!1,Aa=!1;function Ia(e){null===Ra?Ra=[e]:Ra.push(e)}function Ma(){if(!Aa&&null!==Ra){Aa=!0;var e=0,t=fr;try{var r=Ra;for(fr=1;e<r.length;e++){var n=r[e];do{n=n(!0)}while(null!==n)}Ra=null,Ta=!1}catch(t){throw null!==Ra&&(Ra=Ra.slice(e+1)),Lt(Kt,Ma),t}finally{fr=t,Aa=!1}}return null}var Fa=[],Da=0,za=null,La=0,Va=[],Ba=0,Ua=null,Wa=1,qa="";function Ka(e,t){Fa[Da++]=La,Fa[Da++]=za,za=e,La=t}function Ha(e,t,r){Va[Ba++]=Wa,Va[Ba++]=qa,Va[Ba++]=Ua,Ua=e;var n=Wa;e=qa;var o=32-Zt(n)-1;n&=~(1<<o),r+=1;var a=32-Zt(t)+o;if(30<a){var i=o-o%5;a=(n&(1<<i)-1).toString(32),n>>=i,o-=i,Wa=1<<32-Zt(t)+o|r<<o|n,qa=a+e}else Wa=1<<a|r<<o|n,qa=e}function Ga(e){null!==e.return&&(Ka(e,1),Ha(e,1,0))}function Qa(e){for(;e===za;)za=Fa[--Da],Fa[Da]=null,La=Fa[--Da],Fa[Da]=null;for(;e===Ua;)Ua=Va[--Ba],Va[Ba]=null,qa=Va[--Ba],Va[Ba]=null,Wa=Va[--Ba],Va[Ba]=null}var Ya=null,Ja=null,Xa=!1,Za=null;function ei(e,t){var r=ku(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,null===(t=e.deletions)?(e.deletions=[r],e.flags|=16):t.push(r)}function ti(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,Ya=e,Ja=na(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Ya=e,Ja=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(r=null!==Ua?{id:Wa,overflow:qa}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},(r=ku(18,null,null,0)).stateNode=t,r.return=e,e.child=r,Ya=e,Ja=null,!0);default:return!1}}function ri(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ni(e){if(Xa){var t=Ja;if(t){var r=t;if(!ti(e,t)){if(ri(e))throw Error(Z(418));t=na(r.nextSibling);var n=Ya;t&&ti(e,t)?ei(n,r):(e.flags=-4097&e.flags|2,Xa=!1,Ya=e)}}else{if(ri(e))throw Error(Z(418));e.flags=-4097&e.flags|2,Xa=!1,Ya=e}}}function oi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ya=e}function ai(e){if(e!==Ya)return!1;if(!Xa)return oi(e),Xa=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Yo(e.type,e.memoizedProps)),t&&(t=Ja)){if(ri(e))throw ii(),Error(Z(418));for(;t;)ei(e,t),t=na(t.nextSibling)}if(oi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(Z(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){Ja=na(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}Ja=null}}else Ja=Ya?na(e.stateNode.nextSibling):null;return!0}function ii(){for(var e=Ja;e;)e=na(e.nextSibling)}function si(){Ja=Ya=null,Xa=!1}function li(e){null===Za?Za=[e]:Za.push(e)}var ci=me.ReactCurrentBatchConfig;function ui(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(Z(309));var n=r.stateNode}if(!n)throw Error(Z(147,e));var o=n,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(Z(284));if(!r._owner)throw Error(Z(290,e))}return e}function di(e,t){throw e=Object.prototype.toString.call(t),Error(Z(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function fi(e){return(0,e._init)(e._payload)}function pi(e){function t(t,r){if(e){var n=t.deletions;null===n?(t.deletions=[r],t.flags|=16):n.push(r)}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(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=Eu(e,t)).index=0,e.sibling=null,e}function a(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags|=2,r):n:(t.flags|=2,r):(t.flags|=1048576,r)}function i(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,r,n){return null===t||6!==t.tag?((t=Ou(r,e.mode,n)).return=e,t):((t=o(t,r)).return=e,t)}function l(e,t,r,n){var a=r.type;return a===ye?u(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===Ee&&fi(a)===t.type)?((n=o(t,r.props)).ref=ui(e,t,r),n.return=e,n):((n=Cu(r.type,r.key,r.props,null,e.mode,n)).ref=ui(e,t,r),n.return=e,n)}function c(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Nu(r,e.mode,n)).return=e,t):((t=o(t,r.children||[])).return=e,t)}function u(e,t,r,n,a){return null===t||7!==t.tag?((t=Pu(r,e.mode,n,a)).return=e,t):((t=o(t,r)).return=e,t)}function d(e,t,r){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Ou(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case he:return(r=Cu(t.type,t.key,t.props,null,e.mode,r)).ref=ui(e,null,t),r.return=e,r;case ve:return(t=Nu(t,e.mode,r)).return=e,t;case Ee:return d(e,(0,t._init)(t._payload),r)}if(Qe(t)||je(t))return(t=Pu(t,e.mode,r,null)).return=e,t;di(e,t)}return null}function f(e,t,r,n){var o=null!==t?t.key:null;if("string"==typeof r&&""!==r||"number"==typeof r)return null!==o?null:s(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case he:return r.key===o?l(e,t,r,n):null;case ve:return r.key===o?c(e,t,r,n):null;case Ee:return f(e,t,(o=r._init)(r._payload),n)}if(Qe(r)||je(r))return null!==o?null:u(e,t,r,n,null);di(e,r)}return null}function p(e,t,r,n,o){if("string"==typeof n&&""!==n||"number"==typeof n)return s(t,e=e.get(r)||null,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case he:return l(t,e=e.get(null===n.key?r:n.key)||null,n,o);case ve:return c(t,e=e.get(null===n.key?r:n.key)||null,n,o);case Ee:return p(e,t,r,(0,n._init)(n._payload),o)}if(Qe(n)||je(n))return u(t,e=e.get(r)||null,n,o,null);di(t,n)}return null}function m(o,i,s,l){for(var c=null,u=null,m=i,h=i=0,v=null;null!==m&&h<s.length;h++){m.index>h?(v=m,m=null):v=m.sibling;var y=f(o,m,s[h],l);if(null===y){null===m&&(m=v);break}e&&m&&null===y.alternate&&t(o,m),i=a(y,i,h),null===u?c=y:u.sibling=y,u=y,m=v}if(h===s.length)return r(o,m),Xa&&Ka(o,h),c;if(null===m){for(;h<s.length;h++)null!==(m=d(o,s[h],l))&&(i=a(m,i,h),null===u?c=m:u.sibling=m,u=m);return Xa&&Ka(o,h),c}for(m=n(o,m);h<s.length;h++)null!==(v=p(m,o,h,s[h],l))&&(e&&null!==v.alternate&&m.delete(null===v.key?h:v.key),i=a(v,i,h),null===u?c=v:u.sibling=v,u=v);return e&&m.forEach((function(e){return t(o,e)})),Xa&&Ka(o,h),c}function h(o,i,s,l){var c=je(s);if("function"!=typeof c)throw Error(Z(150));if(null==(s=c.call(s)))throw Error(Z(151));for(var u=c=null,m=i,h=i=0,v=null,y=s.next();null!==m&&!y.done;h++,y=s.next()){m.index>h?(v=m,m=null):v=m.sibling;var g=f(o,m,y.value,l);if(null===g){null===m&&(m=v);break}e&&m&&null===g.alternate&&t(o,m),i=a(g,i,h),null===u?c=g:u.sibling=g,u=g,m=v}if(y.done)return r(o,m),Xa&&Ka(o,h),c;if(null===m){for(;!y.done;h++,y=s.next())null!==(y=d(o,y.value,l))&&(i=a(y,i,h),null===u?c=y:u.sibling=y,u=y);return Xa&&Ka(o,h),c}for(m=n(o,m);!y.done;h++,y=s.next())null!==(y=p(m,o,h,y.value,l))&&(e&&null!==y.alternate&&m.delete(null===y.key?h:y.key),i=a(y,i,h),null===u?c=y:u.sibling=y,u=y);return e&&m.forEach((function(e){return t(o,e)})),Xa&&Ka(o,h),c}return function e(n,a,s,l){if("object"==typeof s&&null!==s&&s.type===ye&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case he:e:{for(var c=s.key,u=a;null!==u;){if(u.key===c){if((c=s.type)===ye){if(7===u.tag){r(n,u.sibling),(a=o(u,s.props.children)).return=n,n=a;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===Ee&&fi(c)===u.type){r(n,u.sibling),(a=o(u,s.props)).ref=ui(n,u,s),a.return=n,n=a;break e}r(n,u);break}t(n,u),u=u.sibling}s.type===ye?((a=Pu(s.props.children,n.mode,l,s.key)).return=n,n=a):((l=Cu(s.type,s.key,s.props,null,n.mode,l)).ref=ui(n,a,s),l.return=n,n=l)}return i(n);case ve:e:{for(u=s.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===s.containerInfo&&a.stateNode.implementation===s.implementation){r(n,a.sibling),(a=o(a,s.children||[])).return=n,n=a;break e}r(n,a);break}t(n,a),a=a.sibling}(a=Nu(s,n.mode,l)).return=n,n=a}return i(n);case Ee:return e(n,a,(u=s._init)(s._payload),l)}if(Qe(s))return m(n,a,s,l);if(je(s))return h(n,a,s,l);di(n,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==a&&6===a.tag?(r(n,a.sibling),(a=o(a,s)).return=n,n=a):(r(n,a),(a=Ou(s,n.mode,l)).return=n,n=a),i(n)):r(n,a)}}var mi=pi(!0),hi=pi(!1),vi=ga(null),yi=null,gi=null,bi=null;function wi(){bi=gi=yi=null}function Si(e){var t=vi.current;ba(vi),e._currentValue=t}function xi(e,t,r){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==n&&(n.childLanes|=t)):null!==n&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function $i(e,t){yi=e,bi=gi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(fl=!0),e.firstContext=null)}function ki(e){var t=e._currentValue;if(bi!==e)if(e={context:e,memoizedValue:t,next:null},null===gi){if(null===yi)throw Error(Z(308));gi=e,yi.dependencies={lanes:0,firstContext:e}}else gi=gi.next=e;return t}var _i=null;function Ei(e){null===_i?_i=[e]:_i.push(e)}function Ci(e,t,r,n){var o=t.interleaved;return null===o?(r.next=r,Ei(t)):(r.next=o.next,o.next=r),t.interleaved=r,Pi(e,n)}function Pi(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}var ji=!1;function Oi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ni(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 Ri(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ti(e,t,r){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,0!=(2&Sc)){var o=n.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),n.pending=t,Pi(e,r)}return null===(o=n.interleaved)?(t.next=t,Ei(n)):(t.next=o.next,o.next=t),n.interleaved=t,Pi(e,r)}function Ai(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&r))){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,dr(e,r)}}function Ii(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var o=null,a=null;if(null!==(r=r.firstBaseUpdate)){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===a?o=a=i:a=a.next=i,r=r.next}while(null!==r);null===a?o=a=t:a=a.next=t}else o=a=t;return r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Mi(e,t,r,n){var o=e.updateQueue;ji=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===i?a=c:i.next=c,i=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==a){var d=o.baseState;for(i=0,u=c=l=null,s=a;;){var f=s.lane,p=s.eventTime;if((n&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,h=s;switch(f=t,p=r,h.tag){case 1:if("function"==typeof(m=h.payload)){d=m.call(p,d,f);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(f="function"==typeof(m=h.payload)?m.call(p,d,f):m))break e;d=Ne({},d,f);break e;case 2:ji=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=p,l=d):u=u.next=p,i|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);jc|=i,e.lanes=i,e.memoizedState=d}}function Fi(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(null!==o){if(n.callback=null,n=r,"function"!=typeof o)throw Error(Z(191,o));o.call(n)}}}var Di={},zi=ga(Di),Li=ga(Di),Vi=ga(Di);function Bi(e){if(e===Di)throw Error(Z(174));return e}function Ui(e,t){switch(wa(Vi,t),wa(Li,e),wa(zi,Di),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:rt(null,"");break;default:t=rt(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ba(zi),wa(zi,t)}function Wi(){ba(zi),ba(Li),ba(Vi)}function qi(e){Bi(Vi.current);var t=Bi(zi.current),r=rt(t,e.type);t!==r&&(wa(Li,e),wa(zi,r))}function Ki(e){Li.current===e&&(ba(zi),ba(Li))}var Hi=ga(0);function Gi(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.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 Qi=[];function Yi(){for(var e=0;e<Qi.length;e++)Qi[e]._workInProgressVersionPrimary=null;Qi.length=0}var Ji=me.ReactCurrentDispatcher,Xi=me.ReactCurrentBatchConfig,Zi=0,es=null,ts=null,rs=null,ns=!1,os=!1,as=0,is=0;function ss(){throw Error(Z(321))}function ls(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!eo(e[r],t[r]))return!1;return!0}function cs(e,t,r,n,o,a){if(Zi=a,es=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ji.current=null===e||null===e.memoizedState?Ks:Hs,e=r(n,o),os){a=0;do{if(os=!1,as=0,25<=a)throw Error(Z(301));a+=1,rs=ts=null,t.updateQueue=null,Ji.current=Gs,e=r(n,o)}while(os)}if(Ji.current=qs,t=null!==ts&&null!==ts.next,Zi=0,rs=ts=es=null,ns=!1,t)throw Error(Z(300));return e}function us(){var e=0!==as;return as=0,e}function ds(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===rs?es.memoizedState=rs=e:rs=rs.next=e,rs}function fs(){if(null===ts){var e=es.alternate;e=null!==e?e.memoizedState:null}else e=ts.next;var t=null===rs?es.memoizedState:rs.next;if(null!==t)rs=t,ts=e;else{if(null===e)throw Error(Z(310));e={memoizedState:(ts=e).memoizedState,baseState:ts.baseState,baseQueue:ts.baseQueue,queue:ts.queue,next:null},null===rs?es.memoizedState=rs=e:rs=rs.next=e}return rs}function ps(e,t){return"function"==typeof t?t(e):t}function ms(e){var t=fs(),r=t.queue;if(null===r)throw Error(Z(311));r.lastRenderedReducer=e;var n=ts,o=n.baseQueue,a=r.pending;if(null!==a){if(null!==o){var i=o.next;o.next=a.next,a.next=i}n.baseQueue=o=a,r.pending=null}if(null!==o){a=o.next,n=n.baseState;var s=i=null,l=null,c=a;do{var u=c.lane;if((Zi&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:e(n,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(s=l=d,i=n):l=l.next=d,es.lanes|=u,jc|=u}c=c.next}while(null!==c&&c!==a);null===l?i=n:l.next=s,eo(n,t.memoizedState)||(fl=!0),t.memoizedState=n,t.baseState=i,t.baseQueue=l,r.lastRenderedState=n}if(null!==(e=r.interleaved)){o=e;do{a=o.lane,es.lanes|=a,jc|=a,o=o.next}while(o!==e)}else null===o&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function hs(e){var t=fs(),r=t.queue;if(null===r)throw Error(Z(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,a=t.memoizedState;if(null!==o){r.pending=null;var i=o=o.next;do{a=e(a,i.action),i=i.next}while(i!==o);eo(a,t.memoizedState)||(fl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function vs(){}function ys(e,t){var r=es,n=fs(),o=t(),a=!eo(n.memoizedState,o);if(a&&(n.memoizedState=o,fl=!0),n=n.queue,js(ws.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||null!==rs&&1&rs.memoizedState.tag){if(r.flags|=2048,ks(9,bs.bind(null,r,n,o,t),void 0,null),null===xc)throw Error(Z(349));0!=(30&Zi)||gs(r,t,o)}return o}function gs(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=es.updateQueue)?(t={lastEffect:null,stores:null},es.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function bs(e,t,r,n){t.value=r,t.getSnapshot=n,Ss(t)&&xs(e)}function ws(e,t,r){return r((function(){Ss(t)&&xs(e)}))}function Ss(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!eo(e,r)}catch(e){return!0}}function xs(e){var t=Pi(e,1);null!==t&&Qc(t,e,1,-1)}function $s(e){var t=ds();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ps,lastRenderedState:e},t.queue=e,e=e.dispatch=Vs.bind(null,es,e),[t.memoizedState,e]}function ks(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=es.updateQueue)?(t={lastEffect:null,stores:null},es.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function _s(){return fs().memoizedState}function Es(e,t,r,n){var o=ds();es.flags|=e,o.memoizedState=ks(1|t,r,void 0,void 0===n?null:n)}function Cs(e,t,r,n){var o=fs();n=void 0===n?null:n;var a=void 0;if(null!==ts){var i=ts.memoizedState;if(a=i.destroy,null!==n&&ls(n,i.deps))return void(o.memoizedState=ks(t,r,a,n))}es.flags|=e,o.memoizedState=ks(1|t,r,a,n)}function Ps(e,t){return Es(8390656,8,e,t)}function js(e,t){return Cs(2048,8,e,t)}function Os(e,t){return Cs(4,2,e,t)}function Ns(e,t){return Cs(4,4,e,t)}function Rs(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 Ts(e,t,r){return r=null!=r?r.concat([e]):null,Cs(4,4,Rs.bind(null,t,e),r)}function As(){}function Is(e,t){var r=fs();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ls(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Ms(e,t){var r=fs();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ls(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Fs(e,t,r){return 0==(21&Zi)?(e.baseState&&(e.baseState=!1,fl=!0),e.memoizedState=r):(eo(r,t)||(r=lr(),es.lanes|=r,jc|=r,e.baseState=!0),t)}function Ds(e,t){var r=fr;fr=0!==r&&4>r?r:4,e(!0);var n=Xi.transition;Xi.transition={};try{e(!1),t()}finally{fr=r,Xi.transition=n}}function zs(){return fs().memoizedState}function Ls(e,t,r){var n=Gc(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Bs(e))Us(t,r);else if(null!==(r=Ci(e,t,r,n))){Qc(r,e,n,Hc()),Ws(r,t,n)}}function Vs(e,t,r){var n=Gc(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Bs(e))Us(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=a(i,r);if(o.hasEagerState=!0,o.eagerState=s,eo(s,i)){var l=t.interleaved;return null===l?(o.next=o,Ei(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(r=Ci(e,t,o,n))&&(Qc(r,e,n,o=Hc()),Ws(r,t,n))}}function Bs(e){var t=e.alternate;return e===es||null!==t&&t===es}function Us(e,t){os=ns=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Ws(e,t,r){if(0!=(4194240&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,dr(e,r)}}var qs={readContext:ki,useCallback:ss,useContext:ss,useEffect:ss,useImperativeHandle:ss,useInsertionEffect:ss,useLayoutEffect:ss,useMemo:ss,useReducer:ss,useRef:ss,useState:ss,useDebugValue:ss,useDeferredValue:ss,useTransition:ss,useMutableSource:ss,useSyncExternalStore:ss,useId:ss,unstable_isNewReconciler:!1},Ks={readContext:ki,useCallback:function(e,t){return ds().memoizedState=[e,void 0===t?null:t],e},useContext:ki,useEffect:Ps,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,Es(4194308,4,Rs.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Es(4194308,4,e,t)},useInsertionEffect:function(e,t){return Es(4,2,e,t)},useMemo:function(e,t){var r=ds();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ds();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Ls.bind(null,es,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},ds().memoizedState=e},useState:$s,useDebugValue:As,useDeferredValue:function(e){return ds().memoizedState=e},useTransition:function(){var e=$s(!1),t=e[0];return e=Ds.bind(null,e[1]),ds().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=es,o=ds();if(Xa){if(void 0===r)throw Error(Z(407));r=r()}else{if(r=t(),null===xc)throw Error(Z(349));0!=(30&Zi)||gs(n,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,Ps(ws.bind(null,n,a,e),[e]),n.flags|=2048,ks(9,bs.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=ds(),t=xc.identifierPrefix;if(Xa){var r=qa;t=":"+t+"R"+(r=(Wa&~(1<<32-Zt(Wa)-1)).toString(32)+r),0<(r=as++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=is++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Hs={readContext:ki,useCallback:Is,useContext:ki,useEffect:js,useImperativeHandle:Ts,useInsertionEffect:Os,useLayoutEffect:Ns,useMemo:Ms,useReducer:ms,useRef:_s,useState:function(){return ms(ps)},useDebugValue:As,useDeferredValue:function(e){return Fs(fs(),ts.memoizedState,e)},useTransition:function(){return[ms(ps)[0],fs().memoizedState]},useMutableSource:vs,useSyncExternalStore:ys,useId:zs,unstable_isNewReconciler:!1},Gs={readContext:ki,useCallback:Is,useContext:ki,useEffect:js,useImperativeHandle:Ts,useInsertionEffect:Os,useLayoutEffect:Ns,useMemo:Ms,useReducer:hs,useRef:_s,useState:function(){return hs(ps)},useDebugValue:As,useDeferredValue:function(e){var t=fs();return null===ts?t.memoizedState=e:Fs(t,ts.memoizedState,e)},useTransition:function(){return[hs(ps)[0],fs().memoizedState]},useMutableSource:vs,useSyncExternalStore:ys,useId:zs,unstable_isNewReconciler:!1};function Qs(e,t){if(e&&e.defaultProps){for(var r in t=Ne({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}function Ys(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:Ne({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var Js={isMounted:function(e){return!!(e=e._reactInternals)&&It(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Hc(),o=Gc(e),a=Ri(n,o);a.payload=t,null!=r&&(a.callback=r),null!==(t=Ti(e,a,o))&&(Qc(t,e,o,n),Ai(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Hc(),o=Gc(e),a=Ri(n,o);a.tag=1,a.payload=t,null!=r&&(a.callback=r),null!==(t=Ti(e,a,o))&&(Qc(t,e,o,n),Ai(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Hc(),n=Gc(e),o=Ri(r,n);o.tag=2,null!=t&&(o.callback=t),null!==(t=Ti(e,o,n))&&(Qc(t,e,n,r),Ai(t,e,n))}};function Xs(e,t,r,n,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!to(r,n)||!to(o,a))}function Zs(e,t,r){var n=!1,o=Sa,a=t.contextType;return"object"==typeof a&&null!==a?a=ki(a):(o=Ea(t)?ka:xa.current,a=(n=null!=(n=t.contextTypes))?_a(e,o):Sa),t=new t(r,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Js,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function el(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Js.enqueueReplaceState(t,t.state,null)}function tl(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs={},Oi(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=ki(a):(a=Ea(t)?ka:xa.current,o.context=_a(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(Ys(e,t,a,r),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Js.enqueueReplaceState(o,o.state,null),Mi(e,r,o,n),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function rl(e,t){try{var r="",n=t;do{r+=Ie(n),n=n.return}while(n);var o=r}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function nl(e,t,r){return{value:e,source:null,stack:null!=r?r:null,digest:null!=t?t:null}}function ol(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var al="function"==typeof WeakMap?WeakMap:Map;function il(e,t,r){(r=Ri(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Fc||(Fc=!0,Dc=n),ol(0,t)},r}function sl(e,t,r){(r=Ri(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){ol(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(r.callback=function(){ol(0,t),"function"!=typeof n&&(null===zc?zc=new Set([this]):zc.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}function ll(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new al;var o=new Set;n.set(t,o)}else void 0===(o=n.get(t))&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=gu.bind(null,e,t,r),t.then(e,e))}function cl(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 ul(e,t,r,n,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((t=Ri(-1,1)).tag=2,Ti(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var dl=me.ReactCurrentOwner,fl=!1;function pl(e,t,r,n){t.child=null===e?hi(t,null,r,n):mi(t,e.child,r,n)}function ml(e,t,r,n,o){r=r.render;var a=t.ref;return $i(t,o),n=cs(e,t,r,n,a,o),r=us(),null===e||fl?(Xa&&r&&Ga(t),t.flags|=1,pl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Fl(e,t,o))}function hl(e,t,r,n,o){if(null===e){var a=r.type;return"function"!=typeof a||_u(a)||void 0!==a.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Cu(r.type,null,n,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,vl(e,t,a,n,o))}if(a=e.child,0==(e.lanes&o)){var i=a.memoizedProps;if((r=null!==(r=r.compare)?r:to)(i,n)&&e.ref===t.ref)return Fl(e,t,o)}return t.flags|=1,(e=Eu(a,n)).ref=t.ref,e.return=t,t.child=e}function vl(e,t,r,n,o){if(null!==e){var a=e.memoizedProps;if(to(a,n)&&e.ref===t.ref){if(fl=!1,t.pendingProps=n=a,0==(e.lanes&o))return t.lanes=e.lanes,Fl(e,t,o);0!=(131072&e.flags)&&(fl=!0)}}return bl(e,t,r,n,o)}function yl(e,t,r){var n=t.pendingProps,o=n.children,a=null!==e?e.memoizedState:null;if("hidden"===n.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},wa(Ec,_c),_c|=r;else{if(0==(1073741824&r))return e=null!==a?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,wa(Ec,_c),_c|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==a?a.baseLanes:r,wa(Ec,_c),_c|=n}else null!==a?(n=a.baseLanes|r,t.memoizedState=null):n=r,wa(Ec,_c),_c|=n;return pl(e,t,o,r),t.child}function gl(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function bl(e,t,r,n,o){var a=Ea(r)?ka:xa.current;return a=_a(t,a),$i(t,o),r=cs(e,t,r,n,a,o),n=us(),null===e||fl?(Xa&&n&&Ga(t),t.flags|=1,pl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Fl(e,t,o))}function wl(e,t,r,n,o){if(Ea(r)){var a=!0;Oa(t)}else a=!1;if($i(t,o),null===t.stateNode)Ml(e,t),Zs(t,r,n),tl(t,r,n,o),n=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,c=r.contextType;"object"==typeof c&&null!==c?c=ki(c):c=_a(t,c=Ea(r)?ka:xa.current);var u=r.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==n||l!==c)&&el(t,i,n,c),ji=!1;var f=t.memoizedState;i.state=f,Mi(t,n,i,o),l=t.memoizedState,s!==n||f!==l||$a.current||ji?("function"==typeof u&&(Ys(t,r,u,n),l=t.memoizedState),(s=ji||Xs(t,r,s,n,f,l,c))?(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=n,t.memoizedState=l),i.props=n,i.state=l,i.context=c,n=s):("function"==typeof i.componentDidMount&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,Ni(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Qs(t.type,s),i.props=c,d=t.pendingProps,f=i.context,"object"==typeof(l=r.contextType)&&null!==l?l=ki(l):l=_a(t,l=Ea(r)?ka:xa.current);var p=r.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==d||f!==l)&&el(t,i,n,l),ji=!1,f=t.memoizedState,i.state=f,Mi(t,n,i,o);var m=t.memoizedState;s!==d||f!==m||$a.current||ji?("function"==typeof p&&(Ys(t,r,p,n),m=t.memoizedState),(c=ji||Xs(t,r,c,n,f,m,l)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(n,m,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(n,m,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=m),i.props=n,i.state=m,i.context=l,n=c):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),n=!1)}return Sl(e,t,r,n,a,o)}function Sl(e,t,r,n,o,a){gl(e,t);var i=0!=(128&t.flags);if(!n&&!i)return o&&Na(t,r,!1),Fl(e,t,a);n=t.stateNode,dl.current=t;var s=i&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&i?(t.child=mi(t,e.child,null,a),t.child=mi(t,null,s,a)):pl(e,t,s,a),t.memoizedState=n.state,o&&Na(t,r,!0),t.child}function xl(e){var t=e.stateNode;t.pendingContext?Pa(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Pa(0,t.context,!1),Ui(e,t.containerInfo)}function $l(e,t,r,n,o){return si(),li(o),t.flags|=256,pl(e,t,r,n),t.child}var kl,_l,El,Cl,Pl={dehydrated:null,treeContext:null,retryLane:0};function jl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ol(e,t,r){var n,o=t.pendingProps,a=Hi.current,i=!1,s=0!=(128&t.flags);if((n=s)||(n=(null===e||null!==e.memoizedState)&&0!=(2&a)),n?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),wa(Hi,1&a),null===e)return ni(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,i?(o=t.mode,i=t.child,s={mode:"hidden",children:s},0==(1&o)&&null!==i?(i.childLanes=0,i.pendingProps=s):i=ju(s,o,0,null),e=Pu(e,o,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=jl(r),t.memoizedState=Pl,e):Nl(t,s));if(null!==(a=e.memoizedState)&&null!==(n=a.dehydrated))return function(e,t,r,n,o,a,i){if(r)return 256&t.flags?(t.flags&=-257,Rl(e,t,i,n=nl(Error(Z(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=n.fallback,o=t.mode,n=ju({mode:"visible",children:n.children},o,0,null),(a=Pu(a,o,i,null)).flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,0!=(1&t.mode)&&mi(t,e.child,null,i),t.child.memoizedState=jl(i),t.memoizedState=Pl,a);if(0==(1&t.mode))return Rl(e,t,i,null);if("$!"===o.data){if(n=o.nextSibling&&o.nextSibling.dataset)var s=n.dgst;return n=s,Rl(e,t,i,n=nl(a=Error(Z(419)),n,void 0))}if(s=0!=(i&e.childLanes),fl||s){if(null!==(n=xc)){switch(i&-i){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&(n.suspendedLanes|i))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Pi(e,o),Qc(n,e,o,-1))}return lu(),Rl(e,t,i,n=nl(Error(Z(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=wu.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,Ja=na(o.nextSibling),Ya=t,Xa=!0,Za=null,null!==e&&(Va[Ba++]=Wa,Va[Ba++]=qa,Va[Ba++]=Ua,Wa=e.id,qa=e.overflow,Ua=t),t=Nl(t,n.children),t.flags|=4096,t)}(e,t,s,o,n,a,r);if(i){i=o.fallback,s=t.mode,n=(a=e.child).sibling;var l={mode:"hidden",children:o.children};return 0==(1&s)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=l,t.deletions=null):(o=Eu(a,l)).subtreeFlags=14680064&a.subtreeFlags,null!==n?i=Eu(n,i):(i=Pu(i,s,r,null)).flags|=2,i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,s=null===(s=e.child.memoizedState)?jl(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~r,t.memoizedState=Pl,o}return e=(i=e.child).sibling,o=Eu(i,{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 Nl(e,t){return(t=ju({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Rl(e,t,r,n){return null!==n&&li(n),mi(t,e.child,null,r),(e=Nl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Tl(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),xi(e.return,t,r)}function Al(e,t,r,n,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=o)}function Il(e,t,r){var n=t.pendingProps,o=n.revealOrder,a=n.tail;if(pl(e,t,n.children,r),0!=(2&(n=Hi.current)))n=1&n|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&&Tl(e,r,t);else if(19===e.tag)Tl(e,r,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}n&=1}if(wa(Hi,n),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;null!==r;)null!==(e=r.alternate)&&null===Gi(e)&&(o=r),r=r.sibling;null===(r=o)?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),Al(t,!1,o,r,a);break;case"backwards":for(r=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Gi(e)){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}Al(t,!0,r,null,a);break;case"together":Al(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ml(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Fl(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),jc|=t.lanes,0==(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(Z(153));if(null!==t.child){for(r=Eu(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Eu(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Dl(e,t){if(!Xa)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function zl(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=14680064&o.subtreeFlags,n|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Ll(e,t,r){var n=t.pendingProps;switch(Qa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zl(t),null;case 1:case 17:return Ea(t.type)&&Ca(),zl(t),null;case 3:return n=t.stateNode,Wi(),ba($a),ba(xa),Yi(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(ai(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==Za&&(Zc(Za),Za=null))),_l(e,t),zl(t),null;case 5:Ki(t);var o=Bi(Vi.current);if(r=t.type,null!==e&&null!=t.stateNode)El(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(null===t.stateNode)throw Error(Z(166));return zl(t),null}if(e=Bi(zi.current),ai(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[ia]=t,n[sa]=a,e=0!=(1&t.mode),r){case"dialog":To("cancel",n),To("close",n);break;case"iframe":case"object":case"embed":To("load",n);break;case"video":case"audio":for(o=0;o<jo.length;o++)To(jo[o],n);break;case"source":To("error",n);break;case"img":case"image":case"link":To("error",n),To("load",n);break;case"details":To("toggle",n);break;case"input":We(n,a),To("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},To("invalid",n);break;case"textarea":Xe(n,a),To("invalid",n)}for(var i in dt(r,a),o=null,a)if(a.hasOwnProperty(i)){var s=a[i];"children"===i?"string"==typeof s?n.textContent!==s&&(!0!==a.suppressHydrationWarning&&Ko(n.textContent,s,e),o=["children",s]):"number"==typeof s&&n.textContent!==""+s&&(!0!==a.suppressHydrationWarning&&Ko(n.textContent,s,e),o=["children",""+s]):te.hasOwnProperty(i)&&null!=s&&"onScroll"===i&&To("scroll",n)}switch(r){case"input":Le(n),He(n,a,!0);break;case"textarea":Le(n),et(n);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(n.onclick=Ho)}n=o,t.updateQueue=n,null!==n&&(t.flags|=4)}else{i=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=tt(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),"select"===r&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[ia]=t,e[sa]=n,kl(e,t,!1,!1),t.stateNode=e;e:{switch(i=ft(r,n),r){case"dialog":To("cancel",e),To("close",e),o=n;break;case"iframe":case"object":case"embed":To("load",e),o=n;break;case"video":case"audio":for(o=0;o<jo.length;o++)To(jo[o],e);o=n;break;case"source":To("error",e),o=n;break;case"img":case"image":case"link":To("error",e),To("load",e),o=n;break;case"details":To("toggle",e),o=n;break;case"input":We(e,n),o=Ue(e,n),To("invalid",e);break;case"option":default:o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=Ne({},n,{value:void 0}),To("invalid",e);break;case"textarea":Xe(e,n),o=Je(e,n),To("invalid",e)}for(a in dt(r,o),s=o)if(s.hasOwnProperty(a)){var l=s[a];"style"===a?ct(e,l):"dangerouslySetInnerHTML"===a?null!=(l=l?l.__html:void 0)&&ot(e,l):"children"===a?"string"==typeof l?("textarea"!==r||""!==l)&&at(e,l):"number"==typeof l&&at(e,""+l):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(te.hasOwnProperty(a)?null!=l&&"onScroll"===a&&To("scroll",e):null!=l&&pe(e,a,l,i))}switch(r){case"input":Le(e),He(e,n,!1);break;case"textarea":Le(e),et(e);break;case"option":null!=n.value&&e.setAttribute("value",""+De(n.value));break;case"select":e.multiple=!!n.multiple,null!=(a=n.value)?Ye(e,!!n.multiple,a,!1):null!=n.defaultValue&&Ye(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Ho)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return zl(t),null;case 6:if(e&&null!=t.stateNode)Cl(e,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(Z(166));if(r=Bi(Vi.current),Bi(zi.current),ai(t)){if(n=t.stateNode,r=t.memoizedProps,n[ia]=t,(a=n.nodeValue!==r)&&null!==(e=Ya))switch(e.tag){case 3:Ko(n.nodeValue,r,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Ko(n.nodeValue,r,0!=(1&e.mode))}a&&(t.flags|=4)}else(n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[ia]=t,t.stateNode=n}return zl(t),null;case 13:if(ba(Hi),n=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(Xa&&null!==Ja&&0!=(1&t.mode)&&0==(128&t.flags))ii(),si(),t.flags|=98560,a=!1;else if(a=ai(t),null!==n&&null!==n.dehydrated){if(null===e){if(!a)throw Error(Z(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(Z(317));a[ia]=t}else si(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;zl(t),a=!1}else null!==Za&&(Zc(Za),Za=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=r,t):((n=null!==n)!==(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&Hi.current)?0===Cc&&(Cc=3):lu())),null!==t.updateQueue&&(t.flags|=4),zl(t),null);case 4:return Wi(),_l(e,t),null===e&&Mo(t.stateNode.containerInfo),zl(t),null;case 10:return Si(t.type._context),zl(t),null;case 19:if(ba(Hi),null===(a=t.memoizedState))return zl(t),null;if(n=0!=(128&t.flags),null===(i=a.rendering))if(n)Dl(a,!1);else{if(0!==Cc||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(i=Gi(e))){for(t.flags|=128,Dl(a,!1),null!==(n=i.updateQueue)&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;null!==r;)e=n,(a=r).flags&=14680066,null===(i=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,e=i.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return wa(Hi,1&Hi.current|2),t.child}e=e.sibling}null!==a.tail&&Wt()>Ic&&(t.flags|=128,n=!0,Dl(a,!1),t.lanes=4194304)}else{if(!n)if(null!==(e=Gi(i))){if(t.flags|=128,n=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Dl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!i.alternate&&!Xa)return zl(t),null}else 2*Wt()-a.renderingStartTime>Ic&&1073741824!==r&&(t.flags|=128,n=!0,Dl(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(null!==(r=a.last)?r.sibling=i:t.child=i,a.last=i)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Wt(),t.sibling=null,r=Hi.current,wa(Hi,n?1&r|2:1&r),t):(zl(t),null);case 22:case 23:return ou(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&0!=(1&t.mode)?0!=(1073741824&_c)&&(zl(t),6&t.subtreeFlags&&(t.flags|=8192)):zl(t),null;case 24:case 25:return null}throw Error(Z(156,t.tag))}function Vl(e,t){switch(Qa(t),t.tag){case 1:return Ea(t.type)&&Ca(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Wi(),ba($a),ba(xa),Yi(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ki(t),null;case 13:if(ba(Hi),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(Z(340));si()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ba(Hi),null;case 4:return Wi(),null;case 10:return Si(t.type._context),null;case 22:case 23:return ou(),null;default:return null}}kl=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},_l=function(){},El=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,Bi(zi.current);var a,i=null;switch(r){case"input":o=Ue(e,o),n=Ue(e,n),i=[];break;case"select":o=Ne({},o,{value:void 0}),n=Ne({},n,{value:void 0}),i=[];break;case"textarea":o=Je(e,o),n=Je(e,n),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof n.onClick&&(e.onclick=Ho)}for(c in dt(r,n),r=null,o)if(!n.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var s=o[c];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(te.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in n){var l=n[c];if(s=null!=o?o[c]:void 0,n.hasOwnProperty(c)&&l!==s&&(null!=l||null!=s))if("style"===c)if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(r||(r={}),r[a]=l[a])}else r||(i||(i=[]),i.push(c,r)),r=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(i=i||[]).push(c,l)):"children"===c?"string"!=typeof l&&"number"!=typeof l||(i=i||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(te.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&To("scroll",e),i||s===l||(i=[])):(i=i||[]).push(c,l))}r&&(i=i||[]).push("style",r);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},Cl=function(e,t,r,n){r!==n&&(t.flags|=4)};var Bl=!1,Ul=!1,Wl="function"==typeof WeakSet?WeakSet:Set,ql=null;function Kl(e,t){var r=e.ref;if(null!==r)if("function"==typeof r)try{r(null)}catch(r){yu(e,t,r)}else r.current=null}function Hl(e,t,r){try{r()}catch(r){yu(e,t,r)}}var Gl=!1;function Ql(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var o=n=n.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&Hl(t,r,a)}o=o.next}while(o!==n)}}function Yl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Jl(e){var t=e.ref;if(null!==t){var r=e.stateNode;e.tag,e=r,"function"==typeof t?t(e):t.current=e}}function Xl(e){var t=e.alternate;null!==t&&(e.alternate=null,Xl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[ia],delete t[sa],delete t[ca],delete t[ua],delete t[da])),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 Zl(e){return 5===e.tag||3===e.tag||4===e.tag}function ec(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Zl(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 tc(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=Ho));else if(4!==n&&null!==(e=e.child))for(tc(e,t,r),e=e.sibling;null!==e;)tc(e,t,r),e=e.sibling}function rc(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(rc(e,t,r),e=e.sibling;null!==e;)rc(e,t,r),e=e.sibling}var nc=null,oc=!1;function ac(e,t,r){for(r=r.child;null!==r;)ic(e,t,r),r=r.sibling}function ic(e,t,r){if(Xt&&"function"==typeof Xt.onCommitFiberUnmount)try{Xt.onCommitFiberUnmount(Jt,r)}catch(e){}switch(r.tag){case 5:Ul||Kl(r,t);case 6:var n=nc,o=oc;nc=null,ac(e,t,r),oc=o,null!==(nc=n)&&(oc?(e=nc,r=r.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)):nc.removeChild(r.stateNode));break;case 18:null!==nc&&(oc?(e=nc,r=r.stateNode,8===e.nodeType?ra(e.parentNode,r):1===e.nodeType&&ra(e,r),Ir(e)):ra(nc,r.stateNode));break;case 4:n=nc,o=oc,nc=r.stateNode.containerInfo,oc=!0,ac(e,t,r),nc=n,oc=o;break;case 0:case 11:case 14:case 15:if(!Ul&&(null!==(n=r.updateQueue)&&null!==(n=n.lastEffect))){o=n=n.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&Hl(r,t,i),o=o.next}while(o!==n)}ac(e,t,r);break;case 1:if(!Ul&&(Kl(r,t),"function"==typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(e){yu(r,t,e)}ac(e,t,r);break;case 21:ac(e,t,r);break;case 22:1&r.mode?(Ul=(n=Ul)||null!==r.memoizedState,ac(e,t,r),Ul=n):ac(e,t,r);break;default:ac(e,t,r)}}function sc(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Wl),t.forEach((function(t){var n=Su.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}function lc(e,t){var r=t.deletions;if(null!==r)for(var n=0;n<r.length;n++){var o=r[n];try{var a=e,i=t,s=i;e:for(;null!==s;){switch(s.tag){case 5:nc=s.stateNode,oc=!1;break e;case 3:case 4:nc=s.stateNode.containerInfo,oc=!0;break e}s=s.return}if(null===nc)throw Error(Z(160));ic(a,i,o),nc=null,oc=!1;var l=o.alternate;null!==l&&(l.return=null),o.return=null}catch(e){yu(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)cc(t,e),t=t.sibling}function cc(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(lc(t,e),uc(e),4&n){try{Ql(3,e,e.return),Yl(3,e)}catch(t){yu(e,e.return,t)}try{Ql(5,e,e.return)}catch(t){yu(e,e.return,t)}}break;case 1:lc(t,e),uc(e),512&n&&null!==r&&Kl(r,r.return);break;case 5:if(lc(t,e),uc(e),512&n&&null!==r&&Kl(r,r.return),32&e.flags){var o=e.stateNode;try{at(o,"")}catch(t){yu(e,e.return,t)}}if(4&n&&null!=(o=e.stateNode)){var a=e.memoizedProps,i=null!==r?r.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===a.type&&null!=a.name&&qe(o,a),ft(s,i);var c=ft(s,a);for(i=0;i<l.length;i+=2){var u=l[i],d=l[i+1];"style"===u?ct(o,d):"dangerouslySetInnerHTML"===u?ot(o,d):"children"===u?at(o,d):pe(o,u,d,c)}switch(s){case"input":Ke(o,a);break;case"textarea":Ze(o,a);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?Ye(o,!!a.multiple,p,!1):f!==!!a.multiple&&(null!=a.defaultValue?Ye(o,!!a.multiple,a.defaultValue,!0):Ye(o,!!a.multiple,a.multiple?[]:"",!1))}o[sa]=a}catch(t){yu(e,e.return,t)}}break;case 6:if(lc(t,e),uc(e),4&n){if(null===e.stateNode)throw Error(Z(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){yu(e,e.return,t)}}break;case 3:if(lc(t,e),uc(e),4&n&&null!==r&&r.memoizedState.isDehydrated)try{Ir(t.containerInfo)}catch(t){yu(e,e.return,t)}break;case 4:default:lc(t,e),uc(e);break;case 13:lc(t,e),uc(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Ac=Wt())),4&n&&sc(e);break;case 22:if(u=null!==r&&null!==r.memoizedState,1&e.mode?(Ul=(c=Ul)||u,lc(t,e),Ul=c):lc(t,e),uc(e),8192&n){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&0!=(1&e.mode))for(ql=e,u=e.child;null!==u;){for(d=ql=u;null!==ql;){switch(p=(f=ql).child,f.tag){case 0:case 11:case 14:case 15:Ql(4,f,f.return);break;case 1:Kl(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){n=f,r=f.return;try{t=n,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){yu(n,r,e)}}break;case 5:Kl(f,f.return);break;case 22:if(null!==f.memoizedState){mc(d);continue}}null!==p?(p.return=f,ql=p):mc(d)}u=u.sibling}e:for(u=null,d=e;;){if(5===d.tag){if(null===u){u=d;try{o=d.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(s=d.stateNode,i=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=lt("display",i))}catch(t){yu(e,e.return,t)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){yu(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:lc(t,e),uc(e),4&n&&sc(e);case 21:}}function uc(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(Zl(r)){var n=r;break e}r=r.return}throw Error(Z(160))}switch(n.tag){case 5:var o=n.stateNode;32&n.flags&&(at(o,""),n.flags&=-33),rc(e,ec(e),o);break;case 3:case 4:var a=n.stateNode.containerInfo;tc(e,ec(e),a);break;default:throw Error(Z(161))}}catch(t){yu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function dc(e,t,r){ql=e,fc(e)}function fc(e,t,r){for(var n=0!=(1&e.mode);null!==ql;){var o=ql,a=o.child;if(22===o.tag&&n){var i=null!==o.memoizedState||Bl;if(!i){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Ul;s=Bl;var c=Ul;if(Bl=i,(Ul=l)&&!c)for(ql=o;null!==ql;)l=(i=ql).child,22===i.tag&&null!==i.memoizedState?hc(o):null!==l?(l.return=i,ql=l):hc(o);for(;null!==a;)ql=a,fc(a),a=a.sibling;ql=o,Bl=s,Ul=c}pc(e)}else 0!=(8772&o.subtreeFlags)&&null!==a?(a.return=o,ql=a):pc(e)}}function pc(e){for(;null!==ql;){var t=ql;if(0!=(8772&t.flags)){var r=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ul||Yl(5,t);break;case 1:var n=t.stateNode;if(4&t.flags&&!Ul)if(null===r)n.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:Qs(t.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Fi(t,a,n);break;case 3:var i=t.updateQueue;if(null!==i){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Fi(t,i,r)}break;case 5:var s=t.stateNode;if(null===r&&4&t.flags){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&Ir(d)}}}break;default:throw Error(Z(163))}Ul||512&t.flags&&Jl(t)}catch(e){yu(t,t.return,e)}}if(t===e){ql=null;break}if(null!==(r=t.sibling)){r.return=t.return,ql=r;break}ql=t.return}}function mc(e){for(;null!==ql;){var t=ql;if(t===e){ql=null;break}var r=t.sibling;if(null!==r){r.return=t.return,ql=r;break}ql=t.return}}function hc(e){for(;null!==ql;){var t=ql;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Yl(4,t)}catch(e){yu(t,r,e)}break;case 1:var n=t.stateNode;if("function"==typeof n.componentDidMount){var o=t.return;try{n.componentDidMount()}catch(e){yu(t,o,e)}}var a=t.return;try{Jl(t)}catch(e){yu(t,a,e)}break;case 5:var i=t.return;try{Jl(t)}catch(e){yu(t,i,e)}}}catch(e){yu(t,t.return,e)}if(t===e){ql=null;break}var s=t.sibling;if(null!==s){s.return=t.return,ql=s;break}ql=t.return}}var vc,yc=Math.ceil,gc=me.ReactCurrentDispatcher,bc=me.ReactCurrentOwner,wc=me.ReactCurrentBatchConfig,Sc=0,xc=null,$c=null,kc=0,_c=0,Ec=ga(0),Cc=0,Pc=null,jc=0,Oc=0,Nc=0,Rc=null,Tc=null,Ac=0,Ic=1/0,Mc=null,Fc=!1,Dc=null,zc=null,Lc=!1,Vc=null,Bc=0,Uc=0,Wc=null,qc=-1,Kc=0;function Hc(){return 0!=(6&Sc)?Wt():-1!==qc?qc:qc=Wt()}function Gc(e){return 0==(1&e.mode)?1:0!=(2&Sc)&&0!==kc?kc&-kc:null!==ci.transition?(0===Kc&&(Kc=lr()),Kc):0!==(e=fr)?e:e=void 0===(e=window.event)?16:Ur(e.type)}function Qc(e,t,r,n){if(50<Uc)throw Uc=0,Wc=null,Error(Z(185));ur(e,r,n),0!=(2&Sc)&&e===xc||(e===xc&&(0==(2&Sc)&&(Oc|=r),4===Cc&&eu(e,kc)),Yc(e,n),1===r&&0===Sc&&0==(1&t.mode)&&(Ic=Wt()+500,Ta&&Ma()))}function Yc(e,t){var r=e.callbackNode;!function(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-Zt(a),s=1<<i,l=o[i];-1===l?0!=(s&r)&&0==(s&n)||(o[i]=ir(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var n=ar(e,e===xc?kc:0);if(0===n)null!==r&&Vt(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(null!=r&&Vt(r),1===t)0===e.tag?function(e){Ta=!0,Ia(e)}(tu.bind(null,e)):Ia(tu.bind(null,e)),ea((function(){0==(6&Sc)&&Ma()})),r=null;else{switch(pr(n)){case 1:r=Kt;break;case 4:r=Ht;break;case 16:default:r=Gt;break;case 536870912:r=Yt}r=xu(r,Jc.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Jc(e,t){if(qc=-1,Kc=0,0!=(6&Sc))throw Error(Z(327));var r=e.callbackNode;if(hu()&&e.callbackNode!==r)return null;var n=ar(e,e===xc?kc:0);if(0===n)return null;if(0!=(30&n)||0!=(n&e.expiredLanes)||t)t=cu(e,n);else{t=n;var o=Sc;Sc|=2;var a=su();for(xc===e&&kc===t||(Mc=null,Ic=Wt()+500,au(e,t));;)try{du();break}catch(t){iu(e,t)}wi(),gc.current=a,Sc=o,null!==$c?t=0:(xc=null,kc=0,t=Cc)}if(0!==t){if(2===t&&(0!==(o=sr(e))&&(n=o,t=Xc(e,o))),1===t)throw r=Pc,au(e,0),eu(e,n),Yc(e,Wt()),r;if(6===t)eu(e,n);else{if(o=e.current.alternate,0==(30&n)&&!function(e){for(var t=e;;){if(16384&t.flags){var r=t.updateQueue;if(null!==r&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var o=r[n],a=o.getSnapshot;o=o.value;try{if(!eo(a(),o))return!1}catch(e){return!1}}}if(r=t.child,16384&t.subtreeFlags&&null!==r)r.return=t,t=r;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=cu(e,n))&&(0!==(a=sr(e))&&(n=a,t=Xc(e,a))),1===t))throw r=Pc,au(e,0),eu(e,n),Yc(e,Wt()),r;switch(e.finishedWork=o,e.finishedLanes=n,t){case 0:case 1:throw Error(Z(345));case 2:case 5:mu(e,Tc,Mc);break;case 3:if(eu(e,n),(130023424&n)===n&&10<(t=Ac+500-Wt())){if(0!==ar(e,0))break;if(((o=e.suspendedLanes)&n)!==n){Hc(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Jo(mu.bind(null,e,Tc,Mc),t);break}mu(e,Tc,Mc);break;case 4:if(eu(e,n),(4194240&n)===n)break;for(t=e.eventTimes,o=-1;0<n;){var i=31-Zt(n);a=1<<i,(i=t[i])>o&&(o=i),n&=~a}if(n=o,10<(n=(120>(n=Wt()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*yc(n/1960))-n)){e.timeoutHandle=Jo(mu.bind(null,e,Tc,Mc),n);break}mu(e,Tc,Mc);break;default:throw Error(Z(329))}}}return Yc(e,Wt()),e.callbackNode===r?Jc.bind(null,e):null}function Xc(e,t){var r=Rc;return e.current.memoizedState.isDehydrated&&(au(e,t).flags|=256),2!==(e=cu(e,t))&&(t=Tc,Tc=r,null!==t&&Zc(t)),e}function Zc(e){null===Tc?Tc=e:Tc.push.apply(Tc,e)}function eu(e,t){for(t&=~Nc,t&=~Oc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Zt(t),n=1<<r;e[r]=-1,t&=~n}}function tu(e){if(0!=(6&Sc))throw Error(Z(327));hu();var t=ar(e,0);if(0==(1&t))return Yc(e,Wt()),null;var r=cu(e,t);if(0!==e.tag&&2===r){var n=sr(e);0!==n&&(t=n,r=Xc(e,n))}if(1===r)throw r=Pc,au(e,0),eu(e,t),Yc(e,Wt()),r;if(6===r)throw Error(Z(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,mu(e,Tc,Mc),Yc(e,Wt()),null}function ru(e,t){var r=Sc;Sc|=1;try{return e(t)}finally{0===(Sc=r)&&(Ic=Wt()+500,Ta&&Ma())}}function nu(e){null!==Vc&&0===Vc.tag&&0==(6&Sc)&&hu();var t=Sc;Sc|=1;var r=wc.transition,n=fr;try{if(wc.transition=null,fr=1,e)return e()}finally{fr=n,wc.transition=r,0==(6&(Sc=t))&&Ma()}}function ou(){_c=Ec.current,ba(Ec)}function au(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,Xo(r)),null!==$c)for(r=$c.return;null!==r;){var n=r;switch(Qa(n),n.tag){case 1:null!=(n=n.type.childContextTypes)&&Ca();break;case 3:Wi(),ba($a),ba(xa),Yi();break;case 5:Ki(n);break;case 4:Wi();break;case 13:case 19:ba(Hi);break;case 10:Si(n.type._context);break;case 22:case 23:ou()}r=r.return}if(xc=e,$c=e=Eu(e.current,null),kc=_c=t,Cc=0,Pc=null,Nc=Oc=jc=0,Tc=Rc=null,null!==_i){for(t=0;t<_i.length;t++)if(null!==(n=(r=_i[t]).interleaved)){r.interleaved=null;var o=n.next,a=r.pending;if(null!==a){var i=a.next;a.next=o,n.next=i}r.pending=n}_i=null}return e}function iu(e,t){for(;;){var r=$c;try{if(wi(),Ji.current=qs,ns){for(var n=es.memoizedState;null!==n;){var o=n.queue;null!==o&&(o.pending=null),n=n.next}ns=!1}if(Zi=0,rs=ts=es=null,os=!1,as=0,bc.current=null,null===r||null===r.return){Cc=1,Pc=t,$c=null;break}e:{var a=e,i=r.return,s=r,l=t;if(t=kc,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l,u=s,d=u.tag;if(0==(1&u.mode)&&(0===d||11===d||15===d)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var p=cl(i);if(null!==p){p.flags&=-257,ul(p,i,s,0,t),1&p.mode&&ll(a,c,t),l=c;var m=(t=p).updateQueue;if(null===m){var h=new Set;h.add(l),t.updateQueue=h}else m.add(l);break e}if(0==(1&t)){ll(a,c,t),lu();break e}l=Error(Z(426))}else if(Xa&&1&s.mode){var v=cl(i);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),ul(v,i,s,0,t),li(rl(l,s));break e}}a=l=rl(l,s),4!==Cc&&(Cc=2),null===Rc?Rc=[a]:Rc.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Ii(a,il(0,l,t));break e;case 1:s=l;var y=a.type,g=a.stateNode;if(0==(128&a.flags)&&("function"==typeof y.getDerivedStateFromError||null!==g&&"function"==typeof g.componentDidCatch&&(null===zc||!zc.has(g)))){a.flags|=65536,t&=-t,a.lanes|=t,Ii(a,sl(a,s,t));break e}}a=a.return}while(null!==a)}pu(r)}catch(e){t=e,$c===r&&null!==r&&($c=r=r.return);continue}break}}function su(){var e=gc.current;return gc.current=qs,null===e?qs:e}function lu(){0!==Cc&&3!==Cc&&2!==Cc||(Cc=4),null===xc||0==(268435455&jc)&&0==(268435455&Oc)||eu(xc,kc)}function cu(e,t){var r=Sc;Sc|=2;var n=su();for(xc===e&&kc===t||(Mc=null,au(e,t));;)try{uu();break}catch(t){iu(e,t)}if(wi(),Sc=r,gc.current=n,null!==$c)throw Error(Z(261));return xc=null,kc=0,Cc}function uu(){for(;null!==$c;)fu($c)}function du(){for(;null!==$c&&!Bt();)fu($c)}function fu(e){var t=vc(e.alternate,e,_c);e.memoizedProps=e.pendingProps,null===t?pu(e):$c=t,bc.current=null}function pu(e){var t=e;do{var r=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(r=Ll(r,t,_c)))return void($c=r)}else{if(null!==(r=Vl(r,t)))return r.flags&=32767,void($c=r);if(null===e)return Cc=6,void($c=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void($c=t);$c=t=e}while(null!==t);0===Cc&&(Cc=5)}function mu(e,t,r){var n=fr,o=wc.transition;try{wc.transition=null,fr=1,function(e,t,r,n){do{hu()}while(null!==Vc);if(0!=(6&Sc))throw Error(Z(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(Z(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-Zt(r),a=1<<o;t[o]=0,n[o]=-1,e[o]=-1,r&=~a}}(e,a),e===xc&&($c=xc=null,kc=0),0==(2064&r.subtreeFlags)&&0==(2064&r.flags)||Lc||(Lc=!0,xu(Gt,(function(){return hu(),null}))),a=0!=(15990&r.flags),0!=(15990&r.subtreeFlags)||a){a=wc.transition,wc.transition=null;var i=fr;fr=1;var s=Sc;Sc|=4,bc.current=null,function(e,t){if(Go=Fr,io(e=ao())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(n&&0!==n.rangeCount){r=n.anchorNode;var o=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch(e){r=null;break e}var i=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var p;d!==r||0!==o&&3!==d.nodeType||(s=i+o),d!==a||0!==n&&3!==d.nodeType||(l=i+n),3===d.nodeType&&(i+=d.nodeValue.length),null!==(p=d.firstChild);)f=d,d=p;for(;;){if(d===e)break t;if(f===r&&++c===o&&(s=i),f===a&&++u===n&&(l=i),null!==(p=d.nextSibling))break;f=(d=f).parentNode}d=p}r=-1===s||-1===l?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Qo={focusedElem:e,selectionRange:r},Fr=!1,ql=t;null!==ql;)if(e=(t=ql).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,ql=e;else for(;null!==ql;){t=ql;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 h=m.memoizedProps,v=m.memoizedState,y=t.stateNode,g=y.getSnapshotBeforeUpdate(t.elementType===t.type?h:Qs(t.type,h),v);y.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(Z(163))}}catch(e){yu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,ql=e;break}ql=t.return}m=Gl,Gl=!1}(e,r),cc(r,e),so(Qo),Fr=!!Go,Qo=Go=null,e.current=r,dc(r),Ut(),Sc=s,fr=i,wc.transition=a}else e.current=r;if(Lc&&(Lc=!1,Vc=e,Bc=o),a=e.pendingLanes,0===a&&(zc=null),function(e){if(Xt&&"function"==typeof Xt.onCommitFiberRoot)try{Xt.onCommitFiberRoot(Jt,e,void 0,128==(128&e.current.flags))}catch(e){}}(r.stateNode),Yc(e,Wt()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],n(o.value,{componentStack:o.stack,digest:o.digest});if(Fc)throw Fc=!1,e=Dc,Dc=null,e;0!=(1&Bc)&&0!==e.tag&&hu(),a=e.pendingLanes,0!=(1&a)?e===Wc?Uc++:(Uc=0,Wc=e):Uc=0,Ma()}(e,t,r,n)}finally{wc.transition=o,fr=n}return null}function hu(){if(null!==Vc){var e=pr(Bc),t=wc.transition,r=fr;try{if(wc.transition=null,fr=16>e?16:e,null===Vc)var n=!1;else{if(e=Vc,Vc=null,Bc=0,0!=(6&Sc))throw Error(Z(331));var o=Sc;for(Sc|=4,ql=e.current;null!==ql;){var a=ql,i=a.child;if(0!=(16&ql.flags)){var s=a.deletions;if(null!==s){for(var l=0;l<s.length;l++){var c=s[l];for(ql=c;null!==ql;){var u=ql;switch(u.tag){case 0:case 11:case 15:Ql(8,u,a)}var d=u.child;if(null!==d)d.return=u,ql=d;else for(;null!==ql;){var f=(u=ql).sibling,p=u.return;if(Xl(u),u===c){ql=null;break}if(null!==f){f.return=p,ql=f;break}ql=p}}}var m=a.alternate;if(null!==m){var h=m.child;if(null!==h){m.child=null;do{var v=h.sibling;h.sibling=null,h=v}while(null!==h)}}ql=a}}if(0!=(2064&a.subtreeFlags)&&null!==i)i.return=a,ql=i;else e:for(;null!==ql;){if(0!=(2048&(a=ql).flags))switch(a.tag){case 0:case 11:case 15:Ql(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,ql=y;break e}ql=a.return}}var g=e.current;for(ql=g;null!==ql;){var b=(i=ql).child;if(0!=(2064&i.subtreeFlags)&&null!==b)b.return=i,ql=b;else e:for(i=g;null!==ql;){if(0!=(2048&(s=ql).flags))try{switch(s.tag){case 0:case 11:case 15:Yl(9,s)}}catch(e){yu(s,s.return,e)}if(s===i){ql=null;break e}var w=s.sibling;if(null!==w){w.return=s.return,ql=w;break e}ql=s.return}}if(Sc=o,Ma(),Xt&&"function"==typeof Xt.onPostCommitFiberRoot)try{Xt.onPostCommitFiberRoot(Jt,e)}catch(e){}n=!0}return n}finally{fr=r,wc.transition=t}}return!1}function vu(e,t,r){e=Ti(e,t=il(0,t=rl(r,t),1),1),t=Hc(),null!==e&&(ur(e,1,t),Yc(e,t))}function yu(e,t,r){if(3===e.tag)vu(e,e,r);else for(;null!==t;){if(3===t.tag){vu(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===zc||!zc.has(n))){t=Ti(t,e=sl(t,e=rl(r,e),1),1),e=Hc(),null!==t&&(ur(t,1,e),Yc(t,e));break}}t=t.return}}function gu(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=Hc(),e.pingedLanes|=e.suspendedLanes&r,xc===e&&(kc&r)===r&&(4===Cc||3===Cc&&(130023424&kc)===kc&&500>Wt()-Ac?au(e,0):Nc|=r),Yc(e,t)}function bu(e,t){0===t&&(0==(1&e.mode)?t=1:(t=nr,0==(130023424&(nr<<=1))&&(nr=4194304)));var r=Hc();null!==(e=Pi(e,t))&&(ur(e,t,r),Yc(e,r))}function wu(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),bu(e,r)}function Su(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;null!==o&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Z(314))}null!==n&&n.delete(t),bu(e,r)}function xu(e,t){return Lt(e,t)}function $u(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ku(e,t,r,n){return new $u(e,t,r,n)}function _u(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Eu(e,t){var r=e.alternate;return null===r?((r=ku(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=14680064&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Cu(e,t,r,n,o,a){var i=2;if(n=e,"function"==typeof e)_u(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case ye:return Pu(r.children,o,a,t);case ge:i=8,o|=8;break;case be:return(e=ku(12,r,t,2|o)).elementType=be,e.lanes=a,e;case $e:return(e=ku(13,r,t,o)).elementType=$e,e.lanes=a,e;case ke:return(e=ku(19,r,t,o)).elementType=ke,e.lanes=a,e;case Ce:return ju(r,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case we:i=10;break e;case Se:i=9;break e;case xe:i=11;break e;case _e:i=14;break e;case Ee:i=16,n=null;break e}throw Error(Z(130,null==e?e:typeof e,""))}return(t=ku(i,r,t,o)).elementType=e,t.type=n,t.lanes=a,t}function Pu(e,t,r,n){return(e=ku(7,e,n,t)).lanes=r,e}function ju(e,t,r,n){return(e=ku(22,e,n,t)).elementType=Ce,e.lanes=r,e.stateNode={isHidden:!1},e}function Ou(e,t,r){return(e=ku(6,e,null,t)).lanes=r,e}function Nu(e,t,r){return(t=ku(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ru(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=cr(0),this.expirationTimes=cr(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cr(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Tu(e,t,r,n,o,a,i,s,l){return e=new Ru(e,t,r,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=ku(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oi(a),e}function Au(e){if(!e)return Sa;e:{if(It(e=e._reactInternals)!==e||1!==e.tag)throw Error(Z(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ea(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(Z(171))}if(1===e.tag){var r=e.type;if(Ea(r))return ja(e,r,t)}return t}function Iu(e,t,r,n,o,a,i,s,l){return(e=Tu(r,n,!0,e,0,a,0,s,l)).context=Au(null),r=e.current,(a=Ri(n=Hc(),o=Gc(r))).callback=null!=t?t:null,Ti(r,a,o),e.current.lanes=o,ur(e,o,n),Yc(e,n),e}function Mu(e,t,r,n){var o=t.current,a=Hc(),i=Gc(o);return r=Au(r),null===t.context?t.context=r:t.pendingContext=r,(t=Ri(a,i)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=Ti(o,t,i))&&(Qc(e,o,i,a),Ai(e,o,i)),i}function Fu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Du(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function zu(e,t){Du(e,t),(e=e.alternate)&&Du(e,t)}vc=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||$a.current)fl=!0;else{if(0==(e.lanes&r)&&0==(128&t.flags))return fl=!1,function(e,t,r){switch(t.tag){case 3:xl(t),si();break;case 5:qi(t);break;case 1:Ea(t.type)&&Oa(t);break;case 4:Ui(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;wa(vi,n._currentValue),n._currentValue=o;break;case 13:if(null!==(n=t.memoizedState))return null!==n.dehydrated?(wa(Hi,1&Hi.current),t.flags|=128,null):0!=(r&t.child.childLanes)?Ol(e,t,r):(wa(Hi,1&Hi.current),null!==(e=Fl(e,t,r))?e.sibling:null);wa(Hi,1&Hi.current);break;case 19:if(n=0!=(r&t.childLanes),0!=(128&e.flags)){if(n)return Il(e,t,r);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),wa(Hi,Hi.current),n)break;return null;case 22:case 23:return t.lanes=0,yl(e,t,r)}return Fl(e,t,r)}(e,t,r);fl=0!=(131072&e.flags)}else fl=!1,Xa&&0!=(1048576&t.flags)&&Ha(t,La,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ml(e,t),e=t.pendingProps;var o=_a(t,xa.current);$i(t,r),o=cs(null,t,n,e,o,r);var a=us();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,Ea(n)?(a=!0,Oa(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Oi(t),o.updater=Js,t.stateNode=o,o._reactInternals=t,tl(t,n,e,r),t=Sl(null,t,n,!0,a,r)):(t.tag=0,Xa&&a&&Ga(t),pl(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ml(e,t),e=t.pendingProps,n=(o=n._init)(n._payload),t.type=n,o=t.tag=function(e){if("function"==typeof e)return _u(e)?1:0;if(null!=e){if((e=e.$$typeof)===xe)return 11;if(e===_e)return 14}return 2}(n),e=Qs(n,e),o){case 0:t=bl(null,t,n,e,r);break e;case 1:t=wl(null,t,n,e,r);break e;case 11:t=ml(null,t,n,e,r);break e;case 14:t=hl(null,t,n,Qs(n.type,e),r);break e}throw Error(Z(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,bl(e,t,n,o=t.elementType===n?o:Qs(n,o),r);case 1:return n=t.type,o=t.pendingProps,wl(e,t,n,o=t.elementType===n?o:Qs(n,o),r);case 3:e:{if(xl(t),null===e)throw Error(Z(387));n=t.pendingProps,o=(a=t.memoizedState).element,Ni(e,t),Mi(t,n,null,r);var i=t.memoizedState;if(n=i.element,a.isDehydrated){if(a={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=$l(e,t,n,r,o=rl(Error(Z(423)),t));break e}if(n!==o){t=$l(e,t,n,r,o=rl(Error(Z(424)),t));break e}for(Ja=na(t.stateNode.containerInfo.firstChild),Ya=t,Xa=!0,Za=null,r=hi(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(si(),n===o){t=Fl(e,t,r);break e}pl(e,t,n,r)}t=t.child}return t;case 5:return qi(t),null===e&&ni(t),n=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,i=o.children,Yo(n,o)?i=null:null!==a&&Yo(n,a)&&(t.flags|=32),gl(e,t),pl(e,t,i,r),t.child;case 6:return null===e&&ni(t),null;case 13:return Ol(e,t,r);case 4:return Ui(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=mi(t,null,n,r):pl(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,ml(e,t,n,o=t.elementType===n?o:Qs(n,o),r);case 7:return pl(e,t,t.pendingProps,r),t.child;case 8:case 12:return pl(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,wa(vi,n._currentValue),n._currentValue=i,null!==a)if(eo(a.value,i)){if(a.children===o.children&&!$a.current){t=Fl(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){i=a.child;for(var l=s.firstContext;null!==l;){if(l.context===n){if(1===a.tag){(l=Ri(-1,r&-r)).tag=2;var c=a.updateQueue;if(null!==c){var u=(c=c.shared).pending;null===u?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=r,null!==(l=a.alternate)&&(l.lanes|=r),xi(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(10===a.tag)i=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(i=a.return))throw Error(Z(341));i.lanes|=r,null!==(s=i.alternate)&&(s.lanes|=r),xi(i,r,t),i=a.sibling}else i=a.child;if(null!==i)i.return=a;else for(i=a;null!==i;){if(i===t){i=null;break}if(null!==(a=i.sibling)){a.return=i.return,i=a;break}i=i.return}a=i}pl(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,$i(t,r),n=n(o=ki(o)),t.flags|=1,pl(e,t,n,r),t.child;case 14:return o=Qs(n=t.type,t.pendingProps),hl(e,t,n,o=Qs(n.type,o),r);case 15:return vl(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Qs(n,o),Ml(e,t),t.tag=1,Ea(n)?(e=!0,Oa(t)):e=!1,$i(t,r),Zs(t,n,o),tl(t,n,o,r),Sl(null,t,n,!0,e,r);case 19:return Il(e,t,r);case 22:return yl(e,t,r)}throw Error(Z(156,t.tag))};var Lu="function"==typeof reportError?reportError:function(e){console.error(e)};function Vu(e){this._internalRoot=e}function Bu(e){this._internalRoot=e}function Uu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Wu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function qu(){}function Ku(e,t,r,n,o){var a=r._reactRootContainer;if(a){var i=a;if("function"==typeof o){var s=o;o=function(){var e=Fu(i);s.call(e)}}Mu(t,i,e,o)}else i=function(e,t,r,n,o){if(o){if("function"==typeof n){var a=n;n=function(){var e=Fu(i);a.call(e)}}var i=Iu(t,n,e,0,null,!1,0,"",qu);return e._reactRootContainer=i,e[la]=i.current,Mo(8===e.nodeType?e.parentNode:e),nu(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof n){var s=n;n=function(){var e=Fu(l);s.call(e)}}var l=Tu(e,0,!1,null,0,!1,0,"",qu);return e._reactRootContainer=l,e[la]=l.current,Mo(8===e.nodeType?e.parentNode:e),nu((function(){Mu(t,l,r,n)})),l}(r,t,e,o,n);return Fu(i)}Bu.prototype.render=Vu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(Z(409));Mu(e,t,null,null)},Bu.prototype.unmount=Vu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;nu((function(){Mu(null,e,null,null)})),t[la]=null}},Bu.prototype.unstable_scheduleHydration=function(e){if(e){var t=yr();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Er.length&&0!==t&&t<Er[r].priority;r++);Er.splice(r,0,e),0===r&&Or(e)}},mr=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=or(t.pendingLanes);0!==r&&(dr(t,1|r),Yc(t,Wt()),0==(6&Sc)&&(Ic=Wt()+500,Ma()))}break;case 13:nu((function(){var t=Pi(e,1);if(null!==t){var r=Hc();Qc(t,e,1,r)}})),zu(e,1)}},hr=function(e){if(13===e.tag){var t=Pi(e,134217728);if(null!==t)Qc(t,e,134217728,Hc());zu(e,134217728)}},vr=function(e){if(13===e.tag){var t=Gc(e),r=Pi(e,t);if(null!==r)Qc(r,e,t,Hc());zu(e,t)}},yr=function(){return fr},gr=function(e,t){var r=fr;try{return fr=e,t()}finally{fr=r}},ht=function(e,t,r){switch(t){case"input":if(Ke(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 n=r[t];if(n!==e&&n.form===e.form){var o=ha(n);if(!o)throw Error(Z(90));Ve(n),Ke(n,o)}}}break;case"textarea":Ze(e,r);break;case"select":null!=(t=r.value)&&Ye(e,!!r.multiple,t,!1)}},St=ru,xt=nu;var Hu={usingClientEntryPoint:!1,Events:[pa,ma,ha,bt,wt,ru]},Gu={findFiberByHostInstance:fa,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Qu={bundleType:Gu.bundleType,version:Gu.version,rendererPackageName:Gu.rendererPackageName,rendererConfig:Gu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:me.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Dt(e))?null:e.stateNode},findFiberByHostInstance:Gu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Yu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yu.isDisabled&&Yu.supportsFiber)try{Jt=Yu.inject(Qu),Xt=Yu}catch(cL){}}H.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Hu,H.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Uu(t))throw Error(Z(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:ve,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},H.createRoot=function(e,t){if(!Uu(e))throw Error(Z(299));var r=!1,n="",o=Lu;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(n=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Tu(e,1,!1,null,0,r,0,n,o),e[la]=t.current,Mo(8===e.nodeType?e.parentNode:e),new Vu(t)},H.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(Z(188));throw e=Object.keys(e).join(","),Error(Z(268,e))}return e=null===(e=Dt(t))?null:e.stateNode},H.flushSync=function(e){return nu(e)},H.hydrate=function(e,t,r){if(!Wu(t))throw Error(Z(200));return Ku(null,e,t,!0,r)},H.hydrateRoot=function(e,t,r){if(!Uu(e))throw Error(Z(405));var n=null!=r&&r.hydratedSources||null,o=!1,a="",i=Lu;if(null!=r&&(!0===r.unstable_strictMode&&(o=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(i=r.onRecoverableError)),t=Iu(t,null,e,1,null!=r?r:null,o,0,a,i),e[la]=t.current,Mo(e),n)for(e=0;e<n.length;e++)o=(o=(r=n[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Bu(t)},H.render=function(e,t,r){if(!Wu(t))throw Error(Z(200));return Ku(null,e,t,!1,r)},H.unmountComponentAtNode=function(e){if(!Wu(e))throw Error(Z(40));return!!e._reactRootContainer&&(nu((function(){Ku(null,null,e,!1,(function(){e._reactRootContainer=null,e[la]=null}))})),!0)},H.unstable_batchedUpdates=ru,H.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Wu(r))throw Error(Z(200));if(null==e||void 0===e._reactInternals)throw Error(Z(38));return Ku(e,t,r,!1,n)},H.version="18.3.1-next-f1338f8080-20240426",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),K.exports=H;var Ju=K.exports,Xu=r(Ju),Zu=Ju;function ed(e){return"object"==typeof e&&null!==e&&(!("number"==typeof e.lastModified&&"undefined"!=typeof File&&e instanceof File)&&(!("function"==typeof e.getMonth&&"undefined"!=typeof Date&&e instanceof Date)&&!Array.isArray(e)))}function td(e){if(""===e)return;if(null===e)return null;if(/\.$/.test(e))return e;if(/\.0$/.test(e))return e;if(/\.\d*0$/.test(e))return e;const t=Number(e);return"number"==typeof t&&!Number.isNaN(t)?t:e}q.createRoot=Zu.createRoot,q.hydrateRoot=Zu.hydrateRoot;const rd="__additional_property",nd="additionalProperties",od="allOf",ad="anyOf",id="const",sd="default",ld="dependencies",cd="enum",ud="__errors",dd="$id",fd="if",pd="items",md="$name",hd="oneOf",vd="properties",yd="required",gd="submitButtonOptions",bd="$ref",wd="__rjsf_additionalProperties",Sd="__rjsf_rootSchema",xd="ui:widget",$d="ui:options";function kd(e={},t={}){return Object.keys(e).filter((e=>0===e.indexOf("ui:"))).reduce(((t,r)=>{const n=e[r];return r===xd&&ed(n)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),t):r===$d&&ed(n)?{...t,...n}:{...t,[r.substring(3)]:n}}),{...t})}function _d(e,t={},r){if(!e.additionalProperties)return!1;const{expandable:n=!0}=kd(t);return!1===n?n:void 0===e.maxProperties||!r||Object.keys(r).length<e.maxProperties}var Ed="object"==typeof t&&t&&t.Object===Object&&t,Cd=Ed,Pd="object"==typeof self&&self&&self.Object===Object&&self,jd=Cd||Pd||Function("return this")(),Od=jd.Symbol,Nd=Od,Rd=Object.prototype,Td=Rd.hasOwnProperty,Ad=Rd.toString,Id=Nd?Nd.toStringTag:void 0;var Md=function(e){var t=Td.call(e,Id),r=e[Id];try{e[Id]=void 0;var n=!0}catch(e){}var o=Ad.call(e);return n&&(t?e[Id]=r:delete e[Id]),o},Fd=Object.prototype.toString;var Dd=Md,zd=function(e){return Fd.call(e)},Ld=Od?Od.toStringTag:void 0;var Vd=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ld&&Ld in Object(e)?Dd(e):zd(e)};var Bd=function(e,t){return function(r){return e(t(r))}},Ud=Bd(Object.getPrototypeOf,Object);var Wd=function(e){return null!=e&&"object"==typeof e},qd=Vd,Kd=Ud,Hd=Wd,Gd=Function.prototype,Qd=Object.prototype,Yd=Gd.toString,Jd=Qd.hasOwnProperty,Xd=Yd.call(Object);var Zd=function(e){if(!Hd(e)||"[object Object]"!=qd(e))return!1;var t=Kd(e);if(null===t)return!0;var r=Jd.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Yd.call(r)==Xd},ef=r(Zd);function tf(e){const t={[ud]:[],addError(e){this[ud].push(e)}};if(Array.isArray(e))return e.reduce(((e,t,r)=>({...e,[r]:tf(t)})),t);if(ef(e)){const r=e;return Object.keys(r).reduce(((e,t)=>({...e,[t]:tf(r[t])})),t)}return t}var rf=function(){this.__data__=[],this.size=0};var nf=function(e,t){return e===t||e!=e&&t!=t},of=nf;var af=function(e,t){for(var r=e.length;r--;)if(of(e[r][0],t))return r;return-1},sf=af,lf=Array.prototype.splice;var cf=function(e){var t=this.__data__,r=sf(t,e);return!(r<0)&&(r==t.length-1?t.pop():lf.call(t,r,1),--this.size,!0)},uf=af;var df=function(e){var t=this.__data__,r=uf(t,e);return r<0?void 0:t[r][1]},ff=af;var pf=af;var mf=function(e,t){var r=this.__data__,n=pf(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},hf=rf,vf=cf,yf=df,gf=function(e){return ff(this.__data__,e)>-1},bf=mf;function wf(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}wf.prototype.clear=hf,wf.prototype.delete=vf,wf.prototype.get=yf,wf.prototype.has=gf,wf.prototype.set=bf;var Sf=wf,xf=Sf;var $f=function(){this.__data__=new xf,this.size=0};var kf=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};var _f=function(e){return this.__data__.get(e)};var Ef=function(e){return this.__data__.has(e)};var Cf=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Pf=r(Cf),jf=Vd,Of=Cf;var Nf,Rf=function(e){if(!Of(e))return!1;var t=jf(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Tf=jd["__core-js_shared__"],Af=(Nf=/[^.]+$/.exec(Tf&&Tf.keys&&Tf.keys.IE_PROTO||""))?"Symbol(src)_1."+Nf:"";var If=function(e){return!!Af&&Af in e},Mf=Function.prototype.toString;var Ff=function(e){if(null!=e){try{return Mf.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Df=Rf,zf=If,Lf=Cf,Vf=Ff,Bf=/^\[object .+?Constructor\]$/,Uf=Function.prototype,Wf=Object.prototype,qf=Uf.toString,Kf=Wf.hasOwnProperty,Hf=RegExp("^"+qf.call(Kf).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Gf=function(e){return!(!Lf(e)||zf(e))&&(Df(e)?Hf:Bf).test(Vf(e))},Qf=function(e,t){return null==e?void 0:e[t]};var Yf=function(e,t){var r=Qf(e,t);return Gf(r)?r:void 0},Jf=Yf(jd,"Map"),Xf=Yf(Object,"create"),Zf=Xf;var ep=function(){this.__data__=Zf?Zf(null):{},this.size=0};var tp=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},rp=Xf,np=Object.prototype.hasOwnProperty;var op=function(e){var t=this.__data__;if(rp){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return np.call(t,e)?t[e]:void 0},ap=Xf,ip=Object.prototype.hasOwnProperty;var sp=Xf;var lp=ep,cp=tp,up=op,dp=function(e){var t=this.__data__;return ap?void 0!==t[e]:ip.call(t,e)},fp=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=sp&&void 0===t?"__lodash_hash_undefined__":t,this};function pp(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}pp.prototype.clear=lp,pp.prototype.delete=cp,pp.prototype.get=up,pp.prototype.has=dp,pp.prototype.set=fp;var mp=pp,hp=Sf,vp=Jf;var yp=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},gp=yp;var bp=function(e,t){var r=e.__data__;return gp(t)?r["string"==typeof t?"string":"hash"]:r.map},wp=bp;var Sp=bp;var xp=bp;var $p=bp;var kp=function(){this.size=0,this.__data__={hash:new mp,map:new(vp||hp),string:new mp}},_p=function(e){var t=wp(this,e).delete(e);return this.size-=t?1:0,t},Ep=function(e){return Sp(this,e).get(e)},Cp=function(e){return xp(this,e).has(e)},Pp=function(e,t){var r=$p(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function jp(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}jp.prototype.clear=kp,jp.prototype.delete=_p,jp.prototype.get=Ep,jp.prototype.has=Cp,jp.prototype.set=Pp;var Op=jp,Np=Sf,Rp=Jf,Tp=Op;var Ap=Sf,Ip=$f,Mp=kf,Fp=_f,Dp=Ef,zp=function(e,t){var r=this.__data__;if(r instanceof Np){var n=r.__data__;if(!Rp||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Tp(n)}return r.set(e,t),this.size=r.size,this};function Lp(e){var t=this.__data__=new Ap(e);this.size=t.size}Lp.prototype.clear=Ip,Lp.prototype.delete=Mp,Lp.prototype.get=Fp,Lp.prototype.has=Dp,Lp.prototype.set=zp;var Vp=Lp;var Bp=Op,Up=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Wp=function(e){return this.__data__.has(e)};function qp(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Bp;++t<r;)this.add(e[t])}qp.prototype.add=qp.prototype.push=Up,qp.prototype.has=Wp;var Kp=qp;var Hp=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1};var Gp=function(e,t){return e.has(t)},Qp=Kp,Yp=Hp,Jp=Gp;var Xp=function(e,t,r,n,o,a){var i=1&r,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,p=2&r?new Qp:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(n)var v=i?n(h,m,d,t,e,a):n(m,h,d,e,t,a);if(void 0!==v){if(v)continue;f=!1;break}if(p){if(!Yp(t,(function(e,t){if(!Jp(p,t)&&(m===e||o(m,e,r,n,a)))return p.push(t)}))){f=!1;break}}else if(m!==h&&!o(m,h,r,n,a)){f=!1;break}}return a.delete(e),a.delete(t),f},Zp=jd.Uint8Array;var em=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r};var tm=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r},rm=Zp,nm=nf,om=Xp,am=em,im=tm,sm=Od?Od.prototype:void 0,lm=sm?sm.valueOf:void 0;var cm=function(e,t,r,n,o,a,i){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new rm(e),new rm(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return nm(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=am;case"[object Set]":var l=1&n;if(s||(s=im),e.size!=t.size&&!l)return!1;var c=i.get(e);if(c)return c==t;n|=2,i.set(e,t);var u=om(s(e),s(t),n,o,a,i);return i.delete(e),u;case"[object Symbol]":if(lm)return lm.call(e)==lm.call(t)}return!1};var um=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e},dm=Array.isArray,fm=um,pm=dm;var mm=function(e,t,r){var n=t(e);return pm(e)?n:fm(n,r(e))};var hm=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a};var vm=function(){return[]},ym=hm,gm=vm,bm=Object.prototype.propertyIsEnumerable,wm=Object.getOwnPropertySymbols,Sm=wm?function(e){return null==e?[]:(e=Object(e),ym(wm(e),(function(t){return bm.call(e,t)})))}:gm;var xm=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},$m=Vd,km=Wd;var _m=function(e){return km(e)&&"[object Arguments]"==$m(e)},Em=Wd,Cm=Object.prototype,Pm=Cm.hasOwnProperty,jm=Cm.propertyIsEnumerable,Om=_m(function(){return arguments}())?_m:function(e){return Em(e)&&Pm.call(e,"callee")&&!jm.call(e,"callee")},Nm=Om,Rm={exports:{}};var Tm=function(){return!1};!function(e,t){var r=jd,n=Tm,o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o?r.Buffer:void 0,s=(i?i.isBuffer:void 0)||n;e.exports=s}(Rm,Rm.exports);var Am=Rm.exports,Im=/^(?:0|[1-9]\d*)$/;var Mm=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Im.test(e))&&e>-1&&e%1==0&&e<t};var Fm=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Dm=Vd,zm=Fm,Lm=Wd,Vm={};Vm["[object Float32Array]"]=Vm["[object Float64Array]"]=Vm["[object Int8Array]"]=Vm["[object Int16Array]"]=Vm["[object Int32Array]"]=Vm["[object Uint8Array]"]=Vm["[object Uint8ClampedArray]"]=Vm["[object Uint16Array]"]=Vm["[object Uint32Array]"]=!0,Vm["[object Arguments]"]=Vm["[object Array]"]=Vm["[object ArrayBuffer]"]=Vm["[object Boolean]"]=Vm["[object DataView]"]=Vm["[object Date]"]=Vm["[object Error]"]=Vm["[object Function]"]=Vm["[object Map]"]=Vm["[object Number]"]=Vm["[object Object]"]=Vm["[object RegExp]"]=Vm["[object Set]"]=Vm["[object String]"]=Vm["[object WeakMap]"]=!1;var Bm=function(e){return Lm(e)&&zm(e.length)&&!!Vm[Dm(e)]};var Um=function(e){return function(t){return e(t)}},Wm={exports:{}};!function(e,t){var r=Ed,n=t&&!t.nodeType&&t,o=n&&e&&!e.nodeType&&e,a=o&&o.exports===n&&r.process,i=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=i}(Wm,Wm.exports);var qm=Wm.exports,Km=Bm,Hm=Um,Gm=qm&&qm.isTypedArray,Qm=Gm?Hm(Gm):Km,Ym=xm,Jm=Nm,Xm=dm,Zm=Am,eh=Mm,th=Qm,rh=Object.prototype.hasOwnProperty;var nh=function(e,t){var r=Xm(e),n=!r&&Jm(e),o=!r&&!n&&Zm(e),a=!r&&!n&&!o&&th(e),i=r||n||o||a,s=i?Ym(e.length,String):[],l=s.length;for(var c in e)!t&&!rh.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||eh(c,l))||s.push(c);return s},oh=Object.prototype;var ah=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||oh)},ih=Bd(Object.keys,Object),sh=ah,lh=ih,ch=Object.prototype.hasOwnProperty;var uh=function(e){if(!sh(e))return lh(e);var t=[];for(var r in Object(e))ch.call(e,r)&&"constructor"!=r&&t.push(r);return t},dh=Rf,fh=Fm;var ph=function(e){return null!=e&&fh(e.length)&&!dh(e)},mh=nh,hh=uh,vh=ph;var yh=function(e){return vh(e)?mh(e):hh(e)},gh=r(yh),bh=mm,wh=Sm,Sh=yh;var xh=function(e){return bh(e,Sh,wh)},$h=xh,kh=Object.prototype.hasOwnProperty;var _h=function(e,t,r,n,o,a){var i=1&r,s=$h(e),l=s.length;if(l!=$h(t).length&&!i)return!1;for(var c=l;c--;){var u=s[c];if(!(i?u in t:kh.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=i;++c<l;){var h=e[u=s[c]],v=t[u];if(n)var y=i?n(v,h,u,t,e,a):n(h,v,u,e,t,a);if(!(void 0===y?h===v||o(h,v,r,n,a):y)){p=!1;break}m||(m="constructor"==u)}if(p&&!m){var g=e.constructor,b=t.constructor;g==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b||(p=!1)}return a.delete(e),a.delete(t),p},Eh=Yf(jd,"DataView"),Ch=Yf(jd,"Promise"),Ph=Yf(jd,"Set"),jh=Eh,Oh=Jf,Nh=Ch,Rh=Ph,Th=Yf(jd,"WeakMap"),Ah=Vd,Ih=Ff,Mh="[object Map]",Fh="[object Promise]",Dh="[object Set]",zh="[object WeakMap]",Lh="[object DataView]",Vh=Ih(jh),Bh=Ih(Oh),Uh=Ih(Nh),Wh=Ih(Rh),qh=Ih(Th),Kh=Ah;(jh&&Kh(new jh(new ArrayBuffer(1)))!=Lh||Oh&&Kh(new Oh)!=Mh||Nh&&Kh(Nh.resolve())!=Fh||Rh&&Kh(new Rh)!=Dh||Th&&Kh(new Th)!=zh)&&(Kh=function(e){var t=Ah(e),r="[object Object]"==t?e.constructor:void 0,n=r?Ih(r):"";if(n)switch(n){case Vh:return Lh;case Bh:return Mh;case Uh:return Fh;case Wh:return Dh;case qh:return zh}return t});var Hh=Kh,Gh=Vp,Qh=Xp,Yh=cm,Jh=_h,Xh=Hh,Zh=dm,ev=Am,tv=Qm,rv="[object Arguments]",nv="[object Array]",ov="[object Object]",av=Object.prototype.hasOwnProperty;var iv=function(e,t,r,n,o,a){var i=Zh(e),s=Zh(t),l=i?nv:Xh(e),c=s?nv:Xh(t),u=(l=l==rv?ov:l)==ov,d=(c=c==rv?ov:c)==ov,f=l==c;if(f&&ev(e)){if(!ev(t))return!1;i=!0,u=!1}if(f&&!u)return a||(a=new Gh),i||tv(e)?Qh(e,t,r,n,o,a):Yh(e,t,l,r,n,o,a);if(!(1&r)){var p=u&&av.call(e,"__wrapped__"),m=d&&av.call(t,"__wrapped__");if(p||m){var h=p?e.value():e,v=m?t.value():t;return a||(a=new Gh),o(h,v,r,n,a)}}return!!f&&(a||(a=new Gh),Jh(e,t,r,n,o,a))},sv=Wd;var lv=function e(t,r,n,o,a){return t===r||(null==t||null==r||!sv(t)&&!sv(r)?t!=t&&r!=r:iv(t,r,n,o,e,a))},cv=lv;var uv=r((function(e,t,r){var n=(r="function"==typeof r?r:void 0)?r(e,t):void 0;return void 0===n?cv(e,t,void 0,r):!!n}));function dv(e,t){return uv(e,t,((e,t)=>{if("function"==typeof e&&"function"==typeof t)return!0}))}var fv=Vd,pv=Wd;var mv=function(e){return"symbol"==typeof e||pv(e)&&"[object Symbol]"==fv(e)},hv=dm,vv=mv,yv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gv=/^\w*$/;var bv=function(e,t){if(hv(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!vv(e))||(gv.test(e)||!yv.test(e)||null!=t&&e in Object(t))},wv=Op;function Sv(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(Sv.Cache||wv),r}Sv.Cache=wv;var xv=Sv;var $v=function(e){var t=xv(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t},kv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_v=/\\(\\)?/g,Ev=$v((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(kv,(function(e,r,n,o){t.push(n?o.replace(_v,"$1"):r||e)})),t})),Cv=Ev;var Pv=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},jv=Pv,Ov=dm,Nv=mv,Rv=Od?Od.prototype:void 0,Tv=Rv?Rv.toString:void 0;var Av=function e(t){if("string"==typeof t)return t;if(Ov(t))return jv(t,e)+"";if(Nv(t))return Tv?Tv.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r},Iv=Av;var Mv=function(e){return null==e?"":Iv(e)},Fv=dm,Dv=bv,zv=Cv,Lv=Mv;var Vv=function(e,t){return Fv(e)?e:Dv(e,t)?[e]:zv(Lv(e))},Bv=mv;var Uv=function(e){if("string"==typeof e||Bv(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},Wv=Vv,qv=Uv;var Kv=function(e,t){for(var r=0,n=(t=Wv(t,e)).length;null!=e&&r<n;)e=e[qv(t[r++])];return r&&r==n?e:void 0},Hv=Kv;var Gv=function(e,t,r){var n=null==e?void 0:Hv(e,t);return void 0===n?r:n},Qv=r(Gv),Yv=uh,Jv=Hh,Xv=Nm,Zv=dm,ey=ph,ty=Am,ry=ah,ny=Qm,oy=Object.prototype.hasOwnProperty;var ay=r((function(e){if(null==e)return!0;if(ey(e)&&(Zv(e)||"string"==typeof e||"function"==typeof e.splice||ty(e)||ny(e)||Xv(e)))return!e.length;var t=Jv(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(ry(e))return!Yv(e).length;for(var r in e)if(oy.call(e,r))return!1;return!0})),iy={},sy=/~/,ly=/~[01]/g;function cy(e){switch(e){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+e)}function uy(e){return sy.test(e)?e.replace(ly,cy):e}function dy(e){if("string"==typeof e){if(""===(e=e.split("/"))[0])return e;throw new Error("Invalid JSON pointer.")}if(Array.isArray(e)){for(const t of e)if("string"!=typeof t&&"number"!=typeof t)throw new Error("Invalid JSON pointer. Must be of type string or number.");return e}throw new Error("Invalid JSON pointer.")}function fy(e,t){if("object"!=typeof e)throw new Error("Invalid input object.");var r=(t=dy(t)).length;if(1===r)return e;for(var n=1;n<r;){if(e=e[uy(t[n++])],r===n)return e;if("object"!=typeof e||null===e)return}}function py(e,t,r){if("object"!=typeof e)throw new Error("Invalid input object.");if(0===(t=dy(t)).length)throw new Error("Invalid JSON pointer for set.");return function(e,t,r){for(var n,o,a=1,i=t.length;a<i;){if("constructor"===t[a]||"prototype"===t[a]||"__proto__"===t[a])return e;if(n=uy(t[a++]),o=i>a,void 0===e[n]&&(Array.isArray(e)&&"-"===n&&(n=e.length),o&&(""!==t[a]&&t[a]<1/0||"-"===t[a]?e[n]=[]:e[n]={})),!o)break;e=e[n]}var s=e[n];return void 0===r?delete e[n]:e[n]=r,s}(e,t,r)}iy.get=fy,iy.set=py,iy.compile=function(e){var t=dy(e);return{get:function(e){return fy(e,t)},set:function(e,r){return py(e,t,r)}}};var my=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e},hy=Yf,vy=function(){try{var e=hy(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),yy=vy;var gy=function(e,t,r){"__proto__"==t&&yy?yy(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},by=gy,wy=nf,Sy=Object.prototype.hasOwnProperty;var xy=function(e,t,r){var n=e[t];Sy.call(e,t)&&wy(n,r)&&(void 0!==r||t in e)||by(e,t,r)},$y=xy,ky=gy;var _y=function(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var s=t[a],l=n?n(r[s],e[s],s,r,e):void 0;void 0===l&&(l=e[s]),o?ky(r,s,l):$y(r,s,l)}return r},Ey=_y,Cy=yh;var Py=function(e,t){return e&&Ey(t,Cy(t),e)};var jy=Cf,Oy=ah,Ny=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},Ry=Object.prototype.hasOwnProperty;var Ty=nh,Ay=function(e){if(!jy(e))return Ny(e);var t=Oy(e),r=[];for(var n in e)("constructor"!=n||!t&&Ry.call(e,n))&&r.push(n);return r},Iy=ph;var My=function(e){return Iy(e)?Ty(e,!0):Ay(e)},Fy=_y,Dy=My;var zy=function(e,t){return e&&Fy(t,Dy(t),e)},Ly={exports:{}};!function(e,t){var r=jd,n=t&&!t.nodeType&&t,o=n&&e&&!e.nodeType&&e,a=o&&o.exports===n?r.Buffer:void 0,i=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=i?i(r):new e.constructor(r);return e.copy(n),n}}(Ly,Ly.exports);var Vy=Ly.exports;var By=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},Uy=_y,Wy=Sm;var qy=function(e,t){return Uy(e,Wy(e),t)},Ky=um,Hy=Ud,Gy=Sm,Qy=vm,Yy=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Ky(t,Gy(e)),e=Hy(e);return t}:Qy,Jy=_y,Xy=Yy;var Zy=function(e,t){return Jy(e,Xy(e),t)},eg=mm,tg=Yy,rg=My;var ng=function(e){return eg(e,rg,tg)},og=Object.prototype.hasOwnProperty;var ag=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&og.call(e,"index")&&(r.index=e.index,r.input=e.input),r},ig=Zp;var sg=function(e){var t=new e.constructor(e.byteLength);return new ig(t).set(new ig(e)),t},lg=sg;var cg=function(e,t){var r=t?lg(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)},ug=/\w*$/;var dg=function(e){var t=new e.constructor(e.source,ug.exec(e));return t.lastIndex=e.lastIndex,t},fg=Od?Od.prototype:void 0,pg=fg?fg.valueOf:void 0;var mg=sg;var hg=function(e,t){var r=t?mg(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},vg=sg,yg=cg,gg=dg,bg=function(e){return pg?Object(pg.call(e)):{}},wg=hg;var Sg=function(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return vg(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return yg(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return wg(e,r);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return gg(e);case"[object Symbol]":return bg(e)}},xg=Cf,$g=Object.create,kg=function(){function e(){}return function(t){if(!xg(t))return{};if($g)return $g(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),_g=kg,Eg=Ud,Cg=ah;var Pg=function(e){return"function"!=typeof e.constructor||Cg(e)?{}:_g(Eg(e))},jg=Hh,Og=Wd;var Ng=function(e){return Og(e)&&"[object Map]"==jg(e)},Rg=Um,Tg=qm&&qm.isMap,Ag=Tg?Rg(Tg):Ng,Ig=Hh,Mg=Wd;var Fg=function(e){return Mg(e)&&"[object Set]"==Ig(e)},Dg=Um,zg=qm&&qm.isSet,Lg=zg?Dg(zg):Fg,Vg=Vp,Bg=my,Ug=xy,Wg=Py,qg=zy,Kg=Vy,Hg=By,Gg=qy,Qg=Zy,Yg=xh,Jg=ng,Xg=Hh,Zg=ag,eb=Sg,tb=Pg,rb=dm,nb=Am,ob=Ag,ab=Cf,ib=Lg,sb=yh,lb=My,cb="[object Arguments]",ub="[object Function]",db="[object Object]",fb={};fb[cb]=fb["[object Array]"]=fb["[object ArrayBuffer]"]=fb["[object DataView]"]=fb["[object Boolean]"]=fb["[object Date]"]=fb["[object Float32Array]"]=fb["[object Float64Array]"]=fb["[object Int8Array]"]=fb["[object Int16Array]"]=fb["[object Int32Array]"]=fb["[object Map]"]=fb["[object Number]"]=fb[db]=fb["[object RegExp]"]=fb["[object Set]"]=fb["[object String]"]=fb["[object Symbol]"]=fb["[object Uint8Array]"]=fb["[object Uint8ClampedArray]"]=fb["[object Uint16Array]"]=fb["[object Uint32Array]"]=!0,fb["[object Error]"]=fb[ub]=fb["[object WeakMap]"]=!1;var pb=function e(t,r,n,o,a,i){var s,l=1&r,c=2&r,u=4&r;if(n&&(s=a?n(t,o,a,i):n(t)),void 0!==s)return s;if(!ab(t))return t;var d=rb(t);if(d){if(s=Zg(t),!l)return Hg(t,s)}else{var f=Xg(t),p=f==ub||"[object GeneratorFunction]"==f;if(nb(t))return Kg(t,l);if(f==db||f==cb||p&&!a){if(s=c||p?{}:tb(t),!l)return c?Qg(t,qg(s,t)):Gg(t,Wg(s,t))}else{if(!fb[f])return a?t:{};s=eb(t,f,l)}}i||(i=new Vg);var m=i.get(t);if(m)return m;i.set(t,s),ib(t)?t.forEach((function(o){s.add(e(o,r,n,o,t,i))})):ob(t)&&t.forEach((function(o,a){s.set(a,e(o,r,n,a,t,i))}));var h=d?void 0:(u?c?Jg:Yg:c?lb:sb)(t);return Bg(h||t,(function(o,a){h&&(o=t[a=o]),Ug(s,a,e(o,r,n,a,t,i))})),s};var mb=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};var hb=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++n<o;)a[n]=e[n+t];return a},vb=Kv,yb=hb;var gb=Vv,bb=mb,wb=function(e,t){return t.length<2?e:vb(e,yb(t,0,-1))},Sb=Uv;var xb=function(e,t){return t=gb(t,e),null==(e=wb(e,t))||delete e[Sb(bb(t))]},$b=Zd;var kb=function(e){return $b(e)?void 0:e},_b=Nm,Eb=dm,Cb=Od?Od.isConcatSpreadable:void 0;var Pb=um,jb=function(e){return Eb(e)||_b(e)||!!(Cb&&e&&e[Cb])};var Ob=function e(t,r,n,o,a){var i=-1,s=t.length;for(n||(n=jb),a||(a=[]);++i<s;){var l=t[i];r>0&&n(l)?r>1?e(l,r-1,n,o,a):Pb(a,l):o||(a[a.length]=l)}return a},Nb=Ob;var Rb=function(e){return(null==e?0:e.length)?Nb(e,1):[]};var Tb=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},Ab=Tb,Ib=Math.max;var Mb=function(e,t,r){return t=Ib(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=Ib(n.length-t,0),i=Array(a);++o<a;)i[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(i),Ab(e,this,s)}};var Fb=function(e){return e},Db=function(e){return function(){return e}},zb=vy,Lb=zb?function(e,t){return zb(e,"toString",{configurable:!0,enumerable:!1,value:Db(t),writable:!0})}:Fb,Vb=Date.now;var Bb=function(e){var t=0,r=0;return function(){var n=Vb(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},Ub=Bb(Lb),Wb=Rb,qb=Mb,Kb=Ub;var Hb=function(e){return Kb(qb(e,void 0,Wb),e+"")},Gb=Pv,Qb=pb,Yb=xb,Jb=Vv,Xb=_y,Zb=kb,ew=ng,tw=Hb((function(e,t){var r={};if(null==e)return r;var n=!1;t=Gb(t,(function(t){return t=Jb(t,e),n||(n=t.length>1),t})),Xb(e,ew(e),r),n&&(r=Qb(r,7,Zb));for(var o=t.length;o--;)Yb(r,t[o]);return r})),rw=r(tw);function nw(e,t){const r=t[e];return[rw(t,[e]),r]}function ow(e,t={},r=[]){const n=e||"";let o;if(!n.startsWith("#"))throw new Error(`Could not find a definition for ${e}.`);o=decodeURIComponent(n.substring(1));const a=iy.get(t,o);if(void 0===a)throw new Error(`Could not find a definition for ${e}.`);const i=a[bd];if(i){if(r.includes(i)){if(1===r.length)throw new Error(`Definition for ${e} is a circular reference`);const[t,...o]=r,a=[...o,n,t].join(" -> ");throw new Error(`Definition for ${t} contains a circular reference through ${a}`)}const[o,s]=nw(bd,a),l=ow(s,t,[...r,n]);return Object.keys(o).length>0?{...o,...l}:l}return a}function aw(e,t={}){return ow(e,t,[])}var iw=Object.prototype.hasOwnProperty;var sw=Vv,lw=Nm,cw=dm,uw=Mm,dw=Fm,fw=Uv;var pw=function(e,t,r){for(var n=-1,o=(t=sw(t,e)).length,a=!1;++n<o;){var i=fw(t[n]);if(!(a=null!=e&&r(e,i)))break;e=e[i]}return a||++n!=o?a:!!(o=null==e?0:e.length)&&dw(o)&&uw(i,o)&&(cw(e)||lw(e))},mw=function(e,t){return null!=e&&iw.call(e,t)},hw=pw;var vw=r((function(e,t){return null!=e&&hw(e,t,mw)})),yw=Vd,gw=Wd;var bw=r((function(e){return"number"==typeof e||gw(e)&&"[object Number]"==yw(e)})),ww=Vd,Sw=dm,xw=Wd;var $w=r((function(e){return"string"==typeof e||!Sw(e)&&xw(e)&&"[object String]"==ww(e)}));var kw=function(e,t,r,n){var o=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++o]);++o<a;)r=t(r,e[o],o,e);return r};var _w=function(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),s=i.length;s--;){var l=i[e?s:++o];if(!1===r(a[l],l,a))break}return t}},Ew=_w(),Cw=Ew,Pw=yh;var jw=function(e,t){return e&&Cw(e,t,Pw)},Ow=ph;var Nw=function(e,t){return function(r,n){if(null==r)return r;if(!Ow(r))return e(r,n);for(var o=r.length,a=t?o:-1,i=Object(r);(t?a--:++a<o)&&!1!==n(i[a],a,i););return r}},Rw=Nw(jw),Tw=Vp,Aw=lv;var Iw=function(e,t,r,n){var o=r.length,a=o,i=!n;if(null==e)return!a;for(e=Object(e);o--;){var s=r[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<a;){var l=(s=r[o])[0],c=e[l],u=s[1];if(i&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new Tw;if(n)var f=n(c,u,l,e,t,d);if(!(void 0===f?Aw(u,c,3,n,d):f))return!1}}return!0},Mw=Cf;var Fw=function(e){return e==e&&!Mw(e)},Dw=Fw,zw=yh;var Lw=function(e){for(var t=zw(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,Dw(o)]}return t};var Vw=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}},Bw=Iw,Uw=Lw,Ww=Vw;var qw=function(e,t){return null!=e&&t in Object(e)},Kw=pw;var Hw=function(e,t){return null!=e&&Kw(e,t,qw)},Gw=lv,Qw=Gv,Yw=Hw,Jw=bv,Xw=Fw,Zw=Vw,eS=Uv;var tS=Kv;var rS=function(e){return function(t){return null==t?void 0:t[e]}},nS=function(e){return function(t){return tS(t,e)}},oS=bv,aS=Uv;var iS=function(e){var t=Uw(e);return 1==t.length&&t[0][2]?Ww(t[0][0],t[0][1]):function(r){return r===e||Bw(r,e,t)}},sS=function(e,t){return Jw(e)&&Xw(t)?Zw(eS(e),t):function(r){var n=Qw(r,e);return void 0===n&&n===t?Yw(r,e):Gw(t,n,3)}},lS=Fb,cS=dm,uS=function(e){return oS(e)?rS(aS(e)):nS(e)};var dS=function(e){return"function"==typeof e?e:null==e?lS:"object"==typeof e?cS(e)?sS(e[0],e[1]):iS(e):uS(e)};var fS=function(e,t,r,n,o){return o(e,(function(e,o,a){r=n?(n=!1,e):t(r,e,o,a)})),r},pS=kw,mS=Rw,hS=dS,vS=fS,yS=dm;var gS=function(e,t,r){var n=yS(e)?pS:vS,o=arguments.length<3;return n(e,hS(t),r,o,mS)},bS=r(gS),wS=Fb;var SS=function(e){return"function"==typeof e?e:wS},xS=/\s/;var $S=function(e){for(var t=e.length;t--&&xS.test(e.charAt(t)););return t},kS=$S,_S=/^\s+/;var ES=function(e){return e?e.slice(0,kS(e)+1).replace(_S,""):e},CS=Cf,PS=mv,jS=/^[-+]0x[0-9a-f]+$/i,OS=/^0b[01]+$/i,NS=/^0o[0-7]+$/i,RS=parseInt;var TS=function(e){if("number"==typeof e)return e;if(PS(e))return NaN;if(CS(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=CS(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=ES(e);var r=OS.test(e);return r||NS.test(e)?RS(e.slice(2),r?2:8):jS.test(e)?NaN:+e},AS=1/0;var IS=function(e){return e?(e=TS(e))===AS||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};var MS=xm,FS=SS,DS=function(e){var t=IS(e),r=t%1;return t==t?r?t-r:t:0},zS=4294967295,LS=Math.min;var VS=function(e,t){if((e=DS(e))<1||e>9007199254740991)return[];var r=zS,n=LS(e,zS);t=FS(t),e-=zS;for(var o=MS(n,t);++r<e;)t(r);return o},BS=r(VS);function US(e,t,r){var n;if(e&&r){const o=Qv(e,r);if(void 0===o)return;for(let e=0;e<t.length;e++){const a=t[e],i=Qv(a,[vd,r],{});if("object"!==i.type&&"array"!==i.type){if(i.const===o)return e;if(null===(n=i.enum)||void 0===n?void 0:n.includes(o))return e}}}}function WS(e,t,r,n,o){if(void 0===t)return 0;const a=US(t,r,o);if(bw(a))return a;for(let a=0;a<r.length;a++){const i=r[a];if(o&&vw(i,[vd,o])){const r=Qv(t,o),s=Qv(i,[vd,o],{});if(e.isValid(s,r,n))return a}else if(i[vd]){const r={anyOf:Object.keys(i[vd]).map((e=>({required:[e]})))};let o;if(i.anyOf){const{...e}=i;e.allOf?e.allOf=e.allOf.slice():e.allOf=[],e.allOf.push(r),o=e}else o=Object.assign({},i,r);if(delete o.required,e.isValid(o,t,n))return a}else if(e.isValid(i,t,n))return a}return 0}function qS(e,t,r,n,o){return WS(e,t,r,n,o)}var KS=xy,HS=Vv,GS=Mm,QS=Cf,YS=Uv;var JS=function(e,t,r,n){if(!QS(e))return e;for(var o=-1,a=(t=HS(t,e)).length,i=a-1,s=e;null!=s&&++o<a;){var l=YS(t[o]),c=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=i){var u=s[l];void 0===(c=n?n(u,l,s):void 0)&&(c=QS(u)?u:GS(t[o+1])?[]:{})}KS(s,l,c),s=s[l]}return e},XS=JS;var ZS=r((function(e,t,r){return null==e?e:XS(e,t,r)})),ex=my,tx=kg,rx=jw,nx=dS,ox=Ud,ax=dm,ix=Am,sx=Rf,lx=Cf,cx=Qm;var ux=function(e,t,r){var n=ax(e),o=n||ix(e)||cx(e);if(t=nx(t),null==r){var a=e&&e.constructor;r=o?n?new a:[]:lx(e)&&sx(a)?tx(ox(e)):{}}return(o?ex:rx)(e,(function(e,n,o){return t(r,e,n,o)})),r},dx=r(ux),fx=gy,px=nf;var mx=function(e,t,r){(void 0!==r&&!px(e[t],r)||void 0===r&&!(t in e))&&fx(e,t,r)},hx=ph,vx=Wd;var yx=function(e){return vx(e)&&hx(e)};var gx=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},bx=_y,wx=My;var Sx=mx,xx=Vy,$x=hg,kx=By,_x=Pg,Ex=Nm,Cx=dm,Px=yx,jx=Am,Ox=Rf,Nx=Cf,Rx=Zd,Tx=Qm,Ax=gx,Ix=function(e){return bx(e,wx(e))};var Mx=Vp,Fx=mx,Dx=Ew,zx=function(e,t,r,n,o,a,i){var s=Ax(e,r),l=Ax(t,r),c=i.get(l);if(c)Sx(e,r,c);else{var u=a?a(s,l,r+"",e,t,i):void 0,d=void 0===u;if(d){var f=Cx(l),p=!f&&jx(l),m=!f&&!p&&Tx(l);u=l,f||p||m?Cx(s)?u=s:Px(s)?u=kx(s):p?(d=!1,u=xx(l,!0)):m?(d=!1,u=$x(l,!0)):u=[]:Rx(l)||Ex(l)?(u=s,Ex(s)?u=Ix(s):Nx(s)&&!Ox(s)||(u=_x(l))):d=!1}d&&(i.set(l,u),o(u,l,n,a,i),i.delete(l)),Sx(e,r,u)}},Lx=Cf,Vx=My,Bx=gx;var Ux=function e(t,r,n,o,a){t!==r&&Dx(r,(function(i,s){if(a||(a=new Mx),Lx(i))zx(t,r,s,n,e,o,a);else{var l=o?o(Bx(t,s),i,s+"",t,r,a):void 0;void 0===l&&(l=i),Fx(t,s,l)}}),Vx)},Wx=Fb,qx=Mb,Kx=Ub;var Hx=function(e,t){return Kx(qx(e,t,Wx),e+"")},Gx=nf,Qx=ph,Yx=Mm,Jx=Cf;var Xx=function(e,t,r){if(!Jx(r))return!1;var n=typeof t;return!!("number"==n?Qx(r)&&Yx(t,r.length):"string"==n&&t in r)&&Gx(r[t],e)},Zx=Hx,e$=Xx;var t$=function(e){return Zx((function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,i&&e$(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++n<o;){var s=r[n];s&&e(t,s,n,a)}return t}))},r$=Ux,n$=r(t$((function(e,t,r){r$(e,t,r)}))),o$=Ob;var a$=function(e){return(null==e?0:e.length)?o$(e,Infinity):[]},i$=r(a$);var s$=function(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a<o;)if(t(e[a],a,e))return a;return-1};var l$=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1},c$=s$,u$=function(e){return e!=e},d$=l$;var f$=function(e,t,r){return t==t?d$(e,t,r):c$(e,u$,r)},p$=f$;var m$=function(e,t){return!!(null==e?0:e.length)&&p$(e,t,0)>-1};var h$=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1};var v$=Ph,y$=function(){},g$=v$&&1/tm(new v$([,-0]))[1]==1/0?function(e){return new v$(e)}:y$,b$=Kp,w$=m$,S$=h$,x$=Gp,$$=g$,k$=tm;var _$=function(e,t,r){var n=-1,o=w$,a=e.length,i=!0,s=[],l=s;if(r)i=!1,o=S$;else if(a>=200){var c=t?null:$$(e);if(c)return k$(c);i=!1,o=x$,l=new b$}else l=t?[]:s;e:for(;++n<a;){var u=e[n],d=t?t(u):u;if(u=r||0!==u?u:0,i&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(u)}else o(l,d,r)||(l!==s&&l.push(d),s.push(u))}return s},E$=_$;var C$=function(e){return e&&e.length?E$(e):[]},P$=r(C$),j$=pb;var O$=function(e){return j$(e,5)},N$=r(O$),R$=lv;var T$=function(e,t){return R$(e,t)},A$=Rw,I$=ph;var M$=function(e,t){var r=-1,n=I$(e)?Array(e.length):[];return A$(e,(function(e,o,a){n[++r]=t(e,o,a)})),n};var F$=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e},D$=mv;var z$=function(e,t){if(e!==t){var r=void 0!==e,n=null===e,o=e==e,a=D$(e),i=void 0!==t,s=null===t,l=t==t,c=D$(t);if(!s&&!c&&!a&&e>t||a&&i&&l&&!s&&!c||n&&i&&l||!r&&l||!o)return 1;if(!n&&!a&&!c&&e<t||c&&r&&o&&!n&&!a||s&&r&&o||!i&&o||!l)return-1}return 0};var L$=function(e,t,r){for(var n=-1,o=e.criteria,a=t.criteria,i=o.length,s=r.length;++n<i;){var l=z$(o[n],a[n]);if(l)return n>=s?l:l*("desc"==r[n]?-1:1)}return e.index-t.index},V$=Pv,B$=Kv,U$=dS,W$=M$,q$=F$,K$=Um,H$=L$,G$=Fb,Q$=dm;var Y$=function(e,t,r){t=t.length?V$(t,(function(e){return Q$(e)?function(t){return B$(t,1===e.length?e[0]:e)}:e})):[G$];var n=-1;t=V$(t,K$(U$));var o=W$(e,(function(e,r,o){return{criteria:V$(t,(function(t){return t(e)})),index:++n,value:e}}));return q$(o,(function(e,t){return H$(e,t,r)}))},J$=Ob,X$=Y$,Z$=Xx,ek=Hx((function(e,t){if(null==e)return[];var r=t.length;return r>1&&Z$(e,t[0],t[1])?t=[]:r>2&&Z$(t[0],t[1],t[2])&&(t=[t[0]]),X$(e,J$(t,1),[])})),tk=ek,rk=_$;var nk=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?rk(e,void 0,t):[]},ok=Hx,ak=nf,ik=Xx,sk=My,lk=Object.prototype,ck=lk.hasOwnProperty,uk=ok((function(e,t){e=Object(e);var r=-1,n=t.length,o=n>2?t[2]:void 0;for(o&&ik(t[0],t[1],o)&&(n=1);++r<n;)for(var a=t[r],i=sk(a),s=-1,l=i.length;++s<l;){var c=i[s],u=e[c];(void 0===u||ak(u,lk[c])&&!ck.call(e,c))&&(e[c]=a[c])}return e})),dk=uk,fk=Kp,pk=m$,mk=h$,hk=Pv,vk=Um,yk=Gp,gk=Math.min;var bk=function(e,t,r){for(var n=r?mk:pk,o=e[0].length,a=e.length,i=a,s=Array(a),l=1/0,c=[];i--;){var u=e[i];i&&t&&(u=hk(u,vk(t))),l=gk(u.length,l),s[i]=!r&&(t||o>=120&&u.length>=120)?new fk(i&&u):void 0}u=e[0];var d=-1,f=s[0];e:for(;++d<o&&c.length<l;){var p=u[d],m=t?t(p):p;if(p=r||0!==p?p:0,!(f?yk(f,m):n(c,m,r))){for(i=a;--i;){var h=s[i];if(!(h?yk(h,m):n(e[i],m,r)))continue e}f&&f.push(m),c.push(p)}}return c},wk=yx;var Sk=function(e){return wk(e)?e:[]},xk=Pv,$k=bk,kk=Sk,_k=mb,Ek=Hx((function(e){var t=_k(e),r=xk(e,kk);return(t="function"==typeof t?t:void 0)&&r.pop(),r.length&&r[0]===e[0]?$k(r,void 0,t):[]})),Ck=Vd,Pk=Wd;var jk=T$,Ok=tk,Nk=C$,Rk=nk,Tk=dk,Ak=Ek,Ik=Zd,Mk=function(e){return!0===e||!1===e||Pk(e)&&"[object Boolean]"==Ck(e)},Fk=e=>Array.isArray(e)?e:[e],Dk=e=>void 0===e,zk=e=>Ik(e)||Array.isArray(e)?Object.keys(e):[],Lk=(e,t)=>e.hasOwnProperty(t),Vk=e=>Ok(Nk(e)),Bk=e=>Dk(e)||Array.isArray(e)&&0===e.length,Uk=(e,t,r,n)=>t&&Lk(t,r)&&e&&Lk(e,r)&&n(e[r],t[r]),Wk=(e,t)=>Dk(e)&&0===t||Dk(t)&&0===e||jk(e,t),qk=e=>Dk(e)||jk(e,{})||!0===e,Kk=e=>Dk(e)||jk(e,{}),Hk=e=>Dk(e)||Ik(e)||!0===e||!1===e;function Gk(e,t){return!(!Bk(e)||!Bk(t))||jk(Vk(e),Vk(t))}function Qk(e,t,r,n){var o=Nk(zk(e).concat(zk(t)));return!(!Kk(e)||!Kk(t))||(!Kk(e)||!zk(t).length)&&((!Kk(t)||!zk(e).length)&&o.every((function(r){var o=e[r],a=t[r];return Array.isArray(o)&&Array.isArray(a)?jk(Vk(e),Vk(t)):!(Array.isArray(o)&&!Array.isArray(a))&&(!(Array.isArray(a)&&!Array.isArray(o))&&Uk(e,t,r,n))})))}function Yk(e,t,r,n){var o=Rk(e,n),a=Rk(t,n);return Ak(o,a,n).length===Math.max(o.length,a.length)}var Jk={title:jk,uniqueItems:(e,t)=>Dk(e)&&!1===t||Dk(t)&&!1===e||jk(e,t),minLength:Wk,minItems:Wk,minProperties:Wk,required:Gk,enum:Gk,type:function(e,t){return e=Fk(e),t=Fk(t),jk(Vk(e),Vk(t))},items:function(e,t,r,n){return Ik(e)&&Ik(t)?n(e,t):Array.isArray(e)&&Array.isArray(t)?Qk(e,t,0,n):jk(e,t)},anyOf:Yk,allOf:Yk,oneOf:Yk,properties:Qk,patternProperties:Qk,dependencies:Qk},Xk=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],Zk=["additionalProperties","additionalItems","contains","propertyNames","not"];var e_=function e(t,r,n){if(n=Tk(n,{ignore:[]}),qk(t)&&qk(r))return!0;if(!Hk(t)||!Hk(r))throw new Error("Either of the values are not a JSON schema.");if(t===r)return!0;if(Mk(t)&&Mk(r))return t===r;if(void 0===t&&!1===r||void 0===r&&!1===t)return!1;if(Dk(t)&&!Dk(r)||!Dk(t)&&Dk(r))return!1;var o=Nk(Object.keys(t).concat(Object.keys(r)));if(n.ignore.length&&(o=o.filter((e=>-1===n.ignore.indexOf(e)))),!o.length)return!0;function a(t,r){return e(t,r,n)}return o.every((function(o){var i=t[o],s=r[o];if(-1!==Zk.indexOf(o))return e(i,s,n);var l=Jk[o];if(l||(l=jk),jk(i,s))return!0;if(-1===Xk.indexOf(o)&&(!Lk(t,o)&&Lk(r,o)||Lk(t,o)&&!Lk(r,o)))return i===s;var c=l(i,s,o,a);if(!Mk(c))throw new Error("Comparer must return true or false");return c}))};var t_=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};var r_=function(e){return("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))&&e.valueOf()==e.valueOf()};var n_=t_,o_=function(e){return r_(e)&&e%1==0};var a_=function(e){var t;if(!n_(e))return!1;if(!(t=e.length))return!1;for(var r=0;r<t;r++)if(!o_(e[r]))return!1;return!0};var i_=function(e){return"function"==typeof e},s_=t_,l_=a_,c_=i_,u_=Math.pow(2,31)-1;function d_(e,t){var r,n=1;if(0===e)return t;if(0===t)return e;for(;e%2==0&&t%2==0;)e/=2,t/=2,n*=2;for(;e%2==0;)e/=2;for(;t;){for(;t%2==0;)t/=2;e>t&&(r=t,t=e,e=r),t-=e}return n*e}function f_(e,t){var r,n=0;if(0===e)return t;if(0===t)return e;for(;0==(1&e)&&0==(1&t);)e>>>=1,t>>>=1,n++;for(;0==(1&e);)e>>>=1;for(;t;){for(;0==(1&t);)t>>>=1;e>t&&(r=t,t=e,e=r),t-=e}return e<<n}var p_=function(){var e,t,r,n,o,a,i,s=arguments.length;for(e=new Array(s),i=0;i<s;i++)e[i]=arguments[i];if(l_(e)){if(2===s)return(o=e[0])<0&&(o=-o),(a=e[1])<0&&(a=-a),o<=u_&&a<=u_?f_(o,a):d_(o,a);r=e}else{if(!s_(e[0]))throw new TypeError("gcd()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if(s>1){if(r=e[0],t=e[1],!c_(t))throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+t+"`.")}else r=e[0]}if((n=r.length)<2)return null;if(t){for(o=new Array(n),i=0;i<n;i++)o[i]=t(r[i],i);r=o}if(s<3&&!l_(r))throw new TypeError("gcd()::invalid input argument. Accessed array values must be integers. Value: `"+r+"`.");for(i=0;i<n;i++)(o=r[i])<0&&(r[i]=-o);for(o=r[0],i=1;i<n;i++)o=(a=r[i])<=u_&&o<=u_?f_(o,a):d_(o,a);return o},m_=p_,h_=t_,v_=a_,y_=i_;var g_=function(){var e,t,r,n,o,a,i,s=arguments.length;for(e=new Array(s),i=0;i<s;i++)e[i]=arguments[i];if(v_(e)){if(2===s)return(o=e[0])<0&&(o=-o),(a=e[1])<0&&(a=-a),0===o||0===a?0:o/m_(o,a)*a;r=e}else{if(!h_(e[0]))throw new TypeError("lcm()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if(s>1){if(r=e[0],t=e[1],!y_(t))throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+t+"`.")}else r=e[0]}if((n=r.length)<2)return null;if(t){for(o=new Array(n),i=0;i<n;i++)o[i]=t(r[i],i);r=o}if(s<3&&!v_(r))throw new TypeError("lcm()::invalid input argument. Accessed array values must be integers. Value: `"+r+"`.");for(i=0;i<n;i++)(o=r[i])<0&&(r[i]=-o);for(o=r[0],i=1;i<n;i++){if(a=r[i],0===o||0===a)return 0;o=o/m_(o,a)*a}return o},b_=Ux,w_=Cf;var S_=function e(t,r,n,o,a,i){return w_(t)&&w_(r)&&(i.set(r,t),b_(t,r,void 0,e,i),i.delete(r)),t},x_=Ux,$_=t$((function(e,t,r,n){x_(e,t,r,n)})),k_=Tb,__=S_,E_=$_,C_=Hx((function(e){return e.push(void 0,__),k_(E_,void 0,e)})),P_=Pv,j_=bk,O_=Sk,N_=Hx((function(e){var t=P_(e,O_);return t.length&&t[0]===e[0]?j_(t):[]}));var R_=function(e,t,r,n){for(var o=r-1,a=e.length;++o<a;)if(n(e[o],t))return o;return-1},T_=Pv,A_=f$,I_=R_,M_=Um,F_=By,D_=Array.prototype.splice;var z_=function(e,t,r,n){var o=n?I_:A_,a=-1,i=t.length,s=e;for(e===t&&(t=F_(t)),r&&(s=T_(e,M_(r)));++a<i;)for(var l=0,c=t[a],u=r?r(c):c;(l=o(s,u,l,n))>-1;)s!==e&&D_.call(s,l,1),D_.call(e,l,1);return e},L_=z_;var V_=function(e,t){return e&&e.length&&t&&t.length?L_(e,t):e},B_=my,U_=Rw,W_=SS,q_=dm;var K_=function(e,t){return(q_(e)?B_:U_)(e,W_(t))},H_=r(K_),G_=Kp,Q_=m$,Y_=h$,J_=Pv,X_=Um,Z_=Gp;var eE=function(e,t,r,n){var o=-1,a=Q_,i=!0,s=e.length,l=[],c=t.length;if(!s)return l;r&&(t=J_(t,X_(r))),n?(a=Y_,i=!1):t.length>=200&&(a=Z_,i=!1,t=new G_(t));e:for(;++o<s;){var u=e[o],d=null==r?u:r(u);if(u=n||0!==u?u:0,i&&d==d){for(var f=c;f--;)if(t[f]===d)continue e;l.push(u)}else a(t,d,n)||l.push(u)}return l},tE=eE,rE=yx,nE=Hx((function(e,t){return rE(e)?tE(e,t):[]}));const oE=Rb,aE=a$,iE=Zd,sE=C$,lE=nE;const cE=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),uE=e=>iE(e)||Array.isArray(e)?Object.keys(e):[],dE=e=>!uE(e).length&&!1!==e&&!0!==e;var fE={allUniqueKeys:e=>sE(aE(e.map(uE))),deleteUndefinedProps:function(e){for(const t in e)cE(e,t)&&dE(e[t])&&delete e[t];return e},getValues:(e,t)=>e.map((e=>e&&e[t])),has:cE,isEmptySchema:dE,isSchema:e=>iE(e)||!0===e||!1===e,keys:uE,notUndefined:e=>void 0!==e,uniqWith:nk,withoutArr:(e,...t)=>lE.apply(null,[e].concat(oE(t)))};const pE=e_,mE=K_,{allUniqueKeys:hE,deleteUndefinedProps:vE,getValues:yE,keys:gE,notUndefined:bE,uniqWith:wE,withoutArr:SE}=fE;function xE(e,t){return hE(e).reduce((function(r,n){const o=yE(e,n),a=wE(o.filter(bE),pE);return r[n]=t(a,n),r}),{})}var $E={keywords:["properties","patternProperties","additionalProperties"],resolver(e,t,r,n){n.ignoreAdditionalProperties||(e.forEach((function(t){const n=e.filter((e=>e!==t)),o=gE(t.properties),a=gE(t.patternProperties).map((e=>new RegExp(e)));n.forEach((function(e){const n=gE(e.properties),i=n.filter((e=>a.some((t=>t.test(e)))));SE(n,o,i).forEach((function(n){e.properties[n]=r.properties([e.properties[n],t.additionalProperties],n)}))}))})),e.forEach((function(t){const r=e.filter((e=>e!==t)),n=gE(t.patternProperties);!1===t.additionalProperties&&r.forEach((function(e){const t=gE(e.patternProperties);SE(t,n).forEach((t=>delete e.patternProperties[t]))}))})));const o={additionalProperties:r.additionalProperties(e.map((e=>e.additionalProperties))),patternProperties:xE(e.map((e=>e.patternProperties)),r.patternProperties),properties:xE(e.map((e=>e.properties)),r.properties)};var a;return!1===o.additionalProperties&&mE(a=o.properties,(function(e,t){!1===e&&delete a[t]})),vE(o)}};const kE=e_,_E=K_,{allUniqueKeys:EE,deleteUndefinedProps:CE,has:PE,isSchema:jE,notUndefined:OE,uniqWith:NE}=fE;function RE(e,t,r){return EE(r).reduce((function(r,n){const o=function(e,t){return e.map((function(e){if(e){if(!Array.isArray(e.items))return e.items;{const r=e.items[t];if(jE(r))return r;if(PE(e,"additionalItems"))return e.additionalItems}}}))}(e,n),a=NE(o.filter(OE),kE);return r[n]=t(a,n),r}),[])}var TE={keywords:["items","additionalItems"],resolver(e,t,r){const n=e.map((e=>e.items)),o=n.filter(OE),a={};let i;var s;return o.every(jE)?a.items=r.items(n):a.items=RE(e,r.items,n),o.every(Array.isArray)?i=e.map((e=>e.additionalItems)):o.some(Array.isArray)&&(i=e.map((function(e){if(e)return Array.isArray(e.items)?e.additionalItems:e.items}))),i&&(a.additionalItems=r.additionalItems(i)),!1===a.additionalItems&&Array.isArray(a.items)&&(s=a.items,_E(s,(function(e,t){!1===e&&s.splice(t,1)}))),CE(a)}};const AE=O$,IE=e_,ME=g_,FE=C_,DE=Rb,zE=a$,LE=N_,VE=Ek,BE=T$,UE=Zd,WE=V_,qE=tk,KE=C$,HE=nk,GE=$E,QE=TE,YE=(e,t)=>-1!==e.indexOf(t),JE=e=>UE(e)||!0===e||!1===e,XE=e=>!1===e,ZE=e=>!0===e,eC=(e,t,r)=>r(e),tC=e=>qE(KE(zE(e))),rC=e=>void 0!==e,nC=e=>KE(zE(e.map(cC))),oC=e=>e[0],aC=e=>Math.max.apply(Math,e),iC=e=>Math.min.apply(Math,e);function sC(e){let{allOf:t=[],...r}=e;return r=UE(e)?r:e,[r,...t.map(sC)]}function lC(e,t){return e.map((e=>e&&e[t]))}function cC(e){return UE(e)||Array.isArray(e)?Object.keys(e):[]}function uC(e,t){if(t=t||[],!e.length)return t;const r=e.slice(0).shift(),n=e.slice(1);return t.length?uC(n,DE(t.map((e=>r.map((t=>[t].concat(e))))))):uC(n,r.map((e=>e)))}function dC(e,t){let r;try{r=e.map((function(e){return JSON.stringify(e,null,2)})).join("\n")}catch(t){r=e.join(", ")}throw new Error('Could not resolve values for path:"'+t.join(".")+'". They are probably incompatible. Values: \n'+r)}function fC(e,t,r,n,o,a){if(e.length){const i=o.complexResolvers[t];if(!i||!i.resolver)throw new Error("No resolver found for "+t);const s=r.map((t=>e.reduce(((e,r)=>(void 0!==t[r]&&(e[r]=t[r]),e)),{}))),l=HE(s,IE),c=i.keywords.reduce(((e,t)=>({...e,[t]:(e,r=[])=>n(e,null,a.concat(t,r))})),{}),u=i.resolver(l,a.concat(t),c,o);return UE(u)||dC(l,a.concat(t)),u}}function pC(e){return{required:e}}const mC=["properties","patternProperties","definitions","dependencies"],hC=["anyOf","oneOf"],vC=["additionalProperties","additionalItems","contains","propertyNames","not","items"],yC={type(e){if(e.some(Array.isArray)){const t=e.map((function(e){return Array.isArray(e)?e:[e]})),r=LE.apply(null,t);if(1===r.length)return r[0];if(r.length>1)return KE(r)}},dependencies:(e,t,r)=>nC(e).reduce((function(t,n){const o=lC(e,n);let a=HE(o.filter(rC),BE);const i=a.filter(Array.isArray);if(i.length){if(i.length===a.length)t[n]=tC(a);else{const e=a.filter(JE),o=i.map(pC);t[n]=r(e.concat(o),n)}return t}return a=HE(a,IE),t[n]=r(a,n),t}),{}),oneOf(e,t,r){const n=function(e,t){return e.map((function(e,r){try{return t(e,r)}catch(e){return}})).filter(rC)}(uC(AE(e)),r),o=HE(n,IE);if(o.length)return o},not:e=>({anyOf:e}),pattern:e=>e.map((e=>"(?="+e+")")).join(""),multipleOf(e){let t=e.slice(0),r=1;for(;t.some((e=>!Number.isInteger(e)));)t=t.map((e=>10*e)),r*=10;return ME(t)/r},enum(e){const t=VE.apply(null,e.concat(BE));if(t.length)return qE(t)}};yC.$id=oC,yC.$ref=oC,yC.$schema=oC,yC.additionalItems=eC,yC.additionalProperties=eC,yC.anyOf=yC.oneOf,yC.contains=eC,yC.default=oC,yC.definitions=yC.dependencies,yC.description=oC,yC.examples=e=>HE(DE(e),BE),yC.exclusiveMaximum=iC,yC.exclusiveMinimum=aC,yC.items=QE,yC.maximum=iC,yC.maxItems=iC,yC.maxLength=iC,yC.maxProperties=iC,yC.minimum=aC,yC.minItems=aC,yC.minLength=aC,yC.minProperties=aC,yC.properties=GE,yC.propertyNames=eC,yC.required=e=>tC(e),yC.title=oC,yC.uniqueItems=e=>e.some(ZE);const gC={properties:GE,items:QE};function bC(e,t,r){t=FE(t,{ignoreAdditionalProperties:!1,resolvers:yC,complexResolvers:gC,deep:!0});const n=Object.entries(t.complexResolvers);const o=function e(r,o,a){r=AE(r.filter(rC)),a=a||[];const i=UE(o)?o:{};if(!r.length)return;if(r.some(XE))return!1;if(r.every(ZE))return!0;r=r.filter(UE);const s=nC(r);if(t.deep&&YE(s,"allOf"))return bC({allOf:r},t);const l=n.map((([e,t])=>s.filter((e=>t.keywords.includes(e)))));return l.forEach((e=>WE(s,e))),s.forEach((function(n){const o=lC(r,n),s=HE(o.filter(rC),function(e){return function(t,r){return IE({[e]:t},{[e]:r})}}(n));if(1===s.length&&YE(hC,n))i[n]=s[0].map((t=>e([t],t)));else if(1!==s.length||YE(mC,n)||YE(vC,n)){const r=t.resolvers[n]||t.resolvers.defaultResolver;if(!r)throw new Error("No resolver found for key "+n+". You can provide a resolver for this keyword in the options, or provide a default resolver.");const o=(t,r=[])=>e(t,null,a.concat(n,r));i[n]=r(s,a.concat(n),o,t),void 0===i[n]?dC(s,a.concat(n)):void 0===i[n]&&delete i[n]}else i[n]=s[0]})),n.reduce(((n,[o,i],s)=>({...n,...fC(l[s],o,r,e,t,a)})),i)}(zE(sC(e)));return o}bC.options={resolvers:yC};var wC=r(bC);function SC(e){let t;const r=Qv(e,"discriminator.propertyName",void 0);return $w(r)?t=r:void 0!==r&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),t}function xC(e){return Array.isArray(e)?"array":"string"==typeof e?"string":null==e?"null":"boolean"==typeof e?"boolean":isNaN(e)?"object"==typeof e?"object":"string":"number"}var $C=Ob,kC=_$,_C=yx,EC=r(Hx((function(e){return kC($C(e,1,_C,!0))})));function CC(e){let{type:t}=e;return!t&&e.const?xC(e.const):!t&&e.enum?"string":t||!e.properties&&!e.additionalProperties?(Array.isArray(t)&&(t=2===t.length&&t.includes("null")?t.find((e=>"null"!==e)):t[0]),t):"object"}function PC(e,t){const r=Object.assign({},e);return Object.keys(t).reduce(((r,n)=>{const o=e?e[n]:{},a=t[n];return e&&n in e&&ed(a)?r[n]=PC(o,a):e&&t&&("object"===CC(e)||"object"===CC(t))&&n===yd&&Array.isArray(o)&&Array.isArray(a)?r[n]=EC(o,a):r[n]=a,r}),r)}function jC(e,t,r={},n,o){return TC(e,t,r,n,void 0,void 0,o)[0]}function OC(e){const t=e.reduce(((e,t)=>t.length>1?t.flatMap((t=>BS(e.length,(r=>[...e[r]].concat(t))))):(e.forEach((e=>e.push(t[0]))),e)),[[]]);return t}function NC(e,t,r,n,o,a,i){const s=RC(t,r,o);return s!==t?TC(e,s,r,a,n,o,i):[t]}function RC(e,t,r){if(!ed(e))return e;let n=e;if(bd in n){const{$ref:e,...o}=n;if(r.includes(e))return n;r.push(e);n={...aw(e,t),...o}}if(vd in n){const e=[],o=dx(n[vd],((n,o,a)=>{const i=[...r];n[a]=RC(o,t,i),e.push(i)}),{});n$(r,P$(i$(e))),n={...n,[vd]:o}}return pd in n&&!Array.isArray(n.items)&&"boolean"!=typeof n.items&&(n={...n,items:RC(n.items,t,r)}),dv(e,n)?e:n}function TC(e,t,r,n,o=!1,a=[],i){if(!ed(t))return[{}];const s=function(e,t,r,n,o,a,i){const s=NC(e,t,r,n,o,a);if(s.length>1||s[0]!==t)return s;if(ld in t)return AC(e,t,r,n,o,a).flatMap((t=>TC(e,t,r,a,n,o,i)));if(od in t&&Array.isArray(t.allOf))return OC(t.allOf.map((t=>TC(e,t,r,a,n,o,i)))).map((e=>({...t,allOf:e})));return[t]}(e,t,r,o,a,n,i);return s.flatMap((t=>{var s;let l=t;if(fd in l)return function(e,t,r,n,o,a,i){const{if:s,then:l,else:c,...u}=t,d=e.isValid(s,a||{},r);let f=[u],p=[];if(n)l&&"boolean"!=typeof l&&(p=p.concat(TC(e,l,r,a,n,o,i))),c&&"boolean"!=typeof c&&(p=p.concat(TC(e,c,r,a,n,o,i)));else{const t=d?l:c;t&&"boolean"!=typeof t&&(p=p.concat(TC(e,t,r,a,n,o,i)))}return p.length&&(f=p.map((e=>PC(u,e)))),f.flatMap((t=>TC(e,t,r,a,n,o,i)))}(e,l,r,o,a,n,i);if(od in l){if(o){const{allOf:e,...t}=l;return[...e,t]}try{const e=[],t=[];null===(s=l.allOf)||void 0===s||s.forEach((r=>{"object"==typeof r&&r.contains?e.push(r):t.push(r)})),e.length&&(l={...l,allOf:t}),l=i?i(l):wC(l,{deep:!1}),e.length&&(l.allOf=e)}catch(e){console.warn("could not merge subschemas in allOf:\n",e);const{allOf:t,...r}=l;return r}}return nd in l&&!1!==l.additionalProperties?function(e,t,r,n,o){const a={...t,properties:{...t.properties}},i=n&&ed(n)?n:{};return Object.keys(i).forEach((t=>{if(t in a.properties)return;let n={};n="boolean"!=typeof a.additionalProperties?bd in a.additionalProperties?jC(e,{$ref:Qv(a.additionalProperties,[bd])},r,i,o):"type"in a.additionalProperties?{...a.additionalProperties}:ad in a.additionalProperties||hd in a.additionalProperties?{type:"object",...a.additionalProperties}:{type:xC(Qv(i,[t]))}:{type:xC(Qv(i,[t]))},a.properties[t]=n,ZS(a.properties,[t,rd],!0)})),a}(e,l,r,n,i):l}))}function AC(e,t,r,n,o,a,i){const{dependencies:s,...l}=t,c=function(e,t,r,n,o){let a;const{oneOf:i,anyOf:s,...l}=t;if(Array.isArray(i)?a=i:Array.isArray(s)&&(a=s),a){const i=void 0===o&&n?{}:o,s=SC(t);a=a.map((e=>RC(e,r,[])));const c=qS(e,i,a,r,s);if(n)return a.map((e=>PC(l,e)));t=PC(l,a[c])}return[t]}(e,l,r,n,a);return c.flatMap((t=>IC(e,s,t,r,n,o,a,i)))}function IC(e,t,r,n,o,a,i,s){let l=[r];for(const c in t){if(!o&&void 0===Qv(i,[c]))continue;if(r.properties&&!(c in r.properties))continue;const[u,d]=nw(c,t);return Array.isArray(d)?l[0]=MC(r,d):ed(d)&&(l=FC(e,r,n,c,d,o,a,i,s)),l.flatMap((t=>IC(e,u,t,n,o,a,i,s)))}return l}function MC(e,t){if(!t)return e;const r=Array.isArray(e.required)?Array.from(new Set([...e.required,...t])):t;return{...e,required:r}}function FC(e,t,r,n,o,a,i,s,l){return TC(e,o,r,s,a,i,l).flatMap((o=>{const{oneOf:c,...u}=o;if(t=PC(t,u),void 0===c)return t;const d=c.map((t=>"boolean"!=typeof t&&bd in t?NC(e,t,r,a,i,s):[t]));return OC(d).flatMap((o=>function(e,t,r,n,o,a,i,s,l){const c=o.filter((t=>{if("boolean"==typeof t||!t||!t.properties)return!1;const{[n]:o}=t.properties;if(o){const t={type:"object",properties:{[n]:o}};return e.isValid(t,s,r)||a}return!1}));if(!a&&1!==c.length)return console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[t];return c.flatMap((o=>{const c=o,[u]=nw(n,c.properties),d={...c,properties:u};return TC(e,d,r,s,a,i,l).map((e=>PC(t,e)))}))}(e,t,r,n,o,a,i,s,l)))}))}const DC={type:"object",$id:"_$junk_option_schema_id$_",properties:{__not_really_there__:{type:"number"}}};function zC(e,t,r,n,o){let a=0;return r&&(Pf(r.properties)?a+=bS(r.properties,((r,a,i)=>{const s=Qv(n,i);if("boolean"==typeof a)return r;if(vw(a,bd)){const n=jC(e,a,t,s,o);return r+zC(e,t,n,s||{},o)}if((vw(a,hd)||vw(a,ad))&&s){const n=vw(a,hd)?hd:ad,i=SC(a);return r+LC(e,t,s,Qv(a,n),-1,i,o)}if("object"===a.type)return Pf(s)&&(r+=1),r+zC(e,t,a,s,o);if(a.type===xC(s)){let e=r+1;return a.default?e+=s===a.default?1:-1:a.const&&(e+=s===a.const?1:-1),e}return r}),0):$w(r.type)&&r.type===xC(n)&&(a+=1)),a}function LC(e,t,r,n,o=-1,a,i){const s=n.map((e=>RC(e,t,[]))),l=US(r,n,a);if(bw(l))return l;const c=s.reduce(((n,o,i)=>(1===qS(e,r,[DC,o],t,a)&&n.push(i),n)),[]);if(1===c.length)return c[0];c.length||BS(s.length,(e=>c.push(e)));const u=new Set,{bestIndex:d}=c.reduce(((n,o)=>{const{bestScore:a}=n,l=s[o],c=zC(e,t,l,r,i);return u.add(c),c>a?{bestIndex:o,bestScore:c}:n}),{bestIndex:o,bestScore:0});return 1===u.size&&o>=0?o:d}function VC(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every((e=>ed(e)))}var BC=r((function(e){return null==e}));function UC(e,t,r=!1,n=!1,o=!1){if(Array.isArray(t)){const a=Array.isArray(e)?e:[],i=o?t:a,s=(o?a:t).map(((e,s)=>void 0!==i[s]?UC(a[s],t[s],r,n,o):e));return(r||o)&&s.length<i.length&&s.push(...i.slice(s.length)),s}if(ed(t)){const a=Object.assign({},e);return Object.keys(t).reduce(((a,i)=>{const s=Qv(t,i),l=ed(e)&&i in e,c=i in t;return a[i]=UC(e?Qv(e,i):{},s,r,n,o&&(l||!c)),a}),a)}return n&&(!BC(e)&&BC(t)||"number"==typeof t&&isNaN(t))||o&&!BC(t)?e:t}function WC(e,t,r=!1){return Object.keys(t).reduce(((n,o)=>{const a=e?e[o]:{},i=t[o];if(e&&o in e&&ed(i))n[o]=WC(a,i,r);else if(r&&Array.isArray(a)&&Array.isArray(i)){let e=i;"preventDuplicates"===r&&(e=i.reduce(((e,t)=>(a.includes(t)||e.push(t),e)),[])),n[o]=a.concat(e)}else n[o]=i;return n}),Object.assign({},e))}function qC(e){return Array.isArray(e.enum)&&1===e.enum.length||id in e}function KC(e,t,r={},n){const o=jC(e,t,r,void 0,n),a=o.oneOf||o.anyOf;return!!Array.isArray(o.enum)||!!Array.isArray(a)&&a.every((e=>"boolean"!=typeof e&&qC(e)))}function HC(e,t,r,n){return!(!t.uniqueItems||!t.items||"boolean"==typeof t.items)&&KC(e,t.items,r,n)}function GC(e){const t=e[id],r=CC(e);return ed(t)&&$w(null==t?void 0:t.$data)&&"object"!==r&&"array"!==r}function QC(e,t){const r=e;if(e.enum){let n;if(t){const{enumNames:e}=kd(t);n=e}return!n&&r.enumNames&&(n=r.enumNames),e.enum.map(((e,t)=>({label:(null==n?void 0:n[t])||String(e),value:e})))}let n,o;return e.anyOf?(n=e.anyOf,o=null==t?void 0:t.anyOf):e.oneOf&&(n=e.oneOf,o=null==t?void 0:t.oneOf),n&&n.map(((e,t)=>{const{title:r}=kd(null==o?void 0:o[t]),n=e,a=function(e){if(cd in e&&Array.isArray(e.enum)&&1===e.enum.length)return e.enum[0];if(id in e)return e.const;throw new Error("schema cannot be inferred as a constant")}(n);return{schema:n,label:r||n.title||String(a),value:a}}))}const YC=["string","number","integer","boolean","null"];var JC;function XC(e,t=JC.Ignore,r=-1){if(r>=0){if(Array.isArray(e.items)&&r<e.items.length){const t=e.items[r];if("boolean"!=typeof t)return t}}else if(e.items&&!Array.isArray(e.items)&&"boolean"!=typeof e.items)return e.items;return t!==JC.Ignore&&ed(e.additionalItems)?e.additionalItems:{}}function ZC(e,t,r,n,o,a=[],i={},s=!1){const{emptyObjectFields:l="populateAllDefaults"}=i;if(n||s)e[t]=r;else if("skipDefaults"!==l){const n=void 0===o?a.includes(t):o;ed(r)?"skipEmptyDefaults"===l?ay(r)||(e[t]=r):ay(r)&&!a.includes(t)||!n&&"populateRequiredDefaults"===l||(e[t]=r):void 0!==r&&("populateAllDefaults"===l||"skipEmptyDefaults"===l||n&&a.includes(t))&&(e[t]=r)}}function eP(e,t,r={}){const{parentDefaults:n,rawFormData:o,rootSchema:a={},includeUndefinedValues:i=!1,_recurseList:s=[],experimental_defaultFormStateBehavior:l,experimental_customMergeAllOf:c,required:u,shouldMergeDefaultsIntoFormData:d=!1}=r,f=ed(o)?o:{},p=ed(t)?t:{};let m=n,h=null,v=l,y=s;if(p[id]&&"never"!==(null==l?void 0:l.constAsDefaults)&&!GC(p))m=p[id];else if(ed(m)&&ed(p.default))m=WC(m,p.default);else if(sd in p)m=p.default;else if(bd in p){const e=p[bd];s.includes(e)||(y=s.concat(e),h=aw(e,a))}else if(ld in p){const t={...tP(e,p,r,m),...f};h=AC(e,p,a,!1,[],t,c)[0]}else if(VC(p))m=p.items.map(((t,r)=>eP(e,t,{rootSchema:a,includeUndefinedValues:i,_recurseList:s,experimental_defaultFormStateBehavior:l,experimental_customMergeAllOf:c,parentDefaults:Array.isArray(n)?n[r]:void 0,rawFormData:f,required:u,shouldMergeDefaultsIntoFormData:d})));else if(hd in p){const{oneOf:t,...r}=p;if(0===t.length)return;const n=SC(p),{type:i="null"}=r;!Array.isArray(i)&&YC.includes(i)&&"skipOneOf"===(null==v?void 0:v.constAsDefaults)&&(v={...v,constAsDefaults:"never"}),h=t[LC(e,a,o,t,0,n,c)],h=PC(r,h)}else if(ad in p){const{anyOf:t,...r}=p;if(0===t.length)return;const n=SC(p);h=t[LC(e,a,o,t,0,n,c)],h=PC(r,h)}if(h)return eP(e,h,{rootSchema:a,includeUndefinedValues:i,_recurseList:y,experimental_defaultFormStateBehavior:v,experimental_customMergeAllOf:c,parentDefaults:m,rawFormData:f,required:u,shouldMergeDefaultsIntoFormData:d});void 0===m&&(m=p.default);const g=tP(e,p,r,m);let b=null!=g?g:m;if(d){const{arrayMinItems:t={}}=l||{},{mergeExtraDefaults:r}=t,n=function(e,t,r,n,o){const a=!qC(t)&&KC(e,t,r);let i=n;if(a){const e=QC(t);i=(null==e?void 0:e.some((e=>dv(e.value,n))))?n:void 0}const s=t[id]&&"always"===(null==o?void 0:o.constAsDefaults);s&&(i=t.const);return i}(e,p,a,o,l);ed(o)||(b=UC(b,n,r,!0))}return b}function tP(e,t,r={},n){switch(CC(t)){case"object":return function(e,t,{rawFormData:r,rootSchema:n={},includeUndefinedValues:o=!1,_recurseList:a=[],experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:s,required:l,shouldMergeDefaultsIntoFormData:c}={},u){{const d=ed(r)?r:{},f=t,p="populateDefaults"===(null==i?void 0:i.allOf)&&od in f?jC(e,f,n,d,s):f,m=p[id],h=Object.keys(p.properties||{}).reduce(((t,r)=>{var f;const h=Qv(p,[vd,r]),v=ed(m)&&void 0!==m[r],y=(ed(h)&&id in h||v)&&"never"!==(null==i?void 0:i.constAsDefaults)&&!GC(h);return ZC(t,r,eP(e,h,{rootSchema:n,_recurseList:a,experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:s,includeUndefinedValues:!0===o,parentDefaults:Qv(u,[r]),rawFormData:Qv(d,[r]),required:null===(f=p.required)||void 0===f?void 0:f.includes(r),shouldMergeDefaultsIntoFormData:c}),o,l,p.required,i,y),t}),{});if(p.additionalProperties){const t=ed(p.additionalProperties)?p.additionalProperties:{},r=new Set;ed(u)&&Object.keys(u).filter((e=>!p.properties||!p.properties[e])).forEach((e=>r.add(e)));const f=[];Object.keys(d).filter((e=>!p.properties||!p.properties[e])).forEach((e=>{r.add(e),f.push(e)})),r.forEach((r=>{var m;const v=eP(e,t,{rootSchema:n,_recurseList:a,experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:s,includeUndefinedValues:!0===o,parentDefaults:Qv(u,[r]),rawFormData:Qv(d,[r]),required:null===(m=p.required)||void 0===m?void 0:m.includes(r),shouldMergeDefaultsIntoFormData:c});ZC(h,r,v,o,l,f)}))}return h}}(e,t,r,n);case"array":return function(e,t,{rawFormData:r,rootSchema:n={},_recurseList:o=[],experimental_defaultFormStateBehavior:a,experimental_customMergeAllOf:i,required:s,shouldMergeDefaultsIntoFormData:l}={},c){var u,d;const f=t,p=null!==(u=null==a?void 0:a.arrayMinItems)&&void 0!==u?u:{},{populate:m,mergeExtraDefaults:h}=p,v="never"===m,y="requiredOnly"===m,g="all"===m||!v&&!y,b=null!==(d=null==p?void 0:p.computeSkipPopulate)&&void 0!==d?d:()=>!1,w="skipEmptyDefaults"===(null==a?void 0:a.emptyObjectFields)?void 0:[];if(Array.isArray(c)&&(c=c.map(((t,r)=>{const c=XC(f,JC.Fallback,r);return eP(e,c,{rootSchema:n,_recurseList:o,experimental_defaultFormStateBehavior:a,experimental_customMergeAllOf:i,parentDefaults:t,required:s,shouldMergeDefaultsIntoFormData:l})}))),Array.isArray(r)){const t=XC(f);if(v)c=r;else{const u=r.map(((r,u)=>eP(e,t,{rootSchema:n,_recurseList:o,experimental_defaultFormStateBehavior:a,experimental_customMergeAllOf:i,rawFormData:r,parentDefaults:Qv(c,[u]),required:s,shouldMergeDefaultsIntoFormData:l})));c=UC(c,u,(y&&s||g)&&h)}}if(!1===(ed(f)&&id in f&&"never"!==(null==a?void 0:a.constAsDefaults))){if(v)return null!=c?c:w;if(y&&!s)return c||void 0}const S=Array.isArray(c)?c.length:0;if(!f.minItems||HC(e,f,n,i)||b(e,f,n)||f.minItems<=S)return c||w;const x=c||[],$=XC(f,JC.Invert),k=$.default,_=new Array(f.minItems-S).fill(eP(e,$,{parentDefaults:k,rootSchema:n,_recurseList:o,experimental_defaultFormStateBehavior:a,experimental_customMergeAllOf:i,required:s,shouldMergeDefaultsIntoFormData:l}));return x.concat(_)}(e,t,r,n)}}function rP(e,t,r,n,o=!1,a,i){if(!ed(t))throw new Error("Invalid schema: "+t);const s=eP(e,jC(e,t,n,r,i),{rootSchema:n,includeUndefinedValues:o,experimental_defaultFormStateBehavior:a,experimental_customMergeAllOf:i,rawFormData:r,shouldMergeDefaultsIntoFormData:!0});if(ed(r)||Array.isArray(r)){const{mergeDefaultsIntoFormData:e}=a||{};return UC(s,r,!0,"useDefaultIfFormDataUndefined"===e,!0)}return s}function nP(e={}){return"widget"in kd(e)&&"hidden"!==kd(e).widget}function oP(e,t,r={},n,o){if("files"===r[xd])return!0;if(t.items){const r=jC(e,t.items,n,void 0,o);return"string"===r.type&&"data-url"===r.format}return!1}!function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"}(JC||(JC={}));const aP=Symbol("no Value");function iP(e,t,r,n,o={},a){let i;if(vw(r,vd)){const s={};if(vw(n,vd)){const e=Qv(n,vd,{});Object.keys(e).forEach((e=>{vw(o,e)&&(s[e]=void 0)}))}const l=Object.keys(Qv(r,vd,{})),c={};l.forEach((i=>{const l=Qv(o,i);let u=Qv(n,[vd,i],{}),d=Qv(r,[vd,i],{});vw(u,bd)&&(u=jC(e,u,t,l,a)),vw(d,bd)&&(d=jC(e,d,t,l,a));const f=Qv(u,"type"),p=Qv(d,"type");if(!f||f===p)if(vw(s,i)&&delete s[i],"object"===p||"array"===p&&Array.isArray(l)){const r=iP(e,t,d,u,l,a);void 0===r&&"array"!==p||(c[i]=r)}else{const e=Qv(d,"default",aP),t=Qv(u,"default",aP);e!==aP&&e!==l&&(t===l?s[i]=e:!0===Qv(d,"readOnly")&&(s[i]=void 0));const r=Qv(d,"const",aP),n=Qv(u,"const",aP);r!==aP&&r!==l&&(s[i]=n===l?r:void 0)}})),i={..."string"==typeof o||Array.isArray(o)?void 0:o,...s,...c}}else if("array"===Qv(n,"type")&&"array"===Qv(r,"type")&&Array.isArray(o)){let s=Qv(n,"items"),l=Qv(r,"items");if("object"!=typeof s||"object"!=typeof l||Array.isArray(s)||Array.isArray(l))"boolean"==typeof s&&"boolean"==typeof l&&s===l&&(i=o);else{vw(s,bd)&&(s=jC(e,s,t,o,a)),vw(l,bd)&&(l=jC(e,l,t,o,a));const n=Qv(s,"type"),c=Qv(l,"type");if(!n||n===c){const n=Qv(r,"maxItems",-1);i="object"===c?o.reduce(((r,o)=>{const i=iP(e,t,l,s,o,a);return void 0!==i&&(n<0||r.length<n)&&r.push(i),r}),[]):n>0&&o.length>n?o.slice(0,n):o}}}return i}function sP(e,t,r,n,o,a,i,s=[],l){if(bd in t||ld in t||od in t){const c=jC(e,t,a,i,l);if(-1===s.findIndex((e=>dv(e,c))))return sP(e,c,r,n,o,a,i,s.concat(c),l)}if(pd in t&&!Qv(t,[pd,bd]))return sP(e,Qv(t,pd),r,n,o,a,i,s,l);const c={$id:o||r};if("object"===CC(t)&&vd in t)for(const o in t.properties){const u=Qv(t,[vd,o]),d=c[dd]+n+o;c[o]=sP(e,ed(u)?u:{},r,n,d,a,Qv(i,[o]),s,l)}return c}function lP(e,t,r,n,o,a="root",i="_",s){return sP(e,t,a,i,r,n,o,void 0,s)}function cP(e,t,r,n,o,a=[],i){if(bd in t||ld in t||od in t){const s=jC(e,t,n,o,i);if(-1===a.findIndex((e=>dv(e,s))))return cP(e,s,r,n,o,a.concat(s),i)}let s={[md]:r.replace(/^\./,"")};if(hd in t||ad in t){const l=hd in t?t.oneOf:t.anyOf,c=SC(t),u=l[LC(e,n,o,l,0,c,i)];s={...s,...cP(e,u,r,n,o,a,i)}}if(nd in t&&!1!==t[nd]&&ZS(s,wd,!0),pd in t&&Array.isArray(o)){const{items:l,additionalItems:c}=t;Array.isArray(l)?o.forEach(((t,o)=>{l[o]?s[o]=cP(e,l[o],`${r}.${o}`,n,t,a,i):c?s[o]=cP(e,c,`${r}.${o}`,n,t,a,i):console.warn(`Unable to generate path schema for "${r}.${o}". No schema defined for it`)})):o.forEach(((t,o)=>{s[o]=cP(e,l,`${r}.${o}`,n,t,a,i)}))}else if(vd in t)for(const l in t.properties){const c=Qv(t,[vd,l]);s[l]=cP(e,c,`${r}.${l}`,n,Qv(o,[l]),a,i)}return s}function uP(e,t,r="",n,o,a){return cP(e,t,r,n,o,void 0,a)}class dP{constructor(e,t,r,n){this.rootSchema=t,this.validator=e,this.experimental_defaultFormStateBehavior=r,this.experimental_customMergeAllOf=n}getValidator(){return this.validator}doesSchemaUtilsDiffer(e,t,r={},n){return!(!e||!t)&&(this.validator!==e||!dv(this.rootSchema,t)||!dv(this.experimental_defaultFormStateBehavior,r)||this.experimental_customMergeAllOf!==n)}getDefaultFormState(e,t,r=!1){return rP(this.validator,e,t,this.rootSchema,r,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf)}getDisplayLabel(e,t,r){return function(e,t,r={},n,o,a){const i=kd(r,o),{label:s=!0}=i;let l=!!s;const c=CC(t);return"array"===c&&(l=HC(e,t,n,a)||oP(e,t,r,n,a)||nP(r)),"object"===c&&(l=!1),"boolean"!==c||r[xd]||(l=!1),r["ui:field"]&&(l=!1),l}(this.validator,e,t,this.rootSchema,r,this.experimental_customMergeAllOf)}getClosestMatchingOption(e,t,r,n){return LC(this.validator,this.rootSchema,e,t,r,n,this.experimental_customMergeAllOf)}getFirstMatchingOption(e,t,r){return qS(this.validator,e,t,this.rootSchema,r)}getMatchingOption(e,t,r){return WS(this.validator,e,t,this.rootSchema,r)}isFilesArray(e,t){return oP(this.validator,e,t,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(e){return HC(this.validator,e,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(e){return KC(this.validator,e,this.rootSchema,this.experimental_customMergeAllOf)}mergeValidationData(e,t){return function(e,t,r){if(!r)return t;const{errors:n,errorSchema:o}=t;let a=e.toErrorList(r),i=r;return ay(o)||(i=WC(o,r,!0),a=[...n].concat(a)),{errorSchema:i,errors:a}}(this.validator,e,t)}retrieveSchema(e,t){return jC(this.validator,e,this.rootSchema,t,this.experimental_customMergeAllOf)}sanitizeDataForNewSchema(e,t,r){return iP(this.validator,this.rootSchema,e,t,r,this.experimental_customMergeAllOf)}toIdSchema(e,t,r,n="root",o="_"){return lP(this.validator,e,t,this.rootSchema,r,n,o,this.experimental_customMergeAllOf)}toPathSchema(e,t,r){return uP(this.validator,e,t,this.rootSchema,r,this.experimental_customMergeAllOf)}}function fP(e,t){let r=String(e);for(;r.length<t;)r="0"+r;return r}function pP(e,t){if(e<=0&&t<=0)e=(new Date).getFullYear()+e,t=(new Date).getFullYear()+t;else if(e<0||t<0)throw new Error(`Both start (${e}) and stop (${t}) must both be <= 0 or > 0, got one of each`);if(e>t)return pP(t,e).reverse();const r=[];for(let n=e;n<=t;n++)r.push({value:n,label:fP(n,2)});return r}function mP(e,t){return function(e,t){let r=e;if(Array.isArray(t)){const e=r.split(/(%\d)/);t.forEach(((t,r)=>{const n=e.findIndex((e=>e===`%${r+1}`));n>=0&&(e[n]=t)})),r=e.join("")}return r}(e,t)}function hP(e,t=[],r){if(Array.isArray(e))return e.map((e=>hP(e,t))).filter((e=>e!==r));const n=""===e||null===e?-1:Number(e),o=t[n];return o?o.value:r}function vP(e,t,r=[]){const n=hP(e,r);return Array.isArray(t)?t.filter((e=>!dv(e,n))):dv(n,t)?void 0:t}function yP(e,t){return Array.isArray(t)?t.some((t=>dv(t,e))):dv(t,e)}function gP(e,t=[],r=!1){const n=t.map(((t,r)=>yP(t.value,e)?String(r):void 0)).filter((e=>void 0!==e));return r?n:n[0]}function bP(e,t,r=[]){const n=hP(e,r);if(!BC(n)){const e=r.findIndex((e=>n===e.value)),o=r.map((({value:e})=>e));return t.slice(0,e).concat(n,t.slice(e)).sort(((e,t)=>Number(o.indexOf(e)>o.indexOf(t))))}return t}var wP=JS;var SP=r((function(e,t,r,n){return n="function"==typeof n?n:void 0,null==e?e:wP(e,t,r,n)}));class xP{constructor(e){this.errorSchema={},this.resetAllErrors(e)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(e){let t=Array.isArray(e)&&e.length>0||"string"==typeof e?Qv(this.errorSchema,e):this.errorSchema;return!t&&e&&(t={},SP(this.errorSchema,e,t,Object)),t}resetAllErrors(e){return this.errorSchema=e?N$(e):{},this}addErrors(e,t){const r=this.getOrCreateErrorBlock(t);let n=Qv(r,ud);return Array.isArray(n)||(n=[],r[ud]=n),Array.isArray(e)?ZS(r,ud,[...new Set([...n,...e])]):ZS(r,ud,[...new Set([...n,e])]),this}setErrors(e,t){const r=this.getOrCreateErrorBlock(t),n=Array.isArray(e)?[...new Set([...e])]:[e];return ZS(r,ud,n),this}clearErrors(e){const t=this.getOrCreateErrorBlock(e);return ZS(t,ud,[]),this}}function $P(e,t,r=[1900,(new Date).getFullYear()+2],n="YMD"){const{day:o,month:a,year:i,hour:s,minute:l,second:c}=e,u={type:"day",range:[1,31],value:o},d={type:"month",range:[1,12],value:a},f={type:"year",range:r,value:i},p=[];switch(n){case"MDY":p.push(d,u,f);break;case"DMY":p.push(u,d,f);break;default:p.push(f,d,u)}return t&&p.push({type:"hour",range:[0,23],value:s},{type:"minute",range:[0,59],value:l},{type:"second",range:[0,59],value:c}),p}function kP(e){const t={};return e.multipleOf&&(t.step=e.multipleOf),(e.minimum||0===e.minimum)&&(t.min=e.minimum),(e.maximum||0===e.maximum)&&(t.max=e.maximum),t}function _P(e,t,r={},n=!0){const o={type:t||"text",...kP(e)};return r.inputType?o.type=r.inputType:t||("number"===e.type?(o.type="number",n&&void 0===o.step&&(o.step="any")):"integer"===e.type&&(o.type="number",void 0===o.step&&(o.step=1))),r.autocomplete&&(o.autoComplete=r.autocomplete),r.accept&&(o.accept=r.accept),o}const EP={props:{disabled:!1},submitText:"Submit",norender:!1};function CP(e={}){const t=kd(e);if(t&&t[gd]){const e=t[gd];return{...EP,...e}}return EP}function PP(e,t,r={}){const{templates:n}=t;return"ButtonTemplates"===e?n[e]:r[e]||n[e]}var jP={exports:{}},OP={},NP=L,RP=Symbol.for("react.element"),TP=Symbol.for("react.fragment"),IP=Object.prototype.hasOwnProperty,MP=NP.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,FP={key:!0,ref:!0,__self:!0,__source:!0};function DP(e,t,r){var n,o={},a=null,i=null;for(n in void 0!==r&&(a=""+r),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(i=t.ref),t)IP.call(t,n)&&!FP.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:RP,type:e,key:a,ref:i,props:o,_owner:MP.current}}OP.Fragment=TP,OP.jsx=DP,OP.jsxs=DP,jP.exports=OP;var zP,LP=jP.exports,VP={exports:{}},BP={},UP=Symbol.for("react.element"),WP=Symbol.for("react.portal"),qP=Symbol.for("react.fragment"),KP=Symbol.for("react.strict_mode"),HP=Symbol.for("react.profiler"),GP=Symbol.for("react.provider"),QP=Symbol.for("react.context"),YP=Symbol.for("react.server_context"),JP=Symbol.for("react.forward_ref"),XP=Symbol.for("react.suspense"),ZP=Symbol.for("react.suspense_list"),ej=Symbol.for("react.memo"),tj=Symbol.for("react.lazy"),rj=Symbol.for("react.offscreen");function nj(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case UP:switch(e=e.type){case qP:case HP:case KP:case XP:case ZP:return e;default:switch(e=e&&e.$$typeof){case YP:case QP:case JP:case tj:case ej:case GP:return e;default:return t}}case WP:return t}}}zP=Symbol.for("react.module.reference"),BP.ContextConsumer=QP,BP.ContextProvider=GP,BP.Element=UP,BP.ForwardRef=JP,BP.Fragment=qP,BP.Lazy=tj,BP.Memo=ej,BP.Portal=WP,BP.Profiler=HP,BP.StrictMode=KP,BP.Suspense=XP,BP.SuspenseList=ZP,BP.isAsyncMode=function(){return!1},BP.isConcurrentMode=function(){return!1},BP.isContextConsumer=function(e){return nj(e)===QP},BP.isContextProvider=function(e){return nj(e)===GP},BP.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===UP},BP.isForwardRef=function(e){return nj(e)===JP},BP.isFragment=function(e){return nj(e)===qP},BP.isLazy=function(e){return nj(e)===tj},BP.isMemo=function(e){return nj(e)===ej},BP.isPortal=function(e){return nj(e)===WP},BP.isProfiler=function(e){return nj(e)===HP},BP.isStrictMode=function(e){return nj(e)===KP},BP.isSuspense=function(e){return nj(e)===XP},BP.isSuspenseList=function(e){return nj(e)===ZP},BP.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===qP||e===HP||e===KP||e===XP||e===ZP||e===rj||"object"==typeof e&&null!==e&&(e.$$typeof===tj||e.$$typeof===ej||e.$$typeof===GP||e.$$typeof===QP||e.$$typeof===JP||e.$$typeof===zP||void 0!==e.getModuleId)},BP.typeOf=nj,VP.exports=BP;var oj=r(VP.exports);const aj={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",time:"TimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function ij(e,t,r={}){const n=CC(e);if("function"==typeof t||t&&oj.isForwardRef(L.createElement(t))||oj.isMemo(t))return function(e){let t=Qv(e,"MergedWidget");if(!t){const r=e.defaultProps&&e.defaultProps.options||{};t=({options:t,...n})=>LP.jsx(e,{options:{...r,...t},...n}),ZS(e,"MergedWidget",t)}return t}(t);if("string"!=typeof t)throw new Error("Unsupported widget definition: "+typeof t);if(t in r){return ij(e,r[t],r)}if("string"==typeof n){if(!(n in aj))throw new Error(`No widget for type '${n}'`);if(t in aj[n]){return ij(e,r[aj[n][t]],r)}}throw new Error(`No widget '${t}' for type '${n}'`)}function sj(e,t){return`${$w(e)?e:e[dd]}__${t}`}function lj(e){return sj(e,"description")}function cj(e){return sj(e,"error")}function uj(e){return sj(e,"examples")}function dj(e){return sj(e,"help")}function fj(e){return sj(e,"title")}function pj(e,t=!1){const r=t?` ${uj(e)}`:"";return`${cj(e)} ${lj(e)} ${dj(e)}${r}`}function mj(e,t){return`${e}-${t}`}function hj(e,t,r){return t?r:e}function vj(e,t=!0){if(!e)return{year:-1,month:-1,day:-1,hour:t?-1:0,minute:t?-1:0,second:t?-1:0};const r=new Date(e);if(Number.isNaN(r.getTime()))throw new Error("Unable to parse date "+e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:t?r.getUTCHours():0,minute:t?r.getUTCMinutes():0,second:t?r.getUTCSeconds():0}}function yj(e){if(e.const)return!0;if(e.enum&&1===e.enum.length&&!0===e.enum[0])return!0;if(e.anyOf&&1===e.anyOf.length)return yj(e.anyOf[0]);if(e.oneOf&&1===e.oneOf.length)return yj(e.oneOf[0]);if(e.allOf){const t=e=>yj(e);return e.allOf.some(t)}return!1}function gj(e,t=!0){const{year:r,month:n,day:o,hour:a=0,minute:i=0,second:s=0}=e,l=Date.UTC(r,n-1,o,a,i,s),c=new Date(l).toJSON();return t?c:c.slice(0,10)}function bj(e,t=[]){if(!e)return[];let r=[];return ud in e&&(r=r.concat(e[ud].map((e=>{const r=`.${t.join(".")}`;return{property:r,message:e,stack:`${r} ${e}`}})))),Object.keys(e).reduce(((r,n)=>{if(n!==ud){const o=e[n];ef(o)&&(r=r.concat(bj(o,[...t,n])))}return r}),r)}var wj=Pv,Sj=By,xj=dm,$j=mv,kj=Cv,_j=Uv,Ej=Mv;var Cj=r((function(e){return xj(e)?wj(e,_j):$j(e)?[e]:Sj(kj(Ej(e)))}));function Pj(e){return Object.keys(e).reduce(((t,r)=>{if("addError"===r)return t;{const n=e[r];return ef(n)?{...t,[r]:Pj(n)}:{...t,[r]:n}}}),{})}function jj(e){if(!e)return"";const t=new Date(e);return`${fP(t.getFullYear(),4)}-${fP(t.getMonth()+1,2)}-${fP(t.getDate(),2)}T${fP(t.getHours(),2)}:${fP(t.getMinutes(),2)}:${fP(t.getSeconds(),2)}.${fP(t.getMilliseconds(),3)}`}function Oj(e,t){if(!t)return e;const{errors:r,errorSchema:n}=e;let o=bj(t),a=t;return ay(n)||(a=WC(n,t,!0),o=[...r].concat(o)),{errorSchema:a,errors:o}}function Nj(e){return Array.isArray(e)?function(e){for(let t=0;t<e.length;t++)e[t]=Nj(e[t]);return e}([...e]):Pf(e)?function(e){for(const t in e){const r=e,n=r[t];t===bd&&"string"==typeof n&&n.startsWith("#")?r[t]=Sd+n:r[t]=Nj(n)}return e}({...e}):e}var Rj=Kv,Tj=JS,Aj=Vv;var Ij=function(e,t,r){for(var n=-1,o=t.length,a={};++n<o;){var i=t[n],s=Rj(e,i);r(s,i)&&Tj(a,Aj(i,e),s)}return a},Mj=Pv,Fj=dS,Dj=Ij,zj=ng;var Lj,Vj=r((function(e,t){if(null==e)return{};var r=Mj(zj(e),(function(e){return[e]}));return t=Fj(t),Dj(e,r,(function(e,r){return t(e,r[0])}))})),Bj=eE,Uj=Ob,Wj=yx,qj=Hx((function(e,t){return Wj(e)?Bj(e,Uj(t,1,Wj,!0)):[]})),Kj=r(qj);!function(e){e.ArrayItemTitle="Item",e.MissingItems="Missing items definition",e.YesLabel="Yes",e.NoLabel="No",e.CloseLabel="Close",e.ErrorsLabel="Errors",e.NewStringDefault="New Value",e.AddButton="Add",e.AddItemButton="Add Item",e.CopyButton="Copy",e.MoveDownButton="Move down",e.MoveUpButton="Move up",e.RemoveButton="Remove",e.NowLabel="Now",e.ClearLabel="Clear",e.AriaDateLabel="Select a date",e.PreviewLabel="Preview",e.DecrementAriaLabel="Decrease value by 1",e.IncrementAriaLabel="Increase value by 1",e.UnknownFieldType="Unknown field type %1",e.OptionPrefix="Option %1",e.TitleOptionPrefix="%1 option %2",e.KeyLabel="%1 Key",e.InvalidObjectField='Invalid "%1" object field configuration: _%2_.',e.UnsupportedField="Unsupported field schema.",e.UnsupportedFieldWithId="Unsupported field schema for field `%1`.",e.UnsupportedFieldWithReason="Unsupported field schema: _%1_.",e.UnsupportedFieldWithIdAndReason="Unsupported field schema for field `%1`: _%2_.",e.FilesInfo="**%1** (%2, %3 bytes)"}(Lj||(Lj={}));var Hj,Gj={exports:{}},Qj={},Yj={},Jj={},Xj={},Zj={},eO={};function tO(){return Hj||(Hj=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(t){if(super(),!e.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function o(e,...t){const r=[e[0]];let o=0;for(;o<t.length;)s(r,t[o]),r.push(e[++o]);return new n(r)}e._Code=n,e.nil=new n(""),e._=o;const a=new n("+");function i(e,...t){const r=[c(e[0])];let o=0;for(;o<t.length;)r.push(a),s(r,t[o]),r.push(a,c(e[++o]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===a){const r=l(e[t-1],e[t+1]);if(void 0!==r){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}(r),new n(r)}function s(e,t){t instanceof n?e.push(...t._items):t instanceof r?e.push(t):e.push(function(e){return"number"==typeof e||"boolean"==typeof e||null===e?e:c(Array.isArray(e)?e.join(","):e)}(t))}function l(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof r||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof r?void 0:`"${e}${t.slice(1)}`}function c(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.str=i,e.addCodeArg=s,e.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:i`${e}${t}`},e.stringify=function(e){return new n(c(e))},e.safeStringify=c,e.getProperty=function(t){return"string"==typeof t&&e.IDENTIFIER.test(t)?new n(`.${t}`):o`[${t}]`},e.getEsmExportName=function(t){if("string"==typeof t&&e.IDENTIFIER.test(t))return new n(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)},e.regexpCode=function(e){return new n(e.toString())}}(eO)),eO}var rO,nO,oO={};function aO(){return rO||(rO=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=tO();class r extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var n;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(n=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class o{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,r;if((null===(r=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===r?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}e.Scope=o;class a extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e,this.scopePath=t._`.${new t.Name(r)}[${n}]`}}e.ValueScopeName=a;const i=t._`\n`;e.ValueScope=class extends o{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?i:t.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const n=this.toName(e),{prefix:o}=n,a=null!==(r=t.key)&&void 0!==r?r:t.ref;let i=this._values[o];if(i){const e=i.get(a);if(e)return e}else i=this._values[o]=new Map;i.set(a,n);const s=this._scope[o]||(this._scope[o]=[]),l=s.length;return s[l]=t.ref,n.setValue(t,{property:o,itemIndex:l}),n}getValue(e,t){const r=this._values[e];if(r)return r.get(t)}scopeRefs(e,r=this._values){return this._reduceValues(r,(r=>{if(void 0===r.scopePath)throw new Error(`CodeGen: name "${r}" has no value`);return t._`${e}${r.scopePath}`}))}scopeCode(e=this._values,t,r){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,r)}_reduceValues(o,a,i={},s){let l=t.nil;for(const c in o){const u=o[c];if(!u)continue;const d=i[c]=i[c]||new Map;u.forEach((o=>{if(d.has(o))return;d.set(o,n.Started);let i=a(o);if(i){const r=this.opts.es5?e.varKinds.var:e.varKinds.const;l=t._`${l}${r} ${o} = ${i};${this.opts._n}`}else{if(!(i=null==s?void 0:s(o)))throw new r(o);l=t._`${l}${i}${this.opts._n}`}d.set(o,n.Completed)}))}return l}}}(oO)),oO}function iO(){return nO||(nO=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=tO(),r=aO();var n=tO();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var o=aO();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(e,t){return this}}class i extends a{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){const n=e?r.varKinds.var:this.varKind,o=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=j(this.rhs,e,t)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof t.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=j(this.rhs,e,r),this}get names(){return P(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}}class l extends s{constructor(e,t,r,n){super(e,r,n),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class c extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class u extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class d extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class f extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=j(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class p extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,r)=>t+r.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:r}=this;let n=r.length;for(;n--;){const o=r[n];o.optimizeNames(e,t)||(O(e,o.names),r.splice(n,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>C(e,t.names)),{})}}class m extends p{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class h extends p{}class v extends m{}v.kind="else";class y extends m{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof y?t:t.nodes:this.nodes.length?this:new y(N(e),t instanceof y?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=j(this.condition,e,t),this}get names(){const e=super.names;return P(e,this.condition),this.else&&C(e,this.else.names),e}}y.kind="if";class g extends m{}g.kind="for";class b extends g{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=j(this.iteration,e,t),this}get names(){return C(super.names,this.iteration.names)}}class w extends g{constructor(e,t,r,n){super(),this.varKind=e,this.name=t,this.from=r,this.to=n}render(e){const t=e.es5?r.varKinds.var:this.varKind,{name:n,from:o,to:a}=this;return`for(${t} ${n}=${o}; ${n}<${a}; ${n}++)`+super.render(e)}get names(){const e=P(super.names,this.from);return P(e,this.to)}}class S extends g{constructor(e,t,r,n){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=j(this.iterable,e,t),this}get names(){return C(super.names,this.iterable.names)}}class x extends m{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}x.kind="func";class $ extends p{render(e){return"return "+super.render(e)}}$.kind="return";class k extends m{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,n;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(n=this.finally)||void 0===n||n.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&C(e,this.catch.names),this.finally&&C(e,this.finally.names),e}}class _ extends m{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}_.kind="catch";class E extends m{render(e){return"finally"+super.render(e)}}E.kind="finally";function C(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function P(e,r){return r instanceof t._CodeOrName?C(e,r.names):e}function j(e,r,n){return e instanceof t.Name?o(e):function(e){return e instanceof t._Code&&e._items.some((e=>e instanceof t.Name&&1===r[e.str]&&void 0!==n[e.str]))}(e)?new t._Code(e._items.reduce(((e,r)=>(r instanceof t.Name&&(r=o(r)),r instanceof t._Code?e.push(...r._items):e.push(r),e)),[])):e;function o(e){const t=n[e.str];return void 0===t||1!==r[e.str]?e:(delete r[e.str],t)}}function O(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function N(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:t._`!${I(e)}`}e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new r.Scope({parent:e}),this._nodes=[new h]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){const o=this._scope.toName(t);return void 0!==r&&n&&(this._constants[o.str]=r),this._leafNode(new i(e,o,r)),o}const(e,t,n){return this._def(r.varKinds.const,e,t,n)}let(e,t,n){return this._def(r.varKinds.let,e,t,n)}var(e,t,n){return this._def(r.varKinds.var,e,t,n)}assign(e,t,r){return this._leafNode(new s(e,t,r))}add(t,r){return this._leafNode(new l(t,e.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==t.nil&&this._leafNode(new f(e)),this}object(...e){const r=["{"];for(const[n,o]of e)r.length>1&&r.push(","),r.push(n),(n!==o||this.opts.es5)&&(r.push(":"),(0,t.addCodeArg)(r,o));return r.push("}"),new t._Code(r)}if(e,t,r){if(this._blockNode(new y(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new y(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(y,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new b(e),t)}forRange(e,t,n,o,a=(this.opts.es5?r.varKinds.var:r.varKinds.let)){const i=this._scope.toName(e);return this._for(new w(a,i,t,n),(()=>o(i)))}forOf(e,n,o,a=r.varKinds.const){const i=this._scope.toName(e);if(this.opts.es5){const e=n instanceof t.Name?n:this.var("_arr",n);return this.forRange("_i",0,t._`${e}.length`,(r=>{this.var(i,t._`${e}[${r}]`),o(i)}))}return this._for(new S("of",a,i,n),(()=>o(i)))}forIn(e,n,o,a=(this.opts.es5?r.varKinds.var:r.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,t._`Object.keys(${n})`,o);const i=this._scope.toName(e);return this._for(new S("in",a,i,n),(()=>o(i)))}endFor(){return this._endBlockNode(g)}label(e){return this._leafNode(new c(e))}break(e){return this._leafNode(new u(e))}return(e){const t=new $;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode($)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new k;if(this._blockNode(n),this.code(e),t){const e=this.name("e");this._currNode=n.catch=new _(e),t(e)}return r&&(this._currNode=n.finally=new E,this.code(r)),this._endBlockNode(_,E)}throw(e){return this._leafNode(new d(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,r=t.nil,n,o){return this._blockNode(new x(e,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(x)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof y))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},e.not=N;const R=A(e.operators.AND);e.and=function(...e){return e.reduce(R)};const T=A(e.operators.OR);function A(e){return(r,n)=>r===t.nil?n:n===t.nil?r:t._`${I(r)} ${e} ${I(n)}`}function I(e){return e instanceof t.Name?e:t._`(${e})`}e.or=function(...e){return e.reduce(T)}}(Zj)),Zj}var sO={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=iO(),r=tO();function n(e,t=e.schema){const{opts:r,self:n}=e;if(!r.strictSchema)return;if("boolean"==typeof t)return;const o=n.RULES.keywords;for(const r in t)o[r]||f(e,`unknown keyword: "${r}"`)}function o(e,t){if("boolean"==typeof e)return!e;for(const r in e)if(t[r])return!0;return!1}function a(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function i(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function s({mergeNames:e,mergeToName:r,mergeValues:n,resultToName:o}){return(a,i,s,l)=>{const c=void 0===s?i:s instanceof t.Name?(i instanceof t.Name?e(a,i,s):r(a,i,s),s):i instanceof t.Name?(r(a,s,i),i):n(i,s);return l!==t.Name||c instanceof t.Name?c:o(a,c)}}function l(e,r){if(!0===r)return e.var("props",!0);const n=e.var("props",t._`{}`);return void 0!==r&&c(e,n,r),n}function c(e,r,n){Object.keys(n).forEach((n=>e.assign(t._`${r}${(0,t.getProperty)(n)}`,!0)))}e.toHash=function(e){const t={};for(const r of e)t[r]=!0;return t},e.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(n(e,t),!o(t,e.self.RULES.all))},e.checkUnknownRules=n,e.schemaHasRules=o,e.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const r in e)if("$ref"!==r&&t.all[r])return!0;return!1},e.schemaRefOrVal=function({topSchemaRef:e,schemaPath:r},n,o,a){if(!a){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return t._`${n}`}return t._`${e}${r}${(0,t.getProperty)(o)}`},e.unescapeFragment=function(e){return i(decodeURIComponent(e))},e.escapeFragment=function(e){return encodeURIComponent(a(e))},e.escapeJsonPointer=a,e.unescapeJsonPointer=i,e.eachItem=function(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)},e.mergeEvaluated={props:s({mergeNames:(e,r,n)=>e.if(t._`${n} !== true && ${r} !== undefined`,(()=>{e.if(t._`${r} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,t._`${n} || {}`).code(t._`Object.assign(${n}, ${r})`)))})),mergeToName:(e,r,n)=>e.if(t._`${n} !== true`,(()=>{!0===r?e.assign(n,!0):(e.assign(n,t._`${n} || {}`),c(e,n,r))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:l}),items:s({mergeNames:(e,r,n)=>e.if(t._`${n} !== true && ${r} !== undefined`,(()=>e.assign(n,t._`${r} === true ? true : ${n} > ${r} ? ${n} : ${r}`))),mergeToName:(e,r,n)=>e.if(t._`${n} !== true`,(()=>e.assign(n,!0===r||t._`${n} > ${r} ? ${n} : ${r}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},e.evaluatedPropsToName=l,e.setEvaluated=c;const u={};var d;function f(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw new Error(t);e.self.logger.warn(t)}}e.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:u[t.code]||(u[t.code]=new r._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(d=e.Type||(e.Type={})),e.getErrorPath=function(e,r,n){if(e instanceof t.Name){const o=r===d.Num;return n?o?t._`"[" + ${e} + "]"`:t._`"['" + ${e} + "']"`:o?t._`"/" + ${e}`:t._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,t.getProperty)(e).toString():"/"+a(e)},e.checkStrictMode=f}(sO);var lO,cO,uO,dO={};function fO(){if(lO)return dO;lO=1,Object.defineProperty(dO,"__esModule",{value:!0});const e=iO(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return dO.default=t,dO}function pO(){return cO||(cO=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=iO(),r=sO,n=fO();function o(e,r){const o=e.const("err",r);e.if(t._`${n.default.vErrors} === null`,(()=>e.assign(n.default.vErrors,t._`[${o}]`)),t._`${n.default.vErrors}.push(${o})`),e.code(t._`${n.default.errors}++`)}function a(e,r){const{gen:n,validateName:o,schemaEnv:a}=e;a.$async?n.throw(t._`new ${e.ValidationError}(${r})`):(n.assign(t._`${o}.errors`,r),n.return(!1))}e.keywordError={message:({keyword:e})=>t.str`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:r})=>r?t.str`"${e}" keyword must be ${r} ($data)`:t.str`"${e}" keyword is invalid ($data)`},e.reportError=function(r,n=e.keywordError,i,l){const{it:c}=r,{gen:u,compositeRule:d,allErrors:f}=c,p=s(r,n,i);(null!=l?l:d||f)?o(u,p):a(c,t._`[${p}]`)},e.reportExtraError=function(t,r=e.keywordError,i){const{it:l}=t,{gen:c,compositeRule:u,allErrors:d}=l;o(c,s(t,r,i)),u||d||a(l,n.default.vErrors)},e.resetErrorsCount=function(e,r){e.assign(n.default.errors,r),e.if(t._`${n.default.vErrors} !== null`,(()=>e.if(r,(()=>e.assign(t._`${n.default.vErrors}.length`,r)),(()=>e.assign(n.default.vErrors,null)))))},e.extendErrors=function({gen:e,keyword:r,schemaValue:o,data:a,errsCount:i,it:s}){if(void 0===i)throw new Error("ajv implementation error");const l=e.name("err");e.forRange("i",i,n.default.errors,(i=>{e.const(l,t._`${n.default.vErrors}[${i}]`),e.if(t._`${l}.instancePath === undefined`,(()=>e.assign(t._`${l}.instancePath`,(0,t.strConcat)(n.default.instancePath,s.errorPath)))),e.assign(t._`${l}.schemaPath`,t.str`${s.errSchemaPath}/${r}`),s.opts.verbose&&(e.assign(t._`${l}.schema`,o),e.assign(t._`${l}.data`,a))}))};const i={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function s(e,r,o){const{createErrors:a}=e.it;return!1===a?t._`{}`:function(e,r,o={}){const{gen:a,it:s}=e,u=[l(s,o),c(e,o)];return function(e,{params:r,message:o},a){const{keyword:s,data:l,schemaValue:c,it:u}=e,{opts:d,propertyName:f,topSchemaRef:p,schemaPath:m}=u;a.push([i.keyword,s],[i.params,"function"==typeof r?r(e):r||t._`{}`]),d.messages&&a.push([i.message,"function"==typeof o?o(e):o]);d.verbose&&a.push([i.schema,c],[i.parentSchema,t._`${p}${m}`],[n.default.data,l]);f&&a.push([i.propertyName,f])}(e,r,u),a.object(...u)}(e,r,o)}function l({errorPath:e},{instancePath:o}){const a=o?t.str`${e}${(0,r.getErrorPath)(o,r.Type.Str)}`:e;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,a)]}function c({keyword:e,it:{errSchemaPath:n}},{schemaPath:o,parentSchema:a}){let s=a?n:t.str`${n}/${e}`;return o&&(s=t.str`${s}${(0,r.getErrorPath)(o,r.Type.Str)}`),[i.schemaPath,s]}}(Xj)),Xj}var mO={},hO={};Object.defineProperty(hO,"__esModule",{value:!0}),hO.getRules=hO.isJSONType=void 0;const vO=new Set(["string","number","integer","boolean","null","object","array"]);hO.isJSONType=function(e){return"string"==typeof e&&vO.has(e)},hO.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}};var yO,gO={};function bO(){if(yO)return gO;function e(e,r){return r.rules.some((r=>t(e,r)))}function t(e,t){var r;return void 0!==e[t.keyword]||(null===(r=t.definition.implements)||void 0===r?void 0:r.some((t=>void 0!==e[t])))}return yO=1,Object.defineProperty(gO,"__esModule",{value:!0}),gO.shouldUseRule=gO.shouldUseGroup=gO.schemaHasRulesForType=void 0,gO.schemaHasRulesForType=function({schema:t,self:r},n){const o=r.RULES.types[n];return o&&!0!==o&&e(t,o)},gO.shouldUseGroup=e,gO.shouldUseRule=t,gO}!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=hO,r=bO(),n=pO(),o=iO(),a=sO;var i;function s(e){const r=Array.isArray(e)?e:e?[e]:[];if(r.every(t.isJSONType))return r;throw new Error("type must be JSONType or JSONType[]: "+r.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(i=e.DataType||(e.DataType={})),e.getSchemaTypes=function(e){const t=s(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},e.getJSONTypes=s,e.coerceAndCheckDataType=function(e,t){const{gen:n,data:a,opts:s}=e,c=function(e,t){return t?e.filter((e=>l.has(e)||"array"===t&&"array"===e)):[]}(t,s.coerceTypes),d=t.length>0&&!(0===c.length&&1===t.length&&(0,r.schemaHasRulesForType)(e,t[0]));if(d){const r=u(t,a,s.strictNumbers,i.Wrong);n.if(r,(()=>{c.length?function(e,t,r){const{gen:n,data:a,opts:i}=e,s=n.let("dataType",o._`typeof ${a}`),c=n.let("coerced",o._`undefined`);"array"===i.coerceTypes&&n.if(o._`${s} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,(()=>n.assign(a,o._`${a}[0]`).assign(s,o._`typeof ${a}`).if(u(t,a,i.strictNumbers),(()=>n.assign(c,a)))));n.if(o._`${c} !== undefined`);for(const e of r)(l.has(e)||"array"===e&&"array"===i.coerceTypes)&&d(e);function d(e){switch(e){case"string":return void n.elseIf(o._`${s} == "number" || ${s} == "boolean"`).assign(c,o._`"" + ${a}`).elseIf(o._`${a} === null`).assign(c,o._`""`);case"number":return void n.elseIf(o._`${s} == "boolean" || ${a} === null
21
21
  || (${s} == "string" && ${a} && ${a} == +${a})`).assign(c,o._`+${a}`);case"integer":return void n.elseIf(o._`${s} === "boolean" || ${a} === null
22
22
  || (${s} === "string" && ${a} && ${a} == +${a} && !(${a} % 1))`).assign(c,o._`+${a}`);case"boolean":return void n.elseIf(o._`${a} === "false" || ${a} === 0 || ${a} === null`).assign(c,!1).elseIf(o._`${a} === "true" || ${a} === 1`).assign(c,!0);case"null":return n.elseIf(o._`${a} === "" || ${a} === 0 || ${a} === false`),void n.assign(c,null);case"array":n.elseIf(o._`${s} === "string" || ${s} === "number"
23
- || ${s} === "boolean" || ${a} === null`).assign(c,o._`[${a}]`)}}n.else(),f(e),n.endIf(),n.if(o._`${c} !== undefined`,(()=>{n.assign(a,c),function({gen:e,parentData:t,parentDataProperty:r},n){e.if(o._`${t} !== undefined`,(()=>e.assign(o._`${t}[${r}]`,n)))}(e,c)}))}(e,t,c):f(e)}))}return d};const l=new Set(["string","number","integer","boolean","null"]);function c(e,t,r,n=i.Correct){const a=n===i.Correct?o.operators.EQ:o.operators.NEQ;let s;switch(e){case"null":return o._`${t} ${a} null`;case"array":s=o._`Array.isArray(${t})`;break;case"object":s=o._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=l(o._`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=l();break;default:return o._`typeof ${t} ${a} ${e}`}return n===i.Correct?s:(0,o.not)(s);function l(e=o.nil){return(0,o.and)(o._`typeof ${t} == "number"`,e,r?o._`isFinite(${t})`:o.nil)}}function u(e,t,r,n){if(1===e.length)return c(e[0],t,r,n);let i;const s=(0,a.toHash)(e);if(s.array&&s.object){const e=o._`typeof ${t} != "object"`;i=s.null?e:o._`!${t} || ${e}`,delete s.null,delete s.array,delete s.object}else i=o.nil;s.number&&delete s.integer;for(const e in s)i=(0,o.and)(i,c(e,t,r,n));return i}e.checkDataType=c,e.checkDataTypes=u;const d={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?o._`{type: ${e}}`:o._`{type: ${t}}`};function f(e){const t=function(e){const{gen:t,data:r,schema:n}=e,o=(0,a.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}(e);(0,n.reportError)(t,d)}e.reportTypeError=f}(XO);var oN,aN={};var iN,sN,lN={},cN={};function uN(){if(iN)return cN;iN=1,Object.defineProperty(cN,"__esModule",{value:!0}),cN.validateUnion=cN.validateArray=cN.usePattern=cN.callValidateCode=cN.schemaProperties=cN.allSchemaProperties=cN.noPropertyInData=cN.propertyInData=cN.isOwnProperty=cN.hasPropFunc=cN.reportMissingProp=cN.checkMissingProp=cN.checkReportMissingProp=void 0;const e=WO(),t=qO,r=YO(),n=qO;function o(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:e._`Object.prototype.hasOwnProperty`})}function a(t,r,n){return e._`${o(t)}.call(${r}, ${n})`}function i(t,r,n,o){const i=e._`${r}${(0,e.getProperty)(n)} === undefined`;return o?(0,e.or)(i,(0,e.not)(a(t,r,n))):i}function s(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}cN.checkReportMissingProp=function(t,r){const{gen:n,data:o,it:a}=t;n.if(i(n,o,r,a.opts.ownProperties),(()=>{t.setParams({missingProperty:e._`${r}`},!0),t.error()}))},cN.checkMissingProp=function({gen:t,data:r,it:{opts:n}},o,a){return(0,e.or)(...o.map((o=>(0,e.and)(i(t,r,o,n.ownProperties),e._`${a} = ${o}`))))},cN.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},cN.hasPropFunc=o,cN.isOwnProperty=a,cN.propertyInData=function(t,r,n,o){const i=e._`${r}${(0,e.getProperty)(n)} !== undefined`;return o?e._`${i} && ${a(t,r,n)}`:i},cN.noPropertyInData=i,cN.allSchemaProperties=s,cN.schemaProperties=function(e,r){return s(r).filter((n=>!(0,t.alwaysValidSchema)(e,r[n])))},cN.callValidateCode=function({schemaCode:t,data:n,it:{gen:o,topSchemaRef:a,schemaPath:i,errorPath:s},it:l},c,u,d){const f=d?e._`${t}, ${n}, ${a}${i}`:n,p=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,s)],[r.default.parentData,l.parentData],[r.default.parentDataProperty,l.parentDataProperty],[r.default.rootData,r.default.rootData]];l.opts.dynamicRef&&p.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const m=e._`${f}, ${o.object(...p)}`;return u!==e.nil?e._`${c}.call(${u}, ${m})`:e._`${c}(${m})`};const l=e._`new RegExp`;return cN.usePattern=function({gen:t,it:{opts:r}},o){const a=r.unicodeRegExp?"u":"",{regExp:i}=r.code,s=i(o,a);return t.scopeValue("pattern",{key:s.toString(),ref:s,code:e._`${"new RegExp"===i.code?l:(0,n.useFunc)(t,i)}(${o}, ${a})`})},cN.validateArray=function(r){const{gen:n,data:o,keyword:a,it:i}=r,s=n.name("valid");if(i.allErrors){const e=n.let("valid",!0);return l((()=>n.assign(e,!1))),e}return n.var(s,!0),l((()=>n.break())),s;function l(i){const l=n.const("len",e._`${o}.length`);n.forRange("i",0,l,(o=>{r.subschema({keyword:a,dataProp:o,dataPropType:t.Type.Num},s),n.if((0,e.not)(s),i)}))}},cN.validateUnion=function(r){const{gen:n,schema:o,keyword:a,it:i}=r;if(!Array.isArray(o))throw new Error("ajv implementation error");if(o.some((e=>(0,t.alwaysValidSchema)(i,e)))&&!i.opts.unevaluated)return;const s=n.let("valid",!1),l=n.name("_valid");n.block((()=>o.forEach(((t,o)=>{const i=r.subschema({keyword:a,schemaProp:o,compositeRule:!0},l);n.assign(s,e._`${s} || ${l}`);r.mergeValidEvaluated(i,l)||n.if((0,e.not)(s))})))),r.result(s,(()=>r.reset()),(()=>r.error(!0)))},cN}function dN(){if(sN)return lN;sN=1,Object.defineProperty(lN,"__esModule",{value:!0}),lN.validateKeywordUsage=lN.validSchemaType=lN.funcKeywordCode=lN.macroKeywordCode=void 0;const e=WO(),t=YO(),r=uN(),n=JO();function o(t){const{gen:r,data:n,it:o}=t;r.if(o.parentData,(()=>r.assign(n,e._`${o.parentData}[${o.parentDataProperty}]`)))}function a(t,r,n){if(void 0===n)throw new Error(`keyword "${r}" failed to compile`);return t.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,e.stringify)(n)})}return lN.macroKeywordCode=function(t,r){const{gen:n,keyword:o,schema:i,parentSchema:s,it:l}=t,c=r.macro.call(l.self,i,s,l),u=a(n,o,c);!1!==l.opts.validateSchema&&l.self.validateSchema(c,!0);const d=n.name("valid");t.subschema({schema:c,schemaPath:e.nil,errSchemaPath:`${l.errSchemaPath}/${o}`,topSchemaRef:u,compositeRule:!0},d),t.pass(d,(()=>t.error(!0)))},lN.funcKeywordCode=function(i,s){var l;const{gen:c,keyword:u,schema:d,parentSchema:f,$data:p,it:m}=i;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(m,s);const h=!p&&s.compile?s.compile.call(m.self,d,f,m):s.validate,v=a(c,u,h),y=c.let("valid");function g(n=(s.async?e._`await `:e.nil)){const o=m.opts.passContext?t.default.this:t.default.self,a=!("compile"in s&&!p||!1===s.schema);c.assign(y,e._`${n}${(0,r.callValidateCode)(i,v,o,a)}`,s.modifying)}function b(t){var r;c.if((0,e.not)(null!==(r=s.valid)&&void 0!==r?r:y),t)}i.block$data(y,(function(){if(!1===s.errors)g(),s.modifying&&o(i),b((()=>i.error()));else{const r=s.async?function(){const t=c.let("ruleErrs",null);return c.try((()=>g(e._`await `)),(r=>c.assign(y,!1).if(e._`${r} instanceof ${m.ValidationError}`,(()=>c.assign(t,e._`${r}.errors`)),(()=>c.throw(r))))),t}():function(){const t=e._`${v}.errors`;return c.assign(t,null),g(e.nil),t}();s.modifying&&o(i),b((()=>function(r,o){const{gen:a}=r;a.if(e._`Array.isArray(${o})`,(()=>{a.assign(t.default.vErrors,e._`${t.default.vErrors} === null ? ${o} : ${t.default.vErrors}.concat(${o})`).assign(t.default.errors,e._`${t.default.vErrors}.length`),(0,n.extendErrors)(r)}),(()=>r.error()))}(i,r)))}})),i.ok(null!==(l=s.valid)&&void 0!==l?l:y)},lN.validSchemaType=function(e,t,r=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e))},lN.validateKeywordUsage=function({schema:e,opts:t,self:r,errSchemaPath:n},o,a){if(Array.isArray(o.keyword)?!o.keyword.includes(a):o.keyword!==a)throw new Error("ajv implementation error");const i=o.dependencies;if(null==i?void 0:i.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(o.validateSchema){if(!o.validateSchema(e[a])){const e=`keyword "${a}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);r.logger.error(e)}}},lN}var fN,pN={};var mN={},hN=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,o,a;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(o=n;0!=o--;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(a=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;for(o=n;0!=o--;){var i=a[o];if(!e(t[i],r[i]))return!1}return!0}return t!=t&&r!=r},vN={exports:{}},yN=vN.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),gN(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function gN(e,t,r,n,o,a,i,s,l,c){if(n&&"object"==typeof n&&!Array.isArray(n)){for(var u in t(n,o,a,i,s,l,c),n){var d=n[u];if(Array.isArray(d)){if(u in yN.arrayKeywords)for(var f=0;f<d.length;f++)gN(e,t,r,d[f],o+"/"+u+"/"+f,a,o,u,n,f)}else if(u in yN.propsKeywords){if(d&&"object"==typeof d)for(var p in d)gN(e,t,r,d[p],o+"/"+u+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),a,o,u,n,p)}else(u in yN.keywords||e.allKeys&&!(u in yN.skipKeywords))&&gN(e,t,r,d,o+"/"+u,a,o,u,n)}r(n,o,a,i,s,l,c)}}yN.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},yN.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},yN.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},yN.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};var bN=vN.exports;Object.defineProperty(mN,"__esModule",{value:!0}),mN.getSchemaRefs=mN.resolveUrl=mN.normalizeId=mN._getFullPath=mN.getFullPath=mN.inlineRef=void 0;const wN=qO,SN=hN,xN=bN,$N=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);mN.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!_N(e):!!t&&EN(e)<=t)};const kN=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function _N(e){for(const t in e){if(kN.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(_N))return!0;if("object"==typeof r&&_N(r))return!0}return!1}function EN(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!$N.has(r)&&("object"==typeof e[r]&&(0,wN.eachItem)(e[r],(e=>t+=EN(e))),t===1/0))return 1/0}return t}function CN(e,t="",r){!1!==r&&(t=ON(t));const n=e.parse(t);return PN(e,n)}function PN(e,t){return e.serialize(t).split("#")[0]+"#"}mN.getFullPath=CN,mN._getFullPath=PN;const jN=/#\/?$/;function ON(e){return e?e.replace(jN,""):""}mN.normalizeId=ON,mN.resolveUrl=function(e,t,r){return r=ON(r),e.resolve(t,r)};const NN=/^[a-z_][-a-z0-9._]*$/i;var RN;function AN(){if(RN)return TO;RN=1,Object.defineProperty(TO,"__esModule",{value:!0}),TO.getData=TO.KeywordCxt=TO.validateFunctionCode=void 0;const e=function(){if(GO)return IO;GO=1,Object.defineProperty(IO,"__esModule",{value:!0}),IO.boolOrEmptySchema=IO.topBoolOrEmptySchema=void 0;const e=JO(),t=WO(),r=YO(),n={message:"boolean schema is false"};function o(t,r){const{gen:o,data:a}=t,i={gen:o,keyword:"false schema",data:a,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,e.reportError)(i,n,void 0,r)}return IO.topBoolOrEmptySchema=function(e){const{gen:n,schema:a,validateName:i}=e;!1===a?o(e,!1):"object"==typeof a&&!0===a.$async?n.return(r.default.data):(n.assign(t._`${i}.errors`,null),n.return(!0))},IO.boolOrEmptySchema=function(e,t){const{gen:r,schema:n}=e;!1===n?(r.var(t,!1),o(e)):r.var(t,!0)},IO}(),t=XO,r=nN(),n=XO,o=function(){if(oN)return aN;oN=1,Object.defineProperty(aN,"__esModule",{value:!0}),aN.assignDefaults=void 0;const e=WO(),t=qO;function r(r,n,o){const{gen:a,compositeRule:i,data:s,opts:l}=r;if(void 0===o)return;const c=e._`${s}${(0,e.getProperty)(n)}`;if(i)return void(0,t.checkStrictMode)(r,`default is ignored for: ${c}`);let u=e._`${c} === undefined`;"empty"===l.useDefaults&&(u=e._`${u} || ${c} === null || ${c} === ""`),a.if(u,e._`${c} = ${(0,e.stringify)(o)}`)}return aN.assignDefaults=function(e,t){const{properties:n,items:o}=e.schema;if("object"===t&&n)for(const t in n)r(e,t,n[t].default);else"array"===t&&Array.isArray(o)&&o.forEach(((t,n)=>r(e,n,t.default)))},aN}(),a=dN(),i=function(){if(fN)return pN;fN=1,Object.defineProperty(pN,"__esModule",{value:!0}),pN.extendSubschemaMode=pN.extendSubschemaData=pN.getSubschema=void 0;const e=WO(),t=qO;return pN.getSubschema=function(r,{keyword:n,schemaProp:o,schema:a,schemaPath:i,errSchemaPath:s,topSchemaRef:l}){if(void 0!==n&&void 0!==a)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==n){const a=r.schema[n];return void 0===o?{schema:a,schemaPath:e._`${r.schemaPath}${(0,e.getProperty)(n)}`,errSchemaPath:`${r.errSchemaPath}/${n}`}:{schema:a[o],schemaPath:e._`${r.schemaPath}${(0,e.getProperty)(n)}${(0,e.getProperty)(o)}`,errSchemaPath:`${r.errSchemaPath}/${n}/${(0,t.escapeFragment)(o)}`}}if(void 0!==a){if(void 0===i||void 0===s||void 0===l)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:a,schemaPath:i,topSchemaRef:l,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')},pN.extendSubschemaData=function(r,n,{dataProp:o,dataPropType:a,data:i,dataTypes:s,propertyName:l}){if(void 0!==i&&void 0!==o)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:c}=n;if(void 0!==o){const{errorPath:i,dataPathArr:s,opts:l}=n;u(c.let("data",e._`${n.data}${(0,e.getProperty)(o)}`,!0)),r.errorPath=e.str`${i}${(0,t.getErrorPath)(o,a,l.jsPropertySyntax)}`,r.parentDataProperty=e._`${o}`,r.dataPathArr=[...s,r.parentDataProperty]}function u(e){r.data=e,r.dataLevel=n.dataLevel+1,r.dataTypes=[],n.definedProperties=new Set,r.parentData=n.data,r.dataNames=[...n.dataNames,e]}void 0!==i&&(u(i instanceof e.Name?i:c.let("data",i,!0)),void 0!==l&&(r.propertyName=l)),s&&(r.dataTypes=s)},pN.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:a}){void 0!==n&&(e.compositeRule=n),void 0!==o&&(e.createErrors=o),void 0!==a&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=r},pN}(),s=WO(),l=YO(),c=mN,u=qO,d=JO();function f({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},a){o.code.es5?e.func(t,s._`${l.default.data}, ${l.default.valCxt}`,n.$async,(()=>{e.code(s._`"use strict"; ${p(r,o)}`),function(e,t){e.if(l.default.valCxt,(()=>{e.var(l.default.instancePath,s._`${l.default.valCxt}.${l.default.instancePath}`),e.var(l.default.parentData,s._`${l.default.valCxt}.${l.default.parentData}`),e.var(l.default.parentDataProperty,s._`${l.default.valCxt}.${l.default.parentDataProperty}`),e.var(l.default.rootData,s._`${l.default.valCxt}.${l.default.rootData}`),t.dynamicRef&&e.var(l.default.dynamicAnchors,s._`${l.default.valCxt}.${l.default.dynamicAnchors}`)}),(()=>{e.var(l.default.instancePath,s._`""`),e.var(l.default.parentData,s._`undefined`),e.var(l.default.parentDataProperty,s._`undefined`),e.var(l.default.rootData,l.default.data),t.dynamicRef&&e.var(l.default.dynamicAnchors,s._`{}`)}))}(e,o),e.code(a)})):e.func(t,s._`${l.default.data}, ${function(e){return s._`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${e.dynamicRef?s._`, ${l.default.dynamicAnchors}={}`:s.nil}}={}`}(o)}`,n.$async,(()=>e.code(p(r,o)).code(a)))}function p(e,t){const r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?s._`/*# sourceURL=${r} */`:s.nil}function m(t,r){v(t)&&(y(t),h(t))?function(e,t){const{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&b(e);(function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,c.resolveUrl)(e.opts.uriResolver,e.baseId,t))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const a=n.const("_errs",l.default.errors);g(e,a),n.var(t,s._`${a} === ${l.default.errors}`)}(t,r):(0,e.boolOrEmptySchema)(t,r)}function h({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function y(e){(0,u.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function g(e,r){if(e.opts.jtd)return w(e,[],!1,r);const n=(0,t.getSchemaTypes)(e.schema);w(e,n,!(0,t.coerceAndCheckDataType)(e,n),r)}function b({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){const a=r.$comment;if(!0===o.$comment)e.code(s._`${l.default.self}.logger.log(${a})`);else if("function"==typeof o.$comment){const r=s.str`${n}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code(s._`${l.default.self}.opts.$comment(${a}, ${r}, ${o}.schema)`)}}function w(e,t,o,a){const{gen:i,schema:c,data:d,allErrors:f,opts:p,self:m}=e,{RULES:h}=m;function v(u){(0,r.shouldUseGroup)(c,u)&&(u.type?(i.if((0,n.checkDataType)(u.type,d,p.strictNumbers)),S(e,u),1===t.length&&t[0]===u.type&&o&&(i.else(),(0,n.reportTypeError)(e)),i.endIf()):S(e,u),f||i.if(s._`${l.default.errors} === ${a||0}`))}!c.$ref||!p.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(c,h)?(p.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach((t=>{$(e.dataTypes,t)||k(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const r=[];for(const n of e.dataTypes)$(t,n)?r.push(n):t.includes("integer")&&"number"===n&&r.push("integer");e.dataTypes=r}(e,t)})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&k(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const n=e.self.RULES.all;for(const o in n){const a=n[o];if("object"==typeof a&&(0,r.shouldUseRule)(e.schema,a)){const{type:r}=a.definition;r.length&&!r.some((e=>x(t,e)))&&k(e,`missing type "${r.join(",")}" for keyword "${o}"`)}}}(e,e.dataTypes)}(e,t),i.block((()=>{for(const e of h.rules)v(e);v(h.post)}))):i.block((()=>E(e,"$ref",h.all.$ref.definition)))}function S(e,t){const{gen:n,schema:a,opts:{useDefaults:i}}=e;i&&(0,o.assignDefaults)(e,t.type),n.block((()=>{for(const n of t.rules)(0,r.shouldUseRule)(a,n)&&E(e,n.keyword,n.definition,t.type)}))}function x(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function $(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function k(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,u.checkStrictMode)(e,t,e.opts.strictTypes)}TO.validateFunctionCode=function(t){v(t)&&(y(t),h(t))?function(e){const{schema:t,opts:r,gen:n}=e;f(e,(()=>{r.$comment&&t.$comment&&b(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,u.checkStrictMode)(e,"default is ignored in the schema root")}(e),n.let(l.default.vErrors,null),n.let(l.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",s._`${r}.evaluated`),t.if(s._`${e.evaluated}.dynamicProps`,(()=>t.assign(s._`${e.evaluated}.props`,s._`undefined`))),t.if(s._`${e.evaluated}.dynamicItems`,(()=>t.assign(s._`${e.evaluated}.items`,s._`undefined`)))}(e),g(e),function(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:a}=e;r.$async?t.if(s._`${l.default.errors} === 0`,(()=>t.return(l.default.data)),(()=>t.throw(s._`new ${o}(${l.default.vErrors})`))):(t.assign(s._`${n}.errors`,l.default.vErrors),a.unevaluated&&function({gen:e,evaluated:t,props:r,items:n}){r instanceof s.Name&&e.assign(s._`${t}.props`,r);n instanceof s.Name&&e.assign(s._`${t}.items`,n)}(e),t.return(s._`${l.default.errors} === 0`))}(e)}))}(t):f(t,(()=>(0,e.topBoolOrEmptySchema)(t)))};class _{constructor(e,t,r){if((0,a.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",j(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,a.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",l.default.errors))}result(e,t,r){this.failResult((0,s.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,s.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(s._`${t} !== undefined && (${(0,s.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t)return this.setParams(t),this._error(e,r),void this.setParams({});this._error(e,r)}_error(e,t){(e?d.reportExtraError:d.reportError)(this,this.def.error,t)}$dataError(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=s.nil){this.gen.block((()=>{this.check$data(e,r),t()}))}check$data(e=s.nil,t=s.nil){if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:o,def:a}=this;r.if((0,s.or)(s._`${n} === undefined`,t)),e!==s.nil&&r.assign(e,!0),(o.length||a.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==s.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:o,it:a}=this;return(0,s.or)(function(){if(r.length){if(!(t instanceof s.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return s._`${(0,n.checkDataTypes)(e,t,a.opts.strictNumbers,n.DataType.Wrong)}`}return s.nil}(),function(){if(o.validateSchema){const r=e.scopeValue("validate$data",{ref:o.validateSchema});return s._`!${r}(${t})`}return s.nil}())}subschema(e,t){const r=(0,i.getSubschema)(this.it,e);(0,i.extendSubschemaData)(r,this.it,e),(0,i.extendSubschemaMode)(r,e);const n={...this.it,...r,items:void 0,props:void 0};return m(n,t),n}mergeEvaluated(e,t){const{it:r,gen:n}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=u.mergeEvaluated.props(n,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=u.mergeEvaluated.items(n,e.items,r.items,t)))}mergeValidEvaluated(e,t){const{it:r,gen:n}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return n.if(t,(()=>this.mergeEvaluated(e,s.Name))),!0}}function E(e,t,r,n){const o=new _(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,a.funcKeywordCode)(o,r):"macro"in r?(0,a.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,a.funcKeywordCode)(o,r)}TO.KeywordCxt=_;const C=/^\/(?:[^~]|~0|~1)*$/,P=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function j(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,a;if(""===e)return l.default.rootData;if("/"===e[0]){if(!C.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=l.default.rootData}else{const i=P.exec(e);if(!i)throw new Error(`Invalid JSON-pointer: ${e}`);const s=+i[1];if(o=i[2],"#"===o){if(s>=t)throw new Error(d("property/index",s));return n[t-s]}if(s>t)throw new Error(d("data",s));if(a=r[t-s],!o)return a}let i=a;const c=o.split("/");for(const e of c)e&&(a=s._`${a}${(0,s.getProperty)((0,u.unescapeJsonPointer)(e))}`,i=s._`${i} && ${a}`);return i;function d(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}return TO.getData=j,TO}mN.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:r,uriResolver:n}=this.opts,o=ON(e[r]||t),a={"":o},i=CN(n,o,!1),s={},l=new Set;return xN(e,{allKeys:!0},((e,t,n,o)=>{if(void 0===o)return;const d=i+t;let f=a[o];function p(t){const r=this.opts.uriResolver.resolve;if(t=ON(f?r(f,t):t),l.has(t))throw u(t);l.add(t);let n=this.refs[t];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?c(e,n.schema,t):t!==ON(d)&&("#"===t[0]?(c(e,s[t],t),s[t]=e):this.refs[t]=d),t}function m(e){if("string"==typeof e){if(!NN.test(e))throw new Error(`invalid anchor "${e}"`);p.call(this,`#${e}`)}}"string"==typeof e[r]&&(f=p.call(this,e[r])),m.call(this,e.$anchor),m.call(this,e.$dynamicAnchor),a[t]=f})),s;function c(e,t,r){if(void 0!==t&&!SN(e,t))throw u(r)}function u(e){return new Error(`reference "${e}" resolves to more than one schema`)}};var TN,IN={};function MN(){if(TN)return IN;TN=1,Object.defineProperty(IN,"__esModule",{value:!0});class e extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}return IN.default=e,IN}var FN,DN={};function zN(){if(FN)return DN;FN=1,Object.defineProperty(DN,"__esModule",{value:!0});const e=mN;class t extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,e.resolveUrl)(t,r,n),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(t,this.missingRef))}}return DN.default=t,DN}var LN={};Object.defineProperty(LN,"__esModule",{value:!0}),LN.resolveSchema=LN.getCompilingSchema=LN.resolveRef=LN.compileSchema=LN.SchemaEnv=void 0;const VN=WO(),BN=MN(),UN=YO(),WN=mN,qN=qO,KN=AN();let HN=class{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,WN.normalizeId)(null==r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==r?void 0:r.$async,this.refs={}}};function GN(e){const t=YN.call(this,e);if(t)return t;const r=(0,WN.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new VN.CodeGen(this.scope,{es5:n,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:BN.default,code:VN._`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const c={gen:i,allErrors:this.opts.allErrors,data:UN.default.data,parentData:UN.default.parentData,parentDataProperty:UN.default.parentDataProperty,dataNames:[UN.default.data],dataPathArr:[VN.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,VN.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:VN.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:VN._`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,KN.validateFunctionCode)(c),i.optimize(this.opts.code.optimize);const t=i.toString();u=`${i.scopeRefs(UN.default.scope)}return ${t}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const r=new Function(`${UN.default.self}`,`${UN.default.scope}`,u)(this,this.scope.get());if(this.scope.value(l,{ref:r}),r.errors=null,r.schema=e.schema,r.schemaEnv=e,e.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:l,validateCode:t,scopeValues:i._values}),this.opts.unevaluated){const{props:e,items:t}=c;r.evaluated={props:e instanceof VN.Name?void 0:e,items:t instanceof VN.Name?void 0:t,dynamicProps:e instanceof VN.Name,dynamicItems:t instanceof VN.Name},r.source&&(r.source.evaluated=(0,VN.stringify)(r.evaluated))}return e.validate=r,e}catch(t){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),t}finally{this._compilations.delete(e)}}function QN(e){return(0,WN.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:GN.call(this,e)}function YN(e){for(const n of this._compilations)if(r=e,(t=n).schema===r.schema&&t.root===r.root&&t.baseId===r.baseId)return n;var t,r}function JN(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||XN.call(this,e,t)}function XN(e,t){const r=this.opts.uriResolver.parse(t),n=(0,WN._getFullPath)(this.opts.uriResolver,r);let o=(0,WN.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return eR.call(this,r,e);const a=(0,WN.normalizeId)(n),i=this.refs[a]||this.schemas[a];if("string"==typeof i){const t=XN.call(this,e,i);if("object"!=typeof(null==t?void 0:t.schema))return;return eR.call(this,r,t)}if("object"==typeof(null==i?void 0:i.schema)){if(i.validate||GN.call(this,i),a===(0,WN.normalizeId)(t)){const{schema:t}=i,{schemaId:r}=this.opts,n=t[r];return n&&(o=(0,WN.resolveUrl)(this.opts.uriResolver,o,n)),new HN({schema:t,schemaId:r,root:e,baseId:o})}return eR.call(this,r,i)}}LN.SchemaEnv=HN,LN.compileSchema=GN,LN.resolveRef=function(e,t,r){var n;r=(0,WN.resolveUrl)(this.opts.uriResolver,t,r);const o=e.refs[r];if(o)return o;let a=JN.call(this,e,r);if(void 0===a){const o=null===(n=e.localRefs)||void 0===n?void 0:n[r],{schemaId:i}=this.opts;o&&(a=new HN({schema:o,schemaId:i,root:e,baseId:t}))}return void 0!==a?e.refs[r]=QN.call(this,a):void 0},LN.getCompilingSchema=YN,LN.resolveSchema=XN;const ZN=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function eR(e,{baseId:t,schema:r,root:n}){var o;if("/"!==(null===(o=e.fragment)||void 0===o?void 0:o[0]))return;for(const n of e.fragment.slice(1).split("/")){if("boolean"==typeof r)return;const e=r[(0,qN.unescapeFragment)(n)];if(void 0===e)return;const o="object"==typeof(r=e)&&r[this.opts.schemaId];!ZN.has(n)&&o&&(t=(0,WN.resolveUrl)(this.opts.uriResolver,t,o))}let a;if("boolean"!=typeof r&&r.$ref&&!(0,qN.schemaHasRulesButRef)(r,this.RULES)){const e=(0,WN.resolveUrl)(this.opts.uriResolver,t,r.$ref);a=XN.call(this,n,e)}const{schemaId:i}=this.opts;return a=a||new HN({schema:r,schemaId:i,root:n,baseId:t}),a.schema!==a.root.schema?a:void 0}var tR={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},rR={},nR={exports:{}};(function(e){function t(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length>1){t[0]=t[0].slice(0,-1);for(var n=t.length-1,o=1;o<n;++o)t[o]=t[o].slice(1,-1);return t[n]=t[n].slice(1),t.join("")}return t[0]}function r(e){return"(?:"+e+")"}function n(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function o(e){return e.toUpperCase()}function a(e){return null!=e?e instanceof Array?e:"number"!=typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function i(e,t){var r=e;if(t)for(var n in t)r[n]=t[n];return r}function s(e){var n="[A-Za-z]",o="[0-9]",a=t(o,"[A-Fa-f]"),i=r(r("%[EFef]"+a+"%"+a+a+"%"+a+a)+"|"+r("%[89A-Fa-f]"+a+"%"+a+a)+"|"+r("%"+a+a)),s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",l=t("[\\:\\/\\?\\#\\[\\]\\@]",s),c=e?"[\\uE000-\\uF8FF]":"[]",u=t(n,o,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]");r(n+t(n,o,"[\\+\\-\\.]")+"*"),r(r(i+"|"+t(u,s,"[\\:]"))+"*");var d=r(r("25[0-5]")+"|"+r("2[0-4]"+o)+"|"+r("1"+o+o)+"|"+r("0?[1-9]"+o)+"|0?0?"+o),f=r(d+"\\."+d+"\\."+d+"\\."+d),p=r(a+"{1,4}"),m=r(r(p+"\\:"+p)+"|"+f),h=r(r(p+"\\:")+"{6}"+m),v=r("\\:\\:"+r(p+"\\:")+"{5}"+m),y=r(r(p)+"?\\:\\:"+r(p+"\\:")+"{4}"+m),g=r(r(r(p+"\\:")+"{0,1}"+p)+"?\\:\\:"+r(p+"\\:")+"{3}"+m),b=r(r(r(p+"\\:")+"{0,2}"+p)+"?\\:\\:"+r(p+"\\:")+"{2}"+m),w=r(r(r(p+"\\:")+"{0,3}"+p)+"?\\:\\:"+p+"\\:"+m),S=r(r(r(p+"\\:")+"{0,4}"+p)+"?\\:\\:"+m),x=r(r(r(p+"\\:")+"{0,5}"+p)+"?\\:\\:"+p),$=r(r(r(p+"\\:")+"{0,6}"+p)+"?\\:\\:"),k=r([h,v,y,g,b,w,S,x,$].join("|")),_=r(r(u+"|"+i)+"+");r("[vV]"+a+"+\\."+t(u,s,"[\\:]")+"+"),r(r(i+"|"+t(u,s))+"*");var E=r(i+"|"+t(u,s,"[\\:\\@]"));return r(r(i+"|"+t(u,s,"[\\@]"))+"+"),r(r(E+"|"+t("[\\/\\?]",c))+"*"),{NOT_SCHEME:new RegExp(t("[^]",n,o,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",u,s),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",u,s),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",u,s),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",u,s),"g"),NOT_QUERY:new RegExp(t("[^\\%]",u,s,"[\\:\\@\\/\\?]",c),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",u,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",u,s),"g"),UNRESERVED:new RegExp(u,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",u,l),"g"),PCT_ENCODED:new RegExp(i,"g"),IPV4ADDRESS:new RegExp("^("+f+")$"),IPV6ADDRESS:new RegExp("^\\[?("+k+")"+r(r("\\%25|\\%(?!"+a+"{2})")+"("+_+")")+"?\\]?$")}}var l=s(!1),c=s(!0),u=function(){function e(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)},f=2147483647,p=36,m=1,h=26,v=38,y=700,g=72,b=128,w="-",S=/^xn--/,x=/[^\0-\x7E]/,$=/[\x2E\u3002\uFF0E\uFF61]/g,k={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=p-m,E=Math.floor,C=String.fromCharCode;function P(e){throw new RangeError(k[e])}function j(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}function O(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+j((e=e.replace($,".")).split("."),t).join(".")}function N(e){for(var t=[],r=0,n=e.length;r<n;){var o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var a=e.charCodeAt(r++);56320==(64512&a)?t.push(((1023&o)<<10)+(1023&a)+65536):(t.push(o),r--)}else t.push(o)}return t}var R=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:p},A=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},T=function(e,t,r){var n=0;for(e=r?E(e/y):e>>1,e+=E(e/t);e>_*h>>1;n+=p)e=E(e/_);return E(n+(_+1)*e/(e+v))},I=function(e){var t=[],r=e.length,n=0,o=b,a=g,i=e.lastIndexOf(w);i<0&&(i=0);for(var s=0;s<i;++s)e.charCodeAt(s)>=128&&P("not-basic"),t.push(e.charCodeAt(s));for(var l=i>0?i+1:0;l<r;){for(var c=n,u=1,d=p;;d+=p){l>=r&&P("invalid-input");var v=R(e.charCodeAt(l++));(v>=p||v>E((f-n)/u))&&P("overflow"),n+=v*u;var y=d<=a?m:d>=a+h?h:d-a;if(v<y)break;var S=p-y;u>E(f/S)&&P("overflow"),u*=S}var x=t.length+1;a=T(n-c,x,0==c),E(n/x)>f-o&&P("overflow"),o+=E(n/x),n%=x,t.splice(n++,0,o)}return String.fromCodePoint.apply(String,t)},M=function(e){var t=[],r=(e=N(e)).length,n=b,o=0,a=g,i=!0,s=!1,l=void 0;try{for(var c,u=e[Symbol.iterator]();!(i=(c=u.next()).done);i=!0){var d=c.value;d<128&&t.push(C(d))}}catch(e){s=!0,l=e}finally{try{!i&&u.return&&u.return()}finally{if(s)throw l}}var v=t.length,y=v;for(v&&t.push(w);y<r;){var S=f,x=!0,$=!1,k=void 0;try{for(var _,j=e[Symbol.iterator]();!(x=(_=j.next()).done);x=!0){var O=_.value;O>=n&&O<S&&(S=O)}}catch(e){$=!0,k=e}finally{try{!x&&j.return&&j.return()}finally{if($)throw k}}var R=y+1;S-n>E((f-o)/R)&&P("overflow"),o+=(S-n)*R,n=S;var I=!0,M=!1,F=void 0;try{for(var D,z=e[Symbol.iterator]();!(I=(D=z.next()).done);I=!0){var L=D.value;if(L<n&&++o>f&&P("overflow"),L==n){for(var V=o,B=p;;B+=p){var U=B<=a?m:B>=a+h?h:B-a;if(V<U)break;var W=V-U,q=p-U;t.push(C(A(U+W%q,0))),V=E(W/q)}t.push(C(A(V,0))),a=T(o,R,y==v),o=0,++y}}}catch(e){M=!0,F=e}finally{try{!I&&z.return&&z.return()}finally{if(M)throw F}}++o,++n}return t.join("")},F=function(e){return O(e,(function(e){return S.test(e)?I(e.slice(4).toLowerCase()):e}))},D=function(e){return O(e,(function(e){return x.test(e)?"xn--"+M(e):e}))},z={version:"2.1.0",ucs2:{decode:N,encode:function(e){return String.fromCodePoint.apply(String,d(e))}},decode:I,encode:M,toASCII:D,toUnicode:F},L={};function V(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function B(e){for(var t="",r=0,n=e.length;r<n;){var o=parseInt(e.substr(r+1,2),16);if(o<128)t+=String.fromCharCode(o),r+=3;else if(o>=194&&o<224){if(n-r>=6){var a=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&o)<<6|63&a)}else t+=e.substr(r,6);r+=6}else if(o>=224){if(n-r>=9){var i=parseInt(e.substr(r+4,2),16),s=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&o)<<12|(63&i)<<6|63&s)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function U(e,t){function r(e){var r=B(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,V).replace(t.PCT_ENCODED,o)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,V).replace(t.PCT_ENCODED,o)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,V).replace(t.PCT_ENCODED,o)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,V).replace(t.PCT_ENCODED,o)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,V).replace(t.PCT_ENCODED,o)),e}function W(e){return e.replace(/^0*(.*)/,"$1")||"0"}function q(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=u(r,2)[1];return n?n.split(".").map(W).join("."):e}function K(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=u(r,3),o=n[1],a=n[2];if(o){for(var i=o.toLowerCase().split("::").reverse(),s=u(i,2),l=s[0],c=s[1],d=c?c.split(":").map(W):[],f=l.split(":").map(W),p=t.IPV4ADDRESS.test(f[f.length-1]),m=p?7:8,h=f.length-m,v=Array(m),y=0;y<m;++y)v[y]=d[y]||f[h+y]||"";p&&(v[m-1]=q(v[m-1],t));var g=v.reduce((function(e,t,r){if(!t||"0"===t){var n=e[e.length-1];n&&n.index+n.length===r?n.length++:e.push({index:r,length:1})}return e}),[]),b=g.sort((function(e,t){return t.length-e.length}))[0],w=void 0;if(b&&b.length>1){var S=v.slice(0,b.index),x=v.slice(b.index+b.length);w=S.join(":")+"::"+x.join(":")}else w=v.join(":");return a&&(w+="%"+a),w}return e}var H=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,G=void 0==="".match(/(){0}/)[1];function Q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?c:l;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var o=e.match(H);if(o){G?(r.scheme=o[1],r.userinfo=o[3],r.host=o[4],r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=o[7],r.fragment=o[8],isNaN(r.port)&&(r.port=o[5])):(r.scheme=o[1]||void 0,r.userinfo=-1!==e.indexOf("@")?o[3]:void 0,r.host=-1!==e.indexOf("//")?o[4]:void 0,r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=-1!==e.indexOf("?")?o[7]:void 0,r.fragment=-1!==e.indexOf("#")?o[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:void 0)),r.host&&(r.host=K(q(r.host,n),n)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var a=L[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||a&&a.unicodeSupport)U(r,n);else{if(r.host&&(t.domainHost||a&&a.domainHost))try{r.host=z.toASCII(r.host.replace(n.PCT_ENCODED,B).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}U(r,l)}a&&a.parse&&a.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}function Y(e,t){var r=!1!==t.iri?c:l,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push(K(q(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0}var J=/^\.\.?\//,X=/^\/\.(\/|$)/,Z=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(J))e=e.replace(J,"");else if(e.match(X))e=e.replace(X,"/");else if(e.match(Z))e=e.replace(Z,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(ee);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];e=e.slice(n.length),t.push(n)}return t.join("")}function re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?c:l,n=[],o=L[(t.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize&&o.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||o&&o.domainHost)try{e.host=t.iri?z.toUnicode(e.host):z.toASCII(e.host.replace(r.PCT_ENCODED,B).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}U(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var a=Y(e,t);if(void 0!==a&&("suffix"!==t.reference&&n.push("//"),n.push(a),e.path&&"/"!==e.path.charAt(0)&&n.push("/")),void 0!==e.path){var i=e.path;t.absolutePath||o&&o.absolutePath||(i=te(i)),void 0===a&&(i=i.replace(/^\/\//,"/%2F")),n.push(i)}return void 0!==e.query&&(n.push("?"),n.push(e.query)),void 0!==e.fragment&&(n.push("#"),n.push(e.fragment)),n.join("")}function ne(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(e=Q(re(e,r),r),t=Q(re(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=te(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path:n.path="/"+t.path,n.path=te(n.path)),n.query=t.query):(n.path=e.path,void 0!==t.query?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function oe(e,t,r){var n=i({scheme:"null"},r);return re(ne(Q(e,n),Q(t,n),n,!0),n)}function ae(e,t){return"string"==typeof e?e=re(Q(e,t),t):"object"===n(e)&&(e=Q(re(e,t),t)),e}function ie(e,t,r){return"string"==typeof e?e=re(Q(e,r),r):"object"===n(e)&&(e=re(e,r)),"string"==typeof t?t=re(Q(t,r),r):"object"===n(t)&&(t=re(t,r)),e===t}function se(e,t){return e&&e.toString().replace(t&&t.iri?c.ESCAPE:l.ESCAPE,V)}function le(e,t){return e&&e.toString().replace(t&&t.iri?c.PCT_ENCODED:l.PCT_ENCODED,B)}var ce={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},ue={scheme:"https",domainHost:ce.domainHost,parse:ce.parse,serialize:ce.serialize};function de(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var fe={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=de(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r},serialize:function(e,t){if(e.port!==(de(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var r=e.resourceName.split("?"),n=u(r,2),o=n[0],a=n[1];e.path=o&&"/"!==o?o:void 0,e.query=a,e.resourceName=void 0}return e.fragment=void 0,e}},pe={scheme:"wss",domainHost:fe.domainHost,parse:fe.parse,serialize:fe.serialize},me={},he="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ve="[0-9A-Fa-f]",ye=r(r("%[EFef]"+ve+"%"+ve+ve+"%"+ve+ve)+"|"+r("%[89A-Fa-f]"+ve+"%"+ve+ve)+"|"+r("%"+ve+ve)),ge="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",be=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),we="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Se=new RegExp(he,"g"),xe=new RegExp(ye,"g"),$e=new RegExp(t("[^]",ge,"[\\.]",'[\\"]',be),"g"),ke=new RegExp(t("[^]",he,we),"g"),_e=ke;function Ee(e){var t=B(e);return t.match(Se)?t:e}var Ce={scheme:"mailto",parse:function(e,t){var r=e,n=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var o=!1,a={},i=r.query.split("&"),s=0,l=i.length;s<l;++s){var c=i[s].split("=");switch(c[0]){case"to":for(var u=c[1].split(","),d=0,f=u.length;d<f;++d)n.push(u[d]);break;case"subject":r.subject=le(c[1],t);break;case"body":r.body=le(c[1],t);break;default:o=!0,a[le(c[0],t)]=le(c[1],t)}}o&&(r.headers=a)}r.query=void 0;for(var p=0,m=n.length;p<m;++p){var h=n[p].split("@");if(h[0]=le(h[0]),t.unicodeSupport)h[1]=le(h[1],t).toLowerCase();else try{h[1]=z.toASCII(le(h[1],t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}n[p]=h.join("@")}return r},serialize:function(e,t){var r=e,n=a(e.to);if(n){for(var i=0,s=n.length;i<s;++i){var l=String(n[i]),c=l.lastIndexOf("@"),u=l.slice(0,c).replace(xe,Ee).replace(xe,o).replace($e,V),d=l.slice(c+1);try{d=t.iri?z.toUnicode(d):z.toASCII(le(d,t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}n[i]=u+"@"+d}r.path=n.join(",")}var f=e.headers=e.headers||{};e.subject&&(f.subject=e.subject),e.body&&(f.body=e.body);var p=[];for(var m in f)f[m]!==me[m]&&p.push(m.replace(xe,Ee).replace(xe,o).replace(ke,V)+"="+f[m].replace(xe,Ee).replace(xe,o).replace(_e,V));return p.length&&(r.query=p.join("&")),r}},Pe=/^([^\:]+)\:(.*)/,je={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(Pe),n=e;if(r){var o=t.scheme||n.scheme||"urn",a=r[1].toLowerCase(),i=r[2],s=o+":"+(t.nid||a),l=L[s];n.nid=a,n.nss=i,n.path=void 0,l&&(n=l.parse(n,t))}else n.error=n.error||"URN can not be parsed.";return n},serialize:function(e,t){var r=t.scheme||e.scheme||"urn",n=e.nid,o=r+":"+(t.nid||n),a=L[o];a&&(e=a.serialize(e,t));var i=e,s=e.nss;return i.path=(n||t.nid)+":"+s,i}},Oe=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Ne={scheme:"urn:uuid",parse:function(e,t){var r=e;return r.uuid=r.nss,r.nss=void 0,t.tolerant||r.uuid&&r.uuid.match(Oe)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};L[ce.scheme]=ce,L[ue.scheme]=ue,L[fe.scheme]=fe,L[pe.scheme]=pe,L[Ce.scheme]=Ce,L[je.scheme]=je,L[Ne.scheme]=Ne,e.SCHEMES=L,e.pctEncChar=V,e.pctDecChars=B,e.parse=Q,e.removeDotSegments=te,e.serialize=re,e.resolveComponents=ne,e.resolve=oe,e.normalize=ae,e.equal=ie,e.escapeComponent=se,e.unescapeComponent=le,Object.defineProperty(e,"__esModule",{value:!0})})(nR.exports);var oR=nR.exports;Object.defineProperty(rR,"__esModule",{value:!0});const aR=oR;aR.code='require("ajv/dist/runtime/uri").default',rR.default=aR,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=AN();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=WO();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=MN(),o=zN(),a=ZO,i=LN,s=WO(),l=mN,c=XO,u=qO,d=tR,f=rR,p=(e,t)=>new RegExp(e,t);p.code="new RegExp";const m=["removeAdditional","useDefaults","coerceTypes"],h=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},y={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function g(e){var t,r,n,o,a,i,s,l,c,u,d,m,h,v,y,g,b,w,S,x,$,k,_,E,C;const P=e.strict,j=null===(t=e.code)||void 0===t?void 0:t.optimize,O=!0===j||void 0===j?1:j||0,N=null!==(n=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==n?n:p,R=null!==(o=e.uriResolver)&&void 0!==o?o:f.default;return{strictSchema:null===(i=null!==(a=e.strictSchema)&&void 0!==a?a:P)||void 0===i||i,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:P)||void 0===l||l,strictTypes:null!==(u=null!==(c=e.strictTypes)&&void 0!==c?c:P)&&void 0!==u?u:"log",strictTuples:null!==(m=null!==(d=e.strictTuples)&&void 0!==d?d:P)&&void 0!==m?m:"log",strictRequired:null!==(v=null!==(h=e.strictRequired)&&void 0!==h?h:P)&&void 0!==v&&v,code:e.code?{...e.code,optimize:O,regExp:N}:{optimize:O,regExp:N},loopRequired:null!==(y=e.loopRequired)&&void 0!==y?y:200,loopEnum:null!==(g=e.loopEnum)&&void 0!==g?g:200,meta:null===(b=e.meta)||void 0===b||b,messages:null===(w=e.messages)||void 0===w||w,inlineRefs:null===(S=e.inlineRefs)||void 0===S||S,schemaId:null!==(x=e.schemaId)&&void 0!==x?x:"$id",addUsedSchema:null===($=e.addUsedSchema)||void 0===$||$,validateSchema:null===(k=e.validateSchema)||void 0===k||k,validateFormats:null===(_=e.validateFormats)||void 0===_||_,unicodeRegExp:null===(E=e.unicodeRegExp)||void 0===E||E,int32range:null===(C=e.int32range)||void 0===C||C,uriResolver:R}}class b{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...g(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:h,es5:t,lines:r}),this.logger=function(e){if(!1===e)return E;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const n=e.validateFormats;e.validateFormats=!1,this.RULES=(0,a.getRules)(),w.call(this,v,e,"NOT SUPPORTED"),w.call(this,y,e,"DEPRECATED","warn"),this._metaOpts=_.call(this),e.formats&&$.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&k.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),x.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let n=d;"id"===r&&(n={...d},n.id=n.$id,delete n.$id),t&&e&&this.addMetaSchema(n,n[r],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);const n=r(t);return"$async"in r||(this.errors=r.errors),n}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return n.call(this,e,t);async function n(e,t){await a.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||i.call(this,r)}async function a(e){e&&!this.getSchema(e)&&await n.call(this,{$ref:e},!0)}async function i(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof o.default))throw t;return s.call(this,t),await l.call(this,t.missingSchema),i.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function l(e){const r=await c.call(this,e);this.refs[e]||await a.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function c(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,n=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,n);return this}let o;if("object"==typeof e){const{schemaId:t}=this.opts;if(o=e[t],void 0!==o&&"string"!=typeof o)throw new Error(`schema ${t} must be string`)}return t=(0,l.normalizeId)(t||o),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,n,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let r;if(r=e.$schema,void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const n=this.validate(r,e);if(!n&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return n}getSchema(e){let t;for(;"string"==typeof(t=S.call(this,e));)e=t;if(void 0===t){const{schemaId:r}=this.opts,n=new i.SchemaEnv({schema:{},schemaId:r});if(t=i.resolveSchema.call(this,n,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=S.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];return r&&(r=(0,l.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(P.call(this,r,t),!t)return(0,u.eachItem)(r,(e=>j.call(this,e))),this;N.call(this,t);const n={...t,type:(0,c.getJSONTypes)(t.type),schemaType:(0,c.getJSONTypes)(t.schemaType)};return(0,u.eachItem)(r,0===n.type.length?e=>j.call(this,e,n):e=>n.type.forEach((t=>j.call(this,e,n,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map((e=>`${r}${e.instancePath} ${e.message}`)).reduce(((e,r)=>e+t+r)):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const n of t){const t=n.split("/").slice(1);let o=e;for(const e of t)o=o[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:n}=t.definition,a=o[e];n&&a&&(o[e]=A(a))}}return e}_removeAllSchemas(e,t){for(const r in e){const n=e[r];t&&!t.test(r)||("string"==typeof n?delete e[r]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[r]))}}_addSchema(e,t,r,n=this.opts.validateSchema,o=this.opts.addUsedSchema){let a;const{schemaId:s}=this.opts;if("object"==typeof e)a=e[s];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let c=this._cache.get(e);if(void 0!==c)return c;r=(0,l.normalizeId)(a||r);const u=l.getSchemaRefs.call(this,e,r);return c=new i.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:r,localRefs:u}),this._cache.set(c.schema,c),o&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=c),n&&this.validateSchema(e,!0),c}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):i.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,e)}finally{this.opts=t}}}function w(e,t,r,n="error"){for(const o in e){const a=o;a in t&&this.logger[n](`${r}: option ${o}. ${e[a]}`)}}function S(e){return e=(0,l.normalizeId)(e),this.schemas[e]||this.refs[e]}function x(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function $(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function k(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function _(){const e={...this.opts};for(const t of m)delete e[t];return e}e.default=b,b.ValidationError=n.default,b.MissingRefError=o.default;const E={log(){},warn(){},error(){}};const C=/^[a-z_$][a-z0-9_$:-]*$/i;function P(e,t){const{RULES:r}=this;if((0,u.eachItem)(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!C.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function j(e,t,r){var n;const o=null==t?void 0:t.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:a}=this;let i=o?a.post:a.rules.find((({type:e})=>e===r));if(i||(i={type:r,rules:[]},a.rules.push(i)),a.keywords[e]=!0,!t)return;const s={keyword:e,definition:{...t,type:(0,c.getJSONTypes)(t.type),schemaType:(0,c.getJSONTypes)(t.schemaType)}};t.before?O.call(this,i,s,t.before):i.rules.push(s),a.all[e]=s,null===(n=t.implements)||void 0===n||n.forEach((e=>this.addKeyword(e)))}function O(e,t,r){const n=e.rules.findIndex((e=>e.keyword===r));n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function N(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=A(t)),e.validateSchema=this.compile(t,!0))}const R={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function A(e){return{anyOf:[e,R]}}}(AO);var iR={},sR={},lR={};Object.defineProperty(lR,"__esModule",{value:!0});const cR={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};lR.default=cR;var uR={};Object.defineProperty(uR,"__esModule",{value:!0}),uR.callRef=uR.getValidate=void 0;const dR=zN(),fR=uN(),pR=WO(),mR=YO(),hR=LN,vR=qO,yR={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:o,schemaEnv:a,validateName:i,opts:s,self:l}=n,{root:c}=a;if(("#"===r||"#/"===r)&&o===c.baseId)return function(){if(a===c)return bR(e,i,a,a.$async);const r=t.scopeValue("root",{ref:c});return bR(e,pR._`${r}.validate`,c,c.$async)}();const u=hR.resolveRef.call(l,c,o,r);if(void 0===u)throw new dR.default(n.opts.uriResolver,o,r);return u instanceof hR.SchemaEnv?function(t){const r=gR(e,t);bR(e,r,t,t.$async)}(u):function(n){const o=t.scopeValue("schema",!0===s.code.source?{ref:n,code:(0,pR.stringify)(n)}:{ref:n}),a=t.name("valid"),i=e.subschema({schema:n,dataTypes:[],schemaPath:pR.nil,topSchemaRef:o,errSchemaPath:r},a);e.mergeEvaluated(i),e.ok(a)}(u)}};function gR(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):pR._`${r.scopeValue("wrapper",{ref:t})}.validate`}function bR(e,t,r,n){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,c=l.passContext?mR.default.this:pR.nil;function u(e){const t=pR._`${e}.errors`;o.assign(mR.default.vErrors,pR._`${mR.default.vErrors} === null ? ${t} : ${mR.default.vErrors}.concat(${t})`),o.assign(mR.default.errors,pR._`${mR.default.vErrors}.length`)}function d(e){var t;if(!a.opts.unevaluated)return;const n=null===(t=null==r?void 0:r.validate)||void 0===t?void 0:t.evaluated;if(!0!==a.props)if(n&&!n.dynamicProps)void 0!==n.props&&(a.props=vR.mergeEvaluated.props(o,n.props,a.props));else{const t=o.var("props",pR._`${e}.evaluated.props`);a.props=vR.mergeEvaluated.props(o,t,a.props,pR.Name)}if(!0!==a.items)if(n&&!n.dynamicItems)void 0!==n.items&&(a.items=vR.mergeEvaluated.items(o,n.items,a.items));else{const t=o.var("items",pR._`${e}.evaluated.items`);a.items=vR.mergeEvaluated.items(o,t,a.items,pR.Name)}}n?function(){if(!s.$async)throw new Error("async schema referenced by sync schema");const r=o.let("valid");o.try((()=>{o.code(pR._`await ${(0,fR.callValidateCode)(e,t,c)}`),d(t),i||o.assign(r,!0)}),(e=>{o.if(pR._`!(${e} instanceof ${a.ValidationError})`,(()=>o.throw(e))),u(e),i||o.assign(r,!1)})),e.ok(r)}():e.result((0,fR.callValidateCode)(e,t,c),(()=>d(t)),(()=>u(t)))}uR.getValidate=gR,uR.callRef=bR,uR.default=yR,Object.defineProperty(sR,"__esModule",{value:!0});const wR=uR,SR=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",lR.default,wR.default];sR.default=SR;var xR={},$R={};Object.defineProperty($R,"__esModule",{value:!0});const kR=WO(),_R=kR.operators,ER={maximum:{okStr:"<=",ok:_R.LTE,fail:_R.GT},minimum:{okStr:">=",ok:_R.GTE,fail:_R.LT},exclusiveMaximum:{okStr:"<",ok:_R.LT,fail:_R.GTE},exclusiveMinimum:{okStr:">",ok:_R.GT,fail:_R.LTE}},CR={message:({keyword:e,schemaCode:t})=>kR.str`must be ${ER[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>kR._`{comparison: ${ER[e].okStr}, limit: ${t}}`},PR={keyword:Object.keys(ER),type:"number",schemaType:"number",$data:!0,error:CR,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data(kR._`${r} ${ER[t].fail} ${n} || isNaN(${r})`)}};$R.default=PR;var jR={};Object.defineProperty(jR,"__esModule",{value:!0});const OR=WO(),NR={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>OR.str`must be multiple of ${e}`,params:({schemaCode:e})=>OR._`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:n,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?OR._`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:OR._`${i} !== parseInt(${i})`;e.fail$data(OR._`(${n} === 0 || (${i} = ${r}/${n}, ${s}))`)}};jR.default=NR;var RR={},AR={};function TR(e){const t=e.length;let r,n=0,o=0;for(;o<t;)n++,r=e.charCodeAt(o++),r>=55296&&r<=56319&&o<t&&(r=e.charCodeAt(o),56320==(64512&r)&&o++);return n}Object.defineProperty(AR,"__esModule",{value:!0}),AR.default=TR,TR.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty(RR,"__esModule",{value:!0});const IR=WO(),MR=qO,FR=AR,DR={message({keyword:e,schemaCode:t}){const r="maxLength"===e?"more":"fewer";return IR.str`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>IR._`{limit: ${e}}`},zR={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:DR,code(e){const{keyword:t,data:r,schemaCode:n,it:o}=e,a="maxLength"===t?IR.operators.GT:IR.operators.LT,i=!1===o.opts.unicode?IR._`${r}.length`:IR._`${(0,MR.useFunc)(e.gen,FR.default)}(${r})`;e.fail$data(IR._`${i} ${a} ${n}`)}};RR.default=zR;var LR={};Object.defineProperty(LR,"__esModule",{value:!0});const VR=uN(),BR=WO(),UR={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>BR.str`must match pattern "${e}"`,params:({schemaCode:e})=>BR._`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:n,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=r?BR._`(new RegExp(${o}, ${i}))`:(0,VR.usePattern)(e,n);e.fail$data(BR._`!${s}.test(${t})`)}};LR.default=UR;var WR={};Object.defineProperty(WR,"__esModule",{value:!0});const qR=WO(),KR={message({keyword:e,schemaCode:t}){const r="maxProperties"===e?"more":"fewer";return qR.str`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>qR._`{limit: ${e}}`},HR={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:KR,code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxProperties"===t?qR.operators.GT:qR.operators.LT;e.fail$data(qR._`Object.keys(${r}).length ${o} ${n}`)}};WR.default=HR;var GR={};Object.defineProperty(GR,"__esModule",{value:!0});const QR=uN(),YR=WO(),JR=qO,XR={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>YR.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>YR._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:r,schemaCode:n,data:o,$data:a,it:i}=e,{opts:s}=i;if(!a&&0===r.length)return;const l=r.length>=s.loopRequired;if(i.allErrors?function(){if(l||a)e.block$data(YR.nil,c);else for(const t of r)(0,QR.checkReportMissingProp)(e,t)}():function(){const i=t.let("missing");if(l||a){const r=t.let("valid",!0);e.block$data(r,(()=>function(r,a){e.setParams({missingProperty:r}),t.forOf(r,n,(()=>{t.assign(a,(0,QR.propertyInData)(t,o,r,s.ownProperties)),t.if((0,YR.not)(a),(()=>{e.error(),t.break()}))}),YR.nil)}(i,r))),e.ok(r)}else t.if((0,QR.checkMissingProp)(e,r,i)),(0,QR.reportMissingProp)(e,i),t.else()}(),s.strictRequired){const t=e.parentSchema.properties,{definedProperties:n}=e.it;for(const e of r)if(void 0===(null==t?void 0:t[e])&&!n.has(e)){const t=`required property "${e}" is not defined at "${i.schemaEnv.baseId+i.errSchemaPath}" (strictRequired)`;(0,JR.checkStrictMode)(i,t,i.opts.strictRequired)}}function c(){t.forOf("prop",n,(r=>{e.setParams({missingProperty:r}),t.if((0,QR.noPropertyInData)(t,o,r,s.ownProperties),(()=>e.error()))}))}}};GR.default=XR;var ZR={};Object.defineProperty(ZR,"__esModule",{value:!0});const eA=WO(),tA={message({keyword:e,schemaCode:t}){const r="maxItems"===e?"more":"fewer";return eA.str`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>eA._`{limit: ${e}}`},rA={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:tA,code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxItems"===t?eA.operators.GT:eA.operators.LT;e.fail$data(eA._`${r}.length ${o} ${n}`)}};ZR.default=rA;var nA={},oA={};Object.defineProperty(oA,"__esModule",{value:!0});const aA=hN;aA.code='require("ajv/dist/runtime/equal").default',oA.default=aA,Object.defineProperty(nA,"__esModule",{value:!0});const iA=XO,sA=WO(),lA=qO,cA=oA,uA={message:({params:{i:e,j:t}})=>sA.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>sA._`{i: ${e}, j: ${t}}`},dA={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:uA,code(e){const{gen:t,data:r,$data:n,schema:o,parentSchema:a,schemaCode:i,it:s}=e;if(!n&&!o)return;const l=t.let("valid"),c=a.items?(0,iA.getSchemaTypes)(a.items):[];function u(n,o){const a=t.name("item"),i=(0,iA.checkDataTypes)(c,a,s.opts.strictNumbers,iA.DataType.Wrong),u=t.const("indices",sA._`{}`);t.for(sA._`;${n}--;`,(()=>{t.let(a,sA._`${r}[${n}]`),t.if(i,sA._`continue`),c.length>1&&t.if(sA._`typeof ${a} == "string"`,sA._`${a} += "_"`),t.if(sA._`typeof ${u}[${a}] == "number"`,(()=>{t.assign(o,sA._`${u}[${a}]`),e.error(),t.assign(l,!1).break()})).code(sA._`${u}[${a}] = ${n}`)}))}function d(n,o){const a=(0,lA.useFunc)(t,cA.default),i=t.name("outer");t.label(i).for(sA._`;${n}--;`,(()=>t.for(sA._`${o} = ${n}; ${o}--;`,(()=>t.if(sA._`${a}(${r}[${n}], ${r}[${o}])`,(()=>{e.error(),t.assign(l,!1).break(i)}))))))}e.block$data(l,(function(){const n=t.let("i",sA._`${r}.length`),o=t.let("j");e.setParams({i:n,j:o}),t.assign(l,!0),t.if(sA._`${n} > 1`,(()=>(c.length>0&&!c.some((e=>"object"===e||"array"===e))?u:d)(n,o)))}),sA._`${i} === false`),e.ok(l)}};nA.default=dA;var fA={};Object.defineProperty(fA,"__esModule",{value:!0});const pA=WO(),mA=qO,hA=oA,vA={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>pA._`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,$data:n,schemaCode:o,schema:a}=e;n||a&&"object"==typeof a?e.fail$data(pA._`!${(0,mA.useFunc)(t,hA.default)}(${r}, ${o})`):e.fail(pA._`${a} !== ${r}`)}};fA.default=vA;var yA={};Object.defineProperty(yA,"__esModule",{value:!0});const gA=WO(),bA=qO,wA=oA,SA={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>gA._`{allowedValues: ${e}}`},code(e){const{gen:t,data:r,$data:n,schema:o,schemaCode:a,it:i}=e;if(!n&&0===o.length)throw new Error("enum must have non-empty array");const s=o.length>=i.opts.loopEnum;let l;const c=()=>null!=l?l:l=(0,bA.useFunc)(t,wA.default);let u;if(s||n)u=t.let("valid"),e.block$data(u,(function(){t.assign(u,!1),t.forOf("v",a,(e=>t.if(gA._`${c()}(${r}, ${e})`,(()=>t.assign(u,!0).break()))))}));else{if(!Array.isArray(o))throw new Error("ajv implementation error");const e=t.const("vSchema",a);u=(0,gA.or)(...o.map(((t,n)=>function(e,t){const n=o[t];return"object"==typeof n&&null!==n?gA._`${c()}(${r}, ${e}[${t}])`:gA._`${r} === ${n}`}(e,n))))}e.pass(u)}};yA.default=SA,Object.defineProperty(xR,"__esModule",{value:!0});const xA=jR,$A=RR,kA=LR,_A=WR,EA=GR,CA=ZR,PA=nA,jA=fA,OA=yA,NA=[$R.default,xA.default,$A.default,kA.default,_A.default,EA.default,CA.default,PA.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},jA.default,OA.default];xR.default=NA;var RA={},AA={};Object.defineProperty(AA,"__esModule",{value:!0}),AA.validateAdditionalItems=void 0;const TA=WO(),IA=qO,MA={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>TA.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>TA._`{limit: ${e}}`},code(e){const{parentSchema:t,it:r}=e,{items:n}=t;Array.isArray(n)?FA(e,n):(0,IA.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function FA(e,t){const{gen:r,schema:n,data:o,keyword:a,it:i}=e;i.items=!0;const s=r.const("len",TA._`${o}.length`);if(!1===n)e.setParams({len:t.length}),e.pass(TA._`${s} <= ${t.length}`);else if("object"==typeof n&&!(0,IA.alwaysValidSchema)(i,n)){const n=r.var("valid",TA._`${s} <= ${t.length}`);r.if((0,TA.not)(n),(()=>function(n){r.forRange("i",t.length,s,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:IA.Type.Num},n),i.allErrors||r.if((0,TA.not)(n),(()=>r.break()))}))}(n))),e.ok(n)}}AA.validateAdditionalItems=FA,AA.default=MA;var DA={},zA={};Object.defineProperty(zA,"__esModule",{value:!0}),zA.validateTuple=void 0;const LA=WO(),VA=qO,BA=uN(),UA={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return WA(e,"additionalItems",t);r.items=!0,(0,VA.alwaysValidSchema)(r,t)||e.ok((0,BA.validateArray)(e))}};function WA(e,t,r=e.schema){const{gen:n,parentSchema:o,data:a,keyword:i,it:s}=e;!function(e){const{opts:n,errSchemaPath:o}=s,a=r.length,l=a===e.minItems&&(a===e.maxItems||!1===e[t]);if(n.strictTuples&&!l){const e=`"${i}" is ${a}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,VA.checkStrictMode)(s,e,n.strictTuples)}}(o),s.opts.unevaluated&&r.length&&!0!==s.items&&(s.items=VA.mergeEvaluated.items(n,r.length,s.items));const l=n.name("valid"),c=n.const("len",LA._`${a}.length`);r.forEach(((t,r)=>{(0,VA.alwaysValidSchema)(s,t)||(n.if(LA._`${c} > ${r}`,(()=>e.subschema({keyword:i,schemaProp:r,dataProp:r},l))),e.ok(l))}))}zA.validateTuple=WA,zA.default=UA,Object.defineProperty(DA,"__esModule",{value:!0});const qA=zA,KA={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,qA.validateTuple)(e,"items")};DA.default=KA;var HA={};Object.defineProperty(HA,"__esModule",{value:!0});const GA=WO(),QA=qO,YA=uN(),JA=AA,XA={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>GA.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>GA._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,(0,QA.alwaysValidSchema)(n,t)||(o?(0,JA.validateAdditionalItems)(e,o):e.ok((0,YA.validateArray)(e)))}};HA.default=XA;var ZA={};Object.defineProperty(ZA,"__esModule",{value:!0});const eT=WO(),tT=qO,rT={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?eT.str`must contain at least ${e} valid item(s)`:eT.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?eT._`{minContains: ${e}}`:eT._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:r,parentSchema:n,data:o,it:a}=e;let i,s;const{minContains:l,maxContains:c}=n;a.opts.next?(i=void 0===l?1:l,s=c):i=1;const u=t.const("len",eT._`${o}.length`);if(e.setParams({min:i,max:s}),void 0===s&&0===i)return void(0,tT.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==s&&i>s)return(0,tT.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,tT.alwaysValidSchema)(a,r)){let t=eT._`${u} >= ${i}`;return void 0!==s&&(t=eT._`${t} && ${u} <= ${s}`),void e.pass(t)}a.items=!0;const d=t.name("valid");function f(){const e=t.name("_valid"),r=t.let("count",0);p(e,(()=>t.if(e,(()=>function(e){t.code(eT._`${e}++`),void 0===s?t.if(eT._`${e} >= ${i}`,(()=>t.assign(d,!0).break())):(t.if(eT._`${e} > ${s}`,(()=>t.assign(d,!1).break())),1===i?t.assign(d,!0):t.if(eT._`${e} >= ${i}`,(()=>t.assign(d,!0))))}(r)))))}function p(r,n){t.forRange("i",0,u,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:tT.Type.Num,compositeRule:!0},r),n()}))}void 0===s&&1===i?p(d,(()=>t.if(d,(()=>t.break())))):0===i?(t.let(d,!0),void 0!==s&&t.if(eT._`${o}.length > 0`,f)):(t.let(d,!1),f()),e.result(d,(()=>e.reset()))}};ZA.default=rT;var nT={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=WO(),r=qO,n=uN();e.error={message:({params:{property:e,depsCount:r,deps:n}})=>{const o=1===r?"property":"properties";return t.str`must have ${o} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:r,deps:n,missingProperty:o}})=>t._`{property: ${e},
23
+ || ${s} === "boolean" || ${a} === null`).assign(c,o._`[${a}]`)}}n.else(),f(e),n.endIf(),n.if(o._`${c} !== undefined`,(()=>{n.assign(a,c),function({gen:e,parentData:t,parentDataProperty:r},n){e.if(o._`${t} !== undefined`,(()=>e.assign(o._`${t}[${r}]`,n)))}(e,c)}))}(e,t,c):f(e)}))}return d};const l=new Set(["string","number","integer","boolean","null"]);function c(e,t,r,n=i.Correct){const a=n===i.Correct?o.operators.EQ:o.operators.NEQ;let s;switch(e){case"null":return o._`${t} ${a} null`;case"array":s=o._`Array.isArray(${t})`;break;case"object":s=o._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=l(o._`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=l();break;default:return o._`typeof ${t} ${a} ${e}`}return n===i.Correct?s:(0,o.not)(s);function l(e=o.nil){return(0,o.and)(o._`typeof ${t} == "number"`,e,r?o._`isFinite(${t})`:o.nil)}}function u(e,t,r,n){if(1===e.length)return c(e[0],t,r,n);let i;const s=(0,a.toHash)(e);if(s.array&&s.object){const e=o._`typeof ${t} != "object"`;i=s.null?e:o._`!${t} || ${e}`,delete s.null,delete s.array,delete s.object}else i=o.nil;s.number&&delete s.integer;for(const e in s)i=(0,o.and)(i,c(e,t,r,n));return i}e.checkDataType=c,e.checkDataTypes=u;const d={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?o._`{type: ${e}}`:o._`{type: ${t}}`};function f(e){const t=function(e){const{gen:t,data:r,schema:n}=e,o=(0,a.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}(e);(0,n.reportError)(t,d)}e.reportTypeError=f}(mO);var wO,SO={};var xO,$O,kO={},_O={};function EO(){if(xO)return _O;xO=1,Object.defineProperty(_O,"__esModule",{value:!0}),_O.validateUnion=_O.validateArray=_O.usePattern=_O.callValidateCode=_O.schemaProperties=_O.allSchemaProperties=_O.noPropertyInData=_O.propertyInData=_O.isOwnProperty=_O.hasPropFunc=_O.reportMissingProp=_O.checkMissingProp=_O.checkReportMissingProp=void 0;const e=iO(),t=sO,r=fO(),n=sO;function o(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:e._`Object.prototype.hasOwnProperty`})}function a(t,r,n){return e._`${o(t)}.call(${r}, ${n})`}function i(t,r,n,o){const i=e._`${r}${(0,e.getProperty)(n)} === undefined`;return o?(0,e.or)(i,(0,e.not)(a(t,r,n))):i}function s(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}_O.checkReportMissingProp=function(t,r){const{gen:n,data:o,it:a}=t;n.if(i(n,o,r,a.opts.ownProperties),(()=>{t.setParams({missingProperty:e._`${r}`},!0),t.error()}))},_O.checkMissingProp=function({gen:t,data:r,it:{opts:n}},o,a){return(0,e.or)(...o.map((o=>(0,e.and)(i(t,r,o,n.ownProperties),e._`${a} = ${o}`))))},_O.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},_O.hasPropFunc=o,_O.isOwnProperty=a,_O.propertyInData=function(t,r,n,o){const i=e._`${r}${(0,e.getProperty)(n)} !== undefined`;return o?e._`${i} && ${a(t,r,n)}`:i},_O.noPropertyInData=i,_O.allSchemaProperties=s,_O.schemaProperties=function(e,r){return s(r).filter((n=>!(0,t.alwaysValidSchema)(e,r[n])))},_O.callValidateCode=function({schemaCode:t,data:n,it:{gen:o,topSchemaRef:a,schemaPath:i,errorPath:s},it:l},c,u,d){const f=d?e._`${t}, ${n}, ${a}${i}`:n,p=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,s)],[r.default.parentData,l.parentData],[r.default.parentDataProperty,l.parentDataProperty],[r.default.rootData,r.default.rootData]];l.opts.dynamicRef&&p.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const m=e._`${f}, ${o.object(...p)}`;return u!==e.nil?e._`${c}.call(${u}, ${m})`:e._`${c}(${m})`};const l=e._`new RegExp`;return _O.usePattern=function({gen:t,it:{opts:r}},o){const a=r.unicodeRegExp?"u":"",{regExp:i}=r.code,s=i(o,a);return t.scopeValue("pattern",{key:s.toString(),ref:s,code:e._`${"new RegExp"===i.code?l:(0,n.useFunc)(t,i)}(${o}, ${a})`})},_O.validateArray=function(r){const{gen:n,data:o,keyword:a,it:i}=r,s=n.name("valid");if(i.allErrors){const e=n.let("valid",!0);return l((()=>n.assign(e,!1))),e}return n.var(s,!0),l((()=>n.break())),s;function l(i){const l=n.const("len",e._`${o}.length`);n.forRange("i",0,l,(o=>{r.subschema({keyword:a,dataProp:o,dataPropType:t.Type.Num},s),n.if((0,e.not)(s),i)}))}},_O.validateUnion=function(r){const{gen:n,schema:o,keyword:a,it:i}=r;if(!Array.isArray(o))throw new Error("ajv implementation error");if(o.some((e=>(0,t.alwaysValidSchema)(i,e)))&&!i.opts.unevaluated)return;const s=n.let("valid",!1),l=n.name("_valid");n.block((()=>o.forEach(((t,o)=>{const i=r.subschema({keyword:a,schemaProp:o,compositeRule:!0},l);n.assign(s,e._`${s} || ${l}`);r.mergeValidEvaluated(i,l)||n.if((0,e.not)(s))})))),r.result(s,(()=>r.reset()),(()=>r.error(!0)))},_O}function CO(){if($O)return kO;$O=1,Object.defineProperty(kO,"__esModule",{value:!0}),kO.validateKeywordUsage=kO.validSchemaType=kO.funcKeywordCode=kO.macroKeywordCode=void 0;const e=iO(),t=fO(),r=EO(),n=pO();function o(t){const{gen:r,data:n,it:o}=t;r.if(o.parentData,(()=>r.assign(n,e._`${o.parentData}[${o.parentDataProperty}]`)))}function a(t,r,n){if(void 0===n)throw new Error(`keyword "${r}" failed to compile`);return t.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,e.stringify)(n)})}return kO.macroKeywordCode=function(t,r){const{gen:n,keyword:o,schema:i,parentSchema:s,it:l}=t,c=r.macro.call(l.self,i,s,l),u=a(n,o,c);!1!==l.opts.validateSchema&&l.self.validateSchema(c,!0);const d=n.name("valid");t.subschema({schema:c,schemaPath:e.nil,errSchemaPath:`${l.errSchemaPath}/${o}`,topSchemaRef:u,compositeRule:!0},d),t.pass(d,(()=>t.error(!0)))},kO.funcKeywordCode=function(i,s){var l;const{gen:c,keyword:u,schema:d,parentSchema:f,$data:p,it:m}=i;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(m,s);const h=!p&&s.compile?s.compile.call(m.self,d,f,m):s.validate,v=a(c,u,h),y=c.let("valid");function g(n=(s.async?e._`await `:e.nil)){const o=m.opts.passContext?t.default.this:t.default.self,a=!("compile"in s&&!p||!1===s.schema);c.assign(y,e._`${n}${(0,r.callValidateCode)(i,v,o,a)}`,s.modifying)}function b(t){var r;c.if((0,e.not)(null!==(r=s.valid)&&void 0!==r?r:y),t)}i.block$data(y,(function(){if(!1===s.errors)g(),s.modifying&&o(i),b((()=>i.error()));else{const r=s.async?function(){const t=c.let("ruleErrs",null);return c.try((()=>g(e._`await `)),(r=>c.assign(y,!1).if(e._`${r} instanceof ${m.ValidationError}`,(()=>c.assign(t,e._`${r}.errors`)),(()=>c.throw(r))))),t}():function(){const t=e._`${v}.errors`;return c.assign(t,null),g(e.nil),t}();s.modifying&&o(i),b((()=>function(r,o){const{gen:a}=r;a.if(e._`Array.isArray(${o})`,(()=>{a.assign(t.default.vErrors,e._`${t.default.vErrors} === null ? ${o} : ${t.default.vErrors}.concat(${o})`).assign(t.default.errors,e._`${t.default.vErrors}.length`),(0,n.extendErrors)(r)}),(()=>r.error()))}(i,r)))}})),i.ok(null!==(l=s.valid)&&void 0!==l?l:y)},kO.validSchemaType=function(e,t,r=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e))},kO.validateKeywordUsage=function({schema:e,opts:t,self:r,errSchemaPath:n},o,a){if(Array.isArray(o.keyword)?!o.keyword.includes(a):o.keyword!==a)throw new Error("ajv implementation error");const i=o.dependencies;if(null==i?void 0:i.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(o.validateSchema){if(!o.validateSchema(e[a])){const e=`keyword "${a}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);r.logger.error(e)}}},kO}var PO,jO={};var OO={},NO=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,o,a;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(o=n;0!=o--;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(a=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;for(o=n;0!=o--;){var i=a[o];if(!e(t[i],r[i]))return!1}return!0}return t!=t&&r!=r},RO={exports:{}},TO=RO.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),AO(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function AO(e,t,r,n,o,a,i,s,l,c){if(n&&"object"==typeof n&&!Array.isArray(n)){for(var u in t(n,o,a,i,s,l,c),n){var d=n[u];if(Array.isArray(d)){if(u in TO.arrayKeywords)for(var f=0;f<d.length;f++)AO(e,t,r,d[f],o+"/"+u+"/"+f,a,o,u,n,f)}else if(u in TO.propsKeywords){if(d&&"object"==typeof d)for(var p in d)AO(e,t,r,d[p],o+"/"+u+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),a,o,u,n,p)}else(u in TO.keywords||e.allKeys&&!(u in TO.skipKeywords))&&AO(e,t,r,d,o+"/"+u,a,o,u,n)}r(n,o,a,i,s,l,c)}}TO.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},TO.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},TO.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},TO.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};var IO=RO.exports;Object.defineProperty(OO,"__esModule",{value:!0}),OO.getSchemaRefs=OO.resolveUrl=OO.normalizeId=OO._getFullPath=OO.getFullPath=OO.inlineRef=void 0;const MO=sO,FO=NO,DO=IO,zO=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);OO.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!VO(e):!!t&&BO(e)<=t)};const LO=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function VO(e){for(const t in e){if(LO.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(VO))return!0;if("object"==typeof r&&VO(r))return!0}return!1}function BO(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!zO.has(r)&&("object"==typeof e[r]&&(0,MO.eachItem)(e[r],(e=>t+=BO(e))),t===1/0))return 1/0}return t}function UO(e,t="",r){!1!==r&&(t=KO(t));const n=e.parse(t);return WO(e,n)}function WO(e,t){return e.serialize(t).split("#")[0]+"#"}OO.getFullPath=UO,OO._getFullPath=WO;const qO=/#\/?$/;function KO(e){return e?e.replace(qO,""):""}OO.normalizeId=KO,OO.resolveUrl=function(e,t,r){return r=KO(r),e.resolve(t,r)};const HO=/^[a-z_][-a-z0-9._]*$/i;var GO;function QO(){if(GO)return Yj;GO=1,Object.defineProperty(Yj,"__esModule",{value:!0}),Yj.getData=Yj.KeywordCxt=Yj.validateFunctionCode=void 0;const e=function(){if(uO)return Jj;uO=1,Object.defineProperty(Jj,"__esModule",{value:!0}),Jj.boolOrEmptySchema=Jj.topBoolOrEmptySchema=void 0;const e=pO(),t=iO(),r=fO(),n={message:"boolean schema is false"};function o(t,r){const{gen:o,data:a}=t,i={gen:o,keyword:"false schema",data:a,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,e.reportError)(i,n,void 0,r)}return Jj.topBoolOrEmptySchema=function(e){const{gen:n,schema:a,validateName:i}=e;!1===a?o(e,!1):"object"==typeof a&&!0===a.$async?n.return(r.default.data):(n.assign(t._`${i}.errors`,null),n.return(!0))},Jj.boolOrEmptySchema=function(e,t){const{gen:r,schema:n}=e;!1===n?(r.var(t,!1),o(e)):r.var(t,!0)},Jj}(),t=mO,r=bO(),n=mO,o=function(){if(wO)return SO;wO=1,Object.defineProperty(SO,"__esModule",{value:!0}),SO.assignDefaults=void 0;const e=iO(),t=sO;function r(r,n,o){const{gen:a,compositeRule:i,data:s,opts:l}=r;if(void 0===o)return;const c=e._`${s}${(0,e.getProperty)(n)}`;if(i)return void(0,t.checkStrictMode)(r,`default is ignored for: ${c}`);let u=e._`${c} === undefined`;"empty"===l.useDefaults&&(u=e._`${u} || ${c} === null || ${c} === ""`),a.if(u,e._`${c} = ${(0,e.stringify)(o)}`)}return SO.assignDefaults=function(e,t){const{properties:n,items:o}=e.schema;if("object"===t&&n)for(const t in n)r(e,t,n[t].default);else"array"===t&&Array.isArray(o)&&o.forEach(((t,n)=>r(e,n,t.default)))},SO}(),a=CO(),i=function(){if(PO)return jO;PO=1,Object.defineProperty(jO,"__esModule",{value:!0}),jO.extendSubschemaMode=jO.extendSubschemaData=jO.getSubschema=void 0;const e=iO(),t=sO;return jO.getSubschema=function(r,{keyword:n,schemaProp:o,schema:a,schemaPath:i,errSchemaPath:s,topSchemaRef:l}){if(void 0!==n&&void 0!==a)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==n){const a=r.schema[n];return void 0===o?{schema:a,schemaPath:e._`${r.schemaPath}${(0,e.getProperty)(n)}`,errSchemaPath:`${r.errSchemaPath}/${n}`}:{schema:a[o],schemaPath:e._`${r.schemaPath}${(0,e.getProperty)(n)}${(0,e.getProperty)(o)}`,errSchemaPath:`${r.errSchemaPath}/${n}/${(0,t.escapeFragment)(o)}`}}if(void 0!==a){if(void 0===i||void 0===s||void 0===l)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:a,schemaPath:i,topSchemaRef:l,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')},jO.extendSubschemaData=function(r,n,{dataProp:o,dataPropType:a,data:i,dataTypes:s,propertyName:l}){if(void 0!==i&&void 0!==o)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:c}=n;if(void 0!==o){const{errorPath:i,dataPathArr:s,opts:l}=n;u(c.let("data",e._`${n.data}${(0,e.getProperty)(o)}`,!0)),r.errorPath=e.str`${i}${(0,t.getErrorPath)(o,a,l.jsPropertySyntax)}`,r.parentDataProperty=e._`${o}`,r.dataPathArr=[...s,r.parentDataProperty]}function u(e){r.data=e,r.dataLevel=n.dataLevel+1,r.dataTypes=[],n.definedProperties=new Set,r.parentData=n.data,r.dataNames=[...n.dataNames,e]}void 0!==i&&(u(i instanceof e.Name?i:c.let("data",i,!0)),void 0!==l&&(r.propertyName=l)),s&&(r.dataTypes=s)},jO.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:a}){void 0!==n&&(e.compositeRule=n),void 0!==o&&(e.createErrors=o),void 0!==a&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=r},jO}(),s=iO(),l=fO(),c=OO,u=sO,d=pO();function f({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},a){o.code.es5?e.func(t,s._`${l.default.data}, ${l.default.valCxt}`,n.$async,(()=>{e.code(s._`"use strict"; ${p(r,o)}`),function(e,t){e.if(l.default.valCxt,(()=>{e.var(l.default.instancePath,s._`${l.default.valCxt}.${l.default.instancePath}`),e.var(l.default.parentData,s._`${l.default.valCxt}.${l.default.parentData}`),e.var(l.default.parentDataProperty,s._`${l.default.valCxt}.${l.default.parentDataProperty}`),e.var(l.default.rootData,s._`${l.default.valCxt}.${l.default.rootData}`),t.dynamicRef&&e.var(l.default.dynamicAnchors,s._`${l.default.valCxt}.${l.default.dynamicAnchors}`)}),(()=>{e.var(l.default.instancePath,s._`""`),e.var(l.default.parentData,s._`undefined`),e.var(l.default.parentDataProperty,s._`undefined`),e.var(l.default.rootData,l.default.data),t.dynamicRef&&e.var(l.default.dynamicAnchors,s._`{}`)}))}(e,o),e.code(a)})):e.func(t,s._`${l.default.data}, ${function(e){return s._`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${e.dynamicRef?s._`, ${l.default.dynamicAnchors}={}`:s.nil}}={}`}(o)}`,n.$async,(()=>e.code(p(r,o)).code(a)))}function p(e,t){const r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?s._`/*# sourceURL=${r} */`:s.nil}function m(t,r){v(t)&&(y(t),h(t))?function(e,t){const{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&b(e);(function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,c.resolveUrl)(e.opts.uriResolver,e.baseId,t))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const a=n.const("_errs",l.default.errors);g(e,a),n.var(t,s._`${a} === ${l.default.errors}`)}(t,r):(0,e.boolOrEmptySchema)(t,r)}function h({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function y(e){(0,u.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function g(e,r){if(e.opts.jtd)return w(e,[],!1,r);const n=(0,t.getSchemaTypes)(e.schema);w(e,n,!(0,t.coerceAndCheckDataType)(e,n),r)}function b({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){const a=r.$comment;if(!0===o.$comment)e.code(s._`${l.default.self}.logger.log(${a})`);else if("function"==typeof o.$comment){const r=s.str`${n}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code(s._`${l.default.self}.opts.$comment(${a}, ${r}, ${o}.schema)`)}}function w(e,t,o,a){const{gen:i,schema:c,data:d,allErrors:f,opts:p,self:m}=e,{RULES:h}=m;function v(u){(0,r.shouldUseGroup)(c,u)&&(u.type?(i.if((0,n.checkDataType)(u.type,d,p.strictNumbers)),S(e,u),1===t.length&&t[0]===u.type&&o&&(i.else(),(0,n.reportTypeError)(e)),i.endIf()):S(e,u),f||i.if(s._`${l.default.errors} === ${a||0}`))}!c.$ref||!p.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(c,h)?(p.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach((t=>{$(e.dataTypes,t)||k(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const r=[];for(const n of e.dataTypes)$(t,n)?r.push(n):t.includes("integer")&&"number"===n&&r.push("integer");e.dataTypes=r}(e,t)})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&k(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const n=e.self.RULES.all;for(const o in n){const a=n[o];if("object"==typeof a&&(0,r.shouldUseRule)(e.schema,a)){const{type:r}=a.definition;r.length&&!r.some((e=>x(t,e)))&&k(e,`missing type "${r.join(",")}" for keyword "${o}"`)}}}(e,e.dataTypes)}(e,t),i.block((()=>{for(const e of h.rules)v(e);v(h.post)}))):i.block((()=>E(e,"$ref",h.all.$ref.definition)))}function S(e,t){const{gen:n,schema:a,opts:{useDefaults:i}}=e;i&&(0,o.assignDefaults)(e,t.type),n.block((()=>{for(const n of t.rules)(0,r.shouldUseRule)(a,n)&&E(e,n.keyword,n.definition,t.type)}))}function x(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function $(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function k(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,u.checkStrictMode)(e,t,e.opts.strictTypes)}Yj.validateFunctionCode=function(t){v(t)&&(y(t),h(t))?function(e){const{schema:t,opts:r,gen:n}=e;f(e,(()=>{r.$comment&&t.$comment&&b(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,u.checkStrictMode)(e,"default is ignored in the schema root")}(e),n.let(l.default.vErrors,null),n.let(l.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",s._`${r}.evaluated`),t.if(s._`${e.evaluated}.dynamicProps`,(()=>t.assign(s._`${e.evaluated}.props`,s._`undefined`))),t.if(s._`${e.evaluated}.dynamicItems`,(()=>t.assign(s._`${e.evaluated}.items`,s._`undefined`)))}(e),g(e),function(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:a}=e;r.$async?t.if(s._`${l.default.errors} === 0`,(()=>t.return(l.default.data)),(()=>t.throw(s._`new ${o}(${l.default.vErrors})`))):(t.assign(s._`${n}.errors`,l.default.vErrors),a.unevaluated&&function({gen:e,evaluated:t,props:r,items:n}){r instanceof s.Name&&e.assign(s._`${t}.props`,r);n instanceof s.Name&&e.assign(s._`${t}.items`,n)}(e),t.return(s._`${l.default.errors} === 0`))}(e)}))}(t):f(t,(()=>(0,e.topBoolOrEmptySchema)(t)))};class _{constructor(e,t,r){if((0,a.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",j(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,a.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",l.default.errors))}result(e,t,r){this.failResult((0,s.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,s.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(s._`${t} !== undefined && (${(0,s.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t)return this.setParams(t),this._error(e,r),void this.setParams({});this._error(e,r)}_error(e,t){(e?d.reportExtraError:d.reportError)(this,this.def.error,t)}$dataError(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=s.nil){this.gen.block((()=>{this.check$data(e,r),t()}))}check$data(e=s.nil,t=s.nil){if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:o,def:a}=this;r.if((0,s.or)(s._`${n} === undefined`,t)),e!==s.nil&&r.assign(e,!0),(o.length||a.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==s.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:o,it:a}=this;return(0,s.or)(function(){if(r.length){if(!(t instanceof s.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return s._`${(0,n.checkDataTypes)(e,t,a.opts.strictNumbers,n.DataType.Wrong)}`}return s.nil}(),function(){if(o.validateSchema){const r=e.scopeValue("validate$data",{ref:o.validateSchema});return s._`!${r}(${t})`}return s.nil}())}subschema(e,t){const r=(0,i.getSubschema)(this.it,e);(0,i.extendSubschemaData)(r,this.it,e),(0,i.extendSubschemaMode)(r,e);const n={...this.it,...r,items:void 0,props:void 0};return m(n,t),n}mergeEvaluated(e,t){const{it:r,gen:n}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=u.mergeEvaluated.props(n,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=u.mergeEvaluated.items(n,e.items,r.items,t)))}mergeValidEvaluated(e,t){const{it:r,gen:n}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return n.if(t,(()=>this.mergeEvaluated(e,s.Name))),!0}}function E(e,t,r,n){const o=new _(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,a.funcKeywordCode)(o,r):"macro"in r?(0,a.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,a.funcKeywordCode)(o,r)}Yj.KeywordCxt=_;const C=/^\/(?:[^~]|~0|~1)*$/,P=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function j(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,a;if(""===e)return l.default.rootData;if("/"===e[0]){if(!C.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=l.default.rootData}else{const i=P.exec(e);if(!i)throw new Error(`Invalid JSON-pointer: ${e}`);const s=+i[1];if(o=i[2],"#"===o){if(s>=t)throw new Error(d("property/index",s));return n[t-s]}if(s>t)throw new Error(d("data",s));if(a=r[t-s],!o)return a}let i=a;const c=o.split("/");for(const e of c)e&&(a=s._`${a}${(0,s.getProperty)((0,u.unescapeJsonPointer)(e))}`,i=s._`${i} && ${a}`);return i;function d(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}return Yj.getData=j,Yj}OO.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:r,uriResolver:n}=this.opts,o=KO(e[r]||t),a={"":o},i=UO(n,o,!1),s={},l=new Set;return DO(e,{allKeys:!0},((e,t,n,o)=>{if(void 0===o)return;const d=i+t;let f=a[o];function p(t){const r=this.opts.uriResolver.resolve;if(t=KO(f?r(f,t):t),l.has(t))throw u(t);l.add(t);let n=this.refs[t];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?c(e,n.schema,t):t!==KO(d)&&("#"===t[0]?(c(e,s[t],t),s[t]=e):this.refs[t]=d),t}function m(e){if("string"==typeof e){if(!HO.test(e))throw new Error(`invalid anchor "${e}"`);p.call(this,`#${e}`)}}"string"==typeof e[r]&&(f=p.call(this,e[r])),m.call(this,e.$anchor),m.call(this,e.$dynamicAnchor),a[t]=f})),s;function c(e,t,r){if(void 0!==t&&!FO(e,t))throw u(r)}function u(e){return new Error(`reference "${e}" resolves to more than one schema`)}};var YO,JO={};function XO(){if(YO)return JO;YO=1,Object.defineProperty(JO,"__esModule",{value:!0});class e extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}return JO.default=e,JO}var ZO,eN={};function tN(){if(ZO)return eN;ZO=1,Object.defineProperty(eN,"__esModule",{value:!0});const e=OO;class t extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,e.resolveUrl)(t,r,n),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(t,this.missingRef))}}return eN.default=t,eN}var rN={};Object.defineProperty(rN,"__esModule",{value:!0}),rN.resolveSchema=rN.getCompilingSchema=rN.resolveRef=rN.compileSchema=rN.SchemaEnv=void 0;const nN=iO(),oN=XO(),aN=fO(),iN=OO,sN=sO,lN=QO();let cN=class{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,iN.normalizeId)(null==r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==r?void 0:r.$async,this.refs={}}};function uN(e){const t=fN.call(this,e);if(t)return t;const r=(0,iN.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new nN.CodeGen(this.scope,{es5:n,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:oN.default,code:nN._`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const c={gen:i,allErrors:this.opts.allErrors,data:aN.default.data,parentData:aN.default.parentData,parentDataProperty:aN.default.parentDataProperty,dataNames:[aN.default.data],dataPathArr:[nN.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,nN.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:nN.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:nN._`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,lN.validateFunctionCode)(c),i.optimize(this.opts.code.optimize);const t=i.toString();u=`${i.scopeRefs(aN.default.scope)}return ${t}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const r=new Function(`${aN.default.self}`,`${aN.default.scope}`,u)(this,this.scope.get());if(this.scope.value(l,{ref:r}),r.errors=null,r.schema=e.schema,r.schemaEnv=e,e.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:l,validateCode:t,scopeValues:i._values}),this.opts.unevaluated){const{props:e,items:t}=c;r.evaluated={props:e instanceof nN.Name?void 0:e,items:t instanceof nN.Name?void 0:t,dynamicProps:e instanceof nN.Name,dynamicItems:t instanceof nN.Name},r.source&&(r.source.evaluated=(0,nN.stringify)(r.evaluated))}return e.validate=r,e}catch(t){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),t}finally{this._compilations.delete(e)}}function dN(e){return(0,iN.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:uN.call(this,e)}function fN(e){for(const n of this._compilations)if(r=e,(t=n).schema===r.schema&&t.root===r.root&&t.baseId===r.baseId)return n;var t,r}function pN(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||mN.call(this,e,t)}function mN(e,t){const r=this.opts.uriResolver.parse(t),n=(0,iN._getFullPath)(this.opts.uriResolver,r);let o=(0,iN.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return vN.call(this,r,e);const a=(0,iN.normalizeId)(n),i=this.refs[a]||this.schemas[a];if("string"==typeof i){const t=mN.call(this,e,i);if("object"!=typeof(null==t?void 0:t.schema))return;return vN.call(this,r,t)}if("object"==typeof(null==i?void 0:i.schema)){if(i.validate||uN.call(this,i),a===(0,iN.normalizeId)(t)){const{schema:t}=i,{schemaId:r}=this.opts,n=t[r];return n&&(o=(0,iN.resolveUrl)(this.opts.uriResolver,o,n)),new cN({schema:t,schemaId:r,root:e,baseId:o})}return vN.call(this,r,i)}}rN.SchemaEnv=cN,rN.compileSchema=uN,rN.resolveRef=function(e,t,r){var n;r=(0,iN.resolveUrl)(this.opts.uriResolver,t,r);const o=e.refs[r];if(o)return o;let a=pN.call(this,e,r);if(void 0===a){const o=null===(n=e.localRefs)||void 0===n?void 0:n[r],{schemaId:i}=this.opts;o&&(a=new cN({schema:o,schemaId:i,root:e,baseId:t}))}return void 0!==a?e.refs[r]=dN.call(this,a):void 0},rN.getCompilingSchema=fN,rN.resolveSchema=mN;const hN=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function vN(e,{baseId:t,schema:r,root:n}){var o;if("/"!==(null===(o=e.fragment)||void 0===o?void 0:o[0]))return;for(const n of e.fragment.slice(1).split("/")){if("boolean"==typeof r)return;const e=r[(0,sN.unescapeFragment)(n)];if(void 0===e)return;const o="object"==typeof(r=e)&&r[this.opts.schemaId];!hN.has(n)&&o&&(t=(0,iN.resolveUrl)(this.opts.uriResolver,t,o))}let a;if("boolean"!=typeof r&&r.$ref&&!(0,sN.schemaHasRulesButRef)(r,this.RULES)){const e=(0,iN.resolveUrl)(this.opts.uriResolver,t,r.$ref);a=mN.call(this,n,e)}const{schemaId:i}=this.opts;return a=a||new cN({schema:r,schemaId:i,root:n,baseId:t}),a.schema!==a.root.schema?a:void 0}var yN={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},gN={},bN={exports:{}};(function(e){function t(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length>1){t[0]=t[0].slice(0,-1);for(var n=t.length-1,o=1;o<n;++o)t[o]=t[o].slice(1,-1);return t[n]=t[n].slice(1),t.join("")}return t[0]}function r(e){return"(?:"+e+")"}function n(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function o(e){return e.toUpperCase()}function a(e){return null!=e?e instanceof Array?e:"number"!=typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function i(e,t){var r=e;if(t)for(var n in t)r[n]=t[n];return r}function s(e){var n="[A-Za-z]",o="[0-9]",a=t(o,"[A-Fa-f]"),i=r(r("%[EFef]"+a+"%"+a+a+"%"+a+a)+"|"+r("%[89A-Fa-f]"+a+"%"+a+a)+"|"+r("%"+a+a)),s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",l=t("[\\:\\/\\?\\#\\[\\]\\@]",s),c=e?"[\\uE000-\\uF8FF]":"[]",u=t(n,o,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]");r(n+t(n,o,"[\\+\\-\\.]")+"*"),r(r(i+"|"+t(u,s,"[\\:]"))+"*");var d=r(r("25[0-5]")+"|"+r("2[0-4]"+o)+"|"+r("1"+o+o)+"|"+r("0?[1-9]"+o)+"|0?0?"+o),f=r(d+"\\."+d+"\\."+d+"\\."+d),p=r(a+"{1,4}"),m=r(r(p+"\\:"+p)+"|"+f),h=r(r(p+"\\:")+"{6}"+m),v=r("\\:\\:"+r(p+"\\:")+"{5}"+m),y=r(r(p)+"?\\:\\:"+r(p+"\\:")+"{4}"+m),g=r(r(r(p+"\\:")+"{0,1}"+p)+"?\\:\\:"+r(p+"\\:")+"{3}"+m),b=r(r(r(p+"\\:")+"{0,2}"+p)+"?\\:\\:"+r(p+"\\:")+"{2}"+m),w=r(r(r(p+"\\:")+"{0,3}"+p)+"?\\:\\:"+p+"\\:"+m),S=r(r(r(p+"\\:")+"{0,4}"+p)+"?\\:\\:"+m),x=r(r(r(p+"\\:")+"{0,5}"+p)+"?\\:\\:"+p),$=r(r(r(p+"\\:")+"{0,6}"+p)+"?\\:\\:"),k=r([h,v,y,g,b,w,S,x,$].join("|")),_=r(r(u+"|"+i)+"+");r("[vV]"+a+"+\\."+t(u,s,"[\\:]")+"+"),r(r(i+"|"+t(u,s))+"*");var E=r(i+"|"+t(u,s,"[\\:\\@]"));return r(r(i+"|"+t(u,s,"[\\@]"))+"+"),r(r(E+"|"+t("[\\/\\?]",c))+"*"),{NOT_SCHEME:new RegExp(t("[^]",n,o,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",u,s),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",u,s),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",u,s),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",u,s),"g"),NOT_QUERY:new RegExp(t("[^\\%]",u,s,"[\\:\\@\\/\\?]",c),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",u,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",u,s),"g"),UNRESERVED:new RegExp(u,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",u,l),"g"),PCT_ENCODED:new RegExp(i,"g"),IPV4ADDRESS:new RegExp("^("+f+")$"),IPV6ADDRESS:new RegExp("^\\[?("+k+")"+r(r("\\%25|\\%(?!"+a+"{2})")+"("+_+")")+"?\\]?$")}}var l=s(!1),c=s(!0),u=function(){function e(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)},f=2147483647,p=36,m=1,h=26,v=38,y=700,g=72,b=128,w="-",S=/^xn--/,x=/[^\0-\x7E]/,$=/[\x2E\u3002\uFF0E\uFF61]/g,k={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=p-m,E=Math.floor,C=String.fromCharCode;function P(e){throw new RangeError(k[e])}function j(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}function O(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+j((e=e.replace($,".")).split("."),t).join(".")}function N(e){for(var t=[],r=0,n=e.length;r<n;){var o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var a=e.charCodeAt(r++);56320==(64512&a)?t.push(((1023&o)<<10)+(1023&a)+65536):(t.push(o),r--)}else t.push(o)}return t}var R=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:p},T=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},A=function(e,t,r){var n=0;for(e=r?E(e/y):e>>1,e+=E(e/t);e>_*h>>1;n+=p)e=E(e/_);return E(n+(_+1)*e/(e+v))},I=function(e){var t=[],r=e.length,n=0,o=b,a=g,i=e.lastIndexOf(w);i<0&&(i=0);for(var s=0;s<i;++s)e.charCodeAt(s)>=128&&P("not-basic"),t.push(e.charCodeAt(s));for(var l=i>0?i+1:0;l<r;){for(var c=n,u=1,d=p;;d+=p){l>=r&&P("invalid-input");var v=R(e.charCodeAt(l++));(v>=p||v>E((f-n)/u))&&P("overflow"),n+=v*u;var y=d<=a?m:d>=a+h?h:d-a;if(v<y)break;var S=p-y;u>E(f/S)&&P("overflow"),u*=S}var x=t.length+1;a=A(n-c,x,0==c),E(n/x)>f-o&&P("overflow"),o+=E(n/x),n%=x,t.splice(n++,0,o)}return String.fromCodePoint.apply(String,t)},M=function(e){var t=[],r=(e=N(e)).length,n=b,o=0,a=g,i=!0,s=!1,l=void 0;try{for(var c,u=e[Symbol.iterator]();!(i=(c=u.next()).done);i=!0){var d=c.value;d<128&&t.push(C(d))}}catch(e){s=!0,l=e}finally{try{!i&&u.return&&u.return()}finally{if(s)throw l}}var v=t.length,y=v;for(v&&t.push(w);y<r;){var S=f,x=!0,$=!1,k=void 0;try{for(var _,j=e[Symbol.iterator]();!(x=(_=j.next()).done);x=!0){var O=_.value;O>=n&&O<S&&(S=O)}}catch(e){$=!0,k=e}finally{try{!x&&j.return&&j.return()}finally{if($)throw k}}var R=y+1;S-n>E((f-o)/R)&&P("overflow"),o+=(S-n)*R,n=S;var I=!0,M=!1,F=void 0;try{for(var D,z=e[Symbol.iterator]();!(I=(D=z.next()).done);I=!0){var L=D.value;if(L<n&&++o>f&&P("overflow"),L==n){for(var V=o,B=p;;B+=p){var U=B<=a?m:B>=a+h?h:B-a;if(V<U)break;var W=V-U,q=p-U;t.push(C(T(U+W%q,0))),V=E(W/q)}t.push(C(T(V,0))),a=A(o,R,y==v),o=0,++y}}}catch(e){M=!0,F=e}finally{try{!I&&z.return&&z.return()}finally{if(M)throw F}}++o,++n}return t.join("")},F=function(e){return O(e,(function(e){return S.test(e)?I(e.slice(4).toLowerCase()):e}))},D=function(e){return O(e,(function(e){return x.test(e)?"xn--"+M(e):e}))},z={version:"2.1.0",ucs2:{decode:N,encode:function(e){return String.fromCodePoint.apply(String,d(e))}},decode:I,encode:M,toASCII:D,toUnicode:F},L={};function V(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function B(e){for(var t="",r=0,n=e.length;r<n;){var o=parseInt(e.substr(r+1,2),16);if(o<128)t+=String.fromCharCode(o),r+=3;else if(o>=194&&o<224){if(n-r>=6){var a=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&o)<<6|63&a)}else t+=e.substr(r,6);r+=6}else if(o>=224){if(n-r>=9){var i=parseInt(e.substr(r+4,2),16),s=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&o)<<12|(63&i)<<6|63&s)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function U(e,t){function r(e){var r=B(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,V).replace(t.PCT_ENCODED,o)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,V).replace(t.PCT_ENCODED,o)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,V).replace(t.PCT_ENCODED,o)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,V).replace(t.PCT_ENCODED,o)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,V).replace(t.PCT_ENCODED,o)),e}function W(e){return e.replace(/^0*(.*)/,"$1")||"0"}function q(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=u(r,2)[1];return n?n.split(".").map(W).join("."):e}function K(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=u(r,3),o=n[1],a=n[2];if(o){for(var i=o.toLowerCase().split("::").reverse(),s=u(i,2),l=s[0],c=s[1],d=c?c.split(":").map(W):[],f=l.split(":").map(W),p=t.IPV4ADDRESS.test(f[f.length-1]),m=p?7:8,h=f.length-m,v=Array(m),y=0;y<m;++y)v[y]=d[y]||f[h+y]||"";p&&(v[m-1]=q(v[m-1],t));var g=v.reduce((function(e,t,r){if(!t||"0"===t){var n=e[e.length-1];n&&n.index+n.length===r?n.length++:e.push({index:r,length:1})}return e}),[]),b=g.sort((function(e,t){return t.length-e.length}))[0],w=void 0;if(b&&b.length>1){var S=v.slice(0,b.index),x=v.slice(b.index+b.length);w=S.join(":")+"::"+x.join(":")}else w=v.join(":");return a&&(w+="%"+a),w}return e}var H=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,G=void 0==="".match(/(){0}/)[1];function Q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?c:l;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var o=e.match(H);if(o){G?(r.scheme=o[1],r.userinfo=o[3],r.host=o[4],r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=o[7],r.fragment=o[8],isNaN(r.port)&&(r.port=o[5])):(r.scheme=o[1]||void 0,r.userinfo=-1!==e.indexOf("@")?o[3]:void 0,r.host=-1!==e.indexOf("//")?o[4]:void 0,r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=-1!==e.indexOf("?")?o[7]:void 0,r.fragment=-1!==e.indexOf("#")?o[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:void 0)),r.host&&(r.host=K(q(r.host,n),n)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var a=L[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||a&&a.unicodeSupport)U(r,n);else{if(r.host&&(t.domainHost||a&&a.domainHost))try{r.host=z.toASCII(r.host.replace(n.PCT_ENCODED,B).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}U(r,l)}a&&a.parse&&a.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}function Y(e,t){var r=!1!==t.iri?c:l,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push(K(q(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0}var J=/^\.\.?\//,X=/^\/\.(\/|$)/,Z=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(J))e=e.replace(J,"");else if(e.match(X))e=e.replace(X,"/");else if(e.match(Z))e=e.replace(Z,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(ee);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];e=e.slice(n.length),t.push(n)}return t.join("")}function re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?c:l,n=[],o=L[(t.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize&&o.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||o&&o.domainHost)try{e.host=t.iri?z.toUnicode(e.host):z.toASCII(e.host.replace(r.PCT_ENCODED,B).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}U(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var a=Y(e,t);if(void 0!==a&&("suffix"!==t.reference&&n.push("//"),n.push(a),e.path&&"/"!==e.path.charAt(0)&&n.push("/")),void 0!==e.path){var i=e.path;t.absolutePath||o&&o.absolutePath||(i=te(i)),void 0===a&&(i=i.replace(/^\/\//,"/%2F")),n.push(i)}return void 0!==e.query&&(n.push("?"),n.push(e.query)),void 0!==e.fragment&&(n.push("#"),n.push(e.fragment)),n.join("")}function ne(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(e=Q(re(e,r),r),t=Q(re(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=te(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path:n.path="/"+t.path,n.path=te(n.path)),n.query=t.query):(n.path=e.path,void 0!==t.query?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function oe(e,t,r){var n=i({scheme:"null"},r);return re(ne(Q(e,n),Q(t,n),n,!0),n)}function ae(e,t){return"string"==typeof e?e=re(Q(e,t),t):"object"===n(e)&&(e=Q(re(e,t),t)),e}function ie(e,t,r){return"string"==typeof e?e=re(Q(e,r),r):"object"===n(e)&&(e=re(e,r)),"string"==typeof t?t=re(Q(t,r),r):"object"===n(t)&&(t=re(t,r)),e===t}function se(e,t){return e&&e.toString().replace(t&&t.iri?c.ESCAPE:l.ESCAPE,V)}function le(e,t){return e&&e.toString().replace(t&&t.iri?c.PCT_ENCODED:l.PCT_ENCODED,B)}var ce={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},ue={scheme:"https",domainHost:ce.domainHost,parse:ce.parse,serialize:ce.serialize};function de(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var fe={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=de(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r},serialize:function(e,t){if(e.port!==(de(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var r=e.resourceName.split("?"),n=u(r,2),o=n[0],a=n[1];e.path=o&&"/"!==o?o:void 0,e.query=a,e.resourceName=void 0}return e.fragment=void 0,e}},pe={scheme:"wss",domainHost:fe.domainHost,parse:fe.parse,serialize:fe.serialize},me={},he="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ve="[0-9A-Fa-f]",ye=r(r("%[EFef]"+ve+"%"+ve+ve+"%"+ve+ve)+"|"+r("%[89A-Fa-f]"+ve+"%"+ve+ve)+"|"+r("%"+ve+ve)),ge="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",be=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),we="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Se=new RegExp(he,"g"),xe=new RegExp(ye,"g"),$e=new RegExp(t("[^]",ge,"[\\.]",'[\\"]',be),"g"),ke=new RegExp(t("[^]",he,we),"g"),_e=ke;function Ee(e){var t=B(e);return t.match(Se)?t:e}var Ce={scheme:"mailto",parse:function(e,t){var r=e,n=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var o=!1,a={},i=r.query.split("&"),s=0,l=i.length;s<l;++s){var c=i[s].split("=");switch(c[0]){case"to":for(var u=c[1].split(","),d=0,f=u.length;d<f;++d)n.push(u[d]);break;case"subject":r.subject=le(c[1],t);break;case"body":r.body=le(c[1],t);break;default:o=!0,a[le(c[0],t)]=le(c[1],t)}}o&&(r.headers=a)}r.query=void 0;for(var p=0,m=n.length;p<m;++p){var h=n[p].split("@");if(h[0]=le(h[0]),t.unicodeSupport)h[1]=le(h[1],t).toLowerCase();else try{h[1]=z.toASCII(le(h[1],t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}n[p]=h.join("@")}return r},serialize:function(e,t){var r=e,n=a(e.to);if(n){for(var i=0,s=n.length;i<s;++i){var l=String(n[i]),c=l.lastIndexOf("@"),u=l.slice(0,c).replace(xe,Ee).replace(xe,o).replace($e,V),d=l.slice(c+1);try{d=t.iri?z.toUnicode(d):z.toASCII(le(d,t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}n[i]=u+"@"+d}r.path=n.join(",")}var f=e.headers=e.headers||{};e.subject&&(f.subject=e.subject),e.body&&(f.body=e.body);var p=[];for(var m in f)f[m]!==me[m]&&p.push(m.replace(xe,Ee).replace(xe,o).replace(ke,V)+"="+f[m].replace(xe,Ee).replace(xe,o).replace(_e,V));return p.length&&(r.query=p.join("&")),r}},Pe=/^([^\:]+)\:(.*)/,je={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(Pe),n=e;if(r){var o=t.scheme||n.scheme||"urn",a=r[1].toLowerCase(),i=r[2],s=o+":"+(t.nid||a),l=L[s];n.nid=a,n.nss=i,n.path=void 0,l&&(n=l.parse(n,t))}else n.error=n.error||"URN can not be parsed.";return n},serialize:function(e,t){var r=t.scheme||e.scheme||"urn",n=e.nid,o=r+":"+(t.nid||n),a=L[o];a&&(e=a.serialize(e,t));var i=e,s=e.nss;return i.path=(n||t.nid)+":"+s,i}},Oe=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Ne={scheme:"urn:uuid",parse:function(e,t){var r=e;return r.uuid=r.nss,r.nss=void 0,t.tolerant||r.uuid&&r.uuid.match(Oe)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};L[ce.scheme]=ce,L[ue.scheme]=ue,L[fe.scheme]=fe,L[pe.scheme]=pe,L[Ce.scheme]=Ce,L[je.scheme]=je,L[Ne.scheme]=Ne,e.SCHEMES=L,e.pctEncChar=V,e.pctDecChars=B,e.parse=Q,e.removeDotSegments=te,e.serialize=re,e.resolveComponents=ne,e.resolve=oe,e.normalize=ae,e.equal=ie,e.escapeComponent=se,e.unescapeComponent=le,Object.defineProperty(e,"__esModule",{value:!0})})(bN.exports);var wN=bN.exports;Object.defineProperty(gN,"__esModule",{value:!0});const SN=wN;SN.code='require("ajv/dist/runtime/uri").default',gN.default=SN,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=QO();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=iO();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=XO(),o=tN(),a=hO,i=rN,s=iO(),l=OO,c=mO,u=sO,d=yN,f=gN,p=(e,t)=>new RegExp(e,t);p.code="new RegExp";const m=["removeAdditional","useDefaults","coerceTypes"],h=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},y={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function g(e){var t,r,n,o,a,i,s,l,c,u,d,m,h,v,y,g,b,w,S,x,$,k,_,E,C;const P=e.strict,j=null===(t=e.code)||void 0===t?void 0:t.optimize,O=!0===j||void 0===j?1:j||0,N=null!==(n=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==n?n:p,R=null!==(o=e.uriResolver)&&void 0!==o?o:f.default;return{strictSchema:null===(i=null!==(a=e.strictSchema)&&void 0!==a?a:P)||void 0===i||i,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:P)||void 0===l||l,strictTypes:null!==(u=null!==(c=e.strictTypes)&&void 0!==c?c:P)&&void 0!==u?u:"log",strictTuples:null!==(m=null!==(d=e.strictTuples)&&void 0!==d?d:P)&&void 0!==m?m:"log",strictRequired:null!==(v=null!==(h=e.strictRequired)&&void 0!==h?h:P)&&void 0!==v&&v,code:e.code?{...e.code,optimize:O,regExp:N}:{optimize:O,regExp:N},loopRequired:null!==(y=e.loopRequired)&&void 0!==y?y:200,loopEnum:null!==(g=e.loopEnum)&&void 0!==g?g:200,meta:null===(b=e.meta)||void 0===b||b,messages:null===(w=e.messages)||void 0===w||w,inlineRefs:null===(S=e.inlineRefs)||void 0===S||S,schemaId:null!==(x=e.schemaId)&&void 0!==x?x:"$id",addUsedSchema:null===($=e.addUsedSchema)||void 0===$||$,validateSchema:null===(k=e.validateSchema)||void 0===k||k,validateFormats:null===(_=e.validateFormats)||void 0===_||_,unicodeRegExp:null===(E=e.unicodeRegExp)||void 0===E||E,int32range:null===(C=e.int32range)||void 0===C||C,uriResolver:R}}class b{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...g(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:h,es5:t,lines:r}),this.logger=function(e){if(!1===e)return E;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const n=e.validateFormats;e.validateFormats=!1,this.RULES=(0,a.getRules)(),w.call(this,v,e,"NOT SUPPORTED"),w.call(this,y,e,"DEPRECATED","warn"),this._metaOpts=_.call(this),e.formats&&$.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&k.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),x.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let n=d;"id"===r&&(n={...d},n.id=n.$id,delete n.$id),t&&e&&this.addMetaSchema(n,n[r],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);const n=r(t);return"$async"in r||(this.errors=r.errors),n}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return n.call(this,e,t);async function n(e,t){await a.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||i.call(this,r)}async function a(e){e&&!this.getSchema(e)&&await n.call(this,{$ref:e},!0)}async function i(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof o.default))throw t;return s.call(this,t),await l.call(this,t.missingSchema),i.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function l(e){const r=await c.call(this,e);this.refs[e]||await a.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function c(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,n=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,n);return this}let o;if("object"==typeof e){const{schemaId:t}=this.opts;if(o=e[t],void 0!==o&&"string"!=typeof o)throw new Error(`schema ${t} must be string`)}return t=(0,l.normalizeId)(t||o),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,n,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let r;if(r=e.$schema,void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const n=this.validate(r,e);if(!n&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return n}getSchema(e){let t;for(;"string"==typeof(t=S.call(this,e));)e=t;if(void 0===t){const{schemaId:r}=this.opts,n=new i.SchemaEnv({schema:{},schemaId:r});if(t=i.resolveSchema.call(this,n,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=S.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];return r&&(r=(0,l.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(P.call(this,r,t),!t)return(0,u.eachItem)(r,(e=>j.call(this,e))),this;N.call(this,t);const n={...t,type:(0,c.getJSONTypes)(t.type),schemaType:(0,c.getJSONTypes)(t.schemaType)};return(0,u.eachItem)(r,0===n.type.length?e=>j.call(this,e,n):e=>n.type.forEach((t=>j.call(this,e,n,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map((e=>`${r}${e.instancePath} ${e.message}`)).reduce(((e,r)=>e+t+r)):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const n of t){const t=n.split("/").slice(1);let o=e;for(const e of t)o=o[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:n}=t.definition,a=o[e];n&&a&&(o[e]=T(a))}}return e}_removeAllSchemas(e,t){for(const r in e){const n=e[r];t&&!t.test(r)||("string"==typeof n?delete e[r]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[r]))}}_addSchema(e,t,r,n=this.opts.validateSchema,o=this.opts.addUsedSchema){let a;const{schemaId:s}=this.opts;if("object"==typeof e)a=e[s];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let c=this._cache.get(e);if(void 0!==c)return c;r=(0,l.normalizeId)(a||r);const u=l.getSchemaRefs.call(this,e,r);return c=new i.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:r,localRefs:u}),this._cache.set(c.schema,c),o&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=c),n&&this.validateSchema(e,!0),c}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):i.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,e)}finally{this.opts=t}}}function w(e,t,r,n="error"){for(const o in e){const a=o;a in t&&this.logger[n](`${r}: option ${o}. ${e[a]}`)}}function S(e){return e=(0,l.normalizeId)(e),this.schemas[e]||this.refs[e]}function x(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function $(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function k(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function _(){const e={...this.opts};for(const t of m)delete e[t];return e}e.default=b,b.ValidationError=n.default,b.MissingRefError=o.default;const E={log(){},warn(){},error(){}};const C=/^[a-z_$][a-z0-9_$:-]*$/i;function P(e,t){const{RULES:r}=this;if((0,u.eachItem)(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!C.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function j(e,t,r){var n;const o=null==t?void 0:t.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:a}=this;let i=o?a.post:a.rules.find((({type:e})=>e===r));if(i||(i={type:r,rules:[]},a.rules.push(i)),a.keywords[e]=!0,!t)return;const s={keyword:e,definition:{...t,type:(0,c.getJSONTypes)(t.type),schemaType:(0,c.getJSONTypes)(t.schemaType)}};t.before?O.call(this,i,s,t.before):i.rules.push(s),a.all[e]=s,null===(n=t.implements)||void 0===n||n.forEach((e=>this.addKeyword(e)))}function O(e,t,r){const n=e.rules.findIndex((e=>e.keyword===r));n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function N(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=T(t)),e.validateSchema=this.compile(t,!0))}const R={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function T(e){return{anyOf:[e,R]}}}(Qj);var xN={},$N={},kN={};Object.defineProperty(kN,"__esModule",{value:!0});const _N={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};kN.default=_N;var EN={};Object.defineProperty(EN,"__esModule",{value:!0}),EN.callRef=EN.getValidate=void 0;const CN=tN(),PN=EO(),jN=iO(),ON=fO(),NN=rN,RN=sO,TN={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:o,schemaEnv:a,validateName:i,opts:s,self:l}=n,{root:c}=a;if(("#"===r||"#/"===r)&&o===c.baseId)return function(){if(a===c)return IN(e,i,a,a.$async);const r=t.scopeValue("root",{ref:c});return IN(e,jN._`${r}.validate`,c,c.$async)}();const u=NN.resolveRef.call(l,c,o,r);if(void 0===u)throw new CN.default(n.opts.uriResolver,o,r);return u instanceof NN.SchemaEnv?function(t){const r=AN(e,t);IN(e,r,t,t.$async)}(u):function(n){const o=t.scopeValue("schema",!0===s.code.source?{ref:n,code:(0,jN.stringify)(n)}:{ref:n}),a=t.name("valid"),i=e.subschema({schema:n,dataTypes:[],schemaPath:jN.nil,topSchemaRef:o,errSchemaPath:r},a);e.mergeEvaluated(i),e.ok(a)}(u)}};function AN(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):jN._`${r.scopeValue("wrapper",{ref:t})}.validate`}function IN(e,t,r,n){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,c=l.passContext?ON.default.this:jN.nil;function u(e){const t=jN._`${e}.errors`;o.assign(ON.default.vErrors,jN._`${ON.default.vErrors} === null ? ${t} : ${ON.default.vErrors}.concat(${t})`),o.assign(ON.default.errors,jN._`${ON.default.vErrors}.length`)}function d(e){var t;if(!a.opts.unevaluated)return;const n=null===(t=null==r?void 0:r.validate)||void 0===t?void 0:t.evaluated;if(!0!==a.props)if(n&&!n.dynamicProps)void 0!==n.props&&(a.props=RN.mergeEvaluated.props(o,n.props,a.props));else{const t=o.var("props",jN._`${e}.evaluated.props`);a.props=RN.mergeEvaluated.props(o,t,a.props,jN.Name)}if(!0!==a.items)if(n&&!n.dynamicItems)void 0!==n.items&&(a.items=RN.mergeEvaluated.items(o,n.items,a.items));else{const t=o.var("items",jN._`${e}.evaluated.items`);a.items=RN.mergeEvaluated.items(o,t,a.items,jN.Name)}}n?function(){if(!s.$async)throw new Error("async schema referenced by sync schema");const r=o.let("valid");o.try((()=>{o.code(jN._`await ${(0,PN.callValidateCode)(e,t,c)}`),d(t),i||o.assign(r,!0)}),(e=>{o.if(jN._`!(${e} instanceof ${a.ValidationError})`,(()=>o.throw(e))),u(e),i||o.assign(r,!1)})),e.ok(r)}():e.result((0,PN.callValidateCode)(e,t,c),(()=>d(t)),(()=>u(t)))}EN.getValidate=AN,EN.callRef=IN,EN.default=TN,Object.defineProperty($N,"__esModule",{value:!0});const MN=EN,FN=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",kN.default,MN.default];$N.default=FN;var DN={},zN={};Object.defineProperty(zN,"__esModule",{value:!0});const LN=iO(),VN=LN.operators,BN={maximum:{okStr:"<=",ok:VN.LTE,fail:VN.GT},minimum:{okStr:">=",ok:VN.GTE,fail:VN.LT},exclusiveMaximum:{okStr:"<",ok:VN.LT,fail:VN.GTE},exclusiveMinimum:{okStr:">",ok:VN.GT,fail:VN.LTE}},UN={message:({keyword:e,schemaCode:t})=>LN.str`must be ${BN[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>LN._`{comparison: ${BN[e].okStr}, limit: ${t}}`},WN={keyword:Object.keys(BN),type:"number",schemaType:"number",$data:!0,error:UN,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data(LN._`${r} ${BN[t].fail} ${n} || isNaN(${r})`)}};zN.default=WN;var qN={};Object.defineProperty(qN,"__esModule",{value:!0});const KN=iO(),HN={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>KN.str`must be multiple of ${e}`,params:({schemaCode:e})=>KN._`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:n,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?KN._`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:KN._`${i} !== parseInt(${i})`;e.fail$data(KN._`(${n} === 0 || (${i} = ${r}/${n}, ${s}))`)}};qN.default=HN;var GN={},QN={};function YN(e){const t=e.length;let r,n=0,o=0;for(;o<t;)n++,r=e.charCodeAt(o++),r>=55296&&r<=56319&&o<t&&(r=e.charCodeAt(o),56320==(64512&r)&&o++);return n}Object.defineProperty(QN,"__esModule",{value:!0}),QN.default=YN,YN.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty(GN,"__esModule",{value:!0});const JN=iO(),XN=sO,ZN=QN,eR={message({keyword:e,schemaCode:t}){const r="maxLength"===e?"more":"fewer";return JN.str`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>JN._`{limit: ${e}}`},tR={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:eR,code(e){const{keyword:t,data:r,schemaCode:n,it:o}=e,a="maxLength"===t?JN.operators.GT:JN.operators.LT,i=!1===o.opts.unicode?JN._`${r}.length`:JN._`${(0,XN.useFunc)(e.gen,ZN.default)}(${r})`;e.fail$data(JN._`${i} ${a} ${n}`)}};GN.default=tR;var rR={};Object.defineProperty(rR,"__esModule",{value:!0});const nR=EO(),oR=iO(),aR={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>oR.str`must match pattern "${e}"`,params:({schemaCode:e})=>oR._`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:n,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=r?oR._`(new RegExp(${o}, ${i}))`:(0,nR.usePattern)(e,n);e.fail$data(oR._`!${s}.test(${t})`)}};rR.default=aR;var iR={};Object.defineProperty(iR,"__esModule",{value:!0});const sR=iO(),lR={message({keyword:e,schemaCode:t}){const r="maxProperties"===e?"more":"fewer";return sR.str`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>sR._`{limit: ${e}}`},cR={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:lR,code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxProperties"===t?sR.operators.GT:sR.operators.LT;e.fail$data(sR._`Object.keys(${r}).length ${o} ${n}`)}};iR.default=cR;var uR={};Object.defineProperty(uR,"__esModule",{value:!0});const dR=EO(),fR=iO(),pR=sO,mR={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>fR.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>fR._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:r,schemaCode:n,data:o,$data:a,it:i}=e,{opts:s}=i;if(!a&&0===r.length)return;const l=r.length>=s.loopRequired;if(i.allErrors?function(){if(l||a)e.block$data(fR.nil,c);else for(const t of r)(0,dR.checkReportMissingProp)(e,t)}():function(){const i=t.let("missing");if(l||a){const r=t.let("valid",!0);e.block$data(r,(()=>function(r,a){e.setParams({missingProperty:r}),t.forOf(r,n,(()=>{t.assign(a,(0,dR.propertyInData)(t,o,r,s.ownProperties)),t.if((0,fR.not)(a),(()=>{e.error(),t.break()}))}),fR.nil)}(i,r))),e.ok(r)}else t.if((0,dR.checkMissingProp)(e,r,i)),(0,dR.reportMissingProp)(e,i),t.else()}(),s.strictRequired){const t=e.parentSchema.properties,{definedProperties:n}=e.it;for(const e of r)if(void 0===(null==t?void 0:t[e])&&!n.has(e)){const t=`required property "${e}" is not defined at "${i.schemaEnv.baseId+i.errSchemaPath}" (strictRequired)`;(0,pR.checkStrictMode)(i,t,i.opts.strictRequired)}}function c(){t.forOf("prop",n,(r=>{e.setParams({missingProperty:r}),t.if((0,dR.noPropertyInData)(t,o,r,s.ownProperties),(()=>e.error()))}))}}};uR.default=mR;var hR={};Object.defineProperty(hR,"__esModule",{value:!0});const vR=iO(),yR={message({keyword:e,schemaCode:t}){const r="maxItems"===e?"more":"fewer";return vR.str`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>vR._`{limit: ${e}}`},gR={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:yR,code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxItems"===t?vR.operators.GT:vR.operators.LT;e.fail$data(vR._`${r}.length ${o} ${n}`)}};hR.default=gR;var bR={},wR={};Object.defineProperty(wR,"__esModule",{value:!0});const SR=NO;SR.code='require("ajv/dist/runtime/equal").default',wR.default=SR,Object.defineProperty(bR,"__esModule",{value:!0});const xR=mO,$R=iO(),kR=sO,_R=wR,ER={message:({params:{i:e,j:t}})=>$R.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>$R._`{i: ${e}, j: ${t}}`},CR={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:ER,code(e){const{gen:t,data:r,$data:n,schema:o,parentSchema:a,schemaCode:i,it:s}=e;if(!n&&!o)return;const l=t.let("valid"),c=a.items?(0,xR.getSchemaTypes)(a.items):[];function u(n,o){const a=t.name("item"),i=(0,xR.checkDataTypes)(c,a,s.opts.strictNumbers,xR.DataType.Wrong),u=t.const("indices",$R._`{}`);t.for($R._`;${n}--;`,(()=>{t.let(a,$R._`${r}[${n}]`),t.if(i,$R._`continue`),c.length>1&&t.if($R._`typeof ${a} == "string"`,$R._`${a} += "_"`),t.if($R._`typeof ${u}[${a}] == "number"`,(()=>{t.assign(o,$R._`${u}[${a}]`),e.error(),t.assign(l,!1).break()})).code($R._`${u}[${a}] = ${n}`)}))}function d(n,o){const a=(0,kR.useFunc)(t,_R.default),i=t.name("outer");t.label(i).for($R._`;${n}--;`,(()=>t.for($R._`${o} = ${n}; ${o}--;`,(()=>t.if($R._`${a}(${r}[${n}], ${r}[${o}])`,(()=>{e.error(),t.assign(l,!1).break(i)}))))))}e.block$data(l,(function(){const n=t.let("i",$R._`${r}.length`),o=t.let("j");e.setParams({i:n,j:o}),t.assign(l,!0),t.if($R._`${n} > 1`,(()=>(c.length>0&&!c.some((e=>"object"===e||"array"===e))?u:d)(n,o)))}),$R._`${i} === false`),e.ok(l)}};bR.default=CR;var PR={};Object.defineProperty(PR,"__esModule",{value:!0});const jR=iO(),OR=sO,NR=wR,RR={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>jR._`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,$data:n,schemaCode:o,schema:a}=e;n||a&&"object"==typeof a?e.fail$data(jR._`!${(0,OR.useFunc)(t,NR.default)}(${r}, ${o})`):e.fail(jR._`${a} !== ${r}`)}};PR.default=RR;var TR={};Object.defineProperty(TR,"__esModule",{value:!0});const AR=iO(),IR=sO,MR=wR,FR={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>AR._`{allowedValues: ${e}}`},code(e){const{gen:t,data:r,$data:n,schema:o,schemaCode:a,it:i}=e;if(!n&&0===o.length)throw new Error("enum must have non-empty array");const s=o.length>=i.opts.loopEnum;let l;const c=()=>null!=l?l:l=(0,IR.useFunc)(t,MR.default);let u;if(s||n)u=t.let("valid"),e.block$data(u,(function(){t.assign(u,!1),t.forOf("v",a,(e=>t.if(AR._`${c()}(${r}, ${e})`,(()=>t.assign(u,!0).break()))))}));else{if(!Array.isArray(o))throw new Error("ajv implementation error");const e=t.const("vSchema",a);u=(0,AR.or)(...o.map(((t,n)=>function(e,t){const n=o[t];return"object"==typeof n&&null!==n?AR._`${c()}(${r}, ${e}[${t}])`:AR._`${r} === ${n}`}(e,n))))}e.pass(u)}};TR.default=FR,Object.defineProperty(DN,"__esModule",{value:!0});const DR=qN,zR=GN,LR=rR,VR=iR,BR=uR,UR=hR,WR=bR,qR=PR,KR=TR,HR=[zN.default,DR.default,zR.default,LR.default,VR.default,BR.default,UR.default,WR.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},qR.default,KR.default];DN.default=HR;var GR={},QR={};Object.defineProperty(QR,"__esModule",{value:!0}),QR.validateAdditionalItems=void 0;const YR=iO(),JR=sO,XR={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>YR.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>YR._`{limit: ${e}}`},code(e){const{parentSchema:t,it:r}=e,{items:n}=t;Array.isArray(n)?ZR(e,n):(0,JR.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function ZR(e,t){const{gen:r,schema:n,data:o,keyword:a,it:i}=e;i.items=!0;const s=r.const("len",YR._`${o}.length`);if(!1===n)e.setParams({len:t.length}),e.pass(YR._`${s} <= ${t.length}`);else if("object"==typeof n&&!(0,JR.alwaysValidSchema)(i,n)){const n=r.var("valid",YR._`${s} <= ${t.length}`);r.if((0,YR.not)(n),(()=>function(n){r.forRange("i",t.length,s,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:JR.Type.Num},n),i.allErrors||r.if((0,YR.not)(n),(()=>r.break()))}))}(n))),e.ok(n)}}QR.validateAdditionalItems=ZR,QR.default=XR;var eT={},tT={};Object.defineProperty(tT,"__esModule",{value:!0}),tT.validateTuple=void 0;const rT=iO(),nT=sO,oT=EO(),aT={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return iT(e,"additionalItems",t);r.items=!0,(0,nT.alwaysValidSchema)(r,t)||e.ok((0,oT.validateArray)(e))}};function iT(e,t,r=e.schema){const{gen:n,parentSchema:o,data:a,keyword:i,it:s}=e;!function(e){const{opts:n,errSchemaPath:o}=s,a=r.length,l=a===e.minItems&&(a===e.maxItems||!1===e[t]);if(n.strictTuples&&!l){const e=`"${i}" is ${a}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,nT.checkStrictMode)(s,e,n.strictTuples)}}(o),s.opts.unevaluated&&r.length&&!0!==s.items&&(s.items=nT.mergeEvaluated.items(n,r.length,s.items));const l=n.name("valid"),c=n.const("len",rT._`${a}.length`);r.forEach(((t,r)=>{(0,nT.alwaysValidSchema)(s,t)||(n.if(rT._`${c} > ${r}`,(()=>e.subschema({keyword:i,schemaProp:r,dataProp:r},l))),e.ok(l))}))}tT.validateTuple=iT,tT.default=aT,Object.defineProperty(eT,"__esModule",{value:!0});const sT=tT,lT={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,sT.validateTuple)(e,"items")};eT.default=lT;var cT={};Object.defineProperty(cT,"__esModule",{value:!0});const uT=iO(),dT=sO,fT=EO(),pT=QR,mT={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>uT.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>uT._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,(0,dT.alwaysValidSchema)(n,t)||(o?(0,pT.validateAdditionalItems)(e,o):e.ok((0,fT.validateArray)(e)))}};cT.default=mT;var hT={};Object.defineProperty(hT,"__esModule",{value:!0});const vT=iO(),yT=sO,gT={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?vT.str`must contain at least ${e} valid item(s)`:vT.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?vT._`{minContains: ${e}}`:vT._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:r,parentSchema:n,data:o,it:a}=e;let i,s;const{minContains:l,maxContains:c}=n;a.opts.next?(i=void 0===l?1:l,s=c):i=1;const u=t.const("len",vT._`${o}.length`);if(e.setParams({min:i,max:s}),void 0===s&&0===i)return void(0,yT.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==s&&i>s)return(0,yT.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,yT.alwaysValidSchema)(a,r)){let t=vT._`${u} >= ${i}`;return void 0!==s&&(t=vT._`${t} && ${u} <= ${s}`),void e.pass(t)}a.items=!0;const d=t.name("valid");function f(){const e=t.name("_valid"),r=t.let("count",0);p(e,(()=>t.if(e,(()=>function(e){t.code(vT._`${e}++`),void 0===s?t.if(vT._`${e} >= ${i}`,(()=>t.assign(d,!0).break())):(t.if(vT._`${e} > ${s}`,(()=>t.assign(d,!1).break())),1===i?t.assign(d,!0):t.if(vT._`${e} >= ${i}`,(()=>t.assign(d,!0))))}(r)))))}function p(r,n){t.forRange("i",0,u,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:yT.Type.Num,compositeRule:!0},r),n()}))}void 0===s&&1===i?p(d,(()=>t.if(d,(()=>t.break())))):0===i?(t.let(d,!0),void 0!==s&&t.if(vT._`${o}.length > 0`,f)):(t.let(d,!1),f()),e.result(d,(()=>e.reset()))}};hT.default=gT;var bT={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=iO(),r=sO,n=EO();e.error={message:({params:{property:e,depsCount:r,deps:n}})=>{const o=1===r?"property":"properties";return t.str`must have ${o} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:r,deps:n,missingProperty:o}})=>t._`{property: ${e},
24
24
  missingProperty: ${o},
25
25
  depsCount: ${r},
26
- deps: ${n}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(e){const[t,r]=function({schema:e}){const t={},r={};for(const n in e){if("__proto__"===n)continue;(Array.isArray(e[n])?t:r)[n]=e[n]}return[t,r]}(e);a(e,t),i(e,r)}};function a(e,r=e.schema){const{gen:o,data:a,it:i}=e;if(0===Object.keys(r).length)return;const s=o.let("missing");for(const l in r){const c=r[l];if(0===c.length)continue;const u=(0,n.propertyInData)(o,a,l,i.opts.ownProperties);e.setParams({property:l,depsCount:c.length,deps:c.join(", ")}),i.allErrors?o.if(u,(()=>{for(const t of c)(0,n.checkReportMissingProp)(e,t)})):(o.if(t._`${u} && (${(0,n.checkMissingProp)(e,c,s)})`),(0,n.reportMissingProp)(e,s),o.else())}}function i(e,t=e.schema){const{gen:o,data:a,keyword:i,it:s}=e,l=o.name("valid");for(const c in t)(0,r.alwaysValidSchema)(s,t[c])||(o.if((0,n.propertyInData)(o,a,c,s.opts.ownProperties),(()=>{const t=e.subschema({keyword:i,schemaProp:c},l);e.mergeValidEvaluated(t,l)}),(()=>o.var(l,!0))),e.ok(l))}e.validatePropertyDeps=a,e.validateSchemaDeps=i,e.default=o}(nT);var oT={};Object.defineProperty(oT,"__esModule",{value:!0});const aT=WO(),iT=qO,sT={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>aT._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:n,it:o}=e;if((0,iT.alwaysValidSchema)(o,r))return;const a=t.name("valid");t.forIn("key",n,(r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},a),t.if((0,aT.not)(a),(()=>{e.error(!0),o.allErrors||t.break()}))})),e.ok(a)}};oT.default=sT;var lT={};Object.defineProperty(lT,"__esModule",{value:!0});const cT=uN(),uT=WO(),dT=YO(),fT=qO,pT={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>uT._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:r,parentSchema:n,data:o,errsCount:a,it:i}=e;if(!a)throw new Error("ajv implementation error");const{allErrors:s,opts:l}=i;if(i.props=!0,"all"!==l.removeAdditional&&(0,fT.alwaysValidSchema)(i,r))return;const c=(0,cT.allSchemaProperties)(n.properties),u=(0,cT.allSchemaProperties)(n.patternProperties);function d(e){t.code(uT._`delete ${o}[${e}]`)}function f(n){if("all"===l.removeAdditional||l.removeAdditional&&!1===r)d(n);else{if(!1===r)return e.setParams({additionalProperty:n}),e.error(),void(s||t.break());if("object"==typeof r&&!(0,fT.alwaysValidSchema)(i,r)){const r=t.name("valid");"failing"===l.removeAdditional?(p(n,r,!1),t.if((0,uT.not)(r),(()=>{e.reset(),d(n)}))):(p(n,r),s||t.if((0,uT.not)(r),(()=>t.break())))}}}function p(t,r,n){const o={keyword:"additionalProperties",dataProp:t,dataPropType:fT.Type.Str};!1===n&&Object.assign(o,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(o,r)}t.forIn("key",o,(r=>{c.length||u.length?t.if(function(r){let o;if(c.length>8){const e=(0,fT.schemaRefOrVal)(i,n.properties,"properties");o=(0,cT.isOwnProperty)(t,e,r)}else o=c.length?(0,uT.or)(...c.map((e=>uT._`${r} === ${e}`))):uT.nil;return u.length&&(o=(0,uT.or)(o,...u.map((t=>uT._`${(0,cT.usePattern)(e,t)}.test(${r})`)))),(0,uT.not)(o)}(r),(()=>f(r))):f(r)})),e.ok(uT._`${a} === ${dT.default.errors}`)}};lT.default=pT;var mT={};Object.defineProperty(mT,"__esModule",{value:!0});const hT=AN(),vT=uN(),yT=qO,gT=lT,bT={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:o,it:a}=e;"all"===a.opts.removeAdditional&&void 0===n.additionalProperties&&gT.default.code(new hT.KeywordCxt(a,gT.default,"additionalProperties"));const i=(0,vT.allSchemaProperties)(r);for(const e of i)a.definedProperties.add(e);a.opts.unevaluated&&i.length&&!0!==a.props&&(a.props=yT.mergeEvaluated.props(t,(0,yT.toHash)(i),a.props));const s=i.filter((e=>!(0,yT.alwaysValidSchema)(a,r[e])));if(0===s.length)return;const l=t.name("valid");for(const r of s)c(r)?u(r):(t.if((0,vT.propertyInData)(t,o,r,a.opts.ownProperties)),u(r),a.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(r),e.ok(l);function c(e){return a.opts.useDefaults&&!a.compositeRule&&void 0!==r[e].default}function u(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},l)}}};mT.default=bT;var wT={};Object.defineProperty(wT,"__esModule",{value:!0});const ST=uN(),xT=WO(),$T=qO,kT=qO,_T={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:o,it:a}=e,{opts:i}=a,s=(0,ST.allSchemaProperties)(r),l=s.filter((e=>(0,$T.alwaysValidSchema)(a,r[e])));if(0===s.length||l.length===s.length&&(!a.opts.unevaluated||!0===a.props))return;const c=i.strictSchema&&!i.allowMatchingProperties&&o.properties,u=t.name("valid");!0===a.props||a.props instanceof xT.Name||(a.props=(0,kT.evaluatedPropsToName)(t,a.props));const{props:d}=a;function f(e){for(const t in c)new RegExp(e).test(t)&&(0,$T.checkStrictMode)(a,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function p(r){t.forIn("key",n,(n=>{t.if(xT._`${(0,ST.usePattern)(e,r)}.test(${n})`,(()=>{const o=l.includes(r);o||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:n,dataPropType:kT.Type.Str},u),a.opts.unevaluated&&!0!==d?t.assign(xT._`${d}[${n}]`,!0):o||a.allErrors||t.if((0,xT.not)(u),(()=>t.break()))}))}))}!function(){for(const e of s)c&&f(e),a.allErrors?p(e):(t.var(u,!0),p(e),t.if(u))}()}};wT.default=_T;var ET={};Object.defineProperty(ET,"__esModule",{value:!0});const CT=qO,PT={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,CT.alwaysValidSchema)(n,r))return void e.fail();const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};ET.default=PT;var jT={};Object.defineProperty(jT,"__esModule",{value:!0});const OT={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:uN().validateUnion,error:{message:"must match a schema in anyOf"}};jT.default=OT;var NT={};Object.defineProperty(NT,"__esModule",{value:!0});const RT=WO(),AT=qO,TT={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>RT._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:r,parentSchema:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;const a=r,i=t.let("valid",!1),s=t.let("passing",null),l=t.name("_valid");e.setParams({passing:s}),t.block((function(){a.forEach(((r,n)=>{let a;(0,AT.alwaysValidSchema)(o,r)?t.var(l,!0):a=e.subschema({keyword:"oneOf",schemaProp:n,compositeRule:!0},l),n>0&&t.if(RT._`${l} && ${i}`).assign(i,!1).assign(s,RT._`[${s}, ${n}]`).else(),t.if(l,(()=>{t.assign(i,!0),t.assign(s,n),a&&e.mergeEvaluated(a,RT.Name)}))}))})),e.result(i,(()=>e.reset()),(()=>e.error(!0)))}};NT.default=TT;var IT={};Object.defineProperty(IT,"__esModule",{value:!0});const MT=qO,FT={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const o=t.name("valid");r.forEach(((t,r)=>{if((0,MT.alwaysValidSchema)(n,t))return;const a=e.subschema({keyword:"allOf",schemaProp:r},o);e.ok(o),e.mergeEvaluated(a)}))}};IT.default=FT;var DT={};Object.defineProperty(DT,"__esModule",{value:!0});const zT=WO(),LT=qO,VT={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>zT.str`must match "${e.ifClause}" schema`,params:({params:e})=>zT._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:n}=e;void 0===r.then&&void 0===r.else&&(0,LT.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const o=BT(n,"then"),a=BT(n,"else");if(!o&&!a)return;const i=t.let("valid",!0),s=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(t)}(),e.reset(),o&&a){const r=t.let("ifClause");e.setParams({ifClause:r}),t.if(s,l("then",r),l("else",r))}else o?t.if(s,l("then")):t.if((0,zT.not)(s),l("else"));function l(r,n){return()=>{const o=e.subschema({keyword:r},s);t.assign(i,s),e.mergeValidEvaluated(o,i),n?t.assign(n,zT._`${r}`):e.setParams({ifClause:r})}}e.pass(i,(()=>e.error(!0)))}};function BT(e,t){const r=e.schema[t];return void 0!==r&&!(0,LT.alwaysValidSchema)(e,r)}DT.default=VT;var UT={};Object.defineProperty(UT,"__esModule",{value:!0});const WT=qO,qT={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,WT.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};UT.default=qT,Object.defineProperty(RA,"__esModule",{value:!0});const KT=AA,HT=DA,GT=zA,QT=HA,YT=ZA,JT=nT,XT=oT,ZT=lT,eI=mT,tI=wT,rI=ET,nI=jT,oI=NT,aI=IT,iI=DT,sI=UT;RA.default=function(e=!1){const t=[rI.default,nI.default,oI.default,aI.default,iI.default,sI.default,XT.default,ZT.default,JT.default,eI.default,tI.default];return e?t.push(HT.default,QT.default):t.push(KT.default,GT.default),t.push(YT.default),t};var lI={},cI={};Object.defineProperty(cI,"__esModule",{value:!0});const uI=WO(),dI={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>uI.str`must match format "${e}"`,params:({schemaCode:e})=>uI._`{format: ${e}}`},code(e,t){const{gen:r,data:n,$data:o,schema:a,schemaCode:i,it:s}=e,{opts:l,errSchemaPath:c,schemaEnv:u,self:d}=s;l.validateFormats&&(o?function(){const o=r.scopeValue("formats",{ref:d.formats,code:l.code.formats}),a=r.const("fDef",uI._`${o}[${i}]`),s=r.let("fType"),c=r.let("format");r.if(uI._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>r.assign(s,uI._`${a}.type || "string"`).assign(c,uI._`${a}.validate`)),(()=>r.assign(s,uI._`"string"`).assign(c,a))),e.fail$data((0,uI.or)(!1===l.strictSchema?uI.nil:uI._`${i} && !${c}`,function(){const e=u.$async?uI._`(${a}.async ? await ${c}(${n}) : ${c}(${n}))`:uI._`${c}(${n})`,r=uI._`(typeof ${c} == "function" ? ${e} : ${c}.test(${n}))`;return uI._`${c} && ${c} !== true && ${s} === ${t} && !${r}`}()))}():function(){const o=d.formats[a];if(!o)return void function(){if(!1===l.strictSchema)return void d.logger.warn(e());throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${c}"`}}();if(!0===o)return;const[i,s,f]=function(e){const t=e instanceof RegExp?(0,uI.regexpCode)(e):l.code.formats?uI._`${l.code.formats}${(0,uI.getProperty)(a)}`:void 0,n=r.scopeValue("formats",{key:a,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,uI._`${n}.validate`];return["string",e,n]}(o);i===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!u.$async)throw new Error("async format in sync schema");return uI._`await ${f}(${n})`}return"function"==typeof s?uI._`${f}(${n})`:uI._`${f}.test(${n})`}())}())}};cI.default=dI,Object.defineProperty(lI,"__esModule",{value:!0});const fI=[cI.default];lI.default=fI;var pI={};Object.defineProperty(pI,"__esModule",{value:!0}),pI.contentVocabulary=pI.metadataVocabulary=void 0,pI.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],pI.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(iR,"__esModule",{value:!0});const mI=xR,hI=RA,vI=lI,yI=pI,gI=[sR.default,mI.default,(0,hI.default)(),vI.default,yI.metadataVocabulary,yI.contentVocabulary];iR.default=gI;var bI={},wI={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,(t=e.DiscrError||(e.DiscrError={})).Tag="tag",t.Mapping="mapping"}(wI),Object.defineProperty(bI,"__esModule",{value:!0});const SI=WO(),xI=wI,$I=LN,kI=qO,_I={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===xI.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>SI._`{error: ${e}, tag: ${r}, tagValue: ${t}}`},code(e){const{gen:t,data:r,schema:n,parentSchema:o,it:a}=e,{oneOf:i}=o;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=n.propertyName;if("string"!=typeof s)throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const l=t.let("valid",!1),c=t.const("tag",SI._`${r}${(0,SI.getProperty)(s)}`);function u(r){const n=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:r},n);return e.mergeEvaluated(o,SI.Name),n}t.if(SI._`typeof ${c} == "string"`,(()=>function(){const r=function(){var e;const t={},r=l(o);let n=!0;for(let t=0;t<i.length;t++){let o=i[t];(null==o?void 0:o.$ref)&&!(0,kI.schemaHasRulesButRef)(o,a.self.RULES)&&(o=$I.resolveRef.call(a.self,a.schemaEnv.root,a.baseId,null==o?void 0:o.$ref),o instanceof $I.SchemaEnv&&(o=o.schema));const u=null===(e=null==o?void 0:o.properties)||void 0===e?void 0:e[s];if("object"!=typeof u)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${s}"`);n=n&&(r||l(o)),c(u,t)}if(!n)throw new Error(`discriminator: "${s}" must be required`);return t;function l({required:e}){return Array.isArray(e)&&e.includes(s)}function c(e,t){if(e.const)u(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${s}" must have "const" or "enum"`);for(const r of e.enum)u(r,t)}}function u(e,r){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${s}" values must be unique strings`);t[e]=r}}();t.if(!1);for(const e in r)t.elseIf(SI._`${c} === ${e}`),t.assign(l,u(r[e]));t.else(),e.error(!1,{discrError:xI.DiscrError.Mapping,tag:c,tagName:s}),t.endIf()}()),(()=>e.error(!1,{discrError:xI.DiscrError.Tag,tag:c,tagName:s}))),e.ok(l)}};bI.default=_I;var EI={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=AO,n=iR,o=bI,a=EI,i=["/properties"],s="http://json-schema.org/draft-07/schema";class l extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(e,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var c=AN();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=WO();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var d=MN();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=zN();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})}(RO,RO.exports);var CI=r(RO.exports),PI={exports:{}},jI={};!function(e){function t(e,t){return{validate:e,compare:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0,e.fullFormats={date:t(o,a),time:t(s,l),"date-time":t((function(e){const t=e.split(c);return 2===t.length&&o(t[0])&&s(t[1],!0)}),u),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:function(e){return d.test(e)&&f.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:function(e){if(y.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}},uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:function(e){return p.lastIndex=0,p.test(e)},int32:{type:"number",validate:function(e){return Number.isInteger(e)&&e<=h&&e>=m}},int64:{type:"number",validate:function(e){return Number.isInteger(e)}},float:{type:"number",validate:v},double:{type:"number",validate:v},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,a),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,l),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,u),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(e){const t=r.exec(e);if(!t)return!1;const o=+t[1],a=+t[2],i=+t[3];return a>=1&&a<=12&&i>=1&&i<=(2===a&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(o)?29:n[a])}function a(e,t){if(e&&t)return e>t?1:e<t?-1:0}const i=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function s(e,t){const r=i.exec(e);if(!r)return!1;const n=+r[1],o=+r[2],a=+r[3],s=r[5];return(n<=23&&o<=59&&a<=59||23===n&&59===o&&60===a)&&(!t||""!==s)}function l(e,t){if(!e||!t)return;const r=i.exec(e),n=i.exec(t);return r&&n?(e=r[1]+r[2]+r[3]+(r[4]||""))>(t=n[1]+n[2]+n[3]+(n[4]||""))?1:e<t?-1:0:void 0}const c=/t|\s/i;function u(e,t){if(!e||!t)return;const[r,n]=e.split(c),[o,i]=t.split(c),s=a(r,o);return void 0!==s?s||l(n,i):void 0}const d=/\/|:/,f=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;const p=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;const m=-(2**31),h=2**31-1;function v(){return!0}const y=/[^\\]\\Z/}(jI);var OI={},NI={exports:{}},RI={},AI={},TI={},II={},MI={},FI={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(t){if(super(),!e.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function o(e,...t){const r=[e[0]];let o=0;for(;o<t.length;)s(r,t[o]),r.push(e[++o]);return new n(r)}e._Code=n,e.nil=new n(""),e._=o;const a=new n("+");function i(e,...t){const r=[c(e[0])];let o=0;for(;o<t.length;)r.push(a),s(r,t[o]),r.push(a,c(e[++o]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===a){const r=l(e[t-1],e[t+1]);if(void 0!==r){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}(r),new n(r)}function s(e,t){t instanceof n?e.push(...t._items):t instanceof r?e.push(t):e.push(function(e){return"number"==typeof e||"boolean"==typeof e||null===e?e:c(Array.isArray(e)?e.join(","):e)}(t))}function l(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof r||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof r?void 0:`"${e}${t.slice(1)}`}function c(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.str=i,e.addCodeArg=s,e.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:i`${e}${t}`},e.stringify=function(e){return new n(c(e))},e.safeStringify=c,e.getProperty=function(t){return"string"==typeof t&&e.IDENTIFIER.test(t)?new n(`.${t}`):o`[${t}]`},e.getEsmExportName=function(t){if("string"==typeof t&&e.IDENTIFIER.test(t))return new n(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)},e.regexpCode=function(e){return new n(e.toString())}}(FI);var DI={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=FI;class r extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var n;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(n=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class o{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,r;if((null===(r=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===r?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}e.Scope=o;class a extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e,this.scopePath=t._`.${new t.Name(r)}[${n}]`}}e.ValueScopeName=a;const i=t._`\n`;e.ValueScope=class extends o{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?i:t.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const n=this.toName(e),{prefix:o}=n,a=null!==(r=t.key)&&void 0!==r?r:t.ref;let i=this._values[o];if(i){const e=i.get(a);if(e)return e}else i=this._values[o]=new Map;i.set(a,n);const s=this._scope[o]||(this._scope[o]=[]),l=s.length;return s[l]=t.ref,n.setValue(t,{property:o,itemIndex:l}),n}getValue(e,t){const r=this._values[e];if(r)return r.get(t)}scopeRefs(e,r=this._values){return this._reduceValues(r,(r=>{if(void 0===r.scopePath)throw new Error(`CodeGen: name "${r}" has no value`);return t._`${e}${r.scopePath}`}))}scopeCode(e=this._values,t,r){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,r)}_reduceValues(o,a,i={},s){let l=t.nil;for(const c in o){const u=o[c];if(!u)continue;const d=i[c]=i[c]||new Map;u.forEach((o=>{if(d.has(o))return;d.set(o,n.Started);let i=a(o);if(i){const r=this.opts.es5?e.varKinds.var:e.varKinds.const;l=t._`${l}${r} ${o} = ${i};${this.opts._n}`}else{if(!(i=null==s?void 0:s(o)))throw new r(o);l=t._`${l}${i}${this.opts._n}`}d.set(o,n.Completed)}))}return l}}}(DI),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=FI,r=DI;var n=FI;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var o=DI;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(e,t){return this}}class i extends a{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){const n=e?r.varKinds.var:this.varKind,o=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=j(this.rhs,e,t)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof t.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=j(this.rhs,e,r),this}get names(){return P(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}}class l extends s{constructor(e,t,r,n){super(e,r,n),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class c extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class u extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class d extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class f extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=j(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class p extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,r)=>t+r.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:r}=this;let n=r.length;for(;n--;){const o=r[n];o.optimizeNames(e,t)||(O(e,o.names),r.splice(n,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>C(e,t.names)),{})}}class m extends p{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class h extends p{}class v extends m{}v.kind="else";class y extends m{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof y?t:t.nodes:this.nodes.length?this:new y(N(e),t instanceof y?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=j(this.condition,e,t),this}get names(){const e=super.names;return P(e,this.condition),this.else&&C(e,this.else.names),e}}y.kind="if";class g extends m{}g.kind="for";class b extends g{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=j(this.iteration,e,t),this}get names(){return C(super.names,this.iteration.names)}}class w extends g{constructor(e,t,r,n){super(),this.varKind=e,this.name=t,this.from=r,this.to=n}render(e){const t=e.es5?r.varKinds.var:this.varKind,{name:n,from:o,to:a}=this;return`for(${t} ${n}=${o}; ${n}<${a}; ${n}++)`+super.render(e)}get names(){const e=P(super.names,this.from);return P(e,this.to)}}class S extends g{constructor(e,t,r,n){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=j(this.iterable,e,t),this}get names(){return C(super.names,this.iterable.names)}}class x extends m{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}x.kind="func";class $ extends p{render(e){return"return "+super.render(e)}}$.kind="return";class k extends m{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,n;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(n=this.finally)||void 0===n||n.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&C(e,this.catch.names),this.finally&&C(e,this.finally.names),e}}class _ extends m{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}_.kind="catch";class E extends m{render(e){return"finally"+super.render(e)}}E.kind="finally";function C(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function P(e,r){return r instanceof t._CodeOrName?C(e,r.names):e}function j(e,r,n){return e instanceof t.Name?o(e):function(e){return e instanceof t._Code&&e._items.some((e=>e instanceof t.Name&&1===r[e.str]&&void 0!==n[e.str]))}(e)?new t._Code(e._items.reduce(((e,r)=>(r instanceof t.Name&&(r=o(r)),r instanceof t._Code?e.push(...r._items):e.push(r),e)),[])):e;function o(e){const t=n[e.str];return void 0===t||1!==r[e.str]?e:(delete r[e.str],t)}}function O(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function N(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:t._`!${I(e)}`}e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new r.Scope({parent:e}),this._nodes=[new h]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){const o=this._scope.toName(t);return void 0!==r&&n&&(this._constants[o.str]=r),this._leafNode(new i(e,o,r)),o}const(e,t,n){return this._def(r.varKinds.const,e,t,n)}let(e,t,n){return this._def(r.varKinds.let,e,t,n)}var(e,t,n){return this._def(r.varKinds.var,e,t,n)}assign(e,t,r){return this._leafNode(new s(e,t,r))}add(t,r){return this._leafNode(new l(t,e.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==t.nil&&this._leafNode(new f(e)),this}object(...e){const r=["{"];for(const[n,o]of e)r.length>1&&r.push(","),r.push(n),(n!==o||this.opts.es5)&&(r.push(":"),(0,t.addCodeArg)(r,o));return r.push("}"),new t._Code(r)}if(e,t,r){if(this._blockNode(new y(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new y(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(y,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new b(e),t)}forRange(e,t,n,o,a=(this.opts.es5?r.varKinds.var:r.varKinds.let)){const i=this._scope.toName(e);return this._for(new w(a,i,t,n),(()=>o(i)))}forOf(e,n,o,a=r.varKinds.const){const i=this._scope.toName(e);if(this.opts.es5){const e=n instanceof t.Name?n:this.var("_arr",n);return this.forRange("_i",0,t._`${e}.length`,(r=>{this.var(i,t._`${e}[${r}]`),o(i)}))}return this._for(new S("of",a,i,n),(()=>o(i)))}forIn(e,n,o,a=(this.opts.es5?r.varKinds.var:r.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,t._`Object.keys(${n})`,o);const i=this._scope.toName(e);return this._for(new S("in",a,i,n),(()=>o(i)))}endFor(){return this._endBlockNode(g)}label(e){return this._leafNode(new c(e))}break(e){return this._leafNode(new u(e))}return(e){const t=new $;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode($)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new k;if(this._blockNode(n),this.code(e),t){const e=this.name("e");this._currNode=n.catch=new _(e),t(e)}return r&&(this._currNode=n.finally=new E,this.code(r)),this._endBlockNode(_,E)}throw(e){return this._leafNode(new d(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,r=t.nil,n,o){return this._blockNode(new x(e,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(x)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof y))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},e.not=N;const R=T(e.operators.AND);e.and=function(...e){return e.reduce(R)};const A=T(e.operators.OR);function T(e){return(r,n)=>r===t.nil?n:n===t.nil?r:t._`${I(r)} ${e} ${I(n)}`}function I(e){return e instanceof t.Name?e:t._`(${e})`}e.or=function(...e){return e.reduce(A)}}(MI);var zI={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=MI,r=FI;function n(e,t=e.schema){const{opts:r,self:n}=e;if(!r.strictSchema)return;if("boolean"==typeof t)return;const o=n.RULES.keywords;for(const r in t)o[r]||f(e,`unknown keyword: "${r}"`)}function o(e,t){if("boolean"==typeof e)return!e;for(const r in e)if(t[r])return!0;return!1}function a(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function i(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function s({mergeNames:e,mergeToName:r,mergeValues:n,resultToName:o}){return(a,i,s,l)=>{const c=void 0===s?i:s instanceof t.Name?(i instanceof t.Name?e(a,i,s):r(a,i,s),s):i instanceof t.Name?(r(a,s,i),i):n(i,s);return l!==t.Name||c instanceof t.Name?c:o(a,c)}}function l(e,r){if(!0===r)return e.var("props",!0);const n=e.var("props",t._`{}`);return void 0!==r&&c(e,n,r),n}function c(e,r,n){Object.keys(n).forEach((n=>e.assign(t._`${r}${(0,t.getProperty)(n)}`,!0)))}e.toHash=function(e){const t={};for(const r of e)t[r]=!0;return t},e.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(n(e,t),!o(t,e.self.RULES.all))},e.checkUnknownRules=n,e.schemaHasRules=o,e.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const r in e)if("$ref"!==r&&t.all[r])return!0;return!1},e.schemaRefOrVal=function({topSchemaRef:e,schemaPath:r},n,o,a){if(!a){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return t._`${n}`}return t._`${e}${r}${(0,t.getProperty)(o)}`},e.unescapeFragment=function(e){return i(decodeURIComponent(e))},e.escapeFragment=function(e){return encodeURIComponent(a(e))},e.escapeJsonPointer=a,e.unescapeJsonPointer=i,e.eachItem=function(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)},e.mergeEvaluated={props:s({mergeNames:(e,r,n)=>e.if(t._`${n} !== true && ${r} !== undefined`,(()=>{e.if(t._`${r} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,t._`${n} || {}`).code(t._`Object.assign(${n}, ${r})`)))})),mergeToName:(e,r,n)=>e.if(t._`${n} !== true`,(()=>{!0===r?e.assign(n,!0):(e.assign(n,t._`${n} || {}`),c(e,n,r))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:l}),items:s({mergeNames:(e,r,n)=>e.if(t._`${n} !== true && ${r} !== undefined`,(()=>e.assign(n,t._`${r} === true ? true : ${n} > ${r} ? ${n} : ${r}`))),mergeToName:(e,r,n)=>e.if(t._`${n} !== true`,(()=>e.assign(n,!0===r||t._`${n} > ${r} ? ${n} : ${r}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},e.evaluatedPropsToName=l,e.setEvaluated=c;const u={};var d;function f(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw new Error(t);e.self.logger.warn(t)}}e.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:u[t.code]||(u[t.code]=new r._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(d=e.Type||(e.Type={})),e.getErrorPath=function(e,r,n){if(e instanceof t.Name){const o=r===d.Num;return n?o?t._`"[" + ${e} + "]"`:t._`"['" + ${e} + "']"`:o?t._`"/" + ${e}`:t._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,t.getProperty)(e).toString():"/"+a(e)},e.checkStrictMode=f}(zI);var LI,VI,BI,UI={};function WI(){if(LI)return UI;LI=1,Object.defineProperty(UI,"__esModule",{value:!0});const e=MI,t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return UI.default=t,UI}function qI(){return VI||(VI=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=MI,r=zI,n=WI();function o(e,r){const o=e.const("err",r);e.if(t._`${n.default.vErrors} === null`,(()=>e.assign(n.default.vErrors,t._`[${o}]`)),t._`${n.default.vErrors}.push(${o})`),e.code(t._`${n.default.errors}++`)}function a(e,r){const{gen:n,validateName:o,schemaEnv:a}=e;a.$async?n.throw(t._`new ${e.ValidationError}(${r})`):(n.assign(t._`${o}.errors`,r),n.return(!1))}e.keywordError={message:({keyword:e})=>t.str`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:r})=>r?t.str`"${e}" keyword must be ${r} ($data)`:t.str`"${e}" keyword is invalid ($data)`},e.reportError=function(r,n=e.keywordError,i,l){const{it:c}=r,{gen:u,compositeRule:d,allErrors:f}=c,p=s(r,n,i);(null!=l?l:d||f)?o(u,p):a(c,t._`[${p}]`)},e.reportExtraError=function(t,r=e.keywordError,i){const{it:l}=t,{gen:c,compositeRule:u,allErrors:d}=l;o(c,s(t,r,i)),u||d||a(l,n.default.vErrors)},e.resetErrorsCount=function(e,r){e.assign(n.default.errors,r),e.if(t._`${n.default.vErrors} !== null`,(()=>e.if(r,(()=>e.assign(t._`${n.default.vErrors}.length`,r)),(()=>e.assign(n.default.vErrors,null)))))},e.extendErrors=function({gen:e,keyword:r,schemaValue:o,data:a,errsCount:i,it:s}){if(void 0===i)throw new Error("ajv implementation error");const l=e.name("err");e.forRange("i",i,n.default.errors,(i=>{e.const(l,t._`${n.default.vErrors}[${i}]`),e.if(t._`${l}.instancePath === undefined`,(()=>e.assign(t._`${l}.instancePath`,(0,t.strConcat)(n.default.instancePath,s.errorPath)))),e.assign(t._`${l}.schemaPath`,t.str`${s.errSchemaPath}/${r}`),s.opts.verbose&&(e.assign(t._`${l}.schema`,o),e.assign(t._`${l}.data`,a))}))};const i={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function s(e,r,o){const{createErrors:a}=e.it;return!1===a?t._`{}`:function(e,r,o={}){const{gen:a,it:s}=e,u=[l(s,o),c(e,o)];return function(e,{params:r,message:o},a){const{keyword:s,data:l,schemaValue:c,it:u}=e,{opts:d,propertyName:f,topSchemaRef:p,schemaPath:m}=u;a.push([i.keyword,s],[i.params,"function"==typeof r?r(e):r||t._`{}`]),d.messages&&a.push([i.message,"function"==typeof o?o(e):o]);d.verbose&&a.push([i.schema,c],[i.parentSchema,t._`${p}${m}`],[n.default.data,l]);f&&a.push([i.propertyName,f])}(e,r,u),a.object(...u)}(e,r,o)}function l({errorPath:e},{instancePath:o}){const a=o?t.str`${e}${(0,r.getErrorPath)(o,r.Type.Str)}`:e;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,a)]}function c({keyword:e,it:{errSchemaPath:n}},{schemaPath:o,parentSchema:a}){let s=a?n:t.str`${n}/${e}`;return o&&(s=t.str`${s}${(0,r.getErrorPath)(o,r.Type.Str)}`),[i.schemaPath,s]}}(II)),II}var KI={},HI={};Object.defineProperty(HI,"__esModule",{value:!0}),HI.getRules=HI.isJSONType=void 0;const GI=new Set(["string","number","integer","boolean","null","object","array"]);HI.isJSONType=function(e){return"string"==typeof e&&GI.has(e)},HI.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}};var QI,YI={};function JI(){if(QI)return YI;function e(e,r){return r.rules.some((r=>t(e,r)))}function t(e,t){var r;return void 0!==e[t.keyword]||(null===(r=t.definition.implements)||void 0===r?void 0:r.some((t=>void 0!==e[t])))}return QI=1,Object.defineProperty(YI,"__esModule",{value:!0}),YI.shouldUseRule=YI.shouldUseGroup=YI.schemaHasRulesForType=void 0,YI.schemaHasRulesForType=function({schema:t,self:r},n){const o=r.RULES.types[n];return o&&!0!==o&&e(t,o)},YI.shouldUseGroup=e,YI.shouldUseRule=t,YI}!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=HI,r=JI(),n=qI(),o=MI,a=zI;var i;function s(e){const r=Array.isArray(e)?e:e?[e]:[];if(r.every(t.isJSONType))return r;throw new Error("type must be JSONType or JSONType[]: "+r.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(i=e.DataType||(e.DataType={})),e.getSchemaTypes=function(e){const t=s(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},e.getJSONTypes=s,e.coerceAndCheckDataType=function(e,t){const{gen:n,data:a,opts:s}=e,c=function(e,t){return t?e.filter((e=>l.has(e)||"array"===t&&"array"===e)):[]}(t,s.coerceTypes),d=t.length>0&&!(0===c.length&&1===t.length&&(0,r.schemaHasRulesForType)(e,t[0]));if(d){const r=u(t,a,s.strictNumbers,i.Wrong);n.if(r,(()=>{c.length?function(e,t,r){const{gen:n,data:a,opts:i}=e,s=n.let("dataType",o._`typeof ${a}`),c=n.let("coerced",o._`undefined`);"array"===i.coerceTypes&&n.if(o._`${s} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,(()=>n.assign(a,o._`${a}[0]`).assign(s,o._`typeof ${a}`).if(u(t,a,i.strictNumbers),(()=>n.assign(c,a)))));n.if(o._`${c} !== undefined`);for(const e of r)(l.has(e)||"array"===e&&"array"===i.coerceTypes)&&d(e);function d(e){switch(e){case"string":return void n.elseIf(o._`${s} == "number" || ${s} == "boolean"`).assign(c,o._`"" + ${a}`).elseIf(o._`${a} === null`).assign(c,o._`""`);case"number":return void n.elseIf(o._`${s} == "boolean" || ${a} === null
26
+ deps: ${n}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(e){const[t,r]=function({schema:e}){const t={},r={};for(const n in e){if("__proto__"===n)continue;(Array.isArray(e[n])?t:r)[n]=e[n]}return[t,r]}(e);a(e,t),i(e,r)}};function a(e,r=e.schema){const{gen:o,data:a,it:i}=e;if(0===Object.keys(r).length)return;const s=o.let("missing");for(const l in r){const c=r[l];if(0===c.length)continue;const u=(0,n.propertyInData)(o,a,l,i.opts.ownProperties);e.setParams({property:l,depsCount:c.length,deps:c.join(", ")}),i.allErrors?o.if(u,(()=>{for(const t of c)(0,n.checkReportMissingProp)(e,t)})):(o.if(t._`${u} && (${(0,n.checkMissingProp)(e,c,s)})`),(0,n.reportMissingProp)(e,s),o.else())}}function i(e,t=e.schema){const{gen:o,data:a,keyword:i,it:s}=e,l=o.name("valid");for(const c in t)(0,r.alwaysValidSchema)(s,t[c])||(o.if((0,n.propertyInData)(o,a,c,s.opts.ownProperties),(()=>{const t=e.subschema({keyword:i,schemaProp:c},l);e.mergeValidEvaluated(t,l)}),(()=>o.var(l,!0))),e.ok(l))}e.validatePropertyDeps=a,e.validateSchemaDeps=i,e.default=o}(bT);var wT={};Object.defineProperty(wT,"__esModule",{value:!0});const ST=iO(),xT=sO,$T={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>ST._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:n,it:o}=e;if((0,xT.alwaysValidSchema)(o,r))return;const a=t.name("valid");t.forIn("key",n,(r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},a),t.if((0,ST.not)(a),(()=>{e.error(!0),o.allErrors||t.break()}))})),e.ok(a)}};wT.default=$T;var kT={};Object.defineProperty(kT,"__esModule",{value:!0});const _T=EO(),ET=iO(),CT=fO(),PT=sO,jT={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>ET._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:r,parentSchema:n,data:o,errsCount:a,it:i}=e;if(!a)throw new Error("ajv implementation error");const{allErrors:s,opts:l}=i;if(i.props=!0,"all"!==l.removeAdditional&&(0,PT.alwaysValidSchema)(i,r))return;const c=(0,_T.allSchemaProperties)(n.properties),u=(0,_T.allSchemaProperties)(n.patternProperties);function d(e){t.code(ET._`delete ${o}[${e}]`)}function f(n){if("all"===l.removeAdditional||l.removeAdditional&&!1===r)d(n);else{if(!1===r)return e.setParams({additionalProperty:n}),e.error(),void(s||t.break());if("object"==typeof r&&!(0,PT.alwaysValidSchema)(i,r)){const r=t.name("valid");"failing"===l.removeAdditional?(p(n,r,!1),t.if((0,ET.not)(r),(()=>{e.reset(),d(n)}))):(p(n,r),s||t.if((0,ET.not)(r),(()=>t.break())))}}}function p(t,r,n){const o={keyword:"additionalProperties",dataProp:t,dataPropType:PT.Type.Str};!1===n&&Object.assign(o,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(o,r)}t.forIn("key",o,(r=>{c.length||u.length?t.if(function(r){let o;if(c.length>8){const e=(0,PT.schemaRefOrVal)(i,n.properties,"properties");o=(0,_T.isOwnProperty)(t,e,r)}else o=c.length?(0,ET.or)(...c.map((e=>ET._`${r} === ${e}`))):ET.nil;return u.length&&(o=(0,ET.or)(o,...u.map((t=>ET._`${(0,_T.usePattern)(e,t)}.test(${r})`)))),(0,ET.not)(o)}(r),(()=>f(r))):f(r)})),e.ok(ET._`${a} === ${CT.default.errors}`)}};kT.default=jT;var OT={};Object.defineProperty(OT,"__esModule",{value:!0});const NT=QO(),RT=EO(),TT=sO,AT=kT,IT={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:o,it:a}=e;"all"===a.opts.removeAdditional&&void 0===n.additionalProperties&&AT.default.code(new NT.KeywordCxt(a,AT.default,"additionalProperties"));const i=(0,RT.allSchemaProperties)(r);for(const e of i)a.definedProperties.add(e);a.opts.unevaluated&&i.length&&!0!==a.props&&(a.props=TT.mergeEvaluated.props(t,(0,TT.toHash)(i),a.props));const s=i.filter((e=>!(0,TT.alwaysValidSchema)(a,r[e])));if(0===s.length)return;const l=t.name("valid");for(const r of s)c(r)?u(r):(t.if((0,RT.propertyInData)(t,o,r,a.opts.ownProperties)),u(r),a.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(r),e.ok(l);function c(e){return a.opts.useDefaults&&!a.compositeRule&&void 0!==r[e].default}function u(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},l)}}};OT.default=IT;var MT={};Object.defineProperty(MT,"__esModule",{value:!0});const FT=EO(),DT=iO(),zT=sO,LT=sO,VT={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:o,it:a}=e,{opts:i}=a,s=(0,FT.allSchemaProperties)(r),l=s.filter((e=>(0,zT.alwaysValidSchema)(a,r[e])));if(0===s.length||l.length===s.length&&(!a.opts.unevaluated||!0===a.props))return;const c=i.strictSchema&&!i.allowMatchingProperties&&o.properties,u=t.name("valid");!0===a.props||a.props instanceof DT.Name||(a.props=(0,LT.evaluatedPropsToName)(t,a.props));const{props:d}=a;function f(e){for(const t in c)new RegExp(e).test(t)&&(0,zT.checkStrictMode)(a,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function p(r){t.forIn("key",n,(n=>{t.if(DT._`${(0,FT.usePattern)(e,r)}.test(${n})`,(()=>{const o=l.includes(r);o||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:n,dataPropType:LT.Type.Str},u),a.opts.unevaluated&&!0!==d?t.assign(DT._`${d}[${n}]`,!0):o||a.allErrors||t.if((0,DT.not)(u),(()=>t.break()))}))}))}!function(){for(const e of s)c&&f(e),a.allErrors?p(e):(t.var(u,!0),p(e),t.if(u))}()}};MT.default=VT;var BT={};Object.defineProperty(BT,"__esModule",{value:!0});const UT=sO,WT={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,UT.alwaysValidSchema)(n,r))return void e.fail();const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};BT.default=WT;var qT={};Object.defineProperty(qT,"__esModule",{value:!0});const KT={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:EO().validateUnion,error:{message:"must match a schema in anyOf"}};qT.default=KT;var HT={};Object.defineProperty(HT,"__esModule",{value:!0});const GT=iO(),QT=sO,YT={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>GT._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:r,parentSchema:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;const a=r,i=t.let("valid",!1),s=t.let("passing",null),l=t.name("_valid");e.setParams({passing:s}),t.block((function(){a.forEach(((r,n)=>{let a;(0,QT.alwaysValidSchema)(o,r)?t.var(l,!0):a=e.subschema({keyword:"oneOf",schemaProp:n,compositeRule:!0},l),n>0&&t.if(GT._`${l} && ${i}`).assign(i,!1).assign(s,GT._`[${s}, ${n}]`).else(),t.if(l,(()=>{t.assign(i,!0),t.assign(s,n),a&&e.mergeEvaluated(a,GT.Name)}))}))})),e.result(i,(()=>e.reset()),(()=>e.error(!0)))}};HT.default=YT;var JT={};Object.defineProperty(JT,"__esModule",{value:!0});const XT=sO,ZT={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const o=t.name("valid");r.forEach(((t,r)=>{if((0,XT.alwaysValidSchema)(n,t))return;const a=e.subschema({keyword:"allOf",schemaProp:r},o);e.ok(o),e.mergeEvaluated(a)}))}};JT.default=ZT;var eA={};Object.defineProperty(eA,"__esModule",{value:!0});const tA=iO(),rA=sO,nA={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>tA.str`must match "${e.ifClause}" schema`,params:({params:e})=>tA._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:n}=e;void 0===r.then&&void 0===r.else&&(0,rA.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const o=oA(n,"then"),a=oA(n,"else");if(!o&&!a)return;const i=t.let("valid",!0),s=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(t)}(),e.reset(),o&&a){const r=t.let("ifClause");e.setParams({ifClause:r}),t.if(s,l("then",r),l("else",r))}else o?t.if(s,l("then")):t.if((0,tA.not)(s),l("else"));function l(r,n){return()=>{const o=e.subschema({keyword:r},s);t.assign(i,s),e.mergeValidEvaluated(o,i),n?t.assign(n,tA._`${r}`):e.setParams({ifClause:r})}}e.pass(i,(()=>e.error(!0)))}};function oA(e,t){const r=e.schema[t];return void 0!==r&&!(0,rA.alwaysValidSchema)(e,r)}eA.default=nA;var aA={};Object.defineProperty(aA,"__esModule",{value:!0});const iA=sO,sA={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,iA.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};aA.default=sA,Object.defineProperty(GR,"__esModule",{value:!0});const lA=QR,cA=eT,uA=tT,dA=cT,fA=hT,pA=bT,mA=wT,hA=kT,vA=OT,yA=MT,gA=BT,bA=qT,wA=HT,SA=JT,xA=eA,$A=aA;GR.default=function(e=!1){const t=[gA.default,bA.default,wA.default,SA.default,xA.default,$A.default,mA.default,hA.default,pA.default,vA.default,yA.default];return e?t.push(cA.default,dA.default):t.push(lA.default,uA.default),t.push(fA.default),t};var kA={},_A={};Object.defineProperty(_A,"__esModule",{value:!0});const EA=iO(),CA={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>EA.str`must match format "${e}"`,params:({schemaCode:e})=>EA._`{format: ${e}}`},code(e,t){const{gen:r,data:n,$data:o,schema:a,schemaCode:i,it:s}=e,{opts:l,errSchemaPath:c,schemaEnv:u,self:d}=s;l.validateFormats&&(o?function(){const o=r.scopeValue("formats",{ref:d.formats,code:l.code.formats}),a=r.const("fDef",EA._`${o}[${i}]`),s=r.let("fType"),c=r.let("format");r.if(EA._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>r.assign(s,EA._`${a}.type || "string"`).assign(c,EA._`${a}.validate`)),(()=>r.assign(s,EA._`"string"`).assign(c,a))),e.fail$data((0,EA.or)(!1===l.strictSchema?EA.nil:EA._`${i} && !${c}`,function(){const e=u.$async?EA._`(${a}.async ? await ${c}(${n}) : ${c}(${n}))`:EA._`${c}(${n})`,r=EA._`(typeof ${c} == "function" ? ${e} : ${c}.test(${n}))`;return EA._`${c} && ${c} !== true && ${s} === ${t} && !${r}`}()))}():function(){const o=d.formats[a];if(!o)return void function(){if(!1===l.strictSchema)return void d.logger.warn(e());throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${c}"`}}();if(!0===o)return;const[i,s,f]=function(e){const t=e instanceof RegExp?(0,EA.regexpCode)(e):l.code.formats?EA._`${l.code.formats}${(0,EA.getProperty)(a)}`:void 0,n=r.scopeValue("formats",{key:a,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,EA._`${n}.validate`];return["string",e,n]}(o);i===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!u.$async)throw new Error("async format in sync schema");return EA._`await ${f}(${n})`}return"function"==typeof s?EA._`${f}(${n})`:EA._`${f}.test(${n})`}())}())}};_A.default=CA,Object.defineProperty(kA,"__esModule",{value:!0});const PA=[_A.default];kA.default=PA;var jA={};Object.defineProperty(jA,"__esModule",{value:!0}),jA.contentVocabulary=jA.metadataVocabulary=void 0,jA.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],jA.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(xN,"__esModule",{value:!0});const OA=DN,NA=GR,RA=kA,TA=jA,AA=[$N.default,OA.default,(0,NA.default)(),RA.default,TA.metadataVocabulary,TA.contentVocabulary];xN.default=AA;var IA={},MA={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,(t=e.DiscrError||(e.DiscrError={})).Tag="tag",t.Mapping="mapping"}(MA),Object.defineProperty(IA,"__esModule",{value:!0});const FA=iO(),DA=MA,zA=rN,LA=sO,VA={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===DA.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>FA._`{error: ${e}, tag: ${r}, tagValue: ${t}}`},code(e){const{gen:t,data:r,schema:n,parentSchema:o,it:a}=e,{oneOf:i}=o;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=n.propertyName;if("string"!=typeof s)throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const l=t.let("valid",!1),c=t.const("tag",FA._`${r}${(0,FA.getProperty)(s)}`);function u(r){const n=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:r},n);return e.mergeEvaluated(o,FA.Name),n}t.if(FA._`typeof ${c} == "string"`,(()=>function(){const r=function(){var e;const t={},r=l(o);let n=!0;for(let t=0;t<i.length;t++){let o=i[t];(null==o?void 0:o.$ref)&&!(0,LA.schemaHasRulesButRef)(o,a.self.RULES)&&(o=zA.resolveRef.call(a.self,a.schemaEnv.root,a.baseId,null==o?void 0:o.$ref),o instanceof zA.SchemaEnv&&(o=o.schema));const u=null===(e=null==o?void 0:o.properties)||void 0===e?void 0:e[s];if("object"!=typeof u)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${s}"`);n=n&&(r||l(o)),c(u,t)}if(!n)throw new Error(`discriminator: "${s}" must be required`);return t;function l({required:e}){return Array.isArray(e)&&e.includes(s)}function c(e,t){if(e.const)u(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${s}" must have "const" or "enum"`);for(const r of e.enum)u(r,t)}}function u(e,r){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${s}" values must be unique strings`);t[e]=r}}();t.if(!1);for(const e in r)t.elseIf(FA._`${c} === ${e}`),t.assign(l,u(r[e]));t.else(),e.error(!1,{discrError:DA.DiscrError.Mapping,tag:c,tagName:s}),t.endIf()}()),(()=>e.error(!1,{discrError:DA.DiscrError.Tag,tag:c,tagName:s}))),e.ok(l)}};IA.default=VA;var BA={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=Qj,n=xN,o=IA,a=BA,i=["/properties"],s="http://json-schema.org/draft-07/schema";class l extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(e,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var c=QO();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=iO();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var d=XO();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=tN();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})}(Gj,Gj.exports);var UA=r(Gj.exports),WA={exports:{}},qA={};!function(e){function t(e,t){return{validate:e,compare:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0,e.fullFormats={date:t(o,a),time:t(s,l),"date-time":t((function(e){const t=e.split(c);return 2===t.length&&o(t[0])&&s(t[1],!0)}),u),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:function(e){return d.test(e)&&f.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:function(e){if(y.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}},uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:function(e){return p.lastIndex=0,p.test(e)},int32:{type:"number",validate:function(e){return Number.isInteger(e)&&e<=h&&e>=m}},int64:{type:"number",validate:function(e){return Number.isInteger(e)}},float:{type:"number",validate:v},double:{type:"number",validate:v},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,a),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,l),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,u),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(e){const t=r.exec(e);if(!t)return!1;const o=+t[1],a=+t[2],i=+t[3];return a>=1&&a<=12&&i>=1&&i<=(2===a&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(o)?29:n[a])}function a(e,t){if(e&&t)return e>t?1:e<t?-1:0}const i=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function s(e,t){const r=i.exec(e);if(!r)return!1;const n=+r[1],o=+r[2],a=+r[3],s=r[5];return(n<=23&&o<=59&&a<=59||23===n&&59===o&&60===a)&&(!t||""!==s)}function l(e,t){if(!e||!t)return;const r=i.exec(e),n=i.exec(t);return r&&n?(e=r[1]+r[2]+r[3]+(r[4]||""))>(t=n[1]+n[2]+n[3]+(n[4]||""))?1:e<t?-1:0:void 0}const c=/t|\s/i;function u(e,t){if(!e||!t)return;const[r,n]=e.split(c),[o,i]=t.split(c),s=a(r,o);return void 0!==s?s||l(n,i):void 0}const d=/\/|:/,f=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;const p=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;const m=-(2**31),h=2**31-1;function v(){return!0}const y=/[^\\]\\Z/}(qA);var KA={},HA={exports:{}},GA={},QA={},YA={},JA={},XA={},ZA={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(t){if(super(),!e.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function o(e,...t){const r=[e[0]];let o=0;for(;o<t.length;)s(r,t[o]),r.push(e[++o]);return new n(r)}e._Code=n,e.nil=new n(""),e._=o;const a=new n("+");function i(e,...t){const r=[c(e[0])];let o=0;for(;o<t.length;)r.push(a),s(r,t[o]),r.push(a,c(e[++o]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===a){const r=l(e[t-1],e[t+1]);if(void 0!==r){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}(r),new n(r)}function s(e,t){t instanceof n?e.push(...t._items):t instanceof r?e.push(t):e.push(function(e){return"number"==typeof e||"boolean"==typeof e||null===e?e:c(Array.isArray(e)?e.join(","):e)}(t))}function l(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof r||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof r?void 0:`"${e}${t.slice(1)}`}function c(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.str=i,e.addCodeArg=s,e.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:i`${e}${t}`},e.stringify=function(e){return new n(c(e))},e.safeStringify=c,e.getProperty=function(t){return"string"==typeof t&&e.IDENTIFIER.test(t)?new n(`.${t}`):o`[${t}]`},e.getEsmExportName=function(t){if("string"==typeof t&&e.IDENTIFIER.test(t))return new n(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)},e.regexpCode=function(e){return new n(e.toString())}}(ZA);var eI={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=ZA;class r extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var n;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(n=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class o{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,r;if((null===(r=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===r?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}e.Scope=o;class a extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e,this.scopePath=t._`.${new t.Name(r)}[${n}]`}}e.ValueScopeName=a;const i=t._`\n`;e.ValueScope=class extends o{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?i:t.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const n=this.toName(e),{prefix:o}=n,a=null!==(r=t.key)&&void 0!==r?r:t.ref;let i=this._values[o];if(i){const e=i.get(a);if(e)return e}else i=this._values[o]=new Map;i.set(a,n);const s=this._scope[o]||(this._scope[o]=[]),l=s.length;return s[l]=t.ref,n.setValue(t,{property:o,itemIndex:l}),n}getValue(e,t){const r=this._values[e];if(r)return r.get(t)}scopeRefs(e,r=this._values){return this._reduceValues(r,(r=>{if(void 0===r.scopePath)throw new Error(`CodeGen: name "${r}" has no value`);return t._`${e}${r.scopePath}`}))}scopeCode(e=this._values,t,r){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,r)}_reduceValues(o,a,i={},s){let l=t.nil;for(const c in o){const u=o[c];if(!u)continue;const d=i[c]=i[c]||new Map;u.forEach((o=>{if(d.has(o))return;d.set(o,n.Started);let i=a(o);if(i){const r=this.opts.es5?e.varKinds.var:e.varKinds.const;l=t._`${l}${r} ${o} = ${i};${this.opts._n}`}else{if(!(i=null==s?void 0:s(o)))throw new r(o);l=t._`${l}${i}${this.opts._n}`}d.set(o,n.Completed)}))}return l}}}(eI),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=ZA,r=eI;var n=ZA;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var o=eI;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(e,t){return this}}class i extends a{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){const n=e?r.varKinds.var:this.varKind,o=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=j(this.rhs,e,t)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof t.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=j(this.rhs,e,r),this}get names(){return P(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}}class l extends s{constructor(e,t,r,n){super(e,r,n),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class c extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class u extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class d extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class f extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=j(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class p extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,r)=>t+r.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:r}=this;let n=r.length;for(;n--;){const o=r[n];o.optimizeNames(e,t)||(O(e,o.names),r.splice(n,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>C(e,t.names)),{})}}class m extends p{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class h extends p{}class v extends m{}v.kind="else";class y extends m{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof y?t:t.nodes:this.nodes.length?this:new y(N(e),t instanceof y?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=j(this.condition,e,t),this}get names(){const e=super.names;return P(e,this.condition),this.else&&C(e,this.else.names),e}}y.kind="if";class g extends m{}g.kind="for";class b extends g{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=j(this.iteration,e,t),this}get names(){return C(super.names,this.iteration.names)}}class w extends g{constructor(e,t,r,n){super(),this.varKind=e,this.name=t,this.from=r,this.to=n}render(e){const t=e.es5?r.varKinds.var:this.varKind,{name:n,from:o,to:a}=this;return`for(${t} ${n}=${o}; ${n}<${a}; ${n}++)`+super.render(e)}get names(){const e=P(super.names,this.from);return P(e,this.to)}}class S extends g{constructor(e,t,r,n){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=j(this.iterable,e,t),this}get names(){return C(super.names,this.iterable.names)}}class x extends m{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}x.kind="func";class $ extends p{render(e){return"return "+super.render(e)}}$.kind="return";class k extends m{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,n;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(n=this.finally)||void 0===n||n.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&C(e,this.catch.names),this.finally&&C(e,this.finally.names),e}}class _ extends m{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}_.kind="catch";class E extends m{render(e){return"finally"+super.render(e)}}E.kind="finally";function C(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function P(e,r){return r instanceof t._CodeOrName?C(e,r.names):e}function j(e,r,n){return e instanceof t.Name?o(e):function(e){return e instanceof t._Code&&e._items.some((e=>e instanceof t.Name&&1===r[e.str]&&void 0!==n[e.str]))}(e)?new t._Code(e._items.reduce(((e,r)=>(r instanceof t.Name&&(r=o(r)),r instanceof t._Code?e.push(...r._items):e.push(r),e)),[])):e;function o(e){const t=n[e.str];return void 0===t||1!==r[e.str]?e:(delete r[e.str],t)}}function O(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function N(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:t._`!${I(e)}`}e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new r.Scope({parent:e}),this._nodes=[new h]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){const o=this._scope.toName(t);return void 0!==r&&n&&(this._constants[o.str]=r),this._leafNode(new i(e,o,r)),o}const(e,t,n){return this._def(r.varKinds.const,e,t,n)}let(e,t,n){return this._def(r.varKinds.let,e,t,n)}var(e,t,n){return this._def(r.varKinds.var,e,t,n)}assign(e,t,r){return this._leafNode(new s(e,t,r))}add(t,r){return this._leafNode(new l(t,e.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==t.nil&&this._leafNode(new f(e)),this}object(...e){const r=["{"];for(const[n,o]of e)r.length>1&&r.push(","),r.push(n),(n!==o||this.opts.es5)&&(r.push(":"),(0,t.addCodeArg)(r,o));return r.push("}"),new t._Code(r)}if(e,t,r){if(this._blockNode(new y(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new y(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(y,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new b(e),t)}forRange(e,t,n,o,a=(this.opts.es5?r.varKinds.var:r.varKinds.let)){const i=this._scope.toName(e);return this._for(new w(a,i,t,n),(()=>o(i)))}forOf(e,n,o,a=r.varKinds.const){const i=this._scope.toName(e);if(this.opts.es5){const e=n instanceof t.Name?n:this.var("_arr",n);return this.forRange("_i",0,t._`${e}.length`,(r=>{this.var(i,t._`${e}[${r}]`),o(i)}))}return this._for(new S("of",a,i,n),(()=>o(i)))}forIn(e,n,o,a=(this.opts.es5?r.varKinds.var:r.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,t._`Object.keys(${n})`,o);const i=this._scope.toName(e);return this._for(new S("in",a,i,n),(()=>o(i)))}endFor(){return this._endBlockNode(g)}label(e){return this._leafNode(new c(e))}break(e){return this._leafNode(new u(e))}return(e){const t=new $;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode($)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new k;if(this._blockNode(n),this.code(e),t){const e=this.name("e");this._currNode=n.catch=new _(e),t(e)}return r&&(this._currNode=n.finally=new E,this.code(r)),this._endBlockNode(_,E)}throw(e){return this._leafNode(new d(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,r=t.nil,n,o){return this._blockNode(new x(e,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(x)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof y))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},e.not=N;const R=A(e.operators.AND);e.and=function(...e){return e.reduce(R)};const T=A(e.operators.OR);function A(e){return(r,n)=>r===t.nil?n:n===t.nil?r:t._`${I(r)} ${e} ${I(n)}`}function I(e){return e instanceof t.Name?e:t._`(${e})`}e.or=function(...e){return e.reduce(T)}}(XA);var tI={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=XA,r=ZA;function n(e,t=e.schema){const{opts:r,self:n}=e;if(!r.strictSchema)return;if("boolean"==typeof t)return;const o=n.RULES.keywords;for(const r in t)o[r]||f(e,`unknown keyword: "${r}"`)}function o(e,t){if("boolean"==typeof e)return!e;for(const r in e)if(t[r])return!0;return!1}function a(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function i(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function s({mergeNames:e,mergeToName:r,mergeValues:n,resultToName:o}){return(a,i,s,l)=>{const c=void 0===s?i:s instanceof t.Name?(i instanceof t.Name?e(a,i,s):r(a,i,s),s):i instanceof t.Name?(r(a,s,i),i):n(i,s);return l!==t.Name||c instanceof t.Name?c:o(a,c)}}function l(e,r){if(!0===r)return e.var("props",!0);const n=e.var("props",t._`{}`);return void 0!==r&&c(e,n,r),n}function c(e,r,n){Object.keys(n).forEach((n=>e.assign(t._`${r}${(0,t.getProperty)(n)}`,!0)))}e.toHash=function(e){const t={};for(const r of e)t[r]=!0;return t},e.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(n(e,t),!o(t,e.self.RULES.all))},e.checkUnknownRules=n,e.schemaHasRules=o,e.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const r in e)if("$ref"!==r&&t.all[r])return!0;return!1},e.schemaRefOrVal=function({topSchemaRef:e,schemaPath:r},n,o,a){if(!a){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return t._`${n}`}return t._`${e}${r}${(0,t.getProperty)(o)}`},e.unescapeFragment=function(e){return i(decodeURIComponent(e))},e.escapeFragment=function(e){return encodeURIComponent(a(e))},e.escapeJsonPointer=a,e.unescapeJsonPointer=i,e.eachItem=function(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)},e.mergeEvaluated={props:s({mergeNames:(e,r,n)=>e.if(t._`${n} !== true && ${r} !== undefined`,(()=>{e.if(t._`${r} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,t._`${n} || {}`).code(t._`Object.assign(${n}, ${r})`)))})),mergeToName:(e,r,n)=>e.if(t._`${n} !== true`,(()=>{!0===r?e.assign(n,!0):(e.assign(n,t._`${n} || {}`),c(e,n,r))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:l}),items:s({mergeNames:(e,r,n)=>e.if(t._`${n} !== true && ${r} !== undefined`,(()=>e.assign(n,t._`${r} === true ? true : ${n} > ${r} ? ${n} : ${r}`))),mergeToName:(e,r,n)=>e.if(t._`${n} !== true`,(()=>e.assign(n,!0===r||t._`${n} > ${r} ? ${n} : ${r}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},e.evaluatedPropsToName=l,e.setEvaluated=c;const u={};var d;function f(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw new Error(t);e.self.logger.warn(t)}}e.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:u[t.code]||(u[t.code]=new r._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(d=e.Type||(e.Type={})),e.getErrorPath=function(e,r,n){if(e instanceof t.Name){const o=r===d.Num;return n?o?t._`"[" + ${e} + "]"`:t._`"['" + ${e} + "']"`:o?t._`"/" + ${e}`:t._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,t.getProperty)(e).toString():"/"+a(e)},e.checkStrictMode=f}(tI);var rI,nI,oI,aI={};function iI(){if(rI)return aI;rI=1,Object.defineProperty(aI,"__esModule",{value:!0});const e=XA,t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return aI.default=t,aI}function sI(){return nI||(nI=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=XA,r=tI,n=iI();function o(e,r){const o=e.const("err",r);e.if(t._`${n.default.vErrors} === null`,(()=>e.assign(n.default.vErrors,t._`[${o}]`)),t._`${n.default.vErrors}.push(${o})`),e.code(t._`${n.default.errors}++`)}function a(e,r){const{gen:n,validateName:o,schemaEnv:a}=e;a.$async?n.throw(t._`new ${e.ValidationError}(${r})`):(n.assign(t._`${o}.errors`,r),n.return(!1))}e.keywordError={message:({keyword:e})=>t.str`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:r})=>r?t.str`"${e}" keyword must be ${r} ($data)`:t.str`"${e}" keyword is invalid ($data)`},e.reportError=function(r,n=e.keywordError,i,l){const{it:c}=r,{gen:u,compositeRule:d,allErrors:f}=c,p=s(r,n,i);(null!=l?l:d||f)?o(u,p):a(c,t._`[${p}]`)},e.reportExtraError=function(t,r=e.keywordError,i){const{it:l}=t,{gen:c,compositeRule:u,allErrors:d}=l;o(c,s(t,r,i)),u||d||a(l,n.default.vErrors)},e.resetErrorsCount=function(e,r){e.assign(n.default.errors,r),e.if(t._`${n.default.vErrors} !== null`,(()=>e.if(r,(()=>e.assign(t._`${n.default.vErrors}.length`,r)),(()=>e.assign(n.default.vErrors,null)))))},e.extendErrors=function({gen:e,keyword:r,schemaValue:o,data:a,errsCount:i,it:s}){if(void 0===i)throw new Error("ajv implementation error");const l=e.name("err");e.forRange("i",i,n.default.errors,(i=>{e.const(l,t._`${n.default.vErrors}[${i}]`),e.if(t._`${l}.instancePath === undefined`,(()=>e.assign(t._`${l}.instancePath`,(0,t.strConcat)(n.default.instancePath,s.errorPath)))),e.assign(t._`${l}.schemaPath`,t.str`${s.errSchemaPath}/${r}`),s.opts.verbose&&(e.assign(t._`${l}.schema`,o),e.assign(t._`${l}.data`,a))}))};const i={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function s(e,r,o){const{createErrors:a}=e.it;return!1===a?t._`{}`:function(e,r,o={}){const{gen:a,it:s}=e,u=[l(s,o),c(e,o)];return function(e,{params:r,message:o},a){const{keyword:s,data:l,schemaValue:c,it:u}=e,{opts:d,propertyName:f,topSchemaRef:p,schemaPath:m}=u;a.push([i.keyword,s],[i.params,"function"==typeof r?r(e):r||t._`{}`]),d.messages&&a.push([i.message,"function"==typeof o?o(e):o]);d.verbose&&a.push([i.schema,c],[i.parentSchema,t._`${p}${m}`],[n.default.data,l]);f&&a.push([i.propertyName,f])}(e,r,u),a.object(...u)}(e,r,o)}function l({errorPath:e},{instancePath:o}){const a=o?t.str`${e}${(0,r.getErrorPath)(o,r.Type.Str)}`:e;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,a)]}function c({keyword:e,it:{errSchemaPath:n}},{schemaPath:o,parentSchema:a}){let s=a?n:t.str`${n}/${e}`;return o&&(s=t.str`${s}${(0,r.getErrorPath)(o,r.Type.Str)}`),[i.schemaPath,s]}}(JA)),JA}var lI={},cI={};Object.defineProperty(cI,"__esModule",{value:!0}),cI.getRules=cI.isJSONType=void 0;const uI=new Set(["string","number","integer","boolean","null","object","array"]);cI.isJSONType=function(e){return"string"==typeof e&&uI.has(e)},cI.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}};var dI,fI={};function pI(){if(dI)return fI;function e(e,r){return r.rules.some((r=>t(e,r)))}function t(e,t){var r;return void 0!==e[t.keyword]||(null===(r=t.definition.implements)||void 0===r?void 0:r.some((t=>void 0!==e[t])))}return dI=1,Object.defineProperty(fI,"__esModule",{value:!0}),fI.shouldUseRule=fI.shouldUseGroup=fI.schemaHasRulesForType=void 0,fI.schemaHasRulesForType=function({schema:t,self:r},n){const o=r.RULES.types[n];return o&&!0!==o&&e(t,o)},fI.shouldUseGroup=e,fI.shouldUseRule=t,fI}!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=cI,r=pI(),n=sI(),o=XA,a=tI;var i;function s(e){const r=Array.isArray(e)?e:e?[e]:[];if(r.every(t.isJSONType))return r;throw new Error("type must be JSONType or JSONType[]: "+r.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(i=e.DataType||(e.DataType={})),e.getSchemaTypes=function(e){const t=s(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},e.getJSONTypes=s,e.coerceAndCheckDataType=function(e,t){const{gen:n,data:a,opts:s}=e,c=function(e,t){return t?e.filter((e=>l.has(e)||"array"===t&&"array"===e)):[]}(t,s.coerceTypes),d=t.length>0&&!(0===c.length&&1===t.length&&(0,r.schemaHasRulesForType)(e,t[0]));if(d){const r=u(t,a,s.strictNumbers,i.Wrong);n.if(r,(()=>{c.length?function(e,t,r){const{gen:n,data:a,opts:i}=e,s=n.let("dataType",o._`typeof ${a}`),c=n.let("coerced",o._`undefined`);"array"===i.coerceTypes&&n.if(o._`${s} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,(()=>n.assign(a,o._`${a}[0]`).assign(s,o._`typeof ${a}`).if(u(t,a,i.strictNumbers),(()=>n.assign(c,a)))));n.if(o._`${c} !== undefined`);for(const e of r)(l.has(e)||"array"===e&&"array"===i.coerceTypes)&&d(e);function d(e){switch(e){case"string":return void n.elseIf(o._`${s} == "number" || ${s} == "boolean"`).assign(c,o._`"" + ${a}`).elseIf(o._`${a} === null`).assign(c,o._`""`);case"number":return void n.elseIf(o._`${s} == "boolean" || ${a} === null
27
27
  || (${s} == "string" && ${a} && ${a} == +${a})`).assign(c,o._`+${a}`);case"integer":return void n.elseIf(o._`${s} === "boolean" || ${a} === null
28
28
  || (${s} === "string" && ${a} && ${a} == +${a} && !(${a} % 1))`).assign(c,o._`+${a}`);case"boolean":return void n.elseIf(o._`${a} === "false" || ${a} === 0 || ${a} === null`).assign(c,!1).elseIf(o._`${a} === "true" || ${a} === 1`).assign(c,!0);case"null":return n.elseIf(o._`${a} === "" || ${a} === 0 || ${a} === false`),void n.assign(c,null);case"array":n.elseIf(o._`${s} === "string" || ${s} === "number"
29
- || ${s} === "boolean" || ${a} === null`).assign(c,o._`[${a}]`)}}n.else(),f(e),n.endIf(),n.if(o._`${c} !== undefined`,(()=>{n.assign(a,c),function({gen:e,parentData:t,parentDataProperty:r},n){e.if(o._`${t} !== undefined`,(()=>e.assign(o._`${t}[${r}]`,n)))}(e,c)}))}(e,t,c):f(e)}))}return d};const l=new Set(["string","number","integer","boolean","null"]);function c(e,t,r,n=i.Correct){const a=n===i.Correct?o.operators.EQ:o.operators.NEQ;let s;switch(e){case"null":return o._`${t} ${a} null`;case"array":s=o._`Array.isArray(${t})`;break;case"object":s=o._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=l(o._`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=l();break;default:return o._`typeof ${t} ${a} ${e}`}return n===i.Correct?s:(0,o.not)(s);function l(e=o.nil){return(0,o.and)(o._`typeof ${t} == "number"`,e,r?o._`isFinite(${t})`:o.nil)}}function u(e,t,r,n){if(1===e.length)return c(e[0],t,r,n);let i;const s=(0,a.toHash)(e);if(s.array&&s.object){const e=o._`typeof ${t} != "object"`;i=s.null?e:o._`!${t} || ${e}`,delete s.null,delete s.array,delete s.object}else i=o.nil;s.number&&delete s.integer;for(const e in s)i=(0,o.and)(i,c(e,t,r,n));return i}e.checkDataType=c,e.checkDataTypes=u;const d={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?o._`{type: ${e}}`:o._`{type: ${t}}`};function f(e){const t=function(e){const{gen:t,data:r,schema:n}=e,o=(0,a.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}(e);(0,n.reportError)(t,d)}e.reportTypeError=f}(KI);var XI,ZI={};var eM,tM,rM={},nM={};function oM(){if(eM)return nM;eM=1,Object.defineProperty(nM,"__esModule",{value:!0}),nM.validateUnion=nM.validateArray=nM.usePattern=nM.callValidateCode=nM.schemaProperties=nM.allSchemaProperties=nM.noPropertyInData=nM.propertyInData=nM.isOwnProperty=nM.hasPropFunc=nM.reportMissingProp=nM.checkMissingProp=nM.checkReportMissingProp=void 0;const e=MI,t=zI,r=WI(),n=zI;function o(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:e._`Object.prototype.hasOwnProperty`})}function a(t,r,n){return e._`${o(t)}.call(${r}, ${n})`}function i(t,r,n,o){const i=e._`${r}${(0,e.getProperty)(n)} === undefined`;return o?(0,e.or)(i,(0,e.not)(a(t,r,n))):i}function s(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}nM.checkReportMissingProp=function(t,r){const{gen:n,data:o,it:a}=t;n.if(i(n,o,r,a.opts.ownProperties),(()=>{t.setParams({missingProperty:e._`${r}`},!0),t.error()}))},nM.checkMissingProp=function({gen:t,data:r,it:{opts:n}},o,a){return(0,e.or)(...o.map((o=>(0,e.and)(i(t,r,o,n.ownProperties),e._`${a} = ${o}`))))},nM.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},nM.hasPropFunc=o,nM.isOwnProperty=a,nM.propertyInData=function(t,r,n,o){const i=e._`${r}${(0,e.getProperty)(n)} !== undefined`;return o?e._`${i} && ${a(t,r,n)}`:i},nM.noPropertyInData=i,nM.allSchemaProperties=s,nM.schemaProperties=function(e,r){return s(r).filter((n=>!(0,t.alwaysValidSchema)(e,r[n])))},nM.callValidateCode=function({schemaCode:t,data:n,it:{gen:o,topSchemaRef:a,schemaPath:i,errorPath:s},it:l},c,u,d){const f=d?e._`${t}, ${n}, ${a}${i}`:n,p=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,s)],[r.default.parentData,l.parentData],[r.default.parentDataProperty,l.parentDataProperty],[r.default.rootData,r.default.rootData]];l.opts.dynamicRef&&p.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const m=e._`${f}, ${o.object(...p)}`;return u!==e.nil?e._`${c}.call(${u}, ${m})`:e._`${c}(${m})`};const l=e._`new RegExp`;return nM.usePattern=function({gen:t,it:{opts:r}},o){const a=r.unicodeRegExp?"u":"",{regExp:i}=r.code,s=i(o,a);return t.scopeValue("pattern",{key:s.toString(),ref:s,code:e._`${"new RegExp"===i.code?l:(0,n.useFunc)(t,i)}(${o}, ${a})`})},nM.validateArray=function(r){const{gen:n,data:o,keyword:a,it:i}=r,s=n.name("valid");if(i.allErrors){const e=n.let("valid",!0);return l((()=>n.assign(e,!1))),e}return n.var(s,!0),l((()=>n.break())),s;function l(i){const l=n.const("len",e._`${o}.length`);n.forRange("i",0,l,(o=>{r.subschema({keyword:a,dataProp:o,dataPropType:t.Type.Num},s),n.if((0,e.not)(s),i)}))}},nM.validateUnion=function(r){const{gen:n,schema:o,keyword:a,it:i}=r;if(!Array.isArray(o))throw new Error("ajv implementation error");if(o.some((e=>(0,t.alwaysValidSchema)(i,e)))&&!i.opts.unevaluated)return;const s=n.let("valid",!1),l=n.name("_valid");n.block((()=>o.forEach(((t,o)=>{const i=r.subschema({keyword:a,schemaProp:o,compositeRule:!0},l);n.assign(s,e._`${s} || ${l}`);r.mergeValidEvaluated(i,l)||n.if((0,e.not)(s))})))),r.result(s,(()=>r.reset()),(()=>r.error(!0)))},nM}function aM(){if(tM)return rM;tM=1,Object.defineProperty(rM,"__esModule",{value:!0}),rM.validateKeywordUsage=rM.validSchemaType=rM.funcKeywordCode=rM.macroKeywordCode=void 0;const e=MI,t=WI(),r=oM(),n=qI();function o(t){const{gen:r,data:n,it:o}=t;r.if(o.parentData,(()=>r.assign(n,e._`${o.parentData}[${o.parentDataProperty}]`)))}function a(t,r,n){if(void 0===n)throw new Error(`keyword "${r}" failed to compile`);return t.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,e.stringify)(n)})}return rM.macroKeywordCode=function(t,r){const{gen:n,keyword:o,schema:i,parentSchema:s,it:l}=t,c=r.macro.call(l.self,i,s,l),u=a(n,o,c);!1!==l.opts.validateSchema&&l.self.validateSchema(c,!0);const d=n.name("valid");t.subschema({schema:c,schemaPath:e.nil,errSchemaPath:`${l.errSchemaPath}/${o}`,topSchemaRef:u,compositeRule:!0},d),t.pass(d,(()=>t.error(!0)))},rM.funcKeywordCode=function(i,s){var l;const{gen:c,keyword:u,schema:d,parentSchema:f,$data:p,it:m}=i;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(m,s);const h=!p&&s.compile?s.compile.call(m.self,d,f,m):s.validate,v=a(c,u,h),y=c.let("valid");function g(n=(s.async?e._`await `:e.nil)){const o=m.opts.passContext?t.default.this:t.default.self,a=!("compile"in s&&!p||!1===s.schema);c.assign(y,e._`${n}${(0,r.callValidateCode)(i,v,o,a)}`,s.modifying)}function b(t){var r;c.if((0,e.not)(null!==(r=s.valid)&&void 0!==r?r:y),t)}i.block$data(y,(function(){if(!1===s.errors)g(),s.modifying&&o(i),b((()=>i.error()));else{const r=s.async?function(){const t=c.let("ruleErrs",null);return c.try((()=>g(e._`await `)),(r=>c.assign(y,!1).if(e._`${r} instanceof ${m.ValidationError}`,(()=>c.assign(t,e._`${r}.errors`)),(()=>c.throw(r))))),t}():function(){const t=e._`${v}.errors`;return c.assign(t,null),g(e.nil),t}();s.modifying&&o(i),b((()=>function(r,o){const{gen:a}=r;a.if(e._`Array.isArray(${o})`,(()=>{a.assign(t.default.vErrors,e._`${t.default.vErrors} === null ? ${o} : ${t.default.vErrors}.concat(${o})`).assign(t.default.errors,e._`${t.default.vErrors}.length`),(0,n.extendErrors)(r)}),(()=>r.error()))}(i,r)))}})),i.ok(null!==(l=s.valid)&&void 0!==l?l:y)},rM.validSchemaType=function(e,t,r=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e))},rM.validateKeywordUsage=function({schema:e,opts:t,self:r,errSchemaPath:n},o,a){if(Array.isArray(o.keyword)?!o.keyword.includes(a):o.keyword!==a)throw new Error("ajv implementation error");const i=o.dependencies;if(null==i?void 0:i.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(o.validateSchema){if(!o.validateSchema(e[a])){const e=`keyword "${a}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);r.logger.error(e)}}},rM}var iM,sM={};var lM={},cM={exports:{}},uM=cM.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),dM(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function dM(e,t,r,n,o,a,i,s,l,c){if(n&&"object"==typeof n&&!Array.isArray(n)){for(var u in t(n,o,a,i,s,l,c),n){var d=n[u];if(Array.isArray(d)){if(u in uM.arrayKeywords)for(var f=0;f<d.length;f++)dM(e,t,r,d[f],o+"/"+u+"/"+f,a,o,u,n,f)}else if(u in uM.propsKeywords){if(d&&"object"==typeof d)for(var p in d)dM(e,t,r,d[p],o+"/"+u+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),a,o,u,n,p)}else(u in uM.keywords||e.allKeys&&!(u in uM.skipKeywords))&&dM(e,t,r,d,o+"/"+u,a,o,u,n)}r(n,o,a,i,s,l,c)}}uM.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},uM.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},uM.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},uM.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};var fM=cM.exports;Object.defineProperty(lM,"__esModule",{value:!0}),lM.getSchemaRefs=lM.resolveUrl=lM.normalizeId=lM._getFullPath=lM.getFullPath=lM.inlineRef=void 0;const pM=zI,mM=hN,hM=fM,vM=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);lM.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!gM(e):!!t&&bM(e)<=t)};const yM=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function gM(e){for(const t in e){if(yM.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(gM))return!0;if("object"==typeof r&&gM(r))return!0}return!1}function bM(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!vM.has(r)&&("object"==typeof e[r]&&(0,pM.eachItem)(e[r],(e=>t+=bM(e))),t===1/0))return 1/0}return t}function wM(e,t="",r){!1!==r&&(t=$M(t));const n=e.parse(t);return SM(e,n)}function SM(e,t){return e.serialize(t).split("#")[0]+"#"}lM.getFullPath=wM,lM._getFullPath=SM;const xM=/#\/?$/;function $M(e){return e?e.replace(xM,""):""}lM.normalizeId=$M,lM.resolveUrl=function(e,t,r){return r=$M(r),e.resolve(t,r)};const kM=/^[a-z_][-a-z0-9._]*$/i;var _M;function EM(){if(_M)return AI;_M=1,Object.defineProperty(AI,"__esModule",{value:!0}),AI.getData=AI.KeywordCxt=AI.validateFunctionCode=void 0;const e=function(){if(BI)return TI;BI=1,Object.defineProperty(TI,"__esModule",{value:!0}),TI.boolOrEmptySchema=TI.topBoolOrEmptySchema=void 0;const e=qI(),t=MI,r=WI(),n={message:"boolean schema is false"};function o(t,r){const{gen:o,data:a}=t,i={gen:o,keyword:"false schema",data:a,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,e.reportError)(i,n,void 0,r)}return TI.topBoolOrEmptySchema=function(e){const{gen:n,schema:a,validateName:i}=e;!1===a?o(e,!1):"object"==typeof a&&!0===a.$async?n.return(r.default.data):(n.assign(t._`${i}.errors`,null),n.return(!0))},TI.boolOrEmptySchema=function(e,t){const{gen:r,schema:n}=e;!1===n?(r.var(t,!1),o(e)):r.var(t,!0)},TI}(),t=KI,r=JI(),n=KI,o=function(){if(XI)return ZI;XI=1,Object.defineProperty(ZI,"__esModule",{value:!0}),ZI.assignDefaults=void 0;const e=MI,t=zI;function r(r,n,o){const{gen:a,compositeRule:i,data:s,opts:l}=r;if(void 0===o)return;const c=e._`${s}${(0,e.getProperty)(n)}`;if(i)return void(0,t.checkStrictMode)(r,`default is ignored for: ${c}`);let u=e._`${c} === undefined`;"empty"===l.useDefaults&&(u=e._`${u} || ${c} === null || ${c} === ""`),a.if(u,e._`${c} = ${(0,e.stringify)(o)}`)}return ZI.assignDefaults=function(e,t){const{properties:n,items:o}=e.schema;if("object"===t&&n)for(const t in n)r(e,t,n[t].default);else"array"===t&&Array.isArray(o)&&o.forEach(((t,n)=>r(e,n,t.default)))},ZI}(),a=aM(),i=function(){if(iM)return sM;iM=1,Object.defineProperty(sM,"__esModule",{value:!0}),sM.extendSubschemaMode=sM.extendSubschemaData=sM.getSubschema=void 0;const e=MI,t=zI;return sM.getSubschema=function(r,{keyword:n,schemaProp:o,schema:a,schemaPath:i,errSchemaPath:s,topSchemaRef:l}){if(void 0!==n&&void 0!==a)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==n){const a=r.schema[n];return void 0===o?{schema:a,schemaPath:e._`${r.schemaPath}${(0,e.getProperty)(n)}`,errSchemaPath:`${r.errSchemaPath}/${n}`}:{schema:a[o],schemaPath:e._`${r.schemaPath}${(0,e.getProperty)(n)}${(0,e.getProperty)(o)}`,errSchemaPath:`${r.errSchemaPath}/${n}/${(0,t.escapeFragment)(o)}`}}if(void 0!==a){if(void 0===i||void 0===s||void 0===l)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:a,schemaPath:i,topSchemaRef:l,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')},sM.extendSubschemaData=function(r,n,{dataProp:o,dataPropType:a,data:i,dataTypes:s,propertyName:l}){if(void 0!==i&&void 0!==o)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:c}=n;if(void 0!==o){const{errorPath:i,dataPathArr:s,opts:l}=n;u(c.let("data",e._`${n.data}${(0,e.getProperty)(o)}`,!0)),r.errorPath=e.str`${i}${(0,t.getErrorPath)(o,a,l.jsPropertySyntax)}`,r.parentDataProperty=e._`${o}`,r.dataPathArr=[...s,r.parentDataProperty]}function u(e){r.data=e,r.dataLevel=n.dataLevel+1,r.dataTypes=[],n.definedProperties=new Set,r.parentData=n.data,r.dataNames=[...n.dataNames,e]}void 0!==i&&(u(i instanceof e.Name?i:c.let("data",i,!0)),void 0!==l&&(r.propertyName=l)),s&&(r.dataTypes=s)},sM.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:a}){void 0!==n&&(e.compositeRule=n),void 0!==o&&(e.createErrors=o),void 0!==a&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=r},sM}(),s=MI,l=WI(),c=lM,u=zI,d=qI();function f({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},a){o.code.es5?e.func(t,s._`${l.default.data}, ${l.default.valCxt}`,n.$async,(()=>{e.code(s._`"use strict"; ${p(r,o)}`),function(e,t){e.if(l.default.valCxt,(()=>{e.var(l.default.instancePath,s._`${l.default.valCxt}.${l.default.instancePath}`),e.var(l.default.parentData,s._`${l.default.valCxt}.${l.default.parentData}`),e.var(l.default.parentDataProperty,s._`${l.default.valCxt}.${l.default.parentDataProperty}`),e.var(l.default.rootData,s._`${l.default.valCxt}.${l.default.rootData}`),t.dynamicRef&&e.var(l.default.dynamicAnchors,s._`${l.default.valCxt}.${l.default.dynamicAnchors}`)}),(()=>{e.var(l.default.instancePath,s._`""`),e.var(l.default.parentData,s._`undefined`),e.var(l.default.parentDataProperty,s._`undefined`),e.var(l.default.rootData,l.default.data),t.dynamicRef&&e.var(l.default.dynamicAnchors,s._`{}`)}))}(e,o),e.code(a)})):e.func(t,s._`${l.default.data}, ${function(e){return s._`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${e.dynamicRef?s._`, ${l.default.dynamicAnchors}={}`:s.nil}}={}`}(o)}`,n.$async,(()=>e.code(p(r,o)).code(a)))}function p(e,t){const r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?s._`/*# sourceURL=${r} */`:s.nil}function m(t,r){v(t)&&(y(t),h(t))?function(e,t){const{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&b(e);(function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,c.resolveUrl)(e.opts.uriResolver,e.baseId,t))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const a=n.const("_errs",l.default.errors);g(e,a),n.var(t,s._`${a} === ${l.default.errors}`)}(t,r):(0,e.boolOrEmptySchema)(t,r)}function h({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function y(e){(0,u.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function g(e,r){if(e.opts.jtd)return w(e,[],!1,r);const n=(0,t.getSchemaTypes)(e.schema);w(e,n,!(0,t.coerceAndCheckDataType)(e,n),r)}function b({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){const a=r.$comment;if(!0===o.$comment)e.code(s._`${l.default.self}.logger.log(${a})`);else if("function"==typeof o.$comment){const r=s.str`${n}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code(s._`${l.default.self}.opts.$comment(${a}, ${r}, ${o}.schema)`)}}function w(e,t,o,a){const{gen:i,schema:c,data:d,allErrors:f,opts:p,self:m}=e,{RULES:h}=m;function v(u){(0,r.shouldUseGroup)(c,u)&&(u.type?(i.if((0,n.checkDataType)(u.type,d,p.strictNumbers)),S(e,u),1===t.length&&t[0]===u.type&&o&&(i.else(),(0,n.reportTypeError)(e)),i.endIf()):S(e,u),f||i.if(s._`${l.default.errors} === ${a||0}`))}!c.$ref||!p.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(c,h)?(p.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach((t=>{$(e.dataTypes,t)||k(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const r=[];for(const n of e.dataTypes)$(t,n)?r.push(n):t.includes("integer")&&"number"===n&&r.push("integer");e.dataTypes=r}(e,t)})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&k(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const n=e.self.RULES.all;for(const o in n){const a=n[o];if("object"==typeof a&&(0,r.shouldUseRule)(e.schema,a)){const{type:r}=a.definition;r.length&&!r.some((e=>x(t,e)))&&k(e,`missing type "${r.join(",")}" for keyword "${o}"`)}}}(e,e.dataTypes)}(e,t),i.block((()=>{for(const e of h.rules)v(e);v(h.post)}))):i.block((()=>E(e,"$ref",h.all.$ref.definition)))}function S(e,t){const{gen:n,schema:a,opts:{useDefaults:i}}=e;i&&(0,o.assignDefaults)(e,t.type),n.block((()=>{for(const n of t.rules)(0,r.shouldUseRule)(a,n)&&E(e,n.keyword,n.definition,t.type)}))}function x(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function $(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function k(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,u.checkStrictMode)(e,t,e.opts.strictTypes)}AI.validateFunctionCode=function(t){v(t)&&(y(t),h(t))?function(e){const{schema:t,opts:r,gen:n}=e;f(e,(()=>{r.$comment&&t.$comment&&b(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,u.checkStrictMode)(e,"default is ignored in the schema root")}(e),n.let(l.default.vErrors,null),n.let(l.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",s._`${r}.evaluated`),t.if(s._`${e.evaluated}.dynamicProps`,(()=>t.assign(s._`${e.evaluated}.props`,s._`undefined`))),t.if(s._`${e.evaluated}.dynamicItems`,(()=>t.assign(s._`${e.evaluated}.items`,s._`undefined`)))}(e),g(e),function(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:a}=e;r.$async?t.if(s._`${l.default.errors} === 0`,(()=>t.return(l.default.data)),(()=>t.throw(s._`new ${o}(${l.default.vErrors})`))):(t.assign(s._`${n}.errors`,l.default.vErrors),a.unevaluated&&function({gen:e,evaluated:t,props:r,items:n}){r instanceof s.Name&&e.assign(s._`${t}.props`,r);n instanceof s.Name&&e.assign(s._`${t}.items`,n)}(e),t.return(s._`${l.default.errors} === 0`))}(e)}))}(t):f(t,(()=>(0,e.topBoolOrEmptySchema)(t)))};class _{constructor(e,t,r){if((0,a.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",j(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,a.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",l.default.errors))}result(e,t,r){this.failResult((0,s.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,s.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(s._`${t} !== undefined && (${(0,s.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t)return this.setParams(t),this._error(e,r),void this.setParams({});this._error(e,r)}_error(e,t){(e?d.reportExtraError:d.reportError)(this,this.def.error,t)}$dataError(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=s.nil){this.gen.block((()=>{this.check$data(e,r),t()}))}check$data(e=s.nil,t=s.nil){if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:o,def:a}=this;r.if((0,s.or)(s._`${n} === undefined`,t)),e!==s.nil&&r.assign(e,!0),(o.length||a.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==s.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:o,it:a}=this;return(0,s.or)(function(){if(r.length){if(!(t instanceof s.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return s._`${(0,n.checkDataTypes)(e,t,a.opts.strictNumbers,n.DataType.Wrong)}`}return s.nil}(),function(){if(o.validateSchema){const r=e.scopeValue("validate$data",{ref:o.validateSchema});return s._`!${r}(${t})`}return s.nil}())}subschema(e,t){const r=(0,i.getSubschema)(this.it,e);(0,i.extendSubschemaData)(r,this.it,e),(0,i.extendSubschemaMode)(r,e);const n={...this.it,...r,items:void 0,props:void 0};return m(n,t),n}mergeEvaluated(e,t){const{it:r,gen:n}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=u.mergeEvaluated.props(n,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=u.mergeEvaluated.items(n,e.items,r.items,t)))}mergeValidEvaluated(e,t){const{it:r,gen:n}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return n.if(t,(()=>this.mergeEvaluated(e,s.Name))),!0}}function E(e,t,r,n){const o=new _(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,a.funcKeywordCode)(o,r):"macro"in r?(0,a.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,a.funcKeywordCode)(o,r)}AI.KeywordCxt=_;const C=/^\/(?:[^~]|~0|~1)*$/,P=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function j(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,a;if(""===e)return l.default.rootData;if("/"===e[0]){if(!C.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=l.default.rootData}else{const i=P.exec(e);if(!i)throw new Error(`Invalid JSON-pointer: ${e}`);const s=+i[1];if(o=i[2],"#"===o){if(s>=t)throw new Error(d("property/index",s));return n[t-s]}if(s>t)throw new Error(d("data",s));if(a=r[t-s],!o)return a}let i=a;const c=o.split("/");for(const e of c)e&&(a=s._`${a}${(0,s.getProperty)((0,u.unescapeJsonPointer)(e))}`,i=s._`${i} && ${a}`);return i;function d(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}return AI.getData=j,AI}lM.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:r,uriResolver:n}=this.opts,o=$M(e[r]||t),a={"":o},i=wM(n,o,!1),s={},l=new Set;return hM(e,{allKeys:!0},((e,t,n,o)=>{if(void 0===o)return;const d=i+t;let f=a[o];function p(t){const r=this.opts.uriResolver.resolve;if(t=$M(f?r(f,t):t),l.has(t))throw u(t);l.add(t);let n=this.refs[t];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?c(e,n.schema,t):t!==$M(d)&&("#"===t[0]?(c(e,s[t],t),s[t]=e):this.refs[t]=d),t}function m(e){if("string"==typeof e){if(!kM.test(e))throw new Error(`invalid anchor "${e}"`);p.call(this,`#${e}`)}}"string"==typeof e[r]&&(f=p.call(this,e[r])),m.call(this,e.$anchor),m.call(this,e.$dynamicAnchor),a[t]=f})),s;function c(e,t,r){if(void 0!==t&&!mM(e,t))throw u(r)}function u(e){return new Error(`reference "${e}" resolves to more than one schema`)}};var CM,PM={};function jM(){if(CM)return PM;CM=1,Object.defineProperty(PM,"__esModule",{value:!0});class e extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}return PM.default=e,PM}var OM,NM={};function RM(){if(OM)return NM;OM=1,Object.defineProperty(NM,"__esModule",{value:!0});const e=lM;class t extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,e.resolveUrl)(t,r,n),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(t,this.missingRef))}}return NM.default=t,NM}var AM={};Object.defineProperty(AM,"__esModule",{value:!0}),AM.resolveSchema=AM.getCompilingSchema=AM.resolveRef=AM.compileSchema=AM.SchemaEnv=void 0;const TM=MI,IM=jM(),MM=WI(),FM=lM,DM=zI,zM=EM();class LM{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,FM.normalizeId)(null==r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==r?void 0:r.$async,this.refs={}}}function VM(e){const t=UM.call(this,e);if(t)return t;const r=(0,FM.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new TM.CodeGen(this.scope,{es5:n,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:IM.default,code:TM._`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const c={gen:i,allErrors:this.opts.allErrors,data:MM.default.data,parentData:MM.default.parentData,parentDataProperty:MM.default.parentDataProperty,dataNames:[MM.default.data],dataPathArr:[TM.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,TM.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:TM.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:TM._`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,zM.validateFunctionCode)(c),i.optimize(this.opts.code.optimize);const t=i.toString();u=`${i.scopeRefs(MM.default.scope)}return ${t}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const r=new Function(`${MM.default.self}`,`${MM.default.scope}`,u)(this,this.scope.get());if(this.scope.value(l,{ref:r}),r.errors=null,r.schema=e.schema,r.schemaEnv=e,e.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:l,validateCode:t,scopeValues:i._values}),this.opts.unevaluated){const{props:e,items:t}=c;r.evaluated={props:e instanceof TM.Name?void 0:e,items:t instanceof TM.Name?void 0:t,dynamicProps:e instanceof TM.Name,dynamicItems:t instanceof TM.Name},r.source&&(r.source.evaluated=(0,TM.stringify)(r.evaluated))}return e.validate=r,e}catch(t){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),t}finally{this._compilations.delete(e)}}function BM(e){return(0,FM.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:VM.call(this,e)}function UM(e){for(const n of this._compilations)if(r=e,(t=n).schema===r.schema&&t.root===r.root&&t.baseId===r.baseId)return n;var t,r}function WM(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||qM.call(this,e,t)}function qM(e,t){const r=this.opts.uriResolver.parse(t),n=(0,FM._getFullPath)(this.opts.uriResolver,r);let o=(0,FM.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return HM.call(this,r,e);const a=(0,FM.normalizeId)(n),i=this.refs[a]||this.schemas[a];if("string"==typeof i){const t=qM.call(this,e,i);if("object"!=typeof(null==t?void 0:t.schema))return;return HM.call(this,r,t)}if("object"==typeof(null==i?void 0:i.schema)){if(i.validate||VM.call(this,i),a===(0,FM.normalizeId)(t)){const{schema:t}=i,{schemaId:r}=this.opts,n=t[r];return n&&(o=(0,FM.resolveUrl)(this.opts.uriResolver,o,n)),new LM({schema:t,schemaId:r,root:e,baseId:o})}return HM.call(this,r,i)}}AM.SchemaEnv=LM,AM.compileSchema=VM,AM.resolveRef=function(e,t,r){var n;r=(0,FM.resolveUrl)(this.opts.uriResolver,t,r);const o=e.refs[r];if(o)return o;let a=WM.call(this,e,r);if(void 0===a){const o=null===(n=e.localRefs)||void 0===n?void 0:n[r],{schemaId:i}=this.opts;o&&(a=new LM({schema:o,schemaId:i,root:e,baseId:t}))}return void 0!==a?e.refs[r]=BM.call(this,a):void 0},AM.getCompilingSchema=UM,AM.resolveSchema=qM;const KM=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function HM(e,{baseId:t,schema:r,root:n}){var o;if("/"!==(null===(o=e.fragment)||void 0===o?void 0:o[0]))return;for(const n of e.fragment.slice(1).split("/")){if("boolean"==typeof r)return;const e=r[(0,DM.unescapeFragment)(n)];if(void 0===e)return;const o="object"==typeof(r=e)&&r[this.opts.schemaId];!KM.has(n)&&o&&(t=(0,FM.resolveUrl)(this.opts.uriResolver,t,o))}let a;if("boolean"!=typeof r&&r.$ref&&!(0,DM.schemaHasRulesButRef)(r,this.RULES)){const e=(0,FM.resolveUrl)(this.opts.uriResolver,t,r.$ref);a=qM.call(this,n,e)}const{schemaId:i}=this.opts;return a=a||new LM({schema:r,schemaId:i,root:n,baseId:t}),a.schema!==a.root.schema?a:void 0}var GM={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},QM={};Object.defineProperty(QM,"__esModule",{value:!0});const YM=oR;YM.code='require("ajv/dist/runtime/uri").default',QM.default=YM,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=EM();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=MI;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=jM(),o=RM(),a=HI,i=AM,s=MI,l=lM,c=KI,u=zI,d=GM,f=QM,p=(e,t)=>new RegExp(e,t);p.code="new RegExp";const m=["removeAdditional","useDefaults","coerceTypes"],h=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},y={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function g(e){var t,r,n,o,a,i,s,l,c,u,d,m,h,v,y,g,b,w,S,x,$,k,_,E,C;const P=e.strict,j=null===(t=e.code)||void 0===t?void 0:t.optimize,O=!0===j||void 0===j?1:j||0,N=null!==(n=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==n?n:p,R=null!==(o=e.uriResolver)&&void 0!==o?o:f.default;return{strictSchema:null===(i=null!==(a=e.strictSchema)&&void 0!==a?a:P)||void 0===i||i,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:P)||void 0===l||l,strictTypes:null!==(u=null!==(c=e.strictTypes)&&void 0!==c?c:P)&&void 0!==u?u:"log",strictTuples:null!==(m=null!==(d=e.strictTuples)&&void 0!==d?d:P)&&void 0!==m?m:"log",strictRequired:null!==(v=null!==(h=e.strictRequired)&&void 0!==h?h:P)&&void 0!==v&&v,code:e.code?{...e.code,optimize:O,regExp:N}:{optimize:O,regExp:N},loopRequired:null!==(y=e.loopRequired)&&void 0!==y?y:200,loopEnum:null!==(g=e.loopEnum)&&void 0!==g?g:200,meta:null===(b=e.meta)||void 0===b||b,messages:null===(w=e.messages)||void 0===w||w,inlineRefs:null===(S=e.inlineRefs)||void 0===S||S,schemaId:null!==(x=e.schemaId)&&void 0!==x?x:"$id",addUsedSchema:null===($=e.addUsedSchema)||void 0===$||$,validateSchema:null===(k=e.validateSchema)||void 0===k||k,validateFormats:null===(_=e.validateFormats)||void 0===_||_,unicodeRegExp:null===(E=e.unicodeRegExp)||void 0===E||E,int32range:null===(C=e.int32range)||void 0===C||C,uriResolver:R}}class b{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...g(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:h,es5:t,lines:r}),this.logger=function(e){if(!1===e)return E;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const n=e.validateFormats;e.validateFormats=!1,this.RULES=(0,a.getRules)(),w.call(this,v,e,"NOT SUPPORTED"),w.call(this,y,e,"DEPRECATED","warn"),this._metaOpts=_.call(this),e.formats&&$.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&k.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),x.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let n=d;"id"===r&&(n={...d},n.id=n.$id,delete n.$id),t&&e&&this.addMetaSchema(n,n[r],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);const n=r(t);return"$async"in r||(this.errors=r.errors),n}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return n.call(this,e,t);async function n(e,t){await a.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||i.call(this,r)}async function a(e){e&&!this.getSchema(e)&&await n.call(this,{$ref:e},!0)}async function i(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof o.default))throw t;return s.call(this,t),await l.call(this,t.missingSchema),i.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function l(e){const r=await c.call(this,e);this.refs[e]||await a.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function c(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,n=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,n);return this}let o;if("object"==typeof e){const{schemaId:t}=this.opts;if(o=e[t],void 0!==o&&"string"!=typeof o)throw new Error(`schema ${t} must be string`)}return t=(0,l.normalizeId)(t||o),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,n,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let r;if(r=e.$schema,void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const n=this.validate(r,e);if(!n&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return n}getSchema(e){let t;for(;"string"==typeof(t=S.call(this,e));)e=t;if(void 0===t){const{schemaId:r}=this.opts,n=new i.SchemaEnv({schema:{},schemaId:r});if(t=i.resolveSchema.call(this,n,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=S.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];return r&&(r=(0,l.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(P.call(this,r,t),!t)return(0,u.eachItem)(r,(e=>j.call(this,e))),this;N.call(this,t);const n={...t,type:(0,c.getJSONTypes)(t.type),schemaType:(0,c.getJSONTypes)(t.schemaType)};return(0,u.eachItem)(r,0===n.type.length?e=>j.call(this,e,n):e=>n.type.forEach((t=>j.call(this,e,n,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map((e=>`${r}${e.instancePath} ${e.message}`)).reduce(((e,r)=>e+t+r)):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const n of t){const t=n.split("/").slice(1);let o=e;for(const e of t)o=o[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:n}=t.definition,a=o[e];n&&a&&(o[e]=A(a))}}return e}_removeAllSchemas(e,t){for(const r in e){const n=e[r];t&&!t.test(r)||("string"==typeof n?delete e[r]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[r]))}}_addSchema(e,t,r,n=this.opts.validateSchema,o=this.opts.addUsedSchema){let a;const{schemaId:s}=this.opts;if("object"==typeof e)a=e[s];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let c=this._cache.get(e);if(void 0!==c)return c;r=(0,l.normalizeId)(a||r);const u=l.getSchemaRefs.call(this,e,r);return c=new i.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:r,localRefs:u}),this._cache.set(c.schema,c),o&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=c),n&&this.validateSchema(e,!0),c}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):i.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,e)}finally{this.opts=t}}}function w(e,t,r,n="error"){for(const o in e){const a=o;a in t&&this.logger[n](`${r}: option ${o}. ${e[a]}`)}}function S(e){return e=(0,l.normalizeId)(e),this.schemas[e]||this.refs[e]}function x(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function $(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function k(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function _(){const e={...this.opts};for(const t of m)delete e[t];return e}e.default=b,b.ValidationError=n.default,b.MissingRefError=o.default;const E={log(){},warn(){},error(){}};const C=/^[a-z_$][a-z0-9_$:-]*$/i;function P(e,t){const{RULES:r}=this;if((0,u.eachItem)(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!C.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function j(e,t,r){var n;const o=null==t?void 0:t.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:a}=this;let i=o?a.post:a.rules.find((({type:e})=>e===r));if(i||(i={type:r,rules:[]},a.rules.push(i)),a.keywords[e]=!0,!t)return;const s={keyword:e,definition:{...t,type:(0,c.getJSONTypes)(t.type),schemaType:(0,c.getJSONTypes)(t.schemaType)}};t.before?O.call(this,i,s,t.before):i.rules.push(s),a.all[e]=s,null===(n=t.implements)||void 0===n||n.forEach((e=>this.addKeyword(e)))}function O(e,t,r){const n=e.rules.findIndex((e=>e.keyword===r));n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function N(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=A(t)),e.validateSchema=this.compile(t,!0))}const R={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function A(e){return{anyOf:[e,R]}}}(RI);var JM={},XM={},ZM={};Object.defineProperty(ZM,"__esModule",{value:!0});const eF={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};ZM.default=eF;var tF={};Object.defineProperty(tF,"__esModule",{value:!0}),tF.callRef=tF.getValidate=void 0;const rF=RM(),nF=oM(),oF=MI,aF=WI(),iF=AM,sF=zI,lF={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:o,schemaEnv:a,validateName:i,opts:s,self:l}=n,{root:c}=a;if(("#"===r||"#/"===r)&&o===c.baseId)return function(){if(a===c)return uF(e,i,a,a.$async);const r=t.scopeValue("root",{ref:c});return uF(e,oF._`${r}.validate`,c,c.$async)}();const u=iF.resolveRef.call(l,c,o,r);if(void 0===u)throw new rF.default(n.opts.uriResolver,o,r);return u instanceof iF.SchemaEnv?function(t){const r=cF(e,t);uF(e,r,t,t.$async)}(u):function(n){const o=t.scopeValue("schema",!0===s.code.source?{ref:n,code:(0,oF.stringify)(n)}:{ref:n}),a=t.name("valid"),i=e.subschema({schema:n,dataTypes:[],schemaPath:oF.nil,topSchemaRef:o,errSchemaPath:r},a);e.mergeEvaluated(i),e.ok(a)}(u)}};function cF(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):oF._`${r.scopeValue("wrapper",{ref:t})}.validate`}function uF(e,t,r,n){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,c=l.passContext?aF.default.this:oF.nil;function u(e){const t=oF._`${e}.errors`;o.assign(aF.default.vErrors,oF._`${aF.default.vErrors} === null ? ${t} : ${aF.default.vErrors}.concat(${t})`),o.assign(aF.default.errors,oF._`${aF.default.vErrors}.length`)}function d(e){var t;if(!a.opts.unevaluated)return;const n=null===(t=null==r?void 0:r.validate)||void 0===t?void 0:t.evaluated;if(!0!==a.props)if(n&&!n.dynamicProps)void 0!==n.props&&(a.props=sF.mergeEvaluated.props(o,n.props,a.props));else{const t=o.var("props",oF._`${e}.evaluated.props`);a.props=sF.mergeEvaluated.props(o,t,a.props,oF.Name)}if(!0!==a.items)if(n&&!n.dynamicItems)void 0!==n.items&&(a.items=sF.mergeEvaluated.items(o,n.items,a.items));else{const t=o.var("items",oF._`${e}.evaluated.items`);a.items=sF.mergeEvaluated.items(o,t,a.items,oF.Name)}}n?function(){if(!s.$async)throw new Error("async schema referenced by sync schema");const r=o.let("valid");o.try((()=>{o.code(oF._`await ${(0,nF.callValidateCode)(e,t,c)}`),d(t),i||o.assign(r,!0)}),(e=>{o.if(oF._`!(${e} instanceof ${a.ValidationError})`,(()=>o.throw(e))),u(e),i||o.assign(r,!1)})),e.ok(r)}():e.result((0,nF.callValidateCode)(e,t,c),(()=>d(t)),(()=>u(t)))}tF.getValidate=cF,tF.callRef=uF,tF.default=lF,Object.defineProperty(XM,"__esModule",{value:!0});const dF=tF,fF=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",ZM.default,dF.default];XM.default=fF;var pF={},mF={};Object.defineProperty(mF,"__esModule",{value:!0});const hF=MI,vF=hF.operators,yF={maximum:{okStr:"<=",ok:vF.LTE,fail:vF.GT},minimum:{okStr:">=",ok:vF.GTE,fail:vF.LT},exclusiveMaximum:{okStr:"<",ok:vF.LT,fail:vF.GTE},exclusiveMinimum:{okStr:">",ok:vF.GT,fail:vF.LTE}},gF={message:({keyword:e,schemaCode:t})=>hF.str`must be ${yF[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>hF._`{comparison: ${yF[e].okStr}, limit: ${t}}`},bF={keyword:Object.keys(yF),type:"number",schemaType:"number",$data:!0,error:gF,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data(hF._`${r} ${yF[t].fail} ${n} || isNaN(${r})`)}};mF.default=bF;var wF={};Object.defineProperty(wF,"__esModule",{value:!0});const SF=MI,xF={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>SF.str`must be multiple of ${e}`,params:({schemaCode:e})=>SF._`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:n,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?SF._`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:SF._`${i} !== parseInt(${i})`;e.fail$data(SF._`(${n} === 0 || (${i} = ${r}/${n}, ${s}))`)}};wF.default=xF;var $F={},kF={};function _F(e){const t=e.length;let r,n=0,o=0;for(;o<t;)n++,r=e.charCodeAt(o++),r>=55296&&r<=56319&&o<t&&(r=e.charCodeAt(o),56320==(64512&r)&&o++);return n}Object.defineProperty(kF,"__esModule",{value:!0}),kF.default=_F,_F.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty($F,"__esModule",{value:!0});const EF=MI,CF=zI,PF=kF,jF={message({keyword:e,schemaCode:t}){const r="maxLength"===e?"more":"fewer";return EF.str`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>EF._`{limit: ${e}}`},OF={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:jF,code(e){const{keyword:t,data:r,schemaCode:n,it:o}=e,a="maxLength"===t?EF.operators.GT:EF.operators.LT,i=!1===o.opts.unicode?EF._`${r}.length`:EF._`${(0,CF.useFunc)(e.gen,PF.default)}(${r})`;e.fail$data(EF._`${i} ${a} ${n}`)}};$F.default=OF;var NF={};Object.defineProperty(NF,"__esModule",{value:!0});const RF=oM(),AF=MI,TF={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>AF.str`must match pattern "${e}"`,params:({schemaCode:e})=>AF._`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:n,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=r?AF._`(new RegExp(${o}, ${i}))`:(0,RF.usePattern)(e,n);e.fail$data(AF._`!${s}.test(${t})`)}};NF.default=TF;var IF={};Object.defineProperty(IF,"__esModule",{value:!0});const MF=MI,FF={message({keyword:e,schemaCode:t}){const r="maxProperties"===e?"more":"fewer";return MF.str`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>MF._`{limit: ${e}}`},DF={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:FF,code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxProperties"===t?MF.operators.GT:MF.operators.LT;e.fail$data(MF._`Object.keys(${r}).length ${o} ${n}`)}};IF.default=DF;var zF={};Object.defineProperty(zF,"__esModule",{value:!0});const LF=oM(),VF=MI,BF=zI,UF={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>VF.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>VF._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:r,schemaCode:n,data:o,$data:a,it:i}=e,{opts:s}=i;if(!a&&0===r.length)return;const l=r.length>=s.loopRequired;if(i.allErrors?function(){if(l||a)e.block$data(VF.nil,c);else for(const t of r)(0,LF.checkReportMissingProp)(e,t)}():function(){const i=t.let("missing");if(l||a){const r=t.let("valid",!0);e.block$data(r,(()=>function(r,a){e.setParams({missingProperty:r}),t.forOf(r,n,(()=>{t.assign(a,(0,LF.propertyInData)(t,o,r,s.ownProperties)),t.if((0,VF.not)(a),(()=>{e.error(),t.break()}))}),VF.nil)}(i,r))),e.ok(r)}else t.if((0,LF.checkMissingProp)(e,r,i)),(0,LF.reportMissingProp)(e,i),t.else()}(),s.strictRequired){const t=e.parentSchema.properties,{definedProperties:n}=e.it;for(const e of r)if(void 0===(null==t?void 0:t[e])&&!n.has(e)){const t=`required property "${e}" is not defined at "${i.schemaEnv.baseId+i.errSchemaPath}" (strictRequired)`;(0,BF.checkStrictMode)(i,t,i.opts.strictRequired)}}function c(){t.forOf("prop",n,(r=>{e.setParams({missingProperty:r}),t.if((0,LF.noPropertyInData)(t,o,r,s.ownProperties),(()=>e.error()))}))}}};zF.default=UF;var WF={};Object.defineProperty(WF,"__esModule",{value:!0});const qF=MI,KF={message({keyword:e,schemaCode:t}){const r="maxItems"===e?"more":"fewer";return qF.str`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>qF._`{limit: ${e}}`},HF={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:KF,code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxItems"===t?qF.operators.GT:qF.operators.LT;e.fail$data(qF._`${r}.length ${o} ${n}`)}};WF.default=HF;var GF={},QF={};Object.defineProperty(QF,"__esModule",{value:!0});const YF=hN;YF.code='require("ajv/dist/runtime/equal").default',QF.default=YF,Object.defineProperty(GF,"__esModule",{value:!0});const JF=KI,XF=MI,ZF=zI,eD=QF,tD={message:({params:{i:e,j:t}})=>XF.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>XF._`{i: ${e}, j: ${t}}`},rD={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:tD,code(e){const{gen:t,data:r,$data:n,schema:o,parentSchema:a,schemaCode:i,it:s}=e;if(!n&&!o)return;const l=t.let("valid"),c=a.items?(0,JF.getSchemaTypes)(a.items):[];function u(n,o){const a=t.name("item"),i=(0,JF.checkDataTypes)(c,a,s.opts.strictNumbers,JF.DataType.Wrong),u=t.const("indices",XF._`{}`);t.for(XF._`;${n}--;`,(()=>{t.let(a,XF._`${r}[${n}]`),t.if(i,XF._`continue`),c.length>1&&t.if(XF._`typeof ${a} == "string"`,XF._`${a} += "_"`),t.if(XF._`typeof ${u}[${a}] == "number"`,(()=>{t.assign(o,XF._`${u}[${a}]`),e.error(),t.assign(l,!1).break()})).code(XF._`${u}[${a}] = ${n}`)}))}function d(n,o){const a=(0,ZF.useFunc)(t,eD.default),i=t.name("outer");t.label(i).for(XF._`;${n}--;`,(()=>t.for(XF._`${o} = ${n}; ${o}--;`,(()=>t.if(XF._`${a}(${r}[${n}], ${r}[${o}])`,(()=>{e.error(),t.assign(l,!1).break(i)}))))))}e.block$data(l,(function(){const n=t.let("i",XF._`${r}.length`),o=t.let("j");e.setParams({i:n,j:o}),t.assign(l,!0),t.if(XF._`${n} > 1`,(()=>(c.length>0&&!c.some((e=>"object"===e||"array"===e))?u:d)(n,o)))}),XF._`${i} === false`),e.ok(l)}};GF.default=rD;var nD={};Object.defineProperty(nD,"__esModule",{value:!0});const oD=MI,aD=zI,iD=QF,sD={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>oD._`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,$data:n,schemaCode:o,schema:a}=e;n||a&&"object"==typeof a?e.fail$data(oD._`!${(0,aD.useFunc)(t,iD.default)}(${r}, ${o})`):e.fail(oD._`${a} !== ${r}`)}};nD.default=sD;var lD={};Object.defineProperty(lD,"__esModule",{value:!0});const cD=MI,uD=zI,dD=QF,fD={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>cD._`{allowedValues: ${e}}`},code(e){const{gen:t,data:r,$data:n,schema:o,schemaCode:a,it:i}=e;if(!n&&0===o.length)throw new Error("enum must have non-empty array");const s=o.length>=i.opts.loopEnum;let l;const c=()=>null!=l?l:l=(0,uD.useFunc)(t,dD.default);let u;if(s||n)u=t.let("valid"),e.block$data(u,(function(){t.assign(u,!1),t.forOf("v",a,(e=>t.if(cD._`${c()}(${r}, ${e})`,(()=>t.assign(u,!0).break()))))}));else{if(!Array.isArray(o))throw new Error("ajv implementation error");const e=t.const("vSchema",a);u=(0,cD.or)(...o.map(((t,n)=>function(e,t){const n=o[t];return"object"==typeof n&&null!==n?cD._`${c()}(${r}, ${e}[${t}])`:cD._`${r} === ${n}`}(e,n))))}e.pass(u)}};lD.default=fD,Object.defineProperty(pF,"__esModule",{value:!0});const pD=wF,mD=$F,hD=NF,vD=IF,yD=zF,gD=WF,bD=GF,wD=nD,SD=lD,xD=[mF.default,pD.default,mD.default,hD.default,vD.default,yD.default,gD.default,bD.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},wD.default,SD.default];pF.default=xD;var $D={},kD={};Object.defineProperty(kD,"__esModule",{value:!0}),kD.validateAdditionalItems=void 0;const _D=MI,ED=zI,CD={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>_D.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>_D._`{limit: ${e}}`},code(e){const{parentSchema:t,it:r}=e,{items:n}=t;Array.isArray(n)?PD(e,n):(0,ED.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function PD(e,t){const{gen:r,schema:n,data:o,keyword:a,it:i}=e;i.items=!0;const s=r.const("len",_D._`${o}.length`);if(!1===n)e.setParams({len:t.length}),e.pass(_D._`${s} <= ${t.length}`);else if("object"==typeof n&&!(0,ED.alwaysValidSchema)(i,n)){const n=r.var("valid",_D._`${s} <= ${t.length}`);r.if((0,_D.not)(n),(()=>function(n){r.forRange("i",t.length,s,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:ED.Type.Num},n),i.allErrors||r.if((0,_D.not)(n),(()=>r.break()))}))}(n))),e.ok(n)}}kD.validateAdditionalItems=PD,kD.default=CD;var jD={},OD={};Object.defineProperty(OD,"__esModule",{value:!0}),OD.validateTuple=void 0;const ND=MI,RD=zI,AD=oM(),TD={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return ID(e,"additionalItems",t);r.items=!0,(0,RD.alwaysValidSchema)(r,t)||e.ok((0,AD.validateArray)(e))}};function ID(e,t,r=e.schema){const{gen:n,parentSchema:o,data:a,keyword:i,it:s}=e;!function(e){const{opts:n,errSchemaPath:o}=s,a=r.length,l=a===e.minItems&&(a===e.maxItems||!1===e[t]);if(n.strictTuples&&!l){const e=`"${i}" is ${a}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,RD.checkStrictMode)(s,e,n.strictTuples)}}(o),s.opts.unevaluated&&r.length&&!0!==s.items&&(s.items=RD.mergeEvaluated.items(n,r.length,s.items));const l=n.name("valid"),c=n.const("len",ND._`${a}.length`);r.forEach(((t,r)=>{(0,RD.alwaysValidSchema)(s,t)||(n.if(ND._`${c} > ${r}`,(()=>e.subschema({keyword:i,schemaProp:r,dataProp:r},l))),e.ok(l))}))}OD.validateTuple=ID,OD.default=TD,Object.defineProperty(jD,"__esModule",{value:!0});const MD=OD,FD={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,MD.validateTuple)(e,"items")};jD.default=FD;var DD={};Object.defineProperty(DD,"__esModule",{value:!0});const zD=MI,LD=zI,VD=oM(),BD=kD,UD={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>zD.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>zD._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,(0,LD.alwaysValidSchema)(n,t)||(o?(0,BD.validateAdditionalItems)(e,o):e.ok((0,VD.validateArray)(e)))}};DD.default=UD;var WD={};Object.defineProperty(WD,"__esModule",{value:!0});const qD=MI,KD=zI,HD={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?qD.str`must contain at least ${e} valid item(s)`:qD.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?qD._`{minContains: ${e}}`:qD._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:r,parentSchema:n,data:o,it:a}=e;let i,s;const{minContains:l,maxContains:c}=n;a.opts.next?(i=void 0===l?1:l,s=c):i=1;const u=t.const("len",qD._`${o}.length`);if(e.setParams({min:i,max:s}),void 0===s&&0===i)return void(0,KD.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==s&&i>s)return(0,KD.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,KD.alwaysValidSchema)(a,r)){let t=qD._`${u} >= ${i}`;return void 0!==s&&(t=qD._`${t} && ${u} <= ${s}`),void e.pass(t)}a.items=!0;const d=t.name("valid");function f(){const e=t.name("_valid"),r=t.let("count",0);p(e,(()=>t.if(e,(()=>function(e){t.code(qD._`${e}++`),void 0===s?t.if(qD._`${e} >= ${i}`,(()=>t.assign(d,!0).break())):(t.if(qD._`${e} > ${s}`,(()=>t.assign(d,!1).break())),1===i?t.assign(d,!0):t.if(qD._`${e} >= ${i}`,(()=>t.assign(d,!0))))}(r)))))}function p(r,n){t.forRange("i",0,u,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:KD.Type.Num,compositeRule:!0},r),n()}))}void 0===s&&1===i?p(d,(()=>t.if(d,(()=>t.break())))):0===i?(t.let(d,!0),void 0!==s&&t.if(qD._`${o}.length > 0`,f)):(t.let(d,!1),f()),e.result(d,(()=>e.reset()))}};WD.default=HD;var GD={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=MI,r=zI,n=oM();e.error={message:({params:{property:e,depsCount:r,deps:n}})=>{const o=1===r?"property":"properties";return t.str`must have ${o} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:r,deps:n,missingProperty:o}})=>t._`{property: ${e},
29
+ || ${s} === "boolean" || ${a} === null`).assign(c,o._`[${a}]`)}}n.else(),f(e),n.endIf(),n.if(o._`${c} !== undefined`,(()=>{n.assign(a,c),function({gen:e,parentData:t,parentDataProperty:r},n){e.if(o._`${t} !== undefined`,(()=>e.assign(o._`${t}[${r}]`,n)))}(e,c)}))}(e,t,c):f(e)}))}return d};const l=new Set(["string","number","integer","boolean","null"]);function c(e,t,r,n=i.Correct){const a=n===i.Correct?o.operators.EQ:o.operators.NEQ;let s;switch(e){case"null":return o._`${t} ${a} null`;case"array":s=o._`Array.isArray(${t})`;break;case"object":s=o._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=l(o._`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=l();break;default:return o._`typeof ${t} ${a} ${e}`}return n===i.Correct?s:(0,o.not)(s);function l(e=o.nil){return(0,o.and)(o._`typeof ${t} == "number"`,e,r?o._`isFinite(${t})`:o.nil)}}function u(e,t,r,n){if(1===e.length)return c(e[0],t,r,n);let i;const s=(0,a.toHash)(e);if(s.array&&s.object){const e=o._`typeof ${t} != "object"`;i=s.null?e:o._`!${t} || ${e}`,delete s.null,delete s.array,delete s.object}else i=o.nil;s.number&&delete s.integer;for(const e in s)i=(0,o.and)(i,c(e,t,r,n));return i}e.checkDataType=c,e.checkDataTypes=u;const d={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?o._`{type: ${e}}`:o._`{type: ${t}}`};function f(e){const t=function(e){const{gen:t,data:r,schema:n}=e,o=(0,a.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}(e);(0,n.reportError)(t,d)}e.reportTypeError=f}(lI);var mI,hI={};var vI,yI,gI={},bI={};function wI(){if(vI)return bI;vI=1,Object.defineProperty(bI,"__esModule",{value:!0}),bI.validateUnion=bI.validateArray=bI.usePattern=bI.callValidateCode=bI.schemaProperties=bI.allSchemaProperties=bI.noPropertyInData=bI.propertyInData=bI.isOwnProperty=bI.hasPropFunc=bI.reportMissingProp=bI.checkMissingProp=bI.checkReportMissingProp=void 0;const e=XA,t=tI,r=iI(),n=tI;function o(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:e._`Object.prototype.hasOwnProperty`})}function a(t,r,n){return e._`${o(t)}.call(${r}, ${n})`}function i(t,r,n,o){const i=e._`${r}${(0,e.getProperty)(n)} === undefined`;return o?(0,e.or)(i,(0,e.not)(a(t,r,n))):i}function s(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}bI.checkReportMissingProp=function(t,r){const{gen:n,data:o,it:a}=t;n.if(i(n,o,r,a.opts.ownProperties),(()=>{t.setParams({missingProperty:e._`${r}`},!0),t.error()}))},bI.checkMissingProp=function({gen:t,data:r,it:{opts:n}},o,a){return(0,e.or)(...o.map((o=>(0,e.and)(i(t,r,o,n.ownProperties),e._`${a} = ${o}`))))},bI.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},bI.hasPropFunc=o,bI.isOwnProperty=a,bI.propertyInData=function(t,r,n,o){const i=e._`${r}${(0,e.getProperty)(n)} !== undefined`;return o?e._`${i} && ${a(t,r,n)}`:i},bI.noPropertyInData=i,bI.allSchemaProperties=s,bI.schemaProperties=function(e,r){return s(r).filter((n=>!(0,t.alwaysValidSchema)(e,r[n])))},bI.callValidateCode=function({schemaCode:t,data:n,it:{gen:o,topSchemaRef:a,schemaPath:i,errorPath:s},it:l},c,u,d){const f=d?e._`${t}, ${n}, ${a}${i}`:n,p=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,s)],[r.default.parentData,l.parentData],[r.default.parentDataProperty,l.parentDataProperty],[r.default.rootData,r.default.rootData]];l.opts.dynamicRef&&p.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const m=e._`${f}, ${o.object(...p)}`;return u!==e.nil?e._`${c}.call(${u}, ${m})`:e._`${c}(${m})`};const l=e._`new RegExp`;return bI.usePattern=function({gen:t,it:{opts:r}},o){const a=r.unicodeRegExp?"u":"",{regExp:i}=r.code,s=i(o,a);return t.scopeValue("pattern",{key:s.toString(),ref:s,code:e._`${"new RegExp"===i.code?l:(0,n.useFunc)(t,i)}(${o}, ${a})`})},bI.validateArray=function(r){const{gen:n,data:o,keyword:a,it:i}=r,s=n.name("valid");if(i.allErrors){const e=n.let("valid",!0);return l((()=>n.assign(e,!1))),e}return n.var(s,!0),l((()=>n.break())),s;function l(i){const l=n.const("len",e._`${o}.length`);n.forRange("i",0,l,(o=>{r.subschema({keyword:a,dataProp:o,dataPropType:t.Type.Num},s),n.if((0,e.not)(s),i)}))}},bI.validateUnion=function(r){const{gen:n,schema:o,keyword:a,it:i}=r;if(!Array.isArray(o))throw new Error("ajv implementation error");if(o.some((e=>(0,t.alwaysValidSchema)(i,e)))&&!i.opts.unevaluated)return;const s=n.let("valid",!1),l=n.name("_valid");n.block((()=>o.forEach(((t,o)=>{const i=r.subschema({keyword:a,schemaProp:o,compositeRule:!0},l);n.assign(s,e._`${s} || ${l}`);r.mergeValidEvaluated(i,l)||n.if((0,e.not)(s))})))),r.result(s,(()=>r.reset()),(()=>r.error(!0)))},bI}function SI(){if(yI)return gI;yI=1,Object.defineProperty(gI,"__esModule",{value:!0}),gI.validateKeywordUsage=gI.validSchemaType=gI.funcKeywordCode=gI.macroKeywordCode=void 0;const e=XA,t=iI(),r=wI(),n=sI();function o(t){const{gen:r,data:n,it:o}=t;r.if(o.parentData,(()=>r.assign(n,e._`${o.parentData}[${o.parentDataProperty}]`)))}function a(t,r,n){if(void 0===n)throw new Error(`keyword "${r}" failed to compile`);return t.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,e.stringify)(n)})}return gI.macroKeywordCode=function(t,r){const{gen:n,keyword:o,schema:i,parentSchema:s,it:l}=t,c=r.macro.call(l.self,i,s,l),u=a(n,o,c);!1!==l.opts.validateSchema&&l.self.validateSchema(c,!0);const d=n.name("valid");t.subschema({schema:c,schemaPath:e.nil,errSchemaPath:`${l.errSchemaPath}/${o}`,topSchemaRef:u,compositeRule:!0},d),t.pass(d,(()=>t.error(!0)))},gI.funcKeywordCode=function(i,s){var l;const{gen:c,keyword:u,schema:d,parentSchema:f,$data:p,it:m}=i;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(m,s);const h=!p&&s.compile?s.compile.call(m.self,d,f,m):s.validate,v=a(c,u,h),y=c.let("valid");function g(n=(s.async?e._`await `:e.nil)){const o=m.opts.passContext?t.default.this:t.default.self,a=!("compile"in s&&!p||!1===s.schema);c.assign(y,e._`${n}${(0,r.callValidateCode)(i,v,o,a)}`,s.modifying)}function b(t){var r;c.if((0,e.not)(null!==(r=s.valid)&&void 0!==r?r:y),t)}i.block$data(y,(function(){if(!1===s.errors)g(),s.modifying&&o(i),b((()=>i.error()));else{const r=s.async?function(){const t=c.let("ruleErrs",null);return c.try((()=>g(e._`await `)),(r=>c.assign(y,!1).if(e._`${r} instanceof ${m.ValidationError}`,(()=>c.assign(t,e._`${r}.errors`)),(()=>c.throw(r))))),t}():function(){const t=e._`${v}.errors`;return c.assign(t,null),g(e.nil),t}();s.modifying&&o(i),b((()=>function(r,o){const{gen:a}=r;a.if(e._`Array.isArray(${o})`,(()=>{a.assign(t.default.vErrors,e._`${t.default.vErrors} === null ? ${o} : ${t.default.vErrors}.concat(${o})`).assign(t.default.errors,e._`${t.default.vErrors}.length`),(0,n.extendErrors)(r)}),(()=>r.error()))}(i,r)))}})),i.ok(null!==(l=s.valid)&&void 0!==l?l:y)},gI.validSchemaType=function(e,t,r=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e))},gI.validateKeywordUsage=function({schema:e,opts:t,self:r,errSchemaPath:n},o,a){if(Array.isArray(o.keyword)?!o.keyword.includes(a):o.keyword!==a)throw new Error("ajv implementation error");const i=o.dependencies;if(null==i?void 0:i.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(o.validateSchema){if(!o.validateSchema(e[a])){const e=`keyword "${a}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);r.logger.error(e)}}},gI}var xI,$I={};var kI={},_I={exports:{}},EI=_I.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),CI(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function CI(e,t,r,n,o,a,i,s,l,c){if(n&&"object"==typeof n&&!Array.isArray(n)){for(var u in t(n,o,a,i,s,l,c),n){var d=n[u];if(Array.isArray(d)){if(u in EI.arrayKeywords)for(var f=0;f<d.length;f++)CI(e,t,r,d[f],o+"/"+u+"/"+f,a,o,u,n,f)}else if(u in EI.propsKeywords){if(d&&"object"==typeof d)for(var p in d)CI(e,t,r,d[p],o+"/"+u+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),a,o,u,n,p)}else(u in EI.keywords||e.allKeys&&!(u in EI.skipKeywords))&&CI(e,t,r,d,o+"/"+u,a,o,u,n)}r(n,o,a,i,s,l,c)}}EI.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},EI.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},EI.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},EI.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};var PI=_I.exports;Object.defineProperty(kI,"__esModule",{value:!0}),kI.getSchemaRefs=kI.resolveUrl=kI.normalizeId=kI._getFullPath=kI.getFullPath=kI.inlineRef=void 0;const jI=tI,OI=NO,NI=PI,RI=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);kI.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!AI(e):!!t&&II(e)<=t)};const TI=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function AI(e){for(const t in e){if(TI.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(AI))return!0;if("object"==typeof r&&AI(r))return!0}return!1}function II(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!RI.has(r)&&("object"==typeof e[r]&&(0,jI.eachItem)(e[r],(e=>t+=II(e))),t===1/0))return 1/0}return t}function MI(e,t="",r){!1!==r&&(t=zI(t));const n=e.parse(t);return FI(e,n)}function FI(e,t){return e.serialize(t).split("#")[0]+"#"}kI.getFullPath=MI,kI._getFullPath=FI;const DI=/#\/?$/;function zI(e){return e?e.replace(DI,""):""}kI.normalizeId=zI,kI.resolveUrl=function(e,t,r){return r=zI(r),e.resolve(t,r)};const LI=/^[a-z_][-a-z0-9._]*$/i;var VI;function BI(){if(VI)return QA;VI=1,Object.defineProperty(QA,"__esModule",{value:!0}),QA.getData=QA.KeywordCxt=QA.validateFunctionCode=void 0;const e=function(){if(oI)return YA;oI=1,Object.defineProperty(YA,"__esModule",{value:!0}),YA.boolOrEmptySchema=YA.topBoolOrEmptySchema=void 0;const e=sI(),t=XA,r=iI(),n={message:"boolean schema is false"};function o(t,r){const{gen:o,data:a}=t,i={gen:o,keyword:"false schema",data:a,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,e.reportError)(i,n,void 0,r)}return YA.topBoolOrEmptySchema=function(e){const{gen:n,schema:a,validateName:i}=e;!1===a?o(e,!1):"object"==typeof a&&!0===a.$async?n.return(r.default.data):(n.assign(t._`${i}.errors`,null),n.return(!0))},YA.boolOrEmptySchema=function(e,t){const{gen:r,schema:n}=e;!1===n?(r.var(t,!1),o(e)):r.var(t,!0)},YA}(),t=lI,r=pI(),n=lI,o=function(){if(mI)return hI;mI=1,Object.defineProperty(hI,"__esModule",{value:!0}),hI.assignDefaults=void 0;const e=XA,t=tI;function r(r,n,o){const{gen:a,compositeRule:i,data:s,opts:l}=r;if(void 0===o)return;const c=e._`${s}${(0,e.getProperty)(n)}`;if(i)return void(0,t.checkStrictMode)(r,`default is ignored for: ${c}`);let u=e._`${c} === undefined`;"empty"===l.useDefaults&&(u=e._`${u} || ${c} === null || ${c} === ""`),a.if(u,e._`${c} = ${(0,e.stringify)(o)}`)}return hI.assignDefaults=function(e,t){const{properties:n,items:o}=e.schema;if("object"===t&&n)for(const t in n)r(e,t,n[t].default);else"array"===t&&Array.isArray(o)&&o.forEach(((t,n)=>r(e,n,t.default)))},hI}(),a=SI(),i=function(){if(xI)return $I;xI=1,Object.defineProperty($I,"__esModule",{value:!0}),$I.extendSubschemaMode=$I.extendSubschemaData=$I.getSubschema=void 0;const e=XA,t=tI;return $I.getSubschema=function(r,{keyword:n,schemaProp:o,schema:a,schemaPath:i,errSchemaPath:s,topSchemaRef:l}){if(void 0!==n&&void 0!==a)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==n){const a=r.schema[n];return void 0===o?{schema:a,schemaPath:e._`${r.schemaPath}${(0,e.getProperty)(n)}`,errSchemaPath:`${r.errSchemaPath}/${n}`}:{schema:a[o],schemaPath:e._`${r.schemaPath}${(0,e.getProperty)(n)}${(0,e.getProperty)(o)}`,errSchemaPath:`${r.errSchemaPath}/${n}/${(0,t.escapeFragment)(o)}`}}if(void 0!==a){if(void 0===i||void 0===s||void 0===l)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:a,schemaPath:i,topSchemaRef:l,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')},$I.extendSubschemaData=function(r,n,{dataProp:o,dataPropType:a,data:i,dataTypes:s,propertyName:l}){if(void 0!==i&&void 0!==o)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:c}=n;if(void 0!==o){const{errorPath:i,dataPathArr:s,opts:l}=n;u(c.let("data",e._`${n.data}${(0,e.getProperty)(o)}`,!0)),r.errorPath=e.str`${i}${(0,t.getErrorPath)(o,a,l.jsPropertySyntax)}`,r.parentDataProperty=e._`${o}`,r.dataPathArr=[...s,r.parentDataProperty]}function u(e){r.data=e,r.dataLevel=n.dataLevel+1,r.dataTypes=[],n.definedProperties=new Set,r.parentData=n.data,r.dataNames=[...n.dataNames,e]}void 0!==i&&(u(i instanceof e.Name?i:c.let("data",i,!0)),void 0!==l&&(r.propertyName=l)),s&&(r.dataTypes=s)},$I.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:a}){void 0!==n&&(e.compositeRule=n),void 0!==o&&(e.createErrors=o),void 0!==a&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=r},$I}(),s=XA,l=iI(),c=kI,u=tI,d=sI();function f({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},a){o.code.es5?e.func(t,s._`${l.default.data}, ${l.default.valCxt}`,n.$async,(()=>{e.code(s._`"use strict"; ${p(r,o)}`),function(e,t){e.if(l.default.valCxt,(()=>{e.var(l.default.instancePath,s._`${l.default.valCxt}.${l.default.instancePath}`),e.var(l.default.parentData,s._`${l.default.valCxt}.${l.default.parentData}`),e.var(l.default.parentDataProperty,s._`${l.default.valCxt}.${l.default.parentDataProperty}`),e.var(l.default.rootData,s._`${l.default.valCxt}.${l.default.rootData}`),t.dynamicRef&&e.var(l.default.dynamicAnchors,s._`${l.default.valCxt}.${l.default.dynamicAnchors}`)}),(()=>{e.var(l.default.instancePath,s._`""`),e.var(l.default.parentData,s._`undefined`),e.var(l.default.parentDataProperty,s._`undefined`),e.var(l.default.rootData,l.default.data),t.dynamicRef&&e.var(l.default.dynamicAnchors,s._`{}`)}))}(e,o),e.code(a)})):e.func(t,s._`${l.default.data}, ${function(e){return s._`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${e.dynamicRef?s._`, ${l.default.dynamicAnchors}={}`:s.nil}}={}`}(o)}`,n.$async,(()=>e.code(p(r,o)).code(a)))}function p(e,t){const r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?s._`/*# sourceURL=${r} */`:s.nil}function m(t,r){v(t)&&(y(t),h(t))?function(e,t){const{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&b(e);(function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,c.resolveUrl)(e.opts.uriResolver,e.baseId,t))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const a=n.const("_errs",l.default.errors);g(e,a),n.var(t,s._`${a} === ${l.default.errors}`)}(t,r):(0,e.boolOrEmptySchema)(t,r)}function h({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function y(e){(0,u.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function g(e,r){if(e.opts.jtd)return w(e,[],!1,r);const n=(0,t.getSchemaTypes)(e.schema);w(e,n,!(0,t.coerceAndCheckDataType)(e,n),r)}function b({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){const a=r.$comment;if(!0===o.$comment)e.code(s._`${l.default.self}.logger.log(${a})`);else if("function"==typeof o.$comment){const r=s.str`${n}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code(s._`${l.default.self}.opts.$comment(${a}, ${r}, ${o}.schema)`)}}function w(e,t,o,a){const{gen:i,schema:c,data:d,allErrors:f,opts:p,self:m}=e,{RULES:h}=m;function v(u){(0,r.shouldUseGroup)(c,u)&&(u.type?(i.if((0,n.checkDataType)(u.type,d,p.strictNumbers)),S(e,u),1===t.length&&t[0]===u.type&&o&&(i.else(),(0,n.reportTypeError)(e)),i.endIf()):S(e,u),f||i.if(s._`${l.default.errors} === ${a||0}`))}!c.$ref||!p.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(c,h)?(p.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach((t=>{$(e.dataTypes,t)||k(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const r=[];for(const n of e.dataTypes)$(t,n)?r.push(n):t.includes("integer")&&"number"===n&&r.push("integer");e.dataTypes=r}(e,t)})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&k(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const n=e.self.RULES.all;for(const o in n){const a=n[o];if("object"==typeof a&&(0,r.shouldUseRule)(e.schema,a)){const{type:r}=a.definition;r.length&&!r.some((e=>x(t,e)))&&k(e,`missing type "${r.join(",")}" for keyword "${o}"`)}}}(e,e.dataTypes)}(e,t),i.block((()=>{for(const e of h.rules)v(e);v(h.post)}))):i.block((()=>E(e,"$ref",h.all.$ref.definition)))}function S(e,t){const{gen:n,schema:a,opts:{useDefaults:i}}=e;i&&(0,o.assignDefaults)(e,t.type),n.block((()=>{for(const n of t.rules)(0,r.shouldUseRule)(a,n)&&E(e,n.keyword,n.definition,t.type)}))}function x(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function $(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function k(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,u.checkStrictMode)(e,t,e.opts.strictTypes)}QA.validateFunctionCode=function(t){v(t)&&(y(t),h(t))?function(e){const{schema:t,opts:r,gen:n}=e;f(e,(()=>{r.$comment&&t.$comment&&b(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,u.checkStrictMode)(e,"default is ignored in the schema root")}(e),n.let(l.default.vErrors,null),n.let(l.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",s._`${r}.evaluated`),t.if(s._`${e.evaluated}.dynamicProps`,(()=>t.assign(s._`${e.evaluated}.props`,s._`undefined`))),t.if(s._`${e.evaluated}.dynamicItems`,(()=>t.assign(s._`${e.evaluated}.items`,s._`undefined`)))}(e),g(e),function(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:a}=e;r.$async?t.if(s._`${l.default.errors} === 0`,(()=>t.return(l.default.data)),(()=>t.throw(s._`new ${o}(${l.default.vErrors})`))):(t.assign(s._`${n}.errors`,l.default.vErrors),a.unevaluated&&function({gen:e,evaluated:t,props:r,items:n}){r instanceof s.Name&&e.assign(s._`${t}.props`,r);n instanceof s.Name&&e.assign(s._`${t}.items`,n)}(e),t.return(s._`${l.default.errors} === 0`))}(e)}))}(t):f(t,(()=>(0,e.topBoolOrEmptySchema)(t)))};class _{constructor(e,t,r){if((0,a.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",j(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,a.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",l.default.errors))}result(e,t,r){this.failResult((0,s.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,s.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(s._`${t} !== undefined && (${(0,s.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t)return this.setParams(t),this._error(e,r),void this.setParams({});this._error(e,r)}_error(e,t){(e?d.reportExtraError:d.reportError)(this,this.def.error,t)}$dataError(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=s.nil){this.gen.block((()=>{this.check$data(e,r),t()}))}check$data(e=s.nil,t=s.nil){if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:o,def:a}=this;r.if((0,s.or)(s._`${n} === undefined`,t)),e!==s.nil&&r.assign(e,!0),(o.length||a.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==s.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:o,it:a}=this;return(0,s.or)(function(){if(r.length){if(!(t instanceof s.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return s._`${(0,n.checkDataTypes)(e,t,a.opts.strictNumbers,n.DataType.Wrong)}`}return s.nil}(),function(){if(o.validateSchema){const r=e.scopeValue("validate$data",{ref:o.validateSchema});return s._`!${r}(${t})`}return s.nil}())}subschema(e,t){const r=(0,i.getSubschema)(this.it,e);(0,i.extendSubschemaData)(r,this.it,e),(0,i.extendSubschemaMode)(r,e);const n={...this.it,...r,items:void 0,props:void 0};return m(n,t),n}mergeEvaluated(e,t){const{it:r,gen:n}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=u.mergeEvaluated.props(n,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=u.mergeEvaluated.items(n,e.items,r.items,t)))}mergeValidEvaluated(e,t){const{it:r,gen:n}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return n.if(t,(()=>this.mergeEvaluated(e,s.Name))),!0}}function E(e,t,r,n){const o=new _(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,a.funcKeywordCode)(o,r):"macro"in r?(0,a.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,a.funcKeywordCode)(o,r)}QA.KeywordCxt=_;const C=/^\/(?:[^~]|~0|~1)*$/,P=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function j(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,a;if(""===e)return l.default.rootData;if("/"===e[0]){if(!C.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=l.default.rootData}else{const i=P.exec(e);if(!i)throw new Error(`Invalid JSON-pointer: ${e}`);const s=+i[1];if(o=i[2],"#"===o){if(s>=t)throw new Error(d("property/index",s));return n[t-s]}if(s>t)throw new Error(d("data",s));if(a=r[t-s],!o)return a}let i=a;const c=o.split("/");for(const e of c)e&&(a=s._`${a}${(0,s.getProperty)((0,u.unescapeJsonPointer)(e))}`,i=s._`${i} && ${a}`);return i;function d(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}return QA.getData=j,QA}kI.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:r,uriResolver:n}=this.opts,o=zI(e[r]||t),a={"":o},i=MI(n,o,!1),s={},l=new Set;return NI(e,{allKeys:!0},((e,t,n,o)=>{if(void 0===o)return;const d=i+t;let f=a[o];function p(t){const r=this.opts.uriResolver.resolve;if(t=zI(f?r(f,t):t),l.has(t))throw u(t);l.add(t);let n=this.refs[t];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?c(e,n.schema,t):t!==zI(d)&&("#"===t[0]?(c(e,s[t],t),s[t]=e):this.refs[t]=d),t}function m(e){if("string"==typeof e){if(!LI.test(e))throw new Error(`invalid anchor "${e}"`);p.call(this,`#${e}`)}}"string"==typeof e[r]&&(f=p.call(this,e[r])),m.call(this,e.$anchor),m.call(this,e.$dynamicAnchor),a[t]=f})),s;function c(e,t,r){if(void 0!==t&&!OI(e,t))throw u(r)}function u(e){return new Error(`reference "${e}" resolves to more than one schema`)}};var UI,WI={};function qI(){if(UI)return WI;UI=1,Object.defineProperty(WI,"__esModule",{value:!0});class e extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}return WI.default=e,WI}var KI,HI={};function GI(){if(KI)return HI;KI=1,Object.defineProperty(HI,"__esModule",{value:!0});const e=kI;class t extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,e.resolveUrl)(t,r,n),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(t,this.missingRef))}}return HI.default=t,HI}var QI={};Object.defineProperty(QI,"__esModule",{value:!0}),QI.resolveSchema=QI.getCompilingSchema=QI.resolveRef=QI.compileSchema=QI.SchemaEnv=void 0;const YI=XA,JI=qI(),XI=iI(),ZI=kI,eM=tI,tM=BI();class rM{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,ZI.normalizeId)(null==r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==r?void 0:r.$async,this.refs={}}}function nM(e){const t=aM.call(this,e);if(t)return t;const r=(0,ZI.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new YI.CodeGen(this.scope,{es5:n,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:JI.default,code:YI._`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const c={gen:i,allErrors:this.opts.allErrors,data:XI.default.data,parentData:XI.default.parentData,parentDataProperty:XI.default.parentDataProperty,dataNames:[XI.default.data],dataPathArr:[YI.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,YI.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:YI.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:YI._`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,tM.validateFunctionCode)(c),i.optimize(this.opts.code.optimize);const t=i.toString();u=`${i.scopeRefs(XI.default.scope)}return ${t}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const r=new Function(`${XI.default.self}`,`${XI.default.scope}`,u)(this,this.scope.get());if(this.scope.value(l,{ref:r}),r.errors=null,r.schema=e.schema,r.schemaEnv=e,e.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:l,validateCode:t,scopeValues:i._values}),this.opts.unevaluated){const{props:e,items:t}=c;r.evaluated={props:e instanceof YI.Name?void 0:e,items:t instanceof YI.Name?void 0:t,dynamicProps:e instanceof YI.Name,dynamicItems:t instanceof YI.Name},r.source&&(r.source.evaluated=(0,YI.stringify)(r.evaluated))}return e.validate=r,e}catch(t){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),t}finally{this._compilations.delete(e)}}function oM(e){return(0,ZI.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:nM.call(this,e)}function aM(e){for(const n of this._compilations)if(r=e,(t=n).schema===r.schema&&t.root===r.root&&t.baseId===r.baseId)return n;var t,r}function iM(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||sM.call(this,e,t)}function sM(e,t){const r=this.opts.uriResolver.parse(t),n=(0,ZI._getFullPath)(this.opts.uriResolver,r);let o=(0,ZI.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return cM.call(this,r,e);const a=(0,ZI.normalizeId)(n),i=this.refs[a]||this.schemas[a];if("string"==typeof i){const t=sM.call(this,e,i);if("object"!=typeof(null==t?void 0:t.schema))return;return cM.call(this,r,t)}if("object"==typeof(null==i?void 0:i.schema)){if(i.validate||nM.call(this,i),a===(0,ZI.normalizeId)(t)){const{schema:t}=i,{schemaId:r}=this.opts,n=t[r];return n&&(o=(0,ZI.resolveUrl)(this.opts.uriResolver,o,n)),new rM({schema:t,schemaId:r,root:e,baseId:o})}return cM.call(this,r,i)}}QI.SchemaEnv=rM,QI.compileSchema=nM,QI.resolveRef=function(e,t,r){var n;r=(0,ZI.resolveUrl)(this.opts.uriResolver,t,r);const o=e.refs[r];if(o)return o;let a=iM.call(this,e,r);if(void 0===a){const o=null===(n=e.localRefs)||void 0===n?void 0:n[r],{schemaId:i}=this.opts;o&&(a=new rM({schema:o,schemaId:i,root:e,baseId:t}))}return void 0!==a?e.refs[r]=oM.call(this,a):void 0},QI.getCompilingSchema=aM,QI.resolveSchema=sM;const lM=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function cM(e,{baseId:t,schema:r,root:n}){var o;if("/"!==(null===(o=e.fragment)||void 0===o?void 0:o[0]))return;for(const n of e.fragment.slice(1).split("/")){if("boolean"==typeof r)return;const e=r[(0,eM.unescapeFragment)(n)];if(void 0===e)return;const o="object"==typeof(r=e)&&r[this.opts.schemaId];!lM.has(n)&&o&&(t=(0,ZI.resolveUrl)(this.opts.uriResolver,t,o))}let a;if("boolean"!=typeof r&&r.$ref&&!(0,eM.schemaHasRulesButRef)(r,this.RULES)){const e=(0,ZI.resolveUrl)(this.opts.uriResolver,t,r.$ref);a=sM.call(this,n,e)}const{schemaId:i}=this.opts;return a=a||new rM({schema:r,schemaId:i,root:n,baseId:t}),a.schema!==a.root.schema?a:void 0}var uM={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},dM={};Object.defineProperty(dM,"__esModule",{value:!0});const fM=wN;fM.code='require("ajv/dist/runtime/uri").default',dM.default=fM,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=BI();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=XA;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=qI(),o=GI(),a=cI,i=QI,s=XA,l=kI,c=lI,u=tI,d=uM,f=dM,p=(e,t)=>new RegExp(e,t);p.code="new RegExp";const m=["removeAdditional","useDefaults","coerceTypes"],h=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},y={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function g(e){var t,r,n,o,a,i,s,l,c,u,d,m,h,v,y,g,b,w,S,x,$,k,_,E,C;const P=e.strict,j=null===(t=e.code)||void 0===t?void 0:t.optimize,O=!0===j||void 0===j?1:j||0,N=null!==(n=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==n?n:p,R=null!==(o=e.uriResolver)&&void 0!==o?o:f.default;return{strictSchema:null===(i=null!==(a=e.strictSchema)&&void 0!==a?a:P)||void 0===i||i,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:P)||void 0===l||l,strictTypes:null!==(u=null!==(c=e.strictTypes)&&void 0!==c?c:P)&&void 0!==u?u:"log",strictTuples:null!==(m=null!==(d=e.strictTuples)&&void 0!==d?d:P)&&void 0!==m?m:"log",strictRequired:null!==(v=null!==(h=e.strictRequired)&&void 0!==h?h:P)&&void 0!==v&&v,code:e.code?{...e.code,optimize:O,regExp:N}:{optimize:O,regExp:N},loopRequired:null!==(y=e.loopRequired)&&void 0!==y?y:200,loopEnum:null!==(g=e.loopEnum)&&void 0!==g?g:200,meta:null===(b=e.meta)||void 0===b||b,messages:null===(w=e.messages)||void 0===w||w,inlineRefs:null===(S=e.inlineRefs)||void 0===S||S,schemaId:null!==(x=e.schemaId)&&void 0!==x?x:"$id",addUsedSchema:null===($=e.addUsedSchema)||void 0===$||$,validateSchema:null===(k=e.validateSchema)||void 0===k||k,validateFormats:null===(_=e.validateFormats)||void 0===_||_,unicodeRegExp:null===(E=e.unicodeRegExp)||void 0===E||E,int32range:null===(C=e.int32range)||void 0===C||C,uriResolver:R}}class b{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...g(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:h,es5:t,lines:r}),this.logger=function(e){if(!1===e)return E;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const n=e.validateFormats;e.validateFormats=!1,this.RULES=(0,a.getRules)(),w.call(this,v,e,"NOT SUPPORTED"),w.call(this,y,e,"DEPRECATED","warn"),this._metaOpts=_.call(this),e.formats&&$.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&k.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),x.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let n=d;"id"===r&&(n={...d},n.id=n.$id,delete n.$id),t&&e&&this.addMetaSchema(n,n[r],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);const n=r(t);return"$async"in r||(this.errors=r.errors),n}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return n.call(this,e,t);async function n(e,t){await a.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||i.call(this,r)}async function a(e){e&&!this.getSchema(e)&&await n.call(this,{$ref:e},!0)}async function i(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof o.default))throw t;return s.call(this,t),await l.call(this,t.missingSchema),i.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function l(e){const r=await c.call(this,e);this.refs[e]||await a.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function c(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,n=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,n);return this}let o;if("object"==typeof e){const{schemaId:t}=this.opts;if(o=e[t],void 0!==o&&"string"!=typeof o)throw new Error(`schema ${t} must be string`)}return t=(0,l.normalizeId)(t||o),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,n,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let r;if(r=e.$schema,void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const n=this.validate(r,e);if(!n&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return n}getSchema(e){let t;for(;"string"==typeof(t=S.call(this,e));)e=t;if(void 0===t){const{schemaId:r}=this.opts,n=new i.SchemaEnv({schema:{},schemaId:r});if(t=i.resolveSchema.call(this,n,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=S.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];return r&&(r=(0,l.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(P.call(this,r,t),!t)return(0,u.eachItem)(r,(e=>j.call(this,e))),this;N.call(this,t);const n={...t,type:(0,c.getJSONTypes)(t.type),schemaType:(0,c.getJSONTypes)(t.schemaType)};return(0,u.eachItem)(r,0===n.type.length?e=>j.call(this,e,n):e=>n.type.forEach((t=>j.call(this,e,n,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map((e=>`${r}${e.instancePath} ${e.message}`)).reduce(((e,r)=>e+t+r)):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const n of t){const t=n.split("/").slice(1);let o=e;for(const e of t)o=o[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:n}=t.definition,a=o[e];n&&a&&(o[e]=T(a))}}return e}_removeAllSchemas(e,t){for(const r in e){const n=e[r];t&&!t.test(r)||("string"==typeof n?delete e[r]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[r]))}}_addSchema(e,t,r,n=this.opts.validateSchema,o=this.opts.addUsedSchema){let a;const{schemaId:s}=this.opts;if("object"==typeof e)a=e[s];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let c=this._cache.get(e);if(void 0!==c)return c;r=(0,l.normalizeId)(a||r);const u=l.getSchemaRefs.call(this,e,r);return c=new i.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:r,localRefs:u}),this._cache.set(c.schema,c),o&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=c),n&&this.validateSchema(e,!0),c}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):i.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,e)}finally{this.opts=t}}}function w(e,t,r,n="error"){for(const o in e){const a=o;a in t&&this.logger[n](`${r}: option ${o}. ${e[a]}`)}}function S(e){return e=(0,l.normalizeId)(e),this.schemas[e]||this.refs[e]}function x(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function $(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function k(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function _(){const e={...this.opts};for(const t of m)delete e[t];return e}e.default=b,b.ValidationError=n.default,b.MissingRefError=o.default;const E={log(){},warn(){},error(){}};const C=/^[a-z_$][a-z0-9_$:-]*$/i;function P(e,t){const{RULES:r}=this;if((0,u.eachItem)(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!C.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function j(e,t,r){var n;const o=null==t?void 0:t.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:a}=this;let i=o?a.post:a.rules.find((({type:e})=>e===r));if(i||(i={type:r,rules:[]},a.rules.push(i)),a.keywords[e]=!0,!t)return;const s={keyword:e,definition:{...t,type:(0,c.getJSONTypes)(t.type),schemaType:(0,c.getJSONTypes)(t.schemaType)}};t.before?O.call(this,i,s,t.before):i.rules.push(s),a.all[e]=s,null===(n=t.implements)||void 0===n||n.forEach((e=>this.addKeyword(e)))}function O(e,t,r){const n=e.rules.findIndex((e=>e.keyword===r));n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function N(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=T(t)),e.validateSchema=this.compile(t,!0))}const R={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function T(e){return{anyOf:[e,R]}}}(GA);var pM={},mM={},hM={};Object.defineProperty(hM,"__esModule",{value:!0});const vM={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};hM.default=vM;var yM={};Object.defineProperty(yM,"__esModule",{value:!0}),yM.callRef=yM.getValidate=void 0;const gM=GI(),bM=wI(),wM=XA,SM=iI(),xM=QI,$M=tI,kM={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:o,schemaEnv:a,validateName:i,opts:s,self:l}=n,{root:c}=a;if(("#"===r||"#/"===r)&&o===c.baseId)return function(){if(a===c)return EM(e,i,a,a.$async);const r=t.scopeValue("root",{ref:c});return EM(e,wM._`${r}.validate`,c,c.$async)}();const u=xM.resolveRef.call(l,c,o,r);if(void 0===u)throw new gM.default(n.opts.uriResolver,o,r);return u instanceof xM.SchemaEnv?function(t){const r=_M(e,t);EM(e,r,t,t.$async)}(u):function(n){const o=t.scopeValue("schema",!0===s.code.source?{ref:n,code:(0,wM.stringify)(n)}:{ref:n}),a=t.name("valid"),i=e.subschema({schema:n,dataTypes:[],schemaPath:wM.nil,topSchemaRef:o,errSchemaPath:r},a);e.mergeEvaluated(i),e.ok(a)}(u)}};function _M(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):wM._`${r.scopeValue("wrapper",{ref:t})}.validate`}function EM(e,t,r,n){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,c=l.passContext?SM.default.this:wM.nil;function u(e){const t=wM._`${e}.errors`;o.assign(SM.default.vErrors,wM._`${SM.default.vErrors} === null ? ${t} : ${SM.default.vErrors}.concat(${t})`),o.assign(SM.default.errors,wM._`${SM.default.vErrors}.length`)}function d(e){var t;if(!a.opts.unevaluated)return;const n=null===(t=null==r?void 0:r.validate)||void 0===t?void 0:t.evaluated;if(!0!==a.props)if(n&&!n.dynamicProps)void 0!==n.props&&(a.props=$M.mergeEvaluated.props(o,n.props,a.props));else{const t=o.var("props",wM._`${e}.evaluated.props`);a.props=$M.mergeEvaluated.props(o,t,a.props,wM.Name)}if(!0!==a.items)if(n&&!n.dynamicItems)void 0!==n.items&&(a.items=$M.mergeEvaluated.items(o,n.items,a.items));else{const t=o.var("items",wM._`${e}.evaluated.items`);a.items=$M.mergeEvaluated.items(o,t,a.items,wM.Name)}}n?function(){if(!s.$async)throw new Error("async schema referenced by sync schema");const r=o.let("valid");o.try((()=>{o.code(wM._`await ${(0,bM.callValidateCode)(e,t,c)}`),d(t),i||o.assign(r,!0)}),(e=>{o.if(wM._`!(${e} instanceof ${a.ValidationError})`,(()=>o.throw(e))),u(e),i||o.assign(r,!1)})),e.ok(r)}():e.result((0,bM.callValidateCode)(e,t,c),(()=>d(t)),(()=>u(t)))}yM.getValidate=_M,yM.callRef=EM,yM.default=kM,Object.defineProperty(mM,"__esModule",{value:!0});const CM=yM,PM=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",hM.default,CM.default];mM.default=PM;var jM={},OM={};Object.defineProperty(OM,"__esModule",{value:!0});const NM=XA,RM=NM.operators,TM={maximum:{okStr:"<=",ok:RM.LTE,fail:RM.GT},minimum:{okStr:">=",ok:RM.GTE,fail:RM.LT},exclusiveMaximum:{okStr:"<",ok:RM.LT,fail:RM.GTE},exclusiveMinimum:{okStr:">",ok:RM.GT,fail:RM.LTE}},AM={message:({keyword:e,schemaCode:t})=>NM.str`must be ${TM[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>NM._`{comparison: ${TM[e].okStr}, limit: ${t}}`},IM={keyword:Object.keys(TM),type:"number",schemaType:"number",$data:!0,error:AM,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data(NM._`${r} ${TM[t].fail} ${n} || isNaN(${r})`)}};OM.default=IM;var MM={};Object.defineProperty(MM,"__esModule",{value:!0});const FM=XA,DM={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>FM.str`must be multiple of ${e}`,params:({schemaCode:e})=>FM._`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:n,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?FM._`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:FM._`${i} !== parseInt(${i})`;e.fail$data(FM._`(${n} === 0 || (${i} = ${r}/${n}, ${s}))`)}};MM.default=DM;var zM={},LM={};function VM(e){const t=e.length;let r,n=0,o=0;for(;o<t;)n++,r=e.charCodeAt(o++),r>=55296&&r<=56319&&o<t&&(r=e.charCodeAt(o),56320==(64512&r)&&o++);return n}Object.defineProperty(LM,"__esModule",{value:!0}),LM.default=VM,VM.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty(zM,"__esModule",{value:!0});const BM=XA,UM=tI,WM=LM,qM={message({keyword:e,schemaCode:t}){const r="maxLength"===e?"more":"fewer";return BM.str`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>BM._`{limit: ${e}}`},KM={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:qM,code(e){const{keyword:t,data:r,schemaCode:n,it:o}=e,a="maxLength"===t?BM.operators.GT:BM.operators.LT,i=!1===o.opts.unicode?BM._`${r}.length`:BM._`${(0,UM.useFunc)(e.gen,WM.default)}(${r})`;e.fail$data(BM._`${i} ${a} ${n}`)}};zM.default=KM;var HM={};Object.defineProperty(HM,"__esModule",{value:!0});const GM=wI(),QM=XA,YM={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>QM.str`must match pattern "${e}"`,params:({schemaCode:e})=>QM._`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:n,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=r?QM._`(new RegExp(${o}, ${i}))`:(0,GM.usePattern)(e,n);e.fail$data(QM._`!${s}.test(${t})`)}};HM.default=YM;var JM={};Object.defineProperty(JM,"__esModule",{value:!0});const XM=XA,ZM={message({keyword:e,schemaCode:t}){const r="maxProperties"===e?"more":"fewer";return XM.str`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>XM._`{limit: ${e}}`},eF={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:ZM,code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxProperties"===t?XM.operators.GT:XM.operators.LT;e.fail$data(XM._`Object.keys(${r}).length ${o} ${n}`)}};JM.default=eF;var tF={};Object.defineProperty(tF,"__esModule",{value:!0});const rF=wI(),nF=XA,oF=tI,aF={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>nF.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>nF._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:r,schemaCode:n,data:o,$data:a,it:i}=e,{opts:s}=i;if(!a&&0===r.length)return;const l=r.length>=s.loopRequired;if(i.allErrors?function(){if(l||a)e.block$data(nF.nil,c);else for(const t of r)(0,rF.checkReportMissingProp)(e,t)}():function(){const i=t.let("missing");if(l||a){const r=t.let("valid",!0);e.block$data(r,(()=>function(r,a){e.setParams({missingProperty:r}),t.forOf(r,n,(()=>{t.assign(a,(0,rF.propertyInData)(t,o,r,s.ownProperties)),t.if((0,nF.not)(a),(()=>{e.error(),t.break()}))}),nF.nil)}(i,r))),e.ok(r)}else t.if((0,rF.checkMissingProp)(e,r,i)),(0,rF.reportMissingProp)(e,i),t.else()}(),s.strictRequired){const t=e.parentSchema.properties,{definedProperties:n}=e.it;for(const e of r)if(void 0===(null==t?void 0:t[e])&&!n.has(e)){const t=`required property "${e}" is not defined at "${i.schemaEnv.baseId+i.errSchemaPath}" (strictRequired)`;(0,oF.checkStrictMode)(i,t,i.opts.strictRequired)}}function c(){t.forOf("prop",n,(r=>{e.setParams({missingProperty:r}),t.if((0,rF.noPropertyInData)(t,o,r,s.ownProperties),(()=>e.error()))}))}}};tF.default=aF;var iF={};Object.defineProperty(iF,"__esModule",{value:!0});const sF=XA,lF={message({keyword:e,schemaCode:t}){const r="maxItems"===e?"more":"fewer";return sF.str`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>sF._`{limit: ${e}}`},cF={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:lF,code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxItems"===t?sF.operators.GT:sF.operators.LT;e.fail$data(sF._`${r}.length ${o} ${n}`)}};iF.default=cF;var uF={},dF={};Object.defineProperty(dF,"__esModule",{value:!0});const fF=NO;fF.code='require("ajv/dist/runtime/equal").default',dF.default=fF,Object.defineProperty(uF,"__esModule",{value:!0});const pF=lI,mF=XA,hF=tI,vF=dF,yF={message:({params:{i:e,j:t}})=>mF.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>mF._`{i: ${e}, j: ${t}}`},gF={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:yF,code(e){const{gen:t,data:r,$data:n,schema:o,parentSchema:a,schemaCode:i,it:s}=e;if(!n&&!o)return;const l=t.let("valid"),c=a.items?(0,pF.getSchemaTypes)(a.items):[];function u(n,o){const a=t.name("item"),i=(0,pF.checkDataTypes)(c,a,s.opts.strictNumbers,pF.DataType.Wrong),u=t.const("indices",mF._`{}`);t.for(mF._`;${n}--;`,(()=>{t.let(a,mF._`${r}[${n}]`),t.if(i,mF._`continue`),c.length>1&&t.if(mF._`typeof ${a} == "string"`,mF._`${a} += "_"`),t.if(mF._`typeof ${u}[${a}] == "number"`,(()=>{t.assign(o,mF._`${u}[${a}]`),e.error(),t.assign(l,!1).break()})).code(mF._`${u}[${a}] = ${n}`)}))}function d(n,o){const a=(0,hF.useFunc)(t,vF.default),i=t.name("outer");t.label(i).for(mF._`;${n}--;`,(()=>t.for(mF._`${o} = ${n}; ${o}--;`,(()=>t.if(mF._`${a}(${r}[${n}], ${r}[${o}])`,(()=>{e.error(),t.assign(l,!1).break(i)}))))))}e.block$data(l,(function(){const n=t.let("i",mF._`${r}.length`),o=t.let("j");e.setParams({i:n,j:o}),t.assign(l,!0),t.if(mF._`${n} > 1`,(()=>(c.length>0&&!c.some((e=>"object"===e||"array"===e))?u:d)(n,o)))}),mF._`${i} === false`),e.ok(l)}};uF.default=gF;var bF={};Object.defineProperty(bF,"__esModule",{value:!0});const wF=XA,SF=tI,xF=dF,$F={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>wF._`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,$data:n,schemaCode:o,schema:a}=e;n||a&&"object"==typeof a?e.fail$data(wF._`!${(0,SF.useFunc)(t,xF.default)}(${r}, ${o})`):e.fail(wF._`${a} !== ${r}`)}};bF.default=$F;var kF={};Object.defineProperty(kF,"__esModule",{value:!0});const _F=XA,EF=tI,CF=dF,PF={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>_F._`{allowedValues: ${e}}`},code(e){const{gen:t,data:r,$data:n,schema:o,schemaCode:a,it:i}=e;if(!n&&0===o.length)throw new Error("enum must have non-empty array");const s=o.length>=i.opts.loopEnum;let l;const c=()=>null!=l?l:l=(0,EF.useFunc)(t,CF.default);let u;if(s||n)u=t.let("valid"),e.block$data(u,(function(){t.assign(u,!1),t.forOf("v",a,(e=>t.if(_F._`${c()}(${r}, ${e})`,(()=>t.assign(u,!0).break()))))}));else{if(!Array.isArray(o))throw new Error("ajv implementation error");const e=t.const("vSchema",a);u=(0,_F.or)(...o.map(((t,n)=>function(e,t){const n=o[t];return"object"==typeof n&&null!==n?_F._`${c()}(${r}, ${e}[${t}])`:_F._`${r} === ${n}`}(e,n))))}e.pass(u)}};kF.default=PF,Object.defineProperty(jM,"__esModule",{value:!0});const jF=MM,OF=zM,NF=HM,RF=JM,TF=tF,AF=iF,IF=uF,MF=bF,FF=kF,DF=[OM.default,jF.default,OF.default,NF.default,RF.default,TF.default,AF.default,IF.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},MF.default,FF.default];jM.default=DF;var zF={},LF={};Object.defineProperty(LF,"__esModule",{value:!0}),LF.validateAdditionalItems=void 0;const VF=XA,BF=tI,UF={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>VF.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>VF._`{limit: ${e}}`},code(e){const{parentSchema:t,it:r}=e,{items:n}=t;Array.isArray(n)?WF(e,n):(0,BF.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function WF(e,t){const{gen:r,schema:n,data:o,keyword:a,it:i}=e;i.items=!0;const s=r.const("len",VF._`${o}.length`);if(!1===n)e.setParams({len:t.length}),e.pass(VF._`${s} <= ${t.length}`);else if("object"==typeof n&&!(0,BF.alwaysValidSchema)(i,n)){const n=r.var("valid",VF._`${s} <= ${t.length}`);r.if((0,VF.not)(n),(()=>function(n){r.forRange("i",t.length,s,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:BF.Type.Num},n),i.allErrors||r.if((0,VF.not)(n),(()=>r.break()))}))}(n))),e.ok(n)}}LF.validateAdditionalItems=WF,LF.default=UF;var qF={},KF={};Object.defineProperty(KF,"__esModule",{value:!0}),KF.validateTuple=void 0;const HF=XA,GF=tI,QF=wI(),YF={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return JF(e,"additionalItems",t);r.items=!0,(0,GF.alwaysValidSchema)(r,t)||e.ok((0,QF.validateArray)(e))}};function JF(e,t,r=e.schema){const{gen:n,parentSchema:o,data:a,keyword:i,it:s}=e;!function(e){const{opts:n,errSchemaPath:o}=s,a=r.length,l=a===e.minItems&&(a===e.maxItems||!1===e[t]);if(n.strictTuples&&!l){const e=`"${i}" is ${a}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,GF.checkStrictMode)(s,e,n.strictTuples)}}(o),s.opts.unevaluated&&r.length&&!0!==s.items&&(s.items=GF.mergeEvaluated.items(n,r.length,s.items));const l=n.name("valid"),c=n.const("len",HF._`${a}.length`);r.forEach(((t,r)=>{(0,GF.alwaysValidSchema)(s,t)||(n.if(HF._`${c} > ${r}`,(()=>e.subschema({keyword:i,schemaProp:r,dataProp:r},l))),e.ok(l))}))}KF.validateTuple=JF,KF.default=YF,Object.defineProperty(qF,"__esModule",{value:!0});const XF=KF,ZF={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,XF.validateTuple)(e,"items")};qF.default=ZF;var eD={};Object.defineProperty(eD,"__esModule",{value:!0});const tD=XA,rD=tI,nD=wI(),oD=LF,aD={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>tD.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>tD._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,(0,rD.alwaysValidSchema)(n,t)||(o?(0,oD.validateAdditionalItems)(e,o):e.ok((0,nD.validateArray)(e)))}};eD.default=aD;var iD={};Object.defineProperty(iD,"__esModule",{value:!0});const sD=XA,lD=tI,cD={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?sD.str`must contain at least ${e} valid item(s)`:sD.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?sD._`{minContains: ${e}}`:sD._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:r,parentSchema:n,data:o,it:a}=e;let i,s;const{minContains:l,maxContains:c}=n;a.opts.next?(i=void 0===l?1:l,s=c):i=1;const u=t.const("len",sD._`${o}.length`);if(e.setParams({min:i,max:s}),void 0===s&&0===i)return void(0,lD.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==s&&i>s)return(0,lD.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,lD.alwaysValidSchema)(a,r)){let t=sD._`${u} >= ${i}`;return void 0!==s&&(t=sD._`${t} && ${u} <= ${s}`),void e.pass(t)}a.items=!0;const d=t.name("valid");function f(){const e=t.name("_valid"),r=t.let("count",0);p(e,(()=>t.if(e,(()=>function(e){t.code(sD._`${e}++`),void 0===s?t.if(sD._`${e} >= ${i}`,(()=>t.assign(d,!0).break())):(t.if(sD._`${e} > ${s}`,(()=>t.assign(d,!1).break())),1===i?t.assign(d,!0):t.if(sD._`${e} >= ${i}`,(()=>t.assign(d,!0))))}(r)))))}function p(r,n){t.forRange("i",0,u,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:lD.Type.Num,compositeRule:!0},r),n()}))}void 0===s&&1===i?p(d,(()=>t.if(d,(()=>t.break())))):0===i?(t.let(d,!0),void 0!==s&&t.if(sD._`${o}.length > 0`,f)):(t.let(d,!1),f()),e.result(d,(()=>e.reset()))}};iD.default=cD;var uD={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=XA,r=tI,n=wI();e.error={message:({params:{property:e,depsCount:r,deps:n}})=>{const o=1===r?"property":"properties";return t.str`must have ${o} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:r,deps:n,missingProperty:o}})=>t._`{property: ${e},
30
30
  missingProperty: ${o},
31
31
  depsCount: ${r},
32
- deps: ${n}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(e){const[t,r]=function({schema:e}){const t={},r={};for(const n in e){if("__proto__"===n)continue;(Array.isArray(e[n])?t:r)[n]=e[n]}return[t,r]}(e);a(e,t),i(e,r)}};function a(e,r=e.schema){const{gen:o,data:a,it:i}=e;if(0===Object.keys(r).length)return;const s=o.let("missing");for(const l in r){const c=r[l];if(0===c.length)continue;const u=(0,n.propertyInData)(o,a,l,i.opts.ownProperties);e.setParams({property:l,depsCount:c.length,deps:c.join(", ")}),i.allErrors?o.if(u,(()=>{for(const t of c)(0,n.checkReportMissingProp)(e,t)})):(o.if(t._`${u} && (${(0,n.checkMissingProp)(e,c,s)})`),(0,n.reportMissingProp)(e,s),o.else())}}function i(e,t=e.schema){const{gen:o,data:a,keyword:i,it:s}=e,l=o.name("valid");for(const c in t)(0,r.alwaysValidSchema)(s,t[c])||(o.if((0,n.propertyInData)(o,a,c,s.opts.ownProperties),(()=>{const t=e.subschema({keyword:i,schemaProp:c},l);e.mergeValidEvaluated(t,l)}),(()=>o.var(l,!0))),e.ok(l))}e.validatePropertyDeps=a,e.validateSchemaDeps=i,e.default=o}(GD);var QD={};Object.defineProperty(QD,"__esModule",{value:!0});const YD=MI,JD=zI,XD={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>YD._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:n,it:o}=e;if((0,JD.alwaysValidSchema)(o,r))return;const a=t.name("valid");t.forIn("key",n,(r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},a),t.if((0,YD.not)(a),(()=>{e.error(!0),o.allErrors||t.break()}))})),e.ok(a)}};QD.default=XD;var ZD={};Object.defineProperty(ZD,"__esModule",{value:!0});const ez=oM(),tz=MI,rz=WI(),nz=zI,oz={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>tz._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:r,parentSchema:n,data:o,errsCount:a,it:i}=e;if(!a)throw new Error("ajv implementation error");const{allErrors:s,opts:l}=i;if(i.props=!0,"all"!==l.removeAdditional&&(0,nz.alwaysValidSchema)(i,r))return;const c=(0,ez.allSchemaProperties)(n.properties),u=(0,ez.allSchemaProperties)(n.patternProperties);function d(e){t.code(tz._`delete ${o}[${e}]`)}function f(n){if("all"===l.removeAdditional||l.removeAdditional&&!1===r)d(n);else{if(!1===r)return e.setParams({additionalProperty:n}),e.error(),void(s||t.break());if("object"==typeof r&&!(0,nz.alwaysValidSchema)(i,r)){const r=t.name("valid");"failing"===l.removeAdditional?(p(n,r,!1),t.if((0,tz.not)(r),(()=>{e.reset(),d(n)}))):(p(n,r),s||t.if((0,tz.not)(r),(()=>t.break())))}}}function p(t,r,n){const o={keyword:"additionalProperties",dataProp:t,dataPropType:nz.Type.Str};!1===n&&Object.assign(o,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(o,r)}t.forIn("key",o,(r=>{c.length||u.length?t.if(function(r){let o;if(c.length>8){const e=(0,nz.schemaRefOrVal)(i,n.properties,"properties");o=(0,ez.isOwnProperty)(t,e,r)}else o=c.length?(0,tz.or)(...c.map((e=>tz._`${r} === ${e}`))):tz.nil;return u.length&&(o=(0,tz.or)(o,...u.map((t=>tz._`${(0,ez.usePattern)(e,t)}.test(${r})`)))),(0,tz.not)(o)}(r),(()=>f(r))):f(r)})),e.ok(tz._`${a} === ${rz.default.errors}`)}};ZD.default=oz;var az={};Object.defineProperty(az,"__esModule",{value:!0});const iz=EM(),sz=oM(),lz=zI,cz=ZD,uz={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:o,it:a}=e;"all"===a.opts.removeAdditional&&void 0===n.additionalProperties&&cz.default.code(new iz.KeywordCxt(a,cz.default,"additionalProperties"));const i=(0,sz.allSchemaProperties)(r);for(const e of i)a.definedProperties.add(e);a.opts.unevaluated&&i.length&&!0!==a.props&&(a.props=lz.mergeEvaluated.props(t,(0,lz.toHash)(i),a.props));const s=i.filter((e=>!(0,lz.alwaysValidSchema)(a,r[e])));if(0===s.length)return;const l=t.name("valid");for(const r of s)c(r)?u(r):(t.if((0,sz.propertyInData)(t,o,r,a.opts.ownProperties)),u(r),a.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(r),e.ok(l);function c(e){return a.opts.useDefaults&&!a.compositeRule&&void 0!==r[e].default}function u(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},l)}}};az.default=uz;var dz={};Object.defineProperty(dz,"__esModule",{value:!0});const fz=oM(),pz=MI,mz=zI,hz=zI,vz={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:o,it:a}=e,{opts:i}=a,s=(0,fz.allSchemaProperties)(r),l=s.filter((e=>(0,mz.alwaysValidSchema)(a,r[e])));if(0===s.length||l.length===s.length&&(!a.opts.unevaluated||!0===a.props))return;const c=i.strictSchema&&!i.allowMatchingProperties&&o.properties,u=t.name("valid");!0===a.props||a.props instanceof pz.Name||(a.props=(0,hz.evaluatedPropsToName)(t,a.props));const{props:d}=a;function f(e){for(const t in c)new RegExp(e).test(t)&&(0,mz.checkStrictMode)(a,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function p(r){t.forIn("key",n,(n=>{t.if(pz._`${(0,fz.usePattern)(e,r)}.test(${n})`,(()=>{const o=l.includes(r);o||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:n,dataPropType:hz.Type.Str},u),a.opts.unevaluated&&!0!==d?t.assign(pz._`${d}[${n}]`,!0):o||a.allErrors||t.if((0,pz.not)(u),(()=>t.break()))}))}))}!function(){for(const e of s)c&&f(e),a.allErrors?p(e):(t.var(u,!0),p(e),t.if(u))}()}};dz.default=vz;var yz={};Object.defineProperty(yz,"__esModule",{value:!0});const gz=zI,bz={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,gz.alwaysValidSchema)(n,r))return void e.fail();const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};yz.default=bz;var wz={};Object.defineProperty(wz,"__esModule",{value:!0});const Sz={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:oM().validateUnion,error:{message:"must match a schema in anyOf"}};wz.default=Sz;var xz={};Object.defineProperty(xz,"__esModule",{value:!0});const $z=MI,kz=zI,_z={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>$z._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:r,parentSchema:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;const a=r,i=t.let("valid",!1),s=t.let("passing",null),l=t.name("_valid");e.setParams({passing:s}),t.block((function(){a.forEach(((r,n)=>{let a;(0,kz.alwaysValidSchema)(o,r)?t.var(l,!0):a=e.subschema({keyword:"oneOf",schemaProp:n,compositeRule:!0},l),n>0&&t.if($z._`${l} && ${i}`).assign(i,!1).assign(s,$z._`[${s}, ${n}]`).else(),t.if(l,(()=>{t.assign(i,!0),t.assign(s,n),a&&e.mergeEvaluated(a,$z.Name)}))}))})),e.result(i,(()=>e.reset()),(()=>e.error(!0)))}};xz.default=_z;var Ez={};Object.defineProperty(Ez,"__esModule",{value:!0});const Cz=zI,Pz={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const o=t.name("valid");r.forEach(((t,r)=>{if((0,Cz.alwaysValidSchema)(n,t))return;const a=e.subschema({keyword:"allOf",schemaProp:r},o);e.ok(o),e.mergeEvaluated(a)}))}};Ez.default=Pz;var jz={};Object.defineProperty(jz,"__esModule",{value:!0});const Oz=MI,Nz=zI,Rz={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>Oz.str`must match "${e.ifClause}" schema`,params:({params:e})=>Oz._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:n}=e;void 0===r.then&&void 0===r.else&&(0,Nz.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const o=Az(n,"then"),a=Az(n,"else");if(!o&&!a)return;const i=t.let("valid",!0),s=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(t)}(),e.reset(),o&&a){const r=t.let("ifClause");e.setParams({ifClause:r}),t.if(s,l("then",r),l("else",r))}else o?t.if(s,l("then")):t.if((0,Oz.not)(s),l("else"));function l(r,n){return()=>{const o=e.subschema({keyword:r},s);t.assign(i,s),e.mergeValidEvaluated(o,i),n?t.assign(n,Oz._`${r}`):e.setParams({ifClause:r})}}e.pass(i,(()=>e.error(!0)))}};function Az(e,t){const r=e.schema[t];return void 0!==r&&!(0,Nz.alwaysValidSchema)(e,r)}jz.default=Rz;var Tz={};Object.defineProperty(Tz,"__esModule",{value:!0});const Iz=zI,Mz={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,Iz.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Tz.default=Mz,Object.defineProperty($D,"__esModule",{value:!0});const Fz=kD,Dz=jD,zz=OD,Lz=DD,Vz=WD,Bz=GD,Uz=QD,Wz=ZD,qz=az,Kz=dz,Hz=yz,Gz=wz,Qz=xz,Yz=Ez,Jz=jz,Xz=Tz;$D.default=function(e=!1){const t=[Hz.default,Gz.default,Qz.default,Yz.default,Jz.default,Xz.default,Uz.default,Wz.default,Bz.default,qz.default,Kz.default];return e?t.push(Dz.default,Lz.default):t.push(Fz.default,zz.default),t.push(Vz.default),t};var Zz={},eL={};Object.defineProperty(eL,"__esModule",{value:!0});const tL=MI,rL={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>tL.str`must match format "${e}"`,params:({schemaCode:e})=>tL._`{format: ${e}}`},code(e,t){const{gen:r,data:n,$data:o,schema:a,schemaCode:i,it:s}=e,{opts:l,errSchemaPath:c,schemaEnv:u,self:d}=s;l.validateFormats&&(o?function(){const o=r.scopeValue("formats",{ref:d.formats,code:l.code.formats}),a=r.const("fDef",tL._`${o}[${i}]`),s=r.let("fType"),c=r.let("format");r.if(tL._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>r.assign(s,tL._`${a}.type || "string"`).assign(c,tL._`${a}.validate`)),(()=>r.assign(s,tL._`"string"`).assign(c,a))),e.fail$data((0,tL.or)(!1===l.strictSchema?tL.nil:tL._`${i} && !${c}`,function(){const e=u.$async?tL._`(${a}.async ? await ${c}(${n}) : ${c}(${n}))`:tL._`${c}(${n})`,r=tL._`(typeof ${c} == "function" ? ${e} : ${c}.test(${n}))`;return tL._`${c} && ${c} !== true && ${s} === ${t} && !${r}`}()))}():function(){const o=d.formats[a];if(!o)return void function(){if(!1===l.strictSchema)return void d.logger.warn(e());throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${c}"`}}();if(!0===o)return;const[i,s,f]=function(e){const t=e instanceof RegExp?(0,tL.regexpCode)(e):l.code.formats?tL._`${l.code.formats}${(0,tL.getProperty)(a)}`:void 0,n=r.scopeValue("formats",{key:a,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,tL._`${n}.validate`];return["string",e,n]}(o);i===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!u.$async)throw new Error("async format in sync schema");return tL._`await ${f}(${n})`}return"function"==typeof s?tL._`${f}(${n})`:tL._`${f}.test(${n})`}())}())}};eL.default=rL,Object.defineProperty(Zz,"__esModule",{value:!0});const nL=[eL.default];Zz.default=nL;var oL={};Object.defineProperty(oL,"__esModule",{value:!0}),oL.contentVocabulary=oL.metadataVocabulary=void 0,oL.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],oL.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(JM,"__esModule",{value:!0});const aL=pF,iL=$D,sL=Zz,lL=oL,cL=[XM.default,aL.default,(0,iL.default)(),sL.default,lL.metadataVocabulary,lL.contentVocabulary];JM.default=cL;var uL={},dL={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,(t=e.DiscrError||(e.DiscrError={})).Tag="tag",t.Mapping="mapping"}(dL),Object.defineProperty(uL,"__esModule",{value:!0});const fL=MI,pL=dL,mL=AM,hL=zI,vL={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===pL.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>fL._`{error: ${e}, tag: ${r}, tagValue: ${t}}`},code(e){const{gen:t,data:r,schema:n,parentSchema:o,it:a}=e,{oneOf:i}=o;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=n.propertyName;if("string"!=typeof s)throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const l=t.let("valid",!1),c=t.const("tag",fL._`${r}${(0,fL.getProperty)(s)}`);function u(r){const n=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:r},n);return e.mergeEvaluated(o,fL.Name),n}t.if(fL._`typeof ${c} == "string"`,(()=>function(){const r=function(){var e;const t={},r=l(o);let n=!0;for(let t=0;t<i.length;t++){let o=i[t];(null==o?void 0:o.$ref)&&!(0,hL.schemaHasRulesButRef)(o,a.self.RULES)&&(o=mL.resolveRef.call(a.self,a.schemaEnv.root,a.baseId,null==o?void 0:o.$ref),o instanceof mL.SchemaEnv&&(o=o.schema));const u=null===(e=null==o?void 0:o.properties)||void 0===e?void 0:e[s];if("object"!=typeof u)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${s}"`);n=n&&(r||l(o)),c(u,t)}if(!n)throw new Error(`discriminator: "${s}" must be required`);return t;function l({required:e}){return Array.isArray(e)&&e.includes(s)}function c(e,t){if(e.const)u(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${s}" must have "const" or "enum"`);for(const r of e.enum)u(r,t)}}function u(e,r){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${s}" values must be unique strings`);t[e]=r}}();t.if(!1);for(const e in r)t.elseIf(fL._`${c} === ${e}`),t.assign(l,u(r[e]));t.else(),e.error(!1,{discrError:pL.DiscrError.Mapping,tag:c,tagName:s}),t.endIf()}()),(()=>e.error(!1,{discrError:pL.DiscrError.Tag,tag:c,tagName:s}))),e.ok(l)}};uL.default=vL;var yL={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=RI,n=JM,o=uL,a=yL,i=["/properties"],s="http://json-schema.org/draft-07/schema";class l extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(e,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var c=EM();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=MI;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var d=jM();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=RM();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})}(NI,NI.exports);var gL=NI.exports;!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=gL,r=MI,n=r.operators,o={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},a={message:({keyword:e,schemaCode:t})=>r.str`should be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>r._`{comparison: ${o[e].okStr}, limit: ${t}}`};e.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:a,code(e){const{gen:n,data:a,schemaCode:i,keyword:s,it:l}=e,{opts:c,self:u}=l;if(!c.validateFormats)return;const d=new t.KeywordCxt(l,u.RULES.all.format.definition,"format");function f(e){return r._`${e}.compare(${a}, ${i}) ${o[s].fail} 0`}d.$data?function(){const t=n.scopeValue("formats",{ref:u.formats,code:c.code.formats}),o=n.const("fmt",r._`${t}[${d.schemaCode}]`);e.fail$data(r.or(r._`typeof ${o} != "object"`,r._`${o} instanceof RegExp`,r._`typeof ${o}.compare != "function"`,f(o)))}():function(){const t=d.schema,o=u.formats[t];if(!o||!0===o)return;if("object"!=typeof o||o instanceof RegExp||"function"!=typeof o.compare)throw new Error(`"${s}": format "${t}" does not define "compare" function`);const a=n.scopeValue("formats",{key:t,ref:o,code:c.code.formats?r._`${c.code.formats}${r.getProperty(t)}`:void 0});e.fail$data(f(a))}()},dependencies:["format"]};e.default=t=>(t.addKeyword(e.formatLimitDefinition),t)}(OI),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=jI,n=OI,o=MI,a=new o.Name("fullFormats"),i=new o.Name("fastFormats"),s=(e,t={keywords:!0})=>{if(Array.isArray(t))return l(e,t,r.fullFormats,a),e;const[o,s]="fast"===t.mode?[r.fastFormats,i]:[r.fullFormats,a];return l(e,t.formats||r.formatNames,o,s),t.keywords&&n.default(e),e};function l(e,t,r,n){var a,i;null!==(a=(i=e.opts.code).formats)&&void 0!==a||(i.formats=o._`require("ajv-formats/dist/formats").${n}`);for(const n of t)e.addFormat(n,r[n])}s.get=(e,t="full")=>{const n=("fast"===t?r.fastFormats:r.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n},e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s}(PI,PI.exports);var bL=r(PI.exports);const wL={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},SL=/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,xL=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function $L(e,t,r,n,o,a,i){const{validationError:s}=t;let l=function(e=[],t){return e.map((e=>{var r;const{instancePath:n,keyword:o,params:a,schemaPath:i,parentSchema:s,...l}=e;let{message:c=""}=l,u=n.replace(/\//g,"."),d=`${u} ${c}`.trim();const f=[...(null===(r=a.deps)||void 0===r?void 0:r.split(", "))||[],a.missingProperty,a.property].filter((e=>e));if(f.length>0)f.forEach((e=>{let r=kd(th(t,`${(u?`${u}.${e}`:e).replace(/^\./,"")}`)).title;if(void 0===r){const n=i.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([e]);r=kd(th(t,n)).title}if(r)c=c.replace(`'${e}'`,`'${r}'`);else{const t=th(s,[vd,e,"title"]);t&&(c=c.replace(`'${e}'`,`'${t}'`))}})),d=c;else{const e=kd(th(t,`${u.replace(/^\./,"")}`)).title;if(e)d=`'${e}' ${c}`.trim();else{const e=null==s?void 0:s.title;e&&(d=`'${e}' ${c}`.trim())}}return"missingProperty"in a&&(u=u?`${u}.${a.missingProperty}`:a.missingProperty),{name:o,property:u,message:c,params:a,stack:d,schemaPath:i}}))}(t.errors,i);s&&(l=[...l,{stack:s.message}]),"function"==typeof a&&(l=a(l,i));let c=function(e){const t=new sj;return e.length&&e.forEach((e=>{const{property:r,message:n}=e,o="."===r?[]:dO(r);o.length>0&&""===o[0]&&o.splice(0,1),n&&t.addErrors(n,o)})),t.ErrorSchema}(l);if(s&&(c={...c,$schema:{__errors:[s.message]}}),"function"!=typeof o)return{errors:l,errorSchema:c};const u=VP(e,n,r,n,!0);return mO({errors:l,errorSchema:c},fO(o(u,tf(u),i)))}class kL{constructor(e,t){const{additionalMetaSchemas:r,customFormats:n,ajvOptionsOverrides:o,ajvFormatOptions:a,AjvClass:i}=e;this.ajv=function(e,t,r={},n,o=CI){const a=new o({...wL,...r});return n?bL(a,n):!1!==n&&bL(a),a.addFormat("data-url",xL),a.addFormat("color",SL),a.addKeyword(rd),a.addKeyword(wd),Array.isArray(e)&&a.addMetaSchema(e),np(t)&&Object.keys(t).forEach((e=>{a.addFormat(e,t[e])})),a}(r,n,o,a,i),this.localizer=t}reset(){this.ajv.removeSchema()}toErrorList(e,t=[]){return nO(e,t)}rawValidation(e,t){var r,n;let o,a,i;e[dd]&&(a=this.ajv.getSchema(e[dd]));try{void 0===a&&(a=this.ajv.compile(e)),a(t)}catch(e){o=e}return a&&("function"==typeof this.localizer&&((null!==(r=a.errors)&&void 0!==r?r:[]).forEach((e=>{var t;["missingProperty","property"].forEach((t=>{var r;(null===(r=e.params)||void 0===r?void 0:r[t])&&(e.params[t]=`'${e.params[t]}'`)})),(null===(t=e.params)||void 0===t?void 0:t.deps)&&(e.params.deps=e.params.deps.split(", ").map((e=>`'${e}'`)).join(", "))})),this.localizer(a.errors),(null!==(n=a.errors)&&void 0!==n?n:[]).forEach((e=>{var t;["missingProperty","property"].forEach((t=>{var r;(null===(r=e.params)||void 0===r?void 0:r[t])&&(e.params[t]=e.params[t].slice(1,-1))})),(null===(t=e.params)||void 0===t?void 0:t.deps)&&(e.params.deps=e.params.deps.split(", ").map((e=>e.slice(1,-1))).join(", "))}))),i=a.errors||void 0,a.errors=null),{errors:i,validationError:o}}validateFormData(e,t,r,n,o){return $L(this,this.rawValidation(t,e),e,t,r,n,o)}handleSchemaUpdate(e){var t,r;const n=null!==(t=e[dd])&&void 0!==t?t:Sd;void 0===this.ajv.getSchema(n)?this.ajv.addSchema(e,n):Kf(e,null===(r=this.ajv.getSchema(n))||void 0===r?void 0:r.schema)||(this.ajv.removeSchema(n),this.ajv.addSchema(e,n))}isValid(e,t,r){var n;try{this.handleSchemaUpdate(r);const o=hO(e),a=null!==(n=o[dd])&&void 0!==n?n:function(e){const t=new Set;return JSON.stringify(e,((e,r)=>(t.add(e),r))),function(e){let t=0;for(let r=0;r<e.length;r+=1)t=(t<<5)-t+e.charCodeAt(r),t&=t;return t.toString(16)}(JSON.stringify(e,Array.from(t).sort()))}(o);let i;i=this.ajv.getSchema(a),void 0===i&&(i=this.ajv.addSchema(o,a).getSchema(a)||this.ajv.compile(o));return i(t)}catch(e){return console.warn("Error encountered compiling schema:",e),!1}}}var _L=function(e={},t){return new kL(e,t)}(),EL=bO,CL=NS;var PL=function(e,t){return EL(e,t,(function(t,r){return CL(e,r)}))},jL=r(Kb((function(e,t){return null==e?{}:PL(e,t)})));let OL=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+=(t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_"),"");function NL(){return OL()}function RL(e){return Array.isArray(e)?e.map((e=>({key:NL(),item:e}))):[]}function AL(e){return Array.isArray(e)?e.map((e=>e.item)):[]}class TL extends L.Component{constructor(e){super(e),this._getNewFormDataRow=()=>{const{schema:e,registry:t}=this.props,{schemaUtils:r}=t;let n=e.items;return _P(e)&&function(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),ed(e.additionalItems)}(e)&&(n=e.additionalItems),r.getDefaultFormState(n)},this.onAddClick=e=>{this._handleAddClick(e)},this.onAddIndexClick=e=>t=>{this._handleAddClick(t,e)},this.onCopyIndexClick=e=>t=>{t&&t.preventDefault();const{onChange:r,errorSchema:n}=this.props,{keyedFormData:o}=this.state;let a;if(n){a={};for(const t in n){const r=parseInt(t);r<=e?Fx(a,[r],n[t]):r>e&&Fx(a,[r+1],n[t])}}const i={key:NL(),item:hk(o[e].item)},s=[...o];void 0!==e?s.splice(e+1,0,i):s.push(i),this.setState({keyedFormData:s,updatedKeyedFormData:!0},(()=>r(AL(s),a)))},this.onDropIndexClick=e=>t=>{t&&t.preventDefault();const{onChange:r,errorSchema:n}=this.props,{keyedFormData:o}=this.state;let a;if(n){a={};for(const t in n){const r=parseInt(t);r<e?Fx(a,[r],n[t]):r>e&&Fx(a,[r-1],n[t])}}const i=o.filter(((t,r)=>r!==e));this.setState({keyedFormData:i,updatedKeyedFormData:!0},(()=>r(AL(i),a)))},this.onReorderClick=(e,t)=>r=>{r&&(r.preventDefault(),r.currentTarget.blur());const{onChange:n,errorSchema:o}=this.props;let a;if(o){a={};for(const r in o){const n=parseInt(r);n==e?Fx(a,[t],o[e]):n==t?Fx(a,[e],o[t]):Fx(a,[r],o[n])}}const{keyedFormData:i}=this.state;const s=function(){const r=i.slice();return r.splice(e,1),r.splice(t,0,i[e]),r}();this.setState({keyedFormData:s},(()=>n(AL(s),a)))},this.onChangeForIndex=e=>(t,r,n)=>{const{formData:o,onChange:a,errorSchema:i}=this.props,s=(Array.isArray(o)?o:[]).map(((r,n)=>e===n?void 0===t?null:t:r));a(s,i&&i&&{...i,[e]:r},n)},this.onSelectChange=e=>{const{onChange:t,idSchema:r}=this.props;t(e,void 0,r&&r.$id)};const{formData:t=[]}=e,r=RL(t);this.state={keyedFormData:r,updatedKeyedFormData:!1}}static getDerivedStateFromProps(e,t){if(t.updatedKeyedFormData)return{updatedKeyedFormData:!1};const r=Array.isArray(e.formData)?e.formData:[],n=t.keyedFormData||[],o=r.length===n.length?n.map(((e,t)=>({key:e.key,item:r[t]}))):RL(r);return{keyedFormData:o}}get itemTitle(){const{schema:e,registry:t}=this.props,{translateString:r}=t;return th(e,[pd,"title"],th(e,[pd,"description"],r(kO.ArrayItemTitle)))}isItemRequired(e){return Array.isArray(e.type)?!e.type.includes("null"):"null"!==e.type}canAddItem(e){const{schema:t,uiSchema:r,registry:n}=this.props;let{addable:o}=kd(r,n.globalUiOptions);return!1!==o&&(o=void 0===t.maxItems||e.length<t.maxItems),o}_handleAddClick(e,t){e&&e.preventDefault();const{onChange:r,errorSchema:n}=this.props,{keyedFormData:o}=this.state;let a;if(n){a={};for(const e in n){const r=parseInt(e);void 0===t||r<t?Fx(a,[r],n[e]):r>=t&&Fx(a,[r+1],n[e])}}const i={key:NL(),item:this._getNewFormDataRow()},s=[...o];void 0!==t?s.splice(t,0,i):s.push(i),this.setState({keyedFormData:s,updatedKeyedFormData:!0},(()=>r(AL(s),a)))}render(){const{schema:e,uiSchema:t,idSchema:r,registry:n}=this.props,{schemaUtils:o,translateString:a}=n;if(!(pd in e)){const o=pj("UnsupportedFieldTemplate",n,kd(t));return kj.jsx(o,{schema:e,idSchema:r,reason:a(kO.MissingItems),registry:n})}return o.isMultiSelect(e)?this.renderMultiSelect():BP(t)?this.renderCustomWidget():_P(e)?this.renderFixedArray():o.isFilesArray(e,t)?this.renderFiles():this.renderNormalArray()}renderNormalArray(){const{schema:e,uiSchema:t={},errorSchema:r,idSchema:n,name:o,title:a,disabled:i=!1,readonly:s=!1,autofocus:l=!1,required:c=!1,registry:u,onBlur:d,onFocus:f,idPrefix:p,idSeparator:m="_",rawErrors:h}=this.props,{keyedFormData:v}=this.state,y=e.title||a||o,{schemaUtils:g,formContext:b}=u,w=kd(t),S=np(e.items)?e.items:{},x=g.retrieveSchema(S),$=AL(this.state.keyedFormData),k=this.canAddItem($),_={canAdd:k,items:v.map(((e,a)=>{const{key:i,item:s}=e,c=s,u=g.retrieveSchema(S,c),b=r?r[a]:void 0,w=n.$id+m+a,x=g.toIdSchema(u,w,c,p,m);return this.renderArrayFieldItem({key:i,index:a,name:o&&`${o}-${a}`,title:y?`${y}-${a+1}`:void 0,canAdd:k,canMoveUp:a>0,canMoveDown:a<$.length-1,itemSchema:u,itemIdSchema:x,itemErrorSchema:b,itemData:c,itemUiSchema:t.items,autofocus:l&&0===a,onBlur:d,onFocus:f,rawErrors:h,totalItems:v.length})})),className:`field field-array field-array-of-${x.type}`,disabled:i,idSchema:n,uiSchema:t,onAddClick:this.onAddClick,readonly:s,required:c,schema:e,title:y,formContext:b,formData:$,rawErrors:h,registry:u},E=pj("ArrayFieldTemplate",u,w);return kj.jsx(E,{..._})}renderCustomWidget(){var e;const{schema:t,idSchema:r,uiSchema:n,disabled:o=!1,readonly:a=!1,autofocus:i=!1,required:s=!1,hideError:l,placeholder:c,onBlur:u,onFocus:d,formData:f=[],registry:p,rawErrors:m,name:h}=this.props,{widgets:v,formContext:y,globalUiOptions:g,schemaUtils:b}=p,{widget:w,title:S,...x}=kd(n,g),$=Wj(t,w,v),k=null!==(e=null!=S?S:t.title)&&void 0!==e?e:h,_=b.getDisplayLabel(t,n,g);return kj.jsx($,{id:r.$id,name:h,multiple:!0,onChange:this.onSelectChange,onBlur:u,onFocus:d,options:x,schema:t,uiSchema:n,registry:p,value:f,disabled:o,readonly:a,hideError:l,required:s,label:k,hideLabel:!_,placeholder:c,formContext:y,autofocus:i,rawErrors:m})}renderMultiSelect(){var e;const{schema:t,idSchema:r,uiSchema:n,formData:o=[],disabled:a=!1,readonly:i=!1,autofocus:s=!1,required:l=!1,placeholder:c,onBlur:u,onFocus:d,registry:f,rawErrors:p,name:m}=this.props,{widgets:h,schemaUtils:v,formContext:y,globalUiOptions:g}=f,b=TP(v.retrieveSchema(t.items,o),n),{widget:w="select",title:S,...x}=kd(n,g),$=Wj(t,w,h),k=null!==(e=null!=S?S:t.title)&&void 0!==e?e:m,_=v.getDisplayLabel(t,n,g);return kj.jsx($,{id:r.$id,name:m,multiple:!0,onChange:this.onSelectChange,onBlur:u,onFocus:d,options:{...x,enumOptions:b},schema:t,uiSchema:n,registry:f,value:o,disabled:a,readonly:i,required:l,label:k,hideLabel:!_,placeholder:c,formContext:y,autofocus:s,rawErrors:p})}renderFiles(){var e;const{schema:t,uiSchema:r,idSchema:n,name:o,disabled:a=!1,readonly:i=!1,autofocus:s=!1,required:l=!1,onBlur:c,onFocus:u,registry:d,formData:f=[],rawErrors:p}=this.props,{widgets:m,formContext:h,globalUiOptions:v,schemaUtils:y}=d,{widget:g="files",title:b,...w}=kd(r,v),S=Wj(t,g,m),x=null!==(e=null!=b?b:t.title)&&void 0!==e?e:o,$=y.getDisplayLabel(t,r,v);return kj.jsx(S,{options:w,id:n.$id,name:o,multiple:!0,onChange:this.onSelectChange,onBlur:c,onFocus:u,schema:t,uiSchema:r,value:f,disabled:a,readonly:i,required:l,registry:d,formContext:h,autofocus:s,rawErrors:p,label:x,hideLabel:!$})}renderFixedArray(){const{schema:e,uiSchema:t={},formData:r=[],errorSchema:n,idPrefix:o,idSeparator:a="_",idSchema:i,name:s,title:l,disabled:c=!1,readonly:u=!1,autofocus:d=!1,required:f=!1,registry:p,onBlur:m,onFocus:h,rawErrors:v}=this.props,{keyedFormData:y}=this.state;let{formData:g=[]}=this.props;const b=e.title||l||s,w=kd(t),{schemaUtils:S,formContext:x}=p,$=(np(e.items)?e.items:[]).map(((e,t)=>S.retrieveSchema(e,r[t]))),k=np(e.additionalItems)?S.retrieveSchema(e.additionalItems,r):null;(!g||g.length<$.length)&&(g=g||[],g=g.concat(new Array($.length-g.length)));const _=this.canAddItem(g)&&!!k,E={canAdd:_,className:"field field-array field-array-fixed-items",disabled:c,idSchema:i,formData:r,items:y.map(((r,l)=>{const{key:c,item:u}=r,f=u,p=l>=$.length,w=(p&&np(e.additionalItems)?S.retrieveSchema(e.additionalItems,f):$[l])||{},x=i.$id+a+l,k=S.toIdSchema(w,x,f,o,a),E=p?t.additionalItems||{}:Array.isArray(t.items)?t.items[l]:t.items||{},C=n?n[l]:void 0;return this.renderArrayFieldItem({key:c,index:l,name:s&&`${s}-${l}`,title:b?`${b}-${l+1}`:void 0,canAdd:_,canRemove:p,canMoveUp:l>=$.length+1,canMoveDown:p&&l<g.length-1,itemSchema:w,itemData:f,itemUiSchema:E,itemIdSchema:k,itemErrorSchema:C,autofocus:d&&0===l,onBlur:m,onFocus:h,rawErrors:v,totalItems:y.length})})),onAddClick:this.onAddClick,readonly:u,required:f,registry:p,schema:e,uiSchema:t,title:b,formContext:x,errorSchema:n,rawErrors:v},C=pj("ArrayFieldTemplate",p,w);return kj.jsx(C,{...E})}renderArrayFieldItem(e){const{key:t,index:r,name:n,canAdd:o,canRemove:a=!0,canMoveUp:i,canMoveDown:s,itemSchema:l,itemData:c,itemUiSchema:u,itemIdSchema:d,itemErrorSchema:f,autofocus:p,onBlur:m,onFocus:h,rawErrors:v,totalItems:y,title:g}=e,{disabled:b,hideError:w,idPrefix:S,idSeparator:x,readonly:$,uiSchema:k,registry:_,formContext:E}=this.props,{fields:{ArraySchemaField:C,SchemaField:P},globalUiOptions:j}=_,O=C||P,{orderable:N=!0,removable:R=!0,copyable:A=!1}=kd(k,j),T={moveUp:N&&i,moveDown:N&&s,copy:A&&o,remove:R&&a,toolbar:!1};return T.toolbar=Object.keys(T).some((e=>T[e])),{children:kj.jsx(O,{name:n,title:g,index:r,schema:l,uiSchema:u,formData:c,formContext:E,errorSchema:f,idPrefix:S,idSeparator:x,idSchema:d,required:this.isItemRequired(l),onChange:this.onChangeForIndex(r),onBlur:m,onFocus:h,registry:_,disabled:b,readonly:$,hideError:w,autofocus:p,rawErrors:v}),className:"array-item",disabled:b,canAdd:o,hasCopy:T.copy,hasToolbar:T.toolbar,hasMoveUp:T.moveUp,hasMoveDown:T.moveDown,hasRemove:T.remove,index:r,totalItems:y,key:t,onAddIndexClick:this.onAddIndexClick,onCopyIndexClick:this.onCopyIndexClick,onDropIndexClick:this.onDropIndexClick,onReorderClick:this.onReorderClick,readonly:$,registry:_,schema:l,uiSchema:u}}}function IL(e){var t,r,n;const{schema:o,name:a,uiSchema:i,idSchema:s,formData:l,registry:c,required:u,disabled:d,readonly:f,hideError:p,autofocus:m,title:h,onChange:v,onFocus:y,onBlur:g,rawErrors:b}=e,{title:w}=o,{widgets:S,formContext:x,translateString:$,globalUiOptions:k}=c,{widget:_="checkbox",title:E,label:C=!0,...P}=kd(i,k),j=Wj(o,_,S),O=$(kO.YesLabel),N=$(kO.NoLabel);let R;const A=null!==(r=null!==(t=null!=E?E:w)&&void 0!==t?t:h)&&void 0!==r?r:a;if(Array.isArray(o.oneOf))R=TP({oneOf:o.oneOf.map((e=>{if(np(e))return{...e,title:e.title||(!0===e.const?O:N)}})).filter((e=>e))},i);else{const e=o,t=null!==(n=o.enum)&&void 0!==n?n:[!0,!1];R=!e.enumNames&&2===t.length&&t.every((e=>"boolean"==typeof e))?[{value:t[0],label:t[0]?O:N},{value:t[1],label:t[1]?O:N}]:TP({enum:t,enumNames:e.enumNames},i)}return kj.jsx(j,{options:{...P,enumOptions:R},schema:o,uiSchema:i,id:s.$id,name:a,onChange:v,onFocus:y,onBlur:g,label:A,hideLabel:!C,value:l,required:u,disabled:d,readonly:f,hideError:p,registry:c,formContext:x,autofocus:m,rawErrors:b})}class ML extends L.Component{constructor(e){super(e),this.onOptionChange=e=>{const{selectedOption:t,retrievedOptions:r}=this.state,{formData:n,onChange:o,registry:a}=this.props,{schemaUtils:i}=a,s=void 0!==e?parseInt(e,10):-1;if(s===t)return;const l=s>=0?r[s]:void 0,c=t>=0?r[t]:void 0;let u=i.sanitizeDataForNewSchema(l,c,n);l&&(u=i.getDefaultFormState(l,u,"excludeObjectChildren")),this.setState({selectedOption:s},(()=>{o(u,void 0,this.getFieldId())}))};const{formData:t,options:r,registry:{schemaUtils:n}}=this.props,o=r.map((e=>n.retrieveSchema(e,t)));this.state={retrievedOptions:o,selectedOption:this.getMatchingOption(0,t,o)}}componentDidUpdate(e,t){const{formData:r,options:n,idSchema:o}=this.props,{selectedOption:a}=this.state;let i=this.state;if(!Kf(e.options,n)){const{registry:{schemaUtils:e}}=this.props;i={selectedOption:a,retrievedOptions:n.map((t=>e.retrieveSchema(t,r)))}}if(!Kf(r,e.formData)&&o.$id===e.idSchema.$id){const{retrievedOptions:e}=i,n=this.getMatchingOption(a,r,e);t&&n!==a&&(i={selectedOption:n,retrievedOptions:e})}i!==this.state&&this.setState(i)}getMatchingOption(e,t,r){const{schema:n,registry:{schemaUtils:o}}=this.props,a=aP(n);return o.getClosestMatchingOption(t,r,e,a)}getFieldId(){const{idSchema:e,schema:t}=this.props;return`${e.$id}${t.oneOf?"__oneof_select":"__anyof_select"}`}render(){const{name:e,disabled:t=!1,errorSchema:r={},formContext:n,onBlur:o,onFocus:a,readonly:i,registry:s,schema:l,uiSchema:c}=this.props,{widgets:u,fields:d,translateString:f,globalUiOptions:p,schemaUtils:m}=s,{SchemaField:h}=d,{selectedOption:v,retrievedOptions:y}=this.state,{widget:g="select",placeholder:b,autofocus:w,autocomplete:S,title:x=l.title,...$}=kd(c,p),k=Wj({type:"number"},g,u),_=th(r,ud,[]),E=tw(r,[ud]),C=m.getDisplayLabel(l,c,p),P=v>=0&&y[v]||null;let j;if(P){const{required:e}=l;j=e?fP({required:e},P):P}let O=[];hd in l&&c&&hd in c?Array.isArray(c[hd])?O=c[hd]:console.warn(`uiSchema.oneOf is not an array for "${x||e}"`):ad in l&&c&&ad in c&&(Array.isArray(c[ad])?O=c[ad]:console.warn(`uiSchema.anyOf is not an array for "${x||e}"`));let N=c;v>=0&&O.length>v&&(N=O[v]);const R=x?kO.TitleOptionPrefix:kO.OptionPrefix,A=x?[x]:[],T=y.map(((e,t)=>{const{title:r=e.title}=kd(O[t]);return{label:r||f(R,A.concat(String(t+1))),value:t}}));return kj.jsxs("div",{className:"panel panel-default panel-body",children:[kj.jsx("div",{className:"form-group",children:kj.jsx(k,{id:this.getFieldId(),name:`${e}${l.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:o,onFocus:a,disabled:t||mv(T),multiple:!1,rawErrors:_,errorSchema:E,value:v>=0?v:void 0,options:{enumOptions:T,...$},registry:s,formContext:n,placeholder:b,autocomplete:S,autofocus:w,label:null!=x?x:e,hideLabel:!C,readonly:i})}),j&&kj.jsx(h,{...this.props,schema:j,uiSchema:N})]})}}const FL=/\.([0-9]*0)*$/,DL=/[0.]0*$/;function zL(e){const{registry:t,onChange:r,formData:n,value:o}=e,[a,i]=L.useState(o),{StringField:s}=t.fields;let l=n;const c=L.useCallback(((e,t,n)=>{i(e),"."===`${e}`.charAt(0)&&(e=`0${e}`);const o="string"==typeof e&&e.match(FL)?td(e.replace(DL,"")):td(e);r(o,t,n)}),[r]);if("string"==typeof a&&"number"==typeof l){const e=new RegExp(`^(${String(l).replace(".","\\.")})?\\.?0*$`);a.match(e)&&(l=a)}return kj.jsx(s,{...e,formData:l,onChange:c})}function LL(){return LL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},LL.apply(this,arguments)}const VL=["children","options"];var BL,UL;!function(e){e.blockQuote="0",e.breakLine="1",e.breakThematic="2",e.codeBlock="3",e.codeFenced="4",e.codeInline="5",e.footnote="6",e.footnoteReference="7",e.gfmTask="8",e.heading="9",e.headingSetext="10",e.htmlBlock="11",e.htmlComment="12",e.htmlSelfClosing="13",e.image="14",e.link="15",e.linkAngleBraceStyleDetector="16",e.linkBareUrlDetector="17",e.linkMailtoDetector="18",e.newlineCoalescer="19",e.orderedList="20",e.paragraph="21",e.ref="22",e.refImage="23",e.refLink="24",e.table="25",e.tableSeparator="26",e.text="27",e.textBolded="28",e.textEmphasized="29",e.textEscaped="30",e.textMarked="31",e.textStrikethroughed="32",e.unorderedList="33"}(BL||(BL={})),function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"}(UL||(UL={}));const WL=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce(((e,t)=>(e[t.toLowerCase()]=t,e)),{for:"htmlFor"}),qL={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},KL=["style","script"],HL=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,GL=/mailto:/i,QL=/\n{2,}$/,YL=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,JL=/^ *> ?/gm,XL=/^ {2,}\n/,ZL=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,eV=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,tV=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,rV=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,nV=/^(?:\n *)*\n/,oV=/\r\n?/g,aV=/^\[\^([^\]]+)](:.*)\n/,iV=/^\[\^([^\]]+)]/,sV=/\f/g,lV=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,cV=/^\s*?\[(x|\s)\]/,uV=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,dV=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,fV=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,pV=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,mV=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,hV=/^<!--[\s\S]*?(?:-->)/,vV=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,yV=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,gV=/^\{.*\}$/,bV=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,wV=/^<([^ >]+@[^ >]+)>/,SV=/^<([^ >]+:\/[^ >]+)>/,xV=/-([a-z])?/gi,$V=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,kV=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,_V=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,EV=/^\[([^\]]*)\] ?\[([^\]]*)\]/,CV=/(\[|\])/g,PV=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,jV=/\t/g,OV=/^ *\| */,NV=/(^ *\||\| *$)/g,RV=/ *$/,AV=/^ *:-+: *$/,TV=/^ *:-+ *$/,IV=/^ *-+: *$/,MV=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,FV=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,DV=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,zV=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,LV=/^\\([^0-9A-Za-z\s])/,VV=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,BV=/^\n+/,UV=/^([ \t]*)/,WV=/\\([^\\])/g,qV=/ *\n+$/,KV=/(?:^|\n)( *)$/,HV="(?:\\d+\\.)",GV="(?:[*+-])";function QV(e){return"( *)("+(1===e?HV:GV)+") +"}const YV=QV(1),JV=QV(2);function XV(e){return new RegExp("^"+(1===e?YV:JV))}const ZV=XV(1),eB=XV(2);function tB(e){return new RegExp("^"+(1===e?YV:JV)+"[^\\n]*(?:\\n(?!\\1"+(1===e?HV:GV)+" )[^\\n]*)*(\\n|$)","gm")}const rB=tB(1),nB=tB(2);function oB(e){const t=1===e?HV:GV;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const aB=oB(1),iB=oB(2);function sB(e,t){const r=1===t,n=r?aB:iB,o=r?rB:nB,a=r?ZV:eB;return{match(e,t,r){const o=KV.exec(r);return o&&(t.list||!t.inline&&!t.simple)?n.exec(e=o[1]+e):null},order:1,parse(e,t,n){const i=r?+e[2]:void 0,s=e[0].replace(QL,"\n").match(o);let l=!1;return{items:s.map((function(e,r){const o=a.exec(e)[0].length,i=new RegExp("^ {1,"+o+"}","gm"),c=e.replace(i,"").replace(a,""),u=r===s.length-1,d=-1!==c.indexOf("\n\n")||u&&l;l=d;const f=n.inline,p=n.list;let m;n.list=!0,d?(n.inline=!1,m=c.replace(qV,"\n\n")):(n.inline=!0,m=c.replace(qV,""));const h=t(m,n);return n.inline=f,n.list=p,h})),ordered:r,start:i}},render:(t,r,n)=>e(t.ordered?"ol":"ul",{key:n.key,start:"20"===t.type?t.start:void 0},t.items.map((function(t,o){return e("li",{key:o},r(t,n))})))}}const lB=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,cB=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,uB=[YL,eV,tV,uV,fV,dV,hV,$V,rB,aB,nB,iB],dB=[...uB,/^[^\n]+(?: \n|\n{2,})/,pV,yV];function fB(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function pB(e){return IV.test(e)?"right":AV.test(e)?"center":TV.test(e)?"left":null}function mB(e,t,r){const n=r.inTable;r.inTable=!0;const o=t(e.trim(),r);r.inTable=n;let a=[[]];return o.forEach((function(e,t){"26"===e.type?0!==t&&t!==o.length-1&&a.push([]):("27"!==e.type||null!=o[t+1]&&"26"!==o[t+1].type||(e.text=e.text.replace(RV,"")),a[a.length-1].push(e))})),a}function hB(e,t,r){r.inline=!0;const n=mB(e[1],t,r),o=e[2].replace(NV,"").split("|").map(pB),a=function(e,t,r){return e.trim().split("\n").map((function(e){return mB(e,t,r)}))}(e[3],t,r);return r.inline=!1,{align:o,cells:a,header:n,type:"25"}}function vB(e,t){return null==e.align[t]?{}:{textAlign:e.align[t]}}function yB(e){return function(t,r){return r.inline?e.exec(t):null}}function gB(e){return function(t,r){return r.inline||r.simple?e.exec(t):null}}function bB(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function wB(e){return function(t){return e.exec(t)}}function SB(e,t,r){if(t.inline||t.simple)return null;if(r&&!r.endsWith("\n"))return null;let n="";e.split("\n").every((e=>!uB.some((t=>t.test(e)))&&(n+=e+"\n",e.trim())));const o=n.trimEnd();return""==o?null:[n,o]}function xB(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch(e){return null}return e}function $B(e){return e.replace(WV,"$1")}function kB(e,t,r){const n=r.inline||!1,o=r.simple||!1;r.inline=!0,r.simple=!0;const a=e(t,r);return r.inline=n,r.simple=o,a}function _B(e,t,r){const n=r.inline||!1,o=r.simple||!1;r.inline=!1,r.simple=!0;const a=e(t,r);return r.inline=n,r.simple=o,a}function EB(e,t,r){return r.inline=!1,e(t,r)}const CB=(e,t,r)=>({children:kB(t,e[1],r)});function PB(){return{}}function jB(){return null}function OB(...e){return e.filter(Boolean).join(" ")}function NB(e,t,r){let n=e;const o=t.split(".");for(;o.length&&(n=n[o[0]],void 0!==n);)o.shift();return n||r}var RB=e=>{let{children:t,options:r}=e,n=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}(e,VL);return L.cloneElement(function(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||fB,t.namedCodesToUnicode=t.namedCodesToUnicode?LL({},qL,t.namedCodesToUnicode):qL;const r=t.createElement||L.createElement;function n(e,n,...o){const a=NB(t.overrides,`${e}.props`,{});return r(function(e,t){const r=NB(t,e);return r?"function"==typeof r||"object"==typeof r&&"render"in r?r:NB(t,`${e}.component`,e):e}(e,t.overrides),LL({},n,a,{className:OB(null==n?void 0:n.className,a.className)||void 0}),...o)}function o(e){e=e.replace(lV,"");let r=!1;t.forceInline?r=!0:t.forceBlock||(r=!1===PV.test(e));const o=u(c(r?e:`${e.trimEnd().replace(BV,"")}\n\n`,{inline:r}));for(;"string"==typeof o[o.length-1]&&!o[o.length-1].trim();)o.pop();if(null===t.wrapper)return o;const a=t.wrapper||(r?"span":"div");let i;if(o.length>1||t.forceWrapper)i=o;else{if(1===o.length)return i=o[0],"string"==typeof i?n("span",{key:"outer"},i):i;i=null}return L.createElement(a,{key:"outer"},i)}function a(e){const t=e.match(HL);return t?t.reduce((function(e,t,r){const n=t.indexOf("=");if(-1!==n){const a=function(e){return-1!==e.indexOf("-")&&null===e.match(vV)&&(e=e.replace(xV,(function(e,t){return t.toUpperCase()}))),e}(t.slice(0,n)).trim(),i=function(e){const t=e[0];return('"'===t||"'"===t)&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e}(t.slice(n+1).trim()),s=WL[a]||a,l=e[s]=function(e,t){return"style"===e?t.split(/;\s?/).reduce((function(e,t){const r=t.slice(0,t.indexOf(":"));return e[r.replace(/(-[a-z])/g,(e=>e[1].toUpperCase()))]=t.slice(r.length+1).trim(),e}),{}):"href"===e||"src"===e?xB(t):(t.match(gV)&&(t=t.slice(1,t.length-1)),"true"===t||"false"!==t&&t)}(a,i);"string"==typeof l&&(pV.test(l)||yV.test(l))&&(e[s]=L.cloneElement(o(l.trim()),{key:r}))}else"style"!==t&&(e[WL[t]||t]=!0);return e}),{}):null}const i=[],s={},l={0:{match:bB(YL),order:1,parse:(e,t,r)=>({children:t(e[0].replace(JL,""),r)}),render:(e,t,r)=>n("blockquote",{key:r.key},t(e.children,r))},1:{match:wB(XL),order:1,parse:PB,render:(e,t,r)=>n("br",{key:r.key})},2:{match:bB(ZL),order:1,parse:PB,render:(e,t,r)=>n("hr",{key:r.key})},3:{match:bB(tV),order:0,parse:e=>({lang:void 0,text:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(e,t,r)=>n("pre",{key:r.key},n("code",LL({},e.attrs,{className:e.lang?`lang-${e.lang}`:""}),e.text))},4:{match:bB(eV),order:0,parse:e=>({attrs:a(e[3]||""),lang:e[2]||void 0,text:e[4],type:"3"})},5:{match:gB(rV),order:3,parse:e=>({text:e[2]}),render:(e,t,r)=>n("code",{key:r.key},e.text)},6:{match:bB(aV),order:0,parse:e=>(i.push({footnote:e[2],identifier:e[1]}),{}),render:jB},7:{match:yB(iV),order:1,parse:e=>({target:`#${t.slugify(e[1])}`,text:e[1]}),render:(e,t,r)=>n("a",{key:r.key,href:xB(e.target)},n("sup",{key:r.key},e.text))},8:{match:yB(cV),order:1,parse:e=>({completed:"x"===e[1].toLowerCase()}),render:(e,t,r)=>n("input",{checked:e.completed,key:r.key,readOnly:!0,type:"checkbox"})},9:{match:bB(t.enforceAtxHeadings?dV:uV),order:1,parse:(e,r,n)=>({children:kB(r,e[2],n),id:t.slugify(e[2]),level:e[1].length}),render:(e,t,r)=>n(`h${e.level}`,{id:e.id,key:r.key},t(e.children,r))},10:{match:bB(fV),order:0,parse:(e,t,r)=>({children:kB(t,e[1],r),level:"="===e[2]?1:2,type:"9"})},11:{match:wB(pV),order:1,parse(e,t,r){const[,n]=e[3].match(UV),o=new RegExp(`^${n}`,"gm"),i=e[3].replace(o,""),s=(l=i,dB.some((e=>e.test(l)))?EB:kB);var l;const c=e[1].toLowerCase(),u=-1!==KL.indexOf(c),d={attrs:a(e[2]),noInnerParse:u,tag:u?c:e[1]};return r.inAnchor=r.inAnchor||"a"===c,u?d.text=e[3]:d.children=s(t,i,r),r.inAnchor=!1,d},render:(e,t,r)=>n(e.tag,LL({key:r.key},e.attrs),e.text||t(e.children,r))},13:{match:wB(yV),order:1,parse:e=>({attrs:a(e[2]||""),tag:e[1]}),render:(e,t,r)=>n(e.tag,LL({},e.attrs,{key:r.key}))},12:{match:wB(hV),order:1,parse:()=>({}),render:jB},14:{match:gB(cB),order:1,parse:e=>({alt:e[1],target:$B(e[2]),title:e[3]}),render:(e,t,r)=>n("img",{key:r.key,alt:e.alt||void 0,title:e.title||void 0,src:xB(e.target)})},15:{match:yB(lB),order:3,parse:(e,t,r)=>({children:_B(t,e[1],r),target:$B(e[2]),title:e[3]}),render:(e,t,r)=>n("a",{key:r.key,href:xB(e.target),title:e.title},t(e.children,r))},16:{match:yB(SV),order:0,parse:e=>({children:[{text:e[1],type:"27"}],target:e[1],type:"15"})},17:{match:(e,t)=>t.inAnchor?null:yB(bV)(e,t),order:0,parse:e=>({children:[{text:e[1],type:"27"}],target:e[1],title:void 0,type:"15"})},18:{match:yB(wV),order:0,parse(e){let t=e[1],r=e[1];return GL.test(r)||(r="mailto:"+r),{children:[{text:t.replace("mailto:",""),type:"27"}],target:r,type:"15"}}},20:sB(n,1),33:sB(n,2),19:{match:bB(nV),order:3,parse:PB,render:()=>"\n"},21:{match:SB,order:3,parse:CB,render:(e,t,r)=>n("p",{key:r.key},t(e.children,r))},22:{match:yB(kV),order:0,parse:e=>(s[e[1]]={target:e[2],title:e[4]},{}),render:jB},23:{match:gB(_V),order:0,parse:e=>({alt:e[1]||void 0,ref:e[2]}),render:(e,t,r)=>n("img",{key:r.key,alt:e.alt,src:xB(s[e.ref].target),title:s[e.ref].title})},24:{match:yB(EV),order:0,parse:(e,t,r)=>({children:t(e[1],r),fallbackChildren:t(e[0].replace(CV,"\\$1"),r),ref:e[2]}),render:(e,t,r)=>s[e.ref]?n("a",{key:r.key,href:xB(s[e.ref].target),title:s[e.ref].title},t(e.children,r)):n("span",{key:r.key},t(e.fallbackChildren,r))},25:{match:bB($V),order:1,parse:hB,render:(e,t,r)=>n("table",{key:r.key},n("thead",null,n("tr",null,e.header.map((function(o,a){return n("th",{key:a,style:vB(e,a)},t(o,r))})))),n("tbody",null,e.cells.map((function(o,a){return n("tr",{key:a},o.map((function(o,a){return n("td",{key:a,style:vB(e,a)},t(o,r))})))}))))},26:{match:function(e,t){return t.inTable?(t.inline=!0,OV.exec(e)):null},order:1,parse:function(){return{type:"26"}},render:()=>" | "},27:{match:wB(VV),order:4,parse:e=>({text:e[0].replace(mV,((e,r)=>t.namedCodesToUnicode[r]?t.namedCodesToUnicode[r]:e))}),render:e=>e.text},28:{match:gB(MV),order:2,parse:(e,t,r)=>({children:t(e[2],r)}),render:(e,t,r)=>n("strong",{key:r.key},t(e.children,r))},29:{match:gB(FV),order:3,parse:(e,t,r)=>({children:t(e[2],r)}),render:(e,t,r)=>n("em",{key:r.key},t(e.children,r))},30:{match:gB(LV),order:1,parse:e=>({text:e[1],type:"27"})},31:{match:gB(DV),order:3,parse:CB,render:(e,t,r)=>n("mark",{key:r.key},t(e.children,r))},32:{match:gB(zV),order:3,parse:CB,render:(e,t,r)=>n("del",{key:r.key},t(e.children,r))}};!0===t.disableParsingRawHTML&&(delete l[11],delete l[13]);const c=function(e){let t=Object.keys(e);function r(n,o){let a=[],i="";for(;n;){let s=0;for(;s<t.length;){const l=t[s],c=e[l],u=c.match(n,o,i);if(u){const e=u[0];n=n.substring(e.length);const t=c.parse(u,r,o);null==t.type&&(t.type=l),a.push(t),i=e;break}s++}}return a}return t.sort((function(t,r){let n=e[t].order,o=e[r].order;return n!==o?n-o:1})),function(e,t){return r(function(e){return e.replace(oV,"\n").replace(sV,"").replace(jV," ")}(e),t)}}(l),u=(d=function(e,t){return function(r,n,o){const a=e[r.type].render;return t?t((()=>a(r,n,o)),r,n,o):a(r,n,o)}}(l,t.renderRule),function e(t,r={}){if(Array.isArray(t)){const n=r.key,o=[];let a=!1;for(let n=0;n<t.length;n++){r.key=n;const i=e(t[n],r),s="string"==typeof i;s&&a?o[o.length-1]+=i:null!==i&&o.push(i),a=s}return r.key=n,o}return d(t,e,r)});var d;const f=o(e);return i.length?n("div",null,f,n("footer",{key:"footer"},i.map((function(e){return n("div",{id:t.slugify(e.identifier),key:e.identifier},e.identifier,u(c(e.footnote,{inline:!0})))})))):f}(t,r),n)},AB=Sb;var TB=r((function(e,t){return null==e||AB(e,t)}));class IB extends L.Component{constructor(){super(...arguments),this.state={wasPropertyKeyModified:!1,additionalProperties:{}},this.onPropertyChange=(e,t=!1)=>(r,n,o)=>{const{formData:a,onChange:i,errorSchema:s}=this.props;void 0===r&&t&&(r="");i({...a,[e]:r},s&&s&&{...s,[e]:n},o)},this.onDropPropertyClick=e=>t=>{t.preventDefault();const{onChange:r,formData:n}=this.props,o={...n};TB(o,e),r(o)},this.getAvailableKey=(e,t)=>{const{uiSchema:r,registry:n}=this.props,{duplicateKeySuffixSeparator:o="-"}=kd(r,n.globalUiOptions);let a=0,i=e;for(;hw(t,i);)i=`${e}${o}${++a}`;return i},this.onKeyChange=e=>(t,r)=>{if(e===t)return;const{formData:n,onChange:o,errorSchema:a}=this.props;t=this.getAvailableKey(t,n);const i={...n},s={[e]:t},l=Object.keys(i).map((e=>({[s[e]||e]:i[e]}))),c=Object.assign({},...l);this.setState({wasPropertyKeyModified:!0}),o(c,a&&a&&{...a,[t]:r})},this.handleAddClick=e=>()=>{var t;if(!e.additionalProperties)return;const{formData:r,onChange:n,registry:o}=this.props,a={...r};let i,s,l;if(np(e.additionalProperties)){i=e.additionalProperties.type,s=e.additionalProperties.const,l=e.additionalProperties.default;let t=e.additionalProperties;if(bd in t){const{schemaUtils:e}=o;t=e.retrieveSchema({$ref:t[bd]},r),i=t.type,s=t.const,l=t.default}i||!(ad in t)&&!(hd in t)||(i="object")}const c=this.getAvailableKey("newKey",a),u=null!==(t=null!=s?s:l)&&void 0!==t?t:this.getDefaultValue(i);Fx(a,c,u),n(a)}}isRequired(e){const{schema:t}=this.props;return Array.isArray(t.required)&&-1!==t.required.indexOf(e)}getDefaultValue(e){const{registry:{translateString:t}}=this.props;switch(e){case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{};default:return t(kO.NewStringDefault)}}render(){var e,t,r,n;const{schema:o,uiSchema:a={},formData:i,errorSchema:s,idSchema:l,name:c,required:u=!1,disabled:d,readonly:f,hideError:p,idPrefix:m,idSeparator:h,onBlur:v,onFocus:y,registry:g,title:b}=this.props,{fields:w,formContext:S,schemaUtils:x,translateString:$,globalUiOptions:k}=g,{SchemaField:_}=w,E=x.retrieveSchema(o,i),C=kd(a,k),{properties:P={}}=E,j=null!==(r=null!==(t=null!==(e=C.title)&&void 0!==e?e:E.title)&&void 0!==t?t:b)&&void 0!==r?r:c,O=null!==(n=C.description)&&void 0!==n?n:E.description;let N;try{N=function(e,t){if(!Array.isArray(t))return e;const r=e=>e.reduce(((e,t)=>(e[t]=!0,e)),{}),n=r(e),o=t.filter((e=>"*"===e||n[e])),a=r(o),i=e.filter((e=>!a[e])),s=o.indexOf("*");if(-1===s){if(i.length)throw new Error("uiSchema order list does not contain "+((l=i).length>1?`properties '${l.join("', '")}'`:`property '${l[0]}'`));return o}var l;if(s!==o.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");const c=[...o];return c.splice(s,1,...i),c}(Object.keys(P),C.order)}catch(e){return kj.jsxs("div",{children:[kj.jsx("p",{className:"config-error",style:{color:"red"},children:kj.jsx(RB,{options:{disableParsingRawHTML:!0},children:$(kO.InvalidObjectField,[c||"root",e.message])})}),kj.jsx("pre",{children:JSON.stringify(E)})]})}const R=pj("ObjectFieldTemplate",g,C),A={title:!1===C.label?"":j,description:!1===C.label?void 0:O,properties:N.map((e=>{const t=hw(E,[vd,e,rd]),r=t?a.additionalProperties:a[e],n="hidden"===kd(r).widget,o=th(l,[e],{});return{content:kj.jsx(_,{name:e,required:this.isRequired(e),schema:th(E,[vd,e],{}),uiSchema:r,errorSchema:th(s,e),idSchema:o,idPrefix:m,idSeparator:h,formData:th(i,e),formContext:S,wasPropertyKeyModified:this.state.wasPropertyKeyModified,onKeyChange:this.onKeyChange(e),onChange:this.onPropertyChange(e,t),onBlur:v,onFocus:y,registry:g,disabled:d,readonly:f,hideError:p,onDropPropertyClick:this.onDropPropertyClick},e),name:e,readonly:f,disabled:d,required:u,hidden:n}})),readonly:f,disabled:d,required:u,idSchema:l,uiSchema:a,errorSchema:s,schema:E,formData:i,formContext:S,registry:g};return kj.jsx(R,{...A,onAddClick:this.handleAddClick})}}const MB={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function FB(e){var t,r,n;const{schema:o,idSchema:a,uiSchema:i,formData:s,errorSchema:l,idPrefix:c,idSeparator:u,name:d,onChange:f,onKeyChange:p,onDropPropertyClick:m,required:h,registry:v,wasPropertyKeyModified:y=!1}=e,{formContext:g,schemaUtils:b,globalUiOptions:w}=v,S=kd(i,w),x=pj("FieldTemplate",v,S),$=pj("DescriptionFieldTemplate",v,S),k=pj("FieldHelpTemplate",v,S),_=pj("FieldErrorTemplate",v,S),E=b.retrieveSchema(o,s),C=a[dd],P=PP(b.toIdSchema(E,C,s,c,u),a),j=L.useCallback(((e,t,r)=>f(e,t,r||C)),[C,f]),O=function(e,t,r,n){const o=t.field,{fields:a,translateString:i}=n;if("function"==typeof o)return o;if("string"==typeof o&&o in a)return a[o];const s=dP(e),l=Array.isArray(s)?s[0]:s||"",c=e.$id;let u=MB[l];return c&&c in a&&(u=c),u||!e.anyOf&&!e.oneOf?u in a?a[u]:()=>{const o=pj("UnsupportedFieldTemplate",n,t);return kj.jsx(o,{schema:e,idSchema:r,reason:i(kO.UnknownFieldType,[String(e.type)]),registry:n})}:()=>null}(E,S,P,v),N=Boolean(null!==(t=S.disabled)&&void 0!==t?t:e.disabled),R=Boolean(null!==(r=S.readonly)&&void 0!==r?r:e.readonly||e.schema.readOnly||E.readOnly),A=S.hideError,T=void 0===A?e.hideError:Boolean(A),I=Boolean(null!==(n=S.autofocus)&&void 0!==n?n:e.autofocus);if(0===Object.keys(E).length)return null;const M=b.getDisplayLabel(E,i,w),{__errors:F,...D}=l||{},z=tw(i,["ui:classNames","classNames","ui:style"]);$d in z&&(z[$d]=tw(z[$d],["classNames","style"]));const V=kj.jsx(O,{...e,onChange:j,idSchema:P,schema:E,uiSchema:z,disabled:N,readonly:R,hideError:T,autofocus:I,errorSchema:D,formContext:g,rawErrors:F}),B=P[dd];let U;U=y||rd in E?d:S.title||e.schema.title||E.title||e.title||d;const W=S.description||e.schema.description||E.description||"",q=S.enableMarkdownInDescription?kj.jsx(RB,{options:{disableParsingRawHTML:!0},children:W}):W,K=S.help,H="hidden"===S.widget,G=["form-group","field",`field-${dP(E)}`];!T&&F&&F.length>0&&G.push("field-error has-error has-danger"),(null==i?void 0:i.classNames)&&G.push(i.classNames),S.classNames&&G.push(S.classNames);const Q=kj.jsx(k,{help:K,idSchema:P,schema:E,uiSchema:i,hasErrors:!T&&F&&F.length>0,registry:v}),Y=T||(E.anyOf||E.oneOf)&&!b.isSelect(E)?void 0:kj.jsx(_,{errors:F,errorSchema:l,idSchema:P,schema:E,uiSchema:i,registry:v}),J={description:kj.jsx($,{id:Kj(B),description:q,schema:E,uiSchema:i,registry:v}),rawDescription:W,help:Q,rawHelp:"string"==typeof K?K:void 0,errors:Y,rawErrors:T?void 0:F,id:B,label:U,hidden:H,onChange:f,onKeyChange:p,onDropPropertyClick:m,required:h,disabled:N,readonly:R,hideError:T,displayLabel:M,classNames:G.join(" ").trim(),style:S.style,formContext:g,formData:s,schema:E,uiSchema:i,registry:v},X=v.fields.AnyOfField,Z=v.fields.OneOfField,ee=(null==i?void 0:i["ui:field"])&&!0===(null==i?void 0:i["ui:fieldReplacesAnyOrOneOf"]);return kj.jsx(x,{...J,children:kj.jsxs(kj.Fragment,{children:[V,E.anyOf&&!ee&&!b.isSelect(E)&&kj.jsx(X,{name:d,disabled:N,readonly:R,hideError:T,errorSchema:l,formData:s,formContext:g,idPrefix:c,idSchema:P,idSeparator:u,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:E.anyOf.map((e=>b.retrieveSchema(np(e)?e:{},s))),registry:v,required:h,schema:E,uiSchema:i}),E.oneOf&&!ee&&!b.isSelect(E)&&kj.jsx(Z,{name:d,disabled:N,readonly:R,hideError:T,errorSchema:l,formData:s,formContext:g,idPrefix:c,idSchema:P,idSeparator:u,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:E.oneOf.map((e=>b.retrieveSchema(np(e)?e:{},s))),registry:v,required:h,schema:E,uiSchema:i})]})})}class DB extends L.Component{shouldComponentUpdate(e){return!Kf(this.props,e)}render(){return kj.jsx(FB,{...this.props})}}function zB(e){var t;const{schema:r,name:n,uiSchema:o,idSchema:a,formData:i,required:s,disabled:l=!1,readonly:c=!1,autofocus:u=!1,onChange:d,onBlur:f,onFocus:p,registry:m,rawErrors:h,hideError:v}=e,{title:y,format:g}=r,{widgets:b,formContext:w,schemaUtils:S,globalUiOptions:x}=m,$=S.isSelect(r)?TP(r,o):void 0;let k=$?"select":"text";g&&function(e,t,r={}){try{return Wj(e,t,r),!0}catch(e){const t=e;if(t.message&&(t.message.startsWith("No widget")||t.message.startsWith("Unsupported widget")))return!1;throw e}}(r,g,b)&&(k=g);const{widget:_=k,placeholder:E="",title:C,...P}=kd(o),j=S.getDisplayLabel(r,o,x),O=null!==(t=null!=C?C:y)&&void 0!==t?t:n,N=Wj(r,_,b);return kj.jsx(N,{options:{...P,enumOptions:$},schema:r,uiSchema:o,id:a.$id,name:n,label:O,hideLabel:!j,hideError:v,value:i,onChange:d,onBlur:f,onFocus:p,required:s,disabled:l,readonly:c,formContext:w,autofocus:u,registry:m,placeholder:E,rawErrors:h})}function LB(e){const{formData:t,onChange:r}=e;return L.useEffect((()=>{void 0===t&&r(null)}),[t,r]),null}function VB(e){const{idSchema:t,description:r,registry:n,schema:o,uiSchema:a}=e,i=kd(a,n.globalUiOptions),{label:s=!0}=i;if(!r||!s)return null;const l=pj("DescriptionFieldTemplate",n,i);return kj.jsx(l,{id:Kj(t),description:r,schema:o,uiSchema:a,registry:n})}function BB(e){const{children:t,className:r,disabled:n,hasToolbar:o,hasMoveDown:a,hasMoveUp:i,hasRemove:s,hasCopy:l,index:c,onCopyIndexClick:u,onDropIndexClick:d,onReorderClick:f,readonly:p,registry:m,uiSchema:h}=e,{CopyButton:v,MoveDownButton:y,MoveUpButton:g,RemoveButton:b}=m.templates.ButtonTemplates,w={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};return kj.jsxs("div",{className:r,children:[kj.jsx("div",{className:o?"col-xs-9":"col-xs-12",children:t}),o&&kj.jsx("div",{className:"col-xs-3 array-item-toolbox",children:kj.jsxs("div",{className:"btn-group",style:{display:"flex",justifyContent:"space-around"},children:[(i||a)&&kj.jsx(g,{style:w,disabled:n||p||!i,onClick:f(c,c-1),uiSchema:h,registry:m}),(i||a)&&kj.jsx(y,{style:w,disabled:n||p||!a,onClick:f(c,c+1),uiSchema:h,registry:m}),l&&kj.jsx(v,{style:w,disabled:n||p,onClick:u(c),uiSchema:h,registry:m}),s&&kj.jsx(b,{style:w,disabled:n||p,onClick:d(c),uiSchema:h,registry:m})]})})]})}function UB(e){const{canAdd:t,className:r,disabled:n,idSchema:o,uiSchema:a,items:i,onAddClick:s,readonly:l,registry:c,required:u,schema:d,title:f}=e,p=kd(a),m=pj("ArrayFieldDescriptionTemplate",c,p),h=pj("ArrayFieldItemTemplate",c,p),v=pj("ArrayFieldTitleTemplate",c,p),{ButtonTemplates:{AddButton:y}}=c.templates;return kj.jsxs("fieldset",{className:r,id:o.$id,children:[kj.jsx(v,{idSchema:o,title:p.title||f,required:u,schema:d,uiSchema:a,registry:c}),kj.jsx(m,{idSchema:o,description:p.description||d.description,schema:d,uiSchema:a,registry:c}),kj.jsx("div",{className:"row array-item-list",children:i&&i.map((({key:e,...t})=>kj.jsx(h,{...t},e)))}),t&&kj.jsx(y,{className:"array-item-add",onClick:s,disabled:n||l,uiSchema:a,registry:c})]})}function WB(e){const{idSchema:t,title:r,schema:n,uiSchema:o,required:a,registry:i}=e,s=kd(o,i.globalUiOptions),{label:l=!0}=s;if(!r||!l)return null;const c=pj("TitleFieldTemplate",i,s);return kj.jsx(c,{id:Yj(t),title:r,required:a,schema:n,uiSchema:o,registry:i})}function qB(e){const{id:t,name:r,value:n,readonly:o,disabled:a,autofocus:i,onBlur:s,onFocus:l,onChange:c,onChangeOverride:u,options:d,schema:f,uiSchema:p,formContext:m,registry:h,rawErrors:v,type:y,hideLabel:g,hideError:b,...w}=e;if(!t)throw console.log("No id for",e),new Error(`no id for props ${JSON.stringify(e)}`);const S={...w,...uj(f,y,d)};let x;x="number"===S.type||"integer"===S.type?n||0===n?n:"":null==n?"":n;const $=L.useCallback((({target:{value:e}})=>c(""===e?d.emptyValue:e)),[c,d]),k=L.useCallback((({target:e})=>s(t,e&&e.value)),[s,t]),_=L.useCallback((({target:e})=>l(t,e&&e.value)),[l,t]);return kj.jsxs(kj.Fragment,{children:[kj.jsx("input",{id:t,name:t,className:"form-control",readOnly:o,disabled:a,autoFocus:i,value:x,...S,list:f.examples?Gj(t):void 0,onChange:u||$,onBlur:k,onFocus:_,"aria-describedby":Jj(t,!!f.examples)}),Array.isArray(f.examples)&&kj.jsx("datalist",{id:Gj(t),children:f.examples.concat(f.default&&!f.examples.includes(f.default)?[f.default]:[]).map((e=>kj.jsx("option",{value:e},e)))},`datalist_${t}`)]})}function KB({uiSchema:e}){const{submitText:t,norender:r,props:n={}}=fj(e);return r?null:kj.jsx("div",{children:kj.jsx("button",{type:"submit",...n,className:`btn btn-info ${n.className||""}`,children:t})})}function HB(e){const{iconType:t="default",icon:r,className:n,uiSchema:o,registry:a,...i}=e;return kj.jsx("button",{type:"button",className:`btn btn-${t} ${n}`,...i,children:kj.jsx("i",{className:`glyphicon glyphicon-${r}`})})}function GB(e){const{registry:{translateString:t}}=e;return kj.jsx(HB,{title:t(kO.CopyButton),className:"array-item-copy",...e,icon:"copy"})}function QB(e){const{registry:{translateString:t}}=e;return kj.jsx(HB,{title:t(kO.MoveDownButton),className:"array-item-move-down",...e,icon:"arrow-down"})}function YB(e){const{registry:{translateString:t}}=e;return kj.jsx(HB,{title:t(kO.MoveUpButton),className:"array-item-move-up",...e,icon:"arrow-up"})}function JB(e){const{registry:{translateString:t}}=e;return kj.jsx(HB,{title:t(kO.RemoveButton),className:"array-item-remove",...e,iconType:"danger",icon:"remove"})}function XB({className:e,onClick:t,disabled:r,registry:n}){const{translateString:o}=n;return kj.jsx("div",{className:"row",children:kj.jsx("p",{className:`col-xs-3 col-xs-offset-9 text-right ${e}`,children:kj.jsx(HB,{iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:o(kO.AddButton),onClick:t,disabled:r,registry:n})})})}function ZB(e){const{id:t,description:r}=e;return r?"string"==typeof r?kj.jsx("p",{id:t,className:"field-description",children:r}):kj.jsx("div",{id:t,className:"field-description",children:r}):null}function eU({errors:e,registry:t}){const{translateString:r}=t;return kj.jsxs("div",{className:"panel panel-danger errors",children:[kj.jsx("div",{className:"panel-heading",children:kj.jsx("h3",{className:"panel-title",children:r(kO.ErrorsLabel)})}),kj.jsx("ul",{className:"list-group",children:e.map(((e,t)=>kj.jsx("li",{className:"list-group-item text-danger",children:e.stack},t)))})]})}const tU="*";function rU(e){const{label:t,required:r,id:n}=e;return t?kj.jsxs("label",{className:"control-label",htmlFor:n,children:[t,r&&kj.jsx("span",{className:"required",children:tU})]}):null}function nU(e){const{id:t,label:r,children:n,errors:o,help:a,description:i,hidden:s,required:l,displayLabel:c,registry:u,uiSchema:d}=e,f=pj("WrapIfAdditionalTemplate",u,kd(d));return s?kj.jsx("div",{className:"hidden",children:n}):kj.jsxs(f,{...e,children:[c&&kj.jsx(rU,{label:r,required:l,id:t}),c&&i?i:null,n,o,a]})}function oU(e){const{errors:t=[],idSchema:r}=e;if(0===t.length)return null;const n=Hj(r);return kj.jsx("div",{children:kj.jsx("ul",{id:n,className:"error-detail bs-callout bs-callout-info",children:t.filter((e=>!!e)).map(((e,t)=>kj.jsx("li",{className:"text-danger",children:e},t)))})})}function aU(e){const{idSchema:t,help:r}=e;if(!r)return null;const n=Qj(t);return"string"==typeof r?kj.jsx("p",{id:n,className:"help-block",children:r}):kj.jsx("div",{id:n,className:"help-block",children:r})}function iU(e){const{description:t,disabled:r,formData:n,idSchema:o,onAddClick:a,properties:i,readonly:s,registry:l,required:c,schema:u,title:d,uiSchema:f}=e,p=kd(f),m=pj("TitleFieldTemplate",l,p),h=pj("DescriptionFieldTemplate",l,p),{ButtonTemplates:{AddButton:v}}=l.templates;return kj.jsxs("fieldset",{id:o.$id,children:[d&&kj.jsx(m,{id:Yj(o),title:d,required:c,schema:u,uiSchema:f,registry:l}),t&&kj.jsx(h,{id:Kj(o),description:t,schema:u,uiSchema:f,registry:l}),i.map((e=>e.content)),_d(u,f,n)&&kj.jsx(v,{className:"object-property-expand",onClick:a(u),disabled:r||s,uiSchema:f,registry:l})]})}const sU="*";function lU(e){const{id:t,title:r,required:n}=e;return kj.jsxs("legend",{id:t,children:[r,n&&kj.jsx("span",{className:"required",children:sU})]})}function cU(e){const{schema:t,idSchema:r,reason:n,registry:o}=e,{translateString:a}=o;let i=kO.UnsupportedField;const s=[];return r&&r.$id&&(i=kO.UnsupportedFieldWithId,s.push(r.$id)),n&&(i=i===kO.UnsupportedField?kO.UnsupportedFieldWithReason:kO.UnsupportedFieldWithIdAndReason,s.push(n)),kj.jsxs("div",{className:"unsupported-field",children:[kj.jsx("p",{children:kj.jsx(RB,{options:{disableParsingRawHTML:!0},children:a(i,s)})}),t&&kj.jsx("pre",{children:JSON.stringify(t,null,2)})]})}function uU(e){const{id:t,classNames:r,style:n,disabled:o,label:a,onKeyChange:i,onDropPropertyClick:s,readonly:l,required:c,schema:u,children:d,uiSchema:f,registry:p}=e,{templates:m,translateString:h}=p,{RemoveButton:v}=m.ButtonTemplates,y=h(kO.KeyLabel,[a]);return rd in u?kj.jsx("div",{className:r,style:n,children:kj.jsxs("div",{className:"row",children:[kj.jsx("div",{className:"col-xs-5 form-additional",children:kj.jsxs("div",{className:"form-group",children:[kj.jsx(rU,{label:y,required:c,id:`${t}-key`}),kj.jsx("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:({target:e})=>i(e&&e.value),defaultValue:a})]})}),kj.jsx("div",{className:"form-additional form-group col-xs-5",children:d}),kj.jsx("div",{className:"col-xs-2",children:kj.jsx(v,{className:"array-item-remove btn-block",style:{border:"0"},disabled:o||l,onClick:s(a),uiSchema:f,registry:p})})]})}):kj.jsx("div",{className:r,style:n,children:d})}function dU({type:e,range:t,value:r,select:n,rootId:o,name:a,disabled:i,readonly:s,autofocus:l,registry:c,onBlur:u,onFocus:d}){const f=o+"_"+e,{SelectWidget:p}=c.widgets;return kj.jsx(p,{schema:{type:"integer"},id:f,name:a,className:"form-control",options:{enumOptions:XP(t[0],t[1])},placeholder:e,value:r,disabled:i,readonly:s,autofocus:l,onChange:t=>n(e,t),onBlur:u,onFocus:d,registry:c,label:"","aria-describedby":Jj(o)})}function fU({time:e=!1,disabled:t=!1,readonly:r=!1,autofocus:n=!1,options:o,id:a,name:i,registry:s,onBlur:l,onFocus:c,onChange:u,value:d}){const{translateString:f}=s,[p,m]=L.useState(d),[h,v]=L.useReducer(((e,t)=>({...e,...t})),eO(d,e));L.useEffect((()=>{const t=rO(h,e);!function(e){return Object.values(e).every((e=>-1!==e))}(h)||t===d?p!==d&&(m(d),v(eO(d,e))):u(t)}),[e,d,u,h,p]);const y=L.useCallback(((e,t)=>{v({[e]:t})}),[]),g=L.useCallback((n=>{if(n.preventDefault(),t||r)return;const o=eO((new Date).toJSON(),e);u(rO(o,e))}),[t,r,e]),b=L.useCallback((e=>{e.preventDefault(),t||r||u(void 0)}),[t,r,u]);return kj.jsxs("ul",{className:"list-inline",children:[lj(h,e,o.yearsRange,o.format).map(((e,o)=>kj.jsx("li",{className:"list-inline-item",children:kj.jsx(dU,{rootId:a,name:i,select:y,...e,disabled:t,readonly:r,registry:s,onBlur:l,onFocus:c,autofocus:n&&0===o})},o))),("undefined"===o.hideNowButton||!o.hideNowButton)&&kj.jsx("li",{className:"list-inline-item",children:kj.jsx("a",{href:"#",className:"btn btn-info btn-now",onClick:g,children:f(kO.NowLabel)})}),("undefined"===o.hideClearButton||!o.hideClearButton)&&kj.jsx("li",{className:"list-inline-item",children:kj.jsx("a",{href:"#",className:"btn btn-warning btn-clear",onClick:b,children:f(kO.ClearLabel)})})]})}function pU({time:e=!0,...t}){const{AltDateWidget:r}=t.registry.widgets;return kj.jsx(r,{time:e,...t})}function mU({schema:e,uiSchema:t,options:r,id:n,value:o,disabled:a,readonly:i,label:s,hideLabel:l,autofocus:c=!1,onBlur:u,onFocus:d,onChange:f,registry:p}){var m;const h=pj("DescriptionFieldTemplate",p,r),v=tO(e),y=L.useCallback((e=>f(e.target.checked)),[f]),g=L.useCallback((e=>u(n,e.target.checked)),[u,n]),b=L.useCallback((e=>d(n,e.target.checked)),[d,n]),w=null!==(m=r.description)&&void 0!==m?m:e.description;return kj.jsxs("div",{className:"checkbox "+(a||i?"disabled":""),children:[!l&&!!w&&kj.jsx(h,{id:Kj(n),description:w,schema:e,uiSchema:t,registry:p}),kj.jsxs("label",{children:[kj.jsx("input",{type:"checkbox",id:n,name:n,checked:void 0!==o&&o,required:v,disabled:a||i,autoFocus:c,onChange:y,onBlur:g,onFocus:b,"aria-describedby":Jj(n)}),Zj(kj.jsx("span",{children:s}),l)]})]})}function hU({id:e,disabled:t,options:{inline:r=!1,enumOptions:n,enumDisabled:o,emptyValue:a},value:i,autofocus:s=!1,readonly:l,onChange:c,onBlur:u,onFocus:d}){const f=Array.isArray(i)?i:[i],p=L.useCallback((({target:t})=>u(e,ej(t&&t.value,n,a))),[u,e]),m=L.useCallback((({target:t})=>d(e,ej(t&&t.value,n,a))),[d,e]);return kj.jsx("div",{className:"checkboxes",id:e,children:Array.isArray(n)&&n.map(((a,i)=>{const u=rj(a.value,f),d=Array.isArray(o)&&-1!==o.indexOf(a.value),h=t||d||l?"disabled":"",v=kj.jsxs("span",{children:[kj.jsx("input",{type:"checkbox",id:Xj(e,i),name:e,checked:u,value:String(i),disabled:t||d||l,autoFocus:s&&0===i,onChange:e=>{e.target.checked?c(oj(i,f,n)):c(tj(i,f,n))},onBlur:p,onFocus:m,"aria-describedby":Jj(e)}),kj.jsx("span",{children:a.label})]});return r?kj.jsx("label",{className:`checkbox-inline ${h}`,children:v},i):kj.jsx("div",{className:`checkbox ${h}`,children:kj.jsx("label",{children:v})},i)}))})}function vU(e){const{disabled:t,readonly:r,options:n,registry:o}=e,a=pj("BaseInputTemplate",o,n);return kj.jsx(a,{type:"color",...e,disabled:t||r})}function yU(e){const{onChange:t,options:r,registry:n}=e,o=pj("BaseInputTemplate",n,r),a=L.useCallback((e=>t(e||void 0)),[t]);return kj.jsx(o,{type:"date",...e,onChange:a})}function gU(e){const{onChange:t,value:r,options:n,registry:o}=e,a=pj("BaseInputTemplate",o,n);return kj.jsx(a,{type:"datetime-local",...e,value:pO(r),onChange:e=>{return t((r=e)?new Date(r).toJSON():void 0);var r}})}function bU(e){const{options:t,registry:r}=e,n=pj("BaseInputTemplate",r,t);return kj.jsx(n,{type:"email",...e})}function wU(e,t){return null===e?null:e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}function SU(e){const{name:t,size:r,type:n}=e;return new Promise(((o,a)=>{const i=new window.FileReader;i.onerror=a,i.onload=e=>{var a;"string"==typeof(null===(a=e.target)||void 0===a?void 0:a.result)?o({dataURL:wU(e.target.result,t),name:t,size:r,type:n}):o({dataURL:null,name:t,size:r,type:n})},i.readAsDataURL(e)}))}function xU({fileInfo:e,registry:t}){const{translateString:r}=t,{dataURL:n,type:o,name:a}=e;return n?["image/jpeg","image/png"].includes(o)?kj.jsx("img",{src:n,style:{maxWidth:"100%"},className:"file-preview"}):kj.jsxs(kj.Fragment,{children:[" ",kj.jsx("a",{download:`preview-${a}`,href:n,className:"file-download",children:r(kO.PreviewLabel)})]}):null}function $U({filesInfo:e,registry:t,preview:r,onRemove:n,options:o}){if(0===e.length)return null;const{translateString:a}=t,{RemoveButton:i}=pj("ButtonTemplates",t,o);return kj.jsx("ul",{className:"file-info",children:e.map(((e,o)=>{const{name:s,size:l,type:c}=e;return kj.jsxs("li",{children:[kj.jsx(RB,{children:a(kO.FilesInfo,[s,c,String(l)])}),r&&kj.jsx(xU,{fileInfo:e,registry:t}),kj.jsx(i,{onClick:()=>n(o),registry:t})]},o)}))})}function kU(e){return e.reduce(((e,t)=>{if(!t)return e;try{const{blob:r,name:n}=function(e){var t;if(-1===e.indexOf("data:"))throw new Error("File is invalid: URI must be a dataURI");const r=e.slice(5).split(";base64,");if(2!==r.length)throw new Error("File is invalid: dataURI must be base64");const[n,o]=r,[a,...i]=n.split(";"),s=a||"",l=decodeURI((null===(t=i.map((e=>e.split("="))).find((([e])=>"name"===e)))||void 0===t?void 0:t[1])||"unknown");try{const e=atob(o),t=new Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return{blob:new window.Blob([new Uint8Array(t)],{type:s}),name:l}}catch(e){throw new Error("File is invalid: "+e.message)}}(t);return[...e,{dataURL:t,name:n,size:r.size,type:r.type}]}catch(t){return e}}),[])}function _U(e){const{disabled:t,readonly:r,required:n,multiple:o,onChange:a,value:i,options:s,registry:l}=e,c=pj("BaseInputTemplate",l,s),u=L.useCallback((e=>{var t;e.target.files&&(t=e.target.files,Promise.all(Array.from(t).map(SU))).then((e=>{const t=e.map((e=>e.dataURL));a(o?i.concat(t):t[0])}))}),[o,i,a]),d=L.useMemo((()=>kU(Array.isArray(i)?i:[i])),[i]),f=L.useCallback((e=>{if(o){const t=i.filter(((t,r)=>r!==e));a(t)}else a(void 0)}),[o,i,a]);return kj.jsxs("div",{children:[kj.jsx(c,{...e,disabled:t||r,type:"file",required:!i&&n,onChangeOverride:u,value:"",accept:s.accept?String(s.accept):void 0}),kj.jsx($U,{filesInfo:d,onRemove:f,registry:l,preview:s.filePreview,options:s})]})}function EU({id:e,value:t}){return kj.jsx("input",{type:"hidden",id:e,name:e,value:void 0===t?"":t})}function CU(e){const{options:t,registry:r}=e,n=pj("BaseInputTemplate",r,t);return kj.jsx(n,{type:"password",...e})}function PU({options:e,value:t,required:r,disabled:n,readonly:o,autofocus:a=!1,onBlur:i,onFocus:s,onChange:l,id:c}){const{enumOptions:u,enumDisabled:d,inline:f,emptyValue:p}=e,m=L.useCallback((({target:e})=>i(c,ej(e&&e.value,u,p))),[i,c]),h=L.useCallback((({target:e})=>s(c,ej(e&&e.value,u,p))),[s,c]);return kj.jsx("div",{className:"field-radio-group",id:c,children:Array.isArray(u)&&u.map(((e,i)=>{const s=rj(e.value,t),u=Array.isArray(d)&&-1!==d.indexOf(e.value),p=n||u||o?"disabled":"",v=kj.jsxs("span",{children:[kj.jsx("input",{type:"radio",id:Xj(c,i),checked:s,name:c,required:r,value:String(i),disabled:n||u||o,autoFocus:a&&0===i,onChange:()=>l(e.value),onBlur:m,onFocus:h,"aria-describedby":Jj(c)}),kj.jsx("span",{children:e.label})]});return f?kj.jsx("label",{className:`radio-inline ${p}`,children:v},i):kj.jsx("div",{className:`radio ${p}`,children:kj.jsx("label",{children:v})},i)}))})}function jU(e){const{value:t,registry:{templates:{BaseInputTemplate:r}}}=e;return kj.jsxs("div",{className:"field-range-wrapper",children:[kj.jsx(r,{type:"range",...e}),kj.jsx("span",{className:"range-view",children:t})]})}function OU(e,t){return t?Array.from(e.target.options).slice().filter((e=>e.selected)).map((e=>e.value)):e.target.value}function NU({schema:e,id:t,options:r,value:n,required:o,disabled:a,readonly:i,multiple:s=!1,autofocus:l=!1,onChange:c,onBlur:u,onFocus:d,placeholder:f}){const{enumOptions:p,enumDisabled:m,emptyValue:h}=r,v=s?[]:"",y=L.useCallback((e=>{const r=OU(e,s);return d(t,ej(r,p,h))}),[d,t,e,s,p,h]),g=L.useCallback((e=>{const r=OU(e,s);return u(t,ej(r,p,h))}),[u,t,e,s,p,h]),b=L.useCallback((e=>{const t=OU(e,s);return c(ej(t,p,h))}),[c,e,s,p,h]),w=nj(n,p,s),S=!s&&void 0===e.default;return kj.jsxs("select",{id:t,name:t,multiple:s,className:"form-control",value:void 0===w?v:w,required:o,disabled:a||i,autoFocus:l,onBlur:g,onFocus:y,onChange:b,"aria-describedby":Jj(t),children:[S&&kj.jsx("option",{value:"",children:f}),Array.isArray(p)&&p.map((({value:e,label:t},r)=>{const n=m&&-1!==m.indexOf(e);return kj.jsx("option",{value:String(r),disabled:n,children:t},r)}))]})}function RU({id:e,options:t={},placeholder:r,value:n,required:o,disabled:a,readonly:i,autofocus:s=!1,onChange:l,onBlur:c,onFocus:u}){const d=L.useCallback((({target:{value:e}})=>l(""===e?t.emptyValue:e)),[l,t.emptyValue]),f=L.useCallback((({target:t})=>c(e,t&&t.value)),[c,e]),p=L.useCallback((({target:t})=>u(e,t&&t.value)),[e,u]);return kj.jsx("textarea",{id:e,name:e,className:"form-control",value:n||"",placeholder:r,required:o,disabled:a,readOnly:i,autoFocus:s,rows:t.rows,onBlur:f,onFocus:p,onChange:d,"aria-describedby":Jj(e)})}function AU(e){const{options:t,registry:r}=e,n=pj("BaseInputTemplate",r,t);return kj.jsx(n,{...e})}function TU(e){const{onChange:t,options:r,registry:n}=e,o=pj("BaseInputTemplate",n,r),a=L.useCallback((e=>t(e?`${e}:00`:void 0)),[t]);return kj.jsx(o,{type:"time",...e,onChange:a})}function IU(e){const{options:t,registry:r}=e,n=pj("BaseInputTemplate",r,t);return kj.jsx(n,{type:"url",...e})}function MU(e){const{options:t,registry:r}=e,n=pj("BaseInputTemplate",r,t);return kj.jsx(n,{type:"number",...e})}function FU(){return{fields:{AnyOfField:ML,ArrayField:TL,BooleanField:IL,NumberField:zL,ObjectField:IB,OneOfField:ML,SchemaField:DB,StringField:zB,NullField:LB},templates:{ArrayFieldDescriptionTemplate:VB,ArrayFieldItemTemplate:BB,ArrayFieldTemplate:UB,ArrayFieldTitleTemplate:WB,ButtonTemplates:{SubmitButton:KB,AddButton:XB,CopyButton:GB,MoveDownButton:QB,MoveUpButton:YB,RemoveButton:JB},BaseInputTemplate:qB,DescriptionFieldTemplate:ZB,ErrorListTemplate:eU,FieldTemplate:nU,FieldErrorTemplate:oU,FieldHelpTemplate:aU,ObjectFieldTemplate:iU,TitleFieldTemplate:lU,UnsupportedFieldTemplate:cU,WrapIfAdditionalTemplate:uU},widgets:{AltDateWidget:fU,AltDateTimeWidget:pU,CheckboxWidget:mU,CheckboxesWidget:hU,ColorWidget:vU,DateWidget:yU,DateTimeWidget:gU,EmailWidget:bU,FileWidget:_U,HiddenWidget:EU,PasswordWidget:CU,RadioWidget:PU,RangeWidget:jU,SelectWidget:NU,TextWidget:AU,TextareaWidget:RU,TimeWidget:TU,UpDownWidget:MU,URLWidget:IU},rootSchema:{},formContext:{},translateString:ZP}}RU.defaultProps={autofocus:!1,options:{}};let DU=class extends L.Component{constructor(e){if(super(e),this.getUsedFormData=(e,t)=>{if(0===t.length&&"object"!=typeof e)return e;const r=jL(e,t);return Array.isArray(e)?Object.keys(r).map((e=>r[e])):r},this.getFieldNames=(e,t)=>{const r=(e,n=[],o=[[]])=>(Object.keys(e).forEach((a=>{if("object"==typeof e[a]){const t=o.map((e=>[...e,a]));e[a][wd]&&""!==e[a][md]?n.push(e[a][md]):r(e[a],n,t)}else a===md&&""!==e[a]&&o.forEach((e=>{const r=th(t,e);("object"!=typeof r||mv(r)||Array.isArray(r)&&r.every((e=>"object"!=typeof e)))&&n.push(e)}))})),n);return r(e)},this.omitExtraData=e=>{const{schema:t,schemaUtils:r}=this.state,n=r.retrieveSchema(t,e),o=r.toPathSchema(n,"",e),a=this.getFieldNames(o,e);return this.getUsedFormData(e,a)},this.onChange=(e,t,r)=>{const{extraErrors:n,omitExtraData:o,liveOmit:a,noValidate:i,liveValidate:s,onChange:l}=this.props,{schemaUtils:c,schema:u}=this.state;let d=this.state.retrievedSchema;if(ed(e)||Array.isArray(e)){const t=this.getStateFromProps(this.props,e);e=t.formData,d=t.retrievedSchema}const f=!i&&s;let p={formData:e,schema:u},m=e;if(!0===o&&!0===a&&(m=this.omitExtraData(e),p={formData:m}),f){const e=this.validate(m,u,c,d);let r=e.errors,o=e.errorSchema;const a=r,i=o;if(n){const t=mO(e,n);o=t.errorSchema,r=t.errors}if(t){o=PP(o,this.filterErrorsBasedOnSchema(t,d,m),"preventDuplicates")}p={formData:m,errors:r,errorSchema:o,schemaValidationErrors:a,schemaValidationErrorSchema:i}}else if(!i&&t){const e=n?PP(t,n,"preventDuplicates"):t;p={formData:m,errorSchema:e,errors:nO(e)}}this.setState(p,(()=>l&&l({...this.state,...p},r)))},this.reset=()=>{const{onChange:e}=this.props,t={formData:this.getStateFromProps(this.props,void 0).formData,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{}};this.setState(t,(()=>e&&e({...this.state,...t})))},this.onBlur=(e,t)=>{const{onBlur:r}=this.props;r&&r(e,t)},this.onFocus=(e,t)=>{const{onFocus:r}=this.props;r&&r(e,t)},this.onSubmit=e=>{if(e.preventDefault(),e.target!==e.currentTarget)return;e.persist();const{omitExtraData:t,extraErrors:r,noValidate:n,onSubmit:o}=this.props;let{formData:a}=this.state;if(!0===t&&(a=this.omitExtraData(a)),n||this.validateFormWithFormData(a)){const t=r||{},n=r?nO(r):[];this.setState({formData:a,errors:n,errorSchema:t,schemaValidationErrors:[],schemaValidationErrorSchema:{}},(()=>{o&&o({...this.state,formData:a,status:"submitted"},e)}))}},this.submit=()=>{if(this.formElement.current){const e=new CustomEvent("submit",{cancelable:!0});e.preventDefault(),this.formElement.current.dispatchEvent(e),this.formElement.current.requestSubmit()}},this.validateFormWithFormData=e=>{const{extraErrors:t,extraErrorsBlockSubmit:r,focusOnFirstError:n,onError:o}=this.props,{errors:a}=this.state,i=this.validate(e);let s=i.errors,l=i.errorSchema;const c=s,u=l,d=s.length>0||t&&r;if(d){if(t){const e=mO(i,t);l=e.errorSchema,s=e.errors}n&&("function"==typeof n?n(s[0]):this.focusOnError(s[0])),this.setState({errors:s,errorSchema:l,schemaValidationErrors:c,schemaValidationErrorSchema:u},(()=>{o?o(s):console.error("Form validation failed",s)}))}else a.length>0&&this.setState({errors:[],errorSchema:{},schemaValidationErrors:[],schemaValidationErrorSchema:{}});return!d},!e.validator)throw new Error("A validator is required for Form functionality to work");this.state=this.getStateFromProps(e,e.formData),this.props.onChange&&!Kf(this.state.formData,this.props.formData)&&this.props.onChange(this.state),this.formElement=L.createRef()}getSnapshotBeforeUpdate(e,t){if(!Kf(this.props,e)){const r=function(e,t){const r=ef(e),n=ef(t);return e===t||!r&&!n?[]:r&&!n?ly(e):!r&&n?ly(t):[...ly(_O(e,((e,r)=>!Kf(e,th(t,r))))),...OO(ly(t),ly(e))]}(this.props.formData,e.formData),n=!Kf(e.schema,this.props.schema),o=r.length>0||!Kf(e.formData,this.props.formData),a=this.getStateFromProps(this.props,this.props.formData,n||o?void 0:this.state.retrievedSchema,n,r);return{nextState:a,shouldUpdate:!Kf(a,t)}}return{shouldUpdate:!1}}componentDidUpdate(e,t,r){if(r.shouldUpdate){const{nextState:e}=r;Kf(e.formData,this.props.formData)||Kf(e.formData,t.formData)||!this.props.onChange||this.props.onChange(e),this.setState(e)}}getStateFromProps(e,t,r,n=!1,o=[]){var a;const i=this.state||{},s="schema"in e?e.schema:this.props.schema,l=("uiSchema"in e?e.uiSchema:this.props.uiSchema)||{},c=void 0!==t,u="liveValidate"in e?e.liveValidate:this.props.liveValidate,d=c&&!e.noValidate&&u,f=s,p="experimental_defaultFormStateBehavior"in e?e.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior,m="experimental_customMergeAllOf"in e?e.experimental_customMergeAllOf:this.props.experimental_customMergeAllOf;let h=i.schemaUtils;h&&!h.doesSchemaUtilsDiffer(e.validator,f,p,m)||(h=function(e,t,r={},n){return new YP(e,t,r,n)}(e.validator,f,p,m));const v=h.getDefaultFormState(s,t),y=this.updateRetrievedSchema(null!=r?r:h.retrieveSchema(s,v));let g,b,w=i.schemaValidationErrors,S=i.schemaValidationErrorSchema;if(d){const e=this.validate(v,s,h,y);g=e.errors,b=void 0===r?e.errorSchema:PP(null===(a=this.state)||void 0===a?void 0:a.errorSchema,e.errorSchema,"preventDuplicates"),w=g,S=b}else{const t=e.noValidate||n?{errors:[],errorSchema:{}}:e.liveValidate?{errors:i.errors||[],errorSchema:i.errorSchema||{}}:{errors:i.schemaValidationErrors||[],errorSchema:i.schemaValidationErrorSchema||{}};if(g=t.errors,b=t.errorSchema,o.length>0){const e=o.reduce(((e,t)=>(e[t]=void 0,e)),{});b=S=PP(t.errorSchema,e,"preventDuplicates")}}if(e.extraErrors){const t=mO({errorSchema:b,errors:g},e.extraErrors);b=t.errorSchema,g=t.errors}const x=h.toIdSchema(y,l["ui:rootFieldId"],v,e.idPrefix,e.idSeparator);return{schemaUtils:h,schema:s,uiSchema:l,idSchema:x,formData:v,edit:c,errors:g,errorSchema:b,schemaValidationErrors:w,schemaValidationErrorSchema:S,retrievedSchema:y}}shouldComponentUpdate(e,t){return function(e,t,r){const{props:n,state:o}=e;return!Kf(n,t)||!Kf(o,r)}(this,e,t)}validate(e,t=this.props.schema,r,n){const o=r||this.state.schemaUtils,{customValidate:a,transformErrors:i,uiSchema:s}=this.props,l=null!=n?n:o.retrieveSchema(t,e);return o.getValidator().validateFormData(e,l,a,i,s)}renderErrors(e){const{errors:t,errorSchema:r,schema:n,uiSchema:o}=this.state,{formContext:a}=this.props,i=pj("ErrorListTemplate",e,kd(o));return t&&t.length?kj.jsx(i,{errors:t,errorSchema:r||{},schema:n,uiSchema:o,formContext:a,registry:e}):null}filterErrorsBasedOnSchema(e,t,r){const{retrievedSchema:n,schemaUtils:o}=this.state,a=null!=t?t:n,i=o.toPathSchema(a,"",r),s=this.getFieldNames(i,r),l=jL(e,s);"object"!==(null==t?void 0:t.type)&&"array"!==(null==t?void 0:t.type)&&(l.__errors=e.__errors);const c=e=>(NE(e,((t,r)=>{EP(t)?delete e[r]:"object"!=typeof t||Array.isArray(t.__errors)||c(t)})),e);return c(l)}updateRetrievedSchema(e){var t;return Kf(e,null===(t=this.state)||void 0===t?void 0:t.retrievedSchema)?this.state.retrievedSchema:e}getRegistry(){var e;const{translateString:t,uiSchema:r={}}=this.props,{schemaUtils:n}=this.state,{fields:o,templates:a,widgets:i,formContext:s,translateString:l}=FU();return{fields:{...o,...this.props.fields},templates:{...a,...this.props.templates,ButtonTemplates:{...a.ButtonTemplates,...null===(e=this.props.templates)||void 0===e?void 0:e.ButtonTemplates}},widgets:{...i,...this.props.widgets},rootSchema:this.props.schema,formContext:this.props.formContext||s,schemaUtils:n,translateString:t||l,globalUiOptions:r["ui:globalOptions"]}}focusOnError(e){const{idPrefix:t="root",idSeparator:r="_"}=this.props,{property:n}=e,o=dO(n);""===o[0]?o[0]=t:o.unshift(t);const a=o.join(r);let i=this.formElement.current.elements[a];i||(i=this.formElement.current.querySelector(`input[id^="${a}"`)),i&&i.length&&(i=i[0]),i&&i.focus()}validateForm(){const{omitExtraData:e}=this.props;let{formData:t}=this.state;return!0===e&&(t=this.omitExtraData(t)),this.validateFormWithFormData(t)}render(){const{children:e,id:t,idPrefix:r,idSeparator:n,className:o="",tagName:a,name:i,method:s,target:l,action:c,autoComplete:u,enctype:d,acceptcharset:f,acceptCharset:p,noHtml5Validate:m=!1,disabled:h,readonly:v,formContext:y,showErrorList:g="top",_internalFormWrapper:b}=this.props,{schema:w,uiSchema:S,formData:x,errorSchema:$,idSchema:k}=this.state,_=this.getRegistry(),{SchemaField:E}=_.fields,{SubmitButton:C}=_.templates.ButtonTemplates,P=b?a:void 0,j=b||a||"form";let{[gd]:O={}}=kd(S);h&&(O={...O,props:{...O.props,disabled:!0}});const N={[$d]:{[gd]:O}};return kj.jsxs(j,{className:o||"rjsf",id:t,name:i,method:s,target:l,action:c,autoComplete:u,encType:d,acceptCharset:p||f,noValidate:m,onSubmit:this.onSubmit,as:P,ref:this.formElement,children:["top"===g&&this.renderErrors(_),kj.jsx(E,{name:"",schema:w,uiSchema:S,errorSchema:$,idSchema:k,idPrefix:r,idSeparator:n,formContext:y,formData:x,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:_,disabled:h,readonly:v}),e||kj.jsx(C,{uiSchema:N,registry:_}),"bottom"===g&&this.renderErrors(_)]})}};var zU={black:"#000",white:"#fff"};var LU={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var VU={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var BU={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var UU={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var WU={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var qU={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var KU={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function HU(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var GU=Object.freeze({__proto__:null,default:HU}),QU="$$material";function YU(){return YU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},YU.apply(this,arguments)}function JU(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var XU=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),ZU="-ms-",eW="-moz-",tW="-webkit-",rW="comm",nW="rule",oW="decl",aW="@keyframes",iW=Math.abs,sW=String.fromCharCode,lW=Object.assign;function cW(e){return e.trim()}function uW(e,t,r){return e.replace(t,r)}function dW(e,t){return e.indexOf(t)}function fW(e,t){return 0|e.charCodeAt(t)}function pW(e,t,r){return e.slice(t,r)}function mW(e){return e.length}function hW(e){return e.length}function vW(e,t){return t.push(e),e}var yW=1,gW=1,bW=0,wW=0,SW=0,xW="";function $W(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:yW,column:gW,length:i,return:""}}function kW(e,t){return lW($W("",null,null,"",null,null,0),e,{length:-e.length},t)}function _W(){return SW=wW>0?fW(xW,--wW):0,gW--,10===SW&&(gW=1,yW--),SW}function EW(){return SW=wW<bW?fW(xW,wW++):0,gW++,10===SW&&(gW=1,yW++),SW}function CW(){return fW(xW,wW)}function PW(){return wW}function jW(e,t){return pW(xW,e,t)}function OW(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function NW(e){return yW=gW=1,bW=mW(xW=e),wW=0,[]}function RW(e){return xW="",e}function AW(e){return cW(jW(wW-1,MW(91===e?e+2:40===e?e+1:e)))}function TW(e){for(;(SW=CW())&&SW<33;)EW();return OW(e)>2||OW(SW)>3?"":" "}function IW(e,t){for(;--t&&EW()&&!(SW<48||SW>102||SW>57&&SW<65||SW>70&&SW<97););return jW(e,PW()+(t<6&&32==CW()&&32==EW()))}function MW(e){for(;EW();)switch(SW){case e:return wW;case 34:case 39:34!==e&&39!==e&&MW(SW);break;case 40:41===e&&MW(e);break;case 92:EW()}return wW}function FW(e,t){for(;EW()&&e+SW!==57&&(e+SW!==84||47!==CW()););return"/*"+jW(t,wW-1)+"*"+sW(47===e?e:EW())}function DW(e){for(;!OW(CW());)EW();return jW(e,wW)}function zW(e){return RW(LW("",null,null,null,[""],e=NW(e),0,[0],e))}function LW(e,t,r,n,o,a,i,s,l){for(var c=0,u=0,d=i,f=0,p=0,m=0,h=1,v=1,y=1,g=0,b="",w=o,S=a,x=n,$=b;v;)switch(m=g,g=EW()){case 40:if(108!=m&&58==fW($,d-1)){-1!=dW($+=uW(AW(g),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:$+=AW(g);break;case 9:case 10:case 13:case 32:$+=TW(m);break;case 92:$+=IW(PW()-1,7);continue;case 47:switch(CW()){case 42:case 47:vW(BW(FW(EW(),PW()),t,r),l);break;default:$+="/"}break;case 123*h:s[c++]=mW($)*y;case 125*h:case 59:case 0:switch(g){case 0:case 125:v=0;case 59+u:-1==y&&($=uW($,/\f/g,"")),p>0&&mW($)-d&&vW(p>32?UW($+";",n,r,d-1):UW(uW($," ","")+";",n,r,d-2),l);break;case 59:$+=";";default:if(vW(x=VW($,t,r,c,u,o,s,b,w=[],S=[],d),a),123===g)if(0===u)LW($,t,x,x,w,a,d,s,S);else switch(99===f&&110===fW($,3)?100:f){case 100:case 108:case 109:case 115:LW(e,x,x,n&&vW(VW(e,x,x,0,0,o,s,b,o,w=[],d),S),o,S,d,s,n?w:S);break;default:LW($,x,x,x,[""],S,0,s,S)}}c=u=p=0,h=y=1,b=$="",d=i;break;case 58:d=1+mW($),p=m;default:if(h<1)if(123==g)--h;else if(125==g&&0==h++&&125==_W())continue;switch($+=sW(g),g*h){case 38:y=u>0?1:($+="\f",-1);break;case 44:s[c++]=(mW($)-1)*y,y=1;break;case 64:45===CW()&&($+=AW(EW())),f=CW(),u=d=mW(b=$+=DW(PW())),g++;break;case 45:45===m&&2==mW($)&&(h=0)}}return a}function VW(e,t,r,n,o,a,i,s,l,c,u){for(var d=o-1,f=0===o?a:[""],p=hW(f),m=0,h=0,v=0;m<n;++m)for(var y=0,g=pW(e,d+1,d=iW(h=i[m])),b=e;y<p;++y)(b=cW(h>0?f[y]+" "+g:uW(g,/&\f/g,f[y])))&&(l[v++]=b);return $W(e,t,r,0===o?nW:s,l,c,u)}function BW(e,t,r){return $W(e,t,r,rW,sW(SW),pW(e,2,-2),0)}function UW(e,t,r,n){return $W(e,t,r,oW,pW(e,0,n),pW(e,n+1,-1),n)}function WW(e,t){for(var r="",n=hW(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function qW(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case oW:return e.return=e.return||e.value;case rW:return"";case aW:return e.return=e.value+"{"+WW(e.children,n)+"}";case nW:e.value=e.props.join(",")}return mW(r=WW(e.children,n))?e.return=e.value+"{"+r+"}":""}function KW(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var HW=function(e,t,r){for(var n=0,o=0;n=o,o=CW(),38===n&&12===o&&(t[r]=1),!OW(o);)EW();return jW(e,wW)},GW=function(e,t){return RW(function(e,t){var r=-1,n=44;do{switch(OW(n)){case 0:38===n&&12===CW()&&(t[r]=1),e[r]+=HW(wW-1,t,r);break;case 2:e[r]+=AW(n);break;case 4:if(44===n){e[++r]=58===CW()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=sW(n)}}while(n=EW());return e}(NW(e),t))},QW=new WeakMap,YW=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||QW.get(r))&&!n){QW.set(e,!0);for(var o=[],a=GW(t,o),i=r.props,s=0,l=0;s<a.length;s++)for(var c=0;c<i.length;c++,l++)e.props[l]=o[s]?a[s].replace(/&\f/g,i[c]):i[c]+" "+a[s]}}},JW=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function XW(e,t){switch(function(e,t){return 45^fW(e,0)?(((t<<2^fW(e,0))<<2^fW(e,1))<<2^fW(e,2))<<2^fW(e,3):0}(e,t)){case 5103:return tW+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return tW+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return tW+e+eW+e+ZU+e+e;case 6828:case 4268:return tW+e+ZU+e+e;case 6165:return tW+e+ZU+"flex-"+e+e;case 5187:return tW+e+uW(e,/(\w+).+(:[^]+)/,tW+"box-$1$2"+ZU+"flex-$1$2")+e;case 5443:return tW+e+ZU+"flex-item-"+uW(e,/flex-|-self/,"")+e;case 4675:return tW+e+ZU+"flex-line-pack"+uW(e,/align-content|flex-|-self/,"")+e;case 5548:return tW+e+ZU+uW(e,"shrink","negative")+e;case 5292:return tW+e+ZU+uW(e,"basis","preferred-size")+e;case 6060:return tW+"box-"+uW(e,"-grow","")+tW+e+ZU+uW(e,"grow","positive")+e;case 4554:return tW+uW(e,/([^-])(transform)/g,"$1"+tW+"$2")+e;case 6187:return uW(uW(uW(e,/(zoom-|grab)/,tW+"$1"),/(image-set)/,tW+"$1"),e,"")+e;case 5495:case 3959:return uW(e,/(image-set\([^]*)/,tW+"$1$`$1");case 4968:return uW(uW(e,/(.+:)(flex-)?(.*)/,tW+"box-pack:$3"+ZU+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+tW+e+e;case 4095:case 3583:case 4068:case 2532:return uW(e,/(.+)-inline(.+)/,tW+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(mW(e)-1-t>6)switch(fW(e,t+1)){case 109:if(45!==fW(e,t+4))break;case 102:return uW(e,/(.+:)(.+)-([^]+)/,"$1"+tW+"$2-$3$1"+eW+(108==fW(e,t+3)?"$3":"$2-$3"))+e;case 115:return~dW(e,"stretch")?XW(uW(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==fW(e,t+1))break;case 6444:switch(fW(e,mW(e)-3-(~dW(e,"!important")&&10))){case 107:return uW(e,":",":"+tW)+e;case 101:return uW(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+tW+(45===fW(e,14)?"inline-":"")+"box$3$1"+tW+"$2$3$1"+ZU+"$2box$3")+e}break;case 5936:switch(fW(e,t+11)){case 114:return tW+e+ZU+uW(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return tW+e+ZU+uW(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return tW+e+ZU+uW(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return tW+e+ZU+e+e}return e}var ZW=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case oW:e.return=XW(e.value,e.length);break;case aW:return WW([kW(e,{value:uW(e.value,"@","@"+tW)})],n);case nW:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return WW([kW(e,{props:[uW(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return WW([kW(e,{props:[uW(t,/:(plac\w+)/,":"+tW+"input-$1")]}),kW(e,{props:[uW(t,/:(plac\w+)/,":-moz-$1")]}),kW(e,{props:[uW(t,/:(plac\w+)/,ZU+"input-$1")]})],n)}return""}))}}],eq=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n,o,a=e.stylisPlugins||ZW,i={},s=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)i[t[r]]=!0;s.push(e)}));var l,c,u=[qW,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=hW(e);return function(r,n,o,a){for(var i="",s=0;s<t;s++)i+=e[s](r,n,o,a)||"";return i}}([YW,JW].concat(a,u));o=function(e,t,r,n){l=r,function(e){WW(zW(e),d)}(e?e+"{"+t.styles+"}":t.styles),n&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new XU({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return f.sheet.hydrate(s),f},tq={exports:{}},rq={},nq="function"==typeof Symbol&&Symbol.for,oq=nq?Symbol.for("react.element"):60103,aq=nq?Symbol.for("react.portal"):60106,iq=nq?Symbol.for("react.fragment"):60107,sq=nq?Symbol.for("react.strict_mode"):60108,lq=nq?Symbol.for("react.profiler"):60114,cq=nq?Symbol.for("react.provider"):60109,uq=nq?Symbol.for("react.context"):60110,dq=nq?Symbol.for("react.async_mode"):60111,fq=nq?Symbol.for("react.concurrent_mode"):60111,pq=nq?Symbol.for("react.forward_ref"):60112,mq=nq?Symbol.for("react.suspense"):60113,hq=nq?Symbol.for("react.suspense_list"):60120,vq=nq?Symbol.for("react.memo"):60115,yq=nq?Symbol.for("react.lazy"):60116,gq=nq?Symbol.for("react.block"):60121,bq=nq?Symbol.for("react.fundamental"):60117,wq=nq?Symbol.for("react.responder"):60118,Sq=nq?Symbol.for("react.scope"):60119;function xq(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case oq:switch(e=e.type){case dq:case fq:case iq:case lq:case sq:case mq:return e;default:switch(e=e&&e.$$typeof){case uq:case pq:case yq:case vq:case cq:return e;default:return t}}case aq:return t}}}function $q(e){return xq(e)===fq}rq.AsyncMode=dq,rq.ConcurrentMode=fq,rq.ContextConsumer=uq,rq.ContextProvider=cq,rq.Element=oq,rq.ForwardRef=pq,rq.Fragment=iq,rq.Lazy=yq,rq.Memo=vq,rq.Portal=aq,rq.Profiler=lq,rq.StrictMode=sq,rq.Suspense=mq,rq.isAsyncMode=function(e){return $q(e)||xq(e)===dq},rq.isConcurrentMode=$q,rq.isContextConsumer=function(e){return xq(e)===uq},rq.isContextProvider=function(e){return xq(e)===cq},rq.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===oq},rq.isForwardRef=function(e){return xq(e)===pq},rq.isFragment=function(e){return xq(e)===iq},rq.isLazy=function(e){return xq(e)===yq},rq.isMemo=function(e){return xq(e)===vq},rq.isPortal=function(e){return xq(e)===aq},rq.isProfiler=function(e){return xq(e)===lq},rq.isStrictMode=function(e){return xq(e)===sq},rq.isSuspense=function(e){return xq(e)===mq},rq.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===iq||e===fq||e===lq||e===sq||e===mq||e===hq||"object"==typeof e&&null!==e&&(e.$$typeof===yq||e.$$typeof===vq||e.$$typeof===cq||e.$$typeof===uq||e.$$typeof===pq||e.$$typeof===bq||e.$$typeof===wq||e.$$typeof===Sq||e.$$typeof===gq)},rq.typeOf=xq,tq.exports=rq;var kq=tq.exports,_q={};_q[kq.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_q[kq.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};function Eq(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")})),n}var Cq=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},Pq=function(e,t,r){Cq(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var jq={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Oq=!1,Nq=/[A-Z]|^ms/g,Rq=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Aq=function(e){return 45===e.charCodeAt(1)},Tq=function(e){return null!=e&&"boolean"!=typeof e},Iq=KW((function(e){return Aq(e)?e:e.replace(Nq,"-$&").toLowerCase()})),Mq=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Rq,(function(e,t,r){return zq={name:t,styles:r,next:zq},t}))}return 1===jq[e]||Aq(e)||"number"!=typeof t||0===t?t:t+"px"},Fq="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Dq(e,t,r){if(null==r)return"";var n=r;if(void 0!==n.__emotion_styles)return n;switch(typeof r){case"boolean":return"";case"object":var o=r;if(1===o.anim)return zq={name:o.name,styles:o.styles,next:zq},o.name;var a=r;if(void 0!==a.styles){var i=a.next;if(void 0!==i)for(;void 0!==i;)zq={name:i.name,styles:i.styles,next:zq},i=i.next;return a.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Dq(e,t,r[o])+";";else for(var a in r){var i=r[a];if("object"!=typeof i){var s=i;null!=t&&void 0!==t[s]?n+=a+"{"+t[s]+"}":Tq(s)&&(n+=Iq(a)+":"+Mq(a,s)+";")}else{if("NO_COMPONENT_SELECTOR"===a&&Oq)throw new Error(Fq);if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=Dq(e,t,i);switch(a){case"animation":case"animationName":n+=Iq(a)+":"+l+";";break;default:n+=a+"{"+l+"}"}}else for(var c=0;c<i.length;c++)Tq(i[c])&&(n+=Iq(a)+":"+Mq(a,i[c])+";")}}return n}(e,t,r);case"function":if(void 0!==e){var s=zq,l=r(e);return zq=s,Dq(e,t,l)}}var c=r;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var zq,Lq=/label:\s*([^\s;{]+)\s*(;|$)/g;function Vq(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";zq=void 0;var a=e[0];null==a||void 0===a.raw?(n=!1,o+=Dq(r,t,a)):o+=a[0];for(var i=1;i<e.length;i++){if(o+=Dq(r,t,e[i]),n)o+=a[i]}Lq.lastIndex=0;for(var s,l="";null!==(s=Lq.exec(o));)l+="-"+s[1];var c=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:zq}}var Bq,Uq,Wq=!!B.useInsertionEffect&&B.useInsertionEffect,qq=Wq||function(e){return e()},Kq=Wq||L.useLayoutEffect,Hq=L.createContext("undefined"!=typeof HTMLElement?eq({key:"css"}):null),Gq=Hq.Provider,Qq=function(e){return L.forwardRef((function(t,r){var n=L.useContext(Hq);return e(t,n,r)}))},Yq=L.createContext({}),Jq={}.hasOwnProperty,Xq="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Zq=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Cq(t,r,n),qq((function(){return Pq(t,r,n)})),null},eK=Qq((function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var o=e[Xq],a=[n],i="";"string"==typeof e.className?i=Eq(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var s=Vq(a,void 0,L.useContext(Yq));i+=t.key+"-"+s.name;var l={};for(var c in e)Jq.call(e,c)&&"css"!==c&&c!==Xq&&(l[c]=e[c]);return l.className=i,r&&(l.ref=r),L.createElement(L.Fragment,null,L.createElement(Zq,{cache:t,serialized:s,isStringTag:"string"==typeof o}),L.createElement(o,l))})),tK=eK,rK=function(e,t){var r=arguments;if(null==t||!Jq.call(t,"css"))return L.createElement.apply(void 0,r);var n=r.length,o=new Array(n);o[0]=tK,o[1]=function(e,t){var r={};for(var n in t)Jq.call(t,n)&&(r[n]=t[n]);return r[Xq]=e,r}(e,t);for(var a=2;a<n;a++)o[a]=r[a];return L.createElement.apply(null,o)};Bq=rK||(rK={}),Uq||(Uq=Bq.JSX||(Bq.JSX={}));var nK=Qq((function(e,t){var r=Vq([e.styles],void 0,L.useContext(Yq)),n=L.useRef();return Kq((function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,i=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==i&&(a=!0,i.setAttribute("data-emotion",e),o.hydrate([i])),n.current=[o,a],function(){o.flush()}}),[t]),Kq((function(){var e=n.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&Pq(t,r.next,!0),o.tags.length){var a=o.tags[o.tags.length-1].nextElementSibling;o.before=a,o.flush()}t.insert("",r,o,!1)}}),[t,r.name]),null}));function oK(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Vq(t)}function aK(){var e=oK.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var iK=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,sK=KW((function(e){return iK.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),lK=function(e){return"theme"!==e},cK=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?sK:lK},uK=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},dK=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Cq(t,r,n),qq((function(){return Pq(t,r,n)})),null},fK=function e(t,r){var n,o,a=t.__emotion_real===t,i=a&&t.__emotion_base||t;void 0!==r&&(n=r.label,o=r.target);var s=uK(t,r,a),l=s||cK(i),c=!l("as");return function(){var u=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&d.push("label:"+n+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,m=1;m<p;m++)d.push(u[m],f[m])}var h=Qq((function(e,t,r){var n=c&&e.as||i,a="",u=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=L.useContext(Yq)}"string"==typeof e.className?a=Eq(t.registered,u,e.className):null!=e.className&&(a=e.className+" ");var m=Vq(d.concat(u),t.registered,f);a+=t.key+"-"+m.name,void 0!==o&&(a+=" "+o);var h=c&&void 0===s?cK(n):l,v={};for(var y in e)c&&"as"===y||h(y)&&(v[y]=e[y]);return v.className=a,r&&(v.ref=r),L.createElement(L.Fragment,null,L.createElement(dK,{cache:t,serialized:m,isStringTag:"string"==typeof n}),L.createElement(n,v))}));return h.displayName=void 0!==n?n:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,n){return e(t,YU({},r,n,{shouldForwardProp:uK(h,n,!0)})).apply(void 0,d)},h}}.bind(null);let pK;function mK(e){const{styles:t,defaultTheme:r={}}=e,n="function"==typeof t?e=>{return t(null==(n=e)||0===Object.keys(n).length?r:e);var n}:t;return kj.jsx(nK,{styles:n})}
32
+ deps: ${n}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(e){const[t,r]=function({schema:e}){const t={},r={};for(const n in e){if("__proto__"===n)continue;(Array.isArray(e[n])?t:r)[n]=e[n]}return[t,r]}(e);a(e,t),i(e,r)}};function a(e,r=e.schema){const{gen:o,data:a,it:i}=e;if(0===Object.keys(r).length)return;const s=o.let("missing");for(const l in r){const c=r[l];if(0===c.length)continue;const u=(0,n.propertyInData)(o,a,l,i.opts.ownProperties);e.setParams({property:l,depsCount:c.length,deps:c.join(", ")}),i.allErrors?o.if(u,(()=>{for(const t of c)(0,n.checkReportMissingProp)(e,t)})):(o.if(t._`${u} && (${(0,n.checkMissingProp)(e,c,s)})`),(0,n.reportMissingProp)(e,s),o.else())}}function i(e,t=e.schema){const{gen:o,data:a,keyword:i,it:s}=e,l=o.name("valid");for(const c in t)(0,r.alwaysValidSchema)(s,t[c])||(o.if((0,n.propertyInData)(o,a,c,s.opts.ownProperties),(()=>{const t=e.subschema({keyword:i,schemaProp:c},l);e.mergeValidEvaluated(t,l)}),(()=>o.var(l,!0))),e.ok(l))}e.validatePropertyDeps=a,e.validateSchemaDeps=i,e.default=o}(uD);var dD={};Object.defineProperty(dD,"__esModule",{value:!0});const fD=XA,pD=tI,mD={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>fD._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:n,it:o}=e;if((0,pD.alwaysValidSchema)(o,r))return;const a=t.name("valid");t.forIn("key",n,(r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},a),t.if((0,fD.not)(a),(()=>{e.error(!0),o.allErrors||t.break()}))})),e.ok(a)}};dD.default=mD;var hD={};Object.defineProperty(hD,"__esModule",{value:!0});const vD=wI(),yD=XA,gD=iI(),bD=tI,wD={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>yD._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:r,parentSchema:n,data:o,errsCount:a,it:i}=e;if(!a)throw new Error("ajv implementation error");const{allErrors:s,opts:l}=i;if(i.props=!0,"all"!==l.removeAdditional&&(0,bD.alwaysValidSchema)(i,r))return;const c=(0,vD.allSchemaProperties)(n.properties),u=(0,vD.allSchemaProperties)(n.patternProperties);function d(e){t.code(yD._`delete ${o}[${e}]`)}function f(n){if("all"===l.removeAdditional||l.removeAdditional&&!1===r)d(n);else{if(!1===r)return e.setParams({additionalProperty:n}),e.error(),void(s||t.break());if("object"==typeof r&&!(0,bD.alwaysValidSchema)(i,r)){const r=t.name("valid");"failing"===l.removeAdditional?(p(n,r,!1),t.if((0,yD.not)(r),(()=>{e.reset(),d(n)}))):(p(n,r),s||t.if((0,yD.not)(r),(()=>t.break())))}}}function p(t,r,n){const o={keyword:"additionalProperties",dataProp:t,dataPropType:bD.Type.Str};!1===n&&Object.assign(o,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(o,r)}t.forIn("key",o,(r=>{c.length||u.length?t.if(function(r){let o;if(c.length>8){const e=(0,bD.schemaRefOrVal)(i,n.properties,"properties");o=(0,vD.isOwnProperty)(t,e,r)}else o=c.length?(0,yD.or)(...c.map((e=>yD._`${r} === ${e}`))):yD.nil;return u.length&&(o=(0,yD.or)(o,...u.map((t=>yD._`${(0,vD.usePattern)(e,t)}.test(${r})`)))),(0,yD.not)(o)}(r),(()=>f(r))):f(r)})),e.ok(yD._`${a} === ${gD.default.errors}`)}};hD.default=wD;var SD={};Object.defineProperty(SD,"__esModule",{value:!0});const xD=BI(),$D=wI(),kD=tI,_D=hD,ED={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:o,it:a}=e;"all"===a.opts.removeAdditional&&void 0===n.additionalProperties&&_D.default.code(new xD.KeywordCxt(a,_D.default,"additionalProperties"));const i=(0,$D.allSchemaProperties)(r);for(const e of i)a.definedProperties.add(e);a.opts.unevaluated&&i.length&&!0!==a.props&&(a.props=kD.mergeEvaluated.props(t,(0,kD.toHash)(i),a.props));const s=i.filter((e=>!(0,kD.alwaysValidSchema)(a,r[e])));if(0===s.length)return;const l=t.name("valid");for(const r of s)c(r)?u(r):(t.if((0,$D.propertyInData)(t,o,r,a.opts.ownProperties)),u(r),a.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(r),e.ok(l);function c(e){return a.opts.useDefaults&&!a.compositeRule&&void 0!==r[e].default}function u(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},l)}}};SD.default=ED;var CD={};Object.defineProperty(CD,"__esModule",{value:!0});const PD=wI(),jD=XA,OD=tI,ND=tI,RD={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:o,it:a}=e,{opts:i}=a,s=(0,PD.allSchemaProperties)(r),l=s.filter((e=>(0,OD.alwaysValidSchema)(a,r[e])));if(0===s.length||l.length===s.length&&(!a.opts.unevaluated||!0===a.props))return;const c=i.strictSchema&&!i.allowMatchingProperties&&o.properties,u=t.name("valid");!0===a.props||a.props instanceof jD.Name||(a.props=(0,ND.evaluatedPropsToName)(t,a.props));const{props:d}=a;function f(e){for(const t in c)new RegExp(e).test(t)&&(0,OD.checkStrictMode)(a,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function p(r){t.forIn("key",n,(n=>{t.if(jD._`${(0,PD.usePattern)(e,r)}.test(${n})`,(()=>{const o=l.includes(r);o||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:n,dataPropType:ND.Type.Str},u),a.opts.unevaluated&&!0!==d?t.assign(jD._`${d}[${n}]`,!0):o||a.allErrors||t.if((0,jD.not)(u),(()=>t.break()))}))}))}!function(){for(const e of s)c&&f(e),a.allErrors?p(e):(t.var(u,!0),p(e),t.if(u))}()}};CD.default=RD;var TD={};Object.defineProperty(TD,"__esModule",{value:!0});const AD=tI,ID={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,AD.alwaysValidSchema)(n,r))return void e.fail();const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};TD.default=ID;var MD={};Object.defineProperty(MD,"__esModule",{value:!0});const FD={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:wI().validateUnion,error:{message:"must match a schema in anyOf"}};MD.default=FD;var DD={};Object.defineProperty(DD,"__esModule",{value:!0});const zD=XA,LD=tI,VD={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>zD._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:r,parentSchema:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;const a=r,i=t.let("valid",!1),s=t.let("passing",null),l=t.name("_valid");e.setParams({passing:s}),t.block((function(){a.forEach(((r,n)=>{let a;(0,LD.alwaysValidSchema)(o,r)?t.var(l,!0):a=e.subschema({keyword:"oneOf",schemaProp:n,compositeRule:!0},l),n>0&&t.if(zD._`${l} && ${i}`).assign(i,!1).assign(s,zD._`[${s}, ${n}]`).else(),t.if(l,(()=>{t.assign(i,!0),t.assign(s,n),a&&e.mergeEvaluated(a,zD.Name)}))}))})),e.result(i,(()=>e.reset()),(()=>e.error(!0)))}};DD.default=VD;var BD={};Object.defineProperty(BD,"__esModule",{value:!0});const UD=tI,WD={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const o=t.name("valid");r.forEach(((t,r)=>{if((0,UD.alwaysValidSchema)(n,t))return;const a=e.subschema({keyword:"allOf",schemaProp:r},o);e.ok(o),e.mergeEvaluated(a)}))}};BD.default=WD;var qD={};Object.defineProperty(qD,"__esModule",{value:!0});const KD=XA,HD=tI,GD={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>KD.str`must match "${e.ifClause}" schema`,params:({params:e})=>KD._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:n}=e;void 0===r.then&&void 0===r.else&&(0,HD.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const o=QD(n,"then"),a=QD(n,"else");if(!o&&!a)return;const i=t.let("valid",!0),s=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(t)}(),e.reset(),o&&a){const r=t.let("ifClause");e.setParams({ifClause:r}),t.if(s,l("then",r),l("else",r))}else o?t.if(s,l("then")):t.if((0,KD.not)(s),l("else"));function l(r,n){return()=>{const o=e.subschema({keyword:r},s);t.assign(i,s),e.mergeValidEvaluated(o,i),n?t.assign(n,KD._`${r}`):e.setParams({ifClause:r})}}e.pass(i,(()=>e.error(!0)))}};function QD(e,t){const r=e.schema[t];return void 0!==r&&!(0,HD.alwaysValidSchema)(e,r)}qD.default=GD;var YD={};Object.defineProperty(YD,"__esModule",{value:!0});const JD=tI,XD={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,JD.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};YD.default=XD,Object.defineProperty(zF,"__esModule",{value:!0});const ZD=LF,ez=qF,tz=KF,rz=eD,nz=iD,oz=uD,az=dD,iz=hD,sz=SD,lz=CD,cz=TD,uz=MD,dz=DD,fz=BD,pz=qD,mz=YD;zF.default=function(e=!1){const t=[cz.default,uz.default,dz.default,fz.default,pz.default,mz.default,az.default,iz.default,oz.default,sz.default,lz.default];return e?t.push(ez.default,rz.default):t.push(ZD.default,tz.default),t.push(nz.default),t};var hz={},vz={};Object.defineProperty(vz,"__esModule",{value:!0});const yz=XA,gz={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>yz.str`must match format "${e}"`,params:({schemaCode:e})=>yz._`{format: ${e}}`},code(e,t){const{gen:r,data:n,$data:o,schema:a,schemaCode:i,it:s}=e,{opts:l,errSchemaPath:c,schemaEnv:u,self:d}=s;l.validateFormats&&(o?function(){const o=r.scopeValue("formats",{ref:d.formats,code:l.code.formats}),a=r.const("fDef",yz._`${o}[${i}]`),s=r.let("fType"),c=r.let("format");r.if(yz._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>r.assign(s,yz._`${a}.type || "string"`).assign(c,yz._`${a}.validate`)),(()=>r.assign(s,yz._`"string"`).assign(c,a))),e.fail$data((0,yz.or)(!1===l.strictSchema?yz.nil:yz._`${i} && !${c}`,function(){const e=u.$async?yz._`(${a}.async ? await ${c}(${n}) : ${c}(${n}))`:yz._`${c}(${n})`,r=yz._`(typeof ${c} == "function" ? ${e} : ${c}.test(${n}))`;return yz._`${c} && ${c} !== true && ${s} === ${t} && !${r}`}()))}():function(){const o=d.formats[a];if(!o)return void function(){if(!1===l.strictSchema)return void d.logger.warn(e());throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${c}"`}}();if(!0===o)return;const[i,s,f]=function(e){const t=e instanceof RegExp?(0,yz.regexpCode)(e):l.code.formats?yz._`${l.code.formats}${(0,yz.getProperty)(a)}`:void 0,n=r.scopeValue("formats",{key:a,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,yz._`${n}.validate`];return["string",e,n]}(o);i===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!u.$async)throw new Error("async format in sync schema");return yz._`await ${f}(${n})`}return"function"==typeof s?yz._`${f}(${n})`:yz._`${f}.test(${n})`}())}())}};vz.default=gz,Object.defineProperty(hz,"__esModule",{value:!0});const bz=[vz.default];hz.default=bz;var wz={};Object.defineProperty(wz,"__esModule",{value:!0}),wz.contentVocabulary=wz.metadataVocabulary=void 0,wz.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],wz.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(pM,"__esModule",{value:!0});const Sz=jM,xz=zF,$z=hz,kz=wz,_z=[mM.default,Sz.default,(0,xz.default)(),$z.default,kz.metadataVocabulary,kz.contentVocabulary];pM.default=_z;var Ez={},Cz={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,(t=e.DiscrError||(e.DiscrError={})).Tag="tag",t.Mapping="mapping"}(Cz),Object.defineProperty(Ez,"__esModule",{value:!0});const Pz=XA,jz=Cz,Oz=QI,Nz=tI,Rz={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===jz.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>Pz._`{error: ${e}, tag: ${r}, tagValue: ${t}}`},code(e){const{gen:t,data:r,schema:n,parentSchema:o,it:a}=e,{oneOf:i}=o;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=n.propertyName;if("string"!=typeof s)throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const l=t.let("valid",!1),c=t.const("tag",Pz._`${r}${(0,Pz.getProperty)(s)}`);function u(r){const n=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:r},n);return e.mergeEvaluated(o,Pz.Name),n}t.if(Pz._`typeof ${c} == "string"`,(()=>function(){const r=function(){var e;const t={},r=l(o);let n=!0;for(let t=0;t<i.length;t++){let o=i[t];(null==o?void 0:o.$ref)&&!(0,Nz.schemaHasRulesButRef)(o,a.self.RULES)&&(o=Oz.resolveRef.call(a.self,a.schemaEnv.root,a.baseId,null==o?void 0:o.$ref),o instanceof Oz.SchemaEnv&&(o=o.schema));const u=null===(e=null==o?void 0:o.properties)||void 0===e?void 0:e[s];if("object"!=typeof u)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${s}"`);n=n&&(r||l(o)),c(u,t)}if(!n)throw new Error(`discriminator: "${s}" must be required`);return t;function l({required:e}){return Array.isArray(e)&&e.includes(s)}function c(e,t){if(e.const)u(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${s}" must have "const" or "enum"`);for(const r of e.enum)u(r,t)}}function u(e,r){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${s}" values must be unique strings`);t[e]=r}}();t.if(!1);for(const e in r)t.elseIf(Pz._`${c} === ${e}`),t.assign(l,u(r[e]));t.else(),e.error(!1,{discrError:jz.DiscrError.Mapping,tag:c,tagName:s}),t.endIf()}()),(()=>e.error(!1,{discrError:jz.DiscrError.Tag,tag:c,tagName:s}))),e.ok(l)}};Ez.default=Rz;var Tz={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=GA,n=pM,o=Ez,a=Tz,i=["/properties"],s="http://json-schema.org/draft-07/schema";class l extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(e,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var c=BI();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=XA;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var d=qI();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=GI();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})}(HA,HA.exports);var Az=HA.exports;!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=Az,r=XA,n=r.operators,o={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},a={message:({keyword:e,schemaCode:t})=>r.str`should be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>r._`{comparison: ${o[e].okStr}, limit: ${t}}`};e.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:a,code(e){const{gen:n,data:a,schemaCode:i,keyword:s,it:l}=e,{opts:c,self:u}=l;if(!c.validateFormats)return;const d=new t.KeywordCxt(l,u.RULES.all.format.definition,"format");function f(e){return r._`${e}.compare(${a}, ${i}) ${o[s].fail} 0`}d.$data?function(){const t=n.scopeValue("formats",{ref:u.formats,code:c.code.formats}),o=n.const("fmt",r._`${t}[${d.schemaCode}]`);e.fail$data(r.or(r._`typeof ${o} != "object"`,r._`${o} instanceof RegExp`,r._`typeof ${o}.compare != "function"`,f(o)))}():function(){const t=d.schema,o=u.formats[t];if(!o||!0===o)return;if("object"!=typeof o||o instanceof RegExp||"function"!=typeof o.compare)throw new Error(`"${s}": format "${t}" does not define "compare" function`);const a=n.scopeValue("formats",{key:t,ref:o,code:c.code.formats?r._`${c.code.formats}${r.getProperty(t)}`:void 0});e.fail$data(f(a))}()},dependencies:["format"]};e.default=t=>(t.addKeyword(e.formatLimitDefinition),t)}(KA),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=qA,n=KA,o=XA,a=new o.Name("fullFormats"),i=new o.Name("fastFormats"),s=(e,t={keywords:!0})=>{if(Array.isArray(t))return l(e,t,r.fullFormats,a),e;const[o,s]="fast"===t.mode?[r.fastFormats,i]:[r.fullFormats,a];return l(e,t.formats||r.formatNames,o,s),t.keywords&&n.default(e),e};function l(e,t,r,n){var a,i;null!==(a=(i=e.opts.code).formats)&&void 0!==a||(i.formats=o._`require("ajv-formats/dist/formats").${n}`);for(const n of t)e.addFormat(n,r[n])}s.get=(e,t="full")=>{const n=("fast"===t?r.fastFormats:r.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n},e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s}(WA,WA.exports);var Iz=r(WA.exports);const Mz={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},Fz=/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,Dz=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function zz(e,t,r,n,o,a,i){const{validationError:s}=t;let l=function(e=[],t){return e.map((e=>{var r;const{instancePath:n,keyword:o,params:a,schemaPath:i,parentSchema:s,...l}=e;let{message:c=""}=l,u=n.replace(/\//g,"."),d=`${u} ${c}`.trim();const f=[...(null===(r=a.deps)||void 0===r?void 0:r.split(", "))||[],a.missingProperty,a.property].filter((e=>e));if(f.length>0)f.forEach((e=>{let r=kd(Qv(t,`${(u?`${u}.${e}`:e).replace(/^\./,"")}`)).title;if(void 0===r){const n=i.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([e]);r=kd(Qv(t,n)).title}if(r)c=c.replace(`'${e}'`,`'${r}'`);else{const t=Qv(s,[vd,e,"title"]);t&&(c=c.replace(`'${e}'`,`'${t}'`))}})),d=c;else{const e=kd(Qv(t,`${u.replace(/^\./,"")}`)).title;if(e)d=`'${e}' ${c}`.trim();else{const e=null==s?void 0:s.title;e&&(d=`'${e}' ${c}`.trim())}}return"missingProperty"in a&&(u=u?`${u}.${a.missingProperty}`:a.missingProperty),{name:o,property:u,message:c,params:a,stack:d,schemaPath:i}}))}(t.errors,i);s&&(l=[...l,{stack:s.message}]),"function"==typeof a&&(l=a(l,i));let c=function(e){const t=new xP;return e.length&&e.forEach((e=>{const{property:r,message:n}=e,o="."===r?[]:Cj(r);o.length>0&&""===o[0]&&o.splice(0,1),n&&t.addErrors(n,o)})),t.ErrorSchema}(l);if(s&&(c={...c,$schema:{__errors:[s.message]}}),"function"!=typeof o)return{errors:l,errorSchema:c};const u=rP(e,n,r,n,!0);return Oj({errors:l,errorSchema:c},Pj(o(u,tf(u),i)))}class Lz{constructor(e,t){const{additionalMetaSchemas:r,customFormats:n,ajvOptionsOverrides:o,ajvFormatOptions:a,AjvClass:i}=e;this.ajv=function(e,t,r={},n,o=UA){const a=new o({...Mz,...r});return n?Iz(a,n):!1!==n&&Iz(a),a.addFormat("data-url",Dz),a.addFormat("color",Fz),a.addKeyword(rd),a.addKeyword(wd),Array.isArray(e)&&a.addMetaSchema(e),Pf(t)&&Object.keys(t).forEach((e=>{a.addFormat(e,t[e])})),a}(r,n,o,a,i),this.localizer=t}reset(){this.ajv.removeSchema()}toErrorList(e,t=[]){return bj(e,t)}rawValidation(e,t){var r,n;let o,a,i;e[dd]&&(a=this.ajv.getSchema(e[dd]));try{void 0===a&&(a=this.ajv.compile(e)),a(t)}catch(e){o=e}return a&&("function"==typeof this.localizer&&((null!==(r=a.errors)&&void 0!==r?r:[]).forEach((e=>{var t;["missingProperty","property"].forEach((t=>{var r;(null===(r=e.params)||void 0===r?void 0:r[t])&&(e.params[t]=`'${e.params[t]}'`)})),(null===(t=e.params)||void 0===t?void 0:t.deps)&&(e.params.deps=e.params.deps.split(", ").map((e=>`'${e}'`)).join(", "))})),this.localizer(a.errors),(null!==(n=a.errors)&&void 0!==n?n:[]).forEach((e=>{var t;["missingProperty","property"].forEach((t=>{var r;(null===(r=e.params)||void 0===r?void 0:r[t])&&(e.params[t]=e.params[t].slice(1,-1))})),(null===(t=e.params)||void 0===t?void 0:t.deps)&&(e.params.deps=e.params.deps.split(", ").map((e=>e.slice(1,-1))).join(", "))}))),i=a.errors||void 0,a.errors=null),{errors:i,validationError:o}}validateFormData(e,t,r,n,o){return zz(this,this.rawValidation(t,e),e,t,r,n,o)}handleSchemaUpdate(e){var t,r;const n=null!==(t=e[dd])&&void 0!==t?t:Sd;void 0===this.ajv.getSchema(n)?this.ajv.addSchema(e,n):dv(e,null===(r=this.ajv.getSchema(n))||void 0===r?void 0:r.schema)||(this.ajv.removeSchema(n),this.ajv.addSchema(e,n))}isValid(e,t,r){var n;try{this.handleSchemaUpdate(r);const o=Nj(e),a=null!==(n=o[dd])&&void 0!==n?n:function(e){const t=new Set;return JSON.stringify(e,((e,r)=>(t.add(e),r))),function(e){let t=0;for(let r=0;r<e.length;r+=1)t=(t<<5)-t+e.charCodeAt(r),t&=t;return t.toString(16)}(JSON.stringify(e,Array.from(t).sort()))}(o);let i;i=this.ajv.getSchema(a),void 0===i&&(i=this.ajv.addSchema(o,a).getSchema(a)||this.ajv.compile(o));return i(t)}catch(e){return console.warn("Error encountered compiling schema:",e),!1}}}var Vz=function(e={},t){return new Lz(e,t)}(),Bz=Ij,Uz=Hw;var Wz=function(e,t){return Bz(e,t,(function(t,r){return Uz(e,r)}))},qz=r(Hb((function(e,t){return null==e?{}:Wz(e,t)})));let Kz=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+=(t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_"),"");function Hz(){return Kz()}function Gz(e){return Array.isArray(e)?e.map((e=>({key:Hz(),item:e}))):[]}function Qz(e){return Array.isArray(e)?e.map((e=>e.item)):[]}class Yz extends L.Component{constructor(e){super(e),this._getNewFormDataRow=()=>{const{schema:e,registry:t}=this.props,{schemaUtils:r}=t;let n=e.items;return VC(e)&&function(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),ed(e.additionalItems)}(e)&&(n=e.additionalItems),r.getDefaultFormState(n)},this.onAddClick=e=>{this._handleAddClick(e)},this.onAddIndexClick=e=>t=>{this._handleAddClick(t,e)},this.onCopyIndexClick=e=>t=>{t&&t.preventDefault();const{onChange:r,errorSchema:n}=this.props,{keyedFormData:o}=this.state;let a;if(n){a={};for(const t in n){const r=parseInt(t);r<=e?ZS(a,[r],n[t]):r>e&&ZS(a,[r+1],n[t])}}const i={key:Hz(),item:N$(o[e].item)},s=[...o];void 0!==e?s.splice(e+1,0,i):s.push(i),this.setState({keyedFormData:s,updatedKeyedFormData:!0},(()=>r(Qz(s),a)))},this.onDropIndexClick=e=>t=>{t&&t.preventDefault();const{onChange:r,errorSchema:n}=this.props,{keyedFormData:o}=this.state;let a;if(n){a={};for(const t in n){const r=parseInt(t);r<e?ZS(a,[r],n[t]):r>e&&ZS(a,[r-1],n[t])}}const i=o.filter(((t,r)=>r!==e));this.setState({keyedFormData:i,updatedKeyedFormData:!0},(()=>r(Qz(i),a)))},this.onReorderClick=(e,t)=>r=>{r&&(r.preventDefault(),r.currentTarget.blur());const{onChange:n,errorSchema:o}=this.props;let a;if(o){a={};for(const r in o){const n=parseInt(r);n==e?ZS(a,[t],o[e]):n==t?ZS(a,[e],o[t]):ZS(a,[r],o[n])}}const{keyedFormData:i}=this.state;const s=function(){const r=i.slice();return r.splice(e,1),r.splice(t,0,i[e]),r}();this.setState({keyedFormData:s},(()=>n(Qz(s),a)))},this.onChangeForIndex=e=>(t,r,n)=>{const{formData:o,onChange:a,errorSchema:i}=this.props,s=(Array.isArray(o)?o:[]).map(((r,n)=>e===n?void 0===t?null:t:r));a(s,i&&i&&{...i,[e]:r},n)},this.onSelectChange=e=>{const{onChange:t,idSchema:r}=this.props;t(e,void 0,r&&r.$id)};const{formData:t=[]}=e,r=Gz(t);this.state={keyedFormData:r,updatedKeyedFormData:!1}}static getDerivedStateFromProps(e,t){if(t.updatedKeyedFormData)return{updatedKeyedFormData:!1};const r=Array.isArray(e.formData)?e.formData:[],n=t.keyedFormData||[],o=r.length===n.length?n.map(((e,t)=>({key:e.key,item:r[t]}))):Gz(r);return{keyedFormData:o}}get itemTitle(){const{schema:e,registry:t}=this.props,{translateString:r}=t;return Qv(e,[pd,"title"],Qv(e,[pd,"description"],r(Lj.ArrayItemTitle)))}isItemRequired(e){return Array.isArray(e.type)?!e.type.includes("null"):"null"!==e.type}canAddItem(e){const{schema:t,uiSchema:r,registry:n}=this.props;let{addable:o}=kd(r,n.globalUiOptions);return!1!==o&&(o=void 0===t.maxItems||e.length<t.maxItems),o}_handleAddClick(e,t){e&&e.preventDefault();const{onChange:r,errorSchema:n}=this.props,{keyedFormData:o}=this.state;let a;if(n){a={};for(const e in n){const r=parseInt(e);void 0===t||r<t?ZS(a,[r],n[e]):r>=t&&ZS(a,[r+1],n[e])}}const i={key:Hz(),item:this._getNewFormDataRow()},s=[...o];void 0!==t?s.splice(t,0,i):s.push(i),this.setState({keyedFormData:s,updatedKeyedFormData:!0},(()=>r(Qz(s),a)))}render(){const{schema:e,uiSchema:t,idSchema:r,registry:n}=this.props,{schemaUtils:o,translateString:a}=n;if(!(pd in e)){const o=PP("UnsupportedFieldTemplate",n,kd(t));return LP.jsx(o,{schema:e,idSchema:r,reason:a(Lj.MissingItems),registry:n})}return o.isMultiSelect(e)?this.renderMultiSelect():nP(t)?this.renderCustomWidget():VC(e)?this.renderFixedArray():o.isFilesArray(e,t)?this.renderFiles():this.renderNormalArray()}renderNormalArray(){const{schema:e,uiSchema:t={},errorSchema:r,idSchema:n,name:o,title:a,disabled:i=!1,readonly:s=!1,autofocus:l=!1,required:c=!1,registry:u,onBlur:d,onFocus:f,idPrefix:p,idSeparator:m="_",rawErrors:h}=this.props,{keyedFormData:v}=this.state,y=e.title||a||o,{schemaUtils:g,formContext:b}=u,w=kd(t),S=Pf(e.items)?e.items:{},x=g.retrieveSchema(S),$=Qz(this.state.keyedFormData),k=this.canAddItem($),_={canAdd:k,items:v.map(((e,a)=>{const{key:i,item:s}=e,c=s,u=g.retrieveSchema(S,c),b=r?r[a]:void 0,w=n.$id+m+a,x=g.toIdSchema(u,w,c,p,m);return this.renderArrayFieldItem({key:i,index:a,name:o&&`${o}-${a}`,title:y?`${y}-${a+1}`:void 0,canAdd:k,canMoveUp:a>0,canMoveDown:a<$.length-1,itemSchema:u,itemIdSchema:x,itemErrorSchema:b,itemData:c,itemUiSchema:t.items,autofocus:l&&0===a,onBlur:d,onFocus:f,rawErrors:h,totalItems:v.length})})),className:`field field-array field-array-of-${x.type}`,disabled:i,idSchema:n,uiSchema:t,onAddClick:this.onAddClick,readonly:s,required:c,schema:e,title:y,formContext:b,formData:$,rawErrors:h,registry:u},E=PP("ArrayFieldTemplate",u,w);return LP.jsx(E,{..._})}renderCustomWidget(){var e;const{schema:t,idSchema:r,uiSchema:n,disabled:o=!1,readonly:a=!1,autofocus:i=!1,required:s=!1,hideError:l,placeholder:c,onBlur:u,onFocus:d,formData:f=[],registry:p,rawErrors:m,name:h}=this.props,{widgets:v,formContext:y,globalUiOptions:g,schemaUtils:b}=p,{widget:w,title:S,...x}=kd(n,g),$=ij(t,w,v),k=null!==(e=null!=S?S:t.title)&&void 0!==e?e:h,_=b.getDisplayLabel(t,n,g);return LP.jsx($,{id:r.$id,name:h,multiple:!0,onChange:this.onSelectChange,onBlur:u,onFocus:d,options:x,schema:t,uiSchema:n,registry:p,value:f,disabled:o,readonly:a,hideError:l,required:s,label:k,hideLabel:!_,placeholder:c,formContext:y,autofocus:i,rawErrors:m})}renderMultiSelect(){var e;const{schema:t,idSchema:r,uiSchema:n,formData:o=[],disabled:a=!1,readonly:i=!1,autofocus:s=!1,required:l=!1,placeholder:c,onBlur:u,onFocus:d,registry:f,rawErrors:p,name:m}=this.props,{widgets:h,schemaUtils:v,formContext:y,globalUiOptions:g}=f,b=QC(v.retrieveSchema(t.items,o),n),{widget:w="select",title:S,...x}=kd(n,g),$=ij(t,w,h),k=null!==(e=null!=S?S:t.title)&&void 0!==e?e:m,_=v.getDisplayLabel(t,n,g);return LP.jsx($,{id:r.$id,name:m,multiple:!0,onChange:this.onSelectChange,onBlur:u,onFocus:d,options:{...x,enumOptions:b},schema:t,uiSchema:n,registry:f,value:o,disabled:a,readonly:i,required:l,label:k,hideLabel:!_,placeholder:c,formContext:y,autofocus:s,rawErrors:p})}renderFiles(){var e;const{schema:t,uiSchema:r,idSchema:n,name:o,disabled:a=!1,readonly:i=!1,autofocus:s=!1,required:l=!1,onBlur:c,onFocus:u,registry:d,formData:f=[],rawErrors:p}=this.props,{widgets:m,formContext:h,globalUiOptions:v,schemaUtils:y}=d,{widget:g="files",title:b,...w}=kd(r,v),S=ij(t,g,m),x=null!==(e=null!=b?b:t.title)&&void 0!==e?e:o,$=y.getDisplayLabel(t,r,v);return LP.jsx(S,{options:w,id:n.$id,name:o,multiple:!0,onChange:this.onSelectChange,onBlur:c,onFocus:u,schema:t,uiSchema:r,value:f,disabled:a,readonly:i,required:l,registry:d,formContext:h,autofocus:s,rawErrors:p,label:x,hideLabel:!$})}renderFixedArray(){const{schema:e,uiSchema:t={},formData:r=[],errorSchema:n,idPrefix:o,idSeparator:a="_",idSchema:i,name:s,title:l,disabled:c=!1,readonly:u=!1,autofocus:d=!1,required:f=!1,registry:p,onBlur:m,onFocus:h,rawErrors:v}=this.props,{keyedFormData:y}=this.state;let{formData:g=[]}=this.props;const b=e.title||l||s,w=kd(t),{schemaUtils:S,formContext:x}=p,$=(Pf(e.items)?e.items:[]).map(((e,t)=>S.retrieveSchema(e,r[t]))),k=Pf(e.additionalItems)?S.retrieveSchema(e.additionalItems,r):null;(!g||g.length<$.length)&&(g=g||[],g=g.concat(new Array($.length-g.length)));const _=this.canAddItem(g)&&!!k,E={canAdd:_,className:"field field-array field-array-fixed-items",disabled:c,idSchema:i,formData:r,items:y.map(((r,l)=>{const{key:c,item:u}=r,f=u,p=l>=$.length,w=(p&&Pf(e.additionalItems)?S.retrieveSchema(e.additionalItems,f):$[l])||{},x=i.$id+a+l,k=S.toIdSchema(w,x,f,o,a),E=p?t.additionalItems||{}:Array.isArray(t.items)?t.items[l]:t.items||{},C=n?n[l]:void 0;return this.renderArrayFieldItem({key:c,index:l,name:s&&`${s}-${l}`,title:b?`${b}-${l+1}`:void 0,canAdd:_,canRemove:p,canMoveUp:l>=$.length+1,canMoveDown:p&&l<g.length-1,itemSchema:w,itemData:f,itemUiSchema:E,itemIdSchema:k,itemErrorSchema:C,autofocus:d&&0===l,onBlur:m,onFocus:h,rawErrors:v,totalItems:y.length})})),onAddClick:this.onAddClick,readonly:u,required:f,registry:p,schema:e,uiSchema:t,title:b,formContext:x,errorSchema:n,rawErrors:v},C=PP("ArrayFieldTemplate",p,w);return LP.jsx(C,{...E})}renderArrayFieldItem(e){const{key:t,index:r,name:n,canAdd:o,canRemove:a=!0,canMoveUp:i,canMoveDown:s,itemSchema:l,itemData:c,itemUiSchema:u,itemIdSchema:d,itemErrorSchema:f,autofocus:p,onBlur:m,onFocus:h,rawErrors:v,totalItems:y,title:g}=e,{disabled:b,hideError:w,idPrefix:S,idSeparator:x,readonly:$,uiSchema:k,registry:_,formContext:E}=this.props,{fields:{ArraySchemaField:C,SchemaField:P},globalUiOptions:j}=_,O=C||P,{orderable:N=!0,removable:R=!0,copyable:T=!1}=kd(k,j),A={moveUp:N&&i,moveDown:N&&s,copy:T&&o,remove:R&&a,toolbar:!1};return A.toolbar=Object.keys(A).some((e=>A[e])),{children:LP.jsx(O,{name:n,title:g,index:r,schema:l,uiSchema:u,formData:c,formContext:E,errorSchema:f,idPrefix:S,idSeparator:x,idSchema:d,required:this.isItemRequired(l),onChange:this.onChangeForIndex(r),onBlur:m,onFocus:h,registry:_,disabled:b,readonly:$,hideError:w,autofocus:p,rawErrors:v}),className:"array-item",disabled:b,canAdd:o,hasCopy:A.copy,hasToolbar:A.toolbar,hasMoveUp:A.moveUp,hasMoveDown:A.moveDown,hasRemove:A.remove,index:r,totalItems:y,key:t,onAddIndexClick:this.onAddIndexClick,onCopyIndexClick:this.onCopyIndexClick,onDropIndexClick:this.onDropIndexClick,onReorderClick:this.onReorderClick,readonly:$,registry:_,schema:l,uiSchema:u}}}function Jz(e){var t,r,n;const{schema:o,name:a,uiSchema:i,idSchema:s,formData:l,registry:c,required:u,disabled:d,readonly:f,hideError:p,autofocus:m,title:h,onChange:v,onFocus:y,onBlur:g,rawErrors:b}=e,{title:w}=o,{widgets:S,formContext:x,translateString:$,globalUiOptions:k}=c,{widget:_="checkbox",title:E,label:C=!0,...P}=kd(i,k),j=ij(o,_,S),O=$(Lj.YesLabel),N=$(Lj.NoLabel);let R;const T=null!==(r=null!==(t=null!=E?E:w)&&void 0!==t?t:h)&&void 0!==r?r:a;if(Array.isArray(o.oneOf))R=QC({oneOf:o.oneOf.map((e=>{if(Pf(e))return{...e,title:e.title||(!0===e.const?O:N)}})).filter((e=>e))},i);else{const e=o,t=null!==(n=o.enum)&&void 0!==n?n:[!0,!1];R=!e.enumNames&&2===t.length&&t.every((e=>"boolean"==typeof e))?[{value:t[0],label:t[0]?O:N},{value:t[1],label:t[1]?O:N}]:QC({enum:t,enumNames:e.enumNames},i)}return LP.jsx(j,{options:{...P,enumOptions:R},schema:o,uiSchema:i,id:s.$id,name:a,onChange:v,onFocus:y,onBlur:g,label:T,hideLabel:!C,value:l,required:u,disabled:d,readonly:f,hideError:p,registry:c,formContext:x,autofocus:m,rawErrors:b})}class Xz extends L.Component{constructor(e){super(e),this.onOptionChange=e=>{const{selectedOption:t,retrievedOptions:r}=this.state,{formData:n,onChange:o,registry:a}=this.props,{schemaUtils:i}=a,s=void 0!==e?parseInt(e,10):-1;if(s===t)return;const l=s>=0?r[s]:void 0,c=t>=0?r[t]:void 0;let u=i.sanitizeDataForNewSchema(l,c,n);l&&(u=i.getDefaultFormState(l,u,"excludeObjectChildren")),this.setState({selectedOption:s},(()=>{o(u,void 0,this.getFieldId())}))};const{formData:t,options:r,registry:{schemaUtils:n}}=this.props,o=r.map((e=>n.retrieveSchema(e,t)));this.state={retrievedOptions:o,selectedOption:this.getMatchingOption(0,t,o)}}componentDidUpdate(e,t){const{formData:r,options:n,idSchema:o}=this.props,{selectedOption:a}=this.state;let i=this.state;if(!dv(e.options,n)){const{registry:{schemaUtils:e}}=this.props;i={selectedOption:a,retrievedOptions:n.map((t=>e.retrieveSchema(t,r)))}}if(!dv(r,e.formData)&&o.$id===e.idSchema.$id){const{retrievedOptions:e}=i,n=this.getMatchingOption(a,r,e);t&&n!==a&&(i={selectedOption:n,retrievedOptions:e})}i!==this.state&&this.setState(i)}getMatchingOption(e,t,r){const{schema:n,registry:{schemaUtils:o}}=this.props,a=SC(n);return o.getClosestMatchingOption(t,r,e,a)}getFieldId(){const{idSchema:e,schema:t}=this.props;return`${e.$id}${t.oneOf?"__oneof_select":"__anyof_select"}`}render(){const{name:e,disabled:t=!1,errorSchema:r={},formContext:n,onBlur:o,onFocus:a,readonly:i,registry:s,schema:l,uiSchema:c}=this.props,{widgets:u,fields:d,translateString:f,globalUiOptions:p,schemaUtils:m}=s,{SchemaField:h}=d,{selectedOption:v,retrievedOptions:y}=this.state,{widget:g="select",placeholder:b,autofocus:w,autocomplete:S,title:x=l.title,...$}=kd(c,p),k=ij({type:"number"},g,u),_=Qv(r,ud,[]),E=rw(r,[ud]),C=m.getDisplayLabel(l,c,p),P=v>=0&&y[v]||null;let j;if(P){const{required:e}=l;j=e?PC({required:e},P):P}let O=[];hd in l&&c&&hd in c?Array.isArray(c[hd])?O=c[hd]:console.warn(`uiSchema.oneOf is not an array for "${x||e}"`):ad in l&&c&&ad in c&&(Array.isArray(c[ad])?O=c[ad]:console.warn(`uiSchema.anyOf is not an array for "${x||e}"`));let N=c;v>=0&&O.length>v&&(N=O[v]);const R=x?Lj.TitleOptionPrefix:Lj.OptionPrefix,T=x?[x]:[],A=y.map(((e,t)=>{const{title:r=e.title}=kd(O[t]);return{label:r||f(R,T.concat(String(t+1))),value:t}}));return LP.jsxs("div",{className:"panel panel-default panel-body",children:[LP.jsx("div",{className:"form-group",children:LP.jsx(k,{id:this.getFieldId(),name:`${e}${l.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:o,onFocus:a,disabled:t||ay(A),multiple:!1,rawErrors:_,errorSchema:E,value:v>=0?v:void 0,options:{enumOptions:A,...$},registry:s,formContext:n,placeholder:b,autocomplete:S,autofocus:w,label:null!=x?x:e,hideLabel:!C,readonly:i})}),j&&LP.jsx(h,{...this.props,schema:j,uiSchema:N})]})}}const Zz=/\.([0-9]*0)*$/,eL=/[0.]0*$/;function tL(e){const{registry:t,onChange:r,formData:n,value:o}=e,[a,i]=L.useState(o),{StringField:s}=t.fields;let l=n;const c=L.useCallback(((e,t,n)=>{i(e),"."===`${e}`.charAt(0)&&(e=`0${e}`);const o="string"==typeof e&&e.match(Zz)?td(e.replace(eL,"")):td(e);r(o,t,n)}),[r]);if("string"==typeof a&&"number"==typeof l){const e=new RegExp(`^(${String(l).replace(".","\\.")})?\\.?0*$`);a.match(e)&&(l=a)}return LP.jsx(s,{...e,formData:l,onChange:c})}function rL(){return rL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rL.apply(this,arguments)}const nL=["children","options"];var oL,aL;!function(e){e.blockQuote="0",e.breakLine="1",e.breakThematic="2",e.codeBlock="3",e.codeFenced="4",e.codeInline="5",e.footnote="6",e.footnoteReference="7",e.gfmTask="8",e.heading="9",e.headingSetext="10",e.htmlBlock="11",e.htmlComment="12",e.htmlSelfClosing="13",e.image="14",e.link="15",e.linkAngleBraceStyleDetector="16",e.linkBareUrlDetector="17",e.linkMailtoDetector="18",e.newlineCoalescer="19",e.orderedList="20",e.paragraph="21",e.ref="22",e.refImage="23",e.refLink="24",e.table="25",e.tableSeparator="26",e.text="27",e.textBolded="28",e.textEmphasized="29",e.textEscaped="30",e.textMarked="31",e.textStrikethroughed="32",e.unorderedList="33"}(oL||(oL={})),function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"}(aL||(aL={}));const iL=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce(((e,t)=>(e[t.toLowerCase()]=t,e)),{for:"htmlFor"}),sL={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},lL=["style","script"],cL=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,uL=/mailto:/i,dL=/\n{2,}$/,fL=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,pL=/^ *> ?/gm,mL=/^ {2,}\n/,hL=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,vL=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,yL=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,gL=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,bL=/^(?:\n *)*\n/,wL=/\r\n?/g,SL=/^\[\^([^\]]+)](:.*)\n/,xL=/^\[\^([^\]]+)]/,$L=/\f/g,kL=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,_L=/^\s*?\[(x|\s)\]/,EL=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,CL=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,PL=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,jL=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,OL=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,NL=/^<!--[\s\S]*?(?:-->)/,RL=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,TL=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,AL=/^\{.*\}$/,IL=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,ML=/^<([^ >]+@[^ >]+)>/,FL=/^<([^ >]+:\/[^ >]+)>/,DL=/-([a-z])?/gi,zL=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,LL=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,VL=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,BL=/^\[([^\]]*)\] ?\[([^\]]*)\]/,UL=/(\[|\])/g,WL=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,qL=/\t/g,KL=/^ *\| */,HL=/(^ *\||\| *$)/g,GL=/ *$/,QL=/^ *:-+: *$/,YL=/^ *:-+ *$/,JL=/^ *-+: *$/,XL=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,ZL=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,eV=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,tV=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,rV=/^\\([^0-9A-Za-z\s])/,nV=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,oV=/^\n+/,aV=/^([ \t]*)/,iV=/\\([^\\])/g,sV=/ *\n+$/,lV=/(?:^|\n)( *)$/,cV="(?:\\d+\\.)",uV="(?:[*+-])";function dV(e){return"( *)("+(1===e?cV:uV)+") +"}const fV=dV(1),pV=dV(2);function mV(e){return new RegExp("^"+(1===e?fV:pV))}const hV=mV(1),vV=mV(2);function yV(e){return new RegExp("^"+(1===e?fV:pV)+"[^\\n]*(?:\\n(?!\\1"+(1===e?cV:uV)+" )[^\\n]*)*(\\n|$)","gm")}const gV=yV(1),bV=yV(2);function wV(e){const t=1===e?cV:uV;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const SV=wV(1),xV=wV(2);function $V(e,t){const r=1===t,n=r?SV:xV,o=r?gV:bV,a=r?hV:vV;return{match(e,t,r){const o=lV.exec(r);return o&&(t.list||!t.inline&&!t.simple)?n.exec(e=o[1]+e):null},order:1,parse(e,t,n){const i=r?+e[2]:void 0,s=e[0].replace(dL,"\n").match(o);let l=!1;return{items:s.map((function(e,r){const o=a.exec(e)[0].length,i=new RegExp("^ {1,"+o+"}","gm"),c=e.replace(i,"").replace(a,""),u=r===s.length-1,d=-1!==c.indexOf("\n\n")||u&&l;l=d;const f=n.inline,p=n.list;let m;n.list=!0,d?(n.inline=!1,m=c.replace(sV,"\n\n")):(n.inline=!0,m=c.replace(sV,""));const h=t(m,n);return n.inline=f,n.list=p,h})),ordered:r,start:i}},render:(t,r,n)=>e(t.ordered?"ol":"ul",{key:n.key,start:"20"===t.type?t.start:void 0},t.items.map((function(t,o){return e("li",{key:o},r(t,n))})))}}const kV=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,_V=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,EV=[fL,vL,yL,EL,PL,CL,NL,zL,gV,SV,bV,xV],CV=[...EV,/^[^\n]+(?: \n|\n{2,})/,jL,TL];function PV(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function jV(e){return JL.test(e)?"right":QL.test(e)?"center":YL.test(e)?"left":null}function OV(e,t,r){const n=r.inTable;r.inTable=!0;const o=t(e.trim(),r);r.inTable=n;let a=[[]];return o.forEach((function(e,t){"26"===e.type?0!==t&&t!==o.length-1&&a.push([]):("27"!==e.type||null!=o[t+1]&&"26"!==o[t+1].type||(e.text=e.text.replace(GL,"")),a[a.length-1].push(e))})),a}function NV(e,t,r){r.inline=!0;const n=OV(e[1],t,r),o=e[2].replace(HL,"").split("|").map(jV),a=function(e,t,r){return e.trim().split("\n").map((function(e){return OV(e,t,r)}))}(e[3],t,r);return r.inline=!1,{align:o,cells:a,header:n,type:"25"}}function RV(e,t){return null==e.align[t]?{}:{textAlign:e.align[t]}}function TV(e){return function(t,r){return r.inline?e.exec(t):null}}function AV(e){return function(t,r){return r.inline||r.simple?e.exec(t):null}}function IV(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function MV(e){return function(t){return e.exec(t)}}function FV(e,t,r){if(t.inline||t.simple)return null;if(r&&!r.endsWith("\n"))return null;let n="";e.split("\n").every((e=>!EV.some((t=>t.test(e)))&&(n+=e+"\n",e.trim())));const o=n.trimEnd();return""==o?null:[n,o]}function DV(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch(e){return null}return e}function zV(e){return e.replace(iV,"$1")}function LV(e,t,r){const n=r.inline||!1,o=r.simple||!1;r.inline=!0,r.simple=!0;const a=e(t,r);return r.inline=n,r.simple=o,a}function VV(e,t,r){const n=r.inline||!1,o=r.simple||!1;r.inline=!1,r.simple=!0;const a=e(t,r);return r.inline=n,r.simple=o,a}function BV(e,t,r){return r.inline=!1,e(t,r)}const UV=(e,t,r)=>({children:LV(t,e[1],r)});function WV(){return{}}function qV(){return null}function KV(...e){return e.filter(Boolean).join(" ")}function HV(e,t,r){let n=e;const o=t.split(".");for(;o.length&&(n=n[o[0]],void 0!==n);)o.shift();return n||r}var GV=e=>{let{children:t,options:r}=e,n=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}(e,nL);return L.cloneElement(function(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||PV,t.namedCodesToUnicode=t.namedCodesToUnicode?rL({},sL,t.namedCodesToUnicode):sL;const r=t.createElement||L.createElement;function n(e,n,...o){const a=HV(t.overrides,`${e}.props`,{});return r(function(e,t){const r=HV(t,e);return r?"function"==typeof r||"object"==typeof r&&"render"in r?r:HV(t,`${e}.component`,e):e}(e,t.overrides),rL({},n,a,{className:KV(null==n?void 0:n.className,a.className)||void 0}),...o)}function o(e){e=e.replace(kL,"");let r=!1;t.forceInline?r=!0:t.forceBlock||(r=!1===WL.test(e));const o=u(c(r?e:`${e.trimEnd().replace(oV,"")}\n\n`,{inline:r}));for(;"string"==typeof o[o.length-1]&&!o[o.length-1].trim();)o.pop();if(null===t.wrapper)return o;const a=t.wrapper||(r?"span":"div");let i;if(o.length>1||t.forceWrapper)i=o;else{if(1===o.length)return i=o[0],"string"==typeof i?n("span",{key:"outer"},i):i;i=null}return L.createElement(a,{key:"outer"},i)}function a(e){const t=e.match(cL);return t?t.reduce((function(e,t,r){const n=t.indexOf("=");if(-1!==n){const a=function(e){return-1!==e.indexOf("-")&&null===e.match(RL)&&(e=e.replace(DL,(function(e,t){return t.toUpperCase()}))),e}(t.slice(0,n)).trim(),i=function(e){const t=e[0];return('"'===t||"'"===t)&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e}(t.slice(n+1).trim()),s=iL[a]||a,l=e[s]=function(e,t){return"style"===e?t.split(/;\s?/).reduce((function(e,t){const r=t.slice(0,t.indexOf(":"));return e[r.replace(/(-[a-z])/g,(e=>e[1].toUpperCase()))]=t.slice(r.length+1).trim(),e}),{}):"href"===e||"src"===e?DV(t):(t.match(AL)&&(t=t.slice(1,t.length-1)),"true"===t||"false"!==t&&t)}(a,i);"string"==typeof l&&(jL.test(l)||TL.test(l))&&(e[s]=L.cloneElement(o(l.trim()),{key:r}))}else"style"!==t&&(e[iL[t]||t]=!0);return e}),{}):null}const i=[],s={},l={0:{match:IV(fL),order:1,parse:(e,t,r)=>({children:t(e[0].replace(pL,""),r)}),render:(e,t,r)=>n("blockquote",{key:r.key},t(e.children,r))},1:{match:MV(mL),order:1,parse:WV,render:(e,t,r)=>n("br",{key:r.key})},2:{match:IV(hL),order:1,parse:WV,render:(e,t,r)=>n("hr",{key:r.key})},3:{match:IV(yL),order:0,parse:e=>({lang:void 0,text:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(e,t,r)=>n("pre",{key:r.key},n("code",rL({},e.attrs,{className:e.lang?`lang-${e.lang}`:""}),e.text))},4:{match:IV(vL),order:0,parse:e=>({attrs:a(e[3]||""),lang:e[2]||void 0,text:e[4],type:"3"})},5:{match:AV(gL),order:3,parse:e=>({text:e[2]}),render:(e,t,r)=>n("code",{key:r.key},e.text)},6:{match:IV(SL),order:0,parse:e=>(i.push({footnote:e[2],identifier:e[1]}),{}),render:qV},7:{match:TV(xL),order:1,parse:e=>({target:`#${t.slugify(e[1])}`,text:e[1]}),render:(e,t,r)=>n("a",{key:r.key,href:DV(e.target)},n("sup",{key:r.key},e.text))},8:{match:TV(_L),order:1,parse:e=>({completed:"x"===e[1].toLowerCase()}),render:(e,t,r)=>n("input",{checked:e.completed,key:r.key,readOnly:!0,type:"checkbox"})},9:{match:IV(t.enforceAtxHeadings?CL:EL),order:1,parse:(e,r,n)=>({children:LV(r,e[2],n),id:t.slugify(e[2]),level:e[1].length}),render:(e,t,r)=>n(`h${e.level}`,{id:e.id,key:r.key},t(e.children,r))},10:{match:IV(PL),order:0,parse:(e,t,r)=>({children:LV(t,e[1],r),level:"="===e[2]?1:2,type:"9"})},11:{match:MV(jL),order:1,parse(e,t,r){const[,n]=e[3].match(aV),o=new RegExp(`^${n}`,"gm"),i=e[3].replace(o,""),s=(l=i,CV.some((e=>e.test(l)))?BV:LV);var l;const c=e[1].toLowerCase(),u=-1!==lL.indexOf(c),d={attrs:a(e[2]),noInnerParse:u,tag:u?c:e[1]};return r.inAnchor=r.inAnchor||"a"===c,u?d.text=e[3]:d.children=s(t,i,r),r.inAnchor=!1,d},render:(e,t,r)=>n(e.tag,rL({key:r.key},e.attrs),e.text||t(e.children,r))},13:{match:MV(TL),order:1,parse:e=>({attrs:a(e[2]||""),tag:e[1]}),render:(e,t,r)=>n(e.tag,rL({},e.attrs,{key:r.key}))},12:{match:MV(NL),order:1,parse:()=>({}),render:qV},14:{match:AV(_V),order:1,parse:e=>({alt:e[1],target:zV(e[2]),title:e[3]}),render:(e,t,r)=>n("img",{key:r.key,alt:e.alt||void 0,title:e.title||void 0,src:DV(e.target)})},15:{match:TV(kV),order:3,parse:(e,t,r)=>({children:VV(t,e[1],r),target:zV(e[2]),title:e[3]}),render:(e,t,r)=>n("a",{key:r.key,href:DV(e.target),title:e.title},t(e.children,r))},16:{match:TV(FL),order:0,parse:e=>({children:[{text:e[1],type:"27"}],target:e[1],type:"15"})},17:{match:(e,t)=>t.inAnchor?null:TV(IL)(e,t),order:0,parse:e=>({children:[{text:e[1],type:"27"}],target:e[1],title:void 0,type:"15"})},18:{match:TV(ML),order:0,parse(e){let t=e[1],r=e[1];return uL.test(r)||(r="mailto:"+r),{children:[{text:t.replace("mailto:",""),type:"27"}],target:r,type:"15"}}},20:$V(n,1),33:$V(n,2),19:{match:IV(bL),order:3,parse:WV,render:()=>"\n"},21:{match:FV,order:3,parse:UV,render:(e,t,r)=>n("p",{key:r.key},t(e.children,r))},22:{match:TV(LL),order:0,parse:e=>(s[e[1]]={target:e[2],title:e[4]},{}),render:qV},23:{match:AV(VL),order:0,parse:e=>({alt:e[1]||void 0,ref:e[2]}),render:(e,t,r)=>n("img",{key:r.key,alt:e.alt,src:DV(s[e.ref].target),title:s[e.ref].title})},24:{match:TV(BL),order:0,parse:(e,t,r)=>({children:t(e[1],r),fallbackChildren:t(e[0].replace(UL,"\\$1"),r),ref:e[2]}),render:(e,t,r)=>s[e.ref]?n("a",{key:r.key,href:DV(s[e.ref].target),title:s[e.ref].title},t(e.children,r)):n("span",{key:r.key},t(e.fallbackChildren,r))},25:{match:IV(zL),order:1,parse:NV,render:(e,t,r)=>n("table",{key:r.key},n("thead",null,n("tr",null,e.header.map((function(o,a){return n("th",{key:a,style:RV(e,a)},t(o,r))})))),n("tbody",null,e.cells.map((function(o,a){return n("tr",{key:a},o.map((function(o,a){return n("td",{key:a,style:RV(e,a)},t(o,r))})))}))))},26:{match:function(e,t){return t.inTable?(t.inline=!0,KL.exec(e)):null},order:1,parse:function(){return{type:"26"}},render:()=>" | "},27:{match:MV(nV),order:4,parse:e=>({text:e[0].replace(OL,((e,r)=>t.namedCodesToUnicode[r]?t.namedCodesToUnicode[r]:e))}),render:e=>e.text},28:{match:AV(XL),order:2,parse:(e,t,r)=>({children:t(e[2],r)}),render:(e,t,r)=>n("strong",{key:r.key},t(e.children,r))},29:{match:AV(ZL),order:3,parse:(e,t,r)=>({children:t(e[2],r)}),render:(e,t,r)=>n("em",{key:r.key},t(e.children,r))},30:{match:AV(rV),order:1,parse:e=>({text:e[1],type:"27"})},31:{match:AV(eV),order:3,parse:UV,render:(e,t,r)=>n("mark",{key:r.key},t(e.children,r))},32:{match:AV(tV),order:3,parse:UV,render:(e,t,r)=>n("del",{key:r.key},t(e.children,r))}};!0===t.disableParsingRawHTML&&(delete l[11],delete l[13]);const c=function(e){let t=Object.keys(e);function r(n,o){let a=[],i="";for(;n;){let s=0;for(;s<t.length;){const l=t[s],c=e[l],u=c.match(n,o,i);if(u){const e=u[0];n=n.substring(e.length);const t=c.parse(u,r,o);null==t.type&&(t.type=l),a.push(t),i=e;break}s++}}return a}return t.sort((function(t,r){let n=e[t].order,o=e[r].order;return n!==o?n-o:1})),function(e,t){return r(function(e){return e.replace(wL,"\n").replace($L,"").replace(qL," ")}(e),t)}}(l),u=(d=function(e,t){return function(r,n,o){const a=e[r.type].render;return t?t((()=>a(r,n,o)),r,n,o):a(r,n,o)}}(l,t.renderRule),function e(t,r={}){if(Array.isArray(t)){const n=r.key,o=[];let a=!1;for(let n=0;n<t.length;n++){r.key=n;const i=e(t[n],r),s="string"==typeof i;s&&a?o[o.length-1]+=i:null!==i&&o.push(i),a=s}return r.key=n,o}return d(t,e,r)});var d;const f=o(e);return i.length?n("div",null,f,n("footer",{key:"footer"},i.map((function(e){return n("div",{id:t.slugify(e.identifier),key:e.identifier},e.identifier,u(c(e.footnote,{inline:!0})))})))):f}(t,r),n)},QV=xb;var YV=r((function(e,t){return null==e||QV(e,t)}));class JV extends L.Component{constructor(){super(...arguments),this.state={wasPropertyKeyModified:!1,additionalProperties:{}},this.onPropertyChange=(e,t=!1)=>(r,n,o)=>{const{formData:a,onChange:i,errorSchema:s}=this.props;void 0===r&&t&&(r="");i({...a,[e]:r},s&&s&&{...s,[e]:n},o)},this.onDropPropertyClick=e=>t=>{t.preventDefault();const{onChange:r,formData:n}=this.props,o={...n};YV(o,e),r(o)},this.getAvailableKey=(e,t)=>{const{uiSchema:r,registry:n}=this.props,{duplicateKeySuffixSeparator:o="-"}=kd(r,n.globalUiOptions);let a=0,i=e;for(;vw(t,i);)i=`${e}${o}${++a}`;return i},this.onKeyChange=e=>(t,r)=>{if(e===t)return;const{formData:n,onChange:o,errorSchema:a}=this.props;t=this.getAvailableKey(t,n);const i={...n},s={[e]:t},l=Object.keys(i).map((e=>({[s[e]||e]:i[e]}))),c=Object.assign({},...l);this.setState({wasPropertyKeyModified:!0}),o(c,a&&a&&{...a,[t]:r})},this.handleAddClick=e=>()=>{var t;if(!e.additionalProperties)return;const{formData:r,onChange:n,registry:o}=this.props,a={...r};let i,s,l;if(Pf(e.additionalProperties)){i=e.additionalProperties.type,s=e.additionalProperties.const,l=e.additionalProperties.default;let t=e.additionalProperties;if(bd in t){const{schemaUtils:e}=o;t=e.retrieveSchema({$ref:t[bd]},r),i=t.type,s=t.const,l=t.default}i||!(ad in t)&&!(hd in t)||(i="object")}const c=this.getAvailableKey("newKey",a),u=null!==(t=null!=s?s:l)&&void 0!==t?t:this.getDefaultValue(i);ZS(a,c,u),n(a)}}isRequired(e){const{schema:t}=this.props;return Array.isArray(t.required)&&-1!==t.required.indexOf(e)}getDefaultValue(e){const{registry:{translateString:t}}=this.props;switch(e){case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{};default:return t(Lj.NewStringDefault)}}render(){var e,t,r,n;const{schema:o,uiSchema:a={},formData:i,errorSchema:s,idSchema:l,name:c,required:u=!1,disabled:d,readonly:f,hideError:p,idPrefix:m,idSeparator:h,onBlur:v,onFocus:y,registry:g,title:b}=this.props,{fields:w,formContext:S,schemaUtils:x,translateString:$,globalUiOptions:k}=g,{SchemaField:_}=w,E=x.retrieveSchema(o,i),C=kd(a,k),{properties:P={}}=E,j=null!==(r=null!==(t=null!==(e=C.title)&&void 0!==e?e:E.title)&&void 0!==t?t:b)&&void 0!==r?r:c,O=null!==(n=C.description)&&void 0!==n?n:E.description;let N;try{N=function(e,t){if(!Array.isArray(t))return e;const r=e=>e.reduce(((e,t)=>(e[t]=!0,e)),{}),n=r(e),o=t.filter((e=>"*"===e||n[e])),a=r(o),i=e.filter((e=>!a[e])),s=o.indexOf("*");if(-1===s){if(i.length)throw new Error("uiSchema order list does not contain "+((l=i).length>1?`properties '${l.join("', '")}'`:`property '${l[0]}'`));return o}var l;if(s!==o.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");const c=[...o];return c.splice(s,1,...i),c}(Object.keys(P),C.order)}catch(e){return LP.jsxs("div",{children:[LP.jsx("p",{className:"config-error",style:{color:"red"},children:LP.jsx(GV,{options:{disableParsingRawHTML:!0},children:$(Lj.InvalidObjectField,[c||"root",e.message])})}),LP.jsx("pre",{children:JSON.stringify(E)})]})}const R=PP("ObjectFieldTemplate",g,C),T={title:!1===C.label?"":j,description:!1===C.label?void 0:O,properties:N.map((e=>{const t=vw(E,[vd,e,rd]),r=t?a.additionalProperties:a[e],n="hidden"===kd(r).widget,o=Qv(l,[e],{});return{content:LP.jsx(_,{name:e,required:this.isRequired(e),schema:Qv(E,[vd,e],{}),uiSchema:r,errorSchema:Qv(s,e),idSchema:o,idPrefix:m,idSeparator:h,formData:Qv(i,e),formContext:S,wasPropertyKeyModified:this.state.wasPropertyKeyModified,onKeyChange:this.onKeyChange(e),onChange:this.onPropertyChange(e,t),onBlur:v,onFocus:y,registry:g,disabled:d,readonly:f,hideError:p,onDropPropertyClick:this.onDropPropertyClick},e),name:e,readonly:f,disabled:d,required:u,hidden:n}})),readonly:f,disabled:d,required:u,idSchema:l,uiSchema:a,errorSchema:s,schema:E,formData:i,formContext:S,registry:g};return LP.jsx(R,{...T,onAddClick:this.handleAddClick})}}const XV={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function ZV(e){var t,r,n;const{schema:o,idSchema:a,uiSchema:i,formData:s,errorSchema:l,idPrefix:c,idSeparator:u,name:d,onChange:f,onKeyChange:p,onDropPropertyClick:m,required:h,registry:v,wasPropertyKeyModified:y=!1}=e,{formContext:g,schemaUtils:b,globalUiOptions:w}=v,S=kd(i,w),x=PP("FieldTemplate",v,S),$=PP("DescriptionFieldTemplate",v,S),k=PP("FieldHelpTemplate",v,S),_=PP("FieldErrorTemplate",v,S),E=b.retrieveSchema(o,s),C=a[dd],P=WC(b.toIdSchema(E,C,s,c,u),a),j=L.useCallback(((e,t,r)=>f(e,t,r||C)),[C,f]),O=function(e,t,r,n){const o=t.field,{fields:a,translateString:i}=n;if("function"==typeof o)return o;if("string"==typeof o&&o in a)return a[o];const s=CC(e),l=Array.isArray(s)?s[0]:s||"",c=e.$id;let u=XV[l];return c&&c in a&&(u=c),u||!e.anyOf&&!e.oneOf?u in a?a[u]:()=>{const o=PP("UnsupportedFieldTemplate",n,t);return LP.jsx(o,{schema:e,idSchema:r,reason:i(Lj.UnknownFieldType,[String(e.type)]),registry:n})}:()=>null}(E,S,P,v),N=Boolean(null!==(t=S.disabled)&&void 0!==t?t:e.disabled),R=Boolean(null!==(r=S.readonly)&&void 0!==r?r:e.readonly||e.schema.readOnly||E.readOnly),T=S.hideError,A=void 0===T?e.hideError:Boolean(T),I=Boolean(null!==(n=S.autofocus)&&void 0!==n?n:e.autofocus);if(0===Object.keys(E).length)return null;const M=b.getDisplayLabel(E,i,w),{__errors:F,...D}=l||{},z=rw(i,["ui:classNames","classNames","ui:style"]);$d in z&&(z[$d]=rw(z[$d],["classNames","style"]));const V=LP.jsx(O,{...e,onChange:j,idSchema:P,schema:E,uiSchema:z,disabled:N,readonly:R,hideError:A,autofocus:I,errorSchema:D,formContext:g,rawErrors:F}),B=P[dd];let U;U=y||rd in E?d:S.title||e.schema.title||E.title||e.title||d;const W=S.description||e.schema.description||E.description||"",q=S.enableMarkdownInDescription?LP.jsx(GV,{options:{disableParsingRawHTML:!0},children:W}):W,K=S.help,H="hidden"===S.widget,G=["form-group","field",`field-${CC(E)}`];!A&&F&&F.length>0&&G.push("field-error has-error has-danger"),(null==i?void 0:i.classNames)&&G.push(i.classNames),S.classNames&&G.push(S.classNames);const Q=LP.jsx(k,{help:K,idSchema:P,schema:E,uiSchema:i,hasErrors:!A&&F&&F.length>0,registry:v}),Y=A||(E.anyOf||E.oneOf)&&!b.isSelect(E)?void 0:LP.jsx(_,{errors:F,errorSchema:l,idSchema:P,schema:E,uiSchema:i,registry:v}),J={description:LP.jsx($,{id:lj(B),description:q,schema:E,uiSchema:i,registry:v}),rawDescription:W,help:Q,rawHelp:"string"==typeof K?K:void 0,errors:Y,rawErrors:A?void 0:F,id:B,label:U,hidden:H,onChange:f,onKeyChange:p,onDropPropertyClick:m,required:h,disabled:N,readonly:R,hideError:A,displayLabel:M,classNames:G.join(" ").trim(),style:S.style,formContext:g,formData:s,schema:E,uiSchema:i,registry:v},X=v.fields.AnyOfField,Z=v.fields.OneOfField,ee=(null==i?void 0:i["ui:field"])&&!0===(null==i?void 0:i["ui:fieldReplacesAnyOrOneOf"]);return LP.jsx(x,{...J,children:LP.jsxs(LP.Fragment,{children:[V,E.anyOf&&!ee&&!b.isSelect(E)&&LP.jsx(X,{name:d,disabled:N,readonly:R,hideError:A,errorSchema:l,formData:s,formContext:g,idPrefix:c,idSchema:P,idSeparator:u,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:E.anyOf.map((e=>b.retrieveSchema(Pf(e)?e:{},s))),registry:v,required:h,schema:E,uiSchema:i}),E.oneOf&&!ee&&!b.isSelect(E)&&LP.jsx(Z,{name:d,disabled:N,readonly:R,hideError:A,errorSchema:l,formData:s,formContext:g,idPrefix:c,idSchema:P,idSeparator:u,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:E.oneOf.map((e=>b.retrieveSchema(Pf(e)?e:{},s))),registry:v,required:h,schema:E,uiSchema:i})]})})}class eB extends L.Component{shouldComponentUpdate(e){return!dv(this.props,e)}render(){return LP.jsx(ZV,{...this.props})}}function tB(e){var t;const{schema:r,name:n,uiSchema:o,idSchema:a,formData:i,required:s,disabled:l=!1,readonly:c=!1,autofocus:u=!1,onChange:d,onBlur:f,onFocus:p,registry:m,rawErrors:h,hideError:v}=e,{title:y,format:g}=r,{widgets:b,formContext:w,schemaUtils:S,globalUiOptions:x}=m,$=S.isSelect(r)?QC(r,o):void 0;let k=$?"select":"text";g&&function(e,t,r={}){try{return ij(e,t,r),!0}catch(e){const t=e;if(t.message&&(t.message.startsWith("No widget")||t.message.startsWith("Unsupported widget")))return!1;throw e}}(r,g,b)&&(k=g);const{widget:_=k,placeholder:E="",title:C,...P}=kd(o),j=S.getDisplayLabel(r,o,x),O=null!==(t=null!=C?C:y)&&void 0!==t?t:n,N=ij(r,_,b);return LP.jsx(N,{options:{...P,enumOptions:$},schema:r,uiSchema:o,id:a.$id,name:n,label:O,hideLabel:!j,hideError:v,value:i,onChange:d,onBlur:f,onFocus:p,required:s,disabled:l,readonly:c,formContext:w,autofocus:u,registry:m,placeholder:E,rawErrors:h})}function rB(e){const{formData:t,onChange:r}=e;return L.useEffect((()=>{void 0===t&&r(null)}),[t,r]),null}function nB(e){const{idSchema:t,description:r,registry:n,schema:o,uiSchema:a}=e,i=kd(a,n.globalUiOptions),{label:s=!0}=i;if(!r||!s)return null;const l=PP("DescriptionFieldTemplate",n,i);return LP.jsx(l,{id:lj(t),description:r,schema:o,uiSchema:a,registry:n})}function oB(e){const{children:t,className:r,disabled:n,hasToolbar:o,hasMoveDown:a,hasMoveUp:i,hasRemove:s,hasCopy:l,index:c,onCopyIndexClick:u,onDropIndexClick:d,onReorderClick:f,readonly:p,registry:m,uiSchema:h}=e,{CopyButton:v,MoveDownButton:y,MoveUpButton:g,RemoveButton:b}=m.templates.ButtonTemplates,w={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};return LP.jsxs("div",{className:r,children:[LP.jsx("div",{className:o?"col-xs-9":"col-xs-12",children:t}),o&&LP.jsx("div",{className:"col-xs-3 array-item-toolbox",children:LP.jsxs("div",{className:"btn-group",style:{display:"flex",justifyContent:"space-around"},children:[(i||a)&&LP.jsx(g,{style:w,disabled:n||p||!i,onClick:f(c,c-1),uiSchema:h,registry:m}),(i||a)&&LP.jsx(y,{style:w,disabled:n||p||!a,onClick:f(c,c+1),uiSchema:h,registry:m}),l&&LP.jsx(v,{style:w,disabled:n||p,onClick:u(c),uiSchema:h,registry:m}),s&&LP.jsx(b,{style:w,disabled:n||p,onClick:d(c),uiSchema:h,registry:m})]})})]})}function aB(e){const{canAdd:t,className:r,disabled:n,idSchema:o,uiSchema:a,items:i,onAddClick:s,readonly:l,registry:c,required:u,schema:d,title:f}=e,p=kd(a),m=PP("ArrayFieldDescriptionTemplate",c,p),h=PP("ArrayFieldItemTemplate",c,p),v=PP("ArrayFieldTitleTemplate",c,p),{ButtonTemplates:{AddButton:y}}=c.templates;return LP.jsxs("fieldset",{className:r,id:o.$id,children:[LP.jsx(v,{idSchema:o,title:p.title||f,required:u,schema:d,uiSchema:a,registry:c}),LP.jsx(m,{idSchema:o,description:p.description||d.description,schema:d,uiSchema:a,registry:c}),LP.jsx("div",{className:"row array-item-list",children:i&&i.map((({key:e,...t})=>LP.jsx(h,{...t},e)))}),t&&LP.jsx(y,{className:"array-item-add",onClick:s,disabled:n||l,uiSchema:a,registry:c})]})}function iB(e){const{idSchema:t,title:r,schema:n,uiSchema:o,required:a,registry:i}=e,s=kd(o,i.globalUiOptions),{label:l=!0}=s;if(!r||!l)return null;const c=PP("TitleFieldTemplate",i,s);return LP.jsx(c,{id:fj(t),title:r,required:a,schema:n,uiSchema:o,registry:i})}function sB(e){const{id:t,name:r,value:n,readonly:o,disabled:a,autofocus:i,onBlur:s,onFocus:l,onChange:c,onChangeOverride:u,options:d,schema:f,uiSchema:p,formContext:m,registry:h,rawErrors:v,type:y,hideLabel:g,hideError:b,...w}=e;if(!t)throw console.log("No id for",e),new Error(`no id for props ${JSON.stringify(e)}`);const S={...w,..._P(f,y,d)};let x;x="number"===S.type||"integer"===S.type?n||0===n?n:"":null==n?"":n;const $=L.useCallback((({target:{value:e}})=>c(""===e?d.emptyValue:e)),[c,d]),k=L.useCallback((({target:e})=>s(t,e&&e.value)),[s,t]),_=L.useCallback((({target:e})=>l(t,e&&e.value)),[l,t]);return LP.jsxs(LP.Fragment,{children:[LP.jsx("input",{id:t,name:t,className:"form-control",readOnly:o,disabled:a,autoFocus:i,value:x,...S,list:f.examples?uj(t):void 0,onChange:u||$,onBlur:k,onFocus:_,"aria-describedby":pj(t,!!f.examples)}),Array.isArray(f.examples)&&LP.jsx("datalist",{id:uj(t),children:f.examples.concat(f.default&&!f.examples.includes(f.default)?[f.default]:[]).map((e=>LP.jsx("option",{value:e},e)))},`datalist_${t}`)]})}function lB({uiSchema:e}){const{submitText:t,norender:r,props:n={}}=CP(e);return r?null:LP.jsx("div",{children:LP.jsx("button",{type:"submit",...n,className:`btn btn-info ${n.className||""}`,children:t})})}function cB(e){const{iconType:t="default",icon:r,className:n,uiSchema:o,registry:a,...i}=e;return LP.jsx("button",{type:"button",className:`btn btn-${t} ${n}`,...i,children:LP.jsx("i",{className:`glyphicon glyphicon-${r}`})})}function uB(e){const{registry:{translateString:t}}=e;return LP.jsx(cB,{title:t(Lj.CopyButton),className:"array-item-copy",...e,icon:"copy"})}function dB(e){const{registry:{translateString:t}}=e;return LP.jsx(cB,{title:t(Lj.MoveDownButton),className:"array-item-move-down",...e,icon:"arrow-down"})}function fB(e){const{registry:{translateString:t}}=e;return LP.jsx(cB,{title:t(Lj.MoveUpButton),className:"array-item-move-up",...e,icon:"arrow-up"})}function pB(e){const{registry:{translateString:t}}=e;return LP.jsx(cB,{title:t(Lj.RemoveButton),className:"array-item-remove",...e,iconType:"danger",icon:"remove"})}function mB({className:e,onClick:t,disabled:r,registry:n}){const{translateString:o}=n;return LP.jsx("div",{className:"row",children:LP.jsx("p",{className:`col-xs-3 col-xs-offset-9 text-right ${e}`,children:LP.jsx(cB,{iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:o(Lj.AddButton),onClick:t,disabled:r,registry:n})})})}function hB(e){const{id:t,description:r}=e;return r?"string"==typeof r?LP.jsx("p",{id:t,className:"field-description",children:r}):LP.jsx("div",{id:t,className:"field-description",children:r}):null}function vB({errors:e,registry:t}){const{translateString:r}=t;return LP.jsxs("div",{className:"panel panel-danger errors",children:[LP.jsx("div",{className:"panel-heading",children:LP.jsx("h3",{className:"panel-title",children:r(Lj.ErrorsLabel)})}),LP.jsx("ul",{className:"list-group",children:e.map(((e,t)=>LP.jsx("li",{className:"list-group-item text-danger",children:e.stack},t)))})]})}const yB="*";function gB(e){const{label:t,required:r,id:n}=e;return t?LP.jsxs("label",{className:"control-label",htmlFor:n,children:[t,r&&LP.jsx("span",{className:"required",children:yB})]}):null}function bB(e){const{id:t,label:r,children:n,errors:o,help:a,description:i,hidden:s,required:l,displayLabel:c,registry:u,uiSchema:d}=e,f=PP("WrapIfAdditionalTemplate",u,kd(d));return s?LP.jsx("div",{className:"hidden",children:n}):LP.jsxs(f,{...e,children:[c&&LP.jsx(gB,{label:r,required:l,id:t}),c&&i?i:null,n,o,a]})}function wB(e){const{errors:t=[],idSchema:r}=e;if(0===t.length)return null;const n=cj(r);return LP.jsx("div",{children:LP.jsx("ul",{id:n,className:"error-detail bs-callout bs-callout-info",children:t.filter((e=>!!e)).map(((e,t)=>LP.jsx("li",{className:"text-danger",children:e},t)))})})}function SB(e){const{idSchema:t,help:r}=e;if(!r)return null;const n=dj(t);return"string"==typeof r?LP.jsx("p",{id:n,className:"help-block",children:r}):LP.jsx("div",{id:n,className:"help-block",children:r})}function xB(e){const{description:t,disabled:r,formData:n,idSchema:o,onAddClick:a,properties:i,readonly:s,registry:l,required:c,schema:u,title:d,uiSchema:f}=e,p=kd(f),m=PP("TitleFieldTemplate",l,p),h=PP("DescriptionFieldTemplate",l,p),{ButtonTemplates:{AddButton:v}}=l.templates;return LP.jsxs("fieldset",{id:o.$id,children:[d&&LP.jsx(m,{id:fj(o),title:d,required:c,schema:u,uiSchema:f,registry:l}),t&&LP.jsx(h,{id:lj(o),description:t,schema:u,uiSchema:f,registry:l}),i.map((e=>e.content)),_d(u,f,n)&&LP.jsx(v,{className:"object-property-expand",onClick:a(u),disabled:r||s,uiSchema:f,registry:l})]})}const $B="*";function kB(e){const{id:t,title:r,required:n}=e;return LP.jsxs("legend",{id:t,children:[r,n&&LP.jsx("span",{className:"required",children:$B})]})}function _B(e){const{schema:t,idSchema:r,reason:n,registry:o}=e,{translateString:a}=o;let i=Lj.UnsupportedField;const s=[];return r&&r.$id&&(i=Lj.UnsupportedFieldWithId,s.push(r.$id)),n&&(i=i===Lj.UnsupportedField?Lj.UnsupportedFieldWithReason:Lj.UnsupportedFieldWithIdAndReason,s.push(n)),LP.jsxs("div",{className:"unsupported-field",children:[LP.jsx("p",{children:LP.jsx(GV,{options:{disableParsingRawHTML:!0},children:a(i,s)})}),t&&LP.jsx("pre",{children:JSON.stringify(t,null,2)})]})}function EB(e){const{id:t,classNames:r,style:n,disabled:o,label:a,onKeyChange:i,onDropPropertyClick:s,readonly:l,required:c,schema:u,children:d,uiSchema:f,registry:p}=e,{templates:m,translateString:h}=p,{RemoveButton:v}=m.ButtonTemplates,y=h(Lj.KeyLabel,[a]);return rd in u?LP.jsx("div",{className:r,style:n,children:LP.jsxs("div",{className:"row",children:[LP.jsx("div",{className:"col-xs-5 form-additional",children:LP.jsxs("div",{className:"form-group",children:[LP.jsx(gB,{label:y,required:c,id:`${t}-key`}),LP.jsx("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:({target:e})=>i(e&&e.value),defaultValue:a})]})}),LP.jsx("div",{className:"form-additional form-group col-xs-5",children:d}),LP.jsx("div",{className:"col-xs-2",children:LP.jsx(v,{className:"array-item-remove btn-block",style:{border:"0"},disabled:o||l,onClick:s(a),uiSchema:f,registry:p})})]})}):LP.jsx("div",{className:r,style:n,children:d})}function CB({type:e,range:t,value:r,select:n,rootId:o,name:a,disabled:i,readonly:s,autofocus:l,registry:c,onBlur:u,onFocus:d}){const f=o+"_"+e,{SelectWidget:p}=c.widgets;return LP.jsx(p,{schema:{type:"integer"},id:f,name:a,className:"form-control",options:{enumOptions:pP(t[0],t[1])},placeholder:e,value:r,disabled:i,readonly:s,autofocus:l,onChange:t=>n(e,t),onBlur:u,onFocus:d,registry:c,label:"","aria-describedby":pj(o)})}function PB({time:e=!1,disabled:t=!1,readonly:r=!1,autofocus:n=!1,options:o,id:a,name:i,registry:s,onBlur:l,onFocus:c,onChange:u,value:d}){const{translateString:f}=s,[p,m]=L.useState(d),[h,v]=L.useReducer(((e,t)=>({...e,...t})),vj(d,e));L.useEffect((()=>{const t=gj(h,e);!function(e){return Object.values(e).every((e=>-1!==e))}(h)||t===d?p!==d&&(m(d),v(vj(d,e))):u(t)}),[e,d,u,h,p]);const y=L.useCallback(((e,t)=>{v({[e]:t})}),[]),g=L.useCallback((n=>{if(n.preventDefault(),t||r)return;const o=vj((new Date).toJSON(),e);u(gj(o,e))}),[t,r,e]),b=L.useCallback((e=>{e.preventDefault(),t||r||u(void 0)}),[t,r,u]);return LP.jsxs("ul",{className:"list-inline",children:[$P(h,e,o.yearsRange,o.format).map(((e,o)=>LP.jsx("li",{className:"list-inline-item",children:LP.jsx(CB,{rootId:a,name:i,select:y,...e,disabled:t,readonly:r,registry:s,onBlur:l,onFocus:c,autofocus:n&&0===o})},o))),("undefined"===o.hideNowButton||!o.hideNowButton)&&LP.jsx("li",{className:"list-inline-item",children:LP.jsx("a",{href:"#",className:"btn btn-info btn-now",onClick:g,children:f(Lj.NowLabel)})}),("undefined"===o.hideClearButton||!o.hideClearButton)&&LP.jsx("li",{className:"list-inline-item",children:LP.jsx("a",{href:"#",className:"btn btn-warning btn-clear",onClick:b,children:f(Lj.ClearLabel)})})]})}function jB({time:e=!0,...t}){const{AltDateWidget:r}=t.registry.widgets;return LP.jsx(r,{time:e,...t})}function OB({schema:e,uiSchema:t,options:r,id:n,value:o,disabled:a,readonly:i,label:s,hideLabel:l,autofocus:c=!1,onBlur:u,onFocus:d,onChange:f,registry:p}){var m;const h=PP("DescriptionFieldTemplate",p,r),v=yj(e),y=L.useCallback((e=>f(e.target.checked)),[f]),g=L.useCallback((e=>u(n,e.target.checked)),[u,n]),b=L.useCallback((e=>d(n,e.target.checked)),[d,n]),w=null!==(m=r.description)&&void 0!==m?m:e.description;return LP.jsxs("div",{className:"checkbox "+(a||i?"disabled":""),children:[!l&&!!w&&LP.jsx(h,{id:lj(n),description:w,schema:e,uiSchema:t,registry:p}),LP.jsxs("label",{children:[LP.jsx("input",{type:"checkbox",id:n,name:n,checked:void 0!==o&&o,required:v,disabled:a||i,autoFocus:c,onChange:y,onBlur:g,onFocus:b,"aria-describedby":pj(n)}),hj(LP.jsx("span",{children:s}),l)]})]})}function NB({id:e,disabled:t,options:{inline:r=!1,enumOptions:n,enumDisabled:o,emptyValue:a},value:i,autofocus:s=!1,readonly:l,onChange:c,onBlur:u,onFocus:d}){const f=Array.isArray(i)?i:[i],p=L.useCallback((({target:t})=>u(e,hP(t&&t.value,n,a))),[u,e]),m=L.useCallback((({target:t})=>d(e,hP(t&&t.value,n,a))),[d,e]);return LP.jsx("div",{className:"checkboxes",id:e,children:Array.isArray(n)&&n.map(((a,i)=>{const u=yP(a.value,f),d=Array.isArray(o)&&-1!==o.indexOf(a.value),h=t||d||l?"disabled":"",v=LP.jsxs("span",{children:[LP.jsx("input",{type:"checkbox",id:mj(e,i),name:e,checked:u,value:String(i),disabled:t||d||l,autoFocus:s&&0===i,onChange:e=>{e.target.checked?c(bP(i,f,n)):c(vP(i,f,n))},onBlur:p,onFocus:m,"aria-describedby":pj(e)}),LP.jsx("span",{children:a.label})]});return r?LP.jsx("label",{className:`checkbox-inline ${h}`,children:v},i):LP.jsx("div",{className:`checkbox ${h}`,children:LP.jsx("label",{children:v})},i)}))})}function RB(e){const{disabled:t,readonly:r,options:n,registry:o}=e,a=PP("BaseInputTemplate",o,n);return LP.jsx(a,{type:"color",...e,disabled:t||r})}function TB(e){const{onChange:t,options:r,registry:n}=e,o=PP("BaseInputTemplate",n,r),a=L.useCallback((e=>t(e||void 0)),[t]);return LP.jsx(o,{type:"date",...e,onChange:a})}function AB(e){const{onChange:t,value:r,options:n,registry:o}=e,a=PP("BaseInputTemplate",o,n);return LP.jsx(a,{type:"datetime-local",...e,value:jj(r),onChange:e=>{return t((r=e)?new Date(r).toJSON():void 0);var r}})}function IB(e){const{options:t,registry:r}=e,n=PP("BaseInputTemplate",r,t);return LP.jsx(n,{type:"email",...e})}function MB(e,t){return null===e?null:e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}function FB(e){const{name:t,size:r,type:n}=e;return new Promise(((o,a)=>{const i=new window.FileReader;i.onerror=a,i.onload=e=>{var a;"string"==typeof(null===(a=e.target)||void 0===a?void 0:a.result)?o({dataURL:MB(e.target.result,t),name:t,size:r,type:n}):o({dataURL:null,name:t,size:r,type:n})},i.readAsDataURL(e)}))}function DB({fileInfo:e,registry:t}){const{translateString:r}=t,{dataURL:n,type:o,name:a}=e;return n?["image/jpeg","image/png"].includes(o)?LP.jsx("img",{src:n,style:{maxWidth:"100%"},className:"file-preview"}):LP.jsxs(LP.Fragment,{children:[" ",LP.jsx("a",{download:`preview-${a}`,href:n,className:"file-download",children:r(Lj.PreviewLabel)})]}):null}function zB({filesInfo:e,registry:t,preview:r,onRemove:n,options:o}){if(0===e.length)return null;const{translateString:a}=t,{RemoveButton:i}=PP("ButtonTemplates",t,o);return LP.jsx("ul",{className:"file-info",children:e.map(((e,o)=>{const{name:s,size:l,type:c}=e;return LP.jsxs("li",{children:[LP.jsx(GV,{children:a(Lj.FilesInfo,[s,c,String(l)])}),r&&LP.jsx(DB,{fileInfo:e,registry:t}),LP.jsx(i,{onClick:()=>n(o),registry:t})]},o)}))})}function LB(e){return e.reduce(((e,t)=>{if(!t)return e;try{const{blob:r,name:n}=function(e){var t;if(-1===e.indexOf("data:"))throw new Error("File is invalid: URI must be a dataURI");const r=e.slice(5).split(";base64,");if(2!==r.length)throw new Error("File is invalid: dataURI must be base64");const[n,o]=r,[a,...i]=n.split(";"),s=a||"",l=decodeURI((null===(t=i.map((e=>e.split("="))).find((([e])=>"name"===e)))||void 0===t?void 0:t[1])||"unknown");try{const e=atob(o),t=new Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return{blob:new window.Blob([new Uint8Array(t)],{type:s}),name:l}}catch(e){throw new Error("File is invalid: "+e.message)}}(t);return[...e,{dataURL:t,name:n,size:r.size,type:r.type}]}catch(t){return e}}),[])}function VB(e){const{disabled:t,readonly:r,required:n,multiple:o,onChange:a,value:i,options:s,registry:l}=e,c=PP("BaseInputTemplate",l,s),u=L.useCallback((e=>{var t;e.target.files&&(t=e.target.files,Promise.all(Array.from(t).map(FB))).then((e=>{const t=e.map((e=>e.dataURL));a(o?i.concat(t):t[0])}))}),[o,i,a]),d=L.useMemo((()=>LB(Array.isArray(i)?i:[i])),[i]),f=L.useCallback((e=>{if(o){const t=i.filter(((t,r)=>r!==e));a(t)}else a(void 0)}),[o,i,a]);return LP.jsxs("div",{children:[LP.jsx(c,{...e,disabled:t||r,type:"file",required:!i&&n,onChangeOverride:u,value:"",accept:s.accept?String(s.accept):void 0}),LP.jsx(zB,{filesInfo:d,onRemove:f,registry:l,preview:s.filePreview,options:s})]})}function BB({id:e,value:t}){return LP.jsx("input",{type:"hidden",id:e,name:e,value:void 0===t?"":t})}function UB(e){const{options:t,registry:r}=e,n=PP("BaseInputTemplate",r,t);return LP.jsx(n,{type:"password",...e})}function WB({options:e,value:t,required:r,disabled:n,readonly:o,autofocus:a=!1,onBlur:i,onFocus:s,onChange:l,id:c}){const{enumOptions:u,enumDisabled:d,inline:f,emptyValue:p}=e,m=L.useCallback((({target:e})=>i(c,hP(e&&e.value,u,p))),[i,c]),h=L.useCallback((({target:e})=>s(c,hP(e&&e.value,u,p))),[s,c]);return LP.jsx("div",{className:"field-radio-group",id:c,children:Array.isArray(u)&&u.map(((e,i)=>{const s=yP(e.value,t),u=Array.isArray(d)&&-1!==d.indexOf(e.value),p=n||u||o?"disabled":"",v=LP.jsxs("span",{children:[LP.jsx("input",{type:"radio",id:mj(c,i),checked:s,name:c,required:r,value:String(i),disabled:n||u||o,autoFocus:a&&0===i,onChange:()=>l(e.value),onBlur:m,onFocus:h,"aria-describedby":pj(c)}),LP.jsx("span",{children:e.label})]});return f?LP.jsx("label",{className:`radio-inline ${p}`,children:v},i):LP.jsx("div",{className:`radio ${p}`,children:LP.jsx("label",{children:v})},i)}))})}function qB(e){const{value:t,registry:{templates:{BaseInputTemplate:r}}}=e;return LP.jsxs("div",{className:"field-range-wrapper",children:[LP.jsx(r,{type:"range",...e}),LP.jsx("span",{className:"range-view",children:t})]})}function KB(e,t){return t?Array.from(e.target.options).slice().filter((e=>e.selected)).map((e=>e.value)):e.target.value}function HB({schema:e,id:t,options:r,value:n,required:o,disabled:a,readonly:i,multiple:s=!1,autofocus:l=!1,onChange:c,onBlur:u,onFocus:d,placeholder:f}){const{enumOptions:p,enumDisabled:m,emptyValue:h}=r,v=s?[]:"",y=L.useCallback((e=>{const r=KB(e,s);return d(t,hP(r,p,h))}),[d,t,e,s,p,h]),g=L.useCallback((e=>{const r=KB(e,s);return u(t,hP(r,p,h))}),[u,t,e,s,p,h]),b=L.useCallback((e=>{const t=KB(e,s);return c(hP(t,p,h))}),[c,e,s,p,h]),w=gP(n,p,s),S=!s&&void 0===e.default;return LP.jsxs("select",{id:t,name:t,multiple:s,className:"form-control",value:void 0===w?v:w,required:o,disabled:a||i,autoFocus:l,onBlur:g,onFocus:y,onChange:b,"aria-describedby":pj(t),children:[S&&LP.jsx("option",{value:"",children:f}),Array.isArray(p)&&p.map((({value:e,label:t},r)=>{const n=m&&-1!==m.indexOf(e);return LP.jsx("option",{value:String(r),disabled:n,children:t},r)}))]})}function GB({id:e,options:t={},placeholder:r,value:n,required:o,disabled:a,readonly:i,autofocus:s=!1,onChange:l,onBlur:c,onFocus:u}){const d=L.useCallback((({target:{value:e}})=>l(""===e?t.emptyValue:e)),[l,t.emptyValue]),f=L.useCallback((({target:t})=>c(e,t&&t.value)),[c,e]),p=L.useCallback((({target:t})=>u(e,t&&t.value)),[e,u]);return LP.jsx("textarea",{id:e,name:e,className:"form-control",value:n||"",placeholder:r,required:o,disabled:a,readOnly:i,autoFocus:s,rows:t.rows,onBlur:f,onFocus:p,onChange:d,"aria-describedby":pj(e)})}function QB(e){const{options:t,registry:r}=e,n=PP("BaseInputTemplate",r,t);return LP.jsx(n,{...e})}function YB(e){const{onChange:t,options:r,registry:n}=e,o=PP("BaseInputTemplate",n,r),a=L.useCallback((e=>t(e?`${e}:00`:void 0)),[t]);return LP.jsx(o,{type:"time",...e,onChange:a})}function JB(e){const{options:t,registry:r}=e,n=PP("BaseInputTemplate",r,t);return LP.jsx(n,{type:"url",...e})}function XB(e){const{options:t,registry:r}=e,n=PP("BaseInputTemplate",r,t);return LP.jsx(n,{type:"number",...e})}function ZB(){return{fields:{AnyOfField:Xz,ArrayField:Yz,BooleanField:Jz,NumberField:tL,ObjectField:JV,OneOfField:Xz,SchemaField:eB,StringField:tB,NullField:rB},templates:{ArrayFieldDescriptionTemplate:nB,ArrayFieldItemTemplate:oB,ArrayFieldTemplate:aB,ArrayFieldTitleTemplate:iB,ButtonTemplates:{SubmitButton:lB,AddButton:mB,CopyButton:uB,MoveDownButton:dB,MoveUpButton:fB,RemoveButton:pB},BaseInputTemplate:sB,DescriptionFieldTemplate:hB,ErrorListTemplate:vB,FieldTemplate:bB,FieldErrorTemplate:wB,FieldHelpTemplate:SB,ObjectFieldTemplate:xB,TitleFieldTemplate:kB,UnsupportedFieldTemplate:_B,WrapIfAdditionalTemplate:EB},widgets:{AltDateWidget:PB,AltDateTimeWidget:jB,CheckboxWidget:OB,CheckboxesWidget:NB,ColorWidget:RB,DateWidget:TB,DateTimeWidget:AB,EmailWidget:IB,FileWidget:VB,HiddenWidget:BB,PasswordWidget:UB,RadioWidget:WB,RangeWidget:qB,SelectWidget:HB,TextWidget:QB,TextareaWidget:GB,TimeWidget:YB,UpDownWidget:XB,URLWidget:JB},rootSchema:{},formContext:{},translateString:mP}}GB.defaultProps={autofocus:!1,options:{}};let eU=class extends L.Component{constructor(e){if(super(e),this.getUsedFormData=(e,t)=>{if(0===t.length&&"object"!=typeof e)return e;const r=qz(e,t);return Array.isArray(e)?Object.keys(r).map((e=>r[e])):r},this.getFieldNames=(e,t)=>{const r=(e,n=[],o=[[]])=>(Object.keys(e).forEach((a=>{if("object"==typeof e[a]){const t=o.map((e=>[...e,a]));e[a][wd]&&""!==e[a][md]?n.push(e[a][md]):r(e[a],n,t)}else a===md&&""!==e[a]&&o.forEach((e=>{const r=Qv(t,e);("object"!=typeof r||ay(r)||Array.isArray(r)&&r.every((e=>"object"!=typeof e)))&&n.push(e)}))})),n);return r(e)},this.omitExtraData=e=>{const{schema:t,schemaUtils:r}=this.state,n=r.retrieveSchema(t,e),o=r.toPathSchema(n,"",e),a=this.getFieldNames(o,e);return this.getUsedFormData(e,a)},this.onChange=(e,t,r)=>{const{extraErrors:n,omitExtraData:o,liveOmit:a,noValidate:i,liveValidate:s,onChange:l}=this.props,{schemaUtils:c,schema:u}=this.state;let d=this.state.retrievedSchema;if(ed(e)||Array.isArray(e)){const t=this.getStateFromProps(this.props,e);e=t.formData,d=t.retrievedSchema}const f=!i&&s;let p={formData:e,schema:u},m=e;if(!0===o&&!0===a&&(m=this.omitExtraData(e),p={formData:m}),f){const e=this.validate(m,u,c,d);let r=e.errors,o=e.errorSchema;const a=r,i=o;if(n){const t=Oj(e,n);o=t.errorSchema,r=t.errors}if(t){o=WC(o,this.filterErrorsBasedOnSchema(t,d,m),"preventDuplicates")}p={formData:m,errors:r,errorSchema:o,schemaValidationErrors:a,schemaValidationErrorSchema:i}}else if(!i&&t){const e=n?WC(t,n,"preventDuplicates"):t;p={formData:m,errorSchema:e,errors:bj(e)}}this.setState(p,(()=>l&&l({...this.state,...p},r)))},this.reset=()=>{const{onChange:e}=this.props,t={formData:this.getStateFromProps(this.props,void 0).formData,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{}};this.setState(t,(()=>e&&e({...this.state,...t})))},this.onBlur=(e,t)=>{const{onBlur:r}=this.props;r&&r(e,t)},this.onFocus=(e,t)=>{const{onFocus:r}=this.props;r&&r(e,t)},this.onSubmit=e=>{if(e.preventDefault(),e.target!==e.currentTarget)return;e.persist();const{omitExtraData:t,extraErrors:r,noValidate:n,onSubmit:o}=this.props;let{formData:a}=this.state;if(!0===t&&(a=this.omitExtraData(a)),n||this.validateFormWithFormData(a)){const t=r||{},n=r?bj(r):[];this.setState({formData:a,errors:n,errorSchema:t,schemaValidationErrors:[],schemaValidationErrorSchema:{}},(()=>{o&&o({...this.state,formData:a,status:"submitted"},e)}))}},this.submit=()=>{if(this.formElement.current){const e=new CustomEvent("submit",{cancelable:!0});e.preventDefault(),this.formElement.current.dispatchEvent(e),this.formElement.current.requestSubmit()}},this.validateFormWithFormData=e=>{const{extraErrors:t,extraErrorsBlockSubmit:r,focusOnFirstError:n,onError:o}=this.props,{errors:a}=this.state,i=this.validate(e);let s=i.errors,l=i.errorSchema;const c=s,u=l,d=s.length>0||t&&r;if(d){if(t){const e=Oj(i,t);l=e.errorSchema,s=e.errors}n&&("function"==typeof n?n(s[0]):this.focusOnError(s[0])),this.setState({errors:s,errorSchema:l,schemaValidationErrors:c,schemaValidationErrorSchema:u},(()=>{o?o(s):console.error("Form validation failed",s)}))}else a.length>0&&this.setState({errors:[],errorSchema:{},schemaValidationErrors:[],schemaValidationErrorSchema:{}});return!d},!e.validator)throw new Error("A validator is required for Form functionality to work");this.state=this.getStateFromProps(e,e.formData),this.props.onChange&&!dv(this.state.formData,this.props.formData)&&this.props.onChange(this.state),this.formElement=L.createRef()}getSnapshotBeforeUpdate(e,t){if(!dv(this.props,e)){const r=function(e,t){const r=ef(e),n=ef(t);return e===t||!r&&!n?[]:r&&!n?gh(e):!r&&n?gh(t):[...gh(Vj(e,((e,r)=>!dv(e,Qv(t,r))))),...Kj(gh(t),gh(e))]}(this.props.formData,e.formData),n=!dv(e.schema,this.props.schema),o=r.length>0||!dv(e.formData,this.props.formData),a=this.getStateFromProps(this.props,this.props.formData,n||o?void 0:this.state.retrievedSchema,n,r);return{nextState:a,shouldUpdate:!dv(a,t)}}return{shouldUpdate:!1}}componentDidUpdate(e,t,r){if(r.shouldUpdate){const{nextState:e}=r;dv(e.formData,this.props.formData)||dv(e.formData,t.formData)||!this.props.onChange||this.props.onChange(e),this.setState(e)}}getStateFromProps(e,t,r,n=!1,o=[]){var a;const i=this.state||{},s="schema"in e?e.schema:this.props.schema,l=("uiSchema"in e?e.uiSchema:this.props.uiSchema)||{},c=void 0!==t,u="liveValidate"in e?e.liveValidate:this.props.liveValidate,d=c&&!e.noValidate&&u,f=s,p="experimental_defaultFormStateBehavior"in e?e.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior,m="experimental_customMergeAllOf"in e?e.experimental_customMergeAllOf:this.props.experimental_customMergeAllOf;let h=i.schemaUtils;h&&!h.doesSchemaUtilsDiffer(e.validator,f,p,m)||(h=function(e,t,r={},n){return new dP(e,t,r,n)}(e.validator,f,p,m));const v=h.getDefaultFormState(s,t),y=this.updateRetrievedSchema(null!=r?r:h.retrieveSchema(s,v));let g,b,w=i.schemaValidationErrors,S=i.schemaValidationErrorSchema;if(d){const e=this.validate(v,s,h,y);g=e.errors,b=void 0===r?e.errorSchema:WC(null===(a=this.state)||void 0===a?void 0:a.errorSchema,e.errorSchema,"preventDuplicates"),w=g,S=b}else{const t=e.noValidate||n?{errors:[],errorSchema:{}}:e.liveValidate?{errors:i.errors||[],errorSchema:i.errorSchema||{}}:{errors:i.schemaValidationErrors||[],errorSchema:i.schemaValidationErrorSchema||{}};if(g=t.errors,b=t.errorSchema,o.length>0){const e=o.reduce(((e,t)=>(e[t]=void 0,e)),{});b=S=WC(t.errorSchema,e,"preventDuplicates")}}if(e.extraErrors){const t=Oj({errorSchema:b,errors:g},e.extraErrors);b=t.errorSchema,g=t.errors}const x=h.toIdSchema(y,l["ui:rootFieldId"],v,e.idPrefix,e.idSeparator);return{schemaUtils:h,schema:s,uiSchema:l,idSchema:x,formData:v,edit:c,errors:g,errorSchema:b,schemaValidationErrors:w,schemaValidationErrorSchema:S,retrievedSchema:y}}shouldComponentUpdate(e,t){return function(e,t,r){const{props:n,state:o}=e;return!dv(n,t)||!dv(o,r)}(this,e,t)}validate(e,t=this.props.schema,r,n){const o=r||this.state.schemaUtils,{customValidate:a,transformErrors:i,uiSchema:s}=this.props,l=null!=n?n:o.retrieveSchema(t,e);return o.getValidator().validateFormData(e,l,a,i,s)}renderErrors(e){const{errors:t,errorSchema:r,schema:n,uiSchema:o}=this.state,{formContext:a}=this.props,i=PP("ErrorListTemplate",e,kd(o));return t&&t.length?LP.jsx(i,{errors:t,errorSchema:r||{},schema:n,uiSchema:o,formContext:a,registry:e}):null}filterErrorsBasedOnSchema(e,t,r){const{retrievedSchema:n,schemaUtils:o}=this.state,a=null!=t?t:n,i=o.toPathSchema(a,"",r),s=this.getFieldNames(i,r),l=qz(e,s);"object"!==(null==t?void 0:t.type)&&"array"!==(null==t?void 0:t.type)&&(l.__errors=e.__errors);const c=e=>(H_(e,((t,r)=>{BC(t)?delete e[r]:"object"!=typeof t||Array.isArray(t.__errors)||c(t)})),e);return c(l)}updateRetrievedSchema(e){var t;return dv(e,null===(t=this.state)||void 0===t?void 0:t.retrievedSchema)?this.state.retrievedSchema:e}getRegistry(){var e;const{translateString:t,uiSchema:r={}}=this.props,{schemaUtils:n}=this.state,{fields:o,templates:a,widgets:i,formContext:s,translateString:l}=ZB();return{fields:{...o,...this.props.fields},templates:{...a,...this.props.templates,ButtonTemplates:{...a.ButtonTemplates,...null===(e=this.props.templates)||void 0===e?void 0:e.ButtonTemplates}},widgets:{...i,...this.props.widgets},rootSchema:this.props.schema,formContext:this.props.formContext||s,schemaUtils:n,translateString:t||l,globalUiOptions:r["ui:globalOptions"]}}focusOnError(e){const{idPrefix:t="root",idSeparator:r="_"}=this.props,{property:n}=e,o=Cj(n);""===o[0]?o[0]=t:o.unshift(t);const a=o.join(r);let i=this.formElement.current.elements[a];i||(i=this.formElement.current.querySelector(`input[id^="${a}"`)),i&&i.length&&(i=i[0]),i&&i.focus()}validateForm(){const{omitExtraData:e}=this.props;let{formData:t}=this.state;return!0===e&&(t=this.omitExtraData(t)),this.validateFormWithFormData(t)}render(){const{children:e,id:t,idPrefix:r,idSeparator:n,className:o="",tagName:a,name:i,method:s,target:l,action:c,autoComplete:u,enctype:d,acceptcharset:f,acceptCharset:p,noHtml5Validate:m=!1,disabled:h,readonly:v,formContext:y,showErrorList:g="top",_internalFormWrapper:b}=this.props,{schema:w,uiSchema:S,formData:x,errorSchema:$,idSchema:k}=this.state,_=this.getRegistry(),{SchemaField:E}=_.fields,{SubmitButton:C}=_.templates.ButtonTemplates,P=b?a:void 0,j=b||a||"form";let{[gd]:O={}}=kd(S);h&&(O={...O,props:{...O.props,disabled:!0}});const N={[$d]:{[gd]:O}};return LP.jsxs(j,{className:o||"rjsf",id:t,name:i,method:s,target:l,action:c,autoComplete:u,encType:d,acceptCharset:p||f,noValidate:m,onSubmit:this.onSubmit,as:P,ref:this.formElement,children:["top"===g&&this.renderErrors(_),LP.jsx(E,{name:"",schema:w,uiSchema:S,errorSchema:$,idSchema:k,idPrefix:r,idSeparator:n,formContext:y,formData:x,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:_,disabled:h,readonly:v}),e||LP.jsx(C,{uiSchema:N,registry:_}),"bottom"===g&&this.renderErrors(_)]})}};var tU={black:"#000",white:"#fff"};var rU={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var nU={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var oU={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var aU={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var iU={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var sU={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var lU={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function cU(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var uU=Object.freeze({__proto__:null,default:cU}),dU="$$material";function fU(){return fU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fU.apply(this,arguments)}function pU(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var mU=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),hU="-ms-",vU="-moz-",yU="-webkit-",gU="comm",bU="rule",wU="decl",SU="@keyframes",xU=Math.abs,$U=String.fromCharCode,kU=Object.assign;function _U(e){return e.trim()}function EU(e,t,r){return e.replace(t,r)}function CU(e,t){return e.indexOf(t)}function PU(e,t){return 0|e.charCodeAt(t)}function jU(e,t,r){return e.slice(t,r)}function OU(e){return e.length}function NU(e){return e.length}function RU(e,t){return t.push(e),e}var TU=1,AU=1,IU=0,MU=0,FU=0,DU="";function zU(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:TU,column:AU,length:i,return:""}}function LU(e,t){return kU(zU("",null,null,"",null,null,0),e,{length:-e.length},t)}function VU(){return FU=MU>0?PU(DU,--MU):0,AU--,10===FU&&(AU=1,TU--),FU}function BU(){return FU=MU<IU?PU(DU,MU++):0,AU++,10===FU&&(AU=1,TU++),FU}function UU(){return PU(DU,MU)}function WU(){return MU}function qU(e,t){return jU(DU,e,t)}function KU(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function HU(e){return TU=AU=1,IU=OU(DU=e),MU=0,[]}function GU(e){return DU="",e}function QU(e){return _U(qU(MU-1,XU(91===e?e+2:40===e?e+1:e)))}function YU(e){for(;(FU=UU())&&FU<33;)BU();return KU(e)>2||KU(FU)>3?"":" "}function JU(e,t){for(;--t&&BU()&&!(FU<48||FU>102||FU>57&&FU<65||FU>70&&FU<97););return qU(e,WU()+(t<6&&32==UU()&&32==BU()))}function XU(e){for(;BU();)switch(FU){case e:return MU;case 34:case 39:34!==e&&39!==e&&XU(FU);break;case 40:41===e&&XU(e);break;case 92:BU()}return MU}function ZU(e,t){for(;BU()&&e+FU!==57&&(e+FU!==84||47!==UU()););return"/*"+qU(t,MU-1)+"*"+$U(47===e?e:BU())}function eW(e){for(;!KU(UU());)BU();return qU(e,MU)}function tW(e){return GU(rW("",null,null,null,[""],e=HU(e),0,[0],e))}function rW(e,t,r,n,o,a,i,s,l){for(var c=0,u=0,d=i,f=0,p=0,m=0,h=1,v=1,y=1,g=0,b="",w=o,S=a,x=n,$=b;v;)switch(m=g,g=BU()){case 40:if(108!=m&&58==PU($,d-1)){-1!=CU($+=EU(QU(g),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:$+=QU(g);break;case 9:case 10:case 13:case 32:$+=YU(m);break;case 92:$+=JU(WU()-1,7);continue;case 47:switch(UU()){case 42:case 47:RU(oW(ZU(BU(),WU()),t,r),l);break;default:$+="/"}break;case 123*h:s[c++]=OU($)*y;case 125*h:case 59:case 0:switch(g){case 0:case 125:v=0;case 59+u:-1==y&&($=EU($,/\f/g,"")),p>0&&OU($)-d&&RU(p>32?aW($+";",n,r,d-1):aW(EU($," ","")+";",n,r,d-2),l);break;case 59:$+=";";default:if(RU(x=nW($,t,r,c,u,o,s,b,w=[],S=[],d),a),123===g)if(0===u)rW($,t,x,x,w,a,d,s,S);else switch(99===f&&110===PU($,3)?100:f){case 100:case 108:case 109:case 115:rW(e,x,x,n&&RU(nW(e,x,x,0,0,o,s,b,o,w=[],d),S),o,S,d,s,n?w:S);break;default:rW($,x,x,x,[""],S,0,s,S)}}c=u=p=0,h=y=1,b=$="",d=i;break;case 58:d=1+OU($),p=m;default:if(h<1)if(123==g)--h;else if(125==g&&0==h++&&125==VU())continue;switch($+=$U(g),g*h){case 38:y=u>0?1:($+="\f",-1);break;case 44:s[c++]=(OU($)-1)*y,y=1;break;case 64:45===UU()&&($+=QU(BU())),f=UU(),u=d=OU(b=$+=eW(WU())),g++;break;case 45:45===m&&2==OU($)&&(h=0)}}return a}function nW(e,t,r,n,o,a,i,s,l,c,u){for(var d=o-1,f=0===o?a:[""],p=NU(f),m=0,h=0,v=0;m<n;++m)for(var y=0,g=jU(e,d+1,d=xU(h=i[m])),b=e;y<p;++y)(b=_U(h>0?f[y]+" "+g:EU(g,/&\f/g,f[y])))&&(l[v++]=b);return zU(e,t,r,0===o?bU:s,l,c,u)}function oW(e,t,r){return zU(e,t,r,gU,$U(FU),jU(e,2,-2),0)}function aW(e,t,r,n){return zU(e,t,r,wU,jU(e,0,n),jU(e,n+1,-1),n)}function iW(e,t){for(var r="",n=NU(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function sW(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case wU:return e.return=e.return||e.value;case gU:return"";case SU:return e.return=e.value+"{"+iW(e.children,n)+"}";case bU:e.value=e.props.join(",")}return OU(r=iW(e.children,n))?e.return=e.value+"{"+r+"}":""}function lW(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var cW=function(e,t,r){for(var n=0,o=0;n=o,o=UU(),38===n&&12===o&&(t[r]=1),!KU(o);)BU();return qU(e,MU)},uW=function(e,t){return GU(function(e,t){var r=-1,n=44;do{switch(KU(n)){case 0:38===n&&12===UU()&&(t[r]=1),e[r]+=cW(MU-1,t,r);break;case 2:e[r]+=QU(n);break;case 4:if(44===n){e[++r]=58===UU()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=$U(n)}}while(n=BU());return e}(HU(e),t))},dW=new WeakMap,fW=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||dW.get(r))&&!n){dW.set(e,!0);for(var o=[],a=uW(t,o),i=r.props,s=0,l=0;s<a.length;s++)for(var c=0;c<i.length;c++,l++)e.props[l]=o[s]?a[s].replace(/&\f/g,i[c]):i[c]+" "+a[s]}}},pW=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function mW(e,t){switch(function(e,t){return 45^PU(e,0)?(((t<<2^PU(e,0))<<2^PU(e,1))<<2^PU(e,2))<<2^PU(e,3):0}(e,t)){case 5103:return yU+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return yU+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return yU+e+vU+e+hU+e+e;case 6828:case 4268:return yU+e+hU+e+e;case 6165:return yU+e+hU+"flex-"+e+e;case 5187:return yU+e+EU(e,/(\w+).+(:[^]+)/,yU+"box-$1$2"+hU+"flex-$1$2")+e;case 5443:return yU+e+hU+"flex-item-"+EU(e,/flex-|-self/,"")+e;case 4675:return yU+e+hU+"flex-line-pack"+EU(e,/align-content|flex-|-self/,"")+e;case 5548:return yU+e+hU+EU(e,"shrink","negative")+e;case 5292:return yU+e+hU+EU(e,"basis","preferred-size")+e;case 6060:return yU+"box-"+EU(e,"-grow","")+yU+e+hU+EU(e,"grow","positive")+e;case 4554:return yU+EU(e,/([^-])(transform)/g,"$1"+yU+"$2")+e;case 6187:return EU(EU(EU(e,/(zoom-|grab)/,yU+"$1"),/(image-set)/,yU+"$1"),e,"")+e;case 5495:case 3959:return EU(e,/(image-set\([^]*)/,yU+"$1$`$1");case 4968:return EU(EU(e,/(.+:)(flex-)?(.*)/,yU+"box-pack:$3"+hU+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+yU+e+e;case 4095:case 3583:case 4068:case 2532:return EU(e,/(.+)-inline(.+)/,yU+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(OU(e)-1-t>6)switch(PU(e,t+1)){case 109:if(45!==PU(e,t+4))break;case 102:return EU(e,/(.+:)(.+)-([^]+)/,"$1"+yU+"$2-$3$1"+vU+(108==PU(e,t+3)?"$3":"$2-$3"))+e;case 115:return~CU(e,"stretch")?mW(EU(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==PU(e,t+1))break;case 6444:switch(PU(e,OU(e)-3-(~CU(e,"!important")&&10))){case 107:return EU(e,":",":"+yU)+e;case 101:return EU(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+yU+(45===PU(e,14)?"inline-":"")+"box$3$1"+yU+"$2$3$1"+hU+"$2box$3")+e}break;case 5936:switch(PU(e,t+11)){case 114:return yU+e+hU+EU(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return yU+e+hU+EU(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return yU+e+hU+EU(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return yU+e+hU+e+e}return e}var hW=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case wU:e.return=mW(e.value,e.length);break;case SU:return iW([LU(e,{value:EU(e.value,"@","@"+yU)})],n);case bU:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return iW([LU(e,{props:[EU(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return iW([LU(e,{props:[EU(t,/:(plac\w+)/,":"+yU+"input-$1")]}),LU(e,{props:[EU(t,/:(plac\w+)/,":-moz-$1")]}),LU(e,{props:[EU(t,/:(plac\w+)/,hU+"input-$1")]})],n)}return""}))}}],vW=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n,o,a=e.stylisPlugins||hW,i={},s=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)i[t[r]]=!0;s.push(e)}));var l,c,u=[sW,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=NU(e);return function(r,n,o,a){for(var i="",s=0;s<t;s++)i+=e[s](r,n,o,a)||"";return i}}([fW,pW].concat(a,u));o=function(e,t,r,n){l=r,function(e){iW(tW(e),d)}(e?e+"{"+t.styles+"}":t.styles),n&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new mU({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return f.sheet.hydrate(s),f},yW={exports:{}},gW={},bW="function"==typeof Symbol&&Symbol.for,wW=bW?Symbol.for("react.element"):60103,SW=bW?Symbol.for("react.portal"):60106,xW=bW?Symbol.for("react.fragment"):60107,$W=bW?Symbol.for("react.strict_mode"):60108,kW=bW?Symbol.for("react.profiler"):60114,_W=bW?Symbol.for("react.provider"):60109,EW=bW?Symbol.for("react.context"):60110,CW=bW?Symbol.for("react.async_mode"):60111,PW=bW?Symbol.for("react.concurrent_mode"):60111,jW=bW?Symbol.for("react.forward_ref"):60112,OW=bW?Symbol.for("react.suspense"):60113,NW=bW?Symbol.for("react.suspense_list"):60120,RW=bW?Symbol.for("react.memo"):60115,TW=bW?Symbol.for("react.lazy"):60116,AW=bW?Symbol.for("react.block"):60121,IW=bW?Symbol.for("react.fundamental"):60117,MW=bW?Symbol.for("react.responder"):60118,FW=bW?Symbol.for("react.scope"):60119;function DW(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case wW:switch(e=e.type){case CW:case PW:case xW:case kW:case $W:case OW:return e;default:switch(e=e&&e.$$typeof){case EW:case jW:case TW:case RW:case _W:return e;default:return t}}case SW:return t}}}function zW(e){return DW(e)===PW}gW.AsyncMode=CW,gW.ConcurrentMode=PW,gW.ContextConsumer=EW,gW.ContextProvider=_W,gW.Element=wW,gW.ForwardRef=jW,gW.Fragment=xW,gW.Lazy=TW,gW.Memo=RW,gW.Portal=SW,gW.Profiler=kW,gW.StrictMode=$W,gW.Suspense=OW,gW.isAsyncMode=function(e){return zW(e)||DW(e)===CW},gW.isConcurrentMode=zW,gW.isContextConsumer=function(e){return DW(e)===EW},gW.isContextProvider=function(e){return DW(e)===_W},gW.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===wW},gW.isForwardRef=function(e){return DW(e)===jW},gW.isFragment=function(e){return DW(e)===xW},gW.isLazy=function(e){return DW(e)===TW},gW.isMemo=function(e){return DW(e)===RW},gW.isPortal=function(e){return DW(e)===SW},gW.isProfiler=function(e){return DW(e)===kW},gW.isStrictMode=function(e){return DW(e)===$W},gW.isSuspense=function(e){return DW(e)===OW},gW.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===xW||e===PW||e===kW||e===$W||e===OW||e===NW||"object"==typeof e&&null!==e&&(e.$$typeof===TW||e.$$typeof===RW||e.$$typeof===_W||e.$$typeof===EW||e.$$typeof===jW||e.$$typeof===IW||e.$$typeof===MW||e.$$typeof===FW||e.$$typeof===AW)},gW.typeOf=DW,yW.exports=gW;var LW=yW.exports,VW={};VW[LW.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},VW[LW.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};function BW(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")})),n}var UW=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},WW=function(e,t,r){UW(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var qW={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},KW=!1,HW=/[A-Z]|^ms/g,GW=/_EMO_([^_]+?)_([^]*?)_EMO_/g,QW=function(e){return 45===e.charCodeAt(1)},YW=function(e){return null!=e&&"boolean"!=typeof e},JW=lW((function(e){return QW(e)?e:e.replace(HW,"-$&").toLowerCase()})),XW=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(GW,(function(e,t,r){return tq={name:t,styles:r,next:tq},t}))}return 1===qW[e]||QW(e)||"number"!=typeof t||0===t?t:t+"px"},ZW="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function eq(e,t,r){if(null==r)return"";var n=r;if(void 0!==n.__emotion_styles)return n;switch(typeof r){case"boolean":return"";case"object":var o=r;if(1===o.anim)return tq={name:o.name,styles:o.styles,next:tq},o.name;var a=r;if(void 0!==a.styles){var i=a.next;if(void 0!==i)for(;void 0!==i;)tq={name:i.name,styles:i.styles,next:tq},i=i.next;return a.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=eq(e,t,r[o])+";";else for(var a in r){var i=r[a];if("object"!=typeof i){var s=i;null!=t&&void 0!==t[s]?n+=a+"{"+t[s]+"}":YW(s)&&(n+=JW(a)+":"+XW(a,s)+";")}else{if("NO_COMPONENT_SELECTOR"===a&&KW)throw new Error(ZW);if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=eq(e,t,i);switch(a){case"animation":case"animationName":n+=JW(a)+":"+l+";";break;default:n+=a+"{"+l+"}"}}else for(var c=0;c<i.length;c++)YW(i[c])&&(n+=JW(a)+":"+XW(a,i[c])+";")}}return n}(e,t,r);case"function":if(void 0!==e){var s=tq,l=r(e);return tq=s,eq(e,t,l)}}var c=r;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var tq,rq=/label:\s*([^\s;{]+)\s*(;|$)/g;function nq(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";tq=void 0;var a=e[0];null==a||void 0===a.raw?(n=!1,o+=eq(r,t,a)):o+=a[0];for(var i=1;i<e.length;i++){if(o+=eq(r,t,e[i]),n)o+=a[i]}rq.lastIndex=0;for(var s,l="";null!==(s=rq.exec(o));)l+="-"+s[1];var c=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:tq}}var oq,aq,iq=!!B.useInsertionEffect&&B.useInsertionEffect,sq=iq||function(e){return e()},lq=iq||L.useLayoutEffect,cq=L.createContext("undefined"!=typeof HTMLElement?vW({key:"css"}):null),uq=cq.Provider,dq=function(e){return L.forwardRef((function(t,r){var n=L.useContext(cq);return e(t,n,r)}))},fq=L.createContext({}),pq={}.hasOwnProperty,mq="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",hq=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return UW(t,r,n),sq((function(){return WW(t,r,n)})),null},vq=dq((function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var o=e[mq],a=[n],i="";"string"==typeof e.className?i=BW(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var s=nq(a,void 0,L.useContext(fq));i+=t.key+"-"+s.name;var l={};for(var c in e)pq.call(e,c)&&"css"!==c&&c!==mq&&(l[c]=e[c]);return l.className=i,r&&(l.ref=r),L.createElement(L.Fragment,null,L.createElement(hq,{cache:t,serialized:s,isStringTag:"string"==typeof o}),L.createElement(o,l))})),yq=vq,gq=function(e,t){var r=arguments;if(null==t||!pq.call(t,"css"))return L.createElement.apply(void 0,r);var n=r.length,o=new Array(n);o[0]=yq,o[1]=function(e,t){var r={};for(var n in t)pq.call(t,n)&&(r[n]=t[n]);return r[mq]=e,r}(e,t);for(var a=2;a<n;a++)o[a]=r[a];return L.createElement.apply(null,o)};oq=gq||(gq={}),aq||(aq=oq.JSX||(oq.JSX={}));var bq=dq((function(e,t){var r=nq([e.styles],void 0,L.useContext(fq)),n=L.useRef();return lq((function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,i=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==i&&(a=!0,i.setAttribute("data-emotion",e),o.hydrate([i])),n.current=[o,a],function(){o.flush()}}),[t]),lq((function(){var e=n.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&WW(t,r.next,!0),o.tags.length){var a=o.tags[o.tags.length-1].nextElementSibling;o.before=a,o.flush()}t.insert("",r,o,!1)}}),[t,r.name]),null}));function wq(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return nq(t)}function Sq(){var e=wq.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var xq=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,$q=lW((function(e){return xq.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),kq=function(e){return"theme"!==e},_q=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?$q:kq},Eq=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},Cq=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return UW(t,r,n),sq((function(){return WW(t,r,n)})),null},Pq=function e(t,r){var n,o,a=t.__emotion_real===t,i=a&&t.__emotion_base||t;void 0!==r&&(n=r.label,o=r.target);var s=Eq(t,r,a),l=s||_q(i),c=!l("as");return function(){var u=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&d.push("label:"+n+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,m=1;m<p;m++)d.push(u[m],f[m])}var h=dq((function(e,t,r){var n=c&&e.as||i,a="",u=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=L.useContext(fq)}"string"==typeof e.className?a=BW(t.registered,u,e.className):null!=e.className&&(a=e.className+" ");var m=nq(d.concat(u),t.registered,f);a+=t.key+"-"+m.name,void 0!==o&&(a+=" "+o);var h=c&&void 0===s?_q(n):l,v={};for(var y in e)c&&"as"===y||h(y)&&(v[y]=e[y]);return v.className=a,r&&(v.ref=r),L.createElement(L.Fragment,null,L.createElement(Cq,{cache:t,serialized:m,isStringTag:"string"==typeof n}),L.createElement(n,v))}));return h.displayName=void 0!==n?n:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,n){return e(t,fU({},r,n,{shouldForwardProp:Eq(h,n,!0)})).apply(void 0,d)},h}}.bind(null);let jq;function Oq(e){const{styles:t,defaultTheme:r={}}=e,n="function"==typeof t?e=>{return t(null==(n=e)||0===Object.keys(n).length?r:e);var n}:t;return LP.jsx(bq,{styles:n})}
33
33
  /**
34
34
  * @mui/styled-engine v5.16.14
35
35
  *
36
36
  * @license MIT
37
37
  * This source code is licensed under the MIT license found in the
38
38
  * LICENSE file in the root directory of this source tree.
39
- */function hK(e,t){return fK(e,t)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){fK[e]=fK(e)})),"object"==typeof document&&(pK=eq({key:"css",prepend:!0}));const vK=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};var yK=Object.freeze({__proto__:null,GlobalStyles:mK,StyledEngineProvider:function(e){const{injectFirst:t,children:r}=e;return t&&pK?kj.jsx(Gq,{value:pK,children:r}):r},ThemeContext:Yq,css:oK,default:hK,internal_processStyles:vK,keyframes:aK});function gK(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function bK(e){if(L.isValidElement(e)||!gK(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=bK(e[r])})),t}function wK(e,t,r={clone:!0}){const n=r.clone?YU({},e):e;return gK(e)&&gK(t)&&Object.keys(t).forEach((o=>{L.isValidElement(t[o])?n[o]=t[o]:gK(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&gK(e[o])?n[o]=wK(e[o],t[o],r):r.clone?n[o]=gK(t[o])?bK(t[o]):t[o]:n[o]=t[o]})),n}var SK=Object.freeze({__proto__:null,default:wK,isPlainObject:gK});const xK=["values","unit","step"],$K=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>YU({},e,{[t.key]:t.val})),{})};function kK(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=JU(e,xK),a=$K(t),i=Object.keys(a);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function c(e,o){const a=i.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==a&&"number"==typeof t[i[a]]?t[i[a]]:o)-n/100}${r})`}return YU({keys:i,values:a,up:s,down:l,between:c,only:function(e){return i.indexOf(e)+1<i.length?c(e,i[i.indexOf(e)+1]):s(e)},not:function(e){const t=i.indexOf(e);return 0===t?s(i[1]):t===i.length-1?l(i[t]):c(e,i[i.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}var _K={borderRadius:4};function EK(e,t){return t?wK(e,t,{clone:!1}):e}const CK={xs:0,sm:600,md:900,lg:1200,xl:1536},PK={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${CK[e]}px)`};function jK(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||PK;return t.reduce(((n,o,a)=>(n[e.up(e.keys[a])]=r(t[a]),n)),{})}if("object"==typeof t){const e=n.breakpoints||PK;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||CK).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function OK(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}function NK(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function RK({values:e,breakpoints:t,base:r}){const n=r||function(e,t){if("object"!=typeof e)return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach(((t,n)=>{n<e.length&&(r[t]=!0)})):n.forEach((t=>{null!=e[t]&&(r[t]=!0)})),r}(e,t),o=Object.keys(n);if(0===o.length)return e;let a;return o.reduce(((t,r,n)=>(Array.isArray(e)?(t[r]=null!=e[n]?e[n]:e[a],a=n):"object"==typeof e?(t[r]=null!=e[r]?e[r]:e[a],a=r):t[r]=e,t)),{})}function AK(e){if("string"!=typeof e)throw new Error(HU(7));return e.charAt(0).toUpperCase()+e.slice(1)}var TK=Object.freeze({__proto__:null,default:AK});function IK(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function MK(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:IK(e,r)||n,t&&(o=t(o,n,e)),o}function FK(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=e=>{if(null==e[t])return null;const a=e[t],i=IK(e.theme,n)||{};return jK(e,a,(e=>{let n=MK(i,o,e);return e===n&&"string"==typeof e&&(n=MK(i,o,`${t}${"default"===e?"":AK(e)}`,e)),!1===r?n:{[r]:n}}))};return a.propTypes={},a.filterProps=[t],a}const DK={m:"margin",p:"padding"},zK={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},LK={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},VK=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!LK[e])return[e];e=LK[e]}const[t,r]=e.split(""),n=DK[t],o=zK[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),BK=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],UK=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function WK(e,t,r,n){var o;const a=null!=(o=IK(e,t,!1))?o:r;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>{}}function qK(e){return WK(e,"spacing",8)}function KK(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function HK(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=KK(t,r),e)),{})}(VK(r),n);return jK(e,e[r],o)}function GK(e,t){const r=qK(e.theme);return Object.keys(e).map((n=>HK(e,t,n,r))).reduce(EK,{})}function QK(e){return GK(e,BK)}function YK(e){return GK(e,UK)}function JK(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?EK(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function XK(e){return"number"!=typeof e?e:`${e}px solid`}function ZK(e,t){return FK({prop:e,themeKey:"borders",transform:t})}QK.propTypes={},QK.filterProps=BK,YK.propTypes={},YK.filterProps=UK;const eH=ZK("border",XK),tH=ZK("borderTop",XK),rH=ZK("borderRight",XK),nH=ZK("borderBottom",XK),oH=ZK("borderLeft",XK),aH=ZK("borderColor"),iH=ZK("borderTopColor"),sH=ZK("borderRightColor"),lH=ZK("borderBottomColor"),cH=ZK("borderLeftColor"),uH=ZK("outline",XK),dH=ZK("outlineColor"),fH=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=WK(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:KK(t,e)});return jK(e,e.borderRadius,r)}return null};fH.propTypes={},fH.filterProps=["borderRadius"],JK(eH,tH,rH,nH,oH,aH,iH,sH,lH,cH,fH,uH,dH);const pH=e=>{if(void 0!==e.gap&&null!==e.gap){const t=WK(e.theme,"spacing",8),r=e=>({gap:KK(t,e)});return jK(e,e.gap,r)}return null};pH.propTypes={},pH.filterProps=["gap"];const mH=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=WK(e.theme,"spacing",8),r=e=>({columnGap:KK(t,e)});return jK(e,e.columnGap,r)}return null};mH.propTypes={},mH.filterProps=["columnGap"];const hH=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=WK(e.theme,"spacing",8),r=e=>({rowGap:KK(t,e)});return jK(e,e.rowGap,r)}return null};hH.propTypes={},hH.filterProps=["rowGap"];function vH(e,t){return"grey"===t?t:e}JK(pH,mH,hH,FK({prop:"gridColumn"}),FK({prop:"gridRow"}),FK({prop:"gridAutoFlow"}),FK({prop:"gridAutoColumns"}),FK({prop:"gridAutoRows"}),FK({prop:"gridTemplateColumns"}),FK({prop:"gridTemplateRows"}),FK({prop:"gridTemplateAreas"}),FK({prop:"gridArea"}));function yH(e){return e<=1&&0!==e?100*e+"%":e}JK(FK({prop:"color",themeKey:"palette",transform:vH}),FK({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:vH}),FK({prop:"backgroundColor",themeKey:"palette",transform:vH}));const gH=FK({prop:"width",transform:yH}),bH=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||CK[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:yH(t)}};return jK(e,e.maxWidth,t)}return null};bH.filterProps=["maxWidth"];const wH=FK({prop:"minWidth",transform:yH}),SH=FK({prop:"height",transform:yH}),xH=FK({prop:"maxHeight",transform:yH}),$H=FK({prop:"minHeight",transform:yH});FK({prop:"size",cssProperty:"width",transform:yH}),FK({prop:"size",cssProperty:"height",transform:yH});JK(gH,bH,wH,SH,xH,$H,FK({prop:"boxSizing"}));var kH={border:{themeKey:"borders",transform:XK},borderTop:{themeKey:"borders",transform:XK},borderRight:{themeKey:"borders",transform:XK},borderBottom:{themeKey:"borders",transform:XK},borderLeft:{themeKey:"borders",transform:XK},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:XK},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:fH},color:{themeKey:"palette",transform:vH},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:vH},backgroundColor:{themeKey:"palette",transform:vH},p:{style:YK},pt:{style:YK},pr:{style:YK},pb:{style:YK},pl:{style:YK},px:{style:YK},py:{style:YK},padding:{style:YK},paddingTop:{style:YK},paddingRight:{style:YK},paddingBottom:{style:YK},paddingLeft:{style:YK},paddingX:{style:YK},paddingY:{style:YK},paddingInline:{style:YK},paddingInlineStart:{style:YK},paddingInlineEnd:{style:YK},paddingBlock:{style:YK},paddingBlockStart:{style:YK},paddingBlockEnd:{style:YK},m:{style:QK},mt:{style:QK},mr:{style:QK},mb:{style:QK},ml:{style:QK},mx:{style:QK},my:{style:QK},margin:{style:QK},marginTop:{style:QK},marginRight:{style:QK},marginBottom:{style:QK},marginLeft:{style:QK},marginX:{style:QK},marginY:{style:QK},marginInline:{style:QK},marginInlineStart:{style:QK},marginInlineEnd:{style:QK},marginBlock:{style:QK},marginBlockStart:{style:QK},marginBlockEnd:{style:QK},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:pH},rowGap:{style:hH},columnGap:{style:mH},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:yH},maxWidth:{style:bH},minWidth:{transform:yH},height:{transform:yH},maxHeight:{transform:yH},minHeight:{transform:yH},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function _H(){function e(e,t,r,n){const o={[e]:t,theme:r},a=n[e];if(!a)return{[e]:t};const{cssProperty:i=e,themeKey:s,transform:l,style:c}=a;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=IK(r,s)||{};if(c)return c(o);return jK(o,t,(t=>{let r=MK(u,l,t);return t===r&&"string"==typeof t&&(r=MK(u,l,`${e}${"default"===t?"":AK(t)}`,t)),!1===i?r:{[i]:r}}))}return function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=null!=(n=a.unstable_sxConfig)?n:kH;function s(r){let n=r;if("function"==typeof r)n=r(a);else if("object"!=typeof r)return r;if(!n)return null;const o=OK(a.breakpoints),s=Object.keys(o);let l=o;return Object.keys(n).forEach((r=>{const o=(s=n[r],c=a,"function"==typeof s?s(c):s);var s,c;if(null!=o)if("object"==typeof o)if(i[r])l=EK(l,e(r,o,a,i));else{const e=jK({theme:a},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?l=EK(l,e):l[r]=t({sx:o,theme:a})}else l=EK(l,e(r,o,a,i))})),NK(s,l)}return Array.isArray(o)?o.map(s):s(o)}}const EH=_H();EH.filterProps=["sx"];var CH=EH;function PH(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){return{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return r.palette.mode===e?t:{}}const jH=["breakpoints","palette","spacing","shape"];function OH(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=JU(e,jH),s=kK(r),l=function(e=8){if(e.mui)return e;const t=qK({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let c=wK({breakpoints:s,direction:"ltr",components:{},palette:YU({mode:"light"},n),spacing:l,shape:YU({},_K,a)},i);return c.applyStyles=PH,c=t.reduce(((e,t)=>wK(e,t)),c),c.unstable_sxConfig=YU({},kH,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return CH({sx:e,theme:this})},c}var NH=Object.freeze({__proto__:null,default:OH,private_createBreakpoints:kK,unstable_applyStyles:PH});function RH(e=null){const t=L.useContext(Yq);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const AH=OH();function TH(e=AH){return RH(e)}function IH({styles:e,themeId:t,defaultTheme:r={}}){const n=TH(r),o="function"==typeof e?e(t&&n[t]||n):e;return kj.jsx(mK,{styles:o})}const MH=["sx"],FH=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:kH;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function DH(e){const{sx:t}=e,r=JU(e,MH),{systemProps:n,otherProps:o}=FH(r);let a;return a=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return gK(r)?YU({},n,r):n}:YU({},n,t),YU({},o,{sx:a})}var zH=Object.freeze({__proto__:null,default:CH,extendSxProp:DH,unstable_createStyleFunctionSx:_H,unstable_defaultSxConfig:kH});const LH=e=>e;var VH=(()=>{let e=LH;return{configure(t){e=t},generate:t=>e(t),reset(){e=LH}}})();function BH(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=BH(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function UH(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=BH(e))&&(n&&(n+=" "),n+=t);return n}const WH=["className","component"];const qH={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function KH(e,t,r="Mui"){const n=qH[t];return n?`${r}-${n}`:`${VH.generate(e)}-${t}`}function HH(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=KH(e,t,r)})),n}var GH={exports:{}},QH={},YH=Symbol.for("react.transitional.element"),JH=Symbol.for("react.portal"),XH=Symbol.for("react.fragment"),ZH=Symbol.for("react.strict_mode"),eG=Symbol.for("react.profiler"),tG=Symbol.for("react.consumer"),rG=Symbol.for("react.context"),nG=Symbol.for("react.forward_ref"),oG=Symbol.for("react.suspense"),aG=Symbol.for("react.suspense_list"),iG=Symbol.for("react.memo"),sG=Symbol.for("react.lazy"),lG=Symbol.for("react.offscreen"),cG=Symbol.for("react.client.reference");function uG(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case YH:switch(e=e.type){case XH:case eG:case ZH:case oG:case aG:return e;default:switch(e=e&&e.$$typeof){case rG:case nG:case sG:case iG:case tG:return e;default:return t}}case JH:return t}}}QH.ContextConsumer=tG,QH.ContextProvider=rG,QH.Element=YH,QH.ForwardRef=nG,QH.Fragment=XH,QH.Lazy=sG,QH.Memo=iG,QH.Portal=JH,QH.Profiler=eG,QH.StrictMode=ZH,QH.Suspense=oG,QH.SuspenseList=aG,QH.isContextConsumer=function(e){return uG(e)===tG},QH.isContextProvider=function(e){return uG(e)===rG},QH.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===YH},QH.isForwardRef=function(e){return uG(e)===nG},QH.isFragment=function(e){return uG(e)===XH},QH.isLazy=function(e){return uG(e)===sG},QH.isMemo=function(e){return uG(e)===iG},QH.isPortal=function(e){return uG(e)===JH},QH.isProfiler=function(e){return uG(e)===eG},QH.isStrictMode=function(e){return uG(e)===ZH},QH.isSuspense=function(e){return uG(e)===oG},QH.isSuspenseList=function(e){return uG(e)===aG},QH.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===XH||e===eG||e===ZH||e===oG||e===aG||e===lG||"object"==typeof e&&null!==e&&(e.$$typeof===sG||e.$$typeof===iG||e.$$typeof===rG||e.$$typeof===tG||e.$$typeof===nG||e.$$typeof===cG||void 0!==e.getModuleId)},QH.typeOf=uG,GH.exports=QH;var dG=GH.exports;const fG=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function pG(e){const t=`${e}`.match(fG);return t&&t[1]||""}function mG(e,t=""){return e.displayName||e.name||pG(e)||t}function hG(e,t,r){const n=mG(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var vG=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return mG(e,"Component");if("object"==typeof e)switch(e.$$typeof){case dG.ForwardRef:return hG(e,e.render,"ForwardRef");case dG.Memo:return hG(e,e.type,"memo");default:return}}},getFunctionName:pG});const yG=["ownerState"],gG=["variants"],bG=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function wG(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const SG=OH(),xG=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function $G({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function kG(e){return e?(t,r)=>r[e]:null}function _G(e,t){let{ownerState:r}=t,n=JU(t,yG);const o="function"==typeof e?e(YU({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>_G(e,YU({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=JU(o,gG);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(YU({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(YU({ownerState:r},n,r)):e.style))})),t}return o}const EG=function(e={}){const{themeId:t,defaultTheme:r=SG,rootShouldForwardProp:n=wG,slotShouldForwardProp:o=wG}=e,a=e=>CH(YU({},e,{theme:$G(YU({},e,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{vK(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=kG(xG(l))}=i,f=JU(i,bG),p=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,m=u||!1;let h=wG;"Root"===l||"root"===l?h=n:l?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const v=hK(e,YU({shouldForwardProp:h,label:undefined},f)),y=e=>"function"==typeof e&&e.__emotion_real!==e||gK(e)?n=>_G(e,YU({},n,{theme:$G({theme:n.theme,defaultTheme:r,themeId:t})})):e,g=(n,...o)=>{let i=y(n);const l=o?o.map(y):[];s&&d&&l.push((e=>{const n=$G(YU({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[s]||!n.components[s].styleOverrides)return null;const o=n.components[s].styleOverrides,a={};return Object.entries(o).forEach((([t,r])=>{a[t]=_G(r,YU({},e,{theme:n}))})),d(e,a)})),s&&!p&&l.push((e=>{var n;const o=$G(YU({},e,{defaultTheme:r,themeId:t}));return _G({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},YU({},e,{theme:o}))})),m||l.push(a);const c=l.length-o.length;if(Array.isArray(n)&&c>0){const e=new Array(c).fill("");i=[...n,...e],i.raw=[...n.raw,...e]}const u=v(i,...l);return e.muiName&&(u.muiName=e.muiName),u};return v.withConfig&&(g.withConfig=v.withConfig),g}}();var CG=EG;function PG(e,t){const r=YU({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=YU({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},a&&Object.keys(a)?o&&Object.keys(o)?(r[n]=YU({},a),Object.keys(o).forEach((e=>{r[n][e]=PG(o[e],a[e])}))):r[n]=a:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function jG({props:e,name:t,defaultTheme:r,themeId:n}){let o=TH(r);n&&(o=o[n]||o);const a=function(e){const{theme:t,name:r,props:n}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?PG(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return a}var OG="undefined"!=typeof window?L.useLayoutEffect:L.useEffect;function NG(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var RG=Object.freeze({__proto__:null,default:NG});function AG(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function TG(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function IG(e,t){var r,n;return L.isValidElement(e)&&-1!==t.indexOf(null!=(r=e.type.muiName)?r:null==(n=e.type)||null==(n=n._payload)||null==(n=n.value)?void 0:n.muiName)}function MG(e){return e&&e.ownerDocument||document}function FG(e){return MG(e).defaultView||window}function DG(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let zG=0;const LG=B["useId".toString()];function VG(e){if(void 0!==LG){const t=LG();return null!=e?e:t}return function(e){const[t,r]=L.useState(e),n=e||t;return L.useEffect((()=>{null==t&&(zG+=1,r(`mui-${zG}`))}),[t]),n}(e)}function BG({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=L.useRef(void 0!==e),[a,i]=L.useState(t);return[o?e:a,L.useCallback((e=>{o||i(e)}),[])]}function UG(e){const t=L.useRef(e);return OG((()=>{t.current=e})),L.useRef(((...e)=>(0,t.current)(...e))).current}function WG(...e){return L.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{DG(e,t)}))}),e)}const qG={};const KG=[];class HG{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new HG}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function GG(){const e=function(e,t){const r=L.useRef(qG);return r.current===qG&&(r.current=e(t)),r}(HG.create).current;var t;return t=e.disposeEffect,L.useEffect(t,KG),e}let QG=!0,YG=!1;const JG=new HG,XG={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function ZG(e){e.metaKey||e.altKey||e.ctrlKey||(QG=!0)}function eQ(){QG=!1}function tQ(){"hidden"===this.visibilityState&&YG&&(QG=!0)}function rQ(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return QG||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!XG[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function nQ(){const e=L.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",ZG,!0),t.addEventListener("mousedown",eQ,!0),t.addEventListener("pointerdown",eQ,!0),t.addEventListener("touchstart",eQ,!0),t.addEventListener("visibilitychange",tQ,!0))}),[]),t=L.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!rQ(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(YG=!0,JG.start(100,(()=>{YG=!1})),t.current=!1,!0)},ref:e}}function oQ(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}var aQ={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function iQ(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}function sQ(e){return"string"==typeof e}function lQ(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function cQ(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}const uQ=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function dQ(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=JU(e,uQ),s=a?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:l,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const e=UH(null==r?void 0:r.className,a,null==o?void 0:o.className,null==n?void 0:n.className),t=YU({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),i=YU({},r,o,n);return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=lQ(YU({},o,n)),s=cQ(n),l=cQ(o),c=t(i),u=UH(null==c?void 0:c.className,null==r?void 0:r.className,a,null==o?void 0:o.className,null==n?void 0:n.className),d=YU({},null==c?void 0:c.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),f=YU({},c,r,l,s);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}(YU({},i,{externalSlotProps:s})),u=function(e,t,r){return void 0===e||sQ(e)?t:YU({},t,{ownerState:YU({},t.ownerState,r)})}(r,YU({},l,{ref:WG(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return u}function fQ(e){var t;return parseInt(L.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}var pQ=L.createContext(null);function mQ(){return L.useContext(pQ)}var hQ="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function vQ(e){const{children:t,theme:r}=e,n=mQ(),o=L.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return YU({},e,t)}(n,r);return null!=e&&(e[hQ]=null!==n),e}),[r,n]);return kj.jsx(pQ.Provider,{value:o,children:t})}const yQ=["value"],gQ=L.createContext();function bQ(e){let{value:t}=e,r=JU(e,yQ);return kj.jsx(gQ.Provider,YU({value:null==t||t},r))}const wQ=()=>{const e=L.useContext(gQ);return null!=e&&e},SQ=L.createContext(void 0);function xQ({value:e,children:t}){return kj.jsx(SQ.Provider,{value:e,children:t})}function $Q({props:e,name:t}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?PG(o.defaultProps,n):o.styleOverrides||o.variants?n:PG(o,n)}({props:e,name:t,theme:{components:L.useContext(SQ)}})}const kQ={};function _Q(e,t,r,n=!1){return L.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const a=r(o),i=e?YU({},t,{[e]:a}):a;return n?()=>i:i}return YU({},t,e?{[e]:r}:r)}),[e,t,r,n])}function EQ(e){const{children:t,theme:r,themeId:n}=e,o=RH(kQ),a=mQ()||kQ,i=_Q(n,o,r),s=_Q(n,a,r,!0),l="rtl"===i.direction;return kj.jsx(vQ,{theme:s,children:kj.jsx(Yq.Provider,{value:i,children:kj.jsx(bQ,{value:l,children:kj.jsx(xQ,{value:null==i?void 0:i.components,children:t})})})})}const CQ=["component","direction","spacing","divider","children","className","useFlexGap"],PQ=OH(),jQ=CG("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function OQ(e){return jG({props:e,name:"MuiStack",defaultTheme:PQ})}function NQ(e,t){const r=L.Children.toArray(e).filter(Boolean);return r.reduce(((e,n,o)=>(e.push(n),o<r.length-1&&e.push(L.cloneElement(t,{key:`separator-${o}`})),e)),[])}const RQ=({ownerState:e,theme:t})=>{let r=YU({display:"flex",flexDirection:"column"},jK({theme:t},RK({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const n=qK(t),o=Object.keys(t.breakpoints.values).reduce(((t,r)=>(("object"==typeof e.spacing&&null!=e.spacing[r]||"object"==typeof e.direction&&null!=e.direction[r])&&(t[r]=!0),t)),{}),a=RK({values:e.direction,base:o}),i=RK({values:e.spacing,base:o});"object"==typeof a&&Object.keys(a).forEach(((e,t,r)=>{if(!a[e]){const n=t>0?a[r[t-1]]:"column";a[e]=n}}));r=wK(r,jK({theme:t},i,((t,r)=>{return e.useFlexGap?{gap:KK(n,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=r?a[r]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:KK(n,t)}};var o})))}return r=function(e,...t){const r=OK(e),n=[r,...t].reduce(((e,t)=>wK(e,t)),{});return NK(Object.keys(r),n)}(t.breakpoints,r),r};var AQ,TQ={},IQ={exports:{}};(AQ=IQ).exports=function(e){return e&&e.__esModule?e:{default:e}},AQ.exports.__esModule=!0,AQ.exports.default=AQ.exports;var MQ=IQ.exports,FQ=n(GU),DQ=n(RG),zQ=MQ;Object.defineProperty(TQ,"__esModule",{value:!0});var LQ=TQ.alpha=ZQ;TQ.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),a=GQ(e),i=GQ(t),s=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return YQ({type:"rgb",values:s})},TQ.colorChannel=void 0;var VQ=TQ.darken=eY;TQ.decomposeColor=GQ,TQ.emphasize=rY;var BQ=TQ.getContrastRatio=function(e,t){const r=XQ(e),n=XQ(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};TQ.getLuminance=XQ,TQ.hexToRgb=HQ,TQ.hslToRgb=JQ;var UQ=TQ.lighten=tY;TQ.private_safeAlpha=function(e,t,r){try{return ZQ(e,t)}catch(t){return e}},TQ.private_safeColorChannel=void 0,TQ.private_safeDarken=function(e,t,r){try{return eY(e,t)}catch(t){return e}},TQ.private_safeEmphasize=function(e,t,r){try{return rY(e,t)}catch(t){return e}},TQ.private_safeLighten=function(e,t,r){try{return tY(e,t)}catch(t){return e}},TQ.recomposeColor=YQ,TQ.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=GQ(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var WQ=zQ(FQ),qQ=zQ(DQ);function KQ(e,t=0,r=1){return(0,qQ.default)(e,t,r)}function HQ(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function GQ(e){if(e.type)return e;if("#"===e.charAt(0))return GQ(HQ(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,WQ.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,WQ.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const QQ=e=>{const t=GQ(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};TQ.colorChannel=QQ;function YQ(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function JQ(e){e=GQ(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(e,t=(e+r/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),YQ({type:s,values:l})}function XQ(e){let t="hsl"===(e=GQ(e)).type||"hsla"===e.type?GQ(JQ(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ZQ(e,t){return e=GQ(e),t=KQ(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,YQ(e)}function eY(e,t){if(e=GQ(e),t=KQ(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return YQ(e)}function tY(e,t){if(e=GQ(e),t=KQ(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return YQ(e)}function rY(e,t=.15){return XQ(e)>.5?eY(e,t):tY(e,t)}TQ.private_safeColorChannel=(e,t)=>{try{return QQ(e)}catch(t){return e}};const nY=["mode","contrastThreshold","tonalOffset"],oY={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:zU.white,default:zU.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},aY={text:{primary:zU.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:zU.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function iY(e,t,r,n){const o=n.light||n,a=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=UQ(e.main,o):"dark"===t&&(e.dark=VQ(e.main,a)))}function sY(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=JU(e,nY),a=e.primary||function(e="light"){return"dark"===e?{main:BU[200],light:BU[50],dark:BU[400]}:{main:BU[700],light:BU[400],dark:BU[800]}}(t),i=e.secondary||function(e="light"){return"dark"===e?{main:VU[200],light:VU[50],dark:VU[400]}:{main:VU[500],light:VU[300],dark:VU[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:LU[500],light:LU[300],dark:LU[700]}:{main:LU[700],light:LU[400],dark:LU[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:UU[400],light:UU[300],dark:UU[700]}:{main:UU[700],light:UU[500],dark:UU[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:WU[400],light:WU[300],dark:WU[700]}:{main:WU[800],light:WU[500],dark:WU[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:qU[400],light:qU[300],dark:qU[700]}:{main:"#ed6c02",light:qU[500],dark:qU[900]}}(t);function d(e){return BQ(e,aY.text.primary)>=r?aY.text.primary:oY.text.primary}const f=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:a=700})=>{if(!(e=YU({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(HU(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(HU(12,t?` (${t})`:"",JSON.stringify(e.main)));return iY(e,"light",o,n),iY(e,"dark",a,n),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:aY,light:oY};return wK(YU({common:YU({},zU),mode:t,primary:f({color:a,name:"primary"}),secondary:f({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:KU,contrastThreshold:r,getContrastText:d,augmentColor:f,tonalOffset:n},p[t]),o)}const lY=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const cY={textTransform:"uppercase"},uY='"Roboto", "Helvetica", "Arial", sans-serif';function dY(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=uY,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=r,f=JU(r,lY),p=o/14,m=d||(e=>e/c*p+"rem"),h=(e,t,r,o,a)=>{return YU({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===uY?{letterSpacing:(i=o/t,Math.round(1e5*i)/1e5)+"em"}:{},a,u);var i},v={h1:h(a,96,1.167,-1.5),h2:h(a,60,1.2,-.5),h3:h(i,48,1.167,0),h4:h(i,34,1.235,.25),h5:h(i,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(i,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(i,16,1.5,.15),body2:h(i,14,1.43,.15),button:h(s,14,1.75,.4,cY),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,cY),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return wK(YU({htmlFontSize:c,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l},v),f,{clone:!1})}function fY(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var pY=["none",fY(0,2,1,-1,0,1,1,0,0,1,3,0),fY(0,3,1,-2,0,2,2,0,0,1,5,0),fY(0,3,3,-2,0,3,4,0,0,1,8,0),fY(0,2,4,-1,0,4,5,0,0,1,10,0),fY(0,3,5,-1,0,5,8,0,0,1,14,0),fY(0,3,5,-1,0,6,10,0,0,1,18,0),fY(0,4,5,-2,0,7,10,1,0,2,16,1),fY(0,5,5,-3,0,8,10,1,0,3,14,2),fY(0,5,6,-3,0,9,12,1,0,3,16,2),fY(0,6,6,-3,0,10,14,1,0,4,18,3),fY(0,6,7,-4,0,11,15,1,0,4,20,3),fY(0,7,8,-4,0,12,17,2,0,5,22,4),fY(0,7,8,-4,0,13,19,2,0,5,24,4),fY(0,7,9,-4,0,14,21,2,0,5,26,4),fY(0,8,9,-5,0,15,22,2,0,6,28,5),fY(0,8,10,-5,0,16,24,2,0,6,30,5),fY(0,8,11,-5,0,17,26,2,0,6,32,5),fY(0,9,11,-5,0,18,28,2,0,7,34,6),fY(0,9,12,-6,0,19,29,2,0,7,36,6),fY(0,10,13,-6,0,20,31,3,0,8,38,7),fY(0,10,13,-6,0,21,33,3,0,8,40,7),fY(0,10,14,-6,0,22,35,3,0,8,42,7),fY(0,11,14,-7,0,23,36,3,0,9,44,8),fY(0,11,15,-7,0,24,38,3,0,9,46,8)];const mY=["duration","easing","delay"],hY={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},vY={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function yY(e){return`${Math.round(e)}ms`}function gY(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function bY(e){const t=YU({},hY,e.easing),r=YU({},vY,e.duration);return YU({getAutoHeightDuration:gY,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:a=t.easeInOut,delay:i=0}=n;return JU(n,mY),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:yY(o)} ${a} ${"string"==typeof i?i:yY(i)}`)).join(",")}},e,{easing:t,duration:r})}var wY={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const SY=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function xY(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=JU(e,SY);if(e.vars)throw new Error(HU(18));const s=sY(n),l=OH(e);let c=wK(l,{mixins:(u=l.breakpoints,d=r,YU({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:pY.slice(),typography:dY(s,a),transitions:bY(o),zIndex:YU({},wY)});var u,d;return c=wK(c,i),c=t.reduce(((e,t)=>wK(e,t)),c),c.unstable_sxConfig=YU({},kH,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return CH({sx:e,theme:this})},c}var $Y=xY();function kY(){const e=TH($Y);return e[QU]||e}var _Y,EY={},CY={exports:{}};var PY,jY={exports:{}};var OY=n(yK),NY=n(SK),RY=n(TK),AY=n(vG),TY=n(NH),IY=n(zH),MY=MQ;Object.defineProperty(EY,"__esModule",{value:!0});var FY=EY.default=function(e={}){const{themeId:t,defaultTheme:r=QY,rootShouldForwardProp:n=GY,slotShouldForwardProp:o=GY}=e,a=e=>(0,UY.default)((0,DY.default)({},e,{theme:JY((0,DY.default)({},e,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{(0,LY.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=XY(YY(l))}=i,f=(0,zY.default)(i,KY),p=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,m=u||!1;let h=GY;"Root"===l||"root"===l?h=n:l?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const v=(0,LY.default)(e,(0,DY.default)({shouldForwardProp:h,label:undefined},f)),y=e=>"function"==typeof e&&e.__emotion_real!==e||(0,VY.isPlainObject)(e)?n=>ZY(e,(0,DY.default)({},n,{theme:JY({theme:n.theme,defaultTheme:r,themeId:t})})):e,g=(n,...o)=>{let i=y(n);const l=o?o.map(y):[];s&&d&&l.push((e=>{const n=JY((0,DY.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[s]||!n.components[s].styleOverrides)return null;const o=n.components[s].styleOverrides,a={};return Object.entries(o).forEach((([t,r])=>{a[t]=ZY(r,(0,DY.default)({},e,{theme:n}))})),d(e,a)})),s&&!p&&l.push((e=>{var n;const o=JY((0,DY.default)({},e,{defaultTheme:r,themeId:t}));return ZY({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,DY.default)({},e,{theme:o}))})),m||l.push(a);const c=l.length-o.length;if(Array.isArray(n)&&c>0){const e=new Array(c).fill("");i=[...n,...e],i.raw=[...n.raw,...e]}const u=v(i,...l);return e.muiName&&(u.muiName=e.muiName),u};return v.withConfig&&(g.withConfig=v.withConfig),g}};EY.shouldForwardProp=GY,EY.systemDefaultTheme=void 0;var DY=MY((_Y||(_Y=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(CY)),CY.exports)),zY=MY((PY||(PY=1,function(e){e.exports=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o},e.exports.__esModule=!0,e.exports.default=e.exports}(jY)),jY.exports)),LY=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=HY(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(OY),VY=NY;MY(RY),MY(AY);var BY=MY(TY),UY=MY(IY);const WY=["ownerState"],qY=["variants"],KY=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function HY(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(HY=function(e){return e?r:t})(e)}function GY(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const QY=EY.systemDefaultTheme=(0,BY.default)(),YY=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function JY({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function XY(e){return e?(t,r)=>r[e]:null}function ZY(e,t){let{ownerState:r}=t,n=(0,zY.default)(t,WY);const o="function"==typeof e?e((0,DY.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>ZY(e,(0,DY.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,zY.default)(o,qY);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,DY.default)({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,DY.default)({ownerState:r},n,r)):e.style))})),t}return o}function eJ(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}var tJ=e=>eJ(e)&&"classes"!==e;var rJ=FY({themeId:QU,defaultTheme:$Y,rootShouldForwardProp:tJ});const nJ=["theme"];function oJ(e){let{theme:t}=e,r=JU(e,nJ);const n=t[QU];return kj.jsx(EQ,YU({},r,{themeId:n?QU:void 0,theme:n||t}))}var aJ=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function iJ(e){return $Q(e)}function sJ(e){return KH("MuiSvgIcon",e)}HH("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const lJ=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],cJ=rJ("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${AK(r.color)}`],t[`fontSize${AK(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,a,i,s,l,c,u,d,f,p,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(i=a.pxToRem)?void 0:i.call(a,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(f=(e.vars||e).palette)||null==(f=f[t.color])?void 0:f.main)?d:{action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),uJ=L.forwardRef((function(e,t){const r=iJ({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:a="inherit",component:i="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=r,f=JU(r,lJ),p=L.isValidElement(n)&&"svg"===n.type,m=YU({},r,{color:a,component:i,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:p}),h={};c||(h.viewBox=d);const v=(e=>{const{color:t,fontSize:r,classes:n}=e;return iQ({root:["root","inherit"!==t&&`color${AK(t)}`,`fontSize${AK(r)}`]},sJ,n)})(m);return kj.jsxs(cJ,YU({as:i,className:UH(v.root,o),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},h,f,p&&n.props,{ownerState:m,children:[p?n.props.children:n,u?kj.jsx("title",{children:u}):null]}))}));uJ.muiName="SvgIcon";var dJ=uJ;function fJ(e,t){function r(r,n){return kj.jsx(dJ,YU({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=dJ.muiName,L.memo(L.forwardRef(r))}const pJ={configure:e=>{VH.configure(e)}};var mJ=Object.freeze({__proto__:null,capitalize:AK,createChainedFunction:AG,createSvgIcon:fJ,debounce:TG,deprecatedPropType:function(e,t){return()=>null},isMuiElement:IG,ownerDocument:MG,ownerWindow:FG,requirePropFactory:function(e,t){return()=>null},setRef:DG,unstable_ClassNameGenerator:pJ,unstable_useEnhancedEffect:OG,unstable_useId:VG,unsupportedProp:function(e,t,r,n,o){return null},useControlled:BG,useEventCallback:UG,useForkRef:WG,useIsFocusVisible:nQ});function hJ(e,t){return hJ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hJ(e,t)}function vJ(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hJ(e,t)}var yJ=!1,gJ=V.createContext(null),bJ="unmounted",wJ="exited",SJ="entering",xJ="entered",$J="exiting",kJ=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,a=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?a?(o=wJ,n.appearStatus=SJ):o=xJ:o=t.unmountOnExit||t.mountOnEnter?bJ:wJ,n.state={status:o},n.nextCallback=null,n}vJ(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===bJ?{status:wJ}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==SJ&&r!==xJ&&(t=SJ):r!==SJ&&r!==xJ||(t=$J)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===SJ){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:Xu.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===wJ&&this.setState({status:bJ})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[Xu.findDOMNode(this),n],a=o[0],i=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||yJ?this.safeSetState({status:xJ},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,i),this.safeSetState({status:SJ},(function(){t.props.onEntering(a,i),t.onTransitionEnd(l,(function(){t.safeSetState({status:xJ},(function(){t.props.onEntered(a,i)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:Xu.findDOMNode(this);t&&!yJ?(this.props.onExit(n),this.safeSetState({status:$J},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:wJ},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:wJ},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:Xu.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===bJ)return null;var t=this.props,r=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var n=JU(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return V.createElement(gJ.Provider,{value:null},"function"==typeof r?r(e,n):V.cloneElement(V.Children.only(r),n))},t}(V.Component);function _J(){}kJ.contextType=gJ,kJ.propTypes={},kJ.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_J,onEntering:_J,onEntered:_J,onExit:_J,onExiting:_J,onExited:_J},kJ.UNMOUNTED=bJ,kJ.EXITED=wJ,kJ.ENTERING=SJ,kJ.ENTERED=xJ,kJ.EXITING=$J;var EJ=kJ;function CJ(e,t){var r=Object.create(null);return e&&L.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&L.isValidElement(e)?t(e):e}(e)})),r}function PJ(e,t,r){return null!=r[t]?r[t]:e.props[t]}function jJ(e,t,r){var n=CJ(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var c=o[l][n];s[o[l][n]]=r(c)}s[l]=r(l)}for(n=0;n<a.length;n++)s[a[n]]=r(a[n]);return s}(t,n);return Object.keys(o).forEach((function(a){var i=o[a];if(L.isValidElement(i)){var s=a in t,l=a in n,c=t[a],u=L.isValidElement(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&L.isValidElement(c)&&(o[a]=L.cloneElement(i,{onExited:r.bind(null,i),in:c.props.in,exit:PJ(i,"exit",e),enter:PJ(i,"enter",e)})):o[a]=L.cloneElement(i,{in:!1}):o[a]=L.cloneElement(i,{onExited:r.bind(null,i),in:!0,exit:PJ(i,"exit",e),enter:PJ(i,"enter",e)})}})),o}var OJ=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},NJ=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}vJ(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,a=t.handleExited;return{children:t.firstRender?(r=e,n=a,CJ(r.children,(function(e){return L.cloneElement(e,{onExited:n.bind(null,e),in:!0,appear:PJ(e,"appear",r),enter:PJ(e,"enter",r),exit:PJ(e,"exit",r)})}))):jJ(e,o,a),firstRender:!1}},r.handleExited=function(e,t){var r=CJ(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=YU({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=JU(e,["component","childFactory"]),o=this.state.contextValue,a=OJ(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?V.createElement(gJ.Provider,{value:o},a):V.createElement(gJ.Provider,{value:o},V.createElement(t,n,a))},t}(V.Component);NJ.propTypes={},NJ.defaultProps={component:"div",childFactory:function(e){return e}};var RJ=NJ;const AJ=e=>e.scrollTop;function TJ(e,t){var r,n;const{timeout:o,easing:a,style:i={}}=e;return{duration:null!=(r=i.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=i.transitionTimingFunction)?n:"object"==typeof a?a[t.mode]:a,delay:i.transitionDelay}}function IJ(e){return KH("MuiPaper",e)}HH("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const MJ=["className","component","elevation","square","variant"],FJ=rJ("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return YU({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&YU({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${LQ("#fff",aJ(t.elevation))}, ${LQ("#fff",aJ(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),DJ=L.forwardRef((function(e,t){const r=iJ({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:a=1,square:i=!1,variant:s="elevation"}=r,l=JU(r,MJ),c=YU({},r,{component:o,elevation:a,square:i,variant:s}),u=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return iQ({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},IJ,o)})(c);return kj.jsx(FJ,YU({as:o,ownerState:c,className:UH(u.root,n),ref:t},l))}));var zJ=DJ;var LJ=HH("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const VJ=["center","classes","className"];let BJ,UJ,WJ,qJ,KJ=e=>e;const HJ=aK(BJ||(BJ=KJ`
39
+ */function Nq(e,t){return Pq(e,t)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Pq[e]=Pq(e)})),"object"==typeof document&&(jq=vW({key:"css",prepend:!0}));const Rq=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};var Tq=Object.freeze({__proto__:null,GlobalStyles:Oq,StyledEngineProvider:function(e){const{injectFirst:t,children:r}=e;return t&&jq?LP.jsx(uq,{value:jq,children:r}):r},ThemeContext:fq,css:wq,default:Nq,internal_processStyles:Rq,keyframes:Sq});function Aq(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Iq(e){if(L.isValidElement(e)||!Aq(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Iq(e[r])})),t}function Mq(e,t,r={clone:!0}){const n=r.clone?fU({},e):e;return Aq(e)&&Aq(t)&&Object.keys(t).forEach((o=>{L.isValidElement(t[o])?n[o]=t[o]:Aq(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Aq(e[o])?n[o]=Mq(e[o],t[o],r):r.clone?n[o]=Aq(t[o])?Iq(t[o]):t[o]:n[o]=t[o]})),n}var Fq=Object.freeze({__proto__:null,default:Mq,isPlainObject:Aq});const Dq=["values","unit","step"],zq=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>fU({},e,{[t.key]:t.val})),{})};function Lq(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=pU(e,Dq),a=zq(t),i=Object.keys(a);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function c(e,o){const a=i.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==a&&"number"==typeof t[i[a]]?t[i[a]]:o)-n/100}${r})`}return fU({keys:i,values:a,up:s,down:l,between:c,only:function(e){return i.indexOf(e)+1<i.length?c(e,i[i.indexOf(e)+1]):s(e)},not:function(e){const t=i.indexOf(e);return 0===t?s(i[1]):t===i.length-1?l(i[t]):c(e,i[i.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}var Vq={borderRadius:4};function Bq(e,t){return t?Mq(e,t,{clone:!1}):e}const Uq={xs:0,sm:600,md:900,lg:1200,xl:1536},Wq={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Uq[e]}px)`};function qq(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Wq;return t.reduce(((n,o,a)=>(n[e.up(e.keys[a])]=r(t[a]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Wq;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Uq).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Kq(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}function Hq(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function Gq({values:e,breakpoints:t,base:r}){const n=r||function(e,t){if("object"!=typeof e)return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach(((t,n)=>{n<e.length&&(r[t]=!0)})):n.forEach((t=>{null!=e[t]&&(r[t]=!0)})),r}(e,t),o=Object.keys(n);if(0===o.length)return e;let a;return o.reduce(((t,r,n)=>(Array.isArray(e)?(t[r]=null!=e[n]?e[n]:e[a],a=n):"object"==typeof e?(t[r]=null!=e[r]?e[r]:e[a],a=r):t[r]=e,t)),{})}function Qq(e){if("string"!=typeof e)throw new Error(cU(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Yq=Object.freeze({__proto__:null,default:Qq});function Jq(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Xq(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Jq(e,r)||n,t&&(o=t(o,n,e)),o}function Zq(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=e=>{if(null==e[t])return null;const a=e[t],i=Jq(e.theme,n)||{};return qq(e,a,(e=>{let n=Xq(i,o,e);return e===n&&"string"==typeof e&&(n=Xq(i,o,`${t}${"default"===e?"":Qq(e)}`,e)),!1===r?n:{[r]:n}}))};return a.propTypes={},a.filterProps=[t],a}const eK={m:"margin",p:"padding"},tK={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},rK={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},nK=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!rK[e])return[e];e=rK[e]}const[t,r]=e.split(""),n=eK[t],o=tK[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),oK=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],aK=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function iK(e,t,r,n){var o;const a=null!=(o=Jq(e,t,!1))?o:r;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>{}}function sK(e){return iK(e,"spacing",8)}function lK(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function cK(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=lK(t,r),e)),{})}(nK(r),n);return qq(e,e[r],o)}function uK(e,t){const r=sK(e.theme);return Object.keys(e).map((n=>cK(e,t,n,r))).reduce(Bq,{})}function dK(e){return uK(e,oK)}function fK(e){return uK(e,aK)}function pK(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?Bq(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function mK(e){return"number"!=typeof e?e:`${e}px solid`}function hK(e,t){return Zq({prop:e,themeKey:"borders",transform:t})}dK.propTypes={},dK.filterProps=oK,fK.propTypes={},fK.filterProps=aK;const vK=hK("border",mK),yK=hK("borderTop",mK),gK=hK("borderRight",mK),bK=hK("borderBottom",mK),wK=hK("borderLeft",mK),SK=hK("borderColor"),xK=hK("borderTopColor"),$K=hK("borderRightColor"),kK=hK("borderBottomColor"),_K=hK("borderLeftColor"),EK=hK("outline",mK),CK=hK("outlineColor"),PK=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=iK(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:lK(t,e)});return qq(e,e.borderRadius,r)}return null};PK.propTypes={},PK.filterProps=["borderRadius"],pK(vK,yK,gK,bK,wK,SK,xK,$K,kK,_K,PK,EK,CK);const jK=e=>{if(void 0!==e.gap&&null!==e.gap){const t=iK(e.theme,"spacing",8),r=e=>({gap:lK(t,e)});return qq(e,e.gap,r)}return null};jK.propTypes={},jK.filterProps=["gap"];const OK=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=iK(e.theme,"spacing",8),r=e=>({columnGap:lK(t,e)});return qq(e,e.columnGap,r)}return null};OK.propTypes={},OK.filterProps=["columnGap"];const NK=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=iK(e.theme,"spacing",8),r=e=>({rowGap:lK(t,e)});return qq(e,e.rowGap,r)}return null};NK.propTypes={},NK.filterProps=["rowGap"];function RK(e,t){return"grey"===t?t:e}pK(jK,OK,NK,Zq({prop:"gridColumn"}),Zq({prop:"gridRow"}),Zq({prop:"gridAutoFlow"}),Zq({prop:"gridAutoColumns"}),Zq({prop:"gridAutoRows"}),Zq({prop:"gridTemplateColumns"}),Zq({prop:"gridTemplateRows"}),Zq({prop:"gridTemplateAreas"}),Zq({prop:"gridArea"}));function TK(e){return e<=1&&0!==e?100*e+"%":e}pK(Zq({prop:"color",themeKey:"palette",transform:RK}),Zq({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:RK}),Zq({prop:"backgroundColor",themeKey:"palette",transform:RK}));const AK=Zq({prop:"width",transform:TK}),IK=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||Uq[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:TK(t)}};return qq(e,e.maxWidth,t)}return null};IK.filterProps=["maxWidth"];const MK=Zq({prop:"minWidth",transform:TK}),FK=Zq({prop:"height",transform:TK}),DK=Zq({prop:"maxHeight",transform:TK}),zK=Zq({prop:"minHeight",transform:TK});Zq({prop:"size",cssProperty:"width",transform:TK}),Zq({prop:"size",cssProperty:"height",transform:TK});pK(AK,IK,MK,FK,DK,zK,Zq({prop:"boxSizing"}));var LK={border:{themeKey:"borders",transform:mK},borderTop:{themeKey:"borders",transform:mK},borderRight:{themeKey:"borders",transform:mK},borderBottom:{themeKey:"borders",transform:mK},borderLeft:{themeKey:"borders",transform:mK},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:mK},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:PK},color:{themeKey:"palette",transform:RK},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:RK},backgroundColor:{themeKey:"palette",transform:RK},p:{style:fK},pt:{style:fK},pr:{style:fK},pb:{style:fK},pl:{style:fK},px:{style:fK},py:{style:fK},padding:{style:fK},paddingTop:{style:fK},paddingRight:{style:fK},paddingBottom:{style:fK},paddingLeft:{style:fK},paddingX:{style:fK},paddingY:{style:fK},paddingInline:{style:fK},paddingInlineStart:{style:fK},paddingInlineEnd:{style:fK},paddingBlock:{style:fK},paddingBlockStart:{style:fK},paddingBlockEnd:{style:fK},m:{style:dK},mt:{style:dK},mr:{style:dK},mb:{style:dK},ml:{style:dK},mx:{style:dK},my:{style:dK},margin:{style:dK},marginTop:{style:dK},marginRight:{style:dK},marginBottom:{style:dK},marginLeft:{style:dK},marginX:{style:dK},marginY:{style:dK},marginInline:{style:dK},marginInlineStart:{style:dK},marginInlineEnd:{style:dK},marginBlock:{style:dK},marginBlockStart:{style:dK},marginBlockEnd:{style:dK},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:jK},rowGap:{style:NK},columnGap:{style:OK},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:TK},maxWidth:{style:IK},minWidth:{transform:TK},height:{transform:TK},maxHeight:{transform:TK},minHeight:{transform:TK},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function VK(){function e(e,t,r,n){const o={[e]:t,theme:r},a=n[e];if(!a)return{[e]:t};const{cssProperty:i=e,themeKey:s,transform:l,style:c}=a;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=Jq(r,s)||{};if(c)return c(o);return qq(o,t,(t=>{let r=Xq(u,l,t);return t===r&&"string"==typeof t&&(r=Xq(u,l,`${e}${"default"===t?"":Qq(t)}`,t)),!1===i?r:{[i]:r}}))}return function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=null!=(n=a.unstable_sxConfig)?n:LK;function s(r){let n=r;if("function"==typeof r)n=r(a);else if("object"!=typeof r)return r;if(!n)return null;const o=Kq(a.breakpoints),s=Object.keys(o);let l=o;return Object.keys(n).forEach((r=>{const o=(s=n[r],c=a,"function"==typeof s?s(c):s);var s,c;if(null!=o)if("object"==typeof o)if(i[r])l=Bq(l,e(r,o,a,i));else{const e=qq({theme:a},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?l=Bq(l,e):l[r]=t({sx:o,theme:a})}else l=Bq(l,e(r,o,a,i))})),Hq(s,l)}return Array.isArray(o)?o.map(s):s(o)}}const BK=VK();BK.filterProps=["sx"];var UK=BK;function WK(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){return{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return r.palette.mode===e?t:{}}const qK=["breakpoints","palette","spacing","shape"];function KK(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=pU(e,qK),s=Lq(r),l=function(e=8){if(e.mui)return e;const t=sK({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let c=Mq({breakpoints:s,direction:"ltr",components:{},palette:fU({mode:"light"},n),spacing:l,shape:fU({},Vq,a)},i);return c.applyStyles=WK,c=t.reduce(((e,t)=>Mq(e,t)),c),c.unstable_sxConfig=fU({},LK,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return UK({sx:e,theme:this})},c}var HK=Object.freeze({__proto__:null,default:KK,private_createBreakpoints:Lq,unstable_applyStyles:WK});function GK(e=null){const t=L.useContext(fq);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const QK=KK();function YK(e=QK){return GK(e)}function JK({styles:e,themeId:t,defaultTheme:r={}}){const n=YK(r),o="function"==typeof e?e(t&&n[t]||n):e;return LP.jsx(Oq,{styles:o})}const XK=["sx"],ZK=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:LK;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function eH(e){const{sx:t}=e,r=pU(e,XK),{systemProps:n,otherProps:o}=ZK(r);let a;return a=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return Aq(r)?fU({},n,r):n}:fU({},n,t),fU({},o,{sx:a})}var tH=Object.freeze({__proto__:null,default:UK,extendSxProp:eH,unstable_createStyleFunctionSx:VK,unstable_defaultSxConfig:LK});const rH=e=>e;var nH=(()=>{let e=rH;return{configure(t){e=t},generate:t=>e(t),reset(){e=rH}}})();function oH(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=oH(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function aH(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=oH(e))&&(n&&(n+=" "),n+=t);return n}const iH=["className","component"];const sH={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function lH(e,t,r="Mui"){const n=sH[t];return n?`${r}-${n}`:`${nH.generate(e)}-${t}`}function cH(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=lH(e,t,r)})),n}var uH={exports:{}},dH={},fH=Symbol.for("react.transitional.element"),pH=Symbol.for("react.portal"),mH=Symbol.for("react.fragment"),hH=Symbol.for("react.strict_mode"),vH=Symbol.for("react.profiler"),yH=Symbol.for("react.consumer"),gH=Symbol.for("react.context"),bH=Symbol.for("react.forward_ref"),wH=Symbol.for("react.suspense"),SH=Symbol.for("react.suspense_list"),xH=Symbol.for("react.memo"),$H=Symbol.for("react.lazy"),kH=Symbol.for("react.offscreen"),_H=Symbol.for("react.client.reference");function EH(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case fH:switch(e=e.type){case mH:case vH:case hH:case wH:case SH:return e;default:switch(e=e&&e.$$typeof){case gH:case bH:case $H:case xH:case yH:return e;default:return t}}case pH:return t}}}dH.ContextConsumer=yH,dH.ContextProvider=gH,dH.Element=fH,dH.ForwardRef=bH,dH.Fragment=mH,dH.Lazy=$H,dH.Memo=xH,dH.Portal=pH,dH.Profiler=vH,dH.StrictMode=hH,dH.Suspense=wH,dH.SuspenseList=SH,dH.isContextConsumer=function(e){return EH(e)===yH},dH.isContextProvider=function(e){return EH(e)===gH},dH.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===fH},dH.isForwardRef=function(e){return EH(e)===bH},dH.isFragment=function(e){return EH(e)===mH},dH.isLazy=function(e){return EH(e)===$H},dH.isMemo=function(e){return EH(e)===xH},dH.isPortal=function(e){return EH(e)===pH},dH.isProfiler=function(e){return EH(e)===vH},dH.isStrictMode=function(e){return EH(e)===hH},dH.isSuspense=function(e){return EH(e)===wH},dH.isSuspenseList=function(e){return EH(e)===SH},dH.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===mH||e===vH||e===hH||e===wH||e===SH||e===kH||"object"==typeof e&&null!==e&&(e.$$typeof===$H||e.$$typeof===xH||e.$$typeof===gH||e.$$typeof===yH||e.$$typeof===bH||e.$$typeof===_H||void 0!==e.getModuleId)},dH.typeOf=EH,uH.exports=dH;var CH=uH.exports;const PH=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function jH(e){const t=`${e}`.match(PH);return t&&t[1]||""}function OH(e,t=""){return e.displayName||e.name||jH(e)||t}function NH(e,t,r){const n=OH(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var RH=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return OH(e,"Component");if("object"==typeof e)switch(e.$$typeof){case CH.ForwardRef:return NH(e,e.render,"ForwardRef");case CH.Memo:return NH(e,e.type,"memo");default:return}}},getFunctionName:jH});const TH=["ownerState"],AH=["variants"],IH=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function MH(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const FH=KK(),DH=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function zH({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function LH(e){return e?(t,r)=>r[e]:null}function VH(e,t){let{ownerState:r}=t,n=pU(t,TH);const o="function"==typeof e?e(fU({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>VH(e,fU({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=pU(o,AH);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(fU({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(fU({ownerState:r},n,r)):e.style))})),t}return o}const BH=function(e={}){const{themeId:t,defaultTheme:r=FH,rootShouldForwardProp:n=MH,slotShouldForwardProp:o=MH}=e,a=e=>UK(fU({},e,{theme:zH(fU({},e,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{Rq(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=LH(DH(l))}=i,f=pU(i,IH),p=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,m=u||!1;let h=MH;"Root"===l||"root"===l?h=n:l?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const v=Nq(e,fU({shouldForwardProp:h,label:undefined},f)),y=e=>"function"==typeof e&&e.__emotion_real!==e||Aq(e)?n=>VH(e,fU({},n,{theme:zH({theme:n.theme,defaultTheme:r,themeId:t})})):e,g=(n,...o)=>{let i=y(n);const l=o?o.map(y):[];s&&d&&l.push((e=>{const n=zH(fU({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[s]||!n.components[s].styleOverrides)return null;const o=n.components[s].styleOverrides,a={};return Object.entries(o).forEach((([t,r])=>{a[t]=VH(r,fU({},e,{theme:n}))})),d(e,a)})),s&&!p&&l.push((e=>{var n;const o=zH(fU({},e,{defaultTheme:r,themeId:t}));return VH({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},fU({},e,{theme:o}))})),m||l.push(a);const c=l.length-o.length;if(Array.isArray(n)&&c>0){const e=new Array(c).fill("");i=[...n,...e],i.raw=[...n.raw,...e]}const u=v(i,...l);return e.muiName&&(u.muiName=e.muiName),u};return v.withConfig&&(g.withConfig=v.withConfig),g}}();var UH=BH;function WH(e,t){const r=fU({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=fU({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},a&&Object.keys(a)?o&&Object.keys(o)?(r[n]=fU({},a),Object.keys(o).forEach((e=>{r[n][e]=WH(o[e],a[e])}))):r[n]=a:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function qH({props:e,name:t,defaultTheme:r,themeId:n}){let o=YK(r);n&&(o=o[n]||o);const a=function(e){const{theme:t,name:r,props:n}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?WH(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return a}var KH="undefined"!=typeof window?L.useLayoutEffect:L.useEffect;function HH(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var GH=Object.freeze({__proto__:null,default:HH});function QH(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function YH(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function JH(e,t){var r,n;return L.isValidElement(e)&&-1!==t.indexOf(null!=(r=e.type.muiName)?r:null==(n=e.type)||null==(n=n._payload)||null==(n=n.value)?void 0:n.muiName)}function XH(e){return e&&e.ownerDocument||document}function ZH(e){return XH(e).defaultView||window}function eG(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let tG=0;const rG=B["useId".toString()];function nG(e){if(void 0!==rG){const t=rG();return null!=e?e:t}return function(e){const[t,r]=L.useState(e),n=e||t;return L.useEffect((()=>{null==t&&(tG+=1,r(`mui-${tG}`))}),[t]),n}(e)}function oG({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=L.useRef(void 0!==e),[a,i]=L.useState(t);return[o?e:a,L.useCallback((e=>{o||i(e)}),[])]}function aG(e){const t=L.useRef(e);return KH((()=>{t.current=e})),L.useRef(((...e)=>(0,t.current)(...e))).current}function iG(...e){return L.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{eG(e,t)}))}),e)}const sG={};const lG=[];class cG{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new cG}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function uG(){const e=function(e,t){const r=L.useRef(sG);return r.current===sG&&(r.current=e(t)),r}(cG.create).current;var t;return t=e.disposeEffect,L.useEffect(t,lG),e}let dG=!0,fG=!1;const pG=new cG,mG={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function hG(e){e.metaKey||e.altKey||e.ctrlKey||(dG=!0)}function vG(){dG=!1}function yG(){"hidden"===this.visibilityState&&fG&&(dG=!0)}function gG(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return dG||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!mG[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function bG(){const e=L.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",hG,!0),t.addEventListener("mousedown",vG,!0),t.addEventListener("pointerdown",vG,!0),t.addEventListener("touchstart",vG,!0),t.addEventListener("visibilitychange",yG,!0))}),[]),t=L.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!gG(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(fG=!0,pG.start(100,(()=>{fG=!1})),t.current=!1,!0)},ref:e}}function wG(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}var SG={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function xG(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}function $G(e){return"string"==typeof e}function kG(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function _G(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}const EG=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function CG(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=pU(e,EG),s=a?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:l,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const e=aH(null==r?void 0:r.className,a,null==o?void 0:o.className,null==n?void 0:n.className),t=fU({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),i=fU({},r,o,n);return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=kG(fU({},o,n)),s=_G(n),l=_G(o),c=t(i),u=aH(null==c?void 0:c.className,null==r?void 0:r.className,a,null==o?void 0:o.className,null==n?void 0:n.className),d=fU({},null==c?void 0:c.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),f=fU({},c,r,l,s);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}(fU({},i,{externalSlotProps:s})),u=function(e,t,r){return void 0===e||$G(e)?t:fU({},t,{ownerState:fU({},t.ownerState,r)})}(r,fU({},l,{ref:iG(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return u}function PG(e){var t;return parseInt(L.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}var jG=L.createContext(null);function OG(){return L.useContext(jG)}var NG="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function RG(e){const{children:t,theme:r}=e,n=OG(),o=L.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return fU({},e,t)}(n,r);return null!=e&&(e[NG]=null!==n),e}),[r,n]);return LP.jsx(jG.Provider,{value:o,children:t})}const TG=["value"],AG=L.createContext();function IG(e){let{value:t}=e,r=pU(e,TG);return LP.jsx(AG.Provider,fU({value:null==t||t},r))}const MG=()=>{const e=L.useContext(AG);return null!=e&&e},FG=L.createContext(void 0);function DG({value:e,children:t}){return LP.jsx(FG.Provider,{value:e,children:t})}function zG({props:e,name:t}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?WH(o.defaultProps,n):o.styleOverrides||o.variants?n:WH(o,n)}({props:e,name:t,theme:{components:L.useContext(FG)}})}const LG={};function VG(e,t,r,n=!1){return L.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const a=r(o),i=e?fU({},t,{[e]:a}):a;return n?()=>i:i}return fU({},t,e?{[e]:r}:r)}),[e,t,r,n])}function BG(e){const{children:t,theme:r,themeId:n}=e,o=GK(LG),a=OG()||LG,i=VG(n,o,r),s=VG(n,a,r,!0),l="rtl"===i.direction;return LP.jsx(RG,{theme:s,children:LP.jsx(fq.Provider,{value:i,children:LP.jsx(IG,{value:l,children:LP.jsx(DG,{value:null==i?void 0:i.components,children:t})})})})}const UG=["component","direction","spacing","divider","children","className","useFlexGap"],WG=KK(),qG=UH("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function KG(e){return qH({props:e,name:"MuiStack",defaultTheme:WG})}function HG(e,t){const r=L.Children.toArray(e).filter(Boolean);return r.reduce(((e,n,o)=>(e.push(n),o<r.length-1&&e.push(L.cloneElement(t,{key:`separator-${o}`})),e)),[])}const GG=({ownerState:e,theme:t})=>{let r=fU({display:"flex",flexDirection:"column"},qq({theme:t},Gq({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const n=sK(t),o=Object.keys(t.breakpoints.values).reduce(((t,r)=>(("object"==typeof e.spacing&&null!=e.spacing[r]||"object"==typeof e.direction&&null!=e.direction[r])&&(t[r]=!0),t)),{}),a=Gq({values:e.direction,base:o}),i=Gq({values:e.spacing,base:o});"object"==typeof a&&Object.keys(a).forEach(((e,t,r)=>{if(!a[e]){const n=t>0?a[r[t-1]]:"column";a[e]=n}}));r=Mq(r,qq({theme:t},i,((t,r)=>{return e.useFlexGap?{gap:lK(n,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=r?a[r]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:lK(n,t)}};var o})))}return r=function(e,...t){const r=Kq(e),n=[r,...t].reduce(((e,t)=>Mq(e,t)),{});return Hq(Object.keys(r),n)}(t.breakpoints,r),r};var QG,YG={},JG={exports:{}};(QG=JG).exports=function(e){return e&&e.__esModule?e:{default:e}},QG.exports.__esModule=!0,QG.exports.default=QG.exports;var XG=JG.exports,ZG=n(uU),eQ=n(GH),tQ=XG;Object.defineProperty(YG,"__esModule",{value:!0});var rQ=YG.alpha=hQ;YG.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),a=uQ(e),i=uQ(t),s=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return fQ({type:"rgb",values:s})},YG.colorChannel=void 0;var nQ=YG.darken=vQ;YG.decomposeColor=uQ,YG.emphasize=gQ;var oQ=YG.getContrastRatio=function(e,t){const r=mQ(e),n=mQ(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};YG.getLuminance=mQ,YG.hexToRgb=cQ,YG.hslToRgb=pQ;var aQ=YG.lighten=yQ;YG.private_safeAlpha=function(e,t,r){try{return hQ(e,t)}catch(t){return e}},YG.private_safeColorChannel=void 0,YG.private_safeDarken=function(e,t,r){try{return vQ(e,t)}catch(t){return e}},YG.private_safeEmphasize=function(e,t,r){try{return gQ(e,t)}catch(t){return e}},YG.private_safeLighten=function(e,t,r){try{return yQ(e,t)}catch(t){return e}},YG.recomposeColor=fQ,YG.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=uQ(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var iQ=tQ(ZG),sQ=tQ(eQ);function lQ(e,t=0,r=1){return(0,sQ.default)(e,t,r)}function cQ(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function uQ(e){if(e.type)return e;if("#"===e.charAt(0))return uQ(cQ(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,iQ.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,iQ.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const dQ=e=>{const t=uQ(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};YG.colorChannel=dQ;function fQ(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function pQ(e){e=uQ(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(e,t=(e+r/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),fQ({type:s,values:l})}function mQ(e){let t="hsl"===(e=uQ(e)).type||"hsla"===e.type?uQ(pQ(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function hQ(e,t){return e=uQ(e),t=lQ(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,fQ(e)}function vQ(e,t){if(e=uQ(e),t=lQ(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return fQ(e)}function yQ(e,t){if(e=uQ(e),t=lQ(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return fQ(e)}function gQ(e,t=.15){return mQ(e)>.5?vQ(e,t):yQ(e,t)}YG.private_safeColorChannel=(e,t)=>{try{return dQ(e)}catch(t){return e}};const bQ=["mode","contrastThreshold","tonalOffset"],wQ={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:tU.white,default:tU.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},SQ={text:{primary:tU.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:tU.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function xQ(e,t,r,n){const o=n.light||n,a=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=aQ(e.main,o):"dark"===t&&(e.dark=nQ(e.main,a)))}function $Q(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=pU(e,bQ),a=e.primary||function(e="light"){return"dark"===e?{main:oU[200],light:oU[50],dark:oU[400]}:{main:oU[700],light:oU[400],dark:oU[800]}}(t),i=e.secondary||function(e="light"){return"dark"===e?{main:nU[200],light:nU[50],dark:nU[400]}:{main:nU[500],light:nU[300],dark:nU[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:rU[500],light:rU[300],dark:rU[700]}:{main:rU[700],light:rU[400],dark:rU[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:aU[400],light:aU[300],dark:aU[700]}:{main:aU[700],light:aU[500],dark:aU[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:iU[400],light:iU[300],dark:iU[700]}:{main:iU[800],light:iU[500],dark:iU[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:sU[400],light:sU[300],dark:sU[700]}:{main:"#ed6c02",light:sU[500],dark:sU[900]}}(t);function d(e){return oQ(e,SQ.text.primary)>=r?SQ.text.primary:wQ.text.primary}const f=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:a=700})=>{if(!(e=fU({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(cU(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(cU(12,t?` (${t})`:"",JSON.stringify(e.main)));return xQ(e,"light",o,n),xQ(e,"dark",a,n),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:SQ,light:wQ};return Mq(fU({common:fU({},tU),mode:t,primary:f({color:a,name:"primary"}),secondary:f({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:lU,contrastThreshold:r,getContrastText:d,augmentColor:f,tonalOffset:n},p[t]),o)}const kQ=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const _Q={textTransform:"uppercase"},EQ='"Roboto", "Helvetica", "Arial", sans-serif';function CQ(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=EQ,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=r,f=pU(r,kQ),p=o/14,m=d||(e=>e/c*p+"rem"),h=(e,t,r,o,a)=>{return fU({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===EQ?{letterSpacing:(i=o/t,Math.round(1e5*i)/1e5)+"em"}:{},a,u);var i},v={h1:h(a,96,1.167,-1.5),h2:h(a,60,1.2,-.5),h3:h(i,48,1.167,0),h4:h(i,34,1.235,.25),h5:h(i,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(i,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(i,16,1.5,.15),body2:h(i,14,1.43,.15),button:h(s,14,1.75,.4,_Q),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,_Q),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Mq(fU({htmlFontSize:c,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l},v),f,{clone:!1})}function PQ(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var jQ=["none",PQ(0,2,1,-1,0,1,1,0,0,1,3,0),PQ(0,3,1,-2,0,2,2,0,0,1,5,0),PQ(0,3,3,-2,0,3,4,0,0,1,8,0),PQ(0,2,4,-1,0,4,5,0,0,1,10,0),PQ(0,3,5,-1,0,5,8,0,0,1,14,0),PQ(0,3,5,-1,0,6,10,0,0,1,18,0),PQ(0,4,5,-2,0,7,10,1,0,2,16,1),PQ(0,5,5,-3,0,8,10,1,0,3,14,2),PQ(0,5,6,-3,0,9,12,1,0,3,16,2),PQ(0,6,6,-3,0,10,14,1,0,4,18,3),PQ(0,6,7,-4,0,11,15,1,0,4,20,3),PQ(0,7,8,-4,0,12,17,2,0,5,22,4),PQ(0,7,8,-4,0,13,19,2,0,5,24,4),PQ(0,7,9,-4,0,14,21,2,0,5,26,4),PQ(0,8,9,-5,0,15,22,2,0,6,28,5),PQ(0,8,10,-5,0,16,24,2,0,6,30,5),PQ(0,8,11,-5,0,17,26,2,0,6,32,5),PQ(0,9,11,-5,0,18,28,2,0,7,34,6),PQ(0,9,12,-6,0,19,29,2,0,7,36,6),PQ(0,10,13,-6,0,20,31,3,0,8,38,7),PQ(0,10,13,-6,0,21,33,3,0,8,40,7),PQ(0,10,14,-6,0,22,35,3,0,8,42,7),PQ(0,11,14,-7,0,23,36,3,0,9,44,8),PQ(0,11,15,-7,0,24,38,3,0,9,46,8)];const OQ=["duration","easing","delay"],NQ={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},RQ={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function TQ(e){return`${Math.round(e)}ms`}function AQ(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function IQ(e){const t=fU({},NQ,e.easing),r=fU({},RQ,e.duration);return fU({getAutoHeightDuration:AQ,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:a=t.easeInOut,delay:i=0}=n;return pU(n,OQ),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:TQ(o)} ${a} ${"string"==typeof i?i:TQ(i)}`)).join(",")}},e,{easing:t,duration:r})}var MQ={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const FQ=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function DQ(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=pU(e,FQ);if(e.vars)throw new Error(cU(18));const s=$Q(n),l=KK(e);let c=Mq(l,{mixins:(u=l.breakpoints,d=r,fU({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:jQ.slice(),typography:CQ(s,a),transitions:IQ(o),zIndex:fU({},MQ)});var u,d;return c=Mq(c,i),c=t.reduce(((e,t)=>Mq(e,t)),c),c.unstable_sxConfig=fU({},LK,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return UK({sx:e,theme:this})},c}var zQ=DQ();function LQ(){const e=YK(zQ);return e[dU]||e}var VQ,BQ={},UQ={exports:{}};var WQ,qQ={exports:{}};var KQ=n(Tq),HQ=n(Fq),GQ=n(Yq),QQ=n(RH),YQ=n(HK),JQ=n(tH),XQ=XG;Object.defineProperty(BQ,"__esModule",{value:!0});var ZQ=BQ.default=function(e={}){const{themeId:t,defaultTheme:r=dY,rootShouldForwardProp:n=uY,slotShouldForwardProp:o=uY}=e,a=e=>(0,aY.default)((0,eY.default)({},e,{theme:pY((0,eY.default)({},e,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{(0,rY.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=mY(fY(l))}=i,f=(0,tY.default)(i,lY),p=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,m=u||!1;let h=uY;"Root"===l||"root"===l?h=n:l?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const v=(0,rY.default)(e,(0,eY.default)({shouldForwardProp:h,label:undefined},f)),y=e=>"function"==typeof e&&e.__emotion_real!==e||(0,nY.isPlainObject)(e)?n=>hY(e,(0,eY.default)({},n,{theme:pY({theme:n.theme,defaultTheme:r,themeId:t})})):e,g=(n,...o)=>{let i=y(n);const l=o?o.map(y):[];s&&d&&l.push((e=>{const n=pY((0,eY.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[s]||!n.components[s].styleOverrides)return null;const o=n.components[s].styleOverrides,a={};return Object.entries(o).forEach((([t,r])=>{a[t]=hY(r,(0,eY.default)({},e,{theme:n}))})),d(e,a)})),s&&!p&&l.push((e=>{var n;const o=pY((0,eY.default)({},e,{defaultTheme:r,themeId:t}));return hY({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,eY.default)({},e,{theme:o}))})),m||l.push(a);const c=l.length-o.length;if(Array.isArray(n)&&c>0){const e=new Array(c).fill("");i=[...n,...e],i.raw=[...n.raw,...e]}const u=v(i,...l);return e.muiName&&(u.muiName=e.muiName),u};return v.withConfig&&(g.withConfig=v.withConfig),g}};BQ.shouldForwardProp=uY,BQ.systemDefaultTheme=void 0;var eY=XQ((VQ||(VQ=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(UQ)),UQ.exports)),tY=XQ((WQ||(WQ=1,function(e){e.exports=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o},e.exports.__esModule=!0,e.exports.default=e.exports}(qQ)),qQ.exports)),rY=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=cY(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(KQ),nY=HQ;XQ(GQ),XQ(QQ);var oY=XQ(YQ),aY=XQ(JQ);const iY=["ownerState"],sY=["variants"],lY=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function cY(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(cY=function(e){return e?r:t})(e)}function uY(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const dY=BQ.systemDefaultTheme=(0,oY.default)(),fY=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function pY({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function mY(e){return e?(t,r)=>r[e]:null}function hY(e,t){let{ownerState:r}=t,n=(0,tY.default)(t,iY);const o="function"==typeof e?e((0,eY.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>hY(e,(0,eY.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,tY.default)(o,sY);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,eY.default)({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,eY.default)({ownerState:r},n,r)):e.style))})),t}return o}function vY(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}var yY=e=>vY(e)&&"classes"!==e;var gY=ZQ({themeId:dU,defaultTheme:zQ,rootShouldForwardProp:yY});const bY=["theme"];function wY(e){let{theme:t}=e,r=pU(e,bY);const n=t[dU];return LP.jsx(BG,fU({},r,{themeId:n?dU:void 0,theme:n||t}))}var SY=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function xY(e){return zG(e)}function $Y(e){return lH("MuiSvgIcon",e)}cH("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const kY=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],_Y=gY("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Qq(r.color)}`],t[`fontSize${Qq(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,a,i,s,l,c,u,d,f,p,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(i=a.pxToRem)?void 0:i.call(a,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(f=(e.vars||e).palette)||null==(f=f[t.color])?void 0:f.main)?d:{action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),EY=L.forwardRef((function(e,t){const r=xY({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:a="inherit",component:i="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=r,f=pU(r,kY),p=L.isValidElement(n)&&"svg"===n.type,m=fU({},r,{color:a,component:i,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:p}),h={};c||(h.viewBox=d);const v=(e=>{const{color:t,fontSize:r,classes:n}=e;return xG({root:["root","inherit"!==t&&`color${Qq(t)}`,`fontSize${Qq(r)}`]},$Y,n)})(m);return LP.jsxs(_Y,fU({as:i,className:aH(v.root,o),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},h,f,p&&n.props,{ownerState:m,children:[p?n.props.children:n,u?LP.jsx("title",{children:u}):null]}))}));EY.muiName="SvgIcon";var CY=EY;function PY(e,t){function r(r,n){return LP.jsx(CY,fU({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=CY.muiName,L.memo(L.forwardRef(r))}const jY={configure:e=>{nH.configure(e)}};var OY=Object.freeze({__proto__:null,capitalize:Qq,createChainedFunction:QH,createSvgIcon:PY,debounce:YH,deprecatedPropType:function(e,t){return()=>null},isMuiElement:JH,ownerDocument:XH,ownerWindow:ZH,requirePropFactory:function(e,t){return()=>null},setRef:eG,unstable_ClassNameGenerator:jY,unstable_useEnhancedEffect:KH,unstable_useId:nG,unsupportedProp:function(e,t,r,n,o){return null},useControlled:oG,useEventCallback:aG,useForkRef:iG,useIsFocusVisible:bG});function NY(e,t){return NY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},NY(e,t)}function RY(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,NY(e,t)}var TY=!1,AY=V.createContext(null),IY="unmounted",MY="exited",FY="entering",DY="entered",zY="exiting",LY=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,a=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?a?(o=MY,n.appearStatus=FY):o=DY:o=t.unmountOnExit||t.mountOnEnter?IY:MY,n.state={status:o},n.nextCallback=null,n}RY(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===IY?{status:MY}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==FY&&r!==DY&&(t=FY):r!==FY&&r!==DY||(t=zY)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===FY){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:Xu.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===MY&&this.setState({status:IY})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[Xu.findDOMNode(this),n],a=o[0],i=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||TY?this.safeSetState({status:DY},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,i),this.safeSetState({status:FY},(function(){t.props.onEntering(a,i),t.onTransitionEnd(l,(function(){t.safeSetState({status:DY},(function(){t.props.onEntered(a,i)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:Xu.findDOMNode(this);t&&!TY?(this.props.onExit(n),this.safeSetState({status:zY},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:MY},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:MY},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:Xu.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===IY)return null;var t=this.props,r=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var n=pU(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return V.createElement(AY.Provider,{value:null},"function"==typeof r?r(e,n):V.cloneElement(V.Children.only(r),n))},t}(V.Component);function VY(){}LY.contextType=AY,LY.propTypes={},LY.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:VY,onEntering:VY,onEntered:VY,onExit:VY,onExiting:VY,onExited:VY},LY.UNMOUNTED=IY,LY.EXITED=MY,LY.ENTERING=FY,LY.ENTERED=DY,LY.EXITING=zY;var BY=LY;function UY(e,t){var r=Object.create(null);return e&&L.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&L.isValidElement(e)?t(e):e}(e)})),r}function WY(e,t,r){return null!=r[t]?r[t]:e.props[t]}function qY(e,t,r){var n=UY(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var c=o[l][n];s[o[l][n]]=r(c)}s[l]=r(l)}for(n=0;n<a.length;n++)s[a[n]]=r(a[n]);return s}(t,n);return Object.keys(o).forEach((function(a){var i=o[a];if(L.isValidElement(i)){var s=a in t,l=a in n,c=t[a],u=L.isValidElement(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&L.isValidElement(c)&&(o[a]=L.cloneElement(i,{onExited:r.bind(null,i),in:c.props.in,exit:WY(i,"exit",e),enter:WY(i,"enter",e)})):o[a]=L.cloneElement(i,{in:!1}):o[a]=L.cloneElement(i,{onExited:r.bind(null,i),in:!0,exit:WY(i,"exit",e),enter:WY(i,"enter",e)})}})),o}var KY=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},HY=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}RY(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,a=t.handleExited;return{children:t.firstRender?(r=e,n=a,UY(r.children,(function(e){return L.cloneElement(e,{onExited:n.bind(null,e),in:!0,appear:WY(e,"appear",r),enter:WY(e,"enter",r),exit:WY(e,"exit",r)})}))):qY(e,o,a),firstRender:!1}},r.handleExited=function(e,t){var r=UY(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=fU({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=pU(e,["component","childFactory"]),o=this.state.contextValue,a=KY(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?V.createElement(AY.Provider,{value:o},a):V.createElement(AY.Provider,{value:o},V.createElement(t,n,a))},t}(V.Component);HY.propTypes={},HY.defaultProps={component:"div",childFactory:function(e){return e}};var GY=HY;const QY=e=>e.scrollTop;function YY(e,t){var r,n;const{timeout:o,easing:a,style:i={}}=e;return{duration:null!=(r=i.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=i.transitionTimingFunction)?n:"object"==typeof a?a[t.mode]:a,delay:i.transitionDelay}}function JY(e){return lH("MuiPaper",e)}cH("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const XY=["className","component","elevation","square","variant"],ZY=gY("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return fU({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&fU({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${rQ("#fff",SY(t.elevation))}, ${rQ("#fff",SY(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),eJ=L.forwardRef((function(e,t){const r=xY({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:a=1,square:i=!1,variant:s="elevation"}=r,l=pU(r,XY),c=fU({},r,{component:o,elevation:a,square:i,variant:s}),u=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return xG({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},JY,o)})(c);return LP.jsx(ZY,fU({as:o,ownerState:c,className:aH(u.root,n),ref:t},l))}));var tJ=eJ;var rJ=cH("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const nJ=["center","classes","className"];let oJ,aJ,iJ,sJ,lJ=e=>e;const cJ=Sq(oJ||(oJ=lJ`
40
40
  0% {
41
41
  transform: scale(0);
42
42
  opacity: 0.1;
@@ -46,7 +46,7 @@
46
46
  transform: scale(1);
47
47
  opacity: 0.3;
48
48
  }
49
- `)),GJ=aK(UJ||(UJ=KJ`
49
+ `)),uJ=Sq(aJ||(aJ=lJ`
50
50
  0% {
51
51
  opacity: 1;
52
52
  }
@@ -54,7 +54,7 @@
54
54
  100% {
55
55
  opacity: 0;
56
56
  }
57
- `)),QJ=aK(WJ||(WJ=KJ`
57
+ `)),dJ=Sq(iJ||(iJ=lJ`
58
58
  0% {
59
59
  transform: scale(1);
60
60
  }
@@ -66,7 +66,7 @@
66
66
  100% {
67
67
  transform: scale(1);
68
68
  }
69
- `)),YJ=rJ("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),JJ=rJ((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:l,timeout:c}=e,[u,d]=L.useState(!1),f=UH(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),p={width:i,height:i,top:-i/2+a,left:-i/2+o},m=UH(r.child,u&&r.childLeaving,n&&r.childPulsate);return s||u||d(!0),L.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,c);return()=>{clearTimeout(e)}}}),[l,s,c]),kj.jsx("span",{className:f,style:p,children:kj.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(qJ||(qJ=KJ`
69
+ `)),fJ=gY("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),pJ=gY((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:l,timeout:c}=e,[u,d]=L.useState(!1),f=aH(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),p={width:i,height:i,top:-i/2+a,left:-i/2+o},m=aH(r.child,u&&r.childLeaving,n&&r.childPulsate);return s||u||d(!0),L.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,c);return()=>{clearTimeout(e)}}}),[l,s,c]),LP.jsx("span",{className:f,style:p,children:LP.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(sJ||(sJ=lJ`
70
70
  opacity: 0;
71
71
  position: absolute;
72
72
 
@@ -109,4 +109,4 @@
109
109
  animation-iteration-count: infinite;
110
110
  animation-delay: 200ms;
111
111
  }
112
- `),LJ.rippleVisible,HJ,550,(({theme:e})=>e.transitions.easing.easeInOut),LJ.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),LJ.child,LJ.childLeaving,GJ,550,(({theme:e})=>e.transitions.easing.easeInOut),LJ.childPulsate,QJ,(({theme:e})=>e.transitions.easing.easeInOut)),XJ=L.forwardRef((function(e,t){const r=iJ({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:a}=r,i=JU(r,VJ),[s,l]=L.useState([]),c=L.useRef(0),u=L.useRef(null);L.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=L.useRef(!1),f=GG(),p=L.useRef(null),m=L.useRef(null),h=L.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:a,cb:i}=e;l((e=>[...e,kj.jsx(JJ,{classes:{ripple:UH(o.ripple,LJ.ripple),rippleVisible:UH(o.rippleVisible,LJ.rippleVisible),ripplePulsate:UH(o.ripplePulsate,LJ.ripplePulsate),child:UH(o.child,LJ.child),childLeaving:UH(o.childLeaving,LJ.childLeaving),childPulsate:UH(o.childPulsate,LJ.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:a},c.current)])),c.current+=1,u.current=i}),[o]),v=L.useCallback(((e={},t={},r=(()=>{}))=>{const{pulsate:o=!1,center:a=n||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=i?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,v;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(r-l.top)}if(a)v=Math.sqrt((2*l.width**2+l.height**2)/3),v%2==0&&(v+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;v=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===p.current&&(p.current=()=>{h({pulsate:o,rippleX:c,rippleY:u,rippleSize:v,cb:r})},f.start(80,(()=>{p.current&&(p.current(),p.current=null)}))):h({pulsate:o,rippleX:c,rippleY:u,rippleSize:v,cb:r})}),[n,h,f]),y=L.useCallback((()=>{v({},{pulsate:!0})}),[v]),g=L.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&p.current)return p.current(),p.current=null,void f.start(0,(()=>{g(e,t)}));p.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[f]);return L.useImperativeHandle(t,(()=>({pulsate:y,start:v,stop:g})),[y,v,g]),kj.jsx(YJ,YU({className:UH(LJ.root,o.root,a),ref:m},i,{children:kj.jsx(RJ,{component:null,exit:!0,children:s})}))}));var ZJ=XJ;function eX(e){return KH("MuiButtonBase",e)}var tX=HH("MuiButtonBase",["root","disabled","focusVisible"]);const rX=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],nX=rJ("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${tX.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),oX=L.forwardRef((function(e,t){const r=iJ({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:a,className:i,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:f="a",onBlur:p,onClick:m,onContextMenu:h,onDragLeave:v,onFocus:y,onFocusVisible:g,onKeyDown:b,onKeyUp:w,onMouseDown:S,onMouseLeave:x,onMouseUp:$,onTouchEnd:k,onTouchMove:_,onTouchStart:E,tabIndex:C=0,TouchRippleProps:P,touchRippleRef:j,type:O}=r,N=JU(r,rX),R=L.useRef(null),A=L.useRef(null),T=WG(A,j),{isFocusVisibleRef:I,onFocus:M,onBlur:F,ref:D}=nQ(),[z,V]=L.useState(!1);l&&z&&V(!1),L.useImperativeHandle(n,(()=>({focusVisible:()=>{V(!0),R.current.focus()}})),[]);const[B,U]=L.useState(!1);L.useEffect((()=>{U(!0)}),[]);const W=B&&!c&&!l;function q(e,t,r=u){return UG((n=>{t&&t(n);return!r&&A.current&&A.current[e](n),!0}))}L.useEffect((()=>{z&&d&&!c&&B&&A.current.pulsate()}),[c,d,z,B]);const K=q("start",S),H=q("stop",h),G=q("stop",v),Q=q("stop",$),Y=q("stop",(e=>{z&&e.preventDefault(),x&&x(e)})),J=q("start",E),X=q("stop",k),Z=q("stop",_),ee=q("stop",(e=>{F(e),!1===I.current&&V(!1),p&&p(e)}),!1),te=UG((e=>{R.current||(R.current=e.currentTarget),M(e),!0===I.current&&(V(!0),g&&g(e)),y&&y(e)})),re=()=>{const e=R.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=L.useRef(!1),oe=UG((e=>{d&&!ne.current&&z&&A.current&&" "===e.key&&(ne.current=!0,A.current.stop(e,(()=>{A.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),m&&m(e))})),ae=UG((e=>{d&&" "===e.key&&A.current&&z&&!e.defaultPrevented&&(ne.current=!1,A.current.stop(e,(()=>{A.current.pulsate(e)}))),w&&w(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=s;"button"===ie&&(N.href||N.to)&&(ie=f);const se={};"button"===ie?(se.type=void 0===O?"button":O,se.disabled=l):(N.href||N.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=WG(t,D,R),ce=YU({},r,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:C,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,a=iQ({root:["root",t&&"disabled",r&&"focusVisible"]},eX,o);return r&&n&&(a.root+=` ${n}`),a})(ce);return kj.jsxs(nX,YU({as:ie,className:UH(ue.root,i),ownerState:ce,onBlur:ee,onClick:m,onContextMenu:H,onFocus:te,onKeyDown:oe,onKeyUp:ae,onMouseDown:K,onMouseLeave:Y,onMouseUp:Q,onDragLeave:G,onTouchEnd:X,onTouchMove:Z,onTouchStart:J,ref:le,tabIndex:l?-1:C,type:O},se,N,{children:[a,W?kj.jsx(ZJ,YU({ref:T,center:o},P)):null]}))}));var aX=oX;function iX(e){return KH("MuiIconButton",e)}var sX=HH("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);const lX=["edge","children","className","color","disabled","disableFocusRipple","size"],cX=rJ(aX,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${AK(r.color)}`],r.edge&&t[`edge${AK(r.edge)}`],t[`size${AK(r.size)}`]]}})((({theme:e,ownerState:t})=>YU({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:LQ(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var r;const n=null==(r=(e.vars||e).palette)?void 0:r[t.color];return YU({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&YU({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":YU({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:LQ(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${sX.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),uX=L.forwardRef((function(e,t){const r=iJ({props:e,name:"MuiIconButton"}),{edge:n=!1,children:o,className:a,color:i="default",disabled:s=!1,disableFocusRipple:l=!1,size:c="medium"}=r,u=JU(r,lX),d=YU({},r,{edge:n,color:i,disabled:s,disableFocusRipple:l,size:c}),f=(e=>{const{classes:t,disabled:r,color:n,edge:o,size:a}=e;return iQ({root:["root",r&&"disabled","default"!==n&&`color${AK(n)}`,o&&`edge${AK(o)}`,`size${AK(a)}`]},iX,t)})(d);return kj.jsx(cX,YU({className:UH(f.root,a),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},u,{ownerState:d,children:o}))}));var dX=uX;function fX(e){return KH("MuiTypography",e)}HH("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const pX=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],mX=rJ("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${AK(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>YU({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),hX={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},vX={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},yX=L.forwardRef((function(e,t){const r=iJ({props:e,name:"MuiTypography"}),n=(e=>vX[e]||e)(r.color),o=DH(YU({},r,{color:n})),{align:a="inherit",className:i,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:f=hX}=o,p=JU(o,pX),m=YU({},o,{align:a,color:n,className:i,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:f}),h=s||(u?"p":f[d]||hX[d])||"span",v=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:i}=e;return iQ({root:["root",a,"inherit"!==e.align&&`align${AK(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},fX,i)})(m);return kj.jsx(mX,YU({as:h,ref:t,ownerState:m,className:UH(v.root,i)},p))}));var gX=yX;var bX=L.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[a,i]=L.useState(null),s=WG(L.isValidElement(r)?fQ(r):null,t);if(OG((()=>{o||i(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),OG((()=>{if(a&&!o)return DG(t,a),()=>{DG(t,null)}}),[t,a,o]),o){if(L.isValidElement(r)){const e={ref:s};return L.cloneElement(r,e)}return kj.jsx(L.Fragment,{children:r})}return kj.jsx(L.Fragment,{children:a?Ju.createPortal(r,a):a})}));const wX=["onChange","maxRows","minRows","style","value"];function SX(e){return parseInt(e,10)||0}const xX={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const $X=L.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:a,value:i}=e,s=JU(e,wX),{current:l}=L.useRef(null!=i),c=L.useRef(null),u=WG(t,c),d=L.useRef(null),f=L.useRef(null),p=L.useCallback((()=>{const t=c.current,r=FG(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0,overflowing:!1};const a=f.current;a.style.width=r.width,a.value=t.value||e.placeholder||"x","\n"===a.value.slice(-1)&&(a.value+=" ");const i=r.boxSizing,s=SX(r.paddingBottom)+SX(r.paddingTop),l=SX(r.borderBottomWidth)+SX(r.borderTopWidth),u=a.scrollHeight;a.value="x";const d=a.scrollHeight;let p=u;o&&(p=Math.max(Number(o)*d,p)),n&&(p=Math.min(Number(n)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===i?s+l:0),overflowing:Math.abs(p-u)<=1}}),[n,o,e.placeholder]),m=L.useCallback((()=>{const e=p();if(null==(t=e)||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const r=e.outerHeightStyle,n=c.current;d.current!==r&&(d.current=r,n.style.height=`${r}px`),n.style.overflow=e.overflowing?"hidden":""}),[p]);OG((()=>{const e=()=>{m()};const t=TG(e),r=c.current,n=FG(r);let o;return n.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(r)),()=>{t.clear(),cancelAnimationFrame(undefined),n.removeEventListener("resize",t),o&&o.disconnect()}}),[p,m]),OG((()=>{m()}));return kj.jsxs(L.Fragment,{children:[kj.jsx("textarea",YU({value:i,onChange:e=>{l||m(),r&&r(e)},ref:u,rows:o,style:a},s)),kj.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:YU({},xX,a,{paddingTop:0,paddingBottom:0})})]})}));var kX=$X;function _X({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}var EX=L.createContext(void 0);function CX(){return L.useContext(EX)}function PX(e){return kj.jsx(IH,YU({},e,{defaultTheme:$Y,themeId:QU}))}function jX(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function OX(e,t=!1){return e&&(jX(e.value)&&""!==e.value||t&&jX(e.defaultValue)&&""!==e.defaultValue)}function NX(e){return KH("MuiInputBase",e)}var RX=HH("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const AX=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],TX=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${AK(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},IX=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},MX=rJ("div",{name:"MuiInputBase",slot:"Root",overridesResolver:TX})((({theme:e,ownerState:t})=>YU({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${RX.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&YU({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),FX=rJ("input",{name:"MuiInputBase",slot:"Input",overridesResolver:IX})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=YU({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return YU({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${RX.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${RX.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),DX=kj.jsx(PX,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),zX=L.forwardRef((function(e,t){var r;const n=iJ({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:i,className:s,components:l={},componentsProps:c={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:f,endAdornment:p,fullWidth:m=!1,id:h,inputComponent:v="input",inputProps:y={},inputRef:g,maxRows:b,minRows:w,multiline:S=!1,name:x,onBlur:$,onChange:k,onClick:_,onFocus:E,onKeyDown:C,onKeyUp:P,placeholder:j,readOnly:O,renderSuffix:N,rows:R,slotProps:A={},slots:T={},startAdornment:I,type:M="text",value:F}=n,D=JU(n,AX),z=null!=y.value?y.value:F,{current:V}=L.useRef(null!=z),B=L.useRef(),U=L.useCallback((e=>{}),[]),W=WG(B,g,y.ref,U),[q,K]=L.useState(!1),H=CX(),G=_X({props:n,muiFormControl:H,states:["color","disabled","error","hiddenLabel","size","required","filled"]});G.focused=H?H.focused:q,L.useEffect((()=>{!H&&d&&q&&(K(!1),$&&$())}),[H,d,q,$]);const Q=H&&H.onFilled,Y=H&&H.onEmpty,J=L.useCallback((e=>{OX(e)?Q&&Q():Y&&Y()}),[Q,Y]);OG((()=>{V&&J({value:z})}),[z,J,V]);L.useEffect((()=>{J(B.current)}),[]);let X=v,Z=y;S&&"input"===X&&(Z=YU(R?{type:void 0,minRows:R,maxRows:R}:{type:void 0,maxRows:b,minRows:w},Z),X=kX);L.useEffect((()=>{H&&H.setAdornedStart(Boolean(I))}),[H,I]);const ee=YU({},n,{color:G.color||"primary",disabled:G.disabled,endAdornment:p,error:G.error,focused:G.focused,formControl:H,fullWidth:m,hiddenLabel:G.hiddenLabel,multiline:S,size:G.size,startAdornment:I,type:M}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:f,startAdornment:p,type:m}=e;return iQ({root:["root",`color${AK(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",f&&"medium"!==f&&`size${AK(f)}`,u&&"multiline",p&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===m&&"inputTypeSearch",u&&"inputMultiline","small"===f&&"inputSizeSmall",c&&"inputHiddenLabel",p&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]},NX,t)})(ee),re=T.root||l.Root||MX,ne=A.root||c.root||{},oe=T.input||l.Input||FX;return Z=YU({},Z,null!=(r=A.input)?r:c.input),kj.jsxs(L.Fragment,{children:[!f&&DX,kj.jsxs(re,YU({},ne,!sQ(re)&&{ownerState:YU({},ee,ne.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),_&&_(e)}},D,{className:UH(te.root,ne.className,s,O&&"MuiInputBase-readOnly"),children:[I,kj.jsx(EX.Provider,{value:null,children:kj.jsx(oe,YU({ownerState:ee,"aria-invalid":G.error,"aria-describedby":o,autoComplete:a,autoFocus:i,defaultValue:u,disabled:G.disabled,id:h,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:x,placeholder:j,readOnly:O,required:G.required,rows:R,value:z,onKeyDown:C,onKeyUp:P,type:M},Z,!sQ(oe)&&{as:X,ownerState:YU({},ee,Z.ownerState)},{ref:W,className:UH(te.input,Z.className,O&&"MuiInputBase-readOnly"),onBlur:e=>{$&&$(e),y.onBlur&&y.onBlur(e),H&&H.onBlur?H.onBlur(e):K(!1)},onChange:(e,...t)=>{if(!V){const t=e.target||B.current;if(null==t)throw new Error(HU(1));J({value:t.value})}y.onChange&&y.onChange(e,...t),k&&k(e,...t)},onFocus:e=>{G.disabled?e.stopPropagation():(E&&E(e),y.onFocus&&y.onFocus(e),H&&H.onFocus?H.onFocus(e):K(!0))}}))}),p,N?N(YU({},G,{startAdornment:I})):null]}))]})}));var LX=zX;function VX(e){return KH("MuiInput",e)}var BX=YU({},RX,HH("MuiInput",["root","underline","input"]));function UX(e){return KH("MuiOutlinedInput",e)}var WX=YU({},RX,HH("MuiOutlinedInput",["root","notchedOutline","input"]));function qX(e){return KH("MuiFilledInput",e)}var KX=YU({},RX,HH("MuiFilledInput",["root","underline","input"])),HX=fJ(kj.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const GX=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],QX={entering:{opacity:1},entered:{opacity:1}},YX=L.forwardRef((function(e,t){const r=kY(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:i,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:m,style:h,timeout:v=n,TransitionComponent:y=EJ}=e,g=JU(e,GX),b=L.useRef(null),w=WG(b,fQ(i),t),S=e=>t=>{if(e){const r=b.current;void 0===t?e(r):e(r,t)}},x=S(d),$=S(((e,t)=>{AJ(e);const n=TJ({style:h,timeout:v,easing:s},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),c&&c(e,t)})),k=S(u),_=S(m),E=S((e=>{const t=TJ({style:h,timeout:v,easing:s},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),f&&f(e)})),C=S(p);return kj.jsx(y,YU({appear:a,in:l,nodeRef:b,onEnter:$,onEntered:k,onEntering:x,onExit:E,onExited:C,onExiting:_,addEndListener:e=>{o&&o(b.current,e)},timeout:v},g,{children:(e,t)=>L.cloneElement(i,YU({style:YU({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},QX[e],h,i.props.style),ref:w},t))}))}));var JX=YX;function XX(e){return KH("MuiBackdrop",e)}HH("MuiBackdrop",["root","invisible"]);const ZX=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],eZ=rJ("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>YU({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),tZ=L.forwardRef((function(e,t){var r,n,o;const a=iJ({props:e,name:"MuiBackdrop"}),{children:i,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:f,slotProps:p={},slots:m={},TransitionComponent:h=JX,transitionDuration:v}=a,y=JU(a,ZX),g=YU({},a,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:r}=e;return iQ({root:["root",r&&"invisible"]},XX,t)})(g),w=null!=(r=p.root)?r:u.root;return kj.jsx(h,YU({in:f,timeout:v},y,{children:kj.jsx(eZ,YU({"aria-hidden":!0},w,{as:null!=(n=null!=(o=m.root)?o:c.Root)?n:l,className:UH(b.root,s,null==w?void 0:w.className),ownerState:YU({},g,null==w?void 0:w.ownerState),classes:b,ref:t,children:i}))}))}));var rZ=tZ;var nZ=HH("MuiBox",["root"]);const oZ=xY(),aZ=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,a=hK("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(CH),i=L.forwardRef((function(e,i){const s=TH(r),l=DH(e),{className:c,component:u="div"}=l,d=JU(l,WH);return kj.jsx(a,YU({as:u,ref:i,className:UH(c,o?o(n):n),theme:t&&s[t]||s},d))}));return i}({themeId:QU,defaultTheme:oZ,defaultClassName:nZ.root,generateClassName:VH.generate});var iZ=aZ;function sZ(e){return KH("MuiButton",e)}var lZ=HH("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var cZ=L.createContext({});var uZ=L.createContext(void 0);const dZ=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],fZ=e=>YU({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),pZ=rJ(aX,{shouldForwardProp:e=>tJ(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${AK(r.color)}`],t[`size${AK(r.size)}`],t[`${r.variant}Size${AK(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],a="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return YU({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":YU({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:LQ(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:LQ(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:LQ(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":YU({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${lZ.focusVisible}`]:YU({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${lZ.disabled}`]:YU({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${LQ(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${lZ.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${lZ.disabled}`]:{boxShadow:"none"}})),mZ=rJ("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${AK(r.size)}`]]}})((({ownerState:e})=>YU({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},fZ(e)))),hZ=rJ("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${AK(r.size)}`]]}})((({ownerState:e})=>YU({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},fZ(e)))),vZ=L.forwardRef((function(e,t){const r=L.useContext(cZ),n=L.useContext(uZ),o=iJ({props:PG(r,e),name:"MuiButton"}),{children:a,color:i="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:m=!1,size:h="medium",startIcon:v,type:y,variant:g="text"}=o,b=JU(o,dZ),w=YU({},o,{color:i,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:m,size:h,type:y,variant:g}),S=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:a,classes:i}=e;return YU({},i,iQ({root:["root",a,`${a}${AK(t)}`,`size${AK(o)}`,`${a}Size${AK(o)}`,`color${AK(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${AK(o)}`],endIcon:["icon","endIcon",`iconSize${AK(o)}`]},sZ,i))})(w),x=v&&kj.jsx(mZ,{className:S.startIcon,ownerState:w,children:v}),$=f&&kj.jsx(hZ,{className:S.endIcon,ownerState:w,children:f}),k=n||"";return kj.jsxs(pZ,YU({ownerState:w,className:UH(r.className,S.root,l,k),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:UH(S.focusVisible,p),ref:t,type:y},b,{classes:S,children:[x,a,$]}))}));var yZ=vZ;function gZ(e){return KH("PrivateSwitchBase",e)}HH("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const bZ=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],wZ=rJ(aX)((({ownerState:e})=>YU({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),SZ=rJ("input",{shouldForwardProp:tJ})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),xZ=L.forwardRef((function(e,t){const{autoFocus:r,checked:n,checkedIcon:o,className:a,defaultChecked:i,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:d,inputProps:f,inputRef:p,name:m,onBlur:h,onChange:v,onFocus:y,readOnly:g,required:b=!1,tabIndex:w,type:S,value:x}=e,$=JU(e,bZ),[k,_]=BG({controlled:n,default:Boolean(i),name:"SwitchBase",state:"checked"}),E=CX();let C=s;E&&void 0===C&&(C=E.disabled);const P="checkbox"===S||"radio"===S,j=YU({},e,{checked:k,disabled:C,disableFocusRipple:l,edge:c}),O=(e=>{const{classes:t,checked:r,disabled:n,edge:o}=e;return iQ({root:["root",r&&"checked",n&&"disabled",o&&`edge${AK(o)}`],input:["input"]},gZ,t)})(j);return kj.jsxs(wZ,YU({component:"span",className:UH(O.root,a),centerRipple:!0,focusRipple:!l,disabled:C,tabIndex:null,role:void 0,onFocus:e=>{y&&y(e),E&&E.onFocus&&E.onFocus(e)},onBlur:e=>{h&&h(e),E&&E.onBlur&&E.onBlur(e)},ownerState:j,ref:t},$,{children:[kj.jsx(SZ,YU({autoFocus:r,checked:n,defaultChecked:i,className:O.input,disabled:C,id:P?d:void 0,name:m,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;_(t),v&&v(e,t)},readOnly:g,ref:p,required:b,ownerState:j,tabIndex:w,type:S},"checkbox"===S&&void 0===x?{}:{value:x},f)),k?o:u]}))}));var $Z=xZ,kZ=fJ(kj.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),_Z=fJ(kj.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),EZ=fJ(kj.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function CZ(e){return KH("MuiCheckbox",e)}var PZ=HH("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);const jZ=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],OZ=rJ($Z,{shouldForwardProp:e=>tJ(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${AK(r.size)}`],"default"!==r.color&&t[`color${AK(r.color)}`]]}})((({theme:e,ownerState:t})=>YU({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:LQ("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${PZ.checked}, &.${PZ.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${PZ.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),NZ=kj.jsx(_Z,{}),RZ=kj.jsx(kZ,{}),AZ=kj.jsx(EZ,{}),TZ=L.forwardRef((function(e,t){var r,n;const o=iJ({props:e,name:"MuiCheckbox"}),{checkedIcon:a=NZ,color:i="primary",icon:s=RZ,indeterminate:l=!1,indeterminateIcon:c=AZ,inputProps:u,size:d="medium",className:f}=o,p=JU(o,jZ),m=l?c:s,h=l?c:a,v=YU({},o,{color:i,indeterminate:l,size:d}),y=(e=>{const{classes:t,indeterminate:r,color:n,size:o}=e;return YU({},t,iQ({root:["root",r&&"indeterminate",`color${AK(n)}`,`size${AK(o)}`]},CZ,t))})(v);return kj.jsx(OZ,YU({type:"checkbox",inputProps:YU({"data-indeterminate":l},u),icon:L.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:d}),checkedIcon:L.cloneElement(h,{fontSize:null!=(n=h.props.fontSize)?n:d}),ownerState:v,ref:t,className:UH(y.root,f)},p,{classes:y}))}));var IZ=TZ;function MZ(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function FZ(e){return parseInt(FG(e).getComputedStyle(e).paddingRight,10)||0}function DZ(e,t,r,n,o){const a=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===a.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&MZ(e,o)}))}function zZ(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function LZ(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=MG(e);return t.body===e?FG(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=oQ(MG(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${FZ(n)+e}px`;const t=MG(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${FZ(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=MG(n).body;else{const t=n.parentElement,r=FG(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const VZ=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function BZ(e){const t=[],r=[];return Array.from(e.querySelectorAll(VZ)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function UZ(){return!0}function WZ(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=BZ,isEnabled:i=UZ,open:s}=e,l=L.useRef(!1),c=L.useRef(null),u=L.useRef(null),d=L.useRef(null),f=L.useRef(null),p=L.useRef(!1),m=L.useRef(null),h=WG(fQ(t),m),v=L.useRef(null);L.useEffect((()=>{s&&m.current&&(p.current=!r)}),[r,s]),L.useEffect((()=>{if(!s||!m.current)return;const e=MG(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),p.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),L.useEffect((()=>{if(!s||!m.current)return;const e=MG(m.current),t=t=>{v.current=t,!n&&i()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(l.current=!0,u.current&&u.current.focus())},r=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!i()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==c.current&&e.activeElement!==u.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!p.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(r=a(m.current)),r.length>0){var o,s;const e=Boolean((null==(o=v.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=v.current)?void 0:s.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,i,s,a]);const y=e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0};return kj.jsxs(L.Fragment,{children:[kj.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),L.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;const r=t.props.onFocus;r&&r(e)}}),kj.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}const qZ=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&MZ(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);DZ(t,e.mount,e.modalRef,n,!0);const o=zZ(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=zZ(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=LZ(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=zZ(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&MZ(e.modalRef,t),DZ(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&MZ(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function KZ(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=qZ,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,f=L.useRef({}),p=L.useRef(null),m=L.useRef(null),h=WG(m,d),[v,y]=L.useState(!u),g=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let b=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(b=!1);const w=()=>(f.current.modalRef=m.current,f.current.mount=p.current,f.current),S=()=>{o.mount(w(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},x=UG((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||MG(p.current).body;o.add(w(),e),m.current&&S()})),$=L.useCallback((()=>o.isTopModal(w())),[o]),k=UG((e=>{p.current=e,e&&(u&&$()?S():m.current&&MZ(m.current,b))})),_=L.useCallback((()=>{o.remove(w(),b)}),[b,o]);L.useEffect((()=>()=>{_()}),[_]),L.useEffect((()=>{u?x():g&&a||_()}),[u,_,g,a,x]);const E=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&$()&&(r||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},C=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=lQ(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=YU({},r,t);return YU({role:"presentation"},n,{onKeyDown:E(n),ref:h})},getBackdropProps:(e={})=>YU({"aria-hidden":!0},e,{onClick:C(e),open:u}),getTransitionProps:()=>({onEnter:AG((()=>{y(!1),i&&i()}),null==l?void 0:l.props.onEnter),onExited:AG((()=>{y(!0),s&&s(),a&&_()}),null==l?void 0:l.props.onExited)}),rootRef:h,portalRef:k,isTopModal:$,exited:v,hasTransition:g}}function HZ(e){return KH("MuiModal",e)}HH("MuiModal",["root","hidden","backdrop"]);const GZ=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],QZ=rJ("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>YU({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),YZ=rJ(rZ,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),JZ=L.forwardRef((function(e,t){var r,n,o,a,i,s;const l=iJ({name:"MuiModal",props:e}),{BackdropComponent:c=YZ,BackdropProps:u,className:d,closeAfterTransition:f=!1,children:p,container:m,component:h,components:v={},componentsProps:y={},disableAutoFocus:g=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:w=!1,disablePortal:S=!1,disableRestoreFocus:x=!1,disableScrollLock:$=!1,hideBackdrop:k=!1,keepMounted:_=!1,onBackdropClick:E,open:C,slotProps:P,slots:j}=l,O=JU(l,GZ),N=YU({},l,{closeAfterTransition:f,disableAutoFocus:g,disableEnforceFocus:b,disableEscapeKeyDown:w,disablePortal:S,disableRestoreFocus:x,disableScrollLock:$,hideBackdrop:k,keepMounted:_}),{getRootProps:R,getBackdropProps:A,getTransitionProps:T,portalRef:I,isTopModal:M,exited:F,hasTransition:D}=KZ(YU({},N,{rootRef:t})),z=YU({},N,{exited:F}),V=(e=>{const{open:t,exited:r,classes:n}=e;return iQ({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},HZ,n)})(z),B={};if(void 0===p.props.tabIndex&&(B.tabIndex="-1"),D){const{onEnter:e,onExited:t}=T();B.onEnter=e,B.onExited=t}const U=null!=(r=null!=(n=null==j?void 0:j.root)?n:v.Root)?r:QZ,W=null!=(o=null!=(a=null==j?void 0:j.backdrop)?a:v.Backdrop)?o:c,q=null!=(i=null==P?void 0:P.root)?i:y.root,K=null!=(s=null==P?void 0:P.backdrop)?s:y.backdrop,H=dQ({elementType:U,externalSlotProps:q,externalForwardedProps:O,getSlotProps:R,additionalProps:{ref:t,as:h},ownerState:z,className:UH(d,null==q?void 0:q.className,null==V?void 0:V.root,!z.open&&z.exited&&(null==V?void 0:V.hidden))}),G=dQ({elementType:W,externalSlotProps:K,additionalProps:u,getSlotProps:e=>A(YU({},e,{onClick:t=>{E&&E(t),null!=e&&e.onClick&&e.onClick(t)}})),className:UH(null==K?void 0:K.className,null==u?void 0:u.className,null==V?void 0:V.backdrop),ownerState:z});return _||C||D&&!F?kj.jsx(bX,{ref:I,container:m,disablePortal:S,children:kj.jsxs(U,YU({},H,{children:[!k&&c?kj.jsx(W,YU({},G)):null,kj.jsx(WZ,{disableEnforceFocus:b,disableAutoFocus:g,disableRestoreFocus:x,isEnabled:M,open:C,children:L.cloneElement(p,B)})]}))}):null}));var XZ=JZ;function ZZ(e){return KH("MuiDivider",e)}var e0=HH("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const t0=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],r0=rJ("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>YU({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:LQ(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>YU({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>YU({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>YU({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>YU({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),n0=rJ("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>YU({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),o0=L.forwardRef((function(e,t){const r=iJ({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:a,component:i=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==i?"separator":void 0),textAlign:d="center",variant:f="fullWidth"}=r,p=JU(r,t0),m=YU({},r,{absolute:n,component:i,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:f}),h=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:a,orientation:i,textAlign:s,variant:l}=e;return iQ({root:["root",t&&"absolute",l,a&&"light","vertical"===i&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===i&&"withChildrenVertical","right"===s&&"vertical"!==i&&"textAlignRight","left"===s&&"vertical"!==i&&"textAlignLeft"],wrapper:["wrapper","vertical"===i&&"wrapperVertical"]},ZZ,n)})(m);return kj.jsx(r0,YU({as:i,className:UH(h.root,a),role:u,ref:t,ownerState:m},p,{children:o?kj.jsx(n0,{className:h.wrapper,ownerState:m,children:o}):null}))}));o0.muiSkipListHighlight=!0;var a0=o0;const i0=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],s0=rJ(MX,{shouldForwardProp:e=>tJ(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...TX(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return YU({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${KX.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${KX.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${KX.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${KX.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${KX.disabled}, .${KX.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${KX.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&YU({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),l0=rJ(FX,{name:"MuiFilledInput",slot:"Input",overridesResolver:IX})((({theme:e,ownerState:t})=>YU({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),c0=L.forwardRef((function(e,t){var r,n,o,a;const i=iJ({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:c=!1,inputComponent:u="input",multiline:d=!1,slotProps:f,slots:p={},type:m="text"}=i,h=JU(i,i0),v=YU({},i,{fullWidth:c,inputComponent:u,multiline:d,type:m}),y=(e=>{const{classes:t,disableUnderline:r}=e;return YU({},t,iQ({root:["root",!r&&"underline"],input:["input"]},qX,t))})(i),g={root:{ownerState:v},input:{ownerState:v}},b=(null!=f?f:l)?wK(g,null!=f?f:l):g,w=null!=(r=null!=(n=p.root)?n:s.Root)?r:s0,S=null!=(o=null!=(a=p.input)?a:s.Input)?o:l0;return kj.jsx(LX,YU({slots:{root:w,input:S},componentsProps:b,fullWidth:c,inputComponent:u,multiline:d,ref:t,type:m},h,{classes:y}))}));c0.muiName="Input";var u0=c0;function d0(e){return KH("MuiFormControl",e)}HH("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const f0=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],p0=rJ("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>YU({},t.root,t[`margin${AK(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>YU({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"}))),m0=L.forwardRef((function(e,t){const r=iJ({props:e,name:"MuiFormControl"}),{children:n,className:o,color:a="primary",component:i="div",disabled:s=!1,error:l=!1,focused:c,fullWidth:u=!1,hiddenLabel:d=!1,margin:f="none",required:p=!1,size:m="medium",variant:h="outlined"}=r,v=JU(r,f0),y=YU({},r,{color:a,component:i,disabled:s,error:l,fullWidth:u,hiddenLabel:d,margin:f,required:p,size:m,variant:h}),g=(e=>{const{classes:t,margin:r,fullWidth:n}=e;return iQ({root:["root","none"!==r&&`margin${AK(r)}`,n&&"fullWidth"]},d0,t)})(y),[b,w]=L.useState((()=>{let e=!1;return n&&L.Children.forEach(n,(t=>{if(!IG(t,["Input","Select"]))return;const r=IG(t,["Select"])?t.props.input:t;r&&r.props.startAdornment&&(e=!0)})),e})),[S,x]=L.useState((()=>{let e=!1;return n&&L.Children.forEach(n,(t=>{IG(t,["Input","Select"])&&(OX(t.props,!0)||OX(t.props.inputProps,!0))&&(e=!0)})),e})),[$,k]=L.useState(!1);s&&$&&k(!1);const _=void 0===c||s?$:c;let E;const C=L.useMemo((()=>({adornedStart:b,setAdornedStart:w,color:a,disabled:s,error:l,filled:S,focused:_,fullWidth:u,hiddenLabel:d,size:m,onBlur:()=>{k(!1)},onEmpty:()=>{x(!1)},onFilled:()=>{x(!0)},onFocus:()=>{k(!0)},registerEffect:E,required:p,variant:h})),[b,a,s,l,S,_,u,d,E,p,m,h]);return kj.jsx(EX.Provider,{value:C,children:kj.jsx(p0,YU({as:i,ownerState:y,className:UH(g.root,o),ref:t},v,{children:n}))})}));var h0=m0;const v0=function(e={}){const{createStyledComponent:t=jQ,useThemeProps:r=OQ,componentName:n="MuiStack"}=e,o=t(RQ),a=L.forwardRef((function(e,t){const a=DH(r(e)),{component:i="div",direction:s="column",spacing:l=0,divider:c,children:u,className:d,useFlexGap:f=!1}=a,p=JU(a,CQ),m={direction:s,spacing:l,useFlexGap:f},h=iQ({root:["root"]},(e=>KH(n,e)),{});return kj.jsx(o,YU({as:i,ownerState:m,ref:t,className:UH(h.root,d)},p,{children:c?NQ(u,c):u}))}));return a}({createStyledComponent:rJ("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>iJ({props:e,name:"MuiStack"})});var y0=v0;function g0(e){return KH("MuiFormControlLabel",e)}var b0=HH("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);const w0=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],S0=rJ("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${b0.label}`]:t.label},t.root,t[`labelPlacement${AK(r.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>YU({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${b0.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${b0.label}`]:{[`&.${b0.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),x0=rJ("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${b0.error}`]:{color:(e.vars||e).palette.error.main}}))),$0=L.forwardRef((function(e,t){var r,n;const o=iJ({props:e,name:"MuiFormControlLabel"}),{className:a,componentsProps:i={},control:s,disabled:l,disableTypography:c,label:u,labelPlacement:d="end",required:f,slotProps:p={}}=o,m=JU(o,w0),h=CX(),v=null!=(r=null!=l?l:s.props.disabled)?r:null==h?void 0:h.disabled,y=null!=f?f:s.props.required,g={disabled:v,required:y};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===s.props[e]&&void 0!==o[e]&&(g[e]=o[e])}));const b=_X({props:o,muiFormControl:h,states:["error"]}),w=YU({},o,{disabled:v,labelPlacement:d,required:y,error:b.error}),S=(e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:a}=e;return iQ({root:["root",r&&"disabled",`labelPlacement${AK(n)}`,o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]},g0,t)})(w),x=null!=(n=p.typography)?n:i.typography;let $=u;return null==$||$.type===gX||c||($=kj.jsx(gX,YU({component:"span"},x,{className:UH(S.label,null==x?void 0:x.className),children:$}))),kj.jsxs(S0,YU({className:UH(S.root,a),ownerState:w,ref:t},m,{children:[L.cloneElement(s,g),y?kj.jsxs(y0,{display:"block",children:[$,kj.jsxs(x0,{ownerState:w,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):$]}))}));var k0=$0;function _0(e){return KH("MuiFormGroup",e)}HH("MuiFormGroup",["root","row","error"]);const E0=["className","row"],C0=rJ("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})((({ownerState:e})=>YU({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"}))),P0=L.forwardRef((function(e,t){const r=iJ({props:e,name:"MuiFormGroup"}),{className:n,row:o=!1}=r,a=JU(r,E0),i=YU({},r,{row:o,error:_X({props:r,muiFormControl:CX(),states:["error"]}).error}),s=(e=>{const{classes:t,row:r,error:n}=e;return iQ({root:["root",r&&"row",n&&"error"]},_0,t)})(i);return kj.jsx(C0,YU({className:UH(s.root,n),ownerState:i,ref:t},a))}));var j0=P0;function O0(e){return KH("MuiFormHelperText",e)}var N0,R0=HH("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);const A0=["children","className","component","disabled","error","filled","focused","margin","required","variant"],T0=rJ("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${AK(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})((({theme:e,ownerState:t})=>YU({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${R0.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${R0.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),I0=L.forwardRef((function(e,t){const r=iJ({props:e,name:"MuiFormHelperText"}),{children:n,className:o,component:a="p"}=r,i=JU(r,A0),s=_X({props:r,muiFormControl:CX(),states:["variant","size","disabled","error","filled","focused","required"]}),l=YU({},r,{component:a,contained:"filled"===s.variant||"outlined"===s.variant,variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),c=(e=>{const{classes:t,contained:r,size:n,disabled:o,error:a,filled:i,focused:s,required:l}=e;return iQ({root:["root",o&&"disabled",a&&"error",n&&`size${AK(n)}`,r&&"contained",s&&"focused",i&&"filled",l&&"required"]},O0,t)})(l);return kj.jsx(T0,YU({as:a,ownerState:l,className:UH(c.root,o),ref:t},i,{children:" "===n?N0||(N0=kj.jsx("span",{className:"notranslate",children:"​"})):n}))}));var M0=I0;function F0(e){return KH("MuiFormLabel",e)}var D0=HH("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);const z0=["children","className","color","component","disabled","error","filled","focused","required"],L0=rJ("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>YU({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>YU({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${D0.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${D0.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${D0.error}`]:{color:(e.vars||e).palette.error.main}}))),V0=rJ("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${D0.error}`]:{color:(e.vars||e).palette.error.main}}))),B0=L.forwardRef((function(e,t){const r=iJ({props:e,name:"MuiFormLabel"}),{children:n,className:o,component:a="label"}=r,i=JU(r,z0),s=_X({props:r,muiFormControl:CX(),states:["color","required","focused","disabled","error","filled"]}),l=YU({},r,{color:s.color||"primary",component:a,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),c=(e=>{const{classes:t,color:r,focused:n,disabled:o,error:a,filled:i,required:s}=e;return iQ({root:["root",`color${AK(r)}`,o&&"disabled",a&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]},F0,t)})(l);return kj.jsxs(L0,YU({as:a,ownerState:l,className:UH(c.root,o),ref:t},i,{children:[n,s.required&&kj.jsxs(V0,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:[" ","*"]})]}))}));var U0=B0;var W0=L.createContext();function q0(e){return KH("MuiGrid",e)}const K0=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],H0=HH("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...K0.map((e=>`grid-xs-${e}`)),...K0.map((e=>`grid-sm-${e}`)),...K0.map((e=>`grid-md-${e}`)),...K0.map((e=>`grid-lg-${e}`)),...K0.map((e=>`grid-xl-${e}`))]),G0=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Q0(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function Y0({breakpoints:e,values:t}){let r="";Object.keys(t).forEach((e=>{""===r&&0!==t[e]&&(r=e)}));const n=Object.keys(e).sort(((t,r)=>e[t]-e[r]));return n.slice(0,n.indexOf(r))}const J0=rJ("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{container:n,direction:o,item:a,spacing:i,wrap:s,zeroMinWidth:l,breakpoints:c}=r;let u=[];n&&(u=function(e,t,r={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[r[`spacing-xs-${String(e)}`]];const n=[];return t.forEach((t=>{const o=e[t];Number(o)>0&&n.push(r[`spacing-${t}-${String(o)}`])})),n}(i,c,t));const d=[];return c.forEach((e=>{const n=r[e];n&&d.push(t[`grid-${e}-${String(n)}`])})),[t.root,n&&t.container,a&&t.item,l&&t.zeroMinWidth,...u,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==s&&t[`wrap-xs-${String(s)}`],...d]}})((({ownerState:e})=>YU({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap})),(function({theme:e,ownerState:t}){return jK({theme:e},RK({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${H0.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:r,rowSpacing:n}=t;let o={};if(r&&0!==n){const t=RK({values:n,breakpoints:e.breakpoints.values});let r;"object"==typeof t&&(r=Y0({breakpoints:e.breakpoints.values,values:t})),o=jK({theme:e},t,((t,n)=>{var o;const a=e.spacing(t);return"0px"!==a?{marginTop:`-${Q0(a)}`,[`& > .${H0.item}`]:{paddingTop:Q0(a)}}:null!=(o=r)&&o.includes(n)?{}:{marginTop:0,[`& > .${H0.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:r,columnSpacing:n}=t;let o={};if(r&&0!==n){const t=RK({values:n,breakpoints:e.breakpoints.values});let r;"object"==typeof t&&(r=Y0({breakpoints:e.breakpoints.values,values:t})),o=jK({theme:e},t,((t,n)=>{var o;const a=e.spacing(t);return"0px"!==a?{width:`calc(100% + ${Q0(a)})`,marginLeft:`-${Q0(a)}`,[`& > .${H0.item}`]:{paddingLeft:Q0(a)}}:null!=(o=r)&&o.includes(n)?{}:{width:"100%",marginLeft:0,[`& > .${H0.item}`]:{paddingLeft:0}}}))}return o}),(function({theme:e,ownerState:t}){let r;return e.breakpoints.keys.reduce(((n,o)=>{let a={};if(t[o]&&(r=t[o]),!r)return n;if(!0===r)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===r)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=RK({values:t.columns,breakpoints:e.breakpoints.values}),s="object"==typeof i?i[o]:i;if(null==s)return n;const l=Math.round(r/s*1e8)/1e6+"%";let c={};if(t.container&&t.item&&0!==t.columnSpacing){const r=e.spacing(t.columnSpacing);if("0px"!==r){const e=`calc(${l} + ${Q0(r)})`;c={flexBasis:e,maxWidth:e}}}a=YU({flexBasis:l,flexGrow:0,maxWidth:l},c)}return 0===e.breakpoints.values[o]?Object.assign(n,a):n[e.breakpoints.up(o)]=a,n}),{})}));const X0=e=>{const{classes:t,container:r,direction:n,item:o,spacing:a,wrap:i,zeroMinWidth:s,breakpoints:l}=e;let c=[];r&&(c=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[`spacing-xs-${String(e)}`];const r=[];return t.forEach((t=>{const n=e[t];if(Number(n)>0){const e=`spacing-${t}-${String(n)}`;r.push(e)}})),r}(a,l));const u=[];l.forEach((t=>{const r=e[t];r&&u.push(`grid-${t}-${String(r)}`)}));return iQ({root:["root",r&&"container",o&&"item",s&&"zeroMinWidth",...c,"row"!==n&&`direction-xs-${String(n)}`,"wrap"!==i&&`wrap-xs-${String(i)}`,...u]},q0,t)},Z0=L.forwardRef((function(e,t){const r=iJ({props:e,name:"MuiGrid"}),{breakpoints:n}=kY(),o=DH(r),{className:a,columns:i,columnSpacing:s,component:l="div",container:c=!1,direction:u="row",item:d=!1,rowSpacing:f,spacing:p=0,wrap:m="wrap",zeroMinWidth:h=!1}=o,v=JU(o,G0),y=f||p,g=s||p,b=L.useContext(W0),w=c?i||12:b,S={},x=YU({},v);n.keys.forEach((e=>{null!=v[e]&&(S[e]=v[e],delete x[e])}));const $=YU({},o,{columns:w,container:c,direction:u,item:d,rowSpacing:y,columnSpacing:g,wrap:m,zeroMinWidth:h,spacing:p},S,{breakpoints:n.keys}),k=X0($);return kj.jsx(W0.Provider,{value:w,children:kj.jsx(J0,YU({ownerState:$,className:UH(k.root,a),as:l,ref:t},x))})}));var e1=Z0;const t1=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function r1(e){return`scale(${e}, ${e**2})`}const n1={entering:{opacity:1,transform:r1(1)},entered:{opacity:1,transform:"none"}},o1="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),a1=L.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:a,in:i,onEnter:s,onEntered:l,onEntering:c,onExit:u,onExited:d,onExiting:f,style:p,timeout:m="auto",TransitionComponent:h=EJ}=e,v=JU(e,t1),y=GG(),g=L.useRef(),b=kY(),w=L.useRef(null),S=WG(w,fQ(o),t),x=e=>t=>{if(e){const r=w.current;void 0===t?e(r):e(r,t)}},$=x(c),k=x(((e,t)=>{AJ(e);const{duration:r,delay:n,easing:o}=TJ({style:p,timeout:m,easing:a},{mode:"enter"});let i;"auto"===m?(i=b.transitions.getAutoHeightDuration(e.clientHeight),g.current=i):i=r,e.style.transition=[b.transitions.create("opacity",{duration:i,delay:n}),b.transitions.create("transform",{duration:o1?i:.666*i,delay:n,easing:o})].join(","),s&&s(e,t)})),_=x(l),E=x(f),C=x((e=>{const{duration:t,delay:r,easing:n}=TJ({style:p,timeout:m,easing:a},{mode:"exit"});let o;"auto"===m?(o=b.transitions.getAutoHeightDuration(e.clientHeight),g.current=o):o=t,e.style.transition=[b.transitions.create("opacity",{duration:o,delay:r}),b.transitions.create("transform",{duration:o1?o:.666*o,delay:o1?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=r1(.75),u&&u(e)})),P=x(d);return kj.jsx(h,YU({appear:n,in:i,nodeRef:w,onEnter:k,onEntered:_,onEntering:$,onExit:C,onExited:P,onExiting:E,addEndListener:e=>{"auto"===m&&y.start(g.current||0,e),r&&r(w.current,e)},timeout:"auto"===m?null:m},v,{children:(e,t)=>L.cloneElement(o,YU({style:YU({opacity:0,transform:r1(.75),visibility:"exited"!==e||i?void 0:"hidden"},n1[e],p,o.props.style),ref:S},t))}))}));a1.muiSupportAuto=!0;var i1=a1;const s1=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],l1=rJ(MX,{shouldForwardProp:e=>tJ(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...TX(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),YU({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${BX.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${BX.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${BX.disabled}, .${BX.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${BX.disabled}:before`]:{borderBottomStyle:"dotted"}})})),c1=rJ(FX,{name:"MuiInput",slot:"Input",overridesResolver:IX})({}),u1=L.forwardRef((function(e,t){var r,n,o,a;const i=iJ({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:f=!1,slotProps:p,slots:m={},type:h="text"}=i,v=JU(i,s1),y=(e=>{const{classes:t,disableUnderline:r}=e;return YU({},t,iQ({root:["root",!r&&"underline"],input:["input"]},VX,t))})(i),g={root:{ownerState:{disableUnderline:s}}},b=(null!=p?p:c)?wK(null!=p?p:c,g):g,w=null!=(r=null!=(n=m.root)?n:l.Root)?r:l1,S=null!=(o=null!=(a=m.input)?a:l.Input)?o:c1;return kj.jsx(LX,YU({slots:{root:w,input:S},slotProps:b,fullWidth:u,inputComponent:d,multiline:f,ref:t,type:h},v,{classes:y}))}));u1.muiName="Input";var d1=u1;function f1(e){return KH("MuiInputLabel",e)}HH("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const p1=["disableAnimation","margin","shrink","variant","className"],m1=rJ(U0,{shouldForwardProp:e=>tJ(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${D0.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,"small"===r.size&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})((({theme:e,ownerState:t})=>YU({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&YU({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&YU({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&YU({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"})))),h1=L.forwardRef((function(e,t){const r=iJ({name:"MuiInputLabel",props:e}),{disableAnimation:n=!1,shrink:o,className:a}=r,i=JU(r,p1),s=CX();let l=o;void 0===l&&s&&(l=s.filled||s.focused||s.adornedStart);const c=_X({props:r,muiFormControl:s,states:["size","variant","required","focused"]}),u=YU({},r,{disableAnimation:n,formControl:s,shrink:l,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),d=(e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:a,variant:i,required:s}=e;return YU({},t,iQ({root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&"normal"!==n&&`size${AK(n)}`,i],asterisk:[s&&"asterisk"]},f1,t))})(u);return kj.jsx(m1,YU({"data-shrink":l,ownerState:u,ref:t,className:UH(d.root,a)},i,{classes:d}))}));var v1=h1;var y1=L.createContext({});function g1(e){return KH("MuiList",e)}HH("MuiList",["root","padding","dense","subheader"]);const b1=["children","className","component","dense","disablePadding","subheader"],w1=rJ("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>YU({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),S1=L.forwardRef((function(e,t){const r=iJ({props:e,name:"MuiList"}),{children:n,className:o,component:a="ul",dense:i=!1,disablePadding:s=!1,subheader:l}=r,c=JU(r,b1),u=L.useMemo((()=>({dense:i})),[i]),d=YU({},r,{component:a,dense:i,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return iQ({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},g1,t)})(d);return kj.jsx(y1.Provider,{value:u,children:kj.jsxs(w1,YU({as:a,className:UH(f.root,o),ref:t,ownerState:d},c,{children:[l,n]}))})}));var x1=S1;function $1(e){return KH("MuiListItem",e)}var k1=HH("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var _1=HH("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function E1(e){return KH("MuiListItemSecondaryAction",e)}HH("MuiListItemSecondaryAction",["root","disableGutters"]);const C1=["className"],P1=rJ("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})((({ownerState:e})=>YU({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),j1=L.forwardRef((function(e,t){const r=iJ({props:e,name:"MuiListItemSecondaryAction"}),{className:n}=r,o=JU(r,C1),a=YU({},r,{disableGutters:L.useContext(y1).disableGutters}),i=(e=>{const{disableGutters:t,classes:r}=e;return iQ({root:["root",t&&"disableGutters"]},E1,r)})(a);return kj.jsx(P1,YU({className:UH(i.root,n),ownerState:a,ref:t},o))}));j1.muiName="ListItemSecondaryAction";var O1=j1;const N1=["className"],R1=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],A1=rJ("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>YU({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&YU({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${_1.root}`]:{paddingRight:48}},{[`&.${k1.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${k1.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:LQ(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${k1.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:LQ(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${k1.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${k1.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:LQ(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:LQ(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),T1=rJ("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),I1=L.forwardRef((function(e,t){const r=iJ({props:e,name:"MuiListItem"}),{alignItems:n="center",autoFocus:o=!1,button:a=!1,children:i,className:s,component:l,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:f}={},dense:p=!1,disabled:m=!1,disableGutters:h=!1,disablePadding:v=!1,divider:y=!1,focusVisibleClassName:g,secondaryAction:b,selected:w=!1,slotProps:S={},slots:x={}}=r,$=JU(r.ContainerProps,N1),k=JU(r,R1),_=L.useContext(y1),E=L.useMemo((()=>({dense:p||_.dense||!1,alignItems:n,disableGutters:h})),[n,_.dense,p,h]),C=L.useRef(null);OG((()=>{o&&C.current&&C.current.focus()}),[o]);const P=L.Children.toArray(i),j=P.length&&IG(P[P.length-1],["ListItemSecondaryAction"]),O=YU({},r,{alignItems:n,autoFocus:o,button:a,dense:E.dense,disabled:m,disableGutters:h,disablePadding:v,divider:y,hasSecondaryAction:j,selected:w}),N=(e=>{const{alignItems:t,button:r,classes:n,dense:o,disabled:a,disableGutters:i,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return iQ({root:["root",o&&"dense",!i&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",r&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},$1,n)})(O),R=WG(C,t),A=x.root||c.Root||A1,T=S.root||u.root||{},I=YU({className:UH(N.root,T.className,s),disabled:m},k);let M=l||"li";return a&&(I.component=l||"div",I.focusVisibleClassName=UH(k1.focusVisible,g),M=aX),j?(M=I.component||l?M:"div","li"===d&&("li"===M?M="div":"li"===I.component&&(I.component="div")),kj.jsx(y1.Provider,{value:E,children:kj.jsxs(T1,YU({as:d,className:UH(N.container,f),ref:R,ownerState:O},$,{children:[kj.jsx(A,YU({},T,!sQ(A)&&{as:M,ownerState:YU({},O,T.ownerState)},I,{children:P})),P.pop()]}))})):kj.jsx(y1.Provider,{value:E,children:kj.jsxs(A,YU({},T,{as:M,ref:R},!sQ(A)&&{ownerState:YU({},O,T.ownerState)},I,{children:[P,b&&kj.jsx(O1,{children:b})]}))})}));var M1=I1;function F1(e){return KH("MuiListItemIcon",e)}var D1=HH("MuiListItemIcon",["root","alignItemsFlexStart"]);const z1=["className"],L1=rJ("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>YU({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),V1=L.forwardRef((function(e,t){const r=iJ({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=JU(r,z1),a=YU({},r,{alignItems:L.useContext(y1).alignItems}),i=(e=>{const{alignItems:t,classes:r}=e;return iQ({root:["root","flex-start"===t&&"alignItemsFlexStart"]},F1,r)})(a);return kj.jsx(L1,YU({className:UH(i.root,n),ownerState:a,ref:t},o))}));var B1=V1;function U1(e){return KH("MuiListItemText",e)}var W1=HH("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const q1=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],K1=rJ("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${W1.primary}`]:t.primary},{[`& .${W1.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})((({ownerState:e})=>YU({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),H1=L.forwardRef((function(e,t){const r=iJ({props:e,name:"MuiListItemText"}),{children:n,className:o,disableTypography:a=!1,inset:i=!1,primary:s,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:u}=r,d=JU(r,q1),{dense:f}=L.useContext(y1);let p=null!=s?s:n,m=c;const h=YU({},r,{disableTypography:a,inset:i,primary:!!p,secondary:!!m,dense:f}),v=(e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:a}=e;return iQ({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},U1,t)})(h);return null==p||p.type===gX||a||(p=kj.jsx(gX,YU({variant:f?"body2":"body1",className:v.primary,component:null!=l&&l.variant?void 0:"span",display:"block"},l,{children:p}))),null==m||m.type===gX||a||(m=kj.jsx(gX,YU({variant:"body2",className:v.secondary,color:"text.secondary",display:"block"},u,{children:m}))),kj.jsxs(K1,YU({className:UH(v.root,o),ownerState:h,ref:t},d,{children:[p,m]}))}));var G1=H1;const Q1=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Y1(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function J1(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function X1(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Z1(e,t,r,n,o,a){let i=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&X1(s,a)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const e2=L.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:a,className:i,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:c,variant:u="selectedMenu"}=e,d=JU(e,Q1),f=L.useRef(null),p=L.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});OG((()=>{n&&f.current.focus()}),[n]),L.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&r){const r=`${oQ(MG(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,f.current.style.width=`calc(100% + ${r})`}return f.current}})),[]);const m=WG(f,t);let h=-1;L.Children.forEach(a,((e,t)=>{L.isValidElement(e)?(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=a.length&&(h=-1))):h===t&&(h+=1,h>=a.length&&(h=-1))}));const v=L.Children.map(a,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),L.cloneElement(e,t)}return e}));return kj.jsx(x1,YU({role:"menu",ref:m,className:i,onKeyDown:e=>{const t=f.current,r=e.key,n=MG(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Z1(t,n,l,s,Y1);else if("ArrowUp"===r)e.preventDefault(),Z1(t,n,l,s,J1);else if("Home"===r)e.preventDefault(),Z1(t,null,l,s,Y1);else if("End"===r)e.preventDefault(),Z1(t,null,l,s,J1);else if(1===r.length){const o=p.current,a=r.toLowerCase(),i=performance.now();o.keys.length>0&&(i-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&a!==o.keys[0]&&(o.repeating=!1)),o.lastTime=i,o.keys.push(a);const l=n&&!o.repeating&&X1(n,o);o.previousKeyMatched&&(l||Z1(t,n,!1,s,Y1,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:n?0:-1},d,{children:v}))}));var t2=e2;function r2(e){return KH("MuiPopover",e)}HH("MuiPopover",["root","paper"]);const n2=["onEntering"],o2=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],a2=["slotProps"];function i2(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function s2(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function l2(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function c2(e){return"function"==typeof e?e():e}const u2=rJ(XZ,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),d2=rJ(zJ,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),f2=L.forwardRef((function(e,t){var r,n,o;const a=iJ({props:e,name:"MuiPopover"}),{action:i,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:f,container:p,elevation:m=8,marginThreshold:h=16,open:v,PaperProps:y={},slots:g,slotProps:b,transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:S=i1,transitionDuration:x="auto",TransitionProps:{onEntering:$}={},disableScrollLock:k=!1}=a,_=JU(a.TransitionProps,n2),E=JU(a,o2),C=null!=(r=null==b?void 0:b.paper)?r:y,P=L.useRef(),j=WG(P,C.ref),O=YU({},a,{anchorOrigin:l,anchorReference:u,elevation:m,marginThreshold:h,externalPaperSlotProps:C,transformOrigin:w,TransitionComponent:S,transitionDuration:x,TransitionProps:_}),N=(e=>{const{classes:t}=e;return iQ({root:["root"],paper:["paper"]},r2,t)})(O),R=L.useCallback((()=>{if("anchorPosition"===u)return c;const e=c2(s),t=(e&&1===e.nodeType?e:MG(P.current).body).getBoundingClientRect();return{top:t.top+i2(t,l.vertical),left:t.left+s2(t,l.horizontal)}}),[s,l.horizontal,l.vertical,c,u]),A=L.useCallback((e=>({vertical:i2(e,w.vertical),horizontal:s2(e,w.horizontal)})),[w.horizontal,w.vertical]),T=L.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=A(t);if("none"===u)return{top:null,left:null,transformOrigin:l2(r)};const n=R();let o=n.top-r.vertical,a=n.left-r.horizontal;const i=o+t.height,l=a+t.width,c=FG(c2(s)),d=c.innerHeight-h,f=c.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,r.vertical+=e}else if(null!==h&&i>d){const e=i-d;o-=e,r.vertical+=e}if(null!==h&&a<h){const e=a-h;a-=e,r.horizontal+=e}else if(l>f){const e=l-f;a-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(a)}px`,transformOrigin:l2(r)}}),[s,u,R,A,h]),[I,M]=L.useState(v),F=L.useCallback((()=>{const e=P.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,M(!0)}),[T]);L.useEffect((()=>(k&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[s,k,F]);L.useEffect((()=>{v&&F()})),L.useImperativeHandle(i,(()=>v?{updatePosition:()=>{F()}}:null),[v,F]),L.useEffect((()=>{if(!v)return;const e=TG((()=>{F()})),t=FG(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,v,F]);let D=x;"auto"!==x||S.muiSupportAuto||(D=void 0);const z=p||(s?MG(c2(s)).body:void 0),V=null!=(n=null==g?void 0:g.root)?n:u2,B=null!=(o=null==g?void 0:g.paper)?o:d2,U=dQ({elementType:B,externalSlotProps:YU({},C,{style:I?C.style:YU({},C.style,{opacity:0})}),additionalProps:{elevation:m,ref:j},ownerState:O,className:UH(N.paper,null==C?void 0:C.className)}),W=dQ({elementType:V,externalSlotProps:(null==b?void 0:b.root)||{},externalForwardedProps:E,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:v},ownerState:O,className:UH(N.root,f)}),{slotProps:q}=W,K=JU(W,a2);return kj.jsx(V,YU({},K,!sQ(V)&&{slotProps:q,disableScrollLock:k},{children:kj.jsx(S,YU({appear:!0,in:v,onEntering:(e,t)=>{$&&$(e,t),F()},onExited:()=>{M(!1)},timeout:D},_,{children:kj.jsx(B,YU({},U,{children:d}))}))}))}));var p2=f2;function m2(e){return KH("MuiMenu",e)}HH("MuiMenu",["root","paper","list"]);const h2=["onEntering"],v2=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],y2={vertical:"top",horizontal:"right"},g2={vertical:"top",horizontal:"left"},b2=rJ(p2,{shouldForwardProp:e=>tJ(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),w2=rJ(d2,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),S2=rJ(t2,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),x2=L.forwardRef((function(e,t){var r,n;const o=iJ({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:i,className:s,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:f={},PopoverClasses:p,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:v="selectedMenu",slots:y={},slotProps:g={}}=o,b=JU(o.TransitionProps,h2),w=JU(o,v2),S=wQ(),x=YU({},o,{autoFocus:a,disableAutoFocusItem:l,MenuListProps:c,onEntering:h,PaperProps:f,transitionDuration:m,TransitionProps:b,variant:v}),$=(e=>{const{classes:t}=e;return iQ({root:["root"],paper:["paper"],list:["list"]},m2,t)})(x),k=a&&!l&&d,_=L.useRef(null);let E=-1;L.Children.map(i,((e,t)=>{L.isValidElement(e)&&(e.props.disabled||("selectedMenu"===v&&e.props.selected||-1===E)&&(E=t))}));const C=null!=(r=y.paper)?r:w2,P=null!=(n=g.paper)?n:f,j=dQ({elementType:y.root,externalSlotProps:g.root,ownerState:x,className:[$.root,s]}),O=dQ({elementType:C,externalSlotProps:P,ownerState:x,className:$.paper});return kj.jsx(b2,YU({onClose:u,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?y2:g2,slots:{paper:C,root:y.root},slotProps:{root:j,paper:O},open:d,ref:t,transitionDuration:m,TransitionProps:YU({onEntering:(e,t)=>{_.current&&_.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),h&&h(e,t)}},b),ownerState:x},w,{classes:p,children:kj.jsx(S2,YU({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),u&&u(e,"tabKeyDown"))},actions:_,autoFocus:a&&(-1===E||l),autoFocusItem:k,variant:v},c,{className:UH($.list,c.className),children:i}))}))}));var $2=x2;function k2(e){return KH("MuiMenuItem",e)}var _2=HH("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const E2=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],C2=rJ(aX,{shouldForwardProp:e=>tJ(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>YU({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${_2.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:LQ(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${_2.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:LQ(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${_2.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:LQ(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:LQ(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${_2.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${_2.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${e0.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${e0.inset}`]:{marginLeft:52},[`& .${W1.root}`]:{marginTop:0,marginBottom:0},[`& .${W1.inset}`]:{paddingLeft:36},[`& .${D1.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&YU({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${D1.root} svg`]:{fontSize:"1.25rem"}})))),P2=L.forwardRef((function(e,t){const r=iJ({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:a=!1,divider:i=!1,disableGutters:s=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:u,className:d}=r,f=JU(r,E2),p=L.useContext(y1),m=L.useMemo((()=>({dense:a||p.dense||!1,disableGutters:s})),[p.dense,a,s]),h=L.useRef(null);OG((()=>{n&&h.current&&h.current.focus()}),[n]);const v=YU({},r,{dense:m.dense,divider:i,disableGutters:s}),y=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=e;return YU({},i,iQ({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},k2,i))})(r),g=WG(h,t);let b;return r.disabled||(b=void 0!==u?u:-1),kj.jsx(y1.Provider,{value:m,children:kj.jsx(C2,YU({ref:g,role:c,tabIndex:b,component:o,focusVisibleClassName:UH(y.focusVisible,l),className:UH(y.root,d)},f,{ownerState:v,classes:y}))})}));var j2=P2;function O2(e){return KH("MuiNativeSelect",e)}var N2=HH("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const R2=["className","disabled","error","IconComponent","inputRef","variant"],A2=({ownerState:e,theme:t})=>YU({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":YU({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${N2.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),T2=rJ("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:tJ,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${N2.multiple}`]:t.multiple}]}})(A2),I2=({ownerState:e,theme:t})=>YU({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${N2.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),M2=rJ("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${AK(r.variant)}`],r.open&&t.iconOpen]}})(I2),F2=L.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:a,inputRef:i,variant:s="standard"}=e,l=JU(e,R2),c=YU({},e,{disabled:n,variant:s,error:o}),u=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e;return iQ({select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${AK(r)}`,a&&"iconOpen",n&&"disabled"]},O2,t)})(c);return kj.jsxs(L.Fragment,{children:[kj.jsx(T2,YU({ownerState:c,className:UH(u.select,r),disabled:n,ref:i||t},l)),e.multiple?null:kj.jsx(M2,{as:a,ownerState:c,className:u.icon})]})}));var D2,z2=F2;const L2=["children","classes","className","label","notched"],V2=rJ("fieldset",{shouldForwardProp:tJ})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),B2=rJ("legend",{shouldForwardProp:tJ})((({ownerState:e,theme:t})=>YU({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&YU({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));const U2=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],W2=rJ(MX,{shouldForwardProp:e=>tJ(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:TX})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return YU({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${WX.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${WX.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${WX.focused} .${WX.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${WX.error} .${WX.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${WX.disabled} .${WX.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&YU({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),q2=rJ((function(e){const{className:t,label:r,notched:n}=e,o=JU(e,L2),a=null!=r&&""!==r,i=YU({},e,{notched:n,withLabel:a});return kj.jsx(V2,YU({"aria-hidden":!0,className:t,ownerState:i},o,{children:kj.jsx(B2,{ownerState:i,children:a?kj.jsx("span",{children:r}):D2||(D2=kj.jsx("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),K2=rJ(FX,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:IX})((({theme:e,ownerState:t})=>YU({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),H2=L.forwardRef((function(e,t){var r,n,o,a,i;const s=iJ({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:c=!1,inputComponent:u="input",label:d,multiline:f=!1,notched:p,slots:m={},type:h="text"}=s,v=JU(s,U2),y=(e=>{const{classes:t}=e;return YU({},t,iQ({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},UX,t))})(s),g=CX(),b=_X({props:s,muiFormControl:g,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),w=YU({},s,{color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:g,fullWidth:c,hiddenLabel:b.hiddenLabel,multiline:f,size:b.size,type:h}),S=null!=(r=null!=(n=m.root)?n:l.Root)?r:W2,x=null!=(o=null!=(a=m.input)?a:l.Input)?o:K2;return kj.jsx(LX,YU({slots:{root:S,input:x},renderSuffix:e=>kj.jsx(q2,{ownerState:w,className:y.notchedOutline,label:null!=d&&""!==d&&b.required?i||(i=kj.jsxs(L.Fragment,{children:[d," ","*"]})):d,notched:void 0!==p?p:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:u,multiline:f,ref:t,type:h},v,{classes:YU({},y,{notchedOutline:null})}))}));H2.muiName="Input";var G2=H2,Q2=fJ(kj.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),Y2=fJ(kj.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked");const J2=rJ("span",{shouldForwardProp:tJ})({position:"relative",display:"flex"}),X2=rJ(Q2)({transform:"scale(1)"}),Z2=rJ(Y2)((({theme:e,ownerState:t})=>YU({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})})));function e5(e){const{checked:t=!1,classes:r={},fontSize:n}=e,o=YU({},e,{checked:t});return kj.jsxs(J2,{className:r.root,ownerState:o,children:[kj.jsx(X2,{fontSize:n,className:r.background,ownerState:o}),kj.jsx(Z2,{fontSize:n,className:r.dot,ownerState:o})]})}var t5=L.createContext(void 0);function r5(e){return KH("MuiRadio",e)}var n5=HH("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]);const o5=["checked","checkedIcon","color","icon","name","onChange","size","className"],a5=rJ($Z,{shouldForwardProp:e=>tJ(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"medium"!==r.size&&t[`size${AK(r.size)}`],t[`color${AK(r.color)}`]]}})((({theme:e,ownerState:t})=>YU({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:LQ("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${n5.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${n5.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const i5=kj.jsx(e5,{checked:!0}),s5=kj.jsx(e5,{}),l5=L.forwardRef((function(e,t){var r,n;const o=iJ({props:e,name:"MuiRadio"}),{checked:a,checkedIcon:i=i5,color:s="primary",icon:l=s5,name:c,onChange:u,size:d="medium",className:f}=o,p=JU(o,o5),m=YU({},o,{color:s,size:d}),h=(e=>{const{classes:t,color:r,size:n}=e;return YU({},t,iQ({root:["root",`color${AK(r)}`,"medium"!==n&&`size${AK(n)}`]},r5,t))})(m),v=L.useContext(t5);let y=a;const g=AG(u,v&&v.onChange);let b=c;return v&&(void 0===y&&(y=function(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}(v.value,o.value)),void 0===b&&(b=v.name)),kj.jsx(a5,YU({type:"radio",icon:L.cloneElement(l,{fontSize:null!=(r=s5.props.fontSize)?r:d}),checkedIcon:L.cloneElement(i,{fontSize:null!=(n=i5.props.fontSize)?n:d}),ownerState:m,classes:h,name:b,checked:y,onChange:g,ref:t,className:UH(h.root,f)},p))}));var c5=l5;function u5(e){return KH("MuiRadioGroup",e)}HH("MuiRadioGroup",["root","row","error"]);const d5=["actions","children","className","defaultValue","name","onChange","value"],f5=L.forwardRef((function(e,t){const{actions:r,children:n,className:o,defaultValue:a,name:i,onChange:s,value:l}=e,c=JU(e,d5),u=L.useRef(null),d=(e=>{const{classes:t,row:r,error:n}=e;return iQ({root:["root",r&&"row",n&&"error"]},u5,t)})(e),[f,p]=BG({controlled:l,default:a,name:"RadioGroup"});L.useImperativeHandle(r,(()=>({focus:()=>{let e=u.current.querySelector("input:not(:disabled):checked");e||(e=u.current.querySelector("input:not(:disabled)")),e&&e.focus()}})),[]);const m=WG(t,u),h=VG(i),v=L.useMemo((()=>({name:h,onChange(e){p(e.target.value),s&&s(e,e.target.value)},value:f})),[h,s,p,f]);return kj.jsx(t5.Provider,{value:v,children:kj.jsx(j0,YU({role:"radiogroup",ref:m,className:UH(d.root,o)},c,{children:n}))})}));var p5=f5;function m5(e){return KH("MuiSelect",e)}var h5,v5=HH("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const y5=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],g5=rJ("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${v5.select}`]:t.select},{[`&.${v5.select}`]:t[r.variant]},{[`&.${v5.error}`]:t.error},{[`&.${v5.multiple}`]:t.multiple}]}})(A2,{[`&.${v5.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),b5=rJ("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${AK(r.variant)}`],r.open&&t.iconOpen]}})(I2),w5=rJ("input",{shouldForwardProp:e=>eJ(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function S5(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function x5(e){return null==e||"string"==typeof e&&!e.trim()}const $5=L.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:a,autoWidth:i,children:s,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:f,error:p=!1,IconComponent:m,inputRef:h,labelId:v,MenuProps:y={},multiple:g,name:b,onBlur:w,onChange:S,onClose:x,onFocus:$,onOpen:k,open:_,readOnly:E,renderValue:C,SelectDisplayProps:P={},tabIndex:j,value:O,variant:N="standard"}=e,R=JU(e,y5),[A,T]=BG({controlled:O,default:u,name:"Select"}),[I,M]=BG({controlled:_,default:c,name:"Select"}),F=L.useRef(null),D=L.useRef(null),[z,V]=L.useState(null),{current:B}=L.useRef(null!=_),[U,W]=L.useState(),q=WG(t,h),K=L.useCallback((e=>{D.current=e,e&&V(e)}),[]),H=null==z?void 0:z.parentNode;L.useImperativeHandle(q,(()=>({focus:()=>{D.current.focus()},node:F.current,value:A})),[A]),L.useEffect((()=>{c&&I&&z&&!B&&(W(i?null:H.clientWidth),D.current.focus())}),[z,i]),L.useEffect((()=>{a&&D.current.focus()}),[a]),L.useEffect((()=>{if(!v)return;const e=MG(D.current).getElementById(v);if(e){const t=()=>{getSelection().isCollapsed&&D.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[v]);const G=(e,t)=>{e?k&&k(t):x&&x(t),B||(W(i?null:H.clientWidth),M(e))},Q=L.Children.toArray(s),Y=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(g){r=Array.isArray(A)?A.slice():[];const t=A.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),A!==r&&(T(r),S)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:b}}),S(o,e)}g||G(!1,t)}},J=null!==z&&I;let X,Z;delete R["aria-invalid"];const ee=[];let te=!1;(OX({value:A})||f)&&(C?X=C(A):te=!0);const re=Q.map((e=>{if(!L.isValidElement(e))return null;let t;if(g){if(!Array.isArray(A))throw new Error(HU(2));t=A.some((t=>S5(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=S5(A,e.props.value),t&&te&&(Z=e.props.children);return L.cloneElement(e,{"aria-selected":t?"true":"false",onClick:Y(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(X=g?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Z);let ne,oe=U;!i&&B&&z&&(oe=H.clientWidth),ne=void 0!==j?j:d?null:0;const ae=P.id||(b?`mui-component-select-${b}`:void 0),ie=YU({},e,{variant:N,value:A,open:J,error:p}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e;return iQ({select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${AK(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},m5,t)})(ie),le=YU({},y.PaperProps,null==(r=y.slotProps)?void 0:r.paper),ce=VG();return kj.jsxs(L.Fragment,{children:[kj.jsx(g5,YU({ref:K,tabIndex:ne,role:"combobox","aria-controls":ce,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[v,ae].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!E){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),G(!0,e))}},onMouseDown:d||E?null:e=>{0===e.button&&(e.preventDefault(),D.current.focus(),G(!0,e))},onBlur:e=>{!J&&w&&(Object.defineProperty(e,"target",{writable:!0,value:{value:A,name:b}}),w(e))},onFocus:$},P,{ownerState:ie,className:UH(P.className,se.select,l),id:ae,children:x5(X)?h5||(h5=kj.jsx("span",{className:"notranslate",children:"​"})):X})),kj.jsx(w5,YU({"aria-invalid":p,value:Array.isArray(A)?A.join(","):A,name:b,ref:F,"aria-hidden":!0,onChange:e=>{const t=Q.find((t=>t.props.value===e.target.value));void 0!==t&&(T(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:a,ownerState:ie},R)),kj.jsx(b5,{as:m,className:se.icon,ownerState:ie}),kj.jsx($2,YU({id:`menu-${b||""}`,anchorEl:H,open:J,onClose:e=>{G(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},y,{MenuListProps:YU({"aria-labelledby":v,role:"listbox","aria-multiselectable":g?"true":void 0,disableListWrap:!0,id:ce},y.MenuListProps),slotProps:YU({},y.slotProps,{paper:YU({},le,{style:YU({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})}));var k5=$5;const _5=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],E5=["root"],C5={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>tJ(e)&&"variant"!==e,slot:"Root"},P5=rJ(d1,C5)(""),j5=rJ(G2,C5)(""),O5=rJ(u0,C5)(""),N5=L.forwardRef((function(e,t){const r=iJ({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:a={},className:i,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:c=HX,id:u,input:d,inputProps:f,label:p,labelId:m,MenuProps:h,multiple:v=!1,native:y=!1,onClose:g,onOpen:b,open:w,renderValue:S,SelectDisplayProps:x,variant:$="outlined"}=r,k=JU(r,_5),_=y?z2:k5,E=_X({props:r,muiFormControl:CX(),states:["variant","error"]}),C=E.variant||$,P=YU({},r,{variant:C,classes:a}),j=(e=>{const{classes:t}=e;return t})(P),O=JU(j,E5),N=d||{standard:kj.jsx(P5,{ownerState:P}),outlined:kj.jsx(j5,{label:p,ownerState:P}),filled:kj.jsx(O5,{ownerState:P})}[C],R=WG(t,fQ(N));return kj.jsx(L.Fragment,{children:L.cloneElement(N,YU({inputComponent:_,inputProps:YU({children:o,error:E.error,IconComponent:c,variant:C,type:void 0,multiple:v},y?{id:u}:{autoWidth:n,defaultOpen:s,displayEmpty:l,labelId:m,MenuProps:h,onClose:g,onOpen:b,open:w,renderValue:S,SelectDisplayProps:YU({id:u},x)},f,{classes:f?wK(O,f.classes):O},d?d.props.inputProps:{})},(v&&y||l)&&"outlined"===C?{notched:!0}:{},{ref:R,className:UH(N.props.className,i,j.root)},!d&&{variant:C},k))})}));N5.muiName="Select";var R5=N5;function A5(e,t){return e-t}function T5(e,t){var r;const{index:n}=null!=(r=e.reduce(((e,r,n)=>{const o=Math.abs(t-r);return null===e||o<e.distance||o===e.distance?{distance:o,index:n}:e}),null))?r:{};return n}function I5(e,t){if(void 0!==t.current&&e.changedTouches){const r=e;for(let e=0;e<r.changedTouches.length;e+=1){const n=r.changedTouches[e];if(n.identifier===t.current)return{x:n.clientX,y:n.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function M5(e,t,r){return 100*(e-t)/(r-t)}function F5(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(function(e){if(Math.abs(e)<1){const t=e.toExponential().split("e-"),r=t[0].split(".")[1];return(r?r.length:0)+parseInt(t[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}(t)))}function D5({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(A5)}function z5({sliderRef:e,activeIndex:t,setActive:r}){var n,o;const a=MG(e.current);var i;null!=(n=e.current)&&n.contains(a.activeElement)&&Number(null==a||null==(o=a.activeElement)?void 0:o.getAttribute("data-index"))===t||(null==(i=e.current)||i.querySelector(`[type="range"][data-index="${t}"]`).focus());r&&r(t)}function L5(e,t){return"number"==typeof e&&"number"==typeof t?e===t:"object"==typeof e&&"object"==typeof t&&function(e,t,r=((e,t)=>e===t)){return e.length===t.length&&e.every(((e,n)=>r(e,t[n])))}(e,t)}const V5={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},B5=e=>e;let U5;function W5(){return void 0===U5&&(U5="undefined"==typeof CSS||"function"!=typeof CSS.supports||CSS.supports("touch-action","none")),U5}function q5(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:s=100,min:l=0,name:c,onChange:u,onChangeCommitted:d,orientation:f="horizontal",rootRef:p,scale:m=B5,step:h=1,shiftStep:v=10,tabIndex:y,value:g}=e,b=L.useRef(void 0),[w,S]=L.useState(-1),[x,$]=L.useState(-1),[k,_]=L.useState(!1),E=L.useRef(0),[C,P]=BG({controlled:g,default:null!=r?r:l,name:"Slider"}),j=u&&((e,t,r)=>{const n=e.nativeEvent||e,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:t,name:c}}),u(o,t,r)}),O=Array.isArray(C);let N=O?C.slice().sort(A5):[C];N=N.map((e=>null==e?l:NG(e,l,s)));const R=!0===i&&null!==h?[...Array(Math.floor((s-l)/h)+1)].map(((e,t)=>({value:l+h*t}))):i||[],A=R.map((e=>e.value)),{isFocusVisibleRef:T,onBlur:I,onFocus:M,ref:F}=nQ(),[D,z]=L.useState(-1),V=L.useRef(null),B=WG(F,V),U=WG(p,B),W=e=>t=>{var r;const n=Number(t.currentTarget.getAttribute("data-index"));M(t),!0===T.current&&z(n),$(n),null==e||null==(r=e.onFocus)||r.call(e,t)},q=e=>t=>{var r;I(t),!1===T.current&&z(-1),$(-1),null==e||null==(r=e.onBlur)||r.call(e,t)},K=(e,t)=>{const r=Number(e.currentTarget.getAttribute("data-index")),n=N[r],a=A.indexOf(n);let i=t;if(R&&null==h){const e=A[A.length-1];i=i>e?e:i<A[0]?A[0]:i<n?A[a-1]:A[a+1]}if(i=NG(i,l,s),O){o&&(i=NG(i,N[r-1]||-1/0,N[r+1]||1/0));const e=i;i=D5({values:N,newValue:i,index:r});let t=r;o||(t=i.indexOf(e)),z5({sliderRef:V,activeIndex:t})}P(i),z(r),j&&!L5(i,C)&&j(e,i,r),d&&d(e,i)},H=e=>t=>{var r;if(null!==h){const e=Number(t.currentTarget.getAttribute("data-index")),r=N[e];let n=null;("ArrowLeft"===t.key||"ArrowDown"===t.key)&&t.shiftKey||"PageDown"===t.key?n=Math.max(r-v,l):(("ArrowRight"===t.key||"ArrowUp"===t.key)&&t.shiftKey||"PageUp"===t.key)&&(n=Math.min(r+v,s)),null!==n&&(K(t,n),t.preventDefault())}null==e||null==(r=e.onKeyDown)||r.call(e,t)};OG((()=>{var e;n&&V.current.contains(document.activeElement)&&(null==(e=document.activeElement)||e.blur())}),[n]),n&&-1!==w&&S(-1),n&&-1!==D&&z(-1);const G=L.useRef(void 0);let Q=f;a&&"horizontal"===f&&(Q+="-reverse");const Y=({finger:e,move:t=!1})=>{const{current:r}=V,{width:n,height:a,bottom:i,left:c}=r.getBoundingClientRect();let u,d;if(u=0===Q.indexOf("vertical")?(i-e.y)/a:(e.x-c)/n,-1!==Q.indexOf("-reverse")&&(u=1-u),d=function(e,t,r){return(r-t)*e+t}(u,l,s),h)d=F5(d,h,l);else{const e=T5(A,d);d=A[e]}d=NG(d,l,s);let f=0;if(O){f=t?G.current:T5(N,d),o&&(d=NG(d,N[f-1]||-1/0,N[f+1]||1/0));const e=d;d=D5({values:N,newValue:d,index:f}),o&&t||(f=d.indexOf(e),G.current=f)}return{newValue:d,activeIndex:f}},J=UG((e=>{const t=I5(e,b);if(!t)return;if(E.current+=1,"mousemove"===e.type&&0===e.buttons)return void X(e);const{newValue:r,activeIndex:n}=Y({finger:t,move:!0});z5({sliderRef:V,activeIndex:n,setActive:S}),P(r),!k&&E.current>2&&_(!0),j&&!L5(r,C)&&j(e,r,n)})),X=UG((e=>{const t=I5(e,b);if(_(!1),!t)return;const{newValue:r}=Y({finger:t,move:!0});S(-1),"touchend"===e.type&&$(-1),d&&d(e,r),b.current=void 0,ee()})),Z=UG((e=>{if(n)return;W5()||e.preventDefault();const t=e.changedTouches[0];null!=t&&(b.current=t.identifier);const r=I5(e,b);if(!1!==r){const{newValue:t,activeIndex:n}=Y({finger:r});z5({sliderRef:V,activeIndex:n,setActive:S}),P(t),j&&!L5(t,C)&&j(e,t,n)}E.current=0;const o=MG(V.current);o.addEventListener("touchmove",J,{passive:!0}),o.addEventListener("touchend",X,{passive:!0})})),ee=L.useCallback((()=>{const e=MG(V.current);e.removeEventListener("mousemove",J),e.removeEventListener("mouseup",X),e.removeEventListener("touchmove",J),e.removeEventListener("touchend",X)}),[X,J]);L.useEffect((()=>{const{current:e}=V;return e.addEventListener("touchstart",Z,{passive:W5()}),()=>{e.removeEventListener("touchstart",Z),ee()}}),[ee,Z]),L.useEffect((()=>{n&&ee()}),[n,ee]);const te=M5(O?N[0]:l,l,s),re=M5(N[N.length-1],l,s)-te,ne=e=>t=>{var r;null==(r=e.onMouseLeave)||r.call(e,t),$(-1)};return{active:w,axis:Q,axisProps:V5,dragging:k,focusedThumbIndex:D,getHiddenInputProps:(r={})=>{var o;const i=lQ(r);var u;const d=YU({},i,{onChange:(u=i||{},e=>{var t;null==(t=u.onChange)||t.call(u,e),K(e,e.target.valueAsNumber)}),onFocus:W(i||{}),onBlur:q(i||{}),onKeyDown:H(i||{})});return YU({tabIndex:y,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":m(s),"aria-valuemin":m(l),name:c,type:"range",min:e.min,max:e.max,step:null===e.step&&e.marks?"any":null!=(o=e.step)?o:void 0,disabled:n},r,d,{style:YU({},aQ,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:(e={})=>{const t=lQ(e);var r;const o=YU({},t,{onMouseDown:(r=t||{},e=>{var t;if(null==(t=r.onMouseDown)||t.call(r,e),n)return;if(e.defaultPrevented)return;if(0!==e.button)return;e.preventDefault();const o=I5(e,b);if(!1!==o){const{newValue:t,activeIndex:r}=Y({finger:o});z5({sliderRef:V,activeIndex:r,setActive:S}),P(t),j&&!L5(t,C)&&j(e,t,r)}E.current=0;const a=MG(V.current);a.addEventListener("mousemove",J,{passive:!0}),a.addEventListener("mouseup",X)})});return YU({},e,{ref:U},o)},getThumbProps:(e={})=>{const t=lQ(e),r={onMouseOver:(n=t||{},e=>{var t;null==(t=n.onMouseOver)||t.call(n,e);const r=Number(e.currentTarget.getAttribute("data-index"));$(r)}),onMouseLeave:ne(t||{})};var n;return YU({},e,t,r)},marks:R,open:x,range:O,rootRef:U,trackLeap:re,trackOffset:te,values:N,getThumbStyle:e=>({pointerEvents:-1!==w&&w!==e?"none":void 0})}}var K5=e=>!e||!sQ(e);function H5(e){return KH("MuiSlider",e)}var G5=HH("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);const Q5=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Y5(e){return e}const J5=rJ("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${AK(r.color)}`],"medium"!==r.size&&t[`size${AK(r.size)}`],r.marked&&t.marked,"vertical"===r.orientation&&t.vertical,"inverted"===r.track&&t.trackInverted,!1===r.track&&t.trackFalse]}})((({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${G5.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${G5.dragging}`]:{[`& .${G5.thumb}, & .${G5.track}`]:{transition:"none"}},variants:[...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var r;return(null!=(r=e.vars)?r:e).palette[t].main})).map((t=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}})),X5=rJ("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),Z5=rJ("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var r;return(null!=(r=e.vars)?r:e).palette[t].main})).map((t=>({props:{color:t,track:"inverted"},style:YU({},e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:YU({backgroundColor:UQ(e.palette[t].main,.62),borderColor:UQ(e.palette[t].main,.62)},e.applyStyles("dark",{backgroundColor:VQ(e.palette[t].main,.5)}),e.applyStyles("dark",{borderColor:VQ(e.palette[t].main,.5)})))})))]}})),e4=rJ("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${AK(r.color)}`],"medium"!==r.size&&t[`thumbSize${AK(r.size)}`]]}})((({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${G5.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var r;return(null!=(r=e.vars)?r:e).palette[t].main})).map((t=>({props:{color:t},style:{[`&:hover, &.${G5.focusVisible}`]:YU({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${LQ(e.palette[t].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${G5.active}`]:YU({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${LQ(e.palette[t].main,.16)}`})}})))]}})),t4=rJ((function(e){const{children:t,className:r,value:n}=e,o=(e=>{const{open:t}=e;return{offset:UH(t&&G5.valueLabelOpen),circle:G5.valueLabelCircle,label:G5.valueLabelLabel}})(e);return t?L.cloneElement(t,{className:UH(t.props.className)},kj.jsxs(L.Fragment,{children:[t.props.children,kj.jsx("span",{className:UH(o.offset,r),"aria-hidden":!0,children:kj.jsx("span",{className:o.circle,children:kj.jsx("span",{className:o.label,children:n})})})]})):null}),{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})((({theme:e})=>YU({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${G5.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${G5.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]}))),r4=rJ("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>eJ(e)&&"markActive"!==e,overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})((({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),n4=rJ("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>eJ(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})((({theme:e})=>YU({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),o4=({children:e})=>e,a4=L.forwardRef((function(e,t){var r,n,o,a,i,s,l,c,u,d,f,p,m,h,v,y,g,b,w,S,x,$,k,_;const E=iJ({props:e,name:"MuiSlider"}),C=wQ(),{"aria-label":P,"aria-valuetext":j,"aria-labelledby":O,component:N="span",components:R={},componentsProps:A={},color:T="primary",classes:I,className:M,disableSwap:F=!1,disabled:D=!1,getAriaLabel:z,getAriaValueText:V,marks:B=!1,max:U=100,min:W=0,orientation:q="horizontal",shiftStep:K=10,size:H="medium",step:G=1,scale:Q=Y5,slotProps:Y,slots:J,track:X="normal",valueLabelDisplay:Z="off",valueLabelFormat:ee=Y5}=E,te=JU(E,Q5),re=YU({},E,{isRtl:C,max:U,min:W,classes:I,disabled:D,disableSwap:F,orientation:q,marks:B,color:T,size:H,step:G,shiftStep:K,scale:Q,track:X,valueLabelDisplay:Z,valueLabelFormat:ee}),{axisProps:ne,getRootProps:oe,getHiddenInputProps:ae,getThumbProps:ie,open:se,active:le,axis:ce,focusedThumbIndex:ue,range:de,dragging:fe,marks:pe,values:me,trackOffset:he,trackLeap:ve,getThumbStyle:ye}=q5(YU({},re,{rootRef:t}));re.marked=pe.length>0&&pe.some((e=>e.label)),re.dragging=fe,re.focusedThumbIndex=ue;const ge=(e=>{const{disabled:t,dragging:r,marked:n,orientation:o,track:a,classes:i,color:s,size:l}=e;return iQ({root:["root",t&&"disabled",r&&"dragging",n&&"marked","vertical"===o&&"vertical","inverted"===a&&"trackInverted",!1===a&&"trackFalse",s&&`color${AK(s)}`,l&&`size${AK(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${AK(l)}`,s&&`thumbColor${AK(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]},H5,i)})(re),be=null!=(r=null!=(n=null==J?void 0:J.root)?n:R.Root)?r:J5,we=null!=(o=null!=(a=null==J?void 0:J.rail)?a:R.Rail)?o:X5,Se=null!=(i=null!=(s=null==J?void 0:J.track)?s:R.Track)?i:Z5,xe=null!=(l=null!=(c=null==J?void 0:J.thumb)?c:R.Thumb)?l:e4,$e=null!=(u=null!=(d=null==J?void 0:J.valueLabel)?d:R.ValueLabel)?u:t4,ke=null!=(f=null!=(p=null==J?void 0:J.mark)?p:R.Mark)?f:r4,_e=null!=(m=null!=(h=null==J?void 0:J.markLabel)?h:R.MarkLabel)?m:n4,Ee=null!=(v=null!=(y=null==J?void 0:J.input)?y:R.Input)?v:"input",Ce=null!=(g=null==Y?void 0:Y.root)?g:A.root,Pe=null!=(b=null==Y?void 0:Y.rail)?b:A.rail,je=null!=(w=null==Y?void 0:Y.track)?w:A.track,Oe=null!=(S=null==Y?void 0:Y.thumb)?S:A.thumb,Ne=null!=(x=null==Y?void 0:Y.valueLabel)?x:A.valueLabel,Re=null!=($=null==Y?void 0:Y.mark)?$:A.mark,Ae=null!=(k=null==Y?void 0:Y.markLabel)?k:A.markLabel,Te=null!=(_=null==Y?void 0:Y.input)?_:A.input,Ie=dQ({elementType:be,getSlotProps:oe,externalSlotProps:Ce,externalForwardedProps:te,additionalProps:YU({},K5(be)&&{as:N}),ownerState:YU({},re,null==Ce?void 0:Ce.ownerState),className:[ge.root,M]}),Me=dQ({elementType:we,externalSlotProps:Pe,ownerState:re,className:ge.rail}),Fe=dQ({elementType:Se,externalSlotProps:je,additionalProps:{style:YU({},ne[ce].offset(he),ne[ce].leap(ve))},ownerState:YU({},re,null==je?void 0:je.ownerState),className:ge.track}),De=dQ({elementType:xe,getSlotProps:ie,externalSlotProps:Oe,ownerState:YU({},re,null==Oe?void 0:Oe.ownerState),className:ge.thumb}),ze=dQ({elementType:$e,externalSlotProps:Ne,ownerState:YU({},re,null==Ne?void 0:Ne.ownerState),className:ge.valueLabel}),Le=dQ({elementType:ke,externalSlotProps:Re,ownerState:re,className:ge.mark}),Ve=dQ({elementType:_e,externalSlotProps:Ae,ownerState:re,className:ge.markLabel}),Be=dQ({elementType:Ee,getSlotProps:ae,externalSlotProps:Te,ownerState:re});return kj.jsxs(be,YU({},Ie,{children:[kj.jsx(we,YU({},Me)),kj.jsx(Se,YU({},Fe)),pe.filter((e=>e.value>=W&&e.value<=U)).map(((e,t)=>{const r=M5(e.value,W,U),n=ne[ce].offset(r);let o;return o=!1===X?-1!==me.indexOf(e.value):"normal"===X&&(de?e.value>=me[0]&&e.value<=me[me.length-1]:e.value<=me[0])||"inverted"===X&&(de?e.value<=me[0]||e.value>=me[me.length-1]:e.value>=me[0]),kj.jsxs(L.Fragment,{children:[kj.jsx(ke,YU({"data-index":t},Le,!sQ(ke)&&{markActive:o},{style:YU({},n,Le.style),className:UH(Le.className,o&&ge.markActive)})),null!=e.label?kj.jsx(_e,YU({"aria-hidden":!0,"data-index":t},Ve,!sQ(_e)&&{markLabelActive:o},{style:YU({},n,Ve.style),className:UH(ge.markLabel,Ve.className,o&&ge.markLabelActive),children:e.label})):null]},t)})),me.map(((e,t)=>{const r=M5(e,W,U),n=ne[ce].offset(r),o="off"===Z?o4:$e;return kj.jsx(o,YU({},!sQ(o)&&{valueLabelFormat:ee,valueLabelDisplay:Z,value:"function"==typeof ee?ee(Q(e),t):ee,index:t,open:se===t||le===t||"on"===Z,disabled:D},ze,{children:kj.jsx(xe,YU({"data-index":t},De,{className:UH(ge.thumb,De.className,le===t&&ge.active,ue===t&&ge.focusVisible),style:YU({},n,ye(t),De.style),children:kj.jsx(Ee,YU({"data-index":t,"aria-label":z?z(t):P,"aria-valuenow":Q(e),"aria-labelledby":O,"aria-valuetext":V?V(Q(e),t):j,value:me[t]},Be))}))}),t)}))]}))}));var i4=a4;function s4(e){return KH("MuiTextField",e)}HH("MuiTextField",["root"]);const l4=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],c4={standard:d1,filled:u0,outlined:G2},u4=rJ(h0,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),d4=L.forwardRef((function(e,t){const r=iJ({props:e,name:"MuiTextField"}),{autoComplete:n,autoFocus:o=!1,children:a,className:i,color:s="primary",defaultValue:l,disabled:c=!1,error:u=!1,FormHelperTextProps:d,fullWidth:f=!1,helperText:p,id:m,InputLabelProps:h,inputProps:v,InputProps:y,inputRef:g,label:b,maxRows:w,minRows:S,multiline:x=!1,name:$,onBlur:k,onChange:_,onFocus:E,placeholder:C,required:P=!1,rows:j,select:O=!1,SelectProps:N,type:R,value:A,variant:T="outlined"}=r,I=JU(r,l4),M=YU({},r,{autoFocus:o,color:s,disabled:c,error:u,fullWidth:f,multiline:x,required:P,select:O,variant:T}),F=(e=>{const{classes:t}=e;return iQ({root:["root"]},s4,t)})(M),D={};"outlined"===T&&(h&&void 0!==h.shrink&&(D.notched=h.shrink),D.label=b),O&&(N&&N.native||(D.id=void 0),D["aria-describedby"]=void 0);const z=VG(m),L=p&&z?`${z}-helper-text`:void 0,V=b&&z?`${z}-label`:void 0,B=c4[T],U=kj.jsx(B,YU({"aria-describedby":L,autoComplete:n,autoFocus:o,defaultValue:l,fullWidth:f,multiline:x,name:$,rows:j,maxRows:w,minRows:S,type:R,value:A,id:z,inputRef:g,onBlur:k,onChange:_,onFocus:E,placeholder:C,inputProps:v},D,y));return kj.jsxs(u4,YU({className:UH(F.root,i),disabled:c,error:u,fullWidth:f,ref:t,required:P,color:s,variant:T,ownerState:M},I,{children:[null!=b&&""!==b&&kj.jsx(v1,YU({htmlFor:z,id:V},h,{children:b})),O?kj.jsx(R5,YU({"aria-describedby":L,id:z,labelId:V,value:A,input:U},N,{children:a})):U,p&&kj.jsx(M0,YU({id:L},d,{children:p}))]}))}));var f4,p4=d4,m4={},h4={},v4=n(mJ);function y4(){return f4||(f4=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=v4}(h4)),h4}var g4=MQ;Object.defineProperty(m4,"__esModule",{value:!0});var b4=m4.default=void 0,w4=g4(y4()),S4=kj;function x4({uiSchema:e,registry:t,...r}){const{translateString:n}=t;return kj.jsx(dX,{title:n(kO.AddItemButton),...r,color:"primary",children:kj.jsx(b4,{})})}function $4(e){const{children:t,disabled:r,hasToolbar:n,hasCopy:o,hasMoveDown:a,hasMoveUp:i,hasRemove:s,index:l,onCopyIndexClick:c,onDropIndexClick:u,onReorderClick:d,readonly:f,uiSchema:p,registry:m}=e,{CopyButton:h,MoveDownButton:v,MoveUpButton:y,RemoveButton:g}=m.templates.ButtonTemplates,b={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold",minWidth:0};return kj.jsxs(e1,{container:!0,alignItems:"center",children:[kj.jsx(e1,{item:!0,xs:!0,style:{overflow:"auto"},children:kj.jsx(iZ,{mb:2,children:kj.jsx(zJ,{elevation:2,children:kj.jsx(iZ,{p:2,children:t})})})}),n&&kj.jsxs(e1,{item:!0,children:[(i||a)&&kj.jsx(y,{style:b,disabled:r||f||!i,onClick:d(l,l-1),uiSchema:p,registry:m}),(i||a)&&kj.jsx(v,{style:b,disabled:r||f||!a,onClick:d(l,l+1),uiSchema:p,registry:m}),o&&kj.jsx(h,{style:b,disabled:r||f,onClick:c(l),uiSchema:p,registry:m}),s&&kj.jsx(g,{style:b,disabled:r||f,onClick:u(l),uiSchema:p,registry:m})]})]})}function k4(e){const{canAdd:t,disabled:r,idSchema:n,uiSchema:o,items:a,onAddClick:i,readonly:s,registry:l,required:c,schema:u,title:d}=e,f=kd(o),p=pj("ArrayFieldDescriptionTemplate",l,f),m=pj("ArrayFieldItemTemplate",l,f),h=pj("ArrayFieldTitleTemplate",l,f),{ButtonTemplates:{AddButton:v}}=l.templates;return kj.jsx(zJ,{elevation:2,children:kj.jsxs(iZ,{p:2,children:[kj.jsx(h,{idSchema:n,title:f.title||d,schema:u,uiSchema:o,required:c,registry:l}),kj.jsx(p,{idSchema:n,description:f.description||u.description,schema:u,uiSchema:o,registry:l}),a&&a.map((({key:e,...t})=>kj.jsx(m,{...t},e))),t&&kj.jsx(e1,{container:!0,justifyContent:"flex-end",children:kj.jsx(e1,{item:!0,children:kj.jsx(iZ,{mt:2,children:kj.jsx(v,{className:"array-item-add",onClick:i,disabled:r||s,uiSchema:o,registry:l})})})})]})})}b4=m4.default=(0,w4.default)((0,S4.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");const _4=["date","datetime-local","file","time"];function E4(e){const{id:t,name:r,placeholder:n,required:o,readonly:a,disabled:i,type:s,label:l,hideLabel:c,hideError:u,value:d,onChange:f,onChangeOverride:p,onBlur:m,onFocus:h,autofocus:v,options:y,schema:g,uiSchema:b,rawErrors:w=[],errorSchema:S,formContext:x,registry:$,InputLabelProps:k,..._}=e,E=uj(g,s,y),{step:C,min:P,max:j,accept:O,...N}=E,R={step:C,min:P,max:j,accept:O,...g.examples?{list:Gj(t)}:void 0},A=_4.includes(s)?{...k,shrink:!0}:k;return kj.jsxs(kj.Fragment,{children:[kj.jsx(p4,{id:t,name:t,placeholder:n,label:Zj(l||void 0,c,void 0),autoFocus:v,required:o,disabled:i||a,slotProps:{htmlInput:R},...N,value:d||0===d?d:"",error:w.length>0,onChange:p||(({target:{value:e}})=>f(""===e?y.emptyValue:e)),onBlur:({target:e})=>m(t,e&&e.value),onFocus:({target:e})=>h(t,e&&e.value),InputLabelProps:A,..._,"aria-describedby":Jj(t,!!g.examples)}),Array.isArray(g.examples)&&kj.jsx("datalist",{id:Gj(t),children:g.examples.concat(g.default&&!g.examples.includes(g.default)?[g.default]:[]).map((e=>kj.jsx("option",{value:e},e)))})]})}function C4(e){const{id:t,description:r}=e;return r?kj.jsx(gX,{id:t,variant:"subtitle2",style:{marginTop:"5px"},children:r}):null}var P4={},j4=MQ;Object.defineProperty(P4,"__esModule",{value:!0});var O4=P4.default=void 0,N4=j4(y4()),R4=kj;function A4({errors:e,registry:t}){const{translateString:r}=t;return kj.jsx(zJ,{elevation:2,children:kj.jsxs(iZ,{mb:2,p:2,children:[kj.jsx(gX,{variant:"h6",children:r(kO.ErrorsLabel)}),kj.jsx(x1,{dense:!0,children:e.map(((e,t)=>kj.jsxs(M1,{children:[kj.jsx(B1,{children:kj.jsx(O4,{color:"error"})}),kj.jsx(G1,{primary:e.stack})]},t)))})]})})}O4=P4.default=(0,N4.default)((0,R4.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error");var T4={},I4=MQ;Object.defineProperty(T4,"__esModule",{value:!0});var M4=T4.default=void 0,F4=I4(y4()),D4=kj;M4=T4.default=(0,F4.default)((0,D4.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward");var z4={},L4=MQ;Object.defineProperty(z4,"__esModule",{value:!0});var V4=z4.default=void 0,B4=L4(y4()),U4=kj;V4=z4.default=(0,B4.default)((0,U4.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward");var W4={},q4=MQ;Object.defineProperty(W4,"__esModule",{value:!0});var K4=W4.default=void 0,H4=q4(y4()),G4=kj;K4=W4.default=(0,H4.default)((0,G4.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");var Q4={},Y4=MQ;Object.defineProperty(Q4,"__esModule",{value:!0});var J4=Q4.default=void 0,X4=Y4(y4()),Z4=kj;function e3(e){const{icon:t,color:r,uiSchema:n,registry:o,...a}=e;return kj.jsx(dX,{...a,size:"small",color:r,children:t})}function t3(e){const{registry:{translateString:t}}=e;return kj.jsx(e3,{title:t(kO.CopyButton),...e,icon:kj.jsx(K4,{fontSize:"small"})})}function r3(e){const{registry:{translateString:t}}=e;return kj.jsx(e3,{title:t(kO.MoveDownButton),...e,icon:kj.jsx(M4,{fontSize:"small"})})}function n3(e){const{registry:{translateString:t}}=e;return kj.jsx(e3,{title:t(kO.MoveUpButton),...e,icon:kj.jsx(V4,{fontSize:"small"})})}function o3(e){const{iconType:t,...r}=e,{registry:{translateString:n}}=r;return kj.jsx(e3,{title:n(kO.RemoveButton),...r,color:"error",icon:kj.jsx(J4,{fontSize:"default"===t?void 0:"small"})})}function a3(e){const{errors:t=[],idSchema:r}=e;if(0===t.length)return null;const n=Hj(r);return kj.jsx(x1,{id:n,dense:!0,disablePadding:!0,children:t.map(((e,t)=>kj.jsx(M1,{disableGutters:!0,children:kj.jsx(M0,{component:"div",id:`${n}-${t}`,children:e})},t)))})}function i3(e){const{idSchema:t,help:r}=e;if(!r)return null;const n=Qj(t);return kj.jsx(M0,{component:"div",id:n,children:r})}function s3(e){const{id:t,children:r,classNames:n,style:o,disabled:a,displayLabel:i,hidden:s,label:l,onDropPropertyClick:c,onKeyChange:u,readonly:d,required:f,rawErrors:p=[],errors:m,help:h,description:v,rawDescription:y,schema:g,uiSchema:b,registry:w}=e,S=pj("WrapIfAdditionalTemplate",w,kd(b));return s?kj.jsx("div",{style:{display:"none"},children:r}):kj.jsx(S,{classNames:n,style:o,disabled:a,id:t,label:l,onDropPropertyClick:c,onKeyChange:u,readonly:d,required:f,schema:g,uiSchema:b,registry:w,children:kj.jsxs(h0,{fullWidth:!0,error:!!p.length,required:f,children:[r,i&&y?kj.jsx(gX,{variant:"caption",color:"textSecondary",children:v}):null,m,h]})})}function l3(e){const{description:t,title:r,properties:n,required:o,disabled:a,readonly:i,uiSchema:s,idSchema:l,schema:c,formData:u,onAddClick:d,registry:f}=e,p=kd(s),m=pj("TitleFieldTemplate",f,p),h=pj("DescriptionFieldTemplate",f,p),{ButtonTemplates:{AddButton:v}}=f.templates;return kj.jsxs(kj.Fragment,{children:[r&&kj.jsx(m,{id:Yj(l),title:r,required:o,schema:c,uiSchema:s,registry:f}),t&&kj.jsx(h,{id:Kj(l),description:t,schema:c,uiSchema:s,registry:f}),kj.jsxs(e1,{container:!0,spacing:2,style:{marginTop:"10px"},children:[n.map(((e,t)=>e.hidden?e.content:kj.jsx(e1,{item:!0,xs:12,style:{marginBottom:"10px"},children:e.content},t))),_d(c,s,u)&&kj.jsx(e1,{container:!0,justifyContent:"flex-end",children:kj.jsx(e1,{item:!0,children:kj.jsx(v,{className:"object-property-expand",onClick:d(c),disabled:a||i,uiSchema:s,registry:f})})})]})]})}function c3({uiSchema:e}){const{submitText:t,norender:r,props:n={}}=fj(e);return r?null:kj.jsx(iZ,{marginTop:3,children:kj.jsx(yZ,{type:"submit",variant:"contained",color:"primary",...n,children:t})})}function u3({id:e,title:t}){return kj.jsxs(iZ,{id:e,mb:1,mt:1,children:[kj.jsx(gX,{variant:"h5",children:t}),kj.jsx(a0,{})]})}function d3(e){const{children:t,classNames:r,style:n,disabled:o,id:a,label:i,onDropPropertyClick:s,onKeyChange:l,readonly:c,required:u,schema:d,uiSchema:f,registry:p}=e,{templates:m,translateString:h}=p,{RemoveButton:v}=m.ButtonTemplates,y=h(kO.KeyLabel,[i]);if(!(rd in d))return kj.jsx("div",{className:r,style:n,children:t});return kj.jsxs(e1,{container:!0,alignItems:"center",spacing:2,className:r,style:n,children:[kj.jsx(e1,{item:!0,xs:!0,children:kj.jsx(p4,{fullWidth:!0,required:u,label:y,defaultValue:i,disabled:o||c,id:`${a}-key`,name:`${a}-key`,onBlur:c?void 0:({target:e})=>l(e&&e.value),type:"text"})}),kj.jsx(e1,{item:!0,xs:!0,children:t}),kj.jsx(e1,{item:!0,children:kj.jsx(v,{iconType:"default",style:{flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"},disabled:o||c,onClick:s(i),uiSchema:f,registry:p})})]},`${a}-key`)}function f3(e){var t;const{schema:r,id:n,value:o,disabled:a,readonly:i,label:s="",hideLabel:l,autofocus:c,onChange:u,onBlur:d,onFocus:f,registry:p,options:m,uiSchema:h}=e,v=pj("DescriptionFieldTemplate",p,m),y=tO(r),g=null!==(t=m.description)&&void 0!==t?t:r.description;return kj.jsxs(kj.Fragment,{children:[!l&&!!g&&kj.jsx(v,{id:Kj(n),description:g,schema:r,uiSchema:h,registry:p}),kj.jsx(k0,{control:kj.jsx(IZ,{id:n,name:n,checked:void 0!==o&&Boolean(o),required:y,disabled:a||i,autoFocus:c,onChange:(e,t)=>u(t),onBlur:({target:e})=>d(n,e&&e.value),onFocus:({target:e})=>f(n,e&&e.value),"aria-describedby":Jj(n)}),label:Zj(s,l,!1)})]})}function p3({label:e,hideLabel:t,id:r,disabled:n,options:o,value:a,autofocus:i,readonly:s,required:l,onChange:c,onBlur:u,onFocus:d}){const{enumOptions:f,enumDisabled:p,inline:m,emptyValue:h}=o,v=Array.isArray(a)?a:[a],y=e=>({target:{checked:t}})=>{c(t?oj(e,v,f):tj(e,v,f))},g=({target:e})=>u(r,ej(e&&e.value,f,h)),b=({target:e})=>d(r,ej(e&&e.value,f,h));return kj.jsxs(kj.Fragment,{children:[Zj(kj.jsx(U0,{required:l,htmlFor:r,children:e||void 0}),t),kj.jsx(j0,{id:r,row:!!m,children:Array.isArray(f)&&f.map(((e,t)=>{const o=rj(e.value,v),a=Array.isArray(p)&&-1!==p.indexOf(e.value),l=kj.jsx(IZ,{id:Xj(r,t),name:r,checked:o,disabled:n||a||s,autoFocus:i&&0===t,onChange:y(t),onBlur:g,onFocus:b,"aria-describedby":Jj(r)});return kj.jsx(k0,{control:l,label:e.label},t)}))})]})}function m3({id:e,options:t,value:r,required:n,disabled:o,readonly:a,label:i,hideLabel:s,onChange:l,onBlur:c,onFocus:u}){var d;const{enumOptions:f,enumDisabled:p,emptyValue:m}=t,h=!!t&&t.inline,v=null!==(d=nj(r,f))&&void 0!==d?d:null;return kj.jsxs(kj.Fragment,{children:[Zj(kj.jsx(U0,{required:n,htmlFor:e,children:i||void 0}),s),kj.jsx(p5,{id:e,name:e,value:v,row:h,onChange:(e,t)=>l(ej(t,f,m)),onBlur:({target:t})=>c(e,ej(t&&t.value,f,m)),onFocus:({target:t})=>u(e,ej(t&&t.value,f,m)),"aria-describedby":Jj(e),children:Array.isArray(f)&&f.map(((t,r)=>{const n=Array.isArray(p)&&-1!==p.indexOf(t.value);return kj.jsx(k0,{control:kj.jsx(c5,{name:e,id:Xj(e,r),color:"primary"}),label:t.label,value:String(r),disabled:o||n||a},r)}))})]})}function h3(e){const{value:t,readonly:r,disabled:n,onBlur:o,onFocus:a,options:i,schema:s,onChange:l,required:c,label:u,hideLabel:d,id:f}=e,p={value:t,label:u,id:f,name:f,...cj(s)};return kj.jsxs(kj.Fragment,{children:[Zj(kj.jsx(U0,{required:c,htmlFor:f,children:u||void 0}),d),kj.jsx(i4,{disabled:n||r,onChange:(e,t)=>{l(null!=t?t:i.emptyValue)},onBlur:({target:e})=>o(f,e&&e.value),onFocus:({target:e})=>a(f,e&&e.value),valueLabelDisplay:"auto",...p,"aria-describedby":Jj(f)})]})}function v3({schema:e,id:t,name:r,options:n,label:o,hideLabel:a,required:i,disabled:s,placeholder:l,readonly:c,value:u,multiple:d,autofocus:f,onChange:p,onBlur:m,onFocus:h,errorSchema:v,rawErrors:y=[],registry:g,uiSchema:b,hideError:w,formContext:S,...x}){const{enumOptions:$,enumDisabled:k,emptyValue:_}=n,E=(d=void 0!==d&&!!d)?[]:"",C=void 0===u||d&&u.length<1||!d&&u===E,P=nj(u,$,d),{InputLabelProps:j,SelectProps:O,autocomplete:N,...R}=x,A=!d&&void 0===e.default;return kj.jsxs(p4,{id:t,name:t,label:Zj(o||void 0,a,void 0),value:C||void 0===P?E:P,required:i,disabled:s||c,autoFocus:f,autoComplete:N,placeholder:l,error:y.length>0,onChange:({target:{value:e}})=>p(ej(e,$,_)),onBlur:({target:e})=>m(t,ej(e&&e.value,$,_)),onFocus:({target:e})=>h(t,ej(e&&e.value,$,_)),...R,select:!0,InputLabelProps:{...j,shrink:!C},SelectProps:{...O,multiple:d},"aria-describedby":Jj(t),children:[A&&kj.jsx(j2,{value:"",children:l}),Array.isArray($)&&$.map((({value:e,label:t},r)=>{const n=Array.isArray(k)&&-1!==k.indexOf(e);return kj.jsx(j2,{value:String(r),disabled:n,children:t},r)}))]})}function y3(e){const{options:t,registry:r}=e,n=pj("BaseInputTemplate",r,t);let o=5;return"string"!=typeof t.rows&&"number"!=typeof t.rows||(o=t.rows),kj.jsx(n,{...e,multiline:!0,rows:o})}function g3(){return{CheckboxWidget:f3,CheckboxesWidget:p3,RadioWidget:m3,RangeWidget:h3,SelectWidget:v3,TextareaWidget:y3}}function b3(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function S3(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w3(Object(r),!0).forEach((function(t){b3(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w3(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function x3(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function $3(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function k3(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function E3(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_3(Object(r),!0).forEach((function(t){k3(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_3(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function C3(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return o.length>=e.length?e.apply(this,o):function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return t.apply(r,[].concat(o,n))}}}function P3(e){return{}.toString.call(e).includes("Object")}function j3(e){return"function"==typeof e}J4=Q4.default=(0,X4.default)((0,Z4.jsx)("path",{d:"M19 13H5v-2h14z"}),"Remove");var O3=C3((function(e,t){throw new Error(e[t]||e.default)}))({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),N3={changes:function(e,t){return P3(t)||O3("changeType"),Object.keys(t).some((function(t){return!function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)}))&&O3("changeField"),t},selector:function(e){j3(e)||O3("selectorType")},handler:function(e){j3(e)||P3(e)||O3("handlerType"),P3(e)&&Object.values(e).some((function(e){return!j3(e)}))&&O3("handlersType")},initial:function(e){var t;e||O3("initialIsRequired"),P3(e)||O3("initialType"),t=e,Object.keys(t).length||O3("initialContent")}};function R3(e,t){return j3(t)?t(e.current):t}function A3(e,t){return e.current=E3(E3({},e.current),t),t}function T3(e,t,r){return j3(t)?t(e.current):Object.keys(r).forEach((function(r){var n;return null===(n=t[r])||void 0===n?void 0:n.call(t,e.current[r])})),r}var I3={create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};N3.initial(e),N3.handler(t);var r={current:e},n=C3(T3)(r,t),o=C3(A3)(r),a=C3(N3.changes)(e),i=C3(R3)(r);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return N3.selector(e),e(r.current)},function(e){!function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}}(n,o,a,i)(e)}]}};var M3,F3={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},D3=(M3=function(e,t){throw new Error(e[t]||e.default)},function e(){for(var t=this,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return n.length>=M3.length?M3.apply(this,n):function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e.apply(t,[].concat(n,o))}})(F3),z3={config:function(e){var t;return e||D3("configIsRequired"),t=e,{}.toString.call(t).includes("Object")||D3("configType"),e.urls?(console.warn(F3.deprecation),{paths:{vs:e.urls.monacoBase}}):e}};function L3(e,t){return Object.keys(t).forEach((function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],L3(e[r],t[r]))})),S3(S3({},e),t)}var V3={type:"cancelation",msg:"operation is manually canceled"};function B3(e){var t=!1,r=new Promise((function(r,n){e.then((function(e){return t?n(V3):r(e)})),e.catch(n)}));return r.cancel=function(){return t=!0},r}var U3=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return $3(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $3(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(I3.create({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}),2),W3=U3[0],q3=U3[1];function K3(e){return document.body.appendChild(e)}function H3(e){var t=W3((function(e){return{config:e.config,reject:e.reject}})),r=function(e){var t=document.createElement("script");return e&&(t.src=e),t}("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function G3(){var e=W3((function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}})),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],(function(t){Q3(t),e.resolve(t)}),(function(t){e.reject(t)}))}function Q3(e){W3().monaco||q3({monaco:e})}var Y3=new Promise((function(e,t){return q3({resolve:e,reject:t})})),J3={config:function(e){var t=z3.config(e),r=t.monaco,n=x3(t,["monaco"]);q3((function(e){return{config:L3(e.config,n),monaco:r}}))},init:function(){var e=W3((function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}}));if(!e.isInitialized){if(q3({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),B3(Y3);if(window.monaco&&window.monaco.editor)return Q3(window.monaco),e.resolve(window.monaco),B3(Y3);!function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}}(K3,H3)(G3)}return B3(Y3)},__getMonacoInstance:function(){return W3((function(e){return e.monaco}))}},X3={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Z3={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}};var e6=function({children:e}){return V.createElement("div",{style:Z3.container},e)},t6=e6;var r6=function({width:e,height:t,isEditorReady:r,loading:n,_ref:o,className:a,wrapperProps:i}){return V.createElement("section",{style:{...X3.wrapper,width:e,height:t},...i},!r&&V.createElement(t6,null,n),V.createElement("div",{ref:o,style:{...X3.fullWidth,...!r&&X3.hide},className:a}))},n6=L.memo(r6);var o6=function(e){L.useEffect(e,[])};var a6=function(e,t,r=!0){let n=L.useRef(!0);L.useEffect(n.current||!r?()=>{n.current=!1}:e,t)};function i6(){}function s6(e,t,r,n){return function(e,t){return e.editor.getModel(l6(e,t))}(e,n)||function(e,t,r,n){return e.editor.createModel(t,r,n?l6(e,n):void 0)}(e,t,r,n)}function l6(e,t){return e.Uri.parse(t)}var c6=function(e){let t=L.useRef();return L.useEffect((()=>{t.current=e}),[e]),t.current},u6=new Map;var d6=function({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:o,path:a,theme:i="light",line:s,loading:l="Loading...",options:c={},overrideServices:u={},saveViewState:d=!0,keepCurrentModel:f=!1,width:p="100%",height:m="100%",className:h,wrapperProps:v={},beforeMount:y=i6,onMount:g=i6,onChange:b,onValidate:w=i6}){let[S,x]=L.useState(!1),[$,k]=L.useState(!0),_=L.useRef(null),E=L.useRef(null),C=L.useRef(null),P=L.useRef(g),j=L.useRef(y),O=L.useRef(),N=L.useRef(n),R=c6(a),A=L.useRef(!1),T=L.useRef(!1);o6((()=>{let e=J3.init();return e.then((e=>(_.current=e)&&k(!1))).catch((e=>"cancelation"!==e?.type&&console.error("Monaco initialization: error:",e))),()=>E.current?(O.current?.dispose(),f?d&&u6.set(a,E.current.saveViewState()):E.current.getModel()?.dispose(),void E.current.dispose()):e.cancel()})),a6((()=>{let i=s6(_.current,e||n||"",t||o||"",a||r||"");i!==E.current?.getModel()&&(d&&u6.set(R,E.current?.saveViewState()),E.current?.setModel(i),d&&E.current?.restoreViewState(u6.get(a)))}),[a],S),a6((()=>{E.current?.updateOptions(c)}),[c],S),a6((()=>{!E.current||void 0===n||(E.current.getOption(_.current.editor.EditorOption.readOnly)?E.current.setValue(n):n!==E.current.getValue()&&(T.current=!0,E.current.executeEdits("",[{range:E.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),E.current.pushUndoStop(),T.current=!1))}),[n],S),a6((()=>{let e=E.current?.getModel();e&&o&&_.current?.editor.setModelLanguage(e,o)}),[o],S),a6((()=>{void 0!==s&&E.current?.revealLine(s)}),[s],S),a6((()=>{_.current?.editor.setTheme(i)}),[i],S);let I=L.useCallback((()=>{if(C.current&&_.current&&!A.current){j.current(_.current);let l=a||r,f=s6(_.current,n||e||"",t||o||"",l||"");E.current=_.current?.editor.create(C.current,{model:f,automaticLayout:!0,...c},u),d&&E.current.restoreViewState(u6.get(l)),_.current.editor.setTheme(i),void 0!==s&&E.current.revealLine(s),x(!0),A.current=!0}}),[e,t,r,n,o,a,c,u,d,i,s]);return L.useEffect((()=>{S&&P.current(E.current,_.current)}),[S]),L.useEffect((()=>{!$&&!S&&I()}),[$,S,I]),N.current=n,L.useEffect((()=>{S&&b&&(O.current?.dispose(),O.current=E.current?.onDidChangeModelContent((e=>{T.current||b(E.current.getValue(),e)})))}),[S,b]),L.useEffect((()=>{if(S){let e=_.current.editor.onDidChangeMarkers((e=>{let t=E.current.getModel()?.uri;if(t&&e.find((e=>e.path===t.path))){let e=_.current.editor.getModelMarkers({resource:t});w?.(e)}}));return()=>{e?.dispose()}}return()=>{}}),[S,w]),V.createElement(n6,{width:p,height:m,isEditorReady:S,loading:l,_ref:C,className:h,wrapperProps:v})},f6=L.memo(d6);const p6=e=>{const{id:t,label:r,value:n,onChange:o,theme:a}=e,{language:i,minimap:s=!1,lineNumbers:l="off",height:c=250,options:u}=e.schema,d=a.palette.mode;return V.createElement("div",null,r&&V.createElement("crowdin-h5",{htmlFor:t},r||"Provide your code"),V.createElement(f6,{height:c,defaultLanguage:"javascript",language:i,defaultValue:"",value:n,onChange:e=>{o(e)},options:{theme:"light"===d?"vs-light":"vs-dark",lineNumbers:l,minimap:{enabled:s},...u}}))};function m6(e){const{value:t,options:{content:r}}=e,n=L.useRef();return L.useEffect((()=>{const e=t||r,o=document.createRange().createContextualFragment(e);n.current.append(o)}),[]),V.createElement("div",{ref:n})}const h6=e=>["light","dark"].includes(e)?e:"light";function v6(e){return xY({palette:{mode:e},..."dark"===e?{components:{MuiTypography:{styleOverrides:{root:{color:"rgba(255, 255, 255);"}}},MuiPaper:{styleOverrides:{root:{backgroundImage:"none",backgroundColor:"var(--crowdin-body-bg, #ffffff)"}}}}}:{}})}const y6=(g6={templates:{ArrayFieldItemTemplate:$4,ArrayFieldTemplate:k4,BaseInputTemplate:E4,ButtonTemplates:{AddButton:x4,CopyButton:t3,MoveDownButton:r3,MoveUpButton:n3,RemoveButton:o3,SubmitButton:c3},DescriptionFieldTemplate:C4,ErrorListTemplate:A4,FieldErrorTemplate:a3,FieldHelpTemplate:i3,FieldTemplate:s3,ObjectFieldTemplate:l3,TitleFieldTemplate:u3,WrapIfAdditionalTemplate:d3},widgets:{...g3(),SelectWidget:e=>{const t=g3().SelectWidget;return V.createElement(t,W({},e,{SelectProps:{...e.SelectProps||{},MenuProps:{autoFocus:!1,disableAutoFocusItem:!0,disableEnforceFocus:!0,disableAutoFocus:!0}}}))}}},L.forwardRef((({fields:e,widgets:t,templates:r,...n},o)=>{var a;return e={...null==g6?void 0:g6.fields,...e},t={...null==g6?void 0:g6.widgets,...t},r={...null==g6?void 0:g6.templates,...r,ButtonTemplates:{...null===(a=null==g6?void 0:g6.templates)||void 0===a?void 0:a.ButtonTemplates,...null==r?void 0:r.ButtonTemplates}},kj.jsx(DU,{...g6,...n,fields:e,widgets:t,templates:r,ref:o})})));var g6;function b6(){const e=frameData.app.context,t=["form-data"];return e.organization_id&&t.push(e.organization_id),e.project_id&&t.push(e.project_id),t.join("-")}function w6({formData:e,formSchema:t,formUiSchema:r,onFormRef:n}){const[o,a]=L.useState(null),i=L.useRef();if(L.useEffect((()=>{AP.events.on("theme.changed",(e=>{const t=h6(e);a(v6(t))})),AP.getTheme((e=>{const t=h6(e);a(v6(t))}))}),[]),L.useEffect((()=>{n(i)}),[o]),!o)return null;const s={htmlWidget:m6,crowdinFilesWidget:U,monacoEditorWidget:e=>V.createElement(p6,W({},e,{theme:o}))};return V.createElement(oJ,{theme:o},V.createElement(y6,{ref:i,widgets:s,formData:e,validator:_L,schema:t,uiSchema:r,onSubmit:e=>{!function(e){if(!x6())return;document.getElementById("form-loading").style.display="flex",checkOrigin().then((t=>fetch(formPostDataUrl+t+"&id="+b6(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:e,context:frameData.app.context})}))).then(checkResponse).then((e=>{"modal"!==AP._data.app.type||e?.message?(e&&void 0!==e.message||showToast("Settings successfully saved"),document.getElementById("form-loading").style.display="none",e&&(e.formData||e.formSchema||e.formUiSchema)&&$6(e.formData,e.formSchema,e.formUiSchema),e&&e.redirect&&(window.location=e.redirect)):AP.closeAppModal()})).catch((e=>{catchRejection(e,"Can't save settings"),document.getElementById("form-loading").style.display="none"}))}(e.formData)},onChange:e=>{window.currentFormData=e.formData;const t=new CustomEvent("formDataUpdated",{detail:{...e.formData}});document.dispatchEvent(t),AP.formDataUpdated&&AP.formDataUpdated(e.formData)}}))}function S6(){const e=document.getElementById("card");e.style.border="none",e.style.overflow="initial",e.removeAttribute("is-shadowed"),e.setAttribute("without-p",!0),e.parentElement.style.padding="16px",e.parentElement.style.paddingBottom="0px"}function x6(){return!(AP&&AP._data&&AP._data.app&&["ai-prompt-provider","workflow-step-type"].includes(AP._data.app.type))}function $6(e={},t,r){const n=q.createRoot(document.getElementById("form"));if(AP&&AP._data&&AP._data.app&&AP._data.app.type){document.getElementsByTagName("html")[0].className+=" "+AP._data.app.type+"-form"}if(!x6()){S6();document.getElementsByTagName("html")[0].className+=" form-without-submit"}AP&&AP._data&&AP._data.app&&["modal","editor-right-panel"].includes(AP._data.app.type)&&(S6(),"modal"===AP._data.app.type&&card.parentElement.style.removeProperty("max-width")),window.currentFormSchema=t,window.currentFormData=e,window.currentFormUiSchema=r,n.render(V.createElement(w6,{onFormRef:e=>{window.formRef=e.current},formData:e,formSchema:t||window.formSchema,formUiSchema:r||window.formUiSchema})),document.getElementById("form-loading").style.display="none"}x6()?checkOrigin().then((e=>{const t=new URLSearchParams(frameData.app.context).toString(),r=new URLSearchParams(e+"&id="+b6());return r.set("context",t),fetch(formGetDataUrl+"?"+r.toString(),{method:"GET"})})).then(checkResponse).catch((e=>catchRejection(e,"Can't load saved settings"))).then((e=>{$6(e.formData,e.formSchema,e.formUiSchema)})).catch((()=>$6({}))):AP.getFormData((e=>{$6(e)})),window.renderForm=$6}();
112
+ `),rJ.rippleVisible,cJ,550,(({theme:e})=>e.transitions.easing.easeInOut),rJ.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),rJ.child,rJ.childLeaving,uJ,550,(({theme:e})=>e.transitions.easing.easeInOut),rJ.childPulsate,dJ,(({theme:e})=>e.transitions.easing.easeInOut)),mJ=L.forwardRef((function(e,t){const r=xY({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:a}=r,i=pU(r,nJ),[s,l]=L.useState([]),c=L.useRef(0),u=L.useRef(null);L.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=L.useRef(!1),f=uG(),p=L.useRef(null),m=L.useRef(null),h=L.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:a,cb:i}=e;l((e=>[...e,LP.jsx(pJ,{classes:{ripple:aH(o.ripple,rJ.ripple),rippleVisible:aH(o.rippleVisible,rJ.rippleVisible),ripplePulsate:aH(o.ripplePulsate,rJ.ripplePulsate),child:aH(o.child,rJ.child),childLeaving:aH(o.childLeaving,rJ.childLeaving),childPulsate:aH(o.childPulsate,rJ.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:a},c.current)])),c.current+=1,u.current=i}),[o]),v=L.useCallback(((e={},t={},r=(()=>{}))=>{const{pulsate:o=!1,center:a=n||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=i?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,v;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(r-l.top)}if(a)v=Math.sqrt((2*l.width**2+l.height**2)/3),v%2==0&&(v+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;v=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===p.current&&(p.current=()=>{h({pulsate:o,rippleX:c,rippleY:u,rippleSize:v,cb:r})},f.start(80,(()=>{p.current&&(p.current(),p.current=null)}))):h({pulsate:o,rippleX:c,rippleY:u,rippleSize:v,cb:r})}),[n,h,f]),y=L.useCallback((()=>{v({},{pulsate:!0})}),[v]),g=L.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&p.current)return p.current(),p.current=null,void f.start(0,(()=>{g(e,t)}));p.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[f]);return L.useImperativeHandle(t,(()=>({pulsate:y,start:v,stop:g})),[y,v,g]),LP.jsx(fJ,fU({className:aH(rJ.root,o.root,a),ref:m},i,{children:LP.jsx(GY,{component:null,exit:!0,children:s})}))}));var hJ=mJ;function vJ(e){return lH("MuiButtonBase",e)}var yJ=cH("MuiButtonBase",["root","disabled","focusVisible"]);const gJ=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],bJ=gY("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${yJ.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),wJ=L.forwardRef((function(e,t){const r=xY({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:a,className:i,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:f="a",onBlur:p,onClick:m,onContextMenu:h,onDragLeave:v,onFocus:y,onFocusVisible:g,onKeyDown:b,onKeyUp:w,onMouseDown:S,onMouseLeave:x,onMouseUp:$,onTouchEnd:k,onTouchMove:_,onTouchStart:E,tabIndex:C=0,TouchRippleProps:P,touchRippleRef:j,type:O}=r,N=pU(r,gJ),R=L.useRef(null),T=L.useRef(null),A=iG(T,j),{isFocusVisibleRef:I,onFocus:M,onBlur:F,ref:D}=bG(),[z,V]=L.useState(!1);l&&z&&V(!1),L.useImperativeHandle(n,(()=>({focusVisible:()=>{V(!0),R.current.focus()}})),[]);const[B,U]=L.useState(!1);L.useEffect((()=>{U(!0)}),[]);const W=B&&!c&&!l;function q(e,t,r=u){return aG((n=>{t&&t(n);return!r&&T.current&&T.current[e](n),!0}))}L.useEffect((()=>{z&&d&&!c&&B&&T.current.pulsate()}),[c,d,z,B]);const K=q("start",S),H=q("stop",h),G=q("stop",v),Q=q("stop",$),Y=q("stop",(e=>{z&&e.preventDefault(),x&&x(e)})),J=q("start",E),X=q("stop",k),Z=q("stop",_),ee=q("stop",(e=>{F(e),!1===I.current&&V(!1),p&&p(e)}),!1),te=aG((e=>{R.current||(R.current=e.currentTarget),M(e),!0===I.current&&(V(!0),g&&g(e)),y&&y(e)})),re=()=>{const e=R.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=L.useRef(!1),oe=aG((e=>{d&&!ne.current&&z&&T.current&&" "===e.key&&(ne.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),m&&m(e))})),ae=aG((e=>{d&&" "===e.key&&T.current&&z&&!e.defaultPrevented&&(ne.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),w&&w(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=s;"button"===ie&&(N.href||N.to)&&(ie=f);const se={};"button"===ie?(se.type=void 0===O?"button":O,se.disabled=l):(N.href||N.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=iG(t,D,R),ce=fU({},r,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:C,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,a=xG({root:["root",t&&"disabled",r&&"focusVisible"]},vJ,o);return r&&n&&(a.root+=` ${n}`),a})(ce);return LP.jsxs(bJ,fU({as:ie,className:aH(ue.root,i),ownerState:ce,onBlur:ee,onClick:m,onContextMenu:H,onFocus:te,onKeyDown:oe,onKeyUp:ae,onMouseDown:K,onMouseLeave:Y,onMouseUp:Q,onDragLeave:G,onTouchEnd:X,onTouchMove:Z,onTouchStart:J,ref:le,tabIndex:l?-1:C,type:O},se,N,{children:[a,W?LP.jsx(hJ,fU({ref:A,center:o},P)):null]}))}));var SJ=wJ;function xJ(e){return lH("MuiIconButton",e)}var $J=cH("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);const kJ=["edge","children","className","color","disabled","disableFocusRipple","size"],_J=gY(SJ,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${Qq(r.color)}`],r.edge&&t[`edge${Qq(r.edge)}`],t[`size${Qq(r.size)}`]]}})((({theme:e,ownerState:t})=>fU({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:rQ(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var r;const n=null==(r=(e.vars||e).palette)?void 0:r[t.color];return fU({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&fU({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":fU({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rQ(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${$J.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),EJ=L.forwardRef((function(e,t){const r=xY({props:e,name:"MuiIconButton"}),{edge:n=!1,children:o,className:a,color:i="default",disabled:s=!1,disableFocusRipple:l=!1,size:c="medium"}=r,u=pU(r,kJ),d=fU({},r,{edge:n,color:i,disabled:s,disableFocusRipple:l,size:c}),f=(e=>{const{classes:t,disabled:r,color:n,edge:o,size:a}=e;return xG({root:["root",r&&"disabled","default"!==n&&`color${Qq(n)}`,o&&`edge${Qq(o)}`,`size${Qq(a)}`]},xJ,t)})(d);return LP.jsx(_J,fU({className:aH(f.root,a),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},u,{ownerState:d,children:o}))}));var CJ=EJ;function PJ(e){return lH("MuiTypography",e)}cH("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const jJ=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],OJ=gY("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${Qq(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>fU({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),NJ={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},RJ={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},TJ=L.forwardRef((function(e,t){const r=xY({props:e,name:"MuiTypography"}),n=(e=>RJ[e]||e)(r.color),o=eH(fU({},r,{color:n})),{align:a="inherit",className:i,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:f=NJ}=o,p=pU(o,jJ),m=fU({},o,{align:a,color:n,className:i,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:f}),h=s||(u?"p":f[d]||NJ[d])||"span",v=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:i}=e;return xG({root:["root",a,"inherit"!==e.align&&`align${Qq(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},PJ,i)})(m);return LP.jsx(OJ,fU({as:h,ref:t,ownerState:m,className:aH(v.root,i)},p))}));var AJ=TJ;var IJ=L.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[a,i]=L.useState(null),s=iG(L.isValidElement(r)?PG(r):null,t);if(KH((()=>{o||i(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),KH((()=>{if(a&&!o)return eG(t,a),()=>{eG(t,null)}}),[t,a,o]),o){if(L.isValidElement(r)){const e={ref:s};return L.cloneElement(r,e)}return LP.jsx(L.Fragment,{children:r})}return LP.jsx(L.Fragment,{children:a?Ju.createPortal(r,a):a})}));const MJ=["onChange","maxRows","minRows","style","value"];function FJ(e){return parseInt(e,10)||0}const DJ={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const zJ=L.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:a,value:i}=e,s=pU(e,MJ),{current:l}=L.useRef(null!=i),c=L.useRef(null),u=iG(t,c),d=L.useRef(null),f=L.useRef(null),p=L.useCallback((()=>{const t=c.current,r=ZH(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0,overflowing:!1};const a=f.current;a.style.width=r.width,a.value=t.value||e.placeholder||"x","\n"===a.value.slice(-1)&&(a.value+=" ");const i=r.boxSizing,s=FJ(r.paddingBottom)+FJ(r.paddingTop),l=FJ(r.borderBottomWidth)+FJ(r.borderTopWidth),u=a.scrollHeight;a.value="x";const d=a.scrollHeight;let p=u;o&&(p=Math.max(Number(o)*d,p)),n&&(p=Math.min(Number(n)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===i?s+l:0),overflowing:Math.abs(p-u)<=1}}),[n,o,e.placeholder]),m=L.useCallback((()=>{const e=p();if(null==(t=e)||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const r=e.outerHeightStyle,n=c.current;d.current!==r&&(d.current=r,n.style.height=`${r}px`),n.style.overflow=e.overflowing?"hidden":""}),[p]);KH((()=>{const e=()=>{m()};const t=YH(e),r=c.current,n=ZH(r);let o;return n.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(r)),()=>{t.clear(),cancelAnimationFrame(undefined),n.removeEventListener("resize",t),o&&o.disconnect()}}),[p,m]),KH((()=>{m()}));return LP.jsxs(L.Fragment,{children:[LP.jsx("textarea",fU({value:i,onChange:e=>{l||m(),r&&r(e)},ref:u,rows:o,style:a},s)),LP.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:fU({},DJ,a,{paddingTop:0,paddingBottom:0})})]})}));var LJ=zJ;function VJ({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}var BJ=L.createContext(void 0);function UJ(){return L.useContext(BJ)}function WJ(e){return LP.jsx(JK,fU({},e,{defaultTheme:zQ,themeId:dU}))}function qJ(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function KJ(e,t=!1){return e&&(qJ(e.value)&&""!==e.value||t&&qJ(e.defaultValue)&&""!==e.defaultValue)}function HJ(e){return lH("MuiInputBase",e)}var GJ=cH("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const QJ=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],YJ=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Qq(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},JJ=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},XJ=gY("div",{name:"MuiInputBase",slot:"Root",overridesResolver:YJ})((({theme:e,ownerState:t})=>fU({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${GJ.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&fU({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),ZJ=gY("input",{name:"MuiInputBase",slot:"Input",overridesResolver:JJ})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=fU({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return fU({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${GJ.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${GJ.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),eX=LP.jsx(WJ,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),tX=L.forwardRef((function(e,t){var r;const n=xY({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:i,className:s,components:l={},componentsProps:c={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:f,endAdornment:p,fullWidth:m=!1,id:h,inputComponent:v="input",inputProps:y={},inputRef:g,maxRows:b,minRows:w,multiline:S=!1,name:x,onBlur:$,onChange:k,onClick:_,onFocus:E,onKeyDown:C,onKeyUp:P,placeholder:j,readOnly:O,renderSuffix:N,rows:R,slotProps:T={},slots:A={},startAdornment:I,type:M="text",value:F}=n,D=pU(n,QJ),z=null!=y.value?y.value:F,{current:V}=L.useRef(null!=z),B=L.useRef(),U=L.useCallback((e=>{}),[]),W=iG(B,g,y.ref,U),[q,K]=L.useState(!1),H=UJ(),G=VJ({props:n,muiFormControl:H,states:["color","disabled","error","hiddenLabel","size","required","filled"]});G.focused=H?H.focused:q,L.useEffect((()=>{!H&&d&&q&&(K(!1),$&&$())}),[H,d,q,$]);const Q=H&&H.onFilled,Y=H&&H.onEmpty,J=L.useCallback((e=>{KJ(e)?Q&&Q():Y&&Y()}),[Q,Y]);KH((()=>{V&&J({value:z})}),[z,J,V]);L.useEffect((()=>{J(B.current)}),[]);let X=v,Z=y;S&&"input"===X&&(Z=fU(R?{type:void 0,minRows:R,maxRows:R}:{type:void 0,maxRows:b,minRows:w},Z),X=LJ);L.useEffect((()=>{H&&H.setAdornedStart(Boolean(I))}),[H,I]);const ee=fU({},n,{color:G.color||"primary",disabled:G.disabled,endAdornment:p,error:G.error,focused:G.focused,formControl:H,fullWidth:m,hiddenLabel:G.hiddenLabel,multiline:S,size:G.size,startAdornment:I,type:M}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:f,startAdornment:p,type:m}=e;return xG({root:["root",`color${Qq(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",f&&"medium"!==f&&`size${Qq(f)}`,u&&"multiline",p&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===m&&"inputTypeSearch",u&&"inputMultiline","small"===f&&"inputSizeSmall",c&&"inputHiddenLabel",p&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]},HJ,t)})(ee),re=A.root||l.Root||XJ,ne=T.root||c.root||{},oe=A.input||l.Input||ZJ;return Z=fU({},Z,null!=(r=T.input)?r:c.input),LP.jsxs(L.Fragment,{children:[!f&&eX,LP.jsxs(re,fU({},ne,!$G(re)&&{ownerState:fU({},ee,ne.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),_&&_(e)}},D,{className:aH(te.root,ne.className,s,O&&"MuiInputBase-readOnly"),children:[I,LP.jsx(BJ.Provider,{value:null,children:LP.jsx(oe,fU({ownerState:ee,"aria-invalid":G.error,"aria-describedby":o,autoComplete:a,autoFocus:i,defaultValue:u,disabled:G.disabled,id:h,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:x,placeholder:j,readOnly:O,required:G.required,rows:R,value:z,onKeyDown:C,onKeyUp:P,type:M},Z,!$G(oe)&&{as:X,ownerState:fU({},ee,Z.ownerState)},{ref:W,className:aH(te.input,Z.className,O&&"MuiInputBase-readOnly"),onBlur:e=>{$&&$(e),y.onBlur&&y.onBlur(e),H&&H.onBlur?H.onBlur(e):K(!1)},onChange:(e,...t)=>{if(!V){const t=e.target||B.current;if(null==t)throw new Error(cU(1));J({value:t.value})}y.onChange&&y.onChange(e,...t),k&&k(e,...t)},onFocus:e=>{G.disabled?e.stopPropagation():(E&&E(e),y.onFocus&&y.onFocus(e),H&&H.onFocus?H.onFocus(e):K(!0))}}))}),p,N?N(fU({},G,{startAdornment:I})):null]}))]})}));var rX=tX;function nX(e){return lH("MuiInput",e)}var oX=fU({},GJ,cH("MuiInput",["root","underline","input"]));function aX(e){return lH("MuiOutlinedInput",e)}var iX=fU({},GJ,cH("MuiOutlinedInput",["root","notchedOutline","input"]));function sX(e){return lH("MuiFilledInput",e)}var lX=fU({},GJ,cH("MuiFilledInput",["root","underline","input"])),cX=PY(LP.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const uX=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],dX={entering:{opacity:1},entered:{opacity:1}},fX=L.forwardRef((function(e,t){const r=LQ(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:i,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:m,style:h,timeout:v=n,TransitionComponent:y=BY}=e,g=pU(e,uX),b=L.useRef(null),w=iG(b,PG(i),t),S=e=>t=>{if(e){const r=b.current;void 0===t?e(r):e(r,t)}},x=S(d),$=S(((e,t)=>{QY(e);const n=YY({style:h,timeout:v,easing:s},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),c&&c(e,t)})),k=S(u),_=S(m),E=S((e=>{const t=YY({style:h,timeout:v,easing:s},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),f&&f(e)})),C=S(p);return LP.jsx(y,fU({appear:a,in:l,nodeRef:b,onEnter:$,onEntered:k,onEntering:x,onExit:E,onExited:C,onExiting:_,addEndListener:e=>{o&&o(b.current,e)},timeout:v},g,{children:(e,t)=>L.cloneElement(i,fU({style:fU({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},dX[e],h,i.props.style),ref:w},t))}))}));var pX=fX;function mX(e){return lH("MuiBackdrop",e)}cH("MuiBackdrop",["root","invisible"]);const hX=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],vX=gY("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>fU({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),yX=L.forwardRef((function(e,t){var r,n,o;const a=xY({props:e,name:"MuiBackdrop"}),{children:i,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:f,slotProps:p={},slots:m={},TransitionComponent:h=pX,transitionDuration:v}=a,y=pU(a,hX),g=fU({},a,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:r}=e;return xG({root:["root",r&&"invisible"]},mX,t)})(g),w=null!=(r=p.root)?r:u.root;return LP.jsx(h,fU({in:f,timeout:v},y,{children:LP.jsx(vX,fU({"aria-hidden":!0},w,{as:null!=(n=null!=(o=m.root)?o:c.Root)?n:l,className:aH(b.root,s,null==w?void 0:w.className),ownerState:fU({},g,null==w?void 0:w.ownerState),classes:b,ref:t,children:i}))}))}));var gX=yX;var bX=cH("MuiBox",["root"]);const wX=DQ(),SX=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,a=Nq("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(UK),i=L.forwardRef((function(e,i){const s=YK(r),l=eH(e),{className:c,component:u="div"}=l,d=pU(l,iH);return LP.jsx(a,fU({as:u,ref:i,className:aH(c,o?o(n):n),theme:t&&s[t]||s},d))}));return i}({themeId:dU,defaultTheme:wX,defaultClassName:bX.root,generateClassName:nH.generate});var xX=SX;function $X(e){return lH("MuiButton",e)}var kX=cH("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var _X=L.createContext({});var EX=L.createContext(void 0);const CX=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],PX=e=>fU({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),jX=gY(SJ,{shouldForwardProp:e=>yY(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Qq(r.color)}`],t[`size${Qq(r.size)}`],t[`${r.variant}Size${Qq(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],a="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return fU({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":fU({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:rQ(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rQ(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rQ(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":fU({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${kX.focusVisible}`]:fU({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${kX.disabled}`]:fU({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${rQ(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${kX.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${kX.disabled}`]:{boxShadow:"none"}})),OX=gY("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Qq(r.size)}`]]}})((({ownerState:e})=>fU({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},PX(e)))),NX=gY("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Qq(r.size)}`]]}})((({ownerState:e})=>fU({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},PX(e)))),RX=L.forwardRef((function(e,t){const r=L.useContext(_X),n=L.useContext(EX),o=xY({props:WH(r,e),name:"MuiButton"}),{children:a,color:i="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:m=!1,size:h="medium",startIcon:v,type:y,variant:g="text"}=o,b=pU(o,CX),w=fU({},o,{color:i,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:m,size:h,type:y,variant:g}),S=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:a,classes:i}=e;return fU({},i,xG({root:["root",a,`${a}${Qq(t)}`,`size${Qq(o)}`,`${a}Size${Qq(o)}`,`color${Qq(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Qq(o)}`],endIcon:["icon","endIcon",`iconSize${Qq(o)}`]},$X,i))})(w),x=v&&LP.jsx(OX,{className:S.startIcon,ownerState:w,children:v}),$=f&&LP.jsx(NX,{className:S.endIcon,ownerState:w,children:f}),k=n||"";return LP.jsxs(jX,fU({ownerState:w,className:aH(r.className,S.root,l,k),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:aH(S.focusVisible,p),ref:t,type:y},b,{classes:S,children:[x,a,$]}))}));var TX=RX;function AX(e){return lH("PrivateSwitchBase",e)}cH("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const IX=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],MX=gY(SJ)((({ownerState:e})=>fU({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),FX=gY("input",{shouldForwardProp:yY})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),DX=L.forwardRef((function(e,t){const{autoFocus:r,checked:n,checkedIcon:o,className:a,defaultChecked:i,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:d,inputProps:f,inputRef:p,name:m,onBlur:h,onChange:v,onFocus:y,readOnly:g,required:b=!1,tabIndex:w,type:S,value:x}=e,$=pU(e,IX),[k,_]=oG({controlled:n,default:Boolean(i),name:"SwitchBase",state:"checked"}),E=UJ();let C=s;E&&void 0===C&&(C=E.disabled);const P="checkbox"===S||"radio"===S,j=fU({},e,{checked:k,disabled:C,disableFocusRipple:l,edge:c}),O=(e=>{const{classes:t,checked:r,disabled:n,edge:o}=e;return xG({root:["root",r&&"checked",n&&"disabled",o&&`edge${Qq(o)}`],input:["input"]},AX,t)})(j);return LP.jsxs(MX,fU({component:"span",className:aH(O.root,a),centerRipple:!0,focusRipple:!l,disabled:C,tabIndex:null,role:void 0,onFocus:e=>{y&&y(e),E&&E.onFocus&&E.onFocus(e)},onBlur:e=>{h&&h(e),E&&E.onBlur&&E.onBlur(e)},ownerState:j,ref:t},$,{children:[LP.jsx(FX,fU({autoFocus:r,checked:n,defaultChecked:i,className:O.input,disabled:C,id:P?d:void 0,name:m,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;_(t),v&&v(e,t)},readOnly:g,ref:p,required:b,ownerState:j,tabIndex:w,type:S},"checkbox"===S&&void 0===x?{}:{value:x},f)),k?o:u]}))}));var zX=DX,LX=PY(LP.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),VX=PY(LP.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),BX=PY(LP.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function UX(e){return lH("MuiCheckbox",e)}var WX=cH("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);const qX=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],KX=gY(zX,{shouldForwardProp:e=>yY(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${Qq(r.size)}`],"default"!==r.color&&t[`color${Qq(r.color)}`]]}})((({theme:e,ownerState:t})=>fU({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rQ("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${WX.checked}, &.${WX.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${WX.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),HX=LP.jsx(VX,{}),GX=LP.jsx(LX,{}),QX=LP.jsx(BX,{}),YX=L.forwardRef((function(e,t){var r,n;const o=xY({props:e,name:"MuiCheckbox"}),{checkedIcon:a=HX,color:i="primary",icon:s=GX,indeterminate:l=!1,indeterminateIcon:c=QX,inputProps:u,size:d="medium",className:f}=o,p=pU(o,qX),m=l?c:s,h=l?c:a,v=fU({},o,{color:i,indeterminate:l,size:d}),y=(e=>{const{classes:t,indeterminate:r,color:n,size:o}=e;return fU({},t,xG({root:["root",r&&"indeterminate",`color${Qq(n)}`,`size${Qq(o)}`]},UX,t))})(v);return LP.jsx(KX,fU({type:"checkbox",inputProps:fU({"data-indeterminate":l},u),icon:L.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:d}),checkedIcon:L.cloneElement(h,{fontSize:null!=(n=h.props.fontSize)?n:d}),ownerState:v,ref:t,className:aH(y.root,f)},p,{classes:y}))}));var JX=YX;function XX(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ZX(e){return parseInt(ZH(e).getComputedStyle(e).paddingRight,10)||0}function eZ(e,t,r,n,o){const a=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===a.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&XX(e,o)}))}function tZ(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function rZ(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=XH(e);return t.body===e?ZH(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=wG(XH(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${ZX(n)+e}px`;const t=XH(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${ZX(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=XH(n).body;else{const t=n.parentElement,r=ZH(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const nZ=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function oZ(e){const t=[],r=[];return Array.from(e.querySelectorAll(nZ)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function aZ(){return!0}function iZ(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=oZ,isEnabled:i=aZ,open:s}=e,l=L.useRef(!1),c=L.useRef(null),u=L.useRef(null),d=L.useRef(null),f=L.useRef(null),p=L.useRef(!1),m=L.useRef(null),h=iG(PG(t),m),v=L.useRef(null);L.useEffect((()=>{s&&m.current&&(p.current=!r)}),[r,s]),L.useEffect((()=>{if(!s||!m.current)return;const e=XH(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),p.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),L.useEffect((()=>{if(!s||!m.current)return;const e=XH(m.current),t=t=>{v.current=t,!n&&i()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(l.current=!0,u.current&&u.current.focus())},r=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!i()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==c.current&&e.activeElement!==u.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!p.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(r=a(m.current)),r.length>0){var o,s;const e=Boolean((null==(o=v.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=v.current)?void 0:s.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,i,s,a]);const y=e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0};return LP.jsxs(L.Fragment,{children:[LP.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),L.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;const r=t.props.onFocus;r&&r(e)}}),LP.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}const sZ=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&XX(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);eZ(t,e.mount,e.modalRef,n,!0);const o=tZ(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=tZ(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=rZ(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=tZ(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&XX(e.modalRef,t),eZ(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&XX(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function lZ(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=sZ,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,f=L.useRef({}),p=L.useRef(null),m=L.useRef(null),h=iG(m,d),[v,y]=L.useState(!u),g=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let b=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(b=!1);const w=()=>(f.current.modalRef=m.current,f.current.mount=p.current,f.current),S=()=>{o.mount(w(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},x=aG((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||XH(p.current).body;o.add(w(),e),m.current&&S()})),$=L.useCallback((()=>o.isTopModal(w())),[o]),k=aG((e=>{p.current=e,e&&(u&&$()?S():m.current&&XX(m.current,b))})),_=L.useCallback((()=>{o.remove(w(),b)}),[b,o]);L.useEffect((()=>()=>{_()}),[_]),L.useEffect((()=>{u?x():g&&a||_()}),[u,_,g,a,x]);const E=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&$()&&(r||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},C=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=kG(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=fU({},r,t);return fU({role:"presentation"},n,{onKeyDown:E(n),ref:h})},getBackdropProps:(e={})=>fU({"aria-hidden":!0},e,{onClick:C(e),open:u}),getTransitionProps:()=>({onEnter:QH((()=>{y(!1),i&&i()}),null==l?void 0:l.props.onEnter),onExited:QH((()=>{y(!0),s&&s(),a&&_()}),null==l?void 0:l.props.onExited)}),rootRef:h,portalRef:k,isTopModal:$,exited:v,hasTransition:g}}function cZ(e){return lH("MuiModal",e)}cH("MuiModal",["root","hidden","backdrop"]);const uZ=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],dZ=gY("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>fU({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),fZ=gY(gX,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),pZ=L.forwardRef((function(e,t){var r,n,o,a,i,s;const l=xY({name:"MuiModal",props:e}),{BackdropComponent:c=fZ,BackdropProps:u,className:d,closeAfterTransition:f=!1,children:p,container:m,component:h,components:v={},componentsProps:y={},disableAutoFocus:g=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:w=!1,disablePortal:S=!1,disableRestoreFocus:x=!1,disableScrollLock:$=!1,hideBackdrop:k=!1,keepMounted:_=!1,onBackdropClick:E,open:C,slotProps:P,slots:j}=l,O=pU(l,uZ),N=fU({},l,{closeAfterTransition:f,disableAutoFocus:g,disableEnforceFocus:b,disableEscapeKeyDown:w,disablePortal:S,disableRestoreFocus:x,disableScrollLock:$,hideBackdrop:k,keepMounted:_}),{getRootProps:R,getBackdropProps:T,getTransitionProps:A,portalRef:I,isTopModal:M,exited:F,hasTransition:D}=lZ(fU({},N,{rootRef:t})),z=fU({},N,{exited:F}),V=(e=>{const{open:t,exited:r,classes:n}=e;return xG({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},cZ,n)})(z),B={};if(void 0===p.props.tabIndex&&(B.tabIndex="-1"),D){const{onEnter:e,onExited:t}=A();B.onEnter=e,B.onExited=t}const U=null!=(r=null!=(n=null==j?void 0:j.root)?n:v.Root)?r:dZ,W=null!=(o=null!=(a=null==j?void 0:j.backdrop)?a:v.Backdrop)?o:c,q=null!=(i=null==P?void 0:P.root)?i:y.root,K=null!=(s=null==P?void 0:P.backdrop)?s:y.backdrop,H=CG({elementType:U,externalSlotProps:q,externalForwardedProps:O,getSlotProps:R,additionalProps:{ref:t,as:h},ownerState:z,className:aH(d,null==q?void 0:q.className,null==V?void 0:V.root,!z.open&&z.exited&&(null==V?void 0:V.hidden))}),G=CG({elementType:W,externalSlotProps:K,additionalProps:u,getSlotProps:e=>T(fU({},e,{onClick:t=>{E&&E(t),null!=e&&e.onClick&&e.onClick(t)}})),className:aH(null==K?void 0:K.className,null==u?void 0:u.className,null==V?void 0:V.backdrop),ownerState:z});return _||C||D&&!F?LP.jsx(IJ,{ref:I,container:m,disablePortal:S,children:LP.jsxs(U,fU({},H,{children:[!k&&c?LP.jsx(W,fU({},G)):null,LP.jsx(iZ,{disableEnforceFocus:b,disableAutoFocus:g,disableRestoreFocus:x,isEnabled:M,open:C,children:L.cloneElement(p,B)})]}))}):null}));var mZ=pZ;function hZ(e){return lH("MuiDivider",e)}var vZ=cH("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const yZ=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],gZ=gY("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>fU({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:rQ(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>fU({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>fU({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>fU({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>fU({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),bZ=gY("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>fU({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),wZ=L.forwardRef((function(e,t){const r=xY({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:a,component:i=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==i?"separator":void 0),textAlign:d="center",variant:f="fullWidth"}=r,p=pU(r,yZ),m=fU({},r,{absolute:n,component:i,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:f}),h=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:a,orientation:i,textAlign:s,variant:l}=e;return xG({root:["root",t&&"absolute",l,a&&"light","vertical"===i&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===i&&"withChildrenVertical","right"===s&&"vertical"!==i&&"textAlignRight","left"===s&&"vertical"!==i&&"textAlignLeft"],wrapper:["wrapper","vertical"===i&&"wrapperVertical"]},hZ,n)})(m);return LP.jsx(gZ,fU({as:i,className:aH(h.root,a),role:u,ref:t,ownerState:m},p,{children:o?LP.jsx(bZ,{className:h.wrapper,ownerState:m,children:o}):null}))}));wZ.muiSkipListHighlight=!0;var SZ=wZ;const xZ=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],$Z=gY(XJ,{shouldForwardProp:e=>yY(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...YJ(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return fU({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${lX.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${lX.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${lX.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${lX.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${lX.disabled}, .${lX.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${lX.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&fU({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),kZ=gY(ZJ,{name:"MuiFilledInput",slot:"Input",overridesResolver:JJ})((({theme:e,ownerState:t})=>fU({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),_Z=L.forwardRef((function(e,t){var r,n,o,a;const i=xY({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:c=!1,inputComponent:u="input",multiline:d=!1,slotProps:f,slots:p={},type:m="text"}=i,h=pU(i,xZ),v=fU({},i,{fullWidth:c,inputComponent:u,multiline:d,type:m}),y=(e=>{const{classes:t,disableUnderline:r}=e;return fU({},t,xG({root:["root",!r&&"underline"],input:["input"]},sX,t))})(i),g={root:{ownerState:v},input:{ownerState:v}},b=(null!=f?f:l)?Mq(g,null!=f?f:l):g,w=null!=(r=null!=(n=p.root)?n:s.Root)?r:$Z,S=null!=(o=null!=(a=p.input)?a:s.Input)?o:kZ;return LP.jsx(rX,fU({slots:{root:w,input:S},componentsProps:b,fullWidth:c,inputComponent:u,multiline:d,ref:t,type:m},h,{classes:y}))}));_Z.muiName="Input";var EZ=_Z;function CZ(e){return lH("MuiFormControl",e)}cH("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const PZ=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],jZ=gY("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>fU({},t.root,t[`margin${Qq(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>fU({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"}))),OZ=L.forwardRef((function(e,t){const r=xY({props:e,name:"MuiFormControl"}),{children:n,className:o,color:a="primary",component:i="div",disabled:s=!1,error:l=!1,focused:c,fullWidth:u=!1,hiddenLabel:d=!1,margin:f="none",required:p=!1,size:m="medium",variant:h="outlined"}=r,v=pU(r,PZ),y=fU({},r,{color:a,component:i,disabled:s,error:l,fullWidth:u,hiddenLabel:d,margin:f,required:p,size:m,variant:h}),g=(e=>{const{classes:t,margin:r,fullWidth:n}=e;return xG({root:["root","none"!==r&&`margin${Qq(r)}`,n&&"fullWidth"]},CZ,t)})(y),[b,w]=L.useState((()=>{let e=!1;return n&&L.Children.forEach(n,(t=>{if(!JH(t,["Input","Select"]))return;const r=JH(t,["Select"])?t.props.input:t;r&&r.props.startAdornment&&(e=!0)})),e})),[S,x]=L.useState((()=>{let e=!1;return n&&L.Children.forEach(n,(t=>{JH(t,["Input","Select"])&&(KJ(t.props,!0)||KJ(t.props.inputProps,!0))&&(e=!0)})),e})),[$,k]=L.useState(!1);s&&$&&k(!1);const _=void 0===c||s?$:c;let E;const C=L.useMemo((()=>({adornedStart:b,setAdornedStart:w,color:a,disabled:s,error:l,filled:S,focused:_,fullWidth:u,hiddenLabel:d,size:m,onBlur:()=>{k(!1)},onEmpty:()=>{x(!1)},onFilled:()=>{x(!0)},onFocus:()=>{k(!0)},registerEffect:E,required:p,variant:h})),[b,a,s,l,S,_,u,d,E,p,m,h]);return LP.jsx(BJ.Provider,{value:C,children:LP.jsx(jZ,fU({as:i,ownerState:y,className:aH(g.root,o),ref:t},v,{children:n}))})}));var NZ=OZ;const RZ=function(e={}){const{createStyledComponent:t=qG,useThemeProps:r=KG,componentName:n="MuiStack"}=e,o=t(GG),a=L.forwardRef((function(e,t){const a=eH(r(e)),{component:i="div",direction:s="column",spacing:l=0,divider:c,children:u,className:d,useFlexGap:f=!1}=a,p=pU(a,UG),m={direction:s,spacing:l,useFlexGap:f},h=xG({root:["root"]},(e=>lH(n,e)),{});return LP.jsx(o,fU({as:i,ownerState:m,ref:t,className:aH(h.root,d)},p,{children:c?HG(u,c):u}))}));return a}({createStyledComponent:gY("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>xY({props:e,name:"MuiStack"})});var TZ=RZ;function AZ(e){return lH("MuiFormControlLabel",e)}var IZ=cH("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);const MZ=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],FZ=gY("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${IZ.label}`]:t.label},t.root,t[`labelPlacement${Qq(r.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>fU({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${IZ.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${IZ.label}`]:{[`&.${IZ.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),DZ=gY("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${IZ.error}`]:{color:(e.vars||e).palette.error.main}}))),zZ=L.forwardRef((function(e,t){var r,n;const o=xY({props:e,name:"MuiFormControlLabel"}),{className:a,componentsProps:i={},control:s,disabled:l,disableTypography:c,label:u,labelPlacement:d="end",required:f,slotProps:p={}}=o,m=pU(o,MZ),h=UJ(),v=null!=(r=null!=l?l:s.props.disabled)?r:null==h?void 0:h.disabled,y=null!=f?f:s.props.required,g={disabled:v,required:y};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===s.props[e]&&void 0!==o[e]&&(g[e]=o[e])}));const b=VJ({props:o,muiFormControl:h,states:["error"]}),w=fU({},o,{disabled:v,labelPlacement:d,required:y,error:b.error}),S=(e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:a}=e;return xG({root:["root",r&&"disabled",`labelPlacement${Qq(n)}`,o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]},AZ,t)})(w),x=null!=(n=p.typography)?n:i.typography;let $=u;return null==$||$.type===AJ||c||($=LP.jsx(AJ,fU({component:"span"},x,{className:aH(S.label,null==x?void 0:x.className),children:$}))),LP.jsxs(FZ,fU({className:aH(S.root,a),ownerState:w,ref:t},m,{children:[L.cloneElement(s,g),y?LP.jsxs(TZ,{display:"block",children:[$,LP.jsxs(DZ,{ownerState:w,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):$]}))}));var LZ=zZ;function VZ(e){return lH("MuiFormGroup",e)}cH("MuiFormGroup",["root","row","error"]);const BZ=["className","row"],UZ=gY("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})((({ownerState:e})=>fU({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"}))),WZ=L.forwardRef((function(e,t){const r=xY({props:e,name:"MuiFormGroup"}),{className:n,row:o=!1}=r,a=pU(r,BZ),i=fU({},r,{row:o,error:VJ({props:r,muiFormControl:UJ(),states:["error"]}).error}),s=(e=>{const{classes:t,row:r,error:n}=e;return xG({root:["root",r&&"row",n&&"error"]},VZ,t)})(i);return LP.jsx(UZ,fU({className:aH(s.root,n),ownerState:i,ref:t},a))}));var qZ=WZ;function KZ(e){return lH("MuiFormHelperText",e)}var HZ,GZ=cH("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);const QZ=["children","className","component","disabled","error","filled","focused","margin","required","variant"],YZ=gY("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${Qq(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})((({theme:e,ownerState:t})=>fU({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${GZ.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${GZ.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),JZ=L.forwardRef((function(e,t){const r=xY({props:e,name:"MuiFormHelperText"}),{children:n,className:o,component:a="p"}=r,i=pU(r,QZ),s=VJ({props:r,muiFormControl:UJ(),states:["variant","size","disabled","error","filled","focused","required"]}),l=fU({},r,{component:a,contained:"filled"===s.variant||"outlined"===s.variant,variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),c=(e=>{const{classes:t,contained:r,size:n,disabled:o,error:a,filled:i,focused:s,required:l}=e;return xG({root:["root",o&&"disabled",a&&"error",n&&`size${Qq(n)}`,r&&"contained",s&&"focused",i&&"filled",l&&"required"]},KZ,t)})(l);return LP.jsx(YZ,fU({as:a,ownerState:l,className:aH(c.root,o),ref:t},i,{children:" "===n?HZ||(HZ=LP.jsx("span",{className:"notranslate",children:"​"})):n}))}));var XZ=JZ;function ZZ(e){return lH("MuiFormLabel",e)}var e0=cH("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);const t0=["children","className","color","component","disabled","error","filled","focused","required"],r0=gY("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>fU({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>fU({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${e0.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${e0.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${e0.error}`]:{color:(e.vars||e).palette.error.main}}))),n0=gY("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${e0.error}`]:{color:(e.vars||e).palette.error.main}}))),o0=L.forwardRef((function(e,t){const r=xY({props:e,name:"MuiFormLabel"}),{children:n,className:o,component:a="label"}=r,i=pU(r,t0),s=VJ({props:r,muiFormControl:UJ(),states:["color","required","focused","disabled","error","filled"]}),l=fU({},r,{color:s.color||"primary",component:a,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),c=(e=>{const{classes:t,color:r,focused:n,disabled:o,error:a,filled:i,required:s}=e;return xG({root:["root",`color${Qq(r)}`,o&&"disabled",a&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]},ZZ,t)})(l);return LP.jsxs(r0,fU({as:a,ownerState:l,className:aH(c.root,o),ref:t},i,{children:[n,s.required&&LP.jsxs(n0,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:[" ","*"]})]}))}));var a0=o0;var i0=L.createContext();function s0(e){return lH("MuiGrid",e)}const l0=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],c0=cH("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...l0.map((e=>`grid-xs-${e}`)),...l0.map((e=>`grid-sm-${e}`)),...l0.map((e=>`grid-md-${e}`)),...l0.map((e=>`grid-lg-${e}`)),...l0.map((e=>`grid-xl-${e}`))]),u0=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function d0(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function f0({breakpoints:e,values:t}){let r="";Object.keys(t).forEach((e=>{""===r&&0!==t[e]&&(r=e)}));const n=Object.keys(e).sort(((t,r)=>e[t]-e[r]));return n.slice(0,n.indexOf(r))}const p0=gY("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{container:n,direction:o,item:a,spacing:i,wrap:s,zeroMinWidth:l,breakpoints:c}=r;let u=[];n&&(u=function(e,t,r={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[r[`spacing-xs-${String(e)}`]];const n=[];return t.forEach((t=>{const o=e[t];Number(o)>0&&n.push(r[`spacing-${t}-${String(o)}`])})),n}(i,c,t));const d=[];return c.forEach((e=>{const n=r[e];n&&d.push(t[`grid-${e}-${String(n)}`])})),[t.root,n&&t.container,a&&t.item,l&&t.zeroMinWidth,...u,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==s&&t[`wrap-xs-${String(s)}`],...d]}})((({ownerState:e})=>fU({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap})),(function({theme:e,ownerState:t}){return qq({theme:e},Gq({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${c0.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:r,rowSpacing:n}=t;let o={};if(r&&0!==n){const t=Gq({values:n,breakpoints:e.breakpoints.values});let r;"object"==typeof t&&(r=f0({breakpoints:e.breakpoints.values,values:t})),o=qq({theme:e},t,((t,n)=>{var o;const a=e.spacing(t);return"0px"!==a?{marginTop:`-${d0(a)}`,[`& > .${c0.item}`]:{paddingTop:d0(a)}}:null!=(o=r)&&o.includes(n)?{}:{marginTop:0,[`& > .${c0.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:r,columnSpacing:n}=t;let o={};if(r&&0!==n){const t=Gq({values:n,breakpoints:e.breakpoints.values});let r;"object"==typeof t&&(r=f0({breakpoints:e.breakpoints.values,values:t})),o=qq({theme:e},t,((t,n)=>{var o;const a=e.spacing(t);return"0px"!==a?{width:`calc(100% + ${d0(a)})`,marginLeft:`-${d0(a)}`,[`& > .${c0.item}`]:{paddingLeft:d0(a)}}:null!=(o=r)&&o.includes(n)?{}:{width:"100%",marginLeft:0,[`& > .${c0.item}`]:{paddingLeft:0}}}))}return o}),(function({theme:e,ownerState:t}){let r;return e.breakpoints.keys.reduce(((n,o)=>{let a={};if(t[o]&&(r=t[o]),!r)return n;if(!0===r)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===r)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=Gq({values:t.columns,breakpoints:e.breakpoints.values}),s="object"==typeof i?i[o]:i;if(null==s)return n;const l=Math.round(r/s*1e8)/1e6+"%";let c={};if(t.container&&t.item&&0!==t.columnSpacing){const r=e.spacing(t.columnSpacing);if("0px"!==r){const e=`calc(${l} + ${d0(r)})`;c={flexBasis:e,maxWidth:e}}}a=fU({flexBasis:l,flexGrow:0,maxWidth:l},c)}return 0===e.breakpoints.values[o]?Object.assign(n,a):n[e.breakpoints.up(o)]=a,n}),{})}));const m0=e=>{const{classes:t,container:r,direction:n,item:o,spacing:a,wrap:i,zeroMinWidth:s,breakpoints:l}=e;let c=[];r&&(c=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[`spacing-xs-${String(e)}`];const r=[];return t.forEach((t=>{const n=e[t];if(Number(n)>0){const e=`spacing-${t}-${String(n)}`;r.push(e)}})),r}(a,l));const u=[];l.forEach((t=>{const r=e[t];r&&u.push(`grid-${t}-${String(r)}`)}));return xG({root:["root",r&&"container",o&&"item",s&&"zeroMinWidth",...c,"row"!==n&&`direction-xs-${String(n)}`,"wrap"!==i&&`wrap-xs-${String(i)}`,...u]},s0,t)},h0=L.forwardRef((function(e,t){const r=xY({props:e,name:"MuiGrid"}),{breakpoints:n}=LQ(),o=eH(r),{className:a,columns:i,columnSpacing:s,component:l="div",container:c=!1,direction:u="row",item:d=!1,rowSpacing:f,spacing:p=0,wrap:m="wrap",zeroMinWidth:h=!1}=o,v=pU(o,u0),y=f||p,g=s||p,b=L.useContext(i0),w=c?i||12:b,S={},x=fU({},v);n.keys.forEach((e=>{null!=v[e]&&(S[e]=v[e],delete x[e])}));const $=fU({},o,{columns:w,container:c,direction:u,item:d,rowSpacing:y,columnSpacing:g,wrap:m,zeroMinWidth:h,spacing:p},S,{breakpoints:n.keys}),k=m0($);return LP.jsx(i0.Provider,{value:w,children:LP.jsx(p0,fU({ownerState:$,className:aH(k.root,a),as:l,ref:t},x))})}));var v0=h0;const y0=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function g0(e){return`scale(${e}, ${e**2})`}const b0={entering:{opacity:1,transform:g0(1)},entered:{opacity:1,transform:"none"}},w0="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),S0=L.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:a,in:i,onEnter:s,onEntered:l,onEntering:c,onExit:u,onExited:d,onExiting:f,style:p,timeout:m="auto",TransitionComponent:h=BY}=e,v=pU(e,y0),y=uG(),g=L.useRef(),b=LQ(),w=L.useRef(null),S=iG(w,PG(o),t),x=e=>t=>{if(e){const r=w.current;void 0===t?e(r):e(r,t)}},$=x(c),k=x(((e,t)=>{QY(e);const{duration:r,delay:n,easing:o}=YY({style:p,timeout:m,easing:a},{mode:"enter"});let i;"auto"===m?(i=b.transitions.getAutoHeightDuration(e.clientHeight),g.current=i):i=r,e.style.transition=[b.transitions.create("opacity",{duration:i,delay:n}),b.transitions.create("transform",{duration:w0?i:.666*i,delay:n,easing:o})].join(","),s&&s(e,t)})),_=x(l),E=x(f),C=x((e=>{const{duration:t,delay:r,easing:n}=YY({style:p,timeout:m,easing:a},{mode:"exit"});let o;"auto"===m?(o=b.transitions.getAutoHeightDuration(e.clientHeight),g.current=o):o=t,e.style.transition=[b.transitions.create("opacity",{duration:o,delay:r}),b.transitions.create("transform",{duration:w0?o:.666*o,delay:w0?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=g0(.75),u&&u(e)})),P=x(d);return LP.jsx(h,fU({appear:n,in:i,nodeRef:w,onEnter:k,onEntered:_,onEntering:$,onExit:C,onExited:P,onExiting:E,addEndListener:e=>{"auto"===m&&y.start(g.current||0,e),r&&r(w.current,e)},timeout:"auto"===m?null:m},v,{children:(e,t)=>L.cloneElement(o,fU({style:fU({opacity:0,transform:g0(.75),visibility:"exited"!==e||i?void 0:"hidden"},b0[e],p,o.props.style),ref:S},t))}))}));S0.muiSupportAuto=!0;var x0=S0;const $0=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],k0=gY(XJ,{shouldForwardProp:e=>yY(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...YJ(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),fU({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${oX.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${oX.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${oX.disabled}, .${oX.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${oX.disabled}:before`]:{borderBottomStyle:"dotted"}})})),_0=gY(ZJ,{name:"MuiInput",slot:"Input",overridesResolver:JJ})({}),E0=L.forwardRef((function(e,t){var r,n,o,a;const i=xY({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:f=!1,slotProps:p,slots:m={},type:h="text"}=i,v=pU(i,$0),y=(e=>{const{classes:t,disableUnderline:r}=e;return fU({},t,xG({root:["root",!r&&"underline"],input:["input"]},nX,t))})(i),g={root:{ownerState:{disableUnderline:s}}},b=(null!=p?p:c)?Mq(null!=p?p:c,g):g,w=null!=(r=null!=(n=m.root)?n:l.Root)?r:k0,S=null!=(o=null!=(a=m.input)?a:l.Input)?o:_0;return LP.jsx(rX,fU({slots:{root:w,input:S},slotProps:b,fullWidth:u,inputComponent:d,multiline:f,ref:t,type:h},v,{classes:y}))}));E0.muiName="Input";var C0=E0;function P0(e){return lH("MuiInputLabel",e)}cH("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const j0=["disableAnimation","margin","shrink","variant","className"],O0=gY(a0,{shouldForwardProp:e=>yY(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${e0.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,"small"===r.size&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})((({theme:e,ownerState:t})=>fU({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&fU({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&fU({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&fU({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"})))),N0=L.forwardRef((function(e,t){const r=xY({name:"MuiInputLabel",props:e}),{disableAnimation:n=!1,shrink:o,className:a}=r,i=pU(r,j0),s=UJ();let l=o;void 0===l&&s&&(l=s.filled||s.focused||s.adornedStart);const c=VJ({props:r,muiFormControl:s,states:["size","variant","required","focused"]}),u=fU({},r,{disableAnimation:n,formControl:s,shrink:l,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),d=(e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:a,variant:i,required:s}=e;return fU({},t,xG({root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&"normal"!==n&&`size${Qq(n)}`,i],asterisk:[s&&"asterisk"]},P0,t))})(u);return LP.jsx(O0,fU({"data-shrink":l,ownerState:u,ref:t,className:aH(d.root,a)},i,{classes:d}))}));var R0=N0;var T0=L.createContext({});function A0(e){return lH("MuiList",e)}cH("MuiList",["root","padding","dense","subheader"]);const I0=["children","className","component","dense","disablePadding","subheader"],M0=gY("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>fU({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),F0=L.forwardRef((function(e,t){const r=xY({props:e,name:"MuiList"}),{children:n,className:o,component:a="ul",dense:i=!1,disablePadding:s=!1,subheader:l}=r,c=pU(r,I0),u=L.useMemo((()=>({dense:i})),[i]),d=fU({},r,{component:a,dense:i,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return xG({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},A0,t)})(d);return LP.jsx(T0.Provider,{value:u,children:LP.jsxs(M0,fU({as:a,className:aH(f.root,o),ref:t,ownerState:d},c,{children:[l,n]}))})}));var D0=F0;function z0(e){return lH("MuiListItem",e)}var L0=cH("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var V0=cH("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function B0(e){return lH("MuiListItemSecondaryAction",e)}cH("MuiListItemSecondaryAction",["root","disableGutters"]);const U0=["className"],W0=gY("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})((({ownerState:e})=>fU({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),q0=L.forwardRef((function(e,t){const r=xY({props:e,name:"MuiListItemSecondaryAction"}),{className:n}=r,o=pU(r,U0),a=fU({},r,{disableGutters:L.useContext(T0).disableGutters}),i=(e=>{const{disableGutters:t,classes:r}=e;return xG({root:["root",t&&"disableGutters"]},B0,r)})(a);return LP.jsx(W0,fU({className:aH(i.root,n),ownerState:a,ref:t},o))}));q0.muiName="ListItemSecondaryAction";var K0=q0;const H0=["className"],G0=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Q0=gY("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>fU({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&fU({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${V0.root}`]:{paddingRight:48}},{[`&.${L0.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${L0.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rQ(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${L0.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rQ(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${L0.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${L0.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rQ(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rQ(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),Y0=gY("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),J0=L.forwardRef((function(e,t){const r=xY({props:e,name:"MuiListItem"}),{alignItems:n="center",autoFocus:o=!1,button:a=!1,children:i,className:s,component:l,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:f}={},dense:p=!1,disabled:m=!1,disableGutters:h=!1,disablePadding:v=!1,divider:y=!1,focusVisibleClassName:g,secondaryAction:b,selected:w=!1,slotProps:S={},slots:x={}}=r,$=pU(r.ContainerProps,H0),k=pU(r,G0),_=L.useContext(T0),E=L.useMemo((()=>({dense:p||_.dense||!1,alignItems:n,disableGutters:h})),[n,_.dense,p,h]),C=L.useRef(null);KH((()=>{o&&C.current&&C.current.focus()}),[o]);const P=L.Children.toArray(i),j=P.length&&JH(P[P.length-1],["ListItemSecondaryAction"]),O=fU({},r,{alignItems:n,autoFocus:o,button:a,dense:E.dense,disabled:m,disableGutters:h,disablePadding:v,divider:y,hasSecondaryAction:j,selected:w}),N=(e=>{const{alignItems:t,button:r,classes:n,dense:o,disabled:a,disableGutters:i,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return xG({root:["root",o&&"dense",!i&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",r&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},z0,n)})(O),R=iG(C,t),T=x.root||c.Root||Q0,A=S.root||u.root||{},I=fU({className:aH(N.root,A.className,s),disabled:m},k);let M=l||"li";return a&&(I.component=l||"div",I.focusVisibleClassName=aH(L0.focusVisible,g),M=SJ),j?(M=I.component||l?M:"div","li"===d&&("li"===M?M="div":"li"===I.component&&(I.component="div")),LP.jsx(T0.Provider,{value:E,children:LP.jsxs(Y0,fU({as:d,className:aH(N.container,f),ref:R,ownerState:O},$,{children:[LP.jsx(T,fU({},A,!$G(T)&&{as:M,ownerState:fU({},O,A.ownerState)},I,{children:P})),P.pop()]}))})):LP.jsx(T0.Provider,{value:E,children:LP.jsxs(T,fU({},A,{as:M,ref:R},!$G(T)&&{ownerState:fU({},O,A.ownerState)},I,{children:[P,b&&LP.jsx(K0,{children:b})]}))})}));var X0=J0;function Z0(e){return lH("MuiListItemIcon",e)}var e1=cH("MuiListItemIcon",["root","alignItemsFlexStart"]);const t1=["className"],r1=gY("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>fU({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),n1=L.forwardRef((function(e,t){const r=xY({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=pU(r,t1),a=fU({},r,{alignItems:L.useContext(T0).alignItems}),i=(e=>{const{alignItems:t,classes:r}=e;return xG({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Z0,r)})(a);return LP.jsx(r1,fU({className:aH(i.root,n),ownerState:a,ref:t},o))}));var o1=n1;function a1(e){return lH("MuiListItemText",e)}var i1=cH("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const s1=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],l1=gY("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${i1.primary}`]:t.primary},{[`& .${i1.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})((({ownerState:e})=>fU({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),c1=L.forwardRef((function(e,t){const r=xY({props:e,name:"MuiListItemText"}),{children:n,className:o,disableTypography:a=!1,inset:i=!1,primary:s,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:u}=r,d=pU(r,s1),{dense:f}=L.useContext(T0);let p=null!=s?s:n,m=c;const h=fU({},r,{disableTypography:a,inset:i,primary:!!p,secondary:!!m,dense:f}),v=(e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:a}=e;return xG({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},a1,t)})(h);return null==p||p.type===AJ||a||(p=LP.jsx(AJ,fU({variant:f?"body2":"body1",className:v.primary,component:null!=l&&l.variant?void 0:"span",display:"block"},l,{children:p}))),null==m||m.type===AJ||a||(m=LP.jsx(AJ,fU({variant:"body2",className:v.secondary,color:"text.secondary",display:"block"},u,{children:m}))),LP.jsxs(l1,fU({className:aH(v.root,o),ownerState:h,ref:t},d,{children:[p,m]}))}));var u1=c1;const d1=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function f1(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function p1(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function m1(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function h1(e,t,r,n,o,a){let i=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&m1(s,a)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const v1=L.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:a,className:i,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:c,variant:u="selectedMenu"}=e,d=pU(e,d1),f=L.useRef(null),p=L.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});KH((()=>{n&&f.current.focus()}),[n]),L.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&r){const r=`${wG(XH(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,f.current.style.width=`calc(100% + ${r})`}return f.current}})),[]);const m=iG(f,t);let h=-1;L.Children.forEach(a,((e,t)=>{L.isValidElement(e)?(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=a.length&&(h=-1))):h===t&&(h+=1,h>=a.length&&(h=-1))}));const v=L.Children.map(a,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),L.cloneElement(e,t)}return e}));return LP.jsx(D0,fU({role:"menu",ref:m,className:i,onKeyDown:e=>{const t=f.current,r=e.key,n=XH(t).activeElement;if("ArrowDown"===r)e.preventDefault(),h1(t,n,l,s,f1);else if("ArrowUp"===r)e.preventDefault(),h1(t,n,l,s,p1);else if("Home"===r)e.preventDefault(),h1(t,null,l,s,f1);else if("End"===r)e.preventDefault(),h1(t,null,l,s,p1);else if(1===r.length){const o=p.current,a=r.toLowerCase(),i=performance.now();o.keys.length>0&&(i-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&a!==o.keys[0]&&(o.repeating=!1)),o.lastTime=i,o.keys.push(a);const l=n&&!o.repeating&&m1(n,o);o.previousKeyMatched&&(l||h1(t,n,!1,s,f1,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:n?0:-1},d,{children:v}))}));var y1=v1;function g1(e){return lH("MuiPopover",e)}cH("MuiPopover",["root","paper"]);const b1=["onEntering"],w1=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],S1=["slotProps"];function x1(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function $1(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function k1(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function _1(e){return"function"==typeof e?e():e}const E1=gY(mZ,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),C1=gY(tJ,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),P1=L.forwardRef((function(e,t){var r,n,o;const a=xY({props:e,name:"MuiPopover"}),{action:i,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:f,container:p,elevation:m=8,marginThreshold:h=16,open:v,PaperProps:y={},slots:g,slotProps:b,transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:S=x0,transitionDuration:x="auto",TransitionProps:{onEntering:$}={},disableScrollLock:k=!1}=a,_=pU(a.TransitionProps,b1),E=pU(a,w1),C=null!=(r=null==b?void 0:b.paper)?r:y,P=L.useRef(),j=iG(P,C.ref),O=fU({},a,{anchorOrigin:l,anchorReference:u,elevation:m,marginThreshold:h,externalPaperSlotProps:C,transformOrigin:w,TransitionComponent:S,transitionDuration:x,TransitionProps:_}),N=(e=>{const{classes:t}=e;return xG({root:["root"],paper:["paper"]},g1,t)})(O),R=L.useCallback((()=>{if("anchorPosition"===u)return c;const e=_1(s),t=(e&&1===e.nodeType?e:XH(P.current).body).getBoundingClientRect();return{top:t.top+x1(t,l.vertical),left:t.left+$1(t,l.horizontal)}}),[s,l.horizontal,l.vertical,c,u]),T=L.useCallback((e=>({vertical:x1(e,w.vertical),horizontal:$1(e,w.horizontal)})),[w.horizontal,w.vertical]),A=L.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=T(t);if("none"===u)return{top:null,left:null,transformOrigin:k1(r)};const n=R();let o=n.top-r.vertical,a=n.left-r.horizontal;const i=o+t.height,l=a+t.width,c=ZH(_1(s)),d=c.innerHeight-h,f=c.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,r.vertical+=e}else if(null!==h&&i>d){const e=i-d;o-=e,r.vertical+=e}if(null!==h&&a<h){const e=a-h;a-=e,r.horizontal+=e}else if(l>f){const e=l-f;a-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(a)}px`,transformOrigin:k1(r)}}),[s,u,R,T,h]),[I,M]=L.useState(v),F=L.useCallback((()=>{const e=P.current;if(!e)return;const t=A(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,M(!0)}),[A]);L.useEffect((()=>(k&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[s,k,F]);L.useEffect((()=>{v&&F()})),L.useImperativeHandle(i,(()=>v?{updatePosition:()=>{F()}}:null),[v,F]),L.useEffect((()=>{if(!v)return;const e=YH((()=>{F()})),t=ZH(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,v,F]);let D=x;"auto"!==x||S.muiSupportAuto||(D=void 0);const z=p||(s?XH(_1(s)).body:void 0),V=null!=(n=null==g?void 0:g.root)?n:E1,B=null!=(o=null==g?void 0:g.paper)?o:C1,U=CG({elementType:B,externalSlotProps:fU({},C,{style:I?C.style:fU({},C.style,{opacity:0})}),additionalProps:{elevation:m,ref:j},ownerState:O,className:aH(N.paper,null==C?void 0:C.className)}),W=CG({elementType:V,externalSlotProps:(null==b?void 0:b.root)||{},externalForwardedProps:E,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:v},ownerState:O,className:aH(N.root,f)}),{slotProps:q}=W,K=pU(W,S1);return LP.jsx(V,fU({},K,!$G(V)&&{slotProps:q,disableScrollLock:k},{children:LP.jsx(S,fU({appear:!0,in:v,onEntering:(e,t)=>{$&&$(e,t),F()},onExited:()=>{M(!1)},timeout:D},_,{children:LP.jsx(B,fU({},U,{children:d}))}))}))}));var j1=P1;function O1(e){return lH("MuiMenu",e)}cH("MuiMenu",["root","paper","list"]);const N1=["onEntering"],R1=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],T1={vertical:"top",horizontal:"right"},A1={vertical:"top",horizontal:"left"},I1=gY(j1,{shouldForwardProp:e=>yY(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),M1=gY(C1,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),F1=gY(y1,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),D1=L.forwardRef((function(e,t){var r,n;const o=xY({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:i,className:s,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:f={},PopoverClasses:p,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:v="selectedMenu",slots:y={},slotProps:g={}}=o,b=pU(o.TransitionProps,N1),w=pU(o,R1),S=MG(),x=fU({},o,{autoFocus:a,disableAutoFocusItem:l,MenuListProps:c,onEntering:h,PaperProps:f,transitionDuration:m,TransitionProps:b,variant:v}),$=(e=>{const{classes:t}=e;return xG({root:["root"],paper:["paper"],list:["list"]},O1,t)})(x),k=a&&!l&&d,_=L.useRef(null);let E=-1;L.Children.map(i,((e,t)=>{L.isValidElement(e)&&(e.props.disabled||("selectedMenu"===v&&e.props.selected||-1===E)&&(E=t))}));const C=null!=(r=y.paper)?r:M1,P=null!=(n=g.paper)?n:f,j=CG({elementType:y.root,externalSlotProps:g.root,ownerState:x,className:[$.root,s]}),O=CG({elementType:C,externalSlotProps:P,ownerState:x,className:$.paper});return LP.jsx(I1,fU({onClose:u,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?T1:A1,slots:{paper:C,root:y.root},slotProps:{root:j,paper:O},open:d,ref:t,transitionDuration:m,TransitionProps:fU({onEntering:(e,t)=>{_.current&&_.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),h&&h(e,t)}},b),ownerState:x},w,{classes:p,children:LP.jsx(F1,fU({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),u&&u(e,"tabKeyDown"))},actions:_,autoFocus:a&&(-1===E||l),autoFocusItem:k,variant:v},c,{className:aH($.list,c.className),children:i}))}))}));var z1=D1;function L1(e){return lH("MuiMenuItem",e)}var V1=cH("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const B1=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],U1=gY(SJ,{shouldForwardProp:e=>yY(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>fU({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${V1.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rQ(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${V1.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rQ(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${V1.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rQ(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rQ(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${V1.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${V1.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${vZ.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${vZ.inset}`]:{marginLeft:52},[`& .${i1.root}`]:{marginTop:0,marginBottom:0},[`& .${i1.inset}`]:{paddingLeft:36},[`& .${e1.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&fU({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${e1.root} svg`]:{fontSize:"1.25rem"}})))),W1=L.forwardRef((function(e,t){const r=xY({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:a=!1,divider:i=!1,disableGutters:s=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:u,className:d}=r,f=pU(r,B1),p=L.useContext(T0),m=L.useMemo((()=>({dense:a||p.dense||!1,disableGutters:s})),[p.dense,a,s]),h=L.useRef(null);KH((()=>{n&&h.current&&h.current.focus()}),[n]);const v=fU({},r,{dense:m.dense,divider:i,disableGutters:s}),y=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=e;return fU({},i,xG({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},L1,i))})(r),g=iG(h,t);let b;return r.disabled||(b=void 0!==u?u:-1),LP.jsx(T0.Provider,{value:m,children:LP.jsx(U1,fU({ref:g,role:c,tabIndex:b,component:o,focusVisibleClassName:aH(y.focusVisible,l),className:aH(y.root,d)},f,{ownerState:v,classes:y}))})}));var q1=W1;function K1(e){return lH("MuiNativeSelect",e)}var H1=cH("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const G1=["className","disabled","error","IconComponent","inputRef","variant"],Q1=({ownerState:e,theme:t})=>fU({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":fU({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${H1.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Y1=gY("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:yY,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${H1.multiple}`]:t.multiple}]}})(Q1),J1=({ownerState:e,theme:t})=>fU({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${H1.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),X1=gY("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Qq(r.variant)}`],r.open&&t.iconOpen]}})(J1),Z1=L.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:a,inputRef:i,variant:s="standard"}=e,l=pU(e,G1),c=fU({},e,{disabled:n,variant:s,error:o}),u=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e;return xG({select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Qq(r)}`,a&&"iconOpen",n&&"disabled"]},K1,t)})(c);return LP.jsxs(L.Fragment,{children:[LP.jsx(Y1,fU({ownerState:c,className:aH(u.select,r),disabled:n,ref:i||t},l)),e.multiple?null:LP.jsx(X1,{as:a,ownerState:c,className:u.icon})]})}));var e2,t2=Z1;const r2=["children","classes","className","label","notched"],n2=gY("fieldset",{shouldForwardProp:yY})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),o2=gY("legend",{shouldForwardProp:yY})((({ownerState:e,theme:t})=>fU({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&fU({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));const a2=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],i2=gY(XJ,{shouldForwardProp:e=>yY(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:YJ})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return fU({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${iX.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${iX.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${iX.focused} .${iX.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${iX.error} .${iX.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${iX.disabled} .${iX.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&fU({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),s2=gY((function(e){const{className:t,label:r,notched:n}=e,o=pU(e,r2),a=null!=r&&""!==r,i=fU({},e,{notched:n,withLabel:a});return LP.jsx(n2,fU({"aria-hidden":!0,className:t,ownerState:i},o,{children:LP.jsx(o2,{ownerState:i,children:a?LP.jsx("span",{children:r}):e2||(e2=LP.jsx("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),l2=gY(ZJ,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:JJ})((({theme:e,ownerState:t})=>fU({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),c2=L.forwardRef((function(e,t){var r,n,o,a,i;const s=xY({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:c=!1,inputComponent:u="input",label:d,multiline:f=!1,notched:p,slots:m={},type:h="text"}=s,v=pU(s,a2),y=(e=>{const{classes:t}=e;return fU({},t,xG({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},aX,t))})(s),g=UJ(),b=VJ({props:s,muiFormControl:g,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),w=fU({},s,{color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:g,fullWidth:c,hiddenLabel:b.hiddenLabel,multiline:f,size:b.size,type:h}),S=null!=(r=null!=(n=m.root)?n:l.Root)?r:i2,x=null!=(o=null!=(a=m.input)?a:l.Input)?o:l2;return LP.jsx(rX,fU({slots:{root:S,input:x},renderSuffix:e=>LP.jsx(s2,{ownerState:w,className:y.notchedOutline,label:null!=d&&""!==d&&b.required?i||(i=LP.jsxs(L.Fragment,{children:[d," ","*"]})):d,notched:void 0!==p?p:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:u,multiline:f,ref:t,type:h},v,{classes:fU({},y,{notchedOutline:null})}))}));c2.muiName="Input";var u2=c2,d2=PY(LP.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),f2=PY(LP.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked");const p2=gY("span",{shouldForwardProp:yY})({position:"relative",display:"flex"}),m2=gY(d2)({transform:"scale(1)"}),h2=gY(f2)((({theme:e,ownerState:t})=>fU({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})})));function v2(e){const{checked:t=!1,classes:r={},fontSize:n}=e,o=fU({},e,{checked:t});return LP.jsxs(p2,{className:r.root,ownerState:o,children:[LP.jsx(m2,{fontSize:n,className:r.background,ownerState:o}),LP.jsx(h2,{fontSize:n,className:r.dot,ownerState:o})]})}var y2=L.createContext(void 0);function g2(e){return lH("MuiRadio",e)}var b2=cH("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]);const w2=["checked","checkedIcon","color","icon","name","onChange","size","className"],S2=gY(zX,{shouldForwardProp:e=>yY(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"medium"!==r.size&&t[`size${Qq(r.size)}`],t[`color${Qq(r.color)}`]]}})((({theme:e,ownerState:t})=>fU({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rQ("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${b2.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${b2.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const x2=LP.jsx(v2,{checked:!0}),$2=LP.jsx(v2,{}),k2=L.forwardRef((function(e,t){var r,n;const o=xY({props:e,name:"MuiRadio"}),{checked:a,checkedIcon:i=x2,color:s="primary",icon:l=$2,name:c,onChange:u,size:d="medium",className:f}=o,p=pU(o,w2),m=fU({},o,{color:s,size:d}),h=(e=>{const{classes:t,color:r,size:n}=e;return fU({},t,xG({root:["root",`color${Qq(r)}`,"medium"!==n&&`size${Qq(n)}`]},g2,t))})(m),v=L.useContext(y2);let y=a;const g=QH(u,v&&v.onChange);let b=c;return v&&(void 0===y&&(y=function(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}(v.value,o.value)),void 0===b&&(b=v.name)),LP.jsx(S2,fU({type:"radio",icon:L.cloneElement(l,{fontSize:null!=(r=$2.props.fontSize)?r:d}),checkedIcon:L.cloneElement(i,{fontSize:null!=(n=x2.props.fontSize)?n:d}),ownerState:m,classes:h,name:b,checked:y,onChange:g,ref:t,className:aH(h.root,f)},p))}));var _2=k2;function E2(e){return lH("MuiRadioGroup",e)}cH("MuiRadioGroup",["root","row","error"]);const C2=["actions","children","className","defaultValue","name","onChange","value"],P2=L.forwardRef((function(e,t){const{actions:r,children:n,className:o,defaultValue:a,name:i,onChange:s,value:l}=e,c=pU(e,C2),u=L.useRef(null),d=(e=>{const{classes:t,row:r,error:n}=e;return xG({root:["root",r&&"row",n&&"error"]},E2,t)})(e),[f,p]=oG({controlled:l,default:a,name:"RadioGroup"});L.useImperativeHandle(r,(()=>({focus:()=>{let e=u.current.querySelector("input:not(:disabled):checked");e||(e=u.current.querySelector("input:not(:disabled)")),e&&e.focus()}})),[]);const m=iG(t,u),h=nG(i),v=L.useMemo((()=>({name:h,onChange(e){p(e.target.value),s&&s(e,e.target.value)},value:f})),[h,s,p,f]);return LP.jsx(y2.Provider,{value:v,children:LP.jsx(qZ,fU({role:"radiogroup",ref:m,className:aH(d.root,o)},c,{children:n}))})}));var j2=P2;function O2(e){return lH("MuiSelect",e)}var N2,R2=cH("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const T2=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],A2=gY("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${R2.select}`]:t.select},{[`&.${R2.select}`]:t[r.variant]},{[`&.${R2.error}`]:t.error},{[`&.${R2.multiple}`]:t.multiple}]}})(Q1,{[`&.${R2.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),I2=gY("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Qq(r.variant)}`],r.open&&t.iconOpen]}})(J1),M2=gY("input",{shouldForwardProp:e=>vY(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function F2(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function D2(e){return null==e||"string"==typeof e&&!e.trim()}const z2=L.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:a,autoWidth:i,children:s,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:f,error:p=!1,IconComponent:m,inputRef:h,labelId:v,MenuProps:y={},multiple:g,name:b,onBlur:w,onChange:S,onClose:x,onFocus:$,onOpen:k,open:_,readOnly:E,renderValue:C,SelectDisplayProps:P={},tabIndex:j,value:O,variant:N="standard"}=e,R=pU(e,T2),[T,A]=oG({controlled:O,default:u,name:"Select"}),[I,M]=oG({controlled:_,default:c,name:"Select"}),F=L.useRef(null),D=L.useRef(null),[z,V]=L.useState(null),{current:B}=L.useRef(null!=_),[U,W]=L.useState(),q=iG(t,h),K=L.useCallback((e=>{D.current=e,e&&V(e)}),[]),H=null==z?void 0:z.parentNode;L.useImperativeHandle(q,(()=>({focus:()=>{D.current.focus()},node:F.current,value:T})),[T]),L.useEffect((()=>{c&&I&&z&&!B&&(W(i?null:H.clientWidth),D.current.focus())}),[z,i]),L.useEffect((()=>{a&&D.current.focus()}),[a]),L.useEffect((()=>{if(!v)return;const e=XH(D.current).getElementById(v);if(e){const t=()=>{getSelection().isCollapsed&&D.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[v]);const G=(e,t)=>{e?k&&k(t):x&&x(t),B||(W(i?null:H.clientWidth),M(e))},Q=L.Children.toArray(s),Y=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(g){r=Array.isArray(T)?T.slice():[];const t=T.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),T!==r&&(A(r),S)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:b}}),S(o,e)}g||G(!1,t)}},J=null!==z&&I;let X,Z;delete R["aria-invalid"];const ee=[];let te=!1;(KJ({value:T})||f)&&(C?X=C(T):te=!0);const re=Q.map((e=>{if(!L.isValidElement(e))return null;let t;if(g){if(!Array.isArray(T))throw new Error(cU(2));t=T.some((t=>F2(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=F2(T,e.props.value),t&&te&&(Z=e.props.children);return L.cloneElement(e,{"aria-selected":t?"true":"false",onClick:Y(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(X=g?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Z);let ne,oe=U;!i&&B&&z&&(oe=H.clientWidth),ne=void 0!==j?j:d?null:0;const ae=P.id||(b?`mui-component-select-${b}`:void 0),ie=fU({},e,{variant:N,value:T,open:J,error:p}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e;return xG({select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Qq(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},O2,t)})(ie),le=fU({},y.PaperProps,null==(r=y.slotProps)?void 0:r.paper),ce=nG();return LP.jsxs(L.Fragment,{children:[LP.jsx(A2,fU({ref:K,tabIndex:ne,role:"combobox","aria-controls":ce,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[v,ae].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!E){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),G(!0,e))}},onMouseDown:d||E?null:e=>{0===e.button&&(e.preventDefault(),D.current.focus(),G(!0,e))},onBlur:e=>{!J&&w&&(Object.defineProperty(e,"target",{writable:!0,value:{value:T,name:b}}),w(e))},onFocus:$},P,{ownerState:ie,className:aH(P.className,se.select,l),id:ae,children:D2(X)?N2||(N2=LP.jsx("span",{className:"notranslate",children:"​"})):X})),LP.jsx(M2,fU({"aria-invalid":p,value:Array.isArray(T)?T.join(","):T,name:b,ref:F,"aria-hidden":!0,onChange:e=>{const t=Q.find((t=>t.props.value===e.target.value));void 0!==t&&(A(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:a,ownerState:ie},R)),LP.jsx(I2,{as:m,className:se.icon,ownerState:ie}),LP.jsx(z1,fU({id:`menu-${b||""}`,anchorEl:H,open:J,onClose:e=>{G(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},y,{MenuListProps:fU({"aria-labelledby":v,role:"listbox","aria-multiselectable":g?"true":void 0,disableListWrap:!0,id:ce},y.MenuListProps),slotProps:fU({},y.slotProps,{paper:fU({},le,{style:fU({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})}));var L2=z2;const V2=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],B2=["root"],U2={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>yY(e)&&"variant"!==e,slot:"Root"},W2=gY(C0,U2)(""),q2=gY(u2,U2)(""),K2=gY(EZ,U2)(""),H2=L.forwardRef((function(e,t){const r=xY({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:a={},className:i,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:c=cX,id:u,input:d,inputProps:f,label:p,labelId:m,MenuProps:h,multiple:v=!1,native:y=!1,onClose:g,onOpen:b,open:w,renderValue:S,SelectDisplayProps:x,variant:$="outlined"}=r,k=pU(r,V2),_=y?t2:L2,E=VJ({props:r,muiFormControl:UJ(),states:["variant","error"]}),C=E.variant||$,P=fU({},r,{variant:C,classes:a}),j=(e=>{const{classes:t}=e;return t})(P),O=pU(j,B2),N=d||{standard:LP.jsx(W2,{ownerState:P}),outlined:LP.jsx(q2,{label:p,ownerState:P}),filled:LP.jsx(K2,{ownerState:P})}[C],R=iG(t,PG(N));return LP.jsx(L.Fragment,{children:L.cloneElement(N,fU({inputComponent:_,inputProps:fU({children:o,error:E.error,IconComponent:c,variant:C,type:void 0,multiple:v},y?{id:u}:{autoWidth:n,defaultOpen:s,displayEmpty:l,labelId:m,MenuProps:h,onClose:g,onOpen:b,open:w,renderValue:S,SelectDisplayProps:fU({id:u},x)},f,{classes:f?Mq(O,f.classes):O},d?d.props.inputProps:{})},(v&&y||l)&&"outlined"===C?{notched:!0}:{},{ref:R,className:aH(N.props.className,i,j.root)},!d&&{variant:C},k))})}));H2.muiName="Select";var G2=H2;function Q2(e,t){return e-t}function Y2(e,t){var r;const{index:n}=null!=(r=e.reduce(((e,r,n)=>{const o=Math.abs(t-r);return null===e||o<e.distance||o===e.distance?{distance:o,index:n}:e}),null))?r:{};return n}function J2(e,t){if(void 0!==t.current&&e.changedTouches){const r=e;for(let e=0;e<r.changedTouches.length;e+=1){const n=r.changedTouches[e];if(n.identifier===t.current)return{x:n.clientX,y:n.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function X2(e,t,r){return 100*(e-t)/(r-t)}function Z2(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(function(e){if(Math.abs(e)<1){const t=e.toExponential().split("e-"),r=t[0].split(".")[1];return(r?r.length:0)+parseInt(t[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}(t)))}function e5({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(Q2)}function t5({sliderRef:e,activeIndex:t,setActive:r}){var n,o;const a=XH(e.current);var i;null!=(n=e.current)&&n.contains(a.activeElement)&&Number(null==a||null==(o=a.activeElement)?void 0:o.getAttribute("data-index"))===t||(null==(i=e.current)||i.querySelector(`[type="range"][data-index="${t}"]`).focus());r&&r(t)}function r5(e,t){return"number"==typeof e&&"number"==typeof t?e===t:"object"==typeof e&&"object"==typeof t&&function(e,t,r=((e,t)=>e===t)){return e.length===t.length&&e.every(((e,n)=>r(e,t[n])))}(e,t)}const n5={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},o5=e=>e;let a5;function i5(){return void 0===a5&&(a5="undefined"==typeof CSS||"function"!=typeof CSS.supports||CSS.supports("touch-action","none")),a5}function s5(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:s=100,min:l=0,name:c,onChange:u,onChangeCommitted:d,orientation:f="horizontal",rootRef:p,scale:m=o5,step:h=1,shiftStep:v=10,tabIndex:y,value:g}=e,b=L.useRef(void 0),[w,S]=L.useState(-1),[x,$]=L.useState(-1),[k,_]=L.useState(!1),E=L.useRef(0),[C,P]=oG({controlled:g,default:null!=r?r:l,name:"Slider"}),j=u&&((e,t,r)=>{const n=e.nativeEvent||e,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:t,name:c}}),u(o,t,r)}),O=Array.isArray(C);let N=O?C.slice().sort(Q2):[C];N=N.map((e=>null==e?l:HH(e,l,s)));const R=!0===i&&null!==h?[...Array(Math.floor((s-l)/h)+1)].map(((e,t)=>({value:l+h*t}))):i||[],T=R.map((e=>e.value)),{isFocusVisibleRef:A,onBlur:I,onFocus:M,ref:F}=bG(),[D,z]=L.useState(-1),V=L.useRef(null),B=iG(F,V),U=iG(p,B),W=e=>t=>{var r;const n=Number(t.currentTarget.getAttribute("data-index"));M(t),!0===A.current&&z(n),$(n),null==e||null==(r=e.onFocus)||r.call(e,t)},q=e=>t=>{var r;I(t),!1===A.current&&z(-1),$(-1),null==e||null==(r=e.onBlur)||r.call(e,t)},K=(e,t)=>{const r=Number(e.currentTarget.getAttribute("data-index")),n=N[r],a=T.indexOf(n);let i=t;if(R&&null==h){const e=T[T.length-1];i=i>e?e:i<T[0]?T[0]:i<n?T[a-1]:T[a+1]}if(i=HH(i,l,s),O){o&&(i=HH(i,N[r-1]||-1/0,N[r+1]||1/0));const e=i;i=e5({values:N,newValue:i,index:r});let t=r;o||(t=i.indexOf(e)),t5({sliderRef:V,activeIndex:t})}P(i),z(r),j&&!r5(i,C)&&j(e,i,r),d&&d(e,i)},H=e=>t=>{var r;if(null!==h){const e=Number(t.currentTarget.getAttribute("data-index")),r=N[e];let n=null;("ArrowLeft"===t.key||"ArrowDown"===t.key)&&t.shiftKey||"PageDown"===t.key?n=Math.max(r-v,l):(("ArrowRight"===t.key||"ArrowUp"===t.key)&&t.shiftKey||"PageUp"===t.key)&&(n=Math.min(r+v,s)),null!==n&&(K(t,n),t.preventDefault())}null==e||null==(r=e.onKeyDown)||r.call(e,t)};KH((()=>{var e;n&&V.current.contains(document.activeElement)&&(null==(e=document.activeElement)||e.blur())}),[n]),n&&-1!==w&&S(-1),n&&-1!==D&&z(-1);const G=L.useRef(void 0);let Q=f;a&&"horizontal"===f&&(Q+="-reverse");const Y=({finger:e,move:t=!1})=>{const{current:r}=V,{width:n,height:a,bottom:i,left:c}=r.getBoundingClientRect();let u,d;if(u=0===Q.indexOf("vertical")?(i-e.y)/a:(e.x-c)/n,-1!==Q.indexOf("-reverse")&&(u=1-u),d=function(e,t,r){return(r-t)*e+t}(u,l,s),h)d=Z2(d,h,l);else{const e=Y2(T,d);d=T[e]}d=HH(d,l,s);let f=0;if(O){f=t?G.current:Y2(N,d),o&&(d=HH(d,N[f-1]||-1/0,N[f+1]||1/0));const e=d;d=e5({values:N,newValue:d,index:f}),o&&t||(f=d.indexOf(e),G.current=f)}return{newValue:d,activeIndex:f}},J=aG((e=>{const t=J2(e,b);if(!t)return;if(E.current+=1,"mousemove"===e.type&&0===e.buttons)return void X(e);const{newValue:r,activeIndex:n}=Y({finger:t,move:!0});t5({sliderRef:V,activeIndex:n,setActive:S}),P(r),!k&&E.current>2&&_(!0),j&&!r5(r,C)&&j(e,r,n)})),X=aG((e=>{const t=J2(e,b);if(_(!1),!t)return;const{newValue:r}=Y({finger:t,move:!0});S(-1),"touchend"===e.type&&$(-1),d&&d(e,r),b.current=void 0,ee()})),Z=aG((e=>{if(n)return;i5()||e.preventDefault();const t=e.changedTouches[0];null!=t&&(b.current=t.identifier);const r=J2(e,b);if(!1!==r){const{newValue:t,activeIndex:n}=Y({finger:r});t5({sliderRef:V,activeIndex:n,setActive:S}),P(t),j&&!r5(t,C)&&j(e,t,n)}E.current=0;const o=XH(V.current);o.addEventListener("touchmove",J,{passive:!0}),o.addEventListener("touchend",X,{passive:!0})})),ee=L.useCallback((()=>{const e=XH(V.current);e.removeEventListener("mousemove",J),e.removeEventListener("mouseup",X),e.removeEventListener("touchmove",J),e.removeEventListener("touchend",X)}),[X,J]);L.useEffect((()=>{const{current:e}=V;return e.addEventListener("touchstart",Z,{passive:i5()}),()=>{e.removeEventListener("touchstart",Z),ee()}}),[ee,Z]),L.useEffect((()=>{n&&ee()}),[n,ee]);const te=X2(O?N[0]:l,l,s),re=X2(N[N.length-1],l,s)-te,ne=e=>t=>{var r;null==(r=e.onMouseLeave)||r.call(e,t),$(-1)};return{active:w,axis:Q,axisProps:n5,dragging:k,focusedThumbIndex:D,getHiddenInputProps:(r={})=>{var o;const i=kG(r);var u;const d=fU({},i,{onChange:(u=i||{},e=>{var t;null==(t=u.onChange)||t.call(u,e),K(e,e.target.valueAsNumber)}),onFocus:W(i||{}),onBlur:q(i||{}),onKeyDown:H(i||{})});return fU({tabIndex:y,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":m(s),"aria-valuemin":m(l),name:c,type:"range",min:e.min,max:e.max,step:null===e.step&&e.marks?"any":null!=(o=e.step)?o:void 0,disabled:n},r,d,{style:fU({},SG,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:(e={})=>{const t=kG(e);var r;const o=fU({},t,{onMouseDown:(r=t||{},e=>{var t;if(null==(t=r.onMouseDown)||t.call(r,e),n)return;if(e.defaultPrevented)return;if(0!==e.button)return;e.preventDefault();const o=J2(e,b);if(!1!==o){const{newValue:t,activeIndex:r}=Y({finger:o});t5({sliderRef:V,activeIndex:r,setActive:S}),P(t),j&&!r5(t,C)&&j(e,t,r)}E.current=0;const a=XH(V.current);a.addEventListener("mousemove",J,{passive:!0}),a.addEventListener("mouseup",X)})});return fU({},e,{ref:U},o)},getThumbProps:(e={})=>{const t=kG(e),r={onMouseOver:(n=t||{},e=>{var t;null==(t=n.onMouseOver)||t.call(n,e);const r=Number(e.currentTarget.getAttribute("data-index"));$(r)}),onMouseLeave:ne(t||{})};var n;return fU({},e,t,r)},marks:R,open:x,range:O,rootRef:U,trackLeap:re,trackOffset:te,values:N,getThumbStyle:e=>({pointerEvents:-1!==w&&w!==e?"none":void 0})}}var l5=e=>!e||!$G(e);function c5(e){return lH("MuiSlider",e)}var u5=cH("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);const d5=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function f5(e){return e}const p5=gY("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Qq(r.color)}`],"medium"!==r.size&&t[`size${Qq(r.size)}`],r.marked&&t.marked,"vertical"===r.orientation&&t.vertical,"inverted"===r.track&&t.trackInverted,!1===r.track&&t.trackFalse]}})((({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${u5.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${u5.dragging}`]:{[`& .${u5.thumb}, & .${u5.track}`]:{transition:"none"}},variants:[...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var r;return(null!=(r=e.vars)?r:e).palette[t].main})).map((t=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}})),m5=gY("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),h5=gY("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var r;return(null!=(r=e.vars)?r:e).palette[t].main})).map((t=>({props:{color:t,track:"inverted"},style:fU({},e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:fU({backgroundColor:aQ(e.palette[t].main,.62),borderColor:aQ(e.palette[t].main,.62)},e.applyStyles("dark",{backgroundColor:nQ(e.palette[t].main,.5)}),e.applyStyles("dark",{borderColor:nQ(e.palette[t].main,.5)})))})))]}})),v5=gY("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Qq(r.color)}`],"medium"!==r.size&&t[`thumbSize${Qq(r.size)}`]]}})((({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${u5.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var r;return(null!=(r=e.vars)?r:e).palette[t].main})).map((t=>({props:{color:t},style:{[`&:hover, &.${u5.focusVisible}`]:fU({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${rQ(e.palette[t].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${u5.active}`]:fU({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${rQ(e.palette[t].main,.16)}`})}})))]}})),y5=gY((function(e){const{children:t,className:r,value:n}=e,o=(e=>{const{open:t}=e;return{offset:aH(t&&u5.valueLabelOpen),circle:u5.valueLabelCircle,label:u5.valueLabelLabel}})(e);return t?L.cloneElement(t,{className:aH(t.props.className)},LP.jsxs(L.Fragment,{children:[t.props.children,LP.jsx("span",{className:aH(o.offset,r),"aria-hidden":!0,children:LP.jsx("span",{className:o.circle,children:LP.jsx("span",{className:o.label,children:n})})})]})):null}),{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})((({theme:e})=>fU({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${u5.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${u5.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]}))),g5=gY("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>vY(e)&&"markActive"!==e,overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})((({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),b5=gY("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>vY(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})((({theme:e})=>fU({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),w5=({children:e})=>e,S5=L.forwardRef((function(e,t){var r,n,o,a,i,s,l,c,u,d,f,p,m,h,v,y,g,b,w,S,x,$,k,_;const E=xY({props:e,name:"MuiSlider"}),C=MG(),{"aria-label":P,"aria-valuetext":j,"aria-labelledby":O,component:N="span",components:R={},componentsProps:T={},color:A="primary",classes:I,className:M,disableSwap:F=!1,disabled:D=!1,getAriaLabel:z,getAriaValueText:V,marks:B=!1,max:U=100,min:W=0,orientation:q="horizontal",shiftStep:K=10,size:H="medium",step:G=1,scale:Q=f5,slotProps:Y,slots:J,track:X="normal",valueLabelDisplay:Z="off",valueLabelFormat:ee=f5}=E,te=pU(E,d5),re=fU({},E,{isRtl:C,max:U,min:W,classes:I,disabled:D,disableSwap:F,orientation:q,marks:B,color:A,size:H,step:G,shiftStep:K,scale:Q,track:X,valueLabelDisplay:Z,valueLabelFormat:ee}),{axisProps:ne,getRootProps:oe,getHiddenInputProps:ae,getThumbProps:ie,open:se,active:le,axis:ce,focusedThumbIndex:ue,range:de,dragging:fe,marks:pe,values:me,trackOffset:he,trackLeap:ve,getThumbStyle:ye}=s5(fU({},re,{rootRef:t}));re.marked=pe.length>0&&pe.some((e=>e.label)),re.dragging=fe,re.focusedThumbIndex=ue;const ge=(e=>{const{disabled:t,dragging:r,marked:n,orientation:o,track:a,classes:i,color:s,size:l}=e;return xG({root:["root",t&&"disabled",r&&"dragging",n&&"marked","vertical"===o&&"vertical","inverted"===a&&"trackInverted",!1===a&&"trackFalse",s&&`color${Qq(s)}`,l&&`size${Qq(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Qq(l)}`,s&&`thumbColor${Qq(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]},c5,i)})(re),be=null!=(r=null!=(n=null==J?void 0:J.root)?n:R.Root)?r:p5,we=null!=(o=null!=(a=null==J?void 0:J.rail)?a:R.Rail)?o:m5,Se=null!=(i=null!=(s=null==J?void 0:J.track)?s:R.Track)?i:h5,xe=null!=(l=null!=(c=null==J?void 0:J.thumb)?c:R.Thumb)?l:v5,$e=null!=(u=null!=(d=null==J?void 0:J.valueLabel)?d:R.ValueLabel)?u:y5,ke=null!=(f=null!=(p=null==J?void 0:J.mark)?p:R.Mark)?f:g5,_e=null!=(m=null!=(h=null==J?void 0:J.markLabel)?h:R.MarkLabel)?m:b5,Ee=null!=(v=null!=(y=null==J?void 0:J.input)?y:R.Input)?v:"input",Ce=null!=(g=null==Y?void 0:Y.root)?g:T.root,Pe=null!=(b=null==Y?void 0:Y.rail)?b:T.rail,je=null!=(w=null==Y?void 0:Y.track)?w:T.track,Oe=null!=(S=null==Y?void 0:Y.thumb)?S:T.thumb,Ne=null!=(x=null==Y?void 0:Y.valueLabel)?x:T.valueLabel,Re=null!=($=null==Y?void 0:Y.mark)?$:T.mark,Te=null!=(k=null==Y?void 0:Y.markLabel)?k:T.markLabel,Ae=null!=(_=null==Y?void 0:Y.input)?_:T.input,Ie=CG({elementType:be,getSlotProps:oe,externalSlotProps:Ce,externalForwardedProps:te,additionalProps:fU({},l5(be)&&{as:N}),ownerState:fU({},re,null==Ce?void 0:Ce.ownerState),className:[ge.root,M]}),Me=CG({elementType:we,externalSlotProps:Pe,ownerState:re,className:ge.rail}),Fe=CG({elementType:Se,externalSlotProps:je,additionalProps:{style:fU({},ne[ce].offset(he),ne[ce].leap(ve))},ownerState:fU({},re,null==je?void 0:je.ownerState),className:ge.track}),De=CG({elementType:xe,getSlotProps:ie,externalSlotProps:Oe,ownerState:fU({},re,null==Oe?void 0:Oe.ownerState),className:ge.thumb}),ze=CG({elementType:$e,externalSlotProps:Ne,ownerState:fU({},re,null==Ne?void 0:Ne.ownerState),className:ge.valueLabel}),Le=CG({elementType:ke,externalSlotProps:Re,ownerState:re,className:ge.mark}),Ve=CG({elementType:_e,externalSlotProps:Te,ownerState:re,className:ge.markLabel}),Be=CG({elementType:Ee,getSlotProps:ae,externalSlotProps:Ae,ownerState:re});return LP.jsxs(be,fU({},Ie,{children:[LP.jsx(we,fU({},Me)),LP.jsx(Se,fU({},Fe)),pe.filter((e=>e.value>=W&&e.value<=U)).map(((e,t)=>{const r=X2(e.value,W,U),n=ne[ce].offset(r);let o;return o=!1===X?-1!==me.indexOf(e.value):"normal"===X&&(de?e.value>=me[0]&&e.value<=me[me.length-1]:e.value<=me[0])||"inverted"===X&&(de?e.value<=me[0]||e.value>=me[me.length-1]:e.value>=me[0]),LP.jsxs(L.Fragment,{children:[LP.jsx(ke,fU({"data-index":t},Le,!$G(ke)&&{markActive:o},{style:fU({},n,Le.style),className:aH(Le.className,o&&ge.markActive)})),null!=e.label?LP.jsx(_e,fU({"aria-hidden":!0,"data-index":t},Ve,!$G(_e)&&{markLabelActive:o},{style:fU({},n,Ve.style),className:aH(ge.markLabel,Ve.className,o&&ge.markLabelActive),children:e.label})):null]},t)})),me.map(((e,t)=>{const r=X2(e,W,U),n=ne[ce].offset(r),o="off"===Z?w5:$e;return LP.jsx(o,fU({},!$G(o)&&{valueLabelFormat:ee,valueLabelDisplay:Z,value:"function"==typeof ee?ee(Q(e),t):ee,index:t,open:se===t||le===t||"on"===Z,disabled:D},ze,{children:LP.jsx(xe,fU({"data-index":t},De,{className:aH(ge.thumb,De.className,le===t&&ge.active,ue===t&&ge.focusVisible),style:fU({},n,ye(t),De.style),children:LP.jsx(Ee,fU({"data-index":t,"aria-label":z?z(t):P,"aria-valuenow":Q(e),"aria-labelledby":O,"aria-valuetext":V?V(Q(e),t):j,value:me[t]},Be))}))}),t)}))]}))}));var x5=S5;function $5(e){return lH("MuiTextField",e)}cH("MuiTextField",["root"]);const k5=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],_5={standard:C0,filled:EZ,outlined:u2},E5=gY(NZ,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),C5=L.forwardRef((function(e,t){const r=xY({props:e,name:"MuiTextField"}),{autoComplete:n,autoFocus:o=!1,children:a,className:i,color:s="primary",defaultValue:l,disabled:c=!1,error:u=!1,FormHelperTextProps:d,fullWidth:f=!1,helperText:p,id:m,InputLabelProps:h,inputProps:v,InputProps:y,inputRef:g,label:b,maxRows:w,minRows:S,multiline:x=!1,name:$,onBlur:k,onChange:_,onFocus:E,placeholder:C,required:P=!1,rows:j,select:O=!1,SelectProps:N,type:R,value:T,variant:A="outlined"}=r,I=pU(r,k5),M=fU({},r,{autoFocus:o,color:s,disabled:c,error:u,fullWidth:f,multiline:x,required:P,select:O,variant:A}),F=(e=>{const{classes:t}=e;return xG({root:["root"]},$5,t)})(M),D={};"outlined"===A&&(h&&void 0!==h.shrink&&(D.notched=h.shrink),D.label=b),O&&(N&&N.native||(D.id=void 0),D["aria-describedby"]=void 0);const z=nG(m),L=p&&z?`${z}-helper-text`:void 0,V=b&&z?`${z}-label`:void 0,B=_5[A],U=LP.jsx(B,fU({"aria-describedby":L,autoComplete:n,autoFocus:o,defaultValue:l,fullWidth:f,multiline:x,name:$,rows:j,maxRows:w,minRows:S,type:R,value:T,id:z,inputRef:g,onBlur:k,onChange:_,onFocus:E,placeholder:C,inputProps:v},D,y));return LP.jsxs(E5,fU({className:aH(F.root,i),disabled:c,error:u,fullWidth:f,ref:t,required:P,color:s,variant:A,ownerState:M},I,{children:[null!=b&&""!==b&&LP.jsx(R0,fU({htmlFor:z,id:V},h,{children:b})),O?LP.jsx(G2,fU({"aria-describedby":L,id:z,labelId:V,value:T,input:U},N,{children:a})):U,p&&LP.jsx(XZ,fU({id:L},d,{children:p}))]}))}));var P5,j5=C5,O5={},N5={},R5=n(OY);function T5(){return P5||(P5=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=R5}(N5)),N5}var A5=XG;Object.defineProperty(O5,"__esModule",{value:!0});var I5=O5.default=void 0,M5=A5(T5()),F5=LP;function D5({uiSchema:e,registry:t,...r}){const{translateString:n}=t;return LP.jsx(CJ,{title:n(Lj.AddItemButton),...r,color:"primary",children:LP.jsx(I5,{})})}function z5(e){const{children:t,disabled:r,hasToolbar:n,hasCopy:o,hasMoveDown:a,hasMoveUp:i,hasRemove:s,index:l,onCopyIndexClick:c,onDropIndexClick:u,onReorderClick:d,readonly:f,uiSchema:p,registry:m}=e,{CopyButton:h,MoveDownButton:v,MoveUpButton:y,RemoveButton:g}=m.templates.ButtonTemplates,b={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold",minWidth:0};return LP.jsxs(v0,{container:!0,alignItems:"center",children:[LP.jsx(v0,{item:!0,xs:!0,style:{overflow:"auto"},children:LP.jsx(xX,{mb:2,children:LP.jsx(tJ,{elevation:2,children:LP.jsx(xX,{p:2,children:t})})})}),n&&LP.jsxs(v0,{item:!0,children:[(i||a)&&LP.jsx(y,{style:b,disabled:r||f||!i,onClick:d(l,l-1),uiSchema:p,registry:m}),(i||a)&&LP.jsx(v,{style:b,disabled:r||f||!a,onClick:d(l,l+1),uiSchema:p,registry:m}),o&&LP.jsx(h,{style:b,disabled:r||f,onClick:c(l),uiSchema:p,registry:m}),s&&LP.jsx(g,{style:b,disabled:r||f,onClick:u(l),uiSchema:p,registry:m})]})]})}function L5(e){const{canAdd:t,disabled:r,idSchema:n,uiSchema:o,items:a,onAddClick:i,readonly:s,registry:l,required:c,schema:u,title:d}=e,f=kd(o),p=PP("ArrayFieldDescriptionTemplate",l,f),m=PP("ArrayFieldItemTemplate",l,f),h=PP("ArrayFieldTitleTemplate",l,f),{ButtonTemplates:{AddButton:v}}=l.templates;return LP.jsx(tJ,{elevation:2,children:LP.jsxs(xX,{p:2,children:[LP.jsx(h,{idSchema:n,title:f.title||d,schema:u,uiSchema:o,required:c,registry:l}),LP.jsx(p,{idSchema:n,description:f.description||u.description,schema:u,uiSchema:o,registry:l}),a&&a.map((({key:e,...t})=>LP.jsx(m,{...t},e))),t&&LP.jsx(v0,{container:!0,justifyContent:"flex-end",children:LP.jsx(v0,{item:!0,children:LP.jsx(xX,{mt:2,children:LP.jsx(v,{className:"array-item-add",onClick:i,disabled:r||s,uiSchema:o,registry:l})})})})]})})}I5=O5.default=(0,M5.default)((0,F5.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");const V5=["date","datetime-local","file","time"];function B5(e){const{id:t,name:r,placeholder:n,required:o,readonly:a,disabled:i,type:s,label:l,hideLabel:c,hideError:u,value:d,onChange:f,onChangeOverride:p,onBlur:m,onFocus:h,autofocus:v,options:y,schema:g,uiSchema:b,rawErrors:w=[],errorSchema:S,formContext:x,registry:$,InputLabelProps:k,..._}=e,E=_P(g,s,y),{step:C,min:P,max:j,accept:O,...N}=E,R={step:C,min:P,max:j,accept:O,...g.examples?{list:uj(t)}:void 0},T=V5.includes(s)?{...k,shrink:!0}:k;return LP.jsxs(LP.Fragment,{children:[LP.jsx(j5,{id:t,name:t,placeholder:n,label:hj(l||void 0,c,void 0),autoFocus:v,required:o,disabled:i||a,slotProps:{htmlInput:R},...N,value:d||0===d?d:"",error:w.length>0,onChange:p||(({target:{value:e}})=>f(""===e?y.emptyValue:e)),onBlur:({target:e})=>m(t,e&&e.value),onFocus:({target:e})=>h(t,e&&e.value),InputLabelProps:T,..._,"aria-describedby":pj(t,!!g.examples)}),Array.isArray(g.examples)&&LP.jsx("datalist",{id:uj(t),children:g.examples.concat(g.default&&!g.examples.includes(g.default)?[g.default]:[]).map((e=>LP.jsx("option",{value:e},e)))})]})}function U5(e){const{id:t,description:r}=e;return r?LP.jsx(AJ,{id:t,variant:"subtitle2",style:{marginTop:"5px"},children:r}):null}var W5={},q5=XG;Object.defineProperty(W5,"__esModule",{value:!0});var K5=W5.default=void 0,H5=q5(T5()),G5=LP;function Q5({errors:e,registry:t}){const{translateString:r}=t;return LP.jsx(tJ,{elevation:2,children:LP.jsxs(xX,{mb:2,p:2,children:[LP.jsx(AJ,{variant:"h6",children:r(Lj.ErrorsLabel)}),LP.jsx(D0,{dense:!0,children:e.map(((e,t)=>LP.jsxs(X0,{children:[LP.jsx(o1,{children:LP.jsx(K5,{color:"error"})}),LP.jsx(u1,{primary:e.stack})]},t)))})]})})}K5=W5.default=(0,H5.default)((0,G5.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error");var Y5={},J5=XG;Object.defineProperty(Y5,"__esModule",{value:!0});var X5=Y5.default=void 0,Z5=J5(T5()),e4=LP;X5=Y5.default=(0,Z5.default)((0,e4.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward");var t4={},r4=XG;Object.defineProperty(t4,"__esModule",{value:!0});var n4=t4.default=void 0,o4=r4(T5()),a4=LP;n4=t4.default=(0,o4.default)((0,a4.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward");var i4={},s4=XG;Object.defineProperty(i4,"__esModule",{value:!0});var l4=i4.default=void 0,c4=s4(T5()),u4=LP;l4=i4.default=(0,c4.default)((0,u4.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");var d4={},f4=XG;Object.defineProperty(d4,"__esModule",{value:!0});var p4=d4.default=void 0,m4=f4(T5()),h4=LP;function v4(e){const{icon:t,color:r,uiSchema:n,registry:o,...a}=e;return LP.jsx(CJ,{...a,size:"small",color:r,children:t})}function y4(e){const{registry:{translateString:t}}=e;return LP.jsx(v4,{title:t(Lj.CopyButton),...e,icon:LP.jsx(l4,{fontSize:"small"})})}function g4(e){const{registry:{translateString:t}}=e;return LP.jsx(v4,{title:t(Lj.MoveDownButton),...e,icon:LP.jsx(X5,{fontSize:"small"})})}function b4(e){const{registry:{translateString:t}}=e;return LP.jsx(v4,{title:t(Lj.MoveUpButton),...e,icon:LP.jsx(n4,{fontSize:"small"})})}function w4(e){const{iconType:t,...r}=e,{registry:{translateString:n}}=r;return LP.jsx(v4,{title:n(Lj.RemoveButton),...r,color:"error",icon:LP.jsx(p4,{fontSize:"default"===t?void 0:"small"})})}function S4(e){const{errors:t=[],idSchema:r}=e;if(0===t.length)return null;const n=cj(r);return LP.jsx(D0,{id:n,dense:!0,disablePadding:!0,children:t.map(((e,t)=>LP.jsx(X0,{disableGutters:!0,children:LP.jsx(XZ,{component:"div",id:`${n}-${t}`,children:e})},t)))})}function x4(e){const{idSchema:t,help:r}=e;if(!r)return null;const n=dj(t);return LP.jsx(XZ,{component:"div",id:n,children:r})}function $4(e){const{id:t,children:r,classNames:n,style:o,disabled:a,displayLabel:i,hidden:s,label:l,onDropPropertyClick:c,onKeyChange:u,readonly:d,required:f,rawErrors:p=[],errors:m,help:h,description:v,rawDescription:y,schema:g,uiSchema:b,registry:w}=e,S=PP("WrapIfAdditionalTemplate",w,kd(b));return s?LP.jsx("div",{style:{display:"none"},children:r}):LP.jsx(S,{classNames:n,style:o,disabled:a,id:t,label:l,onDropPropertyClick:c,onKeyChange:u,readonly:d,required:f,schema:g,uiSchema:b,registry:w,children:LP.jsxs(NZ,{fullWidth:!0,error:!!p.length,required:f,children:[r,i&&y?LP.jsx(AJ,{variant:"caption",color:"textSecondary",children:v}):null,m,h]})})}function k4(e){const{description:t,title:r,properties:n,required:o,disabled:a,readonly:i,uiSchema:s,idSchema:l,schema:c,formData:u,onAddClick:d,registry:f}=e,p=kd(s),m=PP("TitleFieldTemplate",f,p),h=PP("DescriptionFieldTemplate",f,p),{ButtonTemplates:{AddButton:v}}=f.templates;return LP.jsxs(LP.Fragment,{children:[r&&LP.jsx(m,{id:fj(l),title:r,required:o,schema:c,uiSchema:s,registry:f}),t&&LP.jsx(h,{id:lj(l),description:t,schema:c,uiSchema:s,registry:f}),LP.jsxs(v0,{container:!0,spacing:2,style:{marginTop:"10px"},children:[n.map(((e,t)=>e.hidden?e.content:LP.jsx(v0,{item:!0,xs:12,style:{marginBottom:"10px"},children:e.content},t))),_d(c,s,u)&&LP.jsx(v0,{container:!0,justifyContent:"flex-end",children:LP.jsx(v0,{item:!0,children:LP.jsx(v,{className:"object-property-expand",onClick:d(c),disabled:a||i,uiSchema:s,registry:f})})})]})]})}function _4({uiSchema:e}){const{submitText:t,norender:r,props:n={}}=CP(e);return r?null:LP.jsx(xX,{marginTop:3,children:LP.jsx(TX,{type:"submit",variant:"contained",color:"primary",...n,children:t})})}function E4({id:e,title:t}){return LP.jsxs(xX,{id:e,mb:1,mt:1,children:[LP.jsx(AJ,{variant:"h5",children:t}),LP.jsx(SZ,{})]})}function C4(e){const{children:t,classNames:r,style:n,disabled:o,id:a,label:i,onDropPropertyClick:s,onKeyChange:l,readonly:c,required:u,schema:d,uiSchema:f,registry:p}=e,{templates:m,translateString:h}=p,{RemoveButton:v}=m.ButtonTemplates,y=h(Lj.KeyLabel,[i]);if(!(rd in d))return LP.jsx("div",{className:r,style:n,children:t});return LP.jsxs(v0,{container:!0,alignItems:"center",spacing:2,className:r,style:n,children:[LP.jsx(v0,{item:!0,xs:!0,children:LP.jsx(j5,{fullWidth:!0,required:u,label:y,defaultValue:i,disabled:o||c,id:`${a}-key`,name:`${a}-key`,onBlur:c?void 0:({target:e})=>l(e&&e.value),type:"text"})}),LP.jsx(v0,{item:!0,xs:!0,children:t}),LP.jsx(v0,{item:!0,children:LP.jsx(v,{iconType:"default",style:{flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"},disabled:o||c,onClick:s(i),uiSchema:f,registry:p})})]},`${a}-key`)}function P4(e){var t;const{schema:r,id:n,value:o,disabled:a,readonly:i,label:s="",hideLabel:l,autofocus:c,onChange:u,onBlur:d,onFocus:f,registry:p,options:m,uiSchema:h}=e,v=PP("DescriptionFieldTemplate",p,m),y=yj(r),g=null!==(t=m.description)&&void 0!==t?t:r.description;return LP.jsxs(LP.Fragment,{children:[!l&&!!g&&LP.jsx(v,{id:lj(n),description:g,schema:r,uiSchema:h,registry:p}),LP.jsx(LZ,{control:LP.jsx(JX,{id:n,name:n,checked:void 0!==o&&Boolean(o),required:y,disabled:a||i,autoFocus:c,onChange:(e,t)=>u(t),onBlur:({target:e})=>d(n,e&&e.value),onFocus:({target:e})=>f(n,e&&e.value),"aria-describedby":pj(n)}),label:hj(s,l,!1)})]})}function j4({label:e,hideLabel:t,id:r,disabled:n,options:o,value:a,autofocus:i,readonly:s,required:l,onChange:c,onBlur:u,onFocus:d}){const{enumOptions:f,enumDisabled:p,inline:m,emptyValue:h}=o,v=Array.isArray(a)?a:[a],y=e=>({target:{checked:t}})=>{c(t?bP(e,v,f):vP(e,v,f))},g=({target:e})=>u(r,hP(e&&e.value,f,h)),b=({target:e})=>d(r,hP(e&&e.value,f,h));return LP.jsxs(LP.Fragment,{children:[hj(LP.jsx(a0,{required:l,htmlFor:r,children:e||void 0}),t),LP.jsx(qZ,{id:r,row:!!m,children:Array.isArray(f)&&f.map(((e,t)=>{const o=yP(e.value,v),a=Array.isArray(p)&&-1!==p.indexOf(e.value),l=LP.jsx(JX,{id:mj(r,t),name:r,checked:o,disabled:n||a||s,autoFocus:i&&0===t,onChange:y(t),onBlur:g,onFocus:b,"aria-describedby":pj(r)});return LP.jsx(LZ,{control:l,label:e.label},t)}))})]})}function O4({id:e,options:t,value:r,required:n,disabled:o,readonly:a,label:i,hideLabel:s,onChange:l,onBlur:c,onFocus:u}){var d;const{enumOptions:f,enumDisabled:p,emptyValue:m}=t,h=!!t&&t.inline,v=null!==(d=gP(r,f))&&void 0!==d?d:null;return LP.jsxs(LP.Fragment,{children:[hj(LP.jsx(a0,{required:n,htmlFor:e,children:i||void 0}),s),LP.jsx(j2,{id:e,name:e,value:v,row:h,onChange:(e,t)=>l(hP(t,f,m)),onBlur:({target:t})=>c(e,hP(t&&t.value,f,m)),onFocus:({target:t})=>u(e,hP(t&&t.value,f,m)),"aria-describedby":pj(e),children:Array.isArray(f)&&f.map(((t,r)=>{const n=Array.isArray(p)&&-1!==p.indexOf(t.value);return LP.jsx(LZ,{control:LP.jsx(_2,{name:e,id:mj(e,r),color:"primary"}),label:t.label,value:String(r),disabled:o||n||a},r)}))})]})}function N4(e){const{value:t,readonly:r,disabled:n,onBlur:o,onFocus:a,options:i,schema:s,onChange:l,required:c,label:u,hideLabel:d,id:f}=e,p={value:t,label:u,id:f,name:f,...kP(s)};return LP.jsxs(LP.Fragment,{children:[hj(LP.jsx(a0,{required:c,htmlFor:f,children:u||void 0}),d),LP.jsx(x5,{disabled:n||r,onChange:(e,t)=>{l(null!=t?t:i.emptyValue)},onBlur:({target:e})=>o(f,e&&e.value),onFocus:({target:e})=>a(f,e&&e.value),valueLabelDisplay:"auto",...p,"aria-describedby":pj(f)})]})}function R4({schema:e,id:t,name:r,options:n,label:o,hideLabel:a,required:i,disabled:s,placeholder:l,readonly:c,value:u,multiple:d,autofocus:f,onChange:p,onBlur:m,onFocus:h,errorSchema:v,rawErrors:y=[],registry:g,uiSchema:b,hideError:w,formContext:S,...x}){const{enumOptions:$,enumDisabled:k,emptyValue:_}=n,E=(d=void 0!==d&&!!d)?[]:"",C=void 0===u||d&&u.length<1||!d&&u===E,P=gP(u,$,d),{InputLabelProps:j,SelectProps:O,autocomplete:N,...R}=x,T=!d&&void 0===e.default;return LP.jsxs(j5,{id:t,name:t,label:hj(o||void 0,a,void 0),value:C||void 0===P?E:P,required:i,disabled:s||c,autoFocus:f,autoComplete:N,placeholder:l,error:y.length>0,onChange:({target:{value:e}})=>p(hP(e,$,_)),onBlur:({target:e})=>m(t,hP(e&&e.value,$,_)),onFocus:({target:e})=>h(t,hP(e&&e.value,$,_)),...R,select:!0,InputLabelProps:{...j,shrink:!C},SelectProps:{...O,multiple:d},"aria-describedby":pj(t),children:[T&&LP.jsx(q1,{value:"",children:l}),Array.isArray($)&&$.map((({value:e,label:t},r)=>{const n=Array.isArray(k)&&-1!==k.indexOf(e);return LP.jsx(q1,{value:String(r),disabled:n,children:t},r)}))]})}function T4(e){const{options:t,registry:r}=e,n=PP("BaseInputTemplate",r,t);let o=5;return"string"!=typeof t.rows&&"number"!=typeof t.rows||(o=t.rows),LP.jsx(n,{...e,multiline:!0,rows:o})}function A4(){return{CheckboxWidget:P4,CheckboxesWidget:j4,RadioWidget:O4,RangeWidget:N4,SelectWidget:R4,TextareaWidget:T4}}function I4(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M4(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function F4(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M4(Object(r),!0).forEach((function(t){I4(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M4(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function D4(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function z4(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function L4(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V4(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function B4(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?V4(Object(r),!0).forEach((function(t){L4(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V4(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function U4(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return o.length>=e.length?e.apply(this,o):function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return t.apply(r,[].concat(o,n))}}}function W4(e){return{}.toString.call(e).includes("Object")}function q4(e){return"function"==typeof e}p4=d4.default=(0,m4.default)((0,h4.jsx)("path",{d:"M19 13H5v-2h14z"}),"Remove");var K4=U4((function(e,t){throw new Error(e[t]||e.default)}))({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),H4={changes:function(e,t){return W4(t)||K4("changeType"),Object.keys(t).some((function(t){return!function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)}))&&K4("changeField"),t},selector:function(e){q4(e)||K4("selectorType")},handler:function(e){q4(e)||W4(e)||K4("handlerType"),W4(e)&&Object.values(e).some((function(e){return!q4(e)}))&&K4("handlersType")},initial:function(e){var t;e||K4("initialIsRequired"),W4(e)||K4("initialType"),t=e,Object.keys(t).length||K4("initialContent")}};function G4(e,t){return q4(t)?t(e.current):t}function Q4(e,t){return e.current=B4(B4({},e.current),t),t}function Y4(e,t,r){return q4(t)?t(e.current):Object.keys(r).forEach((function(r){var n;return null===(n=t[r])||void 0===n?void 0:n.call(t,e.current[r])})),r}var J4={create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};H4.initial(e),H4.handler(t);var r={current:e},n=U4(Y4)(r,t),o=U4(Q4)(r),a=U4(H4.changes)(e),i=U4(G4)(r);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return H4.selector(e),e(r.current)},function(e){!function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}}(n,o,a,i)(e)}]}};var X4,Z4={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},e3=(X4=function(e,t){throw new Error(e[t]||e.default)},function e(){for(var t=this,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return n.length>=X4.length?X4.apply(this,n):function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e.apply(t,[].concat(n,o))}})(Z4),t3={config:function(e){var t;return e||e3("configIsRequired"),t=e,{}.toString.call(t).includes("Object")||e3("configType"),e.urls?(console.warn(Z4.deprecation),{paths:{vs:e.urls.monacoBase}}):e}};function r3(e,t){return Object.keys(t).forEach((function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],r3(e[r],t[r]))})),F4(F4({},e),t)}var n3={type:"cancelation",msg:"operation is manually canceled"};function o3(e){var t=!1,r=new Promise((function(r,n){e.then((function(e){return t?n(n3):r(e)})),e.catch(n)}));return r.cancel=function(){return t=!0},r}var a3=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return z4(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return z4(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(J4.create({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}),2),i3=a3[0],s3=a3[1];function l3(e){return document.body.appendChild(e)}function c3(e){var t=i3((function(e){return{config:e.config,reject:e.reject}})),r=function(e){var t=document.createElement("script");return e&&(t.src=e),t}("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function u3(){var e=i3((function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}})),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],(function(t){d3(t),e.resolve(t)}),(function(t){e.reject(t)}))}function d3(e){i3().monaco||s3({monaco:e})}var f3=new Promise((function(e,t){return s3({resolve:e,reject:t})})),p3={config:function(e){var t=t3.config(e),r=t.monaco,n=D4(t,["monaco"]);s3((function(e){return{config:r3(e.config,n),monaco:r}}))},init:function(){var e=i3((function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}}));if(!e.isInitialized){if(s3({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),o3(f3);if(window.monaco&&window.monaco.editor)return d3(window.monaco),e.resolve(window.monaco),o3(f3);!function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}}(l3,c3)(u3)}return o3(f3)},__getMonacoInstance:function(){return i3((function(e){return e.monaco}))}},m3={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},h3={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}};var v3=function({children:e}){return V.createElement("div",{style:h3.container},e)},y3=v3;var g3=function({width:e,height:t,isEditorReady:r,loading:n,_ref:o,className:a,wrapperProps:i}){return V.createElement("section",{style:{...m3.wrapper,width:e,height:t},...i},!r&&V.createElement(y3,null,n),V.createElement("div",{ref:o,style:{...m3.fullWidth,...!r&&m3.hide},className:a}))},b3=L.memo(g3);var w3=function(e){L.useEffect(e,[])};var S3=function(e,t,r=!0){let n=L.useRef(!0);L.useEffect(n.current||!r?()=>{n.current=!1}:e,t)};function x3(){}function $3(e,t,r,n){return function(e,t){return e.editor.getModel(k3(e,t))}(e,n)||function(e,t,r,n){return e.editor.createModel(t,r,n?k3(e,n):void 0)}(e,t,r,n)}function k3(e,t){return e.Uri.parse(t)}var _3=function(e){let t=L.useRef();return L.useEffect((()=>{t.current=e}),[e]),t.current},E3=new Map;var C3=function({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:o,path:a,theme:i="light",line:s,loading:l="Loading...",options:c={},overrideServices:u={},saveViewState:d=!0,keepCurrentModel:f=!1,width:p="100%",height:m="100%",className:h,wrapperProps:v={},beforeMount:y=x3,onMount:g=x3,onChange:b,onValidate:w=x3}){let[S,x]=L.useState(!1),[$,k]=L.useState(!0),_=L.useRef(null),E=L.useRef(null),C=L.useRef(null),P=L.useRef(g),j=L.useRef(y),O=L.useRef(),N=L.useRef(n),R=_3(a),T=L.useRef(!1),A=L.useRef(!1);w3((()=>{let e=p3.init();return e.then((e=>(_.current=e)&&k(!1))).catch((e=>"cancelation"!==e?.type&&console.error("Monaco initialization: error:",e))),()=>E.current?(O.current?.dispose(),f?d&&E3.set(a,E.current.saveViewState()):E.current.getModel()?.dispose(),void E.current.dispose()):e.cancel()})),S3((()=>{let i=$3(_.current,e||n||"",t||o||"",a||r||"");i!==E.current?.getModel()&&(d&&E3.set(R,E.current?.saveViewState()),E.current?.setModel(i),d&&E.current?.restoreViewState(E3.get(a)))}),[a],S),S3((()=>{E.current?.updateOptions(c)}),[c],S),S3((()=>{!E.current||void 0===n||(E.current.getOption(_.current.editor.EditorOption.readOnly)?E.current.setValue(n):n!==E.current.getValue()&&(A.current=!0,E.current.executeEdits("",[{range:E.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),E.current.pushUndoStop(),A.current=!1))}),[n],S),S3((()=>{let e=E.current?.getModel();e&&o&&_.current?.editor.setModelLanguage(e,o)}),[o],S),S3((()=>{void 0!==s&&E.current?.revealLine(s)}),[s],S),S3((()=>{_.current?.editor.setTheme(i)}),[i],S);let I=L.useCallback((()=>{if(C.current&&_.current&&!T.current){j.current(_.current);let l=a||r,f=$3(_.current,n||e||"",t||o||"",l||"");E.current=_.current?.editor.create(C.current,{model:f,automaticLayout:!0,...c},u),d&&E.current.restoreViewState(E3.get(l)),_.current.editor.setTheme(i),void 0!==s&&E.current.revealLine(s),x(!0),T.current=!0}}),[e,t,r,n,o,a,c,u,d,i,s]);return L.useEffect((()=>{S&&P.current(E.current,_.current)}),[S]),L.useEffect((()=>{!$&&!S&&I()}),[$,S,I]),N.current=n,L.useEffect((()=>{S&&b&&(O.current?.dispose(),O.current=E.current?.onDidChangeModelContent((e=>{A.current||b(E.current.getValue(),e)})))}),[S,b]),L.useEffect((()=>{if(S){let e=_.current.editor.onDidChangeMarkers((e=>{let t=E.current.getModel()?.uri;if(t&&e.find((e=>e.path===t.path))){let e=_.current.editor.getModelMarkers({resource:t});w?.(e)}}));return()=>{e?.dispose()}}return()=>{}}),[S,w]),V.createElement(b3,{width:p,height:m,isEditorReady:S,loading:l,_ref:C,className:h,wrapperProps:v})},P3=L.memo(C3);const j3=e=>{const{id:t,label:r,value:n,onChange:o,theme:a}=e,{language:i,minimap:s=!1,lineNumbers:l="off",height:c=250,options:u}=e.schema,d=a.palette.mode;return V.createElement("div",null,r&&V.createElement("crowdin-h5",{htmlFor:t},r||"Provide your code"),V.createElement(P3,{height:c,defaultLanguage:"javascript",language:i,defaultValue:"",value:n,onChange:e=>{o(e)},options:{theme:"light"===d?"vs-light":"vs-dark",lineNumbers:l,minimap:{enabled:s},...u}}))};function O3(e){const{value:t,options:{content:r}}=e,n=L.useRef();return L.useEffect((()=>{const e=t||r,o=document.createRange().createContextualFragment(e);n.current.append(o)}),[]),V.createElement("div",{ref:n})}const N3=e=>["light","dark"].includes(e)?e:"light";function R3(e){return DQ({palette:{mode:e},..."dark"===e?{components:{MuiTypography:{styleOverrides:{root:{color:"rgba(255, 255, 255);"}}},MuiPaper:{styleOverrides:{root:{backgroundImage:"none",backgroundColor:"var(--crowdin-body-bg, #ffffff)"}}}}}:{}})}const T3=(A3={templates:{ArrayFieldItemTemplate:z5,ArrayFieldTemplate:L5,BaseInputTemplate:B5,ButtonTemplates:{AddButton:D5,CopyButton:y4,MoveDownButton:g4,MoveUpButton:b4,RemoveButton:w4,SubmitButton:_4},DescriptionFieldTemplate:U5,ErrorListTemplate:Q5,FieldErrorTemplate:S4,FieldHelpTemplate:x4,FieldTemplate:$4,ObjectFieldTemplate:k4,TitleFieldTemplate:E4,WrapIfAdditionalTemplate:C4},widgets:{...A4(),SelectWidget:e=>{const t=A4().SelectWidget;return V.createElement(t,W({},e,{SelectProps:{...e.SelectProps||{},MenuProps:{autoFocus:!1,disableAutoFocusItem:!0,disableEnforceFocus:!0,disableAutoFocus:!0}}}))}}},L.forwardRef((({fields:e,widgets:t,templates:r,...n},o)=>{var a;return e={...null==A3?void 0:A3.fields,...e},t={...null==A3?void 0:A3.widgets,...t},r={...null==A3?void 0:A3.templates,...r,ButtonTemplates:{...null===(a=null==A3?void 0:A3.templates)||void 0===a?void 0:a.ButtonTemplates,...null==r?void 0:r.ButtonTemplates}},LP.jsx(eU,{...A3,...n,fields:e,widgets:t,templates:r,ref:o})})));var A3;function I3(){const e=frameData.app.context,t=["form-data"];return e.organization_id&&t.push(e.organization_id),e.project_id&&t.push(e.project_id),t.join("-")}function M3({formData:e,formSchema:t,formUiSchema:r,onFormRef:n}){const[o,a]=L.useState(null),i=L.useRef();if(L.useEffect((()=>{AP.events.on("theme.changed",(e=>{const t=N3(e);a(R3(t))})),AP.getTheme((e=>{const t=N3(e);a(R3(t))}))}),[]),L.useEffect((()=>{n(i)}),[o]),!o)return null;const s={htmlWidget:O3,crowdinFilesWidget:U,monacoEditorWidget:e=>V.createElement(j3,W({},e,{theme:o}))};return V.createElement(wY,{theme:o},V.createElement(T3,{ref:i,widgets:s,formData:e,validator:Vz,schema:t,uiSchema:r,onSubmit:e=>{!function(e){if(!D3())return;document.getElementById("form-loading").style.display="flex",checkOrigin().then((t=>fetch(formPostDataUrl+t+"&id="+I3(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:e,context:frameData.app.context})}))).then(checkResponse).then((e=>{"modal"!==AP._data.app.type||e?.message?(e&&void 0!==e.message||showToast("Settings successfully saved"),document.getElementById("form-loading").style.display="none",e&&(e.formData||e.formSchema||e.formUiSchema)&&z3(e.formData,e.formSchema,e.formUiSchema),e&&e.redirect&&(window.location=e.redirect)):AP.closeAppModal()})).catch((e=>{catchRejection(e,"Can't save settings"),document.getElementById("form-loading").style.display="none"}))}(e.formData)},onChange:e=>{window.currentFormData=e.formData;const t=new CustomEvent("formDataUpdated",{detail:{...e.formData}});document.dispatchEvent(t),AP.formDataUpdated&&AP.formDataUpdated(e.formData)}}))}function F3(){const e=document.getElementById("card");e.style.border="none",e.style.overflow="initial",e.removeAttribute("is-shadowed"),e.setAttribute("without-p",!0),e.parentElement.style.padding="16px",e.parentElement.style.paddingBottom="0px"}function D3(){return!(AP&&AP._data&&AP._data.app&&["ai-prompt-provider","workflow-step-type"].includes(AP._data.app.type))}function z3(e={},t,r){const n=q.createRoot(document.getElementById("form"));if(AP&&AP._data&&AP._data.app&&AP._data.app.type){document.getElementsByTagName("html")[0].className+=" "+AP._data.app.type+"-form"}if(!D3()){F3();document.getElementsByTagName("html")[0].className+=" form-without-submit"}AP&&AP._data&&AP._data.app&&["modal","editor-right-panel"].includes(AP._data.app.type)&&(F3(),"modal"===AP._data.app.type&&card.parentElement.style.removeProperty("max-width")),window.currentFormSchema=t,window.currentFormData=e,window.currentFormUiSchema=r,n.render(V.createElement(M3,{onFormRef:e=>{window.formRef=e.current},formData:e,formSchema:t||window.formSchema,formUiSchema:r||window.formUiSchema})),document.getElementById("form-loading").style.display="none"}D3()?checkOrigin().then((e=>{const t=new URLSearchParams(frameData.app.context).toString(),r=new URLSearchParams(e+"&id="+I3());return r.set("context",t),fetch(formGetDataUrl+"?"+r.toString(),{method:"GET"})})).then(checkResponse).catch((e=>catchRejection(e,"Can't load saved settings"))).then((e=>{z3(e.formData,e.formSchema,e.formUiSchema)})).catch((()=>z3({}))):AP.getFormData((e=>{z3(e)})),window.renderForm=z3}();