@crowdin/app-project-module 0.94.3 → 0.95.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/modules/context-menu/index.js +15 -2
- package/out/modules/context-menu/types.d.ts +2 -1
- package/out/modules/integration/util/webhooks.js +26 -5
- package/out/modules/manifest.js +29 -13
- package/out/modules/modal/index.js +1 -0
- package/out/static/js/form.js +14 -14
- package/out/types.d.ts +4 -2
- package/package.json +3 -3
package/out/static/js/form.js
CHANGED
|
@@ -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"),
|
|
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"),y=Symbol.for("react.lazy"),v=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 _=$.prototype=new x;_.constructor=$,b(_,S.prototype),_.isPureReactComponent=!0;var k=Array.isArray,E=Object.prototype.hasOwnProperty,C={current:null},j={key:!0,ref:!0,__self:!0,__source:!0};function P(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)&&!j.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 A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function R(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?"."+A(l,0):n,k(o)?(r="",null!=e&&(r=e.replace(N,"$&/")+"/"),R(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+":",k(e))for(var c=0;c<e.length;c++){var u=n+A(a=e[c],c);l+=R(a,t,r,u,o)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=v&&e[v]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(a=e.next()).done;)l+=R(a=a.value,t,r,u=n+A(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 R(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)&&!j.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=P,a.createFactory=function(e){var t=P.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:y,_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)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},W.apply(null,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,
|
|
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,y="function"==typeof setTimeout?setTimeout:null,v="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,A(S);else{var t=r(c);null!==t&&R(w,t.startTime-e)}}function S(t,o){m=!1,h&&(h=!1,v(k),k=-1),p=!0;var a=f;try{for(b(o),d=r(l);null!==d&&(!(d.expirationTime>o)||t&&!j());){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 y=r(c);null!==y&&R(w,y.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,_=null,k=-1,E=5,C=-1;function j(){return!(e.unstable_now()-C<E)}function P(){if(null!==_){var t=e.unstable_now();C=t;var r=!0;try{r=_(!0,t)}finally{r?x():($=!1,_=null)}}else $=!1}if("function"==typeof g)x=function(){g(P)};else if("undefined"!=typeof MessageChannel){var O=new MessageChannel,N=O.port2;O.port1.onmessage=P,x=function(){N.postMessage(null)}}else x=function(){y(P,0)};function A(e){_=e,$||($=!0,x())}function R(t,r){k=y((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,A(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?(v(k),k=-1):h=!0,R(w,a-i))):(n.sortIndex=s,t(l,n),m||p||(m=!0,A(S))),n},e.unstable_shouldYield=j,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,28 +17,28 @@
|
|
|
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"),_e=Symbol.for("react.suspense_list"),ke=Symbol.for("react.memo"),Ee=Symbol.for("react.lazy"),Ce=Symbol.for("react.offscreen"),je=Symbol.iterator;function Pe(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=je&&e[je]||e["@@iterator"])?e:null}var Oe,Ne=Object.assign;function Ae(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 Re=!1;function Te(e,t){if(!e||Re)return"";Re=!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{Re=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ae(e):""}function Ie(e){switch(e.tag){case 5:return Ae(e.type);case 16:return Ae("Lazy");case 13:return Ae("Suspense");case 19:return Ae("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 _e: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 ke: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 _t(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 kt(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(EU){Et=!1}function jt(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 Pt=!1,Ot=null,Nt=!1,At=null,Rt={onError:function(e){Pt=!0,Ot=e}};function Tt(e,t,r,n,o,a,i,s,l){Pt=!1,Ot=null,jt.apply(Rt,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,_r=new Map,kr=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 jr(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":_r.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":kr.delete(t.pointerId)}}function Pr(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 Ar(e,t,r){Nr(e)&&r.delete(t)}function Rr(){br=!1,null!==Sr&&Nr(Sr)&&(Sr=null),null!==xr&&Nr(xr)&&(xr=null),null!==$r&&Nr($r)&&($r=null),_r.forEach(Ar),kr.forEach(Ar)}function Tr(e,t){e.blockedOn===t&&(e.blockedOn=null,br||(br=!0,X.unstable_scheduleCallback(X.unstable_NormalPriority,Rr)))}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),_r.forEach(t),kr.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),jr(e,n);else if(function(e,t,r,n,o){switch(t){case"focusin":return Sr=Pr(Sr,e,t,r,n,o),!0;case"dragenter":return xr=Pr(xr,e,t,r,n,o),!0;case"mouseover":return $r=Pr($r,e,t,r,n,o),!0;case"pointerover":var a=o.pointerId;return _r.set(a,Pr(_r.get(a)||null,e,t,r,n,o)),!0;case"gotpointercapture":return a=o.pointerId,kr.set(a,Pr(kr.get(a)||null,e,t,r,n,o)),!0}return!1}(o,e,t,r,n))n.stopPropagation();else if(jr(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})),_n=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}),kn=Jr(_n),En=[9,13,27,32],Cn=oe&&"CompositionEvent"in window,jn=null;oe&&"documentMode"in document&&(jn=document.documentMode);var Pn=oe&&"TextEvent"in window&&!jn,On=oe&&(!Cn||jn&&8<jn&&11>=jn),Nn=String.fromCharCode(32),An=!1;function Rn(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){Ao(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)),_t(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"),_o=new Map,ko="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){_o.set(e,t),re(t,[e])}for(var Co=0;Co<ko.length;Co++){var jo=ko[Co];Eo(jo.toLowerCase(),"on"+(jo[0].toUpperCase()+jo.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 Po="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(Po));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),Pt){if(!Pt)throw Error(Z(198));var c=Ot;Pt=!1,Ot=null,Nt||(Nt=!0,At=c)}}(n,t,void 0,e),e.currentTarget=null}function Ao(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=At,Nt=!1,At=null,e}function Ro(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}_t((function(){var n=a,o=mt(r),i=[];e:{var s=_o.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=kn;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=kt(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?Rn(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=Pn?function(e,t){switch(e){case"compositionend":return Tn(t);case"keypress":return 32!==t.which?null:(An=!0,Nn);case"textInput":return(e=t.data)===Nn&&An?null:e;default:return null}}(e,r):function(e,t){if(In)return"compositionend"===e||!Cn&&Rn(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))}Ao(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=kt(e,r))&&n.unshift(zo(e,a,o)),null!=(a=kt(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=kt(r,a))&&i.unshift(zo(r,l,s)):o||null!=(l=kt(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),_a=Sa;function ka(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 ja(e,t,r){if(xa.current!==Sa)throw Error(Z(168));wa(xa,t),wa($a,r)}function Pa(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,_a=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=Pa(e,t,_a),n.__reactInternalMemoizedMergedChildContext=e,ba($a),ba(xa),wa(xa,e)):ba($a),wa($a,r)}var Aa=null,Ra=!1,Ta=!1;function Ia(e){null===Aa?Aa=[e]:Aa.push(e)}function Ma(){if(!Ta&&null!==Aa){Ta=!0;var e=0,t=fr;try{var r=Aa;for(fr=1;e<r.length;e++){var n=r[e];do{n=n(!0)}while(null!==n)}Aa=null,Ra=!1}catch(t){throw null!==Aa&&(Aa=Aa.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=_u(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=_u(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=ju(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)||Pe(t))return(t=ju(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)||Pe(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)||Pe(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=Pe(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=ju(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(Pe(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 _i(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 ki=null;function Ei(e){null===ki?ki=[e]:ki.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,ji(e,n)}function ji(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 Pi=!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 Ai(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ri(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,ji(e,r)}return null===(o=n.interleaved)?(t.next=t,Ei(n)):(t.next=o.next,o.next=t),n.interleaved=t,ji(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;Pi=!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:Pi=!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);Pc|=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,Pc|=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,Pc|=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,Ps(ws.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||null!==rs&&1&rs.memoizedState.tag){if(r.flags|=2048,_s(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=ji(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 _s(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 ks(){return fs().memoizedState}function Es(e,t,r,n){var o=ds();es.flags|=e,o.memoizedState=_s(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=_s(t,r,a,n))}es.flags|=e,o.memoizedState=_s(1|t,r,a,n)}function js(e,t){return Es(8390656,8,e,t)}function Ps(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 As(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 Rs(e,t,r){return r=null!=r?r.concat([e]):null,Cs(4,4,As.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,Pc|=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:_i,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:_i,useCallback:function(e,t){return ds().memoizedState=[e,void 0===t?null:t],e},useContext:_i,useEffect:js,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,Es(4194308,4,As.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,js(ws.bind(null,n,a,e),[e]),n.flags|=2048,_s(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:_i,useCallback:Is,useContext:_i,useEffect:Ps,useImperativeHandle:Rs,useInsertionEffect:Os,useLayoutEffect:Ns,useMemo:Ms,useReducer:ms,useRef:ks,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:_i,useCallback:Is,useContext:_i,useEffect:Ps,useImperativeHandle:Rs,useInsertionEffect:Os,useLayoutEffect:Ns,useMemo:Ms,useReducer:hs,useRef:ks,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=Ai(n,o);a.payload=t,null!=r&&(a.callback=r),null!==(t=Ri(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=Ai(n,o);a.tag=1,a.payload=t,null!=r&&(a.callback=r),null!==(t=Ri(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=Ai(r,n);o.tag=2,null!=t&&(o.callback=t),null!==(t=Ri(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=_i(a):(o=Ea(t)?_a:xa.current,a=(n=null!=(n=t.contextTypes))?ka(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=_i(a):(a=Ea(t)?_a:xa.current,o.context=ka(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=Ai(-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=Ai(-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=Ai(-1,1)).tag=2,Ri(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||ku(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,kc),kc|=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,kc),kc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==a?a.baseLanes:r,wa(Ec,kc),kc|=n}else null!==a?(n=a.baseLanes|r,t.memoizedState=null):n=r,wa(Ec,kc),kc|=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)?_a:xa.current;return a=ka(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=_i(c):c=ka(t,c=Ea(r)?_a: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),Pi=!1;var f=t.memoizedState;i.state=f,Mi(t,n,i,o),l=t.memoizedState,s!==n||f!==l||$a.current||Pi?("function"==typeof u&&(Ys(t,r,u,n),l=t.memoizedState),(s=Pi||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=_i(l):l=ka(t,l=Ea(r)?_a: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),Pi=!1,f=t.memoizedState,i.state=f,Mi(t,n,i,o);var m=t.memoizedState;s!==d||f!==m||$a.current||Pi?("function"==typeof p&&(Ys(t,r,p,n),m=t.memoizedState),(c=Pi||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?ja(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ja(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 _l,kl,El,Cl,jl={dehydrated:null,treeContext:null,retryLane:0};function Pl(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=Pu(s,o,0,null),e=ju(e,o,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Pl(r),t.memoizedState=jl,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,Al(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=Pu({mode:"visible",children:n.children},o,0,null),(a=ju(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=Pl(i),t.memoizedState=jl,a);if(0==(1&t.mode))return Al(e,t,i,null);if("$!"===o.data){if(n=o.nextSibling&&o.nextSibling.dataset)var s=n.dgst;return n=s,Al(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,ji(e,o),Qc(n,e,o,-1))}return lu(),Al(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=ju(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)?Pl(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~r,t.memoizedState=jl,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=Pu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Al(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 Rl(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&&Rl(e,r,t);else if(19===e.tag)Rl(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),Pc|=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))),kl(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":Ro("cancel",n),Ro("close",n);break;case"iframe":case"object":case"embed":Ro("load",n);break;case"video":case"audio":for(o=0;o<Po.length;o++)Ro(Po[o],n);break;case"source":Ro("error",n);break;case"img":case"image":case"link":Ro("error",n),Ro("load",n);break;case"details":Ro("toggle",n);break;case"input":We(n,a),Ro("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Ro("invalid",n);break;case"textarea":Xe(n,a),Ro("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&&Ro("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,_l(e,t,!1,!1),t.stateNode=e;e:{switch(i=ft(r,n),r){case"dialog":Ro("cancel",e),Ro("close",e),o=n;break;case"iframe":case"object":case"embed":Ro("load",e),o=n;break;case"video":case"audio":for(o=0;o<Po.length;o++)Ro(Po[o],e);o=n;break;case"source":Ro("error",e),o=n;break;case"img":case"image":case"link":Ro("error",e),Ro("load",e),o=n;break;case"details":Ro("toggle",e),o=n;break;case"input":We(e,n),o=Ue(e,n),Ro("invalid",e);break;case"option":default:o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=Ne({},n,{value:void 0}),Ro("invalid",e);break;case"textarea":Xe(e,n),o=Je(e,n),Ro("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&&Ro("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(),kl(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&kc)&&(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}}_l=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}},kl=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&&Ro("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,_c=0,kc=0,Ec=ga(0),Cc=0,jc=null,Pc=0,Oc=0,Nc=0,Ac=null,Rc=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!==_c?_c&-_c: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,_c)),Yc(e,n),1===r&&0===Sc&&0==(1&t.mode)&&(Ic=Wt()+500,Ra&&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?_c: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){Ra=!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?_c: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&&_c===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,_c=0,t=Cc)}if(0!==t){if(2===t&&(0!==(o=sr(e))&&(n=o,t=Xc(e,o))),1===t)throw r=jc,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=jc,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,Rc,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,Rc,Mc),t);break}mu(e,Rc,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,Rc,Mc),n);break}mu(e,Rc,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=Ac;return e.current.memoizedState.isDehydrated&&(au(e,t).flags|=256),2!==(e=cu(e,t))&&(t=Rc,Rc=r,null!==t&&Zc(t)),e}function Zc(e){null===Rc?Rc=e:Rc.push.apply(Rc,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=jc,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,Rc,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,Ra&&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(){kc=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),_c=kc=t,Cc=0,jc=null,Nc=Oc=Pc=0,Rc=Ac=null,null!==ki){for(t=0;t<ki.length;t++)if(null!==(n=(r=ki[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}ki=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,jc=t,$c=null;break}e:{var a=e,i=r.return,s=r,l=t;if(t=_c,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===Ac?Ac=[a]:Ac.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&Pc)&&0==(268435455&Oc)||eu(xc,_c)}function cu(e,t){var r=Sc;Sc|=2;var n=su();for(xc===e&&_c===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,_c=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,kc);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,kc)))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,_c=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=Ri(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=Ri(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&&(_c&r)===r&&(4===Cc||3===Cc&&(130023424&_c)===_c&&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=ji(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 _u(e,t,r,n){return new $u(e,t,r,n)}function ku(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Eu(e,t){var r=e.alternate;return null===r?((r=_u(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)ku(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case ye:return ju(r.children,o,a,t);case ge:i=8,o|=8;break;case be:return(e=_u(12,r,t,2|o)).elementType=be,e.lanes=a,e;case $e:return(e=_u(13,r,t,o)).elementType=$e,e.lanes=a,e;case _e:return(e=_u(19,r,t,o)).elementType=_e,e.lanes=a,e;case Ce:return Pu(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 ke:i=14;break e;case Ee:i=16,n=null;break e}throw Error(Z(130,null==e?e:typeof e,""))}return(t=_u(i,r,t,o)).elementType=e,t.type=n,t.lanes=a,t}function ju(e,t,r,n){return(e=_u(7,e,n,t)).lanes=r,e}function Pu(e,t,r,n){return(e=_u(22,e,n,t)).elementType=Ce,e.lanes=r,e.stateNode={isHidden:!1},e}function Ou(e,t,r){return(e=_u(6,e,null,t)).lanes=r,e}function Nu(e,t,r){return(t=_u(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Au(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 Ru(e,t,r,n,o,a,i,s,l){return e=new Au(e,t,r,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=_u(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 Pa(e,r,t)}return t}function Iu(e,t,r,n,o,a,i,s,l){return(e=Ru(r,n,!0,e,0,a,0,s,l)).context=Tu(null),r=e.current,(a=Ai(n=Hc(),o=Gc(r))).callback=null!=t?t:null,Ri(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=Ai(a,i)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=Ri(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=ka(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 ku(e)?1:0;if(null!=e){if((e=e.$$typeof)===xe)return 11;if(e===ke)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=Ai(-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=_i(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=Ru(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=ji(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=ji(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=ji(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(EU){}}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=Ru(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 _d(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 kd(e,t={},r){if(!e.additionalProperties)return!1;const{expandable:n=!0}=_d(t);return!1===n?n:void 0===e.maxProperties||!r||Object.keys(r).length<e.maxProperties}var Ed="object"==typeof global&&global&&global.Object===Object&&global,Cd="object"==typeof self&&self&&self.Object===Object&&self,jd=Ed||Cd||Function("return this")(),Pd=jd.Symbol,Od=Object.prototype,Nd=Od.hasOwnProperty,Ad=Od.toString,Rd=Pd?Pd.toStringTag:void 0;var Td=Object.prototype.toString;var Id="[object Null]",Md="[object Undefined]",Fd=Pd?Pd.toStringTag:void 0;function Dd(e){return null==e?void 0===e?Md:Id:Fd&&Fd in Object(e)?function(e){var t=Nd.call(e,Rd),r=e[Rd];try{e[Rd]=void 0;var n=!0}catch(e){}var o=Ad.call(e);return n&&(t?e[Rd]=r:delete e[Rd]),o}(e):function(e){return Td.call(e)}(e)}function zd(e,t){return function(r){return e(t(r))}}var Ld=zd(Object.getPrototypeOf,Object);function Vd(e){return null!=e&&"object"==typeof e}var Bd="[object Object]",Ud=Function.prototype,Wd=Object.prototype,qd=Ud.toString,Kd=Wd.hasOwnProperty,Hd=qd.call(Object);function Gd(e){if(!Vd(e)||Dd(e)!=Bd)return!1;var t=Ld(e);if(null===t)return!0;var r=Kd.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&qd.call(r)==Hd}function Qd(e){const t={[ud]:[],addError(e){this[ud].push(e)}};if(Array.isArray(e))return e.reduce(((e,t,r)=>({...e,[r]:Qd(t)})),t);if(Gd(e)){const r=e;return Object.keys(r).reduce(((e,t)=>({...e,[t]:Qd(r[t])})),t)}return t}function Yd(e,t){return e===t||e!=e&&t!=t}function Jd(e,t){for(var r=e.length;r--;)if(Yd(e[r][0],t))return r;return-1}var Xd=Array.prototype.splice;function Zd(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])}}function ef(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}Zd.prototype.clear=function(){this.__data__=[],this.size=0},Zd.prototype.delete=function(e){var t=this.__data__,r=Jd(t,e);return!(r<0)&&(r==t.length-1?t.pop():Xd.call(t,r,1),--this.size,!0)},Zd.prototype.get=function(e){var t=this.__data__,r=Jd(t,e);return r<0?void 0:t[r][1]},Zd.prototype.has=function(e){return Jd(this.__data__,e)>-1},Zd.prototype.set=function(e,t){var r=this.__data__,n=Jd(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var tf="[object AsyncFunction]",rf="[object Function]",nf="[object GeneratorFunction]",of="[object Proxy]";function af(e){if(!ef(e))return!1;var t=Dd(e);return t==rf||t==nf||t==tf||t==of}var sf,lf=jd["__core-js_shared__"],cf=(sf=/[^.]+$/.exec(lf&&lf.keys&&lf.keys.IE_PROTO||""))?"Symbol(src)_1."+sf:"";var uf=Function.prototype.toString;function df(e){if(null!=e){try{return uf.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var ff=/^\[object .+?Constructor\]$/,pf=Function.prototype,mf=Object.prototype,hf=pf.toString,vf=mf.hasOwnProperty,yf=RegExp("^"+hf.call(vf).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function gf(e){return!(!ef(e)||(t=e,cf&&cf in t))&&(af(e)?yf:ff).test(df(e));var t}function bf(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return gf(r)?r:void 0}var wf=bf(jd,"Map"),Sf=bf(Object,"create");var xf=Object.prototype.hasOwnProperty;var $f=Object.prototype.hasOwnProperty;function _f(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])}}function kf(e,t){var r=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?r["string"==typeof t?"string":"hash"]:r.map}function Ef(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])}}_f.prototype.clear=function(){this.__data__=Sf?Sf(null):{},this.size=0},_f.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},_f.prototype.get=function(e){var t=this.__data__;if(Sf){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return xf.call(t,e)?t[e]:void 0},_f.prototype.has=function(e){var t=this.__data__;return Sf?void 0!==t[e]:$f.call(t,e)},_f.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Sf&&void 0===t?"__lodash_hash_undefined__":t,this},Ef.prototype.clear=function(){this.size=0,this.__data__={hash:new _f,map:new(wf||Zd),string:new _f}},Ef.prototype.delete=function(e){var t=kf(this,e).delete(e);return this.size-=t?1:0,t},Ef.prototype.get=function(e){return kf(this,e).get(e)},Ef.prototype.has=function(e){return kf(this,e).has(e)},Ef.prototype.set=function(e,t){var r=kf(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function Cf(e){var t=this.__data__=new Zd(e);this.size=t.size}Cf.prototype.clear=function(){this.__data__=new Zd,this.size=0},Cf.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Cf.prototype.get=function(e){return this.__data__.get(e)},Cf.prototype.has=function(e){return this.__data__.has(e)},Cf.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Zd){var n=r.__data__;if(!wf||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ef(n)}return r.set(e,t),this.size=r.size,this};function jf(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Ef;++t<r;)this.add(e[t])}function Pf(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function Of(e,t){return e.has(t)}jf.prototype.add=jf.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},jf.prototype.has=function(e){return this.__data__.has(e)};var Nf=1,Af=2;function Rf(e,t,r,n,o,a){var i=r&Nf,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=r&Af?new jf: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(!Pf(t,(function(e,t){if(!Of(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 Tf=jd.Uint8Array;function If(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function Mf(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}var Ff=1,Df=2,zf="[object Boolean]",Lf="[object Date]",Vf="[object Error]",Bf="[object Map]",Uf="[object Number]",Wf="[object RegExp]",qf="[object Set]",Kf="[object String]",Hf="[object Symbol]",Gf="[object ArrayBuffer]",Qf="[object DataView]",Yf=Pd?Pd.prototype:void 0,Jf=Yf?Yf.valueOf:void 0;function Xf(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var Zf=Array.isArray;function ep(e,t,r){var n=t(e);return Zf(e)?n:Xf(n,r(e))}function tp(){return[]}var rp=Object.prototype.propertyIsEnumerable,np=Object.getOwnPropertySymbols,op=np?function(e){return null==e?[]:(e=Object(e),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}(np(e),(function(t){return rp.call(e,t)})))}:tp,ap=op;function ip(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function sp(e){return Vd(e)&&"[object Arguments]"==Dd(e)}var lp=Object.prototype,cp=lp.hasOwnProperty,up=lp.propertyIsEnumerable,dp=sp(function(){return arguments}())?sp:function(e){return Vd(e)&&cp.call(e,"callee")&&!up.call(e,"callee")},fp=dp;var pp="object"==typeof exports&&exports&&!exports.nodeType&&exports,mp=pp&&"object"==typeof module&&module&&!module.nodeType&&module,hp=mp&&mp.exports===pp?jd.Buffer:void 0,vp=(hp?hp.isBuffer:void 0)||function(){return!1},yp=9007199254740991,gp=/^(?:0|[1-9]\d*)$/;function bp(e,t){var r=typeof e;return!!(t=null==t?yp:t)&&("number"==r||"symbol"!=r&&gp.test(e))&&e>-1&&e%1==0&&e<t}var wp=9007199254740991;function Sp(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=wp}var xp={};function $p(e){return function(t){return e(t)}}xp["[object Float32Array]"]=xp["[object Float64Array]"]=xp["[object Int8Array]"]=xp["[object Int16Array]"]=xp["[object Int32Array]"]=xp["[object Uint8Array]"]=xp["[object Uint8ClampedArray]"]=xp["[object Uint16Array]"]=xp["[object Uint32Array]"]=!0,xp["[object Arguments]"]=xp["[object Array]"]=xp["[object ArrayBuffer]"]=xp["[object Boolean]"]=xp["[object DataView]"]=xp["[object Date]"]=xp["[object Error]"]=xp["[object Function]"]=xp["[object Map]"]=xp["[object Number]"]=xp["[object Object]"]=xp["[object RegExp]"]=xp["[object Set]"]=xp["[object String]"]=xp["[object WeakMap]"]=!1;var _p="object"==typeof exports&&exports&&!exports.nodeType&&exports,kp=_p&&"object"==typeof module&&module&&!module.nodeType&&module,Ep=kp&&kp.exports===_p&&Ed.process,Cp=function(){try{var e=kp&&kp.require&&kp.require("util").types;return e||Ep&&Ep.binding&&Ep.binding("util")}catch(e){}}(),jp=Cp,Pp=jp&&jp.isTypedArray,Op=Pp?$p(Pp):function(e){return Vd(e)&&Sp(e.length)&&!!xp[Dd(e)]},Np=Object.prototype.hasOwnProperty;function Ap(e,t){var r=Zf(e),n=!r&&fp(e),o=!r&&!n&&vp(e),a=!r&&!n&&!o&&Op(e),i=r||n||o||a,s=i?ip(e.length,String):[],l=s.length;for(var c in e)!t&&!Np.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||bp(c,l))||s.push(c);return s}var Rp=Object.prototype;function Tp(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Rp)}var Ip=zd(Object.keys,Object),Mp=Object.prototype.hasOwnProperty;function Fp(e){if(!Tp(e))return Ip(e);var t=[];for(var r in Object(e))Mp.call(e,r)&&"constructor"!=r&&t.push(r);return t}function Dp(e){return null!=e&&Sp(e.length)&&!af(e)}function zp(e){return Dp(e)?Ap(e):Fp(e)}function Lp(e){return ep(e,zp,ap)}var Vp=1,Bp=Object.prototype.hasOwnProperty;var Up=bf(jd,"DataView"),Wp=bf(jd,"Promise"),qp=bf(jd,"Set"),Kp=bf(jd,"WeakMap"),Hp="[object Map]",Gp="[object Promise]",Qp="[object Set]",Yp="[object WeakMap]",Jp="[object DataView]",Xp=df(Up),Zp=df(wf),em=df(Wp),tm=df(qp),rm=df(Kp),nm=Dd;(Up&&nm(new Up(new ArrayBuffer(1)))!=Jp||wf&&nm(new wf)!=Hp||Wp&&nm(Wp.resolve())!=Gp||qp&&nm(new qp)!=Qp||Kp&&nm(new Kp)!=Yp)&&(nm=function(e){var t=Dd(e),r="[object Object]"==t?e.constructor:void 0,n=r?df(r):"";if(n)switch(n){case Xp:return Jp;case Zp:return Hp;case em:return Gp;case tm:return Qp;case rm:return Yp}return t});var om=nm,am=1,im="[object Arguments]",sm="[object Array]",lm="[object Object]",cm=Object.prototype.hasOwnProperty;function um(e,t,r,n,o,a){var i=Zf(e),s=Zf(t),l=i?sm:om(e),c=s?sm:om(t),u=(l=l==im?lm:l)==lm,d=(c=c==im?lm:c)==lm,f=l==c;if(f&&vp(e)){if(!vp(t))return!1;i=!0,u=!1}if(f&&!u)return a||(a=new Cf),i||Op(e)?Rf(e,t,r,n,o,a):function(e,t,r,n,o,a,i){switch(r){case Qf:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Gf:return!(e.byteLength!=t.byteLength||!a(new Tf(e),new Tf(t)));case zf:case Lf:case Uf:return Yd(+e,+t);case Vf:return e.name==t.name&&e.message==t.message;case Wf:case Kf:return e==t+"";case Bf:var s=If;case qf:var l=n&Ff;if(s||(s=Mf),e.size!=t.size&&!l)return!1;var c=i.get(e);if(c)return c==t;n|=Df,i.set(e,t);var u=Rf(s(e),s(t),n,o,a,i);return i.delete(e),u;case Hf:if(Jf)return Jf.call(e)==Jf.call(t)}return!1}(e,t,l,r,n,o,a);if(!(r&am)){var p=u&&cm.call(e,"__wrapped__"),m=d&&cm.call(t,"__wrapped__");if(p||m){var h=p?e.value():e,v=m?t.value():t;return a||(a=new Cf),o(h,v,r,n,a)}}return!!f&&(a||(a=new Cf),function(e,t,r,n,o,a){var i=r&Vp,s=Lp(e),l=s.length;if(l!=Lp(t).length&&!i)return!1;for(var c=l;c--;){var u=s[c];if(!(i?u in t:Bp.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}(e,t,r,n,o,a))}function dm(e,t,r,n,o){return e===t||(null==e||null==t||!Vd(e)&&!Vd(t)?e!=e&&t!=t:um(e,t,r,n,dm,o))}function fm(e,t){return r=e,n=t,o=(e,t)=>{if("function"==typeof e&&"function"==typeof t)return!0},void 0===(a=(o="function"==typeof o?o:void 0)?o(r,n):void 0)?dm(r,n,void 0,o):!!a;var r,n,o,a}var pm="[object Symbol]";function mm(e){return"symbol"==typeof e||Vd(e)&&Dd(e)==pm}var hm=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vm=/^\w*$/;function ym(e,t){if(Zf(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!mm(e))||(vm.test(e)||!hm.test(e)||null!=t&&e in Object(t))}var gm="Expected a function";function bm(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(gm);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(bm.Cache||Ef),r}bm.Cache=Ef;var wm=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Sm=/\\(\\)?/g,xm=function(e){var t=bm(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(wm,(function(e,r,n,o){t.push(n?o.replace(Sm,"$1"):r||e)})),t})),$m=xm;function _m(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}var km=1/0,Em=Pd?Pd.prototype:void 0,Cm=Em?Em.toString:void 0;function jm(e){if("string"==typeof e)return e;if(Zf(e))return _m(e,jm)+"";if(mm(e))return Cm?Cm.call(e):"";var t=e+"";return"0"==t&&1/e==-km?"-0":t}function Pm(e){return null==e?"":jm(e)}function Om(e,t){return Zf(e)?e:ym(e,t)?[e]:$m(Pm(e))}var Nm=1/0;function Am(e){if("string"==typeof e||mm(e))return e;var t=e+"";return"0"==t&&1/e==-Nm?"-0":t}function Rm(e,t){for(var r=0,n=(t=Om(t,e)).length;null!=e&&r<n;)e=e[Am(t[r++])];return r&&r==n?e:void 0}function Tm(e,t,r){var n=null==e?void 0:Rm(e,t);return void 0===n?r:n}var Im="[object Map]",Mm="[object Set]",Fm=Object.prototype.hasOwnProperty;function Dm(e){if(null==e)return!0;if(Dp(e)&&(Zf(e)||"string"==typeof e||"function"==typeof e.splice||vp(e)||Op(e)||fp(e)))return!e.length;var t=om(e);if(t==Im||t==Mm)return!e.size;if(Tp(e))return!Fp(e).length;for(var r in e)if(Fm.call(e,r))return!1;return!0}var zm={},Lm=/~/,Vm=/~[01]/g;function Bm(e){switch(e){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+e)}function Um(e){return Lm.test(e)?e.replace(Vm,Bm):e}function Wm(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 qm(e,t){if("object"!=typeof e)throw new Error("Invalid input object.");var r=(t=Wm(t)).length;if(1===r)return e;for(var n=1;n<r;){if(e=e[Um(t[n++])],r===n)return e;if("object"!=typeof e||null===e)return}}function Km(e,t,r){if("object"!=typeof e)throw new Error("Invalid input object.");if(0===(t=Wm(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=Um(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)}function Hm(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}zm.get=qm,zm.set=Km,zm.compile=function(e){var t=Wm(e);return{get:function(e){return qm(e,t)},set:function(e,r){return Km(e,t,r)}}};var Gm=function(){try{var e=bf(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Qm=Gm;function Ym(e,t,r){"__proto__"==t&&Qm?Qm(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Jm=Object.prototype.hasOwnProperty;function Xm(e,t,r){var n=e[t];Jm.call(e,t)&&Yd(n,r)&&(void 0!==r||t in e)||Ym(e,t,r)}function Zm(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?Ym(r,s,l):Xm(r,s,l)}return r}var eh=Object.prototype.hasOwnProperty;function th(e){if(!ef(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=Tp(e),r=[];for(var n in e)("constructor"!=n||!t&&eh.call(e,n))&&r.push(n);return r}function rh(e){return Dp(e)?Ap(e,!0):th(e)}var nh="object"==typeof exports&&exports&&!exports.nodeType&&exports,oh=nh&&"object"==typeof module&&module&&!module.nodeType&&module,ah=oh&&oh.exports===nh?jd.Buffer:void 0,ih=ah?ah.allocUnsafe:void 0;function sh(e,t){if(t)return e.slice();var r=e.length,n=ih?ih(r):new e.constructor(r);return e.copy(n),n}function lh(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var ch=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Xf(t,ap(e)),e=Ld(e);return t}:tp;function uh(e){return ep(e,rh,ch)}var dh=Object.prototype.hasOwnProperty;function fh(e){var t=new e.constructor(e.byteLength);return new Tf(t).set(new Tf(e)),t}var ph=/\w*$/;var mh=Pd?Pd.prototype:void 0,hh=mh?mh.valueOf:void 0;function vh(e,t){var r=t?fh(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var yh="[object Boolean]",gh="[object Date]",bh="[object Map]",wh="[object Number]",Sh="[object RegExp]",xh="[object Set]",$h="[object String]",_h="[object Symbol]",kh="[object ArrayBuffer]",Eh="[object DataView]",Ch="[object Float32Array]",jh="[object Float64Array]",Ph="[object Int8Array]",Oh="[object Int16Array]",Nh="[object Int32Array]",Ah="[object Uint8Array]",Rh="[object Uint8ClampedArray]",Th="[object Uint16Array]",Ih="[object Uint32Array]";function Mh(e,t,r){var n,o,a,i=e.constructor;switch(t){case kh:return fh(e);case yh:case gh:return new i(+e);case Eh:return function(e,t){var r=t?fh(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case Ch:case jh:case Ph:case Oh:case Nh:case Ah:case Rh:case Th:case Ih:return vh(e,r);case bh:return new i;case wh:case $h:return new i(e);case Sh:return(a=new(o=e).constructor(o.source,ph.exec(o))).lastIndex=o.lastIndex,a;case xh:return new i;case _h:return n=e,hh?Object(hh.call(n)):{}}}var Fh=Object.create,Dh=function(){function e(){}return function(t){if(!ef(t))return{};if(Fh)return Fh(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function zh(e){return"function"!=typeof e.constructor||Tp(e)?{}:Dh(Ld(e))}var Lh=jp&&jp.isMap,Vh=Lh?$p(Lh):function(e){return Vd(e)&&"[object Map]"==om(e)};var Bh=jp&&jp.isSet,Uh=Bh?$p(Bh):function(e){return Vd(e)&&"[object Set]"==om(e)},Wh=1,qh=2,Kh=4,Hh="[object Arguments]",Gh="[object Function]",Qh="[object GeneratorFunction]",Yh="[object Object]",Jh={};function Xh(e,t,r,n,o,a){var i,s=t&Wh,l=t&qh,c=t&Kh;if(r&&(i=o?r(e,n,o,a):r(e)),void 0!==i)return i;if(!ef(e))return e;var u=Zf(e);if(u){if(i=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&dh.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!s)return lh(e,i)}else{var d=om(e),f=d==Gh||d==Qh;if(vp(e))return sh(e,s);if(d==Yh||d==Hh||f&&!o){if(i=l||f?{}:zh(e),!s)return l?function(e,t){return Zm(e,ch(e),t)}(e,function(e,t){return e&&Zm(t,rh(t),e)}(i,e)):function(e,t){return Zm(e,ap(e),t)}(e,function(e,t){return e&&Zm(t,zp(t),e)}(i,e))}else{if(!Jh[d])return o?e:{};i=Mh(e,d,s)}}a||(a=new Cf);var p=a.get(e);if(p)return p;a.set(e,i),Uh(e)?e.forEach((function(n){i.add(Xh(n,t,r,n,e,a))})):Vh(e)&&e.forEach((function(n,o){i.set(o,Xh(n,t,r,o,e,a))}));var m=u?void 0:(c?l?uh:Lp:l?rh:zp)(e);return Hm(m||e,(function(n,o){m&&(n=e[o=n]),Xm(i,o,Xh(n,t,r,o,e,a))})),i}function Zh(e,t){return t.length<2?e:Rm(e,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}(t,0,-1))}function ev(e,t){return null==(e=Zh(e,t=Om(t,e)))||delete e[Am(function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}(t))]}function tv(e){return Gd(e)?void 0:e}Jh[Hh]=Jh["[object Array]"]=Jh["[object ArrayBuffer]"]=Jh["[object DataView]"]=Jh["[object Boolean]"]=Jh["[object Date]"]=Jh["[object Float32Array]"]=Jh["[object Float64Array]"]=Jh["[object Int8Array]"]=Jh["[object Int16Array]"]=Jh["[object Int32Array]"]=Jh["[object Map]"]=Jh["[object Number]"]=Jh[Yh]=Jh["[object RegExp]"]=Jh["[object Set]"]=Jh["[object String]"]=Jh["[object Symbol]"]=Jh["[object Uint8Array]"]=Jh["[object Uint8ClampedArray]"]=Jh["[object Uint16Array]"]=Jh["[object Uint32Array]"]=!0,Jh["[object Error]"]=Jh[Gh]=Jh["[object WeakMap]"]=!1;var rv=Pd?Pd.isConcatSpreadable:void 0;function nv(e){return Zf(e)||fp(e)||!!(rv&&e&&e[rv])}function ov(e,t,r,n,o){var a=-1,i=e.length;for(r||(r=nv),o||(o=[]);++a<i;){var s=e[a];t>0&&r(s)?t>1?ov(s,t-1,r,n,o):Xf(o,s):n||(o[o.length]=s)}return o}function av(e){return(null==e?0:e.length)?ov(e,1):[]}var iv=Math.max;function sv(e,t,r){return t=iv(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=iv(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),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)}(e,this,s)}}function lv(e){return e}var cv=Qm?function(e,t){return Qm(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:lv,uv=cv,dv=Date.now;var fv,pv,mv,hv=(fv=uv,pv=0,mv=0,function(){var e=dv(),t=16-(e-mv);if(mv=e,t>0){if(++pv>=800)return arguments[0]}else pv=0;return fv.apply(void 0,arguments)}),vv=hv;function yv(e){return vv(sv(e,void 0,av),e+"")}var gv=yv((function(e,t){var r={};if(null==e)return r;var n=!1;t=_m(t,(function(t){return t=Om(t,e),n||(n=t.length>1),t})),Zm(e,uh(e),r),n&&(r=Xh(r,7,tv));for(var o=t.length;o--;)ev(r,t[o]);return r})),bv=gv;function wv(e,t){const r=t[e];return[bv(t,[e]),r]}function Sv(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=zm.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]=wv(bd,a),l=Sv(s,t,[...r,n]);return Object.keys(o).length>0?{...o,...l}:l}return a}function xv(e,t={}){return Sv(e,t,[])}var $v=Object.prototype.hasOwnProperty;function _v(e,t){return null!=e&&$v.call(e,t)}function kv(e,t,r){for(var n=-1,o=(t=Om(t,e)).length,a=!1;++n<o;){var i=Am(t[n]);if(!(a=null!=e&&r(e,i)))break;e=e[i]}return a||++n!=o?a:!!(o=null==e?0:e.length)&&Sp(o)&&bp(i,o)&&(Zf(e)||fp(e))}function Ev(e,t){return null!=e&&kv(e,t,_v)}var Cv="[object Number]";function jv(e){return"number"==typeof e||Vd(e)&&Dd(e)==Cv}var Pv="[object String]";function Ov(e){return"string"==typeof e||!Zf(e)&&Vd(e)&&Dd(e)==Pv}function Nv(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 Av,Rv=function(e,t,r){for(var n=-1,o=Object(e),a=r(e),i=a.length;i--;){var s=a[Av?i:++n];if(!1===t(o[s],s,o))break}return e},Tv=Rv;function Iv(e,t){return e&&Tv(e,t,zp)}var Mv=function(e,t){return function(r,n){if(null==r)return r;if(!Dp(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}}(Iv),Fv=Mv,Dv=1,zv=2;function Lv(e){return e==e&&!ef(e)}function Vv(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}function Bv(e){var t=function(e){for(var t=zp(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,Lv(o)]}return t}(e);return 1==t.length&&t[0][2]?Vv(t[0][0],t[0][1]):function(r){return r===e||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 Cf;if(n)var f=n(c,u,l,e,t,d);if(!(void 0===f?dm(u,c,Dv|zv,n,d):f))return!1}}return!0}(r,e,t)}}function Uv(e,t){return null!=e&&t in Object(e)}function Wv(e,t){return null!=e&&kv(e,t,Uv)}var qv=1,Kv=2;function Hv(e){return ym(e)?(t=Am(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return Rm(t,e)}}(e);var t}function Gv(e){return"function"==typeof e?e:null==e?lv:"object"==typeof e?Zf(e)?(t=e[0],r=e[1],ym(t)&&Lv(r)?Vv(Am(t),r):function(e){var n=Tm(e,t);return void 0===n&&n===r?Wv(e,t):dm(r,n,qv|Kv)}):Bv(e):Hv(e);var t,r}function Qv(e,t,r,n,o){return o(e,(function(e,o,a){r=n?(n=!1,e):t(r,e,o,a)})),r}function Yv(e){return"function"==typeof e?e:lv}var Jv=/\s/;var Xv=/^\s+/;function Zv(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&Jv.test(e.charAt(t)););return t}(e)+1).replace(Xv,""):e}var ey=NaN,ty=/^[-+]0x[0-9a-f]+$/i,ry=/^0b[01]+$/i,ny=/^0o[0-7]+$/i,oy=parseInt;var ay=1/0,iy=17976931348623157e292;function sy(e){return e?(e=function(e){if("number"==typeof e)return e;if(mm(e))return ey;if(ef(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ef(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zv(e);var r=ry.test(e);return r||ny.test(e)?oy(e.slice(2),r?2:8):ty.test(e)?ey:+e}(e))===ay||e===-ay?(e<0?-1:1)*iy:e==e?e:0:0===e?e:0}var ly=9007199254740991,cy=4294967295,uy=Math.min;function dy(e,t){if(e=function(e){var t=sy(e),r=t%1;return t==t?r?t-r:t:0}(e),e<1||e>ly)return[];var r=cy,n=uy(e,cy);t=Yv(t),e-=cy;for(var o=ip(n,t);++r<e;)t(r);return o}function fy(e,t,r){var n;if(e&&r){const o=Tm(e,r);if(void 0===o)return;for(let e=0;e<t.length;e++){const a=Tm(t[e],[vd,r],{});if("object"!==a.type&&"array"!==a.type){if(a.const===o)return e;if(null===(n=a.enum)||void 0===n?void 0:n.includes(o))return e}}}}function py(e,t,r,n,o){if(void 0===t)return 0;const a=fy(t,r,o);if(jv(a))return a;for(let a=0;a<r.length;a++){const i=r[a];if(o&&Ev(i,[vd,o])){const r=Tm(t,o),s=Tm(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 my(e,t,r,n,o){return py(e,t,r,n,o)}function hy(e,t,r,n){if(!ef(e))return e;for(var o=-1,a=(t=Om(t,e)).length,i=a-1,s=e;null!=s&&++o<a;){var l=Am(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=ef(u)?u:bp(t[o+1])?[]:{})}Xm(s,l,c),s=s[l]}return e}function vy(e,t,r){return null==e?e:hy(e,t,r)}function yy(e,t,r){(void 0!==r&&!Yd(e[t],r)||void 0===r&&!(t in e))&&Ym(e,t,r)}function gy(e){return Vd(e)&&Dp(e)}function by(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function wy(e,t,r,n,o,a,i){var s=by(e,r),l=by(t,r),c=i.get(l);if(c)yy(e,r,c);else{var u,d=a?a(s,l,r+"",e,t,i):void 0,f=void 0===d;if(f){var p=Zf(l),m=!p&&vp(l),h=!p&&!m&&Op(l);d=l,p||m||h?Zf(s)?d=s:gy(s)?d=lh(s):m?(f=!1,d=sh(l,!0)):h?(f=!1,d=vh(l,!0)):d=[]:Gd(l)||fp(l)?(d=s,fp(s)?d=Zm(u=s,rh(u)):ef(s)&&!af(s)||(d=zh(l))):f=!1}f&&(i.set(l,d),o(d,l,n,a,i),i.delete(l)),yy(e,r,d)}}function Sy(e,t,r,n,o){e!==t&&Tv(t,(function(a,i){if(o||(o=new Cf),ef(a))wy(e,t,i,r,Sy,n,o);else{var s=n?n(by(e,i),a,i+"",e,t,o):void 0;void 0===s&&(s=a),yy(e,i,s)}}),rh)}function xy(e,t){return vv(sv(e,t,lv),e+"")}var $y,_y=($y=function(e,t,r){Sy(e,t,r)},xy((function(e,t){var r=-1,n=t.length,o=n>1?t[n-1]:void 0,a=n>2?t[2]:void 0;for(o=$y.length>3&&"function"==typeof o?(n--,o):void 0,a&&function(e,t,r){if(!ef(r))return!1;var n=typeof t;return!!("number"==n?Dp(r)&&bp(t,r.length):"string"==n&&t in r)&&Yd(r[t],e)}(t[0],t[1],a)&&(o=n<3?void 0:o,n=1),e=Object(e);++r<n;){var i=t[r];i&&$y(e,i,r,o)}return e}))),ky=_y,Ey=1/0;function Cy(e){return e!=e}function jy(e,t){return!!(null==e?0:e.length)&&function(e,t,r){return t==t?function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}(e,t,r):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}(e,Cy,r)}(e,t,0)>-1}function Py(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 Oy=qp&&1/Mf(new qp([,-0]))[1]==1/0?function(e){return new qp(e)}:function(){},Ny=Oy,Ay=200;function Ry(e,t,r){var n=-1,o=jy,a=e.length,i=!0,s=[],l=s;if(r)i=!1,o=Py;else if(a>=Ay){var c=t?null:Ny(e);if(c)return Mf(c);i=!1,o=Of,l=new jf}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}var Ty=function(){this.__data__=[],this.size=0};var Iy=function(e,t){return e===t||e!=e&&t!=t},My=Iy;var Fy=function(e,t){for(var r=e.length;r--;)if(My(e[r][0],t))return r;return-1},Dy=Fy,zy=Array.prototype.splice;var Ly=function(e){var t=this.__data__,r=Dy(t,e);return!(r<0)&&(r==t.length-1?t.pop():zy.call(t,r,1),--this.size,!0)},Vy=Fy;var By=function(e){var t=this.__data__,r=Vy(t,e);return r<0?void 0:t[r][1]},Uy=Fy;var Wy=Fy;var qy=function(e,t){var r=this.__data__,n=Wy(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Ky=Ty,Hy=Ly,Gy=By,Qy=function(e){return Uy(this.__data__,e)>-1},Yy=qy;function Jy(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])}}Jy.prototype.clear=Ky,Jy.prototype.delete=Hy,Jy.prototype.get=Gy,Jy.prototype.has=Qy,Jy.prototype.set=Yy;var Xy=Jy,Zy=Xy;var eg=function(){this.__data__=new Zy,this.size=0};var tg=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};var rg=function(e){return this.__data__.get(e)};var ng=function(e){return this.__data__.has(e)},og="object"==typeof t&&t&&t.Object===Object&&t,ag=og,ig="object"==typeof self&&self&&self.Object===Object&&self,sg=ag||ig||Function("return this")(),lg=sg.Symbol,cg=lg,ug=Object.prototype,dg=ug.hasOwnProperty,fg=ug.toString,pg=cg?cg.toStringTag:void 0;var mg=function(e){var t=dg.call(e,pg),r=e[pg];try{e[pg]=void 0;var n=!0}catch(e){}var o=fg.call(e);return n&&(t?e[pg]=r:delete e[pg]),o},hg=Object.prototype.toString;var vg=mg,yg=function(e){return hg.call(e)},gg=lg?lg.toStringTag:void 0;var bg=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":gg&&gg in Object(e)?vg(e):yg(e)};var wg=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Sg=bg,xg=wg;var $g=function(e){if(!xg(e))return!1;var t=Sg(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},_g=sg["__core-js_shared__"],kg=function(){var e=/[^.]+$/.exec(_g&&_g.keys&&_g.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var Eg=function(e){return!!kg&&kg in e},Cg=Function.prototype.toString;var jg=function(e){if(null!=e){try{return Cg.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Pg=$g,Og=Eg,Ng=wg,Ag=jg,Rg=/^\[object .+?Constructor\]$/,Tg=Function.prototype,Ig=Object.prototype,Mg=Tg.toString,Fg=Ig.hasOwnProperty,Dg=RegExp("^"+Mg.call(Fg).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var zg=function(e){return!(!Ng(e)||Og(e))&&(Pg(e)?Dg:Rg).test(Ag(e))},Lg=function(e,t){return null==e?void 0:e[t]};var Vg=function(e,t){var r=Lg(e,t);return zg(r)?r:void 0},Bg=Vg(sg,"Map"),Ug=Vg(Object,"create"),Wg=Ug;var qg=function(){this.__data__=Wg?Wg(null):{},this.size=0};var Kg=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hg=Ug,Gg=Object.prototype.hasOwnProperty;var Qg=function(e){var t=this.__data__;if(Hg){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return Gg.call(t,e)?t[e]:void 0},Yg=Ug,Jg=Object.prototype.hasOwnProperty;var Xg=Ug;var Zg=qg,eb=Kg,tb=Qg,rb=function(e){var t=this.__data__;return Yg?void 0!==t[e]:Jg.call(t,e)},nb=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Xg&&void 0===t?"__lodash_hash_undefined__":t,this};function ob(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])}}ob.prototype.clear=Zg,ob.prototype.delete=eb,ob.prototype.get=tb,ob.prototype.has=rb,ob.prototype.set=nb;var ab=ob,ib=Xy,sb=Bg;var lb=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},cb=lb;var ub=function(e,t){var r=e.__data__;return cb(t)?r["string"==typeof t?"string":"hash"]:r.map},db=ub;var fb=ub;var pb=ub;var mb=ub;var hb=function(){this.size=0,this.__data__={hash:new ab,map:new(sb||ib),string:new ab}},vb=function(e){var t=db(this,e).delete(e);return this.size-=t?1:0,t},yb=function(e){return fb(this,e).get(e)},gb=function(e){return pb(this,e).has(e)},bb=function(e,t){var r=mb(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function wb(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])}}wb.prototype.clear=hb,wb.prototype.delete=vb,wb.prototype.get=yb,wb.prototype.has=gb,wb.prototype.set=bb;var Sb=wb,xb=Xy,$b=Bg,_b=Sb;var kb=Xy,Eb=eg,Cb=tg,jb=rg,Pb=ng,Ob=function(e,t){var r=this.__data__;if(r instanceof xb){var n=r.__data__;if(!$b||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new _b(n)}return r.set(e,t),this.size=r.size,this};function Nb(e){var t=this.__data__=new kb(e);this.size=t.size}Nb.prototype.clear=Eb,Nb.prototype.delete=Cb,Nb.prototype.get=jb,Nb.prototype.has=Pb,Nb.prototype.set=Ob;var Ab=Nb;var Rb=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e},Tb=Vg,Ib=function(){try{var e=Tb(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Mb=Ib,Fb=Mb;var Db=function(e,t,r){"__proto__"==t&&Fb?Fb(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},zb=Db,Lb=Iy,Vb=Object.prototype.hasOwnProperty;var Bb=function(e,t,r){var n=e[t];Vb.call(e,t)&&Lb(n,r)&&(void 0!==r||t in e)||zb(e,t,r)},Ub=Bb,Wb=Db;var qb=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?Wb(r,s,l):Ub(r,s,l)}return r};var Kb=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n};var Hb=function(e){return null!=e&&"object"==typeof e},Gb=bg,Qb=Hb;var Yb=function(e){return Qb(e)&&"[object Arguments]"==Gb(e)},Jb=Hb,Xb=Object.prototype,Zb=Xb.hasOwnProperty,ew=Xb.propertyIsEnumerable,tw=Yb(function(){return arguments}())?Yb:function(e){return Jb(e)&&Zb.call(e,"callee")&&!ew.call(e,"callee")},rw=tw,nw=Array.isArray,ow={exports:{}};var aw=function(){return!1};!function(e,t){var r=sg,n=aw,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}(ow,ow.exports);var iw=ow.exports,sw=/^(?:0|[1-9]\d*)$/;var lw=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&sw.test(e))&&e>-1&&e%1==0&&e<t};var cw=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},uw=bg,dw=cw,fw=Hb,pw={};pw["[object Float32Array]"]=pw["[object Float64Array]"]=pw["[object Int8Array]"]=pw["[object Int16Array]"]=pw["[object Int32Array]"]=pw["[object Uint8Array]"]=pw["[object Uint8ClampedArray]"]=pw["[object Uint16Array]"]=pw["[object Uint32Array]"]=!0,pw["[object Arguments]"]=pw["[object Array]"]=pw["[object ArrayBuffer]"]=pw["[object Boolean]"]=pw["[object DataView]"]=pw["[object Date]"]=pw["[object Error]"]=pw["[object Function]"]=pw["[object Map]"]=pw["[object Number]"]=pw["[object Object]"]=pw["[object RegExp]"]=pw["[object Set]"]=pw["[object String]"]=pw["[object WeakMap]"]=!1;var mw=function(e){return fw(e)&&dw(e.length)&&!!pw[uw(e)]};var hw=function(e){return function(t){return e(t)}},vw={exports:{}};!function(e,t){var r=og,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}(vw,vw.exports);var yw=vw.exports,gw=mw,bw=hw,ww=yw&&yw.isTypedArray,Sw=ww?bw(ww):gw,xw=Kb,$w=rw,_w=nw,kw=iw,Ew=lw,Cw=Sw,jw=Object.prototype.hasOwnProperty;var Pw=function(e,t){var r=_w(e),n=!r&&$w(e),o=!r&&!n&&kw(e),a=!r&&!n&&!o&&Cw(e),i=r||n||o||a,s=i?xw(e.length,String):[],l=s.length;for(var c in e)!t&&!jw.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ew(c,l))||s.push(c);return s},Ow=Object.prototype;var Nw=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ow)};var Aw=function(e,t){return function(r){return e(t(r))}},Rw=Aw(Object.keys,Object),Tw=Nw,Iw=Rw,Mw=Object.prototype.hasOwnProperty;var Fw=$g,Dw=cw;var zw=function(e){return null!=e&&Dw(e.length)&&!Fw(e)},Lw=Pw,Vw=function(e){if(!Tw(e))return Iw(e);var t=[];for(var r in Object(e))Mw.call(e,r)&&"constructor"!=r&&t.push(r);return t},Bw=zw;var Uw=function(e){return Bw(e)?Lw(e):Vw(e)},Ww=qb,qw=Uw;var Kw=function(e,t){return e&&Ww(t,qw(t),e)};var Hw=wg,Gw=Nw,Qw=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},Yw=Object.prototype.hasOwnProperty;var Jw=Pw,Xw=function(e){if(!Hw(e))return Qw(e);var t=Gw(e),r=[];for(var n in e)("constructor"!=n||!t&&Yw.call(e,n))&&r.push(n);return r},Zw=zw;var eS=function(e){return Zw(e)?Jw(e,!0):Xw(e)},tS=qb,rS=eS;var nS=function(e,t){return e&&tS(t,rS(t),e)},oS={exports:{}};!function(e,t){var r=sg,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}}(oS,oS.exports);var aS=oS.exports;var iS=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t};var sS=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 lS=function(){return[]},cS=sS,uS=lS,dS=Object.prototype.propertyIsEnumerable,fS=Object.getOwnPropertySymbols,pS=fS?function(e){return null==e?[]:(e=Object(e),cS(fS(e),(function(t){return dS.call(e,t)})))}:uS,mS=qb,hS=pS;var vS=function(e,t){return mS(e,hS(e),t)};var yS=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e},gS=Aw(Object.getPrototypeOf,Object),bS=yS,wS=gS,SS=pS,xS=lS,$S=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)bS(t,SS(e)),e=wS(e);return t}:xS,_S=qb,kS=$S;var ES=function(e,t){return _S(e,kS(e),t)},CS=yS,jS=nw;var PS=function(e,t,r){var n=t(e);return jS(e)?n:CS(n,r(e))},OS=PS,NS=pS,AS=Uw;var RS=function(e){return OS(e,AS,NS)},TS=PS,IS=$S,MS=eS;var FS=function(e){return TS(e,MS,IS)},DS=Vg(sg,"DataView"),zS=Vg(sg,"Promise"),LS=Vg(sg,"Set"),VS=DS,BS=Bg,US=zS,WS=LS,qS=Vg(sg,"WeakMap"),KS=bg,HS=jg,GS="[object Map]",QS="[object Promise]",YS="[object Set]",JS="[object WeakMap]",XS="[object DataView]",ZS=HS(VS),ex=HS(BS),tx=HS(US),rx=HS(WS),nx=HS(qS),ox=KS;(VS&&ox(new VS(new ArrayBuffer(1)))!=XS||BS&&ox(new BS)!=GS||US&&ox(US.resolve())!=QS||WS&&ox(new WS)!=YS||qS&&ox(new qS)!=JS)&&(ox=function(e){var t=KS(e),r="[object Object]"==t?e.constructor:void 0,n=r?HS(r):"";if(n)switch(n){case ZS:return XS;case ex:return GS;case tx:return QS;case rx:return YS;case nx:return JS}return t});var ax=ox,ix=Object.prototype.hasOwnProperty;var sx=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&ix.call(e,"index")&&(r.index=e.index,r.input=e.input),r},lx=sg.Uint8Array,cx=lx;var ux=function(e){var t=new e.constructor(e.byteLength);return new cx(t).set(new cx(e)),t},dx=ux;var fx=function(e,t){var r=t?dx(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)},px=/\w*$/;var mx=function(e){var t=new e.constructor(e.source,px.exec(e));return t.lastIndex=e.lastIndex,t},hx=lg?lg.prototype:void 0,vx=hx?hx.valueOf:void 0;var yx=ux;var gx=function(e,t){var r=t?yx(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},bx=ux,wx=fx,Sx=mx,xx=function(e){return vx?Object(vx.call(e)):{}},$x=gx;var _x=function(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return bx(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return wx(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 $x(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 Sx(e);case"[object Symbol]":return xx(e)}},kx=wg,Ex=Object.create,Cx=function(){function e(){}return function(t){if(!kx(t))return{};if(Ex)return Ex(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),jx=gS,Px=Nw;var Ox=function(e){return"function"!=typeof e.constructor||Px(e)?{}:Cx(jx(e))},Nx=ax,Ax=Hb;var Rx=function(e){return Ax(e)&&"[object Map]"==Nx(e)},Tx=hw,Ix=yw&&yw.isMap,Mx=Ix?Tx(Ix):Rx,Fx=ax,Dx=Hb;var zx=function(e){return Dx(e)&&"[object Set]"==Fx(e)},Lx=hw,Vx=yw&&yw.isSet,Bx=Vx?Lx(Vx):zx,Ux=Ab,Wx=Rb,qx=Bb,Kx=Kw,Hx=nS,Gx=aS,Qx=iS,Yx=vS,Jx=ES,Xx=RS,Zx=FS,e$=ax,t$=sx,r$=_x,n$=Ox,o$=nw,a$=iw,i$=Mx,s$=wg,l$=Bx,c$=Uw,u$=eS,d$="[object Arguments]",f$="[object Function]",p$="[object Object]",m$={};m$[d$]=m$["[object Array]"]=m$["[object ArrayBuffer]"]=m$["[object DataView]"]=m$["[object Boolean]"]=m$["[object Date]"]=m$["[object Float32Array]"]=m$["[object Float64Array]"]=m$["[object Int8Array]"]=m$["[object Int16Array]"]=m$["[object Int32Array]"]=m$["[object Map]"]=m$["[object Number]"]=m$[p$]=m$["[object RegExp]"]=m$["[object Set]"]=m$["[object String]"]=m$["[object Symbol]"]=m$["[object Uint8Array]"]=m$["[object Uint8ClampedArray]"]=m$["[object Uint16Array]"]=m$["[object Uint32Array]"]=!0,m$["[object Error]"]=m$[f$]=m$["[object WeakMap]"]=!1;var h$=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(!s$(t))return t;var d=o$(t);if(d){if(s=t$(t),!l)return Qx(t,s)}else{var f=e$(t),p=f==f$||"[object GeneratorFunction]"==f;if(a$(t))return Gx(t,l);if(f==p$||f==d$||p&&!a){if(s=c||p?{}:n$(t),!l)return c?Jx(t,Hx(s,t)):Yx(t,Kx(s,t))}else{if(!m$[f])return a?t:{};s=r$(t,f,l)}}i||(i=new Ux);var m=i.get(t);if(m)return m;i.set(t,s),l$(t)?t.forEach((function(o){s.add(e(o,r,n,o,t,i))})):i$(t)&&t.forEach((function(o,a){s.set(a,e(o,r,n,a,t,i))}));var h=d?void 0:(u?c?Zx:Xx:c?u$:c$)(t);return Wx(h||t,(function(o,a){h&&(o=t[a=o]),qx(s,a,e(o,r,n,a,t,i))})),s},v$=h$;var y$=function(e){return v$(e,5)};var g$=Sb,b$=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},w$=function(e){return this.__data__.has(e)};function S$(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new g$;++t<r;)this.add(e[t])}S$.prototype.add=S$.prototype.push=b$,S$.prototype.has=w$;var x$=S$;var $$=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 _$=function(e,t){return e.has(t)},k$=x$,E$=$$,C$=_$;var j$=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 k$: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(!E$(t,(function(e,t){if(!C$(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 P$=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r};var O$=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r},N$=lx,A$=Iy,R$=j$,T$=P$,I$=O$,M$=lg?lg.prototype:void 0,F$=M$?M$.valueOf:void 0;var D$=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 N$(e),new N$(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return A$(+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=T$;case"[object Set]":var l=1&n;if(s||(s=I$),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=R$(s(e),s(t),n,o,a,i);return i.delete(e),u;case"[object Symbol]":if(F$)return F$.call(e)==F$.call(t)}return!1},z$=RS,L$=Object.prototype.hasOwnProperty;var V$=function(e,t,r,n,o,a){var i=1&r,s=z$(e),l=s.length;if(l!=z$(t).length&&!i)return!1;for(var c=l;c--;){var u=s[c];if(!(i?u in t:L$.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},B$=Ab,U$=j$,W$=D$,q$=V$,K$=ax,H$=nw,G$=iw,Q$=Sw,Y$="[object Arguments]",J$="[object Array]",X$="[object Object]",Z$=Object.prototype.hasOwnProperty;var e_=function(e,t,r,n,o,a){var i=H$(e),s=H$(t),l=i?J$:K$(e),c=s?J$:K$(t),u=(l=l==Y$?X$:l)==X$,d=(c=c==Y$?X$:c)==X$,f=l==c;if(f&&G$(e)){if(!G$(t))return!1;i=!0,u=!1}if(f&&!u)return a||(a=new B$),i||Q$(e)?U$(e,t,r,n,o,a):W$(e,t,l,r,n,o,a);if(!(1&r)){var p=u&&Z$.call(e,"__wrapped__"),m=d&&Z$.call(t,"__wrapped__");if(p||m){var h=p?e.value():e,v=m?t.value():t;return a||(a=new B$),o(h,v,r,n,a)}}return!!f&&(a||(a=new B$),q$(e,t,r,n,o,a))},t_=Hb;var r_=function e(t,r,n,o,a){return t===r||(null==t||null==r||!t_(t)&&!t_(r)?t!=t&&r!=r:e_(t,r,n,o,e,a))},n_=r_;var o_=function(e,t){return n_(e,t)},a_=rw,i_=nw,s_=lg?lg.isConcatSpreadable:void 0;var l_=yS,c_=function(e){return i_(e)||a_(e)||!!(s_&&e&&e[s_])};var u_=function e(t,r,n,o,a){var i=-1,s=t.length;for(n||(n=c_),a||(a=[]);++i<s;){var l=t[i];r>0&&n(l)?r>1?e(l,r-1,n,o,a):l_(a,l):o||(a[a.length]=l)}return a};var d_=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},f_=bg,p_=Hb;var m_=function(e){return"symbol"==typeof e||p_(e)&&"[object Symbol]"==f_(e)},h_=nw,v_=m_,y_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,g_=/^\w*$/;var b_=function(e,t){if(h_(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!v_(e))||(g_.test(e)||!y_.test(e)||null!=t&&e in Object(t))},w_=Sb;function S_(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(S_.Cache||w_),r}S_.Cache=w_;var x_=S_;var $_=function(e){var t=x_(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t},__=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,k_=/\\(\\)?/g,E_=$_((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(__,(function(e,r,n,o){t.push(n?o.replace(k_,"$1"):r||e)})),t})),C_=E_,j_=d_,P_=nw,O_=m_,N_=lg?lg.prototype:void 0,A_=N_?N_.toString:void 0;var R_=function e(t){if("string"==typeof t)return t;if(P_(t))return j_(t,e)+"";if(O_(t))return A_?A_.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r},T_=R_;var I_=nw,M_=b_,F_=C_,D_=function(e){return null==e?"":T_(e)};var z_=function(e,t){return I_(e)?e:M_(e,t)?[e]:F_(D_(e))},L_=m_;var V_=function(e){if("string"==typeof e||L_(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},B_=z_,U_=V_;var W_=function(e,t){for(var r=0,n=(t=B_(t,e)).length;null!=e&&r<n;)e=e[U_(t[r++])];return r&&r==n?e:void 0},q_=Ab,K_=r_;var H_=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 q_;if(n)var f=n(c,u,l,e,t,d);if(!(void 0===f?K_(u,c,3,n,d):f))return!1}}return!0},G_=wg;var Q_=function(e){return e==e&&!G_(e)},Y_=Q_,J_=Uw;var X_=function(e){for(var t=J_(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,Y_(o)]}return t};var Z_=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}},ek=H_,tk=X_,rk=Z_;var nk=W_;var ok=z_,ak=rw,ik=nw,sk=lw,lk=cw,ck=V_;var uk=function(e,t,r){for(var n=-1,o=(t=ok(t,e)).length,a=!1;++n<o;){var i=ck(t[n]);if(!(a=null!=e&&r(e,i)))break;e=e[i]}return a||++n!=o?a:!!(o=null==e?0:e.length)&&lk(o)&&sk(i,o)&&(ik(e)||ak(e))},dk=function(e,t){return null!=e&&t in Object(e)},fk=uk;var pk=r_,mk=function(e,t,r){var n=null==e?void 0:nk(e,t);return void 0===n?r:n},hk=function(e,t){return null!=e&&fk(e,t,dk)},vk=b_,yk=Q_,gk=Z_,bk=V_;var wk=function(e){return e};var Sk=W_;var xk=function(e){return function(t){return null==t?void 0:t[e]}},$k=function(e){return function(t){return Sk(t,e)}},_k=b_,kk=V_;var Ek=function(e){var t=tk(e);return 1==t.length&&t[0][2]?rk(t[0][0],t[0][1]):function(r){return r===e||ek(r,e,t)}},Ck=function(e,t){return vk(e)&&yk(t)?gk(bk(e),t):function(r){var n=mk(r,e);return void 0===n&&n===t?hk(r,e):pk(t,n,3)}},jk=wk,Pk=nw,Ok=function(e){return _k(e)?xk(kk(e)):$k(e)};var Nk=function(e){return"function"==typeof e?e:null==e?jk:"object"==typeof e?Pk(e)?Ck(e[0],e[1]):Ek(e):Ok(e)};var Ak=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}},Rk=Ak(),Tk=Rk,Ik=Uw;var Mk=zw;var Fk=function(e,t){return function(r,n){if(null==r)return r;if(!Mk(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}},Dk=Fk((function(e,t){return e&&Tk(e,t,Ik)})),zk=Dk,Lk=zw;var Vk=function(e,t){var r=-1,n=Lk(e)?Array(e.length):[];return zk(e,(function(e,o,a){n[++r]=t(e,o,a)})),n};var Bk=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e},Uk=m_;var Wk=function(e,t){if(e!==t){var r=void 0!==e,n=null===e,o=e==e,a=Uk(e),i=void 0!==t,s=null===t,l=t==t,c=Uk(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 qk=function(e,t,r){for(var n=-1,o=e.criteria,a=t.criteria,i=o.length,s=r.length;++n<i;){var l=Wk(o[n],a[n]);if(l)return n>=s?l:l*("desc"==r[n]?-1:1)}return e.index-t.index},Kk=d_,Hk=W_,Gk=Nk,Qk=Vk,Yk=Bk,Jk=hw,Xk=qk,Zk=wk,eE=nw;var tE=function(e,t,r){t=t.length?Kk(t,(function(e){return eE(e)?function(t){return Hk(t,1===e.length?e[0]:e)}:e})):[Zk];var n=-1;t=Kk(t,Jk(Gk));var o=Qk(e,(function(e,r,o){return{criteria:Kk(t,(function(t){return t(e)})),index:++n,value:e}}));return Yk(o,(function(e,t){return Xk(e,t,r)}))};var rE=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)},nE=rE,oE=Math.max;var aE=function(e,t,r){return t=oE(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=oE(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),nE(e,this,s)}};var iE=function(e){return function(){return e}},sE=Mb,lE=sE?function(e,t){return sE(e,"toString",{configurable:!0,enumerable:!1,value:iE(t),writable:!0})}:wk,cE=lE,uE=Date.now;var dE=function(e){var t=0,r=0;return function(){var n=uE(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},fE=dE(cE),pE=wk,mE=aE,hE=fE;var vE=function(e,t){return hE(mE(e,t,pE),e+"")},yE=Iy,gE=zw,bE=lw,wE=wg;var SE=function(e,t,r){if(!wE(r))return!1;var n=typeof t;return!!("number"==n?gE(r)&&bE(t,r.length):"string"==n&&t in r)&&yE(r[t],e)},xE=u_,$E=tE,_E=SE,kE=vE((function(e,t){if(null==e)return[];var r=t.length;return r>1&&_E(e,t[0],t[1])?t=[]:r>2&&_E(t[0],t[1],t[2])&&(t=[t[0]]),$E(e,xE(t,1),[])})),EE=kE;var CE=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 jE=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1},PE=CE,OE=function(e){return e!=e},NE=jE;var AE=function(e,t,r){return t==t?NE(e,t,r):PE(e,OE,r)},RE=AE;var TE=function(e,t){return!!(null==e?0:e.length)&&RE(e,t,0)>-1};var IE=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 ME=LS,FE=function(){},DE=ME&&1/O$(new ME([,-0]))[1]==1/0?function(e){return new ME(e)}:FE,zE=x$,LE=TE,VE=IE,BE=_$,UE=DE,WE=O$;var qE=function(e,t,r){var n=-1,o=LE,a=e.length,i=!0,s=[],l=s;if(r)i=!1,o=VE;else if(a>=200){var c=t?null:UE(e);if(c)return WE(c);i=!1,o=BE,l=new zE}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},KE=qE;var HE=function(e){return e&&e.length?KE(e):[]},GE=qE;var QE=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?GE(e,void 0,t):[]},YE=vE,JE=Iy,XE=SE,ZE=eS,eC=Object.prototype,tC=eC.hasOwnProperty,rC=YE((function(e,t){e=Object(e);var r=-1,n=t.length,o=n>2?t[2]:void 0;for(o&&XE(t[0],t[1],o)&&(n=1);++r<n;)for(var a=t[r],i=ZE(a),s=-1,l=i.length;++s<l;){var c=i[s],u=e[c];(void 0===u||JE(u,eC[c])&&!tC.call(e,c))&&(e[c]=a[c])}return e})),nC=rC,oC=x$,aC=TE,iC=IE,sC=d_,lC=hw,cC=_$,uC=Math.min;var dC=function(e,t,r){for(var n=r?iC:aC,o=e[0].length,a=e.length,i=a,s=Array(a),l=1/0,c=[];i--;){var u=e[i];i&&t&&(u=sC(u,lC(t))),l=uC(u.length,l),s[i]=!r&&(t||o>=120&&u.length>=120)?new oC(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?cC(f,m):n(c,m,r))){for(i=a;--i;){var h=s[i];if(!(h?cC(h,m):n(e[i],m,r)))continue e}f&&f.push(m),c.push(p)}}return c},fC=zw,pC=Hb;var mC=function(e){return pC(e)&&fC(e)},hC=mC;var vC=function(e){return hC(e)?e:[]};var yC=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},gC=d_,bC=dC,wC=vC,SC=yC,xC=vE((function(e){var t=SC(e),r=gC(e,wC);return(t="function"==typeof t?t:void 0)&&r.pop(),r.length&&r[0]===e[0]?bC(r,void 0,t):[]})),$C=bg,_C=gS,kC=Hb,EC=Function.prototype,CC=Object.prototype,jC=EC.toString,PC=CC.hasOwnProperty,OC=jC.call(Object);var NC=function(e){if(!kC(e)||"[object Object]"!=$C(e))return!1;var t=_C(e);if(null===t)return!0;var r=PC.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&jC.call(r)==OC},AC=bg,RC=Hb;var TC=o_,IC=EE,MC=HE,FC=QE,DC=nC,zC=xC,LC=NC,VC=function(e){return!0===e||!1===e||RC(e)&&"[object Boolean]"==AC(e)},BC=e=>Array.isArray(e)?e:[e],UC=e=>void 0===e,WC=e=>LC(e)||Array.isArray(e)?Object.keys(e):[],qC=(e,t)=>e.hasOwnProperty(t),KC=e=>IC(MC(e)),HC=e=>UC(e)||Array.isArray(e)&&0===e.length,GC=(e,t,r,n)=>t&&qC(t,r)&&e&&qC(e,r)&&n(e[r],t[r]),QC=(e,t)=>UC(e)&&0===t||UC(t)&&0===e||TC(e,t),YC=e=>UC(e)||TC(e,{})||!0===e,JC=e=>UC(e)||TC(e,{}),XC=e=>UC(e)||LC(e)||!0===e||!1===e;function ZC(e,t){return!(!HC(e)||!HC(t))||TC(KC(e),KC(t))}function ej(e,t,r,n){var o=MC(WC(e).concat(WC(t)));return!(!JC(e)||!JC(t))||(!JC(e)||!WC(t).length)&&((!JC(t)||!WC(e).length)&&o.every((function(r){var o=e[r],a=t[r];return Array.isArray(o)&&Array.isArray(a)?TC(KC(e),KC(t)):!(Array.isArray(o)&&!Array.isArray(a))&&(!(Array.isArray(a)&&!Array.isArray(o))&&GC(e,t,r,n))})))}function tj(e,t,r,n){var o=FC(e,n),a=FC(t,n);return zC(o,a,n).length===Math.max(o.length,a.length)}var rj={title:TC,uniqueItems:(e,t)=>UC(e)&&!1===t||UC(t)&&!1===e||TC(e,t),minLength:QC,minItems:QC,minProperties:QC,required:ZC,enum:ZC,type:function(e,t){return e=BC(e),t=BC(t),TC(KC(e),KC(t))},items:function(e,t,r,n){return LC(e)&&LC(t)?n(e,t):Array.isArray(e)&&Array.isArray(t)?ej(e,t,0,n):TC(e,t)},anyOf:tj,allOf:tj,oneOf:tj,properties:ej,patternProperties:ej,dependencies:ej},nj=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],oj=["additionalProperties","additionalItems","contains","propertyNames","not"];var aj=function e(t,r,n){if(n=DC(n,{ignore:[]}),YC(t)&&YC(r))return!0;if(!XC(t)||!XC(r))throw new Error("Either of the values are not a JSON schema.");if(t===r)return!0;if(VC(t)&&VC(r))return t===r;if(void 0===t&&!1===r||void 0===r&&!1===t)return!1;if(UC(t)&&!UC(r)||!UC(t)&&UC(r))return!1;var o=MC(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!==oj.indexOf(o))return e(i,s,n);var l=rj[o];if(l||(l=TC),TC(i,s))return!0;if(-1===nj.indexOf(o)&&(!qC(t,o)&&qC(r,o)||qC(t,o)&&!qC(r,o)))return i===s;var c=l(i,s,o,a);if(!VC(c))throw new Error("Comparer must return true or false");return c}))};var ij=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};var sj=function(e){return("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))&&e.valueOf()==e.valueOf()};var lj=ij,cj=function(e){return sj(e)&&e%1==0};var uj=function(e){var t;if(!lj(e))return!1;if(!(t=e.length))return!1;for(var r=0;r<t;r++)if(!cj(e[r]))return!1;return!0};var dj=function(e){return"function"==typeof e},fj=ij,pj=uj,mj=dj,hj=Math.pow(2,31)-1;function vj(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 yj(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 gj=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(pj(e)){if(2===s)return(o=e[0])<0&&(o=-o),(a=e[1])<0&&(a=-a),o<=hj&&a<=hj?yj(o,a):vj(o,a);r=e}else{if(!fj(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],!mj(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&&!pj(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])<=hj&&o<=hj?yj(o,a):vj(o,a);return o},bj=gj,wj=ij,Sj=uj,xj=dj;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(Sj(e)){if(2===s)return(o=e[0])<0&&(o=-o),(a=e[1])<0&&(a=-a),0===o||0===a?0:o/bj(o,a)*a;r=e}else{if(!wj(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],!xj(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&&!Sj(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/bj(o,a)*a}return o},_j=Db,kj=Iy;var Ej=function(e,t,r){(void 0!==r&&!kj(e[t],r)||void 0===r&&!(t in e))&&_j(e,t,r)};var Cj=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},jj=qb,Pj=eS;var Oj=Ej,Nj=aS,Aj=gx,Rj=iS,Tj=Ox,Ij=rw,Mj=nw,Fj=mC,Dj=iw,zj=$g,Lj=wg,Vj=NC,Bj=Sw,Uj=Cj,Wj=function(e){return jj(e,Pj(e))};var qj=Ab,Kj=Ej,Hj=Rk,Gj=function(e,t,r,n,o,a,i){var s=Uj(e,r),l=Uj(t,r),c=i.get(l);if(c)Oj(e,r,c);else{var u=a?a(s,l,r+"",e,t,i):void 0,d=void 0===u;if(d){var f=Mj(l),p=!f&&Dj(l),m=!f&&!p&&Bj(l);u=l,f||p||m?Mj(s)?u=s:Fj(s)?u=Rj(s):p?(d=!1,u=Nj(l,!0)):m?(d=!1,u=Aj(l,!0)):u=[]:Vj(l)||Ij(l)?(u=s,Ij(s)?u=Wj(s):Lj(s)&&!zj(s)||(u=Tj(l))):d=!1}d&&(i.set(l,u),o(u,l,n,a,i),i.delete(l)),Oj(e,r,u)}},Qj=wg,Yj=eS,Jj=Cj;var Xj=function e(t,r,n,o,a){t!==r&&Hj(r,(function(i,s){if(a||(a=new qj),Qj(i))Gj(t,r,s,n,e,o,a);else{var l=o?o(Jj(t,s),i,s+"",t,r,a):void 0;void 0===l&&(l=i),Kj(t,s,l)}}),Yj)},Zj=Xj,eP=wg;var tP=function e(t,r,n,o,a,i){return eP(t)&&eP(r)&&(i.set(r,t),Zj(t,r,void 0,e,i),i.delete(r)),t},rP=vE,nP=SE;var oP=function(e){return rP((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&&nP(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}))},aP=Xj,iP=oP((function(e,t,r,n){aP(e,t,r,n)})),sP=rE,lP=tP,cP=iP,uP=vE((function(e){return e.push(void 0,lP),sP(cP,void 0,e)})),dP=u_;var fP=function(e){return(null==e?0:e.length)?dP(e,1):[]},pP=u_;var mP=function(e){return(null==e?0:e.length)?pP(e,Infinity):[]},hP=d_,vP=dC,yP=vC,gP=vE((function(e){var t=hP(e,yP);return t.length&&t[0]===e[0]?vP(t):[]}));var bP=function(e,t,r,n){for(var o=r-1,a=e.length;++o<a;)if(n(e[o],t))return o;return-1},wP=d_,SP=AE,xP=bP,$P=hw,_P=iS,kP=Array.prototype.splice;var EP=function(e,t,r,n){var o=n?xP:SP,a=-1,i=t.length,s=e;for(e===t&&(t=_P(t)),r&&(s=wP(e,$P(r)));++a<i;)for(var l=0,c=t[a],u=r?r(c):c;(l=o(s,u,l,n))>-1;)s!==e&&kP.call(s,l,1),kP.call(e,l,1);return e},CP=EP;var jP=function(e,t){return e&&e.length&&t&&t.length?CP(e,t):e},PP=wk;var OP=Rb,NP=Dk,RP=function(e){return"function"==typeof e?e:PP},TP=nw;var IP=function(e,t){return(TP(e)?OP:NP)(e,RP(t))},MP=x$,FP=TE,DP=IE,zP=d_,LP=hw,VP=_$;var BP=function(e,t,r,n){var o=-1,a=FP,i=!0,s=e.length,l=[],c=t.length;if(!s)return l;r&&(t=zP(t,LP(r))),n?(a=DP,i=!1):t.length>=200&&(a=VP,i=!1,t=new MP(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},UP=BP,WP=mC,qP=vE((function(e,t){return WP(e)?UP(e,t):[]}));const KP=fP,HP=mP,GP=NC,QP=HE,YP=qP;const JP=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),XP=e=>GP(e)||Array.isArray(e)?Object.keys(e):[],ZP=e=>!XP(e).length&&!1!==e&&!0!==e;var eO={allUniqueKeys:e=>QP(HP(e.map(XP))),deleteUndefinedProps:function(e){for(const t in e)JP(e,t)&&ZP(e[t])&&delete e[t];return e},getValues:(e,t)=>e.map((e=>e&&e[t])),has:JP,isEmptySchema:ZP,isSchema:e=>GP(e)||!0===e||!1===e,keys:XP,notUndefined:e=>void 0!==e,uniqWith:QE,withoutArr:(e,...t)=>YP.apply(null,[e].concat(KP(t)))};const tO=aj,rO=IP,{allUniqueKeys:nO,deleteUndefinedProps:oO,getValues:aO,keys:iO,notUndefined:sO,uniqWith:lO,withoutArr:cO}=eO;function uO(e,t){return nO(e).reduce((function(r,n){const o=aO(e,n),a=lO(o.filter(sO),tO);return r[n]=t(a,n),r}),{})}var dO={keywords:["properties","patternProperties","additionalProperties"],resolver(e,t,r,n){n.ignoreAdditionalProperties||(e.forEach((function(t){const n=e.filter((e=>e!==t)),o=iO(t.properties),a=iO(t.patternProperties).map((e=>new RegExp(e)));n.forEach((function(e){const n=iO(e.properties),i=n.filter((e=>a.some((t=>t.test(e)))));cO(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=iO(t.patternProperties);!1===t.additionalProperties&&r.forEach((function(e){const t=iO(e.patternProperties);cO(t,n).forEach((t=>delete e.patternProperties[t]))}))})));const o={additionalProperties:r.additionalProperties(e.map((e=>e.additionalProperties))),patternProperties:uO(e.map((e=>e.patternProperties)),r.patternProperties),properties:uO(e.map((e=>e.properties)),r.properties)};var a;return!1===o.additionalProperties&&rO(a=o.properties,(function(e,t){!1===e&&delete a[t]})),oO(o)}};const fO=aj,pO=IP,{allUniqueKeys:mO,deleteUndefinedProps:hO,has:vO,isSchema:yO,notUndefined:gO,uniqWith:bO}=eO;function wO(e,t,r){return mO(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(yO(r))return r;if(vO(e,"additionalItems"))return e.additionalItems}}}))}(e,n),a=bO(o.filter(gO),fO);return r[n]=t(a,n),r}),[])}var SO={keywords:["items","additionalItems"],resolver(e,t,r){const n=e.map((e=>e.items)),o=n.filter(gO),a={};let i;var s;return o.every(yO)?a.items=r.items(n):a.items=wO(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,pO(s,(function(e,t){!1===e&&s.splice(t,1)}))),hO(a)}};const xO=y$,$O=aj,_O=$j,kO=uP,EO=fP,CO=mP,jO=gP,PO=xC,OO=o_,NO=NC,AO=jP,RO=EE,TO=HE,IO=QE,MO=dO,FO=SO,DO=(e,t)=>-1!==e.indexOf(t),zO=e=>NO(e)||!0===e||!1===e,LO=e=>!1===e,VO=e=>!0===e,BO=(e,t,r)=>r(e),UO=e=>RO(TO(CO(e))),WO=e=>void 0!==e,qO=e=>TO(CO(e.map(JO))),KO=e=>e[0],HO=e=>Math.max.apply(Math,e),GO=e=>Math.min.apply(Math,e);function QO(e){let{allOf:t=[],...r}=e;return r=NO(e)?r:e,[r,...t.map(QO)]}function YO(e,t){return e.map((e=>e&&e[t]))}function JO(e){return NO(e)||Array.isArray(e)?Object.keys(e):[]}function XO(e,t){if(t=t||[],!e.length)return t;const r=e.slice(0).shift(),n=e.slice(1);return t.length?XO(n,EO(t.map((e=>r.map((t=>[t].concat(e))))))):XO(n,r.map((e=>e)))}function ZO(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 eN(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=IO(s,$O),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 NO(u)||ZO(l,a.concat(t)),u}}function tN(e){return{required:e}}const rN=["properties","patternProperties","definitions","dependencies"],nN=["anyOf","oneOf"],oN=["additionalProperties","additionalItems","contains","propertyNames","not","items"],aN={type(e){if(e.some(Array.isArray)){const t=e.map((function(e){return Array.isArray(e)?e:[e]})),r=jO.apply(null,t);if(1===r.length)return r[0];if(r.length>1)return TO(r)}},dependencies:(e,t,r)=>qO(e).reduce((function(t,n){const o=YO(e,n);let a=IO(o.filter(WO),OO);const i=a.filter(Array.isArray);if(i.length){if(i.length===a.length)t[n]=UO(a);else{const e=a.filter(zO),o=i.map(tN);t[n]=r(e.concat(o),n)}return t}return a=IO(a,$O),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(WO)}(XO(xO(e)),r),o=IO(n,$O);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 _O(t)/r},enum(e){const t=PO.apply(null,e.concat(OO));if(t.length)return RO(t)}};aN.$id=KO,aN.$ref=KO,aN.$schema=KO,aN.additionalItems=BO,aN.additionalProperties=BO,aN.anyOf=aN.oneOf,aN.contains=BO,aN.default=KO,aN.definitions=aN.dependencies,aN.description=KO,aN.examples=e=>IO(EO(e),OO),aN.exclusiveMaximum=GO,aN.exclusiveMinimum=HO,aN.items=FO,aN.maximum=GO,aN.maxItems=GO,aN.maxLength=GO,aN.maxProperties=GO,aN.minimum=HO,aN.minItems=HO,aN.minLength=HO,aN.minProperties=HO,aN.properties=MO,aN.propertyNames=BO,aN.required=e=>UO(e),aN.title=KO,aN.uniqueItems=e=>e.some(VO);const iN={properties:MO,items:FO};function sN(e,t,r){t=kO(t,{ignoreAdditionalProperties:!1,resolvers:aN,complexResolvers:iN,deep:!0});const n=Object.entries(t.complexResolvers);const o=function e(r,o,a){r=xO(r.filter(WO)),a=a||[];const i=NO(o)?o:{};if(!r.length)return;if(r.some(LO))return!1;if(r.every(VO))return!0;r=r.filter(NO);const s=qO(r);if(t.deep&&DO(s,"allOf"))return sN({allOf:r},t);const l=n.map((([e,t])=>s.filter((e=>t.keywords.includes(e)))));return l.forEach((e=>AO(s,e))),s.forEach((function(n){const o=YO(r,n),s=IO(o.filter(WO),function(e){return function(t,r){return $O({[e]:t},{[e]:r})}}(n));if(1===s.length&&DO(nN,n))i[n]=s[0].map((t=>e([t],t)));else if(1!==s.length||DO(rN,n)||DO(oN,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]?ZO(s,a.concat(n)):void 0===i[n]&&delete i[n]}else i[n]=s[0]})),n.reduce(((n,[o,i],s)=>({...n,...eN(l[s],o,r,e,t,a)})),i)}(CO(QO(e)));return o}sN.options={resolvers:aN};var lN=r(sN);function cN(e){let t;const r=Tm(e,"discriminator.propertyName",void 0);return Ov(r)?t=r:void 0!==r&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),t}function uN(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 dN=xy((function(e){return Ry(ov(e,1,gy,!0))}));function fN(e){let{type:t}=e;return!t&&e.const?uN(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 pN(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]=pN(o,a):e&&t&&("object"===fN(e)||"object"===fN(t))&&n===yd&&Array.isArray(o)&&Array.isArray(a)?r[n]=dN(o,a):r[n]=a,r}),r)}function mN(e,t,r={},n,o){return gN(e,t,r,n,void 0,void 0,o)[0]}function hN(e){const t=e.reduce(((e,t)=>t.length>1?t.flatMap((t=>dy(e.length,(r=>[...e[r]].concat(t))))):(e.forEach((e=>e.push(t[0]))),e)),[[]]);return t}function vN(e,t,r,n,o,a,i){const s=yN(t,r,o);return s!==t?gN(e,s,r,a,n,o,i):[t]}function yN(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={...xv(e,t),...o}}if(vd in n){const e=[],a=function(e,t,r){var n=Zf(e),o=n||vp(e)||Op(e);if(t=Gv(t),null==r){var a=e&&e.constructor;r=o?n?new a:[]:ef(e)&&af(a)?Dh(Ld(e)):{}}return(o?Hm:Iv)(e,(function(e,n,o){return t(r,e,n,o)})),r}(n[vd],((n,o,a)=>{const i=[...r];n[a]=yN(o,t,i),e.push(i)}),{});ky(r,function(e){return e&&e.length?Ry(e):[]}(null!=(o=e)&&o.length?ov(o,Ey):[])),n={...n,[vd]:a}}var o;return pd in n&&!Array.isArray(n.items)&&"boolean"!=typeof n.items&&(n={...n,items:yN(n.items,t,r)}),fm(e,n)?e:n}function gN(e,t,r,n,o=!1,a=[],i){if(!ed(t))return[{}];const s=function(e,t,r,n,o,a,i){const s=vN(e,t,r,n,o,a);if(s.length>1||s[0]!==t)return s;if(ld in t)return bN(e,t,r,n,o,a).flatMap((t=>gN(e,t,r,a,n,o,i)));if(od in t&&Array.isArray(t.allOf))return hN(t.allOf.map((t=>gN(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(gN(e,l,r,a,n,o,i))),c&&"boolean"!=typeof c&&(p=p.concat(gN(e,c,r,a,n,o,i)));else{const t=d?l:c;t&&"boolean"!=typeof t&&(p=p.concat(gN(e,t,r,a,n,o,i)))}return p.length&&(f=p.map((e=>pN(u,e)))),f.flatMap((t=>gN(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):lN(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?mN(e,{$ref:Tm(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:uN(Tm(i,[t]))}:{type:uN(Tm(i,[t]))},a.properties[t]=n,vy(a.properties,[t,rd],!0)})),a}(e,l,r,n,i):l}))}function bN(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=cN(t);a=a.map((e=>yN(e,r,[])));const c=my(e,i,a,r,s);if(n)return a.map((e=>pN(l,e)));t=pN(l,a[c])}return[t]}(e,l,r,n,a);return c.flatMap((t=>wN(e,s,t,r,n,o,a,i)))}function wN(e,t,r,n,o,a,i,s){let l=[r];for(const c in t){if(!o&&void 0===Tm(i,[c]))continue;if(r.properties&&!(c in r.properties))continue;const[u,d]=wv(c,t);return Array.isArray(d)?l[0]=SN(r,d):ed(d)&&(l=xN(e,r,n,c,d,o,a,i,s)),l.flatMap((t=>wN(e,u,t,n,o,a,i,s)))}return l}function SN(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 xN(e,t,r,n,o,a,i,s,l){return gN(e,o,r,s,a,i,l).flatMap((o=>{const{oneOf:c,...u}=o;if(t=pN(t,u),void 0===c)return t;const d=c.map((t=>"boolean"!=typeof t&&bd in t?vN(e,t,r,a,i,s):[t]));return hN(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]=wv(n,c.properties),d={...c,properties:u};return gN(e,d,r,s,a,i,l).map((e=>pN(t,e)))}))}(e,t,r,n,o,a,i,s,l)))}))}const $N={type:"object",$id:"_$junk_option_schema_id$_",properties:{__not_really_there__:{type:"number"}}};function _N(e,t,r,n,o){let a=0;return r&&(ef(r.properties)?a+=function(e,t,r){var n=Zf(e)?Nv:Qv,o=arguments.length<3;return n(e,Gv(t),r,o,Fv)}(r.properties,((r,a,i)=>{const s=Tm(n,i);if("boolean"==typeof a)return r;if(Ev(a,bd)){const n=mN(e,a,t,s,o);return r+_N(e,t,n,s||{},o)}if((Ev(a,hd)||Ev(a,ad))&&s){const n=Ev(a,hd)?hd:ad,i=cN(a);return r+kN(e,t,s,Tm(a,n),-1,i,o)}if("object"===a.type)return ef(s)&&(r+=1),r+_N(e,t,a,s,o);if(a.type===uN(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):Ov(r.type)&&r.type===uN(n)&&(a+=1)),a}function kN(e,t,r,n,o=-1,a,i){const s=n.map((e=>yN(e,t,[]))),l=fy(r,n,a);if(jv(l))return l;const c=s.reduce(((n,o,i)=>(1===my(e,r,[$N,o],t,a)&&n.push(i),n)),[]);if(1===c.length)return c[0];c.length||dy(s.length,(e=>c.push(e)));const u=new Set,{bestIndex:d}=c.reduce(((n,o)=>{const{bestScore:a}=n,l=s[o],c=_N(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 EN(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every((e=>ed(e)))}function CN(e){return null==e}function jN(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]?jN(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=Tm(t,i),l=ed(e)&&i in e,c=i in t;return a[i]=jN(e?Tm(e,i):{},s,r,n,o&&(l||!c)),a}),a)}return n&&(!CN(e)&&CN(t)||"number"==typeof t&&isNaN(t))||o&&!CN(t)?e:t}function PN(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]=PN(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 ON(e){return Array.isArray(e.enum)&&1===e.enum.length||id in e}function NN(e,t,r={},n){const o=mN(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&&ON(e)))}function AN(e,t,r,n){return!(!t.uniqueItems||!t.items||"boolean"==typeof t.items)&&NN(e,t.items,r,n)}function RN(e){const t=e[id],r=fN(e);return ed(t)&&Ov(null==t?void 0:t.$data)&&"object"!==r&&"array"!==r}function TN(e,t){const r=e;if(e.enum){let n;if(t){const{enumNames:e}=_d(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}=_d(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 IN=["string","number","integer","boolean","null"];var MN;function FN(e,t=MN.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!==MN.Ignore&&ed(e.additionalItems)?e.additionalItems:{}}function DN(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?Dm(r)||(e[t]=r):Dm(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 zN(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;let f=ed(o)?o:{};const p=ed(t)?t:{};let m=n,h=null,v=l,y=s;if(void 0===p[id]||"never"===(null==l?void 0:l.constAsDefaults)||RN(p))if(ed(m)&&ed(p.default))m=PN(m,p.default);else if(!(sd in p)||p[ad]||p[hd]){if(bd in p){const e=p[bd];s.includes(e)||(y=s.concat(e),h=xv(e,a)),h&&!m&&(m=p.default),d&&h&&!ed(o)&&(f=o)}else if(ld in p){const t={...LN(e,p,r,m),...f};h=bN(e,p,a,!1,[],t,c)[0]}else if(EN(p))m=p.items.map(((t,r)=>zN(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=cN(p),{type:i="null"}=r;!Array.isArray(i)&&IN.includes(i)&&"skipOneOf"===(null==v?void 0:v.constAsDefaults)&&(v={...v,constAsDefaults:"never"}),h=t[kN(e,a,null!=o?o:p.default,t,0,n,c)],h=pN(r,h)}else if(ad in p){const{anyOf:t,...r}=p;if(0===t.length)return;const n=cN(p);h=t[kN(e,a,null!=o?o:p.default,t,0,n,c)],h=pN(r,h)}}else m=p.default;else m=p[id];if(h)return zN(e,h,{rootSchema:a,includeUndefinedValues:i,_recurseList:y,experimental_defaultFormStateBehavior:v,experimental_customMergeAllOf:c,parentDefaults:m,rawFormData:null!=o?o:f,required:u,shouldMergeDefaultsIntoFormData:d});void 0===m&&(m=p.default);const g=LN(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,a){const i=!ON(t)&&NN(e,t,r,a);let s=n;if(i){const e=TN(t);s=(null==e?void 0:e.some((e=>fm(e.value,n))))?n:void 0}const l=t[id]&&"always"===(null==o?void 0:o.constAsDefaults);l&&(s=t.const);return s}(e,p,a,o,l,c);ed(o)&&!(od in p)||(b=jN(b,n,r,!0))}return b}function LN(e,t,r={},n){switch(fN(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?mN(e,f,n,d,s):f,m=p[id],h=Object.keys(p.properties||{}).reduce(((t,r)=>{var f;const h=Tm(p,[vd,r]),v=ed(m)&&void 0!==m[r],y=(ed(h)&&id in h||v)&&"never"!==(null==i?void 0:i.constAsDefaults)&&!RN(h);return DN(t,r,zN(e,h,{rootSchema:n,_recurseList:a,experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:s,includeUndefinedValues:!0===o,parentDefaults:Tm(u,[r]),rawFormData:Tm(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=zN(e,t,{rootSchema:n,_recurseList:a,experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:s,includeUndefinedValues:!0===o,parentDefaults:Tm(u,[r]),rawFormData:Tm(d,[r]),required:null===(m=p.required)||void 0===m?void 0:m.includes(r),shouldMergeDefaultsIntoFormData:c});DN(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=FN(f,MN.Fallback,r);return zN(e,c,{rootSchema:n,_recurseList:o,experimental_defaultFormStateBehavior:a,experimental_customMergeAllOf:i,parentDefaults:t,required:s,shouldMergeDefaultsIntoFormData:l})}))),Array.isArray(r)){const t=FN(f);if(v)c=r;else{const u=r.map(((r,u)=>zN(e,t,{rootSchema:n,_recurseList:o,experimental_defaultFormStateBehavior:a,experimental_customMergeAllOf:i,rawFormData:r,parentDefaults:Tm(c,[u]),required:s,shouldMergeDefaultsIntoFormData:l})));c=jN(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||AN(e,f,n,i)||b(e,f,n)||f.minItems<=S)return c||w;const x=c||[],$=FN(f,MN.Invert),_=$.default,k=new Array(f.minItems-S).fill(zN(e,$,{parentDefaults:_,rootSchema:n,_recurseList:o,experimental_defaultFormStateBehavior:a,experimental_customMergeAllOf:i,required:s,shouldMergeDefaultsIntoFormData:l}));return x.concat(k)}(e,t,r,n)}}function VN(e,t,r,n,o=!1,a,i){if(!ed(t))throw new Error("Invalid schema: "+t);const s=zN(e,mN(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 jN(s,r,!0,"useDefaultIfFormDataUndefined"===e,!0)}return s}function BN(e={}){return"widget"in _d(e)&&"hidden"!==_d(e).widget}function UN(e,t,r={},n,o){if("files"===r[xd])return!0;if(t.items){const r=mN(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"}(MN||(MN={}));const WN=Symbol("no Value");function qN(e,t,r,n,o={},a){let i;if(Ev(r,vd)){const s={};if(Ev(n,vd)){const e=Tm(n,vd,{});Object.keys(e).forEach((e=>{Ev(o,e)&&(s[e]=void 0)}))}const l=Object.keys(Tm(r,vd,{})),c={};l.forEach((i=>{const l=Tm(o,i);let u=Tm(n,[vd,i],{}),d=Tm(r,[vd,i],{});Ev(u,bd)&&(u=mN(e,u,t,l,a)),Ev(d,bd)&&(d=mN(e,d,t,l,a));const f=Tm(u,"type"),p=Tm(d,"type");if(!f||f===p)if(Ev(s,i)&&delete s[i],"object"===p||"array"===p&&Array.isArray(l)){const r=qN(e,t,d,u,l,a);void 0===r&&"array"!==p||(c[i]=r)}else{const e=Tm(d,"default",WN),t=Tm(u,"default",WN);e!==WN&&e!==l&&(t===l?s[i]=e:!0===Tm(d,"readOnly")&&(s[i]=void 0));const r=Tm(d,"const",WN),n=Tm(u,"const",WN);r!==WN&&r!==l&&(s[i]=n===l?r:void 0)}})),i={..."string"==typeof o||Array.isArray(o)?void 0:o,...s,...c}}else if("array"===Tm(n,"type")&&"array"===Tm(r,"type")&&Array.isArray(o)){let s=Tm(n,"items"),l=Tm(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{Ev(s,bd)&&(s=mN(e,s,t,o,a)),Ev(l,bd)&&(l=mN(e,l,t,o,a));const n=Tm(s,"type"),c=Tm(l,"type");if(!n||n===c){const n=Tm(r,"maxItems",-1);i="object"===c?o.reduce(((r,o)=>{const i=qN(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 KN(e,t,r,n,o,a,i,s=[],l){if(bd in t||ld in t||od in t){const c=mN(e,t,a,i,l);if(-1===s.findIndex((e=>fm(e,c))))return KN(e,c,r,n,o,a,i,s.concat(c),l)}if(pd in t&&!Tm(t,[pd,bd]))return KN(e,Tm(t,pd),r,n,o,a,i,s,l);const c={$id:o||r};if("object"===fN(t)&&vd in t)for(const o in t.properties){const u=Tm(t,[vd,o]),d=c[dd]+n+o;c[o]=KN(e,ed(u)?u:{},r,n,d,a,Tm(i,[o]),s,l)}return c}function HN(e,t,r,n,o,a="root",i="_",s){return KN(e,t,a,i,r,n,o,void 0,s)}function GN(e,t,r,n,o,a=[],i){if(bd in t||ld in t||od in t){const s=mN(e,t,n,o,i);if(-1===a.findIndex((e=>fm(e,s))))return GN(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=cN(t),u=l[kN(e,n,o,l,0,c,i)];s={...s,...GN(e,u,r,n,o,a,i)}}if(nd in t&&!1!==t[nd]&&vy(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]=GN(e,l[o],`${r}.${o}`,n,t,a,i):c?s[o]=GN(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]=GN(e,l,`${r}.${o}`,n,t,a,i)}))}else if(vd in t)for(const l in t.properties){const c=Tm(t,[vd,l]);s[l]=GN(e,c,`${r}.${l}`,n,Tm(o,[l]),a,i)}return s}function QN(e,t,r="",n,o,a){return GN(e,t,r,n,o,void 0,a)}class YN{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||!fm(this.rootSchema,t)||!fm(this.experimental_defaultFormStateBehavior,r)||this.experimental_customMergeAllOf!==n)}getDefaultFormState(e,t,r=!1){return VN(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=_d(r,o),{label:s=!0}=i;let l=!!s;const c=fN(t);return"array"===c&&(l=AN(e,t,n,a)||UN(e,t,r,n,a)||BN(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 kN(this.validator,this.rootSchema,e,t,r,n,this.experimental_customMergeAllOf)}getFirstMatchingOption(e,t,r){return my(this.validator,e,t,this.rootSchema,r)}getMatchingOption(e,t,r){return py(this.validator,e,t,this.rootSchema,r)}isFilesArray(e,t){return UN(this.validator,e,t,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(e){return AN(this.validator,e,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(e){return NN(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 Dm(o)||(i=PN(o,r,!0),a=[...n].concat(a)),{errorSchema:i,errors:a}}(this.validator,e,t)}retrieveSchema(e,t){return mN(this.validator,e,this.rootSchema,t,this.experimental_customMergeAllOf)}sanitizeDataForNewSchema(e,t,r){return qN(this.validator,this.rootSchema,e,t,r,this.experimental_customMergeAllOf)}toIdSchema(e,t,r,n="root",o="_"){return HN(this.validator,e,t,this.rootSchema,r,n,o,this.experimental_customMergeAllOf)}toPathSchema(e,t,r){return QN(this.validator,e,t,this.rootSchema,r,this.experimental_customMergeAllOf)}}function JN(e,t){let r=String(e);for(;r.length<t;)r="0"+r;return r}function XN(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 XN(t,e).reverse();const r=[];for(let n=e;n<=t;n++)r.push({value:n,label:JN(n,2)});return r}function ZN(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 eA(e,t=[],r){if(Array.isArray(e))return e.map((e=>eA(e,t))).filter((e=>e!==r));const n=""===e||null===e?-1:Number(e),o=t[n];return o?o.value:r}function tA(e,t,r=[]){const n=eA(e,r);return Array.isArray(t)?t.filter((e=>!fm(e,n))):fm(n,t)?void 0:t}function rA(e,t){return Array.isArray(t)?t.some((t=>fm(t,e))):fm(t,e)}function nA(e,t=[],r=!1){const n=t.map(((t,r)=>rA(t.value,e)?String(r):void 0)).filter((e=>void 0!==e));return r?n:n[0]}function oA(e,t,r=[]){const n=eA(e,r);if(!CN(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}function aA(e){return Xh(e,5)}class iA{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?Tm(this.errorSchema,e):this.errorSchema;var r,n,o,a;return!t&&e&&(t={},r=this.errorSchema,n=e,o=t,a="function"==typeof(a=Object)?a:void 0,null==r||hy(r,n,o,a)),t}resetAllErrors(e){return this.errorSchema=e?aA(e):{},this}addErrors(e,t){const r=this.getOrCreateErrorBlock(t);let n=Tm(r,ud);return Array.isArray(n)||(n=[],r[ud]=n),Array.isArray(e)?vy(r,ud,[...new Set([...n,...e])]):vy(r,ud,[...new Set([...n,e])]),this}setErrors(e,t){const r=this.getOrCreateErrorBlock(t),n=Array.isArray(e)?[...new Set([...e])]:[e];return vy(r,ud,n),this}clearErrors(e){return vy(this.getOrCreateErrorBlock(e),ud,[]),this}}function sA(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 lA(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 cA(e,t,r={},n=!0){const o={type:t||"text",...lA(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 uA={props:{disabled:!1},submitText:"Submit",norender:!1};function dA(e={}){const t=_d(e);if(t&&t[gd]){const e=t[gd];return{...uA,...e}}return uA}function fA(e,t,r={}){const{templates:n}=t;return"ButtonTemplates"===e?n[e]:r[e]||n[e]}var pA={exports:{}},mA={},hA=L,vA=Symbol.for("react.element"),yA=Symbol.for("react.fragment"),gA=Object.prototype.hasOwnProperty,bA=hA.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,wA={key:!0,ref:!0,__self:!0,__source:!0};function SA(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)gA.call(t,n)&&!wA.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:vA,type:e,key:a,ref:i,props:o,_owner:bA.current}}mA.Fragment=yA,mA.jsx=SA,mA.jsxs=SA,pA.exports=mA;var xA,$A=pA.exports,_A={exports:{}},kA={},EA=Symbol.for("react.element"),CA=Symbol.for("react.portal"),jA=Symbol.for("react.fragment"),PA=Symbol.for("react.strict_mode"),OA=Symbol.for("react.profiler"),NA=Symbol.for("react.provider"),AA=Symbol.for("react.context"),RA=Symbol.for("react.server_context"),TA=Symbol.for("react.forward_ref"),IA=Symbol.for("react.suspense"),MA=Symbol.for("react.suspense_list"),FA=Symbol.for("react.memo"),DA=Symbol.for("react.lazy"),zA=Symbol.for("react.offscreen");function LA(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case EA:switch(e=e.type){case jA:case OA:case PA:case IA:case MA:return e;default:switch(e=e&&e.$$typeof){case RA:case AA:case TA:case DA:case FA:case NA:return e;default:return t}}case CA:return t}}}xA=Symbol.for("react.module.reference"),kA.ContextConsumer=AA,kA.ContextProvider=NA,kA.Element=EA,kA.ForwardRef=TA,kA.Fragment=jA,kA.Lazy=DA,kA.Memo=FA,kA.Portal=CA,kA.Profiler=OA,kA.StrictMode=PA,kA.Suspense=IA,kA.SuspenseList=MA,kA.isAsyncMode=function(){return!1},kA.isConcurrentMode=function(){return!1},kA.isContextConsumer=function(e){return LA(e)===AA},kA.isContextProvider=function(e){return LA(e)===NA},kA.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===EA},kA.isForwardRef=function(e){return LA(e)===TA},kA.isFragment=function(e){return LA(e)===jA},kA.isLazy=function(e){return LA(e)===DA},kA.isMemo=function(e){return LA(e)===FA},kA.isPortal=function(e){return LA(e)===CA},kA.isProfiler=function(e){return LA(e)===OA},kA.isStrictMode=function(e){return LA(e)===PA},kA.isSuspense=function(e){return LA(e)===IA},kA.isSuspenseList=function(e){return LA(e)===MA},kA.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===jA||e===OA||e===PA||e===IA||e===MA||e===zA||"object"==typeof e&&null!==e&&(e.$$typeof===DA||e.$$typeof===FA||e.$$typeof===NA||e.$$typeof===AA||e.$$typeof===TA||e.$$typeof===xA||void 0!==e.getModuleId)},kA.typeOf=LA,_A.exports=kA;var VA=r(_A.exports);const BA={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 UA(e,t,r={}){const n=fN(e);if("function"==typeof t||t&&VA.isForwardRef(L.createElement(t))||VA.isMemo(t))return function(e){let t=Tm(e,"MergedWidget");if(!t){const r=e.defaultProps&&e.defaultProps.options||{};t=({options:t,...n})=>$A.jsx(e,{options:{...r,...t},...n}),vy(e,"MergedWidget",t)}return t}(t);if("string"!=typeof t)throw new Error("Unsupported widget definition: "+typeof t);if(t in r){return UA(e,r[t],r)}if("string"==typeof n){if(!(n in BA))throw new Error(`No widget for type '${n}'`);if(t in BA[n]){return UA(e,r[BA[n][t]],r)}}throw new Error(`No widget '${t}' for type '${n}'`)}function WA(e,t){return`${Ov(e)?e:e[dd]}__${t}`}function qA(e){return WA(e,"description")}function KA(e){return WA(e,"error")}function HA(e){return WA(e,"examples")}function GA(e){return WA(e,"help")}function QA(e){return WA(e,"title")}function YA(e,t=!1){const r=t?` ${HA(e)}`:"";return`${KA(e)} ${qA(e)} ${GA(e)}${r}`}function JA(e,t){return`${e}-${t}`}function XA(e,t,r){return t?r:e}function ZA(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 eR(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 eR(e.anyOf[0]);if(e.oneOf&&1===e.oneOf.length)return eR(e.oneOf[0]);if(e.allOf){const t=e=>eR(e);return e.allOf.some(t)}return!1}function tR(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 rR(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];Gd(o)&&(r=r.concat(rR(o,[...t,n])))}return r}),r)}function nR(e){return Zf(e)?_m(e,Am):mm(e)?[e]:lh($m(Pm(e)))}function oR(e){return Object.keys(e).reduce(((t,r)=>{if("addError"===r)return t;{const n=e[r];return Gd(n)?{...t,[r]:oR(n)}:{...t,[r]:n}}}),{})}function aR(e){if(!e)return"";const t=new Date(e);return`${JN(t.getFullYear(),4)}-${JN(t.getMonth()+1,2)}-${JN(t.getDate(),2)}T${JN(t.getHours(),2)}:${JN(t.getMinutes(),2)}:${JN(t.getSeconds(),2)}.${JN(t.getMilliseconds(),3)}`}function iR(e,t){if(!t)return e;const{errors:r,errorSchema:n}=e;let o=rR(t),a=t;return Dm(n)||(a=PN(n,t,!0),o=[...r].concat(o)),{errorSchema:a,errors:o}}function sR(e){return Array.isArray(e)?function(e){for(let t=0;t<e.length;t++)e[t]=sR(e[t]);return e}([...e]):ef(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]=sR(n)}return e}({...e}):e}function lR(e,t,r){for(var n=-1,o=t.length,a={};++n<o;){var i=t[n],s=Rm(e,i);r(s,i)&&hy(a,Om(i,e),s)}return a}var cR,uR=xy((function(e,t){return gy(e)?function(e,t,r,n){var o=-1,a=jy,i=!0,s=e.length,l=[],c=t.length;if(!s)return l;r&&(t=_m(t,$p(r))),n?(a=Py,i=!1):t.length>=200&&(a=Of,i=!1,t=new jf(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}(e,ov(t,1,gy,!0)):[]})),dR=uR;function fR(e,t){const r=Gd(e),n=Gd(t);if(e===t||!r&&!n)return[];if(r&&!n)return zp(e);if(!r&&n)return zp(t);return[...zp(function(e,t){if(null==e)return{};var r=_m(uh(e),(function(e){return[e]}));return t=Gv(t),lR(e,r,(function(e,r){return t(e,r[0])}))}(e,((e,r)=>!fm(e,Tm(t,r))))),...dR(zp(t),zp(e))]}!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)"}(cR||(cR={}));var pR,mR={exports:{}},hR={},vR={},yR={},gR={},bR={},wR={};function SR(){return pR||(pR=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())}}(wR)),wR}var xR,$R,_R={};function kR(){return xR||(xR=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=SR();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}}}(_R)),_R}function ER(){return $R||($R=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=SR(),r=kR();var n=SR();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=kR();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=P(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=P(this.rhs,e,r),this}get names(){return j(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=P(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=P(this.condition,e,t),this}get names(){const e=super.names;return j(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=P(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=j(super.names,this.from);return j(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=P(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 _ 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 k extends m{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}k.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 j(e,r){return r instanceof t._CodeOrName?C(e,r.names):e}function P(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 _;if(this._blockNode(n),this.code(e),t){const e=this.name("e");this._currNode=n.catch=new k(e),t(e)}return r&&(this._currNode=n.finally=new E,this.code(r)),this._endBlockNode(k,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 A=T(e.operators.AND);e.and=function(...e){return e.reduce(A)};const R=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(R)}}(bR)),bR}var CR={};!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=ER(),r=SR();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}(CR);var jR,PR,OR,NR={};function AR(){if(jR)return NR;jR=1,Object.defineProperty(NR,"__esModule",{value:!0});const e=ER(),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 NR.default=t,NR}function RR(){return PR||(PR=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=ER(),r=CR,n=AR();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]}}(gR)),gR}var TR={},IR={};Object.defineProperty(IR,"__esModule",{value:!0}),IR.getRules=IR.isJSONType=void 0;const MR=new Set(["string","number","integer","boolean","null","object","array"]);IR.isJSONType=function(e){return"string"==typeof e&&MR.has(e)},IR.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 FR,DR={};function zR(){if(FR)return DR;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 FR=1,Object.defineProperty(DR,"__esModule",{value:!0}),DR.shouldUseRule=DR.shouldUseGroup=DR.schemaHasRulesForType=void 0,DR.schemaHasRulesForType=function({schema:t,self:r},n){const o=r.RULES.types[n];return o&&!0!==o&&e(t,o)},DR.shouldUseGroup=e,DR.shouldUseRule=t,DR}!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=IR,r=zR(),n=RR(),o=ER(),a=CR;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"),ye=Symbol.for("react.portal"),ve=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"),_e=Symbol.for("react.suspense_list"),ke=Symbol.for("react.memo"),Ee=Symbol.for("react.lazy"),Ce=Symbol.for("react.offscreen"),je=Symbol.iterator;function Pe(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=je&&e[je]||e["@@iterator"])?e:null}var Oe,Ne=Object.assign;function Ae(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 Re=!1;function Te(e,t){if(!e||Re)return"";Re=!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{Re=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ae(e):""}function Ie(e){switch(e.tag){case 5:return Ae(e.type);case 16:return Ae("Lazy");case 13:return Ae("Suspense");case 19:return Ae("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 ve:return"Fragment";case ye:return"Portal";case be:return"Profiler";case ge:return"StrictMode";case $e:return"Suspense";case _e: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 ke: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,yt=null,vt=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){yt?vt?vt.push(e):vt=[e]:yt=e}function wt(){if(yt){var e=yt,t=vt;if(vt=yt=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 _t(e,t,r){if($t)return e(t,r);$t=!0;try{return St(e,t,r)}finally{$t=!1,(null!==yt||null!==vt)&&(xt(),wt())}}function kt(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(TU){Et=!1}function jt(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 Pt=!1,Ot=null,Nt=!1,At=null,Rt={onError:function(e){Pt=!0,Ot=e}};function Tt(e,t,r,n,o,a,i,s,l){Pt=!1,Ot=null,jt.apply(Rt,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,yr,vr,gr,br=!1,wr=[],Sr=null,xr=null,$r=null,_r=new Map,kr=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 jr(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":_r.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":kr.delete(t.pointerId)}}function Pr(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(){yr(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 Ar(e,t,r){Nr(e)&&r.delete(t)}function Rr(){br=!1,null!==Sr&&Nr(Sr)&&(Sr=null),null!==xr&&Nr(xr)&&(xr=null),null!==$r&&Nr($r)&&($r=null),_r.forEach(Ar),kr.forEach(Ar)}function Tr(e,t){e.blockedOn===t&&(e.blockedOn=null,br||(br=!0,X.unstable_scheduleCallback(X.unstable_NormalPriority,Rr)))}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),_r.forEach(t),kr.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),jr(e,n);else if(function(e,t,r,n,o){switch(t){case"focusin":return Sr=Pr(Sr,e,t,r,n,o),!0;case"dragenter":return xr=Pr(xr,e,t,r,n,o),!0;case"mouseover":return $r=Pr($r,e,t,r,n,o),!0;case"pointerover":var a=o.pointerId;return _r.set(a,Pr(_r.get(a)||null,e,t,r,n,o)),!0;case"gotpointercapture":return a=o.pointerId,kr.set(a,Pr(kr.get(a)||null,e,t,r,n,o)),!0}return!1}(o,e,t,r,n))n.stopPropagation();else if(jr(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"},yn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=yn[e])&&!!t[e]}function gn(){return vn}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})),_n=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}),kn=Jr(_n),En=[9,13,27,32],Cn=oe&&"CompositionEvent"in window,jn=null;oe&&"documentMode"in document&&(jn=document.documentMode);var Pn=oe&&"TextEvent"in window&&!jn,On=oe&&(!Cn||jn&&8<jn&&11>=jn),Nn=String.fromCharCode(32),An=!1;function Rn(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){Ao(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)),_t(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 yo={animationend:ho("Animation","AnimationEnd"),animationiteration:ho("Animation","AnimationIteration"),animationstart:ho("Animation","AnimationStart"),transitionend:ho("Transition","TransitionEnd")},vo={},go={};function bo(e){if(vo[e])return vo[e];if(!yo[e])return e;var t,r=yo[e];for(t in r)if(r.hasOwnProperty(t)&&t in go)return vo[e]=r[t];return e}oe&&(go=document.createElement("div").style,"AnimationEvent"in window||(delete yo.animationend.animation,delete yo.animationiteration.animation,delete yo.animationstart.animation),"TransitionEvent"in window||delete yo.transitionend.transition);var wo=bo("animationend"),So=bo("animationiteration"),xo=bo("animationstart"),$o=bo("transitionend"),_o=new Map,ko="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){_o.set(e,t),re(t,[e])}for(var Co=0;Co<ko.length;Co++){var jo=ko[Co];Eo(jo.toLowerCase(),"on"+(jo[0].toUpperCase()+jo.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 Po="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(Po));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),Pt){if(!Pt)throw Error(Z(198));var c=Ot;Pt=!1,Ot=null,Nt||(Nt=!0,At=c)}}(n,t,void 0,e),e.currentTarget=null}function Ao(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=At,Nt=!1,At=null,e}function Ro(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}_t((function(){var n=a,o=mt(r),i=[];e:{var s=_o.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=kn;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=kt(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 y=Un;else if(Fn(s))if(Wn)y=Zn;else{y=Jn;var v=Yn}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(y=Xn);switch(y&&(y=y(e,n))?Dn(i,y,r,o):(v&&v(e,s,n),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&Ge(s,"number",s.value)),v=n?ma(n):window,e){case"focusin":(Fn(v)||"true"===v.contentEditable)&&(co=v,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?Rn(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<(v=Lo(n,b)).length&&(b=new pn(b,e,null,r,o),i.push({event:b,listeners:v}),g?b.data=g:null!==(g=Tn(r))&&(b.data=g))),(g=Pn?function(e,t){switch(e){case"compositionend":return Tn(t);case"keypress":return 32!==t.which?null:(An=!0,Nn);case"textInput":return(e=t.data)===Nn&&An?null:e;default:return null}}(e,r):function(e,t){if(In)return"compositionend"===e||!Cn&&Rn(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))}Ao(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=kt(e,r))&&n.unshift(zo(e,a,o)),null!=(a=kt(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=kt(r,a))&&i.unshift(zo(r,l,s)):o||null!=(l=kt(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 ya=[],va=-1;function ga(e){return{current:e}}function ba(e){0>va||(e.current=ya[va],ya[va]=null,va--)}function wa(e,t){va++,ya[va]=e.current,e.current=t}var Sa={},xa=ga(Sa),$a=ga(!1),_a=Sa;function ka(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 ja(e,t,r){if(xa.current!==Sa)throw Error(Z(168));wa(xa,t),wa($a,r)}function Pa(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,_a=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=Pa(e,t,_a),n.__reactInternalMemoizedMergedChildContext=e,ba($a),ba(xa),wa(xa,e)):ba($a),wa($a,r)}var Aa=null,Ra=!1,Ta=!1;function Ia(e){null===Aa?Aa=[e]:Aa.push(e)}function Ma(){if(!Ta&&null!==Aa){Ta=!0;var e=0,t=fr;try{var r=Aa;for(fr=1;e<r.length;e++){var n=r[e];do{n=n(!0)}while(null!==n)}Aa=null,Ra=!1}catch(t){throw null!==Aa&&(Aa=Aa.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=_u(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=_u(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===ve?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=ju(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 ye:return(t=Nu(t,e.mode,r)).return=e,t;case Ee:return d(e,(0,t._init)(t._payload),r)}if(Qe(t)||Pe(t))return(t=ju(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 ye: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)||Pe(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 ye: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)||Pe(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,y=null;null!==m&&h<s.length;h++){m.index>h?(y=m,m=null):y=m.sibling;var v=f(o,m,s[h],l);if(null===v){null===m&&(m=y);break}e&&m&&null===v.alternate&&t(o,m),i=a(v,i,h),null===u?c=v:u.sibling=v,u=v,m=y}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!==(y=p(m,o,h,s[h],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}function h(o,i,s,l){var c=Pe(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,y=null,v=s.next();null!==m&&!v.done;h++,v=s.next()){m.index>h?(y=m,m=null):y=m.sibling;var g=f(o,m,v.value,l);if(null===g){null===m&&(m=y);break}e&&m&&null===g.alternate&&t(o,m),i=a(g,i,h),null===u?c=g:u.sibling=g,u=g,m=y}if(v.done)return r(o,m),Xa&&Ka(o,h),c;if(null===m){for(;!v.done;h++,v=s.next())null!==(v=d(o,v.value,l))&&(i=a(v,i,h),null===u?c=v:u.sibling=v,u=v);return Xa&&Ka(o,h),c}for(m=n(o,m);!v.done;h++,v=s.next())null!==(v=p(m,o,h,v.value,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}return function e(n,a,s,l){if("object"==typeof s&&null!==s&&s.type===ve&&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)===ve){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===ve?((a=ju(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 ye: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(Pe(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),yi=ga(null),vi=null,gi=null,bi=null;function wi(){bi=gi=vi=null}function Si(e){var t=yi.current;ba(yi),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){vi=e,bi=gi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(fl=!0),e.firstContext=null)}function _i(e){var t=e._currentValue;if(bi!==e)if(e={context:e,memoizedValue:t,next:null},null===gi){if(null===vi)throw Error(Z(308));gi=e,vi.dependencies={lanes:0,firstContext:e}}else gi=gi.next=e;return t}var ki=null;function Ei(e){null===ki?ki=[e]:ki.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,ji(e,n)}function ji(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 Pi=!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 Ai(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ri(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,ji(e,r)}return null===(o=n.interleaved)?(t.next=t,Ei(n)):(t.next=o.next,o.next=t),n.interleaved=t,ji(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;Pi=!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:Pi=!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);Pc|=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,Pc|=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,Pc|=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 ys(){}function vs(e,t){var r=es,n=fs(),o=t(),a=!eo(n.memoizedState,o);if(a&&(n.memoizedState=o,fl=!0),n=n.queue,Ps(ws.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||null!==rs&&1&rs.memoizedState.tag){if(r.flags|=2048,_s(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=ji(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 _s(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 ks(){return fs().memoizedState}function Es(e,t,r,n){var o=ds();es.flags|=e,o.memoizedState=_s(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=_s(t,r,a,n))}es.flags|=e,o.memoizedState=_s(1|t,r,a,n)}function js(e,t){return Es(8390656,8,e,t)}function Ps(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 As(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 Rs(e,t,r){return r=null!=r?r.concat([e]):null,Cs(4,4,As.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,Pc|=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:_i,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:_i,useCallback:function(e,t){return ds().memoizedState=[e,void 0===t?null:t],e},useContext:_i,useEffect:js,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,Es(4194308,4,As.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,js(ws.bind(null,n,a,e),[e]),n.flags|=2048,_s(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:_i,useCallback:Is,useContext:_i,useEffect:Ps,useImperativeHandle:Rs,useInsertionEffect:Os,useLayoutEffect:Ns,useMemo:Ms,useReducer:ms,useRef:ks,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:ys,useSyncExternalStore:vs,useId:zs,unstable_isNewReconciler:!1},Gs={readContext:_i,useCallback:Is,useContext:_i,useEffect:Ps,useImperativeHandle:Rs,useInsertionEffect:Os,useLayoutEffect:Ns,useMemo:Ms,useReducer:hs,useRef:ks,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:ys,useSyncExternalStore:vs,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=Ai(n,o);a.payload=t,null!=r&&(a.callback=r),null!==(t=Ri(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=Ai(n,o);a.tag=1,a.payload=t,null!=r&&(a.callback=r),null!==(t=Ri(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=Ai(r,n);o.tag=2,null!=t&&(o.callback=t),null!==(t=Ri(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=_i(a):(o=Ea(t)?_a:xa.current,a=(n=null!=(n=t.contextTypes))?ka(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=_i(a):(a=Ea(t)?_a:xa.current,o.context=ka(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=Ai(-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=Ai(-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=Ai(-1,1)).tag=2,Ri(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||ku(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,yl(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 yl(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 vl(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,kc),kc|=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,kc),kc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==a?a.baseLanes:r,wa(Ec,kc),kc|=n}else null!==a?(n=a.baseLanes|r,t.memoizedState=null):n=r,wa(Ec,kc),kc|=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)?_a:xa.current;return a=ka(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=_i(c):c=ka(t,c=Ea(r)?_a: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),Pi=!1;var f=t.memoizedState;i.state=f,Mi(t,n,i,o),l=t.memoizedState,s!==n||f!==l||$a.current||Pi?("function"==typeof u&&(Ys(t,r,u,n),l=t.memoizedState),(s=Pi||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=_i(l):l=ka(t,l=Ea(r)?_a: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),Pi=!1,f=t.memoizedState,i.state=f,Mi(t,n,i,o);var m=t.memoizedState;s!==d||f!==m||$a.current||Pi?("function"==typeof p&&(Ys(t,r,p,n),m=t.memoizedState),(c=Pi||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?ja(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ja(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 _l,kl,El,Cl,jl={dehydrated:null,treeContext:null,retryLane:0};function Pl(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=Pu(s,o,0,null),e=ju(e,o,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Pl(r),t.memoizedState=jl,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,Al(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=Pu({mode:"visible",children:n.children},o,0,null),(a=ju(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=Pl(i),t.memoizedState=jl,a);if(0==(1&t.mode))return Al(e,t,i,null);if("$!"===o.data){if(n=o.nextSibling&&o.nextSibling.dataset)var s=n.dgst;return n=s,Al(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,ji(e,o),Qc(n,e,o,-1))}return lu(),Al(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=ju(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)?Pl(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~r,t.memoizedState=jl,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=Pu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Al(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 Rl(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&&Rl(e,r,t);else if(19===e.tag)Rl(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),Pc|=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))),kl(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":Ro("cancel",n),Ro("close",n);break;case"iframe":case"object":case"embed":Ro("load",n);break;case"video":case"audio":for(o=0;o<Po.length;o++)Ro(Po[o],n);break;case"source":Ro("error",n);break;case"img":case"image":case"link":Ro("error",n),Ro("load",n);break;case"details":Ro("toggle",n);break;case"input":We(n,a),Ro("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Ro("invalid",n);break;case"textarea":Xe(n,a),Ro("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&&Ro("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,_l(e,t,!1,!1),t.stateNode=e;e:{switch(i=ft(r,n),r){case"dialog":Ro("cancel",e),Ro("close",e),o=n;break;case"iframe":case"object":case"embed":Ro("load",e),o=n;break;case"video":case"audio":for(o=0;o<Po.length;o++)Ro(Po[o],e);o=n;break;case"source":Ro("error",e),o=n;break;case"img":case"image":case"link":Ro("error",e),Ro("load",e),o=n;break;case"details":Ro("toggle",e),o=n;break;case"input":We(e,n),o=Ue(e,n),Ro("invalid",e);break;case"option":default:o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=Ne({},n,{value:void 0}),Ro("invalid",e);break;case"textarea":Xe(e,n),o=Je(e,n),Ro("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&&Ro("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(),kl(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&kc)&&(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}}_l=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}},kl=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&&Ro("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){vu(e,t,r)}else r.current=null}function Hl(e,t,r){try{r()}catch(r){vu(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){vu(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){vu(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){vu(e,e.return,t)}try{Ql(5,e,e.return)}catch(t){vu(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){vu(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){vu(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){vu(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){vu(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){vu(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){vu(e,e.return,t)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){vu(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){vu(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){vu(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){vu(t,r,e)}break;case 1:var n=t.stateNode;if("function"==typeof n.componentDidMount){var o=t.return;try{n.componentDidMount()}catch(e){vu(t,o,e)}}var a=t.return;try{Jl(t)}catch(e){vu(t,a,e)}break;case 5:var i=t.return;try{Jl(t)}catch(e){vu(t,i,e)}}}catch(e){vu(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 yc,vc=Math.ceil,gc=me.ReactCurrentDispatcher,bc=me.ReactCurrentOwner,wc=me.ReactCurrentBatchConfig,Sc=0,xc=null,$c=null,_c=0,kc=0,Ec=ga(0),Cc=0,jc=null,Pc=0,Oc=0,Nc=0,Ac=null,Rc=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!==_c?_c&-_c: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,_c)),Yc(e,n),1===r&&0===Sc&&0==(1&t.mode)&&(Ic=Wt()+500,Ra&&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?_c: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){Ra=!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?_c: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&&_c===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,_c=0,t=Cc)}if(0!==t){if(2===t&&(0!==(o=sr(e))&&(n=o,t=Xc(e,o))),1===t)throw r=jc,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=jc,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,Rc,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,Rc,Mc),t);break}mu(e,Rc,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*vc(n/1960))-n)){e.timeoutHandle=Jo(mu.bind(null,e,Rc,Mc),n);break}mu(e,Rc,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=Ac;return e.current.memoizedState.isDehydrated&&(au(e,t).flags|=256),2!==(e=cu(e,t))&&(t=Rc,Rc=r,null!==t&&Zc(t)),e}function Zc(e){null===Rc?Rc=e:Rc.push.apply(Rc,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=jc,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,Rc,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,Ra&&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(){kc=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),_c=kc=t,Cc=0,jc=null,Nc=Oc=Pc=0,Rc=Ac=null,null!==ki){for(t=0;t<ki.length;t++)if(null!==(n=(r=ki[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}ki=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,jc=t,$c=null;break}e:{var a=e,i=r.return,s=r,l=t;if(t=_c,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 y=cl(i);if(null!==y){0==(65536&y.flags)&&(y.flags|=256),ul(y,i,s,0,t),li(rl(l,s));break e}}a=l=rl(l,s),4!==Cc&&(Cc=2),null===Ac?Ac=[a]:Ac.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 v=a.type,g=a.stateNode;if(0==(128&a.flags)&&("function"==typeof v.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&Pc)&&0==(268435455&Oc)||eu(xc,_c)}function cu(e,t){var r=Sc;Sc|=2;var n=su();for(xc===e&&_c===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,_c=0,Cc}function uu(){for(;null!==$c;)fu($c)}function du(){for(;null!==$c&&!Bt();)fu($c)}function fu(e){var t=yc(e.alternate,e,kc);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,kc)))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,_c=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,y=m.memoizedState,v=t.stateNode,g=v.getSnapshotBeforeUpdate(t.elementType===t.type?h:Qs(t.type,h),y);v.__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){vu(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 y=h.sibling;h.sibling=null,h=y}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 v=a.sibling;if(null!==v){v.return=a.return,ql=v;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){vu(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 yu(e,t,r){e=Ri(e,t=il(0,t=rl(r,t),1),1),t=Hc(),null!==e&&(ur(e,1,t),Yc(e,t))}function vu(e,t,r){if(3===e.tag)yu(e,e,r);else for(;null!==t;){if(3===t.tag){yu(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=Ri(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&&(_c&r)===r&&(4===Cc||3===Cc&&(130023424&_c)===_c&&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=ji(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 _u(e,t,r,n){return new $u(e,t,r,n)}function ku(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Eu(e,t){var r=e.alternate;return null===r?((r=_u(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)ku(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case ve:return ju(r.children,o,a,t);case ge:i=8,o|=8;break;case be:return(e=_u(12,r,t,2|o)).elementType=be,e.lanes=a,e;case $e:return(e=_u(13,r,t,o)).elementType=$e,e.lanes=a,e;case _e:return(e=_u(19,r,t,o)).elementType=_e,e.lanes=a,e;case Ce:return Pu(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 ke:i=14;break e;case Ee:i=16,n=null;break e}throw Error(Z(130,null==e?e:typeof e,""))}return(t=_u(i,r,t,o)).elementType=e,t.type=n,t.lanes=a,t}function ju(e,t,r,n){return(e=_u(7,e,n,t)).lanes=r,e}function Pu(e,t,r,n){return(e=_u(22,e,n,t)).elementType=Ce,e.lanes=r,e.stateNode={isHidden:!1},e}function Ou(e,t,r){return(e=_u(6,e,null,t)).lanes=r,e}function Nu(e,t,r){return(t=_u(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Au(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 Ru(e,t,r,n,o,a,i,s,l){return e=new Au(e,t,r,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=_u(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 Pa(e,r,t)}return t}function Iu(e,t,r,n,o,a,i,s,l){return(e=Ru(r,n,!0,e,0,a,0,s,l)).context=Tu(null),r=e.current,(a=Ai(n=Hc(),o=Gc(r))).callback=null!=t?t:null,Ri(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=Ai(a,i)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=Ri(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)}yc=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(yi,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,vl(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=ka(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 ku(e)?1:0;if(null!=e){if((e=e.$$typeof)===xe)return 11;if(e===ke)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(yi,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=Ai(-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=_i(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 yl(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 vl(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=Ru(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=vr();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=ji(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=ji(e,134217728);if(null!==t)Qc(t,e,134217728,Hc());zu(e,134217728)}},yr=function(e){if(13===e.tag){var t=Gc(e),r=ji(e,t);if(null!==r)Qc(r,e,t,Hc());zu(e,t)}},vr=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(TU){}}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:ye,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=Ru(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",yd="properties",vd="required",gd="submitButtonOptions",bd="$ref",wd="__rjsf_additionalProperties",Sd="__rjsf_rootSchema",xd="ui:widget",$d="ui:options";function _d(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 kd(e,t={},r){if(!e.additionalProperties)return!1;const{expandable:n=!0}=_d(t);return!1===n?n:void 0===e.maxProperties||!r||Object.keys(r).length<e.maxProperties}var Ed="object"==typeof global&&global&&global.Object===Object&&global,Cd="object"==typeof self&&self&&self.Object===Object&&self,jd=Ed||Cd||Function("return this")(),Pd=jd.Symbol,Od=Object.prototype,Nd=Od.hasOwnProperty,Ad=Od.toString,Rd=Pd?Pd.toStringTag:void 0;var Td=Object.prototype.toString;var Id="[object Null]",Md="[object Undefined]",Fd=Pd?Pd.toStringTag:void 0;function Dd(e){return null==e?void 0===e?Md:Id:Fd&&Fd in Object(e)?function(e){var t=Nd.call(e,Rd),r=e[Rd];try{e[Rd]=void 0;var n=!0}catch(e){}var o=Ad.call(e);return n&&(t?e[Rd]=r:delete e[Rd]),o}(e):function(e){return Td.call(e)}(e)}function zd(e,t){return function(r){return e(t(r))}}var Ld=zd(Object.getPrototypeOf,Object);function Vd(e){return null!=e&&"object"==typeof e}var Bd="[object Object]",Ud=Function.prototype,Wd=Object.prototype,qd=Ud.toString,Kd=Wd.hasOwnProperty,Hd=qd.call(Object);function Gd(e){if(!Vd(e)||Dd(e)!=Bd)return!1;var t=Ld(e);if(null===t)return!0;var r=Kd.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&qd.call(r)==Hd}function Qd(e){const t={[ud]:[],addError(e){this[ud].push(e)}};if(Array.isArray(e))return e.reduce(((e,t,r)=>({...e,[r]:Qd(t)})),t);if(Gd(e)){const r=e;return Object.keys(r).reduce(((e,t)=>({...e,[t]:Qd(r[t])})),t)}return t}function Yd(e,t){return e===t||e!=e&&t!=t}function Jd(e,t){for(var r=e.length;r--;)if(Yd(e[r][0],t))return r;return-1}var Xd=Array.prototype.splice;function Zd(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])}}function ef(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}Zd.prototype.clear=function(){this.__data__=[],this.size=0},Zd.prototype.delete=function(e){var t=this.__data__,r=Jd(t,e);return!(r<0)&&(r==t.length-1?t.pop():Xd.call(t,r,1),--this.size,!0)},Zd.prototype.get=function(e){var t=this.__data__,r=Jd(t,e);return r<0?void 0:t[r][1]},Zd.prototype.has=function(e){return Jd(this.__data__,e)>-1},Zd.prototype.set=function(e,t){var r=this.__data__,n=Jd(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var tf="[object AsyncFunction]",rf="[object Function]",nf="[object GeneratorFunction]",of="[object Proxy]";function af(e){if(!ef(e))return!1;var t=Dd(e);return t==rf||t==nf||t==tf||t==of}var sf,lf=jd["__core-js_shared__"],cf=(sf=/[^.]+$/.exec(lf&&lf.keys&&lf.keys.IE_PROTO||""))?"Symbol(src)_1."+sf:"";var uf=Function.prototype.toString;function df(e){if(null!=e){try{return uf.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var ff=/^\[object .+?Constructor\]$/,pf=Function.prototype,mf=Object.prototype,hf=pf.toString,yf=mf.hasOwnProperty,vf=RegExp("^"+hf.call(yf).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function gf(e){return!(!ef(e)||(t=e,cf&&cf in t))&&(af(e)?vf:ff).test(df(e));var t}function bf(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return gf(r)?r:void 0}var wf=bf(jd,"Map"),Sf=bf(Object,"create");var xf=Object.prototype.hasOwnProperty;var $f=Object.prototype.hasOwnProperty;function _f(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])}}function kf(e,t){var r=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?r["string"==typeof t?"string":"hash"]:r.map}function Ef(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])}}_f.prototype.clear=function(){this.__data__=Sf?Sf(null):{},this.size=0},_f.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},_f.prototype.get=function(e){var t=this.__data__;if(Sf){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return xf.call(t,e)?t[e]:void 0},_f.prototype.has=function(e){var t=this.__data__;return Sf?void 0!==t[e]:$f.call(t,e)},_f.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Sf&&void 0===t?"__lodash_hash_undefined__":t,this},Ef.prototype.clear=function(){this.size=0,this.__data__={hash:new _f,map:new(wf||Zd),string:new _f}},Ef.prototype.delete=function(e){var t=kf(this,e).delete(e);return this.size-=t?1:0,t},Ef.prototype.get=function(e){return kf(this,e).get(e)},Ef.prototype.has=function(e){return kf(this,e).has(e)},Ef.prototype.set=function(e,t){var r=kf(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function Cf(e){var t=this.__data__=new Zd(e);this.size=t.size}Cf.prototype.clear=function(){this.__data__=new Zd,this.size=0},Cf.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Cf.prototype.get=function(e){return this.__data__.get(e)},Cf.prototype.has=function(e){return this.__data__.has(e)},Cf.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Zd){var n=r.__data__;if(!wf||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ef(n)}return r.set(e,t),this.size=r.size,this};function jf(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Ef;++t<r;)this.add(e[t])}function Pf(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function Of(e,t){return e.has(t)}jf.prototype.add=jf.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},jf.prototype.has=function(e){return this.__data__.has(e)};var Nf=1,Af=2;function Rf(e,t,r,n,o,a){var i=r&Nf,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=r&Af?new jf:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(n)var y=i?n(h,m,d,t,e,a):n(m,h,d,e,t,a);if(void 0!==y){if(y)continue;f=!1;break}if(p){if(!Pf(t,(function(e,t){if(!Of(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 Tf=jd.Uint8Array;function If(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function Mf(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}var Ff=1,Df=2,zf="[object Boolean]",Lf="[object Date]",Vf="[object Error]",Bf="[object Map]",Uf="[object Number]",Wf="[object RegExp]",qf="[object Set]",Kf="[object String]",Hf="[object Symbol]",Gf="[object ArrayBuffer]",Qf="[object DataView]",Yf=Pd?Pd.prototype:void 0,Jf=Yf?Yf.valueOf:void 0;function Xf(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var Zf=Array.isArray;function ep(e,t,r){var n=t(e);return Zf(e)?n:Xf(n,r(e))}function tp(){return[]}var rp=Object.prototype.propertyIsEnumerable,np=Object.getOwnPropertySymbols,op=np?function(e){return null==e?[]:(e=Object(e),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}(np(e),(function(t){return rp.call(e,t)})))}:tp,ap=op;function ip(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function sp(e){return Vd(e)&&"[object Arguments]"==Dd(e)}var lp=Object.prototype,cp=lp.hasOwnProperty,up=lp.propertyIsEnumerable,dp=sp(function(){return arguments}())?sp:function(e){return Vd(e)&&cp.call(e,"callee")&&!up.call(e,"callee")},fp=dp;var pp="object"==typeof exports&&exports&&!exports.nodeType&&exports,mp=pp&&"object"==typeof module&&module&&!module.nodeType&&module,hp=mp&&mp.exports===pp?jd.Buffer:void 0,yp=(hp?hp.isBuffer:void 0)||function(){return!1},vp=9007199254740991,gp=/^(?:0|[1-9]\d*)$/;function bp(e,t){var r=typeof e;return!!(t=null==t?vp:t)&&("number"==r||"symbol"!=r&&gp.test(e))&&e>-1&&e%1==0&&e<t}var wp=9007199254740991;function Sp(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=wp}var xp={};function $p(e){return function(t){return e(t)}}xp["[object Float32Array]"]=xp["[object Float64Array]"]=xp["[object Int8Array]"]=xp["[object Int16Array]"]=xp["[object Int32Array]"]=xp["[object Uint8Array]"]=xp["[object Uint8ClampedArray]"]=xp["[object Uint16Array]"]=xp["[object Uint32Array]"]=!0,xp["[object Arguments]"]=xp["[object Array]"]=xp["[object ArrayBuffer]"]=xp["[object Boolean]"]=xp["[object DataView]"]=xp["[object Date]"]=xp["[object Error]"]=xp["[object Function]"]=xp["[object Map]"]=xp["[object Number]"]=xp["[object Object]"]=xp["[object RegExp]"]=xp["[object Set]"]=xp["[object String]"]=xp["[object WeakMap]"]=!1;var _p="object"==typeof exports&&exports&&!exports.nodeType&&exports,kp=_p&&"object"==typeof module&&module&&!module.nodeType&&module,Ep=kp&&kp.exports===_p&&Ed.process,Cp=function(){try{var e=kp&&kp.require&&kp.require("util").types;return e||Ep&&Ep.binding&&Ep.binding("util")}catch(e){}}(),jp=Cp,Pp=jp&&jp.isTypedArray,Op=Pp?$p(Pp):function(e){return Vd(e)&&Sp(e.length)&&!!xp[Dd(e)]},Np=Object.prototype.hasOwnProperty;function Ap(e,t){var r=Zf(e),n=!r&&fp(e),o=!r&&!n&&yp(e),a=!r&&!n&&!o&&Op(e),i=r||n||o||a,s=i?ip(e.length,String):[],l=s.length;for(var c in e)!t&&!Np.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||bp(c,l))||s.push(c);return s}var Rp=Object.prototype;function Tp(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Rp)}var Ip=zd(Object.keys,Object),Mp=Object.prototype.hasOwnProperty;function Fp(e){if(!Tp(e))return Ip(e);var t=[];for(var r in Object(e))Mp.call(e,r)&&"constructor"!=r&&t.push(r);return t}function Dp(e){return null!=e&&Sp(e.length)&&!af(e)}function zp(e){return Dp(e)?Ap(e):Fp(e)}function Lp(e){return ep(e,zp,ap)}var Vp=1,Bp=Object.prototype.hasOwnProperty;var Up=bf(jd,"DataView"),Wp=bf(jd,"Promise"),qp=bf(jd,"Set"),Kp=bf(jd,"WeakMap"),Hp="[object Map]",Gp="[object Promise]",Qp="[object Set]",Yp="[object WeakMap]",Jp="[object DataView]",Xp=df(Up),Zp=df(wf),em=df(Wp),tm=df(qp),rm=df(Kp),nm=Dd;(Up&&nm(new Up(new ArrayBuffer(1)))!=Jp||wf&&nm(new wf)!=Hp||Wp&&nm(Wp.resolve())!=Gp||qp&&nm(new qp)!=Qp||Kp&&nm(new Kp)!=Yp)&&(nm=function(e){var t=Dd(e),r="[object Object]"==t?e.constructor:void 0,n=r?df(r):"";if(n)switch(n){case Xp:return Jp;case Zp:return Hp;case em:return Gp;case tm:return Qp;case rm:return Yp}return t});var om=nm,am=1,im="[object Arguments]",sm="[object Array]",lm="[object Object]",cm=Object.prototype.hasOwnProperty;function um(e,t,r,n,o,a){var i=Zf(e),s=Zf(t),l=i?sm:om(e),c=s?sm:om(t),u=(l=l==im?lm:l)==lm,d=(c=c==im?lm:c)==lm,f=l==c;if(f&&yp(e)){if(!yp(t))return!1;i=!0,u=!1}if(f&&!u)return a||(a=new Cf),i||Op(e)?Rf(e,t,r,n,o,a):function(e,t,r,n,o,a,i){switch(r){case Qf:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Gf:return!(e.byteLength!=t.byteLength||!a(new Tf(e),new Tf(t)));case zf:case Lf:case Uf:return Yd(+e,+t);case Vf:return e.name==t.name&&e.message==t.message;case Wf:case Kf:return e==t+"";case Bf:var s=If;case qf:var l=n&Ff;if(s||(s=Mf),e.size!=t.size&&!l)return!1;var c=i.get(e);if(c)return c==t;n|=Df,i.set(e,t);var u=Rf(s(e),s(t),n,o,a,i);return i.delete(e),u;case Hf:if(Jf)return Jf.call(e)==Jf.call(t)}return!1}(e,t,l,r,n,o,a);if(!(r&am)){var p=u&&cm.call(e,"__wrapped__"),m=d&&cm.call(t,"__wrapped__");if(p||m){var h=p?e.value():e,y=m?t.value():t;return a||(a=new Cf),o(h,y,r,n,a)}}return!!f&&(a||(a=new Cf),function(e,t,r,n,o,a){var i=r&Vp,s=Lp(e),l=s.length;if(l!=Lp(t).length&&!i)return!1;for(var c=l;c--;){var u=s[c];if(!(i?u in t:Bp.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]],y=t[u];if(n)var v=i?n(y,h,u,t,e,a):n(h,y,u,e,t,a);if(!(void 0===v?h===y||o(h,y,r,n,a):v)){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}(e,t,r,n,o,a))}function dm(e,t,r,n,o){return e===t||(null==e||null==t||!Vd(e)&&!Vd(t)?e!=e&&t!=t:um(e,t,r,n,dm,o))}function fm(e,t){return r=e,n=t,o=(e,t)=>{if("function"==typeof e&&"function"==typeof t)return!0},void 0===(a=(o="function"==typeof o?o:void 0)?o(r,n):void 0)?dm(r,n,void 0,o):!!a;var r,n,o,a}var pm="[object Symbol]";function mm(e){return"symbol"==typeof e||Vd(e)&&Dd(e)==pm}var hm=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ym=/^\w*$/;function vm(e,t){if(Zf(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!mm(e))||(ym.test(e)||!hm.test(e)||null!=t&&e in Object(t))}var gm="Expected a function";function bm(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(gm);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(bm.Cache||Ef),r}bm.Cache=Ef;var wm,Sm,xm,$m=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_m=/\\(\\)?/g,km=(wm=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace($m,(function(e,r,n,o){t.push(n?o.replace(_m,"$1"):r||e)})),t},Sm=bm(wm,(function(e){return 500===xm.size&&xm.clear(),e})),xm=Sm.cache,Sm),Em=km;function Cm(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}var jm=1/0,Pm=Pd?Pd.prototype:void 0,Om=Pm?Pm.toString:void 0;function Nm(e){if("string"==typeof e)return e;if(Zf(e))return Cm(e,Nm)+"";if(mm(e))return Om?Om.call(e):"";var t=e+"";return"0"==t&&1/e==-jm?"-0":t}function Am(e){return null==e?"":Nm(e)}function Rm(e,t){return Zf(e)?e:vm(e,t)?[e]:Em(Am(e))}var Tm=1/0;function Im(e){if("string"==typeof e||mm(e))return e;var t=e+"";return"0"==t&&1/e==-Tm?"-0":t}function Mm(e,t){for(var r=0,n=(t=Rm(t,e)).length;null!=e&&r<n;)e=e[Im(t[r++])];return r&&r==n?e:void 0}function Fm(e,t,r){var n=null==e?void 0:Mm(e,t);return void 0===n?r:n}var Dm="[object Map]",zm="[object Set]",Lm=Object.prototype.hasOwnProperty;function Vm(e){if(null==e)return!0;if(Dp(e)&&(Zf(e)||"string"==typeof e||"function"==typeof e.splice||yp(e)||Op(e)||fp(e)))return!e.length;var t=om(e);if(t==Dm||t==zm)return!e.size;if(Tp(e))return!Fp(e).length;for(var r in e)if(Lm.call(e,r))return!1;return!0}var Bm={},Um=/~/,Wm=/~[01]/g;function qm(e){switch(e){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+e)}function Km(e){return Um.test(e)?e.replace(Wm,qm):e}function Hm(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 Gm(e,t){if("object"!=typeof e)throw new Error("Invalid input object.");var r=(t=Hm(t)).length;if(1===r)return e;for(var n=1;n<r;){if(e=e[Km(t[n++])],r===n)return e;if("object"!=typeof e||null===e)return}}function Qm(e,t,r){if("object"!=typeof e)throw new Error("Invalid input object.");if(0===(t=Hm(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=Km(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)}function Ym(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}Bm.get=Gm,Bm.set=Qm,Bm.compile=function(e){var t=Hm(e);return{get:function(e){return Gm(e,t)},set:function(e,r){return Qm(e,t,r)}}};var Jm=function(){try{var e=bf(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Xm=Jm;function Zm(e,t,r){"__proto__"==t&&Xm?Xm(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var eh=Object.prototype.hasOwnProperty;function th(e,t,r){var n=e[t];eh.call(e,t)&&Yd(n,r)&&(void 0!==r||t in e)||Zm(e,t,r)}function rh(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?Zm(r,s,l):th(r,s,l)}return r}var nh=Object.prototype.hasOwnProperty;function oh(e){if(!ef(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=Tp(e),r=[];for(var n in e)("constructor"!=n||!t&&nh.call(e,n))&&r.push(n);return r}function ah(e){return Dp(e)?Ap(e,!0):oh(e)}var ih="object"==typeof exports&&exports&&!exports.nodeType&&exports,sh=ih&&"object"==typeof module&&module&&!module.nodeType&&module,lh=sh&&sh.exports===ih?jd.Buffer:void 0,ch=lh?lh.allocUnsafe:void 0;function uh(e,t){if(t)return e.slice();var r=e.length,n=ch?ch(r):new e.constructor(r);return e.copy(n),n}function dh(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var fh=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Xf(t,ap(e)),e=Ld(e);return t}:tp,ph=fh;function mh(e){return ep(e,ah,ph)}var hh=Object.prototype.hasOwnProperty;function yh(e){var t=new e.constructor(e.byteLength);return new Tf(t).set(new Tf(e)),t}var vh=/\w*$/;var gh=Pd?Pd.prototype:void 0,bh=gh?gh.valueOf:void 0;function wh(e,t){var r=t?yh(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Sh="[object Boolean]",xh="[object Date]",$h="[object Map]",_h="[object Number]",kh="[object RegExp]",Eh="[object Set]",Ch="[object String]",jh="[object Symbol]",Ph="[object ArrayBuffer]",Oh="[object DataView]",Nh="[object Float32Array]",Ah="[object Float64Array]",Rh="[object Int8Array]",Th="[object Int16Array]",Ih="[object Int32Array]",Mh="[object Uint8Array]",Fh="[object Uint8ClampedArray]",Dh="[object Uint16Array]",zh="[object Uint32Array]";function Lh(e,t,r){var n,o=e.constructor;switch(t){case Ph:return yh(e);case Sh:case xh:return new o(+e);case Oh:return function(e,t){var r=t?yh(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case Nh:case Ah:case Rh:case Th:case Ih:case Mh:case Fh:case Dh:case zh:return wh(e,r);case $h:return new o;case _h:case Ch:return new o(e);case kh:return function(e){var t=new e.constructor(e.source,vh.exec(e));return t.lastIndex=e.lastIndex,t}(e);case Eh:return new o;case jh:return n=e,bh?Object(bh.call(n)):{}}}var Vh=Object.create,Bh=function(){function e(){}return function(t){if(!ef(t))return{};if(Vh)return Vh(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),Uh=Bh;function Wh(e){return"function"!=typeof e.constructor||Tp(e)?{}:Uh(Ld(e))}var qh=jp&&jp.isMap,Kh=qh?$p(qh):function(e){return Vd(e)&&"[object Map]"==om(e)};var Hh=jp&&jp.isSet,Gh=Hh?$p(Hh):function(e){return Vd(e)&&"[object Set]"==om(e)},Qh=1,Yh=2,Jh=4,Xh="[object Arguments]",Zh="[object Function]",ey="[object GeneratorFunction]",ty="[object Object]",ry={};function ny(e,t,r,n,o,a){var i,s=t&Qh,l=t&Yh,c=t&Jh;if(r&&(i=o?r(e,n,o,a):r(e)),void 0!==i)return i;if(!ef(e))return e;var u=Zf(e);if(u){if(i=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&hh.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!s)return dh(e,i)}else{var d=om(e),f=d==Zh||d==ey;if(yp(e))return uh(e,s);if(d==ty||d==Xh||f&&!o){if(i=l||f?{}:Wh(e),!s)return l?function(e,t){return rh(e,ph(e),t)}(e,function(e,t){return e&&rh(t,ah(t),e)}(i,e)):function(e,t){return rh(e,ap(e),t)}(e,function(e,t){return e&&rh(t,zp(t),e)}(i,e))}else{if(!ry[d])return o?e:{};i=Lh(e,d,s)}}a||(a=new Cf);var p=a.get(e);if(p)return p;a.set(e,i),Gh(e)?e.forEach((function(n){i.add(ny(n,t,r,n,e,a))})):Kh(e)&&e.forEach((function(n,o){i.set(o,ny(n,t,r,o,e,a))}));var m=u?void 0:(c?l?mh:Lp:l?ah:zp)(e);return Ym(m||e,(function(n,o){m&&(n=e[o=n]),th(i,o,ny(n,t,r,o,e,a))})),i}function oy(e,t){return t.length<2?e:Mm(e,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}(t,0,-1))}function ay(e,t){return null==(e=oy(e,t=Rm(t,e)))||delete e[Im(function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}(t))]}function iy(e){return Gd(e)?void 0:e}ry[Xh]=ry["[object Array]"]=ry["[object ArrayBuffer]"]=ry["[object DataView]"]=ry["[object Boolean]"]=ry["[object Date]"]=ry["[object Float32Array]"]=ry["[object Float64Array]"]=ry["[object Int8Array]"]=ry["[object Int16Array]"]=ry["[object Int32Array]"]=ry["[object Map]"]=ry["[object Number]"]=ry[ty]=ry["[object RegExp]"]=ry["[object Set]"]=ry["[object String]"]=ry["[object Symbol]"]=ry["[object Uint8Array]"]=ry["[object Uint8ClampedArray]"]=ry["[object Uint16Array]"]=ry["[object Uint32Array]"]=!0,ry["[object Error]"]=ry[Zh]=ry["[object WeakMap]"]=!1;var sy=Pd?Pd.isConcatSpreadable:void 0;function ly(e){return Zf(e)||fp(e)||!!(sy&&e&&e[sy])}function cy(e,t,r,n,o){var a=-1,i=e.length;for(r||(r=ly),o||(o=[]);++a<i;){var s=e[a];t>0&&r(s)?t>1?cy(s,t-1,r,n,o):Xf(o,s):n||(o[o.length]=s)}return o}function uy(e){return(null==e?0:e.length)?cy(e,1):[]}var dy=Math.max;function fy(e,t,r){return t=dy(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=dy(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),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)}(e,this,s)}}function py(e){return e}var my=Xm?function(e,t){return Xm(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:py,hy=my,yy=Date.now;var vy=function(e){var t=0,r=0;return function(){var n=yy(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(hy),gy=vy;function by(e){return gy(fy(e,void 0,uy),e+"")}var wy=by((function(e,t){var r={};if(null==e)return r;var n=!1;t=Cm(t,(function(t){return t=Rm(t,e),n||(n=t.length>1),t})),rh(e,mh(e),r),n&&(r=ny(r,7,iy));for(var o=t.length;o--;)ay(r,t[o]);return r})),Sy=wy;function xy(e,t){const r=t[e];return[Sy(t,[e]),r]}function $y(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=Bm.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]=xy(bd,a),l=$y(s,t,[...r,n]);return Object.keys(o).length>0?{...o,...l}:l}return a}function _y(e,t={}){return $y(e,t,[])}var ky=Object.prototype.hasOwnProperty;function Ey(e,t){return null!=e&&ky.call(e,t)}function Cy(e,t,r){for(var n=-1,o=(t=Rm(t,e)).length,a=!1;++n<o;){var i=Im(t[n]);if(!(a=null!=e&&r(e,i)))break;e=e[i]}return a||++n!=o?a:!!(o=null==e?0:e.length)&&Sp(o)&&bp(i,o)&&(Zf(e)||fp(e))}function jy(e,t){return null!=e&&Cy(e,t,Ey)}var Py="[object Number]";function Oy(e){return"number"==typeof e||Vd(e)&&Dd(e)==Py}var Ny="[object String]";function Ay(e){return"string"==typeof e||!Zf(e)&&Vd(e)&&Dd(e)==Ny}function Ry(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 Ty,Iy=function(e,t,r){for(var n=-1,o=Object(e),a=r(e),i=a.length;i--;){var s=a[Ty?i:++n];if(!1===t(o[s],s,o))break}return e},My=Iy;function Fy(e,t){return e&&My(e,t,zp)}var Dy=function(e,t){return function(r,n){if(null==r)return r;if(!Dp(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}}(Fy),zy=Dy,Ly=1,Vy=2;function By(e){return e==e&&!ef(e)}function Uy(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}function Wy(e){var t=function(e){for(var t=zp(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,By(o)]}return t}(e);return 1==t.length&&t[0][2]?Uy(t[0][0],t[0][1]):function(r){return r===e||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 Cf;if(n)var f=n(c,u,l,e,t,d);if(!(void 0===f?dm(u,c,Ly|Vy,n,d):f))return!1}}return!0}(r,e,t)}}function qy(e,t){return null!=e&&t in Object(e)}function Ky(e,t){return null!=e&&Cy(e,t,qy)}var Hy=1,Gy=2;function Qy(e){return vm(e)?(t=Im(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return Mm(t,e)}}(e);var t}function Yy(e){return"function"==typeof e?e:null==e?py:"object"==typeof e?Zf(e)?(t=e[0],r=e[1],vm(t)&&By(r)?Uy(Im(t),r):function(e){var n=Fm(e,t);return void 0===n&&n===r?Ky(e,t):dm(r,n,Hy|Gy)}):Wy(e):Qy(e);var t,r}function Jy(e,t,r,n,o){return o(e,(function(e,o,a){r=n?(n=!1,e):t(r,e,o,a)})),r}function Xy(e){return"function"==typeof e?e:py}var Zy=/\s/;var ev=/^\s+/;function tv(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&Zy.test(e.charAt(t)););return t}(e)+1).replace(ev,""):e}var rv=NaN,nv=/^[-+]0x[0-9a-f]+$/i,ov=/^0b[01]+$/i,av=/^0o[0-7]+$/i,iv=parseInt;var sv=1/0,lv=17976931348623157e292;function cv(e){return e?(e=function(e){if("number"==typeof e)return e;if(mm(e))return rv;if(ef(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ef(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=tv(e);var r=ov.test(e);return r||av.test(e)?iv(e.slice(2),r?2:8):nv.test(e)?rv:+e}(e))===sv||e===-sv?(e<0?-1:1)*lv:e==e?e:0:0===e?e:0}var uv=9007199254740991,dv=4294967295,fv=Math.min;function pv(e,t){if(e=function(e){var t=cv(e),r=t%1;return t==t?r?t-r:t:0}(e),e<1||e>uv)return[];var r=dv,n=fv(e,dv);t=Xy(t),e-=dv;for(var o=ip(n,t);++r<e;)t(r);return o}function mv(e,t,r){var n;if(e&&r){const o=Fm(e,r);if(void 0===o)return;for(let e=0;e<t.length;e++){const a=Fm(t[e],[yd,r],{});if("object"!==a.type&&"array"!==a.type){if(a.const===o)return e;if(null===(n=a.enum)||void 0===n?void 0:n.includes(o))return e}}}}function hv(e,t,r,n,o){if(void 0===t)return 0;const a=mv(t,r,o);if(Oy(a))return a;for(let a=0;a<r.length;a++){const i=r[a];if(o&&jy(i,[yd,o])){const r=Fm(t,o),s=Fm(i,[yd,o],{});if(e.isValid(s,r,n))return a}else if(i[yd]){const r={anyOf:Object.keys(i[yd]).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 yv(e,t,r,n,o){return hv(e,t,r,n,o)}function vv(e,t,r,n){if(!ef(e))return e;for(var o=-1,a=(t=Rm(t,e)).length,i=a-1,s=e;null!=s&&++o<a;){var l=Im(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=ef(u)?u:bp(t[o+1])?[]:{})}th(s,l,c),s=s[l]}return e}function gv(e,t,r){return null==e?e:vv(e,t,r)}function bv(e,t,r){(void 0!==r&&!Yd(e[t],r)||void 0===r&&!(t in e))&&Zm(e,t,r)}function wv(e){return Vd(e)&&Dp(e)}function Sv(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function xv(e,t,r,n,o,a,i){var s=Sv(e,r),l=Sv(t,r),c=i.get(l);if(c)bv(e,r,c);else{var u,d=a?a(s,l,r+"",e,t,i):void 0,f=void 0===d;if(f){var p=Zf(l),m=!p&&yp(l),h=!p&&!m&&Op(l);d=l,p||m||h?Zf(s)?d=s:wv(s)?d=dh(s):m?(f=!1,d=uh(l,!0)):h?(f=!1,d=wh(l,!0)):d=[]:Gd(l)||fp(l)?(d=s,fp(s)?d=rh(u=s,ah(u)):ef(s)&&!af(s)||(d=Wh(l))):f=!1}f&&(i.set(l,d),o(d,l,n,a,i),i.delete(l)),bv(e,r,d)}}function $v(e,t,r,n,o){e!==t&&My(t,(function(a,i){if(o||(o=new Cf),ef(a))xv(e,t,i,r,$v,n,o);else{var s=n?n(Sv(e,i),a,i+"",e,t,o):void 0;void 0===s&&(s=a),bv(e,i,s)}}),ah)}function _v(e,t){return gy(fy(e,t,py),e+"")}var kv,Ev=(kv=function(e,t,r){$v(e,t,r)},_v((function(e,t){var r=-1,n=t.length,o=n>1?t[n-1]:void 0,a=n>2?t[2]:void 0;for(o=kv.length>3&&"function"==typeof o?(n--,o):void 0,a&&function(e,t,r){if(!ef(r))return!1;var n=typeof t;return!!("number"==n?Dp(r)&&bp(t,r.length):"string"==n&&t in r)&&Yd(r[t],e)}(t[0],t[1],a)&&(o=n<3?void 0:o,n=1),e=Object(e);++r<n;){var i=t[r];i&&kv(e,i,r,o)}return e}))),Cv=Ev,jv=1/0;function Pv(e){return e!=e}function Ov(e,t){return!!(null==e?0:e.length)&&function(e,t,r){return t==t?function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}(e,t,r):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}(e,Pv,r)}(e,t,0)>-1}function Nv(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 Av=qp&&1/Mf(new qp([,-0]))[1]==1/0?function(e){return new qp(e)}:function(){},Rv=Av,Tv=200;function Iv(e,t,r){var n=-1,o=Ov,a=e.length,i=!0,s=[],l=s;if(r)i=!1,o=Nv;else if(a>=Tv){var c=t?null:Rv(e);if(c)return Mf(c);i=!1,o=Of,l=new jf}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}var Mv=function(){this.__data__=[],this.size=0};var Fv=function(e,t){return e===t||e!=e&&t!=t},Dv=Fv;var zv=function(e,t){for(var r=e.length;r--;)if(Dv(e[r][0],t))return r;return-1},Lv=zv,Vv=Array.prototype.splice;var Bv=function(e){var t=this.__data__,r=Lv(t,e);return!(r<0)&&(r==t.length-1?t.pop():Vv.call(t,r,1),--this.size,!0)},Uv=zv;var Wv=function(e){var t=this.__data__,r=Uv(t,e);return r<0?void 0:t[r][1]},qv=zv;var Kv=zv;var Hv=function(e,t){var r=this.__data__,n=Kv(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Gv=Mv,Qv=Bv,Yv=Wv,Jv=function(e){return qv(this.__data__,e)>-1},Xv=Hv;function Zv(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])}}Zv.prototype.clear=Gv,Zv.prototype.delete=Qv,Zv.prototype.get=Yv,Zv.prototype.has=Jv,Zv.prototype.set=Xv;var eg=Zv,tg=eg;var rg=function(){this.__data__=new tg,this.size=0};var ng=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};var og=function(e){return this.__data__.get(e)};var ag=function(e){return this.__data__.has(e)},ig="object"==typeof t&&t&&t.Object===Object&&t,sg=ig,lg="object"==typeof self&&self&&self.Object===Object&&self,cg=sg||lg||Function("return this")(),ug=cg.Symbol,dg=ug,fg=Object.prototype,pg=fg.hasOwnProperty,mg=fg.toString,hg=dg?dg.toStringTag:void 0;var yg=function(e){var t=pg.call(e,hg),r=e[hg];try{e[hg]=void 0;var n=!0}catch(e){}var o=mg.call(e);return n&&(t?e[hg]=r:delete e[hg]),o},vg=Object.prototype.toString;var gg=yg,bg=function(e){return vg.call(e)},wg=ug?ug.toStringTag:void 0;var Sg=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":wg&&wg in Object(e)?gg(e):bg(e)};var xg=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},$g=Sg,_g=xg;var kg=function(e){if(!_g(e))return!1;var t=$g(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Eg=cg["__core-js_shared__"],Cg=function(){var e=/[^.]+$/.exec(Eg&&Eg.keys&&Eg.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var jg=function(e){return!!Cg&&Cg in e},Pg=Function.prototype.toString;var Og=function(e){if(null!=e){try{return Pg.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Ng=kg,Ag=jg,Rg=xg,Tg=Og,Ig=/^\[object .+?Constructor\]$/,Mg=Function.prototype,Fg=Object.prototype,Dg=Mg.toString,zg=Fg.hasOwnProperty,Lg=RegExp("^"+Dg.call(zg).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Vg=function(e){return!(!Rg(e)||Ag(e))&&(Ng(e)?Lg:Ig).test(Tg(e))},Bg=function(e,t){return null==e?void 0:e[t]};var Ug=function(e,t){var r=Bg(e,t);return Vg(r)?r:void 0},Wg=Ug(cg,"Map"),qg=Ug(Object,"create"),Kg=qg;var Hg=function(){this.__data__=Kg?Kg(null):{},this.size=0};var Gg=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Qg=qg,Yg=Object.prototype.hasOwnProperty;var Jg=function(e){var t=this.__data__;if(Qg){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return Yg.call(t,e)?t[e]:void 0},Xg=qg,Zg=Object.prototype.hasOwnProperty;var eb=qg;var tb=Hg,rb=Gg,nb=Jg,ob=function(e){var t=this.__data__;return Xg?void 0!==t[e]:Zg.call(t,e)},ab=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=eb&&void 0===t?"__lodash_hash_undefined__":t,this};function ib(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])}}ib.prototype.clear=tb,ib.prototype.delete=rb,ib.prototype.get=nb,ib.prototype.has=ob,ib.prototype.set=ab;var sb=ib,lb=eg,cb=Wg;var ub=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},db=ub;var fb=function(e,t){var r=e.__data__;return db(t)?r["string"==typeof t?"string":"hash"]:r.map},pb=fb;var mb=function(e){var t=pb(this,e).delete(e);return this.size-=t?1:0,t},hb=fb;var yb=fb;var vb=fb;var gb=function(){this.size=0,this.__data__={hash:new sb,map:new(cb||lb),string:new sb}},bb=mb,wb=function(e){return hb(this,e).get(e)},Sb=function(e){return yb(this,e).has(e)},xb=function(e,t){var r=vb(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function $b(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])}}$b.prototype.clear=gb,$b.prototype.delete=bb,$b.prototype.get=wb,$b.prototype.has=Sb,$b.prototype.set=xb;var _b=$b,kb=eg,Eb=Wg,Cb=_b;var jb=eg,Pb=rg,Ob=ng,Nb=og,Ab=ag,Rb=function(e,t){var r=this.__data__;if(r instanceof kb){var n=r.__data__;if(!Eb||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Cb(n)}return r.set(e,t),this.size=r.size,this};function Tb(e){var t=this.__data__=new jb(e);this.size=t.size}Tb.prototype.clear=Pb,Tb.prototype.delete=Ob,Tb.prototype.get=Nb,Tb.prototype.has=Ab,Tb.prototype.set=Rb;var Ib=Tb;var Mb=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e},Fb=Ug,Db=function(){try{var e=Fb(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),zb=Db,Lb=zb;var Vb=function(e,t,r){"__proto__"==t&&Lb?Lb(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},Bb=Vb,Ub=Fv,Wb=Object.prototype.hasOwnProperty;var qb=function(e,t,r){var n=e[t];Wb.call(e,t)&&Ub(n,r)&&(void 0!==r||t in e)||Bb(e,t,r)},Kb=qb,Hb=Vb;var Gb=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?Hb(r,s,l):Kb(r,s,l)}return r};var Qb=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n};var Yb=function(e){return null!=e&&"object"==typeof e},Jb=Sg,Xb=Yb;var Zb=function(e){return Xb(e)&&"[object Arguments]"==Jb(e)},ew=Yb,tw=Object.prototype,rw=tw.hasOwnProperty,nw=tw.propertyIsEnumerable,ow=Zb(function(){return arguments}())?Zb:function(e){return ew(e)&&rw.call(e,"callee")&&!nw.call(e,"callee")},aw=ow,iw=Array.isArray,sw={exports:{}};var lw=function(){return!1};!function(e,t){var r=cg,n=lw,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}(sw,sw.exports);var cw=sw.exports,uw=/^(?:0|[1-9]\d*)$/;var dw=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&uw.test(e))&&e>-1&&e%1==0&&e<t};var fw=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},pw=Sg,mw=fw,hw=Yb,yw={};yw["[object Float32Array]"]=yw["[object Float64Array]"]=yw["[object Int8Array]"]=yw["[object Int16Array]"]=yw["[object Int32Array]"]=yw["[object Uint8Array]"]=yw["[object Uint8ClampedArray]"]=yw["[object Uint16Array]"]=yw["[object Uint32Array]"]=!0,yw["[object Arguments]"]=yw["[object Array]"]=yw["[object ArrayBuffer]"]=yw["[object Boolean]"]=yw["[object DataView]"]=yw["[object Date]"]=yw["[object Error]"]=yw["[object Function]"]=yw["[object Map]"]=yw["[object Number]"]=yw["[object Object]"]=yw["[object RegExp]"]=yw["[object Set]"]=yw["[object String]"]=yw["[object WeakMap]"]=!1;var vw=function(e){return hw(e)&&mw(e.length)&&!!yw[pw(e)]};var gw=function(e){return function(t){return e(t)}},bw={exports:{}};!function(e,t){var r=ig,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}(bw,bw.exports);var ww=bw.exports,Sw=vw,xw=gw,$w=ww&&ww.isTypedArray,_w=$w?xw($w):Sw,kw=Qb,Ew=aw,Cw=iw,jw=cw,Pw=dw,Ow=_w,Nw=Object.prototype.hasOwnProperty;var Aw=function(e,t){var r=Cw(e),n=!r&&Ew(e),o=!r&&!n&&jw(e),a=!r&&!n&&!o&&Ow(e),i=r||n||o||a,s=i?kw(e.length,String):[],l=s.length;for(var c in e)!t&&!Nw.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Pw(c,l))||s.push(c);return s},Rw=Object.prototype;var Tw=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Rw)};var Iw=function(e,t){return function(r){return e(t(r))}},Mw=Iw(Object.keys,Object),Fw=Tw,Dw=Mw,zw=Object.prototype.hasOwnProperty;var Lw=function(e){if(!Fw(e))return Dw(e);var t=[];for(var r in Object(e))zw.call(e,r)&&"constructor"!=r&&t.push(r);return t},Vw=kg,Bw=fw;var Uw=function(e){return null!=e&&Bw(e.length)&&!Vw(e)},Ww=Aw,qw=Lw,Kw=Uw;var Hw=function(e){return Kw(e)?Ww(e):qw(e)},Gw=Gb,Qw=Hw;var Yw=function(e,t){return e&&Gw(t,Qw(t),e)};var Jw=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},Xw=xg,Zw=Tw,eS=Jw,tS=Object.prototype.hasOwnProperty;var rS=function(e){if(!Xw(e))return eS(e);var t=Zw(e),r=[];for(var n in e)("constructor"!=n||!t&&tS.call(e,n))&&r.push(n);return r},nS=Aw,oS=rS,aS=Uw;var iS=function(e){return aS(e)?nS(e,!0):oS(e)},sS=Gb,lS=iS;var cS=function(e,t){return e&&sS(t,lS(t),e)},uS={exports:{}};!function(e,t){var r=cg,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}}(uS,uS.exports);var dS=uS.exports;var fS=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t};var pS=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 mS=function(){return[]},hS=pS,yS=mS,vS=Object.prototype.propertyIsEnumerable,gS=Object.getOwnPropertySymbols,bS=gS?function(e){return null==e?[]:(e=Object(e),hS(gS(e),(function(t){return vS.call(e,t)})))}:yS,wS=Gb,SS=bS;var xS=function(e,t){return wS(e,SS(e),t)};var $S=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e},_S=Iw(Object.getPrototypeOf,Object),kS=$S,ES=_S,CS=bS,jS=mS,PS=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)kS(t,CS(e)),e=ES(e);return t}:jS,OS=Gb,NS=PS;var AS=function(e,t){return OS(e,NS(e),t)},RS=$S,TS=iw;var IS=function(e,t,r){var n=t(e);return TS(e)?n:RS(n,r(e))},MS=IS,FS=bS,DS=Hw;var zS=function(e){return MS(e,DS,FS)},LS=IS,VS=PS,BS=iS;var US=function(e){return LS(e,BS,VS)},WS=Ug(cg,"DataView"),qS=Ug(cg,"Promise"),KS=Ug(cg,"Set"),HS=WS,GS=Wg,QS=qS,YS=KS,JS=Ug(cg,"WeakMap"),XS=Sg,ZS=Og,ex="[object Map]",tx="[object Promise]",rx="[object Set]",nx="[object WeakMap]",ox="[object DataView]",ax=ZS(HS),ix=ZS(GS),sx=ZS(QS),lx=ZS(YS),cx=ZS(JS),ux=XS;(HS&&ux(new HS(new ArrayBuffer(1)))!=ox||GS&&ux(new GS)!=ex||QS&&ux(QS.resolve())!=tx||YS&&ux(new YS)!=rx||JS&&ux(new JS)!=nx)&&(ux=function(e){var t=XS(e),r="[object Object]"==t?e.constructor:void 0,n=r?ZS(r):"";if(n)switch(n){case ax:return ox;case ix:return ex;case sx:return tx;case lx:return rx;case cx:return nx}return t});var dx=ux,fx=Object.prototype.hasOwnProperty;var px=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&fx.call(e,"index")&&(r.index=e.index,r.input=e.input),r},mx=cg.Uint8Array,hx=mx;var yx=function(e){var t=new e.constructor(e.byteLength);return new hx(t).set(new hx(e)),t},vx=yx;var gx=function(e,t){var r=t?vx(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)},bx=/\w*$/;var wx=function(e){var t=new e.constructor(e.source,bx.exec(e));return t.lastIndex=e.lastIndex,t},Sx=ug?ug.prototype:void 0,xx=Sx?Sx.valueOf:void 0;var $x=yx;var _x=function(e,t){var r=t?$x(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},kx=yx,Ex=gx,Cx=wx,jx=function(e){return xx?Object(xx.call(e)):{}},Px=_x;var Ox=function(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return kx(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return Ex(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 Px(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 Cx(e);case"[object Symbol]":return jx(e)}},Nx=xg,Ax=Object.create,Rx=function(){function e(){}return function(t){if(!Nx(t))return{};if(Ax)return Ax(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),Tx=Rx,Ix=_S,Mx=Tw;var Fx=function(e){return"function"!=typeof e.constructor||Mx(e)?{}:Tx(Ix(e))},Dx=dx,zx=Yb;var Lx=function(e){return zx(e)&&"[object Map]"==Dx(e)},Vx=gw,Bx=ww&&ww.isMap,Ux=Bx?Vx(Bx):Lx,Wx=dx,qx=Yb;var Kx=function(e){return qx(e)&&"[object Set]"==Wx(e)},Hx=gw,Gx=ww&&ww.isSet,Qx=Gx?Hx(Gx):Kx,Yx=Ib,Jx=Mb,Xx=qb,Zx=Yw,e$=cS,t$=dS,r$=fS,n$=xS,o$=AS,a$=zS,i$=US,s$=dx,l$=px,c$=Ox,u$=Fx,d$=iw,f$=cw,p$=Ux,m$=xg,h$=Qx,y$=Hw,v$=iS,g$="[object Arguments]",b$="[object Function]",w$="[object Object]",S$={};S$[g$]=S$["[object Array]"]=S$["[object ArrayBuffer]"]=S$["[object DataView]"]=S$["[object Boolean]"]=S$["[object Date]"]=S$["[object Float32Array]"]=S$["[object Float64Array]"]=S$["[object Int8Array]"]=S$["[object Int16Array]"]=S$["[object Int32Array]"]=S$["[object Map]"]=S$["[object Number]"]=S$[w$]=S$["[object RegExp]"]=S$["[object Set]"]=S$["[object String]"]=S$["[object Symbol]"]=S$["[object Uint8Array]"]=S$["[object Uint8ClampedArray]"]=S$["[object Uint16Array]"]=S$["[object Uint32Array]"]=!0,S$["[object Error]"]=S$[b$]=S$["[object WeakMap]"]=!1;var x$=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(!m$(t))return t;var d=d$(t);if(d){if(s=l$(t),!l)return r$(t,s)}else{var f=s$(t),p=f==b$||"[object GeneratorFunction]"==f;if(f$(t))return t$(t,l);if(f==w$||f==g$||p&&!a){if(s=c||p?{}:u$(t),!l)return c?o$(t,e$(s,t)):n$(t,Zx(s,t))}else{if(!S$[f])return a?t:{};s=c$(t,f,l)}}i||(i=new Yx);var m=i.get(t);if(m)return m;i.set(t,s),h$(t)?t.forEach((function(o){s.add(e(o,r,n,o,t,i))})):p$(t)&&t.forEach((function(o,a){s.set(a,e(o,r,n,a,t,i))}));var h=d?void 0:(u?c?i$:a$:c?v$:y$)(t);return Jx(h||t,(function(o,a){h&&(o=t[a=o]),Xx(s,a,e(o,r,n,a,t,i))})),s},$$=x$;var _$=function(e){return $$(e,5)};var k$=_b,E$=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},C$=function(e){return this.__data__.has(e)};function j$(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new k$;++t<r;)this.add(e[t])}j$.prototype.add=j$.prototype.push=E$,j$.prototype.has=C$;var P$=j$;var O$=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 N$=function(e,t){return e.has(t)},A$=P$,R$=O$,T$=N$;var I$=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 A$:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(n)var y=i?n(h,m,d,t,e,a):n(m,h,d,e,t,a);if(void 0!==y){if(y)continue;f=!1;break}if(p){if(!R$(t,(function(e,t){if(!T$(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 M$=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r};var F$=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r},D$=mx,z$=Fv,L$=I$,V$=M$,B$=F$,U$=ug?ug.prototype:void 0,W$=U$?U$.valueOf:void 0;var q$=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 D$(e),new D$(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return z$(+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=V$;case"[object Set]":var l=1&n;if(s||(s=B$),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=L$(s(e),s(t),n,o,a,i);return i.delete(e),u;case"[object Symbol]":if(W$)return W$.call(e)==W$.call(t)}return!1},K$=zS,H$=Object.prototype.hasOwnProperty;var G$=function(e,t,r,n,o,a){var i=1&r,s=K$(e),l=s.length;if(l!=K$(t).length&&!i)return!1;for(var c=l;c--;){var u=s[c];if(!(i?u in t:H$.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]],y=t[u];if(n)var v=i?n(y,h,u,t,e,a):n(h,y,u,e,t,a);if(!(void 0===v?h===y||o(h,y,r,n,a):v)){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},Q$=Ib,Y$=I$,J$=q$,X$=G$,Z$=dx,e_=iw,t_=cw,r_=_w,n_="[object Arguments]",o_="[object Array]",a_="[object Object]",i_=Object.prototype.hasOwnProperty;var s_=function(e,t,r,n,o,a){var i=e_(e),s=e_(t),l=i?o_:Z$(e),c=s?o_:Z$(t),u=(l=l==n_?a_:l)==a_,d=(c=c==n_?a_:c)==a_,f=l==c;if(f&&t_(e)){if(!t_(t))return!1;i=!0,u=!1}if(f&&!u)return a||(a=new Q$),i||r_(e)?Y$(e,t,r,n,o,a):J$(e,t,l,r,n,o,a);if(!(1&r)){var p=u&&i_.call(e,"__wrapped__"),m=d&&i_.call(t,"__wrapped__");if(p||m){var h=p?e.value():e,y=m?t.value():t;return a||(a=new Q$),o(h,y,r,n,a)}}return!!f&&(a||(a=new Q$),X$(e,t,r,n,o,a))},l_=Yb;var c_=function e(t,r,n,o,a){return t===r||(null==t||null==r||!l_(t)&&!l_(r)?t!=t&&r!=r:s_(t,r,n,o,e,a))},u_=c_;var d_=function(e,t){return u_(e,t)},f_=aw,p_=iw,m_=ug?ug.isConcatSpreadable:void 0;var h_=$S,y_=function(e){return p_(e)||f_(e)||!!(m_&&e&&e[m_])};var v_=function e(t,r,n,o,a){var i=-1,s=t.length;for(n||(n=y_),a||(a=[]);++i<s;){var l=t[i];r>0&&n(l)?r>1?e(l,r-1,n,o,a):h_(a,l):o||(a[a.length]=l)}return a};var g_=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},b_=Sg,w_=Yb;var S_=function(e){return"symbol"==typeof e||w_(e)&&"[object Symbol]"==b_(e)},x_=iw,$_=S_,__=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,k_=/^\w*$/;var E_=function(e,t){if(x_(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!$_(e))||(k_.test(e)||!__.test(e)||null!=t&&e in Object(t))},C_=_b;function j_(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(j_.Cache||C_),r}j_.Cache=C_;var P_=j_;var O_=function(e){var t=P_(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t},N_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,A_=/\\(\\)?/g,R_=O_((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(N_,(function(e,r,n,o){t.push(n?o.replace(A_,"$1"):r||e)})),t})),T_=R_,I_=g_,M_=iw,F_=S_,D_=ug?ug.prototype:void 0,z_=D_?D_.toString:void 0;var L_=function e(t){if("string"==typeof t)return t;if(M_(t))return I_(t,e)+"";if(F_(t))return z_?z_.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r},V_=L_;var B_=iw,U_=E_,W_=T_,q_=function(e){return null==e?"":V_(e)};var K_=function(e,t){return B_(e)?e:U_(e,t)?[e]:W_(q_(e))},H_=S_;var G_=function(e){if("string"==typeof e||H_(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},Q_=K_,Y_=G_;var J_=function(e,t){for(var r=0,n=(t=Q_(t,e)).length;null!=e&&r<n;)e=e[Y_(t[r++])];return r&&r==n?e:void 0},X_=Ib,Z_=c_;var ek=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 X_;if(n)var f=n(c,u,l,e,t,d);if(!(void 0===f?Z_(u,c,3,n,d):f))return!1}}return!0},tk=xg;var rk=function(e){return e==e&&!tk(e)},nk=rk,ok=Hw;var ak=function(e){for(var t=ok(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,nk(o)]}return t};var ik=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}},sk=ek,lk=ak,ck=ik;var uk=J_;var dk=function(e,t,r){var n=null==e?void 0:uk(e,t);return void 0===n?r:n};var fk=K_,pk=aw,mk=iw,hk=dw,yk=fw,vk=G_;var gk=function(e,t,r){for(var n=-1,o=(t=fk(t,e)).length,a=!1;++n<o;){var i=vk(t[n]);if(!(a=null!=e&&r(e,i)))break;e=e[i]}return a||++n!=o?a:!!(o=null==e?0:e.length)&&yk(o)&&hk(i,o)&&(mk(e)||pk(e))},bk=function(e,t){return null!=e&&t in Object(e)},wk=gk;var Sk=c_,xk=dk,$k=function(e,t){return null!=e&&wk(e,t,bk)},_k=E_,kk=rk,Ek=ik,Ck=G_;var jk=function(e){return e};var Pk=J_;var Ok=function(e){return function(t){return null==t?void 0:t[e]}},Nk=function(e){return function(t){return Pk(t,e)}},Ak=E_,Rk=G_;var Tk=function(e){var t=lk(e);return 1==t.length&&t[0][2]?ck(t[0][0],t[0][1]):function(r){return r===e||sk(r,e,t)}},Ik=function(e,t){return _k(e)&&kk(t)?Ek(Ck(e),t):function(r){var n=xk(r,e);return void 0===n&&n===t?$k(r,e):Sk(t,n,3)}},Mk=jk,Fk=iw,Dk=function(e){return Ak(e)?Ok(Rk(e)):Nk(e)};var zk=function(e){return"function"==typeof e?e:null==e?Mk:"object"==typeof e?Fk(e)?Ik(e[0],e[1]):Tk(e):Dk(e)};var Lk=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}},Vk=Lk(),Bk=Vk,Uk=Hw;var Wk=Uw;var qk=function(e,t){return function(r,n){if(null==r)return r;if(!Wk(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}},Kk=qk((function(e,t){return e&&Bk(e,t,Uk)})),Hk=Kk,Gk=Uw;var Qk=function(e,t){var r=-1,n=Gk(e)?Array(e.length):[];return Hk(e,(function(e,o,a){n[++r]=t(e,o,a)})),n};var Yk=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e},Jk=S_;var Xk=function(e,t){if(e!==t){var r=void 0!==e,n=null===e,o=e==e,a=Jk(e),i=void 0!==t,s=null===t,l=t==t,c=Jk(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 Zk=function(e,t,r){for(var n=-1,o=e.criteria,a=t.criteria,i=o.length,s=r.length;++n<i;){var l=Xk(o[n],a[n]);if(l)return n>=s?l:l*("desc"==r[n]?-1:1)}return e.index-t.index},eE=g_,tE=J_,rE=zk,nE=Qk,oE=Yk,aE=gw,iE=Zk,sE=jk,lE=iw;var cE=function(e,t,r){t=t.length?eE(t,(function(e){return lE(e)?function(t){return tE(t,1===e.length?e[0]:e)}:e})):[sE];var n=-1;t=eE(t,aE(rE));var o=nE(e,(function(e,r,o){return{criteria:eE(t,(function(t){return t(e)})),index:++n,value:e}}));return oE(o,(function(e,t){return iE(e,t,r)}))};var uE=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)},dE=uE,fE=Math.max;var pE=function(e,t,r){return t=fE(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=fE(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),dE(e,this,s)}};var mE=function(e){return function(){return e}},hE=zb,yE=hE?function(e,t){return hE(e,"toString",{configurable:!0,enumerable:!1,value:mE(t),writable:!0})}:jk,vE=yE,gE=Date.now;var bE=function(e){var t=0,r=0;return function(){var n=gE(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},wE=bE(vE),SE=jk,xE=pE,$E=wE;var _E=function(e,t){return $E(xE(e,t,SE),e+"")},kE=Fv,EE=Uw,CE=dw,jE=xg;var PE=function(e,t,r){if(!jE(r))return!1;var n=typeof t;return!!("number"==n?EE(r)&&CE(t,r.length):"string"==n&&t in r)&&kE(r[t],e)},OE=v_,NE=cE,AE=PE,RE=_E((function(e,t){if(null==e)return[];var r=t.length;return r>1&&AE(e,t[0],t[1])?t=[]:r>2&&AE(t[0],t[1],t[2])&&(t=[t[0]]),NE(e,OE(t,1),[])})),TE=RE;var IE=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 ME=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1},FE=IE,DE=function(e){return e!=e},zE=ME;var LE=function(e,t,r){return t==t?zE(e,t,r):FE(e,DE,r)},VE=LE;var BE=function(e,t){return!!(null==e?0:e.length)&&VE(e,t,0)>-1};var UE=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 WE=KS,qE=function(){},KE=WE&&1/F$(new WE([,-0]))[1]==1/0?function(e){return new WE(e)}:qE,HE=P$,GE=BE,QE=UE,YE=N$,JE=KE,XE=F$;var ZE=function(e,t,r){var n=-1,o=GE,a=e.length,i=!0,s=[],l=s;if(r)i=!1,o=QE;else if(a>=200){var c=t?null:JE(e);if(c)return XE(c);i=!1,o=YE,l=new HE}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},eC=ZE;var tC=function(e){return e&&e.length?eC(e):[]},rC=ZE;var nC=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?rC(e,void 0,t):[]},oC=_E,aC=Fv,iC=PE,sC=iS,lC=Object.prototype,cC=lC.hasOwnProperty,uC=oC((function(e,t){e=Object(e);var r=-1,n=t.length,o=n>2?t[2]:void 0;for(o&&iC(t[0],t[1],o)&&(n=1);++r<n;)for(var a=t[r],i=sC(a),s=-1,l=i.length;++s<l;){var c=i[s],u=e[c];(void 0===u||aC(u,lC[c])&&!cC.call(e,c))&&(e[c]=a[c])}return e})),dC=uC,fC=P$,pC=BE,mC=UE,hC=g_,yC=gw,vC=N$,gC=Math.min;var bC=function(e,t,r){for(var n=r?mC:pC,o=e[0].length,a=e.length,i=a,s=Array(a),l=1/0,c=[];i--;){var u=e[i];i&&t&&(u=hC(u,yC(t))),l=gC(u.length,l),s[i]=!r&&(t||o>=120&&u.length>=120)?new fC(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?vC(f,m):n(c,m,r))){for(i=a;--i;){var h=s[i];if(!(h?vC(h,m):n(e[i],m,r)))continue e}f&&f.push(m),c.push(p)}}return c},wC=Uw,SC=Yb;var xC=function(e){return SC(e)&&wC(e)},$C=xC;var _C=function(e){return $C(e)?e:[]};var kC=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},EC=g_,CC=bC,jC=_C,PC=kC,OC=_E((function(e){var t=PC(e),r=EC(e,jC);return(t="function"==typeof t?t:void 0)&&r.pop(),r.length&&r[0]===e[0]?CC(r,void 0,t):[]})),NC=Sg,AC=_S,RC=Yb,TC=Function.prototype,IC=Object.prototype,MC=TC.toString,FC=IC.hasOwnProperty,DC=MC.call(Object);var zC=function(e){if(!RC(e)||"[object Object]"!=NC(e))return!1;var t=AC(e);if(null===t)return!0;var r=FC.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&MC.call(r)==DC},LC=Sg,VC=Yb;var BC=d_,UC=TE,WC=tC,qC=nC,KC=dC,HC=OC,GC=zC,QC=function(e){return!0===e||!1===e||VC(e)&&"[object Boolean]"==LC(e)},YC=e=>Array.isArray(e)?e:[e],JC=e=>void 0===e,XC=e=>GC(e)||Array.isArray(e)?Object.keys(e):[],ZC=(e,t)=>e.hasOwnProperty(t),ej=e=>UC(WC(e)),tj=e=>JC(e)||Array.isArray(e)&&0===e.length,rj=(e,t,r,n)=>t&&ZC(t,r)&&e&&ZC(e,r)&&n(e[r],t[r]),nj=(e,t)=>JC(e)&&0===t||JC(t)&&0===e||BC(e,t),oj=e=>JC(e)||BC(e,{})||!0===e,aj=e=>JC(e)||BC(e,{}),ij=e=>JC(e)||GC(e)||!0===e||!1===e;function sj(e,t){return!(!tj(e)||!tj(t))||BC(ej(e),ej(t))}function lj(e,t,r,n){var o=WC(XC(e).concat(XC(t)));return!(!aj(e)||!aj(t))||(!aj(e)||!XC(t).length)&&((!aj(t)||!XC(e).length)&&o.every((function(r){var o=e[r],a=t[r];return Array.isArray(o)&&Array.isArray(a)?BC(ej(e),ej(t)):!(Array.isArray(o)&&!Array.isArray(a))&&(!(Array.isArray(a)&&!Array.isArray(o))&&rj(e,t,r,n))})))}function cj(e,t,r,n){var o=qC(e,n),a=qC(t,n);return HC(o,a,n).length===Math.max(o.length,a.length)}var uj={title:BC,uniqueItems:(e,t)=>JC(e)&&!1===t||JC(t)&&!1===e||BC(e,t),minLength:nj,minItems:nj,minProperties:nj,required:sj,enum:sj,type:function(e,t){return e=YC(e),t=YC(t),BC(ej(e),ej(t))},items:function(e,t,r,n){return GC(e)&&GC(t)?n(e,t):Array.isArray(e)&&Array.isArray(t)?lj(e,t,0,n):BC(e,t)},anyOf:cj,allOf:cj,oneOf:cj,properties:lj,patternProperties:lj,dependencies:lj},dj=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],fj=["additionalProperties","additionalItems","contains","propertyNames","not"];var pj=function e(t,r,n){if(n=KC(n,{ignore:[]}),oj(t)&&oj(r))return!0;if(!ij(t)||!ij(r))throw new Error("Either of the values are not a JSON schema.");if(t===r)return!0;if(QC(t)&&QC(r))return t===r;if(void 0===t&&!1===r||void 0===r&&!1===t)return!1;if(JC(t)&&!JC(r)||!JC(t)&&JC(r))return!1;var o=WC(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!==fj.indexOf(o))return e(i,s,n);var l=uj[o];if(l||(l=BC),BC(i,s))return!0;if(-1===dj.indexOf(o)&&(!ZC(t,o)&&ZC(r,o)||ZC(t,o)&&!ZC(r,o)))return i===s;var c=l(i,s,o,a);if(!QC(c))throw new Error("Comparer must return true or false");return c}))};var mj=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};var hj=function(e){return("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))&&e.valueOf()==e.valueOf()};var yj=mj,vj=function(e){return hj(e)&&e%1==0};var gj=function(e){var t;if(!yj(e))return!1;if(!(t=e.length))return!1;for(var r=0;r<t;r++)if(!vj(e[r]))return!1;return!0};var bj=function(e){return"function"==typeof e},wj=mj,Sj=gj,xj=bj,$j=Math.pow(2,31)-1;function _j(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 kj(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 Ej=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(Sj(e)){if(2===s)return(o=e[0])<0&&(o=-o),(a=e[1])<0&&(a=-a),o<=$j&&a<=$j?kj(o,a):_j(o,a);r=e}else{if(!wj(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],!xj(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&&!Sj(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])<=$j&&o<=$j?kj(o,a):_j(o,a);return o},Cj=Ej,jj=mj,Pj=gj,Oj=bj;var Nj=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(Pj(e)){if(2===s)return(o=e[0])<0&&(o=-o),(a=e[1])<0&&(a=-a),0===o||0===a?0:o/Cj(o,a)*a;r=e}else{if(!jj(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],!Oj(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&&!Pj(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/Cj(o,a)*a}return o},Aj=Vb,Rj=Fv;var Tj=function(e,t,r){(void 0!==r&&!Rj(e[t],r)||void 0===r&&!(t in e))&&Aj(e,t,r)};var Ij=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Mj=Gb,Fj=iS;var Dj=Tj,zj=dS,Lj=_x,Vj=fS,Bj=Fx,Uj=aw,Wj=iw,qj=xC,Kj=cw,Hj=kg,Gj=xg,Qj=zC,Yj=_w,Jj=Ij,Xj=function(e){return Mj(e,Fj(e))};var Zj=Ib,eP=Tj,tP=Vk,rP=function(e,t,r,n,o,a,i){var s=Jj(e,r),l=Jj(t,r),c=i.get(l);if(c)Dj(e,r,c);else{var u=a?a(s,l,r+"",e,t,i):void 0,d=void 0===u;if(d){var f=Wj(l),p=!f&&Kj(l),m=!f&&!p&&Yj(l);u=l,f||p||m?Wj(s)?u=s:qj(s)?u=Vj(s):p?(d=!1,u=zj(l,!0)):m?(d=!1,u=Lj(l,!0)):u=[]:Qj(l)||Uj(l)?(u=s,Uj(s)?u=Xj(s):Gj(s)&&!Hj(s)||(u=Bj(l))):d=!1}d&&(i.set(l,u),o(u,l,n,a,i),i.delete(l)),Dj(e,r,u)}},nP=xg,oP=iS,aP=Ij;var iP=function e(t,r,n,o,a){t!==r&&tP(r,(function(i,s){if(a||(a=new Zj),nP(i))rP(t,r,s,n,e,o,a);else{var l=o?o(aP(t,s),i,s+"",t,r,a):void 0;void 0===l&&(l=i),eP(t,s,l)}}),oP)},sP=iP,lP=xg;var cP=function e(t,r,n,o,a,i){return lP(t)&&lP(r)&&(i.set(r,t),sP(t,r,void 0,e,i),i.delete(r)),t},uP=_E,dP=PE;var fP=function(e){return uP((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&&dP(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}))},pP=iP,mP=fP((function(e,t,r,n){pP(e,t,r,n)})),hP=uE,yP=cP,vP=mP,gP=_E((function(e){return e.push(void 0,yP),hP(vP,void 0,e)})),bP=v_;var wP=function(e){return(null==e?0:e.length)?bP(e,1):[]},SP=v_;var xP=function(e){return(null==e?0:e.length)?SP(e,Infinity):[]},$P=g_,_P=bC,kP=_C,EP=_E((function(e){var t=$P(e,kP);return t.length&&t[0]===e[0]?_P(t):[]}));var CP=function(e,t,r,n){for(var o=r-1,a=e.length;++o<a;)if(n(e[o],t))return o;return-1},jP=g_,PP=LE,OP=CP,NP=gw,RP=fS,TP=Array.prototype.splice;var IP=function(e,t,r,n){var o=n?OP:PP,a=-1,i=t.length,s=e;for(e===t&&(t=RP(t)),r&&(s=jP(e,NP(r)));++a<i;)for(var l=0,c=t[a],u=r?r(c):c;(l=o(s,u,l,n))>-1;)s!==e&&TP.call(s,l,1),TP.call(e,l,1);return e},MP=IP;var FP=function(e,t){return e&&e.length&&t&&t.length?MP(e,t):e},DP=jk;var zP=Mb,LP=Kk,VP=function(e){return"function"==typeof e?e:DP},BP=iw;var UP=function(e,t){return(BP(e)?zP:LP)(e,VP(t))},WP=P$,qP=BE,KP=UE,HP=g_,GP=gw,QP=N$;var YP=function(e,t,r,n){var o=-1,a=qP,i=!0,s=e.length,l=[],c=t.length;if(!s)return l;r&&(t=HP(t,GP(r))),n?(a=KP,i=!1):t.length>=200&&(a=QP,i=!1,t=new WP(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},JP=YP,XP=xC,ZP=_E((function(e,t){return XP(e)?JP(e,t):[]}));const eO=wP,tO=xP,rO=zC,nO=tC,oO=ZP;const aO=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),iO=e=>rO(e)||Array.isArray(e)?Object.keys(e):[],sO=e=>!iO(e).length&&!1!==e&&!0!==e;var lO={allUniqueKeys:e=>nO(tO(e.map(iO))),deleteUndefinedProps:function(e){for(const t in e)aO(e,t)&&sO(e[t])&&delete e[t];return e},getValues:(e,t)=>e.map((e=>e&&e[t])),has:aO,isEmptySchema:sO,isSchema:e=>rO(e)||!0===e||!1===e,keys:iO,notUndefined:e=>void 0!==e,uniqWith:nC,withoutArr:(e,...t)=>oO.apply(null,[e].concat(eO(t)))};const cO=pj,uO=UP,{allUniqueKeys:dO,deleteUndefinedProps:fO,getValues:pO,keys:mO,notUndefined:hO,uniqWith:yO,withoutArr:vO}=lO;function gO(e,t){return dO(e).reduce((function(r,n){const o=pO(e,n),a=yO(o.filter(hO),cO);return r[n]=t(a,n),r}),{})}var bO={keywords:["properties","patternProperties","additionalProperties"],resolver(e,t,r,n){n.ignoreAdditionalProperties||(e.forEach((function(t){const n=e.filter((e=>e!==t)),o=mO(t.properties),a=mO(t.patternProperties).map((e=>new RegExp(e)));n.forEach((function(e){const n=mO(e.properties),i=n.filter((e=>a.some((t=>t.test(e)))));vO(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=mO(t.patternProperties);!1===t.additionalProperties&&r.forEach((function(e){const t=mO(e.patternProperties);vO(t,n).forEach((t=>delete e.patternProperties[t]))}))})));const o={additionalProperties:r.additionalProperties(e.map((e=>e.additionalProperties))),patternProperties:gO(e.map((e=>e.patternProperties)),r.patternProperties),properties:gO(e.map((e=>e.properties)),r.properties)};var a;return!1===o.additionalProperties&&uO(a=o.properties,(function(e,t){!1===e&&delete a[t]})),fO(o)}};const wO=pj,SO=UP,{allUniqueKeys:xO,deleteUndefinedProps:$O,has:_O,isSchema:kO,notUndefined:EO,uniqWith:CO}=lO;function jO(e,t,r){return xO(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(kO(r))return r;if(_O(e,"additionalItems"))return e.additionalItems}}}))}(e,n),a=CO(o.filter(EO),wO);return r[n]=t(a,n),r}),[])}var PO={keywords:["items","additionalItems"],resolver(e,t,r){const n=e.map((e=>e.items)),o=n.filter(EO),a={};let i;var s;return o.every(kO)?a.items=r.items(n):a.items=jO(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,SO(s,(function(e,t){!1===e&&s.splice(t,1)}))),$O(a)}};const OO=_$,NO=pj,AO=Nj,RO=gP,TO=wP,IO=xP,MO=EP,FO=OC,DO=d_,zO=zC,LO=FP,VO=TE,BO=tC,UO=nC,WO=bO,qO=PO,KO=(e,t)=>-1!==e.indexOf(t),HO=e=>zO(e)||!0===e||!1===e,GO=e=>!1===e,QO=e=>!0===e,YO=(e,t,r)=>r(e),JO=e=>VO(BO(IO(e))),XO=e=>void 0!==e,ZO=e=>BO(IO(e.map(aN))),eN=e=>e[0],tN=e=>Math.max.apply(Math,e),rN=e=>Math.min.apply(Math,e);function nN(e){let{allOf:t=[],...r}=e;return r=zO(e)?r:e,[r,...t.map(nN)]}function oN(e,t){return e.map((e=>e&&e[t]))}function aN(e){return zO(e)||Array.isArray(e)?Object.keys(e):[]}function iN(e,t){if(t=t||[],!e.length)return t;const r=e.slice(0).shift(),n=e.slice(1);return t.length?iN(n,TO(t.map((e=>r.map((t=>[t].concat(e))))))):iN(n,r.map((e=>e)))}function sN(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 lN(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=UO(s,NO),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 zO(u)||sN(l,a.concat(t)),u}}function cN(e){return{required:e}}const uN=["properties","patternProperties","definitions","dependencies"],dN=["anyOf","oneOf"],fN=["additionalProperties","additionalItems","contains","propertyNames","not","items"],pN={type(e){if(e.some(Array.isArray)){const t=e.map((function(e){return Array.isArray(e)?e:[e]})),r=MO.apply(null,t);if(1===r.length)return r[0];if(r.length>1)return BO(r)}},dependencies:(e,t,r)=>ZO(e).reduce((function(t,n){const o=oN(e,n);let a=UO(o.filter(XO),DO);const i=a.filter(Array.isArray);if(i.length){if(i.length===a.length)t[n]=JO(a);else{const e=a.filter(HO),o=i.map(cN);t[n]=r(e.concat(o),n)}return t}return a=UO(a,NO),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(XO)}(iN(OO(e)),r),o=UO(n,NO);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 AO(t)/r},enum(e){const t=FO.apply(null,e.concat(DO));if(t.length)return VO(t)}};pN.$id=eN,pN.$ref=eN,pN.$schema=eN,pN.additionalItems=YO,pN.additionalProperties=YO,pN.anyOf=pN.oneOf,pN.contains=YO,pN.default=eN,pN.definitions=pN.dependencies,pN.description=eN,pN.examples=e=>UO(TO(e),DO),pN.exclusiveMaximum=rN,pN.exclusiveMinimum=tN,pN.items=qO,pN.maximum=rN,pN.maxItems=rN,pN.maxLength=rN,pN.maxProperties=rN,pN.minimum=tN,pN.minItems=tN,pN.minLength=tN,pN.minProperties=tN,pN.properties=WO,pN.propertyNames=YO,pN.required=e=>JO(e),pN.title=eN,pN.uniqueItems=e=>e.some(QO);const mN={properties:WO,items:qO};function hN(e,t,r){t=RO(t,{ignoreAdditionalProperties:!1,resolvers:pN,complexResolvers:mN,deep:!0});const n=Object.entries(t.complexResolvers);const o=function e(r,o,a){r=OO(r.filter(XO)),a=a||[];const i=zO(o)?o:{};if(!r.length)return;if(r.some(GO))return!1;if(r.every(QO))return!0;r=r.filter(zO);const s=ZO(r);if(t.deep&&KO(s,"allOf"))return hN({allOf:r},t);const l=n.map((([e,t])=>s.filter((e=>t.keywords.includes(e)))));return l.forEach((e=>LO(s,e))),s.forEach((function(n){const o=oN(r,n),s=UO(o.filter(XO),function(e){return function(t,r){return NO({[e]:t},{[e]:r})}}(n));if(1===s.length&&KO(dN,n))i[n]=s[0].map((t=>e([t],t)));else if(1!==s.length||KO(uN,n)||KO(fN,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]?sN(s,a.concat(n)):void 0===i[n]&&delete i[n]}else i[n]=s[0]})),n.reduce(((n,[o,i],s)=>({...n,...lN(l[s],o,r,e,t,a)})),i)}(IO(nN(e)));return o}hN.options={resolvers:pN};var yN=r(hN);function vN(e){let t;const r=Fm(e,"discriminator.propertyName",void 0);return Ay(r)?t=r:void 0!==r&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),t}function gN(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 bN=_v((function(e){return Iv(cy(e,1,wv,!0))}));function wN(e){let{type:t}=e;return!t&&e.const?gN(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 SN(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]=SN(o,a):e&&t&&("object"===wN(e)||"object"===wN(t))&&n===vd&&Array.isArray(o)&&Array.isArray(a)?r[n]=bN(o,a):r[n]=a,r}),r)}function xN(e,t,r={},n,o){return EN(e,t,r,n,void 0,void 0,o)[0]}function $N(e){const t=e.reduce(((e,t)=>t.length>1?t.flatMap((t=>pv(e.length,(r=>[...e[r]].concat(t))))):(e.forEach((e=>e.push(t[0]))),e)),[[]]);return t}function _N(e,t,r,n,o,a,i){const s=kN(t,r,o);return s!==t?EN(e,s,r,a,n,o,i):[t]}function kN(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={..._y(e,t),...o}}if(yd in n){const e=[],a=function(e,t,r){var n=Zf(e),o=n||yp(e)||Op(e);if(t=Yy(t),null==r){var a=e&&e.constructor;r=o?n?new a:[]:ef(e)&&af(a)?Uh(Ld(e)):{}}return(o?Ym:Fy)(e,(function(e,n,o){return t(r,e,n,o)})),r}(n[yd],((n,o,a)=>{const i=[...r];n[a]=kN(o,t,i),e.push(i)}),{});Cv(r,function(e){return e&&e.length?Iv(e):[]}(null!=(o=e)&&o.length?cy(o,jv):[])),n={...n,[yd]:a}}var o;return pd in n&&!Array.isArray(n.items)&&"boolean"!=typeof n.items&&(n={...n,items:kN(n.items,t,r)}),fm(e,n)?e:n}function EN(e,t,r,n,o=!1,a=[],i){if(!ed(t))return[{}];const s=function(e,t,r,n,o,a,i){const s=_N(e,t,r,n,o,a);if(s.length>1||s[0]!==t)return s;if(ld in t)return CN(e,t,r,n,o,a).flatMap((t=>EN(e,t,r,a,n,o,i)));if(od in t&&Array.isArray(t.allOf))return $N(t.allOf.map((t=>EN(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(EN(e,l,r,a,n,o,i))),c&&"boolean"!=typeof c&&(p=p.concat(EN(e,c,r,a,n,o,i)));else{const t=d?l:c;t&&"boolean"!=typeof t&&(p=p.concat(EN(e,t,r,a,n,o,i)))}return p.length&&(f=p.map((e=>SN(u,e)))),f.flatMap((t=>EN(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):yN(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?xN(e,{$ref:Fm(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:gN(Fm(i,[t]))}:{type:gN(Fm(i,[t]))},a.properties[t]=n,gv(a.properties,[t,rd],!0)})),a}(e,l,r,n,i):l}))}function CN(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=vN(t);a=a.map((e=>kN(e,r,[])));const c=yv(e,i,a,r,s);if(n)return a.map((e=>SN(l,e)));t=SN(l,a[c])}return[t]}(e,l,r,n,a);return c.flatMap((t=>jN(e,s,t,r,n,o,a,i)))}function jN(e,t,r,n,o,a,i,s){let l=[r];for(const c in t){if(!o&&void 0===Fm(i,[c]))continue;if(r.properties&&!(c in r.properties))continue;const[u,d]=xy(c,t);return Array.isArray(d)?l[0]=PN(r,d):ed(d)&&(l=ON(e,r,n,c,d,o,a,i,s)),l.flatMap((t=>jN(e,u,t,n,o,a,i,s)))}return l}function PN(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 ON(e,t,r,n,o,a,i,s,l){return EN(e,o,r,s,a,i,l).flatMap((o=>{const{oneOf:c,...u}=o;if(t=SN(t,u),void 0===c)return t;const d=c.map((t=>"boolean"!=typeof t&&bd in t?_N(e,t,r,a,i,s):[t]));return $N(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]=xy(n,c.properties),d={...c,properties:u};return EN(e,d,r,s,a,i,l).map((e=>SN(t,e)))}))}(e,t,r,n,o,a,i,s,l)))}))}const NN={type:"object",$id:"_$junk_option_schema_id$_",properties:{__not_really_there__:{type:"number"}}};function AN(e,t,r,n,o){let a=0;return r&&(ef(r.properties)?a+=function(e,t,r){var n=Zf(e)?Ry:Jy,o=arguments.length<3;return n(e,Yy(t),r,o,zy)}(r.properties,((r,a,i)=>{const s=Fm(n,i);if("boolean"==typeof a)return r;if(jy(a,bd)){const n=xN(e,a,t,s,o);return r+AN(e,t,n,s||{},o)}if((jy(a,hd)||jy(a,ad))&&s){const n=jy(a,hd)?hd:ad,i=vN(a);return r+RN(e,t,s,Fm(a,n),-1,i,o)}if("object"===a.type)return ef(s)&&(r+=1),r+AN(e,t,a,s,o);if(a.type===gN(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):Ay(r.type)&&r.type===gN(n)&&(a+=1)),a}function RN(e,t,r,n,o=-1,a,i){const s=n.map((e=>kN(e,t,[]))),l=mv(r,n,a);if(Oy(l))return l;const c=s.reduce(((n,o,i)=>(1===yv(e,r,[NN,o],t,a)&&n.push(i),n)),[]);if(1===c.length)return c[0];c.length||pv(s.length,(e=>c.push(e)));const u=new Set,{bestIndex:d}=c.reduce(((n,o)=>{const{bestScore:a}=n,l=s[o],c=AN(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 TN(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every((e=>ed(e)))}function IN(e){return null==e}function MN(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]?MN(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=Fm(t,i),l=ed(e)&&i in e,c=i in t;return a[i]=MN(e?Fm(e,i):{},s,r,n,o&&(l||!c)),a}),a)}return n&&(!IN(e)&&IN(t)||"number"==typeof t&&isNaN(t))||o&&!IN(t)?e:t}function FN(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]=FN(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 DN(e){return Array.isArray(e.enum)&&1===e.enum.length||id in e}function zN(e,t,r={},n){const o=xN(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&&DN(e)))}function LN(e,t,r,n){return!(!t.uniqueItems||!t.items||"boolean"==typeof t.items)&&zN(e,t.items,r,n)}function VN(e){const t=e[id],r=wN(e);return ed(t)&&Ay(null==t?void 0:t.$data)&&"object"!==r&&"array"!==r}function BN(e,t){const r=e;if(e.enum){let n;if(t){const{enumNames:e}=_d(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}=_d(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 UN=["string","number","integer","boolean","null"];var WN;function qN(e,t=WN.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!==WN.Ignore&&ed(e.additionalItems)?e.additionalItems:{}}function KN(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?Vm(r)||(e[t]=r):Vm(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 HN(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;let f=ed(o)?o:{};const p=ed(t)?t:{};let m=n,h=null,y=l,v=s;if(void 0===p[id]||"never"===(null==l?void 0:l.constAsDefaults)||VN(p))if(ed(m)&&ed(p.default))m=FN(m,p.default);else if(!(sd in p)||p[ad]||p[hd]){if(bd in p){const e=p[bd];s.includes(e)||(v=s.concat(e),h=_y(e,a)),h&&!m&&(m=p.default),d&&h&&!ed(o)&&(f=o)}else if(ld in p){const t={...GN(e,p,r,m),...f};h=CN(e,p,a,!1,[],t,c)[0]}else if(TN(p))m=p.items.map(((t,r)=>HN(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=vN(p),{type:i="null"}=r;!Array.isArray(i)&&UN.includes(i)&&"skipOneOf"===(null==y?void 0:y.constAsDefaults)&&(y={...y,constAsDefaults:"never"}),h=t[RN(e,a,null!=o?o:p.default,t,0,n,c)],h=SN(r,h)}else if(ad in p){const{anyOf:t,...r}=p;if(0===t.length)return;const n=vN(p);h=t[RN(e,a,null!=o?o:p.default,t,0,n,c)],h=SN(r,h)}}else m=p.default;else m=p[id];if(h)return HN(e,h,{rootSchema:a,includeUndefinedValues:i,_recurseList:v,experimental_defaultFormStateBehavior:y,experimental_customMergeAllOf:c,parentDefaults:m,rawFormData:null!=o?o:f,required:u,shouldMergeDefaultsIntoFormData:d});void 0===m&&(m=p.default);const g=GN(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,a){const i=!DN(t)&&zN(e,t,r,a);let s=n;if(i){const e=BN(t);s=(null==e?void 0:e.some((e=>fm(e.value,n))))?n:void 0}const l=t[id]&&"always"===(null==o?void 0:o.constAsDefaults);l&&(s=t.const);return s}(e,p,a,o,l,c);ed(o)&&!(od in p)||(b=MN(b,n,r,!0))}return b}function GN(e,t,r={},n){switch(wN(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?xN(e,f,n,d,s):f,m=p[id],h=Object.keys(p.properties||{}).reduce(((t,r)=>{var f;const h=Fm(p,[yd,r]),y=ed(m)&&void 0!==m[r],v=(ed(h)&&id in h||y)&&"never"!==(null==i?void 0:i.constAsDefaults)&&!VN(h);return KN(t,r,HN(e,h,{rootSchema:n,_recurseList:a,experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:s,includeUndefinedValues:!0===o,parentDefaults:Fm(u,[r]),rawFormData:Fm(d,[r]),required:null===(f=p.required)||void 0===f?void 0:f.includes(r),shouldMergeDefaultsIntoFormData:c}),o,l,p.required,i,v),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 y=HN(e,t,{rootSchema:n,_recurseList:a,experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:s,includeUndefinedValues:!0===o,parentDefaults:Fm(u,[r]),rawFormData:Fm(d,[r]),required:null===(m=p.required)||void 0===m?void 0:m.includes(r),shouldMergeDefaultsIntoFormData:c});KN(h,r,y,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,y="never"===m,v="requiredOnly"===m,g="all"===m||!y&&!v,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=qN(f,WN.Fallback,r);return HN(e,c,{rootSchema:n,_recurseList:o,experimental_defaultFormStateBehavior:a,experimental_customMergeAllOf:i,parentDefaults:t,required:s,shouldMergeDefaultsIntoFormData:l})}))),Array.isArray(r)){const t=qN(f);if(y)c=r;else{const u=r.map(((r,u)=>HN(e,t,{rootSchema:n,_recurseList:o,experimental_defaultFormStateBehavior:a,experimental_customMergeAllOf:i,rawFormData:r,parentDefaults:Fm(c,[u]),required:s,shouldMergeDefaultsIntoFormData:l})));c=MN(c,u,(v&&s||g)&&h)}}if(!1===(ed(f)&&id in f&&"never"!==(null==a?void 0:a.constAsDefaults))){if(y)return null!=c?c:w;if(v&&!s)return c||void 0}const S=Array.isArray(c)?c.length:0;if(!f.minItems||LN(e,f,n,i)||b(e,f,n)||f.minItems<=S)return c||w;const x=c||[],$=qN(f,WN.Invert),_=$.default,k=new Array(f.minItems-S).fill(HN(e,$,{parentDefaults:_,rootSchema:n,_recurseList:o,experimental_defaultFormStateBehavior:a,experimental_customMergeAllOf:i,required:s,shouldMergeDefaultsIntoFormData:l}));return x.concat(k)}(e,t,r,n)}}function QN(e,t,r,n,o=!1,a,i){if(!ed(t))throw new Error("Invalid schema: "+t);const s=HN(e,xN(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 MN(s,r,!0,"useDefaultIfFormDataUndefined"===e,!0)}return s}function YN(e={}){return"widget"in _d(e)&&"hidden"!==_d(e).widget}function JN(e,t,r={},n,o){if("files"===r[xd])return!0;if(t.items){const r=xN(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"}(WN||(WN={}));const XN=Symbol("no Value");function ZN(e,t,r,n,o={},a){let i;if(jy(r,yd)){const s={};if(jy(n,yd)){const e=Fm(n,yd,{});Object.keys(e).forEach((e=>{jy(o,e)&&(s[e]=void 0)}))}const l=Object.keys(Fm(r,yd,{})),c={};l.forEach((i=>{const l=Fm(o,i);let u=Fm(n,[yd,i],{}),d=Fm(r,[yd,i],{});jy(u,bd)&&(u=xN(e,u,t,l,a)),jy(d,bd)&&(d=xN(e,d,t,l,a));const f=Fm(u,"type"),p=Fm(d,"type");if(!f||f===p)if(jy(s,i)&&delete s[i],"object"===p||"array"===p&&Array.isArray(l)){const r=ZN(e,t,d,u,l,a);void 0===r&&"array"!==p||(c[i]=r)}else{const e=Fm(d,"default",XN),t=Fm(u,"default",XN);e!==XN&&e!==l&&(t===l?s[i]=e:!0===Fm(d,"readOnly")&&(s[i]=void 0));const r=Fm(d,"const",XN),n=Fm(u,"const",XN);r!==XN&&r!==l&&(s[i]=n===l?r:void 0)}})),i={..."string"==typeof o||Array.isArray(o)?void 0:o,...s,...c}}else if("array"===Fm(n,"type")&&"array"===Fm(r,"type")&&Array.isArray(o)){let s=Fm(n,"items"),l=Fm(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{jy(s,bd)&&(s=xN(e,s,t,o,a)),jy(l,bd)&&(l=xN(e,l,t,o,a));const n=Fm(s,"type"),c=Fm(l,"type");if(!n||n===c){const n=Fm(r,"maxItems",-1);i="object"===c?o.reduce(((r,o)=>{const i=ZN(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 eA(e,t,r,n,o,a,i,s=[],l){if(bd in t||ld in t||od in t){const c=xN(e,t,a,i,l);if(-1===s.findIndex((e=>fm(e,c))))return eA(e,c,r,n,o,a,i,s.concat(c),l)}if(pd in t&&!Fm(t,[pd,bd]))return eA(e,Fm(t,pd),r,n,o,a,i,s,l);const c={$id:o||r};if("object"===wN(t)&&yd in t)for(const o in t.properties){const u=Fm(t,[yd,o]),d=c[dd]+n+o;c[o]=eA(e,ed(u)?u:{},r,n,d,a,Fm(i,[o]),s,l)}return c}function tA(e,t,r,n,o,a="root",i="_",s){return eA(e,t,a,i,r,n,o,void 0,s)}function rA(e,t,r,n,o,a=[],i){if(bd in t||ld in t||od in t){const s=xN(e,t,n,o,i);if(-1===a.findIndex((e=>fm(e,s))))return rA(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=vN(t),u=l[RN(e,n,o,l,0,c,i)];s={...s,...rA(e,u,r,n,o,a,i)}}if(nd in t&&!1!==t[nd]&&gv(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]=rA(e,l[o],`${r}.${o}`,n,t,a,i):c?s[o]=rA(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]=rA(e,l,`${r}.${o}`,n,t,a,i)}))}else if(yd in t)for(const l in t.properties){const c=Fm(t,[yd,l]);s[l]=rA(e,c,`${r}.${l}`,n,Fm(o,[l]),a,i)}return s}function nA(e,t,r="",n,o,a){return rA(e,t,r,n,o,void 0,a)}class oA{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||!fm(this.rootSchema,t)||!fm(this.experimental_defaultFormStateBehavior,r)||this.experimental_customMergeAllOf!==n)}getDefaultFormState(e,t,r=!1){return QN(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=_d(r,o),{label:s=!0}=i;let l=!!s;const c=wN(t);return"array"===c&&(l=LN(e,t,n,a)||JN(e,t,r,n,a)||YN(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 RN(this.validator,this.rootSchema,e,t,r,n,this.experimental_customMergeAllOf)}getFirstMatchingOption(e,t,r){return yv(this.validator,e,t,this.rootSchema,r)}getMatchingOption(e,t,r){return hv(this.validator,e,t,this.rootSchema,r)}isFilesArray(e,t){return JN(this.validator,e,t,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(e){return LN(this.validator,e,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(e){return zN(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 Vm(o)||(i=FN(o,r,!0),a=[...n].concat(a)),{errorSchema:i,errors:a}}(this.validator,e,t)}retrieveSchema(e,t){return xN(this.validator,e,this.rootSchema,t,this.experimental_customMergeAllOf)}sanitizeDataForNewSchema(e,t,r){return ZN(this.validator,this.rootSchema,e,t,r,this.experimental_customMergeAllOf)}toIdSchema(e,t,r,n="root",o="_"){return tA(this.validator,e,t,this.rootSchema,r,n,o,this.experimental_customMergeAllOf)}toPathSchema(e,t,r){return nA(this.validator,e,t,this.rootSchema,r,this.experimental_customMergeAllOf)}}function aA(e,t){let r=String(e);for(;r.length<t;)r="0"+r;return r}function iA(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 iA(t,e).reverse();const r=[];for(let n=e;n<=t;n++)r.push({value:n,label:aA(n,2)});return r}function sA(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 lA(e,t=[],r){if(Array.isArray(e))return e.map((e=>lA(e,t))).filter((e=>e!==r));const n=""===e||null===e?-1:Number(e),o=t[n];return o?o.value:r}function cA(e,t,r=[]){const n=lA(e,r);return Array.isArray(t)?t.filter((e=>!fm(e,n))):fm(n,t)?void 0:t}function uA(e,t){return Array.isArray(t)?t.some((t=>fm(t,e))):fm(t,e)}function dA(e,t=[],r=!1){const n=t.map(((t,r)=>uA(t.value,e)?String(r):void 0)).filter((e=>void 0!==e));return r?n:n[0]}function fA(e,t,r=[]){const n=lA(e,r);if(!IN(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}function pA(e){return ny(e,5)}class mA{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?Fm(this.errorSchema,e):this.errorSchema;var r,n,o,a;return!t&&e&&(t={},r=this.errorSchema,n=e,o=t,a="function"==typeof(a=Object)?a:void 0,null==r||vv(r,n,o,a)),t}resetAllErrors(e){return this.errorSchema=e?pA(e):{},this}addErrors(e,t){const r=this.getOrCreateErrorBlock(t);let n=Fm(r,ud);return Array.isArray(n)||(n=[],r[ud]=n),Array.isArray(e)?gv(r,ud,[...new Set([...n,...e])]):gv(r,ud,[...new Set([...n,e])]),this}setErrors(e,t){const r=this.getOrCreateErrorBlock(t),n=Array.isArray(e)?[...new Set([...e])]:[e];return gv(r,ud,n),this}clearErrors(e){return gv(this.getOrCreateErrorBlock(e),ud,[]),this}}function hA(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 yA(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 vA(e,t,r={},n=!0){const o={type:t||"text",...yA(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 gA={props:{disabled:!1},submitText:"Submit",norender:!1};function bA(e={}){const t=_d(e);if(t&&t[gd]){const e=t[gd];return{...gA,...e}}return gA}function wA(e,t,r={}){const{templates:n}=t;return"ButtonTemplates"===e?n[e]:r[e]||n[e]}var SA={exports:{}},xA={},$A=L,_A=Symbol.for("react.element"),kA=Symbol.for("react.fragment"),EA=Object.prototype.hasOwnProperty,CA=$A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,jA={key:!0,ref:!0,__self:!0,__source:!0};function PA(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)EA.call(t,n)&&!jA.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:_A,type:e,key:a,ref:i,props:o,_owner:CA.current}}xA.Fragment=kA,xA.jsx=PA,xA.jsxs=PA,SA.exports=xA;var OA,NA=SA.exports,AA={exports:{}},RA={},TA=Symbol.for("react.element"),IA=Symbol.for("react.portal"),MA=Symbol.for("react.fragment"),FA=Symbol.for("react.strict_mode"),DA=Symbol.for("react.profiler"),zA=Symbol.for("react.provider"),LA=Symbol.for("react.context"),VA=Symbol.for("react.server_context"),BA=Symbol.for("react.forward_ref"),UA=Symbol.for("react.suspense"),WA=Symbol.for("react.suspense_list"),qA=Symbol.for("react.memo"),KA=Symbol.for("react.lazy"),HA=Symbol.for("react.offscreen");function GA(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case TA:switch(e=e.type){case MA:case DA:case FA:case UA:case WA:return e;default:switch(e=e&&e.$$typeof){case VA:case LA:case BA:case KA:case qA:case zA:return e;default:return t}}case IA:return t}}}OA=Symbol.for("react.module.reference"),RA.ContextConsumer=LA,RA.ContextProvider=zA,RA.Element=TA,RA.ForwardRef=BA,RA.Fragment=MA,RA.Lazy=KA,RA.Memo=qA,RA.Portal=IA,RA.Profiler=DA,RA.StrictMode=FA,RA.Suspense=UA,RA.SuspenseList=WA,RA.isAsyncMode=function(){return!1},RA.isConcurrentMode=function(){return!1},RA.isContextConsumer=function(e){return GA(e)===LA},RA.isContextProvider=function(e){return GA(e)===zA},RA.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===TA},RA.isForwardRef=function(e){return GA(e)===BA},RA.isFragment=function(e){return GA(e)===MA},RA.isLazy=function(e){return GA(e)===KA},RA.isMemo=function(e){return GA(e)===qA},RA.isPortal=function(e){return GA(e)===IA},RA.isProfiler=function(e){return GA(e)===DA},RA.isStrictMode=function(e){return GA(e)===FA},RA.isSuspense=function(e){return GA(e)===UA},RA.isSuspenseList=function(e){return GA(e)===WA},RA.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===MA||e===DA||e===FA||e===UA||e===WA||e===HA||"object"==typeof e&&null!==e&&(e.$$typeof===KA||e.$$typeof===qA||e.$$typeof===zA||e.$$typeof===LA||e.$$typeof===BA||e.$$typeof===OA||void 0!==e.getModuleId)},RA.typeOf=GA,AA.exports=RA;var QA=r(AA.exports);const YA={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 JA(e,t,r={}){const n=wN(e);if("function"==typeof t||t&&QA.isForwardRef(L.createElement(t))||QA.isMemo(t))return function(e){let t=Fm(e,"MergedWidget");if(!t){const r=e.defaultProps&&e.defaultProps.options||{};t=({options:t,...n})=>NA.jsx(e,{options:{...r,...t},...n}),gv(e,"MergedWidget",t)}return t}(t);if("string"!=typeof t)throw new Error("Unsupported widget definition: "+typeof t);if(t in r){return JA(e,r[t],r)}if("string"==typeof n){if(!(n in YA))throw new Error(`No widget for type '${n}'`);if(t in YA[n]){return JA(e,r[YA[n][t]],r)}}throw new Error(`No widget '${t}' for type '${n}'`)}function XA(e,t){return`${Ay(e)?e:e[dd]}__${t}`}function ZA(e){return XA(e,"description")}function eR(e){return XA(e,"error")}function tR(e){return XA(e,"examples")}function rR(e){return XA(e,"help")}function nR(e){return XA(e,"title")}function oR(e,t=!1){const r=t?` ${tR(e)}`:"";return`${eR(e)} ${ZA(e)} ${rR(e)}${r}`}function aR(e,t){return`${e}-${t}`}function iR(e,t,r){return t?r:e}function sR(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 lR(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 lR(e.anyOf[0]);if(e.oneOf&&1===e.oneOf.length)return lR(e.oneOf[0]);if(e.allOf){const t=e=>lR(e);return e.allOf.some(t)}return!1}function cR(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 uR(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];Gd(o)&&(r=r.concat(uR(o,[...t,n])))}return r}),r)}function dR(e){return Zf(e)?Cm(e,Im):mm(e)?[e]:dh(Em(Am(e)))}function fR(e){return Object.keys(e).reduce(((t,r)=>{if("addError"===r)return t;{const n=e[r];return Gd(n)?{...t,[r]:fR(n)}:{...t,[r]:n}}}),{})}function pR(e){if(!e)return"";const t=new Date(e);return`${aA(t.getFullYear(),4)}-${aA(t.getMonth()+1,2)}-${aA(t.getDate(),2)}T${aA(t.getHours(),2)}:${aA(t.getMinutes(),2)}:${aA(t.getSeconds(),2)}.${aA(t.getMilliseconds(),3)}`}function mR(e,t){if(!t)return e;const{errors:r,errorSchema:n}=e;let o=uR(t),a=t;return Vm(n)||(a=FN(n,t,!0),o=[...r].concat(o)),{errorSchema:a,errors:o}}function hR(e){return Array.isArray(e)?function(e){for(let t=0;t<e.length;t++)e[t]=hR(e[t]);return e}([...e]):ef(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]=hR(n)}return e}({...e}):e}function yR(e,t,r){for(var n=-1,o=t.length,a={};++n<o;){var i=t[n],s=Mm(e,i);r(s,i)&&vv(a,Rm(i,e),s)}return a}var vR,gR=_v((function(e,t){return wv(e)?function(e,t,r,n){var o=-1,a=Ov,i=!0,s=e.length,l=[],c=t.length;if(!s)return l;r&&(t=Cm(t,$p(r))),n?(a=Nv,i=!1):t.length>=200&&(a=Of,i=!1,t=new jf(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}(e,cy(t,1,wv,!0)):[]})),bR=gR;function wR(e,t){const r=Gd(e),n=Gd(t);if(e===t||!r&&!n)return[];if(r&&!n)return zp(e);if(!r&&n)return zp(t);return[...zp(function(e,t){if(null==e)return{};var r=Cm(mh(e),(function(e){return[e]}));return t=Yy(t),yR(e,r,(function(e,r){return t(e,r[0])}))}(e,((e,r)=>!fm(e,Fm(t,r))))),...bR(zp(t),zp(e))]}!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)"}(vR||(vR={}));var SR,xR={exports:{}},$R={},_R={},kR={},ER={},CR={},jR={};function PR(){return SR||(SR=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())}}(jR)),jR}var OR,NR,AR={};function RR(){return OR||(OR=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=PR();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}}}(AR)),AR}function TR(){return NR||(NR=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=PR(),r=RR();var n=PR();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=RR();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=P(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=P(this.rhs,e,r),this}get names(){return j(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=P(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 y extends m{}y.kind="else";class v 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 y(e):e}return t?!1===e?t instanceof v?t:t.nodes:this.nodes.length?this:new v(N(e),t instanceof v?[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=P(this.condition,e,t),this}get names(){const e=super.names;return j(e,this.condition),this.else&&C(e,this.else.names),e}}v.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=P(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=j(super.names,this.from);return j(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=P(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 _ 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 k extends m{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}k.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 j(e,r){return r instanceof t._CodeOrName?C(e,r.names):e}function P(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 v(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 v(e))}else(){return this._elseNode(new y)}endIf(){return this._endBlockNode(v,y)}_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 _;if(this._blockNode(n),this.code(e),t){const e=this.name("e");this._currNode=n.catch=new k(e),t(e)}return r&&(this._currNode=n.finally=new E,this.code(r)),this._endBlockNode(k,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 v))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 A=T(e.operators.AND);e.and=function(...e){return e.reduce(A)};const R=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(R)}}(CR)),CR}var IR={};!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=TR(),r=PR();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}(IR);var MR,FR,DR,zR={};function LR(){if(MR)return zR;MR=1,Object.defineProperty(zR,"__esModule",{value:!0});const e=TR(),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 zR.default=t,zR}function VR(){return FR||(FR=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=TR(),r=IR,n=LR();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]}}(ER)),ER}var BR={},UR={};Object.defineProperty(UR,"__esModule",{value:!0}),UR.getRules=UR.isJSONType=void 0;const WR=new Set(["string","number","integer","boolean","null","object","array"]);UR.isJSONType=function(e){return"string"==typeof e&&WR.has(e)},UR.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 qR,KR={};function HR(){if(qR)return KR;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 qR=1,Object.defineProperty(KR,"__esModule",{value:!0}),KR.shouldUseRule=KR.shouldUseGroup=KR.schemaHasRulesForType=void 0,KR.schemaHasRulesForType=function({schema:t,self:r},n){const o=r.RULES.types[n];return o&&!0!==o&&e(t,o)},KR.shouldUseGroup=e,KR.shouldUseRule=t,KR}!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=UR,r=HR(),n=VR(),o=TR(),a=IR;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}(TR);var LR,VR={};var BR,UR,WR={},qR={};function KR(){if(BR)return qR;BR=1,Object.defineProperty(qR,"__esModule",{value:!0}),qR.validateUnion=qR.validateArray=qR.usePattern=qR.callValidateCode=qR.schemaProperties=qR.allSchemaProperties=qR.noPropertyInData=qR.propertyInData=qR.isOwnProperty=qR.hasPropFunc=qR.reportMissingProp=qR.checkMissingProp=qR.checkReportMissingProp=void 0;const e=ER(),t=CR,r=AR(),n=CR;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)):[]}qR.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()}))},qR.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}`))))},qR.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},qR.hasPropFunc=o,qR.isOwnProperty=a,qR.propertyInData=function(t,r,n,o){const i=e._`${r}${(0,e.getProperty)(n)} !== undefined`;return o?e._`${i} && ${a(t,r,n)}`:i},qR.noPropertyInData=i,qR.allSchemaProperties=s,qR.schemaProperties=function(e,r){return s(r).filter((n=>!(0,t.alwaysValidSchema)(e,r[n])))},qR.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 qR.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})`})},qR.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)}))}},qR.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)))},qR}function HR(){if(UR)return WR;UR=1,Object.defineProperty(WR,"__esModule",{value:!0}),WR.validateKeywordUsage=WR.validSchemaType=WR.funcKeywordCode=WR.macroKeywordCode=void 0;const e=ER(),t=AR(),r=KR(),n=RR();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 WR.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)))},WR.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)},WR.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))},WR.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)}}},WR}var GR,QR={};var YR={},JR=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},XR={exports:{}},ZR=XR.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),eT(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function eT(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 ZR.arrayKeywords)for(var f=0;f<d.length;f++)eT(e,t,r,d[f],o+"/"+u+"/"+f,a,o,u,n,f)}else if(u in ZR.propsKeywords){if(d&&"object"==typeof d)for(var p in d)eT(e,t,r,d[p],o+"/"+u+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),a,o,u,n,p)}else(u in ZR.keywords||e.allKeys&&!(u in ZR.skipKeywords))&&eT(e,t,r,d,o+"/"+u,a,o,u,n)}r(n,o,a,i,s,l,c)}}ZR.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},ZR.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},ZR.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},ZR.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 tT=XR.exports;Object.defineProperty(YR,"__esModule",{value:!0}),YR.getSchemaRefs=YR.resolveUrl=YR.normalizeId=YR._getFullPath=YR.getFullPath=YR.inlineRef=void 0;const rT=CR,nT=JR,oT=tT,aT=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);YR.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!sT(e):!!t&&lT(e)<=t)};const iT=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function sT(e){for(const t in e){if(iT.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(sT))return!0;if("object"==typeof r&&sT(r))return!0}return!1}function lT(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!aT.has(r)&&("object"==typeof e[r]&&(0,rT.eachItem)(e[r],(e=>t+=lT(e))),t===1/0))return 1/0}return t}function cT(e,t="",r){!1!==r&&(t=fT(t));const n=e.parse(t);return uT(e,n)}function uT(e,t){return e.serialize(t).split("#")[0]+"#"}YR.getFullPath=cT,YR._getFullPath=uT;const dT=/#\/?$/;function fT(e){return e?e.replace(dT,""):""}YR.normalizeId=fT,YR.resolveUrl=function(e,t,r){return r=fT(r),e.resolve(t,r)};const pT=/^[a-z_][-a-z0-9._]*$/i;var mT;function hT(){if(mT)return vR;mT=1,Object.defineProperty(vR,"__esModule",{value:!0}),vR.getData=vR.KeywordCxt=vR.validateFunctionCode=void 0;const e=function(){if(OR)return yR;OR=1,Object.defineProperty(yR,"__esModule",{value:!0}),yR.boolOrEmptySchema=yR.topBoolOrEmptySchema=void 0;const e=RR(),t=ER(),r=AR(),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 yR.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))},yR.boolOrEmptySchema=function(e,t){const{gen:r,schema:n}=e;!1===n?(r.var(t,!1),o(e)):r.var(t,!0)},yR}(),t=TR,r=zR(),n=TR,o=function(){if(LR)return VR;LR=1,Object.defineProperty(VR,"__esModule",{value:!0}),VR.assignDefaults=void 0;const e=ER(),t=CR;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 VR.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)))},VR}(),a=HR(),i=function(){if(GR)return QR;GR=1,Object.defineProperty(QR,"__esModule",{value:!0}),QR.extendSubschemaMode=QR.extendSubschemaData=QR.getSubschema=void 0;const e=ER(),t=CR;return QR.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')},QR.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)},QR.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},QR}(),s=ER(),l=AR(),c=YR,u=CR,d=RR();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)||_(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"))&&_(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)))&&_(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 _(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,u.checkStrictMode)(e,t,e.opts.strictTypes)}vR.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 k{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",P(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 k(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)}vR.KeywordCxt=k;const C=/^\/(?:[^~]|~0|~1)*$/,j=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function P(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=j.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 vR.getData=P,vR}YR.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:r,uriResolver:n}=this.opts,o=fT(e[r]||t),a={"":o},i=cT(n,o,!1),s={},l=new Set;return oT(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=fT(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!==fT(d)&&("#"===t[0]?(c(e,s[t],t),s[t]=e):this.refs[t]=d),t}function m(e){if("string"==typeof e){if(!pT.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&&!nT(e,t))throw u(r)}function u(e){return new Error(`reference "${e}" resolves to more than one schema`)}};var vT,yT={};function gT(){if(vT)return yT;vT=1,Object.defineProperty(yT,"__esModule",{value:!0});class e extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}return yT.default=e,yT}var bT,wT={};function ST(){if(bT)return wT;bT=1,Object.defineProperty(wT,"__esModule",{value:!0});const e=YR;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 wT.default=t,wT}var xT={};Object.defineProperty(xT,"__esModule",{value:!0}),xT.resolveSchema=xT.getCompilingSchema=xT.resolveRef=xT.compileSchema=xT.SchemaEnv=void 0;const $T=ER(),_T=gT(),kT=AR(),ET=YR,CT=CR,jT=hT();let PT=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,ET.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 OT(e){const t=AT.call(this,e);if(t)return t;const r=(0,ET.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new $T.CodeGen(this.scope,{es5:n,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:_T.default,code:$T._`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const c={gen:i,allErrors:this.opts.allErrors,data:kT.default.data,parentData:kT.default.parentData,parentDataProperty:kT.default.parentDataProperty,dataNames:[kT.default.data],dataPathArr:[$T.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,$T.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:$T.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:$T._`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,jT.validateFunctionCode)(c),i.optimize(this.opts.code.optimize);const t=i.toString();u=`${i.scopeRefs(kT.default.scope)}return ${t}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const r=new Function(`${kT.default.self}`,`${kT.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 $T.Name?void 0:e,items:t instanceof $T.Name?void 0:t,dynamicProps:e instanceof $T.Name,dynamicItems:t instanceof $T.Name},r.source&&(r.source.evaluated=(0,$T.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 NT(e){return(0,ET.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:OT.call(this,e)}function AT(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 RT(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||TT.call(this,e,t)}function TT(e,t){const r=this.opts.uriResolver.parse(t),n=(0,ET._getFullPath)(this.opts.uriResolver,r);let o=(0,ET.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return MT.call(this,r,e);const a=(0,ET.normalizeId)(n),i=this.refs[a]||this.schemas[a];if("string"==typeof i){const t=TT.call(this,e,i);if("object"!=typeof(null==t?void 0:t.schema))return;return MT.call(this,r,t)}if("object"==typeof(null==i?void 0:i.schema)){if(i.validate||OT.call(this,i),a===(0,ET.normalizeId)(t)){const{schema:t}=i,{schemaId:r}=this.opts,n=t[r];return n&&(o=(0,ET.resolveUrl)(this.opts.uriResolver,o,n)),new PT({schema:t,schemaId:r,root:e,baseId:o})}return MT.call(this,r,i)}}xT.SchemaEnv=PT,xT.compileSchema=OT,xT.resolveRef=function(e,t,r){var n;r=(0,ET.resolveUrl)(this.opts.uriResolver,t,r);const o=e.refs[r];if(o)return o;let a=RT.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 PT({schema:o,schemaId:i,root:e,baseId:t}))}return void 0!==a?e.refs[r]=NT.call(this,a):void 0},xT.getCompilingSchema=AT,xT.resolveSchema=TT;const IT=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function MT(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,CT.unescapeFragment)(n)];if(void 0===e)return;const o="object"==typeof(r=e)&&r[this.opts.schemaId];!IT.has(n)&&o&&(t=(0,ET.resolveUrl)(this.opts.uriResolver,t,o))}let a;if("boolean"!=typeof r&&r.$ref&&!(0,CT.schemaHasRulesButRef)(r,this.RULES)){const e=(0,ET.resolveUrl)(this.opts.uriResolver,t,r.$ref);a=TT.call(this,n,e)}const{schemaId:i}=this.opts;return a=a||new PT({schema:r,schemaId:i,root:n,baseId:t}),a.schema!==a.root.schema?a:void 0}var FT={$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},DT={},zT={exports:{}};
|
|
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}(BR);var GR,QR={};var YR,JR,XR={},ZR={};function eT(){if(YR)return ZR;YR=1,Object.defineProperty(ZR,"__esModule",{value:!0}),ZR.validateUnion=ZR.validateArray=ZR.usePattern=ZR.callValidateCode=ZR.schemaProperties=ZR.allSchemaProperties=ZR.noPropertyInData=ZR.propertyInData=ZR.isOwnProperty=ZR.hasPropFunc=ZR.reportMissingProp=ZR.checkMissingProp=ZR.checkReportMissingProp=void 0;const e=TR(),t=IR,r=LR(),n=IR;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)):[]}ZR.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()}))},ZR.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}`))))},ZR.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},ZR.hasPropFunc=o,ZR.isOwnProperty=a,ZR.propertyInData=function(t,r,n,o){const i=e._`${r}${(0,e.getProperty)(n)} !== undefined`;return o?e._`${i} && ${a(t,r,n)}`:i},ZR.noPropertyInData=i,ZR.allSchemaProperties=s,ZR.schemaProperties=function(e,r){return s(r).filter((n=>!(0,t.alwaysValidSchema)(e,r[n])))},ZR.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 ZR.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})`})},ZR.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)}))}},ZR.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)))},ZR}function tT(){if(JR)return XR;JR=1,Object.defineProperty(XR,"__esModule",{value:!0}),XR.validateKeywordUsage=XR.validSchemaType=XR.funcKeywordCode=XR.macroKeywordCode=void 0;const e=TR(),t=LR(),r=eT(),n=VR();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 XR.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)))},XR.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,y=a(c,u,h),v=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(v,e._`${n}${(0,r.callValidateCode)(i,y,o,a)}`,s.modifying)}function b(t){var r;c.if((0,e.not)(null!==(r=s.valid)&&void 0!==r?r:v),t)}i.block$data(v,(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(v,!1).if(e._`${r} instanceof ${m.ValidationError}`,(()=>c.assign(t,e._`${r}.errors`)),(()=>c.throw(r))))),t}():function(){const t=e._`${y}.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:v)},XR.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))},XR.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)}}},XR}var rT,nT={};var oT={},aT=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},iT={exports:{}},sT=iT.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),lT(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function lT(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 sT.arrayKeywords)for(var f=0;f<d.length;f++)lT(e,t,r,d[f],o+"/"+u+"/"+f,a,o,u,n,f)}else if(u in sT.propsKeywords){if(d&&"object"==typeof d)for(var p in d)lT(e,t,r,d[p],o+"/"+u+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),a,o,u,n,p)}else(u in sT.keywords||e.allKeys&&!(u in sT.skipKeywords))&&lT(e,t,r,d,o+"/"+u,a,o,u,n)}r(n,o,a,i,s,l,c)}}sT.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},sT.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},sT.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},sT.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 cT=iT.exports;Object.defineProperty(oT,"__esModule",{value:!0}),oT.getSchemaRefs=oT.resolveUrl=oT.normalizeId=oT._getFullPath=oT.getFullPath=oT.inlineRef=void 0;const uT=IR,dT=aT,fT=cT,pT=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);oT.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!hT(e):!!t&&yT(e)<=t)};const mT=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function hT(e){for(const t in e){if(mT.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(hT))return!0;if("object"==typeof r&&hT(r))return!0}return!1}function yT(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!pT.has(r)&&("object"==typeof e[r]&&(0,uT.eachItem)(e[r],(e=>t+=yT(e))),t===1/0))return 1/0}return t}function vT(e,t="",r){!1!==r&&(t=wT(t));const n=e.parse(t);return gT(e,n)}function gT(e,t){return e.serialize(t).split("#")[0]+"#"}oT.getFullPath=vT,oT._getFullPath=gT;const bT=/#\/?$/;function wT(e){return e?e.replace(bT,""):""}oT.normalizeId=wT,oT.resolveUrl=function(e,t,r){return r=wT(r),e.resolve(t,r)};const ST=/^[a-z_][-a-z0-9._]*$/i;var xT;function $T(){if(xT)return _R;xT=1,Object.defineProperty(_R,"__esModule",{value:!0}),_R.getData=_R.KeywordCxt=_R.validateFunctionCode=void 0;const e=function(){if(DR)return kR;DR=1,Object.defineProperty(kR,"__esModule",{value:!0}),kR.boolOrEmptySchema=kR.topBoolOrEmptySchema=void 0;const e=VR(),t=TR(),r=LR(),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 kR.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))},kR.boolOrEmptySchema=function(e,t){const{gen:r,schema:n}=e;!1===n?(r.var(t,!1),o(e)):r.var(t,!0)},kR}(),t=BR,r=HR(),n=BR,o=function(){if(GR)return QR;GR=1,Object.defineProperty(QR,"__esModule",{value:!0}),QR.assignDefaults=void 0;const e=TR(),t=IR;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 QR.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)))},QR}(),a=tT(),i=function(){if(rT)return nT;rT=1,Object.defineProperty(nT,"__esModule",{value:!0}),nT.extendSubschemaMode=nT.extendSubschemaData=nT.getSubschema=void 0;const e=TR(),t=IR;return nT.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')},nT.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)},nT.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},nT}(),s=TR(),l=LR(),c=oT,u=IR,d=VR();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){y(t)&&(v(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 y(e){return"boolean"!=typeof e.schema}function v(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 y(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)||_(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"))&&_(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)))&&_(e,`missing type "${r.join(",")}" for keyword "${o}"`)}}}(e,e.dataTypes)}(e,t),i.block((()=>{for(const e of h.rules)y(e);y(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 _(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,u.checkStrictMode)(e,t,e.opts.strictTypes)}_R.validateFunctionCode=function(t){y(t)&&(v(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 k{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",P(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 k(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)}_R.KeywordCxt=k;const C=/^\/(?:[^~]|~0|~1)*$/,j=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function P(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=j.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 _R.getData=P,_R}oT.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:r,uriResolver:n}=this.opts,o=wT(e[r]||t),a={"":o},i=vT(n,o,!1),s={},l=new Set;return fT(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=wT(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!==wT(d)&&("#"===t[0]?(c(e,s[t],t),s[t]=e):this.refs[t]=d),t}function m(e){if("string"==typeof e){if(!ST.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&&!dT(e,t))throw u(r)}function u(e){return new Error(`reference "${e}" resolves to more than one schema`)}};var _T,kT={};function ET(){if(_T)return kT;_T=1,Object.defineProperty(kT,"__esModule",{value:!0});class e extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}return kT.default=e,kT}var CT,jT={};function PT(){if(CT)return jT;CT=1,Object.defineProperty(jT,"__esModule",{value:!0});const e=oT;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 jT.default=t,jT}var OT={};Object.defineProperty(OT,"__esModule",{value:!0}),OT.resolveSchema=OT.getCompilingSchema=OT.resolveRef=OT.compileSchema=OT.SchemaEnv=void 0;const NT=TR(),AT=ET(),RT=LR(),TT=oT,IT=IR,MT=$T();let FT=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,TT.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 DT(e){const t=LT.call(this,e);if(t)return t;const r=(0,TT.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new NT.CodeGen(this.scope,{es5:n,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:AT.default,code:NT._`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const c={gen:i,allErrors:this.opts.allErrors,data:RT.default.data,parentData:RT.default.parentData,parentDataProperty:RT.default.parentDataProperty,dataNames:[RT.default.data],dataPathArr:[NT.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,NT.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:NT.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:NT._`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,MT.validateFunctionCode)(c),i.optimize(this.opts.code.optimize);const t=i.toString();u=`${i.scopeRefs(RT.default.scope)}return ${t}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const r=new Function(`${RT.default.self}`,`${RT.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 NT.Name?void 0:e,items:t instanceof NT.Name?void 0:t,dynamicProps:e instanceof NT.Name,dynamicItems:t instanceof NT.Name},r.source&&(r.source.evaluated=(0,NT.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 zT(e){return(0,TT.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:DT.call(this,e)}function LT(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 VT(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||BT.call(this,e,t)}function BT(e,t){const r=this.opts.uriResolver.parse(t),n=(0,TT._getFullPath)(this.opts.uriResolver,r);let o=(0,TT.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return WT.call(this,r,e);const a=(0,TT.normalizeId)(n),i=this.refs[a]||this.schemas[a];if("string"==typeof i){const t=BT.call(this,e,i);if("object"!=typeof(null==t?void 0:t.schema))return;return WT.call(this,r,t)}if("object"==typeof(null==i?void 0:i.schema)){if(i.validate||DT.call(this,i),a===(0,TT.normalizeId)(t)){const{schema:t}=i,{schemaId:r}=this.opts,n=t[r];return n&&(o=(0,TT.resolveUrl)(this.opts.uriResolver,o,n)),new FT({schema:t,schemaId:r,root:e,baseId:o})}return WT.call(this,r,i)}}OT.SchemaEnv=FT,OT.compileSchema=DT,OT.resolveRef=function(e,t,r){var n;r=(0,TT.resolveUrl)(this.opts.uriResolver,t,r);const o=e.refs[r];if(o)return o;let a=VT.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 FT({schema:o,schemaId:i,root:e,baseId:t}))}return void 0!==a?e.refs[r]=zT.call(this,a):void 0},OT.getCompilingSchema=LT,OT.resolveSchema=BT;const UT=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function WT(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,IT.unescapeFragment)(n)];if(void 0===e)return;const o="object"==typeof(r=e)&&r[this.opts.schemaId];!UT.has(n)&&o&&(t=(0,TT.resolveUrl)(this.opts.uriResolver,t,o))}let a;if("boolean"!=typeof r&&r.$ref&&!(0,IT.schemaHasRulesButRef)(r,this.RULES)){const e=(0,TT.resolveUrl)(this.opts.uriResolver,t,r.$ref);a=BT.call(this,n,e)}const{schemaId:i}=this.opts;return a=a||new FT({schema:r,schemaId:i,root:n,baseId:t}),a.schema!==a.root.schema?a:void 0}var qT={$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},KT={},HT={exports:{}};
|
|
24
24
|
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
|
|
25
|
-
!function(e,t){!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)+"?\\:\\:"),_=r([h,v,y,g,b,w,S,x,$].join("|")),k=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("^\\[?("+_+")"+r(r("\\%25|\\%(?!"+a+"{2})")+"("+k+")")+"?\\]?$")}}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,_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k=p-m,E=Math.floor,C=String.fromCharCode;function j(e){throw new RangeError(_[e])}function P(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+P((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 A=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:p},R=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>k*h>>1;n+=p)e=E(e/k);return E(n+(k+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&&j("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&&j("invalid-input");var v=A(e.charCodeAt(l++));(v>=p||v>E((f-n)/u))&&j("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)&&j("overflow"),u*=S}var x=t.length+1;a=T(n-c,x,0==c),E(n/x)>f-o&&j("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,_=void 0;try{for(var k,P=e[Symbol.iterator]();!(x=(k=P.next()).done);x=!0){var O=k.value;O>=n&&O<S&&(S=O)}}catch(e){$=!0,_=e}finally{try{!x&&P.return&&P.return()}finally{if($)throw _}}var A=y+1;S-n>E((f-o)/A)&&j("overflow"),o+=(S-n)*A,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&&j("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(R(U+W%q,0))),V=E(W/q)}t.push(C(R(V,0))),a=T(o,A,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"),_e=new RegExp(t("[^]",he,we),"g"),ke=_e;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(_e,V)+"="+f[m].replace(xe,Ee).replace(xe,o).replace(ke,V));return p.length&&(r.query=p.join("&")),r}},je=/^([^\:]+)\:(.*)/,Pe={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(je),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[Pe.scheme]=Pe,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})}(t)}(0,zT.exports);var LT=zT.exports;Object.defineProperty(DT,"__esModule",{value:!0});const VT=LT;VT.code='require("ajv/dist/runtime/uri").default',DT.default=VT,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=hT();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=ER();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=gT(),o=ST(),a=IR,i=xT,s=ER(),l=YR,c=TR,u=CR,d=FT,f=DT,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 j=e.strict,P=null===(t=e.code)||void 0===t?void 0:t.optimize,O=!0===P||void 0===P?1:P||0,N=null!==(n=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==n?n:p,A=null!==(o=e.uriResolver)&&void 0!==o?o:f.default;return{strictSchema:null===(i=null!==(a=e.strictSchema)&&void 0!==a?a:j)||void 0===i||i,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:j)||void 0===l||l,strictTypes:null!==(u=null!==(c=e.strictTypes)&&void 0!==c?c:j)&&void 0!==u?u:"log",strictTuples:null!==(m=null!==(d=e.strictTuples)&&void 0!==d?d:j)&&void 0!==m?m:"log",strictRequired:null!==(v=null!==(h=e.strictRequired)&&void 0!==h?h:j)&&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===(_=e.validateSchema)||void 0===_||_,validateFormats:null===(k=e.validateFormats)||void 0===k||k,unicodeRegExp:null===(E=e.unicodeRegExp)||void 0===E||E,int32range:null===(C=e.int32range)||void 0===C||C,uriResolver:A}}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=k.call(this),e.formats&&$.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&_.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(j.call(this,r,t),!t)return(0,u.eachItem)(r,(e=>P.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=>P.call(this,e,n):e=>n.type.forEach((t=>P.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]=R(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 _(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 k(){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 j(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 P(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=R(t)),e.validateSchema=this.compile(t,!0))}const A={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function R(e){return{anyOf:[e,A]}}}(hR);var BT={},UT={},WT={};Object.defineProperty(WT,"__esModule",{value:!0});const qT={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};WT.default=qT;var KT={};Object.defineProperty(KT,"__esModule",{value:!0}),KT.callRef=KT.getValidate=void 0;const HT=ST(),GT=KR(),QT=ER(),YT=AR(),JT=xT,XT=CR,ZT={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 tI(e,i,a,a.$async);const r=t.scopeValue("root",{ref:c});return tI(e,QT._`${r}.validate`,c,c.$async)}();const u=JT.resolveRef.call(l,c,o,r);if(void 0===u)throw new HT.default(n.opts.uriResolver,o,r);return u instanceof JT.SchemaEnv?function(t){const r=eI(e,t);tI(e,r,t,t.$async)}(u):function(n){const o=t.scopeValue("schema",!0===s.code.source?{ref:n,code:(0,QT.stringify)(n)}:{ref:n}),a=t.name("valid"),i=e.subschema({schema:n,dataTypes:[],schemaPath:QT.nil,topSchemaRef:o,errSchemaPath:r},a);e.mergeEvaluated(i),e.ok(a)}(u)}};function eI(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):QT._`${r.scopeValue("wrapper",{ref:t})}.validate`}function tI(e,t,r,n){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,c=l.passContext?YT.default.this:QT.nil;function u(e){const t=QT._`${e}.errors`;o.assign(YT.default.vErrors,QT._`${YT.default.vErrors} === null ? ${t} : ${YT.default.vErrors}.concat(${t})`),o.assign(YT.default.errors,QT._`${YT.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=XT.mergeEvaluated.props(o,n.props,a.props));else{const t=o.var("props",QT._`${e}.evaluated.props`);a.props=XT.mergeEvaluated.props(o,t,a.props,QT.Name)}if(!0!==a.items)if(n&&!n.dynamicItems)void 0!==n.items&&(a.items=XT.mergeEvaluated.items(o,n.items,a.items));else{const t=o.var("items",QT._`${e}.evaluated.items`);a.items=XT.mergeEvaluated.items(o,t,a.items,QT.Name)}}n?function(){if(!s.$async)throw new Error("async schema referenced by sync schema");const r=o.let("valid");o.try((()=>{o.code(QT._`await ${(0,GT.callValidateCode)(e,t,c)}`),d(t),i||o.assign(r,!0)}),(e=>{o.if(QT._`!(${e} instanceof ${a.ValidationError})`,(()=>o.throw(e))),u(e),i||o.assign(r,!1)})),e.ok(r)}():e.result((0,GT.callValidateCode)(e,t,c),(()=>d(t)),(()=>u(t)))}KT.getValidate=eI,KT.callRef=tI,KT.default=ZT,Object.defineProperty(UT,"__esModule",{value:!0});const rI=KT,nI=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",WT.default,rI.default];UT.default=nI;var oI={},aI={};Object.defineProperty(aI,"__esModule",{value:!0});const iI=ER(),sI=iI.operators,lI={maximum:{okStr:"<=",ok:sI.LTE,fail:sI.GT},minimum:{okStr:">=",ok:sI.GTE,fail:sI.LT},exclusiveMaximum:{okStr:"<",ok:sI.LT,fail:sI.GTE},exclusiveMinimum:{okStr:">",ok:sI.GT,fail:sI.LTE}},cI={message:({keyword:e,schemaCode:t})=>iI.str`must be ${lI[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>iI._`{comparison: ${lI[e].okStr}, limit: ${t}}`},uI={keyword:Object.keys(lI),type:"number",schemaType:"number",$data:!0,error:cI,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data(iI._`${r} ${lI[t].fail} ${n} || isNaN(${r})`)}};aI.default=uI;var dI={};Object.defineProperty(dI,"__esModule",{value:!0});const fI=ER(),pI={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>fI.str`must be multiple of ${e}`,params:({schemaCode:e})=>fI._`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:n,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?fI._`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:fI._`${i} !== parseInt(${i})`;e.fail$data(fI._`(${n} === 0 || (${i} = ${r}/${n}, ${s}))`)}};dI.default=pI;var mI={},hI={};function vI(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(hI,"__esModule",{value:!0}),hI.default=vI,vI.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty(mI,"__esModule",{value:!0});const yI=ER(),gI=CR,bI=hI,wI={message({keyword:e,schemaCode:t}){const r="maxLength"===e?"more":"fewer";return yI.str`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>yI._`{limit: ${e}}`},SI={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:wI,code(e){const{keyword:t,data:r,schemaCode:n,it:o}=e,a="maxLength"===t?yI.operators.GT:yI.operators.LT,i=!1===o.opts.unicode?yI._`${r}.length`:yI._`${(0,gI.useFunc)(e.gen,bI.default)}(${r})`;e.fail$data(yI._`${i} ${a} ${n}`)}};mI.default=SI;var xI={};Object.defineProperty(xI,"__esModule",{value:!0});const $I=KR(),_I=ER(),kI={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>_I.str`must match pattern "${e}"`,params:({schemaCode:e})=>_I._`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:n,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=r?_I._`(new RegExp(${o}, ${i}))`:(0,$I.usePattern)(e,n);e.fail$data(_I._`!${s}.test(${t})`)}};xI.default=kI;var EI={};Object.defineProperty(EI,"__esModule",{value:!0});const CI=ER(),jI={message({keyword:e,schemaCode:t}){const r="maxProperties"===e?"more":"fewer";return CI.str`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>CI._`{limit: ${e}}`},PI={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:jI,code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxProperties"===t?CI.operators.GT:CI.operators.LT;e.fail$data(CI._`Object.keys(${r}).length ${o} ${n}`)}};EI.default=PI;var OI={};Object.defineProperty(OI,"__esModule",{value:!0});const NI=KR(),AI=ER(),RI=CR,TI={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>AI.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>AI._`{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(AI.nil,c);else for(const t of r)(0,NI.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,NI.propertyInData)(t,o,r,s.ownProperties)),t.if((0,AI.not)(a),(()=>{e.error(),t.break()}))}),AI.nil)}(i,r))),e.ok(r)}else t.if((0,NI.checkMissingProp)(e,r,i)),(0,NI.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,RI.checkStrictMode)(i,t,i.opts.strictRequired)}}function c(){t.forOf("prop",n,(r=>{e.setParams({missingProperty:r}),t.if((0,NI.noPropertyInData)(t,o,r,s.ownProperties),(()=>e.error()))}))}}};OI.default=TI;var II={};Object.defineProperty(II,"__esModule",{value:!0});const MI=ER(),FI={message({keyword:e,schemaCode:t}){const r="maxItems"===e?"more":"fewer";return MI.str`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>MI._`{limit: ${e}}`},DI={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:FI,code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxItems"===t?MI.operators.GT:MI.operators.LT;e.fail$data(MI._`${r}.length ${o} ${n}`)}};II.default=DI;var zI={},LI={};Object.defineProperty(LI,"__esModule",{value:!0});const VI=JR;VI.code='require("ajv/dist/runtime/equal").default',LI.default=VI,Object.defineProperty(zI,"__esModule",{value:!0});const BI=TR,UI=ER(),WI=CR,qI=LI,KI={message:({params:{i:e,j:t}})=>UI.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>UI._`{i: ${e}, j: ${t}}`},HI={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:KI,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,BI.getSchemaTypes)(a.items):[];function u(n,o){const a=t.name("item"),i=(0,BI.checkDataTypes)(c,a,s.opts.strictNumbers,BI.DataType.Wrong),u=t.const("indices",UI._`{}`);t.for(UI._`;${n}--;`,(()=>{t.let(a,UI._`${r}[${n}]`),t.if(i,UI._`continue`),c.length>1&&t.if(UI._`typeof ${a} == "string"`,UI._`${a} += "_"`),t.if(UI._`typeof ${u}[${a}] == "number"`,(()=>{t.assign(o,UI._`${u}[${a}]`),e.error(),t.assign(l,!1).break()})).code(UI._`${u}[${a}] = ${n}`)}))}function d(n,o){const a=(0,WI.useFunc)(t,qI.default),i=t.name("outer");t.label(i).for(UI._`;${n}--;`,(()=>t.for(UI._`${o} = ${n}; ${o}--;`,(()=>t.if(UI._`${a}(${r}[${n}], ${r}[${o}])`,(()=>{e.error(),t.assign(l,!1).break(i)}))))))}e.block$data(l,(function(){const n=t.let("i",UI._`${r}.length`),o=t.let("j");e.setParams({i:n,j:o}),t.assign(l,!0),t.if(UI._`${n} > 1`,(()=>(c.length>0&&!c.some((e=>"object"===e||"array"===e))?u:d)(n,o)))}),UI._`${i} === false`),e.ok(l)}};zI.default=HI;var GI={};Object.defineProperty(GI,"__esModule",{value:!0});const QI=ER(),YI=CR,JI=LI,XI={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>QI._`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,$data:n,schemaCode:o,schema:a}=e;n||a&&"object"==typeof a?e.fail$data(QI._`!${(0,YI.useFunc)(t,JI.default)}(${r}, ${o})`):e.fail(QI._`${a} !== ${r}`)}};GI.default=XI;var ZI={};Object.defineProperty(ZI,"__esModule",{value:!0});const eM=ER(),tM=CR,rM=LI,nM={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>eM._`{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,tM.useFunc)(t,rM.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(eM._`${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,eM.or)(...o.map(((t,n)=>function(e,t){const n=o[t];return"object"==typeof n&&null!==n?eM._`${c()}(${r}, ${e}[${t}])`:eM._`${r} === ${n}`}(e,n))))}e.pass(u)}};ZI.default=nM,Object.defineProperty(oI,"__esModule",{value:!0});const oM=dI,aM=mI,iM=xI,sM=EI,lM=OI,cM=II,uM=zI,dM=GI,fM=ZI,pM=[aI.default,oM.default,aM.default,iM.default,sM.default,lM.default,cM.default,uM.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},dM.default,fM.default];oI.default=pM;var mM={},hM={};Object.defineProperty(hM,"__esModule",{value:!0}),hM.validateAdditionalItems=void 0;const vM=ER(),yM=CR,gM={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>vM.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>vM._`{limit: ${e}}`},code(e){const{parentSchema:t,it:r}=e,{items:n}=t;Array.isArray(n)?bM(e,n):(0,yM.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function bM(e,t){const{gen:r,schema:n,data:o,keyword:a,it:i}=e;i.items=!0;const s=r.const("len",vM._`${o}.length`);if(!1===n)e.setParams({len:t.length}),e.pass(vM._`${s} <= ${t.length}`);else if("object"==typeof n&&!(0,yM.alwaysValidSchema)(i,n)){const n=r.var("valid",vM._`${s} <= ${t.length}`);r.if((0,vM.not)(n),(()=>function(n){r.forRange("i",t.length,s,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:yM.Type.Num},n),i.allErrors||r.if((0,vM.not)(n),(()=>r.break()))}))}(n))),e.ok(n)}}hM.validateAdditionalItems=bM,hM.default=gM;var wM={},SM={};Object.defineProperty(SM,"__esModule",{value:!0}),SM.validateTuple=void 0;const xM=ER(),$M=CR,_M=KR(),kM={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return EM(e,"additionalItems",t);r.items=!0,(0,$M.alwaysValidSchema)(r,t)||e.ok((0,_M.validateArray)(e))}};function EM(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,$M.checkStrictMode)(s,e,n.strictTuples)}}(o),s.opts.unevaluated&&r.length&&!0!==s.items&&(s.items=$M.mergeEvaluated.items(n,r.length,s.items));const l=n.name("valid"),c=n.const("len",xM._`${a}.length`);r.forEach(((t,r)=>{(0,$M.alwaysValidSchema)(s,t)||(n.if(xM._`${c} > ${r}`,(()=>e.subschema({keyword:i,schemaProp:r,dataProp:r},l))),e.ok(l))}))}SM.validateTuple=EM,SM.default=kM,Object.defineProperty(wM,"__esModule",{value:!0});const CM=SM,jM={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,CM.validateTuple)(e,"items")};wM.default=jM;var PM={};Object.defineProperty(PM,"__esModule",{value:!0});const OM=ER(),NM=CR,AM=KR(),RM=hM,TM={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>OM.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>OM._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,(0,NM.alwaysValidSchema)(n,t)||(o?(0,RM.validateAdditionalItems)(e,o):e.ok((0,AM.validateArray)(e)))}};PM.default=TM;var IM={};Object.defineProperty(IM,"__esModule",{value:!0});const MM=ER(),FM=CR,DM={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?MM.str`must contain at least ${e} valid item(s)`:MM.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?MM._`{minContains: ${e}}`:MM._`{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",MM._`${o}.length`);if(e.setParams({min:i,max:s}),void 0===s&&0===i)return void(0,FM.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==s&&i>s)return(0,FM.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,FM.alwaysValidSchema)(a,r)){let t=MM._`${u} >= ${i}`;return void 0!==s&&(t=MM._`${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(MM._`${e}++`),void 0===s?t.if(MM._`${e} >= ${i}`,(()=>t.assign(d,!0).break())):(t.if(MM._`${e} > ${s}`,(()=>t.assign(d,!1).break())),1===i?t.assign(d,!0):t.if(MM._`${e} >= ${i}`,(()=>t.assign(d,!0))))}(r)))))}function p(r,n){t.forRange("i",0,u,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:FM.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(MM._`${o}.length > 0`,f)):(t.let(d,!1),f()),e.result(d,(()=>e.reset()))}};IM.default=DM;var zM={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=ER(),r=CR,n=KR();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},
|
|
25
|
+
!function(e,t){!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),y=r("\\:\\:"+r(p+"\\:")+"{5}"+m),v=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)+"?\\:\\:"),_=r([h,y,v,g,b,w,S,x,$].join("|")),k=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("^\\[?("+_+")"+r(r("\\%25|\\%(?!"+a+"{2})")+"("+k+")")+"?\\]?$")}}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,y=38,v=700,g=72,b=128,w="-",S=/^xn--/,x=/[^\0-\x7E]/,$=/[\x2E\u3002\uFF0E\uFF61]/g,_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k=p-m,E=Math.floor,C=String.fromCharCode;function j(e){throw new RangeError(_[e])}function P(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+P((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 A=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:p},R=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/v):e>>1,e+=E(e/t);e>k*h>>1;n+=p)e=E(e/k);return E(n+(k+1)*e/(e+y))},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&&j("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&&j("invalid-input");var y=A(e.charCodeAt(l++));(y>=p||y>E((f-n)/u))&&j("overflow"),n+=y*u;var v=d<=a?m:d>=a+h?h:d-a;if(y<v)break;var S=p-v;u>E(f/S)&&j("overflow"),u*=S}var x=t.length+1;a=T(n-c,x,0==c),E(n/x)>f-o&&j("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 y=t.length,v=y;for(y&&t.push(w);v<r;){var S=f,x=!0,$=!1,_=void 0;try{for(var k,P=e[Symbol.iterator]();!(x=(k=P.next()).done);x=!0){var O=k.value;O>=n&&O<S&&(S=O)}}catch(e){$=!0,_=e}finally{try{!x&&P.return&&P.return()}finally{if($)throw _}}var A=v+1;S-n>E((f-o)/A)&&j("overflow"),o+=(S-n)*A,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&&j("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(R(U+W%q,0))),V=E(W/q)}t.push(C(R(V,0))),a=T(o,A,v==y),o=0,++v}}}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,y=Array(m),v=0;v<m;++v)y[v]=d[v]||f[h+v]||"";p&&(y[m-1]=q(y[m-1],t));var g=y.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=y.slice(0,b.index),x=y.slice(b.index+b.length);w=S.join(":")+"::"+x.join(":")}else w=y.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]",ye="[0-9A-Fa-f]",ve=r(r("%[EFef]"+ye+"%"+ye+ye+"%"+ye+ye)+"|"+r("%[89A-Fa-f]"+ye+"%"+ye+ye)+"|"+r("%"+ye+ye)),ge="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",be=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),we="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Se=new RegExp(he,"g"),xe=new RegExp(ve,"g"),$e=new RegExp(t("[^]",ge,"[\\.]",'[\\"]',be),"g"),_e=new RegExp(t("[^]",he,we),"g"),ke=_e;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(_e,V)+"="+f[m].replace(xe,Ee).replace(xe,o).replace(ke,V));return p.length&&(r.query=p.join("&")),r}},je=/^([^\:]+)\:(.*)/,Pe={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(je),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[Pe.scheme]=Pe,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})}(t)}(0,HT.exports);var GT=HT.exports;Object.defineProperty(KT,"__esModule",{value:!0});const QT=GT;QT.code='require("ajv/dist/runtime/uri").default',KT.default=QT,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=$T();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=TR();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=ET(),o=PT(),a=UR,i=OT,s=TR(),l=oT,c=BR,u=IR,d=qT,f=KT,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"]),y={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."},v={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,y,v,g,b,w,S,x,$,_,k,E,C;const j=e.strict,P=null===(t=e.code)||void 0===t?void 0:t.optimize,O=!0===P||void 0===P?1:P||0,N=null!==(n=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==n?n:p,A=null!==(o=e.uriResolver)&&void 0!==o?o:f.default;return{strictSchema:null===(i=null!==(a=e.strictSchema)&&void 0!==a?a:j)||void 0===i||i,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:j)||void 0===l||l,strictTypes:null!==(u=null!==(c=e.strictTypes)&&void 0!==c?c:j)&&void 0!==u?u:"log",strictTuples:null!==(m=null!==(d=e.strictTuples)&&void 0!==d?d:j)&&void 0!==m?m:"log",strictRequired:null!==(y=null!==(h=e.strictRequired)&&void 0!==h?h:j)&&void 0!==y&&y,code:e.code?{...e.code,optimize:O,regExp:N}:{optimize:O,regExp:N},loopRequired:null!==(v=e.loopRequired)&&void 0!==v?v: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===(_=e.validateSchema)||void 0===_||_,validateFormats:null===(k=e.validateFormats)||void 0===k||k,unicodeRegExp:null===(E=e.unicodeRegExp)||void 0===E||E,int32range:null===(C=e.int32range)||void 0===C||C,uriResolver:A}}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,y,e,"NOT SUPPORTED"),w.call(this,v,e,"DEPRECATED","warn"),this._metaOpts=k.call(this),e.formats&&$.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&_.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(j.call(this,r,t),!t)return(0,u.eachItem)(r,(e=>P.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=>P.call(this,e,n):e=>n.type.forEach((t=>P.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]=R(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 _(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 k(){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 j(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 P(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=R(t)),e.validateSchema=this.compile(t,!0))}const A={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function R(e){return{anyOf:[e,A]}}}($R);var YT={},JT={},XT={};Object.defineProperty(XT,"__esModule",{value:!0});const ZT={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};XT.default=ZT;var eI={};Object.defineProperty(eI,"__esModule",{value:!0}),eI.callRef=eI.getValidate=void 0;const tI=PT(),rI=eT(),nI=TR(),oI=LR(),aI=OT,iI=IR,sI={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 cI(e,i,a,a.$async);const r=t.scopeValue("root",{ref:c});return cI(e,nI._`${r}.validate`,c,c.$async)}();const u=aI.resolveRef.call(l,c,o,r);if(void 0===u)throw new tI.default(n.opts.uriResolver,o,r);return u instanceof aI.SchemaEnv?function(t){const r=lI(e,t);cI(e,r,t,t.$async)}(u):function(n){const o=t.scopeValue("schema",!0===s.code.source?{ref:n,code:(0,nI.stringify)(n)}:{ref:n}),a=t.name("valid"),i=e.subschema({schema:n,dataTypes:[],schemaPath:nI.nil,topSchemaRef:o,errSchemaPath:r},a);e.mergeEvaluated(i),e.ok(a)}(u)}};function lI(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):nI._`${r.scopeValue("wrapper",{ref:t})}.validate`}function cI(e,t,r,n){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,c=l.passContext?oI.default.this:nI.nil;function u(e){const t=nI._`${e}.errors`;o.assign(oI.default.vErrors,nI._`${oI.default.vErrors} === null ? ${t} : ${oI.default.vErrors}.concat(${t})`),o.assign(oI.default.errors,nI._`${oI.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=iI.mergeEvaluated.props(o,n.props,a.props));else{const t=o.var("props",nI._`${e}.evaluated.props`);a.props=iI.mergeEvaluated.props(o,t,a.props,nI.Name)}if(!0!==a.items)if(n&&!n.dynamicItems)void 0!==n.items&&(a.items=iI.mergeEvaluated.items(o,n.items,a.items));else{const t=o.var("items",nI._`${e}.evaluated.items`);a.items=iI.mergeEvaluated.items(o,t,a.items,nI.Name)}}n?function(){if(!s.$async)throw new Error("async schema referenced by sync schema");const r=o.let("valid");o.try((()=>{o.code(nI._`await ${(0,rI.callValidateCode)(e,t,c)}`),d(t),i||o.assign(r,!0)}),(e=>{o.if(nI._`!(${e} instanceof ${a.ValidationError})`,(()=>o.throw(e))),u(e),i||o.assign(r,!1)})),e.ok(r)}():e.result((0,rI.callValidateCode)(e,t,c),(()=>d(t)),(()=>u(t)))}eI.getValidate=lI,eI.callRef=cI,eI.default=sI,Object.defineProperty(JT,"__esModule",{value:!0});const uI=eI,dI=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",XT.default,uI.default];JT.default=dI;var fI={},pI={};Object.defineProperty(pI,"__esModule",{value:!0});const mI=TR(),hI=mI.operators,yI={maximum:{okStr:"<=",ok:hI.LTE,fail:hI.GT},minimum:{okStr:">=",ok:hI.GTE,fail:hI.LT},exclusiveMaximum:{okStr:"<",ok:hI.LT,fail:hI.GTE},exclusiveMinimum:{okStr:">",ok:hI.GT,fail:hI.LTE}},vI={message:({keyword:e,schemaCode:t})=>mI.str`must be ${yI[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>mI._`{comparison: ${yI[e].okStr}, limit: ${t}}`},gI={keyword:Object.keys(yI),type:"number",schemaType:"number",$data:!0,error:vI,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data(mI._`${r} ${yI[t].fail} ${n} || isNaN(${r})`)}};pI.default=gI;var bI={};Object.defineProperty(bI,"__esModule",{value:!0});const wI=TR(),SI={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>wI.str`must be multiple of ${e}`,params:({schemaCode:e})=>wI._`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:n,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?wI._`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:wI._`${i} !== parseInt(${i})`;e.fail$data(wI._`(${n} === 0 || (${i} = ${r}/${n}, ${s}))`)}};bI.default=SI;var xI={},$I={};function _I(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($I,"__esModule",{value:!0}),$I.default=_I,_I.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty(xI,"__esModule",{value:!0});const kI=TR(),EI=IR,CI=$I,jI={message({keyword:e,schemaCode:t}){const r="maxLength"===e?"more":"fewer";return kI.str`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>kI._`{limit: ${e}}`},PI={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:jI,code(e){const{keyword:t,data:r,schemaCode:n,it:o}=e,a="maxLength"===t?kI.operators.GT:kI.operators.LT,i=!1===o.opts.unicode?kI._`${r}.length`:kI._`${(0,EI.useFunc)(e.gen,CI.default)}(${r})`;e.fail$data(kI._`${i} ${a} ${n}`)}};xI.default=PI;var OI={};Object.defineProperty(OI,"__esModule",{value:!0});const NI=eT(),AI=TR(),RI={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>AI.str`must match pattern "${e}"`,params:({schemaCode:e})=>AI._`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:n,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=r?AI._`(new RegExp(${o}, ${i}))`:(0,NI.usePattern)(e,n);e.fail$data(AI._`!${s}.test(${t})`)}};OI.default=RI;var TI={};Object.defineProperty(TI,"__esModule",{value:!0});const II=TR(),MI={message({keyword:e,schemaCode:t}){const r="maxProperties"===e?"more":"fewer";return II.str`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>II._`{limit: ${e}}`},FI={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:MI,code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxProperties"===t?II.operators.GT:II.operators.LT;e.fail$data(II._`Object.keys(${r}).length ${o} ${n}`)}};TI.default=FI;var DI={};Object.defineProperty(DI,"__esModule",{value:!0});const zI=eT(),LI=TR(),VI=IR,BI={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>LI.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>LI._`{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(LI.nil,c);else for(const t of r)(0,zI.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,zI.propertyInData)(t,o,r,s.ownProperties)),t.if((0,LI.not)(a),(()=>{e.error(),t.break()}))}),LI.nil)}(i,r))),e.ok(r)}else t.if((0,zI.checkMissingProp)(e,r,i)),(0,zI.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,VI.checkStrictMode)(i,t,i.opts.strictRequired)}}function c(){t.forOf("prop",n,(r=>{e.setParams({missingProperty:r}),t.if((0,zI.noPropertyInData)(t,o,r,s.ownProperties),(()=>e.error()))}))}}};DI.default=BI;var UI={};Object.defineProperty(UI,"__esModule",{value:!0});const WI=TR(),qI={message({keyword:e,schemaCode:t}){const r="maxItems"===e?"more":"fewer";return WI.str`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>WI._`{limit: ${e}}`},KI={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:qI,code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxItems"===t?WI.operators.GT:WI.operators.LT;e.fail$data(WI._`${r}.length ${o} ${n}`)}};UI.default=KI;var HI={},GI={};Object.defineProperty(GI,"__esModule",{value:!0});const QI=aT;QI.code='require("ajv/dist/runtime/equal").default',GI.default=QI,Object.defineProperty(HI,"__esModule",{value:!0});const YI=BR,JI=TR(),XI=IR,ZI=GI,eM={message:({params:{i:e,j:t}})=>JI.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>JI._`{i: ${e}, j: ${t}}`},tM={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:eM,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,YI.getSchemaTypes)(a.items):[];function u(n,o){const a=t.name("item"),i=(0,YI.checkDataTypes)(c,a,s.opts.strictNumbers,YI.DataType.Wrong),u=t.const("indices",JI._`{}`);t.for(JI._`;${n}--;`,(()=>{t.let(a,JI._`${r}[${n}]`),t.if(i,JI._`continue`),c.length>1&&t.if(JI._`typeof ${a} == "string"`,JI._`${a} += "_"`),t.if(JI._`typeof ${u}[${a}] == "number"`,(()=>{t.assign(o,JI._`${u}[${a}]`),e.error(),t.assign(l,!1).break()})).code(JI._`${u}[${a}] = ${n}`)}))}function d(n,o){const a=(0,XI.useFunc)(t,ZI.default),i=t.name("outer");t.label(i).for(JI._`;${n}--;`,(()=>t.for(JI._`${o} = ${n}; ${o}--;`,(()=>t.if(JI._`${a}(${r}[${n}], ${r}[${o}])`,(()=>{e.error(),t.assign(l,!1).break(i)}))))))}e.block$data(l,(function(){const n=t.let("i",JI._`${r}.length`),o=t.let("j");e.setParams({i:n,j:o}),t.assign(l,!0),t.if(JI._`${n} > 1`,(()=>(c.length>0&&!c.some((e=>"object"===e||"array"===e))?u:d)(n,o)))}),JI._`${i} === false`),e.ok(l)}};HI.default=tM;var rM={};Object.defineProperty(rM,"__esModule",{value:!0});const nM=TR(),oM=IR,aM=GI,iM={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>nM._`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,$data:n,schemaCode:o,schema:a}=e;n||a&&"object"==typeof a?e.fail$data(nM._`!${(0,oM.useFunc)(t,aM.default)}(${r}, ${o})`):e.fail(nM._`${a} !== ${r}`)}};rM.default=iM;var sM={};Object.defineProperty(sM,"__esModule",{value:!0});const lM=TR(),cM=IR,uM=GI,dM={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>lM._`{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,cM.useFunc)(t,uM.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(lM._`${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,lM.or)(...o.map(((t,n)=>function(e,t){const n=o[t];return"object"==typeof n&&null!==n?lM._`${c()}(${r}, ${e}[${t}])`:lM._`${r} === ${n}`}(e,n))))}e.pass(u)}};sM.default=dM,Object.defineProperty(fI,"__esModule",{value:!0});const fM=bI,pM=xI,mM=OI,hM=TI,yM=DI,vM=UI,gM=HI,bM=rM,wM=sM,SM=[pI.default,fM.default,pM.default,mM.default,hM.default,yM.default,vM.default,gM.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},bM.default,wM.default];fI.default=SM;var xM={},$M={};Object.defineProperty($M,"__esModule",{value:!0}),$M.validateAdditionalItems=void 0;const _M=TR(),kM=IR,EM={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>_M.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>_M._`{limit: ${e}}`},code(e){const{parentSchema:t,it:r}=e,{items:n}=t;Array.isArray(n)?CM(e,n):(0,kM.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function CM(e,t){const{gen:r,schema:n,data:o,keyword:a,it:i}=e;i.items=!0;const s=r.const("len",_M._`${o}.length`);if(!1===n)e.setParams({len:t.length}),e.pass(_M._`${s} <= ${t.length}`);else if("object"==typeof n&&!(0,kM.alwaysValidSchema)(i,n)){const n=r.var("valid",_M._`${s} <= ${t.length}`);r.if((0,_M.not)(n),(()=>function(n){r.forRange("i",t.length,s,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:kM.Type.Num},n),i.allErrors||r.if((0,_M.not)(n),(()=>r.break()))}))}(n))),e.ok(n)}}$M.validateAdditionalItems=CM,$M.default=EM;var jM={},PM={};Object.defineProperty(PM,"__esModule",{value:!0}),PM.validateTuple=void 0;const OM=TR(),NM=IR,AM=eT(),RM={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return TM(e,"additionalItems",t);r.items=!0,(0,NM.alwaysValidSchema)(r,t)||e.ok((0,AM.validateArray)(e))}};function TM(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,NM.checkStrictMode)(s,e,n.strictTuples)}}(o),s.opts.unevaluated&&r.length&&!0!==s.items&&(s.items=NM.mergeEvaluated.items(n,r.length,s.items));const l=n.name("valid"),c=n.const("len",OM._`${a}.length`);r.forEach(((t,r)=>{(0,NM.alwaysValidSchema)(s,t)||(n.if(OM._`${c} > ${r}`,(()=>e.subschema({keyword:i,schemaProp:r,dataProp:r},l))),e.ok(l))}))}PM.validateTuple=TM,PM.default=RM,Object.defineProperty(jM,"__esModule",{value:!0});const IM=PM,MM={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,IM.validateTuple)(e,"items")};jM.default=MM;var FM={};Object.defineProperty(FM,"__esModule",{value:!0});const DM=TR(),zM=IR,LM=eT(),VM=$M,BM={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>DM.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>DM._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,(0,zM.alwaysValidSchema)(n,t)||(o?(0,VM.validateAdditionalItems)(e,o):e.ok((0,LM.validateArray)(e)))}};FM.default=BM;var UM={};Object.defineProperty(UM,"__esModule",{value:!0});const WM=TR(),qM=IR,KM={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?WM.str`must contain at least ${e} valid item(s)`:WM.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?WM._`{minContains: ${e}}`:WM._`{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",WM._`${o}.length`);if(e.setParams({min:i,max:s}),void 0===s&&0===i)return void(0,qM.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==s&&i>s)return(0,qM.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,qM.alwaysValidSchema)(a,r)){let t=WM._`${u} >= ${i}`;return void 0!==s&&(t=WM._`${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(WM._`${e}++`),void 0===s?t.if(WM._`${e} >= ${i}`,(()=>t.assign(d,!0).break())):(t.if(WM._`${e} > ${s}`,(()=>t.assign(d,!1).break())),1===i?t.assign(d,!0):t.if(WM._`${e} >= ${i}`,(()=>t.assign(d,!0))))}(r)))))}function p(r,n){t.forRange("i",0,u,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:qM.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(WM._`${o}.length > 0`,f)):(t.let(d,!1),f()),e.result(d,(()=>e.reset()))}};UM.default=KM;var HM={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=TR(),r=IR,n=eT();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},
|
|
26
26
|
missingProperty: ${o},
|
|
27
27
|
depsCount: ${r},
|
|
28
|
-
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}(zM);var LM={};Object.defineProperty(LM,"__esModule",{value:!0});const VM=ER(),BM=CR,UM={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>VM._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:n,it:o}=e;if((0,BM.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,VM.not)(a),(()=>{e.error(!0),o.allErrors||t.break()}))})),e.ok(a)}};LM.default=UM;var WM={};Object.defineProperty(WM,"__esModule",{value:!0});const qM=KR(),KM=ER(),HM=AR(),GM=CR,QM={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>KM._`{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,GM.alwaysValidSchema)(i,r))return;const c=(0,qM.allSchemaProperties)(n.properties),u=(0,qM.allSchemaProperties)(n.patternProperties);function d(e){t.code(KM._`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,GM.alwaysValidSchema)(i,r)){const r=t.name("valid");"failing"===l.removeAdditional?(p(n,r,!1),t.if((0,KM.not)(r),(()=>{e.reset(),d(n)}))):(p(n,r),s||t.if((0,KM.not)(r),(()=>t.break())))}}}function p(t,r,n){const o={keyword:"additionalProperties",dataProp:t,dataPropType:GM.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,GM.schemaRefOrVal)(i,n.properties,"properties");o=(0,qM.isOwnProperty)(t,e,r)}else o=c.length?(0,KM.or)(...c.map((e=>KM._`${r} === ${e}`))):KM.nil;return u.length&&(o=(0,KM.or)(o,...u.map((t=>KM._`${(0,qM.usePattern)(e,t)}.test(${r})`)))),(0,KM.not)(o)}(r),(()=>f(r))):f(r)})),e.ok(KM._`${a} === ${HM.default.errors}`)}};WM.default=QM;var YM={};Object.defineProperty(YM,"__esModule",{value:!0});const JM=hT(),XM=KR(),ZM=CR,eF=WM,tF={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&&eF.default.code(new JM.KeywordCxt(a,eF.default,"additionalProperties"));const i=(0,XM.allSchemaProperties)(r);for(const e of i)a.definedProperties.add(e);a.opts.unevaluated&&i.length&&!0!==a.props&&(a.props=ZM.mergeEvaluated.props(t,(0,ZM.toHash)(i),a.props));const s=i.filter((e=>!(0,ZM.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,XM.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)}}};YM.default=tF;var rF={};Object.defineProperty(rF,"__esModule",{value:!0});const nF=KR(),oF=ER(),aF=CR,iF=CR,sF={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,nF.allSchemaProperties)(r),l=s.filter((e=>(0,aF.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 oF.Name||(a.props=(0,iF.evaluatedPropsToName)(t,a.props));const{props:d}=a;function f(e){for(const t in c)new RegExp(e).test(t)&&(0,aF.checkStrictMode)(a,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function p(r){t.forIn("key",n,(n=>{t.if(oF._`${(0,nF.usePattern)(e,r)}.test(${n})`,(()=>{const o=l.includes(r);o||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:n,dataPropType:iF.Type.Str},u),a.opts.unevaluated&&!0!==d?t.assign(oF._`${d}[${n}]`,!0):o||a.allErrors||t.if((0,oF.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))}()}};rF.default=sF;var lF={};Object.defineProperty(lF,"__esModule",{value:!0});const cF=CR,uF={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,cF.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"}};lF.default=uF;var dF={};Object.defineProperty(dF,"__esModule",{value:!0});const fF={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:KR().validateUnion,error:{message:"must match a schema in anyOf"}};dF.default=fF;var pF={};Object.defineProperty(pF,"__esModule",{value:!0});const mF=ER(),hF=CR,vF={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>mF._`{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,hF.alwaysValidSchema)(o,r)?t.var(l,!0):a=e.subschema({keyword:"oneOf",schemaProp:n,compositeRule:!0},l),n>0&&t.if(mF._`${l} && ${i}`).assign(i,!1).assign(s,mF._`[${s}, ${n}]`).else(),t.if(l,(()=>{t.assign(i,!0),t.assign(s,n),a&&e.mergeEvaluated(a,mF.Name)}))}))})),e.result(i,(()=>e.reset()),(()=>e.error(!0)))}};pF.default=vF;var yF={};Object.defineProperty(yF,"__esModule",{value:!0});const gF=CR,bF={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,gF.alwaysValidSchema)(n,t))return;const a=e.subschema({keyword:"allOf",schemaProp:r},o);e.ok(o),e.mergeEvaluated(a)}))}};yF.default=bF;var wF={};Object.defineProperty(wF,"__esModule",{value:!0});const SF=ER(),xF=CR,$F={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>SF.str`must match "${e.ifClause}" schema`,params:({params:e})=>SF._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:n}=e;void 0===r.then&&void 0===r.else&&(0,xF.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const o=_F(n,"then"),a=_F(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,SF.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,SF._`${r}`):e.setParams({ifClause:r})}}e.pass(i,(()=>e.error(!0)))}};function _F(e,t){const r=e.schema[t];return void 0!==r&&!(0,xF.alwaysValidSchema)(e,r)}wF.default=$F;var kF={};Object.defineProperty(kF,"__esModule",{value:!0});const EF=CR,CF={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,EF.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};kF.default=CF,Object.defineProperty(mM,"__esModule",{value:!0});const jF=hM,PF=wM,OF=SM,NF=PM,AF=IM,RF=zM,TF=LM,IF=WM,MF=YM,FF=rF,DF=lF,zF=dF,LF=pF,VF=yF,BF=wF,UF=kF;mM.default=function(e=!1){const t=[DF.default,zF.default,LF.default,VF.default,BF.default,UF.default,TF.default,IF.default,RF.default,MF.default,FF.default];return e?t.push(PF.default,NF.default):t.push(jF.default,OF.default),t.push(AF.default),t};var WF={},qF={};Object.defineProperty(qF,"__esModule",{value:!0});const KF=ER(),HF={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>KF.str`must match format "${e}"`,params:({schemaCode:e})=>KF._`{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",KF._`${o}[${i}]`),s=r.let("fType"),c=r.let("format");r.if(KF._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>r.assign(s,KF._`${a}.type || "string"`).assign(c,KF._`${a}.validate`)),(()=>r.assign(s,KF._`"string"`).assign(c,a))),e.fail$data((0,KF.or)(!1===l.strictSchema?KF.nil:KF._`${i} && !${c}`,function(){const e=u.$async?KF._`(${a}.async ? await ${c}(${n}) : ${c}(${n}))`:KF._`${c}(${n})`,r=KF._`(typeof ${c} == "function" ? ${e} : ${c}.test(${n}))`;return KF._`${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,KF.regexpCode)(e):l.code.formats?KF._`${l.code.formats}${(0,KF.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,KF._`${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 KF._`await ${f}(${n})`}return"function"==typeof s?KF._`${f}(${n})`:KF._`${f}.test(${n})`}())}())}};qF.default=HF,Object.defineProperty(WF,"__esModule",{value:!0});const GF=[qF.default];WF.default=GF;var QF={};Object.defineProperty(QF,"__esModule",{value:!0}),QF.contentVocabulary=QF.metadataVocabulary=void 0,QF.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],QF.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(BT,"__esModule",{value:!0});const YF=oI,JF=mM,XF=WF,ZF=QF,eD=[UT.default,YF.default,(0,JF.default)(),XF.default,ZF.metadataVocabulary,ZF.contentVocabulary];BT.default=eD;var tD={},rD={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,(t=e.DiscrError||(e.DiscrError={})).Tag="tag",t.Mapping="mapping"}(rD),Object.defineProperty(tD,"__esModule",{value:!0});const nD=ER(),oD=rD,aD=xT,iD=CR,sD={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===oD.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>nD._`{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",nD._`${r}${(0,nD.getProperty)(s)}`);function u(r){const n=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:r},n);return e.mergeEvaluated(o,nD.Name),n}t.if(nD._`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,iD.schemaHasRulesButRef)(o,a.self.RULES)&&(o=aD.resolveRef.call(a.self,a.schemaEnv.root,a.baseId,null==o?void 0:o.$ref),o instanceof aD.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(nD._`${c} === ${e}`),t.assign(l,u(r[e]));t.else(),e.error(!1,{discrError:oD.DiscrError.Mapping,tag:c,tagName:s}),t.endIf()}()),(()=>e.error(!1,{discrError:oD.DiscrError.Tag,tag:c,tagName:s}))),e.ok(l)}};tD.default=sD;var lD={$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=hR,n=BT,o=tD,a=lD,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=hT();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=ER();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=gT();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=ST();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})}(mR,mR.exports);var cD=r(mR.exports),uD={exports:{}},dD={};!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/}(dD);var fD={},pD={exports:{}},mD={},hD={},vD={},yD={},gD={},bD={};!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())}}(bD);var wD={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=bD;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}}}(wD),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=bD,r=wD;var n=bD;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=wD;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=P(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=P(this.rhs,e,r),this}get names(){return j(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=P(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=P(this.condition,e,t),this}get names(){const e=super.names;return j(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=P(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=j(super.names,this.from);return j(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=P(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 _ 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 k extends m{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}k.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 j(e,r){return r instanceof t._CodeOrName?C(e,r.names):e}function P(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 _;if(this._blockNode(n),this.code(e),t){const e=this.name("e");this._currNode=n.catch=new k(e),t(e)}return r&&(this._currNode=n.finally=new E,this.code(r)),this._endBlockNode(k,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 A=T(e.operators.AND);e.and=function(...e){return e.reduce(A)};const R=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(R)}}(gD);var SD={};!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=gD,r=bD;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}(SD);var xD,$D,_D,kD={};function ED(){if(xD)return kD;xD=1,Object.defineProperty(kD,"__esModule",{value:!0});const e=gD,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 kD.default=t,kD}function CD(){return $D||($D=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=gD,r=SD,n=ED();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]}}(yD)),yD}var jD={},PD={};Object.defineProperty(PD,"__esModule",{value:!0}),PD.getRules=PD.isJSONType=void 0;const OD=new Set(["string","number","integer","boolean","null","object","array"]);PD.isJSONType=function(e){return"string"==typeof e&&OD.has(e)},PD.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 ND,AD={};function RD(){if(ND)return AD;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 ND=1,Object.defineProperty(AD,"__esModule",{value:!0}),AD.shouldUseRule=AD.shouldUseGroup=AD.schemaHasRulesForType=void 0,AD.schemaHasRulesForType=function({schema:t,self:r},n){const o=r.RULES.types[n];return o&&!0!==o&&e(t,o)},AD.shouldUseGroup=e,AD.shouldUseRule=t,AD}!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=PD,r=RD(),n=CD(),o=gD,a=SD;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
|
|
28
|
+
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}(HM);var GM={};Object.defineProperty(GM,"__esModule",{value:!0});const QM=TR(),YM=IR,JM={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>QM._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:n,it:o}=e;if((0,YM.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,QM.not)(a),(()=>{e.error(!0),o.allErrors||t.break()}))})),e.ok(a)}};GM.default=JM;var XM={};Object.defineProperty(XM,"__esModule",{value:!0});const ZM=eT(),eF=TR(),tF=LR(),rF=IR,nF={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>eF._`{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,rF.alwaysValidSchema)(i,r))return;const c=(0,ZM.allSchemaProperties)(n.properties),u=(0,ZM.allSchemaProperties)(n.patternProperties);function d(e){t.code(eF._`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,rF.alwaysValidSchema)(i,r)){const r=t.name("valid");"failing"===l.removeAdditional?(p(n,r,!1),t.if((0,eF.not)(r),(()=>{e.reset(),d(n)}))):(p(n,r),s||t.if((0,eF.not)(r),(()=>t.break())))}}}function p(t,r,n){const o={keyword:"additionalProperties",dataProp:t,dataPropType:rF.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,rF.schemaRefOrVal)(i,n.properties,"properties");o=(0,ZM.isOwnProperty)(t,e,r)}else o=c.length?(0,eF.or)(...c.map((e=>eF._`${r} === ${e}`))):eF.nil;return u.length&&(o=(0,eF.or)(o,...u.map((t=>eF._`${(0,ZM.usePattern)(e,t)}.test(${r})`)))),(0,eF.not)(o)}(r),(()=>f(r))):f(r)})),e.ok(eF._`${a} === ${tF.default.errors}`)}};XM.default=nF;var oF={};Object.defineProperty(oF,"__esModule",{value:!0});const aF=$T(),iF=eT(),sF=IR,lF=XM,cF={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&&lF.default.code(new aF.KeywordCxt(a,lF.default,"additionalProperties"));const i=(0,iF.allSchemaProperties)(r);for(const e of i)a.definedProperties.add(e);a.opts.unevaluated&&i.length&&!0!==a.props&&(a.props=sF.mergeEvaluated.props(t,(0,sF.toHash)(i),a.props));const s=i.filter((e=>!(0,sF.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,iF.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)}}};oF.default=cF;var uF={};Object.defineProperty(uF,"__esModule",{value:!0});const dF=eT(),fF=TR(),pF=IR,mF=IR,hF={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,dF.allSchemaProperties)(r),l=s.filter((e=>(0,pF.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 fF.Name||(a.props=(0,mF.evaluatedPropsToName)(t,a.props));const{props:d}=a;function f(e){for(const t in c)new RegExp(e).test(t)&&(0,pF.checkStrictMode)(a,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function p(r){t.forIn("key",n,(n=>{t.if(fF._`${(0,dF.usePattern)(e,r)}.test(${n})`,(()=>{const o=l.includes(r);o||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:n,dataPropType:mF.Type.Str},u),a.opts.unevaluated&&!0!==d?t.assign(fF._`${d}[${n}]`,!0):o||a.allErrors||t.if((0,fF.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))}()}};uF.default=hF;var yF={};Object.defineProperty(yF,"__esModule",{value:!0});const vF=IR,gF={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,vF.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"}};yF.default=gF;var bF={};Object.defineProperty(bF,"__esModule",{value:!0});const wF={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:eT().validateUnion,error:{message:"must match a schema in anyOf"}};bF.default=wF;var SF={};Object.defineProperty(SF,"__esModule",{value:!0});const xF=TR(),$F=IR,_F={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>xF._`{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,$F.alwaysValidSchema)(o,r)?t.var(l,!0):a=e.subschema({keyword:"oneOf",schemaProp:n,compositeRule:!0},l),n>0&&t.if(xF._`${l} && ${i}`).assign(i,!1).assign(s,xF._`[${s}, ${n}]`).else(),t.if(l,(()=>{t.assign(i,!0),t.assign(s,n),a&&e.mergeEvaluated(a,xF.Name)}))}))})),e.result(i,(()=>e.reset()),(()=>e.error(!0)))}};SF.default=_F;var kF={};Object.defineProperty(kF,"__esModule",{value:!0});const EF=IR,CF={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,EF.alwaysValidSchema)(n,t))return;const a=e.subschema({keyword:"allOf",schemaProp:r},o);e.ok(o),e.mergeEvaluated(a)}))}};kF.default=CF;var jF={};Object.defineProperty(jF,"__esModule",{value:!0});const PF=TR(),OF=IR,NF={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>PF.str`must match "${e.ifClause}" schema`,params:({params:e})=>PF._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:n}=e;void 0===r.then&&void 0===r.else&&(0,OF.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const o=AF(n,"then"),a=AF(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,PF.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,PF._`${r}`):e.setParams({ifClause:r})}}e.pass(i,(()=>e.error(!0)))}};function AF(e,t){const r=e.schema[t];return void 0!==r&&!(0,OF.alwaysValidSchema)(e,r)}jF.default=NF;var RF={};Object.defineProperty(RF,"__esModule",{value:!0});const TF=IR,IF={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,TF.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};RF.default=IF,Object.defineProperty(xM,"__esModule",{value:!0});const MF=$M,FF=jM,DF=PM,zF=FM,LF=UM,VF=HM,BF=GM,UF=XM,WF=oF,qF=uF,KF=yF,HF=bF,GF=SF,QF=kF,YF=jF,JF=RF;xM.default=function(e=!1){const t=[KF.default,HF.default,GF.default,QF.default,YF.default,JF.default,BF.default,UF.default,VF.default,WF.default,qF.default];return e?t.push(FF.default,zF.default):t.push(MF.default,DF.default),t.push(LF.default),t};var XF={},ZF={};Object.defineProperty(ZF,"__esModule",{value:!0});const eD=TR(),tD={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>eD.str`must match format "${e}"`,params:({schemaCode:e})=>eD._`{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",eD._`${o}[${i}]`),s=r.let("fType"),c=r.let("format");r.if(eD._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>r.assign(s,eD._`${a}.type || "string"`).assign(c,eD._`${a}.validate`)),(()=>r.assign(s,eD._`"string"`).assign(c,a))),e.fail$data((0,eD.or)(!1===l.strictSchema?eD.nil:eD._`${i} && !${c}`,function(){const e=u.$async?eD._`(${a}.async ? await ${c}(${n}) : ${c}(${n}))`:eD._`${c}(${n})`,r=eD._`(typeof ${c} == "function" ? ${e} : ${c}.test(${n}))`;return eD._`${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,eD.regexpCode)(e):l.code.formats?eD._`${l.code.formats}${(0,eD.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,eD._`${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 eD._`await ${f}(${n})`}return"function"==typeof s?eD._`${f}(${n})`:eD._`${f}.test(${n})`}())}())}};ZF.default=tD,Object.defineProperty(XF,"__esModule",{value:!0});const rD=[ZF.default];XF.default=rD;var nD={};Object.defineProperty(nD,"__esModule",{value:!0}),nD.contentVocabulary=nD.metadataVocabulary=void 0,nD.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],nD.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(YT,"__esModule",{value:!0});const oD=fI,aD=xM,iD=XF,sD=nD,lD=[JT.default,oD.default,(0,aD.default)(),iD.default,sD.metadataVocabulary,sD.contentVocabulary];YT.default=lD;var cD={},uD={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,(t=e.DiscrError||(e.DiscrError={})).Tag="tag",t.Mapping="mapping"}(uD),Object.defineProperty(cD,"__esModule",{value:!0});const dD=TR(),fD=uD,pD=OT,mD=IR,hD={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===fD.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>dD._`{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",dD._`${r}${(0,dD.getProperty)(s)}`);function u(r){const n=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:r},n);return e.mergeEvaluated(o,dD.Name),n}t.if(dD._`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,mD.schemaHasRulesButRef)(o,a.self.RULES)&&(o=pD.resolveRef.call(a.self,a.schemaEnv.root,a.baseId,null==o?void 0:o.$ref),o instanceof pD.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(dD._`${c} === ${e}`),t.assign(l,u(r[e]));t.else(),e.error(!1,{discrError:fD.DiscrError.Mapping,tag:c,tagName:s}),t.endIf()}()),(()=>e.error(!1,{discrError:fD.DiscrError.Tag,tag:c,tagName:s}))),e.ok(l)}};cD.default=hD;var yD={$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=$R,n=YT,o=cD,a=yD,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=$T();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=TR();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=ET();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=PT();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})}(xR,xR.exports);var vD=r(xR.exports),gD={exports:{}},bD={};!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(v.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:y},double:{type:"number",validate:y},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 y(){return!0}const v=/[^\\]\\Z/}(bD);var wD={},SD={exports:{}},xD={},$D={},_D={},kD={},ED={},CD={};!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())}}(CD);var jD={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=CD;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}}}(jD),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=CD,r=jD;var n=CD;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=jD;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=P(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=P(this.rhs,e,r),this}get names(){return j(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=P(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 y extends m{}y.kind="else";class v 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 y(e):e}return t?!1===e?t instanceof v?t:t.nodes:this.nodes.length?this:new v(N(e),t instanceof v?[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=P(this.condition,e,t),this}get names(){const e=super.names;return j(e,this.condition),this.else&&C(e,this.else.names),e}}v.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=P(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=j(super.names,this.from);return j(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=P(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 _ 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 k extends m{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}k.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 j(e,r){return r instanceof t._CodeOrName?C(e,r.names):e}function P(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 v(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 v(e))}else(){return this._elseNode(new y)}endIf(){return this._endBlockNode(v,y)}_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 _;if(this._blockNode(n),this.code(e),t){const e=this.name("e");this._currNode=n.catch=new k(e),t(e)}return r&&(this._currNode=n.finally=new E,this.code(r)),this._endBlockNode(k,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 v))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 A=T(e.operators.AND);e.and=function(...e){return e.reduce(A)};const R=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(R)}}(ED);var PD={};!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=ED,r=CD;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}(PD);var OD,ND,AD,RD={};function TD(){if(OD)return RD;OD=1,Object.defineProperty(RD,"__esModule",{value:!0});const e=ED,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 RD.default=t,RD}function ID(){return ND||(ND=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=ED,r=PD,n=TD();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]}}(kD)),kD}var MD={},FD={};Object.defineProperty(FD,"__esModule",{value:!0}),FD.getRules=FD.isJSONType=void 0;const DD=new Set(["string","number","integer","boolean","null","object","array"]);FD.isJSONType=function(e){return"string"==typeof e&&DD.has(e)},FD.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 zD,LD={};function VD(){if(zD)return LD;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 zD=1,Object.defineProperty(LD,"__esModule",{value:!0}),LD.shouldUseRule=LD.shouldUseGroup=LD.schemaHasRulesForType=void 0,LD.schemaHasRulesForType=function({schema:t,self:r},n){const o=r.RULES.types[n];return o&&!0!==o&&e(t,o)},LD.shouldUseGroup=e,LD.shouldUseRule=t,LD}!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=FD,r=VD(),n=ID(),o=ED,a=PD;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
|
|
29
29
|
|| (${s} == "string" && ${a} && ${a} == +${a})`).assign(c,o._`+${a}`);case"integer":return void n.elseIf(o._`${s} === "boolean" || ${a} === null
|
|
30
30
|
|| (${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"
|
|
31
|
-
|| ${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}(jD);var TD,ID={};var MD,FD,DD={},zD={};function LD(){if(MD)return zD;MD=1,Object.defineProperty(zD,"__esModule",{value:!0}),zD.validateUnion=zD.validateArray=zD.usePattern=zD.callValidateCode=zD.schemaProperties=zD.allSchemaProperties=zD.noPropertyInData=zD.propertyInData=zD.isOwnProperty=zD.hasPropFunc=zD.reportMissingProp=zD.checkMissingProp=zD.checkReportMissingProp=void 0;const e=gD,t=SD,r=ED(),n=SD;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)):[]}zD.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()}))},zD.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}`))))},zD.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},zD.hasPropFunc=o,zD.isOwnProperty=a,zD.propertyInData=function(t,r,n,o){const i=e._`${r}${(0,e.getProperty)(n)} !== undefined`;return o?e._`${i} && ${a(t,r,n)}`:i},zD.noPropertyInData=i,zD.allSchemaProperties=s,zD.schemaProperties=function(e,r){return s(r).filter((n=>!(0,t.alwaysValidSchema)(e,r[n])))},zD.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 zD.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})`})},zD.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)}))}},zD.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)))},zD}function VD(){if(FD)return DD;FD=1,Object.defineProperty(DD,"__esModule",{value:!0}),DD.validateKeywordUsage=DD.validSchemaType=DD.funcKeywordCode=DD.macroKeywordCode=void 0;const e=gD,t=ED(),r=LD(),n=CD();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 DD.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)))},DD.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)},DD.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))},DD.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)}}},DD}var BD,UD={};var WD={},qD={exports:{}},KD=qD.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),HD(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function HD(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 KD.arrayKeywords)for(var f=0;f<d.length;f++)HD(e,t,r,d[f],o+"/"+u+"/"+f,a,o,u,n,f)}else if(u in KD.propsKeywords){if(d&&"object"==typeof d)for(var p in d)HD(e,t,r,d[p],o+"/"+u+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),a,o,u,n,p)}else(u in KD.keywords||e.allKeys&&!(u in KD.skipKeywords))&&HD(e,t,r,d,o+"/"+u,a,o,u,n)}r(n,o,a,i,s,l,c)}}KD.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},KD.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},KD.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},KD.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 GD=qD.exports;Object.defineProperty(WD,"__esModule",{value:!0}),WD.getSchemaRefs=WD.resolveUrl=WD.normalizeId=WD._getFullPath=WD.getFullPath=WD.inlineRef=void 0;const QD=SD,YD=JR,JD=GD,XD=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);WD.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!ez(e):!!t&&tz(e)<=t)};const ZD=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function ez(e){for(const t in e){if(ZD.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(ez))return!0;if("object"==typeof r&&ez(r))return!0}return!1}function tz(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!XD.has(r)&&("object"==typeof e[r]&&(0,QD.eachItem)(e[r],(e=>t+=tz(e))),t===1/0))return 1/0}return t}function rz(e,t="",r){!1!==r&&(t=az(t));const n=e.parse(t);return nz(e,n)}function nz(e,t){return e.serialize(t).split("#")[0]+"#"}WD.getFullPath=rz,WD._getFullPath=nz;const oz=/#\/?$/;function az(e){return e?e.replace(oz,""):""}WD.normalizeId=az,WD.resolveUrl=function(e,t,r){return r=az(r),e.resolve(t,r)};const iz=/^[a-z_][-a-z0-9._]*$/i;var sz;function lz(){if(sz)return hD;sz=1,Object.defineProperty(hD,"__esModule",{value:!0}),hD.getData=hD.KeywordCxt=hD.validateFunctionCode=void 0;const e=function(){if(_D)return vD;_D=1,Object.defineProperty(vD,"__esModule",{value:!0}),vD.boolOrEmptySchema=vD.topBoolOrEmptySchema=void 0;const e=CD(),t=gD,r=ED(),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 vD.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))},vD.boolOrEmptySchema=function(e,t){const{gen:r,schema:n}=e;!1===n?(r.var(t,!1),o(e)):r.var(t,!0)},vD}(),t=jD,r=RD(),n=jD,o=function(){if(TD)return ID;TD=1,Object.defineProperty(ID,"__esModule",{value:!0}),ID.assignDefaults=void 0;const e=gD,t=SD;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 ID.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)))},ID}(),a=VD(),i=function(){if(BD)return UD;BD=1,Object.defineProperty(UD,"__esModule",{value:!0}),UD.extendSubschemaMode=UD.extendSubschemaData=UD.getSubschema=void 0;const e=gD,t=SD;return UD.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')},UD.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)},UD.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},UD}(),s=gD,l=ED(),c=WD,u=SD,d=CD();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)||_(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"))&&_(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)))&&_(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 _(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,u.checkStrictMode)(e,t,e.opts.strictTypes)}hD.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 k{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",P(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 k(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)}hD.KeywordCxt=k;const C=/^\/(?:[^~]|~0|~1)*$/,j=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function P(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=j.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 hD.getData=P,hD}WD.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:r,uriResolver:n}=this.opts,o=az(e[r]||t),a={"":o},i=rz(n,o,!1),s={},l=new Set;return JD(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=az(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!==az(d)&&("#"===t[0]?(c(e,s[t],t),s[t]=e):this.refs[t]=d),t}function m(e){if("string"==typeof e){if(!iz.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&&!YD(e,t))throw u(r)}function u(e){return new Error(`reference "${e}" resolves to more than one schema`)}};var cz,uz={};function dz(){if(cz)return uz;cz=1,Object.defineProperty(uz,"__esModule",{value:!0});class e extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}return uz.default=e,uz}var fz,pz={};function mz(){if(fz)return pz;fz=1,Object.defineProperty(pz,"__esModule",{value:!0});const e=WD;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 pz.default=t,pz}var hz={};Object.defineProperty(hz,"__esModule",{value:!0}),hz.resolveSchema=hz.getCompilingSchema=hz.resolveRef=hz.compileSchema=hz.SchemaEnv=void 0;const vz=gD,yz=dz(),gz=ED(),bz=WD,wz=SD,Sz=lz();class xz{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,bz.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 $z(e){const t=kz.call(this,e);if(t)return t;const r=(0,bz.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new vz.CodeGen(this.scope,{es5:n,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:yz.default,code:vz._`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const c={gen:i,allErrors:this.opts.allErrors,data:gz.default.data,parentData:gz.default.parentData,parentDataProperty:gz.default.parentDataProperty,dataNames:[gz.default.data],dataPathArr:[vz.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,vz.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:vz.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:vz._`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,Sz.validateFunctionCode)(c),i.optimize(this.opts.code.optimize);const t=i.toString();u=`${i.scopeRefs(gz.default.scope)}return ${t}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const r=new Function(`${gz.default.self}`,`${gz.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 vz.Name?void 0:e,items:t instanceof vz.Name?void 0:t,dynamicProps:e instanceof vz.Name,dynamicItems:t instanceof vz.Name},r.source&&(r.source.evaluated=(0,vz.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 _z(e){return(0,bz.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:$z.call(this,e)}function kz(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 Ez(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||Cz.call(this,e,t)}function Cz(e,t){const r=this.opts.uriResolver.parse(t),n=(0,bz._getFullPath)(this.opts.uriResolver,r);let o=(0,bz.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return Pz.call(this,r,e);const a=(0,bz.normalizeId)(n),i=this.refs[a]||this.schemas[a];if("string"==typeof i){const t=Cz.call(this,e,i);if("object"!=typeof(null==t?void 0:t.schema))return;return Pz.call(this,r,t)}if("object"==typeof(null==i?void 0:i.schema)){if(i.validate||$z.call(this,i),a===(0,bz.normalizeId)(t)){const{schema:t}=i,{schemaId:r}=this.opts,n=t[r];return n&&(o=(0,bz.resolveUrl)(this.opts.uriResolver,o,n)),new xz({schema:t,schemaId:r,root:e,baseId:o})}return Pz.call(this,r,i)}}hz.SchemaEnv=xz,hz.compileSchema=$z,hz.resolveRef=function(e,t,r){var n;r=(0,bz.resolveUrl)(this.opts.uriResolver,t,r);const o=e.refs[r];if(o)return o;let a=Ez.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 xz({schema:o,schemaId:i,root:e,baseId:t}))}return void 0!==a?e.refs[r]=_z.call(this,a):void 0},hz.getCompilingSchema=kz,hz.resolveSchema=Cz;const jz=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Pz(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,wz.unescapeFragment)(n)];if(void 0===e)return;const o="object"==typeof(r=e)&&r[this.opts.schemaId];!jz.has(n)&&o&&(t=(0,bz.resolveUrl)(this.opts.uriResolver,t,o))}let a;if("boolean"!=typeof r&&r.$ref&&!(0,wz.schemaHasRulesButRef)(r,this.RULES)){const e=(0,bz.resolveUrl)(this.opts.uriResolver,t,r.$ref);a=Cz.call(this,n,e)}const{schemaId:i}=this.opts;return a=a||new xz({schema:r,schemaId:i,root:n,baseId:t}),a.schema!==a.root.schema?a:void 0}var Oz={$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},Nz={};Object.defineProperty(Nz,"__esModule",{value:!0});const Az=LT;Az.code='require("ajv/dist/runtime/uri").default',Nz.default=Az,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=lz();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=gD;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=dz(),o=mz(),a=PD,i=hz,s=gD,l=WD,c=jD,u=SD,d=Oz,f=Nz,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 j=e.strict,P=null===(t=e.code)||void 0===t?void 0:t.optimize,O=!0===P||void 0===P?1:P||0,N=null!==(n=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==n?n:p,A=null!==(o=e.uriResolver)&&void 0!==o?o:f.default;return{strictSchema:null===(i=null!==(a=e.strictSchema)&&void 0!==a?a:j)||void 0===i||i,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:j)||void 0===l||l,strictTypes:null!==(u=null!==(c=e.strictTypes)&&void 0!==c?c:j)&&void 0!==u?u:"log",strictTuples:null!==(m=null!==(d=e.strictTuples)&&void 0!==d?d:j)&&void 0!==m?m:"log",strictRequired:null!==(v=null!==(h=e.strictRequired)&&void 0!==h?h:j)&&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===(_=e.validateSchema)||void 0===_||_,validateFormats:null===(k=e.validateFormats)||void 0===k||k,unicodeRegExp:null===(E=e.unicodeRegExp)||void 0===E||E,int32range:null===(C=e.int32range)||void 0===C||C,uriResolver:A}}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=k.call(this),e.formats&&$.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&_.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(j.call(this,r,t),!t)return(0,u.eachItem)(r,(e=>P.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=>P.call(this,e,n):e=>n.type.forEach((t=>P.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]=R(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 _(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 k(){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 j(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 P(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=R(t)),e.validateSchema=this.compile(t,!0))}const A={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function R(e){return{anyOf:[e,A]}}}(mD);var Rz={},Tz={},Iz={};Object.defineProperty(Iz,"__esModule",{value:!0});const Mz={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Iz.default=Mz;var Fz={};Object.defineProperty(Fz,"__esModule",{value:!0}),Fz.callRef=Fz.getValidate=void 0;const Dz=mz(),zz=LD(),Lz=gD,Vz=ED(),Bz=hz,Uz=SD,Wz={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 Kz(e,i,a,a.$async);const r=t.scopeValue("root",{ref:c});return Kz(e,Lz._`${r}.validate`,c,c.$async)}();const u=Bz.resolveRef.call(l,c,o,r);if(void 0===u)throw new Dz.default(n.opts.uriResolver,o,r);return u instanceof Bz.SchemaEnv?function(t){const r=qz(e,t);Kz(e,r,t,t.$async)}(u):function(n){const o=t.scopeValue("schema",!0===s.code.source?{ref:n,code:(0,Lz.stringify)(n)}:{ref:n}),a=t.name("valid"),i=e.subschema({schema:n,dataTypes:[],schemaPath:Lz.nil,topSchemaRef:o,errSchemaPath:r},a);e.mergeEvaluated(i),e.ok(a)}(u)}};function qz(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):Lz._`${r.scopeValue("wrapper",{ref:t})}.validate`}function Kz(e,t,r,n){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,c=l.passContext?Vz.default.this:Lz.nil;function u(e){const t=Lz._`${e}.errors`;o.assign(Vz.default.vErrors,Lz._`${Vz.default.vErrors} === null ? ${t} : ${Vz.default.vErrors}.concat(${t})`),o.assign(Vz.default.errors,Lz._`${Vz.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=Uz.mergeEvaluated.props(o,n.props,a.props));else{const t=o.var("props",Lz._`${e}.evaluated.props`);a.props=Uz.mergeEvaluated.props(o,t,a.props,Lz.Name)}if(!0!==a.items)if(n&&!n.dynamicItems)void 0!==n.items&&(a.items=Uz.mergeEvaluated.items(o,n.items,a.items));else{const t=o.var("items",Lz._`${e}.evaluated.items`);a.items=Uz.mergeEvaluated.items(o,t,a.items,Lz.Name)}}n?function(){if(!s.$async)throw new Error("async schema referenced by sync schema");const r=o.let("valid");o.try((()=>{o.code(Lz._`await ${(0,zz.callValidateCode)(e,t,c)}`),d(t),i||o.assign(r,!0)}),(e=>{o.if(Lz._`!(${e} instanceof ${a.ValidationError})`,(()=>o.throw(e))),u(e),i||o.assign(r,!1)})),e.ok(r)}():e.result((0,zz.callValidateCode)(e,t,c),(()=>d(t)),(()=>u(t)))}Fz.getValidate=qz,Fz.callRef=Kz,Fz.default=Wz,Object.defineProperty(Tz,"__esModule",{value:!0});const Hz=Fz,Gz=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Iz.default,Hz.default];Tz.default=Gz;var Qz={},Yz={};Object.defineProperty(Yz,"__esModule",{value:!0});const Jz=gD,Xz=Jz.operators,Zz={maximum:{okStr:"<=",ok:Xz.LTE,fail:Xz.GT},minimum:{okStr:">=",ok:Xz.GTE,fail:Xz.LT},exclusiveMaximum:{okStr:"<",ok:Xz.LT,fail:Xz.GTE},exclusiveMinimum:{okStr:">",ok:Xz.GT,fail:Xz.LTE}},eL={message:({keyword:e,schemaCode:t})=>Jz.str`must be ${Zz[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>Jz._`{comparison: ${Zz[e].okStr}, limit: ${t}}`},tL={keyword:Object.keys(Zz),type:"number",schemaType:"number",$data:!0,error:eL,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data(Jz._`${r} ${Zz[t].fail} ${n} || isNaN(${r})`)}};Yz.default=tL;var rL={};Object.defineProperty(rL,"__esModule",{value:!0});const nL=gD,oL={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>nL.str`must be multiple of ${e}`,params:({schemaCode:e})=>nL._`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:n,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?nL._`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:nL._`${i} !== parseInt(${i})`;e.fail$data(nL._`(${n} === 0 || (${i} = ${r}/${n}, ${s}))`)}};rL.default=oL;var aL={},iL={};function sL(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(iL,"__esModule",{value:!0}),iL.default=sL,sL.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty(aL,"__esModule",{value:!0});const lL=gD,cL=SD,uL=iL,dL={message({keyword:e,schemaCode:t}){const r="maxLength"===e?"more":"fewer";return lL.str`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>lL._`{limit: ${e}}`},fL={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:dL,code(e){const{keyword:t,data:r,schemaCode:n,it:o}=e,a="maxLength"===t?lL.operators.GT:lL.operators.LT,i=!1===o.opts.unicode?lL._`${r}.length`:lL._`${(0,cL.useFunc)(e.gen,uL.default)}(${r})`;e.fail$data(lL._`${i} ${a} ${n}`)}};aL.default=fL;var pL={};Object.defineProperty(pL,"__esModule",{value:!0});const mL=LD(),hL=gD,vL={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>hL.str`must match pattern "${e}"`,params:({schemaCode:e})=>hL._`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:n,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=r?hL._`(new RegExp(${o}, ${i}))`:(0,mL.usePattern)(e,n);e.fail$data(hL._`!${s}.test(${t})`)}};pL.default=vL;var yL={};Object.defineProperty(yL,"__esModule",{value:!0});const gL=gD,bL={message({keyword:e,schemaCode:t}){const r="maxProperties"===e?"more":"fewer";return gL.str`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>gL._`{limit: ${e}}`},wL={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:bL,code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxProperties"===t?gL.operators.GT:gL.operators.LT;e.fail$data(gL._`Object.keys(${r}).length ${o} ${n}`)}};yL.default=wL;var SL={};Object.defineProperty(SL,"__esModule",{value:!0});const xL=LD(),$L=gD,_L=SD,kL={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>$L.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>$L._`{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($L.nil,c);else for(const t of r)(0,xL.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,xL.propertyInData)(t,o,r,s.ownProperties)),t.if((0,$L.not)(a),(()=>{e.error(),t.break()}))}),$L.nil)}(i,r))),e.ok(r)}else t.if((0,xL.checkMissingProp)(e,r,i)),(0,xL.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,_L.checkStrictMode)(i,t,i.opts.strictRequired)}}function c(){t.forOf("prop",n,(r=>{e.setParams({missingProperty:r}),t.if((0,xL.noPropertyInData)(t,o,r,s.ownProperties),(()=>e.error()))}))}}};SL.default=kL;var EL={};Object.defineProperty(EL,"__esModule",{value:!0});const CL=gD,jL={message({keyword:e,schemaCode:t}){const r="maxItems"===e?"more":"fewer";return CL.str`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>CL._`{limit: ${e}}`},PL={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:jL,code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxItems"===t?CL.operators.GT:CL.operators.LT;e.fail$data(CL._`${r}.length ${o} ${n}`)}};EL.default=PL;var OL={},NL={};Object.defineProperty(NL,"__esModule",{value:!0});const AL=JR;AL.code='require("ajv/dist/runtime/equal").default',NL.default=AL,Object.defineProperty(OL,"__esModule",{value:!0});const RL=jD,TL=gD,IL=SD,ML=NL,FL={message:({params:{i:e,j:t}})=>TL.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>TL._`{i: ${e}, j: ${t}}`},DL={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:FL,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,RL.getSchemaTypes)(a.items):[];function u(n,o){const a=t.name("item"),i=(0,RL.checkDataTypes)(c,a,s.opts.strictNumbers,RL.DataType.Wrong),u=t.const("indices",TL._`{}`);t.for(TL._`;${n}--;`,(()=>{t.let(a,TL._`${r}[${n}]`),t.if(i,TL._`continue`),c.length>1&&t.if(TL._`typeof ${a} == "string"`,TL._`${a} += "_"`),t.if(TL._`typeof ${u}[${a}] == "number"`,(()=>{t.assign(o,TL._`${u}[${a}]`),e.error(),t.assign(l,!1).break()})).code(TL._`${u}[${a}] = ${n}`)}))}function d(n,o){const a=(0,IL.useFunc)(t,ML.default),i=t.name("outer");t.label(i).for(TL._`;${n}--;`,(()=>t.for(TL._`${o} = ${n}; ${o}--;`,(()=>t.if(TL._`${a}(${r}[${n}], ${r}[${o}])`,(()=>{e.error(),t.assign(l,!1).break(i)}))))))}e.block$data(l,(function(){const n=t.let("i",TL._`${r}.length`),o=t.let("j");e.setParams({i:n,j:o}),t.assign(l,!0),t.if(TL._`${n} > 1`,(()=>(c.length>0&&!c.some((e=>"object"===e||"array"===e))?u:d)(n,o)))}),TL._`${i} === false`),e.ok(l)}};OL.default=DL;var zL={};Object.defineProperty(zL,"__esModule",{value:!0});const LL=gD,VL=SD,BL=NL,UL={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>LL._`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,$data:n,schemaCode:o,schema:a}=e;n||a&&"object"==typeof a?e.fail$data(LL._`!${(0,VL.useFunc)(t,BL.default)}(${r}, ${o})`):e.fail(LL._`${a} !== ${r}`)}};zL.default=UL;var WL={};Object.defineProperty(WL,"__esModule",{value:!0});const qL=gD,KL=SD,HL=NL,GL={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>qL._`{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,KL.useFunc)(t,HL.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(qL._`${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,qL.or)(...o.map(((t,n)=>function(e,t){const n=o[t];return"object"==typeof n&&null!==n?qL._`${c()}(${r}, ${e}[${t}])`:qL._`${r} === ${n}`}(e,n))))}e.pass(u)}};WL.default=GL,Object.defineProperty(Qz,"__esModule",{value:!0});const QL=rL,YL=aL,JL=pL,XL=yL,ZL=SL,eV=EL,tV=OL,rV=zL,nV=WL,oV=[Yz.default,QL.default,YL.default,JL.default,XL.default,ZL.default,eV.default,tV.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},rV.default,nV.default];Qz.default=oV;var aV={},iV={};Object.defineProperty(iV,"__esModule",{value:!0}),iV.validateAdditionalItems=void 0;const sV=gD,lV=SD,cV={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>sV.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>sV._`{limit: ${e}}`},code(e){const{parentSchema:t,it:r}=e,{items:n}=t;Array.isArray(n)?uV(e,n):(0,lV.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function uV(e,t){const{gen:r,schema:n,data:o,keyword:a,it:i}=e;i.items=!0;const s=r.const("len",sV._`${o}.length`);if(!1===n)e.setParams({len:t.length}),e.pass(sV._`${s} <= ${t.length}`);else if("object"==typeof n&&!(0,lV.alwaysValidSchema)(i,n)){const n=r.var("valid",sV._`${s} <= ${t.length}`);r.if((0,sV.not)(n),(()=>function(n){r.forRange("i",t.length,s,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:lV.Type.Num},n),i.allErrors||r.if((0,sV.not)(n),(()=>r.break()))}))}(n))),e.ok(n)}}iV.validateAdditionalItems=uV,iV.default=cV;var dV={},fV={};Object.defineProperty(fV,"__esModule",{value:!0}),fV.validateTuple=void 0;const pV=gD,mV=SD,hV=LD(),vV={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return yV(e,"additionalItems",t);r.items=!0,(0,mV.alwaysValidSchema)(r,t)||e.ok((0,hV.validateArray)(e))}};function yV(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,mV.checkStrictMode)(s,e,n.strictTuples)}}(o),s.opts.unevaluated&&r.length&&!0!==s.items&&(s.items=mV.mergeEvaluated.items(n,r.length,s.items));const l=n.name("valid"),c=n.const("len",pV._`${a}.length`);r.forEach(((t,r)=>{(0,mV.alwaysValidSchema)(s,t)||(n.if(pV._`${c} > ${r}`,(()=>e.subschema({keyword:i,schemaProp:r,dataProp:r},l))),e.ok(l))}))}fV.validateTuple=yV,fV.default=vV,Object.defineProperty(dV,"__esModule",{value:!0});const gV=fV,bV={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,gV.validateTuple)(e,"items")};dV.default=bV;var wV={};Object.defineProperty(wV,"__esModule",{value:!0});const SV=gD,xV=SD,$V=LD(),_V=iV,kV={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>SV.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>SV._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,(0,xV.alwaysValidSchema)(n,t)||(o?(0,_V.validateAdditionalItems)(e,o):e.ok((0,$V.validateArray)(e)))}};wV.default=kV;var EV={};Object.defineProperty(EV,"__esModule",{value:!0});const CV=gD,jV=SD,PV={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?CV.str`must contain at least ${e} valid item(s)`:CV.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?CV._`{minContains: ${e}}`:CV._`{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",CV._`${o}.length`);if(e.setParams({min:i,max:s}),void 0===s&&0===i)return void(0,jV.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==s&&i>s)return(0,jV.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,jV.alwaysValidSchema)(a,r)){let t=CV._`${u} >= ${i}`;return void 0!==s&&(t=CV._`${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(CV._`${e}++`),void 0===s?t.if(CV._`${e} >= ${i}`,(()=>t.assign(d,!0).break())):(t.if(CV._`${e} > ${s}`,(()=>t.assign(d,!1).break())),1===i?t.assign(d,!0):t.if(CV._`${e} >= ${i}`,(()=>t.assign(d,!0))))}(r)))))}function p(r,n){t.forRange("i",0,u,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:jV.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(CV._`${o}.length > 0`,f)):(t.let(d,!1),f()),e.result(d,(()=>e.reset()))}};EV.default=PV;var OV={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=gD,r=SD,n=LD();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},
|
|
31
|
+
|| ${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}(MD);var BD,UD={};var WD,qD,KD={},HD={};function GD(){if(WD)return HD;WD=1,Object.defineProperty(HD,"__esModule",{value:!0}),HD.validateUnion=HD.validateArray=HD.usePattern=HD.callValidateCode=HD.schemaProperties=HD.allSchemaProperties=HD.noPropertyInData=HD.propertyInData=HD.isOwnProperty=HD.hasPropFunc=HD.reportMissingProp=HD.checkMissingProp=HD.checkReportMissingProp=void 0;const e=ED,t=PD,r=TD(),n=PD;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)):[]}HD.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()}))},HD.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}`))))},HD.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},HD.hasPropFunc=o,HD.isOwnProperty=a,HD.propertyInData=function(t,r,n,o){const i=e._`${r}${(0,e.getProperty)(n)} !== undefined`;return o?e._`${i} && ${a(t,r,n)}`:i},HD.noPropertyInData=i,HD.allSchemaProperties=s,HD.schemaProperties=function(e,r){return s(r).filter((n=>!(0,t.alwaysValidSchema)(e,r[n])))},HD.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 HD.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})`})},HD.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)}))}},HD.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)))},HD}function QD(){if(qD)return KD;qD=1,Object.defineProperty(KD,"__esModule",{value:!0}),KD.validateKeywordUsage=KD.validSchemaType=KD.funcKeywordCode=KD.macroKeywordCode=void 0;const e=ED,t=TD(),r=GD(),n=ID();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 KD.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)))},KD.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,y=a(c,u,h),v=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(v,e._`${n}${(0,r.callValidateCode)(i,y,o,a)}`,s.modifying)}function b(t){var r;c.if((0,e.not)(null!==(r=s.valid)&&void 0!==r?r:v),t)}i.block$data(v,(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(v,!1).if(e._`${r} instanceof ${m.ValidationError}`,(()=>c.assign(t,e._`${r}.errors`)),(()=>c.throw(r))))),t}():function(){const t=e._`${y}.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:v)},KD.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))},KD.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)}}},KD}var YD,JD={};var XD={},ZD={exports:{}},ez=ZD.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),tz(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function tz(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 ez.arrayKeywords)for(var f=0;f<d.length;f++)tz(e,t,r,d[f],o+"/"+u+"/"+f,a,o,u,n,f)}else if(u in ez.propsKeywords){if(d&&"object"==typeof d)for(var p in d)tz(e,t,r,d[p],o+"/"+u+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),a,o,u,n,p)}else(u in ez.keywords||e.allKeys&&!(u in ez.skipKeywords))&&tz(e,t,r,d,o+"/"+u,a,o,u,n)}r(n,o,a,i,s,l,c)}}ez.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},ez.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},ez.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},ez.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 rz=ZD.exports;Object.defineProperty(XD,"__esModule",{value:!0}),XD.getSchemaRefs=XD.resolveUrl=XD.normalizeId=XD._getFullPath=XD.getFullPath=XD.inlineRef=void 0;const nz=PD,oz=aT,az=rz,iz=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);XD.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!lz(e):!!t&&cz(e)<=t)};const sz=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function lz(e){for(const t in e){if(sz.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(lz))return!0;if("object"==typeof r&&lz(r))return!0}return!1}function cz(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!iz.has(r)&&("object"==typeof e[r]&&(0,nz.eachItem)(e[r],(e=>t+=cz(e))),t===1/0))return 1/0}return t}function uz(e,t="",r){!1!==r&&(t=pz(t));const n=e.parse(t);return dz(e,n)}function dz(e,t){return e.serialize(t).split("#")[0]+"#"}XD.getFullPath=uz,XD._getFullPath=dz;const fz=/#\/?$/;function pz(e){return e?e.replace(fz,""):""}XD.normalizeId=pz,XD.resolveUrl=function(e,t,r){return r=pz(r),e.resolve(t,r)};const mz=/^[a-z_][-a-z0-9._]*$/i;var hz;function yz(){if(hz)return $D;hz=1,Object.defineProperty($D,"__esModule",{value:!0}),$D.getData=$D.KeywordCxt=$D.validateFunctionCode=void 0;const e=function(){if(AD)return _D;AD=1,Object.defineProperty(_D,"__esModule",{value:!0}),_D.boolOrEmptySchema=_D.topBoolOrEmptySchema=void 0;const e=ID(),t=ED,r=TD(),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 _D.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))},_D.boolOrEmptySchema=function(e,t){const{gen:r,schema:n}=e;!1===n?(r.var(t,!1),o(e)):r.var(t,!0)},_D}(),t=MD,r=VD(),n=MD,o=function(){if(BD)return UD;BD=1,Object.defineProperty(UD,"__esModule",{value:!0}),UD.assignDefaults=void 0;const e=ED,t=PD;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 UD.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)))},UD}(),a=QD(),i=function(){if(YD)return JD;YD=1,Object.defineProperty(JD,"__esModule",{value:!0}),JD.extendSubschemaMode=JD.extendSubschemaData=JD.getSubschema=void 0;const e=ED,t=PD;return JD.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')},JD.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)},JD.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},JD}(),s=ED,l=TD(),c=XD,u=PD,d=ID();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){y(t)&&(v(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 y(e){return"boolean"!=typeof e.schema}function v(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 y(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)||_(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"))&&_(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)))&&_(e,`missing type "${r.join(",")}" for keyword "${o}"`)}}}(e,e.dataTypes)}(e,t),i.block((()=>{for(const e of h.rules)y(e);y(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 _(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,u.checkStrictMode)(e,t,e.opts.strictTypes)}$D.validateFunctionCode=function(t){y(t)&&(v(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 k{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",P(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 k(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)}$D.KeywordCxt=k;const C=/^\/(?:[^~]|~0|~1)*$/,j=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function P(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=j.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 $D.getData=P,$D}XD.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:r,uriResolver:n}=this.opts,o=pz(e[r]||t),a={"":o},i=uz(n,o,!1),s={},l=new Set;return az(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=pz(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!==pz(d)&&("#"===t[0]?(c(e,s[t],t),s[t]=e):this.refs[t]=d),t}function m(e){if("string"==typeof e){if(!mz.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&&!oz(e,t))throw u(r)}function u(e){return new Error(`reference "${e}" resolves to more than one schema`)}};var vz,gz={};function bz(){if(vz)return gz;vz=1,Object.defineProperty(gz,"__esModule",{value:!0});class e extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}return gz.default=e,gz}var wz,Sz={};function xz(){if(wz)return Sz;wz=1,Object.defineProperty(Sz,"__esModule",{value:!0});const e=XD;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 Sz.default=t,Sz}var $z={};Object.defineProperty($z,"__esModule",{value:!0}),$z.resolveSchema=$z.getCompilingSchema=$z.resolveRef=$z.compileSchema=$z.SchemaEnv=void 0;const _z=ED,kz=bz(),Ez=TD(),Cz=XD,jz=PD,Pz=yz();class Oz{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,Cz.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 Nz(e){const t=Rz.call(this,e);if(t)return t;const r=(0,Cz.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new _z.CodeGen(this.scope,{es5:n,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:kz.default,code:_z._`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const c={gen:i,allErrors:this.opts.allErrors,data:Ez.default.data,parentData:Ez.default.parentData,parentDataProperty:Ez.default.parentDataProperty,dataNames:[Ez.default.data],dataPathArr:[_z.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,_z.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:_z.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:_z._`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,Pz.validateFunctionCode)(c),i.optimize(this.opts.code.optimize);const t=i.toString();u=`${i.scopeRefs(Ez.default.scope)}return ${t}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const r=new Function(`${Ez.default.self}`,`${Ez.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 _z.Name?void 0:e,items:t instanceof _z.Name?void 0:t,dynamicProps:e instanceof _z.Name,dynamicItems:t instanceof _z.Name},r.source&&(r.source.evaluated=(0,_z.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 Az(e){return(0,Cz.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Nz.call(this,e)}function Rz(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 Tz(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||Iz.call(this,e,t)}function Iz(e,t){const r=this.opts.uriResolver.parse(t),n=(0,Cz._getFullPath)(this.opts.uriResolver,r);let o=(0,Cz.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return Fz.call(this,r,e);const a=(0,Cz.normalizeId)(n),i=this.refs[a]||this.schemas[a];if("string"==typeof i){const t=Iz.call(this,e,i);if("object"!=typeof(null==t?void 0:t.schema))return;return Fz.call(this,r,t)}if("object"==typeof(null==i?void 0:i.schema)){if(i.validate||Nz.call(this,i),a===(0,Cz.normalizeId)(t)){const{schema:t}=i,{schemaId:r}=this.opts,n=t[r];return n&&(o=(0,Cz.resolveUrl)(this.opts.uriResolver,o,n)),new Oz({schema:t,schemaId:r,root:e,baseId:o})}return Fz.call(this,r,i)}}$z.SchemaEnv=Oz,$z.compileSchema=Nz,$z.resolveRef=function(e,t,r){var n;r=(0,Cz.resolveUrl)(this.opts.uriResolver,t,r);const o=e.refs[r];if(o)return o;let a=Tz.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 Oz({schema:o,schemaId:i,root:e,baseId:t}))}return void 0!==a?e.refs[r]=Az.call(this,a):void 0},$z.getCompilingSchema=Rz,$z.resolveSchema=Iz;const Mz=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Fz(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,jz.unescapeFragment)(n)];if(void 0===e)return;const o="object"==typeof(r=e)&&r[this.opts.schemaId];!Mz.has(n)&&o&&(t=(0,Cz.resolveUrl)(this.opts.uriResolver,t,o))}let a;if("boolean"!=typeof r&&r.$ref&&!(0,jz.schemaHasRulesButRef)(r,this.RULES)){const e=(0,Cz.resolveUrl)(this.opts.uriResolver,t,r.$ref);a=Iz.call(this,n,e)}const{schemaId:i}=this.opts;return a=a||new Oz({schema:r,schemaId:i,root:n,baseId:t}),a.schema!==a.root.schema?a:void 0}var Dz={$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},zz={};Object.defineProperty(zz,"__esModule",{value:!0});const Lz=GT;Lz.code='require("ajv/dist/runtime/uri").default',zz.default=Lz,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=yz();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=ED;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=bz(),o=xz(),a=FD,i=$z,s=ED,l=XD,c=MD,u=PD,d=Dz,f=zz,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"]),y={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."},v={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,y,v,g,b,w,S,x,$,_,k,E,C;const j=e.strict,P=null===(t=e.code)||void 0===t?void 0:t.optimize,O=!0===P||void 0===P?1:P||0,N=null!==(n=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==n?n:p,A=null!==(o=e.uriResolver)&&void 0!==o?o:f.default;return{strictSchema:null===(i=null!==(a=e.strictSchema)&&void 0!==a?a:j)||void 0===i||i,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:j)||void 0===l||l,strictTypes:null!==(u=null!==(c=e.strictTypes)&&void 0!==c?c:j)&&void 0!==u?u:"log",strictTuples:null!==(m=null!==(d=e.strictTuples)&&void 0!==d?d:j)&&void 0!==m?m:"log",strictRequired:null!==(y=null!==(h=e.strictRequired)&&void 0!==h?h:j)&&void 0!==y&&y,code:e.code?{...e.code,optimize:O,regExp:N}:{optimize:O,regExp:N},loopRequired:null!==(v=e.loopRequired)&&void 0!==v?v: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===(_=e.validateSchema)||void 0===_||_,validateFormats:null===(k=e.validateFormats)||void 0===k||k,unicodeRegExp:null===(E=e.unicodeRegExp)||void 0===E||E,int32range:null===(C=e.int32range)||void 0===C||C,uriResolver:A}}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,y,e,"NOT SUPPORTED"),w.call(this,v,e,"DEPRECATED","warn"),this._metaOpts=k.call(this),e.formats&&$.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&_.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(j.call(this,r,t),!t)return(0,u.eachItem)(r,(e=>P.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=>P.call(this,e,n):e=>n.type.forEach((t=>P.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]=R(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 _(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 k(){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 j(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 P(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=R(t)),e.validateSchema=this.compile(t,!0))}const A={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function R(e){return{anyOf:[e,A]}}}(xD);var Vz={},Bz={},Uz={};Object.defineProperty(Uz,"__esModule",{value:!0});const Wz={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Uz.default=Wz;var qz={};Object.defineProperty(qz,"__esModule",{value:!0}),qz.callRef=qz.getValidate=void 0;const Kz=xz(),Hz=GD(),Gz=ED,Qz=TD(),Yz=$z,Jz=PD,Xz={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 eL(e,i,a,a.$async);const r=t.scopeValue("root",{ref:c});return eL(e,Gz._`${r}.validate`,c,c.$async)}();const u=Yz.resolveRef.call(l,c,o,r);if(void 0===u)throw new Kz.default(n.opts.uriResolver,o,r);return u instanceof Yz.SchemaEnv?function(t){const r=Zz(e,t);eL(e,r,t,t.$async)}(u):function(n){const o=t.scopeValue("schema",!0===s.code.source?{ref:n,code:(0,Gz.stringify)(n)}:{ref:n}),a=t.name("valid"),i=e.subschema({schema:n,dataTypes:[],schemaPath:Gz.nil,topSchemaRef:o,errSchemaPath:r},a);e.mergeEvaluated(i),e.ok(a)}(u)}};function Zz(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):Gz._`${r.scopeValue("wrapper",{ref:t})}.validate`}function eL(e,t,r,n){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,c=l.passContext?Qz.default.this:Gz.nil;function u(e){const t=Gz._`${e}.errors`;o.assign(Qz.default.vErrors,Gz._`${Qz.default.vErrors} === null ? ${t} : ${Qz.default.vErrors}.concat(${t})`),o.assign(Qz.default.errors,Gz._`${Qz.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=Jz.mergeEvaluated.props(o,n.props,a.props));else{const t=o.var("props",Gz._`${e}.evaluated.props`);a.props=Jz.mergeEvaluated.props(o,t,a.props,Gz.Name)}if(!0!==a.items)if(n&&!n.dynamicItems)void 0!==n.items&&(a.items=Jz.mergeEvaluated.items(o,n.items,a.items));else{const t=o.var("items",Gz._`${e}.evaluated.items`);a.items=Jz.mergeEvaluated.items(o,t,a.items,Gz.Name)}}n?function(){if(!s.$async)throw new Error("async schema referenced by sync schema");const r=o.let("valid");o.try((()=>{o.code(Gz._`await ${(0,Hz.callValidateCode)(e,t,c)}`),d(t),i||o.assign(r,!0)}),(e=>{o.if(Gz._`!(${e} instanceof ${a.ValidationError})`,(()=>o.throw(e))),u(e),i||o.assign(r,!1)})),e.ok(r)}():e.result((0,Hz.callValidateCode)(e,t,c),(()=>d(t)),(()=>u(t)))}qz.getValidate=Zz,qz.callRef=eL,qz.default=Xz,Object.defineProperty(Bz,"__esModule",{value:!0});const tL=qz,rL=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Uz.default,tL.default];Bz.default=rL;var nL={},oL={};Object.defineProperty(oL,"__esModule",{value:!0});const aL=ED,iL=aL.operators,sL={maximum:{okStr:"<=",ok:iL.LTE,fail:iL.GT},minimum:{okStr:">=",ok:iL.GTE,fail:iL.LT},exclusiveMaximum:{okStr:"<",ok:iL.LT,fail:iL.GTE},exclusiveMinimum:{okStr:">",ok:iL.GT,fail:iL.LTE}},lL={message:({keyword:e,schemaCode:t})=>aL.str`must be ${sL[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>aL._`{comparison: ${sL[e].okStr}, limit: ${t}}`},cL={keyword:Object.keys(sL),type:"number",schemaType:"number",$data:!0,error:lL,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data(aL._`${r} ${sL[t].fail} ${n} || isNaN(${r})`)}};oL.default=cL;var uL={};Object.defineProperty(uL,"__esModule",{value:!0});const dL=ED,fL={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>dL.str`must be multiple of ${e}`,params:({schemaCode:e})=>dL._`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:n,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?dL._`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:dL._`${i} !== parseInt(${i})`;e.fail$data(dL._`(${n} === 0 || (${i} = ${r}/${n}, ${s}))`)}};uL.default=fL;var pL={},mL={};function hL(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(mL,"__esModule",{value:!0}),mL.default=hL,hL.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty(pL,"__esModule",{value:!0});const yL=ED,vL=PD,gL=mL,bL={message({keyword:e,schemaCode:t}){const r="maxLength"===e?"more":"fewer";return yL.str`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>yL._`{limit: ${e}}`},wL={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:bL,code(e){const{keyword:t,data:r,schemaCode:n,it:o}=e,a="maxLength"===t?yL.operators.GT:yL.operators.LT,i=!1===o.opts.unicode?yL._`${r}.length`:yL._`${(0,vL.useFunc)(e.gen,gL.default)}(${r})`;e.fail$data(yL._`${i} ${a} ${n}`)}};pL.default=wL;var SL={};Object.defineProperty(SL,"__esModule",{value:!0});const xL=GD(),$L=ED,_L={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>$L.str`must match pattern "${e}"`,params:({schemaCode:e})=>$L._`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:n,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=r?$L._`(new RegExp(${o}, ${i}))`:(0,xL.usePattern)(e,n);e.fail$data($L._`!${s}.test(${t})`)}};SL.default=_L;var kL={};Object.defineProperty(kL,"__esModule",{value:!0});const EL=ED,CL={message({keyword:e,schemaCode:t}){const r="maxProperties"===e?"more":"fewer";return EL.str`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>EL._`{limit: ${e}}`},jL={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:CL,code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxProperties"===t?EL.operators.GT:EL.operators.LT;e.fail$data(EL._`Object.keys(${r}).length ${o} ${n}`)}};kL.default=jL;var PL={};Object.defineProperty(PL,"__esModule",{value:!0});const OL=GD(),NL=ED,AL=PD,RL={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>NL.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>NL._`{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(NL.nil,c);else for(const t of r)(0,OL.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,OL.propertyInData)(t,o,r,s.ownProperties)),t.if((0,NL.not)(a),(()=>{e.error(),t.break()}))}),NL.nil)}(i,r))),e.ok(r)}else t.if((0,OL.checkMissingProp)(e,r,i)),(0,OL.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,AL.checkStrictMode)(i,t,i.opts.strictRequired)}}function c(){t.forOf("prop",n,(r=>{e.setParams({missingProperty:r}),t.if((0,OL.noPropertyInData)(t,o,r,s.ownProperties),(()=>e.error()))}))}}};PL.default=RL;var TL={};Object.defineProperty(TL,"__esModule",{value:!0});const IL=ED,ML={message({keyword:e,schemaCode:t}){const r="maxItems"===e?"more":"fewer";return IL.str`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>IL._`{limit: ${e}}`},FL={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:ML,code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxItems"===t?IL.operators.GT:IL.operators.LT;e.fail$data(IL._`${r}.length ${o} ${n}`)}};TL.default=FL;var DL={},zL={};Object.defineProperty(zL,"__esModule",{value:!0});const LL=aT;LL.code='require("ajv/dist/runtime/equal").default',zL.default=LL,Object.defineProperty(DL,"__esModule",{value:!0});const VL=MD,BL=ED,UL=PD,WL=zL,qL={message:({params:{i:e,j:t}})=>BL.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>BL._`{i: ${e}, j: ${t}}`},KL={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:qL,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,VL.getSchemaTypes)(a.items):[];function u(n,o){const a=t.name("item"),i=(0,VL.checkDataTypes)(c,a,s.opts.strictNumbers,VL.DataType.Wrong),u=t.const("indices",BL._`{}`);t.for(BL._`;${n}--;`,(()=>{t.let(a,BL._`${r}[${n}]`),t.if(i,BL._`continue`),c.length>1&&t.if(BL._`typeof ${a} == "string"`,BL._`${a} += "_"`),t.if(BL._`typeof ${u}[${a}] == "number"`,(()=>{t.assign(o,BL._`${u}[${a}]`),e.error(),t.assign(l,!1).break()})).code(BL._`${u}[${a}] = ${n}`)}))}function d(n,o){const a=(0,UL.useFunc)(t,WL.default),i=t.name("outer");t.label(i).for(BL._`;${n}--;`,(()=>t.for(BL._`${o} = ${n}; ${o}--;`,(()=>t.if(BL._`${a}(${r}[${n}], ${r}[${o}])`,(()=>{e.error(),t.assign(l,!1).break(i)}))))))}e.block$data(l,(function(){const n=t.let("i",BL._`${r}.length`),o=t.let("j");e.setParams({i:n,j:o}),t.assign(l,!0),t.if(BL._`${n} > 1`,(()=>(c.length>0&&!c.some((e=>"object"===e||"array"===e))?u:d)(n,o)))}),BL._`${i} === false`),e.ok(l)}};DL.default=KL;var HL={};Object.defineProperty(HL,"__esModule",{value:!0});const GL=ED,QL=PD,YL=zL,JL={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>GL._`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,$data:n,schemaCode:o,schema:a}=e;n||a&&"object"==typeof a?e.fail$data(GL._`!${(0,QL.useFunc)(t,YL.default)}(${r}, ${o})`):e.fail(GL._`${a} !== ${r}`)}};HL.default=JL;var XL={};Object.defineProperty(XL,"__esModule",{value:!0});const ZL=ED,eV=PD,tV=zL,rV={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>ZL._`{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,eV.useFunc)(t,tV.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(ZL._`${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,ZL.or)(...o.map(((t,n)=>function(e,t){const n=o[t];return"object"==typeof n&&null!==n?ZL._`${c()}(${r}, ${e}[${t}])`:ZL._`${r} === ${n}`}(e,n))))}e.pass(u)}};XL.default=rV,Object.defineProperty(nL,"__esModule",{value:!0});const nV=uL,oV=pL,aV=SL,iV=kL,sV=PL,lV=TL,cV=DL,uV=HL,dV=XL,fV=[oL.default,nV.default,oV.default,aV.default,iV.default,sV.default,lV.default,cV.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},uV.default,dV.default];nL.default=fV;var pV={},mV={};Object.defineProperty(mV,"__esModule",{value:!0}),mV.validateAdditionalItems=void 0;const hV=ED,yV=PD,vV={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>hV.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>hV._`{limit: ${e}}`},code(e){const{parentSchema:t,it:r}=e,{items:n}=t;Array.isArray(n)?gV(e,n):(0,yV.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function gV(e,t){const{gen:r,schema:n,data:o,keyword:a,it:i}=e;i.items=!0;const s=r.const("len",hV._`${o}.length`);if(!1===n)e.setParams({len:t.length}),e.pass(hV._`${s} <= ${t.length}`);else if("object"==typeof n&&!(0,yV.alwaysValidSchema)(i,n)){const n=r.var("valid",hV._`${s} <= ${t.length}`);r.if((0,hV.not)(n),(()=>function(n){r.forRange("i",t.length,s,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:yV.Type.Num},n),i.allErrors||r.if((0,hV.not)(n),(()=>r.break()))}))}(n))),e.ok(n)}}mV.validateAdditionalItems=gV,mV.default=vV;var bV={},wV={};Object.defineProperty(wV,"__esModule",{value:!0}),wV.validateTuple=void 0;const SV=ED,xV=PD,$V=GD(),_V={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return kV(e,"additionalItems",t);r.items=!0,(0,xV.alwaysValidSchema)(r,t)||e.ok((0,$V.validateArray)(e))}};function kV(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,xV.checkStrictMode)(s,e,n.strictTuples)}}(o),s.opts.unevaluated&&r.length&&!0!==s.items&&(s.items=xV.mergeEvaluated.items(n,r.length,s.items));const l=n.name("valid"),c=n.const("len",SV._`${a}.length`);r.forEach(((t,r)=>{(0,xV.alwaysValidSchema)(s,t)||(n.if(SV._`${c} > ${r}`,(()=>e.subschema({keyword:i,schemaProp:r,dataProp:r},l))),e.ok(l))}))}wV.validateTuple=kV,wV.default=_V,Object.defineProperty(bV,"__esModule",{value:!0});const EV=wV,CV={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,EV.validateTuple)(e,"items")};bV.default=CV;var jV={};Object.defineProperty(jV,"__esModule",{value:!0});const PV=ED,OV=PD,NV=GD(),AV=mV,RV={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>PV.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>PV._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,(0,OV.alwaysValidSchema)(n,t)||(o?(0,AV.validateAdditionalItems)(e,o):e.ok((0,NV.validateArray)(e)))}};jV.default=RV;var TV={};Object.defineProperty(TV,"__esModule",{value:!0});const IV=ED,MV=PD,FV={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?IV.str`must contain at least ${e} valid item(s)`:IV.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?IV._`{minContains: ${e}}`:IV._`{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",IV._`${o}.length`);if(e.setParams({min:i,max:s}),void 0===s&&0===i)return void(0,MV.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==s&&i>s)return(0,MV.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,MV.alwaysValidSchema)(a,r)){let t=IV._`${u} >= ${i}`;return void 0!==s&&(t=IV._`${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(IV._`${e}++`),void 0===s?t.if(IV._`${e} >= ${i}`,(()=>t.assign(d,!0).break())):(t.if(IV._`${e} > ${s}`,(()=>t.assign(d,!1).break())),1===i?t.assign(d,!0):t.if(IV._`${e} >= ${i}`,(()=>t.assign(d,!0))))}(r)))))}function p(r,n){t.forRange("i",0,u,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:MV.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(IV._`${o}.length > 0`,f)):(t.let(d,!1),f()),e.result(d,(()=>e.reset()))}};TV.default=FV;var DV={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=ED,r=PD,n=GD();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},
|
|
32
32
|
missingProperty: ${o},
|
|
33
33
|
depsCount: ${r},
|
|
34
|
-
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}(OV);var NV={};Object.defineProperty(NV,"__esModule",{value:!0});const AV=gD,RV=SD,TV={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>AV._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:n,it:o}=e;if((0,RV.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,AV.not)(a),(()=>{e.error(!0),o.allErrors||t.break()}))})),e.ok(a)}};NV.default=TV;var IV={};Object.defineProperty(IV,"__esModule",{value:!0});const MV=LD(),FV=gD,DV=ED(),zV=SD,LV={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>FV._`{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,zV.alwaysValidSchema)(i,r))return;const c=(0,MV.allSchemaProperties)(n.properties),u=(0,MV.allSchemaProperties)(n.patternProperties);function d(e){t.code(FV._`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,zV.alwaysValidSchema)(i,r)){const r=t.name("valid");"failing"===l.removeAdditional?(p(n,r,!1),t.if((0,FV.not)(r),(()=>{e.reset(),d(n)}))):(p(n,r),s||t.if((0,FV.not)(r),(()=>t.break())))}}}function p(t,r,n){const o={keyword:"additionalProperties",dataProp:t,dataPropType:zV.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,zV.schemaRefOrVal)(i,n.properties,"properties");o=(0,MV.isOwnProperty)(t,e,r)}else o=c.length?(0,FV.or)(...c.map((e=>FV._`${r} === ${e}`))):FV.nil;return u.length&&(o=(0,FV.or)(o,...u.map((t=>FV._`${(0,MV.usePattern)(e,t)}.test(${r})`)))),(0,FV.not)(o)}(r),(()=>f(r))):f(r)})),e.ok(FV._`${a} === ${DV.default.errors}`)}};IV.default=LV;var VV={};Object.defineProperty(VV,"__esModule",{value:!0});const BV=lz(),UV=LD(),WV=SD,qV=IV,KV={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&&qV.default.code(new BV.KeywordCxt(a,qV.default,"additionalProperties"));const i=(0,UV.allSchemaProperties)(r);for(const e of i)a.definedProperties.add(e);a.opts.unevaluated&&i.length&&!0!==a.props&&(a.props=WV.mergeEvaluated.props(t,(0,WV.toHash)(i),a.props));const s=i.filter((e=>!(0,WV.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,UV.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)}}};VV.default=KV;var HV={};Object.defineProperty(HV,"__esModule",{value:!0});const GV=LD(),QV=gD,YV=SD,JV=SD,XV={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,GV.allSchemaProperties)(r),l=s.filter((e=>(0,YV.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 QV.Name||(a.props=(0,JV.evaluatedPropsToName)(t,a.props));const{props:d}=a;function f(e){for(const t in c)new RegExp(e).test(t)&&(0,YV.checkStrictMode)(a,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function p(r){t.forIn("key",n,(n=>{t.if(QV._`${(0,GV.usePattern)(e,r)}.test(${n})`,(()=>{const o=l.includes(r);o||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:n,dataPropType:JV.Type.Str},u),a.opts.unevaluated&&!0!==d?t.assign(QV._`${d}[${n}]`,!0):o||a.allErrors||t.if((0,QV.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))}()}};HV.default=XV;var ZV={};Object.defineProperty(ZV,"__esModule",{value:!0});const eB=SD,tB={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,eB.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"}};ZV.default=tB;var rB={};Object.defineProperty(rB,"__esModule",{value:!0});const nB={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:LD().validateUnion,error:{message:"must match a schema in anyOf"}};rB.default=nB;var oB={};Object.defineProperty(oB,"__esModule",{value:!0});const aB=gD,iB=SD,sB={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>aB._`{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,iB.alwaysValidSchema)(o,r)?t.var(l,!0):a=e.subschema({keyword:"oneOf",schemaProp:n,compositeRule:!0},l),n>0&&t.if(aB._`${l} && ${i}`).assign(i,!1).assign(s,aB._`[${s}, ${n}]`).else(),t.if(l,(()=>{t.assign(i,!0),t.assign(s,n),a&&e.mergeEvaluated(a,aB.Name)}))}))})),e.result(i,(()=>e.reset()),(()=>e.error(!0)))}};oB.default=sB;var lB={};Object.defineProperty(lB,"__esModule",{value:!0});const cB=SD,uB={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,cB.alwaysValidSchema)(n,t))return;const a=e.subschema({keyword:"allOf",schemaProp:r},o);e.ok(o),e.mergeEvaluated(a)}))}};lB.default=uB;var dB={};Object.defineProperty(dB,"__esModule",{value:!0});const fB=gD,pB=SD,mB={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>fB.str`must match "${e.ifClause}" schema`,params:({params:e})=>fB._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:n}=e;void 0===r.then&&void 0===r.else&&(0,pB.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const o=hB(n,"then"),a=hB(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,fB.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,fB._`${r}`):e.setParams({ifClause:r})}}e.pass(i,(()=>e.error(!0)))}};function hB(e,t){const r=e.schema[t];return void 0!==r&&!(0,pB.alwaysValidSchema)(e,r)}dB.default=mB;var vB={};Object.defineProperty(vB,"__esModule",{value:!0});const yB=SD,gB={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,yB.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};vB.default=gB,Object.defineProperty(aV,"__esModule",{value:!0});const bB=iV,wB=dV,SB=fV,xB=wV,$B=EV,_B=OV,kB=NV,EB=IV,CB=VV,jB=HV,PB=ZV,OB=rB,NB=oB,AB=lB,RB=dB,TB=vB;aV.default=function(e=!1){const t=[PB.default,OB.default,NB.default,AB.default,RB.default,TB.default,kB.default,EB.default,_B.default,CB.default,jB.default];return e?t.push(wB.default,xB.default):t.push(bB.default,SB.default),t.push($B.default),t};var IB={},MB={};Object.defineProperty(MB,"__esModule",{value:!0});const FB=gD,DB={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>FB.str`must match format "${e}"`,params:({schemaCode:e})=>FB._`{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",FB._`${o}[${i}]`),s=r.let("fType"),c=r.let("format");r.if(FB._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>r.assign(s,FB._`${a}.type || "string"`).assign(c,FB._`${a}.validate`)),(()=>r.assign(s,FB._`"string"`).assign(c,a))),e.fail$data((0,FB.or)(!1===l.strictSchema?FB.nil:FB._`${i} && !${c}`,function(){const e=u.$async?FB._`(${a}.async ? await ${c}(${n}) : ${c}(${n}))`:FB._`${c}(${n})`,r=FB._`(typeof ${c} == "function" ? ${e} : ${c}.test(${n}))`;return FB._`${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,FB.regexpCode)(e):l.code.formats?FB._`${l.code.formats}${(0,FB.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,FB._`${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 FB._`await ${f}(${n})`}return"function"==typeof s?FB._`${f}(${n})`:FB._`${f}.test(${n})`}())}())}};MB.default=DB,Object.defineProperty(IB,"__esModule",{value:!0});const zB=[MB.default];IB.default=zB;var LB={};Object.defineProperty(LB,"__esModule",{value:!0}),LB.contentVocabulary=LB.metadataVocabulary=void 0,LB.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],LB.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(Rz,"__esModule",{value:!0});const VB=Qz,BB=aV,UB=IB,WB=LB,qB=[Tz.default,VB.default,(0,BB.default)(),UB.default,WB.metadataVocabulary,WB.contentVocabulary];Rz.default=qB;var KB={},HB={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,(t=e.DiscrError||(e.DiscrError={})).Tag="tag",t.Mapping="mapping"}(HB),Object.defineProperty(KB,"__esModule",{value:!0});const GB=gD,QB=HB,YB=hz,JB=SD,XB={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===QB.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>GB._`{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",GB._`${r}${(0,GB.getProperty)(s)}`);function u(r){const n=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:r},n);return e.mergeEvaluated(o,GB.Name),n}t.if(GB._`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,JB.schemaHasRulesButRef)(o,a.self.RULES)&&(o=YB.resolveRef.call(a.self,a.schemaEnv.root,a.baseId,null==o?void 0:o.$ref),o instanceof YB.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(GB._`${c} === ${e}`),t.assign(l,u(r[e]));t.else(),e.error(!1,{discrError:QB.DiscrError.Mapping,tag:c,tagName:s}),t.endIf()}()),(()=>e.error(!1,{discrError:QB.DiscrError.Tag,tag:c,tagName:s}))),e.ok(l)}};KB.default=XB;var ZB={$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=mD,n=Rz,o=KB,a=ZB,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=lz();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=gD;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=dz();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=mz();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})}(pD,pD.exports);var eU=pD.exports;!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=eU,r=gD,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)}(fD),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=dD,n=fD,o=gD,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}(uD,uD.exports);var tU=r(uD.exports);const rU={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},nU=/^(#?([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*\)))$/,oU=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function aU(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=_d(Tm(t,`${(u?`${u}.${e}`:e).replace(/^\./,"")}`)).title;if(void 0===r){const n=i.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([e]);r=_d(Tm(t,n)).title}if(r)c=c.replace(`'${e}'`,`'${r}'`);else{const t=Tm(s,[vd,e,"title"]);t&&(c=c.replace(`'${e}'`,`'${t}'`))}})),d=c;else{const e=_d(Tm(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 iA;return e.length&&e.forEach((e=>{const{property:r,message:n}=e,o="."===r?[]:nR(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=VN(e,n,r,n,!0);return iR({errors:l,errorSchema:c},oR(o(u,Qd(u),i)))}class iU{constructor(e,t){const{additionalMetaSchemas:r,customFormats:n,ajvOptionsOverrides:o,ajvFormatOptions:a,AjvClass:i}=e;this.ajv=function(e,t,r={},n,o=cD){const a=new o({...rU,...r});return n?tU(a,n):!1!==n&&tU(a),a.addFormat("data-url",oU),a.addFormat("color",nU),a.addKeyword(rd),a.addKeyword(wd),Array.isArray(e)&&a.addMetaSchema(e),ef(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 rR(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 aU(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):fm(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=sR(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 sU=function(e={},t){return new iU(e,t)}();var lU=yv((function(e,t){return null==e?{}:function(e,t){return lR(e,t,(function(t,r){return Wv(e,r)}))}(e,t)}));let cU=(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 uU(){return cU()}function dU(e){return Array.isArray(e)?e.map((e=>({key:uU(),item:e}))):[]}function fU(e){return Array.isArray(e)?e.map((e=>e.item)):[]}class pU extends L.Component{constructor(e){super(e);const{formData:t=[]}=e,r=dU(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]}))):dU(r);return{keyedFormData:o}}get itemTitle(){const{schema:e,registry:t}=this.props,{translateString:r}=t;return Tm(e,[pd,"title"],Tm(e,[pd,"description"],r(cR.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}=_d(r,n.globalUiOptions);return!1!==o&&(o=void 0===t.maxItems||e.length<t.maxItems),o}_getNewFormDataRow=()=>{const{schema:e,registry:t}=this.props,{schemaUtils:r}=t;let n=e.items;return EN(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)};_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?vy(a,[r],n[e]):r>=t&&vy(a,[r+1],n[e])}}const i={key:uU(),item:this._getNewFormDataRow()},s=[...o];void 0!==t?s.splice(t,0,i):s.push(i),this.setState({keyedFormData:s,updatedKeyedFormData:!0},(()=>r(fU(s),a)))}onAddClick=e=>{this._handleAddClick(e)};onAddIndexClick=e=>t=>{this._handleAddClick(t,e)};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?vy(a,[r],n[t]):r>e&&vy(a,[r+1],n[t])}}const i={key:uU(),item:aA(o[e].item)},s=[...o];void 0!==e?s.splice(e+1,0,i):s.push(i),this.setState({keyedFormData:s,updatedKeyedFormData:!0},(()=>r(fU(s),a)))};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?vy(a,[r],n[t]):r>e&&vy(a,[r-1],n[t])}}const i=o.filter(((t,r)=>r!==e));this.setState({keyedFormData:i,updatedKeyedFormData:!0},(()=>r(fU(i),a)))};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?vy(a,[t],o[e]):n==t?vy(a,[e],o[t]):vy(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(fU(s),a)))};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)};onSelectChange=e=>{const{onChange:t,idSchema:r}=this.props;t(e,void 0,r&&r.$id)};render(){const{schema:e,uiSchema:t,idSchema:r,registry:n}=this.props,{schemaUtils:o,translateString:a}=n;if(!(pd in e)){const o=fA("UnsupportedFieldTemplate",n,_d(t));return $A.jsx(o,{schema:e,idSchema:r,reason:a(cR.MissingItems),registry:n})}return o.isMultiSelect(e)?this.renderMultiSelect():BN(t)?this.renderCustomWidget():EN(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=_d(t),S=ef(e.items)?e.items:{},x=g.retrieveSchema(S),$=fU(this.state.keyedFormData),_=this.canAddItem($),k={canAdd:_,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:_,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=fA("ArrayFieldTemplate",u,w);return $A.jsx(E,{...k})}renderCustomWidget(){const{schema:e,idSchema:t,uiSchema:r,disabled:n=!1,readonly:o=!1,autofocus:a=!1,required:i=!1,hideError:s,placeholder:l,onBlur:c,onFocus:u,formData:d=[],registry:f,rawErrors:p,name:m}=this.props,{widgets:h,formContext:v,globalUiOptions:y,schemaUtils:g}=f,{widget:b,title:w,...S}=_d(r,y),x=UA(e,b,h),$=w??e.title??m,_=g.getDisplayLabel(e,r,y);return $A.jsx(x,{id:t.$id,name:m,multiple:!0,onChange:this.onSelectChange,onBlur:c,onFocus:u,options:S,schema:e,uiSchema:r,registry:f,value:d,disabled:n,readonly:o,hideError:s,required:i,label:$,hideLabel:!_,placeholder:l,formContext:v,autofocus:a,rawErrors:p})}renderMultiSelect(){const{schema:e,idSchema:t,uiSchema:r,formData:n=[],disabled:o=!1,readonly:a=!1,autofocus:i=!1,required:s=!1,placeholder:l,onBlur:c,onFocus:u,registry:d,rawErrors:f,name:p}=this.props,{widgets:m,schemaUtils:h,formContext:v,globalUiOptions:y}=d,g=TN(h.retrieveSchema(e.items,n),r),{widget:b="select",title:w,...S}=_d(r,y),x=UA(e,b,m),$=w??e.title??p,_=h.getDisplayLabel(e,r,y);return $A.jsx(x,{id:t.$id,name:p,multiple:!0,onChange:this.onSelectChange,onBlur:c,onFocus:u,options:{...S,enumOptions:g},schema:e,uiSchema:r,registry:d,value:n,disabled:o,readonly:a,required:s,label:$,hideLabel:!_,placeholder:l,formContext:v,autofocus:i,rawErrors:f})}renderFiles(){const{schema:e,uiSchema:t,idSchema:r,name:n,disabled:o=!1,readonly:a=!1,autofocus:i=!1,required:s=!1,onBlur:l,onFocus:c,registry:u,formData:d=[],rawErrors:f}=this.props,{widgets:p,formContext:m,globalUiOptions:h,schemaUtils:v}=u,{widget:y="files",title:g,...b}=_d(t,h),w=UA(e,y,p),S=g??e.title??n,x=v.getDisplayLabel(e,t,h);return $A.jsx(w,{options:b,id:r.$id,name:n,multiple:!0,onChange:this.onSelectChange,onBlur:l,onFocus:c,schema:e,uiSchema:t,value:d,disabled:o,readonly:a,required:s,registry:u,formContext:m,autofocus:i,rawErrors:f,label:S,hideLabel:!x})}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=_d(t),{schemaUtils:S,formContext:x}=p,$=(ef(e.items)?e.items:[]).map(((e,t)=>S.retrieveSchema(e,r[t]))),_=ef(e.additionalItems)?S.retrieveSchema(e.additionalItems,r):null;(!g||g.length<$.length)&&(g=g||[],g=g.concat(new Array($.length-g.length)));const k=this.canAddItem(g)&&!!_,E={canAdd:k,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&&ef(e.additionalItems)?S.retrieveSchema(e.additionalItems,f):$[l])||{},x=i.$id+a+l,_=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:k,canRemove:p,canMoveUp:l>=$.length+1,canMoveDown:p&&l<g.length-1,itemSchema:w,itemData:f,itemUiSchema:E,itemIdSchema:_,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=fA("ArrayFieldTemplate",p,w);return $A.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:_,registry:k,formContext:E}=this.props,{fields:{ArraySchemaField:C,SchemaField:j},globalUiOptions:P}=k,O=C||j,{orderable:N=!0,removable:A=!0,copyable:R=!1}=_d(_,P),T={moveUp:N&&i,moveDown:N&&s,copy:R&&o,remove:A&&a,toolbar:!1};return T.toolbar=Object.keys(T).some((e=>T[e])),{children:$A.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:k,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:k,schema:l,uiSchema:u}}}function mU(e){const{schema:t,name:r,uiSchema:n,idSchema:o,formData:a,registry:i,required:s,disabled:l,readonly:c,hideError:u,autofocus:d,title:f,onChange:p,onFocus:m,onBlur:h,rawErrors:v}=e,{title:y}=t,{widgets:g,formContext:b,translateString:w,globalUiOptions:S}=i,{widget:x="checkbox",title:$,label:_=!0,...k}=_d(n,S),E=UA(t,x,g),C=w(cR.YesLabel),j=w(cR.NoLabel);let P;const O=$??y??f??r;if(Array.isArray(t.oneOf))P=TN({oneOf:t.oneOf.map((e=>{if(ef(e))return{...e,title:e.title||(!0===e.const?C:j)}})).filter((e=>e))},n);else{const e=t,r=t.enum??[!0,!1];P=!e.enumNames&&2===r.length&&r.every((e=>"boolean"==typeof e))?[{value:r[0],label:r[0]?C:j},{value:r[1],label:r[1]?C:j}]:TN({enum:r,enumNames:e.enumNames},n)}return $A.jsx(E,{options:{...k,enumOptions:P},schema:t,uiSchema:n,id:o.$id,name:r,onChange:p,onFocus:m,onBlur:h,label:O,hideLabel:!_,value:a,required:s,disabled:l,readonly:c,hideError:u,registry:i,formContext:b,autofocus:d,rawErrors:v})}class hU extends L.Component{constructor(e){super(e);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(!fm(e.options,n)){const{registry:{schemaUtils:e}}=this.props;i={selectedOption:a,retrievedOptions:n.map((t=>e.retrieveSchema(t,r)))}}if(!fm(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=cN(n);return o.getClosestMatchingOption(t,r,e,a)}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())}))};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,...$}=_d(c,p),_=UA({type:"number"},g,u),k=Tm(r,ud,[]),E=bv(r,[ud]),C=m.getDisplayLabel(l,c,p),j=v>=0&&y[v]||null;let P;if(j){const{required:e}=l;P=e?pN({required:e},j):j}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 A=x?cR.TitleOptionPrefix:cR.OptionPrefix,R=x?[x]:[],T=y.map(((e,t)=>{const{title:r=e.title}=_d(O[t]);return{label:r||f(A,R.concat(String(t+1))),value:t}}));return $A.jsxs("div",{className:"panel panel-default panel-body",children:[$A.jsx("div",{className:"form-group",children:$A.jsx(_,{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||Dm(T),multiple:!1,rawErrors:k,errorSchema:E,value:v>=0?v:void 0,options:{enumOptions:T,...$},registry:s,formContext:n,placeholder:b,autocomplete:S,autofocus:w,label:x??e,hideLabel:!C,readonly:i})}),P&&"null"!==P.type&&$A.jsx(h,{...this.props,schema:P,uiSchema:N})]})}}const vU=/\.([0-9]*0)*$/,yU=/[0.]0*$/;function gU(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(vU)?td(e.replace(yU,"")):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 $A.jsx(s,{...e,formData:l,onChange:c})}function bU(){return bU=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},bU.apply(this,arguments)}const wU=["children","options"];var SU,xU;!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"}(SU||(SU={})),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"}(xU||(xU={}));const $U=["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"}),_U={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},kU=["style","script"],EU=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,CU=/mailto:/i,jU=/\n{2,}$/,PU=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,OU=/^ *> ?/gm,NU=/^ {2,}\n/,AU=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,RU=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,TU=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,IU=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,MU=/^(?:\n *)*\n/,FU=/\r\n?/g,DU=/^\[\^([^\]]+)](:.*)\n/,zU=/^\[\^([^\]]+)]/,LU=/\f/g,VU=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,BU=/^\s*?\[(x|\s)\]/,UU=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,WU=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,qU=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,KU=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,HU=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,GU=/^<!--[\s\S]*?(?:-->)/,QU=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,YU=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,JU=/^\{.*\}$/,XU=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,ZU=/^<([^ >]+@[^ >]+)>/,eW=/^<([^ >]+:\/[^ >]+)>/,tW=/-([a-z])?/gi,rW=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,nW=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,oW=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,aW=/^\[([^\]]*)\] ?\[([^\]]*)\]/,iW=/(\[|\])/g,sW=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,lW=/\t/g,cW=/^ *\| */,uW=/(^ *\||\| *$)/g,dW=/ *$/,fW=/^ *:-+: *$/,pW=/^ *:-+ *$/,mW=/^ *-+: *$/,hW=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,vW=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,yW=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,gW=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,bW=/^\\([^0-9A-Za-z\s])/,wW=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,SW=/^\n+/,xW=/^([ \t]*)/,$W=/\\([^\\])/g,_W=/ *\n+$/,kW=/(?:^|\n)( *)$/,EW="(?:\\d+\\.)",CW="(?:[*+-])";function jW(e){return"( *)("+(1===e?EW:CW)+") +"}const PW=jW(1),OW=jW(2);function NW(e){return new RegExp("^"+(1===e?PW:OW))}const AW=NW(1),RW=NW(2);function TW(e){return new RegExp("^"+(1===e?PW:OW)+"[^\\n]*(?:\\n(?!\\1"+(1===e?EW:CW)+" )[^\\n]*)*(\\n|$)","gm")}const IW=TW(1),MW=TW(2);function FW(e){const t=1===e?EW:CW;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const DW=FW(1),zW=FW(2);function LW(e,t){const r=1===t,n=r?DW:zW,o=r?IW:MW,a=r?AW:RW;return{match(e,t,r){const o=kW.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(jU,"\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(_W,"\n\n")):(n.inline=!0,m=c.replace(_W,""));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 VW=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,BW=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,UW=[PU,RU,TU,UU,qU,WU,GU,rW,IW,DW,MW,zW],WW=[...UW,/^[^\n]+(?: \n|\n{2,})/,KU,YU];function qW(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 KW(e){return mW.test(e)?"right":fW.test(e)?"center":pW.test(e)?"left":null}function HW(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(dW,"")),a[a.length-1].push(e))})),a}function GW(e,t,r){r.inline=!0;const n=HW(e[1],t,r),o=e[2].replace(uW,"").split("|").map(KW),a=function(e,t,r){return e.trim().split("\n").map((function(e){return HW(e,t,r)}))}(e[3],t,r);return r.inline=!1,{align:o,cells:a,header:n,type:"25"}}function QW(e,t){return null==e.align[t]?{}:{textAlign:e.align[t]}}function YW(e){return function(t,r){return r.inline?e.exec(t):null}}function JW(e){return function(t,r){return r.inline||r.simple?e.exec(t):null}}function XW(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function ZW(e){return function(t){return e.exec(t)}}function eq(e,t,r){if(t.inline||t.simple)return null;if(r&&!r.endsWith("\n"))return null;let n="";e.split("\n").every((e=>!UW.some((t=>t.test(e)))&&(n+=e+"\n",e.trim())));const o=n.trimEnd();return""==o?null:[n,o]}function tq(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 rq(e){return e.replace($W,"$1")}function nq(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 oq(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 aq(e,t,r){return r.inline=!1,e(t,r)}const iq=(e,t,r)=>({children:nq(t,e[1],r)});function sq(){return{}}function lq(){return null}function cq(...e){return e.filter(Boolean).join(" ")}function uq(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 dq=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,wU);return L.cloneElement(function(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||qW,t.namedCodesToUnicode=t.namedCodesToUnicode?bU({},_U,t.namedCodesToUnicode):_U;const r=t.createElement||L.createElement;function n(e,n,...o){const a=uq(t.overrides,`${e}.props`,{});return r(function(e,t){const r=uq(t,e);return r?"function"==typeof r||"object"==typeof r&&"render"in r?r:uq(t,`${e}.component`,e):e}(e,t.overrides),bU({},n,a,{className:cq(null==n?void 0:n.className,a.className)||void 0}),...o)}function o(e){e=e.replace(VU,"");let r=!1;t.forceInline?r=!0:t.forceBlock||(r=!1===sW.test(e));const o=u(c(r?e:`${e.trimEnd().replace(SW,"")}\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(EU);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(QU)&&(e=e.replace(tW,(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=$U[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?tq(t):(t.match(JU)&&(t=t.slice(1,t.length-1)),"true"===t||"false"!==t&&t)}(a,i);"string"==typeof l&&(KU.test(l)||YU.test(l))&&(e[s]=L.cloneElement(o(l.trim()),{key:r}))}else"style"!==t&&(e[$U[t]||t]=!0);return e}),{}):null}const i=[],s={},l={0:{match:XW(PU),order:1,parse:(e,t,r)=>({children:t(e[0].replace(OU,""),r)}),render:(e,t,r)=>n("blockquote",{key:r.key},t(e.children,r))},1:{match:ZW(NU),order:1,parse:sq,render:(e,t,r)=>n("br",{key:r.key})},2:{match:XW(AU),order:1,parse:sq,render:(e,t,r)=>n("hr",{key:r.key})},3:{match:XW(TU),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",bU({},e.attrs,{className:e.lang?`lang-${e.lang}`:""}),e.text))},4:{match:XW(RU),order:0,parse:e=>({attrs:a(e[3]||""),lang:e[2]||void 0,text:e[4],type:"3"})},5:{match:JW(IU),order:3,parse:e=>({text:e[2]}),render:(e,t,r)=>n("code",{key:r.key},e.text)},6:{match:XW(DU),order:0,parse:e=>(i.push({footnote:e[2],identifier:e[1]}),{}),render:lq},7:{match:YW(zU),order:1,parse:e=>({target:`#${t.slugify(e[1])}`,text:e[1]}),render:(e,t,r)=>n("a",{key:r.key,href:tq(e.target)},n("sup",{key:r.key},e.text))},8:{match:YW(BU),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:XW(t.enforceAtxHeadings?WU:UU),order:1,parse:(e,r,n)=>({children:nq(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:XW(qU),order:0,parse:(e,t,r)=>({children:nq(t,e[1],r),level:"="===e[2]?1:2,type:"9"})},11:{match:ZW(KU),order:1,parse(e,t,r){const[,n]=e[3].match(xW),o=new RegExp(`^${n}`,"gm"),i=e[3].replace(o,""),s=(l=i,WW.some((e=>e.test(l)))?aq:nq);var l;const c=e[1].toLowerCase(),u=-1!==kU.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,bU({key:r.key},e.attrs),e.text||t(e.children,r))},13:{match:ZW(YU),order:1,parse:e=>({attrs:a(e[2]||""),tag:e[1]}),render:(e,t,r)=>n(e.tag,bU({},e.attrs,{key:r.key}))},12:{match:ZW(GU),order:1,parse:()=>({}),render:lq},14:{match:JW(BW),order:1,parse:e=>({alt:e[1],target:rq(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:tq(e.target)})},15:{match:YW(VW),order:3,parse:(e,t,r)=>({children:oq(t,e[1],r),target:rq(e[2]),title:e[3]}),render:(e,t,r)=>n("a",{key:r.key,href:tq(e.target),title:e.title},t(e.children,r))},16:{match:YW(eW),order:0,parse:e=>({children:[{text:e[1],type:"27"}],target:e[1],type:"15"})},17:{match:(e,t)=>t.inAnchor?null:YW(XU)(e,t),order:0,parse:e=>({children:[{text:e[1],type:"27"}],target:e[1],title:void 0,type:"15"})},18:{match:YW(ZU),order:0,parse(e){let t=e[1],r=e[1];return CU.test(r)||(r="mailto:"+r),{children:[{text:t.replace("mailto:",""),type:"27"}],target:r,type:"15"}}},20:LW(n,1),33:LW(n,2),19:{match:XW(MU),order:3,parse:sq,render:()=>"\n"},21:{match:eq,order:3,parse:iq,render:(e,t,r)=>n("p",{key:r.key},t(e.children,r))},22:{match:YW(nW),order:0,parse:e=>(s[e[1]]={target:e[2],title:e[4]},{}),render:lq},23:{match:JW(oW),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:tq(s[e.ref].target),title:s[e.ref].title})},24:{match:YW(aW),order:0,parse:(e,t,r)=>({children:t(e[1],r),fallbackChildren:t(e[0].replace(iW,"\\$1"),r),ref:e[2]}),render:(e,t,r)=>s[e.ref]?n("a",{key:r.key,href:tq(s[e.ref].target),title:s[e.ref].title},t(e.children,r)):n("span",{key:r.key},t(e.fallbackChildren,r))},25:{match:XW(rW),order:1,parse:GW,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:QW(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:QW(e,a)},t(o,r))})))}))))},26:{match:function(e,t){return t.inTable?(t.inline=!0,cW.exec(e)):null},order:1,parse:function(){return{type:"26"}},render:()=>" | "},27:{match:ZW(wW),order:4,parse:e=>({text:e[0].replace(HU,((e,r)=>t.namedCodesToUnicode[r]?t.namedCodesToUnicode[r]:e))}),render:e=>e.text},28:{match:JW(hW),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:JW(vW),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:JW(bW),order:1,parse:e=>({text:e[1],type:"27"})},31:{match:JW(yW),order:3,parse:iq,render:(e,t,r)=>n("mark",{key:r.key},t(e.children,r))},32:{match:JW(gW),order:3,parse:iq,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(FU,"\n").replace(LU,"").replace(lW," ")}(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)};class fq extends L.Component{state={wasPropertyKeyModified:!1,additionalProperties:{}};isRequired(e){const{schema:t}=this.props;return Array.isArray(t.required)&&-1!==t.required.indexOf(e)}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)};onDropPropertyClick=e=>t=>{t.preventDefault();const{onChange:r,formData:n}=this.props,o={...n};var a,i;i=e,null==(a=o)||ev(a,i),r(o)};getAvailableKey=(e,t)=>{const{uiSchema:r,registry:n}=this.props,{duplicateKeySuffixSeparator:o="-"}=_d(r,n.globalUiOptions);let a=0,i=e;for(;Ev(t,i);)i=`${e}${o}${++a}`;return i};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})};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(cR.NewStringDefault)}}handleAddClick=e=>()=>{if(!e.additionalProperties)return;const{formData:t,onChange:r,registry:n}=this.props,o={...t};let a,i,s;if(ef(e.additionalProperties)){a=e.additionalProperties.type,i=e.additionalProperties.const,s=e.additionalProperties.default;let r=e.additionalProperties;if(bd in r){const{schemaUtils:e}=n;r=e.retrieveSchema({$ref:r[bd]},t),a=r.type,i=r.const,s=r.default}a||!(ad in r)&&!(hd in r)||(a="object")}vy(o,this.getAvailableKey("newKey",o),i??s??this.getDefaultValue(a)),r(o)};render(){const{schema:e,uiSchema:t={},formData:r,errorSchema:n,idSchema:o,name:a,required:i=!1,disabled:s,readonly:l,hideError:c,idPrefix:u,idSeparator:d,onBlur:f,onFocus:p,registry:m,title:h}=this.props,{fields:v,formContext:y,schemaUtils:g,translateString:b,globalUiOptions:w}=m,{SchemaField:S}=v,x=g.retrieveSchema(e,r),$=_d(t,w),{properties:_={}}=x,k=$.title??x.title??h??a,E=$.description??x.description;let C;try{C=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(_),$.order)}catch(e){return $A.jsxs("div",{children:[$A.jsx("p",{className:"config-error",style:{color:"red"},children:$A.jsx(dq,{options:{disableParsingRawHTML:!0},children:b(cR.InvalidObjectField,[a||"root",e.message])})}),$A.jsx("pre",{children:JSON.stringify(x)})]})}const j=fA("ObjectFieldTemplate",m,$),P={title:!1===$.label?"":k,description:!1===$.label?void 0:E,properties:C.map((e=>{const a=Ev(x,[vd,e,rd]),h=a?t.additionalProperties:t[e],v="hidden"===_d(h).widget,g=Tm(o,[e],{});return{content:$A.jsx(S,{name:e,required:this.isRequired(e),schema:Tm(x,[vd,e],{}),uiSchema:h,errorSchema:Tm(n,e),idSchema:g,idPrefix:u,idSeparator:d,formData:Tm(r,e),formContext:y,wasPropertyKeyModified:this.state.wasPropertyKeyModified,onKeyChange:this.onKeyChange(e),onChange:this.onPropertyChange(e,a),onBlur:f,onFocus:p,registry:m,disabled:s,readonly:l,hideError:c,onDropPropertyClick:this.onDropPropertyClick},e),name:e,readonly:l,disabled:s,required:i,hidden:v}})),readonly:l,disabled:s,required:i,idSchema:o,uiSchema:t,errorSchema:n,schema:x,formData:r,formContext:y,registry:m};return $A.jsx(j,{...P,onAddClick:this.handleAddClick})}}const pq={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function mq(e){const{schema:t,idSchema:r,uiSchema:n,formData:o,errorSchema:a,idPrefix:i,idSeparator:s,name:l,onChange:c,onKeyChange:u,onDropPropertyClick:d,required:f,registry:p,wasPropertyKeyModified:m=!1}=e,{formContext:h,schemaUtils:v,globalUiOptions:y}=p,g=_d(n,y),b=fA("FieldTemplate",p,g),w=fA("DescriptionFieldTemplate",p,g),S=fA("FieldHelpTemplate",p,g),x=fA("FieldErrorTemplate",p,g),$=v.retrieveSchema(t,o),_=r[dd],k=PN(v.toIdSchema($,_,o,i,s),r),E=L.useCallback(((e,t,r)=>c(e,t,r||_)),[_,c]),C=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=fN(e),l=Array.isArray(s)?s[0]:s||"",c=e.$id;let u=pq[l];return c&&c in a&&(u=c),u||!e.anyOf&&!e.oneOf?u in a?a[u]:()=>{const o=fA("UnsupportedFieldTemplate",n,t);return $A.jsx(o,{schema:e,idSchema:r,reason:i(cR.UnknownFieldType,[String(e.type)]),registry:n})}:()=>null}($,g,k,p),j=Boolean(g.disabled??e.disabled),P=Boolean(g.readonly??(e.readonly||e.schema.readOnly||$.readOnly)),O=g.hideError,N=void 0===O?e.hideError:Boolean(O),A=Boolean(g.autofocus??e.autofocus);if(0===Object.keys($).length)return null;const R=v.getDisplayLabel($,n,y),{__errors:T,...I}=a||{},M=bv(n,["ui:classNames","classNames","ui:style"]);$d in M&&(M[$d]=bv(M[$d],["classNames","style"]));const F=$A.jsx(C,{...e,onChange:E,idSchema:k,schema:$,uiSchema:M,disabled:j,readonly:P,hideError:N,autofocus:A,errorSchema:I,formContext:h,rawErrors:T}),D=k[dd];let z;z=m||rd in $?l:g.title||e.schema.title||$.title||e.title||l;const V=g.description||e.schema.description||$.description||"",B=g.enableMarkdownInDescription?$A.jsx(dq,{options:{disableParsingRawHTML:!0},children:V}):V,U=g.help,W="hidden"===g.widget,q=["form-group","field",`field-${fN($)}`];!N&&T&&T.length>0&&q.push("field-error has-error has-danger"),n?.classNames&&q.push(n.classNames),g.classNames&&q.push(g.classNames);const K=$A.jsx(S,{help:U,idSchema:k,schema:$,uiSchema:n,hasErrors:!N&&T&&T.length>0,registry:p}),H=N||($.anyOf||$.oneOf)&&!v.isSelect($)?void 0:$A.jsx(x,{errors:T,errorSchema:a,idSchema:k,schema:$,uiSchema:n,registry:p}),G={description:$A.jsx(w,{id:qA(D),description:B,schema:$,uiSchema:n,registry:p}),rawDescription:V,help:K,rawHelp:"string"==typeof U?U:void 0,errors:H,rawErrors:N?void 0:T,id:D,label:z,hidden:W,onChange:c,onKeyChange:u,onDropPropertyClick:d,required:f,disabled:j,readonly:P,hideError:N,displayLabel:R,classNames:q.join(" ").trim(),style:g.style,formContext:h,formData:o,schema:$,uiSchema:n,registry:p},Q=p.fields.AnyOfField,Y=p.fields.OneOfField,J=n?.["ui:field"]&&!0===n?.["ui:fieldReplacesAnyOrOneOf"];return $A.jsx(b,{...G,children:$A.jsxs($A.Fragment,{children:[F,$.anyOf&&!J&&!v.isSelect($)&&$A.jsx(Q,{name:l,disabled:j,readonly:P,hideError:N,errorSchema:a,formData:o,formContext:h,idPrefix:i,idSchema:k,idSeparator:s,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:$.anyOf.map((e=>v.retrieveSchema(ef(e)?e:{},o))),registry:p,required:f,schema:$,uiSchema:n}),$.oneOf&&!J&&!v.isSelect($)&&$A.jsx(Y,{name:l,disabled:j,readonly:P,hideError:N,errorSchema:a,formData:o,formContext:h,idPrefix:i,idSchema:k,idSeparator:s,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:$.oneOf.map((e=>v.retrieveSchema(ef(e)?e:{},o))),registry:p,required:f,schema:$,uiSchema:n})]})})}class hq extends L.Component{shouldComponentUpdate(e){return!fm(this.props,e)}render(){return $A.jsx(mq,{...this.props})}}function vq(e){const{schema:t,name:r,uiSchema:n,idSchema:o,formData:a,required:i,disabled:s=!1,readonly:l=!1,autofocus:c=!1,onChange:u,onBlur:d,onFocus:f,registry:p,rawErrors:m,hideError:h}=e,{title:v,format:y}=t,{widgets:g,formContext:b,schemaUtils:w,globalUiOptions:S}=p,x=w.isSelect(t)?TN(t,n):void 0;let $=x?"select":"text";y&&function(e,t,r={}){try{return UA(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}}(t,y,g)&&($=y);const{widget:_=$,placeholder:k="",title:E,...C}=_d(n),j=w.getDisplayLabel(t,n,S),P=E??v??r,O=UA(t,_,g);return $A.jsx(O,{options:{...C,enumOptions:x},schema:t,uiSchema:n,id:o.$id,name:r,label:P,hideLabel:!j,hideError:h,value:a,onChange:u,onBlur:d,onFocus:f,required:i,disabled:s,readonly:l,formContext:b,autofocus:c,registry:p,placeholder:k,rawErrors:m})}function yq(e){const{formData:t,onChange:r}=e;return L.useEffect((()=>{void 0===t&&r(null)}),[t,r]),null}function gq(e){const{idSchema:t,description:r,registry:n,schema:o,uiSchema:a}=e,i=_d(a,n.globalUiOptions),{label:s=!0}=i;if(!r||!s)return null;const l=fA("DescriptionFieldTemplate",n,i);return $A.jsx(l,{id:qA(t),description:r,schema:o,uiSchema:a,registry:n})}function bq(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 $A.jsxs("div",{className:r,children:[$A.jsx("div",{className:o?"col-xs-9":"col-xs-12",children:t}),o&&$A.jsx("div",{className:"col-xs-3 array-item-toolbox",children:$A.jsxs("div",{className:"btn-group",style:{display:"flex",justifyContent:"space-around"},children:[(i||a)&&$A.jsx(g,{style:w,disabled:n||p||!i,onClick:f(c,c-1),uiSchema:h,registry:m}),(i||a)&&$A.jsx(y,{style:w,disabled:n||p||!a,onClick:f(c,c+1),uiSchema:h,registry:m}),l&&$A.jsx(v,{style:w,disabled:n||p,onClick:u(c),uiSchema:h,registry:m}),s&&$A.jsx(b,{style:w,disabled:n||p,onClick:d(c),uiSchema:h,registry:m})]})})]})}function wq(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=_d(a),m=fA("ArrayFieldDescriptionTemplate",c,p),h=fA("ArrayFieldItemTemplate",c,p),v=fA("ArrayFieldTitleTemplate",c,p),{ButtonTemplates:{AddButton:y}}=c.templates;return $A.jsxs("fieldset",{className:r,id:o.$id,children:[$A.jsx(v,{idSchema:o,title:p.title||f,required:u,schema:d,uiSchema:a,registry:c}),$A.jsx(m,{idSchema:o,description:p.description||d.description,schema:d,uiSchema:a,registry:c}),$A.jsx("div",{className:"row array-item-list",children:i&&i.map((({key:e,...t})=>$A.jsx(h,{...t},e)))}),t&&$A.jsx(y,{className:"array-item-add",onClick:s,disabled:n||l,uiSchema:a,registry:c})]})}function Sq(e){const{idSchema:t,title:r,schema:n,uiSchema:o,required:a,registry:i}=e,s=_d(o,i.globalUiOptions),{label:l=!0}=s;if(!r||!l)return null;const c=fA("TitleFieldTemplate",i,s);return $A.jsx(c,{id:QA(t),title:r,required:a,schema:n,uiSchema:o,registry:i})}function xq(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,...cA(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]),_=L.useCallback((({target:e})=>s(t,e&&e.value)),[s,t]),k=L.useCallback((({target:e})=>l(t,e&&e.value)),[l,t]);return $A.jsxs($A.Fragment,{children:[$A.jsx("input",{id:t,name:t,className:"form-control",readOnly:o,disabled:a,autoFocus:i,value:x,...S,list:f.examples?HA(t):void 0,onChange:u||$,onBlur:_,onFocus:k,"aria-describedby":YA(t,!!f.examples)}),Array.isArray(f.examples)&&$A.jsx("datalist",{id:HA(t),children:f.examples.concat(f.default&&!f.examples.includes(f.default)?[f.default]:[]).map((e=>$A.jsx("option",{value:e},e)))},`datalist_${t}`)]})}function $q({uiSchema:e}){const{submitText:t,norender:r,props:n={}}=dA(e);return r?null:$A.jsx("div",{children:$A.jsx("button",{type:"submit",...n,className:`btn btn-info ${n.className||""}`,children:t})})}function _q(e){const{iconType:t="default",icon:r,className:n,uiSchema:o,registry:a,...i}=e;return $A.jsx("button",{type:"button",className:`btn btn-${t} ${n}`,...i,children:$A.jsx("i",{className:`glyphicon glyphicon-${r}`})})}function kq(e){const{registry:{translateString:t}}=e;return $A.jsx(_q,{title:t(cR.CopyButton),className:"array-item-copy",...e,icon:"copy"})}function Eq(e){const{registry:{translateString:t}}=e;return $A.jsx(_q,{title:t(cR.MoveDownButton),className:"array-item-move-down",...e,icon:"arrow-down"})}function Cq(e){const{registry:{translateString:t}}=e;return $A.jsx(_q,{title:t(cR.MoveUpButton),className:"array-item-move-up",...e,icon:"arrow-up"})}function jq(e){const{registry:{translateString:t}}=e;return $A.jsx(_q,{title:t(cR.RemoveButton),className:"array-item-remove",...e,iconType:"danger",icon:"remove"})}function Pq({className:e,onClick:t,disabled:r,registry:n}){const{translateString:o}=n;return $A.jsx("div",{className:"row",children:$A.jsx("p",{className:`col-xs-3 col-xs-offset-9 text-right ${e}`,children:$A.jsx(_q,{iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:o(cR.AddButton),onClick:t,disabled:r,registry:n})})})}function Oq(e){const{id:t,description:r}=e;return r?"string"==typeof r?$A.jsx("p",{id:t,className:"field-description",children:r}):$A.jsx("div",{id:t,className:"field-description",children:r}):null}function Nq({errors:e,registry:t}){const{translateString:r}=t;return $A.jsxs("div",{className:"panel panel-danger errors",children:[$A.jsx("div",{className:"panel-heading",children:$A.jsx("h3",{className:"panel-title",children:r(cR.ErrorsLabel)})}),$A.jsx("ul",{className:"list-group",children:e.map(((e,t)=>$A.jsx("li",{className:"list-group-item text-danger",children:e.stack},t)))})]})}const Aq="*";function Rq(e){const{label:t,required:r,id:n}=e;return t?$A.jsxs("label",{className:"control-label",htmlFor:n,children:[t,r&&$A.jsx("span",{className:"required",children:Aq})]}):null}function Tq(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=fA("WrapIfAdditionalTemplate",u,_d(d));return s?$A.jsx("div",{className:"hidden",children:n}):$A.jsxs(f,{...e,children:[c&&$A.jsx(Rq,{label:r,required:l,id:t}),c&&i?i:null,n,o,a]})}function Iq(e){const{errors:t=[],idSchema:r}=e;if(0===t.length)return null;const n=KA(r);return $A.jsx("div",{children:$A.jsx("ul",{id:n,className:"error-detail bs-callout bs-callout-info",children:t.filter((e=>!!e)).map(((e,t)=>$A.jsx("li",{className:"text-danger",children:e},t)))})})}function Mq(e){const{idSchema:t,help:r}=e;if(!r)return null;const n=GA(t);return"string"==typeof r?$A.jsx("p",{id:n,className:"help-block",children:r}):$A.jsx("div",{id:n,className:"help-block",children:r})}function Fq(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=_d(f),m=fA("TitleFieldTemplate",l,p),h=fA("DescriptionFieldTemplate",l,p),{ButtonTemplates:{AddButton:v}}=l.templates;return $A.jsxs("fieldset",{id:o.$id,children:[d&&$A.jsx(m,{id:QA(o),title:d,required:c,schema:u,uiSchema:f,registry:l}),t&&$A.jsx(h,{id:qA(o),description:t,schema:u,uiSchema:f,registry:l}),i.map((e=>e.content)),kd(u,f,n)&&$A.jsx(v,{className:"object-property-expand",onClick:a(u),disabled:r||s,uiSchema:f,registry:l})]})}const Dq="*";function zq(e){const{id:t,title:r,required:n}=e;return $A.jsxs("legend",{id:t,children:[r,n&&$A.jsx("span",{className:"required",children:Dq})]})}function Lq(e){const{schema:t,idSchema:r,reason:n,registry:o}=e,{translateString:a}=o;let i=cR.UnsupportedField;const s=[];return r&&r.$id&&(i=cR.UnsupportedFieldWithId,s.push(r.$id)),n&&(i=i===cR.UnsupportedField?cR.UnsupportedFieldWithReason:cR.UnsupportedFieldWithIdAndReason,s.push(n)),$A.jsxs("div",{className:"unsupported-field",children:[$A.jsx("p",{children:$A.jsx(dq,{options:{disableParsingRawHTML:!0},children:a(i,s)})}),t&&$A.jsx("pre",{children:JSON.stringify(t,null,2)})]})}function Vq(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(cR.KeyLabel,[a]);return rd in u?$A.jsx("div",{className:r,style:n,children:$A.jsxs("div",{className:"row",children:[$A.jsx("div",{className:"col-xs-5 form-additional",children:$A.jsxs("div",{className:"form-group",children:[$A.jsx(Rq,{label:y,required:c,id:`${t}-key`}),$A.jsx("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:({target:e})=>i(e&&e.value),defaultValue:a})]})}),$A.jsx("div",{className:"form-additional form-group col-xs-5",children:d}),$A.jsx("div",{className:"col-xs-2",children:$A.jsx(v,{className:"array-item-remove btn-block",style:{border:"0"},disabled:o||l,onClick:s(a),uiSchema:f,registry:p})})]})}):$A.jsx("div",{className:r,style:n,children:d})}function Bq({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 $A.jsx(p,{schema:{type:"integer"},id:f,name:a,className:"form-control",options:{enumOptions:XN(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":YA(o)})}function Uq({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})),ZA(d,e));L.useEffect((()=>{const t=tR(h,e);!function(e){return Object.values(e).every((e=>-1!==e))}(h)||t===d?p!==d&&(m(d),v(ZA(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=ZA((new Date).toJSON(),e);u(tR(o,e))}),[t,r,e]),b=L.useCallback((e=>{e.preventDefault(),t||r||u(void 0)}),[t,r,u]);return $A.jsxs("ul",{className:"list-inline",children:[sA(h,e,o.yearsRange,o.format).map(((e,o)=>$A.jsx("li",{className:"list-inline-item",children:$A.jsx(Bq,{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)&&$A.jsx("li",{className:"list-inline-item",children:$A.jsx("a",{href:"#",className:"btn btn-info btn-now",onClick:g,children:f(cR.NowLabel)})}),("undefined"===o.hideClearButton||!o.hideClearButton)&&$A.jsx("li",{className:"list-inline-item",children:$A.jsx("a",{href:"#",className:"btn btn-warning btn-clear",onClick:b,children:f(cR.ClearLabel)})})]})}function Wq({time:e=!0,...t}){const{AltDateWidget:r}=t.registry.widgets;return $A.jsx(r,{time:e,...t})}function qq({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}){const m=fA("DescriptionFieldTemplate",p,r),h=eR(e),v=L.useCallback((e=>f(e.target.checked)),[f]),y=L.useCallback((e=>u(n,e.target.checked)),[u,n]),g=L.useCallback((e=>d(n,e.target.checked)),[d,n]),b=r.description??e.description;return $A.jsxs("div",{className:"checkbox "+(a||i?"disabled":""),children:[!l&&!!b&&$A.jsx(m,{id:qA(n),description:b,schema:e,uiSchema:t,registry:p}),$A.jsxs("label",{children:[$A.jsx("input",{type:"checkbox",id:n,name:n,checked:void 0!==o&&o,required:h,disabled:a||i,autoFocus:c,onChange:v,onBlur:y,onFocus:g,"aria-describedby":YA(n)}),XA($A.jsx("span",{children:s}),l)]})]})}function Kq({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,eA(t&&t.value,n,a))),[u,e]),m=L.useCallback((({target:t})=>d(e,eA(t&&t.value,n,a))),[d,e]);return $A.jsx("div",{className:"checkboxes",id:e,children:Array.isArray(n)&&n.map(((a,i)=>{const u=rA(a.value,f),d=Array.isArray(o)&&-1!==o.indexOf(a.value),h=t||d||l?"disabled":"",v=$A.jsxs("span",{children:[$A.jsx("input",{type:"checkbox",id:JA(e,i),name:e,checked:u,value:String(i),disabled:t||d||l,autoFocus:s&&0===i,onChange:e=>{e.target.checked?c(oA(i,f,n)):c(tA(i,f,n))},onBlur:p,onFocus:m,"aria-describedby":YA(e)}),$A.jsx("span",{children:a.label})]});return r?$A.jsx("label",{className:`checkbox-inline ${h}`,children:v},i):$A.jsx("div",{className:`checkbox ${h}`,children:$A.jsx("label",{children:v})},i)}))})}function Hq(e){const{disabled:t,readonly:r,options:n,registry:o}=e,a=fA("BaseInputTemplate",o,n);return $A.jsx(a,{type:"color",...e,disabled:t||r})}function Gq(e){const{onChange:t,options:r,registry:n}=e,o=fA("BaseInputTemplate",n,r),a=L.useCallback((e=>t(e||void 0)),[t]);return $A.jsx(o,{type:"date",...e,onChange:a})}function Qq(e){const{onChange:t,value:r,options:n,registry:o}=e,a=fA("BaseInputTemplate",o,n);return $A.jsx(a,{type:"datetime-local",...e,value:aR(r),onChange:e=>{return t((r=e)?new Date(r).toJSON():void 0);var r}})}function Yq(e){const{options:t,registry:r}=e,n=fA("BaseInputTemplate",r,t);return $A.jsx(n,{type:"email",...e})}function Jq(e,t){return null===e?null:e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}function Xq(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=>{"string"==typeof e.target?.result?o({dataURL:Jq(e.target.result,t),name:t,size:r,type:n}):o({dataURL:null,name:t,size:r,type:n})},i.readAsDataURL(e)}))}function Zq({fileInfo:e,registry:t}){const{translateString:r}=t,{dataURL:n,type:o,name:a}=e;return n?["image/jpeg","image/png"].includes(o)?$A.jsx("img",{src:n,style:{maxWidth:"100%"},className:"file-preview"}):$A.jsxs($A.Fragment,{children:[" ",$A.jsx("a",{download:`preview-${a}`,href:n,className:"file-download",children:r(cR.PreviewLabel)})]}):null}function eK({filesInfo:e,registry:t,preview:r,onRemove:n,options:o}){if(0===e.length)return null;const{translateString:a}=t,{RemoveButton:i}=fA("ButtonTemplates",t,o);return $A.jsx("ul",{className:"file-info",children:e.map(((e,o)=>{const{name:s,size:l,type:c}=e;return $A.jsxs("li",{children:[$A.jsx(dq,{children:a(cR.FilesInfo,[s,c,String(l)])}),r&&$A.jsx(Zq,{fileInfo:e,registry:t}),$A.jsx(i,{onClick:()=>n(o),registry:t})]},o)}))})}function tK(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 rK(e){const{disabled:t,readonly:r,required:n,multiple:o,onChange:a,value:i,options:s,registry:l}=e,c=fA("BaseInputTemplate",l,s),u=L.useCallback((e=>{var t;e.target.files&&(t=e.target.files,Promise.all(Array.from(t).map(Xq))).then((e=>{const t=e.map((e=>e.dataURL));a(o?i.concat(t):t[0])}))}),[o,i,a]),d=L.useMemo((()=>tK(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 $A.jsxs("div",{children:[$A.jsx(c,{...e,disabled:t||r,type:"file",required:!i&&n,onChangeOverride:u,value:"",accept:s.accept?String(s.accept):void 0}),$A.jsx(eK,{filesInfo:d,onRemove:f,registry:l,preview:s.filePreview,options:s})]})}function nK({id:e,value:t}){return $A.jsx("input",{type:"hidden",id:e,name:e,value:void 0===t?"":t})}function oK(e){const{options:t,registry:r}=e,n=fA("BaseInputTemplate",r,t);return $A.jsx(n,{type:"password",...e})}function aK({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,eA(e&&e.value,u,p))),[i,c]),h=L.useCallback((({target:e})=>s(c,eA(e&&e.value,u,p))),[s,c]);return $A.jsx("div",{className:"field-radio-group",id:c,children:Array.isArray(u)&&u.map(((e,i)=>{const s=rA(e.value,t),u=Array.isArray(d)&&-1!==d.indexOf(e.value),p=n||u||o?"disabled":"",v=$A.jsxs("span",{children:[$A.jsx("input",{type:"radio",id:JA(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":YA(c)}),$A.jsx("span",{children:e.label})]});return f?$A.jsx("label",{className:`radio-inline ${p}`,children:v},i):$A.jsx("div",{className:`radio ${p}`,children:$A.jsx("label",{children:v})},i)}))})}function iK(e){const{value:t,registry:{templates:{BaseInputTemplate:r}}}=e;return $A.jsxs("div",{className:"field-range-wrapper",children:[$A.jsx(r,{type:"range",...e}),$A.jsx("span",{className:"range-view",children:t})]})}function sK(e,t){return t?Array.from(e.target.options).slice().filter((e=>e.selected)).map((e=>e.value)):e.target.value}function lK({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=sK(e,s);return d(t,eA(r,p,h))}),[d,t,e,s,p,h]),g=L.useCallback((e=>{const r=sK(e,s);return u(t,eA(r,p,h))}),[u,t,e,s,p,h]),b=L.useCallback((e=>{const t=sK(e,s);return c(eA(t,p,h))}),[c,e,s,p,h]),w=nA(n,p,s),S=!s&&void 0===e.default;return $A.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":YA(t),children:[S&&$A.jsx("option",{value:"",children:f}),Array.isArray(p)&&p.map((({value:e,label:t},r)=>{const n=m&&-1!==m.indexOf(e);return $A.jsx("option",{value:String(r),disabled:n,children:t},r)}))]})}function cK({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 $A.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":YA(e)})}function uK(e){const{options:t,registry:r}=e,n=fA("BaseInputTemplate",r,t);return $A.jsx(n,{...e})}function dK(e){const{onChange:t,options:r,registry:n}=e,o=fA("BaseInputTemplate",n,r),a=L.useCallback((e=>t(e?`${e}:00`:void 0)),[t]);return $A.jsx(o,{type:"time",...e,onChange:a})}function fK(e){const{options:t,registry:r}=e,n=fA("BaseInputTemplate",r,t);return $A.jsx(n,{type:"url",...e})}function pK(e){const{options:t,registry:r}=e,n=fA("BaseInputTemplate",r,t);return $A.jsx(n,{type:"number",...e})}function mK(){return{fields:{AnyOfField:hU,ArrayField:pU,BooleanField:mU,NumberField:gU,ObjectField:fq,OneOfField:hU,SchemaField:hq,StringField:vq,NullField:yq},templates:{ArrayFieldDescriptionTemplate:gq,ArrayFieldItemTemplate:bq,ArrayFieldTemplate:wq,ArrayFieldTitleTemplate:Sq,ButtonTemplates:{SubmitButton:$q,AddButton:Pq,CopyButton:kq,MoveDownButton:Eq,MoveUpButton:Cq,RemoveButton:jq},BaseInputTemplate:xq,DescriptionFieldTemplate:Oq,ErrorListTemplate:Nq,FieldTemplate:Tq,FieldErrorTemplate:Iq,FieldHelpTemplate:Mq,ObjectFieldTemplate:Fq,TitleFieldTemplate:zq,UnsupportedFieldTemplate:Lq,WrapIfAdditionalTemplate:Vq},widgets:{AltDateWidget:Uq,AltDateTimeWidget:Wq,CheckboxWidget:qq,CheckboxesWidget:Kq,ColorWidget:Hq,DateWidget:Gq,DateTimeWidget:Qq,EmailWidget:Yq,FileWidget:rK,HiddenWidget:nK,PasswordWidget:oK,RadioWidget:aK,RangeWidget:iK,SelectWidget:lK,TextWidget:uK,TextareaWidget:cK,TimeWidget:dK,UpDownWidget:pK,URLWidget:fK},rootSchema:{},formContext:{},translateString:ZN}}cK.defaultProps={autofocus:!1,options:{}};let hK=class extends L.Component{formElement;constructor(e){if(super(e),!e.validator)throw new Error("A validator is required for Form functionality to work");this.state=this.getStateFromProps(e,e.formData),this.props.onChange&&!fm(this.state.formData,this.props.formData)&&this.props.onChange(this.state),this.formElement=L.createRef()}getSnapshotBeforeUpdate(e,t){if(!fm(this.props,e)){const r=fR(this.props.formData,e.formData),n=!fm(e.schema,this.props.schema),o=r.length>0||!fm(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:!fm(a,t)}}return{shouldUpdate:!1}}componentDidUpdate(e,t,r){if(r.shouldUpdate){const{nextState:e}=r;fm(e.formData,this.props.formData)||fm(e.formData,t.formData)||!this.props.onChange||this.props.onChange(e),this.setState(e)}}getStateFromProps(e,t,r,n=!1,o=[]){const a=this.state||{},i="schema"in e?e.schema:this.props.schema,s=("uiSchema"in e?e.uiSchema:this.props.uiSchema)||{},l=void 0!==t,c="liveValidate"in e?e.liveValidate:this.props.liveValidate,u=l&&!e.noValidate&&c,d=i,f="experimental_defaultFormStateBehavior"in e?e.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior,p="experimental_customMergeAllOf"in e?e.experimental_customMergeAllOf:this.props.experimental_customMergeAllOf;let m=a.schemaUtils;m&&!m.doesSchemaUtilsDiffer(e.validator,d,f,p)||(m=function(e,t,r={},n){return new YN(e,t,r,n)}(e.validator,d,f,p));const h=m.getDefaultFormState(i,t),v=this.updateRetrievedSchema(r??m.retrieveSchema(i,h));let y,g,b=a.schemaValidationErrors,w=a.schemaValidationErrorSchema;if(u){const e=this.validate(h,i,m,v);y=e.errors,g=void 0===r?e.errorSchema:PN(this.state?.errorSchema,e.errorSchema,"preventDuplicates"),b=y,w=g}else{const t=e.noValidate||n?{errors:[],errorSchema:{}}:e.liveValidate?{errors:a.errors||[],errorSchema:a.errorSchema||{}}:{errors:a.schemaValidationErrors||[],errorSchema:a.schemaValidationErrorSchema||{}};if(y=t.errors,g=t.errorSchema,o.length>0){const e=o.reduce(((e,t)=>(e[t]=void 0,e)),{});g=w=PN(t.errorSchema,e,"preventDuplicates")}}if(e.extraErrors){const t=iR({errorSchema:g,errors:y},e.extraErrors);g=t.errorSchema,y=t.errors}const S=m.toIdSchema(v,s["ui:rootFieldId"],h,e.idPrefix,e.idSeparator);return{schemaUtils:m,schema:i,uiSchema:s,idSchema:S,formData:h,edit:l,errors:y,errorSchema:g,schemaValidationErrors:b,schemaValidationErrorSchema:w,retrievedSchema:v}}shouldComponentUpdate(e,t){return function(e,t,r){const{props:n,state:o}=e;return!fm(n,t)||!fm(o,r)}(this,e,t)}getPreviousCustomValidateErrors(){const{customValidate:e,uiSchema:t}=this.props,r=this.state.formData;let n={};if("function"==typeof e){n=oR(e(r,Qd(r),t))}return n}validate(e,t=this.props.schema,r,n){const o=r||this.state.schemaUtils,{customValidate:a,transformErrors:i,uiSchema:s}=this.props,l=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=fA("ErrorListTemplate",e,_d(o));return t&&t.length?$A.jsx(i,{errors:t,errorSchema:r||{},schema:n,uiSchema:o,formContext:a,registry:e}):null}getUsedFormData=(e,t)=>{if(0===t.length&&"object"!=typeof e)return e;const r=lU(e,t);return Array.isArray(e)?Object.keys(r).map((e=>r[e])):r};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=Tm(t,e);("object"!=typeof r||Dm(r)||Array.isArray(r)&&r.every((e=>"object"!=typeof e)))&&n.push(e)}))})),n);return r(e)};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)};filterErrorsBasedOnSchema(e,t,r){const{retrievedSchema:n,schemaUtils:o}=this.state,a=t??n,i=o.toPathSchema(a,"",r),s=this.getFieldNames(i,r),l=lU(e,s);"object"!==t?.type&&"array"!==t?.type&&(l.__errors=e.__errors);const c=this.getPreviousCustomValidateErrors(),u=(e,t={})=>{var r,n;return n=(r,n)=>{const o=t[n];CN(r)||Array.isArray(r)&&0===r.length?delete e[n]:ed(r)&&ed(o)&&Array.isArray(o?.__errors)?e[n]=((e=[],t)=>0===e.length?e:e.filter((e=>!t.includes(e))))(r.__errors,o.__errors):"object"!=typeof r||Array.isArray(r.__errors)||u(r,t[n])},(Zf(r=e)?Hm:Fv)(r,Yv(n)),e};return u(l,c)}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=iR(e,n);o=t.errorSchema,r=t.errors}if(t){o=PN(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?PN(t,n,"preventDuplicates"):t;p={formData:m,errorSchema:e,errors:rR(e)}}this.setState(p,(()=>l&&l({...this.state,...p},r)))};updateRetrievedSchema(e){return fm(e,this.state?.retrievedSchema)?this.state.retrievedSchema:e}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})))};onBlur=(e,t)=>{const{onBlur:r}=this.props;r&&r(e,t)};onFocus=(e,t)=>{const{onFocus:r}=this.props;r&&r(e,t)};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?rR(r):[];this.setState({formData:a,errors:n,errorSchema:t,schemaValidationErrors:[],schemaValidationErrorSchema:{}},(()=>{o&&o({...this.state,formData:a,status:"submitted"},e)}))}};getRegistry(){const{translateString:e,uiSchema:t={}}=this.props,{schemaUtils:r}=this.state,{fields:n,templates:o,widgets:a,formContext:i,translateString:s}=mK();return{fields:{...n,...this.props.fields},templates:{...o,...this.props.templates,ButtonTemplates:{...o.ButtonTemplates,...this.props.templates?.ButtonTemplates}},widgets:{...a,...this.props.widgets},rootSchema:this.props.schema,formContext:this.props.formContext||i,schemaUtils:r,translateString:e||s,globalUiOptions:t["ui:globalOptions"]}}submit=()=>{if(this.formElement.current){const e=new CustomEvent("submit",{cancelable:!0});e.preventDefault(),this.formElement.current.dispatchEvent(e),this.formElement.current.requestSubmit()}};focusOnError(e){const{idPrefix:t="root",idSeparator:r="_"}=this.props,{property:n}=e,o=nR(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()}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=iR(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};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:_}=this.state,k=this.getRegistry(),{SchemaField:E}=k.fields,{SubmitButton:C}=k.templates.ButtonTemplates,j=b?a:void 0,P=b||a||"form";let{[gd]:O={}}=_d(S);h&&(O={...O,props:{...O.props,disabled:!0}});const N={[$d]:{[gd]:O}};return $A.jsxs(P,{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:j,ref:this.formElement,children:["top"===g&&this.renderErrors(k),$A.jsx(E,{name:"",schema:w,uiSchema:S,errorSchema:$,idSchema:_,idPrefix:r,idSeparator:n,formContext:y,formData:x,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:k,disabled:h,readonly:v}),e||$A.jsx(C,{uiSchema:N,registry:k}),"bottom"===g&&this.renderErrors(k)]})}};var vK={black:"#000",white:"#fff"};var yK={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 gK={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 bK={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 wK={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 SK={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 xK={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 $K={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 _K(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 kK=Object.freeze({__proto__:null,default:_K}),EK="$$material";function CK(){return CK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},CK.apply(null,arguments)}function jK(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}var PK=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}(),OK="-ms-",NK="-moz-",AK="-webkit-",RK="comm",TK="rule",IK="decl",MK="@keyframes",FK=Math.abs,DK=String.fromCharCode,zK=Object.assign;function LK(e){return e.trim()}function VK(e,t,r){return e.replace(t,r)}function BK(e,t){return e.indexOf(t)}function UK(e,t){return 0|e.charCodeAt(t)}function WK(e,t,r){return e.slice(t,r)}function qK(e){return e.length}function KK(e){return e.length}function HK(e,t){return t.push(e),e}var GK=1,QK=1,YK=0,JK=0,XK=0,ZK="";function eH(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:GK,column:QK,length:i,return:""}}function tH(e,t){return zK(eH("",null,null,"",null,null,0),e,{length:-e.length},t)}function rH(){return XK=JK>0?UK(ZK,--JK):0,QK--,10===XK&&(QK=1,GK--),XK}function nH(){return XK=JK<YK?UK(ZK,JK++):0,QK++,10===XK&&(QK=1,GK++),XK}function oH(){return UK(ZK,JK)}function aH(){return JK}function iH(e,t){return WK(ZK,e,t)}function sH(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 lH(e){return GK=QK=1,YK=qK(ZK=e),JK=0,[]}function cH(e){return ZK="",e}function uH(e){return LK(iH(JK-1,pH(91===e?e+2:40===e?e+1:e)))}function dH(e){for(;(XK=oH())&&XK<33;)nH();return sH(e)>2||sH(XK)>3?"":" "}function fH(e,t){for(;--t&&nH()&&!(XK<48||XK>102||XK>57&&XK<65||XK>70&&XK<97););return iH(e,aH()+(t<6&&32==oH()&&32==nH()))}function pH(e){for(;nH();)switch(XK){case e:return JK;case 34:case 39:34!==e&&39!==e&&pH(XK);break;case 40:41===e&&pH(e);break;case 92:nH()}return JK}function mH(e,t){for(;nH()&&e+XK!==57&&(e+XK!==84||47!==oH()););return"/*"+iH(t,JK-1)+"*"+DK(47===e?e:nH())}function hH(e){for(;!sH(oH());)nH();return iH(e,JK)}function vH(e){return cH(yH("",null,null,null,[""],e=lH(e),0,[0],e))}function yH(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=nH()){case 40:if(108!=m&&58==UK($,d-1)){-1!=BK($+=VK(uH(g),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:$+=uH(g);break;case 9:case 10:case 13:case 32:$+=dH(m);break;case 92:$+=fH(aH()-1,7);continue;case 47:switch(oH()){case 42:case 47:HK(bH(mH(nH(),aH()),t,r),l);break;default:$+="/"}break;case 123*h:s[c++]=qK($)*y;case 125*h:case 59:case 0:switch(g){case 0:case 125:v=0;case 59+u:-1==y&&($=VK($,/\f/g,"")),p>0&&qK($)-d&&HK(p>32?wH($+";",n,r,d-1):wH(VK($," ","")+";",n,r,d-2),l);break;case 59:$+=";";default:if(HK(x=gH($,t,r,c,u,o,s,b,w=[],S=[],d),a),123===g)if(0===u)yH($,t,x,x,w,a,d,s,S);else switch(99===f&&110===UK($,3)?100:f){case 100:case 108:case 109:case 115:yH(e,x,x,n&&HK(gH(e,x,x,0,0,o,s,b,o,w=[],d),S),o,S,d,s,n?w:S);break;default:yH($,x,x,x,[""],S,0,s,S)}}c=u=p=0,h=y=1,b=$="",d=i;break;case 58:d=1+qK($),p=m;default:if(h<1)if(123==g)--h;else if(125==g&&0==h++&&125==rH())continue;switch($+=DK(g),g*h){case 38:y=u>0?1:($+="\f",-1);break;case 44:s[c++]=(qK($)-1)*y,y=1;break;case 64:45===oH()&&($+=uH(nH())),f=oH(),u=d=qK(b=$+=hH(aH())),g++;break;case 45:45===m&&2==qK($)&&(h=0)}}return a}function gH(e,t,r,n,o,a,i,s,l,c,u){for(var d=o-1,f=0===o?a:[""],p=KK(f),m=0,h=0,v=0;m<n;++m)for(var y=0,g=WK(e,d+1,d=FK(h=i[m])),b=e;y<p;++y)(b=LK(h>0?f[y]+" "+g:VK(g,/&\f/g,f[y])))&&(l[v++]=b);return eH(e,t,r,0===o?TK:s,l,c,u)}function bH(e,t,r){return eH(e,t,r,RK,DK(XK),WK(e,2,-2),0)}function wH(e,t,r,n){return eH(e,t,r,IK,WK(e,0,n),WK(e,n+1,-1),n)}function SH(e,t){for(var r="",n=KK(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function xH(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case IK:return e.return=e.return||e.value;case RK:return"";case MK:return e.return=e.value+"{"+SH(e.children,n)+"}";case TK:e.value=e.props.join(",")}return qK(r=SH(e.children,n))?e.return=e.value+"{"+r+"}":""}function $H(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var _H=function(e,t,r){for(var n=0,o=0;n=o,o=oH(),38===n&&12===o&&(t[r]=1),!sH(o);)nH();return iH(e,JK)},kH=function(e,t){return cH(function(e,t){var r=-1,n=44;do{switch(sH(n)){case 0:38===n&&12===oH()&&(t[r]=1),e[r]+=_H(JK-1,t,r);break;case 2:e[r]+=uH(n);break;case 4:if(44===n){e[++r]=58===oH()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=DK(n)}}while(n=nH());return e}(lH(e),t))},EH=new WeakMap,CH=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)||EH.get(r))&&!n){EH.set(e,!0);for(var o=[],a=kH(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]}}},jH=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function PH(e,t){switch(function(e,t){return 45^UK(e,0)?(((t<<2^UK(e,0))<<2^UK(e,1))<<2^UK(e,2))<<2^UK(e,3):0}(e,t)){case 5103:return AK+"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 AK+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return AK+e+NK+e+OK+e+e;case 6828:case 4268:return AK+e+OK+e+e;case 6165:return AK+e+OK+"flex-"+e+e;case 5187:return AK+e+VK(e,/(\w+).+(:[^]+)/,AK+"box-$1$2"+OK+"flex-$1$2")+e;case 5443:return AK+e+OK+"flex-item-"+VK(e,/flex-|-self/,"")+e;case 4675:return AK+e+OK+"flex-line-pack"+VK(e,/align-content|flex-|-self/,"")+e;case 5548:return AK+e+OK+VK(e,"shrink","negative")+e;case 5292:return AK+e+OK+VK(e,"basis","preferred-size")+e;case 6060:return AK+"box-"+VK(e,"-grow","")+AK+e+OK+VK(e,"grow","positive")+e;case 4554:return AK+VK(e,/([^-])(transform)/g,"$1"+AK+"$2")+e;case 6187:return VK(VK(VK(e,/(zoom-|grab)/,AK+"$1"),/(image-set)/,AK+"$1"),e,"")+e;case 5495:case 3959:return VK(e,/(image-set\([^]*)/,AK+"$1$`$1");case 4968:return VK(VK(e,/(.+:)(flex-)?(.*)/,AK+"box-pack:$3"+OK+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+AK+e+e;case 4095:case 3583:case 4068:case 2532:return VK(e,/(.+)-inline(.+)/,AK+"$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(qK(e)-1-t>6)switch(UK(e,t+1)){case 109:if(45!==UK(e,t+4))break;case 102:return VK(e,/(.+:)(.+)-([^]+)/,"$1"+AK+"$2-$3$1"+NK+(108==UK(e,t+3)?"$3":"$2-$3"))+e;case 115:return~BK(e,"stretch")?PH(VK(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==UK(e,t+1))break;case 6444:switch(UK(e,qK(e)-3-(~BK(e,"!important")&&10))){case 107:return VK(e,":",":"+AK)+e;case 101:return VK(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+AK+(45===UK(e,14)?"inline-":"")+"box$3$1"+AK+"$2$3$1"+OK+"$2box$3")+e}break;case 5936:switch(UK(e,t+11)){case 114:return AK+e+OK+VK(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return AK+e+OK+VK(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return AK+e+OK+VK(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return AK+e+OK+e+e}return e}var OH=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case IK:e.return=PH(e.value,e.length);break;case MK:return SH([tH(e,{value:VK(e.value,"@","@"+AK)})],n);case TK: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 SH([tH(e,{props:[VK(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return SH([tH(e,{props:[VK(t,/:(plac\w+)/,":"+AK+"input-$1")]}),tH(e,{props:[VK(t,/:(plac\w+)/,":-moz-$1")]}),tH(e,{props:[VK(t,/:(plac\w+)/,OK+"input-$1")]})],n)}return""}))}}],NH=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||OH,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=[xH,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=KK(e);return function(r,n,o,a){for(var i="",s=0;s<t;s++)i+=e[s](r,n,o,a)||"";return i}}([CH,jH].concat(a,u));o=function(e,t,r,n){l=r,function(e){SH(vH(e),d)}(e?e+"{"+t.styles+"}":t.styles),n&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new PK({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},AH={exports:{}},RH={},TH="function"==typeof Symbol&&Symbol.for,IH=TH?Symbol.for("react.element"):60103,MH=TH?Symbol.for("react.portal"):60106,FH=TH?Symbol.for("react.fragment"):60107,DH=TH?Symbol.for("react.strict_mode"):60108,zH=TH?Symbol.for("react.profiler"):60114,LH=TH?Symbol.for("react.provider"):60109,VH=TH?Symbol.for("react.context"):60110,BH=TH?Symbol.for("react.async_mode"):60111,UH=TH?Symbol.for("react.concurrent_mode"):60111,WH=TH?Symbol.for("react.forward_ref"):60112,qH=TH?Symbol.for("react.suspense"):60113,KH=TH?Symbol.for("react.suspense_list"):60120,HH=TH?Symbol.for("react.memo"):60115,GH=TH?Symbol.for("react.lazy"):60116,QH=TH?Symbol.for("react.block"):60121,YH=TH?Symbol.for("react.fundamental"):60117,JH=TH?Symbol.for("react.responder"):60118,XH=TH?Symbol.for("react.scope"):60119;function ZH(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case IH:switch(e=e.type){case BH:case UH:case FH:case zH:case DH:case qH:return e;default:switch(e=e&&e.$$typeof){case VH:case WH:case GH:case HH:case LH:return e;default:return t}}case MH:return t}}}function eG(e){return ZH(e)===UH}RH.AsyncMode=BH,RH.ConcurrentMode=UH,RH.ContextConsumer=VH,RH.ContextProvider=LH,RH.Element=IH,RH.ForwardRef=WH,RH.Fragment=FH,RH.Lazy=GH,RH.Memo=HH,RH.Portal=MH,RH.Profiler=zH,RH.StrictMode=DH,RH.Suspense=qH,RH.isAsyncMode=function(e){return eG(e)||ZH(e)===BH},RH.isConcurrentMode=eG,RH.isContextConsumer=function(e){return ZH(e)===VH},RH.isContextProvider=function(e){return ZH(e)===LH},RH.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===IH},RH.isForwardRef=function(e){return ZH(e)===WH},RH.isFragment=function(e){return ZH(e)===FH},RH.isLazy=function(e){return ZH(e)===GH},RH.isMemo=function(e){return ZH(e)===HH},RH.isPortal=function(e){return ZH(e)===MH},RH.isProfiler=function(e){return ZH(e)===zH},RH.isStrictMode=function(e){return ZH(e)===DH},RH.isSuspense=function(e){return ZH(e)===qH},RH.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===FH||e===UH||e===zH||e===DH||e===qH||e===KH||"object"==typeof e&&null!==e&&(e.$$typeof===GH||e.$$typeof===HH||e.$$typeof===LH||e.$$typeof===VH||e.$$typeof===WH||e.$$typeof===YH||e.$$typeof===JH||e.$$typeof===XH||e.$$typeof===QH)},RH.typeOf=ZH,AH.exports=RH;var tG=AH.exports,rG={};rG[tG.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},rG[tG.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};function nG(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")})),n}var oG=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},aG=function(e,t,r){oG(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 iG={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},sG=!1,lG=/[A-Z]|^ms/g,cG=/_EMO_([^_]+?)_([^]*?)_EMO_/g,uG=function(e){return 45===e.charCodeAt(1)},dG=function(e){return null!=e&&"boolean"!=typeof e},fG=$H((function(e){return uG(e)?e:e.replace(lG,"-$&").toLowerCase()})),pG=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(cG,(function(e,t,r){return vG={name:t,styles:r,next:vG},t}))}return 1===iG[e]||uG(e)||"number"!=typeof t||0===t?t:t+"px"},mG="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function hG(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 vG={name:o.name,styles:o.styles,next:vG},o.name;var a=r;if(void 0!==a.styles){var i=a.next;if(void 0!==i)for(;void 0!==i;)vG={name:i.name,styles:i.styles,next:vG},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+=hG(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]+"}":dG(s)&&(n+=fG(a)+":"+pG(a,s)+";")}else{if("NO_COMPONENT_SELECTOR"===a&&sG)throw new Error(mG);if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=hG(e,t,i);switch(a){case"animation":case"animationName":n+=fG(a)+":"+l+";";break;default:n+=a+"{"+l+"}"}}else for(var c=0;c<i.length;c++)dG(i[c])&&(n+=fG(a)+":"+pG(a,i[c])+";")}}return n}(e,t,r);case"function":if(void 0!==e){var s=vG,l=r(e);return vG=s,hG(e,t,l)}}var c=r;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var vG,yG=/label:\s*([^\s;{]+)\s*(;|$)/g;function gG(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="";vG=void 0;var a=e[0];null==a||void 0===a.raw?(n=!1,o+=hG(r,t,a)):o+=a[0];for(var i=1;i<e.length;i++){if(o+=hG(r,t,e[i]),n)o+=a[i]}yG.lastIndex=0;for(var s,l="";null!==(s=yG.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:vG}}var bG,wG,SG=!!B.useInsertionEffect&&B.useInsertionEffect,xG=SG||function(e){return e()},$G=SG||L.useLayoutEffect,_G=L.createContext("undefined"!=typeof HTMLElement?NH({key:"css"}):null),kG=_G.Provider,EG=function(e){return L.forwardRef((function(t,r){var n=L.useContext(_G);return e(t,n,r)}))},CG=L.createContext({}),jG={}.hasOwnProperty,PG="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",OG=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return oG(t,r,n),xG((function(){return aG(t,r,n)})),null},NG=EG((function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var o=e[PG],a=[n],i="";"string"==typeof e.className?i=nG(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var s=gG(a,void 0,L.useContext(CG));i+=t.key+"-"+s.name;var l={};for(var c in e)jG.call(e,c)&&"css"!==c&&c!==PG&&(l[c]=e[c]);return l.className=i,r&&(l.ref=r),L.createElement(L.Fragment,null,L.createElement(OG,{cache:t,serialized:s,isStringTag:"string"==typeof o}),L.createElement(o,l))})),AG=NG,RG=function(e,t){var r=arguments;if(null==t||!jG.call(t,"css"))return L.createElement.apply(void 0,r);var n=r.length,o=new Array(n);o[0]=AG,o[1]=function(e,t){var r={};for(var n in t)jG.call(t,n)&&(r[n]=t[n]);return r[PG]=e,r}(e,t);for(var a=2;a<n;a++)o[a]=r[a];return L.createElement.apply(null,o)};bG=RG||(RG={}),wG||(wG=bG.JSX||(bG.JSX={}));var TG=EG((function(e,t){var r=gG([e.styles],void 0,L.useContext(CG)),n=L.useRef();return $G((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]),$G((function(){var e=n.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&aG(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 IG(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return gG(t)}function MG(){var e=IG.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 FG=/^((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)-.*))$/,DG=$H((function(e){return FG.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),zG=function(e){return"theme"!==e},LG=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?DG:zG},VG=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},BG=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return oG(t,r,n),xG((function(){return aG(t,r,n)})),null},UG=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=VG(t,r,a),l=s||LG(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=EG((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(CG)}"string"==typeof e.className?a=nG(t.registered,u,e.className):null!=e.className&&(a=e.className+" ");var m=gG(d.concat(u),t.registered,f);a+=t.key+"-"+m.name,void 0!==o&&(a+=" "+o);var h=c&&void 0===s?LG(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(BG,{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,CK({},r,n,{shouldForwardProp:VG(h,n,!0)})).apply(void 0,d)},h}}.bind(null);let WG;function qG(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 $A.jsx(TG,{styles:n})}
|
|
34
|
+
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}(DV);var zV={};Object.defineProperty(zV,"__esModule",{value:!0});const LV=ED,VV=PD,BV={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>LV._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:n,it:o}=e;if((0,VV.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,LV.not)(a),(()=>{e.error(!0),o.allErrors||t.break()}))})),e.ok(a)}};zV.default=BV;var UV={};Object.defineProperty(UV,"__esModule",{value:!0});const WV=GD(),qV=ED,KV=TD(),HV=PD,GV={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>qV._`{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,HV.alwaysValidSchema)(i,r))return;const c=(0,WV.allSchemaProperties)(n.properties),u=(0,WV.allSchemaProperties)(n.patternProperties);function d(e){t.code(qV._`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,HV.alwaysValidSchema)(i,r)){const r=t.name("valid");"failing"===l.removeAdditional?(p(n,r,!1),t.if((0,qV.not)(r),(()=>{e.reset(),d(n)}))):(p(n,r),s||t.if((0,qV.not)(r),(()=>t.break())))}}}function p(t,r,n){const o={keyword:"additionalProperties",dataProp:t,dataPropType:HV.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,HV.schemaRefOrVal)(i,n.properties,"properties");o=(0,WV.isOwnProperty)(t,e,r)}else o=c.length?(0,qV.or)(...c.map((e=>qV._`${r} === ${e}`))):qV.nil;return u.length&&(o=(0,qV.or)(o,...u.map((t=>qV._`${(0,WV.usePattern)(e,t)}.test(${r})`)))),(0,qV.not)(o)}(r),(()=>f(r))):f(r)})),e.ok(qV._`${a} === ${KV.default.errors}`)}};UV.default=GV;var QV={};Object.defineProperty(QV,"__esModule",{value:!0});const YV=yz(),JV=GD(),XV=PD,ZV=UV,eB={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&&ZV.default.code(new YV.KeywordCxt(a,ZV.default,"additionalProperties"));const i=(0,JV.allSchemaProperties)(r);for(const e of i)a.definedProperties.add(e);a.opts.unevaluated&&i.length&&!0!==a.props&&(a.props=XV.mergeEvaluated.props(t,(0,XV.toHash)(i),a.props));const s=i.filter((e=>!(0,XV.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,JV.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)}}};QV.default=eB;var tB={};Object.defineProperty(tB,"__esModule",{value:!0});const rB=GD(),nB=ED,oB=PD,aB=PD,iB={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,rB.allSchemaProperties)(r),l=s.filter((e=>(0,oB.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 nB.Name||(a.props=(0,aB.evaluatedPropsToName)(t,a.props));const{props:d}=a;function f(e){for(const t in c)new RegExp(e).test(t)&&(0,oB.checkStrictMode)(a,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function p(r){t.forIn("key",n,(n=>{t.if(nB._`${(0,rB.usePattern)(e,r)}.test(${n})`,(()=>{const o=l.includes(r);o||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:n,dataPropType:aB.Type.Str},u),a.opts.unevaluated&&!0!==d?t.assign(nB._`${d}[${n}]`,!0):o||a.allErrors||t.if((0,nB.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))}()}};tB.default=iB;var sB={};Object.defineProperty(sB,"__esModule",{value:!0});const lB=PD,cB={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,lB.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"}};sB.default=cB;var uB={};Object.defineProperty(uB,"__esModule",{value:!0});const dB={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:GD().validateUnion,error:{message:"must match a schema in anyOf"}};uB.default=dB;var fB={};Object.defineProperty(fB,"__esModule",{value:!0});const pB=ED,mB=PD,hB={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>pB._`{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,mB.alwaysValidSchema)(o,r)?t.var(l,!0):a=e.subschema({keyword:"oneOf",schemaProp:n,compositeRule:!0},l),n>0&&t.if(pB._`${l} && ${i}`).assign(i,!1).assign(s,pB._`[${s}, ${n}]`).else(),t.if(l,(()=>{t.assign(i,!0),t.assign(s,n),a&&e.mergeEvaluated(a,pB.Name)}))}))})),e.result(i,(()=>e.reset()),(()=>e.error(!0)))}};fB.default=hB;var yB={};Object.defineProperty(yB,"__esModule",{value:!0});const vB=PD,gB={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,vB.alwaysValidSchema)(n,t))return;const a=e.subschema({keyword:"allOf",schemaProp:r},o);e.ok(o),e.mergeEvaluated(a)}))}};yB.default=gB;var bB={};Object.defineProperty(bB,"__esModule",{value:!0});const wB=ED,SB=PD,xB={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>wB.str`must match "${e.ifClause}" schema`,params:({params:e})=>wB._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:n}=e;void 0===r.then&&void 0===r.else&&(0,SB.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const o=$B(n,"then"),a=$B(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,wB.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,wB._`${r}`):e.setParams({ifClause:r})}}e.pass(i,(()=>e.error(!0)))}};function $B(e,t){const r=e.schema[t];return void 0!==r&&!(0,SB.alwaysValidSchema)(e,r)}bB.default=xB;var _B={};Object.defineProperty(_B,"__esModule",{value:!0});const kB=PD,EB={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,kB.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};_B.default=EB,Object.defineProperty(pV,"__esModule",{value:!0});const CB=mV,jB=bV,PB=wV,OB=jV,NB=TV,AB=DV,RB=zV,TB=UV,IB=QV,MB=tB,FB=sB,DB=uB,zB=fB,LB=yB,VB=bB,BB=_B;pV.default=function(e=!1){const t=[FB.default,DB.default,zB.default,LB.default,VB.default,BB.default,RB.default,TB.default,AB.default,IB.default,MB.default];return e?t.push(jB.default,OB.default):t.push(CB.default,PB.default),t.push(NB.default),t};var UB={},WB={};Object.defineProperty(WB,"__esModule",{value:!0});const qB=ED,KB={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>qB.str`must match format "${e}"`,params:({schemaCode:e})=>qB._`{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",qB._`${o}[${i}]`),s=r.let("fType"),c=r.let("format");r.if(qB._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>r.assign(s,qB._`${a}.type || "string"`).assign(c,qB._`${a}.validate`)),(()=>r.assign(s,qB._`"string"`).assign(c,a))),e.fail$data((0,qB.or)(!1===l.strictSchema?qB.nil:qB._`${i} && !${c}`,function(){const e=u.$async?qB._`(${a}.async ? await ${c}(${n}) : ${c}(${n}))`:qB._`${c}(${n})`,r=qB._`(typeof ${c} == "function" ? ${e} : ${c}.test(${n}))`;return qB._`${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,qB.regexpCode)(e):l.code.formats?qB._`${l.code.formats}${(0,qB.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,qB._`${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 qB._`await ${f}(${n})`}return"function"==typeof s?qB._`${f}(${n})`:qB._`${f}.test(${n})`}())}())}};WB.default=KB,Object.defineProperty(UB,"__esModule",{value:!0});const HB=[WB.default];UB.default=HB;var GB={};Object.defineProperty(GB,"__esModule",{value:!0}),GB.contentVocabulary=GB.metadataVocabulary=void 0,GB.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],GB.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(Vz,"__esModule",{value:!0});const QB=nL,YB=pV,JB=UB,XB=GB,ZB=[Bz.default,QB.default,(0,YB.default)(),JB.default,XB.metadataVocabulary,XB.contentVocabulary];Vz.default=ZB;var eU={},tU={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,(t=e.DiscrError||(e.DiscrError={})).Tag="tag",t.Mapping="mapping"}(tU),Object.defineProperty(eU,"__esModule",{value:!0});const rU=ED,nU=tU,oU=$z,aU=PD,iU={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===nU.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>rU._`{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",rU._`${r}${(0,rU.getProperty)(s)}`);function u(r){const n=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:r},n);return e.mergeEvaluated(o,rU.Name),n}t.if(rU._`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,aU.schemaHasRulesButRef)(o,a.self.RULES)&&(o=oU.resolveRef.call(a.self,a.schemaEnv.root,a.baseId,null==o?void 0:o.$ref),o instanceof oU.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(rU._`${c} === ${e}`),t.assign(l,u(r[e]));t.else(),e.error(!1,{discrError:nU.DiscrError.Mapping,tag:c,tagName:s}),t.endIf()}()),(()=>e.error(!1,{discrError:nU.DiscrError.Tag,tag:c,tagName:s}))),e.ok(l)}};eU.default=iU;var sU={$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=xD,n=Vz,o=eU,a=sU,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=yz();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=ED;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=bz();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=xz();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})}(SD,SD.exports);var lU=SD.exports;!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=lU,r=ED,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)}(wD),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=bD,n=wD,o=ED,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}(gD,gD.exports);var cU=r(gD.exports);const uU={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},dU=/^(#?([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*\)))$/,fU=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function pU(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=_d(Fm(t,`${(u?`${u}.${e}`:e).replace(/^\./,"")}`)).title;if(void 0===r){const n=i.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([e]);r=_d(Fm(t,n)).title}if(r)c=c.replace(`'${e}'`,`'${r}'`);else{const t=Fm(s,[yd,e,"title"]);t&&(c=c.replace(`'${e}'`,`'${t}'`))}})),d=c;else{const e=_d(Fm(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 mA;return e.length&&e.forEach((e=>{const{property:r,message:n}=e,o="."===r?[]:dR(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=QN(e,n,r,n,!0);return mR({errors:l,errorSchema:c},fR(o(u,Qd(u),i)))}class mU{constructor(e,t){const{additionalMetaSchemas:r,customFormats:n,ajvOptionsOverrides:o,ajvFormatOptions:a,AjvClass:i}=e;this.ajv=function(e,t,r={},n,o=vD){const a=new o({...uU,...r});return n?cU(a,n):!1!==n&&cU(a),a.addFormat("data-url",fU),a.addFormat("color",dU),a.addKeyword(rd),a.addKeyword(wd),Array.isArray(e)&&a.addMetaSchema(e),ef(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 uR(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 pU(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):fm(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=hR(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 hU=function(e={},t){return new mU(e,t)}();var yU=by((function(e,t){return null==e?{}:function(e,t){return yR(e,t,(function(t,r){return Ky(e,r)}))}(e,t)}));let vU=(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 gU(){return vU()}function bU(e){return Array.isArray(e)?e.map((e=>({key:gU(),item:e}))):[]}function wU(e){return Array.isArray(e)?e.map((e=>e.item)):[]}class SU extends L.Component{constructor(e){super(e);const{formData:t=[]}=e,r=bU(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]}))):bU(r);return{keyedFormData:o}}get itemTitle(){const{schema:e,registry:t}=this.props,{translateString:r}=t;return Fm(e,[pd,"title"],Fm(e,[pd,"description"],r(vR.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}=_d(r,n.globalUiOptions);return!1!==o&&(o=void 0===t.maxItems||e.length<t.maxItems),o}_getNewFormDataRow=()=>{const{schema:e,registry:t}=this.props,{schemaUtils:r}=t;let n=e.items;return TN(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)};_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?gv(a,[r],n[e]):r>=t&&gv(a,[r+1],n[e])}}const i={key:gU(),item:this._getNewFormDataRow()},s=[...o];void 0!==t?s.splice(t,0,i):s.push(i),this.setState({keyedFormData:s,updatedKeyedFormData:!0},(()=>r(wU(s),a)))}onAddClick=e=>{this._handleAddClick(e)};onAddIndexClick=e=>t=>{this._handleAddClick(t,e)};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?gv(a,[r],n[t]):r>e&&gv(a,[r+1],n[t])}}const i={key:gU(),item:pA(o[e].item)},s=[...o];void 0!==e?s.splice(e+1,0,i):s.push(i),this.setState({keyedFormData:s,updatedKeyedFormData:!0},(()=>r(wU(s),a)))};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?gv(a,[r],n[t]):r>e&&gv(a,[r-1],n[t])}}const i=o.filter(((t,r)=>r!==e));this.setState({keyedFormData:i,updatedKeyedFormData:!0},(()=>r(wU(i),a)))};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?gv(a,[t],o[e]):n==t?gv(a,[e],o[t]):gv(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(wU(s),a)))};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)};onSelectChange=e=>{const{onChange:t,idSchema:r}=this.props;t(e,void 0,r&&r.$id)};render(){const{schema:e,uiSchema:t,idSchema:r,registry:n}=this.props,{schemaUtils:o,translateString:a}=n;if(!(pd in e)){const o=wA("UnsupportedFieldTemplate",n,_d(t));return NA.jsx(o,{schema:e,idSchema:r,reason:a(vR.MissingItems),registry:n})}return o.isMultiSelect(e)?this.renderMultiSelect():YN(t)?this.renderCustomWidget():TN(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:y}=this.state,v=e.title||a||o,{schemaUtils:g,formContext:b}=u,w=_d(t),S=ef(e.items)?e.items:{},x=g.retrieveSchema(S),$=wU(this.state.keyedFormData),_=this.canAddItem($),k={canAdd:_,items:y.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:v?`${v}-${a+1}`:void 0,canAdd:_,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:y.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:v,formContext:b,formData:$,rawErrors:h,registry:u},E=wA("ArrayFieldTemplate",u,w);return NA.jsx(E,{...k})}renderCustomWidget(){const{schema:e,idSchema:t,uiSchema:r,disabled:n=!1,readonly:o=!1,autofocus:a=!1,required:i=!1,hideError:s,placeholder:l,onBlur:c,onFocus:u,formData:d=[],registry:f,rawErrors:p,name:m}=this.props,{widgets:h,formContext:y,globalUiOptions:v,schemaUtils:g}=f,{widget:b,title:w,...S}=_d(r,v),x=JA(e,b,h),$=w??e.title??m,_=g.getDisplayLabel(e,r,v);return NA.jsx(x,{id:t.$id,name:m,multiple:!0,onChange:this.onSelectChange,onBlur:c,onFocus:u,options:S,schema:e,uiSchema:r,registry:f,value:d,disabled:n,readonly:o,hideError:s,required:i,label:$,hideLabel:!_,placeholder:l,formContext:y,autofocus:a,rawErrors:p})}renderMultiSelect(){const{schema:e,idSchema:t,uiSchema:r,formData:n=[],disabled:o=!1,readonly:a=!1,autofocus:i=!1,required:s=!1,placeholder:l,onBlur:c,onFocus:u,registry:d,rawErrors:f,name:p}=this.props,{widgets:m,schemaUtils:h,formContext:y,globalUiOptions:v}=d,g=BN(h.retrieveSchema(e.items,n),r),{widget:b="select",title:w,...S}=_d(r,v),x=JA(e,b,m),$=w??e.title??p,_=h.getDisplayLabel(e,r,v);return NA.jsx(x,{id:t.$id,name:p,multiple:!0,onChange:this.onSelectChange,onBlur:c,onFocus:u,options:{...S,enumOptions:g},schema:e,uiSchema:r,registry:d,value:n,disabled:o,readonly:a,required:s,label:$,hideLabel:!_,placeholder:l,formContext:y,autofocus:i,rawErrors:f})}renderFiles(){const{schema:e,uiSchema:t,idSchema:r,name:n,disabled:o=!1,readonly:a=!1,autofocus:i=!1,required:s=!1,onBlur:l,onFocus:c,registry:u,formData:d=[],rawErrors:f}=this.props,{widgets:p,formContext:m,globalUiOptions:h,schemaUtils:y}=u,{widget:v="files",title:g,...b}=_d(t,h),w=JA(e,v,p),S=g??e.title??n,x=y.getDisplayLabel(e,t,h);return NA.jsx(w,{options:b,id:r.$id,name:n,multiple:!0,onChange:this.onSelectChange,onBlur:l,onFocus:c,schema:e,uiSchema:t,value:d,disabled:o,readonly:a,required:s,registry:u,formContext:m,autofocus:i,rawErrors:f,label:S,hideLabel:!x})}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:y}=this.props,{keyedFormData:v}=this.state;let{formData:g=[]}=this.props;const b=e.title||l||s,w=_d(t),{schemaUtils:S,formContext:x}=p,$=(ef(e.items)?e.items:[]).map(((e,t)=>S.retrieveSchema(e,r[t]))),_=ef(e.additionalItems)?S.retrieveSchema(e.additionalItems,r):null;(!g||g.length<$.length)&&(g=g||[],g=g.concat(new Array($.length-g.length)));const k=this.canAddItem(g)&&!!_,E={canAdd:k,className:"field field-array field-array-fixed-items",disabled:c,idSchema:i,formData:r,items:v.map(((r,l)=>{const{key:c,item:u}=r,f=u,p=l>=$.length,w=(p&&ef(e.additionalItems)?S.retrieveSchema(e.additionalItems,f):$[l])||{},x=i.$id+a+l,_=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:k,canRemove:p,canMoveUp:l>=$.length+1,canMoveDown:p&&l<g.length-1,itemSchema:w,itemData:f,itemUiSchema:E,itemIdSchema:_,itemErrorSchema:C,autofocus:d&&0===l,onBlur:m,onFocus:h,rawErrors:y,totalItems:v.length})})),onAddClick:this.onAddClick,readonly:u,required:f,registry:p,schema:e,uiSchema:t,title:b,formContext:x,errorSchema:n,rawErrors:y},C=wA("ArrayFieldTemplate",p,w);return NA.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:y,totalItems:v,title:g}=e,{disabled:b,hideError:w,idPrefix:S,idSeparator:x,readonly:$,uiSchema:_,registry:k,formContext:E}=this.props,{fields:{ArraySchemaField:C,SchemaField:j},globalUiOptions:P}=k,O=C||j,{orderable:N=!0,removable:A=!0,copyable:R=!1}=_d(_,P),T={moveUp:N&&i,moveDown:N&&s,copy:R&&o,remove:A&&a,toolbar:!1};return T.toolbar=Object.keys(T).some((e=>T[e])),{children:NA.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:k,disabled:b,readonly:$,hideError:w,autofocus:p,rawErrors:y}),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:v,key:t,onAddIndexClick:this.onAddIndexClick,onCopyIndexClick:this.onCopyIndexClick,onDropIndexClick:this.onDropIndexClick,onReorderClick:this.onReorderClick,readonly:$,registry:k,schema:l,uiSchema:u}}}function xU(e){const{schema:t,name:r,uiSchema:n,idSchema:o,formData:a,registry:i,required:s,disabled:l,readonly:c,hideError:u,autofocus:d,title:f,onChange:p,onFocus:m,onBlur:h,rawErrors:y}=e,{title:v}=t,{widgets:g,formContext:b,translateString:w,globalUiOptions:S}=i,{widget:x="checkbox",title:$,label:_=!0,...k}=_d(n,S),E=JA(t,x,g),C=w(vR.YesLabel),j=w(vR.NoLabel);let P;const O=$??v??f??r;if(Array.isArray(t.oneOf))P=BN({oneOf:t.oneOf.map((e=>{if(ef(e))return{...e,title:e.title||(!0===e.const?C:j)}})).filter((e=>e))},n);else{const e=t,r=t.enum??[!0,!1];P=!e.enumNames&&2===r.length&&r.every((e=>"boolean"==typeof e))?[{value:r[0],label:r[0]?C:j},{value:r[1],label:r[1]?C:j}]:BN({enum:r,enumNames:e.enumNames},n)}return NA.jsx(E,{options:{...k,enumOptions:P},schema:t,uiSchema:n,id:o.$id,name:r,onChange:p,onFocus:m,onBlur:h,label:O,hideLabel:!_,value:a,required:s,disabled:l,readonly:c,hideError:u,registry:i,formContext:b,autofocus:d,rawErrors:y})}class $U extends L.Component{constructor(e){super(e);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(!fm(e.options,n)){const{registry:{schemaUtils:e}}=this.props;i={selectedOption:a,retrievedOptions:n.map((t=>e.retrieveSchema(t,r)))}}if(!fm(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=vN(n);return o.getClosestMatchingOption(t,r,e,a)}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())}))};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:y,retrievedOptions:v}=this.state,{widget:g="select",placeholder:b,autofocus:w,autocomplete:S,title:x=l.title,...$}=_d(c,p),_=JA({type:"number"},g,u),k=Fm(r,ud,[]),E=Sy(r,[ud]),C=m.getDisplayLabel(l,c,p),j=y>=0&&v[y]||null;let P;if(j){const{required:e}=l;P=e?SN({required:e},j):j}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;y>=0&&O.length>y&&(N=O[y]);const A=x?vR.TitleOptionPrefix:vR.OptionPrefix,R=x?[x]:[],T=v.map(((e,t)=>{const{title:r=e.title}=_d(O[t]);return{label:r||f(A,R.concat(String(t+1))),value:t}}));return NA.jsxs("div",{className:"panel panel-default panel-body",children:[NA.jsx("div",{className:"form-group",children:NA.jsx(_,{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||Vm(T),multiple:!1,rawErrors:k,errorSchema:E,value:y>=0?y:void 0,options:{enumOptions:T,...$},registry:s,formContext:n,placeholder:b,autocomplete:S,autofocus:w,label:x??e,hideLabel:!C,readonly:i})}),P&&"null"!==P.type&&NA.jsx(h,{...this.props,schema:P,uiSchema:N})]})}}const _U=/\.([0-9]*0)*$/,kU=/[0.]0*$/;function EU(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(_U)?td(e.replace(kU,"")):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 NA.jsx(s,{...e,formData:l,onChange:c})}function CU(){return CU=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},CU.apply(this,arguments)}const jU=["children","options"];var PU,OU;!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"}(PU||(PU={})),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"}(OU||(OU={}));const NU=["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"}),AU={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},RU=["style","script"],TU=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,IU=/mailto:/i,MU=/\n{2,}$/,FU=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,DU=/^ *> ?/gm,zU=/^ {2,}\n/,LU=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,VU=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,BU=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,UU=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,WU=/^(?:\n *)*\n/,qU=/\r\n?/g,KU=/^\[\^([^\]]+)](:.*)\n/,HU=/^\[\^([^\]]+)]/,GU=/\f/g,QU=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,YU=/^\s*?\[(x|\s)\]/,JU=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,XU=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,ZU=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,eW=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,tW=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,rW=/^<!--[\s\S]*?(?:-->)/,nW=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,oW=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,aW=/^\{.*\}$/,iW=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,sW=/^<([^ >]+@[^ >]+)>/,lW=/^<([^ >]+:\/[^ >]+)>/,cW=/-([a-z])?/gi,uW=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,dW=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,fW=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,pW=/^\[([^\]]*)\] ?\[([^\]]*)\]/,mW=/(\[|\])/g,hW=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,yW=/\t/g,vW=/^ *\| */,gW=/(^ *\||\| *$)/g,bW=/ *$/,wW=/^ *:-+: *$/,SW=/^ *:-+ *$/,xW=/^ *-+: *$/,$W=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,_W=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,kW=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,EW=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,CW=/^\\([^0-9A-Za-z\s])/,jW=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,PW=/^\n+/,OW=/^([ \t]*)/,NW=/\\([^\\])/g,AW=/ *\n+$/,RW=/(?:^|\n)( *)$/,TW="(?:\\d+\\.)",IW="(?:[*+-])";function MW(e){return"( *)("+(1===e?TW:IW)+") +"}const FW=MW(1),DW=MW(2);function zW(e){return new RegExp("^"+(1===e?FW:DW))}const LW=zW(1),VW=zW(2);function BW(e){return new RegExp("^"+(1===e?FW:DW)+"[^\\n]*(?:\\n(?!\\1"+(1===e?TW:IW)+" )[^\\n]*)*(\\n|$)","gm")}const UW=BW(1),WW=BW(2);function qW(e){const t=1===e?TW:IW;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const KW=qW(1),HW=qW(2);function GW(e,t){const r=1===t,n=r?KW:HW,o=r?UW:WW,a=r?LW:VW;return{match(e,t,r){const o=RW.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(MU,"\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(AW,"\n\n")):(n.inline=!0,m=c.replace(AW,""));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 QW=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,YW=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,JW=[FU,VU,BU,JU,ZU,XU,rW,uW,UW,KW,WW,HW],XW=[...JW,/^[^\n]+(?: \n|\n{2,})/,eW,oW];function ZW(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 eq(e){return xW.test(e)?"right":wW.test(e)?"center":SW.test(e)?"left":null}function tq(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(bW,"")),a[a.length-1].push(e))})),a}function rq(e,t,r){r.inline=!0;const n=tq(e[1],t,r),o=e[2].replace(gW,"").split("|").map(eq),a=function(e,t,r){return e.trim().split("\n").map((function(e){return tq(e,t,r)}))}(e[3],t,r);return r.inline=!1,{align:o,cells:a,header:n,type:"25"}}function nq(e,t){return null==e.align[t]?{}:{textAlign:e.align[t]}}function oq(e){return function(t,r){return r.inline?e.exec(t):null}}function aq(e){return function(t,r){return r.inline||r.simple?e.exec(t):null}}function iq(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function sq(e){return function(t){return e.exec(t)}}function lq(e,t,r){if(t.inline||t.simple)return null;if(r&&!r.endsWith("\n"))return null;let n="";e.split("\n").every((e=>!JW.some((t=>t.test(e)))&&(n+=e+"\n",e.trim())));const o=n.trimEnd();return""==o?null:[n,o]}function cq(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 uq(e){return e.replace(NW,"$1")}function dq(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 fq(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 pq(e,t,r){return r.inline=!1,e(t,r)}const mq=(e,t,r)=>({children:dq(t,e[1],r)});function hq(){return{}}function yq(){return null}function vq(...e){return e.filter(Boolean).join(" ")}function gq(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 bq=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,jU);return L.cloneElement(function(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||ZW,t.namedCodesToUnicode=t.namedCodesToUnicode?CU({},AU,t.namedCodesToUnicode):AU;const r=t.createElement||L.createElement;function n(e,n,...o){const a=gq(t.overrides,`${e}.props`,{});return r(function(e,t){const r=gq(t,e);return r?"function"==typeof r||"object"==typeof r&&"render"in r?r:gq(t,`${e}.component`,e):e}(e,t.overrides),CU({},n,a,{className:vq(null==n?void 0:n.className,a.className)||void 0}),...o)}function o(e){e=e.replace(QU,"");let r=!1;t.forceInline?r=!0:t.forceBlock||(r=!1===hW.test(e));const o=u(c(r?e:`${e.trimEnd().replace(PW,"")}\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(TU);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(nW)&&(e=e.replace(cW,(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=NU[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?cq(t):(t.match(aW)&&(t=t.slice(1,t.length-1)),"true"===t||"false"!==t&&t)}(a,i);"string"==typeof l&&(eW.test(l)||oW.test(l))&&(e[s]=L.cloneElement(o(l.trim()),{key:r}))}else"style"!==t&&(e[NU[t]||t]=!0);return e}),{}):null}const i=[],s={},l={0:{match:iq(FU),order:1,parse:(e,t,r)=>({children:t(e[0].replace(DU,""),r)}),render:(e,t,r)=>n("blockquote",{key:r.key},t(e.children,r))},1:{match:sq(zU),order:1,parse:hq,render:(e,t,r)=>n("br",{key:r.key})},2:{match:iq(LU),order:1,parse:hq,render:(e,t,r)=>n("hr",{key:r.key})},3:{match:iq(BU),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",CU({},e.attrs,{className:e.lang?`lang-${e.lang}`:""}),e.text))},4:{match:iq(VU),order:0,parse:e=>({attrs:a(e[3]||""),lang:e[2]||void 0,text:e[4],type:"3"})},5:{match:aq(UU),order:3,parse:e=>({text:e[2]}),render:(e,t,r)=>n("code",{key:r.key},e.text)},6:{match:iq(KU),order:0,parse:e=>(i.push({footnote:e[2],identifier:e[1]}),{}),render:yq},7:{match:oq(HU),order:1,parse:e=>({target:`#${t.slugify(e[1])}`,text:e[1]}),render:(e,t,r)=>n("a",{key:r.key,href:cq(e.target)},n("sup",{key:r.key},e.text))},8:{match:oq(YU),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:iq(t.enforceAtxHeadings?XU:JU),order:1,parse:(e,r,n)=>({children:dq(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:iq(ZU),order:0,parse:(e,t,r)=>({children:dq(t,e[1],r),level:"="===e[2]?1:2,type:"9"})},11:{match:sq(eW),order:1,parse(e,t,r){const[,n]=e[3].match(OW),o=new RegExp(`^${n}`,"gm"),i=e[3].replace(o,""),s=(l=i,XW.some((e=>e.test(l)))?pq:dq);var l;const c=e[1].toLowerCase(),u=-1!==RU.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,CU({key:r.key},e.attrs),e.text||t(e.children,r))},13:{match:sq(oW),order:1,parse:e=>({attrs:a(e[2]||""),tag:e[1]}),render:(e,t,r)=>n(e.tag,CU({},e.attrs,{key:r.key}))},12:{match:sq(rW),order:1,parse:()=>({}),render:yq},14:{match:aq(YW),order:1,parse:e=>({alt:e[1],target:uq(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:cq(e.target)})},15:{match:oq(QW),order:3,parse:(e,t,r)=>({children:fq(t,e[1],r),target:uq(e[2]),title:e[3]}),render:(e,t,r)=>n("a",{key:r.key,href:cq(e.target),title:e.title},t(e.children,r))},16:{match:oq(lW),order:0,parse:e=>({children:[{text:e[1],type:"27"}],target:e[1],type:"15"})},17:{match:(e,t)=>t.inAnchor?null:oq(iW)(e,t),order:0,parse:e=>({children:[{text:e[1],type:"27"}],target:e[1],title:void 0,type:"15"})},18:{match:oq(sW),order:0,parse(e){let t=e[1],r=e[1];return IU.test(r)||(r="mailto:"+r),{children:[{text:t.replace("mailto:",""),type:"27"}],target:r,type:"15"}}},20:GW(n,1),33:GW(n,2),19:{match:iq(WU),order:3,parse:hq,render:()=>"\n"},21:{match:lq,order:3,parse:mq,render:(e,t,r)=>n("p",{key:r.key},t(e.children,r))},22:{match:oq(dW),order:0,parse:e=>(s[e[1]]={target:e[2],title:e[4]},{}),render:yq},23:{match:aq(fW),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:cq(s[e.ref].target),title:s[e.ref].title})},24:{match:oq(pW),order:0,parse:(e,t,r)=>({children:t(e[1],r),fallbackChildren:t(e[0].replace(mW,"\\$1"),r),ref:e[2]}),render:(e,t,r)=>s[e.ref]?n("a",{key:r.key,href:cq(s[e.ref].target),title:s[e.ref].title},t(e.children,r)):n("span",{key:r.key},t(e.fallbackChildren,r))},25:{match:iq(uW),order:1,parse:rq,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:nq(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:nq(e,a)},t(o,r))})))}))))},26:{match:function(e,t){return t.inTable?(t.inline=!0,vW.exec(e)):null},order:1,parse:function(){return{type:"26"}},render:()=>" | "},27:{match:sq(jW),order:4,parse:e=>({text:e[0].replace(tW,((e,r)=>t.namedCodesToUnicode[r]?t.namedCodesToUnicode[r]:e))}),render:e=>e.text},28:{match:aq($W),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:aq(_W),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:aq(CW),order:1,parse:e=>({text:e[1],type:"27"})},31:{match:aq(kW),order:3,parse:mq,render:(e,t,r)=>n("mark",{key:r.key},t(e.children,r))},32:{match:aq(EW),order:3,parse:mq,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(qU,"\n").replace(GU,"").replace(yW," ")}(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)};class wq extends L.Component{state={wasPropertyKeyModified:!1,additionalProperties:{}};isRequired(e){const{schema:t}=this.props;return Array.isArray(t.required)&&-1!==t.required.indexOf(e)}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)};onDropPropertyClick=e=>t=>{t.preventDefault();const{onChange:r,formData:n}=this.props,o={...n};var a,i;i=e,null==(a=o)||ay(a,i),r(o)};getAvailableKey=(e,t)=>{const{uiSchema:r,registry:n}=this.props,{duplicateKeySuffixSeparator:o="-"}=_d(r,n.globalUiOptions);let a=0,i=e;for(;jy(t,i);)i=`${e}${o}${++a}`;return i};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})};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(vR.NewStringDefault)}}handleAddClick=e=>()=>{if(!e.additionalProperties)return;const{formData:t,onChange:r,registry:n}=this.props,o={...t};let a,i,s;if(ef(e.additionalProperties)){a=e.additionalProperties.type,i=e.additionalProperties.const,s=e.additionalProperties.default;let r=e.additionalProperties;if(bd in r){const{schemaUtils:e}=n;r=e.retrieveSchema({$ref:r[bd]},t),a=r.type,i=r.const,s=r.default}a||!(ad in r)&&!(hd in r)||(a="object")}gv(o,this.getAvailableKey("newKey",o),i??s??this.getDefaultValue(a)),r(o)};render(){const{schema:e,uiSchema:t={},formData:r,errorSchema:n,idSchema:o,name:a,required:i=!1,disabled:s,readonly:l,hideError:c,idPrefix:u,idSeparator:d,onBlur:f,onFocus:p,registry:m,title:h}=this.props,{fields:y,formContext:v,schemaUtils:g,translateString:b,globalUiOptions:w}=m,{SchemaField:S}=y,x=g.retrieveSchema(e,r),$=_d(t,w),{properties:_={}}=x,k=$.title??x.title??h??a,E=$.description??x.description;let C;try{C=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(_),$.order)}catch(e){return NA.jsxs("div",{children:[NA.jsx("p",{className:"config-error",style:{color:"red"},children:NA.jsx(bq,{options:{disableParsingRawHTML:!0},children:b(vR.InvalidObjectField,[a||"root",e.message])})}),NA.jsx("pre",{children:JSON.stringify(x)})]})}const j=wA("ObjectFieldTemplate",m,$),P={title:!1===$.label?"":k,description:!1===$.label?void 0:E,properties:C.map((e=>{const a=jy(x,[yd,e,rd]),h=a?t.additionalProperties:t[e],y="hidden"===_d(h).widget,g=Fm(o,[e],{});return{content:NA.jsx(S,{name:e,required:this.isRequired(e),schema:Fm(x,[yd,e],{}),uiSchema:h,errorSchema:Fm(n,e),idSchema:g,idPrefix:u,idSeparator:d,formData:Fm(r,e),formContext:v,wasPropertyKeyModified:this.state.wasPropertyKeyModified,onKeyChange:this.onKeyChange(e),onChange:this.onPropertyChange(e,a),onBlur:f,onFocus:p,registry:m,disabled:s,readonly:l,hideError:c,onDropPropertyClick:this.onDropPropertyClick},e),name:e,readonly:l,disabled:s,required:i,hidden:y}})),readonly:l,disabled:s,required:i,idSchema:o,uiSchema:t,errorSchema:n,schema:x,formData:r,formContext:v,registry:m};return NA.jsx(j,{...P,onAddClick:this.handleAddClick})}}const Sq={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function xq(e){const{schema:t,idSchema:r,uiSchema:n,formData:o,errorSchema:a,idPrefix:i,idSeparator:s,name:l,onChange:c,onKeyChange:u,onDropPropertyClick:d,required:f,registry:p,wasPropertyKeyModified:m=!1}=e,{formContext:h,schemaUtils:y,globalUiOptions:v}=p,g=_d(n,v),b=wA("FieldTemplate",p,g),w=wA("DescriptionFieldTemplate",p,g),S=wA("FieldHelpTemplate",p,g),x=wA("FieldErrorTemplate",p,g),$=y.retrieveSchema(t,o),_=r[dd],k=FN(y.toIdSchema($,_,o,i,s),r),E=L.useCallback(((e,t,r)=>c(e,t,r||_)),[_,c]),C=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=wN(e),l=Array.isArray(s)?s[0]:s||"",c=e.$id;let u=Sq[l];return c&&c in a&&(u=c),u||!e.anyOf&&!e.oneOf?u in a?a[u]:()=>{const o=wA("UnsupportedFieldTemplate",n,t);return NA.jsx(o,{schema:e,idSchema:r,reason:i(vR.UnknownFieldType,[String(e.type)]),registry:n})}:()=>null}($,g,k,p),j=Boolean(g.disabled??e.disabled),P=Boolean(g.readonly??(e.readonly||e.schema.readOnly||$.readOnly)),O=g.hideError,N=void 0===O?e.hideError:Boolean(O),A=Boolean(g.autofocus??e.autofocus);if(0===Object.keys($).length)return null;const R=y.getDisplayLabel($,n,v),{__errors:T,...I}=a||{},M=Sy(n,["ui:classNames","classNames","ui:style"]);$d in M&&(M[$d]=Sy(M[$d],["classNames","style"]));const F=NA.jsx(C,{...e,onChange:E,idSchema:k,schema:$,uiSchema:M,disabled:j,readonly:P,hideError:N,autofocus:A,errorSchema:I,formContext:h,rawErrors:T}),D=k[dd];let z;z=m||rd in $?l:g.title||e.schema.title||$.title||e.title||l;const V=g.description||e.schema.description||$.description||"",B=g.enableMarkdownInDescription?NA.jsx(bq,{options:{disableParsingRawHTML:!0},children:V}):V,U=g.help,W="hidden"===g.widget,q=["form-group","field",`field-${wN($)}`];!N&&T&&T.length>0&&q.push("field-error has-error has-danger"),n?.classNames&&q.push(n.classNames),g.classNames&&q.push(g.classNames);const K=NA.jsx(S,{help:U,idSchema:k,schema:$,uiSchema:n,hasErrors:!N&&T&&T.length>0,registry:p}),H=N||($.anyOf||$.oneOf)&&!y.isSelect($)?void 0:NA.jsx(x,{errors:T,errorSchema:a,idSchema:k,schema:$,uiSchema:n,registry:p}),G={description:NA.jsx(w,{id:ZA(D),description:B,schema:$,uiSchema:n,registry:p}),rawDescription:V,help:K,rawHelp:"string"==typeof U?U:void 0,errors:H,rawErrors:N?void 0:T,id:D,label:z,hidden:W,onChange:c,onKeyChange:u,onDropPropertyClick:d,required:f,disabled:j,readonly:P,hideError:N,displayLabel:R,classNames:q.join(" ").trim(),style:g.style,formContext:h,formData:o,schema:$,uiSchema:n,registry:p},Q=p.fields.AnyOfField,Y=p.fields.OneOfField,J=n?.["ui:field"]&&!0===n?.["ui:fieldReplacesAnyOrOneOf"];return NA.jsx(b,{...G,children:NA.jsxs(NA.Fragment,{children:[F,$.anyOf&&!J&&!y.isSelect($)&&NA.jsx(Q,{name:l,disabled:j,readonly:P,hideError:N,errorSchema:a,formData:o,formContext:h,idPrefix:i,idSchema:k,idSeparator:s,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:$.anyOf.map((e=>y.retrieveSchema(ef(e)?e:{},o))),registry:p,required:f,schema:$,uiSchema:n}),$.oneOf&&!J&&!y.isSelect($)&&NA.jsx(Y,{name:l,disabled:j,readonly:P,hideError:N,errorSchema:a,formData:o,formContext:h,idPrefix:i,idSchema:k,idSeparator:s,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:$.oneOf.map((e=>y.retrieveSchema(ef(e)?e:{},o))),registry:p,required:f,schema:$,uiSchema:n})]})})}class $q extends L.Component{shouldComponentUpdate(e){return!fm(this.props,e)}render(){return NA.jsx(xq,{...this.props})}}function _q(e){const{schema:t,name:r,uiSchema:n,idSchema:o,formData:a,required:i,disabled:s=!1,readonly:l=!1,autofocus:c=!1,onChange:u,onBlur:d,onFocus:f,registry:p,rawErrors:m,hideError:h}=e,{title:y,format:v}=t,{widgets:g,formContext:b,schemaUtils:w,globalUiOptions:S}=p,x=w.isSelect(t)?BN(t,n):void 0;let $=x?"select":"text";v&&function(e,t,r={}){try{return JA(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}}(t,v,g)&&($=v);const{widget:_=$,placeholder:k="",title:E,...C}=_d(n),j=w.getDisplayLabel(t,n,S),P=E??y??r,O=JA(t,_,g);return NA.jsx(O,{options:{...C,enumOptions:x},schema:t,uiSchema:n,id:o.$id,name:r,label:P,hideLabel:!j,hideError:h,value:a,onChange:u,onBlur:d,onFocus:f,required:i,disabled:s,readonly:l,formContext:b,autofocus:c,registry:p,placeholder:k,rawErrors:m})}function kq(e){const{formData:t,onChange:r}=e;return L.useEffect((()=>{void 0===t&&r(null)}),[t,r]),null}function Eq(e){const{idSchema:t,description:r,registry:n,schema:o,uiSchema:a}=e,i=_d(a,n.globalUiOptions),{label:s=!0}=i;if(!r||!s)return null;const l=wA("DescriptionFieldTemplate",n,i);return NA.jsx(l,{id:ZA(t),description:r,schema:o,uiSchema:a,registry:n})}function Cq(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:y,MoveDownButton:v,MoveUpButton:g,RemoveButton:b}=m.templates.ButtonTemplates,w={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};return NA.jsxs("div",{className:r,children:[NA.jsx("div",{className:o?"col-xs-9":"col-xs-12",children:t}),o&&NA.jsx("div",{className:"col-xs-3 array-item-toolbox",children:NA.jsxs("div",{className:"btn-group",style:{display:"flex",justifyContent:"space-around"},children:[(i||a)&&NA.jsx(g,{style:w,disabled:n||p||!i,onClick:f(c,c-1),uiSchema:h,registry:m}),(i||a)&&NA.jsx(v,{style:w,disabled:n||p||!a,onClick:f(c,c+1),uiSchema:h,registry:m}),l&&NA.jsx(y,{style:w,disabled:n||p,onClick:u(c),uiSchema:h,registry:m}),s&&NA.jsx(b,{style:w,disabled:n||p,onClick:d(c),uiSchema:h,registry:m})]})})]})}function jq(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=_d(a),m=wA("ArrayFieldDescriptionTemplate",c,p),h=wA("ArrayFieldItemTemplate",c,p),y=wA("ArrayFieldTitleTemplate",c,p),{ButtonTemplates:{AddButton:v}}=c.templates;return NA.jsxs("fieldset",{className:r,id:o.$id,children:[NA.jsx(y,{idSchema:o,title:p.title||f,required:u,schema:d,uiSchema:a,registry:c}),NA.jsx(m,{idSchema:o,description:p.description||d.description,schema:d,uiSchema:a,registry:c}),NA.jsx("div",{className:"row array-item-list",children:i&&i.map((({key:e,...t})=>NA.jsx(h,{...t},e)))}),t&&NA.jsx(v,{className:"array-item-add",onClick:s,disabled:n||l,uiSchema:a,registry:c})]})}function Pq(e){const{idSchema:t,title:r,schema:n,uiSchema:o,required:a,registry:i}=e,s=_d(o,i.globalUiOptions),{label:l=!0}=s;if(!r||!l)return null;const c=wA("TitleFieldTemplate",i,s);return NA.jsx(c,{id:nR(t),title:r,required:a,schema:n,uiSchema:o,registry:i})}function Oq(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:y,type:v,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,...vA(f,v,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]),_=L.useCallback((({target:e})=>s(t,e&&e.value)),[s,t]),k=L.useCallback((({target:e})=>l(t,e&&e.value)),[l,t]);return NA.jsxs(NA.Fragment,{children:[NA.jsx("input",{id:t,name:t,className:"form-control",readOnly:o,disabled:a,autoFocus:i,value:x,...S,list:f.examples?tR(t):void 0,onChange:u||$,onBlur:_,onFocus:k,"aria-describedby":oR(t,!!f.examples)}),Array.isArray(f.examples)&&NA.jsx("datalist",{id:tR(t),children:f.examples.concat(f.default&&!f.examples.includes(f.default)?[f.default]:[]).map((e=>NA.jsx("option",{value:e},e)))},`datalist_${t}`)]})}function Nq({uiSchema:e}){const{submitText:t,norender:r,props:n={}}=bA(e);return r?null:NA.jsx("div",{children:NA.jsx("button",{type:"submit",...n,className:`btn btn-info ${n.className||""}`,children:t})})}function Aq(e){const{iconType:t="default",icon:r,className:n,uiSchema:o,registry:a,...i}=e;return NA.jsx("button",{type:"button",className:`btn btn-${t} ${n}`,...i,children:NA.jsx("i",{className:`glyphicon glyphicon-${r}`})})}function Rq(e){const{registry:{translateString:t}}=e;return NA.jsx(Aq,{title:t(vR.CopyButton),className:"array-item-copy",...e,icon:"copy"})}function Tq(e){const{registry:{translateString:t}}=e;return NA.jsx(Aq,{title:t(vR.MoveDownButton),className:"array-item-move-down",...e,icon:"arrow-down"})}function Iq(e){const{registry:{translateString:t}}=e;return NA.jsx(Aq,{title:t(vR.MoveUpButton),className:"array-item-move-up",...e,icon:"arrow-up"})}function Mq(e){const{registry:{translateString:t}}=e;return NA.jsx(Aq,{title:t(vR.RemoveButton),className:"array-item-remove",...e,iconType:"danger",icon:"remove"})}function Fq({className:e,onClick:t,disabled:r,registry:n}){const{translateString:o}=n;return NA.jsx("div",{className:"row",children:NA.jsx("p",{className:`col-xs-3 col-xs-offset-9 text-right ${e}`,children:NA.jsx(Aq,{iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:o(vR.AddButton),onClick:t,disabled:r,registry:n})})})}function Dq(e){const{id:t,description:r}=e;return r?"string"==typeof r?NA.jsx("p",{id:t,className:"field-description",children:r}):NA.jsx("div",{id:t,className:"field-description",children:r}):null}function zq({errors:e,registry:t}){const{translateString:r}=t;return NA.jsxs("div",{className:"panel panel-danger errors",children:[NA.jsx("div",{className:"panel-heading",children:NA.jsx("h3",{className:"panel-title",children:r(vR.ErrorsLabel)})}),NA.jsx("ul",{className:"list-group",children:e.map(((e,t)=>NA.jsx("li",{className:"list-group-item text-danger",children:e.stack},t)))})]})}const Lq="*";function Vq(e){const{label:t,required:r,id:n}=e;return t?NA.jsxs("label",{className:"control-label",htmlFor:n,children:[t,r&&NA.jsx("span",{className:"required",children:Lq})]}):null}function Bq(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=wA("WrapIfAdditionalTemplate",u,_d(d));return s?NA.jsx("div",{className:"hidden",children:n}):NA.jsxs(f,{...e,children:[c&&NA.jsx(Vq,{label:r,required:l,id:t}),c&&i?i:null,n,o,a]})}function Uq(e){const{errors:t=[],idSchema:r}=e;if(0===t.length)return null;const n=eR(r);return NA.jsx("div",{children:NA.jsx("ul",{id:n,className:"error-detail bs-callout bs-callout-info",children:t.filter((e=>!!e)).map(((e,t)=>NA.jsx("li",{className:"text-danger",children:e},t)))})})}function Wq(e){const{idSchema:t,help:r}=e;if(!r)return null;const n=rR(t);return"string"==typeof r?NA.jsx("p",{id:n,className:"help-block",children:r}):NA.jsx("div",{id:n,className:"help-block",children:r})}function qq(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=_d(f),m=wA("TitleFieldTemplate",l,p),h=wA("DescriptionFieldTemplate",l,p),{ButtonTemplates:{AddButton:y}}=l.templates;return NA.jsxs("fieldset",{id:o.$id,children:[d&&NA.jsx(m,{id:nR(o),title:d,required:c,schema:u,uiSchema:f,registry:l}),t&&NA.jsx(h,{id:ZA(o),description:t,schema:u,uiSchema:f,registry:l}),i.map((e=>e.content)),kd(u,f,n)&&NA.jsx(y,{className:"object-property-expand",onClick:a(u),disabled:r||s,uiSchema:f,registry:l})]})}const Kq="*";function Hq(e){const{id:t,title:r,required:n}=e;return NA.jsxs("legend",{id:t,children:[r,n&&NA.jsx("span",{className:"required",children:Kq})]})}function Gq(e){const{schema:t,idSchema:r,reason:n,registry:o}=e,{translateString:a}=o;let i=vR.UnsupportedField;const s=[];return r&&r.$id&&(i=vR.UnsupportedFieldWithId,s.push(r.$id)),n&&(i=i===vR.UnsupportedField?vR.UnsupportedFieldWithReason:vR.UnsupportedFieldWithIdAndReason,s.push(n)),NA.jsxs("div",{className:"unsupported-field",children:[NA.jsx("p",{children:NA.jsx(bq,{options:{disableParsingRawHTML:!0},children:a(i,s)})}),t&&NA.jsx("pre",{children:JSON.stringify(t,null,2)})]})}function Qq(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:y}=m.ButtonTemplates,v=h(vR.KeyLabel,[a]);return rd in u?NA.jsx("div",{className:r,style:n,children:NA.jsxs("div",{className:"row",children:[NA.jsx("div",{className:"col-xs-5 form-additional",children:NA.jsxs("div",{className:"form-group",children:[NA.jsx(Vq,{label:v,required:c,id:`${t}-key`}),NA.jsx("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:({target:e})=>i(e&&e.value),defaultValue:a})]})}),NA.jsx("div",{className:"form-additional form-group col-xs-5",children:d}),NA.jsx("div",{className:"col-xs-2",children:NA.jsx(y,{className:"array-item-remove btn-block",style:{border:"0"},disabled:o||l,onClick:s(a),uiSchema:f,registry:p})})]})}):NA.jsx("div",{className:r,style:n,children:d})}function Yq({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 NA.jsx(p,{schema:{type:"integer"},id:f,name:a,className:"form-control",options:{enumOptions:iA(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":oR(o)})}function Jq({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,y]=L.useReducer(((e,t)=>({...e,...t})),sR(d,e));L.useEffect((()=>{const t=cR(h,e);!function(e){return Object.values(e).every((e=>-1!==e))}(h)||t===d?p!==d&&(m(d),y(sR(d,e))):u(t)}),[e,d,u,h,p]);const v=L.useCallback(((e,t)=>{y({[e]:t})}),[]),g=L.useCallback((n=>{if(n.preventDefault(),t||r)return;const o=sR((new Date).toJSON(),e);u(cR(o,e))}),[t,r,e]),b=L.useCallback((e=>{e.preventDefault(),t||r||u(void 0)}),[t,r,u]);return NA.jsxs("ul",{className:"list-inline",children:[hA(h,e,o.yearsRange,o.format).map(((e,o)=>NA.jsx("li",{className:"list-inline-item",children:NA.jsx(Yq,{rootId:a,name:i,select:v,...e,disabled:t,readonly:r,registry:s,onBlur:l,onFocus:c,autofocus:n&&0===o})},o))),("undefined"===o.hideNowButton||!o.hideNowButton)&&NA.jsx("li",{className:"list-inline-item",children:NA.jsx("a",{href:"#",className:"btn btn-info btn-now",onClick:g,children:f(vR.NowLabel)})}),("undefined"===o.hideClearButton||!o.hideClearButton)&&NA.jsx("li",{className:"list-inline-item",children:NA.jsx("a",{href:"#",className:"btn btn-warning btn-clear",onClick:b,children:f(vR.ClearLabel)})})]})}function Xq({time:e=!0,...t}){const{AltDateWidget:r}=t.registry.widgets;return NA.jsx(r,{time:e,...t})}function Zq({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}){const m=wA("DescriptionFieldTemplate",p,r),h=lR(e),y=L.useCallback((e=>f(e.target.checked)),[f]),v=L.useCallback((e=>u(n,e.target.checked)),[u,n]),g=L.useCallback((e=>d(n,e.target.checked)),[d,n]),b=r.description??e.description;return NA.jsxs("div",{className:"checkbox "+(a||i?"disabled":""),children:[!l&&!!b&&NA.jsx(m,{id:ZA(n),description:b,schema:e,uiSchema:t,registry:p}),NA.jsxs("label",{children:[NA.jsx("input",{type:"checkbox",id:n,name:n,checked:void 0!==o&&o,required:h,disabled:a||i,autoFocus:c,onChange:y,onBlur:v,onFocus:g,"aria-describedby":oR(n)}),iR(NA.jsx("span",{children:s}),l)]})]})}function eK({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,lA(t&&t.value,n,a))),[u,e]),m=L.useCallback((({target:t})=>d(e,lA(t&&t.value,n,a))),[d,e]);return NA.jsx("div",{className:"checkboxes",id:e,children:Array.isArray(n)&&n.map(((a,i)=>{const u=uA(a.value,f),d=Array.isArray(o)&&-1!==o.indexOf(a.value),h=t||d||l?"disabled":"",y=NA.jsxs("span",{children:[NA.jsx("input",{type:"checkbox",id:aR(e,i),name:e,checked:u,value:String(i),disabled:t||d||l,autoFocus:s&&0===i,onChange:e=>{e.target.checked?c(fA(i,f,n)):c(cA(i,f,n))},onBlur:p,onFocus:m,"aria-describedby":oR(e)}),NA.jsx("span",{children:a.label})]});return r?NA.jsx("label",{className:`checkbox-inline ${h}`,children:y},i):NA.jsx("div",{className:`checkbox ${h}`,children:NA.jsx("label",{children:y})},i)}))})}function tK(e){const{disabled:t,readonly:r,options:n,registry:o}=e,a=wA("BaseInputTemplate",o,n);return NA.jsx(a,{type:"color",...e,disabled:t||r})}function rK(e){const{onChange:t,options:r,registry:n}=e,o=wA("BaseInputTemplate",n,r),a=L.useCallback((e=>t(e||void 0)),[t]);return NA.jsx(o,{type:"date",...e,onChange:a})}function nK(e){const{onChange:t,value:r,options:n,registry:o}=e,a=wA("BaseInputTemplate",o,n);return NA.jsx(a,{type:"datetime-local",...e,value:pR(r),onChange:e=>{return t((r=e)?new Date(r).toJSON():void 0);var r}})}function oK(e){const{options:t,registry:r}=e,n=wA("BaseInputTemplate",r,t);return NA.jsx(n,{type:"email",...e})}function aK(e,t){return null===e?null:e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}function iK(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=>{"string"==typeof e.target?.result?o({dataURL:aK(e.target.result,t),name:t,size:r,type:n}):o({dataURL:null,name:t,size:r,type:n})},i.readAsDataURL(e)}))}function sK({fileInfo:e,registry:t}){const{translateString:r}=t,{dataURL:n,type:o,name:a}=e;return n?["image/jpeg","image/png"].includes(o)?NA.jsx("img",{src:n,style:{maxWidth:"100%"},className:"file-preview"}):NA.jsxs(NA.Fragment,{children:[" ",NA.jsx("a",{download:`preview-${a}`,href:n,className:"file-download",children:r(vR.PreviewLabel)})]}):null}function lK({filesInfo:e,registry:t,preview:r,onRemove:n,options:o}){if(0===e.length)return null;const{translateString:a}=t,{RemoveButton:i}=wA("ButtonTemplates",t,o);return NA.jsx("ul",{className:"file-info",children:e.map(((e,o)=>{const{name:s,size:l,type:c}=e;return NA.jsxs("li",{children:[NA.jsx(bq,{children:a(vR.FilesInfo,[s,c,String(l)])}),r&&NA.jsx(sK,{fileInfo:e,registry:t}),NA.jsx(i,{onClick:()=>n(o),registry:t})]},o)}))})}function cK(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 uK(e){const{disabled:t,readonly:r,required:n,multiple:o,onChange:a,value:i,options:s,registry:l}=e,c=wA("BaseInputTemplate",l,s),u=L.useCallback((e=>{var t;e.target.files&&(t=e.target.files,Promise.all(Array.from(t).map(iK))).then((e=>{const t=e.map((e=>e.dataURL));a(o?i.concat(t):t[0])}))}),[o,i,a]),d=L.useMemo((()=>cK(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 NA.jsxs("div",{children:[NA.jsx(c,{...e,disabled:t||r,type:"file",required:!i&&n,onChangeOverride:u,value:"",accept:s.accept?String(s.accept):void 0}),NA.jsx(lK,{filesInfo:d,onRemove:f,registry:l,preview:s.filePreview,options:s})]})}function dK({id:e,value:t}){return NA.jsx("input",{type:"hidden",id:e,name:e,value:void 0===t?"":t})}function fK(e){const{options:t,registry:r}=e,n=wA("BaseInputTemplate",r,t);return NA.jsx(n,{type:"password",...e})}function pK({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,lA(e&&e.value,u,p))),[i,c]),h=L.useCallback((({target:e})=>s(c,lA(e&&e.value,u,p))),[s,c]);return NA.jsx("div",{className:"field-radio-group",id:c,children:Array.isArray(u)&&u.map(((e,i)=>{const s=uA(e.value,t),u=Array.isArray(d)&&-1!==d.indexOf(e.value),p=n||u||o?"disabled":"",y=NA.jsxs("span",{children:[NA.jsx("input",{type:"radio",id:aR(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":oR(c)}),NA.jsx("span",{children:e.label})]});return f?NA.jsx("label",{className:`radio-inline ${p}`,children:y},i):NA.jsx("div",{className:`radio ${p}`,children:NA.jsx("label",{children:y})},i)}))})}function mK(e){const{value:t,registry:{templates:{BaseInputTemplate:r}}}=e;return NA.jsxs("div",{className:"field-range-wrapper",children:[NA.jsx(r,{type:"range",...e}),NA.jsx("span",{className:"range-view",children:t})]})}function hK(e,t){return t?Array.from(e.target.options).slice().filter((e=>e.selected)).map((e=>e.value)):e.target.value}function yK({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,y=s?[]:"",v=L.useCallback((e=>{const r=hK(e,s);return d(t,lA(r,p,h))}),[d,t,e,s,p,h]),g=L.useCallback((e=>{const r=hK(e,s);return u(t,lA(r,p,h))}),[u,t,e,s,p,h]),b=L.useCallback((e=>{const t=hK(e,s);return c(lA(t,p,h))}),[c,e,s,p,h]),w=dA(n,p,s),S=!s&&void 0===e.default;return NA.jsxs("select",{id:t,name:t,multiple:s,className:"form-control",value:void 0===w?y:w,required:o,disabled:a||i,autoFocus:l,onBlur:g,onFocus:v,onChange:b,"aria-describedby":oR(t),children:[S&&NA.jsx("option",{value:"",children:f}),Array.isArray(p)&&p.map((({value:e,label:t},r)=>{const n=m&&-1!==m.indexOf(e);return NA.jsx("option",{value:String(r),disabled:n,children:t},r)}))]})}function vK({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 NA.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":oR(e)})}function gK(e){const{options:t,registry:r}=e,n=wA("BaseInputTemplate",r,t);return NA.jsx(n,{...e})}function bK(e){const{onChange:t,options:r,registry:n}=e,o=wA("BaseInputTemplate",n,r),a=L.useCallback((e=>t(e?`${e}:00`:void 0)),[t]);return NA.jsx(o,{type:"time",...e,onChange:a})}function wK(e){const{options:t,registry:r}=e,n=wA("BaseInputTemplate",r,t);return NA.jsx(n,{type:"url",...e})}function SK(e){const{options:t,registry:r}=e,n=wA("BaseInputTemplate",r,t);return NA.jsx(n,{type:"number",...e})}function xK(){return{fields:{AnyOfField:$U,ArrayField:SU,BooleanField:xU,NumberField:EU,ObjectField:wq,OneOfField:$U,SchemaField:$q,StringField:_q,NullField:kq},templates:{ArrayFieldDescriptionTemplate:Eq,ArrayFieldItemTemplate:Cq,ArrayFieldTemplate:jq,ArrayFieldTitleTemplate:Pq,ButtonTemplates:{SubmitButton:Nq,AddButton:Fq,CopyButton:Rq,MoveDownButton:Tq,MoveUpButton:Iq,RemoveButton:Mq},BaseInputTemplate:Oq,DescriptionFieldTemplate:Dq,ErrorListTemplate:zq,FieldTemplate:Bq,FieldErrorTemplate:Uq,FieldHelpTemplate:Wq,ObjectFieldTemplate:qq,TitleFieldTemplate:Hq,UnsupportedFieldTemplate:Gq,WrapIfAdditionalTemplate:Qq},widgets:{AltDateWidget:Jq,AltDateTimeWidget:Xq,CheckboxWidget:Zq,CheckboxesWidget:eK,ColorWidget:tK,DateWidget:rK,DateTimeWidget:nK,EmailWidget:oK,FileWidget:uK,HiddenWidget:dK,PasswordWidget:fK,RadioWidget:pK,RangeWidget:mK,SelectWidget:yK,TextWidget:gK,TextareaWidget:vK,TimeWidget:bK,UpDownWidget:SK,URLWidget:wK},rootSchema:{},formContext:{},translateString:sA}}vK.defaultProps={autofocus:!1,options:{}};let $K=class extends L.Component{formElement;constructor(e){if(super(e),!e.validator)throw new Error("A validator is required for Form functionality to work");this.state=this.getStateFromProps(e,e.formData),this.props.onChange&&!fm(this.state.formData,this.props.formData)&&this.props.onChange(this.state),this.formElement=L.createRef()}getSnapshotBeforeUpdate(e,t){if(!fm(this.props,e)){const r=wR(this.props.formData,e.formData),n=!fm(e.schema,this.props.schema),o=r.length>0||!fm(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:!fm(a,t)}}return{shouldUpdate:!1}}componentDidUpdate(e,t,r){if(r.shouldUpdate){const{nextState:e}=r;fm(e.formData,this.props.formData)||fm(e.formData,t.formData)||!this.props.onChange||this.props.onChange(e),this.setState(e)}}getStateFromProps(e,t,r,n=!1,o=[]){const a=this.state||{},i="schema"in e?e.schema:this.props.schema,s=("uiSchema"in e?e.uiSchema:this.props.uiSchema)||{},l=void 0!==t,c="liveValidate"in e?e.liveValidate:this.props.liveValidate,u=l&&!e.noValidate&&c,d=i,f="experimental_defaultFormStateBehavior"in e?e.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior,p="experimental_customMergeAllOf"in e?e.experimental_customMergeAllOf:this.props.experimental_customMergeAllOf;let m=a.schemaUtils;m&&!m.doesSchemaUtilsDiffer(e.validator,d,f,p)||(m=function(e,t,r={},n){return new oA(e,t,r,n)}(e.validator,d,f,p));const h=m.getDefaultFormState(i,t),y=this.updateRetrievedSchema(r??m.retrieveSchema(i,h));let v,g,b=a.schemaValidationErrors,w=a.schemaValidationErrorSchema;if(u){const e=this.validate(h,i,m,y);v=e.errors,g=void 0===r?e.errorSchema:FN(this.state?.errorSchema,e.errorSchema,"preventDuplicates"),b=v,w=g}else{const t=e.noValidate||n?{errors:[],errorSchema:{}}:e.liveValidate?{errors:a.errors||[],errorSchema:a.errorSchema||{}}:{errors:a.schemaValidationErrors||[],errorSchema:a.schemaValidationErrorSchema||{}};if(v=t.errors,g=t.errorSchema,o.length>0){const e=o.reduce(((e,t)=>(e[t]=void 0,e)),{});g=w=FN(t.errorSchema,e,"preventDuplicates")}}if(e.extraErrors){const t=mR({errorSchema:g,errors:v},e.extraErrors);g=t.errorSchema,v=t.errors}const S=m.toIdSchema(y,s["ui:rootFieldId"],h,e.idPrefix,e.idSeparator);return{schemaUtils:m,schema:i,uiSchema:s,idSchema:S,formData:h,edit:l,errors:v,errorSchema:g,schemaValidationErrors:b,schemaValidationErrorSchema:w,retrievedSchema:y}}shouldComponentUpdate(e,t){return function(e,t,r){const{props:n,state:o}=e;return!fm(n,t)||!fm(o,r)}(this,e,t)}getPreviousCustomValidateErrors(){const{customValidate:e,uiSchema:t}=this.props,r=this.state.formData;let n={};if("function"==typeof e){n=fR(e(r,Qd(r),t))}return n}validate(e,t=this.props.schema,r,n){const o=r||this.state.schemaUtils,{customValidate:a,transformErrors:i,uiSchema:s}=this.props,l=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=wA("ErrorListTemplate",e,_d(o));return t&&t.length?NA.jsx(i,{errors:t,errorSchema:r||{},schema:n,uiSchema:o,formContext:a,registry:e}):null}getUsedFormData=(e,t)=>{if(0===t.length&&"object"!=typeof e)return e;const r=yU(e,t);return Array.isArray(e)?Object.keys(r).map((e=>r[e])):r};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=Fm(t,e);("object"!=typeof r||Vm(r)||Array.isArray(r)&&r.every((e=>"object"!=typeof e)))&&n.push(e)}))})),n);return r(e)};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)};filterErrorsBasedOnSchema(e,t,r){const{retrievedSchema:n,schemaUtils:o}=this.state,a=t??n,i=o.toPathSchema(a,"",r),s=this.getFieldNames(i,r),l=yU(e,s);"object"!==t?.type&&"array"!==t?.type&&(l.__errors=e.__errors);const c=this.getPreviousCustomValidateErrors(),u=(e,t={})=>{var r,n;return n=(r,n)=>{const o=t[n];IN(r)||Array.isArray(r)&&0===r.length?delete e[n]:ed(r)&&ed(o)&&Array.isArray(o?.__errors)?e[n]=((e=[],t)=>0===e.length?e:e.filter((e=>!t.includes(e))))(r.__errors,o.__errors):"object"!=typeof r||Array.isArray(r.__errors)||u(r,t[n])},(Zf(r=e)?Ym:zy)(r,Xy(n)),e};return u(l,c)}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=mR(e,n);o=t.errorSchema,r=t.errors}if(t){o=FN(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?FN(t,n,"preventDuplicates"):t;p={formData:m,errorSchema:e,errors:uR(e)}}this.setState(p,(()=>l&&l({...this.state,...p},r)))};updateRetrievedSchema(e){return fm(e,this.state?.retrievedSchema)?this.state.retrievedSchema:e}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})))};onBlur=(e,t)=>{const{onBlur:r}=this.props;r&&r(e,t)};onFocus=(e,t)=>{const{onFocus:r}=this.props;r&&r(e,t)};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?uR(r):[];this.setState({formData:a,errors:n,errorSchema:t,schemaValidationErrors:[],schemaValidationErrorSchema:{}},(()=>{o&&o({...this.state,formData:a,status:"submitted"},e)}))}};getRegistry(){const{translateString:e,uiSchema:t={}}=this.props,{schemaUtils:r}=this.state,{fields:n,templates:o,widgets:a,formContext:i,translateString:s}=xK();return{fields:{...n,...this.props.fields},templates:{...o,...this.props.templates,ButtonTemplates:{...o.ButtonTemplates,...this.props.templates?.ButtonTemplates}},widgets:{...a,...this.props.widgets},rootSchema:this.props.schema,formContext:this.props.formContext||i,schemaUtils:r,translateString:e||s,globalUiOptions:t["ui:globalOptions"]}}submit=()=>{if(this.formElement.current){const e=new CustomEvent("submit",{cancelable:!0});e.preventDefault(),this.formElement.current.dispatchEvent(e),this.formElement.current.requestSubmit()}};focusOnError(e){const{idPrefix:t="root",idSeparator:r="_"}=this.props,{property:n}=e,o=dR(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()}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=mR(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};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:y,formContext:v,showErrorList:g="top",_internalFormWrapper:b}=this.props,{schema:w,uiSchema:S,formData:x,errorSchema:$,idSchema:_}=this.state,k=this.getRegistry(),{SchemaField:E}=k.fields,{SubmitButton:C}=k.templates.ButtonTemplates,j=b?a:void 0,P=b||a||"form";let{[gd]:O={}}=_d(S);h&&(O={...O,props:{...O.props,disabled:!0}});const N={[$d]:{[gd]:O}};return NA.jsxs(P,{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:j,ref:this.formElement,children:["top"===g&&this.renderErrors(k),NA.jsx(E,{name:"",schema:w,uiSchema:S,errorSchema:$,idSchema:_,idPrefix:r,idSeparator:n,formContext:v,formData:x,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:k,disabled:h,readonly:y}),e||NA.jsx(C,{uiSchema:N,registry:k}),"bottom"===g&&this.renderErrors(k)]})}};var _K={black:"#000",white:"#fff"};var kK={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 EK={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 CK={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 jK={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 PK={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 OK={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 NK={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 AK(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 RK=Object.freeze({__proto__:null,default:AK}),TK="$$material";function IK(){return IK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},IK.apply(null,arguments)}function MK(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}var FK=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}(),DK="-ms-",zK="-moz-",LK="-webkit-",VK="comm",BK="rule",UK="decl",WK="@keyframes",qK=Math.abs,KK=String.fromCharCode,HK=Object.assign;function GK(e){return e.trim()}function QK(e,t,r){return e.replace(t,r)}function YK(e,t){return e.indexOf(t)}function JK(e,t){return 0|e.charCodeAt(t)}function XK(e,t,r){return e.slice(t,r)}function ZK(e){return e.length}function eH(e){return e.length}function tH(e,t){return t.push(e),e}var rH=1,nH=1,oH=0,aH=0,iH=0,sH="";function lH(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:rH,column:nH,length:i,return:""}}function cH(e,t){return HK(lH("",null,null,"",null,null,0),e,{length:-e.length},t)}function uH(){return iH=aH>0?JK(sH,--aH):0,nH--,10===iH&&(nH=1,rH--),iH}function dH(){return iH=aH<oH?JK(sH,aH++):0,nH++,10===iH&&(nH=1,rH++),iH}function fH(){return JK(sH,aH)}function pH(){return aH}function mH(e,t){return XK(sH,e,t)}function hH(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 yH(e){return rH=nH=1,oH=ZK(sH=e),aH=0,[]}function vH(e){return sH="",e}function gH(e){return GK(mH(aH-1,SH(91===e?e+2:40===e?e+1:e)))}function bH(e){for(;(iH=fH())&&iH<33;)dH();return hH(e)>2||hH(iH)>3?"":" "}function wH(e,t){for(;--t&&dH()&&!(iH<48||iH>102||iH>57&&iH<65||iH>70&&iH<97););return mH(e,pH()+(t<6&&32==fH()&&32==dH()))}function SH(e){for(;dH();)switch(iH){case e:return aH;case 34:case 39:34!==e&&39!==e&&SH(iH);break;case 40:41===e&&SH(e);break;case 92:dH()}return aH}function xH(e,t){for(;dH()&&e+iH!==57&&(e+iH!==84||47!==fH()););return"/*"+mH(t,aH-1)+"*"+KK(47===e?e:dH())}function $H(e){for(;!hH(fH());)dH();return mH(e,aH)}function _H(e){return vH(kH("",null,null,null,[""],e=yH(e),0,[0],e))}function kH(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,y=1,v=1,g=0,b="",w=o,S=a,x=n,$=b;y;)switch(m=g,g=dH()){case 40:if(108!=m&&58==JK($,d-1)){-1!=YK($+=QK(gH(g),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:$+=gH(g);break;case 9:case 10:case 13:case 32:$+=bH(m);break;case 92:$+=wH(pH()-1,7);continue;case 47:switch(fH()){case 42:case 47:tH(CH(xH(dH(),pH()),t,r),l);break;default:$+="/"}break;case 123*h:s[c++]=ZK($)*v;case 125*h:case 59:case 0:switch(g){case 0:case 125:y=0;case 59+u:-1==v&&($=QK($,/\f/g,"")),p>0&&ZK($)-d&&tH(p>32?jH($+";",n,r,d-1):jH(QK($," ","")+";",n,r,d-2),l);break;case 59:$+=";";default:if(tH(x=EH($,t,r,c,u,o,s,b,w=[],S=[],d),a),123===g)if(0===u)kH($,t,x,x,w,a,d,s,S);else switch(99===f&&110===JK($,3)?100:f){case 100:case 108:case 109:case 115:kH(e,x,x,n&&tH(EH(e,x,x,0,0,o,s,b,o,w=[],d),S),o,S,d,s,n?w:S);break;default:kH($,x,x,x,[""],S,0,s,S)}}c=u=p=0,h=v=1,b=$="",d=i;break;case 58:d=1+ZK($),p=m;default:if(h<1)if(123==g)--h;else if(125==g&&0==h++&&125==uH())continue;switch($+=KK(g),g*h){case 38:v=u>0?1:($+="\f",-1);break;case 44:s[c++]=(ZK($)-1)*v,v=1;break;case 64:45===fH()&&($+=gH(dH())),f=fH(),u=d=ZK(b=$+=$H(pH())),g++;break;case 45:45===m&&2==ZK($)&&(h=0)}}return a}function EH(e,t,r,n,o,a,i,s,l,c,u){for(var d=o-1,f=0===o?a:[""],p=eH(f),m=0,h=0,y=0;m<n;++m)for(var v=0,g=XK(e,d+1,d=qK(h=i[m])),b=e;v<p;++v)(b=GK(h>0?f[v]+" "+g:QK(g,/&\f/g,f[v])))&&(l[y++]=b);return lH(e,t,r,0===o?BK:s,l,c,u)}function CH(e,t,r){return lH(e,t,r,VK,KK(iH),XK(e,2,-2),0)}function jH(e,t,r,n){return lH(e,t,r,UK,XK(e,0,n),XK(e,n+1,-1),n)}function PH(e,t){for(var r="",n=eH(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function OH(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case UK:return e.return=e.return||e.value;case VK:return"";case WK:return e.return=e.value+"{"+PH(e.children,n)+"}";case BK:e.value=e.props.join(",")}return ZK(r=PH(e.children,n))?e.return=e.value+"{"+r+"}":""}function NH(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var AH=function(e,t,r){for(var n=0,o=0;n=o,o=fH(),38===n&&12===o&&(t[r]=1),!hH(o);)dH();return mH(e,aH)},RH=function(e,t){return vH(function(e,t){var r=-1,n=44;do{switch(hH(n)){case 0:38===n&&12===fH()&&(t[r]=1),e[r]+=AH(aH-1,t,r);break;case 2:e[r]+=gH(n);break;case 4:if(44===n){e[++r]=58===fH()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=KK(n)}}while(n=dH());return e}(yH(e),t))},TH=new WeakMap,IH=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)||TH.get(r))&&!n){TH.set(e,!0);for(var o=[],a=RH(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]}}},MH=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function FH(e,t){switch(function(e,t){return 45^JK(e,0)?(((t<<2^JK(e,0))<<2^JK(e,1))<<2^JK(e,2))<<2^JK(e,3):0}(e,t)){case 5103:return LK+"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 LK+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return LK+e+zK+e+DK+e+e;case 6828:case 4268:return LK+e+DK+e+e;case 6165:return LK+e+DK+"flex-"+e+e;case 5187:return LK+e+QK(e,/(\w+).+(:[^]+)/,LK+"box-$1$2"+DK+"flex-$1$2")+e;case 5443:return LK+e+DK+"flex-item-"+QK(e,/flex-|-self/,"")+e;case 4675:return LK+e+DK+"flex-line-pack"+QK(e,/align-content|flex-|-self/,"")+e;case 5548:return LK+e+DK+QK(e,"shrink","negative")+e;case 5292:return LK+e+DK+QK(e,"basis","preferred-size")+e;case 6060:return LK+"box-"+QK(e,"-grow","")+LK+e+DK+QK(e,"grow","positive")+e;case 4554:return LK+QK(e,/([^-])(transform)/g,"$1"+LK+"$2")+e;case 6187:return QK(QK(QK(e,/(zoom-|grab)/,LK+"$1"),/(image-set)/,LK+"$1"),e,"")+e;case 5495:case 3959:return QK(e,/(image-set\([^]*)/,LK+"$1$`$1");case 4968:return QK(QK(e,/(.+:)(flex-)?(.*)/,LK+"box-pack:$3"+DK+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+LK+e+e;case 4095:case 3583:case 4068:case 2532:return QK(e,/(.+)-inline(.+)/,LK+"$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(ZK(e)-1-t>6)switch(JK(e,t+1)){case 109:if(45!==JK(e,t+4))break;case 102:return QK(e,/(.+:)(.+)-([^]+)/,"$1"+LK+"$2-$3$1"+zK+(108==JK(e,t+3)?"$3":"$2-$3"))+e;case 115:return~YK(e,"stretch")?FH(QK(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==JK(e,t+1))break;case 6444:switch(JK(e,ZK(e)-3-(~YK(e,"!important")&&10))){case 107:return QK(e,":",":"+LK)+e;case 101:return QK(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+LK+(45===JK(e,14)?"inline-":"")+"box$3$1"+LK+"$2$3$1"+DK+"$2box$3")+e}break;case 5936:switch(JK(e,t+11)){case 114:return LK+e+DK+QK(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return LK+e+DK+QK(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return LK+e+DK+QK(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return LK+e+DK+e+e}return e}var DH=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case UK:e.return=FH(e.value,e.length);break;case WK:return PH([cH(e,{value:QK(e.value,"@","@"+LK)})],n);case BK: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 PH([cH(e,{props:[QK(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return PH([cH(e,{props:[QK(t,/:(plac\w+)/,":"+LK+"input-$1")]}),cH(e,{props:[QK(t,/:(plac\w+)/,":-moz-$1")]}),cH(e,{props:[QK(t,/:(plac\w+)/,DK+"input-$1")]})],n)}return""}))}}],zH=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||DH,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=[OH,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=eH(e);return function(r,n,o,a){for(var i="",s=0;s<t;s++)i+=e[s](r,n,o,a)||"";return i}}([IH,MH].concat(a,u));o=function(e,t,r,n){l=r,function(e){PH(_H(e),d)}(e?e+"{"+t.styles+"}":t.styles),n&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new FK({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},LH={exports:{}},VH={},BH="function"==typeof Symbol&&Symbol.for,UH=BH?Symbol.for("react.element"):60103,WH=BH?Symbol.for("react.portal"):60106,qH=BH?Symbol.for("react.fragment"):60107,KH=BH?Symbol.for("react.strict_mode"):60108,HH=BH?Symbol.for("react.profiler"):60114,GH=BH?Symbol.for("react.provider"):60109,QH=BH?Symbol.for("react.context"):60110,YH=BH?Symbol.for("react.async_mode"):60111,JH=BH?Symbol.for("react.concurrent_mode"):60111,XH=BH?Symbol.for("react.forward_ref"):60112,ZH=BH?Symbol.for("react.suspense"):60113,eG=BH?Symbol.for("react.suspense_list"):60120,tG=BH?Symbol.for("react.memo"):60115,rG=BH?Symbol.for("react.lazy"):60116,nG=BH?Symbol.for("react.block"):60121,oG=BH?Symbol.for("react.fundamental"):60117,aG=BH?Symbol.for("react.responder"):60118,iG=BH?Symbol.for("react.scope"):60119;function sG(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case UH:switch(e=e.type){case YH:case JH:case qH:case HH:case KH:case ZH:return e;default:switch(e=e&&e.$$typeof){case QH:case XH:case rG:case tG:case GH:return e;default:return t}}case WH:return t}}}function lG(e){return sG(e)===JH}VH.AsyncMode=YH,VH.ConcurrentMode=JH,VH.ContextConsumer=QH,VH.ContextProvider=GH,VH.Element=UH,VH.ForwardRef=XH,VH.Fragment=qH,VH.Lazy=rG,VH.Memo=tG,VH.Portal=WH,VH.Profiler=HH,VH.StrictMode=KH,VH.Suspense=ZH,VH.isAsyncMode=function(e){return lG(e)||sG(e)===YH},VH.isConcurrentMode=lG,VH.isContextConsumer=function(e){return sG(e)===QH},VH.isContextProvider=function(e){return sG(e)===GH},VH.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===UH},VH.isForwardRef=function(e){return sG(e)===XH},VH.isFragment=function(e){return sG(e)===qH},VH.isLazy=function(e){return sG(e)===rG},VH.isMemo=function(e){return sG(e)===tG},VH.isPortal=function(e){return sG(e)===WH},VH.isProfiler=function(e){return sG(e)===HH},VH.isStrictMode=function(e){return sG(e)===KH},VH.isSuspense=function(e){return sG(e)===ZH},VH.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===qH||e===JH||e===HH||e===KH||e===ZH||e===eG||"object"==typeof e&&null!==e&&(e.$$typeof===rG||e.$$typeof===tG||e.$$typeof===GH||e.$$typeof===QH||e.$$typeof===XH||e.$$typeof===oG||e.$$typeof===aG||e.$$typeof===iG||e.$$typeof===nG)},VH.typeOf=sG,LH.exports=VH;var cG=LH.exports,uG={};uG[cG.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},uG[cG.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};function dG(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")})),n}var fG=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},pG=function(e,t,r){fG(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 mG={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},hG=!1,yG=/[A-Z]|^ms/g,vG=/_EMO_([^_]+?)_([^]*?)_EMO_/g,gG=function(e){return 45===e.charCodeAt(1)},bG=function(e){return null!=e&&"boolean"!=typeof e},wG=NH((function(e){return gG(e)?e:e.replace(yG,"-$&").toLowerCase()})),SG=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(vG,(function(e,t,r){return _G={name:t,styles:r,next:_G},t}))}return 1===mG[e]||gG(e)||"number"!=typeof t||0===t?t:t+"px"},xG="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function $G(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 _G={name:o.name,styles:o.styles,next:_G},o.name;var a=r;if(void 0!==a.styles){var i=a.next;if(void 0!==i)for(;void 0!==i;)_G={name:i.name,styles:i.styles,next:_G},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+=$G(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]+"}":bG(s)&&(n+=wG(a)+":"+SG(a,s)+";")}else{if("NO_COMPONENT_SELECTOR"===a&&hG)throw new Error(xG);if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=$G(e,t,i);switch(a){case"animation":case"animationName":n+=wG(a)+":"+l+";";break;default:n+=a+"{"+l+"}"}}else for(var c=0;c<i.length;c++)bG(i[c])&&(n+=wG(a)+":"+SG(a,i[c])+";")}}return n}(e,t,r);case"function":if(void 0!==e){var s=_G,l=r(e);return _G=s,$G(e,t,l)}}var c=r;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var _G,kG=/label:\s*([^\s;{]+)\s*(;|$)/g;function EG(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="";_G=void 0;var a=e[0];null==a||void 0===a.raw?(n=!1,o+=$G(r,t,a)):o+=a[0];for(var i=1;i<e.length;i++){if(o+=$G(r,t,e[i]),n)o+=a[i]}kG.lastIndex=0;for(var s,l="";null!==(s=kG.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:_G}}var CG,jG,PG=!!B.useInsertionEffect&&B.useInsertionEffect,OG=PG||function(e){return e()},NG=PG||L.useLayoutEffect,AG=L.createContext("undefined"!=typeof HTMLElement?zH({key:"css"}):null),RG=AG.Provider,TG=function(e){return L.forwardRef((function(t,r){var n=L.useContext(AG);return e(t,n,r)}))},IG=L.createContext({}),MG={}.hasOwnProperty,FG="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",DG=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return fG(t,r,n),OG((function(){return pG(t,r,n)})),null},zG=TG((function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var o=e[FG],a=[n],i="";"string"==typeof e.className?i=dG(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var s=EG(a,void 0,L.useContext(IG));i+=t.key+"-"+s.name;var l={};for(var c in e)MG.call(e,c)&&"css"!==c&&c!==FG&&(l[c]=e[c]);return l.className=i,r&&(l.ref=r),L.createElement(L.Fragment,null,L.createElement(DG,{cache:t,serialized:s,isStringTag:"string"==typeof o}),L.createElement(o,l))})),LG=zG,VG=function(e,t){var r=arguments;if(null==t||!MG.call(t,"css"))return L.createElement.apply(void 0,r);var n=r.length,o=new Array(n);o[0]=LG,o[1]=function(e,t){var r={};for(var n in t)MG.call(t,n)&&(r[n]=t[n]);return r[FG]=e,r}(e,t);for(var a=2;a<n;a++)o[a]=r[a];return L.createElement.apply(null,o)};CG=VG||(VG={}),jG||(jG=CG.JSX||(CG.JSX={}));var BG=TG((function(e,t){var r=EG([e.styles],void 0,L.useContext(IG)),n=L.useRef();return NG((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]),NG((function(){var e=n.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&pG(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 UG(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return EG(t)}function WG(){var e=UG.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 qG=/^((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)-.*))$/,KG=NH((function(e){return qG.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),HG=function(e){return"theme"!==e},GG=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?KG:HG},QG=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},YG=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return fG(t,r,n),OG((function(){return pG(t,r,n)})),null},JG=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=QG(t,r,a),l=s||GG(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=TG((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(IG)}"string"==typeof e.className?a=dG(t.registered,u,e.className):null!=e.className&&(a=e.className+" ");var m=EG(d.concat(u),t.registered,f);a+=t.key+"-"+m.name,void 0!==o&&(a+=" "+o);var h=c&&void 0===s?GG(n):l,y={};for(var v in e)c&&"as"===v||h(v)&&(y[v]=e[v]);return y.className=a,r&&(y.ref=r),L.createElement(L.Fragment,null,L.createElement(YG,{cache:t,serialized:m,isStringTag:"string"==typeof n}),L.createElement(n,y))}));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,IK({},r,n,{shouldForwardProp:QG(h,n,!0)})).apply(void 0,d)},h}}.bind(null);["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){JG[e]=JG(e)}));const XG=new Map;function ZG(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 NA.jsx(BG,{styles:n})}
|
|
35
35
|
/**
|
|
36
|
-
* @mui/styled-engine v5.
|
|
36
|
+
* @mui/styled-engine v5.18.0
|
|
37
37
|
*
|
|
38
38
|
* @license MIT
|
|
39
39
|
* This source code is licensed under the MIT license found in the
|
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/function KG(e,t){return UG(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){UG[e]=UG(e)})),"object"==typeof document&&(WG=NH({key:"css",prepend:!0}));const HG=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};var GG=Object.freeze({__proto__:null,GlobalStyles:qG,StyledEngineProvider:function(e){const{injectFirst:t,children:r}=e;return t&&WG?$A.jsx(kG,{value:WG,children:r}):r},ThemeContext:CG,css:IG,default:KG,internal_processStyles:HG,keyframes:MG});function QG(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 YG(e){if(L.isValidElement(e)||!QG(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=YG(e[r])})),t}function JG(e,t,r={clone:!0}){const n=r.clone?CK({},e):e;return QG(e)&&QG(t)&&Object.keys(t).forEach((o=>{L.isValidElement(t[o])?n[o]=t[o]:QG(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&QG(e[o])?n[o]=JG(e[o],t[o],r):r.clone?n[o]=QG(t[o])?YG(t[o]):t[o]:n[o]=t[o]})),n}var XG=Object.freeze({__proto__:null,default:JG,isPlainObject:QG});const ZG=["values","unit","step"],eQ=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)=>CK({},e,{[t.key]:t.val})),{})};function tQ(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=jK(e,ZG),a=eQ(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 CK({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 rQ={borderRadius:4};function nQ(e,t){return t?JG(e,t,{clone:!1}):e}const oQ={xs:0,sm:600,md:900,lg:1200,xl:1536},aQ={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${oQ[e]}px)`};function iQ(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||aQ;return t.reduce(((n,o,a)=>(n[e.up(e.keys[a])]=r(t[a]),n)),{})}if("object"==typeof t){const e=n.breakpoints||aQ;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||oQ).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function sQ(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}function lQ(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function cQ({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 uQ(e){if("string"!=typeof e)throw new Error(_K(7));return e.charAt(0).toUpperCase()+e.slice(1)}var dQ=Object.freeze({__proto__:null,default:uQ});function fQ(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 pQ(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:fQ(e,r)||n,t&&(o=t(o,n,e)),o}function mQ(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=fQ(e.theme,n)||{};return iQ(e,a,(e=>{let n=pQ(i,o,e);return e===n&&"string"==typeof e&&(n=pQ(i,o,`${t}${"default"===e?"":uQ(e)}`,e)),!1===r?n:{[r]:n}}))};return a.propTypes={},a.filterProps=[t],a}const hQ={m:"margin",p:"padding"},vQ={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},yQ={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},gQ=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!yQ[e])return[e];e=yQ[e]}const[t,r]=e.split(""),n=hQ[t],o=vQ[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),bQ=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],wQ=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function SQ(e,t,r,n){var o;const a=null!=(o=fQ(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 xQ(e){return SQ(e,"spacing",8)}function $Q(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 _Q(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=$Q(t,r),e)),{})}(gQ(r),n);return iQ(e,e[r],o)}function kQ(e,t){const r=xQ(e.theme);return Object.keys(e).map((n=>_Q(e,t,n,r))).reduce(nQ,{})}function EQ(e){return kQ(e,bQ)}function CQ(e){return kQ(e,wQ)}function jQ(...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]?nQ(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function PQ(e){return"number"!=typeof e?e:`${e}px solid`}function OQ(e,t){return mQ({prop:e,themeKey:"borders",transform:t})}EQ.propTypes={},EQ.filterProps=bQ,CQ.propTypes={},CQ.filterProps=wQ;const NQ=OQ("border",PQ),AQ=OQ("borderTop",PQ),RQ=OQ("borderRight",PQ),TQ=OQ("borderBottom",PQ),IQ=OQ("borderLeft",PQ),MQ=OQ("borderColor"),FQ=OQ("borderTopColor"),DQ=OQ("borderRightColor"),zQ=OQ("borderBottomColor"),LQ=OQ("borderLeftColor"),VQ=OQ("outline",PQ),BQ=OQ("outlineColor"),UQ=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=SQ(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:$Q(t,e)});return iQ(e,e.borderRadius,r)}return null};UQ.propTypes={},UQ.filterProps=["borderRadius"],jQ(NQ,AQ,RQ,TQ,IQ,MQ,FQ,DQ,zQ,LQ,UQ,VQ,BQ);const WQ=e=>{if(void 0!==e.gap&&null!==e.gap){const t=SQ(e.theme,"spacing",8),r=e=>({gap:$Q(t,e)});return iQ(e,e.gap,r)}return null};WQ.propTypes={},WQ.filterProps=["gap"];const qQ=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=SQ(e.theme,"spacing",8),r=e=>({columnGap:$Q(t,e)});return iQ(e,e.columnGap,r)}return null};qQ.propTypes={},qQ.filterProps=["columnGap"];const KQ=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=SQ(e.theme,"spacing",8),r=e=>({rowGap:$Q(t,e)});return iQ(e,e.rowGap,r)}return null};KQ.propTypes={},KQ.filterProps=["rowGap"];function HQ(e,t){return"grey"===t?t:e}jQ(WQ,qQ,KQ,mQ({prop:"gridColumn"}),mQ({prop:"gridRow"}),mQ({prop:"gridAutoFlow"}),mQ({prop:"gridAutoColumns"}),mQ({prop:"gridAutoRows"}),mQ({prop:"gridTemplateColumns"}),mQ({prop:"gridTemplateRows"}),mQ({prop:"gridTemplateAreas"}),mQ({prop:"gridArea"}));function GQ(e){return e<=1&&0!==e?100*e+"%":e}jQ(mQ({prop:"color",themeKey:"palette",transform:HQ}),mQ({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:HQ}),mQ({prop:"backgroundColor",themeKey:"palette",transform:HQ}));const QQ=mQ({prop:"width",transform:GQ}),YQ=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])||oQ[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:GQ(t)}};return iQ(e,e.maxWidth,t)}return null};YQ.filterProps=["maxWidth"];const JQ=mQ({prop:"minWidth",transform:GQ}),XQ=mQ({prop:"height",transform:GQ}),ZQ=mQ({prop:"maxHeight",transform:GQ}),eY=mQ({prop:"minHeight",transform:GQ});mQ({prop:"size",cssProperty:"width",transform:GQ}),mQ({prop:"size",cssProperty:"height",transform:GQ});jQ(QQ,YQ,JQ,XQ,ZQ,eY,mQ({prop:"boxSizing"}));var tY={border:{themeKey:"borders",transform:PQ},borderTop:{themeKey:"borders",transform:PQ},borderRight:{themeKey:"borders",transform:PQ},borderBottom:{themeKey:"borders",transform:PQ},borderLeft:{themeKey:"borders",transform:PQ},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:PQ},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:UQ},color:{themeKey:"palette",transform:HQ},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:HQ},backgroundColor:{themeKey:"palette",transform:HQ},p:{style:CQ},pt:{style:CQ},pr:{style:CQ},pb:{style:CQ},pl:{style:CQ},px:{style:CQ},py:{style:CQ},padding:{style:CQ},paddingTop:{style:CQ},paddingRight:{style:CQ},paddingBottom:{style:CQ},paddingLeft:{style:CQ},paddingX:{style:CQ},paddingY:{style:CQ},paddingInline:{style:CQ},paddingInlineStart:{style:CQ},paddingInlineEnd:{style:CQ},paddingBlock:{style:CQ},paddingBlockStart:{style:CQ},paddingBlockEnd:{style:CQ},m:{style:EQ},mt:{style:EQ},mr:{style:EQ},mb:{style:EQ},ml:{style:EQ},mx:{style:EQ},my:{style:EQ},margin:{style:EQ},marginTop:{style:EQ},marginRight:{style:EQ},marginBottom:{style:EQ},marginLeft:{style:EQ},marginX:{style:EQ},marginY:{style:EQ},marginInline:{style:EQ},marginInlineStart:{style:EQ},marginInlineEnd:{style:EQ},marginBlock:{style:EQ},marginBlockStart:{style:EQ},marginBlockEnd:{style:EQ},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:WQ},rowGap:{style:KQ},columnGap:{style:qQ},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:GQ},maxWidth:{style:YQ},minWidth:{transform:GQ},height:{transform:GQ},maxHeight:{transform:GQ},minHeight:{transform:GQ},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function rY(){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=fQ(r,s)||{};if(c)return c(o);return iQ(o,t,(t=>{let r=pQ(u,l,t);return t===r&&"string"==typeof t&&(r=pQ(u,l,`${e}${"default"===t?"":uQ(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:tY;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=sQ(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=nQ(l,e(r,o,a,i));else{const e=iQ({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=nQ(l,e):l[r]=t({sx:o,theme:a})}else l=nQ(l,e(r,o,a,i))})),lQ(s,l)}return Array.isArray(o)?o.map(s):s(o)}}const nY=rY();nY.filterProps=["sx"];var oY=nY;function aY(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 iY=["breakpoints","palette","spacing","shape"];function sY(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=jK(e,iY),s=tQ(r),l=function(e=8){if(e.mui)return e;const t=xQ({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=JG({breakpoints:s,direction:"ltr",components:{},palette:CK({mode:"light"},n),spacing:l,shape:CK({},rQ,a)},i);return c.applyStyles=aY,c=t.reduce(((e,t)=>JG(e,t)),c),c.unstable_sxConfig=CK({},tY,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return oY({sx:e,theme:this})},c}var lY=Object.freeze({__proto__:null,default:sY,private_createBreakpoints:tQ,unstable_applyStyles:aY});function cY(e=null){const t=L.useContext(CG);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const uY=sY();function dY(e=uY){return cY(e)}function fY({styles:e,themeId:t,defaultTheme:r={}}){const n=dY(r),o="function"==typeof e?e(t&&n[t]||n):e;return $A.jsx(qG,{styles:o})}const pY=["sx"],mY=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:tY;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function hY(e){const{sx:t}=e,r=jK(e,pY),{systemProps:n,otherProps:o}=mY(r);let a;return a=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return QG(r)?CK({},n,r):n}:CK({},n,t),CK({},o,{sx:a})}var vY=Object.freeze({__proto__:null,default:oY,extendSxProp:hY,unstable_createStyleFunctionSx:rY,unstable_defaultSxConfig:tY});const yY=e=>e;var gY=(()=>{let e=yY;return{configure(t){e=t},generate:t=>e(t),reset(){e=yY}}})();function bY(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=bY(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function wY(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=bY(e))&&(n&&(n+=" "),n+=t);return n}const SY=["className","component"];const xY={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 $Y(e,t,r="Mui"){const n=xY[t];return n?`${r}-${n}`:`${gY.generate(e)}-${t}`}function _Y(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=$Y(e,t,r)})),n}var kY={exports:{}},EY={},CY=Symbol.for("react.transitional.element"),jY=Symbol.for("react.portal"),PY=Symbol.for("react.fragment"),OY=Symbol.for("react.strict_mode"),NY=Symbol.for("react.profiler"),AY=Symbol.for("react.consumer"),RY=Symbol.for("react.context"),TY=Symbol.for("react.forward_ref"),IY=Symbol.for("react.suspense"),MY=Symbol.for("react.suspense_list"),FY=Symbol.for("react.memo"),DY=Symbol.for("react.lazy"),zY=Symbol.for("react.view_transition"),LY=Symbol.for("react.client.reference");function VY(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case CY:switch(e=e.type){case PY:case NY:case OY:case IY:case MY:case zY:return e;default:switch(e=e&&e.$$typeof){case RY:case TY:case DY:case FY:case AY:return e;default:return t}}case jY:return t}}}EY.ContextConsumer=AY,EY.ContextProvider=RY,EY.Element=CY,EY.ForwardRef=TY,EY.Fragment=PY,EY.Lazy=DY,EY.Memo=FY,EY.Portal=jY,EY.Profiler=NY,EY.StrictMode=OY,EY.Suspense=IY,EY.SuspenseList=MY,EY.isContextConsumer=function(e){return VY(e)===AY},EY.isContextProvider=function(e){return VY(e)===RY},EY.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===CY},EY.isForwardRef=function(e){return VY(e)===TY},EY.isFragment=function(e){return VY(e)===PY},EY.isLazy=function(e){return VY(e)===DY},EY.isMemo=function(e){return VY(e)===FY},EY.isPortal=function(e){return VY(e)===jY},EY.isProfiler=function(e){return VY(e)===NY},EY.isStrictMode=function(e){return VY(e)===OY},EY.isSuspense=function(e){return VY(e)===IY},EY.isSuspenseList=function(e){return VY(e)===MY},EY.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===PY||e===NY||e===OY||e===IY||e===MY||"object"==typeof e&&null!==e&&(e.$$typeof===DY||e.$$typeof===FY||e.$$typeof===RY||e.$$typeof===AY||e.$$typeof===TY||e.$$typeof===LY||void 0!==e.getModuleId)},EY.typeOf=VY,kY.exports=EY;var BY=kY.exports;const UY=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function WY(e){const t=`${e}`.match(UY);return t&&t[1]||""}function qY(e,t=""){return e.displayName||e.name||WY(e)||t}function KY(e,t,r){const n=qY(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var HY=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return qY(e,"Component");if("object"==typeof e)switch(e.$$typeof){case BY.ForwardRef:return KY(e,e.render,"ForwardRef");case BY.Memo:return KY(e,e.type,"memo");default:return}}},getFunctionName:WY});const GY=["ownerState"],QY=["variants"],YY=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function JY(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const XY=sY(),ZY=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function eJ({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function tJ(e){return e?(t,r)=>r[e]:null}function rJ(e,t){let{ownerState:r}=t,n=jK(t,GY);const o="function"==typeof e?e(CK({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>rJ(e,CK({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=jK(o,QY);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(CK({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(CK({ownerState:r},n,r)):e.style))})),t}return o}const nJ=function(e={}){const{themeId:t,defaultTheme:r=XY,rootShouldForwardProp:n=JY,slotShouldForwardProp:o=JY}=e,a=e=>oY(CK({},e,{theme:eJ(CK({},e,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{HG(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=tJ(ZY(l))}=i,f=jK(i,YY),p=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,m=u||!1;let h=JY;"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=KG(e,CK({shouldForwardProp:h,label:undefined},f)),y=e=>"function"==typeof e&&e.__emotion_real!==e||QG(e)?n=>rJ(e,CK({},n,{theme:eJ({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=eJ(CK({},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]=rJ(r,CK({},e,{theme:n}))})),d(e,a)})),s&&!p&&l.push((e=>{var n;const o=eJ(CK({},e,{defaultTheme:r,themeId:t}));return rJ({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},CK({},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 oJ=nJ;function aJ(e,t){const r=CK({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=CK({},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]=CK({},a),Object.keys(o).forEach((e=>{r[n][e]=aJ(o[e],a[e])}))):r[n]=a:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function iJ({props:e,name:t,defaultTheme:r,themeId:n}){let o=dY(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?aJ(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return a}var sJ="undefined"!=typeof window?L.useLayoutEffect:L.useEffect;function lJ(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var cJ=Object.freeze({__proto__:null,default:lJ});function uJ(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function dJ(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function fJ(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 pJ(e){return e&&e.ownerDocument||document}function mJ(e){return pJ(e).defaultView||window}function hJ(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let vJ=0;const yJ=B["useId".toString()];function gJ(e){if(void 0!==yJ){const t=yJ();return null!=e?e:t}return function(e){const[t,r]=L.useState(e),n=e||t;return L.useEffect((()=>{null==t&&(vJ+=1,r(`mui-${vJ}`))}),[t]),n}(e)}function bJ({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 wJ(e){const t=L.useRef(e);return sJ((()=>{t.current=e})),L.useRef(((...e)=>(0,t.current)(...e))).current}function SJ(...e){return L.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{hJ(e,t)}))}),e)}const xJ={};const $J=[];class _J{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new _J}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function kJ(){const e=function(e,t){const r=L.useRef(xJ);return r.current===xJ&&(r.current=e(t)),r}(_J.create).current;var t;return t=e.disposeEffect,L.useEffect(t,$J),e}let EJ=!0,CJ=!1;const jJ=new _J,PJ={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 OJ(e){e.metaKey||e.altKey||e.ctrlKey||(EJ=!0)}function NJ(){EJ=!1}function AJ(){"hidden"===this.visibilityState&&CJ&&(EJ=!0)}function RJ(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return EJ||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!PJ[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function TJ(){const e=L.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",OJ,!0),t.addEventListener("mousedown",NJ,!0),t.addEventListener("pointerdown",NJ,!0),t.addEventListener("touchstart",NJ,!0),t.addEventListener("visibilitychange",AJ,!0))}),[]),t=L.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!RJ(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(CJ=!0,jJ.start(100,(()=>{CJ=!1})),t.current=!1,!0)},ref:e}}function IJ(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}var MJ={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function FJ(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 DJ(e){return"string"==typeof e}function zJ(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 LJ(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 VJ=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function BJ(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=jK(e,VJ),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=wY(null==r?void 0:r.className,a,null==o?void 0:o.className,null==n?void 0:n.className),t=CK({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),i=CK({},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=zJ(CK({},o,n)),s=LJ(n),l=LJ(o),c=t(i),u=wY(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=CK({},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=CK({},c,r,l,s);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}(CK({},i,{externalSlotProps:s})),u=function(e,t,r){return void 0===e||DJ(e)?t:CK({},t,{ownerState:CK({},t.ownerState,r)})}(r,CK({},l,{ref:SJ(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return u}function UJ(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 WJ=L.createContext(null);function qJ(){return L.useContext(WJ)}var KJ="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function HJ(e){const{children:t,theme:r}=e,n=qJ(),o=L.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return CK({},e,t)}(n,r);return null!=e&&(e[KJ]=null!==n),e}),[r,n]);return $A.jsx(WJ.Provider,{value:o,children:t})}const GJ=["value"],QJ=L.createContext();function YJ(e){let{value:t}=e,r=jK(e,GJ);return $A.jsx(QJ.Provider,CK({value:null==t||t},r))}const JJ=()=>{const e=L.useContext(QJ);return null!=e&&e},XJ=L.createContext(void 0);function ZJ({value:e,children:t}){return $A.jsx(XJ.Provider,{value:e,children:t})}function eX({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?aJ(o.defaultProps,n):o.styleOverrides||o.variants?n:aJ(o,n)}({props:e,name:t,theme:{components:L.useContext(XJ)}})}const tX={};function rX(e,t,r,n=!1){return L.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const a=r(o),i=e?CK({},t,{[e]:a}):a;return n?()=>i:i}return CK({},t,e?{[e]:r}:r)}),[e,t,r,n])}function nX(e){const{children:t,theme:r,themeId:n}=e,o=cY(tX),a=qJ()||tX,i=rX(n,o,r),s=rX(n,a,r,!0),l="rtl"===i.direction;return $A.jsx(HJ,{theme:s,children:$A.jsx(CG.Provider,{value:i,children:$A.jsx(YJ,{value:l,children:$A.jsx(ZJ,{value:null==i?void 0:i.components,children:t})})})})}const oX=["component","direction","spacing","divider","children","className","useFlexGap"],aX=sY(),iX=oJ("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function sX(e){return iJ({props:e,name:"MuiStack",defaultTheme:aX})}function lX(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 cX=({ownerState:e,theme:t})=>{let r=CK({display:"flex",flexDirection:"column"},iQ({theme:t},cQ({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const n=xQ(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=cQ({values:e.direction,base:o}),i=cQ({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=JG(r,iQ({theme:t},i,((t,r)=>{return e.useFlexGap?{gap:$Q(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]}`]:$Q(n,t)}};var o})))}return r=function(e,...t){const r=sQ(e),n=[r,...t].reduce(((e,t)=>JG(e,t)),{});return lQ(Object.keys(r),n)}(t.breakpoints,r),r};var uX={},dX={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(dX);var fX=dX.exports,pX=n(kK),mX=n(cJ),hX=fX;Object.defineProperty(uX,"__esModule",{value:!0});var vX=uX.alpha=PX;uX.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),a=_X(e),i=_X(t),s=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return EX({type:"rgb",values:s})},uX.colorChannel=void 0;var yX=uX.darken=OX;uX.decomposeColor=_X,uX.emphasize=AX;var gX=uX.getContrastRatio=function(e,t){const r=jX(e),n=jX(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};uX.getLuminance=jX,uX.hexToRgb=$X,uX.hslToRgb=CX;var bX=uX.lighten=NX;uX.private_safeAlpha=function(e,t,r){try{return PX(e,t)}catch(t){return e}},uX.private_safeColorChannel=void 0,uX.private_safeDarken=function(e,t,r){try{return OX(e,t)}catch(t){return e}},uX.private_safeEmphasize=function(e,t,r){try{return AX(e,t)}catch(t){return e}},uX.private_safeLighten=function(e,t,r){try{return NX(e,t)}catch(t){return e}},uX.recomposeColor=EX,uX.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=_X(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 wX=hX(pX),SX=hX(mX);function xX(e,t=0,r=1){return(0,SX.default)(e,t,r)}function $X(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 _X(e){if(e.type)return e;if("#"===e.charAt(0))return _X($X(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,wX.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,wX.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const kX=e=>{const t=_X(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};uX.colorChannel=kX;function EX(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 CX(e){e=_X(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])),EX({type:s,values:l})}function jX(e){let t="hsl"===(e=_X(e)).type||"hsla"===e.type?_X(CX(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 PX(e,t){return e=_X(e),t=xX(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,EX(e)}function OX(e,t){if(e=_X(e),t=xX(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 EX(e)}function NX(e,t){if(e=_X(e),t=xX(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 EX(e)}function AX(e,t=.15){return jX(e)>.5?OX(e,t):NX(e,t)}uX.private_safeColorChannel=(e,t)=>{try{return kX(e)}catch(t){return e}};const RX=["mode","contrastThreshold","tonalOffset"],TX={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:vK.white,default:vK.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}},IX={text:{primary:vK.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:vK.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 MX(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=bX(e.main,o):"dark"===t&&(e.dark=yX(e.main,a)))}function FX(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=jK(e,RX),a=e.primary||function(e="light"){return"dark"===e?{main:bK[200],light:bK[50],dark:bK[400]}:{main:bK[700],light:bK[400],dark:bK[800]}}(t),i=e.secondary||function(e="light"){return"dark"===e?{main:gK[200],light:gK[50],dark:gK[400]}:{main:gK[500],light:gK[300],dark:gK[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:yK[500],light:yK[300],dark:yK[700]}:{main:yK[700],light:yK[400],dark:yK[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:wK[400],light:wK[300],dark:wK[700]}:{main:wK[700],light:wK[500],dark:wK[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:SK[400],light:SK[300],dark:SK[700]}:{main:SK[800],light:SK[500],dark:SK[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:xK[400],light:xK[300],dark:xK[700]}:{main:"#ed6c02",light:xK[500],dark:xK[900]}}(t);function d(e){return gX(e,IX.text.primary)>=r?IX.text.primary:TX.text.primary}const f=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:a=700})=>{if(!(e=CK({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(_K(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(_K(12,t?` (${t})`:"",JSON.stringify(e.main)));return MX(e,"light",o,n),MX(e,"dark",a,n),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:IX,light:TX};return JG(CK({common:CK({},vK),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:$K,contrastThreshold:r,getContrastText:d,augmentColor:f,tonalOffset:n},p[t]),o)}const DX=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const zX={textTransform:"uppercase"},LX='"Roboto", "Helvetica", "Arial", sans-serif';function VX(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=LX,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=r,f=jK(r,DX),p=o/14,m=d||(e=>e/c*p+"rem"),h=(e,t,r,o,a)=>{return CK({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===LX?{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,zX),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,zX),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return JG(CK({htmlFontSize:c,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l},v),f,{clone:!1})}function BX(...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 UX=["none",BX(0,2,1,-1,0,1,1,0,0,1,3,0),BX(0,3,1,-2,0,2,2,0,0,1,5,0),BX(0,3,3,-2,0,3,4,0,0,1,8,0),BX(0,2,4,-1,0,4,5,0,0,1,10,0),BX(0,3,5,-1,0,5,8,0,0,1,14,0),BX(0,3,5,-1,0,6,10,0,0,1,18,0),BX(0,4,5,-2,0,7,10,1,0,2,16,1),BX(0,5,5,-3,0,8,10,1,0,3,14,2),BX(0,5,6,-3,0,9,12,1,0,3,16,2),BX(0,6,6,-3,0,10,14,1,0,4,18,3),BX(0,6,7,-4,0,11,15,1,0,4,20,3),BX(0,7,8,-4,0,12,17,2,0,5,22,4),BX(0,7,8,-4,0,13,19,2,0,5,24,4),BX(0,7,9,-4,0,14,21,2,0,5,26,4),BX(0,8,9,-5,0,15,22,2,0,6,28,5),BX(0,8,10,-5,0,16,24,2,0,6,30,5),BX(0,8,11,-5,0,17,26,2,0,6,32,5),BX(0,9,11,-5,0,18,28,2,0,7,34,6),BX(0,9,12,-6,0,19,29,2,0,7,36,6),BX(0,10,13,-6,0,20,31,3,0,8,38,7),BX(0,10,13,-6,0,21,33,3,0,8,40,7),BX(0,10,14,-6,0,22,35,3,0,8,42,7),BX(0,11,14,-7,0,23,36,3,0,9,44,8),BX(0,11,15,-7,0,24,38,3,0,9,46,8)];const WX=["duration","easing","delay"],qX={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)"},KX={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function HX(e){return`${Math.round(e)}ms`}function GX(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function QX(e){const t=CK({},qX,e.easing),r=CK({},KX,e.duration);return CK({getAutoHeightDuration:GX,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:a=t.easeInOut,delay:i=0}=n;return jK(n,WX),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:HX(o)} ${a} ${"string"==typeof i?i:HX(i)}`)).join(",")}},e,{easing:t,duration:r})}var YX={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const JX=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function XX(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=jK(e,JX);if(e.vars&&void 0===e.generateCssVars)throw new Error(_K(18));const s=FX(n),l=sY(e);let c=JG(l,{mixins:(u=l.breakpoints,d=r,CK({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:UX.slice(),typography:VX(s,a),transitions:QX(o),zIndex:CK({},YX)});var u,d;return c=JG(c,i),c=t.reduce(((e,t)=>JG(e,t)),c),c.unstable_sxConfig=CK({},tY,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return oY({sx:e,theme:this})},c}var ZX=XX();function eZ(){const e=dY(ZX);return e[EK]||e}var tZ,rZ={},nZ={exports:{}};var oZ,aZ={exports:{}};var iZ=n(GG),sZ=n(XG),lZ=n(dQ),cZ=n(HY),uZ=n(lY),dZ=n(vY),fZ=fX;Object.defineProperty(rZ,"__esModule",{value:!0});var pZ=rZ.default=function(e={}){const{themeId:t,defaultTheme:r=kZ,rootShouldForwardProp:n=_Z,slotShouldForwardProp:o=_Z}=e,a=e=>(0,bZ.default)((0,mZ.default)({},e,{theme:CZ((0,mZ.default)({},e,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{(0,vZ.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=jZ(EZ(l))}=i,f=(0,hZ.default)(i,xZ),p=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,m=u||!1;let h=_Z;"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,vZ.default)(e,(0,mZ.default)({shouldForwardProp:h,label:undefined},f)),y=e=>"function"==typeof e&&e.__emotion_real!==e||(0,yZ.isPlainObject)(e)?n=>PZ(e,(0,mZ.default)({},n,{theme:CZ({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=CZ((0,mZ.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]=PZ(r,(0,mZ.default)({},e,{theme:n}))})),d(e,a)})),s&&!p&&l.push((e=>{var n;const o=CZ((0,mZ.default)({},e,{defaultTheme:r,themeId:t}));return PZ({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,mZ.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}};rZ.shouldForwardProp=_Z,rZ.systemDefaultTheme=void 0;var mZ=fZ((tZ||(tZ=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)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(nZ)),nZ.exports)),hZ=fZ((oZ||(oZ=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(aZ)),aZ.exports)),vZ=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=$Z(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}(iZ),yZ=sZ;fZ(lZ),fZ(cZ);var gZ=fZ(uZ),bZ=fZ(dZ);const wZ=["ownerState"],SZ=["variants"],xZ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function $Z(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return($Z=function(e){return e?r:t})(e)}function _Z(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const kZ=rZ.systemDefaultTheme=(0,gZ.default)(),EZ=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function CZ({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function jZ(e){return e?(t,r)=>r[e]:null}function PZ(e,t){let{ownerState:r}=t,n=(0,hZ.default)(t,wZ);const o="function"==typeof e?e((0,mZ.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>PZ(e,(0,mZ.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,hZ.default)(o,SZ);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,mZ.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,mZ.default)({ownerState:r},n,r)):e.style))})),t}return o}function OZ(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}var NZ=e=>OZ(e)&&"classes"!==e;var AZ=pZ({themeId:EK,defaultTheme:ZX,rootShouldForwardProp:NZ});const RZ=["theme"];function TZ(e){let{theme:t}=e,r=jK(e,RZ);const n=t[EK];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=CK({},n,{vars:null}):t&&!t.vars&&(o=CK({},t,{vars:null}))),$A.jsx(nX,CK({},r,{themeId:n?EK:void 0,theme:o}))}var IZ=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function MZ(e){return eX(e)}function FZ(e){return $Y("MuiSvgIcon",e)}_Y("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const DZ=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],zZ=AZ("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${uQ(r.color)}`],t[`fontSize${uQ(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]}})),LZ=L.forwardRef((function(e,t){const r=MZ({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=jK(r,DZ),p=L.isValidElement(n)&&"svg"===n.type,m=CK({},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 FJ({root:["root","inherit"!==t&&`color${uQ(t)}`,`fontSize${uQ(r)}`]},FZ,n)})(m);return $A.jsxs(zZ,CK({as:i,className:wY(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?$A.jsx("title",{children:u}):null]}))}));LZ.muiName="SvgIcon";var VZ=LZ;function BZ(e,t){function r(r,n){return $A.jsx(VZ,CK({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=VZ.muiName,L.memo(L.forwardRef(r))}const UZ={configure:e=>{gY.configure(e)}};var WZ=Object.freeze({__proto__:null,capitalize:uQ,createChainedFunction:uJ,createSvgIcon:BZ,debounce:dJ,deprecatedPropType:function(e,t){return()=>null},isMuiElement:fJ,ownerDocument:pJ,ownerWindow:mJ,requirePropFactory:function(e,t){return()=>null},setRef:hJ,unstable_ClassNameGenerator:UZ,unstable_useEnhancedEffect:sJ,unstable_useId:gJ,unsupportedProp:function(e,t,r,n,o){return null},useControlled:bJ,useEventCallback:wJ,useForkRef:SJ,useIsFocusVisible:TJ});function qZ(e,t){return qZ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qZ(e,t)}function KZ(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,qZ(e,t)}var HZ=!1,GZ=V.createContext(null),QZ="unmounted",YZ="exited",JZ="entering",XZ="entered",ZZ="exiting",e0=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=YZ,n.appearStatus=JZ):o=XZ:o=t.unmountOnExit||t.mountOnEnter?QZ:YZ,n.state={status:o},n.nextCallback=null,n}KZ(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===QZ?{status:YZ}: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!==JZ&&r!==XZ&&(t=JZ):r!==JZ&&r!==XZ||(t=ZZ)}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===JZ){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===YZ&&this.setState({status:QZ})},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||HZ?this.safeSetState({status:XZ},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,i),this.safeSetState({status:JZ},(function(){t.props.onEntering(a,i),t.onTransitionEnd(l,(function(){t.safeSetState({status:XZ},(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&&!HZ?(this.props.onExit(n),this.safeSetState({status:ZZ},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:YZ},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:YZ},(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===QZ)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=jK(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return V.createElement(GZ.Provider,{value:null},"function"==typeof r?r(e,n):V.cloneElement(V.Children.only(r),n))},t}(V.Component);function t0(){}e0.contextType=GZ,e0.propTypes={},e0.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:t0,onEntering:t0,onEntered:t0,onExit:t0,onExiting:t0,onExited:t0},e0.UNMOUNTED=QZ,e0.EXITED=YZ,e0.ENTERING=JZ,e0.ENTERED=XZ,e0.EXITING=ZZ;var r0=e0;function n0(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 o0(e,t,r){return null!=r[t]?r[t]:e.props[t]}function a0(e,t,r){var n=n0(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:o0(i,"exit",e),enter:o0(i,"enter",e)})):o[a]=L.cloneElement(i,{in:!1}):o[a]=L.cloneElement(i,{onExited:r.bind(null,i),in:!0,exit:o0(i,"exit",e),enter:o0(i,"enter",e)})}})),o}var i0=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},s0=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}KZ(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,n0(r.children,(function(e){return L.cloneElement(e,{onExited:n.bind(null,e),in:!0,appear:o0(e,"appear",r),enter:o0(e,"enter",r),exit:o0(e,"exit",r)})}))):a0(e,o,a),firstRender:!1}},r.handleExited=function(e,t){var r=n0(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=CK({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=jK(e,["component","childFactory"]),o=this.state.contextValue,a=i0(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?V.createElement(GZ.Provider,{value:o},a):V.createElement(GZ.Provider,{value:o},V.createElement(t,n,a))},t}(V.Component);s0.propTypes={},s0.defaultProps={component:"div",childFactory:function(e){return e}};var l0=s0;const c0=e=>e.scrollTop;function u0(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 d0(e){return $Y("MuiPaper",e)}_Y("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 f0=["className","component","elevation","square","variant"],p0=AZ("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 CK({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&&CK({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${vX("#fff",IZ(t.elevation))}, ${vX("#fff",IZ(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),m0=L.forwardRef((function(e,t){const r=MZ({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:a=1,square:i=!1,variant:s="elevation"}=r,l=jK(r,f0),c=CK({},r,{component:o,elevation:a,square:i,variant:s}),u=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return FJ({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},d0,o)})(c);return $A.jsx(p0,CK({as:o,ownerState:c,className:wY(u.root,n),ref:t},l))}));var h0=m0;var v0=_Y("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const y0=["center","classes","className"];let g0,b0,w0,S0,x0=e=>e;const $0=MG(g0||(g0=x0`
|
|
41
|
+
*/function eQ(e,t){return JG(e,t)}const tQ=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},rQ=[];function nQ(e){return rQ[0]=e,EG(rQ)}var oQ=Object.freeze({__proto__:null,GlobalStyles:ZG,StyledEngineProvider:function(e){const{injectFirst:t,enableCssLayer:r,children:n}=e,o=L.useMemo((()=>{const e=`${t}-${r}`;if("object"==typeof document&&XG.has(e))return XG.get(e);const n=function(e,t){const r=zH({key:"css",prepend:e});if(t){const e=r.insert;r.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return r}(t,r);return XG.set(e,n),n}),[t,r]);return t||r?NA.jsx(RG,{value:o,children:n}):n},ThemeContext:IG,css:UG,default:eQ,internal_processStyles:tQ,internal_serializeStyles:nQ,keyframes:WG});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 sQ(e,t,r={clone:!0}){const n=r.clone?IK({},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]=sQ(e[o],t[o],r):r.clone?n[o]=aQ(t[o])?iQ(t[o]):t[o]:n[o]=t[o]})),n}var lQ=Object.freeze({__proto__:null,default:sQ,isPlainObject:aQ});const cQ=["values","unit","step"],uQ=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)=>IK({},e,{[t.key]:t.val})),{})};function dQ(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=MK(e,cQ),a=uQ(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 IK({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 fQ={borderRadius:4};function pQ(e,t){return t?sQ(e,t,{clone:!1}):e}const mQ={xs:0,sm:600,md:900,lg:1200,xl:1536},hQ={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${mQ[e]}px)`};function yQ(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||hQ;return t.reduce(((n,o,a)=>(n[e.up(e.keys[a])]=r(t[a]),n)),{})}if("object"==typeof t){const e=n.breakpoints||hQ;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||mQ).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function vQ(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}function gQ(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function bQ({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 wQ(e){if("string"!=typeof e)throw new Error(AK(7));return e.charAt(0).toUpperCase()+e.slice(1)}var SQ=Object.freeze({__proto__:null,default:wQ});function xQ(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 $Q(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:xQ(e,r)||n,t&&(o=t(o,n,e)),o}function _Q(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=xQ(e.theme,n)||{};return yQ(e,a,(e=>{let n=$Q(i,o,e);return e===n&&"string"==typeof e&&(n=$Q(i,o,`${t}${"default"===e?"":wQ(e)}`,e)),!1===r?n:{[r]:n}}))};return a.propTypes={},a.filterProps=[t],a}const kQ={m:"margin",p:"padding"},EQ={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},CQ={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},jQ=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!CQ[e])return[e];e=CQ[e]}const[t,r]=e.split(""),n=kQ[t],o=EQ[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),PQ=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],OQ=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function NQ(e,t,r,n){var o;const a=null!=(o=xQ(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 AQ(e){return NQ(e,"spacing",8)}function RQ(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 TQ(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=RQ(t,r),e)),{})}(jQ(r),n);return yQ(e,e[r],o)}function IQ(e,t){const r=AQ(e.theme);return Object.keys(e).map((n=>TQ(e,t,n,r))).reduce(pQ,{})}function MQ(e){return IQ(e,PQ)}function FQ(e){return IQ(e,OQ)}function DQ(...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]?pQ(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function zQ(e){return"number"!=typeof e?e:`${e}px solid`}function LQ(e,t){return _Q({prop:e,themeKey:"borders",transform:t})}MQ.propTypes={},MQ.filterProps=PQ,FQ.propTypes={},FQ.filterProps=OQ;const VQ=LQ("border",zQ),BQ=LQ("borderTop",zQ),UQ=LQ("borderRight",zQ),WQ=LQ("borderBottom",zQ),qQ=LQ("borderLeft",zQ),KQ=LQ("borderColor"),HQ=LQ("borderTopColor"),GQ=LQ("borderRightColor"),QQ=LQ("borderBottomColor"),YQ=LQ("borderLeftColor"),JQ=LQ("outline",zQ),XQ=LQ("outlineColor"),ZQ=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=NQ(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:RQ(t,e)});return yQ(e,e.borderRadius,r)}return null};ZQ.propTypes={},ZQ.filterProps=["borderRadius"],DQ(VQ,BQ,UQ,WQ,qQ,KQ,HQ,GQ,QQ,YQ,ZQ,JQ,XQ);const eY=e=>{if(void 0!==e.gap&&null!==e.gap){const t=NQ(e.theme,"spacing",8),r=e=>({gap:RQ(t,e)});return yQ(e,e.gap,r)}return null};eY.propTypes={},eY.filterProps=["gap"];const tY=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=NQ(e.theme,"spacing",8),r=e=>({columnGap:RQ(t,e)});return yQ(e,e.columnGap,r)}return null};tY.propTypes={},tY.filterProps=["columnGap"];const rY=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=NQ(e.theme,"spacing",8),r=e=>({rowGap:RQ(t,e)});return yQ(e,e.rowGap,r)}return null};rY.propTypes={},rY.filterProps=["rowGap"];function nY(e,t){return"grey"===t?t:e}DQ(eY,tY,rY,_Q({prop:"gridColumn"}),_Q({prop:"gridRow"}),_Q({prop:"gridAutoFlow"}),_Q({prop:"gridAutoColumns"}),_Q({prop:"gridAutoRows"}),_Q({prop:"gridTemplateColumns"}),_Q({prop:"gridTemplateRows"}),_Q({prop:"gridTemplateAreas"}),_Q({prop:"gridArea"}));function oY(e){return e<=1&&0!==e?100*e+"%":e}DQ(_Q({prop:"color",themeKey:"palette",transform:nY}),_Q({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:nY}),_Q({prop:"backgroundColor",themeKey:"palette",transform:nY}));const aY=_Q({prop:"width",transform:oY}),iY=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])||mQ[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:oY(t)}};return yQ(e,e.maxWidth,t)}return null};iY.filterProps=["maxWidth"];const sY=_Q({prop:"minWidth",transform:oY}),lY=_Q({prop:"height",transform:oY}),cY=_Q({prop:"maxHeight",transform:oY}),uY=_Q({prop:"minHeight",transform:oY});_Q({prop:"size",cssProperty:"width",transform:oY}),_Q({prop:"size",cssProperty:"height",transform:oY});DQ(aY,iY,sY,lY,cY,uY,_Q({prop:"boxSizing"}));var dY={border:{themeKey:"borders",transform:zQ},borderTop:{themeKey:"borders",transform:zQ},borderRight:{themeKey:"borders",transform:zQ},borderBottom:{themeKey:"borders",transform:zQ},borderLeft:{themeKey:"borders",transform:zQ},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:zQ},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ZQ},color:{themeKey:"palette",transform:nY},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:nY},backgroundColor:{themeKey:"palette",transform:nY},p:{style:FQ},pt:{style:FQ},pr:{style:FQ},pb:{style:FQ},pl:{style:FQ},px:{style:FQ},py:{style:FQ},padding:{style:FQ},paddingTop:{style:FQ},paddingRight:{style:FQ},paddingBottom:{style:FQ},paddingLeft:{style:FQ},paddingX:{style:FQ},paddingY:{style:FQ},paddingInline:{style:FQ},paddingInlineStart:{style:FQ},paddingInlineEnd:{style:FQ},paddingBlock:{style:FQ},paddingBlockStart:{style:FQ},paddingBlockEnd:{style:FQ},m:{style:MQ},mt:{style:MQ},mr:{style:MQ},mb:{style:MQ},ml:{style:MQ},mx:{style:MQ},my:{style:MQ},margin:{style:MQ},marginTop:{style:MQ},marginRight:{style:MQ},marginBottom:{style:MQ},marginLeft:{style:MQ},marginX:{style:MQ},marginY:{style:MQ},marginInline:{style:MQ},marginInlineStart:{style:MQ},marginInlineEnd:{style:MQ},marginBlock:{style:MQ},marginBlockStart:{style:MQ},marginBlockEnd:{style:MQ},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:eY},rowGap:{style:rY},columnGap:{style:tY},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:oY},maxWidth:{style:iY},minWidth:{transform:oY},height:{transform:oY},maxHeight:{transform:oY},minHeight:{transform:oY},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function fY(){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=xQ(r,s)||{};if(c)return c(o);return yQ(o,t,(t=>{let r=$Q(u,l,t);return t===r&&"string"==typeof t&&(r=$Q(u,l,`${e}${"default"===t?"":wQ(t)}`,t)),!1===i?r:{[i]:r}}))}return function t(r){var n;const{sx:o,theme:a={},nested:i}=r||{};if(!o)return null;const s=null!=(n=a.unstable_sxConfig)?n:dY;function l(r){let n=r;if("function"==typeof r)n=r(a);else if("object"!=typeof r)return r;if(!n)return null;const o=vQ(a.breakpoints),l=Object.keys(o);let c=o;return Object.keys(n).forEach((r=>{const o=(i=n[r],l=a,"function"==typeof i?i(l):i);var i,l;if(null!=o)if("object"==typeof o)if(s[r])c=pQ(c,e(r,o,a,s));else{const e=yQ({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)?c=pQ(c,e):c[r]=t({sx:o,theme:a,nested:!0})}else c=pQ(c,e(r,o,a,s))})),!i&&a.modularCssLayers?{"@layer sx":gQ(l,c)}:gQ(l,c)}return Array.isArray(o)?o.map(l):l(o)}}const pY=fY();pY.filterProps=["sx"];var mY=pY;function hY(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 yY=["breakpoints","palette","spacing","shape"];function vY(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=MK(e,yY),s=dQ(r),l=function(e=8){if(e.mui)return e;const t=AQ({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=sQ({breakpoints:s,direction:"ltr",components:{},palette:IK({mode:"light"},n),spacing:l,shape:IK({},fQ,a)},i);return c.applyStyles=hY,c=t.reduce(((e,t)=>sQ(e,t)),c),c.unstable_sxConfig=IK({},dY,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return mY({sx:e,theme:this})},c}var gY=Object.freeze({__proto__:null,default:vY,private_createBreakpoints:dQ,unstable_applyStyles:hY});function bY(e=null){const t=L.useContext(IG);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const wY=vY();function SY(e=wY){return bY(e)}function xY(e){const t=nQ(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function $Y({styles:e,themeId:t,defaultTheme:r={}}){const n=SY(r),o=t&&n[t]||n;let a="function"==typeof e?e(o):e;return o.modularCssLayers&&(a=Array.isArray(a)?a.map((e=>xY("function"==typeof e?e(o):e))):xY(a)),NA.jsx(ZG,{styles:a})}const _Y=["sx"],kY=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:dY;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function EY(e){const{sx:t}=e,r=MK(e,_Y),{systemProps:n,otherProps:o}=kY(r);let a;return a=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return aQ(r)?IK({},n,r):n}:IK({},n,t),IK({},o,{sx:a})}var CY=Object.freeze({__proto__:null,default:mY,extendSxProp:EY,unstable_createStyleFunctionSx:fY,unstable_defaultSxConfig:dY});const jY=e=>e;var PY=(()=>{let e=jY;return{configure(t){e=t},generate:t=>e(t),reset(){e=jY}}})();function OY(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=OY(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function NY(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=OY(e))&&(n&&(n+=" "),n+=t);return n}const AY=["className","component"];const RY={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 TY(e,t,r="Mui"){const n=RY[t];return n?`${r}-${n}`:`${PY.generate(e)}-${t}`}function IY(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=TY(e,t,r)})),n}var MY={exports:{}},FY={},DY=Symbol.for("react.transitional.element"),zY=Symbol.for("react.portal"),LY=Symbol.for("react.fragment"),VY=Symbol.for("react.strict_mode"),BY=Symbol.for("react.profiler"),UY=Symbol.for("react.consumer"),WY=Symbol.for("react.context"),qY=Symbol.for("react.forward_ref"),KY=Symbol.for("react.suspense"),HY=Symbol.for("react.suspense_list"),GY=Symbol.for("react.memo"),QY=Symbol.for("react.lazy"),YY=Symbol.for("react.view_transition"),JY=Symbol.for("react.client.reference");function XY(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case DY:switch(e=e.type){case LY:case BY:case VY:case KY:case HY:case YY:return e;default:switch(e=e&&e.$$typeof){case WY:case qY:case QY:case GY:case UY:return e;default:return t}}case zY:return t}}}FY.ContextConsumer=UY,FY.ContextProvider=WY,FY.Element=DY,FY.ForwardRef=qY,FY.Fragment=LY,FY.Lazy=QY,FY.Memo=GY,FY.Portal=zY,FY.Profiler=BY,FY.StrictMode=VY,FY.Suspense=KY,FY.SuspenseList=HY,FY.isContextConsumer=function(e){return XY(e)===UY},FY.isContextProvider=function(e){return XY(e)===WY},FY.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===DY},FY.isForwardRef=function(e){return XY(e)===qY},FY.isFragment=function(e){return XY(e)===LY},FY.isLazy=function(e){return XY(e)===QY},FY.isMemo=function(e){return XY(e)===GY},FY.isPortal=function(e){return XY(e)===zY},FY.isProfiler=function(e){return XY(e)===BY},FY.isStrictMode=function(e){return XY(e)===VY},FY.isSuspense=function(e){return XY(e)===KY},FY.isSuspenseList=function(e){return XY(e)===HY},FY.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===LY||e===BY||e===VY||e===KY||e===HY||"object"==typeof e&&null!==e&&(e.$$typeof===QY||e.$$typeof===GY||e.$$typeof===WY||e.$$typeof===UY||e.$$typeof===qY||e.$$typeof===JY||void 0!==e.getModuleId)},FY.typeOf=XY,MY.exports=FY;var ZY=MY.exports;const eJ=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function tJ(e){const t=`${e}`.match(eJ);return t&&t[1]||""}function rJ(e,t=""){return e.displayName||e.name||tJ(e)||t}function nJ(e,t,r){const n=rJ(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var oJ=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return rJ(e,"Component");if("object"==typeof e)switch(e.$$typeof){case ZY.ForwardRef:return nJ(e,e.render,"ForwardRef");case ZY.Memo:return nJ(e,e.type,"memo");default:return}}},getFunctionName:tJ});const aJ=["ownerState"],iJ=["variants"],sJ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function lJ(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function cJ(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const uJ=vY(),dJ=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function fJ({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function pJ(e){return e?(t,r)=>r[e]:null}function mJ(e,t,r){let{ownerState:n}=t,o=MK(t,aJ);const a="function"==typeof e?e(IK({ownerState:n},o)):e;if(Array.isArray(a))return a.flatMap((e=>mJ(e,IK({ownerState:n},o),r)));if(a&&"object"==typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=MK(a,iJ);return e.forEach((e=>{let a=!0;if("function"==typeof e.props?a=e.props(IK({ownerState:n},o,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&o[t]!==e.props[t]&&(a=!1)})),a){Array.isArray(t)||(t=[t]);const a="function"==typeof e.style?e.style(IK({ownerState:n},o,n)):e.style;t.push(r?cJ(nQ(a),r):a)}})),t}return r?cJ(nQ(a),r):a}const hJ=function(e={}){const{themeId:t,defaultTheme:r=uJ,rootShouldForwardProp:n=lJ,slotShouldForwardProp:o=lJ}=e,a=e=>mY(IK({},e,{theme:fJ(IK({},e,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{tQ(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=pJ(dJ(l))}=i,f=MK(i,sJ),p=s&&s.startsWith("Mui")||l?"components":"custom",m=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,h=u||!1;let y=lJ;"Root"===l||"root"===l?y=n:l?y=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(y=void 0);const v=eQ(e,IK({shouldForwardProp:y,label:undefined},f)),g=e=>"function"==typeof e&&e.__emotion_real!==e||aQ(e)?n=>{const o=fJ({theme:n.theme,defaultTheme:r,themeId:t});return mJ(e,IK({},n,{theme:o}),o.modularCssLayers?p:void 0)}:e,b=(n,...o)=>{let i=g(n);const l=o?o.map(g):[];s&&d&&l.push((e=>{const n=fJ(IK({},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]=mJ(r,IK({},e,{theme:n}),n.modularCssLayers?"theme":void 0)})),d(e,a)})),s&&!m&&l.push((e=>{var n;const o=fJ(IK({},e,{defaultTheme:r,themeId:t}));return mJ({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},IK({},e,{theme:o}),o.modularCssLayers?"theme":void 0)})),h||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&&(b.withConfig=v.withConfig),b}}();var yJ=hJ;function vJ(e,t){const r=IK({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=IK({},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]=IK({},a),Object.keys(o).forEach((e=>{r[n][e]=vJ(o[e],a[e])}))):r[n]=a:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function gJ({props:e,name:t,defaultTheme:r,themeId:n}){let o=SY(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?vJ(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return a}var bJ="undefined"!=typeof window?L.useLayoutEffect:L.useEffect;function wJ(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var SJ=Object.freeze({__proto__:null,default:wJ});function xJ(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function $J(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function _J(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 kJ(e){return e&&e.ownerDocument||document}function EJ(e){return kJ(e).defaultView||window}function CJ(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let jJ=0;const PJ=B["useId".toString()];function OJ(e){if(void 0!==PJ){const t=PJ();return null!=e?e:t}return function(e){const[t,r]=L.useState(e),n=e||t;return L.useEffect((()=>{null==t&&(jJ+=1,r(`mui-${jJ}`))}),[t]),n}(e)}function NJ({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 AJ(e){const t=L.useRef(e);return bJ((()=>{t.current=e})),L.useRef(((...e)=>(0,t.current)(...e))).current}function RJ(...e){return L.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{CJ(e,t)}))}),e)}const TJ={};const IJ=[];class MJ{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new MJ}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function FJ(){const e=function(e,t){const r=L.useRef(TJ);return r.current===TJ&&(r.current=e(t)),r}(MJ.create).current;var t;return t=e.disposeEffect,L.useEffect(t,IJ),e}let DJ=!0,zJ=!1;const LJ=new MJ,VJ={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 BJ(e){e.metaKey||e.altKey||e.ctrlKey||(DJ=!0)}function UJ(){DJ=!1}function WJ(){"hidden"===this.visibilityState&&zJ&&(DJ=!0)}function qJ(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return DJ||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!VJ[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function KJ(){const e=L.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",BJ,!0),t.addEventListener("mousedown",UJ,!0),t.addEventListener("pointerdown",UJ,!0),t.addEventListener("touchstart",UJ,!0),t.addEventListener("visibilitychange",WJ,!0))}),[]),t=L.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!qJ(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(zJ=!0,LJ.start(100,(()=>{zJ=!1})),t.current=!1,!0)},ref:e}}function HJ(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}var GJ={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function QJ(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 YJ(e){return"string"==typeof e}function JJ(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 XJ(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 ZJ=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function eX(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=MK(e,ZJ),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=NY(null==r?void 0:r.className,a,null==o?void 0:o.className,null==n?void 0:n.className),t=IK({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),i=IK({},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=JJ(IK({},o,n)),s=XJ(n),l=XJ(o),c=t(i),u=NY(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=IK({},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=IK({},c,r,l,s);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}(IK({},i,{externalSlotProps:s})),u=function(e,t,r){return void 0===e||YJ(e)?t:IK({},t,{ownerState:IK({},t.ownerState,r)})}(r,IK({},l,{ref:RJ(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return u}function tX(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 rX=L.createContext(null);function nX(){return L.useContext(rX)}var oX="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function aX(e){const{children:t,theme:r}=e,n=nX(),o=L.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return IK({},e,t)}(n,r);return null!=e&&(e[oX]=null!==n),e}),[r,n]);return NA.jsx(rX.Provider,{value:o,children:t})}const iX=["value"],sX=L.createContext();function lX(e){let{value:t}=e,r=MK(e,iX);return NA.jsx(sX.Provider,IK({value:null==t||t},r))}const cX=()=>{const e=L.useContext(sX);return null!=e&&e},uX=L.createContext(void 0);function dX({value:e,children:t}){return NA.jsx(uX.Provider,{value:e,children:t})}function fX({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?vJ(o.defaultProps,n):o.styleOverrides||o.variants?n:vJ(o,n)}({props:e,name:t,theme:{components:L.useContext(uX)}})}const pX={};function mX(e,t,r,n=!1){return L.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const a=r(o),i=e?IK({},t,{[e]:a}):a;return n?()=>i:i}return IK({},t,e?{[e]:r}:r)}),[e,t,r,n])}function hX(e){const{children:t,theme:r,themeId:n}=e,o=bY(pX),a=nX()||pX,i=mX(n,o,r),s=mX(n,a,r,!0),l="rtl"===i.direction,c=function(e){const t=bY(),r=OJ()||"",{modularCssLayers:n}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=n&&null===t?"string"==typeof n?n.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",bJ((()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var n;if(t&&null!=(n=t.hasAttribute)&&n.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===r)return;const a=document.createElement("style");a.setAttribute("data-mui-layer-order",r),a.textContent=o,e.prepend(a)}else{var a;null==(a=e.querySelector(`style[data-mui-layer-order="${r}"]`))||a.remove()}}),[o,r]),o?NA.jsx($Y,{styles:o}):null}(i);return NA.jsx(aX,{theme:s,children:NA.jsx(IG.Provider,{value:i,children:NA.jsx(lX,{value:l,children:NA.jsxs(dX,{value:null==i?void 0:i.components,children:[c,t]})})})})}const yX=["component","direction","spacing","divider","children","className","useFlexGap"],vX=vY(),gX=yJ("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function bX(e){return gJ({props:e,name:"MuiStack",defaultTheme:vX})}function wX(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 SX=({ownerState:e,theme:t})=>{let r=IK({display:"flex",flexDirection:"column"},yQ({theme:t},bQ({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const n=AQ(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=bQ({values:e.direction,base:o}),i=bQ({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=sQ(r,yQ({theme:t},i,((t,r)=>{return e.useFlexGap?{gap:RQ(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]}`]:RQ(n,t)}};var o})))}return r=function(e,...t){const r=vQ(e),n=[r,...t].reduce(((e,t)=>sQ(e,t)),{});return gQ(Object.keys(r),n)}(t.breakpoints,r),r};var xX={},$X={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}($X);var _X=$X.exports,kX=n(RK),EX=n(SJ),CX=_X;Object.defineProperty(xX,"__esModule",{value:!0});var jX=xX.alpha=VX;xX.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),a=MX(e),i=MX(t),s=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return DX({type:"rgb",values:s})},xX.colorChannel=void 0;var PX=xX.darken=BX;xX.decomposeColor=MX,xX.emphasize=WX;var OX=xX.getContrastRatio=function(e,t){const r=LX(e),n=LX(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};xX.getLuminance=LX,xX.hexToRgb=IX,xX.hslToRgb=zX;var NX=xX.lighten=UX;xX.private_safeAlpha=function(e,t,r){try{return VX(e,t)}catch(t){return e}},xX.private_safeColorChannel=void 0,xX.private_safeDarken=function(e,t,r){try{return BX(e,t)}catch(t){return e}},xX.private_safeEmphasize=function(e,t,r){try{return WX(e,t)}catch(t){return e}},xX.private_safeLighten=function(e,t,r){try{return UX(e,t)}catch(t){return e}},xX.recomposeColor=DX,xX.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=MX(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 AX=CX(kX),RX=CX(EX);function TX(e,t=0,r=1){return(0,RX.default)(e,t,r)}function IX(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 MX(e){if(e.type)return e;if("#"===e.charAt(0))return MX(IX(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,AX.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,AX.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const FX=e=>{const t=MX(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};xX.colorChannel=FX;function DX(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 zX(e){e=MX(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])),DX({type:s,values:l})}function LX(e){let t="hsl"===(e=MX(e)).type||"hsla"===e.type?MX(zX(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 VX(e,t){return e=MX(e),t=TX(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,DX(e)}function BX(e,t){if(e=MX(e),t=TX(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 DX(e)}function UX(e,t){if(e=MX(e),t=TX(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 DX(e)}function WX(e,t=.15){return LX(e)>.5?BX(e,t):UX(e,t)}xX.private_safeColorChannel=(e,t)=>{try{return FX(e)}catch(t){return e}};const qX=["mode","contrastThreshold","tonalOffset"],KX={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:_K.white,default:_K.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}},HX={text:{primary:_K.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:_K.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 GX(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=NX(e.main,o):"dark"===t&&(e.dark=PX(e.main,a)))}function QX(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=MK(e,qX),a=e.primary||function(e="light"){return"dark"===e?{main:CK[200],light:CK[50],dark:CK[400]}:{main:CK[700],light:CK[400],dark:CK[800]}}(t),i=e.secondary||function(e="light"){return"dark"===e?{main:EK[200],light:EK[50],dark:EK[400]}:{main:EK[500],light:EK[300],dark:EK[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:kK[500],light:kK[300],dark:kK[700]}:{main:kK[700],light:kK[400],dark:kK[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:jK[400],light:jK[300],dark:jK[700]}:{main:jK[700],light:jK[500],dark:jK[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:PK[400],light:PK[300],dark:PK[700]}:{main:PK[800],light:PK[500],dark:PK[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:OK[400],light:OK[300],dark:OK[700]}:{main:"#ed6c02",light:OK[500],dark:OK[900]}}(t);function d(e){return OX(e,HX.text.primary)>=r?HX.text.primary:KX.text.primary}const f=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:a=700})=>{if(!(e=IK({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(AK(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(AK(12,t?` (${t})`:"",JSON.stringify(e.main)));return GX(e,"light",o,n),GX(e,"dark",a,n),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:HX,light:KX};return sQ(IK({common:IK({},_K),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:NK,contrastThreshold:r,getContrastText:d,augmentColor:f,tonalOffset:n},p[t]),o)}const YX=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const JX={textTransform:"uppercase"},XX='"Roboto", "Helvetica", "Arial", sans-serif';function ZX(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=XX,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=r,f=MK(r,YX),p=o/14,m=d||(e=>e/c*p+"rem"),h=(e,t,r,o,a)=>{return IK({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===XX?{letterSpacing:(i=o/t,Math.round(1e5*i)/1e5)+"em"}:{},a,u);var i},y={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,JX),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,JX),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return sQ(IK({htmlFontSize:c,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l},y),f,{clone:!1})}function eZ(...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 tZ=["none",eZ(0,2,1,-1,0,1,1,0,0,1,3,0),eZ(0,3,1,-2,0,2,2,0,0,1,5,0),eZ(0,3,3,-2,0,3,4,0,0,1,8,0),eZ(0,2,4,-1,0,4,5,0,0,1,10,0),eZ(0,3,5,-1,0,5,8,0,0,1,14,0),eZ(0,3,5,-1,0,6,10,0,0,1,18,0),eZ(0,4,5,-2,0,7,10,1,0,2,16,1),eZ(0,5,5,-3,0,8,10,1,0,3,14,2),eZ(0,5,6,-3,0,9,12,1,0,3,16,2),eZ(0,6,6,-3,0,10,14,1,0,4,18,3),eZ(0,6,7,-4,0,11,15,1,0,4,20,3),eZ(0,7,8,-4,0,12,17,2,0,5,22,4),eZ(0,7,8,-4,0,13,19,2,0,5,24,4),eZ(0,7,9,-4,0,14,21,2,0,5,26,4),eZ(0,8,9,-5,0,15,22,2,0,6,28,5),eZ(0,8,10,-5,0,16,24,2,0,6,30,5),eZ(0,8,11,-5,0,17,26,2,0,6,32,5),eZ(0,9,11,-5,0,18,28,2,0,7,34,6),eZ(0,9,12,-6,0,19,29,2,0,7,36,6),eZ(0,10,13,-6,0,20,31,3,0,8,38,7),eZ(0,10,13,-6,0,21,33,3,0,8,40,7),eZ(0,10,14,-6,0,22,35,3,0,8,42,7),eZ(0,11,14,-7,0,23,36,3,0,9,44,8),eZ(0,11,15,-7,0,24,38,3,0,9,46,8)];const rZ=["duration","easing","delay"],nZ={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)"},oZ={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function aZ(e){return`${Math.round(e)}ms`}function iZ(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function sZ(e){const t=IK({},nZ,e.easing),r=IK({},oZ,e.duration);return IK({getAutoHeightDuration:iZ,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:a=t.easeInOut,delay:i=0}=n;return MK(n,rZ),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:aZ(o)} ${a} ${"string"==typeof i?i:aZ(i)}`)).join(",")}},e,{easing:t,duration:r})}var lZ={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const cZ=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function uZ(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=MK(e,cZ);if(e.vars&&void 0===e.generateCssVars)throw new Error(AK(18));const s=QX(n),l=vY(e);let c=sQ(l,{mixins:(u=l.breakpoints,d=r,IK({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:tZ.slice(),typography:ZX(s,a),transitions:sZ(o),zIndex:IK({},lZ)});var u,d;return c=sQ(c,i),c=t.reduce(((e,t)=>sQ(e,t)),c),c.unstable_sxConfig=IK({},dY,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return mY({sx:e,theme:this})},c}var dZ=uZ();function fZ(){const e=SY(dZ);return e[TK]||e}var pZ,mZ={},hZ={exports:{}};var yZ,vZ={exports:{}};var gZ=n(oQ),bZ=n(lQ),wZ=n(SQ),SZ=n(oJ),xZ=n(gY),$Z=n(CY),_Z=_X;Object.defineProperty(mZ,"__esModule",{value:!0});var kZ=mZ.default=function(e={}){const{themeId:t,defaultTheme:r=DZ,rootShouldForwardProp:n=MZ,slotShouldForwardProp:o=MZ}=e,a=e=>(0,NZ.default)((0,EZ.default)({},e,{theme:LZ((0,EZ.default)({},e,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{(0,jZ.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=VZ(zZ(l))}=i,f=(0,CZ.default)(i,TZ),p=s&&s.startsWith("Mui")||l?"components":"custom",m=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,h=u||!1;let y=MZ;"Root"===l||"root"===l?y=n:l?y=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(y=void 0);const v=(0,jZ.default)(e,(0,EZ.default)({shouldForwardProp:y,label:undefined},f)),g=e=>"function"==typeof e&&e.__emotion_real!==e||(0,PZ.isPlainObject)(e)?n=>{const o=LZ({theme:n.theme,defaultTheme:r,themeId:t});return BZ(e,(0,EZ.default)({},n,{theme:o}),o.modularCssLayers?p:void 0)}:e,b=(n,...o)=>{let i=g(n);const l=o?o.map(g):[];s&&d&&l.push((e=>{const n=LZ((0,EZ.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]=BZ(r,(0,EZ.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)})),d(e,a)})),s&&!m&&l.push((e=>{var n;const o=LZ((0,EZ.default)({},e,{defaultTheme:r,themeId:t}));return BZ({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,EZ.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)})),h||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&&(b.withConfig=v.withConfig),b}};mZ.shouldForwardProp=MZ,mZ.systemDefaultTheme=void 0;var EZ=_Z((pZ||(pZ=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)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(hZ)),hZ.exports)),CZ=_Z((yZ||(yZ=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(vZ)),vZ.exports)),jZ=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=IZ(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}(gZ),PZ=bZ;_Z(wZ),_Z(SZ);var OZ=_Z(xZ),NZ=_Z($Z);const AZ=["ownerState"],RZ=["variants"],TZ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function IZ(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(IZ=function(e){return e?r:t})(e)}function MZ(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function FZ(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const DZ=mZ.systemDefaultTheme=(0,OZ.default)(),zZ=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function LZ({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function VZ(e){return e?(t,r)=>r[e]:null}function BZ(e,t,r){let{ownerState:n}=t,o=(0,CZ.default)(t,AZ);const a="function"==typeof e?e((0,EZ.default)({ownerState:n},o)):e;if(Array.isArray(a))return a.flatMap((e=>BZ(e,(0,EZ.default)({ownerState:n},o),r)));if(a&&"object"==typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=(0,CZ.default)(a,RZ);return e.forEach((e=>{let a=!0;if("function"==typeof e.props?a=e.props((0,EZ.default)({ownerState:n},o,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&o[t]!==e.props[t]&&(a=!1)})),a){Array.isArray(t)||(t=[t]);const a="function"==typeof e.style?e.style((0,EZ.default)({ownerState:n},o,n)):e.style;t.push(r?FZ((0,jZ.internal_serializeStyles)(a),r):a)}})),t}return r?FZ((0,jZ.internal_serializeStyles)(a),r):a}function UZ(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}var WZ=e=>UZ(e)&&"classes"!==e;var qZ=kZ({themeId:TK,defaultTheme:dZ,rootShouldForwardProp:WZ});const KZ=["theme"];function HZ(e){let{theme:t}=e,r=MK(e,KZ);const n=t[TK];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=IK({},n,{vars:null}):t&&!t.vars&&(o=IK({},t,{vars:null}))),NA.jsx(hX,IK({},r,{themeId:n?TK:void 0,theme:o}))}var GZ=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function QZ(e){return fX(e)}function YZ(e){return TY("MuiSvgIcon",e)}IY("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const JZ=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],XZ=qZ("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${wQ(r.color)}`],t[`fontSize${wQ(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]}})),ZZ=L.forwardRef((function(e,t){const r=QZ({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=MK(r,JZ),p=L.isValidElement(n)&&"svg"===n.type,m=IK({},r,{color:a,component:i,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:p}),h={};c||(h.viewBox=d);const y=(e=>{const{color:t,fontSize:r,classes:n}=e;return QJ({root:["root","inherit"!==t&&`color${wQ(t)}`,`fontSize${wQ(r)}`]},YZ,n)})(m);return NA.jsxs(XZ,IK({as:i,className:NY(y.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?NA.jsx("title",{children:u}):null]}))}));ZZ.muiName="SvgIcon";var e0=ZZ;function t0(e,t){function r(r,n){return NA.jsx(e0,IK({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=e0.muiName,L.memo(L.forwardRef(r))}const r0={configure:e=>{PY.configure(e)}};var n0=Object.freeze({__proto__:null,capitalize:wQ,createChainedFunction:xJ,createSvgIcon:t0,debounce:$J,deprecatedPropType:function(e,t){return()=>null},isMuiElement:_J,ownerDocument:kJ,ownerWindow:EJ,requirePropFactory:function(e,t){return()=>null},setRef:CJ,unstable_ClassNameGenerator:r0,unstable_useEnhancedEffect:bJ,unstable_useId:OJ,unsupportedProp:function(e,t,r,n,o){return null},useControlled:NJ,useEventCallback:AJ,useForkRef:RJ,useIsFocusVisible:KJ});function o0(e,t){return o0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o0(e,t)}function a0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o0(e,t)}var i0=!1,s0=V.createContext(null),l0="unmounted",c0="exited",u0="entering",d0="entered",f0="exiting",p0=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=c0,n.appearStatus=u0):o=d0:o=t.unmountOnExit||t.mountOnEnter?l0:c0,n.state={status:o},n.nextCallback=null,n}a0(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===l0?{status:c0}: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!==u0&&r!==d0&&(t=u0):r!==u0&&r!==d0||(t=f0)}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===u0){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===c0&&this.setState({status:l0})},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||i0?this.safeSetState({status:d0},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,i),this.safeSetState({status:u0},(function(){t.props.onEntering(a,i),t.onTransitionEnd(l,(function(){t.safeSetState({status:d0},(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&&!i0?(this.props.onExit(n),this.safeSetState({status:f0},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:c0},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:c0},(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===l0)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=MK(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return V.createElement(s0.Provider,{value:null},"function"==typeof r?r(e,n):V.cloneElement(V.Children.only(r),n))},t}(V.Component);function m0(){}p0.contextType=s0,p0.propTypes={},p0.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:m0,onEntering:m0,onEntered:m0,onExit:m0,onExiting:m0,onExited:m0},p0.UNMOUNTED=l0,p0.EXITED=c0,p0.ENTERING=u0,p0.ENTERED=d0,p0.EXITING=f0;var h0=p0;function y0(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 v0(e,t,r){return null!=r[t]?r[t]:e.props[t]}function g0(e,t,r){var n=y0(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:v0(i,"exit",e),enter:v0(i,"enter",e)})):o[a]=L.cloneElement(i,{in:!1}):o[a]=L.cloneElement(i,{onExited:r.bind(null,i),in:!0,exit:v0(i,"exit",e),enter:v0(i,"enter",e)})}})),o}var b0=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},w0=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}a0(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,y0(r.children,(function(e){return L.cloneElement(e,{onExited:n.bind(null,e),in:!0,appear:v0(e,"appear",r),enter:v0(e,"enter",r),exit:v0(e,"exit",r)})}))):g0(e,o,a),firstRender:!1}},r.handleExited=function(e,t){var r=y0(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=IK({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=MK(e,["component","childFactory"]),o=this.state.contextValue,a=b0(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?V.createElement(s0.Provider,{value:o},a):V.createElement(s0.Provider,{value:o},V.createElement(t,n,a))},t}(V.Component);w0.propTypes={},w0.defaultProps={component:"div",childFactory:function(e){return e}};var S0=w0;const x0=e=>e.scrollTop;function $0(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 _0(e){return TY("MuiPaper",e)}IY("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 k0=["className","component","elevation","square","variant"],E0=qZ("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 IK({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&&IK({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${jX("#fff",GZ(t.elevation))}, ${jX("#fff",GZ(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),C0=L.forwardRef((function(e,t){const r=QZ({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:a=1,square:i=!1,variant:s="elevation"}=r,l=MK(r,k0),c=IK({},r,{component:o,elevation:a,square:i,variant:s}),u=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return QJ({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},_0,o)})(c);return NA.jsx(E0,IK({as:o,ownerState:c,className:NY(u.root,n),ref:t},l))}));var j0=C0;var P0=IY("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const O0=["center","classes","className"];let N0,A0,R0,T0,I0=e=>e;const M0=WG(N0||(N0=I0`
|
|
42
42
|
0% {
|
|
43
43
|
transform: scale(0);
|
|
44
44
|
opacity: 0.1;
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
transform: scale(1);
|
|
49
49
|
opacity: 0.3;
|
|
50
50
|
}
|
|
51
|
-
`)),
|
|
51
|
+
`)),F0=WG(A0||(A0=I0`
|
|
52
52
|
0% {
|
|
53
53
|
opacity: 1;
|
|
54
54
|
}
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
100% {
|
|
57
57
|
opacity: 0;
|
|
58
58
|
}
|
|
59
|
-
`)),
|
|
59
|
+
`)),D0=WG(R0||(R0=I0`
|
|
60
60
|
0% {
|
|
61
61
|
transform: scale(1);
|
|
62
62
|
}
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
100% {
|
|
69
69
|
transform: scale(1);
|
|
70
70
|
}
|
|
71
|
-
`)),
|
|
71
|
+
`)),z0=qZ("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),L0=qZ((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=NY(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),p={width:i,height:i,top:-i/2+a,left:-i/2+o},m=NY(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]),NA.jsx("span",{className:f,style:p,children:NA.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(T0||(T0=I0`
|
|
72
72
|
opacity: 0;
|
|
73
73
|
position: absolute;
|
|
74
74
|
|
|
@@ -111,4 +111,4 @@
|
|
|
111
111
|
animation-iteration-count: infinite;
|
|
112
112
|
animation-delay: 200ms;
|
|
113
113
|
}
|
|
114
|
-
`),v0.rippleVisible,$0,550,(({theme:e})=>e.transitions.easing.easeInOut),v0.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),v0.child,v0.childLeaving,_0,550,(({theme:e})=>e.transitions.easing.easeInOut),v0.childPulsate,k0,(({theme:e})=>e.transitions.easing.easeInOut)),j0=L.forwardRef((function(e,t){const r=MZ({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:a}=r,i=jK(r,y0),[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=kJ(),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,$A.jsx(C0,{classes:{ripple:wY(o.ripple,v0.ripple),rippleVisible:wY(o.rippleVisible,v0.rippleVisible),ripplePulsate:wY(o.ripplePulsate,v0.ripplePulsate),child:wY(o.child,v0.child),childLeaving:wY(o.childLeaving,v0.childLeaving),childPulsate:wY(o.childPulsate,v0.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]),$A.jsx(E0,CK({className:wY(v0.root,o.root,a),ref:m},i,{children:$A.jsx(l0,{component:null,exit:!0,children:s})}))}));var P0=j0;function O0(e){return $Y("MuiButtonBase",e)}var N0=_Y("MuiButtonBase",["root","disabled","focusVisible"]);const A0=["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"],R0=AZ("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"},[`&.${N0.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),T0=L.forwardRef((function(e,t){const r=MZ({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:_,onTouchMove:k,onTouchStart:E,tabIndex:C=0,TouchRippleProps:j,touchRippleRef:P,type:O}=r,N=jK(r,A0),A=L.useRef(null),R=L.useRef(null),T=SJ(R,P),{isFocusVisibleRef:I,onFocus:M,onBlur:F,ref:D}=TJ(),[z,V]=L.useState(!1);l&&z&&V(!1),L.useImperativeHandle(n,(()=>({focusVisible:()=>{V(!0),A.current.focus()}})),[]);const[B,U]=L.useState(!1);L.useEffect((()=>{U(!0)}),[]);const W=B&&!c&&!l;function q(e,t,r=u){return wJ((n=>{t&&t(n);return!r&&R.current&&R.current[e](n),!0}))}L.useEffect((()=>{z&&d&&!c&&B&&R.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",_),Z=q("stop",k),ee=q("stop",(e=>{F(e),!1===I.current&&V(!1),p&&p(e)}),!1),te=wJ((e=>{A.current||(A.current=e.currentTarget),M(e),!0===I.current&&(V(!0),g&&g(e)),y&&y(e)})),re=()=>{const e=A.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=L.useRef(!1),oe=wJ((e=>{d&&!ne.current&&z&&R.current&&" "===e.key&&(ne.current=!0,R.current.stop(e,(()=>{R.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=wJ((e=>{d&&" "===e.key&&R.current&&z&&!e.defaultPrevented&&(ne.current=!1,R.current.stop(e,(()=>{R.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=SJ(t,D,A),ce=CK({},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=FJ({root:["root",t&&"disabled",r&&"focusVisible"]},O0,o);return r&&n&&(a.root+=` ${n}`),a})(ce);return $A.jsxs(R0,CK({as:ie,className:wY(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?$A.jsx(P0,CK({ref:T,center:o},j)):null]}))}));var I0=T0;function M0(e){return $Y("MuiIconButton",e)}var F0=_Y("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);const D0=["edge","children","className","color","disabled","disableFocusRipple","size"],z0=AZ(I0,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${uQ(r.color)}`],r.edge&&t[`edge${uQ(r.edge)}`],t[`size${uQ(r.size)}`]]}})((({theme:e,ownerState:t})=>CK({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})`:vX(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 CK({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&CK({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":CK({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:vX(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)},{[`&.${F0.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),L0=L.forwardRef((function(e,t){const r=MZ({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=jK(r,D0),d=CK({},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 FJ({root:["root",r&&"disabled","default"!==n&&`color${uQ(n)}`,o&&`edge${uQ(o)}`,`size${uQ(a)}`]},M0,t)})(d);return $A.jsx(z0,CK({className:wY(f.root,a),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},u,{ownerState:d,children:o}))}));var V0=L0;function B0(e){return $Y("MuiTypography",e)}_Y("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const U0=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],W0=AZ("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${uQ(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>CK({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}))),q0={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},K0={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},H0=L.forwardRef((function(e,t){const r=MZ({props:e,name:"MuiTypography"}),n=(e=>K0[e]||e)(r.color),o=hY(CK({},r,{color:n})),{align:a="inherit",className:i,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:f=q0}=o,p=jK(o,U0),m=CK({},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]||q0[d])||"span",v=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:i}=e;return FJ({root:["root",a,"inherit"!==e.align&&`align${uQ(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},B0,i)})(m);return $A.jsx(W0,CK({as:h,ref:t,ownerState:m,className:wY(v.root,i)},p))}));var G0=H0;var Q0=L.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[a,i]=L.useState(null),s=SJ(L.isValidElement(r)?UJ(r):null,t);if(sJ((()=>{o||i(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),sJ((()=>{if(a&&!o)return hJ(t,a),()=>{hJ(t,null)}}),[t,a,o]),o){if(L.isValidElement(r)){const e={ref:s};return L.cloneElement(r,e)}return $A.jsx(L.Fragment,{children:r})}return $A.jsx(L.Fragment,{children:a?Ju.createPortal(r,a):a})}));const Y0=["onChange","maxRows","minRows","style","value"];function J0(e){return parseInt(e,10)||0}const X0={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Z0(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const e1=L.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:a,value:i}=e,s=jK(e,Y0),{current:l}=L.useRef(null!=i),c=L.useRef(null),u=SJ(t,c),d=L.useRef(null),f=L.useRef(null),p=L.useCallback((()=>{const t=c.current,r=f.current;if(!t||!r)return;const a=mJ(t).getComputedStyle(t);if("0px"===a.width)return{outerHeightStyle:0,overflowing:!1};r.style.width=a.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const i=a.boxSizing,s=J0(a.paddingBottom)+J0(a.paddingTop),l=J0(a.borderBottomWidth)+J0(a.borderTopWidth),u=r.scrollHeight;r.value="x";const d=r.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=wJ((()=>{const e=c.current,t=p();if(!e||!t||Z0(t))return!1;const r=t.outerHeightStyle;return null!=d.current&&d.current!==r})),h=L.useCallback((()=>{const e=c.current,t=p();if(!e||!t||Z0(t))return;const r=t.outerHeightStyle;d.current!==r&&(d.current=r,e.style.height=`${r}px`),e.style.overflow=t.overflowing?"hidden":""}),[p]),v=L.useRef(-1);sJ((()=>{const e=dJ(h),t=null==c?void 0:c.current;if(!t)return;const r=mJ(t);let n;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver((()=>{m()&&(n.unobserve(t),cancelAnimationFrame(v.current),h(),v.current=requestAnimationFrame((()=>{n.observe(t)})))})),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(v.current),r.removeEventListener("resize",e),n&&n.disconnect()}}),[p,h,m]),sJ((()=>{h()}));return $A.jsxs(L.Fragment,{children:[$A.jsx("textarea",CK({value:i,onChange:e=>{l||h(),r&&r(e)},ref:u,rows:o,style:a},s)),$A.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:CK({},X0,a,{paddingTop:0,paddingBottom:0})})]})}));var t1=e1;function r1({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 n1=L.createContext(void 0);function o1(){return L.useContext(n1)}function a1(e){return $A.jsx(fY,CK({},e,{defaultTheme:ZX,themeId:EK}))}function i1(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function s1(e,t=!1){return e&&(i1(e.value)&&""!==e.value||t&&i1(e.defaultValue)&&""!==e.defaultValue)}function l1(e){return $Y("MuiInputBase",e)}var c1=_Y("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const u1=["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"],d1=(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${uQ(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},f1=(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]},p1=AZ("div",{name:"MuiInputBase",slot:"Root",overridesResolver:d1})((({theme:e,ownerState:t})=>CK({},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",[`&.${c1.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&CK({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),m1=AZ("input",{name:"MuiInputBase",slot:"Input",overridesResolver:f1})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=CK({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 CK({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] + .${c1.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},[`&.${c1.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"})})),h1=$A.jsx(a1,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),v1=L.forwardRef((function(e,t){var r;const n=MZ({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:_,onClick:k,onFocus:E,onKeyDown:C,onKeyUp:j,placeholder:P,readOnly:O,renderSuffix:N,rows:A,slotProps:R={},slots:T={},startAdornment:I,type:M="text",value:F}=n,D=jK(n,u1),z=null!=y.value?y.value:F,{current:V}=L.useRef(null!=z),B=L.useRef(),U=L.useCallback((e=>{}),[]),W=SJ(B,g,y.ref,U),[q,K]=L.useState(!1),H=o1(),G=r1({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=>{s1(e)?Q&&Q():Y&&Y()}),[Q,Y]);sJ((()=>{V&&J({value:z})}),[z,J,V]);L.useEffect((()=>{J(B.current)}),[]);let X=v,Z=y;S&&"input"===X&&(Z=CK(A?{type:void 0,minRows:A,maxRows:A}:{type:void 0,maxRows:b,minRows:w},Z),X=t1);L.useEffect((()=>{H&&H.setAdornedStart(Boolean(I))}),[H,I]);const ee=CK({},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 FJ({root:["root",`color${uQ(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",f&&"medium"!==f&&`size${uQ(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"]},l1,t)})(ee),re=T.root||l.Root||p1,ne=R.root||c.root||{},oe=T.input||l.Input||m1;return Z=CK({},Z,null!=(r=R.input)?r:c.input),$A.jsxs(L.Fragment,{children:[!f&&h1,$A.jsxs(re,CK({},ne,!DJ(re)&&{ownerState:CK({},ee,ne.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),k&&k(e)}},D,{className:wY(te.root,ne.className,s,O&&"MuiInputBase-readOnly"),children:[I,$A.jsx(n1.Provider,{value:null,children:$A.jsx(oe,CK({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:P,readOnly:O,required:G.required,rows:A,value:z,onKeyDown:C,onKeyUp:j,type:M},Z,!DJ(oe)&&{as:X,ownerState:CK({},ee,Z.ownerState)},{ref:W,className:wY(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(_K(1));J({value:t.value})}y.onChange&&y.onChange(e,...t),_&&_(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(CK({},G,{startAdornment:I})):null]}))]})}));var y1=v1;function g1(e){return $Y("MuiInput",e)}var b1=CK({},c1,_Y("MuiInput",["root","underline","input"]));function w1(e){return $Y("MuiOutlinedInput",e)}var S1=CK({},c1,_Y("MuiOutlinedInput",["root","notchedOutline","input"]));function x1(e){return $Y("MuiFilledInput",e)}var $1=CK({},c1,_Y("MuiFilledInput",["root","underline","input"])),_1=BZ($A.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const k1=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],E1={entering:{opacity:1},entered:{opacity:1}},C1=L.forwardRef((function(e,t){const r=eZ(),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=r0}=e,g=jK(e,k1),b=L.useRef(null),w=SJ(b,UJ(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)=>{c0(e);const n=u0({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)})),_=S(u),k=S(m),E=S((e=>{const t=u0({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 $A.jsx(y,CK({appear:a,in:l,nodeRef:b,onEnter:$,onEntered:_,onEntering:x,onExit:E,onExited:C,onExiting:k,addEndListener:e=>{o&&o(b.current,e)},timeout:v},g,{children:(e,t)=>L.cloneElement(i,CK({style:CK({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},E1[e],h,i.props.style),ref:w},t))}))}));var j1=C1;function P1(e){return $Y("MuiBackdrop",e)}_Y("MuiBackdrop",["root","invisible"]);const O1=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],N1=AZ("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>CK({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"}))),A1=L.forwardRef((function(e,t){var r,n,o;const a=MZ({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=j1,transitionDuration:v}=a,y=jK(a,O1),g=CK({},a,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:r}=e;return FJ({root:["root",r&&"invisible"]},P1,t)})(g),w=null!=(r=p.root)?r:u.root;return $A.jsx(h,CK({in:f,timeout:v},y,{children:$A.jsx(N1,CK({"aria-hidden":!0},w,{as:null!=(n=null!=(o=m.root)?o:c.Root)?n:l,className:wY(b.root,s,null==w?void 0:w.className),ownerState:CK({},g,null==w?void 0:w.ownerState),classes:b,ref:t,children:i}))}))}));var R1=A1;var T1=_Y("MuiBox",["root"]);const I1=XX(),M1=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,a=KG("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(oY),i=L.forwardRef((function(e,i){const s=dY(r),l=hY(e),{className:c,component:u="div"}=l,d=jK(l,SY);return $A.jsx(a,CK({as:u,ref:i,className:wY(c,o?o(n):n),theme:t&&s[t]||s},d))}));return i}({themeId:EK,defaultTheme:I1,defaultClassName:T1.root,generateClassName:gY.generate});var F1=M1;function D1(e){return $Y("MuiButton",e)}var z1=_Y("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 L1=L.createContext({});var V1=L.createContext(void 0);const B1=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],U1=e=>CK({},"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}}),W1=AZ(I0,{shouldForwardProp:e=>NZ(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${uQ(r.color)}`],t[`size${uQ(r.size)}`],t[`${r.variant}Size${uQ(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 CK({},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":CK({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:vX(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})`:vX(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})`:vX(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":CK({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${z1.focusVisible}`]:CK({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${z1.disabled}`]:CK({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 ${vX(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"},[`&.${z1.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${z1.disabled}`]:{boxShadow:"none"}})),q1=AZ("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${uQ(r.size)}`]]}})((({ownerState:e})=>CK({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},U1(e)))),K1=AZ("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${uQ(r.size)}`]]}})((({ownerState:e})=>CK({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},U1(e)))),H1=L.forwardRef((function(e,t){const r=L.useContext(L1),n=L.useContext(V1),o=MZ({props:aJ(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=jK(o,B1),w=CK({},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 CK({},i,FJ({root:["root",a,`${a}${uQ(t)}`,`size${uQ(o)}`,`${a}Size${uQ(o)}`,`color${uQ(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${uQ(o)}`],endIcon:["icon","endIcon",`iconSize${uQ(o)}`]},D1,i))})(w),x=v&&$A.jsx(q1,{className:S.startIcon,ownerState:w,children:v}),$=f&&$A.jsx(K1,{className:S.endIcon,ownerState:w,children:f}),_=n||"";return $A.jsxs(W1,CK({ownerState:w,className:wY(r.className,S.root,l,_),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:wY(S.focusVisible,p),ref:t,type:y},b,{classes:S,children:[x,a,$]}))}));var G1=H1;function Q1(e){return $Y("PrivateSwitchBase",e)}_Y("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Y1=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],J1=AZ(I0)((({ownerState:e})=>CK({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),X1=AZ("input",{shouldForwardProp:NZ})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Z1=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,$=jK(e,Y1),[_,k]=bJ({controlled:n,default:Boolean(i),name:"SwitchBase",state:"checked"}),E=o1();let C=s;E&&void 0===C&&(C=E.disabled);const j="checkbox"===S||"radio"===S,P=CK({},e,{checked:_,disabled:C,disableFocusRipple:l,edge:c}),O=(e=>{const{classes:t,checked:r,disabled:n,edge:o}=e;return FJ({root:["root",r&&"checked",n&&"disabled",o&&`edge${uQ(o)}`],input:["input"]},Q1,t)})(P);return $A.jsxs(J1,CK({component:"span",className:wY(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:P,ref:t},$,{children:[$A.jsx(X1,CK({autoFocus:r,checked:n,defaultChecked:i,className:O.input,disabled:C,id:j?d:void 0,name:m,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;k(t),v&&v(e,t)},readOnly:g,ref:p,required:b,ownerState:P,tabIndex:w,type:S},"checkbox"===S&&void 0===x?{}:{value:x},f)),_?o:u]}))}));var e2=Z1,t2=BZ($A.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"),r2=BZ($A.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"),n2=BZ($A.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 o2(e){return $Y("MuiCheckbox",e)}var a2=_Y("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);const i2=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],s2=AZ(e2,{shouldForwardProp:e=>NZ(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${uQ(r.size)}`],"default"!==r.color&&t[`color${uQ(r.color)}`]]}})((({theme:e,ownerState:t})=>CK({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})`:vX("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${a2.checked}, &.${a2.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${a2.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),l2=$A.jsx(r2,{}),c2=$A.jsx(t2,{}),u2=$A.jsx(n2,{}),d2=L.forwardRef((function(e,t){var r,n;const o=MZ({props:e,name:"MuiCheckbox"}),{checkedIcon:a=l2,color:i="primary",icon:s=c2,indeterminate:l=!1,indeterminateIcon:c=u2,inputProps:u,size:d="medium",className:f}=o,p=jK(o,i2),m=l?c:s,h=l?c:a,v=CK({},o,{color:i,indeterminate:l,size:d}),y=(e=>{const{classes:t,indeterminate:r,color:n,size:o}=e;return CK({},t,FJ({root:["root",r&&"indeterminate",`color${uQ(n)}`,`size${uQ(o)}`]},o2,t))})(v);return $A.jsx(s2,CK({type:"checkbox",inputProps:CK({"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:wY(y.root,f)},p,{classes:y}))}));var f2=d2;function p2(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function m2(e){return parseInt(mJ(e).getComputedStyle(e).paddingRight,10)||0}function h2(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&&p2(e,o)}))}function v2(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function y2(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=pJ(e);return t.body===e?mJ(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=IJ(pJ(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${m2(n)+e}px`;const t=pJ(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${m2(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=pJ(n).body;else{const t=n.parentElement,r=mJ(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 g2=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function b2(e){const t=[],r=[];return Array.from(e.querySelectorAll(g2)).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 w2(){return!0}function S2(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=b2,isEnabled:i=w2,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=SJ(UJ(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=pJ(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=pJ(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 $A.jsxs(L.Fragment,{children:[$A.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)}}),$A.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}const x2=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&&p2(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);h2(t,e.mount,e.modalRef,n,!0);const o=v2(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=v2(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=y2(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=v2(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&&p2(e.modalRef,t),h2(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&&p2(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function $2(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=x2,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=SJ(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=wJ((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||pJ(p.current).body;o.add(w(),e),m.current&&S()})),$=L.useCallback((()=>o.isTopModal(w())),[o]),_=wJ((e=>{p.current=e,e&&(u&&$()?S():m.current&&p2(m.current,b))})),k=L.useCallback((()=>{o.remove(w(),b)}),[b,o]);L.useEffect((()=>()=>{k()}),[k]),L.useEffect((()=>{u?x():g&&a||k()}),[u,k,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=zJ(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=CK({},r,t);return CK({role:"presentation"},n,{onKeyDown:E(n),ref:h})},getBackdropProps:(e={})=>CK({"aria-hidden":!0},e,{onClick:C(e),open:u}),getTransitionProps:()=>({onEnter:uJ((()=>{y(!1),i&&i()}),null==l?void 0:l.props.onEnter),onExited:uJ((()=>{y(!0),s&&s(),a&&k()}),null==l?void 0:l.props.onExited)}),rootRef:h,portalRef:_,isTopModal:$,exited:v,hasTransition:g}}function _2(e){return $Y("MuiModal",e)}_Y("MuiModal",["root","hidden","backdrop"]);const k2=["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"],E2=AZ("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})=>CK({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),C2=AZ(R1,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),j2=L.forwardRef((function(e,t){var r,n,o,a,i,s;const l=MZ({name:"MuiModal",props:e}),{BackdropComponent:c=C2,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:_=!1,keepMounted:k=!1,onBackdropClick:E,open:C,slotProps:j,slots:P}=l,O=jK(l,k2),N=CK({},l,{closeAfterTransition:f,disableAutoFocus:g,disableEnforceFocus:b,disableEscapeKeyDown:w,disablePortal:S,disableRestoreFocus:x,disableScrollLock:$,hideBackdrop:_,keepMounted:k}),{getRootProps:A,getBackdropProps:R,getTransitionProps:T,portalRef:I,isTopModal:M,exited:F,hasTransition:D}=$2(CK({},N,{rootRef:t})),z=CK({},N,{exited:F}),V=(e=>{const{open:t,exited:r,classes:n}=e;return FJ({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},_2,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==P?void 0:P.root)?n:v.Root)?r:E2,W=null!=(o=null!=(a=null==P?void 0:P.backdrop)?a:v.Backdrop)?o:c,q=null!=(i=null==j?void 0:j.root)?i:y.root,K=null!=(s=null==j?void 0:j.backdrop)?s:y.backdrop,H=BJ({elementType:U,externalSlotProps:q,externalForwardedProps:O,getSlotProps:A,additionalProps:{ref:t,as:h},ownerState:z,className:wY(d,null==q?void 0:q.className,null==V?void 0:V.root,!z.open&&z.exited&&(null==V?void 0:V.hidden))}),G=BJ({elementType:W,externalSlotProps:K,additionalProps:u,getSlotProps:e=>R(CK({},e,{onClick:t=>{E&&E(t),null!=e&&e.onClick&&e.onClick(t)}})),className:wY(null==K?void 0:K.className,null==u?void 0:u.className,null==V?void 0:V.backdrop),ownerState:z});return k||C||D&&!F?$A.jsx(Q0,{ref:I,container:m,disablePortal:S,children:$A.jsxs(U,CK({},H,{children:[!_&&c?$A.jsx(W,CK({},G)):null,$A.jsx(S2,{disableEnforceFocus:b,disableAutoFocus:g,disableRestoreFocus:x,isEnabled:M,open:C,children:L.cloneElement(p,B)})]}))}):null}));var P2=j2;function O2(e){return $Y("MuiDivider",e)}var N2=_Y("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const A2=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],R2=AZ("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})=>CK({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)`:vX(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})=>CK({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>CK({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>CK({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>CK({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),T2=AZ("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>CK({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)`}))),I2=L.forwardRef((function(e,t){const r=MZ({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=jK(r,A2),m=CK({},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 FJ({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"]},O2,n)})(m);return $A.jsx(R2,CK({as:i,className:wY(h.root,a),role:u,ref:t,ownerState:m},p,{children:o?$A.jsx(T2,{className:h.wrapper,ownerState:m,children:o}):null}))}));I2.muiSkipListHighlight=!0;var M2=I2;const F2=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],D2=AZ(p1,{shouldForwardProp:e=>NZ(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...d1(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 CK({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}},[`&.${$1.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${$1.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"},[`&.${$1.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$1.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(.${$1.disabled}, .${$1.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${$1.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&CK({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}))})),z2=AZ(m1,{name:"MuiFilledInput",slot:"Input",overridesResolver:f1})((({theme:e,ownerState:t})=>CK({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}))),L2=L.forwardRef((function(e,t){var r,n,o,a;const i=MZ({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=jK(i,F2),v=CK({},i,{fullWidth:c,inputComponent:u,multiline:d,type:m}),y=(e=>{const{classes:t,disableUnderline:r}=e;return CK({},t,FJ({root:["root",!r&&"underline"],input:["input"]},x1,t))})(i),g={root:{ownerState:v},input:{ownerState:v}},b=(null!=f?f:l)?JG(g,null!=f?f:l):g,w=null!=(r=null!=(n=p.root)?n:s.Root)?r:D2,S=null!=(o=null!=(a=p.input)?a:s.Input)?o:z2;return $A.jsx(y1,CK({slots:{root:w,input:S},componentsProps:b,fullWidth:c,inputComponent:u,multiline:d,ref:t,type:m},h,{classes:y}))}));L2.muiName="Input";var V2=L2;function B2(e){return $Y("MuiFormControl",e)}_Y("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const U2=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],W2=AZ("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>CK({},t.root,t[`margin${uQ(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>CK({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%"}))),q2=L.forwardRef((function(e,t){const r=MZ({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=jK(r,U2),y=CK({},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 FJ({root:["root","none"!==r&&`margin${uQ(r)}`,n&&"fullWidth"]},B2,t)})(y),[b,w]=L.useState((()=>{let e=!1;return n&&L.Children.forEach(n,(t=>{if(!fJ(t,["Input","Select"]))return;const r=fJ(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=>{fJ(t,["Input","Select"])&&(s1(t.props,!0)||s1(t.props.inputProps,!0))&&(e=!0)})),e})),[$,_]=L.useState(!1);s&&$&&_(!1);const k=void 0===c||s?$:c;let E;const C=L.useMemo((()=>({adornedStart:b,setAdornedStart:w,color:a,disabled:s,error:l,filled:S,focused:k,fullWidth:u,hiddenLabel:d,size:m,onBlur:()=>{_(!1)},onEmpty:()=>{x(!1)},onFilled:()=>{x(!0)},onFocus:()=>{_(!0)},registerEffect:E,required:p,variant:h})),[b,a,s,l,S,k,u,d,E,p,m,h]);return $A.jsx(n1.Provider,{value:C,children:$A.jsx(W2,CK({as:i,ownerState:y,className:wY(g.root,o),ref:t},v,{children:n}))})}));var K2=q2;const H2=function(e={}){const{createStyledComponent:t=iX,useThemeProps:r=sX,componentName:n="MuiStack"}=e,o=t(cX),a=L.forwardRef((function(e,t){const a=hY(r(e)),{component:i="div",direction:s="column",spacing:l=0,divider:c,children:u,className:d,useFlexGap:f=!1}=a,p=jK(a,oX),m={direction:s,spacing:l,useFlexGap:f},h=FJ({root:["root"]},(e=>$Y(n,e)),{});return $A.jsx(o,CK({as:i,ownerState:m,ref:t,className:wY(h.root,d)},p,{children:c?lX(u,c):u}))}));return a}({createStyledComponent:AZ("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>MZ({props:e,name:"MuiStack"})});var G2=H2;function Q2(e){return $Y("MuiFormControlLabel",e)}var Y2=_Y("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);const J2=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],X2=AZ("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Y2.label}`]:t.label},t.root,t[`labelPlacement${uQ(r.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>CK({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Y2.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},{[`& .${Y2.label}`]:{[`&.${Y2.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),Z2=AZ("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${Y2.error}`]:{color:(e.vars||e).palette.error.main}}))),e5=L.forwardRef((function(e,t){var r,n;const o=MZ({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=jK(o,J2),h=o1(),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=r1({props:o,muiFormControl:h,states:["error"]}),w=CK({},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 FJ({root:["root",r&&"disabled",`labelPlacement${uQ(n)}`,o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]},Q2,t)})(w),x=null!=(n=p.typography)?n:i.typography;let $=u;return null==$||$.type===G0||c||($=$A.jsx(G0,CK({component:"span"},x,{className:wY(S.label,null==x?void 0:x.className),children:$}))),$A.jsxs(X2,CK({className:wY(S.root,a),ownerState:w,ref:t},m,{children:[L.cloneElement(s,g),y?$A.jsxs(G2,{display:"block",children:[$,$A.jsxs(Z2,{ownerState:w,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):$]}))}));var t5=e5;function r5(e){return $Y("MuiFormGroup",e)}_Y("MuiFormGroup",["root","row","error"]);const n5=["className","row"],o5=AZ("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})((({ownerState:e})=>CK({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"}))),a5=L.forwardRef((function(e,t){const r=MZ({props:e,name:"MuiFormGroup"}),{className:n,row:o=!1}=r,a=jK(r,n5),i=CK({},r,{row:o,error:r1({props:r,muiFormControl:o1(),states:["error"]}).error}),s=(e=>{const{classes:t,row:r,error:n}=e;return FJ({root:["root",r&&"row",n&&"error"]},r5,t)})(i);return $A.jsx(o5,CK({className:wY(s.root,n),ownerState:i,ref:t},a))}));var i5=a5;function s5(e){return $Y("MuiFormHelperText",e)}var l5,c5=_Y("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);const u5=["children","className","component","disabled","error","filled","focused","margin","required","variant"],d5=AZ("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${uQ(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})((({theme:e,ownerState:t})=>CK({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${c5.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${c5.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),f5=L.forwardRef((function(e,t){const r=MZ({props:e,name:"MuiFormHelperText"}),{children:n,className:o,component:a="p"}=r,i=jK(r,u5),s=r1({props:r,muiFormControl:o1(),states:["variant","size","disabled","error","filled","focused","required"]}),l=CK({},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 FJ({root:["root",o&&"disabled",a&&"error",n&&`size${uQ(n)}`,r&&"contained",s&&"focused",i&&"filled",l&&"required"]},s5,t)})(l);return $A.jsx(d5,CK({as:a,ownerState:l,className:wY(c.root,o),ref:t},i,{children:" "===n?l5||(l5=$A.jsx("span",{className:"notranslate",children:""})):n}))}));var p5=f5;function m5(e){return $Y("MuiFormLabel",e)}var h5=_Y("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);const v5=["children","className","color","component","disabled","error","filled","focused","required"],y5=AZ("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>CK({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>CK({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${h5.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${h5.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${h5.error}`]:{color:(e.vars||e).palette.error.main}}))),g5=AZ("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${h5.error}`]:{color:(e.vars||e).palette.error.main}}))),b5=L.forwardRef((function(e,t){const r=MZ({props:e,name:"MuiFormLabel"}),{children:n,className:o,component:a="label"}=r,i=jK(r,v5),s=r1({props:r,muiFormControl:o1(),states:["color","required","focused","disabled","error","filled"]}),l=CK({},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 FJ({root:["root",`color${uQ(r)}`,o&&"disabled",a&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]},m5,t)})(l);return $A.jsxs(y5,CK({as:a,ownerState:l,className:wY(c.root,o),ref:t},i,{children:[n,s.required&&$A.jsxs(g5,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:[" ","*"]})]}))}));var w5=b5;var S5=L.createContext();function x5(e){return $Y("MuiGrid",e)}const $5=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],_5=_Y("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}`)),...$5.map((e=>`grid-xs-${e}`)),...$5.map((e=>`grid-sm-${e}`)),...$5.map((e=>`grid-md-${e}`)),...$5.map((e=>`grid-lg-${e}`)),...$5.map((e=>`grid-xl-${e}`))]),k5=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function E5(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function C5({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 j5=AZ("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})=>CK({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 iQ({theme:e},cQ({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${_5.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:r,rowSpacing:n}=t;let o={};if(r&&0!==n){const t=cQ({values:n,breakpoints:e.breakpoints.values});let r;"object"==typeof t&&(r=C5({breakpoints:e.breakpoints.values,values:t})),o=iQ({theme:e},t,((t,n)=>{var o;const a=e.spacing(t);return"0px"!==a?{marginTop:`-${E5(a)}`,[`& > .${_5.item}`]:{paddingTop:E5(a)}}:null!=(o=r)&&o.includes(n)?{}:{marginTop:0,[`& > .${_5.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:r,columnSpacing:n}=t;let o={};if(r&&0!==n){const t=cQ({values:n,breakpoints:e.breakpoints.values});let r;"object"==typeof t&&(r=C5({breakpoints:e.breakpoints.values,values:t})),o=iQ({theme:e},t,((t,n)=>{var o;const a=e.spacing(t);return"0px"!==a?{width:`calc(100% + ${E5(a)})`,marginLeft:`-${E5(a)}`,[`& > .${_5.item}`]:{paddingLeft:E5(a)}}:null!=(o=r)&&o.includes(n)?{}:{width:"100%",marginLeft:0,[`& > .${_5.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=cQ({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} + ${E5(r)})`;c={flexBasis:e,maxWidth:e}}}a=CK({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 P5=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 FJ({root:["root",r&&"container",o&&"item",s&&"zeroMinWidth",...c,"row"!==n&&`direction-xs-${String(n)}`,"wrap"!==i&&`wrap-xs-${String(i)}`,...u]},x5,t)},O5=L.forwardRef((function(e,t){const r=MZ({props:e,name:"MuiGrid"}),{breakpoints:n}=eZ(),o=hY(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=jK(o,k5),y=f||p,g=s||p,b=L.useContext(S5),w=c?i||12:b,S={},x=CK({},v);n.keys.forEach((e=>{null!=v[e]&&(S[e]=v[e],delete x[e])}));const $=CK({},o,{columns:w,container:c,direction:u,item:d,rowSpacing:y,columnSpacing:g,wrap:m,zeroMinWidth:h,spacing:p},S,{breakpoints:n.keys}),_=P5($);return $A.jsx(S5.Provider,{value:w,children:$A.jsx(j5,CK({ownerState:$,className:wY(_.root,a),as:l,ref:t},x))})}));var N5=O5;const A5=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function R5(e){return`scale(${e}, ${e**2})`}const T5={entering:{opacity:1,transform:R5(1)},entered:{opacity:1,transform:"none"}},I5="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),M5=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=r0}=e,v=jK(e,A5),y=kJ(),g=L.useRef(),b=eZ(),w=L.useRef(null),S=SJ(w,UJ(o),t),x=e=>t=>{if(e){const r=w.current;void 0===t?e(r):e(r,t)}},$=x(c),_=x(((e,t)=>{c0(e);const{duration:r,delay:n,easing:o}=u0({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:I5?i:.666*i,delay:n,easing:o})].join(","),s&&s(e,t)})),k=x(l),E=x(f),C=x((e=>{const{duration:t,delay:r,easing:n}=u0({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:I5?o:.666*o,delay:I5?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=R5(.75),u&&u(e)})),j=x(d);return $A.jsx(h,CK({appear:n,in:i,nodeRef:w,onEnter:_,onEntered:k,onEntering:$,onExit:C,onExited:j,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,CK({style:CK({opacity:0,transform:R5(.75),visibility:"exited"!==e||i?void 0:"hidden"},T5[e],p,o.props.style),ref:S},t))}))}));M5.muiSupportAuto=!0;var F5=M5;const D5=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],z5=AZ(p1,{shouldForwardProp:e=>NZ(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...d1(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})`),CK({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"},[`&.${b1.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${b1.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(.${b1.disabled}, .${b1.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${b1.disabled}:before`]:{borderBottomStyle:"dotted"}})})),L5=AZ(m1,{name:"MuiInput",slot:"Input",overridesResolver:f1})({}),V5=L.forwardRef((function(e,t){var r,n,o,a;const i=MZ({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=jK(i,D5),y=(e=>{const{classes:t,disableUnderline:r}=e;return CK({},t,FJ({root:["root",!r&&"underline"],input:["input"]},g1,t))})(i),g={root:{ownerState:{disableUnderline:s}}},b=(null!=p?p:c)?JG(null!=p?p:c,g):g,w=null!=(r=null!=(n=m.root)?n:l.Root)?r:z5,S=null!=(o=null!=(a=m.input)?a:l.Input)?o:L5;return $A.jsx(y1,CK({slots:{root:w,input:S},slotProps:b,fullWidth:u,inputComponent:d,multiline:f,ref:t,type:h},v,{classes:y}))}));V5.muiName="Input";var B5=V5;function U5(e){return $Y("MuiInputLabel",e)}_Y("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const W5=["disableAnimation","margin","shrink","variant","className"],q5=AZ(w5,{shouldForwardProp:e=>NZ(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${h5.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})=>CK({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&&CK({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&&CK({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&&CK({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)"})))),K5=L.forwardRef((function(e,t){const r=MZ({name:"MuiInputLabel",props:e}),{disableAnimation:n=!1,shrink:o,className:a}=r,i=jK(r,W5),s=o1();let l=o;void 0===l&&s&&(l=s.filled||s.focused||s.adornedStart);const c=r1({props:r,muiFormControl:s,states:["size","variant","required","focused"]}),u=CK({},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 CK({},t,FJ({root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&"normal"!==n&&`size${uQ(n)}`,i],asterisk:[s&&"asterisk"]},U5,t))})(u);return $A.jsx(q5,CK({"data-shrink":l,ownerState:u,ref:t,className:wY(d.root,a)},i,{classes:d}))}));var H5=K5;var G5=L.createContext({});function Q5(e){return $Y("MuiList",e)}_Y("MuiList",["root","padding","dense","subheader"]);const Y5=["children","className","component","dense","disablePadding","subheader"],J5=AZ("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})=>CK({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),X5=L.forwardRef((function(e,t){const r=MZ({props:e,name:"MuiList"}),{children:n,className:o,component:a="ul",dense:i=!1,disablePadding:s=!1,subheader:l}=r,c=jK(r,Y5),u=L.useMemo((()=>({dense:i})),[i]),d=CK({},r,{component:a,dense:i,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return FJ({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Q5,t)})(d);return $A.jsx(G5.Provider,{value:u,children:$A.jsxs(J5,CK({as:a,className:wY(f.root,o),ref:t,ownerState:d},c,{children:[l,n]}))})}));var Z5=X5;function e4(e){return $Y("MuiListItem",e)}var t4=_Y("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var r4=_Y("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function n4(e){return $Y("MuiListItemSecondaryAction",e)}_Y("MuiListItemSecondaryAction",["root","disableGutters"]);const o4=["className"],a4=AZ("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})((({ownerState:e})=>CK({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),i4=L.forwardRef((function(e,t){const r=MZ({props:e,name:"MuiListItemSecondaryAction"}),{className:n}=r,o=jK(r,o4),a=CK({},r,{disableGutters:L.useContext(G5).disableGutters}),i=(e=>{const{disableGutters:t,classes:r}=e;return FJ({root:["root",t&&"disableGutters"]},n4,r)})(a);return $A.jsx(a4,CK({className:wY(i.root,n),ownerState:a,ref:t},o))}));i4.muiName="ListItemSecondaryAction";var s4=i4;const l4=["className"],c4=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],u4=AZ("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})=>CK({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&CK({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${r4.root}`]:{paddingRight:48}},{[`&.${t4.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${t4.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:vX(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${t4.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:vX(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${t4.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"}},[`&.${t4.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:vX(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})`:vX(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),d4=AZ("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),f4=L.forwardRef((function(e,t){const r=MZ({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,$=jK(r.ContainerProps,l4),_=jK(r,c4),k=L.useContext(G5),E=L.useMemo((()=>({dense:p||k.dense||!1,alignItems:n,disableGutters:h})),[n,k.dense,p,h]),C=L.useRef(null);sJ((()=>{o&&C.current&&C.current.focus()}),[o]);const j=L.Children.toArray(i),P=j.length&&fJ(j[j.length-1],["ListItemSecondaryAction"]),O=CK({},r,{alignItems:n,autoFocus:o,button:a,dense:E.dense,disabled:m,disableGutters:h,disablePadding:v,divider:y,hasSecondaryAction:P,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 FJ({root:["root",o&&"dense",!i&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",r&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},e4,n)})(O),A=SJ(C,t),R=x.root||c.Root||u4,T=S.root||u.root||{},I=CK({className:wY(N.root,T.className,s),disabled:m},_);let M=l||"li";return a&&(I.component=l||"div",I.focusVisibleClassName=wY(t4.focusVisible,g),M=I0),P?(M=I.component||l?M:"div","li"===d&&("li"===M?M="div":"li"===I.component&&(I.component="div")),$A.jsx(G5.Provider,{value:E,children:$A.jsxs(d4,CK({as:d,className:wY(N.container,f),ref:A,ownerState:O},$,{children:[$A.jsx(R,CK({},T,!DJ(R)&&{as:M,ownerState:CK({},O,T.ownerState)},I,{children:j})),j.pop()]}))})):$A.jsx(G5.Provider,{value:E,children:$A.jsxs(R,CK({},T,{as:M,ref:A},!DJ(R)&&{ownerState:CK({},O,T.ownerState)},I,{children:[j,b&&$A.jsx(s4,{children:b})]}))})}));var p4=f4;function m4(e){return $Y("MuiListItemIcon",e)}var h4=_Y("MuiListItemIcon",["root","alignItemsFlexStart"]);const v4=["className"],y4=AZ("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})=>CK({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),g4=L.forwardRef((function(e,t){const r=MZ({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=jK(r,v4),a=CK({},r,{alignItems:L.useContext(G5).alignItems}),i=(e=>{const{alignItems:t,classes:r}=e;return FJ({root:["root","flex-start"===t&&"alignItemsFlexStart"]},m4,r)})(a);return $A.jsx(y4,CK({className:wY(i.root,n),ownerState:a,ref:t},o))}));var b4=g4;function w4(e){return $Y("MuiListItemText",e)}var S4=_Y("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const x4=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],$4=AZ("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${S4.primary}`]:t.primary},{[`& .${S4.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})((({ownerState:e})=>CK({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),_4=L.forwardRef((function(e,t){const r=MZ({props:e,name:"MuiListItemText"}),{children:n,className:o,disableTypography:a=!1,inset:i=!1,primary:s,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:u}=r,d=jK(r,x4),{dense:f}=L.useContext(G5);let p=null!=s?s:n,m=c;const h=CK({},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 FJ({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},w4,t)})(h);return null==p||p.type===G0||a||(p=$A.jsx(G0,CK({variant:f?"body2":"body1",className:v.primary,component:null!=l&&l.variant?void 0:"span",display:"block"},l,{children:p}))),null==m||m.type===G0||a||(m=$A.jsx(G0,CK({variant:"body2",className:v.secondary,color:"text.secondary",display:"block"},u,{children:m}))),$A.jsxs($4,CK({className:wY(v.root,o),ownerState:h,ref:t},d,{children:[p,m]}))}));var k4=_4;const E4=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function C4(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function j4(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function P4(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 O4(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")&&P4(s,a)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const N4=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=jK(e,E4),f=L.useRef(null),p=L.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});sJ((()=>{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=`${IJ(pJ(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,f.current.style.width=`calc(100% + ${r})`}return f.current}})),[]);const m=SJ(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 $A.jsx(Z5,CK({role:"menu",ref:m,className:i,onKeyDown:e=>{const t=f.current,r=e.key,n=pJ(t).activeElement;if("ArrowDown"===r)e.preventDefault(),O4(t,n,l,s,C4);else if("ArrowUp"===r)e.preventDefault(),O4(t,n,l,s,j4);else if("Home"===r)e.preventDefault(),O4(t,null,l,s,C4);else if("End"===r)e.preventDefault(),O4(t,null,l,s,j4);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&&P4(n,o);o.previousKeyMatched&&(l||O4(t,n,!1,s,C4,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:n?0:-1},d,{children:v}))}));var A4=N4;function R4(e){return $Y("MuiPopover",e)}_Y("MuiPopover",["root","paper"]);const T4=["onEntering"],I4=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],M4=["slotProps"];function F4(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function D4(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function z4(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function L4(e){return"function"==typeof e?e():e}const V4=AZ(P2,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),B4=AZ(h0,{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}),U4=L.forwardRef((function(e,t){var r,n,o;const a=MZ({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=F5,transitionDuration:x="auto",TransitionProps:{onEntering:$}={},disableScrollLock:_=!1}=a,k=jK(a.TransitionProps,T4),E=jK(a,I4),C=null!=(r=null==b?void 0:b.paper)?r:y,j=L.useRef(),P=SJ(j,C.ref),O=CK({},a,{anchorOrigin:l,anchorReference:u,elevation:m,marginThreshold:h,externalPaperSlotProps:C,transformOrigin:w,TransitionComponent:S,transitionDuration:x,TransitionProps:k}),N=(e=>{const{classes:t}=e;return FJ({root:["root"],paper:["paper"]},R4,t)})(O),A=L.useCallback((()=>{if("anchorPosition"===u)return c;const e=L4(s),t=(e&&1===e.nodeType?e:pJ(j.current).body).getBoundingClientRect();return{top:t.top+F4(t,l.vertical),left:t.left+D4(t,l.horizontal)}}),[s,l.horizontal,l.vertical,c,u]),R=L.useCallback((e=>({vertical:F4(e,w.vertical),horizontal:D4(e,w.horizontal)})),[w.horizontal,w.vertical]),T=L.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=R(t);if("none"===u)return{top:null,left:null,transformOrigin:z4(r)};const n=A();let o=n.top-r.vertical,a=n.left-r.horizontal;const i=o+t.height,l=a+t.width,c=mJ(L4(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:z4(r)}}),[s,u,A,R,h]),[I,M]=L.useState(v),F=L.useCallback((()=>{const e=j.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((()=>(_&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[s,_,F]);L.useEffect((()=>{v&&F()})),L.useImperativeHandle(i,(()=>v?{updatePosition:()=>{F()}}:null),[v,F]),L.useEffect((()=>{if(!v)return;const e=dJ((()=>{F()})),t=mJ(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?pJ(L4(s)).body:void 0),V=null!=(n=null==g?void 0:g.root)?n:V4,B=null!=(o=null==g?void 0:g.paper)?o:B4,U=BJ({elementType:B,externalSlotProps:CK({},C,{style:I?C.style:CK({},C.style,{opacity:0})}),additionalProps:{elevation:m,ref:P},ownerState:O,className:wY(N.paper,null==C?void 0:C.className)}),W=BJ({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:wY(N.root,f)}),{slotProps:q}=W,K=jK(W,M4);return $A.jsx(V,CK({},K,!DJ(V)&&{slotProps:q,disableScrollLock:_},{children:$A.jsx(S,CK({appear:!0,in:v,onEntering:(e,t)=>{$&&$(e,t),F()},onExited:()=>{M(!1)},timeout:D},k,{children:$A.jsx(B,CK({},U,{children:d}))}))}))}));var W4=U4;function q4(e){return $Y("MuiMenu",e)}_Y("MuiMenu",["root","paper","list"]);const K4=["onEntering"],H4=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],G4={vertical:"top",horizontal:"right"},Q4={vertical:"top",horizontal:"left"},Y4=AZ(W4,{shouldForwardProp:e=>NZ(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),J4=AZ(B4,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),X4=AZ(A4,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Z4=L.forwardRef((function(e,t){var r,n;const o=MZ({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=jK(o.TransitionProps,K4),w=jK(o,H4),S=JJ(),x=CK({},o,{autoFocus:a,disableAutoFocusItem:l,MenuListProps:c,onEntering:h,PaperProps:f,transitionDuration:m,TransitionProps:b,variant:v}),$=(e=>{const{classes:t}=e;return FJ({root:["root"],paper:["paper"],list:["list"]},q4,t)})(x),_=a&&!l&&d,k=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:J4,j=null!=(n=g.paper)?n:f,P=BJ({elementType:y.root,externalSlotProps:g.root,ownerState:x,className:[$.root,s]}),O=BJ({elementType:C,externalSlotProps:j,ownerState:x,className:$.paper});return $A.jsx(Y4,CK({onClose:u,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?G4:Q4,slots:{paper:C,root:y.root},slotProps:{root:P,paper:O},open:d,ref:t,transitionDuration:m,TransitionProps:CK({onEntering:(e,t)=>{k.current&&k.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),h&&h(e,t)}},b),ownerState:x},w,{classes:p,children:$A.jsx(X4,CK({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),u&&u(e,"tabKeyDown"))},actions:k,autoFocus:a&&(-1===E||l),autoFocusItem:_,variant:v},c,{className:wY($.list,c.className),children:i}))}))}));var e3=Z4;function t3(e){return $Y("MuiMenuItem",e)}var r3=_Y("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const n3=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],o3=AZ(I0,{shouldForwardProp:e=>NZ(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})=>CK({},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"}},[`&.${r3.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:vX(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${r3.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:vX(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${r3.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:vX(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})`:vX(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${r3.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${r3.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${N2.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${N2.inset}`]:{marginLeft:52},[`& .${S4.root}`]:{marginTop:0,marginBottom:0},[`& .${S4.inset}`]:{paddingLeft:36},[`& .${h4.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&CK({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${h4.root} svg`]:{fontSize:"1.25rem"}})))),a3=L.forwardRef((function(e,t){const r=MZ({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=jK(r,n3),p=L.useContext(G5),m=L.useMemo((()=>({dense:a||p.dense||!1,disableGutters:s})),[p.dense,a,s]),h=L.useRef(null);sJ((()=>{n&&h.current&&h.current.focus()}),[n]);const v=CK({},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 CK({},i,FJ({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},t3,i))})(r),g=SJ(h,t);let b;return r.disabled||(b=void 0!==u?u:-1),$A.jsx(G5.Provider,{value:m,children:$A.jsx(o3,CK({ref:g,role:c,tabIndex:b,component:o,focusVisibleClassName:wY(y.focusVisible,l),className:wY(y.root,d)},f,{ownerState:v,classes:y}))})}));var i3=a3;function s3(e){return $Y("MuiNativeSelect",e)}var l3=_Y("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const c3=["className","disabled","error","IconComponent","inputRef","variant"],u3=({ownerState:e,theme:t})=>CK({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":CK({},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"},[`&.${l3.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}}),d3=AZ("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:NZ,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${l3.multiple}`]:t.multiple}]}})(u3),f3=({ownerState:e,theme:t})=>CK({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${l3.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),p3=AZ("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${uQ(r.variant)}`],r.open&&t.iconOpen]}})(f3),m3=L.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:a,inputRef:i,variant:s="standard"}=e,l=jK(e,c3),c=CK({},e,{disabled:n,variant:s,error:o}),u=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e;return FJ({select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${uQ(r)}`,a&&"iconOpen",n&&"disabled"]},s3,t)})(c);return $A.jsxs(L.Fragment,{children:[$A.jsx(d3,CK({ownerState:c,className:wY(u.select,r),disabled:n,ref:i||t},l)),e.multiple?null:$A.jsx(p3,{as:a,ownerState:c,className:u.icon})]})}));var h3,v3=m3;const y3=["children","classes","className","label","notched"],g3=AZ("fieldset",{shouldForwardProp:NZ})({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%"}),b3=AZ("legend",{shouldForwardProp:NZ})((({ownerState:e,theme:t})=>CK({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&&CK({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 w3=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],S3=AZ(p1,{shouldForwardProp:e=>NZ(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:d1})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return CK({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${S1.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${S1.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${S1.focused} .${S1.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${S1.error} .${S1.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${S1.disabled} .${S1.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&CK({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),x3=AZ((function(e){const{className:t,label:r,notched:n}=e,o=jK(e,y3),a=null!=r&&""!==r,i=CK({},e,{notched:n,withLabel:a});return $A.jsx(g3,CK({"aria-hidden":!0,className:t,ownerState:i},o,{children:$A.jsx(b3,{ownerState:i,children:a?$A.jsx("span",{children:r}):h3||(h3=$A.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}})),$3=AZ(m1,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:f1})((({theme:e,ownerState:t})=>CK({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}))),_3=L.forwardRef((function(e,t){var r,n,o,a,i;const s=MZ({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=jK(s,w3),y=(e=>{const{classes:t}=e;return CK({},t,FJ({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},w1,t))})(s),g=o1(),b=r1({props:s,muiFormControl:g,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),w=CK({},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:S3,x=null!=(o=null!=(a=m.input)?a:l.Input)?o:$3;return $A.jsx(y1,CK({slots:{root:S,input:x},renderSuffix:e=>$A.jsx(x3,{ownerState:w,className:y.notchedOutline,label:null!=d&&""!==d&&b.required?i||(i=$A.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:CK({},y,{notchedOutline:null})}))}));_3.muiName="Input";var k3=_3,E3=BZ($A.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"),C3=BZ($A.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 j3=AZ("span",{shouldForwardProp:NZ})({position:"relative",display:"flex"}),P3=AZ(E3)({transform:"scale(1)"}),O3=AZ(C3)((({theme:e,ownerState:t})=>CK({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 N3(e){const{checked:t=!1,classes:r={},fontSize:n}=e,o=CK({},e,{checked:t});return $A.jsxs(j3,{className:r.root,ownerState:o,children:[$A.jsx(P3,{fontSize:n,className:r.background,ownerState:o}),$A.jsx(O3,{fontSize:n,className:r.dot,ownerState:o})]})}var A3=L.createContext(void 0);function R3(e){return $Y("MuiRadio",e)}var T3=_Y("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]);const I3=["checked","checkedIcon","color","icon","name","onChange","size","className"],M3=AZ(e2,{shouldForwardProp:e=>NZ(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"medium"!==r.size&&t[`size${uQ(r.size)}`],t[`color${uQ(r.color)}`]]}})((({theme:e,ownerState:t})=>CK({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})`:vX("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${T3.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${T3.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const F3=$A.jsx(N3,{checked:!0}),D3=$A.jsx(N3,{}),z3=L.forwardRef((function(e,t){var r,n;const o=MZ({props:e,name:"MuiRadio"}),{checked:a,checkedIcon:i=F3,color:s="primary",icon:l=D3,name:c,onChange:u,size:d="medium",className:f}=o,p=jK(o,I3),m=CK({},o,{color:s,size:d}),h=(e=>{const{classes:t,color:r,size:n}=e;return CK({},t,FJ({root:["root",`color${uQ(r)}`,"medium"!==n&&`size${uQ(n)}`]},R3,t))})(m),v=L.useContext(A3);let y=a;const g=uJ(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)),$A.jsx(M3,CK({type:"radio",icon:L.cloneElement(l,{fontSize:null!=(r=D3.props.fontSize)?r:d}),checkedIcon:L.cloneElement(i,{fontSize:null!=(n=F3.props.fontSize)?n:d}),ownerState:m,classes:h,name:b,checked:y,onChange:g,ref:t,className:wY(h.root,f)},p))}));var L3=z3;function V3(e){return $Y("MuiRadioGroup",e)}_Y("MuiRadioGroup",["root","row","error"]);const B3=["actions","children","className","defaultValue","name","onChange","value"],U3=L.forwardRef((function(e,t){const{actions:r,children:n,className:o,defaultValue:a,name:i,onChange:s,value:l}=e,c=jK(e,B3),u=L.useRef(null),d=(e=>{const{classes:t,row:r,error:n}=e;return FJ({root:["root",r&&"row",n&&"error"]},V3,t)})(e),[f,p]=bJ({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=SJ(t,u),h=gJ(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 $A.jsx(A3.Provider,{value:v,children:$A.jsx(i5,CK({role:"radiogroup",ref:m,className:wY(d.root,o)},c,{children:n}))})}));var W3=U3;function q3(e){return $Y("MuiSelect",e)}var K3,H3=_Y("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const G3=["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"],Q3=AZ("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${H3.select}`]:t.select},{[`&.${H3.select}`]:t[r.variant]},{[`&.${H3.error}`]:t.error},{[`&.${H3.multiple}`]:t.multiple}]}})(u3,{[`&.${H3.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Y3=AZ("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${uQ(r.variant)}`],r.open&&t.iconOpen]}})(f3),J3=AZ("input",{shouldForwardProp:e=>OZ(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 X3(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Z3(e){return null==e||"string"==typeof e&&!e.trim()}const e6=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:_,open:k,readOnly:E,renderValue:C,SelectDisplayProps:j={},tabIndex:P,value:O,variant:N="standard"}=e,A=jK(e,G3),[R,T]=bJ({controlled:O,default:u,name:"Select"}),[I,M]=bJ({controlled:k,default:c,name:"Select"}),F=L.useRef(null),D=L.useRef(null),[z,V]=L.useState(null),{current:B}=L.useRef(null!=k),[U,W]=L.useState(),q=SJ(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:R})),[R]),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=pJ(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?_&&_(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(R)?R.slice():[];const t=R.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),R!==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 A["aria-invalid"];const ee=[];let te=!1;(s1({value:R})||f)&&(C?X=C(R):te=!0);const re=Q.map((e=>{if(!L.isValidElement(e))return null;let t;if(g){if(!Array.isArray(R))throw new Error(_K(2));t=R.some((t=>X3(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=X3(R,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!==P?P:d?null:0;const ae=j.id||(b?`mui-component-select-${b}`:void 0),ie=CK({},e,{variant:N,value:R,open:J,error:p}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e;return FJ({select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${uQ(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},q3,t)})(ie),le=CK({},y.PaperProps,null==(r=y.slotProps)?void 0:r.paper),ce=gJ();return $A.jsxs(L.Fragment,{children:[$A.jsx(Q3,CK({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:R,name:b}}),w(e))},onFocus:$},j,{ownerState:ie,className:wY(j.className,se.select,l),id:ae,children:Z3(X)?K3||(K3=$A.jsx("span",{className:"notranslate",children:""})):X})),$A.jsx(J3,CK({"aria-invalid":p,value:Array.isArray(R)?R.join(","):R,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},A)),$A.jsx(Y3,{as:m,className:se.icon,ownerState:ie}),$A.jsx(e3,CK({id:`menu-${b||""}`,anchorEl:H,open:J,onClose:e=>{G(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},y,{MenuListProps:CK({"aria-labelledby":v,role:"listbox","aria-multiselectable":g?"true":void 0,disableListWrap:!0,id:ce},y.MenuListProps),slotProps:CK({},y.slotProps,{paper:CK({},le,{style:CK({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})}));var t6=e6;const r6=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],n6=["root"],o6={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>NZ(e)&&"variant"!==e,slot:"Root"},a6=AZ(B5,o6)(""),i6=AZ(k3,o6)(""),s6=AZ(V2,o6)(""),l6=L.forwardRef((function(e,t){const r=MZ({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:a={},className:i,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:c=_1,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,_=jK(r,r6),k=y?v3:t6,E=r1({props:r,muiFormControl:o1(),states:["variant","error"]}),C=E.variant||$,j=CK({},r,{variant:C,classes:a}),P=(e=>{const{classes:t}=e;return t})(j),O=jK(P,n6),N=d||{standard:$A.jsx(a6,{ownerState:j}),outlined:$A.jsx(i6,{label:p,ownerState:j}),filled:$A.jsx(s6,{ownerState:j})}[C],A=SJ(t,UJ(N));return $A.jsx(L.Fragment,{children:L.cloneElement(N,CK({inputComponent:k,inputProps:CK({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:CK({id:u},x)},f,{classes:f?JG(O,f.classes):O},d?d.props.inputProps:{})},(v&&y||l)&&"outlined"===C?{notched:!0}:{},{ref:A,className:wY(N.props.className,i,P.root)},!d&&{variant:C},_))})}));l6.muiName="Select";var c6=l6;function u6(e,t){return e-t}function d6(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 f6(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 p6(e,t,r){return 100*(e-t)/(r-t)}function m6(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 h6({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(u6)}function v6({sliderRef:e,activeIndex:t,setActive:r}){var n,o;const a=pJ(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 y6(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 g6={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}%`})}},b6=e=>e;let w6;function S6(){return void 0===w6&&(w6="undefined"==typeof CSS||"function"!=typeof CSS.supports||CSS.supports("touch-action","none")),w6}function x6(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=b6,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,j]=bJ({controlled:g,default:null!=r?r:l,name:"Slider"}),P=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(u6):[C];N=N.map((e=>null==e?l:lJ(e,l,s)));const A=!0===i&&null!==h?[...Array(Math.floor((s-l)/h)+1)].map(((e,t)=>({value:l+h*t}))):i||[],R=A.map((e=>e.value)),{isFocusVisibleRef:T,onBlur:I,onFocus:M,ref:F}=TJ(),[D,z]=L.useState(-1),V=L.useRef(null),B=SJ(F,V),U=SJ(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=R.indexOf(n);let i=t;if(A&&null==h){const e=R[R.length-1];i=i>e?e:i<R[0]?R[0]:i<n?R[a-1]:R[a+1]}if(i=lJ(i,l,s),O){o&&(i=lJ(i,N[r-1]||-1/0,N[r+1]||1/0));const e=i;i=h6({values:N,newValue:i,index:r});let t=r;o||(t=i.indexOf(e)),v6({sliderRef:V,activeIndex:t})}j(i),z(r),P&&!y6(i,C)&&P(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)};sJ((()=>{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=m6(d,h,l);else{const e=d6(R,d);d=R[e]}d=lJ(d,l,s);let f=0;if(O){f=t?G.current:d6(N,d),o&&(d=lJ(d,N[f-1]||-1/0,N[f+1]||1/0));const e=d;d=h6({values:N,newValue:d,index:f}),o&&t||(f=d.indexOf(e),G.current=f)}return{newValue:d,activeIndex:f}},J=wJ((e=>{const t=f6(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});v6({sliderRef:V,activeIndex:n,setActive:S}),j(r),!_&&E.current>2&&k(!0),P&&!y6(r,C)&&P(e,r,n)})),X=wJ((e=>{const t=f6(e,b);if(k(!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=wJ((e=>{if(n)return;S6()||e.preventDefault();const t=e.changedTouches[0];null!=t&&(b.current=t.identifier);const r=f6(e,b);if(!1!==r){const{newValue:t,activeIndex:n}=Y({finger:r});v6({sliderRef:V,activeIndex:n,setActive:S}),j(t),P&&!y6(t,C)&&P(e,t,n)}E.current=0;const o=pJ(V.current);o.addEventListener("touchmove",J,{passive:!0}),o.addEventListener("touchend",X,{passive:!0})})),ee=L.useCallback((()=>{const e=pJ(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:S6()}),()=>{e.removeEventListener("touchstart",Z),ee()}}),[ee,Z]),L.useEffect((()=>{n&&ee()}),[n,ee]);const te=p6(O?N[0]:l,l,s),re=p6(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:g6,dragging:_,focusedThumbIndex:D,getHiddenInputProps:(r={})=>{var o;const i=zJ(r);var u;const d=CK({},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 CK({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:CK({},MJ,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:(e={})=>{const t=zJ(e);var r;const o=CK({},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=f6(e,b);if(!1!==o){const{newValue:t,activeIndex:r}=Y({finger:o});v6({sliderRef:V,activeIndex:r,setActive:S}),j(t),P&&!y6(t,C)&&P(e,t,r)}E.current=0;const a=pJ(V.current);a.addEventListener("mousemove",J,{passive:!0}),a.addEventListener("mouseup",X)})});return CK({},e,{ref:U},o)},getThumbProps:(e={})=>{const t=zJ(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 CK({},e,t,r)},marks:A,open:x,range:O,rootRef:U,trackLeap:re,trackOffset:te,values:N,getThumbStyle:e=>({pointerEvents:-1!==w&&w!==e?"none":void 0})}}var $6=e=>!e||!DJ(e);function _6(e){return $Y("MuiSlider",e)}var k6=_Y("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 E6=["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 C6(e){return e}const j6=AZ("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${uQ(r.color)}`],"medium"!==r.size&&t[`size${uQ(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"},[`&.${k6.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${k6.dragging}`]:{[`& .${k6.thumb}, & .${k6.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}}]}})),P6=AZ("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}}]}),O6=AZ("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:CK({},e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:CK({backgroundColor:bX(e.palette[t].main,.62),borderColor:bX(e.palette[t].main,.62)},e.applyStyles("dark",{backgroundColor:yX(e.palette[t].main,.5)}),e.applyStyles("dark",{borderColor:yX(e.palette[t].main,.5)})))})))]}})),N6=AZ("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${uQ(r.color)}`],"medium"!==r.size&&t[`thumbSize${uQ(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%)"},[`&.${k6.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, &.${k6.focusVisible}`]:CK({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${vX(e.palette[t].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${k6.active}`]:CK({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${vX(e.palette[t].main,.16)}`})}})))]}})),A6=AZ((function(e){const{children:t,className:r,value:n}=e,o=(e=>{const{open:t}=e;return{offset:wY(t&&k6.valueLabelOpen),circle:k6.valueLabelCircle,label:k6.valueLabelLabel}})(e);return t?L.cloneElement(t,{className:wY(t.props.className)},$A.jsxs(L.Fragment,{children:[t.props.children,$A.jsx("span",{className:wY(o.offset,r),"aria-hidden":!0,children:$A.jsx("span",{className:o.circle,children:$A.jsx("span",{className:o.label,children:n})})})]})):null}),{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})((({theme:e})=>CK({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%"},[`&.${k6.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%"},[`&.${k6.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"}}]}))),R6=AZ("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>OZ(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}}]}))),T6=AZ("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>OZ(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})((({theme:e})=>CK({},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}}]}))),I6=({children:e})=>e,M6=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=MZ({props:e,name:"MuiSlider"}),C=JJ(),{"aria-label":j,"aria-valuetext":P,"aria-labelledby":O,component:N="span",components:A={},componentsProps:R={},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=C6,slotProps:Y,slots:J,track:X="normal",valueLabelDisplay:Z="off",valueLabelFormat:ee=C6}=E,te=jK(E,E6),re=CK({},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}=x6(CK({},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 FJ({root:["root",t&&"disabled",r&&"dragging",n&&"marked","vertical"===o&&"vertical","inverted"===a&&"trackInverted",!1===a&&"trackFalse",s&&`color${uQ(s)}`,l&&`size${uQ(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${uQ(l)}`,s&&`thumbColor${uQ(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]},_6,i)})(re),be=null!=(r=null!=(n=null==J?void 0:J.root)?n:A.Root)?r:j6,we=null!=(o=null!=(a=null==J?void 0:J.rail)?a:A.Rail)?o:P6,Se=null!=(i=null!=(s=null==J?void 0:J.track)?s:A.Track)?i:O6,xe=null!=(l=null!=(c=null==J?void 0:J.thumb)?c:A.Thumb)?l:N6,$e=null!=(u=null!=(d=null==J?void 0:J.valueLabel)?d:A.ValueLabel)?u:A6,_e=null!=(f=null!=(p=null==J?void 0:J.mark)?p:A.Mark)?f:R6,ke=null!=(m=null!=(h=null==J?void 0:J.markLabel)?h:A.MarkLabel)?m:T6,Ee=null!=(v=null!=(y=null==J?void 0:J.input)?y:A.Input)?v:"input",Ce=null!=(g=null==Y?void 0:Y.root)?g:R.root,je=null!=(b=null==Y?void 0:Y.rail)?b:R.rail,Pe=null!=(w=null==Y?void 0:Y.track)?w:R.track,Oe=null!=(S=null==Y?void 0:Y.thumb)?S:R.thumb,Ne=null!=(x=null==Y?void 0:Y.valueLabel)?x:R.valueLabel,Ae=null!=($=null==Y?void 0:Y.mark)?$:R.mark,Re=null!=(_=null==Y?void 0:Y.markLabel)?_:R.markLabel,Te=null!=(k=null==Y?void 0:Y.input)?k:R.input,Ie=BJ({elementType:be,getSlotProps:oe,externalSlotProps:Ce,externalForwardedProps:te,additionalProps:CK({},$6(be)&&{as:N}),ownerState:CK({},re,null==Ce?void 0:Ce.ownerState),className:[ge.root,M]}),Me=BJ({elementType:we,externalSlotProps:je,ownerState:re,className:ge.rail}),Fe=BJ({elementType:Se,externalSlotProps:Pe,additionalProps:{style:CK({},ne[ce].offset(he),ne[ce].leap(ve))},ownerState:CK({},re,null==Pe?void 0:Pe.ownerState),className:ge.track}),De=BJ({elementType:xe,getSlotProps:ie,externalSlotProps:Oe,ownerState:CK({},re,null==Oe?void 0:Oe.ownerState),className:ge.thumb}),ze=BJ({elementType:$e,externalSlotProps:Ne,ownerState:CK({},re,null==Ne?void 0:Ne.ownerState),className:ge.valueLabel}),Le=BJ({elementType:_e,externalSlotProps:Ae,ownerState:re,className:ge.mark}),Ve=BJ({elementType:ke,externalSlotProps:Re,ownerState:re,className:ge.markLabel}),Be=BJ({elementType:Ee,getSlotProps:ae,externalSlotProps:Te,ownerState:re});return $A.jsxs(be,CK({},Ie,{children:[$A.jsx(we,CK({},Me)),$A.jsx(Se,CK({},Fe)),pe.filter((e=>e.value>=W&&e.value<=U)).map(((e,t)=>{const r=p6(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]),$A.jsxs(L.Fragment,{children:[$A.jsx(_e,CK({"data-index":t},Le,!DJ(_e)&&{markActive:o},{style:CK({},n,Le.style),className:wY(Le.className,o&&ge.markActive)})),null!=e.label?$A.jsx(ke,CK({"aria-hidden":!0,"data-index":t},Ve,!DJ(ke)&&{markLabelActive:o},{style:CK({},n,Ve.style),className:wY(ge.markLabel,Ve.className,o&&ge.markLabelActive),children:e.label})):null]},t)})),me.map(((e,t)=>{const r=p6(e,W,U),n=ne[ce].offset(r),o="off"===Z?I6:$e;return $A.jsx(o,CK({},!DJ(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:$A.jsx(xe,CK({"data-index":t},De,{className:wY(ge.thumb,De.className,le===t&&ge.active,ue===t&&ge.focusVisible),style:CK({},n,ye(t),De.style),children:$A.jsx(Ee,CK({"data-index":t,"aria-label":z?z(t):j,"aria-valuenow":Q(e),"aria-labelledby":O,"aria-valuetext":V?V(Q(e),t):P,value:me[t]},Be))}))}),t)}))]}))}));var F6=M6;function D6(e){return $Y("MuiTextField",e)}_Y("MuiTextField",["root"]);const z6=["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"],L6={standard:B5,filled:V2,outlined:k3},V6=AZ(K2,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),B6=L.forwardRef((function(e,t){const r=MZ({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:_,onChange:k,onFocus:E,placeholder:C,required:j=!1,rows:P,select:O=!1,SelectProps:N,type:A,value:R,variant:T="outlined"}=r,I=jK(r,z6),M=CK({},r,{autoFocus:o,color:s,disabled:c,error:u,fullWidth:f,multiline:x,required:j,select:O,variant:T}),F=(e=>{const{classes:t}=e;return FJ({root:["root"]},D6,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=gJ(m),L=p&&z?`${z}-helper-text`:void 0,V=b&&z?`${z}-label`:void 0,B=L6[T],U=$A.jsx(B,CK({"aria-describedby":L,autoComplete:n,autoFocus:o,defaultValue:l,fullWidth:f,multiline:x,name:$,rows:P,maxRows:w,minRows:S,type:A,value:R,id:z,inputRef:g,onBlur:_,onChange:k,onFocus:E,placeholder:C,inputProps:v},D,y));return $A.jsxs(V6,CK({className:wY(F.root,i),disabled:c,error:u,fullWidth:f,ref:t,required:j,color:s,variant:T,ownerState:M},I,{children:[null!=b&&""!==b&&$A.jsx(H5,CK({htmlFor:z,id:V},h,{children:b})),O?$A.jsx(c6,CK({"aria-describedby":L,id:z,labelId:V,value:R,input:U},N,{children:a})):U,p&&$A.jsx(p5,CK({id:L},d,{children:p}))]}))}));var U6,W6=B6,q6={},K6={},H6=n(WZ);function G6(){return U6||(U6=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=H6}(K6)),K6}var Q6=fX;Object.defineProperty(q6,"__esModule",{value:!0});var Y6=q6.default=void 0,J6=Q6(G6()),X6=$A;function Z6({uiSchema:e,registry:t,...r}){const{translateString:n}=t;return $A.jsx(V0,{title:n(cR.AddItemButton),...r,color:"primary",children:$A.jsx(Y6,{})})}function e9(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 $A.jsxs(N5,{container:!0,alignItems:"center",children:[$A.jsx(N5,{item:!0,xs:!0,style:{overflow:"auto"},children:$A.jsx(F1,{mb:2,children:$A.jsx(h0,{elevation:2,children:$A.jsx(F1,{p:2,children:t})})})}),n&&$A.jsxs(N5,{item:!0,children:[(i||a)&&$A.jsx(y,{style:b,disabled:r||f||!i,onClick:d(l,l-1),uiSchema:p,registry:m}),(i||a)&&$A.jsx(v,{style:b,disabled:r||f||!a,onClick:d(l,l+1),uiSchema:p,registry:m}),o&&$A.jsx(h,{style:b,disabled:r||f,onClick:c(l),uiSchema:p,registry:m}),s&&$A.jsx(g,{style:b,disabled:r||f,onClick:u(l),uiSchema:p,registry:m})]})]})}function t9(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=_d(o),p=fA("ArrayFieldDescriptionTemplate",l,f),m=fA("ArrayFieldItemTemplate",l,f),h=fA("ArrayFieldTitleTemplate",l,f),{ButtonTemplates:{AddButton:v}}=l.templates;return $A.jsx(h0,{elevation:2,children:$A.jsxs(F1,{p:2,children:[$A.jsx(h,{idSchema:n,title:f.title||d,schema:u,uiSchema:o,required:c,registry:l}),$A.jsx(p,{idSchema:n,description:f.description||u.description,schema:u,uiSchema:o,registry:l}),a&&a.map((({key:e,...t})=>$A.jsx(m,{...t},e))),t&&$A.jsx(N5,{container:!0,justifyContent:"flex-end",children:$A.jsx(N5,{item:!0,children:$A.jsx(F1,{mt:2,children:$A.jsx(v,{className:"array-item-add",onClick:i,disabled:r||s,uiSchema:o,registry:l})})})})]})})}Y6=q6.default=(0,J6.default)((0,X6.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");const r9=["date","datetime-local","file","time"];function n9(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=cA(g,s,y),{step:C,min:j,max:P,accept:O,...N}=E,A={step:C,min:j,max:P,accept:O,...g.examples?{list:HA(t)}:void 0},R=r9.includes(s)?{..._,shrink:!0}:_;return $A.jsxs($A.Fragment,{children:[$A.jsx(W6,{id:t,name:t,placeholder:n,label:XA(l||void 0,c,void 0),autoFocus:v,required:o,disabled:i||a,inputProps:A,...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:R,...k,"aria-describedby":YA(t,!!g.examples)}),Array.isArray(g.examples)&&$A.jsx("datalist",{id:HA(t),children:g.examples.concat(g.default&&!g.examples.includes(g.default)?[g.default]:[]).map((e=>$A.jsx("option",{value:e},e)))})]})}function o9(e){const{id:t,description:r}=e;return r?$A.jsx(G0,{id:t,variant:"subtitle2",style:{marginTop:"5px"},children:r}):null}var a9={},i9=fX;Object.defineProperty(a9,"__esModule",{value:!0});var s9=a9.default=void 0,l9=i9(G6()),c9=$A;function u9({errors:e,registry:t}){const{translateString:r}=t;return $A.jsx(h0,{elevation:2,children:$A.jsxs(F1,{mb:2,p:2,children:[$A.jsx(G0,{variant:"h6",children:r(cR.ErrorsLabel)}),$A.jsx(Z5,{dense:!0,children:e.map(((e,t)=>$A.jsxs(p4,{children:[$A.jsx(b4,{children:$A.jsx(s9,{color:"error"})}),$A.jsx(k4,{primary:e.stack})]},t)))})]})})}s9=a9.default=(0,l9.default)((0,c9.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 d9={},f9=fX;Object.defineProperty(d9,"__esModule",{value:!0});var p9=d9.default=void 0,m9=f9(G6()),h9=$A;p9=d9.default=(0,m9.default)((0,h9.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward");var v9={},y9=fX;Object.defineProperty(v9,"__esModule",{value:!0});var g9=v9.default=void 0,b9=y9(G6()),w9=$A;g9=v9.default=(0,b9.default)((0,w9.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward");var S9={},x9=fX;Object.defineProperty(S9,"__esModule",{value:!0});var $9=S9.default=void 0,_9=x9(G6()),k9=$A;$9=S9.default=(0,_9.default)((0,k9.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 E9={},C9=fX;Object.defineProperty(E9,"__esModule",{value:!0});var j9=E9.default=void 0,P9=C9(G6()),O9=$A;function N9(e){const{icon:t,color:r,uiSchema:n,registry:o,...a}=e;return $A.jsx(V0,{...a,size:"small",color:r,children:t})}function A9(e){const{registry:{translateString:t}}=e;return $A.jsx(N9,{title:t(cR.CopyButton),...e,icon:$A.jsx($9,{fontSize:"small"})})}function R9(e){const{registry:{translateString:t}}=e;return $A.jsx(N9,{title:t(cR.MoveDownButton),...e,icon:$A.jsx(p9,{fontSize:"small"})})}function T9(e){const{registry:{translateString:t}}=e;return $A.jsx(N9,{title:t(cR.MoveUpButton),...e,icon:$A.jsx(g9,{fontSize:"small"})})}function I9(e){const{iconType:t,...r}=e,{registry:{translateString:n}}=r;return $A.jsx(N9,{title:n(cR.RemoveButton),...r,color:"error",icon:$A.jsx(j9,{fontSize:"default"===t?void 0:"small"})})}function M9(e){const{errors:t=[],idSchema:r}=e;if(0===t.length)return null;const n=KA(r);return $A.jsx(Z5,{id:n,dense:!0,disablePadding:!0,children:t.map(((e,t)=>$A.jsx(p4,{disableGutters:!0,children:$A.jsx(p5,{component:"div",id:`${n}-${t}`,children:e})},t)))})}function F9(e){const{idSchema:t,help:r}=e;if(!r)return null;const n=GA(t);return $A.jsx(p5,{component:"div",id:n,children:r})}function D9(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=fA("WrapIfAdditionalTemplate",w,_d(b));return s?$A.jsx("div",{style:{display:"none"},children:r}):$A.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:$A.jsxs(K2,{fullWidth:!0,error:!!p.length,required:f,children:[r,i&&y?$A.jsx(G0,{variant:"caption",color:"textSecondary",children:v}):null,m,h]})})}function z9(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=_d(s),m=fA("TitleFieldTemplate",f,p),h=fA("DescriptionFieldTemplate",f,p),{ButtonTemplates:{AddButton:v}}=f.templates;return $A.jsxs($A.Fragment,{children:[r&&$A.jsx(m,{id:QA(l),title:r,required:o,schema:c,uiSchema:s,registry:f}),t&&$A.jsx(h,{id:qA(l),description:t,schema:c,uiSchema:s,registry:f}),$A.jsxs(N5,{container:!0,spacing:2,style:{marginTop:"10px"},children:[n.map(((e,t)=>e.hidden?e.content:$A.jsx(N5,{item:!0,xs:12,style:{marginBottom:"10px"},children:e.content},t))),kd(c,s,u)&&$A.jsx(N5,{container:!0,justifyContent:"flex-end",children:$A.jsx(N5,{item:!0,children:$A.jsx(v,{className:"object-property-expand",onClick:d(c),disabled:a||i,uiSchema:s,registry:f})})})]})]})}function L9({uiSchema:e}){const{submitText:t,norender:r,props:n={}}=dA(e);return r?null:$A.jsx(F1,{marginTop:3,children:$A.jsx(G1,{type:"submit",variant:"contained",color:"primary",...n,children:t})})}function V9({id:e,title:t}){return $A.jsxs(F1,{id:e,mb:1,mt:1,children:[$A.jsx(G0,{variant:"h5",children:t}),$A.jsx(M2,{})]})}function B9(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(cR.KeyLabel,[i]);if(!(rd in d))return $A.jsx("div",{className:r,style:n,children:t});return $A.jsxs(N5,{container:!0,alignItems:"center",spacing:2,className:r,style:n,children:[$A.jsx(N5,{item:!0,xs:!0,children:$A.jsx(W6,{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"})}),$A.jsx(N5,{item:!0,xs:!0,children:t}),$A.jsx(N5,{item:!0,children:$A.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 U9(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=fA("DescriptionFieldTemplate",p,m),y=eR(r),g=null!==(t=m.description)&&void 0!==t?t:r.description;return $A.jsxs($A.Fragment,{children:[!l&&!!g&&$A.jsx(v,{id:qA(n),description:g,schema:r,uiSchema:h,registry:p}),$A.jsx(t5,{control:$A.jsx(f2,{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":YA(n)}),label:XA(s,l,!1)})]})}function W9({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?oA(e,v,f):tA(e,v,f))},g=({target:e})=>u(r,eA(e&&e.value,f,h)),b=({target:e})=>d(r,eA(e&&e.value,f,h));return $A.jsxs($A.Fragment,{children:[XA($A.jsx(w5,{required:l,htmlFor:r,children:e||void 0}),t),$A.jsx(i5,{id:r,row:!!m,children:Array.isArray(f)&&f.map(((e,t)=>{const o=rA(e.value,v),a=Array.isArray(p)&&-1!==p.indexOf(e.value),l=$A.jsx(f2,{id:JA(r,t),name:r,checked:o,disabled:n||a||s,autoFocus:i&&0===t,onChange:y(t),onBlur:g,onFocus:b,"aria-describedby":YA(r)});return $A.jsx(t5,{control:l,label:e.label},t)}))})]})}function q9({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=nA(r,f))&&void 0!==d?d:null;return $A.jsxs($A.Fragment,{children:[XA($A.jsx(w5,{required:n,htmlFor:e,children:i||void 0}),s),$A.jsx(W3,{id:e,name:e,value:v,row:h,onChange:(e,t)=>l(eA(t,f,m)),onBlur:({target:t})=>c(e,eA(t&&t.value,f,m)),onFocus:({target:t})=>u(e,eA(t&&t.value,f,m)),"aria-describedby":YA(e),children:Array.isArray(f)&&f.map(((t,r)=>{const n=Array.isArray(p)&&-1!==p.indexOf(t.value);return $A.jsx(t5,{control:$A.jsx(L3,{name:e,id:JA(e,r),color:"primary"}),label:t.label,value:String(r),disabled:o||n||a},r)}))})]})}function K9(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,...lA(s)};return $A.jsxs($A.Fragment,{children:[XA($A.jsx(w5,{required:c,htmlFor:f,children:u||void 0}),d),$A.jsx(F6,{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":YA(f)})]})}function H9({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:_,emptyValue:k}=n,E=(d=void 0!==d&&!!d)?[]:"",C=void 0===u||d&&u.length<1||!d&&u===E,j=nA(u,$,d),{InputLabelProps:P,SelectProps:O,autocomplete:N,...A}=x,R=!d&&void 0===e.default;return $A.jsxs(W6,{id:t,name:t,label:XA(o||void 0,a,void 0),value:C||void 0===j?E:j,required:i,disabled:s||c,autoFocus:f,autoComplete:N,placeholder:l,error:y.length>0,onChange:({target:{value:e}})=>p(eA(e,$,k)),onBlur:({target:e})=>m(t,eA(e&&e.value,$,k)),onFocus:({target:e})=>h(t,eA(e&&e.value,$,k)),...A,select:!0,InputLabelProps:{...P,shrink:!C},SelectProps:{...O,multiple:d},"aria-describedby":YA(t),children:[R&&$A.jsx(i3,{value:"",children:l}),Array.isArray($)&&$.map((({value:e,label:t},r)=>{const n=Array.isArray(_)&&-1!==_.indexOf(e);return $A.jsx(i3,{value:String(r),disabled:n,children:t},r)}))]})}function G9(e){const{options:t,registry:r}=e,n=fA("BaseInputTemplate",r,t);let o=5;return"string"!=typeof t.rows&&"number"!=typeof t.rows||(o=t.rows),$A.jsx(n,{...e,multiline:!0,rows:o})}function Q9(){return{CheckboxWidget:U9,CheckboxesWidget:W9,RadioWidget:q9,RangeWidget:K9,SelectWidget:H9,TextareaWidget:G9}}function Y9(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function J9(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 X9(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?J9(Object(r),!0).forEach((function(t){Y9(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J9(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Z9(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 e8(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 t8(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r8(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 n8(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?r8(Object(r),!0).forEach((function(t){t8(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):r8(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o8(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 a8(e){return{}.toString.call(e).includes("Object")}function i8(e){return"function"==typeof e}j9=E9.default=(0,P9.default)((0,O9.jsx)("path",{d:"M19 13H5v-2h14z"}),"Remove");var s8=o8((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"}),l8={changes:function(e,t){return a8(t)||s8("changeType"),Object.keys(t).some((function(t){return!function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)}))&&s8("changeField"),t},selector:function(e){i8(e)||s8("selectorType")},handler:function(e){i8(e)||a8(e)||s8("handlerType"),a8(e)&&Object.values(e).some((function(e){return!i8(e)}))&&s8("handlersType")},initial:function(e){var t;e||s8("initialIsRequired"),a8(e)||s8("initialType"),t=e,Object.keys(t).length||s8("initialContent")}};function c8(e,t){return i8(t)?t(e.current):t}function u8(e,t){return e.current=n8(n8({},e.current),t),t}function d8(e,t,r){return i8(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 f8={create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l8.initial(e),l8.handler(t);var r={current:e},n=o8(d8)(r,t),o=o8(u8)(r),a=o8(l8.changes)(e),i=o8(c8)(r);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return l8.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 p8,m8={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 "},h8=(p8=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>=p8.length?p8.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))}})(m8),v8={config:function(e){var t;return e||h8("configIsRequired"),t=e,{}.toString.call(t).includes("Object")||h8("configType"),e.urls?(console.warn(m8.deprecation),{paths:{vs:e.urls.monacoBase}}):e}};function y8(e,t){return Object.keys(t).forEach((function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],y8(e[r],t[r]))})),X9(X9({},e),t)}var g8={type:"cancelation",msg:"operation is manually canceled"};function b8(e){var t=!1,r=new Promise((function(r,n){e.then((function(e){return t?n(g8):r(e)})),e.catch(n)}));return r.cancel=function(){return t=!0},r}var w8=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 e8(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 e8(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.")}()}(f8.create({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}),2),S8=w8[0],x8=w8[1];function $8(e){return document.body.appendChild(e)}function _8(e){var t=S8((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 k8(){var e=S8((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){E8(t),e.resolve(t)}),(function(t){e.reject(t)}))}function E8(e){S8().monaco||x8({monaco:e})}var C8=new Promise((function(e,t){return x8({resolve:e,reject:t})})),j8={config:function(e){var t=v8.config(e),r=t.monaco,n=Z9(t,["monaco"]);x8((function(e){return{config:y8(e.config,n),monaco:r}}))},init:function(){var e=S8((function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}}));if(!e.isInitialized){if(x8({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),b8(C8);if(window.monaco&&window.monaco.editor)return E8(window.monaco),e.resolve(window.monaco),b8(C8);!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)}}($8,_8)(k8)}return b8(C8)},__getMonacoInstance:function(){return S8((function(e){return e.monaco}))}},P8={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},O8={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}};var N8=function({children:e}){return V.createElement("div",{style:O8.container},e)},A8=N8;var R8=function({width:e,height:t,isEditorReady:r,loading:n,_ref:o,className:a,wrapperProps:i}){return V.createElement("section",{style:{...P8.wrapper,width:e,height:t},...i},!r&&V.createElement(A8,null,n),V.createElement("div",{ref:o,style:{...P8.fullWidth,...!r&&P8.hide},className:a}))},T8=L.memo(R8);var I8=function(e){L.useEffect(e,[])};var M8=function(e,t,r=!0){let n=L.useRef(!0);L.useEffect(n.current||!r?()=>{n.current=!1}:e,t)};function F8(){}function D8(e,t,r,n){return function(e,t){return e.editor.getModel(z8(e,t))}(e,n)||function(e,t,r,n){return e.editor.createModel(t,r,n?z8(e,n):void 0)}(e,t,r,n)}function z8(e,t){return e.Uri.parse(t)}var L8=function(e){let t=L.useRef();return L.useEffect((()=>{t.current=e}),[e]),t.current},V8=new Map;var B8=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=F8,onMount:g=F8,onChange:b,onValidate:w=F8}){let[S,x]=L.useState(!1),[$,_]=L.useState(!0),k=L.useRef(null),E=L.useRef(null),C=L.useRef(null),j=L.useRef(g),P=L.useRef(y),O=L.useRef(),N=L.useRef(n),A=L8(a),R=L.useRef(!1),T=L.useRef(!1);I8((()=>{let e=j8.init();return e.then((e=>(k.current=e)&&_(!1))).catch((e=>"cancelation"!==e?.type&&console.error("Monaco initialization: error:",e))),()=>E.current?(O.current?.dispose(),f?d&&V8.set(a,E.current.saveViewState()):E.current.getModel()?.dispose(),void E.current.dispose()):e.cancel()})),M8((()=>{let i=D8(k.current,e||n||"",t||o||"",a||r||"");i!==E.current?.getModel()&&(d&&V8.set(A,E.current?.saveViewState()),E.current?.setModel(i),d&&E.current?.restoreViewState(V8.get(a)))}),[a],S),M8((()=>{E.current?.updateOptions(c)}),[c],S),M8((()=>{!E.current||void 0===n||(E.current.getOption(k.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),M8((()=>{let e=E.current?.getModel();e&&o&&k.current?.editor.setModelLanguage(e,o)}),[o],S),M8((()=>{void 0!==s&&E.current?.revealLine(s)}),[s],S),M8((()=>{k.current?.editor.setTheme(i)}),[i],S);let I=L.useCallback((()=>{if(C.current&&k.current&&!R.current){P.current(k.current);let l=a||r,f=D8(k.current,n||e||"",t||o||"",l||"");E.current=k.current?.editor.create(C.current,{model:f,automaticLayout:!0,...c},u),d&&E.current.restoreViewState(V8.get(l)),k.current.editor.setTheme(i),void 0!==s&&E.current.revealLine(s),x(!0),R.current=!0}}),[e,t,r,n,o,a,c,u,d,i,s]);return L.useEffect((()=>{S&&j.current(E.current,k.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=k.current.editor.onDidChangeMarkers((e=>{let t=E.current.getModel()?.uri;if(t&&e.find((e=>e.path===t.path))){let e=k.current.editor.getModelMarkers({resource:t});w?.(e)}}));return()=>{e?.dispose()}}return()=>{}}),[S,w]),V.createElement(T8,{width:p,height:m,isEditorReady:S,loading:l,_ref:C,className:h,wrapperProps:v})},U8=L.memo(B8);const W8=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(U8,{height:c,language:i||"javascript",defaultValue:"",value:n,onChange:e=>{o(e)},options:{theme:"light"===d?"vs-light":"vs-dark",lineNumbers:l,minimap:{enabled:s},...u}}))};function q8(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 K8=e=>["light","dark"].includes(e)?e:"light";function H8(e){return XX({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 G8=(Q8={templates:{ArrayFieldItemTemplate:e9,ArrayFieldTemplate:t9,BaseInputTemplate:n9,ButtonTemplates:{AddButton:Z6,CopyButton:A9,MoveDownButton:R9,MoveUpButton:T9,RemoveButton:I9,SubmitButton:L9},DescriptionFieldTemplate:o9,ErrorListTemplate:u9,FieldErrorTemplate:M9,FieldHelpTemplate:F9,FieldTemplate:D9,ObjectFieldTemplate:z9,TitleFieldTemplate:V9,WrapIfAdditionalTemplate:B9},widgets:{...Q9(),SelectWidget:e=>{const t=Q9().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)=>(e={...Q8?.fields,...e},t={...Q8?.widgets,...t},r={...Q8?.templates,...r,ButtonTemplates:{...Q8?.templates?.ButtonTemplates,...r?.ButtonTemplates}},$A.jsx(hK,{...Q8,...n,fields:e,widgets:t,templates:r,ref:o})))));var Q8;function Y8(){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 J8({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=K8(e);a(H8(t))})),AP.getTheme((e=>{const t=K8(e);a(H8(t))}))}),[]),L.useEffect((()=>{n(i)}),[o]),!o)return null;const s={htmlWidget:q8,crowdinFilesWidget:U,monacoEditorWidget:e=>V.createElement(W8,W({},e,{theme:o}))};return V.createElement(TZ,{theme:o},V.createElement(G8,{ref:i,widgets:s,formData:e,validator:sU,schema:t,uiSchema:r,onSubmit:e=>{!function(e){if(!Z8())return;document.getElementById("form-loading").style.display="flex",checkOrigin().then((t=>fetch(formPostDataUrl+t+"&id="+Y8(),{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)&&e7(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 X8(){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 Z8(){return!(AP&&AP._data&&AP._data.app&&["ai-prompt-provider","workflow-step-type"].includes(AP._data.app.type))}function e7(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(!Z8()){X8();document.getElementsByTagName("html")[0].className+=" form-without-submit"}AP&&AP._data&&AP._data.app&&["modal","editor-right-panel"].includes(AP._data.app.type)&&(X8(),"modal"===AP._data.app.type&&card.parentElement.style.removeProperty("max-width")),window.currentFormSchema=t,window.currentFormData=e,window.currentFormUiSchema=r,n.render(V.createElement(J8,{onFormRef:e=>{window.formRef=e.current},formData:e,formSchema:t||window.formSchema,formUiSchema:r||window.formUiSchema})),document.getElementById("form-loading").style.display="none"}Z8()?checkOrigin().then((e=>{const t=new URLSearchParams(frameData.app.context).toString(),r=new URLSearchParams(e+"&id="+Y8());return r.set("context",t),fetch(formGetDataUrl+"?"+r.toString(),{method:"GET"})})).then(checkResponse).catch((e=>catchRejection(e,"Can't load saved settings"))).then((e=>{e7(e.formData,e.formSchema,e.formUiSchema)})).catch((()=>e7({}))):AP.getFormData((e=>{e7(e)})),window.renderForm=e7}();
|
|
114
|
+
`),P0.rippleVisible,M0,550,(({theme:e})=>e.transitions.easing.easeInOut),P0.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),P0.child,P0.childLeaving,F0,550,(({theme:e})=>e.transitions.easing.easeInOut),P0.childPulsate,D0,(({theme:e})=>e.transitions.easing.easeInOut)),V0=L.forwardRef((function(e,t){const r=QZ({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:a}=r,i=MK(r,O0),[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=FJ(),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,NA.jsx(L0,{classes:{ripple:NY(o.ripple,P0.ripple),rippleVisible:NY(o.rippleVisible,P0.rippleVisible),ripplePulsate:NY(o.ripplePulsate,P0.ripplePulsate),child:NY(o.child,P0.child),childLeaving:NY(o.childLeaving,P0.childLeaving),childPulsate:NY(o.childPulsate,P0.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:a},c.current)])),c.current+=1,u.current=i}),[o]),y=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,y;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)y=Math.sqrt((2*l.width**2+l.height**2)/3),y%2==0&&(y+=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;y=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===p.current&&(p.current=()=>{h({pulsate:o,rippleX:c,rippleY:u,rippleSize:y,cb:r})},f.start(80,(()=>{p.current&&(p.current(),p.current=null)}))):h({pulsate:o,rippleX:c,rippleY:u,rippleSize:y,cb:r})}),[n,h,f]),v=L.useCallback((()=>{y({},{pulsate:!0})}),[y]),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:v,start:y,stop:g})),[v,y,g]),NA.jsx(z0,IK({className:NY(P0.root,o.root,a),ref:m},i,{children:NA.jsx(S0,{component:null,exit:!0,children:s})}))}));var B0=V0;function U0(e){return TY("MuiButtonBase",e)}var W0=IY("MuiButtonBase",["root","disabled","focusVisible"]);const q0=["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"],K0=qZ("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"},[`&.${W0.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),H0=L.forwardRef((function(e,t){const r=QZ({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:y,onFocus:v,onFocusVisible:g,onKeyDown:b,onKeyUp:w,onMouseDown:S,onMouseLeave:x,onMouseUp:$,onTouchEnd:_,onTouchMove:k,onTouchStart:E,tabIndex:C=0,TouchRippleProps:j,touchRippleRef:P,type:O}=r,N=MK(r,q0),A=L.useRef(null),R=L.useRef(null),T=RJ(R,P),{isFocusVisibleRef:I,onFocus:M,onBlur:F,ref:D}=KJ(),[z,V]=L.useState(!1);l&&z&&V(!1),L.useImperativeHandle(n,(()=>({focusVisible:()=>{V(!0),A.current.focus()}})),[]);const[B,U]=L.useState(!1);L.useEffect((()=>{U(!0)}),[]);const W=B&&!c&&!l;function q(e,t,r=u){return AJ((n=>{t&&t(n);return!r&&R.current&&R.current[e](n),!0}))}L.useEffect((()=>{z&&d&&!c&&B&&R.current.pulsate()}),[c,d,z,B]);const K=q("start",S),H=q("stop",h),G=q("stop",y),Q=q("stop",$),Y=q("stop",(e=>{z&&e.preventDefault(),x&&x(e)})),J=q("start",E),X=q("stop",_),Z=q("stop",k),ee=q("stop",(e=>{F(e),!1===I.current&&V(!1),p&&p(e)}),!1),te=AJ((e=>{A.current||(A.current=e.currentTarget),M(e),!0===I.current&&(V(!0),g&&g(e)),v&&v(e)})),re=()=>{const e=A.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=L.useRef(!1),oe=AJ((e=>{d&&!ne.current&&z&&R.current&&" "===e.key&&(ne.current=!0,R.current.stop(e,(()=>{R.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=AJ((e=>{d&&" "===e.key&&R.current&&z&&!e.defaultPrevented&&(ne.current=!1,R.current.stop(e,(()=>{R.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=RJ(t,D,A),ce=IK({},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=QJ({root:["root",t&&"disabled",r&&"focusVisible"]},U0,o);return r&&n&&(a.root+=` ${n}`),a})(ce);return NA.jsxs(K0,IK({as:ie,className:NY(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?NA.jsx(B0,IK({ref:T,center:o},j)):null]}))}));var G0=H0;function Q0(e){return TY("MuiIconButton",e)}var Y0=IY("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);const J0=["edge","children","className","color","disabled","disableFocusRipple","size"],X0=qZ(G0,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${wQ(r.color)}`],r.edge&&t[`edge${wQ(r.edge)}`],t[`size${wQ(r.size)}`]]}})((({theme:e,ownerState:t})=>IK({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})`:jX(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 IK({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&IK({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":IK({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:jX(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)},{[`&.${Y0.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),Z0=L.forwardRef((function(e,t){const r=QZ({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=MK(r,J0),d=IK({},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 QJ({root:["root",r&&"disabled","default"!==n&&`color${wQ(n)}`,o&&`edge${wQ(o)}`,`size${wQ(a)}`]},Q0,t)})(d);return NA.jsx(X0,IK({className:NY(f.root,a),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},u,{ownerState:d,children:o}))}));var e1=Z0;function t1(e){return TY("MuiTypography",e)}IY("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const r1=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],n1=qZ("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${wQ(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>IK({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}))),o1={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},a1={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},i1=L.forwardRef((function(e,t){const r=QZ({props:e,name:"MuiTypography"}),n=(e=>a1[e]||e)(r.color),o=EY(IK({},r,{color:n})),{align:a="inherit",className:i,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:f=o1}=o,p=MK(o,r1),m=IK({},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]||o1[d])||"span",y=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:i}=e;return QJ({root:["root",a,"inherit"!==e.align&&`align${wQ(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},t1,i)})(m);return NA.jsx(n1,IK({as:h,ref:t,ownerState:m,className:NY(y.root,i)},p))}));var s1=i1;var l1=L.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[a,i]=L.useState(null),s=RJ(L.isValidElement(r)?tX(r):null,t);if(bJ((()=>{o||i(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),bJ((()=>{if(a&&!o)return CJ(t,a),()=>{CJ(t,null)}}),[t,a,o]),o){if(L.isValidElement(r)){const e={ref:s};return L.cloneElement(r,e)}return NA.jsx(L.Fragment,{children:r})}return NA.jsx(L.Fragment,{children:a?Ju.createPortal(r,a):a})}));const c1=["onChange","maxRows","minRows","style","value"];function u1(e){return parseInt(e,10)||0}const d1={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function f1(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const p1=L.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:a,value:i}=e,s=MK(e,c1),{current:l}=L.useRef(null!=i),c=L.useRef(null),u=RJ(t,c),d=L.useRef(null),f=L.useRef(null),p=L.useCallback((()=>{const t=c.current,r=f.current;if(!t||!r)return;const a=EJ(t).getComputedStyle(t);if("0px"===a.width)return{outerHeightStyle:0,overflowing:!1};r.style.width=a.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const i=a.boxSizing,s=u1(a.paddingBottom)+u1(a.paddingTop),l=u1(a.borderBottomWidth)+u1(a.borderTopWidth),u=r.scrollHeight;r.value="x";const d=r.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=AJ((()=>{const e=c.current,t=p();if(!e||!t||f1(t))return!1;const r=t.outerHeightStyle;return null!=d.current&&d.current!==r})),h=L.useCallback((()=>{const e=c.current,t=p();if(!e||!t||f1(t))return;const r=t.outerHeightStyle;d.current!==r&&(d.current=r,e.style.height=`${r}px`),e.style.overflow=t.overflowing?"hidden":""}),[p]),y=L.useRef(-1);bJ((()=>{const e=$J(h),t=null==c?void 0:c.current;if(!t)return;const r=EJ(t);let n;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver((()=>{m()&&(n.unobserve(t),cancelAnimationFrame(y.current),h(),y.current=requestAnimationFrame((()=>{n.observe(t)})))})),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(y.current),r.removeEventListener("resize",e),n&&n.disconnect()}}),[p,h,m]),bJ((()=>{h()}));return NA.jsxs(L.Fragment,{children:[NA.jsx("textarea",IK({value:i,onChange:e=>{l||h(),r&&r(e)},ref:u,rows:o,style:a},s)),NA.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:IK({},d1,a,{paddingTop:0,paddingBottom:0})})]})}));var m1=p1;function h1({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 y1=L.createContext(void 0);function v1(){return L.useContext(y1)}function g1(e){return NA.jsx($Y,IK({},e,{defaultTheme:dZ,themeId:TK}))}function b1(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function w1(e,t=!1){return e&&(b1(e.value)&&""!==e.value||t&&b1(e.defaultValue)&&""!==e.defaultValue)}function S1(e){return TY("MuiInputBase",e)}var x1=IY("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const $1=["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"],_1=(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${wQ(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},k1=(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]},E1=qZ("div",{name:"MuiInputBase",slot:"Root",overridesResolver:_1})((({theme:e,ownerState:t})=>IK({},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",[`&.${x1.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&IK({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),C1=qZ("input",{name:"MuiInputBase",slot:"Input",overridesResolver:k1})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=IK({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 IK({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] + .${x1.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},[`&.${x1.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"})})),j1=NA.jsx(g1,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),P1=L.forwardRef((function(e,t){var r;const n=QZ({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:y="input",inputProps:v={},inputRef:g,maxRows:b,minRows:w,multiline:S=!1,name:x,onBlur:$,onChange:_,onClick:k,onFocus:E,onKeyDown:C,onKeyUp:j,placeholder:P,readOnly:O,renderSuffix:N,rows:A,slotProps:R={},slots:T={},startAdornment:I,type:M="text",value:F}=n,D=MK(n,$1),z=null!=v.value?v.value:F,{current:V}=L.useRef(null!=z),B=L.useRef(),U=L.useCallback((e=>{}),[]),W=RJ(B,g,v.ref,U),[q,K]=L.useState(!1),H=v1(),G=h1({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=>{w1(e)?Q&&Q():Y&&Y()}),[Q,Y]);bJ((()=>{V&&J({value:z})}),[z,J,V]);L.useEffect((()=>{J(B.current)}),[]);let X=y,Z=v;S&&"input"===X&&(Z=IK(A?{type:void 0,minRows:A,maxRows:A}:{type:void 0,maxRows:b,minRows:w},Z),X=m1);L.useEffect((()=>{H&&H.setAdornedStart(Boolean(I))}),[H,I]);const ee=IK({},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 QJ({root:["root",`color${wQ(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",f&&"medium"!==f&&`size${wQ(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"]},S1,t)})(ee),re=T.root||l.Root||E1,ne=R.root||c.root||{},oe=T.input||l.Input||C1;return Z=IK({},Z,null!=(r=R.input)?r:c.input),NA.jsxs(L.Fragment,{children:[!f&&j1,NA.jsxs(re,IK({},ne,!YJ(re)&&{ownerState:IK({},ee,ne.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),k&&k(e)}},D,{className:NY(te.root,ne.className,s,O&&"MuiInputBase-readOnly"),children:[I,NA.jsx(y1.Provider,{value:null,children:NA.jsx(oe,IK({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:P,readOnly:O,required:G.required,rows:A,value:z,onKeyDown:C,onKeyUp:j,type:M},Z,!YJ(oe)&&{as:X,ownerState:IK({},ee,Z.ownerState)},{ref:W,className:NY(te.input,Z.className,O&&"MuiInputBase-readOnly"),onBlur:e=>{$&&$(e),v.onBlur&&v.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(AK(1));J({value:t.value})}v.onChange&&v.onChange(e,...t),_&&_(e,...t)},onFocus:e=>{G.disabled?e.stopPropagation():(E&&E(e),v.onFocus&&v.onFocus(e),H&&H.onFocus?H.onFocus(e):K(!0))}}))}),p,N?N(IK({},G,{startAdornment:I})):null]}))]})}));var O1=P1;function N1(e){return TY("MuiInput",e)}var A1=IK({},x1,IY("MuiInput",["root","underline","input"]));function R1(e){return TY("MuiOutlinedInput",e)}var T1=IK({},x1,IY("MuiOutlinedInput",["root","notchedOutline","input"]));function I1(e){return TY("MuiFilledInput",e)}var M1=IK({},x1,IY("MuiFilledInput",["root","underline","input"])),F1=t0(NA.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const D1=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],z1={entering:{opacity:1},entered:{opacity:1}},L1=L.forwardRef((function(e,t){const r=fZ(),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:y=n,TransitionComponent:v=h0}=e,g=MK(e,D1),b=L.useRef(null),w=RJ(b,tX(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)=>{x0(e);const n=$0({style:h,timeout:y,easing:s},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),c&&c(e,t)})),_=S(u),k=S(m),E=S((e=>{const t=$0({style:h,timeout:y,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 NA.jsx(v,IK({appear:a,in:l,nodeRef:b,onEnter:$,onEntered:_,onEntering:x,onExit:E,onExited:C,onExiting:k,addEndListener:e=>{o&&o(b.current,e)},timeout:y},g,{children:(e,t)=>L.cloneElement(i,IK({style:IK({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},z1[e],h,i.props.style),ref:w},t))}))}));var V1=L1;function B1(e){return TY("MuiBackdrop",e)}IY("MuiBackdrop",["root","invisible"]);const U1=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],W1=qZ("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>IK({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"}))),q1=L.forwardRef((function(e,t){var r,n,o;const a=QZ({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=V1,transitionDuration:y}=a,v=MK(a,U1),g=IK({},a,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:r}=e;return QJ({root:["root",r&&"invisible"]},B1,t)})(g),w=null!=(r=p.root)?r:u.root;return NA.jsx(h,IK({in:f,timeout:y},v,{children:NA.jsx(W1,IK({"aria-hidden":!0},w,{as:null!=(n=null!=(o=m.root)?o:c.Root)?n:l,className:NY(b.root,s,null==w?void 0:w.className),ownerState:IK({},g,null==w?void 0:w.ownerState),classes:b,ref:t,children:i}))}))}));var K1=q1;var H1=IY("MuiBox",["root"]);const G1=uZ(),Q1=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,a=eQ("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(mY),i=L.forwardRef((function(e,i){const s=SY(r),l=EY(e),{className:c,component:u="div"}=l,d=MK(l,AY);return NA.jsx(a,IK({as:u,ref:i,className:NY(c,o?o(n):n),theme:t&&s[t]||s},d))}));return i}({themeId:TK,defaultTheme:G1,defaultClassName:H1.root,generateClassName:PY.generate});var Y1=Q1;function J1(e){return TY("MuiButton",e)}var X1=IY("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 Z1=L.createContext({});var e2=L.createContext(void 0);const t2=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],r2=e=>IK({},"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}}),n2=qZ(G0,{shouldForwardProp:e=>WZ(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${wQ(r.color)}`],t[`size${wQ(r.size)}`],t[`${r.variant}Size${wQ(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 IK({},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":IK({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:jX(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})`:jX(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})`:jX(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":IK({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${X1.focusVisible}`]:IK({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${X1.disabled}`]:IK({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 ${jX(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"},[`&.${X1.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${X1.disabled}`]:{boxShadow:"none"}})),o2=qZ("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${wQ(r.size)}`]]}})((({ownerState:e})=>IK({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},r2(e)))),a2=qZ("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${wQ(r.size)}`]]}})((({ownerState:e})=>IK({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},r2(e)))),i2=L.forwardRef((function(e,t){const r=L.useContext(Z1),n=L.useContext(e2),o=QZ({props:vJ(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:y,type:v,variant:g="text"}=o,b=MK(o,t2),w=IK({},o,{color:i,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:m,size:h,type:v,variant:g}),S=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:a,classes:i}=e;return IK({},i,QJ({root:["root",a,`${a}${wQ(t)}`,`size${wQ(o)}`,`${a}Size${wQ(o)}`,`color${wQ(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${wQ(o)}`],endIcon:["icon","endIcon",`iconSize${wQ(o)}`]},J1,i))})(w),x=y&&NA.jsx(o2,{className:S.startIcon,ownerState:w,children:y}),$=f&&NA.jsx(a2,{className:S.endIcon,ownerState:w,children:f}),_=n||"";return NA.jsxs(n2,IK({ownerState:w,className:NY(r.className,S.root,l,_),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:NY(S.focusVisible,p),ref:t,type:v},b,{classes:S,children:[x,a,$]}))}));var s2=i2;function l2(e){return TY("PrivateSwitchBase",e)}IY("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const c2=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],u2=qZ(G0,{name:"MuiSwitchBase"})((({ownerState:e})=>IK({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),d2=qZ("input",{name:"MuiSwitchBase",shouldForwardProp:WZ})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),f2=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:y,onFocus:v,readOnly:g,required:b=!1,tabIndex:w,type:S,value:x}=e,$=MK(e,c2),[_,k]=NJ({controlled:n,default:Boolean(i),name:"SwitchBase",state:"checked"}),E=v1();let C=s;E&&void 0===C&&(C=E.disabled);const j="checkbox"===S||"radio"===S,P=IK({},e,{checked:_,disabled:C,disableFocusRipple:l,edge:c}),O=(e=>{const{classes:t,checked:r,disabled:n,edge:o}=e;return QJ({root:["root",r&&"checked",n&&"disabled",o&&`edge${wQ(o)}`],input:["input"]},l2,t)})(P);return NA.jsxs(u2,IK({component:"span",className:NY(O.root,a),centerRipple:!0,focusRipple:!l,disabled:C,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),E&&E.onFocus&&E.onFocus(e)},onBlur:e=>{h&&h(e),E&&E.onBlur&&E.onBlur(e)},ownerState:P,ref:t},$,{children:[NA.jsx(d2,IK({autoFocus:r,checked:n,defaultChecked:i,className:O.input,disabled:C,id:j?d:void 0,name:m,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;k(t),y&&y(e,t)},readOnly:g,ref:p,required:b,ownerState:P,tabIndex:w,type:S},"checkbox"===S&&void 0===x?{}:{value:x},f)),_?o:u]}))}));var p2=f2,m2=t0(NA.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"),h2=t0(NA.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"),y2=t0(NA.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 v2(e){return TY("MuiCheckbox",e)}var g2=IY("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);const b2=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],w2=qZ(p2,{shouldForwardProp:e=>WZ(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${wQ(r.size)}`],"default"!==r.color&&t[`color${wQ(r.color)}`]]}})((({theme:e,ownerState:t})=>IK({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})`:jX("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${g2.checked}, &.${g2.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${g2.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),S2=NA.jsx(h2,{}),x2=NA.jsx(m2,{}),$2=NA.jsx(y2,{}),_2=L.forwardRef((function(e,t){var r,n;const o=QZ({props:e,name:"MuiCheckbox"}),{checkedIcon:a=S2,color:i="primary",icon:s=x2,indeterminate:l=!1,indeterminateIcon:c=$2,inputProps:u,size:d="medium",className:f}=o,p=MK(o,b2),m=l?c:s,h=l?c:a,y=IK({},o,{color:i,indeterminate:l,size:d}),v=(e=>{const{classes:t,indeterminate:r,color:n,size:o}=e;return IK({},t,QJ({root:["root",r&&"indeterminate",`color${wQ(n)}`,`size${wQ(o)}`]},v2,t))})(y);return NA.jsx(w2,IK({type:"checkbox",inputProps:IK({"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:y,ref:t,className:NY(v.root,f)},p,{classes:v}))}));var k2=_2;function E2(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function C2(e){return parseInt(EJ(e).getComputedStyle(e).paddingRight,10)||0}function j2(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&&E2(e,o)}))}function P2(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function O2(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=kJ(e);return t.body===e?EJ(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=HJ(kJ(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${C2(n)+e}px`;const t=kJ(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${C2(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=kJ(n).body;else{const t=n.parentElement,r=EJ(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 N2=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function A2(e){const t=[],r=[];return Array.from(e.querySelectorAll(N2)).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 R2(){return!0}function T2(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=A2,isEnabled:i=R2,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=RJ(tX(t),m),y=L.useRef(null);L.useEffect((()=>{s&&m.current&&(p.current=!r)}),[r,s]),L.useEffect((()=>{if(!s||!m.current)return;const e=kJ(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=kJ(m.current),t=t=>{y.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=y.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=y.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 v=e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0};return NA.jsxs(L.Fragment,{children:[NA.jsx("div",{tabIndex:s?0:-1,onFocus:v,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)}}),NA.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":"sentinelEnd"})]})}const I2=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&&E2(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);j2(t,e.mount,e.modalRef,n,!0);const o=P2(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=P2(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=O2(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=P2(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&&E2(e.modalRef,t),j2(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&&E2(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function M2(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=I2,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=RJ(m,d),[y,v]=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=AJ((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||kJ(p.current).body;o.add(w(),e),m.current&&S()})),$=L.useCallback((()=>o.isTopModal(w())),[o]),_=AJ((e=>{p.current=e,e&&(u&&$()?S():m.current&&E2(m.current,b))})),k=L.useCallback((()=>{o.remove(w(),b)}),[b,o]);L.useEffect((()=>()=>{k()}),[k]),L.useEffect((()=>{u?x():g&&a||k()}),[u,k,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=JJ(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=IK({},r,t);return IK({role:"presentation"},n,{onKeyDown:E(n),ref:h})},getBackdropProps:(e={})=>IK({"aria-hidden":!0},e,{onClick:C(e),open:u}),getTransitionProps:()=>({onEnter:xJ((()=>{v(!1),i&&i()}),null==l?void 0:l.props.onEnter),onExited:xJ((()=>{v(!0),s&&s(),a&&k()}),null==l?void 0:l.props.onExited)}),rootRef:h,portalRef:_,isTopModal:$,exited:y,hasTransition:g}}function F2(e){return TY("MuiModal",e)}IY("MuiModal",["root","hidden","backdrop"]);const D2=["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"],z2=qZ("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})=>IK({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),L2=qZ(K1,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),V2=L.forwardRef((function(e,t){var r,n,o,a,i,s;const l=QZ({name:"MuiModal",props:e}),{BackdropComponent:c=L2,BackdropProps:u,className:d,closeAfterTransition:f=!1,children:p,container:m,component:h,components:y={},componentsProps:v={},disableAutoFocus:g=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:w=!1,disablePortal:S=!1,disableRestoreFocus:x=!1,disableScrollLock:$=!1,hideBackdrop:_=!1,keepMounted:k=!1,onBackdropClick:E,open:C,slotProps:j,slots:P}=l,O=MK(l,D2),N=IK({},l,{closeAfterTransition:f,disableAutoFocus:g,disableEnforceFocus:b,disableEscapeKeyDown:w,disablePortal:S,disableRestoreFocus:x,disableScrollLock:$,hideBackdrop:_,keepMounted:k}),{getRootProps:A,getBackdropProps:R,getTransitionProps:T,portalRef:I,isTopModal:M,exited:F,hasTransition:D}=M2(IK({},N,{rootRef:t})),z=IK({},N,{exited:F}),V=(e=>{const{open:t,exited:r,classes:n}=e;return QJ({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},F2,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==P?void 0:P.root)?n:y.Root)?r:z2,W=null!=(o=null!=(a=null==P?void 0:P.backdrop)?a:y.Backdrop)?o:c,q=null!=(i=null==j?void 0:j.root)?i:v.root,K=null!=(s=null==j?void 0:j.backdrop)?s:v.backdrop,H=eX({elementType:U,externalSlotProps:q,externalForwardedProps:O,getSlotProps:A,additionalProps:{ref:t,as:h},ownerState:z,className:NY(d,null==q?void 0:q.className,null==V?void 0:V.root,!z.open&&z.exited&&(null==V?void 0:V.hidden))}),G=eX({elementType:W,externalSlotProps:K,additionalProps:u,getSlotProps:e=>R(IK({},e,{onClick:t=>{E&&E(t),null!=e&&e.onClick&&e.onClick(t)}})),className:NY(null==K?void 0:K.className,null==u?void 0:u.className,null==V?void 0:V.backdrop),ownerState:z});return k||C||D&&!F?NA.jsx(l1,{ref:I,container:m,disablePortal:S,children:NA.jsxs(U,IK({},H,{children:[!_&&c?NA.jsx(W,IK({},G)):null,NA.jsx(T2,{disableEnforceFocus:b,disableAutoFocus:g,disableRestoreFocus:x,isEnabled:M,open:C,children:L.cloneElement(p,B)})]}))}):null}));var B2=V2;function U2(e){return TY("MuiDivider",e)}var W2=IY("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const q2=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],K2=qZ("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})=>IK({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)`:jX(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})=>IK({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>IK({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>IK({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>IK({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),H2=qZ("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>IK({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)`}))),G2=L.forwardRef((function(e,t){const r=QZ({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=MK(r,q2),m=IK({},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 QJ({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"]},U2,n)})(m);return NA.jsx(K2,IK({as:i,className:NY(h.root,a),role:u,ref:t,ownerState:m},p,{children:o?NA.jsx(H2,{className:h.wrapper,ownerState:m,children:o}):null}))}));G2.muiSkipListHighlight=!0;var Q2=G2;const Y2=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],J2=qZ(E1,{shouldForwardProp:e=>WZ(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[..._1(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 IK({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}},[`&.${M1.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${M1.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"},[`&.${M1.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${M1.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(.${M1.disabled}, .${M1.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${M1.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&IK({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}))})),X2=qZ(C1,{name:"MuiFilledInput",slot:"Input",overridesResolver:k1})((({theme:e,ownerState:t})=>IK({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}))),Z2=L.forwardRef((function(e,t){var r,n,o,a;const i=QZ({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=MK(i,Y2),y=IK({},i,{fullWidth:c,inputComponent:u,multiline:d,type:m}),v=(e=>{const{classes:t,disableUnderline:r}=e;return IK({},t,QJ({root:["root",!r&&"underline"],input:["input"]},I1,t))})(i),g={root:{ownerState:y},input:{ownerState:y}},b=(null!=f?f:l)?sQ(g,null!=f?f:l):g,w=null!=(r=null!=(n=p.root)?n:s.Root)?r:J2,S=null!=(o=null!=(a=p.input)?a:s.Input)?o:X2;return NA.jsx(O1,IK({slots:{root:w,input:S},componentsProps:b,fullWidth:c,inputComponent:u,multiline:d,ref:t,type:m},h,{classes:v}))}));Z2.muiName="Input";var e5=Z2;function t5(e){return TY("MuiFormControl",e)}IY("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const r5=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],n5=qZ("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>IK({},t.root,t[`margin${wQ(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>IK({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%"}))),o5=L.forwardRef((function(e,t){const r=QZ({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,y=MK(r,r5),v=IK({},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 QJ({root:["root","none"!==r&&`margin${wQ(r)}`,n&&"fullWidth"]},t5,t)})(v),[b,w]=L.useState((()=>{let e=!1;return n&&L.Children.forEach(n,(t=>{if(!_J(t,["Input","Select"]))return;const r=_J(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=>{_J(t,["Input","Select"])&&(w1(t.props,!0)||w1(t.props.inputProps,!0))&&(e=!0)})),e})),[$,_]=L.useState(!1);s&&$&&_(!1);const k=void 0===c||s?$:c;let E;const C=L.useMemo((()=>({adornedStart:b,setAdornedStart:w,color:a,disabled:s,error:l,filled:S,focused:k,fullWidth:u,hiddenLabel:d,size:m,onBlur:()=>{_(!1)},onEmpty:()=>{x(!1)},onFilled:()=>{x(!0)},onFocus:()=>{_(!0)},registerEffect:E,required:p,variant:h})),[b,a,s,l,S,k,u,d,E,p,m,h]);return NA.jsx(y1.Provider,{value:C,children:NA.jsx(n5,IK({as:i,ownerState:v,className:NY(g.root,o),ref:t},y,{children:n}))})}));var a5=o5;const i5=function(e={}){const{createStyledComponent:t=gX,useThemeProps:r=bX,componentName:n="MuiStack"}=e,o=t(SX),a=L.forwardRef((function(e,t){const a=EY(r(e)),{component:i="div",direction:s="column",spacing:l=0,divider:c,children:u,className:d,useFlexGap:f=!1}=a,p=MK(a,yX),m={direction:s,spacing:l,useFlexGap:f},h=QJ({root:["root"]},(e=>TY(n,e)),{});return NA.jsx(o,IK({as:i,ownerState:m,ref:t,className:NY(h.root,d)},p,{children:c?wX(u,c):u}))}));return a}({createStyledComponent:qZ("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>QZ({props:e,name:"MuiStack"})});var s5=i5;function l5(e){return TY("MuiFormControlLabel",e)}var c5=IY("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);const u5=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],d5=qZ("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${c5.label}`]:t.label},t.root,t[`labelPlacement${wQ(r.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>IK({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${c5.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},{[`& .${c5.label}`]:{[`&.${c5.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),f5=qZ("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${c5.error}`]:{color:(e.vars||e).palette.error.main}}))),p5=L.forwardRef((function(e,t){var r,n;const o=QZ({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=MK(o,u5),h=v1(),y=null!=(r=null!=l?l:s.props.disabled)?r:null==h?void 0:h.disabled,v=null!=f?f:s.props.required,g={disabled:y,required:v};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===s.props[e]&&void 0!==o[e]&&(g[e]=o[e])}));const b=h1({props:o,muiFormControl:h,states:["error"]}),w=IK({},o,{disabled:y,labelPlacement:d,required:v,error:b.error}),S=(e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:a}=e;return QJ({root:["root",r&&"disabled",`labelPlacement${wQ(n)}`,o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]},l5,t)})(w),x=null!=(n=p.typography)?n:i.typography;let $=u;return null==$||$.type===s1||c||($=NA.jsx(s1,IK({component:"span"},x,{className:NY(S.label,null==x?void 0:x.className),children:$}))),NA.jsxs(d5,IK({className:NY(S.root,a),ownerState:w,ref:t},m,{children:[L.cloneElement(s,g),v?NA.jsxs(s5,{display:"block",children:[$,NA.jsxs(f5,{ownerState:w,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):$]}))}));var m5=p5;function h5(e){return TY("MuiFormGroup",e)}IY("MuiFormGroup",["root","row","error"]);const y5=["className","row"],v5=qZ("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})((({ownerState:e})=>IK({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"}))),g5=L.forwardRef((function(e,t){const r=QZ({props:e,name:"MuiFormGroup"}),{className:n,row:o=!1}=r,a=MK(r,y5),i=IK({},r,{row:o,error:h1({props:r,muiFormControl:v1(),states:["error"]}).error}),s=(e=>{const{classes:t,row:r,error:n}=e;return QJ({root:["root",r&&"row",n&&"error"]},h5,t)})(i);return NA.jsx(v5,IK({className:NY(s.root,n),ownerState:i,ref:t},a))}));var b5=g5;function w5(e){return TY("MuiFormHelperText",e)}var S5,x5=IY("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);const $5=["children","className","component","disabled","error","filled","focused","margin","required","variant"],_5=qZ("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${wQ(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})((({theme:e,ownerState:t})=>IK({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${x5.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${x5.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),k5=L.forwardRef((function(e,t){const r=QZ({props:e,name:"MuiFormHelperText"}),{children:n,className:o,component:a="p"}=r,i=MK(r,$5),s=h1({props:r,muiFormControl:v1(),states:["variant","size","disabled","error","filled","focused","required"]}),l=IK({},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 QJ({root:["root",o&&"disabled",a&&"error",n&&`size${wQ(n)}`,r&&"contained",s&&"focused",i&&"filled",l&&"required"]},w5,t)})(l);return NA.jsx(_5,IK({as:a,ownerState:l,className:NY(c.root,o),ref:t},i,{children:" "===n?S5||(S5=NA.jsx("span",{className:"notranslate",children:""})):n}))}));var E5=k5;function C5(e){return TY("MuiFormLabel",e)}var j5=IY("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);const P5=["children","className","color","component","disabled","error","filled","focused","required"],O5=qZ("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>IK({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>IK({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${j5.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${j5.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${j5.error}`]:{color:(e.vars||e).palette.error.main}}))),N5=qZ("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${j5.error}`]:{color:(e.vars||e).palette.error.main}}))),A5=L.forwardRef((function(e,t){const r=QZ({props:e,name:"MuiFormLabel"}),{children:n,className:o,component:a="label"}=r,i=MK(r,P5),s=h1({props:r,muiFormControl:v1(),states:["color","required","focused","disabled","error","filled"]}),l=IK({},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 QJ({root:["root",`color${wQ(r)}`,o&&"disabled",a&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]},C5,t)})(l);return NA.jsxs(O5,IK({as:a,ownerState:l,className:NY(c.root,o),ref:t},i,{children:[n,s.required&&NA.jsxs(N5,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:[" ","*"]})]}))}));var R5=A5;var T5=L.createContext();function I5(e){return TY("MuiGrid",e)}const M5=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],F5=IY("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}`)),...M5.map((e=>`grid-xs-${e}`)),...M5.map((e=>`grid-sm-${e}`)),...M5.map((e=>`grid-md-${e}`)),...M5.map((e=>`grid-lg-${e}`)),...M5.map((e=>`grid-xl-${e}`))]),D5=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function z5(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function L5({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 V5=qZ("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})=>IK({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 yQ({theme:e},bQ({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${F5.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:r,rowSpacing:n}=t;let o={};if(r&&0!==n){const t=bQ({values:n,breakpoints:e.breakpoints.values});let r;"object"==typeof t&&(r=L5({breakpoints:e.breakpoints.values,values:t})),o=yQ({theme:e},t,((t,n)=>{var o;const a=e.spacing(t);return"0px"!==a?{marginTop:`-${z5(a)}`,[`& > .${F5.item}`]:{paddingTop:z5(a)}}:null!=(o=r)&&o.includes(n)?{}:{marginTop:0,[`& > .${F5.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:r,columnSpacing:n}=t;let o={};if(r&&0!==n){const t=bQ({values:n,breakpoints:e.breakpoints.values});let r;"object"==typeof t&&(r=L5({breakpoints:e.breakpoints.values,values:t})),o=yQ({theme:e},t,((t,n)=>{var o;const a=e.spacing(t);return"0px"!==a?{width:`calc(100% + ${z5(a)})`,marginLeft:`-${z5(a)}`,[`& > .${F5.item}`]:{paddingLeft:z5(a)}}:null!=(o=r)&&o.includes(n)?{}:{width:"100%",marginLeft:0,[`& > .${F5.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=bQ({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} + ${z5(r)})`;c={flexBasis:e,maxWidth:e}}}a=IK({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 B5=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 QJ({root:["root",r&&"container",o&&"item",s&&"zeroMinWidth",...c,"row"!==n&&`direction-xs-${String(n)}`,"wrap"!==i&&`wrap-xs-${String(i)}`,...u]},I5,t)},U5=L.forwardRef((function(e,t){const r=QZ({props:e,name:"MuiGrid"}),{breakpoints:n}=fZ(),o=EY(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,y=MK(o,D5),v=f||p,g=s||p,b=L.useContext(T5),w=c?i||12:b,S={},x=IK({},y);n.keys.forEach((e=>{null!=y[e]&&(S[e]=y[e],delete x[e])}));const $=IK({},o,{columns:w,container:c,direction:u,item:d,rowSpacing:v,columnSpacing:g,wrap:m,zeroMinWidth:h,spacing:p},S,{breakpoints:n.keys}),_=B5($);return NA.jsx(T5.Provider,{value:w,children:NA.jsx(V5,IK({ownerState:$,className:NY(_.root,a),as:l,ref:t},x))})}));var W5=U5;const q5=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function K5(e){return`scale(${e}, ${e**2})`}const H5={entering:{opacity:1,transform:K5(1)},entered:{opacity:1,transform:"none"}},G5="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Q5=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=h0}=e,y=MK(e,q5),v=FJ(),g=L.useRef(),b=fZ(),w=L.useRef(null),S=RJ(w,tX(o),t),x=e=>t=>{if(e){const r=w.current;void 0===t?e(r):e(r,t)}},$=x(c),_=x(((e,t)=>{x0(e);const{duration:r,delay:n,easing:o}=$0({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:G5?i:.666*i,delay:n,easing:o})].join(","),s&&s(e,t)})),k=x(l),E=x(f),C=x((e=>{const{duration:t,delay:r,easing:n}=$0({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:G5?o:.666*o,delay:G5?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=K5(.75),u&&u(e)})),j=x(d);return NA.jsx(h,IK({appear:n,in:i,nodeRef:w,onEnter:_,onEntered:k,onEntering:$,onExit:C,onExited:j,onExiting:E,addEndListener:e=>{"auto"===m&&v.start(g.current||0,e),r&&r(w.current,e)},timeout:"auto"===m?null:m},y,{children:(e,t)=>L.cloneElement(o,IK({style:IK({opacity:0,transform:K5(.75),visibility:"exited"!==e||i?void 0:"hidden"},H5[e],p,o.props.style),ref:S},t))}))}));Q5.muiSupportAuto=!0;var Y5=Q5;const J5=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],X5=qZ(E1,{shouldForwardProp:e=>WZ(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[..._1(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})`),IK({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"},[`&.${A1.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${A1.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(.${A1.disabled}, .${A1.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${A1.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Z5=qZ(C1,{name:"MuiInput",slot:"Input",overridesResolver:k1})({}),e4=L.forwardRef((function(e,t){var r,n,o,a;const i=QZ({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,y=MK(i,J5),v=(e=>{const{classes:t,disableUnderline:r}=e;return IK({},t,QJ({root:["root",!r&&"underline"],input:["input"]},N1,t))})(i),g={root:{ownerState:{disableUnderline:s}}},b=(null!=p?p:c)?sQ(null!=p?p:c,g):g,w=null!=(r=null!=(n=m.root)?n:l.Root)?r:X5,S=null!=(o=null!=(a=m.input)?a:l.Input)?o:Z5;return NA.jsx(O1,IK({slots:{root:w,input:S},slotProps:b,fullWidth:u,inputComponent:d,multiline:f,ref:t,type:h},y,{classes:v}))}));e4.muiName="Input";var t4=e4;function r4(e){return TY("MuiInputLabel",e)}IY("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const n4=["disableAnimation","margin","shrink","variant","className"],o4=qZ(R5,{shouldForwardProp:e=>WZ(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${j5.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})=>IK({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&&IK({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&&IK({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&&IK({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)"})))),a4=L.forwardRef((function(e,t){const r=QZ({name:"MuiInputLabel",props:e}),{disableAnimation:n=!1,shrink:o,className:a}=r,i=MK(r,n4),s=v1();let l=o;void 0===l&&s&&(l=s.filled||s.focused||s.adornedStart);const c=h1({props:r,muiFormControl:s,states:["size","variant","required","focused"]}),u=IK({},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 IK({},t,QJ({root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&"normal"!==n&&`size${wQ(n)}`,i],asterisk:[s&&"asterisk"]},r4,t))})(u);return NA.jsx(o4,IK({"data-shrink":l,ownerState:u,ref:t,className:NY(d.root,a)},i,{classes:d}))}));var i4=a4;var s4=L.createContext({});function l4(e){return TY("MuiList",e)}IY("MuiList",["root","padding","dense","subheader"]);const c4=["children","className","component","dense","disablePadding","subheader"],u4=qZ("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})=>IK({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),d4=L.forwardRef((function(e,t){const r=QZ({props:e,name:"MuiList"}),{children:n,className:o,component:a="ul",dense:i=!1,disablePadding:s=!1,subheader:l}=r,c=MK(r,c4),u=L.useMemo((()=>({dense:i})),[i]),d=IK({},r,{component:a,dense:i,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return QJ({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},l4,t)})(d);return NA.jsx(s4.Provider,{value:u,children:NA.jsxs(u4,IK({as:a,className:NY(f.root,o),ref:t,ownerState:d},c,{children:[l,n]}))})}));var f4=d4;function p4(e){return TY("MuiListItem",e)}var m4=IY("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var h4=IY("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function y4(e){return TY("MuiListItemSecondaryAction",e)}IY("MuiListItemSecondaryAction",["root","disableGutters"]);const v4=["className"],g4=qZ("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})((({ownerState:e})=>IK({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),b4=L.forwardRef((function(e,t){const r=QZ({props:e,name:"MuiListItemSecondaryAction"}),{className:n}=r,o=MK(r,v4),a=IK({},r,{disableGutters:L.useContext(s4).disableGutters}),i=(e=>{const{disableGutters:t,classes:r}=e;return QJ({root:["root",t&&"disableGutters"]},y4,r)})(a);return NA.jsx(g4,IK({className:NY(i.root,n),ownerState:a,ref:t},o))}));b4.muiName="ListItemSecondaryAction";var w4=b4;const S4=["className"],x4=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],$4=qZ("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})=>IK({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&IK({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${h4.root}`]:{paddingRight:48}},{[`&.${m4.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${m4.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:jX(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${m4.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:jX(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${m4.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"}},[`&.${m4.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:jX(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})`:jX(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),_4=qZ("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),k4=L.forwardRef((function(e,t){const r=QZ({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:y=!1,divider:v=!1,focusVisibleClassName:g,secondaryAction:b,selected:w=!1,slotProps:S={},slots:x={}}=r,$=MK(r.ContainerProps,S4),_=MK(r,x4),k=L.useContext(s4),E=L.useMemo((()=>({dense:p||k.dense||!1,alignItems:n,disableGutters:h})),[n,k.dense,p,h]),C=L.useRef(null);bJ((()=>{o&&C.current&&C.current.focus()}),[o]);const j=L.Children.toArray(i),P=j.length&&_J(j[j.length-1],["ListItemSecondaryAction"]),O=IK({},r,{alignItems:n,autoFocus:o,button:a,dense:E.dense,disabled:m,disableGutters:h,disablePadding:y,divider:v,hasSecondaryAction:P,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 QJ({root:["root",o&&"dense",!i&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",r&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},p4,n)})(O),A=RJ(C,t),R=x.root||c.Root||$4,T=S.root||u.root||{},I=IK({className:NY(N.root,T.className,s),disabled:m},_);let M=l||"li";return a&&(I.component=l||"div",I.focusVisibleClassName=NY(m4.focusVisible,g),M=G0),P?(M=I.component||l?M:"div","li"===d&&("li"===M?M="div":"li"===I.component&&(I.component="div")),NA.jsx(s4.Provider,{value:E,children:NA.jsxs(_4,IK({as:d,className:NY(N.container,f),ref:A,ownerState:O},$,{children:[NA.jsx(R,IK({},T,!YJ(R)&&{as:M,ownerState:IK({},O,T.ownerState)},I,{children:j})),j.pop()]}))})):NA.jsx(s4.Provider,{value:E,children:NA.jsxs(R,IK({},T,{as:M,ref:A},!YJ(R)&&{ownerState:IK({},O,T.ownerState)},I,{children:[j,b&&NA.jsx(w4,{children:b})]}))})}));var E4=k4;function C4(e){return TY("MuiListItemIcon",e)}var j4=IY("MuiListItemIcon",["root","alignItemsFlexStart"]);const P4=["className"],O4=qZ("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})=>IK({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),N4=L.forwardRef((function(e,t){const r=QZ({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=MK(r,P4),a=IK({},r,{alignItems:L.useContext(s4).alignItems}),i=(e=>{const{alignItems:t,classes:r}=e;return QJ({root:["root","flex-start"===t&&"alignItemsFlexStart"]},C4,r)})(a);return NA.jsx(O4,IK({className:NY(i.root,n),ownerState:a,ref:t},o))}));var A4=N4;function R4(e){return TY("MuiListItemText",e)}var T4=IY("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const I4=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],M4=qZ("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${T4.primary}`]:t.primary},{[`& .${T4.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})((({ownerState:e})=>IK({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),F4=L.forwardRef((function(e,t){const r=QZ({props:e,name:"MuiListItemText"}),{children:n,className:o,disableTypography:a=!1,inset:i=!1,primary:s,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:u}=r,d=MK(r,I4),{dense:f}=L.useContext(s4);let p=null!=s?s:n,m=c;const h=IK({},r,{disableTypography:a,inset:i,primary:!!p,secondary:!!m,dense:f}),y=(e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:a}=e;return QJ({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},R4,t)})(h);return null==p||p.type===s1||a||(p=NA.jsx(s1,IK({variant:f?"body2":"body1",className:y.primary,component:null!=l&&l.variant?void 0:"span",display:"block"},l,{children:p}))),null==m||m.type===s1||a||(m=NA.jsx(s1,IK({variant:"body2",className:y.secondary,color:"text.secondary",display:"block"},u,{children:m}))),NA.jsxs(M4,IK({className:NY(y.root,o),ownerState:h,ref:t},d,{children:[p,m]}))}));var D4=F4;const z4=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function L4(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function V4(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function B4(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 U4(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")&&B4(s,a)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const W4=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=MK(e,z4),f=L.useRef(null),p=L.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});bJ((()=>{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=`${HJ(kJ(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,f.current.style.width=`calc(100% + ${r})`}return f.current}})),[]);const m=RJ(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 y=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 NA.jsx(f4,IK({role:"menu",ref:m,className:i,onKeyDown:e=>{const t=f.current,r=e.key,n=kJ(t).activeElement;if("ArrowDown"===r)e.preventDefault(),U4(t,n,l,s,L4);else if("ArrowUp"===r)e.preventDefault(),U4(t,n,l,s,V4);else if("Home"===r)e.preventDefault(),U4(t,null,l,s,L4);else if("End"===r)e.preventDefault(),U4(t,null,l,s,V4);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&&B4(n,o);o.previousKeyMatched&&(l||U4(t,n,!1,s,L4,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:n?0:-1},d,{children:y}))}));var q4=W4;function K4(e){return TY("MuiPopover",e)}IY("MuiPopover",["root","paper"]);const H4=["onEntering"],G4=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Q4=["slotProps"];function Y4(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function J4(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function X4(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Z4(e){return"function"==typeof e?e():e}const e3=qZ(B2,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),t3=qZ(j0,{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}),r3=L.forwardRef((function(e,t){var r,n,o;const a=QZ({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:y,PaperProps:v={},slots:g,slotProps:b,transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:S=Y5,transitionDuration:x="auto",TransitionProps:{onEntering:$}={},disableScrollLock:_=!1}=a,k=MK(a.TransitionProps,H4),E=MK(a,G4),C=null!=(r=null==b?void 0:b.paper)?r:v,j=L.useRef(),P=RJ(j,C.ref),O=IK({},a,{anchorOrigin:l,anchorReference:u,elevation:m,marginThreshold:h,externalPaperSlotProps:C,transformOrigin:w,TransitionComponent:S,transitionDuration:x,TransitionProps:k}),N=(e=>{const{classes:t}=e;return QJ({root:["root"],paper:["paper"]},K4,t)})(O),A=L.useCallback((()=>{if("anchorPosition"===u)return c;const e=Z4(s),t=(e&&1===e.nodeType?e:kJ(j.current).body).getBoundingClientRect();return{top:t.top+Y4(t,l.vertical),left:t.left+J4(t,l.horizontal)}}),[s,l.horizontal,l.vertical,c,u]),R=L.useCallback((e=>({vertical:Y4(e,w.vertical),horizontal:J4(e,w.horizontal)})),[w.horizontal,w.vertical]),T=L.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=R(t);if("none"===u)return{top:null,left:null,transformOrigin:X4(r)};const n=A();let o=n.top-r.vertical,a=n.left-r.horizontal;const i=o+t.height,l=a+t.width,c=EJ(Z4(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:X4(r)}}),[s,u,A,R,h]),[I,M]=L.useState(y),F=L.useCallback((()=>{const e=j.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((()=>(_&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[s,_,F]);L.useEffect((()=>{y&&F()})),L.useImperativeHandle(i,(()=>y?{updatePosition:()=>{F()}}:null),[y,F]),L.useEffect((()=>{if(!y)return;const e=$J((()=>{F()})),t=EJ(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,y,F]);let D=x;"auto"!==x||S.muiSupportAuto||(D=void 0);const z=p||(s?kJ(Z4(s)).body:void 0),V=null!=(n=null==g?void 0:g.root)?n:e3,B=null!=(o=null==g?void 0:g.paper)?o:t3,U=eX({elementType:B,externalSlotProps:IK({},C,{style:I?C.style:IK({},C.style,{opacity:0})}),additionalProps:{elevation:m,ref:P},ownerState:O,className:NY(N.paper,null==C?void 0:C.className)}),W=eX({elementType:V,externalSlotProps:(null==b?void 0:b.root)||{},externalForwardedProps:E,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:y},ownerState:O,className:NY(N.root,f)}),{slotProps:q}=W,K=MK(W,Q4);return NA.jsx(V,IK({},K,!YJ(V)&&{slotProps:q,disableScrollLock:_},{children:NA.jsx(S,IK({appear:!0,in:y,onEntering:(e,t)=>{$&&$(e,t),F()},onExited:()=>{M(!1)},timeout:D},k,{children:NA.jsx(B,IK({},U,{children:d}))}))}))}));var n3=r3;function o3(e){return TY("MuiMenu",e)}IY("MuiMenu",["root","paper","list"]);const a3=["onEntering"],i3=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],s3={vertical:"top",horizontal:"right"},l3={vertical:"top",horizontal:"left"},c3=qZ(n3,{shouldForwardProp:e=>WZ(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),u3=qZ(t3,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),d3=qZ(q4,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),f3=L.forwardRef((function(e,t){var r,n;const o=QZ({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:y="selectedMenu",slots:v={},slotProps:g={}}=o,b=MK(o.TransitionProps,a3),w=MK(o,i3),S=cX(),x=IK({},o,{autoFocus:a,disableAutoFocusItem:l,MenuListProps:c,onEntering:h,PaperProps:f,transitionDuration:m,TransitionProps:b,variant:y}),$=(e=>{const{classes:t}=e;return QJ({root:["root"],paper:["paper"],list:["list"]},o3,t)})(x),_=a&&!l&&d,k=L.useRef(null);let E=-1;L.Children.map(i,((e,t)=>{L.isValidElement(e)&&(e.props.disabled||("selectedMenu"===y&&e.props.selected||-1===E)&&(E=t))}));const C=null!=(r=v.paper)?r:u3,j=null!=(n=g.paper)?n:f,P=eX({elementType:v.root,externalSlotProps:g.root,ownerState:x,className:[$.root,s]}),O=eX({elementType:C,externalSlotProps:j,ownerState:x,className:$.paper});return NA.jsx(c3,IK({onClose:u,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?s3:l3,slots:{paper:C,root:v.root},slotProps:{root:P,paper:O},open:d,ref:t,transitionDuration:m,TransitionProps:IK({onEntering:(e,t)=>{k.current&&k.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),h&&h(e,t)}},b),ownerState:x},w,{classes:p,children:NA.jsx(d3,IK({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),u&&u(e,"tabKeyDown"))},actions:k,autoFocus:a&&(-1===E||l),autoFocusItem:_,variant:y},c,{className:NY($.list,c.className),children:i}))}))}));var p3=f3;function m3(e){return TY("MuiMenuItem",e)}var h3=IY("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const y3=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],v3=qZ(G0,{shouldForwardProp:e=>WZ(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})=>IK({},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"}},[`&.${h3.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:jX(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${h3.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:jX(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${h3.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:jX(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})`:jX(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${h3.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${h3.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${W2.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${W2.inset}`]:{marginLeft:52},[`& .${T4.root}`]:{marginTop:0,marginBottom:0},[`& .${T4.inset}`]:{paddingLeft:36},[`& .${j4.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&IK({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${j4.root} svg`]:{fontSize:"1.25rem"}})))),g3=L.forwardRef((function(e,t){const r=QZ({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=MK(r,y3),p=L.useContext(s4),m=L.useMemo((()=>({dense:a||p.dense||!1,disableGutters:s})),[p.dense,a,s]),h=L.useRef(null);bJ((()=>{n&&h.current&&h.current.focus()}),[n]);const y=IK({},r,{dense:m.dense,divider:i,disableGutters:s}),v=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=e;return IK({},i,QJ({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},m3,i))})(r),g=RJ(h,t);let b;return r.disabled||(b=void 0!==u?u:-1),NA.jsx(s4.Provider,{value:m,children:NA.jsx(v3,IK({ref:g,role:c,tabIndex:b,component:o,focusVisibleClassName:NY(v.focusVisible,l),className:NY(v.root,d)},f,{ownerState:y,classes:v}))})}));var b3=g3;function w3(e){return TY("MuiNativeSelect",e)}var S3=IY("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const x3=["className","disabled","error","IconComponent","inputRef","variant"],$3=({ownerState:e,theme:t})=>IK({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":IK({},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"},[`&.${S3.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}}),_3=qZ("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:WZ,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${S3.multiple}`]:t.multiple}]}})($3),k3=({ownerState:e,theme:t})=>IK({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${S3.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),E3=qZ("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${wQ(r.variant)}`],r.open&&t.iconOpen]}})(k3),C3=L.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:a,inputRef:i,variant:s="standard"}=e,l=MK(e,x3),c=IK({},e,{disabled:n,variant:s,error:o}),u=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e;return QJ({select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${wQ(r)}`,a&&"iconOpen",n&&"disabled"]},w3,t)})(c);return NA.jsxs(L.Fragment,{children:[NA.jsx(_3,IK({ownerState:c,className:NY(u.select,r),disabled:n,ref:i||t},l)),e.multiple?null:NA.jsx(E3,{as:a,ownerState:c,className:u.icon})]})}));var j3,P3=C3;const O3=["children","classes","className","label","notched"],N3=qZ("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:WZ})({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%"}),A3=qZ("legend",{name:"MuiNotchedOutlined",shouldForwardProp:WZ})((({ownerState:e,theme:t})=>IK({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&&IK({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 R3=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],T3=qZ(E1,{shouldForwardProp:e=>WZ(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:_1})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return IK({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${T1.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${T1.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${T1.focused} .${T1.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${T1.error} .${T1.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${T1.disabled} .${T1.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&IK({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),I3=qZ((function(e){const{className:t,label:r,notched:n}=e,o=MK(e,O3),a=null!=r&&""!==r,i=IK({},e,{notched:n,withLabel:a});return NA.jsx(N3,IK({"aria-hidden":!0,className:t,ownerState:i},o,{children:NA.jsx(A3,{ownerState:i,children:a?NA.jsx("span",{children:r}):j3||(j3=NA.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}})),M3=qZ(C1,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:k1})((({theme:e,ownerState:t})=>IK({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}))),F3=L.forwardRef((function(e,t){var r,n,o,a,i;const s=QZ({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,y=MK(s,R3),v=(e=>{const{classes:t}=e;return IK({},t,QJ({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},R1,t))})(s),g=v1(),b=h1({props:s,muiFormControl:g,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),w=IK({},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:T3,x=null!=(o=null!=(a=m.input)?a:l.Input)?o:M3;return NA.jsx(O1,IK({slots:{root:S,input:x},renderSuffix:e=>NA.jsx(I3,{ownerState:w,className:v.notchedOutline,label:null!=d&&""!==d&&b.required?i||(i=NA.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},y,{classes:IK({},v,{notchedOutline:null})}))}));F3.muiName="Input";var D3=F3,z3=t0(NA.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"),L3=t0(NA.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 V3=qZ("span",{name:"MuiRadioButtonIcon",shouldForwardProp:WZ})({position:"relative",display:"flex"}),B3=qZ(z3,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),U3=qZ(L3,{name:"MuiRadioButtonIcon"})((({theme:e,ownerState:t})=>IK({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 W3(e){const{checked:t=!1,classes:r={},fontSize:n}=e,o=IK({},e,{checked:t});return NA.jsxs(V3,{className:r.root,ownerState:o,children:[NA.jsx(B3,{fontSize:n,className:r.background,ownerState:o}),NA.jsx(U3,{fontSize:n,className:r.dot,ownerState:o})]})}var q3=L.createContext(void 0);function K3(e){return TY("MuiRadio",e)}var H3=IY("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]);const G3=["checked","checkedIcon","color","icon","name","onChange","size","className"],Q3=qZ(p2,{shouldForwardProp:e=>WZ(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"medium"!==r.size&&t[`size${wQ(r.size)}`],t[`color${wQ(r.color)}`]]}})((({theme:e,ownerState:t})=>IK({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})`:jX("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${H3.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${H3.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const Y3=NA.jsx(W3,{checked:!0}),J3=NA.jsx(W3,{}),X3=L.forwardRef((function(e,t){var r,n;const o=QZ({props:e,name:"MuiRadio"}),{checked:a,checkedIcon:i=Y3,color:s="primary",icon:l=J3,name:c,onChange:u,size:d="medium",className:f}=o,p=MK(o,G3),m=IK({},o,{color:s,size:d}),h=(e=>{const{classes:t,color:r,size:n}=e;return IK({},t,QJ({root:["root",`color${wQ(r)}`,"medium"!==n&&`size${wQ(n)}`]},K3,t))})(m),y=L.useContext(q3);let v=a;const g=xJ(u,y&&y.onChange);let b=c;return y&&(void 0===v&&(v=function(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}(y.value,o.value)),void 0===b&&(b=y.name)),NA.jsx(Q3,IK({type:"radio",icon:L.cloneElement(l,{fontSize:null!=(r=J3.props.fontSize)?r:d}),checkedIcon:L.cloneElement(i,{fontSize:null!=(n=Y3.props.fontSize)?n:d}),ownerState:m,classes:h,name:b,checked:v,onChange:g,ref:t,className:NY(h.root,f)},p))}));var Z3=X3;function e6(e){return TY("MuiRadioGroup",e)}IY("MuiRadioGroup",["root","row","error"]);const t6=["actions","children","className","defaultValue","name","onChange","value"],r6=L.forwardRef((function(e,t){const{actions:r,children:n,className:o,defaultValue:a,name:i,onChange:s,value:l}=e,c=MK(e,t6),u=L.useRef(null),d=(e=>{const{classes:t,row:r,error:n}=e;return QJ({root:["root",r&&"row",n&&"error"]},e6,t)})(e),[f,p]=NJ({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=RJ(t,u),h=OJ(i),y=L.useMemo((()=>({name:h,onChange(e){p(e.target.value),s&&s(e,e.target.value)},value:f})),[h,s,p,f]);return NA.jsx(q3.Provider,{value:y,children:NA.jsx(b5,IK({role:"radiogroup",ref:m,className:NY(d.root,o)},c,{children:n}))})}));var n6=r6;function o6(e){return TY("MuiSelect",e)}var a6,i6=IY("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const s6=["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"],l6=qZ("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${i6.select}`]:t.select},{[`&.${i6.select}`]:t[r.variant]},{[`&.${i6.error}`]:t.error},{[`&.${i6.multiple}`]:t.multiple}]}})($3,{[`&.${i6.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),c6=qZ("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${wQ(r.variant)}`],r.open&&t.iconOpen]}})(k3),u6=qZ("input",{shouldForwardProp:e=>UZ(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 d6(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function f6(e){return null==e||"string"==typeof e&&!e.trim()}const p6=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:y,MenuProps:v={},multiple:g,name:b,onBlur:w,onChange:S,onClose:x,onFocus:$,onOpen:_,open:k,readOnly:E,renderValue:C,SelectDisplayProps:j={},tabIndex:P,value:O,variant:N="standard"}=e,A=MK(e,s6),[R,T]=NJ({controlled:O,default:u,name:"Select"}),[I,M]=NJ({controlled:k,default:c,name:"Select"}),F=L.useRef(null),D=L.useRef(null),[z,V]=L.useState(null),{current:B}=L.useRef(null!=k),[U,W]=L.useState(),q=RJ(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:R})),[R]),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(!y)return;const e=kJ(D.current).getElementById(y);if(e){const t=()=>{getSelection().isCollapsed&&D.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[y]);const G=(e,t)=>{e?_&&_(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(R)?R.slice():[];const t=R.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),R!==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 A["aria-invalid"];const ee=[];let te=!1;(w1({value:R})||f)&&(C?X=C(R):te=!0);const re=Q.map((e=>{if(!L.isValidElement(e))return null;let t;if(g){if(!Array.isArray(R))throw new Error(AK(2));t=R.some((t=>d6(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=d6(R,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!==P?P:d?null:0;const ae=j.id||(b?`mui-component-select-${b}`:void 0),ie=IK({},e,{variant:N,value:R,open:J,error:p}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e;return QJ({select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${wQ(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},o6,t)})(ie),le=IK({},v.PaperProps,null==(r=v.slotProps)?void 0:r.paper),ce=OJ();return NA.jsxs(L.Fragment,{children:[NA.jsx(l6,IK({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":[y,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:R,name:b}}),w(e))},onFocus:$},j,{ownerState:ie,className:NY(j.className,se.select,l),id:ae,children:f6(X)?a6||(a6=NA.jsx("span",{className:"notranslate",children:""})):X})),NA.jsx(u6,IK({"aria-invalid":p,value:Array.isArray(R)?R.join(","):R,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},A)),NA.jsx(c6,{as:m,className:se.icon,ownerState:ie}),NA.jsx(p3,IK({id:`menu-${b||""}`,anchorEl:H,open:J,onClose:e=>{G(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:IK({"aria-labelledby":y,role:"listbox","aria-multiselectable":g?"true":void 0,disableListWrap:!0,id:ce},v.MenuListProps),slotProps:IK({},v.slotProps,{paper:IK({},le,{style:IK({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})}));var m6=p6;const h6=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],y6=["root"],v6={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>WZ(e)&&"variant"!==e,slot:"Root"},g6=qZ(t4,v6)(""),b6=qZ(D3,v6)(""),w6=qZ(e5,v6)(""),S6=L.forwardRef((function(e,t){const r=QZ({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:a={},className:i,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:c=F1,id:u,input:d,inputProps:f,label:p,labelId:m,MenuProps:h,multiple:y=!1,native:v=!1,onClose:g,onOpen:b,open:w,renderValue:S,SelectDisplayProps:x,variant:$="outlined"}=r,_=MK(r,h6),k=v?P3:m6,E=h1({props:r,muiFormControl:v1(),states:["variant","error"]}),C=E.variant||$,j=IK({},r,{variant:C,classes:a}),P=(e=>{const{classes:t}=e;return t})(j),O=MK(P,y6),N=d||{standard:NA.jsx(g6,{ownerState:j}),outlined:NA.jsx(b6,{label:p,ownerState:j}),filled:NA.jsx(w6,{ownerState:j})}[C],A=RJ(t,tX(N));return NA.jsx(L.Fragment,{children:L.cloneElement(N,IK({inputComponent:k,inputProps:IK({children:o,error:E.error,IconComponent:c,variant:C,type:void 0,multiple:y},v?{id:u}:{autoWidth:n,defaultOpen:s,displayEmpty:l,labelId:m,MenuProps:h,onClose:g,onOpen:b,open:w,renderValue:S,SelectDisplayProps:IK({id:u},x)},f,{classes:f?sQ(O,f.classes):O},d?d.props.inputProps:{})},(y&&v||l)&&"outlined"===C?{notched:!0}:{},{ref:A,className:NY(N.props.className,i,P.root)},!d&&{variant:C},_))})}));S6.muiName="Select";var x6=S6;function $6(e,t){return e-t}function _6(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 k6(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 E6(e,t,r){return 100*(e-t)/(r-t)}function C6(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 j6({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort($6)}function P6({sliderRef:e,activeIndex:t,setActive:r}){var n,o;const a=kJ(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 O6(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 N6={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}%`})}},A6=e=>e;let R6;function T6(){return void 0===R6&&(R6="undefined"==typeof CSS||"function"!=typeof CSS.supports||CSS.supports("touch-action","none")),R6}function I6(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=A6,step:h=1,shiftStep:y=10,tabIndex:v,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,j]=NJ({controlled:g,default:null!=r?r:l,name:"Slider"}),P=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($6):[C];N=N.map((e=>null==e?l:wJ(e,l,s)));const A=!0===i&&null!==h?[...Array(Math.floor((s-l)/h)+1)].map(((e,t)=>({value:l+h*t}))):i||[],R=A.map((e=>e.value)),{isFocusVisibleRef:T,onBlur:I,onFocus:M,ref:F}=KJ(),[D,z]=L.useState(-1),V=L.useRef(null),B=RJ(F,V),U=RJ(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=R.indexOf(n);let i=t;if(A&&null==h){const e=R[R.length-1];i=i>e?e:i<R[0]?R[0]:i<n?R[a-1]:R[a+1]}if(i=wJ(i,l,s),O){o&&(i=wJ(i,N[r-1]||-1/0,N[r+1]||1/0));const e=i;i=j6({values:N,newValue:i,index:r});let t=r;o||(t=i.indexOf(e)),P6({sliderRef:V,activeIndex:t})}j(i),z(r),P&&!O6(i,C)&&P(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-y,l):(("ArrowRight"===t.key||"ArrowUp"===t.key)&&t.shiftKey||"PageUp"===t.key)&&(n=Math.min(r+y,s)),null!==n&&(K(t,n),t.preventDefault())}null==e||null==(r=e.onKeyDown)||r.call(e,t)};bJ((()=>{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=C6(d,h,l);else{const e=_6(R,d);d=R[e]}d=wJ(d,l,s);let f=0;if(O){f=t?G.current:_6(N,d),o&&(d=wJ(d,N[f-1]||-1/0,N[f+1]||1/0));const e=d;d=j6({values:N,newValue:d,index:f}),o&&t||(f=d.indexOf(e),G.current=f)}return{newValue:d,activeIndex:f}},J=AJ((e=>{const t=k6(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});P6({sliderRef:V,activeIndex:n,setActive:S}),j(r),!_&&E.current>2&&k(!0),P&&!O6(r,C)&&P(e,r,n)})),X=AJ((e=>{const t=k6(e,b);if(k(!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=AJ((e=>{if(n)return;T6()||e.preventDefault();const t=e.changedTouches[0];null!=t&&(b.current=t.identifier);const r=k6(e,b);if(!1!==r){const{newValue:t,activeIndex:n}=Y({finger:r});P6({sliderRef:V,activeIndex:n,setActive:S}),j(t),P&&!O6(t,C)&&P(e,t,n)}E.current=0;const o=kJ(V.current);o.addEventListener("touchmove",J,{passive:!0}),o.addEventListener("touchend",X,{passive:!0})})),ee=L.useCallback((()=>{const e=kJ(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:T6()}),()=>{e.removeEventListener("touchstart",Z),ee()}}),[ee,Z]),L.useEffect((()=>{n&&ee()}),[n,ee]);const te=E6(O?N[0]:l,l,s),re=E6(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:N6,dragging:_,focusedThumbIndex:D,getHiddenInputProps:(r={})=>{var o;const i=JJ(r);var u;const d=IK({},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 IK({tabIndex:v,"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:IK({},GJ,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:(e={})=>{const t=JJ(e);var r;const o=IK({},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=k6(e,b);if(!1!==o){const{newValue:t,activeIndex:r}=Y({finger:o});P6({sliderRef:V,activeIndex:r,setActive:S}),j(t),P&&!O6(t,C)&&P(e,t,r)}E.current=0;const a=kJ(V.current);a.addEventListener("mousemove",J,{passive:!0}),a.addEventListener("mouseup",X)})});return IK({},e,{ref:U},o)},getThumbProps:(e={})=>{const t=JJ(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 IK({},e,t,r)},marks:A,open:x,range:O,rootRef:U,trackLeap:re,trackOffset:te,values:N,getThumbStyle:e=>({pointerEvents:-1!==w&&w!==e?"none":void 0})}}var M6=e=>!e||!YJ(e);function F6(e){return TY("MuiSlider",e)}var D6=IY("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 z6=["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 L6(e){return e}const V6=qZ("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${wQ(r.color)}`],"medium"!==r.size&&t[`size${wQ(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"},[`&.${D6.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${D6.dragging}`]:{[`& .${D6.thumb}, & .${D6.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}}]}})),B6=qZ("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}}]}),U6=qZ("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:IK({},e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:IK({backgroundColor:NX(e.palette[t].main,.62),borderColor:NX(e.palette[t].main,.62)},e.applyStyles("dark",{backgroundColor:PX(e.palette[t].main,.5)}),e.applyStyles("dark",{borderColor:PX(e.palette[t].main,.5)})))})))]}})),W6=qZ("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${wQ(r.color)}`],"medium"!==r.size&&t[`thumbSize${wQ(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%)"},[`&.${D6.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, &.${D6.focusVisible}`]:IK({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${jX(e.palette[t].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${D6.active}`]:IK({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${jX(e.palette[t].main,.16)}`})}})))]}})),q6=qZ((function(e){const{children:t,className:r,value:n}=e,o=(e=>{const{open:t}=e;return{offset:NY(t&&D6.valueLabelOpen),circle:D6.valueLabelCircle,label:D6.valueLabelLabel}})(e);return t?L.cloneElement(t,{className:NY(t.props.className)},NA.jsxs(L.Fragment,{children:[t.props.children,NA.jsx("span",{className:NY(o.offset,r),"aria-hidden":!0,children:NA.jsx("span",{className:o.circle,children:NA.jsx("span",{className:o.label,children:n})})})]})):null}),{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})((({theme:e})=>IK({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%"},[`&.${D6.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%"},[`&.${D6.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"}}]}))),K6=qZ("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>UZ(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}}]}))),H6=qZ("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>UZ(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})((({theme:e})=>IK({},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}}]}))),G6=({children:e})=>e,Q6=L.forwardRef((function(e,t){var r,n,o,a,i,s,l,c,u,d,f,p,m,h,y,v,g,b,w,S,x,$,_,k;const E=QZ({props:e,name:"MuiSlider"}),C=cX(),{"aria-label":j,"aria-valuetext":P,"aria-labelledby":O,component:N="span",components:A={},componentsProps:R={},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=L6,slotProps:Y,slots:J,track:X="normal",valueLabelDisplay:Z="off",valueLabelFormat:ee=L6}=E,te=MK(E,z6),re=IK({},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:ye,getThumbStyle:ve}=I6(IK({},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 QJ({root:["root",t&&"disabled",r&&"dragging",n&&"marked","vertical"===o&&"vertical","inverted"===a&&"trackInverted",!1===a&&"trackFalse",s&&`color${wQ(s)}`,l&&`size${wQ(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${wQ(l)}`,s&&`thumbColor${wQ(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]},F6,i)})(re),be=null!=(r=null!=(n=null==J?void 0:J.root)?n:A.Root)?r:V6,we=null!=(o=null!=(a=null==J?void 0:J.rail)?a:A.Rail)?o:B6,Se=null!=(i=null!=(s=null==J?void 0:J.track)?s:A.Track)?i:U6,xe=null!=(l=null!=(c=null==J?void 0:J.thumb)?c:A.Thumb)?l:W6,$e=null!=(u=null!=(d=null==J?void 0:J.valueLabel)?d:A.ValueLabel)?u:q6,_e=null!=(f=null!=(p=null==J?void 0:J.mark)?p:A.Mark)?f:K6,ke=null!=(m=null!=(h=null==J?void 0:J.markLabel)?h:A.MarkLabel)?m:H6,Ee=null!=(y=null!=(v=null==J?void 0:J.input)?v:A.Input)?y:"input",Ce=null!=(g=null==Y?void 0:Y.root)?g:R.root,je=null!=(b=null==Y?void 0:Y.rail)?b:R.rail,Pe=null!=(w=null==Y?void 0:Y.track)?w:R.track,Oe=null!=(S=null==Y?void 0:Y.thumb)?S:R.thumb,Ne=null!=(x=null==Y?void 0:Y.valueLabel)?x:R.valueLabel,Ae=null!=($=null==Y?void 0:Y.mark)?$:R.mark,Re=null!=(_=null==Y?void 0:Y.markLabel)?_:R.markLabel,Te=null!=(k=null==Y?void 0:Y.input)?k:R.input,Ie=eX({elementType:be,getSlotProps:oe,externalSlotProps:Ce,externalForwardedProps:te,additionalProps:IK({},M6(be)&&{as:N}),ownerState:IK({},re,null==Ce?void 0:Ce.ownerState),className:[ge.root,M]}),Me=eX({elementType:we,externalSlotProps:je,ownerState:re,className:ge.rail}),Fe=eX({elementType:Se,externalSlotProps:Pe,additionalProps:{style:IK({},ne[ce].offset(he),ne[ce].leap(ye))},ownerState:IK({},re,null==Pe?void 0:Pe.ownerState),className:ge.track}),De=eX({elementType:xe,getSlotProps:ie,externalSlotProps:Oe,ownerState:IK({},re,null==Oe?void 0:Oe.ownerState),className:ge.thumb}),ze=eX({elementType:$e,externalSlotProps:Ne,ownerState:IK({},re,null==Ne?void 0:Ne.ownerState),className:ge.valueLabel}),Le=eX({elementType:_e,externalSlotProps:Ae,ownerState:re,className:ge.mark}),Ve=eX({elementType:ke,externalSlotProps:Re,ownerState:re,className:ge.markLabel}),Be=eX({elementType:Ee,getSlotProps:ae,externalSlotProps:Te,ownerState:re});return NA.jsxs(be,IK({},Ie,{children:[NA.jsx(we,IK({},Me)),NA.jsx(Se,IK({},Fe)),pe.filter((e=>e.value>=W&&e.value<=U)).map(((e,t)=>{const r=E6(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]),NA.jsxs(L.Fragment,{children:[NA.jsx(_e,IK({"data-index":t},Le,!YJ(_e)&&{markActive:o},{style:IK({},n,Le.style),className:NY(Le.className,o&&ge.markActive)})),null!=e.label?NA.jsx(ke,IK({"aria-hidden":!0,"data-index":t},Ve,!YJ(ke)&&{markLabelActive:o},{style:IK({},n,Ve.style),className:NY(ge.markLabel,Ve.className,o&&ge.markLabelActive),children:e.label})):null]},t)})),me.map(((e,t)=>{const r=E6(e,W,U),n=ne[ce].offset(r),o="off"===Z?G6:$e;return NA.jsx(o,IK({},!YJ(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:NA.jsx(xe,IK({"data-index":t},De,{className:NY(ge.thumb,De.className,le===t&&ge.active,ue===t&&ge.focusVisible),style:IK({},n,ve(t),De.style),children:NA.jsx(Ee,IK({"data-index":t,"aria-label":z?z(t):j,"aria-valuenow":Q(e),"aria-labelledby":O,"aria-valuetext":V?V(Q(e),t):P,value:me[t]},Be))}))}),t)}))]}))}));var Y6=Q6;function J6(e){return TY("MuiTextField",e)}IY("MuiTextField",["root"]);const X6=["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"],Z6={standard:t4,filled:e5,outlined:D3},e9=qZ(a5,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),t9=L.forwardRef((function(e,t){const r=QZ({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:y,InputProps:v,inputRef:g,label:b,maxRows:w,minRows:S,multiline:x=!1,name:$,onBlur:_,onChange:k,onFocus:E,placeholder:C,required:j=!1,rows:P,select:O=!1,SelectProps:N,type:A,value:R,variant:T="outlined"}=r,I=MK(r,X6),M=IK({},r,{autoFocus:o,color:s,disabled:c,error:u,fullWidth:f,multiline:x,required:j,select:O,variant:T}),F=(e=>{const{classes:t}=e;return QJ({root:["root"]},J6,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=OJ(m),L=p&&z?`${z}-helper-text`:void 0,V=b&&z?`${z}-label`:void 0,B=Z6[T],U=NA.jsx(B,IK({"aria-describedby":L,autoComplete:n,autoFocus:o,defaultValue:l,fullWidth:f,multiline:x,name:$,rows:P,maxRows:w,minRows:S,type:A,value:R,id:z,inputRef:g,onBlur:_,onChange:k,onFocus:E,placeholder:C,inputProps:y},D,v));return NA.jsxs(e9,IK({className:NY(F.root,i),disabled:c,error:u,fullWidth:f,ref:t,required:j,color:s,variant:T,ownerState:M},I,{children:[null!=b&&""!==b&&NA.jsx(i4,IK({htmlFor:z,id:V},h,{children:b})),O?NA.jsx(x6,IK({"aria-describedby":L,id:z,labelId:V,value:R,input:U},N,{children:a})):U,p&&NA.jsx(E5,IK({id:L},d,{children:p}))]}))}));var r9,n9=t9,o9={},a9={},i9=n(n0);function s9(){return r9||(r9=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=i9}(a9)),a9}var l9=_X;Object.defineProperty(o9,"__esModule",{value:!0});var c9=o9.default=void 0,u9=l9(s9()),d9=NA;function f9({uiSchema:e,registry:t,...r}){const{translateString:n}=t;return NA.jsx(e1,{title:n(vR.AddItemButton),...r,color:"primary",children:NA.jsx(c9,{})})}function p9(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:y,MoveUpButton:v,RemoveButton:g}=m.templates.ButtonTemplates,b={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold",minWidth:0};return NA.jsxs(W5,{container:!0,alignItems:"center",children:[NA.jsx(W5,{item:!0,xs:!0,style:{overflow:"auto"},children:NA.jsx(Y1,{mb:2,children:NA.jsx(j0,{elevation:2,children:NA.jsx(Y1,{p:2,children:t})})})}),n&&NA.jsxs(W5,{item:!0,children:[(i||a)&&NA.jsx(v,{style:b,disabled:r||f||!i,onClick:d(l,l-1),uiSchema:p,registry:m}),(i||a)&&NA.jsx(y,{style:b,disabled:r||f||!a,onClick:d(l,l+1),uiSchema:p,registry:m}),o&&NA.jsx(h,{style:b,disabled:r||f,onClick:c(l),uiSchema:p,registry:m}),s&&NA.jsx(g,{style:b,disabled:r||f,onClick:u(l),uiSchema:p,registry:m})]})]})}function m9(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=_d(o),p=wA("ArrayFieldDescriptionTemplate",l,f),m=wA("ArrayFieldItemTemplate",l,f),h=wA("ArrayFieldTitleTemplate",l,f),{ButtonTemplates:{AddButton:y}}=l.templates;return NA.jsx(j0,{elevation:2,children:NA.jsxs(Y1,{p:2,children:[NA.jsx(h,{idSchema:n,title:f.title||d,schema:u,uiSchema:o,required:c,registry:l}),NA.jsx(p,{idSchema:n,description:f.description||u.description,schema:u,uiSchema:o,registry:l}),a&&a.map((({key:e,...t})=>NA.jsx(m,{...t},e))),t&&NA.jsx(W5,{container:!0,justifyContent:"flex-end",children:NA.jsx(W5,{item:!0,children:NA.jsx(Y1,{mt:2,children:NA.jsx(y,{className:"array-item-add",onClick:i,disabled:r||s,uiSchema:o,registry:l})})})})]})})}c9=o9.default=(0,u9.default)((0,d9.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");const h9=["date","datetime-local","file","time"];function y9(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:y,options:v,schema:g,uiSchema:b,rawErrors:w=[],errorSchema:S,formContext:x,registry:$,InputLabelProps:_,...k}=e,E=vA(g,s,v),{step:C,min:j,max:P,accept:O,...N}=E,A={step:C,min:j,max:P,accept:O,...g.examples?{list:tR(t)}:void 0},R=h9.includes(s)?{..._,shrink:!0}:_;return NA.jsxs(NA.Fragment,{children:[NA.jsx(n9,{id:t,name:t,placeholder:n,label:iR(l||void 0,c,void 0),autoFocus:y,required:o,disabled:i||a,inputProps:A,...N,value:d||0===d?d:"",error:w.length>0,onChange:p||(({target:{value:e}})=>f(""===e?v.emptyValue:e)),onBlur:({target:e})=>m(t,e&&e.value),onFocus:({target:e})=>h(t,e&&e.value),InputLabelProps:R,...k,"aria-describedby":oR(t,!!g.examples)}),Array.isArray(g.examples)&&NA.jsx("datalist",{id:tR(t),children:g.examples.concat(g.default&&!g.examples.includes(g.default)?[g.default]:[]).map((e=>NA.jsx("option",{value:e},e)))})]})}function v9(e){const{id:t,description:r}=e;return r?NA.jsx(s1,{id:t,variant:"subtitle2",style:{marginTop:"5px"},children:r}):null}var g9={},b9=_X;Object.defineProperty(g9,"__esModule",{value:!0});var w9=g9.default=void 0,S9=b9(s9()),x9=NA;function $9({errors:e,registry:t}){const{translateString:r}=t;return NA.jsx(j0,{elevation:2,children:NA.jsxs(Y1,{mb:2,p:2,children:[NA.jsx(s1,{variant:"h6",children:r(vR.ErrorsLabel)}),NA.jsx(f4,{dense:!0,children:e.map(((e,t)=>NA.jsxs(E4,{children:[NA.jsx(A4,{children:NA.jsx(w9,{color:"error"})}),NA.jsx(D4,{primary:e.stack})]},t)))})]})})}w9=g9.default=(0,S9.default)((0,x9.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 _9={},k9=_X;Object.defineProperty(_9,"__esModule",{value:!0});var E9=_9.default=void 0,C9=k9(s9()),j9=NA;E9=_9.default=(0,C9.default)((0,j9.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward");var P9={},O9=_X;Object.defineProperty(P9,"__esModule",{value:!0});var N9=P9.default=void 0,A9=O9(s9()),R9=NA;N9=P9.default=(0,A9.default)((0,R9.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward");var T9={},I9=_X;Object.defineProperty(T9,"__esModule",{value:!0});var M9=T9.default=void 0,F9=I9(s9()),D9=NA;M9=T9.default=(0,F9.default)((0,D9.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 z9={},L9=_X;Object.defineProperty(z9,"__esModule",{value:!0});var V9=z9.default=void 0,B9=L9(s9()),U9=NA;function W9(e){const{icon:t,color:r,uiSchema:n,registry:o,...a}=e;return NA.jsx(e1,{...a,size:"small",color:r,children:t})}function q9(e){const{registry:{translateString:t}}=e;return NA.jsx(W9,{title:t(vR.CopyButton),...e,icon:NA.jsx(M9,{fontSize:"small"})})}function K9(e){const{registry:{translateString:t}}=e;return NA.jsx(W9,{title:t(vR.MoveDownButton),...e,icon:NA.jsx(E9,{fontSize:"small"})})}function H9(e){const{registry:{translateString:t}}=e;return NA.jsx(W9,{title:t(vR.MoveUpButton),...e,icon:NA.jsx(N9,{fontSize:"small"})})}function G9(e){const{iconType:t,...r}=e,{registry:{translateString:n}}=r;return NA.jsx(W9,{title:n(vR.RemoveButton),...r,color:"error",icon:NA.jsx(V9,{fontSize:"default"===t?void 0:"small"})})}function Q9(e){const{errors:t=[],idSchema:r}=e;if(0===t.length)return null;const n=eR(r);return NA.jsx(f4,{id:n,dense:!0,disablePadding:!0,children:t.map(((e,t)=>NA.jsx(E4,{disableGutters:!0,children:NA.jsx(E5,{component:"div",id:`${n}-${t}`,children:e})},t)))})}function Y9(e){const{idSchema:t,help:r}=e;if(!r)return null;const n=rR(t);return NA.jsx(E5,{component:"div",id:n,children:r})}function J9(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:y,rawDescription:v,schema:g,uiSchema:b,registry:w}=e,S=wA("WrapIfAdditionalTemplate",w,_d(b));return s?NA.jsx("div",{style:{display:"none"},children:r}):NA.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:NA.jsxs(a5,{fullWidth:!0,error:!!p.length,required:f,children:[r,i&&v?NA.jsx(s1,{variant:"caption",color:"textSecondary",children:y}):null,m,h]})})}function X9(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=_d(s),m=wA("TitleFieldTemplate",f,p),h=wA("DescriptionFieldTemplate",f,p),{ButtonTemplates:{AddButton:y}}=f.templates;return NA.jsxs(NA.Fragment,{children:[r&&NA.jsx(m,{id:nR(l),title:r,required:o,schema:c,uiSchema:s,registry:f}),t&&NA.jsx(h,{id:ZA(l),description:t,schema:c,uiSchema:s,registry:f}),NA.jsxs(W5,{container:!0,spacing:2,style:{marginTop:"10px"},children:[n.map(((e,t)=>e.hidden?e.content:NA.jsx(W5,{item:!0,xs:12,style:{marginBottom:"10px"},children:e.content},t))),kd(c,s,u)&&NA.jsx(W5,{container:!0,justifyContent:"flex-end",children:NA.jsx(W5,{item:!0,children:NA.jsx(y,{className:"object-property-expand",onClick:d(c),disabled:a||i,uiSchema:s,registry:f})})})]})]})}function Z9({uiSchema:e}){const{submitText:t,norender:r,props:n={}}=bA(e);return r?null:NA.jsx(Y1,{marginTop:3,children:NA.jsx(s2,{type:"submit",variant:"contained",color:"primary",...n,children:t})})}function e8({id:e,title:t}){return NA.jsxs(Y1,{id:e,mb:1,mt:1,children:[NA.jsx(s1,{variant:"h5",children:t}),NA.jsx(Q2,{})]})}function t8(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:y}=m.ButtonTemplates,v=h(vR.KeyLabel,[i]);if(!(rd in d))return NA.jsx("div",{className:r,style:n,children:t});return NA.jsxs(W5,{container:!0,alignItems:"center",spacing:2,className:r,style:n,children:[NA.jsx(W5,{item:!0,xs:!0,children:NA.jsx(n9,{fullWidth:!0,required:u,label:v,defaultValue:i,disabled:o||c,id:`${a}-key`,name:`${a}-key`,onBlur:c?void 0:({target:e})=>l(e&&e.value),type:"text"})}),NA.jsx(W5,{item:!0,xs:!0,children:t}),NA.jsx(W5,{item:!0,children:NA.jsx(y,{iconType:"default",style:{flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"},disabled:o||c,onClick:s(i),uiSchema:f,registry:p})})]},`${a}-key`)}function r8(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,y=wA("DescriptionFieldTemplate",p,m),v=lR(r),g=null!==(t=m.description)&&void 0!==t?t:r.description;return NA.jsxs(NA.Fragment,{children:[!l&&!!g&&NA.jsx(y,{id:ZA(n),description:g,schema:r,uiSchema:h,registry:p}),NA.jsx(m5,{control:NA.jsx(k2,{id:n,name:n,checked:void 0!==o&&Boolean(o),required:v,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":oR(n)}),label:iR(s,l,!1)})]})}function n8({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,y=Array.isArray(a)?a:[a],v=e=>({target:{checked:t}})=>{c(t?fA(e,y,f):cA(e,y,f))},g=({target:e})=>u(r,lA(e&&e.value,f,h)),b=({target:e})=>d(r,lA(e&&e.value,f,h));return NA.jsxs(NA.Fragment,{children:[iR(NA.jsx(R5,{required:l,htmlFor:r,children:e||void 0}),t),NA.jsx(b5,{id:r,row:!!m,children:Array.isArray(f)&&f.map(((e,t)=>{const o=uA(e.value,y),a=Array.isArray(p)&&-1!==p.indexOf(e.value),l=NA.jsx(k2,{id:aR(r,t),name:r,checked:o,disabled:n||a||s,autoFocus:i&&0===t,onChange:v(t),onBlur:g,onFocus:b,"aria-describedby":oR(r)});return NA.jsx(m5,{control:l,label:e.label},t)}))})]})}function o8({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,y=null!==(d=dA(r,f))&&void 0!==d?d:null;return NA.jsxs(NA.Fragment,{children:[iR(NA.jsx(R5,{required:n,htmlFor:e,children:i||void 0}),s),NA.jsx(n6,{id:e,name:e,value:y,row:h,onChange:(e,t)=>l(lA(t,f,m)),onBlur:({target:t})=>c(e,lA(t&&t.value,f,m)),onFocus:({target:t})=>u(e,lA(t&&t.value,f,m)),"aria-describedby":oR(e),children:Array.isArray(f)&&f.map(((t,r)=>{const n=Array.isArray(p)&&-1!==p.indexOf(t.value);return NA.jsx(m5,{control:NA.jsx(Z3,{name:e,id:aR(e,r),color:"primary"}),label:t.label,value:String(r),disabled:o||n||a},r)}))})]})}function a8(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,...yA(s)};return NA.jsxs(NA.Fragment,{children:[iR(NA.jsx(R5,{required:c,htmlFor:f,children:u||void 0}),d),NA.jsx(Y6,{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":oR(f)})]})}function i8({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:y,rawErrors:v=[],registry:g,uiSchema:b,hideError:w,formContext:S,...x}){const{enumOptions:$,enumDisabled:_,emptyValue:k}=n,E=(d=void 0!==d&&!!d)?[]:"",C=void 0===u||d&&u.length<1||!d&&u===E,j=dA(u,$,d),{InputLabelProps:P,SelectProps:O,autocomplete:N,...A}=x,R=!d&&void 0===e.default;return NA.jsxs(n9,{id:t,name:t,label:iR(o||void 0,a,void 0),value:C||void 0===j?E:j,required:i,disabled:s||c,autoFocus:f,autoComplete:N,placeholder:l,error:v.length>0,onChange:({target:{value:e}})=>p(lA(e,$,k)),onBlur:({target:e})=>m(t,lA(e&&e.value,$,k)),onFocus:({target:e})=>h(t,lA(e&&e.value,$,k)),...A,select:!0,InputLabelProps:{...P,shrink:!C},SelectProps:{...O,multiple:d},"aria-describedby":oR(t),children:[R&&NA.jsx(b3,{value:"",children:l}),Array.isArray($)&&$.map((({value:e,label:t},r)=>{const n=Array.isArray(_)&&-1!==_.indexOf(e);return NA.jsx(b3,{value:String(r),disabled:n,children:t},r)}))]})}function s8(e){const{options:t,registry:r}=e,n=wA("BaseInputTemplate",r,t);let o=5;return"string"!=typeof t.rows&&"number"!=typeof t.rows||(o=t.rows),NA.jsx(n,{...e,multiline:!0,rows:o})}function l8(){return{CheckboxWidget:r8,CheckboxesWidget:n8,RadioWidget:o8,RangeWidget:a8,SelectWidget:i8,TextareaWidget:s8}}function c8(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u8(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 d8(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u8(Object(r),!0).forEach((function(t){c8(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u8(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f8(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 p8(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 m8(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h8(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 y8(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h8(Object(r),!0).forEach((function(t){m8(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h8(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v8(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 g8(e){return{}.toString.call(e).includes("Object")}function b8(e){return"function"==typeof e}V9=z9.default=(0,B9.default)((0,U9.jsx)("path",{d:"M19 13H5v-2h14z"}),"Remove");var w8=v8((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"}),S8={changes:function(e,t){return g8(t)||w8("changeType"),Object.keys(t).some((function(t){return!function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)}))&&w8("changeField"),t},selector:function(e){b8(e)||w8("selectorType")},handler:function(e){b8(e)||g8(e)||w8("handlerType"),g8(e)&&Object.values(e).some((function(e){return!b8(e)}))&&w8("handlersType")},initial:function(e){var t;e||w8("initialIsRequired"),g8(e)||w8("initialType"),t=e,Object.keys(t).length||w8("initialContent")}};function x8(e,t){return b8(t)?t(e.current):t}function $8(e,t){return e.current=y8(y8({},e.current),t),t}function _8(e,t,r){return b8(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 k8={create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};S8.initial(e),S8.handler(t);var r={current:e},n=v8(_8)(r,t),o=v8($8)(r),a=v8(S8.changes)(e),i=v8(x8)(r);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return S8.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 E8,C8={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 "},j8=(E8=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>=E8.length?E8.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))}})(C8),P8={config:function(e){var t;return e||j8("configIsRequired"),t=e,{}.toString.call(t).includes("Object")||j8("configType"),e.urls?(console.warn(C8.deprecation),{paths:{vs:e.urls.monacoBase}}):e}};function O8(e,t){return Object.keys(t).forEach((function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],O8(e[r],t[r]))})),d8(d8({},e),t)}var N8={type:"cancelation",msg:"operation is manually canceled"};function A8(e){var t=!1,r=new Promise((function(r,n){e.then((function(e){return t?n(N8):r(e)})),e.catch(n)}));return r.cancel=function(){return t=!0},r}var R8=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 p8(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 p8(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.")}()}(k8.create({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}),2),T8=R8[0],I8=R8[1];function M8(e){return document.body.appendChild(e)}function F8(e){var t=T8((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 D8(){var e=T8((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){z8(t),e.resolve(t)}),(function(t){e.reject(t)}))}function z8(e){T8().monaco||I8({monaco:e})}var L8=new Promise((function(e,t){return I8({resolve:e,reject:t})})),V8={config:function(e){var t=P8.config(e),r=t.monaco,n=f8(t,["monaco"]);I8((function(e){return{config:O8(e.config,n),monaco:r}}))},init:function(){var e=T8((function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}}));if(!e.isInitialized){if(I8({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),A8(L8);if(window.monaco&&window.monaco.editor)return z8(window.monaco),e.resolve(window.monaco),A8(L8);!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)}}(M8,F8)(D8)}return A8(L8)},__getMonacoInstance:function(){return T8((function(e){return e.monaco}))}},B8={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},U8={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}};var W8=function({children:e}){return V.createElement("div",{style:U8.container},e)},q8=W8;var K8=function({width:e,height:t,isEditorReady:r,loading:n,_ref:o,className:a,wrapperProps:i}){return V.createElement("section",{style:{...B8.wrapper,width:e,height:t},...i},!r&&V.createElement(q8,null,n),V.createElement("div",{ref:o,style:{...B8.fullWidth,...!r&&B8.hide},className:a}))},H8=L.memo(K8);var G8=function(e){L.useEffect(e,[])};var Q8=function(e,t,r=!0){let n=L.useRef(!0);L.useEffect(n.current||!r?()=>{n.current=!1}:e,t)};function Y8(){}function J8(e,t,r,n){return function(e,t){return e.editor.getModel(X8(e,t))}(e,n)||function(e,t,r,n){return e.editor.createModel(t,r,n?X8(e,n):void 0)}(e,t,r,n)}function X8(e,t){return e.Uri.parse(t)}var Z8=function(e){let t=L.useRef();return L.useEffect((()=>{t.current=e}),[e]),t.current},e7=new Map;var t7=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:y={},beforeMount:v=Y8,onMount:g=Y8,onChange:b,onValidate:w=Y8}){let[S,x]=L.useState(!1),[$,_]=L.useState(!0),k=L.useRef(null),E=L.useRef(null),C=L.useRef(null),j=L.useRef(g),P=L.useRef(v),O=L.useRef(),N=L.useRef(n),A=Z8(a),R=L.useRef(!1),T=L.useRef(!1);G8((()=>{let e=V8.init();return e.then((e=>(k.current=e)&&_(!1))).catch((e=>"cancelation"!==e?.type&&console.error("Monaco initialization: error:",e))),()=>E.current?(O.current?.dispose(),f?d&&e7.set(a,E.current.saveViewState()):E.current.getModel()?.dispose(),void E.current.dispose()):e.cancel()})),Q8((()=>{let i=J8(k.current,e||n||"",t||o||"",a||r||"");i!==E.current?.getModel()&&(d&&e7.set(A,E.current?.saveViewState()),E.current?.setModel(i),d&&E.current?.restoreViewState(e7.get(a)))}),[a],S),Q8((()=>{E.current?.updateOptions(c)}),[c],S),Q8((()=>{!E.current||void 0===n||(E.current.getOption(k.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),Q8((()=>{let e=E.current?.getModel();e&&o&&k.current?.editor.setModelLanguage(e,o)}),[o],S),Q8((()=>{void 0!==s&&E.current?.revealLine(s)}),[s],S),Q8((()=>{k.current?.editor.setTheme(i)}),[i],S);let I=L.useCallback((()=>{if(C.current&&k.current&&!R.current){P.current(k.current);let l=a||r,f=J8(k.current,n||e||"",t||o||"",l||"");E.current=k.current?.editor.create(C.current,{model:f,automaticLayout:!0,...c},u),d&&E.current.restoreViewState(e7.get(l)),k.current.editor.setTheme(i),void 0!==s&&E.current.revealLine(s),x(!0),R.current=!0}}),[e,t,r,n,o,a,c,u,d,i,s]);return L.useEffect((()=>{S&&j.current(E.current,k.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=k.current.editor.onDidChangeMarkers((e=>{let t=E.current.getModel()?.uri;if(t&&e.find((e=>e.path===t.path))){let e=k.current.editor.getModelMarkers({resource:t});w?.(e)}}));return()=>{e?.dispose()}}return()=>{}}),[S,w]),V.createElement(H8,{width:p,height:m,isEditorReady:S,loading:l,_ref:C,className:h,wrapperProps:y})},r7=L.memo(t7);const n7=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(r7,{height:c,language:i||"javascript",defaultValue:"",value:n,onChange:e=>{o(e)},options:{theme:"light"===d?"vs-light":"vs-dark",lineNumbers:l,minimap:{enabled:s},...u}}))};function o7(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 a7=e=>["light","dark"].includes(e)?e:"light";function i7(e){return uZ({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 s7=(l7={templates:{ArrayFieldItemTemplate:p9,ArrayFieldTemplate:m9,BaseInputTemplate:y9,ButtonTemplates:{AddButton:f9,CopyButton:q9,MoveDownButton:K9,MoveUpButton:H9,RemoveButton:G9,SubmitButton:Z9},DescriptionFieldTemplate:v9,ErrorListTemplate:$9,FieldErrorTemplate:Q9,FieldHelpTemplate:Y9,FieldTemplate:J9,ObjectFieldTemplate:X9,TitleFieldTemplate:e8,WrapIfAdditionalTemplate:t8},widgets:{...l8(),SelectWidget:e=>{const t=l8().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)=>(e={...l7?.fields,...e},t={...l7?.widgets,...t},r={...l7?.templates,...r,ButtonTemplates:{...l7?.templates?.ButtonTemplates,...r?.ButtonTemplates}},NA.jsx($K,{...l7,...n,fields:e,widgets:t,templates:r,ref:o})))));var l7;function c7(){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 u7({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=a7(e);a(i7(t))})),AP.getTheme((e=>{const t=a7(e);a(i7(t))}))}),[]),L.useEffect((()=>{n(i)}),[o]),!o)return null;const s={htmlWidget:o7,crowdinFilesWidget:U,monacoEditorWidget:e=>V.createElement(n7,W({},e,{theme:o}))};return V.createElement(HZ,{theme:o},V.createElement(s7,{ref:i,widgets:s,formData:e,validator:hU,schema:t,uiSchema:r,onSubmit:e=>{!function(e){if(!f7())return;document.getElementById("form-loading").style.display="flex",checkOrigin().then((t=>fetch(formPostDataUrl+t+"&id="+c7(),{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)&&p7(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 d7(){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 f7(){return!(AP&&AP._data&&AP._data.app&&["ai-prompt-provider","workflow-step-type"].includes(AP._data.app.type))}function p7(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(!f7()){d7();document.getElementsByTagName("html")[0].className+=" form-without-submit"}AP&&AP._data&&AP._data.app&&["modal","editor-right-panel"].includes(AP._data.app.type)&&(d7(),"modal"===AP._data.app.type&&card.parentElement.style.removeProperty("max-width")),window.currentFormSchema=t,window.currentFormData=e,window.currentFormUiSchema=r,n.render(V.createElement(u7,{onFormRef:e=>{window.formRef=e.current},formData:e,formSchema:t||window.formSchema,formUiSchema:r||window.formUiSchema})),document.getElementById("form-loading").style.display="none"}f7()?checkOrigin().then((e=>{const t=new URLSearchParams(frameData.app.context).toString(),r=new URLSearchParams(e+"&id="+c7());return r.set("context",t),fetch(formGetDataUrl+"?"+r.toString(),{method:"GET"})})).then(checkResponse).catch((e=>catchRejection(e,"Can't load saved settings"))).then((e=>{p7(e.formData,e.formSchema,e.formUiSchema)})).catch((()=>p7({}))):AP.getFormData((e=>{p7(e)})),window.renderForm=p7}();
|